-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kiota Machine API Client - added (#1152)
- Loading branch information
Showing
10 changed files
with
814 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/web-app/src/api/machinesApiClient/generated/kiota-lock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"descriptionHash": "EEE908D27D05B1029AB34D629B7155B790B814FB795CAF4DEDE41501E2B37AC61A4297BCD54CBF2A6CA06DF189D96C610801FC35961CE038D5E3AF3E91750E18", | ||
"descriptionLocation": "..\\openapi.yaml", | ||
"lockFileVersion": "1.0.0", | ||
"kiotaVersion": "1.15.0", | ||
"clientClassName": "MachinesApiClient", | ||
"clientNamespaceName": "ApiSdk", | ||
"language": "TypeScript", | ||
"usesBackingStore": false, | ||
"excludeBackwardCompatible": true, | ||
"includeAdditionalData": true, | ||
"disableSSLValidation": false, | ||
"serializers": [ | ||
"\u0060@microsoft/kiota-serialization-json.JsonSerializationWriterFactory" | ||
], | ||
"deserializers": [ | ||
"\u0060@microsoft/kiota-serialization-json.JsonParseNodeFactory" | ||
], | ||
"structuredMimeTypes": [ | ||
"application/json", | ||
"text/plain;q=0.9", | ||
"application/x-www-form-urlencoded;q=0.2", | ||
"multipart/form-data;q=0.1" | ||
], | ||
"includePatterns": [], | ||
"excludePatterns": [], | ||
"disabledValidationRules": [] | ||
} |
64 changes: 64 additions & 0 deletions
64
packages/web-app/src/api/machinesApiClient/generated/machinesApiClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// Generated by Microsoft Kiota | ||
// @ts-ignore | ||
import { V2RequestBuilderNavigationMetadata, type V2RequestBuilder } from './v2' | ||
// @ts-ignore | ||
import { | ||
apiClientProxifier, | ||
registerDefaultDeserializer, | ||
registerDefaultSerializer, | ||
type BaseRequestBuilder, | ||
type KeysToExcludeForNavigationMetadata, | ||
type NavigationMetadata, | ||
type RequestAdapter, | ||
} from '@microsoft/kiota-abstractions' | ||
// @ts-ignore | ||
import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json' | ||
|
||
/** | ||
* Instantiates a new {@link MachinesApiClient} and sets the default values. | ||
* @param requestAdapter The request adapter to use to execute the requests. | ||
*/ | ||
export function createMachinesApiClient(requestAdapter: RequestAdapter) { | ||
registerDefaultSerializer(JsonSerializationWriterFactory) | ||
registerDefaultDeserializer(JsonParseNodeFactory) | ||
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === '') { | ||
requestAdapter.baseUrl = 'https://app-api.salad.com/api' | ||
} | ||
const pathParameters: Record<string, unknown> = { | ||
baseurl: requestAdapter.baseUrl, | ||
} | ||
return apiClientProxifier<MachinesApiClient>( | ||
requestAdapter, | ||
pathParameters, | ||
MachinesApiClientNavigationMetadata, | ||
undefined, | ||
) | ||
} | ||
/** | ||
* The main entry point of the SDK, exposes the configuration and the fluent API. | ||
*/ | ||
export interface MachinesApiClient extends BaseRequestBuilder<MachinesApiClient> { | ||
/** | ||
* The v2 property | ||
*/ | ||
get v2(): V2RequestBuilder | ||
} | ||
/** | ||
* Uri template for the request builder. | ||
*/ | ||
export const MachinesApiClientUriTemplate = '{+baseurl}' | ||
/** | ||
* Metadata for all the navigation properties in the request builder. | ||
*/ | ||
export const MachinesApiClientNavigationMetadata: Record< | ||
Exclude<keyof MachinesApiClient, KeysToExcludeForNavigationMetadata>, | ||
NavigationMetadata | ||
> = { | ||
v2: { | ||
navigationMetadata: V2RequestBuilderNavigationMetadata, | ||
}, | ||
} | ||
/* tslint:enable */ | ||
/* eslint-enable */ |
Oops, something went wrong.