@sellout/models 0.0.364 → 0.0.366

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 (93) hide show
  1. package/.dist/graphql/mutations/createEvent.mutation.js +5 -1
  2. package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
  3. package/.dist/graphql/mutations/createSeason.mutation.js +5 -1
  4. package/.dist/graphql/mutations/createSeason.mutation.js.map +1 -1
  5. package/.dist/graphql/mutations/duplicateEvent.mutation.js +5 -1
  6. package/.dist/graphql/mutations/duplicateEvent.mutation.js.map +1 -1
  7. package/.dist/graphql/mutations/publishEvent.mutation.js +5 -1
  8. package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -1
  9. package/.dist/graphql/mutations/publishSeason.mutation.js +5 -1
  10. package/.dist/graphql/mutations/publishSeason.mutation.js.map +1 -1
  11. package/.dist/graphql/mutations/updateEvent.mutation.js +5 -1
  12. package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
  13. package/.dist/graphql/mutations/updateSeason.mutation.js +5 -1
  14. package/.dist/graphql/mutations/updateSeason.mutation.js.map +1 -1
  15. package/.dist/graphql/mutations/uploadFiles.mutation.js +2 -2
  16. package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.d.ts +2 -0
  17. package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.js +11 -0
  18. package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.js.map +1 -0
  19. package/.dist/graphql/queries/customerOrders.query.js +5 -1
  20. package/.dist/graphql/queries/customerOrders.query.js.map +1 -1
  21. package/.dist/graphql/queries/event.query.js +5 -1
  22. package/.dist/graphql/queries/event.query.js.map +1 -1
  23. package/.dist/graphql/queries/events.query.js +5 -1
  24. package/.dist/graphql/queries/events.query.js.map +1 -1
  25. package/.dist/graphql/queries/eventsAdminCalender.query.js +5 -1
  26. package/.dist/graphql/queries/eventsAdminCalender.query.js.map +1 -1
  27. package/.dist/graphql/queries/order.query.js +10 -2
  28. package/.dist/graphql/queries/order.query.js.map +1 -1
  29. package/.dist/graphql/queries/orders.query.js +10 -2
  30. package/.dist/graphql/queries/orders.query.js.map +1 -1
  31. package/.dist/graphql/queries/publicEvent.query.js +5 -1
  32. package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
  33. package/.dist/graphql/queries/publicSeason.query.js +5 -1
  34. package/.dist/graphql/queries/publicSeason.query.js.map +1 -1
  35. package/.dist/graphql/queries/season.query.js +5 -1
  36. package/.dist/graphql/queries/season.query.js.map +1 -1
  37. package/.dist/graphql/queries/seasons.query.js +5 -1
  38. package/.dist/graphql/queries/seasons.query.js.map +1 -1
  39. package/.dist/graphql/queries/waitList.query.js +5 -1
  40. package/.dist/graphql/queries/waitList.query.js.map +1 -1
  41. package/.dist/interfaces/IEvent.d.ts +2 -1
  42. package/.dist/interfaces/IEvent.js.map +1 -1
  43. package/.dist/interfaces/IEventPosterUrl.d.ts +5 -0
  44. package/.dist/interfaces/IEventPosterUrl.js +3 -0
  45. package/.dist/interfaces/IEventPosterUrl.js.map +1 -0
  46. package/.dist/interfaces/ISeason.d.ts +2 -1
  47. package/.dist/interfaces/ISeason.js.map +1 -1
  48. package/.dist/interfaces/ISeasonPosterUrl.d.ts +5 -0
  49. package/.dist/interfaces/ISeasonPosterUrl.js +3 -0
  50. package/.dist/interfaces/ISeasonPosterUrl.js.map +1 -0
  51. package/.dist/schemas/Event.d.ts +12 -2
  52. package/.dist/schemas/Event.js +15 -4
  53. package/.dist/schemas/Event.js.map +1 -1
  54. package/.dist/schemas/Season.d.ts +12 -2
  55. package/.dist/schemas/Season.js +15 -4
  56. package/.dist/schemas/Season.js.map +1 -1
  57. package/.dist/sellout-proto.js +867 -48
  58. package/.dist/utils/EventUtil.js +16 -6
  59. package/.dist/utils/EventUtil.js.map +1 -1
  60. package/.dist/utils/SeasonUtil.js +15 -5
  61. package/.dist/utils/SeasonUtil.js.map +1 -1
  62. package/package.json +3 -3
  63. package/src/graphql/mutations/createEvent.mutation.ts +5 -1
  64. package/src/graphql/mutations/createSeason.mutation.ts +5 -1
  65. package/src/graphql/mutations/duplicateEvent.mutation.ts +5 -1
  66. package/src/graphql/mutations/publishEvent.mutation.ts +5 -1
  67. package/src/graphql/mutations/publishSeason.mutation.ts +5 -1
  68. package/src/graphql/mutations/updateEvent.mutation.ts +5 -1
  69. package/src/graphql/mutations/updateSeason.mutation.ts +5 -1
  70. package/src/graphql/mutations/uploadFiles.mutation.ts +2 -2
  71. package/src/graphql/queries/DuplicateUrlStubUniqueness.query.ts +10 -0
  72. package/src/graphql/queries/customerOrders.query.ts +5 -1
  73. package/src/graphql/queries/event.query.ts +5 -1
  74. package/src/graphql/queries/events.query.ts +5 -1
  75. package/src/graphql/queries/eventsAdminCalender.query.ts +5 -1
  76. package/src/graphql/queries/order.query.ts +10 -2
  77. package/src/graphql/queries/orders.query.ts +10 -2
  78. package/src/graphql/queries/publicEvent.query.ts +5 -1
  79. package/src/graphql/queries/publicSeason.query.ts +5 -1
  80. package/src/graphql/queries/season.query.ts +5 -1
  81. package/src/graphql/queries/seasons.query.ts +5 -1
  82. package/src/graphql/queries/waitList.query.ts +5 -1
  83. package/src/interfaces/IEvent.ts +2 -1
  84. package/src/interfaces/IEventPosterUrl.ts +5 -0
  85. package/src/interfaces/ISeason.ts +2 -2
  86. package/src/interfaces/ISeasonPosterUrl.ts +5 -0
  87. package/src/proto/event.proto +21 -3
  88. package/src/proto/file-upload.proto +1 -0
  89. package/src/proto/season.proto +2 -2
  90. package/src/schemas/Event.ts +16 -4
  91. package/src/schemas/Season.ts +15 -4
  92. package/src/utils/EventUtil.ts +16 -6
  93. package/src/utils/SeasonUtil.ts +16 -5
@@ -88016,7 +88016,7 @@ $root.Event = (function() {
88016
88016
  * @property {string|null} [name] Event name
88017
88017
  * @property {string|null} [subtitle] Event subtitle
88018
88018
  * @property {string|null} [description] Event description
88019
- * @property {string|null} [posterImageUrl] Event posterImageUrl
88019
+ * @property {IPosterImageUrl|null} [posterImageUrl] Event posterImageUrl
88020
88020
  * @property {string|null} [venueId] Event venueId
88021
88021
  * @property {number|null} [createdAt] Event createdAt
88022
88022
  * @property {boolean|null} [publishable] Event publishable
@@ -88129,11 +88129,11 @@ $root.Event = (function() {
88129
88129
 
88130
88130
  /**
88131
88131
  * Event posterImageUrl.
88132
- * @member {string} posterImageUrl
88132
+ * @member {IPosterImageUrl|null|undefined} posterImageUrl
88133
88133
  * @memberof Event
88134
88134
  * @instance
88135
88135
  */
88136
- Event.prototype.posterImageUrl = "";
88136
+ Event.prototype.posterImageUrl = null;
88137
88137
 
88138
88138
  /**
88139
88139
  * Event venueId.
@@ -88468,7 +88468,7 @@ $root.Event = (function() {
88468
88468
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
88469
88469
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
88470
88470
  if (message.posterImageUrl != null && Object.hasOwnProperty.call(message, "posterImageUrl"))
88471
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.posterImageUrl);
88471
+ $root.PosterImageUrl.encode(message.posterImageUrl, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
88472
88472
  if (message.venueId != null && Object.hasOwnProperty.call(message, "venueId"))
88473
88473
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.venueId);
88474
88474
  if (message.createdAt != null && Object.hasOwnProperty.call(message, "createdAt"))
@@ -88604,7 +88604,7 @@ $root.Event = (function() {
88604
88604
  message.description = reader.string();
88605
88605
  break;
88606
88606
  case 7:
88607
- message.posterImageUrl = reader.string();
88607
+ message.posterImageUrl = $root.PosterImageUrl.decode(reader, reader.uint32());
88608
88608
  break;
88609
88609
  case 8:
88610
88610
  message.venueId = reader.string();
@@ -88786,9 +88786,11 @@ $root.Event = (function() {
88786
88786
  if (message.description != null && message.hasOwnProperty("description"))
88787
88787
  if (!$util.isString(message.description))
88788
88788
  return "description: string expected";
88789
- if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl"))
88790
- if (!$util.isString(message.posterImageUrl))
88791
- return "posterImageUrl: string expected";
88789
+ if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl")) {
88790
+ var error = $root.PosterImageUrl.verify(message.posterImageUrl);
88791
+ if (error)
88792
+ return "posterImageUrl." + error;
88793
+ }
88792
88794
  if (message.venueId != null && message.hasOwnProperty("venueId"))
88793
88795
  if (!$util.isString(message.venueId))
88794
88796
  return "venueId: string expected";
@@ -88983,8 +88985,11 @@ $root.Event = (function() {
88983
88985
  message.subtitle = String(object.subtitle);
88984
88986
  if (object.description != null)
88985
88987
  message.description = String(object.description);
88986
- if (object.posterImageUrl != null)
88987
- message.posterImageUrl = String(object.posterImageUrl);
88988
+ if (object.posterImageUrl != null) {
88989
+ if (typeof object.posterImageUrl !== "object")
88990
+ throw TypeError(".Event.posterImageUrl: object expected");
88991
+ message.posterImageUrl = $root.PosterImageUrl.fromObject(object.posterImageUrl);
88992
+ }
88988
88993
  if (object.venueId != null)
88989
88994
  message.venueId = String(object.venueId);
88990
88995
  if (object.createdAt != null)
@@ -89168,7 +89173,7 @@ $root.Event = (function() {
89168
89173
  object.name = "";
89169
89174
  object.subtitle = "";
89170
89175
  object.description = "";
89171
- object.posterImageUrl = "";
89176
+ object.posterImageUrl = null;
89172
89177
  object.venueId = "";
89173
89178
  object.createdAt = 0;
89174
89179
  object.publishable = false;
@@ -89212,7 +89217,7 @@ $root.Event = (function() {
89212
89217
  if (message.description != null && message.hasOwnProperty("description"))
89213
89218
  object.description = message.description;
89214
89219
  if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl"))
89215
- object.posterImageUrl = message.posterImageUrl;
89220
+ object.posterImageUrl = $root.PosterImageUrl.toObject(message.posterImageUrl, options);
89216
89221
  if (message.venueId != null && message.hasOwnProperty("venueId"))
89217
89222
  object.venueId = message.venueId;
89218
89223
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
@@ -89340,7 +89345,7 @@ $root.PublicEvent = (function() {
89340
89345
  * @property {string|null} [name] PublicEvent name
89341
89346
  * @property {string|null} [subtitle] PublicEvent subtitle
89342
89347
  * @property {string|null} [description] PublicEvent description
89343
- * @property {string|null} [posterImageUrl] PublicEvent posterImageUrl
89348
+ * @property {IPosterImageUrl|null} [posterImageUrl] PublicEvent posterImageUrl
89344
89349
  * @property {string|null} [venueId] PublicEvent venueId
89345
89350
  * @property {number|null} [createdAt] PublicEvent createdAt
89346
89351
  * @property {boolean|null} [publishable] PublicEvent publishable
@@ -89432,11 +89437,11 @@ $root.PublicEvent = (function() {
89432
89437
 
89433
89438
  /**
89434
89439
  * PublicEvent posterImageUrl.
89435
- * @member {string} posterImageUrl
89440
+ * @member {IPosterImageUrl|null|undefined} posterImageUrl
89436
89441
  * @memberof PublicEvent
89437
89442
  * @instance
89438
89443
  */
89439
- PublicEvent.prototype.posterImageUrl = "";
89444
+ PublicEvent.prototype.posterImageUrl = null;
89440
89445
 
89441
89446
  /**
89442
89447
  * PublicEvent venueId.
@@ -89659,7 +89664,7 @@ $root.PublicEvent = (function() {
89659
89664
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
89660
89665
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
89661
89666
  if (message.posterImageUrl != null && Object.hasOwnProperty.call(message, "posterImageUrl"))
89662
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.posterImageUrl);
89667
+ $root.PosterImageUrl.encode(message.posterImageUrl, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
89663
89668
  if (message.venueId != null && Object.hasOwnProperty.call(message, "venueId"))
89664
89669
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.venueId);
89665
89670
  if (message.createdAt != null && Object.hasOwnProperty.call(message, "createdAt"))
@@ -89760,7 +89765,7 @@ $root.PublicEvent = (function() {
89760
89765
  message.description = reader.string();
89761
89766
  break;
89762
89767
  case 7:
89763
- message.posterImageUrl = reader.string();
89768
+ message.posterImageUrl = $root.PosterImageUrl.decode(reader, reader.uint32());
89764
89769
  break;
89765
89770
  case 8:
89766
89771
  message.venueId = reader.string();
@@ -89886,9 +89891,11 @@ $root.PublicEvent = (function() {
89886
89891
  if (message.description != null && message.hasOwnProperty("description"))
89887
89892
  if (!$util.isString(message.description))
89888
89893
  return "description: string expected";
89889
- if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl"))
89890
- if (!$util.isString(message.posterImageUrl))
89891
- return "posterImageUrl: string expected";
89894
+ if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl")) {
89895
+ var error = $root.PosterImageUrl.verify(message.posterImageUrl);
89896
+ if (error)
89897
+ return "posterImageUrl." + error;
89898
+ }
89892
89899
  if (message.venueId != null && message.hasOwnProperty("venueId"))
89893
89900
  if (!$util.isString(message.venueId))
89894
89901
  return "venueId: string expected";
@@ -89995,8 +90002,11 @@ $root.PublicEvent = (function() {
89995
90002
  message.subtitle = String(object.subtitle);
89996
90003
  if (object.description != null)
89997
90004
  message.description = String(object.description);
89998
- if (object.posterImageUrl != null)
89999
- message.posterImageUrl = String(object.posterImageUrl);
90005
+ if (object.posterImageUrl != null) {
90006
+ if (typeof object.posterImageUrl !== "object")
90007
+ throw TypeError(".PublicEvent.posterImageUrl: object expected");
90008
+ message.posterImageUrl = $root.PosterImageUrl.fromObject(object.posterImageUrl);
90009
+ }
90000
90010
  if (object.venueId != null)
90001
90011
  message.venueId = String(object.venueId);
90002
90012
  if (object.createdAt != null)
@@ -90082,7 +90092,7 @@ $root.PublicEvent = (function() {
90082
90092
  object.name = "";
90083
90093
  object.subtitle = "";
90084
90094
  object.description = "";
90085
- object.posterImageUrl = "";
90095
+ object.posterImageUrl = null;
90086
90096
  object.venueId = "";
90087
90097
  object.createdAt = 0;
90088
90098
  object.publishable = false;
@@ -90119,7 +90129,7 @@ $root.PublicEvent = (function() {
90119
90129
  if (message.description != null && message.hasOwnProperty("description"))
90120
90130
  object.description = message.description;
90121
90131
  if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl"))
90122
- object.posterImageUrl = message.posterImageUrl;
90132
+ object.posterImageUrl = $root.PosterImageUrl.toObject(message.posterImageUrl, options);
90123
90133
  if (message.venueId != null && message.hasOwnProperty("venueId"))
90124
90134
  object.venueId = message.venueId;
90125
90135
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
@@ -90496,7 +90506,7 @@ $root.PublicEventDetails = (function() {
90496
90506
  * @property {string|null} [name] PublicEventDetails name
90497
90507
  * @property {string|null} [subtitle] PublicEventDetails subtitle
90498
90508
  * @property {string|null} [description] PublicEventDetails description
90499
- * @property {string|null} [posterImageUrl] PublicEventDetails posterImageUrl
90509
+ * @property {IPosterImageUrl|null} [posterImageUrl] PublicEventDetails posterImageUrl
90500
90510
  * @property {string|null} [venueId] PublicEventDetails venueId
90501
90511
  * @property {number|null} [createdAt] PublicEventDetails createdAt
90502
90512
  * @property {boolean|null} [publishable] PublicEventDetails publishable
@@ -90588,11 +90598,11 @@ $root.PublicEventDetails = (function() {
90588
90598
 
90589
90599
  /**
90590
90600
  * PublicEventDetails posterImageUrl.
90591
- * @member {string} posterImageUrl
90601
+ * @member {IPosterImageUrl|null|undefined} posterImageUrl
90592
90602
  * @memberof PublicEventDetails
90593
90603
  * @instance
90594
90604
  */
90595
- PublicEventDetails.prototype.posterImageUrl = "";
90605
+ PublicEventDetails.prototype.posterImageUrl = null;
90596
90606
 
90597
90607
  /**
90598
90608
  * PublicEventDetails venueId.
@@ -90815,7 +90825,7 @@ $root.PublicEventDetails = (function() {
90815
90825
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
90816
90826
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
90817
90827
  if (message.posterImageUrl != null && Object.hasOwnProperty.call(message, "posterImageUrl"))
90818
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.posterImageUrl);
90828
+ $root.PosterImageUrl.encode(message.posterImageUrl, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
90819
90829
  if (message.venueId != null && Object.hasOwnProperty.call(message, "venueId"))
90820
90830
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.venueId);
90821
90831
  if (message.createdAt != null && Object.hasOwnProperty.call(message, "createdAt"))
@@ -90916,7 +90926,7 @@ $root.PublicEventDetails = (function() {
90916
90926
  message.description = reader.string();
90917
90927
  break;
90918
90928
  case 7:
90919
- message.posterImageUrl = reader.string();
90929
+ message.posterImageUrl = $root.PosterImageUrl.decode(reader, reader.uint32());
90920
90930
  break;
90921
90931
  case 8:
90922
90932
  message.venueId = reader.string();
@@ -91042,9 +91052,11 @@ $root.PublicEventDetails = (function() {
91042
91052
  if (message.description != null && message.hasOwnProperty("description"))
91043
91053
  if (!$util.isString(message.description))
91044
91054
  return "description: string expected";
91045
- if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl"))
91046
- if (!$util.isString(message.posterImageUrl))
91047
- return "posterImageUrl: string expected";
91055
+ if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl")) {
91056
+ var error = $root.PosterImageUrl.verify(message.posterImageUrl);
91057
+ if (error)
91058
+ return "posterImageUrl." + error;
91059
+ }
91048
91060
  if (message.venueId != null && message.hasOwnProperty("venueId"))
91049
91061
  if (!$util.isString(message.venueId))
91050
91062
  return "venueId: string expected";
@@ -91155,8 +91167,11 @@ $root.PublicEventDetails = (function() {
91155
91167
  message.subtitle = String(object.subtitle);
91156
91168
  if (object.description != null)
91157
91169
  message.description = String(object.description);
91158
- if (object.posterImageUrl != null)
91159
- message.posterImageUrl = String(object.posterImageUrl);
91170
+ if (object.posterImageUrl != null) {
91171
+ if (typeof object.posterImageUrl !== "object")
91172
+ throw TypeError(".PublicEventDetails.posterImageUrl: object expected");
91173
+ message.posterImageUrl = $root.PosterImageUrl.fromObject(object.posterImageUrl);
91174
+ }
91160
91175
  if (object.venueId != null)
91161
91176
  message.venueId = String(object.venueId);
91162
91177
  if (object.createdAt != null)
@@ -91248,7 +91263,7 @@ $root.PublicEventDetails = (function() {
91248
91263
  object.name = "";
91249
91264
  object.subtitle = "";
91250
91265
  object.description = "";
91251
- object.posterImageUrl = "";
91266
+ object.posterImageUrl = null;
91252
91267
  object.venueId = "";
91253
91268
  object.createdAt = 0;
91254
91269
  object.publishable = false;
@@ -91285,7 +91300,7 @@ $root.PublicEventDetails = (function() {
91285
91300
  if (message.description != null && message.hasOwnProperty("description"))
91286
91301
  object.description = message.description;
91287
91302
  if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl"))
91288
- object.posterImageUrl = message.posterImageUrl;
91303
+ object.posterImageUrl = $root.PosterImageUrl.toObject(message.posterImageUrl, options);
91289
91304
  if (message.venueId != null && message.hasOwnProperty("venueId"))
91290
91305
  object.venueId = message.venueId;
91291
91306
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
@@ -113351,6 +113366,750 @@ $root.ClearExpiredEventQrCodesResponse = (function() {
113351
113366
  return ClearExpiredEventQrCodesResponse;
113352
113367
  })();
113353
113368
 
113369
+ $root.PosterImageUrl = (function() {
113370
+
113371
+ /**
113372
+ * Properties of a PosterImageUrl.
113373
+ * @exports IPosterImageUrl
113374
+ * @interface IPosterImageUrl
113375
+ * @property {string|null} [original] PosterImageUrl original
113376
+ * @property {string|null} [medium] PosterImageUrl medium
113377
+ * @property {string|null} [small] PosterImageUrl small
113378
+ */
113379
+
113380
+ /**
113381
+ * Constructs a new PosterImageUrl.
113382
+ * @exports PosterImageUrl
113383
+ * @classdesc Represents a PosterImageUrl.
113384
+ * @implements IPosterImageUrl
113385
+ * @constructor
113386
+ * @param {IPosterImageUrl=} [properties] Properties to set
113387
+ */
113388
+ function PosterImageUrl(properties) {
113389
+ if (properties)
113390
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
113391
+ if (properties[keys[i]] != null)
113392
+ this[keys[i]] = properties[keys[i]];
113393
+ }
113394
+
113395
+ /**
113396
+ * PosterImageUrl original.
113397
+ * @member {string} original
113398
+ * @memberof PosterImageUrl
113399
+ * @instance
113400
+ */
113401
+ PosterImageUrl.prototype.original = "";
113402
+
113403
+ /**
113404
+ * PosterImageUrl medium.
113405
+ * @member {string} medium
113406
+ * @memberof PosterImageUrl
113407
+ * @instance
113408
+ */
113409
+ PosterImageUrl.prototype.medium = "";
113410
+
113411
+ /**
113412
+ * PosterImageUrl small.
113413
+ * @member {string} small
113414
+ * @memberof PosterImageUrl
113415
+ * @instance
113416
+ */
113417
+ PosterImageUrl.prototype.small = "";
113418
+
113419
+ /**
113420
+ * Creates a new PosterImageUrl instance using the specified properties.
113421
+ * @function create
113422
+ * @memberof PosterImageUrl
113423
+ * @static
113424
+ * @param {IPosterImageUrl=} [properties] Properties to set
113425
+ * @returns {PosterImageUrl} PosterImageUrl instance
113426
+ */
113427
+ PosterImageUrl.create = function create(properties) {
113428
+ return new PosterImageUrl(properties);
113429
+ };
113430
+
113431
+ /**
113432
+ * Encodes the specified PosterImageUrl message. Does not implicitly {@link PosterImageUrl.verify|verify} messages.
113433
+ * @function encode
113434
+ * @memberof PosterImageUrl
113435
+ * @static
113436
+ * @param {IPosterImageUrl} message PosterImageUrl message or plain object to encode
113437
+ * @param {$protobuf.Writer} [writer] Writer to encode to
113438
+ * @returns {$protobuf.Writer} Writer
113439
+ */
113440
+ PosterImageUrl.encode = function encode(message, writer) {
113441
+ if (!writer)
113442
+ writer = $Writer.create();
113443
+ if (message.original != null && Object.hasOwnProperty.call(message, "original"))
113444
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.original);
113445
+ if (message.medium != null && Object.hasOwnProperty.call(message, "medium"))
113446
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.medium);
113447
+ if (message.small != null && Object.hasOwnProperty.call(message, "small"))
113448
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.small);
113449
+ return writer;
113450
+ };
113451
+
113452
+ /**
113453
+ * Encodes the specified PosterImageUrl message, length delimited. Does not implicitly {@link PosterImageUrl.verify|verify} messages.
113454
+ * @function encodeDelimited
113455
+ * @memberof PosterImageUrl
113456
+ * @static
113457
+ * @param {IPosterImageUrl} message PosterImageUrl message or plain object to encode
113458
+ * @param {$protobuf.Writer} [writer] Writer to encode to
113459
+ * @returns {$protobuf.Writer} Writer
113460
+ */
113461
+ PosterImageUrl.encodeDelimited = function encodeDelimited(message, writer) {
113462
+ return this.encode(message, writer).ldelim();
113463
+ };
113464
+
113465
+ /**
113466
+ * Decodes a PosterImageUrl message from the specified reader or buffer.
113467
+ * @function decode
113468
+ * @memberof PosterImageUrl
113469
+ * @static
113470
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
113471
+ * @param {number} [length] Message length if known beforehand
113472
+ * @returns {PosterImageUrl} PosterImageUrl
113473
+ * @throws {Error} If the payload is not a reader or valid buffer
113474
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
113475
+ */
113476
+ PosterImageUrl.decode = function decode(reader, length) {
113477
+ if (!(reader instanceof $Reader))
113478
+ reader = $Reader.create(reader);
113479
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PosterImageUrl();
113480
+ while (reader.pos < end) {
113481
+ var tag = reader.uint32();
113482
+ switch (tag >>> 3) {
113483
+ case 0:
113484
+ message.original = reader.string();
113485
+ break;
113486
+ case 1:
113487
+ message.medium = reader.string();
113488
+ break;
113489
+ case 2:
113490
+ message.small = reader.string();
113491
+ break;
113492
+ default:
113493
+ reader.skipType(tag & 7);
113494
+ break;
113495
+ }
113496
+ }
113497
+ return message;
113498
+ };
113499
+
113500
+ /**
113501
+ * Decodes a PosterImageUrl message from the specified reader or buffer, length delimited.
113502
+ * @function decodeDelimited
113503
+ * @memberof PosterImageUrl
113504
+ * @static
113505
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
113506
+ * @returns {PosterImageUrl} PosterImageUrl
113507
+ * @throws {Error} If the payload is not a reader or valid buffer
113508
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
113509
+ */
113510
+ PosterImageUrl.decodeDelimited = function decodeDelimited(reader) {
113511
+ if (!(reader instanceof $Reader))
113512
+ reader = new $Reader(reader);
113513
+ return this.decode(reader, reader.uint32());
113514
+ };
113515
+
113516
+ /**
113517
+ * Verifies a PosterImageUrl message.
113518
+ * @function verify
113519
+ * @memberof PosterImageUrl
113520
+ * @static
113521
+ * @param {Object.<string,*>} message Plain object to verify
113522
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
113523
+ */
113524
+ PosterImageUrl.verify = function verify(message) {
113525
+ if (typeof message !== "object" || message === null)
113526
+ return "object expected";
113527
+ if (message.original != null && message.hasOwnProperty("original"))
113528
+ if (!$util.isString(message.original))
113529
+ return "original: string expected";
113530
+ if (message.medium != null && message.hasOwnProperty("medium"))
113531
+ if (!$util.isString(message.medium))
113532
+ return "medium: string expected";
113533
+ if (message.small != null && message.hasOwnProperty("small"))
113534
+ if (!$util.isString(message.small))
113535
+ return "small: string expected";
113536
+ return null;
113537
+ };
113538
+
113539
+ /**
113540
+ * Creates a PosterImageUrl message from a plain object. Also converts values to their respective internal types.
113541
+ * @function fromObject
113542
+ * @memberof PosterImageUrl
113543
+ * @static
113544
+ * @param {Object.<string,*>} object Plain object
113545
+ * @returns {PosterImageUrl} PosterImageUrl
113546
+ */
113547
+ PosterImageUrl.fromObject = function fromObject(object) {
113548
+ if (object instanceof $root.PosterImageUrl)
113549
+ return object;
113550
+ var message = new $root.PosterImageUrl();
113551
+ if (object.original != null)
113552
+ message.original = String(object.original);
113553
+ if (object.medium != null)
113554
+ message.medium = String(object.medium);
113555
+ if (object.small != null)
113556
+ message.small = String(object.small);
113557
+ return message;
113558
+ };
113559
+
113560
+ /**
113561
+ * Creates a plain object from a PosterImageUrl message. Also converts values to other types if specified.
113562
+ * @function toObject
113563
+ * @memberof PosterImageUrl
113564
+ * @static
113565
+ * @param {PosterImageUrl} message PosterImageUrl
113566
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
113567
+ * @returns {Object.<string,*>} Plain object
113568
+ */
113569
+ PosterImageUrl.toObject = function toObject(message, options) {
113570
+ if (!options)
113571
+ options = {};
113572
+ var object = {};
113573
+ if (options.defaults) {
113574
+ object.original = "";
113575
+ object.medium = "";
113576
+ object.small = "";
113577
+ }
113578
+ if (message.original != null && message.hasOwnProperty("original"))
113579
+ object.original = message.original;
113580
+ if (message.medium != null && message.hasOwnProperty("medium"))
113581
+ object.medium = message.medium;
113582
+ if (message.small != null && message.hasOwnProperty("small"))
113583
+ object.small = message.small;
113584
+ return object;
113585
+ };
113586
+
113587
+ /**
113588
+ * Converts this PosterImageUrl to JSON.
113589
+ * @function toJSON
113590
+ * @memberof PosterImageUrl
113591
+ * @instance
113592
+ * @returns {Object.<string,*>} JSON object
113593
+ */
113594
+ PosterImageUrl.prototype.toJSON = function toJSON() {
113595
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
113596
+ };
113597
+
113598
+ return PosterImageUrl;
113599
+ })();
113600
+
113601
+ $root.CheckStubUniquenessRequest = (function() {
113602
+
113603
+ /**
113604
+ * Properties of a CheckStubUniquenessRequest.
113605
+ * @exports ICheckStubUniquenessRequest
113606
+ * @interface ICheckStubUniquenessRequest
113607
+ * @property {string|null} [spanContext] CheckStubUniquenessRequest spanContext
113608
+ * @property {string|null} [stub] CheckStubUniquenessRequest stub
113609
+ */
113610
+
113611
+ /**
113612
+ * Constructs a new CheckStubUniquenessRequest.
113613
+ * @exports CheckStubUniquenessRequest
113614
+ * @classdesc Represents a CheckStubUniquenessRequest.
113615
+ * @implements ICheckStubUniquenessRequest
113616
+ * @constructor
113617
+ * @param {ICheckStubUniquenessRequest=} [properties] Properties to set
113618
+ */
113619
+ function CheckStubUniquenessRequest(properties) {
113620
+ if (properties)
113621
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
113622
+ if (properties[keys[i]] != null)
113623
+ this[keys[i]] = properties[keys[i]];
113624
+ }
113625
+
113626
+ /**
113627
+ * CheckStubUniquenessRequest spanContext.
113628
+ * @member {string} spanContext
113629
+ * @memberof CheckStubUniquenessRequest
113630
+ * @instance
113631
+ */
113632
+ CheckStubUniquenessRequest.prototype.spanContext = "";
113633
+
113634
+ /**
113635
+ * CheckStubUniquenessRequest stub.
113636
+ * @member {string} stub
113637
+ * @memberof CheckStubUniquenessRequest
113638
+ * @instance
113639
+ */
113640
+ CheckStubUniquenessRequest.prototype.stub = "";
113641
+
113642
+ /**
113643
+ * Creates a new CheckStubUniquenessRequest instance using the specified properties.
113644
+ * @function create
113645
+ * @memberof CheckStubUniquenessRequest
113646
+ * @static
113647
+ * @param {ICheckStubUniquenessRequest=} [properties] Properties to set
113648
+ * @returns {CheckStubUniquenessRequest} CheckStubUniquenessRequest instance
113649
+ */
113650
+ CheckStubUniquenessRequest.create = function create(properties) {
113651
+ return new CheckStubUniquenessRequest(properties);
113652
+ };
113653
+
113654
+ /**
113655
+ * Encodes the specified CheckStubUniquenessRequest message. Does not implicitly {@link CheckStubUniquenessRequest.verify|verify} messages.
113656
+ * @function encode
113657
+ * @memberof CheckStubUniquenessRequest
113658
+ * @static
113659
+ * @param {ICheckStubUniquenessRequest} message CheckStubUniquenessRequest message or plain object to encode
113660
+ * @param {$protobuf.Writer} [writer] Writer to encode to
113661
+ * @returns {$protobuf.Writer} Writer
113662
+ */
113663
+ CheckStubUniquenessRequest.encode = function encode(message, writer) {
113664
+ if (!writer)
113665
+ writer = $Writer.create();
113666
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
113667
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
113668
+ if (message.stub != null && Object.hasOwnProperty.call(message, "stub"))
113669
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.stub);
113670
+ return writer;
113671
+ };
113672
+
113673
+ /**
113674
+ * Encodes the specified CheckStubUniquenessRequest message, length delimited. Does not implicitly {@link CheckStubUniquenessRequest.verify|verify} messages.
113675
+ * @function encodeDelimited
113676
+ * @memberof CheckStubUniquenessRequest
113677
+ * @static
113678
+ * @param {ICheckStubUniquenessRequest} message CheckStubUniquenessRequest message or plain object to encode
113679
+ * @param {$protobuf.Writer} [writer] Writer to encode to
113680
+ * @returns {$protobuf.Writer} Writer
113681
+ */
113682
+ CheckStubUniquenessRequest.encodeDelimited = function encodeDelimited(message, writer) {
113683
+ return this.encode(message, writer).ldelim();
113684
+ };
113685
+
113686
+ /**
113687
+ * Decodes a CheckStubUniquenessRequest message from the specified reader or buffer.
113688
+ * @function decode
113689
+ * @memberof CheckStubUniquenessRequest
113690
+ * @static
113691
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
113692
+ * @param {number} [length] Message length if known beforehand
113693
+ * @returns {CheckStubUniquenessRequest} CheckStubUniquenessRequest
113694
+ * @throws {Error} If the payload is not a reader or valid buffer
113695
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
113696
+ */
113697
+ CheckStubUniquenessRequest.decode = function decode(reader, length) {
113698
+ if (!(reader instanceof $Reader))
113699
+ reader = $Reader.create(reader);
113700
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CheckStubUniquenessRequest();
113701
+ while (reader.pos < end) {
113702
+ var tag = reader.uint32();
113703
+ switch (tag >>> 3) {
113704
+ case 1:
113705
+ message.spanContext = reader.string();
113706
+ break;
113707
+ case 2:
113708
+ message.stub = reader.string();
113709
+ break;
113710
+ default:
113711
+ reader.skipType(tag & 7);
113712
+ break;
113713
+ }
113714
+ }
113715
+ return message;
113716
+ };
113717
+
113718
+ /**
113719
+ * Decodes a CheckStubUniquenessRequest message from the specified reader or buffer, length delimited.
113720
+ * @function decodeDelimited
113721
+ * @memberof CheckStubUniquenessRequest
113722
+ * @static
113723
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
113724
+ * @returns {CheckStubUniquenessRequest} CheckStubUniquenessRequest
113725
+ * @throws {Error} If the payload is not a reader or valid buffer
113726
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
113727
+ */
113728
+ CheckStubUniquenessRequest.decodeDelimited = function decodeDelimited(reader) {
113729
+ if (!(reader instanceof $Reader))
113730
+ reader = new $Reader(reader);
113731
+ return this.decode(reader, reader.uint32());
113732
+ };
113733
+
113734
+ /**
113735
+ * Verifies a CheckStubUniquenessRequest message.
113736
+ * @function verify
113737
+ * @memberof CheckStubUniquenessRequest
113738
+ * @static
113739
+ * @param {Object.<string,*>} message Plain object to verify
113740
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
113741
+ */
113742
+ CheckStubUniquenessRequest.verify = function verify(message) {
113743
+ if (typeof message !== "object" || message === null)
113744
+ return "object expected";
113745
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
113746
+ if (!$util.isString(message.spanContext))
113747
+ return "spanContext: string expected";
113748
+ if (message.stub != null && message.hasOwnProperty("stub"))
113749
+ if (!$util.isString(message.stub))
113750
+ return "stub: string expected";
113751
+ return null;
113752
+ };
113753
+
113754
+ /**
113755
+ * Creates a CheckStubUniquenessRequest message from a plain object. Also converts values to their respective internal types.
113756
+ * @function fromObject
113757
+ * @memberof CheckStubUniquenessRequest
113758
+ * @static
113759
+ * @param {Object.<string,*>} object Plain object
113760
+ * @returns {CheckStubUniquenessRequest} CheckStubUniquenessRequest
113761
+ */
113762
+ CheckStubUniquenessRequest.fromObject = function fromObject(object) {
113763
+ if (object instanceof $root.CheckStubUniquenessRequest)
113764
+ return object;
113765
+ var message = new $root.CheckStubUniquenessRequest();
113766
+ if (object.spanContext != null)
113767
+ message.spanContext = String(object.spanContext);
113768
+ if (object.stub != null)
113769
+ message.stub = String(object.stub);
113770
+ return message;
113771
+ };
113772
+
113773
+ /**
113774
+ * Creates a plain object from a CheckStubUniquenessRequest message. Also converts values to other types if specified.
113775
+ * @function toObject
113776
+ * @memberof CheckStubUniquenessRequest
113777
+ * @static
113778
+ * @param {CheckStubUniquenessRequest} message CheckStubUniquenessRequest
113779
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
113780
+ * @returns {Object.<string,*>} Plain object
113781
+ */
113782
+ CheckStubUniquenessRequest.toObject = function toObject(message, options) {
113783
+ if (!options)
113784
+ options = {};
113785
+ var object = {};
113786
+ if (options.defaults) {
113787
+ object.spanContext = "";
113788
+ object.stub = "";
113789
+ }
113790
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
113791
+ object.spanContext = message.spanContext;
113792
+ if (message.stub != null && message.hasOwnProperty("stub"))
113793
+ object.stub = message.stub;
113794
+ return object;
113795
+ };
113796
+
113797
+ /**
113798
+ * Converts this CheckStubUniquenessRequest to JSON.
113799
+ * @function toJSON
113800
+ * @memberof CheckStubUniquenessRequest
113801
+ * @instance
113802
+ * @returns {Object.<string,*>} JSON object
113803
+ */
113804
+ CheckStubUniquenessRequest.prototype.toJSON = function toJSON() {
113805
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
113806
+ };
113807
+
113808
+ return CheckStubUniquenessRequest;
113809
+ })();
113810
+
113811
+ $root.CheckStubUniquenessResponse = (function() {
113812
+
113813
+ /**
113814
+ * Properties of a CheckStubUniquenessResponse.
113815
+ * @exports ICheckStubUniquenessResponse
113816
+ * @interface ICheckStubUniquenessResponse
113817
+ * @property {StatusCode|null} [status] CheckStubUniquenessResponse status
113818
+ * @property {Array.<IError>|null} [errors] CheckStubUniquenessResponse errors
113819
+ * @property {boolean|null} [isUnique] CheckStubUniquenessResponse isUnique
113820
+ */
113821
+
113822
+ /**
113823
+ * Constructs a new CheckStubUniquenessResponse.
113824
+ * @exports CheckStubUniquenessResponse
113825
+ * @classdesc Represents a CheckStubUniquenessResponse.
113826
+ * @implements ICheckStubUniquenessResponse
113827
+ * @constructor
113828
+ * @param {ICheckStubUniquenessResponse=} [properties] Properties to set
113829
+ */
113830
+ function CheckStubUniquenessResponse(properties) {
113831
+ this.errors = [];
113832
+ if (properties)
113833
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
113834
+ if (properties[keys[i]] != null)
113835
+ this[keys[i]] = properties[keys[i]];
113836
+ }
113837
+
113838
+ /**
113839
+ * CheckStubUniquenessResponse status.
113840
+ * @member {StatusCode} status
113841
+ * @memberof CheckStubUniquenessResponse
113842
+ * @instance
113843
+ */
113844
+ CheckStubUniquenessResponse.prototype.status = 0;
113845
+
113846
+ /**
113847
+ * CheckStubUniquenessResponse errors.
113848
+ * @member {Array.<IError>} errors
113849
+ * @memberof CheckStubUniquenessResponse
113850
+ * @instance
113851
+ */
113852
+ CheckStubUniquenessResponse.prototype.errors = $util.emptyArray;
113853
+
113854
+ /**
113855
+ * CheckStubUniquenessResponse isUnique.
113856
+ * @member {boolean} isUnique
113857
+ * @memberof CheckStubUniquenessResponse
113858
+ * @instance
113859
+ */
113860
+ CheckStubUniquenessResponse.prototype.isUnique = false;
113861
+
113862
+ /**
113863
+ * Creates a new CheckStubUniquenessResponse instance using the specified properties.
113864
+ * @function create
113865
+ * @memberof CheckStubUniquenessResponse
113866
+ * @static
113867
+ * @param {ICheckStubUniquenessResponse=} [properties] Properties to set
113868
+ * @returns {CheckStubUniquenessResponse} CheckStubUniquenessResponse instance
113869
+ */
113870
+ CheckStubUniquenessResponse.create = function create(properties) {
113871
+ return new CheckStubUniquenessResponse(properties);
113872
+ };
113873
+
113874
+ /**
113875
+ * Encodes the specified CheckStubUniquenessResponse message. Does not implicitly {@link CheckStubUniquenessResponse.verify|verify} messages.
113876
+ * @function encode
113877
+ * @memberof CheckStubUniquenessResponse
113878
+ * @static
113879
+ * @param {ICheckStubUniquenessResponse} message CheckStubUniquenessResponse message or plain object to encode
113880
+ * @param {$protobuf.Writer} [writer] Writer to encode to
113881
+ * @returns {$protobuf.Writer} Writer
113882
+ */
113883
+ CheckStubUniquenessResponse.encode = function encode(message, writer) {
113884
+ if (!writer)
113885
+ writer = $Writer.create();
113886
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
113887
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
113888
+ if (message.errors != null && message.errors.length)
113889
+ for (var i = 0; i < message.errors.length; ++i)
113890
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
113891
+ if (message.isUnique != null && Object.hasOwnProperty.call(message, "isUnique"))
113892
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isUnique);
113893
+ return writer;
113894
+ };
113895
+
113896
+ /**
113897
+ * Encodes the specified CheckStubUniquenessResponse message, length delimited. Does not implicitly {@link CheckStubUniquenessResponse.verify|verify} messages.
113898
+ * @function encodeDelimited
113899
+ * @memberof CheckStubUniquenessResponse
113900
+ * @static
113901
+ * @param {ICheckStubUniquenessResponse} message CheckStubUniquenessResponse message or plain object to encode
113902
+ * @param {$protobuf.Writer} [writer] Writer to encode to
113903
+ * @returns {$protobuf.Writer} Writer
113904
+ */
113905
+ CheckStubUniquenessResponse.encodeDelimited = function encodeDelimited(message, writer) {
113906
+ return this.encode(message, writer).ldelim();
113907
+ };
113908
+
113909
+ /**
113910
+ * Decodes a CheckStubUniquenessResponse message from the specified reader or buffer.
113911
+ * @function decode
113912
+ * @memberof CheckStubUniquenessResponse
113913
+ * @static
113914
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
113915
+ * @param {number} [length] Message length if known beforehand
113916
+ * @returns {CheckStubUniquenessResponse} CheckStubUniquenessResponse
113917
+ * @throws {Error} If the payload is not a reader or valid buffer
113918
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
113919
+ */
113920
+ CheckStubUniquenessResponse.decode = function decode(reader, length) {
113921
+ if (!(reader instanceof $Reader))
113922
+ reader = $Reader.create(reader);
113923
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CheckStubUniquenessResponse();
113924
+ while (reader.pos < end) {
113925
+ var tag = reader.uint32();
113926
+ switch (tag >>> 3) {
113927
+ case 1:
113928
+ message.status = reader.int32();
113929
+ break;
113930
+ case 2:
113931
+ if (!(message.errors && message.errors.length))
113932
+ message.errors = [];
113933
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
113934
+ break;
113935
+ case 3:
113936
+ message.isUnique = reader.bool();
113937
+ break;
113938
+ default:
113939
+ reader.skipType(tag & 7);
113940
+ break;
113941
+ }
113942
+ }
113943
+ return message;
113944
+ };
113945
+
113946
+ /**
113947
+ * Decodes a CheckStubUniquenessResponse message from the specified reader or buffer, length delimited.
113948
+ * @function decodeDelimited
113949
+ * @memberof CheckStubUniquenessResponse
113950
+ * @static
113951
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
113952
+ * @returns {CheckStubUniquenessResponse} CheckStubUniquenessResponse
113953
+ * @throws {Error} If the payload is not a reader or valid buffer
113954
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
113955
+ */
113956
+ CheckStubUniquenessResponse.decodeDelimited = function decodeDelimited(reader) {
113957
+ if (!(reader instanceof $Reader))
113958
+ reader = new $Reader(reader);
113959
+ return this.decode(reader, reader.uint32());
113960
+ };
113961
+
113962
+ /**
113963
+ * Verifies a CheckStubUniquenessResponse message.
113964
+ * @function verify
113965
+ * @memberof CheckStubUniquenessResponse
113966
+ * @static
113967
+ * @param {Object.<string,*>} message Plain object to verify
113968
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
113969
+ */
113970
+ CheckStubUniquenessResponse.verify = function verify(message) {
113971
+ if (typeof message !== "object" || message === null)
113972
+ return "object expected";
113973
+ if (message.status != null && message.hasOwnProperty("status"))
113974
+ switch (message.status) {
113975
+ default:
113976
+ return "status: enum value expected";
113977
+ case 0:
113978
+ case 200:
113979
+ case 400:
113980
+ case 401:
113981
+ case 403:
113982
+ case 422:
113983
+ case 404:
113984
+ case 500:
113985
+ case 504:
113986
+ break;
113987
+ }
113988
+ if (message.errors != null && message.hasOwnProperty("errors")) {
113989
+ if (!Array.isArray(message.errors))
113990
+ return "errors: array expected";
113991
+ for (var i = 0; i < message.errors.length; ++i) {
113992
+ var error = $root.Error.verify(message.errors[i]);
113993
+ if (error)
113994
+ return "errors." + error;
113995
+ }
113996
+ }
113997
+ if (message.isUnique != null && message.hasOwnProperty("isUnique"))
113998
+ if (typeof message.isUnique !== "boolean")
113999
+ return "isUnique: boolean expected";
114000
+ return null;
114001
+ };
114002
+
114003
+ /**
114004
+ * Creates a CheckStubUniquenessResponse message from a plain object. Also converts values to their respective internal types.
114005
+ * @function fromObject
114006
+ * @memberof CheckStubUniquenessResponse
114007
+ * @static
114008
+ * @param {Object.<string,*>} object Plain object
114009
+ * @returns {CheckStubUniquenessResponse} CheckStubUniquenessResponse
114010
+ */
114011
+ CheckStubUniquenessResponse.fromObject = function fromObject(object) {
114012
+ if (object instanceof $root.CheckStubUniquenessResponse)
114013
+ return object;
114014
+ var message = new $root.CheckStubUniquenessResponse();
114015
+ switch (object.status) {
114016
+ case "UNKNOWN_CODE":
114017
+ case 0:
114018
+ message.status = 0;
114019
+ break;
114020
+ case "OK":
114021
+ case 200:
114022
+ message.status = 200;
114023
+ break;
114024
+ case "BAD_REQUEST":
114025
+ case 400:
114026
+ message.status = 400;
114027
+ break;
114028
+ case "UNAUTHORIZED":
114029
+ case 401:
114030
+ message.status = 401;
114031
+ break;
114032
+ case "FORBIDDEN":
114033
+ case 403:
114034
+ message.status = 403;
114035
+ break;
114036
+ case "UNPROCESSABLE_ENTITY":
114037
+ case 422:
114038
+ message.status = 422;
114039
+ break;
114040
+ case "NOT_FOUND":
114041
+ case 404:
114042
+ message.status = 404;
114043
+ break;
114044
+ case "INTERNAL_SERVER_ERROR":
114045
+ case 500:
114046
+ message.status = 500;
114047
+ break;
114048
+ case "GATEWAY_TIMEOUT":
114049
+ case 504:
114050
+ message.status = 504;
114051
+ break;
114052
+ }
114053
+ if (object.errors) {
114054
+ if (!Array.isArray(object.errors))
114055
+ throw TypeError(".CheckStubUniquenessResponse.errors: array expected");
114056
+ message.errors = [];
114057
+ for (var i = 0; i < object.errors.length; ++i) {
114058
+ if (typeof object.errors[i] !== "object")
114059
+ throw TypeError(".CheckStubUniquenessResponse.errors: object expected");
114060
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
114061
+ }
114062
+ }
114063
+ if (object.isUnique != null)
114064
+ message.isUnique = Boolean(object.isUnique);
114065
+ return message;
114066
+ };
114067
+
114068
+ /**
114069
+ * Creates a plain object from a CheckStubUniquenessResponse message. Also converts values to other types if specified.
114070
+ * @function toObject
114071
+ * @memberof CheckStubUniquenessResponse
114072
+ * @static
114073
+ * @param {CheckStubUniquenessResponse} message CheckStubUniquenessResponse
114074
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
114075
+ * @returns {Object.<string,*>} Plain object
114076
+ */
114077
+ CheckStubUniquenessResponse.toObject = function toObject(message, options) {
114078
+ if (!options)
114079
+ options = {};
114080
+ var object = {};
114081
+ if (options.arrays || options.defaults)
114082
+ object.errors = [];
114083
+ if (options.defaults) {
114084
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
114085
+ object.isUnique = false;
114086
+ }
114087
+ if (message.status != null && message.hasOwnProperty("status"))
114088
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
114089
+ if (message.errors && message.errors.length) {
114090
+ object.errors = [];
114091
+ for (var j = 0; j < message.errors.length; ++j)
114092
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
114093
+ }
114094
+ if (message.isUnique != null && message.hasOwnProperty("isUnique"))
114095
+ object.isUnique = message.isUnique;
114096
+ return object;
114097
+ };
114098
+
114099
+ /**
114100
+ * Converts this CheckStubUniquenessResponse to JSON.
114101
+ * @function toJSON
114102
+ * @memberof CheckStubUniquenessResponse
114103
+ * @instance
114104
+ * @returns {Object.<string,*>} JSON object
114105
+ */
114106
+ CheckStubUniquenessResponse.prototype.toJSON = function toJSON() {
114107
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
114108
+ };
114109
+
114110
+ return CheckStubUniquenessResponse;
114111
+ })();
114112
+
113354
114113
  $root.EventService = (function() {
113355
114114
 
113356
114115
  /**
@@ -114340,6 +115099,39 @@ $root.EventService = (function() {
114340
115099
  * @variation 2
114341
115100
  */
114342
115101
 
115102
+ /**
115103
+ * Callback as used by {@link EventService#checkStubUniqueness}.
115104
+ * @memberof EventService
115105
+ * @typedef checkStubUniquenessCallback
115106
+ * @type {function}
115107
+ * @param {Error|null} error Error, if any
115108
+ * @param {CheckStubUniquenessResponse} [response] CheckStubUniquenessResponse
115109
+ */
115110
+
115111
+ /**
115112
+ * Calls checkStubUniqueness.
115113
+ * @function checkStubUniqueness
115114
+ * @memberof EventService
115115
+ * @instance
115116
+ * @param {ICheckStubUniquenessRequest} request CheckStubUniquenessRequest message or plain object
115117
+ * @param {EventService.checkStubUniquenessCallback} callback Node-style callback called with the error, if any, and CheckStubUniquenessResponse
115118
+ * @returns {undefined}
115119
+ * @variation 1
115120
+ */
115121
+ Object.defineProperty(EventService.prototype.checkStubUniqueness = function checkStubUniqueness(request, callback) {
115122
+ return this.rpcCall(checkStubUniqueness, $root.CheckStubUniquenessRequest, $root.CheckStubUniquenessResponse, request, callback);
115123
+ }, "name", { value: "checkStubUniqueness" });
115124
+
115125
+ /**
115126
+ * Calls checkStubUniqueness.
115127
+ * @function checkStubUniqueness
115128
+ * @memberof EventService
115129
+ * @instance
115130
+ * @param {ICheckStubUniquenessRequest} request CheckStubUniquenessRequest message or plain object
115131
+ * @returns {Promise<CheckStubUniquenessResponse>} Promise
115132
+ * @variation 2
115133
+ */
115134
+
114343
115135
  return EventService;
114344
115136
  })();
114345
115137
 
@@ -128982,6 +129774,7 @@ $root.UploadFileRequest = (function() {
128982
129774
  * @property {Array.<IFile>|null} [files] UploadFileRequest files
128983
129775
  * @property {string|null} [userId] UploadFileRequest userId
128984
129776
  * @property {boolean|null} [gzip] UploadFileRequest gzip
129777
+ * @property {boolean|null} [isMultiImage] UploadFileRequest isMultiImage
128985
129778
  */
128986
129779
 
128987
129780
  /**
@@ -129040,6 +129833,14 @@ $root.UploadFileRequest = (function() {
129040
129833
  */
129041
129834
  UploadFileRequest.prototype.gzip = false;
129042
129835
 
129836
+ /**
129837
+ * UploadFileRequest isMultiImage.
129838
+ * @member {boolean} isMultiImage
129839
+ * @memberof UploadFileRequest
129840
+ * @instance
129841
+ */
129842
+ UploadFileRequest.prototype.isMultiImage = false;
129843
+
129043
129844
  /**
129044
129845
  * Creates a new UploadFileRequest instance using the specified properties.
129045
129846
  * @function create
@@ -129075,6 +129876,8 @@ $root.UploadFileRequest = (function() {
129075
129876
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
129076
129877
  if (message.gzip != null && Object.hasOwnProperty.call(message, "gzip"))
129077
129878
  writer.uint32(/* id 4, wireType 0 =*/32).bool(message.gzip);
129879
+ if (message.isMultiImage != null && Object.hasOwnProperty.call(message, "isMultiImage"))
129880
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isMultiImage);
129078
129881
  return writer;
129079
129882
  };
129080
129883
 
@@ -129126,6 +129929,9 @@ $root.UploadFileRequest = (function() {
129126
129929
  case 4:
129127
129930
  message.gzip = reader.bool();
129128
129931
  break;
129932
+ case 5:
129933
+ message.isMultiImage = reader.bool();
129934
+ break;
129129
129935
  default:
129130
129936
  reader.skipType(tag & 7);
129131
129937
  break;
@@ -129182,6 +129988,9 @@ $root.UploadFileRequest = (function() {
129182
129988
  if (message.gzip != null && message.hasOwnProperty("gzip"))
129183
129989
  if (typeof message.gzip !== "boolean")
129184
129990
  return "gzip: boolean expected";
129991
+ if (message.isMultiImage != null && message.hasOwnProperty("isMultiImage"))
129992
+ if (typeof message.isMultiImage !== "boolean")
129993
+ return "isMultiImage: boolean expected";
129185
129994
  return null;
129186
129995
  };
129187
129996
 
@@ -129215,6 +130024,8 @@ $root.UploadFileRequest = (function() {
129215
130024
  message.userId = String(object.userId);
129216
130025
  if (object.gzip != null)
129217
130026
  message.gzip = Boolean(object.gzip);
130027
+ if (object.isMultiImage != null)
130028
+ message.isMultiImage = Boolean(object.isMultiImage);
129218
130029
  return message;
129219
130030
  };
129220
130031
 
@@ -129238,6 +130049,7 @@ $root.UploadFileRequest = (function() {
129238
130049
  object.orgId = "";
129239
130050
  object.userId = "";
129240
130051
  object.gzip = false;
130052
+ object.isMultiImage = false;
129241
130053
  }
129242
130054
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
129243
130055
  object.spanContext = message.spanContext;
@@ -129252,6 +130064,8 @@ $root.UploadFileRequest = (function() {
129252
130064
  object.userId = message.userId;
129253
130065
  if (message.gzip != null && message.hasOwnProperty("gzip"))
129254
130066
  object.gzip = message.gzip;
130067
+ if (message.isMultiImage != null && message.hasOwnProperty("isMultiImage"))
130068
+ object.isMultiImage = message.isMultiImage;
129255
130069
  return object;
129256
130070
  };
129257
130071
 
@@ -138735,7 +139549,7 @@ $root.Season = (function() {
138735
139549
  * @property {string|null} [name] Season name
138736
139550
  * @property {string|null} [subtitle] Season subtitle
138737
139551
  * @property {string|null} [description] Season description
138738
- * @property {string|null} [posterImageUrl] Season posterImageUrl
139552
+ * @property {IPosterImageUrl|null} [posterImageUrl] Season posterImageUrl
138739
139553
  * @property {string|null} [venueId] Season venueId
138740
139554
  * @property {number|null} [createdAt] Season createdAt
138741
139555
  * @property {boolean|null} [publishable] Season publishable
@@ -138836,11 +139650,11 @@ $root.Season = (function() {
138836
139650
 
138837
139651
  /**
138838
139652
  * Season posterImageUrl.
138839
- * @member {string} posterImageUrl
139653
+ * @member {IPosterImageUrl|null|undefined} posterImageUrl
138840
139654
  * @memberof Season
138841
139655
  * @instance
138842
139656
  */
138843
- Season.prototype.posterImageUrl = "";
139657
+ Season.prototype.posterImageUrl = null;
138844
139658
 
138845
139659
  /**
138846
139660
  * Season venueId.
@@ -139087,7 +139901,7 @@ $root.Season = (function() {
139087
139901
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
139088
139902
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
139089
139903
  if (message.posterImageUrl != null && Object.hasOwnProperty.call(message, "posterImageUrl"))
139090
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.posterImageUrl);
139904
+ $root.PosterImageUrl.encode(message.posterImageUrl, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
139091
139905
  if (message.venueId != null && Object.hasOwnProperty.call(message, "venueId"))
139092
139906
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.venueId);
139093
139907
  if (message.createdAt != null && Object.hasOwnProperty.call(message, "createdAt"))
@@ -139200,7 +140014,7 @@ $root.Season = (function() {
139200
140014
  message.description = reader.string();
139201
140015
  break;
139202
140016
  case 7:
139203
- message.posterImageUrl = reader.string();
140017
+ message.posterImageUrl = $root.PosterImageUrl.decode(reader, reader.uint32());
139204
140018
  break;
139205
140019
  case 8:
139206
140020
  message.venueId = reader.string();
@@ -139347,9 +140161,11 @@ $root.Season = (function() {
139347
140161
  if (message.description != null && message.hasOwnProperty("description"))
139348
140162
  if (!$util.isString(message.description))
139349
140163
  return "description: string expected";
139350
- if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl"))
139351
- if (!$util.isString(message.posterImageUrl))
139352
- return "posterImageUrl: string expected";
140164
+ if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl")) {
140165
+ var error = $root.PosterImageUrl.verify(message.posterImageUrl);
140166
+ if (error)
140167
+ return "posterImageUrl." + error;
140168
+ }
139353
140169
  if (message.venueId != null && message.hasOwnProperty("venueId"))
139354
140170
  if (!$util.isString(message.venueId))
139355
140171
  return "venueId: string expected";
@@ -139503,8 +140319,11 @@ $root.Season = (function() {
139503
140319
  message.subtitle = String(object.subtitle);
139504
140320
  if (object.description != null)
139505
140321
  message.description = String(object.description);
139506
- if (object.posterImageUrl != null)
139507
- message.posterImageUrl = String(object.posterImageUrl);
140322
+ if (object.posterImageUrl != null) {
140323
+ if (typeof object.posterImageUrl !== "object")
140324
+ throw TypeError(".Season.posterImageUrl: object expected");
140325
+ message.posterImageUrl = $root.PosterImageUrl.fromObject(object.posterImageUrl);
140326
+ }
139508
140327
  if (object.venueId != null)
139509
140328
  message.venueId = String(object.venueId);
139510
140329
  if (object.createdAt != null)
@@ -139654,7 +140473,7 @@ $root.Season = (function() {
139654
140473
  object.name = "";
139655
140474
  object.subtitle = "";
139656
140475
  object.description = "";
139657
- object.posterImageUrl = "";
140476
+ object.posterImageUrl = null;
139658
140477
  object.venueId = "";
139659
140478
  object.createdAt = 0;
139660
140479
  object.publishable = false;
@@ -139688,7 +140507,7 @@ $root.Season = (function() {
139688
140507
  if (message.description != null && message.hasOwnProperty("description"))
139689
140508
  object.description = message.description;
139690
140509
  if (message.posterImageUrl != null && message.hasOwnProperty("posterImageUrl"))
139691
- object.posterImageUrl = message.posterImageUrl;
140510
+ object.posterImageUrl = $root.PosterImageUrl.toObject(message.posterImageUrl, options);
139692
140511
  if (message.venueId != null && message.hasOwnProperty("venueId"))
139693
140512
  object.venueId = message.venueId;
139694
140513
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))