@nimee/shared-types 1.0.131 → 1.0.133
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 +1 -0
- package/dist/account/account.js.map +1 -1
- package/dist/account/marketPlace.d.ts +1 -0
- package/dist/crm/endUserNotification.d.ts +35 -0
- package/dist/crm/endUserNotification.js +17 -0
- package/dist/crm/endUserNotification.js.map +1 -0
- package/dist/crm/index.d.ts +1 -0
- package/dist/crm/index.js +1 -0
- package/dist/crm/index.js.map +1 -1
- package/dist/user/segment.d.ts +9 -0
- package/dist/user/segment.js +8 -0
- package/dist/user/segment.js.map +1 -1
- package/package.json +1 -1
- package/src/account/account.ts +1 -0
- package/src/account/marketPlace.ts +1 -0
- package/src/crm/endUserNotification.ts +28 -0
- package/src/crm/index.ts +1 -0
- package/src/user/segment.ts +9 -0
|
@@ -95,6 +95,7 @@ export interface IAccountModel {
|
|
|
95
95
|
isDefaultAllEventPublic: boolean;
|
|
96
96
|
isLeanEvent: boolean;
|
|
97
97
|
is_manual_approve_buyer: boolean;
|
|
98
|
+
google_analytics_id?: string;
|
|
98
99
|
}
|
|
99
100
|
export interface IPaymeUpdateOrCreateSellerWebhookPayload {
|
|
100
101
|
seller_payme_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,+DAAU,CAAA;IACV,+DAAU,CAAA;IACV,6DAAS,CAAA;IACT,6DAAS,CAAA;AACX,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B;AACD,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,g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AAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AA6FD,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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
2
|
+
/// <reference types="mongoose/types/connection" />
|
|
3
|
+
/// <reference types="mongoose/types/cursor" />
|
|
4
|
+
/// <reference types="mongoose/types/document" />
|
|
5
|
+
/// <reference types="mongoose/types/error" />
|
|
6
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
7
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
8
|
+
import * as mongoose from "mongoose";
|
|
9
|
+
export declare enum IPlatform {
|
|
10
|
+
IOS = "IOS",
|
|
11
|
+
ANDROID = "ANDROID",
|
|
12
|
+
WEB = "WEB"
|
|
13
|
+
}
|
|
14
|
+
export declare enum IAppNotificationStatus {
|
|
15
|
+
PENDING = "pending",
|
|
16
|
+
SENT = "sent",
|
|
17
|
+
FAILED = "failed",
|
|
18
|
+
RECEIVED = "received"
|
|
19
|
+
}
|
|
20
|
+
export interface IEndUserNotificationModel {
|
|
21
|
+
_id?: string | mongoose.Types.ObjectId;
|
|
22
|
+
marketplace: string | mongoose.Types.ObjectId;
|
|
23
|
+
seller: string | mongoose.Types.ObjectId;
|
|
24
|
+
description?: string;
|
|
25
|
+
endUser: string | mongoose.Types.ObjectId;
|
|
26
|
+
segment?: string | mongoose.Types.ObjectId;
|
|
27
|
+
data?: object;
|
|
28
|
+
action?: string;
|
|
29
|
+
message: string;
|
|
30
|
+
status: IAppNotificationStatus;
|
|
31
|
+
platform: IPlatform;
|
|
32
|
+
sentAt?: Date;
|
|
33
|
+
receivedAt?: Date;
|
|
34
|
+
error?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IAppNotificationStatus = exports.IPlatform = void 0;
|
|
4
|
+
var IPlatform;
|
|
5
|
+
(function (IPlatform) {
|
|
6
|
+
IPlatform["IOS"] = "IOS";
|
|
7
|
+
IPlatform["ANDROID"] = "ANDROID";
|
|
8
|
+
IPlatform["WEB"] = "WEB";
|
|
9
|
+
})(IPlatform || (exports.IPlatform = IPlatform = {}));
|
|
10
|
+
var IAppNotificationStatus;
|
|
11
|
+
(function (IAppNotificationStatus) {
|
|
12
|
+
IAppNotificationStatus["PENDING"] = "pending";
|
|
13
|
+
IAppNotificationStatus["SENT"] = "sent";
|
|
14
|
+
IAppNotificationStatus["FAILED"] = "failed";
|
|
15
|
+
IAppNotificationStatus["RECEIVED"] = "received";
|
|
16
|
+
})(IAppNotificationStatus || (exports.IAppNotificationStatus = IAppNotificationStatus = {}));
|
|
17
|
+
//# sourceMappingURL=endUserNotification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endUserNotification.js","sourceRoot":"","sources":["../../src/crm/endUserNotification.ts"],"names":[],"mappings":";;;AACA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,gCAAmB,CAAA;IACnB,wBAAW,CAAA;AACb,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AACD,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,uCAAa,CAAA;IACb,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;AACvB,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC"}
|
package/dist/crm/index.d.ts
CHANGED
package/dist/crm/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./endUserCRMEvent"), exports);
|
|
18
18
|
__exportStar(require("./deviceNotification"), exports);
|
|
19
|
+
__exportStar(require("./endUserNotification"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/crm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wDAAsC"}
|
package/dist/user/segment.d.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
/// <reference types="mongoose/types/mongooseoptions" />
|
|
7
7
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
8
8
|
import mongoose from "mongoose";
|
|
9
|
+
export declare enum ISegmentType {
|
|
10
|
+
USER_CREATED = "user-created",
|
|
11
|
+
EVENT = "event",
|
|
12
|
+
SEASON_TICKET_ENTRY_PASS = "season-ticket-entry-pass",
|
|
13
|
+
SEASON_TICKET = "season-ticket"
|
|
14
|
+
}
|
|
9
15
|
export interface ISegmentModel {
|
|
10
16
|
_id?: string;
|
|
11
17
|
name: string;
|
|
@@ -13,6 +19,9 @@ export interface ISegmentModel {
|
|
|
13
19
|
account: string | mongoose.Types.ObjectId;
|
|
14
20
|
description?: string;
|
|
15
21
|
handler: string;
|
|
22
|
+
type: ISegmentType;
|
|
23
|
+
seasonTicket?: string | mongoose.Types.ObjectId;
|
|
24
|
+
event?: string | mongoose.Types.ObjectId;
|
|
16
25
|
}
|
|
17
26
|
export interface ISegmentEndUserModel {
|
|
18
27
|
_id?: string;
|
package/dist/user/segment.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ISegmentType = void 0;
|
|
4
|
+
var ISegmentType;
|
|
5
|
+
(function (ISegmentType) {
|
|
6
|
+
ISegmentType["USER_CREATED"] = "user-created";
|
|
7
|
+
ISegmentType["EVENT"] = "event";
|
|
8
|
+
ISegmentType["SEASON_TICKET_ENTRY_PASS"] = "season-ticket-entry-pass";
|
|
9
|
+
ISegmentType["SEASON_TICKET"] = "season-ticket";
|
|
10
|
+
})(ISegmentType || (exports.ISegmentType = ISegmentType = {}));
|
|
3
11
|
//# 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":""}
|
|
1
|
+
{"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/user/segment.ts"],"names":[],"mappings":";;;AACA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,+BAAe,CAAA;IACf,qEAAqD,CAAA;IACrD,+CAA+B,CAAA;AACjC,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
|
package/package.json
CHANGED
package/src/account/account.ts
CHANGED
|
@@ -90,6 +90,7 @@ export interface IAccountModel {
|
|
|
90
90
|
isDefaultAllEventPublic: boolean;
|
|
91
91
|
isLeanEvent: boolean;
|
|
92
92
|
is_manual_approve_buyer: boolean;
|
|
93
|
+
google_analytics_id?: string;
|
|
93
94
|
}
|
|
94
95
|
// {"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"}
|
|
95
96
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as mongoose from "mongoose";
|
|
2
|
+
export enum IPlatform {
|
|
3
|
+
IOS = "IOS",
|
|
4
|
+
ANDROID = "ANDROID",
|
|
5
|
+
WEB = "WEB",
|
|
6
|
+
}
|
|
7
|
+
export enum IAppNotificationStatus {
|
|
8
|
+
PENDING = "pending",
|
|
9
|
+
SENT = "sent",
|
|
10
|
+
FAILED = "failed",
|
|
11
|
+
RECEIVED = "received",
|
|
12
|
+
}
|
|
13
|
+
export interface IEndUserNotificationModel {
|
|
14
|
+
_id?: string | mongoose.Types.ObjectId;
|
|
15
|
+
marketplace: string | mongoose.Types.ObjectId;
|
|
16
|
+
seller: string | mongoose.Types.ObjectId;
|
|
17
|
+
description?: string;
|
|
18
|
+
endUser: string | mongoose.Types.ObjectId;
|
|
19
|
+
segment?: string | mongoose.Types.ObjectId;
|
|
20
|
+
data?: object;
|
|
21
|
+
action?: string;
|
|
22
|
+
message: string;
|
|
23
|
+
status: IAppNotificationStatus;
|
|
24
|
+
platform: IPlatform;
|
|
25
|
+
sentAt?: Date;
|
|
26
|
+
receivedAt?: Date;
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
package/src/crm/index.ts
CHANGED
package/src/user/segment.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
export enum ISegmentType {
|
|
3
|
+
USER_CREATED = "user-created",
|
|
4
|
+
EVENT = "event",
|
|
5
|
+
SEASON_TICKET_ENTRY_PASS = "season-ticket-entry-pass",
|
|
6
|
+
SEASON_TICKET = "season-ticket",
|
|
7
|
+
}
|
|
2
8
|
export interface ISegmentModel {
|
|
3
9
|
_id?: string;
|
|
4
10
|
name: string;
|
|
@@ -6,6 +12,9 @@ export interface ISegmentModel {
|
|
|
6
12
|
account: string | mongoose.Types.ObjectId;
|
|
7
13
|
description?: string;
|
|
8
14
|
handler: string;
|
|
15
|
+
type: ISegmentType;
|
|
16
|
+
seasonTicket?: string | mongoose.Types.ObjectId;
|
|
17
|
+
event?: string | mongoose.Types.ObjectId;
|
|
9
18
|
}
|
|
10
19
|
|
|
11
20
|
export interface ISegmentEndUserModel {
|