@nimee/shared-types 1.0.303 → 1.0.306
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/event/event.d.ts +6 -0
- package/dist/event/event.js +7 -1
- package/dist/event/event.js.map +1 -1
- package/dist/payment/seasonTicket.d.ts +8 -0
- package/dist/payment/seasonTicket.js +8 -1
- package/dist/payment/seasonTicket.js.map +1 -1
- package/package.json +1 -1
- package/src/event/event.ts +7 -0
- package/src/payment/seasonTicket.ts +11 -0
package/dist/event/event.d.ts
CHANGED
|
@@ -86,6 +86,11 @@ export declare enum IEventTypeEnum {
|
|
|
86
86
|
WELLNESS = "wellness",
|
|
87
87
|
MUSIC = "music"
|
|
88
88
|
}
|
|
89
|
+
export declare enum IOtpGateModeEnum {
|
|
90
|
+
off = "off",
|
|
91
|
+
suggested = "suggested",
|
|
92
|
+
required = "required"
|
|
93
|
+
}
|
|
89
94
|
export interface IEventModel {
|
|
90
95
|
start_hour?: Date;
|
|
91
96
|
end_hour?: Date;
|
|
@@ -128,6 +133,7 @@ export interface IEventModel {
|
|
|
128
133
|
seatsEventKey?: string;
|
|
129
134
|
isSeatsEvent?: boolean;
|
|
130
135
|
isOnlyForMembers?: boolean;
|
|
136
|
+
otpGateMode?: IOtpGateModeEnum;
|
|
131
137
|
isWellnessEvent?: boolean;
|
|
132
138
|
trainer?: string;
|
|
133
139
|
is_manual_approve_buyer?: boolean;
|
package/dist/event/event.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IEventTypeEnum = exports.IEventSegmentsBehaviorType = void 0;
|
|
3
|
+
exports.IOtpGateModeEnum = exports.IEventTypeEnum = exports.IEventSegmentsBehaviorType = void 0;
|
|
4
4
|
var IEventSegmentsBehaviorType;
|
|
5
5
|
(function (IEventSegmentsBehaviorType) {
|
|
6
6
|
IEventSegmentsBehaviorType["AUTO_APPROVED"] = "auto_approved";
|
|
@@ -21,4 +21,10 @@ var IEventTypeEnum;
|
|
|
21
21
|
IEventTypeEnum["WELLNESS"] = "wellness";
|
|
22
22
|
IEventTypeEnum["MUSIC"] = "music";
|
|
23
23
|
})(IEventTypeEnum || (exports.IEventTypeEnum = IEventTypeEnum = {}));
|
|
24
|
+
var IOtpGateModeEnum;
|
|
25
|
+
(function (IOtpGateModeEnum) {
|
|
26
|
+
IOtpGateModeEnum["off"] = "off";
|
|
27
|
+
IOtpGateModeEnum["suggested"] = "suggested";
|
|
28
|
+
IOtpGateModeEnum["required"] = "required";
|
|
29
|
+
})(IOtpGateModeEnum || (exports.IOtpGateModeEnum = IOtpGateModeEnum = {}));
|
|
24
30
|
//# sourceMappingURL=event.js.map
|
package/dist/event/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AA2CA,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6DAA+B,CAAA;IAC/B,iEAAmC,CAAA;AACrC,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAQD,IAAY,cAaX;AAbD,WAAY,cAAc;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,iCAAe,CAAA;AACjB,CAAC,EAbW,cAAc,8BAAd,cAAc,QAazB"}
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AA2CA,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6DAA+B,CAAA;IAC/B,iEAAmC,CAAA;AACrC,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAQD,IAAY,cAaX;AAbD,WAAY,cAAc;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,iCAAe,CAAA;AACjB,CAAC,EAbW,cAAc,8BAAd,cAAc,QAazB;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
|
|
@@ -37,6 +37,8 @@ export interface ISeasonTicketModel {
|
|
|
37
37
|
isEnabled: boolean;
|
|
38
38
|
paymentIterationType: IPaymentSeasonTicketIterationType;
|
|
39
39
|
iterations: number;
|
|
40
|
+
validityDuration?: number;
|
|
41
|
+
validityUnit?: ISeasonTicketValidityUnit;
|
|
40
42
|
seasonTicketType: ISeasonTicketType;
|
|
41
43
|
entryPassTicketsAllowedPerEvent?: number;
|
|
42
44
|
entryPassTotalTicketsAllowed?: number;
|
|
@@ -76,3 +78,9 @@ export declare enum ISeasonTicketType {
|
|
|
76
78
|
SEASON_TICKET = "season-ticket",
|
|
77
79
|
ENTRY_PASS = "entry-pass"
|
|
78
80
|
}
|
|
81
|
+
export declare enum ISeasonTicketValidityUnit {
|
|
82
|
+
DAY = "day",
|
|
83
|
+
WEEK = "week",
|
|
84
|
+
MONTH = "month",
|
|
85
|
+
YEAR = "year"
|
|
86
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ISeasonTicketType = exports.IPaymentSeasonTicketIterationType = void 0;
|
|
3
|
+
exports.ISeasonTicketValidityUnit = exports.ISeasonTicketType = exports.IPaymentSeasonTicketIterationType = void 0;
|
|
4
4
|
var IPaymentSeasonTicketIterationType;
|
|
5
5
|
(function (IPaymentSeasonTicketIterationType) {
|
|
6
6
|
IPaymentSeasonTicketIterationType[IPaymentSeasonTicketIterationType["DAILY"] = 1] = "DAILY";
|
|
@@ -14,4 +14,11 @@ var ISeasonTicketType;
|
|
|
14
14
|
ISeasonTicketType["SEASON_TICKET"] = "season-ticket";
|
|
15
15
|
ISeasonTicketType["ENTRY_PASS"] = "entry-pass";
|
|
16
16
|
})(ISeasonTicketType || (exports.ISeasonTicketType = ISeasonTicketType = {}));
|
|
17
|
+
var ISeasonTicketValidityUnit;
|
|
18
|
+
(function (ISeasonTicketValidityUnit) {
|
|
19
|
+
ISeasonTicketValidityUnit["DAY"] = "day";
|
|
20
|
+
ISeasonTicketValidityUnit["WEEK"] = "week";
|
|
21
|
+
ISeasonTicketValidityUnit["MONTH"] = "month";
|
|
22
|
+
ISeasonTicketValidityUnit["YEAR"] = "year";
|
|
23
|
+
})(ISeasonTicketValidityUnit || (exports.ISeasonTicketValidityUnit = ISeasonTicketValidityUnit = {}));
|
|
17
24
|
//# sourceMappingURL=seasonTicket.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seasonTicket.js","sourceRoot":"","sources":["../../src/payment/seasonTicket.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"seasonTicket.js","sourceRoot":"","sources":["../../src/payment/seasonTicket.ts"],"names":[],"mappings":";;;AAiDA,IAAY,iCAMX;AAND,WAAY,iCAAiC;IAC3C,2FAAS,CAAA;IACT,6FAAU,CAAA;IACV,+FAAW,CAAA;IACX,6FAAU,CAAA;IACV,iGAAY,CAAA;AACd,CAAC,EANW,iCAAiC,iDAAjC,iCAAiC,QAM5C;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,8CAAyB,CAAA;AAC3B,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACnC,wCAAW,CAAA;IACX,0CAAa,CAAA;IACb,4CAAe,CAAA;IACf,0CAAa,CAAA;AACf,CAAC,EALW,yBAAyB,yCAAzB,yBAAyB,QAKpC"}
|
package/package.json
CHANGED
package/src/event/event.ts
CHANGED
|
@@ -67,6 +67,12 @@ export enum IEventTypeEnum {
|
|
|
67
67
|
MUSIC = "music",
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
export enum IOtpGateModeEnum {
|
|
71
|
+
off = "off",
|
|
72
|
+
suggested = "suggested",
|
|
73
|
+
required = "required",
|
|
74
|
+
}
|
|
75
|
+
|
|
70
76
|
export interface IEventModel {
|
|
71
77
|
start_hour?: Date;
|
|
72
78
|
end_hour?: Date;
|
|
@@ -106,6 +112,7 @@ export interface IEventModel {
|
|
|
106
112
|
seatsEventKey?: string;
|
|
107
113
|
isSeatsEvent?: boolean;
|
|
108
114
|
isOnlyForMembers?: boolean;
|
|
115
|
+
otpGateMode?: IOtpGateModeEnum;
|
|
109
116
|
isWellnessEvent?: boolean;
|
|
110
117
|
trainer?: string;
|
|
111
118
|
is_manual_approve_buyer?: boolean;
|
|
@@ -12,6 +12,10 @@ export interface ISeasonTicketModel {
|
|
|
12
12
|
isEnabled: boolean;
|
|
13
13
|
paymentIterationType: IPaymentSeasonTicketIterationType;
|
|
14
14
|
iterations: number;
|
|
15
|
+
// ONE_TIME (type 5) only: validity window used to derive the subscription's
|
|
16
|
+
// endDate at purchase. When unset, one-time subscriptions are perpetual.
|
|
17
|
+
validityDuration?: number;
|
|
18
|
+
validityUnit?: ISeasonTicketValidityUnit;
|
|
15
19
|
seasonTicketType: ISeasonTicketType;
|
|
16
20
|
entryPassTicketsAllowedPerEvent?: number;
|
|
17
21
|
entryPassTotalTicketsAllowed?: number;
|
|
@@ -55,3 +59,10 @@ export enum ISeasonTicketType {
|
|
|
55
59
|
SEASON_TICKET = "season-ticket",
|
|
56
60
|
ENTRY_PASS = "entry-pass",
|
|
57
61
|
}
|
|
62
|
+
|
|
63
|
+
export enum ISeasonTicketValidityUnit {
|
|
64
|
+
DAY = "day",
|
|
65
|
+
WEEK = "week",
|
|
66
|
+
MONTH = "month",
|
|
67
|
+
YEAR = "year",
|
|
68
|
+
}
|