@sellout/models 0.0.56 → 0.0.57
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/event.fragment.js +7 -0
- package/.dist/graphql/fragments/event.fragment.js.map +1 -1
- package/.dist/graphql/mutations/createArtist.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createArtist.mutation.js +52 -0
- package/.dist/graphql/mutations/createArtist.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createFee.mutation.js +30 -0
- package/.dist/graphql/mutations/createFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteFee.mutation.js +13 -0
- package/.dist/graphql/mutations/deleteFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateArtist.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateArtist.mutation.js +52 -0
- package/.dist/graphql/mutations/updateArtist.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateFee.mutation.js +30 -0
- package/.dist/graphql/mutations/updateFee.mutation.js.map +1 -0
- package/.dist/graphql/queries/artist.query.js +11 -2
- package/.dist/graphql/queries/artist.query.js.map +1 -1
- package/.dist/graphql/queries/artists.query.js +11 -10
- package/.dist/graphql/queries/artists.query.js.map +1 -1
- package/.dist/graphql/queries/fee.query.d.ts +2 -0
- package/.dist/graphql/queries/fee.query.js +30 -0
- package/.dist/graphql/queries/fee.query.js.map +1 -0
- package/.dist/interfaces/IArtist.d.ts +9 -0
- package/.dist/interfaces/IArtist.js +9 -0
- package/.dist/interfaces/IArtist.js.map +1 -1
- package/.dist/interfaces/IArtistPressKit.d.ts +1 -0
- package/.dist/interfaces/IEvent.js +1 -1
- package/.dist/interfaces/IEvent.js.map +1 -1
- package/.dist/interfaces/IEventPromotion.d.ts +12 -2
- package/.dist/interfaces/IEventPromotion.js +9 -3
- package/.dist/interfaces/IEventPromotion.js.map +1 -1
- package/.dist/interfaces/IFee.d.ts +5 -6
- package/.dist/interfaces/IFee.js +1 -1
- package/.dist/interfaces/IFee.js.map +1 -1
- package/.dist/interfaces/IPerformance.d.ts +1 -1
- package/.dist/schemas/Artist.d.ts +12 -0
- package/.dist/schemas/Artist.js +12 -0
- package/.dist/schemas/Artist.js.map +1 -1
- package/.dist/schemas/Event.d.ts +31 -0
- package/.dist/schemas/Event.js +39 -8
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/sellout-proto.js +236 -38
- package/.dist/utils/EventUtil.d.ts +4 -0
- package/.dist/utils/EventUtil.js +39 -36
- package/.dist/utils/EventUtil.js.map +1 -1
- package/package.json +4 -4
- package/src/graphql/fragments/event.fragment.ts +7 -0
- package/src/graphql/mutations/createArtist.mutation.ts +48 -0
- package/src/graphql/mutations/createFee.mutation.ts +26 -0
- package/src/graphql/mutations/deleteFee.mutation.ts +9 -0
- package/src/graphql/mutations/updateArtist.mutation.ts +48 -0
- package/src/graphql/mutations/updateFee.mutation.ts +25 -0
- package/src/graphql/queries/artist.query.ts +11 -2
- package/src/graphql/queries/artists.query.ts +12 -10
- package/src/graphql/queries/fee.query.ts +26 -0
- package/src/interfaces/IArtist.ts +11 -1
- package/src/interfaces/IArtistPressKit.ts +1 -0
- package/src/interfaces/IEvent.ts +1 -1
- package/src/interfaces/IEventPromotion.ts +13 -2
- package/src/interfaces/IFee.ts +5 -5
- package/src/interfaces/IPerformance.ts +1 -1
- package/src/proto/artist.proto +9 -7
- package/src/proto/event.proto +11 -4
- package/src/schemas/Artist.ts +12 -0
- package/src/schemas/Event.ts +39 -8
- package/src/utils/EventUtil.ts +96 -44
package/.dist/sellout-proto.js
CHANGED
|
@@ -17,13 +17,15 @@ $root.Artist = (function() {
|
|
|
17
17
|
* @interface IArtist
|
|
18
18
|
* @property {string|null} [_id] Artist _id
|
|
19
19
|
* @property {string|null} [name] Artist name
|
|
20
|
+
* @property {string|null} [orgId] Artist orgId
|
|
21
|
+
* @property {string|null} [type] Artist type
|
|
20
22
|
* @property {Array.<string>|null} [genres] Artist genres
|
|
21
23
|
* @property {Array.<ISocialAccountLink>|null} [socialAccounts] Artist socialAccounts
|
|
22
24
|
* @property {Array.<IArtistPressKit>|null} [pressKits] Artist pressKits
|
|
23
25
|
* @property {Array.<IArtistContact>|null} [contacts] Artist contacts
|
|
24
26
|
* @property {string|null} [artistGlobalId] Artist artistGlobalId
|
|
25
|
-
* @property {string|null} [orgId] Artist orgId
|
|
26
27
|
* @property {IMetrics|null} [metrics] Artist metrics
|
|
28
|
+
* @property {number|null} [createdAt] Artist createdAt
|
|
27
29
|
*/
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -61,6 +63,22 @@ $root.Artist = (function() {
|
|
|
61
63
|
*/
|
|
62
64
|
Artist.prototype.name = "";
|
|
63
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Artist orgId.
|
|
68
|
+
* @member {string} orgId
|
|
69
|
+
* @memberof Artist
|
|
70
|
+
* @instance
|
|
71
|
+
*/
|
|
72
|
+
Artist.prototype.orgId = "";
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Artist type.
|
|
76
|
+
* @member {string} type
|
|
77
|
+
* @memberof Artist
|
|
78
|
+
* @instance
|
|
79
|
+
*/
|
|
80
|
+
Artist.prototype.type = "";
|
|
81
|
+
|
|
64
82
|
/**
|
|
65
83
|
* Artist genres.
|
|
66
84
|
* @member {Array.<string>} genres
|
|
@@ -102,20 +120,20 @@ $root.Artist = (function() {
|
|
|
102
120
|
Artist.prototype.artistGlobalId = "";
|
|
103
121
|
|
|
104
122
|
/**
|
|
105
|
-
* Artist
|
|
106
|
-
* @member {
|
|
123
|
+
* Artist metrics.
|
|
124
|
+
* @member {IMetrics|null|undefined} metrics
|
|
107
125
|
* @memberof Artist
|
|
108
126
|
* @instance
|
|
109
127
|
*/
|
|
110
|
-
Artist.prototype.
|
|
128
|
+
Artist.prototype.metrics = null;
|
|
111
129
|
|
|
112
130
|
/**
|
|
113
|
-
* Artist
|
|
114
|
-
* @member {
|
|
131
|
+
* Artist createdAt.
|
|
132
|
+
* @member {number} createdAt
|
|
115
133
|
* @memberof Artist
|
|
116
134
|
* @instance
|
|
117
135
|
*/
|
|
118
|
-
Artist.prototype.
|
|
136
|
+
Artist.prototype.createdAt = 0;
|
|
119
137
|
|
|
120
138
|
/**
|
|
121
139
|
* Creates a new Artist instance using the specified properties.
|
|
@@ -145,24 +163,28 @@ $root.Artist = (function() {
|
|
|
145
163
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message._id);
|
|
146
164
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
147
165
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
166
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
167
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.orgId);
|
|
168
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
169
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
148
170
|
if (message.genres != null && message.genres.length)
|
|
149
171
|
for (var i = 0; i < message.genres.length; ++i)
|
|
150
|
-
writer.uint32(/* id
|
|
172
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.genres[i]);
|
|
151
173
|
if (message.socialAccounts != null && message.socialAccounts.length)
|
|
152
174
|
for (var i = 0; i < message.socialAccounts.length; ++i)
|
|
153
|
-
$root.SocialAccountLink.encode(message.socialAccounts[i], writer.uint32(/* id
|
|
175
|
+
$root.SocialAccountLink.encode(message.socialAccounts[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
154
176
|
if (message.pressKits != null && message.pressKits.length)
|
|
155
177
|
for (var i = 0; i < message.pressKits.length; ++i)
|
|
156
|
-
$root.ArtistPressKit.encode(message.pressKits[i], writer.uint32(/* id
|
|
178
|
+
$root.ArtistPressKit.encode(message.pressKits[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
157
179
|
if (message.contacts != null && message.contacts.length)
|
|
158
180
|
for (var i = 0; i < message.contacts.length; ++i)
|
|
159
|
-
$root.ArtistContact.encode(message.contacts[i], writer.uint32(/* id
|
|
181
|
+
$root.ArtistContact.encode(message.contacts[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
160
182
|
if (message.artistGlobalId != null && message.hasOwnProperty("artistGlobalId"))
|
|
161
|
-
writer.uint32(/* id
|
|
162
|
-
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
163
|
-
writer.uint32(/* id 8, wireType 2 =*/66).string(message.orgId);
|
|
183
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.artistGlobalId);
|
|
164
184
|
if (message.metrics != null && message.hasOwnProperty("metrics"))
|
|
165
|
-
$root.Metrics.encode(message.metrics, writer.uint32(/* id
|
|
185
|
+
$root.Metrics.encode(message.metrics, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
186
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
187
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.createdAt);
|
|
166
188
|
return writer;
|
|
167
189
|
};
|
|
168
190
|
|
|
@@ -204,34 +226,40 @@ $root.Artist = (function() {
|
|
|
204
226
|
message.name = reader.string();
|
|
205
227
|
break;
|
|
206
228
|
case 3:
|
|
229
|
+
message.orgId = reader.string();
|
|
230
|
+
break;
|
|
231
|
+
case 4:
|
|
232
|
+
message.type = reader.string();
|
|
233
|
+
break;
|
|
234
|
+
case 5:
|
|
207
235
|
if (!(message.genres && message.genres.length))
|
|
208
236
|
message.genres = [];
|
|
209
237
|
message.genres.push(reader.string());
|
|
210
238
|
break;
|
|
211
|
-
case
|
|
239
|
+
case 6:
|
|
212
240
|
if (!(message.socialAccounts && message.socialAccounts.length))
|
|
213
241
|
message.socialAccounts = [];
|
|
214
242
|
message.socialAccounts.push($root.SocialAccountLink.decode(reader, reader.uint32()));
|
|
215
243
|
break;
|
|
216
|
-
case
|
|
244
|
+
case 7:
|
|
217
245
|
if (!(message.pressKits && message.pressKits.length))
|
|
218
246
|
message.pressKits = [];
|
|
219
247
|
message.pressKits.push($root.ArtistPressKit.decode(reader, reader.uint32()));
|
|
220
248
|
break;
|
|
221
|
-
case
|
|
249
|
+
case 8:
|
|
222
250
|
if (!(message.contacts && message.contacts.length))
|
|
223
251
|
message.contacts = [];
|
|
224
252
|
message.contacts.push($root.ArtistContact.decode(reader, reader.uint32()));
|
|
225
253
|
break;
|
|
226
|
-
case
|
|
254
|
+
case 9:
|
|
227
255
|
message.artistGlobalId = reader.string();
|
|
228
256
|
break;
|
|
229
|
-
case
|
|
230
|
-
message.orgId = reader.string();
|
|
231
|
-
break;
|
|
232
|
-
case 9:
|
|
257
|
+
case 10:
|
|
233
258
|
message.metrics = $root.Metrics.decode(reader, reader.uint32());
|
|
234
259
|
break;
|
|
260
|
+
case 11:
|
|
261
|
+
message.createdAt = reader.int32();
|
|
262
|
+
break;
|
|
235
263
|
default:
|
|
236
264
|
reader.skipType(tag & 7);
|
|
237
265
|
break;
|
|
@@ -273,6 +301,12 @@ $root.Artist = (function() {
|
|
|
273
301
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
274
302
|
if (!$util.isString(message.name))
|
|
275
303
|
return "name: string expected";
|
|
304
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
305
|
+
if (!$util.isString(message.orgId))
|
|
306
|
+
return "orgId: string expected";
|
|
307
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
308
|
+
if (!$util.isString(message.type))
|
|
309
|
+
return "type: string expected";
|
|
276
310
|
if (message.genres != null && message.hasOwnProperty("genres")) {
|
|
277
311
|
if (!Array.isArray(message.genres))
|
|
278
312
|
return "genres: array expected";
|
|
@@ -310,14 +344,14 @@ $root.Artist = (function() {
|
|
|
310
344
|
if (message.artistGlobalId != null && message.hasOwnProperty("artistGlobalId"))
|
|
311
345
|
if (!$util.isString(message.artistGlobalId))
|
|
312
346
|
return "artistGlobalId: string expected";
|
|
313
|
-
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
314
|
-
if (!$util.isString(message.orgId))
|
|
315
|
-
return "orgId: string expected";
|
|
316
347
|
if (message.metrics != null && message.hasOwnProperty("metrics")) {
|
|
317
348
|
var error = $root.Metrics.verify(message.metrics);
|
|
318
349
|
if (error)
|
|
319
350
|
return "metrics." + error;
|
|
320
351
|
}
|
|
352
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
353
|
+
if (!$util.isInteger(message.createdAt))
|
|
354
|
+
return "createdAt: integer expected";
|
|
321
355
|
return null;
|
|
322
356
|
};
|
|
323
357
|
|
|
@@ -337,6 +371,10 @@ $root.Artist = (function() {
|
|
|
337
371
|
message._id = String(object._id);
|
|
338
372
|
if (object.name != null)
|
|
339
373
|
message.name = String(object.name);
|
|
374
|
+
if (object.orgId != null)
|
|
375
|
+
message.orgId = String(object.orgId);
|
|
376
|
+
if (object.type != null)
|
|
377
|
+
message.type = String(object.type);
|
|
340
378
|
if (object.genres) {
|
|
341
379
|
if (!Array.isArray(object.genres))
|
|
342
380
|
throw TypeError(".Artist.genres: array expected");
|
|
@@ -376,13 +414,13 @@ $root.Artist = (function() {
|
|
|
376
414
|
}
|
|
377
415
|
if (object.artistGlobalId != null)
|
|
378
416
|
message.artistGlobalId = String(object.artistGlobalId);
|
|
379
|
-
if (object.orgId != null)
|
|
380
|
-
message.orgId = String(object.orgId);
|
|
381
417
|
if (object.metrics != null) {
|
|
382
418
|
if (typeof object.metrics !== "object")
|
|
383
419
|
throw TypeError(".Artist.metrics: object expected");
|
|
384
420
|
message.metrics = $root.Metrics.fromObject(object.metrics);
|
|
385
421
|
}
|
|
422
|
+
if (object.createdAt != null)
|
|
423
|
+
message.createdAt = object.createdAt | 0;
|
|
386
424
|
return message;
|
|
387
425
|
};
|
|
388
426
|
|
|
@@ -408,14 +446,20 @@ $root.Artist = (function() {
|
|
|
408
446
|
if (options.defaults) {
|
|
409
447
|
object._id = "";
|
|
410
448
|
object.name = "";
|
|
411
|
-
object.artistGlobalId = "";
|
|
412
449
|
object.orgId = "";
|
|
450
|
+
object.type = "";
|
|
451
|
+
object.artistGlobalId = "";
|
|
413
452
|
object.metrics = null;
|
|
453
|
+
object.createdAt = 0;
|
|
414
454
|
}
|
|
415
455
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
416
456
|
object._id = message._id;
|
|
417
457
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
418
458
|
object.name = message.name;
|
|
459
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
460
|
+
object.orgId = message.orgId;
|
|
461
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
462
|
+
object.type = message.type;
|
|
419
463
|
if (message.genres && message.genres.length) {
|
|
420
464
|
object.genres = [];
|
|
421
465
|
for (var j = 0; j < message.genres.length; ++j)
|
|
@@ -438,10 +482,10 @@ $root.Artist = (function() {
|
|
|
438
482
|
}
|
|
439
483
|
if (message.artistGlobalId != null && message.hasOwnProperty("artistGlobalId"))
|
|
440
484
|
object.artistGlobalId = message.artistGlobalId;
|
|
441
|
-
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
442
|
-
object.orgId = message.orgId;
|
|
443
485
|
if (message.metrics != null && message.hasOwnProperty("metrics"))
|
|
444
486
|
object.metrics = $root.Metrics.toObject(message.metrics, options);
|
|
487
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
488
|
+
object.createdAt = message.createdAt;
|
|
445
489
|
return object;
|
|
446
490
|
};
|
|
447
491
|
|
|
@@ -29052,6 +29096,8 @@ $root.EventUpgrade = (function() {
|
|
|
29052
29096
|
* @property {number|null} [remainingQty] EventUpgrade remainingQty
|
|
29053
29097
|
* @property {number|null} [purchaseLimit] EventUpgrade purchaseLimit
|
|
29054
29098
|
* @property {boolean|null} [complimentary] EventUpgrade complimentary
|
|
29099
|
+
* @property {string|null} [complimentaryWith] EventUpgrade complimentaryWith
|
|
29100
|
+
* @property {number|null} [complimentaryQty] EventUpgrade complimentaryQty
|
|
29055
29101
|
* @property {Array.<string>|null} [ticketTypeIds] EventUpgrade ticketTypeIds
|
|
29056
29102
|
* @property {string|null} [imageUrl] EventUpgrade imageUrl
|
|
29057
29103
|
* @property {string|null} [description] EventUpgrade description
|
|
@@ -29130,6 +29176,22 @@ $root.EventUpgrade = (function() {
|
|
|
29130
29176
|
*/
|
|
29131
29177
|
EventUpgrade.prototype.complimentary = false;
|
|
29132
29178
|
|
|
29179
|
+
/**
|
|
29180
|
+
* EventUpgrade complimentaryWith.
|
|
29181
|
+
* @member {string} complimentaryWith
|
|
29182
|
+
* @memberof EventUpgrade
|
|
29183
|
+
* @instance
|
|
29184
|
+
*/
|
|
29185
|
+
EventUpgrade.prototype.complimentaryWith = "";
|
|
29186
|
+
|
|
29187
|
+
/**
|
|
29188
|
+
* EventUpgrade complimentaryQty.
|
|
29189
|
+
* @member {number} complimentaryQty
|
|
29190
|
+
* @memberof EventUpgrade
|
|
29191
|
+
* @instance
|
|
29192
|
+
*/
|
|
29193
|
+
EventUpgrade.prototype.complimentaryQty = 0;
|
|
29194
|
+
|
|
29133
29195
|
/**
|
|
29134
29196
|
* EventUpgrade ticketTypeIds.
|
|
29135
29197
|
* @member {Array.<string>} ticketTypeIds
|
|
@@ -29200,15 +29262,19 @@ $root.EventUpgrade = (function() {
|
|
|
29200
29262
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.purchaseLimit);
|
|
29201
29263
|
if (message.complimentary != null && message.hasOwnProperty("complimentary"))
|
|
29202
29264
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.complimentary);
|
|
29265
|
+
if (message.complimentaryWith != null && message.hasOwnProperty("complimentaryWith"))
|
|
29266
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.complimentaryWith);
|
|
29267
|
+
if (message.complimentaryQty != null && message.hasOwnProperty("complimentaryQty"))
|
|
29268
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.complimentaryQty);
|
|
29203
29269
|
if (message.ticketTypeIds != null && message.ticketTypeIds.length)
|
|
29204
29270
|
for (var i = 0; i < message.ticketTypeIds.length; ++i)
|
|
29205
|
-
writer.uint32(/* id
|
|
29271
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.ticketTypeIds[i]);
|
|
29206
29272
|
if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
|
|
29207
|
-
writer.uint32(/* id
|
|
29273
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.imageUrl);
|
|
29208
29274
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
29209
|
-
writer.uint32(/* id
|
|
29275
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.description);
|
|
29210
29276
|
if (message.visible != null && message.hasOwnProperty("visible"))
|
|
29211
|
-
writer.uint32(/* id
|
|
29277
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.visible);
|
|
29212
29278
|
return writer;
|
|
29213
29279
|
};
|
|
29214
29280
|
|
|
@@ -29265,17 +29331,23 @@ $root.EventUpgrade = (function() {
|
|
|
29265
29331
|
message.complimentary = reader.bool();
|
|
29266
29332
|
break;
|
|
29267
29333
|
case 7:
|
|
29334
|
+
message.complimentaryWith = reader.string();
|
|
29335
|
+
break;
|
|
29336
|
+
case 8:
|
|
29337
|
+
message.complimentaryQty = reader.int32();
|
|
29338
|
+
break;
|
|
29339
|
+
case 9:
|
|
29268
29340
|
if (!(message.ticketTypeIds && message.ticketTypeIds.length))
|
|
29269
29341
|
message.ticketTypeIds = [];
|
|
29270
29342
|
message.ticketTypeIds.push(reader.string());
|
|
29271
29343
|
break;
|
|
29272
|
-
case
|
|
29344
|
+
case 10:
|
|
29273
29345
|
message.imageUrl = reader.string();
|
|
29274
29346
|
break;
|
|
29275
|
-
case
|
|
29347
|
+
case 11:
|
|
29276
29348
|
message.description = reader.string();
|
|
29277
29349
|
break;
|
|
29278
|
-
case
|
|
29350
|
+
case 12:
|
|
29279
29351
|
message.visible = reader.bool();
|
|
29280
29352
|
break;
|
|
29281
29353
|
default:
|
|
@@ -29334,6 +29406,12 @@ $root.EventUpgrade = (function() {
|
|
|
29334
29406
|
if (message.complimentary != null && message.hasOwnProperty("complimentary"))
|
|
29335
29407
|
if (typeof message.complimentary !== "boolean")
|
|
29336
29408
|
return "complimentary: boolean expected";
|
|
29409
|
+
if (message.complimentaryWith != null && message.hasOwnProperty("complimentaryWith"))
|
|
29410
|
+
if (!$util.isString(message.complimentaryWith))
|
|
29411
|
+
return "complimentaryWith: string expected";
|
|
29412
|
+
if (message.complimentaryQty != null && message.hasOwnProperty("complimentaryQty"))
|
|
29413
|
+
if (!$util.isInteger(message.complimentaryQty))
|
|
29414
|
+
return "complimentaryQty: integer expected";
|
|
29337
29415
|
if (message.ticketTypeIds != null && message.hasOwnProperty("ticketTypeIds")) {
|
|
29338
29416
|
if (!Array.isArray(message.ticketTypeIds))
|
|
29339
29417
|
return "ticketTypeIds: array expected";
|
|
@@ -29379,6 +29457,10 @@ $root.EventUpgrade = (function() {
|
|
|
29379
29457
|
message.purchaseLimit = object.purchaseLimit | 0;
|
|
29380
29458
|
if (object.complimentary != null)
|
|
29381
29459
|
message.complimentary = Boolean(object.complimentary);
|
|
29460
|
+
if (object.complimentaryWith != null)
|
|
29461
|
+
message.complimentaryWith = String(object.complimentaryWith);
|
|
29462
|
+
if (object.complimentaryQty != null)
|
|
29463
|
+
message.complimentaryQty = object.complimentaryQty | 0;
|
|
29382
29464
|
if (object.ticketTypeIds) {
|
|
29383
29465
|
if (!Array.isArray(object.ticketTypeIds))
|
|
29384
29466
|
throw TypeError(".EventUpgrade.ticketTypeIds: array expected");
|
|
@@ -29418,6 +29500,8 @@ $root.EventUpgrade = (function() {
|
|
|
29418
29500
|
object.remainingQty = 0;
|
|
29419
29501
|
object.purchaseLimit = 0;
|
|
29420
29502
|
object.complimentary = false;
|
|
29503
|
+
object.complimentaryWith = "";
|
|
29504
|
+
object.complimentaryQty = 0;
|
|
29421
29505
|
object.imageUrl = "";
|
|
29422
29506
|
object.description = "";
|
|
29423
29507
|
object.visible = false;
|
|
@@ -29436,6 +29520,10 @@ $root.EventUpgrade = (function() {
|
|
|
29436
29520
|
object.purchaseLimit = message.purchaseLimit;
|
|
29437
29521
|
if (message.complimentary != null && message.hasOwnProperty("complimentary"))
|
|
29438
29522
|
object.complimentary = message.complimentary;
|
|
29523
|
+
if (message.complimentaryWith != null && message.hasOwnProperty("complimentaryWith"))
|
|
29524
|
+
object.complimentaryWith = message.complimentaryWith;
|
|
29525
|
+
if (message.complimentaryQty != null && message.hasOwnProperty("complimentaryQty"))
|
|
29526
|
+
object.complimentaryQty = message.complimentaryQty;
|
|
29439
29527
|
if (message.ticketTypeIds && message.ticketTypeIds.length) {
|
|
29440
29528
|
object.ticketTypeIds = [];
|
|
29441
29529
|
for (var j = 0; j < message.ticketTypeIds.length; ++j)
|
|
@@ -29478,6 +29566,11 @@ $root.EventPromotion = (function() {
|
|
|
29478
29566
|
* @property {Array.<string>|null} [ticketTypeIds] EventPromotion ticketTypeIds
|
|
29479
29567
|
* @property {Array.<string>|null} [upgradeIds] EventPromotion upgradeIds
|
|
29480
29568
|
* @property {boolean|null} [active] EventPromotion active
|
|
29569
|
+
* @property {number|null} [startsAt] EventPromotion startsAt
|
|
29570
|
+
* @property {number|null} [endsAt] EventPromotion endsAt
|
|
29571
|
+
* @property {number|null} [useLimit] EventPromotion useLimit
|
|
29572
|
+
* @property {string|null} [discountType] EventPromotion discountType
|
|
29573
|
+
* @property {number|null} [discountValue] EventPromotion discountValue
|
|
29481
29574
|
*/
|
|
29482
29575
|
|
|
29483
29576
|
/**
|
|
@@ -29561,6 +29654,46 @@ $root.EventPromotion = (function() {
|
|
|
29561
29654
|
*/
|
|
29562
29655
|
EventPromotion.prototype.active = false;
|
|
29563
29656
|
|
|
29657
|
+
/**
|
|
29658
|
+
* EventPromotion startsAt.
|
|
29659
|
+
* @member {number} startsAt
|
|
29660
|
+
* @memberof EventPromotion
|
|
29661
|
+
* @instance
|
|
29662
|
+
*/
|
|
29663
|
+
EventPromotion.prototype.startsAt = 0;
|
|
29664
|
+
|
|
29665
|
+
/**
|
|
29666
|
+
* EventPromotion endsAt.
|
|
29667
|
+
* @member {number} endsAt
|
|
29668
|
+
* @memberof EventPromotion
|
|
29669
|
+
* @instance
|
|
29670
|
+
*/
|
|
29671
|
+
EventPromotion.prototype.endsAt = 0;
|
|
29672
|
+
|
|
29673
|
+
/**
|
|
29674
|
+
* EventPromotion useLimit.
|
|
29675
|
+
* @member {number} useLimit
|
|
29676
|
+
* @memberof EventPromotion
|
|
29677
|
+
* @instance
|
|
29678
|
+
*/
|
|
29679
|
+
EventPromotion.prototype.useLimit = 0;
|
|
29680
|
+
|
|
29681
|
+
/**
|
|
29682
|
+
* EventPromotion discountType.
|
|
29683
|
+
* @member {string} discountType
|
|
29684
|
+
* @memberof EventPromotion
|
|
29685
|
+
* @instance
|
|
29686
|
+
*/
|
|
29687
|
+
EventPromotion.prototype.discountType = "";
|
|
29688
|
+
|
|
29689
|
+
/**
|
|
29690
|
+
* EventPromotion discountValue.
|
|
29691
|
+
* @member {number} discountValue
|
|
29692
|
+
* @memberof EventPromotion
|
|
29693
|
+
* @instance
|
|
29694
|
+
*/
|
|
29695
|
+
EventPromotion.prototype.discountValue = 0;
|
|
29696
|
+
|
|
29564
29697
|
/**
|
|
29565
29698
|
* Creates a new EventPromotion instance using the specified properties.
|
|
29566
29699
|
* @function create
|
|
@@ -29603,6 +29736,16 @@ $root.EventPromotion = (function() {
|
|
|
29603
29736
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.upgradeIds[i]);
|
|
29604
29737
|
if (message.active != null && message.hasOwnProperty("active"))
|
|
29605
29738
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.active);
|
|
29739
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
29740
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.startsAt);
|
|
29741
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
29742
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.endsAt);
|
|
29743
|
+
if (message.useLimit != null && message.hasOwnProperty("useLimit"))
|
|
29744
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.useLimit);
|
|
29745
|
+
if (message.discountType != null && message.hasOwnProperty("discountType"))
|
|
29746
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.discountType);
|
|
29747
|
+
if (message.discountValue != null && message.hasOwnProperty("discountValue"))
|
|
29748
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.discountValue);
|
|
29606
29749
|
return writer;
|
|
29607
29750
|
};
|
|
29608
29751
|
|
|
@@ -29665,6 +29808,21 @@ $root.EventPromotion = (function() {
|
|
|
29665
29808
|
case 7:
|
|
29666
29809
|
message.active = reader.bool();
|
|
29667
29810
|
break;
|
|
29811
|
+
case 8:
|
|
29812
|
+
message.startsAt = reader.int32();
|
|
29813
|
+
break;
|
|
29814
|
+
case 9:
|
|
29815
|
+
message.endsAt = reader.int32();
|
|
29816
|
+
break;
|
|
29817
|
+
case 10:
|
|
29818
|
+
message.useLimit = reader.int32();
|
|
29819
|
+
break;
|
|
29820
|
+
case 11:
|
|
29821
|
+
message.discountType = reader.string();
|
|
29822
|
+
break;
|
|
29823
|
+
case 12:
|
|
29824
|
+
message.discountValue = reader.int32();
|
|
29825
|
+
break;
|
|
29668
29826
|
default:
|
|
29669
29827
|
reader.skipType(tag & 7);
|
|
29670
29828
|
break;
|
|
@@ -29732,6 +29890,21 @@ $root.EventPromotion = (function() {
|
|
|
29732
29890
|
if (message.active != null && message.hasOwnProperty("active"))
|
|
29733
29891
|
if (typeof message.active !== "boolean")
|
|
29734
29892
|
return "active: boolean expected";
|
|
29893
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
29894
|
+
if (!$util.isInteger(message.startsAt))
|
|
29895
|
+
return "startsAt: integer expected";
|
|
29896
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
29897
|
+
if (!$util.isInteger(message.endsAt))
|
|
29898
|
+
return "endsAt: integer expected";
|
|
29899
|
+
if (message.useLimit != null && message.hasOwnProperty("useLimit"))
|
|
29900
|
+
if (!$util.isInteger(message.useLimit))
|
|
29901
|
+
return "useLimit: integer expected";
|
|
29902
|
+
if (message.discountType != null && message.hasOwnProperty("discountType"))
|
|
29903
|
+
if (!$util.isString(message.discountType))
|
|
29904
|
+
return "discountType: string expected";
|
|
29905
|
+
if (message.discountValue != null && message.hasOwnProperty("discountValue"))
|
|
29906
|
+
if (!$util.isInteger(message.discountValue))
|
|
29907
|
+
return "discountValue: integer expected";
|
|
29735
29908
|
return null;
|
|
29736
29909
|
};
|
|
29737
29910
|
|
|
@@ -29773,6 +29946,16 @@ $root.EventPromotion = (function() {
|
|
|
29773
29946
|
}
|
|
29774
29947
|
if (object.active != null)
|
|
29775
29948
|
message.active = Boolean(object.active);
|
|
29949
|
+
if (object.startsAt != null)
|
|
29950
|
+
message.startsAt = object.startsAt | 0;
|
|
29951
|
+
if (object.endsAt != null)
|
|
29952
|
+
message.endsAt = object.endsAt | 0;
|
|
29953
|
+
if (object.useLimit != null)
|
|
29954
|
+
message.useLimit = object.useLimit | 0;
|
|
29955
|
+
if (object.discountType != null)
|
|
29956
|
+
message.discountType = String(object.discountType);
|
|
29957
|
+
if (object.discountValue != null)
|
|
29958
|
+
message.discountValue = object.discountValue | 0;
|
|
29776
29959
|
return message;
|
|
29777
29960
|
};
|
|
29778
29961
|
|
|
@@ -29800,6 +29983,11 @@ $root.EventPromotion = (function() {
|
|
|
29800
29983
|
object.remainingQty = 0;
|
|
29801
29984
|
object.totalQty = 0;
|
|
29802
29985
|
object.active = false;
|
|
29986
|
+
object.startsAt = 0;
|
|
29987
|
+
object.endsAt = 0;
|
|
29988
|
+
object.useLimit = 0;
|
|
29989
|
+
object.discountType = "";
|
|
29990
|
+
object.discountValue = 0;
|
|
29803
29991
|
}
|
|
29804
29992
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
29805
29993
|
object._id = message._id;
|
|
@@ -29823,6 +30011,16 @@ $root.EventPromotion = (function() {
|
|
|
29823
30011
|
}
|
|
29824
30012
|
if (message.active != null && message.hasOwnProperty("active"))
|
|
29825
30013
|
object.active = message.active;
|
|
30014
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
30015
|
+
object.startsAt = message.startsAt;
|
|
30016
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
30017
|
+
object.endsAt = message.endsAt;
|
|
30018
|
+
if (message.useLimit != null && message.hasOwnProperty("useLimit"))
|
|
30019
|
+
object.useLimit = message.useLimit;
|
|
30020
|
+
if (message.discountType != null && message.hasOwnProperty("discountType"))
|
|
30021
|
+
object.discountType = message.discountType;
|
|
30022
|
+
if (message.discountValue != null && message.hasOwnProperty("discountValue"))
|
|
30023
|
+
object.discountValue = message.discountValue;
|
|
29826
30024
|
return object;
|
|
29827
30025
|
};
|
|
29828
30026
|
|
|
@@ -34,5 +34,9 @@ declare const _default: {
|
|
|
34
34
|
remainingUpgradeQty(event: any, upgradeId?: string | null): number;
|
|
35
35
|
remainingQtyByUpgrades(event: any): object;
|
|
36
36
|
purchaseLimitByUpgrades(event: any): object;
|
|
37
|
+
/****************************************************************************************
|
|
38
|
+
Promotion
|
|
39
|
+
****************************************************************************************/
|
|
40
|
+
promotion(event: any, promotionId: any): any;
|
|
37
41
|
};
|
|
38
42
|
export default _default;
|