@targetprocess/shared-data-model-client 0.10.1-ci.2 → 0.10.1-ci.4

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,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
@@ -143,11 +149,26 @@ export declare function createValidatedProfileDtoFromDiscriminatorValue(parseNod
143
149
  * @returns {ValidatedTypeMappingDto}
144
150
  */
145
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
+ }
146
162
  /**
147
163
  * The deserialization information for the current model
148
164
  * @returns {Record<string, (node: ParseNode) => void>}
149
165
  */
150
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>;
151
172
  /**
152
173
  * The deserialization information for the current model
153
174
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -281,6 +302,10 @@ export interface FieldMappingDto extends Parsable {
281
302
  * The id property
282
303
  */
283
304
  id?: string | null;
305
+ /**
306
+ * The kind property
307
+ */
308
+ kind?: FieldMappingKind | null;
284
309
  /**
285
310
  * The source property
286
311
  */
@@ -294,6 +319,7 @@ export interface FieldMappingDto extends Parsable {
294
319
  */
295
320
  type?: string | null;
296
321
  }
322
+ export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
297
323
  export interface GetEntityTypesDto extends Parsable {
298
324
  /**
299
325
  * The sdmTypes property
@@ -390,6 +416,11 @@ export interface SdmTypeDefDto extends Parsable {
390
416
  * @param writer Serialization writer to use to serialize this model
391
417
  */
392
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;
393
424
  /**
394
425
  * Serializes information the current object
395
426
  * @param writer Serialization writer to use to serialize this model
@@ -647,6 +678,11 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
647
678
  validationState?: ValidationState | null;
648
679
  }
649
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
+ };
650
686
  export declare const RefKindObject: {
651
687
  readonly Single: "Single";
652
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;
@@ -25,6 +26,7 @@ exports.createValidatedFieldMappingDtoFromDiscriminatorValue = createValidatedFi
25
26
  exports.createValidatedProfileDtoFromDiscriminatorValue = createValidatedProfileDtoFromDiscriminatorValue;
26
27
  exports.createValidatedTypeMappingDtoFromDiscriminatorValue = createValidatedTypeMappingDtoFromDiscriminatorValue;
27
28
  exports.deserializeIntoCopyCurrentProfileRequestDto = deserializeIntoCopyCurrentProfileRequestDto;
29
+ exports.deserializeIntoDeleteProfileRequestDto = deserializeIntoDeleteProfileRequestDto;
28
30
  exports.deserializeIntoFieldDefDto = deserializeIntoFieldDefDto;
29
31
  exports.deserializeIntoFieldMappingDto = deserializeIntoFieldMappingDto;
30
32
  exports.deserializeIntoGetEntityTypesDto = deserializeIntoGetEntityTypesDto;
@@ -48,6 +50,7 @@ exports.deserializeIntoValidatedFieldMappingDto = deserializeIntoValidatedFieldM
48
50
  exports.deserializeIntoValidatedProfileDto = deserializeIntoValidatedProfileDto;
49
51
  exports.deserializeIntoValidatedTypeMappingDto = deserializeIntoValidatedTypeMappingDto;
50
52
  exports.serializeCopyCurrentProfileRequestDto = serializeCopyCurrentProfileRequestDto;
53
+ exports.serializeDeleteProfileRequestDto = serializeDeleteProfileRequestDto;
51
54
  exports.serializeFieldDefDto = serializeFieldDefDto;
52
55
  exports.serializeFieldMappingDto = serializeFieldMappingDto;
53
56
  exports.serializeGetEntityTypesDto = serializeGetEntityTypesDto;
@@ -79,6 +82,15 @@ exports.serializeValidatedTypeMappingDto = serializeValidatedTypeMappingDto;
79
82
  function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode) {
80
83
  return deserializeIntoCopyCurrentProfileRequestDto;
81
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
+ }
82
94
  /**
83
95
  * Creates a new instance of the appropriate class based on discriminator value
84
96
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -316,6 +328,17 @@ function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRequestDt
316
328
  * @returns {Record<string, (node: ParseNode) => void>}
317
329
  */
318
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
319
342
  function deserializeIntoFieldDefDto(fieldDefDto = {}) {
320
343
  return {
321
344
  "expression": n => { fieldDefDto.expression = n.getStringValue(); },
@@ -332,6 +355,7 @@ function deserializeIntoFieldDefDto(fieldDefDto = {}) {
332
355
  function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
333
356
  return {
334
357
  "id": n => { fieldMappingDto.id = n.getStringValue(); },
358
+ "kind": n => { fieldMappingDto.kind = n.getEnumValue(exports.FieldMappingKindObject); },
335
359
  "source": n => { fieldMappingDto.source = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
336
360
  "target": n => { fieldMappingDto.target = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
337
361
  "$type": n => { fieldMappingDto.type = n.getStringValue(); },
@@ -579,6 +603,17 @@ function serializeCopyCurrentProfileRequestDto(writer, copyCurrentProfileRequest
579
603
  * @param writer Serialization writer to use to serialize this model
580
604
  */
581
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
582
617
  function serializeFieldDefDto(writer, fieldDefDto = {}) {
583
618
  if (fieldDefDto) {
584
619
  writer.writeStringValue("expression", fieldDefDto.expression);
@@ -595,6 +630,7 @@ function serializeFieldDefDto(writer, fieldDefDto = {}) {
595
630
  function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
596
631
  if (fieldMappingDto) {
597
632
  writer.writeStringValue("id", fieldMappingDto.id);
633
+ writer.writeEnumValue("kind", fieldMappingDto.kind);
598
634
  writer.writeObjectValue("source", fieldMappingDto.source, serializeMappingFieldDefDto);
599
635
  writer.writeObjectValue("target", fieldMappingDto.target, serializeMappingFieldDefDto);
600
636
  writer.writeStringValue("$type", fieldMappingDto.type);
@@ -834,6 +870,11 @@ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {})
834
870
  writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
835
871
  }
836
872
  }
873
+ exports.FieldMappingKindObject = {
874
+ DefaultEscaped: "Default",
875
+ Custom: "Custom",
876
+ Empty: "Empty",
877
+ };
837
878
  exports.RefKindObject = {
838
879
  Single: "Single",
839
880
  Collection: "Collection",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "0.10.1-ci.2",
3
+ "version": "0.10.1-ci.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "76C172775C0D37597A4FB4B46D2E1941CC6271183637E343369100313658FF487BD6378EA50614813E0A73A3FB8C160F7270FEA403440B67695775867AD424D4",
2
+ "descriptionHash": "A3B6FE43079F2278067B90C7EF467437EB1810CB12831E352B33CCF1AD18EFB00C3A2A91B0E621C7EA9D17042FB2502ACD4FA350D027D8D8E572F44B090FFBBE",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.27.0",
@@ -19,6 +19,15 @@ 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
+ }
22
31
  /**
23
32
  * Creates a new instance of the appropriate class based on discriminator value
24
33
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -239,6 +248,16 @@ export function createValidatedProfileDtoFromDiscriminatorValue(parseNode: Parse
239
248
  export function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
240
249
  return deserializeIntoValidatedTypeMappingDto;
241
250
  }
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
+ }
242
261
  /**
243
262
  * The deserialization information for the current model
244
263
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -254,6 +273,17 @@ export function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRe
254
273
  * @returns {Record<string, (node: ParseNode) => void>}
255
274
  */
256
275
  // @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
257
287
  export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
258
288
  return {
259
289
  "expression": n => { fieldDefDto.expression = n.getStringValue(); },
@@ -270,6 +300,7 @@ export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | u
270
300
  export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
271
301
  return {
272
302
  "id": n => { fieldMappingDto.id = n.getStringValue(); },
303
+ "kind": n => { fieldMappingDto.kind = n.getEnumValue<FieldMappingKind>(FieldMappingKindObject); },
273
304
  "source": n => { fieldMappingDto.source = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
274
305
  "target": n => { fieldMappingDto.target = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
275
306
  "$type": n => { fieldMappingDto.type = n.getStringValue(); },
@@ -526,6 +557,10 @@ export interface FieldMappingDto extends Parsable {
526
557
  * The id property
527
558
  */
528
559
  id?: string | null;
560
+ /**
561
+ * The kind property
562
+ */
563
+ kind?: FieldMappingKind | null;
529
564
  /**
530
565
  * The source property
531
566
  */
@@ -539,6 +574,7 @@ export interface FieldMappingDto extends Parsable {
539
574
  */
540
575
  type?: string | null;
541
576
  }
577
+ export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
542
578
  export interface GetEntityTypesDto extends Parsable {
543
579
  /**
544
580
  * The sdmTypes property
@@ -645,6 +681,17 @@ export function serializeCopyCurrentProfileRequestDto(writer: SerializationWrite
645
681
  * @param writer Serialization writer to use to serialize this model
646
682
  */
647
683
  // @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
648
695
  export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: Partial<FieldDefDto> | undefined | null = {}) : void {
649
696
  if (fieldDefDto) {
650
697
  writer.writeStringValue("expression", fieldDefDto.expression);
@@ -661,6 +708,7 @@ export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: P
661
708
  export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}) : void {
662
709
  if (fieldMappingDto) {
663
710
  writer.writeStringValue("id", fieldMappingDto.id);
711
+ writer.writeEnumValue<FieldMappingKind>("kind", fieldMappingDto.kind);
664
712
  writer.writeObjectValue<MappingFieldDefDto>("source", fieldMappingDto.source, serializeMappingFieldDefDto);
665
713
  writer.writeObjectValue<MappingFieldDefDto>("target", fieldMappingDto.target, serializeMappingFieldDefDto);
666
714
  writer.writeStringValue("$type", fieldMappingDto.type);
@@ -1047,6 +1095,11 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
1047
1095
  validationState?: ValidationState | null;
1048
1096
  }
1049
1097
  export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
1098
+ export const FieldMappingKindObject = {
1099
+ DefaultEscaped: "Default",
1100
+ Custom: "Custom",
1101
+ Empty: "Empty",
1102
+ } as const;
1050
1103
  export const RefKindObject = {
1051
1104
  Single: "Single",
1052
1105
  Collection: "Collection",
package/src/v1.json CHANGED
@@ -1226,6 +1226,104 @@
1226
1226
  "OAuth2": []
1227
1227
  }
1228
1228
  ]
1229
+ },
1230
+ "delete": {
1231
+ "tags": [
1232
+ "Settings"
1233
+ ],
1234
+ "summary": "Copy profile and sets as current",
1235
+ "operationId": "DeleteProfileEndpoint",
1236
+ "requestBody": {
1237
+ "x-name": "DeleteProfileRequestDto",
1238
+ "description": "",
1239
+ "content": {
1240
+ "*/*": {
1241
+ "schema": {
1242
+ "$ref": "#/components/schemas/DeleteProfileRequestDto"
1243
+ }
1244
+ },
1245
+ "application/json": {
1246
+ "schema": {
1247
+ "$ref": "#/components/schemas/DeleteProfileRequestDto"
1248
+ }
1249
+ }
1250
+ },
1251
+ "required": true,
1252
+ "x-position": 1
1253
+ },
1254
+ "responses": {
1255
+ "400": {
1256
+ "description": "Validation error",
1257
+ "content": {
1258
+ "application/problem+json": {
1259
+ "schema": {
1260
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
1261
+ }
1262
+ }
1263
+ }
1264
+ },
1265
+ "401": {
1266
+ "description": "Unauthorized",
1267
+ "content": {
1268
+ "application/problem+json": {
1269
+ "schema": {
1270
+ "$ref": "#/components/schemas/ProblemDetails"
1271
+ }
1272
+ }
1273
+ }
1274
+ },
1275
+ "404": {
1276
+ "description": "Unable to find resource",
1277
+ "content": {
1278
+ "application/problem+json": {
1279
+ "schema": {
1280
+ "$ref": "#/components/schemas/ProblemDetails"
1281
+ }
1282
+ }
1283
+ }
1284
+ },
1285
+ "409": {
1286
+ "description": "Conflict",
1287
+ "content": {
1288
+ "application/problem+json": {
1289
+ "schema": {
1290
+ "$ref": "#/components/schemas/ProblemDetails"
1291
+ }
1292
+ }
1293
+ }
1294
+ },
1295
+ "500": {
1296
+ "description": "Internal server error",
1297
+ "content": {
1298
+ "application/problem+json": {
1299
+ "schema": {
1300
+ "$ref": "#/components/schemas/ProblemDetails"
1301
+ }
1302
+ }
1303
+ }
1304
+ },
1305
+ "200": {
1306
+ "description": "Success",
1307
+ "content": {
1308
+ "application/json": {
1309
+ "schema": {
1310
+ "$ref": "#/components/schemas/ProfileDto"
1311
+ }
1312
+ }
1313
+ }
1314
+ },
1315
+ "403": {
1316
+ "description": "Forbidden"
1317
+ }
1318
+ },
1319
+ "security": [
1320
+ {
1321
+ "JWTBearerAuth": []
1322
+ },
1323
+ {
1324
+ "OAuth2": []
1325
+ }
1326
+ ]
1229
1327
  }
1230
1328
  },
1231
1329
  "/api/settings/profile/testTypeMapping": {
@@ -1979,23 +2077,23 @@
1979
2077
  "required": [
1980
2078
  "$type",
1981
2079
  "id",
1982
- "target"
2080
+ "source",
2081
+ "target",
2082
+ "kind"
1983
2083
  ],
1984
2084
  "properties": {
1985
2085
  "id": {
1986
2086
  "type": "string"
1987
2087
  },
1988
2088
  "source": {
1989
- "nullable": true,
1990
- "oneOf": [
1991
- {
1992
- "$ref": "#/components/schemas/MappingFieldDefDto"
1993
- }
1994
- ]
2089
+ "$ref": "#/components/schemas/MappingFieldDefDto"
1995
2090
  },
1996
2091
  "target": {
1997
2092
  "$ref": "#/components/schemas/MappingFieldDefDto"
1998
2093
  },
2094
+ "kind": {
2095
+ "$ref": "#/components/schemas/FieldMappingKind"
2096
+ },
1999
2097
  "$type": {
2000
2098
  "type": "string"
2001
2099
  }
@@ -2013,6 +2111,20 @@
2013
2111
  }
2014
2112
  }
2015
2113
  },
2114
+ "FieldMappingKind": {
2115
+ "type": "string",
2116
+ "description": "",
2117
+ "x-enumNames": [
2118
+ "Default",
2119
+ "Custom",
2120
+ "Empty"
2121
+ ],
2122
+ "enum": [
2123
+ "Default",
2124
+ "Custom",
2125
+ "Empty"
2126
+ ]
2127
+ },
2016
2128
  "ValidatedFieldMappingDto": {
2017
2129
  "allOf": [
2018
2130
  {
@@ -2206,6 +2318,23 @@
2206
2318
  "Collection"
2207
2319
  ]
2208
2320
  },
2321
+ "DeleteProfileRequestDto": {
2322
+ "type": "object",
2323
+ "additionalProperties": false,
2324
+ "required": [
2325
+ "profileId"
2326
+ ],
2327
+ "properties": {
2328
+ "profileId": {
2329
+ "type": "string",
2330
+ "format": "guid"
2331
+ },
2332
+ "forceDelete": {
2333
+ "type": "boolean",
2334
+ "nullable": true
2335
+ }
2336
+ }
2337
+ },
2209
2338
  "CopyCurrentProfileRequestDto": {
2210
2339
  "type": "object",
2211
2340
  "additionalProperties": false,