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

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.
@@ -0,0 +1,21 @@
1
+ import { type WithStorageKeyItemRequestBuilder } from './item/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /api/sdm/alerts
5
+ */
6
+ export interface AlertsRequestBuilder extends BaseRequestBuilder<AlertsRequestBuilder> {
7
+ /**
8
+ * Gets an item from the Tp.api.sdm.alerts.item collection
9
+ * @param storageKey Unique identifier of the item
10
+ * @returns {WithStorageKeyItemRequestBuilder}
11
+ */
12
+ byStorageKey(storageKey: string): WithStorageKeyItemRequestBuilder;
13
+ }
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export declare const AlertsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export declare const AlertsRequestBuilderNavigationMetadata: Record<Exclude<keyof AlertsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlertsRequestBuilderNavigationMetadata = exports.AlertsRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ // @ts-ignore
8
+ const index_js_1 = require("./item/index.js");
9
+ /**
10
+ * Uri template for the request builder.
11
+ */
12
+ exports.AlertsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts";
13
+ /**
14
+ * Metadata for all the navigation properties in the request builder.
15
+ */
16
+ exports.AlertsRequestBuilderNavigationMetadata = {
17
+ byStorageKey: {
18
+ requestsMetadata: index_js_1.WithStorageKeyItemRequestBuilderRequestsMetadata,
19
+ pathParametersMappings: ["storageKey"],
20
+ },
21
+ };
22
+ /* tslint:enable */
23
+ /* eslint-enable */
@@ -0,0 +1,31 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Builds and executes requests for operations under /api/sdm/alerts/{storageKey}
4
+ */
5
+ export interface WithStorageKeyItemRequestBuilder extends BaseRequestBuilder<WithStorageKeyItemRequestBuilder> {
6
+ /**
7
+ * Gets alerts
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns {Promise<UntypedNode>}
10
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
11
+ * @throws {ProblemDetails} error when the service returns a 401 status code
12
+ * @throws {ProblemDetails} error when the service returns a 404 status code
13
+ * @throws {ProblemDetails} error when the service returns a 409 status code
14
+ * @throws {ProblemDetails} error when the service returns a 500 status code
15
+ */
16
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UntypedNode | undefined>;
17
+ /**
18
+ * Gets alerts
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ * @returns {RequestInformation}
21
+ */
22
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
23
+ }
24
+ /**
25
+ * Uri template for the request builder.
26
+ */
27
+ export declare const WithStorageKeyItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}";
28
+ /**
29
+ * Metadata for all the requests in the request builder.
30
+ */
31
+ export declare const WithStorageKeyItemRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithStorageKeyItemRequestBuilderRequestsMetadata = exports.WithStorageKeyItemRequestBuilderUriTemplate = 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
+ // @ts-ignore
10
+ const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
11
+ /**
12
+ * Uri template for the request builder.
13
+ */
14
+ exports.WithStorageKeyItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}";
15
+ /**
16
+ * Metadata for all the requests in the request builder.
17
+ */
18
+ exports.WithStorageKeyItemRequestBuilderRequestsMetadata = {
19
+ get: {
20
+ uriTemplate: exports.WithStorageKeyItemRequestBuilderUriTemplate,
21
+ responseBodyContentType: "application/json",
22
+ errorMappings: {
23
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
24
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
25
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
26
+ 409: index_js_1.createProblemDetailsFromDiscriminatorValue,
27
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
28
+ },
29
+ adapterMethodName: "send",
30
+ responseBodyFactory: kiota_abstractions_1.createUntypedNodeFromDiscriminatorValue,
31
+ },
32
+ };
33
+ /* tslint:enable */
34
+ /* eslint-enable */
@@ -1,3 +1,4 @@
1
+ import { type AlertsRequestBuilder } from './alerts/index.js';
1
2
  import { type AttachmentsRequestBuilder } from './attachments/index.js';
2
3
  import { type WithEntityTypeItemRequestBuilder } from './item/index.js';
3
4
  import { type MentionsRequestBuilder } from './mentions/index.js';
@@ -7,6 +8,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
7
8
  * Builds and executes requests for operations under /api/sdm
8
9
  */
9
10
  export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
11
+ /**
12
+ * The alerts property
13
+ */
14
+ get alerts(): AlertsRequestBuilder;
10
15
  /**
11
16
  * The attachments property
12
17
  */
@@ -5,13 +5,15 @@ exports.SdmRequestBuilderNavigationMetadata = exports.SdmRequestBuilderUriTempla
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  // @ts-ignore
8
- const index_js_1 = require("./attachments/index.js");
8
+ const index_js_1 = require("./alerts/index.js");
9
9
  // @ts-ignore
10
- const index_js_2 = require("./item/index.js");
10
+ const index_js_2 = require("./attachments/index.js");
11
11
  // @ts-ignore
12
- const index_js_3 = require("./mentions/index.js");
12
+ const index_js_3 = require("./item/index.js");
13
13
  // @ts-ignore
14
- const index_js_4 = require("./schema/index.js");
14
+ const index_js_4 = require("./mentions/index.js");
15
+ // @ts-ignore
16
+ const index_js_5 = require("./schema/index.js");
15
17
  /**
16
18
  * Uri template for the request builder.
17
19
  */
@@ -21,18 +23,21 @@ exports.SdmRequestBuilderUriTemplate = "{+baseurl}/api/sdm";
21
23
  */
22
24
  exports.SdmRequestBuilderNavigationMetadata = {
23
25
  byEntityType: {
24
- requestsMetadata: index_js_2.WithEntityTypeItemRequestBuilderRequestsMetadata,
25
- navigationMetadata: index_js_2.WithEntityTypeItemRequestBuilderNavigationMetadata,
26
+ requestsMetadata: index_js_3.WithEntityTypeItemRequestBuilderRequestsMetadata,
27
+ navigationMetadata: index_js_3.WithEntityTypeItemRequestBuilderNavigationMetadata,
26
28
  pathParametersMappings: ["entityType"],
27
29
  },
30
+ alerts: {
31
+ navigationMetadata: index_js_1.AlertsRequestBuilderNavigationMetadata,
32
+ },
28
33
  attachments: {
29
- navigationMetadata: index_js_1.AttachmentsRequestBuilderNavigationMetadata,
34
+ navigationMetadata: index_js_2.AttachmentsRequestBuilderNavigationMetadata,
30
35
  },
31
36
  mentions: {
32
- requestsMetadata: index_js_3.MentionsRequestBuilderRequestsMetadata,
37
+ requestsMetadata: index_js_4.MentionsRequestBuilderRequestsMetadata,
33
38
  },
34
39
  schema: {
35
- navigationMetadata: index_js_4.SchemaRequestBuilderNavigationMetadata,
40
+ navigationMetadata: index_js_5.SchemaRequestBuilderNavigationMetadata,
36
41
  },
37
42
  };
38
43
  /* tslint:enable */
@@ -1,4 +1,3 @@
1
- import { type SharedDataDeleteDto } from '../../../models/index.js';
2
1
  import { type CountRequestBuilder } from './count/index.js';
3
2
  import { type EntityTypeItemRequestBuilder } from './item/index.js';
4
3
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
@@ -16,17 +15,6 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
16
15
  * @returns {EntityTypeItemRequestBuilder}
17
16
  */
18
17
  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>;
30
18
  /**
31
19
  * Creates or Updates Shared Data Model
32
20
  * @param body The request body
@@ -39,13 +27,6 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
39
27
  * @throws {ProblemDetails} error when the service returns a 500 status code
40
28
  */
41
29
  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;
49
30
  /**
50
31
  * Creates or Updates Shared Data Model
51
32
  * @param body The request body
@@ -32,21 +32,6 @@ 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
- },
50
35
  post: {
51
36
  uriTemplate: exports.WithEntityTypeItemRequestBuilderUriTemplate,
52
37
  responseBodyContentType: "application/json",
@@ -1,4 +1,4 @@
1
- import { type DeleteProfileRequestDto, type ProfileDto, type ProfileIdDto } from '../../../models/index.js';
1
+ import { 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,18 +24,6 @@ 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>;
39
27
  /**
40
28
  * Get settings profile
41
29
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -59,13 +47,6 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
59
47
  * @throws {ProblemDetails} error when the service returns a 500 status code
60
48
  */
61
49
  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;
69
50
  /**
70
51
  * Get settings profile
71
52
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -39,22 +39,6 @@ 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
- },
58
42
  get: {
59
43
  uriTemplate: exports.ProfileRequestBuilderUriTemplate,
60
44
  responseBodyContentType: "application/json",
@@ -11,12 +11,6 @@ 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>);
20
14
  /**
21
15
  * Creates a new instance of the appropriate class based on discriminator value
22
16
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -101,12 +95,6 @@ export declare function createSharedDataCreateAttachmentResponseDtoFromDiscrimin
101
95
  * @returns {SharedDataCreateAttachmentResponseItemDto}
102
96
  */
103
97
  export declare function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
104
- /**
105
- * Creates a new instance of the appropriate class based on discriminator value
106
- * @param parseNode The parse node to use to read the discriminator value and create the object
107
- * @returns {SharedDataDeleteDto}
108
- */
109
- export declare function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
110
98
  /**
111
99
  * Creates a new instance of the appropriate class based on discriminator value
112
100
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -149,26 +137,11 @@ export declare function createValidatedProfileDtoFromDiscriminatorValue(parseNod
149
137
  * @returns {ValidatedTypeMappingDto}
150
138
  */
151
139
  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
- }
162
140
  /**
163
141
  * The deserialization information for the current model
164
142
  * @returns {Record<string, (node: ParseNode) => void>}
165
143
  */
166
144
  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>;
172
145
  /**
173
146
  * The deserialization information for the current model
174
147
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -239,11 +212,6 @@ export declare function deserializeIntoSharedDataCreateAttachmentResponseDto(sha
239
212
  * @returns {Record<string, (node: ParseNode) => void>}
240
213
  */
241
214
  export declare function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCreateAttachmentResponseItemDto?: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined): Record<string, (node: ParseNode) => void>;
242
- /**
243
- * The deserialization information for the current model
244
- * @returns {Record<string, (node: ParseNode) => void>}
245
- */
246
- export declare function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto?: Partial<SharedDataDeleteDto> | undefined): Record<string, (node: ParseNode) => void>;
247
215
  /**
248
216
  * The deserialization information for the current model
249
217
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -302,10 +270,6 @@ export interface FieldMappingDto extends Parsable {
302
270
  * The id property
303
271
  */
304
272
  id?: string | null;
305
- /**
306
- * The kind property
307
- */
308
- kind?: FieldMappingKind | null;
309
273
  /**
310
274
  * The source property
311
275
  */
@@ -319,7 +283,6 @@ export interface FieldMappingDto extends Parsable {
319
283
  */
320
284
  type?: string | null;
321
285
  }
322
- export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
323
286
  export interface GetEntityTypesDto extends Parsable {
324
287
  /**
325
288
  * The sdmTypes property
@@ -416,11 +379,6 @@ export interface SdmTypeDefDto extends Parsable {
416
379
  * @param writer Serialization writer to use to serialize this model
417
380
  */
418
381
  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;
424
382
  /**
425
383
  * Serializes information the current object
426
384
  * @param writer Serialization writer to use to serialize this model
@@ -491,11 +449,6 @@ export declare function serializeSharedDataCreateAttachmentResponseDto(writer: S
491
449
  * @param writer Serialization writer to use to serialize this model
492
450
  */
493
451
  export declare function serializeSharedDataCreateAttachmentResponseItemDto(writer: SerializationWriter, sharedDataCreateAttachmentResponseItemDto?: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined | null): void;
494
- /**
495
- * Serializes information the current object
496
- * @param writer Serialization writer to use to serialize this model
497
- */
498
- export declare function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto?: Partial<SharedDataDeleteDto> | undefined | null): void;
499
452
  /**
500
453
  * Serializes information the current object
501
454
  * @param writer Serialization writer to use to serialize this model
@@ -557,12 +510,6 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
557
510
  */
558
511
  uri?: string | null;
559
512
  }
560
- export interface SharedDataDeleteDto extends Parsable {
561
- /**
562
- * The id property
563
- */
564
- id?: number | null;
565
- }
566
513
  export interface TestTypeMappingDto extends Parsable {
567
514
  /**
568
515
  * The entityType property
@@ -678,11 +625,6 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
678
625
  validationState?: ValidationState | null;
679
626
  }
680
627
  export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
681
- export declare const FieldMappingKindObject: {
682
- readonly DefaultEscaped: "Default";
683
- readonly Custom: "Custom";
684
- readonly Empty: "Empty";
685
- };
686
628
  export declare const RefKindObject: {
687
629
  readonly Single: "Single";
688
630
  readonly Collection: "Collection";
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidationStateObject = exports.RefKindObject = exports.FieldMappingKindObject = void 0;
3
+ exports.ValidationStateObject = exports.RefKindObject = void 0;
4
4
  exports.createCopyCurrentProfileRequestDtoFromDiscriminatorValue = createCopyCurrentProfileRequestDtoFromDiscriminatorValue;
5
- exports.createDeleteProfileRequestDtoFromDiscriminatorValue = createDeleteProfileRequestDtoFromDiscriminatorValue;
6
5
  exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
7
6
  exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromDiscriminatorValue;
8
7
  exports.createGetEntityTypesDtoFromDiscriminatorValue = createGetEntityTypesDtoFromDiscriminatorValue;
@@ -17,7 +16,6 @@ exports.createSdmTypeDefDtoFromDiscriminatorValue = createSdmTypeDefDtoFromDiscr
17
16
  exports.createSetCurrentProfileRequestDtoFromDiscriminatorValue = createSetCurrentProfileRequestDtoFromDiscriminatorValue;
18
17
  exports.createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue;
19
18
  exports.createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue;
20
- exports.createSharedDataDeleteDtoFromDiscriminatorValue = createSharedDataDeleteDtoFromDiscriminatorValue;
21
19
  exports.createTestTypeMappingDtoFromDiscriminatorValue = createTestTypeMappingDtoFromDiscriminatorValue;
22
20
  exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscriminatorValue;
23
21
  exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
@@ -26,7 +24,6 @@ exports.createValidatedFieldMappingDtoFromDiscriminatorValue = createValidatedFi
26
24
  exports.createValidatedProfileDtoFromDiscriminatorValue = createValidatedProfileDtoFromDiscriminatorValue;
27
25
  exports.createValidatedTypeMappingDtoFromDiscriminatorValue = createValidatedTypeMappingDtoFromDiscriminatorValue;
28
26
  exports.deserializeIntoCopyCurrentProfileRequestDto = deserializeIntoCopyCurrentProfileRequestDto;
29
- exports.deserializeIntoDeleteProfileRequestDto = deserializeIntoDeleteProfileRequestDto;
30
27
  exports.deserializeIntoFieldDefDto = deserializeIntoFieldDefDto;
31
28
  exports.deserializeIntoFieldMappingDto = deserializeIntoFieldMappingDto;
32
29
  exports.deserializeIntoGetEntityTypesDto = deserializeIntoGetEntityTypesDto;
@@ -41,7 +38,6 @@ exports.deserializeIntoSdmTypeDefDto = deserializeIntoSdmTypeDefDto;
41
38
  exports.deserializeIntoSetCurrentProfileRequestDto = deserializeIntoSetCurrentProfileRequestDto;
42
39
  exports.deserializeIntoSharedDataCreateAttachmentResponseDto = deserializeIntoSharedDataCreateAttachmentResponseDto;
43
40
  exports.deserializeIntoSharedDataCreateAttachmentResponseItemDto = deserializeIntoSharedDataCreateAttachmentResponseItemDto;
44
- exports.deserializeIntoSharedDataDeleteDto = deserializeIntoSharedDataDeleteDto;
45
41
  exports.deserializeIntoTestTypeMappingDto = deserializeIntoTestTypeMappingDto;
46
42
  exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
47
43
  exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
@@ -50,7 +46,6 @@ exports.deserializeIntoValidatedFieldMappingDto = deserializeIntoValidatedFieldM
50
46
  exports.deserializeIntoValidatedProfileDto = deserializeIntoValidatedProfileDto;
51
47
  exports.deserializeIntoValidatedTypeMappingDto = deserializeIntoValidatedTypeMappingDto;
52
48
  exports.serializeCopyCurrentProfileRequestDto = serializeCopyCurrentProfileRequestDto;
53
- exports.serializeDeleteProfileRequestDto = serializeDeleteProfileRequestDto;
54
49
  exports.serializeFieldDefDto = serializeFieldDefDto;
55
50
  exports.serializeFieldMappingDto = serializeFieldMappingDto;
56
51
  exports.serializeGetEntityTypesDto = serializeGetEntityTypesDto;
@@ -65,7 +60,6 @@ exports.serializeSdmTypeDefDto = serializeSdmTypeDefDto;
65
60
  exports.serializeSetCurrentProfileRequestDto = serializeSetCurrentProfileRequestDto;
66
61
  exports.serializeSharedDataCreateAttachmentResponseDto = serializeSharedDataCreateAttachmentResponseDto;
67
62
  exports.serializeSharedDataCreateAttachmentResponseItemDto = serializeSharedDataCreateAttachmentResponseItemDto;
68
- exports.serializeSharedDataDeleteDto = serializeSharedDataDeleteDto;
69
63
  exports.serializeTestTypeMappingDto = serializeTestTypeMappingDto;
70
64
  exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
71
65
  exports.serializeTypeMappingDto = serializeTypeMappingDto;
@@ -82,15 +76,6 @@ exports.serializeValidatedTypeMappingDto = serializeValidatedTypeMappingDto;
82
76
  function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode) {
83
77
  return deserializeIntoCopyCurrentProfileRequestDto;
84
78
  }
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
- }
94
79
  /**
95
80
  * Creates a new instance of the appropriate class based on discriminator value
96
81
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -229,15 +214,6 @@ function createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue(parse
229
214
  function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode) {
230
215
  return deserializeIntoSharedDataCreateAttachmentResponseItemDto;
231
216
  }
232
- /**
233
- * Creates a new instance of the appropriate class based on discriminator value
234
- * @param parseNode The parse node to use to read the discriminator value and create the object
235
- * @returns {SharedDataDeleteDto}
236
- */
237
- // @ts-ignore
238
- function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode) {
239
- return deserializeIntoSharedDataDeleteDto;
240
- }
241
217
  /**
242
218
  * Creates a new instance of the appropriate class based on discriminator value
243
219
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -328,17 +304,6 @@ function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRequestDt
328
304
  * @returns {Record<string, (node: ParseNode) => void>}
329
305
  */
330
306
  // @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
342
307
  function deserializeIntoFieldDefDto(fieldDefDto = {}) {
343
308
  return {
344
309
  "expression": n => { fieldDefDto.expression = n.getStringValue(); },
@@ -355,7 +320,6 @@ function deserializeIntoFieldDefDto(fieldDefDto = {}) {
355
320
  function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
356
321
  return {
357
322
  "id": n => { fieldMappingDto.id = n.getStringValue(); },
358
- "kind": n => { fieldMappingDto.kind = n.getEnumValue(exports.FieldMappingKindObject); },
359
323
  "source": n => { fieldMappingDto.source = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
360
324
  "target": n => { fieldMappingDto.target = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
361
325
  "$type": n => { fieldMappingDto.type = n.getStringValue(); },
@@ -495,16 +459,6 @@ function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCrea
495
459
  * @returns {Record<string, (node: ParseNode) => void>}
496
460
  */
497
461
  // @ts-ignore
498
- function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto = {}) {
499
- return {
500
- "id": n => { sharedDataDeleteDto.id = n.getNumberValue(); },
501
- };
502
- }
503
- /**
504
- * The deserialization information for the current model
505
- * @returns {Record<string, (node: ParseNode) => void>}
506
- */
507
- // @ts-ignore
508
462
  function deserializeIntoTestTypeMappingDto(testTypeMappingDto = {}) {
509
463
  return {
510
464
  "entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
@@ -603,17 +557,6 @@ function serializeCopyCurrentProfileRequestDto(writer, copyCurrentProfileRequest
603
557
  * @param writer Serialization writer to use to serialize this model
604
558
  */
605
559
  // @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
617
560
  function serializeFieldDefDto(writer, fieldDefDto = {}) {
618
561
  if (fieldDefDto) {
619
562
  writer.writeStringValue("expression", fieldDefDto.expression);
@@ -630,7 +573,6 @@ function serializeFieldDefDto(writer, fieldDefDto = {}) {
630
573
  function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
631
574
  if (fieldMappingDto) {
632
575
  writer.writeStringValue("id", fieldMappingDto.id);
633
- writer.writeEnumValue("kind", fieldMappingDto.kind);
634
576
  writer.writeObjectValue("source", fieldMappingDto.source, serializeMappingFieldDefDto);
635
577
  writer.writeObjectValue("target", fieldMappingDto.target, serializeMappingFieldDefDto);
636
578
  writer.writeStringValue("$type", fieldMappingDto.type);
@@ -774,16 +716,6 @@ function serializeSharedDataCreateAttachmentResponseItemDto(writer, sharedDataCr
774
716
  * @param writer Serialization writer to use to serialize this model
775
717
  */
776
718
  // @ts-ignore
777
- function serializeSharedDataDeleteDto(writer, sharedDataDeleteDto = {}) {
778
- if (sharedDataDeleteDto) {
779
- writer.writeNumberValue("id", sharedDataDeleteDto.id);
780
- }
781
- }
782
- /**
783
- * Serializes information the current object
784
- * @param writer Serialization writer to use to serialize this model
785
- */
786
- // @ts-ignore
787
719
  function serializeTestTypeMappingDto(writer, testTypeMappingDto = {}) {
788
720
  if (testTypeMappingDto) {
789
721
  writer.writeStringValue("entityType", testTypeMappingDto.entityType);
@@ -870,11 +802,6 @@ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {})
870
802
  writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
871
803
  }
872
804
  }
873
- exports.FieldMappingKindObject = {
874
- DefaultEscaped: "Default",
875
- Custom: "Custom",
876
- Empty: "Empty",
877
- };
878
805
  exports.RefKindObject = {
879
806
  Single: "Single",
880
807
  Collection: "Collection",
@@ -23,23 +23,13 @@ const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text"
23
23
  */
24
24
  // @ts-ignore
25
25
  function createTpSharedDataModelClient(requestAdapter) {
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
- }
26
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_json_1.JsonSerializationWriterFactory);
27
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_text_1.TextSerializationWriterFactory);
28
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_form_1.FormSerializationWriterFactory);
29
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_multipart_1.MultipartSerializationWriterFactory);
30
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_json_1.JsonParseNodeFactory);
31
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_text_1.TextParseNodeFactory);
32
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_form_1.FormParseNodeFactory);
43
33
  const pathParameters = {
44
34
  "baseurl": requestAdapter.baseUrl,
45
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "0.10.1-ci.4",
3
+ "version": "0.11.0",
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.96"
18
+ "@microsoft/kiota-bundle": "^1.0.0-preview.80"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public"