@sellout/models 0.0.108 → 0.0.110

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.
Files changed (77) hide show
  1. package/.dist/graphql/mutations/breakApartOrder.js +2 -0
  2. package/.dist/graphql/mutations/breakApartOrder.js.map +1 -1
  3. package/.dist/graphql/mutations/createEvent.mutation.js +1 -0
  4. package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
  5. package/.dist/graphql/mutations/createVenue.mutation.js +1 -1
  6. package/.dist/graphql/mutations/publishEvent.mutation.js +1 -0
  7. package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -1
  8. package/.dist/graphql/mutations/updateEvent.mutation.js +1 -0
  9. package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
  10. package/.dist/graphql/mutations/updateVenue.mutation.js +1 -1
  11. package/.dist/graphql/queries/event.query.js +2 -0
  12. package/.dist/graphql/queries/event.query.js.map +1 -1
  13. package/.dist/graphql/queries/events.query.js +2 -0
  14. package/.dist/graphql/queries/events.query.js.map +1 -1
  15. package/.dist/graphql/queries/order.query.js +2 -0
  16. package/.dist/graphql/queries/order.query.js.map +1 -1
  17. package/.dist/graphql/queries/orders.query.js +18 -15
  18. package/.dist/graphql/queries/orders.query.js.map +1 -1
  19. package/.dist/graphql/queries/publicEvent.query.js +2 -0
  20. package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
  21. package/.dist/graphql/queries/venue.query.js +1 -0
  22. package/.dist/graphql/queries/venue.query.js.map +1 -1
  23. package/.dist/graphql/queries/venues.query.js +1 -0
  24. package/.dist/graphql/queries/venues.query.js.map +1 -1
  25. package/.dist/interfaces/IEvent.d.ts +8 -0
  26. package/.dist/interfaces/IEvent.js +10 -1
  27. package/.dist/interfaces/IEvent.js.map +1 -1
  28. package/.dist/interfaces/IOrder.d.ts +7 -0
  29. package/.dist/interfaces/IOrder.js.map +1 -1
  30. package/.dist/interfaces/IPayment.d.ts +1 -0
  31. package/.dist/interfaces/IVenue.d.ts +1 -0
  32. package/.dist/schemas/Event.d.ts +5 -0
  33. package/.dist/schemas/Event.js +5 -0
  34. package/.dist/schemas/Event.js.map +1 -1
  35. package/.dist/schemas/Order.d.ts +8 -0
  36. package/.dist/schemas/Order.js +8 -0
  37. package/.dist/schemas/Order.js.map +1 -1
  38. package/.dist/schemas/Venue.d.ts +4 -0
  39. package/.dist/schemas/Venue.js +4 -0
  40. package/.dist/schemas/Venue.js.map +1 -1
  41. package/.dist/sellout-proto.js +666 -0
  42. package/.dist/utils/AnalyticsUtil.d.ts +1 -1
  43. package/.dist/utils/AnalyticsUtil.js +7 -7
  44. package/.dist/utils/AnalyticsUtil.js.map +1 -1
  45. package/.dist/utils/FeeUtil.d.ts +1 -0
  46. package/.dist/utils/FeeUtil.js +8 -0
  47. package/.dist/utils/FeeUtil.js.map +1 -1
  48. package/.dist/utils/PaymentUtil.d.ts +2 -0
  49. package/.dist/utils/PaymentUtil.js +38 -8
  50. package/.dist/utils/PaymentUtil.js.map +1 -1
  51. package/package.json +4 -4
  52. package/src/graphql/mutations/breakApartOrder.ts +2 -0
  53. package/src/graphql/mutations/createEvent.mutation.ts +1 -0
  54. package/src/graphql/mutations/createVenue.mutation.ts +1 -1
  55. package/src/graphql/mutations/publishEvent.mutation.ts +1 -0
  56. package/src/graphql/mutations/updateEvent.mutation.ts +1 -0
  57. package/src/graphql/mutations/updateVenue.mutation.ts +1 -1
  58. package/src/graphql/queries/event.query.ts +2 -0
  59. package/src/graphql/queries/events.query.ts +2 -0
  60. package/src/graphql/queries/order.query.ts +2 -0
  61. package/src/graphql/queries/orders.query.ts +18 -15
  62. package/src/graphql/queries/publicEvent.query.ts +2 -0
  63. package/src/graphql/queries/venue.query.ts +1 -0
  64. package/src/graphql/queries/venues.query.ts +1 -0
  65. package/src/interfaces/IEvent.ts +9 -0
  66. package/src/interfaces/IOrder.ts +7 -0
  67. package/src/interfaces/IPayment.ts +1 -0
  68. package/src/interfaces/IVenue.ts +1 -0
  69. package/src/proto/event.proto +1 -0
  70. package/src/proto/order.proto +2 -0
  71. package/src/proto/venue.proto +1 -0
  72. package/src/schemas/Event.ts +5 -0
  73. package/src/schemas/Order.ts +8 -0
  74. package/src/schemas/Venue.ts +4 -0
  75. package/src/utils/AnalyticsUtil.ts +7 -7
  76. package/src/utils/FeeUtil.ts +9 -0
  77. package/src/utils/PaymentUtil.ts +55 -10
@@ -12452,6 +12452,7 @@ $root.Order = (function() {
12452
12452
  * @property {string|null} [refundReason] Order refundReason
12453
12453
  * @property {Array.<IPayment>|null} [payments] Order payments
12454
12454
  * @property {IProcessingFees|null} [processingFee] Order processingFee
12455
+ * @property {number|null} [tax] Order tax
12455
12456
  */
12456
12457
 
12457
12458
  /**
@@ -12685,6 +12686,14 @@ $root.Order = (function() {
12685
12686
  */
12686
12687
  Order.prototype.processingFee = null;
12687
12688
 
12689
+ /**
12690
+ * Order tax.
12691
+ * @member {number} tax
12692
+ * @memberof Order
12693
+ * @instance
12694
+ */
12695
+ Order.prototype.tax = 0;
12696
+
12688
12697
  /**
12689
12698
  * Creates a new Order instance using the specified properties.
12690
12699
  * @function create
@@ -12769,6 +12778,8 @@ $root.Order = (function() {
12769
12778
  $root.Payment.encode(message.payments[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
12770
12779
  if (message.processingFee != null && Object.hasOwnProperty.call(message, "processingFee"))
12771
12780
  $root.ProcessingFees.encode(message.processingFee, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
12781
+ if (message.tax != null && Object.hasOwnProperty.call(message, "tax"))
12782
+ writer.uint32(/* id 26, wireType 5 =*/213).float(message.tax);
12772
12783
  return writer;
12773
12784
  };
12774
12785
 
@@ -12897,6 +12908,9 @@ $root.Order = (function() {
12897
12908
  case 25:
12898
12909
  message.processingFee = $root.ProcessingFees.decode(reader, reader.uint32());
12899
12910
  break;
12911
+ case 26:
12912
+ message.tax = reader.float();
12913
+ break;
12900
12914
  default:
12901
12915
  reader.skipType(tag & 7);
12902
12916
  break;
@@ -13054,6 +13068,9 @@ $root.Order = (function() {
13054
13068
  if (error)
13055
13069
  return "processingFee." + error;
13056
13070
  }
13071
+ if (message.tax != null && message.hasOwnProperty("tax"))
13072
+ if (typeof message.tax !== "number")
13073
+ return "tax: number expected";
13057
13074
  return null;
13058
13075
  };
13059
13076
 
@@ -13179,6 +13196,8 @@ $root.Order = (function() {
13179
13196
  throw TypeError(".Order.processingFee: object expected");
13180
13197
  message.processingFee = $root.ProcessingFees.fromObject(object.processingFee);
13181
13198
  }
13199
+ if (object.tax != null)
13200
+ message.tax = Number(object.tax);
13182
13201
  return message;
13183
13202
  };
13184
13203
 
@@ -13224,6 +13243,7 @@ $root.Order = (function() {
13224
13243
  object.address = null;
13225
13244
  object.refundReason = "";
13226
13245
  object.processingFee = null;
13246
+ object.tax = 0;
13227
13247
  }
13228
13248
  if (message._id != null && message.hasOwnProperty("_id"))
13229
13249
  object._id = message._id;
@@ -13301,6 +13321,8 @@ $root.Order = (function() {
13301
13321
  }
13302
13322
  if (message.processingFee != null && message.hasOwnProperty("processingFee"))
13303
13323
  object.processingFee = $root.ProcessingFees.toObject(message.processingFee, options);
13324
+ if (message.tax != null && message.hasOwnProperty("tax"))
13325
+ object.tax = options.json && !isFinite(message.tax) ? String(message.tax) : message.tax;
13304
13326
  return object;
13305
13327
  };
13306
13328
 
@@ -15169,6 +15191,7 @@ $root.Payment = (function() {
15169
15191
  * @property {string|null} [createdBy] Payment createdBy
15170
15192
  * @property {string|null} [promotionCode] Payment promotionCode
15171
15193
  * @property {string|null} [paymentMethodType] Payment paymentMethodType
15194
+ * @property {number|null} [tax] Payment tax
15172
15195
  */
15173
15196
 
15174
15197
  /**
@@ -15267,6 +15290,14 @@ $root.Payment = (function() {
15267
15290
  */
15268
15291
  Payment.prototype.paymentMethodType = "";
15269
15292
 
15293
+ /**
15294
+ * Payment tax.
15295
+ * @member {number} tax
15296
+ * @memberof Payment
15297
+ * @instance
15298
+ */
15299
+ Payment.prototype.tax = 0;
15300
+
15270
15301
  /**
15271
15302
  * Creates a new Payment instance using the specified properties.
15272
15303
  * @function create
@@ -15312,6 +15343,8 @@ $root.Payment = (function() {
15312
15343
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.promotionCode);
15313
15344
  if (message.paymentMethodType != null && Object.hasOwnProperty.call(message, "paymentMethodType"))
15314
15345
  writer.uint32(/* id 9, wireType 2 =*/74).string(message.paymentMethodType);
15346
+ if (message.tax != null && Object.hasOwnProperty.call(message, "tax"))
15347
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.tax);
15315
15348
  return writer;
15316
15349
  };
15317
15350
 
@@ -15378,6 +15411,9 @@ $root.Payment = (function() {
15378
15411
  case 9:
15379
15412
  message.paymentMethodType = reader.string();
15380
15413
  break;
15414
+ case 10:
15415
+ message.tax = reader.int32();
15416
+ break;
15381
15417
  default:
15382
15418
  reader.skipType(tag & 7);
15383
15419
  break;
@@ -15447,6 +15483,9 @@ $root.Payment = (function() {
15447
15483
  if (message.paymentMethodType != null && message.hasOwnProperty("paymentMethodType"))
15448
15484
  if (!$util.isString(message.paymentMethodType))
15449
15485
  return "paymentMethodType: string expected";
15486
+ if (message.tax != null && message.hasOwnProperty("tax"))
15487
+ if (!$util.isInteger(message.tax))
15488
+ return "tax: integer expected";
15450
15489
  return null;
15451
15490
  };
15452
15491
 
@@ -15487,6 +15526,8 @@ $root.Payment = (function() {
15487
15526
  message.promotionCode = String(object.promotionCode);
15488
15527
  if (object.paymentMethodType != null)
15489
15528
  message.paymentMethodType = String(object.paymentMethodType);
15529
+ if (object.tax != null)
15530
+ message.tax = object.tax | 0;
15490
15531
  return message;
15491
15532
  };
15492
15533
 
@@ -15515,6 +15556,7 @@ $root.Payment = (function() {
15515
15556
  object.createdBy = "";
15516
15557
  object.promotionCode = "";
15517
15558
  object.paymentMethodType = "";
15559
+ object.tax = 0;
15518
15560
  }
15519
15561
  if (message._id != null && message.hasOwnProperty("_id"))
15520
15562
  object._id = message._id;
@@ -15539,6 +15581,8 @@ $root.Payment = (function() {
15539
15581
  object.promotionCode = message.promotionCode;
15540
15582
  if (message.paymentMethodType != null && message.hasOwnProperty("paymentMethodType"))
15541
15583
  object.paymentMethodType = message.paymentMethodType;
15584
+ if (message.tax != null && message.hasOwnProperty("tax"))
15585
+ object.tax = message.tax;
15542
15586
  return object;
15543
15587
  };
15544
15588
 
@@ -31486,6 +31530,7 @@ $root.Event = (function() {
31486
31530
  * @property {boolean|null} [published] Event published
31487
31531
  * @property {boolean|null} [salesBeginImmediately] Event salesBeginImmediately
31488
31532
  * @property {boolean|null} [cancel] Event cancel
31533
+ * @property {boolean|null} [taxDeduction] Event taxDeduction
31489
31534
  */
31490
31535
 
31491
31536
  /**
@@ -31741,6 +31786,14 @@ $root.Event = (function() {
31741
31786
  */
31742
31787
  Event.prototype.cancel = false;
31743
31788
 
31789
+ /**
31790
+ * Event taxDeduction.
31791
+ * @member {boolean} taxDeduction
31792
+ * @memberof Event
31793
+ * @instance
31794
+ */
31795
+ Event.prototype.taxDeduction = false;
31796
+
31744
31797
  /**
31745
31798
  * Creates a new Event instance using the specified properties.
31746
31799
  * @function create
@@ -31829,6 +31882,8 @@ $root.Event = (function() {
31829
31882
  writer.uint32(/* id 28, wireType 0 =*/224).bool(message.salesBeginImmediately);
31830
31883
  if (message.cancel != null && Object.hasOwnProperty.call(message, "cancel"))
31831
31884
  writer.uint32(/* id 29, wireType 0 =*/232).bool(message.cancel);
31885
+ if (message.taxDeduction != null && Object.hasOwnProperty.call(message, "taxDeduction"))
31886
+ writer.uint32(/* id 30, wireType 0 =*/240).bool(message.taxDeduction);
31832
31887
  return writer;
31833
31888
  };
31834
31889
 
@@ -31962,6 +32017,9 @@ $root.Event = (function() {
31962
32017
  case 29:
31963
32018
  message.cancel = reader.bool();
31964
32019
  break;
32020
+ case 30:
32021
+ message.taxDeduction = reader.bool();
32022
+ break;
31965
32023
  default:
31966
32024
  reader.skipType(tag & 7);
31967
32025
  break;
@@ -32128,6 +32186,9 @@ $root.Event = (function() {
32128
32186
  if (message.cancel != null && message.hasOwnProperty("cancel"))
32129
32187
  if (typeof message.cancel !== "boolean")
32130
32188
  return "cancel: boolean expected";
32189
+ if (message.taxDeduction != null && message.hasOwnProperty("taxDeduction"))
32190
+ if (typeof message.taxDeduction !== "boolean")
32191
+ return "taxDeduction: boolean expected";
32131
32192
  return null;
32132
32193
  };
32133
32194
 
@@ -32261,6 +32322,8 @@ $root.Event = (function() {
32261
32322
  message.salesBeginImmediately = Boolean(object.salesBeginImmediately);
32262
32323
  if (object.cancel != null)
32263
32324
  message.cancel = Boolean(object.cancel);
32325
+ if (object.taxDeduction != null)
32326
+ message.taxDeduction = Boolean(object.taxDeduction);
32264
32327
  return message;
32265
32328
  };
32266
32329
 
@@ -32309,6 +32372,7 @@ $root.Event = (function() {
32309
32372
  object.published = false;
32310
32373
  object.salesBeginImmediately = false;
32311
32374
  object.cancel = false;
32375
+ object.taxDeduction = false;
32312
32376
  }
32313
32377
  if (message._id != null && message.hasOwnProperty("_id"))
32314
32378
  object._id = message._id;
@@ -32386,6 +32450,8 @@ $root.Event = (function() {
32386
32450
  object.salesBeginImmediately = message.salesBeginImmediately;
32387
32451
  if (message.cancel != null && message.hasOwnProperty("cancel"))
32388
32452
  object.cancel = message.cancel;
32453
+ if (message.taxDeduction != null && message.hasOwnProperty("taxDeduction"))
32454
+ object.taxDeduction = message.taxDeduction;
32389
32455
  return object;
32390
32456
  };
32391
32457
 
@@ -61996,6 +62062,551 @@ $root.BookSeatsResponse = (function() {
61996
62062
  return BookSeatsResponse;
61997
62063
  })();
61998
62064
 
62065
+ $root.ReleaseSeatsRequest = (function() {
62066
+
62067
+ /**
62068
+ * Properties of a ReleaseSeatsRequest.
62069
+ * @exports IReleaseSeatsRequest
62070
+ * @interface IReleaseSeatsRequest
62071
+ * @property {string|null} [spanContext] ReleaseSeatsRequest spanContext
62072
+ * @property {string|null} [orgId] ReleaseSeatsRequest orgId
62073
+ * @property {string|null} [eventId] ReleaseSeatsRequest eventId
62074
+ * @property {Array.<string>|null} [seats] ReleaseSeatsRequest seats
62075
+ */
62076
+
62077
+ /**
62078
+ * Constructs a new ReleaseSeatsRequest.
62079
+ * @exports ReleaseSeatsRequest
62080
+ * @classdesc Represents a ReleaseSeatsRequest.
62081
+ * @implements IReleaseSeatsRequest
62082
+ * @constructor
62083
+ * @param {IReleaseSeatsRequest=} [properties] Properties to set
62084
+ */
62085
+ function ReleaseSeatsRequest(properties) {
62086
+ this.seats = [];
62087
+ if (properties)
62088
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62089
+ if (properties[keys[i]] != null)
62090
+ this[keys[i]] = properties[keys[i]];
62091
+ }
62092
+
62093
+ /**
62094
+ * ReleaseSeatsRequest spanContext.
62095
+ * @member {string} spanContext
62096
+ * @memberof ReleaseSeatsRequest
62097
+ * @instance
62098
+ */
62099
+ ReleaseSeatsRequest.prototype.spanContext = "";
62100
+
62101
+ /**
62102
+ * ReleaseSeatsRequest orgId.
62103
+ * @member {string} orgId
62104
+ * @memberof ReleaseSeatsRequest
62105
+ * @instance
62106
+ */
62107
+ ReleaseSeatsRequest.prototype.orgId = "";
62108
+
62109
+ /**
62110
+ * ReleaseSeatsRequest eventId.
62111
+ * @member {string} eventId
62112
+ * @memberof ReleaseSeatsRequest
62113
+ * @instance
62114
+ */
62115
+ ReleaseSeatsRequest.prototype.eventId = "";
62116
+
62117
+ /**
62118
+ * ReleaseSeatsRequest seats.
62119
+ * @member {Array.<string>} seats
62120
+ * @memberof ReleaseSeatsRequest
62121
+ * @instance
62122
+ */
62123
+ ReleaseSeatsRequest.prototype.seats = $util.emptyArray;
62124
+
62125
+ /**
62126
+ * Creates a new ReleaseSeatsRequest instance using the specified properties.
62127
+ * @function create
62128
+ * @memberof ReleaseSeatsRequest
62129
+ * @static
62130
+ * @param {IReleaseSeatsRequest=} [properties] Properties to set
62131
+ * @returns {ReleaseSeatsRequest} ReleaseSeatsRequest instance
62132
+ */
62133
+ ReleaseSeatsRequest.create = function create(properties) {
62134
+ return new ReleaseSeatsRequest(properties);
62135
+ };
62136
+
62137
+ /**
62138
+ * Encodes the specified ReleaseSeatsRequest message. Does not implicitly {@link ReleaseSeatsRequest.verify|verify} messages.
62139
+ * @function encode
62140
+ * @memberof ReleaseSeatsRequest
62141
+ * @static
62142
+ * @param {IReleaseSeatsRequest} message ReleaseSeatsRequest message or plain object to encode
62143
+ * @param {$protobuf.Writer} [writer] Writer to encode to
62144
+ * @returns {$protobuf.Writer} Writer
62145
+ */
62146
+ ReleaseSeatsRequest.encode = function encode(message, writer) {
62147
+ if (!writer)
62148
+ writer = $Writer.create();
62149
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
62150
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
62151
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
62152
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
62153
+ if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
62154
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventId);
62155
+ if (message.seats != null && message.seats.length)
62156
+ for (var i = 0; i < message.seats.length; ++i)
62157
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.seats[i]);
62158
+ return writer;
62159
+ };
62160
+
62161
+ /**
62162
+ * Encodes the specified ReleaseSeatsRequest message, length delimited. Does not implicitly {@link ReleaseSeatsRequest.verify|verify} messages.
62163
+ * @function encodeDelimited
62164
+ * @memberof ReleaseSeatsRequest
62165
+ * @static
62166
+ * @param {IReleaseSeatsRequest} message ReleaseSeatsRequest message or plain object to encode
62167
+ * @param {$protobuf.Writer} [writer] Writer to encode to
62168
+ * @returns {$protobuf.Writer} Writer
62169
+ */
62170
+ ReleaseSeatsRequest.encodeDelimited = function encodeDelimited(message, writer) {
62171
+ return this.encode(message, writer).ldelim();
62172
+ };
62173
+
62174
+ /**
62175
+ * Decodes a ReleaseSeatsRequest message from the specified reader or buffer.
62176
+ * @function decode
62177
+ * @memberof ReleaseSeatsRequest
62178
+ * @static
62179
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62180
+ * @param {number} [length] Message length if known beforehand
62181
+ * @returns {ReleaseSeatsRequest} ReleaseSeatsRequest
62182
+ * @throws {Error} If the payload is not a reader or valid buffer
62183
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
62184
+ */
62185
+ ReleaseSeatsRequest.decode = function decode(reader, length) {
62186
+ if (!(reader instanceof $Reader))
62187
+ reader = $Reader.create(reader);
62188
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ReleaseSeatsRequest();
62189
+ while (reader.pos < end) {
62190
+ var tag = reader.uint32();
62191
+ switch (tag >>> 3) {
62192
+ case 0:
62193
+ message.spanContext = reader.string();
62194
+ break;
62195
+ case 1:
62196
+ message.orgId = reader.string();
62197
+ break;
62198
+ case 2:
62199
+ message.eventId = reader.string();
62200
+ break;
62201
+ case 3:
62202
+ if (!(message.seats && message.seats.length))
62203
+ message.seats = [];
62204
+ message.seats.push(reader.string());
62205
+ break;
62206
+ default:
62207
+ reader.skipType(tag & 7);
62208
+ break;
62209
+ }
62210
+ }
62211
+ return message;
62212
+ };
62213
+
62214
+ /**
62215
+ * Decodes a ReleaseSeatsRequest message from the specified reader or buffer, length delimited.
62216
+ * @function decodeDelimited
62217
+ * @memberof ReleaseSeatsRequest
62218
+ * @static
62219
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62220
+ * @returns {ReleaseSeatsRequest} ReleaseSeatsRequest
62221
+ * @throws {Error} If the payload is not a reader or valid buffer
62222
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
62223
+ */
62224
+ ReleaseSeatsRequest.decodeDelimited = function decodeDelimited(reader) {
62225
+ if (!(reader instanceof $Reader))
62226
+ reader = new $Reader(reader);
62227
+ return this.decode(reader, reader.uint32());
62228
+ };
62229
+
62230
+ /**
62231
+ * Verifies a ReleaseSeatsRequest message.
62232
+ * @function verify
62233
+ * @memberof ReleaseSeatsRequest
62234
+ * @static
62235
+ * @param {Object.<string,*>} message Plain object to verify
62236
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
62237
+ */
62238
+ ReleaseSeatsRequest.verify = function verify(message) {
62239
+ if (typeof message !== "object" || message === null)
62240
+ return "object expected";
62241
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
62242
+ if (!$util.isString(message.spanContext))
62243
+ return "spanContext: string expected";
62244
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
62245
+ if (!$util.isString(message.orgId))
62246
+ return "orgId: string expected";
62247
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
62248
+ if (!$util.isString(message.eventId))
62249
+ return "eventId: string expected";
62250
+ if (message.seats != null && message.hasOwnProperty("seats")) {
62251
+ if (!Array.isArray(message.seats))
62252
+ return "seats: array expected";
62253
+ for (var i = 0; i < message.seats.length; ++i)
62254
+ if (!$util.isString(message.seats[i]))
62255
+ return "seats: string[] expected";
62256
+ }
62257
+ return null;
62258
+ };
62259
+
62260
+ /**
62261
+ * Creates a ReleaseSeatsRequest message from a plain object. Also converts values to their respective internal types.
62262
+ * @function fromObject
62263
+ * @memberof ReleaseSeatsRequest
62264
+ * @static
62265
+ * @param {Object.<string,*>} object Plain object
62266
+ * @returns {ReleaseSeatsRequest} ReleaseSeatsRequest
62267
+ */
62268
+ ReleaseSeatsRequest.fromObject = function fromObject(object) {
62269
+ if (object instanceof $root.ReleaseSeatsRequest)
62270
+ return object;
62271
+ var message = new $root.ReleaseSeatsRequest();
62272
+ if (object.spanContext != null)
62273
+ message.spanContext = String(object.spanContext);
62274
+ if (object.orgId != null)
62275
+ message.orgId = String(object.orgId);
62276
+ if (object.eventId != null)
62277
+ message.eventId = String(object.eventId);
62278
+ if (object.seats) {
62279
+ if (!Array.isArray(object.seats))
62280
+ throw TypeError(".ReleaseSeatsRequest.seats: array expected");
62281
+ message.seats = [];
62282
+ for (var i = 0; i < object.seats.length; ++i)
62283
+ message.seats[i] = String(object.seats[i]);
62284
+ }
62285
+ return message;
62286
+ };
62287
+
62288
+ /**
62289
+ * Creates a plain object from a ReleaseSeatsRequest message. Also converts values to other types if specified.
62290
+ * @function toObject
62291
+ * @memberof ReleaseSeatsRequest
62292
+ * @static
62293
+ * @param {ReleaseSeatsRequest} message ReleaseSeatsRequest
62294
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
62295
+ * @returns {Object.<string,*>} Plain object
62296
+ */
62297
+ ReleaseSeatsRequest.toObject = function toObject(message, options) {
62298
+ if (!options)
62299
+ options = {};
62300
+ var object = {};
62301
+ if (options.arrays || options.defaults)
62302
+ object.seats = [];
62303
+ if (options.defaults) {
62304
+ object.spanContext = "";
62305
+ object.orgId = "";
62306
+ object.eventId = "";
62307
+ }
62308
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
62309
+ object.spanContext = message.spanContext;
62310
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
62311
+ object.orgId = message.orgId;
62312
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
62313
+ object.eventId = message.eventId;
62314
+ if (message.seats && message.seats.length) {
62315
+ object.seats = [];
62316
+ for (var j = 0; j < message.seats.length; ++j)
62317
+ object.seats[j] = message.seats[j];
62318
+ }
62319
+ return object;
62320
+ };
62321
+
62322
+ /**
62323
+ * Converts this ReleaseSeatsRequest to JSON.
62324
+ * @function toJSON
62325
+ * @memberof ReleaseSeatsRequest
62326
+ * @instance
62327
+ * @returns {Object.<string,*>} JSON object
62328
+ */
62329
+ ReleaseSeatsRequest.prototype.toJSON = function toJSON() {
62330
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
62331
+ };
62332
+
62333
+ return ReleaseSeatsRequest;
62334
+ })();
62335
+
62336
+ $root.ReleaseSeatsResponse = (function() {
62337
+
62338
+ /**
62339
+ * Properties of a ReleaseSeatsResponse.
62340
+ * @exports IReleaseSeatsResponse
62341
+ * @interface IReleaseSeatsResponse
62342
+ * @property {StatusCode|null} [status] ReleaseSeatsResponse status
62343
+ * @property {Array.<IError>|null} [errors] ReleaseSeatsResponse errors
62344
+ */
62345
+
62346
+ /**
62347
+ * Constructs a new ReleaseSeatsResponse.
62348
+ * @exports ReleaseSeatsResponse
62349
+ * @classdesc Represents a ReleaseSeatsResponse.
62350
+ * @implements IReleaseSeatsResponse
62351
+ * @constructor
62352
+ * @param {IReleaseSeatsResponse=} [properties] Properties to set
62353
+ */
62354
+ function ReleaseSeatsResponse(properties) {
62355
+ this.errors = [];
62356
+ if (properties)
62357
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62358
+ if (properties[keys[i]] != null)
62359
+ this[keys[i]] = properties[keys[i]];
62360
+ }
62361
+
62362
+ /**
62363
+ * ReleaseSeatsResponse status.
62364
+ * @member {StatusCode} status
62365
+ * @memberof ReleaseSeatsResponse
62366
+ * @instance
62367
+ */
62368
+ ReleaseSeatsResponse.prototype.status = 0;
62369
+
62370
+ /**
62371
+ * ReleaseSeatsResponse errors.
62372
+ * @member {Array.<IError>} errors
62373
+ * @memberof ReleaseSeatsResponse
62374
+ * @instance
62375
+ */
62376
+ ReleaseSeatsResponse.prototype.errors = $util.emptyArray;
62377
+
62378
+ /**
62379
+ * Creates a new ReleaseSeatsResponse instance using the specified properties.
62380
+ * @function create
62381
+ * @memberof ReleaseSeatsResponse
62382
+ * @static
62383
+ * @param {IReleaseSeatsResponse=} [properties] Properties to set
62384
+ * @returns {ReleaseSeatsResponse} ReleaseSeatsResponse instance
62385
+ */
62386
+ ReleaseSeatsResponse.create = function create(properties) {
62387
+ return new ReleaseSeatsResponse(properties);
62388
+ };
62389
+
62390
+ /**
62391
+ * Encodes the specified ReleaseSeatsResponse message. Does not implicitly {@link ReleaseSeatsResponse.verify|verify} messages.
62392
+ * @function encode
62393
+ * @memberof ReleaseSeatsResponse
62394
+ * @static
62395
+ * @param {IReleaseSeatsResponse} message ReleaseSeatsResponse message or plain object to encode
62396
+ * @param {$protobuf.Writer} [writer] Writer to encode to
62397
+ * @returns {$protobuf.Writer} Writer
62398
+ */
62399
+ ReleaseSeatsResponse.encode = function encode(message, writer) {
62400
+ if (!writer)
62401
+ writer = $Writer.create();
62402
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
62403
+ writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
62404
+ if (message.errors != null && message.errors.length)
62405
+ for (var i = 0; i < message.errors.length; ++i)
62406
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
62407
+ return writer;
62408
+ };
62409
+
62410
+ /**
62411
+ * Encodes the specified ReleaseSeatsResponse message, length delimited. Does not implicitly {@link ReleaseSeatsResponse.verify|verify} messages.
62412
+ * @function encodeDelimited
62413
+ * @memberof ReleaseSeatsResponse
62414
+ * @static
62415
+ * @param {IReleaseSeatsResponse} message ReleaseSeatsResponse message or plain object to encode
62416
+ * @param {$protobuf.Writer} [writer] Writer to encode to
62417
+ * @returns {$protobuf.Writer} Writer
62418
+ */
62419
+ ReleaseSeatsResponse.encodeDelimited = function encodeDelimited(message, writer) {
62420
+ return this.encode(message, writer).ldelim();
62421
+ };
62422
+
62423
+ /**
62424
+ * Decodes a ReleaseSeatsResponse message from the specified reader or buffer.
62425
+ * @function decode
62426
+ * @memberof ReleaseSeatsResponse
62427
+ * @static
62428
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62429
+ * @param {number} [length] Message length if known beforehand
62430
+ * @returns {ReleaseSeatsResponse} ReleaseSeatsResponse
62431
+ * @throws {Error} If the payload is not a reader or valid buffer
62432
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
62433
+ */
62434
+ ReleaseSeatsResponse.decode = function decode(reader, length) {
62435
+ if (!(reader instanceof $Reader))
62436
+ reader = $Reader.create(reader);
62437
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ReleaseSeatsResponse();
62438
+ while (reader.pos < end) {
62439
+ var tag = reader.uint32();
62440
+ switch (tag >>> 3) {
62441
+ case 0:
62442
+ message.status = reader.int32();
62443
+ break;
62444
+ case 1:
62445
+ if (!(message.errors && message.errors.length))
62446
+ message.errors = [];
62447
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
62448
+ break;
62449
+ default:
62450
+ reader.skipType(tag & 7);
62451
+ break;
62452
+ }
62453
+ }
62454
+ return message;
62455
+ };
62456
+
62457
+ /**
62458
+ * Decodes a ReleaseSeatsResponse message from the specified reader or buffer, length delimited.
62459
+ * @function decodeDelimited
62460
+ * @memberof ReleaseSeatsResponse
62461
+ * @static
62462
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62463
+ * @returns {ReleaseSeatsResponse} ReleaseSeatsResponse
62464
+ * @throws {Error} If the payload is not a reader or valid buffer
62465
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
62466
+ */
62467
+ ReleaseSeatsResponse.decodeDelimited = function decodeDelimited(reader) {
62468
+ if (!(reader instanceof $Reader))
62469
+ reader = new $Reader(reader);
62470
+ return this.decode(reader, reader.uint32());
62471
+ };
62472
+
62473
+ /**
62474
+ * Verifies a ReleaseSeatsResponse message.
62475
+ * @function verify
62476
+ * @memberof ReleaseSeatsResponse
62477
+ * @static
62478
+ * @param {Object.<string,*>} message Plain object to verify
62479
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
62480
+ */
62481
+ ReleaseSeatsResponse.verify = function verify(message) {
62482
+ if (typeof message !== "object" || message === null)
62483
+ return "object expected";
62484
+ if (message.status != null && message.hasOwnProperty("status"))
62485
+ switch (message.status) {
62486
+ default:
62487
+ return "status: enum value expected";
62488
+ case 0:
62489
+ case 200:
62490
+ case 400:
62491
+ case 401:
62492
+ case 403:
62493
+ case 422:
62494
+ case 500:
62495
+ case 504:
62496
+ break;
62497
+ }
62498
+ if (message.errors != null && message.hasOwnProperty("errors")) {
62499
+ if (!Array.isArray(message.errors))
62500
+ return "errors: array expected";
62501
+ for (var i = 0; i < message.errors.length; ++i) {
62502
+ var error = $root.Error.verify(message.errors[i]);
62503
+ if (error)
62504
+ return "errors." + error;
62505
+ }
62506
+ }
62507
+ return null;
62508
+ };
62509
+
62510
+ /**
62511
+ * Creates a ReleaseSeatsResponse message from a plain object. Also converts values to their respective internal types.
62512
+ * @function fromObject
62513
+ * @memberof ReleaseSeatsResponse
62514
+ * @static
62515
+ * @param {Object.<string,*>} object Plain object
62516
+ * @returns {ReleaseSeatsResponse} ReleaseSeatsResponse
62517
+ */
62518
+ ReleaseSeatsResponse.fromObject = function fromObject(object) {
62519
+ if (object instanceof $root.ReleaseSeatsResponse)
62520
+ return object;
62521
+ var message = new $root.ReleaseSeatsResponse();
62522
+ switch (object.status) {
62523
+ case "UNKNOWN_CODE":
62524
+ case 0:
62525
+ message.status = 0;
62526
+ break;
62527
+ case "OK":
62528
+ case 200:
62529
+ message.status = 200;
62530
+ break;
62531
+ case "BAD_REQUEST":
62532
+ case 400:
62533
+ message.status = 400;
62534
+ break;
62535
+ case "UNAUTHORIZED":
62536
+ case 401:
62537
+ message.status = 401;
62538
+ break;
62539
+ case "FORBIDDEN":
62540
+ case 403:
62541
+ message.status = 403;
62542
+ break;
62543
+ case "UNPROCESSABLE_ENTITY":
62544
+ case 422:
62545
+ message.status = 422;
62546
+ break;
62547
+ case "INTERNAL_SERVER_ERROR":
62548
+ case 500:
62549
+ message.status = 500;
62550
+ break;
62551
+ case "GATEWAY_TIMEOUT":
62552
+ case 504:
62553
+ message.status = 504;
62554
+ break;
62555
+ }
62556
+ if (object.errors) {
62557
+ if (!Array.isArray(object.errors))
62558
+ throw TypeError(".ReleaseSeatsResponse.errors: array expected");
62559
+ message.errors = [];
62560
+ for (var i = 0; i < object.errors.length; ++i) {
62561
+ if (typeof object.errors[i] !== "object")
62562
+ throw TypeError(".ReleaseSeatsResponse.errors: object expected");
62563
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
62564
+ }
62565
+ }
62566
+ return message;
62567
+ };
62568
+
62569
+ /**
62570
+ * Creates a plain object from a ReleaseSeatsResponse message. Also converts values to other types if specified.
62571
+ * @function toObject
62572
+ * @memberof ReleaseSeatsResponse
62573
+ * @static
62574
+ * @param {ReleaseSeatsResponse} message ReleaseSeatsResponse
62575
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
62576
+ * @returns {Object.<string,*>} Plain object
62577
+ */
62578
+ ReleaseSeatsResponse.toObject = function toObject(message, options) {
62579
+ if (!options)
62580
+ options = {};
62581
+ var object = {};
62582
+ if (options.arrays || options.defaults)
62583
+ object.errors = [];
62584
+ if (options.defaults)
62585
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
62586
+ if (message.status != null && message.hasOwnProperty("status"))
62587
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
62588
+ if (message.errors && message.errors.length) {
62589
+ object.errors = [];
62590
+ for (var j = 0; j < message.errors.length; ++j)
62591
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
62592
+ }
62593
+ return object;
62594
+ };
62595
+
62596
+ /**
62597
+ * Converts this ReleaseSeatsResponse to JSON.
62598
+ * @function toJSON
62599
+ * @memberof ReleaseSeatsResponse
62600
+ * @instance
62601
+ * @returns {Object.<string,*>} JSON object
62602
+ */
62603
+ ReleaseSeatsResponse.prototype.toJSON = function toJSON() {
62604
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
62605
+ };
62606
+
62607
+ return ReleaseSeatsResponse;
62608
+ })();
62609
+
61999
62610
  $root.FindOrganizationSeatingRequest = (function() {
62000
62611
 
62001
62612
  /**
@@ -62606,6 +63217,39 @@ $root.SeatingService = (function() {
62606
63217
  * @variation 2
62607
63218
  */
62608
63219
 
63220
+ /**
63221
+ * Callback as used by {@link SeatingService#releaseSeats}.
63222
+ * @memberof SeatingService
63223
+ * @typedef releaseSeatsCallback
63224
+ * @type {function}
63225
+ * @param {Error|null} error Error, if any
63226
+ * @param {ReleaseSeatsResponse} [response] ReleaseSeatsResponse
63227
+ */
63228
+
63229
+ /**
63230
+ * Calls releaseSeats.
63231
+ * @function releaseSeats
63232
+ * @memberof SeatingService
63233
+ * @instance
63234
+ * @param {IReleaseSeatsRequest} request ReleaseSeatsRequest message or plain object
63235
+ * @param {SeatingService.releaseSeatsCallback} callback Node-style callback called with the error, if any, and ReleaseSeatsResponse
63236
+ * @returns {undefined}
63237
+ * @variation 1
63238
+ */
63239
+ Object.defineProperty(SeatingService.prototype.releaseSeats = function releaseSeats(request, callback) {
63240
+ return this.rpcCall(releaseSeats, $root.ReleaseSeatsRequest, $root.ReleaseSeatsResponse, request, callback);
63241
+ }, "name", { value: "releaseSeats" });
63242
+
63243
+ /**
63244
+ * Calls releaseSeats.
63245
+ * @function releaseSeats
63246
+ * @memberof SeatingService
63247
+ * @instance
63248
+ * @param {IReleaseSeatsRequest} request ReleaseSeatsRequest message or plain object
63249
+ * @returns {Promise<ReleaseSeatsResponse>} Promise
63250
+ * @variation 2
63251
+ */
63252
+
62609
63253
  /**
62610
63254
  * Callback as used by {@link SeatingService#findOrganizationSeating}.
62611
63255
  * @memberof SeatingService
@@ -95175,6 +95819,7 @@ $root.Venue = (function() {
95175
95819
  * @property {Array.<string>|null} [imageUrls] Venue imageUrls
95176
95820
  * @property {string|null} [venueGlobalId] Venue venueGlobalId
95177
95821
  * @property {IAddress|null} [address] Venue address
95822
+ * @property {number|null} [tax] Venue tax
95178
95823
  */
95179
95824
 
95180
95825
  /**
@@ -95265,6 +95910,14 @@ $root.Venue = (function() {
95265
95910
  */
95266
95911
  Venue.prototype.address = null;
95267
95912
 
95913
+ /**
95914
+ * Venue tax.
95915
+ * @member {number} tax
95916
+ * @memberof Venue
95917
+ * @instance
95918
+ */
95919
+ Venue.prototype.tax = 0;
95920
+
95268
95921
  /**
95269
95922
  * Creates a new Venue instance using the specified properties.
95270
95923
  * @function create
@@ -95308,6 +95961,8 @@ $root.Venue = (function() {
95308
95961
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.venueGlobalId);
95309
95962
  if (message.address != null && Object.hasOwnProperty.call(message, "address"))
95310
95963
  $root.Address.encode(message.address, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
95964
+ if (message.tax != null && Object.hasOwnProperty.call(message, "tax"))
95965
+ writer.uint32(/* id 9, wireType 5 =*/77).float(message.tax);
95311
95966
  return writer;
95312
95967
  };
95313
95968
 
@@ -95371,6 +96026,9 @@ $root.Venue = (function() {
95371
96026
  case 8:
95372
96027
  message.address = $root.Address.decode(reader, reader.uint32());
95373
96028
  break;
96029
+ case 9:
96030
+ message.tax = reader.float();
96031
+ break;
95374
96032
  default:
95375
96033
  reader.skipType(tag & 7);
95376
96034
  break;
@@ -95439,6 +96097,9 @@ $root.Venue = (function() {
95439
96097
  if (error)
95440
96098
  return "address." + error;
95441
96099
  }
96100
+ if (message.tax != null && message.hasOwnProperty("tax"))
96101
+ if (typeof message.tax !== "number")
96102
+ return "tax: number expected";
95442
96103
  return null;
95443
96104
  };
95444
96105
 
@@ -95480,6 +96141,8 @@ $root.Venue = (function() {
95480
96141
  throw TypeError(".Venue.address: object expected");
95481
96142
  message.address = $root.Address.fromObject(object.address);
95482
96143
  }
96144
+ if (object.tax != null)
96145
+ message.tax = Number(object.tax);
95483
96146
  return message;
95484
96147
  };
95485
96148
 
@@ -95507,6 +96170,7 @@ $root.Venue = (function() {
95507
96170
  object.url = "";
95508
96171
  object.venueGlobalId = "";
95509
96172
  object.address = null;
96173
+ object.tax = 0;
95510
96174
  }
95511
96175
  if (message._id != null && message.hasOwnProperty("_id"))
95512
96176
  object._id = message._id;
@@ -95529,6 +96193,8 @@ $root.Venue = (function() {
95529
96193
  object.venueGlobalId = message.venueGlobalId;
95530
96194
  if (message.address != null && message.hasOwnProperty("address"))
95531
96195
  object.address = $root.Address.toObject(message.address, options);
96196
+ if (message.tax != null && message.hasOwnProperty("tax"))
96197
+ object.tax = options.json && !isFinite(message.tax) ? String(message.tax) : message.tax;
95532
96198
  return object;
95533
96199
  };
95534
96200