@headspace/protos-events 1.287.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 +8 -8
- package/lib/index.js +84 -30
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -14282,8 +14282,8 @@ export interface IContentfulCollectionCreated {
|
|
|
14282
14282
|
/** ContentfulCollectionCreated collectionType */
|
|
14283
14283
|
collectionType?: (ContentCollectionType|null);
|
|
14284
14284
|
|
|
14285
|
-
/** ContentfulCollectionCreated
|
|
14286
|
-
|
|
14285
|
+
/** ContentfulCollectionCreated tileMedia */
|
|
14286
|
+
tileMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
14287
14287
|
|
|
14288
14288
|
/** ContentfulCollectionCreated collectionContent */
|
|
14289
14289
|
collectionContent?: (contentful.ISlugReference[]|null);
|
|
@@ -14316,8 +14316,8 @@ export class ContentfulCollectionCreated implements IContentfulCollectionCreated
|
|
|
14316
14316
|
/** ContentfulCollectionCreated collectionType. */
|
|
14317
14317
|
public collectionType: ContentCollectionType;
|
|
14318
14318
|
|
|
14319
|
-
/** ContentfulCollectionCreated
|
|
14320
|
-
public
|
|
14319
|
+
/** ContentfulCollectionCreated tileMedia. */
|
|
14320
|
+
public tileMedia: { [k: string]: contentful.IIdReference };
|
|
14321
14321
|
|
|
14322
14322
|
/** ContentfulCollectionCreated collectionContent. */
|
|
14323
14323
|
public collectionContent: contentful.ISlugReference[];
|
|
@@ -14414,8 +14414,8 @@ export interface IContentfulCollectionUpdated {
|
|
|
14414
14414
|
/** ContentfulCollectionUpdated collectionType */
|
|
14415
14415
|
collectionType?: (ContentCollectionType|null);
|
|
14416
14416
|
|
|
14417
|
-
/** ContentfulCollectionUpdated
|
|
14418
|
-
|
|
14417
|
+
/** ContentfulCollectionUpdated tileMedia */
|
|
14418
|
+
tileMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
14419
14419
|
|
|
14420
14420
|
/** ContentfulCollectionUpdated collectionContent */
|
|
14421
14421
|
collectionContent?: (contentful.ISlugReference[]|null);
|
|
@@ -14448,8 +14448,8 @@ export class ContentfulCollectionUpdated implements IContentfulCollectionUpdated
|
|
|
14448
14448
|
/** ContentfulCollectionUpdated collectionType. */
|
|
14449
14449
|
public collectionType: ContentCollectionType;
|
|
14450
14450
|
|
|
14451
|
-
/** ContentfulCollectionUpdated
|
|
14452
|
-
public
|
|
14451
|
+
/** ContentfulCollectionUpdated tileMedia. */
|
|
14452
|
+
public tileMedia: { [k: string]: contentful.IIdReference };
|
|
14453
14453
|
|
|
14454
14454
|
/** ContentfulCollectionUpdated collectionContent. */
|
|
14455
14455
|
public collectionContent: contentful.ISlugReference[];
|
package/lib/index.js
CHANGED
|
@@ -36353,7 +36353,7 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36353
36353
|
* @property {Object.<string,string>|null} [description] ContentfulCollectionCreated description
|
|
36354
36354
|
* @property {number|Long|null} [createdAt] ContentfulCollectionCreated createdAt
|
|
36355
36355
|
* @property {ContentCollectionType|null} [collectionType] ContentfulCollectionCreated collectionType
|
|
36356
|
-
* @property {
|
|
36356
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulCollectionCreated tileMedia
|
|
36357
36357
|
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionCreated collectionContent
|
|
36358
36358
|
*/
|
|
36359
36359
|
|
|
@@ -36369,6 +36369,7 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36369
36369
|
this.name = {};
|
|
36370
36370
|
this.teaser = {};
|
|
36371
36371
|
this.description = {};
|
|
36372
|
+
this.tileMedia = {};
|
|
36372
36373
|
this.collectionContent = [];
|
|
36373
36374
|
if (properties)
|
|
36374
36375
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -36425,12 +36426,12 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36425
36426
|
ContentfulCollectionCreated.prototype.collectionType = 0;
|
|
36426
36427
|
|
|
36427
36428
|
/**
|
|
36428
|
-
* ContentfulCollectionCreated
|
|
36429
|
-
* @member {
|
|
36429
|
+
* ContentfulCollectionCreated tileMedia.
|
|
36430
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
36430
36431
|
* @memberof ContentfulCollectionCreated
|
|
36431
36432
|
* @instance
|
|
36432
36433
|
*/
|
|
36433
|
-
ContentfulCollectionCreated.prototype.
|
|
36434
|
+
ContentfulCollectionCreated.prototype.tileMedia = $util.emptyObject;
|
|
36434
36435
|
|
|
36435
36436
|
/**
|
|
36436
36437
|
* ContentfulCollectionCreated collectionContent.
|
|
@@ -36479,8 +36480,11 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36479
36480
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
36480
36481
|
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
36481
36482
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.collectionType);
|
|
36482
|
-
if (message.
|
|
36483
|
-
|
|
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
|
+
}
|
|
36484
36488
|
if (message.collectionContent != null && message.collectionContent.length)
|
|
36485
36489
|
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
36486
36490
|
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
@@ -36552,7 +36556,12 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36552
36556
|
message.collectionType = reader.int32();
|
|
36553
36557
|
break;
|
|
36554
36558
|
case 7:
|
|
36555
|
-
|
|
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());
|
|
36556
36565
|
break;
|
|
36557
36566
|
case 8:
|
|
36558
36567
|
if (!(message.collectionContent && message.collectionContent.length))
|
|
@@ -36632,9 +36641,16 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36632
36641
|
case 1:
|
|
36633
36642
|
break;
|
|
36634
36643
|
}
|
|
36635
|
-
if (message.
|
|
36636
|
-
if (!$util.
|
|
36637
|
-
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
|
+
}
|
|
36638
36654
|
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
36639
36655
|
if (!Array.isArray(message.collectionContent))
|
|
36640
36656
|
return "collectionContent: array expected";
|
|
@@ -36701,8 +36717,16 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36701
36717
|
message.collectionType = 1;
|
|
36702
36718
|
break;
|
|
36703
36719
|
}
|
|
36704
|
-
if (object.
|
|
36705
|
-
|
|
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
|
+
}
|
|
36729
|
+
}
|
|
36706
36730
|
if (object.collectionContent) {
|
|
36707
36731
|
if (!Array.isArray(object.collectionContent))
|
|
36708
36732
|
throw TypeError(".ContentfulCollectionCreated.collectionContent: array expected");
|
|
@@ -36735,6 +36759,7 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36735
36759
|
object.name = {};
|
|
36736
36760
|
object.teaser = {};
|
|
36737
36761
|
object.description = {};
|
|
36762
|
+
object.tileMedia = {};
|
|
36738
36763
|
}
|
|
36739
36764
|
if (options.defaults) {
|
|
36740
36765
|
object.slug = "";
|
|
@@ -36744,7 +36769,6 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36744
36769
|
} else
|
|
36745
36770
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
36746
36771
|
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
36747
|
-
object.tileMediaId = 0;
|
|
36748
36772
|
}
|
|
36749
36773
|
var keys2;
|
|
36750
36774
|
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
@@ -36771,8 +36795,11 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36771
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;
|
|
36772
36796
|
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
36773
36797
|
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
36774
|
-
if (message.
|
|
36775
|
-
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
|
+
}
|
|
36776
36803
|
if (message.collectionContent && message.collectionContent.length) {
|
|
36777
36804
|
object.collectionContent = [];
|
|
36778
36805
|
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
@@ -36807,7 +36834,7 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36807
36834
|
* @property {Object.<string,string>|null} [description] ContentfulCollectionUpdated description
|
|
36808
36835
|
* @property {number|Long|null} [updatedAt] ContentfulCollectionUpdated updatedAt
|
|
36809
36836
|
* @property {ContentCollectionType|null} [collectionType] ContentfulCollectionUpdated collectionType
|
|
36810
|
-
* @property {
|
|
36837
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulCollectionUpdated tileMedia
|
|
36811
36838
|
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionUpdated collectionContent
|
|
36812
36839
|
*/
|
|
36813
36840
|
|
|
@@ -36823,6 +36850,7 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36823
36850
|
this.name = {};
|
|
36824
36851
|
this.teaser = {};
|
|
36825
36852
|
this.description = {};
|
|
36853
|
+
this.tileMedia = {};
|
|
36826
36854
|
this.collectionContent = [];
|
|
36827
36855
|
if (properties)
|
|
36828
36856
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -36879,12 +36907,12 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36879
36907
|
ContentfulCollectionUpdated.prototype.collectionType = 0;
|
|
36880
36908
|
|
|
36881
36909
|
/**
|
|
36882
|
-
* ContentfulCollectionUpdated
|
|
36883
|
-
* @member {
|
|
36910
|
+
* ContentfulCollectionUpdated tileMedia.
|
|
36911
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
36884
36912
|
* @memberof ContentfulCollectionUpdated
|
|
36885
36913
|
* @instance
|
|
36886
36914
|
*/
|
|
36887
|
-
ContentfulCollectionUpdated.prototype.
|
|
36915
|
+
ContentfulCollectionUpdated.prototype.tileMedia = $util.emptyObject;
|
|
36888
36916
|
|
|
36889
36917
|
/**
|
|
36890
36918
|
* ContentfulCollectionUpdated collectionContent.
|
|
@@ -36933,8 +36961,11 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36933
36961
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
36934
36962
|
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
36935
36963
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.collectionType);
|
|
36936
|
-
if (message.
|
|
36937
|
-
|
|
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
|
+
}
|
|
36938
36969
|
if (message.collectionContent != null && message.collectionContent.length)
|
|
36939
36970
|
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
36940
36971
|
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
@@ -37006,7 +37037,12 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37006
37037
|
message.collectionType = reader.int32();
|
|
37007
37038
|
break;
|
|
37008
37039
|
case 7:
|
|
37009
|
-
|
|
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());
|
|
37010
37046
|
break;
|
|
37011
37047
|
case 8:
|
|
37012
37048
|
if (!(message.collectionContent && message.collectionContent.length))
|
|
@@ -37086,9 +37122,16 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37086
37122
|
case 1:
|
|
37087
37123
|
break;
|
|
37088
37124
|
}
|
|
37089
|
-
if (message.
|
|
37090
|
-
if (!$util.
|
|
37091
|
-
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
|
+
}
|
|
37092
37135
|
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
37093
37136
|
if (!Array.isArray(message.collectionContent))
|
|
37094
37137
|
return "collectionContent: array expected";
|
|
@@ -37155,8 +37198,16 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37155
37198
|
message.collectionType = 1;
|
|
37156
37199
|
break;
|
|
37157
37200
|
}
|
|
37158
|
-
if (object.
|
|
37159
|
-
|
|
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
|
+
}
|
|
37210
|
+
}
|
|
37160
37211
|
if (object.collectionContent) {
|
|
37161
37212
|
if (!Array.isArray(object.collectionContent))
|
|
37162
37213
|
throw TypeError(".ContentfulCollectionUpdated.collectionContent: array expected");
|
|
@@ -37189,6 +37240,7 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37189
37240
|
object.name = {};
|
|
37190
37241
|
object.teaser = {};
|
|
37191
37242
|
object.description = {};
|
|
37243
|
+
object.tileMedia = {};
|
|
37192
37244
|
}
|
|
37193
37245
|
if (options.defaults) {
|
|
37194
37246
|
object.slug = "";
|
|
@@ -37198,7 +37250,6 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37198
37250
|
} else
|
|
37199
37251
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
37200
37252
|
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
37201
|
-
object.tileMediaId = 0;
|
|
37202
37253
|
}
|
|
37203
37254
|
var keys2;
|
|
37204
37255
|
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
@@ -37225,8 +37276,11 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37225
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;
|
|
37226
37277
|
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
37227
37278
|
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
37228
|
-
if (message.
|
|
37229
|
-
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
|
+
}
|
|
37230
37284
|
if (message.collectionContent && message.collectionContent.length) {
|
|
37231
37285
|
object.collectionContent = [];
|
|
37232
37286
|
for (var j = 0; j < message.collectionContent.length; ++j)
|
package/package.json
CHANGED