@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.
@@ -315,6 +315,7 @@ function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode) {
315
315
  }
316
316
  /**
317
317
  * The deserialization information for the current model
318
+ * @param CopyCurrentProfileRequestDto The instance to deserialize into.
318
319
  * @returns {Record<string, (node: ParseNode) => void>}
319
320
  */
320
321
  // @ts-ignore
@@ -325,6 +326,7 @@ function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRequestDt
325
326
  }
326
327
  /**
327
328
  * The deserialization information for the current model
329
+ * @param DeleteProfileRequestDto The instance to deserialize into.
328
330
  * @returns {Record<string, (node: ParseNode) => void>}
329
331
  */
330
332
  // @ts-ignore
@@ -335,6 +337,7 @@ function deserializeIntoDeleteProfileRequestDto(deleteProfileRequestDto = {}) {
335
337
  }
336
338
  /**
337
339
  * The deserialization information for the current model
340
+ * @param FieldDefDto The instance to deserialize into.
338
341
  * @returns {Record<string, (node: ParseNode) => void>}
339
342
  */
340
343
  // @ts-ignore
@@ -348,6 +351,7 @@ function deserializeIntoFieldDefDto(fieldDefDto = {}) {
348
351
  }
349
352
  /**
350
353
  * The deserialization information for the current model
354
+ * @param FieldMappingDto The instance to deserialize into.
351
355
  * @returns {Record<string, (node: ParseNode) => void>}
352
356
  */
353
357
  // @ts-ignore
@@ -362,6 +366,7 @@ function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
362
366
  }
363
367
  /**
364
368
  * The deserialization information for the current model
369
+ * @param GetEntityTypesDto The instance to deserialize into.
365
370
  * @returns {Record<string, (node: ParseNode) => void>}
366
371
  */
367
372
  // @ts-ignore
@@ -373,6 +378,7 @@ function deserializeIntoGetEntityTypesDto(getEntityTypesDto = {}) {
373
378
  }
374
379
  /**
375
380
  * The deserialization information for the current model
381
+ * @param HttpValidationProblemDetails The instance to deserialize into.
376
382
  * @returns {Record<string, (node: ParseNode) => void>}
377
383
  */
378
384
  // @ts-ignore
@@ -384,6 +390,7 @@ function deserializeIntoHttpValidationProblemDetails(httpValidationProblemDetail
384
390
  }
385
391
  /**
386
392
  * The deserialization information for the current model
393
+ * @param HttpValidationProblemDetails_errors The instance to deserialize into.
387
394
  * @returns {Record<string, (node: ParseNode) => void>}
388
395
  */
389
396
  // @ts-ignore
@@ -392,6 +399,7 @@ function deserializeIntoHttpValidationProblemDetails_errors(httpValidationProble
392
399
  }
393
400
  /**
394
401
  * The deserialization information for the current model
402
+ * @param MappingErrorDto The instance to deserialize into.
395
403
  * @returns {Record<string, (node: ParseNode) => void>}
396
404
  */
397
405
  // @ts-ignore
@@ -402,6 +410,7 @@ function deserializeIntoMappingErrorDto(mappingErrorDto = {}) {
402
410
  }
403
411
  /**
404
412
  * The deserialization information for the current model
413
+ * @param MappingFieldDefDto The instance to deserialize into.
405
414
  * @returns {Record<string, (node: ParseNode) => void>}
406
415
  */
407
416
  // @ts-ignore
@@ -412,6 +421,7 @@ function deserializeIntoMappingFieldDefDto(mappingFieldDefDto = {}) {
412
421
  }
413
422
  /**
414
423
  * The deserialization information for the current model
424
+ * @param ProblemDetails The instance to deserialize into.
415
425
  * @returns {Record<string, (node: ParseNode) => void>}
416
426
  */
417
427
  // @ts-ignore
@@ -426,6 +436,7 @@ function deserializeIntoProblemDetails(problemDetails = {}) {
426
436
  }
427
437
  /**
428
438
  * The deserialization information for the current model
439
+ * @param ProfileDto The instance to deserialize into.
429
440
  * @returns {Record<string, (node: ParseNode) => void>}
430
441
  */
431
442
  // @ts-ignore
@@ -437,6 +448,7 @@ function deserializeIntoProfileDto(profileDto = {}) {
437
448
  }
438
449
  /**
439
450
  * The deserialization information for the current model
451
+ * @param ProfileIdDto The instance to deserialize into.
440
452
  * @returns {Record<string, (node: ParseNode) => void>}
441
453
  */
442
454
  // @ts-ignore
@@ -449,6 +461,7 @@ function deserializeIntoProfileIdDto(profileIdDto = {}) {
449
461
  }
450
462
  /**
451
463
  * The deserialization information for the current model
464
+ * @param SdmTypeDefDto The instance to deserialize into.
452
465
  * @returns {Record<string, (node: ParseNode) => void>}
453
466
  */
454
467
  // @ts-ignore
@@ -460,6 +473,7 @@ function deserializeIntoSdmTypeDefDto(sdmTypeDefDto = {}) {
460
473
  }
461
474
  /**
462
475
  * The deserialization information for the current model
476
+ * @param SetCurrentProfileRequestDto The instance to deserialize into.
463
477
  * @returns {Record<string, (node: ParseNode) => void>}
464
478
  */
465
479
  // @ts-ignore
@@ -470,6 +484,7 @@ function deserializeIntoSetCurrentProfileRequestDto(setCurrentProfileRequestDto
470
484
  }
471
485
  /**
472
486
  * The deserialization information for the current model
487
+ * @param SharedDataCreateAttachmentResponseDto The instance to deserialize into.
473
488
  * @returns {Record<string, (node: ParseNode) => void>}
474
489
  */
475
490
  // @ts-ignore
@@ -480,6 +495,7 @@ function deserializeIntoSharedDataCreateAttachmentResponseDto(sharedDataCreateAt
480
495
  }
481
496
  /**
482
497
  * The deserialization information for the current model
498
+ * @param SharedDataCreateAttachmentResponseItemDto The instance to deserialize into.
483
499
  * @returns {Record<string, (node: ParseNode) => void>}
484
500
  */
485
501
  // @ts-ignore
@@ -492,6 +508,7 @@ function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCrea
492
508
  }
493
509
  /**
494
510
  * The deserialization information for the current model
511
+ * @param SharedDataDeleteDto The instance to deserialize into.
495
512
  * @returns {Record<string, (node: ParseNode) => void>}
496
513
  */
497
514
  // @ts-ignore
@@ -502,6 +519,7 @@ function deserializeIntoSharedDataDeleteDto(sharedDataDeleteDto = {}) {
502
519
  }
503
520
  /**
504
521
  * The deserialization information for the current model
522
+ * @param TestTypeMappingDto The instance to deserialize into.
505
523
  * @returns {Record<string, (node: ParseNode) => void>}
506
524
  */
507
525
  // @ts-ignore
@@ -516,6 +534,7 @@ function deserializeIntoTestTypeMappingDto(testTypeMappingDto = {}) {
516
534
  }
517
535
  /**
518
536
  * The deserialization information for the current model
537
+ * @param TpTypeDefDto The instance to deserialize into.
519
538
  * @returns {Record<string, (node: ParseNode) => void>}
520
539
  */
521
540
  // @ts-ignore
@@ -528,6 +547,7 @@ function deserializeIntoTpTypeDefDto(tpTypeDefDto = {}) {
528
547
  }
529
548
  /**
530
549
  * The deserialization information for the current model
550
+ * @param TypeMappingDto The instance to deserialize into.
531
551
  * @returns {Record<string, (node: ParseNode) => void>}
532
552
  */
533
553
  // @ts-ignore
@@ -542,6 +562,7 @@ function deserializeIntoTypeMappingDto(typeMappingDto = {}) {
542
562
  }
543
563
  /**
544
564
  * The deserialization information for the current model
565
+ * @param TypeMetaDefDto The instance to deserialize into.
545
566
  * @returns {Record<string, (node: ParseNode) => void>}
546
567
  */
547
568
  // @ts-ignore
@@ -555,6 +576,7 @@ function deserializeIntoTypeMetaDefDto(typeMetaDefDto = {}) {
555
576
  }
556
577
  /**
557
578
  * The deserialization information for the current model
579
+ * @param ValidatedFieldMappingDto The instance to deserialize into.
558
580
  * @returns {Record<string, (node: ParseNode) => void>}
559
581
  */
560
582
  // @ts-ignore
@@ -567,6 +589,7 @@ function deserializeIntoValidatedFieldMappingDto(validatedFieldMappingDto = {})
567
589
  }
568
590
  /**
569
591
  * The deserialization information for the current model
592
+ * @param ValidatedProfileDto The instance to deserialize into.
570
593
  * @returns {Record<string, (node: ParseNode) => void>}
571
594
  */
572
595
  // @ts-ignore
@@ -579,6 +602,7 @@ function deserializeIntoValidatedProfileDto(validatedProfileDto = {}) {
579
602
  }
580
603
  /**
581
604
  * The deserialization information for the current model
605
+ * @param ValidatedTypeMappingDto The instance to deserialize into.
582
606
  * @returns {Record<string, (node: ParseNode) => void>}
583
607
  */
584
608
  // @ts-ignore
@@ -592,287 +616,369 @@ function deserializeIntoValidatedTypeMappingDto(validatedTypeMappingDto = {}) {
592
616
  }
593
617
  /**
594
618
  * Serializes information the current object
619
+ * @param CopyCurrentProfileRequestDto The instance to serialize from.
620
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
595
621
  * @param writer Serialization writer to use to serialize this model
596
622
  */
597
623
  // @ts-ignore
598
- function serializeCopyCurrentProfileRequestDto(writer, copyCurrentProfileRequestDto = {}) {
599
- if (copyCurrentProfileRequestDto) {
600
- writer.writeStringValue("profileName", copyCurrentProfileRequestDto.profileName);
624
+ function serializeCopyCurrentProfileRequestDto(writer, copyCurrentProfileRequestDto = {}, isSerializingDerivedType = false) {
625
+ if (!copyCurrentProfileRequestDto || isSerializingDerivedType) {
626
+ return;
601
627
  }
628
+ writer.writeStringValue("profileName", copyCurrentProfileRequestDto.profileName);
602
629
  }
603
630
  /**
604
631
  * Serializes information the current object
632
+ * @param DeleteProfileRequestDto The instance to serialize from.
633
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
605
634
  * @param writer Serialization writer to use to serialize this model
606
635
  */
607
636
  // @ts-ignore
608
- function serializeDeleteProfileRequestDto(writer, deleteProfileRequestDto = {}) {
609
- if (deleteProfileRequestDto) {
610
- writer.writeStringValue("profileId", deleteProfileRequestDto.profileId);
637
+ function serializeDeleteProfileRequestDto(writer, deleteProfileRequestDto = {}, isSerializingDerivedType = false) {
638
+ if (!deleteProfileRequestDto || isSerializingDerivedType) {
639
+ return;
611
640
  }
641
+ writer.writeStringValue("profileId", deleteProfileRequestDto.profileId);
612
642
  }
613
643
  /**
614
644
  * Serializes information the current object
645
+ * @param FieldDefDto The instance to serialize from.
646
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
615
647
  * @param writer Serialization writer to use to serialize this model
616
648
  */
617
649
  // @ts-ignore
618
- function serializeFieldDefDto(writer, fieldDefDto = {}) {
619
- if (fieldDefDto) {
620
- writer.writeStringValue("expression", fieldDefDto.expression);
621
- writer.writeEnumValue("refKind", fieldDefDto.refKind);
622
- writer.writeStringValue("refType", fieldDefDto.refType);
623
- writer.writeStringValue("type", fieldDefDto.type);
650
+ function serializeFieldDefDto(writer, fieldDefDto = {}, isSerializingDerivedType = false) {
651
+ if (!fieldDefDto || isSerializingDerivedType) {
652
+ return;
624
653
  }
654
+ writer.writeStringValue("expression", fieldDefDto.expression);
655
+ writer.writeEnumValue("refKind", fieldDefDto.refKind);
656
+ writer.writeStringValue("refType", fieldDefDto.refType);
657
+ writer.writeStringValue("type", fieldDefDto.type);
625
658
  }
626
659
  /**
627
660
  * Serializes information the current object
661
+ * @param FieldMappingDto The instance to serialize from.
662
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
628
663
  * @param writer Serialization writer to use to serialize this model
629
664
  */
630
665
  // @ts-ignore
631
- function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
632
- if (fieldMappingDto) {
633
- writer.writeStringValue("id", fieldMappingDto.id);
634
- writer.writeEnumValue("kind", fieldMappingDto.kind);
635
- writer.writeObjectValue("source", fieldMappingDto.source, serializeMappingFieldDefDto);
636
- writer.writeObjectValue("target", fieldMappingDto.target, serializeMappingFieldDefDto);
637
- writer.writeStringValue("$type", fieldMappingDto.type);
666
+ function serializeFieldMappingDto(writer, fieldMappingDto = {}, isSerializingDerivedType = false) {
667
+ if (!fieldMappingDto || isSerializingDerivedType) {
668
+ return;
669
+ }
670
+ writer.writeStringValue("id", fieldMappingDto.id);
671
+ writer.writeEnumValue("kind", fieldMappingDto.kind);
672
+ writer.writeObjectValue("source", fieldMappingDto.source, serializeMappingFieldDefDto);
673
+ writer.writeObjectValue("target", fieldMappingDto.target, serializeMappingFieldDefDto);
674
+ writer.writeStringValue("$type", fieldMappingDto.type);
675
+ switch (fieldMappingDto.type) {
676
+ case "ValidatedFieldMappingDto":
677
+ serializeValidatedFieldMappingDto(writer, fieldMappingDto, true);
678
+ break;
638
679
  }
639
680
  }
640
681
  /**
641
682
  * Serializes information the current object
683
+ * @param GetEntityTypesDto The instance to serialize from.
684
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
642
685
  * @param writer Serialization writer to use to serialize this model
643
686
  */
644
687
  // @ts-ignore
645
- function serializeGetEntityTypesDto(writer, getEntityTypesDto = {}) {
646
- if (getEntityTypesDto) {
647
- writer.writeCollectionOfObjectValues("sdmTypes", getEntityTypesDto.sdmTypes, serializeTypeMetaDefDto);
648
- writer.writeCollectionOfObjectValues("tpTypes", getEntityTypesDto.tpTypes, serializeTypeMetaDefDto);
688
+ function serializeGetEntityTypesDto(writer, getEntityTypesDto = {}, isSerializingDerivedType = false) {
689
+ if (!getEntityTypesDto || isSerializingDerivedType) {
690
+ return;
649
691
  }
692
+ writer.writeCollectionOfObjectValues("sdmTypes", getEntityTypesDto.sdmTypes, serializeTypeMetaDefDto);
693
+ writer.writeCollectionOfObjectValues("tpTypes", getEntityTypesDto.tpTypes, serializeTypeMetaDefDto);
650
694
  }
651
695
  /**
652
696
  * Serializes information the current object
697
+ * @param HttpValidationProblemDetails The instance to serialize from.
698
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
653
699
  * @param writer Serialization writer to use to serialize this model
654
700
  */
655
701
  // @ts-ignore
656
- function serializeHttpValidationProblemDetails(writer, httpValidationProblemDetails = {}) {
657
- if (httpValidationProblemDetails) {
658
- serializeProblemDetails(writer, httpValidationProblemDetails);
659
- writer.writeObjectValue("errors", httpValidationProblemDetails.errors, serializeHttpValidationProblemDetails_errors);
702
+ function serializeHttpValidationProblemDetails(writer, httpValidationProblemDetails = {}, isSerializingDerivedType = false) {
703
+ if (!httpValidationProblemDetails || isSerializingDerivedType) {
704
+ return;
660
705
  }
706
+ serializeProblemDetails(writer, httpValidationProblemDetails, isSerializingDerivedType);
707
+ writer.writeObjectValue("errors", httpValidationProblemDetails.errors, serializeHttpValidationProblemDetails_errors);
661
708
  }
662
709
  /**
663
710
  * Serializes information the current object
711
+ * @param HttpValidationProblemDetails_errors The instance to serialize from.
712
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
664
713
  * @param writer Serialization writer to use to serialize this model
665
714
  */
666
715
  // @ts-ignore
667
- function serializeHttpValidationProblemDetails_errors(writer, httpValidationProblemDetails_errors = {}) {
668
- if (httpValidationProblemDetails_errors) {
669
- writer.writeAdditionalData(httpValidationProblemDetails_errors.additionalData);
716
+ function serializeHttpValidationProblemDetails_errors(writer, httpValidationProblemDetails_errors = {}, isSerializingDerivedType = false) {
717
+ if (!httpValidationProblemDetails_errors || isSerializingDerivedType) {
718
+ return;
670
719
  }
720
+ writer.writeAdditionalData(httpValidationProblemDetails_errors.additionalData);
671
721
  }
672
722
  /**
673
723
  * Serializes information the current object
724
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
725
+ * @param MappingErrorDto The instance to serialize from.
674
726
  * @param writer Serialization writer to use to serialize this model
675
727
  */
676
728
  // @ts-ignore
677
- function serializeMappingErrorDto(writer, mappingErrorDto = {}) {
678
- if (mappingErrorDto) {
679
- writer.writeStringValue("message", mappingErrorDto.message);
729
+ function serializeMappingErrorDto(writer, mappingErrorDto = {}, isSerializingDerivedType = false) {
730
+ if (!mappingErrorDto || isSerializingDerivedType) {
731
+ return;
680
732
  }
733
+ writer.writeStringValue("message", mappingErrorDto.message);
681
734
  }
682
735
  /**
683
736
  * Serializes information the current object
737
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
738
+ * @param MappingFieldDefDto The instance to serialize from.
684
739
  * @param writer Serialization writer to use to serialize this model
685
740
  */
686
741
  // @ts-ignore
687
- function serializeMappingFieldDefDto(writer, mappingFieldDefDto = {}) {
688
- if (mappingFieldDefDto) {
689
- writer.writeStringValue("expression", mappingFieldDefDto.expression);
742
+ function serializeMappingFieldDefDto(writer, mappingFieldDefDto = {}, isSerializingDerivedType = false) {
743
+ if (!mappingFieldDefDto || isSerializingDerivedType) {
744
+ return;
690
745
  }
746
+ writer.writeStringValue("expression", mappingFieldDefDto.expression);
691
747
  }
692
748
  /**
693
749
  * Serializes information the current object
750
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
751
+ * @param ProblemDetails The instance to serialize from.
694
752
  * @param writer Serialization writer to use to serialize this model
695
753
  */
696
754
  // @ts-ignore
697
- function serializeProblemDetails(writer, problemDetails = {}) {
698
- if (problemDetails) {
699
- writer.writeStringValue("detail", problemDetails.detail);
700
- writer.writeStringValue("instance", problemDetails.instance);
701
- writer.writeNumberValue("status", problemDetails.status);
702
- writer.writeStringValue("title", problemDetails.title);
703
- writer.writeStringValue("type", problemDetails.type);
704
- writer.writeAdditionalData(problemDetails.additionalData);
755
+ function serializeProblemDetails(writer, problemDetails = {}, isSerializingDerivedType = false) {
756
+ if (!problemDetails || isSerializingDerivedType) {
757
+ return;
705
758
  }
759
+ writer.writeStringValue("detail", problemDetails.detail);
760
+ writer.writeStringValue("instance", problemDetails.instance);
761
+ writer.writeNumberValue("status", problemDetails.status);
762
+ writer.writeStringValue("title", problemDetails.title);
763
+ writer.writeStringValue("type", problemDetails.type);
764
+ writer.writeAdditionalData(problemDetails.additionalData);
706
765
  }
707
766
  /**
708
767
  * Serializes information the current object
768
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
769
+ * @param ProfileDto The instance to serialize from.
709
770
  * @param writer Serialization writer to use to serialize this model
710
771
  */
711
772
  // @ts-ignore
712
- function serializeProfileDto(writer, profileDto = {}) {
713
- if (profileDto) {
714
- serializeProfileIdDto(writer, profileDto);
715
- writer.writeCollectionOfObjectValues("typeMappings", profileDto.typeMappings, serializeTypeMappingDto);
716
- writer.writeAdditionalData(profileDto.additionalData);
773
+ function serializeProfileDto(writer, profileDto = {}, isSerializingDerivedType = false) {
774
+ if (!profileDto || isSerializingDerivedType) {
775
+ return;
717
776
  }
777
+ serializeProfileIdDto(writer, profileDto, isSerializingDerivedType);
778
+ writer.writeCollectionOfObjectValues("typeMappings", profileDto.typeMappings, serializeTypeMappingDto);
779
+ writer.writeAdditionalData(profileDto.additionalData);
718
780
  }
719
781
  /**
720
782
  * Serializes information the current object
783
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
784
+ * @param ProfileIdDto The instance to serialize from.
721
785
  * @param writer Serialization writer to use to serialize this model
722
786
  */
723
787
  // @ts-ignore
724
- function serializeProfileIdDto(writer, profileIdDto = {}) {
725
- if (profileIdDto) {
726
- writer.writeStringValue("account", profileIdDto.account);
727
- writer.writeStringValue("id", profileIdDto.id);
728
- writer.writeStringValue("name", profileIdDto.name);
788
+ function serializeProfileIdDto(writer, profileIdDto = {}, isSerializingDerivedType = false) {
789
+ if (!profileIdDto || isSerializingDerivedType) {
790
+ return;
729
791
  }
792
+ writer.writeStringValue("account", profileIdDto.account);
793
+ writer.writeStringValue("id", profileIdDto.id);
794
+ writer.writeStringValue("name", profileIdDto.name);
730
795
  }
731
796
  /**
732
797
  * Serializes information the current object
798
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
799
+ * @param SdmTypeDefDto The instance to serialize from.
733
800
  * @param writer Serialization writer to use to serialize this model
734
801
  */
735
802
  // @ts-ignore
736
- function serializeSdmTypeDefDto(writer, sdmTypeDefDto = {}) {
737
- if (sdmTypeDefDto) {
738
- writer.writeStringValue("id", sdmTypeDefDto.id);
739
- writer.writeStringValue("name", sdmTypeDefDto.name);
803
+ function serializeSdmTypeDefDto(writer, sdmTypeDefDto = {}, isSerializingDerivedType = false) {
804
+ if (!sdmTypeDefDto || isSerializingDerivedType) {
805
+ return;
740
806
  }
807
+ writer.writeStringValue("id", sdmTypeDefDto.id);
808
+ writer.writeStringValue("name", sdmTypeDefDto.name);
741
809
  }
742
810
  /**
743
811
  * Serializes information the current object
812
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
813
+ * @param SetCurrentProfileRequestDto The instance to serialize from.
744
814
  * @param writer Serialization writer to use to serialize this model
745
815
  */
746
816
  // @ts-ignore
747
- function serializeSetCurrentProfileRequestDto(writer, setCurrentProfileRequestDto = {}) {
748
- if (setCurrentProfileRequestDto) {
749
- writer.writeStringValue("profileId", setCurrentProfileRequestDto.profileId);
817
+ function serializeSetCurrentProfileRequestDto(writer, setCurrentProfileRequestDto = {}, isSerializingDerivedType = false) {
818
+ if (!setCurrentProfileRequestDto || isSerializingDerivedType) {
819
+ return;
750
820
  }
821
+ writer.writeStringValue("profileId", setCurrentProfileRequestDto.profileId);
751
822
  }
752
823
  /**
753
824
  * Serializes information the current object
825
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
826
+ * @param SharedDataCreateAttachmentResponseDto The instance to serialize from.
754
827
  * @param writer Serialization writer to use to serialize this model
755
828
  */
756
829
  // @ts-ignore
757
- function serializeSharedDataCreateAttachmentResponseDto(writer, sharedDataCreateAttachmentResponseDto = {}) {
758
- if (sharedDataCreateAttachmentResponseDto) {
759
- writer.writeCollectionOfObjectValues("items", sharedDataCreateAttachmentResponseDto.items, serializeSharedDataCreateAttachmentResponseItemDto);
830
+ function serializeSharedDataCreateAttachmentResponseDto(writer, sharedDataCreateAttachmentResponseDto = {}, isSerializingDerivedType = false) {
831
+ if (!sharedDataCreateAttachmentResponseDto || isSerializingDerivedType) {
832
+ return;
760
833
  }
834
+ writer.writeCollectionOfObjectValues("items", sharedDataCreateAttachmentResponseDto.items, serializeSharedDataCreateAttachmentResponseItemDto);
761
835
  }
762
836
  /**
763
837
  * Serializes information the current object
838
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
839
+ * @param SharedDataCreateAttachmentResponseItemDto The instance to serialize from.
764
840
  * @param writer Serialization writer to use to serialize this model
765
841
  */
766
842
  // @ts-ignore
767
- function serializeSharedDataCreateAttachmentResponseItemDto(writer, sharedDataCreateAttachmentResponseItemDto = {}) {
768
- if (sharedDataCreateAttachmentResponseItemDto) {
769
- writer.writeNumberValue("id", sharedDataCreateAttachmentResponseItemDto.id);
770
- writer.writeStringValue("name", sharedDataCreateAttachmentResponseItemDto.name);
771
- writer.writeStringValue("uri", sharedDataCreateAttachmentResponseItemDto.uri);
843
+ function serializeSharedDataCreateAttachmentResponseItemDto(writer, sharedDataCreateAttachmentResponseItemDto = {}, isSerializingDerivedType = false) {
844
+ if (!sharedDataCreateAttachmentResponseItemDto || isSerializingDerivedType) {
845
+ return;
772
846
  }
847
+ writer.writeNumberValue("id", sharedDataCreateAttachmentResponseItemDto.id);
848
+ writer.writeStringValue("name", sharedDataCreateAttachmentResponseItemDto.name);
849
+ writer.writeStringValue("uri", sharedDataCreateAttachmentResponseItemDto.uri);
773
850
  }
774
851
  /**
775
852
  * Serializes information the current object
853
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
854
+ * @param SharedDataDeleteDto The instance to serialize from.
776
855
  * @param writer Serialization writer to use to serialize this model
777
856
  */
778
857
  // @ts-ignore
779
- function serializeSharedDataDeleteDto(writer, sharedDataDeleteDto = {}) {
780
- if (sharedDataDeleteDto) {
781
- writer.writeNumberValue("id", sharedDataDeleteDto.id);
858
+ function serializeSharedDataDeleteDto(writer, sharedDataDeleteDto = {}, isSerializingDerivedType = false) {
859
+ if (!sharedDataDeleteDto || isSerializingDerivedType) {
860
+ return;
782
861
  }
862
+ writer.writeNumberValue("id", sharedDataDeleteDto.id);
783
863
  }
784
864
  /**
785
865
  * Serializes information the current object
866
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
867
+ * @param TestTypeMappingDto The instance to serialize from.
786
868
  * @param writer Serialization writer to use to serialize this model
787
869
  */
788
870
  // @ts-ignore
789
- function serializeTestTypeMappingDto(writer, testTypeMappingDto = {}) {
790
- if (testTypeMappingDto) {
791
- writer.writeStringValue("entityType", testTypeMappingDto.entityType);
792
- writer.writeObjectValue("profile", testTypeMappingDto.profile, serializeProfileDto);
793
- writer.writeStringValue("select", testTypeMappingDto.select);
794
- writer.writeNumberValue("skip", testTypeMappingDto.skip);
795
- writer.writeNumberValue("take", testTypeMappingDto.take);
871
+ function serializeTestTypeMappingDto(writer, testTypeMappingDto = {}, isSerializingDerivedType = false) {
872
+ if (!testTypeMappingDto || isSerializingDerivedType) {
873
+ return;
796
874
  }
875
+ writer.writeStringValue("entityType", testTypeMappingDto.entityType);
876
+ writer.writeObjectValue("profile", testTypeMappingDto.profile, serializeProfileDto);
877
+ writer.writeStringValue("select", testTypeMappingDto.select);
878
+ writer.writeNumberValue("skip", testTypeMappingDto.skip);
879
+ writer.writeNumberValue("take", testTypeMappingDto.take);
797
880
  }
798
881
  /**
799
882
  * Serializes information the current object
883
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
884
+ * @param TpTypeDefDto The instance to serialize from.
800
885
  * @param writer Serialization writer to use to serialize this model
801
886
  */
802
887
  // @ts-ignore
803
- function serializeTpTypeDefDto(writer, tpTypeDefDto = {}) {
804
- if (tpTypeDefDto) {
805
- writer.writeStringValue("id", tpTypeDefDto.id);
806
- writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
807
- writer.writeStringValue("name", tpTypeDefDto.name);
888
+ function serializeTpTypeDefDto(writer, tpTypeDefDto = {}, isSerializingDerivedType = false) {
889
+ if (!tpTypeDefDto || isSerializingDerivedType) {
890
+ return;
808
891
  }
892
+ writer.writeStringValue("id", tpTypeDefDto.id);
893
+ writer.writeBooleanValue("isEmptyType", tpTypeDefDto.isEmptyType);
894
+ writer.writeStringValue("name", tpTypeDefDto.name);
809
895
  }
810
896
  /**
811
897
  * Serializes information the current object
898
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
899
+ * @param TypeMappingDto The instance to serialize from.
812
900
  * @param writer Serialization writer to use to serialize this model
813
901
  */
814
902
  // @ts-ignore
815
- function serializeTypeMappingDto(writer, typeMappingDto = {}) {
816
- if (typeMappingDto) {
817
- writer.writeCollectionOfObjectValues("fieldMappings", typeMappingDto.fieldMappings, serializeFieldMappingDto);
818
- writer.writeStringValue("id", typeMappingDto.id);
819
- writer.writeObjectValue("sourceType", typeMappingDto.sourceType, serializeTpTypeDefDto);
820
- writer.writeObjectValue("targetType", typeMappingDto.targetType, serializeSdmTypeDefDto);
821
- writer.writeStringValue("$type", typeMappingDto.type);
903
+ function serializeTypeMappingDto(writer, typeMappingDto = {}, isSerializingDerivedType = false) {
904
+ if (!typeMappingDto || isSerializingDerivedType) {
905
+ return;
906
+ }
907
+ writer.writeCollectionOfObjectValues("fieldMappings", typeMappingDto.fieldMappings, serializeFieldMappingDto);
908
+ writer.writeStringValue("id", typeMappingDto.id);
909
+ writer.writeObjectValue("sourceType", typeMappingDto.sourceType, serializeTpTypeDefDto);
910
+ writer.writeObjectValue("targetType", typeMappingDto.targetType, serializeSdmTypeDefDto);
911
+ writer.writeStringValue("$type", typeMappingDto.type);
912
+ switch (typeMappingDto.type) {
913
+ case "ValidatedTypeMappingDto":
914
+ serializeValidatedTypeMappingDto(writer, typeMappingDto, true);
915
+ break;
822
916
  }
823
917
  }
824
918
  /**
825
919
  * Serializes information the current object
920
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
921
+ * @param TypeMetaDefDto The instance to serialize from.
826
922
  * @param writer Serialization writer to use to serialize this model
827
923
  */
828
924
  // @ts-ignore
829
- function serializeTypeMetaDefDto(writer, typeMetaDefDto = {}) {
830
- if (typeMetaDefDto) {
831
- writer.writeCollectionOfObjectValues("fields", typeMetaDefDto.fields, serializeFieldDefDto);
832
- writer.writeStringValue("historyParentTypeId", typeMetaDefDto.historyParentTypeId);
833
- writer.writeStringValue("id", typeMetaDefDto.id);
834
- writer.writeStringValue("name", typeMetaDefDto.name);
925
+ function serializeTypeMetaDefDto(writer, typeMetaDefDto = {}, isSerializingDerivedType = false) {
926
+ if (!typeMetaDefDto || isSerializingDerivedType) {
927
+ return;
835
928
  }
929
+ writer.writeCollectionOfObjectValues("fields", typeMetaDefDto.fields, serializeFieldDefDto);
930
+ writer.writeStringValue("historyParentTypeId", typeMetaDefDto.historyParentTypeId);
931
+ writer.writeStringValue("id", typeMetaDefDto.id);
932
+ writer.writeStringValue("name", typeMetaDefDto.name);
836
933
  }
837
934
  /**
838
935
  * Serializes information the current object
936
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
937
+ * @param ValidatedFieldMappingDto The instance to serialize from.
839
938
  * @param writer Serialization writer to use to serialize this model
840
939
  */
841
940
  // @ts-ignore
842
- function serializeValidatedFieldMappingDto(writer, validatedFieldMappingDto = {}) {
843
- if (validatedFieldMappingDto) {
844
- serializeFieldMappingDto(writer, validatedFieldMappingDto);
845
- writer.writeCollectionOfObjectValues("errors", validatedFieldMappingDto.errors, serializeMappingErrorDto);
846
- writer.writeEnumValue("validationState", validatedFieldMappingDto.validationState);
847
- writer.writeAdditionalData(validatedFieldMappingDto.additionalData);
941
+ function serializeValidatedFieldMappingDto(writer, validatedFieldMappingDto = {}, isSerializingDerivedType = false) {
942
+ if (!validatedFieldMappingDto || isSerializingDerivedType) {
943
+ return;
848
944
  }
945
+ serializeFieldMappingDto(writer, validatedFieldMappingDto, isSerializingDerivedType);
946
+ writer.writeCollectionOfObjectValues("errors", validatedFieldMappingDto.errors, serializeMappingErrorDto);
947
+ writer.writeEnumValue("validationState", validatedFieldMappingDto.validationState);
948
+ writer.writeAdditionalData(validatedFieldMappingDto.additionalData);
849
949
  }
850
950
  /**
851
951
  * Serializes information the current object
952
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
953
+ * @param ValidatedProfileDto The instance to serialize from.
852
954
  * @param writer Serialization writer to use to serialize this model
853
955
  */
854
956
  // @ts-ignore
855
- function serializeValidatedProfileDto(writer, validatedProfileDto = {}) {
856
- if (validatedProfileDto) {
857
- serializeProfileIdDto(writer, validatedProfileDto);
858
- writer.writeCollectionOfObjectValues("typeMappings", validatedProfileDto.typeMappings, serializeValidatedTypeMappingDto);
859
- writer.writeEnumValue("validationState", validatedProfileDto.validationState);
860
- writer.writeAdditionalData(validatedProfileDto.additionalData);
957
+ function serializeValidatedProfileDto(writer, validatedProfileDto = {}, isSerializingDerivedType = false) {
958
+ if (!validatedProfileDto || isSerializingDerivedType) {
959
+ return;
861
960
  }
961
+ serializeProfileIdDto(writer, validatedProfileDto, isSerializingDerivedType);
962
+ writer.writeCollectionOfObjectValues("typeMappings", validatedProfileDto.typeMappings, serializeValidatedTypeMappingDto);
963
+ writer.writeEnumValue("validationState", validatedProfileDto.validationState);
964
+ writer.writeAdditionalData(validatedProfileDto.additionalData);
862
965
  }
863
966
  /**
864
967
  * Serializes information the current object
968
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
969
+ * @param ValidatedTypeMappingDto The instance to serialize from.
865
970
  * @param writer Serialization writer to use to serialize this model
866
971
  */
867
972
  // @ts-ignore
868
- function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {}) {
869
- if (validatedTypeMappingDto) {
870
- serializeTypeMappingDto(writer, validatedTypeMappingDto);
871
- writer.writeCollectionOfObjectValues("errors", validatedTypeMappingDto.errors, serializeMappingErrorDto);
872
- writer.writeBooleanValue("isDefault", validatedTypeMappingDto.isDefault);
873
- writer.writeEnumValue("validationState", validatedTypeMappingDto.validationState);
874
- writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
973
+ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {}, isSerializingDerivedType = false) {
974
+ if (!validatedTypeMappingDto || isSerializingDerivedType) {
975
+ return;
875
976
  }
977
+ serializeTypeMappingDto(writer, validatedTypeMappingDto, isSerializingDerivedType);
978
+ writer.writeCollectionOfObjectValues("errors", validatedTypeMappingDto.errors, serializeMappingErrorDto);
979
+ writer.writeBooleanValue("isDefault", validatedTypeMappingDto.isDefault);
980
+ writer.writeEnumValue("validationState", validatedTypeMappingDto.validationState);
981
+ writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
876
982
  }
877
983
  exports.FieldMappingKindObject = {
878
984
  DefaultEscaped: "Default",