@headspace/protos-events 1.221.0 → 1.222.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 +98 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6487,6 +6487,9 @@ export interface IContentfulWorkoutPlaylistCreated {
|
|
|
6487
6487
|
|
|
6488
6488
|
/** ContentfulWorkoutPlaylistCreated createdAt */
|
|
6489
6489
|
createdAt?: (number|Long|null);
|
|
6490
|
+
|
|
6491
|
+
/** ContentfulWorkoutPlaylistCreated tags */
|
|
6492
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
6490
6493
|
}
|
|
6491
6494
|
|
|
6492
6495
|
/** Represents a ContentfulWorkoutPlaylistCreated. */
|
|
@@ -6537,6 +6540,9 @@ export class ContentfulWorkoutPlaylistCreated implements IContentfulWorkoutPlayl
|
|
|
6537
6540
|
/** ContentfulWorkoutPlaylistCreated createdAt. */
|
|
6538
6541
|
public createdAt: (number|Long);
|
|
6539
6542
|
|
|
6543
|
+
/** ContentfulWorkoutPlaylistCreated tags. */
|
|
6544
|
+
public tags: { [k: string]: contentful.ITags };
|
|
6545
|
+
|
|
6540
6546
|
/**
|
|
6541
6547
|
* Creates a new ContentfulWorkoutPlaylistCreated instance using the specified properties.
|
|
6542
6548
|
* @param [properties] Properties to set
|
|
@@ -6649,6 +6655,9 @@ export interface IContentfulWorkoutPlaylistUpdated {
|
|
|
6649
6655
|
|
|
6650
6656
|
/** ContentfulWorkoutPlaylistUpdated updatedAt */
|
|
6651
6657
|
updatedAt?: (number|Long|null);
|
|
6658
|
+
|
|
6659
|
+
/** ContentfulWorkoutPlaylistUpdated tags */
|
|
6660
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
6652
6661
|
}
|
|
6653
6662
|
|
|
6654
6663
|
/** Represents a ContentfulWorkoutPlaylistUpdated. */
|
|
@@ -6699,6 +6708,9 @@ export class ContentfulWorkoutPlaylistUpdated implements IContentfulWorkoutPlayl
|
|
|
6699
6708
|
/** ContentfulWorkoutPlaylistUpdated updatedAt. */
|
|
6700
6709
|
public updatedAt: (number|Long);
|
|
6701
6710
|
|
|
6711
|
+
/** ContentfulWorkoutPlaylistUpdated tags. */
|
|
6712
|
+
public tags: { [k: string]: contentful.ITags };
|
|
6713
|
+
|
|
6702
6714
|
/**
|
|
6703
6715
|
* Creates a new ContentfulWorkoutPlaylistUpdated instance using the specified properties.
|
|
6704
6716
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -16453,6 +16453,7 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
16453
16453
|
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] ContentfulWorkoutPlaylistCreated headerImageMedia
|
|
16454
16454
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulWorkoutPlaylistCreated accessGroups
|
|
16455
16455
|
* @property {number|Long|null} [createdAt] ContentfulWorkoutPlaylistCreated createdAt
|
|
16456
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] ContentfulWorkoutPlaylistCreated tags
|
|
16456
16457
|
*/
|
|
16457
16458
|
|
|
16458
16459
|
/**
|
|
@@ -16474,6 +16475,7 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
16474
16475
|
this.tileMedia = {};
|
|
16475
16476
|
this.headerImageMedia = {};
|
|
16476
16477
|
this.accessGroups = [];
|
|
16478
|
+
this.tags = {};
|
|
16477
16479
|
if (properties)
|
|
16478
16480
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16479
16481
|
if (properties[keys[i]] != null)
|
|
@@ -16584,6 +16586,14 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
16584
16586
|
*/
|
|
16585
16587
|
ContentfulWorkoutPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
16586
16588
|
|
|
16589
|
+
/**
|
|
16590
|
+
* ContentfulWorkoutPlaylistCreated tags.
|
|
16591
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
16592
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
16593
|
+
* @instance
|
|
16594
|
+
*/
|
|
16595
|
+
ContentfulWorkoutPlaylistCreated.prototype.tags = $util.emptyObject;
|
|
16596
|
+
|
|
16587
16597
|
/**
|
|
16588
16598
|
* Creates a new ContentfulWorkoutPlaylistCreated instance using the specified properties.
|
|
16589
16599
|
* @function create
|
|
@@ -16650,6 +16660,11 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
16650
16660
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
16651
16661
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
16652
16662
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
|
|
16663
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
16664
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
16665
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
16666
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
16667
|
+
}
|
|
16653
16668
|
return writer;
|
|
16654
16669
|
};
|
|
16655
16670
|
|
|
@@ -16770,6 +16785,14 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
16770
16785
|
case 13:
|
|
16771
16786
|
message.createdAt = reader.uint64();
|
|
16772
16787
|
break;
|
|
16788
|
+
case 14:
|
|
16789
|
+
reader.skip().pos++;
|
|
16790
|
+
if (message.tags === $util.emptyObject)
|
|
16791
|
+
message.tags = {};
|
|
16792
|
+
key = reader.string();
|
|
16793
|
+
reader.pos++;
|
|
16794
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
16795
|
+
break;
|
|
16773
16796
|
default:
|
|
16774
16797
|
reader.skipType(tag & 7);
|
|
16775
16798
|
break;
|
|
@@ -16901,6 +16924,16 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
16901
16924
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
16902
16925
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
16903
16926
|
return "createdAt: integer|Long expected";
|
|
16927
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
16928
|
+
if (!$util.isObject(message.tags))
|
|
16929
|
+
return "tags: object expected";
|
|
16930
|
+
var key = Object.keys(message.tags);
|
|
16931
|
+
for (var i = 0; i < key.length; ++i) {
|
|
16932
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
16933
|
+
if (error)
|
|
16934
|
+
return "tags." + error;
|
|
16935
|
+
}
|
|
16936
|
+
}
|
|
16904
16937
|
return null;
|
|
16905
16938
|
};
|
|
16906
16939
|
|
|
@@ -17011,6 +17044,16 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
17011
17044
|
message.createdAt = object.createdAt;
|
|
17012
17045
|
else if (typeof object.createdAt === "object")
|
|
17013
17046
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
17047
|
+
if (object.tags) {
|
|
17048
|
+
if (typeof object.tags !== "object")
|
|
17049
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.tags: object expected");
|
|
17050
|
+
message.tags = {};
|
|
17051
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
17052
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
17053
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.tags: object expected");
|
|
17054
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
17055
|
+
}
|
|
17056
|
+
}
|
|
17014
17057
|
return message;
|
|
17015
17058
|
};
|
|
17016
17059
|
|
|
@@ -17039,6 +17082,7 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
17039
17082
|
object.duration = {};
|
|
17040
17083
|
object.tileMedia = {};
|
|
17041
17084
|
object.headerImageMedia = {};
|
|
17085
|
+
object.tags = {};
|
|
17042
17086
|
}
|
|
17043
17087
|
if (options.defaults) {
|
|
17044
17088
|
object.slug = "";
|
|
@@ -17109,6 +17153,11 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
|
17109
17153
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
17110
17154
|
else
|
|
17111
17155
|
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;
|
|
17156
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
17157
|
+
object.tags = {};
|
|
17158
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
17159
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
17160
|
+
}
|
|
17112
17161
|
return object;
|
|
17113
17162
|
};
|
|
17114
17163
|
|
|
@@ -17145,6 +17194,7 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17145
17194
|
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] ContentfulWorkoutPlaylistUpdated headerImageMedia
|
|
17146
17195
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulWorkoutPlaylistUpdated accessGroups
|
|
17147
17196
|
* @property {number|Long|null} [updatedAt] ContentfulWorkoutPlaylistUpdated updatedAt
|
|
17197
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] ContentfulWorkoutPlaylistUpdated tags
|
|
17148
17198
|
*/
|
|
17149
17199
|
|
|
17150
17200
|
/**
|
|
@@ -17166,6 +17216,7 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17166
17216
|
this.tileMedia = {};
|
|
17167
17217
|
this.headerImageMedia = {};
|
|
17168
17218
|
this.accessGroups = [];
|
|
17219
|
+
this.tags = {};
|
|
17169
17220
|
if (properties)
|
|
17170
17221
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17171
17222
|
if (properties[keys[i]] != null)
|
|
@@ -17276,6 +17327,14 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17276
17327
|
*/
|
|
17277
17328
|
ContentfulWorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17278
17329
|
|
|
17330
|
+
/**
|
|
17331
|
+
* ContentfulWorkoutPlaylistUpdated tags.
|
|
17332
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
17333
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
17334
|
+
* @instance
|
|
17335
|
+
*/
|
|
17336
|
+
ContentfulWorkoutPlaylistUpdated.prototype.tags = $util.emptyObject;
|
|
17337
|
+
|
|
17279
17338
|
/**
|
|
17280
17339
|
* Creates a new ContentfulWorkoutPlaylistUpdated instance using the specified properties.
|
|
17281
17340
|
* @function create
|
|
@@ -17342,6 +17401,11 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17342
17401
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
17343
17402
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
17344
17403
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
17404
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
17405
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
17406
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
17407
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
17408
|
+
}
|
|
17345
17409
|
return writer;
|
|
17346
17410
|
};
|
|
17347
17411
|
|
|
@@ -17462,6 +17526,14 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17462
17526
|
case 13:
|
|
17463
17527
|
message.updatedAt = reader.uint64();
|
|
17464
17528
|
break;
|
|
17529
|
+
case 14:
|
|
17530
|
+
reader.skip().pos++;
|
|
17531
|
+
if (message.tags === $util.emptyObject)
|
|
17532
|
+
message.tags = {};
|
|
17533
|
+
key = reader.string();
|
|
17534
|
+
reader.pos++;
|
|
17535
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
17536
|
+
break;
|
|
17465
17537
|
default:
|
|
17466
17538
|
reader.skipType(tag & 7);
|
|
17467
17539
|
break;
|
|
@@ -17593,6 +17665,16 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17593
17665
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
17594
17666
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
17595
17667
|
return "updatedAt: integer|Long expected";
|
|
17668
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
17669
|
+
if (!$util.isObject(message.tags))
|
|
17670
|
+
return "tags: object expected";
|
|
17671
|
+
var key = Object.keys(message.tags);
|
|
17672
|
+
for (var i = 0; i < key.length; ++i) {
|
|
17673
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
17674
|
+
if (error)
|
|
17675
|
+
return "tags." + error;
|
|
17676
|
+
}
|
|
17677
|
+
}
|
|
17596
17678
|
return null;
|
|
17597
17679
|
};
|
|
17598
17680
|
|
|
@@ -17703,6 +17785,16 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17703
17785
|
message.updatedAt = object.updatedAt;
|
|
17704
17786
|
else if (typeof object.updatedAt === "object")
|
|
17705
17787
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
17788
|
+
if (object.tags) {
|
|
17789
|
+
if (typeof object.tags !== "object")
|
|
17790
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.tags: object expected");
|
|
17791
|
+
message.tags = {};
|
|
17792
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
17793
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
17794
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.tags: object expected");
|
|
17795
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
17796
|
+
}
|
|
17797
|
+
}
|
|
17706
17798
|
return message;
|
|
17707
17799
|
};
|
|
17708
17800
|
|
|
@@ -17731,6 +17823,7 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17731
17823
|
object.duration = {};
|
|
17732
17824
|
object.tileMedia = {};
|
|
17733
17825
|
object.headerImageMedia = {};
|
|
17826
|
+
object.tags = {};
|
|
17734
17827
|
}
|
|
17735
17828
|
if (options.defaults) {
|
|
17736
17829
|
object.slug = "";
|
|
@@ -17801,6 +17894,11 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
|
17801
17894
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
17802
17895
|
else
|
|
17803
17896
|
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;
|
|
17897
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
17898
|
+
object.tags = {};
|
|
17899
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
17900
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
17901
|
+
}
|
|
17804
17902
|
return object;
|
|
17805
17903
|
};
|
|
17806
17904
|
|
package/package.json
CHANGED