@nimee/shared-types 1.0.42 → 1.0.44

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.
@@ -4,6 +4,13 @@ export declare enum IEventTypeEnum {
4
4
  TECHNO_PARTY = "techno-party",
5
5
  ELECTRONIC_PARTY = "electronic-party"
6
6
  }
7
+ export declare enum RoleTypeEnum {
8
+ user = 1,
9
+ reader = 2,
10
+ editor = 3,
11
+ admin = 4,
12
+ owner = 5
13
+ }
7
14
  export interface IEventModel {
8
15
  start_time: string;
9
16
  comments: string;
@@ -1,10 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IEventTypeEnum = void 0;
3
+ exports.RoleTypeEnum = exports.IEventTypeEnum = void 0;
4
4
  var IEventTypeEnum;
5
5
  (function (IEventTypeEnum) {
6
6
  IEventTypeEnum["TRANCE_PARTY"] = "trance-party";
7
7
  IEventTypeEnum["TECHNO_PARTY"] = "techno-party";
8
8
  IEventTypeEnum["ELECTRONIC_PARTY"] = "electronic-party";
9
9
  })(IEventTypeEnum = exports.IEventTypeEnum || (exports.IEventTypeEnum = {}));
10
+ var RoleTypeEnum;
11
+ (function (RoleTypeEnum) {
12
+ RoleTypeEnum[RoleTypeEnum["user"] = 1] = "user";
13
+ RoleTypeEnum[RoleTypeEnum["reader"] = 2] = "reader";
14
+ RoleTypeEnum[RoleTypeEnum["editor"] = 3] = "editor";
15
+ RoleTypeEnum[RoleTypeEnum["admin"] = 4] = "admin";
16
+ RoleTypeEnum[RoleTypeEnum["owner"] = 5] = "owner";
17
+ })(RoleTypeEnum = exports.RoleTypeEnum || (exports.RoleTypeEnum = {}));
10
18
  //# sourceMappingURL=event.js.map
@@ -1 +1 @@
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
+ {"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;AACD,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"}
@@ -0,0 +1,4 @@
1
+ export declare enum IPaymentCouponTypeEnum {
2
+ percentage = "percentage",
3
+ fixed = "fixed"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IPaymentCouponTypeEnum = void 0;
4
+ var IPaymentCouponTypeEnum;
5
+ (function (IPaymentCouponTypeEnum) {
6
+ IPaymentCouponTypeEnum["percentage"] = "percentage";
7
+ IPaymentCouponTypeEnum["fixed"] = "fixed";
8
+ })(IPaymentCouponTypeEnum = exports.IPaymentCouponTypeEnum || (exports.IPaymentCouponTypeEnum = {}));
9
+ //# sourceMappingURL=coupon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coupon.js","sourceRoot":"","sources":["../../src/payment/coupon.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,mDAAyB,CAAA;IACzB,yCAAe,CAAA;AACjB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC"}
@@ -1 +1,2 @@
1
1
  export * from "./charge";
2
+ export * from "./coupon";
@@ -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("./charge"), exports);
18
+ __exportStar(require("./coupon"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/payment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/payment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB"}
@@ -11,4 +11,5 @@ export interface IEventOrderModel {
11
11
  userEvents: Array<IUserEventModel>;
12
12
  status: IStatusPaymentEnum;
13
13
  orderNumber: string;
14
+ coupon?: string;
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -4,6 +4,13 @@ export enum IEventTypeEnum {
4
4
  TECHNO_PARTY = "techno-party",
5
5
  ELECTRONIC_PARTY = "electronic-party",
6
6
  }
7
+ export enum RoleTypeEnum {
8
+ user = 1,
9
+ reader = 2,
10
+ editor = 3,
11
+ admin = 4,
12
+ owner = 5,
13
+ }
7
14
  export interface IEventModel {
8
15
  start_time: string;
9
16
  comments: string;
@@ -0,0 +1,4 @@
1
+ export enum IPaymentCouponTypeEnum {
2
+ percentage = "percentage",
3
+ fixed = "fixed",
4
+ }
@@ -1 +1,2 @@
1
1
  export * from "./charge";
2
+ export * from "./coupon";
@@ -11,4 +11,5 @@ export interface IEventOrderModel {
11
11
  userEvents: Array<IUserEventModel>;
12
12
  status: IStatusPaymentEnum;
13
13
  orderNumber: string;
14
+ coupon?: string;
14
15
  }