@v-office/website-sdk 1.2.1 → 2.0.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.
Files changed (46) hide show
  1. package/README.md +91 -232
  2. package/dist/cli.mjs +102 -83
  3. package/dist/client-BSUd3vuc.mjs +5111 -0
  4. package/dist/index.d.mts +2463 -11751
  5. package/dist/index.mjs +16 -4
  6. package/dist/instructions/CHANGELOG.md +9 -0
  7. package/dist/instructions/MIGRATION.md +9 -0
  8. package/dist/instructions/README.md +62 -0
  9. package/dist/instructions/availability.md +157 -0
  10. package/dist/instructions/booking.md +165 -0
  11. package/dist/instructions/contact.md +92 -0
  12. package/dist/instructions/creation.md +223 -0
  13. package/dist/instructions/filter.md +156 -0
  14. package/dist/instructions/quote.md +318 -0
  15. package/dist/instructions/rentals.md +152 -0
  16. package/dist/instructions/search.md +233 -0
  17. package/dist/instructions/versions/2.0.0/CHANGELOG.md +69 -0
  18. package/dist/instructions/versions/2.0.0/MIGRATION.md +223 -0
  19. package/dist/{quote-DQGps4dy.mjs → quote-1uEIO44v.mjs} +15 -16
  20. package/dist/{rentals-plxPVx83.mjs → rentals-Quwc78o2.mjs} +22 -16
  21. package/dist/{search-BuR5apFw.mjs → search-GRQeXDvo.mjs} +40 -23
  22. package/dist/to-rental-highlights-FNZBR4aD.mjs +5905 -0
  23. package/instructions/CHANGELOG.md +9 -0
  24. package/instructions/MIGRATION.md +9 -0
  25. package/instructions/README.md +62 -0
  26. package/instructions/availability.md +157 -0
  27. package/instructions/booking.md +165 -0
  28. package/instructions/contact.md +92 -0
  29. package/instructions/creation.md +223 -0
  30. package/instructions/filter.md +156 -0
  31. package/instructions/quote.md +318 -0
  32. package/instructions/rentals.md +152 -0
  33. package/instructions/search.md +233 -0
  34. package/instructions/versions/2.0.0/CHANGELOG.md +69 -0
  35. package/instructions/versions/2.0.0/MIGRATION.md +223 -0
  36. package/package.json +41 -56
  37. package/dist/client-DeEUMMOh.mjs +0 -33237
  38. package/dist/custom-attribute-D5Kb1YHA.mjs +0 -54
  39. package/dist/errors-2cuUGSvi.mjs +0 -5
  40. package/dist/operations-B4IgNB3E.mjs +0 -12618
  41. package/dist/operations-DcU1qt7g.mjs +0 -1158
  42. package/dist/quote-BVx3TAHE.mjs +0 -513
  43. package/dist/quote-CRjV_lf-.mjs +0 -609
  44. package/dist/rentals-H3RYtMqT.mjs +0 -323
  45. package/dist/search-filter-metadata-DZP0-Udc.mjs +0 -4294
  46. package/dist/to-rental-highlights-CAATPqan.mjs +0 -524
@@ -1,1158 +0,0 @@
1
- //#endregion
2
- //#region scripts/v9/graphql-codegen/generated/gql.ts
3
- const documents = {
4
- "\n query CMSSDK_RentalsAll(\n $language: String\n $voffice_ids: [Int!]\n $rentalDataAttributes: [String!]! = []\n $rentalFacilityDataAttributes: [String!]! = []\n $rentalRatingDataAttributes: [String!]! = []\n $rentalFeedbackDataAttributes: [String!]! = []\n ) {\n all(language: $language, voffice_ids: $voffice_ids) {\n id\n voffice_id\n voffice_facility_id\n name\n publish\n data(attributes: $rentalDataAttributes)\n additional_voffice_data {\n beds\n }\n voffice_facility {\n id\n voffice_id\n name\n publish\n data(attributes: $rentalFacilityDataAttributes)\n }\n voffice_images {\n id\n path\n title\n description\n }\n voffice_room_images {\n id\n path\n name\n title\n description\n }\n voffice_rating {\n id\n data(attributes: $rentalRatingDataAttributes)\n }\n voffice_feedbacks {\n data(attributes: $rentalFeedbackDataAttributes)\n }\n }\n }\n": {
5
- kind: "Document",
6
- definitions: [{
7
- kind: "OperationDefinition",
8
- operation: "query",
9
- name: {
10
- kind: "Name",
11
- value: "CMSSDK_RentalsAll"
12
- },
13
- variableDefinitions: [
14
- {
15
- kind: "VariableDefinition",
16
- variable: {
17
- kind: "Variable",
18
- name: {
19
- kind: "Name",
20
- value: "language"
21
- }
22
- },
23
- type: {
24
- kind: "NamedType",
25
- name: {
26
- kind: "Name",
27
- value: "String"
28
- }
29
- }
30
- },
31
- {
32
- kind: "VariableDefinition",
33
- variable: {
34
- kind: "Variable",
35
- name: {
36
- kind: "Name",
37
- value: "voffice_ids"
38
- }
39
- },
40
- type: {
41
- kind: "ListType",
42
- type: {
43
- kind: "NonNullType",
44
- type: {
45
- kind: "NamedType",
46
- name: {
47
- kind: "Name",
48
- value: "Int"
49
- }
50
- }
51
- }
52
- }
53
- },
54
- {
55
- kind: "VariableDefinition",
56
- variable: {
57
- kind: "Variable",
58
- name: {
59
- kind: "Name",
60
- value: "rentalDataAttributes"
61
- }
62
- },
63
- type: {
64
- kind: "NonNullType",
65
- type: {
66
- kind: "ListType",
67
- type: {
68
- kind: "NonNullType",
69
- type: {
70
- kind: "NamedType",
71
- name: {
72
- kind: "Name",
73
- value: "String"
74
- }
75
- }
76
- }
77
- }
78
- },
79
- defaultValue: {
80
- kind: "ListValue",
81
- values: []
82
- }
83
- },
84
- {
85
- kind: "VariableDefinition",
86
- variable: {
87
- kind: "Variable",
88
- name: {
89
- kind: "Name",
90
- value: "rentalFacilityDataAttributes"
91
- }
92
- },
93
- type: {
94
- kind: "NonNullType",
95
- type: {
96
- kind: "ListType",
97
- type: {
98
- kind: "NonNullType",
99
- type: {
100
- kind: "NamedType",
101
- name: {
102
- kind: "Name",
103
- value: "String"
104
- }
105
- }
106
- }
107
- }
108
- },
109
- defaultValue: {
110
- kind: "ListValue",
111
- values: []
112
- }
113
- },
114
- {
115
- kind: "VariableDefinition",
116
- variable: {
117
- kind: "Variable",
118
- name: {
119
- kind: "Name",
120
- value: "rentalRatingDataAttributes"
121
- }
122
- },
123
- type: {
124
- kind: "NonNullType",
125
- type: {
126
- kind: "ListType",
127
- type: {
128
- kind: "NonNullType",
129
- type: {
130
- kind: "NamedType",
131
- name: {
132
- kind: "Name",
133
- value: "String"
134
- }
135
- }
136
- }
137
- }
138
- },
139
- defaultValue: {
140
- kind: "ListValue",
141
- values: []
142
- }
143
- },
144
- {
145
- kind: "VariableDefinition",
146
- variable: {
147
- kind: "Variable",
148
- name: {
149
- kind: "Name",
150
- value: "rentalFeedbackDataAttributes"
151
- }
152
- },
153
- type: {
154
- kind: "NonNullType",
155
- type: {
156
- kind: "ListType",
157
- type: {
158
- kind: "NonNullType",
159
- type: {
160
- kind: "NamedType",
161
- name: {
162
- kind: "Name",
163
- value: "String"
164
- }
165
- }
166
- }
167
- }
168
- },
169
- defaultValue: {
170
- kind: "ListValue",
171
- values: []
172
- }
173
- }
174
- ],
175
- selectionSet: {
176
- kind: "SelectionSet",
177
- selections: [{
178
- kind: "Field",
179
- name: {
180
- kind: "Name",
181
- value: "all"
182
- },
183
- arguments: [{
184
- kind: "Argument",
185
- name: {
186
- kind: "Name",
187
- value: "language"
188
- },
189
- value: {
190
- kind: "Variable",
191
- name: {
192
- kind: "Name",
193
- value: "language"
194
- }
195
- }
196
- }, {
197
- kind: "Argument",
198
- name: {
199
- kind: "Name",
200
- value: "voffice_ids"
201
- },
202
- value: {
203
- kind: "Variable",
204
- name: {
205
- kind: "Name",
206
- value: "voffice_ids"
207
- }
208
- }
209
- }],
210
- selectionSet: {
211
- kind: "SelectionSet",
212
- selections: [
213
- {
214
- kind: "Field",
215
- name: {
216
- kind: "Name",
217
- value: "id"
218
- }
219
- },
220
- {
221
- kind: "Field",
222
- name: {
223
- kind: "Name",
224
- value: "voffice_id"
225
- }
226
- },
227
- {
228
- kind: "Field",
229
- name: {
230
- kind: "Name",
231
- value: "voffice_facility_id"
232
- }
233
- },
234
- {
235
- kind: "Field",
236
- name: {
237
- kind: "Name",
238
- value: "name"
239
- }
240
- },
241
- {
242
- kind: "Field",
243
- name: {
244
- kind: "Name",
245
- value: "publish"
246
- }
247
- },
248
- {
249
- kind: "Field",
250
- name: {
251
- kind: "Name",
252
- value: "data"
253
- },
254
- arguments: [{
255
- kind: "Argument",
256
- name: {
257
- kind: "Name",
258
- value: "attributes"
259
- },
260
- value: {
261
- kind: "Variable",
262
- name: {
263
- kind: "Name",
264
- value: "rentalDataAttributes"
265
- }
266
- }
267
- }]
268
- },
269
- {
270
- kind: "Field",
271
- name: {
272
- kind: "Name",
273
- value: "additional_voffice_data"
274
- },
275
- selectionSet: {
276
- kind: "SelectionSet",
277
- selections: [{
278
- kind: "Field",
279
- name: {
280
- kind: "Name",
281
- value: "beds"
282
- }
283
- }]
284
- }
285
- },
286
- {
287
- kind: "Field",
288
- name: {
289
- kind: "Name",
290
- value: "voffice_facility"
291
- },
292
- selectionSet: {
293
- kind: "SelectionSet",
294
- selections: [
295
- {
296
- kind: "Field",
297
- name: {
298
- kind: "Name",
299
- value: "id"
300
- }
301
- },
302
- {
303
- kind: "Field",
304
- name: {
305
- kind: "Name",
306
- value: "voffice_id"
307
- }
308
- },
309
- {
310
- kind: "Field",
311
- name: {
312
- kind: "Name",
313
- value: "name"
314
- }
315
- },
316
- {
317
- kind: "Field",
318
- name: {
319
- kind: "Name",
320
- value: "publish"
321
- }
322
- },
323
- {
324
- kind: "Field",
325
- name: {
326
- kind: "Name",
327
- value: "data"
328
- },
329
- arguments: [{
330
- kind: "Argument",
331
- name: {
332
- kind: "Name",
333
- value: "attributes"
334
- },
335
- value: {
336
- kind: "Variable",
337
- name: {
338
- kind: "Name",
339
- value: "rentalFacilityDataAttributes"
340
- }
341
- }
342
- }]
343
- }
344
- ]
345
- }
346
- },
347
- {
348
- kind: "Field",
349
- name: {
350
- kind: "Name",
351
- value: "voffice_images"
352
- },
353
- selectionSet: {
354
- kind: "SelectionSet",
355
- selections: [
356
- {
357
- kind: "Field",
358
- name: {
359
- kind: "Name",
360
- value: "id"
361
- }
362
- },
363
- {
364
- kind: "Field",
365
- name: {
366
- kind: "Name",
367
- value: "path"
368
- }
369
- },
370
- {
371
- kind: "Field",
372
- name: {
373
- kind: "Name",
374
- value: "title"
375
- }
376
- },
377
- {
378
- kind: "Field",
379
- name: {
380
- kind: "Name",
381
- value: "description"
382
- }
383
- }
384
- ]
385
- }
386
- },
387
- {
388
- kind: "Field",
389
- name: {
390
- kind: "Name",
391
- value: "voffice_room_images"
392
- },
393
- selectionSet: {
394
- kind: "SelectionSet",
395
- selections: [
396
- {
397
- kind: "Field",
398
- name: {
399
- kind: "Name",
400
- value: "id"
401
- }
402
- },
403
- {
404
- kind: "Field",
405
- name: {
406
- kind: "Name",
407
- value: "path"
408
- }
409
- },
410
- {
411
- kind: "Field",
412
- name: {
413
- kind: "Name",
414
- value: "name"
415
- }
416
- },
417
- {
418
- kind: "Field",
419
- name: {
420
- kind: "Name",
421
- value: "title"
422
- }
423
- },
424
- {
425
- kind: "Field",
426
- name: {
427
- kind: "Name",
428
- value: "description"
429
- }
430
- }
431
- ]
432
- }
433
- },
434
- {
435
- kind: "Field",
436
- name: {
437
- kind: "Name",
438
- value: "voffice_rating"
439
- },
440
- selectionSet: {
441
- kind: "SelectionSet",
442
- selections: [{
443
- kind: "Field",
444
- name: {
445
- kind: "Name",
446
- value: "id"
447
- }
448
- }, {
449
- kind: "Field",
450
- name: {
451
- kind: "Name",
452
- value: "data"
453
- },
454
- arguments: [{
455
- kind: "Argument",
456
- name: {
457
- kind: "Name",
458
- value: "attributes"
459
- },
460
- value: {
461
- kind: "Variable",
462
- name: {
463
- kind: "Name",
464
- value: "rentalRatingDataAttributes"
465
- }
466
- }
467
- }]
468
- }]
469
- }
470
- },
471
- {
472
- kind: "Field",
473
- name: {
474
- kind: "Name",
475
- value: "voffice_feedbacks"
476
- },
477
- selectionSet: {
478
- kind: "SelectionSet",
479
- selections: [{
480
- kind: "Field",
481
- name: {
482
- kind: "Name",
483
- value: "data"
484
- },
485
- arguments: [{
486
- kind: "Argument",
487
- name: {
488
- kind: "Name",
489
- value: "attributes"
490
- },
491
- value: {
492
- kind: "Variable",
493
- name: {
494
- kind: "Name",
495
- value: "rentalFeedbackDataAttributes"
496
- }
497
- }
498
- }]
499
- }]
500
- }
501
- }
502
- ]
503
- }
504
- }]
505
- }
506
- }]
507
- },
508
- "\n query CMSSDK_Search(\n $first: Int!\n $page: Int\n $language: String\n $vofficeData: VofficeData\n $basicQueryInputs: [BasicQueryInput!]\n $dataAttributes: [String!]! = []\n ) {\n search(\n first: $first\n page: $page\n language: $language\n voffice: $vofficeData\n data: $basicQueryInputs\n ) {\n paginatorInfo {\n hasMorePages\n currentPage\n }\n data {\n voffice_id\n voffice_images {\n id\n path\n title\n description\n }\n voffice_room_images {\n id\n path\n name\n title\n description\n }\n additional_voffice_data {\n alternatives {\n fromdate\n tilldate\n calc {\n total\n rent\n summary\n oTotal\n oRent\n oSummary\n discountName\n }\n }\n calc {\n total\n rent\n summary\n oTotal\n oRent\n oSummary\n discountName\n }\n }\n data(attributes: $dataAttributes)\n }\n }\n }\n": {
509
- kind: "Document",
510
- definitions: [{
511
- kind: "OperationDefinition",
512
- operation: "query",
513
- name: {
514
- kind: "Name",
515
- value: "CMSSDK_Search"
516
- },
517
- variableDefinitions: [
518
- {
519
- kind: "VariableDefinition",
520
- variable: {
521
- kind: "Variable",
522
- name: {
523
- kind: "Name",
524
- value: "first"
525
- }
526
- },
527
- type: {
528
- kind: "NonNullType",
529
- type: {
530
- kind: "NamedType",
531
- name: {
532
- kind: "Name",
533
- value: "Int"
534
- }
535
- }
536
- }
537
- },
538
- {
539
- kind: "VariableDefinition",
540
- variable: {
541
- kind: "Variable",
542
- name: {
543
- kind: "Name",
544
- value: "page"
545
- }
546
- },
547
- type: {
548
- kind: "NamedType",
549
- name: {
550
- kind: "Name",
551
- value: "Int"
552
- }
553
- }
554
- },
555
- {
556
- kind: "VariableDefinition",
557
- variable: {
558
- kind: "Variable",
559
- name: {
560
- kind: "Name",
561
- value: "language"
562
- }
563
- },
564
- type: {
565
- kind: "NamedType",
566
- name: {
567
- kind: "Name",
568
- value: "String"
569
- }
570
- }
571
- },
572
- {
573
- kind: "VariableDefinition",
574
- variable: {
575
- kind: "Variable",
576
- name: {
577
- kind: "Name",
578
- value: "vofficeData"
579
- }
580
- },
581
- type: {
582
- kind: "NamedType",
583
- name: {
584
- kind: "Name",
585
- value: "VofficeData"
586
- }
587
- }
588
- },
589
- {
590
- kind: "VariableDefinition",
591
- variable: {
592
- kind: "Variable",
593
- name: {
594
- kind: "Name",
595
- value: "basicQueryInputs"
596
- }
597
- },
598
- type: {
599
- kind: "ListType",
600
- type: {
601
- kind: "NonNullType",
602
- type: {
603
- kind: "NamedType",
604
- name: {
605
- kind: "Name",
606
- value: "BasicQueryInput"
607
- }
608
- }
609
- }
610
- }
611
- },
612
- {
613
- kind: "VariableDefinition",
614
- variable: {
615
- kind: "Variable",
616
- name: {
617
- kind: "Name",
618
- value: "dataAttributes"
619
- }
620
- },
621
- type: {
622
- kind: "NonNullType",
623
- type: {
624
- kind: "ListType",
625
- type: {
626
- kind: "NonNullType",
627
- type: {
628
- kind: "NamedType",
629
- name: {
630
- kind: "Name",
631
- value: "String"
632
- }
633
- }
634
- }
635
- }
636
- },
637
- defaultValue: {
638
- kind: "ListValue",
639
- values: []
640
- }
641
- }
642
- ],
643
- selectionSet: {
644
- kind: "SelectionSet",
645
- selections: [{
646
- kind: "Field",
647
- name: {
648
- kind: "Name",
649
- value: "search"
650
- },
651
- arguments: [
652
- {
653
- kind: "Argument",
654
- name: {
655
- kind: "Name",
656
- value: "first"
657
- },
658
- value: {
659
- kind: "Variable",
660
- name: {
661
- kind: "Name",
662
- value: "first"
663
- }
664
- }
665
- },
666
- {
667
- kind: "Argument",
668
- name: {
669
- kind: "Name",
670
- value: "page"
671
- },
672
- value: {
673
- kind: "Variable",
674
- name: {
675
- kind: "Name",
676
- value: "page"
677
- }
678
- }
679
- },
680
- {
681
- kind: "Argument",
682
- name: {
683
- kind: "Name",
684
- value: "language"
685
- },
686
- value: {
687
- kind: "Variable",
688
- name: {
689
- kind: "Name",
690
- value: "language"
691
- }
692
- }
693
- },
694
- {
695
- kind: "Argument",
696
- name: {
697
- kind: "Name",
698
- value: "voffice"
699
- },
700
- value: {
701
- kind: "Variable",
702
- name: {
703
- kind: "Name",
704
- value: "vofficeData"
705
- }
706
- }
707
- },
708
- {
709
- kind: "Argument",
710
- name: {
711
- kind: "Name",
712
- value: "data"
713
- },
714
- value: {
715
- kind: "Variable",
716
- name: {
717
- kind: "Name",
718
- value: "basicQueryInputs"
719
- }
720
- }
721
- }
722
- ],
723
- selectionSet: {
724
- kind: "SelectionSet",
725
- selections: [{
726
- kind: "Field",
727
- name: {
728
- kind: "Name",
729
- value: "paginatorInfo"
730
- },
731
- selectionSet: {
732
- kind: "SelectionSet",
733
- selections: [{
734
- kind: "Field",
735
- name: {
736
- kind: "Name",
737
- value: "hasMorePages"
738
- }
739
- }, {
740
- kind: "Field",
741
- name: {
742
- kind: "Name",
743
- value: "currentPage"
744
- }
745
- }]
746
- }
747
- }, {
748
- kind: "Field",
749
- name: {
750
- kind: "Name",
751
- value: "data"
752
- },
753
- selectionSet: {
754
- kind: "SelectionSet",
755
- selections: [
756
- {
757
- kind: "Field",
758
- name: {
759
- kind: "Name",
760
- value: "voffice_id"
761
- }
762
- },
763
- {
764
- kind: "Field",
765
- name: {
766
- kind: "Name",
767
- value: "voffice_images"
768
- },
769
- selectionSet: {
770
- kind: "SelectionSet",
771
- selections: [
772
- {
773
- kind: "Field",
774
- name: {
775
- kind: "Name",
776
- value: "id"
777
- }
778
- },
779
- {
780
- kind: "Field",
781
- name: {
782
- kind: "Name",
783
- value: "path"
784
- }
785
- },
786
- {
787
- kind: "Field",
788
- name: {
789
- kind: "Name",
790
- value: "title"
791
- }
792
- },
793
- {
794
- kind: "Field",
795
- name: {
796
- kind: "Name",
797
- value: "description"
798
- }
799
- }
800
- ]
801
- }
802
- },
803
- {
804
- kind: "Field",
805
- name: {
806
- kind: "Name",
807
- value: "voffice_room_images"
808
- },
809
- selectionSet: {
810
- kind: "SelectionSet",
811
- selections: [
812
- {
813
- kind: "Field",
814
- name: {
815
- kind: "Name",
816
- value: "id"
817
- }
818
- },
819
- {
820
- kind: "Field",
821
- name: {
822
- kind: "Name",
823
- value: "path"
824
- }
825
- },
826
- {
827
- kind: "Field",
828
- name: {
829
- kind: "Name",
830
- value: "name"
831
- }
832
- },
833
- {
834
- kind: "Field",
835
- name: {
836
- kind: "Name",
837
- value: "title"
838
- }
839
- },
840
- {
841
- kind: "Field",
842
- name: {
843
- kind: "Name",
844
- value: "description"
845
- }
846
- }
847
- ]
848
- }
849
- },
850
- {
851
- kind: "Field",
852
- name: {
853
- kind: "Name",
854
- value: "additional_voffice_data"
855
- },
856
- selectionSet: {
857
- kind: "SelectionSet",
858
- selections: [{
859
- kind: "Field",
860
- name: {
861
- kind: "Name",
862
- value: "alternatives"
863
- },
864
- selectionSet: {
865
- kind: "SelectionSet",
866
- selections: [
867
- {
868
- kind: "Field",
869
- name: {
870
- kind: "Name",
871
- value: "fromdate"
872
- }
873
- },
874
- {
875
- kind: "Field",
876
- name: {
877
- kind: "Name",
878
- value: "tilldate"
879
- }
880
- },
881
- {
882
- kind: "Field",
883
- name: {
884
- kind: "Name",
885
- value: "calc"
886
- },
887
- selectionSet: {
888
- kind: "SelectionSet",
889
- selections: [
890
- {
891
- kind: "Field",
892
- name: {
893
- kind: "Name",
894
- value: "total"
895
- }
896
- },
897
- {
898
- kind: "Field",
899
- name: {
900
- kind: "Name",
901
- value: "rent"
902
- }
903
- },
904
- {
905
- kind: "Field",
906
- name: {
907
- kind: "Name",
908
- value: "summary"
909
- }
910
- },
911
- {
912
- kind: "Field",
913
- name: {
914
- kind: "Name",
915
- value: "oTotal"
916
- }
917
- },
918
- {
919
- kind: "Field",
920
- name: {
921
- kind: "Name",
922
- value: "oRent"
923
- }
924
- },
925
- {
926
- kind: "Field",
927
- name: {
928
- kind: "Name",
929
- value: "oSummary"
930
- }
931
- },
932
- {
933
- kind: "Field",
934
- name: {
935
- kind: "Name",
936
- value: "discountName"
937
- }
938
- }
939
- ]
940
- }
941
- }
942
- ]
943
- }
944
- }, {
945
- kind: "Field",
946
- name: {
947
- kind: "Name",
948
- value: "calc"
949
- },
950
- selectionSet: {
951
- kind: "SelectionSet",
952
- selections: [
953
- {
954
- kind: "Field",
955
- name: {
956
- kind: "Name",
957
- value: "total"
958
- }
959
- },
960
- {
961
- kind: "Field",
962
- name: {
963
- kind: "Name",
964
- value: "rent"
965
- }
966
- },
967
- {
968
- kind: "Field",
969
- name: {
970
- kind: "Name",
971
- value: "summary"
972
- }
973
- },
974
- {
975
- kind: "Field",
976
- name: {
977
- kind: "Name",
978
- value: "oTotal"
979
- }
980
- },
981
- {
982
- kind: "Field",
983
- name: {
984
- kind: "Name",
985
- value: "oRent"
986
- }
987
- },
988
- {
989
- kind: "Field",
990
- name: {
991
- kind: "Name",
992
- value: "oSummary"
993
- }
994
- },
995
- {
996
- kind: "Field",
997
- name: {
998
- kind: "Name",
999
- value: "discountName"
1000
- }
1001
- }
1002
- ]
1003
- }
1004
- }]
1005
- }
1006
- },
1007
- {
1008
- kind: "Field",
1009
- name: {
1010
- kind: "Name",
1011
- value: "data"
1012
- },
1013
- arguments: [{
1014
- kind: "Argument",
1015
- name: {
1016
- kind: "Name",
1017
- value: "attributes"
1018
- },
1019
- value: {
1020
- kind: "Variable",
1021
- name: {
1022
- kind: "Name",
1023
- value: "dataAttributes"
1024
- }
1025
- }
1026
- }]
1027
- }
1028
- ]
1029
- }
1030
- }]
1031
- }
1032
- }]
1033
- }
1034
- }]
1035
- }
1036
- };
1037
- function graphql(source) {
1038
- return documents[source] ?? {};
1039
- }
1040
- //#endregion
1041
- //#region scripts/v9/graphql-codegen/operations/rentals.ts
1042
- const rentalsAllQuery = graphql(`
1043
- query CMSSDK_RentalsAll(
1044
- $language: String
1045
- $voffice_ids: [Int!]
1046
- $rentalDataAttributes: [String!]! = []
1047
- $rentalFacilityDataAttributes: [String!]! = []
1048
- $rentalRatingDataAttributes: [String!]! = []
1049
- $rentalFeedbackDataAttributes: [String!]! = []
1050
- ) {
1051
- all(language: $language, voffice_ids: $voffice_ids) {
1052
- id
1053
- voffice_id
1054
- voffice_facility_id
1055
- name
1056
- publish
1057
- data(attributes: $rentalDataAttributes)
1058
- additional_voffice_data {
1059
- beds
1060
- }
1061
- voffice_facility {
1062
- id
1063
- voffice_id
1064
- name
1065
- publish
1066
- data(attributes: $rentalFacilityDataAttributes)
1067
- }
1068
- voffice_images {
1069
- id
1070
- path
1071
- title
1072
- description
1073
- }
1074
- voffice_room_images {
1075
- id
1076
- path
1077
- name
1078
- title
1079
- description
1080
- }
1081
- voffice_rating {
1082
- id
1083
- data(attributes: $rentalRatingDataAttributes)
1084
- }
1085
- voffice_feedbacks {
1086
- data(attributes: $rentalFeedbackDataAttributes)
1087
- }
1088
- }
1089
- }
1090
- `);
1091
- //#endregion
1092
- //#region scripts/v9/graphql-codegen/operations/search.ts
1093
- const searchQuery = graphql(`
1094
- query CMSSDK_Search(
1095
- $first: Int!
1096
- $page: Int
1097
- $language: String
1098
- $vofficeData: VofficeData
1099
- $basicQueryInputs: [BasicQueryInput!]
1100
- $dataAttributes: [String!]! = []
1101
- ) {
1102
- search(
1103
- first: $first
1104
- page: $page
1105
- language: $language
1106
- voffice: $vofficeData
1107
- data: $basicQueryInputs
1108
- ) {
1109
- paginatorInfo {
1110
- hasMorePages
1111
- currentPage
1112
- }
1113
- data {
1114
- voffice_id
1115
- voffice_images {
1116
- id
1117
- path
1118
- title
1119
- description
1120
- }
1121
- voffice_room_images {
1122
- id
1123
- path
1124
- name
1125
- title
1126
- description
1127
- }
1128
- additional_voffice_data {
1129
- alternatives {
1130
- fromdate
1131
- tilldate
1132
- calc {
1133
- total
1134
- rent
1135
- summary
1136
- oTotal
1137
- oRent
1138
- oSummary
1139
- discountName
1140
- }
1141
- }
1142
- calc {
1143
- total
1144
- rent
1145
- summary
1146
- oTotal
1147
- oRent
1148
- oSummary
1149
- discountName
1150
- }
1151
- }
1152
- data(attributes: $dataAttributes)
1153
- }
1154
- }
1155
- }
1156
- `);
1157
- //#endregion
1158
- export { rentalsAllQuery, searchQuery };