@torrow/sdk-client 0.11.1 → 0.13.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.
package/dist/index.js CHANGED
@@ -47,12 +47,36 @@ var TorrowSdkEffectState = /* @__PURE__ */ ((TorrowSdkEffectState2) => {
47
47
  return TorrowSdkEffectState2;
48
48
  })(TorrowSdkEffectState || {});
49
49
  var TorrowSdkErrorDomain = /* @__PURE__ */ ((TorrowSdkErrorDomain2) => {
50
+ TorrowSdkErrorDomain2["FileMetadata"] = "FileMetadata";
50
51
  TorrowSdkErrorDomain2["ItemPatch"] = "ItemPatch";
51
52
  TorrowSdkErrorDomain2["BehaviorSettings"] = "BehaviorSettings";
52
53
  TorrowSdkErrorDomain2["Otp"] = "Otp";
53
54
  TorrowSdkErrorDomain2["AuthSession"] = "AuthSession";
54
55
  return TorrowSdkErrorDomain2;
55
56
  })(TorrowSdkErrorDomain || {});
57
+ var FileMetadataErrorReason = /* @__PURE__ */ ((FileMetadataErrorReason2) => {
58
+ FileMetadataErrorReason2["ContentTypeUnavailable"] = "ContentTypeUnavailable";
59
+ FileMetadataErrorReason2["SubscriptionIsNotValid"] = "SubscriptionIsNotValid";
60
+ FileMetadataErrorReason2["FileIdUnavailable"] = "FileIdUnavailable";
61
+ FileMetadataErrorReason2["SubscriptionIdUnavailable"] = "SubscriptionIdUnavailable";
62
+ return FileMetadataErrorReason2;
63
+ })(FileMetadataErrorReason || {});
64
+ var FileMetadataOperation = /* @__PURE__ */ ((FileMetadataOperation2) => {
65
+ FileMetadataOperation2["GetInitialSubscriptionImageInfo"] = "getInitialSubscriptionImageInfo";
66
+ FileMetadataOperation2["GetImageInfo"] = "getImageInfo";
67
+ FileMetadataOperation2["GetFileInfo"] = "getFileInfo";
68
+ FileMetadataOperation2["GetPhotoInfo"] = "getPhotoInfo";
69
+ FileMetadataOperation2["GetSubscriptionImageInfo"] = "getSubscriptionImageInfo";
70
+ return FileMetadataOperation2;
71
+ })(FileMetadataOperation || {});
72
+ var FileMetadataFailureAt = /* @__PURE__ */ ((FileMetadataFailureAt2) => {
73
+ FileMetadataFailureAt2["ValidateInput"] = "ValidateInput";
74
+ FileMetadataFailureAt2["ReadItem"] = "ReadItem";
75
+ FileMetadataFailureAt2["ValidateItem"] = "ValidateItem";
76
+ FileMetadataFailureAt2["ReadMetadata"] = "ReadMetadata";
77
+ FileMetadataFailureAt2["ValidateMetadata"] = "ValidateMetadata";
78
+ return FileMetadataFailureAt2;
79
+ })(FileMetadataFailureAt || {});
56
80
  var OtpErrorReason = /* @__PURE__ */ ((OtpErrorReason2) => {
57
81
  OtpErrorReason2["InvalidChallenge"] = "InvalidChallenge";
58
82
  OtpErrorReason2["UnsupportedMethod"] = "UnsupportedMethod";
@@ -269,14 +293,14 @@ var responsePublicityNodes = [
269
293
  "itemContactView": 15,
270
294
  "itemContextView": 18,
271
295
  "itemNoteView": 21,
272
- "itemCaseView": 24,
273
- "itemCalendarView": 27,
274
- "itemServiceView": 30,
275
- "itemResourceView": 33,
276
- "itemLoyaltyCardView": 36,
277
- "itemLoyaltySystemView": 39,
278
- "userProfileView": 42,
279
- "correspondentProfileViewList": 43
296
+ "itemCaseView": 25,
297
+ "itemCalendarView": 28,
298
+ "itemServiceView": 31,
299
+ "itemResourceView": 34,
300
+ "itemLoyaltyCardView": 37,
301
+ "itemLoyaltySystemView": 40,
302
+ "userProfileView": 43,
303
+ "correspondentProfileViewList": 44
280
304
  }
281
305
  },
282
306
  {
@@ -305,74 +329,79 @@ var responsePublicityNodes = [
305
329
  "ref": 22
306
330
  },
307
331
  {
332
+ "noteData": true,
308
333
  "properties": {
309
- "publicityType": 23
334
+ "noteType": 23,
335
+ "publicityType": 24
310
336
  }
311
337
  },
338
+ {
339
+ "noteType": true
340
+ },
312
341
  {
313
342
  "publicity": true
314
343
  },
315
344
  {
316
- "ref": 25
345
+ "ref": 26
317
346
  },
318
347
  {
319
348
  "properties": {
320
- "publicityType": 26
349
+ "publicityType": 27
321
350
  }
322
351
  },
323
352
  {
324
353
  "publicity": true
325
354
  },
326
355
  {
327
- "ref": 28
356
+ "ref": 29
328
357
  },
329
358
  {
330
359
  "properties": {
331
- "publicityType": 29
360
+ "publicityType": 30
332
361
  }
333
362
  },
334
363
  {
335
364
  "publicity": true
336
365
  },
337
366
  {
338
- "ref": 31
367
+ "ref": 32
339
368
  },
340
369
  {
341
370
  "properties": {
342
- "publicityType": 32
371
+ "publicityType": 33
343
372
  }
344
373
  },
345
374
  {
346
375
  "publicity": true
347
376
  },
348
377
  {
349
- "ref": 34
378
+ "ref": 35
350
379
  },
351
380
  {
352
381
  "properties": {
353
- "publicityType": 35
382
+ "publicityType": 36
354
383
  }
355
384
  },
356
385
  {
357
386
  "publicity": true
358
387
  },
359
388
  {
360
- "ref": 37
389
+ "ref": 38
361
390
  },
362
391
  {
363
392
  "properties": {
364
- "publicityType": 38
393
+ "publicityType": 39
365
394
  }
366
395
  },
367
396
  {
368
397
  "publicity": true
369
398
  },
370
399
  {
371
- "ref": 40
400
+ "ref": 41
372
401
  },
373
402
  {
374
403
  "properties": {
375
- "publicityType": 41
404
+ "publicityType": 42
376
405
  }
377
406
  },
378
407
  {
@@ -382,30 +411,30 @@ var responsePublicityNodes = [
382
411
  "ref": 16
383
412
  },
384
413
  {
385
- "items": 44
414
+ "items": 45
386
415
  },
387
416
  {
388
417
  "ref": 16
389
418
  },
390
419
  {
391
- "items": 46
420
+ "items": 47
392
421
  },
393
422
  {
394
- "ref": 47
423
+ "ref": 48
395
424
  },
396
425
  {
397
426
  "properties": {
398
- "itemContactView": 48,
399
- "itemContextView": 49,
400
- "itemNoteView": 50,
401
- "itemCaseView": 51,
402
- "itemCalendarView": 52,
403
- "itemServiceView": 53,
404
- "itemResourceView": 54,
405
- "itemLoyaltyCardView": 55,
406
- "itemLoyaltySystemView": 56,
407
- "senderProfileView": 57,
408
- "recipientProfileView": 58
427
+ "itemContactView": 49,
428
+ "itemContextView": 50,
429
+ "itemNoteView": 51,
430
+ "itemCaseView": 52,
431
+ "itemCalendarView": 53,
432
+ "itemServiceView": 54,
433
+ "itemResourceView": 55,
434
+ "itemLoyaltyCardView": 56,
435
+ "itemLoyaltySystemView": 57,
436
+ "senderProfileView": 58,
437
+ "recipientProfileView": 59
409
438
  }
410
439
  },
411
440
  {
@@ -418,22 +447,22 @@ var responsePublicityNodes = [
418
447
  "ref": 22
419
448
  },
420
449
  {
421
- "ref": 25
450
+ "ref": 26
422
451
  },
423
452
  {
424
- "ref": 28
453
+ "ref": 29
425
454
  },
426
455
  {
427
- "ref": 31
456
+ "ref": 32
428
457
  },
429
458
  {
430
- "ref": 34
459
+ "ref": 35
431
460
  },
432
461
  {
433
- "ref": 37
462
+ "ref": 38
434
463
  },
435
464
  {
436
- "ref": 40
465
+ "ref": 41
437
466
  },
438
467
  {
439
468
  "ref": 16
@@ -442,37 +471,37 @@ var responsePublicityNodes = [
442
471
  "ref": 16
443
472
  },
444
473
  {
445
- "ref": 60
474
+ "ref": 61
446
475
  },
447
476
  {
448
477
  "properties": {
449
- "publicityType": 61
478
+ "publicityType": 62
450
479
  }
451
480
  },
452
481
  {
453
482
  "publicity": true
454
483
  },
455
484
  {
456
- "ref": 60
485
+ "ref": 61
457
486
  },
458
487
  {
459
- "ref": 60
488
+ "ref": 61
460
489
  },
461
490
  {
462
- "items": 65
491
+ "items": 66
463
492
  },
464
493
  {
465
- "ref": 60
494
+ "ref": 61
466
495
  },
467
496
  {
468
- "items": 67
497
+ "items": 68
469
498
  },
470
499
  {
471
- "ref": 68
500
+ "ref": 69
472
501
  },
473
502
  {
474
503
  "properties": {
475
- "publicityType": 69
504
+ "publicityType": 70
476
505
  }
477
506
  },
478
507
  {
@@ -485,37 +514,37 @@ var responsePublicityNodes = [
485
514
  "ref": 6
486
515
  },
487
516
  {
488
- "items": 73
517
+ "items": 74
489
518
  },
490
519
  {
491
- "ref": 74
520
+ "ref": 75
492
521
  },
493
522
  {
494
523
  "properties": {
495
- "group": 75
524
+ "group": 76
496
525
  }
497
526
  },
498
527
  {
499
528
  "ref": 6
500
529
  },
501
530
  {
502
- "items": 77
531
+ "items": 78
503
532
  },
504
533
  {
505
534
  "ref": 6
506
535
  },
507
536
  {
508
- "ref": 60
537
+ "ref": 61
509
538
  },
510
539
  {
511
- "items": 80
540
+ "items": 81
512
541
  },
513
542
  {
514
- "ref": 81
543
+ "ref": 82
515
544
  },
516
545
  {
517
546
  "properties": {
518
- "publicityType": 82
547
+ "publicityType": 83
519
548
  }
520
549
  },
521
550
  {
@@ -528,55 +557,55 @@ var responsePublicityNodes = [
528
557
  "ref": 6
529
558
  },
530
559
  {
531
- "items": 86
560
+ "items": 87
532
561
  },
533
562
  {
534
- "ref": 28
563
+ "ref": 29
535
564
  },
536
565
  {
537
- "items": 88
566
+ "items": 89
538
567
  },
539
568
  {
540
- "ref": 28
569
+ "ref": 29
541
570
  },
542
571
  {
543
- "ref": 28
572
+ "ref": 29
544
573
  },
545
574
  {
546
- "items": 91
575
+ "items": 92
547
576
  },
548
577
  {
549
- "ref": 28
578
+ "ref": 29
550
579
  },
551
580
  {
552
- "ref": 28
581
+ "ref": 29
553
582
  },
554
583
  {
555
- "ref": 94
584
+ "ref": 95
556
585
  },
557
586
  {
558
587
  "properties": {
559
- "personalInfo": 95,
560
- "publicityType": 103
588
+ "personalInfo": 96,
589
+ "publicityType": 104
561
590
  }
562
591
  },
563
592
  {
564
- "ref": 96
593
+ "ref": 97
565
594
  },
566
595
  {
567
596
  "properties": {
568
- "ticketResource": 97,
569
- "paymentResource": 102
597
+ "ticketResource": 98,
598
+ "paymentResource": 103
570
599
  }
571
600
  },
572
601
  {
573
- "ref": 98
602
+ "ref": 99
574
603
  },
575
604
  {
576
605
  "properties": {
577
- "item": 99,
578
- "parentResource": 100,
579
- "publicityType": 101
606
+ "item": 100,
607
+ "parentResource": 101,
608
+ "publicityType": 102
580
609
  }
581
610
  },
582
611
  {
@@ -589,31 +618,31 @@ var responsePublicityNodes = [
589
618
  "publicity": true
590
619
  },
591
620
  {
592
- "ref": 98
621
+ "ref": 99
593
622
  },
594
623
  {
595
624
  "publicity": true
596
625
  },
597
626
  {
598
- "ref": 94
627
+ "ref": 95
599
628
  },
600
629
  {
601
- "ref": 94
630
+ "ref": 95
602
631
  },
603
632
  {
604
- "ref": 94
633
+ "ref": 95
605
634
  },
606
635
  {
607
- "items": 108
636
+ "items": 109
608
637
  },
609
638
  {
610
- "ref": 94
639
+ "ref": 95
611
640
  },
612
641
  {
613
- "items": 110
642
+ "items": 111
614
643
  },
615
644
  {
616
- "ref": 68
645
+ "ref": 69
617
646
  },
618
647
  {
619
648
  "ref": 6
@@ -622,77 +651,77 @@ var responsePublicityNodes = [
622
651
  "ref": 6
623
652
  },
624
653
  {
625
- "items": 114
654
+ "items": 115
626
655
  },
627
656
  {
628
- "ref": 74
657
+ "ref": 75
629
658
  },
630
659
  {
631
- "items": 116
660
+ "items": 117
632
661
  },
633
662
  {
634
663
  "ref": 6
635
664
  },
636
665
  {
637
- "ref": 94
666
+ "ref": 95
638
667
  },
639
668
  {
640
- "ref": 94
669
+ "ref": 95
641
670
  },
642
671
  {
643
- "ref": 94
672
+ "ref": 95
644
673
  },
645
674
  {
646
- "ref": 94
675
+ "ref": 95
647
676
  },
648
677
  {
649
- "ref": 94
678
+ "ref": 95
650
679
  },
651
680
  {
652
- "ref": 94
681
+ "ref": 95
653
682
  },
654
683
  {
655
- "ref": 94
684
+ "ref": 95
656
685
  },
657
686
  {
658
- "ref": 94
687
+ "ref": 95
659
688
  },
660
689
  {
661
- "items": 126
690
+ "items": 127
662
691
  },
663
692
  {
664
- "ref": 34
693
+ "ref": 35
665
694
  },
666
695
  {
667
- "ref": 94
696
+ "ref": 95
668
697
  },
669
698
  {
670
- "items": 129
699
+ "items": 130
671
700
  },
672
701
  {
673
- "ref": 130
702
+ "ref": 131
674
703
  },
675
704
  {
676
705
  "properties": {
677
- "ticketResource": 131,
678
- "paymentResource": 132,
679
- "publicityType": 133
706
+ "ticketResource": 132,
707
+ "paymentResource": 133,
708
+ "publicityType": 134
680
709
  }
681
710
  },
682
711
  {
683
- "ref": 98
712
+ "ref": 99
684
713
  },
685
714
  {
686
- "ref": 98
715
+ "ref": 99
687
716
  },
688
717
  {
689
718
  "publicity": true
690
719
  },
691
720
  {
692
- "ref": 130
721
+ "ref": 131
693
722
  },
694
723
  {
695
- "ref": 94
724
+ "ref": 95
696
725
  },
697
726
  {
698
727
  "ref": 6
@@ -701,36 +730,36 @@ var responsePublicityNodes = [
701
730
  "ref": 6
702
731
  },
703
732
  {
704
- "items": 139
733
+ "items": 140
705
734
  },
706
735
  {
707
- "ref": 25
736
+ "ref": 26
708
737
  },
709
738
  {
710
- "items": 141
739
+ "items": 142
711
740
  },
712
741
  {
713
- "ref": 25
742
+ "ref": 26
714
743
  },
715
744
  {
716
- "ref": 25
745
+ "ref": 26
717
746
  },
718
747
  {
719
- "items": 144
748
+ "items": 145
720
749
  },
721
750
  {
722
- "ref": 25
751
+ "ref": 26
723
752
  },
724
753
  {
725
- "ref": 25
754
+ "ref": 26
726
755
  },
727
756
  {
728
- "ref": 147
757
+ "ref": 148
729
758
  },
730
759
  {
731
760
  "properties": {
732
- "loyaltyCard": 148,
733
- "publicityType": 149
761
+ "loyaltyCard": 149,
762
+ "publicityType": 150
734
763
  }
735
764
  },
736
765
  {
@@ -740,22 +769,22 @@ var responsePublicityNodes = [
740
769
  "publicity": true
741
770
  },
742
771
  {
743
- "ref": 147
772
+ "ref": 148
744
773
  },
745
774
  {
746
- "ref": 147
775
+ "ref": 148
747
776
  },
748
777
  {
749
- "items": 153
778
+ "items": 154
750
779
  },
751
780
  {
752
- "ref": 147
781
+ "ref": 148
753
782
  },
754
783
  {
755
- "items": 155
784
+ "items": 156
756
785
  },
757
786
  {
758
- "ref": 68
787
+ "ref": 69
759
788
  },
760
789
  {
761
790
  "ref": 6
@@ -764,25 +793,25 @@ var responsePublicityNodes = [
764
793
  "ref": 6
765
794
  },
766
795
  {
767
- "items": 159
796
+ "items": 160
768
797
  },
769
798
  {
770
- "ref": 74
799
+ "ref": 75
771
800
  },
772
801
  {
773
- "items": 161
802
+ "items": 162
774
803
  },
775
804
  {
776
805
  "ref": 6
777
806
  },
778
807
  {
779
- "ref": 147
808
+ "ref": 148
780
809
  },
781
810
  {
782
- "items": 164
811
+ "items": 165
783
812
  },
784
813
  {
785
- "ref": 81
814
+ "ref": 82
786
815
  },
787
816
  {
788
817
  "ref": 6
@@ -791,13 +820,13 @@ var responsePublicityNodes = [
791
820
  "ref": 6
792
821
  },
793
822
  {
794
- "items": 168
823
+ "items": 169
795
824
  },
796
825
  {
797
826
  "ref": 16
798
827
  },
799
828
  {
800
- "items": 170
829
+ "items": 171
801
830
  },
802
831
  {
803
832
  "ref": 16
@@ -806,7 +835,7 @@ var responsePublicityNodes = [
806
835
  "ref": 16
807
836
  },
808
837
  {
809
- "items": 173
838
+ "items": 174
810
839
  },
811
840
  {
812
841
  "ref": 16
@@ -815,27 +844,27 @@ var responsePublicityNodes = [
815
844
  "ref": 16
816
845
  },
817
846
  {
818
- "ref": 176
847
+ "ref": 177
819
848
  },
820
849
  {
821
850
  "properties": {
822
- "publicityType": 177
851
+ "publicityType": 178
823
852
  }
824
853
  },
825
854
  {
826
855
  "publicity": true
827
856
  },
828
857
  {
829
- "ref": 176
858
+ "ref": 177
830
859
  },
831
860
  {
832
- "ref": 176
861
+ "ref": 177
833
862
  },
834
863
  {
835
- "items": 181
864
+ "items": 182
836
865
  },
837
866
  {
838
- "ref": 68
867
+ "ref": 69
839
868
  },
840
869
  {
841
870
  "ref": 6
@@ -844,25 +873,25 @@ var responsePublicityNodes = [
844
873
  "ref": 6
845
874
  },
846
875
  {
847
- "items": 185
876
+ "items": 186
848
877
  },
849
878
  {
850
- "ref": 74
879
+ "ref": 75
851
880
  },
852
881
  {
853
- "items": 187
882
+ "items": 188
854
883
  },
855
884
  {
856
885
  "ref": 6
857
886
  },
858
887
  {
859
- "items": 189
888
+ "items": 190
860
889
  },
861
890
  {
862
- "ref": 176
891
+ "ref": 177
863
892
  },
864
893
  {
865
- "ref": 176
894
+ "ref": 177
866
895
  },
867
896
  {
868
897
  "ref": 6
@@ -871,13 +900,13 @@ var responsePublicityNodes = [
871
900
  "ref": 6
872
901
  },
873
902
  {
874
- "items": 194
903
+ "items": 195
875
904
  },
876
905
  {
877
906
  "ref": 19
878
907
  },
879
908
  {
880
- "items": 196
909
+ "items": 197
881
910
  },
882
911
  {
883
912
  "ref": 19
@@ -886,7 +915,7 @@ var responsePublicityNodes = [
886
915
  "ref": 19
887
916
  },
888
917
  {
889
- "items": 199
918
+ "items": 200
890
919
  },
891
920
  {
892
921
  "ref": 19
@@ -895,40 +924,40 @@ var responsePublicityNodes = [
895
924
  "ref": 19
896
925
  },
897
926
  {
898
- "ref": 202
927
+ "ref": 203
899
928
  },
900
929
  {
901
930
  "properties": {
902
- "items": 203,
903
- "views": 205,
904
- "timetableCases": 209
931
+ "items": 204,
932
+ "views": 206,
933
+ "timetableCases": 210
905
934
  }
906
935
  },
907
936
  {
908
- "items": 204
937
+ "items": 205
909
938
  },
910
939
  {
911
940
  "ref": 6
912
941
  },
913
942
  {
914
- "items": 206
943
+ "items": 207
915
944
  },
916
945
  {
917
- "ref": 207
946
+ "ref": 208
918
947
  },
919
948
  {
920
949
  "properties": {
921
- "publicityType": 208
950
+ "publicityType": 209
922
951
  }
923
952
  },
924
953
  {
925
954
  "publicity": true
926
955
  },
927
956
  {
928
- "items": 210
957
+ "items": 211
929
958
  },
930
959
  {
931
- "ref": 81
960
+ "ref": 82
932
961
  },
933
962
  {
934
963
  "ref": 6
@@ -937,90 +966,90 @@ var responsePublicityNodes = [
937
966
  "ref": 6
938
967
  },
939
968
  {
940
- "ref": 214
969
+ "ref": 215
941
970
  },
942
971
  {
943
972
  "properties": {
944
- "itemFeedback": 215
973
+ "itemFeedback": 216
945
974
  }
946
975
  },
947
976
  {
948
- "ref": 216
977
+ "ref": 217
949
978
  },
950
979
  {
951
980
  "properties": {
952
- "feedback": 217
981
+ "feedback": 218
953
982
  }
954
983
  },
955
984
  {
956
- "ref": 218
985
+ "ref": 219
957
986
  },
958
987
  {
959
988
  "properties": {
960
- "author": 219
989
+ "author": 220
961
990
  }
962
991
  },
963
992
  {
964
993
  "ref": 6
965
994
  },
966
995
  {
967
- "ref": 214
996
+ "ref": 215
968
997
  },
969
998
  {
970
- "ref": 218
999
+ "ref": 219
971
1000
  },
972
1001
  {
973
- "ref": 218
1002
+ "ref": 219
974
1003
  },
975
1004
  {
976
- "ref": 218
1005
+ "ref": 219
977
1006
  },
978
1007
  {
979
- "ref": 218
1008
+ "ref": 219
980
1009
  },
981
1010
  {
982
- "items": 226
1011
+ "items": 227
983
1012
  },
984
1013
  {
985
- "ref": 216
1014
+ "ref": 217
986
1015
  },
987
1016
  {
988
- "items": 228
1017
+ "items": 229
989
1018
  },
990
1019
  {
991
- "ref": 218
1020
+ "ref": 219
992
1021
  },
993
1022
  {
994
- "ref": 230
1023
+ "ref": 231
995
1024
  },
996
1025
  {
997
1026
  "properties": {
998
- "publicityType": 231
1027
+ "publicityType": 232
999
1028
  }
1000
1029
  },
1001
1030
  {
1002
1031
  "publicity": true
1003
1032
  },
1004
1033
  {
1005
- "ref": 230
1034
+ "ref": 231
1006
1035
  },
1007
1036
  {
1008
- "items": 234
1037
+ "items": 235
1009
1038
  },
1010
1039
  {
1011
- "ref": 230
1040
+ "ref": 231
1012
1041
  },
1013
1042
  {
1014
- "items": 236
1043
+ "items": 237
1015
1044
  },
1016
1045
  {
1017
- "ref": 81
1046
+ "ref": 82
1018
1047
  },
1019
1048
  {
1020
- "items": 238
1049
+ "items": 239
1021
1050
  },
1022
1051
  {
1023
- "ref": 68
1052
+ "ref": 69
1024
1053
  },
1025
1054
  {
1026
1055
  "ref": 6
@@ -1029,75 +1058,75 @@ var responsePublicityNodes = [
1029
1058
  "ref": 6
1030
1059
  },
1031
1060
  {
1032
- "items": 242
1061
+ "items": 243
1033
1062
  },
1034
1063
  {
1035
1064
  "ref": 2
1036
1065
  },
1037
1066
  {
1038
- "items": 244
1067
+ "items": 245
1039
1068
  },
1040
1069
  {
1041
1070
  "ref": 2
1042
1071
  },
1043
1072
  {
1044
- "ref": 230
1073
+ "ref": 231
1045
1074
  },
1046
1075
  {
1047
- "items": 247
1076
+ "items": 248
1048
1077
  },
1049
1078
  {
1050
- "ref": 37
1079
+ "ref": 38
1051
1080
  },
1052
1081
  {
1053
- "items": 249
1082
+ "items": 250
1054
1083
  },
1055
1084
  {
1056
- "ref": 37
1085
+ "ref": 38
1057
1086
  },
1058
1087
  {
1059
- "ref": 37
1088
+ "ref": 38
1060
1089
  },
1061
1090
  {
1062
- "items": 252
1091
+ "items": 253
1063
1092
  },
1064
1093
  {
1065
- "ref": 37
1094
+ "ref": 38
1066
1095
  },
1067
1096
  {
1068
- "ref": 37
1097
+ "ref": 38
1069
1098
  },
1070
1099
  {
1071
- "ref": 255
1100
+ "ref": 256
1072
1101
  },
1073
1102
  {
1074
1103
  "properties": {
1075
- "publicityType": 256
1104
+ "publicityType": 257
1076
1105
  }
1077
1106
  },
1078
1107
  {
1079
1108
  "publicity": true
1080
1109
  },
1081
1110
  {
1082
- "ref": 230
1111
+ "ref": 231
1083
1112
  },
1084
1113
  {
1085
- "ref": 255
1114
+ "ref": 256
1086
1115
  },
1087
1116
  {
1088
- "ref": 255
1117
+ "ref": 256
1089
1118
  },
1090
1119
  {
1091
- "items": 261
1120
+ "items": 262
1092
1121
  },
1093
1122
  {
1094
- "ref": 255
1123
+ "ref": 256
1095
1124
  },
1096
1125
  {
1097
- "items": 263
1126
+ "items": 264
1098
1127
  },
1099
1128
  {
1100
- "ref": 68
1129
+ "ref": 69
1101
1130
  },
1102
1131
  {
1103
1132
  "ref": 6
@@ -1106,72 +1135,77 @@ var responsePublicityNodes = [
1106
1135
  "ref": 6
1107
1136
  },
1108
1137
  {
1109
- "items": 267
1138
+ "items": 268
1110
1139
  },
1111
1140
  {
1112
1141
  "ref": 6
1113
1142
  },
1114
1143
  {
1115
- "ref": 255
1144
+ "ref": 256
1116
1145
  },
1117
1146
  {
1118
- "items": 270
1147
+ "items": 271
1119
1148
  },
1120
1149
  {
1121
- "ref": 230
1150
+ "ref": 231
1122
1151
  },
1123
1152
  {
1124
- "items": 272
1153
+ "items": 273
1125
1154
  },
1126
1155
  {
1127
- "ref": 40
1156
+ "ref": 41
1128
1157
  },
1129
1158
  {
1130
- "items": 274
1159
+ "items": 275
1131
1160
  },
1132
1161
  {
1133
- "ref": 40
1162
+ "ref": 41
1134
1163
  },
1135
1164
  {
1136
- "ref": 40
1165
+ "ref": 41
1137
1166
  },
1138
1167
  {
1139
- "items": 277
1168
+ "items": 278
1140
1169
  },
1141
1170
  {
1142
- "ref": 40
1171
+ "ref": 41
1143
1172
  },
1144
1173
  {
1145
- "ref": 40
1174
+ "ref": 41
1146
1175
  },
1147
1176
  {
1148
- "ref": 280
1177
+ "ref": 281
1149
1178
  },
1150
1179
  {
1180
+ "noteData": true,
1151
1181
  "properties": {
1152
- "publicityType": 281
1182
+ "noteType": 282,
1183
+ "publicityType": 283
1153
1184
  }
1154
1185
  },
1186
+ {
1187
+ "noteType": true
1188
+ },
1155
1189
  {
1156
1190
  "publicity": true
1157
1191
  },
1158
1192
  {
1159
- "ref": 280
1193
+ "ref": 281
1160
1194
  },
1161
1195
  {
1162
- "ref": 280
1196
+ "ref": 281
1163
1197
  },
1164
1198
  {
1165
- "items": 285
1199
+ "items": 287
1166
1200
  },
1167
1201
  {
1168
- "ref": 280
1202
+ "ref": 281
1169
1203
  },
1170
1204
  {
1171
- "items": 287
1205
+ "items": 289
1172
1206
  },
1173
1207
  {
1174
- "ref": 68
1208
+ "ref": 69
1175
1209
  },
1176
1210
  {
1177
1211
  "ref": 6
@@ -1180,19 +1214,19 @@ var responsePublicityNodes = [
1180
1214
  "ref": 6
1181
1215
  },
1182
1216
  {
1183
- "items": 291
1217
+ "items": 293
1184
1218
  },
1185
1219
  {
1186
- "ref": 74
1220
+ "ref": 75
1187
1221
  },
1188
1222
  {
1189
- "items": 293
1223
+ "items": 295
1190
1224
  },
1191
1225
  {
1192
1226
  "ref": 6
1193
1227
  },
1194
1228
  {
1195
- "ref": 280
1229
+ "ref": 281
1196
1230
  },
1197
1231
  {
1198
1232
  "ref": 6
@@ -1201,13 +1235,13 @@ var responsePublicityNodes = [
1201
1235
  "ref": 6
1202
1236
  },
1203
1237
  {
1204
- "items": 298
1238
+ "items": 300
1205
1239
  },
1206
1240
  {
1207
1241
  "ref": 22
1208
1242
  },
1209
1243
  {
1210
- "items": 300
1244
+ "items": 302
1211
1245
  },
1212
1246
  {
1213
1247
  "ref": 22
@@ -1216,7 +1250,7 @@ var responsePublicityNodes = [
1216
1250
  "ref": 22
1217
1251
  },
1218
1252
  {
1219
- "items": 303
1253
+ "items": 305
1220
1254
  },
1221
1255
  {
1222
1256
  "ref": 22
@@ -1225,25 +1259,25 @@ var responsePublicityNodes = [
1225
1259
  "ref": 22
1226
1260
  },
1227
1261
  {
1228
- "ref": 98
1262
+ "ref": 99
1229
1263
  },
1230
1264
  {
1231
- "ref": 98
1265
+ "ref": 99
1232
1266
  },
1233
1267
  {
1234
- "ref": 98
1268
+ "ref": 99
1235
1269
  },
1236
1270
  {
1237
- "items": 309
1271
+ "items": 311
1238
1272
  },
1239
1273
  {
1240
- "ref": 98
1274
+ "ref": 99
1241
1275
  },
1242
1276
  {
1243
- "items": 311
1277
+ "items": 313
1244
1278
  },
1245
1279
  {
1246
- "ref": 68
1280
+ "ref": 69
1247
1281
  },
1248
1282
  {
1249
1283
  "ref": 6
@@ -1252,47 +1286,47 @@ var responsePublicityNodes = [
1252
1286
  "ref": 6
1253
1287
  },
1254
1288
  {
1255
- "items": 315
1289
+ "items": 317
1256
1290
  },
1257
1291
  {
1258
- "ref": 74
1292
+ "ref": 75
1259
1293
  },
1260
1294
  {
1261
- "items": 317
1295
+ "items": 319
1262
1296
  },
1263
1297
  {
1264
1298
  "ref": 6
1265
1299
  },
1266
1300
  {
1267
- "ref": 319
1301
+ "ref": 321
1268
1302
  },
1269
1303
  {
1270
1304
  "properties": {
1271
- "orderCase": 320
1305
+ "orderCase": 322
1272
1306
  }
1273
1307
  },
1274
1308
  {
1275
- "ref": 94
1309
+ "ref": 95
1276
1310
  },
1277
1311
  {
1278
- "ref": 322
1312
+ "ref": 324
1279
1313
  },
1280
1314
  {
1281
1315
  "properties": {
1282
- "orderCase": 323
1316
+ "orderCase": 325
1283
1317
  }
1284
1318
  },
1285
1319
  {
1286
- "ref": 94
1320
+ "ref": 95
1287
1321
  },
1288
1322
  {
1289
- "ref": 98
1323
+ "ref": 99
1290
1324
  },
1291
1325
  {
1292
- "items": 326
1326
+ "items": 328
1293
1327
  },
1294
1328
  {
1295
- "ref": 81
1329
+ "ref": 82
1296
1330
  },
1297
1331
  {
1298
1332
  "ref": 6
@@ -1300,100 +1334,100 @@ var responsePublicityNodes = [
1300
1334
  {
1301
1335
  "ref": 6
1302
1336
  },
1303
- {
1304
- "items": 330
1305
- },
1306
- {
1307
- "ref": 34
1308
- },
1309
1337
  {
1310
1338
  "items": 332
1311
1339
  },
1312
1340
  {
1313
- "ref": 34
1341
+ "ref": 35
1314
1342
  },
1315
1343
  {
1316
- "ref": 34
1344
+ "items": 334
1317
1345
  },
1318
1346
  {
1319
- "items": 335
1347
+ "ref": 35
1320
1348
  },
1321
1349
  {
1322
- "ref": 34
1350
+ "ref": 35
1323
1351
  },
1324
1352
  {
1325
- "ref": 34
1353
+ "items": 337
1326
1354
  },
1327
1355
  {
1328
- "items": 338
1356
+ "ref": 35
1329
1357
  },
1330
1358
  {
1331
- "ref": 6
1359
+ "ref": 35
1332
1360
  },
1333
1361
  {
1334
1362
  "items": 340
1335
1363
  },
1336
1364
  {
1337
- "ref": 25
1365
+ "ref": 6
1338
1366
  },
1339
1367
  {
1340
1368
  "items": 342
1341
1369
  },
1342
1370
  {
1343
- "ref": 16
1371
+ "ref": 26
1344
1372
  },
1345
1373
  {
1346
1374
  "items": 344
1347
1375
  },
1348
1376
  {
1349
- "ref": 22
1377
+ "ref": 16
1350
1378
  },
1351
1379
  {
1352
1380
  "items": 346
1353
1381
  },
1354
1382
  {
1355
- "ref": 28
1383
+ "ref": 22
1356
1384
  },
1357
1385
  {
1358
1386
  "items": 348
1359
1387
  },
1360
1388
  {
1361
- "ref": 25
1389
+ "ref": 29
1362
1390
  },
1363
1391
  {
1364
1392
  "items": 350
1365
1393
  },
1366
1394
  {
1367
- "ref": 34
1395
+ "ref": 26
1368
1396
  },
1369
1397
  {
1370
1398
  "items": 352
1371
1399
  },
1372
1400
  {
1373
- "ref": 31
1401
+ "ref": 35
1402
+ },
1403
+ {
1404
+ "items": 354
1405
+ },
1406
+ {
1407
+ "ref": 32
1374
1408
  },
1375
1409
  {
1376
- "ref": 354
1410
+ "ref": 356
1377
1411
  },
1378
1412
  {
1379
1413
  "properties": {
1380
- "publicityType": 355
1414
+ "publicityType": 357
1381
1415
  }
1382
1416
  },
1383
1417
  {
1384
1418
  "publicity": true
1385
1419
  },
1386
1420
  {
1387
- "ref": 354
1421
+ "ref": 356
1388
1422
  },
1389
1423
  {
1390
- "ref": 354
1424
+ "ref": 356
1391
1425
  },
1392
1426
  {
1393
- "items": 359
1427
+ "items": 361
1394
1428
  },
1395
1429
  {
1396
- "ref": 68
1430
+ "ref": 69
1397
1431
  },
1398
1432
  {
1399
1433
  "ref": 6
@@ -1402,117 +1436,117 @@ var responsePublicityNodes = [
1402
1436
  "ref": 6
1403
1437
  },
1404
1438
  {
1405
- "items": 363
1439
+ "items": 365
1406
1440
  },
1407
1441
  {
1408
- "ref": 74
1442
+ "ref": 75
1409
1443
  },
1410
1444
  {
1411
- "items": 365
1445
+ "items": 367
1412
1446
  },
1413
1447
  {
1414
1448
  "ref": 6
1415
1449
  },
1416
1450
  {
1417
- "items": 367
1451
+ "items": 369
1418
1452
  },
1419
1453
  {
1420
- "ref": 354
1454
+ "ref": 356
1421
1455
  },
1422
1456
  {
1423
- "ref": 94
1457
+ "ref": 95
1424
1458
  },
1425
1459
  {
1426
- "ref": 94
1460
+ "ref": 95
1427
1461
  },
1428
1462
  {
1429
- "ref": 94
1463
+ "ref": 95
1430
1464
  },
1431
1465
  {
1432
- "ref": 94
1466
+ "ref": 95
1433
1467
  },
1434
1468
  {
1435
- "ref": 94
1469
+ "ref": 95
1436
1470
  },
1437
1471
  {
1438
- "ref": 374
1472
+ "ref": 376
1439
1473
  },
1440
1474
  {
1441
1475
  "properties": {
1442
- "workloadInfoList": 375
1476
+ "workloadInfoList": 377
1443
1477
  }
1444
1478
  },
1445
1479
  {
1446
- "items": 376
1480
+ "items": 378
1447
1481
  },
1448
1482
  {
1449
- "ref": 377
1483
+ "ref": 379
1450
1484
  },
1451
1485
  {
1452
1486
  "properties": {
1453
- "item": 378,
1454
- "timetable": 379
1487
+ "item": 380,
1488
+ "timetable": 381
1455
1489
  }
1456
1490
  },
1457
1491
  {
1458
1492
  "ref": 6
1459
1493
  },
1460
1494
  {
1461
- "items": 380
1495
+ "items": 382
1462
1496
  },
1463
1497
  {
1464
- "ref": 81
1498
+ "ref": 82
1465
1499
  },
1466
1500
  {
1467
- "ref": 354
1501
+ "ref": 356
1468
1502
  },
1469
1503
  {
1470
- "items": 383
1504
+ "items": 385
1471
1505
  },
1472
1506
  {
1473
- "ref": 81
1507
+ "ref": 82
1474
1508
  },
1475
1509
  {
1476
- "ref": 385
1510
+ "ref": 387
1477
1511
  },
1478
1512
  {
1479
1513
  "properties": {
1480
- "serviceResources": 386
1514
+ "serviceResources": 388
1481
1515
  }
1482
1516
  },
1483
1517
  {
1484
- "items": 387
1518
+ "items": 389
1485
1519
  },
1486
1520
  {
1487
- "ref": 34
1521
+ "ref": 35
1488
1522
  },
1489
1523
  {
1490
- "items": 389
1524
+ "items": 391
1491
1525
  },
1492
1526
  {
1493
- "ref": 34
1527
+ "ref": 35
1494
1528
  },
1495
1529
  {
1496
- "ref": 391
1530
+ "ref": 393
1497
1531
  },
1498
1532
  {
1499
1533
  "properties": {
1500
- "order": 392,
1501
- "personalInfo": 393,
1502
- "publicityType": 394
1534
+ "order": 394,
1535
+ "personalInfo": 395,
1536
+ "publicityType": 396
1503
1537
  }
1504
1538
  },
1505
1539
  {
1506
- "ref": 94
1540
+ "ref": 95
1507
1541
  },
1508
1542
  {
1509
- "ref": 96
1543
+ "ref": 97
1510
1544
  },
1511
1545
  {
1512
1546
  "publicity": true
1513
1547
  },
1514
1548
  {
1515
- "ref": 94
1549
+ "ref": 95
1516
1550
  },
1517
1551
  {
1518
1552
  "ref": 6
@@ -1521,95 +1555,95 @@ var responsePublicityNodes = [
1521
1555
  "ref": 6
1522
1556
  },
1523
1557
  {
1524
- "items": 399
1558
+ "items": 401
1525
1559
  },
1526
1560
  {
1527
- "ref": 31
1561
+ "ref": 32
1528
1562
  },
1529
1563
  {
1530
- "items": 401
1564
+ "items": 403
1531
1565
  },
1532
1566
  {
1533
- "ref": 31
1567
+ "ref": 32
1534
1568
  },
1535
1569
  {
1536
- "ref": 31
1570
+ "ref": 32
1537
1571
  },
1538
1572
  {
1539
- "items": 404
1573
+ "items": 406
1540
1574
  },
1541
1575
  {
1542
- "ref": 31
1576
+ "ref": 32
1543
1577
  },
1544
1578
  {
1545
- "ref": 31
1579
+ "ref": 32
1546
1580
  },
1547
1581
  {
1548
- "ref": 230
1582
+ "ref": 231
1549
1583
  },
1550
1584
  {
1551
- "ref": 408
1585
+ "ref": 410
1552
1586
  },
1553
1587
  {
1554
1588
  "properties": {
1555
- "profileList": 409
1589
+ "profileList": 411
1556
1590
  }
1557
1591
  },
1558
1592
  {
1559
- "items": 410
1593
+ "items": 412
1560
1594
  },
1561
1595
  {
1562
- "ref": 147
1596
+ "ref": 148
1563
1597
  },
1564
1598
  {
1565
- "ref": 412
1599
+ "ref": 414
1566
1600
  },
1567
1601
  {
1568
1602
  "properties": {
1569
- "profile": 413,
1570
- "personalContactList": 414
1603
+ "profile": 415,
1604
+ "personalContactList": 416
1571
1605
  }
1572
1606
  },
1573
1607
  {
1574
- "ref": 147
1608
+ "ref": 148
1575
1609
  },
1576
1610
  {
1577
- "items": 415
1611
+ "items": 417
1578
1612
  },
1579
1613
  {
1580
- "ref": 147
1614
+ "ref": 148
1581
1615
  },
1582
1616
  {
1583
- "ref": 412
1617
+ "ref": 414
1584
1618
  },
1585
1619
  {
1586
- "ref": 147
1620
+ "ref": 148
1587
1621
  },
1588
1622
  {
1589
- "ref": 412
1623
+ "ref": 414
1590
1624
  },
1591
1625
  {
1592
- "ref": 412
1626
+ "ref": 414
1593
1627
  },
1594
1628
  {
1595
- "ref": 421
1629
+ "ref": 423
1596
1630
  },
1597
1631
  {
1598
1632
  "properties": {
1599
- "personalContactList": 422
1633
+ "personalContactList": 424
1600
1634
  }
1601
1635
  },
1602
1636
  {
1603
- "items": 423
1637
+ "items": 425
1604
1638
  },
1605
1639
  {
1606
- "ref": 147
1640
+ "ref": 148
1607
1641
  },
1608
1642
  {
1609
- "items": 425
1643
+ "items": 427
1610
1644
  },
1611
1645
  {
1612
- "ref": 81
1646
+ "ref": 82
1613
1647
  }
1614
1648
  ];
1615
1649
  var responsePublicityRoutes = [
@@ -1625,14 +1659,16 @@ var responsePublicityRoutes = [
1625
1659
  "path": "/api/v1/actionhistory",
1626
1660
  "responses": {
1627
1661
  "200": 12
1628
- }
1662
+ },
1663
+ "noteData": true
1629
1664
  },
1630
1665
  {
1631
1666
  "method": "GET",
1632
1667
  "path": "/api/v1/announcements",
1633
1668
  "responses": {
1634
- "200": 45
1635
- }
1669
+ "200": 46
1670
+ },
1671
+ "noteData": true
1636
1672
  },
1637
1673
  {
1638
1674
  "method": "POST",
@@ -1708,14 +1744,14 @@ var responsePublicityRoutes = [
1708
1744
  "method": "POST",
1709
1745
  "path": "/api/v1/calendars",
1710
1746
  "responses": {
1711
- "200": 59
1747
+ "200": 60
1712
1748
  }
1713
1749
  },
1714
1750
  {
1715
1751
  "method": "GET",
1716
1752
  "path": "/api/v1/calendars/personallist",
1717
1753
  "responses": {
1718
- "200": 64
1754
+ "200": 65
1719
1755
  }
1720
1756
  },
1721
1757
  {
@@ -1750,28 +1786,28 @@ var responsePublicityRoutes = [
1750
1786
  "method": "GET",
1751
1787
  "path": "/api/v1/calendars/views/user",
1752
1788
  "responses": {
1753
- "200": 87
1789
+ "200": 88
1754
1790
  }
1755
1791
  },
1756
1792
  {
1757
1793
  "method": "PUT",
1758
1794
  "path": "/api/v1/cases",
1759
1795
  "responses": {
1760
- "200": 93
1796
+ "200": 94
1761
1797
  }
1762
1798
  },
1763
1799
  {
1764
1800
  "method": "POST",
1765
1801
  "path": "/api/v1/cases",
1766
1802
  "responses": {
1767
- "200": 104
1803
+ "200": 105
1768
1804
  }
1769
1805
  },
1770
1806
  {
1771
1807
  "method": "GET",
1772
1808
  "path": "/api/v1/cases/personallist",
1773
1809
  "responses": {
1774
- "200": 107
1810
+ "200": 108
1775
1811
  }
1776
1812
  },
1777
1813
  {
@@ -1799,7 +1835,7 @@ var responsePublicityRoutes = [
1799
1835
  "method": "GET",
1800
1836
  "path": "/api/v1/cases/views/user",
1801
1837
  "responses": {
1802
- "200": 140
1838
+ "200": 141
1803
1839
  }
1804
1840
  },
1805
1841
  {
@@ -1820,14 +1856,14 @@ var responsePublicityRoutes = [
1820
1856
  "method": "POST",
1821
1857
  "path": "/api/v1/contacts",
1822
1858
  "responses": {
1823
- "200": 146
1859
+ "200": 147
1824
1860
  }
1825
1861
  },
1826
1862
  {
1827
1863
  "method": "GET",
1828
1864
  "path": "/api/v1/contacts/personallist",
1829
1865
  "responses": {
1830
- "200": 152
1866
+ "200": 153
1831
1867
  }
1832
1868
  },
1833
1869
  {
@@ -1869,14 +1905,14 @@ var responsePublicityRoutes = [
1869
1905
  "method": "GET",
1870
1906
  "path": "/api/v1/contacts/views/user",
1871
1907
  "responses": {
1872
- "200": 169
1908
+ "200": 170
1873
1909
  }
1874
1910
  },
1875
1911
  {
1876
1912
  "method": "POST",
1877
1913
  "path": "/api/v1/contexts",
1878
1914
  "responses": {
1879
- "200": 175
1915
+ "200": 176
1880
1916
  }
1881
1917
  },
1882
1918
  {
@@ -1897,7 +1933,7 @@ var responsePublicityRoutes = [
1897
1933
  "method": "GET",
1898
1934
  "path": "/api/v1/contexts/personallist",
1899
1935
  "responses": {
1900
- "200": 188
1936
+ "200": 189
1901
1937
  }
1902
1938
  },
1903
1939
  {
@@ -1911,28 +1947,28 @@ var responsePublicityRoutes = [
1911
1947
  "method": "GET",
1912
1948
  "path": "/api/v1/contexts/views/user",
1913
1949
  "responses": {
1914
- "200": 195
1950
+ "200": 196
1915
1951
  }
1916
1952
  },
1917
1953
  {
1918
1954
  "method": "POST",
1919
1955
  "path": "/api/v1/export",
1920
1956
  "responses": {
1921
- "200": 201
1957
+ "200": 202
1922
1958
  }
1923
1959
  },
1924
1960
  {
1925
1961
  "method": "POST",
1926
1962
  "path": "/api/v1/import",
1927
1963
  "responses": {
1928
- "200": 211
1964
+ "200": 212
1929
1965
  }
1930
1966
  },
1931
1967
  {
1932
1968
  "method": "POST",
1933
1969
  "path": "/api/v1/importbyuniquename",
1934
1970
  "responses": {
1935
- "200": 212
1971
+ "200": 213
1936
1972
  }
1937
1973
  },
1938
1974
  {
@@ -1967,7 +2003,7 @@ var responsePublicityRoutes = [
1967
2003
  "method": "GET",
1968
2004
  "path": "/api/v1/loyaltycards/personallist",
1969
2005
  "responses": {
1970
- "200": 233
2006
+ "200": 234
1971
2007
  }
1972
2008
  },
1973
2009
  {
@@ -2002,14 +2038,14 @@ var responsePublicityRoutes = [
2002
2038
  "method": "GET",
2003
2039
  "path": "/api/v1/loyaltycards/views/user",
2004
2040
  "responses": {
2005
- "200": 248
2041
+ "200": 249
2006
2042
  }
2007
2043
  },
2008
2044
  {
2009
2045
  "method": "POST",
2010
2046
  "path": "/api/v1/loyaltysystems",
2011
2047
  "responses": {
2012
- "200": 254
2048
+ "200": 255
2013
2049
  }
2014
2050
  },
2015
2051
  {
@@ -2023,7 +2059,7 @@ var responsePublicityRoutes = [
2023
2059
  "method": "GET",
2024
2060
  "path": "/api/v1/loyaltysystems/personallist",
2025
2061
  "responses": {
2026
- "200": 260
2062
+ "200": 261
2027
2063
  }
2028
2064
  },
2029
2065
  {
@@ -2051,22 +2087,24 @@ var responsePublicityRoutes = [
2051
2087
  "method": "GET",
2052
2088
  "path": "/api/v1/loyaltysystems/views/user",
2053
2089
  "responses": {
2054
- "200": 273
2090
+ "200": 274
2055
2091
  }
2056
2092
  },
2057
2093
  {
2058
2094
  "method": "POST",
2059
2095
  "path": "/api/v1/notes",
2060
2096
  "responses": {
2061
- "200": 279
2062
- }
2097
+ "200": 280
2098
+ },
2099
+ "noteData": true
2063
2100
  },
2064
2101
  {
2065
2102
  "method": "GET",
2066
2103
  "path": "/api/v1/notes/personallist",
2067
2104
  "responses": {
2068
- "200": 284
2069
- }
2105
+ "200": 286
2106
+ },
2107
+ "noteData": true
2070
2108
  },
2071
2109
  {
2072
2110
  "method": "PUT",
@@ -2093,8 +2131,9 @@ var responsePublicityRoutes = [
2093
2131
  "method": "GET",
2094
2132
  "path": "/api/v1/notes/views/user",
2095
2133
  "responses": {
2096
- "200": 299
2097
- }
2134
+ "200": 301
2135
+ },
2136
+ "noteData": true
2098
2137
  },
2099
2138
  {
2100
2139
  "method": "POST",
@@ -2107,14 +2146,14 @@ var responsePublicityRoutes = [
2107
2146
  "method": "POST",
2108
2147
  "path": "/api/v1/resources",
2109
2148
  "responses": {
2110
- "200": 305
2149
+ "200": 307
2111
2150
  }
2112
2151
  },
2113
2152
  {
2114
2153
  "method": "GET",
2115
2154
  "path": "/api/v1/resources/personallist",
2116
2155
  "responses": {
2117
- "200": 308
2156
+ "200": 310
2118
2157
  }
2119
2158
  },
2120
2159
  {
@@ -2149,63 +2188,64 @@ var responsePublicityRoutes = [
2149
2188
  "method": "GET",
2150
2189
  "path": "/api/v1/resources/views/user",
2151
2190
  "responses": {
2152
- "200": 331
2191
+ "200": 333
2153
2192
  }
2154
2193
  },
2155
2194
  {
2156
2195
  "method": "GET",
2157
2196
  "path": "/api/v1/search/adviseditems",
2158
2197
  "responses": {
2159
- "200": 337
2198
+ "200": 339
2160
2199
  }
2161
2200
  },
2162
2201
  {
2163
2202
  "method": "GET",
2164
2203
  "path": "/api/v1/search/contacts",
2165
2204
  "responses": {
2166
- "200": 341
2205
+ "200": 343
2167
2206
  }
2168
2207
  },
2169
2208
  {
2170
2209
  "method": "GET",
2171
2210
  "path": "/api/v1/search/notes",
2172
2211
  "responses": {
2173
- "200": 343
2174
- }
2212
+ "200": 345
2213
+ },
2214
+ "noteData": true
2175
2215
  },
2176
2216
  {
2177
2217
  "method": "GET",
2178
2218
  "path": "/api/v1/search/calendars",
2179
2219
  "responses": {
2180
- "200": 345
2220
+ "200": 347
2181
2221
  }
2182
2222
  },
2183
2223
  {
2184
2224
  "method": "GET",
2185
2225
  "path": "/api/v1/search/cases",
2186
2226
  "responses": {
2187
- "200": 347
2227
+ "200": 349
2188
2228
  }
2189
2229
  },
2190
2230
  {
2191
2231
  "method": "GET",
2192
2232
  "path": "/api/v1/search/resources",
2193
2233
  "responses": {
2194
- "200": 349
2234
+ "200": 351
2195
2235
  }
2196
2236
  },
2197
2237
  {
2198
2238
  "method": "GET",
2199
2239
  "path": "/api/v1/search/services",
2200
2240
  "responses": {
2201
- "200": 351
2241
+ "200": 353
2202
2242
  }
2203
2243
  },
2204
2244
  {
2205
2245
  "method": "POST",
2206
2246
  "path": "/api/v1/services",
2207
2247
  "responses": {
2208
- "200": 353
2248
+ "200": 355
2209
2249
  }
2210
2250
  },
2211
2251
  {
@@ -2226,7 +2266,7 @@ var responsePublicityRoutes = [
2226
2266
  "method": "GET",
2227
2267
  "path": "/api/v1/services/personallist",
2228
2268
  "responses": {
2229
- "200": 366
2269
+ "200": 368
2230
2270
  }
2231
2271
  },
2232
2272
  {
@@ -2240,7 +2280,7 @@ var responsePublicityRoutes = [
2240
2280
  "method": "PUT",
2241
2281
  "path": "/api/v1/services/workloadinfo",
2242
2282
  "responses": {
2243
- "200": 373
2283
+ "200": 375
2244
2284
  }
2245
2285
  },
2246
2286
  {
@@ -2254,7 +2294,7 @@ var responsePublicityRoutes = [
2254
2294
  "method": "GET",
2255
2295
  "path": "/api/v1/services/views/user",
2256
2296
  "responses": {
2257
- "200": 400
2297
+ "200": 402
2258
2298
  }
2259
2299
  },
2260
2300
  {
@@ -2275,7 +2315,7 @@ var responsePublicityRoutes = [
2275
2315
  "method": "GET",
2276
2316
  "path": "/api/v1/user/loyaltycard",
2277
2317
  "responses": {
2278
- "200": 406
2318
+ "200": 408
2279
2319
  }
2280
2320
  },
2281
2321
  {
@@ -2303,21 +2343,21 @@ var responsePublicityRoutes = [
2303
2343
  "method": "GET",
2304
2344
  "path": "/api/v1/user/profiles",
2305
2345
  "responses": {
2306
- "200": 407
2346
+ "200": 409
2307
2347
  }
2308
2348
  },
2309
2349
  {
2310
2350
  "method": "PUT",
2311
2351
  "path": "/api/v1/user/profiles",
2312
2352
  "responses": {
2313
- "200": 411
2353
+ "200": 413
2314
2354
  }
2315
2355
  },
2316
2356
  {
2317
2357
  "method": "POST",
2318
2358
  "path": "/api/v1/user/profiles",
2319
2359
  "responses": {
2320
- "200": 416
2360
+ "200": 418
2321
2361
  }
2322
2362
  },
2323
2363
  {
@@ -2338,21 +2378,21 @@ var responsePublicityRoutes = [
2338
2378
  "method": "GET",
2339
2379
  "path": "/api/v1/user/defaultprofile",
2340
2380
  "responses": {
2341
- "200": 417
2381
+ "200": 419
2342
2382
  }
2343
2383
  },
2344
2384
  {
2345
2385
  "method": "POST",
2346
2386
  "path": "/api/v1/user/defaultprofile",
2347
2387
  "responses": {
2348
- "200": 418
2388
+ "200": 420
2349
2389
  }
2350
2390
  },
2351
2391
  {
2352
2392
  "method": "PUT",
2353
2393
  "path": "/api/v1/user/defaultprofile",
2354
2394
  "responses": {
2355
- "200": 419
2395
+ "200": 421
2356
2396
  }
2357
2397
  },
2358
2398
  {
@@ -2394,7 +2434,7 @@ var responsePublicityRoutes = [
2394
2434
  "method": "PUT",
2395
2435
  "path": "/api/v1/user/timetable",
2396
2436
  "responses": {
2397
- "200": 424
2437
+ "200": 426
2398
2438
  }
2399
2439
  },
2400
2440
  {
@@ -2506,7 +2546,7 @@ var responsePublicityRoutes = [
2506
2546
  "method": "PUT",
2507
2547
  "path": "/api/v1/calendars/{torrowId}",
2508
2548
  "responses": {
2509
- "200": 62
2549
+ "200": 63
2510
2550
  }
2511
2551
  },
2512
2552
  {
@@ -2520,7 +2560,7 @@ var responsePublicityRoutes = [
2520
2560
  "method": "GET",
2521
2561
  "path": "/api/v1/calendars/{torrowId}",
2522
2562
  "responses": {
2523
- "200": 63
2563
+ "200": 64
2524
2564
  }
2525
2565
  },
2526
2566
  {
@@ -2597,7 +2637,7 @@ var responsePublicityRoutes = [
2597
2637
  "method": "GET",
2598
2638
  "path": "/api/v1/calendars/{torrowId}/participants",
2599
2639
  "responses": {
2600
- "200": 66
2640
+ "200": 67
2601
2641
  }
2602
2642
  },
2603
2643
  {
@@ -2639,14 +2679,14 @@ var responsePublicityRoutes = [
2639
2679
  "method": "PUT",
2640
2680
  "path": "/api/v1/calendars/{torrowId}/group/set",
2641
2681
  "responses": {
2642
- "200": 70
2682
+ "200": 71
2643
2683
  }
2644
2684
  },
2645
2685
  {
2646
2686
  "method": "PUT",
2647
2687
  "path": "/api/v1/calendars/{torrowId}/group/unset",
2648
2688
  "responses": {
2649
- "200": 71
2689
+ "200": 72
2650
2690
  }
2651
2691
  },
2652
2692
  {
@@ -2667,14 +2707,14 @@ var responsePublicityRoutes = [
2667
2707
  "method": "GET",
2668
2708
  "path": "/api/v1/calendars/{torrowId}/groups",
2669
2709
  "responses": {
2670
- "200": 72
2710
+ "200": 73
2671
2711
  }
2672
2712
  },
2673
2713
  {
2674
2714
  "method": "GET",
2675
2715
  "path": "/api/v1/calendars/{torrowId}/group/list",
2676
2716
  "responses": {
2677
- "200": 76
2717
+ "200": 77
2678
2718
  }
2679
2719
  },
2680
2720
  {
@@ -2877,35 +2917,35 @@ var responsePublicityRoutes = [
2877
2917
  "method": "GET",
2878
2918
  "path": "/api/v1/calendars/uniquename/{uniquename}",
2879
2919
  "responses": {
2880
- "200": 78
2920
+ "200": 79
2881
2921
  }
2882
2922
  },
2883
2923
  {
2884
2924
  "method": "PUT",
2885
2925
  "path": "/api/v1/calendars/{torrowId}/timetable",
2886
2926
  "responses": {
2887
- "200": 79
2927
+ "200": 80
2888
2928
  }
2889
2929
  },
2890
2930
  {
2891
2931
  "method": "POST",
2892
2932
  "path": "/api/v1/calendars/{itemId}/block",
2893
2933
  "responses": {
2894
- "200": 83
2934
+ "200": 84
2895
2935
  }
2896
2936
  },
2897
2937
  {
2898
2938
  "method": "POST",
2899
2939
  "path": "/api/v1/calendars/{itemId}/unblock",
2900
2940
  "responses": {
2901
- "200": 84
2941
+ "200": 85
2902
2942
  }
2903
2943
  },
2904
2944
  {
2905
2945
  "method": "GET",
2906
2946
  "path": "/api/v1/calendars/{parentId}/views/user",
2907
2947
  "responses": {
2908
- "200": 85
2948
+ "200": 86
2909
2949
  }
2910
2950
  },
2911
2951
  {
@@ -2926,7 +2966,7 @@ var responsePublicityRoutes = [
2926
2966
  "method": "GET",
2927
2967
  "path": "/api/v1/calendars/{parentId}/views/pinned",
2928
2968
  "responses": {
2929
- "200": 90
2969
+ "200": 91
2930
2970
  }
2931
2971
  },
2932
2972
  {
@@ -2947,7 +2987,7 @@ var responsePublicityRoutes = [
2947
2987
  "method": "PUT",
2948
2988
  "path": "/api/v1/cases/{torrowId}",
2949
2989
  "responses": {
2950
- "200": 105
2990
+ "200": 106
2951
2991
  }
2952
2992
  },
2953
2993
  {
@@ -2961,7 +3001,7 @@ var responsePublicityRoutes = [
2961
3001
  "method": "GET",
2962
3002
  "path": "/api/v1/cases/{torrowId}",
2963
3003
  "responses": {
2964
- "200": 106
3004
+ "200": 107
2965
3005
  }
2966
3006
  },
2967
3007
  {
@@ -3031,7 +3071,7 @@ var responsePublicityRoutes = [
3031
3071
  "method": "GET",
3032
3072
  "path": "/api/v1/cases/{torrowId}/participants",
3033
3073
  "responses": {
3034
- "200": 109
3074
+ "200": 110
3035
3075
  }
3036
3076
  },
3037
3077
  {
@@ -3073,14 +3113,14 @@ var responsePublicityRoutes = [
3073
3113
  "method": "PUT",
3074
3114
  "path": "/api/v1/cases/{torrowId}/group/set",
3075
3115
  "responses": {
3076
- "200": 111
3116
+ "200": 112
3077
3117
  }
3078
3118
  },
3079
3119
  {
3080
3120
  "method": "PUT",
3081
3121
  "path": "/api/v1/cases/{torrowId}/group/unset",
3082
3122
  "responses": {
3083
- "200": 112
3123
+ "200": 113
3084
3124
  }
3085
3125
  },
3086
3126
  {
@@ -3101,14 +3141,14 @@ var responsePublicityRoutes = [
3101
3141
  "method": "GET",
3102
3142
  "path": "/api/v1/cases/{torrowId}/groups",
3103
3143
  "responses": {
3104
- "200": 113
3144
+ "200": 114
3105
3145
  }
3106
3146
  },
3107
3147
  {
3108
3148
  "method": "GET",
3109
3149
  "path": "/api/v1/cases/{torrowId}/group/list",
3110
3150
  "responses": {
3111
- "200": 115
3151
+ "200": 116
3112
3152
  }
3113
3153
  },
3114
3154
  {
@@ -3346,49 +3386,49 @@ var responsePublicityRoutes = [
3346
3386
  "method": "POST",
3347
3387
  "path": "/api/v1/cases/{torrowId}/reject",
3348
3388
  "responses": {
3349
- "200": 117
3389
+ "200": 118
3350
3390
  }
3351
3391
  },
3352
3392
  {
3353
3393
  "method": "POST",
3354
3394
  "path": "/api/v1/cases/{torrowId}/declinework",
3355
3395
  "responses": {
3356
- "200": 118
3396
+ "200": 119
3357
3397
  }
3358
3398
  },
3359
3399
  {
3360
3400
  "method": "POST",
3361
3401
  "path": "/api/v1/cases/{torrowId}/plan",
3362
3402
  "responses": {
3363
- "200": 119
3403
+ "200": 120
3364
3404
  }
3365
3405
  },
3366
3406
  {
3367
3407
  "method": "POST",
3368
3408
  "path": "/api/v1/cases/{torrowId}/takeinwork",
3369
3409
  "responses": {
3370
- "200": 120
3410
+ "200": 121
3371
3411
  }
3372
3412
  },
3373
3413
  {
3374
3414
  "method": "POST",
3375
3415
  "path": "/api/v1/cases/{torrowId}/complete",
3376
3416
  "responses": {
3377
- "200": 121
3417
+ "200": 122
3378
3418
  }
3379
3419
  },
3380
3420
  {
3381
3421
  "method": "POST",
3382
3422
  "path": "/api/v1/cases/{torrowId}/accept",
3383
3423
  "responses": {
3384
- "200": 122
3424
+ "200": 123
3385
3425
  }
3386
3426
  },
3387
3427
  {
3388
3428
  "method": "POST",
3389
3429
  "path": "/api/v1/cases/{torrowId}/returntoverification",
3390
3430
  "responses": {
3391
- "200": 123
3431
+ "200": 124
3392
3432
  }
3393
3433
  },
3394
3434
  {
@@ -3409,21 +3449,21 @@ var responsePublicityRoutes = [
3409
3449
  "method": "GET",
3410
3450
  "path": "/api/v1/cases/uniquename/{uniqueName}",
3411
3451
  "responses": {
3412
- "200": 124
3452
+ "200": 125
3413
3453
  }
3414
3454
  },
3415
3455
  {
3416
3456
  "method": "GET",
3417
3457
  "path": "/api/v1/cases/{torrowId}/resources",
3418
3458
  "responses": {
3419
- "200": 125
3459
+ "200": 126
3420
3460
  }
3421
3461
  },
3422
3462
  {
3423
3463
  "method": "POST",
3424
3464
  "path": "/api/v1/cases/{torrowId}/cancel",
3425
3465
  "responses": {
3426
- "200": 127
3466
+ "200": 128
3427
3467
  }
3428
3468
  },
3429
3469
  {
@@ -3451,7 +3491,7 @@ var responsePublicityRoutes = [
3451
3491
  "method": "GET",
3452
3492
  "path": "/api/v1/cases/{torrowId}/caseparticipants",
3453
3493
  "responses": {
3454
- "200": 128
3494
+ "200": 129
3455
3495
  }
3456
3496
  },
3457
3497
  {
@@ -3465,28 +3505,28 @@ var responsePublicityRoutes = [
3465
3505
  "method": "POST",
3466
3506
  "path": "/api/v1/cases/{torrowId}/patch",
3467
3507
  "responses": {
3468
- "200": 135
3508
+ "200": 136
3469
3509
  }
3470
3510
  },
3471
3511
  {
3472
3512
  "method": "POST",
3473
3513
  "path": "/api/v1/cases/{itemId}/block",
3474
3514
  "responses": {
3475
- "200": 136
3515
+ "200": 137
3476
3516
  }
3477
3517
  },
3478
3518
  {
3479
3519
  "method": "POST",
3480
3520
  "path": "/api/v1/cases/{itemId}/unblock",
3481
3521
  "responses": {
3482
- "200": 137
3522
+ "200": 138
3483
3523
  }
3484
3524
  },
3485
3525
  {
3486
3526
  "method": "GET",
3487
3527
  "path": "/api/v1/cases/{parentId}/views/user",
3488
3528
  "responses": {
3489
- "200": 138
3529
+ "200": 139
3490
3530
  }
3491
3531
  },
3492
3532
  {
@@ -3507,7 +3547,7 @@ var responsePublicityRoutes = [
3507
3547
  "method": "GET",
3508
3548
  "path": "/api/v1/cases/{parentId}/views/pinned",
3509
3549
  "responses": {
3510
- "200": 143
3550
+ "200": 144
3511
3551
  }
3512
3552
  },
3513
3553
  {
@@ -3528,7 +3568,7 @@ var responsePublicityRoutes = [
3528
3568
  "method": "PUT",
3529
3569
  "path": "/api/v1/contacts/{torrowId}",
3530
3570
  "responses": {
3531
- "200": 150
3571
+ "200": 151
3532
3572
  }
3533
3573
  },
3534
3574
  {
@@ -3542,7 +3582,7 @@ var responsePublicityRoutes = [
3542
3582
  "method": "GET",
3543
3583
  "path": "/api/v1/contacts/{torrowId}",
3544
3584
  "responses": {
3545
- "200": 151
3585
+ "200": 152
3546
3586
  }
3547
3587
  },
3548
3588
  {
@@ -3605,7 +3645,7 @@ var responsePublicityRoutes = [
3605
3645
  "method": "GET",
3606
3646
  "path": "/api/v1/contacts/{torrowId}/participants",
3607
3647
  "responses": {
3608
- "200": 154
3648
+ "200": 155
3609
3649
  }
3610
3650
  },
3611
3651
  {
@@ -3654,14 +3694,14 @@ var responsePublicityRoutes = [
3654
3694
  "method": "PUT",
3655
3695
  "path": "/api/v1/contacts/{torrowId}/group/set",
3656
3696
  "responses": {
3657
- "200": 156
3697
+ "200": 157
3658
3698
  }
3659
3699
  },
3660
3700
  {
3661
3701
  "method": "PUT",
3662
3702
  "path": "/api/v1/contacts/{torrowId}/group/unset",
3663
3703
  "responses": {
3664
- "200": 157
3704
+ "200": 158
3665
3705
  }
3666
3706
  },
3667
3707
  {
@@ -3682,14 +3722,14 @@ var responsePublicityRoutes = [
3682
3722
  "method": "GET",
3683
3723
  "path": "/api/v1/contacts/{torrowId}/groups",
3684
3724
  "responses": {
3685
- "200": 158
3725
+ "200": 159
3686
3726
  }
3687
3727
  },
3688
3728
  {
3689
3729
  "method": "GET",
3690
3730
  "path": "/api/v1/contacts/{torrowId}/group/list",
3691
3731
  "responses": {
3692
- "200": 160
3732
+ "200": 161
3693
3733
  }
3694
3734
  },
3695
3735
  {
@@ -3885,14 +3925,14 @@ var responsePublicityRoutes = [
3885
3925
  "method": "GET",
3886
3926
  "path": "/api/v1/contacts/uniquename/{uniquename}",
3887
3927
  "responses": {
3888
- "200": 162
3928
+ "200": 163
3889
3929
  }
3890
3930
  },
3891
3931
  {
3892
3932
  "method": "PUT",
3893
3933
  "path": "/api/v1/contacts/{torrowId}/timetable",
3894
3934
  "responses": {
3895
- "200": 163
3935
+ "200": 164
3896
3936
  }
3897
3937
  },
3898
3938
  {
@@ -3913,21 +3953,21 @@ var responsePublicityRoutes = [
3913
3953
  "method": "POST",
3914
3954
  "path": "/api/v1/contacts/{itemId}/block",
3915
3955
  "responses": {
3916
- "200": 165
3956
+ "200": 166
3917
3957
  }
3918
3958
  },
3919
3959
  {
3920
3960
  "method": "POST",
3921
3961
  "path": "/api/v1/contacts/{itemId}/unblock",
3922
3962
  "responses": {
3923
- "200": 166
3963
+ "200": 167
3924
3964
  }
3925
3965
  },
3926
3966
  {
3927
3967
  "method": "GET",
3928
3968
  "path": "/api/v1/contacts/{parentId}/views/user",
3929
3969
  "responses": {
3930
- "200": 167
3970
+ "200": 168
3931
3971
  }
3932
3972
  },
3933
3973
  {
@@ -3948,7 +3988,7 @@ var responsePublicityRoutes = [
3948
3988
  "method": "GET",
3949
3989
  "path": "/api/v1/contacts/{parentId}/views/pinned",
3950
3990
  "responses": {
3951
- "200": 172
3991
+ "200": 173
3952
3992
  }
3953
3993
  },
3954
3994
  {
@@ -3969,7 +4009,7 @@ var responsePublicityRoutes = [
3969
4009
  "method": "PUT",
3970
4010
  "path": "/api/v1/contexts/{torrowId}",
3971
4011
  "responses": {
3972
- "200": 178
4012
+ "200": 179
3973
4013
  }
3974
4014
  },
3975
4015
  {
@@ -3983,7 +4023,7 @@ var responsePublicityRoutes = [
3983
4023
  "method": "GET",
3984
4024
  "path": "/api/v1/contexts/{torrowId}",
3985
4025
  "responses": {
3986
- "200": 179
4026
+ "200": 180
3987
4027
  }
3988
4028
  },
3989
4029
  {
@@ -4060,7 +4100,7 @@ var responsePublicityRoutes = [
4060
4100
  "method": "GET",
4061
4101
  "path": "/api/v1/contexts/{torrowId}/participants",
4062
4102
  "responses": {
4063
- "200": 180
4103
+ "200": 181
4064
4104
  }
4065
4105
  },
4066
4106
  {
@@ -4102,14 +4142,14 @@ var responsePublicityRoutes = [
4102
4142
  "method": "PUT",
4103
4143
  "path": "/api/v1/contexts/{torrowId}/group/set",
4104
4144
  "responses": {
4105
- "200": 182
4145
+ "200": 183
4106
4146
  }
4107
4147
  },
4108
4148
  {
4109
4149
  "method": "PUT",
4110
4150
  "path": "/api/v1/contexts/{torrowId}/group/unset",
4111
4151
  "responses": {
4112
- "200": 183
4152
+ "200": 184
4113
4153
  }
4114
4154
  },
4115
4155
  {
@@ -4130,14 +4170,14 @@ var responsePublicityRoutes = [
4130
4170
  "method": "GET",
4131
4171
  "path": "/api/v1/contexts/{torrowId}/groups",
4132
4172
  "responses": {
4133
- "200": 184
4173
+ "200": 185
4134
4174
  }
4135
4175
  },
4136
4176
  {
4137
4177
  "method": "GET",
4138
4178
  "path": "/api/v1/contexts/{torrowId}/group/list",
4139
4179
  "responses": {
4140
- "200": 186
4180
+ "200": 187
4141
4181
  }
4142
4182
  },
4143
4183
  {
@@ -4312,28 +4352,28 @@ var responsePublicityRoutes = [
4312
4352
  "method": "GET",
4313
4353
  "path": "/api/v1/contexts/uniquename/{uniquename}",
4314
4354
  "responses": {
4315
- "200": 190
4355
+ "200": 191
4316
4356
  }
4317
4357
  },
4318
4358
  {
4319
4359
  "method": "POST",
4320
4360
  "path": "/api/v1/contexts/{itemId}/block",
4321
4361
  "responses": {
4322
- "200": 191
4362
+ "200": 192
4323
4363
  }
4324
4364
  },
4325
4365
  {
4326
4366
  "method": "POST",
4327
4367
  "path": "/api/v1/contexts/{itemId}/unblock",
4328
4368
  "responses": {
4329
- "200": 192
4369
+ "200": 193
4330
4370
  }
4331
4371
  },
4332
4372
  {
4333
4373
  "method": "GET",
4334
4374
  "path": "/api/v1/contexts/{parentId}/views/user",
4335
4375
  "responses": {
4336
- "200": 193
4376
+ "200": 194
4337
4377
  }
4338
4378
  },
4339
4379
  {
@@ -4354,7 +4394,7 @@ var responsePublicityRoutes = [
4354
4394
  "method": "GET",
4355
4395
  "path": "/api/v1/contexts/{parentId}/views/pinned",
4356
4396
  "responses": {
4357
- "200": 198
4397
+ "200": 199
4358
4398
  }
4359
4399
  },
4360
4400
  {
@@ -4417,14 +4457,14 @@ var responsePublicityRoutes = [
4417
4457
  "method": "PUT",
4418
4458
  "path": "/api/v1/item/{torrowId}/userfeedback",
4419
4459
  "responses": {
4420
- "200": 213
4460
+ "200": 214
4421
4461
  }
4422
4462
  },
4423
4463
  {
4424
4464
  "method": "GET",
4425
4465
  "path": "/api/v1/item/{torrowId}/userfeedback",
4426
4466
  "responses": {
4427
- "200": 220
4467
+ "200": 221
4428
4468
  }
4429
4469
  },
4430
4470
  {
@@ -4438,7 +4478,7 @@ var responsePublicityRoutes = [
4438
4478
  "method": "POST",
4439
4479
  "path": "/api/v1/item/{torrowId}/feedbacks/newmessage",
4440
4480
  "responses": {
4441
- "200": 221
4481
+ "200": 222
4442
4482
  }
4443
4483
  },
4444
4484
  {
@@ -4452,7 +4492,7 @@ var responsePublicityRoutes = [
4452
4492
  "method": "GET",
4453
4493
  "path": "/api/v1/item/{torrowId}/feedbacks",
4454
4494
  "responses": {
4455
- "200": 225
4495
+ "200": 226
4456
4496
  }
4457
4497
  },
4458
4498
  {
@@ -4466,7 +4506,7 @@ var responsePublicityRoutes = [
4466
4506
  "method": "PUT",
4467
4507
  "path": "/api/v1/loyaltycards/{torrowId}",
4468
4508
  "responses": {
4469
- "200": 229
4509
+ "200": 230
4470
4510
  }
4471
4511
  },
4472
4512
  {
@@ -4480,7 +4520,7 @@ var responsePublicityRoutes = [
4480
4520
  "method": "GET",
4481
4521
  "path": "/api/v1/loyaltycards/{torrowId}",
4482
4522
  "responses": {
4483
- "200": 232
4523
+ "200": 233
4484
4524
  }
4485
4525
  },
4486
4526
  {
@@ -4578,7 +4618,7 @@ var responsePublicityRoutes = [
4578
4618
  "method": "PUT",
4579
4619
  "path": "/api/v1/loyaltycards/{torrowId}/timetable",
4580
4620
  "responses": {
4581
- "200": 235
4621
+ "200": 236
4582
4622
  }
4583
4623
  },
4584
4624
  {
@@ -4592,7 +4632,7 @@ var responsePublicityRoutes = [
4592
4632
  "method": "GET",
4593
4633
  "path": "/api/v1/loyaltycards/{torrowId}/participants",
4594
4634
  "responses": {
4595
- "200": 237
4635
+ "200": 238
4596
4636
  }
4597
4637
  },
4598
4638
  {
@@ -4620,14 +4660,14 @@ var responsePublicityRoutes = [
4620
4660
  "method": "PUT",
4621
4661
  "path": "/api/v1/loyaltycards/{torrowId}/group/set",
4622
4662
  "responses": {
4623
- "200": 239
4663
+ "200": 240
4624
4664
  }
4625
4665
  },
4626
4666
  {
4627
4667
  "method": "PUT",
4628
4668
  "path": "/api/v1/loyaltycards/{torrowId}/group/unset",
4629
4669
  "responses": {
4630
- "200": 240
4670
+ "200": 241
4631
4671
  }
4632
4672
  },
4633
4673
  {
@@ -4753,7 +4793,7 @@ var responsePublicityRoutes = [
4753
4793
  "method": "GET",
4754
4794
  "path": "/api/v1/loyaltycards/{torrowId}/transactions",
4755
4795
  "responses": {
4756
- "200": 241
4796
+ "200": 242
4757
4797
  }
4758
4798
  },
4759
4799
  {
@@ -4767,14 +4807,14 @@ var responsePublicityRoutes = [
4767
4807
  "method": "GET",
4768
4808
  "path": "/api/v1/loyaltycards/uniquename/{uniqueName}",
4769
4809
  "responses": {
4770
- "200": 245
4810
+ "200": 246
4771
4811
  }
4772
4812
  },
4773
4813
  {
4774
4814
  "method": "GET",
4775
4815
  "path": "/api/v1/loyaltycards/{parentId}/views/user",
4776
4816
  "responses": {
4777
- "200": 246
4817
+ "200": 247
4778
4818
  }
4779
4819
  },
4780
4820
  {
@@ -4795,7 +4835,7 @@ var responsePublicityRoutes = [
4795
4835
  "method": "GET",
4796
4836
  "path": "/api/v1/loyaltycards/{parentId}/views/pinned",
4797
4837
  "responses": {
4798
- "200": 251
4838
+ "200": 252
4799
4839
  }
4800
4840
  },
4801
4841
  {
@@ -4816,14 +4856,14 @@ var responsePublicityRoutes = [
4816
4856
  "method": "POST",
4817
4857
  "path": "/api/v1/loyaltysystems/{loyaltySystemId}/loyaltycard",
4818
4858
  "responses": {
4819
- "200": 257
4859
+ "200": 258
4820
4860
  }
4821
4861
  },
4822
4862
  {
4823
4863
  "method": "PUT",
4824
4864
  "path": "/api/v1/loyaltysystems/{torrowId}",
4825
4865
  "responses": {
4826
- "200": 258
4866
+ "200": 259
4827
4867
  }
4828
4868
  },
4829
4869
  {
@@ -4837,7 +4877,7 @@ var responsePublicityRoutes = [
4837
4877
  "method": "GET",
4838
4878
  "path": "/api/v1/loyaltysystems/{torrowId}",
4839
4879
  "responses": {
4840
- "200": 259
4880
+ "200": 260
4841
4881
  }
4842
4882
  },
4843
4883
  {
@@ -4935,7 +4975,7 @@ var responsePublicityRoutes = [
4935
4975
  "method": "GET",
4936
4976
  "path": "/api/v1/loyaltysystems/{torrowId}/participants",
4937
4977
  "responses": {
4938
- "200": 262
4978
+ "200": 263
4939
4979
  }
4940
4980
  },
4941
4981
  {
@@ -4956,14 +4996,14 @@ var responsePublicityRoutes = [
4956
4996
  "method": "PUT",
4957
4997
  "path": "/api/v1/loyaltysystems/{torrowId}/group/set",
4958
4998
  "responses": {
4959
- "200": 264
4999
+ "200": 265
4960
5000
  }
4961
5001
  },
4962
5002
  {
4963
5003
  "method": "PUT",
4964
5004
  "path": "/api/v1/loyaltysystems/{torrowId}/group/unset",
4965
5005
  "responses": {
4966
- "200": 265
5006
+ "200": 266
4967
5007
  }
4968
5008
  },
4969
5009
  {
@@ -4977,7 +5017,7 @@ var responsePublicityRoutes = [
4977
5017
  "method": "GET",
4978
5018
  "path": "/api/v1/loyaltysystems/{torrowId}/group/list",
4979
5019
  "responses": {
4980
- "200": 266
5020
+ "200": 267
4981
5021
  }
4982
5022
  },
4983
5023
  {
@@ -5103,21 +5143,21 @@ var responsePublicityRoutes = [
5103
5143
  "method": "GET",
5104
5144
  "path": "/api/v1/loyaltysystems/uniquename/{uniqueName}",
5105
5145
  "responses": {
5106
- "200": 268
5146
+ "200": 269
5107
5147
  }
5108
5148
  },
5109
5149
  {
5110
5150
  "method": "POST",
5111
5151
  "path": "/api/v1/loyaltysystems/{torrowId}/loyaltycards",
5112
5152
  "responses": {
5113
- "200": 269
5153
+ "200": 270
5114
5154
  }
5115
5155
  },
5116
5156
  {
5117
5157
  "method": "GET",
5118
5158
  "path": "/api/v1/loyaltysystems/{parentId}/views/user",
5119
5159
  "responses": {
5120
- "200": 271
5160
+ "200": 272
5121
5161
  }
5122
5162
  },
5123
5163
  {
@@ -5138,7 +5178,7 @@ var responsePublicityRoutes = [
5138
5178
  "method": "GET",
5139
5179
  "path": "/api/v1/loyaltysystems/{parentId}/views/pinned",
5140
5180
  "responses": {
5141
- "200": 276
5181
+ "200": 277
5142
5182
  }
5143
5183
  },
5144
5184
  {
@@ -5159,8 +5199,9 @@ var responsePublicityRoutes = [
5159
5199
  "method": "PUT",
5160
5200
  "path": "/api/v1/notes/{torrowId}",
5161
5201
  "responses": {
5162
- "200": 282
5163
- }
5202
+ "200": 284
5203
+ },
5204
+ "noteData": true
5164
5205
  },
5165
5206
  {
5166
5207
  "method": "DELETE",
@@ -5173,8 +5214,9 @@ var responsePublicityRoutes = [
5173
5214
  "method": "GET",
5174
5215
  "path": "/api/v1/notes/{torrowId}",
5175
5216
  "responses": {
5176
- "200": 283
5177
- }
5217
+ "200": 285
5218
+ },
5219
+ "noteData": true
5178
5220
  },
5179
5221
  {
5180
5222
  "method": "PUT",
@@ -5257,7 +5299,7 @@ var responsePublicityRoutes = [
5257
5299
  "method": "GET",
5258
5300
  "path": "/api/v1/notes/{torrowId}/participants",
5259
5301
  "responses": {
5260
- "200": 286
5302
+ "200": 288
5261
5303
  }
5262
5304
  },
5263
5305
  {
@@ -5299,14 +5341,14 @@ var responsePublicityRoutes = [
5299
5341
  "method": "PUT",
5300
5342
  "path": "/api/v1/notes/{torrowId}/group/set",
5301
5343
  "responses": {
5302
- "200": 288
5344
+ "200": 290
5303
5345
  }
5304
5346
  },
5305
5347
  {
5306
5348
  "method": "PUT",
5307
5349
  "path": "/api/v1/notes/{torrowId}/group/unset",
5308
5350
  "responses": {
5309
- "200": 289
5351
+ "200": 291
5310
5352
  }
5311
5353
  },
5312
5354
  {
@@ -5327,14 +5369,14 @@ var responsePublicityRoutes = [
5327
5369
  "method": "GET",
5328
5370
  "path": "/api/v1/notes/{torrowId}/groups",
5329
5371
  "responses": {
5330
- "200": 290
5372
+ "200": 292
5331
5373
  }
5332
5374
  },
5333
5375
  {
5334
5376
  "method": "GET",
5335
5377
  "path": "/api/v1/notes/{torrowId}/group/list",
5336
5378
  "responses": {
5337
- "200": 292
5379
+ "200": 294
5338
5380
  }
5339
5381
  },
5340
5382
  {
@@ -5516,29 +5558,31 @@ var responsePublicityRoutes = [
5516
5558
  "method": "GET",
5517
5559
  "path": "/api/v1/notes/uniquename/{uniquename}",
5518
5560
  "responses": {
5519
- "200": 294
5520
- }
5561
+ "200": 296
5562
+ },
5563
+ "noteData": true
5521
5564
  },
5522
5565
  {
5523
5566
  "method": "POST",
5524
5567
  "path": "/api/v1/notes/{itemId}/block",
5525
5568
  "responses": {
5526
- "200": 295
5569
+ "200": 297
5527
5570
  }
5528
5571
  },
5529
5572
  {
5530
5573
  "method": "POST",
5531
5574
  "path": "/api/v1/notes/{itemId}/unblock",
5532
5575
  "responses": {
5533
- "200": 296
5576
+ "200": 298
5534
5577
  }
5535
5578
  },
5536
5579
  {
5537
5580
  "method": "GET",
5538
5581
  "path": "/api/v1/notes/{parentId}/views/user",
5539
5582
  "responses": {
5540
- "200": 297
5541
- }
5583
+ "200": 299
5584
+ },
5585
+ "noteData": true
5542
5586
  },
5543
5587
  {
5544
5588
  "method": "POST",
@@ -5558,8 +5602,9 @@ var responsePublicityRoutes = [
5558
5602
  "method": "GET",
5559
5603
  "path": "/api/v1/notes/{parentId}/views/pinned",
5560
5604
  "responses": {
5561
- "200": 302
5562
- }
5605
+ "200": 304
5606
+ },
5607
+ "noteData": true
5563
5608
  },
5564
5609
  {
5565
5610
  "method": "POST",
@@ -5586,7 +5631,7 @@ var responsePublicityRoutes = [
5586
5631
  "method": "PUT",
5587
5632
  "path": "/api/v1/resources/{torrowId}",
5588
5633
  "responses": {
5589
- "200": 306
5634
+ "200": 308
5590
5635
  }
5591
5636
  },
5592
5637
  {
@@ -5600,7 +5645,7 @@ var responsePublicityRoutes = [
5600
5645
  "method": "GET",
5601
5646
  "path": "/api/v1/resources/{torrowId}",
5602
5647
  "responses": {
5603
- "200": 307
5648
+ "200": 309
5604
5649
  }
5605
5650
  },
5606
5651
  {
@@ -5670,7 +5715,7 @@ var responsePublicityRoutes = [
5670
5715
  "method": "GET",
5671
5716
  "path": "/api/v1/resources/{torrowId}/participants",
5672
5717
  "responses": {
5673
- "200": 310
5718
+ "200": 312
5674
5719
  }
5675
5720
  },
5676
5721
  {
@@ -5712,14 +5757,14 @@ var responsePublicityRoutes = [
5712
5757
  "method": "PUT",
5713
5758
  "path": "/api/v1/resources/{torrowId}/group/set",
5714
5759
  "responses": {
5715
- "200": 312
5760
+ "200": 314
5716
5761
  }
5717
5762
  },
5718
5763
  {
5719
5764
  "method": "PUT",
5720
5765
  "path": "/api/v1/resources/{torrowId}/group/unset",
5721
5766
  "responses": {
5722
- "200": 313
5767
+ "200": 315
5723
5768
  }
5724
5769
  },
5725
5770
  {
@@ -5740,7 +5785,7 @@ var responsePublicityRoutes = [
5740
5785
  "method": "GET",
5741
5786
  "path": "/api/v1/resources/{torrowId}/groups",
5742
5787
  "responses": {
5743
- "200": 314
5788
+ "200": 316
5744
5789
  }
5745
5790
  },
5746
5791
  {
@@ -5754,7 +5799,7 @@ var responsePublicityRoutes = [
5754
5799
  "method": "GET",
5755
5800
  "path": "/api/v1/resources/{torrowId}/group/list",
5756
5801
  "responses": {
5757
- "200": 316
5802
+ "200": 318
5758
5803
  }
5759
5804
  },
5760
5805
  {
@@ -5929,14 +5974,14 @@ var responsePublicityRoutes = [
5929
5974
  "method": "POST",
5930
5975
  "path": "/api/v1/resources/{resourceId}/pickorder",
5931
5976
  "responses": {
5932
- "200": 318
5977
+ "200": 320
5933
5978
  }
5934
5979
  },
5935
5980
  {
5936
5981
  "method": "POST",
5937
5982
  "path": "/api/v1/resources/{resourceId}/returnorder",
5938
5983
  "responses": {
5939
- "200": 321
5984
+ "200": 323
5940
5985
  }
5941
5986
  },
5942
5987
  {
@@ -5950,35 +5995,35 @@ var responsePublicityRoutes = [
5950
5995
  "method": "GET",
5951
5996
  "path": "/api/v1/resources/uniquename/{uniquename}",
5952
5997
  "responses": {
5953
- "200": 324
5998
+ "200": 326
5954
5999
  }
5955
6000
  },
5956
6001
  {
5957
6002
  "method": "PUT",
5958
6003
  "path": "/api/v1/resources/{torrowId}/timetable",
5959
6004
  "responses": {
5960
- "200": 325
6005
+ "200": 327
5961
6006
  }
5962
6007
  },
5963
6008
  {
5964
6009
  "method": "POST",
5965
6010
  "path": "/api/v1/resources/{itemId}/block",
5966
6011
  "responses": {
5967
- "200": 327
6012
+ "200": 329
5968
6013
  }
5969
6014
  },
5970
6015
  {
5971
6016
  "method": "POST",
5972
6017
  "path": "/api/v1/resources/{itemId}/unblock",
5973
6018
  "responses": {
5974
- "200": 328
6019
+ "200": 330
5975
6020
  }
5976
6021
  },
5977
6022
  {
5978
6023
  "method": "GET",
5979
6024
  "path": "/api/v1/resources/{parentId}/views/user",
5980
6025
  "responses": {
5981
- "200": 329
6026
+ "200": 331
5982
6027
  }
5983
6028
  },
5984
6029
  {
@@ -5999,7 +6044,7 @@ var responsePublicityRoutes = [
5999
6044
  "method": "GET",
6000
6045
  "path": "/api/v1/resources/{parentId}/views/pinned",
6001
6046
  "responses": {
6002
- "200": 334
6047
+ "200": 336
6003
6048
  }
6004
6049
  },
6005
6050
  {
@@ -6020,14 +6065,14 @@ var responsePublicityRoutes = [
6020
6065
  "method": "PUT",
6021
6066
  "path": "/api/v1/search/{torrowId}/orders",
6022
6067
  "responses": {
6023
- "200": 339
6068
+ "200": 341
6024
6069
  }
6025
6070
  },
6026
6071
  {
6027
6072
  "method": "PUT",
6028
6073
  "path": "/api/v1/services/{torrowId}",
6029
6074
  "responses": {
6030
- "200": 356
6075
+ "200": 358
6031
6076
  }
6032
6077
  },
6033
6078
  {
@@ -6041,7 +6086,7 @@ var responsePublicityRoutes = [
6041
6086
  "method": "GET",
6042
6087
  "path": "/api/v1/services/{torrowId}",
6043
6088
  "responses": {
6044
- "200": 357
6089
+ "200": 359
6045
6090
  }
6046
6091
  },
6047
6092
  {
@@ -6111,7 +6156,7 @@ var responsePublicityRoutes = [
6111
6156
  "method": "GET",
6112
6157
  "path": "/api/v1/services/{torrowId}/participants",
6113
6158
  "responses": {
6114
- "200": 358
6159
+ "200": 360
6115
6160
  }
6116
6161
  },
6117
6162
  {
@@ -6153,14 +6198,14 @@ var responsePublicityRoutes = [
6153
6198
  "method": "PUT",
6154
6199
  "path": "/api/v1/services/{torrowId}/group/set",
6155
6200
  "responses": {
6156
- "200": 360
6201
+ "200": 362
6157
6202
  }
6158
6203
  },
6159
6204
  {
6160
6205
  "method": "PUT",
6161
6206
  "path": "/api/v1/services/{torrowId}/group/unset",
6162
6207
  "responses": {
6163
- "200": 361
6208
+ "200": 363
6164
6209
  }
6165
6210
  },
6166
6211
  {
@@ -6181,14 +6226,14 @@ var responsePublicityRoutes = [
6181
6226
  "method": "GET",
6182
6227
  "path": "/api/v1/services/{torrowId}/groups",
6183
6228
  "responses": {
6184
- "200": 362
6229
+ "200": 364
6185
6230
  }
6186
6231
  },
6187
6232
  {
6188
6233
  "method": "GET",
6189
6234
  "path": "/api/v1/services/{torrowId}/group/list",
6190
6235
  "responses": {
6191
- "200": 364
6236
+ "200": 366
6192
6237
  }
6193
6238
  },
6194
6239
  {
@@ -6300,14 +6345,14 @@ var responsePublicityRoutes = [
6300
6345
  "method": "POST",
6301
6346
  "path": "/api/v1/services/{serviceId}/session",
6302
6347
  "responses": {
6303
- "200": 368
6348
+ "200": 370
6304
6349
  }
6305
6350
  },
6306
6351
  {
6307
6352
  "method": "PUT",
6308
6353
  "path": "/api/v1/services/{serviceId}/session",
6309
6354
  "responses": {
6310
- "200": 369
6355
+ "200": 371
6311
6356
  }
6312
6357
  },
6313
6358
  {
@@ -6370,21 +6415,21 @@ var responsePublicityRoutes = [
6370
6415
  "method": "PATCH",
6371
6416
  "path": "/api/v1/services/{serviceId}/updateorder",
6372
6417
  "responses": {
6373
- "200": 370
6418
+ "200": 372
6374
6419
  }
6375
6420
  },
6376
6421
  {
6377
6422
  "method": "PATCH",
6378
6423
  "path": "/api/v1/services/{serviceId}/updateorder2",
6379
6424
  "responses": {
6380
- "200": 371
6425
+ "200": 373
6381
6426
  }
6382
6427
  },
6383
6428
  {
6384
6429
  "method": "PUT",
6385
6430
  "path": "/api/v1/services/{serviceId}/changeorderservice",
6386
6431
  "responses": {
6387
- "200": 372
6432
+ "200": 374
6388
6433
  }
6389
6434
  },
6390
6435
  {
@@ -6405,7 +6450,7 @@ var responsePublicityRoutes = [
6405
6450
  "method": "GET",
6406
6451
  "path": "/api/v1/services/uniquename/{uniqueName}",
6407
6452
  "responses": {
6408
- "200": 381
6453
+ "200": 383
6409
6454
  }
6410
6455
  },
6411
6456
  {
@@ -6426,56 +6471,56 @@ var responsePublicityRoutes = [
6426
6471
  "method": "PUT",
6427
6472
  "path": "/api/v1/services/{torrowId}/timetable",
6428
6473
  "responses": {
6429
- "200": 382
6474
+ "200": 384
6430
6475
  }
6431
6476
  },
6432
6477
  {
6433
6478
  "method": "POST",
6434
6479
  "path": "/api/v1/services/{torrowId}/resourceswithdetalization",
6435
6480
  "responses": {
6436
- "200": 384
6481
+ "200": 386
6437
6482
  }
6438
6483
  },
6439
6484
  {
6440
6485
  "method": "POST",
6441
6486
  "path": "/api/v1/services/{torrowId}/resources",
6442
6487
  "responses": {
6443
- "200": 388
6488
+ "200": 390
6444
6489
  }
6445
6490
  },
6446
6491
  {
6447
6492
  "method": "POST",
6448
6493
  "path": "/api/v1/services/{serviceId}/order",
6449
6494
  "responses": {
6450
- "200": 390
6495
+ "200": 392
6451
6496
  }
6452
6497
  },
6453
6498
  {
6454
6499
  "method": "PATCH",
6455
6500
  "path": "/api/v1/services/{serviceId}/updateorderinfo",
6456
6501
  "responses": {
6457
- "200": 395
6502
+ "200": 397
6458
6503
  }
6459
6504
  },
6460
6505
  {
6461
6506
  "method": "POST",
6462
6507
  "path": "/api/v1/services/{itemId}/block",
6463
6508
  "responses": {
6464
- "200": 396
6509
+ "200": 398
6465
6510
  }
6466
6511
  },
6467
6512
  {
6468
6513
  "method": "POST",
6469
6514
  "path": "/api/v1/services/{itemId}/unblock",
6470
6515
  "responses": {
6471
- "200": 397
6516
+ "200": 399
6472
6517
  }
6473
6518
  },
6474
6519
  {
6475
6520
  "method": "GET",
6476
6521
  "path": "/api/v1/services/{parentId}/views/user",
6477
6522
  "responses": {
6478
- "200": 398
6523
+ "200": 400
6479
6524
  }
6480
6525
  },
6481
6526
  {
@@ -6496,7 +6541,7 @@ var responsePublicityRoutes = [
6496
6541
  "method": "GET",
6497
6542
  "path": "/api/v1/services/{parentId}/views/pinned",
6498
6543
  "responses": {
6499
- "200": 403
6544
+ "200": 405
6500
6545
  }
6501
6546
  },
6502
6547
  {
@@ -6557,7 +6602,7 @@ var responsePublicityRoutes = [
6557
6602
  "method": "DELETE",
6558
6603
  "path": "/api/v1/user/profiles/{profileId}",
6559
6604
  "responses": {
6560
- "200": 420
6605
+ "200": 422
6561
6606
  }
6562
6607
  },
6563
6608
  {
@@ -6571,7 +6616,7 @@ var responsePublicityRoutes = [
6571
6616
  "method": "GET",
6572
6617
  "path": "/api/v1/calendars/{parentId}/views/user/{childId}",
6573
6618
  "responses": {
6574
- "200": 89
6619
+ "200": 90
6575
6620
  }
6576
6621
  },
6577
6622
  {
@@ -6592,7 +6637,7 @@ var responsePublicityRoutes = [
6592
6637
  "method": "GET",
6593
6638
  "path": "/api/v1/calendars/{parentId}/views/pinned/{childId}",
6594
6639
  "responses": {
6595
- "200": 92
6640
+ "200": 93
6596
6641
  }
6597
6642
  },
6598
6643
  {
@@ -6627,7 +6672,7 @@ var responsePublicityRoutes = [
6627
6672
  "method": "GET",
6628
6673
  "path": "/api/v1/cases/{torrowId}/caseparticipants/{caseParticipantId}",
6629
6674
  "responses": {
6630
- "200": 134
6675
+ "200": 135
6631
6676
  }
6632
6677
  },
6633
6678
  {
@@ -6641,7 +6686,7 @@ var responsePublicityRoutes = [
6641
6686
  "method": "GET",
6642
6687
  "path": "/api/v1/cases/{parentId}/views/user/{childId}",
6643
6688
  "responses": {
6644
- "200": 142
6689
+ "200": 143
6645
6690
  }
6646
6691
  },
6647
6692
  {
@@ -6662,7 +6707,7 @@ var responsePublicityRoutes = [
6662
6707
  "method": "GET",
6663
6708
  "path": "/api/v1/cases/{parentId}/views/pinned/{childId}",
6664
6709
  "responses": {
6665
- "200": 145
6710
+ "200": 146
6666
6711
  }
6667
6712
  },
6668
6713
  {
@@ -6690,7 +6735,7 @@ var responsePublicityRoutes = [
6690
6735
  "method": "GET",
6691
6736
  "path": "/api/v1/contacts/{parentId}/views/user/{childId}",
6692
6737
  "responses": {
6693
- "200": 171
6738
+ "200": 172
6694
6739
  }
6695
6740
  },
6696
6741
  {
@@ -6711,7 +6756,7 @@ var responsePublicityRoutes = [
6711
6756
  "method": "GET",
6712
6757
  "path": "/api/v1/contacts/{parentId}/views/pinned/{childId}",
6713
6758
  "responses": {
6714
- "200": 174
6759
+ "200": 175
6715
6760
  }
6716
6761
  },
6717
6762
  {
@@ -6739,7 +6784,7 @@ var responsePublicityRoutes = [
6739
6784
  "method": "GET",
6740
6785
  "path": "/api/v1/contexts/{parentId}/views/user/{childId}",
6741
6786
  "responses": {
6742
- "200": 197
6787
+ "200": 198
6743
6788
  }
6744
6789
  },
6745
6790
  {
@@ -6760,7 +6805,7 @@ var responsePublicityRoutes = [
6760
6805
  "method": "GET",
6761
6806
  "path": "/api/v1/contexts/{parentId}/views/pinned/{childId}",
6762
6807
  "responses": {
6763
- "200": 200
6808
+ "200": 201
6764
6809
  }
6765
6810
  },
6766
6811
  {
@@ -6781,14 +6826,14 @@ var responsePublicityRoutes = [
6781
6826
  "method": "POST",
6782
6827
  "path": "/api/v1/item/{torrowId}/feedbacks/{messageId}/reply",
6783
6828
  "responses": {
6784
- "200": 222
6829
+ "200": 223
6785
6830
  }
6786
6831
  },
6787
6832
  {
6788
6833
  "method": "PUT",
6789
6834
  "path": "/api/v1/item/{torrowId}/feedbacks/{messageId}",
6790
6835
  "responses": {
6791
- "200": 223
6836
+ "200": 224
6792
6837
  }
6793
6838
  },
6794
6839
  {
@@ -6802,14 +6847,14 @@ var responsePublicityRoutes = [
6802
6847
  "method": "GET",
6803
6848
  "path": "/api/v1/item/{torrowId}/feedbacks/{messageId}",
6804
6849
  "responses": {
6805
- "200": 224
6850
+ "200": 225
6806
6851
  }
6807
6852
  },
6808
6853
  {
6809
6854
  "method": "GET",
6810
6855
  "path": "/api/v1/item/{torrowId}/feedbacks/{messageId}/replies",
6811
6856
  "responses": {
6812
- "200": 227
6857
+ "200": 228
6813
6858
  }
6814
6859
  },
6815
6860
  {
@@ -6830,14 +6875,14 @@ var responsePublicityRoutes = [
6830
6875
  "method": "GET",
6831
6876
  "path": "/api/v1/loyaltycards/{torrowId}/subscriptions/{subscriptionId}/transactions",
6832
6877
  "responses": {
6833
- "200": 243
6878
+ "200": 244
6834
6879
  }
6835
6880
  },
6836
6881
  {
6837
6882
  "method": "GET",
6838
6883
  "path": "/api/v1/loyaltycards/{parentId}/views/user/{childId}",
6839
6884
  "responses": {
6840
- "200": 250
6885
+ "200": 251
6841
6886
  }
6842
6887
  },
6843
6888
  {
@@ -6858,7 +6903,7 @@ var responsePublicityRoutes = [
6858
6903
  "method": "GET",
6859
6904
  "path": "/api/v1/loyaltycards/{parentId}/views/pinned/{childId}",
6860
6905
  "responses": {
6861
- "200": 253
6906
+ "200": 254
6862
6907
  }
6863
6908
  },
6864
6909
  {
@@ -6886,7 +6931,7 @@ var responsePublicityRoutes = [
6886
6931
  "method": "GET",
6887
6932
  "path": "/api/v1/loyaltysystems/{parentId}/views/user/{childId}",
6888
6933
  "responses": {
6889
- "200": 275
6934
+ "200": 276
6890
6935
  }
6891
6936
  },
6892
6937
  {
@@ -6907,7 +6952,7 @@ var responsePublicityRoutes = [
6907
6952
  "method": "GET",
6908
6953
  "path": "/api/v1/loyaltysystems/{parentId}/views/pinned/{childId}",
6909
6954
  "responses": {
6910
- "200": 278
6955
+ "200": 279
6911
6956
  }
6912
6957
  },
6913
6958
  {
@@ -6935,8 +6980,9 @@ var responsePublicityRoutes = [
6935
6980
  "method": "GET",
6936
6981
  "path": "/api/v1/notes/{parentId}/views/user/{childId}",
6937
6982
  "responses": {
6938
- "200": 301
6939
- }
6983
+ "200": 303
6984
+ },
6985
+ "noteData": true
6940
6986
  },
6941
6987
  {
6942
6988
  "method": "DELETE",
@@ -6956,8 +7002,9 @@ var responsePublicityRoutes = [
6956
7002
  "method": "GET",
6957
7003
  "path": "/api/v1/notes/{parentId}/views/pinned/{childId}",
6958
7004
  "responses": {
6959
- "200": 304
6960
- }
7005
+ "200": 306
7006
+ },
7007
+ "noteData": true
6961
7008
  },
6962
7009
  {
6963
7010
  "method": "POST",
@@ -6984,7 +7031,7 @@ var responsePublicityRoutes = [
6984
7031
  "method": "GET",
6985
7032
  "path": "/api/v1/resources/{parentId}/views/user/{childId}",
6986
7033
  "responses": {
6987
- "200": 333
7034
+ "200": 335
6988
7035
  }
6989
7036
  },
6990
7037
  {
@@ -7005,7 +7052,7 @@ var responsePublicityRoutes = [
7005
7052
  "method": "GET",
7006
7053
  "path": "/api/v1/resources/{parentId}/views/pinned/{childId}",
7007
7054
  "responses": {
7008
- "200": 336
7055
+ "200": 338
7009
7056
  }
7010
7057
  },
7011
7058
  {
@@ -7033,7 +7080,7 @@ var responsePublicityRoutes = [
7033
7080
  "method": "GET",
7034
7081
  "path": "/api/v1/services/{parentId}/views/user/{childId}",
7035
7082
  "responses": {
7036
- "200": 402
7083
+ "200": 404
7037
7084
  }
7038
7085
  },
7039
7086
  {
@@ -7054,7 +7101,7 @@ var responsePublicityRoutes = [
7054
7101
  "method": "GET",
7055
7102
  "path": "/api/v1/services/{parentId}/views/pinned/{childId}",
7056
7103
  "responses": {
7057
- "200": 405
7104
+ "200": 407
7058
7105
  }
7059
7106
  },
7060
7107
  {
@@ -7073,6 +7120,24 @@ var responsePublicityRoutes = [
7073
7120
  }
7074
7121
  ];
7075
7122
 
7123
+ // ../../src/resources/notes/types.ts
7124
+ var NoteTypeValues = /* @__PURE__ */ ((NoteTypeValues2) => {
7125
+ NoteTypeValues2["Html"] = "Html";
7126
+ NoteTypeValues2["Markdown"] = "Markdown";
7127
+ NoteTypeValues2["Text"] = "Text";
7128
+ return NoteTypeValues2;
7129
+ })(NoteTypeValues || {});
7130
+ var ImagePreviewSizeValues = {
7131
+ Undefined: "Undefined",
7132
+ Hidden: "Hidden",
7133
+ Small: "Small",
7134
+ Medium: "Medium",
7135
+ Large: "Large",
7136
+ SmallSlider: "SmallSlider",
7137
+ MediumSlider: "MediumSlider",
7138
+ LargeSlider: "LargeSlider"
7139
+ };
7140
+
7076
7141
  // ../../src/schema/response-dates.generated.ts
7077
7142
  var responseDateNodes = [
7078
7143
  {},
@@ -8905,7 +8970,7 @@ function parseOperationResponse(json, method, path, status) {
8905
8970
  if (json === "") {
8906
8971
  return void 0;
8907
8972
  }
8908
- const segments = path.split("?")[0].split("/");
8973
+ const segments = (path.startsWith("/") ? path : `/${path}`).split("?")[0].split("/");
8909
8974
  const route = routes.find(
8910
8975
  (candidate) => candidate.method === method && candidate.segments.length === segments.length && candidate.segments.every(
8911
8976
  (segment, i) => segment.startsWith("{") ? segments[i] !== "" : segment === segments[i]
@@ -8925,12 +8990,13 @@ function parseOperationResponse(json, method, path, status) {
8925
8990
  value,
8926
8991
  responsePublicityNodes,
8927
8992
  publicityRoute?.responses[String(status)] ?? publicityRoute?.responses["2XX"] ?? 0,
8928
- true
8993
+ true,
8994
+ (!route || route.legacy) && publicityRoute?.noteData ? JSON.parse(json) : void 0
8929
8995
  );
8930
8996
  }
8931
- function reviveDeclaredDates(value, nodes, root, publicity = false) {
8997
+ function reviveDeclaredDates(value, nodes, root, publicity = false, original) {
8932
8998
  const holder = { value };
8933
- function collect(parent, key, id, path, active) {
8999
+ function collect(parent, key, id, path, active, source) {
8934
9000
  const result = /* @__PURE__ */ new Map();
8935
9001
  const current = parent[key];
8936
9002
  const node = nodes[id];
@@ -8939,6 +9005,13 @@ function reviveDeclaredDates(value, nodes, root, publicity = false) {
8939
9005
  }
8940
9006
  const next = new Set(active).add(id);
8941
9007
  const merge = (entries) => entries.forEach((entry, name) => result.set(name, entry));
9008
+ if (publicity && node.noteData && source && typeof source === "object" && Object.hasOwn(source, "data") && typeof current === "object" && !Array.isArray(current)) {
9009
+ result.set(`${path}/data`, {
9010
+ parent: current,
9011
+ key: "data",
9012
+ value: source.data
9013
+ });
9014
+ }
8942
9015
  if (publicity && node.publicity && (current === "Private" /* Private */ || current === "Undefined" /* Undefined */)) {
8943
9016
  result.set(path, { parent, key, value: "Personal" /* Personal */ });
8944
9017
  }
@@ -8948,14 +9021,18 @@ function reviveDeclaredDates(value, nodes, root, publicity = false) {
8948
9021
  result.set(path, { parent, key, value: date2 });
8949
9022
  }
8950
9023
  }
9024
+ const noteType = typeof source === "string" ? source : current;
9025
+ if (publicity && node.noteType && typeof noteType === "string" && noteType !== "Html" /* Html */ && noteType !== "Markdown" /* Markdown */ && noteType !== "Text" /* Text */) {
9026
+ result.set(path, { parent, key, value: "Text" /* Text */ });
9027
+ }
8951
9028
  if (node.ref !== void 0) {
8952
- merge(collect(parent, key, node.ref, path, next));
9029
+ merge(collect(parent, key, node.ref, path, next, source));
8953
9030
  }
8954
9031
  for (const child of node.all ?? []) {
8955
- merge(collect(parent, key, child, path, next));
9032
+ merge(collect(parent, key, child, path, next, source));
8956
9033
  }
8957
9034
  for (const union of node.unions ?? []) {
8958
- const branches = union.map((child) => collect(parent, key, child, path, next));
9035
+ const branches = union.map((child) => collect(parent, key, child, path, next, source));
8959
9036
  for (const [name, candidate] of branches[0] ?? []) {
8960
9037
  if (branches.every((branch) => branch.has(name))) {
8961
9038
  result.set(name, candidate);
@@ -8965,7 +9042,14 @@ function reviveDeclaredDates(value, nodes, root, publicity = false) {
8965
9042
  if (Array.isArray(current) && node.items !== void 0) {
8966
9043
  current.forEach(
8967
9044
  (_entry, i) => merge(
8968
- collect(current, String(i), node.items, `${path}/${i}`, /* @__PURE__ */ new Set())
9045
+ collect(
9046
+ current,
9047
+ String(i),
9048
+ node.items,
9049
+ `${path}/${i}`,
9050
+ /* @__PURE__ */ new Set(),
9051
+ Array.isArray(source) ? source[i] : void 0
9052
+ )
8969
9053
  )
8970
9054
  );
8971
9055
  } else if (typeof current === "object" && !Array.isArray(current)) {
@@ -8977,7 +9061,8 @@ function reviveDeclaredDates(value, nodes, root, publicity = false) {
8977
9061
  property,
8978
9062
  child,
8979
9063
  `${path}/${property.replace(/~/g, "~0").replace(/\//g, "~1")}`,
8980
- /* @__PURE__ */ new Set()
9064
+ /* @__PURE__ */ new Set(),
9065
+ source && typeof source === "object" ? source[property] : void 0
8981
9066
  )
8982
9067
  );
8983
9068
  }
@@ -8985,12 +9070,105 @@ function reviveDeclaredDates(value, nodes, root, publicity = false) {
8985
9070
  }
8986
9071
  return result;
8987
9072
  }
8988
- for (const { parent, key, value: replacement } of collect(holder, "value", root, "", /* @__PURE__ */ new Set()).values()) {
9073
+ for (const { parent, key, value: replacement } of collect(holder, "value", root, "", /* @__PURE__ */ new Set(), original).values()) {
8989
9074
  parent[key] = replacement;
8990
9075
  }
8991
9076
  return holder.value;
8992
9077
  }
8993
9078
 
9079
+ // ../../src/schema/request-note-types.generated.ts
9080
+ var requestNoteTypeNodes = [
9081
+ {},
9082
+ {
9083
+ "ref": 2
9084
+ },
9085
+ {
9086
+ "properties": {
9087
+ "noteType": 3
9088
+ }
9089
+ },
9090
+ {
9091
+ "noteType": true
9092
+ },
9093
+ {
9094
+ "ref": 2
9095
+ }
9096
+ ];
9097
+ var requestNoteTypeRoutes = [
9098
+ {
9099
+ "method": "POST",
9100
+ "path": "/api/v1/notes",
9101
+ "body": 1
9102
+ },
9103
+ {
9104
+ "method": "PUT",
9105
+ "path": "/api/v1/notes/{torrowId}",
9106
+ "body": 4
9107
+ }
9108
+ ];
9109
+
9110
+ // ../../src/util/request-note-types.ts
9111
+ var routes2 = requestNoteTypeRoutes.map((route) => ({ ...route, segments: route.path.split("/") }));
9112
+ function validateOperationNoteTypes(body, method, path) {
9113
+ if (body === void 0) {
9114
+ return;
9115
+ }
9116
+ const segments = (path.startsWith("/") ? path : `/${path}`).split("?")[0].split("/");
9117
+ const route = routes2.find(
9118
+ (candidate) => candidate.method === method && candidate.segments.length === segments.length && candidate.segments.every(
9119
+ (segment, i) => segment.startsWith("{") ? segments[i] !== "" : segment === segments[i]
9120
+ )
9121
+ );
9122
+ if (!route?.body) {
9123
+ return;
9124
+ }
9125
+ const value = JSON.parse(body);
9126
+ function invalidPaths(current, id, path2, active) {
9127
+ const result = /* @__PURE__ */ new Set();
9128
+ const node = requestNoteTypeNodes[id];
9129
+ if (!node || active.has(id) || current == null) {
9130
+ return result;
9131
+ }
9132
+ const next = new Set(active).add(id);
9133
+ const merge = (paths) => paths.forEach((entry) => result.add(entry));
9134
+ if (node.noteType && current !== "Html" /* Html */ && current !== "Markdown" /* Markdown */ && current !== "Text" /* Text */) {
9135
+ result.add(path2);
9136
+ }
9137
+ if (node.ref !== void 0) {
9138
+ merge(invalidPaths(current, node.ref, path2, next));
9139
+ }
9140
+ for (const child of node.all ?? []) {
9141
+ merge(invalidPaths(current, child, path2, next));
9142
+ }
9143
+ for (const union of node.unions ?? []) {
9144
+ const branches = union.map((child) => invalidPaths(current, child, path2, next));
9145
+ for (const entry of branches[0] ?? []) {
9146
+ if (branches.every((branch) => branch.has(entry))) {
9147
+ result.add(entry);
9148
+ }
9149
+ }
9150
+ }
9151
+ if (Array.isArray(current) && node.items !== void 0) {
9152
+ current.forEach((entry, i) => merge(invalidPaths(entry, node.items, `${path2}/${i}`, /* @__PURE__ */ new Set())));
9153
+ } else if (typeof current === "object" && !Array.isArray(current)) {
9154
+ const record6 = current;
9155
+ for (const [key, child] of Object.entries(node.properties ?? {})) {
9156
+ if (Object.hasOwn(record6, key)) {
9157
+ merge(invalidPaths(record6[key], child, `${path2}/${key}`, /* @__PURE__ */ new Set()));
9158
+ }
9159
+ }
9160
+ }
9161
+ return result;
9162
+ }
9163
+ if (invalidPaths(value, route.body, "", /* @__PURE__ */ new Set()).size > 0) {
9164
+ throw new TorrowSdkError({
9165
+ category: "InvalidInput" /* InvalidInput */,
9166
+ request: "NotStarted" /* NotStarted */,
9167
+ publicMessage: "\u0424\u043E\u0440\u043C\u0430\u0442 \u0437\u0430\u043C\u0435\u0442\u043A\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C Html, Markdown \u0438\u043B\u0438 Text."
9168
+ });
9169
+ }
9170
+ }
9171
+
8994
9172
  // ../../src/util/query-string.ts
8995
9173
  function buildQueryString(queryStringParams) {
8996
9174
  const queryString = [];
@@ -9037,6 +9215,9 @@ var HttpClient = class {
9037
9215
  try {
9038
9216
  const { fetch: fetchFn = globalThis.fetch } = this.config;
9039
9217
  url = this.buildUrl(init.path, init.query);
9218
+ const needsBody = init.body !== void 0 && init.method !== "GET" && init.method !== "DELETE";
9219
+ const body = needsBody ? stringifyJsonBody(init.body) : void 0;
9220
+ validateOperationNoteTypes(body, init.method, init.path);
9040
9221
  const authHeaders = await buildAuthHeaders(this.config);
9041
9222
  const headers = {
9042
9223
  Accept: JSON_MIME,
@@ -9047,14 +9228,13 @@ var HttpClient = class {
9047
9228
  if (this.config.userAgent) {
9048
9229
  headers["User-Agent"] = this.config.userAgent;
9049
9230
  }
9050
- const needsBody = init.body !== void 0 && init.method !== "GET" && init.method !== "DELETE";
9051
9231
  if (needsBody) {
9052
9232
  headers["Content-Type"] = JSON_MIME;
9053
9233
  }
9054
9234
  const requestInit = {
9055
9235
  method: init.method,
9056
9236
  headers,
9057
- body: needsBody ? stringifyJsonBody(init.body) : void 0,
9237
+ body,
9058
9238
  signal: init.signal
9059
9239
  };
9060
9240
  init.signal?.throwIfAborted();
@@ -9353,6 +9533,104 @@ function applyItemCreateDefaults(body, discriminator) {
9353
9533
  return payload;
9354
9534
  }
9355
9535
 
9536
+ // ../../src/resources/common/file-metadata.ts
9537
+ function fileMetadataError(category, reason) {
9538
+ return new TorrowSdkError({ category, detail: { domain: "FileMetadata" /* FileMetadata */, reason } });
9539
+ }
9540
+ function validateFileMetadataId(value) {
9541
+ if (typeof value !== "string" || !value.trim()) {
9542
+ throw fileMetadataError("InvalidInput" /* InvalidInput */);
9543
+ }
9544
+ }
9545
+ function record2(value) {
9546
+ return value !== null && typeof value === "object" && !Array.isArray(value);
9547
+ }
9548
+ function validateFileReference(value) {
9549
+ if (!record2(value)) {
9550
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
9551
+ }
9552
+ if (value.id == null) {
9553
+ throw fileMetadataError("InsufficientData" /* InsufficientData */, "FileIdUnavailable" /* FileIdUnavailable */);
9554
+ }
9555
+ if (typeof value.id !== "string" || !value.id.trim()) {
9556
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
9557
+ }
9558
+ }
9559
+ function validateFullItem(value, itemId) {
9560
+ if (!record2(value) || value.id !== itemId) {
9561
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
9562
+ }
9563
+ const personal = value.personalInfo;
9564
+ if (personal != null && !record2(personal)) {
9565
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
9566
+ }
9567
+ const content = personal?.itemContentType;
9568
+ if (content != null && typeof content !== "string") {
9569
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
9570
+ }
9571
+ if (content === "NoRights" /* NoRights */) {
9572
+ throw fileMetadataError("AccessDenied" /* AccessDenied */);
9573
+ }
9574
+ if (content !== "Full" /* Full */) {
9575
+ throw fileMetadataError(
9576
+ "InsufficientData" /* InsufficientData */,
9577
+ content === "SubscriptionIsNotValid" /* SubscriptionIsNotValid */ ? "SubscriptionIsNotValid" /* SubscriptionIsNotValid */ : "ContentTypeUnavailable" /* ContentTypeUnavailable */
9578
+ );
9579
+ }
9580
+ }
9581
+ async function readSelectedFileMetadata(options) {
9582
+ let failureAt = "ValidateInput" /* ValidateInput */;
9583
+ try {
9584
+ validateFileMetadataId(options.itemId);
9585
+ options.validateInput?.();
9586
+ failureAt = "ReadItem" /* ReadItem */;
9587
+ const item = await options.readItem(options.itemId, options.signal);
9588
+ failureAt = "ValidateItem" /* ValidateItem */;
9589
+ validateFullItem(item, options.itemId);
9590
+ const file2 = options.selectFile(item);
9591
+ if (file2 == null) {
9592
+ return null;
9593
+ }
9594
+ validateFileReference(file2);
9595
+ return file2;
9596
+ } catch (cause) {
9597
+ const error = cause instanceof TorrowSdkError ? cause : new TorrowSdkError({ category: "Unknown" /* Unknown */, sensitive: { cause } });
9598
+ throw error.withContext({ operation: options.operation, failureAt });
9599
+ }
9600
+ }
9601
+ async function readOptionalFileMetadata(options) {
9602
+ let failureAt = "ValidateInput" /* ValidateInput */;
9603
+ try {
9604
+ validateFileMetadataId(options.itemId);
9605
+ failureAt = "ReadItem" /* ReadItem */;
9606
+ const item = await options.readItem(options.itemId, options.signal);
9607
+ failureAt = "ValidateItem" /* ValidateItem */;
9608
+ validateFullItem(item, options.itemId);
9609
+ if (!options.hasFile(item)) {
9610
+ return null;
9611
+ }
9612
+ failureAt = "ReadMetadata" /* ReadMetadata */;
9613
+ if (options.signal?.aborted) {
9614
+ throw new TorrowSdkError({
9615
+ category: "Cancelled" /* Cancelled */,
9616
+ request: "NotStarted" /* NotStarted */
9617
+ });
9618
+ }
9619
+ const metadata = await options.readMetadata();
9620
+ failureAt = "ValidateMetadata" /* ValidateMetadata */;
9621
+ if (!record2(metadata)) {
9622
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
9623
+ }
9624
+ if (metadata.id != null && (typeof metadata.id !== "string" || !metadata.id.trim() || options.expectedFileId !== void 0 && metadata.id !== options.expectedFileId)) {
9625
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
9626
+ }
9627
+ return metadata;
9628
+ } catch (cause) {
9629
+ const error = cause instanceof TorrowSdkError ? cause : new TorrowSdkError({ category: "Unknown" /* Unknown */, sensitive: { cause } });
9630
+ throw error.withContext({ operation: options.operation, failureAt });
9631
+ }
9632
+ }
9633
+
9356
9634
  // ../../src/util/torrow-id.ts
9357
9635
  var TORROW_OBJECT_ID_HEX_LENGTH = 24;
9358
9636
  var OBJECT_ID_HEX_LENGTH = TORROW_OBJECT_ID_HEX_LENGTH;
@@ -9934,12 +10212,26 @@ var TorrowItemCoreFacade = class {
9934
10212
  signal: options?.signal
9935
10213
  });
9936
10214
  }
9937
- /** `GET /api/v1/{domain}/{torrowId}/image/info` */
10215
+ /** Полная карточка без аватара → null (1 GET); иначе FileInfo из image/info (2 GET). Требуется доступ к Full. */
9938
10216
  getImageInfo(torrowId, options) {
9939
- return this.http.requestJson({
9940
- method: "GET",
9941
- path: `${this.basePath}/${encodePathSegment(torrowId)}/image/info`,
9942
- signal: options?.signal
10217
+ const signal = options?.signal;
10218
+ return readOptionalFileMetadata({
10219
+ itemId: torrowId,
10220
+ operation: "getImageInfo" /* GetImageInfo */,
10221
+ signal,
10222
+ readItem: (id, readSignal) => this.readFileMetadataItem(id, readSignal),
10223
+ hasFile: (item) => {
10224
+ if (item.image == null) {
10225
+ return false;
10226
+ }
10227
+ validateFileReference(item.image);
10228
+ return true;
10229
+ },
10230
+ readMetadata: () => this.http.requestJson({
10231
+ method: "GET",
10232
+ path: `${this.basePath}/${encodePathSegment(torrowId)}/image/info`,
10233
+ signal
10234
+ })
9943
10235
  });
9944
10236
  }
9945
10237
  /** `GET /api/v1/{domain}/{torrowId}/image/puturl` */
@@ -10001,16 +10293,48 @@ var TorrowItemCoreFacade = class {
10001
10293
  signal: options?.signal
10002
10294
  });
10003
10295
  }
10004
- /** `GET /api/v1/{domain}/{torrowId}/photo/info` — только при {@link TorrowItemFacadeOptions.withPhotoEndpoints}. */
10005
- getPhotoInfo(torrowId, options) {
10006
- if (!this.socialOpts.withPhotoEndpoints) {
10007
- throw new Error("getPhotoInfo is only supported when withPhotoEndpoints is true (contacts)");
10296
+ /** Читает выбранную фотографию Contact: Full-карточка и, при наличии связи, metadata GET. Отсутствие связи — null. */
10297
+ async getPhotoInfo(torrowId, options) {
10298
+ const photoId = options?.photoId;
10299
+ const signal = options?.signal;
10300
+ try {
10301
+ if (!this.socialOpts.withPhotoEndpoints) {
10302
+ throw fileMetadataError("UnsupportedOperation" /* UnsupportedOperation */);
10303
+ }
10304
+ validateFileMetadataId(photoId);
10305
+ } catch (cause) {
10306
+ if (cause instanceof TorrowSdkError) {
10307
+ throw cause.withContext({
10308
+ operation: "getPhotoInfo" /* GetPhotoInfo */,
10309
+ failureAt: "ValidateInput" /* ValidateInput */
10310
+ });
10311
+ }
10312
+ throw cause;
10008
10313
  }
10009
- return this.http.requestJson({
10010
- method: "GET",
10011
- path: `${this.basePath}/${encodePathSegment(torrowId)}/photo/info`,
10012
- query: { photoId: options?.photoId },
10013
- signal: options?.signal
10314
+ return readOptionalFileMetadata({
10315
+ itemId: torrowId,
10316
+ operation: "getPhotoInfo" /* GetPhotoInfo */,
10317
+ signal,
10318
+ readItem: (id, itemSignal) => this.readFileMetadataItem(id, itemSignal),
10319
+ hasFile: (item) => {
10320
+ if (item.photos == null) {
10321
+ return false;
10322
+ }
10323
+ if (!Array.isArray(item.photos)) {
10324
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
10325
+ }
10326
+ for (const photo of item.photos) {
10327
+ validateFileReference(photo);
10328
+ }
10329
+ return item.photos.some((photo) => photo.id === photoId);
10330
+ },
10331
+ expectedFileId: photoId,
10332
+ readMetadata: () => this.http.requestJson({
10333
+ method: "GET",
10334
+ path: `${this.basePath}/${encodePathSegment(torrowId)}/photo/info`,
10335
+ query: { photoId },
10336
+ signal
10337
+ })
10014
10338
  });
10015
10339
  }
10016
10340
  /** `GET /api/v1/{domain}/{torrowId}/photo/puturl` — только при {@link TorrowItemFacadeOptions.withPhotoEndpoints}. */
@@ -10263,7 +10587,7 @@ function copyValue(value, active = /* @__PURE__ */ new Set()) {
10263
10587
  if (Array.isArray(value)) {
10264
10588
  result = Array.from(value, (child) => copyValue(child, active));
10265
10589
  } else {
10266
- const record5 = {};
10590
+ const record6 = {};
10267
10591
  for (const key of Reflect.ownKeys(value)) {
10268
10592
  if (typeof key !== "string") {
10269
10593
  throw itemPatchError("InvalidInput" /* InvalidInput */);
@@ -10272,14 +10596,14 @@ function copyValue(value, active = /* @__PURE__ */ new Set()) {
10272
10596
  if (!descriptor || !Object.hasOwn(descriptor, "value")) {
10273
10597
  throw itemPatchError("InvalidInput" /* InvalidInput */);
10274
10598
  }
10275
- Object.defineProperty(record5, key, {
10599
+ Object.defineProperty(record6, key, {
10276
10600
  value: copyValue(descriptor.value, active),
10277
10601
  enumerable: true,
10278
10602
  writable: true,
10279
10603
  configurable: true
10280
10604
  });
10281
10605
  }
10282
- result = record5;
10606
+ result = record6;
10283
10607
  }
10284
10608
  active.delete(value);
10285
10609
  return result;
@@ -10582,6 +10906,10 @@ function createCalendarPatchAdapter() {
10582
10906
  var BASE = "/api/v1/calendars";
10583
10907
  var CalendarsFacade = class extends TorrowItemFacade {
10584
10908
  itemObjectTypeCode = TorrowObjectTypeCode.Calendar;
10909
+ /** Чтение полной карточки для метаданных без дочерних данных. */
10910
+ readFileMetadataItem(id, signal) {
10911
+ return this.getById(id, { includeChildItems: false, signal });
10912
+ }
10585
10913
  constructor(http) {
10586
10914
  super(http, BASE, { imagePutUrlSecurityToken: false, withPhotoEndpoints: false });
10587
10915
  }
@@ -10950,6 +11278,10 @@ function cancelCaseParticipation(http, torrowId, body, options) {
10950
11278
  var BASE3 = "/api/v1/cases";
10951
11279
  var CasesFacade = class extends TorrowItemFacade {
10952
11280
  itemObjectTypeCode = TorrowObjectTypeCode.Case;
11281
+ /** Чтение полной карточки для метаданных без дочерних данных. */
11282
+ readFileMetadataItem(id, signal) {
11283
+ return this.getById(id, { includeChildTypes: false, signal });
11284
+ }
10953
11285
  constructor(http) {
10954
11286
  super(http, BASE3);
10955
11287
  }
@@ -11465,7 +11797,7 @@ var ContactPatchCommunicationState = /* @__PURE__ */ ((ContactPatchCommunication
11465
11797
  ContactPatchCommunicationState2["Checked"] = "Checked";
11466
11798
  return ContactPatchCommunicationState2;
11467
11799
  })(ContactPatchCommunicationState || {});
11468
- function record2(value) {
11800
+ function record3(value) {
11469
11801
  return value !== null && typeof value === "object" && (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null);
11470
11802
  }
11471
11803
  var text = (value) => typeof value === "string";
@@ -11474,7 +11806,7 @@ var date = (value) => value instanceof Date && Number.isFinite(value.getTime());
11474
11806
  var nullable = (validate) => (value) => value === null || validate(value);
11475
11807
  var rid = (value) => value === null || typeof value === "string" && (value.trim() === "" || isValidRid(value));
11476
11808
  function shape(value, fields) {
11477
- return record2(value) && Object.entries(value).every(([key, child]) => Object.hasOwn(fields, key) && fields[key](child));
11809
+ return record3(value) && Object.entries(value).every(([key, child]) => Object.hasOwn(fields, key) && fields[key](child));
11478
11810
  }
11479
11811
  var addressShape = {
11480
11812
  rid,
@@ -11507,7 +11839,7 @@ var memorableDateShape = {
11507
11839
  needsReminder: (value) => typeof value === "boolean",
11508
11840
  order: integer
11509
11841
  };
11510
- var file = (value) => shape(value, { id: (value2) => typeof value2 === "string" && value2.length > 0 }) && record2(value) && Object.hasOwn(value, "id");
11842
+ var file = (value) => shape(value, { id: (value2) => typeof value2 === "string" && value2.length > 0 }) && record3(value) && Object.hasOwn(value, "id");
11511
11843
  var visitCard2 = (value) => shape(value, {
11512
11844
  fields: nullable(
11513
11845
  (value2) => Array.isArray(value2) && value2.every((child) => shape(child, { number: integer, value: nullable(text), expression: nullable(text) }))
@@ -11521,7 +11853,7 @@ function comparable(value) {
11521
11853
  if (Array.isArray(value)) {
11522
11854
  return `[${value.map(comparable).join(",")}]`;
11523
11855
  }
11524
- if (record2(value)) {
11856
+ if (record3(value)) {
11525
11857
  return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${comparable(value[key])}`).join(",")}}`;
11526
11858
  }
11527
11859
  return JSON.stringify(value) ?? "undefined";
@@ -11603,7 +11935,7 @@ function createContactPatchAdapter() {
11603
11935
  return void 0;
11604
11936
  }
11605
11937
  if (key === "photos") {
11606
- const previousIds = Array.isArray(before) ? before.map((photo) => record2(photo) ? { id: photo.id } : photo) : before;
11938
+ const previousIds = Array.isArray(before) ? before.map((photo) => record3(photo) ? { id: photo.id } : photo) : before;
11607
11939
  return comparable(previousIds) === comparable(selected.photos);
11608
11940
  }
11609
11941
  if (key !== "addresses" && key !== "communications" && key !== "dates" && key !== "visitCard") {
@@ -11627,6 +11959,10 @@ var CONTACT_SOCIAL_OPTS = {
11627
11959
  };
11628
11960
  var ContactsFacade = class extends TorrowItemFacade {
11629
11961
  itemObjectTypeCode = TorrowObjectTypeCode.Contact;
11962
+ /** Чтение полной карточки для метаданных без дочерних данных. */
11963
+ readFileMetadataItem(id, signal) {
11964
+ return this.getById(id, { includeChildTypes: false, signal });
11965
+ }
11630
11966
  constructor(http) {
11631
11967
  super(http, BASE4, CONTACT_SOCIAL_OPTS);
11632
11968
  }
@@ -11818,6 +12154,10 @@ function createContextPatchAdapter() {
11818
12154
  var BASE5 = "/api/v1/contexts";
11819
12155
  var ContextsFacade = class extends TorrowItemFacade {
11820
12156
  itemObjectTypeCode = TorrowObjectTypeCode.Context;
12157
+ /** Чтение полной карточки для метаданных без дочерних данных. */
12158
+ readFileMetadataItem(id, signal) {
12159
+ return this.getById(id, { includeChildTypes: false, signal });
12160
+ }
11821
12161
  constructor(http) {
11822
12162
  super(http, BASE5, { imagePutUrlSecurityToken: false, withPhotoEndpoints: false });
11823
12163
  }
@@ -11895,31 +12235,6 @@ var ContextsFacade = class extends TorrowItemFacade {
11895
12235
  }
11896
12236
  };
11897
12237
 
11898
- // ../../src/resources/notes/types.ts
11899
- var NoteTypeValues = {
11900
- Unknown: "Unknown",
11901
- Text: "Text",
11902
- Html: "Html",
11903
- Markdown: "Markdown",
11904
- Hlink: "Hlink",
11905
- File: "File",
11906
- Photo: "Photo",
11907
- Voice: "Voice",
11908
- Geolocation: "Geolocation",
11909
- Qr: "Qr",
11910
- ServiceSpecification: "ServiceSpecification"
11911
- };
11912
- var ImagePreviewSizeValues = {
11913
- Undefined: "Undefined",
11914
- Hidden: "Hidden",
11915
- Small: "Small",
11916
- Medium: "Medium",
11917
- Large: "Large",
11918
- SmallSlider: "SmallSlider",
11919
- MediumSlider: "MediumSlider",
11920
- LargeSlider: "LargeSlider"
11921
- };
11922
-
11923
12238
  // ../../src/resources/notes/note-patch.ts
11924
12239
  function isFileReference(value) {
11925
12240
  return value !== null && typeof value === "object" && !Array.isArray(value) && "id" in value && typeof value.id === "string" && value.id.length > 0;
@@ -11932,7 +12247,7 @@ function projectNotePatchItem(item) {
11932
12247
  }
11933
12248
  function assertNotePatchSnapshot(item) {
11934
12249
  projectNotePatchItem(item);
11935
- if (item.name == null || item.noteType == null || item.noteType === NoteTypeValues.Unknown || item.noteType === NoteTypeValues.ServiceSpecification) {
12250
+ if (item.name == null || item.noteType == null) {
11936
12251
  throw itemPatchError("InsufficientData" /* InsufficientData */);
11937
12252
  }
11938
12253
  if (typeof item.name !== "string" || item.name.length === 0 || !Object.values(NoteTypeValues).some((type) => type === item.noteType)) {
@@ -11949,7 +12264,7 @@ function createNotePatchAdapter() {
11949
12264
  ...commonItemPatchFields,
11950
12265
  noteType: {
11951
12266
  kind: "String" /* String */,
11952
- validate: (value) => Object.values(NoteTypeValues).some((type) => type === value) && value !== NoteTypeValues.Unknown && value !== NoteTypeValues.ServiceSpecification
12267
+ validate: (value) => Object.values(NoteTypeValues).some((type) => type === value)
11953
12268
  },
11954
12269
  data: { kind: "String" /* String */, nullable: true },
11955
12270
  files: {
@@ -11976,6 +12291,10 @@ var BASE6 = "/api/v1/notes";
11976
12291
  var DEFAULT_NOTE_NAME = "Untitled note";
11977
12292
  var NotesFacade = class extends TorrowItemFacade {
11978
12293
  itemObjectTypeCode = TorrowObjectTypeCode.Note;
12294
+ /** Чтение полной карточки для метаданных без дочерних данных. */
12295
+ readFileMetadataItem(id, signal) {
12296
+ return this.getById(id, { includeChildTypes: false, signal });
12297
+ }
11979
12298
  constructor(http) {
11980
12299
  super(http, BASE6, { imagePutUrlSecurityToken: false, withPhotoEndpoints: false });
11981
12300
  }
@@ -12058,13 +12377,50 @@ var NotesFacade = class extends TorrowItemFacade {
12058
12377
  signal
12059
12378
  });
12060
12379
  }
12061
- /** `GET /api/v1/notes/{torrowId}/file/info` */
12062
- getFileInfo(torrowId, fileId, options) {
12063
- return this.http.requestJson({
12064
- method: "GET",
12065
- path: `${BASE6}/${encodePathSegment(torrowId)}/file/info`,
12066
- query: { fileId },
12067
- signal: options?.signal
12380
+ /**
12381
+ * Читает полную заметку и метаданные выбранного вложения: один GET при отсутствии связи, два при наличии.
12382
+ * @param torrowId ID заметки без преобразований; доступная карточка Full обязательна.
12383
+ * @param fileId Обязательный ID вложения из files; аватар и фотографии не участвуют в выборе.
12384
+ * @param options.signal Общая отмена чтения карточки и метаданных.
12385
+ * @returns Метаданные либо null, если выбранное вложение отсутствует в полной карточке.
12386
+ */
12387
+ async getFileInfo(torrowId, fileId, options) {
12388
+ const signal = options?.signal;
12389
+ try {
12390
+ validateFileMetadataId(fileId);
12391
+ } catch (error) {
12392
+ if (error instanceof TorrowSdkError) {
12393
+ throw error.withContext({
12394
+ operation: "getFileInfo" /* GetFileInfo */,
12395
+ failureAt: "ValidateInput" /* ValidateInput */
12396
+ });
12397
+ }
12398
+ throw error;
12399
+ }
12400
+ return readOptionalFileMetadata({
12401
+ itemId: torrowId,
12402
+ operation: "getFileInfo" /* GetFileInfo */,
12403
+ signal,
12404
+ readItem: (id, readSignal) => this.readFileMetadataItem(id, readSignal),
12405
+ hasFile: (item) => {
12406
+ if (item.files == null) {
12407
+ return false;
12408
+ }
12409
+ if (!Array.isArray(item.files)) {
12410
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
12411
+ }
12412
+ for (const file2 of item.files) {
12413
+ validateFileReference(file2);
12414
+ }
12415
+ return item.files.some((file2) => file2.id === fileId);
12416
+ },
12417
+ readMetadata: () => this.http.requestJson({
12418
+ method: "GET",
12419
+ path: `${BASE6}/${encodePathSegment(torrowId)}/file/info`,
12420
+ query: { fileId },
12421
+ signal
12422
+ }),
12423
+ expectedFileId: fileId
12068
12424
  });
12069
12425
  }
12070
12426
  /** `GET /api/v1/notes/{torrowId}/file/puturl` — URL для загрузки файла (presigned). */
@@ -12746,11 +13102,11 @@ var providers = {
12746
13102
  strings: ["redirectBaseUrl"]
12747
13103
  }
12748
13104
  };
12749
- function record3(value) {
13105
+ function record4(value) {
12750
13106
  return value !== null && typeof value === "object" && !Array.isArray(value) && !(value instanceof Date);
12751
13107
  }
12752
13108
  function isResourcePaymentPatch(value) {
12753
- if (!record3(value) || Object.keys(value).some(
13109
+ if (!record4(value) || Object.keys(value).some(
12754
13110
  (key) => !["paymentProviderType", "parameters", "numeratorId", "waitForConfirmation"].includes(key)
12755
13111
  )) {
12756
13112
  return false;
@@ -12770,7 +13126,7 @@ function isResourcePaymentPatch(value) {
12770
13126
  if (value.parameters == null) {
12771
13127
  return guarded;
12772
13128
  }
12773
- if (!record3(value.parameters)) {
13129
+ if (!record4(value.parameters)) {
12774
13130
  return false;
12775
13131
  }
12776
13132
  const parameters = value.parameters;
@@ -12799,7 +13155,7 @@ function isResourcePaymentPatch(value) {
12799
13155
  });
12800
13156
  }
12801
13157
  function paymentPatchToWire(value) {
12802
- if (!record3(value) || !record3(value.parameters)) {
13158
+ if (!record4(value) || !record4(value.parameters)) {
12803
13159
  return value;
12804
13160
  }
12805
13161
  const shape2 = providers[value.paymentProviderType];
@@ -12816,7 +13172,7 @@ function equalResourcePaymentPatchField(key, before, after) {
12816
13172
  return void 0;
12817
13173
  }
12818
13174
  const expected = paymentPatchToWire(after);
12819
- if (record3(before) && record3(expected) && before.paymentProviderType === "MockPaymentProvider" /* Mock */ && expected.paymentProviderType === "MockPaymentProvider" /* Mock */ && record3(before.parameters) && record3(expected.parameters) && expected.parameters.createAfter instanceof Date && typeof before.parameters.createAfter === "string") {
13175
+ if (record4(before) && record4(expected) && before.paymentProviderType === "MockPaymentProvider" /* Mock */ && expected.paymentProviderType === "MockPaymentProvider" /* Mock */ && record4(before.parameters) && record4(expected.parameters) && expected.parameters.createAfter instanceof Date && typeof before.parameters.createAfter === "string") {
12820
13176
  const date2 = new Date(before.parameters.createAfter);
12821
13177
  if (!Number.isFinite(date2.getTime())) {
12822
13178
  return false;
@@ -12893,6 +13249,10 @@ function createResourcePatchAdapter(project) {
12893
13249
  var BASE7 = "/api/v1/resources";
12894
13250
  var ResourcesFacade = class extends TorrowItemFacade {
12895
13251
  itemObjectTypeCode = TorrowObjectTypeCode.Resource;
13252
+ /** Чтение полной карточки для метаданных без дочерних данных. */
13253
+ readFileMetadataItem(id, signal) {
13254
+ return this.getById(id, { includeChildTypes: false, isNeedItem: true, isNeedParentResource: false, signal });
13255
+ }
12896
13256
  constructor(http) {
12897
13257
  super(http, BASE7, { imagePutUrlSecurityToken: false, withPhotoEndpoints: false });
12898
13258
  }
@@ -12915,6 +13275,9 @@ var ResourcesFacade = class extends TorrowItemFacade {
12915
13275
  return super.getByUniqueName(uniqueName, options).then((item) => this.toSdkResourceItem(item));
12916
13276
  }
12917
13277
  toSdkResourceItem(item) {
13278
+ if (item === null || typeof item !== "object" || Array.isArray(item)) {
13279
+ throw new TorrowSdkError({ category: "InvalidResponse" /* InvalidResponse */ });
13280
+ }
12918
13281
  return {
12919
13282
  ...item,
12920
13283
  behaviorSettings: parseResourceBehaviorSettings(item.tags)
@@ -13179,6 +13542,9 @@ function projectItemViews(domain, views) {
13179
13542
  // ../../src/resources/services/service-requests.ts
13180
13543
  var BASE8 = "/api/v1/services";
13181
13544
  function toSdkServiceItem(service) {
13545
+ if (service === null || typeof service !== "object" || Array.isArray(service)) {
13546
+ throw new TorrowSdkError({ category: "InvalidResponse" /* InvalidResponse */ });
13547
+ }
13182
13548
  return {
13183
13549
  ...omitUnusedServiceFields(service),
13184
13550
  behaviorSettings: parseServiceImplicitTagParams(service.tags)
@@ -13289,18 +13655,18 @@ var configs = Object.values(SERVICE_IMPLICIT_TAG_REGISTRY);
13289
13655
  function isBehaviorVersion(value) {
13290
13656
  return typeof value === "number" && Number.isInteger(value) && value >= 1 && value <= 2147483647;
13291
13657
  }
13292
- function record4(value) {
13658
+ function record5(value) {
13293
13659
  return value !== null && typeof value === "object" && !Array.isArray(value);
13294
13660
  }
13295
13661
  function validateBehaviorResponse(value, serviceId) {
13296
- if (!record4(value) || value.id !== serviceId) {
13662
+ if (!record5(value) || value.id !== serviceId) {
13297
13663
  throw behaviorSettingsError("InvalidResponse" /* InvalidResponse */);
13298
13664
  }
13299
13665
  const personal = value.personalInfo;
13300
- if (record4(personal) && (personal.itemContentType === "NoRights" /* NoRights */ || personal.itemContentType === "SubscriptionIsNotValid" /* SubscriptionIsNotValid */)) {
13666
+ if (record5(personal) && (personal.itemContentType === "NoRights" /* NoRights */ || personal.itemContentType === "SubscriptionIsNotValid" /* SubscriptionIsNotValid */)) {
13301
13667
  throw behaviorSettingsError("AccessDenied" /* AccessDenied */);
13302
13668
  }
13303
- if (!record4(personal) || personal.itemContentType !== "Full" /* Full */ || value.tags == null || !record4(value.meta) || !isBehaviorVersion(value.meta.version)) {
13669
+ if (!record5(personal) || personal.itemContentType !== "Full" /* Full */ || value.tags == null || !record5(value.meta) || !isBehaviorVersion(value.meta.version)) {
13304
13670
  throw behaviorSettingsError("InsufficientData" /* InsufficientData */);
13305
13671
  }
13306
13672
  if (!Array.isArray(value.tags) || !value.tags.every((tag) => typeof tag === "string")) {
@@ -13429,7 +13795,7 @@ function normalizeBehaviorInput(input) {
13429
13795
  function fail() {
13430
13796
  throw behaviorSettingsError("InvalidInput" /* InvalidInput */);
13431
13797
  }
13432
- if (!record4(input) || Object.keys(input).some((key) => !Object.hasOwn(SERVICE_IMPLICIT_TAG_REGISTRY, key))) {
13798
+ if (!record5(input) || Object.keys(input).some((key) => !Object.hasOwn(SERVICE_IMPLICIT_TAG_REGISTRY, key))) {
13433
13799
  fail();
13434
13800
  }
13435
13801
  const output = {};
@@ -13459,7 +13825,7 @@ function normalizeBehaviorInput(input) {
13459
13825
  }
13460
13826
  const seen = /* @__PURE__ */ new Set();
13461
13827
  output[config.field] = value.map((entry) => {
13462
- if (!record4(entry) || Object.keys(entry).some((key) => !["index", "text", "link"].includes(key)) || typeof entry.index !== "number" || !Number.isSafeInteger(entry.index) || entry.index <= 0 || seen.has(entry.index)) {
13828
+ if (!record5(entry) || Object.keys(entry).some((key) => !["index", "text", "link"].includes(key)) || typeof entry.index !== "number" || !Number.isSafeInteger(entry.index) || entry.index <= 0 || seen.has(entry.index)) {
13463
13829
  fail();
13464
13830
  }
13465
13831
  seen.add(entry.index);
@@ -13515,6 +13881,10 @@ function mergeBehaviorSettings(tags, settings, mergeParameters) {
13515
13881
  var BASE9 = "/api/v1/services";
13516
13882
  var ServicesFacade = class extends TorrowItemFacade {
13517
13883
  itemObjectTypeCode = TorrowObjectTypeCode.Service;
13884
+ /** Чтение полной карточки для метаданных без дочерних данных. */
13885
+ readFileMetadataItem(id, signal) {
13886
+ return this.getById(id, { includeChildTypes: false, signal });
13887
+ }
13518
13888
  constructor(http) {
13519
13889
  super(http, BASE9, { imagePutUrlSecurityToken: false, withPhotoEndpoints: false });
13520
13890
  }
@@ -14744,9 +15114,36 @@ function createLoyaltySystemPatchAdapter() {
14744
15114
  var BASE17 = "/api/v1/loyaltysystems";
14745
15115
  var LoyaltySystemsFacade = class extends TorrowItemCoreFacade {
14746
15116
  itemObjectTypeCode = TorrowObjectTypeCode.LoyaltySystem;
15117
+ /** Чтение полной карточки для метаданных без дочерних данных. */
15118
+ readFileMetadataItem(id, signal) {
15119
+ return this.getById(id, { includeChildItems: false, signal });
15120
+ }
14747
15121
  constructor(http) {
14748
15122
  super(http, BASE17);
14749
15123
  }
15124
+ /**
15125
+ * Изображение начальной подписки из одного GET Full-программы; null означает отсутствие.
15126
+ * Основной аватар не участвует в выборе; url/refreshUrl не вызываются и не исправляются.
15127
+ */
15128
+ getInitialSubscriptionImageInfo(torrowId, options) {
15129
+ const signal = options?.signal;
15130
+ return readSelectedFileMetadata({
15131
+ itemId: torrowId,
15132
+ operation: "getInitialSubscriptionImageInfo" /* GetInitialSubscriptionImageInfo */,
15133
+ signal,
15134
+ readItem: (id, originalSignal) => this.getById(id, { includeChildItems: false, signal: originalSignal }),
15135
+ selectFile: (item) => {
15136
+ const initial = item.initialSubscription;
15137
+ if (initial == null) {
15138
+ return null;
15139
+ }
15140
+ if (typeof initial !== "object" || Array.isArray(initial)) {
15141
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
15142
+ }
15143
+ return initial.image;
15144
+ }
15145
+ });
15146
+ }
14750
15147
  /** Изменяет выбранные настройки через полный GET и один CAS PUT; пропуск сохраняет поля. */
14751
15148
  patch(itemId, fields, options) {
14752
15149
  return patchItem(
@@ -14886,9 +15283,72 @@ var BASE18 = "/api/v1/loyaltycards";
14886
15283
  var LOYALTY_CARD_SOCIAL_OPTS = { withGroupListEndpoint: false };
14887
15284
  var LoyaltyCardsFacade = class extends TorrowItemCoreFacade {
14888
15285
  itemObjectTypeCode = TorrowObjectTypeCode.LoyaltyCard;
15286
+ /** Чтение полной карточки для метаданных без дочерних данных. */
15287
+ readFileMetadataItem(id, signal) {
15288
+ return this.getById(id, { includeChildItems: false, includeBalance: false, signal });
15289
+ }
14889
15290
  constructor(http) {
14890
15291
  super(http, BASE18, LOYALTY_CARD_SOCIAL_OPTS);
14891
15292
  }
15293
+ /**
15294
+ * Отображаемый аватар из свежей Full-карточки за один GET; отсутствие → null.
15295
+ * Сервер уже применил наследование изображения программы. image/info читает собственный файл карты,
15296
+ * поэтому не используется. Для обновления URL повторить getter; refreshUrl не вызывается.
15297
+ */
15298
+ getImageInfo(torrowId, options) {
15299
+ const signal = options?.signal;
15300
+ return readSelectedFileMetadata({
15301
+ itemId: torrowId,
15302
+ operation: "getImageInfo" /* GetImageInfo */,
15303
+ signal,
15304
+ readItem: (id, readSignal) => this.readFileMetadataItem(id, readSignal),
15305
+ selectFile: (item) => item.image
15306
+ });
15307
+ }
15308
+ /**
15309
+ * Изображение выбранной подписки из одного GET Full-карты; отсутствие → null.
15310
+ * @param torrowId ID карты без преобразований.
15311
+ * @param subscriptionId Обязательный ID подписки, не ID файла и не аватара карты.
15312
+ * @param options Отмена чтения; URL и refreshUrl не запрашиваются автоматически.
15313
+ * @returns FileInfo из свежего снимка либо null; доступность байтов отдельно не проверяется.
15314
+ */
15315
+ getSubscriptionImageInfo(torrowId, subscriptionId, options) {
15316
+ const signal = options?.signal;
15317
+ return readSelectedFileMetadata({
15318
+ itemId: torrowId,
15319
+ operation: "getSubscriptionImageInfo" /* GetSubscriptionImageInfo */,
15320
+ signal,
15321
+ validateInput: () => validateFileMetadataId(subscriptionId),
15322
+ readItem: (id, readSignal) => this.readFileMetadataItem(id, readSignal),
15323
+ selectFile: (item) => {
15324
+ const subscriptions = item.subscriptions;
15325
+ if (subscriptions == null) {
15326
+ return null;
15327
+ }
15328
+ if (!Array.isArray(subscriptions)) {
15329
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
15330
+ }
15331
+ const ids = /* @__PURE__ */ new Set();
15332
+ for (const subscription of subscriptions) {
15333
+ if (subscription === null || typeof subscription !== "object" || Array.isArray(subscription)) {
15334
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
15335
+ }
15336
+ const id = subscription.subscriptionId;
15337
+ if (id == null) {
15338
+ throw fileMetadataError(
15339
+ "InsufficientData" /* InsufficientData */,
15340
+ "SubscriptionIdUnavailable" /* SubscriptionIdUnavailable */
15341
+ );
15342
+ }
15343
+ if (typeof id !== "string" || !id.trim() || ids.has(id)) {
15344
+ throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
15345
+ }
15346
+ ids.add(id);
15347
+ }
15348
+ return subscriptions.find((subscription) => subscription.subscriptionId === subscriptionId)?.image;
15349
+ }
15350
+ });
15351
+ }
14892
15352
  /** Id карты лояльности до `create` / presigned upload. */
14893
15353
  generateLoyaltyCardId(ownerTorrowId) {
14894
15354
  return this.generateItemId(ownerTorrowId);
@@ -17077,6 +17537,9 @@ export {
17077
17537
  Discriminator,
17078
17538
  ExportImportFacade,
17079
17539
  ExternalAuthsFacade,
17540
+ FileMetadataErrorReason,
17541
+ FileMetadataFailureAt,
17542
+ FileMetadataOperation,
17080
17543
  GenderValues,
17081
17544
  HttpClient,
17082
17545
  IdGeneratorFacade,