@headspace/protos-events 1.219.0 → 1.220.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
|
@@ -16259,6 +16259,9 @@ export interface ISleepcastCreated {
|
|
|
16259
16259
|
|
|
16260
16260
|
/** SleepcastCreated createdAt */
|
|
16261
16261
|
createdAt?: (number|Long|null);
|
|
16262
|
+
|
|
16263
|
+
/** SleepcastCreated tags */
|
|
16264
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
16262
16265
|
}
|
|
16263
16266
|
|
|
16264
16267
|
/** Represents a SleepcastCreated. */
|
|
@@ -16285,6 +16288,9 @@ export class SleepcastCreated implements ISleepcastCreated {
|
|
|
16285
16288
|
/** SleepcastCreated createdAt. */
|
|
16286
16289
|
public createdAt: (number|Long);
|
|
16287
16290
|
|
|
16291
|
+
/** SleepcastCreated tags. */
|
|
16292
|
+
public tags: { [k: string]: contentful.ITags };
|
|
16293
|
+
|
|
16288
16294
|
/**
|
|
16289
16295
|
* Creates a new SleepcastCreated instance using the specified properties.
|
|
16290
16296
|
* @param [properties] Properties to set
|
|
@@ -16373,6 +16379,9 @@ export interface ISleepcastUpdated {
|
|
|
16373
16379
|
|
|
16374
16380
|
/** SleepcastUpdated updatedAt */
|
|
16375
16381
|
updatedAt?: (number|Long|null);
|
|
16382
|
+
|
|
16383
|
+
/** SleepcastUpdated tags */
|
|
16384
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
16376
16385
|
}
|
|
16377
16386
|
|
|
16378
16387
|
/** Represents a SleepcastUpdated. */
|
|
@@ -16399,6 +16408,9 @@ export class SleepcastUpdated implements ISleepcastUpdated {
|
|
|
16399
16408
|
/** SleepcastUpdated updatedAt. */
|
|
16400
16409
|
public updatedAt: (number|Long);
|
|
16401
16410
|
|
|
16411
|
+
/** SleepcastUpdated tags. */
|
|
16412
|
+
public tags: { [k: string]: contentful.ITags };
|
|
16413
|
+
|
|
16402
16414
|
/**
|
|
16403
16415
|
* Creates a new SleepcastUpdated instance using the specified properties.
|
|
16404
16416
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -45151,6 +45151,7 @@ $root.SleepcastCreated = (function() {
|
|
|
45151
45151
|
* @property {number|null} [tileBackgroundMediaId] SleepcastCreated tileBackgroundMediaId
|
|
45152
45152
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastCreated accessGroup
|
|
45153
45153
|
* @property {number|Long|null} [createdAt] SleepcastCreated createdAt
|
|
45154
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] SleepcastCreated tags
|
|
45154
45155
|
*/
|
|
45155
45156
|
|
|
45156
45157
|
/**
|
|
@@ -45163,6 +45164,7 @@ $root.SleepcastCreated = (function() {
|
|
|
45163
45164
|
*/
|
|
45164
45165
|
function SleepcastCreated(properties) {
|
|
45165
45166
|
this.accessGroup = [];
|
|
45167
|
+
this.tags = {};
|
|
45166
45168
|
if (properties)
|
|
45167
45169
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45168
45170
|
if (properties[keys[i]] != null)
|
|
@@ -45209,6 +45211,14 @@ $root.SleepcastCreated = (function() {
|
|
|
45209
45211
|
*/
|
|
45210
45212
|
SleepcastCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
45211
45213
|
|
|
45214
|
+
/**
|
|
45215
|
+
* SleepcastCreated tags.
|
|
45216
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
45217
|
+
* @memberof SleepcastCreated
|
|
45218
|
+
* @instance
|
|
45219
|
+
*/
|
|
45220
|
+
SleepcastCreated.prototype.tags = $util.emptyObject;
|
|
45221
|
+
|
|
45212
45222
|
/**
|
|
45213
45223
|
* Creates a new SleepcastCreated instance using the specified properties.
|
|
45214
45224
|
* @function create
|
|
@@ -45244,6 +45254,11 @@ $root.SleepcastCreated = (function() {
|
|
|
45244
45254
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
45245
45255
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
45246
45256
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
45257
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
45258
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
45259
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
45260
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
45261
|
+
}
|
|
45247
45262
|
return writer;
|
|
45248
45263
|
};
|
|
45249
45264
|
|
|
@@ -45274,7 +45289,7 @@ $root.SleepcastCreated = (function() {
|
|
|
45274
45289
|
SleepcastCreated.decode = function decode(reader, length) {
|
|
45275
45290
|
if (!(reader instanceof $Reader))
|
|
45276
45291
|
reader = $Reader.create(reader);
|
|
45277
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastCreated();
|
|
45292
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastCreated(), key;
|
|
45278
45293
|
while (reader.pos < end) {
|
|
45279
45294
|
var tag = reader.uint32();
|
|
45280
45295
|
switch (tag >>> 3) {
|
|
@@ -45295,6 +45310,14 @@ $root.SleepcastCreated = (function() {
|
|
|
45295
45310
|
case 5:
|
|
45296
45311
|
message.createdAt = reader.uint64();
|
|
45297
45312
|
break;
|
|
45313
|
+
case 6:
|
|
45314
|
+
reader.skip().pos++;
|
|
45315
|
+
if (message.tags === $util.emptyObject)
|
|
45316
|
+
message.tags = {};
|
|
45317
|
+
key = reader.string();
|
|
45318
|
+
reader.pos++;
|
|
45319
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
45320
|
+
break;
|
|
45298
45321
|
default:
|
|
45299
45322
|
reader.skipType(tag & 7);
|
|
45300
45323
|
break;
|
|
@@ -45351,6 +45374,16 @@ $root.SleepcastCreated = (function() {
|
|
|
45351
45374
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
45352
45375
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
45353
45376
|
return "createdAt: integer|Long expected";
|
|
45377
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
45378
|
+
if (!$util.isObject(message.tags))
|
|
45379
|
+
return "tags: object expected";
|
|
45380
|
+
var key = Object.keys(message.tags);
|
|
45381
|
+
for (var i = 0; i < key.length; ++i) {
|
|
45382
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
45383
|
+
if (error)
|
|
45384
|
+
return "tags." + error;
|
|
45385
|
+
}
|
|
45386
|
+
}
|
|
45354
45387
|
return null;
|
|
45355
45388
|
};
|
|
45356
45389
|
|
|
@@ -45391,6 +45424,16 @@ $root.SleepcastCreated = (function() {
|
|
|
45391
45424
|
message.createdAt = object.createdAt;
|
|
45392
45425
|
else if (typeof object.createdAt === "object")
|
|
45393
45426
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
45427
|
+
if (object.tags) {
|
|
45428
|
+
if (typeof object.tags !== "object")
|
|
45429
|
+
throw TypeError(".SleepcastCreated.tags: object expected");
|
|
45430
|
+
message.tags = {};
|
|
45431
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
45432
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
45433
|
+
throw TypeError(".SleepcastCreated.tags: object expected");
|
|
45434
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
45435
|
+
}
|
|
45436
|
+
}
|
|
45394
45437
|
return message;
|
|
45395
45438
|
};
|
|
45396
45439
|
|
|
@@ -45409,6 +45452,8 @@ $root.SleepcastCreated = (function() {
|
|
|
45409
45452
|
var object = {};
|
|
45410
45453
|
if (options.arrays || options.defaults)
|
|
45411
45454
|
object.accessGroup = [];
|
|
45455
|
+
if (options.objects || options.defaults)
|
|
45456
|
+
object.tags = {};
|
|
45412
45457
|
if (options.defaults) {
|
|
45413
45458
|
object.slug = "";
|
|
45414
45459
|
object.entityId = 0;
|
|
@@ -45435,6 +45480,12 @@ $root.SleepcastCreated = (function() {
|
|
|
45435
45480
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
45436
45481
|
else
|
|
45437
45482
|
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;
|
|
45483
|
+
var keys2;
|
|
45484
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
45485
|
+
object.tags = {};
|
|
45486
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
45487
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
45488
|
+
}
|
|
45438
45489
|
return object;
|
|
45439
45490
|
};
|
|
45440
45491
|
|
|
@@ -45463,6 +45514,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
45463
45514
|
* @property {number|null} [tileBackgroundMediaId] SleepcastUpdated tileBackgroundMediaId
|
|
45464
45515
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastUpdated accessGroup
|
|
45465
45516
|
* @property {number|Long|null} [updatedAt] SleepcastUpdated updatedAt
|
|
45517
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] SleepcastUpdated tags
|
|
45466
45518
|
*/
|
|
45467
45519
|
|
|
45468
45520
|
/**
|
|
@@ -45475,6 +45527,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
45475
45527
|
*/
|
|
45476
45528
|
function SleepcastUpdated(properties) {
|
|
45477
45529
|
this.accessGroup = [];
|
|
45530
|
+
this.tags = {};
|
|
45478
45531
|
if (properties)
|
|
45479
45532
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45480
45533
|
if (properties[keys[i]] != null)
|
|
@@ -45521,6 +45574,14 @@ $root.SleepcastUpdated = (function() {
|
|
|
45521
45574
|
*/
|
|
45522
45575
|
SleepcastUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
45523
45576
|
|
|
45577
|
+
/**
|
|
45578
|
+
* SleepcastUpdated tags.
|
|
45579
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
45580
|
+
* @memberof SleepcastUpdated
|
|
45581
|
+
* @instance
|
|
45582
|
+
*/
|
|
45583
|
+
SleepcastUpdated.prototype.tags = $util.emptyObject;
|
|
45584
|
+
|
|
45524
45585
|
/**
|
|
45525
45586
|
* Creates a new SleepcastUpdated instance using the specified properties.
|
|
45526
45587
|
* @function create
|
|
@@ -45556,6 +45617,11 @@ $root.SleepcastUpdated = (function() {
|
|
|
45556
45617
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
45557
45618
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
45558
45619
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
45620
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
45621
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
45622
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
45623
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
45624
|
+
}
|
|
45559
45625
|
return writer;
|
|
45560
45626
|
};
|
|
45561
45627
|
|
|
@@ -45586,7 +45652,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
45586
45652
|
SleepcastUpdated.decode = function decode(reader, length) {
|
|
45587
45653
|
if (!(reader instanceof $Reader))
|
|
45588
45654
|
reader = $Reader.create(reader);
|
|
45589
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastUpdated();
|
|
45655
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastUpdated(), key;
|
|
45590
45656
|
while (reader.pos < end) {
|
|
45591
45657
|
var tag = reader.uint32();
|
|
45592
45658
|
switch (tag >>> 3) {
|
|
@@ -45607,6 +45673,14 @@ $root.SleepcastUpdated = (function() {
|
|
|
45607
45673
|
case 5:
|
|
45608
45674
|
message.updatedAt = reader.uint64();
|
|
45609
45675
|
break;
|
|
45676
|
+
case 6:
|
|
45677
|
+
reader.skip().pos++;
|
|
45678
|
+
if (message.tags === $util.emptyObject)
|
|
45679
|
+
message.tags = {};
|
|
45680
|
+
key = reader.string();
|
|
45681
|
+
reader.pos++;
|
|
45682
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
45683
|
+
break;
|
|
45610
45684
|
default:
|
|
45611
45685
|
reader.skipType(tag & 7);
|
|
45612
45686
|
break;
|
|
@@ -45663,6 +45737,16 @@ $root.SleepcastUpdated = (function() {
|
|
|
45663
45737
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
45664
45738
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
45665
45739
|
return "updatedAt: integer|Long expected";
|
|
45740
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
45741
|
+
if (!$util.isObject(message.tags))
|
|
45742
|
+
return "tags: object expected";
|
|
45743
|
+
var key = Object.keys(message.tags);
|
|
45744
|
+
for (var i = 0; i < key.length; ++i) {
|
|
45745
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
45746
|
+
if (error)
|
|
45747
|
+
return "tags." + error;
|
|
45748
|
+
}
|
|
45749
|
+
}
|
|
45666
45750
|
return null;
|
|
45667
45751
|
};
|
|
45668
45752
|
|
|
@@ -45703,6 +45787,16 @@ $root.SleepcastUpdated = (function() {
|
|
|
45703
45787
|
message.updatedAt = object.updatedAt;
|
|
45704
45788
|
else if (typeof object.updatedAt === "object")
|
|
45705
45789
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
45790
|
+
if (object.tags) {
|
|
45791
|
+
if (typeof object.tags !== "object")
|
|
45792
|
+
throw TypeError(".SleepcastUpdated.tags: object expected");
|
|
45793
|
+
message.tags = {};
|
|
45794
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
45795
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
45796
|
+
throw TypeError(".SleepcastUpdated.tags: object expected");
|
|
45797
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
45798
|
+
}
|
|
45799
|
+
}
|
|
45706
45800
|
return message;
|
|
45707
45801
|
};
|
|
45708
45802
|
|
|
@@ -45721,6 +45815,8 @@ $root.SleepcastUpdated = (function() {
|
|
|
45721
45815
|
var object = {};
|
|
45722
45816
|
if (options.arrays || options.defaults)
|
|
45723
45817
|
object.accessGroup = [];
|
|
45818
|
+
if (options.objects || options.defaults)
|
|
45819
|
+
object.tags = {};
|
|
45724
45820
|
if (options.defaults) {
|
|
45725
45821
|
object.slug = "";
|
|
45726
45822
|
object.entityId = 0;
|
|
@@ -45747,6 +45843,12 @@ $root.SleepcastUpdated = (function() {
|
|
|
45747
45843
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
45748
45844
|
else
|
|
45749
45845
|
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;
|
|
45846
|
+
var keys2;
|
|
45847
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
45848
|
+
object.tags = {};
|
|
45849
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
45850
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
45851
|
+
}
|
|
45750
45852
|
return object;
|
|
45751
45853
|
};
|
|
45752
45854
|
|
package/package.json
CHANGED