@bondsports/types 2.4.84 → 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.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +5 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +1 -1
- package/dist/types/membership/dto/expended-member.dto.d.ts +2 -0
- package/dist/types/membership/dto/expended-member.dto.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +2 -0
- package/dist/types/online-booking/types/consts/online-booking.consts.d.ts +2 -0
- package/dist/types/online-booking/types/consts/online-booking.consts.js +10 -1
- package/dist/types/online-booking/types/consts/online-booking.consts.js.map +1 -1
- package/dist/types/payment/dto/payment-method.dto.d.ts +2 -2
- package/dist/types/payment/types/interfaces/index.d.ts +1 -0
- package/dist/types/payment/types/interfaces/index.js +1 -0
- package/dist/types/payment/types/interfaces/index.js.map +1 -1
- package/dist/types/payment/types/interfaces/stripe-service.interfaces.d.ts +51 -0
- package/dist/types/payment/types/interfaces/stripe-service.interfaces.js +3 -0
- package/dist/types/payment/types/interfaces/stripe-service.interfaces.js.map +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +4 -14
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +19 -33
- package/dist/types/product-pricing/dto/product.dto.js +10 -4
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +6 -6
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +20 -1
- package/dist/types/product-pricing/types/enums/product.enums.js +39 -1
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +11 -13
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +1 -1
- package/dist/types/terminal/dto/index.d.ts +3 -0
- package/dist/types/terminal/dto/index.js +20 -0
- package/dist/types/terminal/dto/index.js.map +1 -0
- package/dist/types/terminal/dto/terminal-actions.dto.d.ts +89 -0
- package/dist/types/terminal/dto/terminal-actions.dto.js +60 -0
- package/dist/types/terminal/dto/terminal-actions.dto.js.map +1 -0
- package/dist/types/terminal/dto/terminal-actions.enums.d.ts +8 -0
- package/dist/types/terminal/dto/terminal-actions.enums.js +14 -0
- package/dist/types/terminal/dto/terminal-actions.enums.js.map +1 -0
- package/dist/types/terminal/dto/terminal-readers.dto.d.ts +28 -0
- package/dist/types/terminal/dto/terminal-readers.dto.js +20 -0
- package/dist/types/terminal/dto/terminal-readers.dto.js.map +1 -0
- package/dist/types/terminal/index.d.ts +2 -0
- package/dist/types/terminal/index.js +19 -0
- package/dist/types/terminal/index.js.map +1 -0
- package/dist/types/terminal/types/classes/index.d.ts +1 -0
- package/dist/types/terminal/types/classes/index.js +18 -0
- package/dist/types/terminal/types/classes/index.js.map +1 -0
- package/dist/types/terminal/types/classes/terminal-reader.classes.d.ts +17 -0
- package/dist/types/terminal/types/classes/terminal-reader.classes.js +10 -0
- package/dist/types/terminal/types/classes/terminal-reader.classes.js.map +1 -0
- package/dist/types/terminal/types/consts/index.d.ts +4 -0
- package/dist/types/terminal/types/consts/index.js +21 -0
- package/dist/types/terminal/types/consts/index.js.map +1 -0
- package/dist/types/terminal/types/consts/terminal-action.consts.d.ts +7 -0
- package/dist/types/terminal/types/consts/terminal-action.consts.js +11 -0
- package/dist/types/terminal/types/consts/terminal-action.consts.js.map +1 -0
- package/dist/types/terminal/types/consts/terminal-events.consts.d.ts +3 -0
- package/dist/types/terminal/types/consts/terminal-events.consts.js +7 -0
- package/dist/types/terminal/types/consts/terminal-events.consts.js.map +1 -0
- package/dist/types/terminal/types/consts/terminal-readers.consts.d.ts +1 -0
- package/dist/types/terminal/types/consts/terminal-readers.consts.js +6 -0
- package/dist/types/terminal/types/consts/terminal-readers.consts.js.map +1 -0
- package/dist/types/terminal/types/consts/terminal-webhook.consts.d.ts +4 -0
- package/dist/types/terminal/types/consts/terminal-webhook.consts.js +13 -0
- package/dist/types/terminal/types/consts/terminal-webhook.consts.js.map +1 -0
- package/dist/types/terminal/types/enums/index.d.ts +3 -0
- package/dist/types/terminal/types/enums/index.js +20 -0
- package/dist/types/terminal/types/enums/index.js.map +1 -0
- package/dist/types/terminal/types/enums/terminal-action.enums.d.ts +24 -0
- package/dist/types/terminal/types/enums/terminal-action.enums.js +33 -0
- package/dist/types/terminal/types/enums/terminal-action.enums.js.map +1 -0
- package/dist/types/terminal/types/enums/terminal-readers.enums.d.ts +47 -0
- package/dist/types/terminal/types/enums/terminal-readers.enums.js +56 -0
- package/dist/types/terminal/types/enums/terminal-readers.enums.js.map +1 -0
- package/dist/types/terminal/types/enums/terminal-webhook.enums.d.ts +15 -0
- package/dist/types/terminal/types/enums/terminal-webhook.enums.js +22 -0
- package/dist/types/terminal/types/enums/terminal-webhook.enums.js.map +1 -0
- package/dist/types/terminal/types/index.d.ts +4 -0
- package/dist/types/terminal/types/index.js +21 -0
- package/dist/types/terminal/types/index.js.map +1 -0
- package/dist/types/terminal/types/interfaces/index.d.ts +3 -0
- package/dist/types/terminal/types/interfaces/index.js +20 -0
- package/dist/types/terminal/types/interfaces/index.js.map +1 -0
- package/dist/types/terminal/types/interfaces/terminal-action-service.interfaces.d.ts +82 -0
- package/dist/types/terminal/types/interfaces/terminal-action-service.interfaces.js +3 -0
- package/dist/types/terminal/types/interfaces/terminal-action-service.interfaces.js.map +1 -0
- package/dist/types/terminal/types/interfaces/terminal-action.interfaces.d.ts +71 -0
- package/dist/types/terminal/types/interfaces/terminal-action.interfaces.js +3 -0
- package/dist/types/terminal/types/interfaces/terminal-action.interfaces.js.map +1 -0
- package/dist/types/terminal/types/interfaces/terminal-webhook.interfaces.d.ts +52 -0
- package/dist/types/terminal/types/interfaces/terminal-webhook.interfaces.js +3 -0
- package/dist/types/terminal/types/interfaces/terminal-webhook.interfaces.js.map +1 -0
- package/dist/types/waitlist/dto/waitlist.dto.d.ts +1 -0
- package/dist/types/waitlist/dto/waitlist.dto.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare enum TerminalReaderDeviceTypeEnum {
|
|
2
|
+
BBPOS_WISEPAD3 = "bbpos_wisepad3",
|
|
3
|
+
STRIPE_M2 = "stripe_m2",
|
|
4
|
+
STRIPE_S700 = "stripe_s700",
|
|
5
|
+
BBPOS_CHIPPER2X = "bbpos_chipper2x",
|
|
6
|
+
BBPOS_WISEPOS_E = "bbpos_wisepos_e",
|
|
7
|
+
VERIFONE_P400 = "verifone_P400",
|
|
8
|
+
SIMULATED_WISEPOS_E = "simulated_wisepos_e",
|
|
9
|
+
SIMULATED_STRIPE_S700 = "simulated_stripe_s700",
|
|
10
|
+
MOBILE_PHONE_READER = "mobile_phone_reader",
|
|
11
|
+
STRIPE_S710 = "stripe_s710",
|
|
12
|
+
VERIFONE_V660P = "verifone_v660p",
|
|
13
|
+
VERIFONE_UX700 = "verifone_ux700",
|
|
14
|
+
VERIFONE_P630 = "verifone_p630",
|
|
15
|
+
VERIFONE_M425 = "verifone_m425",
|
|
16
|
+
SIMULATED_STRIPE_S710 = "simulated_stripe_s710",
|
|
17
|
+
SIMULATED_VERIFONE_V660P = "simulated_verifone_v660p",
|
|
18
|
+
SIMULATED_VERIFONE_UX700 = "simulated_verifone_ux700",
|
|
19
|
+
SIMULATED_VERIFONE_P630 = "simulated_verifone_p630",
|
|
20
|
+
SIMULATED_VERIFONE_M425 = "simulated_verifone_m425"
|
|
21
|
+
}
|
|
22
|
+
export declare enum SimulatedTerminalReaderDeviceTypeEnum {
|
|
23
|
+
SIMULATED_WISEPOS_E = "simulated_wisepos_e",
|
|
24
|
+
SIMULATED_STRIPE_S700 = "simulated_stripe_s700",
|
|
25
|
+
SIMULATED_STRIPE_S710 = "simulated_stripe_s710",
|
|
26
|
+
SIMULATED_VERIFONE_V660P = "simulated_verifone_v660p",
|
|
27
|
+
SIMULATED_VERIFONE_UX700 = "simulated_verifone_ux700",
|
|
28
|
+
SIMULATED_VERIFONE_P630 = "simulated_verifone_p630",
|
|
29
|
+
SIMULATED_VERIFONE_M425 = "simulated_verifone_m425"
|
|
30
|
+
}
|
|
31
|
+
export declare enum TerminalReaderStatusEnum {
|
|
32
|
+
OFFLINE = "offline",
|
|
33
|
+
ONLINE = "online"
|
|
34
|
+
}
|
|
35
|
+
export declare enum TerminalReaderActionStatusEnum {
|
|
36
|
+
FAILED = "failed",
|
|
37
|
+
IN_PROGRESS = "in_progress",
|
|
38
|
+
SUCCEEDED = "succeeded"
|
|
39
|
+
}
|
|
40
|
+
export declare enum TerminalReaderActionTypeEnum {
|
|
41
|
+
COLLECT_INPUTS = "collect_inputs",
|
|
42
|
+
PROCESS_PAYMENT_INTENT = "process_payment_intent",
|
|
43
|
+
PROCESS_SETUP_INTENT = "process_setup_intent",
|
|
44
|
+
PRESENT_PAYMENT_METHOD = "present_payment_method",
|
|
45
|
+
REFUND_PAYMENT = "refund_payment",
|
|
46
|
+
SET_READER_DISPLAY = "set_reader_display"
|
|
47
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TerminalReaderActionTypeEnum = exports.TerminalReaderActionStatusEnum = exports.TerminalReaderStatusEnum = exports.SimulatedTerminalReaderDeviceTypeEnum = exports.TerminalReaderDeviceTypeEnum = void 0;
|
|
4
|
+
var TerminalReaderDeviceTypeEnum;
|
|
5
|
+
(function (TerminalReaderDeviceTypeEnum) {
|
|
6
|
+
TerminalReaderDeviceTypeEnum["BBPOS_WISEPAD3"] = "bbpos_wisepad3";
|
|
7
|
+
TerminalReaderDeviceTypeEnum["STRIPE_M2"] = "stripe_m2";
|
|
8
|
+
TerminalReaderDeviceTypeEnum["STRIPE_S700"] = "stripe_s700";
|
|
9
|
+
TerminalReaderDeviceTypeEnum["BBPOS_CHIPPER2X"] = "bbpos_chipper2x";
|
|
10
|
+
TerminalReaderDeviceTypeEnum["BBPOS_WISEPOS_E"] = "bbpos_wisepos_e";
|
|
11
|
+
TerminalReaderDeviceTypeEnum["VERIFONE_P400"] = "verifone_P400";
|
|
12
|
+
TerminalReaderDeviceTypeEnum["SIMULATED_WISEPOS_E"] = "simulated_wisepos_e";
|
|
13
|
+
TerminalReaderDeviceTypeEnum["SIMULATED_STRIPE_S700"] = "simulated_stripe_s700";
|
|
14
|
+
TerminalReaderDeviceTypeEnum["MOBILE_PHONE_READER"] = "mobile_phone_reader";
|
|
15
|
+
TerminalReaderDeviceTypeEnum["STRIPE_S710"] = "stripe_s710";
|
|
16
|
+
TerminalReaderDeviceTypeEnum["VERIFONE_V660P"] = "verifone_v660p";
|
|
17
|
+
TerminalReaderDeviceTypeEnum["VERIFONE_UX700"] = "verifone_ux700";
|
|
18
|
+
TerminalReaderDeviceTypeEnum["VERIFONE_P630"] = "verifone_p630";
|
|
19
|
+
TerminalReaderDeviceTypeEnum["VERIFONE_M425"] = "verifone_m425";
|
|
20
|
+
TerminalReaderDeviceTypeEnum["SIMULATED_STRIPE_S710"] = "simulated_stripe_s710";
|
|
21
|
+
TerminalReaderDeviceTypeEnum["SIMULATED_VERIFONE_V660P"] = "simulated_verifone_v660p";
|
|
22
|
+
TerminalReaderDeviceTypeEnum["SIMULATED_VERIFONE_UX700"] = "simulated_verifone_ux700";
|
|
23
|
+
TerminalReaderDeviceTypeEnum["SIMULATED_VERIFONE_P630"] = "simulated_verifone_p630";
|
|
24
|
+
TerminalReaderDeviceTypeEnum["SIMULATED_VERIFONE_M425"] = "simulated_verifone_m425";
|
|
25
|
+
})(TerminalReaderDeviceTypeEnum = exports.TerminalReaderDeviceTypeEnum || (exports.TerminalReaderDeviceTypeEnum = {}));
|
|
26
|
+
var SimulatedTerminalReaderDeviceTypeEnum;
|
|
27
|
+
(function (SimulatedTerminalReaderDeviceTypeEnum) {
|
|
28
|
+
SimulatedTerminalReaderDeviceTypeEnum["SIMULATED_WISEPOS_E"] = "simulated_wisepos_e";
|
|
29
|
+
SimulatedTerminalReaderDeviceTypeEnum["SIMULATED_STRIPE_S700"] = "simulated_stripe_s700";
|
|
30
|
+
SimulatedTerminalReaderDeviceTypeEnum["SIMULATED_STRIPE_S710"] = "simulated_stripe_s710";
|
|
31
|
+
SimulatedTerminalReaderDeviceTypeEnum["SIMULATED_VERIFONE_V660P"] = "simulated_verifone_v660p";
|
|
32
|
+
SimulatedTerminalReaderDeviceTypeEnum["SIMULATED_VERIFONE_UX700"] = "simulated_verifone_ux700";
|
|
33
|
+
SimulatedTerminalReaderDeviceTypeEnum["SIMULATED_VERIFONE_P630"] = "simulated_verifone_p630";
|
|
34
|
+
SimulatedTerminalReaderDeviceTypeEnum["SIMULATED_VERIFONE_M425"] = "simulated_verifone_m425";
|
|
35
|
+
})(SimulatedTerminalReaderDeviceTypeEnum = exports.SimulatedTerminalReaderDeviceTypeEnum || (exports.SimulatedTerminalReaderDeviceTypeEnum = {}));
|
|
36
|
+
var TerminalReaderStatusEnum;
|
|
37
|
+
(function (TerminalReaderStatusEnum) {
|
|
38
|
+
TerminalReaderStatusEnum["OFFLINE"] = "offline";
|
|
39
|
+
TerminalReaderStatusEnum["ONLINE"] = "online";
|
|
40
|
+
})(TerminalReaderStatusEnum = exports.TerminalReaderStatusEnum || (exports.TerminalReaderStatusEnum = {}));
|
|
41
|
+
var TerminalReaderActionStatusEnum;
|
|
42
|
+
(function (TerminalReaderActionStatusEnum) {
|
|
43
|
+
TerminalReaderActionStatusEnum["FAILED"] = "failed";
|
|
44
|
+
TerminalReaderActionStatusEnum["IN_PROGRESS"] = "in_progress";
|
|
45
|
+
TerminalReaderActionStatusEnum["SUCCEEDED"] = "succeeded";
|
|
46
|
+
})(TerminalReaderActionStatusEnum = exports.TerminalReaderActionStatusEnum || (exports.TerminalReaderActionStatusEnum = {}));
|
|
47
|
+
var TerminalReaderActionTypeEnum;
|
|
48
|
+
(function (TerminalReaderActionTypeEnum) {
|
|
49
|
+
TerminalReaderActionTypeEnum["COLLECT_INPUTS"] = "collect_inputs";
|
|
50
|
+
TerminalReaderActionTypeEnum["PROCESS_PAYMENT_INTENT"] = "process_payment_intent";
|
|
51
|
+
TerminalReaderActionTypeEnum["PROCESS_SETUP_INTENT"] = "process_setup_intent";
|
|
52
|
+
TerminalReaderActionTypeEnum["PRESENT_PAYMENT_METHOD"] = "present_payment_method";
|
|
53
|
+
TerminalReaderActionTypeEnum["REFUND_PAYMENT"] = "refund_payment";
|
|
54
|
+
TerminalReaderActionTypeEnum["SET_READER_DISPLAY"] = "set_reader_display";
|
|
55
|
+
})(TerminalReaderActionTypeEnum = exports.TerminalReaderActionTypeEnum || (exports.TerminalReaderActionTypeEnum = {}));
|
|
56
|
+
//# sourceMappingURL=terminal-readers.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-readers.enums.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/enums/terminal-readers.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BAoBX;AApBD,WAAY,4BAA4B;IACvC,iEAAiC,CAAA;IACjC,uDAAuB,CAAA;IACvB,2DAA2B,CAAA;IAC3B,mEAAmC,CAAA;IACnC,mEAAmC,CAAA;IACnC,+DAA+B,CAAA;IAC/B,2EAA2C,CAAA;IAC3C,+EAA+C,CAAA;IAC/C,2EAA2C,CAAA;IAC3C,2DAA2B,CAAA;IAC3B,iEAAiC,CAAA;IACjC,iEAAiC,CAAA;IACjC,+DAA+B,CAAA;IAC/B,+DAA+B,CAAA;IAC/B,+EAA+C,CAAA;IAC/C,qFAAqD,CAAA;IACrD,qFAAqD,CAAA;IACrD,mFAAmD,CAAA;IACnD,mFAAmD,CAAA;AACpD,CAAC,EApBW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAoBvC;AAED,IAAY,qCAQX;AARD,WAAY,qCAAqC;IAChD,oFAA2C,CAAA;IAC3C,wFAA+C,CAAA;IAC/C,wFAA+C,CAAA;IAC/C,8FAAqD,CAAA;IACrD,8FAAqD,CAAA;IACrD,4FAAmD,CAAA;IACnD,4FAAmD,CAAA;AACpD,CAAC,EARW,qCAAqC,GAArC,6CAAqC,KAArC,6CAAqC,QAQhD;AAED,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IACnC,+CAAmB,CAAA;IACnB,6CAAiB,CAAA;AAClB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;AAED,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,mDAAiB,CAAA;IACjB,6DAA2B,CAAA;IAC3B,yDAAuB,CAAA;AACxB,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,4BAOX;AAPD,WAAY,4BAA4B;IACvC,iEAAiC,CAAA;IACjC,iFAAiD,CAAA;IACjD,6EAA6C,CAAA;IAC7C,iFAAiD,CAAA;IACjD,iEAAiC,CAAA;IACjC,yEAAyC,CAAA;AAC1C,CAAC,EAPW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAOvC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum TerminalWebhookEventTypeEnum {
|
|
2
|
+
ACTION_SUCCEEDED = "action_succeeded",
|
|
3
|
+
ACTION_FAILED = "action_failed",
|
|
4
|
+
ACTION_UPDATED = "action_updated"
|
|
5
|
+
}
|
|
6
|
+
export declare enum TerminalWebhookActionTypeEnum {
|
|
7
|
+
PROCESS_PAYMENT_INTENT = "process_payment_intent",
|
|
8
|
+
PROCESS_SETUP_INTENT = "process_setup_intent",
|
|
9
|
+
REFUND_PAYMENT = "refund_payment",
|
|
10
|
+
COLLECT_INPUTS = "collect_inputs",
|
|
11
|
+
SET_READER_DISPLAY = "set_reader_display"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TerminalReaderSseEventTypeEnum {
|
|
14
|
+
READER_STATE = "reader_state"
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TerminalReaderSseEventTypeEnum = exports.TerminalWebhookActionTypeEnum = exports.TerminalWebhookEventTypeEnum = void 0;
|
|
4
|
+
var TerminalWebhookEventTypeEnum;
|
|
5
|
+
(function (TerminalWebhookEventTypeEnum) {
|
|
6
|
+
TerminalWebhookEventTypeEnum["ACTION_SUCCEEDED"] = "action_succeeded";
|
|
7
|
+
TerminalWebhookEventTypeEnum["ACTION_FAILED"] = "action_failed";
|
|
8
|
+
TerminalWebhookEventTypeEnum["ACTION_UPDATED"] = "action_updated";
|
|
9
|
+
})(TerminalWebhookEventTypeEnum = exports.TerminalWebhookEventTypeEnum || (exports.TerminalWebhookEventTypeEnum = {}));
|
|
10
|
+
var TerminalWebhookActionTypeEnum;
|
|
11
|
+
(function (TerminalWebhookActionTypeEnum) {
|
|
12
|
+
TerminalWebhookActionTypeEnum["PROCESS_PAYMENT_INTENT"] = "process_payment_intent";
|
|
13
|
+
TerminalWebhookActionTypeEnum["PROCESS_SETUP_INTENT"] = "process_setup_intent";
|
|
14
|
+
TerminalWebhookActionTypeEnum["REFUND_PAYMENT"] = "refund_payment";
|
|
15
|
+
TerminalWebhookActionTypeEnum["COLLECT_INPUTS"] = "collect_inputs";
|
|
16
|
+
TerminalWebhookActionTypeEnum["SET_READER_DISPLAY"] = "set_reader_display";
|
|
17
|
+
})(TerminalWebhookActionTypeEnum = exports.TerminalWebhookActionTypeEnum || (exports.TerminalWebhookActionTypeEnum = {}));
|
|
18
|
+
var TerminalReaderSseEventTypeEnum;
|
|
19
|
+
(function (TerminalReaderSseEventTypeEnum) {
|
|
20
|
+
TerminalReaderSseEventTypeEnum["READER_STATE"] = "reader_state";
|
|
21
|
+
})(TerminalReaderSseEventTypeEnum = exports.TerminalReaderSseEventTypeEnum || (exports.TerminalReaderSseEventTypeEnum = {}));
|
|
22
|
+
//# sourceMappingURL=terminal-webhook.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-webhook.enums.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/enums/terminal-webhook.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BAIX;AAJD,WAAY,4BAA4B;IACvC,qEAAqC,CAAA;IACrC,+DAA+B,CAAA;IAC/B,iEAAiC,CAAA;AAClC,CAAC,EAJW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAIvC;AAED,IAAY,6BAMX;AAND,WAAY,6BAA6B;IACxC,kFAAiD,CAAA;IACjD,8EAA6C,CAAA;IAC7C,kEAAiC,CAAA;IACjC,kEAAiC,CAAA;IACjC,0EAAyC,CAAA;AAC1C,CAAC,EANW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAMxC;AAED,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACzC,+DAA6B,CAAA;AAC9B,CAAC,EAFW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAEzC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./classes"), exports);
|
|
18
|
+
__exportStar(require("./consts"), exports);
|
|
19
|
+
__exportStar(require("./enums"), exports);
|
|
20
|
+
__exportStar(require("./interfaces"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/terminal/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./terminal-action-service.interfaces"), exports);
|
|
18
|
+
__exportStar(require("./terminal-action.interfaces"), exports);
|
|
19
|
+
__exportStar(require("./terminal-webhook.interfaces"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,+DAA6C;AAC7C,gEAA8C"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import Stripe from 'stripe';
|
|
2
|
+
import { TerminalActionResponseDto } from '../../dto/terminal-actions.dto';
|
|
3
|
+
import { TerminalReaderActionTypeEnum, TerminalReaderStatusEnum } from '../enums/terminal-readers.enums';
|
|
4
|
+
import { ITerminalActionInitiatedBy, ITerminalActiveAction, ITerminalGhostCancel } from './terminal-action.interfaces';
|
|
5
|
+
export type StripeReaderAction = (Stripe.Terminal.Reader.Action & {
|
|
6
|
+
id?: string;
|
|
7
|
+
}) | null;
|
|
8
|
+
export interface IBusyState {
|
|
9
|
+
actionId: string | null;
|
|
10
|
+
busy: boolean;
|
|
11
|
+
initiatedBy: ITerminalActionInitiatedBy | null;
|
|
12
|
+
type: TerminalReaderActionTypeEnum | null;
|
|
13
|
+
}
|
|
14
|
+
export interface IBusyStateSnapshot {
|
|
15
|
+
liveActionTargetId: string | null;
|
|
16
|
+
busyState: IBusyState;
|
|
17
|
+
ghostCancel: ITerminalGhostCancel | null;
|
|
18
|
+
previous: ITerminalActiveAction | null;
|
|
19
|
+
readerStatus: TerminalReaderStatusEnum | null;
|
|
20
|
+
}
|
|
21
|
+
export interface ITriggerDecisionDispatch {
|
|
22
|
+
actionDispatchedLogMeta: {
|
|
23
|
+
forced: boolean;
|
|
24
|
+
wasBusy: false;
|
|
25
|
+
};
|
|
26
|
+
kind: 'dispatch';
|
|
27
|
+
}
|
|
28
|
+
export interface ITriggerDecisionRejectBusy {
|
|
29
|
+
busyState: IBusyState;
|
|
30
|
+
kind: 'reject_busy';
|
|
31
|
+
staleGhostCancelMarker: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ITriggerDecisionRejectOffline {
|
|
34
|
+
kind: 'reject_offline';
|
|
35
|
+
}
|
|
36
|
+
export interface ITriggerDecisionForceOverride {
|
|
37
|
+
forceParams: IForceActionTriggerParams;
|
|
38
|
+
kind: 'force_override';
|
|
39
|
+
}
|
|
40
|
+
export interface ITriggerDecisionReclaimGhostAction {
|
|
41
|
+
forceParams: IForceActionTriggerParams;
|
|
42
|
+
kind: 'reclaim_ghost_action';
|
|
43
|
+
}
|
|
44
|
+
export type TTriggerDecision = ITriggerDecisionDispatch | ITriggerDecisionRejectBusy | ITriggerDecisionRejectOffline | ITriggerDecisionForceOverride | ITriggerDecisionReclaimGhostAction;
|
|
45
|
+
export interface IActionRejectionLogMeta {
|
|
46
|
+
organizationId: number;
|
|
47
|
+
readerId: string;
|
|
48
|
+
actionType: TerminalReaderActionTypeEnum;
|
|
49
|
+
ghostCancelAgeMs: number | null;
|
|
50
|
+
ghostCancelStripeCode: string | null;
|
|
51
|
+
hasGhostCancelMarker: boolean;
|
|
52
|
+
hasRegistryEntry: boolean;
|
|
53
|
+
latencyMs: number;
|
|
54
|
+
readerStatus: TerminalReaderStatusEnum | null;
|
|
55
|
+
}
|
|
56
|
+
export interface IActionLogTemplates {
|
|
57
|
+
actionDispatched: string;
|
|
58
|
+
dispatchContention: string;
|
|
59
|
+
dispatchFollowupFailed: string;
|
|
60
|
+
forceOverrideInFlightAction: string;
|
|
61
|
+
ghostActionReclaimed: string;
|
|
62
|
+
overrideContention: string;
|
|
63
|
+
readerBusyRejected: string;
|
|
64
|
+
readerOfflineRejected: string;
|
|
65
|
+
}
|
|
66
|
+
export interface IExecuteActionTriggerParams {
|
|
67
|
+
organizationId: number;
|
|
68
|
+
readerId: string;
|
|
69
|
+
actionType: TerminalReaderActionTypeEnum;
|
|
70
|
+
dispatch: (readerId: string) => Promise<TerminalActionResponseDto>;
|
|
71
|
+
force?: boolean;
|
|
72
|
+
logTemplates: IActionLogTemplates;
|
|
73
|
+
}
|
|
74
|
+
export interface IForceActionTriggerParams extends IExecuteActionTriggerParams {
|
|
75
|
+
startedAt: number;
|
|
76
|
+
}
|
|
77
|
+
export interface IDispatchAndRegisterParams extends IForceActionTriggerParams {
|
|
78
|
+
actionDispatchedLogMeta?: {
|
|
79
|
+
forced: boolean;
|
|
80
|
+
wasBusy?: boolean;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-action-service.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/interfaces/terminal-action-service.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { TerminalActionCancelReasonEnum, TerminalReaderEventTypeEnum } from '../enums/terminal-action.enums';
|
|
2
|
+
import { TerminalReaderActionTypeEnum } from '../enums/terminal-readers.enums';
|
|
3
|
+
/**
|
|
4
|
+
* Entry stored in the Redis action registry (`terminal:reader:<id>:active`) when an
|
|
5
|
+
* action is successfully dispatched. Cleared by the webhook handler on
|
|
6
|
+
* `action_succeeded` / `action_failed`, and by this service on synthetic `action_canceled`.
|
|
7
|
+
*/
|
|
8
|
+
export interface ITerminalActiveAction {
|
|
9
|
+
organizationId: number;
|
|
10
|
+
actionId: string | null;
|
|
11
|
+
userId: number | null;
|
|
12
|
+
displayName: string | null;
|
|
13
|
+
startedAt: number;
|
|
14
|
+
type: TerminalReaderActionTypeEnum;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
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.
|
|
19
|
+
* Stripe's `Terminal.Reader.Action` has no id, so the action is keyed by the object it targets.
|
|
20
|
+
*/
|
|
21
|
+
export interface ITerminalPendingCancel {
|
|
22
|
+
bondActionId: string | null;
|
|
23
|
+
targetId: string;
|
|
24
|
+
actionType: TerminalReaderActionTypeEnum | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Short-lived Redis marker recording that a cancel or dispatch failed and may have left a ghost
|
|
28
|
+
* action running on the reader. Written whenever Stripe returns `terminal_reader_offline` /
|
|
29
|
+
* `terminal_reader_timeout`, and refreshed with whatever code a failed ghost-reclaim cancel returned.
|
|
30
|
+
*
|
|
31
|
+
* `stripeCode` therefore says why the cancel failed, not that the reader is unreachable: only the
|
|
32
|
+
* offline and timeout codes prove that, which is why the offline reclassification is gated on
|
|
33
|
+
* `isReaderUnreachableStripeCode` rather than on the marker's mere presence.
|
|
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
|
+
*
|
|
40
|
+
* The TTL only has to outlive Stripe's heartbeat lag: once the heartbeat itself reports `offline`,
|
|
41
|
+
* `readerStatus` carries the reclassification and the marker is redundant. Every failed cancel
|
|
42
|
+
* refreshes it, so a reader that stays unreachable keeps a live marker.
|
|
43
|
+
*/
|
|
44
|
+
export interface ITerminalGhostCancel {
|
|
45
|
+
at: number;
|
|
46
|
+
lastCancelAttemptAt: number;
|
|
47
|
+
pendingCancel: ITerminalPendingCancel | null;
|
|
48
|
+
stripeCode: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Identity of the user who initiated the in-flight action, surfaced to the frontend so it can
|
|
52
|
+
* render the Take-over modal. Null when the originator is unknown (e.g. live Stripe-state fallback).
|
|
53
|
+
*/
|
|
54
|
+
export interface ITerminalActionInitiatedBy {
|
|
55
|
+
userId: number | null;
|
|
56
|
+
displayName: string | null;
|
|
57
|
+
startedAt: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Synthetic `action_canceled` message published to the reader's Redis channel after a programmatic
|
|
61
|
+
* cancel (override or explicit cancel-action), since Stripe fires no webhook for programmatic cancels.
|
|
62
|
+
*/
|
|
63
|
+
export interface ITerminalSyntheticCancelMessage {
|
|
64
|
+
actionId: string | null;
|
|
65
|
+
readerId: string;
|
|
66
|
+
at: number;
|
|
67
|
+
canceledBy: {
|
|
68
|
+
reason: TerminalActionCancelReasonEnum;
|
|
69
|
+
};
|
|
70
|
+
type: TerminalReaderEventTypeEnum.ACTION_CANCELED;
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-action.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/interfaces/terminal-action.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { TerminalReaderActionStatusEnum } from '../enums/terminal-readers.enums';
|
|
2
|
+
import { TerminalReaderSseEventTypeEnum, TerminalWebhookActionTypeEnum, TerminalWebhookEventTypeEnum } from '../enums/terminal-webhook.enums';
|
|
3
|
+
import { ITerminalSyntheticCancelMessage } from './terminal-action.interfaces';
|
|
4
|
+
export interface ITerminalWebhookFailure {
|
|
5
|
+
failureCode: string | null;
|
|
6
|
+
failureMessage: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface ITerminalWebhookCollectInputs {
|
|
9
|
+
inputs: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface ITerminalWebhookNormalizedAction {
|
|
12
|
+
id: string | null;
|
|
13
|
+
paymentIntentId?: string | null;
|
|
14
|
+
refundId?: string | null;
|
|
15
|
+
setupIntentId?: string | null;
|
|
16
|
+
collectInputs?: ITerminalWebhookCollectInputs | null;
|
|
17
|
+
failure?: ITerminalWebhookFailure | null;
|
|
18
|
+
status: TerminalReaderActionStatusEnum;
|
|
19
|
+
type: TerminalWebhookActionTypeEnum | null;
|
|
20
|
+
}
|
|
21
|
+
export interface ITerminalWebhookInitiatedBy {
|
|
22
|
+
userId: number | null;
|
|
23
|
+
displayName: string | null;
|
|
24
|
+
startedAt: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ITerminalWebhookActiveActionContext {
|
|
27
|
+
organizationId: number | null;
|
|
28
|
+
initiatedBy: ITerminalWebhookInitiatedBy | null;
|
|
29
|
+
}
|
|
30
|
+
export interface ITerminalWebhookChannelMessage {
|
|
31
|
+
id: string;
|
|
32
|
+
organizationId: number | null;
|
|
33
|
+
readerId: string;
|
|
34
|
+
action: ITerminalWebhookNormalizedAction;
|
|
35
|
+
initiatedBy: ITerminalWebhookInitiatedBy | null;
|
|
36
|
+
occurredAt: string;
|
|
37
|
+
publishedAtMs: number;
|
|
38
|
+
type: TerminalWebhookEventTypeEnum;
|
|
39
|
+
}
|
|
40
|
+
export type TTerminalReaderStateAction = Required<ITerminalWebhookNormalizedAction>;
|
|
41
|
+
export interface ITerminalReaderStateChannelMessage {
|
|
42
|
+
organizationId: number;
|
|
43
|
+
readerId: string;
|
|
44
|
+
action: TTerminalReaderStateAction | null;
|
|
45
|
+
occurredAt: string;
|
|
46
|
+
publishedAtMs: number;
|
|
47
|
+
type: TerminalReaderSseEventTypeEnum.READER_STATE;
|
|
48
|
+
}
|
|
49
|
+
export interface IScopedTerminalSyntheticCancelMessage extends ITerminalSyntheticCancelMessage {
|
|
50
|
+
organizationId?: number | null;
|
|
51
|
+
}
|
|
52
|
+
export type TTerminalReaderChannelMessage = ITerminalWebhookChannelMessage | IScopedTerminalSyntheticCancelMessage | ITerminalReaderStateChannelMessage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-webhook.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/interfaces/terminal-webhook.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -66,6 +66,7 @@ export declare class WaitlistEntryRowDto extends OrganizationBaseEntityDto {
|
|
|
66
66
|
}
|
|
67
67
|
export declare class WaitlistEntrySummaryDto extends WaitlistEntryRowDto {
|
|
68
68
|
addons?: SimpleCartItemDto[];
|
|
69
|
+
errors?: string[];
|
|
69
70
|
}
|
|
70
71
|
export declare class ResourcesOptionsDto extends SelectOptionsDto {
|
|
71
72
|
startDate?: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitlist.dto.js","sourceRoot":"","sources":["../../../../src/types/waitlist/dto/waitlist.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAqG;AACrG,8EAAyG;AAGzG,4DAKiC;AAGjC,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,gBAAiB,SAAQ,4CAAyB;CAY9D;AAZD,4CAYC;AAED,MAAa,gBAAiB,SAAQ,4CAAyB;CAQ9D;AARD,4CAQC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAI5D;AAJD,oDAIC;AAED,MAAa,wBAAyB,SAAQ,oBAAoB;CAEjE;AAFD,4DAEC;AAED,MAAa,0BACZ,SAAQ,mCAA2C;CAQnD;AATD,gEASC;AALC,yCAAwB,CAAC,WAAW,EAEpC,yCAAwB,CAAC,SAAS;AAKpC,MAAa,4BAA6B,SAAQ,iCAAmB;CAIpE;AAJD,oEAIC;AAHC,yCAAwB,CAAC,WAAW,EAEpC,yCAAwB,CAAC,SAAS;AAGpC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,mBAAoB,SAAQ,4CAAyB;CAYjE;AAZD,kDAYC;AAED,MAAa,mBAAoB,SAAQ,4CAAyB;CAYjE;AAZD,kDAYC;AAED,MAAa,uBAAwB,SAAQ,mBAAmB;
|
|
1
|
+
{"version":3,"file":"waitlist.dto.js","sourceRoot":"","sources":["../../../../src/types/waitlist/dto/waitlist.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAqG;AACrG,8EAAyG;AAGzG,4DAKiC;AAGjC,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,gBAAiB,SAAQ,4CAAyB;CAY9D;AAZD,4CAYC;AAED,MAAa,gBAAiB,SAAQ,4CAAyB;CAQ9D;AARD,4CAQC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAI5D;AAJD,oDAIC;AAED,MAAa,wBAAyB,SAAQ,oBAAoB;CAEjE;AAFD,4DAEC;AAED,MAAa,0BACZ,SAAQ,mCAA2C;CAQnD;AATD,gEASC;AALC,yCAAwB,CAAC,WAAW,EAEpC,yCAAwB,CAAC,SAAS;AAKpC,MAAa,4BAA6B,SAAQ,iCAAmB;CAIpE;AAJD,oEAIC;AAHC,yCAAwB,CAAC,WAAW,EAEpC,yCAAwB,CAAC,SAAS;AAGpC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,mBAAoB,SAAQ,4CAAyB;CAYjE;AAZD,kDAYC;AAED,MAAa,mBAAoB,SAAQ,4CAAyB;CAYjE;AAZD,kDAYC;AAED,MAAa,uBAAwB,SAAQ,mBAAmB;CAI/D;AAJD,0DAIC;AAED,MAAa,mBAAoB,SAAQ,8BAAgB;CAIxD;AAJD,kDAIC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAHC,0CAAyB,CAAC,YAAY,EAEtC,0CAAyB,CAAC,aAAa"}
|
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": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@bondsports/notifications-sdk": "^0.0.8",
|
|
38
38
|
"moment": "^2.29.1",
|
|
39
39
|
"rimraf": "^3.0.2",
|
|
40
|
-
"stripe": "
|
|
40
|
+
"stripe": "^18.2.0",
|
|
41
41
|
"typeorm": "^0.2.32",
|
|
42
42
|
"zod": "^3.25.49",
|
|
43
43
|
"@types/lodash": "^4.17.24"
|