@nimee/shared-types 1.0.201 → 1.0.203
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/index.d.ts +1 -0
- package/dist/event/index.js +1 -0
- package/dist/event/index.js.map +1 -1
- package/dist/event/review.d.ts +29 -0
- package/dist/event/review.js +3 -0
- package/dist/event/review.js.map +1 -0
- 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/index.ts +1 -0
- package/src/event/review.ts +31 -0
- package/src/user/segment.ts +2 -0
package/dist/event/index.d.ts
CHANGED
package/dist/event/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./event"), exports);
|
|
18
18
|
__exportStar(require("./ticket"), exports);
|
|
19
19
|
__exportStar(require("./specialTickets"), exports);
|
|
20
|
+
__exportStar(require("./review"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/dist/event/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,mDAAiC;AACjC,2CAAyB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface IReviewModel {
|
|
2
|
+
_id: string;
|
|
3
|
+
eventId: string;
|
|
4
|
+
endUserId: string;
|
|
5
|
+
rating: number;
|
|
6
|
+
comment?: string;
|
|
7
|
+
tags?: string[];
|
|
8
|
+
response?: string;
|
|
9
|
+
deviceType?: "mobile" | "desktop";
|
|
10
|
+
language?: string;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
15
|
+
export interface ICreateReviewInput {
|
|
16
|
+
eventId: string;
|
|
17
|
+
endUserId: string;
|
|
18
|
+
rating: number;
|
|
19
|
+
comment?: string;
|
|
20
|
+
tags?: string[];
|
|
21
|
+
deviceType?: "mobile" | "desktop";
|
|
22
|
+
language?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IUpdateReviewInput {
|
|
25
|
+
rating?: number;
|
|
26
|
+
comment?: string;
|
|
27
|
+
tags?: string[];
|
|
28
|
+
response?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.js","sourceRoot":"","sources":["../../src/event/review.ts"],"names":[],"mappings":""}
|
package/dist/user/segment.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ export declare enum ISegmentType {
|
|
|
12
12
|
EVENT = "event",
|
|
13
13
|
SEASON_TICKET_ENTRY_PASS = "season-ticket-entry-pass",
|
|
14
14
|
SEASON_TICKET = "season-ticket",
|
|
15
|
-
ACTIVITY = "activity"
|
|
15
|
+
ACTIVITY = "activity",
|
|
16
|
+
EVENT_TYPE = "event-type"
|
|
16
17
|
}
|
|
17
18
|
export interface ISegmentModel {
|
|
18
19
|
_id?: string;
|
|
@@ -26,6 +27,7 @@ export interface ISegmentModel {
|
|
|
26
27
|
event?: string | mongoose.Types.ObjectId;
|
|
27
28
|
activityName?: string;
|
|
28
29
|
seasonTicketStatus?: ISeasonTicketStatusType;
|
|
30
|
+
eventType?: string;
|
|
29
31
|
}
|
|
30
32
|
export interface ISegmentEndUserModel {
|
|
31
33
|
_id?: string;
|
package/dist/user/segment.js
CHANGED
|
@@ -8,5 +8,6 @@ var ISegmentType;
|
|
|
8
8
|
ISegmentType["SEASON_TICKET_ENTRY_PASS"] = "season-ticket-entry-pass";
|
|
9
9
|
ISegmentType["SEASON_TICKET"] = "season-ticket";
|
|
10
10
|
ISegmentType["ACTIVITY"] = "activity";
|
|
11
|
+
ISegmentType["EVENT_TYPE"] = "event-type";
|
|
11
12
|
})(ISegmentType || (exports.ISegmentType = ISegmentType = {}));
|
|
12
13
|
//# 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":";;;AAGA,IAAY,
|
|
1
|
+
{"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/user/segment.ts"],"names":[],"mappings":";;;AAGA,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,+BAAe,CAAA;IACf,qEAAqD,CAAA;IACrD,+CAA+B,CAAA;IAC/B,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;AAC3B,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB"}
|
package/package.json
CHANGED
package/src/event/index.ts
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface IReviewModel {
|
|
2
|
+
_id: string;
|
|
3
|
+
eventId: string;
|
|
4
|
+
endUserId: string;
|
|
5
|
+
rating: number;
|
|
6
|
+
comment?: string;
|
|
7
|
+
tags?: string[];
|
|
8
|
+
response?: string;
|
|
9
|
+
deviceType?: "mobile" | "desktop";
|
|
10
|
+
language?: string;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ICreateReviewInput {
|
|
17
|
+
eventId: string;
|
|
18
|
+
endUserId: string;
|
|
19
|
+
rating: number;
|
|
20
|
+
comment?: string;
|
|
21
|
+
tags?: string[];
|
|
22
|
+
deviceType?: "mobile" | "desktop";
|
|
23
|
+
language?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface IUpdateReviewInput {
|
|
27
|
+
rating?: number;
|
|
28
|
+
comment?: string;
|
|
29
|
+
tags?: string[];
|
|
30
|
+
response?: string;
|
|
31
|
+
}
|
package/src/user/segment.ts
CHANGED
|
@@ -7,6 +7,7 @@ export enum ISegmentType {
|
|
|
7
7
|
SEASON_TICKET_ENTRY_PASS = "season-ticket-entry-pass",
|
|
8
8
|
SEASON_TICKET = "season-ticket",
|
|
9
9
|
ACTIVITY = "activity",
|
|
10
|
+
EVENT_TYPE = "event-type",
|
|
10
11
|
}
|
|
11
12
|
export interface ISegmentModel {
|
|
12
13
|
_id?: string;
|
|
@@ -20,6 +21,7 @@ export interface ISegmentModel {
|
|
|
20
21
|
event?: string | mongoose.Types.ObjectId;
|
|
21
22
|
activityName?: string;
|
|
22
23
|
seasonTicketStatus?: ISeasonTicketStatusType;
|
|
24
|
+
eventType?: string;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export interface ISegmentEndUserModel {
|