@targetprocess/shared-data-model-client 1.15.0 → 1.17.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.
@@ -256,6 +256,7 @@ export interface DeleteProfileRequestDto extends Parsable {
256
256
  }
257
257
  /**
258
258
  * The deserialization information for the current model
259
+ * @param CopyCurrentProfileRequestDto The instance to deserialize into.
259
260
  * @returns {Record<string, (node: ParseNode) => void>}
260
261
  */
261
262
  // @ts-ignore
@@ -266,6 +267,7 @@ export function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRe
266
267
  }
267
268
  /**
268
269
  * The deserialization information for the current model
270
+ * @param DeleteProfileRequestDto The instance to deserialize into.
269
271
  * @returns {Record<string, (node: ParseNode) => void>}
270
272
  */
271
273
  // @ts-ignore
@@ -276,6 +278,7 @@ export function deserializeIntoDeleteProfileRequestDto(deleteProfileRequestDto:
276
278
  }
277
279
  /**
278
280
  * The deserialization information for the current model
281
+ * @param FieldDefDto The instance to deserialize into.
279
282
  * @returns {Record<string, (node: ParseNode) => void>}
280
283
  */
281
284
  // @ts-ignore
@@ -289,6 +292,7 @@ export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | u
289
292
  }
290
293
  /**
291
294
  * The deserialization information for the current model
295
+ * @param FieldMappingDto The instance to deserialize into.
292
296
  * @returns {Record<string, (node: ParseNode) => void>}
293
297
  */
294
298
  // @ts-ignore
@@ -303,6 +307,7 @@ export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMap
303
307
  }
304
308
  /**
305
309
  * The deserialization information for the current model
310
+ * @param GetEntityTypesDto The instance to deserialize into.
306
311
  * @returns {Record<string, (node: ParseNode) => void>}
307
312
  */
308
313
  // @ts-ignore
@@ -314,6 +319,7 @@ export function deserializeIntoGetEntityTypesDto(getEntityTypesDto: Partial<GetE
314
319
  }
315
320
  /**
316
321
  * The deserialization information for the current model
322
+ * @param HttpValidationProblemDetails The instance to deserialize into.
317
323
  * @returns {Record<string, (node: ParseNode) => void>}
318
324
  */
319
325
  // @ts-ignore
@@ -325,6 +331,7 @@ export function deserializeIntoHttpValidationProblemDetails(httpValidationProble
325
331
  }
326
332
  /**
327
333
  * The deserialization information for the current model
334
+ * @param HttpValidationProblemDetails_errors The instance to deserialize into.
328
335
  * @returns {Record<string, (node: ParseNode) => void>}
329
336
  */
330
337
  // @ts-ignore
@@ -334,6 +341,7 @@ export function deserializeIntoHttpValidationProblemDetails_errors(httpValidatio
334
341
  }
335
342
  /**
336
343
  * The deserialization information for the current model
344
+ * @param MappingErrorDto The instance to deserialize into.
337
345
  * @returns {Record<string, (node: ParseNode) => void>}
338
346
  */
339
347
  // @ts-ignore
@@ -344,6 +352,7 @@ export function deserializeIntoMappingErrorDto(mappingErrorDto: Partial<MappingE
344
352
  }
345
353
  /**
346
354
  * The deserialization information for the current model
355
+ * @param MappingFieldDefDto The instance to deserialize into.
347
356
  * @returns {Record<string, (node: ParseNode) => void>}
348
357
  */
349
358
  // @ts-ignore
@@ -354,6 +363,7 @@ export function deserializeIntoMappingFieldDefDto(mappingFieldDefDto: Partial<Ma
354
363
  }
355
364
  /**
356
365
  * The deserialization information for the current model
366
+ * @param ProblemDetails The instance to deserialize into.
357
367
  * @returns {Record<string, (node: ParseNode) => void>}
358
368
  */
359
369
  // @ts-ignore
@@ -368,6 +378,7 @@ export function deserializeIntoProblemDetails(problemDetails: Partial<ProblemDet
368
378
  }
369
379
  /**
370
380
  * The deserialization information for the current model
381
+ * @param ProfileDto The instance to deserialize into.
371
382
  * @returns {Record<string, (node: ParseNode) => void>}
372
383
  */
373
384
  // @ts-ignore
@@ -379,6 +390,7 @@ export function deserializeIntoProfileDto(profileDto: Partial<ProfileDto> | unde
379
390
  }
380
391
  /**
381
392
  * The deserialization information for the current model
393
+ * @param ProfileIdDto The instance to deserialize into.
382
394
  * @returns {Record<string, (node: ParseNode) => void>}
383
395
  */
384
396
  // @ts-ignore
@@ -391,6 +403,7 @@ export function deserializeIntoProfileIdDto(profileIdDto: Partial<ProfileIdDto>
391
403
  }
392
404
  /**
393
405
  * The deserialization information for the current model
406
+ * @param SdmTypeDefDto The instance to deserialize into.
394
407
  * @returns {Record<string, (node: ParseNode) => void>}
395
408
  */
396
409
  // @ts-ignore
@@ -402,6 +415,7 @@ export function deserializeIntoSdmTypeDefDto(sdmTypeDefDto: Partial<SdmTypeDefDt
402
415
  }
403
416
  /**
404
417
  * The deserialization information for the current model
418
+ * @param SetCurrentProfileRequestDto The instance to deserialize into.
405
419
  * @returns {Record<string, (node: ParseNode) => void>}
406
420
  */
407
421
  // @ts-ignore
@@ -412,6 +426,7 @@ export function deserializeIntoSetCurrentProfileRequestDto(setCurrentProfileRequ
412
426
  }
413
427
  /**
414
428
  * The deserialization information for the current model
429
+ * @param SharedDataCreateAttachmentResponseDto The instance to deserialize into.
415
430
  * @returns {Record<string, (node: ParseNode) => void>}
416
431
  */
417
432
  // @ts-ignore
@@ -422,6 +437,7 @@ export function deserializeIntoSharedDataCreateAttachmentResponseDto(sharedDataC
422
437
  }
423
438
  /**
424
439
  * The deserialization information for the current model
440
+ * @param SharedDataCreateAttachmentResponseItemDto The instance to deserialize into.
425
441
  * @returns {Record<string, (node: ParseNode) => void>}
426
442
  */
427
443
  // @ts-ignore
@@ -434,6 +450,7 @@ export function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedD
434
450
  }
435
451
  /**
436
452
  * The deserialization information for the current model
453
+ * @param SharedDataDeleteDto The instance to deserialize into.
437
454
  * @returns {Record<string, (node: ParseNode) => void>}
438
455
  */
439
456
  // @ts-ignore
@@ -444,6 +461,7 @@ export function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto: Partial<
444
461
  }
445
462
  /**
446
463
  * The deserialization information for the current model
464
+ * @param TestTypeMappingDto The instance to deserialize into.
447
465
  * @returns {Record<string, (node: ParseNode) => void>}
448
466
  */
449
467
  // @ts-ignore
@@ -458,6 +476,7 @@ export function deserializeIntoTestTypeMappingDto(testTypeMappingDto: Partial<Te
458
476
  }
459
477
  /**
460
478
  * The deserialization information for the current model
479
+ * @param TpTypeDefDto The instance to deserialize into.
461
480
  * @returns {Record<string, (node: ParseNode) => void>}
462
481
  */
463
482
  // @ts-ignore
@@ -470,6 +489,7 @@ export function deserializeIntoTpTypeDefDto(tpTypeDefDto: Partial<TpTypeDefDto>
470
489
  }
471
490
  /**
472
491
  * The deserialization information for the current model
492
+ * @param TypeMappingDto The instance to deserialize into.
473
493
  * @returns {Record<string, (node: ParseNode) => void>}
474
494
  */
475
495
  // @ts-ignore
@@ -484,6 +504,7 @@ export function deserializeIntoTypeMappingDto(typeMappingDto: Partial<TypeMappin
484
504
  }
485
505
  /**
486
506
  * The deserialization information for the current model
507
+ * @param TypeMetaDefDto The instance to deserialize into.
487
508
  * @returns {Record<string, (node: ParseNode) => void>}
488
509
  */
489
510
  // @ts-ignore
@@ -497,6 +518,7 @@ export function deserializeIntoTypeMetaDefDto(typeMetaDefDto: Partial<TypeMetaDe
497
518
  }
498
519
  /**
499
520
  * The deserialization information for the current model
521
+ * @param ValidatedFieldMappingDto The instance to deserialize into.
500
522
  * @returns {Record<string, (node: ParseNode) => void>}
501
523
  */
502
524
  // @ts-ignore
@@ -509,6 +531,7 @@ export function deserializeIntoValidatedFieldMappingDto(validatedFieldMappingDto
509
531
  }
510
532
  /**
511
533
  * The deserialization information for the current model
534
+ * @param ValidatedProfileDto The instance to deserialize into.
512
535
  * @returns {Record<string, (node: ParseNode) => void>}
513
536
  */
514
537
  // @ts-ignore
@@ -521,6 +544,7 @@ export function deserializeIntoValidatedProfileDto(validatedProfileDto: Partial<
521
544
  }
522
545
  /**
523
546
  * The deserialization information for the current model
547
+ * @param ValidatedTypeMappingDto The instance to deserialize into.
524
548
  * @returns {Record<string, (node: ParseNode) => void>}
525
549
  */
526
550
  // @ts-ignore
@@ -590,10 +614,6 @@ export interface HttpValidationProblemDetails extends ApiError, Parsable, Proble
590
614
  errors?: HttpValidationProblemDetails_errors | null;
591
615
  }
592
616
  export interface HttpValidationProblemDetails_errors extends AdditionalDataHolder, Parsable {
593
- /**
594
- * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
595
- */
596
- additionalData?: Record<string, unknown>;
597
617
  }
598
618
  export interface MappingErrorDto extends Parsable {
599
619
  /**
@@ -608,10 +628,6 @@ export interface MappingFieldDefDto extends Parsable {
608
628
  expression?: string | null;
609
629
  }
610
630
  export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable {
611
- /**
612
- * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
613
- */
614
- additionalData?: Record<string, unknown>;
615
631
  /**
616
632
  * The detail property
617
633
  */
@@ -634,10 +650,6 @@ export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable
634
650
  type?: string | null;
635
651
  }
636
652
  export interface ProfileDto extends AdditionalDataHolder, Parsable, ProfileIdDto {
637
- /**
638
- * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
639
- */
640
- additionalData?: Record<string, unknown>;
641
653
  /**
642
654
  * The typeMappings property
643
655
  */
@@ -670,287 +682,321 @@ export interface SdmTypeDefDto extends Parsable {
670
682
  }
671
683
  /**
672
684
  * Serializes information the current object
685
+ * @param CopyCurrentProfileRequestDto The instance to serialize from.
686
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
673
687
  * @param writer Serialization writer to use to serialize this model
674
688
  */
675
689
  // @ts-ignore
676
- export function serializeCopyCurrentProfileRequestDto(writer: SerializationWriter, copyCurrentProfileRequestDto: Partial<CopyCurrentProfileRequestDto> | undefined | null = {}) : void {
677
- if (copyCurrentProfileRequestDto) {
678
- writer.writeStringValue("profileName", copyCurrentProfileRequestDto.profileName);
679
- }
690
+ export function serializeCopyCurrentProfileRequestDto(writer: SerializationWriter, copyCurrentProfileRequestDto: Partial<CopyCurrentProfileRequestDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
691
+ if (!copyCurrentProfileRequestDto || isSerializingDerivedType) { return; }
692
+ writer.writeStringValue("profileName", copyCurrentProfileRequestDto.profileName);
680
693
  }
681
694
  /**
682
695
  * Serializes information the current object
696
+ * @param DeleteProfileRequestDto The instance to serialize from.
697
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
683
698
  * @param writer Serialization writer to use to serialize this model
684
699
  */
685
700
  // @ts-ignore
686
- export function serializeDeleteProfileRequestDto(writer: SerializationWriter, deleteProfileRequestDto: Partial<DeleteProfileRequestDto> | undefined | null = {}) : void {
687
- if (deleteProfileRequestDto) {
688
- writer.writeStringValue("profileId", deleteProfileRequestDto.profileId);
689
- }
701
+ export function serializeDeleteProfileRequestDto(writer: SerializationWriter, deleteProfileRequestDto: Partial<DeleteProfileRequestDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
702
+ if (!deleteProfileRequestDto || isSerializingDerivedType) { return; }
703
+ writer.writeStringValue("profileId", deleteProfileRequestDto.profileId);
690
704
  }
691
705
  /**
692
706
  * Serializes information the current object
707
+ * @param FieldDefDto The instance to serialize from.
708
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
693
709
  * @param writer Serialization writer to use to serialize this model
694
710
  */
695
711
  // @ts-ignore
696
- export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: Partial<FieldDefDto> | undefined | null = {}) : void {
697
- if (fieldDefDto) {
698
- writer.writeStringValue("expression", fieldDefDto.expression);
699
- writer.writeEnumValue<RefKind>("refKind", fieldDefDto.refKind);
700
- writer.writeStringValue("refType", fieldDefDto.refType);
701
- writer.writeStringValue("type", fieldDefDto.type);
702
- }
712
+ export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: Partial<FieldDefDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
713
+ if (!fieldDefDto || isSerializingDerivedType) { return; }
714
+ writer.writeStringValue("expression", fieldDefDto.expression);
715
+ writer.writeEnumValue<RefKind>("refKind", fieldDefDto.refKind);
716
+ writer.writeStringValue("refType", fieldDefDto.refType);
717
+ writer.writeStringValue("type", fieldDefDto.type);
703
718
  }
704
719
  /**
705
720
  * Serializes information the current object
721
+ * @param FieldMappingDto The instance to serialize from.
722
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
706
723
  * @param writer Serialization writer to use to serialize this model
707
724
  */
708
725
  // @ts-ignore
709
- export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}) : void {
710
- if (fieldMappingDto) {
711
- writer.writeStringValue("id", fieldMappingDto.id);
712
- writer.writeEnumValue<FieldMappingKind>("kind", fieldMappingDto.kind);
713
- writer.writeObjectValue<MappingFieldDefDto>("source", fieldMappingDto.source, serializeMappingFieldDefDto);
714
- writer.writeObjectValue<MappingFieldDefDto>("target", fieldMappingDto.target, serializeMappingFieldDefDto);
715
- writer.writeStringValue("$type", fieldMappingDto.type);
726
+ export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
727
+ if (!fieldMappingDto || isSerializingDerivedType) { return; }
728
+ writer.writeStringValue("id", fieldMappingDto.id);
729
+ writer.writeEnumValue<FieldMappingKind>("kind", fieldMappingDto.kind);
730
+ writer.writeObjectValue<MappingFieldDefDto>("source", fieldMappingDto.source, serializeMappingFieldDefDto);
731
+ writer.writeObjectValue<MappingFieldDefDto>("target", fieldMappingDto.target, serializeMappingFieldDefDto);
732
+ writer.writeStringValue("$type", fieldMappingDto.type);
733
+ switch (fieldMappingDto.type) {
734
+ case "ValidatedFieldMappingDto":
735
+ serializeValidatedFieldMappingDto(writer, fieldMappingDto, true);
736
+ break;
716
737
  }
717
738
  }
718
739
  /**
719
740
  * Serializes information the current object
741
+ * @param GetEntityTypesDto The instance to serialize from.
742
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
720
743
  * @param writer Serialization writer to use to serialize this model
721
744
  */
722
745
  // @ts-ignore
723
- export function serializeGetEntityTypesDto(writer: SerializationWriter, getEntityTypesDto: Partial<GetEntityTypesDto> | undefined | null = {}) : void {
724
- if (getEntityTypesDto) {
725
- writer.writeCollectionOfObjectValues<TypeMetaDefDto>("sdmTypes", getEntityTypesDto.sdmTypes, serializeTypeMetaDefDto);
726
- writer.writeCollectionOfObjectValues<TypeMetaDefDto>("tpTypes", getEntityTypesDto.tpTypes, serializeTypeMetaDefDto);
727
- }
746
+ export function serializeGetEntityTypesDto(writer: SerializationWriter, getEntityTypesDto: Partial<GetEntityTypesDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
747
+ if (!getEntityTypesDto || isSerializingDerivedType) { return; }
748
+ writer.writeCollectionOfObjectValues<TypeMetaDefDto>("sdmTypes", getEntityTypesDto.sdmTypes, serializeTypeMetaDefDto);
749
+ writer.writeCollectionOfObjectValues<TypeMetaDefDto>("tpTypes", getEntityTypesDto.tpTypes, serializeTypeMetaDefDto);
728
750
  }
729
751
  /**
730
752
  * Serializes information the current object
753
+ * @param HttpValidationProblemDetails The instance to serialize from.
754
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
731
755
  * @param writer Serialization writer to use to serialize this model
732
756
  */
733
757
  // @ts-ignore
734
- export function serializeHttpValidationProblemDetails(writer: SerializationWriter, httpValidationProblemDetails: Partial<HttpValidationProblemDetails> | undefined | null = {}) : void {
735
- if (httpValidationProblemDetails) {
736
- serializeProblemDetails(writer, httpValidationProblemDetails)
737
- writer.writeObjectValue<HttpValidationProblemDetails_errors>("errors", httpValidationProblemDetails.errors, serializeHttpValidationProblemDetails_errors);
738
- }
758
+ export function serializeHttpValidationProblemDetails(writer: SerializationWriter, httpValidationProblemDetails: Partial<HttpValidationProblemDetails> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
759
+ if (!httpValidationProblemDetails || isSerializingDerivedType) { return; }
760
+ serializeProblemDetails(writer, httpValidationProblemDetails, isSerializingDerivedType)
761
+ writer.writeObjectValue<HttpValidationProblemDetails_errors>("errors", httpValidationProblemDetails.errors, serializeHttpValidationProblemDetails_errors);
739
762
  }
740
763
  /**
741
764
  * Serializes information the current object
765
+ * @param HttpValidationProblemDetails_errors The instance to serialize from.
766
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
742
767
  * @param writer Serialization writer to use to serialize this model
743
768
  */
744
769
  // @ts-ignore
745
- export function serializeHttpValidationProblemDetails_errors(writer: SerializationWriter, httpValidationProblemDetails_errors: Partial<HttpValidationProblemDetails_errors> | undefined | null = {}) : void {
746
- if (httpValidationProblemDetails_errors) {
747
- writer.writeAdditionalData(httpValidationProblemDetails_errors.additionalData);
748
- }
770
+ export function serializeHttpValidationProblemDetails_errors(writer: SerializationWriter, httpValidationProblemDetails_errors: Partial<HttpValidationProblemDetails_errors> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
771
+ if (!httpValidationProblemDetails_errors || isSerializingDerivedType) { return; }
772
+ writer.writeAdditionalData(httpValidationProblemDetails_errors.additionalData);
749
773
  }
750
774
  /**
751
775
  * Serializes information the current object
776
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
777
+ * @param MappingErrorDto The instance to serialize from.
752
778
  * @param writer Serialization writer to use to serialize this model
753
779
  */
754
780
  // @ts-ignore
755
- export function serializeMappingErrorDto(writer: SerializationWriter, mappingErrorDto: Partial<MappingErrorDto> | undefined | null = {}) : void {
756
- if (mappingErrorDto) {
757
- writer.writeStringValue("message", mappingErrorDto.message);
758
- }
781
+ export function serializeMappingErrorDto(writer: SerializationWriter, mappingErrorDto: Partial<MappingErrorDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
782
+ if (!mappingErrorDto || isSerializingDerivedType) { return; }
783
+ writer.writeStringValue("message", mappingErrorDto.message);
759
784
  }
760
785
  /**
761
786
  * Serializes information the current object
787
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
788
+ * @param MappingFieldDefDto The instance to serialize from.
762
789
  * @param writer Serialization writer to use to serialize this model
763
790
  */
764
791
  // @ts-ignore
765
- export function serializeMappingFieldDefDto(writer: SerializationWriter, mappingFieldDefDto: Partial<MappingFieldDefDto> | undefined | null = {}) : void {
766
- if (mappingFieldDefDto) {
767
- writer.writeStringValue("expression", mappingFieldDefDto.expression);
768
- }
792
+ export function serializeMappingFieldDefDto(writer: SerializationWriter, mappingFieldDefDto: Partial<MappingFieldDefDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
793
+ if (!mappingFieldDefDto || isSerializingDerivedType) { return; }
794
+ writer.writeStringValue("expression", mappingFieldDefDto.expression);
769
795
  }
770
796
  /**
771
797
  * Serializes information the current object
798
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
799
+ * @param ProblemDetails The instance to serialize from.
772
800
  * @param writer Serialization writer to use to serialize this model
773
801
  */
774
802
  // @ts-ignore
775
- export function serializeProblemDetails(writer: SerializationWriter, problemDetails: Partial<ProblemDetails> | undefined | null = {}) : void {
776
- if (problemDetails) {
777
- writer.writeStringValue("detail", problemDetails.detail);
778
- writer.writeStringValue("instance", problemDetails.instance);
779
- writer.writeNumberValue("status", problemDetails.status);
780
- writer.writeStringValue("title", problemDetails.title);
781
- writer.writeStringValue("type", problemDetails.type);
782
- writer.writeAdditionalData(problemDetails.additionalData);
783
- }
803
+ export function serializeProblemDetails(writer: SerializationWriter, problemDetails: Partial<ProblemDetails> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
804
+ if (!problemDetails || isSerializingDerivedType) { return; }
805
+ writer.writeStringValue("detail", problemDetails.detail);
806
+ writer.writeStringValue("instance", problemDetails.instance);
807
+ writer.writeNumberValue("status", problemDetails.status);
808
+ writer.writeStringValue("title", problemDetails.title);
809
+ writer.writeStringValue("type", problemDetails.type);
810
+ writer.writeAdditionalData(problemDetails.additionalData);
784
811
  }
785
812
  /**
786
813
  * Serializes information the current object
814
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
815
+ * @param ProfileDto The instance to serialize from.
787
816
  * @param writer Serialization writer to use to serialize this model
788
817
  */
789
818
  // @ts-ignore
790
- export function serializeProfileDto(writer: SerializationWriter, profileDto: Partial<ProfileDto> | undefined | null = {}) : void {
791
- if (profileDto) {
792
- serializeProfileIdDto(writer, profileDto)
793
- writer.writeCollectionOfObjectValues<TypeMappingDto>("typeMappings", profileDto.typeMappings, serializeTypeMappingDto);
794
- writer.writeAdditionalData(profileDto.additionalData);
795
- }
819
+ export function serializeProfileDto(writer: SerializationWriter, profileDto: Partial<ProfileDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
820
+ if (!profileDto || isSerializingDerivedType) { return; }
821
+ serializeProfileIdDto(writer, profileDto, isSerializingDerivedType)
822
+ writer.writeCollectionOfObjectValues<TypeMappingDto>("typeMappings", profileDto.typeMappings, serializeTypeMappingDto);
823
+ writer.writeAdditionalData(profileDto.additionalData);
796
824
  }
797
825
  /**
798
826
  * Serializes information the current object
827
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
828
+ * @param ProfileIdDto The instance to serialize from.
799
829
  * @param writer Serialization writer to use to serialize this model
800
830
  */
801
831
  // @ts-ignore
802
- export function serializeProfileIdDto(writer: SerializationWriter, profileIdDto: Partial<ProfileIdDto> | undefined | null = {}) : void {
803
- if (profileIdDto) {
804
- writer.writeStringValue("account", profileIdDto.account);
805
- writer.writeStringValue("id", profileIdDto.id);
806
- writer.writeStringValue("name", profileIdDto.name);
807
- }
832
+ export function serializeProfileIdDto(writer: SerializationWriter, profileIdDto: Partial<ProfileIdDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
833
+ if (!profileIdDto || isSerializingDerivedType) { return; }
834
+ writer.writeStringValue("account", profileIdDto.account);
835
+ writer.writeStringValue("id", profileIdDto.id);
836
+ writer.writeStringValue("name", profileIdDto.name);
808
837
  }
809
838
  /**
810
839
  * Serializes information the current object
840
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
841
+ * @param SdmTypeDefDto The instance to serialize from.
811
842
  * @param writer Serialization writer to use to serialize this model
812
843
  */
813
844
  // @ts-ignore
814
- export function serializeSdmTypeDefDto(writer: SerializationWriter, sdmTypeDefDto: Partial<SdmTypeDefDto> | undefined | null = {}) : void {
815
- if (sdmTypeDefDto) {
816
- writer.writeStringValue("id", sdmTypeDefDto.id);
817
- writer.writeStringValue("name", sdmTypeDefDto.name);
818
- }
845
+ export function serializeSdmTypeDefDto(writer: SerializationWriter, sdmTypeDefDto: Partial<SdmTypeDefDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
846
+ if (!sdmTypeDefDto || isSerializingDerivedType) { return; }
847
+ writer.writeStringValue("id", sdmTypeDefDto.id);
848
+ writer.writeStringValue("name", sdmTypeDefDto.name);
819
849
  }
820
850
  /**
821
851
  * Serializes information the current object
852
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
853
+ * @param SetCurrentProfileRequestDto The instance to serialize from.
822
854
  * @param writer Serialization writer to use to serialize this model
823
855
  */
824
856
  // @ts-ignore
825
- export function serializeSetCurrentProfileRequestDto(writer: SerializationWriter, setCurrentProfileRequestDto: Partial<SetCurrentProfileRequestDto> | undefined | null = {}) : void {
826
- if (setCurrentProfileRequestDto) {
827
- writer.writeStringValue("profileId", setCurrentProfileRequestDto.profileId);
828
- }
857
+ export function serializeSetCurrentProfileRequestDto(writer: SerializationWriter, setCurrentProfileRequestDto: Partial<SetCurrentProfileRequestDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
858
+ if (!setCurrentProfileRequestDto || isSerializingDerivedType) { return; }
859
+ writer.writeStringValue("profileId", setCurrentProfileRequestDto.profileId);
829
860
  }
830
861
  /**
831
862
  * Serializes information the current object
863
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
864
+ * @param SharedDataCreateAttachmentResponseDto The instance to serialize from.
832
865
  * @param writer Serialization writer to use to serialize this model
833
866
  */
834
867
  // @ts-ignore
835
- export function serializeSharedDataCreateAttachmentResponseDto(writer: SerializationWriter, sharedDataCreateAttachmentResponseDto: Partial<SharedDataCreateAttachmentResponseDto> | undefined | null = {}) : void {
836
- if (sharedDataCreateAttachmentResponseDto) {
837
- writer.writeCollectionOfObjectValues<SharedDataCreateAttachmentResponseItemDto>("items", sharedDataCreateAttachmentResponseDto.items, serializeSharedDataCreateAttachmentResponseItemDto);
838
- }
868
+ export function serializeSharedDataCreateAttachmentResponseDto(writer: SerializationWriter, sharedDataCreateAttachmentResponseDto: Partial<SharedDataCreateAttachmentResponseDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
869
+ if (!sharedDataCreateAttachmentResponseDto || isSerializingDerivedType) { return; }
870
+ writer.writeCollectionOfObjectValues<SharedDataCreateAttachmentResponseItemDto>("items", sharedDataCreateAttachmentResponseDto.items, serializeSharedDataCreateAttachmentResponseItemDto);
839
871
  }
840
872
  /**
841
873
  * Serializes information the current object
874
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
875
+ * @param SharedDataCreateAttachmentResponseItemDto The instance to serialize from.
842
876
  * @param writer Serialization writer to use to serialize this model
843
877
  */
844
878
  // @ts-ignore
845
- export function serializeSharedDataCreateAttachmentResponseItemDto(writer: SerializationWriter, sharedDataCreateAttachmentResponseItemDto: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined | null = {}) : void {
846
- if (sharedDataCreateAttachmentResponseItemDto) {
847
- writer.writeNumberValue("id", sharedDataCreateAttachmentResponseItemDto.id);
848
- writer.writeStringValue("name", sharedDataCreateAttachmentResponseItemDto.name);
849
- writer.writeStringValue("uri", sharedDataCreateAttachmentResponseItemDto.uri);
850
- }
879
+ export function serializeSharedDataCreateAttachmentResponseItemDto(writer: SerializationWriter, sharedDataCreateAttachmentResponseItemDto: Partial<SharedDataCreateAttachmentResponseItemDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
880
+ if (!sharedDataCreateAttachmentResponseItemDto || isSerializingDerivedType) { return; }
881
+ writer.writeNumberValue("id", sharedDataCreateAttachmentResponseItemDto.id);
882
+ writer.writeStringValue("name", sharedDataCreateAttachmentResponseItemDto.name);
883
+ writer.writeStringValue("uri", sharedDataCreateAttachmentResponseItemDto.uri);
851
884
  }
852
885
  /**
853
886
  * Serializes information the current object
887
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
888
+ * @param SharedDataDeleteDto The instance to serialize from.
854
889
  * @param writer Serialization writer to use to serialize this model
855
890
  */
856
891
  // @ts-ignore
857
- export function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined | null = {}) : void {
858
- if (sharedDataDeleteDto) {
859
- writer.writeNumberValue("id", sharedDataDeleteDto.id);
860
- }
892
+ export function serializeSharedDataDeleteDto(writer: SerializationWriter, sharedDataDeleteDto: Partial<SharedDataDeleteDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
893
+ if (!sharedDataDeleteDto || isSerializingDerivedType) { return; }
894
+ writer.writeNumberValue("id", sharedDataDeleteDto.id);
861
895
  }
862
896
  /**
863
897
  * Serializes information the current object
898
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
899
+ * @param TestTypeMappingDto The instance to serialize from.
864
900
  * @param writer Serialization writer to use to serialize this model
865
901
  */
866
902
  // @ts-ignore
867
- export function serializeTestTypeMappingDto(writer: SerializationWriter, testTypeMappingDto: Partial<TestTypeMappingDto> | undefined | null = {}) : void {
868
- if (testTypeMappingDto) {
869
- writer.writeStringValue("entityType", testTypeMappingDto.entityType);
870
- writer.writeObjectValue<ProfileDto>("profile", testTypeMappingDto.profile, serializeProfileDto);
871
- writer.writeStringValue("select", testTypeMappingDto.select);
872
- writer.writeNumberValue("skip", testTypeMappingDto.skip);
873
- writer.writeNumberValue("take", testTypeMappingDto.take);
874
- }
903
+ export function serializeTestTypeMappingDto(writer: SerializationWriter, testTypeMappingDto: Partial<TestTypeMappingDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
904
+ if (!testTypeMappingDto || isSerializingDerivedType) { return; }
905
+ writer.writeStringValue("entityType", testTypeMappingDto.entityType);
906
+ writer.writeObjectValue<ProfileDto>("profile", testTypeMappingDto.profile, serializeProfileDto);
907
+ writer.writeStringValue("select", testTypeMappingDto.select);
908
+ writer.writeNumberValue("skip", testTypeMappingDto.skip);
909
+ writer.writeNumberValue("take", testTypeMappingDto.take);
875
910
  }
876
911
  /**
877
912
  * Serializes information the current object
913
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
914
+ * @param TpTypeDefDto The instance to serialize from.
878
915
  * @param writer Serialization writer to use to serialize this model
879
916
  */
880
917
  // @ts-ignore
881
- export function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto: Partial<TpTypeDefDto> | undefined | null = {}) : void {
882
- if (tpTypeDefDto) {
883
- writer.writeStringValue("id", tpTypeDefDto.id);
884
- writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
885
- writer.writeStringValue("name", tpTypeDefDto.name);
886
- }
918
+ export function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto: Partial<TpTypeDefDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
919
+ if (!tpTypeDefDto || isSerializingDerivedType) { return; }
920
+ writer.writeStringValue("id", tpTypeDefDto.id);
921
+ writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
922
+ writer.writeStringValue("name", tpTypeDefDto.name);
887
923
  }
888
924
  /**
889
925
  * Serializes information the current object
926
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
927
+ * @param TypeMappingDto The instance to serialize from.
890
928
  * @param writer Serialization writer to use to serialize this model
891
929
  */
892
930
  // @ts-ignore
893
- export function serializeTypeMappingDto(writer: SerializationWriter, typeMappingDto: Partial<TypeMappingDto> | undefined | null = {}) : void {
894
- if (typeMappingDto) {
895
- writer.writeCollectionOfObjectValues<FieldMappingDto>("fieldMappings", typeMappingDto.fieldMappings, serializeFieldMappingDto);
896
- writer.writeStringValue("id", typeMappingDto.id);
897
- writer.writeObjectValue<TpTypeDefDto>("sourceType", typeMappingDto.sourceType, serializeTpTypeDefDto);
898
- writer.writeObjectValue<SdmTypeDefDto>("targetType", typeMappingDto.targetType, serializeSdmTypeDefDto);
899
- writer.writeStringValue("$type", typeMappingDto.type);
931
+ export function serializeTypeMappingDto(writer: SerializationWriter, typeMappingDto: Partial<TypeMappingDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
932
+ if (!typeMappingDto || isSerializingDerivedType) { return; }
933
+ writer.writeCollectionOfObjectValues<FieldMappingDto>("fieldMappings", typeMappingDto.fieldMappings, serializeFieldMappingDto);
934
+ writer.writeStringValue("id", typeMappingDto.id);
935
+ writer.writeObjectValue<TpTypeDefDto>("sourceType", typeMappingDto.sourceType, serializeTpTypeDefDto);
936
+ writer.writeObjectValue<SdmTypeDefDto>("targetType", typeMappingDto.targetType, serializeSdmTypeDefDto);
937
+ writer.writeStringValue("$type", typeMappingDto.type);
938
+ switch (typeMappingDto.type) {
939
+ case "ValidatedTypeMappingDto":
940
+ serializeValidatedTypeMappingDto(writer, typeMappingDto, true);
941
+ break;
900
942
  }
901
943
  }
902
944
  /**
903
945
  * Serializes information the current object
946
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
947
+ * @param TypeMetaDefDto The instance to serialize from.
904
948
  * @param writer Serialization writer to use to serialize this model
905
949
  */
906
950
  // @ts-ignore
907
- export function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDefDto: Partial<TypeMetaDefDto> | undefined | null = {}) : void {
908
- if (typeMetaDefDto) {
909
- writer.writeCollectionOfObjectValues<FieldDefDto>("fields", typeMetaDefDto.fields, serializeFieldDefDto);
910
- writer.writeStringValue("historyParentTypeId", typeMetaDefDto.historyParentTypeId);
911
- writer.writeStringValue("id", typeMetaDefDto.id);
912
- writer.writeStringValue("name", typeMetaDefDto.name);
913
- }
951
+ export function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDefDto: Partial<TypeMetaDefDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
952
+ if (!typeMetaDefDto || isSerializingDerivedType) { return; }
953
+ writer.writeCollectionOfObjectValues<FieldDefDto>("fields", typeMetaDefDto.fields, serializeFieldDefDto);
954
+ writer.writeStringValue("historyParentTypeId", typeMetaDefDto.historyParentTypeId);
955
+ writer.writeStringValue("id", typeMetaDefDto.id);
956
+ writer.writeStringValue("name", typeMetaDefDto.name);
914
957
  }
915
958
  /**
916
959
  * Serializes information the current object
960
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
961
+ * @param ValidatedFieldMappingDto The instance to serialize from.
917
962
  * @param writer Serialization writer to use to serialize this model
918
963
  */
919
964
  // @ts-ignore
920
- export function serializeValidatedFieldMappingDto(writer: SerializationWriter, validatedFieldMappingDto: Partial<ValidatedFieldMappingDto> | undefined | null = {}) : void {
921
- if (validatedFieldMappingDto) {
922
- serializeFieldMappingDto(writer, validatedFieldMappingDto)
923
- writer.writeCollectionOfObjectValues<MappingErrorDto>("errors", validatedFieldMappingDto.errors, serializeMappingErrorDto);
924
- writer.writeEnumValue<ValidationState>("validationState", validatedFieldMappingDto.validationState);
925
- writer.writeAdditionalData(validatedFieldMappingDto.additionalData);
926
- }
965
+ export function serializeValidatedFieldMappingDto(writer: SerializationWriter, validatedFieldMappingDto: Partial<ValidatedFieldMappingDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
966
+ if (!validatedFieldMappingDto || isSerializingDerivedType) { return; }
967
+ serializeFieldMappingDto(writer, validatedFieldMappingDto, isSerializingDerivedType)
968
+ writer.writeCollectionOfObjectValues<MappingErrorDto>("errors", validatedFieldMappingDto.errors, serializeMappingErrorDto);
969
+ writer.writeEnumValue<ValidationState>("validationState", validatedFieldMappingDto.validationState);
970
+ writer.writeAdditionalData(validatedFieldMappingDto.additionalData);
927
971
  }
928
972
  /**
929
973
  * Serializes information the current object
974
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
975
+ * @param ValidatedProfileDto The instance to serialize from.
930
976
  * @param writer Serialization writer to use to serialize this model
931
977
  */
932
978
  // @ts-ignore
933
- export function serializeValidatedProfileDto(writer: SerializationWriter, validatedProfileDto: Partial<ValidatedProfileDto> | undefined | null = {}) : void {
934
- if (validatedProfileDto) {
935
- serializeProfileIdDto(writer, validatedProfileDto)
936
- writer.writeCollectionOfObjectValues<ValidatedTypeMappingDto>("typeMappings", validatedProfileDto.typeMappings, serializeValidatedTypeMappingDto);
937
- writer.writeEnumValue<ValidationState>("validationState", validatedProfileDto.validationState);
938
- writer.writeAdditionalData(validatedProfileDto.additionalData);
939
- }
979
+ export function serializeValidatedProfileDto(writer: SerializationWriter, validatedProfileDto: Partial<ValidatedProfileDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
980
+ if (!validatedProfileDto || isSerializingDerivedType) { return; }
981
+ serializeProfileIdDto(writer, validatedProfileDto, isSerializingDerivedType)
982
+ writer.writeCollectionOfObjectValues<ValidatedTypeMappingDto>("typeMappings", validatedProfileDto.typeMappings, serializeValidatedTypeMappingDto);
983
+ writer.writeEnumValue<ValidationState>("validationState", validatedProfileDto.validationState);
984
+ writer.writeAdditionalData(validatedProfileDto.additionalData);
940
985
  }
941
986
  /**
942
987
  * Serializes information the current object
988
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
989
+ * @param ValidatedTypeMappingDto The instance to serialize from.
943
990
  * @param writer Serialization writer to use to serialize this model
944
991
  */
945
992
  // @ts-ignore
946
- export function serializeValidatedTypeMappingDto(writer: SerializationWriter, validatedTypeMappingDto: Partial<ValidatedTypeMappingDto> | undefined | null = {}) : void {
947
- if (validatedTypeMappingDto) {
948
- serializeTypeMappingDto(writer, validatedTypeMappingDto)
949
- writer.writeCollectionOfObjectValues<MappingErrorDto>("errors", validatedTypeMappingDto.errors, serializeMappingErrorDto);
950
- writer.writeBooleanValue("isDefault", validatedTypeMappingDto.isDefault);
951
- writer.writeEnumValue<ValidationState>("validationState", validatedTypeMappingDto.validationState);
952
- writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
953
- }
993
+ export function serializeValidatedTypeMappingDto(writer: SerializationWriter, validatedTypeMappingDto: Partial<ValidatedTypeMappingDto> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
994
+ if (!validatedTypeMappingDto || isSerializingDerivedType) { return; }
995
+ serializeTypeMappingDto(writer, validatedTypeMappingDto, isSerializingDerivedType)
996
+ writer.writeCollectionOfObjectValues<MappingErrorDto>("errors", validatedTypeMappingDto.errors, serializeMappingErrorDto);
997
+ writer.writeBooleanValue("isDefault", validatedTypeMappingDto.isDefault);
998
+ writer.writeEnumValue<ValidationState>("validationState", validatedTypeMappingDto.validationState);
999
+ writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
954
1000
  }
955
1001
  export interface SetCurrentProfileRequestDto extends Parsable {
956
1002
  /**
@@ -1061,10 +1107,6 @@ export interface TypeMetaDefDto extends Parsable {
1061
1107
  name?: string | null;
1062
1108
  }
1063
1109
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
1064
- /**
1065
- * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1066
- */
1067
- additionalData?: Record<string, unknown>;
1068
1110
  /**
1069
1111
  * The errors property
1070
1112
  */
@@ -1075,10 +1117,6 @@ export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMap
1075
1117
  validationState?: ValidationState | null;
1076
1118
  }
1077
1119
  export interface ValidatedProfileDto extends AdditionalDataHolder, Parsable, ProfileIdDto {
1078
- /**
1079
- * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1080
- */
1081
- additionalData?: Record<string, unknown>;
1082
1120
  /**
1083
1121
  * The typeMappings property
1084
1122
  */
@@ -1089,10 +1127,6 @@ export interface ValidatedProfileDto extends AdditionalDataHolder, Parsable, Pro
1089
1127
  validationState?: ValidationState | null;
1090
1128
  }
1091
1129
  export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable, TypeMappingDto {
1092
- /**
1093
- * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1094
- */
1095
- additionalData?: Record<string, unknown>;
1096
1130
  /**
1097
1131
  * The errors property
1098
1132
  */