@curless/hotel-storefront 0.76.1 → 0.76.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +33 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/legal.d.ts +31 -3
- package/dist/legal.d.ts.map +1 -1
- package/dist/legal.js +273 -22
- package/dist/legal.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +25 -4
- package/dist/server.js.map +1 -1
- package/dist/tools.d.ts +6 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +7 -1
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -312,6 +312,39 @@ export type HotelConfig = {
|
|
|
312
312
|
brandContact?: string;
|
|
313
313
|
region?: string;
|
|
314
314
|
updated?: string;
|
|
315
|
+
/**
|
|
316
|
+
* The company that publishes this connector, where that is the group itself and not
|
|
317
|
+
* the operator (0.76.2, 华住: `H REWARDS PTE. LTD.`, built and run for it by the
|
|
318
|
+
* operator, NEXVA GmbH - huazhu-listing.md L1). Written exactly as the directory has it
|
|
319
|
+
* verified. The pages then say "published by …, built and run for <brand> by
|
|
320
|
+
* <operator>", never that the operator sells the group's rooms as a distributor.
|
|
321
|
+
* One group only: refused on a market (`checkLegal`).
|
|
322
|
+
*/
|
|
323
|
+
publisher?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Who answers about personal data for the publisher, and its own policy page
|
|
326
|
+
* (0.76.2, 华住: its data protection officer for Singapore, and H World Group's data
|
|
327
|
+
* protection charter - huazhu-listing.md L2 / H4). Said on the privacy and support pages.
|
|
328
|
+
*/
|
|
329
|
+
privacy?: {
|
|
330
|
+
email?: string;
|
|
331
|
+
url?: string;
|
|
332
|
+
urlName?: string;
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* The group's own customer service, for a stay, a cancellation or an invoice (0.76.2,
|
|
336
|
+
* 华住's www.hworld.com/service - huazhu-listing.md L5 / H3). Where it is set, /support
|
|
337
|
+
* is served (Otaless has its own).
|
|
338
|
+
*/
|
|
339
|
+
guestSupport?: {
|
|
340
|
+
url?: string;
|
|
341
|
+
email?: string;
|
|
342
|
+
/** Each number as the group writes it, with what a guest should know of it ("24 hours; …"). */
|
|
343
|
+
phones?: {
|
|
344
|
+
number: string;
|
|
345
|
+
note?: string;
|
|
346
|
+
}[];
|
|
347
|
+
};
|
|
315
348
|
};
|
|
316
349
|
};
|
|
317
350
|
/**
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IAEX,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,qDAAqD;IACrD,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd;;;;;WAKG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB;;;;;;WAMG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ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C;IACnB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,sFAAsF;IACtF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0GAA0G;IAC1G,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE;QACV,sDAAsD;QACtD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,kDAAkD;QAClD,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAQF;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD5D,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AA6bA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAmC1F;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAc,EAAQ,EAAE;IAC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dist/legal.d.ts
CHANGED
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { type BackendCapabilities } from './backend.js';
|
|
2
2
|
import type { HotelConfig } from './config.js';
|
|
3
3
|
export declare const stockPhotos: (brand: string) => string;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* One tool as the docs page lists it (0.76.2, huazhu-listing.md L6 - Muse's guide 5.4 / 5.6
|
|
6
|
+
* asks, per tool, whether it reads or writes, takes personal data and what it changes):
|
|
7
|
+
* taken from the deployment's own `tools/list` (server.ts), so the page can never list a
|
|
8
|
+
* tool the connector does not have, or miss one.
|
|
9
|
+
*/
|
|
10
|
+
export type ToolRow = {
|
|
11
|
+
name: string;
|
|
12
|
+
/** What it is to this connector - a key of `ToolNames` - where it is one of the brand's. */
|
|
13
|
+
role?: string;
|
|
14
|
+
readOnly: boolean;
|
|
15
|
+
destructive: boolean;
|
|
16
|
+
/** The card's own (`ui.visibility: ['app']`): pressed on the card, never called by the assistant. */
|
|
17
|
+
cardOnly: boolean;
|
|
18
|
+
/** The names of its arguments, and of those it cannot be called without. */
|
|
19
|
+
inputs: string[];
|
|
20
|
+
required: string[];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* A config's `legal` as it is meant, refused at start otherwise (0.76.2): every value here is
|
|
24
|
+
* printed on a public page, an address as a link - so a link is https and nothing else, an
|
|
25
|
+
* email is one address, and a name fits a line. `publisher` and `guestSupport` are a group's
|
|
26
|
+
* own, never a market's.
|
|
27
|
+
*/
|
|
28
|
+
export declare const checkLegal: (config: HotelConfig) => void;
|
|
29
|
+
export declare const docsPage: (config: HotelConfig, caps?: BackendCapabilities, tools?: ToolRow[]) => string;
|
|
5
30
|
export declare const termsPage: (config: HotelConfig, caps?: BackendCapabilities) => string;
|
|
6
31
|
export declare const privacyPage: (config: HotelConfig, imageHosts?: string[], caps?: BackendCapabilities, persisted?: boolean, source?: "shadow" | "enforce") => string;
|
|
7
|
-
/**
|
|
8
|
-
|
|
32
|
+
/**
|
|
33
|
+
* The Otaless support page, or a group's own (`legal.guestSupport` on a live connector of
|
|
34
|
+
* its own, 0.76.2) - null on every other deployment (their /support stays a 404).
|
|
35
|
+
*/
|
|
36
|
+
export declare const supportPage: (config: HotelConfig, caps?: BackendCapabilities) => string | null;
|
|
9
37
|
//# sourceMappingURL=legal.d.ts.map
|
package/dist/legal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal.d.ts","sourceRoot":"","sources":["../src/legal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAqB,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"legal.d.ts","sourceRoot":"","sources":["../src/legal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAqB,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AA4W/C,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MAC8G,CAAC;AA6D3J;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,4FAA4F;IAC5F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,qGAAqG;IACrG,QAAQ,EAAE,OAAO,CAAC;IAClB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAynBF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,WAAW,KAAG,IAgEhD,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,QAAQ,WAAW,EACnB,OAAM,mBAAuC,EAC7C,QAAO,OAAO,EAAO,KACpB,MAQF,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,QAAQ,WAAW,EACnB,OAAM,mBAAuC,KAC5C,MAGF,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,QAAQ,WAAW,EACnB,aAAY,MAAM,EAAO,EACzB,OAAM,mBAAuC,EAC7C,mBAAiB,EACjB,SAAS,QAAQ,GAAG,SAAS,KAC5B,MAU+D,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,WAAW,GACtB,QAAQ,WAAW,EACnB,OAAM,mBAAuC,KAC5C,MAAM,GAAG,IAIX,CAAC"}
|
package/dist/legal.js
CHANGED
|
@@ -34,14 +34,80 @@ const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => c === '&' ? '&
|
|
|
34
34
|
* they were (robin 0.70.0: the privacy page is not touched for them).
|
|
35
35
|
*/
|
|
36
36
|
const isOtaless = (c) => c.data.source === 'otaless';
|
|
37
|
+
/**
|
|
38
|
+
* The group's own company, where it publishes this connector itself (`legal.publisher`,
|
|
39
|
+
* 0.76.2 - 华住: H REWARDS PTE. LTD., built and run for it by NEXVA GmbH). Never a market's.
|
|
40
|
+
*
|
|
41
|
+
* ⚠️ EVERY OTHER DEPLOYMENT'S PAGES ARE BYTE FOR BYTE WHAT THEY WERE (robin 0.70.0): each
|
|
42
|
+
* change below is behind this, the group's own customer service (`guestSupport`), the
|
|
43
|
+
* pages' fewer claims that follow it (`claimsLess`) or a live group's paid-at-the-hotel-only
|
|
44
|
+
* booking (`atHotelOnly`) - today all of them are 华住生产 alone. `deployment-surface-0750`
|
|
45
|
+
* holds the rest to their snapshots.
|
|
46
|
+
*/
|
|
47
|
+
const publisherOf = (c) => !isMarket(c) && c.legal.publisher ? c.legal.publisher : undefined;
|
|
48
|
+
/** "published by H REWARDS PTE. LTD. and built and run for HWorld by NEXVA GmbH" (L1). */
|
|
49
|
+
const whoRuns = (c, publisher) => `published by ${esc(publisher)} and built and run for ${esc(c.brand)} by ${esc(c.legal.operator ?? 'Curless')}`;
|
|
50
|
+
/** A group's own customer service, on a live connector of its own: served at /support (L5). */
|
|
51
|
+
const guestSupportOf = (c) => c.legal.guestSupport && !isMarket(c) && sourceOf(c) === 'live' ? c.legal.guestSupport : null;
|
|
52
|
+
/** Whether this deployment serves /support - Otaless's own, or a group's customer service. */
|
|
53
|
+
const hasSupport = (c) => isOtaless(c) || !!guestSupportOf(c);
|
|
54
|
+
/**
|
|
55
|
+
* A group's own listing's privacy page makes no claim that the statistics (`usage`, 0.70.0)
|
|
56
|
+
* or the records of where connections come from (`sourceAllowlist`) could make untrue (0.76.2,
|
|
57
|
+
* huazhu-listing.md L3): no "no advertising or analytics identifiers", no "nothing is kept from
|
|
58
|
+
* one conversation to the next", no "no record of who visited" - and no paragraph on the
|
|
59
|
+
* statistics either (robin 11-18 for Otaless, the same rule here).
|
|
60
|
+
*
|
|
61
|
+
* ⚠️ BY THE LISTING, NEVER BY THE STATISTICS SWITCH (robin 0.70.0, as for moody: turning the
|
|
62
|
+
* statistics on changes no answer and no page - `usage-http-0700`). Otaless dropped the same
|
|
63
|
+
* words on its own page (0.75.0); here it is the pages of a group's own listing (`publisher`).
|
|
64
|
+
* A claim left out is never untrue, with the statistics on or off.
|
|
65
|
+
*/
|
|
66
|
+
const claimsLess = (c) => !!publisherOf(c);
|
|
67
|
+
/**
|
|
68
|
+
* A live group of its own that books only rates paid at the hotel and sells none paid in
|
|
69
|
+
* advance here (华住生产): its rates paid in advance are listed, never booked - said on the
|
|
70
|
+
* pages as a fact that does not age (0.76.2, huazhu-listing.md L4 / L6, C5).
|
|
71
|
+
*/
|
|
72
|
+
const atHotelOnly = (c, caps) => !isMarket(c) &&
|
|
73
|
+
sourceOf(c) === 'live' &&
|
|
74
|
+
!caps.readOnly &&
|
|
75
|
+
caps.booking === 'pay-at-hotel' &&
|
|
76
|
+
!caps.prepaid;
|
|
77
|
+
const mailto = (address) => `<a href="mailto:${esc(address)}">${esc(address)}</a>`;
|
|
78
|
+
/** An address as a guest reads it: no scheme, no trailing slash. */
|
|
79
|
+
const shownUrl = (url) => url.replace(/^https:\/\//, '').replace(/\/$/, '');
|
|
80
|
+
/** Who publishes and runs this, and who answers about personal data - the privacy page's first section (L1, L2). */
|
|
81
|
+
const whoRunsSection = (c) => {
|
|
82
|
+
const publisher = publisherOf(c);
|
|
83
|
+
if (!publisher)
|
|
84
|
+
return '';
|
|
85
|
+
const operator = esc(c.legal.operator ?? 'Curless');
|
|
86
|
+
const ops = c.legal.operatorContact;
|
|
87
|
+
const privacy = c.legal.privacy;
|
|
88
|
+
const asks = [
|
|
89
|
+
privacy?.email ? mailto(privacy.email) : '',
|
|
90
|
+
ops ? `${operator} at ${mailto(ops)}` : '',
|
|
91
|
+
]
|
|
92
|
+
.filter(Boolean)
|
|
93
|
+
.join(' or to ');
|
|
94
|
+
return `
|
|
95
|
+
<h2>Who runs this</h2>
|
|
96
|
+
<p>This connector is ${whoRuns(c, publisher)}.${asks
|
|
97
|
+
? ` Questions about your personal data, or a request to see or delete what this connector holds about you, go to ${asks}.`
|
|
98
|
+
: ''}${privacy?.url
|
|
99
|
+
? ` ${esc(c.brand)}'s own policy is <a href="${esc(privacy.url)}">${esc(privacy.urlName ?? shownUrl(privacy.url))}</a>.`
|
|
100
|
+
: ''}</p>`;
|
|
101
|
+
};
|
|
37
102
|
const footer = (config) => {
|
|
38
103
|
const operator = config.legal.operator ?? 'Curless';
|
|
39
104
|
const contact = config.legal.operatorContact;
|
|
105
|
+
const publisher = publisherOf(config);
|
|
40
106
|
return `<div class="meta">
|
|
41
|
-
Operated by ${esc(operator)}${contact ? ` · <a href="mailto:${esc(contact)}">${esc(contact)}</a>` : ''}
|
|
107
|
+
${publisher ? `Published by ${esc(publisher)} · Built and run for ${esc(config.brand)} by ${esc(operator)}` : `Operated by ${esc(operator)}`}${contact ? ` · <a href="mailto:${esc(contact)}">${esc(contact)}</a>` : ''}
|
|
42
108
|
${config.legal.region ? ` · ${esc(config.legal.region)}` : ''}
|
|
43
109
|
${config.legal.updated ? ` · Last updated ${esc(config.legal.updated)}` : ''}
|
|
44
|
-
<br><a href="./docs">What this does</a> · <a href="./privacy">Privacy</a> · <a href="./terms">Terms</a>${
|
|
110
|
+
<br><a href="./docs">What this does</a> · <a href="./privacy">Privacy</a> · <a href="./terms">Terms</a>${hasSupport(config) ? ' · <a href="./support">Support</a>' : ''}
|
|
45
111
|
</div>`;
|
|
46
112
|
};
|
|
47
113
|
/**
|
|
@@ -235,9 +301,13 @@ const marksNotice = (config) => isMarket(config)
|
|
|
235
301
|
: sourceOf(config) === 'live'
|
|
236
302
|
? `<h2>Names and pictures</h2>
|
|
237
303
|
<p>${esc(introducedOf(config))}, the names of its properties and the photographs shown on the card belong to
|
|
238
|
-
${esc(config.brand)}, and come from its own distribution system.
|
|
304
|
+
${esc(config.brand)}, and come from its own distribution system. ${
|
|
305
|
+
// ⚠️ PUBLISHED BY THE GROUP ITSELF, NOT SOLD BY A DISTRIBUTOR (0.76.2, L1).
|
|
306
|
+
publisherOf(config)
|
|
307
|
+
? `This connector is ${whoRuns(config, publisherOf(config))}.`
|
|
308
|
+
: `This connector is operated by
|
|
239
309
|
${esc(config.legal.operator ?? 'Curless')}, which sells ${esc(config.brand)}'s rooms as a distributor;
|
|
240
|
-
it is not ${esc(config.brand)}
|
|
310
|
+
it is not ${esc(config.brand)}.`}</p>`
|
|
241
311
|
: invented(config)
|
|
242
312
|
? `<h2>Names and pictures</h2>
|
|
243
313
|
<p>The hotels shown here, their names, rooms and rates are invented, and the photographs are stock
|
|
@@ -261,7 +331,58 @@ const accountHeld = (config) => config.account
|
|
|
261
331
|
? `<li><strong>A ${esc(config.brand)} account sign-in</strong> — while you are signed in, in this server's memory only: the account's name, its email and phone number with most of them hidden, and the key ${esc(config.brand)}'s account service issued. Never written to disk; forgotten when you sign out, two hours after it was last used, or when the server restarts. The page you signed in on keeps a cookie for 30 minutes, to show the account and sign out there. A one-time sign-in link is kept for 5 minutes (by a fingerprint of it, never the link), and attempts at one account are counted for ten minutes so a password cannot be guessed at.</li>
|
|
262
332
|
`
|
|
263
333
|
: '';
|
|
264
|
-
|
|
334
|
+
/** What a tool takes of a person, from its arguments - or "none". */
|
|
335
|
+
const personalOf = (t) => {
|
|
336
|
+
const has = (k) => t.inputs.includes(k);
|
|
337
|
+
const must = (k) => t.required.includes(k);
|
|
338
|
+
return has('name')
|
|
339
|
+
? `takes the guest's name and email${has('phone') ? (must('phone') ? ' and phone number' : ', and a phone number if given') : ''}`
|
|
340
|
+
: has('email')
|
|
341
|
+
? `takes a booking's confirmation code${must('email') ? ' and the email it was made with' : ' and, from another conversation, the email it was made with'}`
|
|
342
|
+
: 'takes no personal data';
|
|
343
|
+
};
|
|
344
|
+
/** What a tool changes, by what it is - every one of them as the code does it. */
|
|
345
|
+
const changesOf = (c, caps, t) => {
|
|
346
|
+
const brand = esc(c.brand);
|
|
347
|
+
if (t.readOnly)
|
|
348
|
+
return 'changes nothing';
|
|
349
|
+
switch (t.role) {
|
|
350
|
+
case 'addToTrip':
|
|
351
|
+
return `changes this conversation's trip; nothing is sent to ${brand}`;
|
|
352
|
+
case 'clearTrip':
|
|
353
|
+
return `empties this conversation's trip; nothing is sent to ${brand}`;
|
|
354
|
+
case 'pickRoom':
|
|
355
|
+
return `keeps the room picked on the card for this conversation; nothing is sent to ${brand}`;
|
|
356
|
+
case 'requestBooking':
|
|
357
|
+
case 'bookPicked':
|
|
358
|
+
return `makes a reservation in ${brand}'s system${atHotelOnly(c, caps)
|
|
359
|
+
? ', paid at the hotel - only for a rate paid at the hotel; a rate paid in advance is refused and nothing is sent'
|
|
360
|
+
: ''}`;
|
|
361
|
+
case 'cancelBooking':
|
|
362
|
+
return `cancels a reservation in ${brand}'s system`;
|
|
363
|
+
default:
|
|
364
|
+
return t.destructive
|
|
365
|
+
? `changes data in ${brand}'s system`
|
|
366
|
+
: "changes only this conversation's own data";
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
const rank = (t) => (t.cardOnly ? 2 : t.readOnly ? 0 : 1);
|
|
370
|
+
/**
|
|
371
|
+
* The tools, each with what it reads or writes - on a live group's own connector (L6).
|
|
372
|
+
* Nothing on any other deployment: its page stays what it was.
|
|
373
|
+
*/
|
|
374
|
+
const toolsSection = (c, caps, tools) => tools.length && !isMarket(c) && sourceOf(c) === 'live'
|
|
375
|
+
? `
|
|
376
|
+
<h2>Its tools</h2>
|
|
377
|
+
<p>What each tool reads or writes. None takes a payment or card details.</p>
|
|
378
|
+
<ul>${[...tools]
|
|
379
|
+
// What reads, then what writes, then the card's own.
|
|
380
|
+
.sort((a, b) => rank(a) - rank(b))
|
|
381
|
+
.map((t) => `\n <li><code>${esc(t.name)}</code>${t.cardOnly ? " (the card's own: pressed on the card, never called by the assistant)" : ''} — ${t.readOnly ? 'reads' : 'writes'}; ${personalOf(t)}; ${changesOf(c, caps, t)}.</li>`)
|
|
382
|
+
.join('')}
|
|
383
|
+
</ul>`
|
|
384
|
+
: '';
|
|
385
|
+
const docsPageBase = (config, caps = FULL_CAPABILITIES, tools = []) => shell('What this connector does', config.brand, isMarket(config)
|
|
265
386
|
? `<h1>${esc(config.naming?.nounPlural ?? 'hotels').replace(/^./, (x) => x.toUpperCase())} on ${esc(config.brand)}</h1>
|
|
266
387
|
<p>An MCP connector that lets an AI assistant look up the properties of ${esc(andOf(groupsOf(config).map((g) => g.name)))} in one place, price a stay on given nights, put ${caps.extras ? 'rooms and add-ons' : 'rooms'} into a
|
|
267
388
|
trip${caps.readOnly ? '' : ', and book them with the group each property belongs to, one group at a time'}.
|
|
@@ -312,7 +433,11 @@ const docsPageBase = (config, caps = FULL_CAPABILITIES) => shell('What this conn
|
|
|
312
433
|
: sourceOf(config) === 'sandbox'
|
|
313
434
|
? 'Book: each stay becomes a reservation in the simulated system, with its own confirmation code.'
|
|
314
435
|
: caps.booking === 'pay-at-hotel'
|
|
315
|
-
? `Book: each stay becomes ${esc(config.brand)}'s own reservation, with its own confirmation code, paid at the hotel
|
|
436
|
+
? `Book: each stay becomes ${esc(config.brand)}'s own reservation, with its own confirmation code, paid at the hotel.${
|
|
437
|
+
// A fact that does not age (0.76.2, huazhu-listing.md L6 - as C5 in the tools).
|
|
438
|
+
atHotelOnly(config, caps)
|
|
439
|
+
? ` Only rates paid at the hotel can be booked here; a rate paid in advance is booked in ${esc(config.brand)}'s own app or on its website.`
|
|
440
|
+
: ''}`
|
|
316
441
|
: sourceOf(config) === 'demo'
|
|
317
442
|
? `Request a demonstration booking: a confirmation code is issued, but ${esc(config.brand)} does not receive it and no room is held.`
|
|
318
443
|
: 'Request a booking: the rooms are held and a confirmation code is issued.'}</li>
|
|
@@ -356,7 +481,7 @@ const docsPageBase = (config, caps = FULL_CAPABILITIES) => shell('What this conn
|
|
|
356
481
|
<li><strong>Invent availability or fees.</strong> ${caps.booking === 'pay-at-hotel'
|
|
357
482
|
? "Rooms left are what the booking system reports, and a cancellation fee is shown with the rate's own terms it came from."
|
|
358
483
|
: 'A held room comes off the count, and a\n cancellation fee is shown with the rule it came from.'}</li>
|
|
359
|
-
</ul
|
|
484
|
+
</ul>${toolsSection(config, caps, tools)}
|
|
360
485
|
${footer(config)}`);
|
|
361
486
|
const privacyPageBase = (config, imageHosts = [], caps = FULL_CAPABILITIES,
|
|
362
487
|
/**
|
|
@@ -375,7 +500,7 @@ persisted = false,
|
|
|
375
500
|
* address, whose name is logged.
|
|
376
501
|
*/
|
|
377
502
|
source) => shell('Privacy', config.brand, `<h1>Privacy</h1>
|
|
378
|
-
${demoBanner(config)}
|
|
503
|
+
${demoBanner(config)}${whoRunsSection(config)}
|
|
379
504
|
<h2>What this connector holds</h2>
|
|
380
505
|
<ul>
|
|
381
506
|
<li><strong>The trip you are building</strong> — hotel ids, room ids, your dates and how many
|
|
@@ -412,7 +537,12 @@ source) => shell('Privacy', config.brand, `<h1>Privacy</h1>
|
|
|
412
537
|
: sourceOf(config) === 'sandbox'
|
|
413
538
|
? `In this test environment it is sent to a simulated copy of ${esc(config.brand)}'s system that ${esc(config.legal.operator ?? 'Curless')} runs on the same server - never to ${esc(config.brand)} - and both keep it until 90 days after the check-out date, so that the booking can be found and cancelled from the conversation.`
|
|
414
539
|
: sourceOf(config) === 'live'
|
|
415
|
-
? `It is sent to ${esc(config.brand)}, who make and keep the reservation - the name, the email, the phone number, the dates, the rooms and the requests, which reach the hotel's desk. This connector also keeps a copy on its own server, until 90 days after the check-out date, so that the booking can be found and cancelled from the conversation: ${esc(config.brand)}'s system does not give back the email a booking was made with. A booking a person here has to confirm or cancel with ${esc(config.brand)} by hand is kept until 90 days after that is done, if that is later
|
|
540
|
+
? `It is sent to ${esc(config.brand)}, who make and keep the reservation - the name, the email, the phone number, the dates, the rooms and the requests, which reach the hotel's desk. This connector also keeps a copy on its own server, until 90 days after the check-out date, so that the booking can be found and cancelled from the conversation: ${esc(config.brand)}'s system does not give back the email a booking was made with. A booking a person here has to confirm or cancel with ${esc(config.brand)} by hand is kept until 90 days after that is done, if that is later.${
|
|
541
|
+
// ⚠️ "WHEN A BOOKING IS MADE", NEVER "NOW" OR "YET" (0.76.2, L4): true the
|
|
542
|
+
// day a rate paid at the hotel is sold here as on the day none is.
|
|
543
|
+
atHotelOnly(config, caps)
|
|
544
|
+
? ' This applies only to a rate paid at the hotel. A rate paid in advance cannot be booked here, and nothing is asked for or kept for it.'
|
|
545
|
+
: ''}`
|
|
416
546
|
: persisted
|
|
417
547
|
? "In this demonstration it is kept on this connector's server until 90 days after the check-out date, so that the booking can be found and cancelled from the conversation, and then deleted."
|
|
418
548
|
: 'In this demonstration it is kept in memory for as long as this process runs, and nothing is written to disk; once there are many, bookings that are over are forgotten first.'}</li>
|
|
@@ -460,11 +590,20 @@ caps.unionpay
|
|
|
460
590
|
: caps.prepaid
|
|
461
591
|
? 'No card numbers. A card is typed only on the payment page, never here.'
|
|
462
592
|
: 'No card numbers, and no payment details of any kind — it has nowhere to put them and never asks.'}</li>
|
|
463
|
-
<li>${config.account ? `No password: it is typed only on ${esc(config.brand)}'s own sign-in page and goes from there to ${esc(config.brand)}'s account service, and is never kept or logged here.` : 'No account and no password.'}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
593
|
+
<li>${config.account ? `No password: it is typed only on ${esc(config.brand)}'s own sign-in page and goes from there to ${esc(config.brand)}'s account service, and is never kept or logged here.` : 'No account and no password.'}${
|
|
594
|
+
// ⚠️ NOT ON A GROUP'S OWN LISTING (0.76.2, L3 - `claimsLess`): the statistics'
|
|
595
|
+
// pseudonymous ids outlast a conversation.
|
|
596
|
+
claimsLess(config)
|
|
597
|
+
? ''
|
|
598
|
+
: ` ${caps.members
|
|
599
|
+
? 'Nothing is kept about you from one conversation to the next except a booking you made, as above, and the room preferences above if you asked for them.'
|
|
600
|
+
: 'Nothing is kept about you from one conversation to the next except a booking you made, as above.'}`}</li>
|
|
601
|
+
<li>${claimsLess(config) ? 'Nothing is sold or shared.' : 'No advertising or analytics identifiers, and nothing is sold or shared.'}</li>${
|
|
602
|
+
// …and the diagnostic lines are a record of their own there, not "no record of who
|
|
603
|
+
// visited" (L3): under their own heading, after what it does not hold.
|
|
604
|
+
claimsLess(config)
|
|
605
|
+
? '\n </ul>\n <h2>Diagnostic records</h2>\n <p>'
|
|
606
|
+
: '\n <li>No record of who visited. '}The server keeps short diagnostic lines - which card an
|
|
468
607
|
assistant's app fetched and that app's name, or that a request named a conversation it no
|
|
469
608
|
longer knows and the app's user-agent${
|
|
470
609
|
// ⚠️ A GROUP'S OWN SYSTEM LOGS MORE (华住, 2026-10-08): a booking a
|
|
@@ -483,8 +622,7 @@ sourceOf(config) !== 'demo' || groupsOf(config).some((g) => g.source !== 'demo')
|
|
|
483
622
|
: 'is getting ready to accept connections only from approved AI platforms, and notes for now where they come from'}, where each new connection came from: the address of the platform's server, or, for any other source, only its network (an IPv4 address without its last part, the first 48 bits of an IPv6 one), with the name the app gave itself, its user agent, and the agent it names in a Signature-Agent header if it sends one${source === 'shadow'
|
|
484
623
|
? ". For that, the address of each new connection is looked up in the DNS - the name it is registered under, and whether that name leads back to it - and the name is logged: a platform's server's whole, and for any other source only its last two or three parts, never a part that spells an address"
|
|
485
624
|
: ''}. These records of where connections came from - counts by source, and the last ${RECENT_KEPT} connections - are also kept with this service's own data so that a restart does not lose them, and each is deleted ${SOURCE_KEPT_MS / 86_400_000} days after it was last seen`
|
|
486
|
-
: 'no network address, no name, email or dates, and nothing said in a conversation'}. They roll over by size and are not kept beyond that
|
|
487
|
-
</ul>
|
|
625
|
+
: 'no network address, no name, email or dates, and nothing said in a conversation'}. They roll over by size and are not kept beyond that.${claimsLess(config) ? '</p>' : '</li>\n </ul>'}
|
|
488
626
|
${imageHosts.length
|
|
489
627
|
? `<h2>Pictures</h2>
|
|
490
628
|
<p>The card shows ${isMarket(config) && groupsOf(config).some(madeUp)
|
|
@@ -513,8 +651,8 @@ sourceOf(config) !== 'demo' || groupsOf(config).some((g) => g.source !== 'demo')
|
|
|
513
651
|
const termsPageBase = (config, caps = FULL_CAPABILITIES) => shell('Terms', config.brand, `<h1>Terms</h1>
|
|
514
652
|
${demoBanner(config)}
|
|
515
653
|
<h2>What this is</h2>
|
|
516
|
-
<p>A connector operated by ${esc(config.legal.operator ?? 'Curless')} that an AI assistant uses on
|
|
517
|
-
your behalf. ${isMarket(config)
|
|
654
|
+
<p>A connector ${publisherOf(config) ? '' : `operated by ${esc(config.legal.operator ?? 'Curless')} `}that an AI assistant uses on
|
|
655
|
+
your behalf${publisherOf(config) ? `, ${whoRuns(config, publisherOf(config))}` : ''}. ${isMarket(config)
|
|
518
656
|
? `It shows the ${esc(config.naming?.nounPlural ?? 'hotels')} of several groups side by side; ${esc(config.brand)} is not a hotel and holds no booking. ${sourceOf(config) === 'live'
|
|
519
657
|
? "Each group's rooms, rates and policies come from that group, and a booking is between you and it."
|
|
520
658
|
: groupsOf(config).some((g) => g.source === 'test')
|
|
@@ -636,8 +774,113 @@ const otalessSupport = (config) => {
|
|
|
636
774
|
const otalessWording = (html) => html
|
|
637
775
|
.replaceAll("on the group's payment page", `on ${PAY_PAGE}`)
|
|
638
776
|
.replaceAll('and the photographs of their hotels belong to those groups', "and the groups' own photographs of their hotels belong to those groups (some pictures on the card are stock photographs)");
|
|
639
|
-
|
|
640
|
-
|
|
777
|
+
/**
|
|
778
|
+
* A group's own connector's support page (0.76.2, huazhu-listing.md L5): the group's
|
|
779
|
+
* customer service for a stay, cancelling or an invoice; the operator for the connector
|
|
780
|
+
* itself; where a rate paid in advance is booked; a booking made here, seen and cancelled;
|
|
781
|
+
* and seeing or deleting one's data. Every sentence as the code does it.
|
|
782
|
+
*/
|
|
783
|
+
const groupSupport = (config, caps, s) => {
|
|
784
|
+
const brand = esc(config.brand);
|
|
785
|
+
const operator = esc(config.legal.operator ?? 'Curless');
|
|
786
|
+
const ops = config.legal.operatorContact;
|
|
787
|
+
const dpo = config.legal.privacy?.email;
|
|
788
|
+
const phones = (s.phones ?? []).map((p) => `<a href="tel:${esc(p.number.replace(/[^\d+]/g, ''))}">${esc(p.number)}</a>${p.note ? ` (${esc(p.note)})` : ''}`);
|
|
789
|
+
const ways = [
|
|
790
|
+
s.url ? `on <a href="${esc(s.url)}">${esc(shownUrl(s.url))}</a>` : '',
|
|
791
|
+
s.email ? `by email at ${mailto(s.email)}` : '',
|
|
792
|
+
phones.length ? `by phone on ${phones.join(' or ')}` : '',
|
|
793
|
+
].filter(Boolean);
|
|
794
|
+
const whose = publisherOf(config);
|
|
795
|
+
const dataTo = [dpo ? mailto(dpo) : '', ops ? `${operator} at ${mailto(ops)}` : '']
|
|
796
|
+
.filter(Boolean)
|
|
797
|
+
.join(' or to ');
|
|
798
|
+
return `<h1>Support</h1>
|
|
799
|
+
<h2>Your stay, a booking, cancelling or an invoice</h2>
|
|
800
|
+
<p>${brand}'s own customer service answers about a stay, a booking, cancelling it or an invoice${ways.length ? `: ${andOf(ways)}` : ''}.</p>
|
|
801
|
+
<h2>Booking here</h2>
|
|
802
|
+
<p>${caps.readOnly
|
|
803
|
+
? `Nothing can be booked through this connector yet: it shows the hotels, rooms and prices only. A booking is made with ${brand} in its own app or on its website.`
|
|
804
|
+
: `${atHotelOnly(config, caps)
|
|
805
|
+
? `Only rates paid at the hotel can be booked here; a rate paid in advance is booked in ${brand}'s own app or on its website. `
|
|
806
|
+
: ''}A booking made here is ${brand}'s own reservation${caps.booking === 'pay-at-hotel' ? ', paid at the hotel' : ''}, with its own confirmation code. To see it, ask the assistant for your bookings - in the conversation it was made in, or in another one with its confirmation code and the email it was made with. To cancel it, ask the assistant: what cancelling would cost is shown first, and nothing is cancelled until you confirm.`}</p>
|
|
807
|
+
<h2>This connector</h2>
|
|
808
|
+
<p>Questions about the connector itself go to ${operator}, which ${whose ? `builds and runs it for ${brand}` : 'runs it'}${ops ? `: ${mailto(ops)}` : ''}.</p>
|
|
809
|
+
<h2>Your data</h2>
|
|
810
|
+
<p>${dataTo ? `To see or delete what this connector holds about you, write to ${dataTo}. ` : ''}What it holds, and for how long, is on the <a href="./privacy">privacy page</a>; the <a href="./terms">terms</a> say what a booking is.</p>
|
|
811
|
+
${footer(config)}`;
|
|
812
|
+
};
|
|
813
|
+
/**
|
|
814
|
+
* A config's `legal` as it is meant, refused at start otherwise (0.76.2): every value here is
|
|
815
|
+
* printed on a public page, an address as a link - so a link is https and nothing else, an
|
|
816
|
+
* email is one address, and a name fits a line. `publisher` and `guestSupport` are a group's
|
|
817
|
+
* own, never a market's.
|
|
818
|
+
*/
|
|
819
|
+
export const checkLegal = (config) => {
|
|
820
|
+
const l = (config.legal ?? {});
|
|
821
|
+
const where = `${config.brand}: legal`;
|
|
822
|
+
const text = (v, name, max = 120) => {
|
|
823
|
+
if (v === undefined)
|
|
824
|
+
return;
|
|
825
|
+
if (typeof v !== 'string' || !v.trim() || v !== v.trim() || v.length > max || /[<>]/.test(v))
|
|
826
|
+
throw new Error(`${where}.${name} must be a line of text of up to ${max} characters`);
|
|
827
|
+
};
|
|
828
|
+
const https = (v, name) => {
|
|
829
|
+
if (v === undefined)
|
|
830
|
+
return;
|
|
831
|
+
if (typeof v !== 'string' || v.length > 300 || !/^https:\/\/[^\s"'<>`\\]+$/.test(v))
|
|
832
|
+
throw new Error(`${where}.${name} must be an https:// address`);
|
|
833
|
+
};
|
|
834
|
+
const email = (v, name) => {
|
|
835
|
+
if (v === undefined)
|
|
836
|
+
return;
|
|
837
|
+
if (typeof v !== 'string' ||
|
|
838
|
+
v.length > 120 ||
|
|
839
|
+
!/^[^\s@"'<>`\\]+@[^\s@"'<>`\\]+\.[A-Za-z]{2,}$/.test(v))
|
|
840
|
+
throw new Error(`${where}.${name} must be one email address`);
|
|
841
|
+
};
|
|
842
|
+
const object = (v, name) => {
|
|
843
|
+
if (v === undefined)
|
|
844
|
+
return false;
|
|
845
|
+
if (!v || typeof v !== 'object' || Array.isArray(v))
|
|
846
|
+
throw new Error(`${where}.${name} must be an object`);
|
|
847
|
+
return true;
|
|
848
|
+
};
|
|
849
|
+
text(l.publisher, 'publisher');
|
|
850
|
+
if (l.publisher !== undefined && isMarket(config))
|
|
851
|
+
throw new Error(`${where}.publisher is for one group's own connector, not a market`);
|
|
852
|
+
if (object(l.privacy, 'privacy')) {
|
|
853
|
+
email(l.privacy.email, 'privacy.email');
|
|
854
|
+
https(l.privacy.url, 'privacy.url');
|
|
855
|
+
text(l.privacy.urlName, 'privacy.urlName');
|
|
856
|
+
if (l.privacy.urlName !== undefined && l.privacy.url === undefined)
|
|
857
|
+
throw new Error(`${where}.privacy.urlName names privacy.url, which is not given`);
|
|
858
|
+
}
|
|
859
|
+
if (object(l.guestSupport, 'guestSupport')) {
|
|
860
|
+
if (isMarket(config))
|
|
861
|
+
throw new Error(`${where}.guestSupport is for one group's own connector, not a market`);
|
|
862
|
+
const s = l.guestSupport;
|
|
863
|
+
https(s.url, 'guestSupport.url');
|
|
864
|
+
email(s.email, 'guestSupport.email');
|
|
865
|
+
if (s.phones !== undefined) {
|
|
866
|
+
if (!Array.isArray(s.phones) || s.phones.length > 4)
|
|
867
|
+
throw new Error(`${where}.guestSupport.phones must be a list of up to 4 numbers`);
|
|
868
|
+
s.phones.forEach((p, i) => {
|
|
869
|
+
if (!object(p, `guestSupport.phones[${i}]`))
|
|
870
|
+
throw new Error(`${where}.guestSupport.phones[${i}] must be an object`);
|
|
871
|
+
if (typeof p.number !== 'string' || !/^\+?\d[\d ()-]{3,24}$/.test(p.number))
|
|
872
|
+
throw new Error(`${where}.guestSupport.phones[${i}].number must be a phone number, such as "4008-121-121"`);
|
|
873
|
+
text(p.note, `guestSupport.phones[${i}].note`);
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
if (s.url === undefined &&
|
|
877
|
+
s.email === undefined &&
|
|
878
|
+
!s.phones?.length)
|
|
879
|
+
throw new Error(`${where}.guestSupport gives no way to reach the group`);
|
|
880
|
+
}
|
|
881
|
+
};
|
|
882
|
+
export const docsPage = (config, caps = FULL_CAPABILITIES, tools = []) => {
|
|
883
|
+
const page = docsPageBase(config, caps, tools);
|
|
641
884
|
return isOtaless(config)
|
|
642
885
|
? otalessWording(page).replace('This connector collects no card details and charges nothing.', `This connector collects no card details and charges nothing; a booking is paid on ${PAY_PAGE}.`)
|
|
643
886
|
: page;
|
|
@@ -650,6 +893,14 @@ export const privacyPage = (config, imageHosts = [], caps = FULL_CAPABILITIES, p
|
|
|
650
893
|
? otalessWording(shell('Privacy', config.brand, `${otalessPrivacy(config, imageHosts)}
|
|
651
894
|
${footer(config)}`))
|
|
652
895
|
: privacyPageBase(config, imageHosts, caps, persisted, source);
|
|
653
|
-
/**
|
|
654
|
-
|
|
896
|
+
/**
|
|
897
|
+
* The Otaless support page, or a group's own (`legal.guestSupport` on a live connector of
|
|
898
|
+
* its own, 0.76.2) - null on every other deployment (their /support stays a 404).
|
|
899
|
+
*/
|
|
900
|
+
export const supportPage = (config, caps = FULL_CAPABILITIES) => {
|
|
901
|
+
if (isOtaless(config))
|
|
902
|
+
return shell('Support', config.brand, otalessSupport(config));
|
|
903
|
+
const s = guestSupportOf(config);
|
|
904
|
+
return s ? shell('Support', config.brand, groupSupport(config, caps, s)) : null;
|
|
905
|
+
};
|
|
655
906
|
//# sourceMappingURL=legal.js.map
|