@eventista/ticketing-common 1.3.35 → 1.3.36-dev.1
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.
- package/dist/schemas/event/event.interfaces.d.ts +67 -4
- package/dist/schemas/event/event.interfaces.js +28 -1
- package/dist/schemas/event/event.interfaces.js.map +1 -1
- package/dist/schemas/event/event.schema.d.ts +40 -5
- package/dist/schemas/event/event.schema.js +152 -1
- package/dist/schemas/event/event.schema.js.map +1 -1
- package/dist/schemas/order/order.interfaces.d.ts +15 -0
- package/dist/schemas/promotions/promotions.interfaces.d.ts +17 -0
- package/dist/schemas/promotions/promotions.interfaces.js +6 -1
- package/dist/schemas/promotions/promotions.interfaces.js.map +1 -1
- package/dist/schemas/promotions/promotions.schema.d.ts +12 -1
- package/dist/schemas/promotions/promotions.schema.js +49 -0
- package/dist/schemas/promotions/promotions.schema.js.map +1 -1
- package/dist/schemas/ticket-classes/ticket-classes.interfaces.d.ts +15 -0
- package/dist/schemas/ticket-classes/ticket-classes.interfaces.js +13 -1
- package/dist/schemas/ticket-classes/ticket-classes.interfaces.js.map +1 -1
- package/dist/schemas/ticket-classes/ticket-classes.schemas.d.ts +6 -1
- package/dist/schemas/ticket-classes/ticket-classes.schemas.js +27 -0
- package/dist/schemas/ticket-classes/ticket-classes.schemas.js.map +1 -1
- package/dist/schemas/zones/zone.interfaces.d.ts +19 -0
- package/dist/schemas/zones/zone.interfaces.js +11 -0
- package/dist/schemas/zones/zone.interfaces.js.map +1 -1
- package/dist/schemas/zones/zone.schema.d.ts +4 -0
- package/dist/schemas/zones/zone.schema.js +23 -0
- package/dist/schemas/zones/zone.schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,60 @@
|
|
|
1
1
|
import { ICurrencyCode } from '../order/order.interfaces';
|
|
2
2
|
export declare enum IStatusEvent {
|
|
3
|
+
DRAFT = "DRAFT",
|
|
3
4
|
OPEN = "OPEN",
|
|
4
5
|
CLOSE = "CLOSE"
|
|
5
6
|
}
|
|
7
|
+
export declare enum IEventSaleOpenMode {
|
|
8
|
+
IMMEDIATELY_ON_PUBLISH = "immediately_on_publish",
|
|
9
|
+
SCHEDULED = "scheduled"
|
|
10
|
+
}
|
|
11
|
+
export declare enum IEventSaleCloseMode {
|
|
12
|
+
AT_EVENT_START = "at_event_start",
|
|
13
|
+
SCHEDULED = "scheduled",
|
|
14
|
+
WHEN_SOLD_OUT = "when_sold_out"
|
|
15
|
+
}
|
|
16
|
+
export declare enum ICollectInfoMode {
|
|
17
|
+
PER_ORDER = "per_order",
|
|
18
|
+
PER_TICKET = "per_ticket"
|
|
19
|
+
}
|
|
20
|
+
export declare enum IEventSalesMode {
|
|
21
|
+
BY_TICKET_CLASS = "by_ticket_class",
|
|
22
|
+
BY_SEATMAP = "by_seatmap"
|
|
23
|
+
}
|
|
24
|
+
export declare enum IDisplayMode {
|
|
25
|
+
LIGHT = "light",
|
|
26
|
+
DARK = "dark"
|
|
27
|
+
}
|
|
28
|
+
export interface IEventDescription {
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
order?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface IEventOrganizer {
|
|
34
|
+
name?: string;
|
|
35
|
+
logo?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IEventPolicy {
|
|
39
|
+
key: string;
|
|
40
|
+
title: string;
|
|
41
|
+
content: string;
|
|
42
|
+
order?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface IEventFaq {
|
|
45
|
+
question: string;
|
|
46
|
+
answer: string;
|
|
47
|
+
order?: number;
|
|
48
|
+
}
|
|
6
49
|
export interface IPaymentInfoField {
|
|
7
50
|
key: string;
|
|
8
51
|
text: string;
|
|
9
52
|
type?: string;
|
|
10
53
|
isDefault?: boolean;
|
|
11
54
|
isRequired?: boolean;
|
|
55
|
+
options?: string[];
|
|
56
|
+
order?: number;
|
|
57
|
+
isShown?: boolean;
|
|
12
58
|
}
|
|
13
59
|
export interface IGeneral {
|
|
14
60
|
collaboration?: 'eventista' | 'agency' | 'seatmap' | 'seatmap_zone' | 'mixed';
|
|
@@ -26,6 +72,7 @@ export interface IEventCalendar {
|
|
|
26
72
|
startDate: Date;
|
|
27
73
|
endDate: Date;
|
|
28
74
|
maxTicketPerUser?: number;
|
|
75
|
+
location?: string;
|
|
29
76
|
}
|
|
30
77
|
export interface ITicketCalendar {
|
|
31
78
|
thumbnail?: string;
|
|
@@ -47,10 +94,7 @@ export interface IEvent {
|
|
|
47
94
|
ticketCalendar?: ITicketCalendar;
|
|
48
95
|
hostedBy?: string;
|
|
49
96
|
tickets: Record<string, any>[];
|
|
50
|
-
eventDescriptions?:
|
|
51
|
-
title: string;
|
|
52
|
-
description: string;
|
|
53
|
-
}[];
|
|
97
|
+
eventDescriptions?: IEventDescription[];
|
|
54
98
|
maxTicketPerUser: number;
|
|
55
99
|
note: string;
|
|
56
100
|
general?: IGeneral;
|
|
@@ -78,4 +122,23 @@ export interface IEvent {
|
|
|
78
122
|
saleMode?: string;
|
|
79
123
|
resaleEnabled?: boolean;
|
|
80
124
|
sendTicketPdfEnabled?: boolean;
|
|
125
|
+
displayMode?: IDisplayMode;
|
|
126
|
+
guestCheckoutEnabled?: boolean;
|
|
127
|
+
giftEnabled?: boolean;
|
|
128
|
+
collectInfoMode?: ICollectInfoMode;
|
|
129
|
+
maxTicketPerOrder?: number;
|
|
130
|
+
organizer?: IEventOrganizer;
|
|
131
|
+
policies?: IEventPolicy[];
|
|
132
|
+
faqs?: IEventFaq[];
|
|
133
|
+
saleOpenMode?: IEventSaleOpenMode;
|
|
134
|
+
saleStartAt?: Date | null;
|
|
135
|
+
saleCloseMode?: IEventSaleCloseMode;
|
|
136
|
+
saleEndAt?: Date | null;
|
|
137
|
+
saleEndAtEffective?: Date | null;
|
|
138
|
+
publishedAt?: Date | null;
|
|
139
|
+
saleOpenedAt?: Date | null;
|
|
140
|
+
saleClosedAt?: Date | null;
|
|
141
|
+
saleConfig?: Record<string, any>[];
|
|
142
|
+
systemVersion?: string;
|
|
143
|
+
salesMode?: IEventSalesMode;
|
|
81
144
|
}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IStatusEvent = void 0;
|
|
3
|
+
exports.IDisplayMode = exports.IEventSalesMode = exports.ICollectInfoMode = exports.IEventSaleCloseMode = exports.IEventSaleOpenMode = exports.IStatusEvent = void 0;
|
|
4
4
|
var IStatusEvent;
|
|
5
5
|
(function (IStatusEvent) {
|
|
6
|
+
IStatusEvent["DRAFT"] = "DRAFT";
|
|
6
7
|
IStatusEvent["OPEN"] = "OPEN";
|
|
7
8
|
IStatusEvent["CLOSE"] = "CLOSE";
|
|
8
9
|
})(IStatusEvent || (exports.IStatusEvent = IStatusEvent = {}));
|
|
10
|
+
var IEventSaleOpenMode;
|
|
11
|
+
(function (IEventSaleOpenMode) {
|
|
12
|
+
IEventSaleOpenMode["IMMEDIATELY_ON_PUBLISH"] = "immediately_on_publish";
|
|
13
|
+
IEventSaleOpenMode["SCHEDULED"] = "scheduled";
|
|
14
|
+
})(IEventSaleOpenMode || (exports.IEventSaleOpenMode = IEventSaleOpenMode = {}));
|
|
15
|
+
var IEventSaleCloseMode;
|
|
16
|
+
(function (IEventSaleCloseMode) {
|
|
17
|
+
IEventSaleCloseMode["AT_EVENT_START"] = "at_event_start";
|
|
18
|
+
IEventSaleCloseMode["SCHEDULED"] = "scheduled";
|
|
19
|
+
IEventSaleCloseMode["WHEN_SOLD_OUT"] = "when_sold_out";
|
|
20
|
+
})(IEventSaleCloseMode || (exports.IEventSaleCloseMode = IEventSaleCloseMode = {}));
|
|
21
|
+
var ICollectInfoMode;
|
|
22
|
+
(function (ICollectInfoMode) {
|
|
23
|
+
ICollectInfoMode["PER_ORDER"] = "per_order";
|
|
24
|
+
ICollectInfoMode["PER_TICKET"] = "per_ticket";
|
|
25
|
+
})(ICollectInfoMode || (exports.ICollectInfoMode = ICollectInfoMode = {}));
|
|
26
|
+
var IEventSalesMode;
|
|
27
|
+
(function (IEventSalesMode) {
|
|
28
|
+
IEventSalesMode["BY_TICKET_CLASS"] = "by_ticket_class";
|
|
29
|
+
IEventSalesMode["BY_SEATMAP"] = "by_seatmap";
|
|
30
|
+
})(IEventSalesMode || (exports.IEventSalesMode = IEventSalesMode = {}));
|
|
31
|
+
var IDisplayMode;
|
|
32
|
+
(function (IDisplayMode) {
|
|
33
|
+
IDisplayMode["LIGHT"] = "light";
|
|
34
|
+
IDisplayMode["DARK"] = "dark";
|
|
35
|
+
})(IDisplayMode || (exports.IDisplayMode = IDisplayMode = {}));
|
|
9
36
|
//# sourceMappingURL=event.interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.interfaces.js","sourceRoot":"","sources":["../../../src/schemas/event/event.interfaces.ts"],"names":[],"mappings":";;;AACA,IAAY,
|
|
1
|
+
{"version":3,"file":"event.interfaces.js","sourceRoot":"","sources":["../../../src/schemas/event/event.interfaces.ts"],"names":[],"mappings":";;;AACA,IAAY,YAKX;AALD,WAAY,YAAY;IAEtB,+BAAe,CAAA;IACf,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAGD,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uEAAiD,CAAA;IACjD,6CAAuB,CAAA;AACzB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAGD,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,wDAAiC,CAAA;IACjC,8CAAuB,CAAA;IACvB,sDAA+B,CAAA;AACjC,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAGD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,6CAAyB,CAAA;AAC3B,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAID,IAAY,eAKX;AALD,WAAY,eAAe;IAEvB,sDAAmC,CAAA;IAEnC,4CAAyB,CAAA;AAC7B,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HydratedDocument } from 'mongoose';
|
|
2
2
|
import { BaseDocument, BaseSchema } from '../index';
|
|
3
3
|
import { ICurrencyCode } from '../order/order.interfaces';
|
|
4
|
-
import { IEventCalendar } from './event.interfaces';
|
|
4
|
+
import { ICollectInfoMode, IDisplayMode, IEventCalendar, IEventSalesMode, IEventDescription, IEventFaq, IEventOrganizer, IEventPolicy, IEventSaleCloseMode, IEventSaleOpenMode } from './event.interfaces';
|
|
5
5
|
export type EventDocument = HydratedDocument<Event> & BaseDocument;
|
|
6
6
|
export declare class SchemaPaymentInfoField {
|
|
7
7
|
key: string;
|
|
@@ -9,6 +9,25 @@ export declare class SchemaPaymentInfoField {
|
|
|
9
9
|
type: string;
|
|
10
10
|
isDefault: boolean;
|
|
11
11
|
isRequired: boolean;
|
|
12
|
+
options: string[];
|
|
13
|
+
order: number;
|
|
14
|
+
isShown: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class SchemaEventOrganizer {
|
|
17
|
+
name: string;
|
|
18
|
+
logo: string;
|
|
19
|
+
description: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class SchemaEventPolicy {
|
|
22
|
+
key: string;
|
|
23
|
+
title: string;
|
|
24
|
+
content: string;
|
|
25
|
+
order: number;
|
|
26
|
+
}
|
|
27
|
+
export declare class SchemaEventFaq {
|
|
28
|
+
question: string;
|
|
29
|
+
answer: string;
|
|
30
|
+
order: number;
|
|
12
31
|
}
|
|
13
32
|
export declare class SchemaGeneral {
|
|
14
33
|
collaboration: string;
|
|
@@ -37,10 +56,7 @@ export declare class Event extends BaseSchema {
|
|
|
37
56
|
};
|
|
38
57
|
hostedBy: String;
|
|
39
58
|
tickets: Record<string, any>[];
|
|
40
|
-
eventDescriptions:
|
|
41
|
-
title: string;
|
|
42
|
-
description: string;
|
|
43
|
-
}[];
|
|
59
|
+
eventDescriptions: IEventDescription[];
|
|
44
60
|
maxTicketPerUser: number;
|
|
45
61
|
note: string;
|
|
46
62
|
general: SchemaGeneral;
|
|
@@ -66,6 +82,25 @@ export declare class Event extends BaseSchema {
|
|
|
66
82
|
enableMultiStepCheckin: boolean;
|
|
67
83
|
resaleEnabled: boolean;
|
|
68
84
|
sendTicketPdfEnabled: boolean;
|
|
85
|
+
displayMode: IDisplayMode;
|
|
86
|
+
guestCheckoutEnabled: boolean;
|
|
87
|
+
giftEnabled: boolean;
|
|
88
|
+
collectInfoMode: ICollectInfoMode;
|
|
89
|
+
maxTicketPerOrder: number;
|
|
90
|
+
organizer: IEventOrganizer;
|
|
91
|
+
policies: IEventPolicy[];
|
|
92
|
+
faqs: IEventFaq[];
|
|
93
|
+
saleOpenMode: IEventSaleOpenMode;
|
|
94
|
+
saleStartAt: Date | null;
|
|
95
|
+
saleCloseMode: IEventSaleCloseMode;
|
|
96
|
+
saleEndAt: Date | null;
|
|
97
|
+
saleEndAtEffective: Date | null;
|
|
98
|
+
publishedAt: Date | null;
|
|
99
|
+
saleOpenedAt: Date | null;
|
|
100
|
+
saleClosedAt: Date | null;
|
|
101
|
+
saleConfig: Record<string, any>[];
|
|
102
|
+
systemVersion: string;
|
|
103
|
+
salesMode: IEventSalesMode;
|
|
69
104
|
}
|
|
70
105
|
export declare const EventSchema: import("mongoose").Schema<Event, import("mongoose").Model<Event, any, any, any, import("mongoose").Document<unknown, any, Event, any> & Event & {
|
|
71
106
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EventSchema = exports.Event = exports.SchemaVisitor = exports.SchemaGeneral = exports.SchemaPaymentInfoField = void 0;
|
|
12
|
+
exports.EventSchema = exports.Event = exports.SchemaVisitor = exports.SchemaGeneral = exports.SchemaEventFaq = exports.SchemaEventPolicy = exports.SchemaEventOrganizer = exports.SchemaPaymentInfoField = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const index_1 = require("../index");
|
|
15
15
|
const order_interfaces_1 = require("../order/order.interfaces");
|
|
@@ -37,9 +37,79 @@ __decorate([
|
|
|
37
37
|
(0, mongoose_1.Prop)({ default: false }),
|
|
38
38
|
__metadata("design:type", Boolean)
|
|
39
39
|
], SchemaPaymentInfoField.prototype, "isRequired", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, mongoose_1.Prop)({ type: [String], default: [] }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], SchemaPaymentInfoField.prototype, "options", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], SchemaPaymentInfoField.prototype, "order", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: true }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], SchemaPaymentInfoField.prototype, "isShown", void 0);
|
|
40
52
|
exports.SchemaPaymentInfoField = SchemaPaymentInfoField = __decorate([
|
|
41
53
|
(0, mongoose_1.Schema)({ _id: false })
|
|
42
54
|
], SchemaPaymentInfoField);
|
|
55
|
+
let SchemaEventOrganizer = class SchemaEventOrganizer {
|
|
56
|
+
};
|
|
57
|
+
exports.SchemaEventOrganizer = SchemaEventOrganizer;
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], SchemaEventOrganizer.prototype, "name", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], SchemaEventOrganizer.prototype, "logo", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], SchemaEventOrganizer.prototype, "description", void 0);
|
|
70
|
+
exports.SchemaEventOrganizer = SchemaEventOrganizer = __decorate([
|
|
71
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
72
|
+
], SchemaEventOrganizer);
|
|
73
|
+
let SchemaEventPolicy = class SchemaEventPolicy {
|
|
74
|
+
};
|
|
75
|
+
exports.SchemaEventPolicy = SchemaEventPolicy;
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], SchemaEventPolicy.prototype, "key", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], SchemaEventPolicy.prototype, "title", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, mongoose_1.Prop)({ type: String, default: '' }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], SchemaEventPolicy.prototype, "content", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], SchemaEventPolicy.prototype, "order", void 0);
|
|
92
|
+
exports.SchemaEventPolicy = SchemaEventPolicy = __decorate([
|
|
93
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
94
|
+
], SchemaEventPolicy);
|
|
95
|
+
let SchemaEventFaq = class SchemaEventFaq {
|
|
96
|
+
};
|
|
97
|
+
exports.SchemaEventFaq = SchemaEventFaq;
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], SchemaEventFaq.prototype, "question", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, mongoose_1.Prop)({ type: String, default: '' }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], SchemaEventFaq.prototype, "answer", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], SchemaEventFaq.prototype, "order", void 0);
|
|
110
|
+
exports.SchemaEventFaq = SchemaEventFaq = __decorate([
|
|
111
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
112
|
+
], SchemaEventFaq);
|
|
43
113
|
let SchemaGeneral = class SchemaGeneral {
|
|
44
114
|
};
|
|
45
115
|
exports.SchemaGeneral = SchemaGeneral;
|
|
@@ -127,6 +197,7 @@ __decorate([
|
|
|
127
197
|
startDate: { type: Date, required: true },
|
|
128
198
|
endDate: { type: Date, required: true },
|
|
129
199
|
maxTicketPerUser: { type: Number, default: -1 },
|
|
200
|
+
location: { type: String, required: false },
|
|
130
201
|
},
|
|
131
202
|
],
|
|
132
203
|
required: true,
|
|
@@ -161,6 +232,7 @@ __decorate([
|
|
|
161
232
|
{
|
|
162
233
|
title: { type: String },
|
|
163
234
|
description: { type: String },
|
|
235
|
+
order: { type: Number, default: 0 },
|
|
164
236
|
},
|
|
165
237
|
],
|
|
166
238
|
required: false,
|
|
@@ -281,6 +353,82 @@ __decorate([
|
|
|
281
353
|
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
282
354
|
__metadata("design:type", Boolean)
|
|
283
355
|
], Event.prototype, "sendTicketPdfEnabled", void 0);
|
|
356
|
+
__decorate([
|
|
357
|
+
(0, mongoose_1.Prop)({ type: String, enum: Object.values(event_interfaces_1.IDisplayMode), default: event_interfaces_1.IDisplayMode.LIGHT }),
|
|
358
|
+
__metadata("design:type", String)
|
|
359
|
+
], Event.prototype, "displayMode", void 0);
|
|
360
|
+
__decorate([
|
|
361
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
362
|
+
__metadata("design:type", Boolean)
|
|
363
|
+
], Event.prototype, "guestCheckoutEnabled", void 0);
|
|
364
|
+
__decorate([
|
|
365
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: true }),
|
|
366
|
+
__metadata("design:type", Boolean)
|
|
367
|
+
], Event.prototype, "giftEnabled", void 0);
|
|
368
|
+
__decorate([
|
|
369
|
+
(0, mongoose_1.Prop)({ type: String, enum: Object.values(event_interfaces_1.ICollectInfoMode), default: event_interfaces_1.ICollectInfoMode.PER_ORDER }),
|
|
370
|
+
__metadata("design:type", String)
|
|
371
|
+
], Event.prototype, "collectInfoMode", void 0);
|
|
372
|
+
__decorate([
|
|
373
|
+
(0, mongoose_1.Prop)({ type: Number, default: -1 }),
|
|
374
|
+
__metadata("design:type", Number)
|
|
375
|
+
], Event.prototype, "maxTicketPerOrder", void 0);
|
|
376
|
+
__decorate([
|
|
377
|
+
(0, mongoose_1.Prop)({ type: SchemaEventOrganizer, default: {} }),
|
|
378
|
+
__metadata("design:type", Object)
|
|
379
|
+
], Event.prototype, "organizer", void 0);
|
|
380
|
+
__decorate([
|
|
381
|
+
(0, mongoose_1.Prop)({ type: [SchemaEventPolicy], default: [] }),
|
|
382
|
+
__metadata("design:type", Array)
|
|
383
|
+
], Event.prototype, "policies", void 0);
|
|
384
|
+
__decorate([
|
|
385
|
+
(0, mongoose_1.Prop)({ type: [SchemaEventFaq], default: [] }),
|
|
386
|
+
__metadata("design:type", Array)
|
|
387
|
+
], Event.prototype, "faqs", void 0);
|
|
388
|
+
__decorate([
|
|
389
|
+
(0, mongoose_1.Prop)({ type: String, enum: Object.values(event_interfaces_1.IEventSaleOpenMode), default: event_interfaces_1.IEventSaleOpenMode.IMMEDIATELY_ON_PUBLISH }),
|
|
390
|
+
__metadata("design:type", String)
|
|
391
|
+
], Event.prototype, "saleOpenMode", void 0);
|
|
392
|
+
__decorate([
|
|
393
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
394
|
+
__metadata("design:type", Date)
|
|
395
|
+
], Event.prototype, "saleStartAt", void 0);
|
|
396
|
+
__decorate([
|
|
397
|
+
(0, mongoose_1.Prop)({ type: String, enum: Object.values(event_interfaces_1.IEventSaleCloseMode), default: event_interfaces_1.IEventSaleCloseMode.AT_EVENT_START }),
|
|
398
|
+
__metadata("design:type", String)
|
|
399
|
+
], Event.prototype, "saleCloseMode", void 0);
|
|
400
|
+
__decorate([
|
|
401
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
402
|
+
__metadata("design:type", Date)
|
|
403
|
+
], Event.prototype, "saleEndAt", void 0);
|
|
404
|
+
__decorate([
|
|
405
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
406
|
+
__metadata("design:type", Date)
|
|
407
|
+
], Event.prototype, "saleEndAtEffective", void 0);
|
|
408
|
+
__decorate([
|
|
409
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
410
|
+
__metadata("design:type", Date)
|
|
411
|
+
], Event.prototype, "publishedAt", void 0);
|
|
412
|
+
__decorate([
|
|
413
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
414
|
+
__metadata("design:type", Date)
|
|
415
|
+
], Event.prototype, "saleOpenedAt", void 0);
|
|
416
|
+
__decorate([
|
|
417
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
418
|
+
__metadata("design:type", Date)
|
|
419
|
+
], Event.prototype, "saleClosedAt", void 0);
|
|
420
|
+
__decorate([
|
|
421
|
+
(0, mongoose_1.Prop)({ type: [Object], default: [], _id: false }),
|
|
422
|
+
__metadata("design:type", Array)
|
|
423
|
+
], Event.prototype, "saleConfig", void 0);
|
|
424
|
+
__decorate([
|
|
425
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
426
|
+
__metadata("design:type", String)
|
|
427
|
+
], Event.prototype, "systemVersion", void 0);
|
|
428
|
+
__decorate([
|
|
429
|
+
(0, mongoose_1.Prop)({ enum: Object.values(event_interfaces_1.IEventSalesMode), default: event_interfaces_1.IEventSalesMode.BY_TICKET_CLASS }),
|
|
430
|
+
__metadata("design:type", String)
|
|
431
|
+
], Event.prototype, "salesMode", void 0);
|
|
284
432
|
exports.Event = Event = __decorate([
|
|
285
433
|
(0, mongoose_1.Schema)({
|
|
286
434
|
collection: 'events',
|
|
@@ -295,4 +443,7 @@ exports.EventSchema.index({ eventName: 1 });
|
|
|
295
443
|
exports.EventSchema.index({ pathName: 1 });
|
|
296
444
|
exports.EventSchema.index({ status: 1 });
|
|
297
445
|
exports.EventSchema.index({ tenantId: 1 });
|
|
446
|
+
exports.EventSchema.index({ tenantId: 1, status: 1, createdAt: -1 });
|
|
447
|
+
exports.EventSchema.index({ status: 1, saleStartAt: 1 });
|
|
448
|
+
exports.EventSchema.index({ status: 1, saleEndAtEffective: 1 });
|
|
298
449
|
//# sourceMappingURL=event.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.schema.js","sourceRoot":"","sources":["../../../src/schemas/event/event.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;AAC9G,gEAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"event.schema.js","sourceRoot":"","sources":["../../../src/schemas/event/event.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;AAC9G,gEAA0D;AAC1D,yDAY4B;AAKrB,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAyBlC,CAAA;AAzBY,wDAAsB;AAE/B;IADC,IAAA,eAAI,EAAC,E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,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;AACjD,mBAAW,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,kBAAkB,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -69,6 +69,21 @@ export interface IPromotionUsed {
|
|
|
69
69
|
discountPercent: number;
|
|
70
70
|
maxValue: number;
|
|
71
71
|
discountPercentInUSD: number;
|
|
72
|
+
type?: string;
|
|
73
|
+
useMaxUsage?: boolean;
|
|
74
|
+
maxValueInUSD?: number;
|
|
75
|
+
appliesTo?: string;
|
|
76
|
+
tickets?: string[];
|
|
77
|
+
minOrderAmount?: number;
|
|
78
|
+
minOrderAmountInUSD?: number;
|
|
79
|
+
maxValuePerOrder?: number;
|
|
80
|
+
maxValuePerOrderInUSD?: number;
|
|
81
|
+
discountType?: string;
|
|
82
|
+
amount?: number;
|
|
83
|
+
amountInUSD?: number;
|
|
84
|
+
discountAmount?: number;
|
|
85
|
+
discountAmountInUSD?: number;
|
|
86
|
+
committedAt?: Date | null;
|
|
72
87
|
}
|
|
73
88
|
export interface IOrder {
|
|
74
89
|
_id?: string;
|
|
@@ -7,11 +7,17 @@ export interface IPromotionDiscount {
|
|
|
7
7
|
percentInUSD: number;
|
|
8
8
|
maxValue: number;
|
|
9
9
|
maxValueInUSD: number;
|
|
10
|
+
amount?: number;
|
|
11
|
+
amountInUSD?: number;
|
|
10
12
|
}
|
|
11
13
|
export declare enum IPromotionType {
|
|
12
14
|
AUTO = "auto",
|
|
13
15
|
MANUALLY = "manually"
|
|
14
16
|
}
|
|
17
|
+
export declare enum IPromotionDiscountType {
|
|
18
|
+
PERCENT = "percent",
|
|
19
|
+
FIXED = "fixed"
|
|
20
|
+
}
|
|
15
21
|
export interface IPromotion {
|
|
16
22
|
_id?: string;
|
|
17
23
|
id?: string;
|
|
@@ -33,4 +39,15 @@ export interface IPromotion {
|
|
|
33
39
|
maxValuePerOrder: number;
|
|
34
40
|
maxValuePerOrderInUSD: number;
|
|
35
41
|
isPublic?: boolean;
|
|
42
|
+
name?: string;
|
|
43
|
+
discountType?: IPromotionDiscountType;
|
|
44
|
+
enabled?: boolean;
|
|
45
|
+
startAt?: Date | null;
|
|
46
|
+
endAt?: Date | null;
|
|
47
|
+
perUserLimit?: number;
|
|
48
|
+
usedCount?: number;
|
|
49
|
+
archivedAt?: Date | null;
|
|
50
|
+
tenantId?: string;
|
|
51
|
+
createdBy?: string;
|
|
52
|
+
updatedBy?: string;
|
|
36
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IPromotionType = exports.IPromotionAppliesTo = void 0;
|
|
3
|
+
exports.IPromotionDiscountType = exports.IPromotionType = exports.IPromotionAppliesTo = void 0;
|
|
4
4
|
var IPromotionAppliesTo;
|
|
5
5
|
(function (IPromotionAppliesTo) {
|
|
6
6
|
IPromotionAppliesTo["EVENT"] = "event";
|
|
@@ -11,4 +11,9 @@ var IPromotionType;
|
|
|
11
11
|
IPromotionType["AUTO"] = "auto";
|
|
12
12
|
IPromotionType["MANUALLY"] = "manually";
|
|
13
13
|
})(IPromotionType || (exports.IPromotionType = IPromotionType = {}));
|
|
14
|
+
var IPromotionDiscountType;
|
|
15
|
+
(function (IPromotionDiscountType) {
|
|
16
|
+
IPromotionDiscountType["PERCENT"] = "percent";
|
|
17
|
+
IPromotionDiscountType["FIXED"] = "fixed";
|
|
18
|
+
})(IPromotionDiscountType || (exports.IPromotionDiscountType = IPromotionDiscountType = {}));
|
|
14
19
|
//# sourceMappingURL=promotions.interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotions.interfaces.js","sourceRoot":"","sources":["../../../src/schemas/promotions/promotions.interfaces.ts"],"names":[],"mappings":";;;AACA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,wCAAiB,CAAA;AACrB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;
|
|
1
|
+
{"version":3,"file":"promotions.interfaces.js","sourceRoot":"","sources":["../../../src/schemas/promotions/promotions.interfaces.ts"],"names":[],"mappings":";;;AACA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,wCAAiB,CAAA;AACrB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAaD,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,+BAAa,CAAA;IACb,uCAAqB,CAAA;AACzB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAGD,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,yCAAe,CAAA;AACnB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HydratedDocument } from 'mongoose';
|
|
2
2
|
import { BaseDocument, BaseSchema } from '../index';
|
|
3
|
-
import { IPromotionAppliesTo, IPromotionDiscount, IPromotionType } from './promotions.interfaces';
|
|
3
|
+
import { IPromotionAppliesTo, IPromotionDiscount, IPromotionDiscountType, IPromotionType } from './promotions.interfaces';
|
|
4
4
|
export type PromotionDocument = HydratedDocument<Promotion> & BaseDocument;
|
|
5
5
|
export declare class Promotion extends BaseSchema {
|
|
6
6
|
eventId: string;
|
|
@@ -18,6 +18,17 @@ export declare class Promotion extends BaseSchema {
|
|
|
18
18
|
maxValuePerOrder: number;
|
|
19
19
|
maxValuePerOrderInUSD: number;
|
|
20
20
|
isPublic: boolean;
|
|
21
|
+
name: string;
|
|
22
|
+
discountType: IPromotionDiscountType;
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
startAt: Date | null;
|
|
25
|
+
endAt: Date | null;
|
|
26
|
+
perUserLimit: number;
|
|
27
|
+
usedCount: number;
|
|
28
|
+
archivedAt: Date | null;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
createdBy: string;
|
|
31
|
+
updatedBy: string;
|
|
21
32
|
}
|
|
22
33
|
export declare const PromotionSchema: import("mongoose").Schema<Promotion, import("mongoose").Model<Promotion, any, any, any, import("mongoose").Document<unknown, any, Promotion, any> & Promotion & {
|
|
23
34
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -73,6 +73,8 @@ __decorate([
|
|
|
73
73
|
percentInUSD: { type: Number },
|
|
74
74
|
maxValue: { type: Number },
|
|
75
75
|
maxValueInUSD: { type: Number },
|
|
76
|
+
amount: { type: Number },
|
|
77
|
+
amountInUSD: { type: Number },
|
|
76
78
|
},
|
|
77
79
|
default: {},
|
|
78
80
|
_id: false,
|
|
@@ -112,6 +114,50 @@ __decorate([
|
|
|
112
114
|
}),
|
|
113
115
|
__metadata("design:type", Boolean)
|
|
114
116
|
], Promotion.prototype, "isPublic", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, mongoose_1.Prop)({ type: String, default: '' }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], Promotion.prototype, "name", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, mongoose_1.Prop)({ enum: Object.values(promotions_interfaces_1.IPromotionDiscountType), default: promotions_interfaces_1.IPromotionDiscountType.PERCENT }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], Promotion.prototype, "discountType", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
127
|
+
__metadata("design:type", Boolean)
|
|
128
|
+
], Promotion.prototype, "enabled", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
131
|
+
__metadata("design:type", Date)
|
|
132
|
+
], Promotion.prototype, "startAt", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
135
|
+
__metadata("design:type", Date)
|
|
136
|
+
], Promotion.prototype, "endAt", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
139
|
+
__metadata("design:type", Number)
|
|
140
|
+
], Promotion.prototype, "perUserLimit", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
143
|
+
__metadata("design:type", Number)
|
|
144
|
+
], Promotion.prototype, "usedCount", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, mongoose_1.Prop)({ type: Date, default: null }),
|
|
147
|
+
__metadata("design:type", Date)
|
|
148
|
+
], Promotion.prototype, "archivedAt", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], Promotion.prototype, "tenantId", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], Promotion.prototype, "createdBy", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
159
|
+
__metadata("design:type", String)
|
|
160
|
+
], Promotion.prototype, "updatedBy", void 0);
|
|
115
161
|
exports.Promotion = Promotion = __decorate([
|
|
116
162
|
(0, mongoose_1.Schema)({
|
|
117
163
|
collection: 'promotions',
|
|
@@ -122,4 +168,7 @@ exports.PromotionSchema = mongoose_1.SchemaFactory.createForClass(Promotion);
|
|
|
122
168
|
(0, index_1.addUpdateHooks)(exports.PromotionSchema);
|
|
123
169
|
(0, index_1.addSoftDeleteHooks)(exports.PromotionSchema);
|
|
124
170
|
exports.PromotionSchema.index({ eventId: 1, code: 1 });
|
|
171
|
+
exports.PromotionSchema.index({ eventId: 1, archivedAt: 1, createdAt: -1 });
|
|
172
|
+
exports.PromotionSchema.index({ enabled: 1, active: 1, startAt: 1 });
|
|
173
|
+
exports.PromotionSchema.index({ enabled: 1, active: 1, endAt: 1 });
|
|
125
174
|
//# sourceMappingURL=promotions.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotions.schema.js","sourceRoot":"","sources":["../../../src/schemas/promotions/promotions.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;AAC9G,
|
|
1
|
+
{"version":3,"file":"promotions.schema.js","sourceRoot":"","sources":["../../../src/schemas/promotions/promotions.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;AAC9G,mEAA0H;AAOnH,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kBAAU;CA2HxC,CAAA;AA3HY,8BAAS;AAMlB;IAJC,IAAA,eAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACd,CAAC;;0CACc;AAMhB;IAJC,IAAA,eAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACd,CAAC;;uCACW;AAOb;IALC,IAAA,eAAI,EAAC;QACF,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,2CAAmB,CAAC;QACxC,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,2CAAmB,CAAC,KAAK;KACrC,CAAC;;4CAC6B;AAM/B;IAJC,IAAA,eAAI,EAAC;QACF,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,OAAO;KAChB,CAAC;;yCACc;AAMhB;IAJC,IAAA,eAAI,EAAC;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;2CACe;AAMjB;IAJC,IAAA,eAAI,EAAC;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;+CACmB;AAMrB;IAJC,IAAA,eAAI,EAAC;QACF,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,KAAK;KACjB,CAAC;;8CACmB;AAerB;IAbC,IAAA,eAAI,EAAC;QACF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,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AACpE,uBAAe,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7D,uBAAe,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -19,6 +19,21 @@ export interface ITicketClass {
|
|
|
19
19
|
syncTicketSummary?: boolean;
|
|
20
20
|
isShowInBooking?: boolean;
|
|
21
21
|
resaleEnabled?: boolean;
|
|
22
|
+
saleStatus?: ITicketClassSaleStatus;
|
|
23
|
+
setupStatus?: ITicketClassSetupStatus;
|
|
24
|
+
quantity?: number;
|
|
25
|
+
maxTicketPerOrder?: number;
|
|
26
|
+
sortOrder?: number;
|
|
27
|
+
}
|
|
28
|
+
export declare enum ITicketClassSaleStatus {
|
|
29
|
+
ON_SALE = "on_sale",
|
|
30
|
+
HIDDEN = "hidden",
|
|
31
|
+
STOP_ONLINE = "stop_online"
|
|
32
|
+
}
|
|
33
|
+
export declare enum ITicketClassSetupStatus {
|
|
34
|
+
NOT_SETUP = "not_setup",
|
|
35
|
+
DRAFT = "draft",
|
|
36
|
+
CONFIGURED = "configured"
|
|
22
37
|
}
|
|
23
38
|
export declare enum ITicketType {
|
|
24
39
|
SEATMAP_ZONE = "seatmap_zone",
|