@curless/hotel-storefront 0.81.0 → 0.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/addon-pages.d.ts +22 -0
- package/dist/account/addon-pages.d.ts.map +1 -0
- package/dist/account/addon-pages.js +282 -0
- package/dist/account/addon-pages.js.map +1 -0
- package/dist/account/index.d.ts +40 -0
- package/dist/account/index.d.ts.map +1 -1
- package/dist/account/index.js +444 -46
- package/dist/account/index.js.map +1 -1
- package/dist/account/ota-member.d.ts +15 -0
- package/dist/account/ota-member.d.ts.map +1 -1
- package/dist/account/ota-member.js +29 -5
- package/dist/account/ota-member.js.map +1 -1
- package/dist/account/pages.d.ts +28 -3
- package/dist/account/pages.d.ts.map +1 -1
- package/dist/account/pages.js +99 -35
- package/dist/account/pages.js.map +1 -1
- package/dist/account/requests.d.ts +11 -1
- package/dist/account/requests.d.ts.map +1 -1
- package/dist/account/requests.js +2 -1
- package/dist/account/requests.js.map +1 -1
- package/dist/backend.d.ts +7 -0
- package/dist/backend.d.ts.map +1 -1
- package/dist/backend.js.map +1 -1
- package/dist/card.generated.d.ts +1 -1
- package/dist/card.generated.js +2 -2
- package/dist/card.generated.js.map +1 -1
- package/dist/config.d.ts +4 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +12 -5
- package/dist/config.js.map +1 -1
- package/dist/legal.d.ts.map +1 -1
- package/dist/legal.js +10 -3
- package/dist/legal.js.map +1 -1
- package/dist/otaless/addons-answers.d.ts +17 -0
- package/dist/otaless/addons-answers.d.ts.map +1 -0
- package/dist/otaless/addons-answers.js +170 -0
- package/dist/otaless/addons-answers.js.map +1 -0
- package/dist/otaless/addons.d.ts +218 -0
- package/dist/otaless/addons.d.ts.map +1 -0
- package/dist/otaless/addons.js +758 -0
- package/dist/otaless/addons.js.map +1 -0
- package/dist/otaless/booking.d.ts +64 -0
- package/dist/otaless/booking.d.ts.map +1 -1
- package/dist/otaless/booking.js +156 -0
- package/dist/otaless/booking.js.map +1 -1
- package/dist/otaless/client.d.ts +2 -0
- package/dist/otaless/client.d.ts.map +1 -1
- package/dist/otaless/client.js.map +1 -1
- package/dist/otaless/fake.d.ts +22 -0
- package/dist/otaless/fake.d.ts.map +1 -1
- package/dist/otaless/fake.js +40 -7
- package/dist/otaless/fake.js.map +1 -1
- package/dist/otaless/make.d.ts +4 -3
- package/dist/otaless/make.d.ts.map +1 -1
- package/dist/otaless/make.js +21 -7
- package/dist/otaless/make.js.map +1 -1
- package/dist/otaless/shop-answers.d.ts +19 -6
- package/dist/otaless/shop-answers.d.ts.map +1 -1
- package/dist/otaless/shop-answers.js +60 -26
- package/dist/otaless/shop-answers.js.map +1 -1
- package/dist/otaless/shop-fake.d.ts +31 -1
- package/dist/otaless/shop-fake.d.ts.map +1 -1
- package/dist/otaless/shop-fake.js +79 -3
- package/dist/otaless/shop-fake.js.map +1 -1
- package/dist/otaless/shop-service.d.ts +12 -6
- package/dist/otaless/shop-service.d.ts.map +1 -1
- package/dist/otaless/shop-service.js +15 -7
- package/dist/otaless/shop-service.js.map +1 -1
- package/dist/otaless/shop.d.ts +18 -9
- package/dist/otaless/shop.d.ts.map +1 -1
- package/dist/otaless/shop.js +95 -17
- package/dist/otaless/shop.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +49 -5
- package/dist/server.js.map +1 -1
- package/dist/surface.js +2 -2
- package/dist/surface.js.map +1 -1
- package/dist/tools.d.ts +132 -13
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +268 -97
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import type { Booking, Identity, Names } from '../types.js';
|
|
2
|
+
import type { AddonLine, OtalessBookingApi } from './booking.js';
|
|
3
|
+
import type { OtalessShopApi } from './shop-service.js';
|
|
4
|
+
/**
|
|
5
|
+
* ⚠️ WHAT THE GUEST IS TOLD BEFORE A SHOP PURCHASE (card, page and the model's words say the same): the
|
|
6
|
+
* backend charges a card on the account, or gives a payment link when there is none. NEVER NAMES A
|
|
7
|
+
* CARD (总线程 11-23, 1): none of the backend's documented answers - `/addon/info`, `/addon/buy` - gives
|
|
8
|
+
* the charged card's brand or last four, so none is shown or guessed (the card's contract has
|
|
9
|
+
* `addonsView.shop.chargeCard?` for the day one does). Member discounts only lower the total.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SHOP_CONFIRM_TEXT: {
|
|
12
|
+
readonly zh: "确认后,会直接从你账号里绑定的卡付款;没有可用的卡就给你付款链接。会员折扣以后台为准,只会更少。";
|
|
13
|
+
readonly en: "When you confirm, the backend charges a card linked to your account; if there is none, you get a payment link. Member discounts are applied by the backend and can only lower the total.";
|
|
14
|
+
};
|
|
15
|
+
/** The card's `press` - or a page ticket's code: made once per confirm screen, crypto random. */
|
|
16
|
+
export declare const ADDON_PRESS: RegExp;
|
|
17
|
+
/** How long a press is remembered. */
|
|
18
|
+
export declare const ADDON_PRESS_MS: number;
|
|
19
|
+
/** How long a prepared confirm (a page ticket) lives. */
|
|
20
|
+
export declare const ADDON_TICKET_MS: number;
|
|
21
|
+
/** Add-on writes one account may make in ten minutes, on top of every other limit. */
|
|
22
|
+
export declare const ADDON_WRITES_PER_TEN_MINUTES = 10;
|
|
23
|
+
/** How long a hotel add-on whose 11 ended `unknown` is not sent again for the same booking (总线程 11-23). */
|
|
24
|
+
export declare const ADDON_CHECKING_MS: number;
|
|
25
|
+
export type AddonField = 'direction' | 'flightNo' | 'pickupTime' | 'date' | 'quantity' | 'partySize';
|
|
26
|
+
export type HotelAddonItem = {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
category?: string;
|
|
31
|
+
unit?: string;
|
|
32
|
+
price: string;
|
|
33
|
+
currency: string;
|
|
34
|
+
booked: boolean;
|
|
35
|
+
fields: AddonField[];
|
|
36
|
+
};
|
|
37
|
+
export type ShopAddonItem = {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
price: string;
|
|
42
|
+
currency: string;
|
|
43
|
+
available: boolean;
|
|
44
|
+
options: string[];
|
|
45
|
+
imageUrl?: string;
|
|
46
|
+
};
|
|
47
|
+
/** What the card's `addonsView` and the model's words are made from. */
|
|
48
|
+
export type AddonsView = {
|
|
49
|
+
booking: {
|
|
50
|
+
code: string;
|
|
51
|
+
hotelName: string;
|
|
52
|
+
checkIn: string;
|
|
53
|
+
checkOut: string;
|
|
54
|
+
};
|
|
55
|
+
hotel?: {
|
|
56
|
+
state: 'ready' | 'none' | 'unavailable';
|
|
57
|
+
items: HotelAddonItem[];
|
|
58
|
+
};
|
|
59
|
+
shop?: {
|
|
60
|
+
state: 'ready' | 'needs-shop-sign-in' | 'unavailable';
|
|
61
|
+
linkUrl?: string;
|
|
62
|
+
buy: boolean;
|
|
63
|
+
items: ShopAddonItem[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export type ViewAnswer = {
|
|
67
|
+
ok: true;
|
|
68
|
+
view: AddonsView;
|
|
69
|
+
hotelNames?: Names;
|
|
70
|
+
} | {
|
|
71
|
+
ok: false;
|
|
72
|
+
why: 'not-yours' | 'not-live' | 'unavailable';
|
|
73
|
+
};
|
|
74
|
+
export type AddonResult = {
|
|
75
|
+
action: 'book_hotel_addon' | 'buy_shop_item';
|
|
76
|
+
outcome: 'done' | 'paid' | 'awaiting-payment' | 'refused' | 'unknown' | 'changed';
|
|
77
|
+
reason?: 'not-yours' | 'not-live' | 'needs-shop-sign-in' | 'unavailable' | 'bad-input' | 'busy' | 'declined' | 'used' | 'checking' | 'off';
|
|
78
|
+
total?: string;
|
|
79
|
+
currency?: string;
|
|
80
|
+
addonCode?: string;
|
|
81
|
+
orderId?: string;
|
|
82
|
+
checkoutUrl?: string;
|
|
83
|
+
needsPerson?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* A shop order the backend made and we held back (0.82.0): its total or currency was not the one
|
|
86
|
+
* confirmed (`amount`), or its payment page is not one we hand on (`link`). It was awaiting
|
|
87
|
+
* payment, so nothing was charged; cancelled at once - or, with `needsPerson`, the cancel did not
|
|
88
|
+
* go through. Said on our confirm page; the card says `declined`.
|
|
89
|
+
*/
|
|
90
|
+
held?: 'amount' | 'link';
|
|
91
|
+
};
|
|
92
|
+
export type HotelAddonAsk = {
|
|
93
|
+
booking: string;
|
|
94
|
+
catalogId: string;
|
|
95
|
+
direction?: 'arrival' | 'departure' | 'round_trip';
|
|
96
|
+
flightNo?: string;
|
|
97
|
+
pickupTime?: string;
|
|
98
|
+
date?: string;
|
|
99
|
+
quantity?: number;
|
|
100
|
+
partySize?: number;
|
|
101
|
+
/** What the guest's confirm screen showed: a 2-decimal string and the currency. */
|
|
102
|
+
shownTotal: string;
|
|
103
|
+
currency: string;
|
|
104
|
+
};
|
|
105
|
+
export type ShopAddonAsk = {
|
|
106
|
+
booking: string;
|
|
107
|
+
item: string;
|
|
108
|
+
option?: string;
|
|
109
|
+
quantity: number;
|
|
110
|
+
shownUnit: string;
|
|
111
|
+
currency: string;
|
|
112
|
+
};
|
|
113
|
+
/** What a confirm page shows - the same facts the card's confirm screen has. */
|
|
114
|
+
export type AddonConfirm = {
|
|
115
|
+
kind: 'hotel' | 'shop';
|
|
116
|
+
until: string;
|
|
117
|
+
booking: {
|
|
118
|
+
code: string;
|
|
119
|
+
hotelName: string;
|
|
120
|
+
hotelNames?: Names;
|
|
121
|
+
};
|
|
122
|
+
name: string;
|
|
123
|
+
option?: string;
|
|
124
|
+
/** Per unit, 2 decimals. */
|
|
125
|
+
unit: string;
|
|
126
|
+
currency: string;
|
|
127
|
+
quantity: number;
|
|
128
|
+
/** unit × quantity (hotel: × the multiplier the unit asks for). 2 decimals. */
|
|
129
|
+
total: string;
|
|
130
|
+
details: {
|
|
131
|
+
direction?: string;
|
|
132
|
+
flightNo?: string;
|
|
133
|
+
pickupTime?: string;
|
|
134
|
+
date?: string;
|
|
135
|
+
partySize?: number;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export type PrepareAnswer = {
|
|
139
|
+
ok: true;
|
|
140
|
+
ref: string;
|
|
141
|
+
confirm: AddonConfirm;
|
|
142
|
+
} | {
|
|
143
|
+
ok: false;
|
|
144
|
+
result: AddonResult;
|
|
145
|
+
};
|
|
146
|
+
export type OtalessAddonsApi = {
|
|
147
|
+
readonly hotelOn: boolean;
|
|
148
|
+
readonly shopOn: boolean;
|
|
149
|
+
/** Whether a shop purchase can be made at all (`shopBuy`). */
|
|
150
|
+
readonly buyOpen: boolean;
|
|
151
|
+
view: (who: Identity, code: string, lang: 'zh' | 'en') => Promise<ViewAnswer>;
|
|
152
|
+
bookHotel: (who: Identity, ask: HotelAddonAsk & {
|
|
153
|
+
press: string;
|
|
154
|
+
}) => Promise<AddonResult>;
|
|
155
|
+
buyShop: (who: Identity, ask: ShopAddonAsk & {
|
|
156
|
+
press: string;
|
|
157
|
+
}, lang: 'zh' | 'en') => Promise<AddonResult>;
|
|
158
|
+
/** The model's tools: nothing is sent - a confirm is prepared and the page link is made by the account layer. */
|
|
159
|
+
prepareHotel: (who: Identity, ask: Omit<HotelAddonAsk, 'shownTotal' | 'currency'>, lang: 'zh' | 'en') => Promise<PrepareAnswer>;
|
|
160
|
+
prepareShop: (who: Identity, ask: Omit<ShopAddonAsk, 'shownUnit' | 'currency'> & {
|
|
161
|
+
unitPrice: string;
|
|
162
|
+
currency: string;
|
|
163
|
+
}, lang: 'zh' | 'en') => Promise<PrepareAnswer>;
|
|
164
|
+
/**
|
|
165
|
+
* Whether add-ons can be offered for this booking: a hotel order of the caller's own, live (confirmed
|
|
166
|
+
* or awaiting payment), check-out not past - and `addons` or the shop on. The bookings list's flag.
|
|
167
|
+
*/
|
|
168
|
+
canAdd: (b: Booking) => boolean;
|
|
169
|
+
/** The confirm waiting at `ref` for this conversation (the page reads it); undefined: none. */
|
|
170
|
+
pending: (who: Identity, ref: string) => AddonConfirm | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* ⚠️ THE GUEST PRESSED CONFIRM ON THE PAGE: the ticket is taken (one use, whatever comes of it),
|
|
173
|
+
* the values are re-read and held to what the page showed, and the write is sent at most once.
|
|
174
|
+
*/
|
|
175
|
+
confirm: (who: Identity, ref: string, lang: 'zh' | 'en') => Promise<{
|
|
176
|
+
result: AddonResult;
|
|
177
|
+
confirm: AddonConfirm;
|
|
178
|
+
} | undefined>;
|
|
179
|
+
/** The guest left the page: the ticket goes. */
|
|
180
|
+
discard: (who: Identity, ref: string) => void;
|
|
181
|
+
};
|
|
182
|
+
export type AddonsOptions = {
|
|
183
|
+
hotelOn: boolean;
|
|
184
|
+
booking?: OtalessBookingApi;
|
|
185
|
+
shop?: OtalessShopApi;
|
|
186
|
+
/** The conversation's own hotel booking by code (the hotel backend's `findBooking`). */
|
|
187
|
+
findBooking: (ref: string, who: Identity) => Promise<Booking | null>;
|
|
188
|
+
/** The Otaless account behind a conversation, as the booking layer knows it - undefined: not signed in. */
|
|
189
|
+
accountOf: (who: Identity) => string | undefined;
|
|
190
|
+
/** Where a guest links the shop account (the account page), for `needs-shop-sign-in`. */
|
|
191
|
+
linkUrl?: string;
|
|
192
|
+
now: () => number;
|
|
193
|
+
log?: (line: string) => void;
|
|
194
|
+
};
|
|
195
|
+
/** A shop price is always whole cents (shop.ts `centsOf`): `1850` -> `"18.50"`, whatever the currency. */
|
|
196
|
+
export declare const centsStr: (cents: number) => string;
|
|
197
|
+
/** `"18.50"` -> 1850: plain, at most two decimals, above zero - else undefined. Integer maths, never a float. */
|
|
198
|
+
export declare const centsOfStr: (v: unknown) => number | undefined;
|
|
199
|
+
/** `45000, 'CNY'` -> `"450.00"`. */
|
|
200
|
+
export declare const amountOf: (minor: number, currency: string) => string;
|
|
201
|
+
/** `"450.00"` -> minor units; anything that is not a plain amount of at most two decimals: undefined. */
|
|
202
|
+
export declare const minorOf: (v: unknown, currency: string) => number | undefined;
|
|
203
|
+
/** What a hotel add-on asks the guest for: a transfer's details, else a date and a quantity. */
|
|
204
|
+
export declare const fieldsOf: (category: string | undefined) => AddonField[];
|
|
205
|
+
/**
|
|
206
|
+
* ⚠️ WHAT THE TOTAL IS MULTIPLIED BY - the one rule the card and the server share: a line that asks
|
|
207
|
+
* for a `quantity` is price × quantity; a per-person line (unit has guest, person or pax - the card's
|
|
208
|
+
* rule, 总线程 11-23) that asks for the party is price × party;
|
|
209
|
+
* everything else is the price once (a transfer is per trip, whatever the party). A per-day unit is
|
|
210
|
+
* NOT multiplied by days: we do not know the days the backend will count - if its total comes back
|
|
211
|
+
* higher, it is kept, said so, and a person looks (`needsPerson`).
|
|
212
|
+
*/
|
|
213
|
+
export declare const multiplierOf: (line: Pick<AddonLine, "unit" | "category">, fields: readonly AddonField[], p: {
|
|
214
|
+
quantity?: number;
|
|
215
|
+
partySize?: number;
|
|
216
|
+
}) => number;
|
|
217
|
+
export declare const createOtalessAddons: (o: AddonsOptions) => OtalessAddonsApi;
|
|
218
|
+
//# sourceMappingURL=addons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addons.d.ts","sourceRoot":"","sources":["../../src/otaless/addons.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,mBAAmB,CAAC;AAyBvE;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,iGAAiG;AACjG,eAAO,MAAM,WAAW,QAA2B,CAAC;AACpD,sCAAsC;AACtC,eAAO,MAAM,cAAc,QAAc,CAAC;AAC1C,yDAAyD;AACzD,eAAO,MAAM,eAAe,QAAc,CAAC;AAC3C,sFAAsF;AACtF,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAK/C,2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