@sellout/models 0.0.151 → 0.0.152
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/graphql/fragments/season.fragment.d.ts +23 -0
- package/.dist/graphql/fragments/season.fragment.js +315 -0
- package/.dist/graphql/fragments/season.fragment.js.map +1 -0
- package/.dist/graphql/mutations/createEvent.mutation.js +1 -0
- package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createFee.mutation.js +1 -0
- package/.dist/graphql/mutations/createFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeason.mutation.js +72 -0
- package/.dist/graphql/mutations/createSeason.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js +65 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js +18 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js.map +1 -0
- package/.dist/graphql/mutations/publishEvent.mutation.js +6 -5
- package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/publishSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/publishSeason.mutation.js +72 -0
- package/.dist/graphql/mutations/publishSeason.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js +2 -1
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateOrganization.mutation.js +1 -0
- package/.dist/graphql/mutations/updateOrganization.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateSeason.mutation.js +71 -0
- package/.dist/graphql/mutations/updateSeason.mutation.js.map +1 -0
- package/.dist/graphql/queries/event.query.js +2 -0
- package/.dist/graphql/queries/event.query.js.map +1 -1
- package/.dist/graphql/queries/events.query.js +1 -0
- package/.dist/graphql/queries/events.query.js.map +1 -1
- package/.dist/graphql/queries/profile.query.js +1 -0
- package/.dist/graphql/queries/profile.query.js.map +1 -1
- package/.dist/graphql/queries/publicEvent.query.js +1 -0
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
- package/.dist/graphql/queries/season.query.d.ts +2 -0
- package/.dist/graphql/queries/season.query.js +76 -0
- package/.dist/graphql/queries/season.query.js.map +1 -0
- package/.dist/graphql/queries/seasons.query.d.ts +2 -0
- package/.dist/graphql/queries/seasons.query.js +72 -0
- package/.dist/graphql/queries/seasons.query.js.map +1 -0
- package/.dist/interfaces/IAnalytics.d.ts +1 -0
- package/.dist/interfaces/IAnalytics.js.map +1 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +4 -1
- package/.dist/interfaces/IEvent.d.ts +1 -0
- package/.dist/interfaces/IFee.d.ts +1 -0
- package/.dist/interfaces/IOrder.d.ts +3 -1
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderQuery.d.ts +2 -0
- package/.dist/interfaces/IOrganization.d.ts +1 -0
- package/.dist/interfaces/ISeason.d.ts +76 -0
- package/.dist/interfaces/ISeason.js +34 -0
- package/.dist/interfaces/ISeason.js.map +1 -0
- package/.dist/interfaces/ISeasonCustomField.d.ts +13 -0
- package/.dist/interfaces/ISeasonCustomField.js +3 -0
- package/.dist/interfaces/ISeasonCustomField.js.map +1 -0
- package/.dist/interfaces/ISeasonQuery.d.ts +23 -0
- package/.dist/interfaces/ISeasonQuery.js +15 -0
- package/.dist/interfaces/ISeasonQuery.js.map +1 -0
- package/.dist/interfaces/ISeasonUpgrade.d.ts +16 -0
- package/.dist/interfaces/ISeasonUpgrade.js +3 -0
- package/.dist/interfaces/ISeasonUpgrade.js.map +1 -0
- package/.dist/schemas/Event.d.ts +4 -0
- package/.dist/schemas/Event.js +4 -0
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Fee.d.ts +5 -0
- package/.dist/schemas/Fee.js +4 -0
- package/.dist/schemas/Fee.js.map +1 -1
- package/.dist/schemas/Order.d.ts +8 -0
- package/.dist/schemas/Order.js +8 -1
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +5 -0
- package/.dist/schemas/Organization.js +5 -0
- package/.dist/schemas/Organization.js.map +1 -1
- package/.dist/schemas/Season.d.ts +679 -0
- package/.dist/schemas/Season.js +502 -0
- package/.dist/schemas/Season.js.map +1 -0
- package/.dist/sellout-proto.js +36603 -26718
- package/.dist/utils/EventUtil.js +32 -15
- package/.dist/utils/EventUtil.js.map +1 -1
- package/.dist/utils/FeeUtil.d.ts +1 -1
- package/.dist/utils/FeeUtil.js +19 -11
- package/.dist/utils/FeeUtil.js.map +1 -1
- package/.dist/utils/SeasonUtil.d.ts +66 -0
- package/.dist/utils/SeasonUtil.js +340 -0
- package/.dist/utils/SeasonUtil.js.map +1 -0
- package/package.json +3 -3
- package/src/graphql/fragments/season.fragment.ts +336 -0
- package/src/graphql/mutations/createEvent.mutation.ts +1 -0
- package/src/graphql/mutations/createFee.mutation.ts +2 -1
- package/src/graphql/mutations/createSeason.mutation.ts +68 -0
- package/src/graphql/mutations/createSeasonOrder.mutation.ts +61 -0
- package/src/graphql/mutations/createSeasonOrderPaymentIntent.mutation.ts +14 -0
- package/src/graphql/mutations/publishEvent.mutation.ts +6 -5
- package/src/graphql/mutations/publishSeason.mutation.ts +68 -0
- package/src/graphql/mutations/updateEvent.mutation.ts +4 -3
- package/src/graphql/mutations/updateOrganization.mutation.ts +3 -2
- package/src/graphql/mutations/updateSeason.mutation.ts +67 -0
- package/src/graphql/queries/event.query.ts +2 -0
- package/src/graphql/queries/events.query.ts +1 -0
- package/src/graphql/queries/profile.query.ts +1 -0
- package/src/graphql/queries/publicEvent.query.ts +1 -0
- package/src/graphql/queries/season.query.ts +72 -0
- package/src/graphql/queries/seasons.query.ts +68 -0
- package/src/interfaces/IAnalytics.ts +1 -0
- package/src/interfaces/ICreateOrderParams.ts +10 -7
- package/src/interfaces/IEvent.ts +1 -0
- package/src/interfaces/IFee.ts +12 -11
- package/src/interfaces/IOrder.ts +4 -2
- package/src/interfaces/IOrderQuery.ts +2 -0
- package/src/interfaces/IOrganization.ts +1 -0
- package/src/interfaces/ISeason.ts +87 -0
- package/src/interfaces/ISeasonCustomField.ts +14 -0
- package/src/interfaces/ISeasonQuery.ts +25 -0
- package/src/interfaces/ISeasonUpgrade.ts +16 -0
- package/src/proto/broadcast.proto +29 -0
- package/src/proto/email.proto +39 -0
- package/src/proto/event.proto +4 -0
- package/src/proto/fee.proto +2 -0
- package/src/proto/order.proto +59 -0
- package/src/proto/organization.proto +1 -0
- package/src/proto/season.proto +172 -0
- package/src/proto/seating.proto +16 -0
- package/src/proto/user.proto +1 -0
- package/src/schemas/Event.ts +4 -0
- package/src/schemas/Fee.ts +4 -0
- package/src/schemas/Order.ts +8 -1
- package/src/schemas/Organization.ts +5 -0
- package/src/schemas/Season.ts +507 -0
- package/src/utils/EventUtil.ts +47 -27
- package/src/utils/FeeUtil.ts +25 -17
- package/src/utils/SeasonUtil.ts +353 -0
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PerformanceSchedule = void 0;
|
|
7
|
+
const shortid_1 = __importDefault(require("shortid"));
|
|
8
|
+
const IEvent_1 = require("../interfaces/IEvent");
|
|
9
|
+
const IEventUpgrade_1 = require("../interfaces/IEventUpgrade");
|
|
10
|
+
const Address_1 = __importDefault(require("./Address"));
|
|
11
|
+
const Metrics_1 = __importDefault(require("./Metrics"));
|
|
12
|
+
const EventCustomFields = {
|
|
13
|
+
_id: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: shortid_1.default.generate
|
|
16
|
+
},
|
|
17
|
+
label: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: false
|
|
20
|
+
},
|
|
21
|
+
type: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
minLength: {
|
|
26
|
+
type: Number,
|
|
27
|
+
required: true,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
maxLength: {
|
|
31
|
+
type: Number,
|
|
32
|
+
required: false,
|
|
33
|
+
default: null,
|
|
34
|
+
},
|
|
35
|
+
minValue: {
|
|
36
|
+
type: Number,
|
|
37
|
+
required: true,
|
|
38
|
+
default: 0
|
|
39
|
+
},
|
|
40
|
+
maxValue: {
|
|
41
|
+
type: Number,
|
|
42
|
+
required: false,
|
|
43
|
+
default: null
|
|
44
|
+
},
|
|
45
|
+
required: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
required: true,
|
|
48
|
+
default: false,
|
|
49
|
+
},
|
|
50
|
+
options: [{
|
|
51
|
+
type: String,
|
|
52
|
+
required: true,
|
|
53
|
+
default: [],
|
|
54
|
+
}],
|
|
55
|
+
active: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: true,
|
|
58
|
+
default: true
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const EventPromotion = {
|
|
62
|
+
_id: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: shortid_1.default.generate,
|
|
65
|
+
},
|
|
66
|
+
code: {
|
|
67
|
+
type: String,
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
type: {
|
|
71
|
+
type: String,
|
|
72
|
+
required: true,
|
|
73
|
+
},
|
|
74
|
+
totalQty: {
|
|
75
|
+
type: Number,
|
|
76
|
+
required: true,
|
|
77
|
+
},
|
|
78
|
+
remainingQty: {
|
|
79
|
+
type: Number,
|
|
80
|
+
required: true,
|
|
81
|
+
},
|
|
82
|
+
ticketTypeIds: [
|
|
83
|
+
{
|
|
84
|
+
type: String,
|
|
85
|
+
required: true,
|
|
86
|
+
default: [],
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
upgradeIds: [
|
|
90
|
+
{
|
|
91
|
+
type: String,
|
|
92
|
+
required: true,
|
|
93
|
+
default: [],
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
active: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
required: true,
|
|
99
|
+
default: true,
|
|
100
|
+
},
|
|
101
|
+
startsAt: {
|
|
102
|
+
type: Number,
|
|
103
|
+
required: true,
|
|
104
|
+
},
|
|
105
|
+
endsAt: {
|
|
106
|
+
type: Number,
|
|
107
|
+
required: true,
|
|
108
|
+
},
|
|
109
|
+
useLimit: {
|
|
110
|
+
type: Number,
|
|
111
|
+
required: true,
|
|
112
|
+
},
|
|
113
|
+
discountType: {
|
|
114
|
+
type: String,
|
|
115
|
+
required: true,
|
|
116
|
+
},
|
|
117
|
+
discountValue: {
|
|
118
|
+
type: String,
|
|
119
|
+
required: true,
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
const SeasonSchedule = {
|
|
123
|
+
announceAt: {
|
|
124
|
+
type: Number,
|
|
125
|
+
required: false,
|
|
126
|
+
},
|
|
127
|
+
ticketsAt: {
|
|
128
|
+
type: Number,
|
|
129
|
+
required: false,
|
|
130
|
+
},
|
|
131
|
+
ticketsEndAt: {
|
|
132
|
+
type: Number,
|
|
133
|
+
required: false,
|
|
134
|
+
},
|
|
135
|
+
startsAt: {
|
|
136
|
+
type: Number,
|
|
137
|
+
required: false,
|
|
138
|
+
},
|
|
139
|
+
endsAt: {
|
|
140
|
+
type: Number,
|
|
141
|
+
required: false,
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
const SeasonUpgrade = {
|
|
145
|
+
_id: {
|
|
146
|
+
type: String,
|
|
147
|
+
default: shortid_1.default.generate,
|
|
148
|
+
},
|
|
149
|
+
name: {
|
|
150
|
+
type: String,
|
|
151
|
+
required: true,
|
|
152
|
+
},
|
|
153
|
+
price: {
|
|
154
|
+
type: Number,
|
|
155
|
+
required: true,
|
|
156
|
+
},
|
|
157
|
+
totalQty: {
|
|
158
|
+
type: Number,
|
|
159
|
+
required: true,
|
|
160
|
+
},
|
|
161
|
+
remainingQty: {
|
|
162
|
+
type: Number,
|
|
163
|
+
required: true,
|
|
164
|
+
},
|
|
165
|
+
purchaseLimit: {
|
|
166
|
+
type: Number,
|
|
167
|
+
required: true,
|
|
168
|
+
default: 8,
|
|
169
|
+
},
|
|
170
|
+
complimentary: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
required: true,
|
|
173
|
+
default: false,
|
|
174
|
+
},
|
|
175
|
+
complimentaryWith: {
|
|
176
|
+
type: String,
|
|
177
|
+
required: false,
|
|
178
|
+
default: IEventUpgrade_1.UpgradeTypeComplimentaryWithEnum.Order,
|
|
179
|
+
},
|
|
180
|
+
complimentaryQty: {
|
|
181
|
+
type: String,
|
|
182
|
+
required: false,
|
|
183
|
+
default: 1,
|
|
184
|
+
},
|
|
185
|
+
ticketTypeIds: [
|
|
186
|
+
{
|
|
187
|
+
type: String,
|
|
188
|
+
required: true,
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
imageUrl: {
|
|
192
|
+
type: String,
|
|
193
|
+
required: false,
|
|
194
|
+
},
|
|
195
|
+
description: {
|
|
196
|
+
type: String,
|
|
197
|
+
required: false,
|
|
198
|
+
},
|
|
199
|
+
visible: {
|
|
200
|
+
type: Boolean,
|
|
201
|
+
required: true,
|
|
202
|
+
default: true,
|
|
203
|
+
},
|
|
204
|
+
rollFees: {
|
|
205
|
+
type: Boolean,
|
|
206
|
+
required: true,
|
|
207
|
+
default: false,
|
|
208
|
+
},
|
|
209
|
+
values: {
|
|
210
|
+
type: String,
|
|
211
|
+
required: false,
|
|
212
|
+
default: "0",
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
exports.PerformanceSchedule = [{
|
|
216
|
+
_id: {
|
|
217
|
+
type: String,
|
|
218
|
+
required: false,
|
|
219
|
+
default: shortid_1.default.generate,
|
|
220
|
+
},
|
|
221
|
+
doorsAt: {
|
|
222
|
+
type: Number,
|
|
223
|
+
required: false,
|
|
224
|
+
},
|
|
225
|
+
startsAt: {
|
|
226
|
+
type: Number,
|
|
227
|
+
required: false,
|
|
228
|
+
},
|
|
229
|
+
endsAt: {
|
|
230
|
+
type: Number,
|
|
231
|
+
required: false,
|
|
232
|
+
},
|
|
233
|
+
}];
|
|
234
|
+
const Performance = {
|
|
235
|
+
_id: {
|
|
236
|
+
type: String,
|
|
237
|
+
default: shortid_1.default.generate,
|
|
238
|
+
},
|
|
239
|
+
name: {
|
|
240
|
+
type: String,
|
|
241
|
+
required: false,
|
|
242
|
+
},
|
|
243
|
+
headliningArtistIds: [
|
|
244
|
+
{
|
|
245
|
+
type: String,
|
|
246
|
+
required: false,
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
openingArtistIds: [
|
|
250
|
+
{
|
|
251
|
+
type: String,
|
|
252
|
+
requird: false,
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
venueId: {
|
|
256
|
+
type: String,
|
|
257
|
+
required: false,
|
|
258
|
+
},
|
|
259
|
+
venueStageId: {
|
|
260
|
+
type: String,
|
|
261
|
+
required: false,
|
|
262
|
+
},
|
|
263
|
+
price: {
|
|
264
|
+
type: Number,
|
|
265
|
+
required: false,
|
|
266
|
+
default: 0,
|
|
267
|
+
},
|
|
268
|
+
posterImageUrl: {
|
|
269
|
+
type: String,
|
|
270
|
+
required: false,
|
|
271
|
+
},
|
|
272
|
+
videoLink: {
|
|
273
|
+
type: String,
|
|
274
|
+
required: false,
|
|
275
|
+
},
|
|
276
|
+
songLink: {
|
|
277
|
+
type: String,
|
|
278
|
+
required: false,
|
|
279
|
+
},
|
|
280
|
+
schedule: exports.PerformanceSchedule,
|
|
281
|
+
};
|
|
282
|
+
const TicketExchange = {
|
|
283
|
+
allowed: {
|
|
284
|
+
type: String,
|
|
285
|
+
required: false,
|
|
286
|
+
},
|
|
287
|
+
percent: {
|
|
288
|
+
type: String,
|
|
289
|
+
required: false,
|
|
290
|
+
},
|
|
291
|
+
};
|
|
292
|
+
const TicketHold = {
|
|
293
|
+
_id: {
|
|
294
|
+
type: String,
|
|
295
|
+
default: shortid_1.default.generate,
|
|
296
|
+
},
|
|
297
|
+
name: {
|
|
298
|
+
type: String,
|
|
299
|
+
required: true,
|
|
300
|
+
},
|
|
301
|
+
qty: {
|
|
302
|
+
type: Number,
|
|
303
|
+
required: true,
|
|
304
|
+
},
|
|
305
|
+
ticketTypeId: {
|
|
306
|
+
type: String,
|
|
307
|
+
required: true,
|
|
308
|
+
},
|
|
309
|
+
};
|
|
310
|
+
const TicketTier = {
|
|
311
|
+
_id: {
|
|
312
|
+
type: String,
|
|
313
|
+
default: shortid_1.default.generate,
|
|
314
|
+
},
|
|
315
|
+
name: {
|
|
316
|
+
type: String,
|
|
317
|
+
required: true,
|
|
318
|
+
},
|
|
319
|
+
price: {
|
|
320
|
+
type: Number,
|
|
321
|
+
required: true,
|
|
322
|
+
},
|
|
323
|
+
startsAt: {
|
|
324
|
+
type: Number,
|
|
325
|
+
required: true,
|
|
326
|
+
},
|
|
327
|
+
endsAt: {
|
|
328
|
+
type: Number,
|
|
329
|
+
required: true,
|
|
330
|
+
},
|
|
331
|
+
totalQty: {
|
|
332
|
+
type: Number,
|
|
333
|
+
required: true,
|
|
334
|
+
},
|
|
335
|
+
remainingQty: {
|
|
336
|
+
type: Number,
|
|
337
|
+
required: true,
|
|
338
|
+
},
|
|
339
|
+
};
|
|
340
|
+
const TicketType = {
|
|
341
|
+
_id: {
|
|
342
|
+
type: String,
|
|
343
|
+
default: shortid_1.default.generate,
|
|
344
|
+
},
|
|
345
|
+
name: {
|
|
346
|
+
type: String,
|
|
347
|
+
required: true,
|
|
348
|
+
},
|
|
349
|
+
totalQty: {
|
|
350
|
+
type: Number,
|
|
351
|
+
required: true,
|
|
352
|
+
},
|
|
353
|
+
remainingQty: {
|
|
354
|
+
type: Number,
|
|
355
|
+
required: true,
|
|
356
|
+
},
|
|
357
|
+
purchaseLimit: {
|
|
358
|
+
type: Number,
|
|
359
|
+
required: true,
|
|
360
|
+
default: 8,
|
|
361
|
+
},
|
|
362
|
+
visible: {
|
|
363
|
+
type: Boolean,
|
|
364
|
+
required: true,
|
|
365
|
+
default: true,
|
|
366
|
+
},
|
|
367
|
+
performanceIds: [
|
|
368
|
+
{
|
|
369
|
+
type: String,
|
|
370
|
+
required: false,
|
|
371
|
+
default: [],
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
tiers: [TicketTier],
|
|
375
|
+
description: {
|
|
376
|
+
type: String,
|
|
377
|
+
required: false
|
|
378
|
+
},
|
|
379
|
+
rollFees: {
|
|
380
|
+
type: Boolean,
|
|
381
|
+
required: true,
|
|
382
|
+
default: false,
|
|
383
|
+
},
|
|
384
|
+
values: {
|
|
385
|
+
type: String,
|
|
386
|
+
required: false,
|
|
387
|
+
default: "0",
|
|
388
|
+
}, dayIds: [
|
|
389
|
+
{
|
|
390
|
+
type: String,
|
|
391
|
+
required: false
|
|
392
|
+
}
|
|
393
|
+
]
|
|
394
|
+
};
|
|
395
|
+
exports.default = {
|
|
396
|
+
_id: {
|
|
397
|
+
type: String,
|
|
398
|
+
default: shortid_1.default.generate
|
|
399
|
+
},
|
|
400
|
+
orgId: {
|
|
401
|
+
type: String,
|
|
402
|
+
required: true
|
|
403
|
+
},
|
|
404
|
+
type: {
|
|
405
|
+
type: String,
|
|
406
|
+
required: false
|
|
407
|
+
},
|
|
408
|
+
name: {
|
|
409
|
+
type: String,
|
|
410
|
+
required: false
|
|
411
|
+
},
|
|
412
|
+
subtitle: {
|
|
413
|
+
type: String,
|
|
414
|
+
required: false
|
|
415
|
+
},
|
|
416
|
+
description: {
|
|
417
|
+
type: String,
|
|
418
|
+
required: false
|
|
419
|
+
},
|
|
420
|
+
posterImageUrl: {
|
|
421
|
+
type: String,
|
|
422
|
+
required: false
|
|
423
|
+
},
|
|
424
|
+
venueId: {
|
|
425
|
+
type: String,
|
|
426
|
+
required: false
|
|
427
|
+
},
|
|
428
|
+
createdAt: {
|
|
429
|
+
type: Number,
|
|
430
|
+
required: true
|
|
431
|
+
},
|
|
432
|
+
publishable: {
|
|
433
|
+
type: Boolean,
|
|
434
|
+
required: true,
|
|
435
|
+
default: false
|
|
436
|
+
},
|
|
437
|
+
seatingChartKey: {
|
|
438
|
+
type: String,
|
|
439
|
+
required: false,
|
|
440
|
+
},
|
|
441
|
+
age: {
|
|
442
|
+
type: String,
|
|
443
|
+
required: true,
|
|
444
|
+
default: IEvent_1.EventAgeEnum.AllAges
|
|
445
|
+
},
|
|
446
|
+
active: {
|
|
447
|
+
type: Boolean,
|
|
448
|
+
default: true
|
|
449
|
+
},
|
|
450
|
+
cancel: {
|
|
451
|
+
type: Boolean,
|
|
452
|
+
required: true,
|
|
453
|
+
default: false
|
|
454
|
+
},
|
|
455
|
+
taxDeduction: {
|
|
456
|
+
type: Boolean,
|
|
457
|
+
required: true,
|
|
458
|
+
default: false
|
|
459
|
+
},
|
|
460
|
+
userAgreement: {
|
|
461
|
+
type: String,
|
|
462
|
+
required: false
|
|
463
|
+
},
|
|
464
|
+
processAs: {
|
|
465
|
+
type: String,
|
|
466
|
+
required: true,
|
|
467
|
+
default: IEvent_1.EventProcessAsEnum.Paid,
|
|
468
|
+
},
|
|
469
|
+
sendQRCode: {
|
|
470
|
+
type: String,
|
|
471
|
+
default: IEvent_1.SendQRCodeEnum.UponOrder,
|
|
472
|
+
},
|
|
473
|
+
location: Address_1.default,
|
|
474
|
+
schedule: SeasonSchedule,
|
|
475
|
+
performances: [Performance],
|
|
476
|
+
ticketTypes: [TicketType],
|
|
477
|
+
holds: [TicketHold],
|
|
478
|
+
upgrades: [SeasonUpgrade],
|
|
479
|
+
promotions: [EventPromotion],
|
|
480
|
+
customFields: [EventCustomFields],
|
|
481
|
+
exchange: TicketExchange,
|
|
482
|
+
metrics: Metrics_1.default,
|
|
483
|
+
published: {
|
|
484
|
+
type: Boolean,
|
|
485
|
+
default: false,
|
|
486
|
+
},
|
|
487
|
+
salesBeginImmediately: {
|
|
488
|
+
type: Boolean,
|
|
489
|
+
required: true,
|
|
490
|
+
default: true
|
|
491
|
+
}, numberOfEvent: {
|
|
492
|
+
type: Number,
|
|
493
|
+
required: true,
|
|
494
|
+
default: 0
|
|
495
|
+
}, eventIds: [
|
|
496
|
+
{
|
|
497
|
+
type: String,
|
|
498
|
+
required: false
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
};
|
|
502
|
+
//# sourceMappingURL=Season.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Season.js","sourceRoot":"","sources":["../../src/schemas/Season.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA8B;AAC9B,iDAAwF;AACxF,+DAA+E;AAC/E,wDAAgC;AAChC,wDAAgC;AAChC,MAAM,iBAAiB,GAAG;IACxB,GAAG,EAAE;QACH,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iBAAO,CAAC,QAAQ;KAC1B;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;KACX;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;KACd;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;KACX;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,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