@targetprocess/shared-data-model-client 1.47.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ import { type CleanCacheRequestDto } 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/settings/cache/clean
5
+ */
6
+ export interface CleanRequestBuilder extends BaseRequestBuilder<CleanRequestBuilder> {
7
+ /**
8
+ * Clear cache for the current account, optionally filtered by categories
9
+ * @param body The request body
10
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
+ * @returns {Promise<ArrayBuffer>}
12
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
13
+ * @throws {ProblemDetails} error when the service returns a 401 status code
14
+ * @throws {ProblemDetails} error when the service returns a 404 status code
15
+ * @throws {ProblemDetails} error when the service returns a 409 status code
16
+ * @throws {ProblemDetails} error when the service returns a 500 status code
17
+ */
18
+ post(body: CleanCacheRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArrayBuffer | undefined>;
19
+ /**
20
+ * Clear cache for the current account, optionally filtered by categories
21
+ * @param body The request body
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @returns {RequestInformation}
24
+ */
25
+ toPostRequestInformation(body: CleanCacheRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
26
+ }
27
+ /**
28
+ * Uri template for the request builder.
29
+ */
30
+ export declare const CleanRequestBuilderUriTemplate = "{+baseurl}/api/settings/cache/clean";
31
+ /**
32
+ * Metadata for all the requests in the request builder.
33
+ */
34
+ export declare const CleanRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CleanRequestBuilderRequestsMetadata = exports.CleanRequestBuilderUriTemplate = 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.CleanRequestBuilderUriTemplate = "{+baseurl}/api/settings/cache/clean";
13
+ /**
14
+ * Metadata for all the requests in the request builder.
15
+ */
16
+ exports.CleanRequestBuilderRequestsMetadata = {
17
+ post: {
18
+ uriTemplate: exports.CleanRequestBuilderUriTemplate,
19
+ responseBodyContentType: "application/problem+json",
20
+ errorMappings: {
21
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
22
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
23
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
24
+ 409: index_js_1.createProblemDetailsFromDiscriminatorValue,
25
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
26
+ },
27
+ adapterMethodName: "sendPrimitive",
28
+ responseBodyFactory: "ArrayBuffer",
29
+ requestBodyContentType: "application/json",
30
+ requestBodySerializer: index_js_1.serializeCleanCacheRequestDto,
31
+ requestInformationContentSetMethod: "setContentFromParsable",
32
+ },
33
+ };
34
+ /* tslint:enable */
35
+ /* eslint-enable */
@@ -0,0 +1,19 @@
1
+ import { type CleanRequestBuilder } from './clean/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /api/settings/cache
5
+ */
6
+ export interface CacheRequestBuilder extends BaseRequestBuilder<CacheRequestBuilder> {
7
+ /**
8
+ * The clean property
9
+ */
10
+ get clean(): CleanRequestBuilder;
11
+ }
12
+ /**
13
+ * Uri template for the request builder.
14
+ */
15
+ export declare const CacheRequestBuilderUriTemplate = "{+baseurl}/api/settings/cache";
16
+ /**
17
+ * Metadata for all the navigation properties in the request builder.
18
+ */
19
+ export declare const CacheRequestBuilderNavigationMetadata: Record<Exclude<keyof CacheRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CacheRequestBuilderNavigationMetadata = exports.CacheRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ // @ts-ignore
8
+ const index_js_1 = require("./clean/index.js");
9
+ /**
10
+ * Uri template for the request builder.
11
+ */
12
+ exports.CacheRequestBuilderUriTemplate = "{+baseurl}/api/settings/cache";
13
+ /**
14
+ * Metadata for all the navigation properties in the request builder.
15
+ */
16
+ exports.CacheRequestBuilderNavigationMetadata = {
17
+ clean: {
18
+ requestsMetadata: index_js_1.CleanRequestBuilderRequestsMetadata,
19
+ },
20
+ };
21
+ /* tslint:enable */
22
+ /* eslint-enable */
@@ -1,3 +1,4 @@
1
+ import { type CacheRequestBuilder } from './cache/index.js';
1
2
  import { type EntityTypesRequestBuilder } from './entityTypes/index.js';
2
3
  import { type ProfileRequestBuilder } from './profile/index.js';
3
4
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
@@ -5,6 +6,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
5
6
  * Builds and executes requests for operations under /api/settings
6
7
  */
7
8
  export interface SettingsRequestBuilder extends BaseRequestBuilder<SettingsRequestBuilder> {
9
+ /**
10
+ * The cache property
11
+ */
12
+ get cache(): CacheRequestBuilder;
8
13
  /**
9
14
  * The entityTypes property
10
15
  */
@@ -5,9 +5,11 @@ exports.SettingsRequestBuilderNavigationMetadata = exports.SettingsRequestBuilde
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  // @ts-ignore
8
- const index_js_1 = require("./entityTypes/index.js");
8
+ const index_js_1 = require("./cache/index.js");
9
9
  // @ts-ignore
10
- const index_js_2 = require("./profile/index.js");
10
+ const index_js_2 = require("./entityTypes/index.js");
11
+ // @ts-ignore
12
+ const index_js_3 = require("./profile/index.js");
11
13
  /**
12
14
  * Uri template for the request builder.
13
15
  */
@@ -16,12 +18,15 @@ exports.SettingsRequestBuilderUriTemplate = "{+baseurl}/api/settings";
16
18
  * Metadata for all the navigation properties in the request builder.
17
19
  */
18
20
  exports.SettingsRequestBuilderNavigationMetadata = {
21
+ cache: {
22
+ navigationMetadata: index_js_1.CacheRequestBuilderNavigationMetadata,
23
+ },
19
24
  entityTypes: {
20
- requestsMetadata: index_js_1.EntityTypesRequestBuilderRequestsMetadata,
25
+ requestsMetadata: index_js_2.EntityTypesRequestBuilderRequestsMetadata,
21
26
  },
22
27
  profile: {
23
- requestsMetadata: index_js_2.ProfileRequestBuilderRequestsMetadata,
24
- navigationMetadata: index_js_2.ProfileRequestBuilderNavigationMetadata,
28
+ requestsMetadata: index_js_3.ProfileRequestBuilderRequestsMetadata,
29
+ navigationMetadata: index_js_3.ProfileRequestBuilderNavigationMetadata,
25
30
  },
26
31
  };
27
32
  /* tslint:enable */
@@ -43,7 +43,7 @@ export interface Query_entitiesRequestBuilderPostQueryParameters {
43
43
  /**
44
44
  * Uri template for the request builder.
45
45
  */
46
- export declare const Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities?entityType={entityType}{&disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
46
+ export declare const Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities{?disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
47
47
  /**
48
48
  * Metadata for all the requests in the request builder.
49
49
  */
@@ -9,13 +9,13 @@ const index_js_1 = require("../../../models/index.js");
9
9
  /**
10
10
  * Uri template for the request builder.
11
11
  */
12
- exports.Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities?entityType={entityType}{&disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
12
+ exports.Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities{?disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
13
13
  /**
14
14
  * Metadata for all the requests in the request builder.
15
15
  */
16
16
  exports.Query_entitiesRequestBuilderRequestsMetadata = {
17
17
  get: {
18
- uriTemplate: exports.Query_entitiesRequestBuilderUriTemplate,
18
+ uriTemplate: "{+baseurl}/mcp/_tools/query_entities?entityType={entityType}{&disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}",
19
19
  responseBodyContentType: "application/json",
20
20
  adapterMethodName: "send",
21
21
  responseBodyFactory: index_js_1.createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue,
@@ -1,10 +1,23 @@
1
1
  import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
2
+ export type CacheCategory = (typeof CacheCategoryObject)[keyof typeof CacheCategoryObject];
3
+ export interface CleanCacheRequestDto extends Parsable {
4
+ /**
5
+ * Optional list of cache categories to clear. If empty or null, all categories are cleared.
6
+ */
7
+ categories?: CacheCategory[] | null;
8
+ }
2
9
  export interface CopyCurrentProfileRequestDto extends Parsable {
3
10
  /**
4
11
  * The profileName property
5
12
  */
6
13
  profileName?: string | null;
7
14
  }
15
+ /**
16
+ * Creates a new instance of the appropriate class based on discriminator value
17
+ * @param parseNode The parse node to use to read the discriminator value and create the object
18
+ * @returns {CleanCacheRequestDto}
19
+ */
20
+ export declare function createCleanCacheRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
8
21
  /**
9
22
  * Creates a new instance of the appropriate class based on discriminator value
10
23
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -161,6 +174,12 @@ export declare function createTypeMappingDtoFromDiscriminatorValue(parseNode: Pa
161
174
  * @returns {TypeMetaDefDto}
162
175
  */
163
176
  export declare function createTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
177
+ /**
178
+ * Creates a new instance of the appropriate class based on discriminator value
179
+ * @param parseNode The parse node to use to read the discriminator value and create the object
180
+ * @returns {TypeTermDto}
181
+ */
182
+ export declare function createTypeTermDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
164
183
  /**
165
184
  * Creates a new instance of the appropriate class based on discriminator value
166
185
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -185,6 +204,12 @@ export interface DeleteProfileRequestDto extends Parsable {
185
204
  */
186
205
  profileId?: string | null;
187
206
  }
207
+ /**
208
+ * The deserialization information for the current model
209
+ * @param CleanCacheRequestDto The instance to deserialize into.
210
+ * @returns {Record<string, (node: ParseNode) => void>}
211
+ */
212
+ export declare function deserializeIntoCleanCacheRequestDto(cleanCacheRequestDto?: Partial<CleanCacheRequestDto> | undefined): Record<string, (node: ParseNode) => void>;
188
213
  /**
189
214
  * The deserialization information for the current model
190
215
  * @param CopyCurrentProfileRequestDto The instance to deserialize into.
@@ -341,6 +366,12 @@ export declare function deserializeIntoTypeMappingDto(typeMappingDto?: Partial<T
341
366
  * @returns {Record<string, (node: ParseNode) => void>}
342
367
  */
343
368
  export declare function deserializeIntoTypeMetaDefDto(typeMetaDefDto?: Partial<TypeMetaDefDto> | undefined): Record<string, (node: ParseNode) => void>;
369
+ /**
370
+ * The deserialization information for the current model
371
+ * @param TypeTermDto The instance to deserialize into.
372
+ * @returns {Record<string, (node: ParseNode) => void>}
373
+ */
374
+ export declare function deserializeIntoTypeTermDto(typeTermDto?: Partial<TypeTermDto> | undefined): Record<string, (node: ParseNode) => void>;
344
375
  /**
345
376
  * The deserialization information for the current model
346
377
  * @param ValidatedFieldMappingDto The instance to deserialize into.
@@ -517,6 +548,13 @@ export interface SdmTypeDefDto extends Parsable {
517
548
  */
518
549
  name?: string | null;
519
550
  }
551
+ /**
552
+ * Serializes information the current object
553
+ * @param CleanCacheRequestDto The instance to serialize from.
554
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
555
+ * @param writer Serialization writer to use to serialize this model
556
+ */
557
+ export declare function serializeCleanCacheRequestDto(writer: SerializationWriter, cleanCacheRequestDto?: Partial<CleanCacheRequestDto> | undefined | null, isSerializingDerivedType?: boolean): void;
520
558
  /**
521
559
  * Serializes information the current object
522
560
  * @param CopyCurrentProfileRequestDto The instance to serialize from.
@@ -699,6 +737,13 @@ export declare function serializeTypeMappingDto(writer: SerializationWriter, typ
699
737
  * @param writer Serialization writer to use to serialize this model
700
738
  */
701
739
  export declare function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDefDto?: Partial<TypeMetaDefDto> | undefined | null, isSerializingDerivedType?: boolean): void;
740
+ /**
741
+ * Serializes information the current object
742
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
743
+ * @param TypeTermDto The instance to serialize from.
744
+ * @param writer Serialization writer to use to serialize this model
745
+ */
746
+ export declare function serializeTypeTermDto(writer: SerializationWriter, typeTermDto?: Partial<TypeTermDto> | undefined | null, isSerializingDerivedType?: boolean): void;
702
747
  /**
703
748
  * Serializes information the current object
704
749
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -791,10 +836,6 @@ export interface TpEntityRequest extends Parsable {
791
836
  * The id property
792
837
  */
793
838
  id?: number | null;
794
- /**
795
- * The includeLinks property
796
- */
797
- includeLinks?: boolean | null;
798
839
  /**
799
840
  * The orderBy property
800
841
  */
@@ -854,6 +895,14 @@ export interface TpTypeDefDto extends Parsable {
854
895
  name?: string | null;
855
896
  }
856
897
  export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMetaDefDto {
898
+ /**
899
+ * The alternateNames property
900
+ */
901
+ alternateNames?: string[] | null;
902
+ /**
903
+ * The hasProject property
904
+ */
905
+ hasProject?: boolean | null;
857
906
  /**
858
907
  * Indicates whether entities of this type have a UI page in Targetprocess.Based on native types list + extendable domain types (isAssignable || isVisible) + Comment (special case).
859
908
  */
@@ -861,7 +910,7 @@ export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMe
861
910
  /**
862
911
  * The terms property
863
912
  */
864
- terms?: string[] | null;
913
+ terms?: TypeTermDto[] | null;
865
914
  }
866
915
  export interface TypeMappingDto extends Parsable {
867
916
  /**
@@ -911,6 +960,20 @@ export interface TypeMetaDefDto extends Parsable {
911
960
  */
912
961
  type?: string | null;
913
962
  }
963
+ export interface TypeTermDto extends Parsable {
964
+ /**
965
+ * The id property
966
+ */
967
+ id?: string | null;
968
+ /**
969
+ * The processIds property
970
+ */
971
+ processIds?: number[] | null;
972
+ /**
973
+ * The term property
974
+ */
975
+ term?: string | null;
976
+ }
914
977
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
915
978
  /**
916
979
  * The errors property
@@ -946,6 +1009,15 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
946
1009
  validationState?: ValidationState | null;
947
1010
  }
948
1011
  export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
1012
+ export declare const CacheCategoryObject: {
1013
+ readonly ArrowMeta: "ArrowMeta";
1014
+ readonly FrontdoorUser: "FrontdoorUser";
1015
+ readonly MappedExpressions: "MappedExpressions";
1016
+ readonly TpMeta: "TpMeta";
1017
+ readonly TpUser: "TpUser";
1018
+ readonly TpUserToken: "TpUserToken";
1019
+ readonly Yaft: "Yaft";
1020
+ };
949
1021
  export declare const FieldMappingKindObject: {
950
1022
  readonly DefaultEscaped: "Default";
951
1023
  readonly Custom: "Custom";
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidationStateObject = exports.RefKindObject = exports.FieldMappingKindObject = void 0;
3
+ exports.ValidationStateObject = exports.RefKindObject = exports.FieldMappingKindObject = exports.CacheCategoryObject = void 0;
4
+ exports.createCleanCacheRequestDtoFromDiscriminatorValue = createCleanCacheRequestDtoFromDiscriminatorValue;
4
5
  exports.createCopyCurrentProfileRequestDtoFromDiscriminatorValue = createCopyCurrentProfileRequestDtoFromDiscriminatorValue;
5
6
  exports.createDeleteProfileRequestDtoFromDiscriminatorValue = createDeleteProfileRequestDtoFromDiscriminatorValue;
6
7
  exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
@@ -27,9 +28,11 @@ exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscrim
27
28
  exports.createTpTypeMetaDefDtoFromDiscriminatorValue = createTpTypeMetaDefDtoFromDiscriminatorValue;
28
29
  exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
29
30
  exports.createTypeMetaDefDtoFromDiscriminatorValue = createTypeMetaDefDtoFromDiscriminatorValue;
31
+ exports.createTypeTermDtoFromDiscriminatorValue = createTypeTermDtoFromDiscriminatorValue;
30
32
  exports.createValidatedFieldMappingDtoFromDiscriminatorValue = createValidatedFieldMappingDtoFromDiscriminatorValue;
31
33
  exports.createValidatedProfileDtoFromDiscriminatorValue = createValidatedProfileDtoFromDiscriminatorValue;
32
34
  exports.createValidatedTypeMappingDtoFromDiscriminatorValue = createValidatedTypeMappingDtoFromDiscriminatorValue;
35
+ exports.deserializeIntoCleanCacheRequestDto = deserializeIntoCleanCacheRequestDto;
33
36
  exports.deserializeIntoCopyCurrentProfileRequestDto = deserializeIntoCopyCurrentProfileRequestDto;
34
37
  exports.deserializeIntoDeleteProfileRequestDto = deserializeIntoDeleteProfileRequestDto;
35
38
  exports.deserializeIntoFieldDefDto = deserializeIntoFieldDefDto;
@@ -56,9 +59,11 @@ exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
56
59
  exports.deserializeIntoTpTypeMetaDefDto = deserializeIntoTpTypeMetaDefDto;
57
60
  exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
58
61
  exports.deserializeIntoTypeMetaDefDto = deserializeIntoTypeMetaDefDto;
62
+ exports.deserializeIntoTypeTermDto = deserializeIntoTypeTermDto;
59
63
  exports.deserializeIntoValidatedFieldMappingDto = deserializeIntoValidatedFieldMappingDto;
60
64
  exports.deserializeIntoValidatedProfileDto = deserializeIntoValidatedProfileDto;
61
65
  exports.deserializeIntoValidatedTypeMappingDto = deserializeIntoValidatedTypeMappingDto;
66
+ exports.serializeCleanCacheRequestDto = serializeCleanCacheRequestDto;
62
67
  exports.serializeCopyCurrentProfileRequestDto = serializeCopyCurrentProfileRequestDto;
63
68
  exports.serializeDeleteProfileRequestDto = serializeDeleteProfileRequestDto;
64
69
  exports.serializeFieldDefDto = serializeFieldDefDto;
@@ -85,6 +90,7 @@ exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
85
90
  exports.serializeTpTypeMetaDefDto = serializeTpTypeMetaDefDto;
86
91
  exports.serializeTypeMappingDto = serializeTypeMappingDto;
87
92
  exports.serializeTypeMetaDefDto = serializeTypeMetaDefDto;
93
+ exports.serializeTypeTermDto = serializeTypeTermDto;
88
94
  exports.serializeValidatedFieldMappingDto = serializeValidatedFieldMappingDto;
89
95
  exports.serializeValidatedProfileDto = serializeValidatedProfileDto;
90
96
  exports.serializeValidatedTypeMappingDto = serializeValidatedTypeMappingDto;
@@ -93,6 +99,15 @@ exports.serializeValidatedTypeMappingDto = serializeValidatedTypeMappingDto;
93
99
  // Generated by Microsoft Kiota
94
100
  // @ts-ignore
95
101
  const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
102
+ /**
103
+ * Creates a new instance of the appropriate class based on discriminator value
104
+ * @param parseNode The parse node to use to read the discriminator value and create the object
105
+ * @returns {CleanCacheRequestDto}
106
+ */
107
+ // @ts-ignore
108
+ function createCleanCacheRequestDtoFromDiscriminatorValue(parseNode) {
109
+ return deserializeIntoCleanCacheRequestDto;
110
+ }
96
111
  /**
97
112
  * Creates a new instance of the appropriate class based on discriminator value
98
113
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -375,6 +390,15 @@ function createTypeMetaDefDtoFromDiscriminatorValue(parseNode) {
375
390
  }
376
391
  return deserializeIntoTypeMetaDefDto;
377
392
  }
393
+ /**
394
+ * Creates a new instance of the appropriate class based on discriminator value
395
+ * @param parseNode The parse node to use to read the discriminator value and create the object
396
+ * @returns {TypeTermDto}
397
+ */
398
+ // @ts-ignore
399
+ function createTypeTermDtoFromDiscriminatorValue(parseNode) {
400
+ return deserializeIntoTypeTermDto;
401
+ }
378
402
  /**
379
403
  * Creates a new instance of the appropriate class based on discriminator value
380
404
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -402,6 +426,17 @@ function createValidatedProfileDtoFromDiscriminatorValue(parseNode) {
402
426
  function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode) {
403
427
  return deserializeIntoValidatedTypeMappingDto;
404
428
  }
429
+ /**
430
+ * The deserialization information for the current model
431
+ * @param CleanCacheRequestDto The instance to deserialize into.
432
+ * @returns {Record<string, (node: ParseNode) => void>}
433
+ */
434
+ // @ts-ignore
435
+ function deserializeIntoCleanCacheRequestDto(cleanCacheRequestDto = {}) {
436
+ return {
437
+ "categories": n => { cleanCacheRequestDto.categories = n.getCollectionOfEnumValues(exports.CacheCategoryObject); },
438
+ };
439
+ }
405
440
  /**
406
441
  * The deserialization information for the current model
407
442
  * @param CopyCurrentProfileRequestDto The instance to deserialize into.
@@ -651,7 +686,6 @@ function deserializeIntoTpEntityRequest(tpEntityRequest = {}) {
651
686
  "entityType": n => { tpEntityRequest.entityType = n.getStringValue(); },
652
687
  "filter": n => { tpEntityRequest.filter = n.getStringValue(); },
653
688
  "id": n => { tpEntityRequest.id = n.getNumberValue(); },
654
- "includeLinks": n => { tpEntityRequest.includeLinks = n.getBooleanValue(); },
655
689
  "orderBy": n => { tpEntityRequest.orderBy = n.getStringValue(); },
656
690
  "result": n => { tpEntityRequest.result = n.getStringValue(); },
657
691
  "select": n => { tpEntityRequest.select = n.getStringValue(); },
@@ -706,8 +740,10 @@ function deserializeIntoTpTypeDefDto(tpTypeDefDto = {}) {
706
740
  function deserializeIntoTpTypeMetaDefDto(tpTypeMetaDefDto = {}) {
707
741
  return {
708
742
  ...deserializeIntoTypeMetaDefDto(tpTypeMetaDefDto),
743
+ "alternateNames": n => { tpTypeMetaDefDto.alternateNames = n.getCollectionOfPrimitiveValues(); },
744
+ "hasProject": n => { tpTypeMetaDefDto.hasProject = n.getBooleanValue(); },
709
745
  "isLinkable": n => { tpTypeMetaDefDto.isLinkable = n.getBooleanValue(); },
710
- "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfPrimitiveValues(); },
746
+ "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfObjectValues(createTypeTermDtoFromDiscriminatorValue); },
711
747
  };
712
748
  }
713
749
  /**
@@ -741,6 +777,19 @@ function deserializeIntoTypeMetaDefDto(typeMetaDefDto = {}) {
741
777
  "$type": n => { typeMetaDefDto.type = n.getStringValue(); },
742
778
  };
743
779
  }
780
+ /**
781
+ * The deserialization information for the current model
782
+ * @param TypeTermDto The instance to deserialize into.
783
+ * @returns {Record<string, (node: ParseNode) => void>}
784
+ */
785
+ // @ts-ignore
786
+ function deserializeIntoTypeTermDto(typeTermDto = {}) {
787
+ return {
788
+ "id": n => { typeTermDto.id = n.getStringValue(); },
789
+ "processIds": n => { typeTermDto.processIds = n.getCollectionOfPrimitiveValues(); },
790
+ "term": n => { typeTermDto.term = n.getStringValue(); },
791
+ };
792
+ }
744
793
  /**
745
794
  * The deserialization information for the current model
746
795
  * @param ValidatedFieldMappingDto The instance to deserialize into.
@@ -781,6 +830,20 @@ function deserializeIntoValidatedTypeMappingDto(validatedTypeMappingDto = {}) {
781
830
  "validationState": n => { validatedTypeMappingDto.validationState = n.getEnumValue(exports.ValidationStateObject); },
782
831
  };
783
832
  }
833
+ /**
834
+ * Serializes information the current object
835
+ * @param CleanCacheRequestDto The instance to serialize from.
836
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
837
+ * @param writer Serialization writer to use to serialize this model
838
+ */
839
+ // @ts-ignore
840
+ function serializeCleanCacheRequestDto(writer, cleanCacheRequestDto = {}, isSerializingDerivedType = false) {
841
+ if (!cleanCacheRequestDto || isSerializingDerivedType) {
842
+ return;
843
+ }
844
+ if (cleanCacheRequestDto.categories)
845
+ writer.writeCollectionOfEnumValues("categories", cleanCacheRequestDto.categories);
846
+ }
784
847
  /**
785
848
  * Serializes information the current object
786
849
  * @param CopyCurrentProfileRequestDto The instance to serialize from.
@@ -1085,7 +1148,6 @@ function serializeTpEntityRequest(writer, tpEntityRequest = {}, isSerializingDer
1085
1148
  writer.writeStringValue("entityType", tpEntityRequest.entityType);
1086
1149
  writer.writeStringValue("filter", tpEntityRequest.filter);
1087
1150
  writer.writeNumberValue("id", tpEntityRequest.id);
1088
- writer.writeBooleanValue("includeLinks", tpEntityRequest.includeLinks);
1089
1151
  writer.writeStringValue("orderBy", tpEntityRequest.orderBy);
1090
1152
  writer.writeStringValue("result", tpEntityRequest.result);
1091
1153
  writer.writeStringValue("select", tpEntityRequest.select);
@@ -1149,8 +1211,10 @@ function serializeTpTypeMetaDefDto(writer, tpTypeMetaDefDto = {}, isSerializingD
1149
1211
  return;
1150
1212
  }
1151
1213
  serializeTypeMetaDefDto(writer, tpTypeMetaDefDto, isSerializingDerivedType);
1214
+ writer.writeCollectionOfPrimitiveValues("alternateNames", tpTypeMetaDefDto.alternateNames);
1215
+ writer.writeBooleanValue("hasProject", tpTypeMetaDefDto.hasProject);
1152
1216
  writer.writeBooleanValue("isLinkable", tpTypeMetaDefDto.isLinkable);
1153
- writer.writeCollectionOfPrimitiveValues("terms", tpTypeMetaDefDto.terms);
1217
+ writer.writeCollectionOfObjectValues("terms", tpTypeMetaDefDto.terms, serializeTypeTermDto);
1154
1218
  writer.writeAdditionalData(tpTypeMetaDefDto.additionalData);
1155
1219
  }
1156
1220
  /**
@@ -1198,6 +1262,21 @@ function serializeTypeMetaDefDto(writer, typeMetaDefDto = {}, isSerializingDeriv
1198
1262
  break;
1199
1263
  }
1200
1264
  }
1265
+ /**
1266
+ * Serializes information the current object
1267
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1268
+ * @param TypeTermDto The instance to serialize from.
1269
+ * @param writer Serialization writer to use to serialize this model
1270
+ */
1271
+ // @ts-ignore
1272
+ function serializeTypeTermDto(writer, typeTermDto = {}, isSerializingDerivedType = false) {
1273
+ if (!typeTermDto || isSerializingDerivedType) {
1274
+ return;
1275
+ }
1276
+ writer.writeStringValue("id", typeTermDto.id);
1277
+ writer.writeCollectionOfPrimitiveValues("processIds", typeTermDto.processIds);
1278
+ writer.writeStringValue("term", typeTermDto.term);
1279
+ }
1201
1280
  /**
1202
1281
  * Serializes information the current object
1203
1282
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1247,6 +1326,15 @@ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {},
1247
1326
  writer.writeEnumValue("validationState", validatedTypeMappingDto.validationState);
1248
1327
  writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
1249
1328
  }
1329
+ exports.CacheCategoryObject = {
1330
+ ArrowMeta: "ArrowMeta",
1331
+ FrontdoorUser: "FrontdoorUser",
1332
+ MappedExpressions: "MappedExpressions",
1333
+ TpMeta: "TpMeta",
1334
+ TpUser: "TpUser",
1335
+ TpUserToken: "TpUserToken",
1336
+ Yaft: "Yaft",
1337
+ };
1250
1338
  exports.FieldMappingKindObject = {
1251
1339
  DefaultEscaped: "Default",
1252
1340
  Custom: "Custom",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "1.47.0",
3
+ "version": "1.49.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, serializeCleanCacheRequestDto, type CleanCacheRequestDto, 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/settings/cache/clean
11
+ */
12
+ export interface CleanRequestBuilder extends BaseRequestBuilder<CleanRequestBuilder> {
13
+ /**
14
+ * Clear cache for the current account, optionally filtered by categories
15
+ * @param body The request body
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {Promise<ArrayBuffer>}
18
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
19
+ * @throws {ProblemDetails} error when the service returns a 401 status code
20
+ * @throws {ProblemDetails} error when the service returns a 404 status code
21
+ * @throws {ProblemDetails} error when the service returns a 409 status code
22
+ * @throws {ProblemDetails} error when the service returns a 500 status code
23
+ */
24
+ post(body: CleanCacheRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ArrayBuffer | undefined>;
25
+ /**
26
+ * Clear cache for the current account, optionally filtered by categories
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {RequestInformation}
30
+ */
31
+ toPostRequestInformation(body: CleanCacheRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
32
+ }
33
+ /**
34
+ * Uri template for the request builder.
35
+ */
36
+ export const CleanRequestBuilderUriTemplate = "{+baseurl}/api/settings/cache/clean";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export const CleanRequestBuilderRequestsMetadata: RequestsMetadata = {
41
+ post: {
42
+ uriTemplate: CleanRequestBuilderUriTemplate,
43
+ responseBodyContentType: "application/problem+json",
44
+ errorMappings: {
45
+ 400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
46
+ 401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
47
+ 404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
48
+ 409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
49
+ 500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
50
+ },
51
+ adapterMethodName: "sendPrimitive",
52
+ responseBodyFactory: "ArrayBuffer",
53
+ requestBodyContentType: "application/json",
54
+ requestBodySerializer: serializeCleanCacheRequestDto,
55
+ requestInformationContentSetMethod: "setContentFromParsable",
56
+ },
57
+ };
58
+ /* tslint:enable */
59
+ /* eslint-enable */
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { CleanRequestBuilderRequestsMetadata, type CleanRequestBuilder } from './clean/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/settings/cache
11
+ */
12
+ export interface CacheRequestBuilder extends BaseRequestBuilder<CacheRequestBuilder> {
13
+ /**
14
+ * The clean property
15
+ */
16
+ get clean(): CleanRequestBuilder;
17
+ }
18
+ /**
19
+ * Uri template for the request builder.
20
+ */
21
+ export const CacheRequestBuilderUriTemplate = "{+baseurl}/api/settings/cache";
22
+ /**
23
+ * Metadata for all the navigation properties in the request builder.
24
+ */
25
+ export const CacheRequestBuilderNavigationMetadata: Record<Exclude<keyof CacheRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
26
+ clean: {
27
+ requestsMetadata: CleanRequestBuilderRequestsMetadata,
28
+ },
29
+ };
30
+ /* tslint:enable */
31
+ /* eslint-enable */
@@ -2,6 +2,8 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
+ import { CacheRequestBuilderNavigationMetadata, type CacheRequestBuilder } from './cache/index.js';
6
+ // @ts-ignore
5
7
  import { EntityTypesRequestBuilderRequestsMetadata, type EntityTypesRequestBuilder } from './entityTypes/index.js';
6
8
  // @ts-ignore
7
9
  import { ProfileRequestBuilderNavigationMetadata, ProfileRequestBuilderRequestsMetadata, type ProfileRequestBuilder } from './profile/index.js';
@@ -12,6 +14,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
12
14
  * Builds and executes requests for operations under /api/settings
13
15
  */
14
16
  export interface SettingsRequestBuilder extends BaseRequestBuilder<SettingsRequestBuilder> {
17
+ /**
18
+ * The cache property
19
+ */
20
+ get cache(): CacheRequestBuilder;
15
21
  /**
16
22
  * The entityTypes property
17
23
  */
@@ -29,6 +35,9 @@ export const SettingsRequestBuilderUriTemplate = "{+baseurl}/api/settings";
29
35
  * Metadata for all the navigation properties in the request builder.
30
36
  */
31
37
  export const SettingsRequestBuilderNavigationMetadata: Record<Exclude<keyof SettingsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
38
+ cache: {
39
+ navigationMetadata: CacheRequestBuilderNavigationMetadata,
40
+ },
32
41
  entityTypes: {
33
42
  requestsMetadata: EntityTypesRequestBuilderRequestsMetadata,
34
43
  },
@@ -1,8 +1,8 @@
1
1
  {
2
- "descriptionHash": "78246162DE31C6D507790E4A3A8E50DA6E7A9D19BB4F984E57F5C2EC295E03800C6BC6AD2E00309C97A718E4CE16EDD52B1BBE44E2D5B247AEEAB0721611C332",
2
+ "descriptionHash": "D72092183082FD15E8C96B4A1F9B8061F3D88FD5E62FC894A609903D8EA9C4916AE7326F21D500B36342B79DF2E7C34BDFCFFD8ADCE73250CB004A04CF44BD58",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
- "kiotaVersion": "1.31.1",
5
+ "kiotaVersion": "1.32.2",
6
6
  "clientClassName": "TpSharedDataModelClient",
7
7
  "typeAccessModifier": "Public",
8
8
  "clientNamespaceName": "Tp",
@@ -49,13 +49,13 @@ export interface Query_entitiesRequestBuilderPostQueryParameters {
49
49
  /**
50
50
  * Uri template for the request builder.
51
51
  */
52
- export const Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities?entityType={entityType}{&disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
52
+ export const Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities{?disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
53
53
  /**
54
54
  * Metadata for all the requests in the request builder.
55
55
  */
56
56
  export const Query_entitiesRequestBuilderRequestsMetadata: RequestsMetadata = {
57
57
  get: {
58
- uriTemplate: Query_entitiesRequestBuilderUriTemplate,
58
+ uriTemplate: "{+baseurl}/mcp/_tools/query_entities?entityType={entityType}{&disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}",
59
59
  responseBodyContentType: "application/json",
60
60
  adapterMethodName: "send",
61
61
  responseBodyFactory: createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue,
@@ -4,12 +4,28 @@
4
4
  // @ts-ignore
5
5
  import { createUntypedNodeFromDiscriminatorValue, type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
6
6
 
7
+ export type CacheCategory = (typeof CacheCategoryObject)[keyof typeof CacheCategoryObject];
8
+ export interface CleanCacheRequestDto extends Parsable {
9
+ /**
10
+ * Optional list of cache categories to clear. If empty or null, all categories are cleared.
11
+ */
12
+ categories?: CacheCategory[] | null;
13
+ }
7
14
  export interface CopyCurrentProfileRequestDto extends Parsable {
8
15
  /**
9
16
  * The profileName property
10
17
  */
11
18
  profileName?: string | null;
12
19
  }
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 {CleanCacheRequestDto}
24
+ */
25
+ // @ts-ignore
26
+ export function createCleanCacheRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
27
+ return deserializeIntoCleanCacheRequestDto;
28
+ }
13
29
  /**
14
30
  * Creates a new instance of the appropriate class based on discriminator value
15
31
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -288,6 +304,15 @@ export function createTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode
288
304
  }
289
305
  return deserializeIntoTypeMetaDefDto;
290
306
  }
307
+ /**
308
+ * Creates a new instance of the appropriate class based on discriminator value
309
+ * @param parseNode The parse node to use to read the discriminator value and create the object
310
+ * @returns {TypeTermDto}
311
+ */
312
+ // @ts-ignore
313
+ export function createTypeTermDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
314
+ return deserializeIntoTypeTermDto;
315
+ }
291
316
  /**
292
317
  * Creates a new instance of the appropriate class based on discriminator value
293
318
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -321,6 +346,17 @@ export interface DeleteProfileRequestDto extends Parsable {
321
346
  */
322
347
  profileId?: string | null;
323
348
  }
349
+ /**
350
+ * The deserialization information for the current model
351
+ * @param CleanCacheRequestDto The instance to deserialize into.
352
+ * @returns {Record<string, (node: ParseNode) => void>}
353
+ */
354
+ // @ts-ignore
355
+ export function deserializeIntoCleanCacheRequestDto(cleanCacheRequestDto: Partial<CleanCacheRequestDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
356
+ return {
357
+ "categories": n => { cleanCacheRequestDto.categories = n.getCollectionOfEnumValues<CacheCategory>(CacheCategoryObject); },
358
+ }
359
+ }
324
360
  /**
325
361
  * The deserialization information for the current model
326
362
  * @param CopyCurrentProfileRequestDto The instance to deserialize into.
@@ -571,7 +607,6 @@ export function deserializeIntoTpEntityRequest(tpEntityRequest: Partial<TpEntity
571
607
  "entityType": n => { tpEntityRequest.entityType = n.getStringValue(); },
572
608
  "filter": n => { tpEntityRequest.filter = n.getStringValue(); },
573
609
  "id": n => { tpEntityRequest.id = n.getNumberValue(); },
574
- "includeLinks": n => { tpEntityRequest.includeLinks = n.getBooleanValue(); },
575
610
  "orderBy": n => { tpEntityRequest.orderBy = n.getStringValue(); },
576
611
  "result": n => { tpEntityRequest.result = n.getStringValue(); },
577
612
  "select": n => { tpEntityRequest.select = n.getStringValue(); },
@@ -626,8 +661,10 @@ export function deserializeIntoTpTypeDefDto(tpTypeDefDto: Partial<TpTypeDefDto>
626
661
  export function deserializeIntoTpTypeMetaDefDto(tpTypeMetaDefDto: Partial<TpTypeMetaDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
627
662
  return {
628
663
  ...deserializeIntoTypeMetaDefDto(tpTypeMetaDefDto),
664
+ "alternateNames": n => { tpTypeMetaDefDto.alternateNames = n.getCollectionOfPrimitiveValues<string>(); },
665
+ "hasProject": n => { tpTypeMetaDefDto.hasProject = n.getBooleanValue(); },
629
666
  "isLinkable": n => { tpTypeMetaDefDto.isLinkable = n.getBooleanValue(); },
630
- "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfPrimitiveValues<string>(); },
667
+ "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfObjectValues<TypeTermDto>(createTypeTermDtoFromDiscriminatorValue); },
631
668
  }
632
669
  }
633
670
  /**
@@ -661,6 +698,19 @@ export function deserializeIntoTypeMetaDefDto(typeMetaDefDto: Partial<TypeMetaDe
661
698
  "$type": n => { typeMetaDefDto.type = n.getStringValue(); },
662
699
  }
663
700
  }
701
+ /**
702
+ * The deserialization information for the current model
703
+ * @param TypeTermDto The instance to deserialize into.
704
+ * @returns {Record<string, (node: ParseNode) => void>}
705
+ */
706
+ // @ts-ignore
707
+ export function deserializeIntoTypeTermDto(typeTermDto: Partial<TypeTermDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
708
+ return {
709
+ "id": n => { typeTermDto.id = n.getStringValue(); },
710
+ "processIds": n => { typeTermDto.processIds = n.getCollectionOfPrimitiveValues<number>(); },
711
+ "term": n => { typeTermDto.term = n.getStringValue(); },
712
+ }
713
+ }
664
714
  /**
665
715
  * The deserialization information for the current model
666
716
  * @param ValidatedFieldMappingDto The instance to deserialize into.
@@ -859,6 +909,18 @@ export interface SdmTypeDefDto extends Parsable {
859
909
  */
860
910
  name?: string | null;
861
911
  }
912
+ /**
913
+ * Serializes information the current object
914
+ * @param CleanCacheRequestDto The instance to serialize from.
915
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
916
+ * @param writer Serialization writer to use to serialize this model
917
+ */
918
+ // @ts-ignore
919
+ export function serializeCleanCacheRequestDto(writer: SerializationWriter, cleanCacheRequestDto: Partial<CleanCacheRequestDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
920
+ if (!cleanCacheRequestDto || isSerializingDerivedType) { return; }
921
+ if(cleanCacheRequestDto.categories)
922
+ writer.writeCollectionOfEnumValues<CacheCategory>("categories", cleanCacheRequestDto.categories);
923
+ }
862
924
  /**
863
925
  * Serializes information the current object
864
926
  * @param CopyCurrentProfileRequestDto The instance to serialize from.
@@ -1123,7 +1185,6 @@ export function serializeTpEntityRequest(writer: SerializationWriter, tpEntityRe
1123
1185
  writer.writeStringValue("entityType", tpEntityRequest.entityType);
1124
1186
  writer.writeStringValue("filter", tpEntityRequest.filter);
1125
1187
  writer.writeNumberValue("id", tpEntityRequest.id);
1126
- writer.writeBooleanValue("includeLinks", tpEntityRequest.includeLinks);
1127
1188
  writer.writeStringValue("orderBy", tpEntityRequest.orderBy);
1128
1189
  writer.writeStringValue("result", tpEntityRequest.result);
1129
1190
  writer.writeStringValue("select", tpEntityRequest.select);
@@ -1179,8 +1240,10 @@ export function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto:
1179
1240
  export function serializeTpTypeMetaDefDto(writer: SerializationWriter, tpTypeMetaDefDto: Partial<TpTypeMetaDefDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
1180
1241
  if (!tpTypeMetaDefDto || isSerializingDerivedType) { return; }
1181
1242
  serializeTypeMetaDefDto(writer, tpTypeMetaDefDto, isSerializingDerivedType)
1243
+ writer.writeCollectionOfPrimitiveValues<string>("alternateNames", tpTypeMetaDefDto.alternateNames);
1244
+ writer.writeBooleanValue("hasProject", tpTypeMetaDefDto.hasProject);
1182
1245
  writer.writeBooleanValue("isLinkable", tpTypeMetaDefDto.isLinkable);
1183
- writer.writeCollectionOfPrimitiveValues<string>("terms", tpTypeMetaDefDto.terms);
1246
+ writer.writeCollectionOfObjectValues<TypeTermDto>("terms", tpTypeMetaDefDto.terms, serializeTypeTermDto);
1184
1247
  writer.writeAdditionalData(tpTypeMetaDefDto.additionalData);
1185
1248
  }
1186
1249
  /**
@@ -1224,6 +1287,19 @@ export function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDef
1224
1287
  break;
1225
1288
  }
1226
1289
  }
1290
+ /**
1291
+ * Serializes information the current object
1292
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1293
+ * @param TypeTermDto The instance to serialize from.
1294
+ * @param writer Serialization writer to use to serialize this model
1295
+ */
1296
+ // @ts-ignore
1297
+ export function serializeTypeTermDto(writer: SerializationWriter, typeTermDto: Partial<TypeTermDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
1298
+ if (!typeTermDto || isSerializingDerivedType) { return; }
1299
+ writer.writeStringValue("id", typeTermDto.id);
1300
+ writer.writeCollectionOfPrimitiveValues<number>("processIds", typeTermDto.processIds);
1301
+ writer.writeStringValue("term", typeTermDto.term);
1302
+ }
1227
1303
  /**
1228
1304
  * Serializes information the current object
1229
1305
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1338,10 +1414,6 @@ export interface TpEntityRequest extends Parsable {
1338
1414
  * The id property
1339
1415
  */
1340
1416
  id?: number | null;
1341
- /**
1342
- * The includeLinks property
1343
- */
1344
- includeLinks?: boolean | null;
1345
1417
  /**
1346
1418
  * The orderBy property
1347
1419
  */
@@ -1401,6 +1473,14 @@ export interface TpTypeDefDto extends Parsable {
1401
1473
  name?: string | null;
1402
1474
  }
1403
1475
  export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMetaDefDto {
1476
+ /**
1477
+ * The alternateNames property
1478
+ */
1479
+ alternateNames?: string[] | null;
1480
+ /**
1481
+ * The hasProject property
1482
+ */
1483
+ hasProject?: boolean | null;
1404
1484
  /**
1405
1485
  * Indicates whether entities of this type have a UI page in Targetprocess.Based on native types list + extendable domain types (isAssignable || isVisible) + Comment (special case).
1406
1486
  */
@@ -1408,7 +1488,7 @@ export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMe
1408
1488
  /**
1409
1489
  * The terms property
1410
1490
  */
1411
- terms?: string[] | null;
1491
+ terms?: TypeTermDto[] | null;
1412
1492
  }
1413
1493
  export interface TypeMappingDto extends Parsable {
1414
1494
  /**
@@ -1458,6 +1538,20 @@ export interface TypeMetaDefDto extends Parsable {
1458
1538
  */
1459
1539
  type?: string | null;
1460
1540
  }
1541
+ export interface TypeTermDto extends Parsable {
1542
+ /**
1543
+ * The id property
1544
+ */
1545
+ id?: string | null;
1546
+ /**
1547
+ * The processIds property
1548
+ */
1549
+ processIds?: number[] | null;
1550
+ /**
1551
+ * The term property
1552
+ */
1553
+ term?: string | null;
1554
+ }
1461
1555
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
1462
1556
  /**
1463
1557
  * The errors property
@@ -1493,6 +1587,15 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
1493
1587
  validationState?: ValidationState | null;
1494
1588
  }
1495
1589
  export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
1590
+ export const CacheCategoryObject = {
1591
+ ArrowMeta: "ArrowMeta",
1592
+ FrontdoorUser: "FrontdoorUser",
1593
+ MappedExpressions: "MappedExpressions",
1594
+ TpMeta: "TpMeta",
1595
+ TpUser: "TpUser",
1596
+ TpUserToken: "TpUserToken",
1597
+ Yaft: "Yaft",
1598
+ } as const;
1496
1599
  export const FieldMappingKindObject = {
1497
1600
  DefaultEscaped: "Default",
1498
1601
  Custom: "Custom",
package/src/v1.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "x-generator": "NSwag v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))",
2
+ "x-generator": "NSwag v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))",
3
3
  "openapi": "3.0.0",
4
4
  "info": {
5
5
  "title": "Targetprocess Shared Data Model",
@@ -257,6 +257,88 @@
257
257
  ]
258
258
  }
259
259
  },
260
+ "/api/settings/cache/clean": {
261
+ "post": {
262
+ "tags": [
263
+ "Settings"
264
+ ],
265
+ "summary": "Clear cache for the current account, optionally filtered by categories",
266
+ "operationId": "CleanCacheEndpoint",
267
+ "requestBody": {
268
+ "x-name": "CleanCacheRequestDto",
269
+ "description": "",
270
+ "content": {
271
+ "application/json": {
272
+ "schema": {
273
+ "$ref": "#/components/schemas/CleanCacheRequestDto"
274
+ }
275
+ }
276
+ },
277
+ "required": true,
278
+ "x-position": 1
279
+ },
280
+ "responses": {
281
+ "400": {
282
+ "description": "Validation error",
283
+ "content": {
284
+ "application/problem+json": {
285
+ "schema": {
286
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
287
+ }
288
+ }
289
+ }
290
+ },
291
+ "401": {
292
+ "description": "Unauthorized",
293
+ "content": {
294
+ "application/problem+json": {
295
+ "schema": {
296
+ "$ref": "#/components/schemas/ProblemDetails"
297
+ }
298
+ }
299
+ }
300
+ },
301
+ "404": {
302
+ "description": "Unable to find resource",
303
+ "content": {
304
+ "application/problem+json": {
305
+ "schema": {
306
+ "$ref": "#/components/schemas/ProblemDetails"
307
+ }
308
+ }
309
+ }
310
+ },
311
+ "409": {
312
+ "description": "Conflict",
313
+ "content": {
314
+ "application/problem+json": {
315
+ "schema": {
316
+ "$ref": "#/components/schemas/ProblemDetails"
317
+ }
318
+ }
319
+ }
320
+ },
321
+ "500": {
322
+ "description": "Internal server error",
323
+ "content": {
324
+ "application/problem+json": {
325
+ "schema": {
326
+ "$ref": "#/components/schemas/ProblemDetails"
327
+ }
328
+ }
329
+ }
330
+ },
331
+ "403": {
332
+ "description": "Forbidden"
333
+ }
334
+ },
335
+ "security": [
336
+ {
337
+ "apptio-token-scheme": []
338
+ }
339
+ ]
340
+ }
341
+ },
260
342
  "/api/settings/profile/copy": {
261
343
  "post": {
262
344
  "tags": [
@@ -2598,8 +2680,7 @@
2598
2680
  "type": "object",
2599
2681
  "additionalProperties": false,
2600
2682
  "required": [
2601
- "entityType",
2602
- "includeLinks"
2683
+ "entityType"
2603
2684
  ],
2604
2685
  "properties": {
2605
2686
  "entityType": {
@@ -2610,9 +2691,6 @@
2610
2691
  "format": "int32",
2611
2692
  "nullable": true
2612
2693
  },
2613
- "includeLinks": {
2614
- "type": "boolean"
2615
- },
2616
2694
  "where": {
2617
2695
  "type": "string",
2618
2696
  "nullable": true
@@ -2705,6 +2783,42 @@
2705
2783
  }
2706
2784
  }
2707
2785
  },
2786
+ "CleanCacheRequestDto": {
2787
+ "type": "object",
2788
+ "additionalProperties": false,
2789
+ "properties": {
2790
+ "categories": {
2791
+ "type": "array",
2792
+ "description": "Optional list of cache categories to clear. If empty or null, all categories are cleared.",
2793
+ "nullable": true,
2794
+ "items": {
2795
+ "$ref": "#/components/schemas/CacheCategory"
2796
+ }
2797
+ }
2798
+ }
2799
+ },
2800
+ "CacheCategory": {
2801
+ "type": "string",
2802
+ "description": "",
2803
+ "x-enumNames": [
2804
+ "ArrowMeta",
2805
+ "FrontdoorUser",
2806
+ "MappedExpressions",
2807
+ "TpMeta",
2808
+ "TpUser",
2809
+ "TpUserToken",
2810
+ "Yaft"
2811
+ ],
2812
+ "enum": [
2813
+ "ArrowMeta",
2814
+ "FrontdoorUser",
2815
+ "MappedExpressions",
2816
+ "TpMeta",
2817
+ "TpUser",
2818
+ "TpUserToken",
2819
+ "Yaft"
2820
+ ]
2821
+ },
2708
2822
  "ProfileDto": {
2709
2823
  "allOf": [
2710
2824
  {
@@ -2737,11 +2851,11 @@
2737
2851
  },
2738
2852
  "additionalProperties": false,
2739
2853
  "required": [
2740
- "$type",
2741
- "id",
2742
2854
  "sourceType",
2743
2855
  "targetType",
2744
- "fieldMappings"
2856
+ "fieldMappings",
2857
+ "$type",
2858
+ "id"
2745
2859
  ],
2746
2860
  "properties": {
2747
2861
  "id": {
@@ -2768,8 +2882,8 @@
2768
2882
  "type": "object",
2769
2883
  "additionalProperties": false,
2770
2884
  "required": [
2771
- "id",
2772
2885
  "name",
2886
+ "id",
2773
2887
  "isEmptyType"
2774
2888
  ],
2775
2889
  "properties": {
@@ -2788,8 +2902,8 @@
2788
2902
  "type": "object",
2789
2903
  "additionalProperties": false,
2790
2904
  "required": [
2791
- "id",
2792
- "name"
2905
+ "name",
2906
+ "id"
2793
2907
  ],
2794
2908
  "properties": {
2795
2909
  "id": {
@@ -2810,10 +2924,10 @@
2810
2924
  },
2811
2925
  "additionalProperties": false,
2812
2926
  "required": [
2813
- "$type",
2814
- "id",
2815
2927
  "source",
2816
2928
  "target",
2929
+ "$type",
2930
+ "id",
2817
2931
  "kind"
2818
2932
  ],
2819
2933
  "properties": {
@@ -3024,10 +3138,10 @@
3024
3138
  },
3025
3139
  "additionalProperties": false,
3026
3140
  "required": [
3027
- "$type",
3028
3141
  "id",
3029
3142
  "name",
3030
3143
  "fields",
3144
+ "$type",
3031
3145
  "isEmptyType"
3032
3146
  ],
3033
3147
  "properties": {
@@ -3065,9 +3179,9 @@
3065
3179
  },
3066
3180
  "additionalProperties": false,
3067
3181
  "required": [
3068
- "$type",
3069
3182
  "expression",
3070
- "type"
3183
+ "type",
3184
+ "$type"
3071
3185
  ],
3072
3186
  "properties": {
3073
3187
  "expression": {
@@ -3131,17 +3245,28 @@
3131
3245
  "type": "object",
3132
3246
  "additionalProperties": false,
3133
3247
  "required": [
3248
+ "alternateNames",
3134
3249
  "terms",
3250
+ "hasProject",
3135
3251
  "isLinkable",
3136
3252
  "isEmptyType"
3137
3253
  ],
3138
3254
  "properties": {
3139
- "terms": {
3255
+ "alternateNames": {
3140
3256
  "type": "array",
3141
3257
  "items": {
3142
3258
  "type": "string"
3143
3259
  }
3144
3260
  },
3261
+ "terms": {
3262
+ "type": "array",
3263
+ "items": {
3264
+ "$ref": "#/components/schemas/TypeTermDto"
3265
+ }
3266
+ },
3267
+ "hasProject": {
3268
+ "type": "boolean"
3269
+ },
3145
3270
  "isLinkable": {
3146
3271
  "type": "boolean",
3147
3272
  "description": "Indicates whether entities of this type have a UI page in Targetprocess.\nBased on native types list + extendable domain types (isAssignable || isVisible) + Comment (special case)."
@@ -3153,6 +3278,30 @@
3153
3278
  }
3154
3279
  ]
3155
3280
  },
3281
+ "TypeTermDto": {
3282
+ "type": "object",
3283
+ "additionalProperties": false,
3284
+ "required": [
3285
+ "id",
3286
+ "term",
3287
+ "processIds"
3288
+ ],
3289
+ "properties": {
3290
+ "id": {
3291
+ "type": "string"
3292
+ },
3293
+ "term": {
3294
+ "type": "string"
3295
+ },
3296
+ "processIds": {
3297
+ "type": "array",
3298
+ "items": {
3299
+ "type": "integer",
3300
+ "format": "int32"
3301
+ }
3302
+ }
3303
+ }
3304
+ },
3156
3305
  "SetCurrentProfileRequestDto": {
3157
3306
  "type": "object",
3158
3307
  "additionalProperties": false,