@nimee/shared-types 1.0.246 → 1.0.248

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.
@@ -49,6 +49,7 @@ export interface IMarketPlace {
49
49
  isSellersManager: boolean;
50
50
  hasCRM: boolean;
51
51
  hasWellnessEvents: boolean;
52
+ hasCalendar: boolean;
52
53
  marketplaceDistributionId: string;
53
54
  mailProvider?: IMailProvider;
54
55
  smsProviderConfig?: ISMSProviderConfig;
@@ -12,6 +12,13 @@ export interface IAutomationParamsCreateGroup {
12
12
  marketplaceId: string;
13
13
  sellerId: string;
14
14
  }
15
+ export interface IAutomationParamsCRMEvent {
16
+ marketplaceId: string;
17
+ sellerId: string;
18
+ endUserId: string;
19
+ actionType: string;
20
+ data: object;
21
+ }
15
22
  export declare enum IAutomationProvider {
16
23
  INFORU = "inforu",
17
24
  NIMI = "nimi"
@@ -23,6 +30,7 @@ export declare enum IAutomationAction {
23
30
  endUserCanceledSeasonTicket = "endUserCanceledSeasonTicket",
24
31
  endUserCheckedInToEvent = "endUserCheckedInToEvent",
25
32
  endUserCheckedInToPlace = "endUserCheckedInToPlace",
33
+ endUserCRMEventCreated = "endUserCRMEventCreated",
26
34
  syncGroup = "syncGroup",
27
35
  eventReminder = "eventReminder"
28
36
  }
@@ -14,6 +14,7 @@ var IAutomationAction;
14
14
  IAutomationAction["endUserCanceledSeasonTicket"] = "endUserCanceledSeasonTicket";
15
15
  IAutomationAction["endUserCheckedInToEvent"] = "endUserCheckedInToEvent";
16
16
  IAutomationAction["endUserCheckedInToPlace"] = "endUserCheckedInToPlace";
17
+ IAutomationAction["endUserCRMEventCreated"] = "endUserCRMEventCreated";
17
18
  IAutomationAction["syncGroup"] = "syncGroup";
18
19
  IAutomationAction["eventReminder"] = "eventReminder";
19
20
  })(IAutomationAction || (exports.IAutomationAction = IAutomationAction = {}));
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"automation.js","sourceRoot":"","sources":["../../src/crm/automation.ts"],"names":[],"mappings":";;;AAsBA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,oCAAa,CAAA;AACf,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AACD,IAAY,iBAUX;AAVD,WAAY,iBAAiB;IAC3B,8DAAyC,CAAA;IACzC,4EAAuD,CAAA;IACvD,kEAA6C,CAAA;IAC7C,gFAA2D,CAAA;IAC3D,wEAAmD,CAAA;IACnD,wEAAmD,CAAA;IACnD,sEAAiD,CAAA;IACjD,4CAAuB,CAAA;IACvB,oDAA+B,CAAA;AACjC,CAAC,EAVW,iBAAiB,iCAAjB,iBAAiB,QAU5B;AACD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,+CAAsB,CAAA;AACxB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
@@ -23,6 +23,7 @@ export declare enum IChargeTypeEnum {
23
23
  DEFAULT = "default"
24
24
  }
25
25
  export interface IChargeModel {
26
+ _id: string;
26
27
  error: object;
27
28
  status_code?: number;
28
29
  status_error_code?: string;
@@ -65,4 +66,9 @@ export interface IChargeModel {
65
66
  nimiFee: Number;
66
67
  nimiFeePercentage: Number;
67
68
  chargeType: IChargeTypeEnum;
69
+ postUser?: string[];
70
+ postPaymentError?: string;
71
+ createdBy?: string;
72
+ description?: string;
73
+ endUser?: string;
68
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.246",
3
+ "version": "1.0.248",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -54,6 +54,7 @@ export interface IMarketPlace {
54
54
  isSellersManager: boolean;
55
55
  hasCRM: boolean;
56
56
  hasWellnessEvents: boolean;
57
+ hasCalendar: boolean;
57
58
  marketplaceDistributionId: string;
58
59
  mailProvider?: IMailProvider;
59
60
  smsProviderConfig?: ISMSProviderConfig;
@@ -13,6 +13,13 @@ export interface IAutomationParamsCreateGroup {
13
13
  marketplaceId: string;
14
14
  sellerId: string;
15
15
  }
16
+ export interface IAutomationParamsCRMEvent {
17
+ marketplaceId: string;
18
+ sellerId: string;
19
+ endUserId: string;
20
+ actionType: string;
21
+ data: object;
22
+ }
16
23
  export enum IAutomationProvider {
17
24
  INFORU = "inforu",
18
25
  NIMI = "nimi",
@@ -24,6 +31,7 @@ export enum IAutomationAction {
24
31
  endUserCanceledSeasonTicket = "endUserCanceledSeasonTicket",
25
32
  endUserCheckedInToEvent = "endUserCheckedInToEvent",
26
33
  endUserCheckedInToPlace = "endUserCheckedInToPlace",
34
+ endUserCRMEventCreated = "endUserCRMEventCreated",
27
35
  syncGroup = "syncGroup",
28
36
  eventReminder = "eventReminder",
29
37
  }
@@ -26,6 +26,7 @@ export enum IChargeTypeEnum {
26
26
  }
27
27
 
28
28
  export interface IChargeModel {
29
+ _id: string;
29
30
  error: object;
30
31
  status_code?: number; // 0 Status of the request (0 - success, 1 - error)
31
32
  status_error_code?: string; // In case of an error, our unique error code
@@ -74,4 +75,9 @@ export interface IChargeModel {
74
75
  nimiFee: Number;
75
76
  nimiFeePercentage: Number;
76
77
  chargeType: IChargeTypeEnum;
78
+ postUser?: string[];
79
+ postPaymentError?: string;
80
+ createdBy?: string;
81
+ description?: string;
82
+ endUser?: string;
77
83
  }