@targetprocess/shared-data-model-client 0.10.1-ci.3 → 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>}
@@ -395,6 +416,11 @@ export interface SdmTypeDefDto extends Parsable {
395
416
  * @param writer Serialization writer to use to serialize this model
396
417
  */
397
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;
398
424
  /**
399
425
  * Serializes information the current object
400
426
  * @param writer Serialization writer to use to serialize this model
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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(); },
@@ -580,6 +603,17 @@ function serializeCopyCurrentProfileRequestDto(writer, copyCurrentProfileRequest
580
603
  * @param writer Serialization writer to use to serialize this model
581
604
  */
582
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
583
617
  function serializeFieldDefDto(writer, fieldDefDto = {}) {
584
618
  if (fieldDefDto) {
585
619
  writer.writeStringValue("expression", fieldDefDto.expression);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "0.10.1-ci.3",
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": "7049FC522B770B4D7B9BD51D31B900E198757E17010B02EC046FB44E482A131A209E29BFB14D23E0F6CF62EC2B346E5C946AB0ED19A4DDFBDC774191175F78A6",
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(); },
@@ -651,6 +681,17 @@ export function serializeCopyCurrentProfileRequestDto(writer: SerializationWrite
651
681
  * @param writer Serialization writer to use to serialize this model
652
682
  */
653
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
654
695
  export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: Partial<FieldDefDto> | undefined | null = {}) : void {
655
696
  if (fieldDefDto) {
656
697
  writer.writeStringValue("expression", fieldDefDto.expression);
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": {
@@ -2220,6 +2318,23 @@
2220
2318
  "Collection"
2221
2319
  ]
2222
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
+ },
2223
2338
  "CopyCurrentProfileRequestDto": {
2224
2339
  "type": "object",
2225
2340
  "additionalProperties": false,