@v-office/website-sdk 2.32.0 → 2.34.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.
- package/README.md +17 -6
- package/dist/cli.mjs +12 -2
- package/dist/{client-mC56Qyoy.mjs → client-C1McSXf1.mjs} +73 -14
- package/dist/index.d.mts +123 -4
- package/dist/index.mjs +2 -2
- package/dist/instructions/CHANGELOG.md +2 -0
- package/dist/instructions/MIGRATION.md +2 -0
- package/dist/instructions/README.md +1 -0
- package/dist/instructions/availability.md +1 -1
- package/dist/instructions/booking.md +1 -1
- package/dist/instructions/contact.md +1 -1
- package/dist/instructions/creation.md +11 -0
- package/dist/instructions/quote.md +1 -1
- package/dist/instructions/search.md +2 -2
- package/dist/instructions/versions/2.33.0/CHANGELOG.md +21 -0
- package/dist/instructions/versions/2.33.0/MIGRATION.md +25 -0
- package/dist/instructions/versions/2.34.0/CHANGELOG.md +18 -0
- package/dist/instructions/versions/2.34.0/MIGRATION.md +9 -0
- package/dist/instructions/videos.md +168 -0
- package/dist/{rentals-Ov8pd9qV.mjs → rentals-yMGMrIHJ.mjs} +1 -1
- package/dist/{search-BQgxTBHd.mjs → search-DiEV8NhE.mjs} +1 -1
- package/instructions/CHANGELOG.md +2 -0
- package/instructions/MIGRATION.md +2 -0
- package/instructions/README.md +1 -0
- package/instructions/availability.md +1 -1
- package/instructions/booking.md +1 -1
- package/instructions/contact.md +1 -1
- package/instructions/creation.md +11 -0
- package/instructions/quote.md +1 -1
- package/instructions/search.md +2 -2
- package/instructions/versions/2.33.0/CHANGELOG.md +21 -0
- package/instructions/versions/2.33.0/MIGRATION.md +25 -0
- package/instructions/versions/2.33.0/release.json +3 -0
- package/instructions/versions/2.34.0/CHANGELOG.md +18 -0
- package/instructions/versions/2.34.0/MIGRATION.md +9 -0
- package/instructions/versions/2.34.0/release.json +3 -0
- package/instructions/videos.md +168 -0
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -82,27 +82,38 @@ const options = defineWebsiteSDKOptions({
|
|
|
82
82
|
|
|
83
83
|
## SDK Surface
|
|
84
84
|
|
|
85
|
-
The facade exposes
|
|
85
|
+
The facade exposes asynchronous static and live APIs (Promises; v9's `searchPages` is an
|
|
86
|
+
`AsyncIterable`). Search, availability, quote, booking and contact are live on both backends:
|
|
86
87
|
|
|
87
88
|
```ts
|
|
88
89
|
sdk.static.rentals.getRentals(input);
|
|
89
90
|
sdk.static.filter.getFilters(input);
|
|
90
|
-
// v10 only:
|
|
91
|
-
sdk.static.documents.getTermsAndPrivacyPolicy(input);
|
|
92
91
|
|
|
93
92
|
sdk.live.search.search(input);
|
|
94
|
-
|
|
95
|
-
sdk.live.rentals.getRentalsByIds(input);
|
|
96
|
-
sdk.live.voucher.validate(input);
|
|
93
|
+
sdk.live.search.mapSearch(input);
|
|
97
94
|
sdk.live.availability.getInitialAvailability(input);
|
|
98
95
|
sdk.live.availability.getStartDateSelectedAvailability(input);
|
|
99
96
|
sdk.live.quote.quote(input);
|
|
100
97
|
sdk.live.booking.book(input);
|
|
98
|
+
sdk.live.booking.submitPaymentOption(option);
|
|
101
99
|
sdk.live.contact.submit(input);
|
|
102
100
|
|
|
101
|
+
// v10 only:
|
|
102
|
+
sdk.static.documents.getTermsAndPrivacyPolicy(input);
|
|
103
|
+
sdk.static.payment.getBankTransferDetails();
|
|
104
|
+
|
|
105
|
+
// v9 only:
|
|
106
|
+
sdk.static.videos.getVideos(input);
|
|
107
|
+
sdk.live.search.searchPages(input);
|
|
108
|
+
sdk.live.rentals.getRentalsByIds(input);
|
|
109
|
+
sdk.live.voucher.validate(input);
|
|
110
|
+
|
|
103
111
|
await sdk.dispose();
|
|
104
112
|
```
|
|
105
113
|
|
|
114
|
+
On v9, `search.search` takes and returns v9 types, and the two availability methods return v9
|
|
115
|
+
outputs; their inputs are the same on both backends.
|
|
116
|
+
|
|
106
117
|
Both backends support fixed `start`/`end` search periods. Flexible-period query
|
|
107
118
|
keys (`month`, `dates`, `nights`, and `weekend`) are v10-only and are rejected
|
|
108
119
|
before transport by the v9 facade. An empty v9 query browses the scoped searchable
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $t as
|
|
2
|
+
import { $t as V9_HUB_FACILITY_SCOPE_FILTER_KEY, Yt as defineWebsiteSDKOptions, Zt as defineV9PropertyHighlightSourcesFromUnknown, _ as rental_attributes_default$1, an as V9_HUB_REGION_FILTER_KEY, cn as V9_SDK_OWNED_HUB_FILTER_KEYS, en as V9_HUB_FACILITY_SEARCH_FILTER_KEY, f as makeV9GraphQLClient, h as makeV0OpenApiClientFetchLive, i as toV9SdkOwnedHubFilterKeys, in as V9_HUB_OFFER_FILTER_KEY, ln as stable_filters_default, n as checkV9HubFilters, nn as V9_HUB_OBJECT_GROUP_SCOPE_FILTER_KEY, on as V9_HUB_RENTAL_IDS_FILTER_KEY, p as V0OpenApiClient, r as toV9RequiredHubFilterKeys, rn as V9_HUB_OFFERS_FILTER_KEY, sn as V9_HUB_UNIT_TYPE_FILTER_KEY, t as createWebsiteSDK, tn as V9_HUB_OBJECT_GROUP_FILTER_KEY, v as rental_attributes_default } from "./client-C1McSXf1.mjs";
|
|
3
3
|
import { a as hubRentalDataQuery, g as parseJsonData, i as hubFiltersQuery, m as VofficeUnitDataPropertyMetadata, u as rentalsAllWithoutFeedbacksQuery, y as parseVofficeRatingData } from "./operations-CUWcmNGK.mjs";
|
|
4
4
|
import { STABLE_SEARCH_INPUTS, SearchSearchSortSchema, defineCustomAttributesFromUnknown, toStableSearchInputQueryKeys } from "@v-office/sdk-core";
|
|
5
5
|
import { ByteSize, Console, Effect, FileSystem, Layer, Option, Path, Schema, Stdio, Terminal } from "effect";
|
|
@@ -17,7 +17,7 @@ var CLICheckFailed = class extends Error {
|
|
|
17
17
|
const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region package.json
|
|
20
|
-
var version = "2.
|
|
20
|
+
var version = "2.34.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/cli/output.ts
|
|
23
23
|
const toJson = (value) => Effect.try({
|
|
@@ -419,6 +419,16 @@ const staticCommands = [
|
|
|
419
419
|
command: "website-sdk --backend v9 rentals-by-ids --locale en-US --rental-ids 12,34",
|
|
420
420
|
description: "Fetch two v9 rentals in English."
|
|
421
421
|
}])),
|
|
422
|
+
Command.make("videos", {
|
|
423
|
+
placement: Flag.String("placement").pipe(Flag.optional, Flag.withDescription("Optional placement, for example \"frontpage\", \"object\" or a slug.")),
|
|
424
|
+
rentalId: Flag.String("rental-id").pipe(Flag.optional, Flag.withDescription("Optional vOffice rental ID to return only that rental's videos."))
|
|
425
|
+
}, ({ placement, rentalId }) => websiteSdkCommand.pipe(Effect.flatMap((root) => withSDK(root, (sdk) => sdk.backend === "v9" ? sdk.static.videos.getVideos({
|
|
426
|
+
...Option.isSome(placement) ? { placement: placement.value } : {},
|
|
427
|
+
...Option.isSome(rentalId) ? { rentalId: rentalId.value } : {}
|
|
428
|
+
}) : Promise.reject(/* @__PURE__ */ new Error("videos requires --backend v9."))).pipe(Effect.flatMap((result) => printOutput(root, result)))))).pipe(Command.withDescription("Fetch the v9 videos."), Command.withExamples([{
|
|
429
|
+
command: "website-sdk --backend v9 videos --placement object --rental-id 12",
|
|
430
|
+
description: "Fetch the object videos linked to one v9 rental."
|
|
431
|
+
}])),
|
|
422
432
|
Command.make("search", {
|
|
423
433
|
locale: localeFlag,
|
|
424
434
|
query: Flag.String("query").pipe(Flag.withDescription("Search query string, for example \"city=munich&adults=2\".")),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as parseVofficeUnitData, h as customDataAttribute, t as voucherValidityQuery } from "./operations-CUWcmNGK.mjs";
|
|
2
|
-
import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, daysBetweenLocalDates, expandCustomAttributeFilterCompositions, firstNumber, firstString, formatCurrency, formatLocalDate, getBookingBookGuestToken, getGuestQuoteBackendContext, getGuestQuoteInput, isDisplayableCustomAttribute, localeToLanguage, makeMinIntervalLimiter, makeTranslationLive, parseQueryParameters, refreshGuestQuoteInsurancePassthrough, removeGuestQuoteAdditionalServiceSelection, selectGuestQuoteCancellationPolicySelection, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toIsoDateFromPeriodQueryDate, toQueryString, toResolvedCustomAttributeCategoryTranslationKey, toStartDateSelectedCalendarDays, validateContactSubmitInput, withGuestQuoteInsurance, withGuestQuoteInsuranceRefresh } from "@v-office/sdk-core";
|
|
2
|
+
import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, daysBetweenLocalDates, expandCustomAttributeFilterCompositions, firstNumber, firstString, formatCurrency, formatLocalDate, getBookingBookGuestToken, getGuestQuoteBackendContext, getGuestQuoteInput, isDisplayableCustomAttribute, localeToLanguage, makeMinIntervalLimiter, makeTranslationLive, normalizeV10RateBudget, parseQueryParameters, refreshGuestQuoteInsurancePassthrough, removeGuestQuoteAdditionalServiceSelection, selectGuestQuoteCancellationPolicySelection, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toIsoDateFromPeriodQueryDate, toQueryString, toResolvedCustomAttributeCategoryTranslationKey, toStartDateSelectedCalendarDays, validateContactSubmitInput, withGuestQuoteInsurance, withGuestQuoteInsuranceRefresh } from "@v-office/sdk-core";
|
|
3
3
|
import { Clock, Context, Data, DateTime, Duration, Effect, Layer, Schema, SchemaGetter } from "effect";
|
|
4
4
|
import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http";
|
|
5
5
|
import { Kind, print, visit } from "graphql";
|
|
@@ -325,6 +325,10 @@ const normalizeWebsiteSDKOptions = (options = {}) => {
|
|
|
325
325
|
assertUniqueCustomFilterQueryKeys(options);
|
|
326
326
|
assertNoNestedCustomAttributeFilterCompositions(options.customAttributeFilterDefinitions ?? []);
|
|
327
327
|
return {
|
|
328
|
+
rateBudget: normalizeV10RateBudget({
|
|
329
|
+
budget: options.rateBudget,
|
|
330
|
+
option: "rateBudget"
|
|
331
|
+
}),
|
|
328
332
|
...options.translationOverrides === void 0 ? {} : { translationOverrides: options.translationOverrides },
|
|
329
333
|
customAttributes: options.customAttributes ?? EMPTY_CUSTOM_ATTRIBUTE_REGISTRY,
|
|
330
334
|
v9PropertyHighlightSources: options.v9PropertyHighlightSources ?? EMPTY_V9_PROPERTY_HIGHLIGHT_SOURCE_REGISTRY,
|
|
@@ -351,6 +355,7 @@ const toV9Options = (options) => {
|
|
|
351
355
|
message: `${sdkOwnedKeys.join(", ")} ${sdkOwnedKeys.length === 1 ? "is" : "are"} set by the SDK and cannot be a backendFilter key. Rename the configured custom filter.`
|
|
352
356
|
});
|
|
353
357
|
return {
|
|
358
|
+
rateBudget: options.rateBudget,
|
|
354
359
|
...options.translationOverrides === void 0 ? {} : { translationOverrides: options.translationOverrides },
|
|
355
360
|
customAttributes: options.customAttributes,
|
|
356
361
|
v9PropertyHighlightSources: options.v9PropertyHighlightSources,
|
|
@@ -423,6 +428,7 @@ const V9_CONFIG_FIELDS = {
|
|
|
423
428
|
rentalIdsSearch: true
|
|
424
429
|
};
|
|
425
430
|
const OPTION_FIELDS = {
|
|
431
|
+
rateBudget: true,
|
|
426
432
|
translationOverrides: true,
|
|
427
433
|
customAttributes: true,
|
|
428
434
|
v9PropertyHighlightSources: true,
|
|
@@ -1143,6 +1149,15 @@ const UnitServicePriceSchema = Schema.Struct({
|
|
|
1143
1149
|
till_date: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
1144
1150
|
type: Schema.optionalKey(Schema.NullOr(Schema.String))
|
|
1145
1151
|
});
|
|
1152
|
+
const VideoListResponseSchema = Schema.Struct({ data: Schema.mutable(Schema.Array(Schema.Struct({
|
|
1153
|
+
duration: Schema.Number,
|
|
1154
|
+
id: Schema.Number,
|
|
1155
|
+
name: Schema.String,
|
|
1156
|
+
thumbnail: Schema.NullOr(Schema.String),
|
|
1157
|
+
type: Schema.String,
|
|
1158
|
+
units: Schema.mutable(Schema.Array(Schema.Struct({ voffice_id: Schema.Number }))),
|
|
1159
|
+
url: Schema.String
|
|
1160
|
+
}))) });
|
|
1146
1161
|
const VideoResponseSchema = Schema.Struct({ data: Schema.Struct({
|
|
1147
1162
|
thumbnail: Schema.NullOr(Schema.String),
|
|
1148
1163
|
url: Schema.String
|
|
@@ -1321,6 +1336,15 @@ const V1_OPERATIONS = {
|
|
|
1321
1336
|
responseContentType: "application/json",
|
|
1322
1337
|
responseSchema: Schema.suspend(() => VideoResponseSchema)
|
|
1323
1338
|
},
|
|
1339
|
+
getVideos: {
|
|
1340
|
+
method: "GET",
|
|
1341
|
+
path: "/Videos",
|
|
1342
|
+
pathParameters: [],
|
|
1343
|
+
queryParameters: ["type"],
|
|
1344
|
+
responseStatus: "200",
|
|
1345
|
+
responseContentType: "application/json",
|
|
1346
|
+
responseSchema: Schema.suspend(() => VideoListResponseSchema)
|
|
1347
|
+
},
|
|
1324
1348
|
listFacilities: {
|
|
1325
1349
|
method: "GET",
|
|
1326
1350
|
path: "/Facilities",
|
|
@@ -5200,8 +5224,7 @@ const makeV9BookingApi = ({ config, options }) => {
|
|
|
5200
5224
|
...config.v0ApiBaseUrl === void 0 ? {} : { baseUrl: config.v0ApiBaseUrl }
|
|
5201
5225
|
});
|
|
5202
5226
|
const limitBooking = Effect.runSync(makeMinIntervalLimiter({
|
|
5203
|
-
|
|
5204
|
-
maxQueueSize: 5,
|
|
5227
|
+
...options.rateBudget,
|
|
5205
5228
|
onQueueFull: (maxQueueSize) => new CoreSDKError({
|
|
5206
5229
|
source: "v9",
|
|
5207
5230
|
operation: "v9.booking",
|
|
@@ -5293,8 +5316,7 @@ const makeV9ContactApi = ({ config, options }) => {
|
|
|
5293
5316
|
...config.v0ApiBaseUrl === void 0 ? {} : { baseUrl: config.v0ApiBaseUrl }
|
|
5294
5317
|
});
|
|
5295
5318
|
const limitContact = Effect.runSync(makeMinIntervalLimiter({
|
|
5296
|
-
|
|
5297
|
-
maxQueueSize: 5,
|
|
5319
|
+
...options.rateBudget,
|
|
5298
5320
|
onQueueFull: (maxQueueSize) => new CoreSDKError({
|
|
5299
5321
|
source: "v9",
|
|
5300
5322
|
operation: "v9.contact",
|
|
@@ -5748,8 +5770,7 @@ const quote = (client, v0Client, translations, limitQuote, input, shouldAddPropo
|
|
|
5748
5770
|
const makeV9QuoteApi = ({ config, options }) => {
|
|
5749
5771
|
const translations = makeV9TranslationService(options.translationOverrides);
|
|
5750
5772
|
const limitQuote = Effect.runSync(makeMinIntervalLimiter({
|
|
5751
|
-
|
|
5752
|
-
maxQueueSize: 5,
|
|
5773
|
+
...options.rateBudget,
|
|
5753
5774
|
onQueueFull: (maxQueueSize) => new CoreSDKError({
|
|
5754
5775
|
source: "v9",
|
|
5755
5776
|
operation: "v9.quote",
|
|
@@ -6071,7 +6092,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
6071
6092
|
return page;
|
|
6072
6093
|
});
|
|
6073
6094
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
6074
|
-
try: () => import("./search-
|
|
6095
|
+
try: () => import("./search-DiEV8NhE.mjs"),
|
|
6075
6096
|
catch: (cause) => new CoreSDKError({
|
|
6076
6097
|
source: "v9",
|
|
6077
6098
|
operation: "v9.search.runtime",
|
|
@@ -6117,8 +6138,7 @@ const makeV9SearchApi = ({ config, options }) => {
|
|
|
6117
6138
|
const propertyKind = toV9RentalScopePropertyKind(config);
|
|
6118
6139
|
const customAttributeDataAttributes = toCustomAttributeRentalDataAttributes(options.customAttributes);
|
|
6119
6140
|
const limitSearch = Effect.runSync(makeMinIntervalLimiter({
|
|
6120
|
-
|
|
6121
|
-
maxQueueSize: 5,
|
|
6141
|
+
...options.rateBudget,
|
|
6122
6142
|
onQueueFull: (maxQueueSize) => new CoreSDKError({
|
|
6123
6143
|
source: "v9",
|
|
6124
6144
|
operation: "v9.search",
|
|
@@ -6820,7 +6840,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
|
|
|
6820
6840
|
});
|
|
6821
6841
|
};
|
|
6822
6842
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
6823
|
-
try: () => import("./rentals-
|
|
6843
|
+
try: () => import("./rentals-yMGMrIHJ.mjs"),
|
|
6824
6844
|
catch: (cause) => new CoreSDKError({
|
|
6825
6845
|
source: "v9",
|
|
6826
6846
|
operation: "v9.rentals.runtime",
|
|
@@ -6981,6 +7001,40 @@ const makeV9RentalsApi = ({ config, options }) => {
|
|
|
6981
7001
|
};
|
|
6982
7002
|
};
|
|
6983
7003
|
//#endregion
|
|
7004
|
+
//#region src/legacy-v9/parser/videos/to-videos.ts
|
|
7005
|
+
const toVideos = (items) => items.toSorted((a, b) => a.id - b.id).map((item) => ({
|
|
7006
|
+
id: String(item.id),
|
|
7007
|
+
placement: item.type,
|
|
7008
|
+
rentalIds: item.units.map((unit) => String(unit.voffice_id)),
|
|
7009
|
+
hlsUrl: item.url,
|
|
7010
|
+
posterUrl: item.thumbnail,
|
|
7011
|
+
durationSeconds: item.duration,
|
|
7012
|
+
fileName: item.name
|
|
7013
|
+
}));
|
|
7014
|
+
const filterVideos = ({ videos, input = {} }) => videos.filter((video) => (input.placement === void 0 || video.placement === input.placement) && (input.rentalId === void 0 || video.rentalIds.includes(input.rentalId)));
|
|
7015
|
+
//#endregion
|
|
7016
|
+
//#region src/legacy-v9/static/videos.ts
|
|
7017
|
+
const makeV9VideosApi = ({ config }) => {
|
|
7018
|
+
const openApiClientLive = makeV1OpenApiClientFetchLive({
|
|
7019
|
+
apiKey: config.apiKey,
|
|
7020
|
+
...config.v1ApiBaseUrl === void 0 ? {} : { baseUrl: config.v1ApiBaseUrl }
|
|
7021
|
+
});
|
|
7022
|
+
const loadVideos = Effect.gen(function* () {
|
|
7023
|
+
const result = yield* (yield* V1OpenApiClient).execute("getVideos", {});
|
|
7024
|
+
return toVideos(result.data.data);
|
|
7025
|
+
}).pipe(Effect.provide(openApiClientLive), Effect.mapError((cause) => new CoreSDKError({
|
|
7026
|
+
source: "v9",
|
|
7027
|
+
operation: "v9.videos.getVideos",
|
|
7028
|
+
message: "Failed to load v9 videos from the v1 OpenAPI client.",
|
|
7029
|
+
cause
|
|
7030
|
+
})));
|
|
7031
|
+
const [loadVideosOnce, invalidateVideos] = Effect.runSync(Effect.cachedInvalidateWithTTL(loadVideos, Duration.infinity));
|
|
7032
|
+
return { getVideos: (input) => Effect.runPromise(loadVideosOnce.pipe(Effect.tapError(() => invalidateVideos), Effect.map((videos) => filterVideos({
|
|
7033
|
+
videos,
|
|
7034
|
+
input
|
|
7035
|
+
})))) };
|
|
7036
|
+
};
|
|
7037
|
+
//#endregion
|
|
6984
7038
|
//#region src/client.ts
|
|
6985
7039
|
function createWebsiteSDK({ config, options }) {
|
|
6986
7040
|
const normalizedOptions = normalizeWebsiteSDKOptions(options);
|
|
@@ -7017,13 +7071,15 @@ function createWebsiteSDK({ config, options }) {
|
|
|
7017
7071
|
config,
|
|
7018
7072
|
options: v9Options
|
|
7019
7073
|
});
|
|
7074
|
+
const videos = makeV9VideosApi({ config });
|
|
7020
7075
|
recordConstructedBackend("v9");
|
|
7021
7076
|
recordConstructedSdk(config, options);
|
|
7022
7077
|
return {
|
|
7023
7078
|
backend: "v9",
|
|
7024
7079
|
static: {
|
|
7025
7080
|
rentals: { getRentals: rentals.getRentals },
|
|
7026
|
-
filter: { getFilters: filter.getFilters }
|
|
7081
|
+
filter: { getFilters: filter.getFilters },
|
|
7082
|
+
videos: { getVideos: videos.getVideos }
|
|
7027
7083
|
},
|
|
7028
7084
|
live: {
|
|
7029
7085
|
contact: { submit: contact.submit },
|
|
@@ -7059,7 +7115,10 @@ function createWebsiteSDK({ config, options }) {
|
|
|
7059
7115
|
}
|
|
7060
7116
|
const runtime = createCoreRuntime({
|
|
7061
7117
|
config,
|
|
7062
|
-
options:
|
|
7118
|
+
options: {
|
|
7119
|
+
...normalizedOptions,
|
|
7120
|
+
v10RateBudget: normalizedOptions.rateBudget
|
|
7121
|
+
}
|
|
7063
7122
|
});
|
|
7064
7123
|
const sdk = {
|
|
7065
7124
|
backend: "v10",
|
|
@@ -7102,4 +7161,4 @@ function createWebsiteSDK({ config, options }) {
|
|
|
7102
7161
|
return sdk;
|
|
7103
7162
|
}
|
|
7104
7163
|
//#endregion
|
|
7105
|
-
export { QuoteSchema as $,
|
|
7164
|
+
export { QuoteSchema as $, V9_HUB_FACILITY_SCOPE_FILTER_KEY as $t, DocumentResourceSchema as A, bookInsuranceEffect as At, ErgoPersonSchema as B, quoteEffect as Bt, ApiEnvelopeBaseSchema as C, V1_BASE_URL as Ct, CustomerUnitSummarySchema as D, decodeV1OperationResponse as Dt, CurrentMemberResponseSchema as E, VideoResponseSchema as Et, ErgoAddressSchema as F, getInitialAvailabilityEffect as Ft, FacilityListResponseSchema as G, selectInsurancePaymentEffect as Gt, ErgoPolicyNumberRequestSchema as H, searchEffect as Ht, ErgoBankSchema as I, getRentalsEffect as It, PaymentScheduleItemSchema as J, submitPaymentOptionEffect as Jt, OnOfficeUnitCollectionResponseSchema as K, submitContactEffect as Kt, ErgoBookRequestSchema as L, getStartDateSelectedAvailabilityEffect as Lt, DocumentStatusUpdateRequestSchema as M, createInsurancePreContractEffect as Mt, DocumentSummarySchema as N, getBankTransferDetailsEffect as Nt, DocumentCollectionResponseSchema as O, addAdditionalServiceEffect as Ot, DocumentTypeSchema as P, getFiltersEffect as Pt, QuotePricesResponseSchema$1 as Q, V9_FACILITY_ATTRIBUTE_KEYS as Qt, ErgoCommonFieldsSchema as R, getTermsAndPrivacyPolicyEffect as Rt, makeV1OpenApiClientLive as S, UnitServicePriceSchema as St, CalendarResponseSchema$1 as T, VideoListResponseSchema as Tt, ErgoReadPreContractRequestSchema as U, selectCancellationPolicyEffect as Ut, ErgoPlanSearchRequestSchema as V, removeAdditionalServiceEffect as Vt, ErgoTripAndCustomerRequestSchema as W, selectInsuranceEffect as Wt, QuoteLineSchema$1 as X, defineV9PropertyHighlightSources as Xt, PaymentScheduleSchema$1 as Y, defineWebsiteSDKOptions as Yt, QuotePricesPayloadSchema as Z, defineV9PropertyHighlightSourcesFromUnknown as Zt, rental_attributes_default as _, UnitIdsResponseSchema as _t, makeV9CustomAttributeFilterCapabilities as a, V9_HUB_REGION_FILTER_KEY as an, SearchPropertiesResponseSchema as at, V1OpenApiClientError as b, UnitOfferSchema as bt, parseQueryParameters as c, V9_SDK_OWNED_HUB_FILTER_KEYS as cn, ServiceLimitSchema as ct, toVoucherCode as d, SetupResponseSchema as dt, V9_HUB_FACILITY_SEARCH_FILTER_KEY as en, QuoteServiceSchema as et, makeV9GraphQLClient as f, TileCollectionResponseSchema as ft, makeV0OpenApiClientLive as g, TravelInsuranceBookingStoreRequestSchema as gt, makeV0OpenApiClientFetchLive as h, TravelInsuranceBookingSchema as ht, toV9SdkOwnedHubFilterKeys as i, V9_HUB_OFFER_FILTER_KEY as in, RoomImageSchema as it, DocumentStatusSchema as j, clearAdditionalServicesEffect as jt, DocumentResourceResponseSchema as k, bookEffect as kt, toQueryString as l, stable_filters_default as ln, ServiceListResponseSchema as lt, V0OpenApiClientError as m, TileTagSchema as mt, checkV9HubFilters as n, V9_HUB_OBJECT_GROUP_SCOPE_FILTER_KEY as nn, RawVofficeObjectSchema as nt, toBasicQueryInputs as o, V9_HUB_RENTAL_IDS_FILTER_KEY as on, ServiceBeonDataSchema as ot, V0OpenApiClient as p, TileSchema as pt, OnOfficeUnitSchema as q, submitPaymentOption as qt, toV9RequiredHubFilterKeys as r, V9_HUB_OFFERS_FILTER_KEY as rn, RegionListResponseSchema as rt, collectQueryParameters as s, V9_HUB_UNIT_TYPE_FILTER_KEY as sn, ServiceImageSchema as st, createWebsiteSDK as t, V9_HUB_OBJECT_GROUP_FILTER_KEY as tn, RawObjectResponseSchema as tt, applyVofficeFilterDerivedBasicQueryInputs as u, SetupDataSchema as ut, rental_attributes_default$1 as v, UnitListItemSchema as vt, CalendarDaySchema as w, V1_OPERATIONS as wt, makeV1OpenApiClientFetchLive as x, UnitResponseSchema as xt, V1OpenApiClient as y, UnitListResponseSchema as yt, ErgoCreatePreContractRequestSchema as z, mapSearchEffect as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchAllRentalsAtOnceInput, SearchAllRentalsAtOnceInput as SearchAllRentalsAtOnceInput$1, SearchMapSearchInput, SearchMapSearchInput as SearchMapSearchInput$1, SearchMapSearchInputSchema, SearchMapSearchOutput, SearchMapSearchOutput as SearchMapSearchOutput$1, SearchMapSearchOutputItem, SearchMapSearchOutputSchema, SearchSearchAlternative, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputItem, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V9OnlyCustomAttributeInput, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
|
|
1
|
+
import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchAllRentalsAtOnceInput, SearchAllRentalsAtOnceInput as SearchAllRentalsAtOnceInput$1, SearchMapSearchInput, SearchMapSearchInput as SearchMapSearchInput$1, SearchMapSearchInputSchema, SearchMapSearchOutput, SearchMapSearchOutput as SearchMapSearchOutput$1, SearchMapSearchOutputItem, SearchMapSearchOutputSchema, SearchSearchAlternative, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputItem, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V10RateBudget, V9OnlyCustomAttributeInput, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
3
|
import { HttpClient } from "effect/unstable/http";
|
|
4
4
|
import "@graphql-typed-document-node/core";
|
|
@@ -55,6 +55,14 @@ type WebsiteV10Config = V10CoreConfig & {
|
|
|
55
55
|
};
|
|
56
56
|
type WebsiteSDKConfig = WebsiteV10Config | WebsiteV9Config;
|
|
57
57
|
type WebsiteSDKOptions = {
|
|
58
|
+
/**
|
|
59
|
+
* How often the SDK may start a PMS request of one kind (search, quote, booking, contact, and on
|
|
60
|
+
* v10 availability and feedback), and how many of that kind may be running or waiting at once
|
|
61
|
+
* (`maxQueueSize`, the running one included), on either backend. Defaults to one start a second
|
|
62
|
+
* and five at once, what one visitor's browser needs. A server that serves many
|
|
63
|
+
* visitors through one SDK (the AI Studio website chat) widens it; `maxQueueSize` is at least 1.
|
|
64
|
+
*/
|
|
65
|
+
readonly rateBudget?: Partial<V10RateBudget>;
|
|
58
66
|
readonly translationOverrides?: TranslationOverrides$1;
|
|
59
67
|
/** The validated registry returned by `defineCustomAttributes`. */
|
|
60
68
|
readonly customAttributes?: CustomAttributeRegistrySnapshot$1;
|
|
@@ -135,6 +143,21 @@ type V9SearchSearchOutput = Omit<SearchSearchOutput$1, "items"> & {
|
|
|
135
143
|
readonly items: readonly V9SearchSearchOutputItem[];
|
|
136
144
|
};
|
|
137
145
|
//#endregion
|
|
146
|
+
//#region src/legacy-v9/videos.d.ts
|
|
147
|
+
type V9Video = {
|
|
148
|
+
readonly id: string;
|
|
149
|
+
readonly placement: string;
|
|
150
|
+
readonly rentalIds: ReadonlyArray<string>;
|
|
151
|
+
readonly hlsUrl: string;
|
|
152
|
+
readonly posterUrl: string | null;
|
|
153
|
+
readonly durationSeconds: number;
|
|
154
|
+
readonly fileName: string;
|
|
155
|
+
};
|
|
156
|
+
type V9VideosGetVideosInput = {
|
|
157
|
+
readonly placement?: string;
|
|
158
|
+
readonly rentalId?: string;
|
|
159
|
+
};
|
|
160
|
+
//#endregion
|
|
138
161
|
//#region src/legacy-v9/voucher-input.d.ts
|
|
139
162
|
type V9VoucherValidityReason = "valid" | "not_yet_valid" | "expired" | "unknown" | "stay_too_short" | "outside_booking_window" | "rate_limited";
|
|
140
163
|
type V9VoucherValidateInput = {
|
|
@@ -172,6 +195,11 @@ type WebsiteSDKV10Static = WebsiteSDKSharedStatic & {
|
|
|
172
195
|
readonly getBankTransferDetails: () => Promise<ReadonlyArray<BookingBankTransferDetails$1>>;
|
|
173
196
|
};
|
|
174
197
|
};
|
|
198
|
+
type WebsiteSDKV9Static = WebsiteSDKSharedStatic & {
|
|
199
|
+
readonly videos: {
|
|
200
|
+
readonly getVideos: (input?: V9VideosGetVideosInput) => Promise<ReadonlyArray<V9Video>>;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
175
203
|
type WebsiteSDKSharedLive = {
|
|
176
204
|
readonly contact: {
|
|
177
205
|
readonly submit: (input: ContactSubmitInput$1) => Promise<ContactSubmitOutput$1>;
|
|
@@ -248,10 +276,10 @@ type WebsiteSDKBase<Static extends WebsiteSDKSharedStatic, Live> = {
|
|
|
248
276
|
readonly live: Live;
|
|
249
277
|
readonly dispose: () => Promise<void>;
|
|
250
278
|
};
|
|
251
|
-
type WebsiteSDKV9 = WebsiteSDKBase<
|
|
279
|
+
type WebsiteSDKV9 = WebsiteSDKBase<WebsiteSDKV9Static, WebsiteSDKV9Live> & {
|
|
252
280
|
readonly backend: "v9";
|
|
253
281
|
};
|
|
254
|
-
type WebsiteSDKV9AllRentalsAtOnce = WebsiteSDKBase<
|
|
282
|
+
type WebsiteSDKV9AllRentalsAtOnce = WebsiteSDKBase<WebsiteSDKV9Static, WebsiteSDKV9AllRentalsAtOnceLive> & {
|
|
255
283
|
readonly backend: "v9";
|
|
256
284
|
};
|
|
257
285
|
type WebsiteSDKV10 = WebsiteSDKBase<WebsiteSDKV10Static, WebsiteSDKV10Live> & {
|
|
@@ -2992,6 +3020,23 @@ interface paths {
|
|
|
2992
3020
|
patch?: never;
|
|
2993
3021
|
trace?: never;
|
|
2994
3022
|
};
|
|
3023
|
+
"/Videos": {
|
|
3024
|
+
parameters: {
|
|
3025
|
+
query?: never;
|
|
3026
|
+
header?: never;
|
|
3027
|
+
path?: never;
|
|
3028
|
+
cookie?: never;
|
|
3029
|
+
};
|
|
3030
|
+
/** List videos */
|
|
3031
|
+
get: operations["getVideos"];
|
|
3032
|
+
put?: never;
|
|
3033
|
+
post?: never;
|
|
3034
|
+
delete?: never;
|
|
3035
|
+
options?: never;
|
|
3036
|
+
head?: never;
|
|
3037
|
+
patch?: never;
|
|
3038
|
+
trace?: never;
|
|
3039
|
+
};
|
|
2995
3040
|
"/Tiles": {
|
|
2996
3041
|
parameters: {
|
|
2997
3042
|
query?: never;
|
|
@@ -3514,6 +3559,21 @@ interface components {
|
|
|
3514
3559
|
thumbnail: string | null;
|
|
3515
3560
|
};
|
|
3516
3561
|
};
|
|
3562
|
+
VideoListResponse: {
|
|
3563
|
+
data: {
|
|
3564
|
+
id: number;
|
|
3565
|
+
name: string;
|
|
3566
|
+
type: string;
|
|
3567
|
+
/** Format: uri */
|
|
3568
|
+
url: string;
|
|
3569
|
+
/** Format: uri */
|
|
3570
|
+
thumbnail: string | null;
|
|
3571
|
+
duration: number;
|
|
3572
|
+
units: {
|
|
3573
|
+
voffice_id: number;
|
|
3574
|
+
}[];
|
|
3575
|
+
}[];
|
|
3576
|
+
};
|
|
3517
3577
|
/** @enum {string} */
|
|
3518
3578
|
TileTag: "guest_portal_home" | "guest_portal_property" | "guest_portal_brands" | "owner_portal_home" | "owner_portal_property" | "owner_portal_brands";
|
|
3519
3579
|
TileCollectionResponse: {
|
|
@@ -4238,6 +4298,30 @@ interface operations {
|
|
|
4238
4298
|
404: components["responses"]["NotFound"];
|
|
4239
4299
|
};
|
|
4240
4300
|
};
|
|
4301
|
+
getVideos: {
|
|
4302
|
+
parameters: {
|
|
4303
|
+
query?: {
|
|
4304
|
+
/** @description Optional placement filter, for example `frontpage`, `object` or a free slug. */
|
|
4305
|
+
type?: string;
|
|
4306
|
+
};
|
|
4307
|
+
header?: never;
|
|
4308
|
+
path?: never;
|
|
4309
|
+
cookie?: never;
|
|
4310
|
+
};
|
|
4311
|
+
requestBody?: never;
|
|
4312
|
+
responses: {
|
|
4313
|
+
/** @description Videos */
|
|
4314
|
+
200: {
|
|
4315
|
+
headers: {
|
|
4316
|
+
[name: string]: unknown;
|
|
4317
|
+
};
|
|
4318
|
+
content: {
|
|
4319
|
+
"application/json": components["schemas"]["VideoListResponse"];
|
|
4320
|
+
};
|
|
4321
|
+
};
|
|
4322
|
+
401: components["responses"]["Unauthorized"];
|
|
4323
|
+
};
|
|
4324
|
+
};
|
|
4241
4325
|
listTiles: {
|
|
4242
4326
|
parameters: {
|
|
4243
4327
|
query: {
|
|
@@ -5954,6 +6038,20 @@ export declare const UnitServicePriceSchema: Schema.Struct<{
|
|
|
5954
6038
|
readonly type: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
5955
6039
|
}>;
|
|
5956
6040
|
export type UnitServicePrice = typeof UnitServicePriceSchema.Type;
|
|
6041
|
+
export declare const VideoListResponseSchema: Schema.Struct<{
|
|
6042
|
+
readonly data: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
6043
|
+
readonly duration: Schema.Number;
|
|
6044
|
+
readonly id: Schema.Number;
|
|
6045
|
+
readonly name: Schema.String;
|
|
6046
|
+
readonly thumbnail: Schema.NullOr<Schema.String>;
|
|
6047
|
+
readonly type: Schema.String;
|
|
6048
|
+
readonly units: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
6049
|
+
readonly voffice_id: Schema.Number;
|
|
6050
|
+
}>>>;
|
|
6051
|
+
readonly url: Schema.String;
|
|
6052
|
+
}>>>;
|
|
6053
|
+
}>;
|
|
6054
|
+
export type VideoListResponse = typeof VideoListResponseSchema.Type;
|
|
5957
6055
|
export declare const VideoResponseSchema: Schema.Struct<{
|
|
5958
6056
|
readonly data: Schema.Struct<{
|
|
5959
6057
|
readonly thumbnail: Schema.NullOr<Schema.String>;
|
|
@@ -6537,6 +6635,27 @@ export declare const V1_OPERATIONS: {
|
|
|
6537
6635
|
}>;
|
|
6538
6636
|
}>>;
|
|
6539
6637
|
};
|
|
6638
|
+
readonly getVideos: {
|
|
6639
|
+
readonly method: "GET";
|
|
6640
|
+
readonly path: "/Videos";
|
|
6641
|
+
readonly pathParameters: readonly [];
|
|
6642
|
+
readonly queryParameters: readonly ["type"];
|
|
6643
|
+
readonly responseStatus: "200";
|
|
6644
|
+
readonly responseContentType: "application/json";
|
|
6645
|
+
readonly responseSchema: Schema.suspend<Schema.Struct<{
|
|
6646
|
+
readonly data: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
6647
|
+
readonly duration: Schema.Number;
|
|
6648
|
+
readonly id: Schema.Number;
|
|
6649
|
+
readonly name: Schema.String;
|
|
6650
|
+
readonly thumbnail: Schema.NullOr<Schema.String>;
|
|
6651
|
+
readonly type: Schema.String;
|
|
6652
|
+
readonly units: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
6653
|
+
readonly voffice_id: Schema.Number;
|
|
6654
|
+
}>>>;
|
|
6655
|
+
readonly url: Schema.String;
|
|
6656
|
+
}>>>;
|
|
6657
|
+
}>>;
|
|
6658
|
+
};
|
|
6540
6659
|
readonly listFacilities: {
|
|
6541
6660
|
readonly method: "GET";
|
|
6542
6661
|
readonly path: "/Facilities";
|
|
@@ -7667,4 +7786,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
|
|
|
7667
7786
|
export type RentalSearchInput = SearchSearchInput$1;
|
|
7668
7787
|
export type RentalSearchOutput = SearchSearchOutput$1;
|
|
7669
7788
|
//#endregion
|
|
7670
|
-
export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, type SearchAllRentalsAtOnceInput, type SearchMapSearchInput, SearchMapSearchInputSchema, type SearchMapSearchOutput, type SearchMapSearchOutputItem, SearchMapSearchOutputSchema, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9EndDateOption, type V9InitialAvailabilityOutput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9RentalsGetRentalsByIdsInput, type V9ReviewCriterion, type V9ReviewCriterionDataAttribute, type V9ReviewsOptions, type V9SearchAllRentalsAtOnceInput, type V9SearchPagesInput, type V9SearchSearchInput, type V9SearchSearchOutput, type V9SearchSearchOutputItem, type V9SearchSearchSort, type V9StartDateSelectedAvailabilityOutput, type V9VoucherValidateInput, type V9VoucherValidateOutput, type V9VoucherValidityReason, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKAllRentalsAtOnce, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10AllRentalsAtOnce, type WebsiteSDKV10AllRentalsAtOnceLive, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9AllRentalsAtOnce, type WebsiteSDKV9AllRentalsAtOnceLive, type WebsiteSDKV9Live, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
|
|
7789
|
+
export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, type SearchAllRentalsAtOnceInput, type SearchMapSearchInput, SearchMapSearchInputSchema, type SearchMapSearchOutput, type SearchMapSearchOutputItem, SearchMapSearchOutputSchema, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9EndDateOption, type V9InitialAvailabilityOutput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9RentalsGetRentalsByIdsInput, type V9ReviewCriterion, type V9ReviewCriterionDataAttribute, type V9ReviewsOptions, type V9SearchAllRentalsAtOnceInput, type V9SearchPagesInput, type V9SearchSearchInput, type V9SearchSearchOutput, type V9SearchSearchOutputItem, type V9SearchSearchSort, type V9StartDateSelectedAvailabilityOutput, type V9Video, type V9VideosGetVideosInput, type V9VoucherValidateInput, type V9VoucherValidateOutput, type V9VoucherValidityReason, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKAllRentalsAtOnce, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10AllRentalsAtOnce, type WebsiteSDKV10AllRentalsAtOnceLive, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9AllRentalsAtOnce, type WebsiteSDKV9AllRentalsAtOnceLive, type WebsiteSDKV9Live, type WebsiteSDKV9Static, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as QuoteSchema, A as DocumentResourceSchema, At as
|
|
1
|
+
import { $ as QuoteSchema, A as DocumentResourceSchema, At as bookInsuranceEffect, B as ErgoPersonSchema, Bt as quoteEffect, C as ApiEnvelopeBaseSchema, Ct as V1_BASE_URL, D as CustomerUnitSummarySchema, Dt as decodeV1OperationResponse, E as CurrentMemberResponseSchema, Et as VideoResponseSchema, F as ErgoAddressSchema, Ft as getInitialAvailabilityEffect, G as FacilityListResponseSchema, Gt as selectInsurancePaymentEffect, H as ErgoPolicyNumberRequestSchema, Ht as searchEffect, I as ErgoBankSchema, It as getRentalsEffect, J as PaymentScheduleItemSchema, Jt as submitPaymentOptionEffect, K as OnOfficeUnitCollectionResponseSchema, Kt as submitContactEffect, L as ErgoBookRequestSchema, Lt as getStartDateSelectedAvailabilityEffect, M as DocumentStatusUpdateRequestSchema, Mt as createInsurancePreContractEffect, N as DocumentSummarySchema, Nt as getBankTransferDetailsEffect, O as DocumentCollectionResponseSchema, Ot as addAdditionalServiceEffect, P as DocumentTypeSchema, Pt as getFiltersEffect, Q as QuotePricesResponseSchema, R as ErgoCommonFieldsSchema, Rt as getTermsAndPrivacyPolicyEffect, S as makeV1OpenApiClientLive, St as UnitServicePriceSchema, T as CalendarResponseSchema, Tt as VideoListResponseSchema, U as ErgoReadPreContractRequestSchema, Ut as selectCancellationPolicyEffect, V as ErgoPlanSearchRequestSchema, Vt as removeAdditionalServiceEffect, W as ErgoTripAndCustomerRequestSchema, Wt as selectInsuranceEffect, X as QuoteLineSchema, Xt as defineV9PropertyHighlightSources, Y as PaymentScheduleSchema, Yt as defineWebsiteSDKOptions, Z as QuotePricesPayloadSchema, Zt as defineV9PropertyHighlightSourcesFromUnknown, _t as UnitIdsResponseSchema, at as SearchPropertiesResponseSchema, b as V1OpenApiClientError, bt as UnitOfferSchema, ct as ServiceLimitSchema, dt as SetupResponseSchema, et as QuoteServiceSchema, ft as TileCollectionResponseSchema, g as makeV0OpenApiClientLive, gt as TravelInsuranceBookingStoreRequestSchema, h as makeV0OpenApiClientFetchLive, ht as TravelInsuranceBookingSchema, it as RoomImageSchema, j as DocumentStatusSchema, jt as clearAdditionalServicesEffect, k as DocumentResourceResponseSchema, kt as bookEffect, lt as ServiceListResponseSchema, m as V0OpenApiClientError, mt as TileTagSchema, nt as RawVofficeObjectSchema, ot as ServiceBeonDataSchema, p as V0OpenApiClient, pt as TileSchema, q as OnOfficeUnitSchema, qt as submitPaymentOption, rt as RegionListResponseSchema, st as ServiceImageSchema, t as createWebsiteSDK, tt as RawObjectResponseSchema, ut as SetupDataSchema, vt as UnitListItemSchema, w as CalendarDaySchema, wt as V1_OPERATIONS, x as makeV1OpenApiClientFetchLive, xt as UnitResponseSchema, y as V1OpenApiClient, yt as UnitListResponseSchema, z as ErgoCreatePreContractRequestSchema, zt as mapSearchEffect } from "./client-C1McSXf1.mjs";
|
|
2
2
|
import { AdditionalServiceLimitExceeded, CoreSDKError, CoreSDKError as CMSError, CustomAttributeCatalogSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchMapSearchInputSchema, SearchMapSearchOutputSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, UnknownAdditionalService, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
|
|
3
3
|
//#region codegen/v9/heuristic-generation/public-api.ts
|
|
4
4
|
const customDataAttribute = (name) => name;
|
|
@@ -13,4 +13,4 @@ const defineVofficeOfferDataAttributes = defineDataAttributes();
|
|
|
13
13
|
const defineVofficeRatingDataAttributes = defineDataAttributes();
|
|
14
14
|
const defineVofficeTotalRatingDataAttributes = defineDataAttributes();
|
|
15
15
|
//#endregion
|
|
16
|
-
export { AdditionalServiceLimitExceeded, ApiEnvelopeBaseSchema, CMSError, CalendarDaySchema, CalendarResponseSchema, CoreSDKError, CurrentMemberResponseSchema, CustomAttributeCatalogSchema, CustomerUnitSummarySchema, DocumentCollectionResponseSchema, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatusSchema, DocumentStatusUpdateRequestSchema, DocumentSummarySchema, DocumentTypeSchema, ErgoAddressSchema, ErgoBankSchema, ErgoBookRequestSchema, ErgoCommonFieldsSchema, ErgoCreatePreContractRequestSchema, ErgoPersonSchema, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequestSchema, FacilityListResponseSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, PaymentScheduleItemSchema, PaymentScheduleSchema, QuoteLineSchema, QuotePricesPayloadSchema, QuotePricesResponseSchema, QuoteSchema, QuoteServiceSchema, RawObjectResponseSchema, RawVofficeObjectSchema, RegionListResponseSchema, RoomImageSchema, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchMapSearchInputSchema, SearchMapSearchOutputSchema, SearchPropertiesResponseSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, ServiceBeonDataSchema, ServiceImageSchema, ServiceLimitSchema, ServiceListResponseSchema, SetupDataSchema, SetupResponseSchema, TileCollectionResponseSchema, TileSchema, TileTagSchema, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponseSchema, UnitListItemSchema, UnitListResponseSchema, UnitOfferSchema, UnitResponseSchema, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, V1OpenApiClient, V1OpenApiClientError, V1_BASE_URL, V1_OPERATIONS, VideoResponseSchema, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineV9PropertyHighlightSources, defineV9PropertyHighlightSourcesFromUnknown, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getBankTransferDetailsEffect, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, mapSearchEffect, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
|
|
16
|
+
export { AdditionalServiceLimitExceeded, ApiEnvelopeBaseSchema, CMSError, CalendarDaySchema, CalendarResponseSchema, CoreSDKError, CurrentMemberResponseSchema, CustomAttributeCatalogSchema, CustomerUnitSummarySchema, DocumentCollectionResponseSchema, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatusSchema, DocumentStatusUpdateRequestSchema, DocumentSummarySchema, DocumentTypeSchema, ErgoAddressSchema, ErgoBankSchema, ErgoBookRequestSchema, ErgoCommonFieldsSchema, ErgoCreatePreContractRequestSchema, ErgoPersonSchema, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequestSchema, FacilityListResponseSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, PaymentScheduleItemSchema, PaymentScheduleSchema, QuoteLineSchema, QuotePricesPayloadSchema, QuotePricesResponseSchema, QuoteSchema, QuoteServiceSchema, RawObjectResponseSchema, RawVofficeObjectSchema, RegionListResponseSchema, RoomImageSchema, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchMapSearchInputSchema, SearchMapSearchOutputSchema, SearchPropertiesResponseSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, ServiceBeonDataSchema, ServiceImageSchema, ServiceLimitSchema, ServiceListResponseSchema, SetupDataSchema, SetupResponseSchema, TileCollectionResponseSchema, TileSchema, TileTagSchema, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponseSchema, UnitListItemSchema, UnitListResponseSchema, UnitOfferSchema, UnitResponseSchema, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, V1OpenApiClient, V1OpenApiClientError, V1_BASE_URL, V1_OPERATIONS, VideoListResponseSchema, VideoResponseSchema, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineV9PropertyHighlightSources, defineV9PropertyHighlightSourcesFromUnknown, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getBankTransferDetailsEffect, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, mapSearchEffect, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
|
|
6
6
|
|
|
7
|
+
- `versions/2.34.0/CHANGELOG.md`: release notes for 2.34.0
|
|
8
|
+
- `versions/2.33.0/CHANGELOG.md`: release notes for 2.33.0
|
|
7
9
|
- `versions/2.32.0/CHANGELOG.md`: release notes for 2.32.0
|
|
8
10
|
- `versions/2.31.1/CHANGELOG.md`: release notes for 2.31.1
|
|
9
11
|
- `versions/2.31.0/CHANGELOG.md`: release notes for 2.31.0
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
|
|
6
6
|
|
|
7
|
+
- `versions/2.34.0/MIGRATION.md`: Migration: 2.33.0 to 2.34.0
|
|
8
|
+
- `versions/2.33.0/MIGRATION.md`: Migration: 2.32.0 to 2.33.0
|
|
7
9
|
- `versions/2.32.0/MIGRATION.md`: Migration: 2.31.1 to 2.32.0
|
|
8
10
|
- `versions/2.31.1/MIGRATION.md`: Migration: 2.31.0 to 2.31.1
|
|
9
11
|
- `versions/2.31.0/MIGRATION.md`: Migration: 2.30.2 to 2.31.0
|
|
@@ -9,6 +9,7 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
9
9
|
- `creation.md`: SDK construction, config, options, and CLI config files.
|
|
10
10
|
- `rentals.md`: `sdk.static.rentals.getRentals` and, on v9, `sdk.live.rentals.getRentalsByIds`.
|
|
11
11
|
- `filter.md`: `sdk.static.filter.getFilters`.
|
|
12
|
+
- `videos.md`: v9 only. `sdk.static.videos.getVideos`, placements, and HLS playback.
|
|
12
13
|
- `custom-attributes.md`: custom attribute catalog, configuration, per-backend behaviour, and the v9-to-v10 move.
|
|
13
14
|
- `search.md`: `sdk.live.search.search`, vouchers, and, on v9, `sdk.live.search.searchPages`, Hub filters, and `sdk.live.voucher.validate`.
|
|
14
15
|
- `availability.md`: date-picker availability flows.
|
|
@@ -195,7 +195,7 @@ Use flat `WebsiteSDKConfig` files.
|
|
|
195
195
|
}
|
|
196
196
|
```
|
|
197
197
|
|
|
198
|
-
Availability uses localized tooltips from the translation service. `v10` availability queries
|
|
198
|
+
Availability uses localized tooltips from the translation service. By default, `v10` availability queries start at most once a second, with at most five running or waiting at once; `rateBudget` changes both (see `creation.md`). They are cached per rental for 30 seconds.
|
|
199
199
|
|
|
200
200
|
## CLI Usage
|
|
201
201
|
|
|
@@ -221,7 +221,7 @@ A successful return means the provider sent the browser back, not that the payme
|
|
|
221
221
|
|
|
222
222
|
## Configuration
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
By default, booking requests start at most once a second, with at most five running or waiting at once; `rateBudget` changes both (see `creation.md`). `v9` books through the v0 `book` action and initializes Stripe only for currently payable choices when the property has Stripe enabled. `v10` books through GraphQL, preserves all remaining payment steps for display, and initializes Adyen for the next payable online step and the full-outstanding alternative.
|
|
225
225
|
|
|
226
226
|
## CLI Usage
|
|
227
227
|
|
|
@@ -86,7 +86,7 @@ Contact input is validated before submitting to either backend. Validation failu
|
|
|
86
86
|
|
|
87
87
|
## Configuration
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
By default, contact requests start at most once a second, with at most five running or waiting at once; `rateBudget` changes both (see `creation.md`).
|
|
90
90
|
|
|
91
91
|
## CLI Usage
|
|
92
92
|
|