@nimee/shared-types 1.0.137 → 1.0.139

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.
@@ -14,6 +14,14 @@ export interface ISeasonTicketEventDiscount {
14
14
  discountValue: number;
15
15
  seasonTicket: string;
16
16
  }
17
+ export declare enum IEventSegmentsBehaviorType {
18
+ AUTO_APPROVED = "auto_approved",
19
+ MARK_WITH_COLORED_V = "mark_with_colored_c"
20
+ }
21
+ export interface IEventSegmentsBehavior {
22
+ segments: string[];
23
+ behavior: IEventSegmentsBehaviorType;
24
+ }
17
25
  export declare enum IEventTypeEnum {
18
26
  TRANCE_PARTY = "trance-party",
19
27
  TECHNO_PARTY = "techno-party",
@@ -41,6 +49,7 @@ export interface IEventModel {
41
49
  is_enabled: boolean;
42
50
  theme?: string;
43
51
  account: string | IAccountModel;
52
+ seller: string;
44
53
  collaborates: [{
45
54
  user: string;
46
55
  role: IRoleTypeEnum;
@@ -68,4 +77,5 @@ export interface IEventModel {
68
77
  isPublic: boolean;
69
78
  chartName?: string;
70
79
  seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
80
+ segmentsBehavior?: IEventSegmentsBehavior;
71
81
  }
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IEventTypeEnum = void 0;
3
+ exports.IEventTypeEnum = exports.IEventSegmentsBehaviorType = void 0;
4
+ var IEventSegmentsBehaviorType;
5
+ (function (IEventSegmentsBehaviorType) {
6
+ IEventSegmentsBehaviorType["AUTO_APPROVED"] = "auto_approved";
7
+ IEventSegmentsBehaviorType["MARK_WITH_COLORED_V"] = "mark_with_colored_c";
8
+ })(IEventSegmentsBehaviorType || (exports.IEventSegmentsBehaviorType = IEventSegmentsBehaviorType = {}));
4
9
  var IEventTypeEnum;
5
10
  (function (IEventTypeEnum) {
6
11
  IEventTypeEnum["TRANCE_PARTY"] = "trance-party";
@@ -1 +1 @@
1
- {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AAgBA,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACjB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB"}
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AAgBA,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6DAA+B,CAAA;IAC/B,yEAA2C,CAAA;AAC7C,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAKD,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACjB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB"}
@@ -10,7 +10,8 @@ export declare enum IStatusPaymentEnum {
10
10
  expired = "expired",
11
11
  pending_refund = "pending_refund",
12
12
  partial_refund = "partial-refund",
13
- unknown = "unknown"
13
+ unknown = "unknown",
14
+ cancellation_without_refund = "cancellation_without_refund"
14
15
  }
15
16
  export interface IChargeModel {
16
17
  error: object;
@@ -14,5 +14,6 @@ var IStatusPaymentEnum;
14
14
  IStatusPaymentEnum["pending_refund"] = "pending_refund";
15
15
  IStatusPaymentEnum["partial_refund"] = "partial-refund";
16
16
  IStatusPaymentEnum["unknown"] = "unknown";
17
+ IStatusPaymentEnum["cancellation_without_refund"] = "cancellation_without_refund";
17
18
  })(IStatusPaymentEnum || (exports.IStatusPaymentEnum = IStatusPaymentEnum = {}));
18
19
  //# sourceMappingURL=charge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAYX;AAZD,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;IACjC,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;AACrB,CAAC,EAZW,kBAAkB,kCAAlB,kBAAkB,QAY7B"}
1
+ {"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAaX;AAbD,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;IACjC,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iFAA2D,CAAA;AAC7D,CAAC,EAbW,kBAAkB,kCAAlB,kBAAkB,QAa7B"}
@@ -6,6 +6,7 @@ export interface ITicketInfoModel {
6
6
  isCheckedIn: boolean;
7
7
  isApproved: boolean;
8
8
  isRefunded: boolean;
9
+ cancellationWithoutRefund: boolean;
9
10
  originalPrice: number;
10
11
  checkedInAt: Date;
11
12
  seatLabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.137",
3
+ "version": "1.0.139",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -14,6 +14,14 @@ export interface ISeasonTicketEventDiscount {
14
14
  discountValue: number;
15
15
  seasonTicket: string;
16
16
  }
17
+ export enum IEventSegmentsBehaviorType {
18
+ AUTO_APPROVED = "auto_approved",
19
+ MARK_WITH_COLORED_V = "mark_with_colored_c",
20
+ }
21
+ export interface IEventSegmentsBehavior {
22
+ segments: string[];
23
+ behavior: IEventSegmentsBehaviorType;
24
+ }
17
25
  export enum IEventTypeEnum {
18
26
  TRANCE_PARTY = "trance-party",
19
27
  TECHNO_PARTY = "techno-party",
@@ -41,6 +49,7 @@ export interface IEventModel {
41
49
  is_enabled: boolean;
42
50
  theme?: string;
43
51
  account: string | IAccountModel;
52
+ seller: string;
44
53
  collaborates: [{ user: string; role: IRoleTypeEnum }];
45
54
  password?: string;
46
55
  design?: {
@@ -65,4 +74,5 @@ export interface IEventModel {
65
74
  isPublic: boolean;
66
75
  chartName?: string;
67
76
  seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
77
+ segmentsBehavior?: IEventSegmentsBehavior;
68
78
  }
@@ -12,6 +12,7 @@ export enum IStatusPaymentEnum {
12
12
  pending_refund = "pending_refund",
13
13
  partial_refund = "partial-refund",
14
14
  unknown = "unknown",
15
+ cancellation_without_refund = "cancellation_without_refund",
15
16
  }
16
17
  export interface IChargeModel {
17
18
  error: object;
@@ -6,6 +6,7 @@ export interface ITicketInfoModel {
6
6
  isCheckedIn: boolean;
7
7
  isApproved: boolean;
8
8
  isRefunded: boolean;
9
+ cancellationWithoutRefund: boolean;
9
10
  originalPrice: number;
10
11
  checkedInAt: Date;
11
12
  seatLabel: string;