@targetprocess/shared-data-model-client 0.10.0 → 0.10.1-ci.3
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 +32 -0
- package/dist/models/index.js +40 -1
- 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 +47 -0
- package/src/tpSharedDataModelClient.ts +21 -8
- package/src/v1.json +401 -269
|
@@ -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>}
|
|
@@ -270,6 +281,10 @@ export interface FieldMappingDto extends Parsable {
|
|
|
270
281
|
* The id property
|
|
271
282
|
*/
|
|
272
283
|
id?: string | null;
|
|
284
|
+
/**
|
|
285
|
+
* The kind property
|
|
286
|
+
*/
|
|
287
|
+
kind?: FieldMappingKind | null;
|
|
273
288
|
/**
|
|
274
289
|
* The source property
|
|
275
290
|
*/
|
|
@@ -283,6 +298,7 @@ export interface FieldMappingDto extends Parsable {
|
|
|
283
298
|
*/
|
|
284
299
|
type?: string | null;
|
|
285
300
|
}
|
|
301
|
+
export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
|
|
286
302
|
export interface GetEntityTypesDto extends Parsable {
|
|
287
303
|
/**
|
|
288
304
|
* The sdmTypes property
|
|
@@ -449,6 +465,11 @@ export declare function serializeSharedDataCreateAttachmentResponseDto(writer: S
|
|
|
449
465
|
* @param writer Serialization writer to use to serialize this model
|
|
450
466
|
*/
|
|
451
467
|
export declare function serializeSharedDataCreateAttachmentResponseItemDto(writer: SerializationWriter, sharedDataCreateAttachmentResponseItemDto?: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined | null): void;
|
|
468
|
+
/**
|
|
469
|
+
* Serializes information the current object
|
|
470
|
+
* @param writer Serialization writer to use to serialize this model
|
|
471
|
+
*/
|
|
472
|
+
export declare function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto?: Partial<SharedDataDeleteDto> | undefined | null): void;
|
|
452
473
|
/**
|
|
453
474
|
* Serializes information the current object
|
|
454
475
|
* @param writer Serialization writer to use to serialize this model
|
|
@@ -510,6 +531,12 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
|
|
|
510
531
|
*/
|
|
511
532
|
uri?: string | null;
|
|
512
533
|
}
|
|
534
|
+
export interface SharedDataDeleteDto extends Parsable {
|
|
535
|
+
/**
|
|
536
|
+
* The id property
|
|
537
|
+
*/
|
|
538
|
+
id?: number | null;
|
|
539
|
+
}
|
|
513
540
|
export interface TestTypeMappingDto extends Parsable {
|
|
514
541
|
/**
|
|
515
542
|
* The entityType property
|
|
@@ -625,6 +652,11 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
|
|
|
625
652
|
validationState?: ValidationState | null;
|
|
626
653
|
}
|
|
627
654
|
export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
|
|
655
|
+
export declare const FieldMappingKindObject: {
|
|
656
|
+
readonly DefaultEscaped: "Default";
|
|
657
|
+
readonly Custom: "Custom";
|
|
658
|
+
readonly Empty: "Empty";
|
|
659
|
+
};
|
|
628
660
|
export declare const RefKindObject: {
|
|
629
661
|
readonly Single: "Single";
|
|
630
662
|
readonly Collection: "Collection";
|
package/dist/models/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
|
|
6
6
|
exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromDiscriminatorValue;
|
|
@@ -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
|
|
@@ -320,6 +332,7 @@ function deserializeIntoFieldDefDto(fieldDefDto = {}) {
|
|
|
320
332
|
function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
|
|
321
333
|
return {
|
|
322
334
|
"id": n => { fieldMappingDto.id = n.getStringValue(); },
|
|
335
|
+
"kind": n => { fieldMappingDto.kind = n.getEnumValue(exports.FieldMappingKindObject); },
|
|
323
336
|
"source": n => { fieldMappingDto.source = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
324
337
|
"target": n => { fieldMappingDto.target = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
325
338
|
"$type": n => { fieldMappingDto.type = n.getStringValue(); },
|
|
@@ -459,6 +472,16 @@ function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCrea
|
|
|
459
472
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
460
473
|
*/
|
|
461
474
|
// @ts-ignore
|
|
475
|
+
function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto = {}) {
|
|
476
|
+
return {
|
|
477
|
+
"id": n => { sharedDataDeleteDto.id = n.getNumberValue(); },
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* The deserialization information for the current model
|
|
482
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
483
|
+
*/
|
|
484
|
+
// @ts-ignore
|
|
462
485
|
function deserializeIntoTestTypeMappingDto(testTypeMappingDto = {}) {
|
|
463
486
|
return {
|
|
464
487
|
"entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
|
|
@@ -573,6 +596,7 @@ function serializeFieldDefDto(writer, fieldDefDto = {}) {
|
|
|
573
596
|
function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
|
|
574
597
|
if (fieldMappingDto) {
|
|
575
598
|
writer.writeStringValue("id", fieldMappingDto.id);
|
|
599
|
+
writer.writeEnumValue("kind", fieldMappingDto.kind);
|
|
576
600
|
writer.writeObjectValue("source", fieldMappingDto.source, serializeMappingFieldDefDto);
|
|
577
601
|
writer.writeObjectValue("target", fieldMappingDto.target, serializeMappingFieldDefDto);
|
|
578
602
|
writer.writeStringValue("$type", fieldMappingDto.type);
|
|
@@ -716,6 +740,16 @@ function serializeSharedDataCreateAttachmentResponseItemDto(writer, sharedDataCr
|
|
|
716
740
|
* @param writer Serialization writer to use to serialize this model
|
|
717
741
|
*/
|
|
718
742
|
// @ts-ignore
|
|
743
|
+
function serializeSharedDataDeleteDto(writer, sharedDataDeleteDto = {}) {
|
|
744
|
+
if (sharedDataDeleteDto) {
|
|
745
|
+
writer.writeNumberValue("id", sharedDataDeleteDto.id);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Serializes information the current object
|
|
750
|
+
* @param writer Serialization writer to use to serialize this model
|
|
751
|
+
*/
|
|
752
|
+
// @ts-ignore
|
|
719
753
|
function serializeTestTypeMappingDto(writer, testTypeMappingDto = {}) {
|
|
720
754
|
if (testTypeMappingDto) {
|
|
721
755
|
writer.writeStringValue("entityType", testTypeMappingDto.entityType);
|
|
@@ -802,6 +836,11 @@ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {})
|
|
|
802
836
|
writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
|
|
803
837
|
}
|
|
804
838
|
}
|
|
839
|
+
exports.FieldMappingKindObject = {
|
|
840
|
+
DefaultEscaped: "Default",
|
|
841
|
+
Custom: "Custom",
|
|
842
|
+
Empty: "Empty",
|
|
843
|
+
};
|
|
805
844
|
exports.RefKindObject = {
|
|
806
845
|
Single: "Single",
|
|
807
846
|
Collection: "Collection",
|
|
@@ -23,13 +23,23 @@ const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text"
|
|
|
23
23
|
*/
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
function createTpSharedDataModelClient(requestAdapter) {
|
|
26
|
-
(
|
|
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.10.
|
|
3
|
+
"version": "0.10.1-ci.3",
|
|
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": "7049FC522B770B4D7B9BD51D31B900E198757E17010B02EC046FB44E482A131A209E29BFB14D23E0F6CF62EC2B346E5C946AB0ED19A4DDFBDC774191175F78A6",
|
|
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
|
|
@@ -261,6 +270,7 @@ export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | u
|
|
|
261
270
|
export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
262
271
|
return {
|
|
263
272
|
"id": n => { fieldMappingDto.id = n.getStringValue(); },
|
|
273
|
+
"kind": n => { fieldMappingDto.kind = n.getEnumValue<FieldMappingKind>(FieldMappingKindObject); },
|
|
264
274
|
"source": n => { fieldMappingDto.source = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
265
275
|
"target": n => { fieldMappingDto.target = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
266
276
|
"$type": n => { fieldMappingDto.type = n.getStringValue(); },
|
|
@@ -401,6 +411,16 @@ export function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedD
|
|
|
401
411
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
402
412
|
*/
|
|
403
413
|
// @ts-ignore
|
|
414
|
+
export function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
415
|
+
return {
|
|
416
|
+
"id": n => { sharedDataDeleteDto.id = n.getNumberValue(); },
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* The deserialization information for the current model
|
|
421
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
422
|
+
*/
|
|
423
|
+
// @ts-ignore
|
|
404
424
|
export function deserializeIntoTestTypeMappingDto(testTypeMappingDto: Partial<TestTypeMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
405
425
|
return {
|
|
406
426
|
"entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
|
|
@@ -507,6 +527,10 @@ export interface FieldMappingDto extends Parsable {
|
|
|
507
527
|
* The id property
|
|
508
528
|
*/
|
|
509
529
|
id?: string | null;
|
|
530
|
+
/**
|
|
531
|
+
* The kind property
|
|
532
|
+
*/
|
|
533
|
+
kind?: FieldMappingKind | null;
|
|
510
534
|
/**
|
|
511
535
|
* The source property
|
|
512
536
|
*/
|
|
@@ -520,6 +544,7 @@ export interface FieldMappingDto extends Parsable {
|
|
|
520
544
|
*/
|
|
521
545
|
type?: string | null;
|
|
522
546
|
}
|
|
547
|
+
export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
|
|
523
548
|
export interface GetEntityTypesDto extends Parsable {
|
|
524
549
|
/**
|
|
525
550
|
* The sdmTypes property
|
|
@@ -642,6 +667,7 @@ export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: P
|
|
|
642
667
|
export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}) : void {
|
|
643
668
|
if (fieldMappingDto) {
|
|
644
669
|
writer.writeStringValue("id", fieldMappingDto.id);
|
|
670
|
+
writer.writeEnumValue<FieldMappingKind>("kind", fieldMappingDto.kind);
|
|
645
671
|
writer.writeObjectValue<MappingFieldDefDto>("source", fieldMappingDto.source, serializeMappingFieldDefDto);
|
|
646
672
|
writer.writeObjectValue<MappingFieldDefDto>("target", fieldMappingDto.target, serializeMappingFieldDefDto);
|
|
647
673
|
writer.writeStringValue("$type", fieldMappingDto.type);
|
|
@@ -785,6 +811,16 @@ export function serializeSharedDataCreateAttachmentResponseItemDto(writer: Seria
|
|
|
785
811
|
* @param writer Serialization writer to use to serialize this model
|
|
786
812
|
*/
|
|
787
813
|
// @ts-ignore
|
|
814
|
+
export function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined | null = {}) : void {
|
|
815
|
+
if (sharedDataDeleteDto) {
|
|
816
|
+
writer.writeNumberValue("id", sharedDataDeleteDto.id);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* Serializes information the current object
|
|
821
|
+
* @param writer Serialization writer to use to serialize this model
|
|
822
|
+
*/
|
|
823
|
+
// @ts-ignore
|
|
788
824
|
export function serializeTestTypeMappingDto(writer: SerializationWriter, testTypeMappingDto: Partial<TestTypeMappingDto> | undefined | null = {}) : void {
|
|
789
825
|
if (testTypeMappingDto) {
|
|
790
826
|
writer.writeStringValue("entityType", testTypeMappingDto.entityType);
|
|
@@ -897,6 +933,12 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
|
|
|
897
933
|
*/
|
|
898
934
|
uri?: string | null;
|
|
899
935
|
}
|
|
936
|
+
export interface SharedDataDeleteDto extends Parsable {
|
|
937
|
+
/**
|
|
938
|
+
* The id property
|
|
939
|
+
*/
|
|
940
|
+
id?: number | null;
|
|
941
|
+
}
|
|
900
942
|
export interface TestTypeMappingDto extends Parsable {
|
|
901
943
|
/**
|
|
902
944
|
* The entityType property
|
|
@@ -1012,6 +1054,11 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
|
|
|
1012
1054
|
validationState?: ValidationState | null;
|
|
1013
1055
|
}
|
|
1014
1056
|
export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
|
|
1057
|
+
export const FieldMappingKindObject = {
|
|
1058
|
+
DefaultEscaped: "Default",
|
|
1059
|
+
Custom: "Custom",
|
|
1060
|
+
Empty: "Empty",
|
|
1061
|
+
} as const;
|
|
1015
1062
|
export const RefKindObject = {
|
|
1016
1063
|
Single: "Single",
|
|
1017
1064
|
Collection: "Collection",
|
|
@@ -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
|
};
|