@v-office/website-sdk 2.31.1 → 2.33.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/dist/cli.mjs +12 -2
- package/dist/{client-RLKoee2Y.mjs → client-BSyJzzk0.mjs} +58 -4
- package/dist/index.d.mts +114 -3
- 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/rentals.md +12 -9
- package/dist/instructions/versions/2.32.0/CHANGELOG.md +27 -0
- package/dist/instructions/versions/2.32.0/MIGRATION.md +48 -0
- 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/videos.md +168 -0
- package/dist/{rentals-DEJNTkpJ.mjs → rentals-Be1Zs2DQ.mjs} +2 -2
- package/dist/{search-yXF_xFrg.mjs → search-Dv5e8hNc.mjs} +2 -2
- package/dist/{to-rental-highlights-CIz0CxcP.mjs → to-rental-highlights-Dbnm6Y4_.mjs} +98 -22
- package/instructions/CHANGELOG.md +2 -0
- package/instructions/MIGRATION.md +2 -0
- package/instructions/README.md +1 -0
- package/instructions/rentals.md +12 -9
- package/instructions/versions/2.32.0/CHANGELOG.md +27 -0
- package/instructions/versions/2.32.0/MIGRATION.md +48 -0
- package/instructions/versions/2.32.0/release.json +3 -0
- 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/videos.md +168 -0
- package/package.json +3 -2
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-BSyJzzk0.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.33.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\".")),
|
|
@@ -1143,6 +1143,15 @@ const UnitServicePriceSchema = Schema.Struct({
|
|
|
1143
1143
|
till_date: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
1144
1144
|
type: Schema.optionalKey(Schema.NullOr(Schema.String))
|
|
1145
1145
|
});
|
|
1146
|
+
const VideoListResponseSchema = Schema.Struct({ data: Schema.mutable(Schema.Array(Schema.Struct({
|
|
1147
|
+
duration: Schema.Number,
|
|
1148
|
+
id: Schema.Number,
|
|
1149
|
+
name: Schema.String,
|
|
1150
|
+
thumbnail: Schema.NullOr(Schema.String),
|
|
1151
|
+
type: Schema.String,
|
|
1152
|
+
units: Schema.mutable(Schema.Array(Schema.Struct({ voffice_id: Schema.Number }))),
|
|
1153
|
+
url: Schema.String
|
|
1154
|
+
}))) });
|
|
1146
1155
|
const VideoResponseSchema = Schema.Struct({ data: Schema.Struct({
|
|
1147
1156
|
thumbnail: Schema.NullOr(Schema.String),
|
|
1148
1157
|
url: Schema.String
|
|
@@ -1321,6 +1330,15 @@ const V1_OPERATIONS = {
|
|
|
1321
1330
|
responseContentType: "application/json",
|
|
1322
1331
|
responseSchema: Schema.suspend(() => VideoResponseSchema)
|
|
1323
1332
|
},
|
|
1333
|
+
getVideos: {
|
|
1334
|
+
method: "GET",
|
|
1335
|
+
path: "/Videos",
|
|
1336
|
+
pathParameters: [],
|
|
1337
|
+
queryParameters: ["type"],
|
|
1338
|
+
responseStatus: "200",
|
|
1339
|
+
responseContentType: "application/json",
|
|
1340
|
+
responseSchema: Schema.suspend(() => VideoListResponseSchema)
|
|
1341
|
+
},
|
|
1324
1342
|
listFacilities: {
|
|
1325
1343
|
method: "GET",
|
|
1326
1344
|
path: "/Facilities",
|
|
@@ -6071,7 +6089,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
6071
6089
|
return page;
|
|
6072
6090
|
});
|
|
6073
6091
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
6074
|
-
try: () => import("./search-
|
|
6092
|
+
try: () => import("./search-Dv5e8hNc.mjs"),
|
|
6075
6093
|
catch: (cause) => new CoreSDKError({
|
|
6076
6094
|
source: "v9",
|
|
6077
6095
|
operation: "v9.search.runtime",
|
|
@@ -6820,7 +6838,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
|
|
|
6820
6838
|
});
|
|
6821
6839
|
};
|
|
6822
6840
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
6823
|
-
try: () => import("./rentals-
|
|
6841
|
+
try: () => import("./rentals-Be1Zs2DQ.mjs"),
|
|
6824
6842
|
catch: (cause) => new CoreSDKError({
|
|
6825
6843
|
source: "v9",
|
|
6826
6844
|
operation: "v9.rentals.runtime",
|
|
@@ -6981,6 +6999,40 @@ const makeV9RentalsApi = ({ config, options }) => {
|
|
|
6981
6999
|
};
|
|
6982
7000
|
};
|
|
6983
7001
|
//#endregion
|
|
7002
|
+
//#region src/legacy-v9/parser/videos/to-videos.ts
|
|
7003
|
+
const toVideos = (items) => items.toSorted((a, b) => a.id - b.id).map((item) => ({
|
|
7004
|
+
id: String(item.id),
|
|
7005
|
+
placement: item.type,
|
|
7006
|
+
rentalIds: item.units.map((unit) => String(unit.voffice_id)),
|
|
7007
|
+
hlsUrl: item.url,
|
|
7008
|
+
posterUrl: item.thumbnail,
|
|
7009
|
+
durationSeconds: item.duration,
|
|
7010
|
+
fileName: item.name
|
|
7011
|
+
}));
|
|
7012
|
+
const filterVideos = ({ videos, input = {} }) => videos.filter((video) => (input.placement === void 0 || video.placement === input.placement) && (input.rentalId === void 0 || video.rentalIds.includes(input.rentalId)));
|
|
7013
|
+
//#endregion
|
|
7014
|
+
//#region src/legacy-v9/static/videos.ts
|
|
7015
|
+
const makeV9VideosApi = ({ config }) => {
|
|
7016
|
+
const openApiClientLive = makeV1OpenApiClientFetchLive({
|
|
7017
|
+
apiKey: config.apiKey,
|
|
7018
|
+
...config.v1ApiBaseUrl === void 0 ? {} : { baseUrl: config.v1ApiBaseUrl }
|
|
7019
|
+
});
|
|
7020
|
+
const loadVideos = Effect.gen(function* () {
|
|
7021
|
+
const result = yield* (yield* V1OpenApiClient).execute("getVideos", {});
|
|
7022
|
+
return toVideos(result.data.data);
|
|
7023
|
+
}).pipe(Effect.provide(openApiClientLive), Effect.mapError((cause) => new CoreSDKError({
|
|
7024
|
+
source: "v9",
|
|
7025
|
+
operation: "v9.videos.getVideos",
|
|
7026
|
+
message: "Failed to load v9 videos from the v1 OpenAPI client.",
|
|
7027
|
+
cause
|
|
7028
|
+
})));
|
|
7029
|
+
const [loadVideosOnce, invalidateVideos] = Effect.runSync(Effect.cachedInvalidateWithTTL(loadVideos, Duration.infinity));
|
|
7030
|
+
return { getVideos: (input) => Effect.runPromise(loadVideosOnce.pipe(Effect.tapError(() => invalidateVideos), Effect.map((videos) => filterVideos({
|
|
7031
|
+
videos,
|
|
7032
|
+
input
|
|
7033
|
+
})))) };
|
|
7034
|
+
};
|
|
7035
|
+
//#endregion
|
|
6984
7036
|
//#region src/client.ts
|
|
6985
7037
|
function createWebsiteSDK({ config, options }) {
|
|
6986
7038
|
const normalizedOptions = normalizeWebsiteSDKOptions(options);
|
|
@@ -7017,13 +7069,15 @@ function createWebsiteSDK({ config, options }) {
|
|
|
7017
7069
|
config,
|
|
7018
7070
|
options: v9Options
|
|
7019
7071
|
});
|
|
7072
|
+
const videos = makeV9VideosApi({ config });
|
|
7020
7073
|
recordConstructedBackend("v9");
|
|
7021
7074
|
recordConstructedSdk(config, options);
|
|
7022
7075
|
return {
|
|
7023
7076
|
backend: "v9",
|
|
7024
7077
|
static: {
|
|
7025
7078
|
rentals: { getRentals: rentals.getRentals },
|
|
7026
|
-
filter: { getFilters: filter.getFilters }
|
|
7079
|
+
filter: { getFilters: filter.getFilters },
|
|
7080
|
+
videos: { getVideos: videos.getVideos }
|
|
7027
7081
|
},
|
|
7028
7082
|
live: {
|
|
7029
7083
|
contact: { submit: contact.submit },
|
|
@@ -7102,4 +7156,4 @@ function createWebsiteSDK({ config, options }) {
|
|
|
7102
7156
|
return sdk;
|
|
7103
7157
|
}
|
|
7104
7158
|
//#endregion
|
|
7105
|
-
export { QuoteSchema as $,
|
|
7159
|
+
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
|
@@ -135,6 +135,21 @@ type V9SearchSearchOutput = Omit<SearchSearchOutput$1, "items"> & {
|
|
|
135
135
|
readonly items: readonly V9SearchSearchOutputItem[];
|
|
136
136
|
};
|
|
137
137
|
//#endregion
|
|
138
|
+
//#region src/legacy-v9/videos.d.ts
|
|
139
|
+
type V9Video = {
|
|
140
|
+
readonly id: string;
|
|
141
|
+
readonly placement: string;
|
|
142
|
+
readonly rentalIds: ReadonlyArray<string>;
|
|
143
|
+
readonly hlsUrl: string;
|
|
144
|
+
readonly posterUrl: string | null;
|
|
145
|
+
readonly durationSeconds: number;
|
|
146
|
+
readonly fileName: string;
|
|
147
|
+
};
|
|
148
|
+
type V9VideosGetVideosInput = {
|
|
149
|
+
readonly placement?: string;
|
|
150
|
+
readonly rentalId?: string;
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
138
153
|
//#region src/legacy-v9/voucher-input.d.ts
|
|
139
154
|
type V9VoucherValidityReason = "valid" | "not_yet_valid" | "expired" | "unknown" | "stay_too_short" | "outside_booking_window" | "rate_limited";
|
|
140
155
|
type V9VoucherValidateInput = {
|
|
@@ -172,6 +187,11 @@ type WebsiteSDKV10Static = WebsiteSDKSharedStatic & {
|
|
|
172
187
|
readonly getBankTransferDetails: () => Promise<ReadonlyArray<BookingBankTransferDetails$1>>;
|
|
173
188
|
};
|
|
174
189
|
};
|
|
190
|
+
type WebsiteSDKV9Static = WebsiteSDKSharedStatic & {
|
|
191
|
+
readonly videos: {
|
|
192
|
+
readonly getVideos: (input?: V9VideosGetVideosInput) => Promise<ReadonlyArray<V9Video>>;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
175
195
|
type WebsiteSDKSharedLive = {
|
|
176
196
|
readonly contact: {
|
|
177
197
|
readonly submit: (input: ContactSubmitInput$1) => Promise<ContactSubmitOutput$1>;
|
|
@@ -248,10 +268,10 @@ type WebsiteSDKBase<Static extends WebsiteSDKSharedStatic, Live> = {
|
|
|
248
268
|
readonly live: Live;
|
|
249
269
|
readonly dispose: () => Promise<void>;
|
|
250
270
|
};
|
|
251
|
-
type WebsiteSDKV9 = WebsiteSDKBase<
|
|
271
|
+
type WebsiteSDKV9 = WebsiteSDKBase<WebsiteSDKV9Static, WebsiteSDKV9Live> & {
|
|
252
272
|
readonly backend: "v9";
|
|
253
273
|
};
|
|
254
|
-
type WebsiteSDKV9AllRentalsAtOnce = WebsiteSDKBase<
|
|
274
|
+
type WebsiteSDKV9AllRentalsAtOnce = WebsiteSDKBase<WebsiteSDKV9Static, WebsiteSDKV9AllRentalsAtOnceLive> & {
|
|
255
275
|
readonly backend: "v9";
|
|
256
276
|
};
|
|
257
277
|
type WebsiteSDKV10 = WebsiteSDKBase<WebsiteSDKV10Static, WebsiteSDKV10Live> & {
|
|
@@ -2992,6 +3012,23 @@ interface paths {
|
|
|
2992
3012
|
patch?: never;
|
|
2993
3013
|
trace?: never;
|
|
2994
3014
|
};
|
|
3015
|
+
"/Videos": {
|
|
3016
|
+
parameters: {
|
|
3017
|
+
query?: never;
|
|
3018
|
+
header?: never;
|
|
3019
|
+
path?: never;
|
|
3020
|
+
cookie?: never;
|
|
3021
|
+
};
|
|
3022
|
+
/** List videos */
|
|
3023
|
+
get: operations["getVideos"];
|
|
3024
|
+
put?: never;
|
|
3025
|
+
post?: never;
|
|
3026
|
+
delete?: never;
|
|
3027
|
+
options?: never;
|
|
3028
|
+
head?: never;
|
|
3029
|
+
patch?: never;
|
|
3030
|
+
trace?: never;
|
|
3031
|
+
};
|
|
2995
3032
|
"/Tiles": {
|
|
2996
3033
|
parameters: {
|
|
2997
3034
|
query?: never;
|
|
@@ -3514,6 +3551,21 @@ interface components {
|
|
|
3514
3551
|
thumbnail: string | null;
|
|
3515
3552
|
};
|
|
3516
3553
|
};
|
|
3554
|
+
VideoListResponse: {
|
|
3555
|
+
data: {
|
|
3556
|
+
id: number;
|
|
3557
|
+
name: string;
|
|
3558
|
+
type: string;
|
|
3559
|
+
/** Format: uri */
|
|
3560
|
+
url: string;
|
|
3561
|
+
/** Format: uri */
|
|
3562
|
+
thumbnail: string | null;
|
|
3563
|
+
duration: number;
|
|
3564
|
+
units: {
|
|
3565
|
+
voffice_id: number;
|
|
3566
|
+
}[];
|
|
3567
|
+
}[];
|
|
3568
|
+
};
|
|
3517
3569
|
/** @enum {string} */
|
|
3518
3570
|
TileTag: "guest_portal_home" | "guest_portal_property" | "guest_portal_brands" | "owner_portal_home" | "owner_portal_property" | "owner_portal_brands";
|
|
3519
3571
|
TileCollectionResponse: {
|
|
@@ -4238,6 +4290,30 @@ interface operations {
|
|
|
4238
4290
|
404: components["responses"]["NotFound"];
|
|
4239
4291
|
};
|
|
4240
4292
|
};
|
|
4293
|
+
getVideos: {
|
|
4294
|
+
parameters: {
|
|
4295
|
+
query?: {
|
|
4296
|
+
/** @description Optional placement filter, for example `frontpage`, `object` or a free slug. */
|
|
4297
|
+
type?: string;
|
|
4298
|
+
};
|
|
4299
|
+
header?: never;
|
|
4300
|
+
path?: never;
|
|
4301
|
+
cookie?: never;
|
|
4302
|
+
};
|
|
4303
|
+
requestBody?: never;
|
|
4304
|
+
responses: {
|
|
4305
|
+
/** @description Videos */
|
|
4306
|
+
200: {
|
|
4307
|
+
headers: {
|
|
4308
|
+
[name: string]: unknown;
|
|
4309
|
+
};
|
|
4310
|
+
content: {
|
|
4311
|
+
"application/json": components["schemas"]["VideoListResponse"];
|
|
4312
|
+
};
|
|
4313
|
+
};
|
|
4314
|
+
401: components["responses"]["Unauthorized"];
|
|
4315
|
+
};
|
|
4316
|
+
};
|
|
4241
4317
|
listTiles: {
|
|
4242
4318
|
parameters: {
|
|
4243
4319
|
query: {
|
|
@@ -5954,6 +6030,20 @@ export declare const UnitServicePriceSchema: Schema.Struct<{
|
|
|
5954
6030
|
readonly type: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
5955
6031
|
}>;
|
|
5956
6032
|
export type UnitServicePrice = typeof UnitServicePriceSchema.Type;
|
|
6033
|
+
export declare const VideoListResponseSchema: Schema.Struct<{
|
|
6034
|
+
readonly data: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
6035
|
+
readonly duration: Schema.Number;
|
|
6036
|
+
readonly id: Schema.Number;
|
|
6037
|
+
readonly name: Schema.String;
|
|
6038
|
+
readonly thumbnail: Schema.NullOr<Schema.String>;
|
|
6039
|
+
readonly type: Schema.String;
|
|
6040
|
+
readonly units: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
6041
|
+
readonly voffice_id: Schema.Number;
|
|
6042
|
+
}>>>;
|
|
6043
|
+
readonly url: Schema.String;
|
|
6044
|
+
}>>>;
|
|
6045
|
+
}>;
|
|
6046
|
+
export type VideoListResponse = typeof VideoListResponseSchema.Type;
|
|
5957
6047
|
export declare const VideoResponseSchema: Schema.Struct<{
|
|
5958
6048
|
readonly data: Schema.Struct<{
|
|
5959
6049
|
readonly thumbnail: Schema.NullOr<Schema.String>;
|
|
@@ -6537,6 +6627,27 @@ export declare const V1_OPERATIONS: {
|
|
|
6537
6627
|
}>;
|
|
6538
6628
|
}>>;
|
|
6539
6629
|
};
|
|
6630
|
+
readonly getVideos: {
|
|
6631
|
+
readonly method: "GET";
|
|
6632
|
+
readonly path: "/Videos";
|
|
6633
|
+
readonly pathParameters: readonly [];
|
|
6634
|
+
readonly queryParameters: readonly ["type"];
|
|
6635
|
+
readonly responseStatus: "200";
|
|
6636
|
+
readonly responseContentType: "application/json";
|
|
6637
|
+
readonly responseSchema: Schema.suspend<Schema.Struct<{
|
|
6638
|
+
readonly data: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
6639
|
+
readonly duration: Schema.Number;
|
|
6640
|
+
readonly id: Schema.Number;
|
|
6641
|
+
readonly name: Schema.String;
|
|
6642
|
+
readonly thumbnail: Schema.NullOr<Schema.String>;
|
|
6643
|
+
readonly type: Schema.String;
|
|
6644
|
+
readonly units: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
6645
|
+
readonly voffice_id: Schema.Number;
|
|
6646
|
+
}>>>;
|
|
6647
|
+
readonly url: Schema.String;
|
|
6648
|
+
}>>>;
|
|
6649
|
+
}>>;
|
|
6650
|
+
};
|
|
6540
6651
|
readonly listFacilities: {
|
|
6541
6652
|
readonly method: "GET";
|
|
6542
6653
|
readonly path: "/Facilities";
|
|
@@ -7667,4 +7778,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
|
|
|
7667
7778
|
export type RentalSearchInput = SearchSearchInput$1;
|
|
7668
7779
|
export type RentalSearchOutput = SearchSearchOutput$1;
|
|
7669
7780
|
//#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 };
|
|
7781
|
+
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-BSyJzzk0.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.33.0/CHANGELOG.md`: release notes for 2.33.0
|
|
8
|
+
- `versions/2.32.0/CHANGELOG.md`: release notes for 2.32.0
|
|
7
9
|
- `versions/2.31.1/CHANGELOG.md`: release notes for 2.31.1
|
|
8
10
|
- `versions/2.31.0/CHANGELOG.md`: release notes for 2.31.0
|
|
9
11
|
- `versions/2.30.2/CHANGELOG.md`: release notes for 2.30.2
|
|
@@ -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.33.0/MIGRATION.md`: Migration: 2.32.0 to 2.33.0
|
|
8
|
+
- `versions/2.32.0/MIGRATION.md`: Migration: 2.31.1 to 2.32.0
|
|
7
9
|
- `versions/2.31.1/MIGRATION.md`: Migration: 2.31.0 to 2.31.1
|
|
8
10
|
- `versions/2.31.0/MIGRATION.md`: Migration: 2.30.2 to 2.31.0
|
|
9
11
|
- `versions/2.30.2/MIGRATION.md`: Migration: 2.30.1 to 2.30.2
|
|
@@ -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.
|
|
@@ -89,10 +89,10 @@ Sample item:
|
|
|
89
89
|
|
|
90
90
|
Optional fields include `scope`, `address`, `property`, `rooms`, `roomSummary`, `vicinity`, and `reviews`.
|
|
91
91
|
|
|
92
|
-
### Legacy v9
|
|
92
|
+
### Legacy v9 Images
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
`property.images`:
|
|
94
|
+
v9 rental `images` and facility `property.images` come from vOffice's image service
|
|
95
|
+
as WebP. Static rentals return facility images in `property.images`:
|
|
96
96
|
|
|
97
97
|
```json
|
|
98
98
|
{
|
|
@@ -102,8 +102,8 @@ From 2.15.0, v9 static rentals request facility image metadata and return it in
|
|
|
102
102
|
"images": [
|
|
103
103
|
{
|
|
104
104
|
"idOrPath": "28458352",
|
|
105
|
-
"src": "https://dyn.v-office.com/image/xl/28458352.
|
|
106
|
-
"srcset": "https://dyn.v-office.com/image/
|
|
105
|
+
"src": "https://dyn.v-office.com/image/xl/28458352.webp",
|
|
106
|
+
"srcset": "https://dyn.v-office.com/image/tnfx/28458352.webp 141w, https://dyn.v-office.com/image/tnxfx/28458352.webp 225w, https://dyn.v-office.com/image/sfx/28458352.webp 450w, https://dyn.v-office.com/image/mx/28458352.webp 600w, https://dyn.v-office.com/image/xl/28458352.webp 1440w, https://dyn.v-office.com/image/xxl/28458352.webp 2400w",
|
|
107
107
|
"alt": "Hauptansicht",
|
|
108
108
|
"title": "Hauptansicht",
|
|
109
109
|
"category": "buildingMain"
|
|
@@ -113,9 +113,12 @@ From 2.15.0, v9 static rentals request facility image metadata and return it in
|
|
|
113
113
|
}
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
Consumers must allow `https://dyn.v-office.com` as an image origin. The sizes up to
|
|
117
|
+
600w are cropped to 3:2; `xl` and `xxl` show the whole photo, so render photos in a
|
|
118
|
+
box with a fixed `aspect-ratio` and `object-fit: cover`. Floor plans are never
|
|
119
|
+
cropped. A width in `srcset` is the delivered width when the rental data knows the
|
|
120
|
+
photo's size. Room images uploaded in the be-on! Hub are not vOffice photos; they
|
|
121
|
+
come from the configured `imageProxyBaseUrl` as WebP, so keep that host allowed too.
|
|
119
122
|
|
|
120
123
|
The SDK supplies width-descriptor `srcset`; the UI remains responsible for an
|
|
121
124
|
HTML `sizes` attribute that matches its layout. `property.images` is omitted
|
|
@@ -123,7 +126,7 @@ when the facility has no usable image IDs. Because the service returns one item
|
|
|
123
126
|
per rental, rentals in the same facility contain the same nested property image
|
|
124
127
|
list.
|
|
125
128
|
|
|
126
|
-
See `versions/2.15.0
|
|
129
|
+
See `versions/2.15.0/` and `versions/2.32.0/` (`CHANGELOG.md`, `MIGRATION.md`).
|
|
127
130
|
|
|
128
131
|
### Legacy v9 Facility Details
|
|
129
132
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Changelog: 2.32.0
|
|
2
|
+
|
|
3
|
+
v9 rental photos now come from vOffice's own image service `dyn.v-office.com` as WebP
|
|
4
|
+
instead of the be-on! image proxy as JPEG. The files are smaller, and each photo is listed
|
|
5
|
+
once with its title.
|
|
6
|
+
|
|
7
|
+
## Changed
|
|
8
|
+
|
|
9
|
+
- v9 rental `images` and facility `property.images` use
|
|
10
|
+
`https://dyn.v-office.com/image/<size>/<image-id>.webp` for `src` and `srcset`.
|
|
11
|
+
- `srcset` lists vOffice's named sizes: `tnfx` (141w), `tnxfx` (225w), `sfx` (450w) and
|
|
12
|
+
`mx` (600w) are cropped to 3:2 around the center, as before. `xl` (up to 1440 px) and
|
|
13
|
+
`xxl` (up to 2400 px) show the whole photo: vOffice has no cropped size above 600 px.
|
|
14
|
+
Render photos in a box with `object-fit: cover` to keep the 3:2 look at every size.
|
|
15
|
+
- A width in `srcset` is the width vOffice really delivers when the rental data knows the
|
|
16
|
+
photo's size. A photo smaller than a size stops the list at its own width.
|
|
17
|
+
- Floor plans (`category: "floorplan"`) are never cropped: their small sizes are `tn`,
|
|
18
|
+
`tnx`, `s` and `m` instead of the cropped ones.
|
|
19
|
+
- `src` is the `xl` size.
|
|
20
|
+
- Room images uploaded in the be-on! Hub are not vOffice photos and stay on the image
|
|
21
|
+
proxy (`IMAGE_PROXY_BASE_URL`), now as WebP (`…@webp`).
|
|
22
|
+
|
|
23
|
+
## Fixed
|
|
24
|
+
|
|
25
|
+
- A v9 rental no longer lists each photo twice. vOffice's image data and the Hub's photo
|
|
26
|
+
list are matched by their image id, so photos now also carry their title as `alt` and
|
|
27
|
+
`title` and their `category`.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Migration: 2.31.1 to 2.32.0
|
|
2
|
+
|
|
3
|
+
Only v9 sites are affected. The shape of `images` does not change, only the URLs in `src`
|
|
4
|
+
and `srcset`. Every v9 site must allow the new image host (step 2), should check its photo
|
|
5
|
+
boxes (step 3) and must check its own code for the image proxy (step 4).
|
|
6
|
+
|
|
7
|
+
## 1. Upgrade
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @v-office/website-sdk@2.32.0
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 2. Allow `dyn.v-office.com` for photos
|
|
14
|
+
|
|
15
|
+
v9 photos load from `https://dyn.v-office.com`. Allow the host wherever the site lists
|
|
16
|
+
image hosts, for example a Content-Security-Policy:
|
|
17
|
+
|
|
18
|
+
```http
|
|
19
|
+
Content-Security-Policy: img-src 'self' https://dyn.v-office.com https://imgproxy.voffice.be-on.io
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
or Astro's `image.domains` / `image.remotePatterns`. A site that already shows facility
|
|
23
|
+
images from 2.15.0 on allows it.
|
|
24
|
+
|
|
25
|
+
## 3. Check the photo boxes
|
|
26
|
+
|
|
27
|
+
Up to 600 px every photo is cropped to 3:2. Above that the photo comes uncropped, so a
|
|
28
|
+
portrait or panorama photo has its own aspect ratio. Give each photo a box with a fixed
|
|
29
|
+
`aspect-ratio` and `object-fit: cover`, or the photo changes its shape between mobile and
|
|
30
|
+
desktop.
|
|
31
|
+
|
|
32
|
+
## 4. Switch the site's own image proxy code to the SDK
|
|
33
|
+
|
|
34
|
+
Rental and facility photos no longer come from the image proxy. Search the site for
|
|
35
|
+
`imgproxy`, `IMAGE_PROXY_BASE_URL`, `rs:fill` and `@webp` and check each hit:
|
|
36
|
+
|
|
37
|
+
- Code that loads any other image through the proxy stays as it is. Only rental and
|
|
38
|
+
facility photos moved to `dyn.v-office.com`.
|
|
39
|
+
- Code that builds proxy URLs for rental photos itself (for example from `idOrPath`)
|
|
40
|
+
must use the SDK's `src` and `srcset` instead.
|
|
41
|
+
- Code that turned proxy URLs into WebP (appending `@webp`) or replaced `.jpg` with
|
|
42
|
+
`.webp` on `dyn.v-office.com` URLs can be removed. The SDK delivers WebP.
|
|
43
|
+
- Code that rewrote the proxy's `rs:fill` segment to show a floor plan uncropped can be
|
|
44
|
+
removed. Floor plans come uncropped.
|
|
45
|
+
- A preconnect or preload for the proxy host is not needed for photos any more.
|
|
46
|
+
|
|
47
|
+
Keep `IMAGE_PROXY_BASE_URL` and keep the proxy host allowed: room images uploaded in the
|
|
48
|
+
be-on! Hub are not vOffice photos and still come from the proxy, as WebP.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Changelog: 2.33.0
|
|
2
|
+
|
|
3
|
+
v9 sites can now list the videos an agency uploaded in the be-on! agency portal and play
|
|
4
|
+
them, for example a home page video or a video on a rental page.
|
|
5
|
+
|
|
6
|
+
## Added
|
|
7
|
+
|
|
8
|
+
- `sdk.static.videos.getVideos` on v9 returns the agency's videos, ordered by upload. Each
|
|
9
|
+
video has an `id`, a `placement`, the `rentalIds` it belongs to, an HLS stream URL
|
|
10
|
+
`hlsUrl`, an optional `posterUrl`, `durationSeconds` and the upload's `fileName`.
|
|
11
|
+
- Optional filters `placement` (`frontpage`, `object` or a free slug) and `rentalId`. They
|
|
12
|
+
combine; without them every video is returned.
|
|
13
|
+
- The SDK loads the list once per instance. A failing call rejects, so a build that needs
|
|
14
|
+
videos fails and the previous build stays live.
|
|
15
|
+
- The types `V9Video`, `V9VideosGetVideosInput` and `WebsiteSDKV9Static` are exported.
|
|
16
|
+
- The CLI has a `videos` command for v9 with `--placement` and `--rental-id`.
|
|
17
|
+
- `videos.md` describes the data and shows how to play the HLS stream with `hls.js`.
|
|
18
|
+
|
|
19
|
+
## Changed
|
|
20
|
+
|
|
21
|
+
- Nothing for existing code. v10 is unchanged and has no videos.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Migration: 2.32.0 to 2.33.0
|
|
2
|
+
|
|
3
|
+
No changes required. Existing v9 and v10 code keeps working, and v10 is unchanged. Follow
|
|
4
|
+
steps 2 and 3 only to show videos on a v9 site.
|
|
5
|
+
|
|
6
|
+
## 1. Upgrade
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
pnpm add @v-office/website-sdk@2.33.0
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## 2. Load the videos (v9 only)
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
if (sdk.backend === "v9") {
|
|
16
|
+
const videos = await sdk.static.videos.getVideos({ placement: "object", rentalId: rental.id });
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
An empty list is normal. Do not show `fileName` to visitors. See `videos.md` for placements and
|
|
21
|
+
the data shape.
|
|
22
|
+
|
|
23
|
+
## 3. Play the stream
|
|
24
|
+
|
|
25
|
+
Add `hls.js` as an exactly pinned dependency and attach `hlsUrl` as described in `videos.md`.
|