@targetprocess/shared-data-model-client 0.10.1-ci.3 → 0.11.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.
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, serializeSharedDataDeleteDto, type HttpValidationProblemDetails, type ProblemDetails, type SharedDataDeleteDto } from '../../../models/index.js';
5
+ import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../models/index.js';
6
6
  // @ts-ignore
7
7
  import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
8
8
  // @ts-ignore
@@ -24,17 +24,6 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
24
24
  * @returns {EntityTypeItemRequestBuilder}
25
25
  */
26
26
  byId(id: number) : EntityTypeItemRequestBuilder;
27
- /**
28
- * Deletes Shared Data Model
29
- * @param body The request body
30
- * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
- * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
32
- * @throws {ProblemDetails} error when the service returns a 401 status code
33
- * @throws {ProblemDetails} error when the service returns a 404 status code
34
- * @throws {ProblemDetails} error when the service returns a 409 status code
35
- * @throws {ProblemDetails} error when the service returns a 500 status code
36
- */
37
- delete(body: SharedDataDeleteDto, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
38
27
  /**
39
28
  * Creates or Updates Shared Data Model
40
29
  * @param body The request body
@@ -47,13 +36,6 @@ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<Wit
47
36
  * @throws {ProblemDetails} error when the service returns a 500 status code
48
37
  */
49
38
  post(body: UntypedNode, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<UntypedNode | undefined>;
50
- /**
51
- * Deletes Shared Data Model
52
- * @param body The request body
53
- * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
54
- * @returns {RequestInformation}
55
- */
56
- toDeleteRequestInformation(body: SharedDataDeleteDto, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
57
39
  /**
58
40
  * Creates or Updates Shared Data Model
59
41
  * @param body The request body
@@ -82,21 +64,6 @@ export const WithEntityTypeItemRequestBuilderNavigationMetadata: Record<Exclude<
82
64
  * Metadata for all the requests in the request builder.
83
65
  */
84
66
  export const WithEntityTypeItemRequestBuilderRequestsMetadata: RequestsMetadata = {
85
- delete: {
86
- uriTemplate: WithEntityTypeItemRequestBuilderUriTemplate,
87
- responseBodyContentType: "application/problem+json",
88
- errorMappings: {
89
- 400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
90
- 401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
91
- 404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
92
- 409: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
93
- 500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
94
- },
95
- adapterMethodName: "sendNoResponseContent",
96
- requestBodyContentType: "application/json",
97
- requestBodySerializer: serializeSharedDataDeleteDto,
98
- requestInformationContentSetMethod: "setContentFromParsable",
99
- },
100
67
  post: {
101
68
  uriTemplate: WithEntityTypeItemRequestBuilderUriTemplate,
102
69
  responseBodyContentType: "application/json",
@@ -1,8 +1,8 @@
1
1
  {
2
- "descriptionHash": "7049FC522B770B4D7B9BD51D31B900E198757E17010B02EC046FB44E482A131A209E29BFB14D23E0F6CF62EC2B346E5C946AB0ED19A4DDFBDC774191175F78A6",
2
+ "descriptionHash": "45F71E1C81D062458A5C7A6A3289110C08B5DA494D0CFB2A5FA8E8053AF2E2AF8F77CAD90D2C999766AD70608FD5DE503203E1C3F6BDABC43A57AC07C455FE7B",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
- "kiotaVersion": "1.27.0",
5
+ "kiotaVersion": "1.22.3",
6
6
  "clientClassName": "TpSharedDataModelClient",
7
7
  "typeAccessModifier": "Public",
8
8
  "clientNamespaceName": "Tp",
@@ -156,15 +156,6 @@ export function createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValu
156
156
  export function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
157
157
  return deserializeIntoSharedDataCreateAttachmentResponseItemDto;
158
158
  }
159
- /**
160
- * Creates a new instance of the appropriate class based on discriminator value
161
- * @param parseNode The parse node to use to read the discriminator value and create the object
162
- * @returns {SharedDataDeleteDto}
163
- */
164
- // @ts-ignore
165
- export function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
166
- return deserializeIntoSharedDataDeleteDto;
167
- }
168
159
  /**
169
160
  * Creates a new instance of the appropriate class based on discriminator value
170
161
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -270,7 +261,6 @@ export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | u
270
261
  export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
271
262
  return {
272
263
  "id": n => { fieldMappingDto.id = n.getStringValue(); },
273
- "kind": n => { fieldMappingDto.kind = n.getEnumValue<FieldMappingKind>(FieldMappingKindObject); },
274
264
  "source": n => { fieldMappingDto.source = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
275
265
  "target": n => { fieldMappingDto.target = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
276
266
  "$type": n => { fieldMappingDto.type = n.getStringValue(); },
@@ -411,16 +401,6 @@ export function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedD
411
401
  * @returns {Record<string, (node: ParseNode) => void>}
412
402
  */
413
403
  // @ts-ignore
414
- export function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
415
- return {
416
- "id": n => { sharedDataDeleteDto.id = n.getNumberValue(); },
417
- }
418
- }
419
- /**
420
- * The deserialization information for the current model
421
- * @returns {Record<string, (node: ParseNode) => void>}
422
- */
423
- // @ts-ignore
424
404
  export function deserializeIntoTestTypeMappingDto(testTypeMappingDto: Partial<TestTypeMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
425
405
  return {
426
406
  "entityType": n => { testTypeMappingDto.entityType = n.getStringValue(); },
@@ -527,10 +507,6 @@ export interface FieldMappingDto extends Parsable {
527
507
  * The id property
528
508
  */
529
509
  id?: string | null;
530
- /**
531
- * The kind property
532
- */
533
- kind?: FieldMappingKind | null;
534
510
  /**
535
511
  * The source property
536
512
  */
@@ -544,7 +520,6 @@ export interface FieldMappingDto extends Parsable {
544
520
  */
545
521
  type?: string | null;
546
522
  }
547
- export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
548
523
  export interface GetEntityTypesDto extends Parsable {
549
524
  /**
550
525
  * The sdmTypes property
@@ -667,7 +642,6 @@ export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: P
667
642
  export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}) : void {
668
643
  if (fieldMappingDto) {
669
644
  writer.writeStringValue("id", fieldMappingDto.id);
670
- writer.writeEnumValue<FieldMappingKind>("kind", fieldMappingDto.kind);
671
645
  writer.writeObjectValue<MappingFieldDefDto>("source", fieldMappingDto.source, serializeMappingFieldDefDto);
672
646
  writer.writeObjectValue<MappingFieldDefDto>("target", fieldMappingDto.target, serializeMappingFieldDefDto);
673
647
  writer.writeStringValue("$type", fieldMappingDto.type);
@@ -811,16 +785,6 @@ export function serializeSharedDataCreateAttachmentResponseItemDto(writer: Seria
811
785
  * @param writer Serialization writer to use to serialize this model
812
786
  */
813
787
  // @ts-ignore
814
- export function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined | null = {}) : void {
815
- if (sharedDataDeleteDto) {
816
- writer.writeNumberValue("id", sharedDataDeleteDto.id);
817
- }
818
- }
819
- /**
820
- * Serializes information the current object
821
- * @param writer Serialization writer to use to serialize this model
822
- */
823
- // @ts-ignore
824
788
  export function serializeTestTypeMappingDto(writer: SerializationWriter, testTypeMappingDto: Partial<TestTypeMappingDto> | undefined | null = {}) : void {
825
789
  if (testTypeMappingDto) {
826
790
  writer.writeStringValue("entityType", testTypeMappingDto.entityType);
@@ -933,12 +897,6 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
933
897
  */
934
898
  uri?: string | null;
935
899
  }
936
- export interface SharedDataDeleteDto extends Parsable {
937
- /**
938
- * The id property
939
- */
940
- id?: number | null;
941
- }
942
900
  export interface TestTypeMappingDto extends Parsable {
943
901
  /**
944
902
  * The entityType property
@@ -1054,11 +1012,6 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
1054
1012
  validationState?: ValidationState | null;
1055
1013
  }
1056
1014
  export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
1057
- export const FieldMappingKindObject = {
1058
- DefaultEscaped: "Default",
1059
- Custom: "Custom",
1060
- Empty: "Empty",
1061
- } as const;
1062
1015
  export const RefKindObject = {
1063
1016
  Single: "Single",
1064
1017
  Collection: "Collection",
@@ -4,7 +4,7 @@
4
4
  // @ts-ignore
5
5
  import { ApiRequestBuilderNavigationMetadata, type ApiRequestBuilder } from './api/index.js';
6
6
  // @ts-ignore
7
- import { apiClientProxifier, ParseNodeFactoryRegistry, SerializationWriterFactoryRegistry, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
7
+ import { apiClientProxifier, registerDefaultDeserializer, registerDefaultSerializer, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
8
8
  // @ts-ignore
9
9
  import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
10
10
  // @ts-ignore
@@ -20,26 +20,13 @@ import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft
20
20
  */
21
21
  // @ts-ignore
22
22
  export function createTpSharedDataModelClient(requestAdapter: RequestAdapter) {
23
- if (requestAdapter === undefined) {
24
- throw new Error("requestAdapter cannot be undefined");
25
- }
26
- const serializationWriterFactory = requestAdapter.getSerializationWriterFactory() as SerializationWriterFactoryRegistry;
27
- const parseNodeFactoryRegistry = requestAdapter.getParseNodeFactory() as ParseNodeFactoryRegistry;
28
- const backingStoreFactory = requestAdapter.getBackingStoreFactory();
29
-
30
- if (parseNodeFactoryRegistry.registerDefaultDeserializer) {
31
- parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory);
32
- parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory);
33
- parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory);
34
- }
35
-
36
- if (serializationWriterFactory.registerDefaultSerializer) {
37
- serializationWriterFactory.registerDefaultSerializer(JsonSerializationWriterFactory);
38
- serializationWriterFactory.registerDefaultSerializer(TextSerializationWriterFactory);
39
- serializationWriterFactory.registerDefaultSerializer(FormSerializationWriterFactory);
40
- serializationWriterFactory.registerDefaultSerializer(MultipartSerializationWriterFactory);
41
- }
42
-
23
+ registerDefaultSerializer(JsonSerializationWriterFactory);
24
+ registerDefaultSerializer(TextSerializationWriterFactory);
25
+ registerDefaultSerializer(FormSerializationWriterFactory);
26
+ registerDefaultSerializer(MultipartSerializationWriterFactory);
27
+ registerDefaultDeserializer(JsonParseNodeFactory);
28
+ registerDefaultDeserializer(TextParseNodeFactory);
29
+ registerDefaultDeserializer(FormParseNodeFactory);
43
30
  const pathParameters: Record<string, unknown> = {
44
31
  "baseurl": requestAdapter.baseUrl,
45
32
  };