@headspace/protos-events 1.297.0 → 1.298.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 +120 -0
- package/lib/index.js +831 -29
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -23045,6 +23045,36 @@ 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);
|
|
23048
23078
|
}
|
|
23049
23079
|
|
|
23050
23080
|
/** Represents a CollectionCreated. */
|
|
@@ -23071,6 +23101,36 @@ export class CollectionCreated implements ICollectionCreated {
|
|
|
23071
23101
|
/** CollectionCreated createdAt. */
|
|
23072
23102
|
public createdAt: (number|Long);
|
|
23073
23103
|
|
|
23104
|
+
/** CollectionCreated name. */
|
|
23105
|
+
public name: { [k: string]: string };
|
|
23106
|
+
|
|
23107
|
+
/** CollectionCreated teaser. */
|
|
23108
|
+
public teaser: { [k: string]: string };
|
|
23109
|
+
|
|
23110
|
+
/** CollectionCreated description. */
|
|
23111
|
+
public description: { [k: string]: string };
|
|
23112
|
+
|
|
23113
|
+
/** CollectionCreated tileMedia. */
|
|
23114
|
+
public tileMedia: { [k: string]: contentful.IIdReference };
|
|
23115
|
+
|
|
23116
|
+
/** CollectionCreated collectionContent. */
|
|
23117
|
+
public collectionContent: contentful.ISlugReference[];
|
|
23118
|
+
|
|
23119
|
+
/** CollectionCreated enabled. */
|
|
23120
|
+
public enabled: boolean;
|
|
23121
|
+
|
|
23122
|
+
/** CollectionCreated isInternationalOnly. */
|
|
23123
|
+
public isInternationalOnly: boolean;
|
|
23124
|
+
|
|
23125
|
+
/** CollectionCreated tags. */
|
|
23126
|
+
public tags: { [k: string]: contentful.ITags };
|
|
23127
|
+
|
|
23128
|
+
/** CollectionCreated techniques. */
|
|
23129
|
+
public techniques: contentful.ISlugReference[];
|
|
23130
|
+
|
|
23131
|
+
/** CollectionCreated related. */
|
|
23132
|
+
public related: contentful.ISlugReference[];
|
|
23133
|
+
|
|
23074
23134
|
/**
|
|
23075
23135
|
* Creates a new CollectionCreated instance using the specified properties.
|
|
23076
23136
|
* @param [properties] Properties to set
|
|
@@ -23159,6 +23219,36 @@ export interface ICollectionUpdated {
|
|
|
23159
23219
|
|
|
23160
23220
|
/** CollectionUpdated updatedAt */
|
|
23161
23221
|
updatedAt?: (number|Long|null);
|
|
23222
|
+
|
|
23223
|
+
/** CollectionUpdated name */
|
|
23224
|
+
name?: ({ [k: string]: string }|null);
|
|
23225
|
+
|
|
23226
|
+
/** CollectionUpdated teaser */
|
|
23227
|
+
teaser?: ({ [k: string]: string }|null);
|
|
23228
|
+
|
|
23229
|
+
/** CollectionUpdated description */
|
|
23230
|
+
description?: ({ [k: string]: string }|null);
|
|
23231
|
+
|
|
23232
|
+
/** CollectionUpdated tileMedia */
|
|
23233
|
+
tileMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
23234
|
+
|
|
23235
|
+
/** CollectionUpdated collectionContent */
|
|
23236
|
+
collectionContent?: (contentful.ISlugReference[]|null);
|
|
23237
|
+
|
|
23238
|
+
/** CollectionUpdated enabled */
|
|
23239
|
+
enabled?: (boolean|null);
|
|
23240
|
+
|
|
23241
|
+
/** CollectionUpdated isInternationalOnly */
|
|
23242
|
+
isInternationalOnly?: (boolean|null);
|
|
23243
|
+
|
|
23244
|
+
/** CollectionUpdated tags */
|
|
23245
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
23246
|
+
|
|
23247
|
+
/** CollectionUpdated techniques */
|
|
23248
|
+
techniques?: (contentful.ISlugReference[]|null);
|
|
23249
|
+
|
|
23250
|
+
/** CollectionUpdated related */
|
|
23251
|
+
related?: (contentful.ISlugReference[]|null);
|
|
23162
23252
|
}
|
|
23163
23253
|
|
|
23164
23254
|
/** Represents a CollectionUpdated. */
|
|
@@ -23185,6 +23275,36 @@ export class CollectionUpdated implements ICollectionUpdated {
|
|
|
23185
23275
|
/** CollectionUpdated updatedAt. */
|
|
23186
23276
|
public updatedAt: (number|Long);
|
|
23187
23277
|
|
|
23278
|
+
/** CollectionUpdated name. */
|
|
23279
|
+
public name: { [k: string]: string };
|
|
23280
|
+
|
|
23281
|
+
/** CollectionUpdated teaser. */
|
|
23282
|
+
public teaser: { [k: string]: string };
|
|
23283
|
+
|
|
23284
|
+
/** CollectionUpdated description. */
|
|
23285
|
+
public description: { [k: string]: string };
|
|
23286
|
+
|
|
23287
|
+
/** CollectionUpdated tileMedia. */
|
|
23288
|
+
public tileMedia: { [k: string]: contentful.IIdReference };
|
|
23289
|
+
|
|
23290
|
+
/** CollectionUpdated collectionContent. */
|
|
23291
|
+
public collectionContent: contentful.ISlugReference[];
|
|
23292
|
+
|
|
23293
|
+
/** CollectionUpdated enabled. */
|
|
23294
|
+
public enabled: boolean;
|
|
23295
|
+
|
|
23296
|
+
/** CollectionUpdated isInternationalOnly. */
|
|
23297
|
+
public isInternationalOnly: boolean;
|
|
23298
|
+
|
|
23299
|
+
/** CollectionUpdated tags. */
|
|
23300
|
+
public tags: { [k: string]: contentful.ITags };
|
|
23301
|
+
|
|
23302
|
+
/** CollectionUpdated techniques. */
|
|
23303
|
+
public techniques: contentful.ISlugReference[];
|
|
23304
|
+
|
|
23305
|
+
/** CollectionUpdated related. */
|
|
23306
|
+
public related: contentful.ISlugReference[];
|
|
23307
|
+
|
|
23188
23308
|
/**
|
|
23189
23309
|
* Creates a new CollectionUpdated instance using the specified properties.
|
|
23190
23310
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -62566,6 +62566,16 @@ $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
|
|
62569
62579
|
*/
|
|
62570
62580
|
|
|
62571
62581
|
/**
|
|
@@ -62578,6 +62588,14 @@ $root.CollectionCreated = (function() {
|
|
|
62578
62588
|
*/
|
|
62579
62589
|
function CollectionCreated(properties) {
|
|
62580
62590
|
this.accessGroup = [];
|
|
62591
|
+
this.name = {};
|
|
62592
|
+
this.teaser = {};
|
|
62593
|
+
this.description = {};
|
|
62594
|
+
this.tileMedia = {};
|
|
62595
|
+
this.collectionContent = [];
|
|
62596
|
+
this.tags = {};
|
|
62597
|
+
this.techniques = [];
|
|
62598
|
+
this.related = [];
|
|
62581
62599
|
if (properties)
|
|
62582
62600
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62583
62601
|
if (properties[keys[i]] != null)
|
|
@@ -62624,6 +62642,86 @@ $root.CollectionCreated = (function() {
|
|
|
62624
62642
|
*/
|
|
62625
62643
|
CollectionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62626
62644
|
|
|
62645
|
+
/**
|
|
62646
|
+
* CollectionCreated name.
|
|
62647
|
+
* @member {Object.<string,string>} name
|
|
62648
|
+
* @memberof CollectionCreated
|
|
62649
|
+
* @instance
|
|
62650
|
+
*/
|
|
62651
|
+
CollectionCreated.prototype.name = $util.emptyObject;
|
|
62652
|
+
|
|
62653
|
+
/**
|
|
62654
|
+
* CollectionCreated teaser.
|
|
62655
|
+
* @member {Object.<string,string>} teaser
|
|
62656
|
+
* @memberof CollectionCreated
|
|
62657
|
+
* @instance
|
|
62658
|
+
*/
|
|
62659
|
+
CollectionCreated.prototype.teaser = $util.emptyObject;
|
|
62660
|
+
|
|
62661
|
+
/**
|
|
62662
|
+
* CollectionCreated description.
|
|
62663
|
+
* @member {Object.<string,string>} description
|
|
62664
|
+
* @memberof CollectionCreated
|
|
62665
|
+
* @instance
|
|
62666
|
+
*/
|
|
62667
|
+
CollectionCreated.prototype.description = $util.emptyObject;
|
|
62668
|
+
|
|
62669
|
+
/**
|
|
62670
|
+
* CollectionCreated tileMedia.
|
|
62671
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
62672
|
+
* @memberof CollectionCreated
|
|
62673
|
+
* @instance
|
|
62674
|
+
*/
|
|
62675
|
+
CollectionCreated.prototype.tileMedia = $util.emptyObject;
|
|
62676
|
+
|
|
62677
|
+
/**
|
|
62678
|
+
* CollectionCreated collectionContent.
|
|
62679
|
+
* @member {Array.<contentful.ISlugReference>} collectionContent
|
|
62680
|
+
* @memberof CollectionCreated
|
|
62681
|
+
* @instance
|
|
62682
|
+
*/
|
|
62683
|
+
CollectionCreated.prototype.collectionContent = $util.emptyArray;
|
|
62684
|
+
|
|
62685
|
+
/**
|
|
62686
|
+
* CollectionCreated enabled.
|
|
62687
|
+
* @member {boolean} enabled
|
|
62688
|
+
* @memberof CollectionCreated
|
|
62689
|
+
* @instance
|
|
62690
|
+
*/
|
|
62691
|
+
CollectionCreated.prototype.enabled = false;
|
|
62692
|
+
|
|
62693
|
+
/**
|
|
62694
|
+
* CollectionCreated isInternationalOnly.
|
|
62695
|
+
* @member {boolean} isInternationalOnly
|
|
62696
|
+
* @memberof CollectionCreated
|
|
62697
|
+
* @instance
|
|
62698
|
+
*/
|
|
62699
|
+
CollectionCreated.prototype.isInternationalOnly = false;
|
|
62700
|
+
|
|
62701
|
+
/**
|
|
62702
|
+
* CollectionCreated tags.
|
|
62703
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
62704
|
+
* @memberof CollectionCreated
|
|
62705
|
+
* @instance
|
|
62706
|
+
*/
|
|
62707
|
+
CollectionCreated.prototype.tags = $util.emptyObject;
|
|
62708
|
+
|
|
62709
|
+
/**
|
|
62710
|
+
* CollectionCreated techniques.
|
|
62711
|
+
* @member {Array.<contentful.ISlugReference>} techniques
|
|
62712
|
+
* @memberof CollectionCreated
|
|
62713
|
+
* @instance
|
|
62714
|
+
*/
|
|
62715
|
+
CollectionCreated.prototype.techniques = $util.emptyArray;
|
|
62716
|
+
|
|
62717
|
+
/**
|
|
62718
|
+
* CollectionCreated related.
|
|
62719
|
+
* @member {Array.<contentful.ISlugReference>} related
|
|
62720
|
+
* @memberof CollectionCreated
|
|
62721
|
+
* @instance
|
|
62722
|
+
*/
|
|
62723
|
+
CollectionCreated.prototype.related = $util.emptyArray;
|
|
62724
|
+
|
|
62627
62725
|
/**
|
|
62628
62726
|
* Creates a new CollectionCreated instance using the specified properties.
|
|
62629
62727
|
* @function create
|
|
@@ -62659,6 +62757,38 @@ $root.CollectionCreated = (function() {
|
|
|
62659
62757
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
62660
62758
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
62661
62759
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
62760
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
62761
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
62762
|
+
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();
|
|
62763
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
62764
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
62765
|
+
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();
|
|
62766
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
62767
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
62768
|
+
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();
|
|
62769
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
62770
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
62771
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
62772
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
62773
|
+
}
|
|
62774
|
+
if (message.collectionContent != null && message.collectionContent.length)
|
|
62775
|
+
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
62776
|
+
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
62777
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
62778
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enabled);
|
|
62779
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
62780
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.isInternationalOnly);
|
|
62781
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
62782
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
62783
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
62784
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
62785
|
+
}
|
|
62786
|
+
if (message.techniques != null && message.techniques.length)
|
|
62787
|
+
for (var i = 0; i < message.techniques.length; ++i)
|
|
62788
|
+
$root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
62789
|
+
if (message.related != null && message.related.length)
|
|
62790
|
+
for (var i = 0; i < message.related.length; ++i)
|
|
62791
|
+
$root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
62662
62792
|
return writer;
|
|
62663
62793
|
};
|
|
62664
62794
|
|
|
@@ -62689,7 +62819,7 @@ $root.CollectionCreated = (function() {
|
|
|
62689
62819
|
CollectionCreated.decode = function decode(reader, length) {
|
|
62690
62820
|
if (!(reader instanceof $Reader))
|
|
62691
62821
|
reader = $Reader.create(reader);
|
|
62692
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated();
|
|
62822
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated(), key;
|
|
62693
62823
|
while (reader.pos < end) {
|
|
62694
62824
|
var tag = reader.uint32();
|
|
62695
62825
|
switch (tag >>> 3) {
|
|
@@ -62710,6 +62840,67 @@ $root.CollectionCreated = (function() {
|
|
|
62710
62840
|
case 5:
|
|
62711
62841
|
message.createdAt = reader.uint64();
|
|
62712
62842
|
break;
|
|
62843
|
+
case 6:
|
|
62844
|
+
reader.skip().pos++;
|
|
62845
|
+
if (message.name === $util.emptyObject)
|
|
62846
|
+
message.name = {};
|
|
62847
|
+
key = reader.string();
|
|
62848
|
+
reader.pos++;
|
|
62849
|
+
message.name[key] = reader.string();
|
|
62850
|
+
break;
|
|
62851
|
+
case 7:
|
|
62852
|
+
reader.skip().pos++;
|
|
62853
|
+
if (message.teaser === $util.emptyObject)
|
|
62854
|
+
message.teaser = {};
|
|
62855
|
+
key = reader.string();
|
|
62856
|
+
reader.pos++;
|
|
62857
|
+
message.teaser[key] = reader.string();
|
|
62858
|
+
break;
|
|
62859
|
+
case 8:
|
|
62860
|
+
reader.skip().pos++;
|
|
62861
|
+
if (message.description === $util.emptyObject)
|
|
62862
|
+
message.description = {};
|
|
62863
|
+
key = reader.string();
|
|
62864
|
+
reader.pos++;
|
|
62865
|
+
message.description[key] = reader.string();
|
|
62866
|
+
break;
|
|
62867
|
+
case 9:
|
|
62868
|
+
reader.skip().pos++;
|
|
62869
|
+
if (message.tileMedia === $util.emptyObject)
|
|
62870
|
+
message.tileMedia = {};
|
|
62871
|
+
key = reader.string();
|
|
62872
|
+
reader.pos++;
|
|
62873
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
62874
|
+
break;
|
|
62875
|
+
case 10:
|
|
62876
|
+
if (!(message.collectionContent && message.collectionContent.length))
|
|
62877
|
+
message.collectionContent = [];
|
|
62878
|
+
message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62879
|
+
break;
|
|
62880
|
+
case 11:
|
|
62881
|
+
message.enabled = reader.bool();
|
|
62882
|
+
break;
|
|
62883
|
+
case 12:
|
|
62884
|
+
message.isInternationalOnly = reader.bool();
|
|
62885
|
+
break;
|
|
62886
|
+
case 13:
|
|
62887
|
+
reader.skip().pos++;
|
|
62888
|
+
if (message.tags === $util.emptyObject)
|
|
62889
|
+
message.tags = {};
|
|
62890
|
+
key = reader.string();
|
|
62891
|
+
reader.pos++;
|
|
62892
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
62893
|
+
break;
|
|
62894
|
+
case 14:
|
|
62895
|
+
if (!(message.techniques && message.techniques.length))
|
|
62896
|
+
message.techniques = [];
|
|
62897
|
+
message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62898
|
+
break;
|
|
62899
|
+
case 15:
|
|
62900
|
+
if (!(message.related && message.related.length))
|
|
62901
|
+
message.related = [];
|
|
62902
|
+
message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62903
|
+
break;
|
|
62713
62904
|
default:
|
|
62714
62905
|
reader.skipType(tag & 7);
|
|
62715
62906
|
break;
|
|
@@ -62771,6 +62962,83 @@ $root.CollectionCreated = (function() {
|
|
|
62771
62962
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
62772
62963
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
62773
62964
|
return "createdAt: integer|Long expected";
|
|
62965
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
62966
|
+
if (!$util.isObject(message.name))
|
|
62967
|
+
return "name: object expected";
|
|
62968
|
+
var key = Object.keys(message.name);
|
|
62969
|
+
for (var i = 0; i < key.length; ++i)
|
|
62970
|
+
if (!$util.isString(message.name[key[i]]))
|
|
62971
|
+
return "name: string{k:string} expected";
|
|
62972
|
+
}
|
|
62973
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
62974
|
+
if (!$util.isObject(message.teaser))
|
|
62975
|
+
return "teaser: object expected";
|
|
62976
|
+
var key = Object.keys(message.teaser);
|
|
62977
|
+
for (var i = 0; i < key.length; ++i)
|
|
62978
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
62979
|
+
return "teaser: string{k:string} expected";
|
|
62980
|
+
}
|
|
62981
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
62982
|
+
if (!$util.isObject(message.description))
|
|
62983
|
+
return "description: object expected";
|
|
62984
|
+
var key = Object.keys(message.description);
|
|
62985
|
+
for (var i = 0; i < key.length; ++i)
|
|
62986
|
+
if (!$util.isString(message.description[key[i]]))
|
|
62987
|
+
return "description: string{k:string} expected";
|
|
62988
|
+
}
|
|
62989
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
62990
|
+
if (!$util.isObject(message.tileMedia))
|
|
62991
|
+
return "tileMedia: object expected";
|
|
62992
|
+
var key = Object.keys(message.tileMedia);
|
|
62993
|
+
for (var i = 0; i < key.length; ++i) {
|
|
62994
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
62995
|
+
if (error)
|
|
62996
|
+
return "tileMedia." + error;
|
|
62997
|
+
}
|
|
62998
|
+
}
|
|
62999
|
+
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
63000
|
+
if (!Array.isArray(message.collectionContent))
|
|
63001
|
+
return "collectionContent: array expected";
|
|
63002
|
+
for (var i = 0; i < message.collectionContent.length; ++i) {
|
|
63003
|
+
var error = $root.contentful.SlugReference.verify(message.collectionContent[i]);
|
|
63004
|
+
if (error)
|
|
63005
|
+
return "collectionContent." + error;
|
|
63006
|
+
}
|
|
63007
|
+
}
|
|
63008
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63009
|
+
if (typeof message.enabled !== "boolean")
|
|
63010
|
+
return "enabled: boolean expected";
|
|
63011
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63012
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
63013
|
+
return "isInternationalOnly: boolean expected";
|
|
63014
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
63015
|
+
if (!$util.isObject(message.tags))
|
|
63016
|
+
return "tags: object expected";
|
|
63017
|
+
var key = Object.keys(message.tags);
|
|
63018
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63019
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
63020
|
+
if (error)
|
|
63021
|
+
return "tags." + error;
|
|
63022
|
+
}
|
|
63023
|
+
}
|
|
63024
|
+
if (message.techniques != null && message.hasOwnProperty("techniques")) {
|
|
63025
|
+
if (!Array.isArray(message.techniques))
|
|
63026
|
+
return "techniques: array expected";
|
|
63027
|
+
for (var i = 0; i < message.techniques.length; ++i) {
|
|
63028
|
+
var error = $root.contentful.SlugReference.verify(message.techniques[i]);
|
|
63029
|
+
if (error)
|
|
63030
|
+
return "techniques." + error;
|
|
63031
|
+
}
|
|
63032
|
+
}
|
|
63033
|
+
if (message.related != null && message.hasOwnProperty("related")) {
|
|
63034
|
+
if (!Array.isArray(message.related))
|
|
63035
|
+
return "related: array expected";
|
|
63036
|
+
for (var i = 0; i < message.related.length; ++i) {
|
|
63037
|
+
var error = $root.contentful.SlugReference.verify(message.related[i]);
|
|
63038
|
+
if (error)
|
|
63039
|
+
return "related." + error;
|
|
63040
|
+
}
|
|
63041
|
+
}
|
|
62774
63042
|
return null;
|
|
62775
63043
|
};
|
|
62776
63044
|
|
|
@@ -62819,33 +63087,121 @@ $root.CollectionCreated = (function() {
|
|
|
62819
63087
|
message.createdAt = object.createdAt;
|
|
62820
63088
|
else if (typeof object.createdAt === "object")
|
|
62821
63089
|
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
|
-
|
|
62839
|
-
|
|
62840
|
-
|
|
62841
|
-
|
|
62842
|
-
|
|
62843
|
-
|
|
62844
|
-
if (
|
|
62845
|
-
|
|
62846
|
-
|
|
62847
|
-
|
|
63090
|
+
if (object.name) {
|
|
63091
|
+
if (typeof object.name !== "object")
|
|
63092
|
+
throw TypeError(".CollectionCreated.name: object expected");
|
|
63093
|
+
message.name = {};
|
|
63094
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
63095
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
63096
|
+
}
|
|
63097
|
+
if (object.teaser) {
|
|
63098
|
+
if (typeof object.teaser !== "object")
|
|
63099
|
+
throw TypeError(".CollectionCreated.teaser: object expected");
|
|
63100
|
+
message.teaser = {};
|
|
63101
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
63102
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
63103
|
+
}
|
|
63104
|
+
if (object.description) {
|
|
63105
|
+
if (typeof object.description !== "object")
|
|
63106
|
+
throw TypeError(".CollectionCreated.description: object expected");
|
|
63107
|
+
message.description = {};
|
|
63108
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
63109
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
63110
|
+
}
|
|
63111
|
+
if (object.tileMedia) {
|
|
63112
|
+
if (typeof object.tileMedia !== "object")
|
|
63113
|
+
throw TypeError(".CollectionCreated.tileMedia: object expected");
|
|
63114
|
+
message.tileMedia = {};
|
|
63115
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63116
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
63117
|
+
throw TypeError(".CollectionCreated.tileMedia: object expected");
|
|
63118
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
63119
|
+
}
|
|
63120
|
+
}
|
|
63121
|
+
if (object.collectionContent) {
|
|
63122
|
+
if (!Array.isArray(object.collectionContent))
|
|
63123
|
+
throw TypeError(".CollectionCreated.collectionContent: array expected");
|
|
63124
|
+
message.collectionContent = [];
|
|
63125
|
+
for (var i = 0; i < object.collectionContent.length; ++i) {
|
|
63126
|
+
if (typeof object.collectionContent[i] !== "object")
|
|
63127
|
+
throw TypeError(".CollectionCreated.collectionContent: object expected");
|
|
63128
|
+
message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
|
|
63129
|
+
}
|
|
63130
|
+
}
|
|
63131
|
+
if (object.enabled != null)
|
|
63132
|
+
message.enabled = Boolean(object.enabled);
|
|
63133
|
+
if (object.isInternationalOnly != null)
|
|
63134
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
63135
|
+
if (object.tags) {
|
|
63136
|
+
if (typeof object.tags !== "object")
|
|
63137
|
+
throw TypeError(".CollectionCreated.tags: object expected");
|
|
63138
|
+
message.tags = {};
|
|
63139
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
63140
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
63141
|
+
throw TypeError(".CollectionCreated.tags: object expected");
|
|
63142
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
63143
|
+
}
|
|
63144
|
+
}
|
|
63145
|
+
if (object.techniques) {
|
|
63146
|
+
if (!Array.isArray(object.techniques))
|
|
63147
|
+
throw TypeError(".CollectionCreated.techniques: array expected");
|
|
63148
|
+
message.techniques = [];
|
|
63149
|
+
for (var i = 0; i < object.techniques.length; ++i) {
|
|
63150
|
+
if (typeof object.techniques[i] !== "object")
|
|
63151
|
+
throw TypeError(".CollectionCreated.techniques: object expected");
|
|
63152
|
+
message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
|
|
63153
|
+
}
|
|
63154
|
+
}
|
|
63155
|
+
if (object.related) {
|
|
63156
|
+
if (!Array.isArray(object.related))
|
|
63157
|
+
throw TypeError(".CollectionCreated.related: array expected");
|
|
63158
|
+
message.related = [];
|
|
63159
|
+
for (var i = 0; i < object.related.length; ++i) {
|
|
63160
|
+
if (typeof object.related[i] !== "object")
|
|
63161
|
+
throw TypeError(".CollectionCreated.related: object expected");
|
|
63162
|
+
message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
|
|
63163
|
+
}
|
|
63164
|
+
}
|
|
63165
|
+
return message;
|
|
63166
|
+
};
|
|
63167
|
+
|
|
63168
|
+
/**
|
|
63169
|
+
* Creates a plain object from a CollectionCreated message. Also converts values to other types if specified.
|
|
63170
|
+
* @function toObject
|
|
63171
|
+
* @memberof CollectionCreated
|
|
63172
|
+
* @static
|
|
63173
|
+
* @param {CollectionCreated} message CollectionCreated
|
|
63174
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
63175
|
+
* @returns {Object.<string,*>} Plain object
|
|
63176
|
+
*/
|
|
63177
|
+
CollectionCreated.toObject = function toObject(message, options) {
|
|
63178
|
+
if (!options)
|
|
63179
|
+
options = {};
|
|
63180
|
+
var object = {};
|
|
63181
|
+
if (options.arrays || options.defaults) {
|
|
63182
|
+
object.accessGroup = [];
|
|
63183
|
+
object.collectionContent = [];
|
|
63184
|
+
object.techniques = [];
|
|
63185
|
+
object.related = [];
|
|
63186
|
+
}
|
|
63187
|
+
if (options.objects || options.defaults) {
|
|
63188
|
+
object.name = {};
|
|
63189
|
+
object.teaser = {};
|
|
63190
|
+
object.description = {};
|
|
63191
|
+
object.tileMedia = {};
|
|
63192
|
+
object.tags = {};
|
|
63193
|
+
}
|
|
63194
|
+
if (options.defaults) {
|
|
63195
|
+
object.slug = "";
|
|
63196
|
+
object.contentType = "";
|
|
63197
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
63198
|
+
if ($util.Long) {
|
|
63199
|
+
var long = new $util.Long(0, 0, true);
|
|
63200
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
63201
|
+
} else
|
|
62848
63202
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
63203
|
+
object.enabled = false;
|
|
63204
|
+
object.isInternationalOnly = false;
|
|
62849
63205
|
}
|
|
62850
63206
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62851
63207
|
object.slug = message.slug;
|
|
@@ -62863,6 +63219,51 @@ $root.CollectionCreated = (function() {
|
|
|
62863
63219
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
62864
63220
|
else
|
|
62865
63221
|
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;
|
|
63222
|
+
var keys2;
|
|
63223
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
63224
|
+
object.name = {};
|
|
63225
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63226
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
63227
|
+
}
|
|
63228
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
63229
|
+
object.teaser = {};
|
|
63230
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63231
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
63232
|
+
}
|
|
63233
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
63234
|
+
object.description = {};
|
|
63235
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63236
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
63237
|
+
}
|
|
63238
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
63239
|
+
object.tileMedia = {};
|
|
63240
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63241
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
63242
|
+
}
|
|
63243
|
+
if (message.collectionContent && message.collectionContent.length) {
|
|
63244
|
+
object.collectionContent = [];
|
|
63245
|
+
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
63246
|
+
object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
|
|
63247
|
+
}
|
|
63248
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63249
|
+
object.enabled = message.enabled;
|
|
63250
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63251
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
63252
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
63253
|
+
object.tags = {};
|
|
63254
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63255
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
63256
|
+
}
|
|
63257
|
+
if (message.techniques && message.techniques.length) {
|
|
63258
|
+
object.techniques = [];
|
|
63259
|
+
for (var j = 0; j < message.techniques.length; ++j)
|
|
63260
|
+
object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
|
|
63261
|
+
}
|
|
63262
|
+
if (message.related && message.related.length) {
|
|
63263
|
+
object.related = [];
|
|
63264
|
+
for (var j = 0; j < message.related.length; ++j)
|
|
63265
|
+
object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
|
|
63266
|
+
}
|
|
62866
63267
|
return object;
|
|
62867
63268
|
};
|
|
62868
63269
|
|
|
@@ -62891,6 +63292,16 @@ $root.CollectionUpdated = (function() {
|
|
|
62891
63292
|
* @property {ContentCollectionType|null} [collectionType] CollectionUpdated collectionType
|
|
62892
63293
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionUpdated accessGroup
|
|
62893
63294
|
* @property {number|Long|null} [updatedAt] CollectionUpdated updatedAt
|
|
63295
|
+
* @property {Object.<string,string>|null} [name] CollectionUpdated name
|
|
63296
|
+
* @property {Object.<string,string>|null} [teaser] CollectionUpdated teaser
|
|
63297
|
+
* @property {Object.<string,string>|null} [description] CollectionUpdated description
|
|
63298
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] CollectionUpdated tileMedia
|
|
63299
|
+
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] CollectionUpdated collectionContent
|
|
63300
|
+
* @property {boolean|null} [enabled] CollectionUpdated enabled
|
|
63301
|
+
* @property {boolean|null} [isInternationalOnly] CollectionUpdated isInternationalOnly
|
|
63302
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] CollectionUpdated tags
|
|
63303
|
+
* @property {Array.<contentful.ISlugReference>|null} [techniques] CollectionUpdated techniques
|
|
63304
|
+
* @property {Array.<contentful.ISlugReference>|null} [related] CollectionUpdated related
|
|
62894
63305
|
*/
|
|
62895
63306
|
|
|
62896
63307
|
/**
|
|
@@ -62903,6 +63314,14 @@ $root.CollectionUpdated = (function() {
|
|
|
62903
63314
|
*/
|
|
62904
63315
|
function CollectionUpdated(properties) {
|
|
62905
63316
|
this.accessGroup = [];
|
|
63317
|
+
this.name = {};
|
|
63318
|
+
this.teaser = {};
|
|
63319
|
+
this.description = {};
|
|
63320
|
+
this.tileMedia = {};
|
|
63321
|
+
this.collectionContent = [];
|
|
63322
|
+
this.tags = {};
|
|
63323
|
+
this.techniques = [];
|
|
63324
|
+
this.related = [];
|
|
62906
63325
|
if (properties)
|
|
62907
63326
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62908
63327
|
if (properties[keys[i]] != null)
|
|
@@ -62949,6 +63368,86 @@ $root.CollectionUpdated = (function() {
|
|
|
62949
63368
|
*/
|
|
62950
63369
|
CollectionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62951
63370
|
|
|
63371
|
+
/**
|
|
63372
|
+
* CollectionUpdated name.
|
|
63373
|
+
* @member {Object.<string,string>} name
|
|
63374
|
+
* @memberof CollectionUpdated
|
|
63375
|
+
* @instance
|
|
63376
|
+
*/
|
|
63377
|
+
CollectionUpdated.prototype.name = $util.emptyObject;
|
|
63378
|
+
|
|
63379
|
+
/**
|
|
63380
|
+
* CollectionUpdated teaser.
|
|
63381
|
+
* @member {Object.<string,string>} teaser
|
|
63382
|
+
* @memberof CollectionUpdated
|
|
63383
|
+
* @instance
|
|
63384
|
+
*/
|
|
63385
|
+
CollectionUpdated.prototype.teaser = $util.emptyObject;
|
|
63386
|
+
|
|
63387
|
+
/**
|
|
63388
|
+
* CollectionUpdated description.
|
|
63389
|
+
* @member {Object.<string,string>} description
|
|
63390
|
+
* @memberof CollectionUpdated
|
|
63391
|
+
* @instance
|
|
63392
|
+
*/
|
|
63393
|
+
CollectionUpdated.prototype.description = $util.emptyObject;
|
|
63394
|
+
|
|
63395
|
+
/**
|
|
63396
|
+
* CollectionUpdated tileMedia.
|
|
63397
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
63398
|
+
* @memberof CollectionUpdated
|
|
63399
|
+
* @instance
|
|
63400
|
+
*/
|
|
63401
|
+
CollectionUpdated.prototype.tileMedia = $util.emptyObject;
|
|
63402
|
+
|
|
63403
|
+
/**
|
|
63404
|
+
* CollectionUpdated collectionContent.
|
|
63405
|
+
* @member {Array.<contentful.ISlugReference>} collectionContent
|
|
63406
|
+
* @memberof CollectionUpdated
|
|
63407
|
+
* @instance
|
|
63408
|
+
*/
|
|
63409
|
+
CollectionUpdated.prototype.collectionContent = $util.emptyArray;
|
|
63410
|
+
|
|
63411
|
+
/**
|
|
63412
|
+
* CollectionUpdated enabled.
|
|
63413
|
+
* @member {boolean} enabled
|
|
63414
|
+
* @memberof CollectionUpdated
|
|
63415
|
+
* @instance
|
|
63416
|
+
*/
|
|
63417
|
+
CollectionUpdated.prototype.enabled = false;
|
|
63418
|
+
|
|
63419
|
+
/**
|
|
63420
|
+
* CollectionUpdated isInternationalOnly.
|
|
63421
|
+
* @member {boolean} isInternationalOnly
|
|
63422
|
+
* @memberof CollectionUpdated
|
|
63423
|
+
* @instance
|
|
63424
|
+
*/
|
|
63425
|
+
CollectionUpdated.prototype.isInternationalOnly = false;
|
|
63426
|
+
|
|
63427
|
+
/**
|
|
63428
|
+
* CollectionUpdated tags.
|
|
63429
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
63430
|
+
* @memberof CollectionUpdated
|
|
63431
|
+
* @instance
|
|
63432
|
+
*/
|
|
63433
|
+
CollectionUpdated.prototype.tags = $util.emptyObject;
|
|
63434
|
+
|
|
63435
|
+
/**
|
|
63436
|
+
* CollectionUpdated techniques.
|
|
63437
|
+
* @member {Array.<contentful.ISlugReference>} techniques
|
|
63438
|
+
* @memberof CollectionUpdated
|
|
63439
|
+
* @instance
|
|
63440
|
+
*/
|
|
63441
|
+
CollectionUpdated.prototype.techniques = $util.emptyArray;
|
|
63442
|
+
|
|
63443
|
+
/**
|
|
63444
|
+
* CollectionUpdated related.
|
|
63445
|
+
* @member {Array.<contentful.ISlugReference>} related
|
|
63446
|
+
* @memberof CollectionUpdated
|
|
63447
|
+
* @instance
|
|
63448
|
+
*/
|
|
63449
|
+
CollectionUpdated.prototype.related = $util.emptyArray;
|
|
63450
|
+
|
|
62952
63451
|
/**
|
|
62953
63452
|
* Creates a new CollectionUpdated instance using the specified properties.
|
|
62954
63453
|
* @function create
|
|
@@ -62984,6 +63483,38 @@ $root.CollectionUpdated = (function() {
|
|
|
62984
63483
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
62985
63484
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62986
63485
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
63486
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
63487
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
63488
|
+
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();
|
|
63489
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
63490
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
63491
|
+
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();
|
|
63492
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
63493
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
63494
|
+
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();
|
|
63495
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
63496
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63497
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
63498
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
63499
|
+
}
|
|
63500
|
+
if (message.collectionContent != null && message.collectionContent.length)
|
|
63501
|
+
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
63502
|
+
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
63503
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63504
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enabled);
|
|
63505
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63506
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.isInternationalOnly);
|
|
63507
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
63508
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
63509
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
63510
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
63511
|
+
}
|
|
63512
|
+
if (message.techniques != null && message.techniques.length)
|
|
63513
|
+
for (var i = 0; i < message.techniques.length; ++i)
|
|
63514
|
+
$root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
63515
|
+
if (message.related != null && message.related.length)
|
|
63516
|
+
for (var i = 0; i < message.related.length; ++i)
|
|
63517
|
+
$root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
62987
63518
|
return writer;
|
|
62988
63519
|
};
|
|
62989
63520
|
|
|
@@ -63014,7 +63545,7 @@ $root.CollectionUpdated = (function() {
|
|
|
63014
63545
|
CollectionUpdated.decode = function decode(reader, length) {
|
|
63015
63546
|
if (!(reader instanceof $Reader))
|
|
63016
63547
|
reader = $Reader.create(reader);
|
|
63017
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated();
|
|
63548
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated(), key;
|
|
63018
63549
|
while (reader.pos < end) {
|
|
63019
63550
|
var tag = reader.uint32();
|
|
63020
63551
|
switch (tag >>> 3) {
|
|
@@ -63035,6 +63566,67 @@ $root.CollectionUpdated = (function() {
|
|
|
63035
63566
|
case 5:
|
|
63036
63567
|
message.updatedAt = reader.uint64();
|
|
63037
63568
|
break;
|
|
63569
|
+
case 6:
|
|
63570
|
+
reader.skip().pos++;
|
|
63571
|
+
if (message.name === $util.emptyObject)
|
|
63572
|
+
message.name = {};
|
|
63573
|
+
key = reader.string();
|
|
63574
|
+
reader.pos++;
|
|
63575
|
+
message.name[key] = reader.string();
|
|
63576
|
+
break;
|
|
63577
|
+
case 7:
|
|
63578
|
+
reader.skip().pos++;
|
|
63579
|
+
if (message.teaser === $util.emptyObject)
|
|
63580
|
+
message.teaser = {};
|
|
63581
|
+
key = reader.string();
|
|
63582
|
+
reader.pos++;
|
|
63583
|
+
message.teaser[key] = reader.string();
|
|
63584
|
+
break;
|
|
63585
|
+
case 8:
|
|
63586
|
+
reader.skip().pos++;
|
|
63587
|
+
if (message.description === $util.emptyObject)
|
|
63588
|
+
message.description = {};
|
|
63589
|
+
key = reader.string();
|
|
63590
|
+
reader.pos++;
|
|
63591
|
+
message.description[key] = reader.string();
|
|
63592
|
+
break;
|
|
63593
|
+
case 9:
|
|
63594
|
+
reader.skip().pos++;
|
|
63595
|
+
if (message.tileMedia === $util.emptyObject)
|
|
63596
|
+
message.tileMedia = {};
|
|
63597
|
+
key = reader.string();
|
|
63598
|
+
reader.pos++;
|
|
63599
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
63600
|
+
break;
|
|
63601
|
+
case 10:
|
|
63602
|
+
if (!(message.collectionContent && message.collectionContent.length))
|
|
63603
|
+
message.collectionContent = [];
|
|
63604
|
+
message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63605
|
+
break;
|
|
63606
|
+
case 11:
|
|
63607
|
+
message.enabled = reader.bool();
|
|
63608
|
+
break;
|
|
63609
|
+
case 12:
|
|
63610
|
+
message.isInternationalOnly = reader.bool();
|
|
63611
|
+
break;
|
|
63612
|
+
case 13:
|
|
63613
|
+
reader.skip().pos++;
|
|
63614
|
+
if (message.tags === $util.emptyObject)
|
|
63615
|
+
message.tags = {};
|
|
63616
|
+
key = reader.string();
|
|
63617
|
+
reader.pos++;
|
|
63618
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
63619
|
+
break;
|
|
63620
|
+
case 14:
|
|
63621
|
+
if (!(message.techniques && message.techniques.length))
|
|
63622
|
+
message.techniques = [];
|
|
63623
|
+
message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63624
|
+
break;
|
|
63625
|
+
case 15:
|
|
63626
|
+
if (!(message.related && message.related.length))
|
|
63627
|
+
message.related = [];
|
|
63628
|
+
message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63629
|
+
break;
|
|
63038
63630
|
default:
|
|
63039
63631
|
reader.skipType(tag & 7);
|
|
63040
63632
|
break;
|
|
@@ -63096,6 +63688,83 @@ $root.CollectionUpdated = (function() {
|
|
|
63096
63688
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
63097
63689
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
63098
63690
|
return "updatedAt: integer|Long expected";
|
|
63691
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
63692
|
+
if (!$util.isObject(message.name))
|
|
63693
|
+
return "name: object expected";
|
|
63694
|
+
var key = Object.keys(message.name);
|
|
63695
|
+
for (var i = 0; i < key.length; ++i)
|
|
63696
|
+
if (!$util.isString(message.name[key[i]]))
|
|
63697
|
+
return "name: string{k:string} expected";
|
|
63698
|
+
}
|
|
63699
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
63700
|
+
if (!$util.isObject(message.teaser))
|
|
63701
|
+
return "teaser: object expected";
|
|
63702
|
+
var key = Object.keys(message.teaser);
|
|
63703
|
+
for (var i = 0; i < key.length; ++i)
|
|
63704
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
63705
|
+
return "teaser: string{k:string} expected";
|
|
63706
|
+
}
|
|
63707
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
63708
|
+
if (!$util.isObject(message.description))
|
|
63709
|
+
return "description: object expected";
|
|
63710
|
+
var key = Object.keys(message.description);
|
|
63711
|
+
for (var i = 0; i < key.length; ++i)
|
|
63712
|
+
if (!$util.isString(message.description[key[i]]))
|
|
63713
|
+
return "description: string{k:string} expected";
|
|
63714
|
+
}
|
|
63715
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
63716
|
+
if (!$util.isObject(message.tileMedia))
|
|
63717
|
+
return "tileMedia: object expected";
|
|
63718
|
+
var key = Object.keys(message.tileMedia);
|
|
63719
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63720
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
63721
|
+
if (error)
|
|
63722
|
+
return "tileMedia." + error;
|
|
63723
|
+
}
|
|
63724
|
+
}
|
|
63725
|
+
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
63726
|
+
if (!Array.isArray(message.collectionContent))
|
|
63727
|
+
return "collectionContent: array expected";
|
|
63728
|
+
for (var i = 0; i < message.collectionContent.length; ++i) {
|
|
63729
|
+
var error = $root.contentful.SlugReference.verify(message.collectionContent[i]);
|
|
63730
|
+
if (error)
|
|
63731
|
+
return "collectionContent." + error;
|
|
63732
|
+
}
|
|
63733
|
+
}
|
|
63734
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63735
|
+
if (typeof message.enabled !== "boolean")
|
|
63736
|
+
return "enabled: boolean expected";
|
|
63737
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63738
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
63739
|
+
return "isInternationalOnly: boolean expected";
|
|
63740
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
63741
|
+
if (!$util.isObject(message.tags))
|
|
63742
|
+
return "tags: object expected";
|
|
63743
|
+
var key = Object.keys(message.tags);
|
|
63744
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63745
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
63746
|
+
if (error)
|
|
63747
|
+
return "tags." + error;
|
|
63748
|
+
}
|
|
63749
|
+
}
|
|
63750
|
+
if (message.techniques != null && message.hasOwnProperty("techniques")) {
|
|
63751
|
+
if (!Array.isArray(message.techniques))
|
|
63752
|
+
return "techniques: array expected";
|
|
63753
|
+
for (var i = 0; i < message.techniques.length; ++i) {
|
|
63754
|
+
var error = $root.contentful.SlugReference.verify(message.techniques[i]);
|
|
63755
|
+
if (error)
|
|
63756
|
+
return "techniques." + error;
|
|
63757
|
+
}
|
|
63758
|
+
}
|
|
63759
|
+
if (message.related != null && message.hasOwnProperty("related")) {
|
|
63760
|
+
if (!Array.isArray(message.related))
|
|
63761
|
+
return "related: array expected";
|
|
63762
|
+
for (var i = 0; i < message.related.length; ++i) {
|
|
63763
|
+
var error = $root.contentful.SlugReference.verify(message.related[i]);
|
|
63764
|
+
if (error)
|
|
63765
|
+
return "related." + error;
|
|
63766
|
+
}
|
|
63767
|
+
}
|
|
63099
63768
|
return null;
|
|
63100
63769
|
};
|
|
63101
63770
|
|
|
@@ -63144,6 +63813,81 @@ $root.CollectionUpdated = (function() {
|
|
|
63144
63813
|
message.updatedAt = object.updatedAt;
|
|
63145
63814
|
else if (typeof object.updatedAt === "object")
|
|
63146
63815
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
63816
|
+
if (object.name) {
|
|
63817
|
+
if (typeof object.name !== "object")
|
|
63818
|
+
throw TypeError(".CollectionUpdated.name: object expected");
|
|
63819
|
+
message.name = {};
|
|
63820
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
63821
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
63822
|
+
}
|
|
63823
|
+
if (object.teaser) {
|
|
63824
|
+
if (typeof object.teaser !== "object")
|
|
63825
|
+
throw TypeError(".CollectionUpdated.teaser: object expected");
|
|
63826
|
+
message.teaser = {};
|
|
63827
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
63828
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
63829
|
+
}
|
|
63830
|
+
if (object.description) {
|
|
63831
|
+
if (typeof object.description !== "object")
|
|
63832
|
+
throw TypeError(".CollectionUpdated.description: object expected");
|
|
63833
|
+
message.description = {};
|
|
63834
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
63835
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
63836
|
+
}
|
|
63837
|
+
if (object.tileMedia) {
|
|
63838
|
+
if (typeof object.tileMedia !== "object")
|
|
63839
|
+
throw TypeError(".CollectionUpdated.tileMedia: object expected");
|
|
63840
|
+
message.tileMedia = {};
|
|
63841
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63842
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
63843
|
+
throw TypeError(".CollectionUpdated.tileMedia: object expected");
|
|
63844
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
63845
|
+
}
|
|
63846
|
+
}
|
|
63847
|
+
if (object.collectionContent) {
|
|
63848
|
+
if (!Array.isArray(object.collectionContent))
|
|
63849
|
+
throw TypeError(".CollectionUpdated.collectionContent: array expected");
|
|
63850
|
+
message.collectionContent = [];
|
|
63851
|
+
for (var i = 0; i < object.collectionContent.length; ++i) {
|
|
63852
|
+
if (typeof object.collectionContent[i] !== "object")
|
|
63853
|
+
throw TypeError(".CollectionUpdated.collectionContent: object expected");
|
|
63854
|
+
message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
|
|
63855
|
+
}
|
|
63856
|
+
}
|
|
63857
|
+
if (object.enabled != null)
|
|
63858
|
+
message.enabled = Boolean(object.enabled);
|
|
63859
|
+
if (object.isInternationalOnly != null)
|
|
63860
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
63861
|
+
if (object.tags) {
|
|
63862
|
+
if (typeof object.tags !== "object")
|
|
63863
|
+
throw TypeError(".CollectionUpdated.tags: object expected");
|
|
63864
|
+
message.tags = {};
|
|
63865
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
63866
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
63867
|
+
throw TypeError(".CollectionUpdated.tags: object expected");
|
|
63868
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
63869
|
+
}
|
|
63870
|
+
}
|
|
63871
|
+
if (object.techniques) {
|
|
63872
|
+
if (!Array.isArray(object.techniques))
|
|
63873
|
+
throw TypeError(".CollectionUpdated.techniques: array expected");
|
|
63874
|
+
message.techniques = [];
|
|
63875
|
+
for (var i = 0; i < object.techniques.length; ++i) {
|
|
63876
|
+
if (typeof object.techniques[i] !== "object")
|
|
63877
|
+
throw TypeError(".CollectionUpdated.techniques: object expected");
|
|
63878
|
+
message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
|
|
63879
|
+
}
|
|
63880
|
+
}
|
|
63881
|
+
if (object.related) {
|
|
63882
|
+
if (!Array.isArray(object.related))
|
|
63883
|
+
throw TypeError(".CollectionUpdated.related: array expected");
|
|
63884
|
+
message.related = [];
|
|
63885
|
+
for (var i = 0; i < object.related.length; ++i) {
|
|
63886
|
+
if (typeof object.related[i] !== "object")
|
|
63887
|
+
throw TypeError(".CollectionUpdated.related: object expected");
|
|
63888
|
+
message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
|
|
63889
|
+
}
|
|
63890
|
+
}
|
|
63147
63891
|
return message;
|
|
63148
63892
|
};
|
|
63149
63893
|
|
|
@@ -63160,8 +63904,19 @@ $root.CollectionUpdated = (function() {
|
|
|
63160
63904
|
if (!options)
|
|
63161
63905
|
options = {};
|
|
63162
63906
|
var object = {};
|
|
63163
|
-
if (options.arrays || options.defaults)
|
|
63907
|
+
if (options.arrays || options.defaults) {
|
|
63164
63908
|
object.accessGroup = [];
|
|
63909
|
+
object.collectionContent = [];
|
|
63910
|
+
object.techniques = [];
|
|
63911
|
+
object.related = [];
|
|
63912
|
+
}
|
|
63913
|
+
if (options.objects || options.defaults) {
|
|
63914
|
+
object.name = {};
|
|
63915
|
+
object.teaser = {};
|
|
63916
|
+
object.description = {};
|
|
63917
|
+
object.tileMedia = {};
|
|
63918
|
+
object.tags = {};
|
|
63919
|
+
}
|
|
63165
63920
|
if (options.defaults) {
|
|
63166
63921
|
object.slug = "";
|
|
63167
63922
|
object.contentType = "";
|
|
@@ -63171,6 +63926,8 @@ $root.CollectionUpdated = (function() {
|
|
|
63171
63926
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
63172
63927
|
} else
|
|
63173
63928
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
63929
|
+
object.enabled = false;
|
|
63930
|
+
object.isInternationalOnly = false;
|
|
63174
63931
|
}
|
|
63175
63932
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
63176
63933
|
object.slug = message.slug;
|
|
@@ -63188,6 +63945,51 @@ $root.CollectionUpdated = (function() {
|
|
|
63188
63945
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
63189
63946
|
else
|
|
63190
63947
|
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;
|
|
63948
|
+
var keys2;
|
|
63949
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
63950
|
+
object.name = {};
|
|
63951
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63952
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
63953
|
+
}
|
|
63954
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
63955
|
+
object.teaser = {};
|
|
63956
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63957
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
63958
|
+
}
|
|
63959
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
63960
|
+
object.description = {};
|
|
63961
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63962
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
63963
|
+
}
|
|
63964
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
63965
|
+
object.tileMedia = {};
|
|
63966
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63967
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
63968
|
+
}
|
|
63969
|
+
if (message.collectionContent && message.collectionContent.length) {
|
|
63970
|
+
object.collectionContent = [];
|
|
63971
|
+
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
63972
|
+
object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
|
|
63973
|
+
}
|
|
63974
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63975
|
+
object.enabled = message.enabled;
|
|
63976
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63977
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
63978
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
63979
|
+
object.tags = {};
|
|
63980
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63981
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
63982
|
+
}
|
|
63983
|
+
if (message.techniques && message.techniques.length) {
|
|
63984
|
+
object.techniques = [];
|
|
63985
|
+
for (var j = 0; j < message.techniques.length; ++j)
|
|
63986
|
+
object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
|
|
63987
|
+
}
|
|
63988
|
+
if (message.related && message.related.length) {
|
|
63989
|
+
object.related = [];
|
|
63990
|
+
for (var j = 0; j < message.related.length; ++j)
|
|
63991
|
+
object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
|
|
63992
|
+
}
|
|
63191
63993
|
return object;
|
|
63192
63994
|
};
|
|
63193
63995
|
|
package/package.json
CHANGED