@nimee/shared-types 1.0.95 → 1.0.97

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.
@@ -17,3 +17,12 @@ export declare enum IPostSMSType {
17
17
  UPDATE_TICKETS_CANCELLED = "UPDATE_TICKETS_CANCELLED",
18
18
  CAMPAIGN = "CAMPAIGN"
19
19
  }
20
+ export interface ISMSGroup {
21
+ account: string;
22
+ event?: string;
23
+ user: string;
24
+ name: string;
25
+ counter?: number;
26
+ active_counter?: number;
27
+ _id?: string;
28
+ }
@@ -1,23 +1,30 @@
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" />
1
8
  import mongoose from "mongoose";
2
9
  export interface IEndUserModel {
3
- _id: string | mongoose.Types.ObjectId;
10
+ _id?: string | mongoose.Types.ObjectId;
4
11
  fname: string;
5
12
  lname: string;
6
13
  email: string;
7
- emailVerifiedToken: string;
8
- twitterProfile: string;
9
- instagramProfile: string;
10
- facebookProfile: string;
11
- token: string;
12
- forgetPasswordToken: string;
13
- roles: Array<string>;
14
- isEmailVerified: Boolean;
15
- isPhoneVerified: Boolean;
14
+ emailVerifiedToken?: string;
15
+ twitterProfile?: string;
16
+ instagramProfile?: string;
17
+ fbProfile?: string;
18
+ token?: string;
19
+ forgetPasswordToken?: string;
20
+ roles?: Array<string>;
21
+ isEmailVerified?: Boolean;
22
+ isPhoneVerified?: Boolean;
16
23
  phone: string;
17
24
  gender: string;
18
- imageUrl: string;
19
- verificationCode: string;
20
- birthDate: Date;
25
+ imageUrl?: string;
26
+ verificationCode?: string;
27
+ birth_date?: Date;
21
28
  marketplace: string | mongoose.Types.ObjectId;
22
29
  account: string | mongoose.Types.ObjectId;
23
30
  }
@@ -1,3 +1,4 @@
1
1
  export * from "./user";
2
2
  export * from "./partner";
3
3
  export * from "./endUser";
4
+ export * from "./segment";
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user"), exports);
18
18
  __exportStar(require("./partner"), exports);
19
19
  __exportStar(require("./endUser"), exports);
20
+ __exportStar(require("./segment"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B"}
@@ -0,0 +1,21 @@
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 ISegmentModel {
10
+ _id?: string;
11
+ name: string;
12
+ marketplace: string | mongoose.Types.ObjectId;
13
+ account: string | mongoose.Types.ObjectId;
14
+ }
15
+ export interface ISegmentEndUserModel {
16
+ _id?: string;
17
+ segment: string | mongoose.Types.ObjectId;
18
+ endUser: string | mongoose.Types.ObjectId;
19
+ marketplace: string | mongoose.Types.ObjectId;
20
+ account: string | mongoose.Types.ObjectId;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=segment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/user/segment.ts"],"names":[],"mappings":""}
@@ -7,6 +7,7 @@ export interface ITicketInfoModel {
7
7
  isApproved: boolean;
8
8
  isRefunded: boolean;
9
9
  originalPrice: number;
10
+ checkedInAt: Date;
10
11
  }
11
12
  export interface IUserEventModel {
12
13
  event: string;
@@ -25,7 +26,7 @@ export interface IUserEventModel {
25
26
  _id: string;
26
27
  token: string;
27
28
  purchaseToken: string;
28
- birth_date: string;
29
+ birth_date: Date;
29
30
  gender: string;
30
31
  image_url: string;
31
32
  identificationNumber: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.95",
3
+ "version": "1.0.97",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -17,3 +17,12 @@ export enum IPostSMSType {
17
17
  UPDATE_TICKETS_CANCELLED = "UPDATE_TICKETS_CANCELLED",
18
18
  CAMPAIGN = "CAMPAIGN",
19
19
  }
20
+ export interface ISMSGroup {
21
+ account: string;
22
+ event?: string;
23
+ user: string;
24
+ name: string;
25
+ counter?: number;
26
+ active_counter?: number;
27
+ _id?: string;
28
+ }
@@ -1,23 +1,23 @@
1
1
  import mongoose from "mongoose";
2
2
  export interface IEndUserModel {
3
- _id: string | mongoose.Types.ObjectId;
3
+ _id?: string | mongoose.Types.ObjectId;
4
4
  fname: string;
5
5
  lname: string;
6
6
  email: string;
7
- emailVerifiedToken: string;
8
- twitterProfile: string;
9
- instagramProfile: string;
10
- facebookProfile: string;
11
- token: string;
12
- forgetPasswordToken: string;
13
- roles: Array<string>;
14
- isEmailVerified: Boolean;
15
- isPhoneVerified: Boolean;
7
+ emailVerifiedToken?: string;
8
+ twitterProfile?: string;
9
+ instagramProfile?: string;
10
+ fbProfile?: string;
11
+ token?: string;
12
+ forgetPasswordToken?: string;
13
+ roles?: Array<string>;
14
+ isEmailVerified?: Boolean;
15
+ isPhoneVerified?: Boolean;
16
16
  phone: string;
17
17
  gender: string;
18
- imageUrl: string;
19
- verificationCode: string;
20
- birthDate: Date;
18
+ imageUrl?: string;
19
+ verificationCode?: string;
20
+ birth_date?: Date;
21
21
  marketplace: string | mongoose.Types.ObjectId;
22
22
  account: string | mongoose.Types.ObjectId;
23
23
  }
package/src/user/index.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./user";
2
2
  export * from "./partner";
3
3
  export * from "./endUser";
4
+ export * from "./segment";
@@ -1,22 +1,22 @@
1
1
  export interface ISellerPartnerData {
2
- seller_first_name: string;
3
- seller_last_name: string;
4
- seller_social_id: string;
5
- seller_birthdate: string;
6
- seller_social_id_issued: string;
7
- seller_gender: string;
8
- seller_email: string;
9
- seller_phone: string;
10
- seller_bank_code: number;
11
- seller_bank_branch: number;
12
- seller_bank_account_number: string;
13
- seller_description: string;
14
- seller_site_url: string;
15
- seller_person_business_type: string;
16
- seller_inc: string;
17
- seller_merchant_name: string;
18
- seller_address_city: string;
19
- seller_address_street: string;
20
- seller_address_street_number: string;
21
- seller_address_country: string;
2
+ seller_first_name: string;
3
+ seller_last_name: string;
4
+ seller_social_id: string;
5
+ seller_birthdate: string;
6
+ seller_social_id_issued: string;
7
+ seller_gender: string;
8
+ seller_email: string;
9
+ seller_phone: string;
10
+ seller_bank_code: number;
11
+ seller_bank_branch: number;
12
+ seller_bank_account_number: string;
13
+ seller_description: string;
14
+ seller_site_url: string;
15
+ seller_person_business_type: string;
16
+ seller_inc: string;
17
+ seller_merchant_name: string;
18
+ seller_address_city: string;
19
+ seller_address_street: string;
20
+ seller_address_street_number: string;
21
+ seller_address_country: string;
22
22
  }
@@ -0,0 +1,15 @@
1
+ import mongoose from "mongoose";
2
+ export interface ISegmentModel {
3
+ _id?: string;
4
+ name: string;
5
+ marketplace: string | mongoose.Types.ObjectId;
6
+ account: string | mongoose.Types.ObjectId;
7
+ }
8
+
9
+ export interface ISegmentEndUserModel {
10
+ _id?: string;
11
+ segment: string | mongoose.Types.ObjectId;
12
+ endUser: string | mongoose.Types.ObjectId;
13
+ marketplace: string | mongoose.Types.ObjectId;
14
+ account: string | mongoose.Types.ObjectId;
15
+ }
@@ -7,6 +7,7 @@ export interface ITicketInfoModel {
7
7
  isApproved: boolean;
8
8
  isRefunded: boolean;
9
9
  originalPrice: number;
10
+ checkedInAt: Date;
10
11
  }
11
12
  export interface IUserEventModel {
12
13
  event: string;
@@ -25,7 +26,7 @@ export interface IUserEventModel {
25
26
  _id: string;
26
27
  token: string;
27
28
  purchaseToken: string;
28
- birth_date: string;
29
+ birth_date: Date;
29
30
  gender: string;
30
31
  image_url: string;
31
32
  identificationNumber: string;