@bondsports/types 2.4.84-a-5 → 2.4.85
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.
|
@@ -26,6 +26,7 @@ export interface IGetExtendedProductsOptions {
|
|
|
26
26
|
skipProrated?: boolean;
|
|
27
27
|
}
|
|
28
28
|
export interface IGetProductsByTypeOptions extends IPagination {
|
|
29
|
+
stationId?: number;
|
|
29
30
|
categoriesIds?: number[];
|
|
30
31
|
customersIds?: number[];
|
|
31
32
|
excludeProductIds?: number[];
|
|
@@ -49,7 +50,6 @@ export interface IGetProductsByTypeOptions extends IPagination {
|
|
|
49
50
|
sortBy?: OrderByProductEnum;
|
|
50
51
|
spacesIds?: number[];
|
|
51
52
|
sports?: SportsEnum[];
|
|
52
|
-
stationId?: number;
|
|
53
53
|
statuses?: ActivityEnum[];
|
|
54
54
|
}
|
|
55
55
|
export interface IGetPunchPassProductsOptions extends IPagination {
|
|
@@ -14,7 +14,8 @@ export interface ITerminalActiveAction {
|
|
|
14
14
|
type: TerminalReaderActionTypeEnum;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Identity of a reader action whose cancel Stripe did not confirm,
|
|
17
|
+
* Identity of a reader action believed to be stuck: either one whose cancel Stripe did not confirm,
|
|
18
|
+
* leaving it a ghost, or one an owner's retry presumes stuck after it has been in flight too long.
|
|
18
19
|
* Stripe's `Terminal.Reader.Action` has no id, so the action is keyed by the object it targets.
|
|
19
20
|
*/
|
|
20
21
|
export interface ITerminalPendingCancel {
|
|
@@ -31,6 +32,11 @@ export interface ITerminalPendingCancel {
|
|
|
31
32
|
* offline and timeout codes prove that, which is why the offline reclassification is gated on
|
|
32
33
|
* `isReaderUnreachableStripeCode` rather than on the marker's mere presence.
|
|
33
34
|
*
|
|
35
|
+
* When `pendingCancel` names the action the reader is currently running, the marker is proof about the
|
|
36
|
+
* reader itself and outranks the active-action registry entry: a cancel Stripe failed on that exact
|
|
37
|
+
* action means the reader is gone no matter which cashier owns it. A marker naming no action is weaker
|
|
38
|
+
* — it could describe work the reader has since finished — so it only reclassifies an untracked action.
|
|
39
|
+
*
|
|
34
40
|
* The TTL only has to outlive Stripe's heartbeat lag: once the heartbeat itself reports `offline`,
|
|
35
41
|
* `readerStatus` carries the reclassification and the marker is redundant. Every failed cancel
|
|
36
42
|
* refreshes it, so a reader that stays unreachable keeps a live marker.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondsports/types",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.85",
|
|
4
4
|
"description": "backend types module for Bond-Sports",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"rimraf": "^3.0.2",
|
|
40
40
|
"stripe": "^18.2.0",
|
|
41
41
|
"typeorm": "^0.2.32",
|
|
42
|
-
"zod": "^3.25.49"
|
|
42
|
+
"zod": "^3.25.49",
|
|
43
|
+
"@types/lodash": "^4.17.24"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@bondsports/eslint-config": "^1.0.2",
|
|
@@ -51,5 +52,5 @@
|
|
|
51
52
|
"ts-node": "^10.8.0",
|
|
52
53
|
"typescript": "^4.4.3"
|
|
53
54
|
},
|
|
54
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
|
|
55
56
|
}
|