@headspace/protos-events 1.220.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 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
@@ -22187,6 +22199,9 @@ export interface IWorkoutPlaylistCreated {
22187
22199
 
22188
22200
  /** WorkoutPlaylistCreated headerImageMedia */
22189
22201
  headerImageMedia?: ({ [k: string]: contentful.IIdReference }|null);
22202
+
22203
+ /** WorkoutPlaylistCreated tags */
22204
+ tags?: ({ [k: string]: contentful.ITags }|null);
22190
22205
  }
22191
22206
 
22192
22207
  /** Represents a WorkoutPlaylistCreated. */
@@ -22219,6 +22234,9 @@ export class WorkoutPlaylistCreated implements IWorkoutPlaylistCreated {
22219
22234
  /** WorkoutPlaylistCreated headerImageMedia. */
22220
22235
  public headerImageMedia: { [k: string]: contentful.IIdReference };
22221
22236
 
22237
+ /** WorkoutPlaylistCreated tags. */
22238
+ public tags: { [k: string]: contentful.ITags };
22239
+
22222
22240
  /**
22223
22241
  * Creates a new WorkoutPlaylistCreated instance using the specified properties.
22224
22242
  * @param [properties] Properties to set
@@ -22313,6 +22331,9 @@ export interface IWorkoutPlaylistUpdated {
22313
22331
 
22314
22332
  /** WorkoutPlaylistUpdated headerImageMedia */
22315
22333
  headerImageMedia?: ({ [k: string]: contentful.IIdReference }|null);
22334
+
22335
+ /** WorkoutPlaylistUpdated tags */
22336
+ tags?: ({ [k: string]: contentful.ITags }|null);
22316
22337
  }
22317
22338
 
22318
22339
  /** Represents a WorkoutPlaylistUpdated. */
@@ -22345,6 +22366,9 @@ export class WorkoutPlaylistUpdated implements IWorkoutPlaylistUpdated {
22345
22366
  /** WorkoutPlaylistUpdated headerImageMedia. */
22346
22367
  public headerImageMedia: { [k: string]: contentful.IIdReference };
22347
22368
 
22369
+ /** WorkoutPlaylistUpdated tags. */
22370
+ public tags: { [k: string]: contentful.ITags };
22371
+
22348
22372
  /**
22349
22373
  * Creates a new WorkoutPlaylistUpdated instance using the specified properties.
22350
22374
  * @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
 
@@ -62555,6 +62653,7 @@ $root.WorkoutPlaylistCreated = (function() {
62555
62653
  * @property {number|Long|null} [createdAt] WorkoutPlaylistCreated createdAt
62556
62654
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistCreated tileMedia
62557
62655
  * @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistCreated headerImageMedia
62656
+ * @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistCreated tags
62558
62657
  */
62559
62658
 
62560
62659
  /**
@@ -62569,6 +62668,7 @@ $root.WorkoutPlaylistCreated = (function() {
62569
62668
  this.accessGroups = [];
62570
62669
  this.tileMedia = {};
62571
62670
  this.headerImageMedia = {};
62671
+ this.tags = {};
62572
62672
  if (properties)
62573
62673
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62574
62674
  if (properties[keys[i]] != null)
@@ -62631,6 +62731,14 @@ $root.WorkoutPlaylistCreated = (function() {
62631
62731
  */
62632
62732
  WorkoutPlaylistCreated.prototype.headerImageMedia = $util.emptyObject;
62633
62733
 
62734
+ /**
62735
+ * WorkoutPlaylistCreated tags.
62736
+ * @member {Object.<string,contentful.ITags>} tags
62737
+ * @memberof WorkoutPlaylistCreated
62738
+ * @instance
62739
+ */
62740
+ WorkoutPlaylistCreated.prototype.tags = $util.emptyObject;
62741
+
62634
62742
  /**
62635
62743
  * Creates a new WorkoutPlaylistCreated instance using the specified properties.
62636
62744
  * @function create
@@ -62676,6 +62784,11 @@ $root.WorkoutPlaylistCreated = (function() {
62676
62784
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
62677
62785
  $root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
62678
62786
  }
62787
+ if (message.tags != null && message.hasOwnProperty("tags"))
62788
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
62789
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
62790
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
62791
+ }
62679
62792
  return writer;
62680
62793
  };
62681
62794
 
@@ -62743,6 +62856,14 @@ $root.WorkoutPlaylistCreated = (function() {
62743
62856
  reader.pos++;
62744
62857
  message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
62745
62858
  break;
62859
+ case 8:
62860
+ reader.skip().pos++;
62861
+ if (message.tags === $util.emptyObject)
62862
+ message.tags = {};
62863
+ key = reader.string();
62864
+ reader.pos++;
62865
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
62866
+ break;
62746
62867
  default:
62747
62868
  reader.skipType(tag & 7);
62748
62869
  break;
@@ -62819,6 +62940,16 @@ $root.WorkoutPlaylistCreated = (function() {
62819
62940
  return "headerImageMedia." + error;
62820
62941
  }
62821
62942
  }
62943
+ if (message.tags != null && message.hasOwnProperty("tags")) {
62944
+ if (!$util.isObject(message.tags))
62945
+ return "tags: object expected";
62946
+ var key = Object.keys(message.tags);
62947
+ for (var i = 0; i < key.length; ++i) {
62948
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
62949
+ if (error)
62950
+ return "tags." + error;
62951
+ }
62952
+ }
62822
62953
  return null;
62823
62954
  };
62824
62955
 
@@ -62879,6 +63010,16 @@ $root.WorkoutPlaylistCreated = (function() {
62879
63010
  message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
62880
63011
  }
62881
63012
  }
63013
+ if (object.tags) {
63014
+ if (typeof object.tags !== "object")
63015
+ throw TypeError(".WorkoutPlaylistCreated.tags: object expected");
63016
+ message.tags = {};
63017
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
63018
+ if (typeof object.tags[keys[i]] !== "object")
63019
+ throw TypeError(".WorkoutPlaylistCreated.tags: object expected");
63020
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
63021
+ }
63022
+ }
62882
63023
  return message;
62883
63024
  };
62884
63025
 
@@ -62900,6 +63041,7 @@ $root.WorkoutPlaylistCreated = (function() {
62900
63041
  if (options.objects || options.defaults) {
62901
63042
  object.tileMedia = {};
62902
63043
  object.headerImageMedia = {};
63044
+ object.tags = {};
62903
63045
  }
62904
63046
  if (options.defaults) {
62905
63047
  object.slug = "";
@@ -62938,6 +63080,11 @@ $root.WorkoutPlaylistCreated = (function() {
62938
63080
  for (var j = 0; j < keys2.length; ++j)
62939
63081
  object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
62940
63082
  }
63083
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
63084
+ object.tags = {};
63085
+ for (var j = 0; j < keys2.length; ++j)
63086
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
63087
+ }
62941
63088
  return object;
62942
63089
  };
62943
63090
 
@@ -62968,6 +63115,7 @@ $root.WorkoutPlaylistUpdated = (function() {
62968
63115
  * @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdated updatedAt
62969
63116
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdated tileMedia
62970
63117
  * @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdated headerImageMedia
63118
+ * @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistUpdated tags
62971
63119
  */
62972
63120
 
62973
63121
  /**
@@ -62982,6 +63130,7 @@ $root.WorkoutPlaylistUpdated = (function() {
62982
63130
  this.accessGroups = [];
62983
63131
  this.tileMedia = {};
62984
63132
  this.headerImageMedia = {};
63133
+ this.tags = {};
62985
63134
  if (properties)
62986
63135
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62987
63136
  if (properties[keys[i]] != null)
@@ -63044,6 +63193,14 @@ $root.WorkoutPlaylistUpdated = (function() {
63044
63193
  */
63045
63194
  WorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
63046
63195
 
63196
+ /**
63197
+ * WorkoutPlaylistUpdated tags.
63198
+ * @member {Object.<string,contentful.ITags>} tags
63199
+ * @memberof WorkoutPlaylistUpdated
63200
+ * @instance
63201
+ */
63202
+ WorkoutPlaylistUpdated.prototype.tags = $util.emptyObject;
63203
+
63047
63204
  /**
63048
63205
  * Creates a new WorkoutPlaylistUpdated instance using the specified properties.
63049
63206
  * @function create
@@ -63089,6 +63246,11 @@ $root.WorkoutPlaylistUpdated = (function() {
63089
63246
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
63090
63247
  $root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
63091
63248
  }
63249
+ if (message.tags != null && message.hasOwnProperty("tags"))
63250
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
63251
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
63252
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
63253
+ }
63092
63254
  return writer;
63093
63255
  };
63094
63256
 
@@ -63156,6 +63318,14 @@ $root.WorkoutPlaylistUpdated = (function() {
63156
63318
  reader.pos++;
63157
63319
  message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
63158
63320
  break;
63321
+ case 8:
63322
+ reader.skip().pos++;
63323
+ if (message.tags === $util.emptyObject)
63324
+ message.tags = {};
63325
+ key = reader.string();
63326
+ reader.pos++;
63327
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
63328
+ break;
63159
63329
  default:
63160
63330
  reader.skipType(tag & 7);
63161
63331
  break;
@@ -63232,6 +63402,16 @@ $root.WorkoutPlaylistUpdated = (function() {
63232
63402
  return "headerImageMedia." + error;
63233
63403
  }
63234
63404
  }
63405
+ if (message.tags != null && message.hasOwnProperty("tags")) {
63406
+ if (!$util.isObject(message.tags))
63407
+ return "tags: object expected";
63408
+ var key = Object.keys(message.tags);
63409
+ for (var i = 0; i < key.length; ++i) {
63410
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
63411
+ if (error)
63412
+ return "tags." + error;
63413
+ }
63414
+ }
63235
63415
  return null;
63236
63416
  };
63237
63417
 
@@ -63292,6 +63472,16 @@ $root.WorkoutPlaylistUpdated = (function() {
63292
63472
  message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
63293
63473
  }
63294
63474
  }
63475
+ if (object.tags) {
63476
+ if (typeof object.tags !== "object")
63477
+ throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
63478
+ message.tags = {};
63479
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
63480
+ if (typeof object.tags[keys[i]] !== "object")
63481
+ throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
63482
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
63483
+ }
63484
+ }
63295
63485
  return message;
63296
63486
  };
63297
63487
 
@@ -63313,6 +63503,7 @@ $root.WorkoutPlaylistUpdated = (function() {
63313
63503
  if (options.objects || options.defaults) {
63314
63504
  object.tileMedia = {};
63315
63505
  object.headerImageMedia = {};
63506
+ object.tags = {};
63316
63507
  }
63317
63508
  if (options.defaults) {
63318
63509
  object.slug = "";
@@ -63351,6 +63542,11 @@ $root.WorkoutPlaylistUpdated = (function() {
63351
63542
  for (var j = 0; j < keys2.length; ++j)
63352
63543
  object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
63353
63544
  }
63545
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
63546
+ object.tags = {};
63547
+ for (var j = 0; j < keys2.length; ++j)
63548
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
63549
+ }
63354
63550
  return object;
63355
63551
  };
63356
63552
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.220.0"
19
+ "version": "1.222.0"
20
20
  }