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

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,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,12 @@ export interface TpTypeDefDto extends Parsable {
834
853
  */
835
854
  name?: string | null;
836
855
  }
856
+ export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMetaDefDto {
857
+ /**
858
+ * The terms property
859
+ */
860
+ terms?: string[] | null;
861
+ }
837
862
  export interface TypeMappingDto extends Parsable {
838
863
  /**
839
864
  * The fieldMappings property
@@ -877,6 +902,10 @@ export interface TypeMetaDefDto extends Parsable {
877
902
  * The name property
878
903
  */
879
904
  name?: string | null;
905
+ /**
906
+ * The Type property
907
+ */
908
+ type?: string | null;
880
909
  }
881
910
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
882
911
  /**
@@ -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,18 @@ 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
+ "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfPrimitiveValues(); },
710
+ };
711
+ }
676
712
  /**
677
713
  * The deserialization information for the current model
678
714
  * @param TypeMappingDto The instance to deserialize into.
@@ -701,6 +737,7 @@ function deserializeIntoTypeMetaDefDto(typeMetaDefDto = {}) {
701
737
  "id": n => { typeMetaDefDto.id = n.getStringValue(); },
702
738
  "isEmptyType": n => { typeMetaDefDto.isEmptyType = n.getBooleanValue(); },
703
739
  "name": n => { typeMetaDefDto.name = n.getStringValue(); },
740
+ "$type": n => { typeMetaDefDto.type = n.getStringValue(); },
704
741
  };
705
742
  }
706
743
  /**
@@ -1099,6 +1136,21 @@ function serializeTpTypeDefDto(writer, tpTypeDefDto = {}, isSerializingDerivedTy
1099
1136
  writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
1100
1137
  writer.writeStringValue("name", tpTypeDefDto.name);
1101
1138
  }
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
+ }
1102
1154
  /**
1103
1155
  * Serializes information the current object
1104
1156
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1137,6 +1189,12 @@ function serializeTypeMetaDefDto(writer, typeMetaDefDto = {}, isSerializingDeriv
1137
1189
  writer.writeStringValue("id", typeMetaDefDto.id);
1138
1190
  writer.writeBooleanValue("isEmptyType", typeMetaDefDto.isEmptyType);
1139
1191
  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
+ }
1140
1198
  }
1141
1199
  /**
1142
1200
  * 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.1",
3
+ "version": "1.44.2-rc.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "F8A9320AF5C07D3454D2779EE92CE873445977D4F06ACA2CA710394EDC59C09A519627472BAB92152D9EDBE884087B3E0509284A19FB928B1E1E6F4D0D3FF204",
2
+ "descriptionHash": "6D2830571B85C8F75079FF2060B36CF993EBFF967B9B5E27F5C4B9204DE893E639E1BAB71E0CED386DA53966B48695423AB623A2ABB0E391BF6F0B92172AD559",
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,18 @@ 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
+ "terms": n => { tpTypeMetaDefDto.terms = n.getCollectionOfPrimitiveValues<string>(); },
630
+ }
631
+ }
600
632
  /**
601
633
  * The deserialization information for the current model
602
634
  * @param TypeMappingDto The instance to deserialize into.
@@ -625,6 +657,7 @@ export function deserializeIntoTypeMetaDefDto(typeMetaDefDto: Partial<TypeMetaDe
625
657
  "id": n => { typeMetaDefDto.id = n.getStringValue(); },
626
658
  "isEmptyType": n => { typeMetaDefDto.isEmptyType = n.getBooleanValue(); },
627
659
  "name": n => { typeMetaDefDto.name = n.getStringValue(); },
660
+ "$type": n => { typeMetaDefDto.type = n.getStringValue(); },
628
661
  }
629
662
  }
630
663
  /**
@@ -1135,6 +1168,19 @@ export function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto:
1135
1168
  writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
1136
1169
  writer.writeStringValue("name", tpTypeDefDto.name);
1137
1170
  }
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
+ }
1138
1184
  /**
1139
1185
  * Serializes information the current object
1140
1186
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1169,6 +1215,12 @@ export function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDef
1169
1215
  writer.writeStringValue("id", typeMetaDefDto.id);
1170
1216
  writer.writeBooleanValue("isEmptyType", typeMetaDefDto.isEmptyType);
1171
1217
  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
+ }
1172
1224
  }
1173
1225
  /**
1174
1226
  * Serializes information the current object
@@ -1346,6 +1398,12 @@ export interface TpTypeDefDto extends Parsable {
1346
1398
  */
1347
1399
  name?: string | null;
1348
1400
  }
1401
+ export interface TpTypeMetaDefDto extends AdditionalDataHolder, Parsable, TypeMetaDefDto {
1402
+ /**
1403
+ * The terms property
1404
+ */
1405
+ terms?: string[] | null;
1406
+ }
1349
1407
  export interface TypeMappingDto extends Parsable {
1350
1408
  /**
1351
1409
  * The fieldMappings property
@@ -1389,6 +1447,10 @@ export interface TypeMetaDefDto extends Parsable {
1389
1447
  * The name property
1390
1448
  */
1391
1449
  name?: string | null;
1450
+ /**
1451
+ * The Type property
1452
+ */
1453
+ type?: string | null;
1392
1454
  }
1393
1455
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
1394
1456
  /**
package/src/v1.json CHANGED
@@ -2926,8 +2926,15 @@
2926
2926
  },
2927
2927
  "TypeMetaDefDto": {
2928
2928
  "type": "object",
2929
+ "discriminator": {
2930
+ "propertyName": "$type",
2931
+ "mapping": {
2932
+ "tp": "#/components/schemas/TpTypeMetaDefDto"
2933
+ }
2934
+ },
2929
2935
  "additionalProperties": false,
2930
2936
  "required": [
2937
+ "$type",
2931
2938
  "id",
2932
2939
  "name",
2933
2940
  "fields",
@@ -2952,6 +2959,9 @@
2952
2959
  },
2953
2960
  "isEmptyType": {
2954
2961
  "type": "boolean"
2962
+ },
2963
+ "$type": {
2964
+ "type": "string"
2955
2965
  }
2956
2966
  }
2957
2967
  },
@@ -3022,6 +3032,32 @@
3022
3032
  }
3023
3033
  ]
3024
3034
  },
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
+ },
3025
3061
  "SetCurrentProfileRequestDto": {
3026
3062
  "type": "object",
3027
3063
  "additionalProperties": false,