@targetprocess/shared-data-model-client 1.44.2-rc.1 → 1.44.2-rc.2

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,12 +143,6 @@ 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>);
152
146
  /**
153
147
  * Creates a new instance of the appropriate class based on discriminator value
154
148
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -323,12 +317,6 @@ export declare function deserializeIntoTpMcpQueryResponseOfJsonElement(tpMcpQuer
323
317
  * @returns {Record<string, (node: ParseNode) => void>}
324
318
  */
325
319
  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>;
332
320
  /**
333
321
  * The deserialization information for the current model
334
322
  * @param TypeMappingDto The instance to deserialize into.
@@ -678,13 +666,6 @@ export declare function serializeTpMcpQueryResponseOfJsonElement(writer: Seriali
678
666
  * @param writer Serialization writer to use to serialize this model
679
667
  */
680
668
  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;
688
669
  /**
689
670
  * Serializes information the current object
690
671
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -853,12 +834,6 @@ export interface TpTypeDefDto extends Parsable {
853
834
  */
854
835
  name?: string | null;
855
836
  }
856
- export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMetaDefDto {
857
- /**
858
- * The terms property
859
- */
860
- terms?: string[] | null;
861
- }
862
837
  export interface TypeMappingDto extends Parsable {
863
838
  /**
864
839
  * The fieldMappings property
@@ -902,10 +877,6 @@ export interface TypeMetaDefDto extends Parsable {
902
877
  * The name property
903
878
  */
904
879
  name?: string | null;
905
- /**
906
- * The Type property
907
- */
908
- type?: string | null;
909
880
  }
910
881
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
911
882
  /**
@@ -24,7 +24,6 @@ exports.createTpEntityRequestFromDiscriminatorValue = createTpEntityRequestFromD
24
24
  exports.createTpFieldDefDtoFromDiscriminatorValue = createTpFieldDefDtoFromDiscriminatorValue;
25
25
  exports.createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue = createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue;
26
26
  exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscriminatorValue;
27
- exports.createTpTypeMetaDefDtoFromDiscriminatorValue = createTpTypeMetaDefDtoFromDiscriminatorValue;
28
27
  exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
29
28
  exports.createTypeMetaDefDtoFromDiscriminatorValue = createTypeMetaDefDtoFromDiscriminatorValue;
30
29
  exports.createValidatedFieldMappingDtoFromDiscriminatorValue = createValidatedFieldMappingDtoFromDiscriminatorValue;
@@ -53,7 +52,6 @@ exports.deserializeIntoTpEntityRequest = deserializeIntoTpEntityRequest;
53
52
  exports.deserializeIntoTpFieldDefDto = deserializeIntoTpFieldDefDto;
54
53
  exports.deserializeIntoTpMcpQueryResponseOfJsonElement = deserializeIntoTpMcpQueryResponseOfJsonElement;
55
54
  exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
56
- exports.deserializeIntoTpTypeMetaDefDto = deserializeIntoTpTypeMetaDefDto;
57
55
  exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
58
56
  exports.deserializeIntoTypeMetaDefDto = deserializeIntoTypeMetaDefDto;
59
57
  exports.deserializeIntoValidatedFieldMappingDto = deserializeIntoValidatedFieldMappingDto;
@@ -82,7 +80,6 @@ exports.serializeTpEntityRequest = serializeTpEntityRequest;
82
80
  exports.serializeTpFieldDefDto = serializeTpFieldDefDto;
83
81
  exports.serializeTpMcpQueryResponseOfJsonElement = serializeTpMcpQueryResponseOfJsonElement;
84
82
  exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
85
- exports.serializeTpTypeMetaDefDto = serializeTpTypeMetaDefDto;
86
83
  exports.serializeTypeMappingDto = serializeTypeMappingDto;
87
84
  exports.serializeTypeMetaDefDto = serializeTypeMetaDefDto;
88
85
  exports.serializeValidatedFieldMappingDto = serializeValidatedFieldMappingDto;
@@ -324,15 +321,6 @@ function createTpMcpQueryResponseOfJsonElementFromDiscriminatorValue(parseNode)
324
321
  function createTpTypeDefDtoFromDiscriminatorValue(parseNode) {
325
322
  return deserializeIntoTpTypeDefDto;
326
323
  }
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
- }
336
324
  /**
337
325
  * Creates a new instance of the appropriate class based on discriminator value
338
326
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -361,18 +349,6 @@ function createTypeMappingDtoFromDiscriminatorValue(parseNode) {
361
349
  */
362
350
  // @ts-ignore
363
351
  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
- }
376
352
  return deserializeIntoTypeMetaDefDto;
377
353
  }
378
354
  /**
@@ -697,18 +673,6 @@ function deserializeIntoTpTypeDefDto(tpTypeDefDto = {}) {
697
673
  "name": n => { tpTypeDefDto.name = n.getStringValue(); },
698
674
  };
699
675
  }
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
- "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfPrimitiveValues(); },
710
- };
711
- }
712
676
  /**
713
677
  * The deserialization information for the current model
714
678
  * @param TypeMappingDto The instance to deserialize into.
@@ -737,7 +701,6 @@ function deserializeIntoTypeMetaDefDto(typeMetaDefDto = {}) {
737
701
  "id": n => { typeMetaDefDto.id = n.getStringValue(); },
738
702
  "isEmptyType": n => { typeMetaDefDto.isEmptyType = n.getBooleanValue(); },
739
703
  "name": n => { typeMetaDefDto.name = n.getStringValue(); },
740
- "$type": n => { typeMetaDefDto.type = n.getStringValue(); },
741
704
  };
742
705
  }
743
706
  /**
@@ -1136,21 +1099,6 @@ function serializeTpTypeDefDto(writer, tpTypeDefDto = {}, isSerializingDerivedTy
1136
1099
  writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
1137
1100
  writer.writeStringValue("name", tpTypeDefDto.name);
1138
1101
  }
1139
- /**
1140
- * Serializes information the current object
1141
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1142
- * @param TpTypeMetaDefDto The instance to serialize from.
1143
- * @param writer Serialization writer to use to serialize this model
1144
- */
1145
- // @ts-ignore
1146
- function serializeTpTypeMetaDefDto(writer, tpTypeMetaDefDto = {}, isSerializingDerivedType = false) {
1147
- if (!tpTypeMetaDefDto || isSerializingDerivedType) {
1148
- return;
1149
- }
1150
- serializeTypeMetaDefDto(writer, tpTypeMetaDefDto, isSerializingDerivedType);
1151
- writer.writeCollectionOfPrimitiveValues("terms", tpTypeMetaDefDto.terms);
1152
- writer.writeAdditionalData(tpTypeMetaDefDto.additionalData);
1153
- }
1154
1102
  /**
1155
1103
  * Serializes information the current object
1156
1104
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1189,12 +1137,6 @@ function serializeTypeMetaDefDto(writer, typeMetaDefDto = {}, isSerializingDeriv
1189
1137
  writer.writeStringValue("id", typeMetaDefDto.id);
1190
1138
  writer.writeBooleanValue("isEmptyType", typeMetaDefDto.isEmptyType);
1191
1139
  writer.writeStringValue("name", typeMetaDefDto.name);
1192
- writer.writeStringValue("$type", typeMetaDefDto.type);
1193
- switch (typeMetaDefDto.type) {
1194
- case "tp":
1195
- serializeTpTypeMetaDefDto(writer, typeMetaDefDto, true);
1196
- break;
1197
- }
1198
1140
  }
1199
1141
  /**
1200
1142
  * 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.1",
3
+ "version": "1.44.2-rc.2",
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": "6D2830571B85C8F75079FF2060B36CF993EBFF967B9B5E27F5C4B9204DE893E639E1BAB71E0CED386DA53966B48695423AB623A2ABB0E391BF6F0B92172AD559",
2
+ "descriptionHash": "80FCB2D480271039E1CCE9348910EAAFBF29D63D23098A1024B11B98BD1A426EE7FCD74C3A90289AFF59B5B093DB3076EADDC026142785F683F9E29205217F77",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.31.1",
@@ -239,15 +239,6 @@ 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
- }
251
242
  /**
252
243
  * Creates a new instance of the appropriate class based on discriminator value
253
244
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -275,17 +266,6 @@ export function createTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode
275
266
  */
276
267
  // @ts-ignore
277
268
  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
- }
289
269
  return deserializeIntoTypeMetaDefDto;
290
270
  }
291
271
  /**
@@ -617,18 +597,6 @@ export function deserializeIntoTpTypeDefDto(tpTypeDefDto: Partial<TpTypeDefDto>
617
597
  "name": n => { tpTypeDefDto.name = n.getStringValue(); },
618
598
  }
619
599
  }
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
- "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfPrimitiveValues<string>(); },
630
- }
631
- }
632
600
  /**
633
601
  * The deserialization information for the current model
634
602
  * @param TypeMappingDto The instance to deserialize into.
@@ -657,7 +625,6 @@ export function deserializeIntoTypeMetaDefDto(typeMetaDefDto: Partial<TypeMetaDe
657
625
  "id": n => { typeMetaDefDto.id = n.getStringValue(); },
658
626
  "isEmptyType": n => { typeMetaDefDto.isEmptyType = n.getBooleanValue(); },
659
627
  "name": n => { typeMetaDefDto.name = n.getStringValue(); },
660
- "$type": n => { typeMetaDefDto.type = n.getStringValue(); },
661
628
  }
662
629
  }
663
630
  /**
@@ -1168,19 +1135,6 @@ export function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto:
1168
1135
  writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
1169
1136
  writer.writeStringValue("name", tpTypeDefDto.name);
1170
1137
  }
1171
- /**
1172
- * Serializes information the current object
1173
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1174
- * @param TpTypeMetaDefDto The instance to serialize from.
1175
- * @param writer Serialization writer to use to serialize this model
1176
- */
1177
- // @ts-ignore
1178
- export function serializeTpTypeMetaDefDto(writer: SerializationWriter, tpTypeMetaDefDto: Partial<TpTypeMetaDefDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
1179
- if (!tpTypeMetaDefDto || isSerializingDerivedType) { return; }
1180
- serializeTypeMetaDefDto(writer, tpTypeMetaDefDto, isSerializingDerivedType)
1181
- writer.writeCollectionOfPrimitiveValues<string>("terms", tpTypeMetaDefDto.terms);
1182
- writer.writeAdditionalData(tpTypeMetaDefDto.additionalData);
1183
- }
1184
1138
  /**
1185
1139
  * Serializes information the current object
1186
1140
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1215,12 +1169,6 @@ export function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDef
1215
1169
  writer.writeStringValue("id", typeMetaDefDto.id);
1216
1170
  writer.writeBooleanValue("isEmptyType", typeMetaDefDto.isEmptyType);
1217
1171
  writer.writeStringValue("name", typeMetaDefDto.name);
1218
- writer.writeStringValue("$type", typeMetaDefDto.type);
1219
- switch (typeMetaDefDto.type) {
1220
- case "tp":
1221
- serializeTpTypeMetaDefDto(writer, typeMetaDefDto, true);
1222
- break;
1223
- }
1224
1172
  }
1225
1173
  /**
1226
1174
  * Serializes information the current object
@@ -1398,12 +1346,6 @@ export interface TpTypeDefDto extends Parsable {
1398
1346
  */
1399
1347
  name?: string | null;
1400
1348
  }
1401
- export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMetaDefDto {
1402
- /**
1403
- * The terms property
1404
- */
1405
- terms?: string[] | null;
1406
- }
1407
1349
  export interface TypeMappingDto extends Parsable {
1408
1350
  /**
1409
1351
  * The fieldMappings property
@@ -1447,10 +1389,6 @@ export interface TypeMetaDefDto extends Parsable {
1447
1389
  * The name property
1448
1390
  */
1449
1391
  name?: string | null;
1450
- /**
1451
- * The Type property
1452
- */
1453
- type?: string | null;
1454
1392
  }
1455
1393
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
1456
1394
  /**
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,15 +3016,8 @@
2926
3016
  },
2927
3017
  "TypeMetaDefDto": {
2928
3018
  "type": "object",
2929
- "discriminator": {
2930
- "propertyName": "$type",
2931
- "mapping": {
2932
- "tp": "#/components/schemas/TpTypeMetaDefDto"
2933
- }
2934
- },
2935
3019
  "additionalProperties": false,
2936
3020
  "required": [
2937
- "$type",
2938
3021
  "id",
2939
3022
  "name",
2940
3023
  "fields",
@@ -2959,9 +3042,6 @@
2959
3042
  },
2960
3043
  "isEmptyType": {
2961
3044
  "type": "boolean"
2962
- },
2963
- "$type": {
2964
- "type": "string"
2965
3045
  }
2966
3046
  }
2967
3047
  },
@@ -3032,32 +3112,6 @@
3032
3112
  }
3033
3113
  ]
3034
3114
  },
3035
- "TpTypeMetaDefDto": {
3036
- "allOf": [
3037
- {
3038
- "$ref": "#/components/schemas/TypeMetaDefDto"
3039
- },
3040
- {
3041
- "type": "object",
3042
- "additionalProperties": false,
3043
- "required": [
3044
- "terms",
3045
- "isEmptyType"
3046
- ],
3047
- "properties": {
3048
- "terms": {
3049
- "type": "array",
3050
- "items": {
3051
- "type": "string"
3052
- }
3053
- },
3054
- "isEmptyType": {
3055
- "type": "boolean"
3056
- }
3057
- }
3058
- }
3059
- ]
3060
- },
3061
3115
  "SetCurrentProfileRequestDto": {
3062
3116
  "type": "object",
3063
3117
  "additionalProperties": false,