@headspace/protos-events 1.220.0 → 1.221.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
@@ -22187,6 +22187,9 @@ export interface IWorkoutPlaylistCreated {
22187
22187
 
22188
22188
  /** WorkoutPlaylistCreated headerImageMedia */
22189
22189
  headerImageMedia?: ({ [k: string]: contentful.IIdReference }|null);
22190
+
22191
+ /** WorkoutPlaylistCreated tags */
22192
+ tags?: ({ [k: string]: contentful.ITags }|null);
22190
22193
  }
22191
22194
 
22192
22195
  /** Represents a WorkoutPlaylistCreated. */
@@ -22219,6 +22222,9 @@ export class WorkoutPlaylistCreated implements IWorkoutPlaylistCreated {
22219
22222
  /** WorkoutPlaylistCreated headerImageMedia. */
22220
22223
  public headerImageMedia: { [k: string]: contentful.IIdReference };
22221
22224
 
22225
+ /** WorkoutPlaylistCreated tags. */
22226
+ public tags: { [k: string]: contentful.ITags };
22227
+
22222
22228
  /**
22223
22229
  * Creates a new WorkoutPlaylistCreated instance using the specified properties.
22224
22230
  * @param [properties] Properties to set
@@ -22313,6 +22319,9 @@ export interface IWorkoutPlaylistUpdated {
22313
22319
 
22314
22320
  /** WorkoutPlaylistUpdated headerImageMedia */
22315
22321
  headerImageMedia?: ({ [k: string]: contentful.IIdReference }|null);
22322
+
22323
+ /** WorkoutPlaylistUpdated tags */
22324
+ tags?: ({ [k: string]: contentful.ITags }|null);
22316
22325
  }
22317
22326
 
22318
22327
  /** Represents a WorkoutPlaylistUpdated. */
@@ -22345,6 +22354,9 @@ export class WorkoutPlaylistUpdated implements IWorkoutPlaylistUpdated {
22345
22354
  /** WorkoutPlaylistUpdated headerImageMedia. */
22346
22355
  public headerImageMedia: { [k: string]: contentful.IIdReference };
22347
22356
 
22357
+ /** WorkoutPlaylistUpdated tags. */
22358
+ public tags: { [k: string]: contentful.ITags };
22359
+
22348
22360
  /**
22349
22361
  * Creates a new WorkoutPlaylistUpdated instance using the specified properties.
22350
22362
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -62555,6 +62555,7 @@ $root.WorkoutPlaylistCreated = (function() {
62555
62555
  * @property {number|Long|null} [createdAt] WorkoutPlaylistCreated createdAt
62556
62556
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistCreated tileMedia
62557
62557
  * @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistCreated headerImageMedia
62558
+ * @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistCreated tags
62558
62559
  */
62559
62560
 
62560
62561
  /**
@@ -62569,6 +62570,7 @@ $root.WorkoutPlaylistCreated = (function() {
62569
62570
  this.accessGroups = [];
62570
62571
  this.tileMedia = {};
62571
62572
  this.headerImageMedia = {};
62573
+ this.tags = {};
62572
62574
  if (properties)
62573
62575
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62574
62576
  if (properties[keys[i]] != null)
@@ -62631,6 +62633,14 @@ $root.WorkoutPlaylistCreated = (function() {
62631
62633
  */
62632
62634
  WorkoutPlaylistCreated.prototype.headerImageMedia = $util.emptyObject;
62633
62635
 
62636
+ /**
62637
+ * WorkoutPlaylistCreated tags.
62638
+ * @member {Object.<string,contentful.ITags>} tags
62639
+ * @memberof WorkoutPlaylistCreated
62640
+ * @instance
62641
+ */
62642
+ WorkoutPlaylistCreated.prototype.tags = $util.emptyObject;
62643
+
62634
62644
  /**
62635
62645
  * Creates a new WorkoutPlaylistCreated instance using the specified properties.
62636
62646
  * @function create
@@ -62676,6 +62686,11 @@ $root.WorkoutPlaylistCreated = (function() {
62676
62686
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
62677
62687
  $root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
62678
62688
  }
62689
+ if (message.tags != null && message.hasOwnProperty("tags"))
62690
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
62691
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
62692
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
62693
+ }
62679
62694
  return writer;
62680
62695
  };
62681
62696
 
@@ -62743,6 +62758,14 @@ $root.WorkoutPlaylistCreated = (function() {
62743
62758
  reader.pos++;
62744
62759
  message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
62745
62760
  break;
62761
+ case 8:
62762
+ reader.skip().pos++;
62763
+ if (message.tags === $util.emptyObject)
62764
+ message.tags = {};
62765
+ key = reader.string();
62766
+ reader.pos++;
62767
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
62768
+ break;
62746
62769
  default:
62747
62770
  reader.skipType(tag & 7);
62748
62771
  break;
@@ -62819,6 +62842,16 @@ $root.WorkoutPlaylistCreated = (function() {
62819
62842
  return "headerImageMedia." + error;
62820
62843
  }
62821
62844
  }
62845
+ if (message.tags != null && message.hasOwnProperty("tags")) {
62846
+ if (!$util.isObject(message.tags))
62847
+ return "tags: object expected";
62848
+ var key = Object.keys(message.tags);
62849
+ for (var i = 0; i < key.length; ++i) {
62850
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
62851
+ if (error)
62852
+ return "tags." + error;
62853
+ }
62854
+ }
62822
62855
  return null;
62823
62856
  };
62824
62857
 
@@ -62879,6 +62912,16 @@ $root.WorkoutPlaylistCreated = (function() {
62879
62912
  message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
62880
62913
  }
62881
62914
  }
62915
+ if (object.tags) {
62916
+ if (typeof object.tags !== "object")
62917
+ throw TypeError(".WorkoutPlaylistCreated.tags: object expected");
62918
+ message.tags = {};
62919
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
62920
+ if (typeof object.tags[keys[i]] !== "object")
62921
+ throw TypeError(".WorkoutPlaylistCreated.tags: object expected");
62922
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
62923
+ }
62924
+ }
62882
62925
  return message;
62883
62926
  };
62884
62927
 
@@ -62900,6 +62943,7 @@ $root.WorkoutPlaylistCreated = (function() {
62900
62943
  if (options.objects || options.defaults) {
62901
62944
  object.tileMedia = {};
62902
62945
  object.headerImageMedia = {};
62946
+ object.tags = {};
62903
62947
  }
62904
62948
  if (options.defaults) {
62905
62949
  object.slug = "";
@@ -62938,6 +62982,11 @@ $root.WorkoutPlaylistCreated = (function() {
62938
62982
  for (var j = 0; j < keys2.length; ++j)
62939
62983
  object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
62940
62984
  }
62985
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
62986
+ object.tags = {};
62987
+ for (var j = 0; j < keys2.length; ++j)
62988
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
62989
+ }
62941
62990
  return object;
62942
62991
  };
62943
62992
 
@@ -62968,6 +63017,7 @@ $root.WorkoutPlaylistUpdated = (function() {
62968
63017
  * @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdated updatedAt
62969
63018
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdated tileMedia
62970
63019
  * @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdated headerImageMedia
63020
+ * @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistUpdated tags
62971
63021
  */
62972
63022
 
62973
63023
  /**
@@ -62982,6 +63032,7 @@ $root.WorkoutPlaylistUpdated = (function() {
62982
63032
  this.accessGroups = [];
62983
63033
  this.tileMedia = {};
62984
63034
  this.headerImageMedia = {};
63035
+ this.tags = {};
62985
63036
  if (properties)
62986
63037
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62987
63038
  if (properties[keys[i]] != null)
@@ -63044,6 +63095,14 @@ $root.WorkoutPlaylistUpdated = (function() {
63044
63095
  */
63045
63096
  WorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
63046
63097
 
63098
+ /**
63099
+ * WorkoutPlaylistUpdated tags.
63100
+ * @member {Object.<string,contentful.ITags>} tags
63101
+ * @memberof WorkoutPlaylistUpdated
63102
+ * @instance
63103
+ */
63104
+ WorkoutPlaylistUpdated.prototype.tags = $util.emptyObject;
63105
+
63047
63106
  /**
63048
63107
  * Creates a new WorkoutPlaylistUpdated instance using the specified properties.
63049
63108
  * @function create
@@ -63089,6 +63148,11 @@ $root.WorkoutPlaylistUpdated = (function() {
63089
63148
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
63090
63149
  $root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
63091
63150
  }
63151
+ if (message.tags != null && message.hasOwnProperty("tags"))
63152
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
63153
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
63154
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
63155
+ }
63092
63156
  return writer;
63093
63157
  };
63094
63158
 
@@ -63156,6 +63220,14 @@ $root.WorkoutPlaylistUpdated = (function() {
63156
63220
  reader.pos++;
63157
63221
  message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
63158
63222
  break;
63223
+ case 8:
63224
+ reader.skip().pos++;
63225
+ if (message.tags === $util.emptyObject)
63226
+ message.tags = {};
63227
+ key = reader.string();
63228
+ reader.pos++;
63229
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
63230
+ break;
63159
63231
  default:
63160
63232
  reader.skipType(tag & 7);
63161
63233
  break;
@@ -63232,6 +63304,16 @@ $root.WorkoutPlaylistUpdated = (function() {
63232
63304
  return "headerImageMedia." + error;
63233
63305
  }
63234
63306
  }
63307
+ if (message.tags != null && message.hasOwnProperty("tags")) {
63308
+ if (!$util.isObject(message.tags))
63309
+ return "tags: object expected";
63310
+ var key = Object.keys(message.tags);
63311
+ for (var i = 0; i < key.length; ++i) {
63312
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
63313
+ if (error)
63314
+ return "tags." + error;
63315
+ }
63316
+ }
63235
63317
  return null;
63236
63318
  };
63237
63319
 
@@ -63292,6 +63374,16 @@ $root.WorkoutPlaylistUpdated = (function() {
63292
63374
  message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
63293
63375
  }
63294
63376
  }
63377
+ if (object.tags) {
63378
+ if (typeof object.tags !== "object")
63379
+ throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
63380
+ message.tags = {};
63381
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
63382
+ if (typeof object.tags[keys[i]] !== "object")
63383
+ throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
63384
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
63385
+ }
63386
+ }
63295
63387
  return message;
63296
63388
  };
63297
63389
 
@@ -63313,6 +63405,7 @@ $root.WorkoutPlaylistUpdated = (function() {
63313
63405
  if (options.objects || options.defaults) {
63314
63406
  object.tileMedia = {};
63315
63407
  object.headerImageMedia = {};
63408
+ object.tags = {};
63316
63409
  }
63317
63410
  if (options.defaults) {
63318
63411
  object.slug = "";
@@ -63351,6 +63444,11 @@ $root.WorkoutPlaylistUpdated = (function() {
63351
63444
  for (var j = 0; j < keys2.length; ++j)
63352
63445
  object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
63353
63446
  }
63447
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
63448
+ object.tags = {};
63449
+ for (var j = 0; j < keys2.length; ++j)
63450
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
63451
+ }
63354
63452
  return object;
63355
63453
  };
63356
63454
 
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.221.0"
20
20
  }