Skip to content

Commit

Permalink
Kiota Machine API Client - added (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitto-moz authored Jun 26, 2024
1 parent 912fd66 commit 11318d1
Show file tree
Hide file tree
Showing 10 changed files with 814 additions and 8 deletions.
11 changes: 9 additions & 2 deletions packages/web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@
"resolutions": {
"@elastic/search-ui": "file:../../libs/elastic-search-ui-1.17.1+salad.tgz",
"meow@npm:3.7.0/trim-newlines": "3.0.1",
"remark-parse@npm:8.0.3/trim": "0.0.3"
"remark-parse@npm:8.0.3/trim": "0.0.3",
"@microsoft/kiota-abstractions": "1.0.0-preview.53",
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.52",
"@microsoft/kiota-serialization-json": "1.0.0-preview.53"
},
"dependencies": {
"@babel/core": "7.24.5",
Expand All @@ -86,9 +89,12 @@
"@fortawesome/free-regular-svg-icons": "6.5.2",
"@fortawesome/free-solid-svg-icons": "6.5.2",
"@fortawesome/react-fontawesome": "0.2.1",
"@microsoft/kiota-abstractions": "1.0.0-preview.53",
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.52",
"@microsoft/kiota-serialization-json": "1.0.0-preview.53",
"@novu/notification-center": "0.24.2",
"@novu/shared": "0.24.2",
"@saladtechnologies/garden-components": "1.4.6",
"@saladtechnologies/garden-components": "1.4.7",
"@saladtechnologies/garden-fonts": "1.0.4",
"@saladtechnologies/garden-icons": "1.0.23",
"@storybook/addon-a11y": "6.5.16",
Expand Down Expand Up @@ -130,6 +136,7 @@
"eslint-plugin-compat": "4.2.0",
"events": "3.3.0",
"final-form": "4.20.10",
"guid-typescript": "1.0.9",
"history": "4.10.1",
"is-retry-allowed": "3.0.0",
"lodash": "4.17.21",
Expand Down
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": []
}
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 */
Loading

0 comments on commit 11318d1

Please sign in to comment.