@targetprocess/shared-data-model-client 0.1.0-0-0-3.1
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/index.d.ts +19 -0
- package/dist/api/index.js +22 -0
- package/dist/api/sharedData/index.d.ts +31 -0
- package/dist/api/sharedData/index.js +31 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +20 -0
- package/dist/models/index.d.ts +131 -0
- package/dist/models/index.js +173 -0
- package/dist/tpSharedDataModelClient.d.ts +24 -0
- package/dist/tpSharedDataModelClient.js +51 -0
- package/package.json +20 -0
- package/src/api/index.ts +31 -0
- package/src/api/sharedData/index.ts +52 -0
- package/src/index.ts +5 -0
- package/src/kiota-lock.json +34 -0
- package/src/models/index.ts +213 -0
- package/src/tpSharedDataModelClient.ts +57 -0
- package/src/v1.json +178 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type SharedDataRequestBuilder } from './sharedData/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api
|
|
5
|
+
*/
|
|
6
|
+
export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* The sharedData property
|
|
9
|
+
*/
|
|
10
|
+
get sharedData(): SharedDataRequestBuilder;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Uri template for the request builder.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ApiRequestBuilderUriTemplate = "{+baseurl}/api";
|
|
16
|
+
/**
|
|
17
|
+
* Metadata for all the navigation properties in the request builder.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ApiRequestBuilderNavigationMetadata: Record<Exclude<keyof ApiRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiRequestBuilderNavigationMetadata = exports.ApiRequestBuilderUriTemplate = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const index_js_1 = require("./sharedData/index.js");
|
|
9
|
+
/**
|
|
10
|
+
* Uri template for the request builder.
|
|
11
|
+
*/
|
|
12
|
+
exports.ApiRequestBuilderUriTemplate = "{+baseurl}/api";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for all the navigation properties in the request builder.
|
|
15
|
+
*/
|
|
16
|
+
exports.ApiRequestBuilderNavigationMetadata = {
|
|
17
|
+
sharedData: {
|
|
18
|
+
requestsMetadata: index_js_1.SharedDataRequestBuilderRequestsMetadata,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
/* tslint:enable */
|
|
22
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto } from '../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/sharedData
|
|
5
|
+
*/
|
|
6
|
+
export interface SharedDataRequestBuilder extends BaseRequestBuilder<SharedDataRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves data
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto>}
|
|
11
|
+
* @throws {MicrosoftAspNetCoreHttpHttpValidationProblemDetails} error when the service returns a 400 status code
|
|
12
|
+
* @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 401 status code
|
|
13
|
+
* @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 404 status code
|
|
14
|
+
* @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 500 status code
|
|
15
|
+
*/
|
|
16
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves data
|
|
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 SharedDataRequestBuilderUriTemplate = "{+baseurl}/api/sharedData";
|
|
28
|
+
/**
|
|
29
|
+
* Metadata for all the requests in the request builder.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SharedDataRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SharedDataRequestBuilderRequestsMetadata = exports.SharedDataRequestBuilderUriTemplate = 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.SharedDataRequestBuilderUriTemplate = "{+baseurl}/api/sharedData";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for all the requests in the request builder.
|
|
15
|
+
*/
|
|
16
|
+
exports.SharedDataRequestBuilderRequestsMetadata = {
|
|
17
|
+
get: {
|
|
18
|
+
uriTemplate: exports.SharedDataRequestBuilderUriTemplate,
|
|
19
|
+
responseBodyContentType: "application/json",
|
|
20
|
+
errorMappings: {
|
|
21
|
+
400: index_js_1.createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue,
|
|
22
|
+
401: index_js_1.createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue,
|
|
23
|
+
404: index_js_1.createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue,
|
|
24
|
+
500: index_js_1.createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue,
|
|
25
|
+
},
|
|
26
|
+
adapterMethodName: "send",
|
|
27
|
+
responseBodyFactory: index_js_1.createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
/* tslint:enable */
|
|
31
|
+
/* eslint-enable */
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*********************************************************************
|
|
3
|
+
* © Copyright IBM Corp. 2025
|
|
4
|
+
*********************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./tpSharedDataModelClient"), exports);
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
5
|
+
* @returns {MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors}
|
|
6
|
+
*/
|
|
7
|
+
export declare function createMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errorsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns {MicrosoftAspNetCoreHttpHttpValidationProblemDetails}
|
|
12
|
+
*/
|
|
13
|
+
export declare function createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue(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 {MicrosoftAspNetCoreMvcProblemDetails}
|
|
18
|
+
*/
|
|
19
|
+
export declare function createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
22
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
23
|
+
* @returns {TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto}
|
|
24
|
+
*/
|
|
25
|
+
export declare function createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
28
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
29
|
+
* @returns {TpSharedDataModelServiceModulesTargetprocessTpUser}
|
|
30
|
+
*/
|
|
31
|
+
export declare function createTpSharedDataModelServiceModulesTargetprocessTpUserFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
32
|
+
/**
|
|
33
|
+
* The deserialization information for the current model
|
|
34
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
35
|
+
*/
|
|
36
|
+
export declare function deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails(microsoftAspNetCoreHttpHttpValidationProblemDetails?: Partial<MicrosoftAspNetCoreHttpHttpValidationProblemDetails> | undefined): Record<string, (node: ParseNode) => void>;
|
|
37
|
+
/**
|
|
38
|
+
* The deserialization information for the current model
|
|
39
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
40
|
+
*/
|
|
41
|
+
export declare function deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors(microsoftAspNetCoreHttpHttpValidationProblemDetails_errors?: Partial<MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors> | undefined): Record<string, (node: ParseNode) => void>;
|
|
42
|
+
/**
|
|
43
|
+
* The deserialization information for the current model
|
|
44
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
45
|
+
*/
|
|
46
|
+
export declare function deserializeIntoMicrosoftAspNetCoreMvcProblemDetails(microsoftAspNetCoreMvcProblemDetails?: Partial<MicrosoftAspNetCoreMvcProblemDetails> | undefined): Record<string, (node: ParseNode) => void>;
|
|
47
|
+
/**
|
|
48
|
+
* The deserialization information for the current model
|
|
49
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
50
|
+
*/
|
|
51
|
+
export declare function deserializeIntoTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto(tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto?: Partial<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
52
|
+
/**
|
|
53
|
+
* The deserialization information for the current model
|
|
54
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
55
|
+
*/
|
|
56
|
+
export declare function deserializeIntoTpSharedDataModelServiceModulesTargetprocessTpUser(tpSharedDataModelServiceModulesTargetprocessTpUser?: Partial<TpSharedDataModelServiceModulesTargetprocessTpUser> | undefined): Record<string, (node: ParseNode) => void>;
|
|
57
|
+
export interface MicrosoftAspNetCoreHttpHttpValidationProblemDetails extends ApiError, MicrosoftAspNetCoreMvcProblemDetails, Parsable {
|
|
58
|
+
/**
|
|
59
|
+
* The errors property
|
|
60
|
+
*/
|
|
61
|
+
errors?: MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors | null;
|
|
62
|
+
}
|
|
63
|
+
export interface MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors extends AdditionalDataHolder, Parsable {
|
|
64
|
+
/**
|
|
65
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
66
|
+
*/
|
|
67
|
+
additionalData?: Record<string, unknown>;
|
|
68
|
+
}
|
|
69
|
+
export interface MicrosoftAspNetCoreMvcProblemDetails extends AdditionalDataHolder, ApiError, Parsable {
|
|
70
|
+
/**
|
|
71
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
72
|
+
*/
|
|
73
|
+
additionalData?: Record<string, unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* The detail property
|
|
76
|
+
*/
|
|
77
|
+
detail?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The instance property
|
|
80
|
+
*/
|
|
81
|
+
instance?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* The status property
|
|
84
|
+
*/
|
|
85
|
+
status?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
* The title property
|
|
88
|
+
*/
|
|
89
|
+
title?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* The type property
|
|
92
|
+
*/
|
|
93
|
+
type?: string | null;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Serializes information the current object
|
|
97
|
+
* @param writer Serialization writer to use to serialize this model
|
|
98
|
+
*/
|
|
99
|
+
export declare function serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails(writer: SerializationWriter, microsoftAspNetCoreHttpHttpValidationProblemDetails?: Partial<MicrosoftAspNetCoreHttpHttpValidationProblemDetails> | undefined | null): void;
|
|
100
|
+
/**
|
|
101
|
+
* Serializes information the current object
|
|
102
|
+
* @param writer Serialization writer to use to serialize this model
|
|
103
|
+
*/
|
|
104
|
+
export declare function serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors(writer: SerializationWriter, microsoftAspNetCoreHttpHttpValidationProblemDetails_errors?: Partial<MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors> | undefined | null): void;
|
|
105
|
+
/**
|
|
106
|
+
* Serializes information the current object
|
|
107
|
+
* @param writer Serialization writer to use to serialize this model
|
|
108
|
+
*/
|
|
109
|
+
export declare function serializeMicrosoftAspNetCoreMvcProblemDetails(writer: SerializationWriter, microsoftAspNetCoreMvcProblemDetails?: Partial<MicrosoftAspNetCoreMvcProblemDetails> | undefined | null): void;
|
|
110
|
+
/**
|
|
111
|
+
* Serializes information the current object
|
|
112
|
+
* @param writer Serialization writer to use to serialize this model
|
|
113
|
+
*/
|
|
114
|
+
export declare function serializeTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto(writer: SerializationWriter, tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto?: Partial<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto> | undefined | null): void;
|
|
115
|
+
/**
|
|
116
|
+
* Serializes information the current object
|
|
117
|
+
* @param writer Serialization writer to use to serialize this model
|
|
118
|
+
*/
|
|
119
|
+
export declare function serializeTpSharedDataModelServiceModulesTargetprocessTpUser(writer: SerializationWriter, tpSharedDataModelServiceModulesTargetprocessTpUser?: Partial<TpSharedDataModelServiceModulesTargetprocessTpUser> | undefined | null): void;
|
|
120
|
+
export interface TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto extends Parsable {
|
|
121
|
+
/**
|
|
122
|
+
* The users property
|
|
123
|
+
*/
|
|
124
|
+
users?: TpSharedDataModelServiceModulesTargetprocessTpUser[] | null;
|
|
125
|
+
}
|
|
126
|
+
export interface TpSharedDataModelServiceModulesTargetprocessTpUser extends Parsable {
|
|
127
|
+
/**
|
|
128
|
+
* The email property
|
|
129
|
+
*/
|
|
130
|
+
email?: string | null;
|
|
131
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errorsFromDiscriminatorValue = createMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errorsFromDiscriminatorValue;
|
|
4
|
+
exports.createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue = createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue;
|
|
5
|
+
exports.createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue = createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue;
|
|
6
|
+
exports.createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue = createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue;
|
|
7
|
+
exports.createTpSharedDataModelServiceModulesTargetprocessTpUserFromDiscriminatorValue = createTpSharedDataModelServiceModulesTargetprocessTpUserFromDiscriminatorValue;
|
|
8
|
+
exports.deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails = deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails;
|
|
9
|
+
exports.deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors = deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors;
|
|
10
|
+
exports.deserializeIntoMicrosoftAspNetCoreMvcProblemDetails = deserializeIntoMicrosoftAspNetCoreMvcProblemDetails;
|
|
11
|
+
exports.deserializeIntoTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto = deserializeIntoTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto;
|
|
12
|
+
exports.deserializeIntoTpSharedDataModelServiceModulesTargetprocessTpUser = deserializeIntoTpSharedDataModelServiceModulesTargetprocessTpUser;
|
|
13
|
+
exports.serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails = serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails;
|
|
14
|
+
exports.serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors = serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors;
|
|
15
|
+
exports.serializeMicrosoftAspNetCoreMvcProblemDetails = serializeMicrosoftAspNetCoreMvcProblemDetails;
|
|
16
|
+
exports.serializeTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto = serializeTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto;
|
|
17
|
+
exports.serializeTpSharedDataModelServiceModulesTargetprocessTpUser = serializeTpSharedDataModelServiceModulesTargetprocessTpUser;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
20
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
21
|
+
* @returns {MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors}
|
|
22
|
+
*/
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
function createMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errorsFromDiscriminatorValue(parseNode) {
|
|
25
|
+
return deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
29
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
30
|
+
* @returns {MicrosoftAspNetCoreHttpHttpValidationProblemDetails}
|
|
31
|
+
*/
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
function createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue(parseNode) {
|
|
34
|
+
return deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
38
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
39
|
+
* @returns {MicrosoftAspNetCoreMvcProblemDetails}
|
|
40
|
+
*/
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
function createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue(parseNode) {
|
|
43
|
+
return deserializeIntoMicrosoftAspNetCoreMvcProblemDetails;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
47
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
48
|
+
* @returns {TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto}
|
|
49
|
+
*/
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
function createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue(parseNode) {
|
|
52
|
+
return deserializeIntoTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
56
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
57
|
+
* @returns {TpSharedDataModelServiceModulesTargetprocessTpUser}
|
|
58
|
+
*/
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
function createTpSharedDataModelServiceModulesTargetprocessTpUserFromDiscriminatorValue(parseNode) {
|
|
61
|
+
return deserializeIntoTpSharedDataModelServiceModulesTargetprocessTpUser;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The deserialization information for the current model
|
|
65
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
66
|
+
*/
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
function deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails(microsoftAspNetCoreHttpHttpValidationProblemDetails = {}) {
|
|
69
|
+
return {
|
|
70
|
+
...deserializeIntoMicrosoftAspNetCoreMvcProblemDetails(microsoftAspNetCoreHttpHttpValidationProblemDetails),
|
|
71
|
+
"errors": n => { microsoftAspNetCoreHttpHttpValidationProblemDetails.errors = n.getObjectValue(createMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errorsFromDiscriminatorValue); },
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The deserialization information for the current model
|
|
76
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
77
|
+
*/
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
function deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors(microsoftAspNetCoreHttpHttpValidationProblemDetails_errors = {}) {
|
|
80
|
+
return {};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The deserialization information for the current model
|
|
84
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
85
|
+
*/
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
function deserializeIntoMicrosoftAspNetCoreMvcProblemDetails(microsoftAspNetCoreMvcProblemDetails = {}) {
|
|
88
|
+
return {
|
|
89
|
+
"detail": n => { microsoftAspNetCoreMvcProblemDetails.detail = n.getStringValue(); },
|
|
90
|
+
"instance": n => { microsoftAspNetCoreMvcProblemDetails.instance = n.getStringValue(); },
|
|
91
|
+
"status": n => { microsoftAspNetCoreMvcProblemDetails.status = n.getNumberValue(); },
|
|
92
|
+
"title": n => { microsoftAspNetCoreMvcProblemDetails.title = n.getStringValue(); },
|
|
93
|
+
"type": n => { microsoftAspNetCoreMvcProblemDetails.type = n.getStringValue(); },
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The deserialization information for the current model
|
|
98
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
99
|
+
*/
|
|
100
|
+
// @ts-ignore
|
|
101
|
+
function deserializeIntoTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto(tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto = {}) {
|
|
102
|
+
return {
|
|
103
|
+
"users": n => { tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto.users = n.getCollectionOfObjectValues(createTpSharedDataModelServiceModulesTargetprocessTpUserFromDiscriminatorValue); },
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The deserialization information for the current model
|
|
108
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
109
|
+
*/
|
|
110
|
+
// @ts-ignore
|
|
111
|
+
function deserializeIntoTpSharedDataModelServiceModulesTargetprocessTpUser(tpSharedDataModelServiceModulesTargetprocessTpUser = {}) {
|
|
112
|
+
return {
|
|
113
|
+
"email": n => { tpSharedDataModelServiceModulesTargetprocessTpUser.email = n.getStringValue(); },
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Serializes information the current object
|
|
118
|
+
* @param writer Serialization writer to use to serialize this model
|
|
119
|
+
*/
|
|
120
|
+
// @ts-ignore
|
|
121
|
+
function serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails(writer, microsoftAspNetCoreHttpHttpValidationProblemDetails = {}) {
|
|
122
|
+
if (microsoftAspNetCoreHttpHttpValidationProblemDetails) {
|
|
123
|
+
serializeMicrosoftAspNetCoreMvcProblemDetails(writer, microsoftAspNetCoreHttpHttpValidationProblemDetails);
|
|
124
|
+
writer.writeObjectValue("errors", microsoftAspNetCoreHttpHttpValidationProblemDetails.errors, serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Serializes information the current object
|
|
129
|
+
* @param writer Serialization writer to use to serialize this model
|
|
130
|
+
*/
|
|
131
|
+
// @ts-ignore
|
|
132
|
+
function serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors(writer, microsoftAspNetCoreHttpHttpValidationProblemDetails_errors = {}) {
|
|
133
|
+
if (microsoftAspNetCoreHttpHttpValidationProblemDetails_errors) {
|
|
134
|
+
writer.writeAdditionalData(microsoftAspNetCoreHttpHttpValidationProblemDetails_errors.additionalData);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Serializes information the current object
|
|
139
|
+
* @param writer Serialization writer to use to serialize this model
|
|
140
|
+
*/
|
|
141
|
+
// @ts-ignore
|
|
142
|
+
function serializeMicrosoftAspNetCoreMvcProblemDetails(writer, microsoftAspNetCoreMvcProblemDetails = {}) {
|
|
143
|
+
if (microsoftAspNetCoreMvcProblemDetails) {
|
|
144
|
+
writer.writeStringValue("detail", microsoftAspNetCoreMvcProblemDetails.detail);
|
|
145
|
+
writer.writeStringValue("instance", microsoftAspNetCoreMvcProblemDetails.instance);
|
|
146
|
+
writer.writeNumberValue("status", microsoftAspNetCoreMvcProblemDetails.status);
|
|
147
|
+
writer.writeStringValue("title", microsoftAspNetCoreMvcProblemDetails.title);
|
|
148
|
+
writer.writeStringValue("type", microsoftAspNetCoreMvcProblemDetails.type);
|
|
149
|
+
writer.writeAdditionalData(microsoftAspNetCoreMvcProblemDetails.additionalData);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Serializes information the current object
|
|
154
|
+
* @param writer Serialization writer to use to serialize this model
|
|
155
|
+
*/
|
|
156
|
+
// @ts-ignore
|
|
157
|
+
function serializeTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto(writer, tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto = {}) {
|
|
158
|
+
if (tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto) {
|
|
159
|
+
writer.writeCollectionOfObjectValues("users", tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto.users, serializeTpSharedDataModelServiceModulesTargetprocessTpUser);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Serializes information the current object
|
|
164
|
+
* @param writer Serialization writer to use to serialize this model
|
|
165
|
+
*/
|
|
166
|
+
// @ts-ignore
|
|
167
|
+
function serializeTpSharedDataModelServiceModulesTargetprocessTpUser(writer, tpSharedDataModelServiceModulesTargetprocessTpUser = {}) {
|
|
168
|
+
if (tpSharedDataModelServiceModulesTargetprocessTpUser) {
|
|
169
|
+
writer.writeStringValue("email", tpSharedDataModelServiceModulesTargetprocessTpUser.email);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
/* tslint:enable */
|
|
173
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ApiRequestBuilder } from './api/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Instantiates a new {@link TpSharedDataModelClient} and sets the default values.
|
|
5
|
+
* @param requestAdapter The request adapter to use to execute the requests.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createTpSharedDataModelClient(requestAdapter: RequestAdapter): TpSharedDataModelClient;
|
|
8
|
+
/**
|
|
9
|
+
* The main entry point of the SDK, exposes the configuration and the fluent API.
|
|
10
|
+
*/
|
|
11
|
+
export interface TpSharedDataModelClient extends BaseRequestBuilder<TpSharedDataModelClient> {
|
|
12
|
+
/**
|
|
13
|
+
* The api property
|
|
14
|
+
*/
|
|
15
|
+
get api(): ApiRequestBuilder;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Uri template for the request builder.
|
|
19
|
+
*/
|
|
20
|
+
export declare const TpSharedDataModelClientUriTemplate = "{+baseurl}";
|
|
21
|
+
/**
|
|
22
|
+
* Metadata for all the navigation properties in the request builder.
|
|
23
|
+
*/
|
|
24
|
+
export declare const TpSharedDataModelClientNavigationMetadata: Record<Exclude<keyof TpSharedDataModelClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TpSharedDataModelClientNavigationMetadata = exports.TpSharedDataModelClientUriTemplate = void 0;
|
|
4
|
+
exports.createTpSharedDataModelClient = createTpSharedDataModelClient;
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
// Generated by Microsoft Kiota
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
const index_js_1 = require("./api/index.js");
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
const kiota_serialization_form_1 = require("@microsoft/kiota-serialization-form");
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
const kiota_serialization_json_1 = require("@microsoft/kiota-serialization-json");
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
const kiota_serialization_multipart_1 = require("@microsoft/kiota-serialization-multipart");
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text");
|
|
20
|
+
/**
|
|
21
|
+
* Instantiates a new {@link TpSharedDataModelClient} and sets the default values.
|
|
22
|
+
* @param requestAdapter The request adapter to use to execute the requests.
|
|
23
|
+
*/
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
function createTpSharedDataModelClient(requestAdapter) {
|
|
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);
|
|
33
|
+
const pathParameters = {
|
|
34
|
+
"baseurl": requestAdapter.baseUrl,
|
|
35
|
+
};
|
|
36
|
+
return (0, kiota_abstractions_1.apiClientProxifier)(requestAdapter, pathParameters, exports.TpSharedDataModelClientNavigationMetadata, undefined);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Uri template for the request builder.
|
|
40
|
+
*/
|
|
41
|
+
exports.TpSharedDataModelClientUriTemplate = "{+baseurl}";
|
|
42
|
+
/**
|
|
43
|
+
* Metadata for all the navigation properties in the request builder.
|
|
44
|
+
*/
|
|
45
|
+
exports.TpSharedDataModelClientNavigationMetadata = {
|
|
46
|
+
api: {
|
|
47
|
+
navigationMetadata: index_js_1.ApiRequestBuilderNavigationMetadata,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
/* tslint:enable */
|
|
51
|
+
/* eslint-enable */
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@targetprocess/shared-data-model-client",
|
|
3
|
+
"version": "0.1.0-0-0-3.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
},
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/node": "^22.10.10",
|
|
15
|
+
"typescript": "^5.7.3"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@microsoft/kiota-bundle": "^1.0.0-preview.80"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/src/api/index.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { SharedDataRequestBuilderRequestsMetadata, type SharedDataRequestBuilder } from './sharedData/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
|
|
11
|
+
*/
|
|
12
|
+
export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* The sharedData property
|
|
15
|
+
*/
|
|
16
|
+
get sharedData(): SharedDataRequestBuilder;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Uri template for the request builder.
|
|
20
|
+
*/
|
|
21
|
+
export const ApiRequestBuilderUriTemplate = "{+baseurl}/api";
|
|
22
|
+
/**
|
|
23
|
+
* Metadata for all the navigation properties in the request builder.
|
|
24
|
+
*/
|
|
25
|
+
export const ApiRequestBuilderNavigationMetadata: Record<Exclude<keyof ApiRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
|
|
26
|
+
sharedData: {
|
|
27
|
+
requestsMetadata: SharedDataRequestBuilderRequestsMetadata,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
/* tslint:enable */
|
|
31
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue, createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue, createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue, type MicrosoftAspNetCoreHttpHttpValidationProblemDetails, type MicrosoftAspNetCoreMvcProblemDetails, type TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto } 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/sharedData
|
|
11
|
+
*/
|
|
12
|
+
export interface SharedDataRequestBuilder extends BaseRequestBuilder<SharedDataRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves data
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {Promise<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto>}
|
|
17
|
+
* @throws {MicrosoftAspNetCoreHttpHttpValidationProblemDetails} error when the service returns a 400 status code
|
|
18
|
+
* @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 401 status code
|
|
19
|
+
* @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 404 status code
|
|
20
|
+
* @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 500 status code
|
|
21
|
+
*/
|
|
22
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto | undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves data
|
|
25
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
26
|
+
* @returns {RequestInformation}
|
|
27
|
+
*/
|
|
28
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Uri template for the request builder.
|
|
32
|
+
*/
|
|
33
|
+
export const SharedDataRequestBuilderUriTemplate = "{+baseurl}/api/sharedData";
|
|
34
|
+
/**
|
|
35
|
+
* Metadata for all the requests in the request builder.
|
|
36
|
+
*/
|
|
37
|
+
export const SharedDataRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
38
|
+
get: {
|
|
39
|
+
uriTemplate: SharedDataRequestBuilderUriTemplate,
|
|
40
|
+
responseBodyContentType: "application/json",
|
|
41
|
+
errorMappings: {
|
|
42
|
+
400: createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
43
|
+
401: createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
44
|
+
404: createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
45
|
+
500: createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
46
|
+
},
|
|
47
|
+
adapterMethodName: "send",
|
|
48
|
+
responseBodyFactory: createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
/* tslint:enable */
|
|
52
|
+
/* eslint-enable */
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"descriptionHash": "91B9F1F18DAD919D78FA160BA1C07926F4DED9F47ACF31D066134F79A14F85A91929513C17D424D4D063C800E738B4D294C1586BF8256C3DA8DD2339DA4556AB",
|
|
3
|
+
"descriptionLocation": "v1.json",
|
|
4
|
+
"lockFileVersion": "1.0.0",
|
|
5
|
+
"kiotaVersion": "1.22.3",
|
|
6
|
+
"clientClassName": "TpSharedDataModelClient",
|
|
7
|
+
"typeAccessModifier": "Public",
|
|
8
|
+
"clientNamespaceName": "Tp",
|
|
9
|
+
"language": "TypeScript",
|
|
10
|
+
"usesBackingStore": false,
|
|
11
|
+
"excludeBackwardCompatible": false,
|
|
12
|
+
"includeAdditionalData": true,
|
|
13
|
+
"disableSSLValidation": false,
|
|
14
|
+
"serializers": [
|
|
15
|
+
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
|
|
16
|
+
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
|
|
17
|
+
"Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
|
|
18
|
+
"Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
|
|
19
|
+
],
|
|
20
|
+
"deserializers": [
|
|
21
|
+
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
|
|
22
|
+
"Microsoft.Kiota.Serialization.Text.TextParseNodeFactory",
|
|
23
|
+
"Microsoft.Kiota.Serialization.Form.FormParseNodeFactory"
|
|
24
|
+
],
|
|
25
|
+
"structuredMimeTypes": [
|
|
26
|
+
"application/json",
|
|
27
|
+
"text/plain;q=0.9",
|
|
28
|
+
"application/x-www-form-urlencoded;q=0.2",
|
|
29
|
+
"multipart/form-data;q=0.1"
|
|
30
|
+
],
|
|
31
|
+
"includePatterns": [],
|
|
32
|
+
"excludePatterns": [],
|
|
33
|
+
"disabledValidationRules": []
|
|
34
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
9
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
10
|
+
* @returns {MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors}
|
|
11
|
+
*/
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
export function createMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errorsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
14
|
+
return deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
18
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
19
|
+
* @returns {MicrosoftAspNetCoreHttpHttpValidationProblemDetails}
|
|
20
|
+
*/
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
export function createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
23
|
+
return deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
27
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
28
|
+
* @returns {MicrosoftAspNetCoreMvcProblemDetails}
|
|
29
|
+
*/
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
export function createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
32
|
+
return deserializeIntoMicrosoftAspNetCoreMvcProblemDetails;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
36
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
37
|
+
* @returns {TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto}
|
|
38
|
+
*/
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
export function createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
41
|
+
return deserializeIntoTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
45
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
46
|
+
* @returns {TpSharedDataModelServiceModulesTargetprocessTpUser}
|
|
47
|
+
*/
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
export function createTpSharedDataModelServiceModulesTargetprocessTpUserFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
50
|
+
return deserializeIntoTpSharedDataModelServiceModulesTargetprocessTpUser;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The deserialization information for the current model
|
|
54
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
55
|
+
*/
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
export function deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails(microsoftAspNetCoreHttpHttpValidationProblemDetails: Partial<MicrosoftAspNetCoreHttpHttpValidationProblemDetails> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
58
|
+
return {
|
|
59
|
+
...deserializeIntoMicrosoftAspNetCoreMvcProblemDetails(microsoftAspNetCoreHttpHttpValidationProblemDetails),
|
|
60
|
+
"errors": n => { microsoftAspNetCoreHttpHttpValidationProblemDetails.errors = n.getObjectValue<MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors>(createMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errorsFromDiscriminatorValue); },
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The deserialization information for the current model
|
|
65
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
66
|
+
*/
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
export function deserializeIntoMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors(microsoftAspNetCoreHttpHttpValidationProblemDetails_errors: Partial<MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
69
|
+
return {
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The deserialization information for the current model
|
|
74
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
75
|
+
*/
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
export function deserializeIntoMicrosoftAspNetCoreMvcProblemDetails(microsoftAspNetCoreMvcProblemDetails: Partial<MicrosoftAspNetCoreMvcProblemDetails> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
78
|
+
return {
|
|
79
|
+
"detail": n => { microsoftAspNetCoreMvcProblemDetails.detail = n.getStringValue(); },
|
|
80
|
+
"instance": n => { microsoftAspNetCoreMvcProblemDetails.instance = n.getStringValue(); },
|
|
81
|
+
"status": n => { microsoftAspNetCoreMvcProblemDetails.status = n.getNumberValue(); },
|
|
82
|
+
"title": n => { microsoftAspNetCoreMvcProblemDetails.title = n.getStringValue(); },
|
|
83
|
+
"type": n => { microsoftAspNetCoreMvcProblemDetails.type = n.getStringValue(); },
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The deserialization information for the current model
|
|
88
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
89
|
+
*/
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
export function deserializeIntoTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto(tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto: Partial<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
92
|
+
return {
|
|
93
|
+
"users": n => { tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto.users = n.getCollectionOfObjectValues<TpSharedDataModelServiceModulesTargetprocessTpUser>(createTpSharedDataModelServiceModulesTargetprocessTpUserFromDiscriminatorValue); },
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The deserialization information for the current model
|
|
98
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
99
|
+
*/
|
|
100
|
+
// @ts-ignore
|
|
101
|
+
export function deserializeIntoTpSharedDataModelServiceModulesTargetprocessTpUser(tpSharedDataModelServiceModulesTargetprocessTpUser: Partial<TpSharedDataModelServiceModulesTargetprocessTpUser> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
102
|
+
return {
|
|
103
|
+
"email": n => { tpSharedDataModelServiceModulesTargetprocessTpUser.email = n.getStringValue(); },
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export interface MicrosoftAspNetCoreHttpHttpValidationProblemDetails extends ApiError, MicrosoftAspNetCoreMvcProblemDetails, Parsable {
|
|
107
|
+
/**
|
|
108
|
+
* The errors property
|
|
109
|
+
*/
|
|
110
|
+
errors?: MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors | null;
|
|
111
|
+
}
|
|
112
|
+
export interface MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors extends AdditionalDataHolder, Parsable {
|
|
113
|
+
/**
|
|
114
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
115
|
+
*/
|
|
116
|
+
additionalData?: Record<string, unknown>;
|
|
117
|
+
}
|
|
118
|
+
export interface MicrosoftAspNetCoreMvcProblemDetails extends AdditionalDataHolder, ApiError, Parsable {
|
|
119
|
+
/**
|
|
120
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
121
|
+
*/
|
|
122
|
+
additionalData?: Record<string, unknown>;
|
|
123
|
+
/**
|
|
124
|
+
* The detail property
|
|
125
|
+
*/
|
|
126
|
+
detail?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* The instance property
|
|
129
|
+
*/
|
|
130
|
+
instance?: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* The status property
|
|
133
|
+
*/
|
|
134
|
+
status?: number | null;
|
|
135
|
+
/**
|
|
136
|
+
* The title property
|
|
137
|
+
*/
|
|
138
|
+
title?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* The type property
|
|
141
|
+
*/
|
|
142
|
+
type?: string | null;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Serializes information the current object
|
|
146
|
+
* @param writer Serialization writer to use to serialize this model
|
|
147
|
+
*/
|
|
148
|
+
// @ts-ignore
|
|
149
|
+
export function serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails(writer: SerializationWriter, microsoftAspNetCoreHttpHttpValidationProblemDetails: Partial<MicrosoftAspNetCoreHttpHttpValidationProblemDetails> | undefined | null = {}) : void {
|
|
150
|
+
if (microsoftAspNetCoreHttpHttpValidationProblemDetails) {
|
|
151
|
+
serializeMicrosoftAspNetCoreMvcProblemDetails(writer, microsoftAspNetCoreHttpHttpValidationProblemDetails)
|
|
152
|
+
writer.writeObjectValue<MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors>("errors", microsoftAspNetCoreHttpHttpValidationProblemDetails.errors, serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Serializes information the current object
|
|
157
|
+
* @param writer Serialization writer to use to serialize this model
|
|
158
|
+
*/
|
|
159
|
+
// @ts-ignore
|
|
160
|
+
export function serializeMicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors(writer: SerializationWriter, microsoftAspNetCoreHttpHttpValidationProblemDetails_errors: Partial<MicrosoftAspNetCoreHttpHttpValidationProblemDetails_errors> | undefined | null = {}) : void {
|
|
161
|
+
if (microsoftAspNetCoreHttpHttpValidationProblemDetails_errors) {
|
|
162
|
+
writer.writeAdditionalData(microsoftAspNetCoreHttpHttpValidationProblemDetails_errors.additionalData);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Serializes information the current object
|
|
167
|
+
* @param writer Serialization writer to use to serialize this model
|
|
168
|
+
*/
|
|
169
|
+
// @ts-ignore
|
|
170
|
+
export function serializeMicrosoftAspNetCoreMvcProblemDetails(writer: SerializationWriter, microsoftAspNetCoreMvcProblemDetails: Partial<MicrosoftAspNetCoreMvcProblemDetails> | undefined | null = {}) : void {
|
|
171
|
+
if (microsoftAspNetCoreMvcProblemDetails) {
|
|
172
|
+
writer.writeStringValue("detail", microsoftAspNetCoreMvcProblemDetails.detail);
|
|
173
|
+
writer.writeStringValue("instance", microsoftAspNetCoreMvcProblemDetails.instance);
|
|
174
|
+
writer.writeNumberValue("status", microsoftAspNetCoreMvcProblemDetails.status);
|
|
175
|
+
writer.writeStringValue("title", microsoftAspNetCoreMvcProblemDetails.title);
|
|
176
|
+
writer.writeStringValue("type", microsoftAspNetCoreMvcProblemDetails.type);
|
|
177
|
+
writer.writeAdditionalData(microsoftAspNetCoreMvcProblemDetails.additionalData);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Serializes information the current object
|
|
182
|
+
* @param writer Serialization writer to use to serialize this model
|
|
183
|
+
*/
|
|
184
|
+
// @ts-ignore
|
|
185
|
+
export function serializeTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto(writer: SerializationWriter, tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto: Partial<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto> | undefined | null = {}) : void {
|
|
186
|
+
if (tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto) {
|
|
187
|
+
writer.writeCollectionOfObjectValues<TpSharedDataModelServiceModulesTargetprocessTpUser>("users", tpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto.users, serializeTpSharedDataModelServiceModulesTargetprocessTpUser);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Serializes information the current object
|
|
192
|
+
* @param writer Serialization writer to use to serialize this model
|
|
193
|
+
*/
|
|
194
|
+
// @ts-ignore
|
|
195
|
+
export function serializeTpSharedDataModelServiceModulesTargetprocessTpUser(writer: SerializationWriter, tpSharedDataModelServiceModulesTargetprocessTpUser: Partial<TpSharedDataModelServiceModulesTargetprocessTpUser> | undefined | null = {}) : void {
|
|
196
|
+
if (tpSharedDataModelServiceModulesTargetprocessTpUser) {
|
|
197
|
+
writer.writeStringValue("email", tpSharedDataModelServiceModulesTargetprocessTpUser.email);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
export interface TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto extends Parsable {
|
|
201
|
+
/**
|
|
202
|
+
* The users property
|
|
203
|
+
*/
|
|
204
|
+
users?: TpSharedDataModelServiceModulesTargetprocessTpUser[] | null;
|
|
205
|
+
}
|
|
206
|
+
export interface TpSharedDataModelServiceModulesTargetprocessTpUser extends Parsable {
|
|
207
|
+
/**
|
|
208
|
+
* The email property
|
|
209
|
+
*/
|
|
210
|
+
email?: string | null;
|
|
211
|
+
}
|
|
212
|
+
/* tslint:enable */
|
|
213
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { ApiRequestBuilderNavigationMetadata, type ApiRequestBuilder } from './api/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { apiClientProxifier, registerDefaultDeserializer, registerDefaultSerializer, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json';
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
import { MultipartSerializationWriterFactory } from '@microsoft/kiota-serialization-multipart';
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft/kiota-serialization-text';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Instantiates a new {@link TpSharedDataModelClient} and sets the default values.
|
|
19
|
+
* @param requestAdapter The request adapter to use to execute the requests.
|
|
20
|
+
*/
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
export function createTpSharedDataModelClient(requestAdapter: RequestAdapter) {
|
|
23
|
+
registerDefaultSerializer(JsonSerializationWriterFactory);
|
|
24
|
+
registerDefaultSerializer(TextSerializationWriterFactory);
|
|
25
|
+
registerDefaultSerializer(FormSerializationWriterFactory);
|
|
26
|
+
registerDefaultSerializer(MultipartSerializationWriterFactory);
|
|
27
|
+
registerDefaultDeserializer(JsonParseNodeFactory);
|
|
28
|
+
registerDefaultDeserializer(TextParseNodeFactory);
|
|
29
|
+
registerDefaultDeserializer(FormParseNodeFactory);
|
|
30
|
+
const pathParameters: Record<string, unknown> = {
|
|
31
|
+
"baseurl": requestAdapter.baseUrl,
|
|
32
|
+
};
|
|
33
|
+
return apiClientProxifier<TpSharedDataModelClient>(requestAdapter, pathParameters, TpSharedDataModelClientNavigationMetadata, undefined);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The main entry point of the SDK, exposes the configuration and the fluent API.
|
|
37
|
+
*/
|
|
38
|
+
export interface TpSharedDataModelClient extends BaseRequestBuilder<TpSharedDataModelClient> {
|
|
39
|
+
/**
|
|
40
|
+
* The api property
|
|
41
|
+
*/
|
|
42
|
+
get api(): ApiRequestBuilder;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Uri template for the request builder.
|
|
46
|
+
*/
|
|
47
|
+
export const TpSharedDataModelClientUriTemplate = "{+baseurl}";
|
|
48
|
+
/**
|
|
49
|
+
* Metadata for all the navigation properties in the request builder.
|
|
50
|
+
*/
|
|
51
|
+
export const TpSharedDataModelClientNavigationMetadata: Record<Exclude<keyof TpSharedDataModelClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
|
|
52
|
+
api: {
|
|
53
|
+
navigationMetadata: ApiRequestBuilderNavigationMetadata,
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
/* tslint:enable */
|
|
57
|
+
/* eslint-enable */
|
package/src/v1.json
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
{
|
|
2
|
+
"x-generator": "NSwag v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))",
|
|
3
|
+
"openapi": "3.0.0",
|
|
4
|
+
"info": {
|
|
5
|
+
"title": "Targetprocess Shared Data Model",
|
|
6
|
+
"version": "v1.0"
|
|
7
|
+
},
|
|
8
|
+
"paths": {
|
|
9
|
+
"/api/sharedData": {
|
|
10
|
+
"get": {
|
|
11
|
+
"tags": [
|
|
12
|
+
"Shareddata"
|
|
13
|
+
],
|
|
14
|
+
"summary": "Retrieves data",
|
|
15
|
+
"operationId": "SharedDataModelGetEndpoint",
|
|
16
|
+
"responses": {
|
|
17
|
+
"200": {
|
|
18
|
+
"description": "Success",
|
|
19
|
+
"content": {
|
|
20
|
+
"application/json": {
|
|
21
|
+
"schema": {
|
|
22
|
+
"$ref": "#/components/schemas/TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"401": {
|
|
28
|
+
"description": "Unauthorized",
|
|
29
|
+
"content": {
|
|
30
|
+
"application/problem+json": {
|
|
31
|
+
"schema": {
|
|
32
|
+
"$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"400": {
|
|
38
|
+
"description": "Validation error",
|
|
39
|
+
"content": {
|
|
40
|
+
"application/problem+json": {
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/components/schemas/MicrosoftAspNetCoreHttpHttpValidationProblemDetails"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"500": {
|
|
48
|
+
"description": "Internal server error",
|
|
49
|
+
"content": {
|
|
50
|
+
"application/problem+json": {
|
|
51
|
+
"schema": {
|
|
52
|
+
"$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"404": {
|
|
58
|
+
"description": "Unable to find resource",
|
|
59
|
+
"content": {
|
|
60
|
+
"application/problem+json": {
|
|
61
|
+
"schema": {
|
|
62
|
+
"$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"security": [
|
|
69
|
+
{
|
|
70
|
+
"JWTBearerAuth": []
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"OAuth2": []
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"components": {
|
|
80
|
+
"schemas": {
|
|
81
|
+
"TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"properties": {
|
|
85
|
+
"users": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"$ref": "#/components/schemas/TpSharedDataModelServiceModulesTargetprocessTpUser"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"TpSharedDataModelServiceModulesTargetprocessTpUser": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"properties": {
|
|
97
|
+
"email": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"MicrosoftAspNetCoreMvcProblemDetails": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": {
|
|
105
|
+
"nullable": true
|
|
106
|
+
},
|
|
107
|
+
"properties": {
|
|
108
|
+
"type": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"nullable": true
|
|
111
|
+
},
|
|
112
|
+
"title": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"nullable": true
|
|
115
|
+
},
|
|
116
|
+
"status": {
|
|
117
|
+
"type": "integer",
|
|
118
|
+
"format": "int32",
|
|
119
|
+
"nullable": true
|
|
120
|
+
},
|
|
121
|
+
"detail": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"nullable": true
|
|
124
|
+
},
|
|
125
|
+
"instance": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"nullable": true
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"MicrosoftAspNetCoreHttpHttpValidationProblemDetails": {
|
|
132
|
+
"allOf": [
|
|
133
|
+
{
|
|
134
|
+
"$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "object",
|
|
138
|
+
"additionalProperties": {
|
|
139
|
+
"nullable": true
|
|
140
|
+
},
|
|
141
|
+
"properties": {
|
|
142
|
+
"errors": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"additionalProperties": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"items": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"securitySchemes": {
|
|
157
|
+
"JWTBearerAuth": {
|
|
158
|
+
"type": "http",
|
|
159
|
+
"description": "Enter a JWT token to authorize the requests...",
|
|
160
|
+
"scheme": "Bearer",
|
|
161
|
+
"bearerFormat": "JWT"
|
|
162
|
+
},
|
|
163
|
+
"OAuth2": {
|
|
164
|
+
"type": "oauth2",
|
|
165
|
+
"name": "OAuth2",
|
|
166
|
+
"in": "header",
|
|
167
|
+
"flows": {
|
|
168
|
+
"clientCredentials": {
|
|
169
|
+
"tokenUrl": "http://tplocal.com/svc/auth/connect/token",
|
|
170
|
+
"scopes": {
|
|
171
|
+
"account-data:manage": "AccountDataManage"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": ["src/**/*"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
|
8
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
9
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
10
|
+
}
|
|
11
|
+
}
|