@nimee/shared-types 1.0.186 → 1.0.188

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.
@@ -80,4 +80,5 @@ export interface IMarketPlace {
80
80
  splitPaymentMerchantId?: string;
81
81
  splitPaymentApiKey?: string;
82
82
  mainPage?: string;
83
+ timezone?: string;
83
84
  }
@@ -1,3 +1,4 @@
1
+ import { IMarketPlace } from "../account/marketPlace";
1
2
  export interface IAutomationParamsUserCheckedInToEvent {
2
3
  marketplaceId: string;
3
4
  endUserId: string;
@@ -22,5 +23,25 @@ export declare enum IAutomationAction {
22
23
  endUserCanceledSeasonTicket = "endUserCanceledSeasonTicket",
23
24
  endUserCheckedInToEvent = "endUserCheckedInToEvent",
24
25
  endUserCheckedInToPlace = "endUserCheckedInToPlace",
25
- syncGroup = "syncGroup"
26
+ syncGroup = "syncGroup",
27
+ eventReminder = "eventReminder"
28
+ }
29
+ export declare enum IAutomationActionType {
30
+ sendWA = "sendWA",
31
+ sendEmail = "sendMail"
32
+ }
33
+ export interface IEventDataWithUsersDataReminderAutomation {
34
+ _id: string;
35
+ name: string;
36
+ start_date: string;
37
+ start_time: string;
38
+ isReminderOn: boolean;
39
+ marketplace: IMarketPlace;
40
+ nextStepAction: IAutomationActionType;
41
+ timezone: string;
42
+ approvedUsers: Array<{
43
+ phone: string;
44
+ firstName: string;
45
+ ticketLink: string;
46
+ }>;
26
47
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IAutomationAction = exports.IAutomationProvider = void 0;
3
+ exports.IAutomationActionType = exports.IAutomationAction = exports.IAutomationProvider = void 0;
4
4
  var IAutomationProvider;
5
5
  (function (IAutomationProvider) {
6
6
  IAutomationProvider["INFORU"] = "inforu";
@@ -15,5 +15,11 @@ var IAutomationAction;
15
15
  IAutomationAction["endUserCheckedInToEvent"] = "endUserCheckedInToEvent";
16
16
  IAutomationAction["endUserCheckedInToPlace"] = "endUserCheckedInToPlace";
17
17
  IAutomationAction["syncGroup"] = "syncGroup";
18
+ IAutomationAction["eventReminder"] = "eventReminder";
18
19
  })(IAutomationAction || (exports.IAutomationAction = IAutomationAction = {}));
20
+ var IAutomationActionType;
21
+ (function (IAutomationActionType) {
22
+ IAutomationActionType["sendWA"] = "sendWA";
23
+ IAutomationActionType["sendEmail"] = "sendMail";
24
+ })(IAutomationActionType || (exports.IAutomationActionType = IAutomationActionType = {}));
19
25
  //# sourceMappingURL=automation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"automation.js","sourceRoot":"","sources":["../../src/crm/automation.ts"],"names":[],"mappings":";;;AAaA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,oCAAa,CAAA;AACf,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AACD,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,8DAAyC,CAAA;IACzC,4EAAuD,CAAA;IACvD,kEAA6C,CAAA;IAC7C,gFAA2D,CAAA;IAC3D,wEAAmD,CAAA;IACnD,wEAAmD,CAAA;IACnD,4CAAuB,CAAA;AACzB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B"}
1
+ {"version":3,"file":"automation.js","sourceRoot":"","sources":["../../src/crm/automation.ts"],"names":[],"mappings":";;;AAeA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,oCAAa,CAAA;AACf,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AACD,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,8DAAyC,CAAA;IACzC,4EAAuD,CAAA;IACvD,kEAA6C,CAAA;IAC7C,gFAA2D,CAAA;IAC3D,wEAAmD,CAAA;IACnD,wEAAmD,CAAA;IACnD,4CAAuB,CAAA;IACvB,oDAA+B,CAAA;AACjC,CAAC,EATW,iBAAiB,iCAAjB,iBAAiB,QAS5B;AACD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,+CAAsB,CAAA;AACxB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
@@ -79,4 +79,7 @@ export interface IEventModel {
79
79
  seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
80
80
  segmentsBehavior?: IEventSegmentsBehavior;
81
81
  url?: string;
82
+ isReminderOn?: boolean;
83
+ marketplace?: string;
84
+ timezone?: string;
82
85
  }
@@ -14,6 +14,7 @@ export interface ITicketModel {
14
14
  quantity?: number;
15
15
  category?: string;
16
16
  countTicketsAllowPerPurchase?: number;
17
+ minTicketsAllowPerPurchase?: number;
17
18
  pending_count?: number;
18
19
  sold_count?: number;
19
20
  refund_count?: number;
@@ -65,6 +65,7 @@ export interface IEndUserSeasonTicketModel {
65
65
  entryPassTicketsUsed?: number;
66
66
  entryPassTicketsAllowedPerEvent?: number;
67
67
  entryPassTotalTicketsAllowed?: number;
68
+ comment?: string;
68
69
  }
69
70
  export declare enum ISeasonTicketStatusType {
70
71
  ACTIVE = "active",// the season ticket is active
@@ -1 +1 @@
1
- {"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/payment/endUserSeasonTicket.ts"],"names":[],"mappings":";;;AA8DA,IAAY,uBAUX;AAVD,WAAY,uBAAuB;IACjC,4CAAiB,CAAA;IACjB,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;IACjB,0EAA+C,CAAA;IAC/C,0EAA+C,CAAA;AACjD,CAAC,EAVW,uBAAuB,uCAAvB,uBAAuB,QAUlC"}
1
+ {"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/payment/endUserSeasonTicket.ts"],"names":[],"mappings":";;;AA+DA,IAAY,uBAUX;AAVD,WAAY,uBAAuB;IACjC,4CAAiB,CAAA;IACjB,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;IACjB,0EAA+C,CAAA;IAC/C,0EAA+C,CAAA;AACjD,CAAC,EAVW,uBAAuB,uCAAvB,uBAAuB,QAUlC"}
@@ -46,4 +46,5 @@ export interface IUserEventModel {
46
46
  seller: string;
47
47
  isAllowMarketingDelivery: boolean;
48
48
  createdAt?: Date;
49
+ eventOrder?: string;
49
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.186",
3
+ "version": "1.0.188",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -83,4 +83,5 @@ export interface IMarketPlace {
83
83
  splitPaymentMerchantId?: string;
84
84
  splitPaymentApiKey?: string;
85
85
  mainPage?: string;
86
+ timezone?: string;
86
87
  }
@@ -1,3 +1,5 @@
1
+ import { IMarketPlace } from "../account/marketPlace";
2
+
1
3
  export interface IAutomationParamsUserCheckedInToEvent {
2
4
  marketplaceId: string;
3
5
  endUserId: string;
@@ -23,4 +25,24 @@ export enum IAutomationAction {
23
25
  endUserCheckedInToEvent = "endUserCheckedInToEvent",
24
26
  endUserCheckedInToPlace = "endUserCheckedInToPlace",
25
27
  syncGroup = "syncGroup",
28
+ eventReminder = "eventReminder",
29
+ }
30
+ export enum IAutomationActionType {
31
+ sendWA = "sendWA",
32
+ sendEmail = "sendMail",
33
+ }
34
+ export interface IEventDataWithUsersDataReminderAutomation {
35
+ _id: string;
36
+ name: string;
37
+ start_date: string;
38
+ start_time: string;
39
+ isReminderOn: boolean;
40
+ marketplace: IMarketPlace;
41
+ nextStepAction: IAutomationActionType;
42
+ timezone: string;
43
+ approvedUsers: Array<{
44
+ phone: string;
45
+ firstName: string;
46
+ ticketLink: string;
47
+ }>;
26
48
  }
@@ -76,4 +76,7 @@ export interface IEventModel {
76
76
  seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
77
77
  segmentsBehavior?: IEventSegmentsBehavior;
78
78
  url?: string;
79
+ isReminderOn?: boolean;
80
+ marketplace?: string;
81
+ timezone?: string;
79
82
  }
@@ -14,6 +14,7 @@ export interface ITicketModel {
14
14
  quantity?: number;
15
15
  category?: string;
16
16
  countTicketsAllowPerPurchase?: number;
17
+ minTicketsAllowPerPurchase?: number;
17
18
  pending_count?: number;
18
19
  sold_count?: number;
19
20
  refund_count?: number;
@@ -59,6 +59,7 @@ export interface IEndUserSeasonTicketModel {
59
59
  entryPassTicketsUsed?: number;
60
60
  entryPassTicketsAllowedPerEvent?: number;
61
61
  entryPassTotalTicketsAllowed?: number;
62
+ comment?: string;
62
63
  }
63
64
  export enum ISeasonTicketStatusType {
64
65
  ACTIVE = "active", // the season ticket is active
@@ -46,4 +46,5 @@ export interface IUserEventModel {
46
46
  seller: string;
47
47
  isAllowMarketingDelivery: boolean;
48
48
  createdAt?: Date;
49
+ eventOrder?: string;
49
50
  }