@nimee/shared-types 1.0.30 → 1.0.31

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.
@@ -6,6 +6,37 @@ export declare enum RoleTypeEnum {
6
6
  owner = 5
7
7
  }
8
8
  export interface CollaboratesModel {
9
- user_id: String;
9
+ user_id: string;
10
10
  role: RoleTypeEnum;
11
11
  }
12
+ export declare enum InviteeStateTypeEnum {
13
+ SENT = "sent",
14
+ EXPIRED = "expired",
15
+ ACCEPTED = "accepted"
16
+ }
17
+ export interface AccountModel {
18
+ idInsidePaymentProvider: string;
19
+ name: string;
20
+ owner: string;
21
+ email: string;
22
+ businessGovId: string;
23
+ collaborates: [{
24
+ user_id: string;
25
+ role: RoleTypeEnum;
26
+ }];
27
+ invitees: [{
28
+ state: InviteeStateTypeEnum;
29
+ name: string;
30
+ email: string;
31
+ role: RoleTypeEnum;
32
+ token: string;
33
+ }];
34
+ isAccountVerified: boolean;
35
+ isEmailVerified: boolean;
36
+ transactionPercentage: number;
37
+ paymentProvider: string;
38
+ marketFee: number;
39
+ sellerPaymeId: string;
40
+ currency: string;
41
+ _id: string;
42
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RoleTypeEnum = void 0;
3
+ exports.InviteeStateTypeEnum = exports.RoleTypeEnum = void 0;
4
4
  var RoleTypeEnum;
5
5
  (function (RoleTypeEnum) {
6
6
  RoleTypeEnum[RoleTypeEnum["user"] = 1] = "user";
@@ -9,4 +9,10 @@ var RoleTypeEnum;
9
9
  RoleTypeEnum[RoleTypeEnum["admin"] = 4] = "admin";
10
10
  RoleTypeEnum[RoleTypeEnum["owner"] = 5] = "owner";
11
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 = {}));
12
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"}
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"}
@@ -0,0 +1 @@
1
+ export * from "./ticket";
@@ -1,2 +1,19 @@
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 });
1
17
  // export * from "./event";
18
+ __exportStar(require("./ticket"), exports);
2
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":"AAAA,2BAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,2CAAyB"}
@@ -0,0 +1,18 @@
1
+ export interface TicketModel {
2
+ name: string;
3
+ description: string;
4
+ type: string;
5
+ _id: string;
6
+ start_date?: Date;
7
+ end_date?: Date;
8
+ is_password_enabled: boolean;
9
+ is_enabled: boolean;
10
+ account: string;
11
+ password?: string;
12
+ event: string;
13
+ price: number;
14
+ currency: string;
15
+ quantity: number;
16
+ category: string;
17
+ countTicketsAllowPerPurchase: number;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ticket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ticket.js","sourceRoot":"","sources":["../../src/event/ticket.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -1 +1,3 @@
1
1
  export * from "./account";
2
+ export * from "./userEvent";
3
+ export * from "./event";
package/dist/index.js CHANGED
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // export * from "./event";
18
18
  __exportStar(require("./account"), exports);
19
- // export * from "./user";
19
+ __exportStar(require("./userEvent"), exports);
20
+ __exportStar(require("./event"), exports);
20
21
  //# 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,0BAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from "./userEvent";
@@ -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("./userEvent"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/userEvent/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
@@ -0,0 +1,18 @@
1
+ export interface UserEventModel {
2
+ event: string;
3
+ account: string;
4
+ user: string;
5
+ ticket: string;
6
+ isApproved: boolean;
7
+ isCheckedIn: boolean;
8
+ charge: string;
9
+ fbProfile: string;
10
+ instagramProfile: string;
11
+ email: string;
12
+ phone: string;
13
+ fname: string;
14
+ lname: string;
15
+ _id: string;
16
+ token: string;
17
+ purchaseToken: string;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=userEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userEvent.js","sourceRoot":"","sources":["../../src/userEvent/userEvent.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -6,6 +6,28 @@ export enum RoleTypeEnum {
6
6
  owner = 5,
7
7
  }
8
8
  export interface CollaboratesModel {
9
- user_id: String;
9
+ user_id: string;
10
10
  role: RoleTypeEnum;
11
11
  }
12
+ export enum InviteeStateTypeEnum {
13
+ SENT = "sent",
14
+ EXPIRED = "expired",
15
+ ACCEPTED = "accepted",
16
+ }
17
+ export interface AccountModel {
18
+ idInsidePaymentProvider: string;
19
+ name: string;
20
+ owner: string;
21
+ email: string;
22
+ businessGovId: string;
23
+ collaborates: [{ user_id: string; role: RoleTypeEnum }];
24
+ invitees: [{ state: InviteeStateTypeEnum; name: string; email: string; role: RoleTypeEnum; token: string }];
25
+ isAccountVerified: boolean;
26
+ isEmailVerified: boolean;
27
+ transactionPercentage: number;
28
+ paymentProvider: string;
29
+ marketFee: number;
30
+ sellerPaymeId: string;
31
+ currency: string;
32
+ _id: string;
33
+ }
@@ -1 +1,2 @@
1
1
  // export * from "./event";
2
+ export * from "./ticket";
@@ -0,0 +1,18 @@
1
+ export interface TicketModel {
2
+ name: string;
3
+ description: string;
4
+ type: string;
5
+ _id: string;
6
+ start_date?: Date;
7
+ end_date?: Date;
8
+ is_password_enabled: boolean;
9
+ is_enabled: boolean;
10
+ account: string;
11
+ password?: string;
12
+ event: string;
13
+ price: number;
14
+ currency: string;
15
+ quantity: number;
16
+ category: string;
17
+ countTicketsAllowPerPurchase: number;
18
+ }
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  // export * from "./event";
2
2
  export * from "./account";
3
- // export * from "./user";
3
+ export * from "./userEvent";
4
+ export * from "./event";
@@ -0,0 +1 @@
1
+ export * from "./userEvent";
@@ -0,0 +1,18 @@
1
+ export interface UserEventModel {
2
+ event: string;
3
+ account: string;
4
+ user: string;
5
+ ticket: string;
6
+ isApproved: boolean;
7
+ isCheckedIn: boolean;
8
+ charge: string;
9
+ fbProfile: string;
10
+ instagramProfile: string;
11
+ email: string;
12
+ phone: string;
13
+ fname: string;
14
+ lname: string;
15
+ _id: string;
16
+ token: string;
17
+ purchaseToken: string;
18
+ }