@nimee/shared-types 1.0.331 → 1.0.332
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/crm/groupOrder.d.ts +8 -1
- package/dist/crm/groupOrder.js +9 -0
- package/dist/crm/groupOrder.js.map +1 -1
- package/dist/event/ticket.d.ts +10 -1
- package/dist/event/ticket.js +9 -0
- package/dist/event/ticket.js.map +1 -1
- package/package.json +1 -1
- package/src/crm/groupOrder.ts +9 -0
- package/src/event/ticket.ts +9 -0
package/dist/crm/groupOrder.d.ts
CHANGED
|
@@ -17,7 +17,14 @@ export declare enum IGroupOrderHistoryType {
|
|
|
17
17
|
STATUS = "status",
|
|
18
18
|
DEBT_DOC = "debt_doc",
|
|
19
19
|
DEBT_DOC_FAILED = "debt_doc_failed",
|
|
20
|
-
DEBT_DOC_SKIPPED = "debt_doc_skipped"
|
|
20
|
+
DEBT_DOC_SKIPPED = "debt_doc_skipped",
|
|
21
|
+
CAPTURE = "capture",
|
|
22
|
+
CAPTURE_RELEASED = "capture_released",
|
|
23
|
+
CAPTURE_FAILED = "capture_failed",
|
|
24
|
+
/** A slot was captured beyond its remaining capacity — recorded for a human, never refused (#1002 §6). */
|
|
25
|
+
CAPTURE_OVER_CAPACITY = "capture_over_capacity",
|
|
26
|
+
/** `resend` amend: the admin chose to keep the old seats until the new signature lands (#1002 §4). */
|
|
27
|
+
CAPTURE_RETAINED = "capture_retained"
|
|
21
28
|
}
|
|
22
29
|
export interface IGroupOrderEmailContact {
|
|
23
30
|
email: string;
|
package/dist/crm/groupOrder.js
CHANGED
|
@@ -22,5 +22,14 @@ var IGroupOrderHistoryType;
|
|
|
22
22
|
IGroupOrderHistoryType["DEBT_DOC"] = "debt_doc";
|
|
23
23
|
IGroupOrderHistoryType["DEBT_DOC_FAILED"] = "debt_doc_failed";
|
|
24
24
|
IGroupOrderHistoryType["DEBT_DOC_SKIPPED"] = "debt_doc_skipped";
|
|
25
|
+
// #1002 — seat capture. `capture_failed` is recorded rather than thrown: capture runs on the public
|
|
26
|
+
// signing route and must never fail a signature.
|
|
27
|
+
IGroupOrderHistoryType["CAPTURE"] = "capture";
|
|
28
|
+
IGroupOrderHistoryType["CAPTURE_RELEASED"] = "capture_released";
|
|
29
|
+
IGroupOrderHistoryType["CAPTURE_FAILED"] = "capture_failed";
|
|
30
|
+
/** A slot was captured beyond its remaining capacity — recorded for a human, never refused (#1002 §6). */
|
|
31
|
+
IGroupOrderHistoryType["CAPTURE_OVER_CAPACITY"] = "capture_over_capacity";
|
|
32
|
+
/** `resend` amend: the admin chose to keep the old seats until the new signature lands (#1002 §4). */
|
|
33
|
+
IGroupOrderHistoryType["CAPTURE_RETAINED"] = "capture_retained";
|
|
25
34
|
})(IGroupOrderHistoryType || (exports.IGroupOrderHistoryType = IGroupOrderHistoryType = {}));
|
|
26
35
|
//# sourceMappingURL=groupOrder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groupOrder.js","sourceRoot":"","sources":["../../src/crm/groupOrder.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AAEH,sFAAsF;AACtF,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;AACnB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"groupOrder.js","sourceRoot":"","sources":["../../src/crm/groupOrder.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AAEH,sFAAsF;AACtF,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;AACnB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AAED,IAAY,sBAgBX;AAhBD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;IACjB,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;IACrB,6DAAmC,CAAA;IACnC,+DAAqC,CAAA;IACrC,oGAAoG;IACpG,iDAAiD;IACjD,6CAAmB,CAAA;IACnB,+DAAqC,CAAA;IACrC,2DAAiC,CAAA;IACjC,0GAA0G;IAC1G,yEAA+C,CAAA;IAC/C,sGAAsG;IACtG,+DAAqC,CAAA;AACvC,CAAC,EAhBW,sBAAsB,sCAAtB,sBAAsB,QAgBjC"}
|
package/dist/event/ticket.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
export declare enum ITicketTypeEnum {
|
|
2
2
|
TICKET = "ticket",
|
|
3
3
|
SYSTEM_FREE_TICKET = "SystemFreeTicket",
|
|
4
|
-
SPECIAL = "special"
|
|
4
|
+
SPECIAL = "special",
|
|
5
|
+
/**
|
|
6
|
+
* #1002 — the hidden per-event "קבוצות" ticket every group order's seats are captured on.
|
|
7
|
+
* Its own type, not SYSTEM_FREE_TICKET: `is_enabled: false` gives NO backend protection
|
|
8
|
+
* (nothing filters or validates it, and it is typed as a string in the ticket response
|
|
9
|
+
* schemas so every `!== false` guard on the client is dead), and a hidden ticket added to an
|
|
10
|
+
* enabled event link is publicly buyable. The type is what excludes it from the link picker,
|
|
11
|
+
* the public page and the cashier, and what the order path rejects for non-group callers.
|
|
12
|
+
*/
|
|
13
|
+
GROUP_CAPACITY = "GroupCapacity"
|
|
5
14
|
}
|
|
6
15
|
export interface IGroupDiscountRule {
|
|
7
16
|
minQuantity: number;
|
package/dist/event/ticket.js
CHANGED
|
@@ -6,5 +6,14 @@ var ITicketTypeEnum;
|
|
|
6
6
|
ITicketTypeEnum["TICKET"] = "ticket";
|
|
7
7
|
ITicketTypeEnum["SYSTEM_FREE_TICKET"] = "SystemFreeTicket";
|
|
8
8
|
ITicketTypeEnum["SPECIAL"] = "special";
|
|
9
|
+
/**
|
|
10
|
+
* #1002 — the hidden per-event "קבוצות" ticket every group order's seats are captured on.
|
|
11
|
+
* Its own type, not SYSTEM_FREE_TICKET: `is_enabled: false` gives NO backend protection
|
|
12
|
+
* (nothing filters or validates it, and it is typed as a string in the ticket response
|
|
13
|
+
* schemas so every `!== false` guard on the client is dead), and a hidden ticket added to an
|
|
14
|
+
* enabled event link is publicly buyable. The type is what excludes it from the link picker,
|
|
15
|
+
* the public page and the cashier, and what the order path rejects for non-group callers.
|
|
16
|
+
*/
|
|
17
|
+
ITicketTypeEnum["GROUP_CAPACITY"] = "GroupCapacity";
|
|
9
18
|
})(ITicketTypeEnum || (exports.ITicketTypeEnum = ITicketTypeEnum = {}));
|
|
10
19
|
//# sourceMappingURL=ticket.js.map
|
package/dist/event/ticket.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.js","sourceRoot":"","sources":["../../src/event/ticket.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"ticket.js","sourceRoot":"","sources":["../../src/event/ticket.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAaX;AAbD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,0DAAuC,CAAA;IACvC,sCAAmB,CAAA;IACnB;;;;;;;OAOG;IACH,mDAAgC,CAAA;AAClC,CAAC,EAbW,eAAe,+BAAf,eAAe,QAa1B"}
|
package/package.json
CHANGED
package/src/crm/groupOrder.ts
CHANGED
|
@@ -21,6 +21,15 @@ export enum IGroupOrderHistoryType {
|
|
|
21
21
|
DEBT_DOC = "debt_doc",
|
|
22
22
|
DEBT_DOC_FAILED = "debt_doc_failed",
|
|
23
23
|
DEBT_DOC_SKIPPED = "debt_doc_skipped",
|
|
24
|
+
// #1002 — seat capture. `capture_failed` is recorded rather than thrown: capture runs on the public
|
|
25
|
+
// signing route and must never fail a signature.
|
|
26
|
+
CAPTURE = "capture",
|
|
27
|
+
CAPTURE_RELEASED = "capture_released",
|
|
28
|
+
CAPTURE_FAILED = "capture_failed",
|
|
29
|
+
/** A slot was captured beyond its remaining capacity — recorded for a human, never refused (#1002 §6). */
|
|
30
|
+
CAPTURE_OVER_CAPACITY = "capture_over_capacity",
|
|
31
|
+
/** `resend` amend: the admin chose to keep the old seats until the new signature lands (#1002 §4). */
|
|
32
|
+
CAPTURE_RETAINED = "capture_retained",
|
|
24
33
|
}
|
|
25
34
|
|
|
26
35
|
export interface IGroupOrderEmailContact {
|
package/src/event/ticket.ts
CHANGED
|
@@ -2,6 +2,15 @@ export enum ITicketTypeEnum {
|
|
|
2
2
|
TICKET = "ticket",
|
|
3
3
|
SYSTEM_FREE_TICKET = "SystemFreeTicket",
|
|
4
4
|
SPECIAL = "special",
|
|
5
|
+
/**
|
|
6
|
+
* #1002 — the hidden per-event "קבוצות" ticket every group order's seats are captured on.
|
|
7
|
+
* Its own type, not SYSTEM_FREE_TICKET: `is_enabled: false` gives NO backend protection
|
|
8
|
+
* (nothing filters or validates it, and it is typed as a string in the ticket response
|
|
9
|
+
* schemas so every `!== false` guard on the client is dead), and a hidden ticket added to an
|
|
10
|
+
* enabled event link is publicly buyable. The type is what excludes it from the link picker,
|
|
11
|
+
* the public page and the cashier, and what the order path rejects for non-group callers.
|
|
12
|
+
*/
|
|
13
|
+
GROUP_CAPACITY = "GroupCapacity",
|
|
5
14
|
}
|
|
6
15
|
|
|
7
16
|
export interface IGroupDiscountRule {
|