@sellout/models 0.0.124 → 0.0.126
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.d.ts +1 -0
- package/.dist/graphql/fragments/event.fragment.js +19 -1
- package/.dist/graphql/fragments/event.fragment.js.map +1 -1
- package/.dist/graphql/queries/promoCodeVerify.query.d.ts +2 -0
- package/.dist/graphql/queries/promoCodeVerify.query.js +30 -0
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +1 -0
- package/.dist/graphql/queries/publicEvent.query.js +1 -1
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
- package/.dist/graphql/queries/userExists.query.js +14 -2
- package/.dist/graphql/queries/userExists.query.js.map +1 -1
- package/.dist/sellout-proto.js +977 -7
- package/.dist/utils/EventUtil.js +3 -1
- package/.dist/utils/EventUtil.js.map +1 -1
- package/package.json +3 -3
- package/src/graphql/fragments/event.fragment.ts +20 -1
- package/src/graphql/queries/promoCodeVerify.query.ts +26 -0
- package/src/graphql/queries/publicEvent.query.ts +1 -1
- package/src/graphql/queries/userExists.query.ts +15 -3
- package/src/proto/event.proto +10 -1
- package/src/proto/order.proto +14 -0
- package/src/proto/user.proto +3 -0
- package/src/utils/EventUtil.ts +4 -1
package/.dist/sellout-proto.js
CHANGED
|
@@ -26235,6 +26235,557 @@ $root.OrdersChargeUpdateResponse = (function() {
|
|
|
26235
26235
|
return OrdersChargeUpdateResponse;
|
|
26236
26236
|
})();
|
|
26237
26237
|
|
|
26238
|
+
$root.GetPromoUsedRequest = (function() {
|
|
26239
|
+
|
|
26240
|
+
/**
|
|
26241
|
+
* Properties of a GetPromoUsedRequest.
|
|
26242
|
+
* @exports IGetPromoUsedRequest
|
|
26243
|
+
* @interface IGetPromoUsedRequest
|
|
26244
|
+
* @property {string|null} [spanContext] GetPromoUsedRequest spanContext
|
|
26245
|
+
* @property {string|null} [promoCode] GetPromoUsedRequest promoCode
|
|
26246
|
+
* @property {string|null} [userId] GetPromoUsedRequest userId
|
|
26247
|
+
* @property {string|null} [eventId] GetPromoUsedRequest eventId
|
|
26248
|
+
*/
|
|
26249
|
+
|
|
26250
|
+
/**
|
|
26251
|
+
* Constructs a new GetPromoUsedRequest.
|
|
26252
|
+
* @exports GetPromoUsedRequest
|
|
26253
|
+
* @classdesc Represents a GetPromoUsedRequest.
|
|
26254
|
+
* @implements IGetPromoUsedRequest
|
|
26255
|
+
* @constructor
|
|
26256
|
+
* @param {IGetPromoUsedRequest=} [properties] Properties to set
|
|
26257
|
+
*/
|
|
26258
|
+
function GetPromoUsedRequest(properties) {
|
|
26259
|
+
if (properties)
|
|
26260
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26261
|
+
if (properties[keys[i]] != null)
|
|
26262
|
+
this[keys[i]] = properties[keys[i]];
|
|
26263
|
+
}
|
|
26264
|
+
|
|
26265
|
+
/**
|
|
26266
|
+
* GetPromoUsedRequest spanContext.
|
|
26267
|
+
* @member {string} spanContext
|
|
26268
|
+
* @memberof GetPromoUsedRequest
|
|
26269
|
+
* @instance
|
|
26270
|
+
*/
|
|
26271
|
+
GetPromoUsedRequest.prototype.spanContext = "";
|
|
26272
|
+
|
|
26273
|
+
/**
|
|
26274
|
+
* GetPromoUsedRequest promoCode.
|
|
26275
|
+
* @member {string} promoCode
|
|
26276
|
+
* @memberof GetPromoUsedRequest
|
|
26277
|
+
* @instance
|
|
26278
|
+
*/
|
|
26279
|
+
GetPromoUsedRequest.prototype.promoCode = "";
|
|
26280
|
+
|
|
26281
|
+
/**
|
|
26282
|
+
* GetPromoUsedRequest userId.
|
|
26283
|
+
* @member {string} userId
|
|
26284
|
+
* @memberof GetPromoUsedRequest
|
|
26285
|
+
* @instance
|
|
26286
|
+
*/
|
|
26287
|
+
GetPromoUsedRequest.prototype.userId = "";
|
|
26288
|
+
|
|
26289
|
+
/**
|
|
26290
|
+
* GetPromoUsedRequest eventId.
|
|
26291
|
+
* @member {string} eventId
|
|
26292
|
+
* @memberof GetPromoUsedRequest
|
|
26293
|
+
* @instance
|
|
26294
|
+
*/
|
|
26295
|
+
GetPromoUsedRequest.prototype.eventId = "";
|
|
26296
|
+
|
|
26297
|
+
/**
|
|
26298
|
+
* Creates a new GetPromoUsedRequest instance using the specified properties.
|
|
26299
|
+
* @function create
|
|
26300
|
+
* @memberof GetPromoUsedRequest
|
|
26301
|
+
* @static
|
|
26302
|
+
* @param {IGetPromoUsedRequest=} [properties] Properties to set
|
|
26303
|
+
* @returns {GetPromoUsedRequest} GetPromoUsedRequest instance
|
|
26304
|
+
*/
|
|
26305
|
+
GetPromoUsedRequest.create = function create(properties) {
|
|
26306
|
+
return new GetPromoUsedRequest(properties);
|
|
26307
|
+
};
|
|
26308
|
+
|
|
26309
|
+
/**
|
|
26310
|
+
* Encodes the specified GetPromoUsedRequest message. Does not implicitly {@link GetPromoUsedRequest.verify|verify} messages.
|
|
26311
|
+
* @function encode
|
|
26312
|
+
* @memberof GetPromoUsedRequest
|
|
26313
|
+
* @static
|
|
26314
|
+
* @param {IGetPromoUsedRequest} message GetPromoUsedRequest message or plain object to encode
|
|
26315
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26316
|
+
* @returns {$protobuf.Writer} Writer
|
|
26317
|
+
*/
|
|
26318
|
+
GetPromoUsedRequest.encode = function encode(message, writer) {
|
|
26319
|
+
if (!writer)
|
|
26320
|
+
writer = $Writer.create();
|
|
26321
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
26322
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
26323
|
+
if (message.promoCode != null && Object.hasOwnProperty.call(message, "promoCode"))
|
|
26324
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.promoCode);
|
|
26325
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
26326
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
26327
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
26328
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventId);
|
|
26329
|
+
return writer;
|
|
26330
|
+
};
|
|
26331
|
+
|
|
26332
|
+
/**
|
|
26333
|
+
* Encodes the specified GetPromoUsedRequest message, length delimited. Does not implicitly {@link GetPromoUsedRequest.verify|verify} messages.
|
|
26334
|
+
* @function encodeDelimited
|
|
26335
|
+
* @memberof GetPromoUsedRequest
|
|
26336
|
+
* @static
|
|
26337
|
+
* @param {IGetPromoUsedRequest} message GetPromoUsedRequest message or plain object to encode
|
|
26338
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26339
|
+
* @returns {$protobuf.Writer} Writer
|
|
26340
|
+
*/
|
|
26341
|
+
GetPromoUsedRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
26342
|
+
return this.encode(message, writer).ldelim();
|
|
26343
|
+
};
|
|
26344
|
+
|
|
26345
|
+
/**
|
|
26346
|
+
* Decodes a GetPromoUsedRequest message from the specified reader or buffer.
|
|
26347
|
+
* @function decode
|
|
26348
|
+
* @memberof GetPromoUsedRequest
|
|
26349
|
+
* @static
|
|
26350
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26351
|
+
* @param {number} [length] Message length if known beforehand
|
|
26352
|
+
* @returns {GetPromoUsedRequest} GetPromoUsedRequest
|
|
26353
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26354
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26355
|
+
*/
|
|
26356
|
+
GetPromoUsedRequest.decode = function decode(reader, length) {
|
|
26357
|
+
if (!(reader instanceof $Reader))
|
|
26358
|
+
reader = $Reader.create(reader);
|
|
26359
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GetPromoUsedRequest();
|
|
26360
|
+
while (reader.pos < end) {
|
|
26361
|
+
var tag = reader.uint32();
|
|
26362
|
+
switch (tag >>> 3) {
|
|
26363
|
+
case 0:
|
|
26364
|
+
message.spanContext = reader.string();
|
|
26365
|
+
break;
|
|
26366
|
+
case 1:
|
|
26367
|
+
message.promoCode = reader.string();
|
|
26368
|
+
break;
|
|
26369
|
+
case 2:
|
|
26370
|
+
message.userId = reader.string();
|
|
26371
|
+
break;
|
|
26372
|
+
case 3:
|
|
26373
|
+
message.eventId = reader.string();
|
|
26374
|
+
break;
|
|
26375
|
+
default:
|
|
26376
|
+
reader.skipType(tag & 7);
|
|
26377
|
+
break;
|
|
26378
|
+
}
|
|
26379
|
+
}
|
|
26380
|
+
return message;
|
|
26381
|
+
};
|
|
26382
|
+
|
|
26383
|
+
/**
|
|
26384
|
+
* Decodes a GetPromoUsedRequest message from the specified reader or buffer, length delimited.
|
|
26385
|
+
* @function decodeDelimited
|
|
26386
|
+
* @memberof GetPromoUsedRequest
|
|
26387
|
+
* @static
|
|
26388
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26389
|
+
* @returns {GetPromoUsedRequest} GetPromoUsedRequest
|
|
26390
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26391
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26392
|
+
*/
|
|
26393
|
+
GetPromoUsedRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
26394
|
+
if (!(reader instanceof $Reader))
|
|
26395
|
+
reader = new $Reader(reader);
|
|
26396
|
+
return this.decode(reader, reader.uint32());
|
|
26397
|
+
};
|
|
26398
|
+
|
|
26399
|
+
/**
|
|
26400
|
+
* Verifies a GetPromoUsedRequest message.
|
|
26401
|
+
* @function verify
|
|
26402
|
+
* @memberof GetPromoUsedRequest
|
|
26403
|
+
* @static
|
|
26404
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26405
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26406
|
+
*/
|
|
26407
|
+
GetPromoUsedRequest.verify = function verify(message) {
|
|
26408
|
+
if (typeof message !== "object" || message === null)
|
|
26409
|
+
return "object expected";
|
|
26410
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
26411
|
+
if (!$util.isString(message.spanContext))
|
|
26412
|
+
return "spanContext: string expected";
|
|
26413
|
+
if (message.promoCode != null && message.hasOwnProperty("promoCode"))
|
|
26414
|
+
if (!$util.isString(message.promoCode))
|
|
26415
|
+
return "promoCode: string expected";
|
|
26416
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
26417
|
+
if (!$util.isString(message.userId))
|
|
26418
|
+
return "userId: string expected";
|
|
26419
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
26420
|
+
if (!$util.isString(message.eventId))
|
|
26421
|
+
return "eventId: string expected";
|
|
26422
|
+
return null;
|
|
26423
|
+
};
|
|
26424
|
+
|
|
26425
|
+
/**
|
|
26426
|
+
* Creates a GetPromoUsedRequest message from a plain object. Also converts values to their respective internal types.
|
|
26427
|
+
* @function fromObject
|
|
26428
|
+
* @memberof GetPromoUsedRequest
|
|
26429
|
+
* @static
|
|
26430
|
+
* @param {Object.<string,*>} object Plain object
|
|
26431
|
+
* @returns {GetPromoUsedRequest} GetPromoUsedRequest
|
|
26432
|
+
*/
|
|
26433
|
+
GetPromoUsedRequest.fromObject = function fromObject(object) {
|
|
26434
|
+
if (object instanceof $root.GetPromoUsedRequest)
|
|
26435
|
+
return object;
|
|
26436
|
+
var message = new $root.GetPromoUsedRequest();
|
|
26437
|
+
if (object.spanContext != null)
|
|
26438
|
+
message.spanContext = String(object.spanContext);
|
|
26439
|
+
if (object.promoCode != null)
|
|
26440
|
+
message.promoCode = String(object.promoCode);
|
|
26441
|
+
if (object.userId != null)
|
|
26442
|
+
message.userId = String(object.userId);
|
|
26443
|
+
if (object.eventId != null)
|
|
26444
|
+
message.eventId = String(object.eventId);
|
|
26445
|
+
return message;
|
|
26446
|
+
};
|
|
26447
|
+
|
|
26448
|
+
/**
|
|
26449
|
+
* Creates a plain object from a GetPromoUsedRequest message. Also converts values to other types if specified.
|
|
26450
|
+
* @function toObject
|
|
26451
|
+
* @memberof GetPromoUsedRequest
|
|
26452
|
+
* @static
|
|
26453
|
+
* @param {GetPromoUsedRequest} message GetPromoUsedRequest
|
|
26454
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26455
|
+
* @returns {Object.<string,*>} Plain object
|
|
26456
|
+
*/
|
|
26457
|
+
GetPromoUsedRequest.toObject = function toObject(message, options) {
|
|
26458
|
+
if (!options)
|
|
26459
|
+
options = {};
|
|
26460
|
+
var object = {};
|
|
26461
|
+
if (options.defaults) {
|
|
26462
|
+
object.spanContext = "";
|
|
26463
|
+
object.promoCode = "";
|
|
26464
|
+
object.userId = "";
|
|
26465
|
+
object.eventId = "";
|
|
26466
|
+
}
|
|
26467
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
26468
|
+
object.spanContext = message.spanContext;
|
|
26469
|
+
if (message.promoCode != null && message.hasOwnProperty("promoCode"))
|
|
26470
|
+
object.promoCode = message.promoCode;
|
|
26471
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
26472
|
+
object.userId = message.userId;
|
|
26473
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
26474
|
+
object.eventId = message.eventId;
|
|
26475
|
+
return object;
|
|
26476
|
+
};
|
|
26477
|
+
|
|
26478
|
+
/**
|
|
26479
|
+
* Converts this GetPromoUsedRequest to JSON.
|
|
26480
|
+
* @function toJSON
|
|
26481
|
+
* @memberof GetPromoUsedRequest
|
|
26482
|
+
* @instance
|
|
26483
|
+
* @returns {Object.<string,*>} JSON object
|
|
26484
|
+
*/
|
|
26485
|
+
GetPromoUsedRequest.prototype.toJSON = function toJSON() {
|
|
26486
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26487
|
+
};
|
|
26488
|
+
|
|
26489
|
+
return GetPromoUsedRequest;
|
|
26490
|
+
})();
|
|
26491
|
+
|
|
26492
|
+
$root.GetPromoUsedResponse = (function() {
|
|
26493
|
+
|
|
26494
|
+
/**
|
|
26495
|
+
* Properties of a GetPromoUsedResponse.
|
|
26496
|
+
* @exports IGetPromoUsedResponse
|
|
26497
|
+
* @interface IGetPromoUsedResponse
|
|
26498
|
+
* @property {StatusCode|null} [status] GetPromoUsedResponse status
|
|
26499
|
+
* @property {Array.<IError>|null} [errors] GetPromoUsedResponse errors
|
|
26500
|
+
* @property {number|null} [count] GetPromoUsedResponse count
|
|
26501
|
+
*/
|
|
26502
|
+
|
|
26503
|
+
/**
|
|
26504
|
+
* Constructs a new GetPromoUsedResponse.
|
|
26505
|
+
* @exports GetPromoUsedResponse
|
|
26506
|
+
* @classdesc Represents a GetPromoUsedResponse.
|
|
26507
|
+
* @implements IGetPromoUsedResponse
|
|
26508
|
+
* @constructor
|
|
26509
|
+
* @param {IGetPromoUsedResponse=} [properties] Properties to set
|
|
26510
|
+
*/
|
|
26511
|
+
function GetPromoUsedResponse(properties) {
|
|
26512
|
+
this.errors = [];
|
|
26513
|
+
if (properties)
|
|
26514
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26515
|
+
if (properties[keys[i]] != null)
|
|
26516
|
+
this[keys[i]] = properties[keys[i]];
|
|
26517
|
+
}
|
|
26518
|
+
|
|
26519
|
+
/**
|
|
26520
|
+
* GetPromoUsedResponse status.
|
|
26521
|
+
* @member {StatusCode} status
|
|
26522
|
+
* @memberof GetPromoUsedResponse
|
|
26523
|
+
* @instance
|
|
26524
|
+
*/
|
|
26525
|
+
GetPromoUsedResponse.prototype.status = 0;
|
|
26526
|
+
|
|
26527
|
+
/**
|
|
26528
|
+
* GetPromoUsedResponse errors.
|
|
26529
|
+
* @member {Array.<IError>} errors
|
|
26530
|
+
* @memberof GetPromoUsedResponse
|
|
26531
|
+
* @instance
|
|
26532
|
+
*/
|
|
26533
|
+
GetPromoUsedResponse.prototype.errors = $util.emptyArray;
|
|
26534
|
+
|
|
26535
|
+
/**
|
|
26536
|
+
* GetPromoUsedResponse count.
|
|
26537
|
+
* @member {number} count
|
|
26538
|
+
* @memberof GetPromoUsedResponse
|
|
26539
|
+
* @instance
|
|
26540
|
+
*/
|
|
26541
|
+
GetPromoUsedResponse.prototype.count = 0;
|
|
26542
|
+
|
|
26543
|
+
/**
|
|
26544
|
+
* Creates a new GetPromoUsedResponse instance using the specified properties.
|
|
26545
|
+
* @function create
|
|
26546
|
+
* @memberof GetPromoUsedResponse
|
|
26547
|
+
* @static
|
|
26548
|
+
* @param {IGetPromoUsedResponse=} [properties] Properties to set
|
|
26549
|
+
* @returns {GetPromoUsedResponse} GetPromoUsedResponse instance
|
|
26550
|
+
*/
|
|
26551
|
+
GetPromoUsedResponse.create = function create(properties) {
|
|
26552
|
+
return new GetPromoUsedResponse(properties);
|
|
26553
|
+
};
|
|
26554
|
+
|
|
26555
|
+
/**
|
|
26556
|
+
* Encodes the specified GetPromoUsedResponse message. Does not implicitly {@link GetPromoUsedResponse.verify|verify} messages.
|
|
26557
|
+
* @function encode
|
|
26558
|
+
* @memberof GetPromoUsedResponse
|
|
26559
|
+
* @static
|
|
26560
|
+
* @param {IGetPromoUsedResponse} message GetPromoUsedResponse message or plain object to encode
|
|
26561
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26562
|
+
* @returns {$protobuf.Writer} Writer
|
|
26563
|
+
*/
|
|
26564
|
+
GetPromoUsedResponse.encode = function encode(message, writer) {
|
|
26565
|
+
if (!writer)
|
|
26566
|
+
writer = $Writer.create();
|
|
26567
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
26568
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
26569
|
+
if (message.errors != null && message.errors.length)
|
|
26570
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
26571
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
26572
|
+
if (message.count != null && Object.hasOwnProperty.call(message, "count"))
|
|
26573
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.count);
|
|
26574
|
+
return writer;
|
|
26575
|
+
};
|
|
26576
|
+
|
|
26577
|
+
/**
|
|
26578
|
+
* Encodes the specified GetPromoUsedResponse message, length delimited. Does not implicitly {@link GetPromoUsedResponse.verify|verify} messages.
|
|
26579
|
+
* @function encodeDelimited
|
|
26580
|
+
* @memberof GetPromoUsedResponse
|
|
26581
|
+
* @static
|
|
26582
|
+
* @param {IGetPromoUsedResponse} message GetPromoUsedResponse message or plain object to encode
|
|
26583
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26584
|
+
* @returns {$protobuf.Writer} Writer
|
|
26585
|
+
*/
|
|
26586
|
+
GetPromoUsedResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
26587
|
+
return this.encode(message, writer).ldelim();
|
|
26588
|
+
};
|
|
26589
|
+
|
|
26590
|
+
/**
|
|
26591
|
+
* Decodes a GetPromoUsedResponse message from the specified reader or buffer.
|
|
26592
|
+
* @function decode
|
|
26593
|
+
* @memberof GetPromoUsedResponse
|
|
26594
|
+
* @static
|
|
26595
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26596
|
+
* @param {number} [length] Message length if known beforehand
|
|
26597
|
+
* @returns {GetPromoUsedResponse} GetPromoUsedResponse
|
|
26598
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26599
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26600
|
+
*/
|
|
26601
|
+
GetPromoUsedResponse.decode = function decode(reader, length) {
|
|
26602
|
+
if (!(reader instanceof $Reader))
|
|
26603
|
+
reader = $Reader.create(reader);
|
|
26604
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GetPromoUsedResponse();
|
|
26605
|
+
while (reader.pos < end) {
|
|
26606
|
+
var tag = reader.uint32();
|
|
26607
|
+
switch (tag >>> 3) {
|
|
26608
|
+
case 0:
|
|
26609
|
+
message.status = reader.int32();
|
|
26610
|
+
break;
|
|
26611
|
+
case 1:
|
|
26612
|
+
if (!(message.errors && message.errors.length))
|
|
26613
|
+
message.errors = [];
|
|
26614
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
26615
|
+
break;
|
|
26616
|
+
case 2:
|
|
26617
|
+
message.count = reader.int32();
|
|
26618
|
+
break;
|
|
26619
|
+
default:
|
|
26620
|
+
reader.skipType(tag & 7);
|
|
26621
|
+
break;
|
|
26622
|
+
}
|
|
26623
|
+
}
|
|
26624
|
+
return message;
|
|
26625
|
+
};
|
|
26626
|
+
|
|
26627
|
+
/**
|
|
26628
|
+
* Decodes a GetPromoUsedResponse message from the specified reader or buffer, length delimited.
|
|
26629
|
+
* @function decodeDelimited
|
|
26630
|
+
* @memberof GetPromoUsedResponse
|
|
26631
|
+
* @static
|
|
26632
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26633
|
+
* @returns {GetPromoUsedResponse} GetPromoUsedResponse
|
|
26634
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26635
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26636
|
+
*/
|
|
26637
|
+
GetPromoUsedResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
26638
|
+
if (!(reader instanceof $Reader))
|
|
26639
|
+
reader = new $Reader(reader);
|
|
26640
|
+
return this.decode(reader, reader.uint32());
|
|
26641
|
+
};
|
|
26642
|
+
|
|
26643
|
+
/**
|
|
26644
|
+
* Verifies a GetPromoUsedResponse message.
|
|
26645
|
+
* @function verify
|
|
26646
|
+
* @memberof GetPromoUsedResponse
|
|
26647
|
+
* @static
|
|
26648
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26649
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26650
|
+
*/
|
|
26651
|
+
GetPromoUsedResponse.verify = function verify(message) {
|
|
26652
|
+
if (typeof message !== "object" || message === null)
|
|
26653
|
+
return "object expected";
|
|
26654
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
26655
|
+
switch (message.status) {
|
|
26656
|
+
default:
|
|
26657
|
+
return "status: enum value expected";
|
|
26658
|
+
case 0:
|
|
26659
|
+
case 200:
|
|
26660
|
+
case 400:
|
|
26661
|
+
case 401:
|
|
26662
|
+
case 403:
|
|
26663
|
+
case 422:
|
|
26664
|
+
case 500:
|
|
26665
|
+
case 504:
|
|
26666
|
+
break;
|
|
26667
|
+
}
|
|
26668
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
26669
|
+
if (!Array.isArray(message.errors))
|
|
26670
|
+
return "errors: array expected";
|
|
26671
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
26672
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
26673
|
+
if (error)
|
|
26674
|
+
return "errors." + error;
|
|
26675
|
+
}
|
|
26676
|
+
}
|
|
26677
|
+
if (message.count != null && message.hasOwnProperty("count"))
|
|
26678
|
+
if (!$util.isInteger(message.count))
|
|
26679
|
+
return "count: integer expected";
|
|
26680
|
+
return null;
|
|
26681
|
+
};
|
|
26682
|
+
|
|
26683
|
+
/**
|
|
26684
|
+
* Creates a GetPromoUsedResponse message from a plain object. Also converts values to their respective internal types.
|
|
26685
|
+
* @function fromObject
|
|
26686
|
+
* @memberof GetPromoUsedResponse
|
|
26687
|
+
* @static
|
|
26688
|
+
* @param {Object.<string,*>} object Plain object
|
|
26689
|
+
* @returns {GetPromoUsedResponse} GetPromoUsedResponse
|
|
26690
|
+
*/
|
|
26691
|
+
GetPromoUsedResponse.fromObject = function fromObject(object) {
|
|
26692
|
+
if (object instanceof $root.GetPromoUsedResponse)
|
|
26693
|
+
return object;
|
|
26694
|
+
var message = new $root.GetPromoUsedResponse();
|
|
26695
|
+
switch (object.status) {
|
|
26696
|
+
case "UNKNOWN_CODE":
|
|
26697
|
+
case 0:
|
|
26698
|
+
message.status = 0;
|
|
26699
|
+
break;
|
|
26700
|
+
case "OK":
|
|
26701
|
+
case 200:
|
|
26702
|
+
message.status = 200;
|
|
26703
|
+
break;
|
|
26704
|
+
case "BAD_REQUEST":
|
|
26705
|
+
case 400:
|
|
26706
|
+
message.status = 400;
|
|
26707
|
+
break;
|
|
26708
|
+
case "UNAUTHORIZED":
|
|
26709
|
+
case 401:
|
|
26710
|
+
message.status = 401;
|
|
26711
|
+
break;
|
|
26712
|
+
case "FORBIDDEN":
|
|
26713
|
+
case 403:
|
|
26714
|
+
message.status = 403;
|
|
26715
|
+
break;
|
|
26716
|
+
case "UNPROCESSABLE_ENTITY":
|
|
26717
|
+
case 422:
|
|
26718
|
+
message.status = 422;
|
|
26719
|
+
break;
|
|
26720
|
+
case "INTERNAL_SERVER_ERROR":
|
|
26721
|
+
case 500:
|
|
26722
|
+
message.status = 500;
|
|
26723
|
+
break;
|
|
26724
|
+
case "GATEWAY_TIMEOUT":
|
|
26725
|
+
case 504:
|
|
26726
|
+
message.status = 504;
|
|
26727
|
+
break;
|
|
26728
|
+
}
|
|
26729
|
+
if (object.errors) {
|
|
26730
|
+
if (!Array.isArray(object.errors))
|
|
26731
|
+
throw TypeError(".GetPromoUsedResponse.errors: array expected");
|
|
26732
|
+
message.errors = [];
|
|
26733
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
26734
|
+
if (typeof object.errors[i] !== "object")
|
|
26735
|
+
throw TypeError(".GetPromoUsedResponse.errors: object expected");
|
|
26736
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
26737
|
+
}
|
|
26738
|
+
}
|
|
26739
|
+
if (object.count != null)
|
|
26740
|
+
message.count = object.count | 0;
|
|
26741
|
+
return message;
|
|
26742
|
+
};
|
|
26743
|
+
|
|
26744
|
+
/**
|
|
26745
|
+
* Creates a plain object from a GetPromoUsedResponse message. Also converts values to other types if specified.
|
|
26746
|
+
* @function toObject
|
|
26747
|
+
* @memberof GetPromoUsedResponse
|
|
26748
|
+
* @static
|
|
26749
|
+
* @param {GetPromoUsedResponse} message GetPromoUsedResponse
|
|
26750
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26751
|
+
* @returns {Object.<string,*>} Plain object
|
|
26752
|
+
*/
|
|
26753
|
+
GetPromoUsedResponse.toObject = function toObject(message, options) {
|
|
26754
|
+
if (!options)
|
|
26755
|
+
options = {};
|
|
26756
|
+
var object = {};
|
|
26757
|
+
if (options.arrays || options.defaults)
|
|
26758
|
+
object.errors = [];
|
|
26759
|
+
if (options.defaults) {
|
|
26760
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
26761
|
+
object.count = 0;
|
|
26762
|
+
}
|
|
26763
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
26764
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
26765
|
+
if (message.errors && message.errors.length) {
|
|
26766
|
+
object.errors = [];
|
|
26767
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
26768
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
26769
|
+
}
|
|
26770
|
+
if (message.count != null && message.hasOwnProperty("count"))
|
|
26771
|
+
object.count = message.count;
|
|
26772
|
+
return object;
|
|
26773
|
+
};
|
|
26774
|
+
|
|
26775
|
+
/**
|
|
26776
|
+
* Converts this GetPromoUsedResponse to JSON.
|
|
26777
|
+
* @function toJSON
|
|
26778
|
+
* @memberof GetPromoUsedResponse
|
|
26779
|
+
* @instance
|
|
26780
|
+
* @returns {Object.<string,*>} JSON object
|
|
26781
|
+
*/
|
|
26782
|
+
GetPromoUsedResponse.prototype.toJSON = function toJSON() {
|
|
26783
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26784
|
+
};
|
|
26785
|
+
|
|
26786
|
+
return GetPromoUsedResponse;
|
|
26787
|
+
})();
|
|
26788
|
+
|
|
26238
26789
|
$root.OrderService = (function() {
|
|
26239
26790
|
|
|
26240
26791
|
/**
|
|
@@ -26762,6 +27313,39 @@ $root.OrderService = (function() {
|
|
|
26762
27313
|
* @variation 2
|
|
26763
27314
|
*/
|
|
26764
27315
|
|
|
27316
|
+
/**
|
|
27317
|
+
* Callback as used by {@link OrderService#getPromoUsed}.
|
|
27318
|
+
* @memberof OrderService
|
|
27319
|
+
* @typedef getPromoUsedCallback
|
|
27320
|
+
* @type {function}
|
|
27321
|
+
* @param {Error|null} error Error, if any
|
|
27322
|
+
* @param {GetPromoUsedResponse} [response] GetPromoUsedResponse
|
|
27323
|
+
*/
|
|
27324
|
+
|
|
27325
|
+
/**
|
|
27326
|
+
* Calls getPromoUsed.
|
|
27327
|
+
* @function getPromoUsed
|
|
27328
|
+
* @memberof OrderService
|
|
27329
|
+
* @instance
|
|
27330
|
+
* @param {IGetPromoUsedRequest} request GetPromoUsedRequest message or plain object
|
|
27331
|
+
* @param {OrderService.getPromoUsedCallback} callback Node-style callback called with the error, if any, and GetPromoUsedResponse
|
|
27332
|
+
* @returns {undefined}
|
|
27333
|
+
* @variation 1
|
|
27334
|
+
*/
|
|
27335
|
+
Object.defineProperty(OrderService.prototype.getPromoUsed = function getPromoUsed(request, callback) {
|
|
27336
|
+
return this.rpcCall(getPromoUsed, $root.GetPromoUsedRequest, $root.GetPromoUsedResponse, request, callback);
|
|
27337
|
+
}, "name", { value: "getPromoUsed" });
|
|
27338
|
+
|
|
27339
|
+
/**
|
|
27340
|
+
* Calls getPromoUsed.
|
|
27341
|
+
* @function getPromoUsed
|
|
27342
|
+
* @memberof OrderService
|
|
27343
|
+
* @instance
|
|
27344
|
+
* @param {IGetPromoUsedRequest} request GetPromoUsedRequest message or plain object
|
|
27345
|
+
* @returns {Promise<GetPromoUsedResponse>} Promise
|
|
27346
|
+
* @variation 2
|
|
27347
|
+
*/
|
|
27348
|
+
|
|
26765
27349
|
return OrderService;
|
|
26766
27350
|
})();
|
|
26767
27351
|
|
|
@@ -39099,6 +39683,326 @@ $root.EventTicketsRequest = (function() {
|
|
|
39099
39683
|
return EventTicketsRequest;
|
|
39100
39684
|
})();
|
|
39101
39685
|
|
|
39686
|
+
$root.EventTickets = (function() {
|
|
39687
|
+
|
|
39688
|
+
/**
|
|
39689
|
+
* Properties of an EventTickets.
|
|
39690
|
+
* @exports IEventTickets
|
|
39691
|
+
* @interface IEventTickets
|
|
39692
|
+
* @property {string|null} [promoType] EventTickets promoType
|
|
39693
|
+
* @property {number|null} [remainingQty] EventTickets remainingQty
|
|
39694
|
+
* @property {boolean|null} [active] EventTickets active
|
|
39695
|
+
* @property {number|null} [startsAt] EventTickets startsAt
|
|
39696
|
+
* @property {number|null} [endsAt] EventTickets endsAt
|
|
39697
|
+
* @property {Array.<ITicketType>|null} [eventTickets] EventTickets eventTickets
|
|
39698
|
+
*/
|
|
39699
|
+
|
|
39700
|
+
/**
|
|
39701
|
+
* Constructs a new EventTickets.
|
|
39702
|
+
* @exports EventTickets
|
|
39703
|
+
* @classdesc Represents an EventTickets.
|
|
39704
|
+
* @implements IEventTickets
|
|
39705
|
+
* @constructor
|
|
39706
|
+
* @param {IEventTickets=} [properties] Properties to set
|
|
39707
|
+
*/
|
|
39708
|
+
function EventTickets(properties) {
|
|
39709
|
+
this.eventTickets = [];
|
|
39710
|
+
if (properties)
|
|
39711
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39712
|
+
if (properties[keys[i]] != null)
|
|
39713
|
+
this[keys[i]] = properties[keys[i]];
|
|
39714
|
+
}
|
|
39715
|
+
|
|
39716
|
+
/**
|
|
39717
|
+
* EventTickets promoType.
|
|
39718
|
+
* @member {string} promoType
|
|
39719
|
+
* @memberof EventTickets
|
|
39720
|
+
* @instance
|
|
39721
|
+
*/
|
|
39722
|
+
EventTickets.prototype.promoType = "";
|
|
39723
|
+
|
|
39724
|
+
/**
|
|
39725
|
+
* EventTickets remainingQty.
|
|
39726
|
+
* @member {number} remainingQty
|
|
39727
|
+
* @memberof EventTickets
|
|
39728
|
+
* @instance
|
|
39729
|
+
*/
|
|
39730
|
+
EventTickets.prototype.remainingQty = 0;
|
|
39731
|
+
|
|
39732
|
+
/**
|
|
39733
|
+
* EventTickets active.
|
|
39734
|
+
* @member {boolean} active
|
|
39735
|
+
* @memberof EventTickets
|
|
39736
|
+
* @instance
|
|
39737
|
+
*/
|
|
39738
|
+
EventTickets.prototype.active = false;
|
|
39739
|
+
|
|
39740
|
+
/**
|
|
39741
|
+
* EventTickets startsAt.
|
|
39742
|
+
* @member {number} startsAt
|
|
39743
|
+
* @memberof EventTickets
|
|
39744
|
+
* @instance
|
|
39745
|
+
*/
|
|
39746
|
+
EventTickets.prototype.startsAt = 0;
|
|
39747
|
+
|
|
39748
|
+
/**
|
|
39749
|
+
* EventTickets endsAt.
|
|
39750
|
+
* @member {number} endsAt
|
|
39751
|
+
* @memberof EventTickets
|
|
39752
|
+
* @instance
|
|
39753
|
+
*/
|
|
39754
|
+
EventTickets.prototype.endsAt = 0;
|
|
39755
|
+
|
|
39756
|
+
/**
|
|
39757
|
+
* EventTickets eventTickets.
|
|
39758
|
+
* @member {Array.<ITicketType>} eventTickets
|
|
39759
|
+
* @memberof EventTickets
|
|
39760
|
+
* @instance
|
|
39761
|
+
*/
|
|
39762
|
+
EventTickets.prototype.eventTickets = $util.emptyArray;
|
|
39763
|
+
|
|
39764
|
+
/**
|
|
39765
|
+
* Creates a new EventTickets instance using the specified properties.
|
|
39766
|
+
* @function create
|
|
39767
|
+
* @memberof EventTickets
|
|
39768
|
+
* @static
|
|
39769
|
+
* @param {IEventTickets=} [properties] Properties to set
|
|
39770
|
+
* @returns {EventTickets} EventTickets instance
|
|
39771
|
+
*/
|
|
39772
|
+
EventTickets.create = function create(properties) {
|
|
39773
|
+
return new EventTickets(properties);
|
|
39774
|
+
};
|
|
39775
|
+
|
|
39776
|
+
/**
|
|
39777
|
+
* Encodes the specified EventTickets message. Does not implicitly {@link EventTickets.verify|verify} messages.
|
|
39778
|
+
* @function encode
|
|
39779
|
+
* @memberof EventTickets
|
|
39780
|
+
* @static
|
|
39781
|
+
* @param {IEventTickets} message EventTickets message or plain object to encode
|
|
39782
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39783
|
+
* @returns {$protobuf.Writer} Writer
|
|
39784
|
+
*/
|
|
39785
|
+
EventTickets.encode = function encode(message, writer) {
|
|
39786
|
+
if (!writer)
|
|
39787
|
+
writer = $Writer.create();
|
|
39788
|
+
if (message.promoType != null && Object.hasOwnProperty.call(message, "promoType"))
|
|
39789
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.promoType);
|
|
39790
|
+
if (message.eventTickets != null && message.eventTickets.length)
|
|
39791
|
+
for (var i = 0; i < message.eventTickets.length; ++i)
|
|
39792
|
+
$root.TicketType.encode(message.eventTickets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
39793
|
+
if (message.remainingQty != null && Object.hasOwnProperty.call(message, "remainingQty"))
|
|
39794
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.remainingQty);
|
|
39795
|
+
if (message.active != null && Object.hasOwnProperty.call(message, "active"))
|
|
39796
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.active);
|
|
39797
|
+
if (message.startsAt != null && Object.hasOwnProperty.call(message, "startsAt"))
|
|
39798
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.startsAt);
|
|
39799
|
+
if (message.endsAt != null && Object.hasOwnProperty.call(message, "endsAt"))
|
|
39800
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.endsAt);
|
|
39801
|
+
return writer;
|
|
39802
|
+
};
|
|
39803
|
+
|
|
39804
|
+
/**
|
|
39805
|
+
* Encodes the specified EventTickets message, length delimited. Does not implicitly {@link EventTickets.verify|verify} messages.
|
|
39806
|
+
* @function encodeDelimited
|
|
39807
|
+
* @memberof EventTickets
|
|
39808
|
+
* @static
|
|
39809
|
+
* @param {IEventTickets} message EventTickets message or plain object to encode
|
|
39810
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39811
|
+
* @returns {$protobuf.Writer} Writer
|
|
39812
|
+
*/
|
|
39813
|
+
EventTickets.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39814
|
+
return this.encode(message, writer).ldelim();
|
|
39815
|
+
};
|
|
39816
|
+
|
|
39817
|
+
/**
|
|
39818
|
+
* Decodes an EventTickets message from the specified reader or buffer.
|
|
39819
|
+
* @function decode
|
|
39820
|
+
* @memberof EventTickets
|
|
39821
|
+
* @static
|
|
39822
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39823
|
+
* @param {number} [length] Message length if known beforehand
|
|
39824
|
+
* @returns {EventTickets} EventTickets
|
|
39825
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39826
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39827
|
+
*/
|
|
39828
|
+
EventTickets.decode = function decode(reader, length) {
|
|
39829
|
+
if (!(reader instanceof $Reader))
|
|
39830
|
+
reader = $Reader.create(reader);
|
|
39831
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventTickets();
|
|
39832
|
+
while (reader.pos < end) {
|
|
39833
|
+
var tag = reader.uint32();
|
|
39834
|
+
switch (tag >>> 3) {
|
|
39835
|
+
case 0:
|
|
39836
|
+
message.promoType = reader.string();
|
|
39837
|
+
break;
|
|
39838
|
+
case 2:
|
|
39839
|
+
message.remainingQty = reader.int32();
|
|
39840
|
+
break;
|
|
39841
|
+
case 3:
|
|
39842
|
+
message.active = reader.bool();
|
|
39843
|
+
break;
|
|
39844
|
+
case 4:
|
|
39845
|
+
message.startsAt = reader.int32();
|
|
39846
|
+
break;
|
|
39847
|
+
case 5:
|
|
39848
|
+
message.endsAt = reader.int32();
|
|
39849
|
+
break;
|
|
39850
|
+
case 1:
|
|
39851
|
+
if (!(message.eventTickets && message.eventTickets.length))
|
|
39852
|
+
message.eventTickets = [];
|
|
39853
|
+
message.eventTickets.push($root.TicketType.decode(reader, reader.uint32()));
|
|
39854
|
+
break;
|
|
39855
|
+
default:
|
|
39856
|
+
reader.skipType(tag & 7);
|
|
39857
|
+
break;
|
|
39858
|
+
}
|
|
39859
|
+
}
|
|
39860
|
+
return message;
|
|
39861
|
+
};
|
|
39862
|
+
|
|
39863
|
+
/**
|
|
39864
|
+
* Decodes an EventTickets message from the specified reader or buffer, length delimited.
|
|
39865
|
+
* @function decodeDelimited
|
|
39866
|
+
* @memberof EventTickets
|
|
39867
|
+
* @static
|
|
39868
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39869
|
+
* @returns {EventTickets} EventTickets
|
|
39870
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39871
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39872
|
+
*/
|
|
39873
|
+
EventTickets.decodeDelimited = function decodeDelimited(reader) {
|
|
39874
|
+
if (!(reader instanceof $Reader))
|
|
39875
|
+
reader = new $Reader(reader);
|
|
39876
|
+
return this.decode(reader, reader.uint32());
|
|
39877
|
+
};
|
|
39878
|
+
|
|
39879
|
+
/**
|
|
39880
|
+
* Verifies an EventTickets message.
|
|
39881
|
+
* @function verify
|
|
39882
|
+
* @memberof EventTickets
|
|
39883
|
+
* @static
|
|
39884
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39885
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39886
|
+
*/
|
|
39887
|
+
EventTickets.verify = function verify(message) {
|
|
39888
|
+
if (typeof message !== "object" || message === null)
|
|
39889
|
+
return "object expected";
|
|
39890
|
+
if (message.promoType != null && message.hasOwnProperty("promoType"))
|
|
39891
|
+
if (!$util.isString(message.promoType))
|
|
39892
|
+
return "promoType: string expected";
|
|
39893
|
+
if (message.remainingQty != null && message.hasOwnProperty("remainingQty"))
|
|
39894
|
+
if (!$util.isInteger(message.remainingQty))
|
|
39895
|
+
return "remainingQty: integer expected";
|
|
39896
|
+
if (message.active != null && message.hasOwnProperty("active"))
|
|
39897
|
+
if (typeof message.active !== "boolean")
|
|
39898
|
+
return "active: boolean expected";
|
|
39899
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
39900
|
+
if (!$util.isInteger(message.startsAt))
|
|
39901
|
+
return "startsAt: integer expected";
|
|
39902
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
39903
|
+
if (!$util.isInteger(message.endsAt))
|
|
39904
|
+
return "endsAt: integer expected";
|
|
39905
|
+
if (message.eventTickets != null && message.hasOwnProperty("eventTickets")) {
|
|
39906
|
+
if (!Array.isArray(message.eventTickets))
|
|
39907
|
+
return "eventTickets: array expected";
|
|
39908
|
+
for (var i = 0; i < message.eventTickets.length; ++i) {
|
|
39909
|
+
var error = $root.TicketType.verify(message.eventTickets[i]);
|
|
39910
|
+
if (error)
|
|
39911
|
+
return "eventTickets." + error;
|
|
39912
|
+
}
|
|
39913
|
+
}
|
|
39914
|
+
return null;
|
|
39915
|
+
};
|
|
39916
|
+
|
|
39917
|
+
/**
|
|
39918
|
+
* Creates an EventTickets message from a plain object. Also converts values to their respective internal types.
|
|
39919
|
+
* @function fromObject
|
|
39920
|
+
* @memberof EventTickets
|
|
39921
|
+
* @static
|
|
39922
|
+
* @param {Object.<string,*>} object Plain object
|
|
39923
|
+
* @returns {EventTickets} EventTickets
|
|
39924
|
+
*/
|
|
39925
|
+
EventTickets.fromObject = function fromObject(object) {
|
|
39926
|
+
if (object instanceof $root.EventTickets)
|
|
39927
|
+
return object;
|
|
39928
|
+
var message = new $root.EventTickets();
|
|
39929
|
+
if (object.promoType != null)
|
|
39930
|
+
message.promoType = String(object.promoType);
|
|
39931
|
+
if (object.remainingQty != null)
|
|
39932
|
+
message.remainingQty = object.remainingQty | 0;
|
|
39933
|
+
if (object.active != null)
|
|
39934
|
+
message.active = Boolean(object.active);
|
|
39935
|
+
if (object.startsAt != null)
|
|
39936
|
+
message.startsAt = object.startsAt | 0;
|
|
39937
|
+
if (object.endsAt != null)
|
|
39938
|
+
message.endsAt = object.endsAt | 0;
|
|
39939
|
+
if (object.eventTickets) {
|
|
39940
|
+
if (!Array.isArray(object.eventTickets))
|
|
39941
|
+
throw TypeError(".EventTickets.eventTickets: array expected");
|
|
39942
|
+
message.eventTickets = [];
|
|
39943
|
+
for (var i = 0; i < object.eventTickets.length; ++i) {
|
|
39944
|
+
if (typeof object.eventTickets[i] !== "object")
|
|
39945
|
+
throw TypeError(".EventTickets.eventTickets: object expected");
|
|
39946
|
+
message.eventTickets[i] = $root.TicketType.fromObject(object.eventTickets[i]);
|
|
39947
|
+
}
|
|
39948
|
+
}
|
|
39949
|
+
return message;
|
|
39950
|
+
};
|
|
39951
|
+
|
|
39952
|
+
/**
|
|
39953
|
+
* Creates a plain object from an EventTickets message. Also converts values to other types if specified.
|
|
39954
|
+
* @function toObject
|
|
39955
|
+
* @memberof EventTickets
|
|
39956
|
+
* @static
|
|
39957
|
+
* @param {EventTickets} message EventTickets
|
|
39958
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39959
|
+
* @returns {Object.<string,*>} Plain object
|
|
39960
|
+
*/
|
|
39961
|
+
EventTickets.toObject = function toObject(message, options) {
|
|
39962
|
+
if (!options)
|
|
39963
|
+
options = {};
|
|
39964
|
+
var object = {};
|
|
39965
|
+
if (options.arrays || options.defaults)
|
|
39966
|
+
object.eventTickets = [];
|
|
39967
|
+
if (options.defaults) {
|
|
39968
|
+
object.promoType = "";
|
|
39969
|
+
object.remainingQty = 0;
|
|
39970
|
+
object.active = false;
|
|
39971
|
+
object.startsAt = 0;
|
|
39972
|
+
object.endsAt = 0;
|
|
39973
|
+
}
|
|
39974
|
+
if (message.promoType != null && message.hasOwnProperty("promoType"))
|
|
39975
|
+
object.promoType = message.promoType;
|
|
39976
|
+
if (message.eventTickets && message.eventTickets.length) {
|
|
39977
|
+
object.eventTickets = [];
|
|
39978
|
+
for (var j = 0; j < message.eventTickets.length; ++j)
|
|
39979
|
+
object.eventTickets[j] = $root.TicketType.toObject(message.eventTickets[j], options);
|
|
39980
|
+
}
|
|
39981
|
+
if (message.remainingQty != null && message.hasOwnProperty("remainingQty"))
|
|
39982
|
+
object.remainingQty = message.remainingQty;
|
|
39983
|
+
if (message.active != null && message.hasOwnProperty("active"))
|
|
39984
|
+
object.active = message.active;
|
|
39985
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
39986
|
+
object.startsAt = message.startsAt;
|
|
39987
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
39988
|
+
object.endsAt = message.endsAt;
|
|
39989
|
+
return object;
|
|
39990
|
+
};
|
|
39991
|
+
|
|
39992
|
+
/**
|
|
39993
|
+
* Converts this EventTickets to JSON.
|
|
39994
|
+
* @function toJSON
|
|
39995
|
+
* @memberof EventTickets
|
|
39996
|
+
* @instance
|
|
39997
|
+
* @returns {Object.<string,*>} JSON object
|
|
39998
|
+
*/
|
|
39999
|
+
EventTickets.prototype.toJSON = function toJSON() {
|
|
40000
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40001
|
+
};
|
|
40002
|
+
|
|
40003
|
+
return EventTickets;
|
|
40004
|
+
})();
|
|
40005
|
+
|
|
39102
40006
|
$root.EventTicketsResponse = (function() {
|
|
39103
40007
|
|
|
39104
40008
|
/**
|
|
@@ -39107,7 +40011,7 @@ $root.EventTicketsResponse = (function() {
|
|
|
39107
40011
|
* @interface IEventTicketsResponse
|
|
39108
40012
|
* @property {StatusCode|null} [status] EventTicketsResponse status
|
|
39109
40013
|
* @property {Array.<IError>|null} [errors] EventTicketsResponse errors
|
|
39110
|
-
* @property {Array.<
|
|
40014
|
+
* @property {Array.<IEventTickets>|null} [tickets] EventTicketsResponse tickets
|
|
39111
40015
|
*/
|
|
39112
40016
|
|
|
39113
40017
|
/**
|
|
@@ -39145,7 +40049,7 @@ $root.EventTicketsResponse = (function() {
|
|
|
39145
40049
|
|
|
39146
40050
|
/**
|
|
39147
40051
|
* EventTicketsResponse tickets.
|
|
39148
|
-
* @member {Array.<
|
|
40052
|
+
* @member {Array.<IEventTickets>} tickets
|
|
39149
40053
|
* @memberof EventTicketsResponse
|
|
39150
40054
|
* @instance
|
|
39151
40055
|
*/
|
|
@@ -39182,7 +40086,7 @@ $root.EventTicketsResponse = (function() {
|
|
|
39182
40086
|
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
39183
40087
|
if (message.tickets != null && message.tickets.length)
|
|
39184
40088
|
for (var i = 0; i < message.tickets.length; ++i)
|
|
39185
|
-
$root.
|
|
40089
|
+
$root.EventTickets.encode(message.tickets[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
39186
40090
|
return writer;
|
|
39187
40091
|
};
|
|
39188
40092
|
|
|
@@ -39228,7 +40132,7 @@ $root.EventTicketsResponse = (function() {
|
|
|
39228
40132
|
case 2:
|
|
39229
40133
|
if (!(message.tickets && message.tickets.length))
|
|
39230
40134
|
message.tickets = [];
|
|
39231
|
-
message.tickets.push($root.
|
|
40135
|
+
message.tickets.push($root.EventTickets.decode(reader, reader.uint32()));
|
|
39232
40136
|
break;
|
|
39233
40137
|
default:
|
|
39234
40138
|
reader.skipType(tag & 7);
|
|
@@ -39292,7 +40196,7 @@ $root.EventTicketsResponse = (function() {
|
|
|
39292
40196
|
if (!Array.isArray(message.tickets))
|
|
39293
40197
|
return "tickets: array expected";
|
|
39294
40198
|
for (var i = 0; i < message.tickets.length; ++i) {
|
|
39295
|
-
var error = $root.
|
|
40199
|
+
var error = $root.EventTickets.verify(message.tickets[i]);
|
|
39296
40200
|
if (error)
|
|
39297
40201
|
return "tickets." + error;
|
|
39298
40202
|
}
|
|
@@ -39363,7 +40267,7 @@ $root.EventTicketsResponse = (function() {
|
|
|
39363
40267
|
for (var i = 0; i < object.tickets.length; ++i) {
|
|
39364
40268
|
if (typeof object.tickets[i] !== "object")
|
|
39365
40269
|
throw TypeError(".EventTicketsResponse.tickets: object expected");
|
|
39366
|
-
message.tickets[i] = $root.
|
|
40270
|
+
message.tickets[i] = $root.EventTickets.fromObject(object.tickets[i]);
|
|
39367
40271
|
}
|
|
39368
40272
|
}
|
|
39369
40273
|
return message;
|
|
@@ -39398,7 +40302,7 @@ $root.EventTicketsResponse = (function() {
|
|
|
39398
40302
|
if (message.tickets && message.tickets.length) {
|
|
39399
40303
|
object.tickets = [];
|
|
39400
40304
|
for (var j = 0; j < message.tickets.length; ++j)
|
|
39401
|
-
object.tickets[j] = $root.
|
|
40305
|
+
object.tickets[j] = $root.EventTickets.toObject(message.tickets[j], options);
|
|
39402
40306
|
}
|
|
39403
40307
|
return object;
|
|
39404
40308
|
};
|
|
@@ -91688,6 +92592,8 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
91688
92592
|
* @property {string|null} [spanContext] FindUserByEmailRequest spanContext
|
|
91689
92593
|
* @property {string|null} [email] FindUserByEmailRequest email
|
|
91690
92594
|
* @property {string|null} [phoneNumber] FindUserByEmailRequest phoneNumber
|
|
92595
|
+
* @property {string|null} [promoCode] FindUserByEmailRequest promoCode
|
|
92596
|
+
* @property {string|null} [eventId] FindUserByEmailRequest eventId
|
|
91691
92597
|
*/
|
|
91692
92598
|
|
|
91693
92599
|
/**
|
|
@@ -91729,6 +92635,22 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
91729
92635
|
*/
|
|
91730
92636
|
FindUserByEmailRequest.prototype.phoneNumber = "";
|
|
91731
92637
|
|
|
92638
|
+
/**
|
|
92639
|
+
* FindUserByEmailRequest promoCode.
|
|
92640
|
+
* @member {string} promoCode
|
|
92641
|
+
* @memberof FindUserByEmailRequest
|
|
92642
|
+
* @instance
|
|
92643
|
+
*/
|
|
92644
|
+
FindUserByEmailRequest.prototype.promoCode = "";
|
|
92645
|
+
|
|
92646
|
+
/**
|
|
92647
|
+
* FindUserByEmailRequest eventId.
|
|
92648
|
+
* @member {string} eventId
|
|
92649
|
+
* @memberof FindUserByEmailRequest
|
|
92650
|
+
* @instance
|
|
92651
|
+
*/
|
|
92652
|
+
FindUserByEmailRequest.prototype.eventId = "";
|
|
92653
|
+
|
|
91732
92654
|
/**
|
|
91733
92655
|
* Creates a new FindUserByEmailRequest instance using the specified properties.
|
|
91734
92656
|
* @function create
|
|
@@ -91759,6 +92681,10 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
91759
92681
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
91760
92682
|
if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber"))
|
|
91761
92683
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.phoneNumber);
|
|
92684
|
+
if (message.promoCode != null && Object.hasOwnProperty.call(message, "promoCode"))
|
|
92685
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.promoCode);
|
|
92686
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
92687
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.eventId);
|
|
91762
92688
|
return writer;
|
|
91763
92689
|
};
|
|
91764
92690
|
|
|
@@ -91802,6 +92728,12 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
91802
92728
|
case 3:
|
|
91803
92729
|
message.phoneNumber = reader.string();
|
|
91804
92730
|
break;
|
|
92731
|
+
case 4:
|
|
92732
|
+
message.promoCode = reader.string();
|
|
92733
|
+
break;
|
|
92734
|
+
case 5:
|
|
92735
|
+
message.eventId = reader.string();
|
|
92736
|
+
break;
|
|
91805
92737
|
default:
|
|
91806
92738
|
reader.skipType(tag & 7);
|
|
91807
92739
|
break;
|
|
@@ -91846,6 +92778,12 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
91846
92778
|
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
91847
92779
|
if (!$util.isString(message.phoneNumber))
|
|
91848
92780
|
return "phoneNumber: string expected";
|
|
92781
|
+
if (message.promoCode != null && message.hasOwnProperty("promoCode"))
|
|
92782
|
+
if (!$util.isString(message.promoCode))
|
|
92783
|
+
return "promoCode: string expected";
|
|
92784
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
92785
|
+
if (!$util.isString(message.eventId))
|
|
92786
|
+
return "eventId: string expected";
|
|
91849
92787
|
return null;
|
|
91850
92788
|
};
|
|
91851
92789
|
|
|
@@ -91867,6 +92805,10 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
91867
92805
|
message.email = String(object.email);
|
|
91868
92806
|
if (object.phoneNumber != null)
|
|
91869
92807
|
message.phoneNumber = String(object.phoneNumber);
|
|
92808
|
+
if (object.promoCode != null)
|
|
92809
|
+
message.promoCode = String(object.promoCode);
|
|
92810
|
+
if (object.eventId != null)
|
|
92811
|
+
message.eventId = String(object.eventId);
|
|
91870
92812
|
return message;
|
|
91871
92813
|
};
|
|
91872
92814
|
|
|
@@ -91887,6 +92829,8 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
91887
92829
|
object.spanContext = "";
|
|
91888
92830
|
object.email = "";
|
|
91889
92831
|
object.phoneNumber = "";
|
|
92832
|
+
object.promoCode = "";
|
|
92833
|
+
object.eventId = "";
|
|
91890
92834
|
}
|
|
91891
92835
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
91892
92836
|
object.spanContext = message.spanContext;
|
|
@@ -91894,6 +92838,10 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
91894
92838
|
object.email = message.email;
|
|
91895
92839
|
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
91896
92840
|
object.phoneNumber = message.phoneNumber;
|
|
92841
|
+
if (message.promoCode != null && message.hasOwnProperty("promoCode"))
|
|
92842
|
+
object.promoCode = message.promoCode;
|
|
92843
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
92844
|
+
object.eventId = message.eventId;
|
|
91897
92845
|
return object;
|
|
91898
92846
|
};
|
|
91899
92847
|
|
|
@@ -91920,6 +92868,7 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
91920
92868
|
* @property {StatusCode|null} [status] FindUserByEmailResponse status
|
|
91921
92869
|
* @property {Array.<IError>|null} [errors] FindUserByEmailResponse errors
|
|
91922
92870
|
* @property {IUser|null} [user] FindUserByEmailResponse user
|
|
92871
|
+
* @property {number|null} [promoLeft] FindUserByEmailResponse promoLeft
|
|
91923
92872
|
*/
|
|
91924
92873
|
|
|
91925
92874
|
/**
|
|
@@ -91962,6 +92911,14 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
91962
92911
|
*/
|
|
91963
92912
|
FindUserByEmailResponse.prototype.user = null;
|
|
91964
92913
|
|
|
92914
|
+
/**
|
|
92915
|
+
* FindUserByEmailResponse promoLeft.
|
|
92916
|
+
* @member {number} promoLeft
|
|
92917
|
+
* @memberof FindUserByEmailResponse
|
|
92918
|
+
* @instance
|
|
92919
|
+
*/
|
|
92920
|
+
FindUserByEmailResponse.prototype.promoLeft = 0;
|
|
92921
|
+
|
|
91965
92922
|
/**
|
|
91966
92923
|
* Creates a new FindUserByEmailResponse instance using the specified properties.
|
|
91967
92924
|
* @function create
|
|
@@ -91993,6 +92950,8 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
91993
92950
|
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
91994
92951
|
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
91995
92952
|
$root.User.encode(message.user, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
92953
|
+
if (message.promoLeft != null && Object.hasOwnProperty.call(message, "promoLeft"))
|
|
92954
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.promoLeft);
|
|
91996
92955
|
return writer;
|
|
91997
92956
|
};
|
|
91998
92957
|
|
|
@@ -92038,6 +92997,9 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
92038
92997
|
case 3:
|
|
92039
92998
|
message.user = $root.User.decode(reader, reader.uint32());
|
|
92040
92999
|
break;
|
|
93000
|
+
case 4:
|
|
93001
|
+
message.promoLeft = reader.int32();
|
|
93002
|
+
break;
|
|
92041
93003
|
default:
|
|
92042
93004
|
reader.skipType(tag & 7);
|
|
92043
93005
|
break;
|
|
@@ -92101,6 +93063,9 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
92101
93063
|
if (error)
|
|
92102
93064
|
return "user." + error;
|
|
92103
93065
|
}
|
|
93066
|
+
if (message.promoLeft != null && message.hasOwnProperty("promoLeft"))
|
|
93067
|
+
if (!$util.isInteger(message.promoLeft))
|
|
93068
|
+
return "promoLeft: integer expected";
|
|
92104
93069
|
return null;
|
|
92105
93070
|
};
|
|
92106
93071
|
|
|
@@ -92165,6 +93130,8 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
92165
93130
|
throw TypeError(".FindUserByEmailResponse.user: object expected");
|
|
92166
93131
|
message.user = $root.User.fromObject(object.user);
|
|
92167
93132
|
}
|
|
93133
|
+
if (object.promoLeft != null)
|
|
93134
|
+
message.promoLeft = object.promoLeft | 0;
|
|
92168
93135
|
return message;
|
|
92169
93136
|
};
|
|
92170
93137
|
|
|
@@ -92186,6 +93153,7 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
92186
93153
|
if (options.defaults) {
|
|
92187
93154
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
92188
93155
|
object.user = null;
|
|
93156
|
+
object.promoLeft = 0;
|
|
92189
93157
|
}
|
|
92190
93158
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
92191
93159
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -92196,6 +93164,8 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
92196
93164
|
}
|
|
92197
93165
|
if (message.user != null && message.hasOwnProperty("user"))
|
|
92198
93166
|
object.user = $root.User.toObject(message.user, options);
|
|
93167
|
+
if (message.promoLeft != null && message.hasOwnProperty("promoLeft"))
|
|
93168
|
+
object.promoLeft = message.promoLeft;
|
|
92199
93169
|
return object;
|
|
92200
93170
|
};
|
|
92201
93171
|
|