@targetprocess/shared-data-model-client 0.10.1-ci.3 → 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.
- package/dist/api/sdm/alerts/index.d.ts +21 -0
- package/dist/api/sdm/alerts/index.js +23 -0
- package/dist/api/sdm/alerts/item/index.d.ts +31 -0
- package/dist/api/sdm/alerts/item/index.js +34 -0
- package/dist/api/sdm/index.d.ts +5 -0
- package/dist/api/sdm/index.js +14 -9
- package/dist/api/sdm/item/index.d.ts +0 -19
- package/dist/api/sdm/item/index.js +0 -15
- package/dist/models/index.d.ts +0 -32
- package/dist/models/index.js +1 -40
- package/dist/tpSharedDataModelClient.js +7 -17
- package/package.json +2 -2
- package/src/api/sdm/alerts/index.ts +34 -0
- package/src/api/sdm/alerts/item/index.ts +54 -0
- package/src/api/sdm/index.ts +9 -0
- package/src/api/sdm/item/index.ts +1 -34
- package/src/kiota-lock.json +2 -2
- package/src/models/index.ts +0 -47
- package/src/tpSharedDataModelClient.ts +8 -21
- package/src/v1.json +360 -395
|
@@ -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 */
|
package/dist/api/sdm/index.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/api/sdm/index.js
CHANGED
|
@@ -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("./
|
|
8
|
+
const index_js_1 = require("./alerts/index.js");
|
|
9
9
|
// @ts-ignore
|
|
10
|
-
const index_js_2 = require("./
|
|
10
|
+
const index_js_2 = require("./attachments/index.js");
|
|
11
11
|
// @ts-ignore
|
|
12
|
-
const index_js_3 = require("./
|
|
12
|
+
const index_js_3 = require("./item/index.js");
|
|
13
13
|
// @ts-ignore
|
|
14
|
-
const index_js_4 = require("./
|
|
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:
|
|
25
|
-
navigationMetadata:
|
|
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:
|
|
34
|
+
navigationMetadata: index_js_2.AttachmentsRequestBuilderNavigationMetadata,
|
|
30
35
|
},
|
|
31
36
|
mentions: {
|
|
32
|
-
requestsMetadata:
|
|
37
|
+
requestsMetadata: index_js_4.MentionsRequestBuilderRequestsMetadata,
|
|
33
38
|
},
|
|
34
39
|
schema: {
|
|
35
|
-
navigationMetadata:
|
|
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",
|
package/dist/models/index.d.ts
CHANGED
|
@@ -95,12 +95,6 @@ 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>);
|
|
104
98
|
/**
|
|
105
99
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
106
100
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -218,11 +212,6 @@ export declare function deserializeIntoSharedDataCreateAttachmentResponseDto(sha
|
|
|
218
212
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
219
213
|
*/
|
|
220
214
|
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>;
|
|
226
215
|
/**
|
|
227
216
|
* The deserialization information for the current model
|
|
228
217
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
@@ -281,10 +270,6 @@ export interface FieldMappingDto extends Parsable {
|
|
|
281
270
|
* The id property
|
|
282
271
|
*/
|
|
283
272
|
id?: string | null;
|
|
284
|
-
/**
|
|
285
|
-
* The kind property
|
|
286
|
-
*/
|
|
287
|
-
kind?: FieldMappingKind | null;
|
|
288
273
|
/**
|
|
289
274
|
* The source property
|
|
290
275
|
*/
|
|
@@ -298,7 +283,6 @@ export interface FieldMappingDto extends Parsable {
|
|
|
298
283
|
*/
|
|
299
284
|
type?: string | null;
|
|
300
285
|
}
|
|
301
|
-
export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
|
|
302
286
|
export interface GetEntityTypesDto extends Parsable {
|
|
303
287
|
/**
|
|
304
288
|
* The sdmTypes property
|
|
@@ -465,11 +449,6 @@ export declare function serializeSharedDataCreateAttachmentResponseDto(writer: S
|
|
|
465
449
|
* @param writer Serialization writer to use to serialize this model
|
|
466
450
|
*/
|
|
467
451
|
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;
|
|
473
452
|
/**
|
|
474
453
|
* Serializes information the current object
|
|
475
454
|
* @param writer Serialization writer to use to serialize this model
|
|
@@ -531,12 +510,6 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
|
|
|
531
510
|
*/
|
|
532
511
|
uri?: string | null;
|
|
533
512
|
}
|
|
534
|
-
export interface SharedDataDeleteDto extends Parsable {
|
|
535
|
-
/**
|
|
536
|
-
* The id property
|
|
537
|
-
*/
|
|
538
|
-
id?: number | null;
|
|
539
|
-
}
|
|
540
513
|
export interface TestTypeMappingDto extends Parsable {
|
|
541
514
|
/**
|
|
542
515
|
* The entityType property
|
|
@@ -652,11 +625,6 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
|
|
|
652
625
|
validationState?: ValidationState | null;
|
|
653
626
|
}
|
|
654
627
|
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
|
-
};
|
|
660
628
|
export declare const RefKindObject: {
|
|
661
629
|
readonly Single: "Single";
|
|
662
630
|
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 =
|
|
3
|
+
exports.ValidationStateObject = exports.RefKindObject = void 0;
|
|
4
4
|
exports.createCopyCurrentProfileRequestDtoFromDiscriminatorValue = createCopyCurrentProfileRequestDtoFromDiscriminatorValue;
|
|
5
5
|
exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
|
|
6
6
|
exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromDiscriminatorValue;
|
|
@@ -16,7 +16,6 @@ exports.createSdmTypeDefDtoFromDiscriminatorValue = createSdmTypeDefDtoFromDiscr
|
|
|
16
16
|
exports.createSetCurrentProfileRequestDtoFromDiscriminatorValue = createSetCurrentProfileRequestDtoFromDiscriminatorValue;
|
|
17
17
|
exports.createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue;
|
|
18
18
|
exports.createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue;
|
|
19
|
-
exports.createSharedDataDeleteDtoFromDiscriminatorValue = createSharedDataDeleteDtoFromDiscriminatorValue;
|
|
20
19
|
exports.createTestTypeMappingDtoFromDiscriminatorValue = createTestTypeMappingDtoFromDiscriminatorValue;
|
|
21
20
|
exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscriminatorValue;
|
|
22
21
|
exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
|
|
@@ -39,7 +38,6 @@ exports.deserializeIntoSdmTypeDefDto = deserializeIntoSdmTypeDefDto;
|
|
|
39
38
|
exports.deserializeIntoSetCurrentProfileRequestDto = deserializeIntoSetCurrentProfileRequestDto;
|
|
40
39
|
exports.deserializeIntoSharedDataCreateAttachmentResponseDto = deserializeIntoSharedDataCreateAttachmentResponseDto;
|
|
41
40
|
exports.deserializeIntoSharedDataCreateAttachmentResponseItemDto = deserializeIntoSharedDataCreateAttachmentResponseItemDto;
|
|
42
|
-
exports.deserializeIntoSharedDataDeleteDto = deserializeIntoSharedDataDeleteDto;
|
|
43
41
|
exports.deserializeIntoTestTypeMappingDto = deserializeIntoTestTypeMappingDto;
|
|
44
42
|
exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
|
|
45
43
|
exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
|
|
@@ -62,7 +60,6 @@ exports.serializeSdmTypeDefDto = serializeSdmTypeDefDto;
|
|
|
62
60
|
exports.serializeSetCurrentProfileRequestDto = serializeSetCurrentProfileRequestDto;
|
|
63
61
|
exports.serializeSharedDataCreateAttachmentResponseDto = serializeSharedDataCreateAttachmentResponseDto;
|
|
64
62
|
exports.serializeSharedDataCreateAttachmentResponseItemDto = serializeSharedDataCreateAttachmentResponseItemDto;
|
|
65
|
-
exports.serializeSharedDataDeleteDto = serializeSharedDataDeleteDto;
|
|
66
63
|
exports.serializeTestTypeMappingDto = serializeTestTypeMappingDto;
|
|
67
64
|
exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
|
|
68
65
|
exports.serializeTypeMappingDto = serializeTypeMappingDto;
|
|
@@ -217,15 +214,6 @@ function createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue(parse
|
|
|
217
214
|
function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode) {
|
|
218
215
|
return deserializeIntoSharedDataCreateAttachmentResponseItemDto;
|
|
219
216
|
}
|
|
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
|
-
}
|
|
229
217
|
/**
|
|
230
218
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
231
219
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -332,7 +320,6 @@ function deserializeIntoFieldDefDto(fieldDefDto = {}) {
|
|
|
332
320
|
function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
|
|
333
321
|
return {
|
|
334
322
|
"id": n => { fieldMappingDto.id = n.getStringValue(); },
|
|
335
|
-
"kind": n => { fieldMappingDto.kind = n.getEnumValue(exports.FieldMappingKindObject); },
|
|
336
323
|
"source": n => { fieldMappingDto.source = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
337
324
|
"target": n => { fieldMappingDto.target = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
338
325
|
"$type": n => { fieldMappingDto.type = n.getStringValue(); },
|
|
@@ -472,16 +459,6 @@ function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCrea
|
|
|
472
459
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
473
460
|
*/
|
|
474
461
|
// @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
|
|
485
462
|
function deserializeIntoTestTypeMappingDto(testTypeMappingDto = {}) {
|
|
486
463
|
return {
|
|
487
464
|
"entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
|
|
@@ -596,7 +573,6 @@ function serializeFieldDefDto(writer, fieldDefDto = {}) {
|
|
|
596
573
|
function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
|
|
597
574
|
if (fieldMappingDto) {
|
|
598
575
|
writer.writeStringValue("id", fieldMappingDto.id);
|
|
599
|
-
writer.writeEnumValue("kind", fieldMappingDto.kind);
|
|
600
576
|
writer.writeObjectValue("source", fieldMappingDto.source, serializeMappingFieldDefDto);
|
|
601
577
|
writer.writeObjectValue("target", fieldMappingDto.target, serializeMappingFieldDefDto);
|
|
602
578
|
writer.writeStringValue("$type", fieldMappingDto.type);
|
|
@@ -740,16 +716,6 @@ function serializeSharedDataCreateAttachmentResponseItemDto(writer, sharedDataCr
|
|
|
740
716
|
* @param writer Serialization writer to use to serialize this model
|
|
741
717
|
*/
|
|
742
718
|
// @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
|
|
753
719
|
function serializeTestTypeMappingDto(writer, testTypeMappingDto = {}) {
|
|
754
720
|
if (testTypeMappingDto) {
|
|
755
721
|
writer.writeStringValue("entityType", testTypeMappingDto.entityType);
|
|
@@ -836,11 +802,6 @@ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {})
|
|
|
836
802
|
writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
|
|
837
803
|
}
|
|
838
804
|
}
|
|
839
|
-
exports.FieldMappingKindObject = {
|
|
840
|
-
DefaultEscaped: "Default",
|
|
841
|
-
Custom: "Custom",
|
|
842
|
-
Empty: "Empty",
|
|
843
|
-
};
|
|
844
805
|
exports.RefKindObject = {
|
|
845
806
|
Single: "Single",
|
|
846
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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.
|
|
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.
|
|
18
|
+
"@microsoft/kiota-bundle": "^1.0.0-preview.80"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { type WithStorageKeyItemRequestBuilder, WithStorageKeyItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Builds and executes requests for operations under /api/sdm/alerts
|
|
11
|
+
*/
|
|
12
|
+
export interface AlertsRequestBuilder extends BaseRequestBuilder<AlertsRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Gets an item from the Tp.api.sdm.alerts.item collection
|
|
15
|
+
* @param storageKey Unique identifier of the item
|
|
16
|
+
* @returns {WithStorageKeyItemRequestBuilder}
|
|
17
|
+
*/
|
|
18
|
+
byStorageKey(storageKey: string) : WithStorageKeyItemRequestBuilder;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export const AlertsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the navigation properties in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export const AlertsRequestBuilderNavigationMetadata: Record<Exclude<keyof AlertsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
|
|
28
|
+
byStorageKey: {
|
|
29
|
+
requestsMetadata: WithStorageKeyItemRequestBuilderRequestsMetadata,
|
|
30
|
+
pathParametersMappings: ["storageKey"],
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/* tslint:enable */
|
|
34
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../../models/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { createUntypedNodeFromDiscriminatorValue, type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Builds and executes requests for operations under /api/sdm/alerts/{storageKey}
|
|
11
|
+
*/
|
|
12
|
+
export interface WithStorageKeyItemRequestBuilder extends BaseRequestBuilder<WithStorageKeyItemRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Gets alerts
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {Promise<UntypedNode>}
|
|
17
|
+
* @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
|
|
18
|
+
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
19
|
+
* @throws {ProblemDetails} error when the service returns a 404 status code
|
|
20
|
+
* @throws {ProblemDetails} error when the service returns a 409 status code
|
|
21
|
+
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
22
|
+
*/
|
|
23
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<UntypedNode | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets alerts
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {RequestInformation}
|
|
28
|
+
*/
|
|
29
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Uri template for the request builder.
|
|
33
|
+
*/
|
|
34
|
+
export const WithStorageKeyItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}";
|
|
35
|
+
/**
|
|
36
|
+
* Metadata for all the requests in the request builder.
|
|
37
|
+
*/
|
|
38
|
+
export const WithStorageKeyItemRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
39
|
+
get: {
|
|
40
|
+
uriTemplate: WithStorageKeyItemRequestBuilderUriTemplate,
|
|
41
|
+
responseBodyContentType: "application/json",
|
|
42
|
+
errorMappings: {
|
|
43
|
+
400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
44
|
+
401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
45
|
+
404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
46
|
+
409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
47
|
+
500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
48
|
+
},
|
|
49
|
+
adapterMethodName: "send",
|
|
50
|
+
responseBodyFactory: createUntypedNodeFromDiscriminatorValue,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
/* tslint:enable */
|
|
54
|
+
/* eslint-enable */
|
package/src/api/sdm/index.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// Generated by Microsoft Kiota
|
|
4
4
|
// @ts-ignore
|
|
5
|
+
import { AlertsRequestBuilderNavigationMetadata, type AlertsRequestBuilder } from './alerts/index.js';
|
|
6
|
+
// @ts-ignore
|
|
5
7
|
import { AttachmentsRequestBuilderNavigationMetadata, type AttachmentsRequestBuilder } from './attachments/index.js';
|
|
6
8
|
// @ts-ignore
|
|
7
9
|
import { type WithEntityTypeItemRequestBuilder, WithEntityTypeItemRequestBuilderNavigationMetadata, WithEntityTypeItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
@@ -16,6 +18,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
|
|
|
16
18
|
* Builds and executes requests for operations under /api/sdm
|
|
17
19
|
*/
|
|
18
20
|
export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
|
|
21
|
+
/**
|
|
22
|
+
* The alerts property
|
|
23
|
+
*/
|
|
24
|
+
get alerts(): AlertsRequestBuilder;
|
|
19
25
|
/**
|
|
20
26
|
* The attachments property
|
|
21
27
|
*/
|
|
@@ -48,6 +54,9 @@ export const SdmRequestBuilderNavigationMetadata: Record<Exclude<keyof SdmReques
|
|
|
48
54
|
navigationMetadata: WithEntityTypeItemRequestBuilderNavigationMetadata,
|
|
49
55
|
pathParametersMappings: ["entityType"],
|
|
50
56
|
},
|
|
57
|
+
alerts: {
|
|
58
|
+
navigationMetadata: AlertsRequestBuilderNavigationMetadata,
|
|
59
|
+
},
|
|
51
60
|
attachments: {
|
|
52
61
|
navigationMetadata: AttachmentsRequestBuilderNavigationMetadata,
|
|
53
62
|
},
|