@eventista/ticketing-common 1.3.35-dev.1 → 1.3.35
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 +4 -62
- package/dist/schemas/event/event.interfaces.js +1 -23
- package/dist/schemas/event/event.interfaces.js.map +1 -1
- package/dist/schemas/event/event.schema.d.ts +5 -39
- package/dist/schemas/event/event.schema.js +1 -148
- package/dist/schemas/event/event.schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,56 +1,14 @@
|
|
|
1
1
|
import { ICurrencyCode } from '../order/order.interfaces';
|
|
2
2
|
export declare enum IStatusEvent {
|
|
3
|
-
DRAFT = "DRAFT",
|
|
4
3
|
OPEN = "OPEN",
|
|
5
4
|
CLOSE = "CLOSE"
|
|
6
5
|
}
|
|
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 IDisplayMode {
|
|
21
|
-
LIGHT = "light",
|
|
22
|
-
DARK = "dark"
|
|
23
|
-
}
|
|
24
|
-
export interface IEventDescription {
|
|
25
|
-
title: string;
|
|
26
|
-
description: string;
|
|
27
|
-
order?: number;
|
|
28
|
-
}
|
|
29
|
-
export interface IEventOrganizer {
|
|
30
|
-
name?: string;
|
|
31
|
-
logo?: string;
|
|
32
|
-
description?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface IEventPolicy {
|
|
35
|
-
key: string;
|
|
36
|
-
title: string;
|
|
37
|
-
content: string;
|
|
38
|
-
order?: number;
|
|
39
|
-
}
|
|
40
|
-
export interface IEventFaq {
|
|
41
|
-
question: string;
|
|
42
|
-
answer: string;
|
|
43
|
-
order?: number;
|
|
44
|
-
}
|
|
45
6
|
export interface IPaymentInfoField {
|
|
46
7
|
key: string;
|
|
47
8
|
text: string;
|
|
48
9
|
type?: string;
|
|
49
10
|
isDefault?: boolean;
|
|
50
11
|
isRequired?: boolean;
|
|
51
|
-
options?: string[];
|
|
52
|
-
order?: number;
|
|
53
|
-
isShown?: boolean;
|
|
54
12
|
}
|
|
55
13
|
export interface IGeneral {
|
|
56
14
|
collaboration?: 'eventista' | 'agency' | 'seatmap' | 'seatmap_zone' | 'mixed';
|
|
@@ -68,7 +26,6 @@ export interface IEventCalendar {
|
|
|
68
26
|
startDate: Date;
|
|
69
27
|
endDate: Date;
|
|
70
28
|
maxTicketPerUser?: number;
|
|
71
|
-
location?: string;
|
|
72
29
|
}
|
|
73
30
|
export interface ITicketCalendar {
|
|
74
31
|
thumbnail?: string;
|
|
@@ -90,7 +47,10 @@ export interface IEvent {
|
|
|
90
47
|
ticketCalendar?: ITicketCalendar;
|
|
91
48
|
hostedBy?: string;
|
|
92
49
|
tickets: Record<string, any>[];
|
|
93
|
-
eventDescriptions?:
|
|
50
|
+
eventDescriptions?: {
|
|
51
|
+
title: string;
|
|
52
|
+
description: string;
|
|
53
|
+
}[];
|
|
94
54
|
maxTicketPerUser: number;
|
|
95
55
|
note: string;
|
|
96
56
|
general?: IGeneral;
|
|
@@ -118,22 +78,4 @@ export interface IEvent {
|
|
|
118
78
|
saleMode?: string;
|
|
119
79
|
resaleEnabled?: boolean;
|
|
120
80
|
sendTicketPdfEnabled?: boolean;
|
|
121
|
-
displayMode?: IDisplayMode;
|
|
122
|
-
guestCheckoutEnabled?: boolean;
|
|
123
|
-
giftEnabled?: boolean;
|
|
124
|
-
collectInfoMode?: ICollectInfoMode;
|
|
125
|
-
maxTicketPerOrder?: number;
|
|
126
|
-
organizer?: IEventOrganizer;
|
|
127
|
-
policies?: IEventPolicy[];
|
|
128
|
-
faqs?: IEventFaq[];
|
|
129
|
-
saleOpenMode?: IEventSaleOpenMode;
|
|
130
|
-
saleStartAt?: Date | null;
|
|
131
|
-
saleCloseMode?: IEventSaleCloseMode;
|
|
132
|
-
saleEndAt?: Date | null;
|
|
133
|
-
saleEndAtEffective?: Date | null;
|
|
134
|
-
publishedAt?: Date | null;
|
|
135
|
-
saleOpenedAt?: Date | null;
|
|
136
|
-
saleClosedAt?: Date | null;
|
|
137
|
-
saleConfig?: Record<string, any>[];
|
|
138
|
-
systemVersion?: string;
|
|
139
81
|
}
|
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IStatusEvent = void 0;
|
|
4
4
|
var IStatusEvent;
|
|
5
5
|
(function (IStatusEvent) {
|
|
6
|
-
IStatusEvent["DRAFT"] = "DRAFT";
|
|
7
6
|
IStatusEvent["OPEN"] = "OPEN";
|
|
8
7
|
IStatusEvent["CLOSE"] = "CLOSE";
|
|
9
8
|
})(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 IDisplayMode;
|
|
27
|
-
(function (IDisplayMode) {
|
|
28
|
-
IDisplayMode["LIGHT"] = "light";
|
|
29
|
-
IDisplayMode["DARK"] = "dark";
|
|
30
|
-
})(IDisplayMode || (exports.IDisplayMode = IDisplayMode = {}));
|
|
31
9
|
//# 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,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,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 {
|
|
4
|
+
import { IEventCalendar } from './event.interfaces';
|
|
5
5
|
export type EventDocument = HydratedDocument<Event> & BaseDocument;
|
|
6
6
|
export declare class SchemaPaymentInfoField {
|
|
7
7
|
key: string;
|
|
@@ -9,25 +9,6 @@ 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;
|
|
31
12
|
}
|
|
32
13
|
export declare class SchemaGeneral {
|
|
33
14
|
collaboration: string;
|
|
@@ -56,7 +37,10 @@ export declare class Event extends BaseSchema {
|
|
|
56
37
|
};
|
|
57
38
|
hostedBy: String;
|
|
58
39
|
tickets: Record<string, any>[];
|
|
59
|
-
eventDescriptions:
|
|
40
|
+
eventDescriptions: {
|
|
41
|
+
title: string;
|
|
42
|
+
description: string;
|
|
43
|
+
}[];
|
|
60
44
|
maxTicketPerUser: number;
|
|
61
45
|
note: string;
|
|
62
46
|
general: SchemaGeneral;
|
|
@@ -82,24 +66,6 @@ export declare class Event extends BaseSchema {
|
|
|
82
66
|
enableMultiStepCheckin: boolean;
|
|
83
67
|
resaleEnabled: boolean;
|
|
84
68
|
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
69
|
}
|
|
104
70
|
export declare const EventSchema: import("mongoose").Schema<Event, import("mongoose").Model<Event, any, any, any, import("mongoose").Document<unknown, any, Event, any> & Event & {
|
|
105
71
|
_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.
|
|
12
|
+
exports.EventSchema = exports.Event = exports.SchemaVisitor = exports.SchemaGeneral = 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,79 +37,9 @@ __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);
|
|
52
40
|
exports.SchemaPaymentInfoField = SchemaPaymentInfoField = __decorate([
|
|
53
41
|
(0, mongoose_1.Schema)({ _id: false })
|
|
54
42
|
], 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);
|
|
113
43
|
let SchemaGeneral = class SchemaGeneral {
|
|
114
44
|
};
|
|
115
45
|
exports.SchemaGeneral = SchemaGeneral;
|
|
@@ -197,7 +127,6 @@ __decorate([
|
|
|
197
127
|
startDate: { type: Date, required: true },
|
|
198
128
|
endDate: { type: Date, required: true },
|
|
199
129
|
maxTicketPerUser: { type: Number, default: -1 },
|
|
200
|
-
location: { type: String, required: false },
|
|
201
130
|
},
|
|
202
131
|
],
|
|
203
132
|
required: true,
|
|
@@ -232,7 +161,6 @@ __decorate([
|
|
|
232
161
|
{
|
|
233
162
|
title: { type: String },
|
|
234
163
|
description: { type: String },
|
|
235
|
-
order: { type: Number, default: 0 },
|
|
236
164
|
},
|
|
237
165
|
],
|
|
238
166
|
required: false,
|
|
@@ -353,78 +281,6 @@ __decorate([
|
|
|
353
281
|
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
354
282
|
__metadata("design:type", Boolean)
|
|
355
283
|
], 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
284
|
exports.Event = Event = __decorate([
|
|
429
285
|
(0, mongoose_1.Schema)({
|
|
430
286
|
collection: 'events',
|
|
@@ -439,7 +295,4 @@ exports.EventSchema.index({ eventName: 1 });
|
|
|
439
295
|
exports.EventSchema.index({ pathName: 1 });
|
|
440
296
|
exports.EventSchema.index({ status: 1 });
|
|
441
297
|
exports.EventSchema.index({ tenantId: 1 });
|
|
442
|
-
exports.EventSchema.index({ tenantId: 1, status: 1, createdAt: -1 });
|
|
443
|
-
exports.EventSchema.index({ status: 1, saleStartAt: 1 });
|
|
444
|
-
exports.EventSchema.index({ status: 1, saleEndAtEffective: 1 });
|
|
445
298
|
//# 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":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