@targetprocess/shared-data-model-client 0.7.0-us817837-mapping.21 → 0.7.0-us817837-mapping.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/settings/profile/copy/index.d.ts +33 -0
- package/dist/api/settings/profile/copy/index.js +34 -0
- package/dist/api/settings/profile/index.d.ts +5 -0
- package/dist/api/settings/profile/index.js +11 -6
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +32 -0
- package/package.json +1 -1
- package/src/api/settings/profile/copy/index.ts +57 -0
- package/src/api/settings/profile/index.ts +9 -0
- package/src/kiota-lock.json +1 -1
- package/src/models/index.ts +35 -0
- package/src/v1.json +97 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type CopyCurrentProfileRequestDto, type ProfileDto } from '../../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/settings/profile/copy
|
|
5
|
+
*/
|
|
6
|
+
export interface CopyRequestBuilder extends BaseRequestBuilder<CopyRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Copy profile and sets as current
|
|
9
|
+
* @param body The request body
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @returns {Promise<ProfileDto>}
|
|
12
|
+
* @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
|
|
13
|
+
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
14
|
+
* @throws {ProblemDetails} error when the service returns a 404 status code
|
|
15
|
+
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
16
|
+
*/
|
|
17
|
+
post(body: CopyCurrentProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProfileDto | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Copy profile and sets as current
|
|
20
|
+
* @param body The request body
|
|
21
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
|
+
* @returns {RequestInformation}
|
|
23
|
+
*/
|
|
24
|
+
toPostRequestInformation(body: CopyCurrentProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Uri template for the request builder.
|
|
28
|
+
*/
|
|
29
|
+
export declare const CopyRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/copy";
|
|
30
|
+
/**
|
|
31
|
+
* Metadata for all the requests in the request builder.
|
|
32
|
+
*/
|
|
33
|
+
export declare const CopyRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CopyRequestBuilderRequestsMetadata = exports.CopyRequestBuilderUriTemplate = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const index_js_1 = require("../../../../models/index.js");
|
|
9
|
+
/**
|
|
10
|
+
* Uri template for the request builder.
|
|
11
|
+
*/
|
|
12
|
+
exports.CopyRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/copy";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for all the requests in the request builder.
|
|
15
|
+
*/
|
|
16
|
+
exports.CopyRequestBuilderRequestsMetadata = {
|
|
17
|
+
post: {
|
|
18
|
+
uriTemplate: exports.CopyRequestBuilderUriTemplate,
|
|
19
|
+
responseBodyContentType: "application/json",
|
|
20
|
+
errorMappings: {
|
|
21
|
+
400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
|
|
22
|
+
401: index_js_1.createProblemDetailsFromDiscriminatorValue,
|
|
23
|
+
404: index_js_1.createProblemDetailsFromDiscriminatorValue,
|
|
24
|
+
500: index_js_1.createProblemDetailsFromDiscriminatorValue,
|
|
25
|
+
},
|
|
26
|
+
adapterMethodName: "send",
|
|
27
|
+
responseBodyFactory: index_js_1.createProfileDtoFromDiscriminatorValue,
|
|
28
|
+
requestBodyContentType: "application/json",
|
|
29
|
+
requestBodySerializer: index_js_1.serializeCopyCurrentProfileRequestDto,
|
|
30
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/* tslint:enable */
|
|
34
|
+
/* eslint-enable */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ProfileDto, type ProfileIdDto } from '../../../models/index.js';
|
|
2
|
+
import { type CopyRequestBuilder } from './copy/index.js';
|
|
2
3
|
import { type CurrentRequestBuilder } from './current/index.js';
|
|
3
4
|
import { type TestTypeMappingRequestBuilder } from './testTypeMapping/index.js';
|
|
4
5
|
import { type ValidateRequestBuilder } from './validate/index.js';
|
|
@@ -7,6 +8,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
|
|
|
7
8
|
* Builds and executes requests for operations under /api/settings/profile
|
|
8
9
|
*/
|
|
9
10
|
export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequestBuilder> {
|
|
11
|
+
/**
|
|
12
|
+
* The copy property
|
|
13
|
+
*/
|
|
14
|
+
get copy(): CopyRequestBuilder;
|
|
10
15
|
/**
|
|
11
16
|
* The current property
|
|
12
17
|
*/
|
|
@@ -7,11 +7,13 @@ exports.ProfileRequestBuilderRequestsMetadata = exports.ProfileRequestBuilderNav
|
|
|
7
7
|
// @ts-ignore
|
|
8
8
|
const index_js_1 = require("../../../models/index.js");
|
|
9
9
|
// @ts-ignore
|
|
10
|
-
const index_js_2 = require("./
|
|
10
|
+
const index_js_2 = require("./copy/index.js");
|
|
11
11
|
// @ts-ignore
|
|
12
|
-
const index_js_3 = require("./
|
|
12
|
+
const index_js_3 = require("./current/index.js");
|
|
13
13
|
// @ts-ignore
|
|
14
|
-
const index_js_4 = require("./
|
|
14
|
+
const index_js_4 = require("./testTypeMapping/index.js");
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
const index_js_5 = require("./validate/index.js");
|
|
15
17
|
/**
|
|
16
18
|
* Uri template for the request builder.
|
|
17
19
|
*/
|
|
@@ -20,14 +22,17 @@ exports.ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
|
|
|
20
22
|
* Metadata for all the navigation properties in the request builder.
|
|
21
23
|
*/
|
|
22
24
|
exports.ProfileRequestBuilderNavigationMetadata = {
|
|
25
|
+
copy: {
|
|
26
|
+
requestsMetadata: index_js_2.CopyRequestBuilderRequestsMetadata,
|
|
27
|
+
},
|
|
23
28
|
current: {
|
|
24
|
-
requestsMetadata:
|
|
29
|
+
requestsMetadata: index_js_3.CurrentRequestBuilderRequestsMetadata,
|
|
25
30
|
},
|
|
26
31
|
testTypeMapping: {
|
|
27
|
-
requestsMetadata:
|
|
32
|
+
requestsMetadata: index_js_4.TestTypeMappingRequestBuilderRequestsMetadata,
|
|
28
33
|
},
|
|
29
34
|
validate: {
|
|
30
|
-
requestsMetadata:
|
|
35
|
+
requestsMetadata: index_js_5.ValidateRequestBuilderRequestsMetadata,
|
|
31
36
|
},
|
|
32
37
|
};
|
|
33
38
|
/**
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
export interface CopyCurrentProfileRequestDto extends Parsable {
|
|
3
|
+
/**
|
|
4
|
+
* The profileName property
|
|
5
|
+
*/
|
|
6
|
+
profileName?: string | null;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns {CopyCurrentProfileRequestDto}
|
|
12
|
+
*/
|
|
13
|
+
export declare function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
2
14
|
/**
|
|
3
15
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
16
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -125,6 +137,11 @@ export declare function createValidatedProfileDtoFromDiscriminatorValue(parseNod
|
|
|
125
137
|
* @returns {ValidatedTypeMappingDto}
|
|
126
138
|
*/
|
|
127
139
|
export declare function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
140
|
+
/**
|
|
141
|
+
* The deserialization information for the current model
|
|
142
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
143
|
+
*/
|
|
144
|
+
export declare function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRequestDto?: Partial<CopyCurrentProfileRequestDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
128
145
|
/**
|
|
129
146
|
* The deserialization information for the current model
|
|
130
147
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
@@ -357,6 +374,11 @@ export interface SdmTypeDefDto extends Parsable {
|
|
|
357
374
|
*/
|
|
358
375
|
name?: string | null;
|
|
359
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Serializes information the current object
|
|
379
|
+
* @param writer Serialization writer to use to serialize this model
|
|
380
|
+
*/
|
|
381
|
+
export declare function serializeCopyCurrentProfileRequestDto(writer: SerializationWriter, copyCurrentProfileRequestDto?: Partial<CopyCurrentProfileRequestDto> | undefined | null): void;
|
|
360
382
|
/**
|
|
361
383
|
* Serializes information the current object
|
|
362
384
|
* @param writer Serialization writer to use to serialize this model
|
package/dist/models/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ValidationStateObject = exports.RefKindObject = void 0;
|
|
4
|
+
exports.createCopyCurrentProfileRequestDtoFromDiscriminatorValue = createCopyCurrentProfileRequestDtoFromDiscriminatorValue;
|
|
4
5
|
exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
|
|
5
6
|
exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromDiscriminatorValue;
|
|
6
7
|
exports.createGetEntityTypesDtoFromDiscriminatorValue = createGetEntityTypesDtoFromDiscriminatorValue;
|
|
@@ -22,6 +23,7 @@ exports.createTypeMetaDefDtoFromDiscriminatorValue = createTypeMetaDefDtoFromDis
|
|
|
22
23
|
exports.createValidatedFieldMappingDtoFromDiscriminatorValue = createValidatedFieldMappingDtoFromDiscriminatorValue;
|
|
23
24
|
exports.createValidatedProfileDtoFromDiscriminatorValue = createValidatedProfileDtoFromDiscriminatorValue;
|
|
24
25
|
exports.createValidatedTypeMappingDtoFromDiscriminatorValue = createValidatedTypeMappingDtoFromDiscriminatorValue;
|
|
26
|
+
exports.deserializeIntoCopyCurrentProfileRequestDto = deserializeIntoCopyCurrentProfileRequestDto;
|
|
25
27
|
exports.deserializeIntoFieldDefDto = deserializeIntoFieldDefDto;
|
|
26
28
|
exports.deserializeIntoFieldMappingDto = deserializeIntoFieldMappingDto;
|
|
27
29
|
exports.deserializeIntoGetEntityTypesDto = deserializeIntoGetEntityTypesDto;
|
|
@@ -43,6 +45,7 @@ exports.deserializeIntoTypeMetaDefDto = deserializeIntoTypeMetaDefDto;
|
|
|
43
45
|
exports.deserializeIntoValidatedFieldMappingDto = deserializeIntoValidatedFieldMappingDto;
|
|
44
46
|
exports.deserializeIntoValidatedProfileDto = deserializeIntoValidatedProfileDto;
|
|
45
47
|
exports.deserializeIntoValidatedTypeMappingDto = deserializeIntoValidatedTypeMappingDto;
|
|
48
|
+
exports.serializeCopyCurrentProfileRequestDto = serializeCopyCurrentProfileRequestDto;
|
|
46
49
|
exports.serializeFieldDefDto = serializeFieldDefDto;
|
|
47
50
|
exports.serializeFieldMappingDto = serializeFieldMappingDto;
|
|
48
51
|
exports.serializeGetEntityTypesDto = serializeGetEntityTypesDto;
|
|
@@ -64,6 +67,15 @@ exports.serializeTypeMetaDefDto = serializeTypeMetaDefDto;
|
|
|
64
67
|
exports.serializeValidatedFieldMappingDto = serializeValidatedFieldMappingDto;
|
|
65
68
|
exports.serializeValidatedProfileDto = serializeValidatedProfileDto;
|
|
66
69
|
exports.serializeValidatedTypeMappingDto = serializeValidatedTypeMappingDto;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
72
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
73
|
+
* @returns {CopyCurrentProfileRequestDto}
|
|
74
|
+
*/
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode) {
|
|
77
|
+
return deserializeIntoCopyCurrentProfileRequestDto;
|
|
78
|
+
}
|
|
67
79
|
/**
|
|
68
80
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
69
81
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -282,6 +294,16 @@ function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode) {
|
|
|
282
294
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
283
295
|
*/
|
|
284
296
|
// @ts-ignore
|
|
297
|
+
function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRequestDto = {}) {
|
|
298
|
+
return {
|
|
299
|
+
"profileName": n => { copyCurrentProfileRequestDto.profileName = n.getStringValue(); },
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* The deserialization information for the current model
|
|
304
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
305
|
+
*/
|
|
306
|
+
// @ts-ignore
|
|
285
307
|
function deserializeIntoFieldDefDto(fieldDefDto = {}) {
|
|
286
308
|
return {
|
|
287
309
|
"expression": n => { fieldDefDto.expression = n.getStringValue(); },
|
|
@@ -524,6 +546,16 @@ function deserializeIntoValidatedTypeMappingDto(validatedTypeMappingDto = {}) {
|
|
|
524
546
|
* @param writer Serialization writer to use to serialize this model
|
|
525
547
|
*/
|
|
526
548
|
// @ts-ignore
|
|
549
|
+
function serializeCopyCurrentProfileRequestDto(writer, copyCurrentProfileRequestDto = {}) {
|
|
550
|
+
if (copyCurrentProfileRequestDto) {
|
|
551
|
+
writer.writeStringValue("profileName", copyCurrentProfileRequestDto.profileName);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Serializes information the current object
|
|
556
|
+
* @param writer Serialization writer to use to serialize this model
|
|
557
|
+
*/
|
|
558
|
+
// @ts-ignore
|
|
527
559
|
function serializeFieldDefDto(writer, fieldDefDto = {}) {
|
|
528
560
|
if (fieldDefDto) {
|
|
529
561
|
writer.writeStringValue("expression", fieldDefDto.expression);
|
package/package.json
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createProfileDtoFromDiscriminatorValue, serializeCopyCurrentProfileRequestDto, serializeProfileDto, type CopyCurrentProfileRequestDto, type HttpValidationProblemDetails, type ProblemDetails, type ProfileDto } from '../../../../models/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Builds and executes requests for operations under /api/settings/profile/copy
|
|
11
|
+
*/
|
|
12
|
+
export interface CopyRequestBuilder extends BaseRequestBuilder<CopyRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Copy profile and sets as current
|
|
15
|
+
* @param body The request body
|
|
16
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
17
|
+
* @returns {Promise<ProfileDto>}
|
|
18
|
+
* @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
|
|
19
|
+
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
20
|
+
* @throws {ProblemDetails} error when the service returns a 404 status code
|
|
21
|
+
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
22
|
+
*/
|
|
23
|
+
post(body: CopyCurrentProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfileDto | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Copy profile and sets as current
|
|
26
|
+
* @param body The request body
|
|
27
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
28
|
+
* @returns {RequestInformation}
|
|
29
|
+
*/
|
|
30
|
+
toPostRequestInformation(body: CopyCurrentProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Uri template for the request builder.
|
|
34
|
+
*/
|
|
35
|
+
export const CopyRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/copy";
|
|
36
|
+
/**
|
|
37
|
+
* Metadata for all the requests in the request builder.
|
|
38
|
+
*/
|
|
39
|
+
export const CopyRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
40
|
+
post: {
|
|
41
|
+
uriTemplate: CopyRequestBuilderUriTemplate,
|
|
42
|
+
responseBodyContentType: "application/json",
|
|
43
|
+
errorMappings: {
|
|
44
|
+
400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
45
|
+
401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
46
|
+
404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
47
|
+
500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
48
|
+
},
|
|
49
|
+
adapterMethodName: "send",
|
|
50
|
+
responseBodyFactory: createProfileDtoFromDiscriminatorValue,
|
|
51
|
+
requestBodyContentType: "application/json",
|
|
52
|
+
requestBodySerializer: serializeCopyCurrentProfileRequestDto,
|
|
53
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
/* tslint:enable */
|
|
57
|
+
/* eslint-enable */
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createProfileDtoFromDiscriminatorValue, createProfileIdDtoFromDiscriminatorValue, serializeProfileDto, type HttpValidationProblemDetails, type ProblemDetails, type ProfileDto, type ProfileIdDto } from '../../../models/index.js';
|
|
6
6
|
// @ts-ignore
|
|
7
|
+
import { CopyRequestBuilderRequestsMetadata, type CopyRequestBuilder } from './copy/index.js';
|
|
8
|
+
// @ts-ignore
|
|
7
9
|
import { CurrentRequestBuilderRequestsMetadata, type CurrentRequestBuilder } from './current/index.js';
|
|
8
10
|
// @ts-ignore
|
|
9
11
|
import { TestTypeMappingRequestBuilderRequestsMetadata, type TestTypeMappingRequestBuilder } from './testTypeMapping/index.js';
|
|
@@ -16,6 +18,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
|
|
|
16
18
|
* Builds and executes requests for operations under /api/settings/profile
|
|
17
19
|
*/
|
|
18
20
|
export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequestBuilder> {
|
|
21
|
+
/**
|
|
22
|
+
* The copy property
|
|
23
|
+
*/
|
|
24
|
+
get copy(): CopyRequestBuilder;
|
|
19
25
|
/**
|
|
20
26
|
* The current property
|
|
21
27
|
*/
|
|
@@ -71,6 +77,9 @@ export const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile
|
|
|
71
77
|
* Metadata for all the navigation properties in the request builder.
|
|
72
78
|
*/
|
|
73
79
|
export const ProfileRequestBuilderNavigationMetadata: Record<Exclude<keyof ProfileRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
|
|
80
|
+
copy: {
|
|
81
|
+
requestsMetadata: CopyRequestBuilderRequestsMetadata,
|
|
82
|
+
},
|
|
74
83
|
current: {
|
|
75
84
|
requestsMetadata: CurrentRequestBuilderRequestsMetadata,
|
|
76
85
|
},
|
package/src/kiota-lock.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "B18268856D7D4F0D0162417A7BB71E2617706FECAC0CF15C077BA82500F9F4AA37084AC61B4030F58484041773A2680F8E8D4BAB4FE08F1DF0BA509AD4C5D18D",
|
|
3
3
|
"descriptionLocation": "v1.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
5
|
"kiotaVersion": "1.22.3",
|
package/src/models/index.ts
CHANGED
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
6
6
|
|
|
7
|
+
export interface CopyCurrentProfileRequestDto extends Parsable {
|
|
8
|
+
/**
|
|
9
|
+
* The profileName property
|
|
10
|
+
*/
|
|
11
|
+
profileName?: string | null;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
15
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
16
|
+
* @returns {CopyCurrentProfileRequestDto}
|
|
17
|
+
*/
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
export function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
20
|
+
return deserializeIntoCopyCurrentProfileRequestDto;
|
|
21
|
+
}
|
|
7
22
|
/**
|
|
8
23
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
9
24
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -220,6 +235,16 @@ export function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode: P
|
|
|
220
235
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
221
236
|
*/
|
|
222
237
|
// @ts-ignore
|
|
238
|
+
export function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRequestDto: Partial<CopyCurrentProfileRequestDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
239
|
+
return {
|
|
240
|
+
"profileName": n => { copyCurrentProfileRequestDto.profileName = n.getStringValue(); },
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* The deserialization information for the current model
|
|
245
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
246
|
+
*/
|
|
247
|
+
// @ts-ignore
|
|
223
248
|
export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
224
249
|
return {
|
|
225
250
|
"expression": n => { fieldDefDto.expression = n.getStringValue(); },
|
|
@@ -590,6 +615,16 @@ export interface SdmTypeDefDto extends Parsable {
|
|
|
590
615
|
* @param writer Serialization writer to use to serialize this model
|
|
591
616
|
*/
|
|
592
617
|
// @ts-ignore
|
|
618
|
+
export function serializeCopyCurrentProfileRequestDto(writer: SerializationWriter, copyCurrentProfileRequestDto: Partial<CopyCurrentProfileRequestDto> | undefined | null = {}) : void {
|
|
619
|
+
if (copyCurrentProfileRequestDto) {
|
|
620
|
+
writer.writeStringValue("profileName", copyCurrentProfileRequestDto.profileName);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Serializes information the current object
|
|
625
|
+
* @param writer Serialization writer to use to serialize this model
|
|
626
|
+
*/
|
|
627
|
+
// @ts-ignore
|
|
593
628
|
export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: Partial<FieldDefDto> | undefined | null = {}) : void {
|
|
594
629
|
if (fieldDefDto) {
|
|
595
630
|
writer.writeStringValue("expression", fieldDefDto.expression);
|
package/src/v1.json
CHANGED
|
@@ -1095,6 +1095,91 @@
|
|
|
1095
1095
|
}
|
|
1096
1096
|
]
|
|
1097
1097
|
}
|
|
1098
|
+
},
|
|
1099
|
+
"/api/settings/profile/copy": {
|
|
1100
|
+
"post": {
|
|
1101
|
+
"tags": [
|
|
1102
|
+
"Settings"
|
|
1103
|
+
],
|
|
1104
|
+
"summary": "Copy profile and sets as current",
|
|
1105
|
+
"operationId": "CopyCurrentProfileEndpoint",
|
|
1106
|
+
"requestBody": {
|
|
1107
|
+
"x-name": "CopyCurrentProfileRequestDto",
|
|
1108
|
+
"description": "",
|
|
1109
|
+
"content": {
|
|
1110
|
+
"application/json": {
|
|
1111
|
+
"schema": {
|
|
1112
|
+
"$ref": "#/components/schemas/CopyCurrentProfileRequestDto"
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
"required": true,
|
|
1117
|
+
"x-position": 1
|
|
1118
|
+
},
|
|
1119
|
+
"responses": {
|
|
1120
|
+
"200": {
|
|
1121
|
+
"description": "Success",
|
|
1122
|
+
"content": {
|
|
1123
|
+
"application/json": {
|
|
1124
|
+
"schema": {
|
|
1125
|
+
"$ref": "#/components/schemas/ProfileDto"
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
"401": {
|
|
1131
|
+
"description": "Unauthorized",
|
|
1132
|
+
"content": {
|
|
1133
|
+
"application/problem+json": {
|
|
1134
|
+
"schema": {
|
|
1135
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
"403": {
|
|
1141
|
+
"description": "Forbidden"
|
|
1142
|
+
},
|
|
1143
|
+
"400": {
|
|
1144
|
+
"description": "Validation error",
|
|
1145
|
+
"content": {
|
|
1146
|
+
"application/problem+json": {
|
|
1147
|
+
"schema": {
|
|
1148
|
+
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
"500": {
|
|
1154
|
+
"description": "Internal server error",
|
|
1155
|
+
"content": {
|
|
1156
|
+
"application/problem+json": {
|
|
1157
|
+
"schema": {
|
|
1158
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
"404": {
|
|
1164
|
+
"description": "Unable to find resource",
|
|
1165
|
+
"content": {
|
|
1166
|
+
"application/problem+json": {
|
|
1167
|
+
"schema": {
|
|
1168
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
"security": [
|
|
1175
|
+
{
|
|
1176
|
+
"JWTBearerAuth": []
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"OAuth2": []
|
|
1180
|
+
}
|
|
1181
|
+
]
|
|
1182
|
+
}
|
|
1098
1183
|
}
|
|
1099
1184
|
},
|
|
1100
1185
|
"components": {
|
|
@@ -1600,6 +1685,18 @@
|
|
|
1600
1685
|
"Single",
|
|
1601
1686
|
"Collection"
|
|
1602
1687
|
]
|
|
1688
|
+
},
|
|
1689
|
+
"CopyCurrentProfileRequestDto": {
|
|
1690
|
+
"type": "object",
|
|
1691
|
+
"additionalProperties": false,
|
|
1692
|
+
"required": [
|
|
1693
|
+
"profileName"
|
|
1694
|
+
],
|
|
1695
|
+
"properties": {
|
|
1696
|
+
"profileName": {
|
|
1697
|
+
"type": "string"
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1603
1700
|
}
|
|
1604
1701
|
},
|
|
1605
1702
|
"securitySchemes": {
|