@targetprocess/shared-data-model-client 0.6.0-us817837-mapping.5 → 0.6.0-us817837-mapping.6

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.
@@ -0,0 +1,37 @@
1
+ import { type GetProfileSettingsDto } from '../../../../models/index.js';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /api/settings/profile/current
5
+ */
6
+ export interface CurrentRequestBuilder extends BaseRequestBuilder<CurrentRequestBuilder> {
7
+ /**
8
+ * Get settings profile
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<GetProfileSettingsDto>}
11
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
12
+ * @throws {ProblemDetails} error when the service returns a 401 status code
13
+ * @throws {ProblemDetails} error when the service returns a 404 status code
14
+ * @throws {ProblemDetails} error when the service returns a 500 status code
15
+ */
16
+ get(requestConfiguration?: RequestConfiguration<CurrentRequestBuilderGetQueryParameters> | undefined): Promise<GetProfileSettingsDto | undefined>;
17
+ /**
18
+ * Get settings profile
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ * @returns {RequestInformation}
21
+ */
22
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CurrentRequestBuilderGetQueryParameters> | undefined): RequestInformation;
23
+ }
24
+ /**
25
+ * Get settings profile
26
+ */
27
+ export interface CurrentRequestBuilderGetQueryParameters {
28
+ validate?: boolean;
29
+ }
30
+ /**
31
+ * Uri template for the request builder.
32
+ */
33
+ export declare const CurrentRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/current{?validate*}";
34
+ /**
35
+ * Metadata for all the requests in the request builder.
36
+ */
37
+ export declare const CurrentRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrentRequestBuilderRequestsMetadata = exports.CurrentRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ // @ts-ignore
8
+ const index_js_1 = require("../../../../models/index.js");
9
+ /**
10
+ * Uri template for the request builder.
11
+ */
12
+ exports.CurrentRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/current{?validate*}";
13
+ /**
14
+ * Metadata for all the requests in the request builder.
15
+ */
16
+ exports.CurrentRequestBuilderRequestsMetadata = {
17
+ get: {
18
+ uriTemplate: exports.CurrentRequestBuilderUriTemplate,
19
+ responseBodyContentType: "application/json",
20
+ errorMappings: {
21
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
22
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
23
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
24
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
25
+ },
26
+ adapterMethodName: "send",
27
+ responseBodyFactory: index_js_1.createGetProfileSettingsDtoFromDiscriminatorValue,
28
+ },
29
+ };
30
+ /* tslint:enable */
31
+ /* eslint-enable */
@@ -1,10 +1,15 @@
1
- import { type GetProfileSettingsDto, type ProfileDto } from '../../../models/index.js';
1
+ import { type ProfileDto, type ProfileIdDto } from '../../../models/index.js';
2
+ import { type CurrentRequestBuilder } from './current/index.js';
2
3
  import { type ValidateRequestBuilder } from './validate/index.js';
3
4
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
5
  /**
5
6
  * Builds and executes requests for operations under /api/settings/profile
6
7
  */
7
8
  export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequestBuilder> {
9
+ /**
10
+ * The current property
11
+ */
12
+ get current(): CurrentRequestBuilder;
8
13
  /**
9
14
  * The validate property
10
15
  */
@@ -12,13 +17,13 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
12
17
  /**
13
18
  * Get settings profile
14
19
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
- * @returns {Promise<GetProfileSettingsDto>}
20
+ * @returns {Promise<ProfileIdDto[]>}
16
21
  * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
17
22
  * @throws {ProblemDetails} error when the service returns a 401 status code
18
23
  * @throws {ProblemDetails} error when the service returns a 404 status code
19
24
  * @throws {ProblemDetails} error when the service returns a 500 status code
20
25
  */
21
- get(requestConfiguration?: RequestConfiguration<ProfileRequestBuilderGetQueryParameters> | undefined): Promise<GetProfileSettingsDto | undefined>;
26
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProfileIdDto[] | undefined>;
22
27
  /**
23
28
  * Update settings profile
24
29
  * @param body The request body
@@ -35,7 +40,7 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
35
40
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
41
  * @returns {RequestInformation}
37
42
  */
38
- toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProfileRequestBuilderGetQueryParameters> | undefined): RequestInformation;
43
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
39
44
  /**
40
45
  * Update settings profile
41
46
  * @param body The request body
@@ -44,16 +49,10 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
44
49
  */
45
50
  toPutRequestInformation(body: ProfileDto, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
46
51
  }
47
- /**
48
- * Get settings profile
49
- */
50
- export interface ProfileRequestBuilderGetQueryParameters {
51
- validate?: boolean;
52
- }
53
52
  /**
54
53
  * Uri template for the request builder.
55
54
  */
56
- export declare const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile{?validate*}";
55
+ export declare const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
57
56
  /**
58
57
  * Metadata for all the navigation properties in the request builder.
59
58
  */
@@ -7,17 +7,22 @@ exports.ProfileRequestBuilderRequestsMetadata = exports.ProfileRequestBuilderNav
7
7
  // @ts-ignore
8
8
  const index_js_1 = require("../../../models/index.js");
9
9
  // @ts-ignore
10
- const index_js_2 = require("./validate/index.js");
10
+ const index_js_2 = require("./current/index.js");
11
+ // @ts-ignore
12
+ const index_js_3 = require("./validate/index.js");
11
13
  /**
12
14
  * Uri template for the request builder.
13
15
  */
14
- exports.ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile{?validate*}";
16
+ exports.ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
15
17
  /**
16
18
  * Metadata for all the navigation properties in the request builder.
17
19
  */
18
20
  exports.ProfileRequestBuilderNavigationMetadata = {
21
+ current: {
22
+ requestsMetadata: index_js_2.CurrentRequestBuilderRequestsMetadata,
23
+ },
19
24
  validate: {
20
- requestsMetadata: index_js_2.ValidateRequestBuilderRequestsMetadata,
25
+ requestsMetadata: index_js_3.ValidateRequestBuilderRequestsMetadata,
21
26
  },
22
27
  };
23
28
  /**
@@ -33,8 +38,8 @@ exports.ProfileRequestBuilderRequestsMetadata = {
33
38
  404: index_js_1.createProblemDetailsFromDiscriminatorValue,
34
39
  500: index_js_1.createProblemDetailsFromDiscriminatorValue,
35
40
  },
36
- adapterMethodName: "send",
37
- responseBodyFactory: index_js_1.createGetProfileSettingsDtoFromDiscriminatorValue,
41
+ adapterMethodName: "sendCollection",
42
+ responseBodyFactory: index_js_1.createProfileIdDtoFromDiscriminatorValue,
38
43
  },
39
44
  put: {
40
45
  uriTemplate: exports.ProfileRequestBuilderUriTemplate,
@@ -35,6 +35,12 @@ export declare function createHttpValidationProblemDetailsFromDiscriminatorValue
35
35
  * @returns {IFieldDef}
36
36
  */
37
37
  export declare function createIFieldDefFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
38
+ /**
39
+ * Creates a new instance of the appropriate class based on discriminator value
40
+ * @param parseNode The parse node to use to read the discriminator value and create the object
41
+ * @returns {MappingErrorDto}
42
+ */
43
+ export declare function createMappingErrorDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
38
44
  /**
39
45
  * Creates a new instance of the appropriate class based on discriminator value
40
46
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -47,6 +53,12 @@ export declare function createProblemDetailsFromDiscriminatorValue(parseNode: Pa
47
53
  * @returns {ProfileDto}
48
54
  */
49
55
  export declare function createProfileDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
56
+ /**
57
+ * Creates a new instance of the appropriate class based on discriminator value
58
+ * @param parseNode The parse node to use to read the discriminator value and create the object
59
+ * @returns {ProfileIdDto}
60
+ */
61
+ export declare function createProfileIdDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
50
62
  /**
51
63
  * Creates a new instance of the appropriate class based on discriminator value
52
64
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -95,12 +107,24 @@ export declare function createTypeMappingDtoFromDiscriminatorValue(parseNode: Pa
95
107
  * @returns {TypeMetaDefDto}
96
108
  */
97
109
  export declare function createTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
110
+ /**
111
+ * Creates a new instance of the appropriate class based on discriminator value
112
+ * @param parseNode The parse node to use to read the discriminator value and create the object
113
+ * @returns {ValidatedFieldMappingDto}
114
+ */
115
+ export declare function createValidatedFieldMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
98
116
  /**
99
117
  * Creates a new instance of the appropriate class based on discriminator value
100
118
  * @param parseNode The parse node to use to read the discriminator value and create the object
101
119
  * @returns {ValidatedProfileDto}
102
120
  */
103
121
  export declare function createValidatedProfileDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
122
+ /**
123
+ * Creates a new instance of the appropriate class based on discriminator value
124
+ * @param parseNode The parse node to use to read the discriminator value and create the object
125
+ * @returns {ValidatedTypeMappingDto}
126
+ */
127
+ export declare function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
104
128
  /**
105
129
  * The deserialization information for the current model
106
130
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -131,6 +155,11 @@ export declare function deserializeIntoHttpValidationProblemDetails_errors(httpV
131
155
  * @returns {Record<string, (node: ParseNode) => void>}
132
156
  */
133
157
  export declare function deserializeIntoIFieldDef(iFieldDef?: Partial<IFieldDef> | undefined): Record<string, (node: ParseNode) => void>;
158
+ /**
159
+ * The deserialization information for the current model
160
+ * @returns {Record<string, (node: ParseNode) => void>}
161
+ */
162
+ export declare function deserializeIntoMappingErrorDto(mappingErrorDto?: Partial<MappingErrorDto> | undefined): Record<string, (node: ParseNode) => void>;
134
163
  /**
135
164
  * The deserialization information for the current model
136
165
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -141,6 +170,11 @@ export declare function deserializeIntoProblemDetails(problemDetails?: Partial<P
141
170
  * @returns {Record<string, (node: ParseNode) => void>}
142
171
  */
143
172
  export declare function deserializeIntoProfileDto(profileDto?: Partial<ProfileDto> | undefined): Record<string, (node: ParseNode) => void>;
173
+ /**
174
+ * The deserialization information for the current model
175
+ * @returns {Record<string, (node: ParseNode) => void>}
176
+ */
177
+ export declare function deserializeIntoProfileIdDto(profileIdDto?: Partial<ProfileIdDto> | undefined): Record<string, (node: ParseNode) => void>;
144
178
  /**
145
179
  * The deserialization information for the current model
146
180
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -181,11 +215,21 @@ export declare function deserializeIntoTypeMappingDto(typeMappingDto?: Partial<T
181
215
  * @returns {Record<string, (node: ParseNode) => void>}
182
216
  */
183
217
  export declare function deserializeIntoTypeMetaDefDto(typeMetaDefDto?: Partial<TypeMetaDefDto> | undefined): Record<string, (node: ParseNode) => void>;
218
+ /**
219
+ * The deserialization information for the current model
220
+ * @returns {Record<string, (node: ParseNode) => void>}
221
+ */
222
+ export declare function deserializeIntoValidatedFieldMappingDto(validatedFieldMappingDto?: Partial<ValidatedFieldMappingDto> | undefined): Record<string, (node: ParseNode) => void>;
184
223
  /**
185
224
  * The deserialization information for the current model
186
225
  * @returns {Record<string, (node: ParseNode) => void>}
187
226
  */
188
227
  export declare function deserializeIntoValidatedProfileDto(validatedProfileDto?: Partial<ValidatedProfileDto> | undefined): Record<string, (node: ParseNode) => void>;
228
+ /**
229
+ * The deserialization information for the current model
230
+ * @returns {Record<string, (node: ParseNode) => void>}
231
+ */
232
+ export declare function deserializeIntoValidatedTypeMappingDto(validatedTypeMappingDto?: Partial<ValidatedTypeMappingDto> | undefined): Record<string, (node: ParseNode) => void>;
189
233
  export type FieldKind = (typeof FieldKindObject)[keyof typeof FieldKindObject];
190
234
  export interface FieldMappingDto extends Parsable {
191
235
  /**
@@ -200,6 +244,10 @@ export interface FieldMappingDto extends Parsable {
200
244
  * The target property
201
245
  */
202
246
  target?: SdmMappingFieldDefDto | null;
247
+ /**
248
+ * The Type property
249
+ */
250
+ type?: string | null;
203
251
  }
204
252
  export interface GetEntityTypesDto extends Parsable {
205
253
  /**
@@ -243,6 +291,12 @@ export interface IFieldDef extends Parsable {
243
291
  */
244
292
  refType?: string | null;
245
293
  }
294
+ export interface MappingErrorDto extends Parsable {
295
+ /**
296
+ * The message property
297
+ */
298
+ message?: string | null;
299
+ }
246
300
  export type MappingKind = (typeof MappingKindObject)[keyof typeof MappingKindObject];
247
301
  export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable {
248
302
  /**
@@ -270,20 +324,30 @@ export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable
270
324
  */
271
325
  type?: string | null;
272
326
  }
273
- export interface ProfileDto extends Parsable {
327
+ export interface ProfileDto extends AdditionalDataHolder, Parsable, ProfileIdDto {
274
328
  /**
275
- * The id property
329
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
276
330
  */
277
- id?: string | null;
331
+ additionalData?: Record<string, unknown>;
278
332
  /**
279
- * The name property
333
+ * The Type property
280
334
  */
281
- name?: string | null;
335
+ type?: string | null;
282
336
  /**
283
337
  * The typeMappings property
284
338
  */
285
339
  typeMappings?: TypeMappingDto[] | null;
286
340
  }
341
+ export interface ProfileIdDto extends Parsable {
342
+ /**
343
+ * The id property
344
+ */
345
+ id?: string | null;
346
+ /**
347
+ * The name property
348
+ */
349
+ name?: string | null;
350
+ }
287
351
  export interface SdmMappingFieldDefDto extends Parsable {
288
352
  /**
289
353
  * The expression property
@@ -334,6 +398,11 @@ export declare function serializeHttpValidationProblemDetails_errors(writer: Ser
334
398
  * @param writer Serialization writer to use to serialize this model
335
399
  */
336
400
  export declare function serializeIFieldDef(writer: SerializationWriter, iFieldDef?: Partial<IFieldDef> | undefined | null): void;
401
+ /**
402
+ * Serializes information the current object
403
+ * @param writer Serialization writer to use to serialize this model
404
+ */
405
+ export declare function serializeMappingErrorDto(writer: SerializationWriter, mappingErrorDto?: Partial<MappingErrorDto> | undefined | null): void;
337
406
  /**
338
407
  * Serializes information the current object
339
408
  * @param writer Serialization writer to use to serialize this model
@@ -344,6 +413,11 @@ export declare function serializeProblemDetails(writer: SerializationWriter, pro
344
413
  * @param writer Serialization writer to use to serialize this model
345
414
  */
346
415
  export declare function serializeProfileDto(writer: SerializationWriter, profileDto?: Partial<ProfileDto> | undefined | null): void;
416
+ /**
417
+ * Serializes information the current object
418
+ * @param writer Serialization writer to use to serialize this model
419
+ */
420
+ export declare function serializeProfileIdDto(writer: SerializationWriter, profileIdDto?: Partial<ProfileIdDto> | undefined | null): void;
347
421
  /**
348
422
  * Serializes information the current object
349
423
  * @param writer Serialization writer to use to serialize this model
@@ -384,11 +458,21 @@ export declare function serializeTypeMappingDto(writer: SerializationWriter, typ
384
458
  * @param writer Serialization writer to use to serialize this model
385
459
  */
386
460
  export declare function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDefDto?: Partial<TypeMetaDefDto> | undefined | null): void;
461
+ /**
462
+ * Serializes information the current object
463
+ * @param writer Serialization writer to use to serialize this model
464
+ */
465
+ export declare function serializeValidatedFieldMappingDto(writer: SerializationWriter, validatedFieldMappingDto?: Partial<ValidatedFieldMappingDto> | undefined | null): void;
387
466
  /**
388
467
  * Serializes information the current object
389
468
  * @param writer Serialization writer to use to serialize this model
390
469
  */
391
470
  export declare function serializeValidatedProfileDto(writer: SerializationWriter, validatedProfileDto?: Partial<ValidatedProfileDto> | undefined | null): void;
471
+ /**
472
+ * Serializes information the current object
473
+ * @param writer Serialization writer to use to serialize this model
474
+ */
475
+ export declare function serializeValidatedTypeMappingDto(writer: SerializationWriter, validatedTypeMappingDto?: Partial<ValidatedTypeMappingDto> | undefined | null): void;
392
476
  export interface SharedDataCreateAttachmentResponseDto extends Parsable {
393
477
  /**
394
478
  * The items property
@@ -446,6 +530,10 @@ export interface TypeMappingDto extends Parsable {
446
530
  * The targetType property
447
531
  */
448
532
  targetType?: SdmTypeDefDto | null;
533
+ /**
534
+ * The Type property
535
+ */
536
+ type?: string | null;
449
537
  }
450
538
  export interface TypeMetaDefDto extends Parsable {
451
539
  /**
@@ -461,6 +549,20 @@ export interface TypeMetaDefDto extends Parsable {
461
549
  */
462
550
  name?: string | null;
463
551
  }
552
+ export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
553
+ /**
554
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
555
+ */
556
+ additionalData?: Record<string, unknown>;
557
+ /**
558
+ * The errors property
559
+ */
560
+ errors?: MappingErrorDto[] | null;
561
+ /**
562
+ * The isValid property
563
+ */
564
+ isValid?: boolean | null;
565
+ }
464
566
  export interface ValidatedProfileDto extends AdditionalDataHolder, Parsable, ProfileDto {
465
567
  /**
466
568
  * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -471,6 +573,20 @@ export interface ValidatedProfileDto extends AdditionalDataHolder, Parsable, Pro
471
573
  */
472
574
  isValid?: boolean | null;
473
575
  }
576
+ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable, TypeMappingDto {
577
+ /**
578
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
579
+ */
580
+ additionalData?: Record<string, unknown>;
581
+ /**
582
+ * The errors property
583
+ */
584
+ errors?: MappingErrorDto[] | null;
585
+ /**
586
+ * The isValid property
587
+ */
588
+ isValid?: boolean | null;
589
+ }
474
590
  export declare const FieldKindObject: {
475
591
  readonly Simple: "Simple";
476
592
  readonly Ref: "Ref";