@nimee/shared-types 1.0.120 → 1.0.122
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/marketPlace.d.ts +0 -8
- package/dist/account/marketPlace.js +0 -6
- package/dist/account/marketPlace.js.map +1 -1
- package/dist/crm/deviceNotification.d.ts +18 -0
- package/dist/crm/deviceNotification.js +3 -0
- package/dist/crm/deviceNotification.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/event/event.d.ts +18 -1
- package/dist/event/event.js +13 -1
- package/dist/event/event.js.map +1 -1
- package/dist/event/index.d.ts +0 -1
- package/dist/event/index.js +0 -1
- package/dist/event/index.js.map +1 -1
- package/dist/send-notification/sqs.d.ts +1 -6
- package/dist/send-notification/sqs.js +0 -2
- package/dist/send-notification/sqs.js.map +1 -1
- package/package.json +1 -1
- package/src/account/marketPlace.ts +0 -8
- package/src/crm/deviceNotification.ts +11 -0
- package/src/crm/index.ts +1 -0
- package/src/event/event.ts +17 -1
- package/src/event/index.ts +0 -1
- package/src/send-notification/sqs.ts +0 -5
- package/src/event/specialTickets.ts +0 -13
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { IPostSQSTypeValues } from "../send-notification/sqs";
|
|
2
|
-
export declare enum IMailProvider {
|
|
3
|
-
sendgrid = "sendgrid",
|
|
4
|
-
inforu = "inforu"
|
|
5
|
-
}
|
|
6
1
|
export interface IMarketPlace {
|
|
7
2
|
_id: string;
|
|
8
3
|
baseAppURL: string;
|
|
@@ -30,7 +25,4 @@ export interface IMarketPlace {
|
|
|
30
25
|
isSellersManager: boolean;
|
|
31
26
|
hasCRM: boolean;
|
|
32
27
|
marketplaceDistributionId: string;
|
|
33
|
-
mailProvider?: IMailProvider;
|
|
34
|
-
customTemplates?: IPostSQSTypeValues;
|
|
35
|
-
customHTMLPath?: IPostSQSTypeValues;
|
|
36
28
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IMailProvider = void 0;
|
|
4
|
-
var IMailProvider;
|
|
5
|
-
(function (IMailProvider) {
|
|
6
|
-
IMailProvider["sendgrid"] = "sendgrid";
|
|
7
|
-
IMailProvider["inforu"] = "inforu";
|
|
8
|
-
})(IMailProvider || (exports.IMailProvider = IMailProvider = {}));
|
|
9
3
|
//# sourceMappingURL=marketPlace.js.map
|
|
@@ -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":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 mongoose from "mongoose";
|
|
9
|
+
export interface IDeviceNotificationModel {
|
|
10
|
+
deviceToken: string;
|
|
11
|
+
endUser: string | mongoose.Types.ObjectId;
|
|
12
|
+
platform: string;
|
|
13
|
+
appVersion?: string;
|
|
14
|
+
deviceInfo?: {
|
|
15
|
+
model?: string;
|
|
16
|
+
osVersion?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceNotification.js","sourceRoot":"","sources":["../../src/crm/deviceNotification.ts"],"names":[],"mappings":""}
|
package/dist/crm/index.d.ts
CHANGED
package/dist/crm/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./endUserCRMEvent"), exports);
|
|
18
|
+
__exportStar(require("./deviceNotification"), exports);
|
|
18
19
|
//# 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"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC"}
|
package/dist/event/event.d.ts
CHANGED
|
@@ -8,10 +8,26 @@ export interface IEventLinkModel {
|
|
|
8
8
|
utm: string;
|
|
9
9
|
tickets: string[];
|
|
10
10
|
}
|
|
11
|
+
export interface ISeasonTicketEventDiscount {
|
|
12
|
+
discountType: ISeasonTicketEventDiscountTypeEnum;
|
|
13
|
+
discountValue: number;
|
|
14
|
+
seasonTicket: string;
|
|
15
|
+
}
|
|
16
|
+
export declare enum ISeasonTicketEventDiscountTypeEnum {
|
|
17
|
+
percentage = "percentage",
|
|
18
|
+
fixed = "fixed"
|
|
19
|
+
}
|
|
11
20
|
export declare enum IEventTypeEnum {
|
|
12
21
|
TRANCE_PARTY = "trance-party",
|
|
13
22
|
TECHNO_PARTY = "techno-party",
|
|
14
|
-
ELECTRONIC_PARTY = "electronic-party"
|
|
23
|
+
ELECTRONIC_PARTY = "electronic-party",
|
|
24
|
+
CULTURE = "culture",
|
|
25
|
+
SPORT = "sport",
|
|
26
|
+
BUSINESS = "business",
|
|
27
|
+
LECTURER = "lecturer",
|
|
28
|
+
EDUCATION = "education",
|
|
29
|
+
CHARITY = "charity",
|
|
30
|
+
OTHER = "other"
|
|
15
31
|
}
|
|
16
32
|
export interface IEventModel {
|
|
17
33
|
start_hour?: Date;
|
|
@@ -54,4 +70,5 @@ export interface IEventModel {
|
|
|
54
70
|
nimiFeeType: IFeeCollectionType;
|
|
55
71
|
isPublic: boolean;
|
|
56
72
|
chartName?: string;
|
|
73
|
+
seasonTicketEventDiscount?: ISeasonTicketEventDiscount;
|
|
57
74
|
}
|
package/dist/event/event.js
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IEventTypeEnum = void 0;
|
|
3
|
+
exports.IEventTypeEnum = exports.ISeasonTicketEventDiscountTypeEnum = void 0;
|
|
4
|
+
var ISeasonTicketEventDiscountTypeEnum;
|
|
5
|
+
(function (ISeasonTicketEventDiscountTypeEnum) {
|
|
6
|
+
ISeasonTicketEventDiscountTypeEnum["percentage"] = "percentage";
|
|
7
|
+
ISeasonTicketEventDiscountTypeEnum["fixed"] = "fixed";
|
|
8
|
+
})(ISeasonTicketEventDiscountTypeEnum || (exports.ISeasonTicketEventDiscountTypeEnum = ISeasonTicketEventDiscountTypeEnum = {}));
|
|
4
9
|
var IEventTypeEnum;
|
|
5
10
|
(function (IEventTypeEnum) {
|
|
6
11
|
IEventTypeEnum["TRANCE_PARTY"] = "trance-party";
|
|
7
12
|
IEventTypeEnum["TECHNO_PARTY"] = "techno-party";
|
|
8
13
|
IEventTypeEnum["ELECTRONIC_PARTY"] = "electronic-party";
|
|
14
|
+
IEventTypeEnum["CULTURE"] = "culture";
|
|
15
|
+
IEventTypeEnum["SPORT"] = "sport";
|
|
16
|
+
IEventTypeEnum["BUSINESS"] = "business";
|
|
17
|
+
IEventTypeEnum["LECTURER"] = "lecturer";
|
|
18
|
+
IEventTypeEnum["EDUCATION"] = "education";
|
|
19
|
+
IEventTypeEnum["CHARITY"] = "charity";
|
|
20
|
+
IEventTypeEnum["OTHER"] = "other";
|
|
9
21
|
})(IEventTypeEnum || (exports.IEventTypeEnum = IEventTypeEnum = {}));
|
|
10
22
|
//# sourceMappingURL=event.js.map
|
package/dist/event/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AAeA,IAAY,kCAGX;AAHD,WAAY,kCAAkC;IAC5C,+DAAyB,CAAA;IACzB,qDAAe,CAAA;AACjB,CAAC,EAHW,kCAAkC,kDAAlC,kCAAkC,QAG7C;AACD,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACjB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB"}
|
package/dist/event/index.d.ts
CHANGED
package/dist/event/index.js
CHANGED
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./event"), exports);
|
|
18
18
|
__exportStar(require("./ticket"), exports);
|
|
19
|
-
__exportStar(require("./specialTickets"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
package/dist/event/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB"}
|
|
@@ -15,10 +15,5 @@ export declare enum IPostSQSType {
|
|
|
15
15
|
UPDATE_TICKETS_REFUND = "UPDATE_TICKETS_REFUND",
|
|
16
16
|
UPDATE_TICKETS_PENDING = "UPDATE_TICKETS_PENDING",
|
|
17
17
|
UPDATE_TICKETS_CANCELLED = "UPDATE_TICKETS_CANCELLED",
|
|
18
|
-
SMS_VERIFICATION = "SMS_VERIFICATION"
|
|
19
|
-
SUBSCRIPTION_PURCHASED = "SUBSCRIPTION_PURCHASED",
|
|
20
|
-
SEND_SPECIAL_TICKETS = "SEND_SPECIAL_TICKETS"
|
|
18
|
+
SMS_VERIFICATION = "SMS_VERIFICATION"
|
|
21
19
|
}
|
|
22
|
-
export type IPostSQSTypeValues = {
|
|
23
|
-
[key in IPostSQSType]: any;
|
|
24
|
-
};
|
|
@@ -20,7 +20,5 @@ var IPostSQSType;
|
|
|
20
20
|
IPostSQSType["UPDATE_TICKETS_PENDING"] = "UPDATE_TICKETS_PENDING";
|
|
21
21
|
IPostSQSType["UPDATE_TICKETS_CANCELLED"] = "UPDATE_TICKETS_CANCELLED";
|
|
22
22
|
IPostSQSType["SMS_VERIFICATION"] = "SMS_VERIFICATION";
|
|
23
|
-
IPostSQSType["SUBSCRIPTION_PURCHASED"] = "SUBSCRIPTION_PURCHASED";
|
|
24
|
-
IPostSQSType["SEND_SPECIAL_TICKETS"] = "SEND_SPECIAL_TICKETS";
|
|
25
23
|
})(IPostSQSType || (exports.IPostSQSType = IPostSQSType = {}));
|
|
26
24
|
//# sourceMappingURL=sqs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqs.js","sourceRoot":"","sources":["../../src/send-notification/sqs.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"sqs.js","sourceRoot":"","sources":["../../src/send-notification/sqs.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAkBX;AAlBD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,2DAA2C,CAAA;IAC3C,qEAAqD,CAAA;IACrD,6CAA6B,CAAA;IAC7B,yDAAyC,CAAA;IACzC,qDAAqC,CAAA;IACrC,+CAA+B,CAAA;IAC/B,yEAAyD,CAAA;IACzD,iDAAiC,CAAA;IACjC,yDAAyC,CAAA;IACzC,iEAAiD,CAAA;IACjD,iCAAiB,CAAA;IACjB,2DAA2C,CAAA;IAC3C,+DAA+C,CAAA;IAC/C,iEAAiD,CAAA;IACjD,qEAAqD,CAAA;IACrD,qDAAqC,CAAA;AACvC,CAAC,EAlBW,YAAY,4BAAZ,YAAY,QAkBvB"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { IPostSQSTypeValues } from "../send-notification/sqs";
|
|
2
|
-
export enum IMailProvider {
|
|
3
|
-
sendgrid = "sendgrid",
|
|
4
|
-
inforu = "inforu",
|
|
5
|
-
}
|
|
6
1
|
export interface IMarketPlace {
|
|
7
2
|
_id: string;
|
|
8
3
|
baseAppURL: string;
|
|
@@ -30,7 +25,4 @@ export interface IMarketPlace {
|
|
|
30
25
|
isSellersManager: boolean;
|
|
31
26
|
hasCRM: boolean;
|
|
32
27
|
marketplaceDistributionId: string;
|
|
33
|
-
mailProvider?: IMailProvider;
|
|
34
|
-
customTemplates?: IPostSQSTypeValues;
|
|
35
|
-
customHTMLPath?: IPostSQSTypeValues;
|
|
36
28
|
}
|
package/src/crm/index.ts
CHANGED
package/src/event/event.ts
CHANGED
|
@@ -8,11 +8,26 @@ export interface IEventLinkModel {
|
|
|
8
8
|
utm: string;
|
|
9
9
|
tickets: string[];
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
export interface ISeasonTicketEventDiscount {
|
|
12
|
+
discountType: ISeasonTicketEventDiscountTypeEnum;
|
|
13
|
+
discountValue: number;
|
|
14
|
+
seasonTicket: string;
|
|
15
|
+
}
|
|
16
|
+
export enum ISeasonTicketEventDiscountTypeEnum {
|
|
17
|
+
percentage = "percentage",
|
|
18
|
+
fixed = "fixed",
|
|
19
|
+
}
|
|
12
20
|
export enum IEventTypeEnum {
|
|
13
21
|
TRANCE_PARTY = "trance-party",
|
|
14
22
|
TECHNO_PARTY = "techno-party",
|
|
15
23
|
ELECTRONIC_PARTY = "electronic-party",
|
|
24
|
+
CULTURE = "culture",
|
|
25
|
+
SPORT = "sport",
|
|
26
|
+
BUSINESS = "business",
|
|
27
|
+
LECTURER = "lecturer",
|
|
28
|
+
EDUCATION = "education",
|
|
29
|
+
CHARITY = "charity",
|
|
30
|
+
OTHER = "other",
|
|
16
31
|
}
|
|
17
32
|
export interface IEventModel {
|
|
18
33
|
start_hour?: Date;
|
|
@@ -52,4 +67,5 @@ export interface IEventModel {
|
|
|
52
67
|
nimiFeeType: IFeeCollectionType;
|
|
53
68
|
isPublic: boolean;
|
|
54
69
|
chartName?: string;
|
|
70
|
+
seasonTicketEventDiscount?: ISeasonTicketEventDiscount;
|
|
55
71
|
}
|
package/src/event/index.ts
CHANGED
|
@@ -16,9 +16,4 @@ export enum IPostSQSType {
|
|
|
16
16
|
UPDATE_TICKETS_PENDING = "UPDATE_TICKETS_PENDING",
|
|
17
17
|
UPDATE_TICKETS_CANCELLED = "UPDATE_TICKETS_CANCELLED",
|
|
18
18
|
SMS_VERIFICATION = "SMS_VERIFICATION",
|
|
19
|
-
SUBSCRIPTION_PURCHASED = "SUBSCRIPTION_PURCHASED",
|
|
20
|
-
SEND_SPECIAL_TICKETS = "SEND_SPECIAL_TICKETS",
|
|
21
19
|
}
|
|
22
|
-
export type IPostSQSTypeValues = {
|
|
23
|
-
[key in IPostSQSType]: any;
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ITicketInfoModel } from "../userEvent";
|
|
2
|
-
|
|
3
|
-
export interface ISpecialTickets {
|
|
4
|
-
lName: string;
|
|
5
|
-
fName: String;
|
|
6
|
-
ticketsInfo: [ITicketInfoModel];
|
|
7
|
-
eventName: string;
|
|
8
|
-
startDate: Date;
|
|
9
|
-
startHour: Date;
|
|
10
|
-
email: string;
|
|
11
|
-
phone: string;
|
|
12
|
-
accountName: string;
|
|
13
|
-
}
|