@targetprocess/shared-data-model-client 0.9.0 → 0.10.1-ci.2
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/sdm/item/index.d.ts +19 -0
- package/dist/api/sdm/item/index.js +15 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +32 -0
- package/dist/tpSharedDataModelClient.js +17 -7
- package/package.json +2 -2
- package/src/api/sdm/item/index.ts +34 -1
- package/src/kiota-lock.json +2 -2
- package/src/models/index.ts +35 -0
- package/src/tpSharedDataModelClient.ts +21 -8
- package/src/v1.json +389 -271
|
@@ -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",
|
package/dist/models/index.d.ts
CHANGED
|
@@ -95,6 +95,12 @@ export declare function createSharedDataCreateAttachmentResponseDtoFromDiscrimin
|
|
|
95
95
|
* @returns {SharedDataCreateAttachmentResponseItemDto}
|
|
96
96
|
*/
|
|
97
97
|
export declare function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
98
|
+
/**
|
|
99
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
100
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
101
|
+
* @returns {SharedDataDeleteDto}
|
|
102
|
+
*/
|
|
103
|
+
export declare function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
98
104
|
/**
|
|
99
105
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
100
106
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -212,6 +218,11 @@ export declare function deserializeIntoSharedDataCreateAttachmentResponseDto(sha
|
|
|
212
218
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
213
219
|
*/
|
|
214
220
|
export declare function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCreateAttachmentResponseItemDto?: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
221
|
+
/**
|
|
222
|
+
* The deserialization information for the current model
|
|
223
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
224
|
+
*/
|
|
225
|
+
export declare function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto?: Partial<SharedDataDeleteDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
215
226
|
/**
|
|
216
227
|
* The deserialization information for the current model
|
|
217
228
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
@@ -449,6 +460,11 @@ export declare function serializeSharedDataCreateAttachmentResponseDto(writer: S
|
|
|
449
460
|
* @param writer Serialization writer to use to serialize this model
|
|
450
461
|
*/
|
|
451
462
|
export declare function serializeSharedDataCreateAttachmentResponseItemDto(writer: SerializationWriter, sharedDataCreateAttachmentResponseItemDto?: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined | null): void;
|
|
463
|
+
/**
|
|
464
|
+
* Serializes information the current object
|
|
465
|
+
* @param writer Serialization writer to use to serialize this model
|
|
466
|
+
*/
|
|
467
|
+
export declare function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto?: Partial<SharedDataDeleteDto> | undefined | null): void;
|
|
452
468
|
/**
|
|
453
469
|
* Serializes information the current object
|
|
454
470
|
* @param writer Serialization writer to use to serialize this model
|
|
@@ -510,6 +526,12 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
|
|
|
510
526
|
*/
|
|
511
527
|
uri?: string | null;
|
|
512
528
|
}
|
|
529
|
+
export interface SharedDataDeleteDto extends Parsable {
|
|
530
|
+
/**
|
|
531
|
+
* The id property
|
|
532
|
+
*/
|
|
533
|
+
id?: number | null;
|
|
534
|
+
}
|
|
513
535
|
export interface TestTypeMappingDto extends Parsable {
|
|
514
536
|
/**
|
|
515
537
|
* The entityType property
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,7 @@ exports.createSdmTypeDefDtoFromDiscriminatorValue = createSdmTypeDefDtoFromDiscr
|
|
|
16
16
|
exports.createSetCurrentProfileRequestDtoFromDiscriminatorValue = createSetCurrentProfileRequestDtoFromDiscriminatorValue;
|
|
17
17
|
exports.createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue;
|
|
18
18
|
exports.createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue;
|
|
19
|
+
exports.createSharedDataDeleteDtoFromDiscriminatorValue = createSharedDataDeleteDtoFromDiscriminatorValue;
|
|
19
20
|
exports.createTestTypeMappingDtoFromDiscriminatorValue = createTestTypeMappingDtoFromDiscriminatorValue;
|
|
20
21
|
exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscriminatorValue;
|
|
21
22
|
exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
|
|
@@ -38,6 +39,7 @@ exports.deserializeIntoSdmTypeDefDto = deserializeIntoSdmTypeDefDto;
|
|
|
38
39
|
exports.deserializeIntoSetCurrentProfileRequestDto = deserializeIntoSetCurrentProfileRequestDto;
|
|
39
40
|
exports.deserializeIntoSharedDataCreateAttachmentResponseDto = deserializeIntoSharedDataCreateAttachmentResponseDto;
|
|
40
41
|
exports.deserializeIntoSharedDataCreateAttachmentResponseItemDto = deserializeIntoSharedDataCreateAttachmentResponseItemDto;
|
|
42
|
+
exports.deserializeIntoSharedDataDeleteDto = deserializeIntoSharedDataDeleteDto;
|
|
41
43
|
exports.deserializeIntoTestTypeMappingDto = deserializeIntoTestTypeMappingDto;
|
|
42
44
|
exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
|
|
43
45
|
exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
|
|
@@ -60,6 +62,7 @@ exports.serializeSdmTypeDefDto = serializeSdmTypeDefDto;
|
|
|
60
62
|
exports.serializeSetCurrentProfileRequestDto = serializeSetCurrentProfileRequestDto;
|
|
61
63
|
exports.serializeSharedDataCreateAttachmentResponseDto = serializeSharedDataCreateAttachmentResponseDto;
|
|
62
64
|
exports.serializeSharedDataCreateAttachmentResponseItemDto = serializeSharedDataCreateAttachmentResponseItemDto;
|
|
65
|
+
exports.serializeSharedDataDeleteDto = serializeSharedDataDeleteDto;
|
|
63
66
|
exports.serializeTestTypeMappingDto = serializeTestTypeMappingDto;
|
|
64
67
|
exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
|
|
65
68
|
exports.serializeTypeMappingDto = serializeTypeMappingDto;
|
|
@@ -214,6 +217,15 @@ function createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue(parse
|
|
|
214
217
|
function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode) {
|
|
215
218
|
return deserializeIntoSharedDataCreateAttachmentResponseItemDto;
|
|
216
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
222
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
223
|
+
* @returns {SharedDataDeleteDto}
|
|
224
|
+
*/
|
|
225
|
+
// @ts-ignore
|
|
226
|
+
function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode) {
|
|
227
|
+
return deserializeIntoSharedDataDeleteDto;
|
|
228
|
+
}
|
|
217
229
|
/**
|
|
218
230
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
219
231
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -459,6 +471,16 @@ function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCrea
|
|
|
459
471
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
460
472
|
*/
|
|
461
473
|
// @ts-ignore
|
|
474
|
+
function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto = {}) {
|
|
475
|
+
return {
|
|
476
|
+
"id": n => { sharedDataDeleteDto.id = n.getNumberValue(); },
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* The deserialization information for the current model
|
|
481
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
482
|
+
*/
|
|
483
|
+
// @ts-ignore
|
|
462
484
|
function deserializeIntoTestTypeMappingDto(testTypeMappingDto = {}) {
|
|
463
485
|
return {
|
|
464
486
|
"entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
|
|
@@ -716,6 +738,16 @@ function serializeSharedDataCreateAttachmentResponseItemDto(writer, sharedDataCr
|
|
|
716
738
|
* @param writer Serialization writer to use to serialize this model
|
|
717
739
|
*/
|
|
718
740
|
// @ts-ignore
|
|
741
|
+
function serializeSharedDataDeleteDto(writer, sharedDataDeleteDto = {}) {
|
|
742
|
+
if (sharedDataDeleteDto) {
|
|
743
|
+
writer.writeNumberValue("id", sharedDataDeleteDto.id);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Serializes information the current object
|
|
748
|
+
* @param writer Serialization writer to use to serialize this model
|
|
749
|
+
*/
|
|
750
|
+
// @ts-ignore
|
|
719
751
|
function serializeTestTypeMappingDto(writer, testTypeMappingDto = {}) {
|
|
720
752
|
if (testTypeMappingDto) {
|
|
721
753
|
writer.writeStringValue("entityType", testTypeMappingDto.entityType);
|
|
@@ -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
|
-
(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(
|
|
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.
|
|
3
|
+
"version": "0.10.1-ci.2",
|
|
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.
|
|
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",
|
package/src/kiota-lock.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "76C172775C0D37597A4FB4B46D2E1941CC6271183637E343369100313658FF487BD6378EA50614813E0A73A3FB8C160F7270FEA403440B67695775867AD424D4",
|
|
3
3
|
"descriptionLocation": "v1.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
|
-
"kiotaVersion": "1.
|
|
5
|
+
"kiotaVersion": "1.27.0",
|
|
6
6
|
"clientClassName": "TpSharedDataModelClient",
|
|
7
7
|
"typeAccessModifier": "Public",
|
|
8
8
|
"clientNamespaceName": "Tp",
|
package/src/models/index.ts
CHANGED
|
@@ -156,6 +156,15 @@ export function createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValu
|
|
|
156
156
|
export function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
157
157
|
return deserializeIntoSharedDataCreateAttachmentResponseItemDto;
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
161
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
162
|
+
* @returns {SharedDataDeleteDto}
|
|
163
|
+
*/
|
|
164
|
+
// @ts-ignore
|
|
165
|
+
export function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
166
|
+
return deserializeIntoSharedDataDeleteDto;
|
|
167
|
+
}
|
|
159
168
|
/**
|
|
160
169
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
161
170
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -401,6 +410,16 @@ export function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedD
|
|
|
401
410
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
402
411
|
*/
|
|
403
412
|
// @ts-ignore
|
|
413
|
+
export function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
414
|
+
return {
|
|
415
|
+
"id": n => { sharedDataDeleteDto.id = n.getNumberValue(); },
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* The deserialization information for the current model
|
|
420
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
421
|
+
*/
|
|
422
|
+
// @ts-ignore
|
|
404
423
|
export function deserializeIntoTestTypeMappingDto(testTypeMappingDto: Partial<TestTypeMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
405
424
|
return {
|
|
406
425
|
"entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
|
|
@@ -785,6 +804,16 @@ export function serializeSharedDataCreateAttachmentResponseItemDto(writer: Seria
|
|
|
785
804
|
* @param writer Serialization writer to use to serialize this model
|
|
786
805
|
*/
|
|
787
806
|
// @ts-ignore
|
|
807
|
+
export function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined | null = {}) : void {
|
|
808
|
+
if (sharedDataDeleteDto) {
|
|
809
|
+
writer.writeNumberValue("id", sharedDataDeleteDto.id);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Serializes information the current object
|
|
814
|
+
* @param writer Serialization writer to use to serialize this model
|
|
815
|
+
*/
|
|
816
|
+
// @ts-ignore
|
|
788
817
|
export function serializeTestTypeMappingDto(writer: SerializationWriter, testTypeMappingDto: Partial<TestTypeMappingDto> | undefined | null = {}) : void {
|
|
789
818
|
if (testTypeMappingDto) {
|
|
790
819
|
writer.writeStringValue("entityType", testTypeMappingDto.entityType);
|
|
@@ -897,6 +926,12 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
|
|
|
897
926
|
*/
|
|
898
927
|
uri?: string | null;
|
|
899
928
|
}
|
|
929
|
+
export interface SharedDataDeleteDto extends Parsable {
|
|
930
|
+
/**
|
|
931
|
+
* The id property
|
|
932
|
+
*/
|
|
933
|
+
id?: number | null;
|
|
934
|
+
}
|
|
900
935
|
export interface TestTypeMappingDto extends Parsable {
|
|
901
936
|
/**
|
|
902
937
|
* The entityType property
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import { ApiRequestBuilderNavigationMetadata, type ApiRequestBuilder } from './api/index.js';
|
|
6
6
|
// @ts-ignore
|
|
7
|
-
import { apiClientProxifier,
|
|
7
|
+
import { apiClientProxifier, ParseNodeFactoryRegistry, SerializationWriterFactoryRegistry, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
|
|
8
8
|
// @ts-ignore
|
|
9
9
|
import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
|
|
10
10
|
// @ts-ignore
|
|
@@ -20,13 +20,26 @@ import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft
|
|
|
20
20
|
*/
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
export function createTpSharedDataModelClient(requestAdapter: RequestAdapter) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
if (requestAdapter === undefined) {
|
|
24
|
+
throw new Error("requestAdapter cannot be undefined");
|
|
25
|
+
}
|
|
26
|
+
const serializationWriterFactory = requestAdapter.getSerializationWriterFactory() as SerializationWriterFactoryRegistry;
|
|
27
|
+
const parseNodeFactoryRegistry = requestAdapter.getParseNodeFactory() as ParseNodeFactoryRegistry;
|
|
28
|
+
const backingStoreFactory = requestAdapter.getBackingStoreFactory();
|
|
29
|
+
|
|
30
|
+
if (parseNodeFactoryRegistry.registerDefaultDeserializer) {
|
|
31
|
+
parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory);
|
|
32
|
+
parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory);
|
|
33
|
+
parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (serializationWriterFactory.registerDefaultSerializer) {
|
|
37
|
+
serializationWriterFactory.registerDefaultSerializer(JsonSerializationWriterFactory);
|
|
38
|
+
serializationWriterFactory.registerDefaultSerializer(TextSerializationWriterFactory);
|
|
39
|
+
serializationWriterFactory.registerDefaultSerializer(FormSerializationWriterFactory);
|
|
40
|
+
serializationWriterFactory.registerDefaultSerializer(MultipartSerializationWriterFactory);
|
|
41
|
+
}
|
|
42
|
+
|
|
30
43
|
const pathParameters: Record<string, unknown> = {
|
|
31
44
|
"baseurl": requestAdapter.baseUrl,
|
|
32
45
|
};
|