@final-commerce/command-frame 0.7.0-staging.7 → 0.7.0-staging.8
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/CommonTypes.d.ts
CHANGED
|
@@ -116,6 +116,21 @@ export interface CFContextRender {
|
|
|
116
116
|
stationName: string | null;
|
|
117
117
|
outletId: string | null;
|
|
118
118
|
outletName: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* IANA zone the SHOP keeps, resolved as the outlet's own zone, else the
|
|
121
|
+
* company's — never the device's. A booking is stored as an instant, so which
|
|
122
|
+
* hour and which DAY it reads as is decided entirely by the zone it is printed
|
|
123
|
+
* in, and the screen's own machine is the one zone that is certainly wrong: a
|
|
124
|
+
* 17:00 Monday appointment in Vancouver is 21:30 for a till in St John's, and
|
|
125
|
+
* for some viewers it lands on Tuesday. Without this an app cannot label a
|
|
126
|
+
* slot or an appointment honestly — it can only guess, and it guesses wrong
|
|
127
|
+
* for every business that does not sit in the same zone as its screen.
|
|
128
|
+
*
|
|
129
|
+
* `null` when neither the outlet nor the company has one configured. Say so
|
|
130
|
+
* rather than falling back to the device: a missing timezone is a setup
|
|
131
|
+
* problem, and printing the machine's clock hides it.
|
|
132
|
+
*/
|
|
133
|
+
timeZone: string | null;
|
|
119
134
|
buildId: string | null;
|
|
120
135
|
buildName: string | null;
|
|
121
136
|
buildVersion: string | null;
|
|
@@ -11,6 +11,10 @@ export const mockGetContext = () => {
|
|
|
11
11
|
stationName: MOCK_STATION.name,
|
|
12
12
|
outletId: MOCK_OUTLET.id,
|
|
13
13
|
outletName: MOCK_OUTLET.name || null,
|
|
14
|
+
// Deliberately NOT the developer's own zone: an app that quietly formats with
|
|
15
|
+
// the machine's clock looks correct in preview and is wrong on every till that
|
|
16
|
+
// sits in a different city. Here it cannot look correct by accident.
|
|
17
|
+
timeZone: "America/Vancouver",
|
|
14
18
|
buildId: "mock_build_id",
|
|
15
19
|
buildName: "Mock Build",
|
|
16
20
|
buildVersion: "1.0.0-mock",
|