@nimee/shared-types 1.0.247 → 1.0.249
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/account/account.d.ts +2 -0
- package/dist/account/account.js.map +1 -1
- package/dist/account/marketPlace.d.ts +5 -1
- package/dist/account/marketPlace.js +1 -0
- package/dist/account/marketPlace.js.map +1 -1
- package/dist/crm/automation.d.ts +8 -0
- package/dist/crm/automation.js +1 -0
- package/dist/crm/automation.js.map +1 -1
- package/dist/payment/charge.d.ts +6 -0
- package/package.json +1 -1
- package/src/account/account.ts +2 -0
- package/src/account/marketPlace.ts +4 -1
- package/src/crm/automation.ts +8 -0
- package/src/payment/charge.ts +6 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IMarketPlace } from "./marketPlace";
|
|
2
2
|
import { ILanguageEnum } from "../common/common";
|
|
3
3
|
import { IDynamicFieldDefinition } from "../common/dynamicFields";
|
|
4
|
+
import { IMailPostSQSType } from "../send-notification/sqs";
|
|
4
5
|
export declare enum IRoleTypeOrderEnum {
|
|
5
6
|
endUser = 0,
|
|
6
7
|
scanner = 1,
|
|
@@ -159,6 +160,7 @@ export interface IAccountModel {
|
|
|
159
160
|
invoiceProvider?: InvoiceProviderType;
|
|
160
161
|
invoiceProviderToken?: string;
|
|
161
162
|
crmDynamicFields?: IDynamicFieldDefinition[];
|
|
163
|
+
disabledMailTypes?: IMailPostSQSType[];
|
|
162
164
|
}
|
|
163
165
|
export interface IPaymeUpdateOrCreateSellerWebhookPayload {
|
|
164
166
|
seller_payme_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAKA,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,mEAAY,CAAA;IACZ,+DAAU,CAAA;IACV,+DAAU,CAAA;IACV,6DAAS,CAAA;IACT,6DAAS,CAAA;AACX,CAAC,EATW,kBAAkB,kCAAlB,kBAAkB,QAS7B;AACD,IAAY,aASX;AATD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;AACvB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;AACD,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,kDAA6B,CAAA;IAC7B,kDAA6B,CAAA;IAC7B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACvB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAgBD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAMD,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;AACnB,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B;AA4ID,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;AACrB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
|
|
@@ -2,6 +2,7 @@ import { IPostSQSTypeValues } from "../send-notification/sqs";
|
|
|
2
2
|
import { IAutomationProvider } from "../crm/automation";
|
|
3
3
|
import { ILanguageEnum } from "../common/common";
|
|
4
4
|
import { IDynamicFieldDefinition } from "../common/dynamicFields";
|
|
5
|
+
import { ICalendarEventType } from "../crm/calendarEvent";
|
|
5
6
|
export declare enum IMailProvider {
|
|
6
7
|
sendgrid = "sendgrid",
|
|
7
8
|
inforu = "inforu",
|
|
@@ -9,7 +10,8 @@ export declare enum IMailProvider {
|
|
|
9
10
|
}
|
|
10
11
|
export declare enum ISMSProvider {
|
|
11
12
|
ACTIVE_TRAIL = "ACTIVE_TRAIL",
|
|
12
|
-
INFORU = "INFORU"
|
|
13
|
+
INFORU = "INFORU",
|
|
14
|
+
NONE = "none"
|
|
13
15
|
}
|
|
14
16
|
export interface ISMSProviderConfig {
|
|
15
17
|
provider: ISMSProvider;
|
|
@@ -112,4 +114,6 @@ export interface IMarketPlace {
|
|
|
112
114
|
currency?: string;
|
|
113
115
|
supportWhatsapp?: string;
|
|
114
116
|
disableMarketplaceFee?: boolean;
|
|
117
|
+
/** Optional array of supported calendar event types. Defaults to [ICalendarEventType.REGULAR, ICalendarEventType.WELLNESS, ICalendarEventType.TASK] */
|
|
118
|
+
supportedCalendarEventTypes?: ICalendarEventType[];
|
|
115
119
|
}
|
|
@@ -11,6 +11,7 @@ var ISMSProvider;
|
|
|
11
11
|
(function (ISMSProvider) {
|
|
12
12
|
ISMSProvider["ACTIVE_TRAIL"] = "ACTIVE_TRAIL";
|
|
13
13
|
ISMSProvider["INFORU"] = "INFORU";
|
|
14
|
+
ISMSProvider["NONE"] = "none";
|
|
14
15
|
})(ISMSProvider || (exports.ISMSProvider = ISMSProvider = {}));
|
|
15
16
|
// MainPage enum holds the possible values for the main page of the app
|
|
16
17
|
var MainPageEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketPlace.js","sourceRoot":"","sources":["../../src/account/marketPlace.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"marketPlace.js","sourceRoot":"","sources":["../../src/account/marketPlace.ts"],"names":[],"mappings":";;;AAMA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;IACjB,6BAAa,CAAA;AACf,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAQD,uEAAuE;AACvE,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
package/dist/crm/automation.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/crm/automation.js
CHANGED
|
@@ -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":";;;
|
|
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"}
|
package/dist/payment/charge.d.ts
CHANGED
|
@@ -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
package/src/account/account.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IMarketPlace } from "./marketPlace";
|
|
2
2
|
import { ILanguageEnum } from "../common/common";
|
|
3
3
|
import { IDynamicFieldDefinition } from "../common/dynamicFields";
|
|
4
|
+
import { IMailPostSQSType } from "../send-notification/sqs";
|
|
4
5
|
|
|
5
6
|
export enum IRoleTypeOrderEnum {
|
|
6
7
|
endUser = 0,
|
|
@@ -155,6 +156,7 @@ export interface IAccountModel {
|
|
|
155
156
|
invoiceProvider?: InvoiceProviderType;
|
|
156
157
|
invoiceProviderToken?: string;
|
|
157
158
|
crmDynamicFields?: IDynamicFieldDefinition[];
|
|
159
|
+
disabledMailTypes?: IMailPostSQSType[];
|
|
158
160
|
}
|
|
159
161
|
// {"payme_status":"success","status_error_code":0,"status_code":0,"seller_payme_id":"MPL16720-72349IAE-FRITPXY5-TFLDUEWF","seller_created":"2022-12-26 18:32:29","seller_first_name":"Ron","seller_last_name":"Dahan","seller_social_id":"205569163","seller_birthdate":"1994-07-01","seller_date_of_birth":"1994-07-01","seller_gender":0,"seller_email":"roncho1794@gmail.com","seller_contact_email":"roncho1794@gmail.com","seller_phone":"+972542323517","seller_contact_phone":"+972542323517","seller_address_city":"Tel Aviv","seller_address_street":"Tel Aviv","seller_address_street_number":"12","seller_address_country":"IL","seller_inc":0,"seller_inc_code":"12345","seller_merchant_name":"Ronen","seller_site_url":"www.no.co.il","seller_custom_details":"No existing Isracard MID","seller_active":true,"seller_approved":false,"seller_market_fee":0,"seller_currencies":,"fee_default_processing_fee":"1.50","fee_default_processing_charge":"0.100000000000000000","fee_default_discount_fee":"0.50","fee_foreign_processing_fee":"2.95","fee_foreign_processing_charge":"0.100000000000000000","fee_forcurr_processing_charge":"0.100000000000000000","seller_public_key":{"uuid":"b40a5251-9907-4db1-8f26-c015dd9466df","description":"PayMe-Public-Key","is_active":true},"notify_type":"seller-create"}
|
|
160
162
|
|
|
@@ -2,6 +2,7 @@ import { IPostSQSTypeValues } from "../send-notification/sqs";
|
|
|
2
2
|
import { IAutomationProvider } from "../crm/automation";
|
|
3
3
|
import { ILanguageEnum } from "../common/common";
|
|
4
4
|
import { IDynamicFieldDefinition } from "../common/dynamicFields";
|
|
5
|
+
import { ICalendarEventType } from "../crm/calendarEvent";
|
|
5
6
|
|
|
6
7
|
export enum IMailProvider {
|
|
7
8
|
sendgrid = "sendgrid",
|
|
@@ -12,8 +13,8 @@ export enum IMailProvider {
|
|
|
12
13
|
export enum ISMSProvider {
|
|
13
14
|
ACTIVE_TRAIL = "ACTIVE_TRAIL",
|
|
14
15
|
INFORU = "INFORU",
|
|
16
|
+
NONE = "none",
|
|
15
17
|
}
|
|
16
|
-
|
|
17
18
|
export interface ISMSProviderConfig {
|
|
18
19
|
provider: ISMSProvider;
|
|
19
20
|
apiKey: string;
|
|
@@ -118,4 +119,6 @@ export interface IMarketPlace {
|
|
|
118
119
|
currency?: string;
|
|
119
120
|
supportWhatsapp?: string;
|
|
120
121
|
disableMarketplaceFee?: boolean;
|
|
122
|
+
/** Optional array of supported calendar event types. Defaults to [ICalendarEventType.REGULAR, ICalendarEventType.WELLNESS, ICalendarEventType.TASK] */
|
|
123
|
+
supportedCalendarEventTypes?: ICalendarEventType[];
|
|
121
124
|
}
|
package/src/crm/automation.ts
CHANGED
|
@@ -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
|
}
|
package/src/payment/charge.ts
CHANGED
|
@@ -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
|
}
|