@curless/hotel-storefront 0.79.3 → 0.79.5
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/card.generated.d.ts +1 -1
- package/dist/card.generated.js +2 -2
- package/dist/card.generated.js.map +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -5
- package/dist/server.js.map +1 -1
- package/dist/tools.d.ts +0 -6
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +39 -16
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,KAAK,mBAAmB,EAczB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAa,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAa1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAiB7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAqChD,OAAO,EAGL,KAAK,SAAS,EAMf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,cAAc,EAiBd,QAAQ,EAER,KAAK,EACL,KAAK,EAKL,eAAe,EAOhB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,UAAU,EAA2C,MAAM,YAAY,CAAC;AAsGtF,+GAA+G;AAC/G,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,UAAU,GACrB,GAAG,SAAS,EACZ,GAAG,UAAU,EACb,OAAM,mBAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;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Q,EACd,MAAM,MAAM,EACZ,SAAS,OAAO,EAChB,KAAK,WAAW,KACf,OAAO,CAAC,UAAU,CA2DpB,CAAC;AAsBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,oPACuN,CAAC;AAEpP;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,2aAC+Y,CAAC;AAE3a,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,kOACgM,CAAC;AAElO;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO;;;CAKV,CAAC;AAEX;;;;;;GAMG;AACH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAMrC,eAAO,MAAM,cAAc,gxBAA8xB,CAAC"}
|
package/dist/tools.js
CHANGED
|
@@ -1469,7 +1469,6 @@ export const outputSchemasFor = (schemas, caps, lang, also = {}) => {
|
|
|
1469
1469
|
!caps.hourly &&
|
|
1470
1470
|
!lang &&
|
|
1471
1471
|
!also.logoDark &&
|
|
1472
|
-
!also.icon &&
|
|
1473
1472
|
!also.logoByLang &&
|
|
1474
1473
|
!also.accent &&
|
|
1475
1474
|
!also.primary &&
|
|
@@ -1493,9 +1492,6 @@ export const outputSchemasFor = (schemas, caps, lang, also = {}) => {
|
|
|
1493
1492
|
// And the dark page's logo, where the group gave one.
|
|
1494
1493
|
if (also.logoDark)
|
|
1495
1494
|
properties.logoDarkUrl = STR;
|
|
1496
|
-
// And its square mark, for the card's ring on a photograph (0.79.3).
|
|
1497
|
-
if (also.icon)
|
|
1498
|
-
properties.iconUrl = STR;
|
|
1499
1495
|
// And its logo by the card's language, where it has more than one (`server.logoByLang`).
|
|
1500
1496
|
if (also.logoByLang)
|
|
1501
1497
|
properties.logoByLang = OBJ;
|
|
@@ -2575,7 +2571,6 @@ const common = (deps, key) => {
|
|
|
2575
2571
|
...(deps.brandNames ? { brandNames: deps.brandNames } : {}),
|
|
2576
2572
|
...(deps.logoUrl ? { logoUrl: deps.logoUrl } : {}),
|
|
2577
2573
|
...(deps.logoDarkUrl ? { logoDarkUrl: deps.logoDarkUrl } : {}),
|
|
2578
|
-
...(deps.iconUrl ? { iconUrl: deps.iconUrl } : {}),
|
|
2579
2574
|
...(deps.logoByLang ? { logoByLang: deps.logoByLang } : {}),
|
|
2580
2575
|
...(deps.accent ? { accent: deps.accent } : {}),
|
|
2581
2576
|
...(deps.homeImage ? { homeImage: deps.homeImage } : {}),
|
|
@@ -3214,9 +3209,11 @@ const offerCount = (rooms) => {
|
|
|
3214
3209
|
: `${rooms.length} rates on ${types} room ${types === 1 ? 'type' : 'types'}`;
|
|
3215
3210
|
};
|
|
3216
3211
|
/** What one room costs, as the text says it: nights, or the hours of a room by the hour. */
|
|
3217
|
-
const priceWords = (r, noCards) => r.hourly
|
|
3212
|
+
const priceWords = (r, noCards, roomsWanted = 1) => r.hourly
|
|
3218
3213
|
? `${formatMoney(r.stayTotal)} for ${r.hourly.hours} hours incl. taxes and fees, starting between ${r.hourly.earliestStart} and ${r.hourly.latestStart} today and out by ${r.hourly.latestEnd}`
|
|
3219
|
-
:
|
|
3214
|
+
: nightIsTheStay(r, roomsWanted)
|
|
3215
|
+
? wholeStayWords(r)
|
|
3216
|
+
: `${nightlyPart(r, noCards)}, ${wholeStayWords(r)}`;
|
|
3220
3217
|
/**
|
|
3221
3218
|
* A night - or, where the night is a rounded average (`Room.roomCharges`, 0.79.1), the stay's room
|
|
3222
3219
|
* charges before taxes, so that charges + taxes = the total the text gives beside it.
|
|
@@ -3224,6 +3221,22 @@ const priceWords = (r, noCards) => r.hourly
|
|
|
3224
3221
|
const nightlyPart = (r, noCards) => r.roomCharges
|
|
3225
3222
|
? `${formatMoney(r.roomCharges)} room charges for ${r.nights} nights before taxes (${formatMoney(r.taxesAndFees)} tax and fees on top)`
|
|
3226
3223
|
: `${formatMoney(r.nightly)} ${nightWords(noCards, nightlyIncludesTaxes(r))}`;
|
|
3224
|
+
/**
|
|
3225
|
+
* ⚠️ ONE NIGHT, ONE ROOM: THE NIGHT IS THE STAY (0.79.5, 总线程 11-19, Otaless - a one-night stay
|
|
3226
|
+
* said 「$132 a night.」 and, a line under it, 「Lowest price · $132」): where the stay is one night
|
|
3227
|
+
* for one room and the night's price IS the stay's (the same number in the same currency), the
|
|
3228
|
+
* text says the whole stay and not the night as well. Not where two rooms make "$132 a night, per
|
|
3229
|
+
* room" and "$264 for 2 rooms" two numbers; not where the night is before taxes and the stay has
|
|
3230
|
+
* them in (Huazhu: two numbers); not for a room by the hour, a stay the group has not totalled,
|
|
3231
|
+
* or a night that is a rounded average of room charges (`roomCharges`).
|
|
3232
|
+
*/
|
|
3233
|
+
const nightIsTheStay = (r, roomsWanted) => r.nights === 1 &&
|
|
3234
|
+
roomsWanted === 1 &&
|
|
3235
|
+
!r.hourly &&
|
|
3236
|
+
!r.stayTotalUnquoted &&
|
|
3237
|
+
!r.roomCharges &&
|
|
3238
|
+
r.nightly.currency === r.stayTotal.currency &&
|
|
3239
|
+
r.nightly.minor === r.stayTotal.minor;
|
|
3227
3240
|
/**
|
|
3228
3241
|
* The whole stay, as the text says it - or that the group has quoted none.
|
|
3229
3242
|
*
|
|
@@ -3395,9 +3408,11 @@ const roomFactsWords = (r, rate = false) => {
|
|
|
3395
3408
|
return ` (${facts})`;
|
|
3396
3409
|
};
|
|
3397
3410
|
/** The cheapest price a rate quotes, as the text says it: "from" a night, or the hours of a block. */
|
|
3398
|
-
const fromWords = (r, noCards) => r.hourly
|
|
3411
|
+
const fromWords = (r, noCards, roomsWanted = 1) => r.hourly
|
|
3399
3412
|
? `${formatMoney(r.stayTotal)} for ${r.hourly.hours} hours incl. taxes and fees`
|
|
3400
|
-
:
|
|
3413
|
+
: nightIsTheStay(r, roomsWanted)
|
|
3414
|
+
? wholeStayWords(r)
|
|
3415
|
+
: `${nightlyPart(r, noCards)}, ${wholeStayWords(r)}`;
|
|
3401
3416
|
/**
|
|
3402
3417
|
* A hotel's rooms for the nights, one line per ROOM TYPE.
|
|
3403
3418
|
*
|
|
@@ -3425,8 +3440,8 @@ noCards) => {
|
|
|
3425
3440
|
const n = type.rooms.length;
|
|
3426
3441
|
if (n === 1)
|
|
3427
3442
|
return noCards
|
|
3428
|
-
? `- ${withZh(cheapest.name, cheapest.names, true)}${labelWords(cheapest)}${roomFactsWords(cheapest, true)}, room \`${cheapest.id}\` — ${priceWords(cheapest, true)}${forRooms(cheapest)}, ${cancelWords(cheapest)}`
|
|
3429
|
-
: `- ${cheapest.name}${labelWords(cheapest)}${roomFactsWords(cheapest, true)} — ${priceWords(cheapest)}${forRooms(cheapest)}, ${cancelWords(cheapest)}`;
|
|
3443
|
+
? `- ${withZh(cheapest.name, cheapest.names, true)}${labelWords(cheapest)}${roomFactsWords(cheapest, true)}, room \`${cheapest.id}\` — ${priceWords(cheapest, true, roomsWanted)}${forRooms(cheapest)}, ${cancelWords(cheapest)}`
|
|
3444
|
+
: `- ${cheapest.name}${labelWords(cheapest)}${roomFactsWords(cheapest, true)} — ${priceWords(cheapest, undefined, roomsWanted)}${forRooms(cheapest)}, ${cancelWords(cheapest)}`;
|
|
3430
3445
|
const some = (k, all, part) => k === n ? all : k > 0 ? `${k} of ${n} ${part}` : '';
|
|
3431
3446
|
const also = [
|
|
3432
3447
|
terms?.breakfast
|
|
@@ -3437,8 +3452,8 @@ noCards) => {
|
|
|
3437
3452
|
: some(type.rooms.filter((r) => facetsOf(r).freeCancellation).length, 'all are free to cancel', 'are free to cancel'),
|
|
3438
3453
|
].filter(Boolean);
|
|
3439
3454
|
return noCards
|
|
3440
|
-
? `- ${withZh(type.name, cheapest.roomType?.names, true)}${roomFactsWords(cheapest)}, room type \`${type.id}\` — ${n} rates from ${fromWords(cheapest, true)}${forRooms(cheapest)}. Lowest price: "${withZh(cheapest.name, cheapest.names, true)}", room \`${cheapest.id}\`${labelWords(cheapest)}, ${cancelWords(cheapest)}.${also.length ? ` ${also.join('; ')}.` : ''}`
|
|
3441
|
-
: `- ${type.name}${roomFactsWords(cheapest)} — ${n} rates from ${fromWords(cheapest)}${forRooms(cheapest)}. Lowest price: "${cheapest.name}"${labelWords(cheapest)}, ${cancelWords(cheapest)}.${also.length ? ` ${also.join('; ')}.` : ''}`;
|
|
3455
|
+
? `- ${withZh(type.name, cheapest.roomType?.names, true)}${roomFactsWords(cheapest)}, room type \`${type.id}\` — ${n} rates from ${fromWords(cheapest, true, roomsWanted)}${forRooms(cheapest)}. Lowest price: "${withZh(cheapest.name, cheapest.names, true)}", room \`${cheapest.id}\`${labelWords(cheapest)}, ${cancelWords(cheapest)}.${also.length ? ` ${also.join('; ')}.` : ''}`
|
|
3456
|
+
: `- ${type.name}${roomFactsWords(cheapest)} — ${n} rates from ${fromWords(cheapest, undefined, roomsWanted)}${forRooms(cheapest)}. Lowest price: "${cheapest.name}"${labelWords(cheapest)}, ${cancelWords(cheapest)}.${also.length ? ` ${also.join('; ')}.` : ''}`;
|
|
3442
3457
|
});
|
|
3443
3458
|
};
|
|
3444
3459
|
/**
|
|
@@ -3547,8 +3562,11 @@ readOnly = false) => {
|
|
|
3547
3562
|
//
|
|
3548
3563
|
// ⚠️ NOT TWICE (0.79.1, Manus 11-19, Otaless's River View Suite: 「可住3人。每晚 $208。」 and, a
|
|
3549
3564
|
// line under it, 「可住3人 · 每晚 $208」): where the price under the choice IS a night's
|
|
3550
|
-
// (`stayTotalUnquoted`) the sentence does not say the night as well.
|
|
3551
|
-
|
|
3565
|
+
// (`stayTotalUnquoted`) the sentence does not say the night as well. Nor for one night of one
|
|
3566
|
+
// room whose night is the stay (0.79.5, `nightIsTheStay`: 「$132 a night.」 + 「Lowest price · $132」).
|
|
3567
|
+
const nightly = (r) => r.hourly || r.stayTotalUnquoted || nightIsTheStay(r, roomsWanted)
|
|
3568
|
+
? ''
|
|
3569
|
+
: `${nightlyPart(r, true)}${many ? ', per room' : ''}`;
|
|
3552
3570
|
const more = (n) => n ? `${n} more ${n === 1 ? 'rate' : 'rates'} on this room type` : '';
|
|
3553
3571
|
// Breakfast and terms are said for most as "unless one says otherwise"; the
|
|
3554
3572
|
// rest only where every one is the same.
|
|
@@ -5923,7 +5941,12 @@ const comparedInWords = (c) => {
|
|
|
5923
5941
|
const p = c.price;
|
|
5924
5942
|
const priced = p
|
|
5925
5943
|
? [
|
|
5926
|
-
|
|
5944
|
+
// ⚠️ ONE NIGHT: THE NIGHT IS THE STAY (0.79.5, `nightIsTheStay`): a one-night stay said
|
|
5945
|
+
// "at $132 a night, $132 for the stay". Both are formatted in the room's one currency, so
|
|
5946
|
+
// the same words are the same number - said once, as the stay.
|
|
5947
|
+
p.stayTotal !== undefined && p.stayTotal === p.nightly
|
|
5948
|
+
? `${withZh(p.room, p.roomNames, true)} at ${p.stayTotal} for the stay incl. taxes and fees`
|
|
5949
|
+
: `${withZh(p.room, p.roomNames, true)} at ${p.nightly} ${nightWords(true, p.nightlyTaxesIn)}, ${p.stayTotal === undefined ? 'not a total for these nights - no price from the group for the whole stay yet' : `${p.stayTotal} for the stay incl. taxes and fees`}`,
|
|
5927
5950
|
p.terms !== undefined
|
|
5928
5951
|
? termsWords(p.terms)
|
|
5929
5952
|
: p.freeCancellationUntil
|