@sellout/models 0.0.226 → 0.0.230
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/sellout-proto.js +391 -0
- package/package.json +3 -3
- package/src/proto/event.proto +10 -0
- package/src/proto/order.proto +1 -0
- package/src/proto/stripe.proto +1 -0
package/.dist/sellout-proto.js
CHANGED
|
@@ -21699,6 +21699,7 @@ $root.CreateOrderPaymentIntentResponse = (function() {
|
|
|
21699
21699
|
* @property {Array.<IError>|null} [errors] CreateOrderPaymentIntentResponse errors
|
|
21700
21700
|
* @property {string|null} [paymentIntentId] CreateOrderPaymentIntentResponse paymentIntentId
|
|
21701
21701
|
* @property {string|null} [clientSecret] CreateOrderPaymentIntentResponse clientSecret
|
|
21702
|
+
* @property {string|null} [ephemeralKey] CreateOrderPaymentIntentResponse ephemeralKey
|
|
21702
21703
|
*/
|
|
21703
21704
|
|
|
21704
21705
|
/**
|
|
@@ -21749,6 +21750,14 @@ $root.CreateOrderPaymentIntentResponse = (function() {
|
|
|
21749
21750
|
*/
|
|
21750
21751
|
CreateOrderPaymentIntentResponse.prototype.clientSecret = "";
|
|
21751
21752
|
|
|
21753
|
+
/**
|
|
21754
|
+
* CreateOrderPaymentIntentResponse ephemeralKey.
|
|
21755
|
+
* @member {string} ephemeralKey
|
|
21756
|
+
* @memberof CreateOrderPaymentIntentResponse
|
|
21757
|
+
* @instance
|
|
21758
|
+
*/
|
|
21759
|
+
CreateOrderPaymentIntentResponse.prototype.ephemeralKey = "";
|
|
21760
|
+
|
|
21752
21761
|
/**
|
|
21753
21762
|
* Creates a new CreateOrderPaymentIntentResponse instance using the specified properties.
|
|
21754
21763
|
* @function create
|
|
@@ -21782,6 +21791,8 @@ $root.CreateOrderPaymentIntentResponse = (function() {
|
|
|
21782
21791
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.paymentIntentId);
|
|
21783
21792
|
if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret"))
|
|
21784
21793
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientSecret);
|
|
21794
|
+
if (message.ephemeralKey != null && Object.hasOwnProperty.call(message, "ephemeralKey"))
|
|
21795
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.ephemeralKey);
|
|
21785
21796
|
return writer;
|
|
21786
21797
|
};
|
|
21787
21798
|
|
|
@@ -21830,6 +21841,9 @@ $root.CreateOrderPaymentIntentResponse = (function() {
|
|
|
21830
21841
|
case 4:
|
|
21831
21842
|
message.clientSecret = reader.string();
|
|
21832
21843
|
break;
|
|
21844
|
+
case 5:
|
|
21845
|
+
message.ephemeralKey = reader.string();
|
|
21846
|
+
break;
|
|
21833
21847
|
default:
|
|
21834
21848
|
reader.skipType(tag & 7);
|
|
21835
21849
|
break;
|
|
@@ -21895,6 +21909,9 @@ $root.CreateOrderPaymentIntentResponse = (function() {
|
|
|
21895
21909
|
if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
|
|
21896
21910
|
if (!$util.isString(message.clientSecret))
|
|
21897
21911
|
return "clientSecret: string expected";
|
|
21912
|
+
if (message.ephemeralKey != null && message.hasOwnProperty("ephemeralKey"))
|
|
21913
|
+
if (!$util.isString(message.ephemeralKey))
|
|
21914
|
+
return "ephemeralKey: string expected";
|
|
21898
21915
|
return null;
|
|
21899
21916
|
};
|
|
21900
21917
|
|
|
@@ -21962,6 +21979,8 @@ $root.CreateOrderPaymentIntentResponse = (function() {
|
|
|
21962
21979
|
message.paymentIntentId = String(object.paymentIntentId);
|
|
21963
21980
|
if (object.clientSecret != null)
|
|
21964
21981
|
message.clientSecret = String(object.clientSecret);
|
|
21982
|
+
if (object.ephemeralKey != null)
|
|
21983
|
+
message.ephemeralKey = String(object.ephemeralKey);
|
|
21965
21984
|
return message;
|
|
21966
21985
|
};
|
|
21967
21986
|
|
|
@@ -21984,6 +22003,7 @@ $root.CreateOrderPaymentIntentResponse = (function() {
|
|
|
21984
22003
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
21985
22004
|
object.paymentIntentId = "";
|
|
21986
22005
|
object.clientSecret = "";
|
|
22006
|
+
object.ephemeralKey = "";
|
|
21987
22007
|
}
|
|
21988
22008
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
21989
22009
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -21996,6 +22016,8 @@ $root.CreateOrderPaymentIntentResponse = (function() {
|
|
|
21996
22016
|
object.paymentIntentId = message.paymentIntentId;
|
|
21997
22017
|
if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
|
|
21998
22018
|
object.clientSecret = message.clientSecret;
|
|
22019
|
+
if (message.ephemeralKey != null && message.hasOwnProperty("ephemeralKey"))
|
|
22020
|
+
object.ephemeralKey = message.ephemeralKey;
|
|
21999
22021
|
return object;
|
|
22000
22022
|
};
|
|
22001
22023
|
|
|
@@ -46571,6 +46593,8 @@ $root.PublicEvent = (function() {
|
|
|
46571
46593
|
* @property {string|null} [venueTimezone] PublicEvent venueTimezone
|
|
46572
46594
|
* @property {number|null} [announceAt] PublicEvent announceAt
|
|
46573
46595
|
* @property {string|null} [stub] PublicEvent stub
|
|
46596
|
+
* @property {IEventSchedule|null} [schedule] PublicEvent schedule
|
|
46597
|
+
* @property {Array.<IEventTaskTypes>|null} [ticketTypes] PublicEvent ticketTypes
|
|
46574
46598
|
*/
|
|
46575
46599
|
|
|
46576
46600
|
/**
|
|
@@ -46582,6 +46606,7 @@ $root.PublicEvent = (function() {
|
|
|
46582
46606
|
* @param {IPublicEvent=} [properties] Properties to set
|
|
46583
46607
|
*/
|
|
46584
46608
|
function PublicEvent(properties) {
|
|
46609
|
+
this.ticketTypes = [];
|
|
46585
46610
|
if (properties)
|
|
46586
46611
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
46587
46612
|
if (properties[keys[i]] != null)
|
|
@@ -46812,6 +46837,22 @@ $root.PublicEvent = (function() {
|
|
|
46812
46837
|
*/
|
|
46813
46838
|
PublicEvent.prototype.stub = "";
|
|
46814
46839
|
|
|
46840
|
+
/**
|
|
46841
|
+
* PublicEvent schedule.
|
|
46842
|
+
* @member {IEventSchedule|null|undefined} schedule
|
|
46843
|
+
* @memberof PublicEvent
|
|
46844
|
+
* @instance
|
|
46845
|
+
*/
|
|
46846
|
+
PublicEvent.prototype.schedule = null;
|
|
46847
|
+
|
|
46848
|
+
/**
|
|
46849
|
+
* PublicEvent ticketTypes.
|
|
46850
|
+
* @member {Array.<IEventTaskTypes>} ticketTypes
|
|
46851
|
+
* @memberof PublicEvent
|
|
46852
|
+
* @instance
|
|
46853
|
+
*/
|
|
46854
|
+
PublicEvent.prototype.ticketTypes = $util.emptyArray;
|
|
46855
|
+
|
|
46815
46856
|
/**
|
|
46816
46857
|
* Creates a new PublicEvent instance using the specified properties.
|
|
46817
46858
|
* @function create
|
|
@@ -46892,6 +46933,11 @@ $root.PublicEvent = (function() {
|
|
|
46892
46933
|
writer.uint32(/* id 27, wireType 0 =*/216).int32(message.announceAt);
|
|
46893
46934
|
if (message.stub != null && Object.hasOwnProperty.call(message, "stub"))
|
|
46894
46935
|
writer.uint32(/* id 28, wireType 2 =*/226).string(message.stub);
|
|
46936
|
+
if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule"))
|
|
46937
|
+
$root.EventSchedule.encode(message.schedule, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
|
|
46938
|
+
if (message.ticketTypes != null && message.ticketTypes.length)
|
|
46939
|
+
for (var i = 0; i < message.ticketTypes.length; ++i)
|
|
46940
|
+
$root.EventTaskTypes.encode(message.ticketTypes[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
|
|
46895
46941
|
return writer;
|
|
46896
46942
|
};
|
|
46897
46943
|
|
|
@@ -47010,6 +47056,14 @@ $root.PublicEvent = (function() {
|
|
|
47010
47056
|
case 28:
|
|
47011
47057
|
message.stub = reader.string();
|
|
47012
47058
|
break;
|
|
47059
|
+
case 29:
|
|
47060
|
+
message.schedule = $root.EventSchedule.decode(reader, reader.uint32());
|
|
47061
|
+
break;
|
|
47062
|
+
case 30:
|
|
47063
|
+
if (!(message.ticketTypes && message.ticketTypes.length))
|
|
47064
|
+
message.ticketTypes = [];
|
|
47065
|
+
message.ticketTypes.push($root.EventTaskTypes.decode(reader, reader.uint32()));
|
|
47066
|
+
break;
|
|
47013
47067
|
default:
|
|
47014
47068
|
reader.skipType(tag & 7);
|
|
47015
47069
|
break;
|
|
@@ -47131,6 +47185,20 @@ $root.PublicEvent = (function() {
|
|
|
47131
47185
|
if (message.stub != null && message.hasOwnProperty("stub"))
|
|
47132
47186
|
if (!$util.isString(message.stub))
|
|
47133
47187
|
return "stub: string expected";
|
|
47188
|
+
if (message.schedule != null && message.hasOwnProperty("schedule")) {
|
|
47189
|
+
var error = $root.EventSchedule.verify(message.schedule);
|
|
47190
|
+
if (error)
|
|
47191
|
+
return "schedule." + error;
|
|
47192
|
+
}
|
|
47193
|
+
if (message.ticketTypes != null && message.hasOwnProperty("ticketTypes")) {
|
|
47194
|
+
if (!Array.isArray(message.ticketTypes))
|
|
47195
|
+
return "ticketTypes: array expected";
|
|
47196
|
+
for (var i = 0; i < message.ticketTypes.length; ++i) {
|
|
47197
|
+
var error = $root.EventTaskTypes.verify(message.ticketTypes[i]);
|
|
47198
|
+
if (error)
|
|
47199
|
+
return "ticketTypes." + error;
|
|
47200
|
+
}
|
|
47201
|
+
}
|
|
47134
47202
|
return null;
|
|
47135
47203
|
};
|
|
47136
47204
|
|
|
@@ -47205,6 +47273,21 @@ $root.PublicEvent = (function() {
|
|
|
47205
47273
|
message.announceAt = object.announceAt | 0;
|
|
47206
47274
|
if (object.stub != null)
|
|
47207
47275
|
message.stub = String(object.stub);
|
|
47276
|
+
if (object.schedule != null) {
|
|
47277
|
+
if (typeof object.schedule !== "object")
|
|
47278
|
+
throw TypeError(".PublicEvent.schedule: object expected");
|
|
47279
|
+
message.schedule = $root.EventSchedule.fromObject(object.schedule);
|
|
47280
|
+
}
|
|
47281
|
+
if (object.ticketTypes) {
|
|
47282
|
+
if (!Array.isArray(object.ticketTypes))
|
|
47283
|
+
throw TypeError(".PublicEvent.ticketTypes: array expected");
|
|
47284
|
+
message.ticketTypes = [];
|
|
47285
|
+
for (var i = 0; i < object.ticketTypes.length; ++i) {
|
|
47286
|
+
if (typeof object.ticketTypes[i] !== "object")
|
|
47287
|
+
throw TypeError(".PublicEvent.ticketTypes: object expected");
|
|
47288
|
+
message.ticketTypes[i] = $root.EventTaskTypes.fromObject(object.ticketTypes[i]);
|
|
47289
|
+
}
|
|
47290
|
+
}
|
|
47208
47291
|
return message;
|
|
47209
47292
|
};
|
|
47210
47293
|
|
|
@@ -47221,6 +47304,8 @@ $root.PublicEvent = (function() {
|
|
|
47221
47304
|
if (!options)
|
|
47222
47305
|
options = {};
|
|
47223
47306
|
var object = {};
|
|
47307
|
+
if (options.arrays || options.defaults)
|
|
47308
|
+
object.ticketTypes = [];
|
|
47224
47309
|
if (options.defaults) {
|
|
47225
47310
|
object._id = "";
|
|
47226
47311
|
object.orgId = "";
|
|
@@ -47250,6 +47335,7 @@ $root.PublicEvent = (function() {
|
|
|
47250
47335
|
object.venueTimezone = "";
|
|
47251
47336
|
object.announceAt = 0;
|
|
47252
47337
|
object.stub = "";
|
|
47338
|
+
object.schedule = null;
|
|
47253
47339
|
}
|
|
47254
47340
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
47255
47341
|
object._id = message._id;
|
|
@@ -47307,6 +47393,13 @@ $root.PublicEvent = (function() {
|
|
|
47307
47393
|
object.announceAt = message.announceAt;
|
|
47308
47394
|
if (message.stub != null && message.hasOwnProperty("stub"))
|
|
47309
47395
|
object.stub = message.stub;
|
|
47396
|
+
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
47397
|
+
object.schedule = $root.EventSchedule.toObject(message.schedule, options);
|
|
47398
|
+
if (message.ticketTypes && message.ticketTypes.length) {
|
|
47399
|
+
object.ticketTypes = [];
|
|
47400
|
+
for (var j = 0; j < message.ticketTypes.length; ++j)
|
|
47401
|
+
object.ticketTypes[j] = $root.EventTaskTypes.toObject(message.ticketTypes[j], options);
|
|
47402
|
+
}
|
|
47310
47403
|
return object;
|
|
47311
47404
|
};
|
|
47312
47405
|
|
|
@@ -47324,6 +47417,282 @@ $root.PublicEvent = (function() {
|
|
|
47324
47417
|
return PublicEvent;
|
|
47325
47418
|
})();
|
|
47326
47419
|
|
|
47420
|
+
$root.EventTaskTypes = (function() {
|
|
47421
|
+
|
|
47422
|
+
/**
|
|
47423
|
+
* Properties of an EventTaskTypes.
|
|
47424
|
+
* @exports IEventTaskTypes
|
|
47425
|
+
* @interface IEventTaskTypes
|
|
47426
|
+
* @property {string|null} [name] EventTaskTypes name
|
|
47427
|
+
* @property {number|null} [purchaseLimit] EventTaskTypes purchaseLimit
|
|
47428
|
+
* @property {number|null} [value] EventTaskTypes value
|
|
47429
|
+
* @property {number|null} [price] EventTaskTypes price
|
|
47430
|
+
* @property {boolean|null} [ticketsAvailable] EventTaskTypes ticketsAvailable
|
|
47431
|
+
*/
|
|
47432
|
+
|
|
47433
|
+
/**
|
|
47434
|
+
* Constructs a new EventTaskTypes.
|
|
47435
|
+
* @exports EventTaskTypes
|
|
47436
|
+
* @classdesc Represents an EventTaskTypes.
|
|
47437
|
+
* @implements IEventTaskTypes
|
|
47438
|
+
* @constructor
|
|
47439
|
+
* @param {IEventTaskTypes=} [properties] Properties to set
|
|
47440
|
+
*/
|
|
47441
|
+
function EventTaskTypes(properties) {
|
|
47442
|
+
if (properties)
|
|
47443
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47444
|
+
if (properties[keys[i]] != null)
|
|
47445
|
+
this[keys[i]] = properties[keys[i]];
|
|
47446
|
+
}
|
|
47447
|
+
|
|
47448
|
+
/**
|
|
47449
|
+
* EventTaskTypes name.
|
|
47450
|
+
* @member {string} name
|
|
47451
|
+
* @memberof EventTaskTypes
|
|
47452
|
+
* @instance
|
|
47453
|
+
*/
|
|
47454
|
+
EventTaskTypes.prototype.name = "";
|
|
47455
|
+
|
|
47456
|
+
/**
|
|
47457
|
+
* EventTaskTypes purchaseLimit.
|
|
47458
|
+
* @member {number} purchaseLimit
|
|
47459
|
+
* @memberof EventTaskTypes
|
|
47460
|
+
* @instance
|
|
47461
|
+
*/
|
|
47462
|
+
EventTaskTypes.prototype.purchaseLimit = 0;
|
|
47463
|
+
|
|
47464
|
+
/**
|
|
47465
|
+
* EventTaskTypes value.
|
|
47466
|
+
* @member {number} value
|
|
47467
|
+
* @memberof EventTaskTypes
|
|
47468
|
+
* @instance
|
|
47469
|
+
*/
|
|
47470
|
+
EventTaskTypes.prototype.value = 0;
|
|
47471
|
+
|
|
47472
|
+
/**
|
|
47473
|
+
* EventTaskTypes price.
|
|
47474
|
+
* @member {number} price
|
|
47475
|
+
* @memberof EventTaskTypes
|
|
47476
|
+
* @instance
|
|
47477
|
+
*/
|
|
47478
|
+
EventTaskTypes.prototype.price = 0;
|
|
47479
|
+
|
|
47480
|
+
/**
|
|
47481
|
+
* EventTaskTypes ticketsAvailable.
|
|
47482
|
+
* @member {boolean} ticketsAvailable
|
|
47483
|
+
* @memberof EventTaskTypes
|
|
47484
|
+
* @instance
|
|
47485
|
+
*/
|
|
47486
|
+
EventTaskTypes.prototype.ticketsAvailable = false;
|
|
47487
|
+
|
|
47488
|
+
/**
|
|
47489
|
+
* Creates a new EventTaskTypes instance using the specified properties.
|
|
47490
|
+
* @function create
|
|
47491
|
+
* @memberof EventTaskTypes
|
|
47492
|
+
* @static
|
|
47493
|
+
* @param {IEventTaskTypes=} [properties] Properties to set
|
|
47494
|
+
* @returns {EventTaskTypes} EventTaskTypes instance
|
|
47495
|
+
*/
|
|
47496
|
+
EventTaskTypes.create = function create(properties) {
|
|
47497
|
+
return new EventTaskTypes(properties);
|
|
47498
|
+
};
|
|
47499
|
+
|
|
47500
|
+
/**
|
|
47501
|
+
* Encodes the specified EventTaskTypes message. Does not implicitly {@link EventTaskTypes.verify|verify} messages.
|
|
47502
|
+
* @function encode
|
|
47503
|
+
* @memberof EventTaskTypes
|
|
47504
|
+
* @static
|
|
47505
|
+
* @param {IEventTaskTypes} message EventTaskTypes message or plain object to encode
|
|
47506
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47507
|
+
* @returns {$protobuf.Writer} Writer
|
|
47508
|
+
*/
|
|
47509
|
+
EventTaskTypes.encode = function encode(message, writer) {
|
|
47510
|
+
if (!writer)
|
|
47511
|
+
writer = $Writer.create();
|
|
47512
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
47513
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
47514
|
+
if (message.purchaseLimit != null && Object.hasOwnProperty.call(message, "purchaseLimit"))
|
|
47515
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.purchaseLimit);
|
|
47516
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
47517
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.value);
|
|
47518
|
+
if (message.price != null && Object.hasOwnProperty.call(message, "price"))
|
|
47519
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.price);
|
|
47520
|
+
if (message.ticketsAvailable != null && Object.hasOwnProperty.call(message, "ticketsAvailable"))
|
|
47521
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ticketsAvailable);
|
|
47522
|
+
return writer;
|
|
47523
|
+
};
|
|
47524
|
+
|
|
47525
|
+
/**
|
|
47526
|
+
* Encodes the specified EventTaskTypes message, length delimited. Does not implicitly {@link EventTaskTypes.verify|verify} messages.
|
|
47527
|
+
* @function encodeDelimited
|
|
47528
|
+
* @memberof EventTaskTypes
|
|
47529
|
+
* @static
|
|
47530
|
+
* @param {IEventTaskTypes} message EventTaskTypes message or plain object to encode
|
|
47531
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47532
|
+
* @returns {$protobuf.Writer} Writer
|
|
47533
|
+
*/
|
|
47534
|
+
EventTaskTypes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47535
|
+
return this.encode(message, writer).ldelim();
|
|
47536
|
+
};
|
|
47537
|
+
|
|
47538
|
+
/**
|
|
47539
|
+
* Decodes an EventTaskTypes message from the specified reader or buffer.
|
|
47540
|
+
* @function decode
|
|
47541
|
+
* @memberof EventTaskTypes
|
|
47542
|
+
* @static
|
|
47543
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47544
|
+
* @param {number} [length] Message length if known beforehand
|
|
47545
|
+
* @returns {EventTaskTypes} EventTaskTypes
|
|
47546
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47547
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47548
|
+
*/
|
|
47549
|
+
EventTaskTypes.decode = function decode(reader, length) {
|
|
47550
|
+
if (!(reader instanceof $Reader))
|
|
47551
|
+
reader = $Reader.create(reader);
|
|
47552
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventTaskTypes();
|
|
47553
|
+
while (reader.pos < end) {
|
|
47554
|
+
var tag = reader.uint32();
|
|
47555
|
+
switch (tag >>> 3) {
|
|
47556
|
+
case 1:
|
|
47557
|
+
message.name = reader.string();
|
|
47558
|
+
break;
|
|
47559
|
+
case 2:
|
|
47560
|
+
message.purchaseLimit = reader.int32();
|
|
47561
|
+
break;
|
|
47562
|
+
case 3:
|
|
47563
|
+
message.value = reader.int32();
|
|
47564
|
+
break;
|
|
47565
|
+
case 4:
|
|
47566
|
+
message.price = reader.int32();
|
|
47567
|
+
break;
|
|
47568
|
+
case 5:
|
|
47569
|
+
message.ticketsAvailable = reader.bool();
|
|
47570
|
+
break;
|
|
47571
|
+
default:
|
|
47572
|
+
reader.skipType(tag & 7);
|
|
47573
|
+
break;
|
|
47574
|
+
}
|
|
47575
|
+
}
|
|
47576
|
+
return message;
|
|
47577
|
+
};
|
|
47578
|
+
|
|
47579
|
+
/**
|
|
47580
|
+
* Decodes an EventTaskTypes message from the specified reader or buffer, length delimited.
|
|
47581
|
+
* @function decodeDelimited
|
|
47582
|
+
* @memberof EventTaskTypes
|
|
47583
|
+
* @static
|
|
47584
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47585
|
+
* @returns {EventTaskTypes} EventTaskTypes
|
|
47586
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47587
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47588
|
+
*/
|
|
47589
|
+
EventTaskTypes.decodeDelimited = function decodeDelimited(reader) {
|
|
47590
|
+
if (!(reader instanceof $Reader))
|
|
47591
|
+
reader = new $Reader(reader);
|
|
47592
|
+
return this.decode(reader, reader.uint32());
|
|
47593
|
+
};
|
|
47594
|
+
|
|
47595
|
+
/**
|
|
47596
|
+
* Verifies an EventTaskTypes message.
|
|
47597
|
+
* @function verify
|
|
47598
|
+
* @memberof EventTaskTypes
|
|
47599
|
+
* @static
|
|
47600
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47601
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47602
|
+
*/
|
|
47603
|
+
EventTaskTypes.verify = function verify(message) {
|
|
47604
|
+
if (typeof message !== "object" || message === null)
|
|
47605
|
+
return "object expected";
|
|
47606
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
47607
|
+
if (!$util.isString(message.name))
|
|
47608
|
+
return "name: string expected";
|
|
47609
|
+
if (message.purchaseLimit != null && message.hasOwnProperty("purchaseLimit"))
|
|
47610
|
+
if (!$util.isInteger(message.purchaseLimit))
|
|
47611
|
+
return "purchaseLimit: integer expected";
|
|
47612
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
47613
|
+
if (!$util.isInteger(message.value))
|
|
47614
|
+
return "value: integer expected";
|
|
47615
|
+
if (message.price != null && message.hasOwnProperty("price"))
|
|
47616
|
+
if (!$util.isInteger(message.price))
|
|
47617
|
+
return "price: integer expected";
|
|
47618
|
+
if (message.ticketsAvailable != null && message.hasOwnProperty("ticketsAvailable"))
|
|
47619
|
+
if (typeof message.ticketsAvailable !== "boolean")
|
|
47620
|
+
return "ticketsAvailable: boolean expected";
|
|
47621
|
+
return null;
|
|
47622
|
+
};
|
|
47623
|
+
|
|
47624
|
+
/**
|
|
47625
|
+
* Creates an EventTaskTypes message from a plain object. Also converts values to their respective internal types.
|
|
47626
|
+
* @function fromObject
|
|
47627
|
+
* @memberof EventTaskTypes
|
|
47628
|
+
* @static
|
|
47629
|
+
* @param {Object.<string,*>} object Plain object
|
|
47630
|
+
* @returns {EventTaskTypes} EventTaskTypes
|
|
47631
|
+
*/
|
|
47632
|
+
EventTaskTypes.fromObject = function fromObject(object) {
|
|
47633
|
+
if (object instanceof $root.EventTaskTypes)
|
|
47634
|
+
return object;
|
|
47635
|
+
var message = new $root.EventTaskTypes();
|
|
47636
|
+
if (object.name != null)
|
|
47637
|
+
message.name = String(object.name);
|
|
47638
|
+
if (object.purchaseLimit != null)
|
|
47639
|
+
message.purchaseLimit = object.purchaseLimit | 0;
|
|
47640
|
+
if (object.value != null)
|
|
47641
|
+
message.value = object.value | 0;
|
|
47642
|
+
if (object.price != null)
|
|
47643
|
+
message.price = object.price | 0;
|
|
47644
|
+
if (object.ticketsAvailable != null)
|
|
47645
|
+
message.ticketsAvailable = Boolean(object.ticketsAvailable);
|
|
47646
|
+
return message;
|
|
47647
|
+
};
|
|
47648
|
+
|
|
47649
|
+
/**
|
|
47650
|
+
* Creates a plain object from an EventTaskTypes message. Also converts values to other types if specified.
|
|
47651
|
+
* @function toObject
|
|
47652
|
+
* @memberof EventTaskTypes
|
|
47653
|
+
* @static
|
|
47654
|
+
* @param {EventTaskTypes} message EventTaskTypes
|
|
47655
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47656
|
+
* @returns {Object.<string,*>} Plain object
|
|
47657
|
+
*/
|
|
47658
|
+
EventTaskTypes.toObject = function toObject(message, options) {
|
|
47659
|
+
if (!options)
|
|
47660
|
+
options = {};
|
|
47661
|
+
var object = {};
|
|
47662
|
+
if (options.defaults) {
|
|
47663
|
+
object.name = "";
|
|
47664
|
+
object.purchaseLimit = 0;
|
|
47665
|
+
object.value = 0;
|
|
47666
|
+
object.price = 0;
|
|
47667
|
+
object.ticketsAvailable = false;
|
|
47668
|
+
}
|
|
47669
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
47670
|
+
object.name = message.name;
|
|
47671
|
+
if (message.purchaseLimit != null && message.hasOwnProperty("purchaseLimit"))
|
|
47672
|
+
object.purchaseLimit = message.purchaseLimit;
|
|
47673
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
47674
|
+
object.value = message.value;
|
|
47675
|
+
if (message.price != null && message.hasOwnProperty("price"))
|
|
47676
|
+
object.price = message.price;
|
|
47677
|
+
if (message.ticketsAvailable != null && message.hasOwnProperty("ticketsAvailable"))
|
|
47678
|
+
object.ticketsAvailable = message.ticketsAvailable;
|
|
47679
|
+
return object;
|
|
47680
|
+
};
|
|
47681
|
+
|
|
47682
|
+
/**
|
|
47683
|
+
* Converts this EventTaskTypes to JSON.
|
|
47684
|
+
* @function toJSON
|
|
47685
|
+
* @memberof EventTaskTypes
|
|
47686
|
+
* @instance
|
|
47687
|
+
* @returns {Object.<string,*>} JSON object
|
|
47688
|
+
*/
|
|
47689
|
+
EventTaskTypes.prototype.toJSON = function toJSON() {
|
|
47690
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47691
|
+
};
|
|
47692
|
+
|
|
47693
|
+
return EventTaskTypes;
|
|
47694
|
+
})();
|
|
47695
|
+
|
|
47327
47696
|
$root.PublicEventDetails = (function() {
|
|
47328
47697
|
|
|
47329
47698
|
/**
|
|
@@ -107181,6 +107550,7 @@ $root.CreateStripePaymentIntentResponse = (function() {
|
|
|
107181
107550
|
* @property {Array.<IError>|null} [errors] CreateStripePaymentIntentResponse errors
|
|
107182
107551
|
* @property {string|null} [paymentIntentId] CreateStripePaymentIntentResponse paymentIntentId
|
|
107183
107552
|
* @property {string|null} [clientSecret] CreateStripePaymentIntentResponse clientSecret
|
|
107553
|
+
* @property {string|null} [ephemeralKey] CreateStripePaymentIntentResponse ephemeralKey
|
|
107184
107554
|
*/
|
|
107185
107555
|
|
|
107186
107556
|
/**
|
|
@@ -107231,6 +107601,14 @@ $root.CreateStripePaymentIntentResponse = (function() {
|
|
|
107231
107601
|
*/
|
|
107232
107602
|
CreateStripePaymentIntentResponse.prototype.clientSecret = "";
|
|
107233
107603
|
|
|
107604
|
+
/**
|
|
107605
|
+
* CreateStripePaymentIntentResponse ephemeralKey.
|
|
107606
|
+
* @member {string} ephemeralKey
|
|
107607
|
+
* @memberof CreateStripePaymentIntentResponse
|
|
107608
|
+
* @instance
|
|
107609
|
+
*/
|
|
107610
|
+
CreateStripePaymentIntentResponse.prototype.ephemeralKey = "";
|
|
107611
|
+
|
|
107234
107612
|
/**
|
|
107235
107613
|
* Creates a new CreateStripePaymentIntentResponse instance using the specified properties.
|
|
107236
107614
|
* @function create
|
|
@@ -107264,6 +107642,8 @@ $root.CreateStripePaymentIntentResponse = (function() {
|
|
|
107264
107642
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.paymentIntentId);
|
|
107265
107643
|
if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret"))
|
|
107266
107644
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientSecret);
|
|
107645
|
+
if (message.ephemeralKey != null && Object.hasOwnProperty.call(message, "ephemeralKey"))
|
|
107646
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.ephemeralKey);
|
|
107267
107647
|
return writer;
|
|
107268
107648
|
};
|
|
107269
107649
|
|
|
@@ -107312,6 +107692,9 @@ $root.CreateStripePaymentIntentResponse = (function() {
|
|
|
107312
107692
|
case 3:
|
|
107313
107693
|
message.clientSecret = reader.string();
|
|
107314
107694
|
break;
|
|
107695
|
+
case 4:
|
|
107696
|
+
message.ephemeralKey = reader.string();
|
|
107697
|
+
break;
|
|
107315
107698
|
default:
|
|
107316
107699
|
reader.skipType(tag & 7);
|
|
107317
107700
|
break;
|
|
@@ -107377,6 +107760,9 @@ $root.CreateStripePaymentIntentResponse = (function() {
|
|
|
107377
107760
|
if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
|
|
107378
107761
|
if (!$util.isString(message.clientSecret))
|
|
107379
107762
|
return "clientSecret: string expected";
|
|
107763
|
+
if (message.ephemeralKey != null && message.hasOwnProperty("ephemeralKey"))
|
|
107764
|
+
if (!$util.isString(message.ephemeralKey))
|
|
107765
|
+
return "ephemeralKey: string expected";
|
|
107380
107766
|
return null;
|
|
107381
107767
|
};
|
|
107382
107768
|
|
|
@@ -107444,6 +107830,8 @@ $root.CreateStripePaymentIntentResponse = (function() {
|
|
|
107444
107830
|
message.paymentIntentId = String(object.paymentIntentId);
|
|
107445
107831
|
if (object.clientSecret != null)
|
|
107446
107832
|
message.clientSecret = String(object.clientSecret);
|
|
107833
|
+
if (object.ephemeralKey != null)
|
|
107834
|
+
message.ephemeralKey = String(object.ephemeralKey);
|
|
107447
107835
|
return message;
|
|
107448
107836
|
};
|
|
107449
107837
|
|
|
@@ -107466,6 +107854,7 @@ $root.CreateStripePaymentIntentResponse = (function() {
|
|
|
107466
107854
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
107467
107855
|
object.paymentIntentId = "";
|
|
107468
107856
|
object.clientSecret = "";
|
|
107857
|
+
object.ephemeralKey = "";
|
|
107469
107858
|
}
|
|
107470
107859
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
107471
107860
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -107478,6 +107867,8 @@ $root.CreateStripePaymentIntentResponse = (function() {
|
|
|
107478
107867
|
object.paymentIntentId = message.paymentIntentId;
|
|
107479
107868
|
if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
|
|
107480
107869
|
object.clientSecret = message.clientSecret;
|
|
107870
|
+
if (message.ephemeralKey != null && message.hasOwnProperty("ephemeralKey"))
|
|
107871
|
+
object.ephemeralKey = message.ephemeralKey;
|
|
107481
107872
|
return object;
|
|
107482
107873
|
};
|
|
107483
107874
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.230",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hapi/joi": "^16.1.7",
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
20
|
+
"@sellout/utils": "^0.0.230",
|
|
21
21
|
"@types/hapi__joi": "^16.0.1",
|
|
22
22
|
"@types/shortid": "^0.0.29",
|
|
23
23
|
"apollo-link-debounce": "^2.1.0",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"protobufjs": "^6.11.2",
|
|
32
32
|
"typescript": "^4.4.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "a324ae6f08d0c2fa4f6b9e1347ee5eada18ac8a9"
|
|
35
35
|
}
|
package/src/proto/event.proto
CHANGED
|
@@ -77,6 +77,16 @@ message PublicEvent {
|
|
|
77
77
|
string venueTimezone = 26;
|
|
78
78
|
int32 announceAt = 27;
|
|
79
79
|
string stub = 28;
|
|
80
|
+
EventSchedule schedule = 29;
|
|
81
|
+
repeated EventTaskTypes ticketTypes = 30;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message EventTaskTypes{
|
|
85
|
+
string name = 1;
|
|
86
|
+
int32 purchaseLimit = 2;
|
|
87
|
+
int32 value = 3;
|
|
88
|
+
int32 price = 4;
|
|
89
|
+
bool ticketsAvailable = 5;
|
|
80
90
|
}
|
|
81
91
|
|
|
82
92
|
message PublicEventDetails {
|
package/src/proto/order.proto
CHANGED
|
@@ -289,6 +289,7 @@ message CreateOrderPaymentIntentResponse {
|
|
|
289
289
|
repeated Error errors = 2;
|
|
290
290
|
string paymentIntentId = 3;
|
|
291
291
|
string clientSecret = 4;
|
|
292
|
+
string ephemeralKey = 5;
|
|
292
293
|
}
|
|
293
294
|
|
|
294
295
|
/****************************************************************************************
|
package/src/proto/stripe.proto
CHANGED