@targetprocess/shared-data-model-client 0.2.0 → 0.4.0-us845553-fix-links.4
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/attachments/index.d.ts +21 -0
- package/dist/api/sdm/attachments/index.js +23 -0
- package/dist/api/sdm/attachments/item/index.d.ts +35 -0
- package/dist/api/sdm/attachments/item/index.js +30 -0
- package/dist/api/sdm/index.d.ts +5 -0
- package/dist/api/sdm/index.js +7 -2
- package/dist/api/sdm/item/item/index.d.ts +2 -1
- package/dist/api/sdm/item/item/index.js +1 -1
- package/dist/models/index.d.ts +5 -49
- package/dist/models/index.js +10 -51
- package/package.json +1 -1
- package/src/api/sdm/attachments/index.ts +34 -0
- package/src/api/sdm/attachments/item/index.ts +56 -0
- package/src/api/sdm/index.ts +9 -0
- package/src/api/sdm/item/item/index.ts +2 -1
- package/src/kiota-lock.json +1 -1
- package/src/models/index.ts +15 -59
- package/src/v1.json +131 -36
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type WithResourceUrlItemRequestBuilder } 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/attachments
|
|
5
|
+
*/
|
|
6
|
+
export interface AttachmentsRequestBuilder extends BaseRequestBuilder<AttachmentsRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Gets an item from the Tp.api.sdm.attachments.item collection
|
|
9
|
+
* @param resourceUrl Unique identifier of the item
|
|
10
|
+
* @returns {WithResourceUrlItemRequestBuilder}
|
|
11
|
+
*/
|
|
12
|
+
byResourceUrl(resourceUrl: string): WithResourceUrlItemRequestBuilder;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Uri template for the request builder.
|
|
16
|
+
*/
|
|
17
|
+
export declare const AttachmentsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/attachments";
|
|
18
|
+
/**
|
|
19
|
+
* Metadata for all the navigation properties in the request builder.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AttachmentsRequestBuilderNavigationMetadata: Record<Exclude<keyof AttachmentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachmentsRequestBuilderNavigationMetadata = exports.AttachmentsRequestBuilderUriTemplate = 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.AttachmentsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/attachments";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for all the navigation properties in the request builder.
|
|
15
|
+
*/
|
|
16
|
+
exports.AttachmentsRequestBuilderNavigationMetadata = {
|
|
17
|
+
byResourceUrl: {
|
|
18
|
+
requestsMetadata: index_js_1.WithResourceUrlItemRequestBuilderRequestsMetadata,
|
|
19
|
+
pathParametersMappings: ["resourceUrl"],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
/* tslint:enable */
|
|
23
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,35 @@
|
|
|
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/attachments/{resourceUrl}
|
|
4
|
+
*/
|
|
5
|
+
export interface WithResourceUrlItemRequestBuilder extends BaseRequestBuilder<WithResourceUrlItemRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves Shared Data Model entities count
|
|
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 500 status code
|
|
13
|
+
*/
|
|
14
|
+
get(requestConfiguration?: RequestConfiguration<WithResourceUrlItemRequestBuilderGetQueryParameters> | undefined): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves Shared Data Model entities count
|
|
17
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
18
|
+
* @returns {RequestInformation}
|
|
19
|
+
*/
|
|
20
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<WithResourceUrlItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves Shared Data Model entities count
|
|
24
|
+
*/
|
|
25
|
+
export interface WithResourceUrlItemRequestBuilderGetQueryParameters {
|
|
26
|
+
fileName?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Uri template for the request builder.
|
|
30
|
+
*/
|
|
31
|
+
export declare const WithResourceUrlItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/attachments/{resourceUrl}{?fileName*}";
|
|
32
|
+
/**
|
|
33
|
+
* Metadata for all the requests in the request builder.
|
|
34
|
+
*/
|
|
35
|
+
export declare const WithResourceUrlItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithResourceUrlItemRequestBuilderRequestsMetadata = exports.WithResourceUrlItemRequestBuilderUriTemplate = 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.WithResourceUrlItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/attachments/{resourceUrl}{?fileName*}";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for all the requests in the request builder.
|
|
15
|
+
*/
|
|
16
|
+
exports.WithResourceUrlItemRequestBuilderRequestsMetadata = {
|
|
17
|
+
get: {
|
|
18
|
+
uriTemplate: exports.WithResourceUrlItemRequestBuilderUriTemplate,
|
|
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
|
+
500: index_js_1.createProblemDetailsFromDiscriminatorValue,
|
|
25
|
+
},
|
|
26
|
+
adapterMethodName: "sendNoResponseContent",
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
/* tslint:enable */
|
|
30
|
+
/* eslint-enable */
|
package/dist/api/sdm/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { type AttachmentsRequestBuilder } from './attachments/index.js';
|
|
1
2
|
import { type WithEntityTypeItemRequestBuilder } from './item/index.js';
|
|
2
3
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
3
4
|
/**
|
|
4
5
|
* Builds and executes requests for operations under /api/sdm
|
|
5
6
|
*/
|
|
6
7
|
export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* The attachments property
|
|
10
|
+
*/
|
|
11
|
+
get attachments(): AttachmentsRequestBuilder;
|
|
7
12
|
/**
|
|
8
13
|
* Gets an item from the Tp.api.sdm.item collection
|
|
9
14
|
* @param entityType Unique identifier of the item
|
package/dist/api/sdm/index.js
CHANGED
|
@@ -5,7 +5,9 @@ exports.SdmRequestBuilderNavigationMetadata = exports.SdmRequestBuilderUriTempla
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
// Generated by Microsoft Kiota
|
|
7
7
|
// @ts-ignore
|
|
8
|
-
const index_js_1 = require("./
|
|
8
|
+
const index_js_1 = require("./attachments/index.js");
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
const index_js_2 = require("./item/index.js");
|
|
9
11
|
/**
|
|
10
12
|
* Uri template for the request builder.
|
|
11
13
|
*/
|
|
@@ -15,9 +17,12 @@ exports.SdmRequestBuilderUriTemplate = "{+baseurl}/api/sdm";
|
|
|
15
17
|
*/
|
|
16
18
|
exports.SdmRequestBuilderNavigationMetadata = {
|
|
17
19
|
byEntityType: {
|
|
18
|
-
navigationMetadata:
|
|
20
|
+
navigationMetadata: index_js_2.WithEntityTypeItemRequestBuilderNavigationMetadata,
|
|
19
21
|
pathParametersMappings: ["entityType"],
|
|
20
22
|
},
|
|
23
|
+
attachments: {
|
|
24
|
+
navigationMetadata: index_js_1.AttachmentsRequestBuilderNavigationMetadata,
|
|
25
|
+
},
|
|
21
26
|
};
|
|
22
27
|
/* tslint:enable */
|
|
23
28
|
/* eslint-enable */
|
|
@@ -24,6 +24,7 @@ export interface EntityTypeItemRequestBuilder extends BaseRequestBuilder<EntityT
|
|
|
24
24
|
* Retrieves Shared Data Model
|
|
25
25
|
*/
|
|
26
26
|
export interface EntityTypeItemRequestBuilderGetQueryParameters {
|
|
27
|
+
convertAttachmentsHost?: string;
|
|
27
28
|
filter?: string;
|
|
28
29
|
isodate?: number;
|
|
29
30
|
orderBy?: string;
|
|
@@ -36,7 +37,7 @@ export interface EntityTypeItemRequestBuilderGetQueryParameters {
|
|
|
36
37
|
/**
|
|
37
38
|
* Uri template for the request builder.
|
|
38
39
|
*/
|
|
39
|
-
export declare const EntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}/{id}{?filter*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
40
|
+
export declare const EntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}/{id}{?convertAttachmentsHost*,filter*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
40
41
|
/**
|
|
41
42
|
* Metadata for all the requests in the request builder.
|
|
42
43
|
*/
|
|
@@ -11,7 +11,7 @@ const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
|
|
|
11
11
|
/**
|
|
12
12
|
* Uri template for the request builder.
|
|
13
13
|
*/
|
|
14
|
-
exports.EntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}/{id}{?filter*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
14
|
+
exports.EntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}/{id}{?convertAttachmentsHost*,filter*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
15
15
|
/**
|
|
16
16
|
* Metadata for all the requests in the request builder.
|
|
17
17
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -214,7 +214,6 @@ export interface FieldDefDto extends Parsable {
|
|
|
214
214
|
*/
|
|
215
215
|
path?: string | null;
|
|
216
216
|
}
|
|
217
|
-
export type FieldKind = (typeof FieldKindObject)[keyof typeof FieldKindObject];
|
|
218
217
|
export interface FieldMappingDto extends Parsable {
|
|
219
218
|
/**
|
|
220
219
|
* The id property
|
|
@@ -239,9 +238,8 @@ export interface FieldMappingDto extends Parsable {
|
|
|
239
238
|
/**
|
|
240
239
|
* The type property
|
|
241
240
|
*/
|
|
242
|
-
type?:
|
|
241
|
+
type?: number | null;
|
|
243
242
|
}
|
|
244
|
-
export type FieldMappingType = (typeof FieldMappingTypeObject)[keyof typeof FieldMappingTypeObject];
|
|
245
243
|
export interface FieldMetaDto extends Parsable {
|
|
246
244
|
/**
|
|
247
245
|
* The attributes property
|
|
@@ -254,7 +252,7 @@ export interface FieldMetaDto extends Parsable {
|
|
|
254
252
|
/**
|
|
255
253
|
* The kind property
|
|
256
254
|
*/
|
|
257
|
-
kind?:
|
|
255
|
+
kind?: number | null;
|
|
258
256
|
/**
|
|
259
257
|
* The multiple property
|
|
260
258
|
*/
|
|
@@ -366,13 +364,12 @@ export interface RelationDefRefDto extends Parsable {
|
|
|
366
364
|
/**
|
|
367
365
|
* The direction property
|
|
368
366
|
*/
|
|
369
|
-
direction?:
|
|
367
|
+
direction?: number | null;
|
|
370
368
|
/**
|
|
371
369
|
* The id property
|
|
372
370
|
*/
|
|
373
371
|
id?: string | null;
|
|
374
372
|
}
|
|
375
|
-
export type RelationDirection = (typeof RelationDirectionObject)[keyof typeof RelationDirectionObject];
|
|
376
373
|
export interface RelationDto extends Parsable {
|
|
377
374
|
/**
|
|
378
375
|
* The childType property
|
|
@@ -484,7 +481,7 @@ export interface TypeDefDto extends Parsable {
|
|
|
484
481
|
/**
|
|
485
482
|
* The kind property
|
|
486
483
|
*/
|
|
487
|
-
kind?:
|
|
484
|
+
kind?: number | null;
|
|
488
485
|
/**
|
|
489
486
|
* The name property
|
|
490
487
|
*/
|
|
@@ -498,9 +495,8 @@ export interface TypeDefRefDto extends Parsable {
|
|
|
498
495
|
/**
|
|
499
496
|
* The kind property
|
|
500
497
|
*/
|
|
501
|
-
kind?:
|
|
498
|
+
kind?: number | null;
|
|
502
499
|
}
|
|
503
|
-
export type TypeKind = (typeof TypeKindObject)[keyof typeof TypeKindObject];
|
|
504
500
|
export interface TypeMappingDto extends Parsable {
|
|
505
501
|
/**
|
|
506
502
|
* The fieldMappings property
|
|
@@ -537,43 +533,3 @@ export interface TypeMetaDefDto extends Parsable {
|
|
|
537
533
|
*/
|
|
538
534
|
name?: string | null;
|
|
539
535
|
}
|
|
540
|
-
export declare const FieldKindObject: {
|
|
541
|
-
readonly CollectionFieldMeta: "CollectionFieldMeta";
|
|
542
|
-
readonly FieldMeta: "FieldMeta";
|
|
543
|
-
readonly SelectFieldMeta: "SelectFieldMeta";
|
|
544
|
-
};
|
|
545
|
-
export declare const FieldMappingTypeObject: {
|
|
546
|
-
readonly ValueFieldMapping: "ValueFieldMapping";
|
|
547
|
-
readonly CollectionFieldMapping: "CollectionFieldMapping";
|
|
548
|
-
readonly ReferenceToStringFieldMapping: "ReferenceToStringFieldMapping";
|
|
549
|
-
readonly TargetprocessDescriptionMapping: "TargetprocessDescriptionMapping";
|
|
550
|
-
readonly CollectionToStringMapping: "CollectionToStringMapping";
|
|
551
|
-
readonly RelationFieldMapping: "RelationFieldMapping";
|
|
552
|
-
readonly EntityStateMapping: "EntityStateMapping";
|
|
553
|
-
readonly JavaScriptFieldMapping: "JavaScriptFieldMapping";
|
|
554
|
-
readonly UserFieldMapping: "UserFieldMapping";
|
|
555
|
-
readonly RoleAssignmentUserFieldMapping: "RoleAssignmentUserFieldMapping";
|
|
556
|
-
readonly RoleEffortFieldMapping: "RoleEffortFieldMapping";
|
|
557
|
-
readonly ConstantFieldMapping: "ConstantFieldMapping";
|
|
558
|
-
readonly RoleAssignmentsFieldMapping: "RoleAssignmentsFieldMapping";
|
|
559
|
-
readonly RoleEffortToRoleEffortFieldMapping: "RoleEffortToRoleEffortFieldMapping";
|
|
560
|
-
};
|
|
561
|
-
export declare const RelationDirectionObject: {
|
|
562
|
-
readonly Inbound: "Inbound";
|
|
563
|
-
readonly Outbound: "Outbound";
|
|
564
|
-
};
|
|
565
|
-
export declare const TypeKindObject: {
|
|
566
|
-
readonly String: "String";
|
|
567
|
-
readonly RichText: "RichText";
|
|
568
|
-
readonly Number: "Number";
|
|
569
|
-
readonly Boolean: "Boolean";
|
|
570
|
-
readonly User: "User";
|
|
571
|
-
readonly State: "State";
|
|
572
|
-
readonly Ref: "Ref";
|
|
573
|
-
readonly Date: "Date";
|
|
574
|
-
readonly Comment: "Comment";
|
|
575
|
-
readonly Attachment: "Attachment";
|
|
576
|
-
readonly RoleEffort: "RoleEffort";
|
|
577
|
-
readonly RoleAssignment: "RoleAssignment";
|
|
578
|
-
readonly Unknown: "Unknown";
|
|
579
|
-
};
|
package/dist/models/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TypeKindObject = exports.RelationDirectionObject = exports.FieldMappingTypeObject = exports.FieldKindObject = void 0;
|
|
4
3
|
exports.createFieldAttributesDtoFromDiscriminatorValue = createFieldAttributesDtoFromDiscriminatorValue;
|
|
5
4
|
exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
|
|
6
5
|
exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromDiscriminatorValue;
|
|
@@ -246,7 +245,7 @@ function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
|
|
|
246
245
|
"sourceRel": n => { fieldMappingDto.sourceRel = n.getObjectValue(createRelationDtoFromDiscriminatorValue); },
|
|
247
246
|
"target": n => { fieldMappingDto.target = n.getObjectValue(createFieldDefDtoFromDiscriminatorValue); },
|
|
248
247
|
"targetRel": n => { fieldMappingDto.targetRel = n.getObjectValue(createRelationDtoFromDiscriminatorValue); },
|
|
249
|
-
"type": n => { fieldMappingDto.type = n.
|
|
248
|
+
"type": n => { fieldMappingDto.type = n.getNumberValue(); },
|
|
250
249
|
};
|
|
251
250
|
}
|
|
252
251
|
/**
|
|
@@ -258,7 +257,7 @@ function deserializeIntoFieldMetaDto(fieldMetaDto = {}) {
|
|
|
258
257
|
return {
|
|
259
258
|
"attributes": n => { fieldMetaDto.attributes = n.getObjectValue(createFieldAttributesDtoFromDiscriminatorValue); },
|
|
260
259
|
"isReadonly": n => { fieldMetaDto.isReadonly = n.getBooleanValue(); },
|
|
261
|
-
"kind": n => { fieldMetaDto.kind = n.
|
|
260
|
+
"kind": n => { fieldMetaDto.kind = n.getNumberValue(); },
|
|
262
261
|
"multiple": n => { fieldMetaDto.multiple = n.getBooleanValue(); },
|
|
263
262
|
"options": n => { fieldMetaDto.options = n.getObjectValue(kiota_abstractions_1.createUntypedNodeFromDiscriminatorValue); },
|
|
264
263
|
"required": n => { fieldMetaDto.required = n.getBooleanValue(); },
|
|
@@ -352,7 +351,7 @@ function deserializeIntoProfileMappingDto(profileMappingDto = {}) {
|
|
|
352
351
|
// @ts-ignore
|
|
353
352
|
function deserializeIntoRelationDefRefDto(relationDefRefDto = {}) {
|
|
354
353
|
return {
|
|
355
|
-
"direction": n => { relationDefRefDto.direction = n.
|
|
354
|
+
"direction": n => { relationDefRefDto.direction = n.getNumberValue(); },
|
|
356
355
|
"id": n => { relationDefRefDto.id = n.getStringValue(); },
|
|
357
356
|
};
|
|
358
357
|
}
|
|
@@ -377,7 +376,7 @@ function deserializeIntoTypeDefDto(typeDefDto = {}) {
|
|
|
377
376
|
return {
|
|
378
377
|
"id": n => { typeDefDto.id = n.getStringValue(); },
|
|
379
378
|
"javaScriptComparator": n => { typeDefDto.javaScriptComparator = n.getStringValue(); },
|
|
380
|
-
"kind": n => { typeDefDto.kind = n.
|
|
379
|
+
"kind": n => { typeDefDto.kind = n.getNumberValue(); },
|
|
381
380
|
"name": n => { typeDefDto.name = n.getStringValue(); },
|
|
382
381
|
};
|
|
383
382
|
}
|
|
@@ -389,7 +388,7 @@ function deserializeIntoTypeDefDto(typeDefDto = {}) {
|
|
|
389
388
|
function deserializeIntoTypeDefRefDto(typeDefRefDto = {}) {
|
|
390
389
|
return {
|
|
391
390
|
"id": n => { typeDefRefDto.id = n.getStringValue(); },
|
|
392
|
-
"kind": n => { typeDefRefDto.kind = n.
|
|
391
|
+
"kind": n => { typeDefRefDto.kind = n.getNumberValue(); },
|
|
393
392
|
};
|
|
394
393
|
}
|
|
395
394
|
/**
|
|
@@ -454,7 +453,7 @@ function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
|
|
|
454
453
|
writer.writeObjectValue("sourceRel", fieldMappingDto.sourceRel, serializeRelationDto);
|
|
455
454
|
writer.writeObjectValue("target", fieldMappingDto.target, serializeFieldDefDto);
|
|
456
455
|
writer.writeObjectValue("targetRel", fieldMappingDto.targetRel, serializeRelationDto);
|
|
457
|
-
writer.
|
|
456
|
+
writer.writeNumberValue("type", fieldMappingDto.type);
|
|
458
457
|
}
|
|
459
458
|
}
|
|
460
459
|
/**
|
|
@@ -466,7 +465,7 @@ function serializeFieldMetaDto(writer, fieldMetaDto = {}) {
|
|
|
466
465
|
if (fieldMetaDto) {
|
|
467
466
|
writer.writeObjectValue("attributes", fieldMetaDto.attributes, serializeFieldAttributesDto);
|
|
468
467
|
writer.writeBooleanValue("isReadonly", fieldMetaDto.isReadonly);
|
|
469
|
-
writer.
|
|
468
|
+
writer.writeNumberValue("kind", fieldMetaDto.kind);
|
|
470
469
|
writer.writeBooleanValue("multiple", fieldMetaDto.multiple);
|
|
471
470
|
writer.writeObjectValue("options", fieldMetaDto.options);
|
|
472
471
|
writer.writeBooleanValue("required", fieldMetaDto.required);
|
|
@@ -563,7 +562,7 @@ function serializeProfileMappingDto(writer, profileMappingDto = {}) {
|
|
|
563
562
|
// @ts-ignore
|
|
564
563
|
function serializeRelationDefRefDto(writer, relationDefRefDto = {}) {
|
|
565
564
|
if (relationDefRefDto) {
|
|
566
|
-
writer.
|
|
565
|
+
writer.writeNumberValue("direction", relationDefRefDto.direction);
|
|
567
566
|
writer.writeStringValue("id", relationDefRefDto.id);
|
|
568
567
|
}
|
|
569
568
|
}
|
|
@@ -588,7 +587,7 @@ function serializeTypeDefDto(writer, typeDefDto = {}) {
|
|
|
588
587
|
if (typeDefDto) {
|
|
589
588
|
writer.writeStringValue("id", typeDefDto.id);
|
|
590
589
|
writer.writeStringValue("javaScriptComparator", typeDefDto.javaScriptComparator);
|
|
591
|
-
writer.
|
|
590
|
+
writer.writeNumberValue("kind", typeDefDto.kind);
|
|
592
591
|
writer.writeStringValue("name", typeDefDto.name);
|
|
593
592
|
}
|
|
594
593
|
}
|
|
@@ -600,7 +599,7 @@ function serializeTypeDefDto(writer, typeDefDto = {}) {
|
|
|
600
599
|
function serializeTypeDefRefDto(writer, typeDefRefDto = {}) {
|
|
601
600
|
if (typeDefRefDto) {
|
|
602
601
|
writer.writeStringValue("id", typeDefRefDto.id);
|
|
603
|
-
writer.
|
|
602
|
+
writer.writeNumberValue("kind", typeDefRefDto.kind);
|
|
604
603
|
}
|
|
605
604
|
}
|
|
606
605
|
/**
|
|
@@ -629,45 +628,5 @@ function serializeTypeMetaDefDto(writer, typeMetaDefDto = {}) {
|
|
|
629
628
|
writer.writeStringValue("name", typeMetaDefDto.name);
|
|
630
629
|
}
|
|
631
630
|
}
|
|
632
|
-
exports.FieldKindObject = {
|
|
633
|
-
CollectionFieldMeta: "CollectionFieldMeta",
|
|
634
|
-
FieldMeta: "FieldMeta",
|
|
635
|
-
SelectFieldMeta: "SelectFieldMeta",
|
|
636
|
-
};
|
|
637
|
-
exports.FieldMappingTypeObject = {
|
|
638
|
-
ValueFieldMapping: "ValueFieldMapping",
|
|
639
|
-
CollectionFieldMapping: "CollectionFieldMapping",
|
|
640
|
-
ReferenceToStringFieldMapping: "ReferenceToStringFieldMapping",
|
|
641
|
-
TargetprocessDescriptionMapping: "TargetprocessDescriptionMapping",
|
|
642
|
-
CollectionToStringMapping: "CollectionToStringMapping",
|
|
643
|
-
RelationFieldMapping: "RelationFieldMapping",
|
|
644
|
-
EntityStateMapping: "EntityStateMapping",
|
|
645
|
-
JavaScriptFieldMapping: "JavaScriptFieldMapping",
|
|
646
|
-
UserFieldMapping: "UserFieldMapping",
|
|
647
|
-
RoleAssignmentUserFieldMapping: "RoleAssignmentUserFieldMapping",
|
|
648
|
-
RoleEffortFieldMapping: "RoleEffortFieldMapping",
|
|
649
|
-
ConstantFieldMapping: "ConstantFieldMapping",
|
|
650
|
-
RoleAssignmentsFieldMapping: "RoleAssignmentsFieldMapping",
|
|
651
|
-
RoleEffortToRoleEffortFieldMapping: "RoleEffortToRoleEffortFieldMapping",
|
|
652
|
-
};
|
|
653
|
-
exports.RelationDirectionObject = {
|
|
654
|
-
Inbound: "Inbound",
|
|
655
|
-
Outbound: "Outbound",
|
|
656
|
-
};
|
|
657
|
-
exports.TypeKindObject = {
|
|
658
|
-
String: "String",
|
|
659
|
-
RichText: "RichText",
|
|
660
|
-
Number: "Number",
|
|
661
|
-
Boolean: "Boolean",
|
|
662
|
-
User: "User",
|
|
663
|
-
State: "State",
|
|
664
|
-
Ref: "Ref",
|
|
665
|
-
Date: "Date",
|
|
666
|
-
Comment: "Comment",
|
|
667
|
-
Attachment: "Attachment",
|
|
668
|
-
RoleEffort: "RoleEffort",
|
|
669
|
-
RoleAssignment: "RoleAssignment",
|
|
670
|
-
Unknown: "Unknown",
|
|
671
|
-
};
|
|
672
631
|
/* tslint:enable */
|
|
673
632
|
/* eslint-enable */
|
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { type WithResourceUrlItemRequestBuilder, WithResourceUrlItemRequestBuilderRequestsMetadata } 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/attachments
|
|
11
|
+
*/
|
|
12
|
+
export interface AttachmentsRequestBuilder extends BaseRequestBuilder<AttachmentsRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Gets an item from the Tp.api.sdm.attachments.item collection
|
|
15
|
+
* @param resourceUrl Unique identifier of the item
|
|
16
|
+
* @returns {WithResourceUrlItemRequestBuilder}
|
|
17
|
+
*/
|
|
18
|
+
byResourceUrl(resourceUrl: string) : WithResourceUrlItemRequestBuilder;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export const AttachmentsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/attachments";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the navigation properties in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export const AttachmentsRequestBuilderNavigationMetadata: Record<Exclude<keyof AttachmentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
|
|
28
|
+
byResourceUrl: {
|
|
29
|
+
requestsMetadata: WithResourceUrlItemRequestBuilderRequestsMetadata,
|
|
30
|
+
pathParametersMappings: ["resourceUrl"],
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/* tslint:enable */
|
|
34
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,56 @@
|
|
|
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/attachments/{resourceUrl}
|
|
11
|
+
*/
|
|
12
|
+
export interface WithResourceUrlItemRequestBuilder extends BaseRequestBuilder<WithResourceUrlItemRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves Shared Data Model entities count
|
|
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 500 status code
|
|
20
|
+
*/
|
|
21
|
+
get(requestConfiguration?: RequestConfiguration<WithResourceUrlItemRequestBuilderGetQueryParameters> | undefined) : Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves Shared Data Model entities count
|
|
24
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
25
|
+
* @returns {RequestInformation}
|
|
26
|
+
*/
|
|
27
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<WithResourceUrlItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves Shared Data Model entities count
|
|
31
|
+
*/
|
|
32
|
+
export interface WithResourceUrlItemRequestBuilderGetQueryParameters {
|
|
33
|
+
fileName?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Uri template for the request builder.
|
|
37
|
+
*/
|
|
38
|
+
export const WithResourceUrlItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/attachments/{resourceUrl}{?fileName*}";
|
|
39
|
+
/**
|
|
40
|
+
* Metadata for all the requests in the request builder.
|
|
41
|
+
*/
|
|
42
|
+
export const WithResourceUrlItemRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
43
|
+
get: {
|
|
44
|
+
uriTemplate: WithResourceUrlItemRequestBuilderUriTemplate,
|
|
45
|
+
responseBodyContentType: "application/problem+json",
|
|
46
|
+
errorMappings: {
|
|
47
|
+
400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
48
|
+
401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
49
|
+
404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
50
|
+
500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
|
|
51
|
+
},
|
|
52
|
+
adapterMethodName: "sendNoResponseContent",
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
/* tslint:enable */
|
|
56
|
+
/* eslint-enable */
|
package/src/api/sdm/index.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// Generated by Microsoft Kiota
|
|
4
4
|
// @ts-ignore
|
|
5
|
+
import { AttachmentsRequestBuilderNavigationMetadata, type AttachmentsRequestBuilder } from './attachments/index.js';
|
|
6
|
+
// @ts-ignore
|
|
5
7
|
import { type WithEntityTypeItemRequestBuilder, WithEntityTypeItemRequestBuilderNavigationMetadata } from './item/index.js';
|
|
6
8
|
// @ts-ignore
|
|
7
9
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
@@ -10,6 +12,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
|
|
|
10
12
|
* Builds and executes requests for operations under /api/sdm
|
|
11
13
|
*/
|
|
12
14
|
export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
|
|
15
|
+
/**
|
|
16
|
+
* The attachments property
|
|
17
|
+
*/
|
|
18
|
+
get attachments(): AttachmentsRequestBuilder;
|
|
13
19
|
/**
|
|
14
20
|
* Gets an item from the Tp.api.sdm.item collection
|
|
15
21
|
* @param entityType Unique identifier of the item
|
|
@@ -29,6 +35,9 @@ export const SdmRequestBuilderNavigationMetadata: Record<Exclude<keyof SdmReques
|
|
|
29
35
|
navigationMetadata: WithEntityTypeItemRequestBuilderNavigationMetadata,
|
|
30
36
|
pathParametersMappings: ["entityType"],
|
|
31
37
|
},
|
|
38
|
+
attachments: {
|
|
39
|
+
navigationMetadata: AttachmentsRequestBuilderNavigationMetadata,
|
|
40
|
+
},
|
|
32
41
|
};
|
|
33
42
|
/* tslint:enable */
|
|
34
43
|
/* eslint-enable */
|
|
@@ -31,6 +31,7 @@ export interface EntityTypeItemRequestBuilder extends BaseRequestBuilder<EntityT
|
|
|
31
31
|
* Retrieves Shared Data Model
|
|
32
32
|
*/
|
|
33
33
|
export interface EntityTypeItemRequestBuilderGetQueryParameters {
|
|
34
|
+
convertAttachmentsHost?: string;
|
|
34
35
|
filter?: string;
|
|
35
36
|
isodate?: number;
|
|
36
37
|
orderBy?: string;
|
|
@@ -43,7 +44,7 @@ export interface EntityTypeItemRequestBuilderGetQueryParameters {
|
|
|
43
44
|
/**
|
|
44
45
|
* Uri template for the request builder.
|
|
45
46
|
*/
|
|
46
|
-
export const EntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}/{id}{?filter*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
47
|
+
export const EntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}/{id}{?convertAttachmentsHost*,filter*,isodate*,orderBy*,result*,select*,skip*,take*,where*}";
|
|
47
48
|
/**
|
|
48
49
|
* Metadata for all the requests in the request builder.
|
|
49
50
|
*/
|
package/src/kiota-lock.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "B51D839D313A0E0705E374F084DCF6909F09E22DD4A48722E460764182A7F784823402BB96546CFADA8CA5CA71D0580C0E26AAD700A8683CC460DD6B85CFAAC9",
|
|
3
3
|
"descriptionLocation": "v1.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
5
|
"kiotaVersion": "1.22.3",
|
package/src/models/index.ts
CHANGED
|
@@ -193,7 +193,7 @@ export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMap
|
|
|
193
193
|
"sourceRel": n => { fieldMappingDto.sourceRel = n.getObjectValue<RelationDto>(createRelationDtoFromDiscriminatorValue); },
|
|
194
194
|
"target": n => { fieldMappingDto.target = n.getObjectValue<FieldDefDto>(createFieldDefDtoFromDiscriminatorValue); },
|
|
195
195
|
"targetRel": n => { fieldMappingDto.targetRel = n.getObjectValue<RelationDto>(createRelationDtoFromDiscriminatorValue); },
|
|
196
|
-
"type": n => { fieldMappingDto.type = n.
|
|
196
|
+
"type": n => { fieldMappingDto.type = n.getNumberValue(); },
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
@@ -205,7 +205,7 @@ export function deserializeIntoFieldMetaDto(fieldMetaDto: Partial<FieldMetaDto>
|
|
|
205
205
|
return {
|
|
206
206
|
"attributes": n => { fieldMetaDto.attributes = n.getObjectValue<FieldAttributesDto>(createFieldAttributesDtoFromDiscriminatorValue); },
|
|
207
207
|
"isReadonly": n => { fieldMetaDto.isReadonly = n.getBooleanValue(); },
|
|
208
|
-
"kind": n => { fieldMetaDto.kind = n.
|
|
208
|
+
"kind": n => { fieldMetaDto.kind = n.getNumberValue(); },
|
|
209
209
|
"multiple": n => { fieldMetaDto.multiple = n.getBooleanValue(); },
|
|
210
210
|
"options": n => { fieldMetaDto.options = n.getObjectValue<UntypedNode>(createUntypedNodeFromDiscriminatorValue); },
|
|
211
211
|
"required": n => { fieldMetaDto.required = n.getBooleanValue(); },
|
|
@@ -300,7 +300,7 @@ export function deserializeIntoProfileMappingDto(profileMappingDto: Partial<Prof
|
|
|
300
300
|
// @ts-ignore
|
|
301
301
|
export function deserializeIntoRelationDefRefDto(relationDefRefDto: Partial<RelationDefRefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
302
302
|
return {
|
|
303
|
-
"direction": n => { relationDefRefDto.direction = n.
|
|
303
|
+
"direction": n => { relationDefRefDto.direction = n.getNumberValue(); },
|
|
304
304
|
"id": n => { relationDefRefDto.id = n.getStringValue(); },
|
|
305
305
|
}
|
|
306
306
|
}
|
|
@@ -325,7 +325,7 @@ export function deserializeIntoTypeDefDto(typeDefDto: Partial<TypeDefDto> | unde
|
|
|
325
325
|
return {
|
|
326
326
|
"id": n => { typeDefDto.id = n.getStringValue(); },
|
|
327
327
|
"javaScriptComparator": n => { typeDefDto.javaScriptComparator = n.getStringValue(); },
|
|
328
|
-
"kind": n => { typeDefDto.kind = n.
|
|
328
|
+
"kind": n => { typeDefDto.kind = n.getNumberValue(); },
|
|
329
329
|
"name": n => { typeDefDto.name = n.getStringValue(); },
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -337,7 +337,7 @@ export function deserializeIntoTypeDefDto(typeDefDto: Partial<TypeDefDto> | unde
|
|
|
337
337
|
export function deserializeIntoTypeDefRefDto(typeDefRefDto: Partial<TypeDefRefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
338
338
|
return {
|
|
339
339
|
"id": n => { typeDefRefDto.id = n.getStringValue(); },
|
|
340
|
-
"kind": n => { typeDefRefDto.kind = n.
|
|
340
|
+
"kind": n => { typeDefRefDto.kind = n.getNumberValue(); },
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
@@ -394,7 +394,6 @@ export interface FieldDefDto extends Parsable {
|
|
|
394
394
|
*/
|
|
395
395
|
path?: string | null;
|
|
396
396
|
}
|
|
397
|
-
export type FieldKind = (typeof FieldKindObject)[keyof typeof FieldKindObject];
|
|
398
397
|
export interface FieldMappingDto extends Parsable {
|
|
399
398
|
/**
|
|
400
399
|
* The id property
|
|
@@ -419,9 +418,8 @@ export interface FieldMappingDto extends Parsable {
|
|
|
419
418
|
/**
|
|
420
419
|
* The type property
|
|
421
420
|
*/
|
|
422
|
-
type?:
|
|
421
|
+
type?: number | null;
|
|
423
422
|
}
|
|
424
|
-
export type FieldMappingType = (typeof FieldMappingTypeObject)[keyof typeof FieldMappingTypeObject];
|
|
425
423
|
export interface FieldMetaDto extends Parsable {
|
|
426
424
|
/**
|
|
427
425
|
* The attributes property
|
|
@@ -434,7 +432,7 @@ export interface FieldMetaDto extends Parsable {
|
|
|
434
432
|
/**
|
|
435
433
|
* The kind property
|
|
436
434
|
*/
|
|
437
|
-
kind?:
|
|
435
|
+
kind?: number | null;
|
|
438
436
|
/**
|
|
439
437
|
* The multiple property
|
|
440
438
|
*/
|
|
@@ -546,13 +544,12 @@ export interface RelationDefRefDto extends Parsable {
|
|
|
546
544
|
/**
|
|
547
545
|
* The direction property
|
|
548
546
|
*/
|
|
549
|
-
direction?:
|
|
547
|
+
direction?: number | null;
|
|
550
548
|
/**
|
|
551
549
|
* The id property
|
|
552
550
|
*/
|
|
553
551
|
id?: string | null;
|
|
554
552
|
}
|
|
555
|
-
export type RelationDirection = (typeof RelationDirectionObject)[keyof typeof RelationDirectionObject];
|
|
556
553
|
export interface RelationDto extends Parsable {
|
|
557
554
|
/**
|
|
558
555
|
* The childType property
|
|
@@ -603,7 +600,7 @@ export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappi
|
|
|
603
600
|
writer.writeObjectValue<RelationDto>("sourceRel", fieldMappingDto.sourceRel, serializeRelationDto);
|
|
604
601
|
writer.writeObjectValue<FieldDefDto>("target", fieldMappingDto.target, serializeFieldDefDto);
|
|
605
602
|
writer.writeObjectValue<RelationDto>("targetRel", fieldMappingDto.targetRel, serializeRelationDto);
|
|
606
|
-
writer.
|
|
603
|
+
writer.writeNumberValue("type", fieldMappingDto.type);
|
|
607
604
|
}
|
|
608
605
|
}
|
|
609
606
|
/**
|
|
@@ -615,7 +612,7 @@ export function serializeFieldMetaDto(writer: SerializationWriter, fieldMetaDto:
|
|
|
615
612
|
if (fieldMetaDto) {
|
|
616
613
|
writer.writeObjectValue<FieldAttributesDto>("attributes", fieldMetaDto.attributes, serializeFieldAttributesDto);
|
|
617
614
|
writer.writeBooleanValue("isReadonly", fieldMetaDto.isReadonly);
|
|
618
|
-
writer.
|
|
615
|
+
writer.writeNumberValue("kind", fieldMetaDto.kind);
|
|
619
616
|
writer.writeBooleanValue("multiple", fieldMetaDto.multiple);
|
|
620
617
|
writer.writeObjectValue("options", fieldMetaDto.options);
|
|
621
618
|
writer.writeBooleanValue("required", fieldMetaDto.required);
|
|
@@ -712,7 +709,7 @@ export function serializeProfileMappingDto(writer: SerializationWriter, profileM
|
|
|
712
709
|
// @ts-ignore
|
|
713
710
|
export function serializeRelationDefRefDto(writer: SerializationWriter, relationDefRefDto: Partial<RelationDefRefDto> | undefined | null = {}) : void {
|
|
714
711
|
if (relationDefRefDto) {
|
|
715
|
-
writer.
|
|
712
|
+
writer.writeNumberValue("direction", relationDefRefDto.direction);
|
|
716
713
|
writer.writeStringValue("id", relationDefRefDto.id);
|
|
717
714
|
}
|
|
718
715
|
}
|
|
@@ -737,7 +734,7 @@ export function serializeTypeDefDto(writer: SerializationWriter, typeDefDto: Par
|
|
|
737
734
|
if (typeDefDto) {
|
|
738
735
|
writer.writeStringValue("id", typeDefDto.id);
|
|
739
736
|
writer.writeStringValue("javaScriptComparator", typeDefDto.javaScriptComparator);
|
|
740
|
-
writer.
|
|
737
|
+
writer.writeNumberValue("kind", typeDefDto.kind);
|
|
741
738
|
writer.writeStringValue("name", typeDefDto.name);
|
|
742
739
|
}
|
|
743
740
|
}
|
|
@@ -749,7 +746,7 @@ export function serializeTypeDefDto(writer: SerializationWriter, typeDefDto: Par
|
|
|
749
746
|
export function serializeTypeDefRefDto(writer: SerializationWriter, typeDefRefDto: Partial<TypeDefRefDto> | undefined | null = {}) : void {
|
|
750
747
|
if (typeDefRefDto) {
|
|
751
748
|
writer.writeStringValue("id", typeDefRefDto.id);
|
|
752
|
-
writer.
|
|
749
|
+
writer.writeNumberValue("kind", typeDefRefDto.kind);
|
|
753
750
|
}
|
|
754
751
|
}
|
|
755
752
|
/**
|
|
@@ -790,7 +787,7 @@ export interface TypeDefDto extends Parsable {
|
|
|
790
787
|
/**
|
|
791
788
|
* The kind property
|
|
792
789
|
*/
|
|
793
|
-
kind?:
|
|
790
|
+
kind?: number | null;
|
|
794
791
|
/**
|
|
795
792
|
* The name property
|
|
796
793
|
*/
|
|
@@ -804,9 +801,8 @@ export interface TypeDefRefDto extends Parsable {
|
|
|
804
801
|
/**
|
|
805
802
|
* The kind property
|
|
806
803
|
*/
|
|
807
|
-
kind?:
|
|
804
|
+
kind?: number | null;
|
|
808
805
|
}
|
|
809
|
-
export type TypeKind = (typeof TypeKindObject)[keyof typeof TypeKindObject];
|
|
810
806
|
export interface TypeMappingDto extends Parsable {
|
|
811
807
|
/**
|
|
812
808
|
* The fieldMappings property
|
|
@@ -843,45 +839,5 @@ export interface TypeMetaDefDto extends Parsable {
|
|
|
843
839
|
*/
|
|
844
840
|
name?: string | null;
|
|
845
841
|
}
|
|
846
|
-
export const FieldKindObject = {
|
|
847
|
-
CollectionFieldMeta: "CollectionFieldMeta",
|
|
848
|
-
FieldMeta: "FieldMeta",
|
|
849
|
-
SelectFieldMeta: "SelectFieldMeta",
|
|
850
|
-
} as const;
|
|
851
|
-
export const FieldMappingTypeObject = {
|
|
852
|
-
ValueFieldMapping: "ValueFieldMapping",
|
|
853
|
-
CollectionFieldMapping: "CollectionFieldMapping",
|
|
854
|
-
ReferenceToStringFieldMapping: "ReferenceToStringFieldMapping",
|
|
855
|
-
TargetprocessDescriptionMapping: "TargetprocessDescriptionMapping",
|
|
856
|
-
CollectionToStringMapping: "CollectionToStringMapping",
|
|
857
|
-
RelationFieldMapping: "RelationFieldMapping",
|
|
858
|
-
EntityStateMapping: "EntityStateMapping",
|
|
859
|
-
JavaScriptFieldMapping: "JavaScriptFieldMapping",
|
|
860
|
-
UserFieldMapping: "UserFieldMapping",
|
|
861
|
-
RoleAssignmentUserFieldMapping: "RoleAssignmentUserFieldMapping",
|
|
862
|
-
RoleEffortFieldMapping: "RoleEffortFieldMapping",
|
|
863
|
-
ConstantFieldMapping: "ConstantFieldMapping",
|
|
864
|
-
RoleAssignmentsFieldMapping: "RoleAssignmentsFieldMapping",
|
|
865
|
-
RoleEffortToRoleEffortFieldMapping: "RoleEffortToRoleEffortFieldMapping",
|
|
866
|
-
} as const;
|
|
867
|
-
export const RelationDirectionObject = {
|
|
868
|
-
Inbound: "Inbound",
|
|
869
|
-
Outbound: "Outbound",
|
|
870
|
-
} as const;
|
|
871
|
-
export const TypeKindObject = {
|
|
872
|
-
String: "String",
|
|
873
|
-
RichText: "RichText",
|
|
874
|
-
Number: "Number",
|
|
875
|
-
Boolean: "Boolean",
|
|
876
|
-
User: "User",
|
|
877
|
-
State: "State",
|
|
878
|
-
Ref: "Ref",
|
|
879
|
-
Date: "Date",
|
|
880
|
-
Comment: "Comment",
|
|
881
|
-
Attachment: "Attachment",
|
|
882
|
-
RoleEffort: "RoleEffort",
|
|
883
|
-
RoleAssignment: "RoleAssignment",
|
|
884
|
-
Unknown: "Unknown",
|
|
885
|
-
} as const;
|
|
886
842
|
/* tslint:enable */
|
|
887
843
|
/* eslint-enable */
|
package/src/v1.json
CHANGED
|
@@ -97,6 +97,14 @@
|
|
|
97
97
|
"format": "int32",
|
|
98
98
|
"nullable": true
|
|
99
99
|
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "convertAttachmentsHost",
|
|
103
|
+
"in": "query",
|
|
104
|
+
"schema": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"nullable": true
|
|
107
|
+
}
|
|
100
108
|
}
|
|
101
109
|
],
|
|
102
110
|
"responses": {
|
|
@@ -264,6 +272,89 @@
|
|
|
264
272
|
]
|
|
265
273
|
}
|
|
266
274
|
},
|
|
275
|
+
"/api/sdm/attachments/{resourceUrl}": {
|
|
276
|
+
"get": {
|
|
277
|
+
"tags": [
|
|
278
|
+
"Sdm"
|
|
279
|
+
],
|
|
280
|
+
"summary": "Retrieves Shared Data Model entities count",
|
|
281
|
+
"operationId": "SharedDataAttachmentEndpoint",
|
|
282
|
+
"parameters": [
|
|
283
|
+
{
|
|
284
|
+
"name": "resourceUrl",
|
|
285
|
+
"in": "path",
|
|
286
|
+
"required": true,
|
|
287
|
+
"schema": {
|
|
288
|
+
"type": "string"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "fileName",
|
|
293
|
+
"in": "query",
|
|
294
|
+
"schema": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"nullable": true
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"responses": {
|
|
301
|
+
"204": {
|
|
302
|
+
"description": "No Content"
|
|
303
|
+
},
|
|
304
|
+
"401": {
|
|
305
|
+
"description": "Unauthorized",
|
|
306
|
+
"content": {
|
|
307
|
+
"application/problem+json": {
|
|
308
|
+
"schema": {
|
|
309
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"403": {
|
|
315
|
+
"description": "Forbidden"
|
|
316
|
+
},
|
|
317
|
+
"400": {
|
|
318
|
+
"description": "Validation error",
|
|
319
|
+
"content": {
|
|
320
|
+
"application/problem+json": {
|
|
321
|
+
"schema": {
|
|
322
|
+
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"500": {
|
|
328
|
+
"description": "Internal server error",
|
|
329
|
+
"content": {
|
|
330
|
+
"application/problem+json": {
|
|
331
|
+
"schema": {
|
|
332
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"404": {
|
|
338
|
+
"description": "Unable to find resource",
|
|
339
|
+
"content": {
|
|
340
|
+
"application/problem+json": {
|
|
341
|
+
"schema": {
|
|
342
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"security": [
|
|
349
|
+
{
|
|
350
|
+
"JWTBearerAuth": []
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"OAuth2": []
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
},
|
|
267
358
|
"/api/settings/profile": {
|
|
268
359
|
"put": {
|
|
269
360
|
"tags": [
|
|
@@ -558,6 +649,10 @@
|
|
|
558
649
|
"type": "object",
|
|
559
650
|
"additionalProperties": false
|
|
560
651
|
},
|
|
652
|
+
"SharedDataAttachmentRequestDto": {
|
|
653
|
+
"type": "object",
|
|
654
|
+
"additionalProperties": false
|
|
655
|
+
},
|
|
561
656
|
"ProfileDto": {
|
|
562
657
|
"type": "object",
|
|
563
658
|
"additionalProperties": false,
|
|
@@ -665,7 +760,7 @@
|
|
|
665
760
|
}
|
|
666
761
|
},
|
|
667
762
|
"TypeKind": {
|
|
668
|
-
"type": "
|
|
763
|
+
"type": "integer",
|
|
669
764
|
"description": "",
|
|
670
765
|
"x-enumNames": [
|
|
671
766
|
"String",
|
|
@@ -683,19 +778,19 @@
|
|
|
683
778
|
"Unknown"
|
|
684
779
|
],
|
|
685
780
|
"enum": [
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
781
|
+
0,
|
|
782
|
+
1,
|
|
783
|
+
2,
|
|
784
|
+
3,
|
|
785
|
+
4,
|
|
786
|
+
5,
|
|
787
|
+
6,
|
|
788
|
+
7,
|
|
789
|
+
8,
|
|
790
|
+
9,
|
|
791
|
+
10,
|
|
792
|
+
11,
|
|
793
|
+
12
|
|
699
794
|
]
|
|
700
795
|
},
|
|
701
796
|
"FieldMappingDto": {
|
|
@@ -747,7 +842,7 @@
|
|
|
747
842
|
}
|
|
748
843
|
},
|
|
749
844
|
"FieldMappingType": {
|
|
750
|
-
"type": "
|
|
845
|
+
"type": "integer",
|
|
751
846
|
"description": "",
|
|
752
847
|
"x-enumNames": [
|
|
753
848
|
"ValueFieldMapping",
|
|
@@ -766,20 +861,20 @@
|
|
|
766
861
|
"RoleEffortToRoleEffortFieldMapping"
|
|
767
862
|
],
|
|
768
863
|
"enum": [
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
864
|
+
0,
|
|
865
|
+
1,
|
|
866
|
+
2,
|
|
867
|
+
3,
|
|
868
|
+
4,
|
|
869
|
+
5,
|
|
870
|
+
6,
|
|
871
|
+
7,
|
|
872
|
+
8,
|
|
873
|
+
9,
|
|
874
|
+
10,
|
|
875
|
+
11,
|
|
876
|
+
12,
|
|
877
|
+
13
|
|
783
878
|
]
|
|
784
879
|
},
|
|
785
880
|
"FieldDefDto": {
|
|
@@ -848,7 +943,7 @@
|
|
|
848
943
|
}
|
|
849
944
|
},
|
|
850
945
|
"FieldKind": {
|
|
851
|
-
"type": "
|
|
946
|
+
"type": "integer",
|
|
852
947
|
"description": "",
|
|
853
948
|
"x-enumNames": [
|
|
854
949
|
"CollectionFieldMeta",
|
|
@@ -856,9 +951,9 @@
|
|
|
856
951
|
"SelectFieldMeta"
|
|
857
952
|
],
|
|
858
953
|
"enum": [
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
954
|
+
0,
|
|
955
|
+
1,
|
|
956
|
+
2
|
|
862
957
|
]
|
|
863
958
|
},
|
|
864
959
|
"TypeDefRefDto": {
|
|
@@ -938,15 +1033,15 @@
|
|
|
938
1033
|
}
|
|
939
1034
|
},
|
|
940
1035
|
"RelationDirection": {
|
|
941
|
-
"type": "
|
|
1036
|
+
"type": "integer",
|
|
942
1037
|
"description": "",
|
|
943
1038
|
"x-enumNames": [
|
|
944
1039
|
"Inbound",
|
|
945
1040
|
"Outbound"
|
|
946
1041
|
],
|
|
947
1042
|
"enum": [
|
|
948
|
-
|
|
949
|
-
|
|
1043
|
+
0,
|
|
1044
|
+
1
|
|
950
1045
|
]
|
|
951
1046
|
},
|
|
952
1047
|
"GetProfileSettingsDto": {
|