@nimee/shared-types 1.0.218 → 1.0.219

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,6 +1,14 @@
1
+ /// <reference types="mongoose/types/pipelinestage" />
2
+ /// <reference types="mongoose/types/connection" />
3
+ /// <reference types="mongoose/types/cursor" />
4
+ /// <reference types="mongoose/types/document" />
5
+ /// <reference types="mongoose/types/error" />
6
+ /// <reference types="mongoose/types/mongooseoptions" />
7
+ /// <reference types="mongoose/types/schemaoptions" />
1
8
  import { IAccountModel, IRoleTypeEnum } from "../account";
2
9
  import { IFeeCollectionType } from "../payment";
3
10
  import { IPaymentCouponTypeEnum } from "../payment/coupon";
11
+ import mongoose from "mongoose";
4
12
  export interface IEventLinkModel {
5
13
  name: string;
6
14
  description: string;
@@ -8,6 +16,17 @@ export interface IEventLinkModel {
8
16
  is_enabled: boolean;
9
17
  utm: string;
10
18
  tickets: string[];
19
+ countTicketsAllowPerPurchase?: number;
20
+ minTicketsAllowPerPurchase?: number;
21
+ sold_count?: number;
22
+ refund_count?: number;
23
+ pending_count?: number;
24
+ cancel_count?: number;
25
+ is_sold_out?: boolean;
26
+ event: mongoose.Types.ObjectId;
27
+ account: mongoose.Types.ObjectId;
28
+ ticketsLeft?: number;
29
+ collaborator?: mongoose.Types.ObjectId;
11
30
  }
12
31
  export interface ISeasonTicketEventDiscount {
13
32
  discountType: IPaymentCouponTypeEnum;
@@ -1 +1 @@
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,iEAAmC,CAAA;AACrC,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAKD,IAAY,cAaX;AAbD,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;IACf,uCAAqB,CAAA;IACrB,iCAAe,CAAA;AACjB,CAAC,EAbW,cAAc,8BAAd,cAAc,QAazB"}
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AA+BA,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6DAA+B,CAAA;IAC/B,iEAAmC,CAAA;AACrC,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAOD,IAAY,cAaX;AAbD,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;IACf,uCAAqB,CAAA;IACrB,iCAAe,CAAA;AACjB,CAAC,EAbW,cAAc,8BAAd,cAAc,QAazB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.218",
3
+ "version": "1.0.219",
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,6 +1,8 @@
1
1
  import { IAccountModel, IRoleTypeEnum } from "../account";
2
2
  import { IFeeCollectionType } from "../payment";
3
3
  import { IPaymentCouponTypeEnum } from "../payment/coupon";
4
+ import mongoose from "mongoose";
5
+
4
6
  export interface IEventLinkModel {
5
7
  name: string;
6
8
  description: string;
@@ -8,20 +10,35 @@ export interface IEventLinkModel {
8
10
  is_enabled: boolean;
9
11
  utm: string;
10
12
  tickets: string[];
13
+ countTicketsAllowPerPurchase?: number;
14
+ minTicketsAllowPerPurchase?: number;
15
+ sold_count?: number;
16
+ refund_count?: number;
17
+ pending_count?: number;
18
+ cancel_count?: number;
19
+ is_sold_out?: boolean;
20
+ event: mongoose.Types.ObjectId;
21
+ account: mongoose.Types.ObjectId;
22
+ ticketsLeft?: number;
23
+ collaborator?: mongoose.Types.ObjectId;
11
24
  }
25
+
12
26
  export interface ISeasonTicketEventDiscount {
13
27
  discountType: IPaymentCouponTypeEnum;
14
28
  discountValue: number;
15
29
  seasonTicket: string;
16
30
  }
31
+
17
32
  export enum IEventSegmentsBehaviorType {
18
33
  AUTO_APPROVED = "auto_approved",
19
34
  MARK_WITH_COLOR = "mark_with_color",
20
35
  }
36
+
21
37
  export interface IEventSegmentsBehavior {
22
38
  segments: string[];
23
39
  behavior: IEventSegmentsBehaviorType;
24
40
  }
41
+
25
42
  export enum IEventTypeEnum {
26
43
  TRANCE_PARTY = "trance-party",
27
44
  TECHNO_PARTY = "techno-party",
@@ -36,6 +53,7 @@ export enum IEventTypeEnum {
36
53
  WELLNESS = "wellness",
37
54
  MUSIC = "music",
38
55
  }
56
+
39
57
  export interface IEventModel {
40
58
  start_hour?: Date;
41
59
  end_hour?: Date;