@sellout/models 0.0.377 → 0.0.378

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.
@@ -89413,6 +89413,8 @@ $root.PublicEvent = (function() {
89413
89413
  * @property {string|null} [stub] PublicEvent stub
89414
89414
  * @property {IEventSchedule|null} [schedule] PublicEvent schedule
89415
89415
  * @property {Array.<IEventTaskTypes>|null} [ticketTypes] PublicEvent ticketTypes
89416
+ * @property {boolean|null} [isMultipleDays] PublicEvent isMultipleDays
89417
+ * @property {Array.<IPerformance>|null} [performances] PublicEvent performances
89416
89418
  */
89417
89419
 
89418
89420
  /**
@@ -89425,6 +89427,7 @@ $root.PublicEvent = (function() {
89425
89427
  */
89426
89428
  function PublicEvent(properties) {
89427
89429
  this.ticketTypes = [];
89430
+ this.performances = [];
89428
89431
  if (properties)
89429
89432
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
89430
89433
  if (properties[keys[i]] != null)
@@ -89671,6 +89674,22 @@ $root.PublicEvent = (function() {
89671
89674
  */
89672
89675
  PublicEvent.prototype.ticketTypes = $util.emptyArray;
89673
89676
 
89677
+ /**
89678
+ * PublicEvent isMultipleDays.
89679
+ * @member {boolean} isMultipleDays
89680
+ * @memberof PublicEvent
89681
+ * @instance
89682
+ */
89683
+ PublicEvent.prototype.isMultipleDays = false;
89684
+
89685
+ /**
89686
+ * PublicEvent performances.
89687
+ * @member {Array.<IPerformance>} performances
89688
+ * @memberof PublicEvent
89689
+ * @instance
89690
+ */
89691
+ PublicEvent.prototype.performances = $util.emptyArray;
89692
+
89674
89693
  /**
89675
89694
  * Creates a new PublicEvent instance using the specified properties.
89676
89695
  * @function create
@@ -89756,6 +89775,11 @@ $root.PublicEvent = (function() {
89756
89775
  if (message.ticketTypes != null && message.ticketTypes.length)
89757
89776
  for (var i = 0; i < message.ticketTypes.length; ++i)
89758
89777
  $root.EventTaskTypes.encode(message.ticketTypes[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
89778
+ if (message.isMultipleDays != null && Object.hasOwnProperty.call(message, "isMultipleDays"))
89779
+ writer.uint32(/* id 31, wireType 0 =*/248).bool(message.isMultipleDays);
89780
+ if (message.performances != null && message.performances.length)
89781
+ for (var i = 0; i < message.performances.length; ++i)
89782
+ $root.Performance.encode(message.performances[i], writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim();
89759
89783
  return writer;
89760
89784
  };
89761
89785
 
@@ -89882,6 +89906,14 @@ $root.PublicEvent = (function() {
89882
89906
  message.ticketTypes = [];
89883
89907
  message.ticketTypes.push($root.EventTaskTypes.decode(reader, reader.uint32()));
89884
89908
  break;
89909
+ case 31:
89910
+ message.isMultipleDays = reader.bool();
89911
+ break;
89912
+ case 32:
89913
+ if (!(message.performances && message.performances.length))
89914
+ message.performances = [];
89915
+ message.performances.push($root.Performance.decode(reader, reader.uint32()));
89916
+ break;
89885
89917
  default:
89886
89918
  reader.skipType(tag & 7);
89887
89919
  break;
@@ -90019,6 +90051,18 @@ $root.PublicEvent = (function() {
90019
90051
  return "ticketTypes." + error;
90020
90052
  }
90021
90053
  }
90054
+ if (message.isMultipleDays != null && message.hasOwnProperty("isMultipleDays"))
90055
+ if (typeof message.isMultipleDays !== "boolean")
90056
+ return "isMultipleDays: boolean expected";
90057
+ if (message.performances != null && message.hasOwnProperty("performances")) {
90058
+ if (!Array.isArray(message.performances))
90059
+ return "performances: array expected";
90060
+ for (var i = 0; i < message.performances.length; ++i) {
90061
+ var error = $root.Performance.verify(message.performances[i]);
90062
+ if (error)
90063
+ return "performances." + error;
90064
+ }
90065
+ }
90022
90066
  return null;
90023
90067
  };
90024
90068
 
@@ -90111,6 +90155,18 @@ $root.PublicEvent = (function() {
90111
90155
  message.ticketTypes[i] = $root.EventTaskTypes.fromObject(object.ticketTypes[i]);
90112
90156
  }
90113
90157
  }
90158
+ if (object.isMultipleDays != null)
90159
+ message.isMultipleDays = Boolean(object.isMultipleDays);
90160
+ if (object.performances) {
90161
+ if (!Array.isArray(object.performances))
90162
+ throw TypeError(".PublicEvent.performances: array expected");
90163
+ message.performances = [];
90164
+ for (var i = 0; i < object.performances.length; ++i) {
90165
+ if (typeof object.performances[i] !== "object")
90166
+ throw TypeError(".PublicEvent.performances: object expected");
90167
+ message.performances[i] = $root.Performance.fromObject(object.performances[i]);
90168
+ }
90169
+ }
90114
90170
  return message;
90115
90171
  };
90116
90172
 
@@ -90127,8 +90183,10 @@ $root.PublicEvent = (function() {
90127
90183
  if (!options)
90128
90184
  options = {};
90129
90185
  var object = {};
90130
- if (options.arrays || options.defaults)
90186
+ if (options.arrays || options.defaults) {
90131
90187
  object.ticketTypes = [];
90188
+ object.performances = [];
90189
+ }
90132
90190
  if (options.defaults) {
90133
90191
  object._id = "";
90134
90192
  object.orgId = "";
@@ -90159,6 +90217,7 @@ $root.PublicEvent = (function() {
90159
90217
  object.announceAt = 0;
90160
90218
  object.stub = "";
90161
90219
  object.schedule = null;
90220
+ object.isMultipleDays = false;
90162
90221
  }
90163
90222
  if (message._id != null && message.hasOwnProperty("_id"))
90164
90223
  object._id = message._id;
@@ -90223,6 +90282,13 @@ $root.PublicEvent = (function() {
90223
90282
  for (var j = 0; j < message.ticketTypes.length; ++j)
90224
90283
  object.ticketTypes[j] = $root.EventTaskTypes.toObject(message.ticketTypes[j], options);
90225
90284
  }
90285
+ if (message.isMultipleDays != null && message.hasOwnProperty("isMultipleDays"))
90286
+ object.isMultipleDays = message.isMultipleDays;
90287
+ if (message.performances && message.performances.length) {
90288
+ object.performances = [];
90289
+ for (var j = 0; j < message.performances.length; ++j)
90290
+ object.performances[j] = $root.Performance.toObject(message.performances[j], options);
90291
+ }
90226
90292
  return object;
90227
90293
  };
90228
90294
 
@@ -90575,6 +90641,7 @@ $root.PublicEventDetails = (function() {
90575
90641
  * @property {string|null} [stub] PublicEventDetails stub
90576
90642
  * @property {number|null} [highestPrice] PublicEventDetails highestPrice
90577
90643
  * @property {Array.<IPublicTicketType>|null} [ticketTypes] PublicEventDetails ticketTypes
90644
+ * @property {boolean|null} [isMultipleDays] PublicEventDetails isMultipleDays
90578
90645
  */
90579
90646
 
90580
90647
  /**
@@ -90842,6 +90909,14 @@ $root.PublicEventDetails = (function() {
90842
90909
  */
90843
90910
  PublicEventDetails.prototype.ticketTypes = $util.emptyArray;
90844
90911
 
90912
+ /**
90913
+ * PublicEventDetails isMultipleDays.
90914
+ * @member {boolean} isMultipleDays
90915
+ * @memberof PublicEventDetails
90916
+ * @instance
90917
+ */
90918
+ PublicEventDetails.prototype.isMultipleDays = false;
90919
+
90845
90920
  /**
90846
90921
  * Creates a new PublicEventDetails instance using the specified properties.
90847
90922
  * @function create
@@ -90930,6 +91005,8 @@ $root.PublicEventDetails = (function() {
90930
91005
  if (message.ticketTypes != null && message.ticketTypes.length)
90931
91006
  for (var i = 0; i < message.ticketTypes.length; ++i)
90932
91007
  $root.PublicTicketType.encode(message.ticketTypes[i], writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
91008
+ if (message.isMultipleDays != null && Object.hasOwnProperty.call(message, "isMultipleDays"))
91009
+ writer.uint32(/* id 32, wireType 0 =*/256).bool(message.isMultipleDays);
90933
91010
  return writer;
90934
91011
  };
90935
91012
 
@@ -91061,6 +91138,9 @@ $root.PublicEventDetails = (function() {
91061
91138
  message.ticketTypes = [];
91062
91139
  message.ticketTypes.push($root.PublicTicketType.decode(reader, reader.uint32()));
91063
91140
  break;
91141
+ case 32:
91142
+ message.isMultipleDays = reader.bool();
91143
+ break;
91064
91144
  default:
91065
91145
  reader.skipType(tag & 7);
91066
91146
  break;
@@ -91211,6 +91291,9 @@ $root.PublicEventDetails = (function() {
91211
91291
  return "ticketTypes." + error;
91212
91292
  }
91213
91293
  }
91294
+ if (message.isMultipleDays != null && message.hasOwnProperty("isMultipleDays"))
91295
+ if (typeof message.isMultipleDays !== "boolean")
91296
+ return "isMultipleDays: boolean expected";
91214
91297
  return null;
91215
91298
  };
91216
91299
 
@@ -91319,6 +91402,8 @@ $root.PublicEventDetails = (function() {
91319
91402
  message.ticketTypes[i] = $root.PublicTicketType.fromObject(object.ticketTypes[i]);
91320
91403
  }
91321
91404
  }
91405
+ if (object.isMultipleDays != null)
91406
+ message.isMultipleDays = Boolean(object.isMultipleDays);
91322
91407
  return message;
91323
91408
  };
91324
91409
 
@@ -91369,6 +91454,7 @@ $root.PublicEventDetails = (function() {
91369
91454
  object.remainingQty = 0;
91370
91455
  object.stub = "";
91371
91456
  object.highestPrice = 0;
91457
+ object.isMultipleDays = false;
91372
91458
  }
91373
91459
  if (message._id != null && message.hasOwnProperty("_id"))
91374
91460
  object._id = message._id;
@@ -91438,6 +91524,8 @@ $root.PublicEventDetails = (function() {
91438
91524
  for (var j = 0; j < message.ticketTypes.length; ++j)
91439
91525
  object.ticketTypes[j] = $root.PublicTicketType.toObject(message.ticketTypes[j], options);
91440
91526
  }
91527
+ if (message.isMultipleDays != null && message.hasOwnProperty("isMultipleDays"))
91528
+ object.isMultipleDays = message.isMultipleDays;
91441
91529
  return object;
91442
91530
  };
91443
91531
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.377",
3
+ "version": "0.0.378",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@apollo/client": "^3.9.6",
20
20
  "@hapi/joi": "^17.1.1",
21
- "@sellout/utils": "^0.0.377",
21
+ "@sellout/utils": "^0.0.378",
22
22
  "@types/hapi__joi": "^16.0.1",
23
23
  "@types/shortid": "^0.0.29",
24
24
  "@types/zen-observable": "^0.8.7",
@@ -32,5 +32,5 @@
32
32
  "protobufjs": "^6.11.2",
33
33
  "typescript": "^4.9.5"
34
34
  },
35
- "gitHead": "5081a233deb6b4e73ab237904c95287b65f07e42"
35
+ "gitHead": "9fd89bf4523f300b6a364759e2dbe4233781e059"
36
36
  }
@@ -84,6 +84,8 @@ message PublicEvent {
84
84
  string stub = 28;
85
85
  EventSchedule schedule = 29;
86
86
  repeated EventTaskTypes ticketTypes = 30;
87
+ bool isMultipleDays = 31;
88
+ repeated Performance performances = 32;
87
89
  }
88
90
 
89
91
  message EventTaskTypes{
@@ -128,6 +130,7 @@ message PublicEventDetails {
128
130
  string stub = 29;
129
131
  int32 highestPrice = 30;
130
132
  repeated PublicTicketType ticketTypes = 31;
133
+ bool isMultipleDays = 32;
131
134
  }
132
135
 
133
136
  message PublicTicketType {