sinfactura-types 1.10.347 → 1.10.348
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/cjs/cycleCount.js +7 -0
- package/dist/cycleCount.d.ts +1 -1
- package/dist/cycleCount.js +7 -0
- package/dist/user.d.ts +24 -0
- package/package.json +1 -1
package/dist/cjs/cycleCount.js
CHANGED
|
@@ -142,6 +142,13 @@ exports.CYCLE_COUNT_ERROR_CODES = [
|
|
|
142
142
|
'CYCLE_COUNT_NOT_OPEN',
|
|
143
143
|
'CYCLE_COUNT_ILLEGAL_TRANSITION',
|
|
144
144
|
'CYCLE_COUNT_VERSION_CONFLICT',
|
|
145
|
+
// Finalise refuses a session whose COUNTED CONTENT moved since the caller's
|
|
146
|
+
// read, distinct from the row-version conflict above: the caller's revision
|
|
147
|
+
// is stale, and committing it would finalise a count nobody took. Answered
|
|
148
|
+
// by `cycle-counts/_finalize.ts`; landed one PR after this list was
|
|
149
|
+
// published, and the guard test that keeps this list honest caught it on
|
|
150
|
+
// `main` rather than in either PR's own gate.
|
|
151
|
+
'CYCLE_COUNT_CONTENT_CONFLICT',
|
|
145
152
|
'CYCLE_COUNT_TOLERANCE_EXCEEDED',
|
|
146
153
|
'CYCLE_COUNT_ID_UNUSABLE',
|
|
147
154
|
'ROLE_FORBIDDEN',
|
package/dist/cycleCount.d.ts
CHANGED
|
@@ -401,5 +401,5 @@ export declare const isOverCycleCountToleranceRule: (input: {
|
|
|
401
401
|
* ⚠️ Cross-cutting refusals are NOT repeated here — check `GATING_ERROR_CODES`
|
|
402
402
|
* as well.
|
|
403
403
|
*/
|
|
404
|
-
export declare const CYCLE_COUNT_ERROR_CODES: readonly ["CYCLE_COUNT_NOT_FOUND", "CYCLE_COUNT_NOT_OPEN", "CYCLE_COUNT_ILLEGAL_TRANSITION", "CYCLE_COUNT_VERSION_CONFLICT", "CYCLE_COUNT_TOLERANCE_EXCEEDED", "CYCLE_COUNT_ID_UNUSABLE", "ROLE_FORBIDDEN", "VALIDATION_FAILED", "INVALID_CURSOR", "PRODUCT_NOT_FOUND", "STOCK_ADJUSTMENT_RACED"];
|
|
404
|
+
export declare const CYCLE_COUNT_ERROR_CODES: readonly ["CYCLE_COUNT_NOT_FOUND", "CYCLE_COUNT_NOT_OPEN", "CYCLE_COUNT_ILLEGAL_TRANSITION", "CYCLE_COUNT_VERSION_CONFLICT", "CYCLE_COUNT_CONTENT_CONFLICT", "CYCLE_COUNT_TOLERANCE_EXCEEDED", "CYCLE_COUNT_ID_UNUSABLE", "ROLE_FORBIDDEN", "VALIDATION_FAILED", "INVALID_CURSOR", "PRODUCT_NOT_FOUND", "STOCK_ADJUSTMENT_RACED"];
|
|
405
405
|
export type CycleCountErrorCode = (typeof CYCLE_COUNT_ERROR_CODES)[number];
|
package/dist/cycleCount.js
CHANGED
|
@@ -137,6 +137,13 @@ export const CYCLE_COUNT_ERROR_CODES = [
|
|
|
137
137
|
'CYCLE_COUNT_NOT_OPEN',
|
|
138
138
|
'CYCLE_COUNT_ILLEGAL_TRANSITION',
|
|
139
139
|
'CYCLE_COUNT_VERSION_CONFLICT',
|
|
140
|
+
// Finalise refuses a session whose COUNTED CONTENT moved since the caller's
|
|
141
|
+
// read, distinct from the row-version conflict above: the caller's revision
|
|
142
|
+
// is stale, and committing it would finalise a count nobody took. Answered
|
|
143
|
+
// by `cycle-counts/_finalize.ts`; landed one PR after this list was
|
|
144
|
+
// published, and the guard test that keeps this list honest caught it on
|
|
145
|
+
// `main` rather than in either PR's own gate.
|
|
146
|
+
'CYCLE_COUNT_CONTENT_CONFLICT',
|
|
140
147
|
'CYCLE_COUNT_TOLERANCE_EXCEEDED',
|
|
141
148
|
'CYCLE_COUNT_ID_UNUSABLE',
|
|
142
149
|
'ROLE_FORBIDDEN',
|
package/dist/user.d.ts
CHANGED
|
@@ -77,6 +77,30 @@ declare global {
|
|
|
77
77
|
* from `notifications` above rather than a key inside it.
|
|
78
78
|
*/
|
|
79
79
|
broadcastChannels?: UserBroadcastChannels;
|
|
80
|
+
/**
|
|
81
|
+
* Per-user audible-bell preference — a CLIENT-ONLY chime toggle.
|
|
82
|
+
*
|
|
83
|
+
* ⚠️ The api never reads this field. It stores it and hands it back, and
|
|
84
|
+
* that is the whole of its server-side role: no delivery decision, no
|
|
85
|
+
* queue, no notification path anywhere in this repo branches on it. Do
|
|
86
|
+
* NOT read the absence of a server reader as evidence that it is dead —
|
|
87
|
+
* the consumers are the FEs, and they are the reason it exists:
|
|
88
|
+
* - `app` — `src/helpers/socketActions/store.ts` decides whether an
|
|
89
|
+
* inbound socket frame plays a sound, and `src/components/users/
|
|
90
|
+
* Notifications.tsx` renders the toggle that writes it;
|
|
91
|
+
* - `mobile` — `src/notifications/sounds.ts` gates the push chime, and
|
|
92
|
+
* `src/screens/Mas/NotificationPrefs/QuietHours/QuietHoursScreen.tsx`
|
|
93
|
+
* renders it.
|
|
94
|
+
*
|
|
95
|
+
* ⚠️ DEFAULT-ON, and the polarity is load-bearing: ABSENT means ON. Both
|
|
96
|
+
* readers test `!== false`, never `Boolean(...)`, so a consumer that
|
|
97
|
+
* coerces will silence the bell for every user who never touched the
|
|
98
|
+
* setting. Being default-on is also why no backfill was ever needed.
|
|
99
|
+
*
|
|
100
|
+
* Distinct from the `notifications.<KEY>` per-type opt-in map above —
|
|
101
|
+
* that map decides DELIVERY, this decides only whether a sound plays,
|
|
102
|
+
* and it is the INVERSE of the map's default (see `docs/NOTIFICATIONS.md`).
|
|
103
|
+
*/
|
|
80
104
|
notificationSound?: boolean;
|
|
81
105
|
permissions?: UserPermissions;
|
|
82
106
|
emailVerified?: boolean;
|