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

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.
@@ -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.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "6D2830571B85C8F75079FF2060B36CF993EBFF967B9B5E27F5C4B9204DE893E639E1BAB71E0CED386DA53966B48695423AB623A2ABB0E391BF6F0B92172AD559",
2
+ "descriptionHash": "F8A9320AF5C07D3454D2779EE92CE873445977D4F06ACA2CA710394EDC59C09A519627472BAB92152D9EDBE884087B3E0509284A19FB928B1E1E6F4D0D3FF204",
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
@@ -2926,15 +2926,8 @@
2926
2926
  },
2927
2927
  "TypeMetaDefDto": {
2928
2928
  "type": "object",
2929
- "discriminator": {
2930
- "propertyName": "$type",
2931
- "mapping": {
2932
- "tp": "#/components/schemas/TpTypeMetaDefDto"
2933
- }
2934
- },
2935
2929
  "additionalProperties": false,
2936
2930
  "required": [
2937
- "$type",
2938
2931
  "id",
2939
2932
  "name",
2940
2933
  "fields",
@@ -2959,9 +2952,6 @@
2959
2952
  },
2960
2953
  "isEmptyType": {
2961
2954
  "type": "boolean"
2962
- },
2963
- "$type": {
2964
- "type": "string"
2965
2955
  }
2966
2956
  }
2967
2957
  },
@@ -3032,32 +3022,6 @@
3032
3022
  }
3033
3023
  ]
3034
3024
  },
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
3025
  "SetCurrentProfileRequestDto": {
3062
3026
  "type": "object",
3063
3027
  "additionalProperties": false,