@headspace/protos-events 1.286.0 → 1.288.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 +10 -9
- package/lib/index.js +102 -36
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -14257,7 +14257,8 @@ export class ContentfulCategoryDeleted implements IContentfulCategoryDeleted {
|
|
|
14257
14257
|
|
|
14258
14258
|
/** ContentCollectionType enum. */
|
|
14259
14259
|
export enum ContentCollectionType {
|
|
14260
|
-
|
|
14260
|
+
CONTENT_COLLECTION_TYPE_UNRECOGNIZED = 0,
|
|
14261
|
+
CONTENT_COLLECTION_TYPE_GENERIC = 1
|
|
14261
14262
|
}
|
|
14262
14263
|
|
|
14263
14264
|
/** Properties of a ContentfulCollectionCreated. */
|
|
@@ -14281,8 +14282,8 @@ export interface IContentfulCollectionCreated {
|
|
|
14281
14282
|
/** ContentfulCollectionCreated collectionType */
|
|
14282
14283
|
collectionType?: (ContentCollectionType|null);
|
|
14283
14284
|
|
|
14284
|
-
/** ContentfulCollectionCreated
|
|
14285
|
-
|
|
14285
|
+
/** ContentfulCollectionCreated tileMedia */
|
|
14286
|
+
tileMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
14286
14287
|
|
|
14287
14288
|
/** ContentfulCollectionCreated collectionContent */
|
|
14288
14289
|
collectionContent?: (contentful.ISlugReference[]|null);
|
|
@@ -14315,8 +14316,8 @@ export class ContentfulCollectionCreated implements IContentfulCollectionCreated
|
|
|
14315
14316
|
/** ContentfulCollectionCreated collectionType. */
|
|
14316
14317
|
public collectionType: ContentCollectionType;
|
|
14317
14318
|
|
|
14318
|
-
/** ContentfulCollectionCreated
|
|
14319
|
-
public
|
|
14319
|
+
/** ContentfulCollectionCreated tileMedia. */
|
|
14320
|
+
public tileMedia: { [k: string]: contentful.IIdReference };
|
|
14320
14321
|
|
|
14321
14322
|
/** ContentfulCollectionCreated collectionContent. */
|
|
14322
14323
|
public collectionContent: contentful.ISlugReference[];
|
|
@@ -14413,8 +14414,8 @@ export interface IContentfulCollectionUpdated {
|
|
|
14413
14414
|
/** ContentfulCollectionUpdated collectionType */
|
|
14414
14415
|
collectionType?: (ContentCollectionType|null);
|
|
14415
14416
|
|
|
14416
|
-
/** ContentfulCollectionUpdated
|
|
14417
|
-
|
|
14417
|
+
/** ContentfulCollectionUpdated tileMedia */
|
|
14418
|
+
tileMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
14418
14419
|
|
|
14419
14420
|
/** ContentfulCollectionUpdated collectionContent */
|
|
14420
14421
|
collectionContent?: (contentful.ISlugReference[]|null);
|
|
@@ -14447,8 +14448,8 @@ export class ContentfulCollectionUpdated implements IContentfulCollectionUpdated
|
|
|
14447
14448
|
/** ContentfulCollectionUpdated collectionType. */
|
|
14448
14449
|
public collectionType: ContentCollectionType;
|
|
14449
14450
|
|
|
14450
|
-
/** ContentfulCollectionUpdated
|
|
14451
|
-
public
|
|
14451
|
+
/** ContentfulCollectionUpdated tileMedia. */
|
|
14452
|
+
public tileMedia: { [k: string]: contentful.IIdReference };
|
|
14452
14453
|
|
|
14453
14454
|
/** ContentfulCollectionUpdated collectionContent. */
|
|
14454
14455
|
public collectionContent: contentful.ISlugReference[];
|
package/lib/index.js
CHANGED
|
@@ -36331,11 +36331,13 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
36331
36331
|
* ContentCollectionType enum.
|
|
36332
36332
|
* @exports ContentCollectionType
|
|
36333
36333
|
* @enum {string}
|
|
36334
|
-
* @property {number}
|
|
36334
|
+
* @property {number} CONTENT_COLLECTION_TYPE_UNRECOGNIZED=0 CONTENT_COLLECTION_TYPE_UNRECOGNIZED value
|
|
36335
|
+
* @property {number} CONTENT_COLLECTION_TYPE_GENERIC=1 CONTENT_COLLECTION_TYPE_GENERIC value
|
|
36335
36336
|
*/
|
|
36336
36337
|
$root.ContentCollectionType = (function() {
|
|
36337
36338
|
var valuesById = {}, values = Object.create(valuesById);
|
|
36338
|
-
values[valuesById[0] = "
|
|
36339
|
+
values[valuesById[0] = "CONTENT_COLLECTION_TYPE_UNRECOGNIZED"] = 0;
|
|
36340
|
+
values[valuesById[1] = "CONTENT_COLLECTION_TYPE_GENERIC"] = 1;
|
|
36339
36341
|
return values;
|
|
36340
36342
|
})();
|
|
36341
36343
|
|
|
@@ -36351,7 +36353,7 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36351
36353
|
* @property {Object.<string,string>|null} [description] ContentfulCollectionCreated description
|
|
36352
36354
|
* @property {number|Long|null} [createdAt] ContentfulCollectionCreated createdAt
|
|
36353
36355
|
* @property {ContentCollectionType|null} [collectionType] ContentfulCollectionCreated collectionType
|
|
36354
|
-
* @property {
|
|
36356
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulCollectionCreated tileMedia
|
|
36355
36357
|
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionCreated collectionContent
|
|
36356
36358
|
*/
|
|
36357
36359
|
|
|
@@ -36367,6 +36369,7 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36367
36369
|
this.name = {};
|
|
36368
36370
|
this.teaser = {};
|
|
36369
36371
|
this.description = {};
|
|
36372
|
+
this.tileMedia = {};
|
|
36370
36373
|
this.collectionContent = [];
|
|
36371
36374
|
if (properties)
|
|
36372
36375
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -36423,12 +36426,12 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36423
36426
|
ContentfulCollectionCreated.prototype.collectionType = 0;
|
|
36424
36427
|
|
|
36425
36428
|
/**
|
|
36426
|
-
* ContentfulCollectionCreated
|
|
36427
|
-
* @member {
|
|
36429
|
+
* ContentfulCollectionCreated tileMedia.
|
|
36430
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
36428
36431
|
* @memberof ContentfulCollectionCreated
|
|
36429
36432
|
* @instance
|
|
36430
36433
|
*/
|
|
36431
|
-
ContentfulCollectionCreated.prototype.
|
|
36434
|
+
ContentfulCollectionCreated.prototype.tileMedia = $util.emptyObject;
|
|
36432
36435
|
|
|
36433
36436
|
/**
|
|
36434
36437
|
* ContentfulCollectionCreated collectionContent.
|
|
@@ -36477,8 +36480,11 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36477
36480
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
36478
36481
|
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
36479
36482
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.collectionType);
|
|
36480
|
-
if (message.
|
|
36481
|
-
|
|
36483
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
36484
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
36485
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
36486
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
36487
|
+
}
|
|
36482
36488
|
if (message.collectionContent != null && message.collectionContent.length)
|
|
36483
36489
|
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
36484
36490
|
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
@@ -36550,7 +36556,12 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36550
36556
|
message.collectionType = reader.int32();
|
|
36551
36557
|
break;
|
|
36552
36558
|
case 7:
|
|
36553
|
-
|
|
36559
|
+
reader.skip().pos++;
|
|
36560
|
+
if (message.tileMedia === $util.emptyObject)
|
|
36561
|
+
message.tileMedia = {};
|
|
36562
|
+
key = reader.string();
|
|
36563
|
+
reader.pos++;
|
|
36564
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
36554
36565
|
break;
|
|
36555
36566
|
case 8:
|
|
36556
36567
|
if (!(message.collectionContent && message.collectionContent.length))
|
|
@@ -36627,11 +36638,19 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36627
36638
|
default:
|
|
36628
36639
|
return "collectionType: enum value expected";
|
|
36629
36640
|
case 0:
|
|
36641
|
+
case 1:
|
|
36630
36642
|
break;
|
|
36631
36643
|
}
|
|
36632
|
-
if (message.
|
|
36633
|
-
if (!$util.
|
|
36634
|
-
return "
|
|
36644
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
36645
|
+
if (!$util.isObject(message.tileMedia))
|
|
36646
|
+
return "tileMedia: object expected";
|
|
36647
|
+
var key = Object.keys(message.tileMedia);
|
|
36648
|
+
for (var i = 0; i < key.length; ++i) {
|
|
36649
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
36650
|
+
if (error)
|
|
36651
|
+
return "tileMedia." + error;
|
|
36652
|
+
}
|
|
36653
|
+
}
|
|
36635
36654
|
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
36636
36655
|
if (!Array.isArray(message.collectionContent))
|
|
36637
36656
|
return "collectionContent: array expected";
|
|
@@ -36689,13 +36708,25 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36689
36708
|
else if (typeof object.createdAt === "object")
|
|
36690
36709
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
36691
36710
|
switch (object.collectionType) {
|
|
36692
|
-
case "
|
|
36711
|
+
case "CONTENT_COLLECTION_TYPE_UNRECOGNIZED":
|
|
36693
36712
|
case 0:
|
|
36694
36713
|
message.collectionType = 0;
|
|
36695
36714
|
break;
|
|
36715
|
+
case "CONTENT_COLLECTION_TYPE_GENERIC":
|
|
36716
|
+
case 1:
|
|
36717
|
+
message.collectionType = 1;
|
|
36718
|
+
break;
|
|
36719
|
+
}
|
|
36720
|
+
if (object.tileMedia) {
|
|
36721
|
+
if (typeof object.tileMedia !== "object")
|
|
36722
|
+
throw TypeError(".ContentfulCollectionCreated.tileMedia: object expected");
|
|
36723
|
+
message.tileMedia = {};
|
|
36724
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
36725
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
36726
|
+
throw TypeError(".ContentfulCollectionCreated.tileMedia: object expected");
|
|
36727
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
36728
|
+
}
|
|
36696
36729
|
}
|
|
36697
|
-
if (object.tileMediaId != null)
|
|
36698
|
-
message.tileMediaId = object.tileMediaId >>> 0;
|
|
36699
36730
|
if (object.collectionContent) {
|
|
36700
36731
|
if (!Array.isArray(object.collectionContent))
|
|
36701
36732
|
throw TypeError(".ContentfulCollectionCreated.collectionContent: array expected");
|
|
@@ -36728,6 +36759,7 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36728
36759
|
object.name = {};
|
|
36729
36760
|
object.teaser = {};
|
|
36730
36761
|
object.description = {};
|
|
36762
|
+
object.tileMedia = {};
|
|
36731
36763
|
}
|
|
36732
36764
|
if (options.defaults) {
|
|
36733
36765
|
object.slug = "";
|
|
@@ -36736,8 +36768,7 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36736
36768
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
36737
36769
|
} else
|
|
36738
36770
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
36739
|
-
object.collectionType = options.enums === String ? "
|
|
36740
|
-
object.tileMediaId = 0;
|
|
36771
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
36741
36772
|
}
|
|
36742
36773
|
var keys2;
|
|
36743
36774
|
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
@@ -36764,8 +36795,11 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36764
36795
|
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;
|
|
36765
36796
|
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
36766
36797
|
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
36767
|
-
if (message.
|
|
36768
|
-
object.
|
|
36798
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
36799
|
+
object.tileMedia = {};
|
|
36800
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
36801
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
36802
|
+
}
|
|
36769
36803
|
if (message.collectionContent && message.collectionContent.length) {
|
|
36770
36804
|
object.collectionContent = [];
|
|
36771
36805
|
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
@@ -36800,7 +36834,7 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36800
36834
|
* @property {Object.<string,string>|null} [description] ContentfulCollectionUpdated description
|
|
36801
36835
|
* @property {number|Long|null} [updatedAt] ContentfulCollectionUpdated updatedAt
|
|
36802
36836
|
* @property {ContentCollectionType|null} [collectionType] ContentfulCollectionUpdated collectionType
|
|
36803
|
-
* @property {
|
|
36837
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulCollectionUpdated tileMedia
|
|
36804
36838
|
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionUpdated collectionContent
|
|
36805
36839
|
*/
|
|
36806
36840
|
|
|
@@ -36816,6 +36850,7 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36816
36850
|
this.name = {};
|
|
36817
36851
|
this.teaser = {};
|
|
36818
36852
|
this.description = {};
|
|
36853
|
+
this.tileMedia = {};
|
|
36819
36854
|
this.collectionContent = [];
|
|
36820
36855
|
if (properties)
|
|
36821
36856
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -36872,12 +36907,12 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36872
36907
|
ContentfulCollectionUpdated.prototype.collectionType = 0;
|
|
36873
36908
|
|
|
36874
36909
|
/**
|
|
36875
|
-
* ContentfulCollectionUpdated
|
|
36876
|
-
* @member {
|
|
36910
|
+
* ContentfulCollectionUpdated tileMedia.
|
|
36911
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
36877
36912
|
* @memberof ContentfulCollectionUpdated
|
|
36878
36913
|
* @instance
|
|
36879
36914
|
*/
|
|
36880
|
-
ContentfulCollectionUpdated.prototype.
|
|
36915
|
+
ContentfulCollectionUpdated.prototype.tileMedia = $util.emptyObject;
|
|
36881
36916
|
|
|
36882
36917
|
/**
|
|
36883
36918
|
* ContentfulCollectionUpdated collectionContent.
|
|
@@ -36926,8 +36961,11 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36926
36961
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
36927
36962
|
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
36928
36963
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.collectionType);
|
|
36929
|
-
if (message.
|
|
36930
|
-
|
|
36964
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
36965
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
36966
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
36967
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
36968
|
+
}
|
|
36931
36969
|
if (message.collectionContent != null && message.collectionContent.length)
|
|
36932
36970
|
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
36933
36971
|
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
@@ -36999,7 +37037,12 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36999
37037
|
message.collectionType = reader.int32();
|
|
37000
37038
|
break;
|
|
37001
37039
|
case 7:
|
|
37002
|
-
|
|
37040
|
+
reader.skip().pos++;
|
|
37041
|
+
if (message.tileMedia === $util.emptyObject)
|
|
37042
|
+
message.tileMedia = {};
|
|
37043
|
+
key = reader.string();
|
|
37044
|
+
reader.pos++;
|
|
37045
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
37003
37046
|
break;
|
|
37004
37047
|
case 8:
|
|
37005
37048
|
if (!(message.collectionContent && message.collectionContent.length))
|
|
@@ -37076,11 +37119,19 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37076
37119
|
default:
|
|
37077
37120
|
return "collectionType: enum value expected";
|
|
37078
37121
|
case 0:
|
|
37122
|
+
case 1:
|
|
37079
37123
|
break;
|
|
37080
37124
|
}
|
|
37081
|
-
if (message.
|
|
37082
|
-
if (!$util.
|
|
37083
|
-
return "
|
|
37125
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
37126
|
+
if (!$util.isObject(message.tileMedia))
|
|
37127
|
+
return "tileMedia: object expected";
|
|
37128
|
+
var key = Object.keys(message.tileMedia);
|
|
37129
|
+
for (var i = 0; i < key.length; ++i) {
|
|
37130
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
37131
|
+
if (error)
|
|
37132
|
+
return "tileMedia." + error;
|
|
37133
|
+
}
|
|
37134
|
+
}
|
|
37084
37135
|
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
37085
37136
|
if (!Array.isArray(message.collectionContent))
|
|
37086
37137
|
return "collectionContent: array expected";
|
|
@@ -37138,13 +37189,25 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37138
37189
|
else if (typeof object.updatedAt === "object")
|
|
37139
37190
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
37140
37191
|
switch (object.collectionType) {
|
|
37141
|
-
case "
|
|
37192
|
+
case "CONTENT_COLLECTION_TYPE_UNRECOGNIZED":
|
|
37142
37193
|
case 0:
|
|
37143
37194
|
message.collectionType = 0;
|
|
37144
37195
|
break;
|
|
37196
|
+
case "CONTENT_COLLECTION_TYPE_GENERIC":
|
|
37197
|
+
case 1:
|
|
37198
|
+
message.collectionType = 1;
|
|
37199
|
+
break;
|
|
37200
|
+
}
|
|
37201
|
+
if (object.tileMedia) {
|
|
37202
|
+
if (typeof object.tileMedia !== "object")
|
|
37203
|
+
throw TypeError(".ContentfulCollectionUpdated.tileMedia: object expected");
|
|
37204
|
+
message.tileMedia = {};
|
|
37205
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
37206
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
37207
|
+
throw TypeError(".ContentfulCollectionUpdated.tileMedia: object expected");
|
|
37208
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
37209
|
+
}
|
|
37145
37210
|
}
|
|
37146
|
-
if (object.tileMediaId != null)
|
|
37147
|
-
message.tileMediaId = object.tileMediaId >>> 0;
|
|
37148
37211
|
if (object.collectionContent) {
|
|
37149
37212
|
if (!Array.isArray(object.collectionContent))
|
|
37150
37213
|
throw TypeError(".ContentfulCollectionUpdated.collectionContent: array expected");
|
|
@@ -37177,6 +37240,7 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37177
37240
|
object.name = {};
|
|
37178
37241
|
object.teaser = {};
|
|
37179
37242
|
object.description = {};
|
|
37243
|
+
object.tileMedia = {};
|
|
37180
37244
|
}
|
|
37181
37245
|
if (options.defaults) {
|
|
37182
37246
|
object.slug = "";
|
|
@@ -37185,8 +37249,7 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37185
37249
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
37186
37250
|
} else
|
|
37187
37251
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
37188
|
-
object.collectionType = options.enums === String ? "
|
|
37189
|
-
object.tileMediaId = 0;
|
|
37252
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
37190
37253
|
}
|
|
37191
37254
|
var keys2;
|
|
37192
37255
|
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
@@ -37213,8 +37276,11 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37213
37276
|
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;
|
|
37214
37277
|
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
37215
37278
|
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
37216
|
-
if (message.
|
|
37217
|
-
object.
|
|
37279
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
37280
|
+
object.tileMedia = {};
|
|
37281
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
37282
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
37283
|
+
}
|
|
37218
37284
|
if (message.collectionContent && message.collectionContent.length) {
|
|
37219
37285
|
object.collectionContent = [];
|
|
37220
37286
|
for (var j = 0; j < message.collectionContent.length; ++j)
|
package/package.json
CHANGED