@nimee/shared-types 1.0.36 → 1.0.38

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,20 +1,20 @@
1
- export declare enum RoleTypeEnum {
1
+ export declare enum IRoleTypeEnum {
2
2
  user = 1,
3
3
  reader = 2,
4
4
  editor = 3,
5
5
  admin = 4,
6
6
  owner = 5
7
7
  }
8
- export interface CollaboratesModel {
8
+ export interface ICollaboratesModel {
9
9
  user_id: string;
10
- role: RoleTypeEnum;
10
+ role: IRoleTypeEnum;
11
11
  }
12
- export declare enum InviteeStateTypeEnum {
12
+ export declare enum IInviteeStateTypeEnum {
13
13
  SENT = "sent",
14
14
  EXPIRED = "expired",
15
15
  ACCEPTED = "accepted"
16
16
  }
17
- export interface AccountModel {
17
+ export interface IAccountModel {
18
18
  idInsidePaymentProvider: string;
19
19
  name: string;
20
20
  owner: string;
@@ -22,13 +22,13 @@ export interface AccountModel {
22
22
  businessGovId: string;
23
23
  collaborates: [{
24
24
  user_id: string;
25
- role: RoleTypeEnum;
25
+ role: IRoleTypeEnum;
26
26
  }];
27
27
  invitees: [{
28
- state: InviteeStateTypeEnum;
28
+ state: IInviteeStateTypeEnum;
29
29
  name: string;
30
30
  email: string;
31
- role: RoleTypeEnum;
31
+ role: IRoleTypeEnum;
32
32
  token: string;
33
33
  }];
34
34
  isAccountVerified: boolean;
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InviteeStateTypeEnum = exports.RoleTypeEnum = void 0;
4
- var RoleTypeEnum;
5
- (function (RoleTypeEnum) {
6
- RoleTypeEnum[RoleTypeEnum["user"] = 1] = "user";
7
- RoleTypeEnum[RoleTypeEnum["reader"] = 2] = "reader";
8
- RoleTypeEnum[RoleTypeEnum["editor"] = 3] = "editor";
9
- RoleTypeEnum[RoleTypeEnum["admin"] = 4] = "admin";
10
- RoleTypeEnum[RoleTypeEnum["owner"] = 5] = "owner";
11
- })(RoleTypeEnum = exports.RoleTypeEnum || (exports.RoleTypeEnum = {}));
12
- var InviteeStateTypeEnum;
13
- (function (InviteeStateTypeEnum) {
14
- InviteeStateTypeEnum["SENT"] = "sent";
15
- InviteeStateTypeEnum["EXPIRED"] = "expired";
16
- InviteeStateTypeEnum["ACCEPTED"] = "accepted";
17
- })(InviteeStateTypeEnum = exports.InviteeStateTypeEnum || (exports.InviteeStateTypeEnum = {}));
3
+ exports.IInviteeStateTypeEnum = exports.IRoleTypeEnum = void 0;
4
+ var IRoleTypeEnum;
5
+ (function (IRoleTypeEnum) {
6
+ IRoleTypeEnum[IRoleTypeEnum["user"] = 1] = "user";
7
+ IRoleTypeEnum[IRoleTypeEnum["reader"] = 2] = "reader";
8
+ IRoleTypeEnum[IRoleTypeEnum["editor"] = 3] = "editor";
9
+ IRoleTypeEnum[IRoleTypeEnum["admin"] = 4] = "admin";
10
+ IRoleTypeEnum[IRoleTypeEnum["owner"] = 5] = "owner";
11
+ })(IRoleTypeEnum = exports.IRoleTypeEnum || (exports.IRoleTypeEnum = {}));
12
+ var IInviteeStateTypeEnum;
13
+ (function (IInviteeStateTypeEnum) {
14
+ IInviteeStateTypeEnum["SENT"] = "sent";
15
+ IInviteeStateTypeEnum["EXPIRED"] = "expired";
16
+ IInviteeStateTypeEnum["ACCEPTED"] = "accepted";
17
+ })(IInviteeStateTypeEnum = exports.IInviteeStateTypeEnum || (exports.IInviteeStateTypeEnum = {}));
18
18
  //# sourceMappingURL=account.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,+CAAQ,CAAA;IACR,mDAAU,CAAA;IACV,mDAAU,CAAA;IACV,iDAAS,CAAA;IACT,iDAAS,CAAA;AACX,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAKD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,2CAAmB,CAAA;IACnB,6CAAqB,CAAA;AACvB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
1
+ {"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,iDAAQ,CAAA;IACR,qDAAU,CAAA;IACV,qDAAU,CAAA;IACV,mDAAS,CAAA;IACT,mDAAS,CAAA;AACX,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAKD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
@@ -0,0 +1,37 @@
1
+ import { IRoleTypeEnum } from "../account";
2
+ export declare enum IEventTypeEnum {
3
+ TRANCE_PARTY = "trance-party",
4
+ TECHNO_PARTY = "techno-party",
5
+ ELECTRONIC_PARTY = "electronic-party"
6
+ }
7
+ export interface IEventModel {
8
+ start_time: string;
9
+ comments: string;
10
+ name: string;
11
+ facebook_page?: string;
12
+ description: string;
13
+ type: IEventTypeEnum;
14
+ _id: string;
15
+ start_date?: Date;
16
+ end_date?: Date;
17
+ is_password_enabled: boolean;
18
+ is_enabled: boolean;
19
+ theme?: string;
20
+ account: string;
21
+ collaborates: [{
22
+ user_id: string;
23
+ role: IRoleTypeEnum;
24
+ }];
25
+ password?: string;
26
+ design?: {
27
+ image: string;
28
+ color: string;
29
+ video: string;
30
+ font: string;
31
+ imageBGMobile: string;
32
+ imageForEmail: string;
33
+ };
34
+ handler: string;
35
+ location?: string;
36
+ contact_email?: string;
37
+ }
@@ -1 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IEventTypeEnum = void 0;
4
+ var IEventTypeEnum;
5
+ (function (IEventTypeEnum) {
6
+ IEventTypeEnum["TRANCE_PARTY"] = "trance-party";
7
+ IEventTypeEnum["TECHNO_PARTY"] = "techno-party";
8
+ IEventTypeEnum["ELECTRONIC_PARTY"] = "electronic-party";
9
+ })(IEventTypeEnum = exports.IEventTypeEnum || (exports.IEventTypeEnum = {}));
1
10
  //# sourceMappingURL=event.js.map
@@ -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":";;;AACA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;AACvC,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
@@ -1 +1,2 @@
1
+ export * from "./event";
1
2
  export * from "./ticket";
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- // export * from "./event";
17
+ __exportStar(require("./event"), exports);
18
18
  __exportStar(require("./ticket"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB"}
@@ -1,4 +1,4 @@
1
- export interface TicketModel {
1
+ export interface ITicketModel {
2
2
  name: string;
3
3
  description: string;
4
4
  type: string;
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./account";
2
2
  export * from "./userEvent";
3
3
  export * from "./event";
4
4
  export * from "./payment";
5
+ export * from "./send-notification";
package/dist/index.js CHANGED
@@ -19,4 +19,5 @@ __exportStar(require("./account"), exports);
19
19
  __exportStar(require("./userEvent"), exports);
20
20
  __exportStar(require("./event"), exports);
21
21
  __exportStar(require("./payment"), exports);
22
+ __exportStar(require("./send-notification"), exports);
22
23
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB;AACxB,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB;AACxB,4CAA0B;AAC1B,sDAAoC"}
@@ -1,4 +1,4 @@
1
- export declare enum StatusPaymentEnum {
1
+ export declare enum IStatusPaymentEnum {
2
2
  pending = "pending",
3
3
  approved = "approved",
4
4
  rejected = "rejected",
@@ -27,10 +27,10 @@ export interface IChargeModel {
27
27
  buyer_phone?: string;
28
28
  buyer_social_id?: string;
29
29
  buyer_key?: string;
30
- installments?: string;
30
+ installments?: number;
31
31
  sale_paid_date?: Date;
32
32
  sale_release_date?: Date;
33
- is_token_sale?: number;
33
+ is_token_sale?: string;
34
34
  sale_invoice_url?: string;
35
35
  event: string;
36
36
  account: string;
@@ -43,5 +43,5 @@ export interface IChargeModel {
43
43
  external_transaction_card_brand?: string;
44
44
  external_transaction_auth_number?: string;
45
45
  external_signature?: string;
46
- status: StatusPaymentEnum;
46
+ status: string;
47
47
  }
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatusPaymentEnum = void 0;
4
- var StatusPaymentEnum;
5
- (function (StatusPaymentEnum) {
6
- StatusPaymentEnum["pending"] = "pending";
7
- StatusPaymentEnum["approved"] = "approved";
8
- StatusPaymentEnum["rejected"] = "rejected";
9
- StatusPaymentEnum["cancelled"] = "cancelled";
10
- StatusPaymentEnum["refunded"] = "refunded";
11
- StatusPaymentEnum["paid"] = "paid";
12
- StatusPaymentEnum["failed"] = "failed";
13
- StatusPaymentEnum["expired"] = "expired";
14
- StatusPaymentEnum["pending_refund"] = "pending_refund";
15
- })(StatusPaymentEnum = exports.StatusPaymentEnum || (exports.StatusPaymentEnum = {}));
3
+ exports.IStatusPaymentEnum = void 0;
4
+ var IStatusPaymentEnum;
5
+ (function (IStatusPaymentEnum) {
6
+ IStatusPaymentEnum["pending"] = "pending";
7
+ IStatusPaymentEnum["approved"] = "approved";
8
+ IStatusPaymentEnum["rejected"] = "rejected";
9
+ IStatusPaymentEnum["cancelled"] = "cancelled";
10
+ IStatusPaymentEnum["refunded"] = "refunded";
11
+ IStatusPaymentEnum["paid"] = "paid";
12
+ IStatusPaymentEnum["failed"] = "failed";
13
+ IStatusPaymentEnum["expired"] = "expired";
14
+ IStatusPaymentEnum["pending_refund"] = "pending_refund";
15
+ })(IStatusPaymentEnum = exports.IStatusPaymentEnum || (exports.IStatusPaymentEnum = {}));
16
16
  //# sourceMappingURL=charge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAUX;AAVD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sDAAiC,CAAA;AACnC,CAAC,EAVW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAU5B"}
1
+ {"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;AACnC,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B"}
@@ -0,0 +1 @@
1
+ export * from "./sqs";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./sqs"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/send-notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
@@ -0,0 +1,9 @@
1
+ export declare enum IPostSQSType {
2
+ FORGOT_PASSWORD_EMAIL = "forgotPasswordEmail",
3
+ FORGOT_PASSWORD_SMS = "forgotPasswordSMS",
4
+ FORGOT_PASSWORD_WHATSAPP = "forgotPasswordWhatsApp",
5
+ WELCOME_MAIL = "autoPostSchedule",
6
+ EMAIL_VERIFICATION = "emailVerification",
7
+ WEBHOOK_RECEIVED = "WEBHOOK_RECEIVED",
8
+ GENERATE_SALE = "GENERATE_SALE"
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IPostSQSType = void 0;
4
+ var IPostSQSType;
5
+ (function (IPostSQSType) {
6
+ IPostSQSType["FORGOT_PASSWORD_EMAIL"] = "forgotPasswordEmail";
7
+ IPostSQSType["FORGOT_PASSWORD_SMS"] = "forgotPasswordSMS";
8
+ IPostSQSType["FORGOT_PASSWORD_WHATSAPP"] = "forgotPasswordWhatsApp";
9
+ IPostSQSType["WELCOME_MAIL"] = "autoPostSchedule";
10
+ IPostSQSType["EMAIL_VERIFICATION"] = "emailVerification";
11
+ IPostSQSType["WEBHOOK_RECEIVED"] = "WEBHOOK_RECEIVED";
12
+ IPostSQSType["GENERATE_SALE"] = "GENERATE_SALE";
13
+ })(IPostSQSType = exports.IPostSQSType || (exports.IPostSQSType = {}));
14
+ //# sourceMappingURL=sqs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqs.js","sourceRoot":"","sources":["../../src/send-notification/sqs.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,6DAA6C,CAAA;IAC7C,yDAAyC,CAAA;IACzC,mEAAmD,CAAA;IACnD,iDAAiC,CAAA;IACjC,wDAAwC,CAAA;IACxC,qDAAqC,CAAA;IACrC,+CAA+B,CAAA;AACjC,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB"}
@@ -1,8 +1,14 @@
1
- export interface EventOrderModel {
1
+ import { IStatusPaymentEnum } from "../payment";
2
+ import { IUserEventModel } from "./userEvent";
3
+ export interface IEventOrderModel {
2
4
  event: string;
3
5
  account: string;
4
- userEvents: string[];
5
6
  isApproved: boolean;
6
- purchaseToken: string;
7
+ charge?: string;
7
8
  _id: string;
9
+ token: string;
10
+ purchaseToken: string;
11
+ userEvents: Array<IUserEventModel>;
12
+ status: IStatusPaymentEnum;
13
+ orderNumber: string;
8
14
  }
@@ -1,4 +1,4 @@
1
- export interface UserEventModel {
1
+ export interface IUserEventModel {
2
2
  event: string;
3
3
  account: string;
4
4
  user: string;
@@ -15,4 +15,8 @@ export interface UserEventModel {
15
15
  _id: string;
16
16
  token: string;
17
17
  purchaseToken: string;
18
+ birth_date: string;
19
+ gender: string;
20
+ image_url: string;
21
+ identificationNumber: string;
18
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
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,27 +1,27 @@
1
- export enum RoleTypeEnum {
1
+ export enum IRoleTypeEnum {
2
2
  user = 1,
3
3
  reader = 2,
4
4
  editor = 3,
5
5
  admin = 4,
6
6
  owner = 5,
7
7
  }
8
- export interface CollaboratesModel {
8
+ export interface ICollaboratesModel {
9
9
  user_id: string;
10
- role: RoleTypeEnum;
10
+ role: IRoleTypeEnum;
11
11
  }
12
- export enum InviteeStateTypeEnum {
12
+ export enum IInviteeStateTypeEnum {
13
13
  SENT = "sent",
14
14
  EXPIRED = "expired",
15
15
  ACCEPTED = "accepted",
16
16
  }
17
- export interface AccountModel {
17
+ export interface IAccountModel {
18
18
  idInsidePaymentProvider: string;
19
19
  name: string;
20
20
  owner: string;
21
21
  email: string;
22
22
  businessGovId: string;
23
- collaborates: [{ user_id: string; role: RoleTypeEnum }];
24
- invitees: [{ state: InviteeStateTypeEnum; name: string; email: string; role: RoleTypeEnum; token: string }];
23
+ collaborates: [{ user_id: string; role: IRoleTypeEnum }];
24
+ invitees: [{ state: IInviteeStateTypeEnum; name: string; email: string; role: IRoleTypeEnum; token: string }];
25
25
  isAccountVerified: boolean;
26
26
  isEmailVerified: boolean;
27
27
  transactionPercentage: number;
@@ -0,0 +1,27 @@
1
+ import { IRoleTypeEnum } from "../account";
2
+ export enum IEventTypeEnum {
3
+ TRANCE_PARTY = "trance-party",
4
+ TECHNO_PARTY = "techno-party",
5
+ ELECTRONIC_PARTY = "electronic-party",
6
+ }
7
+ export interface IEventModel {
8
+ start_time: string;
9
+ comments: string;
10
+ name: string;
11
+ facebook_page?: string;
12
+ description: string;
13
+ type: IEventTypeEnum;
14
+ _id: string;
15
+ start_date?: Date;
16
+ end_date?: Date;
17
+ is_password_enabled: boolean;
18
+ is_enabled: boolean;
19
+ theme?: string;
20
+ account: string;
21
+ collaborates: [{ user_id: string; role: IRoleTypeEnum }];
22
+ password?: string;
23
+ design?: { image: string; color: string; video: string; font: string; imageBGMobile: string; imageForEmail: string };
24
+ handler: string;
25
+ location?: string;
26
+ contact_email?: string;
27
+ }
@@ -1,2 +1,2 @@
1
- // export * from "./event";
1
+ export * from "./event";
2
2
  export * from "./ticket";
@@ -1,4 +1,4 @@
1
- export interface TicketModel {
1
+ export interface ITicketModel {
2
2
  name: string;
3
3
  description: string;
4
4
  type: string;
package/src/index.ts CHANGED
@@ -3,3 +3,4 @@ export * from "./account";
3
3
  export * from "./userEvent";
4
4
  export * from "./event";
5
5
  export * from "./payment";
6
+ export * from "./send-notification";
@@ -1,4 +1,4 @@
1
- export enum StatusPaymentEnum {
1
+ export enum IStatusPaymentEnum {
2
2
  pending = "pending",
3
3
  approved = "approved",
4
4
  rejected = "rejected",
@@ -32,10 +32,10 @@ export interface IChargeModel {
32
32
  buyer_phone?: string; // 0540000000 Buyer's phone number
33
33
  buyer_social_id?: string; // 000000001 Buyer's social id
34
34
  buyer_key?: string; // XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX Buyer key for future token payments. This key is returned only if capture_buyer attribute was set in the request (Using Tokens)
35
- installments?: string; // 1 Amount of installments for the sale
35
+ installments?: number; // 1 Amount of installments for the sale
36
36
  sale_paid_date?: Date; // 2016-01-01 15:16:15
37
37
  sale_release_date?: Date; // 2016-01-08 15:15:15
38
- is_token_sale?: number; // 0 (0 - false, 1 - true)
38
+ is_token_sale?: string; // 0 (0 - false, 1 - true)
39
39
  // payme_signature: string; // 75e99dbcb25cdfbe1c62f0b9376f4144
40
40
  sale_invoice_url?: string; // https://www.example.com/XXXXXX.pdf Sale invoice URL, if the seller has enabled the invoices
41
41
  event: string;
@@ -49,5 +49,5 @@ export interface IChargeModel {
49
49
  external_transaction_card_brand?: string;
50
50
  external_transaction_auth_number?: string;
51
51
  external_signature?: string;
52
- status: StatusPaymentEnum;
52
+ status: string;
53
53
  }
@@ -0,0 +1 @@
1
+ export * from "./sqs";
@@ -0,0 +1,9 @@
1
+ export enum IPostSQSType {
2
+ FORGOT_PASSWORD_EMAIL = "forgotPasswordEmail",
3
+ FORGOT_PASSWORD_SMS = "forgotPasswordSMS",
4
+ FORGOT_PASSWORD_WHATSAPP = "forgotPasswordWhatsApp",
5
+ WELCOME_MAIL = "autoPostSchedule",
6
+ EMAIL_VERIFICATION = "emailVerification",
7
+ WEBHOOK_RECEIVED = "WEBHOOK_RECEIVED",
8
+ GENERATE_SALE = "GENERATE_SALE",
9
+ }
@@ -1,8 +1,14 @@
1
- export interface EventOrderModel {
1
+ import { IStatusPaymentEnum } from "../payment";
2
+ import { IUserEventModel } from "./userEvent";
3
+ export interface IEventOrderModel {
2
4
  event: string;
3
5
  account: string;
4
- userEvents: string[];
5
6
  isApproved: boolean;
6
- purchaseToken: string;
7
+ charge?: string;
7
8
  _id: string;
9
+ token: string;
10
+ purchaseToken: string;
11
+ userEvents: Array<IUserEventModel>;
12
+ status: IStatusPaymentEnum;
13
+ orderNumber: string;
8
14
  }
@@ -1,4 +1,4 @@
1
- export interface UserEventModel {
1
+ export interface IUserEventModel {
2
2
  event: string;
3
3
  account: string;
4
4
  user: string;
@@ -15,4 +15,8 @@ export interface UserEventModel {
15
15
  _id: string;
16
16
  token: string;
17
17
  purchaseToken: string;
18
+ birth_date: string;
19
+ gender: string;
20
+ image_url: string;
21
+ identificationNumber: string;
18
22
  }