@targetprocess/shared-data-model-client 0.14.0 → 0.16.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.
@@ -1,3 +1,4 @@
1
+ import { type SharedDataDeleteDto } from '../../../models/index.js';
1
2
  import { type CountRequestBuilder } from './count/index.js';
2
3
  import { type EntityTypeItemRequestBuilder } from './item/index.js';
3
4
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
@@ -15,6 +16,17 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
15
16
  * @returns {EntityTypeItemRequestBuilder}
16
17
  */
17
18
  byId(id: number): EntityTypeItemRequestBuilder;
19
+ /**
20
+ * Deletes Shared Data Model
21
+ * @param body The request body
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
24
+ * @throws {ProblemDetails} error when the service returns a 401 status code
25
+ * @throws {ProblemDetails} error when the service returns a 404 status code
26
+ * @throws {ProblemDetails} error when the service returns a 409 status code
27
+ * @throws {ProblemDetails} error when the service returns a 500 status code
28
+ */
29
+ delete(body: SharedDataDeleteDto, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
18
30
  /**
19
31
  * Creates or Updates Shared Data Model
20
32
  * @param body The request body
@@ -27,6 +39,13 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
27
39
  * @throws {ProblemDetails} error when the service returns a 500 status code
28
40
  */
29
41
  post(body: UntypedNode, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UntypedNode | undefined>;
42
+ /**
43
+ * Deletes Shared Data Model
44
+ * @param body The request body
45
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
+ * @returns {RequestInformation}
47
+ */
48
+ toDeleteRequestInformation(body: SharedDataDeleteDto, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
30
49
  /**
31
50
  * Creates or Updates Shared Data Model
32
51
  * @param body The request body
@@ -32,6 +32,21 @@ exports.WithEntityTypeItemRequestBuilderNavigationMetadata = {
32
32
  * Metadata for all the requests in the request builder.
33
33
  */
34
34
  exports.WithEntityTypeItemRequestBuilderRequestsMetadata = {
35
+ delete: {
36
+ uriTemplate: exports.WithEntityTypeItemRequestBuilderUriTemplate,
37
+ responseBodyContentType: "application/problem+json",
38
+ errorMappings: {
39
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
40
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
41
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
42
+ 409: index_js_1.createProblemDetailsFromDiscriminatorValue,
43
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
44
+ },
45
+ adapterMethodName: "sendNoResponseContent",
46
+ requestBodyContentType: "application/json",
47
+ requestBodySerializer: index_js_1.serializeSharedDataDeleteDto,
48
+ requestInformationContentSetMethod: "setContentFromParsable",
49
+ },
35
50
  post: {
36
51
  uriTemplate: exports.WithEntityTypeItemRequestBuilderUriTemplate,
37
52
  responseBodyContentType: "application/json",
@@ -1,4 +1,4 @@
1
- import { type ProfileDto, type ProfileIdDto } from '../../../models/index.js';
1
+ import { type DeleteProfileRequestDto, type ProfileDto, type ProfileIdDto } from '../../../models/index.js';
2
2
  import { type CopyRequestBuilder } from './copy/index.js';
3
3
  import { type CurrentRequestBuilder } from './current/index.js';
4
4
  import { type TestTypeMappingRequestBuilder } from './testTypeMapping/index.js';
@@ -24,6 +24,18 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
24
24
  * The validate property
25
25
  */
26
26
  get validate(): ValidateRequestBuilder;
27
+ /**
28
+ * Copy profile and sets as current
29
+ * @param body The request body
30
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
+ * @returns {Promise<ProfileDto>}
32
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
33
+ * @throws {ProblemDetails} error when the service returns a 401 status code
34
+ * @throws {ProblemDetails} error when the service returns a 404 status code
35
+ * @throws {ProblemDetails} error when the service returns a 409 status code
36
+ * @throws {ProblemDetails} error when the service returns a 500 status code
37
+ */
38
+ delete(body: DeleteProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProfileDto | undefined>;
27
39
  /**
28
40
  * Get settings profile
29
41
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -47,6 +59,13 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
47
59
  * @throws {ProblemDetails} error when the service returns a 500 status code
48
60
  */
49
61
  put(body: ProfileDto, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProfileDto | undefined>;
62
+ /**
63
+ * Copy profile and sets as current
64
+ * @param body The request body
65
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
66
+ * @returns {RequestInformation}
67
+ */
68
+ toDeleteRequestInformation(body: DeleteProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
50
69
  /**
51
70
  * Get settings profile
52
71
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -39,6 +39,22 @@ exports.ProfileRequestBuilderNavigationMetadata = {
39
39
  * Metadata for all the requests in the request builder.
40
40
  */
41
41
  exports.ProfileRequestBuilderRequestsMetadata = {
42
+ delete: {
43
+ uriTemplate: exports.ProfileRequestBuilderUriTemplate,
44
+ responseBodyContentType: "application/json",
45
+ errorMappings: {
46
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
47
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
48
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
49
+ 409: index_js_1.createProblemDetailsFromDiscriminatorValue,
50
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
51
+ },
52
+ adapterMethodName: "send",
53
+ responseBodyFactory: index_js_1.createProfileDtoFromDiscriminatorValue,
54
+ requestBodyContentType: "application/json",
55
+ requestBodySerializer: index_js_1.serializeDeleteProfileRequestDto,
56
+ requestInformationContentSetMethod: "setContentFromParsable",
57
+ },
42
58
  get: {
43
59
  uriTemplate: exports.ProfileRequestBuilderUriTemplate,
44
60
  responseBodyContentType: "application/json",
@@ -11,6 +11,12 @@ export interface CopyCurrentProfileRequestDto extends Parsable {
11
11
  * @returns {CopyCurrentProfileRequestDto}
12
12
  */
13
13
  export declare function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
14
+ /**
15
+ * Creates a new instance of the appropriate class based on discriminator value
16
+ * @param parseNode The parse node to use to read the discriminator value and create the object
17
+ * @returns {DeleteProfileRequestDto}
18
+ */
19
+ export declare function createDeleteProfileRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
14
20
  /**
15
21
  * Creates a new instance of the appropriate class based on discriminator value
16
22
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -95,6 +101,12 @@ export declare function createSharedDataCreateAttachmentResponseDtoFromDiscrimin
95
101
  * @returns {SharedDataCreateAttachmentResponseItemDto}
96
102
  */
97
103
  export declare function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
104
+ /**
105
+ * Creates a new instance of the appropriate class based on discriminator value
106
+ * @param parseNode The parse node to use to read the discriminator value and create the object
107
+ * @returns {SharedDataDeleteDto}
108
+ */
109
+ export declare function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
98
110
  /**
99
111
  * Creates a new instance of the appropriate class based on discriminator value
100
112
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -137,11 +149,26 @@ export declare function createValidatedProfileDtoFromDiscriminatorValue(parseNod
137
149
  * @returns {ValidatedTypeMappingDto}
138
150
  */
139
151
  export declare function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
152
+ export interface DeleteProfileRequestDto extends Parsable {
153
+ /**
154
+ * The forceDelete property
155
+ */
156
+ forceDelete?: boolean | null;
157
+ /**
158
+ * The profileId property
159
+ */
160
+ profileId?: string | null;
161
+ }
140
162
  /**
141
163
  * The deserialization information for the current model
142
164
  * @returns {Record<string, (node: ParseNode) => void>}
143
165
  */
144
166
  export declare function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRequestDto?: Partial<CopyCurrentProfileRequestDto> | undefined): Record<string, (node: ParseNode) => void>;
167
+ /**
168
+ * The deserialization information for the current model
169
+ * @returns {Record<string, (node: ParseNode) => void>}
170
+ */
171
+ export declare function deserializeIntoDeleteProfileRequestDto(deleteProfileRequestDto?: Partial<DeleteProfileRequestDto> | undefined): Record<string, (node: ParseNode) => void>;
145
172
  /**
146
173
  * The deserialization information for the current model
147
174
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -212,6 +239,11 @@ export declare function deserializeIntoSharedDataCreateAttachmentResponseDto(sha
212
239
  * @returns {Record<string, (node: ParseNode) => void>}
213
240
  */
214
241
  export declare function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCreateAttachmentResponseItemDto?: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined): Record<string, (node: ParseNode) => void>;
242
+ /**
243
+ * The deserialization information for the current model
244
+ * @returns {Record<string, (node: ParseNode) => void>}
245
+ */
246
+ export declare function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto?: Partial<SharedDataDeleteDto> | undefined): Record<string, (node: ParseNode) => void>;
215
247
  /**
216
248
  * The deserialization information for the current model
217
249
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -270,6 +302,10 @@ export interface FieldMappingDto extends Parsable {
270
302
  * The id property
271
303
  */
272
304
  id?: string | null;
305
+ /**
306
+ * The kind property
307
+ */
308
+ kind?: FieldMappingKind | null;
273
309
  /**
274
310
  * The source property
275
311
  */
@@ -283,6 +319,7 @@ export interface FieldMappingDto extends Parsable {
283
319
  */
284
320
  type?: string | null;
285
321
  }
322
+ export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
286
323
  export interface GetEntityTypesDto extends Parsable {
287
324
  /**
288
325
  * The sdmTypes property
@@ -379,6 +416,11 @@ export interface SdmTypeDefDto extends Parsable {
379
416
  * @param writer Serialization writer to use to serialize this model
380
417
  */
381
418
  export declare function serializeCopyCurrentProfileRequestDto(writer: SerializationWriter, copyCurrentProfileRequestDto?: Partial<CopyCurrentProfileRequestDto> | undefined | null): void;
419
+ /**
420
+ * Serializes information the current object
421
+ * @param writer Serialization writer to use to serialize this model
422
+ */
423
+ export declare function serializeDeleteProfileRequestDto(writer: SerializationWriter, deleteProfileRequestDto?: Partial<DeleteProfileRequestDto> | undefined | null): void;
382
424
  /**
383
425
  * Serializes information the current object
384
426
  * @param writer Serialization writer to use to serialize this model
@@ -449,6 +491,11 @@ export declare function serializeSharedDataCreateAttachmentResponseDto(writer: S
449
491
  * @param writer Serialization writer to use to serialize this model
450
492
  */
451
493
  export declare function serializeSharedDataCreateAttachmentResponseItemDto(writer: SerializationWriter, sharedDataCreateAttachmentResponseItemDto?: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined | null): void;
494
+ /**
495
+ * Serializes information the current object
496
+ * @param writer Serialization writer to use to serialize this model
497
+ */
498
+ export declare function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto?: Partial<SharedDataDeleteDto> | undefined | null): void;
452
499
  /**
453
500
  * Serializes information the current object
454
501
  * @param writer Serialization writer to use to serialize this model
@@ -510,6 +557,12 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
510
557
  */
511
558
  uri?: string | null;
512
559
  }
560
+ export interface SharedDataDeleteDto extends Parsable {
561
+ /**
562
+ * The id property
563
+ */
564
+ id?: number | null;
565
+ }
513
566
  export interface TestTypeMappingDto extends Parsable {
514
567
  /**
515
568
  * The entityType property
@@ -625,6 +678,11 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
625
678
  validationState?: ValidationState | null;
626
679
  }
627
680
  export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
681
+ export declare const FieldMappingKindObject: {
682
+ readonly DefaultEscaped: "Default";
683
+ readonly Custom: "Custom";
684
+ readonly Empty: "Empty";
685
+ };
628
686
  export declare const RefKindObject: {
629
687
  readonly Single: "Single";
630
688
  readonly Collection: "Collection";
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidationStateObject = exports.RefKindObject = void 0;
3
+ exports.ValidationStateObject = exports.RefKindObject = exports.FieldMappingKindObject = void 0;
4
4
  exports.createCopyCurrentProfileRequestDtoFromDiscriminatorValue = createCopyCurrentProfileRequestDtoFromDiscriminatorValue;
5
+ exports.createDeleteProfileRequestDtoFromDiscriminatorValue = createDeleteProfileRequestDtoFromDiscriminatorValue;
5
6
  exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
6
7
  exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromDiscriminatorValue;
7
8
  exports.createGetEntityTypesDtoFromDiscriminatorValue = createGetEntityTypesDtoFromDiscriminatorValue;
@@ -16,6 +17,7 @@ exports.createSdmTypeDefDtoFromDiscriminatorValue = createSdmTypeDefDtoFromDiscr
16
17
  exports.createSetCurrentProfileRequestDtoFromDiscriminatorValue = createSetCurrentProfileRequestDtoFromDiscriminatorValue;
17
18
  exports.createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue;
18
19
  exports.createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue;
20
+ exports.createSharedDataDeleteDtoFromDiscriminatorValue = createSharedDataDeleteDtoFromDiscriminatorValue;
19
21
  exports.createTestTypeMappingDtoFromDiscriminatorValue = createTestTypeMappingDtoFromDiscriminatorValue;
20
22
  exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscriminatorValue;
21
23
  exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
@@ -24,6 +26,7 @@ exports.createValidatedFieldMappingDtoFromDiscriminatorValue = createValidatedFi
24
26
  exports.createValidatedProfileDtoFromDiscriminatorValue = createValidatedProfileDtoFromDiscriminatorValue;
25
27
  exports.createValidatedTypeMappingDtoFromDiscriminatorValue = createValidatedTypeMappingDtoFromDiscriminatorValue;
26
28
  exports.deserializeIntoCopyCurrentProfileRequestDto = deserializeIntoCopyCurrentProfileRequestDto;
29
+ exports.deserializeIntoDeleteProfileRequestDto = deserializeIntoDeleteProfileRequestDto;
27
30
  exports.deserializeIntoFieldDefDto = deserializeIntoFieldDefDto;
28
31
  exports.deserializeIntoFieldMappingDto = deserializeIntoFieldMappingDto;
29
32
  exports.deserializeIntoGetEntityTypesDto = deserializeIntoGetEntityTypesDto;
@@ -38,6 +41,7 @@ exports.deserializeIntoSdmTypeDefDto = deserializeIntoSdmTypeDefDto;
38
41
  exports.deserializeIntoSetCurrentProfileRequestDto = deserializeIntoSetCurrentProfileRequestDto;
39
42
  exports.deserializeIntoSharedDataCreateAttachmentResponseDto = deserializeIntoSharedDataCreateAttachmentResponseDto;
40
43
  exports.deserializeIntoSharedDataCreateAttachmentResponseItemDto = deserializeIntoSharedDataCreateAttachmentResponseItemDto;
44
+ exports.deserializeIntoSharedDataDeleteDto = deserializeIntoSharedDataDeleteDto;
41
45
  exports.deserializeIntoTestTypeMappingDto = deserializeIntoTestTypeMappingDto;
42
46
  exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
43
47
  exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
@@ -46,6 +50,7 @@ exports.deserializeIntoValidatedFieldMappingDto = deserializeIntoValidatedFieldM
46
50
  exports.deserializeIntoValidatedProfileDto = deserializeIntoValidatedProfileDto;
47
51
  exports.deserializeIntoValidatedTypeMappingDto = deserializeIntoValidatedTypeMappingDto;
48
52
  exports.serializeCopyCurrentProfileRequestDto = serializeCopyCurrentProfileRequestDto;
53
+ exports.serializeDeleteProfileRequestDto = serializeDeleteProfileRequestDto;
49
54
  exports.serializeFieldDefDto = serializeFieldDefDto;
50
55
  exports.serializeFieldMappingDto = serializeFieldMappingDto;
51
56
  exports.serializeGetEntityTypesDto = serializeGetEntityTypesDto;
@@ -60,6 +65,7 @@ exports.serializeSdmTypeDefDto = serializeSdmTypeDefDto;
60
65
  exports.serializeSetCurrentProfileRequestDto = serializeSetCurrentProfileRequestDto;
61
66
  exports.serializeSharedDataCreateAttachmentResponseDto = serializeSharedDataCreateAttachmentResponseDto;
62
67
  exports.serializeSharedDataCreateAttachmentResponseItemDto = serializeSharedDataCreateAttachmentResponseItemDto;
68
+ exports.serializeSharedDataDeleteDto = serializeSharedDataDeleteDto;
63
69
  exports.serializeTestTypeMappingDto = serializeTestTypeMappingDto;
64
70
  exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
65
71
  exports.serializeTypeMappingDto = serializeTypeMappingDto;
@@ -76,6 +82,15 @@ exports.serializeValidatedTypeMappingDto = serializeValidatedTypeMappingDto;
76
82
  function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode) {
77
83
  return deserializeIntoCopyCurrentProfileRequestDto;
78
84
  }
85
+ /**
86
+ * Creates a new instance of the appropriate class based on discriminator value
87
+ * @param parseNode The parse node to use to read the discriminator value and create the object
88
+ * @returns {DeleteProfileRequestDto}
89
+ */
90
+ // @ts-ignore
91
+ function createDeleteProfileRequestDtoFromDiscriminatorValue(parseNode) {
92
+ return deserializeIntoDeleteProfileRequestDto;
93
+ }
79
94
  /**
80
95
  * Creates a new instance of the appropriate class based on discriminator value
81
96
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -214,6 +229,15 @@ function createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue(parse
214
229
  function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode) {
215
230
  return deserializeIntoSharedDataCreateAttachmentResponseItemDto;
216
231
  }
232
+ /**
233
+ * Creates a new instance of the appropriate class based on discriminator value
234
+ * @param parseNode The parse node to use to read the discriminator value and create the object
235
+ * @returns {SharedDataDeleteDto}
236
+ */
237
+ // @ts-ignore
238
+ function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode) {
239
+ return deserializeIntoSharedDataDeleteDto;
240
+ }
217
241
  /**
218
242
  * Creates a new instance of the appropriate class based on discriminator value
219
243
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -304,6 +328,17 @@ function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRequestDt
304
328
  * @returns {Record<string, (node: ParseNode) => void>}
305
329
  */
306
330
  // @ts-ignore
331
+ function deserializeIntoDeleteProfileRequestDto(deleteProfileRequestDto = {}) {
332
+ return {
333
+ "forceDelete": n => { deleteProfileRequestDto.forceDelete = n.getBooleanValue(); },
334
+ "profileId": n => { deleteProfileRequestDto.profileId = n.getStringValue(); },
335
+ };
336
+ }
337
+ /**
338
+ * The deserialization information for the current model
339
+ * @returns {Record<string, (node: ParseNode) => void>}
340
+ */
341
+ // @ts-ignore
307
342
  function deserializeIntoFieldDefDto(fieldDefDto = {}) {
308
343
  return {
309
344
  "expression": n => { fieldDefDto.expression = n.getStringValue(); },
@@ -320,6 +355,7 @@ function deserializeIntoFieldDefDto(fieldDefDto = {}) {
320
355
  function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
321
356
  return {
322
357
  "id": n => { fieldMappingDto.id = n.getStringValue(); },
358
+ "kind": n => { fieldMappingDto.kind = n.getEnumValue(exports.FieldMappingKindObject); },
323
359
  "source": n => { fieldMappingDto.source = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
324
360
  "target": n => { fieldMappingDto.target = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
325
361
  "$type": n => { fieldMappingDto.type = n.getStringValue(); },
@@ -459,6 +495,16 @@ function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCrea
459
495
  * @returns {Record<string, (node: ParseNode) => void>}
460
496
  */
461
497
  // @ts-ignore
498
+ function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto = {}) {
499
+ return {
500
+ "id": n => { sharedDataDeleteDto.id = n.getNumberValue(); },
501
+ };
502
+ }
503
+ /**
504
+ * The deserialization information for the current model
505
+ * @returns {Record<string, (node: ParseNode) => void>}
506
+ */
507
+ // @ts-ignore
462
508
  function deserializeIntoTestTypeMappingDto(testTypeMappingDto = {}) {
463
509
  return {
464
510
  "entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
@@ -557,6 +603,17 @@ function serializeCopyCurrentProfileRequestDto(writer, copyCurrentProfileRequest
557
603
  * @param writer Serialization writer to use to serialize this model
558
604
  */
559
605
  // @ts-ignore
606
+ function serializeDeleteProfileRequestDto(writer, deleteProfileRequestDto = {}) {
607
+ if (deleteProfileRequestDto) {
608
+ writer.writeBooleanValue("forceDelete", deleteProfileRequestDto.forceDelete);
609
+ writer.writeStringValue("profileId", deleteProfileRequestDto.profileId);
610
+ }
611
+ }
612
+ /**
613
+ * Serializes information the current object
614
+ * @param writer Serialization writer to use to serialize this model
615
+ */
616
+ // @ts-ignore
560
617
  function serializeFieldDefDto(writer, fieldDefDto = {}) {
561
618
  if (fieldDefDto) {
562
619
  writer.writeStringValue("expression", fieldDefDto.expression);
@@ -573,6 +630,7 @@ function serializeFieldDefDto(writer, fieldDefDto = {}) {
573
630
  function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
574
631
  if (fieldMappingDto) {
575
632
  writer.writeStringValue("id", fieldMappingDto.id);
633
+ writer.writeEnumValue("kind", fieldMappingDto.kind);
576
634
  writer.writeObjectValue("source", fieldMappingDto.source, serializeMappingFieldDefDto);
577
635
  writer.writeObjectValue("target", fieldMappingDto.target, serializeMappingFieldDefDto);
578
636
  writer.writeStringValue("$type", fieldMappingDto.type);
@@ -716,6 +774,16 @@ function serializeSharedDataCreateAttachmentResponseItemDto(writer, sharedDataCr
716
774
  * @param writer Serialization writer to use to serialize this model
717
775
  */
718
776
  // @ts-ignore
777
+ function serializeSharedDataDeleteDto(writer, sharedDataDeleteDto = {}) {
778
+ if (sharedDataDeleteDto) {
779
+ writer.writeNumberValue("id", sharedDataDeleteDto.id);
780
+ }
781
+ }
782
+ /**
783
+ * Serializes information the current object
784
+ * @param writer Serialization writer to use to serialize this model
785
+ */
786
+ // @ts-ignore
719
787
  function serializeTestTypeMappingDto(writer, testTypeMappingDto = {}) {
720
788
  if (testTypeMappingDto) {
721
789
  writer.writeStringValue("entityType", testTypeMappingDto.entityType);
@@ -802,6 +870,11 @@ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {})
802
870
  writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
803
871
  }
804
872
  }
873
+ exports.FieldMappingKindObject = {
874
+ DefaultEscaped: "Default",
875
+ Custom: "Custom",
876
+ Empty: "Empty",
877
+ };
805
878
  exports.RefKindObject = {
806
879
  Single: "Single",
807
880
  Collection: "Collection",
@@ -23,13 +23,23 @@ const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text"
23
23
  */
24
24
  // @ts-ignore
25
25
  function createTpSharedDataModelClient(requestAdapter) {
26
- (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_json_1.JsonSerializationWriterFactory);
27
- (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_text_1.TextSerializationWriterFactory);
28
- (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_form_1.FormSerializationWriterFactory);
29
- (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_multipart_1.MultipartSerializationWriterFactory);
30
- (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_json_1.JsonParseNodeFactory);
31
- (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_text_1.TextParseNodeFactory);
32
- (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_form_1.FormParseNodeFactory);
26
+ if (requestAdapter === undefined) {
27
+ throw new Error("requestAdapter cannot be undefined");
28
+ }
29
+ const serializationWriterFactory = requestAdapter.getSerializationWriterFactory();
30
+ const parseNodeFactoryRegistry = requestAdapter.getParseNodeFactory();
31
+ const backingStoreFactory = requestAdapter.getBackingStoreFactory();
32
+ if (parseNodeFactoryRegistry.registerDefaultDeserializer) {
33
+ parseNodeFactoryRegistry.registerDefaultDeserializer(kiota_serialization_json_1.JsonParseNodeFactory, backingStoreFactory);
34
+ parseNodeFactoryRegistry.registerDefaultDeserializer(kiota_serialization_text_1.TextParseNodeFactory, backingStoreFactory);
35
+ parseNodeFactoryRegistry.registerDefaultDeserializer(kiota_serialization_form_1.FormParseNodeFactory, backingStoreFactory);
36
+ }
37
+ if (serializationWriterFactory.registerDefaultSerializer) {
38
+ serializationWriterFactory.registerDefaultSerializer(kiota_serialization_json_1.JsonSerializationWriterFactory);
39
+ serializationWriterFactory.registerDefaultSerializer(kiota_serialization_text_1.TextSerializationWriterFactory);
40
+ serializationWriterFactory.registerDefaultSerializer(kiota_serialization_form_1.FormSerializationWriterFactory);
41
+ serializationWriterFactory.registerDefaultSerializer(kiota_serialization_multipart_1.MultipartSerializationWriterFactory);
42
+ }
33
43
  const pathParameters = {
34
44
  "baseurl": requestAdapter.baseUrl,
35
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "typescript": "^5.7.3"
16
16
  },
17
17
  "dependencies": {
18
- "@microsoft/kiota-bundle": "^1.0.0-preview.80"
18
+ "@microsoft/kiota-bundle": "^1.0.0-preview.96"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public"
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../models/index.js';
5
+ import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, serializeSharedDataDeleteDto, type HttpValidationProblemDetails, type ProblemDetails, type SharedDataDeleteDto } from '../../../models/index.js';
6
6
  // @ts-ignore
7
7
  import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
8
8
  // @ts-ignore
@@ -24,6 +24,17 @@ 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>;
27
38
  /**
28
39
  * Creates or Updates Shared Data Model
29
40
  * @param body The request body
@@ -36,6 +47,13 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
36
47
  * @throws {ProblemDetails} error when the service returns a 500 status code
37
48
  */
38
49
  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;
39
57
  /**
40
58
  * Creates or Updates Shared Data Model
41
59
  * @param body The request body
@@ -64,6 +82,21 @@ export const WithEntityTypeItemRequestBuilderNavigationMetadata: Record<Exclude<
64
82
  * Metadata for all the requests in the request builder.
65
83
  */
66
84
  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
+ },
67
100
  post: {
68
101
  uriTemplate: WithEntityTypeItemRequestBuilderUriTemplate,
69
102
  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, serializeProfileDto, type HttpValidationProblemDetails, type ProblemDetails, type ProfileDto, type ProfileIdDto } from '../../../models/index.js';
5
+ import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createProfileDtoFromDiscriminatorValue, createProfileIdDtoFromDiscriminatorValue, serializeDeleteProfileRequestDto, serializeProfileDto, type DeleteProfileRequestDto, 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,6 +34,18 @@ 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>;
37
49
  /**
38
50
  * Get settings profile
39
51
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -57,6 +69,13 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
57
69
  * @throws {ProblemDetails} error when the service returns a 500 status code
58
70
  */
59
71
  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;
60
79
  /**
61
80
  * Get settings profile
62
81
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -96,6 +115,22 @@ export const ProfileRequestBuilderNavigationMetadata: Record<Exclude<keyof Profi
96
115
  * Metadata for all the requests in the request builder.
97
116
  */
98
117
  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
+ },
99
134
  get: {
100
135
  uriTemplate: ProfileRequestBuilderUriTemplate,
101
136
  responseBodyContentType: "application/json",
@@ -1,8 +1,8 @@
1
1
  {
2
- "descriptionHash": "CFFE7D02EEF03A9F32980BBCB464959DE8680F17D75782FD8F7D4058F1FD30830E1BB2B8D0BD7F30EC76DA6ADEFF41B3F34A593D2B95A380100E0FFA1C9D65F0",
2
+ "descriptionHash": "3818B63F2B715D8E98A732F4DE5AC7A58B1DE85EE77D1BB48E39C31B21F2ECDA58FC277EC2A7E897F138F9F1C799ED842BA50C00384A30D07CC3E9F009032A16",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
- "kiotaVersion": "1.22.3",
5
+ "kiotaVersion": "1.27.0",
6
6
  "clientClassName": "TpSharedDataModelClient",
7
7
  "typeAccessModifier": "Public",
8
8
  "clientNamespaceName": "Tp",