@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.
@@ -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":";;;AACA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=deviceNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceNotification.js","sourceRoot":"","sources":["../../src/crm/deviceNotification.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
1
  export * from "./endUserCRMEvent";
2
+ export * from "./deviceNotification";
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
@@ -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"}
@@ -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
  }
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AAWA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;AACvC,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
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"}
@@ -1,3 +1,2 @@
1
1
  export * from "./event";
2
2
  export * from "./ticket";
3
- export * from "./specialTickets";
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,mDAAiC"}
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,YAoBX;AApBD,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;IACrC,iEAAiD,CAAA;IACjD,6DAA6C,CAAA;AAC/C,CAAC,EApBW,YAAY,4BAAZ,YAAY,QAoBvB"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -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
  }
@@ -0,0 +1,11 @@
1
+ import mongoose from "mongoose";
2
+ export interface IDeviceNotificationModel {
3
+ deviceToken: string;
4
+ endUser: string | mongoose.Types.ObjectId;
5
+ platform: string;
6
+ appVersion?: string;
7
+ deviceInfo?: {
8
+ model?: string;
9
+ osVersion?: string;
10
+ };
11
+ }
package/src/crm/index.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./endUserCRMEvent";
2
+ export * from "./deviceNotification";
@@ -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
  }
@@ -1,3 +1,2 @@
1
1
  export * from "./event";
2
2
  export * from "./ticket";
3
- export * from "./specialTickets";
@@ -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
- }