@v-office/website-sdk 1.2.0 → 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-Bo-gBDkQ.mjs → quote-1uEIO44v.mjs} +15 -16
  20. package/dist/{rentals-Ba6ZO6bX.mjs → rentals-Quwc78o2.mjs} +22 -138
  21. package/dist/{search-BofxXqF0.mjs → search-GRQeXDvo.mjs} +43 -24
  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-DYP0Y59i.mjs +0 -33236
  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-Bxhb0jmN.mjs +0 -1085
  42. package/dist/quote-BKcAIFuH.mjs +0 -513
  43. package/dist/quote-CRjV_lf-.mjs +0 -609
  44. package/dist/rentals-DBTPlC6X.mjs +0 -323
  45. package/dist/search-filter-metadata-DZP0-Udc.mjs +0 -4294
  46. package/dist/to-rental-highlights-BShYK50C.mjs +0 -402
@@ -1,1085 +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 path\n title\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
- kind: "Field",
773
- name: {
774
- kind: "Name",
775
- value: "path"
776
- }
777
- }, {
778
- kind: "Field",
779
- name: {
780
- kind: "Name",
781
- value: "title"
782
- }
783
- }]
784
- }
785
- },
786
- {
787
- kind: "Field",
788
- name: {
789
- kind: "Name",
790
- value: "additional_voffice_data"
791
- },
792
- selectionSet: {
793
- kind: "SelectionSet",
794
- selections: [{
795
- kind: "Field",
796
- name: {
797
- kind: "Name",
798
- value: "alternatives"
799
- },
800
- selectionSet: {
801
- kind: "SelectionSet",
802
- selections: [
803
- {
804
- kind: "Field",
805
- name: {
806
- kind: "Name",
807
- value: "fromdate"
808
- }
809
- },
810
- {
811
- kind: "Field",
812
- name: {
813
- kind: "Name",
814
- value: "tilldate"
815
- }
816
- },
817
- {
818
- kind: "Field",
819
- name: {
820
- kind: "Name",
821
- value: "calc"
822
- },
823
- selectionSet: {
824
- kind: "SelectionSet",
825
- selections: [
826
- {
827
- kind: "Field",
828
- name: {
829
- kind: "Name",
830
- value: "total"
831
- }
832
- },
833
- {
834
- kind: "Field",
835
- name: {
836
- kind: "Name",
837
- value: "rent"
838
- }
839
- },
840
- {
841
- kind: "Field",
842
- name: {
843
- kind: "Name",
844
- value: "summary"
845
- }
846
- },
847
- {
848
- kind: "Field",
849
- name: {
850
- kind: "Name",
851
- value: "oTotal"
852
- }
853
- },
854
- {
855
- kind: "Field",
856
- name: {
857
- kind: "Name",
858
- value: "oRent"
859
- }
860
- },
861
- {
862
- kind: "Field",
863
- name: {
864
- kind: "Name",
865
- value: "oSummary"
866
- }
867
- },
868
- {
869
- kind: "Field",
870
- name: {
871
- kind: "Name",
872
- value: "discountName"
873
- }
874
- }
875
- ]
876
- }
877
- }
878
- ]
879
- }
880
- }, {
881
- kind: "Field",
882
- name: {
883
- kind: "Name",
884
- value: "calc"
885
- },
886
- selectionSet: {
887
- kind: "SelectionSet",
888
- selections: [
889
- {
890
- kind: "Field",
891
- name: {
892
- kind: "Name",
893
- value: "total"
894
- }
895
- },
896
- {
897
- kind: "Field",
898
- name: {
899
- kind: "Name",
900
- value: "rent"
901
- }
902
- },
903
- {
904
- kind: "Field",
905
- name: {
906
- kind: "Name",
907
- value: "summary"
908
- }
909
- },
910
- {
911
- kind: "Field",
912
- name: {
913
- kind: "Name",
914
- value: "oTotal"
915
- }
916
- },
917
- {
918
- kind: "Field",
919
- name: {
920
- kind: "Name",
921
- value: "oRent"
922
- }
923
- },
924
- {
925
- kind: "Field",
926
- name: {
927
- kind: "Name",
928
- value: "oSummary"
929
- }
930
- },
931
- {
932
- kind: "Field",
933
- name: {
934
- kind: "Name",
935
- value: "discountName"
936
- }
937
- }
938
- ]
939
- }
940
- }]
941
- }
942
- },
943
- {
944
- kind: "Field",
945
- name: {
946
- kind: "Name",
947
- value: "data"
948
- },
949
- arguments: [{
950
- kind: "Argument",
951
- name: {
952
- kind: "Name",
953
- value: "attributes"
954
- },
955
- value: {
956
- kind: "Variable",
957
- name: {
958
- kind: "Name",
959
- value: "dataAttributes"
960
- }
961
- }
962
- }]
963
- }
964
- ]
965
- }
966
- }]
967
- }
968
- }]
969
- }
970
- }]
971
- }
972
- };
973
- function graphql(source) {
974
- return documents[source] ?? {};
975
- }
976
- //#endregion
977
- //#region scripts/v9/graphql-codegen/operations/rentals.ts
978
- const rentalsAllQuery = graphql(`
979
- query CMSSDK_RentalsAll(
980
- $language: String
981
- $voffice_ids: [Int!]
982
- $rentalDataAttributes: [String!]! = []
983
- $rentalFacilityDataAttributes: [String!]! = []
984
- $rentalRatingDataAttributes: [String!]! = []
985
- $rentalFeedbackDataAttributes: [String!]! = []
986
- ) {
987
- all(language: $language, voffice_ids: $voffice_ids) {
988
- id
989
- voffice_id
990
- voffice_facility_id
991
- name
992
- publish
993
- data(attributes: $rentalDataAttributes)
994
- additional_voffice_data {
995
- beds
996
- }
997
- voffice_facility {
998
- id
999
- voffice_id
1000
- name
1001
- publish
1002
- data(attributes: $rentalFacilityDataAttributes)
1003
- }
1004
- voffice_images {
1005
- id
1006
- path
1007
- title
1008
- description
1009
- }
1010
- voffice_room_images {
1011
- id
1012
- path
1013
- name
1014
- title
1015
- description
1016
- }
1017
- voffice_rating {
1018
- id
1019
- data(attributes: $rentalRatingDataAttributes)
1020
- }
1021
- voffice_feedbacks {
1022
- data(attributes: $rentalFeedbackDataAttributes)
1023
- }
1024
- }
1025
- }
1026
- `);
1027
- //#endregion
1028
- //#region scripts/v9/graphql-codegen/operations/search.ts
1029
- const searchQuery = graphql(`
1030
- query CMSSDK_Search(
1031
- $first: Int!
1032
- $page: Int
1033
- $language: String
1034
- $vofficeData: VofficeData
1035
- $basicQueryInputs: [BasicQueryInput!]
1036
- $dataAttributes: [String!]! = []
1037
- ) {
1038
- search(
1039
- first: $first
1040
- page: $page
1041
- language: $language
1042
- voffice: $vofficeData
1043
- data: $basicQueryInputs
1044
- ) {
1045
- paginatorInfo {
1046
- hasMorePages
1047
- currentPage
1048
- }
1049
- data {
1050
- voffice_id
1051
- voffice_images {
1052
- path
1053
- title
1054
- }
1055
- additional_voffice_data {
1056
- alternatives {
1057
- fromdate
1058
- tilldate
1059
- calc {
1060
- total
1061
- rent
1062
- summary
1063
- oTotal
1064
- oRent
1065
- oSummary
1066
- discountName
1067
- }
1068
- }
1069
- calc {
1070
- total
1071
- rent
1072
- summary
1073
- oTotal
1074
- oRent
1075
- oSummary
1076
- discountName
1077
- }
1078
- }
1079
- data(attributes: $dataAttributes)
1080
- }
1081
- }
1082
- }
1083
- `);
1084
- //#endregion
1085
- export { rentalsAllQuery, searchQuery };