@headspace/protos-events 1.722.0 → 1.723.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 +12 -0
- package/lib/index.js +104 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -23229,6 +23229,9 @@ export interface IContentfulFeaturedContentCreated {
|
|
|
23229
23229
|
|
|
23230
23230
|
/** ContentfulFeaturedContentCreated createdAt */
|
|
23231
23231
|
createdAt?: (number|Long|null);
|
|
23232
|
+
|
|
23233
|
+
/** ContentfulFeaturedContentCreated localizedContent */
|
|
23234
|
+
localizedContent?: ({ [k: string]: contentful.ISlugReferences }|null);
|
|
23232
23235
|
}
|
|
23233
23236
|
|
|
23234
23237
|
/** Represents a ContentfulFeaturedContentCreated. */
|
|
@@ -23255,6 +23258,9 @@ export class ContentfulFeaturedContentCreated implements IContentfulFeaturedCont
|
|
|
23255
23258
|
/** ContentfulFeaturedContentCreated createdAt. */
|
|
23256
23259
|
public createdAt: (number|Long);
|
|
23257
23260
|
|
|
23261
|
+
/** ContentfulFeaturedContentCreated localizedContent. */
|
|
23262
|
+
public localizedContent: { [k: string]: contentful.ISlugReferences };
|
|
23263
|
+
|
|
23258
23264
|
/**
|
|
23259
23265
|
* Creates a new ContentfulFeaturedContentCreated instance using the specified properties.
|
|
23260
23266
|
* @param [properties] Properties to set
|
|
@@ -23343,6 +23349,9 @@ export interface IContentfulFeaturedContentUpdated {
|
|
|
23343
23349
|
|
|
23344
23350
|
/** ContentfulFeaturedContentUpdated updatedAt */
|
|
23345
23351
|
updatedAt?: (number|Long|null);
|
|
23352
|
+
|
|
23353
|
+
/** ContentfulFeaturedContentUpdated localizedContent */
|
|
23354
|
+
localizedContent?: ({ [k: string]: contentful.ISlugReferences }|null);
|
|
23346
23355
|
}
|
|
23347
23356
|
|
|
23348
23357
|
/** Represents a ContentfulFeaturedContentUpdated. */
|
|
@@ -23369,6 +23378,9 @@ export class ContentfulFeaturedContentUpdated implements IContentfulFeaturedCont
|
|
|
23369
23378
|
/** ContentfulFeaturedContentUpdated updatedAt. */
|
|
23370
23379
|
public updatedAt: (number|Long);
|
|
23371
23380
|
|
|
23381
|
+
/** ContentfulFeaturedContentUpdated localizedContent. */
|
|
23382
|
+
public localizedContent: { [k: string]: contentful.ISlugReferences };
|
|
23383
|
+
|
|
23372
23384
|
/**
|
|
23373
23385
|
* Creates a new ContentfulFeaturedContentUpdated instance using the specified properties.
|
|
23374
23386
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -65697,6 +65697,7 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65697
65697
|
* @property {string|null} [mode] ContentfulFeaturedContentCreated mode
|
|
65698
65698
|
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulFeaturedContentCreated content
|
|
65699
65699
|
* @property {number|Long|null} [createdAt] ContentfulFeaturedContentCreated createdAt
|
|
65700
|
+
* @property {Object.<string,contentful.ISlugReferences>|null} [localizedContent] ContentfulFeaturedContentCreated localizedContent
|
|
65700
65701
|
*/
|
|
65701
65702
|
|
|
65702
65703
|
/**
|
|
@@ -65709,6 +65710,7 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65709
65710
|
*/
|
|
65710
65711
|
function ContentfulFeaturedContentCreated(properties) {
|
|
65711
65712
|
this.content = [];
|
|
65713
|
+
this.localizedContent = {};
|
|
65712
65714
|
if (properties)
|
|
65713
65715
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65714
65716
|
if (properties[keys[i]] != null)
|
|
@@ -65755,6 +65757,14 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65755
65757
|
*/
|
|
65756
65758
|
ContentfulFeaturedContentCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65757
65759
|
|
|
65760
|
+
/**
|
|
65761
|
+
* ContentfulFeaturedContentCreated localizedContent.
|
|
65762
|
+
* @member {Object.<string,contentful.ISlugReferences>} localizedContent
|
|
65763
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
65764
|
+
* @instance
|
|
65765
|
+
*/
|
|
65766
|
+
ContentfulFeaturedContentCreated.prototype.localizedContent = $util.emptyObject;
|
|
65767
|
+
|
|
65758
65768
|
/**
|
|
65759
65769
|
* Creates a new ContentfulFeaturedContentCreated instance using the specified properties.
|
|
65760
65770
|
* @function create
|
|
@@ -65790,6 +65800,11 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65790
65800
|
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
65791
65801
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
65792
65802
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
65803
|
+
if (message.localizedContent != null && message.hasOwnProperty("localizedContent"))
|
|
65804
|
+
for (var keys = Object.keys(message.localizedContent), i = 0; i < keys.length; ++i) {
|
|
65805
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
65806
|
+
$root.contentful.SlugReferences.encode(message.localizedContent[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
65807
|
+
}
|
|
65793
65808
|
return writer;
|
|
65794
65809
|
};
|
|
65795
65810
|
|
|
@@ -65820,7 +65835,7 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65820
65835
|
ContentfulFeaturedContentCreated.decode = function decode(reader, length) {
|
|
65821
65836
|
if (!(reader instanceof $Reader))
|
|
65822
65837
|
reader = $Reader.create(reader);
|
|
65823
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentCreated();
|
|
65838
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentCreated(), key;
|
|
65824
65839
|
while (reader.pos < end) {
|
|
65825
65840
|
var tag = reader.uint32();
|
|
65826
65841
|
switch (tag >>> 3) {
|
|
@@ -65841,6 +65856,14 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65841
65856
|
case 5:
|
|
65842
65857
|
message.createdAt = reader.uint64();
|
|
65843
65858
|
break;
|
|
65859
|
+
case 6:
|
|
65860
|
+
reader.skip().pos++;
|
|
65861
|
+
if (message.localizedContent === $util.emptyObject)
|
|
65862
|
+
message.localizedContent = {};
|
|
65863
|
+
key = reader.string();
|
|
65864
|
+
reader.pos++;
|
|
65865
|
+
message.localizedContent[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
|
|
65866
|
+
break;
|
|
65844
65867
|
default:
|
|
65845
65868
|
reader.skipType(tag & 7);
|
|
65846
65869
|
break;
|
|
@@ -65897,6 +65920,16 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65897
65920
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
65898
65921
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
65899
65922
|
return "createdAt: integer|Long expected";
|
|
65923
|
+
if (message.localizedContent != null && message.hasOwnProperty("localizedContent")) {
|
|
65924
|
+
if (!$util.isObject(message.localizedContent))
|
|
65925
|
+
return "localizedContent: object expected";
|
|
65926
|
+
var key = Object.keys(message.localizedContent);
|
|
65927
|
+
for (var i = 0; i < key.length; ++i) {
|
|
65928
|
+
var error = $root.contentful.SlugReferences.verify(message.localizedContent[key[i]]);
|
|
65929
|
+
if (error)
|
|
65930
|
+
return "localizedContent." + error;
|
|
65931
|
+
}
|
|
65932
|
+
}
|
|
65900
65933
|
return null;
|
|
65901
65934
|
};
|
|
65902
65935
|
|
|
@@ -65937,6 +65970,16 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65937
65970
|
message.createdAt = object.createdAt;
|
|
65938
65971
|
else if (typeof object.createdAt === "object")
|
|
65939
65972
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
65973
|
+
if (object.localizedContent) {
|
|
65974
|
+
if (typeof object.localizedContent !== "object")
|
|
65975
|
+
throw TypeError(".ContentfulFeaturedContentCreated.localizedContent: object expected");
|
|
65976
|
+
message.localizedContent = {};
|
|
65977
|
+
for (var keys = Object.keys(object.localizedContent), i = 0; i < keys.length; ++i) {
|
|
65978
|
+
if (typeof object.localizedContent[keys[i]] !== "object")
|
|
65979
|
+
throw TypeError(".ContentfulFeaturedContentCreated.localizedContent: object expected");
|
|
65980
|
+
message.localizedContent[keys[i]] = $root.contentful.SlugReferences.fromObject(object.localizedContent[keys[i]]);
|
|
65981
|
+
}
|
|
65982
|
+
}
|
|
65940
65983
|
return message;
|
|
65941
65984
|
};
|
|
65942
65985
|
|
|
@@ -65955,6 +65998,8 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65955
65998
|
var object = {};
|
|
65956
65999
|
if (options.arrays || options.defaults)
|
|
65957
66000
|
object.content = [];
|
|
66001
|
+
if (options.objects || options.defaults)
|
|
66002
|
+
object.localizedContent = {};
|
|
65958
66003
|
if (options.defaults) {
|
|
65959
66004
|
object.slug = "";
|
|
65960
66005
|
object.featureType = "";
|
|
@@ -65981,6 +66026,12 @@ $root.ContentfulFeaturedContentCreated = (function() {
|
|
|
65981
66026
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
65982
66027
|
else
|
|
65983
66028
|
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;
|
|
66029
|
+
var keys2;
|
|
66030
|
+
if (message.localizedContent && (keys2 = Object.keys(message.localizedContent)).length) {
|
|
66031
|
+
object.localizedContent = {};
|
|
66032
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
66033
|
+
object.localizedContent[keys2[j]] = $root.contentful.SlugReferences.toObject(message.localizedContent[keys2[j]], options);
|
|
66034
|
+
}
|
|
65984
66035
|
return object;
|
|
65985
66036
|
};
|
|
65986
66037
|
|
|
@@ -66009,6 +66060,7 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66009
66060
|
* @property {string|null} [mode] ContentfulFeaturedContentUpdated mode
|
|
66010
66061
|
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulFeaturedContentUpdated content
|
|
66011
66062
|
* @property {number|Long|null} [updatedAt] ContentfulFeaturedContentUpdated updatedAt
|
|
66063
|
+
* @property {Object.<string,contentful.ISlugReferences>|null} [localizedContent] ContentfulFeaturedContentUpdated localizedContent
|
|
66012
66064
|
*/
|
|
66013
66065
|
|
|
66014
66066
|
/**
|
|
@@ -66021,6 +66073,7 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66021
66073
|
*/
|
|
66022
66074
|
function ContentfulFeaturedContentUpdated(properties) {
|
|
66023
66075
|
this.content = [];
|
|
66076
|
+
this.localizedContent = {};
|
|
66024
66077
|
if (properties)
|
|
66025
66078
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66026
66079
|
if (properties[keys[i]] != null)
|
|
@@ -66067,6 +66120,14 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66067
66120
|
*/
|
|
66068
66121
|
ContentfulFeaturedContentUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66069
66122
|
|
|
66123
|
+
/**
|
|
66124
|
+
* ContentfulFeaturedContentUpdated localizedContent.
|
|
66125
|
+
* @member {Object.<string,contentful.ISlugReferences>} localizedContent
|
|
66126
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
66127
|
+
* @instance
|
|
66128
|
+
*/
|
|
66129
|
+
ContentfulFeaturedContentUpdated.prototype.localizedContent = $util.emptyObject;
|
|
66130
|
+
|
|
66070
66131
|
/**
|
|
66071
66132
|
* Creates a new ContentfulFeaturedContentUpdated instance using the specified properties.
|
|
66072
66133
|
* @function create
|
|
@@ -66102,6 +66163,11 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66102
66163
|
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
66103
66164
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
66104
66165
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
66166
|
+
if (message.localizedContent != null && message.hasOwnProperty("localizedContent"))
|
|
66167
|
+
for (var keys = Object.keys(message.localizedContent), i = 0; i < keys.length; ++i) {
|
|
66168
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
66169
|
+
$root.contentful.SlugReferences.encode(message.localizedContent[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
66170
|
+
}
|
|
66105
66171
|
return writer;
|
|
66106
66172
|
};
|
|
66107
66173
|
|
|
@@ -66132,7 +66198,7 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66132
66198
|
ContentfulFeaturedContentUpdated.decode = function decode(reader, length) {
|
|
66133
66199
|
if (!(reader instanceof $Reader))
|
|
66134
66200
|
reader = $Reader.create(reader);
|
|
66135
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentUpdated();
|
|
66201
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentUpdated(), key;
|
|
66136
66202
|
while (reader.pos < end) {
|
|
66137
66203
|
var tag = reader.uint32();
|
|
66138
66204
|
switch (tag >>> 3) {
|
|
@@ -66153,6 +66219,14 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66153
66219
|
case 5:
|
|
66154
66220
|
message.updatedAt = reader.uint64();
|
|
66155
66221
|
break;
|
|
66222
|
+
case 6:
|
|
66223
|
+
reader.skip().pos++;
|
|
66224
|
+
if (message.localizedContent === $util.emptyObject)
|
|
66225
|
+
message.localizedContent = {};
|
|
66226
|
+
key = reader.string();
|
|
66227
|
+
reader.pos++;
|
|
66228
|
+
message.localizedContent[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
|
|
66229
|
+
break;
|
|
66156
66230
|
default:
|
|
66157
66231
|
reader.skipType(tag & 7);
|
|
66158
66232
|
break;
|
|
@@ -66209,6 +66283,16 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66209
66283
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
66210
66284
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
66211
66285
|
return "updatedAt: integer|Long expected";
|
|
66286
|
+
if (message.localizedContent != null && message.hasOwnProperty("localizedContent")) {
|
|
66287
|
+
if (!$util.isObject(message.localizedContent))
|
|
66288
|
+
return "localizedContent: object expected";
|
|
66289
|
+
var key = Object.keys(message.localizedContent);
|
|
66290
|
+
for (var i = 0; i < key.length; ++i) {
|
|
66291
|
+
var error = $root.contentful.SlugReferences.verify(message.localizedContent[key[i]]);
|
|
66292
|
+
if (error)
|
|
66293
|
+
return "localizedContent." + error;
|
|
66294
|
+
}
|
|
66295
|
+
}
|
|
66212
66296
|
return null;
|
|
66213
66297
|
};
|
|
66214
66298
|
|
|
@@ -66249,6 +66333,16 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66249
66333
|
message.updatedAt = object.updatedAt;
|
|
66250
66334
|
else if (typeof object.updatedAt === "object")
|
|
66251
66335
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
66336
|
+
if (object.localizedContent) {
|
|
66337
|
+
if (typeof object.localizedContent !== "object")
|
|
66338
|
+
throw TypeError(".ContentfulFeaturedContentUpdated.localizedContent: object expected");
|
|
66339
|
+
message.localizedContent = {};
|
|
66340
|
+
for (var keys = Object.keys(object.localizedContent), i = 0; i < keys.length; ++i) {
|
|
66341
|
+
if (typeof object.localizedContent[keys[i]] !== "object")
|
|
66342
|
+
throw TypeError(".ContentfulFeaturedContentUpdated.localizedContent: object expected");
|
|
66343
|
+
message.localizedContent[keys[i]] = $root.contentful.SlugReferences.fromObject(object.localizedContent[keys[i]]);
|
|
66344
|
+
}
|
|
66345
|
+
}
|
|
66252
66346
|
return message;
|
|
66253
66347
|
};
|
|
66254
66348
|
|
|
@@ -66267,6 +66361,8 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66267
66361
|
var object = {};
|
|
66268
66362
|
if (options.arrays || options.defaults)
|
|
66269
66363
|
object.content = [];
|
|
66364
|
+
if (options.objects || options.defaults)
|
|
66365
|
+
object.localizedContent = {};
|
|
66270
66366
|
if (options.defaults) {
|
|
66271
66367
|
object.slug = "";
|
|
66272
66368
|
object.featureType = "";
|
|
@@ -66293,6 +66389,12 @@ $root.ContentfulFeaturedContentUpdated = (function() {
|
|
|
66293
66389
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
66294
66390
|
else
|
|
66295
66391
|
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;
|
|
66392
|
+
var keys2;
|
|
66393
|
+
if (message.localizedContent && (keys2 = Object.keys(message.localizedContent)).length) {
|
|
66394
|
+
object.localizedContent = {};
|
|
66395
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
66396
|
+
object.localizedContent[keys2[j]] = $root.contentful.SlugReferences.toObject(message.localizedContent[keys2[j]], options);
|
|
66397
|
+
}
|
|
66296
66398
|
return object;
|
|
66297
66399
|
};
|
|
66298
66400
|
|
package/package.json
CHANGED