@targetprocess/shared-data-model-client 0.10.1-ci.4 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/sdm/alerts/index.d.ts +21 -0
- package/dist/api/sdm/alerts/index.js +23 -0
- package/dist/api/sdm/alerts/item/index.d.ts +31 -0
- package/dist/api/sdm/alerts/item/index.js +34 -0
- package/dist/api/sdm/index.d.ts +5 -0
- package/dist/api/sdm/index.js +14 -9
- package/dist/api/sdm/item/index.d.ts +0 -19
- package/dist/api/sdm/item/index.js +0 -15
- package/dist/api/settings/profile/index.d.ts +1 -20
- package/dist/api/settings/profile/index.js +0 -16
- package/dist/models/index.d.ts +0 -58
- package/dist/models/index.js +1 -74
- package/dist/tpSharedDataModelClient.js +7 -17
- package/package.json +2 -2
- package/src/api/sdm/alerts/index.ts +34 -0
- package/src/api/sdm/alerts/item/index.ts +54 -0
- package/src/api/sdm/index.ts +9 -0
- package/src/api/sdm/item/index.ts +1 -34
- package/src/api/settings/profile/index.ts +1 -36
- package/src/kiota-lock.json +2 -2
- package/src/models/index.ts +0 -88
- package/src/tpSharedDataModelClient.ts +8 -21
- package/src/v1.json +336 -486
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { type WithStorageKeyItemRequestBuilder, WithStorageKeyItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Builds and executes requests for operations under /api/sdm/alerts
|
|
11
|
+
*/
|
|
12
|
+
export interface AlertsRequestBuilder extends BaseRequestBuilder<AlertsRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Gets an item from the Tp.api.sdm.alerts.item collection
|
|
15
|
+
* @param storageKey Unique identifier of the item
|
|
16
|
+
* @returns {WithStorageKeyItemRequestBuilder}
|
|
17
|
+
*/
|
|
18
|
+
byStorageKey(storageKey: string) : WithStorageKeyItemRequestBuilder;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export const AlertsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the navigation properties in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export const AlertsRequestBuilderNavigationMetadata: Record<Exclude<keyof AlertsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
|
|
28
|
+
byStorageKey: {
|
|
29
|
+
requestsMetadata: WithStorageKeyItemRequestBuilderRequestsMetadata,
|
|
30
|
+
pathParametersMappings: ["storageKey"],
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/* tslint:enable */
|
|
34
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../../models/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { createUntypedNodeFromDiscriminatorValue, type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Builds and executes requests for operations under /api/sdm/alerts/{storageKey}
|
|
11
|
+
*/
|
|
12
|
+
export interface WithStorageKeyItemRequestBuilder extends BaseRequestBuilder<WithStorageKeyItemRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Gets alerts
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {Promise<UntypedNode>}
|
|
17
|
+
* @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
|
|
18
|
+
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
19
|
+
* @throws {ProblemDetails} error when the service returns a 404 status code
|
|
20
|
+
* @throws {ProblemDetails} error when the service returns a 409 status code
|
|
21
|
+
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
22
|
+
*/
|
|
23
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<UntypedNode | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets alerts
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {RequestInformation}
|
|
28
|
+
*/
|
|
29
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Uri template for the request builder.
|
|
33
|
+
*/
|
|
34
|
+
export const WithStorageKeyItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}";
|
|
35
|
+
/**
|
|
36
|
+
* Metadata for all the requests in the request builder.
|
|
37
|
+
*/
|
|
38
|
+
export const WithStorageKeyItemRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
39
|
+
get: {
|
|
40
|
+
uriTemplate: WithStorageKeyItemRequestBuilderUriTemplate,
|
|
41
|
+
responseBodyContentType: "application/json",
|
|
42
|
+
errorMappings: {
|
|
43
|
+
400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
44
|
+
401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
45
|
+
404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
46
|
+
409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
47
|
+
500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
48
|
+
},
|
|
49
|
+
adapterMethodName: "send",
|
|
50
|
+
responseBodyFactory: createUntypedNodeFromDiscriminatorValue,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
/* tslint:enable */
|
|
54
|
+
/* eslint-enable */
|
package/src/api/sdm/index.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// Generated by Microsoft Kiota
|
|
4
4
|
// @ts-ignore
|
|
5
|
+
import { AlertsRequestBuilderNavigationMetadata, type AlertsRequestBuilder } from './alerts/index.js';
|
|
6
|
+
// @ts-ignore
|
|
5
7
|
import { AttachmentsRequestBuilderNavigationMetadata, type AttachmentsRequestBuilder } from './attachments/index.js';
|
|
6
8
|
// @ts-ignore
|
|
7
9
|
import { type WithEntityTypeItemRequestBuilder, WithEntityTypeItemRequestBuilderNavigationMetadata, WithEntityTypeItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
@@ -16,6 +18,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
|
|
|
16
18
|
* Builds and executes requests for operations under /api/sdm
|
|
17
19
|
*/
|
|
18
20
|
export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
|
|
21
|
+
/**
|
|
22
|
+
* The alerts property
|
|
23
|
+
*/
|
|
24
|
+
get alerts(): AlertsRequestBuilder;
|
|
19
25
|
/**
|
|
20
26
|
* The attachments property
|
|
21
27
|
*/
|
|
@@ -48,6 +54,9 @@ export const SdmRequestBuilderNavigationMetadata: Record<Exclude<keyof SdmReques
|
|
|
48
54
|
navigationMetadata: WithEntityTypeItemRequestBuilderNavigationMetadata,
|
|
49
55
|
pathParametersMappings: ["entityType"],
|
|
50
56
|
},
|
|
57
|
+
alerts: {
|
|
58
|
+
navigationMetadata: AlertsRequestBuilderNavigationMetadata,
|
|
59
|
+
},
|
|
51
60
|
attachments: {
|
|
52
61
|
navigationMetadata: AttachmentsRequestBuilderNavigationMetadata,
|
|
53
62
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// Generated by Microsoft Kiota
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue,
|
|
5
|
+
import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../models/index.js';
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
|
|
8
8
|
// @ts-ignore
|
|
@@ -24,17 +24,6 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
|
|
|
24
24
|
* @returns {EntityTypeItemRequestBuilder}
|
|
25
25
|
*/
|
|
26
26
|
byId(id: number) : EntityTypeItemRequestBuilder;
|
|
27
|
-
/**
|
|
28
|
-
* Deletes Shared Data Model
|
|
29
|
-
* @param body The request body
|
|
30
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
-
* @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
|
|
32
|
-
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
33
|
-
* @throws {ProblemDetails} error when the service returns a 404 status code
|
|
34
|
-
* @throws {ProblemDetails} error when the service returns a 409 status code
|
|
35
|
-
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
36
|
-
*/
|
|
37
|
-
delete(body: SharedDataDeleteDto, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
|
|
38
27
|
/**
|
|
39
28
|
* Creates or Updates Shared Data Model
|
|
40
29
|
* @param body The request body
|
|
@@ -47,13 +36,6 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
|
|
|
47
36
|
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
48
37
|
*/
|
|
49
38
|
post(body: UntypedNode, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<UntypedNode | undefined>;
|
|
50
|
-
/**
|
|
51
|
-
* Deletes Shared Data Model
|
|
52
|
-
* @param body The request body
|
|
53
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
54
|
-
* @returns {RequestInformation}
|
|
55
|
-
*/
|
|
56
|
-
toDeleteRequestInformation(body: SharedDataDeleteDto, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
|
|
57
39
|
/**
|
|
58
40
|
* Creates or Updates Shared Data Model
|
|
59
41
|
* @param body The request body
|
|
@@ -82,21 +64,6 @@ export const WithEntityTypeItemRequestBuilderNavigationMetadata: Record<Exclude<
|
|
|
82
64
|
* Metadata for all the requests in the request builder.
|
|
83
65
|
*/
|
|
84
66
|
export const WithEntityTypeItemRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
85
|
-
delete: {
|
|
86
|
-
uriTemplate: WithEntityTypeItemRequestBuilderUriTemplate,
|
|
87
|
-
responseBodyContentType: "application/problem+json",
|
|
88
|
-
errorMappings: {
|
|
89
|
-
400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
90
|
-
401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
91
|
-
404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
92
|
-
409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
93
|
-
500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
94
|
-
},
|
|
95
|
-
adapterMethodName: "sendNoResponseContent",
|
|
96
|
-
requestBodyContentType: "application/json",
|
|
97
|
-
requestBodySerializer: serializeSharedDataDeleteDto,
|
|
98
|
-
requestInformationContentSetMethod: "setContentFromParsable",
|
|
99
|
-
},
|
|
100
67
|
post: {
|
|
101
68
|
uriTemplate: WithEntityTypeItemRequestBuilderUriTemplate,
|
|
102
69
|
responseBodyContentType: "application/json",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// Generated by Microsoft Kiota
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createProfileDtoFromDiscriminatorValue, createProfileIdDtoFromDiscriminatorValue,
|
|
5
|
+
import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createProfileDtoFromDiscriminatorValue, createProfileIdDtoFromDiscriminatorValue, serializeProfileDto, type HttpValidationProblemDetails, type ProblemDetails, type ProfileDto, type ProfileIdDto } from '../../../models/index.js';
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
import { CopyRequestBuilderRequestsMetadata, type CopyRequestBuilder } from './copy/index.js';
|
|
8
8
|
// @ts-ignore
|
|
@@ -34,18 +34,6 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
|
|
|
34
34
|
* The validate property
|
|
35
35
|
*/
|
|
36
36
|
get validate(): ValidateRequestBuilder;
|
|
37
|
-
/**
|
|
38
|
-
* Copy profile and sets as current
|
|
39
|
-
* @param body The request body
|
|
40
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
41
|
-
* @returns {Promise<ProfileDto>}
|
|
42
|
-
* @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
|
|
43
|
-
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
44
|
-
* @throws {ProblemDetails} error when the service returns a 404 status code
|
|
45
|
-
* @throws {ProblemDetails} error when the service returns a 409 status code
|
|
46
|
-
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
47
|
-
*/
|
|
48
|
-
delete(body: DeleteProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfileDto | undefined>;
|
|
49
37
|
/**
|
|
50
38
|
* Get settings profile
|
|
51
39
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
@@ -69,13 +57,6 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
|
|
|
69
57
|
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
70
58
|
*/
|
|
71
59
|
put(body: ProfileDto, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfileDto | undefined>;
|
|
72
|
-
/**
|
|
73
|
-
* Copy profile and sets as current
|
|
74
|
-
* @param body The request body
|
|
75
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
76
|
-
* @returns {RequestInformation}
|
|
77
|
-
*/
|
|
78
|
-
toDeleteRequestInformation(body: DeleteProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
|
|
79
60
|
/**
|
|
80
61
|
* Get settings profile
|
|
81
62
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
@@ -115,22 +96,6 @@ export const ProfileRequestBuilderNavigationMetadata: Record<Exclude<keyof Profi
|
|
|
115
96
|
* Metadata for all the requests in the request builder.
|
|
116
97
|
*/
|
|
117
98
|
export const ProfileRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
118
|
-
delete: {
|
|
119
|
-
uriTemplate: ProfileRequestBuilderUriTemplate,
|
|
120
|
-
responseBodyContentType: "application/json",
|
|
121
|
-
errorMappings: {
|
|
122
|
-
400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
123
|
-
401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
124
|
-
404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
125
|
-
409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
126
|
-
500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
127
|
-
},
|
|
128
|
-
adapterMethodName: "send",
|
|
129
|
-
responseBodyFactory: createProfileDtoFromDiscriminatorValue,
|
|
130
|
-
requestBodyContentType: "application/json",
|
|
131
|
-
requestBodySerializer: serializeDeleteProfileRequestDto,
|
|
132
|
-
requestInformationContentSetMethod: "setContentFromParsable",
|
|
133
|
-
},
|
|
134
99
|
get: {
|
|
135
100
|
uriTemplate: ProfileRequestBuilderUriTemplate,
|
|
136
101
|
responseBodyContentType: "application/json",
|
package/src/kiota-lock.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "45F71E1C81D062458A5C7A6A3289110C08B5DA494D0CFB2A5FA8E8053AF2E2AF8F77CAD90D2C999766AD70608FD5DE503203E1C3F6BDABC43A57AC07C455FE7B",
|
|
3
3
|
"descriptionLocation": "v1.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
|
-
"kiotaVersion": "1.
|
|
5
|
+
"kiotaVersion": "1.22.3",
|
|
6
6
|
"clientClassName": "TpSharedDataModelClient",
|
|
7
7
|
"typeAccessModifier": "Public",
|
|
8
8
|
"clientNamespaceName": "Tp",
|
package/src/models/index.ts
CHANGED
|
@@ -19,15 +19,6 @@ export interface CopyCurrentProfileRequestDto extends Parsable {
|
|
|
19
19
|
export function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
20
20
|
return deserializeIntoCopyCurrentProfileRequestDto;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
24
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
25
|
-
* @returns {DeleteProfileRequestDto}
|
|
26
|
-
*/
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
export function createDeleteProfileRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
29
|
-
return deserializeIntoDeleteProfileRequestDto;
|
|
30
|
-
}
|
|
31
22
|
/**
|
|
32
23
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
33
24
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -165,15 +156,6 @@ export function createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValu
|
|
|
165
156
|
export function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
166
157
|
return deserializeIntoSharedDataCreateAttachmentResponseItemDto;
|
|
167
158
|
}
|
|
168
|
-
/**
|
|
169
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
170
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
171
|
-
* @returns {SharedDataDeleteDto}
|
|
172
|
-
*/
|
|
173
|
-
// @ts-ignore
|
|
174
|
-
export function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
175
|
-
return deserializeIntoSharedDataDeleteDto;
|
|
176
|
-
}
|
|
177
159
|
/**
|
|
178
160
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
179
161
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -248,16 +230,6 @@ export function createValidatedProfileDtoFromDiscriminatorValue(parseNode: Parse
|
|
|
248
230
|
export function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
249
231
|
return deserializeIntoValidatedTypeMappingDto;
|
|
250
232
|
}
|
|
251
|
-
export interface DeleteProfileRequestDto extends Parsable {
|
|
252
|
-
/**
|
|
253
|
-
* The forceDelete property
|
|
254
|
-
*/
|
|
255
|
-
forceDelete?: boolean | null;
|
|
256
|
-
/**
|
|
257
|
-
* The profileId property
|
|
258
|
-
*/
|
|
259
|
-
profileId?: string | null;
|
|
260
|
-
}
|
|
261
233
|
/**
|
|
262
234
|
* The deserialization information for the current model
|
|
263
235
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
@@ -273,17 +245,6 @@ export function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRe
|
|
|
273
245
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
274
246
|
*/
|
|
275
247
|
// @ts-ignore
|
|
276
|
-
export function deserializeIntoDeleteProfileRequestDto(deleteProfileRequestDto: Partial<DeleteProfileRequestDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
277
|
-
return {
|
|
278
|
-
"forceDelete": n => { deleteProfileRequestDto.forceDelete = n.getBooleanValue(); },
|
|
279
|
-
"profileId": n => { deleteProfileRequestDto.profileId = n.getStringValue(); },
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* The deserialization information for the current model
|
|
284
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
285
|
-
*/
|
|
286
|
-
// @ts-ignore
|
|
287
248
|
export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
288
249
|
return {
|
|
289
250
|
"expression": n => { fieldDefDto.expression = n.getStringValue(); },
|
|
@@ -300,7 +261,6 @@ export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | u
|
|
|
300
261
|
export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
301
262
|
return {
|
|
302
263
|
"id": n => { fieldMappingDto.id = n.getStringValue(); },
|
|
303
|
-
"kind": n => { fieldMappingDto.kind = n.getEnumValue<FieldMappingKind>(FieldMappingKindObject); },
|
|
304
264
|
"source": n => { fieldMappingDto.source = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
305
265
|
"target": n => { fieldMappingDto.target = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
306
266
|
"$type": n => { fieldMappingDto.type = n.getStringValue(); },
|
|
@@ -441,16 +401,6 @@ export function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedD
|
|
|
441
401
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
442
402
|
*/
|
|
443
403
|
// @ts-ignore
|
|
444
|
-
export function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
445
|
-
return {
|
|
446
|
-
"id": n => { sharedDataDeleteDto.id = n.getNumberValue(); },
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* The deserialization information for the current model
|
|
451
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
452
|
-
*/
|
|
453
|
-
// @ts-ignore
|
|
454
404
|
export function deserializeIntoTestTypeMappingDto(testTypeMappingDto: Partial<TestTypeMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
455
405
|
return {
|
|
456
406
|
"entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
|
|
@@ -557,10 +507,6 @@ export interface FieldMappingDto extends Parsable {
|
|
|
557
507
|
* The id property
|
|
558
508
|
*/
|
|
559
509
|
id?: string | null;
|
|
560
|
-
/**
|
|
561
|
-
* The kind property
|
|
562
|
-
*/
|
|
563
|
-
kind?: FieldMappingKind | null;
|
|
564
510
|
/**
|
|
565
511
|
* The source property
|
|
566
512
|
*/
|
|
@@ -574,7 +520,6 @@ export interface FieldMappingDto extends Parsable {
|
|
|
574
520
|
*/
|
|
575
521
|
type?: string | null;
|
|
576
522
|
}
|
|
577
|
-
export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
|
|
578
523
|
export interface GetEntityTypesDto extends Parsable {
|
|
579
524
|
/**
|
|
580
525
|
* The sdmTypes property
|
|
@@ -681,17 +626,6 @@ export function serializeCopyCurrentProfileRequestDto(writer: SerializationWrite
|
|
|
681
626
|
* @param writer Serialization writer to use to serialize this model
|
|
682
627
|
*/
|
|
683
628
|
// @ts-ignore
|
|
684
|
-
export function serializeDeleteProfileRequestDto(writer: SerializationWriter, deleteProfileRequestDto: Partial<DeleteProfileRequestDto> | undefined | null = {}) : void {
|
|
685
|
-
if (deleteProfileRequestDto) {
|
|
686
|
-
writer.writeBooleanValue("forceDelete", deleteProfileRequestDto.forceDelete);
|
|
687
|
-
writer.writeStringValue("profileId", deleteProfileRequestDto.profileId);
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
/**
|
|
691
|
-
* Serializes information the current object
|
|
692
|
-
* @param writer Serialization writer to use to serialize this model
|
|
693
|
-
*/
|
|
694
|
-
// @ts-ignore
|
|
695
629
|
export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: Partial<FieldDefDto> | undefined | null = {}) : void {
|
|
696
630
|
if (fieldDefDto) {
|
|
697
631
|
writer.writeStringValue("expression", fieldDefDto.expression);
|
|
@@ -708,7 +642,6 @@ export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: P
|
|
|
708
642
|
export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}) : void {
|
|
709
643
|
if (fieldMappingDto) {
|
|
710
644
|
writer.writeStringValue("id", fieldMappingDto.id);
|
|
711
|
-
writer.writeEnumValue<FieldMappingKind>("kind", fieldMappingDto.kind);
|
|
712
645
|
writer.writeObjectValue<MappingFieldDefDto>("source", fieldMappingDto.source, serializeMappingFieldDefDto);
|
|
713
646
|
writer.writeObjectValue<MappingFieldDefDto>("target", fieldMappingDto.target, serializeMappingFieldDefDto);
|
|
714
647
|
writer.writeStringValue("$type", fieldMappingDto.type);
|
|
@@ -852,16 +785,6 @@ export function serializeSharedDataCreateAttachmentResponseItemDto(writer: Seria
|
|
|
852
785
|
* @param writer Serialization writer to use to serialize this model
|
|
853
786
|
*/
|
|
854
787
|
// @ts-ignore
|
|
855
|
-
export function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined | null = {}) : void {
|
|
856
|
-
if (sharedDataDeleteDto) {
|
|
857
|
-
writer.writeNumberValue("id", sharedDataDeleteDto.id);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
/**
|
|
861
|
-
* Serializes information the current object
|
|
862
|
-
* @param writer Serialization writer to use to serialize this model
|
|
863
|
-
*/
|
|
864
|
-
// @ts-ignore
|
|
865
788
|
export function serializeTestTypeMappingDto(writer: SerializationWriter, testTypeMappingDto: Partial<TestTypeMappingDto> | undefined | null = {}) : void {
|
|
866
789
|
if (testTypeMappingDto) {
|
|
867
790
|
writer.writeStringValue("entityType", testTypeMappingDto.entityType);
|
|
@@ -974,12 +897,6 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
|
|
|
974
897
|
*/
|
|
975
898
|
uri?: string | null;
|
|
976
899
|
}
|
|
977
|
-
export interface SharedDataDeleteDto extends Parsable {
|
|
978
|
-
/**
|
|
979
|
-
* The id property
|
|
980
|
-
*/
|
|
981
|
-
id?: number | null;
|
|
982
|
-
}
|
|
983
900
|
export interface TestTypeMappingDto extends Parsable {
|
|
984
901
|
/**
|
|
985
902
|
* The entityType property
|
|
@@ -1095,11 +1012,6 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
|
|
|
1095
1012
|
validationState?: ValidationState | null;
|
|
1096
1013
|
}
|
|
1097
1014
|
export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
|
|
1098
|
-
export const FieldMappingKindObject = {
|
|
1099
|
-
DefaultEscaped: "Default",
|
|
1100
|
-
Custom: "Custom",
|
|
1101
|
-
Empty: "Empty",
|
|
1102
|
-
} as const;
|
|
1103
1015
|
export const RefKindObject = {
|
|
1104
1016
|
Single: "Single",
|
|
1105
1017
|
Collection: "Collection",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import { ApiRequestBuilderNavigationMetadata, type ApiRequestBuilder } from './api/index.js';
|
|
6
6
|
// @ts-ignore
|
|
7
|
-
import { apiClientProxifier,
|
|
7
|
+
import { apiClientProxifier, registerDefaultDeserializer, registerDefaultSerializer, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
|
|
8
8
|
// @ts-ignore
|
|
9
9
|
import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
|
|
10
10
|
// @ts-ignore
|
|
@@ -20,26 +20,13 @@ import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft
|
|
|
20
20
|
*/
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
export function createTpSharedDataModelClient(requestAdapter: RequestAdapter) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (parseNodeFactoryRegistry.registerDefaultDeserializer) {
|
|
31
|
-
parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory);
|
|
32
|
-
parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory);
|
|
33
|
-
parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (serializationWriterFactory.registerDefaultSerializer) {
|
|
37
|
-
serializationWriterFactory.registerDefaultSerializer(JsonSerializationWriterFactory);
|
|
38
|
-
serializationWriterFactory.registerDefaultSerializer(TextSerializationWriterFactory);
|
|
39
|
-
serializationWriterFactory.registerDefaultSerializer(FormSerializationWriterFactory);
|
|
40
|
-
serializationWriterFactory.registerDefaultSerializer(MultipartSerializationWriterFactory);
|
|
41
|
-
}
|
|
42
|
-
|
|
23
|
+
registerDefaultSerializer(JsonSerializationWriterFactory);
|
|
24
|
+
registerDefaultSerializer(TextSerializationWriterFactory);
|
|
25
|
+
registerDefaultSerializer(FormSerializationWriterFactory);
|
|
26
|
+
registerDefaultSerializer(MultipartSerializationWriterFactory);
|
|
27
|
+
registerDefaultDeserializer(JsonParseNodeFactory);
|
|
28
|
+
registerDefaultDeserializer(TextParseNodeFactory);
|
|
29
|
+
registerDefaultDeserializer(FormParseNodeFactory);
|
|
43
30
|
const pathParameters: Record<string, unknown> = {
|
|
44
31
|
"baseurl": requestAdapter.baseUrl,
|
|
45
32
|
};
|