@sellout/models 0.0.380 → 0.0.382
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/interfaces/ITask.d.ts +2 -1
- package/.dist/interfaces/ITask.js +1 -0
- package/.dist/interfaces/ITask.js.map +1 -1
- package/.dist/sellout-proto.js +589 -0
- package/package.json +3 -3
- package/src/interfaces/ITask.ts +1 -0
- package/src/proto/event.proto +13 -0
- package/src/proto/order.proto +1 -0
|
@@ -7,7 +7,8 @@ export declare enum TaskTypes {
|
|
|
7
7
|
NotifyEvent = "NotifyEvent",
|
|
8
8
|
sendOrderReceiptEmail = "sendOrderReceiptEmail",
|
|
9
9
|
SetTicketTierInventory = "SetTicketTierInventory",
|
|
10
|
-
ClearExpiredEventQrCodes = "ClearExpiredEventQrCodes"
|
|
10
|
+
ClearExpiredEventQrCodes = "ClearExpiredEventQrCodes",
|
|
11
|
+
SendAnvilCloseEvent = "SendAnvilCloseEvent"
|
|
11
12
|
}
|
|
12
13
|
export default interface ITask {
|
|
13
14
|
_id?: string;
|
|
@@ -11,5 +11,6 @@ var TaskTypes;
|
|
|
11
11
|
TaskTypes["sendOrderReceiptEmail"] = "sendOrderReceiptEmail";
|
|
12
12
|
TaskTypes["SetTicketTierInventory"] = "SetTicketTierInventory";
|
|
13
13
|
TaskTypes["ClearExpiredEventQrCodes"] = "ClearExpiredEventQrCodes";
|
|
14
|
+
TaskTypes["SendAnvilCloseEvent"] = "SendAnvilCloseEvent";
|
|
14
15
|
})(TaskTypes = exports.TaskTypes || (exports.TaskTypes = {}));
|
|
15
16
|
//# sourceMappingURL=ITask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITask.js","sourceRoot":"","sources":["../../src/interfaces/ITask.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"ITask.js","sourceRoot":"","sources":["../../src/interfaces/ITask.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,0DAA6C,CAAA;IAC7C,sDAAyC,CAAA;IACzC,sDAAyC,CAAA;IACzC,wCAA2B,CAAA;IAC3B,wCAA2B,CAAA;IAC3B,4DAA+C,CAAA;IAC/C,8DAAiD,CAAA;IACjD,kEAAqD,CAAA;IACrD,wDAA2C,CAAA;AAC7C,CAAC,EAVW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAUpB"}
|
package/.dist/sellout-proto.js
CHANGED
|
@@ -36358,6 +36358,7 @@ $root.OrderAnalyticsQuery = (function() {
|
|
|
36358
36358
|
* @property {string|null} [interval] OrderAnalyticsQuery interval
|
|
36359
36359
|
* @property {Array.<string>|null} [types] OrderAnalyticsQuery types
|
|
36360
36360
|
* @property {string|null} [seasonId] OrderAnalyticsQuery seasonId
|
|
36361
|
+
* @property {boolean|null} [isEventCalendar] OrderAnalyticsQuery isEventCalendar
|
|
36361
36362
|
*/
|
|
36362
36363
|
|
|
36363
36364
|
/**
|
|
@@ -36448,6 +36449,14 @@ $root.OrderAnalyticsQuery = (function() {
|
|
|
36448
36449
|
*/
|
|
36449
36450
|
OrderAnalyticsQuery.prototype.seasonId = "";
|
|
36450
36451
|
|
|
36452
|
+
/**
|
|
36453
|
+
* OrderAnalyticsQuery isEventCalendar.
|
|
36454
|
+
* @member {boolean} isEventCalendar
|
|
36455
|
+
* @memberof OrderAnalyticsQuery
|
|
36456
|
+
* @instance
|
|
36457
|
+
*/
|
|
36458
|
+
OrderAnalyticsQuery.prototype.isEventCalendar = false;
|
|
36459
|
+
|
|
36451
36460
|
/**
|
|
36452
36461
|
* Creates a new OrderAnalyticsQuery instance using the specified properties.
|
|
36453
36462
|
* @function create
|
|
@@ -36491,6 +36500,8 @@ $root.OrderAnalyticsQuery = (function() {
|
|
|
36491
36500
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.types[i]);
|
|
36492
36501
|
if (message.seasonId != null && Object.hasOwnProperty.call(message, "seasonId"))
|
|
36493
36502
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.seasonId);
|
|
36503
|
+
if (message.isEventCalendar != null && Object.hasOwnProperty.call(message, "isEventCalendar"))
|
|
36504
|
+
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEventCalendar);
|
|
36494
36505
|
return writer;
|
|
36495
36506
|
};
|
|
36496
36507
|
|
|
@@ -36554,6 +36565,9 @@ $root.OrderAnalyticsQuery = (function() {
|
|
|
36554
36565
|
case 8:
|
|
36555
36566
|
message.seasonId = reader.string();
|
|
36556
36567
|
break;
|
|
36568
|
+
case 9:
|
|
36569
|
+
message.isEventCalendar = reader.bool();
|
|
36570
|
+
break;
|
|
36557
36571
|
default:
|
|
36558
36572
|
reader.skipType(tag & 7);
|
|
36559
36573
|
break;
|
|
@@ -36620,6 +36634,9 @@ $root.OrderAnalyticsQuery = (function() {
|
|
|
36620
36634
|
if (message.seasonId != null && message.hasOwnProperty("seasonId"))
|
|
36621
36635
|
if (!$util.isString(message.seasonId))
|
|
36622
36636
|
return "seasonId: string expected";
|
|
36637
|
+
if (message.isEventCalendar != null && message.hasOwnProperty("isEventCalendar"))
|
|
36638
|
+
if (typeof message.isEventCalendar !== "boolean")
|
|
36639
|
+
return "isEventCalendar: boolean expected";
|
|
36623
36640
|
return null;
|
|
36624
36641
|
};
|
|
36625
36642
|
|
|
@@ -36658,6 +36675,8 @@ $root.OrderAnalyticsQuery = (function() {
|
|
|
36658
36675
|
}
|
|
36659
36676
|
if (object.seasonId != null)
|
|
36660
36677
|
message.seasonId = String(object.seasonId);
|
|
36678
|
+
if (object.isEventCalendar != null)
|
|
36679
|
+
message.isEventCalendar = Boolean(object.isEventCalendar);
|
|
36661
36680
|
return message;
|
|
36662
36681
|
};
|
|
36663
36682
|
|
|
@@ -36685,6 +36704,7 @@ $root.OrderAnalyticsQuery = (function() {
|
|
|
36685
36704
|
object.endDate = 0;
|
|
36686
36705
|
object.interval = "";
|
|
36687
36706
|
object.seasonId = "";
|
|
36707
|
+
object.isEventCalendar = false;
|
|
36688
36708
|
}
|
|
36689
36709
|
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
36690
36710
|
object.eventId = message.eventId;
|
|
@@ -36707,6 +36727,8 @@ $root.OrderAnalyticsQuery = (function() {
|
|
|
36707
36727
|
}
|
|
36708
36728
|
if (message.seasonId != null && message.hasOwnProperty("seasonId"))
|
|
36709
36729
|
object.seasonId = message.seasonId;
|
|
36730
|
+
if (message.isEventCalendar != null && message.hasOwnProperty("isEventCalendar"))
|
|
36731
|
+
object.isEventCalendar = message.isEventCalendar;
|
|
36710
36732
|
return object;
|
|
36711
36733
|
};
|
|
36712
36734
|
|
|
@@ -114248,6 +114270,540 @@ $root.ClearExpiredEventQrCodesResponse = (function() {
|
|
|
114248
114270
|
return ClearExpiredEventQrCodesResponse;
|
|
114249
114271
|
})();
|
|
114250
114272
|
|
|
114273
|
+
$root.SendAnvilCloseEventRequest = (function() {
|
|
114274
|
+
|
|
114275
|
+
/**
|
|
114276
|
+
* Properties of a SendAnvilCloseEventRequest.
|
|
114277
|
+
* @exports ISendAnvilCloseEventRequest
|
|
114278
|
+
* @interface ISendAnvilCloseEventRequest
|
|
114279
|
+
* @property {string|null} [spanContext] SendAnvilCloseEventRequest spanContext
|
|
114280
|
+
* @property {number|null} [daysAfterEnd] SendAnvilCloseEventRequest daysAfterEnd
|
|
114281
|
+
*/
|
|
114282
|
+
|
|
114283
|
+
/**
|
|
114284
|
+
* Constructs a new SendAnvilCloseEventRequest.
|
|
114285
|
+
* @exports SendAnvilCloseEventRequest
|
|
114286
|
+
* @classdesc Represents a SendAnvilCloseEventRequest.
|
|
114287
|
+
* @implements ISendAnvilCloseEventRequest
|
|
114288
|
+
* @constructor
|
|
114289
|
+
* @param {ISendAnvilCloseEventRequest=} [properties] Properties to set
|
|
114290
|
+
*/
|
|
114291
|
+
function SendAnvilCloseEventRequest(properties) {
|
|
114292
|
+
if (properties)
|
|
114293
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114294
|
+
if (properties[keys[i]] != null)
|
|
114295
|
+
this[keys[i]] = properties[keys[i]];
|
|
114296
|
+
}
|
|
114297
|
+
|
|
114298
|
+
/**
|
|
114299
|
+
* SendAnvilCloseEventRequest spanContext.
|
|
114300
|
+
* @member {string} spanContext
|
|
114301
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114302
|
+
* @instance
|
|
114303
|
+
*/
|
|
114304
|
+
SendAnvilCloseEventRequest.prototype.spanContext = "";
|
|
114305
|
+
|
|
114306
|
+
/**
|
|
114307
|
+
* SendAnvilCloseEventRequest daysAfterEnd.
|
|
114308
|
+
* @member {number} daysAfterEnd
|
|
114309
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114310
|
+
* @instance
|
|
114311
|
+
*/
|
|
114312
|
+
SendAnvilCloseEventRequest.prototype.daysAfterEnd = 0;
|
|
114313
|
+
|
|
114314
|
+
/**
|
|
114315
|
+
* Creates a new SendAnvilCloseEventRequest instance using the specified properties.
|
|
114316
|
+
* @function create
|
|
114317
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114318
|
+
* @static
|
|
114319
|
+
* @param {ISendAnvilCloseEventRequest=} [properties] Properties to set
|
|
114320
|
+
* @returns {SendAnvilCloseEventRequest} SendAnvilCloseEventRequest instance
|
|
114321
|
+
*/
|
|
114322
|
+
SendAnvilCloseEventRequest.create = function create(properties) {
|
|
114323
|
+
return new SendAnvilCloseEventRequest(properties);
|
|
114324
|
+
};
|
|
114325
|
+
|
|
114326
|
+
/**
|
|
114327
|
+
* Encodes the specified SendAnvilCloseEventRequest message. Does not implicitly {@link SendAnvilCloseEventRequest.verify|verify} messages.
|
|
114328
|
+
* @function encode
|
|
114329
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114330
|
+
* @static
|
|
114331
|
+
* @param {ISendAnvilCloseEventRequest} message SendAnvilCloseEventRequest message or plain object to encode
|
|
114332
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114333
|
+
* @returns {$protobuf.Writer} Writer
|
|
114334
|
+
*/
|
|
114335
|
+
SendAnvilCloseEventRequest.encode = function encode(message, writer) {
|
|
114336
|
+
if (!writer)
|
|
114337
|
+
writer = $Writer.create();
|
|
114338
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
114339
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
114340
|
+
if (message.daysAfterEnd != null && Object.hasOwnProperty.call(message, "daysAfterEnd"))
|
|
114341
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.daysAfterEnd);
|
|
114342
|
+
return writer;
|
|
114343
|
+
};
|
|
114344
|
+
|
|
114345
|
+
/**
|
|
114346
|
+
* Encodes the specified SendAnvilCloseEventRequest message, length delimited. Does not implicitly {@link SendAnvilCloseEventRequest.verify|verify} messages.
|
|
114347
|
+
* @function encodeDelimited
|
|
114348
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114349
|
+
* @static
|
|
114350
|
+
* @param {ISendAnvilCloseEventRequest} message SendAnvilCloseEventRequest message or plain object to encode
|
|
114351
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114352
|
+
* @returns {$protobuf.Writer} Writer
|
|
114353
|
+
*/
|
|
114354
|
+
SendAnvilCloseEventRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114355
|
+
return this.encode(message, writer).ldelim();
|
|
114356
|
+
};
|
|
114357
|
+
|
|
114358
|
+
/**
|
|
114359
|
+
* Decodes a SendAnvilCloseEventRequest message from the specified reader or buffer.
|
|
114360
|
+
* @function decode
|
|
114361
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114362
|
+
* @static
|
|
114363
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114364
|
+
* @param {number} [length] Message length if known beforehand
|
|
114365
|
+
* @returns {SendAnvilCloseEventRequest} SendAnvilCloseEventRequest
|
|
114366
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114367
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114368
|
+
*/
|
|
114369
|
+
SendAnvilCloseEventRequest.decode = function decode(reader, length) {
|
|
114370
|
+
if (!(reader instanceof $Reader))
|
|
114371
|
+
reader = $Reader.create(reader);
|
|
114372
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SendAnvilCloseEventRequest();
|
|
114373
|
+
while (reader.pos < end) {
|
|
114374
|
+
var tag = reader.uint32();
|
|
114375
|
+
switch (tag >>> 3) {
|
|
114376
|
+
case 0:
|
|
114377
|
+
message.spanContext = reader.string();
|
|
114378
|
+
break;
|
|
114379
|
+
case 1:
|
|
114380
|
+
message.daysAfterEnd = reader.int32();
|
|
114381
|
+
break;
|
|
114382
|
+
default:
|
|
114383
|
+
reader.skipType(tag & 7);
|
|
114384
|
+
break;
|
|
114385
|
+
}
|
|
114386
|
+
}
|
|
114387
|
+
return message;
|
|
114388
|
+
};
|
|
114389
|
+
|
|
114390
|
+
/**
|
|
114391
|
+
* Decodes a SendAnvilCloseEventRequest message from the specified reader or buffer, length delimited.
|
|
114392
|
+
* @function decodeDelimited
|
|
114393
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114394
|
+
* @static
|
|
114395
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114396
|
+
* @returns {SendAnvilCloseEventRequest} SendAnvilCloseEventRequest
|
|
114397
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114398
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114399
|
+
*/
|
|
114400
|
+
SendAnvilCloseEventRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
114401
|
+
if (!(reader instanceof $Reader))
|
|
114402
|
+
reader = new $Reader(reader);
|
|
114403
|
+
return this.decode(reader, reader.uint32());
|
|
114404
|
+
};
|
|
114405
|
+
|
|
114406
|
+
/**
|
|
114407
|
+
* Verifies a SendAnvilCloseEventRequest message.
|
|
114408
|
+
* @function verify
|
|
114409
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114410
|
+
* @static
|
|
114411
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
114412
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
114413
|
+
*/
|
|
114414
|
+
SendAnvilCloseEventRequest.verify = function verify(message) {
|
|
114415
|
+
if (typeof message !== "object" || message === null)
|
|
114416
|
+
return "object expected";
|
|
114417
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
114418
|
+
if (!$util.isString(message.spanContext))
|
|
114419
|
+
return "spanContext: string expected";
|
|
114420
|
+
if (message.daysAfterEnd != null && message.hasOwnProperty("daysAfterEnd"))
|
|
114421
|
+
if (!$util.isInteger(message.daysAfterEnd))
|
|
114422
|
+
return "daysAfterEnd: integer expected";
|
|
114423
|
+
return null;
|
|
114424
|
+
};
|
|
114425
|
+
|
|
114426
|
+
/**
|
|
114427
|
+
* Creates a SendAnvilCloseEventRequest message from a plain object. Also converts values to their respective internal types.
|
|
114428
|
+
* @function fromObject
|
|
114429
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114430
|
+
* @static
|
|
114431
|
+
* @param {Object.<string,*>} object Plain object
|
|
114432
|
+
* @returns {SendAnvilCloseEventRequest} SendAnvilCloseEventRequest
|
|
114433
|
+
*/
|
|
114434
|
+
SendAnvilCloseEventRequest.fromObject = function fromObject(object) {
|
|
114435
|
+
if (object instanceof $root.SendAnvilCloseEventRequest)
|
|
114436
|
+
return object;
|
|
114437
|
+
var message = new $root.SendAnvilCloseEventRequest();
|
|
114438
|
+
if (object.spanContext != null)
|
|
114439
|
+
message.spanContext = String(object.spanContext);
|
|
114440
|
+
if (object.daysAfterEnd != null)
|
|
114441
|
+
message.daysAfterEnd = object.daysAfterEnd | 0;
|
|
114442
|
+
return message;
|
|
114443
|
+
};
|
|
114444
|
+
|
|
114445
|
+
/**
|
|
114446
|
+
* Creates a plain object from a SendAnvilCloseEventRequest message. Also converts values to other types if specified.
|
|
114447
|
+
* @function toObject
|
|
114448
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114449
|
+
* @static
|
|
114450
|
+
* @param {SendAnvilCloseEventRequest} message SendAnvilCloseEventRequest
|
|
114451
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
114452
|
+
* @returns {Object.<string,*>} Plain object
|
|
114453
|
+
*/
|
|
114454
|
+
SendAnvilCloseEventRequest.toObject = function toObject(message, options) {
|
|
114455
|
+
if (!options)
|
|
114456
|
+
options = {};
|
|
114457
|
+
var object = {};
|
|
114458
|
+
if (options.defaults) {
|
|
114459
|
+
object.spanContext = "";
|
|
114460
|
+
object.daysAfterEnd = 0;
|
|
114461
|
+
}
|
|
114462
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
114463
|
+
object.spanContext = message.spanContext;
|
|
114464
|
+
if (message.daysAfterEnd != null && message.hasOwnProperty("daysAfterEnd"))
|
|
114465
|
+
object.daysAfterEnd = message.daysAfterEnd;
|
|
114466
|
+
return object;
|
|
114467
|
+
};
|
|
114468
|
+
|
|
114469
|
+
/**
|
|
114470
|
+
* Converts this SendAnvilCloseEventRequest to JSON.
|
|
114471
|
+
* @function toJSON
|
|
114472
|
+
* @memberof SendAnvilCloseEventRequest
|
|
114473
|
+
* @instance
|
|
114474
|
+
* @returns {Object.<string,*>} JSON object
|
|
114475
|
+
*/
|
|
114476
|
+
SendAnvilCloseEventRequest.prototype.toJSON = function toJSON() {
|
|
114477
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114478
|
+
};
|
|
114479
|
+
|
|
114480
|
+
return SendAnvilCloseEventRequest;
|
|
114481
|
+
})();
|
|
114482
|
+
|
|
114483
|
+
$root.SendAnvilCloseEventResponse = (function() {
|
|
114484
|
+
|
|
114485
|
+
/**
|
|
114486
|
+
* Properties of a SendAnvilCloseEventResponse.
|
|
114487
|
+
* @exports ISendAnvilCloseEventResponse
|
|
114488
|
+
* @interface ISendAnvilCloseEventResponse
|
|
114489
|
+
* @property {StatusCode|null} [status] SendAnvilCloseEventResponse status
|
|
114490
|
+
* @property {Array.<IError>|null} [errors] SendAnvilCloseEventResponse errors
|
|
114491
|
+
* @property {number|null} [processed] SendAnvilCloseEventResponse processed
|
|
114492
|
+
* @property {number|null} [sent] SendAnvilCloseEventResponse sent
|
|
114493
|
+
*/
|
|
114494
|
+
|
|
114495
|
+
/**
|
|
114496
|
+
* Constructs a new SendAnvilCloseEventResponse.
|
|
114497
|
+
* @exports SendAnvilCloseEventResponse
|
|
114498
|
+
* @classdesc Represents a SendAnvilCloseEventResponse.
|
|
114499
|
+
* @implements ISendAnvilCloseEventResponse
|
|
114500
|
+
* @constructor
|
|
114501
|
+
* @param {ISendAnvilCloseEventResponse=} [properties] Properties to set
|
|
114502
|
+
*/
|
|
114503
|
+
function SendAnvilCloseEventResponse(properties) {
|
|
114504
|
+
this.errors = [];
|
|
114505
|
+
if (properties)
|
|
114506
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114507
|
+
if (properties[keys[i]] != null)
|
|
114508
|
+
this[keys[i]] = properties[keys[i]];
|
|
114509
|
+
}
|
|
114510
|
+
|
|
114511
|
+
/**
|
|
114512
|
+
* SendAnvilCloseEventResponse status.
|
|
114513
|
+
* @member {StatusCode} status
|
|
114514
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114515
|
+
* @instance
|
|
114516
|
+
*/
|
|
114517
|
+
SendAnvilCloseEventResponse.prototype.status = 0;
|
|
114518
|
+
|
|
114519
|
+
/**
|
|
114520
|
+
* SendAnvilCloseEventResponse errors.
|
|
114521
|
+
* @member {Array.<IError>} errors
|
|
114522
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114523
|
+
* @instance
|
|
114524
|
+
*/
|
|
114525
|
+
SendAnvilCloseEventResponse.prototype.errors = $util.emptyArray;
|
|
114526
|
+
|
|
114527
|
+
/**
|
|
114528
|
+
* SendAnvilCloseEventResponse processed.
|
|
114529
|
+
* @member {number} processed
|
|
114530
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114531
|
+
* @instance
|
|
114532
|
+
*/
|
|
114533
|
+
SendAnvilCloseEventResponse.prototype.processed = 0;
|
|
114534
|
+
|
|
114535
|
+
/**
|
|
114536
|
+
* SendAnvilCloseEventResponse sent.
|
|
114537
|
+
* @member {number} sent
|
|
114538
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114539
|
+
* @instance
|
|
114540
|
+
*/
|
|
114541
|
+
SendAnvilCloseEventResponse.prototype.sent = 0;
|
|
114542
|
+
|
|
114543
|
+
/**
|
|
114544
|
+
* Creates a new SendAnvilCloseEventResponse instance using the specified properties.
|
|
114545
|
+
* @function create
|
|
114546
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114547
|
+
* @static
|
|
114548
|
+
* @param {ISendAnvilCloseEventResponse=} [properties] Properties to set
|
|
114549
|
+
* @returns {SendAnvilCloseEventResponse} SendAnvilCloseEventResponse instance
|
|
114550
|
+
*/
|
|
114551
|
+
SendAnvilCloseEventResponse.create = function create(properties) {
|
|
114552
|
+
return new SendAnvilCloseEventResponse(properties);
|
|
114553
|
+
};
|
|
114554
|
+
|
|
114555
|
+
/**
|
|
114556
|
+
* Encodes the specified SendAnvilCloseEventResponse message. Does not implicitly {@link SendAnvilCloseEventResponse.verify|verify} messages.
|
|
114557
|
+
* @function encode
|
|
114558
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114559
|
+
* @static
|
|
114560
|
+
* @param {ISendAnvilCloseEventResponse} message SendAnvilCloseEventResponse message or plain object to encode
|
|
114561
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114562
|
+
* @returns {$protobuf.Writer} Writer
|
|
114563
|
+
*/
|
|
114564
|
+
SendAnvilCloseEventResponse.encode = function encode(message, writer) {
|
|
114565
|
+
if (!writer)
|
|
114566
|
+
writer = $Writer.create();
|
|
114567
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
114568
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
114569
|
+
if (message.errors != null && message.errors.length)
|
|
114570
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
114571
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
114572
|
+
if (message.processed != null && Object.hasOwnProperty.call(message, "processed"))
|
|
114573
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.processed);
|
|
114574
|
+
if (message.sent != null && Object.hasOwnProperty.call(message, "sent"))
|
|
114575
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sent);
|
|
114576
|
+
return writer;
|
|
114577
|
+
};
|
|
114578
|
+
|
|
114579
|
+
/**
|
|
114580
|
+
* Encodes the specified SendAnvilCloseEventResponse message, length delimited. Does not implicitly {@link SendAnvilCloseEventResponse.verify|verify} messages.
|
|
114581
|
+
* @function encodeDelimited
|
|
114582
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114583
|
+
* @static
|
|
114584
|
+
* @param {ISendAnvilCloseEventResponse} message SendAnvilCloseEventResponse message or plain object to encode
|
|
114585
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114586
|
+
* @returns {$protobuf.Writer} Writer
|
|
114587
|
+
*/
|
|
114588
|
+
SendAnvilCloseEventResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114589
|
+
return this.encode(message, writer).ldelim();
|
|
114590
|
+
};
|
|
114591
|
+
|
|
114592
|
+
/**
|
|
114593
|
+
* Decodes a SendAnvilCloseEventResponse message from the specified reader or buffer.
|
|
114594
|
+
* @function decode
|
|
114595
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114596
|
+
* @static
|
|
114597
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114598
|
+
* @param {number} [length] Message length if known beforehand
|
|
114599
|
+
* @returns {SendAnvilCloseEventResponse} SendAnvilCloseEventResponse
|
|
114600
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114601
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114602
|
+
*/
|
|
114603
|
+
SendAnvilCloseEventResponse.decode = function decode(reader, length) {
|
|
114604
|
+
if (!(reader instanceof $Reader))
|
|
114605
|
+
reader = $Reader.create(reader);
|
|
114606
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SendAnvilCloseEventResponse();
|
|
114607
|
+
while (reader.pos < end) {
|
|
114608
|
+
var tag = reader.uint32();
|
|
114609
|
+
switch (tag >>> 3) {
|
|
114610
|
+
case 0:
|
|
114611
|
+
message.status = reader.int32();
|
|
114612
|
+
break;
|
|
114613
|
+
case 1:
|
|
114614
|
+
if (!(message.errors && message.errors.length))
|
|
114615
|
+
message.errors = [];
|
|
114616
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
114617
|
+
break;
|
|
114618
|
+
case 2:
|
|
114619
|
+
message.processed = reader.int32();
|
|
114620
|
+
break;
|
|
114621
|
+
case 3:
|
|
114622
|
+
message.sent = reader.int32();
|
|
114623
|
+
break;
|
|
114624
|
+
default:
|
|
114625
|
+
reader.skipType(tag & 7);
|
|
114626
|
+
break;
|
|
114627
|
+
}
|
|
114628
|
+
}
|
|
114629
|
+
return message;
|
|
114630
|
+
};
|
|
114631
|
+
|
|
114632
|
+
/**
|
|
114633
|
+
* Decodes a SendAnvilCloseEventResponse message from the specified reader or buffer, length delimited.
|
|
114634
|
+
* @function decodeDelimited
|
|
114635
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114636
|
+
* @static
|
|
114637
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114638
|
+
* @returns {SendAnvilCloseEventResponse} SendAnvilCloseEventResponse
|
|
114639
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114640
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114641
|
+
*/
|
|
114642
|
+
SendAnvilCloseEventResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
114643
|
+
if (!(reader instanceof $Reader))
|
|
114644
|
+
reader = new $Reader(reader);
|
|
114645
|
+
return this.decode(reader, reader.uint32());
|
|
114646
|
+
};
|
|
114647
|
+
|
|
114648
|
+
/**
|
|
114649
|
+
* Verifies a SendAnvilCloseEventResponse message.
|
|
114650
|
+
* @function verify
|
|
114651
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114652
|
+
* @static
|
|
114653
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
114654
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
114655
|
+
*/
|
|
114656
|
+
SendAnvilCloseEventResponse.verify = function verify(message) {
|
|
114657
|
+
if (typeof message !== "object" || message === null)
|
|
114658
|
+
return "object expected";
|
|
114659
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
114660
|
+
switch (message.status) {
|
|
114661
|
+
default:
|
|
114662
|
+
return "status: enum value expected";
|
|
114663
|
+
case 0:
|
|
114664
|
+
case 200:
|
|
114665
|
+
case 400:
|
|
114666
|
+
case 401:
|
|
114667
|
+
case 403:
|
|
114668
|
+
case 422:
|
|
114669
|
+
case 404:
|
|
114670
|
+
case 500:
|
|
114671
|
+
case 504:
|
|
114672
|
+
break;
|
|
114673
|
+
}
|
|
114674
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
114675
|
+
if (!Array.isArray(message.errors))
|
|
114676
|
+
return "errors: array expected";
|
|
114677
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
114678
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
114679
|
+
if (error)
|
|
114680
|
+
return "errors." + error;
|
|
114681
|
+
}
|
|
114682
|
+
}
|
|
114683
|
+
if (message.processed != null && message.hasOwnProperty("processed"))
|
|
114684
|
+
if (!$util.isInteger(message.processed))
|
|
114685
|
+
return "processed: integer expected";
|
|
114686
|
+
if (message.sent != null && message.hasOwnProperty("sent"))
|
|
114687
|
+
if (!$util.isInteger(message.sent))
|
|
114688
|
+
return "sent: integer expected";
|
|
114689
|
+
return null;
|
|
114690
|
+
};
|
|
114691
|
+
|
|
114692
|
+
/**
|
|
114693
|
+
* Creates a SendAnvilCloseEventResponse message from a plain object. Also converts values to their respective internal types.
|
|
114694
|
+
* @function fromObject
|
|
114695
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114696
|
+
* @static
|
|
114697
|
+
* @param {Object.<string,*>} object Plain object
|
|
114698
|
+
* @returns {SendAnvilCloseEventResponse} SendAnvilCloseEventResponse
|
|
114699
|
+
*/
|
|
114700
|
+
SendAnvilCloseEventResponse.fromObject = function fromObject(object) {
|
|
114701
|
+
if (object instanceof $root.SendAnvilCloseEventResponse)
|
|
114702
|
+
return object;
|
|
114703
|
+
var message = new $root.SendAnvilCloseEventResponse();
|
|
114704
|
+
switch (object.status) {
|
|
114705
|
+
case "UNKNOWN_CODE":
|
|
114706
|
+
case 0:
|
|
114707
|
+
message.status = 0;
|
|
114708
|
+
break;
|
|
114709
|
+
case "OK":
|
|
114710
|
+
case 200:
|
|
114711
|
+
message.status = 200;
|
|
114712
|
+
break;
|
|
114713
|
+
case "BAD_REQUEST":
|
|
114714
|
+
case 400:
|
|
114715
|
+
message.status = 400;
|
|
114716
|
+
break;
|
|
114717
|
+
case "UNAUTHORIZED":
|
|
114718
|
+
case 401:
|
|
114719
|
+
message.status = 401;
|
|
114720
|
+
break;
|
|
114721
|
+
case "FORBIDDEN":
|
|
114722
|
+
case 403:
|
|
114723
|
+
message.status = 403;
|
|
114724
|
+
break;
|
|
114725
|
+
case "UNPROCESSABLE_ENTITY":
|
|
114726
|
+
case 422:
|
|
114727
|
+
message.status = 422;
|
|
114728
|
+
break;
|
|
114729
|
+
case "NOT_FOUND":
|
|
114730
|
+
case 404:
|
|
114731
|
+
message.status = 404;
|
|
114732
|
+
break;
|
|
114733
|
+
case "INTERNAL_SERVER_ERROR":
|
|
114734
|
+
case 500:
|
|
114735
|
+
message.status = 500;
|
|
114736
|
+
break;
|
|
114737
|
+
case "GATEWAY_TIMEOUT":
|
|
114738
|
+
case 504:
|
|
114739
|
+
message.status = 504;
|
|
114740
|
+
break;
|
|
114741
|
+
}
|
|
114742
|
+
if (object.errors) {
|
|
114743
|
+
if (!Array.isArray(object.errors))
|
|
114744
|
+
throw TypeError(".SendAnvilCloseEventResponse.errors: array expected");
|
|
114745
|
+
message.errors = [];
|
|
114746
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
114747
|
+
if (typeof object.errors[i] !== "object")
|
|
114748
|
+
throw TypeError(".SendAnvilCloseEventResponse.errors: object expected");
|
|
114749
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
114750
|
+
}
|
|
114751
|
+
}
|
|
114752
|
+
if (object.processed != null)
|
|
114753
|
+
message.processed = object.processed | 0;
|
|
114754
|
+
if (object.sent != null)
|
|
114755
|
+
message.sent = object.sent | 0;
|
|
114756
|
+
return message;
|
|
114757
|
+
};
|
|
114758
|
+
|
|
114759
|
+
/**
|
|
114760
|
+
* Creates a plain object from a SendAnvilCloseEventResponse message. Also converts values to other types if specified.
|
|
114761
|
+
* @function toObject
|
|
114762
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114763
|
+
* @static
|
|
114764
|
+
* @param {SendAnvilCloseEventResponse} message SendAnvilCloseEventResponse
|
|
114765
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
114766
|
+
* @returns {Object.<string,*>} Plain object
|
|
114767
|
+
*/
|
|
114768
|
+
SendAnvilCloseEventResponse.toObject = function toObject(message, options) {
|
|
114769
|
+
if (!options)
|
|
114770
|
+
options = {};
|
|
114771
|
+
var object = {};
|
|
114772
|
+
if (options.arrays || options.defaults)
|
|
114773
|
+
object.errors = [];
|
|
114774
|
+
if (options.defaults) {
|
|
114775
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
114776
|
+
object.processed = 0;
|
|
114777
|
+
object.sent = 0;
|
|
114778
|
+
}
|
|
114779
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
114780
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
114781
|
+
if (message.errors && message.errors.length) {
|
|
114782
|
+
object.errors = [];
|
|
114783
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
114784
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
114785
|
+
}
|
|
114786
|
+
if (message.processed != null && message.hasOwnProperty("processed"))
|
|
114787
|
+
object.processed = message.processed;
|
|
114788
|
+
if (message.sent != null && message.hasOwnProperty("sent"))
|
|
114789
|
+
object.sent = message.sent;
|
|
114790
|
+
return object;
|
|
114791
|
+
};
|
|
114792
|
+
|
|
114793
|
+
/**
|
|
114794
|
+
* Converts this SendAnvilCloseEventResponse to JSON.
|
|
114795
|
+
* @function toJSON
|
|
114796
|
+
* @memberof SendAnvilCloseEventResponse
|
|
114797
|
+
* @instance
|
|
114798
|
+
* @returns {Object.<string,*>} JSON object
|
|
114799
|
+
*/
|
|
114800
|
+
SendAnvilCloseEventResponse.prototype.toJSON = function toJSON() {
|
|
114801
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114802
|
+
};
|
|
114803
|
+
|
|
114804
|
+
return SendAnvilCloseEventResponse;
|
|
114805
|
+
})();
|
|
114806
|
+
|
|
114251
114807
|
$root.PosterImageUrl = (function() {
|
|
114252
114808
|
|
|
114253
114809
|
/**
|
|
@@ -115915,6 +116471,39 @@ $root.EventService = (function() {
|
|
|
115915
116471
|
* @variation 2
|
|
115916
116472
|
*/
|
|
115917
116473
|
|
|
116474
|
+
/**
|
|
116475
|
+
* Callback as used by {@link EventService#sendAnvilCloseEvent}.
|
|
116476
|
+
* @memberof EventService
|
|
116477
|
+
* @typedef sendAnvilCloseEventCallback
|
|
116478
|
+
* @type {function}
|
|
116479
|
+
* @param {Error|null} error Error, if any
|
|
116480
|
+
* @param {SendAnvilCloseEventResponse} [response] SendAnvilCloseEventResponse
|
|
116481
|
+
*/
|
|
116482
|
+
|
|
116483
|
+
/**
|
|
116484
|
+
* Calls sendAnvilCloseEvent.
|
|
116485
|
+
* @function sendAnvilCloseEvent
|
|
116486
|
+
* @memberof EventService
|
|
116487
|
+
* @instance
|
|
116488
|
+
* @param {ISendAnvilCloseEventRequest} request SendAnvilCloseEventRequest message or plain object
|
|
116489
|
+
* @param {EventService.sendAnvilCloseEventCallback} callback Node-style callback called with the error, if any, and SendAnvilCloseEventResponse
|
|
116490
|
+
* @returns {undefined}
|
|
116491
|
+
* @variation 1
|
|
116492
|
+
*/
|
|
116493
|
+
Object.defineProperty(EventService.prototype.sendAnvilCloseEvent = function sendAnvilCloseEvent(request, callback) {
|
|
116494
|
+
return this.rpcCall(sendAnvilCloseEvent, $root.SendAnvilCloseEventRequest, $root.SendAnvilCloseEventResponse, request, callback);
|
|
116495
|
+
}, "name", { value: "sendAnvilCloseEvent" });
|
|
116496
|
+
|
|
116497
|
+
/**
|
|
116498
|
+
* Calls sendAnvilCloseEvent.
|
|
116499
|
+
* @function sendAnvilCloseEvent
|
|
116500
|
+
* @memberof EventService
|
|
116501
|
+
* @instance
|
|
116502
|
+
* @param {ISendAnvilCloseEventRequest} request SendAnvilCloseEventRequest message or plain object
|
|
116503
|
+
* @returns {Promise<SendAnvilCloseEventResponse>} Promise
|
|
116504
|
+
* @variation 2
|
|
116505
|
+
*/
|
|
116506
|
+
|
|
115918
116507
|
/**
|
|
115919
116508
|
* Callback as used by {@link EventService#generateEventQRCode}.
|
|
115920
116509
|
* @memberof EventService
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.382",
|
|
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.382",
|
|
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": "b11247a158ec65baa7902782bf238d9dac39d99f"
|
|
36
36
|
}
|
package/src/interfaces/ITask.ts
CHANGED
|
@@ -9,6 +9,7 @@ export enum TaskTypes {
|
|
|
9
9
|
sendOrderReceiptEmail = 'sendOrderReceiptEmail',
|
|
10
10
|
SetTicketTierInventory = 'SetTicketTierInventory',
|
|
11
11
|
ClearExpiredEventQrCodes = 'ClearExpiredEventQrCodes',
|
|
12
|
+
SendAnvilCloseEvent = 'SendAnvilCloseEvent',
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export default interface ITask {
|
package/src/proto/event.proto
CHANGED
|
@@ -737,6 +737,18 @@ message ClearExpiredEventQrCodesResponse {
|
|
|
737
737
|
int32 cleared = 3;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
+
message SendAnvilCloseEventRequest {
|
|
741
|
+
string spanContext = 0;
|
|
742
|
+
int32 daysAfterEnd = 1;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
message SendAnvilCloseEventResponse {
|
|
746
|
+
StatusCode status = 0;
|
|
747
|
+
repeated Error errors = 1;
|
|
748
|
+
int32 processed = 2;
|
|
749
|
+
int32 sent = 3;
|
|
750
|
+
}
|
|
751
|
+
|
|
740
752
|
message PosterImageUrl {
|
|
741
753
|
string original = 0;
|
|
742
754
|
string medium = 1;
|
|
@@ -807,6 +819,7 @@ service EventService {
|
|
|
807
819
|
rpc updateTicketTierInventory(UpdateTicketTierInventoryRequest) returns (UpdateTicketTierInventoryResponse) {}
|
|
808
820
|
rpc deleteTicketHold(DeleteTicketHoldRequest) returns (DeleteTicketHoldResponse) {}
|
|
809
821
|
rpc clearExpiredEventQrCodes(ClearExpiredEventQrCodesRequest) returns (ClearExpiredEventQrCodesResponse) {}
|
|
822
|
+
rpc sendAnvilCloseEvent(SendAnvilCloseEventRequest) returns (SendAnvilCloseEventResponse) {}
|
|
810
823
|
rpc generateEventQRCode(GenerateEventQRCodeRequest) returns (GenerateEventQRCodeResponse) {}
|
|
811
824
|
rpc queryEventsAdmin(QueryEventsRequest) returns (QueryEventsResponse) {}
|
|
812
825
|
rpc checkStubUniqueness(CheckStubUniquenessRequest) returns (CheckStubUniquenessResponse) {}
|