@nimee/shared-types 1.0.131 → 1.0.132
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/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/crm/endUserNotification.ts +28 -0
- package/src/crm/index.ts +1 -0
- package/src/user/segment.ts +9 -0
|
@@ -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
|
@@ -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 {
|