diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 408e324d6c..7a4197f934 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -145,3 +145,23 @@ updates: schedule: interval: daily open-pull-requests-limit: 10 +- package-ecosystem: nuget + directory: "/petstore/dotnet" + schedule: + interval: daily + open-pull-requests-limit: 10 +- package-ecosystem: gradle + directory: "/petstore/java" + schedule: + interval: daily + open-pull-requests-limit: 10 +- package-ecosystem: npm + directory: "/petstore/typescript" + schedule: + interval: daily + open-pull-requests-limit: 10 +- package-ecosystem: gomod + directory: "/petstore/go" + schedule: + interval: daily + open-pull-requests-limit: 10 diff --git a/petstore/README.md b/petstore/README.md new file mode 100644 index 0000000000..e56c18b487 --- /dev/null +++ b/petstore/README.md @@ -0,0 +1,60 @@ +# Swagger Petstore samples + +The following section showcases client SDK generated using the [OpenApi 'Swagger Petstore'](https://petstore.swagger.io/) using Kiota. + +NOTE: Kiota version 1.0.1 was used to generate these SDK's. + +## Table of content + +| Language | Command line | +| -------- | ------------ | +| [dotnet](./dotnet) | `kiota generate --openapi https://petstore.swagger.io/v2/swagger.json --additional-data false --language csharp -o PetstoreClient -c PetstoreApiClient --log-level information --clean-output true --namespace-name KiotaSamples.PetStoreSdk` | +| [java](./java) | `kiota generate --openapi https://petstore.swagger.io/v2/swagger.json --language java -o utilities/src/main/java/petstore/utilities -n petstore.utilities` | +| [typescript](./typescript) | | +| [go](./go) | | `kiota generate --openapi https://petstore.swagger.io/v2/swagger.json --language go -o utilities -n github.com/microsoft/kiota-samples/petstore/go/utilities/` + +## Example of data retrieved + +This is a dotnet example that shows how the data looks, after generation AND the target api is called: + +![image](https://user-images.githubusercontent.com/899878/189605921-14f1d963-594c-4608-9d4d-eccbbfeea246.png) + + +## How to generate an SDK against the Swagger Petstore + +These steps are all based on the official docs for [generating dotnet Kiota SDK's](https://microsoft.github.io/kiota/get-started/dotnet.html): + +- Create a new project or solution. + e.g. + ``` + dotnet new console -o petstore + cd petstore + ``` +- Add the nuget dependencies, which we will need for the SDK generated code to work: + e.g. + ``` + dotnet add package Microsoft.Kiota.Abstractions + dotnet add package Microsoft.Kiota.Http.HttpClientLibrary + dotnet add package Microsoft.Kiota.Serialization.Json + dotnet add package Microsoft.Kiota.Serialization.Text + dotnet add package Microsoft.Kiota.Serialization.Form + ``` +- Create the Petstore SDK using Kiota and [the custom params](https://microsoft.github.io/kiota/using.html): + e.g. + ``` + kiota generate \ + --openapi https://petstore.swagger.io/v2/swagger.json \ + --additional-data false \ + --language csharp \ + --output src\PetstoreClient \ + --class-name PetstoreApiClient \ + --log-level information \ + --clean-output true \ + --namespace-name KiotaSamples.PetStoreSdk + ``` +- And that's it! you're ready to go! So, lets grab some pets: + ``` + var pet = await client.Pet["69"].GetAsync(); + ``` + +-- end of readme -- \ No newline at end of file diff --git a/petstore/dotnet/.gitignore b/petstore/dotnet/.gitignore new file mode 100644 index 0000000000..920d1cde17 --- /dev/null +++ b/petstore/dotnet/.gitignore @@ -0,0 +1,442 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*[.json, .xml, .info] + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# JetBrains Rider +.idea/ +*.sln.iml + +## +## Visual Studio Code +## +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json diff --git a/petstore/dotnet/.vscode/launch.json b/petstore/dotnet/.vscode/launch.json new file mode 100644 index 0000000000..a851ec5e51 --- /dev/null +++ b/petstore/dotnet/.vscode/launch.json @@ -0,0 +1,25 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + "program": "${workspaceFolder}/bin/Debug/net5.0/dotnet.dll", + "args": [], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ] +} \ No newline at end of file diff --git a/petstore/dotnet/.vscode/tasks.json b/petstore/dotnet/.vscode/tasks.json new file mode 100644 index 0000000000..1563eed509 --- /dev/null +++ b/petstore/dotnet/.vscode/tasks.json @@ -0,0 +1,24 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "shell", + "args": [ + "build", + // Ask dotnet build to generate full paths for file names. + "/property:GenerateFullPaths=true", + // Do not generate summary otherwise it leads to duplicate errors in Problems panel + "/consoleloggerparameters:NoSummary" + ], + "group": "build", + "presentation": { + "reveal": "silent" + }, + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/petstore/dotnet/GlobalUsings.cs b/petstore/dotnet/GlobalUsings.cs new file mode 100644 index 0000000000..b113e751b3 --- /dev/null +++ b/petstore/dotnet/GlobalUsings.cs @@ -0,0 +1,3 @@ +global using KiotaSamples.PetStoreSdk; +global using System.Text.Json; +global using System.Text.Json.Serialization; \ No newline at end of file diff --git a/petstore/dotnet/PetstoreClient/Models/ApiResponse.cs b/petstore/dotnet/PetstoreClient/Models/ApiResponse.cs new file mode 100644 index 0000000000..72aae602bd --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Models/ApiResponse.cs @@ -0,0 +1,55 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace KiotaSamples.PetStoreSdk.Models { + public class ApiResponse : IParsable { + /// The code property + public int? Code { get; set; } + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Message { get; set; } +#nullable restore +#else + public string Message { get; set; } +#endif + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static ApiResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ApiResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"code", n => { Code = n.GetIntValue(); } }, + {"message", n => { Message = n.GetStringValue(); } }, + {"type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("code", Code); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("type", Type); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Models/Category.cs b/petstore/dotnet/PetstoreClient/Models/Category.cs new file mode 100644 index 0000000000..06016f9000 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Models/Category.cs @@ -0,0 +1,45 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace KiotaSamples.PetStoreSdk.Models { + public class Category : IParsable { + /// The id property + public long? Id { get; set; } + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static Category CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Category(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"id", n => { Id = n.GetLongValue(); } }, + {"name", n => { Name = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteLongValue("id", Id); + writer.WriteStringValue("name", Name); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Models/Order.cs b/petstore/dotnet/PetstoreClient/Models/Order.cs new file mode 100644 index 0000000000..1c6ef8f92a --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Models/Order.cs @@ -0,0 +1,55 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace KiotaSamples.PetStoreSdk.Models { + public class Order : IParsable { + /// The complete property + public bool? Complete { get; set; } + /// The id property + public long? Id { get; set; } + /// The petId property + public long? PetId { get; set; } + /// The quantity property + public int? Quantity { get; set; } + /// The shipDate property + public DateTimeOffset? ShipDate { get; set; } + /// Order Status + public Order_status? Status { get; set; } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static Order CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Order(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"complete", n => { Complete = n.GetBoolValue(); } }, + {"id", n => { Id = n.GetLongValue(); } }, + {"petId", n => { PetId = n.GetLongValue(); } }, + {"quantity", n => { Quantity = n.GetIntValue(); } }, + {"shipDate", n => { ShipDate = n.GetDateTimeOffsetValue(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("complete", Complete); + writer.WriteLongValue("id", Id); + writer.WriteLongValue("petId", PetId); + writer.WriteIntValue("quantity", Quantity); + writer.WriteDateTimeOffsetValue("shipDate", ShipDate); + writer.WriteEnumValue("status", Status); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Models/Order_status.cs b/petstore/dotnet/PetstoreClient/Models/Order_status.cs new file mode 100644 index 0000000000..3da67749a2 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Models/Order_status.cs @@ -0,0 +1,8 @@ +namespace KiotaSamples.PetStoreSdk.Models { + /// Order Status + public enum Order_status { + Placed, + Approved, + Delivered, + } +} diff --git a/petstore/dotnet/PetstoreClient/Models/Pet.cs b/petstore/dotnet/PetstoreClient/Models/Pet.cs new file mode 100644 index 0000000000..ae427410f8 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Models/Pet.cs @@ -0,0 +1,79 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace KiotaSamples.PetStoreSdk.Models { + public class Pet : IParsable { + /// The category property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public KiotaSamples.PetStoreSdk.Models.Category? Category { get; set; } +#nullable restore +#else + public KiotaSamples.PetStoreSdk.Models.Category Category { get; set; } +#endif + /// The id property + public long? Id { get; set; } + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// The photoUrls property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? PhotoUrls { get; set; } +#nullable restore +#else + public List PhotoUrls { get; set; } +#endif + /// pet status in the store + public Pet_status? Status { get; set; } + /// The tags property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Tags { get; set; } +#nullable restore +#else + public List Tags { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static Pet CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Pet(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"category", n => { Category = n.GetObjectValue(KiotaSamples.PetStoreSdk.Models.Category.CreateFromDiscriminatorValue); } }, + {"id", n => { Id = n.GetLongValue(); } }, + {"name", n => { Name = n.GetStringValue(); } }, + {"photoUrls", n => { PhotoUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + {"tags", n => { Tags = n.GetCollectionOfObjectValues(Tag.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("category", Category); + writer.WriteLongValue("id", Id); + writer.WriteStringValue("name", Name); + writer.WriteCollectionOfPrimitiveValues("photoUrls", PhotoUrls); + writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfObjectValues("tags", Tags); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Models/Pet_status.cs b/petstore/dotnet/PetstoreClient/Models/Pet_status.cs new file mode 100644 index 0000000000..fd1fde63fa --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Models/Pet_status.cs @@ -0,0 +1,8 @@ +namespace KiotaSamples.PetStoreSdk.Models { + /// pet status in the store + public enum Pet_status { + Available, + Pending, + Sold, + } +} diff --git a/petstore/dotnet/PetstoreClient/Models/Tag.cs b/petstore/dotnet/PetstoreClient/Models/Tag.cs new file mode 100644 index 0000000000..bff7b640b2 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Models/Tag.cs @@ -0,0 +1,45 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace KiotaSamples.PetStoreSdk.Models { + public class Tag : IParsable { + /// The id property + public long? Id { get; set; } + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static Tag CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Tag(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"id", n => { Id = n.GetLongValue(); } }, + {"name", n => { Name = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteLongValue("id", Id); + writer.WriteStringValue("name", Name); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Models/User.cs b/petstore/dotnet/PetstoreClient/Models/User.cs new file mode 100644 index 0000000000..06b5b972cc --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Models/User.cs @@ -0,0 +1,99 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace KiotaSamples.PetStoreSdk.Models { + public class User : IParsable { + /// The email property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Email { get; set; } +#nullable restore +#else + public string Email { get; set; } +#endif + /// The firstName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FirstName { get; set; } +#nullable restore +#else + public string FirstName { get; set; } +#endif + /// The id property + public long? Id { get; set; } + /// The lastName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LastName { get; set; } +#nullable restore +#else + public string LastName { get; set; } +#endif + /// The password property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Password { get; set; } +#nullable restore +#else + public string Password { get; set; } +#endif + /// The phone property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Phone { get; set; } +#nullable restore +#else + public string Phone { get; set; } +#endif + /// The username property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Username { get; set; } +#nullable restore +#else + public string Username { get; set; } +#endif + /// User Status + public int? UserStatus { get; set; } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static User CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new User(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"email", n => { Email = n.GetStringValue(); } }, + {"firstName", n => { FirstName = n.GetStringValue(); } }, + {"id", n => { Id = n.GetLongValue(); } }, + {"lastName", n => { LastName = n.GetStringValue(); } }, + {"password", n => { Password = n.GetStringValue(); } }, + {"phone", n => { Phone = n.GetStringValue(); } }, + {"username", n => { Username = n.GetStringValue(); } }, + {"userStatus", n => { UserStatus = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("email", Email); + writer.WriteStringValue("firstName", FirstName); + writer.WriteLongValue("id", Id); + writer.WriteStringValue("lastName", LastName); + writer.WriteStringValue("password", Password); + writer.WriteStringValue("phone", Phone); + writer.WriteStringValue("username", Username); + writer.WriteIntValue("userStatus", UserStatus); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Pet/FindByStatus/FindByStatusRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Pet/FindByStatus/FindByStatusRequestBuilder.cs new file mode 100644 index 0000000000..ef948e11fc --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Pet/FindByStatus/FindByStatusRequestBuilder.cs @@ -0,0 +1,122 @@ +using KiotaSamples.PetStoreSdk.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Pet.FindByStatus { + /// + /// Builds and executes requests for operations under \pet\findByStatus + /// + public class FindByStatusRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new FindByStatusRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FindByStatusRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet/findByStatus{?status*}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new FindByStatusRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FindByStatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet/findByStatus{?status*}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Multiple status values can be provided with comma separated strings + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task> GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, KiotaSamples.PetStoreSdk.Models.Pet.CreateFromDiscriminatorValue, default, cancellationToken); + return collectionResult?.ToList(); + } + /// + /// Multiple status values can be provided with comma separated strings + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FindByStatusRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Multiple status values can be provided with comma separated strings + /// + public class FindByStatusRequestBuilderGetQueryParameters { + /// Status values that need to be considered for filter +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string[]? Status { get; set; } +#nullable restore +#else + public string[] Status { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FindByStatusRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FindByStatusRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FindByStatusRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new findByStatusRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FindByStatusRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Pet/FindByTags/FindByTagsRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Pet/FindByTags/FindByTagsRequestBuilder.cs new file mode 100644 index 0000000000..4d12b25ab6 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Pet/FindByTags/FindByTagsRequestBuilder.cs @@ -0,0 +1,122 @@ +using KiotaSamples.PetStoreSdk.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Pet.FindByTags { + /// + /// Builds and executes requests for operations under \pet\findByTags + /// + public class FindByTagsRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new FindByTagsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FindByTagsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet/findByTags{?tags*}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new FindByTagsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FindByTagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet/findByTags{?tags*}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task> GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, KiotaSamples.PetStoreSdk.Models.Pet.CreateFromDiscriminatorValue, default, cancellationToken); + return collectionResult?.ToList(); + } + /// + /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FindByTagsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + /// + public class FindByTagsRequestBuilderGetQueryParameters { + /// Tags to filter by +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string[]? Tags { get; set; } +#nullable restore +#else + public string[] Tags { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FindByTagsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FindByTagsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FindByTagsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new findByTagsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FindByTagsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Pet/Item/UploadImage/UploadImageRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Pet/Item/UploadImage/UploadImageRequestBuilder.cs new file mode 100644 index 0000000000..f8fc56b7a8 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Pet/Item/UploadImage/UploadImageRequestBuilder.cs @@ -0,0 +1,107 @@ +using KiotaSamples.PetStoreSdk.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Pet.Item.UploadImage { + /// + /// Builds and executes requests for operations under \pet\{petId}\uploadImage + /// + public class UploadImageRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UploadImageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadImageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet/{petId}/uploadImage"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UploadImageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadImageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet/{petId}/uploadImage"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// uploads an image + /// + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Stream body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Stream body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, ApiResponse.CreateFromDiscriminatorValue, default, cancellationToken); + } + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Stream body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Stream body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetStreamContent(body); + if (requestConfiguration != null) { + var requestConfig = new UploadImageRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UploadImageRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new uploadImageRequestBuilderPostRequestConfiguration and sets the default values. + /// + public UploadImageRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Pet/Item/WithPetItemRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Pet/Item/WithPetItemRequestBuilder.cs new file mode 100644 index 0000000000..9226838789 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Pet/Item/WithPetItemRequestBuilder.cs @@ -0,0 +1,219 @@ +using KiotaSamples.PetStoreSdk.Models; +using KiotaSamples.PetStoreSdk.Pet.Item.UploadImage; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Pet.Item { + /// + /// Builds and executes requests for operations under \pet\{petId} + /// + public class WithPetItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// The uploadImage property + public UploadImageRequestBuilder UploadImage { get => + new UploadImageRequestBuilder(PathParameters, RequestAdapter); + } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new WithPetItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WithPetItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet/{petId}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new WithPetItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WithPetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet/{petId}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Deletes a pet + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// + /// Returns a single pet + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, KiotaSamples.PetStoreSdk.Models.Pet.CreateFromDiscriminatorValue, default, cancellationToken); + } + /// + /// Updates a pet in the store with form data + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(WithPetPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(WithPetPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new WithPetItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a single pet + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WithPetItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(WithPetPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(WithPetPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/x-www-form-urlencoded", body); + if (requestConfiguration != null) { + var requestConfig = new WithPetItemRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithPetItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithPetItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WithPetItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithPetItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithPetItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WithPetItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithPetItemRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithPetItemRequestBuilderPostRequestConfiguration and sets the default values. + /// + public WithPetItemRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Pet/Item/WithPetPostRequestBody.cs b/petstore/dotnet/PetstoreClient/Pet/Item/WithPetPostRequestBody.cs new file mode 100644 index 0000000000..9485d69faf --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Pet/Item/WithPetPostRequestBody.cs @@ -0,0 +1,51 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace KiotaSamples.PetStoreSdk.Pet.Item { + public class WithPetPostRequestBody : IParsable { + /// Updated name of the pet +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// Updated status of the pet +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Status { get; set; } +#nullable restore +#else + public string Status { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static WithPetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WithPetPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"name", n => { Name = n.GetStringValue(); } }, + {"status", n => { Status = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("status", Status); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Pet/PetRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Pet/PetRequestBuilder.cs new file mode 100644 index 0000000000..c33e8a7309 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Pet/PetRequestBuilder.cs @@ -0,0 +1,180 @@ +using KiotaSamples.PetStoreSdk.Models; +using KiotaSamples.PetStoreSdk.Pet.FindByStatus; +using KiotaSamples.PetStoreSdk.Pet.FindByTags; +using KiotaSamples.PetStoreSdk.Pet.Item; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Pet { + /// + /// Builds and executes requests for operations under \pet + /// + public class PetRequestBuilder { + /// The findByStatus property + public FindByStatusRequestBuilder FindByStatus { get => + new FindByStatusRequestBuilder(PathParameters, RequestAdapter); + } + /// The findByTags property + public FindByTagsRequestBuilder FindByTags { get => + new FindByTagsRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Gets an item from the KiotaSamples.PetStoreSdk.pet.item collection + public WithPetItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("petId", position); + return new WithPetItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new PetRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PetRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PetRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PetRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/pet"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Add a new pet to the store + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(KiotaSamples.PetStoreSdk.Models.Pet body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(KiotaSamples.PetStoreSdk.Models.Pet body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// + /// Update an existing pet + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(KiotaSamples.PetStoreSdk.Models.Pet body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PutAsync(KiotaSamples.PetStoreSdk.Models.Pet body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(KiotaSamples.PetStoreSdk.Models.Pet body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(KiotaSamples.PetStoreSdk.Models.Pet body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PetRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(KiotaSamples.PetStoreSdk.Models.Pet body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(KiotaSamples.PetStoreSdk.Models.Pet body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PUT, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PetRequestBuilderPutRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PetRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new petRequestBuilderPostRequestConfiguration and sets the default values. + /// + public PetRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PetRequestBuilderPutRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new petRequestBuilderPutRequestConfiguration and sets the default values. + /// + public PetRequestBuilderPutRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/PetstoreApiClient.cs b/petstore/dotnet/PetstoreClient/PetstoreApiClient.cs new file mode 100644 index 0000000000..5ca3de0b67 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/PetstoreApiClient.cs @@ -0,0 +1,58 @@ +using KiotaSamples.PetStoreSdk.Pet; +using KiotaSamples.PetStoreSdk.Store; +using KiotaSamples.PetStoreSdk.User; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Serialization.Form; +using Microsoft.Kiota.Serialization.Json; +using Microsoft.Kiota.Serialization.Text; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk { + /// + /// The main entry point of the SDK, exposes the configuration and the fluent API. + /// + public class PetstoreApiClient { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The pet property + public PetRequestBuilder Pet { get => + new PetRequestBuilder(PathParameters, RequestAdapter); + } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// The store property + public StoreRequestBuilder Store { get => + new StoreRequestBuilder(PathParameters, RequestAdapter); + } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// The user property + public UserRequestBuilder User { get => + new UserRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new PetstoreApiClient and sets the default values. + /// + /// The request adapter to use to execute the requests. + public PetstoreApiClient(IRequestAdapter requestAdapter) { + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + PathParameters = new Dictionary(); + UrlTemplate = "{+baseurl}"; + RequestAdapter = requestAdapter; + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + if (string.IsNullOrEmpty(RequestAdapter.BaseUrl)) { + RequestAdapter.BaseUrl = "https://petstore.swagger.io/v2"; + } + PathParameters.TryAdd("baseurl", RequestAdapter.BaseUrl); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Store/Inventory/InventoryRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Store/Inventory/InventoryRequestBuilder.cs new file mode 100644 index 0000000000..bc0ca05143 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Store/Inventory/InventoryRequestBuilder.cs @@ -0,0 +1,104 @@ +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Store.Inventory { + /// + /// Builds and executes requests for operations under \store\inventory + /// + public class InventoryRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new InventoryRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InventoryRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/store/inventory"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new InventoryRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InventoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/store/inventory"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Returns a map of status codes to quantities + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, InventoryResponse.CreateFromDiscriminatorValue, default, cancellationToken); + } + /// + /// Returns a map of status codes to quantities + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new InventoryRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class InventoryRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new inventoryRequestBuilderGetRequestConfiguration and sets the default values. + /// + public InventoryRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Store/Inventory/InventoryResponse.cs b/petstore/dotnet/PetstoreClient/Store/Inventory/InventoryResponse.cs new file mode 100644 index 0000000000..b19d75690f --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Store/Inventory/InventoryResponse.cs @@ -0,0 +1,31 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace KiotaSamples.PetStoreSdk.Store.Inventory { + public class InventoryResponse : IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static InventoryResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new InventoryResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Store/Order/Item/WithOrderItemRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Store/Order/Item/WithOrderItemRequestBuilder.cs new file mode 100644 index 0000000000..c71712a04a --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Store/Order/Item/WithOrderItemRequestBuilder.cs @@ -0,0 +1,160 @@ +using KiotaSamples.PetStoreSdk.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Store.Order.Item { + /// + /// Builds and executes requests for operations under \store\order\{orderId} + /// + public class WithOrderItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new WithOrderItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WithOrderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/store/order/{orderId}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new WithOrderItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WithOrderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/store/order/{orderId}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// + /// For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, KiotaSamples.PetStoreSdk.Models.Order.CreateFromDiscriminatorValue, default, cancellationToken); + } + /// + /// For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new WithOrderItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WithOrderItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithOrderItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithOrderItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WithOrderItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithOrderItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithOrderItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WithOrderItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Store/Order/OrderRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Store/Order/OrderRequestBuilder.cs new file mode 100644 index 0000000000..d3e1259aef --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Store/Order/OrderRequestBuilder.cs @@ -0,0 +1,114 @@ +using KiotaSamples.PetStoreSdk.Models; +using KiotaSamples.PetStoreSdk.Store.Order.Item; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Store.Order { + /// + /// Builds and executes requests for operations under \store\order + /// + public class OrderRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Gets an item from the KiotaSamples.PetStoreSdk.store.order.item collection + public WithOrderItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("orderId", position); + return new WithOrderItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new OrderRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public OrderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/store/order"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new OrderRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public OrderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/store/order"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Place an order for a pet + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(KiotaSamples.PetStoreSdk.Models.Order body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(KiotaSamples.PetStoreSdk.Models.Order body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, KiotaSamples.PetStoreSdk.Models.Order.CreateFromDiscriminatorValue, default, cancellationToken); + } + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(KiotaSamples.PetStoreSdk.Models.Order body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(KiotaSamples.PetStoreSdk.Models.Order body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new OrderRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class OrderRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new orderRequestBuilderPostRequestConfiguration and sets the default values. + /// + public OrderRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/Store/StoreRequestBuilder.cs b/petstore/dotnet/PetstoreClient/Store/StoreRequestBuilder.cs new file mode 100644 index 0000000000..eb5426462a --- /dev/null +++ b/petstore/dotnet/PetstoreClient/Store/StoreRequestBuilder.cs @@ -0,0 +1,56 @@ +using KiotaSamples.PetStoreSdk.Store.Inventory; +using KiotaSamples.PetStoreSdk.Store.Order; +using Microsoft.Kiota.Abstractions; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.Store { + /// + /// Builds and executes requests for operations under \store + /// + public class StoreRequestBuilder { + /// The inventory property + public InventoryRequestBuilder Inventory { get => + new InventoryRequestBuilder(PathParameters, RequestAdapter); + } + /// The order property + public OrderRequestBuilder Order { get => + new OrderRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new StoreRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/store"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new StoreRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/store"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + } +} diff --git a/petstore/dotnet/PetstoreClient/User/CreateWithArray/CreateWithArrayRequestBuilder.cs b/petstore/dotnet/PetstoreClient/User/CreateWithArray/CreateWithArrayRequestBuilder.cs new file mode 100644 index 0000000000..4e4daf582d --- /dev/null +++ b/petstore/dotnet/PetstoreClient/User/CreateWithArray/CreateWithArrayRequestBuilder.cs @@ -0,0 +1,106 @@ +using KiotaSamples.PetStoreSdk.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.User.CreateWithArray { + /// + /// Builds and executes requests for operations under \user\createWithArray + /// + public class CreateWithArrayRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CreateWithArrayRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CreateWithArrayRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/createWithArray"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CreateWithArrayRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CreateWithArrayRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/createWithArray"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Creates list of users with given input array + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(List body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(List body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(List body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(List body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CreateWithArrayRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CreateWithArrayRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new createWithArrayRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CreateWithArrayRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/User/CreateWithList/CreateWithListRequestBuilder.cs b/petstore/dotnet/PetstoreClient/User/CreateWithList/CreateWithListRequestBuilder.cs new file mode 100644 index 0000000000..60c47f53c1 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/User/CreateWithList/CreateWithListRequestBuilder.cs @@ -0,0 +1,106 @@ +using KiotaSamples.PetStoreSdk.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.User.CreateWithList { + /// + /// Builds and executes requests for operations under \user\createWithList + /// + public class CreateWithListRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CreateWithListRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CreateWithListRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/createWithList"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CreateWithListRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CreateWithListRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/createWithList"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Creates list of users with given input array + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(List body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(List body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(List body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(List body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CreateWithListRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CreateWithListRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new createWithListRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CreateWithListRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/User/Item/WithUsernameItemRequestBuilder.cs b/petstore/dotnet/PetstoreClient/User/Item/WithUsernameItemRequestBuilder.cs new file mode 100644 index 0000000000..fb3d6832ef --- /dev/null +++ b/petstore/dotnet/PetstoreClient/User/Item/WithUsernameItemRequestBuilder.cs @@ -0,0 +1,217 @@ +using KiotaSamples.PetStoreSdk.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.User.Item { + /// + /// Builds and executes requests for operations under \user\{username} + /// + public class WithUsernameItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new WithUsernameItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WithUsernameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/{username}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new WithUsernameItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WithUsernameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/{username}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// This can only be done by the logged in user. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// + /// Get user by user name + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, KiotaSamples.PetStoreSdk.Models.User.CreateFromDiscriminatorValue, default, cancellationToken); + } + /// + /// This can only be done by the logged in user. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(KiotaSamples.PetStoreSdk.Models.User body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PutAsync(KiotaSamples.PetStoreSdk.Models.User body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// + /// This can only be done by the logged in user. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new WithUsernameItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WithUsernameItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// This can only be done by the logged in user. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(KiotaSamples.PetStoreSdk.Models.User body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(KiotaSamples.PetStoreSdk.Models.User body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PUT, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new WithUsernameItemRequestBuilderPutRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithUsernameItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithUsernameItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WithUsernameItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithUsernameItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithUsernameItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WithUsernameItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithUsernameItemRequestBuilderPutRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithUsernameItemRequestBuilderPutRequestConfiguration and sets the default values. + /// + public WithUsernameItemRequestBuilderPutRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/User/Login/LoginRequestBuilder.cs b/petstore/dotnet/PetstoreClient/User/Login/LoginRequestBuilder.cs new file mode 100644 index 0000000000..81f8e32c9e --- /dev/null +++ b/petstore/dotnet/PetstoreClient/User/Login/LoginRequestBuilder.cs @@ -0,0 +1,125 @@ +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.User.Login { + /// + /// Builds and executes requests for operations under \user\login + /// + public class LoginRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new LoginRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LoginRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/login{?username*,password*}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new LoginRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LoginRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/login{?username*,password*}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Logs user into the system + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LoginRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Logs user into the system + /// + public class LoginRequestBuilderGetQueryParameters { + /// The password for login in clear text +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Password { get; set; } +#nullable restore +#else + public string Password { get; set; } +#endif + /// The user name for login +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Username { get; set; } +#nullable restore +#else + public string Username { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LoginRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LoginRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LoginRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new loginRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LoginRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/User/Logout/LogoutRequestBuilder.cs b/petstore/dotnet/PetstoreClient/User/Logout/LogoutRequestBuilder.cs new file mode 100644 index 0000000000..2634dc4b9a --- /dev/null +++ b/petstore/dotnet/PetstoreClient/User/Logout/LogoutRequestBuilder.cs @@ -0,0 +1,100 @@ +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.User.Logout { + /// + /// Builds and executes requests for operations under \user\logout + /// + public class LogoutRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new LogoutRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LogoutRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/logout"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new LogoutRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LogoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user/logout"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Logs out current logged in user session + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new LogoutRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LogoutRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new logoutRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LogoutRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/User/UserRequestBuilder.cs b/petstore/dotnet/PetstoreClient/User/UserRequestBuilder.cs new file mode 100644 index 0000000000..2a6e544d21 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/User/UserRequestBuilder.cs @@ -0,0 +1,136 @@ +using KiotaSamples.PetStoreSdk.Models; +using KiotaSamples.PetStoreSdk.User.CreateWithArray; +using KiotaSamples.PetStoreSdk.User.CreateWithList; +using KiotaSamples.PetStoreSdk.User.Item; +using KiotaSamples.PetStoreSdk.User.Login; +using KiotaSamples.PetStoreSdk.User.Logout; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace KiotaSamples.PetStoreSdk.User { + /// + /// Builds and executes requests for operations under \user + /// + public class UserRequestBuilder { + /// The createWithArray property + public CreateWithArrayRequestBuilder CreateWithArray { get => + new CreateWithArrayRequestBuilder(PathParameters, RequestAdapter); + } + /// The createWithList property + public CreateWithListRequestBuilder CreateWithList { get => + new CreateWithListRequestBuilder(PathParameters, RequestAdapter); + } + /// The login property + public LoginRequestBuilder Login { get => + new LoginRequestBuilder(PathParameters, RequestAdapter); + } + /// The logout property + public LogoutRequestBuilder Logout { get => + new LogoutRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Gets an item from the KiotaSamples.PetStoreSdk.user.item collection + public WithUsernameItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("username", position); + return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new UserRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UserRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/user"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// This can only be done by the logged in user. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(KiotaSamples.PetStoreSdk.Models.User body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(KiotaSamples.PetStoreSdk.Models.User body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken); + } + /// + /// This can only be done by the logged in user. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(KiotaSamples.PetStoreSdk.Models.User body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(KiotaSamples.PetStoreSdk.Models.User body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new UserRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new userRequestBuilderPostRequestConfiguration and sets the default values. + /// + public UserRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/petstore/dotnet/PetstoreClient/kiota-lock.json b/petstore/dotnet/PetstoreClient/kiota-lock.json new file mode 100644 index 0000000000..3de7dbfa44 --- /dev/null +++ b/petstore/dotnet/PetstoreClient/kiota-lock.json @@ -0,0 +1,29 @@ +{ + "descriptionHash": "81B895DC33FF5B157B232967D75AE2C913E9FFB2ADA3201EF6FCCA52F64235F336CB6FD1D94538BB21546142235E3B034634A1A5DFD6CAFD25D28D5E9BE2133F", + "descriptionLocation": "https://petstore.swagger.io/v2/swagger.json", + "lockFileVersion": "1.0.0", + "kiotaVersion": "1.0.1", + "clientClassName": "PetstoreApiClient", + "clientNamespaceName": "KiotaSamples.PetStoreSdk", + "language": "CSharp", + "usesBackingStore": false, + "includeAdditionalData": false, + "serializers": [ + "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory" + ], + "deserializers": [ + "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", + "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", + "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" + ], + "structuredMimeTypes": [ + "application/json", + "text/plain", + "application/x-www-form-urlencoded" + ], + "includePatterns": [], + "excludePatterns": [], + "disabledValidationRules": [] +} \ No newline at end of file diff --git a/petstore/dotnet/Program.cs b/petstore/dotnet/Program.cs new file mode 100644 index 0000000000..eb8e42572b --- /dev/null +++ b/petstore/dotnet/Program.cs @@ -0,0 +1,105 @@ + + + +// ** Swagger Petstore sample + +// - Setup how we will render the json to the console. hint: we want it to render nicely! +// - Create an instance of our API Client, which will end up talking to the Swagger Petstore api +// and deserialize any of the returned data into nice POCO's. + + +Console.WriteLine(Environment.NewLine); +Console.WriteLine("Welcome to the Swagger Petstore example!"); +Console.WriteLine(Environment.NewLine); +Console.WriteLine(Environment.NewLine); +Console.WriteLine("------------------------------------------------------"); +Console.WriteLine(Environment.NewLine); + + +// Lets make the json look pretty, on the screen 😻 +var jsonSerializerOptions = new JsonSerializerOptions +{ + WriteIndented = true +}; +jsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()); + + + + +// Create our Api Client. + +// The Swagger Petstore OpenApi endpoints don't require any authentication. +var authProvider = new Microsoft.Kiota.Abstractions.Authentication.AnonymousAuthenticationProvider(); + +// When need a Kiota-specific HTTP Client to do our work. As such, we'll setup our 'Adapter' +// to use the anonymous authentication provider because we don't need to authenticate when making any API requests. +var requestAdapter = new Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter(authProvider); + +// Finally -> our main api client (strongly typed, of course!) +var petstoreApiClient = new PetstoreApiClient(requestAdapter); + + +// Now lets start calling the API and getting some data! 🚀 + +Console.WriteLine(" => Calling api endpoint: pet/findByStatus"); +var firstPetId = await FindPetsByStatus(petstoreApiClient, jsonSerializerOptions); + +Console.WriteLine(Environment.NewLine); +Console.WriteLine(Environment.NewLine); +Console.WriteLine(" => Calling api endpoint: store/inventory"); +await GetPetInfoAsync(firstPetId, petstoreApiClient, jsonSerializerOptions); + +Console.WriteLine(Environment.NewLine); +Console.WriteLine(Environment.NewLine); +Console.WriteLine(" -- end of sample --"); +Console.WriteLine(Environment.NewLine); +Console.WriteLine(Environment.NewLine); + + + + +/**************************************************************/ + +// Special notes: +// This endpoint accepts -multiple- querystring params with the same keyword: 'status'. +// e.g. status=pending and +// status=sold +// This is translated to an array, with the generated SDK. ⚡ +static async Task FindPetsByStatus(PetstoreApiClient client, JsonSerializerOptions jsonSerializerOptions) +{ + var statuses = new[] { "pending", "sold" }; // Mutliple statuses we are going to query on. + + // Sample curl: + // curl -X 'GET' 'https://petstore.swagger.io/v2/pet/findByStatus?status=available&status=pending&status=sold' -H 'accept: application/json' + + var results = (await client.Pet.FindByStatus.GetAsync(x => x.QueryParameters.Status = statuses)).ToList(); + + var numberOfItems = results.Count > 5 ? 5 : results.Count; + + Console.WriteLine($"Found {results.Count} results."); + Console.WriteLine($" .. First 1-{numberOfItems} results (where applicable): "); + + for (int i = 0; i < numberOfItems; i++) + { + var json = JsonSerializer.Serialize(results[i], jsonSerializerOptions); + + Console.Write($" {i}) ----------------------------------------------------------------------------- "); + Console.WriteLine(json); + } + + var firstPetId = results.First().Id!.Value; + return firstPetId; +} + + +static async Task GetPetInfoAsync(long firstPetId, PetstoreApiClient client, JsonSerializerOptions jsonSerializerOptions) +{ + // Sample curl: + // curl -X 'GET' 'https://petstore.swagger.io/v2/store/inventory' -H 'accept: application/json' + + var result = await client.Pet[firstPetId.ToString()].GetAsync(); + + + var json = JsonSerializer.Serialize(result, jsonSerializerOptions); + Console.WriteLine(json); +} \ No newline at end of file diff --git a/petstore/dotnet/dotnet.csproj b/petstore/dotnet/dotnet.csproj new file mode 100644 index 0000000000..8aa9b5c373 --- /dev/null +++ b/petstore/dotnet/dotnet.csproj @@ -0,0 +1,18 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + \ No newline at end of file diff --git a/petstore/dotnet/dotnet.sln b/petstore/dotnet/dotnet.sln new file mode 100644 index 0000000000..e9d15361da --- /dev/null +++ b/petstore/dotnet/dotnet.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32825.248 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet", "dotnet.csproj", "{208E6632-03CA-4F2A-9143-FF9C349DF5DA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {208E6632-03CA-4F2A-9143-FF9C349DF5DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {208E6632-03CA-4F2A-9143-FF9C349DF5DA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {208E6632-03CA-4F2A-9143-FF9C349DF5DA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {208E6632-03CA-4F2A-9143-FF9C349DF5DA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {611A1AFC-AD93-4409-9887-DF0B38F5228F} + EndGlobalSection +EndGlobal diff --git a/petstore/go/app.go b/petstore/go/app.go new file mode 100644 index 0000000000..41370fa271 --- /dev/null +++ b/petstore/go/app.go @@ -0,0 +1,46 @@ +package main + +import ( + "context" + "fmt" + + azidentity "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + a "github.com/microsoft/kiota-authentication-azure-go" + r "github.com/microsoft/kiota-http-go" + u "github.com/microsoft/kiota-samples/petstore/go/utilities" +) + +func main() { + cred, err := azidentity.NewDeviceCodeCredential(&azidentity.DeviceCodeCredentialOptions{ + TenantID: "09988f3c-947e-4986-a87e-37ad49a3b175", + ClientID: "f19e2a30-d500-4fa7-8582-bd6099088b37", + UserPrompt: func(ctx context.Context, message azidentity.DeviceCodeMessage) error { + fmt.Println(message.Message) + return nil + }, + }) + if err != nil { + fmt.Printf("Error creating credentials: %v\n", err) + } + auth, err := a.NewAzureIdentityAuthenticationProviderWithScopes(cred, []string{"Mail.Read", "Mail.Send"}) + if err != nil { + fmt.Printf("Error authentication provider: %v\n", err) + return + } + adapter, err := r.NewNetHttpRequestAdapter(auth) + if err != nil { + fmt.Printf("Error creating adapter: %v\n", err) + return + } + client := u.NewApiClient(adapter) + response, err := client.PetById("mishka").Get(context.Background(), nil) + if err != nil { + fmt.Printf("Error getting pet: %v\n", err) + return + } + fmt.Printf("Pet : %v\n", *(response.GetName())) +} + +func StrToPtr(s string) *string { + return &s +} diff --git a/petstore/go/go.mod b/petstore/go/go.mod new file mode 100644 index 0000000000..acf83284e8 --- /dev/null +++ b/petstore/go/go.mod @@ -0,0 +1,37 @@ +module github.com/microsoft/kiota-samples/petstore/go + +go 1.20 + +require ( + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 + github.com/microsoft/kiota-abstractions-go v0.17.2 + github.com/microsoft/kiota-authentication-azure-go v0.6.0 + github.com/microsoft/kiota-http-go v0.16.0 + github.com/microsoft/kiota-serialization-form-go v0.9.0 + github.com/microsoft/kiota-serialization-json-go v0.8.2 + github.com/microsoft/kiota-serialization-text-go v0.7.0 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 // indirect + github.com/cjlapao/common-go v0.0.39 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/go-logr/logr v1.2.3 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/golang-jwt/jwt/v4 v4.5.0 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/stretchr/testify v1.8.2 // indirect + github.com/yosida95/uritemplate/v3 v3.0.2 // indirect + go.opentelemetry.io/otel v1.14.0 // indirect + go.opentelemetry.io/otel/trace v1.14.0 // indirect + golang.org/x/crypto v0.6.0 // indirect + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/petstore/go/go.sum b/petstore/go/go.sum new file mode 100644 index 0000000000..0aacb6fe40 --- /dev/null +++ b/petstore/go/go.sum @@ -0,0 +1,66 @@ +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2/go.mod h1:twTKAa1E6hLmSDjLhaCkbTMQKc7p/rNLU40rLxGEOCI= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 h1:leh5DwKv6Ihwi+h60uHtn6UWAxBbZ0q8DwQVMzf61zw= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 h1:UE9n9rkJF62ArLb1F3DEjRt8O3jLwMWdSoypKV4f3MU= +github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= +github.com/cjlapao/common-go v0.0.39 h1:bAAUrj2B9v0kMzbAOhzjSmiyDy+rd56r2sy7oEiQLlA= +github.com/cjlapao/common-go v0.0.39/go.mod h1:M3dzazLjTjEtZJbbxoA5ZDiGCiHmpwqW9l4UWaddwOA= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= +github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= +github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/microsoft/kiota-abstractions-go v0.17.2 h1:VETWFZ6s8IGcAg/BIBiQobXnTb/CNtsPB1zmwDoEGZk= +github.com/microsoft/kiota-abstractions-go v0.17.2/go.mod h1:3/n5Sa5Syy8gPI/y2+DkUIVbsTCQALmWCk+GQEPQdnI= +github.com/microsoft/kiota-authentication-azure-go v0.6.0 h1:Il9bLO34J6D8DY89xYAXoGh9muvlphayqG4eihyT6B8= +github.com/microsoft/kiota-authentication-azure-go v0.6.0/go.mod h1:EJCHiLWLXW1/mSgX7lYReAhVO37MzRT5Xi2mcPTwCRQ= +github.com/microsoft/kiota-http-go v0.16.0 h1:eRRKAUwZfVTPNrHJ/DBYUT3BkjZJ5wyl2mhNqG91eu8= +github.com/microsoft/kiota-http-go v0.16.0/go.mod h1:4B/FetdJ1/XAIV7Qe84LgF0HV64NRPWzLruLFcdVqmc= +github.com/microsoft/kiota-serialization-form-go v0.9.0 h1:ZMyvuxg7z1LmRWJOXr5QuJlwnD/tuNatb+k1KPURBFQ= +github.com/microsoft/kiota-serialization-form-go v0.9.0/go.mod h1:FQqYzIrGX6KUoDOlg+DhDWoGaZoB8AicBYGOsBq0Dw4= +github.com/microsoft/kiota-serialization-json-go v0.8.2 h1:vLKZAOiMsaUxq36RDo3S/FfQbW2VQCdAIu4DS7+Qhrk= +github.com/microsoft/kiota-serialization-json-go v0.8.2/go.mod h1:gGcLNSdIdOZ4la2qztA0vaCq/LtlA53gpP+ur8n/+oA= +github.com/microsoft/kiota-serialization-text-go v0.7.0 h1:uayeq8fpDcZgL0zDyLkYZsH6zNnEXKgp+bRWfR5LcxA= +github.com/microsoft/kiota-serialization-text-go v0.7.0/go.mod h1:2su1PTllHCMNkHugmvpYad+AKBXUUGoiNP3xOAJUL7w= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= +github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= +go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= +go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= +go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= +go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= +golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/petstore/go/utilities/api_client.go b/petstore/go/utilities/api_client.go new file mode 100644 index 0000000000..e183f73c13 --- /dev/null +++ b/petstore/go/utilities/api_client.go @@ -0,0 +1,75 @@ +package utilities + +import ( + i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488 "github.com/microsoft/kiota-serialization-json-go" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347 "github.com/microsoft/kiota-serialization-form-go" + i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83 "github.com/microsoft/kiota-serialization-text-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + i30fc20112facbd93862049bcbeffb8938df51d762c36a3f68cc5f482741730d9 "github.com/microsoft/kiota-samples/petstore/go/utilities/store" + i3c37a61d7272de22ab30735a6fa0fcf0b883a5c82cf706fd10365a3203e1235b "github.com/microsoft/kiota-samples/petstore/go/utilities/user" + if5191a3b08f2ce6dfdeab2abbf317a97232aa6a8a9ced702da7454d6f82d5050 "github.com/microsoft/kiota-samples/petstore/go/utilities/pet" +) + +// ApiClient the main entry point of the SDK, exposes the configuration and the fluent API. +type ApiClient struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// NewApiClient instantiates a new ApiClient and sets the default values. +func NewApiClient(requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApiClient) { + m := &ApiClient{ + } + m.pathParameters = make(map[string]string); + m.urlTemplate = "{+baseurl}"; + m.requestAdapter = requestAdapter + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonSerializationWriterFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextSerializationWriterFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormSerializationWriterFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonParseNodeFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextParseNodeFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormParseNodeFactory() }) + if m.requestAdapter.GetBaseUrl() == "" { + m.requestAdapter.SetBaseUrl("https://petstore.swagger.io/v2") + } + m.pathParameters["baseurl"] = m.requestAdapter.GetBaseUrl() + return m +} +// Pet the pet property +func (m *ApiClient) Pet()(*if5191a3b08f2ce6dfdeab2abbf317a97232aa6a8a9ced702da7454d6f82d5050.PetRequestBuilder) { + return if5191a3b08f2ce6dfdeab2abbf317a97232aa6a8a9ced702da7454d6f82d5050.NewPetRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// PetById gets an item from the github.com/microsoft/kiota-samples/petstore/go/utilities/.pet.item collection +func (m *ApiClient) PetById(id string)(*if5191a3b08f2ce6dfdeab2abbf317a97232aa6a8a9ced702da7454d6f82d5050.WithPetItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.pathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["petId"] = id + } + return if5191a3b08f2ce6dfdeab2abbf317a97232aa6a8a9ced702da7454d6f82d5050.NewWithPetItemRequestBuilderInternal(urlTplParams, m.requestAdapter) +} +// Store the store property +func (m *ApiClient) Store()(*i30fc20112facbd93862049bcbeffb8938df51d762c36a3f68cc5f482741730d9.StoreRequestBuilder) { + return i30fc20112facbd93862049bcbeffb8938df51d762c36a3f68cc5f482741730d9.NewStoreRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// User the user property +func (m *ApiClient) User()(*i3c37a61d7272de22ab30735a6fa0fcf0b883a5c82cf706fd10365a3203e1235b.UserRequestBuilder) { + return i3c37a61d7272de22ab30735a6fa0fcf0b883a5c82cf706fd10365a3203e1235b.NewUserRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// UserById gets an item from the github.com/microsoft/kiota-samples/petstore/go/utilities/.user.item collection +func (m *ApiClient) UserById(id string)(*i3c37a61d7272de22ab30735a6fa0fcf0b883a5c82cf706fd10365a3203e1235b.WithUsernameItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.pathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["username"] = id + } + return i3c37a61d7272de22ab30735a6fa0fcf0b883a5c82cf706fd10365a3203e1235b.NewWithUsernameItemRequestBuilderInternal(urlTplParams, m.requestAdapter) +} diff --git a/petstore/go/utilities/kiota-lock.json b/petstore/go/utilities/kiota-lock.json new file mode 100644 index 0000000000..ae41411f2b --- /dev/null +++ b/petstore/go/utilities/kiota-lock.json @@ -0,0 +1,29 @@ +{ + "descriptionHash": "81489CE0A2C3A5B9FDA34286D98EAD1F70952B4A7E583141D77C44A75BB48C6D09D87AF34CFB2731FAC4C5A2908F4BACDF43812A75B0A75E878722C78382740B", + "descriptionLocation": "https://petstore.swagger.io/v2/swagger.json", + "lockFileVersion": "1.0.0", + "kiotaVersion": "1.0.1", + "clientClassName": "ApiClient", + "clientNamespaceName": "github.com/microsoft/kiota-samples/petstore/go/utilities/", + "language": "Go", + "usesBackingStore": false, + "includeAdditionalData": true, + "serializers": [ + "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory" + ], + "deserializers": [ + "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", + "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", + "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" + ], + "structuredMimeTypes": [ + "application/json", + "text/plain", + "application/x-www-form-urlencoded" + ], + "includePatterns": [], + "excludePatterns": [], + "disabledValidationRules": [] +} \ No newline at end of file diff --git a/petstore/go/utilities/models/api_response.go b/petstore/go/utilities/models/api_response.go new file mode 100644 index 0000000000..0dec1dcf11 --- /dev/null +++ b/petstore/go/utilities/models/api_response.go @@ -0,0 +1,134 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ApiResponse +type ApiResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The code property + code *int32 + // The message property + message *string + // The type property + typeEscaped *string +} +// NewApiResponse instantiates a new ApiResponse and sets the default values. +func NewApiResponse()(*ApiResponse) { + m := &ApiResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateApiResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateApiResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApiResponse(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ApiResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCode gets the code property value. The code property +func (m *ApiResponse) GetCode()(*int32) { + return m.code +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ApiResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetType(val) + } + return nil + } + return res +} +// GetMessage gets the message property value. The message property +func (m *ApiResponse) GetMessage()(*string) { + return m.message +} +// GetType gets the type property value. The type property +func (m *ApiResponse) GetType()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *ApiResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("code", m.GetCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ApiResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCode sets the code property value. The code property +func (m *ApiResponse) SetCode(value *int32)() { + m.code = value +} +// SetMessage sets the message property value. The message property +func (m *ApiResponse) SetMessage(value *string)() { + m.message = value +} +// SetType sets the type property value. The type property +func (m *ApiResponse) SetType(value *string)() { + m.typeEscaped = value +} +// ApiResponseable +type ApiResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCode()(*int32) + GetMessage()(*string) + GetType()(*string) + SetCode(value *int32)() + SetMessage(value *string)() + SetType(value *string)() +} diff --git a/petstore/go/utilities/models/category.go b/petstore/go/utilities/models/category.go new file mode 100644 index 0000000000..273c816861 --- /dev/null +++ b/petstore/go/utilities/models/category.go @@ -0,0 +1,106 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Category +type Category struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The id property + id *int64 + // The name property + name *string +} +// NewCategory instantiates a new Category and sets the default values. +func NewCategory()(*Category) { + m := &Category{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCategoryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCategoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCategory(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Category) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +func (m *Category) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +func (m *Category) GetId()(*int64) { + return m.id +} +// GetName gets the name property value. The name property +func (m *Category) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *Category) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt64Value("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Category) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The id property +func (m *Category) SetId(value *int64)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *Category) SetName(value *string)() { + m.name = value +} +// Categoryable +type Categoryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*int64) + GetName()(*string) + SetId(value *int64)() + SetName(value *string)() +} diff --git a/petstore/go/utilities/models/order.go b/petstore/go/utilities/models/order.go new file mode 100644 index 0000000000..87ad135058 --- /dev/null +++ b/petstore/go/utilities/models/order.go @@ -0,0 +1,220 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Order +type Order struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The complete property + complete *bool + // The id property + id *int64 + // The petId property + petId *int64 + // The quantity property + quantity *int32 + // The shipDate property + shipDate *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Order Status + status *Order_status +} +// NewOrder instantiates a new Order and sets the default values. +func NewOrder()(*Order) { + m := &Order{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOrderFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOrderFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOrder(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Order) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetComplete gets the complete property value. The complete property +func (m *Order) GetComplete()(*bool) { + return m.complete +} +// GetFieldDeserializers the deserialization information for the current model +func (m *Order) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["complete"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetComplete(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["petId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetPetId(val) + } + return nil + } + res["quantity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetQuantity(val) + } + return nil + } + res["shipDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetShipDate(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseOrder_status) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*Order_status)) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +func (m *Order) GetId()(*int64) { + return m.id +} +// GetPetId gets the petId property value. The petId property +func (m *Order) GetPetId()(*int64) { + return m.petId +} +// GetQuantity gets the quantity property value. The quantity property +func (m *Order) GetQuantity()(*int32) { + return m.quantity +} +// GetShipDate gets the shipDate property value. The shipDate property +func (m *Order) GetShipDate()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.shipDate +} +// GetStatus gets the status property value. Order Status +func (m *Order) GetStatus()(*Order_status) { + return m.status +} +// Serialize serializes information the current object +func (m *Order) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("complete", m.GetComplete()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("petId", m.GetPetId()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("quantity", m.GetQuantity()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("shipDate", m.GetShipDate()) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err := writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Order) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetComplete sets the complete property value. The complete property +func (m *Order) SetComplete(value *bool)() { + m.complete = value +} +// SetId sets the id property value. The id property +func (m *Order) SetId(value *int64)() { + m.id = value +} +// SetPetId sets the petId property value. The petId property +func (m *Order) SetPetId(value *int64)() { + m.petId = value +} +// SetQuantity sets the quantity property value. The quantity property +func (m *Order) SetQuantity(value *int32)() { + m.quantity = value +} +// SetShipDate sets the shipDate property value. The shipDate property +func (m *Order) SetShipDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.shipDate = value +} +// SetStatus sets the status property value. Order Status +func (m *Order) SetStatus(value *Order_status)() { + m.status = value +} +// Orderable +type Orderable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetComplete()(*bool) + GetId()(*int64) + GetPetId()(*int64) + GetQuantity()(*int32) + GetShipDate()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetStatus()(*Order_status) + SetComplete(value *bool)() + SetId(value *int64)() + SetPetId(value *int64)() + SetQuantity(value *int32)() + SetShipDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetStatus(value *Order_status)() +} diff --git a/petstore/go/utilities/models/order_status.go b/petstore/go/utilities/models/order_status.go new file mode 100644 index 0000000000..e01753b131 --- /dev/null +++ b/petstore/go/utilities/models/order_status.go @@ -0,0 +1,37 @@ +package models +import ( + "errors" +) +// Order Status +type Order_status int + +const ( + PLACED_ORDER_STATUS Order_status = iota + APPROVED_ORDER_STATUS + DELIVERED_ORDER_STATUS +) + +func (i Order_status) String() string { + return []string{"placed", "approved", "delivered"}[i] +} +func ParseOrder_status(v string) (any, error) { + result := PLACED_ORDER_STATUS + switch v { + case "placed": + result = PLACED_ORDER_STATUS + case "approved": + result = APPROVED_ORDER_STATUS + case "delivered": + result = DELIVERED_ORDER_STATUS + default: + return 0, errors.New("Unknown Order_status value: " + v) + } + return &result, nil +} +func SerializeOrder_status(values []Order_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/petstore/go/utilities/models/pet.go b/petstore/go/utilities/models/pet.go new file mode 100644 index 0000000000..ef69f9e0a2 --- /dev/null +++ b/petstore/go/utilities/models/pet.go @@ -0,0 +1,231 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Pet +type Pet struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The category property + category Categoryable + // The id property + id *int64 + // The name property + name *string + // The photoUrls property + photoUrls []string + // pet status in the store + status *Pet_status + // The tags property + tags []Tagable +} +// NewPet instantiates a new Pet and sets the default values. +func NewPet()(*Pet) { + m := &Pet{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPet(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Pet) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCategory gets the category property value. The category property +func (m *Pet) GetCategory()(Categoryable) { + return m.category +} +// GetFieldDeserializers the deserialization information for the current model +func (m *Pet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCategoryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCategory(val.(Categoryable)) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["photoUrls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + res[i] = *(v.(*string)) + } + m.SetPhotoUrls(res) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParsePet_status) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*Pet_status)) + } + return nil + } + res["tags"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTagFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Tagable, len(val)) + for i, v := range val { + res[i] = v.(Tagable) + } + m.SetTags(res) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +func (m *Pet) GetId()(*int64) { + return m.id +} +// GetName gets the name property value. The name property +func (m *Pet) GetName()(*string) { + return m.name +} +// GetPhotoUrls gets the photoUrls property value. The photoUrls property +func (m *Pet) GetPhotoUrls()([]string) { + return m.photoUrls +} +// GetStatus gets the status property value. pet status in the store +func (m *Pet) GetStatus()(*Pet_status) { + return m.status +} +// GetTags gets the tags property value. The tags property +func (m *Pet) GetTags()([]Tagable) { + return m.tags +} +// Serialize serializes information the current object +func (m *Pet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("category", m.GetCategory()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetPhotoUrls() != nil { + err := writer.WriteCollectionOfStringValues("photoUrls", m.GetPhotoUrls()) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err := writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } + if m.GetTags() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTags())) + for i, v := range m.GetTags() { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + err := writer.WriteCollectionOfObjectValues("tags", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Pet) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCategory sets the category property value. The category property +func (m *Pet) SetCategory(value Categoryable)() { + m.category = value +} +// SetId sets the id property value. The id property +func (m *Pet) SetId(value *int64)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *Pet) SetName(value *string)() { + m.name = value +} +// SetPhotoUrls sets the photoUrls property value. The photoUrls property +func (m *Pet) SetPhotoUrls(value []string)() { + m.photoUrls = value +} +// SetStatus sets the status property value. pet status in the store +func (m *Pet) SetStatus(value *Pet_status)() { + m.status = value +} +// SetTags sets the tags property value. The tags property +func (m *Pet) SetTags(value []Tagable)() { + m.tags = value +} +// Petable +type Petable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCategory()(Categoryable) + GetId()(*int64) + GetName()(*string) + GetPhotoUrls()([]string) + GetStatus()(*Pet_status) + GetTags()([]Tagable) + SetCategory(value Categoryable)() + SetId(value *int64)() + SetName(value *string)() + SetPhotoUrls(value []string)() + SetStatus(value *Pet_status)() + SetTags(value []Tagable)() +} diff --git a/petstore/go/utilities/models/pet_status.go b/petstore/go/utilities/models/pet_status.go new file mode 100644 index 0000000000..b1b7a747a2 --- /dev/null +++ b/petstore/go/utilities/models/pet_status.go @@ -0,0 +1,37 @@ +package models +import ( + "errors" +) +// pet status in the store +type Pet_status int + +const ( + AVAILABLE_PET_STATUS Pet_status = iota + PENDING_PET_STATUS + SOLD_PET_STATUS +) + +func (i Pet_status) String() string { + return []string{"available", "pending", "sold"}[i] +} +func ParsePet_status(v string) (any, error) { + result := AVAILABLE_PET_STATUS + switch v { + case "available": + result = AVAILABLE_PET_STATUS + case "pending": + result = PENDING_PET_STATUS + case "sold": + result = SOLD_PET_STATUS + default: + return 0, errors.New("Unknown Pet_status value: " + v) + } + return &result, nil +} +func SerializePet_status(values []Pet_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/petstore/go/utilities/models/tag.go b/petstore/go/utilities/models/tag.go new file mode 100644 index 0000000000..06039b39d9 --- /dev/null +++ b/petstore/go/utilities/models/tag.go @@ -0,0 +1,106 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Tag +type Tag struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The id property + id *int64 + // The name property + name *string +} +// NewTag instantiates a new Tag and sets the default values. +func NewTag()(*Tag) { + m := &Tag{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTagFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTagFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTag(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Tag) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +func (m *Tag) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +func (m *Tag) GetId()(*int64) { + return m.id +} +// GetName gets the name property value. The name property +func (m *Tag) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *Tag) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt64Value("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Tag) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The id property +func (m *Tag) SetId(value *int64)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *Tag) SetName(value *string)() { + m.name = value +} +// Tagable +type Tagable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*int64) + GetName()(*string) + SetId(value *int64)() + SetName(value *string)() +} diff --git a/petstore/go/utilities/models/user.go b/petstore/go/utilities/models/user.go new file mode 100644 index 0000000000..4d8d01376f --- /dev/null +++ b/petstore/go/utilities/models/user.go @@ -0,0 +1,274 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// User +type User struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The email property + email *string + // The firstName property + firstName *string + // The id property + id *int64 + // The lastName property + lastName *string + // The password property + password *string + // The phone property + phone *string + // The username property + username *string + // User Status + userStatus *int32 +} +// NewUser instantiates a new User and sets the default values. +func NewUser()(*User) { + m := &User{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateUserFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateUserFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUser(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *User) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetEmail gets the email property value. The email property +func (m *User) GetEmail()(*string) { + return m.email +} +// GetFieldDeserializers the deserialization information for the current model +func (m *User) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEmail(val) + } + return nil + } + res["firstName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFirstName(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["lastName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastName(val) + } + return nil + } + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPassword(val) + } + return nil + } + res["phone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPhone(val) + } + return nil + } + res["username"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUsername(val) + } + return nil + } + res["userStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetUserStatus(val) + } + return nil + } + return res +} +// GetFirstName gets the firstName property value. The firstName property +func (m *User) GetFirstName()(*string) { + return m.firstName +} +// GetId gets the id property value. The id property +func (m *User) GetId()(*int64) { + return m.id +} +// GetLastName gets the lastName property value. The lastName property +func (m *User) GetLastName()(*string) { + return m.lastName +} +// GetPassword gets the password property value. The password property +func (m *User) GetPassword()(*string) { + return m.password +} +// GetPhone gets the phone property value. The phone property +func (m *User) GetPhone()(*string) { + return m.phone +} +// GetUsername gets the username property value. The username property +func (m *User) GetUsername()(*string) { + return m.username +} +// GetUserStatus gets the userStatus property value. User Status +func (m *User) GetUserStatus()(*int32) { + return m.userStatus +} +// Serialize serializes information the current object +func (m *User) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("email", m.GetEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("firstName", m.GetFirstName()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lastName", m.GetLastName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("phone", m.GetPhone()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("username", m.GetUsername()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("userStatus", m.GetUserStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *User) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetEmail sets the email property value. The email property +func (m *User) SetEmail(value *string)() { + m.email = value +} +// SetFirstName sets the firstName property value. The firstName property +func (m *User) SetFirstName(value *string)() { + m.firstName = value +} +// SetId sets the id property value. The id property +func (m *User) SetId(value *int64)() { + m.id = value +} +// SetLastName sets the lastName property value. The lastName property +func (m *User) SetLastName(value *string)() { + m.lastName = value +} +// SetPassword sets the password property value. The password property +func (m *User) SetPassword(value *string)() { + m.password = value +} +// SetPhone sets the phone property value. The phone property +func (m *User) SetPhone(value *string)() { + m.phone = value +} +// SetUsername sets the username property value. The username property +func (m *User) SetUsername(value *string)() { + m.username = value +} +// SetUserStatus sets the userStatus property value. User Status +func (m *User) SetUserStatus(value *int32)() { + m.userStatus = value +} +// Userable +type Userable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEmail()(*string) + GetFirstName()(*string) + GetId()(*int64) + GetLastName()(*string) + GetPassword()(*string) + GetPhone()(*string) + GetUsername()(*string) + GetUserStatus()(*int32) + SetEmail(value *string)() + SetFirstName(value *string)() + SetId(value *int64)() + SetLastName(value *string)() + SetPassword(value *string)() + SetPhone(value *string)() + SetUsername(value *string)() + SetUserStatus(value *int32)() +} diff --git a/petstore/go/utilities/pet/find_by_status_request_builder.go b/petstore/go/utilities/pet/find_by_status_request_builder.go new file mode 100644 index 0000000000..ee95046dbf --- /dev/null +++ b/petstore/go/utilities/pet/find_by_status_request_builder.go @@ -0,0 +1,82 @@ +package pet + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// FindByStatusRequestBuilder builds and executes requests for operations under \pet\findByStatus +type FindByStatusRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// FindByStatusRequestBuilderGetQueryParameters multiple status values can be provided with comma separated strings +type FindByStatusRequestBuilderGetQueryParameters struct { + // Status values that need to be considered for filter + Status []string +} +// FindByStatusRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type FindByStatusRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *FindByStatusRequestBuilderGetQueryParameters +} +// NewFindByStatusRequestBuilderInternal instantiates a new FindByStatusRequestBuilder and sets the default values. +func NewFindByStatusRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FindByStatusRequestBuilder) { + m := &FindByStatusRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/pet/findByStatus{?status*}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewFindByStatusRequestBuilder instantiates a new FindByStatusRequestBuilder and sets the default values. +func NewFindByStatusRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FindByStatusRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewFindByStatusRequestBuilderInternal(urlParams, requestAdapter) +} +// Get multiple status values can be provided with comma separated strings +func (m *FindByStatusRequestBuilder) Get(ctx context.Context, requestConfiguration *FindByStatusRequestBuilderGetRequestConfiguration)([]idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendCollection(ctx, requestInfo, idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.CreatePetFromDiscriminatorValue, nil) + if err != nil { + return nil, err + } + val := make([]idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, len(res)) + for i, v := range res { + val[i] = v.(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable) + } + return val, nil +} +// ToGetRequestInformation multiple status values can be provided with comma separated strings +func (m *FindByStatusRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FindByStatusRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/pet/find_by_tags_request_builder.go b/petstore/go/utilities/pet/find_by_tags_request_builder.go new file mode 100644 index 0000000000..b0f5956463 --- /dev/null +++ b/petstore/go/utilities/pet/find_by_tags_request_builder.go @@ -0,0 +1,82 @@ +package pet + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// FindByTagsRequestBuilder builds and executes requests for operations under \pet\findByTags +type FindByTagsRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// FindByTagsRequestBuilderGetQueryParameters multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. +type FindByTagsRequestBuilderGetQueryParameters struct { + // Tags to filter by + Tags []string +} +// FindByTagsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type FindByTagsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *FindByTagsRequestBuilderGetQueryParameters +} +// NewFindByTagsRequestBuilderInternal instantiates a new FindByTagsRequestBuilder and sets the default values. +func NewFindByTagsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FindByTagsRequestBuilder) { + m := &FindByTagsRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/pet/findByTags{?tags*}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewFindByTagsRequestBuilder instantiates a new FindByTagsRequestBuilder and sets the default values. +func NewFindByTagsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FindByTagsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewFindByTagsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. +func (m *FindByTagsRequestBuilder) Get(ctx context.Context, requestConfiguration *FindByTagsRequestBuilderGetRequestConfiguration)([]idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendCollection(ctx, requestInfo, idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.CreatePetFromDiscriminatorValue, nil) + if err != nil { + return nil, err + } + val := make([]idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, len(res)) + for i, v := range res { + val[i] = v.(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable) + } + return val, nil +} +// ToGetRequestInformation multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. +func (m *FindByTagsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FindByTagsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/pet/item_upload_image_request_builder.go b/petstore/go/utilities/pet/item_upload_image_request_builder.go new file mode 100644 index 0000000000..0f7ed6a8fb --- /dev/null +++ b/petstore/go/utilities/pet/item_upload_image_request_builder.go @@ -0,0 +1,71 @@ +package pet + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// ItemUploadImageRequestBuilder builds and executes requests for operations under \pet\{petId}\uploadImage +type ItemUploadImageRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// ItemUploadImageRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemUploadImageRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemUploadImageRequestBuilderInternal instantiates a new UploadImageRequestBuilder and sets the default values. +func NewItemUploadImageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemUploadImageRequestBuilder) { + m := &ItemUploadImageRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/pet/{petId}/uploadImage"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewItemUploadImageRequestBuilder instantiates a new UploadImageRequestBuilder and sets the default values. +func NewItemUploadImageRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemUploadImageRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemUploadImageRequestBuilderInternal(urlParams, requestAdapter) +} +// Post uploads an image +func (m *ItemUploadImageRequestBuilder) Post(ctx context.Context, body []byte, requestConfiguration *ItemUploadImageRequestBuilderPostRequestConfiguration)(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.ApiResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.Send(ctx, requestInfo, idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.CreateApiResponseFromDiscriminatorValue, nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.ApiResponseable), nil +} +func (m *ItemUploadImageRequestBuilder) ToPostRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemUploadImageRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + requestInfo.Headers.Add("Accept", "application/json") + requestInfo.SetStreamContent(body) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/pet/item_with_pet_post_request_body.go b/petstore/go/utilities/pet/item_with_pet_post_request_body.go new file mode 100644 index 0000000000..eab497962f --- /dev/null +++ b/petstore/go/utilities/pet/item_with_pet_post_request_body.go @@ -0,0 +1,106 @@ +package pet + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ItemWithPetPostRequestBody +type ItemWithPetPostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Updated name of the pet + name *string + // Updated status of the pet + status *string +} +// NewItemWithPetPostRequestBody instantiates a new ItemWithPetPostRequestBody and sets the default values. +func NewItemWithPetPostRequestBody()(*ItemWithPetPostRequestBody) { + m := &ItemWithPetPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemWithPetPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemWithPetPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemWithPetPostRequestBody(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemWithPetPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemWithPetPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + return res +} +// GetName gets the name property value. Updated name of the pet +func (m *ItemWithPetPostRequestBody) GetName()(*string) { + return m.name +} +// GetStatus gets the status property value. Updated status of the pet +func (m *ItemWithPetPostRequestBody) GetStatus()(*string) { + return m.status +} +// Serialize serializes information the current object +func (m *ItemWithPetPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("status", m.GetStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemWithPetPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Updated name of the pet +func (m *ItemWithPetPostRequestBody) SetName(value *string)() { + m.name = value +} +// SetStatus sets the status property value. Updated status of the pet +func (m *ItemWithPetPostRequestBody) SetStatus(value *string)() { + m.status = value +} +// ItemWithPetPostRequestBodyable +type ItemWithPetPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetStatus()(*string) + SetName(value *string)() + SetStatus(value *string)() +} diff --git a/petstore/go/utilities/pet/pet_request_builder.go b/petstore/go/utilities/pet/pet_request_builder.go new file mode 100644 index 0000000000..f56e8c4b5f --- /dev/null +++ b/petstore/go/utilities/pet/pet_request_builder.go @@ -0,0 +1,118 @@ +package pet + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// PetRequestBuilder builds and executes requests for operations under \pet +type PetRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// PetRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PetRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// PetRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PetRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPetRequestBuilderInternal instantiates a new PetRequestBuilder and sets the default values. +func NewPetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PetRequestBuilder) { + m := &PetRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/pet"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewPetRequestBuilder instantiates a new PetRequestBuilder and sets the default values. +func NewPetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPetRequestBuilderInternal(urlParams, requestAdapter) +} +// FindByStatus the findByStatus property +func (m *PetRequestBuilder) FindByStatus()(*FindByStatusRequestBuilder) { + return NewFindByStatusRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// FindByTags the findByTags property +func (m *PetRequestBuilder) FindByTags()(*FindByTagsRequestBuilder) { + return NewFindByTagsRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// Post add a new pet to the store +func (m *PetRequestBuilder) Post(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, requestConfiguration *PetRequestBuilderPostRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put update an existing pet +func (m *PetRequestBuilder) Put(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, requestConfiguration *PetRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +func (m *PetRequestBuilder) ToPostRequestInformation(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, requestConfiguration *PetRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + err := requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +func (m *PetRequestBuilder) ToPutRequestInformation(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, requestConfiguration *PetRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT + err := requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/pet/with_pet_item_request_builder.go b/petstore/go/utilities/pet/with_pet_item_request_builder.go new file mode 100644 index 0000000000..9423cec0d9 --- /dev/null +++ b/petstore/go/utilities/pet/with_pet_item_request_builder.go @@ -0,0 +1,145 @@ +package pet + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// WithPetItemRequestBuilder builds and executes requests for operations under \pet\{petId} +type WithPetItemRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// WithPetItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WithPetItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WithPetItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WithPetItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WithPetItemRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WithPetItemRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWithPetItemRequestBuilderInternal instantiates a new WithPetItemRequestBuilder and sets the default values. +func NewWithPetItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WithPetItemRequestBuilder) { + m := &WithPetItemRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/pet/{petId}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewWithPetItemRequestBuilder instantiates a new WithPetItemRequestBuilder and sets the default values. +func NewWithPetItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WithPetItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWithPetItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete deletes a pet +func (m *WithPetItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WithPetItemRequestBuilderDeleteRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Get returns a single pet +func (m *WithPetItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WithPetItemRequestBuilderGetRequestConfiguration)(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.Send(ctx, requestInfo, idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.CreatePetFromDiscriminatorValue, nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Petable), nil +} +// Post updates a pet in the store with form data +func (m *WithPetItemRequestBuilder) Post(ctx context.Context, body ItemWithPetPostRequestBodyable, requestConfiguration *WithPetItemRequestBuilderPostRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +func (m *WithPetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WithPetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToGetRequestInformation returns a single pet +func (m *WithPetItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WithPetItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +func (m *WithPetItemRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemWithPetPostRequestBodyable, requestConfiguration *WithPetItemRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + err := requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/x-www-form-urlencoded", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// UploadImage the uploadImage property +func (m *WithPetItemRequestBuilder) UploadImage()(*ItemUploadImageRequestBuilder) { + return NewItemUploadImageRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} diff --git a/petstore/go/utilities/store/inventory_request_builder.go b/petstore/go/utilities/store/inventory_request_builder.go new file mode 100644 index 0000000000..aba443b51c --- /dev/null +++ b/petstore/go/utilities/store/inventory_request_builder.go @@ -0,0 +1,70 @@ +package store + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// InventoryRequestBuilder builds and executes requests for operations under \store\inventory +type InventoryRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// InventoryRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type InventoryRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewInventoryRequestBuilderInternal instantiates a new InventoryRequestBuilder and sets the default values. +func NewInventoryRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*InventoryRequestBuilder) { + m := &InventoryRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/store/inventory"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewInventoryRequestBuilder instantiates a new InventoryRequestBuilder and sets the default values. +func NewInventoryRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*InventoryRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewInventoryRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a map of status codes to quantities +func (m *InventoryRequestBuilder) Get(ctx context.Context, requestConfiguration *InventoryRequestBuilderGetRequestConfiguration)(InventoryResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.Send(ctx, requestInfo, CreateInventoryResponseFromDiscriminatorValue, nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(InventoryResponseable), nil +} +// ToGetRequestInformation returns a map of status codes to quantities +func (m *InventoryRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *InventoryRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/store/inventory_response.go b/petstore/go/utilities/store/inventory_response.go new file mode 100644 index 0000000000..735e39a2fe --- /dev/null +++ b/petstore/go/utilities/store/inventory_response.go @@ -0,0 +1,50 @@ +package store + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// InventoryResponse +type InventoryResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewInventoryResponse instantiates a new InventoryResponse and sets the default values. +func NewInventoryResponse()(*InventoryResponse) { + m := &InventoryResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateInventoryResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateInventoryResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewInventoryResponse(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *InventoryResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +func (m *InventoryResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *InventoryResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *InventoryResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// InventoryResponseable +type InventoryResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/petstore/go/utilities/store/order_request_builder.go b/petstore/go/utilities/store/order_request_builder.go new file mode 100644 index 0000000000..8cf6180f80 --- /dev/null +++ b/petstore/go/utilities/store/order_request_builder.go @@ -0,0 +1,74 @@ +package store + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// OrderRequestBuilder builds and executes requests for operations under \store\order +type OrderRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// OrderRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type OrderRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewOrderRequestBuilderInternal instantiates a new OrderRequestBuilder and sets the default values. +func NewOrderRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OrderRequestBuilder) { + m := &OrderRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/store/order"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewOrderRequestBuilder instantiates a new OrderRequestBuilder and sets the default values. +func NewOrderRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OrderRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewOrderRequestBuilderInternal(urlParams, requestAdapter) +} +// Post place an order for a pet +func (m *OrderRequestBuilder) Post(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Orderable, requestConfiguration *OrderRequestBuilderPostRequestConfiguration)(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Orderable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.Send(ctx, requestInfo, idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.CreateOrderFromDiscriminatorValue, nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Orderable), nil +} +func (m *OrderRequestBuilder) ToPostRequestInformation(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Orderable, requestConfiguration *OrderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + requestInfo.Headers.Add("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/store/order_with_order_item_request_builder.go b/petstore/go/utilities/store/order_with_order_item_request_builder.go new file mode 100644 index 0000000000..41c7ee42ac --- /dev/null +++ b/petstore/go/utilities/store/order_with_order_item_request_builder.go @@ -0,0 +1,105 @@ +package store + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// OrderWithOrderItemRequestBuilder builds and executes requests for operations under \store\order\{orderId} +type OrderWithOrderItemRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// OrderWithOrderItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type OrderWithOrderItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// OrderWithOrderItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type OrderWithOrderItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewOrderWithOrderItemRequestBuilderInternal instantiates a new WithOrderItemRequestBuilder and sets the default values. +func NewOrderWithOrderItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OrderWithOrderItemRequestBuilder) { + m := &OrderWithOrderItemRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/store/order/{orderId}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewOrderWithOrderItemRequestBuilder instantiates a new WithOrderItemRequestBuilder and sets the default values. +func NewOrderWithOrderItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OrderWithOrderItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewOrderWithOrderItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete for valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors +func (m *OrderWithOrderItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *OrderWithOrderItemRequestBuilderDeleteRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Get for valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions +func (m *OrderWithOrderItemRequestBuilder) Get(ctx context.Context, requestConfiguration *OrderWithOrderItemRequestBuilderGetRequestConfiguration)(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Orderable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.Send(ctx, requestInfo, idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.CreateOrderFromDiscriminatorValue, nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Orderable), nil +} +// ToDeleteRequestInformation for valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors +func (m *OrderWithOrderItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OrderWithOrderItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToGetRequestInformation for valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions +func (m *OrderWithOrderItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OrderWithOrderItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/store/store_request_builder.go b/petstore/go/utilities/store/store_request_builder.go new file mode 100644 index 0000000000..53889400d9 --- /dev/null +++ b/petstore/go/utilities/store/store_request_builder.go @@ -0,0 +1,53 @@ +package store + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// StoreRequestBuilder builds and executes requests for operations under \store +type StoreRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// NewStoreRequestBuilderInternal instantiates a new StoreRequestBuilder and sets the default values. +func NewStoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*StoreRequestBuilder) { + m := &StoreRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/store"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewStoreRequestBuilder instantiates a new StoreRequestBuilder and sets the default values. +func NewStoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*StoreRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewStoreRequestBuilderInternal(urlParams, requestAdapter) +} +// Inventory the inventory property +func (m *StoreRequestBuilder) Inventory()(*InventoryRequestBuilder) { + return NewInventoryRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// Order the order property +func (m *StoreRequestBuilder) Order()(*OrderRequestBuilder) { + return NewOrderRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// OrderById gets an item from the github.com/microsoft/kiota-samples/petstore/go/utilities/.store.order.item collection +func (m *StoreRequestBuilder) OrderById(id string)(*OrderWithOrderItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.pathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["orderId"] = id + } + return NewOrderWithOrderItemRequestBuilderInternal(urlTplParams, m.requestAdapter) +} diff --git a/petstore/go/utilities/user/create_with_array_request_builder.go b/petstore/go/utilities/user/create_with_array_request_builder.go new file mode 100644 index 0000000000..3469e75382 --- /dev/null +++ b/petstore/go/utilities/user/create_with_array_request_builder.go @@ -0,0 +1,78 @@ +package user + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// CreateWithArrayRequestBuilder builds and executes requests for operations under \user\createWithArray +type CreateWithArrayRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// CreateWithArrayRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CreateWithArrayRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCreateWithArrayRequestBuilderInternal instantiates a new CreateWithArrayRequestBuilder and sets the default values. +func NewCreateWithArrayRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CreateWithArrayRequestBuilder) { + m := &CreateWithArrayRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/user/createWithArray"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewCreateWithArrayRequestBuilder instantiates a new CreateWithArrayRequestBuilder and sets the default values. +func NewCreateWithArrayRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CreateWithArrayRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCreateWithArrayRequestBuilderInternal(urlParams, requestAdapter) +} +// Post creates list of users with given input array +func (m *CreateWithArrayRequestBuilder) Post(ctx context.Context, body []idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, requestConfiguration *CreateWithArrayRequestBuilderPostRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +func (m *CreateWithArrayRequestBuilder) ToPostRequestInformation(ctx context.Context, body []idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, requestConfiguration *CreateWithArrayRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(body)) + for i, v := range body { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + err := requestInfo.SetContentFromParsableCollection(ctx, m.requestAdapter, "application/json", cast) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/user/create_with_list_request_builder.go b/petstore/go/utilities/user/create_with_list_request_builder.go new file mode 100644 index 0000000000..58df892a10 --- /dev/null +++ b/petstore/go/utilities/user/create_with_list_request_builder.go @@ -0,0 +1,78 @@ +package user + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// CreateWithListRequestBuilder builds and executes requests for operations under \user\createWithList +type CreateWithListRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// CreateWithListRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CreateWithListRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCreateWithListRequestBuilderInternal instantiates a new CreateWithListRequestBuilder and sets the default values. +func NewCreateWithListRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CreateWithListRequestBuilder) { + m := &CreateWithListRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/user/createWithList"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewCreateWithListRequestBuilder instantiates a new CreateWithListRequestBuilder and sets the default values. +func NewCreateWithListRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CreateWithListRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCreateWithListRequestBuilderInternal(urlParams, requestAdapter) +} +// Post creates list of users with given input array +func (m *CreateWithListRequestBuilder) Post(ctx context.Context, body []idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, requestConfiguration *CreateWithListRequestBuilderPostRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +func (m *CreateWithListRequestBuilder) ToPostRequestInformation(ctx context.Context, body []idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, requestConfiguration *CreateWithListRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(body)) + for i, v := range body { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + err := requestInfo.SetContentFromParsableCollection(ctx, m.requestAdapter, "application/json", cast) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/user/login_request_builder.go b/petstore/go/utilities/user/login_request_builder.go new file mode 100644 index 0000000000..cbc61b880a --- /dev/null +++ b/petstore/go/utilities/user/login_request_builder.go @@ -0,0 +1,81 @@ +package user + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// LoginRequestBuilder builds and executes requests for operations under \user\login +type LoginRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// LoginRequestBuilderGetQueryParameters logs user into the system +type LoginRequestBuilderGetQueryParameters struct { + // The password for login in clear text + Password *string + // The user name for login + Username *string +} +// LoginRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LoginRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LoginRequestBuilderGetQueryParameters +} +// NewLoginRequestBuilderInternal instantiates a new LoginRequestBuilder and sets the default values. +func NewLoginRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LoginRequestBuilder) { + m := &LoginRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/user/login{?username*,password*}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewLoginRequestBuilder instantiates a new LoginRequestBuilder and sets the default values. +func NewLoginRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LoginRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLoginRequestBuilderInternal(urlParams, requestAdapter) +} +// Get logs user into the system +func (m *LoginRequestBuilder) Get(ctx context.Context, requestConfiguration *LoginRequestBuilderGetRequestConfiguration)(*string, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "string", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*string), nil +} +func (m *LoginRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LoginRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/user/logout_request_builder.go b/petstore/go/utilities/user/logout_request_builder.go new file mode 100644 index 0000000000..3bd1c9ef41 --- /dev/null +++ b/petstore/go/utilities/user/logout_request_builder.go @@ -0,0 +1,68 @@ +package user + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// LogoutRequestBuilder builds and executes requests for operations under \user\logout +type LogoutRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// LogoutRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LogoutRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLogoutRequestBuilderInternal instantiates a new LogoutRequestBuilder and sets the default values. +func NewLogoutRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LogoutRequestBuilder) { + m := &LogoutRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/user/logout"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewLogoutRequestBuilder instantiates a new LogoutRequestBuilder and sets the default values. +func NewLogoutRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LogoutRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLogoutRequestBuilderInternal(urlParams, requestAdapter) +} +// Get logs out current logged in user session +func (m *LogoutRequestBuilder) Get(ctx context.Context, requestConfiguration *LogoutRequestBuilderGetRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +func (m *LogoutRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LogoutRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/user/user_request_builder.go b/petstore/go/utilities/user/user_request_builder.go new file mode 100644 index 0000000000..a6dd8e9d9c --- /dev/null +++ b/petstore/go/utilities/user/user_request_builder.go @@ -0,0 +1,90 @@ +package user + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// UserRequestBuilder builds and executes requests for operations under \user +type UserRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// UserRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type UserRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewUserRequestBuilderInternal instantiates a new UserRequestBuilder and sets the default values. +func NewUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*UserRequestBuilder) { + m := &UserRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/user"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewUserRequestBuilder instantiates a new UserRequestBuilder and sets the default values. +func NewUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*UserRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewUserRequestBuilderInternal(urlParams, requestAdapter) +} +// CreateWithArray the createWithArray property +func (m *UserRequestBuilder) CreateWithArray()(*CreateWithArrayRequestBuilder) { + return NewCreateWithArrayRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// CreateWithList the createWithList property +func (m *UserRequestBuilder) CreateWithList()(*CreateWithListRequestBuilder) { + return NewCreateWithListRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// Login the login property +func (m *UserRequestBuilder) Login()(*LoginRequestBuilder) { + return NewLoginRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// Logout the logout property +func (m *UserRequestBuilder) Logout()(*LogoutRequestBuilder) { + return NewLogoutRequestBuilderInternal(m.pathParameters, m.requestAdapter) +} +// Post this can only be done by the logged in user. +func (m *UserRequestBuilder) Post(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, requestConfiguration *UserRequestBuilderPostRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToPostRequestInformation this can only be done by the logged in user. +func (m *UserRequestBuilder) ToPostRequestInformation(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, requestConfiguration *UserRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + err := requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/go/utilities/user/with_username_item_request_builder.go b/petstore/go/utilities/user/with_username_item_request_builder.go new file mode 100644 index 0000000000..f289b26499 --- /dev/null +++ b/petstore/go/utilities/user/with_username_item_request_builder.go @@ -0,0 +1,142 @@ +package user + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398 "github.com/microsoft/kiota-samples/petstore/go/utilities/models" +) + +// WithUsernameItemRequestBuilder builds and executes requests for operations under \user\{username} +type WithUsernameItemRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// WithUsernameItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WithUsernameItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WithUsernameItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WithUsernameItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WithUsernameItemRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WithUsernameItemRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWithUsernameItemRequestBuilderInternal instantiates a new WithUsernameItemRequestBuilder and sets the default values. +func NewWithUsernameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WithUsernameItemRequestBuilder) { + m := &WithUsernameItemRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/user/{username}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams + m.requestAdapter = requestAdapter + return m +} +// NewWithUsernameItemRequestBuilder instantiates a new WithUsernameItemRequestBuilder and sets the default values. +func NewWithUsernameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WithUsernameItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWithUsernameItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete this can only be done by the logged in user. +func (m *WithUsernameItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WithUsernameItemRequestBuilderDeleteRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Get get user by user name +func (m *WithUsernameItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WithUsernameItemRequestBuilderGetRequestConfiguration)(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.Send(ctx, requestInfo, idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.CreateUserFromDiscriminatorValue, nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable), nil +} +// Put this can only be done by the logged in user. +func (m *WithUsernameItemRequestBuilder) Put(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, requestConfiguration *WithUsernameItemRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", nil) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToDeleteRequestInformation this can only be done by the logged in user. +func (m *WithUsernameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WithUsernameItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +func (m *WithUsernameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WithUsernameItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPutRequestInformation this can only be done by the logged in user. +func (m *WithUsernameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body idf4cc4a16f466bc4d40254b5ab3d20d0f80e475a6630c5e138f6c79181a5d398.Userable, requestConfiguration *WithUsernameItemRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT + err := requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/petstore/java/.gitattributes b/petstore/java/.gitattributes new file mode 100644 index 0000000000..00a51aff5e --- /dev/null +++ b/petstore/java/.gitattributes @@ -0,0 +1,6 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# These are explicitly windows files and should use crlf +*.bat text eol=crlf + diff --git a/petstore/java/.gitignore b/petstore/java/.gitignore new file mode 100644 index 0000000000..01d6c0f721 --- /dev/null +++ b/petstore/java/.gitignore @@ -0,0 +1,7 @@ +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build + +bin \ No newline at end of file diff --git a/petstore/java/.project b/petstore/java/.project new file mode 100644 index 0000000000..ced52432eb --- /dev/null +++ b/petstore/java/.project @@ -0,0 +1,28 @@ + + + graphjavav4 + Project graphjavav4 created by Buildship. + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.buildship.core.gradleprojectnature + + + + 1680634658290 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + + diff --git a/petstore/java/.vscode/settings.json b/petstore/java/.vscode/settings.json new file mode 100644 index 0000000000..de2a843a94 --- /dev/null +++ b/petstore/java/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "automatic" +} \ No newline at end of file diff --git a/petstore/java/app/.classpath b/petstore/java/app/.classpath new file mode 100644 index 0000000000..ae30f860ac --- /dev/null +++ b/petstore/java/app/.classpath @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/petstore/java/app/.project b/petstore/java/app/.project new file mode 100644 index 0000000000..c06af91014 --- /dev/null +++ b/petstore/java/app/.project @@ -0,0 +1,34 @@ + + + app + Project app created by Buildship. + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.buildship.core.gradleprojectnature + + + + 1610032785529 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + + diff --git a/petstore/java/app/build.gradle b/petstore/java/app/build.gradle new file mode 100644 index 0000000000..5e5a00e50c --- /dev/null +++ b/petstore/java/app/build.gradle @@ -0,0 +1,20 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + id 'petstore.java-application-conventions' +} + +archivesBaseName = 'app' + +dependencies { + implementation project(':utilities') + implementation 'org.slf4j:slf4j-nop:1.7.36' + implementation 'com.google.guava:guava:31.1-jre' +} + +application { + // Define the main class for the application. + mainClass = 'petstore.app.App' +} diff --git a/petstore/java/app/src/main/java/graphjavav4/app/App.java b/petstore/java/app/src/main/java/graphjavav4/app/App.java new file mode 100644 index 0000000000..9bf22ca16c --- /dev/null +++ b/petstore/java/app/src/main/java/graphjavav4/app/App.java @@ -0,0 +1,22 @@ +/* + * This Java source file was generated by the Gradle 'init' task. + */ +package petstore.app; + +import okhttp3.Response; +import okhttp3.ResponseBody; + +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.util.Arrays; +import java.util.concurrent.ExecutionException; + +import com.google.common.base.Charsets; +import com.google.common.io.CharStreams; + +public class App { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} diff --git a/petstore/java/app/src/main/java/graphjavav4/app/MessageUtils.java b/petstore/java/app/src/main/java/graphjavav4/app/MessageUtils.java new file mode 100644 index 0000000000..f5f2d046e0 --- /dev/null +++ b/petstore/java/app/src/main/java/graphjavav4/app/MessageUtils.java @@ -0,0 +1,10 @@ +/* + * This Java source file was generated by the Gradle 'init' task. + */ +package petstore.app; + +class MessageUtils { + public static String getMessage() { + return "Hello World!"; + } +} diff --git a/petstore/java/app/src/test/java/graphjavav4/app/MessageUtilsTest.java b/petstore/java/app/src/test/java/graphjavav4/app/MessageUtilsTest.java new file mode 100644 index 0000000000..81d2aa3d26 --- /dev/null +++ b/petstore/java/app/src/test/java/graphjavav4/app/MessageUtilsTest.java @@ -0,0 +1,14 @@ +/* + * This Java source file was generated by the Gradle 'init' task. + */ +package petstore.app; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class MessageUtilsTest { + @Test public void testGetMessage() { + assertEquals("Hello World!", MessageUtils.getMessage()); + } +} diff --git a/petstore/java/buildSrc/build.gradle b/petstore/java/buildSrc/build.gradle new file mode 100644 index 0000000000..04d80d2a33 --- /dev/null +++ b/petstore/java/buildSrc/build.gradle @@ -0,0 +1,13 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + // Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build. + id 'groovy-gradle-plugin' +} + +repositories { + // Use the plugin portal to apply community plugins in convention plugins. + gradlePluginPortal() +} diff --git a/petstore/java/buildSrc/src/main/groovy/petstore.java-application-conventions.gradle b/petstore/java/buildSrc/src/main/groovy/petstore.java-application-conventions.gradle new file mode 100644 index 0000000000..df6ffd9996 --- /dev/null +++ b/petstore/java/buildSrc/src/main/groovy/petstore.java-application-conventions.gradle @@ -0,0 +1,11 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + // Apply the common convention plugin for shared build configuration between library and application projects. + id 'petstore.java-common-conventions' + + // Apply the application plugin to add support for building a CLI application in Java. + id 'application' +} diff --git a/petstore/java/buildSrc/src/main/groovy/petstore.java-common-conventions.gradle b/petstore/java/buildSrc/src/main/groovy/petstore.java-common-conventions.gradle new file mode 100644 index 0000000000..1dc7ea8aab --- /dev/null +++ b/petstore/java/buildSrc/src/main/groovy/petstore.java-common-conventions.gradle @@ -0,0 +1,32 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + // Apply the java Plugin to add support for Java. + id 'java' +} + +repositories { + mavenCentral() + // maven { + // url = uri("https://maven.pkg.github.com/microsoft/kiota") + // credentials { + // username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") + // password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") + // } + // } +} + +dependencies { + // Use JUnit Jupiter API for testing. + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2' + + // Use JUnit Jupiter Engine for testing. + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' +} + +tasks.named('test') { + // Use junit platform for unit tests. + useJUnitPlatform() +} diff --git a/petstore/java/buildSrc/src/main/groovy/petstore.java-library-conventions.gradle b/petstore/java/buildSrc/src/main/groovy/petstore.java-library-conventions.gradle new file mode 100644 index 0000000000..fe616e534a --- /dev/null +++ b/petstore/java/buildSrc/src/main/groovy/petstore.java-library-conventions.gradle @@ -0,0 +1,11 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + // Apply the common convention plugin for shared build configuration between library and application projects. + id 'petstore.java-common-conventions' + + // Apply the java-library plugin for API and implementation separation. + id 'java-library' +} diff --git a/petstore/java/gradle/wrapper/gradle-wrapper.jar b/petstore/java/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000..7454180f2a Binary files /dev/null and b/petstore/java/gradle/wrapper/gradle-wrapper.jar differ diff --git a/petstore/java/gradle/wrapper/gradle-wrapper.properties b/petstore/java/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000..2e6e5897b5 --- /dev/null +++ b/petstore/java/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/petstore/java/gradlew b/petstore/java/gradlew new file mode 100644 index 0000000000..c53aefaa5f --- /dev/null +++ b/petstore/java/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright � 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions �$var�, �${var}�, �${var:-default}�, �${var+SET}�, +# �${var#prefix}�, �${var%suffix}�, and �$( cmd )�; +# * compound commands having a testable exit status, especially �case�; +# * various built-in commands including �command�, �set�, and �ulimit�. +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/petstore/java/gradlew.bat b/petstore/java/gradlew.bat new file mode 100644 index 0000000000..107acd32c4 --- /dev/null +++ b/petstore/java/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/petstore/java/settings.gradle b/petstore/java/settings.gradle new file mode 100644 index 0000000000..375d6933e9 --- /dev/null +++ b/petstore/java/settings.gradle @@ -0,0 +1,11 @@ +/* + * This file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * + * Detailed information about configuring a multi-project build in Gradle can be found + * in the user manual at https://docs.gradle.org/6.7/userguide/multi_project_builds.html + */ + +rootProject.name = 'petstore' +include('app', 'utilities') diff --git a/petstore/java/utilities/.classpath b/petstore/java/utilities/.classpath new file mode 100644 index 0000000000..6e87a05d4a --- /dev/null +++ b/petstore/java/utilities/.classpath @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/petstore/java/utilities/.project b/petstore/java/utilities/.project new file mode 100644 index 0000000000..b7d96cd447 --- /dev/null +++ b/petstore/java/utilities/.project @@ -0,0 +1,34 @@ + + + utilities + Project utilities created by Buildship. + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.buildship.core.gradleprojectnature + + + + 1610032785565 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + + diff --git a/petstore/java/utilities/build.gradle b/petstore/java/utilities/build.gradle new file mode 100644 index 0000000000..9dd862ff23 --- /dev/null +++ b/petstore/java/utilities/build.gradle @@ -0,0 +1,26 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + id 'petstore.java-library-conventions' +} + +repositories { + mavenCentral() +} + +archivesBaseName = 'utilities' + +dependencies { + api 'com.google.code.findbugs:jsr305:3.0.2' // can be replaced by guava if we need guava + implementation 'com.microsoft.kiota:microsoft-kiota-abstractions:0.3.1' + implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:0.3.1' + implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:0.3.1' + implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:0.3.1' + implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:0.3.1' + implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:0.3.1' + api 'com.azure:azure-identity:1.8.1' + api 'com.squareup.okhttp3:okhttp:4.10.0' + api 'com.google.code.gson:gson:2.10.1' +} diff --git a/petstore/java/utilities/gradle.properties b/petstore/java/utilities/gradle.properties new file mode 100644 index 0000000000..11b21a03ed --- /dev/null +++ b/petstore/java/utilities/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx2g +gpr.user = placeholder +gpr.key = placeholder \ No newline at end of file diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/ApiClient.java b/petstore/java/utilities/src/main/java/petstore/utilities/ApiClient.java new file mode 100644 index 0000000000..b575f080d5 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/ApiClient.java @@ -0,0 +1,91 @@ +package petstore.utilities; + +import com.microsoft.kiota.ApiClientBuilder; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.serialization.FormParseNodeFactory; +import com.microsoft.kiota.serialization.FormSerializationWriterFactory; +import com.microsoft.kiota.serialization.JsonParseNodeFactory; +import com.microsoft.kiota.serialization.JsonSerializationWriterFactory; +import com.microsoft.kiota.serialization.ParseNodeFactoryRegistry; +import com.microsoft.kiota.serialization.SerializationWriterFactoryRegistry; +import com.microsoft.kiota.serialization.TextParseNodeFactory; +import com.microsoft.kiota.serialization.TextSerializationWriterFactory; +import java.util.HashMap; +import java.util.Objects; +import petstore.utilities.pet.item.WithPetItemRequestBuilder; +import petstore.utilities.pet.PetRequestBuilder; +import petstore.utilities.store.StoreRequestBuilder; +import petstore.utilities.user.item.WithUsernameItemRequestBuilder; +import petstore.utilities.user.UserRequestBuilder; +/** + * The main entry point of the SDK, exposes the configuration and the fluent API. + */ +public class ApiClient { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The pet property */ + @javax.annotation.Nonnull + public PetRequestBuilder pet() { + return new PetRequestBuilder(pathParameters, requestAdapter); + } + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** The store property */ + @javax.annotation.Nonnull + public StoreRequestBuilder store() { + return new StoreRequestBuilder(pathParameters, requestAdapter); + } + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** The user property */ + @javax.annotation.Nonnull + public UserRequestBuilder user() { + return new UserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new ApiClient and sets the default values. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public ApiClient(@javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(requestAdapter); + this.pathParameters = new HashMap<>(); + this.urlTemplate = "{+baseurl}"; + this.requestAdapter = requestAdapter; + ApiClientBuilder.registerDefaultSerializer(JsonSerializationWriterFactory.class); + ApiClientBuilder.registerDefaultSerializer(TextSerializationWriterFactory.class); + ApiClientBuilder.registerDefaultSerializer(FormSerializationWriterFactory.class); + ApiClientBuilder.registerDefaultDeserializer(JsonParseNodeFactory.class); + ApiClientBuilder.registerDefaultDeserializer(FormParseNodeFactory.class); + ApiClientBuilder.registerDefaultDeserializer(TextParseNodeFactory.class); + if (requestAdapter.getBaseUrl() == null || requestAdapter.getBaseUrl().isEmpty()) { + requestAdapter.setBaseUrl("https://petstore.swagger.io/v2"); + } + pathParameters.put("baseurl", requestAdapter.getBaseUrl()); + } + /** + * Gets an item from the petstore.utilities.pet.item collection + * @param id Unique identifier of the item + * @return a WithPetItemRequestBuilder + */ + @javax.annotation.Nonnull + public WithPetItemRequestBuilder pet(@javax.annotation.Nonnull final String id) { + Objects.requireNonNull(id); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("petId", id); + return new WithPetItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Gets an item from the petstore.utilities.user.item collection + * @param id Unique identifier of the item + * @return a WithUsernameItemRequestBuilder + */ + @javax.annotation.Nonnull + public WithUsernameItemRequestBuilder user(@javax.annotation.Nonnull final String id) { + Objects.requireNonNull(id); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("username", id); + return new WithUsernameItemRequestBuilder(urlTplParams, requestAdapter); + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/kiota-lock.json b/petstore/java/utilities/src/main/java/petstore/utilities/kiota-lock.json new file mode 100644 index 0000000000..a92def443d --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/kiota-lock.json @@ -0,0 +1,29 @@ +{ + "descriptionHash": "81489CE0A2C3A5B9FDA34286D98EAD1F70952B4A7E583141D77C44A75BB48C6D09D87AF34CFB2731FAC4C5A2908F4BACDF43812A75B0A75E878722C78382740B", + "descriptionLocation": "https://petstore.swagger.io/v2/swagger.json", + "lockFileVersion": "1.0.0", + "kiotaVersion": "1.0.1", + "clientClassName": "ApiClient", + "clientNamespaceName": "petstore.utilities", + "language": "Java", + "usesBackingStore": false, + "includeAdditionalData": true, + "serializers": [ + "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory" + ], + "deserializers": [ + "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", + "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", + "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" + ], + "structuredMimeTypes": [ + "application/json", + "text/plain", + "application/x-www-form-urlencoded" + ], + "includePatterns": [], + "excludePatterns": [], + "disabledValidationRules": [] +} \ No newline at end of file diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/models/ApiResponse.java b/petstore/java/utilities/src/main/java/petstore/utilities/models/ApiResponse.java new file mode 100644 index 0000000000..f46e2d56e6 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/models/ApiResponse.java @@ -0,0 +1,130 @@ +package petstore.utilities.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +public class ApiResponse implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map additionalData; + /** The code property */ + private Integer code; + /** The message property */ + private String message; + /** The type property */ + private String type; + /** + * Instantiates a new ApiResponse and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public ApiResponse() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a ApiResponse + */ + @javax.annotation.Nonnull + public static ApiResponse createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ApiResponse(); + } + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this.additionalData; + } + /** + * Gets the code property value. The code property + * @return a integer + */ + @javax.annotation.Nullable + public Integer getCode() { + return this.code; + } + /** + * The deserialization information for the current model + * @return a Map> + */ + @javax.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("code", (n) -> { this.setCode(n.getIntegerValue()); }); + deserializerMap.put("message", (n) -> { this.setMessage(n.getStringValue()); }); + deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the message property value. The message property + * @return a string + */ + @javax.annotation.Nullable + public String getMessage() { + return this.message; + } + /** + * Gets the type property value. The type property + * @return a string + */ + @javax.annotation.Nullable + public String getType() { + return this.type; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + * @return a void + */ + @javax.annotation.Nonnull + public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeIntegerValue("code", this.getCode()); + writer.writeStringValue("message", this.getMessage()); + writer.writeStringValue("type", this.getType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + @javax.annotation.Nonnull + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this.additionalData = value; + } + /** + * Sets the code property value. The code property + * @param value Value to set for the code property. + * @return a void + */ + @javax.annotation.Nonnull + public void setCode(@javax.annotation.Nullable final Integer value) { + this.code = value; + } + /** + * Sets the message property value. The message property + * @param value Value to set for the message property. + * @return a void + */ + @javax.annotation.Nonnull + public void setMessage(@javax.annotation.Nullable final String value) { + this.message = value; + } + /** + * Sets the type property value. The type property + * @param value Value to set for the type property. + * @return a void + */ + @javax.annotation.Nonnull + public void setType(@javax.annotation.Nullable final String value) { + this.type = value; + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/models/Category.java b/petstore/java/utilities/src/main/java/petstore/utilities/models/Category.java new file mode 100644 index 0000000000..2d0671830f --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/models/Category.java @@ -0,0 +1,109 @@ +package petstore.utilities.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +public class Category implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map additionalData; + /** The id property */ + private Long id; + /** The name property */ + private String name; + /** + * Instantiates a new Category and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public Category() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a Category + */ + @javax.annotation.Nonnull + public static Category createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Category(); + } + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this.additionalData; + } + /** + * The deserialization information for the current model + * @return a Map> + */ + @javax.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(2); + deserializerMap.put("id", (n) -> { this.setId(n.getLongValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the id property value. The id property + * @return a int64 + */ + @javax.annotation.Nullable + public Long getId() { + return this.id; + } + /** + * Gets the name property value. The name property + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this.name; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + * @return a void + */ + @javax.annotation.Nonnull + public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeLongValue("id", this.getId()); + writer.writeStringValue("name", this.getName()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + @javax.annotation.Nonnull + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this.additionalData = value; + } + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + * @return a void + */ + @javax.annotation.Nonnull + public void setId(@javax.annotation.Nullable final Long value) { + this.id = value; + } + /** + * Sets the name property value. The name property + * @param value Value to set for the name property. + * @return a void + */ + @javax.annotation.Nonnull + public void setName(@javax.annotation.Nullable final String value) { + this.name = value; + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/models/Order.java b/petstore/java/utilities/src/main/java/petstore/utilities/models/Order.java new file mode 100644 index 0000000000..0ad21ae4c9 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/models/Order.java @@ -0,0 +1,194 @@ +package petstore.utilities.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +public class Order implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map additionalData; + /** The complete property */ + private Boolean complete; + /** The id property */ + private Long id; + /** The petId property */ + private Long petId; + /** The quantity property */ + private Integer quantity; + /** The shipDate property */ + private OffsetDateTime shipDate; + /** Order Status */ + private OrderStatus status; + /** + * Instantiates a new Order and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public Order() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a Order + */ + @javax.annotation.Nonnull + public static Order createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Order(); + } + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this.additionalData; + } + /** + * Gets the complete property value. The complete property + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getComplete() { + return this.complete; + } + /** + * The deserialization information for the current model + * @return a Map> + */ + @javax.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(6); + deserializerMap.put("complete", (n) -> { this.setComplete(n.getBooleanValue()); }); + deserializerMap.put("id", (n) -> { this.setId(n.getLongValue()); }); + deserializerMap.put("petId", (n) -> { this.setPetId(n.getLongValue()); }); + deserializerMap.put("quantity", (n) -> { this.setQuantity(n.getIntegerValue()); }); + deserializerMap.put("shipDate", (n) -> { this.setShipDate(n.getOffsetDateTimeValue()); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(OrderStatus.class)); }); + return deserializerMap; + } + /** + * Gets the id property value. The id property + * @return a int64 + */ + @javax.annotation.Nullable + public Long getId() { + return this.id; + } + /** + * Gets the petId property value. The petId property + * @return a int64 + */ + @javax.annotation.Nullable + public Long getPetId() { + return this.petId; + } + /** + * Gets the quantity property value. The quantity property + * @return a integer + */ + @javax.annotation.Nullable + public Integer getQuantity() { + return this.quantity; + } + /** + * Gets the shipDate property value. The shipDate property + * @return a OffsetDateTime + */ + @javax.annotation.Nullable + public OffsetDateTime getShipDate() { + return this.shipDate; + } + /** + * Gets the status property value. Order Status + * @return a OrderStatus + */ + @javax.annotation.Nullable + public OrderStatus getStatus() { + return this.status; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + * @return a void + */ + @javax.annotation.Nonnull + public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeBooleanValue("complete", this.getComplete()); + writer.writeLongValue("id", this.getId()); + writer.writeLongValue("petId", this.getPetId()); + writer.writeIntegerValue("quantity", this.getQuantity()); + writer.writeOffsetDateTimeValue("shipDate", this.getShipDate()); + writer.writeEnumValue("status", this.getStatus()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + @javax.annotation.Nonnull + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this.additionalData = value; + } + /** + * Sets the complete property value. The complete property + * @param value Value to set for the complete property. + * @return a void + */ + @javax.annotation.Nonnull + public void setComplete(@javax.annotation.Nullable final Boolean value) { + this.complete = value; + } + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + * @return a void + */ + @javax.annotation.Nonnull + public void setId(@javax.annotation.Nullable final Long value) { + this.id = value; + } + /** + * Sets the petId property value. The petId property + * @param value Value to set for the petId property. + * @return a void + */ + @javax.annotation.Nonnull + public void setPetId(@javax.annotation.Nullable final Long value) { + this.petId = value; + } + /** + * Sets the quantity property value. The quantity property + * @param value Value to set for the quantity property. + * @return a void + */ + @javax.annotation.Nonnull + public void setQuantity(@javax.annotation.Nullable final Integer value) { + this.quantity = value; + } + /** + * Sets the shipDate property value. The shipDate property + * @param value Value to set for the shipDate property. + * @return a void + */ + @javax.annotation.Nonnull + public void setShipDate(@javax.annotation.Nullable final OffsetDateTime value) { + this.shipDate = value; + } + /** + * Sets the status property value. Order Status + * @param value Value to set for the status property. + * @return a void + */ + @javax.annotation.Nonnull + public void setStatus(@javax.annotation.Nullable final OrderStatus value) { + this.status = value; + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/models/OrderStatus.java b/petstore/java/utilities/src/main/java/petstore/utilities/models/OrderStatus.java new file mode 100644 index 0000000000..3e1722f9ee --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/models/OrderStatus.java @@ -0,0 +1,27 @@ +package petstore.utilities.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +/** Order Status */ +public enum OrderStatus implements ValuedEnum { + Placed("placed"), + Approved("approved"), + Delivered("delivered"); + public final String value; + OrderStatus(final String value) { + this.value = value; + } + @javax.annotation.Nonnull + public String getValue() { return this.value; } + @javax.annotation.Nullable + public static OrderStatus forValue(@javax.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "placed": return Placed; + case "approved": return Approved; + case "delivered": return Delivered; + default: return null; + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/models/Pet.java b/petstore/java/utilities/src/main/java/petstore/utilities/models/Pet.java new file mode 100644 index 0000000000..4bbb71a958 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/models/Pet.java @@ -0,0 +1,193 @@ +package petstore.utilities.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +public class Pet implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map additionalData; + /** The category property */ + private Category category; + /** The id property */ + private Long id; + /** The name property */ + private String name; + /** The photoUrls property */ + private java.util.List photoUrls; + /** pet status in the store */ + private PetStatus status; + /** The tags property */ + private java.util.List tags; + /** + * Instantiates a new Pet and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public Pet() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a Pet + */ + @javax.annotation.Nonnull + public static Pet createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Pet(); + } + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this.additionalData; + } + /** + * Gets the category property value. The category property + * @return a Category + */ + @javax.annotation.Nullable + public Category getCategory() { + return this.category; + } + /** + * The deserialization information for the current model + * @return a Map> + */ + @javax.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(6); + deserializerMap.put("category", (n) -> { this.setCategory(n.getObjectValue(Category::createFromDiscriminatorValue)); }); + deserializerMap.put("id", (n) -> { this.setId(n.getLongValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("photoUrls", (n) -> { this.setPhotoUrls(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(PetStatus.class)); }); + deserializerMap.put("tags", (n) -> { this.setTags(n.getCollectionOfObjectValues(Tag::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the id property value. The id property + * @return a int64 + */ + @javax.annotation.Nullable + public Long getId() { + return this.id; + } + /** + * Gets the name property value. The name property + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this.name; + } + /** + * Gets the photoUrls property value. The photoUrls property + * @return a string + */ + @javax.annotation.Nullable + public java.util.List getPhotoUrls() { + return this.photoUrls; + } + /** + * Gets the status property value. pet status in the store + * @return a PetStatus + */ + @javax.annotation.Nullable + public PetStatus getStatus() { + return this.status; + } + /** + * Gets the tags property value. The tags property + * @return a Tag + */ + @javax.annotation.Nullable + public java.util.List getTags() { + return this.tags; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + * @return a void + */ + @javax.annotation.Nonnull + public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeObjectValue("category", this.getCategory()); + writer.writeLongValue("id", this.getId()); + writer.writeStringValue("name", this.getName()); + writer.writeCollectionOfPrimitiveValues("photoUrls", this.getPhotoUrls()); + writer.writeEnumValue("status", this.getStatus()); + writer.writeCollectionOfObjectValues("tags", this.getTags()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + @javax.annotation.Nonnull + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this.additionalData = value; + } + /** + * Sets the category property value. The category property + * @param value Value to set for the category property. + * @return a void + */ + @javax.annotation.Nonnull + public void setCategory(@javax.annotation.Nullable final Category value) { + this.category = value; + } + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + * @return a void + */ + @javax.annotation.Nonnull + public void setId(@javax.annotation.Nullable final Long value) { + this.id = value; + } + /** + * Sets the name property value. The name property + * @param value Value to set for the name property. + * @return a void + */ + @javax.annotation.Nonnull + public void setName(@javax.annotation.Nullable final String value) { + this.name = value; + } + /** + * Sets the photoUrls property value. The photoUrls property + * @param value Value to set for the photoUrls property. + * @return a void + */ + @javax.annotation.Nonnull + public void setPhotoUrls(@javax.annotation.Nullable final java.util.List value) { + this.photoUrls = value; + } + /** + * Sets the status property value. pet status in the store + * @param value Value to set for the status property. + * @return a void + */ + @javax.annotation.Nonnull + public void setStatus(@javax.annotation.Nullable final PetStatus value) { + this.status = value; + } + /** + * Sets the tags property value. The tags property + * @param value Value to set for the tags property. + * @return a void + */ + @javax.annotation.Nonnull + public void setTags(@javax.annotation.Nullable final java.util.List value) { + this.tags = value; + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/models/PetStatus.java b/petstore/java/utilities/src/main/java/petstore/utilities/models/PetStatus.java new file mode 100644 index 0000000000..7a92280ce4 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/models/PetStatus.java @@ -0,0 +1,27 @@ +package petstore.utilities.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +/** pet status in the store */ +public enum PetStatus implements ValuedEnum { + Available("available"), + Pending("pending"), + Sold("sold"); + public final String value; + PetStatus(final String value) { + this.value = value; + } + @javax.annotation.Nonnull + public String getValue() { return this.value; } + @javax.annotation.Nullable + public static PetStatus forValue(@javax.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "available": return Available; + case "pending": return Pending; + case "sold": return Sold; + default: return null; + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/models/Tag.java b/petstore/java/utilities/src/main/java/petstore/utilities/models/Tag.java new file mode 100644 index 0000000000..4527e12cf9 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/models/Tag.java @@ -0,0 +1,109 @@ +package petstore.utilities.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +public class Tag implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map additionalData; + /** The id property */ + private Long id; + /** The name property */ + private String name; + /** + * Instantiates a new Tag and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public Tag() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a Tag + */ + @javax.annotation.Nonnull + public static Tag createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Tag(); + } + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this.additionalData; + } + /** + * The deserialization information for the current model + * @return a Map> + */ + @javax.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(2); + deserializerMap.put("id", (n) -> { this.setId(n.getLongValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the id property value. The id property + * @return a int64 + */ + @javax.annotation.Nullable + public Long getId() { + return this.id; + } + /** + * Gets the name property value. The name property + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this.name; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + * @return a void + */ + @javax.annotation.Nonnull + public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeLongValue("id", this.getId()); + writer.writeStringValue("name", this.getName()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + @javax.annotation.Nonnull + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this.additionalData = value; + } + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + * @return a void + */ + @javax.annotation.Nonnull + public void setId(@javax.annotation.Nullable final Long value) { + this.id = value; + } + /** + * Sets the name property value. The name property + * @param value Value to set for the name property. + * @return a void + */ + @javax.annotation.Nonnull + public void setName(@javax.annotation.Nullable final String value) { + this.name = value; + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/models/User.java b/petstore/java/utilities/src/main/java/petstore/utilities/models/User.java new file mode 100644 index 0000000000..c2e899f6d3 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/models/User.java @@ -0,0 +1,235 @@ +package petstore.utilities.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +public class User implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map additionalData; + /** The email property */ + private String email; + /** The firstName property */ + private String firstName; + /** The id property */ + private Long id; + /** The lastName property */ + private String lastName; + /** The password property */ + private String password; + /** The phone property */ + private String phone; + /** The username property */ + private String username; + /** User Status */ + private Integer userStatus; + /** + * Instantiates a new User and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public User() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a User + */ + @javax.annotation.Nonnull + public static User createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new User(); + } + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this.additionalData; + } + /** + * Gets the email property value. The email property + * @return a string + */ + @javax.annotation.Nullable + public String getEmail() { + return this.email; + } + /** + * The deserialization information for the current model + * @return a Map> + */ + @javax.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(8); + deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); }); + deserializerMap.put("firstName", (n) -> { this.setFirstName(n.getStringValue()); }); + deserializerMap.put("id", (n) -> { this.setId(n.getLongValue()); }); + deserializerMap.put("lastName", (n) -> { this.setLastName(n.getStringValue()); }); + deserializerMap.put("password", (n) -> { this.setPassword(n.getStringValue()); }); + deserializerMap.put("phone", (n) -> { this.setPhone(n.getStringValue()); }); + deserializerMap.put("username", (n) -> { this.setUsername(n.getStringValue()); }); + deserializerMap.put("userStatus", (n) -> { this.setUserStatus(n.getIntegerValue()); }); + return deserializerMap; + } + /** + * Gets the firstName property value. The firstName property + * @return a string + */ + @javax.annotation.Nullable + public String getFirstName() { + return this.firstName; + } + /** + * Gets the id property value. The id property + * @return a int64 + */ + @javax.annotation.Nullable + public Long getId() { + return this.id; + } + /** + * Gets the lastName property value. The lastName property + * @return a string + */ + @javax.annotation.Nullable + public String getLastName() { + return this.lastName; + } + /** + * Gets the password property value. The password property + * @return a string + */ + @javax.annotation.Nullable + public String getPassword() { + return this.password; + } + /** + * Gets the phone property value. The phone property + * @return a string + */ + @javax.annotation.Nullable + public String getPhone() { + return this.phone; + } + /** + * Gets the username property value. The username property + * @return a string + */ + @javax.annotation.Nullable + public String getUsername() { + return this.username; + } + /** + * Gets the userStatus property value. User Status + * @return a integer + */ + @javax.annotation.Nullable + public Integer getUserStatus() { + return this.userStatus; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + * @return a void + */ + @javax.annotation.Nonnull + public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("email", this.getEmail()); + writer.writeStringValue("firstName", this.getFirstName()); + writer.writeLongValue("id", this.getId()); + writer.writeStringValue("lastName", this.getLastName()); + writer.writeStringValue("password", this.getPassword()); + writer.writeStringValue("phone", this.getPhone()); + writer.writeStringValue("username", this.getUsername()); + writer.writeIntegerValue("userStatus", this.getUserStatus()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + @javax.annotation.Nonnull + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this.additionalData = value; + } + /** + * Sets the email property value. The email property + * @param value Value to set for the email property. + * @return a void + */ + @javax.annotation.Nonnull + public void setEmail(@javax.annotation.Nullable final String value) { + this.email = value; + } + /** + * Sets the firstName property value. The firstName property + * @param value Value to set for the firstName property. + * @return a void + */ + @javax.annotation.Nonnull + public void setFirstName(@javax.annotation.Nullable final String value) { + this.firstName = value; + } + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + * @return a void + */ + @javax.annotation.Nonnull + public void setId(@javax.annotation.Nullable final Long value) { + this.id = value; + } + /** + * Sets the lastName property value. The lastName property + * @param value Value to set for the lastName property. + * @return a void + */ + @javax.annotation.Nonnull + public void setLastName(@javax.annotation.Nullable final String value) { + this.lastName = value; + } + /** + * Sets the password property value. The password property + * @param value Value to set for the password property. + * @return a void + */ + @javax.annotation.Nonnull + public void setPassword(@javax.annotation.Nullable final String value) { + this.password = value; + } + /** + * Sets the phone property value. The phone property + * @param value Value to set for the phone property. + * @return a void + */ + @javax.annotation.Nonnull + public void setPhone(@javax.annotation.Nullable final String value) { + this.phone = value; + } + /** + * Sets the username property value. The username property + * @param value Value to set for the username property. + * @return a void + */ + @javax.annotation.Nonnull + public void setUsername(@javax.annotation.Nullable final String value) { + this.username = value; + } + /** + * Sets the userStatus property value. User Status + * @param value Value to set for the userStatus property. + * @return a void + */ + @javax.annotation.Nonnull + public void setUserStatus(@javax.annotation.Nullable final Integer value) { + this.userStatus = value; + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/pet/PetRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/pet/PetRequestBuilder.java new file mode 100644 index 0000000000..2c4a0a542b --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/pet/PetRequestBuilder.java @@ -0,0 +1,231 @@ +package petstore.utilities.pet; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.Pet; +import petstore.utilities.pet.findbystatus.FindByStatusRequestBuilder; +import petstore.utilities.pet.findbytags.FindByTagsRequestBuilder; +/** + * Builds and executes requests for operations under /pet + */ +public class PetRequestBuilder { + /** The findByStatus property */ + @javax.annotation.Nonnull + public FindByStatusRequestBuilder findByStatus() { + return new FindByStatusRequestBuilder(pathParameters, requestAdapter); + } + /** The findByTags property */ + @javax.annotation.Nonnull + public FindByTagsRequestBuilder findByTags() { + return new FindByTagsRequestBuilder(pathParameters, requestAdapter); + } + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new PetRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public PetRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/pet"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new PetRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public PetRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/pet"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Add a new pet to the store + * @param body The request body + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Pet body) { + try { + final RequestInformation requestInfo = toPostRequestInformation(body, null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Add a new pet to the store + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Pet body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Update an existing pet + * @param body The request body + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final Pet body) { + try { + final RequestInformation requestInfo = toPutRequestInformation(body, null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Update an existing pet + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final Pet body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * @param body The request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final Pet body) throws URISyntaxException { + return toPostRequestInformation(body, null); + } + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final Pet body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + if (requestConfiguration != null) { + final PostRequestConfiguration requestConfig = new PostRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * @param body The request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPutRequestInformation(@javax.annotation.Nonnull final Pet body) throws URISyntaxException { + return toPutRequestInformation(body, null); + } + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPutRequestInformation(@javax.annotation.Nonnull final Pet body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.PUT; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + if (requestConfiguration != null) { + final PutRequestConfiguration requestConfig = new PutRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PostRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PostRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PostRequestConfiguration() { + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PutRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PutRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PutRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/pet/findbystatus/FindByStatusRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/pet/findbystatus/FindByStatusRequestBuilder.java new file mode 100644 index 0000000000..558516bb39 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/pet/findbystatus/FindByStatusRequestBuilder.java @@ -0,0 +1,145 @@ +package petstore.utilities.pet.findbystatus; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.Pet; +/** + * Builds and executes requests for operations under /pet/findByStatus + */ +public class FindByStatusRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new FindByStatusRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public FindByStatusRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/pet/findByStatus{?status*}"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new FindByStatusRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public FindByStatusRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/pet/findByStatus{?status*}"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Multiple status values can be provided with comma separated strings + * @return a CompletableFuture of Pet + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture> get() { + try { + final RequestInformation requestInfo = toGetRequestInformation(null); + return this.requestAdapter.sendCollectionAsync(requestInfo, Pet::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture> executionException = new java.util.concurrent.CompletableFuture>(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Multiple status values can be provided with comma separated strings + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of Pet + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture> get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + return this.requestAdapter.sendCollectionAsync(requestInfo, Pet::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture> executionException = new java.util.concurrent.CompletableFuture>(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Multiple status values can be provided with comma separated strings + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation() throws URISyntaxException { + return toGetRequestInformation(null); + } + /** + * Multiple status values can be provided with comma separated strings + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + if (requestConfiguration != null) { + final GetRequestConfiguration requestConfig = new GetRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.addQueryParameters(requestConfig.queryParameters); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Multiple status values can be provided with comma separated strings + */ + public class GetQueryParameters { + /** Status values that need to be considered for filter */ + @javax.annotation.Nullable + public String[] status; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class GetRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** Request query parameters */ + @javax.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + /** + * Instantiates a new GetRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public GetRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/pet/findbytags/FindByTagsRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/pet/findbytags/FindByTagsRequestBuilder.java new file mode 100644 index 0000000000..acf2e811d7 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/pet/findbytags/FindByTagsRequestBuilder.java @@ -0,0 +1,145 @@ +package petstore.utilities.pet.findbytags; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.Pet; +/** + * Builds and executes requests for operations under /pet/findByTags + */ +public class FindByTagsRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new FindByTagsRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public FindByTagsRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/pet/findByTags{?tags*}"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new FindByTagsRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public FindByTagsRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/pet/findByTags{?tags*}"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * @return a CompletableFuture of Pet + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture> get() { + try { + final RequestInformation requestInfo = toGetRequestInformation(null); + return this.requestAdapter.sendCollectionAsync(requestInfo, Pet::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture> executionException = new java.util.concurrent.CompletableFuture>(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of Pet + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture> get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + return this.requestAdapter.sendCollectionAsync(requestInfo, Pet::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture> executionException = new java.util.concurrent.CompletableFuture>(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation() throws URISyntaxException { + return toGetRequestInformation(null); + } + /** + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + if (requestConfiguration != null) { + final GetRequestConfiguration requestConfig = new GetRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.addQueryParameters(requestConfig.queryParameters); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + */ + public class GetQueryParameters { + /** Tags to filter by */ + @javax.annotation.Nullable + public String[] tags; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class GetRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** Request query parameters */ + @javax.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + /** + * Instantiates a new GetRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public GetRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/WithPetItemRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/WithPetItemRequestBuilder.java new file mode 100644 index 0000000000..bd5690f419 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/WithPetItemRequestBuilder.java @@ -0,0 +1,295 @@ +package petstore.utilities.pet.item; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.Pet; +import petstore.utilities.pet.item.uploadimage.UploadImageRequestBuilder; +/** + * Builds and executes requests for operations under /pet/{petId} + */ +public class WithPetItemRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** The uploadImage property */ + @javax.annotation.Nonnull + public UploadImageRequestBuilder uploadImage() { + return new UploadImageRequestBuilder(pathParameters, requestAdapter); + } + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new WithPetItemRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public WithPetItemRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/pet/{petId}"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new WithPetItemRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public WithPetItemRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/pet/{petId}"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Deletes a pet + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture delete() { + try { + final RequestInformation requestInfo = toDeleteRequestInformation(null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Deletes a pet + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Returns a single pet + * @return a CompletableFuture of Pet + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get() { + try { + final RequestInformation requestInfo = toGetRequestInformation(null); + return this.requestAdapter.sendAsync(requestInfo, Pet::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Returns a single pet + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of Pet + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + return this.requestAdapter.sendAsync(requestInfo, Pet::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Updates a pet in the store with form data + * @param body The request body + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final WithPetPostRequestBody body) { + try { + final RequestInformation requestInfo = toPostRequestInformation(body, null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Updates a pet in the store with form data + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final WithPetPostRequestBody body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() throws URISyntaxException { + return toDeleteRequestInformation(null); + } + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.DELETE; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + if (requestConfiguration != null) { + final DeleteRequestConfiguration requestConfig = new DeleteRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Returns a single pet + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation() throws URISyntaxException { + return toGetRequestInformation(null); + } + /** + * Returns a single pet + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + if (requestConfiguration != null) { + final GetRequestConfiguration requestConfig = new GetRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * @param body The request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final WithPetPostRequestBody body) throws URISyntaxException { + return toPostRequestInformation(body, null); + } + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final WithPetPostRequestBody body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.setContentFromParsable(requestAdapter, "application/x-www-form-urlencoded", body); + if (requestConfiguration != null) { + final PostRequestConfiguration requestConfig = new PostRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class DeleteRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new DeleteRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public DeleteRequestConfiguration() { + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class GetRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new GetRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public GetRequestConfiguration() { + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PostRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PostRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PostRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/WithPetPostRequestBody.java b/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/WithPetPostRequestBody.java new file mode 100644 index 0000000000..6cd8740597 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/WithPetPostRequestBody.java @@ -0,0 +1,109 @@ +package petstore.utilities.pet.item; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +public class WithPetPostRequestBody implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map additionalData; + /** Updated name of the pet */ + private String name; + /** Updated status of the pet */ + private String status; + /** + * Instantiates a new WithPetPostRequestBody and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public WithPetPostRequestBody() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a WithPetPostRequestBody + */ + @javax.annotation.Nonnull + public static WithPetPostRequestBody createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WithPetPostRequestBody(); + } + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this.additionalData; + } + /** + * The deserialization information for the current model + * @return a Map> + */ + @javax.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(2); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the name property value. Updated name of the pet + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this.name; + } + /** + * Gets the status property value. Updated status of the pet + * @return a string + */ + @javax.annotation.Nullable + public String getStatus() { + return this.status; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + * @return a void + */ + @javax.annotation.Nonnull + public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("name", this.getName()); + writer.writeStringValue("status", this.getStatus()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + @javax.annotation.Nonnull + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this.additionalData = value; + } + /** + * Sets the name property value. Updated name of the pet + * @param value Value to set for the name property. + * @return a void + */ + @javax.annotation.Nonnull + public void setName(@javax.annotation.Nullable final String value) { + this.name = value; + } + /** + * Sets the status property value. Updated status of the pet + * @param value Value to set for the status property. + * @return a void + */ + @javax.annotation.Nonnull + public void setStatus(@javax.annotation.Nullable final String value) { + this.status = value; + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/uploadimage/UploadImageRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/uploadimage/UploadImageRequestBuilder.java new file mode 100644 index 0000000000..d6d8d0894b --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/pet/item/uploadimage/UploadImageRequestBuilder.java @@ -0,0 +1,139 @@ +package petstore.utilities.pet.item.uploadimage; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.ApiResponse; +/** + * Builds and executes requests for operations under /pet/{petId}/uploadImage + */ +public class UploadImageRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new UploadImageRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public UploadImageRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/pet/{petId}/uploadImage"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new UploadImageRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public UploadImageRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/pet/{petId}/uploadImage"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * uploads an image + * @param body Binary request body + * @return a CompletableFuture of ApiResponse + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final InputStream body) { + try { + final RequestInformation requestInfo = toPostRequestInformation(body, null); + return this.requestAdapter.sendAsync(requestInfo, ApiResponse::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * uploads an image + * @param body Binary request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of ApiResponse + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendAsync(requestInfo, ApiResponse::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * @param body Binary request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final InputStream body) throws URISyntaxException { + return toPostRequestInformation(body, null); + } + /** + * @param body Binary request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + requestInfo.setStreamContent(body); + if (requestConfiguration != null) { + final PostRequestConfiguration requestConfig = new PostRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PostRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PostRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PostRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/store/StoreRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/store/StoreRequestBuilder.java new file mode 100644 index 0000000000..edc4d9d6e2 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/store/StoreRequestBuilder.java @@ -0,0 +1,70 @@ +package petstore.utilities.store; + +import com.microsoft.kiota.RequestAdapter; +import java.util.HashMap; +import java.util.Objects; +import petstore.utilities.store.inventory.InventoryRequestBuilder; +import petstore.utilities.store.order.item.WithOrderItemRequestBuilder; +import petstore.utilities.store.order.OrderRequestBuilder; +/** + * Builds and executes requests for operations under /store + */ +public class StoreRequestBuilder { + /** The inventory property */ + @javax.annotation.Nonnull + public InventoryRequestBuilder inventory() { + return new InventoryRequestBuilder(pathParameters, requestAdapter); + } + /** The order property */ + @javax.annotation.Nonnull + public OrderRequestBuilder order() { + return new OrderRequestBuilder(pathParameters, requestAdapter); + } + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new StoreRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public StoreRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/store"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new StoreRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public StoreRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/store"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Gets an item from the petstore.utilities.store.order.item collection + * @param id Unique identifier of the item + * @return a WithOrderItemRequestBuilder + */ + @javax.annotation.Nonnull + public WithOrderItemRequestBuilder order(@javax.annotation.Nonnull final String id) { + Objects.requireNonNull(id); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("orderId", id); + return new WithOrderItemRequestBuilder(urlTplParams, requestAdapter); + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/store/inventory/InventoryRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/store/inventory/InventoryRequestBuilder.java new file mode 100644 index 0000000000..3369ee7a8e --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/store/inventory/InventoryRequestBuilder.java @@ -0,0 +1,132 @@ +package petstore.utilities.store.inventory; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /store/inventory + */ +public class InventoryRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new InventoryRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public InventoryRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/store/inventory"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new InventoryRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public InventoryRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/store/inventory"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Returns a map of status codes to quantities + * @return a CompletableFuture of inventoryResponse + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get() { + try { + final RequestInformation requestInfo = toGetRequestInformation(null); + return this.requestAdapter.sendAsync(requestInfo, InventoryResponse::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Returns a map of status codes to quantities + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of inventoryResponse + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + return this.requestAdapter.sendAsync(requestInfo, InventoryResponse::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Returns a map of status codes to quantities + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation() throws URISyntaxException { + return toGetRequestInformation(null); + } + /** + * Returns a map of status codes to quantities + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + if (requestConfiguration != null) { + final GetRequestConfiguration requestConfig = new GetRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class GetRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new GetRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public GetRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/store/inventory/InventoryResponse.java b/petstore/java/utilities/src/main/java/petstore/utilities/store/inventory/InventoryResponse.java new file mode 100644 index 0000000000..746c71017d --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/store/inventory/InventoryResponse.java @@ -0,0 +1,67 @@ +package petstore.utilities.store.inventory; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +public class InventoryResponse implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map additionalData; + /** + * Instantiates a new inventoryResponse and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public InventoryResponse() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a inventoryResponse + */ + @javax.annotation.Nonnull + public static InventoryResponse createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new InventoryResponse(); + } + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this.additionalData; + } + /** + * The deserialization information for the current model + * @return a Map> + */ + @javax.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(0); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + * @return a void + */ + @javax.annotation.Nonnull + public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + @javax.annotation.Nonnull + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this.additionalData = value; + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/store/order/OrderRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/store/order/OrderRequestBuilder.java new file mode 100644 index 0000000000..8c58d61d78 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/store/order/OrderRequestBuilder.java @@ -0,0 +1,138 @@ +package petstore.utilities.store.order; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.Order; +/** + * Builds and executes requests for operations under /store/order + */ +public class OrderRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new OrderRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public OrderRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/store/order"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new OrderRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public OrderRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/store/order"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Place an order for a pet + * @param body The request body + * @return a CompletableFuture of Order + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Order body) { + try { + final RequestInformation requestInfo = toPostRequestInformation(body, null); + return this.requestAdapter.sendAsync(requestInfo, Order::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Place an order for a pet + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of Order + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Order body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendAsync(requestInfo, Order::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * @param body The request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final Order body) throws URISyntaxException { + return toPostRequestInformation(body, null); + } + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final Order body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + if (requestConfiguration != null) { + final PostRequestConfiguration requestConfig = new PostRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PostRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PostRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PostRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/store/order/item/WithOrderItemRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/store/order/item/WithOrderItemRequestBuilder.java new file mode 100644 index 0000000000..cb3087eadb --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/store/order/item/WithOrderItemRequestBuilder.java @@ -0,0 +1,210 @@ +package petstore.utilities.store.order.item; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.Order; +/** + * Builds and executes requests for operations under /store/order/{orderId} + */ +public class WithOrderItemRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new WithOrderItemRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public WithOrderItemRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/store/order/{orderId}"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new WithOrderItemRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public WithOrderItemRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/store/order/{orderId}"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture delete() { + try { + final RequestInformation requestInfo = toDeleteRequestInformation(null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + * @return a CompletableFuture of Order + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get() { + try { + final RequestInformation requestInfo = toGetRequestInformation(null); + return this.requestAdapter.sendAsync(requestInfo, Order::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of Order + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + return this.requestAdapter.sendAsync(requestInfo, Order::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() throws URISyntaxException { + return toDeleteRequestInformation(null); + } + /** + * For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.DELETE; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + if (requestConfiguration != null) { + final DeleteRequestConfiguration requestConfig = new DeleteRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation() throws URISyntaxException { + return toGetRequestInformation(null); + } + /** + * For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + if (requestConfiguration != null) { + final GetRequestConfiguration requestConfig = new GetRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class DeleteRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new DeleteRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public DeleteRequestConfiguration() { + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class GetRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new GetRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public GetRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/user/UserRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/user/UserRequestBuilder.java new file mode 100644 index 0000000000..7c2bb3663f --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/user/UserRequestBuilder.java @@ -0,0 +1,164 @@ +package petstore.utilities.user; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.User; +import petstore.utilities.user.createwitharray.CreateWithArrayRequestBuilder; +import petstore.utilities.user.createwithlist.CreateWithListRequestBuilder; +import petstore.utilities.user.login.LoginRequestBuilder; +import petstore.utilities.user.logout.LogoutRequestBuilder; +/** + * Builds and executes requests for operations under /user + */ +public class UserRequestBuilder { + /** The createWithArray property */ + @javax.annotation.Nonnull + public CreateWithArrayRequestBuilder createWithArray() { + return new CreateWithArrayRequestBuilder(pathParameters, requestAdapter); + } + /** The createWithList property */ + @javax.annotation.Nonnull + public CreateWithListRequestBuilder createWithList() { + return new CreateWithListRequestBuilder(pathParameters, requestAdapter); + } + /** The login property */ + @javax.annotation.Nonnull + public LoginRequestBuilder login() { + return new LoginRequestBuilder(pathParameters, requestAdapter); + } + /** The logout property */ + @javax.annotation.Nonnull + public LogoutRequestBuilder logout() { + return new LogoutRequestBuilder(pathParameters, requestAdapter); + } + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new UserRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public UserRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/user"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new UserRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public UserRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/user"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * This can only be done by the logged in user. + * @param body The request body + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final User body) { + try { + final RequestInformation requestInfo = toPostRequestInformation(body, null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * This can only be done by the logged in user. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final User body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * This can only be done by the logged in user. + * @param body The request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final User body) throws URISyntaxException { + return toPostRequestInformation(body, null); + } + /** + * This can only be done by the logged in user. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final User body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + if (requestConfiguration != null) { + final PostRequestConfiguration requestConfig = new PostRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PostRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PostRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PostRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/user/createwitharray/CreateWithArrayRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/user/createwitharray/CreateWithArrayRequestBuilder.java new file mode 100644 index 0000000000..b57da9b677 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/user/createwitharray/CreateWithArrayRequestBuilder.java @@ -0,0 +1,138 @@ +package petstore.utilities.user.createwitharray; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.User; +/** + * Builds and executes requests for operations under /user/createWithArray + */ +public class CreateWithArrayRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new CreateWithArrayRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public CreateWithArrayRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/user/createWithArray"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new CreateWithArrayRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public CreateWithArrayRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/user/createWithArray"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Creates list of users with given input array + * @param body The request body + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final java.util.List body) { + try { + final RequestInformation requestInfo = toPostRequestInformation(body, null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Creates list of users with given input array + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final java.util.List body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * @param body The request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final java.util.List body) throws URISyntaxException { + return toPostRequestInformation(body, null); + } + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final java.util.List body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.setContentFromParsable(requestAdapter, "application/json", body.toArray(new User[0])); + if (requestConfiguration != null) { + final PostRequestConfiguration requestConfig = new PostRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PostRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PostRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PostRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/user/createwithlist/CreateWithListRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/user/createwithlist/CreateWithListRequestBuilder.java new file mode 100644 index 0000000000..a55cec404d --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/user/createwithlist/CreateWithListRequestBuilder.java @@ -0,0 +1,138 @@ +package petstore.utilities.user.createwithlist; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.User; +/** + * Builds and executes requests for operations under /user/createWithList + */ +public class CreateWithListRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new CreateWithListRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public CreateWithListRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/user/createWithList"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new CreateWithListRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public CreateWithListRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/user/createWithList"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Creates list of users with given input array + * @param body The request body + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final java.util.List body) { + try { + final RequestInformation requestInfo = toPostRequestInformation(body, null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Creates list of users with given input array + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final java.util.List body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * @param body The request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final java.util.List body) throws URISyntaxException { + return toPostRequestInformation(body, null); + } + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPostRequestInformation(@javax.annotation.Nonnull final java.util.List body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.setContentFromParsable(requestAdapter, "application/json", body.toArray(new User[0])); + if (requestConfiguration != null) { + final PostRequestConfiguration requestConfig = new PostRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PostRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PostRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PostRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/user/item/WithUsernameItemRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/user/item/WithUsernameItemRequestBuilder.java new file mode 100644 index 0000000000..b46e0f3d5a --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/user/item/WithUsernameItemRequestBuilder.java @@ -0,0 +1,291 @@ +package petstore.utilities.user.item; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import petstore.utilities.models.User; +/** + * Builds and executes requests for operations under /user/{username} + */ +public class WithUsernameItemRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new WithUsernameItemRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public WithUsernameItemRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/user/{username}"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new WithUsernameItemRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public WithUsernameItemRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/user/{username}"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * This can only be done by the logged in user. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture delete() { + try { + final RequestInformation requestInfo = toDeleteRequestInformation(null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * This can only be done by the logged in user. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Get user by user name + * @return a CompletableFuture of User + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get() { + try { + final RequestInformation requestInfo = toGetRequestInformation(null); + return this.requestAdapter.sendAsync(requestInfo, User::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Get user by user name + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of User + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + return this.requestAdapter.sendAsync(requestInfo, User::createFromDiscriminatorValue, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * This can only be done by the logged in user. + * @param body The request body + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final User body) { + try { + final RequestInformation requestInfo = toPutRequestInformation(body, null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * This can only be done by the logged in user. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final User body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + try { + final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * This can only be done by the logged in user. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() throws URISyntaxException { + return toDeleteRequestInformation(null); + } + /** + * This can only be done by the logged in user. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.DELETE; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + if (requestConfiguration != null) { + final DeleteRequestConfiguration requestConfig = new DeleteRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation() throws URISyntaxException { + return toGetRequestInformation(null); + } + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + if (requestConfiguration != null) { + final GetRequestConfiguration requestConfig = new GetRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * This can only be done by the logged in user. + * @param body The request body + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPutRequestInformation(@javax.annotation.Nonnull final User body) throws URISyntaxException { + return toPutRequestInformation(body, null); + } + /** + * This can only be done by the logged in user. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toPutRequestInformation(@javax.annotation.Nonnull final User body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.PUT; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + if (requestConfiguration != null) { + final PutRequestConfiguration requestConfig = new PutRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class DeleteRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new DeleteRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public DeleteRequestConfiguration() { + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class GetRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new GetRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public GetRequestConfiguration() { + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class PutRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new PutRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public PutRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/user/login/LoginRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/user/login/LoginRequestBuilder.java new file mode 100644 index 0000000000..0275a5e567 --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/user/login/LoginRequestBuilder.java @@ -0,0 +1,145 @@ +package petstore.utilities.user.login; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /user/login + */ +public class LoginRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new LoginRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public LoginRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/user/login{?username*,password*}"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new LoginRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public LoginRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/user/login{?username*,password*}"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Logs user into the system + * @return a CompletableFuture of string + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get() { + try { + final RequestInformation requestInfo = toGetRequestInformation(null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, String.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Logs user into the system + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of string + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, String.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation() throws URISyntaxException { + return toGetRequestInformation(null); + } + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + requestInfo.headers.add("Accept", "application/json"); + if (requestConfiguration != null) { + final GetRequestConfiguration requestConfig = new GetRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.addQueryParameters(requestConfig.queryParameters); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Logs user into the system + */ + public class GetQueryParameters { + /** The password for login in clear text */ + @javax.annotation.Nullable + public String password; + /** The user name for login */ + @javax.annotation.Nullable + public String username; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class GetRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** Request query parameters */ + @javax.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + /** + * Instantiates a new GetRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public GetRequestConfiguration() { + } + } +} diff --git a/petstore/java/utilities/src/main/java/petstore/utilities/user/logout/LogoutRequestBuilder.java b/petstore/java/utilities/src/main/java/petstore/utilities/user/logout/LogoutRequestBuilder.java new file mode 100644 index 0000000000..56c57f9c3c --- /dev/null +++ b/petstore/java/utilities/src/main/java/petstore/utilities/user/logout/LogoutRequestBuilder.java @@ -0,0 +1,130 @@ +package petstore.utilities.user.logout; + +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestHeaders; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /user/logout + */ +public class LogoutRequestBuilder { + /** Path parameters for the request */ + private HashMap pathParameters; + /** The request adapter to use to execute the requests. */ + private RequestAdapter requestAdapter; + /** Url template to use to build the URL for the current request builder */ + private String urlTemplate; + /** + * Instantiates a new LogoutRequestBuilder and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public LogoutRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + Objects.requireNonNull(pathParameters); + Objects.requireNonNull(requestAdapter); + this.urlTemplate = "{+baseurl}/user/logout"; + final HashMap urlTplParams = new HashMap(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Instantiates a new LogoutRequestBuilder and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + * @return a void + */ + @javax.annotation.Nullable + public LogoutRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) { + this.urlTemplate = "{+baseurl}/user/logout"; + final HashMap urlTplParams = new HashMap(); + urlTplParams.put("request-raw-url", rawUrl); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + } + /** + * Logs out current logged in user session + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get() { + try { + final RequestInformation requestInfo = toGetRequestInformation(null); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * Logs out current logged in user session + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a CompletableFuture of InputStream + */ + @javax.annotation.Nonnull + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + try { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + return this.requestAdapter.sendPrimitiveAsync(requestInfo, InputStream.class, null); + } catch (URISyntaxException ex) { + final java.util.concurrent.CompletableFuture executionException = new java.util.concurrent.CompletableFuture(); + executionException.completeExceptionally(ex); + return executionException; + } + } + /** + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation() throws URISyntaxException { + return toGetRequestInformation(null); + } + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a RequestInformation + */ + @javax.annotation.Nonnull + public RequestInformation toGetRequestInformation(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) throws URISyntaxException { + final RequestInformation requestInfo = new RequestInformation(); + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.urlTemplate = urlTemplate; + requestInfo.pathParameters = pathParameters; + if (requestConfiguration != null) { + final GetRequestConfiguration requestConfig = new GetRequestConfiguration(); + requestConfiguration.accept(requestConfig); + requestInfo.headers.putAll(requestConfig.headers); + requestInfo.addRequestOptions(requestConfig.options); + } + return requestInfo; + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + public class GetRequestConfiguration { + /** Request headers */ + @javax.annotation.Nullable + public RequestHeaders headers = new RequestHeaders(); + /** Request options */ + @javax.annotation.Nullable + public java.util.List options = Collections.emptyList(); + /** + * Instantiates a new GetRequestConfiguration and sets the default values. + * @return a void + */ + @javax.annotation.Nullable + public GetRequestConfiguration() { + } + } +} diff --git a/petstore/typescript/.dockerignore b/petstore/typescript/.dockerignore new file mode 100644 index 0000000000..e134473bb9 --- /dev/null +++ b/petstore/typescript/.dockerignore @@ -0,0 +1,9 @@ +dist +node_modules +scripts +.editorconfig +.gitignore +.travis.yml +Dockerfile +LICENSE +README.md diff --git a/petstore/typescript/.editorconfig b/petstore/typescript/.editorconfig new file mode 100644 index 0000000000..6e87a003da --- /dev/null +++ b/petstore/typescript/.editorconfig @@ -0,0 +1,13 @@ +# Editor configuration, see http://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +max_line_length = off +trim_trailing_whitespace = false diff --git a/petstore/typescript/.eslintignore b/petstore/typescript/.eslintignore new file mode 100644 index 0000000000..c1d279e840 --- /dev/null +++ b/petstore/typescript/.eslintignore @@ -0,0 +1,5 @@ +dist +node_modules +.vscode + +webpack.config.js diff --git a/petstore/typescript/.eslintrc.js b/petstore/typescript/.eslintrc.js new file mode 100644 index 0000000000..ba987217de --- /dev/null +++ b/petstore/typescript/.eslintrc.js @@ -0,0 +1,39 @@ +module.exports = { + root: true, + env: { + browser: true, + es6: true, + node: true, + }, + parser: "@typescript-eslint/parser", + parserOptions: { + project: "tsconfig.json", + sourceType: "module", + }, + plugins: ["@typescript-eslint"], + rules: { + "@typescript-eslint/quotes": "off", + "@typescript-eslint/indent": "off", + "@typescript-eslint/semi": "off", + "@typescript-eslint/member-delimiter-style": [ + "error", + { + multiline: { + delimiter: "comma", + requireLast: true, + }, + singleline: { + delimiter: "comma", + requireLast: false, + }, + }, + ], + "comma-dangle": ["error", "always-multiline"], + "max-classes-per-file": "off", + "no-console": "error", + "no-multiple-empty-lines": ["error", { max: 1 }], + "no-redeclare": "error", + "no-return-await": "off", + "prefer-const": "error", + }, +}; diff --git a/petstore/typescript/.github/workflows/main.yml b/petstore/typescript/.github/workflows/main.yml new file mode 100644 index 0000000000..20335254e2 --- /dev/null +++ b/petstore/typescript/.github/workflows/main.yml @@ -0,0 +1,33 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Docker build + run: docker build --rm -t toxsickcoder/node-typescript-starter:latest . + + - name: Docker run + run: docker run --rm toxsickcoder/node-typescript-starter:latest + diff --git a/petstore/typescript/.gitignore b/petstore/typescript/.gitignore new file mode 100644 index 0000000000..a3ca1c2e93 --- /dev/null +++ b/petstore/typescript/.gitignore @@ -0,0 +1,3 @@ +dist +node_modules +.vscode diff --git a/petstore/typescript/Dockerfile b/petstore/typescript/Dockerfile new file mode 100644 index 0000000000..021ebc9b74 --- /dev/null +++ b/petstore/typescript/Dockerfile @@ -0,0 +1,12 @@ +FROM node:12-alpine as builder +WORKDIR /usr/src/app/ +COPY package.json package-lock.json ./ +RUN npm ci +COPY . . +RUN npm run lint +RUN npm run build:ci + +FROM node:12-alpine +WORKDIR /usr/app/ +COPY --from=builder /usr/src/app/dist/ ./ +CMD [ "node", "node-typescript-starter.js" ] diff --git a/petstore/typescript/LICENSE b/petstore/typescript/LICENSE new file mode 100644 index 0000000000..dc87832426 --- /dev/null +++ b/petstore/typescript/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Freek Mencke + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/petstore/typescript/README.md b/petstore/typescript/README.md new file mode 100644 index 0000000000..994d87b451 --- /dev/null +++ b/petstore/typescript/README.md @@ -0,0 +1,26 @@ +![CI](https://github.com/FreekMencke/node-typescript-starter/workflows/CI/badge.svg) +[![GitHub issues](https://img.shields.io/github/issues/FreekMencke/node-typescript-starter.svg)](https://github.com/FreekMencke/node-typescript-starter/issues) +[![GitHub license](https://img.shields.io/github/license/FreekMencke/node-typescript-starter.svg)](https://github.com/FreekMencke/node-typescript-starter/blob/master/LICENSE) + +# Node TypeScript Starter + +Since I make a lot of projects, I created this **Node TypeScript Starter** to easily create a new Node project with TypeScript. + +## Getting started + +- `git clone https://github.com/FreekMencke/node-typescript-starter.git` +- `npm install` +- `npm start` + +The application will build and run the **Node Typescript Starter**. + +## Features + +- TypeScript ESLint (TSLint is deprecated) +- Strict TSConfig +- EditorConfig +- Different configs for Dev and Prod +- Webpack watch (nodemon) +- BundleAnalyser +- Docker +- Github Action CI diff --git a/petstore/typescript/package-lock.json b/petstore/typescript/package-lock.json new file mode 100644 index 0000000000..c808c223b2 --- /dev/null +++ b/petstore/typescript/package-lock.json @@ -0,0 +1,8205 @@ +{ + "name": "node-typescript-starter", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "node-typescript-starter", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@azure/identity": "^3.1.3", + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "@microsoft/kiota-authentication-azure": "^1.0.0-preview.11", + "@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.14", + "@microsoft/kiota-serialization-form": "^1.0.0-preview.5", + "@microsoft/kiota-serialization-json": "^1.0.0-preview.14", + "@microsoft/kiota-serialization-text": "^1.0.0-preview.13", + "express": "^4.18.1", + "node-fetch": "^2.6.9" + }, + "devDependencies": { + "@types/node": "^18.7.16", + "@typescript-eslint/eslint-plugin": "^5.36.2", + "@typescript-eslint/parser": "^5.36.2", + "clean-webpack-plugin": "^4.0.0", + "eslint": "^8.23.0", + "nodemon-webpack-plugin": "^4.8.1", + "raw-loader": "^4.0.2", + "ts-loader": "^9.3.1", + "typescript": "^5.0.3", + "web-streams-polyfill": "^3.2.1", + "webpack": "^5.74.0", + "webpack-bundle-analyzer": "^4.6.1", + "webpack-cli": "^5.0.1" + } + }, + "node_modules/@azure/abort-controller": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-1.1.0.tgz", + "integrity": "sha512-TrRLIoSQVzfAJX9H1JeFjzAoDGcoK1IYX1UImfceTZpsyYfWr09Ss1aHW1y5TrrR3iq6RZLBwJ3E24uwPhwahw==", + "dependencies": { + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@azure/abort-controller/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@azure/core-auth": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.3.2.tgz", + "integrity": "sha512-7CU6DmCHIZp5ZPiZ9r3J17lTKMmYsm/zGvNkjArQwPkrLlZ1TZ+EUYfGgh2X31OLMVAQCTJZW4cXHJi02EbJnA==", + "dependencies": { + "@azure/abort-controller": "^1.0.0", + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@azure/core-auth/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@azure/core-client": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.6.0.tgz", + "integrity": "sha512-YhSf4cb61ApSjItscp9XoaLq8KRnacPDAhmjAZSMnn/gs6FhFbZNfOBOErG2dDj7JRknVtCmJ5mLmfR2sLa11A==", + "dependencies": { + "@azure/abort-controller": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-rest-pipeline": "^1.5.0", + "@azure/core-tracing": "^1.0.0", + "@azure/core-util": "^1.0.0", + "@azure/logger": "^1.0.0", + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@azure/core-client/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@azure/core-rest-pipeline": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.9.0.tgz", + "integrity": "sha512-uvM3mY+Vegk0F2r4Eh0yPdsXTUyafTQkeX0USnz1Eyangxm2Bib0w0wkJVZW8fpks7Lcv0ztIdCFTrN7H8uptg==", + "dependencies": { + "@azure/abort-controller": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-tracing": "^1.0.1", + "@azure/core-util": "^1.0.0", + "@azure/logger": "^1.0.0", + "form-data": "^4.0.0", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "tslib": "^2.2.0", + "uuid": "^8.3.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@azure/core-rest-pipeline/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@azure/core-tracing": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.0.1.tgz", + "integrity": "sha512-I5CGMoLtX+pI17ZdiFJZgxMJApsK6jjfm85hpgp3oazCdq5Wxgh4wMr7ge/TTWW1B5WBuvIOI1fMU/FrOAMKrw==", + "dependencies": { + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@azure/core-tracing/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@azure/core-util": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.0.0.tgz", + "integrity": "sha512-yWshY9cdPthlebnb3Zuz/j0Lv4kjU6u7PR5sW7A9FF7EX+0irMRJAtyTq5TPiDHJfjH8gTSlnIYFj9m7Ed76IQ==", + "dependencies": { + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@azure/core-util/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@azure/identity": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-3.1.3.tgz", + "integrity": "sha512-y0jFjSfHsVPwXSwi3KaSPtOZtJZqhiqAhWUXfFYBUd/+twUBovZRXspBwLrF5rJe0r5NyvmScpQjL+TYDTQVvw==", + "dependencies": { + "@azure/abort-controller": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-client": "^1.4.0", + "@azure/core-rest-pipeline": "^1.1.0", + "@azure/core-tracing": "^1.0.0", + "@azure/core-util": "^1.0.0", + "@azure/logger": "^1.0.0", + "@azure/msal-browser": "^2.32.2", + "@azure/msal-common": "^9.0.2", + "@azure/msal-node": "^1.14.6", + "events": "^3.0.0", + "jws": "^4.0.0", + "open": "^8.0.0", + "stoppable": "^1.1.0", + "tslib": "^2.2.0", + "uuid": "^8.3.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@azure/identity/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@azure/logger": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.0.3.tgz", + "integrity": "sha512-aK4s3Xxjrx3daZr3VylxejK3vG5ExXck5WOHDJ8in/k9AqlfIyFMMT1uG7u8mNjX+QRILTIn0/Xgschfh/dQ9g==", + "dependencies": { + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@azure/logger/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@azure/msal-browser": { + "version": "2.35.0", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-2.35.0.tgz", + "integrity": "sha512-L+gSBbJfU3H81Bnj+VIVjO7jRpt2Ex+4i2YVOPE50ykfQ5W9mtBFMRCHb1K+8FzTeyQH/KkQv6bC+MdaU+3LEw==", + "dependencies": { + "@azure/msal-common": "^12.0.0" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-browser/node_modules/@azure/msal-common": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-12.0.0.tgz", + "integrity": "sha512-SvQl4JWy1yZnxyq0xng/urf103wz68UJG0K9Dq2NM2to7ePA+R1hMisKnXELJvZrEGYANGbh/Hc0T9piGqOteQ==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-common": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-9.1.1.tgz", + "integrity": "sha512-we9xR8lvu47fF0h+J8KyXoRy9+G/fPzm3QEa2TrdR3jaVS3LKAyE2qyMuUkNdbVkvzl8Zr9f7l+IUSP22HeqXw==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-node": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-1.17.0.tgz", + "integrity": "sha512-aOKykKxDc+Kf5vcdOUPdKlJ96YAIyrHyl4W8RyfMqw0iApDckOuhejNwlZr6/M7U40wo1Wj4PwxRVx7d8OFBFg==", + "dependencies": { + "@azure/msal-common": "^12.0.0", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + }, + "engines": { + "node": "10 || 12 || 14 || 16 || 18" + } + }, + "node_modules/@azure/msal-node/node_modules/@azure/msal-common": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-12.0.0.tgz", + "integrity": "sha512-SvQl4JWy1yZnxyq0xng/urf103wz68UJG0K9Dq2NM2to7ePA+R1hMisKnXELJvZrEGYANGbh/Hc0T9piGqOteQ==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz", + "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", + "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.1", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.37.0.tgz", + "integrity": "sha512-x5vzdtOOGgFVDCUs81QRB2+liax8rFg3+7hqM+QhBG0/G3F1ZsoYl97UrqgHgQ9KKT7G6c4V+aTUCgu/n22v1A==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.8", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", + "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", + "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@microsoft/kiota-abstractions": { + "version": "1.0.0-preview.13", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-abstractions/-/kiota-abstractions-1.0.0-preview.13.tgz", + "integrity": "sha512-w5yVGCdUDDNb49+T8FI1cX+qTfnZB4QLysr9Ak1W5wbT/CQrOj57x5VxIvgA3htQR9YZw12lSkJWEqUz5mfVlw==", + "dependencies": { + "@opentelemetry/api": "^1.2.0", + "tinyduration": "^3.2.2", + "tslib": "^2.3.1", + "uri-template-lite": "^22.1.0", + "uuid": "^9.0.0" + } + }, + "node_modules/@microsoft/kiota-abstractions/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@microsoft/kiota-abstractions/node_modules/uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@microsoft/kiota-authentication-azure": { + "version": "1.0.0-preview.11", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-authentication-azure/-/kiota-authentication-azure-1.0.0-preview.11.tgz", + "integrity": "sha512-OdPbnEkE7RxOxh26umpTiJcV932sF2+Y9ZH1tLy49obcEpCJm+KRJHvovY8GNK/tc/1jBjwcsSosY61V6I2W5Q==", + "dependencies": { + "@azure/core-auth": "^1.3.2", + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "@opentelemetry/api": "^1.2.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@microsoft/kiota-authentication-azure/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@microsoft/kiota-http-fetchlibrary": { + "version": "1.0.0-preview.14", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-http-fetchlibrary/-/kiota-http-fetchlibrary-1.0.0-preview.14.tgz", + "integrity": "sha512-mdnCBoNcGvUUWPsdKLiEjthxLO1wdHC5hcxhmrzoHWOVXJzv2oZzkAX+n9PIFpiT1XAFaW23Z+PQKCGW4MBlKQ==", + "dependencies": { + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "@opentelemetry/api": "^1.2.0", + "node-fetch": "^2.6.5", + "tslib": "^2.3.1" + } + }, + "node_modules/@microsoft/kiota-http-fetchlibrary/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@microsoft/kiota-serialization-form": { + "version": "1.0.0-preview.5", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-form/-/kiota-serialization-form-1.0.0-preview.5.tgz", + "integrity": "sha512-kO7eDYU97BhlP4Z0naFH4G+g8jDWBZ/lCCXl259VXr3b3BUa0M6NjVr7WQB3SkmmNwbAZx7ku6dj9a3c0v5R8w==", + "dependencies": { + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "tslib": "^2.3.1" + } + }, + "node_modules/@microsoft/kiota-serialization-form/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@microsoft/kiota-serialization-json": { + "version": "1.0.0-preview.14", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-json/-/kiota-serialization-json-1.0.0-preview.14.tgz", + "integrity": "sha512-0YnpLB41tG9ddU5SOHJep+kZpOF6ucy0t2LKQLJh00QK5nBzDOAefSqgANxp/j5vNlfnI+GD45YbwjBnkVD3kg==", + "dependencies": { + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "tslib": "^2.3.1" + } + }, + "node_modules/@microsoft/kiota-serialization-json/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@microsoft/kiota-serialization-text": { + "version": "1.0.0-preview.13", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-text/-/kiota-serialization-text-1.0.0-preview.13.tgz", + "integrity": "sha512-GzOM8Hoo+vmxtGmwqc/V7d7T92AaXiUGMFrVbRE3TJcdoOOWjSCHtKNTqV7j5jzEQ3Q451i6bDiSZCqmuZZ09Q==", + "dependencies": { + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "tslib": "^2.3.1" + } + }, + "node_modules/@microsoft/kiota-serialization-text/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@opentelemetry/api": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.4.1.tgz", + "integrity": "sha512-O2yRJce1GOc6PAy3QxFM4NzFiWzvScDC1/5ihYBL6BUEVdq0XMWN01sppE+H6bBXbaFYipjwFLEWLg5PaSOThA==", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "dev": true + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/eslint": { + "version": "8.4.5", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.5.tgz", + "integrity": "sha512-dhsC09y1gpJWnK+Ff4SGvCuSnk9DaU0BJZSzOwa6GVSg65XtTugLBITDAAzRU5duGBoXBHpdR/9jHGxJjNflJQ==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true + }, + "node_modules/@types/glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==", + "dev": true, + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, + "node_modules/@types/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.15.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz", + "integrity": "sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==", + "dev": true + }, + "node_modules/@types/nodemon": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@types/nodemon/-/nodemon-1.19.1.tgz", + "integrity": "sha512-3teAFqCFba3W9zk4dAGUZ+rW/nrQBrSGXWyK9HfJuWxmITk2z2d3u/5cy7oFqNG2fZxPwSAWkP+a8q/QC6UU5Q==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/semver": { + "version": "7.3.13", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", + "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.57.1.tgz", + "integrity": "sha512-1MeobQkQ9tztuleT3v72XmY0XuKXVXusAhryoLuU5YZ+mXoYKZP9SQ7Flulh1NX4DTjpGTc2b/eMu4u7M7dhnQ==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.57.1", + "@typescript-eslint/type-utils": "5.57.1", + "@typescript-eslint/utils": "5.57.1", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.57.1.tgz", + "integrity": "sha512-hlA0BLeVSA/wBPKdPGxoVr9Pp6GutGoY380FEhbVi0Ph4WNe8kLvqIRx76RSQt1lynZKfrXKs0/XeEk4zZycuA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.57.1", + "@typescript-eslint/types": "5.57.1", + "@typescript-eslint/typescript-estree": "5.57.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.57.1.tgz", + "integrity": "sha512-N/RrBwEUKMIYxSKl0oDK5sFVHd6VI7p9K5MyUlVYAY6dyNb/wHUqndkTd3XhpGlXgnQsBkRZuu4f9kAHghvgPw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.57.1", + "@typescript-eslint/visitor-keys": "5.57.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.57.1.tgz", + "integrity": "sha512-/RIPQyx60Pt6ga86hKXesXkJ2WOS4UemFrmmq/7eOyiYjYv/MUSHPlkhU6k9T9W1ytnTJueqASW+wOmW4KrViw==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.57.1", + "@typescript-eslint/utils": "5.57.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.57.1.tgz", + "integrity": "sha512-bSs4LOgyV3bJ08F5RDqO2KXqg3WAdwHCu06zOqcQ6vqbTJizyBhuh1o1ImC69X4bV2g1OJxbH71PJqiO7Y1RuA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.57.1.tgz", + "integrity": "sha512-A2MZqD8gNT0qHKbk2wRspg7cHbCDCk2tcqt6ScCFLr5Ru8cn+TCfM786DjPhqwseiS+PrYwcXht5ztpEQ6TFTw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.57.1", + "@typescript-eslint/visitor-keys": "5.57.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.57.1.tgz", + "integrity": "sha512-kN6vzzf9NkEtawECqze6v99LtmDiUJCVpvieTFA1uL7/jDghiJGubGZ5csicYHU1Xoqb3oH/R5cN5df6W41Nfg==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.57.1", + "@typescript-eslint/types": "5.57.1", + "@typescript-eslint/typescript-estree": "5.57.1", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.57.1.tgz", + "integrity": "sha512-RjQrAniDU0CEk5r7iphkm731zKlFiUjvcBS2yHAg8WWqFMCaCrD0rKEVOMUyMMcbGPZ0bPp56srkGWrgfZqLRA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.57.1", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.0.1.tgz", + "integrity": "sha512-njsdJXJSiS2iNbQVS0eT8A/KPnmyH4pv1APj2K0d1wrZcBLw+yppxOy4CGqa0OxDJkzfL/XELDhD8rocnIwB5A==", + "dev": true, + "engines": { + "node": ">=14.15.0" + }, + "peerDependencies": { + "webpack": "5.x.x", + "webpack-cli": "5.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.1.tgz", + "integrity": "sha512-fE1UEWTwsAxRhrJNikE7v4EotYflkEhBL7EbajfkPlf6E37/2QshOy/D48Mw8G5XMFlQtS6YV42vtbG9zBpIQA==", + "dev": true, + "engines": { + "node": ">=14.15.0" + }, + "peerDependencies": { + "webpack": "5.x.x", + "webpack-cli": "5.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.1.tgz", + "integrity": "sha512-0G7tNyS+yW8TdgHwZKlDWYXFA6OJQnoLCQvYKkQP0Q2X205PSQ6RNUj0M+1OB/9gRQaUZ/ccYfaxd0nhaWKfjw==", + "dev": true, + "engines": { + "node": ">=14.15.0" + }, + "peerDependencies": { + "webpack": "5.x.x", + "webpack-cli": "5.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "node_modules/array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "dependencies": { + "array-uniq": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.2.tgz", + "integrity": "sha512-MonuOgAtUB46uP5CezYbRaYKBNt2LxP0yX+Pmj4LkcDFGkn9Cbpi83d9sCjwQDErXsIJSzY5oKGDbgOlF/LPAA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001366", + "electron-to-chromium": "^1.4.188", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.4" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001370", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001370.tgz", + "integrity": "sha512-3PDmaP56wz/qz7G508xzjx8C+MC2qEm4SYhSEzC9IBROo+dGXFWRuaXkWti0A9tuI00g+toiriVqxtWMgl350g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/chalk/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/chalk/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/clean-webpack-plugin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/clean-webpack-plugin/-/clean-webpack-plugin-4.0.0.tgz", + "integrity": "sha512-WuWE1nyTNAyW5T7oNyys2EN0cfP2fdRxhxnIQWiAp0bMabPdHhoGxM8A6YL2GhqwgrPnnaemVE7nv5XJ2Fhh2w==", + "dev": true, + "dependencies": { + "del": "^4.1.1" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "webpack": ">=4.0.0 <6.0.0" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/colorette": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.17.tgz", + "integrity": "sha512-hJo+3Bkn0NCHybn9Tu35fIeoOKGOk5OCC32y4Hz2It+qlCO2Q3DeQ1hRn/tDDMQKRYUEzqsl7jbF6dYKjlE60g==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-disposition/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "engines": { + "node": ">=8" + } + }, + "node_modules/del": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", + "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", + "dev": true, + "dependencies": { + "@types/glob": "^7.1.1", + "globby": "^6.1.0", + "is-path-cwd": "^2.0.0", + "is-path-in-cwd": "^2.0.0", + "p-map": "^2.0.0", + "pify": "^4.0.1", + "rimraf": "^2.6.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "node_modules/electron-to-chromium": { + "version": "1.4.200", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.200.tgz", + "integrity": "sha512-nPyI7oHc8T64oSqRXrAt99gNMpk0SAgPHw/o+hkNKyb5+bcdnFtZcSO9FUJES5cVkVZvo8u4qiZ1gQILl8UXsA==", + "dev": true + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.9.3.tgz", + "integrity": "sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.37.0.tgz", + "integrity": "sha512-NU3Ps9nI05GUoVMxcZx1J8CNR6xOvUT4jAUMH5+z8lpp3aEdPVCImKw6PWG4PY+Vfkpr+jvMpxs/qoE7wq0sPw==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.2", + "@eslint/js": "8.37.0", + "@humanwhocodes/config-array": "^0.11.8", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-visitor-keys": "^3.4.0", + "espree": "^9.5.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", + "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", + "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", + "dev": true, + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/express/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", + "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flat-cache/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/get-intrinsic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", + "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "dependencies": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/globby/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "dev": true + }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, + "node_modules/gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-errors/node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "node_modules/interpret": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", + "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-in-cwd": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", + "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", + "dev": true, + "dependencies": { + "is-path-inside": "^2.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-in-cwd/node_modules/is-path-inside": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", + "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", + "dev": true, + "dependencies": { + "path-is-inside": "^1.0.2" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-sdsl": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", + "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", + "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", + "dependencies": { + "jws": "^3.2.2", + "lodash": "^4.17.21", + "ms": "^2.1.1", + "semver": "^7.3.8" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jsonwebtoken/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "dependencies": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws/node_modules/jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", + "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.45.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.45.0.tgz", + "integrity": "sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.28", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.28.tgz", + "integrity": "sha512-0TO2yJ5YHYr7M2zzT7gDU1tbwHxEUWBCLt0lscSNpcdAfFyJOVEpRYNS7EXVcTLNj/25QO8gulHC5JtTzSE2UQ==", + "dependencies": { + "mime-db": "1.45.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, + "node_modules/mrmime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-fetch": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", + "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-releases": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "dev": true + }, + "node_modules/nodemon": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.19.tgz", + "integrity": "sha512-4pv1f2bMDj0Eeg/MhGqxrtveeQ5/G/UVe9iO6uTZzjnRluSA4PVWf8CW99LUPwGB3eNIA7zUFoP77YuI7hOc0A==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.0.4", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon-webpack-plugin": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/nodemon-webpack-plugin/-/nodemon-webpack-plugin-4.8.1.tgz", + "integrity": "sha512-i6xTucitBolVAueD4OASt4jL5gNsAFuTuyn+y6O+NXUqHRVrsOFgOau49iLcjCJJaWAEXMVWpTc5Os79mp7IvQ==", + "dev": true, + "dependencies": { + "@types/nodemon": "latest", + "nodemon": "2.0.19" + }, + "engines": { + "node": ">=8.10.0" + }, + "peerDependencies": { + "webpack": "4 || 5" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", + "dev": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/open": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz", + "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", + "dev": true, + "bin": { + "opener": "bin/opener-bin.js" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "dependencies": { + "pinkie": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz", + "integrity": "sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/rechoir": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", + "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", + "dev": true, + "dependencies": { + "resolve": "^1.20.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/schema-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz", + "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.6", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/send/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/simple-update-notifier": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.0.7.tgz", + "integrity": "sha512-BBKgR84BJQJm6WjWFMHgLVuo61FBDSj1z/xSFUIozqO6wO7ii0JxCqlIud7Enr/+LhlbNI0whErq96P2qHNWew==", + "dev": true, + "dependencies": { + "semver": "~7.0.0" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/simple-update-notifier/node_modules/semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "dev": true, + "dependencies": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stoppable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz", + "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==", + "engines": { + "node": ">=4", + "npm": ">=6" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tapable": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.0.tgz", + "integrity": "sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/terser": { + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", + "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.3.tgz", + "integrity": "sha512-Fx60G5HNYknNTNQnzQ1VePRuu89ZVYWfjRAeT5rITuCY/1b08s49e5kSQwHDirKZWuoKOBRFS98EUUoZ9kLEwQ==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.7", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "terser": "^5.7.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/tinyduration": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/tinyduration/-/tinyduration-3.2.4.tgz", + "integrity": "sha512-LkcGUKYZiFG+J8ydqEaxLenVacAKgdUajDAv9FhZpAx6xiVQOUSk48/Y1BHxybkRh2X1LOw9/vyvwU6WmOQ92g==" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "dependencies": { + "nopt": "~1.0.10" + }, + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/ts-loader": { + "version": "9.4.2", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.2.tgz", + "integrity": "sha512-OmlC4WVmFv5I0PpaxYb+qGeGOdm5giHU7HwDDUjw59emP2UYMHy9fFSDcYgSNoH8sXcj4hGCSEhlDZ9ULeDraA==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" + } + }, + "node_modules/ts-loader/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tslib": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", + "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typescript": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.3.tgz", + "integrity": "sha512-xv8mOEDnigb/tN9PSMTwSEqAnUvkoXMQlicOb0IUVDBSQCgBSaAAROUZYy2IcUy5qU6XajK5jjjO7TMWqBTKZA==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=12.20" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz", + "integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uri-template-lite": { + "version": "22.9.0", + "resolved": "https://registry.npmjs.org/uri-template-lite/-/uri-template-lite-22.9.0.tgz", + "integrity": "sha512-cmGZaykSWEQ5UXKaGKnUS8zFvfp8j1Jvn7dlq3P7tGd5XeybXcfo0xnVBRWiNEp80nO1GYgCLwoaRJ8WMmmk3Q==" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/webpack": { + "version": "5.77.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.77.0.tgz", + "integrity": "sha512-sbGNjBr5Ya5ss91yzjeJTLKyfiwo5C628AFjEa6WSXcZa4E+F57om3Cc8xLb1Jh0b243AWuSYRf3dn7HVeFQ9Q==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.10.0", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-bundle-analyzer": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.8.0.tgz", + "integrity": "sha512-ZzoSBePshOKhr+hd8u6oCkZVwpVaXgpw23ScGLFpR6SjYI7+7iIWYarjN6OEYOfRt8o7ZyZZQk0DuMizJ+LEIg==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "0.5.7", + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "bin": { + "webpack-bundle-analyzer": "lib/bin/analyzer.js" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-cli": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.0.1.tgz", + "integrity": "sha512-S3KVAyfwUqr0Mo/ur3NzIp6jnerNpo7GUO6so51mxLi1spqsA17YcMXy0WOIJtBSnj748lthxC6XLbNKh/ZC+A==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^2.0.1", + "@webpack-cli/info": "^2.0.1", + "@webpack-cli/serve": "^2.0.1", + "colorette": "^2.0.14", + "commander": "^9.4.1", + "cross-spawn": "^7.0.3", + "envinfo": "^7.7.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^3.1.1", + "rechoir": "^0.8.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/webpack-cli/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/enhanced-resolve": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz", + "integrity": "sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, + "dependencies": { + "@azure/abort-controller": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-1.1.0.tgz", + "integrity": "sha512-TrRLIoSQVzfAJX9H1JeFjzAoDGcoK1IYX1UImfceTZpsyYfWr09Ss1aHW1y5TrrR3iq6RZLBwJ3E24uwPhwahw==", + "requires": { + "tslib": "^2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, + "@azure/core-auth": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.3.2.tgz", + "integrity": "sha512-7CU6DmCHIZp5ZPiZ9r3J17lTKMmYsm/zGvNkjArQwPkrLlZ1TZ+EUYfGgh2X31OLMVAQCTJZW4cXHJi02EbJnA==", + "requires": { + "@azure/abort-controller": "^1.0.0", + "tslib": "^2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, + "@azure/core-client": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.6.0.tgz", + "integrity": "sha512-YhSf4cb61ApSjItscp9XoaLq8KRnacPDAhmjAZSMnn/gs6FhFbZNfOBOErG2dDj7JRknVtCmJ5mLmfR2sLa11A==", + "requires": { + "@azure/abort-controller": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-rest-pipeline": "^1.5.0", + "@azure/core-tracing": "^1.0.0", + "@azure/core-util": "^1.0.0", + "@azure/logger": "^1.0.0", + "tslib": "^2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, + "@azure/core-rest-pipeline": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.9.0.tgz", + "integrity": "sha512-uvM3mY+Vegk0F2r4Eh0yPdsXTUyafTQkeX0USnz1Eyangxm2Bib0w0wkJVZW8fpks7Lcv0ztIdCFTrN7H8uptg==", + "requires": { + "@azure/abort-controller": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-tracing": "^1.0.1", + "@azure/core-util": "^1.0.0", + "@azure/logger": "^1.0.0", + "form-data": "^4.0.0", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "tslib": "^2.2.0", + "uuid": "^8.3.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, + "@azure/core-tracing": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.0.1.tgz", + "integrity": "sha512-I5CGMoLtX+pI17ZdiFJZgxMJApsK6jjfm85hpgp3oazCdq5Wxgh4wMr7ge/TTWW1B5WBuvIOI1fMU/FrOAMKrw==", + "requires": { + "tslib": "^2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, + "@azure/core-util": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.0.0.tgz", + "integrity": "sha512-yWshY9cdPthlebnb3Zuz/j0Lv4kjU6u7PR5sW7A9FF7EX+0irMRJAtyTq5TPiDHJfjH8gTSlnIYFj9m7Ed76IQ==", + "requires": { + "tslib": "^2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, + "@azure/identity": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-3.1.3.tgz", + "integrity": "sha512-y0jFjSfHsVPwXSwi3KaSPtOZtJZqhiqAhWUXfFYBUd/+twUBovZRXspBwLrF5rJe0r5NyvmScpQjL+TYDTQVvw==", + "requires": { + "@azure/abort-controller": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-client": "^1.4.0", + "@azure/core-rest-pipeline": "^1.1.0", + "@azure/core-tracing": "^1.0.0", + "@azure/core-util": "^1.0.0", + "@azure/logger": "^1.0.0", + "@azure/msal-browser": "^2.32.2", + "@azure/msal-common": "^9.0.2", + "@azure/msal-node": "^1.14.6", + "events": "^3.0.0", + "jws": "^4.0.0", + "open": "^8.0.0", + "stoppable": "^1.1.0", + "tslib": "^2.2.0", + "uuid": "^8.3.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, + "@azure/logger": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.0.3.tgz", + "integrity": "sha512-aK4s3Xxjrx3daZr3VylxejK3vG5ExXck5WOHDJ8in/k9AqlfIyFMMT1uG7u8mNjX+QRILTIn0/Xgschfh/dQ9g==", + "requires": { + "tslib": "^2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, + "@azure/msal-browser": { + "version": "2.35.0", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-2.35.0.tgz", + "integrity": "sha512-L+gSBbJfU3H81Bnj+VIVjO7jRpt2Ex+4i2YVOPE50ykfQ5W9mtBFMRCHb1K+8FzTeyQH/KkQv6bC+MdaU+3LEw==", + "requires": { + "@azure/msal-common": "^12.0.0" + }, + "dependencies": { + "@azure/msal-common": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-12.0.0.tgz", + "integrity": "sha512-SvQl4JWy1yZnxyq0xng/urf103wz68UJG0K9Dq2NM2to7ePA+R1hMisKnXELJvZrEGYANGbh/Hc0T9piGqOteQ==" + } + } + }, + "@azure/msal-common": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-9.1.1.tgz", + "integrity": "sha512-we9xR8lvu47fF0h+J8KyXoRy9+G/fPzm3QEa2TrdR3jaVS3LKAyE2qyMuUkNdbVkvzl8Zr9f7l+IUSP22HeqXw==" + }, + "@azure/msal-node": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-1.17.0.tgz", + "integrity": "sha512-aOKykKxDc+Kf5vcdOUPdKlJ96YAIyrHyl4W8RyfMqw0iApDckOuhejNwlZr6/M7U40wo1Wj4PwxRVx7d8OFBFg==", + "requires": { + "@azure/msal-common": "^12.0.0", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + }, + "dependencies": { + "@azure/msal-common": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-12.0.0.tgz", + "integrity": "sha512-SvQl4JWy1yZnxyq0xng/urf103wz68UJG0K9Dq2NM2to7ePA+R1hMisKnXELJvZrEGYANGbh/Hc0T9piGqOteQ==" + } + } + }, + "@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true + }, + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^3.3.0" + } + }, + "@eslint-community/regexpp": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz", + "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==", + "dev": true + }, + "@eslint/eslintrc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", + "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.1", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + } + }, + "@eslint/js": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.37.0.tgz", + "integrity": "sha512-x5vzdtOOGgFVDCUs81QRB2+liax8rFg3+7hqM+QhBG0/G3F1ZsoYl97UrqgHgQ9KKT7G6c4V+aTUCgu/n22v1A==", + "dev": true + }, + "@humanwhocodes/config-array": { + "version": "0.11.8", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", + "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + } + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true + }, + "@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", + "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "@microsoft/kiota-abstractions": { + "version": "1.0.0-preview.13", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-abstractions/-/kiota-abstractions-1.0.0-preview.13.tgz", + "integrity": "sha512-w5yVGCdUDDNb49+T8FI1cX+qTfnZB4QLysr9Ak1W5wbT/CQrOj57x5VxIvgA3htQR9YZw12lSkJWEqUz5mfVlw==", + "requires": { + "@opentelemetry/api": "^1.2.0", + "tinyduration": "^3.2.2", + "tslib": "^2.3.1", + "uri-template-lite": "^22.1.0", + "uuid": "^9.0.0" + }, + "dependencies": { + "tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==" + } + } + }, + "@microsoft/kiota-authentication-azure": { + "version": "1.0.0-preview.11", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-authentication-azure/-/kiota-authentication-azure-1.0.0-preview.11.tgz", + "integrity": "sha512-OdPbnEkE7RxOxh26umpTiJcV932sF2+Y9ZH1tLy49obcEpCJm+KRJHvovY8GNK/tc/1jBjwcsSosY61V6I2W5Q==", + "requires": { + "@azure/core-auth": "^1.3.2", + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "@opentelemetry/api": "^1.2.0", + "tslib": "^2.3.1" + }, + "dependencies": { + "tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + } + } + }, + "@microsoft/kiota-http-fetchlibrary": { + "version": "1.0.0-preview.14", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-http-fetchlibrary/-/kiota-http-fetchlibrary-1.0.0-preview.14.tgz", + "integrity": "sha512-mdnCBoNcGvUUWPsdKLiEjthxLO1wdHC5hcxhmrzoHWOVXJzv2oZzkAX+n9PIFpiT1XAFaW23Z+PQKCGW4MBlKQ==", + "requires": { + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "@opentelemetry/api": "^1.2.0", + "node-fetch": "^2.6.5", + "tslib": "^2.3.1" + }, + "dependencies": { + "tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + } + } + }, + "@microsoft/kiota-serialization-form": { + "version": "1.0.0-preview.5", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-form/-/kiota-serialization-form-1.0.0-preview.5.tgz", + "integrity": "sha512-kO7eDYU97BhlP4Z0naFH4G+g8jDWBZ/lCCXl259VXr3b3BUa0M6NjVr7WQB3SkmmNwbAZx7ku6dj9a3c0v5R8w==", + "requires": { + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "tslib": "^2.3.1" + }, + "dependencies": { + "tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + } + } + }, + "@microsoft/kiota-serialization-json": { + "version": "1.0.0-preview.14", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-json/-/kiota-serialization-json-1.0.0-preview.14.tgz", + "integrity": "sha512-0YnpLB41tG9ddU5SOHJep+kZpOF6ucy0t2LKQLJh00QK5nBzDOAefSqgANxp/j5vNlfnI+GD45YbwjBnkVD3kg==", + "requires": { + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "tslib": "^2.3.1" + }, + "dependencies": { + "tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + } + } + }, + "@microsoft/kiota-serialization-text": { + "version": "1.0.0-preview.13", + "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-text/-/kiota-serialization-text-1.0.0-preview.13.tgz", + "integrity": "sha512-GzOM8Hoo+vmxtGmwqc/V7d7T92AaXiUGMFrVbRE3TJcdoOOWjSCHtKNTqV7j5jzEQ3Q451i6bDiSZCqmuZZ09Q==", + "requires": { + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "tslib": "^2.3.1" + }, + "dependencies": { + "tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + } + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@opentelemetry/api": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.4.1.tgz", + "integrity": "sha512-O2yRJce1GOc6PAy3QxFM4NzFiWzvScDC1/5ihYBL6BUEVdq0XMWN01sppE+H6bBXbaFYipjwFLEWLg5PaSOThA==" + }, + "@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "dev": true + }, + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==" + }, + "@types/eslint": { + "version": "8.4.5", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.5.tgz", + "integrity": "sha512-dhsC09y1gpJWnK+Ff4SGvCuSnk9DaU0BJZSzOwa6GVSg65XtTugLBITDAAzRU5duGBoXBHpdR/9jHGxJjNflJQ==", + "dev": true, + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true + }, + "@types/glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==", + "dev": true, + "requires": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, + "@types/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", + "dev": true + }, + "@types/node": { + "version": "18.15.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz", + "integrity": "sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==", + "dev": true + }, + "@types/nodemon": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@types/nodemon/-/nodemon-1.19.1.tgz", + "integrity": "sha512-3teAFqCFba3W9zk4dAGUZ+rW/nrQBrSGXWyK9HfJuWxmITk2z2d3u/5cy7oFqNG2fZxPwSAWkP+a8q/QC6UU5Q==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/semver": { + "version": "7.3.13", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", + "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", + "dev": true + }, + "@typescript-eslint/eslint-plugin": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.57.1.tgz", + "integrity": "sha512-1MeobQkQ9tztuleT3v72XmY0XuKXVXusAhryoLuU5YZ+mXoYKZP9SQ7Flulh1NX4DTjpGTc2b/eMu4u7M7dhnQ==", + "dev": true, + "requires": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.57.1", + "@typescript-eslint/type-utils": "5.57.1", + "@typescript-eslint/utils": "5.57.1", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/parser": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.57.1.tgz", + "integrity": "sha512-hlA0BLeVSA/wBPKdPGxoVr9Pp6GutGoY380FEhbVi0Ph4WNe8kLvqIRx76RSQt1lynZKfrXKs0/XeEk4zZycuA==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.57.1", + "@typescript-eslint/types": "5.57.1", + "@typescript-eslint/typescript-estree": "5.57.1", + "debug": "^4.3.4" + } + }, + "@typescript-eslint/scope-manager": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.57.1.tgz", + "integrity": "sha512-N/RrBwEUKMIYxSKl0oDK5sFVHd6VI7p9K5MyUlVYAY6dyNb/wHUqndkTd3XhpGlXgnQsBkRZuu4f9kAHghvgPw==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.57.1", + "@typescript-eslint/visitor-keys": "5.57.1" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.57.1.tgz", + "integrity": "sha512-/RIPQyx60Pt6ga86hKXesXkJ2WOS4UemFrmmq/7eOyiYjYv/MUSHPlkhU6k9T9W1ytnTJueqASW+wOmW4KrViw==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "5.57.1", + "@typescript-eslint/utils": "5.57.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.57.1.tgz", + "integrity": "sha512-bSs4LOgyV3bJ08F5RDqO2KXqg3WAdwHCu06zOqcQ6vqbTJizyBhuh1o1ImC69X4bV2g1OJxbH71PJqiO7Y1RuA==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.57.1.tgz", + "integrity": "sha512-A2MZqD8gNT0qHKbk2wRspg7cHbCDCk2tcqt6ScCFLr5Ru8cn+TCfM786DjPhqwseiS+PrYwcXht5ztpEQ6TFTw==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.57.1", + "@typescript-eslint/visitor-keys": "5.57.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/utils": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.57.1.tgz", + "integrity": "sha512-kN6vzzf9NkEtawECqze6v99LtmDiUJCVpvieTFA1uL7/jDghiJGubGZ5csicYHU1Xoqb3oH/R5cN5df6W41Nfg==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.57.1", + "@typescript-eslint/types": "5.57.1", + "@typescript-eslint/typescript-estree": "5.57.1", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "dependencies": { + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.57.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.57.1.tgz", + "integrity": "sha512-RjQrAniDU0CEk5r7iphkm731zKlFiUjvcBS2yHAg8WWqFMCaCrD0rKEVOMUyMMcbGPZ0bPp56srkGWrgfZqLRA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.57.1", + "eslint-visitor-keys": "^3.3.0" + } + }, + "@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "requires": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webpack-cli/configtest": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.0.1.tgz", + "integrity": "sha512-njsdJXJSiS2iNbQVS0eT8A/KPnmyH4pv1APj2K0d1wrZcBLw+yppxOy4CGqa0OxDJkzfL/XELDhD8rocnIwB5A==", + "dev": true, + "requires": {} + }, + "@webpack-cli/info": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.1.tgz", + "integrity": "sha512-fE1UEWTwsAxRhrJNikE7v4EotYflkEhBL7EbajfkPlf6E37/2QshOy/D48Mw8G5XMFlQtS6YV42vtbG9zBpIQA==", + "dev": true, + "requires": {} + }, + "@webpack-cli/serve": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.1.tgz", + "integrity": "sha512-0G7tNyS+yW8TdgHwZKlDWYXFA6OJQnoLCQvYKkQP0Q2X205PSQ6RNUj0M+1OB/9gRQaUZ/ccYfaxd0nhaWKfjw==", + "dev": true, + "requires": {} + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "requires": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "dependencies": { + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + } + } + }, + "acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "dev": true + }, + "acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "requires": {} + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "requires": {} + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "requires": { + "debug": "4" + } + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "requires": {} + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true + }, + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true + }, + "body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "browserslist": { + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.2.tgz", + "integrity": "sha512-MonuOgAtUB46uP5CezYbRaYKBNt2LxP0yX+Pmj4LkcDFGkn9Cbpi83d9sCjwQDErXsIJSzY5oKGDbgOlF/LPAA==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001366", + "electron-to-chromium": "^1.4.188", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.4" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "caniuse-lite": { + "version": "1.0.30001370", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001370.tgz", + "integrity": "sha512-3PDmaP56wz/qz7G508xzjx8C+MC2qEm4SYhSEzC9IBROo+dGXFWRuaXkWti0A9tuI00g+toiriVqxtWMgl350g==", + "dev": true + }, + "chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true + }, + "clean-webpack-plugin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/clean-webpack-plugin/-/clean-webpack-plugin-4.0.0.tgz", + "integrity": "sha512-WuWE1nyTNAyW5T7oNyys2EN0cfP2fdRxhxnIQWiAp0bMabPdHhoGxM8A6YL2GhqwgrPnnaemVE7nv5XJ2Fhh2w==", + "dev": true, + "requires": { + "del": "^4.1.1" + } + }, + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + } + }, + "colorette": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.17.tgz", + "integrity": "sha512-hJo+3Bkn0NCHybn9Tu35fIeoOKGOk5OCC32y4Hz2It+qlCO2Q3DeQ1hRn/tDDMQKRYUEzqsl7jbF6dYKjlE60g==", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "requires": { + "safe-buffer": "5.2.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + } + } + }, + "content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==" + }, + "cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "dependencies": { + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==" + }, + "del": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", + "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", + "dev": true, + "requires": { + "@types/glob": "^7.1.1", + "globby": "^6.1.0", + "is-path-cwd": "^2.0.0", + "is-path-in-cwd": "^2.0.0", + "p-map": "^2.0.0", + "pify": "^4.0.1", + "rimraf": "^2.6.3" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "electron-to-chromium": { + "version": "1.4.200", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.200.tgz", + "integrity": "sha512-nPyI7oHc8T64oSqRXrAt99gNMpk0SAgPHw/o+hkNKyb5+bcdnFtZcSO9FUJES5cVkVZvo8u4qiZ1gQILl8UXsA==", + "dev": true + }, + "emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + }, + "enhanced-resolve": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.9.3.tgz", + "integrity": "sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true + }, + "es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "eslint": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.37.0.tgz", + "integrity": "sha512-NU3Ps9nI05GUoVMxcZx1J8CNR6xOvUT4jAUMH5+z8lpp3aEdPVCImKw6PWG4PY+Vfkpr+jvMpxs/qoE7wq0sPw==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.2", + "@eslint/js": "8.37.0", + "@humanwhocodes/config-array": "^0.11.8", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-visitor-keys": "^3.4.0", + "espree": "^9.5.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "dependencies": { + "eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "requires": { + "p-locate": "^5.0.0" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "requires": { + "p-limit": "^3.0.2" + } + } + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "eslint-visitor-keys": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", + "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", + "dev": true + }, + "espree": { + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", + "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", + "dev": true, + "requires": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.0" + } + }, + "esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" + }, + "express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "requires": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + } + } + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "fastest-levenshtein": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", + "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", + "dev": true + }, + "fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "requires": { + "flat-cache": "^3.0.4" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "dependencies": { + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } + } + }, + "flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "get-intrinsic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", + "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "dev": true + }, + "grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, + "gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "requires": { + "duplexer": "^0.1.2" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "dependencies": { + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + } + } + }, + "http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "requires": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + } + }, + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + } + } + }, + "import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "interpret": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", + "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", + "dev": true + }, + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true + }, + "is-path-in-cwd": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", + "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", + "dev": true, + "requires": { + "is-path-inside": "^2.1.0" + }, + "dependencies": { + "is-path-inside": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", + "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", + "dev": true, + "requires": { + "path-is-inside": "^1.0.2" + } + } + } + }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "requires": { + "is-docker": "^2.0.0" + } + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + }, + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "js-sdsl": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", + "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", + "dev": true + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "jsonwebtoken": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", + "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", + "requires": { + "jws": "^3.2.2", + "lodash": "^4.17.21", + "ms": "^2.1.1", + "semver": "^7.3.8" + }, + "dependencies": { + "jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "requires": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "requires": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + }, + "dependencies": { + "jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + } + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, + "loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true + }, + "loader-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", + "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "mime-db": { + "version": "1.45.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.45.0.tgz", + "integrity": "sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w==" + }, + "mime-types": { + "version": "2.1.28", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.28.tgz", + "integrity": "sha512-0TO2yJ5YHYr7M2zzT7gDU1tbwHxEUWBCLt0lscSNpcdAfFyJOVEpRYNS7EXVcTLNj/25QO8gulHC5JtTzSE2UQ==", + "requires": { + "mime-db": "1.45.0" + } + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, + "mrmime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node-fetch": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", + "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "node-releases": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "dev": true + }, + "nodemon": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.19.tgz", + "integrity": "sha512-4pv1f2bMDj0Eeg/MhGqxrtveeQ5/G/UVe9iO6uTZzjnRluSA4PVWf8CW99LUPwGB3eNIA7zUFoP77YuI7hOc0A==", + "dev": true, + "requires": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.0.4", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "nodemon-webpack-plugin": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/nodemon-webpack-plugin/-/nodemon-webpack-plugin-4.8.1.tgz", + "integrity": "sha512-i6xTucitBolVAueD4OASt4jL5gNsAFuTuyn+y6O+NXUqHRVrsOFgOau49iLcjCJJaWAEXMVWpTc5Os79mp7IvQ==", + "dev": true, + "requires": { + "@types/nodemon": "latest", + "nodemon": "2.0.19" + } + }, + "nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "requires": { + "ee-first": "1.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "open": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz", + "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==", + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", + "dev": true + }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true + }, + "proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + } + }, + "pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "requires": { + "side-channel": "^1.0.4" + } + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "raw-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz", + "integrity": "sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==", + "dev": true, + "requires": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + } + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "rechoir": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", + "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", + "dev": true, + "requires": { + "resolve": "^1.20.0" + } + }, + "resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "schema-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz", + "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.6", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + } + } + }, + "serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, + "serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + } + }, + "setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "simple-update-notifier": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.0.7.tgz", + "integrity": "sha512-BBKgR84BJQJm6WjWFMHgLVuo61FBDSj1z/xSFUIozqO6wO7ii0JxCqlIud7Enr/+LhlbNI0whErq96P2qHNWew==", + "dev": true, + "requires": { + "semver": "~7.0.0" + }, + "dependencies": { + "semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true + } + } + }, + "sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "dev": true, + "requires": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + } + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + }, + "stoppable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz", + "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==" + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "tapable": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.0.tgz", + "integrity": "sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw==", + "dev": true + }, + "terser": { + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", + "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", + "dev": true, + "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + } + }, + "terser-webpack-plugin": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.3.tgz", + "integrity": "sha512-Fx60G5HNYknNTNQnzQ1VePRuu89ZVYWfjRAeT5rITuCY/1b08s49e5kSQwHDirKZWuoKOBRFS98EUUoZ9kLEwQ==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.7", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "terser": "^5.7.2" + }, + "dependencies": { + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "tinyduration": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/tinyduration/-/tinyduration-3.2.4.tgz", + "integrity": "sha512-LkcGUKYZiFG+J8ydqEaxLenVacAKgdUajDAv9FhZpAx6xiVQOUSk48/Y1BHxybkRh2X1LOw9/vyvwU6WmOQ92g==" + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + }, + "totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "dev": true + }, + "touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "requires": { + "nopt": "~1.0.10" + } + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "ts-loader": { + "version": "9.4.2", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.2.tgz", + "integrity": "sha512-OmlC4WVmFv5I0PpaxYb+qGeGOdm5giHU7HwDDUjw59emP2UYMHy9fFSDcYgSNoH8sXcj4hGCSEhlDZ9ULeDraA==", + "dev": true, + "requires": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" + }, + "dependencies": { + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "tslib": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", + "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", + "dev": true + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "typescript": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.3.tgz", + "integrity": "sha512-xv8mOEDnigb/tN9PSMTwSEqAnUvkoXMQlicOb0IUVDBSQCgBSaAAROUZYy2IcUy5qU6XajK5jjjO7TMWqBTKZA==", + "dev": true + }, + "undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + }, + "update-browserslist-db": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz", + "integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==", + "dev": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "uri-template-lite": { + "version": "22.9.0", + "resolved": "https://registry.npmjs.org/uri-template-lite/-/uri-template-lite-22.9.0.tgz", + "integrity": "sha512-cmGZaykSWEQ5UXKaGKnUS8zFvfp8j1Jvn7dlq3P7tGd5XeybXcfo0xnVBRWiNEp80nO1GYgCLwoaRJ8WMmmk3Q==" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + }, + "watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "dev": true + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "webpack": { + "version": "5.77.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.77.0.tgz", + "integrity": "sha512-sbGNjBr5Ya5ss91yzjeJTLKyfiwo5C628AFjEa6WSXcZa4E+F57om3Cc8xLb1Jh0b243AWuSYRf3dn7HVeFQ9Q==", + "dev": true, + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.10.0", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "dependencies": { + "enhanced-resolve": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz", + "integrity": "sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "webpack-bundle-analyzer": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.8.0.tgz", + "integrity": "sha512-ZzoSBePshOKhr+hd8u6oCkZVwpVaXgpw23ScGLFpR6SjYI7+7iIWYarjN6OEYOfRt8o7ZyZZQk0DuMizJ+LEIg==", + "dev": true, + "requires": { + "@discoveryjs/json-ext": "0.5.7", + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + } + } + }, + "webpack-cli": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.0.1.tgz", + "integrity": "sha512-S3KVAyfwUqr0Mo/ur3NzIp6jnerNpo7GUO6so51mxLi1spqsA17YcMXy0WOIJtBSnj748lthxC6XLbNKh/ZC+A==", + "dev": true, + "requires": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^2.0.1", + "@webpack-cli/info": "^2.0.1", + "@webpack-cli/serve": "^2.0.1", + "colorette": "^2.0.14", + "commander": "^9.4.1", + "cross-spawn": "^7.0.3", + "envinfo": "^7.7.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^3.1.1", + "rechoir": "^0.8.0", + "webpack-merge": "^5.7.3" + }, + "dependencies": { + "commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true + } + } + }, + "webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "requires": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "requires": {} + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true + } + } +} diff --git a/petstore/typescript/package.json b/petstore/typescript/package.json new file mode 100644 index 0000000000..65fb7c75e1 --- /dev/null +++ b/petstore/typescript/package.json @@ -0,0 +1,51 @@ +{ + "name": "node-typescript-starter", + "version": "1.0.0", + "author": "Freek Mencke", + "homepage": "https://twitter.com/FreekMencke", + "repository": { + "type": "git", + "url": "https://github.com/FreekMencke/node-typescript-starter" + }, + "license": "MIT", + "scripts": { + "start:ci": "node ./dist/$npm_package_name", + "start:dev": "node --inspect ./dist/$npm_package_name", + "build:dev": "webpack --env development", + "start": "webpack --progress --env development --env nodemon", + "start:prod": "webpack --progress --env nodemon", + "build:prod": "webpack --progress", + "build:ci": "webpack", + "build:docker": "docker build --rm -t toxsickcoder/$npm_package_name:latest .", + "deploy:docker": "sh ./scripts/deploy.sh", + "analyse:dev": "webpack --progress --env development --env analyse && start dist/report.html", + "analyse:prod": "webpack --progress --env analyse && start dist/report.html", + "lint": "eslint . --ext .ts" + }, + "dependencies": { + "@azure/identity": "^3.1.3", + "@microsoft/kiota-abstractions": "^1.0.0-preview.13", + "@microsoft/kiota-authentication-azure": "^1.0.0-preview.11", + "@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.14", + "@microsoft/kiota-serialization-form": "^1.0.0-preview.5", + "@microsoft/kiota-serialization-json": "^1.0.0-preview.14", + "@microsoft/kiota-serialization-text": "^1.0.0-preview.13", + "express": "^4.18.1", + "node-fetch": "^2.6.9" + }, + "devDependencies": { + "@types/node": "^18.7.16", + "@typescript-eslint/eslint-plugin": "^5.36.2", + "@typescript-eslint/parser": "^5.36.2", + "clean-webpack-plugin": "^4.0.0", + "eslint": "^8.23.0", + "nodemon-webpack-plugin": "^4.8.1", + "raw-loader": "^4.0.2", + "ts-loader": "^9.3.1", + "typescript": "^5.0.3", + "web-streams-polyfill": "^3.2.1", + "webpack": "^5.74.0", + "webpack-bundle-analyzer": "^4.6.1", + "webpack-cli": "^5.0.1" + } +} diff --git a/petstore/typescript/scripts/deploy.sh b/petstore/typescript/scripts/deploy.sh new file mode 100644 index 0000000000..040006338a --- /dev/null +++ b/petstore/typescript/scripts/deploy.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +NAME=$(node -p "require('./package.json').name"); +VERSION=$(node -p "require('./package.json').version"); + +DOCKER_USERNAME="toxsickcoder" + +docker build -t "$DOCKER_USERNAME/$NAME:$VERSION" -t "$DOCKER_USERNAME/$NAME:latest" . + +docker login -u "$DOCKER_USERNAME" + +docker push "$DOCKER_USERNAME/$NAME:$VERSION" +docker push "$DOCKER_USERNAME/$NAME:latest" diff --git a/petstore/typescript/src/apiClient.ts b/petstore/typescript/src/apiClient.ts new file mode 100644 index 0000000000..00e3ca617e --- /dev/null +++ b/petstore/typescript/src/apiClient.ts @@ -0,0 +1,75 @@ +import {WithPetItemRequestBuilder} from './pet/item/withPetItemRequestBuilder'; +import {PetRequestBuilder} from './pet/petRequestBuilder'; +import {StoreRequestBuilder} from './store/storeRequestBuilder'; +import {WithUsernameItemRequestBuilder} from './user/item/withUsernameItemRequestBuilder'; +import {UserRequestBuilder} from './user/userRequestBuilder'; +import {enableBackingStoreForSerializationWriterFactory, getPathParameters, ParseNodeFactoryRegistry, registerDefaultDeserializer, registerDefaultSerializer, RequestAdapter, SerializationWriterFactoryRegistry} from '@microsoft/kiota-abstractions'; +import {FormParseNodeFactory, FormSerializationWriterFactory} from '@microsoft/kiota-serialization-form'; +import {JsonParseNodeFactory, JsonSerializationWriterFactory} from '@microsoft/kiota-serialization-json'; +import {TextParseNodeFactory, TextSerializationWriterFactory} from '@microsoft/kiota-serialization-text'; + +/** + * The main entry point of the SDK, exposes the configuration and the fluent API. + */ +export class ApiClient { + /** Path parameters for the request */ + private pathParameters: Record; + /** The pet property */ + public get pet(): PetRequestBuilder { + return new PetRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** The store property */ + public get store(): StoreRequestBuilder { + return new StoreRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** The user property */ + public get user(): UserRequestBuilder { + return new UserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Instantiates a new ApiClient and sets the default values. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(requestAdapter: RequestAdapter) { + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.pathParameters = {}; + this.urlTemplate = "{+baseurl}"; + this.requestAdapter = requestAdapter; + registerDefaultSerializer(JsonSerializationWriterFactory); + registerDefaultSerializer(TextSerializationWriterFactory); + registerDefaultSerializer(FormSerializationWriterFactory); + registerDefaultDeserializer(JsonParseNodeFactory); + registerDefaultDeserializer(TextParseNodeFactory); + registerDefaultDeserializer(FormParseNodeFactory); + if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") { + requestAdapter.baseUrl = "https://petstore.swagger.io/v2"; + } + this.pathParameters["baseurl"] = requestAdapter.baseUrl; + }; + /** + * Gets an item from the petstore.utilities.pet.item collection + * @param id Unique identifier of the item + * @returns a WithPetItemRequestBuilder + */ + public petById(id: string) : WithPetItemRequestBuilder { + if(!id) throw new Error("id cannot be undefined"); + const urlTplParams = getPathParameters(this.pathParameters); + urlTplParams["petId"] = id + return new WithPetItemRequestBuilder(urlTplParams, this.requestAdapter); + }; + /** + * Gets an item from the petstore.utilities.user.item collection + * @param id Unique identifier of the item + * @returns a WithUsernameItemRequestBuilder + */ + public userById(id: string) : WithUsernameItemRequestBuilder { + if(!id) throw new Error("id cannot be undefined"); + const urlTplParams = getPathParameters(this.pathParameters); + urlTplParams["username"] = id + return new WithUsernameItemRequestBuilder(urlTplParams, this.requestAdapter); + }; +} diff --git a/petstore/typescript/src/app/app.ts b/petstore/typescript/src/app/app.ts new file mode 100644 index 0000000000..d4e8b8ad25 --- /dev/null +++ b/petstore/typescript/src/app/app.ts @@ -0,0 +1,24 @@ +import { config } from '../config/config'; +import { Logger } from './common/logger'; +require('node-fetch'); + +export class App { + static async run(): Promise { + const app = new App(); + app.start(); + Logger.logTask('hellow world'); + return app; + } + + private start(): void { + this.logAppInfo(); + } + + private logAppInfo(): void { + Logger.logTask('APP', { + develop: DEVELOP, + version: VERSION, + config: config, + }); + } +} diff --git a/petstore/typescript/src/app/common/logger.ts b/petstore/typescript/src/app/common/logger.ts new file mode 100644 index 0000000000..01af666fa9 --- /dev/null +++ b/petstore/typescript/src/app/common/logger.ts @@ -0,0 +1,34 @@ +export class Logger { + static log(...message: any[]): void { + // eslint-disable-next-line no-console + console.log(`[${Logger.getFormattedTime()}]`, ...message); + } + + static logTask(name: string, ...message: any[]): void { + Logger.log(`${name}:`, ...message); + } + + private static getFormattedTime(includeDate: boolean = true): string { + const options: Intl.DateTimeFormatOptions = { + hour: '2-digit', + minute: '2-digit', + second: '2-digit', + hour12: false, + timeZone: 'UTC', + }; + + const date = new Date(); + const timeString = date.toLocaleTimeString('en-US', options); + + const year = date.getUTCFullYear(); + const month = this.prependZeroIfNecessary(date.getUTCMonth() + 1); // months start from zero + const day = this.prependZeroIfNecessary(date.getUTCDate()); + const dateString = `${year}/${month}/${day}`; + + return includeDate ? `${dateString} ${timeString}` : timeString; + } + + private static prependZeroIfNecessary(number: number): string { + return (number < 10 ? '0' : '') + number; + } +} diff --git a/petstore/typescript/src/config/config.dev.ts b/petstore/typescript/src/config/config.dev.ts new file mode 100644 index 0000000000..8ce4f1e257 --- /dev/null +++ b/petstore/typescript/src/config/config.dev.ts @@ -0,0 +1,8 @@ +import { IConfig } from './config.interface'; +import { globalConfig } from './config.global'; + +export const config: IConfig = { + ...globalConfig, + + apiUrl: 'http://a-development-url', +}; diff --git a/petstore/typescript/src/config/config.global.ts b/petstore/typescript/src/config/config.global.ts new file mode 100644 index 0000000000..9762436730 --- /dev/null +++ b/petstore/typescript/src/config/config.global.ts @@ -0,0 +1,7 @@ +export interface IGlobalConfig { + sharedConfigSetting: string; +} + +export const globalConfig: IGlobalConfig = { + sharedConfigSetting: 'this is a shared setting', +}; diff --git a/petstore/typescript/src/config/config.interface.ts b/petstore/typescript/src/config/config.interface.ts new file mode 100644 index 0000000000..8675bcce19 --- /dev/null +++ b/petstore/typescript/src/config/config.interface.ts @@ -0,0 +1,5 @@ +import { IGlobalConfig } from './config.global'; + +export interface IConfig extends IGlobalConfig { + apiUrl: string; +} diff --git a/petstore/typescript/src/config/config.ts b/petstore/typescript/src/config/config.ts new file mode 100644 index 0000000000..8a48ea2433 --- /dev/null +++ b/petstore/typescript/src/config/config.ts @@ -0,0 +1,8 @@ +import { IConfig } from './config.interface'; +import { globalConfig } from './config.global'; + +export const config: IConfig = { + ...globalConfig, + + apiUrl: 'http://a-production-url', +}; diff --git a/petstore/typescript/src/kiota-lock.json b/petstore/typescript/src/kiota-lock.json new file mode 100644 index 0000000000..af51655a87 --- /dev/null +++ b/petstore/typescript/src/kiota-lock.json @@ -0,0 +1,29 @@ +{ + "descriptionHash": "81489CE0A2C3A5B9FDA34286D98EAD1F70952B4A7E583141D77C44A75BB48C6D09D87AF34CFB2731FAC4C5A2908F4BACDF43812A75B0A75E878722C78382740B", + "descriptionLocation": "https://petstore.swagger.io/v2/swagger.json", + "lockFileVersion": "1.0.0", + "kiotaVersion": "1.0.1", + "clientClassName": "ApiClient", + "clientNamespaceName": "petstore.utilities", + "language": "TypeScript", + "usesBackingStore": false, + "includeAdditionalData": true, + "serializers": [ + "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory" + ], + "deserializers": [ + "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", + "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", + "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" + ], + "structuredMimeTypes": [ + "application/json", + "text/plain", + "application/x-www-form-urlencoded" + ], + "includePatterns": [], + "excludePatterns": [], + "disabledValidationRules": [] +} \ No newline at end of file diff --git a/petstore/typescript/src/main.ts b/petstore/typescript/src/main.ts new file mode 100644 index 0000000000..6ecf3ffba9 --- /dev/null +++ b/petstore/typescript/src/main.ts @@ -0,0 +1,9 @@ +import { App } from './app/app'; +import { Logger } from './app/common/logger'; + +Logger.logTask('SYSTEM', 'STARTING'); + +App.run().then(() => { + + Logger.logTask('SYSTEM', 'FINISHED'); +}); diff --git a/petstore/typescript/src/models/apiResponse.ts b/petstore/typescript/src/models/apiResponse.ts new file mode 100644 index 0000000000..f3a95cf0c8 --- /dev/null +++ b/petstore/typescript/src/models/apiResponse.ts @@ -0,0 +1,96 @@ +import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions'; + +export class ApiResponse implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private _additionalData: Record; + /** The code property */ + private _code?: number | undefined; + /** The message property */ + private _message?: string | undefined; + /** The type property */ + private _type?: string | undefined; + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Record + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Record) { + this._additionalData = value; + }; + /** + * Gets the code property value. The code property + * @returns a integer + */ + public get code() { + return this._code; + }; + /** + * Sets the code property value. The code property + * @param value Value to set for the code property. + */ + public set code(value: number | undefined) { + this._code = value; + }; + /** + * Instantiates a new ApiResponse and sets the default values. + */ + public constructor() { + this._additionalData = {}; + }; + /** + * The deserialization information for the current model + * @returns a Record void> + */ + public getFieldDeserializers() : Record void> { + return { + "code": n => { this.code = n.getNumberValue(); }, + "message": n => { this.message = n.getStringValue(); }, + "type": n => { this.type = n.getStringValue(); }, + }; + }; + /** + * Gets the message property value. The message property + * @returns a string + */ + public get message() { + return this._message; + }; + /** + * Sets the message property value. The message property + * @param value Value to set for the message property. + */ + public set message(value: string | undefined) { + this._message = value; + }; + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public serialize(writer: SerializationWriter) : void { + if(!writer) throw new Error("writer cannot be undefined"); + writer.writeNumberValue("code", this.code); + writer.writeStringValue("message", this.message); + writer.writeStringValue("type", this.type); + writer.writeAdditionalData(this.additionalData); + }; + /** + * Gets the type property value. The type property + * @returns a string + */ + public get type() { + return this._type; + }; + /** + * Sets the type property value. The type property + * @param value Value to set for the type property. + */ + public set type(value: string | undefined) { + this._type = value; + }; +} diff --git a/petstore/typescript/src/models/category.ts b/petstore/typescript/src/models/category.ts new file mode 100644 index 0000000000..033fe6c381 --- /dev/null +++ b/petstore/typescript/src/models/category.ts @@ -0,0 +1,78 @@ +import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions'; + +export class Category implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private _additionalData: Record; + /** The id property */ + private _id?: number | undefined; + /** The name property */ + private _name?: string | undefined; + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Record + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Record) { + this._additionalData = value; + }; + /** + * Instantiates a new Category and sets the default values. + */ + public constructor() { + this._additionalData = {}; + }; + /** + * The deserialization information for the current model + * @returns a Record void> + */ + public getFieldDeserializers() : Record void> { + return { + "id": n => { this.id = n.getNumberValue(); }, + "name": n => { this.name = n.getStringValue(); }, + }; + }; + /** + * Gets the id property value. The id property + * @returns a int64 + */ + public get id() { + return this._id; + }; + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + */ + public set id(value: number | undefined) { + this._id = value; + }; + /** + * Gets the name property value. The name property + * @returns a string + */ + public get name() { + return this._name; + }; + /** + * Sets the name property value. The name property + * @param value Value to set for the name property. + */ + public set name(value: string | undefined) { + this._name = value; + }; + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public serialize(writer: SerializationWriter) : void { + if(!writer) throw new Error("writer cannot be undefined"); + writer.writeNumberValue("id", this.id); + writer.writeStringValue("name", this.name); + writer.writeAdditionalData(this.additionalData); + }; +} diff --git a/petstore/typescript/src/models/createApiResponseFromDiscriminatorValue.ts b/petstore/typescript/src/models/createApiResponseFromDiscriminatorValue.ts new file mode 100644 index 0000000000..0fd8409b85 --- /dev/null +++ b/petstore/typescript/src/models/createApiResponseFromDiscriminatorValue.ts @@ -0,0 +1,7 @@ +import {ApiResponse} from './index'; +import {ParseNode} from '@microsoft/kiota-abstractions'; + +export function createApiResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ApiResponse { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return new ApiResponse(); +} diff --git a/petstore/typescript/src/models/createCategoryFromDiscriminatorValue.ts b/petstore/typescript/src/models/createCategoryFromDiscriminatorValue.ts new file mode 100644 index 0000000000..a3c6b83d15 --- /dev/null +++ b/petstore/typescript/src/models/createCategoryFromDiscriminatorValue.ts @@ -0,0 +1,7 @@ +import {Category} from './index'; +import {ParseNode} from '@microsoft/kiota-abstractions'; + +export function createCategoryFromDiscriminatorValue(parseNode: ParseNode | undefined) : Category { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return new Category(); +} diff --git a/petstore/typescript/src/models/createOrderFromDiscriminatorValue.ts b/petstore/typescript/src/models/createOrderFromDiscriminatorValue.ts new file mode 100644 index 0000000000..8b0cdcfd8d --- /dev/null +++ b/petstore/typescript/src/models/createOrderFromDiscriminatorValue.ts @@ -0,0 +1,7 @@ +import {Order} from './index'; +import {ParseNode} from '@microsoft/kiota-abstractions'; + +export function createOrderFromDiscriminatorValue(parseNode: ParseNode | undefined) : Order { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return new Order(); +} diff --git a/petstore/typescript/src/models/createPetFromDiscriminatorValue.ts b/petstore/typescript/src/models/createPetFromDiscriminatorValue.ts new file mode 100644 index 0000000000..f887f318cc --- /dev/null +++ b/petstore/typescript/src/models/createPetFromDiscriminatorValue.ts @@ -0,0 +1,7 @@ +import {Pet} from './index'; +import {ParseNode} from '@microsoft/kiota-abstractions'; + +export function createPetFromDiscriminatorValue(parseNode: ParseNode | undefined) : Pet { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return new Pet(); +} diff --git a/petstore/typescript/src/models/createTagFromDiscriminatorValue.ts b/petstore/typescript/src/models/createTagFromDiscriminatorValue.ts new file mode 100644 index 0000000000..f71900de2c --- /dev/null +++ b/petstore/typescript/src/models/createTagFromDiscriminatorValue.ts @@ -0,0 +1,7 @@ +import {Tag} from './index'; +import {ParseNode} from '@microsoft/kiota-abstractions'; + +export function createTagFromDiscriminatorValue(parseNode: ParseNode | undefined) : Tag { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return new Tag(); +} diff --git a/petstore/typescript/src/models/createUserFromDiscriminatorValue.ts b/petstore/typescript/src/models/createUserFromDiscriminatorValue.ts new file mode 100644 index 0000000000..0ba6a3149c --- /dev/null +++ b/petstore/typescript/src/models/createUserFromDiscriminatorValue.ts @@ -0,0 +1,7 @@ +import {User} from './index'; +import {ParseNode} from '@microsoft/kiota-abstractions'; + +export function createUserFromDiscriminatorValue(parseNode: ParseNode | undefined) : User { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return new User(); +} diff --git a/petstore/typescript/src/models/index.ts b/petstore/typescript/src/models/index.ts new file mode 100644 index 0000000000..eceb3e4b34 --- /dev/null +++ b/petstore/typescript/src/models/index.ts @@ -0,0 +1,6 @@ +export * from './apiResponse' +export * from './category' +export * from './order' +export * from './pet' +export * from './tag' +export * from './user' diff --git a/petstore/typescript/src/models/order.ts b/petstore/typescript/src/models/order.ts new file mode 100644 index 0000000000..cb978e3dd4 --- /dev/null +++ b/petstore/typescript/src/models/order.ts @@ -0,0 +1,151 @@ +import {Order_status} from './order_status'; +import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions'; + +export class Order implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private _additionalData: Record; + /** The complete property */ + private _complete?: boolean | undefined; + /** The id property */ + private _id?: number | undefined; + /** The petId property */ + private _petId?: number | undefined; + /** The quantity property */ + private _quantity?: number | undefined; + /** The shipDate property */ + private _shipDate?: Date | undefined; + /** Order Status */ + private _status?: Order_status | undefined; + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Record + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Record) { + this._additionalData = value; + }; + /** + * Gets the complete property value. The complete property + * @returns a boolean + */ + public get complete() { + return this._complete; + }; + /** + * Sets the complete property value. The complete property + * @param value Value to set for the complete property. + */ + public set complete(value: boolean | undefined) { + this._complete = value; + }; + /** + * Instantiates a new Order and sets the default values. + */ + public constructor() { + this._additionalData = {}; + }; + /** + * The deserialization information for the current model + * @returns a Record void> + */ + public getFieldDeserializers() : Record void> { + return { + "complete": n => { this.complete = n.getBooleanValue(); }, + "id": n => { this.id = n.getNumberValue(); }, + "petId": n => { this.petId = n.getNumberValue(); }, + "quantity": n => { this.quantity = n.getNumberValue(); }, + "shipDate": n => { this.shipDate = n.getDateValue(); }, + "status": n => { this.status = n.getEnumValue(Order_status); }, + }; + }; + /** + * Gets the id property value. The id property + * @returns a int64 + */ + public get id() { + return this._id; + }; + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + */ + public set id(value: number | undefined) { + this._id = value; + }; + /** + * Gets the petId property value. The petId property + * @returns a int64 + */ + public get petId() { + return this._petId; + }; + /** + * Sets the petId property value. The petId property + * @param value Value to set for the petId property. + */ + public set petId(value: number | undefined) { + this._petId = value; + }; + /** + * Gets the quantity property value. The quantity property + * @returns a integer + */ + public get quantity() { + return this._quantity; + }; + /** + * Sets the quantity property value. The quantity property + * @param value Value to set for the quantity property. + */ + public set quantity(value: number | undefined) { + this._quantity = value; + }; + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public serialize(writer: SerializationWriter) : void { + if(!writer) throw new Error("writer cannot be undefined"); + writer.writeBooleanValue("complete", this.complete); + writer.writeNumberValue("id", this.id); + writer.writeNumberValue("petId", this.petId); + writer.writeNumberValue("quantity", this.quantity); + writer.writeDateValue("shipDate", this.shipDate); + writer.writeEnumValue("status", this.status); + writer.writeAdditionalData(this.additionalData); + }; + /** + * Gets the shipDate property value. The shipDate property + * @returns a Date + */ + public get shipDate() { + return this._shipDate; + }; + /** + * Sets the shipDate property value. The shipDate property + * @param value Value to set for the shipDate property. + */ + public set shipDate(value: Date | undefined) { + this._shipDate = value; + }; + /** + * Gets the status property value. Order Status + * @returns a Order_status + */ + public get status() { + return this._status; + }; + /** + * Sets the status property value. Order Status + * @param value Value to set for the status property. + */ + public set status(value: Order_status | undefined) { + this._status = value; + }; +} diff --git a/petstore/typescript/src/models/order_status.ts b/petstore/typescript/src/models/order_status.ts new file mode 100644 index 0000000000..3c10f671b7 --- /dev/null +++ b/petstore/typescript/src/models/order_status.ts @@ -0,0 +1,6 @@ +/** Order Status */ +export enum Order_status { + Placed = "placed", + Approved = "approved", + Delivered = "delivered", +} diff --git a/petstore/typescript/src/models/pet.ts b/petstore/typescript/src/models/pet.ts new file mode 100644 index 0000000000..143ac947c8 --- /dev/null +++ b/petstore/typescript/src/models/pet.ts @@ -0,0 +1,154 @@ +import {createCategoryFromDiscriminatorValue} from './createCategoryFromDiscriminatorValue'; +import {createTagFromDiscriminatorValue} from './createTagFromDiscriminatorValue'; +import {Category, Tag} from './index'; +import {Pet_status} from './pet_status'; +import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions'; + +export class Pet implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private _additionalData: Record; + /** The category property */ + private _category?: Category | undefined; + /** The id property */ + private _id?: number | undefined; + /** The name property */ + private _name?: string | undefined; + /** The photoUrls property */ + private _photoUrls?: string[] | undefined; + /** pet status in the store */ + private _status?: Pet_status | undefined; + /** The tags property */ + private _tags?: Tag[] | undefined; + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Record + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Record) { + this._additionalData = value; + }; + /** + * Gets the category property value. The category property + * @returns a Category + */ + public get category() { + return this._category; + }; + /** + * Sets the category property value. The category property + * @param value Value to set for the category property. + */ + public set category(value: Category | undefined) { + this._category = value; + }; + /** + * Instantiates a new Pet and sets the default values. + */ + public constructor() { + this._additionalData = {}; + }; + /** + * The deserialization information for the current model + * @returns a Record void> + */ + public getFieldDeserializers() : Record void> { + return { + "category": n => { this.category = n.getObjectValue(createCategoryFromDiscriminatorValue); }, + "id": n => { this.id = n.getNumberValue(); }, + "name": n => { this.name = n.getStringValue(); }, + "photoUrls": n => { this.photoUrls = n.getCollectionOfPrimitiveValues(); }, + "status": n => { this.status = n.getEnumValue(Pet_status); }, + "tags": n => { this.tags = n.getCollectionOfObjectValues(createTagFromDiscriminatorValue); }, + }; + }; + /** + * Gets the id property value. The id property + * @returns a int64 + */ + public get id() { + return this._id; + }; + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + */ + public set id(value: number | undefined) { + this._id = value; + }; + /** + * Gets the name property value. The name property + * @returns a string + */ + public get name() { + return this._name; + }; + /** + * Sets the name property value. The name property + * @param value Value to set for the name property. + */ + public set name(value: string | undefined) { + this._name = value; + }; + /** + * Gets the photoUrls property value. The photoUrls property + * @returns a string + */ + public get photoUrls() { + return this._photoUrls; + }; + /** + * Sets the photoUrls property value. The photoUrls property + * @param value Value to set for the photoUrls property. + */ + public set photoUrls(value: string[] | undefined) { + this._photoUrls = value; + }; + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public serialize(writer: SerializationWriter) : void { + if(!writer) throw new Error("writer cannot be undefined"); + writer.writeObjectValue("category", this.category); + writer.writeNumberValue("id", this.id); + writer.writeStringValue("name", this.name); + writer.writeCollectionOfPrimitiveValues("photoUrls", this.photoUrls); + writer.writeEnumValue("status", this.status); + writer.writeCollectionOfObjectValues("tags", this.tags); + writer.writeAdditionalData(this.additionalData); + }; + /** + * Gets the status property value. pet status in the store + * @returns a Pet_status + */ + public get status() { + return this._status; + }; + /** + * Sets the status property value. pet status in the store + * @param value Value to set for the status property. + */ + public set status(value: Pet_status | undefined) { + this._status = value; + }; + /** + * Gets the tags property value. The tags property + * @returns a Tag + */ + public get tags() { + return this._tags; + }; + /** + * Sets the tags property value. The tags property + * @param value Value to set for the tags property. + */ + public set tags(value: Tag[] | undefined) { + this._tags = value; + }; +} diff --git a/petstore/typescript/src/models/pet_status.ts b/petstore/typescript/src/models/pet_status.ts new file mode 100644 index 0000000000..1b1f6a191d --- /dev/null +++ b/petstore/typescript/src/models/pet_status.ts @@ -0,0 +1,6 @@ +/** pet status in the store */ +export enum Pet_status { + Available = "available", + Pending = "pending", + Sold = "sold", +} diff --git a/petstore/typescript/src/models/tag.ts b/petstore/typescript/src/models/tag.ts new file mode 100644 index 0000000000..b7315a7119 --- /dev/null +++ b/petstore/typescript/src/models/tag.ts @@ -0,0 +1,78 @@ +import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions'; + +export class Tag implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private _additionalData: Record; + /** The id property */ + private _id?: number | undefined; + /** The name property */ + private _name?: string | undefined; + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Record + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Record) { + this._additionalData = value; + }; + /** + * Instantiates a new Tag and sets the default values. + */ + public constructor() { + this._additionalData = {}; + }; + /** + * The deserialization information for the current model + * @returns a Record void> + */ + public getFieldDeserializers() : Record void> { + return { + "id": n => { this.id = n.getNumberValue(); }, + "name": n => { this.name = n.getStringValue(); }, + }; + }; + /** + * Gets the id property value. The id property + * @returns a int64 + */ + public get id() { + return this._id; + }; + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + */ + public set id(value: number | undefined) { + this._id = value; + }; + /** + * Gets the name property value. The name property + * @returns a string + */ + public get name() { + return this._name; + }; + /** + * Sets the name property value. The name property + * @param value Value to set for the name property. + */ + public set name(value: string | undefined) { + this._name = value; + }; + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public serialize(writer: SerializationWriter) : void { + if(!writer) throw new Error("writer cannot be undefined"); + writer.writeNumberValue("id", this.id); + writer.writeStringValue("name", this.name); + writer.writeAdditionalData(this.additionalData); + }; +} diff --git a/petstore/typescript/src/models/user.ts b/petstore/typescript/src/models/user.ts new file mode 100644 index 0000000000..53a3a81751 --- /dev/null +++ b/petstore/typescript/src/models/user.ts @@ -0,0 +1,186 @@ +import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions'; + +export class User implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private _additionalData: Record; + /** The email property */ + private _email?: string | undefined; + /** The firstName property */ + private _firstName?: string | undefined; + /** The id property */ + private _id?: number | undefined; + /** The lastName property */ + private _lastName?: string | undefined; + /** The password property */ + private _password?: string | undefined; + /** The phone property */ + private _phone?: string | undefined; + /** The username property */ + private _username?: string | undefined; + /** User Status */ + private _userStatus?: number | undefined; + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Record + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Record) { + this._additionalData = value; + }; + /** + * Instantiates a new User and sets the default values. + */ + public constructor() { + this._additionalData = {}; + }; + /** + * Gets the email property value. The email property + * @returns a string + */ + public get email() { + return this._email; + }; + /** + * Sets the email property value. The email property + * @param value Value to set for the email property. + */ + public set email(value: string | undefined) { + this._email = value; + }; + /** + * Gets the firstName property value. The firstName property + * @returns a string + */ + public get firstName() { + return this._firstName; + }; + /** + * Sets the firstName property value. The firstName property + * @param value Value to set for the firstName property. + */ + public set firstName(value: string | undefined) { + this._firstName = value; + }; + /** + * The deserialization information for the current model + * @returns a Record void> + */ + public getFieldDeserializers() : Record void> { + return { + "email": n => { this.email = n.getStringValue(); }, + "firstName": n => { this.firstName = n.getStringValue(); }, + "id": n => { this.id = n.getNumberValue(); }, + "lastName": n => { this.lastName = n.getStringValue(); }, + "password": n => { this.password = n.getStringValue(); }, + "phone": n => { this.phone = n.getStringValue(); }, + "username": n => { this.username = n.getStringValue(); }, + "userStatus": n => { this.userStatus = n.getNumberValue(); }, + }; + }; + /** + * Gets the id property value. The id property + * @returns a int64 + */ + public get id() { + return this._id; + }; + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + */ + public set id(value: number | undefined) { + this._id = value; + }; + /** + * Gets the lastName property value. The lastName property + * @returns a string + */ + public get lastName() { + return this._lastName; + }; + /** + * Sets the lastName property value. The lastName property + * @param value Value to set for the lastName property. + */ + public set lastName(value: string | undefined) { + this._lastName = value; + }; + /** + * Gets the password property value. The password property + * @returns a string + */ + public get password() { + return this._password; + }; + /** + * Sets the password property value. The password property + * @param value Value to set for the password property. + */ + public set password(value: string | undefined) { + this._password = value; + }; + /** + * Gets the phone property value. The phone property + * @returns a string + */ + public get phone() { + return this._phone; + }; + /** + * Sets the phone property value. The phone property + * @param value Value to set for the phone property. + */ + public set phone(value: string | undefined) { + this._phone = value; + }; + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public serialize(writer: SerializationWriter) : void { + if(!writer) throw new Error("writer cannot be undefined"); + writer.writeStringValue("email", this.email); + writer.writeStringValue("firstName", this.firstName); + writer.writeNumberValue("id", this.id); + writer.writeStringValue("lastName", this.lastName); + writer.writeStringValue("password", this.password); + writer.writeStringValue("phone", this.phone); + writer.writeStringValue("username", this.username); + writer.writeNumberValue("userStatus", this.userStatus); + writer.writeAdditionalData(this.additionalData); + }; + /** + * Gets the username property value. The username property + * @returns a string + */ + public get username() { + return this._username; + }; + /** + * Sets the username property value. The username property + * @param value Value to set for the username property. + */ + public set username(value: string | undefined) { + this._username = value; + }; + /** + * Gets the userStatus property value. User Status + * @returns a integer + */ + public get userStatus() { + return this._userStatus; + }; + /** + * Sets the userStatus property value. User Status + * @param value Value to set for the userStatus property. + */ + public set userStatus(value: number | undefined) { + this._userStatus = value; + }; +} diff --git a/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilder.ts b/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilder.ts new file mode 100644 index 0000000000..5bb5a64a74 --- /dev/null +++ b/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilder.ts @@ -0,0 +1,59 @@ +import {Pet} from '../../models/'; +import {createPetFromDiscriminatorValue} from '../../models/createPetFromDiscriminatorValue'; +import {FindByStatusRequestBuilderGetRequestConfiguration} from './findByStatusRequestBuilderGetRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /pet/findByStatus + */ +export class FindByStatusRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new FindByStatusRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/pet/findByStatus{?status*}"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Multiple status values can be provided with comma separated strings + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of Pet + */ + public get(requestConfiguration?: FindByStatusRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendCollectionAsync(requestInfo, createPetFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * Multiple status values can be provided with comma separated strings + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: FindByStatusRequestBuilderGetRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.setQueryStringParametersFromRawObject(requestConfiguration.queryParameters); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; +} diff --git a/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilderGetQueryParameters.ts b/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilderGetQueryParameters.ts new file mode 100644 index 0000000000..c73bfbc610 --- /dev/null +++ b/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilderGetQueryParameters.ts @@ -0,0 +1,8 @@ + +/** + * Multiple status values can be provided with comma separated strings + */ +export class FindByStatusRequestBuilderGetQueryParameters { + /** Status values that need to be considered for filter */ + public status?: string[] | undefined; +} diff --git a/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilderGetRequestConfiguration.ts b/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilderGetRequestConfiguration.ts new file mode 100644 index 0000000000..e7142c75d2 --- /dev/null +++ b/petstore/typescript/src/pet/findByStatus/findByStatusRequestBuilderGetRequestConfiguration.ts @@ -0,0 +1,14 @@ +import {FindByStatusRequestBuilderGetQueryParameters} from './findByStatusRequestBuilderGetQueryParameters'; +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class FindByStatusRequestBuilderGetRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; + /** Request query parameters */ + public queryParameters?: FindByStatusRequestBuilderGetQueryParameters | undefined; +} diff --git a/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilder.ts b/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilder.ts new file mode 100644 index 0000000000..1b4150e57c --- /dev/null +++ b/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilder.ts @@ -0,0 +1,59 @@ +import {Pet} from '../../models/'; +import {createPetFromDiscriminatorValue} from '../../models/createPetFromDiscriminatorValue'; +import {FindByTagsRequestBuilderGetRequestConfiguration} from './findByTagsRequestBuilderGetRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /pet/findByTags + */ +export class FindByTagsRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new FindByTagsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/pet/findByTags{?tags*}"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of Pet + */ + public get(requestConfiguration?: FindByTagsRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendCollectionAsync(requestInfo, createPetFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: FindByTagsRequestBuilderGetRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.setQueryStringParametersFromRawObject(requestConfiguration.queryParameters); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; +} diff --git a/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilderGetQueryParameters.ts b/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilderGetQueryParameters.ts new file mode 100644 index 0000000000..099d3897ee --- /dev/null +++ b/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilderGetQueryParameters.ts @@ -0,0 +1,8 @@ + +/** + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + */ +export class FindByTagsRequestBuilderGetQueryParameters { + /** Tags to filter by */ + public tags?: string[] | undefined; +} diff --git a/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilderGetRequestConfiguration.ts b/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilderGetRequestConfiguration.ts new file mode 100644 index 0000000000..e520a6398e --- /dev/null +++ b/petstore/typescript/src/pet/findByTags/findByTagsRequestBuilderGetRequestConfiguration.ts @@ -0,0 +1,14 @@ +import {FindByTagsRequestBuilderGetQueryParameters} from './findByTagsRequestBuilderGetQueryParameters'; +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class FindByTagsRequestBuilderGetRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; + /** Request query parameters */ + public queryParameters?: FindByTagsRequestBuilderGetQueryParameters | undefined; +} diff --git a/petstore/typescript/src/pet/item/createWithPetPostRequestBodyFromDiscriminatorValue.ts b/petstore/typescript/src/pet/item/createWithPetPostRequestBodyFromDiscriminatorValue.ts new file mode 100644 index 0000000000..b1f57714ea --- /dev/null +++ b/petstore/typescript/src/pet/item/createWithPetPostRequestBodyFromDiscriminatorValue.ts @@ -0,0 +1,7 @@ +import {WithPetPostRequestBody} from './index'; +import {ParseNode} from '@microsoft/kiota-abstractions'; + +export function createWithPetPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : WithPetPostRequestBody { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return new WithPetPostRequestBody(); +} diff --git a/petstore/typescript/src/pet/item/index.ts b/petstore/typescript/src/pet/item/index.ts new file mode 100644 index 0000000000..69567a7bfb --- /dev/null +++ b/petstore/typescript/src/pet/item/index.ts @@ -0,0 +1 @@ +export * from './withPetPostRequestBody' diff --git a/petstore/typescript/src/pet/item/uploadImage/uploadImageRequestBuilder.ts b/petstore/typescript/src/pet/item/uploadImage/uploadImageRequestBuilder.ts new file mode 100644 index 0000000000..2abcd32cc2 --- /dev/null +++ b/petstore/typescript/src/pet/item/uploadImage/uploadImageRequestBuilder.ts @@ -0,0 +1,62 @@ +import {ApiResponse} from '../../../models/'; +import {createApiResponseFromDiscriminatorValue} from '../../../models/createApiResponseFromDiscriminatorValue'; +import {UploadImageRequestBuilderPostRequestConfiguration} from './uploadImageRequestBuilderPostRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /pet/{petId}/uploadImage + */ +export class UploadImageRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new UploadImageRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/pet/{petId}/uploadImage"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * uploads an image + * @param body Binary request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ApiResponse + */ + public post(body: ArrayBuffer | undefined, requestConfiguration?: UploadImageRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendAsync(requestInfo, createApiResponseFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * @param body Binary request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ArrayBuffer | undefined, requestConfiguration?: UploadImageRequestBuilderPostRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setStreamContent(body); + return requestInfo; + }; +} diff --git a/petstore/typescript/src/pet/item/uploadImage/uploadImageRequestBuilderPostRequestConfiguration.ts b/petstore/typescript/src/pet/item/uploadImage/uploadImageRequestBuilderPostRequestConfiguration.ts new file mode 100644 index 0000000000..384cbee32b --- /dev/null +++ b/petstore/typescript/src/pet/item/uploadImage/uploadImageRequestBuilderPostRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class UploadImageRequestBuilderPostRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/pet/item/withPetItemRequestBuilder.ts b/petstore/typescript/src/pet/item/withPetItemRequestBuilder.ts new file mode 100644 index 0000000000..d0910775dd --- /dev/null +++ b/petstore/typescript/src/pet/item/withPetItemRequestBuilder.ts @@ -0,0 +1,125 @@ +import {Pet} from '../../models/'; +import {createPetFromDiscriminatorValue} from '../../models/createPetFromDiscriminatorValue'; +import {WithPetPostRequestBody} from './index'; +import {UploadImageRequestBuilder} from './uploadImage/uploadImageRequestBuilder'; +import {WithPetItemRequestBuilderDeleteRequestConfiguration} from './withPetItemRequestBuilderDeleteRequestConfiguration'; +import {WithPetItemRequestBuilderGetRequestConfiguration} from './withPetItemRequestBuilderGetRequestConfiguration'; +import {WithPetItemRequestBuilderPostRequestConfiguration} from './withPetItemRequestBuilderPostRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /pet/{petId} + */ +export class WithPetItemRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** The uploadImage property */ + public get uploadImage(): UploadImageRequestBuilder { + return new UploadImageRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new WithPetItemRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/pet/{petId}"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Deletes a pet + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public delete(requestConfiguration?: WithPetItemRequestBuilderDeleteRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * Returns a single pet + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of Pet + */ + public get(requestConfiguration?: WithPetItemRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendAsync(requestInfo, createPetFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * Updates a pet in the store with form data + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public post(body: WithPetPostRequestBody | undefined, requestConfiguration?: WithPetItemRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: WithPetItemRequestBuilderDeleteRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.DELETE; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; + /** + * Returns a single pet + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: WithPetItemRequestBuilderGetRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: WithPetPostRequestBody | undefined, requestConfiguration?: WithPetItemRequestBuilderPostRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.POST; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setContentFromParsable(this.requestAdapter, "application/x-www-form-urlencoded", body); + return requestInfo; + }; +} diff --git a/petstore/typescript/src/pet/item/withPetItemRequestBuilderDeleteRequestConfiguration.ts b/petstore/typescript/src/pet/item/withPetItemRequestBuilderDeleteRequestConfiguration.ts new file mode 100644 index 0000000000..8837bc6238 --- /dev/null +++ b/petstore/typescript/src/pet/item/withPetItemRequestBuilderDeleteRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class WithPetItemRequestBuilderDeleteRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/pet/item/withPetItemRequestBuilderGetRequestConfiguration.ts b/petstore/typescript/src/pet/item/withPetItemRequestBuilderGetRequestConfiguration.ts new file mode 100644 index 0000000000..af8646183f --- /dev/null +++ b/petstore/typescript/src/pet/item/withPetItemRequestBuilderGetRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class WithPetItemRequestBuilderGetRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/pet/item/withPetItemRequestBuilderPostRequestConfiguration.ts b/petstore/typescript/src/pet/item/withPetItemRequestBuilderPostRequestConfiguration.ts new file mode 100644 index 0000000000..02e66e69a2 --- /dev/null +++ b/petstore/typescript/src/pet/item/withPetItemRequestBuilderPostRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class WithPetItemRequestBuilderPostRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/pet/item/withPetPostRequestBody.ts b/petstore/typescript/src/pet/item/withPetPostRequestBody.ts new file mode 100644 index 0000000000..ad886b9d5f --- /dev/null +++ b/petstore/typescript/src/pet/item/withPetPostRequestBody.ts @@ -0,0 +1,78 @@ +import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions'; + +export class WithPetPostRequestBody implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private _additionalData: Record; + /** Updated name of the pet */ + private _name?: string | undefined; + /** Updated status of the pet */ + private _status?: string | undefined; + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Record + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Record) { + this._additionalData = value; + }; + /** + * Instantiates a new WithPetPostRequestBody and sets the default values. + */ + public constructor() { + this._additionalData = {}; + }; + /** + * The deserialization information for the current model + * @returns a Record void> + */ + public getFieldDeserializers() : Record void> { + return { + "name": n => { this.name = n.getStringValue(); }, + "status": n => { this.status = n.getStringValue(); }, + }; + }; + /** + * Gets the name property value. Updated name of the pet + * @returns a string + */ + public get name() { + return this._name; + }; + /** + * Sets the name property value. Updated name of the pet + * @param value Value to set for the name property. + */ + public set name(value: string | undefined) { + this._name = value; + }; + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public serialize(writer: SerializationWriter) : void { + if(!writer) throw new Error("writer cannot be undefined"); + writer.writeStringValue("name", this.name); + writer.writeStringValue("status", this.status); + writer.writeAdditionalData(this.additionalData); + }; + /** + * Gets the status property value. Updated status of the pet + * @returns a string + */ + public get status() { + return this._status; + }; + /** + * Sets the status property value. Updated status of the pet + * @param value Value to set for the status property. + */ + public set status(value: string | undefined) { + this._status = value; + }; +} diff --git a/petstore/typescript/src/pet/petRequestBuilder.ts b/petstore/typescript/src/pet/petRequestBuilder.ts new file mode 100644 index 0000000000..9ebdbbc7a3 --- /dev/null +++ b/petstore/typescript/src/pet/petRequestBuilder.ts @@ -0,0 +1,103 @@ +import {Pet} from '../models/'; +import {FindByStatusRequestBuilder} from './findByStatus/findByStatusRequestBuilder'; +import {FindByTagsRequestBuilder} from './findByTags/findByTagsRequestBuilder'; +import {PetRequestBuilderPostRequestConfiguration} from './petRequestBuilderPostRequestConfiguration'; +import {PetRequestBuilderPutRequestConfiguration} from './petRequestBuilderPutRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /pet + */ +export class PetRequestBuilder { + /** The findByStatus property */ + public get findByStatus(): FindByStatusRequestBuilder { + return new FindByStatusRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** The findByTags property */ + public get findByTags(): FindByTagsRequestBuilder { + return new FindByTagsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new PetRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/pet"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Add a new pet to the store + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public post(body: Pet | undefined, requestConfiguration?: PetRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * Update an existing pet + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public put(body: Pet | undefined, requestConfiguration?: PetRequestBuilderPutRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPutRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Pet | undefined, requestConfiguration?: PetRequestBuilderPostRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.POST; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body); + return requestInfo; + }; + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPutRequestInformation(body: Pet | undefined, requestConfiguration?: PetRequestBuilderPutRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.PUT; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body); + return requestInfo; + }; +} diff --git a/petstore/typescript/src/pet/petRequestBuilderPostRequestConfiguration.ts b/petstore/typescript/src/pet/petRequestBuilderPostRequestConfiguration.ts new file mode 100644 index 0000000000..c5f10e0932 --- /dev/null +++ b/petstore/typescript/src/pet/petRequestBuilderPostRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class PetRequestBuilderPostRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/pet/petRequestBuilderPutRequestConfiguration.ts b/petstore/typescript/src/pet/petRequestBuilderPutRequestConfiguration.ts new file mode 100644 index 0000000000..6e35b20479 --- /dev/null +++ b/petstore/typescript/src/pet/petRequestBuilderPutRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class PetRequestBuilderPutRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/store/inventory/createInventoryResponseFromDiscriminatorValue.ts b/petstore/typescript/src/store/inventory/createInventoryResponseFromDiscriminatorValue.ts new file mode 100644 index 0000000000..6ddb67272f --- /dev/null +++ b/petstore/typescript/src/store/inventory/createInventoryResponseFromDiscriminatorValue.ts @@ -0,0 +1,7 @@ +import {InventoryResponse} from './index'; +import {ParseNode} from '@microsoft/kiota-abstractions'; + +export function createInventoryResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : InventoryResponse { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return new InventoryResponse(); +} diff --git a/petstore/typescript/src/store/inventory/index.ts b/petstore/typescript/src/store/inventory/index.ts new file mode 100644 index 0000000000..0dc81a5100 --- /dev/null +++ b/petstore/typescript/src/store/inventory/index.ts @@ -0,0 +1 @@ +export * from './inventoryResponse' diff --git a/petstore/typescript/src/store/inventory/inventoryRequestBuilder.ts b/petstore/typescript/src/store/inventory/inventoryRequestBuilder.ts new file mode 100644 index 0000000000..4ebbeb5f13 --- /dev/null +++ b/petstore/typescript/src/store/inventory/inventoryRequestBuilder.ts @@ -0,0 +1,58 @@ +import {createInventoryResponseFromDiscriminatorValue} from './createInventoryResponseFromDiscriminatorValue'; +import {InventoryResponse} from './index'; +import {InventoryRequestBuilderGetRequestConfiguration} from './inventoryRequestBuilderGetRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /store/inventory + */ +export class InventoryRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new InventoryRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/store/inventory"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Returns a map of status codes to quantities + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of InventoryResponse + */ + public get(requestConfiguration?: InventoryRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendAsync(requestInfo, createInventoryResponseFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * Returns a map of status codes to quantities + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: InventoryRequestBuilderGetRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; +} diff --git a/petstore/typescript/src/store/inventory/inventoryRequestBuilderGetRequestConfiguration.ts b/petstore/typescript/src/store/inventory/inventoryRequestBuilderGetRequestConfiguration.ts new file mode 100644 index 0000000000..86d206f690 --- /dev/null +++ b/petstore/typescript/src/store/inventory/inventoryRequestBuilderGetRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class InventoryRequestBuilderGetRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/store/inventory/inventoryResponse.ts b/petstore/typescript/src/store/inventory/inventoryResponse.ts new file mode 100644 index 0000000000..a499178d79 --- /dev/null +++ b/petstore/typescript/src/store/inventory/inventoryResponse.ts @@ -0,0 +1,42 @@ +import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions'; + +export class InventoryResponse implements AdditionalDataHolder, Parsable { + /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private _additionalData: Record; + /** + * Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Record + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Record) { + this._additionalData = value; + }; + /** + * Instantiates a new inventoryResponse and sets the default values. + */ + public constructor() { + this._additionalData = {}; + }; + /** + * The deserialization information for the current model + * @returns a Record void> + */ + public getFieldDeserializers() : Record void> { + return { + }; + }; + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public serialize(writer: SerializationWriter) : void { + if(!writer) throw new Error("writer cannot be undefined"); + writer.writeAdditionalData(this.additionalData); + }; +} diff --git a/petstore/typescript/src/store/order/item/withOrderItemRequestBuilder.ts b/petstore/typescript/src/store/order/item/withOrderItemRequestBuilder.ts new file mode 100644 index 0000000000..f65005b872 --- /dev/null +++ b/petstore/typescript/src/store/order/item/withOrderItemRequestBuilder.ts @@ -0,0 +1,87 @@ +import {Order} from '../../../models/'; +import {createOrderFromDiscriminatorValue} from '../../../models/createOrderFromDiscriminatorValue'; +import {WithOrderItemRequestBuilderDeleteRequestConfiguration} from './withOrderItemRequestBuilderDeleteRequestConfiguration'; +import {WithOrderItemRequestBuilderGetRequestConfiguration} from './withOrderItemRequestBuilderGetRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /store/order/{orderId} + */ +export class WithOrderItemRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new WithOrderItemRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/store/order/{orderId}"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public delete(requestConfiguration?: WithOrderItemRequestBuilderDeleteRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of Order + */ + public get(requestConfiguration?: WithOrderItemRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendAsync(requestInfo, createOrderFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: WithOrderItemRequestBuilderDeleteRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.DELETE; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; + /** + * For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: WithOrderItemRequestBuilderGetRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; +} diff --git a/petstore/typescript/src/store/order/item/withOrderItemRequestBuilderDeleteRequestConfiguration.ts b/petstore/typescript/src/store/order/item/withOrderItemRequestBuilderDeleteRequestConfiguration.ts new file mode 100644 index 0000000000..f67b9a0361 --- /dev/null +++ b/petstore/typescript/src/store/order/item/withOrderItemRequestBuilderDeleteRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class WithOrderItemRequestBuilderDeleteRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/store/order/item/withOrderItemRequestBuilderGetRequestConfiguration.ts b/petstore/typescript/src/store/order/item/withOrderItemRequestBuilderGetRequestConfiguration.ts new file mode 100644 index 0000000000..50cfd2d802 --- /dev/null +++ b/petstore/typescript/src/store/order/item/withOrderItemRequestBuilderGetRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class WithOrderItemRequestBuilderGetRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/store/order/orderRequestBuilder.ts b/petstore/typescript/src/store/order/orderRequestBuilder.ts new file mode 100644 index 0000000000..3a38760e73 --- /dev/null +++ b/petstore/typescript/src/store/order/orderRequestBuilder.ts @@ -0,0 +1,62 @@ +import {Order} from '../../models/'; +import {createOrderFromDiscriminatorValue} from '../../models/createOrderFromDiscriminatorValue'; +import {OrderRequestBuilderPostRequestConfiguration} from './orderRequestBuilderPostRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /store/order + */ +export class OrderRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new OrderRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/store/order"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Place an order for a pet + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of Order + */ + public post(body: Order | undefined, requestConfiguration?: OrderRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendAsync(requestInfo, createOrderFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Order | undefined, requestConfiguration?: OrderRequestBuilderPostRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.POST; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body); + return requestInfo; + }; +} diff --git a/petstore/typescript/src/store/order/orderRequestBuilderPostRequestConfiguration.ts b/petstore/typescript/src/store/order/orderRequestBuilderPostRequestConfiguration.ts new file mode 100644 index 0000000000..e45b139b70 --- /dev/null +++ b/petstore/typescript/src/store/order/orderRequestBuilderPostRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class OrderRequestBuilderPostRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/store/storeRequestBuilder.ts b/petstore/typescript/src/store/storeRequestBuilder.ts new file mode 100644 index 0000000000..d5ee2639e7 --- /dev/null +++ b/petstore/typescript/src/store/storeRequestBuilder.ts @@ -0,0 +1,48 @@ +import {InventoryRequestBuilder} from './inventory/inventoryRequestBuilder'; +import {WithOrderItemRequestBuilder} from './order/item/withOrderItemRequestBuilder'; +import {OrderRequestBuilder} from './order/orderRequestBuilder'; +import {getPathParameters, RequestAdapter} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /store + */ +export class StoreRequestBuilder { + /** The inventory property */ + public get inventory(): InventoryRequestBuilder { + return new InventoryRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** The order property */ + public get order(): OrderRequestBuilder { + return new OrderRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new StoreRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/store"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Gets an item from the petstore.utilities.store.order.item collection + * @param id Unique identifier of the item + * @returns a WithOrderItemRequestBuilder + */ + public orderById(id: string) : WithOrderItemRequestBuilder { + if(!id) throw new Error("id cannot be undefined"); + const urlTplParams = getPathParameters(this.pathParameters); + urlTplParams["orderId"] = id + return new WithOrderItemRequestBuilder(urlTplParams, this.requestAdapter); + }; +} diff --git a/petstore/typescript/src/typings/typings.d.ts b/petstore/typescript/src/typings/typings.d.ts new file mode 100644 index 0000000000..315973540d --- /dev/null +++ b/petstore/typescript/src/typings/typings.d.ts @@ -0,0 +1,2 @@ +declare const VERSION: string; +declare const DEVELOP: boolean; diff --git a/petstore/typescript/src/user/createWithArray/createWithArrayRequestBuilder.ts b/petstore/typescript/src/user/createWithArray/createWithArrayRequestBuilder.ts new file mode 100644 index 0000000000..370d5bd759 --- /dev/null +++ b/petstore/typescript/src/user/createWithArray/createWithArrayRequestBuilder.ts @@ -0,0 +1,60 @@ +import {User} from '../../models/'; +import {CreateWithArrayRequestBuilderPostRequestConfiguration} from './createWithArrayRequestBuilderPostRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /user/createWithArray + */ +export class CreateWithArrayRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new CreateWithArrayRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/user/createWithArray"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Creates list of users with given input array + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public post(body: User[] | undefined, requestConfiguration?: CreateWithArrayRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: User[] | undefined, requestConfiguration?: CreateWithArrayRequestBuilderPostRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.POST; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body); + return requestInfo; + }; +} diff --git a/petstore/typescript/src/user/createWithArray/createWithArrayRequestBuilderPostRequestConfiguration.ts b/petstore/typescript/src/user/createWithArray/createWithArrayRequestBuilderPostRequestConfiguration.ts new file mode 100644 index 0000000000..f2bbfda6cd --- /dev/null +++ b/petstore/typescript/src/user/createWithArray/createWithArrayRequestBuilderPostRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class CreateWithArrayRequestBuilderPostRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/user/createWithList/createWithListRequestBuilder.ts b/petstore/typescript/src/user/createWithList/createWithListRequestBuilder.ts new file mode 100644 index 0000000000..a9a3ba2315 --- /dev/null +++ b/petstore/typescript/src/user/createWithList/createWithListRequestBuilder.ts @@ -0,0 +1,60 @@ +import {User} from '../../models/'; +import {CreateWithListRequestBuilderPostRequestConfiguration} from './createWithListRequestBuilderPostRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /user/createWithList + */ +export class CreateWithListRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new CreateWithListRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/user/createWithList"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Creates list of users with given input array + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public post(body: User[] | undefined, requestConfiguration?: CreateWithListRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: User[] | undefined, requestConfiguration?: CreateWithListRequestBuilderPostRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.POST; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body); + return requestInfo; + }; +} diff --git a/petstore/typescript/src/user/createWithList/createWithListRequestBuilderPostRequestConfiguration.ts b/petstore/typescript/src/user/createWithList/createWithListRequestBuilderPostRequestConfiguration.ts new file mode 100644 index 0000000000..02f41a8402 --- /dev/null +++ b/petstore/typescript/src/user/createWithList/createWithListRequestBuilderPostRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class CreateWithListRequestBuilderPostRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/user/item/withUsernameItemRequestBuilder.ts b/petstore/typescript/src/user/item/withUsernameItemRequestBuilder.ts new file mode 100644 index 0000000000..a25e6b966e --- /dev/null +++ b/petstore/typescript/src/user/item/withUsernameItemRequestBuilder.ts @@ -0,0 +1,120 @@ +import {User} from '../../models/'; +import {createUserFromDiscriminatorValue} from '../../models/createUserFromDiscriminatorValue'; +import {WithUsernameItemRequestBuilderDeleteRequestConfiguration} from './withUsernameItemRequestBuilderDeleteRequestConfiguration'; +import {WithUsernameItemRequestBuilderGetRequestConfiguration} from './withUsernameItemRequestBuilderGetRequestConfiguration'; +import {WithUsernameItemRequestBuilderPutRequestConfiguration} from './withUsernameItemRequestBuilderPutRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /user/{username} + */ +export class WithUsernameItemRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new WithUsernameItemRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/user/{username}"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * This can only be done by the logged in user. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public delete(requestConfiguration?: WithUsernameItemRequestBuilderDeleteRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * Get user by user name + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of User + */ + public get(requestConfiguration?: WithUsernameItemRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendAsync(requestInfo, createUserFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * This can only be done by the logged in user. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public put(body: User | undefined, requestConfiguration?: WithUsernameItemRequestBuilderPutRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPutRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * This can only be done by the logged in user. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: WithUsernameItemRequestBuilderDeleteRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.DELETE; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: WithUsernameItemRequestBuilderGetRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; + /** + * This can only be done by the logged in user. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPutRequestInformation(body: User | undefined, requestConfiguration?: WithUsernameItemRequestBuilderPutRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.PUT; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body); + return requestInfo; + }; +} diff --git a/petstore/typescript/src/user/item/withUsernameItemRequestBuilderDeleteRequestConfiguration.ts b/petstore/typescript/src/user/item/withUsernameItemRequestBuilderDeleteRequestConfiguration.ts new file mode 100644 index 0000000000..4fa4a41bad --- /dev/null +++ b/petstore/typescript/src/user/item/withUsernameItemRequestBuilderDeleteRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class WithUsernameItemRequestBuilderDeleteRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/user/item/withUsernameItemRequestBuilderGetRequestConfiguration.ts b/petstore/typescript/src/user/item/withUsernameItemRequestBuilderGetRequestConfiguration.ts new file mode 100644 index 0000000000..fff502d67b --- /dev/null +++ b/petstore/typescript/src/user/item/withUsernameItemRequestBuilderGetRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class WithUsernameItemRequestBuilderGetRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/user/item/withUsernameItemRequestBuilderPutRequestConfiguration.ts b/petstore/typescript/src/user/item/withUsernameItemRequestBuilderPutRequestConfiguration.ts new file mode 100644 index 0000000000..2dbe7e6bca --- /dev/null +++ b/petstore/typescript/src/user/item/withUsernameItemRequestBuilderPutRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class WithUsernameItemRequestBuilderPutRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/user/login/loginRequestBuilder.ts b/petstore/typescript/src/user/login/loginRequestBuilder.ts new file mode 100644 index 0000000000..9347d19e51 --- /dev/null +++ b/petstore/typescript/src/user/login/loginRequestBuilder.ts @@ -0,0 +1,56 @@ +import {LoginRequestBuilderGetRequestConfiguration} from './loginRequestBuilderGetRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /user/login + */ +export class LoginRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new LoginRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/user/login{?username*,password*}"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Logs user into the system + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of String + */ + public get(requestConfiguration?: LoginRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "string", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: LoginRequestBuilderGetRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.GET; + requestInfo.headers["Accept"] = ["application/json"]; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.setQueryStringParametersFromRawObject(requestConfiguration.queryParameters); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; +} diff --git a/petstore/typescript/src/user/login/loginRequestBuilderGetQueryParameters.ts b/petstore/typescript/src/user/login/loginRequestBuilderGetQueryParameters.ts new file mode 100644 index 0000000000..668be9aca9 --- /dev/null +++ b/petstore/typescript/src/user/login/loginRequestBuilderGetQueryParameters.ts @@ -0,0 +1,10 @@ + +/** + * Logs user into the system + */ +export class LoginRequestBuilderGetQueryParameters { + /** The password for login in clear text */ + public password?: string | undefined; + /** The user name for login */ + public username?: string | undefined; +} diff --git a/petstore/typescript/src/user/login/loginRequestBuilderGetRequestConfiguration.ts b/petstore/typescript/src/user/login/loginRequestBuilderGetRequestConfiguration.ts new file mode 100644 index 0000000000..65c503955d --- /dev/null +++ b/petstore/typescript/src/user/login/loginRequestBuilderGetRequestConfiguration.ts @@ -0,0 +1,14 @@ +import {LoginRequestBuilderGetQueryParameters} from './loginRequestBuilderGetQueryParameters'; +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class LoginRequestBuilderGetRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; + /** Request query parameters */ + public queryParameters?: LoginRequestBuilderGetQueryParameters | undefined; +} diff --git a/petstore/typescript/src/user/logout/logoutRequestBuilder.ts b/petstore/typescript/src/user/logout/logoutRequestBuilder.ts new file mode 100644 index 0000000000..6ae87c03a6 --- /dev/null +++ b/petstore/typescript/src/user/logout/logoutRequestBuilder.ts @@ -0,0 +1,54 @@ +import {LogoutRequestBuilderGetRequestConfiguration} from './logoutRequestBuilderGetRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /user/logout + */ +export class LogoutRequestBuilder { + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new LogoutRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/user/logout"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * Logs out current logged in user session + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public get(requestConfiguration?: LogoutRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: LogoutRequestBuilderGetRequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.GET; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + return requestInfo; + }; +} diff --git a/petstore/typescript/src/user/logout/logoutRequestBuilderGetRequestConfiguration.ts b/petstore/typescript/src/user/logout/logoutRequestBuilderGetRequestConfiguration.ts new file mode 100644 index 0000000000..0e0204276c --- /dev/null +++ b/petstore/typescript/src/user/logout/logoutRequestBuilderGetRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class LogoutRequestBuilderGetRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/src/user/userRequestBuilder.ts b/petstore/typescript/src/user/userRequestBuilder.ts new file mode 100644 index 0000000000..ef308daad8 --- /dev/null +++ b/petstore/typescript/src/user/userRequestBuilder.ts @@ -0,0 +1,81 @@ +import {User} from '../models/'; +import {CreateWithArrayRequestBuilder} from './createWithArray/createWithArrayRequestBuilder'; +import {CreateWithListRequestBuilder} from './createWithList/createWithListRequestBuilder'; +import {LoginRequestBuilder} from './login/loginRequestBuilder'; +import {LogoutRequestBuilder} from './logout/logoutRequestBuilder'; +import {UserRequestBuilderPostRequestConfiguration} from './userRequestBuilderPostRequestConfiguration'; +import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption, ResponseHandler} from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /user + */ +export class UserRequestBuilder { + /** The createWithArray property */ + public get createWithArray(): CreateWithArrayRequestBuilder { + return new CreateWithArrayRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** The createWithList property */ + public get createWithList(): CreateWithListRequestBuilder { + return new CreateWithListRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** The login property */ + public get login(): LoginRequestBuilder { + return new LoginRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** The logout property */ + public get logout(): LogoutRequestBuilder { + return new LogoutRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** Path parameters for the request */ + private pathParameters: Record; + /** The request adapter to use to execute the requests. */ + private requestAdapter: RequestAdapter; + /** Url template to use to build the URL for the current request builder */ + private urlTemplate: string; + /** + * Instantiates a new UserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + if(!pathParameters) throw new Error("pathParameters cannot be undefined"); + if(!requestAdapter) throw new Error("requestAdapter cannot be undefined"); + this.urlTemplate = "{+baseurl}/user"; + const urlTplParams = getPathParameters(pathParameters); + this.pathParameters = urlTplParams; + this.requestAdapter = requestAdapter; + }; + /** + * This can only be done by the logged in user. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @param responseHandler Response handler to use in place of the default response handling provided by the core service + * @returns a Promise of ArrayBuffer + */ + public post(body: User | undefined, requestConfiguration?: UserRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + return this.requestAdapter?.sendPrimitiveAsync(requestInfo, "ArrayBuffer", responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null')); + }; + /** + * This can only be done by the logged in user. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: User | undefined, requestConfiguration?: UserRequestBuilderPostRequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(); + requestInfo.urlTemplate = this.urlTemplate; + requestInfo.pathParameters = this.pathParameters; + requestInfo.httpMethod = HttpMethod.POST; + if (requestConfiguration) { + requestInfo.addRequestHeaders(requestConfiguration.headers); + requestInfo.addRequestOptions(requestConfiguration.options); + } + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body); + return requestInfo; + }; +} diff --git a/petstore/typescript/src/user/userRequestBuilderPostRequestConfiguration.ts b/petstore/typescript/src/user/userRequestBuilderPostRequestConfiguration.ts new file mode 100644 index 0000000000..346bc4e5a8 --- /dev/null +++ b/petstore/typescript/src/user/userRequestBuilderPostRequestConfiguration.ts @@ -0,0 +1,11 @@ +import {RequestOption} from '@microsoft/kiota-abstractions'; + +/** + * Configuration for the request such as headers, query parameters, and middleware options. + */ +export class UserRequestBuilderPostRequestConfiguration { + /** Request headers */ + public headers?: Record | undefined; + /** Request options */ + public options?: RequestOption[] | undefined; +} diff --git a/petstore/typescript/tsconfig.json b/petstore/typescript/tsconfig.json new file mode 100644 index 0000000000..5af30353fb --- /dev/null +++ b/petstore/typescript/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ES2020", + "moduleResolution": "node", + "lib": ["dom", "es2020"], + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "noUnusedLocals": false, + "removeComments": true, + "strict": true, + "typeRoots": ["node_modules/@types"] + }, + "include": ["src/**/*.ts"], + "exclude": ["node_modules"], +} diff --git a/petstore/typescript/webpack.config.js b/petstore/typescript/webpack.config.js new file mode 100644 index 0000000000..940291a343 --- /dev/null +++ b/petstore/typescript/webpack.config.js @@ -0,0 +1,76 @@ +'use strict'; + +const { resolve } = require('path'); +const { CleanWebpackPlugin } = require('clean-webpack-plugin'); +const { DefinePlugin, NormalModuleReplacementPlugin } = require('webpack'); +const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); +const NodemonPlugin = require('nodemon-webpack-plugin'); +const packageJson = require('./package.json'); + +module.exports = (env = {}) => { + const config = { + entry: ['./src/main.ts'], + mode: env.development ? 'development' : 'production', + target: 'node', + // devtool alternatives: cheap-module-eval-source-map (faster, less details) or cheap-eval-source-map (fastest, even less details) + devtool: env.development ? 'inline-source-map' : false, + node: { + __dirname: false, // Fix for native node __dirname + __filename: false, // Fix for native node __filename + }, + output: { + filename: `${packageJson.name}.js`, + path: resolve(__dirname, 'dist'), + }, + externals: { // https://github.com/matthew-andrews/isomorphic-fetch/issues/194 + 'node-fetch': 'commonjs2 node-fetch', + }, + resolve: { + extensions: ['.ts', '.js'], + modules: ['node_modules', 'src'], + }, + stats: { + modules: false, // We don't need to see this + }, + module: { + rules: [ + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + { + test: /\.node$/, + use: 'raw-loader', //@azure/identity/dist-esm/src/credentials/visualStudioCodeCredential.js -> keytar/lib/keytar.js -> keytar/build/Release/keytar.node + } + ], + }, + plugins: [ + new CleanWebpackPlugin(), + new DefinePlugin({ + VERSION: JSON.stringify(packageJson.version), + DEVELOP: !!env.development, + }), + // Use module replacement to use different configs for dev and prod + new NormalModuleReplacementPlugin( + /[\\/]src[\\/]config[\\/]config.ts$/, // [\\/] works on all operating systems. + env.development ? 'config.dev.ts' : 'config.ts' + ), + ], + }; + + if (env.nodemon) { + config.watch = true; + config.plugins.push(new NodemonPlugin()); + } + + if (env.analyse) { + config.plugins.push( + new BundleAnalyzerPlugin({ + analyzerMode: 'static', // Generates file instead of starting a web server + }) + ); + } + + return config; +};