@targetprocess/shared-data-model-client 0.8.1 → 0.9.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/index.d.ts +10 -0
- package/dist/api/sdm/index.js +10 -0
- package/dist/api/sdm/mentions/index.d.ts +36 -0
- package/dist/api/sdm/mentions/index.js +31 -0
- package/dist/api/sdm/schema/index.d.ts +21 -0
- package/dist/api/sdm/schema/index.js +23 -0
- package/dist/api/sdm/schema/item/index.d.ts +46 -0
- package/dist/api/sdm/schema/item/index.js +34 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/api/sdm/index.ts +18 -0
- package/src/api/sdm/mentions/index.ts +58 -0
- package/src/api/sdm/schema/index.ts +34 -0
- package/src/api/sdm/schema/item/index.ts +69 -0
- package/src/kiota-lock.json +1 -1
- package/src/models/index.ts +6 -0
- package/src/v1.json +271 -1
package/dist/api/sdm/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type AttachmentsRequestBuilder } from './attachments/index.js';
|
|
2
2
|
import { type WithEntityTypeItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type MentionsRequestBuilder } from './mentions/index.js';
|
|
4
|
+
import { type SchemaRequestBuilder } from './schema/index.js';
|
|
3
5
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
4
6
|
/**
|
|
5
7
|
* Builds and executes requests for operations under /api/sdm
|
|
@@ -9,6 +11,14 @@ export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder>
|
|
|
9
11
|
* The attachments property
|
|
10
12
|
*/
|
|
11
13
|
get attachments(): AttachmentsRequestBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* The mentions property
|
|
16
|
+
*/
|
|
17
|
+
get mentions(): MentionsRequestBuilder;
|
|
18
|
+
/**
|
|
19
|
+
* The schema property
|
|
20
|
+
*/
|
|
21
|
+
get schema(): SchemaRequestBuilder;
|
|
12
22
|
/**
|
|
13
23
|
* Gets an item from the Tp.api.sdm.item collection
|
|
14
24
|
* @param entityType Unique identifier of the item
|
package/dist/api/sdm/index.js
CHANGED
|
@@ -8,6 +8,10 @@ exports.SdmRequestBuilderNavigationMetadata = exports.SdmRequestBuilderUriTempla
|
|
|
8
8
|
const index_js_1 = require("./attachments/index.js");
|
|
9
9
|
// @ts-ignore
|
|
10
10
|
const index_js_2 = require("./item/index.js");
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
const index_js_3 = require("./mentions/index.js");
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
const index_js_4 = require("./schema/index.js");
|
|
11
15
|
/**
|
|
12
16
|
* Uri template for the request builder.
|
|
13
17
|
*/
|
|
@@ -24,6 +28,12 @@ exports.SdmRequestBuilderNavigationMetadata = {
|
|
|
24
28
|
attachments: {
|
|
25
29
|
navigationMetadata: index_js_1.AttachmentsRequestBuilderNavigationMetadata,
|
|
26
30
|
},
|
|
31
|
+
mentions: {
|
|
32
|
+
requestsMetadata: index_js_3.MentionsRequestBuilderRequestsMetadata,
|
|
33
|
+
},
|
|
34
|
+
schema: {
|
|
35
|
+
navigationMetadata: index_js_4.SchemaRequestBuilderNavigationMetadata,
|
|
36
|
+
},
|
|
27
37
|
};
|
|
28
38
|
/* tslint:enable */
|
|
29
39
|
/* eslint-enable */
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds and executes requests for operations under /api/sdm/mentions
|
|
4
|
+
*/
|
|
5
|
+
export interface MentionsRequestBuilder extends BaseRequestBuilder<MentionsRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Gets mentions
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
|
|
10
|
+
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
11
|
+
* @throws {ProblemDetails} error when the service returns a 404 status code
|
|
12
|
+
* @throws {ProblemDetails} error when the service returns a 409 status code
|
|
13
|
+
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
14
|
+
*/
|
|
15
|
+
get(requestConfiguration?: RequestConfiguration<MentionsRequestBuilderGetQueryParameters> | undefined): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets mentions
|
|
18
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
19
|
+
* @returns {RequestInformation}
|
|
20
|
+
*/
|
|
21
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<MentionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Gets mentions
|
|
25
|
+
*/
|
|
26
|
+
export interface MentionsRequestBuilderGetQueryParameters {
|
|
27
|
+
filter?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Uri template for the request builder.
|
|
31
|
+
*/
|
|
32
|
+
export declare const MentionsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/mentions?filter={filter}";
|
|
33
|
+
/**
|
|
34
|
+
* Metadata for all the requests in the request builder.
|
|
35
|
+
*/
|
|
36
|
+
export declare const MentionsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MentionsRequestBuilderRequestsMetadata = exports.MentionsRequestBuilderUriTemplate = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const index_js_1 = require("../../../models/index.js");
|
|
9
|
+
/**
|
|
10
|
+
* Uri template for the request builder.
|
|
11
|
+
*/
|
|
12
|
+
exports.MentionsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/mentions?filter={filter}";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for all the requests in the request builder.
|
|
15
|
+
*/
|
|
16
|
+
exports.MentionsRequestBuilderRequestsMetadata = {
|
|
17
|
+
get: {
|
|
18
|
+
uriTemplate: exports.MentionsRequestBuilderUriTemplate,
|
|
19
|
+
responseBodyContentType: "application/problem+json",
|
|
20
|
+
errorMappings: {
|
|
21
|
+
400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
|
|
22
|
+
401: index_js_1.createProblemDetailsFromDiscriminatorValue,
|
|
23
|
+
404: index_js_1.createProblemDetailsFromDiscriminatorValue,
|
|
24
|
+
409: index_js_1.createProblemDetailsFromDiscriminatorValue,
|
|
25
|
+
500: index_js_1.createProblemDetailsFromDiscriminatorValue,
|
|
26
|
+
},
|
|
27
|
+
adapterMethodName: "sendNoResponseContent",
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
/* tslint:enable */
|
|
31
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type WithEntityTypeItemRequestBuilder } 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/schema
|
|
5
|
+
*/
|
|
6
|
+
export interface SchemaRequestBuilder extends BaseRequestBuilder<SchemaRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Gets an item from the Tp.api.sdm.schema.item collection
|
|
9
|
+
* @param entityType Unique identifier of the item
|
|
10
|
+
* @returns {WithEntityTypeItemRequestBuilder}
|
|
11
|
+
*/
|
|
12
|
+
byEntityType(entityType: string): WithEntityTypeItemRequestBuilder;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Uri template for the request builder.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SchemaRequestBuilderUriTemplate = "{+baseurl}/api/sdm/schema";
|
|
18
|
+
/**
|
|
19
|
+
* Metadata for all the navigation properties in the request builder.
|
|
20
|
+
*/
|
|
21
|
+
export declare const SchemaRequestBuilderNavigationMetadata: Record<Exclude<keyof SchemaRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchemaRequestBuilderNavigationMetadata = exports.SchemaRequestBuilderUriTemplate = 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.SchemaRequestBuilderUriTemplate = "{+baseurl}/api/sdm/schema";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for all the navigation properties in the request builder.
|
|
15
|
+
*/
|
|
16
|
+
exports.SchemaRequestBuilderNavigationMetadata = {
|
|
17
|
+
byEntityType: {
|
|
18
|
+
requestsMetadata: index_js_1.WithEntityTypeItemRequestBuilderRequestsMetadata,
|
|
19
|
+
pathParametersMappings: ["entityType"],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
/* tslint:enable */
|
|
23
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,46 @@
|
|
|
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/schema/{entityType}
|
|
4
|
+
*/
|
|
5
|
+
export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<WithEntityTypeItemRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves Shared Data Model
|
|
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<WithEntityTypeItemRequestBuilderGetQueryParameters> | undefined): Promise<UntypedNode | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves Shared Data Model
|
|
19
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
|
+
* @returns {RequestInformation}
|
|
21
|
+
*/
|
|
22
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<WithEntityTypeItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves Shared Data Model
|
|
26
|
+
*/
|
|
27
|
+
export interface WithEntityTypeItemRequestBuilderGetQueryParameters {
|
|
28
|
+
convertAttachmentsHost?: string;
|
|
29
|
+
filter?: string;
|
|
30
|
+
id?: number;
|
|
31
|
+
isodate?: number;
|
|
32
|
+
orderBy?: string;
|
|
33
|
+
result?: string;
|
|
34
|
+
select?: string;
|
|
35
|
+
skip?: number;
|
|
36
|
+
take?: number;
|
|
37
|
+
where?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Uri template for the request builder.
|
|
41
|
+
*/
|
|
42
|
+
export declare const WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/schema/{entityType}{?convertAttachmentsHost*,filter*,id*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
43
|
+
/**
|
|
44
|
+
* Metadata for all the requests in the request builder.
|
|
45
|
+
*/
|
|
46
|
+
export declare const WithEntityTypeItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithEntityTypeItemRequestBuilderRequestsMetadata = exports.WithEntityTypeItemRequestBuilderUriTemplate = 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.WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/schema/{entityType}{?convertAttachmentsHost*,filter*,id*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
15
|
+
/**
|
|
16
|
+
* Metadata for all the requests in the request builder.
|
|
17
|
+
*/
|
|
18
|
+
exports.WithEntityTypeItemRequestBuilderRequestsMetadata = {
|
|
19
|
+
get: {
|
|
20
|
+
uriTemplate: exports.WithEntityTypeItemRequestBuilderUriTemplate,
|
|
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/models/index.d.ts
CHANGED
|
@@ -615,6 +615,10 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
|
|
|
615
615
|
* The errors property
|
|
616
616
|
*/
|
|
617
617
|
errors?: MappingErrorDto[] | null;
|
|
618
|
+
/**
|
|
619
|
+
* The isDefault property
|
|
620
|
+
*/
|
|
621
|
+
isDefault?: boolean | null;
|
|
618
622
|
/**
|
|
619
623
|
* The validationState property
|
|
620
624
|
*/
|
package/dist/models/index.js
CHANGED
|
@@ -538,6 +538,7 @@ function deserializeIntoValidatedTypeMappingDto(validatedTypeMappingDto = {}) {
|
|
|
538
538
|
return {
|
|
539
539
|
...deserializeIntoTypeMappingDto(validatedTypeMappingDto),
|
|
540
540
|
"errors": n => { validatedTypeMappingDto.errors = n.getCollectionOfObjectValues(createMappingErrorDtoFromDiscriminatorValue); },
|
|
541
|
+
"isDefault": n => { validatedTypeMappingDto.isDefault = n.getBooleanValue(); },
|
|
541
542
|
"validationState": n => { validatedTypeMappingDto.validationState = n.getEnumValue(exports.ValidationStateObject); },
|
|
542
543
|
};
|
|
543
544
|
}
|
|
@@ -796,6 +797,7 @@ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {})
|
|
|
796
797
|
if (validatedTypeMappingDto) {
|
|
797
798
|
serializeTypeMappingDto(writer, validatedTypeMappingDto);
|
|
798
799
|
writer.writeCollectionOfObjectValues("errors", validatedTypeMappingDto.errors, serializeMappingErrorDto);
|
|
800
|
+
writer.writeBooleanValue("isDefault", validatedTypeMappingDto.isDefault);
|
|
799
801
|
writer.writeEnumValue("validationState", validatedTypeMappingDto.validationState);
|
|
800
802
|
writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
|
|
801
803
|
}
|
package/package.json
CHANGED
package/src/api/sdm/index.ts
CHANGED
|
@@ -6,6 +6,10 @@ import { AttachmentsRequestBuilderNavigationMetadata, type AttachmentsRequestBui
|
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
import { type WithEntityTypeItemRequestBuilder, WithEntityTypeItemRequestBuilderNavigationMetadata, WithEntityTypeItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
8
8
|
// @ts-ignore
|
|
9
|
+
import { MentionsRequestBuilderRequestsMetadata, type MentionsRequestBuilder } from './mentions/index.js';
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
import { SchemaRequestBuilderNavigationMetadata, type SchemaRequestBuilder } from './schema/index.js';
|
|
12
|
+
// @ts-ignore
|
|
9
13
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
10
14
|
|
|
11
15
|
/**
|
|
@@ -16,6 +20,14 @@ export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder>
|
|
|
16
20
|
* The attachments property
|
|
17
21
|
*/
|
|
18
22
|
get attachments(): AttachmentsRequestBuilder;
|
|
23
|
+
/**
|
|
24
|
+
* The mentions property
|
|
25
|
+
*/
|
|
26
|
+
get mentions(): MentionsRequestBuilder;
|
|
27
|
+
/**
|
|
28
|
+
* The schema property
|
|
29
|
+
*/
|
|
30
|
+
get schema(): SchemaRequestBuilder;
|
|
19
31
|
/**
|
|
20
32
|
* Gets an item from the Tp.api.sdm.item collection
|
|
21
33
|
* @param entityType Unique identifier of the item
|
|
@@ -39,6 +51,12 @@ export const SdmRequestBuilderNavigationMetadata: Record<Exclude<keyof SdmReques
|
|
|
39
51
|
attachments: {
|
|
40
52
|
navigationMetadata: AttachmentsRequestBuilderNavigationMetadata,
|
|
41
53
|
},
|
|
54
|
+
mentions: {
|
|
55
|
+
requestsMetadata: MentionsRequestBuilderRequestsMetadata,
|
|
56
|
+
},
|
|
57
|
+
schema: {
|
|
58
|
+
navigationMetadata: SchemaRequestBuilderNavigationMetadata,
|
|
59
|
+
},
|
|
42
60
|
};
|
|
43
61
|
/* tslint:enable */
|
|
44
62
|
/* eslint-enable */
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Builds and executes requests for operations under /api/sdm/mentions
|
|
11
|
+
*/
|
|
12
|
+
export interface MentionsRequestBuilder extends BaseRequestBuilder<MentionsRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Gets mentions
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
|
|
17
|
+
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
18
|
+
* @throws {ProblemDetails} error when the service returns a 404 status code
|
|
19
|
+
* @throws {ProblemDetails} error when the service returns a 409 status code
|
|
20
|
+
* @throws {ProblemDetails} error when the service returns a 500 status code
|
|
21
|
+
*/
|
|
22
|
+
get(requestConfiguration?: RequestConfiguration<MentionsRequestBuilderGetQueryParameters> | undefined) : Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets mentions
|
|
25
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
26
|
+
* @returns {RequestInformation}
|
|
27
|
+
*/
|
|
28
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<MentionsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Gets mentions
|
|
32
|
+
*/
|
|
33
|
+
export interface MentionsRequestBuilderGetQueryParameters {
|
|
34
|
+
filter?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Uri template for the request builder.
|
|
38
|
+
*/
|
|
39
|
+
export const MentionsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/mentions?filter={filter}";
|
|
40
|
+
/**
|
|
41
|
+
* Metadata for all the requests in the request builder.
|
|
42
|
+
*/
|
|
43
|
+
export const MentionsRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
44
|
+
get: {
|
|
45
|
+
uriTemplate: MentionsRequestBuilderUriTemplate,
|
|
46
|
+
responseBodyContentType: "application/problem+json",
|
|
47
|
+
errorMappings: {
|
|
48
|
+
400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
49
|
+
401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
50
|
+
404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
51
|
+
409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
52
|
+
500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
53
|
+
},
|
|
54
|
+
adapterMethodName: "sendNoResponseContent",
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
/* tslint:enable */
|
|
58
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { type WithEntityTypeItemRequestBuilder, WithEntityTypeItemRequestBuilderRequestsMetadata } 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/schema
|
|
11
|
+
*/
|
|
12
|
+
export interface SchemaRequestBuilder extends BaseRequestBuilder<SchemaRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Gets an item from the Tp.api.sdm.schema.item collection
|
|
15
|
+
* @param entityType Unique identifier of the item
|
|
16
|
+
* @returns {WithEntityTypeItemRequestBuilder}
|
|
17
|
+
*/
|
|
18
|
+
byEntityType(entityType: string) : WithEntityTypeItemRequestBuilder;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export const SchemaRequestBuilderUriTemplate = "{+baseurl}/api/sdm/schema";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the navigation properties in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export const SchemaRequestBuilderNavigationMetadata: Record<Exclude<keyof SchemaRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
|
|
28
|
+
byEntityType: {
|
|
29
|
+
requestsMetadata: WithEntityTypeItemRequestBuilderRequestsMetadata,
|
|
30
|
+
pathParametersMappings: ["entityType"],
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/* tslint:enable */
|
|
34
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,69 @@
|
|
|
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/schema/{entityType}
|
|
11
|
+
*/
|
|
12
|
+
export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<WithEntityTypeItemRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves Shared Data Model
|
|
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<WithEntityTypeItemRequestBuilderGetQueryParameters> | undefined) : Promise<UntypedNode | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves Shared Data Model
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {RequestInformation}
|
|
28
|
+
*/
|
|
29
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<WithEntityTypeItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves Shared Data Model
|
|
33
|
+
*/
|
|
34
|
+
export interface WithEntityTypeItemRequestBuilderGetQueryParameters {
|
|
35
|
+
convertAttachmentsHost?: string;
|
|
36
|
+
filter?: string;
|
|
37
|
+
id?: number;
|
|
38
|
+
isodate?: number;
|
|
39
|
+
orderBy?: string;
|
|
40
|
+
result?: string;
|
|
41
|
+
select?: string;
|
|
42
|
+
skip?: number;
|
|
43
|
+
take?: number;
|
|
44
|
+
where?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Uri template for the request builder.
|
|
48
|
+
*/
|
|
49
|
+
export const WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/schema/{entityType}{?convertAttachmentsHost*,filter*,id*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
50
|
+
/**
|
|
51
|
+
* Metadata for all the requests in the request builder.
|
|
52
|
+
*/
|
|
53
|
+
export const WithEntityTypeItemRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
54
|
+
get: {
|
|
55
|
+
uriTemplate: WithEntityTypeItemRequestBuilderUriTemplate,
|
|
56
|
+
responseBodyContentType: "application/json",
|
|
57
|
+
errorMappings: {
|
|
58
|
+
400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
59
|
+
401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
60
|
+
404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
61
|
+
409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
62
|
+
500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
63
|
+
},
|
|
64
|
+
adapterMethodName: "send",
|
|
65
|
+
responseBodyFactory: createUntypedNodeFromDiscriminatorValue,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
/* tslint:enable */
|
|
69
|
+
/* eslint-enable */
|
package/src/kiota-lock.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "CD03B55C8118F24CE29EAF556A1550275A6D7DC873FA2C6B50F84C0D8471B1D0945485426CEA7000A4AED71595FE5F280AE289E8CE9D311602A33DCDD8B6A979",
|
|
3
3
|
"descriptionLocation": "v1.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
5
|
"kiotaVersion": "1.22.3",
|
package/src/models/index.ts
CHANGED
|
@@ -480,6 +480,7 @@ export function deserializeIntoValidatedTypeMappingDto(validatedTypeMappingDto:
|
|
|
480
480
|
return {
|
|
481
481
|
...deserializeIntoTypeMappingDto(validatedTypeMappingDto),
|
|
482
482
|
"errors": n => { validatedTypeMappingDto.errors = n.getCollectionOfObjectValues<MappingErrorDto>(createMappingErrorDtoFromDiscriminatorValue); },
|
|
483
|
+
"isDefault": n => { validatedTypeMappingDto.isDefault = n.getBooleanValue(); },
|
|
483
484
|
"validationState": n => { validatedTypeMappingDto.validationState = n.getEnumValue<ValidationState>(ValidationStateObject); },
|
|
484
485
|
}
|
|
485
486
|
}
|
|
@@ -865,6 +866,7 @@ export function serializeValidatedTypeMappingDto(writer: SerializationWriter, va
|
|
|
865
866
|
if (validatedTypeMappingDto) {
|
|
866
867
|
serializeTypeMappingDto(writer, validatedTypeMappingDto)
|
|
867
868
|
writer.writeCollectionOfObjectValues<MappingErrorDto>("errors", validatedTypeMappingDto.errors, serializeMappingErrorDto);
|
|
869
|
+
writer.writeBooleanValue("isDefault", validatedTypeMappingDto.isDefault);
|
|
868
870
|
writer.writeEnumValue<ValidationState>("validationState", validatedTypeMappingDto.validationState);
|
|
869
871
|
writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
|
|
870
872
|
}
|
|
@@ -1000,6 +1002,10 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
|
|
|
1000
1002
|
* The errors property
|
|
1001
1003
|
*/
|
|
1002
1004
|
errors?: MappingErrorDto[] | null;
|
|
1005
|
+
/**
|
|
1006
|
+
* The isDefault property
|
|
1007
|
+
*/
|
|
1008
|
+
isDefault?: boolean | null;
|
|
1003
1009
|
/**
|
|
1004
1010
|
* The validationState property
|
|
1005
1011
|
*/
|
package/src/v1.json
CHANGED
|
@@ -105,6 +105,268 @@
|
|
|
105
105
|
]
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
+
"/api/sdm/mentions": {
|
|
109
|
+
"get": {
|
|
110
|
+
"tags": [
|
|
111
|
+
"Sdm"
|
|
112
|
+
],
|
|
113
|
+
"summary": "Gets mentions",
|
|
114
|
+
"operationId": "MentionEndpoint",
|
|
115
|
+
"parameters": [
|
|
116
|
+
{
|
|
117
|
+
"name": "filter",
|
|
118
|
+
"in": "query",
|
|
119
|
+
"required": true,
|
|
120
|
+
"schema": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"responses": {
|
|
126
|
+
"204": {
|
|
127
|
+
"description": "No Content"
|
|
128
|
+
},
|
|
129
|
+
"401": {
|
|
130
|
+
"description": "Unauthorized",
|
|
131
|
+
"content": {
|
|
132
|
+
"application/problem+json": {
|
|
133
|
+
"schema": {
|
|
134
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"403": {
|
|
140
|
+
"description": "Forbidden"
|
|
141
|
+
},
|
|
142
|
+
"400": {
|
|
143
|
+
"description": "Validation error",
|
|
144
|
+
"content": {
|
|
145
|
+
"application/problem+json": {
|
|
146
|
+
"schema": {
|
|
147
|
+
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"404": {
|
|
153
|
+
"description": "Unable to find resource",
|
|
154
|
+
"content": {
|
|
155
|
+
"application/problem+json": {
|
|
156
|
+
"schema": {
|
|
157
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"409": {
|
|
163
|
+
"description": "Conflict",
|
|
164
|
+
"content": {
|
|
165
|
+
"application/problem+json": {
|
|
166
|
+
"schema": {
|
|
167
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"500": {
|
|
173
|
+
"description": "Internal server error",
|
|
174
|
+
"content": {
|
|
175
|
+
"application/problem+json": {
|
|
176
|
+
"schema": {
|
|
177
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"security": [
|
|
184
|
+
{
|
|
185
|
+
"JWTBearerAuth": []
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"OAuth2": []
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"/api/sdm/schema/{entityType}": {
|
|
194
|
+
"get": {
|
|
195
|
+
"tags": [
|
|
196
|
+
"Sdm"
|
|
197
|
+
],
|
|
198
|
+
"summary": "Retrieves Shared Data Model",
|
|
199
|
+
"operationId": "SharedDataGetSchemaEndpoint",
|
|
200
|
+
"parameters": [
|
|
201
|
+
{
|
|
202
|
+
"name": "entityType",
|
|
203
|
+
"in": "path",
|
|
204
|
+
"required": true,
|
|
205
|
+
"schema": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "id",
|
|
211
|
+
"in": "query",
|
|
212
|
+
"schema": {
|
|
213
|
+
"type": "integer",
|
|
214
|
+
"format": "int32",
|
|
215
|
+
"nullable": true
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "select",
|
|
220
|
+
"in": "query",
|
|
221
|
+
"schema": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"nullable": true
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "skip",
|
|
228
|
+
"in": "query",
|
|
229
|
+
"schema": {
|
|
230
|
+
"type": "integer",
|
|
231
|
+
"format": "int32",
|
|
232
|
+
"nullable": true
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "take",
|
|
237
|
+
"in": "query",
|
|
238
|
+
"schema": {
|
|
239
|
+
"type": "integer",
|
|
240
|
+
"format": "int32",
|
|
241
|
+
"nullable": true
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "where",
|
|
246
|
+
"in": "query",
|
|
247
|
+
"schema": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"nullable": true
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "filter",
|
|
254
|
+
"in": "query",
|
|
255
|
+
"schema": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"nullable": true
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "orderBy",
|
|
262
|
+
"in": "query",
|
|
263
|
+
"schema": {
|
|
264
|
+
"type": "string",
|
|
265
|
+
"nullable": true
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "result",
|
|
270
|
+
"in": "query",
|
|
271
|
+
"schema": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"nullable": true
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "isodate",
|
|
278
|
+
"in": "query",
|
|
279
|
+
"schema": {
|
|
280
|
+
"type": "integer",
|
|
281
|
+
"format": "int32",
|
|
282
|
+
"nullable": true
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "convertAttachmentsHost",
|
|
287
|
+
"in": "query",
|
|
288
|
+
"schema": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"nullable": true
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"responses": {
|
|
295
|
+
"200": {
|
|
296
|
+
"description": "Success",
|
|
297
|
+
"content": {
|
|
298
|
+
"application/json": {
|
|
299
|
+
"schema": {
|
|
300
|
+
"type": "array",
|
|
301
|
+
"items": {}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"401": {
|
|
307
|
+
"description": "Unauthorized",
|
|
308
|
+
"content": {
|
|
309
|
+
"application/problem+json": {
|
|
310
|
+
"schema": {
|
|
311
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"403": {
|
|
317
|
+
"description": "Forbidden"
|
|
318
|
+
},
|
|
319
|
+
"400": {
|
|
320
|
+
"description": "Validation error",
|
|
321
|
+
"content": {
|
|
322
|
+
"application/problem+json": {
|
|
323
|
+
"schema": {
|
|
324
|
+
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"404": {
|
|
330
|
+
"description": "Unable to find resource",
|
|
331
|
+
"content": {
|
|
332
|
+
"application/problem+json": {
|
|
333
|
+
"schema": {
|
|
334
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"409": {
|
|
340
|
+
"description": "Conflict",
|
|
341
|
+
"content": {
|
|
342
|
+
"application/problem+json": {
|
|
343
|
+
"schema": {
|
|
344
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"500": {
|
|
350
|
+
"description": "Internal server error",
|
|
351
|
+
"content": {
|
|
352
|
+
"application/problem+json": {
|
|
353
|
+
"schema": {
|
|
354
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"security": [
|
|
361
|
+
{
|
|
362
|
+
"JWTBearerAuth": []
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"OAuth2": []
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
},
|
|
108
370
|
"/api/sdm/{entityType}/{id}": {
|
|
109
371
|
"get": {
|
|
110
372
|
"tags": [
|
|
@@ -1372,6 +1634,10 @@
|
|
|
1372
1634
|
}
|
|
1373
1635
|
]
|
|
1374
1636
|
},
|
|
1637
|
+
"MentionsRequestDto": {
|
|
1638
|
+
"type": "object",
|
|
1639
|
+
"additionalProperties": false
|
|
1640
|
+
},
|
|
1375
1641
|
"SharedDataRequestDto": {
|
|
1376
1642
|
"type": "object",
|
|
1377
1643
|
"additionalProperties": false
|
|
@@ -1472,7 +1738,8 @@
|
|
|
1472
1738
|
"additionalProperties": false,
|
|
1473
1739
|
"required": [
|
|
1474
1740
|
"validationState",
|
|
1475
|
-
"errors"
|
|
1741
|
+
"errors",
|
|
1742
|
+
"isDefault"
|
|
1476
1743
|
],
|
|
1477
1744
|
"properties": {
|
|
1478
1745
|
"validationState": {
|
|
@@ -1483,6 +1750,9 @@
|
|
|
1483
1750
|
"items": {
|
|
1484
1751
|
"$ref": "#/components/schemas/MappingErrorDto"
|
|
1485
1752
|
}
|
|
1753
|
+
},
|
|
1754
|
+
"isDefault": {
|
|
1755
|
+
"type": "boolean"
|
|
1486
1756
|
}
|
|
1487
1757
|
}
|
|
1488
1758
|
}
|