@headspace/protos-events 1.297.0 → 1.299.0
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/lib/index.d.ts +132 -0
- package/lib/index.js +894 -20
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -23045,6 +23045,39 @@ export interface ICollectionCreated {
|
|
|
23045
23045
|
|
|
23046
23046
|
/** CollectionCreated createdAt */
|
|
23047
23047
|
createdAt?: (number|Long|null);
|
|
23048
|
+
|
|
23049
|
+
/** CollectionCreated name */
|
|
23050
|
+
name?: ({ [k: string]: string }|null);
|
|
23051
|
+
|
|
23052
|
+
/** CollectionCreated teaser */
|
|
23053
|
+
teaser?: ({ [k: string]: string }|null);
|
|
23054
|
+
|
|
23055
|
+
/** CollectionCreated description */
|
|
23056
|
+
description?: ({ [k: string]: string }|null);
|
|
23057
|
+
|
|
23058
|
+
/** CollectionCreated tileMedia */
|
|
23059
|
+
tileMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
23060
|
+
|
|
23061
|
+
/** CollectionCreated collectionContent */
|
|
23062
|
+
collectionContent?: (contentful.ISlugReference[]|null);
|
|
23063
|
+
|
|
23064
|
+
/** CollectionCreated enabled */
|
|
23065
|
+
enabled?: (boolean|null);
|
|
23066
|
+
|
|
23067
|
+
/** CollectionCreated isInternationalOnly */
|
|
23068
|
+
isInternationalOnly?: (boolean|null);
|
|
23069
|
+
|
|
23070
|
+
/** CollectionCreated tags */
|
|
23071
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
23072
|
+
|
|
23073
|
+
/** CollectionCreated techniques */
|
|
23074
|
+
techniques?: (contentful.ISlugReference[]|null);
|
|
23075
|
+
|
|
23076
|
+
/** CollectionCreated related */
|
|
23077
|
+
related?: (contentful.ISlugReference[]|null);
|
|
23078
|
+
|
|
23079
|
+
/** CollectionCreated entityId */
|
|
23080
|
+
entityId?: (number|Long|null);
|
|
23048
23081
|
}
|
|
23049
23082
|
|
|
23050
23083
|
/** Represents a CollectionCreated. */
|
|
@@ -23071,6 +23104,39 @@ export class CollectionCreated implements ICollectionCreated {
|
|
|
23071
23104
|
/** CollectionCreated createdAt. */
|
|
23072
23105
|
public createdAt: (number|Long);
|
|
23073
23106
|
|
|
23107
|
+
/** CollectionCreated name. */
|
|
23108
|
+
public name: { [k: string]: string };
|
|
23109
|
+
|
|
23110
|
+
/** CollectionCreated teaser. */
|
|
23111
|
+
public teaser: { [k: string]: string };
|
|
23112
|
+
|
|
23113
|
+
/** CollectionCreated description. */
|
|
23114
|
+
public description: { [k: string]: string };
|
|
23115
|
+
|
|
23116
|
+
/** CollectionCreated tileMedia. */
|
|
23117
|
+
public tileMedia: { [k: string]: contentful.IIdReference };
|
|
23118
|
+
|
|
23119
|
+
/** CollectionCreated collectionContent. */
|
|
23120
|
+
public collectionContent: contentful.ISlugReference[];
|
|
23121
|
+
|
|
23122
|
+
/** CollectionCreated enabled. */
|
|
23123
|
+
public enabled: boolean;
|
|
23124
|
+
|
|
23125
|
+
/** CollectionCreated isInternationalOnly. */
|
|
23126
|
+
public isInternationalOnly: boolean;
|
|
23127
|
+
|
|
23128
|
+
/** CollectionCreated tags. */
|
|
23129
|
+
public tags: { [k: string]: contentful.ITags };
|
|
23130
|
+
|
|
23131
|
+
/** CollectionCreated techniques. */
|
|
23132
|
+
public techniques: contentful.ISlugReference[];
|
|
23133
|
+
|
|
23134
|
+
/** CollectionCreated related. */
|
|
23135
|
+
public related: contentful.ISlugReference[];
|
|
23136
|
+
|
|
23137
|
+
/** CollectionCreated entityId. */
|
|
23138
|
+
public entityId: (number|Long);
|
|
23139
|
+
|
|
23074
23140
|
/**
|
|
23075
23141
|
* Creates a new CollectionCreated instance using the specified properties.
|
|
23076
23142
|
* @param [properties] Properties to set
|
|
@@ -23159,6 +23225,39 @@ export interface ICollectionUpdated {
|
|
|
23159
23225
|
|
|
23160
23226
|
/** CollectionUpdated updatedAt */
|
|
23161
23227
|
updatedAt?: (number|Long|null);
|
|
23228
|
+
|
|
23229
|
+
/** CollectionUpdated name */
|
|
23230
|
+
name?: ({ [k: string]: string }|null);
|
|
23231
|
+
|
|
23232
|
+
/** CollectionUpdated teaser */
|
|
23233
|
+
teaser?: ({ [k: string]: string }|null);
|
|
23234
|
+
|
|
23235
|
+
/** CollectionUpdated description */
|
|
23236
|
+
description?: ({ [k: string]: string }|null);
|
|
23237
|
+
|
|
23238
|
+
/** CollectionUpdated tileMedia */
|
|
23239
|
+
tileMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
23240
|
+
|
|
23241
|
+
/** CollectionUpdated collectionContent */
|
|
23242
|
+
collectionContent?: (contentful.ISlugReference[]|null);
|
|
23243
|
+
|
|
23244
|
+
/** CollectionUpdated enabled */
|
|
23245
|
+
enabled?: (boolean|null);
|
|
23246
|
+
|
|
23247
|
+
/** CollectionUpdated isInternationalOnly */
|
|
23248
|
+
isInternationalOnly?: (boolean|null);
|
|
23249
|
+
|
|
23250
|
+
/** CollectionUpdated tags */
|
|
23251
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
23252
|
+
|
|
23253
|
+
/** CollectionUpdated techniques */
|
|
23254
|
+
techniques?: (contentful.ISlugReference[]|null);
|
|
23255
|
+
|
|
23256
|
+
/** CollectionUpdated related */
|
|
23257
|
+
related?: (contentful.ISlugReference[]|null);
|
|
23258
|
+
|
|
23259
|
+
/** CollectionUpdated entityId */
|
|
23260
|
+
entityId?: (number|Long|null);
|
|
23162
23261
|
}
|
|
23163
23262
|
|
|
23164
23263
|
/** Represents a CollectionUpdated. */
|
|
@@ -23185,6 +23284,39 @@ export class CollectionUpdated implements ICollectionUpdated {
|
|
|
23185
23284
|
/** CollectionUpdated updatedAt. */
|
|
23186
23285
|
public updatedAt: (number|Long);
|
|
23187
23286
|
|
|
23287
|
+
/** CollectionUpdated name. */
|
|
23288
|
+
public name: { [k: string]: string };
|
|
23289
|
+
|
|
23290
|
+
/** CollectionUpdated teaser. */
|
|
23291
|
+
public teaser: { [k: string]: string };
|
|
23292
|
+
|
|
23293
|
+
/** CollectionUpdated description. */
|
|
23294
|
+
public description: { [k: string]: string };
|
|
23295
|
+
|
|
23296
|
+
/** CollectionUpdated tileMedia. */
|
|
23297
|
+
public tileMedia: { [k: string]: contentful.IIdReference };
|
|
23298
|
+
|
|
23299
|
+
/** CollectionUpdated collectionContent. */
|
|
23300
|
+
public collectionContent: contentful.ISlugReference[];
|
|
23301
|
+
|
|
23302
|
+
/** CollectionUpdated enabled. */
|
|
23303
|
+
public enabled: boolean;
|
|
23304
|
+
|
|
23305
|
+
/** CollectionUpdated isInternationalOnly. */
|
|
23306
|
+
public isInternationalOnly: boolean;
|
|
23307
|
+
|
|
23308
|
+
/** CollectionUpdated tags. */
|
|
23309
|
+
public tags: { [k: string]: contentful.ITags };
|
|
23310
|
+
|
|
23311
|
+
/** CollectionUpdated techniques. */
|
|
23312
|
+
public techniques: contentful.ISlugReference[];
|
|
23313
|
+
|
|
23314
|
+
/** CollectionUpdated related. */
|
|
23315
|
+
public related: contentful.ISlugReference[];
|
|
23316
|
+
|
|
23317
|
+
/** CollectionUpdated entityId. */
|
|
23318
|
+
public entityId: (number|Long);
|
|
23319
|
+
|
|
23188
23320
|
/**
|
|
23189
23321
|
* Creates a new CollectionUpdated instance using the specified properties.
|
|
23190
23322
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -62566,6 +62566,17 @@ $root.CollectionCreated = (function() {
|
|
|
62566
62566
|
* @property {ContentCollectionType|null} [collectionType] CollectionCreated collectionType
|
|
62567
62567
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionCreated accessGroup
|
|
62568
62568
|
* @property {number|Long|null} [createdAt] CollectionCreated createdAt
|
|
62569
|
+
* @property {Object.<string,string>|null} [name] CollectionCreated name
|
|
62570
|
+
* @property {Object.<string,string>|null} [teaser] CollectionCreated teaser
|
|
62571
|
+
* @property {Object.<string,string>|null} [description] CollectionCreated description
|
|
62572
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] CollectionCreated tileMedia
|
|
62573
|
+
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] CollectionCreated collectionContent
|
|
62574
|
+
* @property {boolean|null} [enabled] CollectionCreated enabled
|
|
62575
|
+
* @property {boolean|null} [isInternationalOnly] CollectionCreated isInternationalOnly
|
|
62576
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] CollectionCreated tags
|
|
62577
|
+
* @property {Array.<contentful.ISlugReference>|null} [techniques] CollectionCreated techniques
|
|
62578
|
+
* @property {Array.<contentful.ISlugReference>|null} [related] CollectionCreated related
|
|
62579
|
+
* @property {number|Long|null} [entityId] CollectionCreated entityId
|
|
62569
62580
|
*/
|
|
62570
62581
|
|
|
62571
62582
|
/**
|
|
@@ -62578,6 +62589,14 @@ $root.CollectionCreated = (function() {
|
|
|
62578
62589
|
*/
|
|
62579
62590
|
function CollectionCreated(properties) {
|
|
62580
62591
|
this.accessGroup = [];
|
|
62592
|
+
this.name = {};
|
|
62593
|
+
this.teaser = {};
|
|
62594
|
+
this.description = {};
|
|
62595
|
+
this.tileMedia = {};
|
|
62596
|
+
this.collectionContent = [];
|
|
62597
|
+
this.tags = {};
|
|
62598
|
+
this.techniques = [];
|
|
62599
|
+
this.related = [];
|
|
62581
62600
|
if (properties)
|
|
62582
62601
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62583
62602
|
if (properties[keys[i]] != null)
|
|
@@ -62624,6 +62643,94 @@ $root.CollectionCreated = (function() {
|
|
|
62624
62643
|
*/
|
|
62625
62644
|
CollectionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62626
62645
|
|
|
62646
|
+
/**
|
|
62647
|
+
* CollectionCreated name.
|
|
62648
|
+
* @member {Object.<string,string>} name
|
|
62649
|
+
* @memberof CollectionCreated
|
|
62650
|
+
* @instance
|
|
62651
|
+
*/
|
|
62652
|
+
CollectionCreated.prototype.name = $util.emptyObject;
|
|
62653
|
+
|
|
62654
|
+
/**
|
|
62655
|
+
* CollectionCreated teaser.
|
|
62656
|
+
* @member {Object.<string,string>} teaser
|
|
62657
|
+
* @memberof CollectionCreated
|
|
62658
|
+
* @instance
|
|
62659
|
+
*/
|
|
62660
|
+
CollectionCreated.prototype.teaser = $util.emptyObject;
|
|
62661
|
+
|
|
62662
|
+
/**
|
|
62663
|
+
* CollectionCreated description.
|
|
62664
|
+
* @member {Object.<string,string>} description
|
|
62665
|
+
* @memberof CollectionCreated
|
|
62666
|
+
* @instance
|
|
62667
|
+
*/
|
|
62668
|
+
CollectionCreated.prototype.description = $util.emptyObject;
|
|
62669
|
+
|
|
62670
|
+
/**
|
|
62671
|
+
* CollectionCreated tileMedia.
|
|
62672
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
62673
|
+
* @memberof CollectionCreated
|
|
62674
|
+
* @instance
|
|
62675
|
+
*/
|
|
62676
|
+
CollectionCreated.prototype.tileMedia = $util.emptyObject;
|
|
62677
|
+
|
|
62678
|
+
/**
|
|
62679
|
+
* CollectionCreated collectionContent.
|
|
62680
|
+
* @member {Array.<contentful.ISlugReference>} collectionContent
|
|
62681
|
+
* @memberof CollectionCreated
|
|
62682
|
+
* @instance
|
|
62683
|
+
*/
|
|
62684
|
+
CollectionCreated.prototype.collectionContent = $util.emptyArray;
|
|
62685
|
+
|
|
62686
|
+
/**
|
|
62687
|
+
* CollectionCreated enabled.
|
|
62688
|
+
* @member {boolean} enabled
|
|
62689
|
+
* @memberof CollectionCreated
|
|
62690
|
+
* @instance
|
|
62691
|
+
*/
|
|
62692
|
+
CollectionCreated.prototype.enabled = false;
|
|
62693
|
+
|
|
62694
|
+
/**
|
|
62695
|
+
* CollectionCreated isInternationalOnly.
|
|
62696
|
+
* @member {boolean} isInternationalOnly
|
|
62697
|
+
* @memberof CollectionCreated
|
|
62698
|
+
* @instance
|
|
62699
|
+
*/
|
|
62700
|
+
CollectionCreated.prototype.isInternationalOnly = false;
|
|
62701
|
+
|
|
62702
|
+
/**
|
|
62703
|
+
* CollectionCreated tags.
|
|
62704
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
62705
|
+
* @memberof CollectionCreated
|
|
62706
|
+
* @instance
|
|
62707
|
+
*/
|
|
62708
|
+
CollectionCreated.prototype.tags = $util.emptyObject;
|
|
62709
|
+
|
|
62710
|
+
/**
|
|
62711
|
+
* CollectionCreated techniques.
|
|
62712
|
+
* @member {Array.<contentful.ISlugReference>} techniques
|
|
62713
|
+
* @memberof CollectionCreated
|
|
62714
|
+
* @instance
|
|
62715
|
+
*/
|
|
62716
|
+
CollectionCreated.prototype.techniques = $util.emptyArray;
|
|
62717
|
+
|
|
62718
|
+
/**
|
|
62719
|
+
* CollectionCreated related.
|
|
62720
|
+
* @member {Array.<contentful.ISlugReference>} related
|
|
62721
|
+
* @memberof CollectionCreated
|
|
62722
|
+
* @instance
|
|
62723
|
+
*/
|
|
62724
|
+
CollectionCreated.prototype.related = $util.emptyArray;
|
|
62725
|
+
|
|
62726
|
+
/**
|
|
62727
|
+
* CollectionCreated entityId.
|
|
62728
|
+
* @member {number|Long} entityId
|
|
62729
|
+
* @memberof CollectionCreated
|
|
62730
|
+
* @instance
|
|
62731
|
+
*/
|
|
62732
|
+
CollectionCreated.prototype.entityId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
62733
|
+
|
|
62627
62734
|
/**
|
|
62628
62735
|
* Creates a new CollectionCreated instance using the specified properties.
|
|
62629
62736
|
* @function create
|
|
@@ -62659,6 +62766,40 @@ $root.CollectionCreated = (function() {
|
|
|
62659
62766
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
62660
62767
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
62661
62768
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
62769
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
62770
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
62771
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
62772
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
62773
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
62774
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
|
|
62775
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
62776
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
62777
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
62778
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
62779
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
62780
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
62781
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
62782
|
+
}
|
|
62783
|
+
if (message.collectionContent != null && message.collectionContent.length)
|
|
62784
|
+
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
62785
|
+
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
62786
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
62787
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enabled);
|
|
62788
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
62789
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.isInternationalOnly);
|
|
62790
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
62791
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
62792
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
62793
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
62794
|
+
}
|
|
62795
|
+
if (message.techniques != null && message.techniques.length)
|
|
62796
|
+
for (var i = 0; i < message.techniques.length; ++i)
|
|
62797
|
+
$root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
62798
|
+
if (message.related != null && message.related.length)
|
|
62799
|
+
for (var i = 0; i < message.related.length; ++i)
|
|
62800
|
+
$root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
62801
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
62802
|
+
writer.uint32(/* id 16, wireType 0 =*/128).int64(message.entityId);
|
|
62662
62803
|
return writer;
|
|
62663
62804
|
};
|
|
62664
62805
|
|
|
@@ -62689,7 +62830,7 @@ $root.CollectionCreated = (function() {
|
|
|
62689
62830
|
CollectionCreated.decode = function decode(reader, length) {
|
|
62690
62831
|
if (!(reader instanceof $Reader))
|
|
62691
62832
|
reader = $Reader.create(reader);
|
|
62692
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated();
|
|
62833
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated(), key;
|
|
62693
62834
|
while (reader.pos < end) {
|
|
62694
62835
|
var tag = reader.uint32();
|
|
62695
62836
|
switch (tag >>> 3) {
|
|
@@ -62710,6 +62851,70 @@ $root.CollectionCreated = (function() {
|
|
|
62710
62851
|
case 5:
|
|
62711
62852
|
message.createdAt = reader.uint64();
|
|
62712
62853
|
break;
|
|
62854
|
+
case 6:
|
|
62855
|
+
reader.skip().pos++;
|
|
62856
|
+
if (message.name === $util.emptyObject)
|
|
62857
|
+
message.name = {};
|
|
62858
|
+
key = reader.string();
|
|
62859
|
+
reader.pos++;
|
|
62860
|
+
message.name[key] = reader.string();
|
|
62861
|
+
break;
|
|
62862
|
+
case 7:
|
|
62863
|
+
reader.skip().pos++;
|
|
62864
|
+
if (message.teaser === $util.emptyObject)
|
|
62865
|
+
message.teaser = {};
|
|
62866
|
+
key = reader.string();
|
|
62867
|
+
reader.pos++;
|
|
62868
|
+
message.teaser[key] = reader.string();
|
|
62869
|
+
break;
|
|
62870
|
+
case 8:
|
|
62871
|
+
reader.skip().pos++;
|
|
62872
|
+
if (message.description === $util.emptyObject)
|
|
62873
|
+
message.description = {};
|
|
62874
|
+
key = reader.string();
|
|
62875
|
+
reader.pos++;
|
|
62876
|
+
message.description[key] = reader.string();
|
|
62877
|
+
break;
|
|
62878
|
+
case 9:
|
|
62879
|
+
reader.skip().pos++;
|
|
62880
|
+
if (message.tileMedia === $util.emptyObject)
|
|
62881
|
+
message.tileMedia = {};
|
|
62882
|
+
key = reader.string();
|
|
62883
|
+
reader.pos++;
|
|
62884
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
62885
|
+
break;
|
|
62886
|
+
case 10:
|
|
62887
|
+
if (!(message.collectionContent && message.collectionContent.length))
|
|
62888
|
+
message.collectionContent = [];
|
|
62889
|
+
message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62890
|
+
break;
|
|
62891
|
+
case 11:
|
|
62892
|
+
message.enabled = reader.bool();
|
|
62893
|
+
break;
|
|
62894
|
+
case 12:
|
|
62895
|
+
message.isInternationalOnly = reader.bool();
|
|
62896
|
+
break;
|
|
62897
|
+
case 13:
|
|
62898
|
+
reader.skip().pos++;
|
|
62899
|
+
if (message.tags === $util.emptyObject)
|
|
62900
|
+
message.tags = {};
|
|
62901
|
+
key = reader.string();
|
|
62902
|
+
reader.pos++;
|
|
62903
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
62904
|
+
break;
|
|
62905
|
+
case 14:
|
|
62906
|
+
if (!(message.techniques && message.techniques.length))
|
|
62907
|
+
message.techniques = [];
|
|
62908
|
+
message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62909
|
+
break;
|
|
62910
|
+
case 15:
|
|
62911
|
+
if (!(message.related && message.related.length))
|
|
62912
|
+
message.related = [];
|
|
62913
|
+
message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62914
|
+
break;
|
|
62915
|
+
case 16:
|
|
62916
|
+
message.entityId = reader.int64();
|
|
62917
|
+
break;
|
|
62713
62918
|
default:
|
|
62714
62919
|
reader.skipType(tag & 7);
|
|
62715
62920
|
break;
|
|
@@ -62771,6 +62976,86 @@ $root.CollectionCreated = (function() {
|
|
|
62771
62976
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
62772
62977
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
62773
62978
|
return "createdAt: integer|Long expected";
|
|
62979
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
62980
|
+
if (!$util.isObject(message.name))
|
|
62981
|
+
return "name: object expected";
|
|
62982
|
+
var key = Object.keys(message.name);
|
|
62983
|
+
for (var i = 0; i < key.length; ++i)
|
|
62984
|
+
if (!$util.isString(message.name[key[i]]))
|
|
62985
|
+
return "name: string{k:string} expected";
|
|
62986
|
+
}
|
|
62987
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
62988
|
+
if (!$util.isObject(message.teaser))
|
|
62989
|
+
return "teaser: object expected";
|
|
62990
|
+
var key = Object.keys(message.teaser);
|
|
62991
|
+
for (var i = 0; i < key.length; ++i)
|
|
62992
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
62993
|
+
return "teaser: string{k:string} expected";
|
|
62994
|
+
}
|
|
62995
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
62996
|
+
if (!$util.isObject(message.description))
|
|
62997
|
+
return "description: object expected";
|
|
62998
|
+
var key = Object.keys(message.description);
|
|
62999
|
+
for (var i = 0; i < key.length; ++i)
|
|
63000
|
+
if (!$util.isString(message.description[key[i]]))
|
|
63001
|
+
return "description: string{k:string} expected";
|
|
63002
|
+
}
|
|
63003
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
63004
|
+
if (!$util.isObject(message.tileMedia))
|
|
63005
|
+
return "tileMedia: object expected";
|
|
63006
|
+
var key = Object.keys(message.tileMedia);
|
|
63007
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63008
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
63009
|
+
if (error)
|
|
63010
|
+
return "tileMedia." + error;
|
|
63011
|
+
}
|
|
63012
|
+
}
|
|
63013
|
+
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
63014
|
+
if (!Array.isArray(message.collectionContent))
|
|
63015
|
+
return "collectionContent: array expected";
|
|
63016
|
+
for (var i = 0; i < message.collectionContent.length; ++i) {
|
|
63017
|
+
var error = $root.contentful.SlugReference.verify(message.collectionContent[i]);
|
|
63018
|
+
if (error)
|
|
63019
|
+
return "collectionContent." + error;
|
|
63020
|
+
}
|
|
63021
|
+
}
|
|
63022
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63023
|
+
if (typeof message.enabled !== "boolean")
|
|
63024
|
+
return "enabled: boolean expected";
|
|
63025
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63026
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
63027
|
+
return "isInternationalOnly: boolean expected";
|
|
63028
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
63029
|
+
if (!$util.isObject(message.tags))
|
|
63030
|
+
return "tags: object expected";
|
|
63031
|
+
var key = Object.keys(message.tags);
|
|
63032
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63033
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
63034
|
+
if (error)
|
|
63035
|
+
return "tags." + error;
|
|
63036
|
+
}
|
|
63037
|
+
}
|
|
63038
|
+
if (message.techniques != null && message.hasOwnProperty("techniques")) {
|
|
63039
|
+
if (!Array.isArray(message.techniques))
|
|
63040
|
+
return "techniques: array expected";
|
|
63041
|
+
for (var i = 0; i < message.techniques.length; ++i) {
|
|
63042
|
+
var error = $root.contentful.SlugReference.verify(message.techniques[i]);
|
|
63043
|
+
if (error)
|
|
63044
|
+
return "techniques." + error;
|
|
63045
|
+
}
|
|
63046
|
+
}
|
|
63047
|
+
if (message.related != null && message.hasOwnProperty("related")) {
|
|
63048
|
+
if (!Array.isArray(message.related))
|
|
63049
|
+
return "related: array expected";
|
|
63050
|
+
for (var i = 0; i < message.related.length; ++i) {
|
|
63051
|
+
var error = $root.contentful.SlugReference.verify(message.related[i]);
|
|
63052
|
+
if (error)
|
|
63053
|
+
return "related." + error;
|
|
63054
|
+
}
|
|
63055
|
+
}
|
|
63056
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
63057
|
+
if (!$util.isInteger(message.entityId) && !(message.entityId && $util.isInteger(message.entityId.low) && $util.isInteger(message.entityId.high)))
|
|
63058
|
+
return "entityId: integer|Long expected";
|
|
62774
63059
|
return null;
|
|
62775
63060
|
};
|
|
62776
63061
|
|
|
@@ -62819,24 +63104,119 @@ $root.CollectionCreated = (function() {
|
|
|
62819
63104
|
message.createdAt = object.createdAt;
|
|
62820
63105
|
else if (typeof object.createdAt === "object")
|
|
62821
63106
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
62822
|
-
|
|
62823
|
-
|
|
62824
|
-
|
|
62825
|
-
|
|
62826
|
-
|
|
62827
|
-
|
|
62828
|
-
|
|
62829
|
-
|
|
62830
|
-
|
|
62831
|
-
|
|
62832
|
-
|
|
62833
|
-
|
|
62834
|
-
|
|
62835
|
-
|
|
62836
|
-
|
|
62837
|
-
|
|
62838
|
-
|
|
63107
|
+
if (object.name) {
|
|
63108
|
+
if (typeof object.name !== "object")
|
|
63109
|
+
throw TypeError(".CollectionCreated.name: object expected");
|
|
63110
|
+
message.name = {};
|
|
63111
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
63112
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
63113
|
+
}
|
|
63114
|
+
if (object.teaser) {
|
|
63115
|
+
if (typeof object.teaser !== "object")
|
|
63116
|
+
throw TypeError(".CollectionCreated.teaser: object expected");
|
|
63117
|
+
message.teaser = {};
|
|
63118
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
63119
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
63120
|
+
}
|
|
63121
|
+
if (object.description) {
|
|
63122
|
+
if (typeof object.description !== "object")
|
|
63123
|
+
throw TypeError(".CollectionCreated.description: object expected");
|
|
63124
|
+
message.description = {};
|
|
63125
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
63126
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
63127
|
+
}
|
|
63128
|
+
if (object.tileMedia) {
|
|
63129
|
+
if (typeof object.tileMedia !== "object")
|
|
63130
|
+
throw TypeError(".CollectionCreated.tileMedia: object expected");
|
|
63131
|
+
message.tileMedia = {};
|
|
63132
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63133
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
63134
|
+
throw TypeError(".CollectionCreated.tileMedia: object expected");
|
|
63135
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
63136
|
+
}
|
|
63137
|
+
}
|
|
63138
|
+
if (object.collectionContent) {
|
|
63139
|
+
if (!Array.isArray(object.collectionContent))
|
|
63140
|
+
throw TypeError(".CollectionCreated.collectionContent: array expected");
|
|
63141
|
+
message.collectionContent = [];
|
|
63142
|
+
for (var i = 0; i < object.collectionContent.length; ++i) {
|
|
63143
|
+
if (typeof object.collectionContent[i] !== "object")
|
|
63144
|
+
throw TypeError(".CollectionCreated.collectionContent: object expected");
|
|
63145
|
+
message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
|
|
63146
|
+
}
|
|
63147
|
+
}
|
|
63148
|
+
if (object.enabled != null)
|
|
63149
|
+
message.enabled = Boolean(object.enabled);
|
|
63150
|
+
if (object.isInternationalOnly != null)
|
|
63151
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
63152
|
+
if (object.tags) {
|
|
63153
|
+
if (typeof object.tags !== "object")
|
|
63154
|
+
throw TypeError(".CollectionCreated.tags: object expected");
|
|
63155
|
+
message.tags = {};
|
|
63156
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
63157
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
63158
|
+
throw TypeError(".CollectionCreated.tags: object expected");
|
|
63159
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
63160
|
+
}
|
|
63161
|
+
}
|
|
63162
|
+
if (object.techniques) {
|
|
63163
|
+
if (!Array.isArray(object.techniques))
|
|
63164
|
+
throw TypeError(".CollectionCreated.techniques: array expected");
|
|
63165
|
+
message.techniques = [];
|
|
63166
|
+
for (var i = 0; i < object.techniques.length; ++i) {
|
|
63167
|
+
if (typeof object.techniques[i] !== "object")
|
|
63168
|
+
throw TypeError(".CollectionCreated.techniques: object expected");
|
|
63169
|
+
message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
|
|
63170
|
+
}
|
|
63171
|
+
}
|
|
63172
|
+
if (object.related) {
|
|
63173
|
+
if (!Array.isArray(object.related))
|
|
63174
|
+
throw TypeError(".CollectionCreated.related: array expected");
|
|
63175
|
+
message.related = [];
|
|
63176
|
+
for (var i = 0; i < object.related.length; ++i) {
|
|
63177
|
+
if (typeof object.related[i] !== "object")
|
|
63178
|
+
throw TypeError(".CollectionCreated.related: object expected");
|
|
63179
|
+
message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
|
|
63180
|
+
}
|
|
63181
|
+
}
|
|
63182
|
+
if (object.entityId != null)
|
|
63183
|
+
if ($util.Long)
|
|
63184
|
+
(message.entityId = $util.Long.fromValue(object.entityId)).unsigned = false;
|
|
63185
|
+
else if (typeof object.entityId === "string")
|
|
63186
|
+
message.entityId = parseInt(object.entityId, 10);
|
|
63187
|
+
else if (typeof object.entityId === "number")
|
|
63188
|
+
message.entityId = object.entityId;
|
|
63189
|
+
else if (typeof object.entityId === "object")
|
|
63190
|
+
message.entityId = new $util.LongBits(object.entityId.low >>> 0, object.entityId.high >>> 0).toNumber();
|
|
63191
|
+
return message;
|
|
63192
|
+
};
|
|
63193
|
+
|
|
63194
|
+
/**
|
|
63195
|
+
* Creates a plain object from a CollectionCreated message. Also converts values to other types if specified.
|
|
63196
|
+
* @function toObject
|
|
63197
|
+
* @memberof CollectionCreated
|
|
63198
|
+
* @static
|
|
63199
|
+
* @param {CollectionCreated} message CollectionCreated
|
|
63200
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
63201
|
+
* @returns {Object.<string,*>} Plain object
|
|
63202
|
+
*/
|
|
63203
|
+
CollectionCreated.toObject = function toObject(message, options) {
|
|
63204
|
+
if (!options)
|
|
63205
|
+
options = {};
|
|
63206
|
+
var object = {};
|
|
63207
|
+
if (options.arrays || options.defaults) {
|
|
62839
63208
|
object.accessGroup = [];
|
|
63209
|
+
object.collectionContent = [];
|
|
63210
|
+
object.techniques = [];
|
|
63211
|
+
object.related = [];
|
|
63212
|
+
}
|
|
63213
|
+
if (options.objects || options.defaults) {
|
|
63214
|
+
object.name = {};
|
|
63215
|
+
object.teaser = {};
|
|
63216
|
+
object.description = {};
|
|
63217
|
+
object.tileMedia = {};
|
|
63218
|
+
object.tags = {};
|
|
63219
|
+
}
|
|
62840
63220
|
if (options.defaults) {
|
|
62841
63221
|
object.slug = "";
|
|
62842
63222
|
object.contentType = "";
|
|
@@ -62846,6 +63226,13 @@ $root.CollectionCreated = (function() {
|
|
|
62846
63226
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62847
63227
|
} else
|
|
62848
63228
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
63229
|
+
object.enabled = false;
|
|
63230
|
+
object.isInternationalOnly = false;
|
|
63231
|
+
if ($util.Long) {
|
|
63232
|
+
var long = new $util.Long(0, 0, false);
|
|
63233
|
+
object.entityId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
63234
|
+
} else
|
|
63235
|
+
object.entityId = options.longs === String ? "0" : 0;
|
|
62849
63236
|
}
|
|
62850
63237
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62851
63238
|
object.slug = message.slug;
|
|
@@ -62863,6 +63250,56 @@ $root.CollectionCreated = (function() {
|
|
|
62863
63250
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
62864
63251
|
else
|
|
62865
63252
|
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
63253
|
+
var keys2;
|
|
63254
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
63255
|
+
object.name = {};
|
|
63256
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63257
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
63258
|
+
}
|
|
63259
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
63260
|
+
object.teaser = {};
|
|
63261
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63262
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
63263
|
+
}
|
|
63264
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
63265
|
+
object.description = {};
|
|
63266
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63267
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
63268
|
+
}
|
|
63269
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
63270
|
+
object.tileMedia = {};
|
|
63271
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63272
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
63273
|
+
}
|
|
63274
|
+
if (message.collectionContent && message.collectionContent.length) {
|
|
63275
|
+
object.collectionContent = [];
|
|
63276
|
+
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
63277
|
+
object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
|
|
63278
|
+
}
|
|
63279
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63280
|
+
object.enabled = message.enabled;
|
|
63281
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63282
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
63283
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
63284
|
+
object.tags = {};
|
|
63285
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63286
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
63287
|
+
}
|
|
63288
|
+
if (message.techniques && message.techniques.length) {
|
|
63289
|
+
object.techniques = [];
|
|
63290
|
+
for (var j = 0; j < message.techniques.length; ++j)
|
|
63291
|
+
object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
|
|
63292
|
+
}
|
|
63293
|
+
if (message.related && message.related.length) {
|
|
63294
|
+
object.related = [];
|
|
63295
|
+
for (var j = 0; j < message.related.length; ++j)
|
|
63296
|
+
object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
|
|
63297
|
+
}
|
|
63298
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
63299
|
+
if (typeof message.entityId === "number")
|
|
63300
|
+
object.entityId = options.longs === String ? String(message.entityId) : message.entityId;
|
|
63301
|
+
else
|
|
63302
|
+
object.entityId = options.longs === String ? $util.Long.prototype.toString.call(message.entityId) : options.longs === Number ? new $util.LongBits(message.entityId.low >>> 0, message.entityId.high >>> 0).toNumber() : message.entityId;
|
|
62866
63303
|
return object;
|
|
62867
63304
|
};
|
|
62868
63305
|
|
|
@@ -62891,6 +63328,17 @@ $root.CollectionUpdated = (function() {
|
|
|
62891
63328
|
* @property {ContentCollectionType|null} [collectionType] CollectionUpdated collectionType
|
|
62892
63329
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionUpdated accessGroup
|
|
62893
63330
|
* @property {number|Long|null} [updatedAt] CollectionUpdated updatedAt
|
|
63331
|
+
* @property {Object.<string,string>|null} [name] CollectionUpdated name
|
|
63332
|
+
* @property {Object.<string,string>|null} [teaser] CollectionUpdated teaser
|
|
63333
|
+
* @property {Object.<string,string>|null} [description] CollectionUpdated description
|
|
63334
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] CollectionUpdated tileMedia
|
|
63335
|
+
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] CollectionUpdated collectionContent
|
|
63336
|
+
* @property {boolean|null} [enabled] CollectionUpdated enabled
|
|
63337
|
+
* @property {boolean|null} [isInternationalOnly] CollectionUpdated isInternationalOnly
|
|
63338
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] CollectionUpdated tags
|
|
63339
|
+
* @property {Array.<contentful.ISlugReference>|null} [techniques] CollectionUpdated techniques
|
|
63340
|
+
* @property {Array.<contentful.ISlugReference>|null} [related] CollectionUpdated related
|
|
63341
|
+
* @property {number|Long|null} [entityId] CollectionUpdated entityId
|
|
62894
63342
|
*/
|
|
62895
63343
|
|
|
62896
63344
|
/**
|
|
@@ -62903,6 +63351,14 @@ $root.CollectionUpdated = (function() {
|
|
|
62903
63351
|
*/
|
|
62904
63352
|
function CollectionUpdated(properties) {
|
|
62905
63353
|
this.accessGroup = [];
|
|
63354
|
+
this.name = {};
|
|
63355
|
+
this.teaser = {};
|
|
63356
|
+
this.description = {};
|
|
63357
|
+
this.tileMedia = {};
|
|
63358
|
+
this.collectionContent = [];
|
|
63359
|
+
this.tags = {};
|
|
63360
|
+
this.techniques = [];
|
|
63361
|
+
this.related = [];
|
|
62906
63362
|
if (properties)
|
|
62907
63363
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62908
63364
|
if (properties[keys[i]] != null)
|
|
@@ -62949,6 +63405,94 @@ $root.CollectionUpdated = (function() {
|
|
|
62949
63405
|
*/
|
|
62950
63406
|
CollectionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62951
63407
|
|
|
63408
|
+
/**
|
|
63409
|
+
* CollectionUpdated name.
|
|
63410
|
+
* @member {Object.<string,string>} name
|
|
63411
|
+
* @memberof CollectionUpdated
|
|
63412
|
+
* @instance
|
|
63413
|
+
*/
|
|
63414
|
+
CollectionUpdated.prototype.name = $util.emptyObject;
|
|
63415
|
+
|
|
63416
|
+
/**
|
|
63417
|
+
* CollectionUpdated teaser.
|
|
63418
|
+
* @member {Object.<string,string>} teaser
|
|
63419
|
+
* @memberof CollectionUpdated
|
|
63420
|
+
* @instance
|
|
63421
|
+
*/
|
|
63422
|
+
CollectionUpdated.prototype.teaser = $util.emptyObject;
|
|
63423
|
+
|
|
63424
|
+
/**
|
|
63425
|
+
* CollectionUpdated description.
|
|
63426
|
+
* @member {Object.<string,string>} description
|
|
63427
|
+
* @memberof CollectionUpdated
|
|
63428
|
+
* @instance
|
|
63429
|
+
*/
|
|
63430
|
+
CollectionUpdated.prototype.description = $util.emptyObject;
|
|
63431
|
+
|
|
63432
|
+
/**
|
|
63433
|
+
* CollectionUpdated tileMedia.
|
|
63434
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
63435
|
+
* @memberof CollectionUpdated
|
|
63436
|
+
* @instance
|
|
63437
|
+
*/
|
|
63438
|
+
CollectionUpdated.prototype.tileMedia = $util.emptyObject;
|
|
63439
|
+
|
|
63440
|
+
/**
|
|
63441
|
+
* CollectionUpdated collectionContent.
|
|
63442
|
+
* @member {Array.<contentful.ISlugReference>} collectionContent
|
|
63443
|
+
* @memberof CollectionUpdated
|
|
63444
|
+
* @instance
|
|
63445
|
+
*/
|
|
63446
|
+
CollectionUpdated.prototype.collectionContent = $util.emptyArray;
|
|
63447
|
+
|
|
63448
|
+
/**
|
|
63449
|
+
* CollectionUpdated enabled.
|
|
63450
|
+
* @member {boolean} enabled
|
|
63451
|
+
* @memberof CollectionUpdated
|
|
63452
|
+
* @instance
|
|
63453
|
+
*/
|
|
63454
|
+
CollectionUpdated.prototype.enabled = false;
|
|
63455
|
+
|
|
63456
|
+
/**
|
|
63457
|
+
* CollectionUpdated isInternationalOnly.
|
|
63458
|
+
* @member {boolean} isInternationalOnly
|
|
63459
|
+
* @memberof CollectionUpdated
|
|
63460
|
+
* @instance
|
|
63461
|
+
*/
|
|
63462
|
+
CollectionUpdated.prototype.isInternationalOnly = false;
|
|
63463
|
+
|
|
63464
|
+
/**
|
|
63465
|
+
* CollectionUpdated tags.
|
|
63466
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
63467
|
+
* @memberof CollectionUpdated
|
|
63468
|
+
* @instance
|
|
63469
|
+
*/
|
|
63470
|
+
CollectionUpdated.prototype.tags = $util.emptyObject;
|
|
63471
|
+
|
|
63472
|
+
/**
|
|
63473
|
+
* CollectionUpdated techniques.
|
|
63474
|
+
* @member {Array.<contentful.ISlugReference>} techniques
|
|
63475
|
+
* @memberof CollectionUpdated
|
|
63476
|
+
* @instance
|
|
63477
|
+
*/
|
|
63478
|
+
CollectionUpdated.prototype.techniques = $util.emptyArray;
|
|
63479
|
+
|
|
63480
|
+
/**
|
|
63481
|
+
* CollectionUpdated related.
|
|
63482
|
+
* @member {Array.<contentful.ISlugReference>} related
|
|
63483
|
+
* @memberof CollectionUpdated
|
|
63484
|
+
* @instance
|
|
63485
|
+
*/
|
|
63486
|
+
CollectionUpdated.prototype.related = $util.emptyArray;
|
|
63487
|
+
|
|
63488
|
+
/**
|
|
63489
|
+
* CollectionUpdated entityId.
|
|
63490
|
+
* @member {number|Long} entityId
|
|
63491
|
+
* @memberof CollectionUpdated
|
|
63492
|
+
* @instance
|
|
63493
|
+
*/
|
|
63494
|
+
CollectionUpdated.prototype.entityId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
63495
|
+
|
|
62952
63496
|
/**
|
|
62953
63497
|
* Creates a new CollectionUpdated instance using the specified properties.
|
|
62954
63498
|
* @function create
|
|
@@ -62984,6 +63528,40 @@ $root.CollectionUpdated = (function() {
|
|
|
62984
63528
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
62985
63529
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62986
63530
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
63531
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
63532
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
63533
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
63534
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
63535
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
63536
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
|
|
63537
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
63538
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
63539
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
63540
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
63541
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63542
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
63543
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
63544
|
+
}
|
|
63545
|
+
if (message.collectionContent != null && message.collectionContent.length)
|
|
63546
|
+
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
63547
|
+
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
63548
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63549
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enabled);
|
|
63550
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63551
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.isInternationalOnly);
|
|
63552
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
63553
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
63554
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
63555
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
63556
|
+
}
|
|
63557
|
+
if (message.techniques != null && message.techniques.length)
|
|
63558
|
+
for (var i = 0; i < message.techniques.length; ++i)
|
|
63559
|
+
$root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
63560
|
+
if (message.related != null && message.related.length)
|
|
63561
|
+
for (var i = 0; i < message.related.length; ++i)
|
|
63562
|
+
$root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
63563
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
63564
|
+
writer.uint32(/* id 16, wireType 0 =*/128).int64(message.entityId);
|
|
62987
63565
|
return writer;
|
|
62988
63566
|
};
|
|
62989
63567
|
|
|
@@ -63014,7 +63592,7 @@ $root.CollectionUpdated = (function() {
|
|
|
63014
63592
|
CollectionUpdated.decode = function decode(reader, length) {
|
|
63015
63593
|
if (!(reader instanceof $Reader))
|
|
63016
63594
|
reader = $Reader.create(reader);
|
|
63017
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated();
|
|
63595
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated(), key;
|
|
63018
63596
|
while (reader.pos < end) {
|
|
63019
63597
|
var tag = reader.uint32();
|
|
63020
63598
|
switch (tag >>> 3) {
|
|
@@ -63035,6 +63613,70 @@ $root.CollectionUpdated = (function() {
|
|
|
63035
63613
|
case 5:
|
|
63036
63614
|
message.updatedAt = reader.uint64();
|
|
63037
63615
|
break;
|
|
63616
|
+
case 6:
|
|
63617
|
+
reader.skip().pos++;
|
|
63618
|
+
if (message.name === $util.emptyObject)
|
|
63619
|
+
message.name = {};
|
|
63620
|
+
key = reader.string();
|
|
63621
|
+
reader.pos++;
|
|
63622
|
+
message.name[key] = reader.string();
|
|
63623
|
+
break;
|
|
63624
|
+
case 7:
|
|
63625
|
+
reader.skip().pos++;
|
|
63626
|
+
if (message.teaser === $util.emptyObject)
|
|
63627
|
+
message.teaser = {};
|
|
63628
|
+
key = reader.string();
|
|
63629
|
+
reader.pos++;
|
|
63630
|
+
message.teaser[key] = reader.string();
|
|
63631
|
+
break;
|
|
63632
|
+
case 8:
|
|
63633
|
+
reader.skip().pos++;
|
|
63634
|
+
if (message.description === $util.emptyObject)
|
|
63635
|
+
message.description = {};
|
|
63636
|
+
key = reader.string();
|
|
63637
|
+
reader.pos++;
|
|
63638
|
+
message.description[key] = reader.string();
|
|
63639
|
+
break;
|
|
63640
|
+
case 9:
|
|
63641
|
+
reader.skip().pos++;
|
|
63642
|
+
if (message.tileMedia === $util.emptyObject)
|
|
63643
|
+
message.tileMedia = {};
|
|
63644
|
+
key = reader.string();
|
|
63645
|
+
reader.pos++;
|
|
63646
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
63647
|
+
break;
|
|
63648
|
+
case 10:
|
|
63649
|
+
if (!(message.collectionContent && message.collectionContent.length))
|
|
63650
|
+
message.collectionContent = [];
|
|
63651
|
+
message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63652
|
+
break;
|
|
63653
|
+
case 11:
|
|
63654
|
+
message.enabled = reader.bool();
|
|
63655
|
+
break;
|
|
63656
|
+
case 12:
|
|
63657
|
+
message.isInternationalOnly = reader.bool();
|
|
63658
|
+
break;
|
|
63659
|
+
case 13:
|
|
63660
|
+
reader.skip().pos++;
|
|
63661
|
+
if (message.tags === $util.emptyObject)
|
|
63662
|
+
message.tags = {};
|
|
63663
|
+
key = reader.string();
|
|
63664
|
+
reader.pos++;
|
|
63665
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
63666
|
+
break;
|
|
63667
|
+
case 14:
|
|
63668
|
+
if (!(message.techniques && message.techniques.length))
|
|
63669
|
+
message.techniques = [];
|
|
63670
|
+
message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63671
|
+
break;
|
|
63672
|
+
case 15:
|
|
63673
|
+
if (!(message.related && message.related.length))
|
|
63674
|
+
message.related = [];
|
|
63675
|
+
message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63676
|
+
break;
|
|
63677
|
+
case 16:
|
|
63678
|
+
message.entityId = reader.int64();
|
|
63679
|
+
break;
|
|
63038
63680
|
default:
|
|
63039
63681
|
reader.skipType(tag & 7);
|
|
63040
63682
|
break;
|
|
@@ -63096,6 +63738,86 @@ $root.CollectionUpdated = (function() {
|
|
|
63096
63738
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
63097
63739
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
63098
63740
|
return "updatedAt: integer|Long expected";
|
|
63741
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
63742
|
+
if (!$util.isObject(message.name))
|
|
63743
|
+
return "name: object expected";
|
|
63744
|
+
var key = Object.keys(message.name);
|
|
63745
|
+
for (var i = 0; i < key.length; ++i)
|
|
63746
|
+
if (!$util.isString(message.name[key[i]]))
|
|
63747
|
+
return "name: string{k:string} expected";
|
|
63748
|
+
}
|
|
63749
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
63750
|
+
if (!$util.isObject(message.teaser))
|
|
63751
|
+
return "teaser: object expected";
|
|
63752
|
+
var key = Object.keys(message.teaser);
|
|
63753
|
+
for (var i = 0; i < key.length; ++i)
|
|
63754
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
63755
|
+
return "teaser: string{k:string} expected";
|
|
63756
|
+
}
|
|
63757
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
63758
|
+
if (!$util.isObject(message.description))
|
|
63759
|
+
return "description: object expected";
|
|
63760
|
+
var key = Object.keys(message.description);
|
|
63761
|
+
for (var i = 0; i < key.length; ++i)
|
|
63762
|
+
if (!$util.isString(message.description[key[i]]))
|
|
63763
|
+
return "description: string{k:string} expected";
|
|
63764
|
+
}
|
|
63765
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
63766
|
+
if (!$util.isObject(message.tileMedia))
|
|
63767
|
+
return "tileMedia: object expected";
|
|
63768
|
+
var key = Object.keys(message.tileMedia);
|
|
63769
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63770
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
63771
|
+
if (error)
|
|
63772
|
+
return "tileMedia." + error;
|
|
63773
|
+
}
|
|
63774
|
+
}
|
|
63775
|
+
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
63776
|
+
if (!Array.isArray(message.collectionContent))
|
|
63777
|
+
return "collectionContent: array expected";
|
|
63778
|
+
for (var i = 0; i < message.collectionContent.length; ++i) {
|
|
63779
|
+
var error = $root.contentful.SlugReference.verify(message.collectionContent[i]);
|
|
63780
|
+
if (error)
|
|
63781
|
+
return "collectionContent." + error;
|
|
63782
|
+
}
|
|
63783
|
+
}
|
|
63784
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63785
|
+
if (typeof message.enabled !== "boolean")
|
|
63786
|
+
return "enabled: boolean expected";
|
|
63787
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63788
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
63789
|
+
return "isInternationalOnly: boolean expected";
|
|
63790
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
63791
|
+
if (!$util.isObject(message.tags))
|
|
63792
|
+
return "tags: object expected";
|
|
63793
|
+
var key = Object.keys(message.tags);
|
|
63794
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63795
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
63796
|
+
if (error)
|
|
63797
|
+
return "tags." + error;
|
|
63798
|
+
}
|
|
63799
|
+
}
|
|
63800
|
+
if (message.techniques != null && message.hasOwnProperty("techniques")) {
|
|
63801
|
+
if (!Array.isArray(message.techniques))
|
|
63802
|
+
return "techniques: array expected";
|
|
63803
|
+
for (var i = 0; i < message.techniques.length; ++i) {
|
|
63804
|
+
var error = $root.contentful.SlugReference.verify(message.techniques[i]);
|
|
63805
|
+
if (error)
|
|
63806
|
+
return "techniques." + error;
|
|
63807
|
+
}
|
|
63808
|
+
}
|
|
63809
|
+
if (message.related != null && message.hasOwnProperty("related")) {
|
|
63810
|
+
if (!Array.isArray(message.related))
|
|
63811
|
+
return "related: array expected";
|
|
63812
|
+
for (var i = 0; i < message.related.length; ++i) {
|
|
63813
|
+
var error = $root.contentful.SlugReference.verify(message.related[i]);
|
|
63814
|
+
if (error)
|
|
63815
|
+
return "related." + error;
|
|
63816
|
+
}
|
|
63817
|
+
}
|
|
63818
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
63819
|
+
if (!$util.isInteger(message.entityId) && !(message.entityId && $util.isInteger(message.entityId.low) && $util.isInteger(message.entityId.high)))
|
|
63820
|
+
return "entityId: integer|Long expected";
|
|
63099
63821
|
return null;
|
|
63100
63822
|
};
|
|
63101
63823
|
|
|
@@ -63144,6 +63866,90 @@ $root.CollectionUpdated = (function() {
|
|
|
63144
63866
|
message.updatedAt = object.updatedAt;
|
|
63145
63867
|
else if (typeof object.updatedAt === "object")
|
|
63146
63868
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
63869
|
+
if (object.name) {
|
|
63870
|
+
if (typeof object.name !== "object")
|
|
63871
|
+
throw TypeError(".CollectionUpdated.name: object expected");
|
|
63872
|
+
message.name = {};
|
|
63873
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
63874
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
63875
|
+
}
|
|
63876
|
+
if (object.teaser) {
|
|
63877
|
+
if (typeof object.teaser !== "object")
|
|
63878
|
+
throw TypeError(".CollectionUpdated.teaser: object expected");
|
|
63879
|
+
message.teaser = {};
|
|
63880
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
63881
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
63882
|
+
}
|
|
63883
|
+
if (object.description) {
|
|
63884
|
+
if (typeof object.description !== "object")
|
|
63885
|
+
throw TypeError(".CollectionUpdated.description: object expected");
|
|
63886
|
+
message.description = {};
|
|
63887
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
63888
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
63889
|
+
}
|
|
63890
|
+
if (object.tileMedia) {
|
|
63891
|
+
if (typeof object.tileMedia !== "object")
|
|
63892
|
+
throw TypeError(".CollectionUpdated.tileMedia: object expected");
|
|
63893
|
+
message.tileMedia = {};
|
|
63894
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63895
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
63896
|
+
throw TypeError(".CollectionUpdated.tileMedia: object expected");
|
|
63897
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
63898
|
+
}
|
|
63899
|
+
}
|
|
63900
|
+
if (object.collectionContent) {
|
|
63901
|
+
if (!Array.isArray(object.collectionContent))
|
|
63902
|
+
throw TypeError(".CollectionUpdated.collectionContent: array expected");
|
|
63903
|
+
message.collectionContent = [];
|
|
63904
|
+
for (var i = 0; i < object.collectionContent.length; ++i) {
|
|
63905
|
+
if (typeof object.collectionContent[i] !== "object")
|
|
63906
|
+
throw TypeError(".CollectionUpdated.collectionContent: object expected");
|
|
63907
|
+
message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
|
|
63908
|
+
}
|
|
63909
|
+
}
|
|
63910
|
+
if (object.enabled != null)
|
|
63911
|
+
message.enabled = Boolean(object.enabled);
|
|
63912
|
+
if (object.isInternationalOnly != null)
|
|
63913
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
63914
|
+
if (object.tags) {
|
|
63915
|
+
if (typeof object.tags !== "object")
|
|
63916
|
+
throw TypeError(".CollectionUpdated.tags: object expected");
|
|
63917
|
+
message.tags = {};
|
|
63918
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
63919
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
63920
|
+
throw TypeError(".CollectionUpdated.tags: object expected");
|
|
63921
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
63922
|
+
}
|
|
63923
|
+
}
|
|
63924
|
+
if (object.techniques) {
|
|
63925
|
+
if (!Array.isArray(object.techniques))
|
|
63926
|
+
throw TypeError(".CollectionUpdated.techniques: array expected");
|
|
63927
|
+
message.techniques = [];
|
|
63928
|
+
for (var i = 0; i < object.techniques.length; ++i) {
|
|
63929
|
+
if (typeof object.techniques[i] !== "object")
|
|
63930
|
+
throw TypeError(".CollectionUpdated.techniques: object expected");
|
|
63931
|
+
message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
|
|
63932
|
+
}
|
|
63933
|
+
}
|
|
63934
|
+
if (object.related) {
|
|
63935
|
+
if (!Array.isArray(object.related))
|
|
63936
|
+
throw TypeError(".CollectionUpdated.related: array expected");
|
|
63937
|
+
message.related = [];
|
|
63938
|
+
for (var i = 0; i < object.related.length; ++i) {
|
|
63939
|
+
if (typeof object.related[i] !== "object")
|
|
63940
|
+
throw TypeError(".CollectionUpdated.related: object expected");
|
|
63941
|
+
message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
|
|
63942
|
+
}
|
|
63943
|
+
}
|
|
63944
|
+
if (object.entityId != null)
|
|
63945
|
+
if ($util.Long)
|
|
63946
|
+
(message.entityId = $util.Long.fromValue(object.entityId)).unsigned = false;
|
|
63947
|
+
else if (typeof object.entityId === "string")
|
|
63948
|
+
message.entityId = parseInt(object.entityId, 10);
|
|
63949
|
+
else if (typeof object.entityId === "number")
|
|
63950
|
+
message.entityId = object.entityId;
|
|
63951
|
+
else if (typeof object.entityId === "object")
|
|
63952
|
+
message.entityId = new $util.LongBits(object.entityId.low >>> 0, object.entityId.high >>> 0).toNumber();
|
|
63147
63953
|
return message;
|
|
63148
63954
|
};
|
|
63149
63955
|
|
|
@@ -63160,8 +63966,19 @@ $root.CollectionUpdated = (function() {
|
|
|
63160
63966
|
if (!options)
|
|
63161
63967
|
options = {};
|
|
63162
63968
|
var object = {};
|
|
63163
|
-
if (options.arrays || options.defaults)
|
|
63969
|
+
if (options.arrays || options.defaults) {
|
|
63164
63970
|
object.accessGroup = [];
|
|
63971
|
+
object.collectionContent = [];
|
|
63972
|
+
object.techniques = [];
|
|
63973
|
+
object.related = [];
|
|
63974
|
+
}
|
|
63975
|
+
if (options.objects || options.defaults) {
|
|
63976
|
+
object.name = {};
|
|
63977
|
+
object.teaser = {};
|
|
63978
|
+
object.description = {};
|
|
63979
|
+
object.tileMedia = {};
|
|
63980
|
+
object.tags = {};
|
|
63981
|
+
}
|
|
63165
63982
|
if (options.defaults) {
|
|
63166
63983
|
object.slug = "";
|
|
63167
63984
|
object.contentType = "";
|
|
@@ -63171,6 +63988,13 @@ $root.CollectionUpdated = (function() {
|
|
|
63171
63988
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
63172
63989
|
} else
|
|
63173
63990
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
63991
|
+
object.enabled = false;
|
|
63992
|
+
object.isInternationalOnly = false;
|
|
63993
|
+
if ($util.Long) {
|
|
63994
|
+
var long = new $util.Long(0, 0, false);
|
|
63995
|
+
object.entityId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
63996
|
+
} else
|
|
63997
|
+
object.entityId = options.longs === String ? "0" : 0;
|
|
63174
63998
|
}
|
|
63175
63999
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
63176
64000
|
object.slug = message.slug;
|
|
@@ -63188,6 +64012,56 @@ $root.CollectionUpdated = (function() {
|
|
|
63188
64012
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
63189
64013
|
else
|
|
63190
64014
|
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
64015
|
+
var keys2;
|
|
64016
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
64017
|
+
object.name = {};
|
|
64018
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
64019
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
64020
|
+
}
|
|
64021
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
64022
|
+
object.teaser = {};
|
|
64023
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
64024
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
64025
|
+
}
|
|
64026
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
64027
|
+
object.description = {};
|
|
64028
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
64029
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
64030
|
+
}
|
|
64031
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
64032
|
+
object.tileMedia = {};
|
|
64033
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
64034
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
64035
|
+
}
|
|
64036
|
+
if (message.collectionContent && message.collectionContent.length) {
|
|
64037
|
+
object.collectionContent = [];
|
|
64038
|
+
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
64039
|
+
object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
|
|
64040
|
+
}
|
|
64041
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
64042
|
+
object.enabled = message.enabled;
|
|
64043
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
64044
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
64045
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
64046
|
+
object.tags = {};
|
|
64047
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
64048
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
64049
|
+
}
|
|
64050
|
+
if (message.techniques && message.techniques.length) {
|
|
64051
|
+
object.techniques = [];
|
|
64052
|
+
for (var j = 0; j < message.techniques.length; ++j)
|
|
64053
|
+
object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
|
|
64054
|
+
}
|
|
64055
|
+
if (message.related && message.related.length) {
|
|
64056
|
+
object.related = [];
|
|
64057
|
+
for (var j = 0; j < message.related.length; ++j)
|
|
64058
|
+
object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
|
|
64059
|
+
}
|
|
64060
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
64061
|
+
if (typeof message.entityId === "number")
|
|
64062
|
+
object.entityId = options.longs === String ? String(message.entityId) : message.entityId;
|
|
64063
|
+
else
|
|
64064
|
+
object.entityId = options.longs === String ? $util.Long.prototype.toString.call(message.entityId) : options.longs === Number ? new $util.LongBits(message.entityId.low >>> 0, message.entityId.high >>> 0).toNumber() : message.entityId;
|
|
63191
64065
|
return object;
|
|
63192
64066
|
};
|
|
63193
64067
|
|
package/package.json
CHANGED