@sellout/models 0.0.373 → 0.0.377
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventsListOptimized.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/eventsListOptimized.query.ts"],"names":[],"mappings":";;;;;AAAA,2CAAmC;AACnC,iFAAgD;AAEhD,MAAM,KAAK,GAAG,IAAA,YAAG,EAAA
|
|
1
|
+
{"version":3,"file":"eventsListOptimized.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/eventsListOptimized.query.ts"],"names":[],"mappings":";;;;;AAAA,2CAAmC;AACnC,iFAAgD;AAEhD,MAAM,KAAK,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDV,wBAAK,CAAC,SAAS,CAAC,WAAW;CACjC,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
package/.dist/sellout-proto.js
CHANGED
|
@@ -90574,6 +90574,7 @@ $root.PublicEventDetails = (function() {
|
|
|
90574
90574
|
* @property {number|null} [remainingQty] PublicEventDetails remainingQty
|
|
90575
90575
|
* @property {string|null} [stub] PublicEventDetails stub
|
|
90576
90576
|
* @property {number|null} [highestPrice] PublicEventDetails highestPrice
|
|
90577
|
+
* @property {Array.<IPublicTicketType>|null} [ticketTypes] PublicEventDetails ticketTypes
|
|
90577
90578
|
*/
|
|
90578
90579
|
|
|
90579
90580
|
/**
|
|
@@ -90586,6 +90587,7 @@ $root.PublicEventDetails = (function() {
|
|
|
90586
90587
|
*/
|
|
90587
90588
|
function PublicEventDetails(properties) {
|
|
90588
90589
|
this.performances = [];
|
|
90590
|
+
this.ticketTypes = [];
|
|
90589
90591
|
if (properties)
|
|
90590
90592
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
90591
90593
|
if (properties[keys[i]] != null)
|
|
@@ -90832,6 +90834,14 @@ $root.PublicEventDetails = (function() {
|
|
|
90832
90834
|
*/
|
|
90833
90835
|
PublicEventDetails.prototype.highestPrice = 0;
|
|
90834
90836
|
|
|
90837
|
+
/**
|
|
90838
|
+
* PublicEventDetails ticketTypes.
|
|
90839
|
+
* @member {Array.<IPublicTicketType>} ticketTypes
|
|
90840
|
+
* @memberof PublicEventDetails
|
|
90841
|
+
* @instance
|
|
90842
|
+
*/
|
|
90843
|
+
PublicEventDetails.prototype.ticketTypes = $util.emptyArray;
|
|
90844
|
+
|
|
90835
90845
|
/**
|
|
90836
90846
|
* Creates a new PublicEventDetails instance using the specified properties.
|
|
90837
90847
|
* @function create
|
|
@@ -90917,6 +90927,9 @@ $root.PublicEventDetails = (function() {
|
|
|
90917
90927
|
writer.uint32(/* id 29, wireType 2 =*/234).string(message.stub);
|
|
90918
90928
|
if (message.highestPrice != null && Object.hasOwnProperty.call(message, "highestPrice"))
|
|
90919
90929
|
writer.uint32(/* id 30, wireType 0 =*/240).int32(message.highestPrice);
|
|
90930
|
+
if (message.ticketTypes != null && message.ticketTypes.length)
|
|
90931
|
+
for (var i = 0; i < message.ticketTypes.length; ++i)
|
|
90932
|
+
$root.PublicTicketType.encode(message.ticketTypes[i], writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
|
|
90920
90933
|
return writer;
|
|
90921
90934
|
};
|
|
90922
90935
|
|
|
@@ -91043,6 +91056,11 @@ $root.PublicEventDetails = (function() {
|
|
|
91043
91056
|
case 30:
|
|
91044
91057
|
message.highestPrice = reader.int32();
|
|
91045
91058
|
break;
|
|
91059
|
+
case 31:
|
|
91060
|
+
if (!(message.ticketTypes && message.ticketTypes.length))
|
|
91061
|
+
message.ticketTypes = [];
|
|
91062
|
+
message.ticketTypes.push($root.PublicTicketType.decode(reader, reader.uint32()));
|
|
91063
|
+
break;
|
|
91046
91064
|
default:
|
|
91047
91065
|
reader.skipType(tag & 7);
|
|
91048
91066
|
break;
|
|
@@ -91184,6 +91202,15 @@ $root.PublicEventDetails = (function() {
|
|
|
91184
91202
|
if (message.highestPrice != null && message.hasOwnProperty("highestPrice"))
|
|
91185
91203
|
if (!$util.isInteger(message.highestPrice))
|
|
91186
91204
|
return "highestPrice: integer expected";
|
|
91205
|
+
if (message.ticketTypes != null && message.hasOwnProperty("ticketTypes")) {
|
|
91206
|
+
if (!Array.isArray(message.ticketTypes))
|
|
91207
|
+
return "ticketTypes: array expected";
|
|
91208
|
+
for (var i = 0; i < message.ticketTypes.length; ++i) {
|
|
91209
|
+
var error = $root.PublicTicketType.verify(message.ticketTypes[i]);
|
|
91210
|
+
if (error)
|
|
91211
|
+
return "ticketTypes." + error;
|
|
91212
|
+
}
|
|
91213
|
+
}
|
|
91187
91214
|
return null;
|
|
91188
91215
|
};
|
|
91189
91216
|
|
|
@@ -91282,6 +91309,16 @@ $root.PublicEventDetails = (function() {
|
|
|
91282
91309
|
message.stub = String(object.stub);
|
|
91283
91310
|
if (object.highestPrice != null)
|
|
91284
91311
|
message.highestPrice = object.highestPrice | 0;
|
|
91312
|
+
if (object.ticketTypes) {
|
|
91313
|
+
if (!Array.isArray(object.ticketTypes))
|
|
91314
|
+
throw TypeError(".PublicEventDetails.ticketTypes: array expected");
|
|
91315
|
+
message.ticketTypes = [];
|
|
91316
|
+
for (var i = 0; i < object.ticketTypes.length; ++i) {
|
|
91317
|
+
if (typeof object.ticketTypes[i] !== "object")
|
|
91318
|
+
throw TypeError(".PublicEventDetails.ticketTypes: object expected");
|
|
91319
|
+
message.ticketTypes[i] = $root.PublicTicketType.fromObject(object.ticketTypes[i]);
|
|
91320
|
+
}
|
|
91321
|
+
}
|
|
91285
91322
|
return message;
|
|
91286
91323
|
};
|
|
91287
91324
|
|
|
@@ -91298,8 +91335,10 @@ $root.PublicEventDetails = (function() {
|
|
|
91298
91335
|
if (!options)
|
|
91299
91336
|
options = {};
|
|
91300
91337
|
var object = {};
|
|
91301
|
-
if (options.arrays || options.defaults)
|
|
91338
|
+
if (options.arrays || options.defaults) {
|
|
91302
91339
|
object.performances = [];
|
|
91340
|
+
object.ticketTypes = [];
|
|
91341
|
+
}
|
|
91303
91342
|
if (options.defaults) {
|
|
91304
91343
|
object._id = "";
|
|
91305
91344
|
object.orgId = "";
|
|
@@ -91394,6 +91433,11 @@ $root.PublicEventDetails = (function() {
|
|
|
91394
91433
|
object.stub = message.stub;
|
|
91395
91434
|
if (message.highestPrice != null && message.hasOwnProperty("highestPrice"))
|
|
91396
91435
|
object.highestPrice = message.highestPrice;
|
|
91436
|
+
if (message.ticketTypes && message.ticketTypes.length) {
|
|
91437
|
+
object.ticketTypes = [];
|
|
91438
|
+
for (var j = 0; j < message.ticketTypes.length; ++j)
|
|
91439
|
+
object.ticketTypes[j] = $root.PublicTicketType.toObject(message.ticketTypes[j], options);
|
|
91440
|
+
}
|
|
91397
91441
|
return object;
|
|
91398
91442
|
};
|
|
91399
91443
|
|
|
@@ -91411,6 +91455,624 @@ $root.PublicEventDetails = (function() {
|
|
|
91411
91455
|
return PublicEventDetails;
|
|
91412
91456
|
})();
|
|
91413
91457
|
|
|
91458
|
+
$root.PublicTicketType = (function() {
|
|
91459
|
+
|
|
91460
|
+
/**
|
|
91461
|
+
* Properties of a PublicTicketType.
|
|
91462
|
+
* @exports IPublicTicketType
|
|
91463
|
+
* @interface IPublicTicketType
|
|
91464
|
+
* @property {string|null} [_id] PublicTicketType _id
|
|
91465
|
+
* @property {string|null} [name] PublicTicketType name
|
|
91466
|
+
* @property {number|null} [remainingQty] PublicTicketType remainingQty
|
|
91467
|
+
* @property {Array.<IPublicTicketTier>|null} [tiers] PublicTicketType tiers
|
|
91468
|
+
* @property {boolean|null} [visible] PublicTicketType visible
|
|
91469
|
+
*/
|
|
91470
|
+
|
|
91471
|
+
/**
|
|
91472
|
+
* Constructs a new PublicTicketType.
|
|
91473
|
+
* @exports PublicTicketType
|
|
91474
|
+
* @classdesc Represents a PublicTicketType.
|
|
91475
|
+
* @implements IPublicTicketType
|
|
91476
|
+
* @constructor
|
|
91477
|
+
* @param {IPublicTicketType=} [properties] Properties to set
|
|
91478
|
+
*/
|
|
91479
|
+
function PublicTicketType(properties) {
|
|
91480
|
+
this.tiers = [];
|
|
91481
|
+
if (properties)
|
|
91482
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91483
|
+
if (properties[keys[i]] != null)
|
|
91484
|
+
this[keys[i]] = properties[keys[i]];
|
|
91485
|
+
}
|
|
91486
|
+
|
|
91487
|
+
/**
|
|
91488
|
+
* PublicTicketType _id.
|
|
91489
|
+
* @member {string} _id
|
|
91490
|
+
* @memberof PublicTicketType
|
|
91491
|
+
* @instance
|
|
91492
|
+
*/
|
|
91493
|
+
PublicTicketType.prototype._id = "";
|
|
91494
|
+
|
|
91495
|
+
/**
|
|
91496
|
+
* PublicTicketType name.
|
|
91497
|
+
* @member {string} name
|
|
91498
|
+
* @memberof PublicTicketType
|
|
91499
|
+
* @instance
|
|
91500
|
+
*/
|
|
91501
|
+
PublicTicketType.prototype.name = "";
|
|
91502
|
+
|
|
91503
|
+
/**
|
|
91504
|
+
* PublicTicketType remainingQty.
|
|
91505
|
+
* @member {number} remainingQty
|
|
91506
|
+
* @memberof PublicTicketType
|
|
91507
|
+
* @instance
|
|
91508
|
+
*/
|
|
91509
|
+
PublicTicketType.prototype.remainingQty = 0;
|
|
91510
|
+
|
|
91511
|
+
/**
|
|
91512
|
+
* PublicTicketType tiers.
|
|
91513
|
+
* @member {Array.<IPublicTicketTier>} tiers
|
|
91514
|
+
* @memberof PublicTicketType
|
|
91515
|
+
* @instance
|
|
91516
|
+
*/
|
|
91517
|
+
PublicTicketType.prototype.tiers = $util.emptyArray;
|
|
91518
|
+
|
|
91519
|
+
/**
|
|
91520
|
+
* PublicTicketType visible.
|
|
91521
|
+
* @member {boolean} visible
|
|
91522
|
+
* @memberof PublicTicketType
|
|
91523
|
+
* @instance
|
|
91524
|
+
*/
|
|
91525
|
+
PublicTicketType.prototype.visible = false;
|
|
91526
|
+
|
|
91527
|
+
/**
|
|
91528
|
+
* Creates a new PublicTicketType instance using the specified properties.
|
|
91529
|
+
* @function create
|
|
91530
|
+
* @memberof PublicTicketType
|
|
91531
|
+
* @static
|
|
91532
|
+
* @param {IPublicTicketType=} [properties] Properties to set
|
|
91533
|
+
* @returns {PublicTicketType} PublicTicketType instance
|
|
91534
|
+
*/
|
|
91535
|
+
PublicTicketType.create = function create(properties) {
|
|
91536
|
+
return new PublicTicketType(properties);
|
|
91537
|
+
};
|
|
91538
|
+
|
|
91539
|
+
/**
|
|
91540
|
+
* Encodes the specified PublicTicketType message. Does not implicitly {@link PublicTicketType.verify|verify} messages.
|
|
91541
|
+
* @function encode
|
|
91542
|
+
* @memberof PublicTicketType
|
|
91543
|
+
* @static
|
|
91544
|
+
* @param {IPublicTicketType} message PublicTicketType message or plain object to encode
|
|
91545
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91546
|
+
* @returns {$protobuf.Writer} Writer
|
|
91547
|
+
*/
|
|
91548
|
+
PublicTicketType.encode = function encode(message, writer) {
|
|
91549
|
+
if (!writer)
|
|
91550
|
+
writer = $Writer.create();
|
|
91551
|
+
if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
|
|
91552
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message._id);
|
|
91553
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
91554
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
91555
|
+
if (message.remainingQty != null && Object.hasOwnProperty.call(message, "remainingQty"))
|
|
91556
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.remainingQty);
|
|
91557
|
+
if (message.tiers != null && message.tiers.length)
|
|
91558
|
+
for (var i = 0; i < message.tiers.length; ++i)
|
|
91559
|
+
$root.PublicTicketTier.encode(message.tiers[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
91560
|
+
if (message.visible != null && Object.hasOwnProperty.call(message, "visible"))
|
|
91561
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.visible);
|
|
91562
|
+
return writer;
|
|
91563
|
+
};
|
|
91564
|
+
|
|
91565
|
+
/**
|
|
91566
|
+
* Encodes the specified PublicTicketType message, length delimited. Does not implicitly {@link PublicTicketType.verify|verify} messages.
|
|
91567
|
+
* @function encodeDelimited
|
|
91568
|
+
* @memberof PublicTicketType
|
|
91569
|
+
* @static
|
|
91570
|
+
* @param {IPublicTicketType} message PublicTicketType message or plain object to encode
|
|
91571
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91572
|
+
* @returns {$protobuf.Writer} Writer
|
|
91573
|
+
*/
|
|
91574
|
+
PublicTicketType.encodeDelimited = function encodeDelimited(message, writer) {
|
|
91575
|
+
return this.encode(message, writer).ldelim();
|
|
91576
|
+
};
|
|
91577
|
+
|
|
91578
|
+
/**
|
|
91579
|
+
* Decodes a PublicTicketType message from the specified reader or buffer.
|
|
91580
|
+
* @function decode
|
|
91581
|
+
* @memberof PublicTicketType
|
|
91582
|
+
* @static
|
|
91583
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91584
|
+
* @param {number} [length] Message length if known beforehand
|
|
91585
|
+
* @returns {PublicTicketType} PublicTicketType
|
|
91586
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91587
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91588
|
+
*/
|
|
91589
|
+
PublicTicketType.decode = function decode(reader, length) {
|
|
91590
|
+
if (!(reader instanceof $Reader))
|
|
91591
|
+
reader = $Reader.create(reader);
|
|
91592
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PublicTicketType();
|
|
91593
|
+
while (reader.pos < end) {
|
|
91594
|
+
var tag = reader.uint32();
|
|
91595
|
+
switch (tag >>> 3) {
|
|
91596
|
+
case 1:
|
|
91597
|
+
message._id = reader.string();
|
|
91598
|
+
break;
|
|
91599
|
+
case 2:
|
|
91600
|
+
message.name = reader.string();
|
|
91601
|
+
break;
|
|
91602
|
+
case 3:
|
|
91603
|
+
message.remainingQty = reader.int32();
|
|
91604
|
+
break;
|
|
91605
|
+
case 4:
|
|
91606
|
+
if (!(message.tiers && message.tiers.length))
|
|
91607
|
+
message.tiers = [];
|
|
91608
|
+
message.tiers.push($root.PublicTicketTier.decode(reader, reader.uint32()));
|
|
91609
|
+
break;
|
|
91610
|
+
case 5:
|
|
91611
|
+
message.visible = reader.bool();
|
|
91612
|
+
break;
|
|
91613
|
+
default:
|
|
91614
|
+
reader.skipType(tag & 7);
|
|
91615
|
+
break;
|
|
91616
|
+
}
|
|
91617
|
+
}
|
|
91618
|
+
return message;
|
|
91619
|
+
};
|
|
91620
|
+
|
|
91621
|
+
/**
|
|
91622
|
+
* Decodes a PublicTicketType message from the specified reader or buffer, length delimited.
|
|
91623
|
+
* @function decodeDelimited
|
|
91624
|
+
* @memberof PublicTicketType
|
|
91625
|
+
* @static
|
|
91626
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91627
|
+
* @returns {PublicTicketType} PublicTicketType
|
|
91628
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91629
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91630
|
+
*/
|
|
91631
|
+
PublicTicketType.decodeDelimited = function decodeDelimited(reader) {
|
|
91632
|
+
if (!(reader instanceof $Reader))
|
|
91633
|
+
reader = new $Reader(reader);
|
|
91634
|
+
return this.decode(reader, reader.uint32());
|
|
91635
|
+
};
|
|
91636
|
+
|
|
91637
|
+
/**
|
|
91638
|
+
* Verifies a PublicTicketType message.
|
|
91639
|
+
* @function verify
|
|
91640
|
+
* @memberof PublicTicketType
|
|
91641
|
+
* @static
|
|
91642
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
91643
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
91644
|
+
*/
|
|
91645
|
+
PublicTicketType.verify = function verify(message) {
|
|
91646
|
+
if (typeof message !== "object" || message === null)
|
|
91647
|
+
return "object expected";
|
|
91648
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
91649
|
+
if (!$util.isString(message._id))
|
|
91650
|
+
return "_id: string expected";
|
|
91651
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
91652
|
+
if (!$util.isString(message.name))
|
|
91653
|
+
return "name: string expected";
|
|
91654
|
+
if (message.remainingQty != null && message.hasOwnProperty("remainingQty"))
|
|
91655
|
+
if (!$util.isInteger(message.remainingQty))
|
|
91656
|
+
return "remainingQty: integer expected";
|
|
91657
|
+
if (message.tiers != null && message.hasOwnProperty("tiers")) {
|
|
91658
|
+
if (!Array.isArray(message.tiers))
|
|
91659
|
+
return "tiers: array expected";
|
|
91660
|
+
for (var i = 0; i < message.tiers.length; ++i) {
|
|
91661
|
+
var error = $root.PublicTicketTier.verify(message.tiers[i]);
|
|
91662
|
+
if (error)
|
|
91663
|
+
return "tiers." + error;
|
|
91664
|
+
}
|
|
91665
|
+
}
|
|
91666
|
+
if (message.visible != null && message.hasOwnProperty("visible"))
|
|
91667
|
+
if (typeof message.visible !== "boolean")
|
|
91668
|
+
return "visible: boolean expected";
|
|
91669
|
+
return null;
|
|
91670
|
+
};
|
|
91671
|
+
|
|
91672
|
+
/**
|
|
91673
|
+
* Creates a PublicTicketType message from a plain object. Also converts values to their respective internal types.
|
|
91674
|
+
* @function fromObject
|
|
91675
|
+
* @memberof PublicTicketType
|
|
91676
|
+
* @static
|
|
91677
|
+
* @param {Object.<string,*>} object Plain object
|
|
91678
|
+
* @returns {PublicTicketType} PublicTicketType
|
|
91679
|
+
*/
|
|
91680
|
+
PublicTicketType.fromObject = function fromObject(object) {
|
|
91681
|
+
if (object instanceof $root.PublicTicketType)
|
|
91682
|
+
return object;
|
|
91683
|
+
var message = new $root.PublicTicketType();
|
|
91684
|
+
if (object._id != null)
|
|
91685
|
+
message._id = String(object._id);
|
|
91686
|
+
if (object.name != null)
|
|
91687
|
+
message.name = String(object.name);
|
|
91688
|
+
if (object.remainingQty != null)
|
|
91689
|
+
message.remainingQty = object.remainingQty | 0;
|
|
91690
|
+
if (object.tiers) {
|
|
91691
|
+
if (!Array.isArray(object.tiers))
|
|
91692
|
+
throw TypeError(".PublicTicketType.tiers: array expected");
|
|
91693
|
+
message.tiers = [];
|
|
91694
|
+
for (var i = 0; i < object.tiers.length; ++i) {
|
|
91695
|
+
if (typeof object.tiers[i] !== "object")
|
|
91696
|
+
throw TypeError(".PublicTicketType.tiers: object expected");
|
|
91697
|
+
message.tiers[i] = $root.PublicTicketTier.fromObject(object.tiers[i]);
|
|
91698
|
+
}
|
|
91699
|
+
}
|
|
91700
|
+
if (object.visible != null)
|
|
91701
|
+
message.visible = Boolean(object.visible);
|
|
91702
|
+
return message;
|
|
91703
|
+
};
|
|
91704
|
+
|
|
91705
|
+
/**
|
|
91706
|
+
* Creates a plain object from a PublicTicketType message. Also converts values to other types if specified.
|
|
91707
|
+
* @function toObject
|
|
91708
|
+
* @memberof PublicTicketType
|
|
91709
|
+
* @static
|
|
91710
|
+
* @param {PublicTicketType} message PublicTicketType
|
|
91711
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
91712
|
+
* @returns {Object.<string,*>} Plain object
|
|
91713
|
+
*/
|
|
91714
|
+
PublicTicketType.toObject = function toObject(message, options) {
|
|
91715
|
+
if (!options)
|
|
91716
|
+
options = {};
|
|
91717
|
+
var object = {};
|
|
91718
|
+
if (options.arrays || options.defaults)
|
|
91719
|
+
object.tiers = [];
|
|
91720
|
+
if (options.defaults) {
|
|
91721
|
+
object._id = "";
|
|
91722
|
+
object.name = "";
|
|
91723
|
+
object.remainingQty = 0;
|
|
91724
|
+
object.visible = false;
|
|
91725
|
+
}
|
|
91726
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
91727
|
+
object._id = message._id;
|
|
91728
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
91729
|
+
object.name = message.name;
|
|
91730
|
+
if (message.remainingQty != null && message.hasOwnProperty("remainingQty"))
|
|
91731
|
+
object.remainingQty = message.remainingQty;
|
|
91732
|
+
if (message.tiers && message.tiers.length) {
|
|
91733
|
+
object.tiers = [];
|
|
91734
|
+
for (var j = 0; j < message.tiers.length; ++j)
|
|
91735
|
+
object.tiers[j] = $root.PublicTicketTier.toObject(message.tiers[j], options);
|
|
91736
|
+
}
|
|
91737
|
+
if (message.visible != null && message.hasOwnProperty("visible"))
|
|
91738
|
+
object.visible = message.visible;
|
|
91739
|
+
return object;
|
|
91740
|
+
};
|
|
91741
|
+
|
|
91742
|
+
/**
|
|
91743
|
+
* Converts this PublicTicketType to JSON.
|
|
91744
|
+
* @function toJSON
|
|
91745
|
+
* @memberof PublicTicketType
|
|
91746
|
+
* @instance
|
|
91747
|
+
* @returns {Object.<string,*>} JSON object
|
|
91748
|
+
*/
|
|
91749
|
+
PublicTicketType.prototype.toJSON = function toJSON() {
|
|
91750
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
91751
|
+
};
|
|
91752
|
+
|
|
91753
|
+
return PublicTicketType;
|
|
91754
|
+
})();
|
|
91755
|
+
|
|
91756
|
+
$root.PublicTicketTier = (function() {
|
|
91757
|
+
|
|
91758
|
+
/**
|
|
91759
|
+
* Properties of a PublicTicketTier.
|
|
91760
|
+
* @exports IPublicTicketTier
|
|
91761
|
+
* @interface IPublicTicketTier
|
|
91762
|
+
* @property {string|null} [_id] PublicTicketTier _id
|
|
91763
|
+
* @property {string|null} [name] PublicTicketTier name
|
|
91764
|
+
* @property {number|null} [price] PublicTicketTier price
|
|
91765
|
+
* @property {number|null} [startsAt] PublicTicketTier startsAt
|
|
91766
|
+
* @property {number|null} [endsAt] PublicTicketTier endsAt
|
|
91767
|
+
* @property {boolean|null} [isActive] PublicTicketTier isActive
|
|
91768
|
+
* @property {number|null} [finalPriceWithfees] PublicTicketTier finalPriceWithfees
|
|
91769
|
+
*/
|
|
91770
|
+
|
|
91771
|
+
/**
|
|
91772
|
+
* Constructs a new PublicTicketTier.
|
|
91773
|
+
* @exports PublicTicketTier
|
|
91774
|
+
* @classdesc Represents a PublicTicketTier.
|
|
91775
|
+
* @implements IPublicTicketTier
|
|
91776
|
+
* @constructor
|
|
91777
|
+
* @param {IPublicTicketTier=} [properties] Properties to set
|
|
91778
|
+
*/
|
|
91779
|
+
function PublicTicketTier(properties) {
|
|
91780
|
+
if (properties)
|
|
91781
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91782
|
+
if (properties[keys[i]] != null)
|
|
91783
|
+
this[keys[i]] = properties[keys[i]];
|
|
91784
|
+
}
|
|
91785
|
+
|
|
91786
|
+
/**
|
|
91787
|
+
* PublicTicketTier _id.
|
|
91788
|
+
* @member {string} _id
|
|
91789
|
+
* @memberof PublicTicketTier
|
|
91790
|
+
* @instance
|
|
91791
|
+
*/
|
|
91792
|
+
PublicTicketTier.prototype._id = "";
|
|
91793
|
+
|
|
91794
|
+
/**
|
|
91795
|
+
* PublicTicketTier name.
|
|
91796
|
+
* @member {string} name
|
|
91797
|
+
* @memberof PublicTicketTier
|
|
91798
|
+
* @instance
|
|
91799
|
+
*/
|
|
91800
|
+
PublicTicketTier.prototype.name = "";
|
|
91801
|
+
|
|
91802
|
+
/**
|
|
91803
|
+
* PublicTicketTier price.
|
|
91804
|
+
* @member {number} price
|
|
91805
|
+
* @memberof PublicTicketTier
|
|
91806
|
+
* @instance
|
|
91807
|
+
*/
|
|
91808
|
+
PublicTicketTier.prototype.price = 0;
|
|
91809
|
+
|
|
91810
|
+
/**
|
|
91811
|
+
* PublicTicketTier startsAt.
|
|
91812
|
+
* @member {number} startsAt
|
|
91813
|
+
* @memberof PublicTicketTier
|
|
91814
|
+
* @instance
|
|
91815
|
+
*/
|
|
91816
|
+
PublicTicketTier.prototype.startsAt = 0;
|
|
91817
|
+
|
|
91818
|
+
/**
|
|
91819
|
+
* PublicTicketTier endsAt.
|
|
91820
|
+
* @member {number} endsAt
|
|
91821
|
+
* @memberof PublicTicketTier
|
|
91822
|
+
* @instance
|
|
91823
|
+
*/
|
|
91824
|
+
PublicTicketTier.prototype.endsAt = 0;
|
|
91825
|
+
|
|
91826
|
+
/**
|
|
91827
|
+
* PublicTicketTier isActive.
|
|
91828
|
+
* @member {boolean} isActive
|
|
91829
|
+
* @memberof PublicTicketTier
|
|
91830
|
+
* @instance
|
|
91831
|
+
*/
|
|
91832
|
+
PublicTicketTier.prototype.isActive = false;
|
|
91833
|
+
|
|
91834
|
+
/**
|
|
91835
|
+
* PublicTicketTier finalPriceWithfees.
|
|
91836
|
+
* @member {number} finalPriceWithfees
|
|
91837
|
+
* @memberof PublicTicketTier
|
|
91838
|
+
* @instance
|
|
91839
|
+
*/
|
|
91840
|
+
PublicTicketTier.prototype.finalPriceWithfees = 0;
|
|
91841
|
+
|
|
91842
|
+
/**
|
|
91843
|
+
* Creates a new PublicTicketTier instance using the specified properties.
|
|
91844
|
+
* @function create
|
|
91845
|
+
* @memberof PublicTicketTier
|
|
91846
|
+
* @static
|
|
91847
|
+
* @param {IPublicTicketTier=} [properties] Properties to set
|
|
91848
|
+
* @returns {PublicTicketTier} PublicTicketTier instance
|
|
91849
|
+
*/
|
|
91850
|
+
PublicTicketTier.create = function create(properties) {
|
|
91851
|
+
return new PublicTicketTier(properties);
|
|
91852
|
+
};
|
|
91853
|
+
|
|
91854
|
+
/**
|
|
91855
|
+
* Encodes the specified PublicTicketTier message. Does not implicitly {@link PublicTicketTier.verify|verify} messages.
|
|
91856
|
+
* @function encode
|
|
91857
|
+
* @memberof PublicTicketTier
|
|
91858
|
+
* @static
|
|
91859
|
+
* @param {IPublicTicketTier} message PublicTicketTier message or plain object to encode
|
|
91860
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91861
|
+
* @returns {$protobuf.Writer} Writer
|
|
91862
|
+
*/
|
|
91863
|
+
PublicTicketTier.encode = function encode(message, writer) {
|
|
91864
|
+
if (!writer)
|
|
91865
|
+
writer = $Writer.create();
|
|
91866
|
+
if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
|
|
91867
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message._id);
|
|
91868
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
91869
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
91870
|
+
if (message.price != null && Object.hasOwnProperty.call(message, "price"))
|
|
91871
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.price);
|
|
91872
|
+
if (message.startsAt != null && Object.hasOwnProperty.call(message, "startsAt"))
|
|
91873
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.startsAt);
|
|
91874
|
+
if (message.endsAt != null && Object.hasOwnProperty.call(message, "endsAt"))
|
|
91875
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.endsAt);
|
|
91876
|
+
if (message.isActive != null && Object.hasOwnProperty.call(message, "isActive"))
|
|
91877
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isActive);
|
|
91878
|
+
if (message.finalPriceWithfees != null && Object.hasOwnProperty.call(message, "finalPriceWithfees"))
|
|
91879
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.finalPriceWithfees);
|
|
91880
|
+
return writer;
|
|
91881
|
+
};
|
|
91882
|
+
|
|
91883
|
+
/**
|
|
91884
|
+
* Encodes the specified PublicTicketTier message, length delimited. Does not implicitly {@link PublicTicketTier.verify|verify} messages.
|
|
91885
|
+
* @function encodeDelimited
|
|
91886
|
+
* @memberof PublicTicketTier
|
|
91887
|
+
* @static
|
|
91888
|
+
* @param {IPublicTicketTier} message PublicTicketTier message or plain object to encode
|
|
91889
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91890
|
+
* @returns {$protobuf.Writer} Writer
|
|
91891
|
+
*/
|
|
91892
|
+
PublicTicketTier.encodeDelimited = function encodeDelimited(message, writer) {
|
|
91893
|
+
return this.encode(message, writer).ldelim();
|
|
91894
|
+
};
|
|
91895
|
+
|
|
91896
|
+
/**
|
|
91897
|
+
* Decodes a PublicTicketTier message from the specified reader or buffer.
|
|
91898
|
+
* @function decode
|
|
91899
|
+
* @memberof PublicTicketTier
|
|
91900
|
+
* @static
|
|
91901
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91902
|
+
* @param {number} [length] Message length if known beforehand
|
|
91903
|
+
* @returns {PublicTicketTier} PublicTicketTier
|
|
91904
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91905
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91906
|
+
*/
|
|
91907
|
+
PublicTicketTier.decode = function decode(reader, length) {
|
|
91908
|
+
if (!(reader instanceof $Reader))
|
|
91909
|
+
reader = $Reader.create(reader);
|
|
91910
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PublicTicketTier();
|
|
91911
|
+
while (reader.pos < end) {
|
|
91912
|
+
var tag = reader.uint32();
|
|
91913
|
+
switch (tag >>> 3) {
|
|
91914
|
+
case 1:
|
|
91915
|
+
message._id = reader.string();
|
|
91916
|
+
break;
|
|
91917
|
+
case 2:
|
|
91918
|
+
message.name = reader.string();
|
|
91919
|
+
break;
|
|
91920
|
+
case 3:
|
|
91921
|
+
message.price = reader.int32();
|
|
91922
|
+
break;
|
|
91923
|
+
case 4:
|
|
91924
|
+
message.startsAt = reader.int32();
|
|
91925
|
+
break;
|
|
91926
|
+
case 5:
|
|
91927
|
+
message.endsAt = reader.int32();
|
|
91928
|
+
break;
|
|
91929
|
+
case 8:
|
|
91930
|
+
message.isActive = reader.bool();
|
|
91931
|
+
break;
|
|
91932
|
+
case 9:
|
|
91933
|
+
message.finalPriceWithfees = reader.int32();
|
|
91934
|
+
break;
|
|
91935
|
+
default:
|
|
91936
|
+
reader.skipType(tag & 7);
|
|
91937
|
+
break;
|
|
91938
|
+
}
|
|
91939
|
+
}
|
|
91940
|
+
return message;
|
|
91941
|
+
};
|
|
91942
|
+
|
|
91943
|
+
/**
|
|
91944
|
+
* Decodes a PublicTicketTier message from the specified reader or buffer, length delimited.
|
|
91945
|
+
* @function decodeDelimited
|
|
91946
|
+
* @memberof PublicTicketTier
|
|
91947
|
+
* @static
|
|
91948
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91949
|
+
* @returns {PublicTicketTier} PublicTicketTier
|
|
91950
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91951
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91952
|
+
*/
|
|
91953
|
+
PublicTicketTier.decodeDelimited = function decodeDelimited(reader) {
|
|
91954
|
+
if (!(reader instanceof $Reader))
|
|
91955
|
+
reader = new $Reader(reader);
|
|
91956
|
+
return this.decode(reader, reader.uint32());
|
|
91957
|
+
};
|
|
91958
|
+
|
|
91959
|
+
/**
|
|
91960
|
+
* Verifies a PublicTicketTier message.
|
|
91961
|
+
* @function verify
|
|
91962
|
+
* @memberof PublicTicketTier
|
|
91963
|
+
* @static
|
|
91964
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
91965
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
91966
|
+
*/
|
|
91967
|
+
PublicTicketTier.verify = function verify(message) {
|
|
91968
|
+
if (typeof message !== "object" || message === null)
|
|
91969
|
+
return "object expected";
|
|
91970
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
91971
|
+
if (!$util.isString(message._id))
|
|
91972
|
+
return "_id: string expected";
|
|
91973
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
91974
|
+
if (!$util.isString(message.name))
|
|
91975
|
+
return "name: string expected";
|
|
91976
|
+
if (message.price != null && message.hasOwnProperty("price"))
|
|
91977
|
+
if (!$util.isInteger(message.price))
|
|
91978
|
+
return "price: integer expected";
|
|
91979
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
91980
|
+
if (!$util.isInteger(message.startsAt))
|
|
91981
|
+
return "startsAt: integer expected";
|
|
91982
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
91983
|
+
if (!$util.isInteger(message.endsAt))
|
|
91984
|
+
return "endsAt: integer expected";
|
|
91985
|
+
if (message.isActive != null && message.hasOwnProperty("isActive"))
|
|
91986
|
+
if (typeof message.isActive !== "boolean")
|
|
91987
|
+
return "isActive: boolean expected";
|
|
91988
|
+
if (message.finalPriceWithfees != null && message.hasOwnProperty("finalPriceWithfees"))
|
|
91989
|
+
if (!$util.isInteger(message.finalPriceWithfees))
|
|
91990
|
+
return "finalPriceWithfees: integer expected";
|
|
91991
|
+
return null;
|
|
91992
|
+
};
|
|
91993
|
+
|
|
91994
|
+
/**
|
|
91995
|
+
* Creates a PublicTicketTier message from a plain object. Also converts values to their respective internal types.
|
|
91996
|
+
* @function fromObject
|
|
91997
|
+
* @memberof PublicTicketTier
|
|
91998
|
+
* @static
|
|
91999
|
+
* @param {Object.<string,*>} object Plain object
|
|
92000
|
+
* @returns {PublicTicketTier} PublicTicketTier
|
|
92001
|
+
*/
|
|
92002
|
+
PublicTicketTier.fromObject = function fromObject(object) {
|
|
92003
|
+
if (object instanceof $root.PublicTicketTier)
|
|
92004
|
+
return object;
|
|
92005
|
+
var message = new $root.PublicTicketTier();
|
|
92006
|
+
if (object._id != null)
|
|
92007
|
+
message._id = String(object._id);
|
|
92008
|
+
if (object.name != null)
|
|
92009
|
+
message.name = String(object.name);
|
|
92010
|
+
if (object.price != null)
|
|
92011
|
+
message.price = object.price | 0;
|
|
92012
|
+
if (object.startsAt != null)
|
|
92013
|
+
message.startsAt = object.startsAt | 0;
|
|
92014
|
+
if (object.endsAt != null)
|
|
92015
|
+
message.endsAt = object.endsAt | 0;
|
|
92016
|
+
if (object.isActive != null)
|
|
92017
|
+
message.isActive = Boolean(object.isActive);
|
|
92018
|
+
if (object.finalPriceWithfees != null)
|
|
92019
|
+
message.finalPriceWithfees = object.finalPriceWithfees | 0;
|
|
92020
|
+
return message;
|
|
92021
|
+
};
|
|
92022
|
+
|
|
92023
|
+
/**
|
|
92024
|
+
* Creates a plain object from a PublicTicketTier message. Also converts values to other types if specified.
|
|
92025
|
+
* @function toObject
|
|
92026
|
+
* @memberof PublicTicketTier
|
|
92027
|
+
* @static
|
|
92028
|
+
* @param {PublicTicketTier} message PublicTicketTier
|
|
92029
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
92030
|
+
* @returns {Object.<string,*>} Plain object
|
|
92031
|
+
*/
|
|
92032
|
+
PublicTicketTier.toObject = function toObject(message, options) {
|
|
92033
|
+
if (!options)
|
|
92034
|
+
options = {};
|
|
92035
|
+
var object = {};
|
|
92036
|
+
if (options.defaults) {
|
|
92037
|
+
object._id = "";
|
|
92038
|
+
object.name = "";
|
|
92039
|
+
object.price = 0;
|
|
92040
|
+
object.startsAt = 0;
|
|
92041
|
+
object.endsAt = 0;
|
|
92042
|
+
object.isActive = false;
|
|
92043
|
+
object.finalPriceWithfees = 0;
|
|
92044
|
+
}
|
|
92045
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
92046
|
+
object._id = message._id;
|
|
92047
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
92048
|
+
object.name = message.name;
|
|
92049
|
+
if (message.price != null && message.hasOwnProperty("price"))
|
|
92050
|
+
object.price = message.price;
|
|
92051
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
92052
|
+
object.startsAt = message.startsAt;
|
|
92053
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
92054
|
+
object.endsAt = message.endsAt;
|
|
92055
|
+
if (message.isActive != null && message.hasOwnProperty("isActive"))
|
|
92056
|
+
object.isActive = message.isActive;
|
|
92057
|
+
if (message.finalPriceWithfees != null && message.hasOwnProperty("finalPriceWithfees"))
|
|
92058
|
+
object.finalPriceWithfees = message.finalPriceWithfees;
|
|
92059
|
+
return object;
|
|
92060
|
+
};
|
|
92061
|
+
|
|
92062
|
+
/**
|
|
92063
|
+
* Converts this PublicTicketTier to JSON.
|
|
92064
|
+
* @function toJSON
|
|
92065
|
+
* @memberof PublicTicketTier
|
|
92066
|
+
* @instance
|
|
92067
|
+
* @returns {Object.<string,*>} JSON object
|
|
92068
|
+
*/
|
|
92069
|
+
PublicTicketTier.prototype.toJSON = function toJSON() {
|
|
92070
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
92071
|
+
};
|
|
92072
|
+
|
|
92073
|
+
return PublicTicketTier;
|
|
92074
|
+
})();
|
|
92075
|
+
|
|
91414
92076
|
$root.OrganizationEvent = (function() {
|
|
91415
92077
|
|
|
91416
92078
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.377",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@apollo/client": "^3.9.6",
|
|
20
20
|
"@hapi/joi": "^17.1.1",
|
|
21
|
-
"@sellout/utils": "^0.0.
|
|
21
|
+
"@sellout/utils": "^0.0.377",
|
|
22
22
|
"@types/hapi__joi": "^16.0.1",
|
|
23
23
|
"@types/shortid": "^0.0.29",
|
|
24
24
|
"@types/zen-observable": "^0.8.7",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"protobufjs": "^6.11.2",
|
|
33
33
|
"typescript": "^4.9.5"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "5081a233deb6b4e73ab237904c95287b65f07e42"
|
|
36
36
|
}
|
package/src/proto/event.proto
CHANGED
|
@@ -127,6 +127,25 @@ message PublicEventDetails {
|
|
|
127
127
|
int32 remainingQty = 28;
|
|
128
128
|
string stub = 29;
|
|
129
129
|
int32 highestPrice = 30;
|
|
130
|
+
repeated PublicTicketType ticketTypes = 31;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
message PublicTicketType {
|
|
134
|
+
string _id = 1;
|
|
135
|
+
string name = 2;
|
|
136
|
+
int32 remainingQty = 3;
|
|
137
|
+
repeated PublicTicketTier tiers = 4;
|
|
138
|
+
bool visible = 5;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
message PublicTicketTier {
|
|
142
|
+
string _id = 1;
|
|
143
|
+
string name = 2;
|
|
144
|
+
int32 price = 3;
|
|
145
|
+
int32 startsAt = 4;
|
|
146
|
+
int32 endsAt = 5;
|
|
147
|
+
bool isActive = 8;
|
|
148
|
+
int32 finalPriceWithfees = 9;
|
|
130
149
|
}
|
|
131
150
|
|
|
132
151
|
message OrganizationEvent {
|