@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.
@@ -1,3 +1,4 @@
1
1
  export * from "./event";
2
2
  export * from "./ticket";
3
3
  export * from "./specialTickets";
4
+ export * from "./review";
@@ -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
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=review.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.js","sourceRoot":"","sources":["../../src/event/review.ts"],"names":[],"mappings":""}
@@ -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;
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/user/segment.ts"],"names":[],"mappings":";;;AAGA,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"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.201",
3
+ "version": "1.0.203",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -1,3 +1,4 @@
1
1
  export * from "./event";
2
2
  export * from "./ticket";
3
3
  export * from "./specialTickets";
4
+ export * from "./review";
@@ -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
+ }
@@ -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 {