@sellout/models 0.0.434 → 0.0.435
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/sellout-proto.js +43 -0
- package/package.json +3 -3
- package/src/proto/event.proto +1 -0
package/.dist/sellout-proto.js
CHANGED
|
@@ -107934,6 +107934,7 @@ $root.PublicEventDetails = (function() {
|
|
|
107934
107934
|
* @property {Array.<IPublicTicketType>|null} [ticketTypes] PublicEventDetails ticketTypes
|
|
107935
107935
|
* @property {boolean|null} [isMultipleDays] PublicEventDetails isMultipleDays
|
|
107936
107936
|
* @property {Array.<string>|null} [additionalPhotos] PublicEventDetails additionalPhotos
|
|
107937
|
+
* @property {Array.<ITag>|null} [tags] PublicEventDetails tags
|
|
107937
107938
|
*/
|
|
107938
107939
|
|
|
107939
107940
|
/**
|
|
@@ -107948,6 +107949,7 @@ $root.PublicEventDetails = (function() {
|
|
|
107948
107949
|
this.performances = [];
|
|
107949
107950
|
this.ticketTypes = [];
|
|
107950
107951
|
this.additionalPhotos = [];
|
|
107952
|
+
this.tags = [];
|
|
107951
107953
|
if (properties)
|
|
107952
107954
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
107953
107955
|
if (properties[keys[i]] != null)
|
|
@@ -108218,6 +108220,14 @@ $root.PublicEventDetails = (function() {
|
|
|
108218
108220
|
*/
|
|
108219
108221
|
PublicEventDetails.prototype.additionalPhotos = $util.emptyArray;
|
|
108220
108222
|
|
|
108223
|
+
/**
|
|
108224
|
+
* PublicEventDetails tags.
|
|
108225
|
+
* @member {Array.<ITag>} tags
|
|
108226
|
+
* @memberof PublicEventDetails
|
|
108227
|
+
* @instance
|
|
108228
|
+
*/
|
|
108229
|
+
PublicEventDetails.prototype.tags = $util.emptyArray;
|
|
108230
|
+
|
|
108221
108231
|
/**
|
|
108222
108232
|
* Creates a new PublicEventDetails instance using the specified properties.
|
|
108223
108233
|
* @function create
|
|
@@ -108311,6 +108321,9 @@ $root.PublicEventDetails = (function() {
|
|
|
108311
108321
|
if (message.additionalPhotos != null && message.additionalPhotos.length)
|
|
108312
108322
|
for (var i = 0; i < message.additionalPhotos.length; ++i)
|
|
108313
108323
|
writer.uint32(/* id 33, wireType 2 =*/266).string(message.additionalPhotos[i]);
|
|
108324
|
+
if (message.tags != null && message.tags.length)
|
|
108325
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
108326
|
+
$root.Tag.encode(message.tags[i], writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
|
|
108314
108327
|
return writer;
|
|
108315
108328
|
};
|
|
108316
108329
|
|
|
@@ -108450,6 +108463,11 @@ $root.PublicEventDetails = (function() {
|
|
|
108450
108463
|
message.additionalPhotos = [];
|
|
108451
108464
|
message.additionalPhotos.push(reader.string());
|
|
108452
108465
|
break;
|
|
108466
|
+
case 34:
|
|
108467
|
+
if (!(message.tags && message.tags.length))
|
|
108468
|
+
message.tags = [];
|
|
108469
|
+
message.tags.push($root.Tag.decode(reader, reader.uint32()));
|
|
108470
|
+
break;
|
|
108453
108471
|
default:
|
|
108454
108472
|
reader.skipType(tag & 7);
|
|
108455
108473
|
break;
|
|
@@ -108610,6 +108628,15 @@ $root.PublicEventDetails = (function() {
|
|
|
108610
108628
|
if (!$util.isString(message.additionalPhotos[i]))
|
|
108611
108629
|
return "additionalPhotos: string[] expected";
|
|
108612
108630
|
}
|
|
108631
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
108632
|
+
if (!Array.isArray(message.tags))
|
|
108633
|
+
return "tags: array expected";
|
|
108634
|
+
for (var i = 0; i < message.tags.length; ++i) {
|
|
108635
|
+
var error = $root.Tag.verify(message.tags[i]);
|
|
108636
|
+
if (error)
|
|
108637
|
+
return "tags." + error;
|
|
108638
|
+
}
|
|
108639
|
+
}
|
|
108613
108640
|
return null;
|
|
108614
108641
|
};
|
|
108615
108642
|
|
|
@@ -108727,6 +108754,16 @@ $root.PublicEventDetails = (function() {
|
|
|
108727
108754
|
for (var i = 0; i < object.additionalPhotos.length; ++i)
|
|
108728
108755
|
message.additionalPhotos[i] = String(object.additionalPhotos[i]);
|
|
108729
108756
|
}
|
|
108757
|
+
if (object.tags) {
|
|
108758
|
+
if (!Array.isArray(object.tags))
|
|
108759
|
+
throw TypeError(".PublicEventDetails.tags: array expected");
|
|
108760
|
+
message.tags = [];
|
|
108761
|
+
for (var i = 0; i < object.tags.length; ++i) {
|
|
108762
|
+
if (typeof object.tags[i] !== "object")
|
|
108763
|
+
throw TypeError(".PublicEventDetails.tags: object expected");
|
|
108764
|
+
message.tags[i] = $root.Tag.fromObject(object.tags[i]);
|
|
108765
|
+
}
|
|
108766
|
+
}
|
|
108730
108767
|
return message;
|
|
108731
108768
|
};
|
|
108732
108769
|
|
|
@@ -108747,6 +108784,7 @@ $root.PublicEventDetails = (function() {
|
|
|
108747
108784
|
object.performances = [];
|
|
108748
108785
|
object.ticketTypes = [];
|
|
108749
108786
|
object.additionalPhotos = [];
|
|
108787
|
+
object.tags = [];
|
|
108750
108788
|
}
|
|
108751
108789
|
if (options.defaults) {
|
|
108752
108790
|
object._id = "";
|
|
@@ -108855,6 +108893,11 @@ $root.PublicEventDetails = (function() {
|
|
|
108855
108893
|
for (var j = 0; j < message.additionalPhotos.length; ++j)
|
|
108856
108894
|
object.additionalPhotos[j] = message.additionalPhotos[j];
|
|
108857
108895
|
}
|
|
108896
|
+
if (message.tags && message.tags.length) {
|
|
108897
|
+
object.tags = [];
|
|
108898
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
108899
|
+
object.tags[j] = $root.Tag.toObject(message.tags[j], options);
|
|
108900
|
+
}
|
|
108858
108901
|
return object;
|
|
108859
108902
|
};
|
|
108860
108903
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.435",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@apollo/client": "^3.9.6",
|
|
20
20
|
"@hapi/joi": "^17.1.1",
|
|
21
|
-
"@sellout/utils": "^0.0.
|
|
21
|
+
"@sellout/utils": "^0.0.435",
|
|
22
22
|
"@types/hapi__joi": "^16.0.1",
|
|
23
23
|
"@types/shortid": "^0.0.29",
|
|
24
24
|
"@types/zen-observable": "^0.8.7",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"protobufjs": "^6.11.2",
|
|
34
34
|
"typescript": "^4.9.5"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "ff37a45ec7e48107fdd975437619d1129820a18d"
|
|
37
37
|
}
|
package/src/proto/event.proto
CHANGED