@nimee/shared-types 1.0.48 → 1.0.50

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,7 +6,7 @@ export declare enum IRoleTypeEnum {
6
6
  owner = 5
7
7
  }
8
8
  export interface ICollaboratesModel {
9
- user_id: string;
9
+ user: string;
10
10
  role: IRoleTypeEnum;
11
11
  }
12
12
  export declare enum IInviteeStateTypeEnum {
@@ -20,10 +20,7 @@ export interface IAccountModel {
20
20
  owner: string;
21
21
  email: string;
22
22
  businessGovId: string;
23
- collaborates: [{
24
- user_id: string;
25
- role: IRoleTypeEnum;
26
- }];
23
+ collaborates: [ICollaboratesModel];
27
24
  invitees: [{
28
25
  state: IInviteeStateTypeEnum;
29
26
  name: string;
@@ -0,0 +1,6 @@
1
+ export declare enum NODE_ENV_TYPES {
2
+ PROD = "PROD",
3
+ STAGING = "STAGING",
4
+ DEV = "DEV",
5
+ TEST = "TEST"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NODE_ENV_TYPES = void 0;
4
+ var NODE_ENV_TYPES;
5
+ (function (NODE_ENV_TYPES) {
6
+ NODE_ENV_TYPES["PROD"] = "PROD";
7
+ NODE_ENV_TYPES["STAGING"] = "STAGING";
8
+ NODE_ENV_TYPES["DEV"] = "DEV";
9
+ NODE_ENV_TYPES["TEST"] = "TEST";
10
+ })(NODE_ENV_TYPES = exports.NODE_ENV_TYPES || (exports.NODE_ENV_TYPES = {}));
11
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/common/common.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACf,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB"}
@@ -0,0 +1 @@
1
+ export * from "./common";
@@ -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("./common"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
@@ -26,7 +26,7 @@ export interface IEventModel {
26
26
  theme?: string;
27
27
  account: string;
28
28
  collaborates: [{
29
- user_id: string;
29
+ user: string;
30
30
  role: IRoleTypeEnum;
31
31
  }];
32
32
  password?: string;
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from "./event";
4
4
  export * from "./payment";
5
5
  export * from "./send-notification";
6
6
  export * from "./analytics";
7
+ export * from "./common";
package/dist/index.js CHANGED
@@ -21,4 +21,5 @@ __exportStar(require("./event"), exports);
21
21
  __exportStar(require("./payment"), exports);
22
22
  __exportStar(require("./send-notification"), exports);
23
23
  __exportStar(require("./analytics"), exports);
24
+ __exportStar(require("./common"), exports);
24
25
  //# 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;AAC1B,sDAAoC;AACpC,8CAA4B"}
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;AACpC,8CAA4B;AAC5B,2CAAyB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
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,7 +6,7 @@ export enum IRoleTypeEnum {
6
6
  owner = 5,
7
7
  }
8
8
  export interface ICollaboratesModel {
9
- user_id: string;
9
+ user: string;
10
10
  role: IRoleTypeEnum;
11
11
  }
12
12
  export enum IInviteeStateTypeEnum {
@@ -20,7 +20,7 @@ export interface IAccountModel {
20
20
  owner: string;
21
21
  email: string;
22
22
  businessGovId: string;
23
- collaborates: [{ user_id: string; role: IRoleTypeEnum }];
23
+ collaborates: [ICollaboratesModel];
24
24
  invitees: [{ state: IInviteeStateTypeEnum; name: string; email: string; role: IRoleTypeEnum; token: string }];
25
25
  isAccountVerified: boolean;
26
26
  isEmailVerified: boolean;
@@ -0,0 +1,6 @@
1
+ export enum NODE_ENV_TYPES {
2
+ PROD = "PROD",
3
+ STAGING = "STAGING",
4
+ DEV = "DEV",
5
+ TEST = "TEST",
6
+ }
@@ -0,0 +1 @@
1
+ export * from "./common";
@@ -25,7 +25,7 @@ export interface IEventModel {
25
25
  is_enabled: boolean;
26
26
  theme?: string;
27
27
  account: string;
28
- collaborates: [{ user_id: string; role: IRoleTypeEnum }];
28
+ collaborates: [{ user: string; role: IRoleTypeEnum }];
29
29
  password?: string;
30
30
  design?: { image: string; color: string; video: string; font: string; imageBGMobile: string; imageForEmail: string };
31
31
  handler: string;
package/src/index.ts CHANGED
@@ -5,3 +5,4 @@ export * from "./event";
5
5
  export * from "./payment";
6
6
  export * from "./send-notification";
7
7
  export * from "./analytics";
8
+ export * from "./common";