@v-office/website-sdk 2.17.0 → 2.18.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 (38) hide show
  1. package/README.md +18 -0
  2. package/dist/cli.mjs +10 -11
  3. package/dist/{client-ScO68LGg.mjs → client-BnA0oXd_.mjs} +221 -24
  4. package/dist/index.d.mts +48 -2
  5. package/dist/index.mjs +2 -2
  6. package/dist/instructions/CHANGELOG.md +2 -0
  7. package/dist/instructions/MIGRATION.md +2 -0
  8. package/dist/instructions/README.md +10 -2
  9. package/dist/instructions/availability.md +12 -11
  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.17.1/CHANGELOG.md +26 -0
  15. package/dist/instructions/versions/2.17.1/MIGRATION.md +35 -0
  16. package/dist/instructions/versions/2.18.0/CHANGELOG.md +133 -0
  17. package/dist/instructions/versions/2.18.0/MIGRATION.md +364 -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-zsnAfUtc.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 +2 -0
  27. package/instructions/MIGRATION.md +2 -0
  28. package/instructions/README.md +10 -2
  29. package/instructions/availability.md +12 -11
  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.17.1/CHANGELOG.md +26 -0
  35. package/instructions/versions/2.17.1/MIGRATION.md +35 -0
  36. package/instructions/versions/2.18.0/CHANGELOG.md +133 -0
  37. package/instructions/versions/2.18.0/MIGRATION.md +364 -0
  38. package/package.json +5 -4
@@ -1,5 +1,4 @@
1
- import { localeToLanguage, makeTranslate, renderLabeledAttributeValue, renderResolvedCustomAttribute, toCountry } from "@v-office/sdk-core";
2
- import { Effect, Schema } from "effect";
1
+ import { Schema } from "effect";
3
2
  //#region codegen/v9/heuristic-generation/v9-data.ts
4
3
  /**
5
4
  * Known attribute schemas for v9 JSON data fields.
@@ -13,7 +12,8 @@ const nullableStringOrNumber = Schema.NullOr(Schema.Union([Schema.String, Schema
13
12
  const localizedString = Schema.Union([Schema.String, Schema.Record(Schema.String, Schema.String)]);
14
13
  Schema.mutable(Schema.Array(Schema.String));
15
14
  const numberArray = Schema.mutable(Schema.Array(Schema.Number));
16
- const isRecord$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
15
+ const customDataAttribute = (name) => name;
16
+ const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
17
17
  const parseJsonString = (input) => {
18
18
  if (typeof input !== "string") return input;
19
19
  try {
@@ -26,7 +26,7 @@ const parseJsonData = (fields, input) => {
26
26
  const known = {};
27
27
  const unknown = {};
28
28
  const normalized = parseJsonString(input);
29
- if (!isRecord$1(normalized)) return {
29
+ if (!isRecord(normalized)) return {
30
30
  known: {},
31
31
  unknown: normalized == null ? {} : { $value: normalized }
32
32
  };
@@ -4861,8 +4861,23 @@ Schema.String, Schema.String;
4861
4861
  /** Known structure of VofficeFacility.data attributes. */
4862
4862
  const VofficeFacilityDataFieldSchemas = {
4863
4863
  name: localizedString,
4864
+ headline: localizedString,
4865
+ intro: localizedString,
4864
4866
  description: localizedString,
4865
- images: Schema.mutable(Schema.Array(ImageDataSchema))
4867
+ altDescription: localizedString,
4868
+ arrivalInfo: localizedString,
4869
+ departureInfo: localizedString,
4870
+ locationDescription: localizedString,
4871
+ directions: localizedString,
4872
+ images: Schema.mutable(Schema.Array(ImageDataSchema)),
4873
+ type: Schema.String,
4874
+ loc: GeoLocationSchema,
4875
+ address: AddressSchema,
4876
+ regionName: localizedString,
4877
+ allergic: Schema.Number,
4878
+ childrenWelcome: Schema.Number,
4879
+ pets: Schema.Number,
4880
+ youthgroups: Schema.Number
4866
4881
  };
4867
4882
  const parseVofficeFacilityData = (input) => parseJsonData(VofficeFacilityDataFieldSchemas, input);
4868
4883
  Schema.String, Schema.String, Schema.Number, Schema.String;
@@ -4890,2433 +4905,4 @@ Schema.String, Schema.String, Schema.Number;
4890
4905
  Schema.Number, Schema.Number;
4891
4906
  Schema.Number, Schema.Number, Schema.Number, Schema.Number;
4892
4907
  //#endregion
4893
- //#region codegen/v9/graphql-codegen/generated/gql.ts
4894
- const documents = {
4895
- "\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": {
4896
- kind: "Document",
4897
- definitions: [{
4898
- kind: "OperationDefinition",
4899
- operation: "query",
4900
- name: {
4901
- kind: "Name",
4902
- value: "CoreSDK_RentalsAllWithoutFeedbacks"
4903
- },
4904
- variableDefinitions: [
4905
- {
4906
- kind: "VariableDefinition",
4907
- variable: {
4908
- kind: "Variable",
4909
- name: {
4910
- kind: "Name",
4911
- value: "language"
4912
- }
4913
- },
4914
- type: {
4915
- kind: "NamedType",
4916
- name: {
4917
- kind: "Name",
4918
- value: "String"
4919
- }
4920
- }
4921
- },
4922
- {
4923
- kind: "VariableDefinition",
4924
- variable: {
4925
- kind: "Variable",
4926
- name: {
4927
- kind: "Name",
4928
- value: "voffice_ids"
4929
- }
4930
- },
4931
- type: {
4932
- kind: "ListType",
4933
- type: {
4934
- kind: "NonNullType",
4935
- type: {
4936
- kind: "NamedType",
4937
- name: {
4938
- kind: "Name",
4939
- value: "Int"
4940
- }
4941
- }
4942
- }
4943
- }
4944
- },
4945
- {
4946
- kind: "VariableDefinition",
4947
- variable: {
4948
- kind: "Variable",
4949
- name: {
4950
- kind: "Name",
4951
- value: "rentalDataAttributes"
4952
- }
4953
- },
4954
- type: {
4955
- kind: "NonNullType",
4956
- type: {
4957
- kind: "ListType",
4958
- type: {
4959
- kind: "NonNullType",
4960
- type: {
4961
- kind: "NamedType",
4962
- name: {
4963
- kind: "Name",
4964
- value: "String"
4965
- }
4966
- }
4967
- }
4968
- }
4969
- },
4970
- defaultValue: {
4971
- kind: "ListValue",
4972
- values: []
4973
- }
4974
- },
4975
- {
4976
- kind: "VariableDefinition",
4977
- variable: {
4978
- kind: "Variable",
4979
- name: {
4980
- kind: "Name",
4981
- value: "rentalFacilityDataAttributes"
4982
- }
4983
- },
4984
- type: {
4985
- kind: "NonNullType",
4986
- type: {
4987
- kind: "ListType",
4988
- type: {
4989
- kind: "NonNullType",
4990
- type: {
4991
- kind: "NamedType",
4992
- name: {
4993
- kind: "Name",
4994
- value: "String"
4995
- }
4996
- }
4997
- }
4998
- }
4999
- },
5000
- defaultValue: {
5001
- kind: "ListValue",
5002
- values: []
5003
- }
5004
- },
5005
- {
5006
- kind: "VariableDefinition",
5007
- variable: {
5008
- kind: "Variable",
5009
- name: {
5010
- kind: "Name",
5011
- value: "rentalRatingDataAttributes"
5012
- }
5013
- },
5014
- type: {
5015
- kind: "NonNullType",
5016
- type: {
5017
- kind: "ListType",
5018
- type: {
5019
- kind: "NonNullType",
5020
- type: {
5021
- kind: "NamedType",
5022
- name: {
5023
- kind: "Name",
5024
- value: "String"
5025
- }
5026
- }
5027
- }
5028
- }
5029
- },
5030
- defaultValue: {
5031
- kind: "ListValue",
5032
- values: []
5033
- }
5034
- }
5035
- ],
5036
- selectionSet: {
5037
- kind: "SelectionSet",
5038
- selections: [{
5039
- kind: "Field",
5040
- name: {
5041
- kind: "Name",
5042
- value: "all"
5043
- },
5044
- arguments: [{
5045
- kind: "Argument",
5046
- name: {
5047
- kind: "Name",
5048
- value: "language"
5049
- },
5050
- value: {
5051
- kind: "Variable",
5052
- name: {
5053
- kind: "Name",
5054
- value: "language"
5055
- }
5056
- }
5057
- }, {
5058
- kind: "Argument",
5059
- name: {
5060
- kind: "Name",
5061
- value: "voffice_ids"
5062
- },
5063
- value: {
5064
- kind: "Variable",
5065
- name: {
5066
- kind: "Name",
5067
- value: "voffice_ids"
5068
- }
5069
- }
5070
- }],
5071
- selectionSet: {
5072
- kind: "SelectionSet",
5073
- selections: [
5074
- {
5075
- kind: "Field",
5076
- name: {
5077
- kind: "Name",
5078
- value: "id"
5079
- }
5080
- },
5081
- {
5082
- kind: "Field",
5083
- name: {
5084
- kind: "Name",
5085
- value: "voffice_id"
5086
- }
5087
- },
5088
- {
5089
- kind: "Field",
5090
- name: {
5091
- kind: "Name",
5092
- value: "voffice_facility_id"
5093
- }
5094
- },
5095
- {
5096
- kind: "Field",
5097
- name: {
5098
- kind: "Name",
5099
- value: "name"
5100
- }
5101
- },
5102
- {
5103
- kind: "Field",
5104
- name: {
5105
- kind: "Name",
5106
- value: "publish"
5107
- }
5108
- },
5109
- {
5110
- kind: "Field",
5111
- name: {
5112
- kind: "Name",
5113
- value: "data"
5114
- },
5115
- arguments: [{
5116
- kind: "Argument",
5117
- name: {
5118
- kind: "Name",
5119
- value: "attributes"
5120
- },
5121
- value: {
5122
- kind: "Variable",
5123
- name: {
5124
- kind: "Name",
5125
- value: "rentalDataAttributes"
5126
- }
5127
- }
5128
- }]
5129
- },
5130
- {
5131
- kind: "Field",
5132
- name: {
5133
- kind: "Name",
5134
- value: "additional_voffice_data"
5135
- },
5136
- selectionSet: {
5137
- kind: "SelectionSet",
5138
- selections: [{
5139
- kind: "Field",
5140
- name: {
5141
- kind: "Name",
5142
- value: "beds"
5143
- }
5144
- }]
5145
- }
5146
- },
5147
- {
5148
- kind: "Field",
5149
- name: {
5150
- kind: "Name",
5151
- value: "voffice_facility"
5152
- },
5153
- selectionSet: {
5154
- kind: "SelectionSet",
5155
- selections: [
5156
- {
5157
- kind: "Field",
5158
- name: {
5159
- kind: "Name",
5160
- value: "id"
5161
- }
5162
- },
5163
- {
5164
- kind: "Field",
5165
- name: {
5166
- kind: "Name",
5167
- value: "voffice_id"
5168
- }
5169
- },
5170
- {
5171
- kind: "Field",
5172
- name: {
5173
- kind: "Name",
5174
- value: "name"
5175
- }
5176
- },
5177
- {
5178
- kind: "Field",
5179
- name: {
5180
- kind: "Name",
5181
- value: "publish"
5182
- }
5183
- },
5184
- {
5185
- kind: "Field",
5186
- name: {
5187
- kind: "Name",
5188
- value: "data"
5189
- },
5190
- arguments: [{
5191
- kind: "Argument",
5192
- name: {
5193
- kind: "Name",
5194
- value: "attributes"
5195
- },
5196
- value: {
5197
- kind: "Variable",
5198
- name: {
5199
- kind: "Name",
5200
- value: "rentalFacilityDataAttributes"
5201
- }
5202
- }
5203
- }]
5204
- }
5205
- ]
5206
- }
5207
- },
5208
- {
5209
- kind: "Field",
5210
- name: {
5211
- kind: "Name",
5212
- value: "voffice_images"
5213
- },
5214
- selectionSet: {
5215
- kind: "SelectionSet",
5216
- selections: [
5217
- {
5218
- kind: "Field",
5219
- name: {
5220
- kind: "Name",
5221
- value: "id"
5222
- }
5223
- },
5224
- {
5225
- kind: "Field",
5226
- name: {
5227
- kind: "Name",
5228
- value: "path"
5229
- }
5230
- },
5231
- {
5232
- kind: "Field",
5233
- name: {
5234
- kind: "Name",
5235
- value: "title"
5236
- }
5237
- },
5238
- {
5239
- kind: "Field",
5240
- name: {
5241
- kind: "Name",
5242
- value: "description"
5243
- }
5244
- }
5245
- ]
5246
- }
5247
- },
5248
- {
5249
- kind: "Field",
5250
- name: {
5251
- kind: "Name",
5252
- value: "voffice_room_images"
5253
- },
5254
- selectionSet: {
5255
- kind: "SelectionSet",
5256
- selections: [
5257
- {
5258
- kind: "Field",
5259
- name: {
5260
- kind: "Name",
5261
- value: "id"
5262
- }
5263
- },
5264
- {
5265
- kind: "Field",
5266
- name: {
5267
- kind: "Name",
5268
- value: "path"
5269
- }
5270
- },
5271
- {
5272
- kind: "Field",
5273
- name: {
5274
- kind: "Name",
5275
- value: "name"
5276
- }
5277
- },
5278
- {
5279
- kind: "Field",
5280
- name: {
5281
- kind: "Name",
5282
- value: "title"
5283
- }
5284
- },
5285
- {
5286
- kind: "Field",
5287
- name: {
5288
- kind: "Name",
5289
- value: "description"
5290
- }
5291
- }
5292
- ]
5293
- }
5294
- },
5295
- {
5296
- kind: "Field",
5297
- name: {
5298
- kind: "Name",
5299
- value: "voffice_rating"
5300
- },
5301
- selectionSet: {
5302
- kind: "SelectionSet",
5303
- selections: [{
5304
- kind: "Field",
5305
- name: {
5306
- kind: "Name",
5307
- value: "id"
5308
- }
5309
- }, {
5310
- kind: "Field",
5311
- name: {
5312
- kind: "Name",
5313
- value: "data"
5314
- },
5315
- arguments: [{
5316
- kind: "Argument",
5317
- name: {
5318
- kind: "Name",
5319
- value: "attributes"
5320
- },
5321
- value: {
5322
- kind: "Variable",
5323
- name: {
5324
- kind: "Name",
5325
- value: "rentalRatingDataAttributes"
5326
- }
5327
- }
5328
- }]
5329
- }]
5330
- }
5331
- }
5332
- ]
5333
- }
5334
- }]
5335
- }
5336
- }]
5337
- },
5338
- "\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": {
5339
- kind: "Document",
5340
- definitions: [{
5341
- kind: "OperationDefinition",
5342
- operation: "query",
5343
- name: {
5344
- kind: "Name",
5345
- value: "CoreSDK_RentalsAllFeedbacks"
5346
- },
5347
- variableDefinitions: [
5348
- {
5349
- kind: "VariableDefinition",
5350
- variable: {
5351
- kind: "Variable",
5352
- name: {
5353
- kind: "Name",
5354
- value: "language"
5355
- }
5356
- },
5357
- type: {
5358
- kind: "NamedType",
5359
- name: {
5360
- kind: "Name",
5361
- value: "String"
5362
- }
5363
- }
5364
- },
5365
- {
5366
- kind: "VariableDefinition",
5367
- variable: {
5368
- kind: "Variable",
5369
- name: {
5370
- kind: "Name",
5371
- value: "voffice_ids"
5372
- }
5373
- },
5374
- type: {
5375
- kind: "ListType",
5376
- type: {
5377
- kind: "NonNullType",
5378
- type: {
5379
- kind: "NamedType",
5380
- name: {
5381
- kind: "Name",
5382
- value: "Int"
5383
- }
5384
- }
5385
- }
5386
- }
5387
- },
5388
- {
5389
- kind: "VariableDefinition",
5390
- variable: {
5391
- kind: "Variable",
5392
- name: {
5393
- kind: "Name",
5394
- value: "rentalFeedbackDataAttributes"
5395
- }
5396
- },
5397
- type: {
5398
- kind: "NonNullType",
5399
- type: {
5400
- kind: "ListType",
5401
- type: {
5402
- kind: "NonNullType",
5403
- type: {
5404
- kind: "NamedType",
5405
- name: {
5406
- kind: "Name",
5407
- value: "String"
5408
- }
5409
- }
5410
- }
5411
- }
5412
- },
5413
- defaultValue: {
5414
- kind: "ListValue",
5415
- values: []
5416
- }
5417
- }
5418
- ],
5419
- selectionSet: {
5420
- kind: "SelectionSet",
5421
- selections: [{
5422
- kind: "Field",
5423
- name: {
5424
- kind: "Name",
5425
- value: "all"
5426
- },
5427
- arguments: [{
5428
- kind: "Argument",
5429
- name: {
5430
- kind: "Name",
5431
- value: "language"
5432
- },
5433
- value: {
5434
- kind: "Variable",
5435
- name: {
5436
- kind: "Name",
5437
- value: "language"
5438
- }
5439
- }
5440
- }, {
5441
- kind: "Argument",
5442
- name: {
5443
- kind: "Name",
5444
- value: "voffice_ids"
5445
- },
5446
- value: {
5447
- kind: "Variable",
5448
- name: {
5449
- kind: "Name",
5450
- value: "voffice_ids"
5451
- }
5452
- }
5453
- }],
5454
- selectionSet: {
5455
- kind: "SelectionSet",
5456
- selections: [{
5457
- kind: "Field",
5458
- name: {
5459
- kind: "Name",
5460
- value: "voffice_id"
5461
- }
5462
- }, {
5463
- kind: "Field",
5464
- name: {
5465
- kind: "Name",
5466
- value: "voffice_feedbacks"
5467
- },
5468
- selectionSet: {
5469
- kind: "SelectionSet",
5470
- selections: [{
5471
- kind: "Field",
5472
- name: {
5473
- kind: "Name",
5474
- value: "data"
5475
- },
5476
- arguments: [{
5477
- kind: "Argument",
5478
- name: {
5479
- kind: "Name",
5480
- value: "attributes"
5481
- },
5482
- value: {
5483
- kind: "Variable",
5484
- name: {
5485
- kind: "Name",
5486
- value: "rentalFeedbackDataAttributes"
5487
- }
5488
- }
5489
- }]
5490
- }]
5491
- }
5492
- }]
5493
- }
5494
- }]
5495
- }
5496
- }]
5497
- },
5498
- "\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": {
5499
- kind: "Document",
5500
- definitions: [{
5501
- kind: "OperationDefinition",
5502
- operation: "query",
5503
- name: {
5504
- kind: "Name",
5505
- value: "CoreSDK_RentalsAll"
5506
- },
5507
- variableDefinitions: [
5508
- {
5509
- kind: "VariableDefinition",
5510
- variable: {
5511
- kind: "Variable",
5512
- name: {
5513
- kind: "Name",
5514
- value: "language"
5515
- }
5516
- },
5517
- type: {
5518
- kind: "NamedType",
5519
- name: {
5520
- kind: "Name",
5521
- value: "String"
5522
- }
5523
- }
5524
- },
5525
- {
5526
- kind: "VariableDefinition",
5527
- variable: {
5528
- kind: "Variable",
5529
- name: {
5530
- kind: "Name",
5531
- value: "voffice_ids"
5532
- }
5533
- },
5534
- type: {
5535
- kind: "ListType",
5536
- type: {
5537
- kind: "NonNullType",
5538
- type: {
5539
- kind: "NamedType",
5540
- name: {
5541
- kind: "Name",
5542
- value: "Int"
5543
- }
5544
- }
5545
- }
5546
- }
5547
- },
5548
- {
5549
- kind: "VariableDefinition",
5550
- variable: {
5551
- kind: "Variable",
5552
- name: {
5553
- kind: "Name",
5554
- value: "rentalDataAttributes"
5555
- }
5556
- },
5557
- type: {
5558
- kind: "NonNullType",
5559
- type: {
5560
- kind: "ListType",
5561
- type: {
5562
- kind: "NonNullType",
5563
- type: {
5564
- kind: "NamedType",
5565
- name: {
5566
- kind: "Name",
5567
- value: "String"
5568
- }
5569
- }
5570
- }
5571
- }
5572
- },
5573
- defaultValue: {
5574
- kind: "ListValue",
5575
- values: []
5576
- }
5577
- },
5578
- {
5579
- kind: "VariableDefinition",
5580
- variable: {
5581
- kind: "Variable",
5582
- name: {
5583
- kind: "Name",
5584
- value: "rentalFacilityDataAttributes"
5585
- }
5586
- },
5587
- type: {
5588
- kind: "NonNullType",
5589
- type: {
5590
- kind: "ListType",
5591
- type: {
5592
- kind: "NonNullType",
5593
- type: {
5594
- kind: "NamedType",
5595
- name: {
5596
- kind: "Name",
5597
- value: "String"
5598
- }
5599
- }
5600
- }
5601
- }
5602
- },
5603
- defaultValue: {
5604
- kind: "ListValue",
5605
- values: []
5606
- }
5607
- },
5608
- {
5609
- kind: "VariableDefinition",
5610
- variable: {
5611
- kind: "Variable",
5612
- name: {
5613
- kind: "Name",
5614
- value: "rentalRatingDataAttributes"
5615
- }
5616
- },
5617
- type: {
5618
- kind: "NonNullType",
5619
- type: {
5620
- kind: "ListType",
5621
- type: {
5622
- kind: "NonNullType",
5623
- type: {
5624
- kind: "NamedType",
5625
- name: {
5626
- kind: "Name",
5627
- value: "String"
5628
- }
5629
- }
5630
- }
5631
- }
5632
- },
5633
- defaultValue: {
5634
- kind: "ListValue",
5635
- values: []
5636
- }
5637
- },
5638
- {
5639
- kind: "VariableDefinition",
5640
- variable: {
5641
- kind: "Variable",
5642
- name: {
5643
- kind: "Name",
5644
- value: "rentalFeedbackDataAttributes"
5645
- }
5646
- },
5647
- type: {
5648
- kind: "NonNullType",
5649
- type: {
5650
- kind: "ListType",
5651
- type: {
5652
- kind: "NonNullType",
5653
- type: {
5654
- kind: "NamedType",
5655
- name: {
5656
- kind: "Name",
5657
- value: "String"
5658
- }
5659
- }
5660
- }
5661
- }
5662
- },
5663
- defaultValue: {
5664
- kind: "ListValue",
5665
- values: []
5666
- }
5667
- }
5668
- ],
5669
- selectionSet: {
5670
- kind: "SelectionSet",
5671
- selections: [{
5672
- kind: "Field",
5673
- name: {
5674
- kind: "Name",
5675
- value: "all"
5676
- },
5677
- arguments: [{
5678
- kind: "Argument",
5679
- name: {
5680
- kind: "Name",
5681
- value: "language"
5682
- },
5683
- value: {
5684
- kind: "Variable",
5685
- name: {
5686
- kind: "Name",
5687
- value: "language"
5688
- }
5689
- }
5690
- }, {
5691
- kind: "Argument",
5692
- name: {
5693
- kind: "Name",
5694
- value: "voffice_ids"
5695
- },
5696
- value: {
5697
- kind: "Variable",
5698
- name: {
5699
- kind: "Name",
5700
- value: "voffice_ids"
5701
- }
5702
- }
5703
- }],
5704
- selectionSet: {
5705
- kind: "SelectionSet",
5706
- selections: [
5707
- {
5708
- kind: "Field",
5709
- name: {
5710
- kind: "Name",
5711
- value: "id"
5712
- }
5713
- },
5714
- {
5715
- kind: "Field",
5716
- name: {
5717
- kind: "Name",
5718
- value: "voffice_id"
5719
- }
5720
- },
5721
- {
5722
- kind: "Field",
5723
- name: {
5724
- kind: "Name",
5725
- value: "voffice_facility_id"
5726
- }
5727
- },
5728
- {
5729
- kind: "Field",
5730
- name: {
5731
- kind: "Name",
5732
- value: "name"
5733
- }
5734
- },
5735
- {
5736
- kind: "Field",
5737
- name: {
5738
- kind: "Name",
5739
- value: "publish"
5740
- }
5741
- },
5742
- {
5743
- kind: "Field",
5744
- name: {
5745
- kind: "Name",
5746
- value: "data"
5747
- },
5748
- arguments: [{
5749
- kind: "Argument",
5750
- name: {
5751
- kind: "Name",
5752
- value: "attributes"
5753
- },
5754
- value: {
5755
- kind: "Variable",
5756
- name: {
5757
- kind: "Name",
5758
- value: "rentalDataAttributes"
5759
- }
5760
- }
5761
- }]
5762
- },
5763
- {
5764
- kind: "Field",
5765
- name: {
5766
- kind: "Name",
5767
- value: "additional_voffice_data"
5768
- },
5769
- selectionSet: {
5770
- kind: "SelectionSet",
5771
- selections: [{
5772
- kind: "Field",
5773
- name: {
5774
- kind: "Name",
5775
- value: "beds"
5776
- }
5777
- }]
5778
- }
5779
- },
5780
- {
5781
- kind: "Field",
5782
- name: {
5783
- kind: "Name",
5784
- value: "voffice_facility"
5785
- },
5786
- selectionSet: {
5787
- kind: "SelectionSet",
5788
- selections: [
5789
- {
5790
- kind: "Field",
5791
- name: {
5792
- kind: "Name",
5793
- value: "id"
5794
- }
5795
- },
5796
- {
5797
- kind: "Field",
5798
- name: {
5799
- kind: "Name",
5800
- value: "voffice_id"
5801
- }
5802
- },
5803
- {
5804
- kind: "Field",
5805
- name: {
5806
- kind: "Name",
5807
- value: "name"
5808
- }
5809
- },
5810
- {
5811
- kind: "Field",
5812
- name: {
5813
- kind: "Name",
5814
- value: "publish"
5815
- }
5816
- },
5817
- {
5818
- kind: "Field",
5819
- name: {
5820
- kind: "Name",
5821
- value: "data"
5822
- },
5823
- arguments: [{
5824
- kind: "Argument",
5825
- name: {
5826
- kind: "Name",
5827
- value: "attributes"
5828
- },
5829
- value: {
5830
- kind: "Variable",
5831
- name: {
5832
- kind: "Name",
5833
- value: "rentalFacilityDataAttributes"
5834
- }
5835
- }
5836
- }]
5837
- }
5838
- ]
5839
- }
5840
- },
5841
- {
5842
- kind: "Field",
5843
- name: {
5844
- kind: "Name",
5845
- value: "voffice_images"
5846
- },
5847
- selectionSet: {
5848
- kind: "SelectionSet",
5849
- selections: [
5850
- {
5851
- kind: "Field",
5852
- name: {
5853
- kind: "Name",
5854
- value: "id"
5855
- }
5856
- },
5857
- {
5858
- kind: "Field",
5859
- name: {
5860
- kind: "Name",
5861
- value: "path"
5862
- }
5863
- },
5864
- {
5865
- kind: "Field",
5866
- name: {
5867
- kind: "Name",
5868
- value: "title"
5869
- }
5870
- },
5871
- {
5872
- kind: "Field",
5873
- name: {
5874
- kind: "Name",
5875
- value: "description"
5876
- }
5877
- }
5878
- ]
5879
- }
5880
- },
5881
- {
5882
- kind: "Field",
5883
- name: {
5884
- kind: "Name",
5885
- value: "voffice_room_images"
5886
- },
5887
- selectionSet: {
5888
- kind: "SelectionSet",
5889
- selections: [
5890
- {
5891
- kind: "Field",
5892
- name: {
5893
- kind: "Name",
5894
- value: "id"
5895
- }
5896
- },
5897
- {
5898
- kind: "Field",
5899
- name: {
5900
- kind: "Name",
5901
- value: "path"
5902
- }
5903
- },
5904
- {
5905
- kind: "Field",
5906
- name: {
5907
- kind: "Name",
5908
- value: "name"
5909
- }
5910
- },
5911
- {
5912
- kind: "Field",
5913
- name: {
5914
- kind: "Name",
5915
- value: "title"
5916
- }
5917
- },
5918
- {
5919
- kind: "Field",
5920
- name: {
5921
- kind: "Name",
5922
- value: "description"
5923
- }
5924
- }
5925
- ]
5926
- }
5927
- },
5928
- {
5929
- kind: "Field",
5930
- name: {
5931
- kind: "Name",
5932
- value: "voffice_rating"
5933
- },
5934
- selectionSet: {
5935
- kind: "SelectionSet",
5936
- selections: [{
5937
- kind: "Field",
5938
- name: {
5939
- kind: "Name",
5940
- value: "id"
5941
- }
5942
- }, {
5943
- kind: "Field",
5944
- name: {
5945
- kind: "Name",
5946
- value: "data"
5947
- },
5948
- arguments: [{
5949
- kind: "Argument",
5950
- name: {
5951
- kind: "Name",
5952
- value: "attributes"
5953
- },
5954
- value: {
5955
- kind: "Variable",
5956
- name: {
5957
- kind: "Name",
5958
- value: "rentalRatingDataAttributes"
5959
- }
5960
- }
5961
- }]
5962
- }]
5963
- }
5964
- },
5965
- {
5966
- kind: "Field",
5967
- name: {
5968
- kind: "Name",
5969
- value: "voffice_feedbacks"
5970
- },
5971
- selectionSet: {
5972
- kind: "SelectionSet",
5973
- selections: [{
5974
- kind: "Field",
5975
- name: {
5976
- kind: "Name",
5977
- value: "data"
5978
- },
5979
- arguments: [{
5980
- kind: "Argument",
5981
- name: {
5982
- kind: "Name",
5983
- value: "attributes"
5984
- },
5985
- value: {
5986
- kind: "Variable",
5987
- name: {
5988
- kind: "Name",
5989
- value: "rentalFeedbackDataAttributes"
5990
- }
5991
- }
5992
- }]
5993
- }]
5994
- }
5995
- }
5996
- ]
5997
- }
5998
- }]
5999
- }
6000
- }]
6001
- },
6002
- "\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": {
6003
- kind: "Document",
6004
- definitions: [{
6005
- kind: "OperationDefinition",
6006
- operation: "query",
6007
- name: {
6008
- kind: "Name",
6009
- value: "CoreSDK_Search"
6010
- },
6011
- variableDefinitions: [
6012
- {
6013
- kind: "VariableDefinition",
6014
- variable: {
6015
- kind: "Variable",
6016
- name: {
6017
- kind: "Name",
6018
- value: "first"
6019
- }
6020
- },
6021
- type: {
6022
- kind: "NonNullType",
6023
- type: {
6024
- kind: "NamedType",
6025
- name: {
6026
- kind: "Name",
6027
- value: "Int"
6028
- }
6029
- }
6030
- }
6031
- },
6032
- {
6033
- kind: "VariableDefinition",
6034
- variable: {
6035
- kind: "Variable",
6036
- name: {
6037
- kind: "Name",
6038
- value: "page"
6039
- }
6040
- },
6041
- type: {
6042
- kind: "NamedType",
6043
- name: {
6044
- kind: "Name",
6045
- value: "Int"
6046
- }
6047
- }
6048
- },
6049
- {
6050
- kind: "VariableDefinition",
6051
- variable: {
6052
- kind: "Variable",
6053
- name: {
6054
- kind: "Name",
6055
- value: "language"
6056
- }
6057
- },
6058
- type: {
6059
- kind: "NamedType",
6060
- name: {
6061
- kind: "Name",
6062
- value: "String"
6063
- }
6064
- }
6065
- },
6066
- {
6067
- kind: "VariableDefinition",
6068
- variable: {
6069
- kind: "Variable",
6070
- name: {
6071
- kind: "Name",
6072
- value: "vofficeData"
6073
- }
6074
- },
6075
- type: {
6076
- kind: "NamedType",
6077
- name: {
6078
- kind: "Name",
6079
- value: "VofficeData"
6080
- }
6081
- }
6082
- },
6083
- {
6084
- kind: "VariableDefinition",
6085
- variable: {
6086
- kind: "Variable",
6087
- name: {
6088
- kind: "Name",
6089
- value: "basicQueryInputs"
6090
- }
6091
- },
6092
- type: {
6093
- kind: "ListType",
6094
- type: {
6095
- kind: "NonNullType",
6096
- type: {
6097
- kind: "NamedType",
6098
- name: {
6099
- kind: "Name",
6100
- value: "BasicQueryInput"
6101
- }
6102
- }
6103
- }
6104
- }
6105
- },
6106
- {
6107
- kind: "VariableDefinition",
6108
- variable: {
6109
- kind: "Variable",
6110
- name: {
6111
- kind: "Name",
6112
- value: "dataAttributes"
6113
- }
6114
- },
6115
- type: {
6116
- kind: "NonNullType",
6117
- type: {
6118
- kind: "ListType",
6119
- type: {
6120
- kind: "NonNullType",
6121
- type: {
6122
- kind: "NamedType",
6123
- name: {
6124
- kind: "Name",
6125
- value: "String"
6126
- }
6127
- }
6128
- }
6129
- }
6130
- },
6131
- defaultValue: {
6132
- kind: "ListValue",
6133
- values: []
6134
- }
6135
- }
6136
- ],
6137
- selectionSet: {
6138
- kind: "SelectionSet",
6139
- selections: [{
6140
- kind: "Field",
6141
- name: {
6142
- kind: "Name",
6143
- value: "search"
6144
- },
6145
- arguments: [
6146
- {
6147
- kind: "Argument",
6148
- name: {
6149
- kind: "Name",
6150
- value: "first"
6151
- },
6152
- value: {
6153
- kind: "Variable",
6154
- name: {
6155
- kind: "Name",
6156
- value: "first"
6157
- }
6158
- }
6159
- },
6160
- {
6161
- kind: "Argument",
6162
- name: {
6163
- kind: "Name",
6164
- value: "page"
6165
- },
6166
- value: {
6167
- kind: "Variable",
6168
- name: {
6169
- kind: "Name",
6170
- value: "page"
6171
- }
6172
- }
6173
- },
6174
- {
6175
- kind: "Argument",
6176
- name: {
6177
- kind: "Name",
6178
- value: "language"
6179
- },
6180
- value: {
6181
- kind: "Variable",
6182
- name: {
6183
- kind: "Name",
6184
- value: "language"
6185
- }
6186
- }
6187
- },
6188
- {
6189
- kind: "Argument",
6190
- name: {
6191
- kind: "Name",
6192
- value: "voffice"
6193
- },
6194
- value: {
6195
- kind: "Variable",
6196
- name: {
6197
- kind: "Name",
6198
- value: "vofficeData"
6199
- }
6200
- }
6201
- },
6202
- {
6203
- kind: "Argument",
6204
- name: {
6205
- kind: "Name",
6206
- value: "data"
6207
- },
6208
- value: {
6209
- kind: "Variable",
6210
- name: {
6211
- kind: "Name",
6212
- value: "basicQueryInputs"
6213
- }
6214
- }
6215
- }
6216
- ],
6217
- selectionSet: {
6218
- kind: "SelectionSet",
6219
- selections: [{
6220
- kind: "Field",
6221
- name: {
6222
- kind: "Name",
6223
- value: "paginatorInfo"
6224
- },
6225
- selectionSet: {
6226
- kind: "SelectionSet",
6227
- selections: [{
6228
- kind: "Field",
6229
- name: {
6230
- kind: "Name",
6231
- value: "hasMorePages"
6232
- }
6233
- }, {
6234
- kind: "Field",
6235
- name: {
6236
- kind: "Name",
6237
- value: "currentPage"
6238
- }
6239
- }]
6240
- }
6241
- }, {
6242
- kind: "Field",
6243
- name: {
6244
- kind: "Name",
6245
- value: "data"
6246
- },
6247
- selectionSet: {
6248
- kind: "SelectionSet",
6249
- selections: [
6250
- {
6251
- kind: "Field",
6252
- name: {
6253
- kind: "Name",
6254
- value: "voffice_id"
6255
- }
6256
- },
6257
- {
6258
- kind: "Field",
6259
- name: {
6260
- kind: "Name",
6261
- value: "voffice_images"
6262
- },
6263
- selectionSet: {
6264
- kind: "SelectionSet",
6265
- selections: [
6266
- {
6267
- kind: "Field",
6268
- name: {
6269
- kind: "Name",
6270
- value: "id"
6271
- }
6272
- },
6273
- {
6274
- kind: "Field",
6275
- name: {
6276
- kind: "Name",
6277
- value: "path"
6278
- }
6279
- },
6280
- {
6281
- kind: "Field",
6282
- name: {
6283
- kind: "Name",
6284
- value: "title"
6285
- }
6286
- },
6287
- {
6288
- kind: "Field",
6289
- name: {
6290
- kind: "Name",
6291
- value: "description"
6292
- }
6293
- }
6294
- ]
6295
- }
6296
- },
6297
- {
6298
- kind: "Field",
6299
- name: {
6300
- kind: "Name",
6301
- value: "voffice_room_images"
6302
- },
6303
- selectionSet: {
6304
- kind: "SelectionSet",
6305
- selections: [
6306
- {
6307
- kind: "Field",
6308
- name: {
6309
- kind: "Name",
6310
- value: "id"
6311
- }
6312
- },
6313
- {
6314
- kind: "Field",
6315
- name: {
6316
- kind: "Name",
6317
- value: "path"
6318
- }
6319
- },
6320
- {
6321
- kind: "Field",
6322
- name: {
6323
- kind: "Name",
6324
- value: "name"
6325
- }
6326
- },
6327
- {
6328
- kind: "Field",
6329
- name: {
6330
- kind: "Name",
6331
- value: "title"
6332
- }
6333
- },
6334
- {
6335
- kind: "Field",
6336
- name: {
6337
- kind: "Name",
6338
- value: "description"
6339
- }
6340
- }
6341
- ]
6342
- }
6343
- },
6344
- {
6345
- kind: "Field",
6346
- name: {
6347
- kind: "Name",
6348
- value: "additional_voffice_data"
6349
- },
6350
- selectionSet: {
6351
- kind: "SelectionSet",
6352
- selections: [{
6353
- kind: "Field",
6354
- name: {
6355
- kind: "Name",
6356
- value: "alternatives"
6357
- },
6358
- selectionSet: {
6359
- kind: "SelectionSet",
6360
- selections: [
6361
- {
6362
- kind: "Field",
6363
- name: {
6364
- kind: "Name",
6365
- value: "fromdate"
6366
- }
6367
- },
6368
- {
6369
- kind: "Field",
6370
- name: {
6371
- kind: "Name",
6372
- value: "tilldate"
6373
- }
6374
- },
6375
- {
6376
- kind: "Field",
6377
- name: {
6378
- kind: "Name",
6379
- value: "calc"
6380
- },
6381
- selectionSet: {
6382
- kind: "SelectionSet",
6383
- selections: [
6384
- {
6385
- kind: "Field",
6386
- name: {
6387
- kind: "Name",
6388
- value: "total"
6389
- }
6390
- },
6391
- {
6392
- kind: "Field",
6393
- name: {
6394
- kind: "Name",
6395
- value: "rent"
6396
- }
6397
- },
6398
- {
6399
- kind: "Field",
6400
- name: {
6401
- kind: "Name",
6402
- value: "summary"
6403
- }
6404
- },
6405
- {
6406
- kind: "Field",
6407
- name: {
6408
- kind: "Name",
6409
- value: "oTotal"
6410
- }
6411
- },
6412
- {
6413
- kind: "Field",
6414
- name: {
6415
- kind: "Name",
6416
- value: "oRent"
6417
- }
6418
- },
6419
- {
6420
- kind: "Field",
6421
- name: {
6422
- kind: "Name",
6423
- value: "oSummary"
6424
- }
6425
- },
6426
- {
6427
- kind: "Field",
6428
- name: {
6429
- kind: "Name",
6430
- value: "discountName"
6431
- }
6432
- }
6433
- ]
6434
- }
6435
- }
6436
- ]
6437
- }
6438
- }, {
6439
- kind: "Field",
6440
- name: {
6441
- kind: "Name",
6442
- value: "calc"
6443
- },
6444
- selectionSet: {
6445
- kind: "SelectionSet",
6446
- selections: [
6447
- {
6448
- kind: "Field",
6449
- name: {
6450
- kind: "Name",
6451
- value: "total"
6452
- }
6453
- },
6454
- {
6455
- kind: "Field",
6456
- name: {
6457
- kind: "Name",
6458
- value: "rent"
6459
- }
6460
- },
6461
- {
6462
- kind: "Field",
6463
- name: {
6464
- kind: "Name",
6465
- value: "summary"
6466
- }
6467
- },
6468
- {
6469
- kind: "Field",
6470
- name: {
6471
- kind: "Name",
6472
- value: "oTotal"
6473
- }
6474
- },
6475
- {
6476
- kind: "Field",
6477
- name: {
6478
- kind: "Name",
6479
- value: "oRent"
6480
- }
6481
- },
6482
- {
6483
- kind: "Field",
6484
- name: {
6485
- kind: "Name",
6486
- value: "oSummary"
6487
- }
6488
- },
6489
- {
6490
- kind: "Field",
6491
- name: {
6492
- kind: "Name",
6493
- value: "discountName"
6494
- }
6495
- }
6496
- ]
6497
- }
6498
- }]
6499
- }
6500
- },
6501
- {
6502
- kind: "Field",
6503
- name: {
6504
- kind: "Name",
6505
- value: "data"
6506
- },
6507
- arguments: [{
6508
- kind: "Argument",
6509
- name: {
6510
- kind: "Name",
6511
- value: "attributes"
6512
- },
6513
- value: {
6514
- kind: "Variable",
6515
- name: {
6516
- kind: "Name",
6517
- value: "dataAttributes"
6518
- }
6519
- }
6520
- }]
6521
- }
6522
- ]
6523
- }
6524
- }]
6525
- }
6526
- }]
6527
- }
6528
- }]
6529
- }
6530
- };
6531
- function graphql(source) {
6532
- return documents[source] ?? {};
6533
- }
6534
- //#endregion
6535
- //#region codegen/v9/graphql-codegen/operations/rentals.ts
6536
- const rentalsAllWithoutFeedbacksQuery = graphql(`
6537
- query CoreSDK_RentalsAllWithoutFeedbacks(
6538
- $language: String
6539
- $voffice_ids: [Int!]
6540
- $rentalDataAttributes: [String!]! = []
6541
- $rentalFacilityDataAttributes: [String!]! = []
6542
- $rentalRatingDataAttributes: [String!]! = []
6543
- ) {
6544
- all(language: $language, voffice_ids: $voffice_ids) {
6545
- id
6546
- voffice_id
6547
- voffice_facility_id
6548
- name
6549
- publish
6550
- data(attributes: $rentalDataAttributes)
6551
- additional_voffice_data {
6552
- beds
6553
- }
6554
- voffice_facility {
6555
- id
6556
- voffice_id
6557
- name
6558
- publish
6559
- data(attributes: $rentalFacilityDataAttributes)
6560
- }
6561
- voffice_images {
6562
- id
6563
- path
6564
- title
6565
- description
6566
- }
6567
- voffice_room_images {
6568
- id
6569
- path
6570
- name
6571
- title
6572
- description
6573
- }
6574
- voffice_rating {
6575
- id
6576
- data(attributes: $rentalRatingDataAttributes)
6577
- }
6578
- }
6579
- }
6580
- `);
6581
- const rentalsAllFeedbacksQuery = graphql(`
6582
- query CoreSDK_RentalsAllFeedbacks(
6583
- $language: String
6584
- $voffice_ids: [Int!]
6585
- $rentalFeedbackDataAttributes: [String!]! = []
6586
- ) {
6587
- all(language: $language, voffice_ids: $voffice_ids) {
6588
- voffice_id
6589
- voffice_feedbacks {
6590
- data(attributes: $rentalFeedbackDataAttributes)
6591
- }
6592
- }
6593
- }
6594
- `);
6595
- graphql(`
6596
- query CoreSDK_RentalsAll(
6597
- $language: String
6598
- $voffice_ids: [Int!]
6599
- $rentalDataAttributes: [String!]! = []
6600
- $rentalFacilityDataAttributes: [String!]! = []
6601
- $rentalRatingDataAttributes: [String!]! = []
6602
- $rentalFeedbackDataAttributes: [String!]! = []
6603
- ) {
6604
- all(language: $language, voffice_ids: $voffice_ids) {
6605
- id
6606
- voffice_id
6607
- voffice_facility_id
6608
- name
6609
- publish
6610
- data(attributes: $rentalDataAttributes)
6611
- additional_voffice_data {
6612
- beds
6613
- }
6614
- voffice_facility {
6615
- id
6616
- voffice_id
6617
- name
6618
- publish
6619
- data(attributes: $rentalFacilityDataAttributes)
6620
- }
6621
- voffice_images {
6622
- id
6623
- path
6624
- title
6625
- description
6626
- }
6627
- voffice_room_images {
6628
- id
6629
- path
6630
- name
6631
- title
6632
- description
6633
- }
6634
- voffice_rating {
6635
- id
6636
- data(attributes: $rentalRatingDataAttributes)
6637
- }
6638
- voffice_feedbacks {
6639
- data(attributes: $rentalFeedbackDataAttributes)
6640
- }
6641
- }
6642
- }
6643
- `);
6644
- //#endregion
6645
- //#region codegen/v9/graphql-codegen/operations/search.ts
6646
- const searchQuery = graphql(`
6647
- query CoreSDK_Search(
6648
- $first: Int!
6649
- $page: Int
6650
- $language: String
6651
- $vofficeData: VofficeData
6652
- $basicQueryInputs: [BasicQueryInput!]
6653
- $dataAttributes: [String!]! = []
6654
- ) {
6655
- search(
6656
- first: $first
6657
- page: $page
6658
- language: $language
6659
- voffice: $vofficeData
6660
- data: $basicQueryInputs
6661
- ) {
6662
- paginatorInfo {
6663
- hasMorePages
6664
- currentPage
6665
- }
6666
- data {
6667
- voffice_id
6668
- voffice_images {
6669
- id
6670
- path
6671
- title
6672
- description
6673
- }
6674
- voffice_room_images {
6675
- id
6676
- path
6677
- name
6678
- title
6679
- description
6680
- }
6681
- additional_voffice_data {
6682
- alternatives {
6683
- fromdate
6684
- tilldate
6685
- calc {
6686
- total
6687
- rent
6688
- summary
6689
- oTotal
6690
- oRent
6691
- oSummary
6692
- discountName
6693
- }
6694
- }
6695
- calc {
6696
- total
6697
- rent
6698
- summary
6699
- oTotal
6700
- oRent
6701
- oSummary
6702
- discountName
6703
- }
6704
- }
6705
- data(attributes: $dataAttributes)
6706
- }
6707
- }
6708
- }
6709
- `);
6710
- //#endregion
6711
- //#region src/legacy-v9/parser/rentals/to-localized-string.ts
6712
- const isNonEmptyString$1 = (value) => typeof value === "string" && value.length > 0;
6713
- const isRecord = (value) => typeof value === "object" && value !== null;
6714
- const toLocalizedString = (value, locale) => {
6715
- if (isNonEmptyString$1(value)) return value;
6716
- if (!isRecord(value)) return void 0;
6717
- const preferredKeys = [
6718
- locale,
6719
- localeToLanguage(locale),
6720
- "en"
6721
- ];
6722
- for (const key of preferredKeys) {
6723
- const localizedValue = value[key];
6724
- if (isNonEmptyString$1(localizedValue)) return localizedValue;
6725
- }
6726
- return Object.values(value).find(isNonEmptyString$1);
6727
- };
6728
- //#endregion
6729
- //#region src/legacy-v9/parser/rentals/to-address.ts
6730
- const toProvince = (data, locale) => {
6731
- return toLocalizedString(data.known.regionName, locale);
6732
- };
6733
- const toAddress = (data, locale) => {
6734
- const source = data.known.address;
6735
- const address = {};
6736
- if (source == null) return address;
6737
- if (source.street != null) address.street = [source.street, source.housenumber].filter((part) => part != null && part.length > 0).join(" ");
6738
- if (source.postalcode != null) address.postalcode = source.postalcode;
6739
- if (source.city != null) address.city = source.city;
6740
- if (source.country != null) address.country = toCountry(source.country, locale);
6741
- const province = toProvince(data, locale);
6742
- if (province != null) address.province = province;
6743
- return address;
6744
- };
6745
- //#endregion
6746
- //#region src/legacy-v9/parser/rentals/to-image.ts
6747
- const IMAGE_ASPECT_RATIO = 3 / 2;
6748
- const IMAGE_SRCSET_WIDTHS = [
6749
- 320,
6750
- 480,
6751
- 640,
6752
- 960,
6753
- 1280,
6754
- 1920,
6755
- 2560
6756
- ];
6757
- const IMAGE_DEFAULT_WIDTH = 960;
6758
- const VOFFICE_DYNAMIC_IMAGE_BASE_URL = "https://dyn.v-office.com/image";
6759
- const VOFFICE_DYNAMIC_IMAGE_SIZES = [
6760
- ["tn", 141],
6761
- ["tnx", 225],
6762
- ["s", 450],
6763
- ["m", 600],
6764
- ["xl", 1440],
6765
- ["xxl", 2400]
6766
- ];
6767
- const VOFFICE_DYNAMIC_IMAGE_DEFAULT_SIZE = "xl";
6768
- const buildImageUrl = (imageProxyBaseUrl, path, width) => {
6769
- const base = imageProxyBaseUrl.replace(/\/$/, "");
6770
- const normalizedPath = path.replace(/^\/+/, "");
6771
- return `${base}/_/rs:fill:${width}:${Math.round(width / IMAGE_ASPECT_RATIO)}:0/plain/${normalizedPath}`;
6772
- };
6773
- const buildSrcset = (imageProxyBaseUrl, path) => IMAGE_SRCSET_WIDTHS.map((width) => `${buildImageUrl(imageProxyBaseUrl, path, width)} ${width}w`).join(", ");
6774
- const buildVofficeDynamicImageUrl = (imageId, size) => `${VOFFICE_DYNAMIC_IMAGE_BASE_URL}/${size}/${imageId}.jpg`;
6775
- const buildVofficeDynamicImageSrcset = (imageId, originalImageWidth) => {
6776
- const originalWidth = originalImageWidth != null && originalImageWidth > 0 ? originalImageWidth : void 0;
6777
- const seenWidths = /* @__PURE__ */ new Set();
6778
- return VOFFICE_DYNAMIC_IMAGE_SIZES.flatMap(([size, maximumWidth]) => {
6779
- const width = originalWidth == null ? maximumWidth : Math.min(maximumWidth, originalWidth);
6780
- if (seenWidths.has(width)) return [];
6781
- seenWidths.add(width);
6782
- return [`${buildVofficeDynamicImageUrl(imageId, size)} ${width}w`];
6783
- }).join(", ");
6784
- };
6785
- const isNonEmptyString = (value) => typeof value === "string" && value.length > 0;
6786
- const toDataImageId = (dataImage) => dataImage?.id?.toString();
6787
- const getImagePath = (entry) => entry.image?.path ?? entry.normalizedPath;
6788
- const getFileName = (path) => path?.split("/").at(-1);
6789
- const getDirectoryName = (path) => {
6790
- const lastSlashIndex = path.lastIndexOf("/");
6791
- return lastSlashIndex === -1 ? void 0 : path.slice(0, lastSlashIndex);
6792
- };
6793
- const stripDataImageFilePrefix = (fileName) => fileName.replace(/^mf(?=\d)/i, "");
6794
- const getDataImageFileName = (dataImage) => {
6795
- const name = dataImage.name != null ? stripDataImageFilePrefix(dataImage.name) : void 0;
6796
- if (name != null) return name;
6797
- return dataImage.id != null ? `${dataImage.id}.jpg` : void 0;
6798
- };
6799
- const normalizeDataImagePath = (dataImage, referenceImages) => {
6800
- const fileName = getDataImageFileName(dataImage);
6801
- if (fileName == null) return void 0;
6802
- const matchingPath = referenceImages.find((image) => getFileName(image.path ?? void 0) === fileName)?.path;
6803
- if (matchingPath != null) return matchingPath;
6804
- const directoryName = referenceImages.map((image) => image.path != null ? getDirectoryName(image.path) : void 0).find((path) => path != null);
6805
- return directoryName != null ? `${directoryName}/${fileName}` : fileName;
6806
- };
6807
- const pathMatchesName = (path, name) => path != null && name != null && (path === name || path.endsWith(`/${name}`));
6808
- const entriesShareId = (left, right) => {
6809
- const leftIds = [left.image?.id, toDataImageId(left.dataImage)].filter(isNonEmptyString);
6810
- const rightIds = [right.image?.id, toDataImageId(right.dataImage)].filter(isNonEmptyString);
6811
- return leftIds.some((leftId) => rightIds.includes(leftId));
6812
- };
6813
- const entriesSharePathOrName = (left, right) => {
6814
- const leftPath = getImagePath(left);
6815
- const rightPath = getImagePath(right);
6816
- const leftName = left.dataImage != null ? getDataImageFileName(left.dataImage) : getFileName(left.image?.path ?? void 0);
6817
- const rightName = right.dataImage != null ? getDataImageFileName(right.dataImage) : getFileName(right.image?.path ?? void 0);
6818
- return leftPath != null && rightPath != null && leftPath === rightPath || pathMatchesName(leftPath, rightName) || pathMatchesName(rightPath, leftName);
6819
- };
6820
- const entriesMatch = (left, right) => entriesShareId(left, right) || entriesSharePathOrName(left, right);
6821
- const mergeEntry = (existing, next) => {
6822
- const image = existing.image ?? next.image;
6823
- const dataImage = existing.dataImage ?? next.dataImage;
6824
- const normalizedPath = existing.normalizedPath ?? next.normalizedPath;
6825
- const entry = { source: existing.source };
6826
- if (image != null) entry.image = image;
6827
- if (dataImage != null) entry.dataImage = dataImage;
6828
- if (normalizedPath != null) entry.normalizedPath = normalizedPath;
6829
- return entry;
6830
- };
6831
- const mergeImageEntries = (entries) => {
6832
- const merged = [];
6833
- for (const entry of entries) {
6834
- const index = merged.findIndex((existing) => entriesMatch(existing, entry));
6835
- if (index === -1) {
6836
- merged.push(entry);
6837
- continue;
6838
- }
6839
- merged[index] = mergeEntry(merged[index], entry);
6840
- }
6841
- return merged;
6842
- };
6843
- const getImageEntries = (rental, data) => {
6844
- const vofficeImages = rental.voffice_images ?? [];
6845
- const vofficeRoomImages = rental.voffice_room_images ?? [];
6846
- const referenceImages = [...vofficeImages, ...vofficeRoomImages];
6847
- return [
6848
- ...vofficeImages.map((image) => ({
6849
- source: "voffice_images",
6850
- image
6851
- })),
6852
- ...vofficeRoomImages.map((image) => ({
6853
- source: "voffice_room_images",
6854
- image
6855
- })),
6856
- ...(data.known.images ?? []).flatMap((dataImage) => {
6857
- const normalizedPath = normalizeDataImagePath(dataImage, referenceImages);
6858
- if (normalizedPath == null) return [];
6859
- return [{
6860
- source: "data_images",
6861
- dataImage,
6862
- normalizedPath
6863
- }];
6864
- })
6865
- ];
6866
- };
6867
- const toImage = (imageProxyBaseUrl, entry, locale) => {
6868
- const path = getImagePath(entry);
6869
- const src = path != null ? buildImageUrl(imageProxyBaseUrl, path, IMAGE_DEFAULT_WIDTH) : "";
6870
- const srcset = path != null ? buildSrcset(imageProxyBaseUrl, path) : "";
6871
- const title = toLocalizedString(entry.dataImage?.titles, locale) ?? entry.image?.title;
6872
- const alt = title ?? entry.image?.description ?? "";
6873
- const metadata = { source: entry.source };
6874
- if (entry.dataImage != null) metadata.dataImage = entry.dataImage;
6875
- const image = {
6876
- idOrPath: path ?? toDataImageId(entry.dataImage) ?? entry.dataImage?.name ?? "",
6877
- src,
6878
- srcset,
6879
- alt,
6880
- metadata
6881
- };
6882
- if (title != null) image.title = title;
6883
- if (entry.dataImage?.tag != null) image.category = entry.dataImage.tag;
6884
- return image;
6885
- };
6886
- const toImages = (imageProxyBaseUrl, rental, locale, data) => {
6887
- return mergeImageEntries(getImageEntries(rental, data)).map((entry) => toImage(imageProxyBaseUrl, entry, locale));
6888
- };
6889
- const toFacilityImages = (images, locale) => images.flatMap((image) => {
6890
- if (image.id == null) return [];
6891
- const title = toLocalizedString(image.titles, locale);
6892
- const item = {
6893
- idOrPath: image.id.toString(),
6894
- src: buildVofficeDynamicImageUrl(image.id, VOFFICE_DYNAMIC_IMAGE_DEFAULT_SIZE),
6895
- srcset: buildVofficeDynamicImageSrcset(image.id, image.width),
6896
- metadata: {
6897
- source: "voffice_facility_data_images",
6898
- dataImage: image
6899
- }
6900
- };
6901
- if (title != null) {
6902
- item.alt = title;
6903
- item.title = title;
6904
- }
6905
- if (image.tag != null) item.category = image.tag;
6906
- return [item];
6907
- });
6908
- //#endregion
6909
- //#region src/legacy-v9/parser/rentals/render-property-attribute.ts
6910
- const countLabelKey = (labelKey, value) => `${labelKey.slice(0, -6)}.count.${value === 1 ? "one" : "other"}`;
6911
- const renderVofficePropertyAttribute = ({ key, metadata, locale, translate, value }) => Effect.gen(function* () {
6912
- if (metadata.sourceType === "OPT") {
6913
- if (typeof value !== "number" || !Number.isInteger(value)) return void 0;
6914
- const option = metadata.options?.find((candidate) => candidate.value === value);
6915
- if (option === void 0) return void 0;
6916
- return `${yield* translate(metadata.labelKey, key)}: ${yield* translate(option.labelKey, option.sourceLabel)}`;
6917
- }
6918
- if (value === false || value === 0 || value === "false" || value === "0" || value == null || value === "") return;
6919
- const label = yield* translate(metadata.labelKey, key);
6920
- if (metadata.sourceType === "INT" && typeof value === "number") {
6921
- if (value === 0) return void 0;
6922
- if (key.endsWith("distance")) return `${label}: ${value}m`;
6923
- if (key === "squareMeters") return `${value} m²`;
6924
- return `${value} ${yield* translate(countLabelKey(metadata.labelKey, value), label)}`;
6925
- }
6926
- return renderLabeledAttributeValue({
6927
- key,
6928
- label,
6929
- locale,
6930
- value
6931
- });
6932
- });
6933
- //#endregion
6934
- //#region codegen/v9/heuristic-generation/rental-highlight-key-map.ts
6935
- const V9_RENTAL_HIGHLIGHT_KEYS = new Set(Object.keys(VofficeUnitDataPropertyMetadata));
6936
- const V9_RENTAL_HIGHLIGHT_KEY_LOOKUP = {
6937
- ac: "ac",
6938
- acCoverage: "acCoverage",
6939
- accessToPrivateBeach: "privateBeach",
6940
- accessibleByLift: "lift",
6941
- adaptedBath: "handicappedAccessible",
6942
- adventure: "adventure",
6943
- airportdistance: "airportdistance",
6944
- alarmClock: "alarmClock",
6945
- alarmSystem: "alarmSystem",
6946
- allergic: "allergic",
6947
- archery: "archery",
6948
- awayFromItAll: "away_from_it_all",
6949
- babygate: "babygate",
6950
- balcony: "balcony",
6951
- balloonTrips: "balloon_trips",
6952
- basketball: "basketball",
6953
- bathroomEmergencyPullCord: "handicappedAccessible",
6954
- bbq: "bbq",
6955
- bbqArea: "bbqArea",
6956
- bbqType: "bbqType",
6957
- beach: "beach",
6958
- beachChair: "beachChair",
6959
- beachChairAtBeach: "beachChairAtBeach",
6960
- beachaccess: "loc_beach",
6961
- beachdistance: "beachdistance",
6962
- beachfront: "beachfront",
6963
- beachtype: "beachtype",
6964
- beachview: "beachview",
6965
- beachvolleyball: "beachvolleyball",
6966
- beamer: "beamer",
6967
- bicycles: "bicycles",
6968
- billiards: "billiards",
6969
- birdWatching: "birdWatching",
6970
- bathrooms: "bathrooms",
6971
- bedrooms: "bedrooms",
6972
- blinds: "blinds",
6973
- bluray: "bluray",
6974
- boatBerth: "boatBerth",
6975
- boatRental: "boat_rental",
6976
- boatTrip: "boat_trip",
6977
- boccie: "boccie",
6978
- bodySoap: "toiletries",
6979
- bookDvdMusicLibraryForChildren: "books",
6980
- books: "books",
6981
- botanicalGarden: "botanicalGarden",
6982
- bowling: "bowling",
6983
- budget: "budget",
6984
- bungeeJumping: "bungee_jumping",
6985
- canoeing: "canoeing",
6986
- carNecessity: "carNecessity",
6987
- carbonMonoxideDetector: "carbonMonoxideDetector",
6988
- carport: "carport",
6989
- carriageRides: "carriage_rides",
6990
- cd: "cd",
6991
- cds: "cds",
6992
- childSafetySocketCovers: "socketSafetyCovers",
6993
- childrenWelcome: "childrenWelcome",
6994
- church: "church",
6995
- cinema: "cinema",
6996
- citydistance: "citydistance",
6997
- climbing: "climbing",
6998
- closedPlot: "closedPlot",
6999
- closedTerrace: "closedTerrace",
7000
- coffeemaker: "coffeemaker",
7001
- conditioner: "toiletries",
7002
- cookingUtensils: "cookingUtensils",
7003
- cosmeticTreatments: "cosmetic_treatments",
7004
- countrysideView: "countrysideView",
7005
- countrysideViewType: "countrysideViewType",
7006
- coveredTerrace: "coveredTerrace",
7007
- crossCountrySkiing: "cross-country_skiing",
7008
- culture: "culture",
7009
- cycling: "cycling",
7010
- danceCourses: "dance_courses",
7011
- daySpa: "day_spa",
7012
- deepseaFisching: "deepseaFisching",
7013
- detached: "detached",
7014
- diningSeating: "diningSeating",
7015
- dishcloth: "dishcloth",
7016
- dishes: "dishes",
7017
- dishwasher: "dishwasher",
7018
- disco: "disco",
7019
- diving: "diving",
7020
- dryer: "dryer",
7021
- dutyfree: "dutyfree",
7022
- dvd: "dvd",
7023
- dvds: "dvds",
7024
- eggboiler: "eggboiler",
7025
- electricKettle: "electricKettle",
7026
- elevation: "elevation",
7027
- entireUnitWheelchairAccessible: "wheelchairFriendly",
7028
- espressomachine: "espressomachine",
7029
- espressomachineType: "espressomachineType",
7030
- fan: "fan",
7031
- family: "family",
7032
- farmHolidays: "farm_holidays",
7033
- ferrydistance: "ferrydistance",
7034
- festivals: "festivals",
7035
- fireAlarms: "firealarm",
7036
- fireExtinguisher: "fireExtinguisher",
7037
- fireplace: "fireplace",
7038
- fireside: "fireside",
7039
- firesideType: "firesideType",
7040
- firstAidKit: "firstAidKit",
7041
- fishguttingPlace: "fishguttingPlace",
7042
- fitnessTraining: "fitness-training",
7043
- floor: "floor",
7044
- floorCount: "floorCount",
7045
- flyscreen: "flyscreen",
7046
- football: "football",
7047
- freezer: "freezer",
7048
- freezerType: "freezerType",
7049
- fridge: "fridge",
7050
- fullLengthMirror: "fullLengthMirror",
7051
- gambling: "gambling",
7052
- games: "games",
7053
- garage: "garage",
7054
- garden: "garden",
7055
- gardenShed: "gardenShed",
7056
- gardenView: "gardenView",
7057
- golf: "golf",
7058
- golfdistance: "golfdistance",
7059
- guestwc: "guestwc",
7060
- gym: "fitnessroom",
7061
- gymnastics: "gymnastics",
7062
- hammock: "hammock",
7063
- handcart: "handcart",
7064
- handicappedAccessible: "handicappedAccessible",
7065
- heating: "heating",
7066
- heatingSystem: "heatingSystem",
7067
- helicopterTours: "helicopter_tours",
7068
- hifi: "hifi",
7069
- hiking: "hiking",
7070
- historic: "historic",
7071
- holidayComplex: "holiday_complex",
7072
- homecinema: "homecinema",
7073
- horsebackRiding: "horseback_riding",
7074
- iceSkating: "iceSkating",
7075
- individualAirConditioning: "ac",
7076
- indoorGrill: "indoorGrill",
7077
- indoorPool: "indoorPool",
7078
- infraredCabin: "infraredCabin",
7079
- internet: "internet",
7080
- internetSpeed: "internetSpeed",
7081
- iron: "iron",
7082
- ironingBoard: "ironingBoard",
7083
- jetSkiing: "jetSkiing",
7084
- jogging: "jogging",
7085
- kayaking: "kayaking",
7086
- kitchen: "kitchen",
7087
- kitchenDescription: "kitchenDescription",
7088
- kitchenType: "kitchenType",
7089
- kitchenmachine: "kitchenmachine",
7090
- lakedistance: "lakedistance",
7091
- lakeview: "lakeview",
7092
- lakeviewType: "lakeviewType",
7093
- landingStage: "landingStage",
7094
- laundryRack: "laundryRack",
7095
- library: "library",
7096
- lift: "lift",
7097
- locAtm: "loc_atm",
7098
- locBay: "loc_bay",
7099
- locBeach: "loc_beach",
7100
- locCity: "loc_city",
7101
- locDowntown: "loc_downtown",
7102
- locForest: "loc_forest",
7103
- locGroceries: "loc_groceries",
7104
- locHospital: "loc_hospital",
7105
- locLake: "loc_lake",
7106
- locMedicalServices: "loc_medical_services",
7107
- locMountain: "loc_mountain",
7108
- locOcean: "loc_ocean",
7109
- locRiver: "loc_river",
7110
- locRural: "loc_rural",
7111
- locVillage: "loc_village",
7112
- locWaterfalls: "loc_waterfalls",
7113
- loungeSeating: "loungeSeating",
7114
- livingrooms: "living_room",
7115
- lowBathroomSink: "handicappedAccessible",
7116
- luxury: "luxury",
7117
- marquee: "marquee",
7118
- massages: "massages",
7119
- maxAdults: "beds",
7120
- maxPersons: "beds",
7121
- microwave: "microwave",
7122
- minigolf: "minigolf",
7123
- minibar: "minibar",
7124
- minpersons: "minpersons",
7125
- mixer: "mixer",
7126
- mountainbiking: "mountainbiking",
7127
- mountainview: "mountainview",
7128
- mountainviewType: "mountainviewType",
7129
- museums: "museums",
7130
- nordicWalking: "nordic-walking",
7131
- nonsmoking: "nonsmoking",
7132
- nudeBeach: "nudeBeach",
7133
- outdoorDiningArea: "gardenFurniture",
7134
- outdoorFurniture: "gardenFurniture",
7135
- outdoorKitchen: "outdoorKitchen",
7136
- outdoorPool: "pool",
7137
- outdoorPoolDetails: "pool",
7138
- outdoorShower: "outdoorShower",
7139
- oven: "oven",
7140
- ovenConnection: "ovenConnection",
7141
- paragliding: "paragliding",
7142
- parasailing: "parasailing",
7143
- parasol: "parasol",
7144
- parkingCount: "parkingCount",
7145
- pavilion: "pavilion",
7146
- penthouse: "penthouse",
7147
- pilates: "pilates",
7148
- playground: "playground",
7149
- playgroundActivity: "playgroundActivity",
7150
- plotSize: "plotSize",
7151
- pond: "pond",
7152
- pool4kids: "pool4kids",
7153
- pooltable: "pooltable",
7154
- poolView: "poolView",
7155
- privateOpenAirBath: "outdoorShower",
7156
- privateparking: "privateparking",
7157
- publictransportdistance: "publictransportdistance",
7158
- qiGong: "qi_gong",
7159
- raclette: "raclette",
7160
- radio: "radio",
7161
- rafting: "rafting",
7162
- restaurantdistance: "restaurantdistance",
7163
- restaurants: "restaurants",
7164
- riverView: "riverView",
7165
- rollInShower: "handicappedAccessible",
7166
- romantic: "romantic",
7167
- rooms: "rooms",
7168
- rowing: "rowing",
7169
- ruins: "ruins",
7170
- safe: "safe",
7171
- sailing: "sailing",
7172
- sandbox: "sandbox",
7173
- sandwichToaster: "sandwichToaster",
7174
- sauna: "sauna",
7175
- seadistance: "seadistance",
7176
- seaview: "seaview",
7177
- seaviewType: "seaviewType",
7178
- shampoo: "toiletries",
7179
- shoeCabinet: "shoeCabinet",
7180
- shopping: "shopping",
7181
- shoppingdistance: "shoppingdistance",
7182
- showerChair: "handicappedAccessible",
7183
- sightSeeing: "sight_seeing",
7184
- skiBootWarmer: "skiBootWarmer",
7185
- skidistance: "skidistance",
7186
- skialpine: "skialpine",
7187
- sledding: "sledding",
7188
- slide: "slide",
7189
- smokeDetector: "smokeDetector",
7190
- snorkeling: "snorkeling",
7191
- snowboarding: "snowboarding",
7192
- solarium: "solarium",
7193
- spa: "wellness",
7194
- spices: "spices",
7195
- spelunking: "spelunking",
7196
- sportsActivities: "sports_activities",
7197
- squash: "squash",
7198
- stars: "stars",
7199
- steambath: "steambath",
7200
- stove: "stove",
7201
- stoveType: "stoveType",
7202
- sunbathingArea: "sunbathingArea",
7203
- sunlounger: "sunlounger",
7204
- surfing: "surfing",
7205
- swimming: "swimming",
7206
- swing: "swing",
7207
- synagogues: "synagogues",
7208
- tableTennis: "table_tennis",
7209
- tableTennisTable: "tableTennisTable",
7210
- tennis: "tennis",
7211
- tennisCourt: "tennisCourt",
7212
- terrace: "terrace",
7213
- theater: "theater",
7214
- themeParks: "themeParks",
7215
- toaster: "toaster",
7216
- toiletPaper: "toiletries",
7217
- toiletWithGrabRails: "handicappedAccessible",
7218
- toothbrush: "toiletries",
7219
- touristAttractions: "tourist_attractions",
7220
- toys: "toys",
7221
- trainstationdistance: "trainstationdistance",
7222
- trampoline: "trampoline",
7223
- trashCans: "trashcan",
7224
- trashcan: "trashcan",
7225
- trekking: "trekking",
7226
- tv: "tv",
7227
- tvConnection: "tvConnection",
7228
- tvCount: "tvCount",
7229
- tvInternationalChannels: "tvInternationalChannels",
7230
- tvSize: "tvSize",
7231
- upperFloorReachableByLift: "lift",
7232
- vacuum: "vacuum",
7233
- valleyView: "valleyView",
7234
- valleyViewType: "valleyViewType",
7235
- vod: "vod",
7236
- walking: "walking",
7237
- warmwater: "warmwater",
7238
- washer: "washer",
7239
- waterParks: "waterParks",
7240
- waterSki: "water_ski",
7241
- waterSport: "water_sport",
7242
- wellness: "wellness",
7243
- wellnessActivity: "wellnessActivity",
7244
- whaleWatching: "whale_watching",
7245
- wheelchairFriendly: "wheelchairFriendly",
7246
- whirlpool: "whirlpool",
7247
- wifi: "wifi",
7248
- windScreen: "windScreen",
7249
- windSurfing: "windSurfing",
7250
- yearOfConstruction: "yearOfConstruction",
7251
- yearOfLastRenovation: "yearOfLastRenovation",
7252
- yoga: "yoga",
7253
- youthgroups: "youthgroups",
7254
- zoo: "zoo"
7255
- };
7256
- const toV9RentalHighlightKey = (key) => {
7257
- const mappedKey = V9_RENTAL_HIGHLIGHT_KEY_LOOKUP[key] ?? key;
7258
- return V9_RENTAL_HIGHLIGHT_KEYS.has(mappedKey) ? mappedKey : void 0;
7259
- };
7260
- //#endregion
7261
- //#region src/legacy-v9/parser/rentals/to-rental-highlights.ts
7262
- const RENTAL_VIEW_HIGHLIGHT_KEYS = /* @__PURE__ */ new Set([
7263
- "beachview",
7264
- "cityView",
7265
- "countrysideView",
7266
- "gardenView",
7267
- "innerCourtView",
7268
- "lakeview",
7269
- "mountainview",
7270
- "poolView",
7271
- "quietStreetView",
7272
- "riverView",
7273
- "seaview",
7274
- "valleyView"
7275
- ]);
7276
- const toRentalHighlights = ({ locale, translations, highlightPrioritization, customAttributes, attributes }) => Effect.gen(function* () {
7277
- const highlights = [];
7278
- const seenKeys = /* @__PURE__ */ new Set();
7279
- const knownAttributes = attributes.known;
7280
- const translate = makeTranslate(translations, locale);
7281
- let hasViewHighlight = false;
7282
- for (const highlightKey of highlightPrioritization) {
7283
- const isViewHighlight = RENTAL_VIEW_HIGHLIGHT_KEYS.has(highlightKey);
7284
- if (isViewHighlight && hasViewHighlight) continue;
7285
- const v9Key = toV9RentalHighlightKey(highlightKey);
7286
- if (v9Key == null) {
7287
- if (seenKeys.has(highlightKey)) continue;
7288
- seenKeys.add(highlightKey);
7289
- const attribute = customAttributes.byKey[highlightKey];
7290
- if (attribute === void 0) continue;
7291
- const binding = attribute.v9;
7292
- const value = binding === void 0 ? void 0 : knownAttributes[binding] ?? attributes.unknown[binding];
7293
- const highlight = renderResolvedCustomAttribute({
7294
- attribute,
7295
- locale,
7296
- value
7297
- });
7298
- if (highlight != null) {
7299
- highlights.push(highlight);
7300
- if (isViewHighlight) hasViewHighlight = true;
7301
- }
7302
- continue;
7303
- }
7304
- if (seenKeys.has(v9Key)) continue;
7305
- seenKeys.add(v9Key);
7306
- const metadata = VofficeUnitDataPropertyMetadata[v9Key];
7307
- const highlight = yield* renderVofficePropertyAttribute({
7308
- key: v9Key,
7309
- metadata,
7310
- locale,
7311
- translate,
7312
- value: knownAttributes[v9Key]
7313
- });
7314
- if (highlight != null) {
7315
- highlights.push(highlight);
7316
- if (isViewHighlight) hasViewHighlight = true;
7317
- }
7318
- }
7319
- return highlights;
7320
- });
7321
- //#endregion
7322
- export { toAddress as a, rentalsAllFeedbacksQuery as c, VofficeUnitDataPropertyCategoryLabelKeys as d, VofficeUnitDataPropertyCategoryValues as f, parseVofficeUnitData as g, parseVofficeFeedbackData as h, toImages as i, rentalsAllWithoutFeedbacksQuery as l, parseVofficeFacilityData as m, renderVofficePropertyAttribute as n, toLocalizedString as o, VofficeUnitDataPropertyMetadata as p, toFacilityImages as r, searchQuery as s, toRentalHighlights as t, VofficeUnitDataFieldSchemas as u };
4908
+ export { customDataAttribute as a, parseVofficeUnitData as c, VofficeUnitDataPropertyMetadata as i, VofficeUnitDataPropertyCategoryLabelKeys as n, parseVofficeFacilityData as o, VofficeUnitDataPropertyCategoryValues as r, parseVofficeFeedbackData as s, VofficeUnitDataFieldSchemas as t };