@v-office/website-sdk 2.20.0 → 2.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { Vt as defineV9PropertyHighlightSourcesFromUnknown, t as createWebsiteSDK, zt as defineWebsiteSDKOptions } from "./client-ssUMkYeM.mjs";
2
+ import { Vt as defineV9PropertyHighlightSourcesFromUnknown, t as createWebsiteSDK, zt as defineWebsiteSDKOptions } from "./client-BC2JLEak.mjs";
3
3
  import { SearchSearchSortSchema, defineCustomAttributesFromUnknown } from "@v-office/sdk-core";
4
4
  import { ByteSize, Console, Effect, FileSystem, Layer, Option, Path, Schema, Stdio, Terminal } from "effect";
5
5
  import { Command, Flag } from "effect/unstable/cli";
@@ -16,7 +16,7 @@ var CLICheckFailed = class extends Error {
16
16
  const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
17
17
  //#endregion
18
18
  //#region package.json
19
- var version = "2.20.0";
19
+ var version = "2.20.2";
20
20
  //#endregion
21
21
  //#region src/cli/output.ts
22
22
  const toJson = (value) => Effect.try({
@@ -1,6 +1,6 @@
1
1
  import { a as customDataAttribute } from "./v9-data-BnYxa2Ek.mjs";
2
2
  import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, expandCustomAttributeFilterCompositions, firstNumber, firstString, formatCurrency, formatLocalDate, getBookingBookGuestToken, getGuestQuoteBackendContext, getGuestQuoteInput, isDisplayableCustomAttribute, localeToLanguage, makeMinIntervalLimiter, makeTranslationLive, parseQueryParameters, refreshGuestQuoteInsurancePassthrough, removeGuestQuoteAdditionalServiceSelection, selectGuestQuoteCancellationPolicySelection, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toQueryString, toResolvedCustomAttributeCategoryTranslationKey, toStartDateSelectedCalendarDays, validateContactSubmitInput, withGuestQuoteInsurance, withGuestQuoteInsuranceRefresh } from "@v-office/sdk-core";
3
- import { Context, Data, DateTime, Effect, Layer, Schema } from "effect";
3
+ import { Context, Data, DateTime, Effect, Layer, Schema, SchemaGetter } from "effect";
4
4
  import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http";
5
5
  import { print } from "graphql";
6
6
  //#region codegen/v9/graphql-codegen/stable-filters.json
@@ -506,6 +506,22 @@ const validateWebsiteV9Config = (config) => {
506
506
  });
507
507
  };
508
508
  //#endregion
509
+ //#region codegen/v9/php-record.ts
510
+ /**
511
+ * The v9 APIs are PHP applications, and `json_encode` writes an empty
512
+ * associative array as `[]` rather than `{}`. Every record field can therefore
513
+ * arrive as an empty array. That is a valid "nothing configured" state and must
514
+ * not fail decoding.
515
+ *
516
+ * Only the empty array is reinterpreted. Everything else runs against
517
+ * `Schema.Record` unchanged, so wrong value types and non-empty arrays still
518
+ * fail with a regular SchemaError.
519
+ */
520
+ const PhpRecord = (value) => Schema.Unknown.pipe(Schema.decodeTo(Schema.Record(Schema.String, value), {
521
+ decode: SchemaGetter.transform((input) => Array.isArray(input) && input.length === 0 ? {} : input),
522
+ encode: SchemaGetter.transform((record) => record)
523
+ }));
524
+ //#endregion
509
525
  //#region codegen/v9/v1/generated/v1-data.ts
510
526
  /**
511
527
  * Effect schemas generated from scripts/v9/v1/openapi.yaml.
@@ -529,8 +545,8 @@ const CalendarDaySchema = Schema.Struct({
529
545
  tooltip: Schema.String
530
546
  });
531
547
  const CalendarResponseSchema$1 = Schema.Struct({
532
- caldata_beon: Schema.Record(Schema.String, Schema.suspend(() => CalendarDaySchema)),
533
- events: Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown))),
548
+ caldata_beon: PhpRecord(Schema.suspend(() => CalendarDaySchema)),
549
+ events: Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown))),
534
550
  max_date: Schema.NullOr(Schema.String),
535
551
  ok: Schema.Boolean
536
552
  });
@@ -551,8 +567,8 @@ const CustomerUnitSummarySchema = Schema.Struct({
551
567
  });
552
568
  const DocumentCollectionResponseSchema = Schema.Struct({
553
569
  data: Schema.mutable(Schema.Array(Schema.suspend(() => DocumentSummarySchema))),
554
- links: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
555
- meta: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown))
570
+ links: Schema.optionalKey(PhpRecord(Schema.Unknown)),
571
+ meta: Schema.optionalKey(PhpRecord(Schema.Unknown))
556
572
  });
557
573
  const DocumentResourceSchema = Schema.Struct({
558
574
  created_at: Schema.optionalKey(Schema.String),
@@ -747,22 +763,22 @@ const PaymentScheduleItemSchema = Schema.Struct({
747
763
  });
748
764
  const QuoteSchema = Schema.Struct({
749
765
  currency: Schema.optionalKey(Schema.String),
750
- errors: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))])),
766
+ errors: Schema.optionalKey(Schema.Union([Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown))), PhpRecord(Schema.String)])),
751
767
  mandatory: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => QuoteLineSchema$1)))),
752
768
  onsite: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => QuoteLineSchema$1)))),
753
769
  onsiteOptional: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => QuoteLineSchema$1)))),
754
770
  optional: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => QuoteLineSchema$1)))),
755
771
  optionValidFor: Schema.optionalKey(Schema.Number),
756
772
  paymentSchedule: Schema.optionalKey(Schema.suspend(() => PaymentScheduleSchema$1)),
757
- serviceLimits: Schema.optionalKey(Schema.Record(Schema.String, Schema.suspend(() => ServiceLimitSchema))),
773
+ serviceLimits: Schema.optionalKey(PhpRecord(Schema.suspend(() => ServiceLimitSchema))),
758
774
  travelInsuranceIsSetup: Schema.optionalKey(Schema.Boolean),
759
775
  usage: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => QuoteLineSchema$1)))),
760
- warnings: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown))))
776
+ warnings: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown))))
761
777
  });
762
778
  const QuoteLineSchema$1 = Schema.Struct({
763
779
  amount: Schema.optionalKey(Schema.NullOr(Schema.Number)),
764
780
  annotation: Schema.optionalKey(Schema.NullOr(Schema.String)),
765
- beon_data: Schema.optionalKey(Schema.Union([Schema.suspend(() => ServiceBeonDataSchema), Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))])),
781
+ beon_data: Schema.optionalKey(Schema.Union([Schema.suspend(() => ServiceBeonDataSchema), Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))])),
766
782
  calculation: Schema.optionalKey(Schema.String),
767
783
  charge: Schema.optionalKey(Schema.String),
768
784
  fromdate: Schema.optionalKey(Schema.NullOr(Schema.String)),
@@ -801,7 +817,7 @@ const RawObjectResponseSchema = Schema.Struct({
801
817
  data: Schema.suspend(() => RawVofficeObjectSchema),
802
818
  ok: Schema.Boolean
803
819
  });
804
- const RawVofficeObjectSchema = Schema.Record(Schema.String, Schema.Unknown);
820
+ const RawVofficeObjectSchema = PhpRecord(Schema.Unknown);
805
821
  const RegionListResponseSchema = Schema.Struct({
806
822
  data: Schema.mutable(Schema.Array(Schema.Struct({ id: Schema.optionalKey(Schema.Number) }))),
807
823
  ok: Schema.Boolean
@@ -821,7 +837,7 @@ const ServiceBeonDataSchema = Schema.Struct({
821
837
  description: Schema.optionalKey(Schema.String),
822
838
  images: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => ServiceImageSchema)))),
823
839
  owner_active: Schema.optionalKey(Schema.Boolean),
824
- owner_settings: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown))
840
+ owner_settings: Schema.optionalKey(PhpRecord(Schema.Unknown))
825
841
  });
826
842
  const ServiceImageSchema = Schema.Struct({
827
843
  description: Schema.optionalKey(Schema.NullOr(Schema.String)),
@@ -838,15 +854,15 @@ const ServiceListResponseSchema = Schema.Struct({
838
854
  ok: Schema.Boolean
839
855
  });
840
856
  const SetupDataSchema = Schema.Struct({
841
- add_ons: Schema.optionalKey(Schema.Record(Schema.String, Schema.Boolean)),
842
- booking: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
843
- common: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
844
- design: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
845
- guest_portal: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
846
- max_count: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
847
- owner_portal: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
848
- search: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
849
- styles: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown))
857
+ add_ons: Schema.optionalKey(PhpRecord(Schema.Boolean)),
858
+ booking: Schema.optionalKey(PhpRecord(Schema.Unknown)),
859
+ common: Schema.optionalKey(PhpRecord(Schema.Unknown)),
860
+ design: Schema.optionalKey(PhpRecord(Schema.Unknown)),
861
+ guest_portal: Schema.optionalKey(PhpRecord(Schema.Unknown)),
862
+ max_count: Schema.optionalKey(PhpRecord(Schema.Unknown)),
863
+ owner_portal: Schema.optionalKey(PhpRecord(Schema.Unknown)),
864
+ search: Schema.optionalKey(PhpRecord(Schema.Unknown)),
865
+ styles: Schema.optionalKey(PhpRecord(Schema.Unknown))
850
866
  });
851
867
  const SetupResponseSchema = Schema.Struct({
852
868
  data: Schema.suspend(() => SetupDataSchema),
@@ -858,7 +874,7 @@ const TileSchema = Schema.Struct({
858
874
  image: Schema.optionalKey(Schema.NullOr(Schema.String)),
859
875
  link_url: Schema.optionalKey(Schema.NullOr(Schema.String)),
860
876
  open_in_new_tab: Schema.optionalKey(Schema.Boolean),
861
- property: Schema.optionalKey(Schema.NullOr(Schema.Record(Schema.String, Schema.Unknown))),
877
+ property: Schema.optionalKey(Schema.NullOr(PhpRecord(Schema.Unknown))),
862
878
  title: Schema.optionalKey(Schema.String)
863
879
  });
864
880
  const TileCollectionResponseSchema = Schema.Struct({ data: Schema.mutable(Schema.Array(Schema.suspend(() => TileSchema))) });
@@ -871,7 +887,7 @@ const TileTagSchema = Schema.Union([
871
887
  Schema.Literal("owner_portal_brands")
872
888
  ]);
873
889
  const TravelInsuranceBookingSchema = Schema.Struct({
874
- additional_booking_data: Schema.optionalKey(Schema.NullOr(Schema.Record(Schema.String, Schema.Unknown))),
890
+ additional_booking_data: Schema.optionalKey(Schema.NullOr(PhpRecord(Schema.Unknown))),
875
891
  booking_number: Schema.optionalKey(Schema.String),
876
892
  created_at: Schema.optionalKey(Schema.NullOr(Schema.String)),
877
893
  guest_token: Schema.optionalKey(Schema.String),
@@ -881,7 +897,7 @@ const TravelInsuranceBookingSchema = Schema.Struct({
881
897
  voffice_member_id: Schema.optionalKey(Schema.Number),
882
898
  webhook_attempts: Schema.optionalKey(Schema.Number),
883
899
  webhook_executed_at: Schema.optionalKey(Schema.NullOr(Schema.String)),
884
- webhook_last_response: Schema.optionalKey(Schema.NullOr(Schema.Record(Schema.String, Schema.Unknown)))
900
+ webhook_last_response: Schema.optionalKey(Schema.NullOr(PhpRecord(Schema.Unknown)))
885
901
  });
886
902
  const TravelInsuranceBookingStoreRequestSchema = Schema.Struct({
887
903
  booking_number: Schema.String,
@@ -903,7 +919,7 @@ const UnitOfferSchema = Schema.Struct({
903
919
  discount_type: Schema.optionalKey(Schema.NullOr(Schema.String)),
904
920
  from_date: Schema.optionalKey(Schema.NullOr(Schema.String)),
905
921
  min_stay: Schema.optionalKey(Schema.NullOr(Schema.Number)),
906
- season: Schema.optionalKey(Schema.NullOr(Schema.Record(Schema.String, Schema.Unknown))),
922
+ season: Schema.optionalKey(Schema.NullOr(PhpRecord(Schema.Unknown))),
907
923
  till_date: Schema.optionalKey(Schema.NullOr(Schema.String)),
908
924
  time_span: Schema.optionalKey(Schema.NullOr(Schema.Number)),
909
925
  title: Schema.optionalKey(Schema.NullOr(Schema.String)),
@@ -941,7 +957,7 @@ const V1_OPERATIONS = {
941
957
  requestBodySchema: Schema.suspend(() => ErgoBookRequestSchema),
942
958
  responseStatus: "200",
943
959
  responseContentType: "application/json",
944
- responseSchema: Schema.Record(Schema.String, Schema.Unknown)
960
+ responseSchema: PhpRecord(Schema.Unknown)
945
961
  },
946
962
  cancelErgoTravelCancellationInsurance: {
947
963
  method: "POST",
@@ -952,7 +968,7 @@ const V1_OPERATIONS = {
952
968
  requestBodySchema: Schema.suspend(() => ErgoPolicyNumberRequestSchema),
953
969
  responseStatus: "200",
954
970
  responseContentType: "application/json",
955
- responseSchema: Schema.Record(Schema.String, Schema.Unknown)
971
+ responseSchema: PhpRecord(Schema.Unknown)
956
972
  },
957
973
  createErgoPreContract: {
958
974
  method: "POST",
@@ -963,7 +979,7 @@ const V1_OPERATIONS = {
963
979
  requestBodySchema: Schema.suspend(() => ErgoCreatePreContractRequestSchema),
964
980
  responseStatus: "200",
965
981
  responseContentType: "application/json",
966
- responseSchema: Schema.Record(Schema.String, Schema.Unknown)
982
+ responseSchema: PhpRecord(Schema.Unknown)
967
983
  },
968
984
  deleteTravelInsuranceBooking: {
969
985
  method: "DELETE",
@@ -993,7 +1009,7 @@ const V1_OPERATIONS = {
993
1009
  queryParameters: ["guest_token", "booking_number"],
994
1010
  responseStatus: "200",
995
1011
  responseContentType: "application/json",
996
- responseSchema: Schema.Union([Schema.suspend(() => TravelInsuranceBookingSchema), Schema.NullOr(Schema.Record(Schema.String, Schema.Unknown))])
1012
+ responseSchema: Schema.Union([Schema.suspend(() => TravelInsuranceBookingSchema), Schema.NullOr(PhpRecord(Schema.Unknown))])
997
1013
  },
998
1014
  getCurrentMember: {
999
1015
  method: "GET",
@@ -1234,7 +1250,7 @@ const V1_OPERATIONS = {
1234
1250
  ],
1235
1251
  responseStatus: "200",
1236
1252
  responseContentType: "application/json",
1237
- responseSchema: Schema.Record(Schema.String, Schema.Unknown)
1253
+ responseSchema: PhpRecord(Schema.Unknown)
1238
1254
  },
1239
1255
  readErgoPreContract: {
1240
1256
  method: "POST",
@@ -1245,7 +1261,7 @@ const V1_OPERATIONS = {
1245
1261
  requestBodySchema: Schema.suspend(() => ErgoReadPreContractRequestSchema),
1246
1262
  responseStatus: "200",
1247
1263
  responseContentType: "application/json",
1248
- responseSchema: Schema.Record(Schema.String, Schema.Unknown)
1264
+ responseSchema: PhpRecord(Schema.Unknown)
1249
1265
  },
1250
1266
  readErgoTravelCancellationInsurance: {
1251
1267
  method: "POST",
@@ -1256,7 +1272,7 @@ const V1_OPERATIONS = {
1256
1272
  requestBodySchema: Schema.suspend(() => ErgoPolicyNumberRequestSchema),
1257
1273
  responseStatus: "200",
1258
1274
  responseContentType: "application/json",
1259
- responseSchema: Schema.Record(Schema.String, Schema.Unknown)
1275
+ responseSchema: PhpRecord(Schema.Unknown)
1260
1276
  },
1261
1277
  searchErgoTravelCancellationInsurancePlans: {
1262
1278
  method: "POST",
@@ -1267,7 +1283,7 @@ const V1_OPERATIONS = {
1267
1283
  requestBodySchema: Schema.suspend(() => ErgoPlanSearchRequestSchema),
1268
1284
  responseStatus: "200",
1269
1285
  responseContentType: "application/json",
1270
- responseSchema: Schema.Record(Schema.String, Schema.Unknown)
1286
+ responseSchema: PhpRecord(Schema.Unknown)
1271
1287
  },
1272
1288
  storeTravelInsuranceBooking: {
1273
1289
  method: "POST",
@@ -3220,7 +3236,7 @@ const BookTravelInsurancePlanResponseSchema = Schema.Struct({
3220
3236
  ok: Schema.optionalKey(Schema.Boolean),
3221
3237
  reasonText: Schema.optionalKey(Schema.String),
3222
3238
  rq: Schema.optionalKey(Schema.String),
3223
- rs: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3239
+ rs: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3224
3240
  status: Schema.optionalKey(Schema.Number),
3225
3241
  text: Schema.optionalKey(Schema.String),
3226
3242
  trackingId: Schema.optionalKey(Schema.String),
@@ -3309,10 +3325,10 @@ Schema.Struct({
3309
3325
  })))
3310
3326
  });
3311
3327
  const GenericVofficeResponseSchema = Schema.Struct({
3312
- errors: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3328
+ errors: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3313
3329
  ok: Schema.optionalKey(Schema.Boolean),
3314
3330
  trackingId: Schema.optionalKey(Schema.String),
3315
- warnings: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown))
3331
+ warnings: Schema.optionalKey(PhpRecord(Schema.Unknown))
3316
3332
  });
3317
3333
  const GeoPointSchema = Schema.Struct({
3318
3334
  coordinates: Schema.mutable(Schema.Array(Schema.Number)),
@@ -3335,36 +3351,36 @@ Schema.Union([Schema.Struct({ id: Schema.Number }), Schema.Struct({ code: Schema
3335
3351
  const GuestAppReservationDataResponseSchema = Schema.Struct({
3336
3352
  bookings: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Struct({
3337
3353
  arrivalStatus: Schema.optionalKey(Schema.NullOr(Schema.String)),
3338
- availableExtras: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3354
+ availableExtras: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3339
3355
  availableLanguages: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.String))),
3340
- bookedServices: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3356
+ bookedServices: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3341
3357
  bookingId: Schema.optionalKey(Schema.Number),
3342
- currency: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3343
- customer: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3358
+ currency: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3359
+ customer: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3344
3360
  from: Schema.optionalKey(Schema.String),
3345
- guests: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3346
- guestSuggestions: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3361
+ guests: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3362
+ guestSuggestions: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3347
3363
  id: Schema.optionalKey(Schema.Number),
3348
- options: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3349
- payments: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3364
+ options: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3365
+ payments: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3350
3366
  paymentSchedule: Schema.optionalKey(Schema.suspend(() => PaymentScheduleSchema)),
3351
- personCountDetails: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3367
+ personCountDetails: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3352
3368
  preferredLanguage: Schema.optionalKey(Schema.String),
3353
- registrationForm: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3369
+ registrationForm: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3354
3370
  reservationDate: Schema.optionalKey(Schema.String),
3355
3371
  reservationNumber: Schema.optionalKey(Schema.String),
3356
- setup: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3372
+ setup: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3357
3373
  status: Schema.optionalKey(Schema.String),
3358
3374
  till: Schema.optionalKey(Schema.String),
3359
3375
  totalDays: Schema.optionalKey(Schema.Number),
3360
3376
  totalPersons: Schema.optionalKey(Schema.Number),
3361
- unit: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown))
3377
+ unit: Schema.optionalKey(PhpRecord(Schema.Unknown))
3362
3378
  })))),
3363
3379
  ok: Schema.optionalKey(Schema.Boolean),
3364
3380
  trackingId: Schema.optionalKey(Schema.String)
3365
3381
  });
3366
3382
  Schema.suspend(() => CheckoutPaymentDataSchema);
3367
- const LanguageMapSchema = Schema.Record(Schema.String, Schema.String);
3383
+ const LanguageMapSchema = PhpRecord(Schema.String);
3368
3384
  const MessageFormValueSchema = Schema.NullOr(Schema.Union([
3369
3385
  Schema.String,
3370
3386
  Schema.Number,
@@ -3397,10 +3413,10 @@ const OfferSchema = Schema.Struct({
3397
3413
  voucherCode: Schema.optionalKey(Schema.String)
3398
3414
  });
3399
3415
  Schema.Struct({ locationToken: Schema.String });
3400
- const PaymentMethodsSchema = Schema.Record(Schema.String, Schema.Struct({
3401
- bankaccount: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3402
- button: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3403
- fields: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3416
+ const PaymentMethodsSchema = PhpRecord(Schema.Struct({
3417
+ bankaccount: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3418
+ button: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3419
+ fields: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3404
3420
  id: Schema.optionalKey(Schema.Number),
3405
3421
  paymentTest: Schema.optionalKey(Schema.Boolean),
3406
3422
  paymenturl: Schema.optionalKey(Schema.String),
@@ -3411,7 +3427,7 @@ const PaymentMethodsSchema = Schema.Record(Schema.String, Schema.Struct({
3411
3427
  ])),
3412
3428
  url: Schema.optionalKey(Schema.String)
3413
3429
  }));
3414
- const PaymentScheduleSchema = Schema.Record(Schema.String, Schema.Struct({
3430
+ const PaymentScheduleSchema = PhpRecord(Schema.Struct({
3415
3431
  amount: Schema.optionalKey(Schema.Number),
3416
3432
  date: Schema.optionalKey(Schema.String),
3417
3433
  includesDeposit: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Number])),
@@ -3455,7 +3471,7 @@ Schema.Struct({
3455
3471
  const QuotePricesResponseSchema = Schema.Struct({
3456
3472
  currency: Schema.optionalKey(Schema.String),
3457
3473
  deposit: Schema.optionalKey(Schema.suspend(() => DepositSchema)),
3458
- errors: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3474
+ errors: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3459
3475
  mandatory: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => QuoteLineSchema)))),
3460
3476
  ok: Schema.optionalKey(Schema.Boolean),
3461
3477
  omandatory: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => QuoteLineSchema)))),
@@ -3467,7 +3483,7 @@ const QuotePricesResponseSchema = Schema.Struct({
3467
3483
  serviceLimits: Schema.optionalKey(Schema.suspend(() => ServiceLimitsSchema)),
3468
3484
  travelInsuranceIsSetup: Schema.optionalKey(Schema.Boolean),
3469
3485
  usage: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => QuoteLineSchema)))),
3470
- warnings: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown))
3486
+ warnings: Schema.optionalKey(PhpRecord(Schema.Unknown))
3471
3487
  });
3472
3488
  const RatingSchema = Schema.Struct({
3473
3489
  fb_avg: Schema.optionalKey(Schema.Number),
@@ -3578,21 +3594,21 @@ Schema.Struct({
3578
3594
  })
3579
3595
  });
3580
3596
  Schema.Struct({
3581
- form: Schema.Record(Schema.String, Schema.suspend(() => MessageFormValueSchema)),
3582
- labels: Schema.Record(Schema.String, Schema.String),
3597
+ form: PhpRecord(Schema.suspend(() => MessageFormValueSchema)),
3598
+ labels: PhpRecord(Schema.String),
3583
3599
  order: Schema.mutable(Schema.Array(Schema.String)),
3584
3600
  subject: Schema.String
3585
3601
  });
3586
3602
  const SaveMessageResponseSchema = Schema.Struct({
3587
- errors: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3603
+ errors: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3588
3604
  ok: Schema.optionalKey(Schema.Boolean),
3589
3605
  trackingId: Schema.optionalKey(Schema.String),
3590
- warnings: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown))
3606
+ warnings: Schema.optionalKey(PhpRecord(Schema.Unknown))
3591
3607
  });
3592
3608
  Schema.Struct({ nr: Schema.String });
3593
3609
  Schema.Struct({
3594
3610
  alternatives: Schema.optionalKey(Schema.Boolean),
3595
- fields: Schema.Record(Schema.String, Schema.suspend(() => ProjectionOptionsSchema)),
3611
+ fields: PhpRecord(Schema.suspend(() => ProjectionOptionsSchema)),
3596
3612
  filter: Schema.Struct({
3597
3613
  adults: Schema.optionalKey(Schema.Number),
3598
3614
  babys: Schema.optionalKey(Schema.Number),
@@ -3625,13 +3641,13 @@ Schema.Struct({
3625
3641
  warnings: Schema.optionalKey(Schema.Boolean)
3626
3642
  });
3627
3643
  const SearchUnitsResponseSchema = Schema.Struct({
3628
- alternatives: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3644
+ alternatives: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3629
3645
  foundExactMatch: Schema.optionalKey(Schema.Boolean),
3630
3646
  ids: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Number))),
3631
- matchingPeriods: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3647
+ matchingPeriods: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3632
3648
  ok: Schema.optionalKey(Schema.Boolean),
3633
3649
  trackingId: Schema.optionalKey(Schema.String),
3634
- units: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown))))
3650
+ units: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown))))
3635
3651
  });
3636
3652
  const ServiceSchema = Schema.Struct({
3637
3653
  _id: Schema.optionalKey(Schema.Number),
@@ -3670,7 +3686,7 @@ const ServiceCalculationSchema = Schema.Union([
3670
3686
  Schema.Literal("PERC"),
3671
3687
  Schema.Literal("USAGE")
3672
3688
  ]);
3673
- const ServiceLimitsSchema = Schema.Record(Schema.String, Schema.Struct({
3689
+ const ServiceLimitsSchema = PhpRecord(Schema.Struct({
3674
3690
  blockedByDate: Schema.optionalKey(Schema.Boolean),
3675
3691
  maxDaysAfterBooking: Schema.optionalKey(Schema.NullOr(Schema.Number)),
3676
3692
  maxPerBooking: Schema.optionalKey(Schema.NullOr(Schema.Number)),
@@ -3771,7 +3787,7 @@ const TravelInsurancePlanSchema = Schema.Struct({
3771
3787
  effectiveDate: Schema.optionalKey(Schema.String),
3772
3788
  expireDate: Schema.optionalKey(Schema.String),
3773
3789
  featured: Schema.optionalKey(Schema.String),
3774
- features: Schema.optionalKey(Schema.Record(Schema.String, Schema.Struct({
3790
+ features: Schema.optionalKey(PhpRecord(Schema.Struct({
3775
3791
  id: Schema.optionalKey(Schema.String),
3776
3792
  name: Schema.optionalKey(Schema.String)
3777
3793
  }))),
@@ -3797,7 +3813,7 @@ Schema.Struct({
3797
3813
  totalBookingAmount: Schema.Number
3798
3814
  });
3799
3815
  const TravelInsurancePlansResponseSchema = Schema.Struct({
3800
- errors: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),
3816
+ errors: Schema.optionalKey(PhpRecord(Schema.Unknown)),
3801
3817
  ok: Schema.optionalKey(Schema.Boolean),
3802
3818
  plans: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => TravelInsurancePlanSchema)))),
3803
3819
  response: Schema.optionalKey(Schema.NullOr(Schema.String)),
@@ -3873,7 +3889,7 @@ const UnitInfoSchema = Schema.Struct({
3873
3889
  ])),
3874
3890
  publish: Schema.optionalKey(Schema.Boolean),
3875
3891
  reachableByLink: Schema.optionalKey(Schema.Boolean),
3876
- region: Schema.optionalKey(Schema.Union([Schema.Number, Schema.Record(Schema.String, Schema.Unknown)])),
3892
+ region: Schema.optionalKey(Schema.Union([Schema.Number, PhpRecord(Schema.Unknown)])),
3877
3893
  regionName: Schema.optionalKey(Schema.suspend(() => LanguageMapSchema)),
3878
3894
  roomDetails: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => RoomDetailSchema)))),
3879
3895
  type: Schema.optionalKey(Schema.Union([
@@ -3907,11 +3923,11 @@ const UnitPriceSchema = Schema.Struct({
3907
3923
  value: Schema.optionalKey(Schema.Number)
3908
3924
  });
3909
3925
  Schema.Struct({
3910
- bookings: Schema.Record(Schema.String, Schema.Struct({
3911
- addedGuests: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3926
+ bookings: PhpRecord(Schema.Struct({
3927
+ addedGuests: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3912
3928
  addedServicelines: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.suspend(() => BookingServiceLineSchema)))),
3913
- changedGuests: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown)))),
3914
- removedGuests: Schema.optionalKey(Schema.mutable(Schema.Array(Schema.Record(Schema.String, Schema.Unknown))))
3929
+ changedGuests: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown)))),
3930
+ removedGuests: Schema.optionalKey(Schema.mutable(Schema.Array(PhpRecord(Schema.Unknown))))
3915
3931
  })),
3916
3932
  noStatusChange: Schema.optionalKey(Schema.Boolean),
3917
3933
  token: Schema.String
@@ -5623,7 +5639,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
5623
5639
  return page;
5624
5640
  });
5625
5641
  const loadV9SearchRuntime = Effect.tryPromise({
5626
- try: () => import("./search-BCQzRzvO.mjs"),
5642
+ try: () => import("./search-BYXTiE9L.mjs"),
5627
5643
  catch: (cause) => new CoreSDKError({
5628
5644
  source: "v10",
5629
5645
  operation: "v9.search.runtime",
@@ -6021,7 +6037,7 @@ const orderRentalsById = ({ rentalIds, rentals }) => {
6021
6037
  });
6022
6038
  };
6023
6039
  const loadV9RentalsRuntime = Effect.tryPromise({
6024
- try: () => import("./rentals-BxAIq-V4.mjs"),
6040
+ try: () => import("./rentals-YT5xN2Gl.mjs"),
6025
6041
  catch: (cause) => new CoreSDKError({
6026
6042
  source: "v10",
6027
6043
  operation: "v9.rentals.runtime",