@targetprocess/shared-data-model-client 1.44.2-rc.3 → 1.44.2-rc.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.
@@ -16,6 +16,7 @@ exports.AlertsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts";
16
16
  exports.AlertsRequestBuilderNavigationMetadata = {
17
17
  byStorageKey: {
18
18
  requestsMetadata: index_js_1.WithStorageKeyItemRequestBuilderRequestsMetadata,
19
+ navigationMetadata: index_js_1.WithStorageKeyItemRequestBuilderNavigationMetadata,
19
20
  pathParametersMappings: ["storageKey"],
20
21
  },
21
22
  };
@@ -1,8 +1,13 @@
1
- import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
1
+ import { type RawRequestBuilder } from './raw/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
2
3
  /**
3
4
  * Builds and executes requests for operations under /api/sdm/alerts/{storageKey}
4
5
  */
5
6
  export interface WithStorageKeyItemRequestBuilder extends BaseRequestBuilder<WithStorageKeyItemRequestBuilder> {
7
+ /**
8
+ * The raw property
9
+ */
10
+ get raw(): RawRequestBuilder;
6
11
  /**
7
12
  * Gets alerts
8
13
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -25,6 +30,10 @@ export interface WithStorageKeyItemRequestBuilder extends BaseRequestBuilder<Wit
25
30
  * Uri template for the request builder.
26
31
  */
27
32
  export declare const WithStorageKeyItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}";
33
+ /**
34
+ * Metadata for all the navigation properties in the request builder.
35
+ */
36
+ export declare const WithStorageKeyItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithStorageKeyItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
28
37
  /**
29
38
  * Metadata for all the requests in the request builder.
30
39
  */
@@ -1,17 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WithStorageKeyItemRequestBuilderRequestsMetadata = exports.WithStorageKeyItemRequestBuilderUriTemplate = void 0;
3
+ exports.WithStorageKeyItemRequestBuilderRequestsMetadata = exports.WithStorageKeyItemRequestBuilderNavigationMetadata = exports.WithStorageKeyItemRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  // @ts-ignore
8
8
  const index_js_1 = require("../../../../models/index.js");
9
9
  // @ts-ignore
10
+ const index_js_2 = require("./raw/index.js");
11
+ // @ts-ignore
10
12
  const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
11
13
  /**
12
14
  * Uri template for the request builder.
13
15
  */
14
16
  exports.WithStorageKeyItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}";
17
+ /**
18
+ * Metadata for all the navigation properties in the request builder.
19
+ */
20
+ exports.WithStorageKeyItemRequestBuilderNavigationMetadata = {
21
+ raw: {
22
+ requestsMetadata: index_js_2.RawRequestBuilderRequestsMetadata,
23
+ },
24
+ };
15
25
  /**
16
26
  * Metadata for all the requests in the request builder.
17
27
  */
@@ -0,0 +1,31 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Builds and executes requests for operations under /api/sdm/alerts/{storageKey}/raw
4
+ */
5
+ export interface RawRequestBuilder extends BaseRequestBuilder<RawRequestBuilder> {
6
+ /**
7
+ * Gets raw normalized alerts without filter evaluation
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns {Promise<UntypedNode>}
10
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
11
+ * @throws {ProblemDetails} error when the service returns a 401 status code
12
+ * @throws {ProblemDetails} error when the service returns a 404 status code
13
+ * @throws {ProblemDetails} error when the service returns a 409 status code
14
+ * @throws {ProblemDetails} error when the service returns a 500 status code
15
+ */
16
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UntypedNode | undefined>;
17
+ /**
18
+ * Gets raw normalized alerts without filter evaluation
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ * @returns {RequestInformation}
21
+ */
22
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
23
+ }
24
+ /**
25
+ * Uri template for the request builder.
26
+ */
27
+ export declare const RawRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}/raw";
28
+ /**
29
+ * Metadata for all the requests in the request builder.
30
+ */
31
+ export declare const RawRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RawRequestBuilderRequestsMetadata = exports.RawRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ // @ts-ignore
8
+ const index_js_1 = require("../../../../../models/index.js");
9
+ // @ts-ignore
10
+ const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
11
+ /**
12
+ * Uri template for the request builder.
13
+ */
14
+ exports.RawRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}/raw";
15
+ /**
16
+ * Metadata for all the requests in the request builder.
17
+ */
18
+ exports.RawRequestBuilderRequestsMetadata = {
19
+ get: {
20
+ uriTemplate: exports.RawRequestBuilderUriTemplate,
21
+ responseBodyContentType: "application/json",
22
+ errorMappings: {
23
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
24
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
25
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
26
+ 409: index_js_1.createProblemDetailsFromDiscriminatorValue,
27
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
28
+ },
29
+ adapterMethodName: "send",
30
+ responseBodyFactory: kiota_abstractions_1.createUntypedNodeFromDiscriminatorValue,
31
+ },
32
+ };
33
+ /* tslint:enable */
34
+ /* eslint-enable */
@@ -143,6 +143,12 @@ export declare function createTpMcpQueryResponseOfJsonElementFromDiscriminatorVa
143
143
  * @returns {TpTypeDefDto}
144
144
  */
145
145
  export declare function createTpTypeDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
146
+ /**
147
+ * Creates a new instance of the appropriate class based on discriminator value
148
+ * @param parseNode The parse node to use to read the discriminator value and create the object
149
+ * @returns {TpTypeMetaDefDto}
150
+ */
151
+ export declare function createTpTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
146
152
  /**
147
153
  * Creates a new instance of the appropriate class based on discriminator value
148
154
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -317,6 +323,12 @@ export declare function deserializeIntoTpMcpQueryResponseOfJsonElement(tpMcpQuer
317
323
  * @returns {Record<string, (node: ParseNode) => void>}
318
324
  */
319
325
  export declare function deserializeIntoTpTypeDefDto(tpTypeDefDto?: Partial<TpTypeDefDto> | undefined): Record<string, (node: ParseNode) => void>;
326
+ /**
327
+ * The deserialization information for the current model
328
+ * @param TpTypeMetaDefDto The instance to deserialize into.
329
+ * @returns {Record<string, (node: ParseNode) => void>}
330
+ */
331
+ export declare function deserializeIntoTpTypeMetaDefDto(tpTypeMetaDefDto?: Partial<TpTypeMetaDefDto> | undefined): Record<string, (node: ParseNode) => void>;
320
332
  /**
321
333
  * The deserialization information for the current model
322
334
  * @param TypeMappingDto The instance to deserialize into.
@@ -666,6 +678,13 @@ export declare function serializeTpMcpQueryResponseOfJsonElement(writer: Seriali
666
678
  * @param writer Serialization writer to use to serialize this model
667
679
  */
668
680
  export declare function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto?: Partial<TpTypeDefDto> | undefined | null, isSerializingDerivedType?: boolean): void;
681
+ /**
682
+ * Serializes information the current object
683
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
684
+ * @param TpTypeMetaDefDto The instance to serialize from.
685
+ * @param writer Serialization writer to use to serialize this model
686
+ */
687
+ export declare function serializeTpTypeMetaDefDto(writer: SerializationWriter, tpTypeMetaDefDto?: Partial<TpTypeMetaDefDto> | undefined | null, isSerializingDerivedType?: boolean): void;
669
688
  /**
670
689
  * Serializes information the current object
671
690
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -834,6 +853,16 @@ export interface TpTypeDefDto extends Parsable {
834
853
  */
835
854
  name?: string | null;
836
855
  }
856
+ export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMetaDefDto {
857
+ /**
858
+ * 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
+ */
860
+ isLinkable?: boolean | null;
861
+ /**
862
+ * The terms property
863
+ */
864
+ terms?: string[] | null;
865
+ }
837
866
  export interface TypeMappingDto extends Parsable {
838
867
  /**
839
868
  * The fieldMappings property
@@ -877,6 +906,10 @@ export interface TypeMetaDefDto extends Parsable {
877
906
  * The name property
878
907
  */
879
908
  name?: string | null;
909
+ /**
910
+ * The Type property
911
+ */
912
+ type?: string | null;
880
913
  }
881
914
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
882
915
  /**
@@ -24,6 +24,7 @@ exports.createTpEntityRequestFromDiscriminatorValue = createTpEntityRequestFromD
24
24
  exports.createTpFieldDefDtoFromDiscriminatorValue = createTpFieldDefDtoFromDiscriminatorValue;
25
25
  exports.createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue = createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue;
26
26
  exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscriminatorValue;
27
+ exports.createTpTypeMetaDefDtoFromDiscriminatorValue = createTpTypeMetaDefDtoFromDiscriminatorValue;
27
28
  exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
28
29
  exports.createTypeMetaDefDtoFromDiscriminatorValue = createTypeMetaDefDtoFromDiscriminatorValue;
29
30
  exports.createValidatedFieldMappingDtoFromDiscriminatorValue = createValidatedFieldMappingDtoFromDiscriminatorValue;
@@ -52,6 +53,7 @@ exports.deserializeIntoTpEntityRequest = deserializeIntoTpEntityRequest;
52
53
  exports.deserializeIntoTpFieldDefDto = deserializeIntoTpFieldDefDto;
53
54
  exports.deserializeIntoTpMcpQueryResponseOfJsonElement = deserializeIntoTpMcpQueryResponseOfJsonElement;
54
55
  exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
56
+ exports.deserializeIntoTpTypeMetaDefDto = deserializeIntoTpTypeMetaDefDto;
55
57
  exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
56
58
  exports.deserializeIntoTypeMetaDefDto = deserializeIntoTypeMetaDefDto;
57
59
  exports.deserializeIntoValidatedFieldMappingDto = deserializeIntoValidatedFieldMappingDto;
@@ -80,6 +82,7 @@ exports.serializeTpEntityRequest = serializeTpEntityRequest;
80
82
  exports.serializeTpFieldDefDto = serializeTpFieldDefDto;
81
83
  exports.serializeTpMcpQueryResponseOfJsonElement = serializeTpMcpQueryResponseOfJsonElement;
82
84
  exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
85
+ exports.serializeTpTypeMetaDefDto = serializeTpTypeMetaDefDto;
83
86
  exports.serializeTypeMappingDto = serializeTypeMappingDto;
84
87
  exports.serializeTypeMetaDefDto = serializeTypeMetaDefDto;
85
88
  exports.serializeValidatedFieldMappingDto = serializeValidatedFieldMappingDto;
@@ -321,6 +324,15 @@ function createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue(parseNode)
321
324
  function createTpTypeDefDtoFromDiscriminatorValue(parseNode) {
322
325
  return deserializeIntoTpTypeDefDto;
323
326
  }
327
+ /**
328
+ * Creates a new instance of the appropriate class based on discriminator value
329
+ * @param parseNode The parse node to use to read the discriminator value and create the object
330
+ * @returns {TpTypeMetaDefDto}
331
+ */
332
+ // @ts-ignore
333
+ function createTpTypeMetaDefDtoFromDiscriminatorValue(parseNode) {
334
+ return deserializeIntoTpTypeMetaDefDto;
335
+ }
324
336
  /**
325
337
  * Creates a new instance of the appropriate class based on discriminator value
326
338
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -349,6 +361,18 @@ function createTypeMappingDtoFromDiscriminatorValue(parseNode) {
349
361
  */
350
362
  // @ts-ignore
351
363
  function createTypeMetaDefDtoFromDiscriminatorValue(parseNode) {
364
+ if (!parseNode)
365
+ throw new Error("parseNode cannot be undefined");
366
+ const mappingValueNode = parseNode?.getChildNode("$type");
367
+ if (mappingValueNode) {
368
+ const mappingValue = mappingValueNode.getStringValue();
369
+ if (mappingValue) {
370
+ switch (mappingValue) {
371
+ case "tp":
372
+ return deserializeIntoTpTypeMetaDefDto;
373
+ }
374
+ }
375
+ }
352
376
  return deserializeIntoTypeMetaDefDto;
353
377
  }
354
378
  /**
@@ -673,6 +697,19 @@ function deserializeIntoTpTypeDefDto(tpTypeDefDto = {}) {
673
697
  "name": n => { tpTypeDefDto.name = n.getStringValue(); },
674
698
  };
675
699
  }
700
+ /**
701
+ * The deserialization information for the current model
702
+ * @param TpTypeMetaDefDto The instance to deserialize into.
703
+ * @returns {Record<string, (node: ParseNode) => void>}
704
+ */
705
+ // @ts-ignore
706
+ function deserializeIntoTpTypeMetaDefDto(tpTypeMetaDefDto = {}) {
707
+ return {
708
+ ...deserializeIntoTypeMetaDefDto(tpTypeMetaDefDto),
709
+ "isLinkable": n => { tpTypeMetaDefDto.isLinkable = n.getBooleanValue(); },
710
+ "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfPrimitiveValues(); },
711
+ };
712
+ }
676
713
  /**
677
714
  * The deserialization information for the current model
678
715
  * @param TypeMappingDto The instance to deserialize into.
@@ -701,6 +738,7 @@ function deserializeIntoTypeMetaDefDto(typeMetaDefDto = {}) {
701
738
  "id": n => { typeMetaDefDto.id = n.getStringValue(); },
702
739
  "isEmptyType": n => { typeMetaDefDto.isEmptyType = n.getBooleanValue(); },
703
740
  "name": n => { typeMetaDefDto.name = n.getStringValue(); },
741
+ "$type": n => { typeMetaDefDto.type = n.getStringValue(); },
704
742
  };
705
743
  }
706
744
  /**
@@ -1099,6 +1137,22 @@ function serializeTpTypeDefDto(writer, tpTypeDefDto = {}, isSerializingDerivedTy
1099
1137
  writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
1100
1138
  writer.writeStringValue("name", tpTypeDefDto.name);
1101
1139
  }
1140
+ /**
1141
+ * Serializes information the current object
1142
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1143
+ * @param TpTypeMetaDefDto The instance to serialize from.
1144
+ * @param writer Serialization writer to use to serialize this model
1145
+ */
1146
+ // @ts-ignore
1147
+ function serializeTpTypeMetaDefDto(writer, tpTypeMetaDefDto = {}, isSerializingDerivedType = false) {
1148
+ if (!tpTypeMetaDefDto || isSerializingDerivedType) {
1149
+ return;
1150
+ }
1151
+ serializeTypeMetaDefDto(writer, tpTypeMetaDefDto, isSerializingDerivedType);
1152
+ writer.writeBooleanValue("isLinkable", tpTypeMetaDefDto.isLinkable);
1153
+ writer.writeCollectionOfPrimitiveValues("terms", tpTypeMetaDefDto.terms);
1154
+ writer.writeAdditionalData(tpTypeMetaDefDto.additionalData);
1155
+ }
1102
1156
  /**
1103
1157
  * Serializes information the current object
1104
1158
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1137,6 +1191,12 @@ function serializeTypeMetaDefDto(writer, typeMetaDefDto = {}, isSerializingDeriv
1137
1191
  writer.writeStringValue("id", typeMetaDefDto.id);
1138
1192
  writer.writeBooleanValue("isEmptyType", typeMetaDefDto.isEmptyType);
1139
1193
  writer.writeStringValue("name", typeMetaDefDto.name);
1194
+ writer.writeStringValue("$type", typeMetaDefDto.type);
1195
+ switch (typeMetaDefDto.type) {
1196
+ case "tp":
1197
+ serializeTpTypeMetaDefDto(writer, typeMetaDefDto, true);
1198
+ break;
1199
+ }
1140
1200
  }
1141
1201
  /**
1142
1202
  * Serializes information the current object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "1.44.2-rc.3",
3
+ "version": "1.44.2-rc.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { type WithStorageKeyItemRequestBuilder, WithStorageKeyItemRequestBuilderRequestsMetadata } from './item/index.js';
5
+ import { type WithStorageKeyItemRequestBuilder, WithStorageKeyItemRequestBuilderNavigationMetadata, WithStorageKeyItemRequestBuilderRequestsMetadata } from './item/index.js';
6
6
  // @ts-ignore
7
7
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
8
8
 
@@ -27,6 +27,7 @@ export const AlertsRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts";
27
27
  export const AlertsRequestBuilderNavigationMetadata: Record<Exclude<keyof AlertsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
28
28
  byStorageKey: {
29
29
  requestsMetadata: WithStorageKeyItemRequestBuilderRequestsMetadata,
30
+ navigationMetadata: WithStorageKeyItemRequestBuilderNavigationMetadata,
30
31
  pathParametersMappings: ["storageKey"],
31
32
  },
32
33
  };
@@ -4,12 +4,18 @@
4
4
  // @ts-ignore
5
5
  import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../../models/index.js';
6
6
  // @ts-ignore
7
- import { createUntypedNodeFromDiscriminatorValue, type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
7
+ import { RawRequestBuilderRequestsMetadata, type RawRequestBuilder } from './raw/index.js';
8
+ // @ts-ignore
9
+ import { createUntypedNodeFromDiscriminatorValue, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
8
10
 
9
11
  /**
10
12
  * Builds and executes requests for operations under /api/sdm/alerts/{storageKey}
11
13
  */
12
14
  export interface WithStorageKeyItemRequestBuilder extends BaseRequestBuilder<WithStorageKeyItemRequestBuilder> {
15
+ /**
16
+ * The raw property
17
+ */
18
+ get raw(): RawRequestBuilder;
13
19
  /**
14
20
  * Gets alerts
15
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -32,6 +38,14 @@ export interface WithStorageKeyItemRequestBuilder extends BaseRequestBuilder<Wit
32
38
  * Uri template for the request builder.
33
39
  */
34
40
  export const WithStorageKeyItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}";
41
+ /**
42
+ * Metadata for all the navigation properties in the request builder.
43
+ */
44
+ export const WithStorageKeyItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithStorageKeyItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
45
+ raw: {
46
+ requestsMetadata: RawRequestBuilderRequestsMetadata,
47
+ },
48
+ };
35
49
  /**
36
50
  * Metadata for all the requests in the request builder.
37
51
  */
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../../../models/index.js';
6
+ // @ts-ignore
7
+ import { createUntypedNodeFromDiscriminatorValue, type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
8
+
9
+ /**
10
+ * Builds and executes requests for operations under /api/sdm/alerts/{storageKey}/raw
11
+ */
12
+ export interface RawRequestBuilder extends BaseRequestBuilder<RawRequestBuilder> {
13
+ /**
14
+ * Gets raw normalized alerts without filter evaluation
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {Promise<UntypedNode>}
17
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
18
+ * @throws {ProblemDetails} error when the service returns a 401 status code
19
+ * @throws {ProblemDetails} error when the service returns a 404 status code
20
+ * @throws {ProblemDetails} error when the service returns a 409 status code
21
+ * @throws {ProblemDetails} error when the service returns a 500 status code
22
+ */
23
+ get(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<UntypedNode | undefined>;
24
+ /**
25
+ * Gets raw normalized alerts without filter evaluation
26
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
27
+ * @returns {RequestInformation}
28
+ */
29
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
30
+ }
31
+ /**
32
+ * Uri template for the request builder.
33
+ */
34
+ export const RawRequestBuilderUriTemplate = "{+baseurl}/api/sdm/alerts/{storageKey}/raw";
35
+ /**
36
+ * Metadata for all the requests in the request builder.
37
+ */
38
+ export const RawRequestBuilderRequestsMetadata: RequestsMetadata = {
39
+ get: {
40
+ uriTemplate: RawRequestBuilderUriTemplate,
41
+ responseBodyContentType: "application/json",
42
+ errorMappings: {
43
+ 400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
44
+ 401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
45
+ 404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
46
+ 409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
47
+ 500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
48
+ },
49
+ adapterMethodName: "send",
50
+ responseBodyFactory: createUntypedNodeFromDiscriminatorValue,
51
+ },
52
+ };
53
+ /* tslint:enable */
54
+ /* eslint-enable */
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "F8A9320AF5C07D3454D2779EE92CE873445977D4F06ACA2CA710394EDC59C09A519627472BAB92152D9EDBE884087B3E0509284A19FB928B1E1E6F4D0D3FF204",
2
+ "descriptionHash": "78246162DE31C6D507790E4A3A8E50DA6E7A9D19BB4F984E57F5C2EC295E03800C6BC6AD2E00309C97A718E4CE16EDD52B1BBE44E2D5B247AEEAB0721611C332",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.31.1",
@@ -239,6 +239,15 @@ export function createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue(pars
239
239
  export function createTpTypeDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
240
240
  return deserializeIntoTpTypeDefDto;
241
241
  }
242
+ /**
243
+ * Creates a new instance of the appropriate class based on discriminator value
244
+ * @param parseNode The parse node to use to read the discriminator value and create the object
245
+ * @returns {TpTypeMetaDefDto}
246
+ */
247
+ // @ts-ignore
248
+ export function createTpTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
249
+ return deserializeIntoTpTypeMetaDefDto;
250
+ }
242
251
  /**
243
252
  * Creates a new instance of the appropriate class based on discriminator value
244
253
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -266,6 +275,17 @@ export function createTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode
266
275
  */
267
276
  // @ts-ignore
268
277
  export function createTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
278
+ if(!parseNode) throw new Error("parseNode cannot be undefined");
279
+ const mappingValueNode = parseNode?.getChildNode("$type");
280
+ if (mappingValueNode) {
281
+ const mappingValue = mappingValueNode.getStringValue();
282
+ if (mappingValue) {
283
+ switch (mappingValue) {
284
+ case "tp":
285
+ return deserializeIntoTpTypeMetaDefDto;
286
+ }
287
+ }
288
+ }
269
289
  return deserializeIntoTypeMetaDefDto;
270
290
  }
271
291
  /**
@@ -597,6 +617,19 @@ export function deserializeIntoTpTypeDefDto(tpTypeDefDto: Partial<TpTypeDefDto>
597
617
  "name": n => { tpTypeDefDto.name = n.getStringValue(); },
598
618
  }
599
619
  }
620
+ /**
621
+ * The deserialization information for the current model
622
+ * @param TpTypeMetaDefDto The instance to deserialize into.
623
+ * @returns {Record<string, (node: ParseNode) => void>}
624
+ */
625
+ // @ts-ignore
626
+ export function deserializeIntoTpTypeMetaDefDto(tpTypeMetaDefDto: Partial<TpTypeMetaDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
627
+ return {
628
+ ...deserializeIntoTypeMetaDefDto(tpTypeMetaDefDto),
629
+ "isLinkable": n => { tpTypeMetaDefDto.isLinkable = n.getBooleanValue(); },
630
+ "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfPrimitiveValues<string>(); },
631
+ }
632
+ }
600
633
  /**
601
634
  * The deserialization information for the current model
602
635
  * @param TypeMappingDto The instance to deserialize into.
@@ -625,6 +658,7 @@ export function deserializeIntoTypeMetaDefDto(typeMetaDefDto: Partial<TypeMetaDe
625
658
  "id": n => { typeMetaDefDto.id = n.getStringValue(); },
626
659
  "isEmptyType": n => { typeMetaDefDto.isEmptyType = n.getBooleanValue(); },
627
660
  "name": n => { typeMetaDefDto.name = n.getStringValue(); },
661
+ "$type": n => { typeMetaDefDto.type = n.getStringValue(); },
628
662
  }
629
663
  }
630
664
  /**
@@ -1135,6 +1169,20 @@ export function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto:
1135
1169
  writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
1136
1170
  writer.writeStringValue("name", tpTypeDefDto.name);
1137
1171
  }
1172
+ /**
1173
+ * Serializes information the current object
1174
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1175
+ * @param TpTypeMetaDefDto The instance to serialize from.
1176
+ * @param writer Serialization writer to use to serialize this model
1177
+ */
1178
+ // @ts-ignore
1179
+ export function serializeTpTypeMetaDefDto(writer: SerializationWriter, tpTypeMetaDefDto: Partial<TpTypeMetaDefDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
1180
+ if (!tpTypeMetaDefDto || isSerializingDerivedType) { return; }
1181
+ serializeTypeMetaDefDto(writer, tpTypeMetaDefDto, isSerializingDerivedType)
1182
+ writer.writeBooleanValue("isLinkable", tpTypeMetaDefDto.isLinkable);
1183
+ writer.writeCollectionOfPrimitiveValues<string>("terms", tpTypeMetaDefDto.terms);
1184
+ writer.writeAdditionalData(tpTypeMetaDefDto.additionalData);
1185
+ }
1138
1186
  /**
1139
1187
  * Serializes information the current object
1140
1188
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1169,6 +1217,12 @@ export function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDef
1169
1217
  writer.writeStringValue("id", typeMetaDefDto.id);
1170
1218
  writer.writeBooleanValue("isEmptyType", typeMetaDefDto.isEmptyType);
1171
1219
  writer.writeStringValue("name", typeMetaDefDto.name);
1220
+ writer.writeStringValue("$type", typeMetaDefDto.type);
1221
+ switch (typeMetaDefDto.type) {
1222
+ case "tp":
1223
+ serializeTpTypeMetaDefDto(writer, typeMetaDefDto, true);
1224
+ break;
1225
+ }
1172
1226
  }
1173
1227
  /**
1174
1228
  * Serializes information the current object
@@ -1346,6 +1400,16 @@ export interface TpTypeDefDto extends Parsable {
1346
1400
  */
1347
1401
  name?: string | null;
1348
1402
  }
1403
+ export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMetaDefDto {
1404
+ /**
1405
+ * 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
+ */
1407
+ isLinkable?: boolean | null;
1408
+ /**
1409
+ * The terms property
1410
+ */
1411
+ terms?: string[] | null;
1412
+ }
1349
1413
  export interface TypeMappingDto extends Parsable {
1350
1414
  /**
1351
1415
  * The fieldMappings property
@@ -1389,6 +1453,10 @@ export interface TypeMetaDefDto extends Parsable {
1389
1453
  * The name property
1390
1454
  */
1391
1455
  name?: string | null;
1456
+ /**
1457
+ * The Type property
1458
+ */
1459
+ type?: string | null;
1392
1460
  }
1393
1461
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
1394
1462
  /**
package/src/v1.json CHANGED
@@ -1151,6 +1151,96 @@
1151
1151
  ]
1152
1152
  }
1153
1153
  },
1154
+ "/api/sdm/alerts/{storageKey}/raw": {
1155
+ "get": {
1156
+ "tags": [
1157
+ "Sdm"
1158
+ ],
1159
+ "summary": "Gets raw normalized alerts without filter evaluation",
1160
+ "operationId": "SharedDataRawAlertsEndpoint",
1161
+ "parameters": [
1162
+ {
1163
+ "name": "storageKey",
1164
+ "in": "path",
1165
+ "required": true,
1166
+ "schema": {
1167
+ "type": "string"
1168
+ }
1169
+ }
1170
+ ],
1171
+ "responses": {
1172
+ "400": {
1173
+ "description": "Validation error",
1174
+ "content": {
1175
+ "application/problem+json": {
1176
+ "schema": {
1177
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
1178
+ }
1179
+ }
1180
+ }
1181
+ },
1182
+ "401": {
1183
+ "description": "Unauthorized",
1184
+ "content": {
1185
+ "application/problem+json": {
1186
+ "schema": {
1187
+ "$ref": "#/components/schemas/ProblemDetails"
1188
+ }
1189
+ }
1190
+ }
1191
+ },
1192
+ "404": {
1193
+ "description": "Unable to find resource",
1194
+ "content": {
1195
+ "application/problem+json": {
1196
+ "schema": {
1197
+ "$ref": "#/components/schemas/ProblemDetails"
1198
+ }
1199
+ }
1200
+ }
1201
+ },
1202
+ "409": {
1203
+ "description": "Conflict",
1204
+ "content": {
1205
+ "application/problem+json": {
1206
+ "schema": {
1207
+ "$ref": "#/components/schemas/ProblemDetails"
1208
+ }
1209
+ }
1210
+ }
1211
+ },
1212
+ "500": {
1213
+ "description": "Internal server error",
1214
+ "content": {
1215
+ "application/problem+json": {
1216
+ "schema": {
1217
+ "$ref": "#/components/schemas/ProblemDetails"
1218
+ }
1219
+ }
1220
+ }
1221
+ },
1222
+ "200": {
1223
+ "description": "Success",
1224
+ "content": {
1225
+ "application/json": {
1226
+ "schema": {
1227
+ "type": "array",
1228
+ "items": {}
1229
+ }
1230
+ }
1231
+ }
1232
+ },
1233
+ "403": {
1234
+ "description": "Forbidden"
1235
+ }
1236
+ },
1237
+ "security": [
1238
+ {
1239
+ "apptio-token-scheme": []
1240
+ }
1241
+ ]
1242
+ }
1243
+ },
1154
1244
  "/api/sdm/attachments/{resourceUrl}": {
1155
1245
  "get": {
1156
1246
  "tags": [
@@ -2926,8 +3016,15 @@
2926
3016
  },
2927
3017
  "TypeMetaDefDto": {
2928
3018
  "type": "object",
3019
+ "discriminator": {
3020
+ "propertyName": "$type",
3021
+ "mapping": {
3022
+ "tp": "#/components/schemas/TpTypeMetaDefDto"
3023
+ }
3024
+ },
2929
3025
  "additionalProperties": false,
2930
3026
  "required": [
3027
+ "$type",
2931
3028
  "id",
2932
3029
  "name",
2933
3030
  "fields",
@@ -2952,6 +3049,9 @@
2952
3049
  },
2953
3050
  "isEmptyType": {
2954
3051
  "type": "boolean"
3052
+ },
3053
+ "$type": {
3054
+ "type": "string"
2955
3055
  }
2956
3056
  }
2957
3057
  },
@@ -3022,6 +3122,37 @@
3022
3122
  }
3023
3123
  ]
3024
3124
  },
3125
+ "TpTypeMetaDefDto": {
3126
+ "allOf": [
3127
+ {
3128
+ "$ref": "#/components/schemas/TypeMetaDefDto"
3129
+ },
3130
+ {
3131
+ "type": "object",
3132
+ "additionalProperties": false,
3133
+ "required": [
3134
+ "terms",
3135
+ "isLinkable",
3136
+ "isEmptyType"
3137
+ ],
3138
+ "properties": {
3139
+ "terms": {
3140
+ "type": "array",
3141
+ "items": {
3142
+ "type": "string"
3143
+ }
3144
+ },
3145
+ "isLinkable": {
3146
+ "type": "boolean",
3147
+ "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)."
3148
+ },
3149
+ "isEmptyType": {
3150
+ "type": "boolean"
3151
+ }
3152
+ }
3153
+ }
3154
+ ]
3155
+ },
3025
3156
  "SetCurrentProfileRequestDto": {
3026
3157
  "type": "object",
3027
3158
  "additionalProperties": false,