@nimee/shared-types 1.0.138 → 1.0.139
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 +10 -0
- package/dist/event/event.js +6 -1
- package/dist/event/event.js.map +1 -1
- package/dist/user/segment.d.ts +3 -1
- package/dist/user/segment.js +1 -0
- package/dist/user/segment.js.map +1 -1
- package/package.json +1 -1
- package/src/event/event.ts +10 -0
- package/src/user/segment.ts +2 -0
package/dist/event/event.d.ts
CHANGED
|
@@ -14,6 +14,14 @@ export interface ISeasonTicketEventDiscount {
|
|
|
14
14
|
discountValue: number;
|
|
15
15
|
seasonTicket: string;
|
|
16
16
|
}
|
|
17
|
+
export declare enum IEventSegmentsBehaviorType {
|
|
18
|
+
AUTO_APPROVED = "auto_approved",
|
|
19
|
+
MARK_WITH_COLORED_V = "mark_with_colored_c"
|
|
20
|
+
}
|
|
21
|
+
export interface IEventSegmentsBehavior {
|
|
22
|
+
segments: string[];
|
|
23
|
+
behavior: IEventSegmentsBehaviorType;
|
|
24
|
+
}
|
|
17
25
|
export declare enum IEventTypeEnum {
|
|
18
26
|
TRANCE_PARTY = "trance-party",
|
|
19
27
|
TECHNO_PARTY = "techno-party",
|
|
@@ -41,6 +49,7 @@ export interface IEventModel {
|
|
|
41
49
|
is_enabled: boolean;
|
|
42
50
|
theme?: string;
|
|
43
51
|
account: string | IAccountModel;
|
|
52
|
+
seller: string;
|
|
44
53
|
collaborates: [{
|
|
45
54
|
user: string;
|
|
46
55
|
role: IRoleTypeEnum;
|
|
@@ -68,4 +77,5 @@ export interface IEventModel {
|
|
|
68
77
|
isPublic: boolean;
|
|
69
78
|
chartName?: string;
|
|
70
79
|
seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
|
|
80
|
+
segmentsBehavior?: IEventSegmentsBehavior;
|
|
71
81
|
}
|
package/dist/event/event.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IEventTypeEnum = void 0;
|
|
3
|
+
exports.IEventTypeEnum = exports.IEventSegmentsBehaviorType = void 0;
|
|
4
|
+
var IEventSegmentsBehaviorType;
|
|
5
|
+
(function (IEventSegmentsBehaviorType) {
|
|
6
|
+
IEventSegmentsBehaviorType["AUTO_APPROVED"] = "auto_approved";
|
|
7
|
+
IEventSegmentsBehaviorType["MARK_WITH_COLORED_V"] = "mark_with_colored_c";
|
|
8
|
+
})(IEventSegmentsBehaviorType || (exports.IEventSegmentsBehaviorType = IEventSegmentsBehaviorType = {}));
|
|
4
9
|
var IEventTypeEnum;
|
|
5
10
|
(function (IEventTypeEnum) {
|
|
6
11
|
IEventTypeEnum["TRANCE_PARTY"] = "trance-party";
|
package/dist/event/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AAgBA,IAAY,cAWX;AAXD,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;AACjB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB"}
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AAgBA,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6DAA+B,CAAA;IAC/B,yEAA2C,CAAA;AAC7C,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAKD,IAAY,cAWX;AAXD,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;AACjB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB"}
|
package/dist/user/segment.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ export declare enum ISegmentType {
|
|
|
10
10
|
USER_CREATED = "user-created",
|
|
11
11
|
EVENT = "event",
|
|
12
12
|
SEASON_TICKET_ENTRY_PASS = "season-ticket-entry-pass",
|
|
13
|
-
SEASON_TICKET = "season-ticket"
|
|
13
|
+
SEASON_TICKET = "season-ticket",
|
|
14
|
+
ACTIVITY = "activity"
|
|
14
15
|
}
|
|
15
16
|
export interface ISegmentModel {
|
|
16
17
|
_id?: string;
|
|
@@ -22,6 +23,7 @@ export interface ISegmentModel {
|
|
|
22
23
|
type: ISegmentType;
|
|
23
24
|
seasonTicket?: string | mongoose.Types.ObjectId;
|
|
24
25
|
event?: string | mongoose.Types.ObjectId;
|
|
26
|
+
activityName?: string;
|
|
25
27
|
}
|
|
26
28
|
export interface ISegmentEndUserModel {
|
|
27
29
|
_id?: string;
|
package/dist/user/segment.js
CHANGED
|
@@ -7,5 +7,6 @@ var ISegmentType;
|
|
|
7
7
|
ISegmentType["EVENT"] = "event";
|
|
8
8
|
ISegmentType["SEASON_TICKET_ENTRY_PASS"] = "season-ticket-entry-pass";
|
|
9
9
|
ISegmentType["SEASON_TICKET"] = "season-ticket";
|
|
10
|
+
ISegmentType["ACTIVITY"] = "activity";
|
|
10
11
|
})(ISegmentType || (exports.ISegmentType = ISegmentType = {}));
|
|
11
12
|
//# sourceMappingURL=segment.js.map
|
package/dist/user/segment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/user/segment.ts"],"names":[],"mappings":";;;AACA,IAAY,
|
|
1
|
+
{"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/user/segment.ts"],"names":[],"mappings":";;;AACA,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,+BAAe,CAAA;IACf,qEAAqD,CAAA;IACrD,+CAA+B,CAAA;IAC/B,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
|
package/package.json
CHANGED
package/src/event/event.ts
CHANGED
|
@@ -14,6 +14,14 @@ export interface ISeasonTicketEventDiscount {
|
|
|
14
14
|
discountValue: number;
|
|
15
15
|
seasonTicket: string;
|
|
16
16
|
}
|
|
17
|
+
export enum IEventSegmentsBehaviorType {
|
|
18
|
+
AUTO_APPROVED = "auto_approved",
|
|
19
|
+
MARK_WITH_COLORED_V = "mark_with_colored_c",
|
|
20
|
+
}
|
|
21
|
+
export interface IEventSegmentsBehavior {
|
|
22
|
+
segments: string[];
|
|
23
|
+
behavior: IEventSegmentsBehaviorType;
|
|
24
|
+
}
|
|
17
25
|
export enum IEventTypeEnum {
|
|
18
26
|
TRANCE_PARTY = "trance-party",
|
|
19
27
|
TECHNO_PARTY = "techno-party",
|
|
@@ -41,6 +49,7 @@ export interface IEventModel {
|
|
|
41
49
|
is_enabled: boolean;
|
|
42
50
|
theme?: string;
|
|
43
51
|
account: string | IAccountModel;
|
|
52
|
+
seller: string;
|
|
44
53
|
collaborates: [{ user: string; role: IRoleTypeEnum }];
|
|
45
54
|
password?: string;
|
|
46
55
|
design?: {
|
|
@@ -65,4 +74,5 @@ export interface IEventModel {
|
|
|
65
74
|
isPublic: boolean;
|
|
66
75
|
chartName?: string;
|
|
67
76
|
seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
|
|
77
|
+
segmentsBehavior?: IEventSegmentsBehavior;
|
|
68
78
|
}
|
package/src/user/segment.ts
CHANGED
|
@@ -4,6 +4,7 @@ export enum ISegmentType {
|
|
|
4
4
|
EVENT = "event",
|
|
5
5
|
SEASON_TICKET_ENTRY_PASS = "season-ticket-entry-pass",
|
|
6
6
|
SEASON_TICKET = "season-ticket",
|
|
7
|
+
ACTIVITY = "activity",
|
|
7
8
|
}
|
|
8
9
|
export interface ISegmentModel {
|
|
9
10
|
_id?: string;
|
|
@@ -15,6 +16,7 @@ export interface ISegmentModel {
|
|
|
15
16
|
type: ISegmentType;
|
|
16
17
|
seasonTicket?: string | mongoose.Types.ObjectId;
|
|
17
18
|
event?: string | mongoose.Types.ObjectId;
|
|
19
|
+
activityName?: string;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface ISegmentEndUserModel {
|