@v-office/website-sdk 2.17.1 → 2.18.1

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 (44) hide show
  1. package/README.md +18 -0
  2. package/dist/cli.mjs +10 -11
  3. package/dist/{client-yYl7H82t.mjs → client-BnA0oXd_.mjs} +220 -23
  4. package/dist/index.d.mts +48 -2
  5. package/dist/index.mjs +2 -2
  6. package/dist/instructions/CHANGELOG.md +26 -27
  7. package/dist/instructions/MIGRATION.md +26 -27
  8. package/dist/instructions/README.md +7 -2
  9. package/dist/instructions/availability.md +9 -7
  10. package/dist/instructions/creation.md +46 -1
  11. package/dist/instructions/custom-attributes.md +7 -0
  12. package/dist/instructions/quote.md +8 -0
  13. package/dist/instructions/rentals.md +130 -2
  14. package/dist/instructions/versions/2.18.0/CHANGELOG.md +133 -0
  15. package/dist/instructions/versions/2.18.0/MIGRATION.md +364 -0
  16. package/dist/instructions/versions/2.18.1/CHANGELOG.md +16 -0
  17. package/dist/instructions/versions/2.18.1/MIGRATION.md +12 -0
  18. package/dist/{quote-C-Bs3XTE.mjs → quote-cjFdLn0m.mjs} +1 -0
  19. package/dist/{rentals-BokBV-ze.mjs → rentals-GfJVIv7i.mjs} +205 -12
  20. package/dist/{search-DkXUHJt8.mjs → search-CR1UjnmR.mjs} +3 -2
  21. package/dist/to-rental-highlights-CJvDxSLw.mjs +3035 -0
  22. package/dist/translations/v10/de-DE/core.json +1 -1
  23. package/dist/translations/v9/de-DE/core.json +7 -1
  24. package/dist/translations/v9/en-US/core.json +7 -1
  25. package/dist/{to-rental-highlights-BAsEuxoy.mjs → v9-data-BnYxa2Ek.mjs} +21 -2435
  26. package/instructions/CHANGELOG.md +26 -27
  27. package/instructions/MIGRATION.md +26 -27
  28. package/instructions/README.md +7 -2
  29. package/instructions/availability.md +9 -7
  30. package/instructions/creation.md +46 -1
  31. package/instructions/custom-attributes.md +7 -0
  32. package/instructions/quote.md +8 -0
  33. package/instructions/rentals.md +130 -2
  34. package/instructions/versions/2.18.0/CHANGELOG.md +133 -0
  35. package/instructions/versions/2.18.0/MIGRATION.md +364 -0
  36. package/instructions/versions/2.18.0/release.json +3 -0
  37. package/instructions/versions/2.18.1/CHANGELOG.md +16 -0
  38. package/instructions/versions/2.18.1/MIGRATION.md +12 -0
  39. package/instructions/versions/2.18.1/release.json +3 -0
  40. package/package.json +8 -7
  41. package/dist/instructions/versions/2.6.0/CHANGELOG.md +0 -6
  42. package/dist/instructions/versions/2.6.0/MIGRATION.md +0 -6
  43. package/instructions/versions/2.6.0/CHANGELOG.md +0 -6
  44. package/instructions/versions/2.6.0/MIGRATION.md +0 -6
@@ -0,0 +1,3035 @@
1
+ import { i as VofficeUnitDataPropertyMetadata } from "./v9-data-BnYxa2Ek.mjs";
2
+ import { localeToLanguage, makeTranslate, renderLabeledAttributeValue, renderResolvedCustomAttribute, toCountry } from "@v-office/sdk-core";
3
+ import { Effect } from "effect";
4
+ //#endregion
5
+ //#region codegen/v9/graphql-codegen/generated/gql.ts
6
+ const documents = {
7
+ "\n query CoreSDK_RentalIds {\n all {\n voffice_id\n }\n }\n": {
8
+ kind: "Document",
9
+ definitions: [{
10
+ kind: "OperationDefinition",
11
+ operation: "query",
12
+ name: {
13
+ kind: "Name",
14
+ value: "CoreSDK_RentalIds"
15
+ },
16
+ selectionSet: {
17
+ kind: "SelectionSet",
18
+ selections: [{
19
+ kind: "Field",
20
+ name: {
21
+ kind: "Name",
22
+ value: "all"
23
+ },
24
+ selectionSet: {
25
+ kind: "SelectionSet",
26
+ selections: [{
27
+ kind: "Field",
28
+ name: {
29
+ kind: "Name",
30
+ value: "voffice_id"
31
+ }
32
+ }]
33
+ }
34
+ }]
35
+ }
36
+ }]
37
+ },
38
+ "\n query CoreSDK_RentalsAllWithoutFeedbacks(\n $language: String\n $voffice_ids: [Int!]\n $rentalDataAttributes: [String!]! = []\n $rentalFacilityDataAttributes: [String!]! = []\n $rentalRatingDataAttributes: [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 }\n }\n": {
39
+ kind: "Document",
40
+ definitions: [{
41
+ kind: "OperationDefinition",
42
+ operation: "query",
43
+ name: {
44
+ kind: "Name",
45
+ value: "CoreSDK_RentalsAllWithoutFeedbacks"
46
+ },
47
+ variableDefinitions: [
48
+ {
49
+ kind: "VariableDefinition",
50
+ variable: {
51
+ kind: "Variable",
52
+ name: {
53
+ kind: "Name",
54
+ value: "language"
55
+ }
56
+ },
57
+ type: {
58
+ kind: "NamedType",
59
+ name: {
60
+ kind: "Name",
61
+ value: "String"
62
+ }
63
+ }
64
+ },
65
+ {
66
+ kind: "VariableDefinition",
67
+ variable: {
68
+ kind: "Variable",
69
+ name: {
70
+ kind: "Name",
71
+ value: "voffice_ids"
72
+ }
73
+ },
74
+ type: {
75
+ kind: "ListType",
76
+ type: {
77
+ kind: "NonNullType",
78
+ type: {
79
+ kind: "NamedType",
80
+ name: {
81
+ kind: "Name",
82
+ value: "Int"
83
+ }
84
+ }
85
+ }
86
+ }
87
+ },
88
+ {
89
+ kind: "VariableDefinition",
90
+ variable: {
91
+ kind: "Variable",
92
+ name: {
93
+ kind: "Name",
94
+ value: "rentalDataAttributes"
95
+ }
96
+ },
97
+ type: {
98
+ kind: "NonNullType",
99
+ type: {
100
+ kind: "ListType",
101
+ type: {
102
+ kind: "NonNullType",
103
+ type: {
104
+ kind: "NamedType",
105
+ name: {
106
+ kind: "Name",
107
+ value: "String"
108
+ }
109
+ }
110
+ }
111
+ }
112
+ },
113
+ defaultValue: {
114
+ kind: "ListValue",
115
+ values: []
116
+ }
117
+ },
118
+ {
119
+ kind: "VariableDefinition",
120
+ variable: {
121
+ kind: "Variable",
122
+ name: {
123
+ kind: "Name",
124
+ value: "rentalFacilityDataAttributes"
125
+ }
126
+ },
127
+ type: {
128
+ kind: "NonNullType",
129
+ type: {
130
+ kind: "ListType",
131
+ type: {
132
+ kind: "NonNullType",
133
+ type: {
134
+ kind: "NamedType",
135
+ name: {
136
+ kind: "Name",
137
+ value: "String"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ },
143
+ defaultValue: {
144
+ kind: "ListValue",
145
+ values: []
146
+ }
147
+ },
148
+ {
149
+ kind: "VariableDefinition",
150
+ variable: {
151
+ kind: "Variable",
152
+ name: {
153
+ kind: "Name",
154
+ value: "rentalRatingDataAttributes"
155
+ }
156
+ },
157
+ type: {
158
+ kind: "NonNullType",
159
+ type: {
160
+ kind: "ListType",
161
+ type: {
162
+ kind: "NonNullType",
163
+ type: {
164
+ kind: "NamedType",
165
+ name: {
166
+ kind: "Name",
167
+ value: "String"
168
+ }
169
+ }
170
+ }
171
+ }
172
+ },
173
+ defaultValue: {
174
+ kind: "ListValue",
175
+ values: []
176
+ }
177
+ }
178
+ ],
179
+ selectionSet: {
180
+ kind: "SelectionSet",
181
+ selections: [{
182
+ kind: "Field",
183
+ name: {
184
+ kind: "Name",
185
+ value: "all"
186
+ },
187
+ arguments: [{
188
+ kind: "Argument",
189
+ name: {
190
+ kind: "Name",
191
+ value: "language"
192
+ },
193
+ value: {
194
+ kind: "Variable",
195
+ name: {
196
+ kind: "Name",
197
+ value: "language"
198
+ }
199
+ }
200
+ }, {
201
+ kind: "Argument",
202
+ name: {
203
+ kind: "Name",
204
+ value: "voffice_ids"
205
+ },
206
+ value: {
207
+ kind: "Variable",
208
+ name: {
209
+ kind: "Name",
210
+ value: "voffice_ids"
211
+ }
212
+ }
213
+ }],
214
+ selectionSet: {
215
+ kind: "SelectionSet",
216
+ selections: [
217
+ {
218
+ kind: "Field",
219
+ name: {
220
+ kind: "Name",
221
+ value: "id"
222
+ }
223
+ },
224
+ {
225
+ kind: "Field",
226
+ name: {
227
+ kind: "Name",
228
+ value: "voffice_id"
229
+ }
230
+ },
231
+ {
232
+ kind: "Field",
233
+ name: {
234
+ kind: "Name",
235
+ value: "voffice_facility_id"
236
+ }
237
+ },
238
+ {
239
+ kind: "Field",
240
+ name: {
241
+ kind: "Name",
242
+ value: "name"
243
+ }
244
+ },
245
+ {
246
+ kind: "Field",
247
+ name: {
248
+ kind: "Name",
249
+ value: "publish"
250
+ }
251
+ },
252
+ {
253
+ kind: "Field",
254
+ name: {
255
+ kind: "Name",
256
+ value: "data"
257
+ },
258
+ arguments: [{
259
+ kind: "Argument",
260
+ name: {
261
+ kind: "Name",
262
+ value: "attributes"
263
+ },
264
+ value: {
265
+ kind: "Variable",
266
+ name: {
267
+ kind: "Name",
268
+ value: "rentalDataAttributes"
269
+ }
270
+ }
271
+ }]
272
+ },
273
+ {
274
+ kind: "Field",
275
+ name: {
276
+ kind: "Name",
277
+ value: "additional_voffice_data"
278
+ },
279
+ selectionSet: {
280
+ kind: "SelectionSet",
281
+ selections: [{
282
+ kind: "Field",
283
+ name: {
284
+ kind: "Name",
285
+ value: "beds"
286
+ }
287
+ }]
288
+ }
289
+ },
290
+ {
291
+ kind: "Field",
292
+ name: {
293
+ kind: "Name",
294
+ value: "voffice_facility"
295
+ },
296
+ selectionSet: {
297
+ kind: "SelectionSet",
298
+ selections: [
299
+ {
300
+ kind: "Field",
301
+ name: {
302
+ kind: "Name",
303
+ value: "id"
304
+ }
305
+ },
306
+ {
307
+ kind: "Field",
308
+ name: {
309
+ kind: "Name",
310
+ value: "voffice_id"
311
+ }
312
+ },
313
+ {
314
+ kind: "Field",
315
+ name: {
316
+ kind: "Name",
317
+ value: "name"
318
+ }
319
+ },
320
+ {
321
+ kind: "Field",
322
+ name: {
323
+ kind: "Name",
324
+ value: "publish"
325
+ }
326
+ },
327
+ {
328
+ kind: "Field",
329
+ name: {
330
+ kind: "Name",
331
+ value: "data"
332
+ },
333
+ arguments: [{
334
+ kind: "Argument",
335
+ name: {
336
+ kind: "Name",
337
+ value: "attributes"
338
+ },
339
+ value: {
340
+ kind: "Variable",
341
+ name: {
342
+ kind: "Name",
343
+ value: "rentalFacilityDataAttributes"
344
+ }
345
+ }
346
+ }]
347
+ }
348
+ ]
349
+ }
350
+ },
351
+ {
352
+ kind: "Field",
353
+ name: {
354
+ kind: "Name",
355
+ value: "voffice_images"
356
+ },
357
+ selectionSet: {
358
+ kind: "SelectionSet",
359
+ selections: [
360
+ {
361
+ kind: "Field",
362
+ name: {
363
+ kind: "Name",
364
+ value: "id"
365
+ }
366
+ },
367
+ {
368
+ kind: "Field",
369
+ name: {
370
+ kind: "Name",
371
+ value: "path"
372
+ }
373
+ },
374
+ {
375
+ kind: "Field",
376
+ name: {
377
+ kind: "Name",
378
+ value: "title"
379
+ }
380
+ },
381
+ {
382
+ kind: "Field",
383
+ name: {
384
+ kind: "Name",
385
+ value: "description"
386
+ }
387
+ }
388
+ ]
389
+ }
390
+ },
391
+ {
392
+ kind: "Field",
393
+ name: {
394
+ kind: "Name",
395
+ value: "voffice_room_images"
396
+ },
397
+ selectionSet: {
398
+ kind: "SelectionSet",
399
+ selections: [
400
+ {
401
+ kind: "Field",
402
+ name: {
403
+ kind: "Name",
404
+ value: "id"
405
+ }
406
+ },
407
+ {
408
+ kind: "Field",
409
+ name: {
410
+ kind: "Name",
411
+ value: "path"
412
+ }
413
+ },
414
+ {
415
+ kind: "Field",
416
+ name: {
417
+ kind: "Name",
418
+ value: "name"
419
+ }
420
+ },
421
+ {
422
+ kind: "Field",
423
+ name: {
424
+ kind: "Name",
425
+ value: "title"
426
+ }
427
+ },
428
+ {
429
+ kind: "Field",
430
+ name: {
431
+ kind: "Name",
432
+ value: "description"
433
+ }
434
+ }
435
+ ]
436
+ }
437
+ },
438
+ {
439
+ kind: "Field",
440
+ name: {
441
+ kind: "Name",
442
+ value: "voffice_rating"
443
+ },
444
+ selectionSet: {
445
+ kind: "SelectionSet",
446
+ selections: [{
447
+ kind: "Field",
448
+ name: {
449
+ kind: "Name",
450
+ value: "id"
451
+ }
452
+ }, {
453
+ kind: "Field",
454
+ name: {
455
+ kind: "Name",
456
+ value: "data"
457
+ },
458
+ arguments: [{
459
+ kind: "Argument",
460
+ name: {
461
+ kind: "Name",
462
+ value: "attributes"
463
+ },
464
+ value: {
465
+ kind: "Variable",
466
+ name: {
467
+ kind: "Name",
468
+ value: "rentalRatingDataAttributes"
469
+ }
470
+ }
471
+ }]
472
+ }]
473
+ }
474
+ }
475
+ ]
476
+ }
477
+ }]
478
+ }
479
+ }]
480
+ },
481
+ "\n query CoreSDK_RentalsAllByFacilityObjectGroupsWithoutFeedbacks(\n $language: String\n $voffice_ids: [Int!]\n $rentalDataAttributes: [String!]! = []\n $rentalRatingDataAttributes: [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_groups {\n voffice_group_id\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 }\n }\n": {
482
+ kind: "Document",
483
+ definitions: [{
484
+ kind: "OperationDefinition",
485
+ operation: "query",
486
+ name: {
487
+ kind: "Name",
488
+ value: "CoreSDK_RentalsAllByFacilityObjectGroupsWithoutFeedbacks"
489
+ },
490
+ variableDefinitions: [
491
+ {
492
+ kind: "VariableDefinition",
493
+ variable: {
494
+ kind: "Variable",
495
+ name: {
496
+ kind: "Name",
497
+ value: "language"
498
+ }
499
+ },
500
+ type: {
501
+ kind: "NamedType",
502
+ name: {
503
+ kind: "Name",
504
+ value: "String"
505
+ }
506
+ }
507
+ },
508
+ {
509
+ kind: "VariableDefinition",
510
+ variable: {
511
+ kind: "Variable",
512
+ name: {
513
+ kind: "Name",
514
+ value: "voffice_ids"
515
+ }
516
+ },
517
+ type: {
518
+ kind: "ListType",
519
+ type: {
520
+ kind: "NonNullType",
521
+ type: {
522
+ kind: "NamedType",
523
+ name: {
524
+ kind: "Name",
525
+ value: "Int"
526
+ }
527
+ }
528
+ }
529
+ }
530
+ },
531
+ {
532
+ kind: "VariableDefinition",
533
+ variable: {
534
+ kind: "Variable",
535
+ name: {
536
+ kind: "Name",
537
+ value: "rentalDataAttributes"
538
+ }
539
+ },
540
+ type: {
541
+ kind: "NonNullType",
542
+ type: {
543
+ kind: "ListType",
544
+ type: {
545
+ kind: "NonNullType",
546
+ type: {
547
+ kind: "NamedType",
548
+ name: {
549
+ kind: "Name",
550
+ value: "String"
551
+ }
552
+ }
553
+ }
554
+ }
555
+ },
556
+ defaultValue: {
557
+ kind: "ListValue",
558
+ values: []
559
+ }
560
+ },
561
+ {
562
+ kind: "VariableDefinition",
563
+ variable: {
564
+ kind: "Variable",
565
+ name: {
566
+ kind: "Name",
567
+ value: "rentalRatingDataAttributes"
568
+ }
569
+ },
570
+ type: {
571
+ kind: "NonNullType",
572
+ type: {
573
+ kind: "ListType",
574
+ type: {
575
+ kind: "NonNullType",
576
+ type: {
577
+ kind: "NamedType",
578
+ name: {
579
+ kind: "Name",
580
+ value: "String"
581
+ }
582
+ }
583
+ }
584
+ }
585
+ },
586
+ defaultValue: {
587
+ kind: "ListValue",
588
+ values: []
589
+ }
590
+ }
591
+ ],
592
+ selectionSet: {
593
+ kind: "SelectionSet",
594
+ selections: [{
595
+ kind: "Field",
596
+ name: {
597
+ kind: "Name",
598
+ value: "all"
599
+ },
600
+ arguments: [{
601
+ kind: "Argument",
602
+ name: {
603
+ kind: "Name",
604
+ value: "language"
605
+ },
606
+ value: {
607
+ kind: "Variable",
608
+ name: {
609
+ kind: "Name",
610
+ value: "language"
611
+ }
612
+ }
613
+ }, {
614
+ kind: "Argument",
615
+ name: {
616
+ kind: "Name",
617
+ value: "voffice_ids"
618
+ },
619
+ value: {
620
+ kind: "Variable",
621
+ name: {
622
+ kind: "Name",
623
+ value: "voffice_ids"
624
+ }
625
+ }
626
+ }],
627
+ selectionSet: {
628
+ kind: "SelectionSet",
629
+ selections: [
630
+ {
631
+ kind: "Field",
632
+ name: {
633
+ kind: "Name",
634
+ value: "id"
635
+ }
636
+ },
637
+ {
638
+ kind: "Field",
639
+ name: {
640
+ kind: "Name",
641
+ value: "voffice_id"
642
+ }
643
+ },
644
+ {
645
+ kind: "Field",
646
+ name: {
647
+ kind: "Name",
648
+ value: "voffice_facility_id"
649
+ }
650
+ },
651
+ {
652
+ kind: "Field",
653
+ name: {
654
+ kind: "Name",
655
+ value: "name"
656
+ }
657
+ },
658
+ {
659
+ kind: "Field",
660
+ name: {
661
+ kind: "Name",
662
+ value: "publish"
663
+ }
664
+ },
665
+ {
666
+ kind: "Field",
667
+ name: {
668
+ kind: "Name",
669
+ value: "data"
670
+ },
671
+ arguments: [{
672
+ kind: "Argument",
673
+ name: {
674
+ kind: "Name",
675
+ value: "attributes"
676
+ },
677
+ value: {
678
+ kind: "Variable",
679
+ name: {
680
+ kind: "Name",
681
+ value: "rentalDataAttributes"
682
+ }
683
+ }
684
+ }]
685
+ },
686
+ {
687
+ kind: "Field",
688
+ name: {
689
+ kind: "Name",
690
+ value: "additional_voffice_data"
691
+ },
692
+ selectionSet: {
693
+ kind: "SelectionSet",
694
+ selections: [{
695
+ kind: "Field",
696
+ name: {
697
+ kind: "Name",
698
+ value: "beds"
699
+ }
700
+ }]
701
+ }
702
+ },
703
+ {
704
+ kind: "Field",
705
+ name: {
706
+ kind: "Name",
707
+ value: "voffice_groups"
708
+ },
709
+ selectionSet: {
710
+ kind: "SelectionSet",
711
+ selections: [{
712
+ kind: "Field",
713
+ name: {
714
+ kind: "Name",
715
+ value: "voffice_group_id"
716
+ }
717
+ }]
718
+ }
719
+ },
720
+ {
721
+ kind: "Field",
722
+ name: {
723
+ kind: "Name",
724
+ value: "voffice_images"
725
+ },
726
+ selectionSet: {
727
+ kind: "SelectionSet",
728
+ selections: [
729
+ {
730
+ kind: "Field",
731
+ name: {
732
+ kind: "Name",
733
+ value: "id"
734
+ }
735
+ },
736
+ {
737
+ kind: "Field",
738
+ name: {
739
+ kind: "Name",
740
+ value: "path"
741
+ }
742
+ },
743
+ {
744
+ kind: "Field",
745
+ name: {
746
+ kind: "Name",
747
+ value: "title"
748
+ }
749
+ },
750
+ {
751
+ kind: "Field",
752
+ name: {
753
+ kind: "Name",
754
+ value: "description"
755
+ }
756
+ }
757
+ ]
758
+ }
759
+ },
760
+ {
761
+ kind: "Field",
762
+ name: {
763
+ kind: "Name",
764
+ value: "voffice_room_images"
765
+ },
766
+ selectionSet: {
767
+ kind: "SelectionSet",
768
+ selections: [
769
+ {
770
+ kind: "Field",
771
+ name: {
772
+ kind: "Name",
773
+ value: "id"
774
+ }
775
+ },
776
+ {
777
+ kind: "Field",
778
+ name: {
779
+ kind: "Name",
780
+ value: "path"
781
+ }
782
+ },
783
+ {
784
+ kind: "Field",
785
+ name: {
786
+ kind: "Name",
787
+ value: "name"
788
+ }
789
+ },
790
+ {
791
+ kind: "Field",
792
+ name: {
793
+ kind: "Name",
794
+ value: "title"
795
+ }
796
+ },
797
+ {
798
+ kind: "Field",
799
+ name: {
800
+ kind: "Name",
801
+ value: "description"
802
+ }
803
+ }
804
+ ]
805
+ }
806
+ },
807
+ {
808
+ kind: "Field",
809
+ name: {
810
+ kind: "Name",
811
+ value: "voffice_rating"
812
+ },
813
+ selectionSet: {
814
+ kind: "SelectionSet",
815
+ selections: [{
816
+ kind: "Field",
817
+ name: {
818
+ kind: "Name",
819
+ value: "id"
820
+ }
821
+ }, {
822
+ kind: "Field",
823
+ name: {
824
+ kind: "Name",
825
+ value: "data"
826
+ },
827
+ arguments: [{
828
+ kind: "Argument",
829
+ name: {
830
+ kind: "Name",
831
+ value: "attributes"
832
+ },
833
+ value: {
834
+ kind: "Variable",
835
+ name: {
836
+ kind: "Name",
837
+ value: "rentalRatingDataAttributes"
838
+ }
839
+ }
840
+ }]
841
+ }]
842
+ }
843
+ }
844
+ ]
845
+ }
846
+ }]
847
+ }
848
+ }]
849
+ },
850
+ "\n query CoreSDK_RentalFacilitiesForObjectGroupRelation(\n $language: String\n $rentalFacilityDataAttributes: [String!]! = []\n ) {\n facilities: voffice_facilities(language: $language) {\n id\n voffice_id\n name\n publish\n data(attributes: $rentalFacilityDataAttributes)\n }\n }\n": {
851
+ kind: "Document",
852
+ definitions: [{
853
+ kind: "OperationDefinition",
854
+ operation: "query",
855
+ name: {
856
+ kind: "Name",
857
+ value: "CoreSDK_RentalFacilitiesForObjectGroupRelation"
858
+ },
859
+ variableDefinitions: [{
860
+ kind: "VariableDefinition",
861
+ variable: {
862
+ kind: "Variable",
863
+ name: {
864
+ kind: "Name",
865
+ value: "language"
866
+ }
867
+ },
868
+ type: {
869
+ kind: "NamedType",
870
+ name: {
871
+ kind: "Name",
872
+ value: "String"
873
+ }
874
+ }
875
+ }, {
876
+ kind: "VariableDefinition",
877
+ variable: {
878
+ kind: "Variable",
879
+ name: {
880
+ kind: "Name",
881
+ value: "rentalFacilityDataAttributes"
882
+ }
883
+ },
884
+ type: {
885
+ kind: "NonNullType",
886
+ type: {
887
+ kind: "ListType",
888
+ type: {
889
+ kind: "NonNullType",
890
+ type: {
891
+ kind: "NamedType",
892
+ name: {
893
+ kind: "Name",
894
+ value: "String"
895
+ }
896
+ }
897
+ }
898
+ }
899
+ },
900
+ defaultValue: {
901
+ kind: "ListValue",
902
+ values: []
903
+ }
904
+ }],
905
+ selectionSet: {
906
+ kind: "SelectionSet",
907
+ selections: [{
908
+ kind: "Field",
909
+ alias: {
910
+ kind: "Name",
911
+ value: "facilities"
912
+ },
913
+ name: {
914
+ kind: "Name",
915
+ value: "voffice_facilities"
916
+ },
917
+ arguments: [{
918
+ kind: "Argument",
919
+ name: {
920
+ kind: "Name",
921
+ value: "language"
922
+ },
923
+ value: {
924
+ kind: "Variable",
925
+ name: {
926
+ kind: "Name",
927
+ value: "language"
928
+ }
929
+ }
930
+ }],
931
+ selectionSet: {
932
+ kind: "SelectionSet",
933
+ selections: [
934
+ {
935
+ kind: "Field",
936
+ name: {
937
+ kind: "Name",
938
+ value: "id"
939
+ }
940
+ },
941
+ {
942
+ kind: "Field",
943
+ name: {
944
+ kind: "Name",
945
+ value: "voffice_id"
946
+ }
947
+ },
948
+ {
949
+ kind: "Field",
950
+ name: {
951
+ kind: "Name",
952
+ value: "name"
953
+ }
954
+ },
955
+ {
956
+ kind: "Field",
957
+ name: {
958
+ kind: "Name",
959
+ value: "publish"
960
+ }
961
+ },
962
+ {
963
+ kind: "Field",
964
+ name: {
965
+ kind: "Name",
966
+ value: "data"
967
+ },
968
+ arguments: [{
969
+ kind: "Argument",
970
+ name: {
971
+ kind: "Name",
972
+ value: "attributes"
973
+ },
974
+ value: {
975
+ kind: "Variable",
976
+ name: {
977
+ kind: "Name",
978
+ value: "rentalFacilityDataAttributes"
979
+ }
980
+ }
981
+ }]
982
+ }
983
+ ]
984
+ }
985
+ }]
986
+ }
987
+ }]
988
+ },
989
+ "\n query CoreSDK_RentalsAllFeedbacks(\n $language: String\n $voffice_ids: [Int!]\n $rentalFeedbackDataAttributes: [String!]! = []\n ) {\n all(language: $language, voffice_ids: $voffice_ids) {\n voffice_id\n voffice_feedbacks {\n data(attributes: $rentalFeedbackDataAttributes)\n }\n }\n }\n": {
990
+ kind: "Document",
991
+ definitions: [{
992
+ kind: "OperationDefinition",
993
+ operation: "query",
994
+ name: {
995
+ kind: "Name",
996
+ value: "CoreSDK_RentalsAllFeedbacks"
997
+ },
998
+ variableDefinitions: [
999
+ {
1000
+ kind: "VariableDefinition",
1001
+ variable: {
1002
+ kind: "Variable",
1003
+ name: {
1004
+ kind: "Name",
1005
+ value: "language"
1006
+ }
1007
+ },
1008
+ type: {
1009
+ kind: "NamedType",
1010
+ name: {
1011
+ kind: "Name",
1012
+ value: "String"
1013
+ }
1014
+ }
1015
+ },
1016
+ {
1017
+ kind: "VariableDefinition",
1018
+ variable: {
1019
+ kind: "Variable",
1020
+ name: {
1021
+ kind: "Name",
1022
+ value: "voffice_ids"
1023
+ }
1024
+ },
1025
+ type: {
1026
+ kind: "ListType",
1027
+ type: {
1028
+ kind: "NonNullType",
1029
+ type: {
1030
+ kind: "NamedType",
1031
+ name: {
1032
+ kind: "Name",
1033
+ value: "Int"
1034
+ }
1035
+ }
1036
+ }
1037
+ }
1038
+ },
1039
+ {
1040
+ kind: "VariableDefinition",
1041
+ variable: {
1042
+ kind: "Variable",
1043
+ name: {
1044
+ kind: "Name",
1045
+ value: "rentalFeedbackDataAttributes"
1046
+ }
1047
+ },
1048
+ type: {
1049
+ kind: "NonNullType",
1050
+ type: {
1051
+ kind: "ListType",
1052
+ type: {
1053
+ kind: "NonNullType",
1054
+ type: {
1055
+ kind: "NamedType",
1056
+ name: {
1057
+ kind: "Name",
1058
+ value: "String"
1059
+ }
1060
+ }
1061
+ }
1062
+ }
1063
+ },
1064
+ defaultValue: {
1065
+ kind: "ListValue",
1066
+ values: []
1067
+ }
1068
+ }
1069
+ ],
1070
+ selectionSet: {
1071
+ kind: "SelectionSet",
1072
+ selections: [{
1073
+ kind: "Field",
1074
+ name: {
1075
+ kind: "Name",
1076
+ value: "all"
1077
+ },
1078
+ arguments: [{
1079
+ kind: "Argument",
1080
+ name: {
1081
+ kind: "Name",
1082
+ value: "language"
1083
+ },
1084
+ value: {
1085
+ kind: "Variable",
1086
+ name: {
1087
+ kind: "Name",
1088
+ value: "language"
1089
+ }
1090
+ }
1091
+ }, {
1092
+ kind: "Argument",
1093
+ name: {
1094
+ kind: "Name",
1095
+ value: "voffice_ids"
1096
+ },
1097
+ value: {
1098
+ kind: "Variable",
1099
+ name: {
1100
+ kind: "Name",
1101
+ value: "voffice_ids"
1102
+ }
1103
+ }
1104
+ }],
1105
+ selectionSet: {
1106
+ kind: "SelectionSet",
1107
+ selections: [{
1108
+ kind: "Field",
1109
+ name: {
1110
+ kind: "Name",
1111
+ value: "voffice_id"
1112
+ }
1113
+ }, {
1114
+ kind: "Field",
1115
+ name: {
1116
+ kind: "Name",
1117
+ value: "voffice_feedbacks"
1118
+ },
1119
+ selectionSet: {
1120
+ kind: "SelectionSet",
1121
+ selections: [{
1122
+ kind: "Field",
1123
+ name: {
1124
+ kind: "Name",
1125
+ value: "data"
1126
+ },
1127
+ arguments: [{
1128
+ kind: "Argument",
1129
+ name: {
1130
+ kind: "Name",
1131
+ value: "attributes"
1132
+ },
1133
+ value: {
1134
+ kind: "Variable",
1135
+ name: {
1136
+ kind: "Name",
1137
+ value: "rentalFeedbackDataAttributes"
1138
+ }
1139
+ }
1140
+ }]
1141
+ }]
1142
+ }
1143
+ }]
1144
+ }
1145
+ }]
1146
+ }
1147
+ }]
1148
+ },
1149
+ "\n query CoreSDK_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": {
1150
+ kind: "Document",
1151
+ definitions: [{
1152
+ kind: "OperationDefinition",
1153
+ operation: "query",
1154
+ name: {
1155
+ kind: "Name",
1156
+ value: "CoreSDK_RentalsAll"
1157
+ },
1158
+ variableDefinitions: [
1159
+ {
1160
+ kind: "VariableDefinition",
1161
+ variable: {
1162
+ kind: "Variable",
1163
+ name: {
1164
+ kind: "Name",
1165
+ value: "language"
1166
+ }
1167
+ },
1168
+ type: {
1169
+ kind: "NamedType",
1170
+ name: {
1171
+ kind: "Name",
1172
+ value: "String"
1173
+ }
1174
+ }
1175
+ },
1176
+ {
1177
+ kind: "VariableDefinition",
1178
+ variable: {
1179
+ kind: "Variable",
1180
+ name: {
1181
+ kind: "Name",
1182
+ value: "voffice_ids"
1183
+ }
1184
+ },
1185
+ type: {
1186
+ kind: "ListType",
1187
+ type: {
1188
+ kind: "NonNullType",
1189
+ type: {
1190
+ kind: "NamedType",
1191
+ name: {
1192
+ kind: "Name",
1193
+ value: "Int"
1194
+ }
1195
+ }
1196
+ }
1197
+ }
1198
+ },
1199
+ {
1200
+ kind: "VariableDefinition",
1201
+ variable: {
1202
+ kind: "Variable",
1203
+ name: {
1204
+ kind: "Name",
1205
+ value: "rentalDataAttributes"
1206
+ }
1207
+ },
1208
+ type: {
1209
+ kind: "NonNullType",
1210
+ type: {
1211
+ kind: "ListType",
1212
+ type: {
1213
+ kind: "NonNullType",
1214
+ type: {
1215
+ kind: "NamedType",
1216
+ name: {
1217
+ kind: "Name",
1218
+ value: "String"
1219
+ }
1220
+ }
1221
+ }
1222
+ }
1223
+ },
1224
+ defaultValue: {
1225
+ kind: "ListValue",
1226
+ values: []
1227
+ }
1228
+ },
1229
+ {
1230
+ kind: "VariableDefinition",
1231
+ variable: {
1232
+ kind: "Variable",
1233
+ name: {
1234
+ kind: "Name",
1235
+ value: "rentalFacilityDataAttributes"
1236
+ }
1237
+ },
1238
+ type: {
1239
+ kind: "NonNullType",
1240
+ type: {
1241
+ kind: "ListType",
1242
+ type: {
1243
+ kind: "NonNullType",
1244
+ type: {
1245
+ kind: "NamedType",
1246
+ name: {
1247
+ kind: "Name",
1248
+ value: "String"
1249
+ }
1250
+ }
1251
+ }
1252
+ }
1253
+ },
1254
+ defaultValue: {
1255
+ kind: "ListValue",
1256
+ values: []
1257
+ }
1258
+ },
1259
+ {
1260
+ kind: "VariableDefinition",
1261
+ variable: {
1262
+ kind: "Variable",
1263
+ name: {
1264
+ kind: "Name",
1265
+ value: "rentalRatingDataAttributes"
1266
+ }
1267
+ },
1268
+ type: {
1269
+ kind: "NonNullType",
1270
+ type: {
1271
+ kind: "ListType",
1272
+ type: {
1273
+ kind: "NonNullType",
1274
+ type: {
1275
+ kind: "NamedType",
1276
+ name: {
1277
+ kind: "Name",
1278
+ value: "String"
1279
+ }
1280
+ }
1281
+ }
1282
+ }
1283
+ },
1284
+ defaultValue: {
1285
+ kind: "ListValue",
1286
+ values: []
1287
+ }
1288
+ },
1289
+ {
1290
+ kind: "VariableDefinition",
1291
+ variable: {
1292
+ kind: "Variable",
1293
+ name: {
1294
+ kind: "Name",
1295
+ value: "rentalFeedbackDataAttributes"
1296
+ }
1297
+ },
1298
+ type: {
1299
+ kind: "NonNullType",
1300
+ type: {
1301
+ kind: "ListType",
1302
+ type: {
1303
+ kind: "NonNullType",
1304
+ type: {
1305
+ kind: "NamedType",
1306
+ name: {
1307
+ kind: "Name",
1308
+ value: "String"
1309
+ }
1310
+ }
1311
+ }
1312
+ }
1313
+ },
1314
+ defaultValue: {
1315
+ kind: "ListValue",
1316
+ values: []
1317
+ }
1318
+ }
1319
+ ],
1320
+ selectionSet: {
1321
+ kind: "SelectionSet",
1322
+ selections: [{
1323
+ kind: "Field",
1324
+ name: {
1325
+ kind: "Name",
1326
+ value: "all"
1327
+ },
1328
+ arguments: [{
1329
+ kind: "Argument",
1330
+ name: {
1331
+ kind: "Name",
1332
+ value: "language"
1333
+ },
1334
+ value: {
1335
+ kind: "Variable",
1336
+ name: {
1337
+ kind: "Name",
1338
+ value: "language"
1339
+ }
1340
+ }
1341
+ }, {
1342
+ kind: "Argument",
1343
+ name: {
1344
+ kind: "Name",
1345
+ value: "voffice_ids"
1346
+ },
1347
+ value: {
1348
+ kind: "Variable",
1349
+ name: {
1350
+ kind: "Name",
1351
+ value: "voffice_ids"
1352
+ }
1353
+ }
1354
+ }],
1355
+ selectionSet: {
1356
+ kind: "SelectionSet",
1357
+ selections: [
1358
+ {
1359
+ kind: "Field",
1360
+ name: {
1361
+ kind: "Name",
1362
+ value: "id"
1363
+ }
1364
+ },
1365
+ {
1366
+ kind: "Field",
1367
+ name: {
1368
+ kind: "Name",
1369
+ value: "voffice_id"
1370
+ }
1371
+ },
1372
+ {
1373
+ kind: "Field",
1374
+ name: {
1375
+ kind: "Name",
1376
+ value: "voffice_facility_id"
1377
+ }
1378
+ },
1379
+ {
1380
+ kind: "Field",
1381
+ name: {
1382
+ kind: "Name",
1383
+ value: "name"
1384
+ }
1385
+ },
1386
+ {
1387
+ kind: "Field",
1388
+ name: {
1389
+ kind: "Name",
1390
+ value: "publish"
1391
+ }
1392
+ },
1393
+ {
1394
+ kind: "Field",
1395
+ name: {
1396
+ kind: "Name",
1397
+ value: "data"
1398
+ },
1399
+ arguments: [{
1400
+ kind: "Argument",
1401
+ name: {
1402
+ kind: "Name",
1403
+ value: "attributes"
1404
+ },
1405
+ value: {
1406
+ kind: "Variable",
1407
+ name: {
1408
+ kind: "Name",
1409
+ value: "rentalDataAttributes"
1410
+ }
1411
+ }
1412
+ }]
1413
+ },
1414
+ {
1415
+ kind: "Field",
1416
+ name: {
1417
+ kind: "Name",
1418
+ value: "additional_voffice_data"
1419
+ },
1420
+ selectionSet: {
1421
+ kind: "SelectionSet",
1422
+ selections: [{
1423
+ kind: "Field",
1424
+ name: {
1425
+ kind: "Name",
1426
+ value: "beds"
1427
+ }
1428
+ }]
1429
+ }
1430
+ },
1431
+ {
1432
+ kind: "Field",
1433
+ name: {
1434
+ kind: "Name",
1435
+ value: "voffice_facility"
1436
+ },
1437
+ selectionSet: {
1438
+ kind: "SelectionSet",
1439
+ selections: [
1440
+ {
1441
+ kind: "Field",
1442
+ name: {
1443
+ kind: "Name",
1444
+ value: "id"
1445
+ }
1446
+ },
1447
+ {
1448
+ kind: "Field",
1449
+ name: {
1450
+ kind: "Name",
1451
+ value: "voffice_id"
1452
+ }
1453
+ },
1454
+ {
1455
+ kind: "Field",
1456
+ name: {
1457
+ kind: "Name",
1458
+ value: "name"
1459
+ }
1460
+ },
1461
+ {
1462
+ kind: "Field",
1463
+ name: {
1464
+ kind: "Name",
1465
+ value: "publish"
1466
+ }
1467
+ },
1468
+ {
1469
+ kind: "Field",
1470
+ name: {
1471
+ kind: "Name",
1472
+ value: "data"
1473
+ },
1474
+ arguments: [{
1475
+ kind: "Argument",
1476
+ name: {
1477
+ kind: "Name",
1478
+ value: "attributes"
1479
+ },
1480
+ value: {
1481
+ kind: "Variable",
1482
+ name: {
1483
+ kind: "Name",
1484
+ value: "rentalFacilityDataAttributes"
1485
+ }
1486
+ }
1487
+ }]
1488
+ }
1489
+ ]
1490
+ }
1491
+ },
1492
+ {
1493
+ kind: "Field",
1494
+ name: {
1495
+ kind: "Name",
1496
+ value: "voffice_images"
1497
+ },
1498
+ selectionSet: {
1499
+ kind: "SelectionSet",
1500
+ selections: [
1501
+ {
1502
+ kind: "Field",
1503
+ name: {
1504
+ kind: "Name",
1505
+ value: "id"
1506
+ }
1507
+ },
1508
+ {
1509
+ kind: "Field",
1510
+ name: {
1511
+ kind: "Name",
1512
+ value: "path"
1513
+ }
1514
+ },
1515
+ {
1516
+ kind: "Field",
1517
+ name: {
1518
+ kind: "Name",
1519
+ value: "title"
1520
+ }
1521
+ },
1522
+ {
1523
+ kind: "Field",
1524
+ name: {
1525
+ kind: "Name",
1526
+ value: "description"
1527
+ }
1528
+ }
1529
+ ]
1530
+ }
1531
+ },
1532
+ {
1533
+ kind: "Field",
1534
+ name: {
1535
+ kind: "Name",
1536
+ value: "voffice_room_images"
1537
+ },
1538
+ selectionSet: {
1539
+ kind: "SelectionSet",
1540
+ selections: [
1541
+ {
1542
+ kind: "Field",
1543
+ name: {
1544
+ kind: "Name",
1545
+ value: "id"
1546
+ }
1547
+ },
1548
+ {
1549
+ kind: "Field",
1550
+ name: {
1551
+ kind: "Name",
1552
+ value: "path"
1553
+ }
1554
+ },
1555
+ {
1556
+ kind: "Field",
1557
+ name: {
1558
+ kind: "Name",
1559
+ value: "name"
1560
+ }
1561
+ },
1562
+ {
1563
+ kind: "Field",
1564
+ name: {
1565
+ kind: "Name",
1566
+ value: "title"
1567
+ }
1568
+ },
1569
+ {
1570
+ kind: "Field",
1571
+ name: {
1572
+ kind: "Name",
1573
+ value: "description"
1574
+ }
1575
+ }
1576
+ ]
1577
+ }
1578
+ },
1579
+ {
1580
+ kind: "Field",
1581
+ name: {
1582
+ kind: "Name",
1583
+ value: "voffice_rating"
1584
+ },
1585
+ selectionSet: {
1586
+ kind: "SelectionSet",
1587
+ selections: [{
1588
+ kind: "Field",
1589
+ name: {
1590
+ kind: "Name",
1591
+ value: "id"
1592
+ }
1593
+ }, {
1594
+ kind: "Field",
1595
+ name: {
1596
+ kind: "Name",
1597
+ value: "data"
1598
+ },
1599
+ arguments: [{
1600
+ kind: "Argument",
1601
+ name: {
1602
+ kind: "Name",
1603
+ value: "attributes"
1604
+ },
1605
+ value: {
1606
+ kind: "Variable",
1607
+ name: {
1608
+ kind: "Name",
1609
+ value: "rentalRatingDataAttributes"
1610
+ }
1611
+ }
1612
+ }]
1613
+ }]
1614
+ }
1615
+ },
1616
+ {
1617
+ kind: "Field",
1618
+ name: {
1619
+ kind: "Name",
1620
+ value: "voffice_feedbacks"
1621
+ },
1622
+ selectionSet: {
1623
+ kind: "SelectionSet",
1624
+ selections: [{
1625
+ kind: "Field",
1626
+ name: {
1627
+ kind: "Name",
1628
+ value: "data"
1629
+ },
1630
+ arguments: [{
1631
+ kind: "Argument",
1632
+ name: {
1633
+ kind: "Name",
1634
+ value: "attributes"
1635
+ },
1636
+ value: {
1637
+ kind: "Variable",
1638
+ name: {
1639
+ kind: "Name",
1640
+ value: "rentalFeedbackDataAttributes"
1641
+ }
1642
+ }
1643
+ }]
1644
+ }]
1645
+ }
1646
+ }
1647
+ ]
1648
+ }
1649
+ }]
1650
+ }
1651
+ }]
1652
+ },
1653
+ "\n query CoreSDK_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": {
1654
+ kind: "Document",
1655
+ definitions: [{
1656
+ kind: "OperationDefinition",
1657
+ operation: "query",
1658
+ name: {
1659
+ kind: "Name",
1660
+ value: "CoreSDK_Search"
1661
+ },
1662
+ variableDefinitions: [
1663
+ {
1664
+ kind: "VariableDefinition",
1665
+ variable: {
1666
+ kind: "Variable",
1667
+ name: {
1668
+ kind: "Name",
1669
+ value: "first"
1670
+ }
1671
+ },
1672
+ type: {
1673
+ kind: "NonNullType",
1674
+ type: {
1675
+ kind: "NamedType",
1676
+ name: {
1677
+ kind: "Name",
1678
+ value: "Int"
1679
+ }
1680
+ }
1681
+ }
1682
+ },
1683
+ {
1684
+ kind: "VariableDefinition",
1685
+ variable: {
1686
+ kind: "Variable",
1687
+ name: {
1688
+ kind: "Name",
1689
+ value: "page"
1690
+ }
1691
+ },
1692
+ type: {
1693
+ kind: "NamedType",
1694
+ name: {
1695
+ kind: "Name",
1696
+ value: "Int"
1697
+ }
1698
+ }
1699
+ },
1700
+ {
1701
+ kind: "VariableDefinition",
1702
+ variable: {
1703
+ kind: "Variable",
1704
+ name: {
1705
+ kind: "Name",
1706
+ value: "language"
1707
+ }
1708
+ },
1709
+ type: {
1710
+ kind: "NamedType",
1711
+ name: {
1712
+ kind: "Name",
1713
+ value: "String"
1714
+ }
1715
+ }
1716
+ },
1717
+ {
1718
+ kind: "VariableDefinition",
1719
+ variable: {
1720
+ kind: "Variable",
1721
+ name: {
1722
+ kind: "Name",
1723
+ value: "vofficeData"
1724
+ }
1725
+ },
1726
+ type: {
1727
+ kind: "NamedType",
1728
+ name: {
1729
+ kind: "Name",
1730
+ value: "VofficeData"
1731
+ }
1732
+ }
1733
+ },
1734
+ {
1735
+ kind: "VariableDefinition",
1736
+ variable: {
1737
+ kind: "Variable",
1738
+ name: {
1739
+ kind: "Name",
1740
+ value: "basicQueryInputs"
1741
+ }
1742
+ },
1743
+ type: {
1744
+ kind: "ListType",
1745
+ type: {
1746
+ kind: "NonNullType",
1747
+ type: {
1748
+ kind: "NamedType",
1749
+ name: {
1750
+ kind: "Name",
1751
+ value: "BasicQueryInput"
1752
+ }
1753
+ }
1754
+ }
1755
+ }
1756
+ },
1757
+ {
1758
+ kind: "VariableDefinition",
1759
+ variable: {
1760
+ kind: "Variable",
1761
+ name: {
1762
+ kind: "Name",
1763
+ value: "dataAttributes"
1764
+ }
1765
+ },
1766
+ type: {
1767
+ kind: "NonNullType",
1768
+ type: {
1769
+ kind: "ListType",
1770
+ type: {
1771
+ kind: "NonNullType",
1772
+ type: {
1773
+ kind: "NamedType",
1774
+ name: {
1775
+ kind: "Name",
1776
+ value: "String"
1777
+ }
1778
+ }
1779
+ }
1780
+ }
1781
+ },
1782
+ defaultValue: {
1783
+ kind: "ListValue",
1784
+ values: []
1785
+ }
1786
+ }
1787
+ ],
1788
+ selectionSet: {
1789
+ kind: "SelectionSet",
1790
+ selections: [{
1791
+ kind: "Field",
1792
+ name: {
1793
+ kind: "Name",
1794
+ value: "search"
1795
+ },
1796
+ arguments: [
1797
+ {
1798
+ kind: "Argument",
1799
+ name: {
1800
+ kind: "Name",
1801
+ value: "first"
1802
+ },
1803
+ value: {
1804
+ kind: "Variable",
1805
+ name: {
1806
+ kind: "Name",
1807
+ value: "first"
1808
+ }
1809
+ }
1810
+ },
1811
+ {
1812
+ kind: "Argument",
1813
+ name: {
1814
+ kind: "Name",
1815
+ value: "page"
1816
+ },
1817
+ value: {
1818
+ kind: "Variable",
1819
+ name: {
1820
+ kind: "Name",
1821
+ value: "page"
1822
+ }
1823
+ }
1824
+ },
1825
+ {
1826
+ kind: "Argument",
1827
+ name: {
1828
+ kind: "Name",
1829
+ value: "language"
1830
+ },
1831
+ value: {
1832
+ kind: "Variable",
1833
+ name: {
1834
+ kind: "Name",
1835
+ value: "language"
1836
+ }
1837
+ }
1838
+ },
1839
+ {
1840
+ kind: "Argument",
1841
+ name: {
1842
+ kind: "Name",
1843
+ value: "voffice"
1844
+ },
1845
+ value: {
1846
+ kind: "Variable",
1847
+ name: {
1848
+ kind: "Name",
1849
+ value: "vofficeData"
1850
+ }
1851
+ }
1852
+ },
1853
+ {
1854
+ kind: "Argument",
1855
+ name: {
1856
+ kind: "Name",
1857
+ value: "data"
1858
+ },
1859
+ value: {
1860
+ kind: "Variable",
1861
+ name: {
1862
+ kind: "Name",
1863
+ value: "basicQueryInputs"
1864
+ }
1865
+ }
1866
+ }
1867
+ ],
1868
+ selectionSet: {
1869
+ kind: "SelectionSet",
1870
+ selections: [{
1871
+ kind: "Field",
1872
+ name: {
1873
+ kind: "Name",
1874
+ value: "paginatorInfo"
1875
+ },
1876
+ selectionSet: {
1877
+ kind: "SelectionSet",
1878
+ selections: [{
1879
+ kind: "Field",
1880
+ name: {
1881
+ kind: "Name",
1882
+ value: "hasMorePages"
1883
+ }
1884
+ }, {
1885
+ kind: "Field",
1886
+ name: {
1887
+ kind: "Name",
1888
+ value: "currentPage"
1889
+ }
1890
+ }]
1891
+ }
1892
+ }, {
1893
+ kind: "Field",
1894
+ name: {
1895
+ kind: "Name",
1896
+ value: "data"
1897
+ },
1898
+ selectionSet: {
1899
+ kind: "SelectionSet",
1900
+ selections: [
1901
+ {
1902
+ kind: "Field",
1903
+ name: {
1904
+ kind: "Name",
1905
+ value: "voffice_id"
1906
+ }
1907
+ },
1908
+ {
1909
+ kind: "Field",
1910
+ name: {
1911
+ kind: "Name",
1912
+ value: "voffice_images"
1913
+ },
1914
+ selectionSet: {
1915
+ kind: "SelectionSet",
1916
+ selections: [
1917
+ {
1918
+ kind: "Field",
1919
+ name: {
1920
+ kind: "Name",
1921
+ value: "id"
1922
+ }
1923
+ },
1924
+ {
1925
+ kind: "Field",
1926
+ name: {
1927
+ kind: "Name",
1928
+ value: "path"
1929
+ }
1930
+ },
1931
+ {
1932
+ kind: "Field",
1933
+ name: {
1934
+ kind: "Name",
1935
+ value: "title"
1936
+ }
1937
+ },
1938
+ {
1939
+ kind: "Field",
1940
+ name: {
1941
+ kind: "Name",
1942
+ value: "description"
1943
+ }
1944
+ }
1945
+ ]
1946
+ }
1947
+ },
1948
+ {
1949
+ kind: "Field",
1950
+ name: {
1951
+ kind: "Name",
1952
+ value: "voffice_room_images"
1953
+ },
1954
+ selectionSet: {
1955
+ kind: "SelectionSet",
1956
+ selections: [
1957
+ {
1958
+ kind: "Field",
1959
+ name: {
1960
+ kind: "Name",
1961
+ value: "id"
1962
+ }
1963
+ },
1964
+ {
1965
+ kind: "Field",
1966
+ name: {
1967
+ kind: "Name",
1968
+ value: "path"
1969
+ }
1970
+ },
1971
+ {
1972
+ kind: "Field",
1973
+ name: {
1974
+ kind: "Name",
1975
+ value: "name"
1976
+ }
1977
+ },
1978
+ {
1979
+ kind: "Field",
1980
+ name: {
1981
+ kind: "Name",
1982
+ value: "title"
1983
+ }
1984
+ },
1985
+ {
1986
+ kind: "Field",
1987
+ name: {
1988
+ kind: "Name",
1989
+ value: "description"
1990
+ }
1991
+ }
1992
+ ]
1993
+ }
1994
+ },
1995
+ {
1996
+ kind: "Field",
1997
+ name: {
1998
+ kind: "Name",
1999
+ value: "additional_voffice_data"
2000
+ },
2001
+ selectionSet: {
2002
+ kind: "SelectionSet",
2003
+ selections: [{
2004
+ kind: "Field",
2005
+ name: {
2006
+ kind: "Name",
2007
+ value: "alternatives"
2008
+ },
2009
+ selectionSet: {
2010
+ kind: "SelectionSet",
2011
+ selections: [
2012
+ {
2013
+ kind: "Field",
2014
+ name: {
2015
+ kind: "Name",
2016
+ value: "fromdate"
2017
+ }
2018
+ },
2019
+ {
2020
+ kind: "Field",
2021
+ name: {
2022
+ kind: "Name",
2023
+ value: "tilldate"
2024
+ }
2025
+ },
2026
+ {
2027
+ kind: "Field",
2028
+ name: {
2029
+ kind: "Name",
2030
+ value: "calc"
2031
+ },
2032
+ selectionSet: {
2033
+ kind: "SelectionSet",
2034
+ selections: [
2035
+ {
2036
+ kind: "Field",
2037
+ name: {
2038
+ kind: "Name",
2039
+ value: "total"
2040
+ }
2041
+ },
2042
+ {
2043
+ kind: "Field",
2044
+ name: {
2045
+ kind: "Name",
2046
+ value: "rent"
2047
+ }
2048
+ },
2049
+ {
2050
+ kind: "Field",
2051
+ name: {
2052
+ kind: "Name",
2053
+ value: "summary"
2054
+ }
2055
+ },
2056
+ {
2057
+ kind: "Field",
2058
+ name: {
2059
+ kind: "Name",
2060
+ value: "oTotal"
2061
+ }
2062
+ },
2063
+ {
2064
+ kind: "Field",
2065
+ name: {
2066
+ kind: "Name",
2067
+ value: "oRent"
2068
+ }
2069
+ },
2070
+ {
2071
+ kind: "Field",
2072
+ name: {
2073
+ kind: "Name",
2074
+ value: "oSummary"
2075
+ }
2076
+ },
2077
+ {
2078
+ kind: "Field",
2079
+ name: {
2080
+ kind: "Name",
2081
+ value: "discountName"
2082
+ }
2083
+ }
2084
+ ]
2085
+ }
2086
+ }
2087
+ ]
2088
+ }
2089
+ }, {
2090
+ kind: "Field",
2091
+ name: {
2092
+ kind: "Name",
2093
+ value: "calc"
2094
+ },
2095
+ selectionSet: {
2096
+ kind: "SelectionSet",
2097
+ selections: [
2098
+ {
2099
+ kind: "Field",
2100
+ name: {
2101
+ kind: "Name",
2102
+ value: "total"
2103
+ }
2104
+ },
2105
+ {
2106
+ kind: "Field",
2107
+ name: {
2108
+ kind: "Name",
2109
+ value: "rent"
2110
+ }
2111
+ },
2112
+ {
2113
+ kind: "Field",
2114
+ name: {
2115
+ kind: "Name",
2116
+ value: "summary"
2117
+ }
2118
+ },
2119
+ {
2120
+ kind: "Field",
2121
+ name: {
2122
+ kind: "Name",
2123
+ value: "oTotal"
2124
+ }
2125
+ },
2126
+ {
2127
+ kind: "Field",
2128
+ name: {
2129
+ kind: "Name",
2130
+ value: "oRent"
2131
+ }
2132
+ },
2133
+ {
2134
+ kind: "Field",
2135
+ name: {
2136
+ kind: "Name",
2137
+ value: "oSummary"
2138
+ }
2139
+ },
2140
+ {
2141
+ kind: "Field",
2142
+ name: {
2143
+ kind: "Name",
2144
+ value: "discountName"
2145
+ }
2146
+ }
2147
+ ]
2148
+ }
2149
+ }]
2150
+ }
2151
+ },
2152
+ {
2153
+ kind: "Field",
2154
+ name: {
2155
+ kind: "Name",
2156
+ value: "data"
2157
+ },
2158
+ arguments: [{
2159
+ kind: "Argument",
2160
+ name: {
2161
+ kind: "Name",
2162
+ value: "attributes"
2163
+ },
2164
+ value: {
2165
+ kind: "Variable",
2166
+ name: {
2167
+ kind: "Name",
2168
+ value: "dataAttributes"
2169
+ }
2170
+ }
2171
+ }]
2172
+ }
2173
+ ]
2174
+ }
2175
+ }]
2176
+ }
2177
+ }]
2178
+ }
2179
+ }]
2180
+ }
2181
+ };
2182
+ function graphql(source) {
2183
+ return documents[source] ?? {};
2184
+ }
2185
+ //#endregion
2186
+ //#region codegen/v9/graphql-codegen/operations/rentals.ts
2187
+ const rentalIdsQuery = graphql(`
2188
+ query CoreSDK_RentalIds {
2189
+ all {
2190
+ voffice_id
2191
+ }
2192
+ }
2193
+ `);
2194
+ const rentalsAllWithoutFeedbacksQuery = graphql(`
2195
+ query CoreSDK_RentalsAllWithoutFeedbacks(
2196
+ $language: String
2197
+ $voffice_ids: [Int!]
2198
+ $rentalDataAttributes: [String!]! = []
2199
+ $rentalFacilityDataAttributes: [String!]! = []
2200
+ $rentalRatingDataAttributes: [String!]! = []
2201
+ ) {
2202
+ all(language: $language, voffice_ids: $voffice_ids) {
2203
+ id
2204
+ voffice_id
2205
+ voffice_facility_id
2206
+ name
2207
+ publish
2208
+ data(attributes: $rentalDataAttributes)
2209
+ additional_voffice_data {
2210
+ beds
2211
+ }
2212
+ voffice_facility {
2213
+ id
2214
+ voffice_id
2215
+ name
2216
+ publish
2217
+ data(attributes: $rentalFacilityDataAttributes)
2218
+ }
2219
+ voffice_images {
2220
+ id
2221
+ path
2222
+ title
2223
+ description
2224
+ }
2225
+ voffice_room_images {
2226
+ id
2227
+ path
2228
+ name
2229
+ title
2230
+ description
2231
+ }
2232
+ voffice_rating {
2233
+ id
2234
+ data(attributes: $rentalRatingDataAttributes)
2235
+ }
2236
+ }
2237
+ }
2238
+ `);
2239
+ const rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery = graphql(`
2240
+ query CoreSDK_RentalsAllByFacilityObjectGroupsWithoutFeedbacks(
2241
+ $language: String
2242
+ $voffice_ids: [Int!]
2243
+ $rentalDataAttributes: [String!]! = []
2244
+ $rentalRatingDataAttributes: [String!]! = []
2245
+ ) {
2246
+ all(language: $language, voffice_ids: $voffice_ids) {
2247
+ id
2248
+ voffice_id
2249
+ voffice_facility_id
2250
+ name
2251
+ publish
2252
+ data(attributes: $rentalDataAttributes)
2253
+ additional_voffice_data {
2254
+ beds
2255
+ }
2256
+ voffice_groups {
2257
+ voffice_group_id
2258
+ }
2259
+ voffice_images {
2260
+ id
2261
+ path
2262
+ title
2263
+ description
2264
+ }
2265
+ voffice_room_images {
2266
+ id
2267
+ path
2268
+ name
2269
+ title
2270
+ description
2271
+ }
2272
+ voffice_rating {
2273
+ id
2274
+ data(attributes: $rentalRatingDataAttributes)
2275
+ }
2276
+ }
2277
+ }
2278
+ `);
2279
+ const rentalFacilitiesForObjectGroupRelationQuery = graphql(`
2280
+ query CoreSDK_RentalFacilitiesForObjectGroupRelation(
2281
+ $language: String
2282
+ $rentalFacilityDataAttributes: [String!]! = []
2283
+ ) {
2284
+ facilities: voffice_facilities(language: $language) {
2285
+ id
2286
+ voffice_id
2287
+ name
2288
+ publish
2289
+ data(attributes: $rentalFacilityDataAttributes)
2290
+ }
2291
+ }
2292
+ `);
2293
+ const rentalsAllFeedbacksQuery = graphql(`
2294
+ query CoreSDK_RentalsAllFeedbacks(
2295
+ $language: String
2296
+ $voffice_ids: [Int!]
2297
+ $rentalFeedbackDataAttributes: [String!]! = []
2298
+ ) {
2299
+ all(language: $language, voffice_ids: $voffice_ids) {
2300
+ voffice_id
2301
+ voffice_feedbacks {
2302
+ data(attributes: $rentalFeedbackDataAttributes)
2303
+ }
2304
+ }
2305
+ }
2306
+ `);
2307
+ graphql(`
2308
+ query CoreSDK_RentalsAll(
2309
+ $language: String
2310
+ $voffice_ids: [Int!]
2311
+ $rentalDataAttributes: [String!]! = []
2312
+ $rentalFacilityDataAttributes: [String!]! = []
2313
+ $rentalRatingDataAttributes: [String!]! = []
2314
+ $rentalFeedbackDataAttributes: [String!]! = []
2315
+ ) {
2316
+ all(language: $language, voffice_ids: $voffice_ids) {
2317
+ id
2318
+ voffice_id
2319
+ voffice_facility_id
2320
+ name
2321
+ publish
2322
+ data(attributes: $rentalDataAttributes)
2323
+ additional_voffice_data {
2324
+ beds
2325
+ }
2326
+ voffice_facility {
2327
+ id
2328
+ voffice_id
2329
+ name
2330
+ publish
2331
+ data(attributes: $rentalFacilityDataAttributes)
2332
+ }
2333
+ voffice_images {
2334
+ id
2335
+ path
2336
+ title
2337
+ description
2338
+ }
2339
+ voffice_room_images {
2340
+ id
2341
+ path
2342
+ name
2343
+ title
2344
+ description
2345
+ }
2346
+ voffice_rating {
2347
+ id
2348
+ data(attributes: $rentalRatingDataAttributes)
2349
+ }
2350
+ voffice_feedbacks {
2351
+ data(attributes: $rentalFeedbackDataAttributes)
2352
+ }
2353
+ }
2354
+ }
2355
+ `);
2356
+ //#endregion
2357
+ //#region codegen/v9/graphql-codegen/operations/search.ts
2358
+ const searchQuery = graphql(`
2359
+ query CoreSDK_Search(
2360
+ $first: Int!
2361
+ $page: Int
2362
+ $language: String
2363
+ $vofficeData: VofficeData
2364
+ $basicQueryInputs: [BasicQueryInput!]
2365
+ $dataAttributes: [String!]! = []
2366
+ ) {
2367
+ search(
2368
+ first: $first
2369
+ page: $page
2370
+ language: $language
2371
+ voffice: $vofficeData
2372
+ data: $basicQueryInputs
2373
+ ) {
2374
+ paginatorInfo {
2375
+ hasMorePages
2376
+ currentPage
2377
+ }
2378
+ data {
2379
+ voffice_id
2380
+ voffice_images {
2381
+ id
2382
+ path
2383
+ title
2384
+ description
2385
+ }
2386
+ voffice_room_images {
2387
+ id
2388
+ path
2389
+ name
2390
+ title
2391
+ description
2392
+ }
2393
+ additional_voffice_data {
2394
+ alternatives {
2395
+ fromdate
2396
+ tilldate
2397
+ calc {
2398
+ total
2399
+ rent
2400
+ summary
2401
+ oTotal
2402
+ oRent
2403
+ oSummary
2404
+ discountName
2405
+ }
2406
+ }
2407
+ calc {
2408
+ total
2409
+ rent
2410
+ summary
2411
+ oTotal
2412
+ oRent
2413
+ oSummary
2414
+ discountName
2415
+ }
2416
+ }
2417
+ data(attributes: $dataAttributes)
2418
+ }
2419
+ }
2420
+ }
2421
+ `);
2422
+ //#endregion
2423
+ //#region src/legacy-v9/parser/rentals/to-localized-string.ts
2424
+ const isNonEmptyString$1 = (value) => typeof value === "string" && value.length > 0;
2425
+ const isRecord = (value) => typeof value === "object" && value !== null;
2426
+ const toLocalizedString = (value, locale) => {
2427
+ if (isNonEmptyString$1(value)) return value;
2428
+ if (!isRecord(value)) return void 0;
2429
+ const preferredKeys = [
2430
+ locale,
2431
+ localeToLanguage(locale),
2432
+ "en"
2433
+ ];
2434
+ for (const key of preferredKeys) {
2435
+ const localizedValue = value[key];
2436
+ if (isNonEmptyString$1(localizedValue)) return localizedValue;
2437
+ }
2438
+ return Object.values(value).find(isNonEmptyString$1);
2439
+ };
2440
+ //#endregion
2441
+ //#region src/legacy-v9/parser/rentals/to-address.ts
2442
+ const toProvince = (data, locale) => {
2443
+ return toLocalizedString(data.known.regionName, locale);
2444
+ };
2445
+ const toAddress = (data, locale) => {
2446
+ const source = data.known.address;
2447
+ const address = {};
2448
+ if (source == null) return address;
2449
+ if (source.street != null) address.street = [source.street, source.housenumber].filter((part) => part != null && part.length > 0).join(" ");
2450
+ if (source.appendix != null) address.appendix = source.appendix;
2451
+ if (source.postalcode != null) address.postalcode = source.postalcode;
2452
+ if (source.city != null) address.city = source.city;
2453
+ if (source.country != null) address.country = toCountry(source.country, locale);
2454
+ const province = toProvince(data, locale);
2455
+ if (province != null) address.province = province;
2456
+ return address;
2457
+ };
2458
+ //#endregion
2459
+ //#region src/legacy-v9/parser/rentals/to-image.ts
2460
+ const IMAGE_ASPECT_RATIO = 3 / 2;
2461
+ const IMAGE_SRCSET_WIDTHS = [
2462
+ 320,
2463
+ 480,
2464
+ 640,
2465
+ 960,
2466
+ 1280,
2467
+ 1920,
2468
+ 2560
2469
+ ];
2470
+ const IMAGE_DEFAULT_WIDTH = 960;
2471
+ const VOFFICE_DYNAMIC_IMAGE_BASE_URL = "https://dyn.v-office.com/image";
2472
+ const VOFFICE_DYNAMIC_IMAGE_SIZES = [
2473
+ ["tn", 141],
2474
+ ["tnx", 225],
2475
+ ["s", 450],
2476
+ ["m", 600],
2477
+ ["xl", 1440],
2478
+ ["xxl", 2400]
2479
+ ];
2480
+ const VOFFICE_DYNAMIC_IMAGE_DEFAULT_SIZE = "xl";
2481
+ const buildImageUrl = (imageProxyBaseUrl, path, width) => {
2482
+ const base = imageProxyBaseUrl.replace(/\/$/, "");
2483
+ const normalizedPath = path.replace(/^\/+/, "");
2484
+ return `${base}/_/rs:fill:${width}:${Math.round(width / IMAGE_ASPECT_RATIO)}:0/plain/${normalizedPath}`;
2485
+ };
2486
+ const buildSrcset = (imageProxyBaseUrl, path) => IMAGE_SRCSET_WIDTHS.map((width) => `${buildImageUrl(imageProxyBaseUrl, path, width)} ${width}w`).join(", ");
2487
+ const buildVofficeDynamicImageUrl = (imageId, size) => `${VOFFICE_DYNAMIC_IMAGE_BASE_URL}/${size}/${imageId}.jpg`;
2488
+ const buildVofficeDynamicImageSrcset = (imageId, originalImageWidth) => {
2489
+ const originalWidth = originalImageWidth != null && originalImageWidth > 0 ? originalImageWidth : void 0;
2490
+ const seenWidths = /* @__PURE__ */ new Set();
2491
+ return VOFFICE_DYNAMIC_IMAGE_SIZES.flatMap(([size, maximumWidth]) => {
2492
+ const width = originalWidth == null ? maximumWidth : Math.min(maximumWidth, originalWidth);
2493
+ if (seenWidths.has(width)) return [];
2494
+ seenWidths.add(width);
2495
+ return [`${buildVofficeDynamicImageUrl(imageId, size)} ${width}w`];
2496
+ }).join(", ");
2497
+ };
2498
+ const isNonEmptyString = (value) => typeof value === "string" && value.length > 0;
2499
+ const toDataImageId = (dataImage) => dataImage?.id?.toString();
2500
+ const getImagePath = (entry) => entry.image?.path ?? entry.normalizedPath;
2501
+ const getFileName = (path) => path?.split("/").at(-1);
2502
+ const getDirectoryName = (path) => {
2503
+ const lastSlashIndex = path.lastIndexOf("/");
2504
+ return lastSlashIndex === -1 ? void 0 : path.slice(0, lastSlashIndex);
2505
+ };
2506
+ const stripDataImageFilePrefix = (fileName) => fileName.replace(/^mf(?=\d)/i, "");
2507
+ const getDataImageFileName = (dataImage) => {
2508
+ const name = dataImage.name != null ? stripDataImageFilePrefix(dataImage.name) : void 0;
2509
+ if (name != null) return name;
2510
+ return dataImage.id != null ? `${dataImage.id}.jpg` : void 0;
2511
+ };
2512
+ const normalizeDataImagePath = (dataImage, referenceImages) => {
2513
+ const fileName = getDataImageFileName(dataImage);
2514
+ if (fileName == null) return void 0;
2515
+ const matchingPath = referenceImages.find((image) => getFileName(image.path ?? void 0) === fileName)?.path;
2516
+ if (matchingPath != null) return matchingPath;
2517
+ const directoryName = referenceImages.map((image) => image.path != null ? getDirectoryName(image.path) : void 0).find((path) => path != null);
2518
+ return directoryName != null ? `${directoryName}/${fileName}` : fileName;
2519
+ };
2520
+ const pathMatchesName = (path, name) => path != null && name != null && (path === name || path.endsWith(`/${name}`));
2521
+ const entriesShareId = (left, right) => {
2522
+ const leftIds = [left.image?.id, toDataImageId(left.dataImage)].filter(isNonEmptyString);
2523
+ const rightIds = [right.image?.id, toDataImageId(right.dataImage)].filter(isNonEmptyString);
2524
+ return leftIds.some((leftId) => rightIds.includes(leftId));
2525
+ };
2526
+ const entriesSharePathOrName = (left, right) => {
2527
+ const leftPath = getImagePath(left);
2528
+ const rightPath = getImagePath(right);
2529
+ const leftName = left.dataImage != null ? getDataImageFileName(left.dataImage) : getFileName(left.image?.path ?? void 0);
2530
+ const rightName = right.dataImage != null ? getDataImageFileName(right.dataImage) : getFileName(right.image?.path ?? void 0);
2531
+ return leftPath != null && rightPath != null && leftPath === rightPath || pathMatchesName(leftPath, rightName) || pathMatchesName(rightPath, leftName);
2532
+ };
2533
+ const entriesMatch = (left, right) => entriesShareId(left, right) || entriesSharePathOrName(left, right);
2534
+ const mergeEntry = (existing, next) => {
2535
+ const image = existing.image ?? next.image;
2536
+ const dataImage = existing.dataImage ?? next.dataImage;
2537
+ const normalizedPath = existing.normalizedPath ?? next.normalizedPath;
2538
+ const entry = { source: existing.source };
2539
+ if (image != null) entry.image = image;
2540
+ if (dataImage != null) entry.dataImage = dataImage;
2541
+ if (normalizedPath != null) entry.normalizedPath = normalizedPath;
2542
+ return entry;
2543
+ };
2544
+ const mergeImageEntries = (entries) => {
2545
+ const merged = [];
2546
+ for (const entry of entries) {
2547
+ const index = merged.findIndex((existing) => entriesMatch(existing, entry));
2548
+ if (index === -1) {
2549
+ merged.push(entry);
2550
+ continue;
2551
+ }
2552
+ merged[index] = mergeEntry(merged[index], entry);
2553
+ }
2554
+ return merged;
2555
+ };
2556
+ const getImageEntries = (rental, data) => {
2557
+ const vofficeImages = rental.voffice_images ?? [];
2558
+ const vofficeRoomImages = rental.voffice_room_images ?? [];
2559
+ const referenceImages = [...vofficeImages, ...vofficeRoomImages];
2560
+ return [
2561
+ ...vofficeImages.map((image) => ({
2562
+ source: "voffice_images",
2563
+ image
2564
+ })),
2565
+ ...vofficeRoomImages.map((image) => ({
2566
+ source: "voffice_room_images",
2567
+ image
2568
+ })),
2569
+ ...(data.known.images ?? []).flatMap((dataImage) => {
2570
+ const normalizedPath = normalizeDataImagePath(dataImage, referenceImages);
2571
+ if (normalizedPath == null) return [];
2572
+ return [{
2573
+ source: "data_images",
2574
+ dataImage,
2575
+ normalizedPath
2576
+ }];
2577
+ })
2578
+ ];
2579
+ };
2580
+ const toImage = (imageProxyBaseUrl, entry, locale) => {
2581
+ const path = getImagePath(entry);
2582
+ const src = path != null ? buildImageUrl(imageProxyBaseUrl, path, IMAGE_DEFAULT_WIDTH) : "";
2583
+ const srcset = path != null ? buildSrcset(imageProxyBaseUrl, path) : "";
2584
+ const title = toLocalizedString(entry.dataImage?.titles, locale) ?? entry.image?.title;
2585
+ const alt = title ?? entry.image?.description ?? "";
2586
+ const metadata = { source: entry.source };
2587
+ if (entry.dataImage != null) metadata.dataImage = entry.dataImage;
2588
+ const image = {
2589
+ idOrPath: path ?? toDataImageId(entry.dataImage) ?? entry.dataImage?.name ?? "",
2590
+ src,
2591
+ srcset,
2592
+ alt,
2593
+ metadata
2594
+ };
2595
+ if (title != null) image.title = title;
2596
+ if (entry.dataImage?.tag != null) image.category = entry.dataImage.tag;
2597
+ return image;
2598
+ };
2599
+ const toImages = (imageProxyBaseUrl, rental, locale, data) => {
2600
+ return mergeImageEntries(getImageEntries(rental, data)).map((entry) => toImage(imageProxyBaseUrl, entry, locale));
2601
+ };
2602
+ const toFacilityImages = (images, locale) => images.flatMap((image) => {
2603
+ if (image.id == null) return [];
2604
+ const title = toLocalizedString(image.titles, locale);
2605
+ const item = {
2606
+ idOrPath: image.id.toString(),
2607
+ src: buildVofficeDynamicImageUrl(image.id, VOFFICE_DYNAMIC_IMAGE_DEFAULT_SIZE),
2608
+ srcset: buildVofficeDynamicImageSrcset(image.id, image.width),
2609
+ metadata: {
2610
+ source: "voffice_facility_data_images",
2611
+ dataImage: image
2612
+ }
2613
+ };
2614
+ if (title != null) {
2615
+ item.alt = title;
2616
+ item.title = title;
2617
+ }
2618
+ if (image.tag != null) item.category = image.tag;
2619
+ return [item];
2620
+ });
2621
+ //#endregion
2622
+ //#region src/legacy-v9/parser/rentals/render-property-attribute.ts
2623
+ const countLabelKey = (labelKey, value) => `${labelKey.slice(0, -6)}.count.${value === 1 ? "one" : "other"}`;
2624
+ const renderVofficePropertyAttribute = ({ key, metadata, locale, translate, value }) => Effect.gen(function* () {
2625
+ if (metadata.sourceType === "OPT") {
2626
+ if (typeof value !== "number" || !Number.isInteger(value)) return void 0;
2627
+ const option = metadata.options?.find((candidate) => candidate.value === value);
2628
+ if (option === void 0) return void 0;
2629
+ return `${yield* translate(metadata.labelKey, key)}: ${yield* translate(option.labelKey, option.sourceLabel)}`;
2630
+ }
2631
+ if (value === false || value === 0 || value === "false" || value === "0" || value == null || value === "") return;
2632
+ const label = yield* translate(metadata.labelKey, key);
2633
+ if (metadata.sourceType === "INT" && typeof value === "number") {
2634
+ if (value === 0) return void 0;
2635
+ if (key.endsWith("distance")) return `${label}: ${value}m`;
2636
+ if (key === "squareMeters") return `${value} m²`;
2637
+ return `${value} ${yield* translate(countLabelKey(metadata.labelKey, value), label)}`;
2638
+ }
2639
+ return renderLabeledAttributeValue({
2640
+ key,
2641
+ label,
2642
+ locale,
2643
+ value
2644
+ });
2645
+ });
2646
+ //#endregion
2647
+ //#region codegen/v9/heuristic-generation/rental-highlight-key-map.ts
2648
+ const V9_RENTAL_HIGHLIGHT_KEYS = new Set(Object.keys(VofficeUnitDataPropertyMetadata));
2649
+ const V9_RENTAL_HIGHLIGHT_KEY_LOOKUP = {
2650
+ ac: "ac",
2651
+ acCoverage: "acCoverage",
2652
+ accessToPrivateBeach: "privateBeach",
2653
+ accessibleByLift: "lift",
2654
+ adaptedBath: "handicappedAccessible",
2655
+ adventure: "adventure",
2656
+ airportdistance: "airportdistance",
2657
+ alarmClock: "alarmClock",
2658
+ alarmSystem: "alarmSystem",
2659
+ allergic: "allergic",
2660
+ archery: "archery",
2661
+ awayFromItAll: "away_from_it_all",
2662
+ babygate: "babygate",
2663
+ balcony: "balcony",
2664
+ balloonTrips: "balloon_trips",
2665
+ basketball: "basketball",
2666
+ bathroomEmergencyPullCord: "handicappedAccessible",
2667
+ bbq: "bbq",
2668
+ bbqArea: "bbqArea",
2669
+ bbqType: "bbqType",
2670
+ beach: "beach",
2671
+ beachChair: "beachChair",
2672
+ beachChairAtBeach: "beachChairAtBeach",
2673
+ beachaccess: "loc_beach",
2674
+ beachdistance: "beachdistance",
2675
+ beachfront: "beachfront",
2676
+ beachtype: "beachtype",
2677
+ beachview: "beachview",
2678
+ beachvolleyball: "beachvolleyball",
2679
+ beamer: "beamer",
2680
+ bicycles: "bicycles",
2681
+ billiards: "billiards",
2682
+ birdWatching: "birdWatching",
2683
+ bathrooms: "bathrooms",
2684
+ bedrooms: "bedrooms",
2685
+ blinds: "blinds",
2686
+ bluray: "bluray",
2687
+ boatBerth: "boatBerth",
2688
+ boatRental: "boat_rental",
2689
+ boatTrip: "boat_trip",
2690
+ boccie: "boccie",
2691
+ bodySoap: "toiletries",
2692
+ bookDvdMusicLibraryForChildren: "books",
2693
+ books: "books",
2694
+ botanicalGarden: "botanicalGarden",
2695
+ bowling: "bowling",
2696
+ budget: "budget",
2697
+ bungeeJumping: "bungee_jumping",
2698
+ canoeing: "canoeing",
2699
+ carNecessity: "carNecessity",
2700
+ carbonMonoxideDetector: "carbonMonoxideDetector",
2701
+ carport: "carport",
2702
+ carriageRides: "carriage_rides",
2703
+ cd: "cd",
2704
+ cds: "cds",
2705
+ childSafetySocketCovers: "socketSafetyCovers",
2706
+ childrenWelcome: "childrenWelcome",
2707
+ church: "church",
2708
+ cinema: "cinema",
2709
+ citydistance: "citydistance",
2710
+ climbing: "climbing",
2711
+ closedPlot: "closedPlot",
2712
+ closedTerrace: "closedTerrace",
2713
+ coffeemaker: "coffeemaker",
2714
+ conditioner: "toiletries",
2715
+ cookingUtensils: "cookingUtensils",
2716
+ cosmeticTreatments: "cosmetic_treatments",
2717
+ countrysideView: "countrysideView",
2718
+ countrysideViewType: "countrysideViewType",
2719
+ coveredTerrace: "coveredTerrace",
2720
+ crossCountrySkiing: "cross-country_skiing",
2721
+ culture: "culture",
2722
+ cycling: "cycling",
2723
+ danceCourses: "dance_courses",
2724
+ daySpa: "day_spa",
2725
+ deepseaFisching: "deepseaFisching",
2726
+ detached: "detached",
2727
+ diningSeating: "diningSeating",
2728
+ dishcloth: "dishcloth",
2729
+ dishes: "dishes",
2730
+ dishwasher: "dishwasher",
2731
+ disco: "disco",
2732
+ diving: "diving",
2733
+ dryer: "dryer",
2734
+ dutyfree: "dutyfree",
2735
+ dvd: "dvd",
2736
+ dvds: "dvds",
2737
+ eggboiler: "eggboiler",
2738
+ electricKettle: "electricKettle",
2739
+ elevation: "elevation",
2740
+ entireUnitWheelchairAccessible: "wheelchairFriendly",
2741
+ espressomachine: "espressomachine",
2742
+ espressomachineType: "espressomachineType",
2743
+ fan: "fan",
2744
+ family: "family",
2745
+ farmHolidays: "farm_holidays",
2746
+ ferrydistance: "ferrydistance",
2747
+ festivals: "festivals",
2748
+ fireAlarms: "firealarm",
2749
+ fireExtinguisher: "fireExtinguisher",
2750
+ fireplace: "fireplace",
2751
+ fireside: "fireside",
2752
+ firesideType: "firesideType",
2753
+ firstAidKit: "firstAidKit",
2754
+ fishguttingPlace: "fishguttingPlace",
2755
+ fitnessTraining: "fitness-training",
2756
+ floor: "floor",
2757
+ floorCount: "floorCount",
2758
+ flyscreen: "flyscreen",
2759
+ football: "football",
2760
+ freezer: "freezer",
2761
+ freezerType: "freezerType",
2762
+ fridge: "fridge",
2763
+ fullLengthMirror: "fullLengthMirror",
2764
+ gambling: "gambling",
2765
+ games: "games",
2766
+ garage: "garage",
2767
+ garden: "garden",
2768
+ gardenShed: "gardenShed",
2769
+ gardenView: "gardenView",
2770
+ golf: "golf",
2771
+ golfdistance: "golfdistance",
2772
+ guestwc: "guestwc",
2773
+ gym: "fitnessroom",
2774
+ gymnastics: "gymnastics",
2775
+ hammock: "hammock",
2776
+ handcart: "handcart",
2777
+ handicappedAccessible: "handicappedAccessible",
2778
+ heating: "heating",
2779
+ heatingSystem: "heatingSystem",
2780
+ helicopterTours: "helicopter_tours",
2781
+ hifi: "hifi",
2782
+ hiking: "hiking",
2783
+ historic: "historic",
2784
+ holidayComplex: "holiday_complex",
2785
+ homecinema: "homecinema",
2786
+ horsebackRiding: "horseback_riding",
2787
+ iceSkating: "iceSkating",
2788
+ individualAirConditioning: "ac",
2789
+ indoorGrill: "indoorGrill",
2790
+ indoorPool: "indoorPool",
2791
+ infraredCabin: "infraredCabin",
2792
+ internet: "internet",
2793
+ internetSpeed: "internetSpeed",
2794
+ iron: "iron",
2795
+ ironingBoard: "ironingBoard",
2796
+ jetSkiing: "jetSkiing",
2797
+ jogging: "jogging",
2798
+ kayaking: "kayaking",
2799
+ kitchen: "kitchen",
2800
+ kitchenDescription: "kitchenDescription",
2801
+ kitchenType: "kitchenType",
2802
+ kitchenmachine: "kitchenmachine",
2803
+ lakedistance: "lakedistance",
2804
+ lakeview: "lakeview",
2805
+ lakeviewType: "lakeviewType",
2806
+ landingStage: "landingStage",
2807
+ laundryRack: "laundryRack",
2808
+ library: "library",
2809
+ lift: "lift",
2810
+ locAtm: "loc_atm",
2811
+ locBay: "loc_bay",
2812
+ locBeach: "loc_beach",
2813
+ locCity: "loc_city",
2814
+ locDowntown: "loc_downtown",
2815
+ locForest: "loc_forest",
2816
+ locGroceries: "loc_groceries",
2817
+ locHospital: "loc_hospital",
2818
+ locLake: "loc_lake",
2819
+ locMedicalServices: "loc_medical_services",
2820
+ locMountain: "loc_mountain",
2821
+ locOcean: "loc_ocean",
2822
+ locRiver: "loc_river",
2823
+ locRural: "loc_rural",
2824
+ locVillage: "loc_village",
2825
+ locWaterfalls: "loc_waterfalls",
2826
+ loungeSeating: "loungeSeating",
2827
+ livingrooms: "living_room",
2828
+ lowBathroomSink: "handicappedAccessible",
2829
+ luxury: "luxury",
2830
+ marquee: "marquee",
2831
+ massages: "massages",
2832
+ maxAdults: "beds",
2833
+ maxPersons: "beds",
2834
+ microwave: "microwave",
2835
+ minigolf: "minigolf",
2836
+ minibar: "minibar",
2837
+ minpersons: "minpersons",
2838
+ mixer: "mixer",
2839
+ mountainbiking: "mountainbiking",
2840
+ mountainview: "mountainview",
2841
+ mountainviewType: "mountainviewType",
2842
+ museums: "museums",
2843
+ nordicWalking: "nordic-walking",
2844
+ nonsmoking: "nonsmoking",
2845
+ nudeBeach: "nudeBeach",
2846
+ outdoorDiningArea: "gardenFurniture",
2847
+ outdoorFurniture: "gardenFurniture",
2848
+ outdoorKitchen: "outdoorKitchen",
2849
+ outdoorPool: "pool",
2850
+ outdoorPoolDetails: "pool",
2851
+ outdoorShower: "outdoorShower",
2852
+ oven: "oven",
2853
+ ovenConnection: "ovenConnection",
2854
+ paragliding: "paragliding",
2855
+ parasailing: "parasailing",
2856
+ parasol: "parasol",
2857
+ parkingCount: "parkingCount",
2858
+ pavilion: "pavilion",
2859
+ penthouse: "penthouse",
2860
+ pilates: "pilates",
2861
+ playground: "playground",
2862
+ playgroundActivity: "playgroundActivity",
2863
+ plotSize: "plotSize",
2864
+ pond: "pond",
2865
+ pool4kids: "pool4kids",
2866
+ pooltable: "pooltable",
2867
+ poolView: "poolView",
2868
+ privateOpenAirBath: "outdoorShower",
2869
+ privateparking: "privateparking",
2870
+ publictransportdistance: "publictransportdistance",
2871
+ qiGong: "qi_gong",
2872
+ raclette: "raclette",
2873
+ radio: "radio",
2874
+ rafting: "rafting",
2875
+ restaurantdistance: "restaurantdistance",
2876
+ restaurants: "restaurants",
2877
+ riverView: "riverView",
2878
+ rollInShower: "handicappedAccessible",
2879
+ romantic: "romantic",
2880
+ rooms: "rooms",
2881
+ rowing: "rowing",
2882
+ ruins: "ruins",
2883
+ safe: "safe",
2884
+ sailing: "sailing",
2885
+ sandbox: "sandbox",
2886
+ sandwichToaster: "sandwichToaster",
2887
+ sauna: "sauna",
2888
+ seadistance: "seadistance",
2889
+ seaview: "seaview",
2890
+ seaviewType: "seaviewType",
2891
+ shampoo: "toiletries",
2892
+ shoeCabinet: "shoeCabinet",
2893
+ shopping: "shopping",
2894
+ shoppingdistance: "shoppingdistance",
2895
+ showerChair: "handicappedAccessible",
2896
+ sightSeeing: "sight_seeing",
2897
+ skiBootWarmer: "skiBootWarmer",
2898
+ skidistance: "skidistance",
2899
+ skialpine: "skialpine",
2900
+ sledding: "sledding",
2901
+ slide: "slide",
2902
+ smokeDetector: "smokeDetector",
2903
+ snorkeling: "snorkeling",
2904
+ snowboarding: "snowboarding",
2905
+ solarium: "solarium",
2906
+ spa: "wellness",
2907
+ spices: "spices",
2908
+ spelunking: "spelunking",
2909
+ sportsActivities: "sports_activities",
2910
+ squash: "squash",
2911
+ stars: "stars",
2912
+ steambath: "steambath",
2913
+ stove: "stove",
2914
+ stoveType: "stoveType",
2915
+ sunbathingArea: "sunbathingArea",
2916
+ sunlounger: "sunlounger",
2917
+ surfing: "surfing",
2918
+ swimming: "swimming",
2919
+ swing: "swing",
2920
+ synagogues: "synagogues",
2921
+ tableTennis: "table_tennis",
2922
+ tableTennisTable: "tableTennisTable",
2923
+ tennis: "tennis",
2924
+ tennisCourt: "tennisCourt",
2925
+ terrace: "terrace",
2926
+ theater: "theater",
2927
+ themeParks: "themeParks",
2928
+ toaster: "toaster",
2929
+ toiletPaper: "toiletries",
2930
+ toiletWithGrabRails: "handicappedAccessible",
2931
+ toothbrush: "toiletries",
2932
+ touristAttractions: "tourist_attractions",
2933
+ toys: "toys",
2934
+ trainstationdistance: "trainstationdistance",
2935
+ trampoline: "trampoline",
2936
+ trashCans: "trashcan",
2937
+ trashcan: "trashcan",
2938
+ trekking: "trekking",
2939
+ tv: "tv",
2940
+ tvConnection: "tvConnection",
2941
+ tvCount: "tvCount",
2942
+ tvInternationalChannels: "tvInternationalChannels",
2943
+ tvSize: "tvSize",
2944
+ upperFloorReachableByLift: "lift",
2945
+ vacuum: "vacuum",
2946
+ valleyView: "valleyView",
2947
+ valleyViewType: "valleyViewType",
2948
+ vod: "vod",
2949
+ walking: "walking",
2950
+ warmwater: "warmwater",
2951
+ washer: "washer",
2952
+ waterParks: "waterParks",
2953
+ waterSki: "water_ski",
2954
+ waterSport: "water_sport",
2955
+ wellness: "wellness",
2956
+ wellnessActivity: "wellnessActivity",
2957
+ whaleWatching: "whale_watching",
2958
+ wheelchairFriendly: "wheelchairFriendly",
2959
+ whirlpool: "whirlpool",
2960
+ wifi: "wifi",
2961
+ windScreen: "windScreen",
2962
+ windSurfing: "windSurfing",
2963
+ yearOfConstruction: "yearOfConstruction",
2964
+ yearOfLastRenovation: "yearOfLastRenovation",
2965
+ yoga: "yoga",
2966
+ youthgroups: "youthgroups",
2967
+ zoo: "zoo"
2968
+ };
2969
+ const toV9RentalHighlightKey = (key) => {
2970
+ const mappedKey = V9_RENTAL_HIGHLIGHT_KEY_LOOKUP[key] ?? key;
2971
+ return V9_RENTAL_HIGHLIGHT_KEYS.has(mappedKey) ? mappedKey : void 0;
2972
+ };
2973
+ //#endregion
2974
+ //#region src/legacy-v9/parser/rentals/to-rental-highlights.ts
2975
+ const RENTAL_VIEW_HIGHLIGHT_KEYS = /* @__PURE__ */ new Set([
2976
+ "beachview",
2977
+ "cityView",
2978
+ "countrysideView",
2979
+ "gardenView",
2980
+ "innerCourtView",
2981
+ "lakeview",
2982
+ "mountainview",
2983
+ "poolView",
2984
+ "quietStreetView",
2985
+ "riverView",
2986
+ "seaview",
2987
+ "valleyView"
2988
+ ]);
2989
+ const toRentalHighlights = ({ locale, translations, highlightPrioritization, customAttributes, attributes }) => Effect.gen(function* () {
2990
+ const highlights = [];
2991
+ const seenKeys = /* @__PURE__ */ new Set();
2992
+ const knownAttributes = attributes.known;
2993
+ const translate = makeTranslate(translations, locale);
2994
+ let hasViewHighlight = false;
2995
+ for (const highlightKey of highlightPrioritization) {
2996
+ const isViewHighlight = RENTAL_VIEW_HIGHLIGHT_KEYS.has(highlightKey);
2997
+ if (isViewHighlight && hasViewHighlight) continue;
2998
+ const v9Key = toV9RentalHighlightKey(highlightKey);
2999
+ if (v9Key == null) {
3000
+ if (seenKeys.has(highlightKey)) continue;
3001
+ seenKeys.add(highlightKey);
3002
+ const attribute = customAttributes.byKey[highlightKey];
3003
+ if (attribute === void 0) continue;
3004
+ const binding = attribute.v9;
3005
+ const value = binding === void 0 ? void 0 : knownAttributes[binding] ?? attributes.unknown[binding];
3006
+ const highlight = renderResolvedCustomAttribute({
3007
+ attribute,
3008
+ locale,
3009
+ value
3010
+ });
3011
+ if (highlight != null) {
3012
+ highlights.push(highlight);
3013
+ if (isViewHighlight) hasViewHighlight = true;
3014
+ }
3015
+ continue;
3016
+ }
3017
+ if (seenKeys.has(v9Key)) continue;
3018
+ seenKeys.add(v9Key);
3019
+ const metadata = VofficeUnitDataPropertyMetadata[v9Key];
3020
+ const highlight = yield* renderVofficePropertyAttribute({
3021
+ key: v9Key,
3022
+ metadata,
3023
+ locale,
3024
+ translate,
3025
+ value: knownAttributes[v9Key]
3026
+ });
3027
+ if (highlight != null) {
3028
+ highlights.push(highlight);
3029
+ if (isViewHighlight) hasViewHighlight = true;
3030
+ }
3031
+ }
3032
+ return highlights;
3033
+ });
3034
+ //#endregion
3035
+ export { toAddress as a, rentalFacilitiesForObjectGroupRelationQuery as c, rentalsAllFeedbacksQuery as d, rentalsAllWithoutFeedbacksQuery as f, toImages as i, rentalIdsQuery as l, renderVofficePropertyAttribute as n, toLocalizedString as o, toFacilityImages as r, searchQuery as s, toRentalHighlights as t, rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery as u };