@headspace/protos-events 1.133.0 → 1.135.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +96 -12
  2. package/lib/index.js +246 -120
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -4186,9 +4186,6 @@ export interface IContentfulWorkoutPlaylistCreated {
4186
4186
  /** ContentfulWorkoutPlaylistCreated playerOrientation */
4187
4187
  playerOrientation?: ({ [k: string]: string }|null);
4188
4188
 
4189
- /** ContentfulWorkoutPlaylistCreated previewMedia */
4190
- previewMedia?: ({ [k: string]: contentful.IIdReference }|null);
4191
-
4192
4189
  /** ContentfulWorkoutPlaylistCreated videoSegments */
4193
4190
  videoSegments?: ({ [k: string]: contentful.IIdReferences }|null);
4194
4191
 
@@ -4238,9 +4235,6 @@ export class ContentfulWorkoutPlaylistCreated implements IContentfulWorkoutPlayl
4238
4235
  /** ContentfulWorkoutPlaylistCreated playerOrientation. */
4239
4236
  public playerOrientation: { [k: string]: string };
4240
4237
 
4241
- /** ContentfulWorkoutPlaylistCreated previewMedia. */
4242
- public previewMedia: { [k: string]: contentful.IIdReference };
4243
-
4244
4238
  /** ContentfulWorkoutPlaylistCreated videoSegments. */
4245
4239
  public videoSegments: { [k: string]: contentful.IIdReferences };
4246
4240
 
@@ -4354,9 +4348,6 @@ export interface IContentfulWorkoutPlaylistUpdated {
4354
4348
  /** ContentfulWorkoutPlaylistUpdated playerOrientation */
4355
4349
  playerOrientation?: ({ [k: string]: string }|null);
4356
4350
 
4357
- /** ContentfulWorkoutPlaylistUpdated previewMedia */
4358
- previewMedia?: ({ [k: string]: contentful.IIdReference }|null);
4359
-
4360
4351
  /** ContentfulWorkoutPlaylistUpdated videoSegments */
4361
4352
  videoSegments?: ({ [k: string]: contentful.IIdReferences }|null);
4362
4353
 
@@ -4406,9 +4397,6 @@ export class ContentfulWorkoutPlaylistUpdated implements IContentfulWorkoutPlayl
4406
4397
  /** ContentfulWorkoutPlaylistUpdated playerOrientation. */
4407
4398
  public playerOrientation: { [k: string]: string };
4408
4399
 
4409
- /** ContentfulWorkoutPlaylistUpdated previewMedia. */
4410
- public previewMedia: { [k: string]: contentful.IIdReference };
4411
-
4412
4400
  /** ContentfulWorkoutPlaylistUpdated videoSegments. */
4413
4401
  public videoSegments: { [k: string]: contentful.IIdReferences };
4414
4402
 
@@ -15877,3 +15865,99 @@ export class UserUnsubscribeRequested implements IUserUnsubscribeRequested {
15877
15865
  */
15878
15866
  public toJSON(): { [k: string]: any };
15879
15867
  }
15868
+
15869
+ /** Properties of a VirginPulseAccountLinked. */
15870
+ export interface IVirginPulseAccountLinked {
15871
+
15872
+ /** VirginPulseAccountLinked timestamp */
15873
+ timestamp?: (number|Long|null);
15874
+
15875
+ /** VirginPulseAccountLinked userId */
15876
+ userId?: (string|null);
15877
+ }
15878
+
15879
+ /** Represents a VirginPulseAccountLinked. */
15880
+ export class VirginPulseAccountLinked implements IVirginPulseAccountLinked {
15881
+
15882
+ /**
15883
+ * Constructs a new VirginPulseAccountLinked.
15884
+ * @param [properties] Properties to set
15885
+ */
15886
+ constructor(properties?: IVirginPulseAccountLinked);
15887
+
15888
+ /** VirginPulseAccountLinked timestamp. */
15889
+ public timestamp: (number|Long);
15890
+
15891
+ /** VirginPulseAccountLinked userId. */
15892
+ public userId: string;
15893
+
15894
+ /**
15895
+ * Creates a new VirginPulseAccountLinked instance using the specified properties.
15896
+ * @param [properties] Properties to set
15897
+ * @returns VirginPulseAccountLinked instance
15898
+ */
15899
+ public static create(properties?: IVirginPulseAccountLinked): VirginPulseAccountLinked;
15900
+
15901
+ /**
15902
+ * Encodes the specified VirginPulseAccountLinked message. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
15903
+ * @param message VirginPulseAccountLinked message or plain object to encode
15904
+ * @param [writer] Writer to encode to
15905
+ * @returns Writer
15906
+ */
15907
+ public static encode(message: IVirginPulseAccountLinked, writer?: $protobuf.Writer): $protobuf.Writer;
15908
+
15909
+ /**
15910
+ * Encodes the specified VirginPulseAccountLinked message, length delimited. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
15911
+ * @param message VirginPulseAccountLinked message or plain object to encode
15912
+ * @param [writer] Writer to encode to
15913
+ * @returns Writer
15914
+ */
15915
+ public static encodeDelimited(message: IVirginPulseAccountLinked, writer?: $protobuf.Writer): $protobuf.Writer;
15916
+
15917
+ /**
15918
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer.
15919
+ * @param reader Reader or buffer to decode from
15920
+ * @param [length] Message length if known beforehand
15921
+ * @returns VirginPulseAccountLinked
15922
+ * @throws {Error} If the payload is not a reader or valid buffer
15923
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15924
+ */
15925
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VirginPulseAccountLinked;
15926
+
15927
+ /**
15928
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer, length delimited.
15929
+ * @param reader Reader or buffer to decode from
15930
+ * @returns VirginPulseAccountLinked
15931
+ * @throws {Error} If the payload is not a reader or valid buffer
15932
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15933
+ */
15934
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VirginPulseAccountLinked;
15935
+
15936
+ /**
15937
+ * Verifies a VirginPulseAccountLinked message.
15938
+ * @param message Plain object to verify
15939
+ * @returns `null` if valid, otherwise the reason why it is not
15940
+ */
15941
+ public static verify(message: { [k: string]: any }): (string|null);
15942
+
15943
+ /**
15944
+ * Creates a VirginPulseAccountLinked message from a plain object. Also converts values to their respective internal types.
15945
+ * @param object Plain object
15946
+ * @returns VirginPulseAccountLinked
15947
+ */
15948
+ public static fromObject(object: { [k: string]: any }): VirginPulseAccountLinked;
15949
+
15950
+ /**
15951
+ * Creates a plain object from a VirginPulseAccountLinked message. Also converts values to other types if specified.
15952
+ * @param message VirginPulseAccountLinked
15953
+ * @param [options] Conversion options
15954
+ * @returns Plain object
15955
+ */
15956
+ public static toObject(message: VirginPulseAccountLinked, options?: $protobuf.IConversionOptions): { [k: string]: any };
15957
+
15958
+ /**
15959
+ * Converts this VirginPulseAccountLinked to JSON.
15960
+ * @returns JSON object
15961
+ */
15962
+ public toJSON(): { [k: string]: any };
15963
+ }
package/lib/index.js CHANGED
@@ -10706,7 +10706,6 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
10706
10706
  * @property {Object.<string,string>|null} [teaser] ContentfulWorkoutPlaylistCreated teaser
10707
10707
  * @property {Object.<string,string>|null} [description] ContentfulWorkoutPlaylistCreated description
10708
10708
  * @property {Object.<string,string>|null} [playerOrientation] ContentfulWorkoutPlaylistCreated playerOrientation
10709
- * @property {Object.<string,contentful.IIdReference>|null} [previewMedia] ContentfulWorkoutPlaylistCreated previewMedia
10710
10709
  * @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulWorkoutPlaylistCreated videoSegments
10711
10710
  * @property {Object.<string,number>|null} [duration] ContentfulWorkoutPlaylistCreated duration
10712
10711
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulWorkoutPlaylistCreated tileMedia
@@ -10729,7 +10728,6 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
10729
10728
  this.teaser = {};
10730
10729
  this.description = {};
10731
10730
  this.playerOrientation = {};
10732
- this.previewMedia = {};
10733
10731
  this.videoSegments = {};
10734
10732
  this.duration = {};
10735
10733
  this.tileMedia = {};
@@ -10797,14 +10795,6 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
10797
10795
  */
10798
10796
  ContentfulWorkoutPlaylistCreated.prototype.playerOrientation = $util.emptyObject;
10799
10797
 
10800
- /**
10801
- * ContentfulWorkoutPlaylistCreated previewMedia.
10802
- * @member {Object.<string,contentful.IIdReference>} previewMedia
10803
- * @memberof ContentfulWorkoutPlaylistCreated
10804
- * @instance
10805
- */
10806
- ContentfulWorkoutPlaylistCreated.prototype.previewMedia = $util.emptyObject;
10807
-
10808
10798
  /**
10809
10799
  * ContentfulWorkoutPlaylistCreated videoSegments.
10810
10800
  * @member {Object.<string,contentful.IIdReferences>} videoSegments
@@ -10896,34 +10886,29 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
10896
10886
  if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation"))
10897
10887
  for (var keys = Object.keys(message.playerOrientation), i = 0; i < keys.length; ++i)
10898
10888
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.playerOrientation[keys[i]]).ldelim();
10899
- if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
10900
- for (var keys = Object.keys(message.previewMedia), i = 0; i < keys.length; ++i) {
10901
- writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
10902
- $root.contentful.IdReference.encode(message.previewMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
10903
- }
10904
10889
  if (message.videoSegments != null && message.hasOwnProperty("videoSegments"))
10905
10890
  for (var keys = Object.keys(message.videoSegments), i = 0; i < keys.length; ++i) {
10906
- writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
10891
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
10907
10892
  $root.contentful.IdReferences.encode(message.videoSegments[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
10908
10893
  }
10909
10894
  if (message.duration != null && message.hasOwnProperty("duration"))
10910
10895
  for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
10911
- writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
10896
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
10912
10897
  if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
10913
10898
  for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
10914
- writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
10899
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
10915
10900
  $root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
10916
10901
  }
10917
10902
  if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
10918
10903
  for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
10919
- writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
10904
+ writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
10920
10905
  $root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
10921
10906
  }
10922
10907
  if (message.accessGroups != null && message.accessGroups.length)
10923
10908
  for (var i = 0; i < message.accessGroups.length; ++i)
10924
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
10909
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
10925
10910
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
10926
- writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.createdAt);
10911
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
10927
10912
  return writer;
10928
10913
  };
10929
10914
 
@@ -11005,14 +10990,6 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11005
10990
  message.playerOrientation[key] = reader.string();
11006
10991
  break;
11007
10992
  case 8:
11008
- reader.skip().pos++;
11009
- if (message.previewMedia === $util.emptyObject)
11010
- message.previewMedia = {};
11011
- key = reader.string();
11012
- reader.pos++;
11013
- message.previewMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
11014
- break;
11015
- case 9:
11016
10993
  reader.skip().pos++;
11017
10994
  if (message.videoSegments === $util.emptyObject)
11018
10995
  message.videoSegments = {};
@@ -11020,7 +10997,7 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11020
10997
  reader.pos++;
11021
10998
  message.videoSegments[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
11022
10999
  break;
11023
- case 10:
11000
+ case 9:
11024
11001
  reader.skip().pos++;
11025
11002
  if (message.duration === $util.emptyObject)
11026
11003
  message.duration = {};
@@ -11028,7 +11005,7 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11028
11005
  reader.pos++;
11029
11006
  message.duration[key] = reader.int32();
11030
11007
  break;
11031
- case 11:
11008
+ case 10:
11032
11009
  reader.skip().pos++;
11033
11010
  if (message.tileMedia === $util.emptyObject)
11034
11011
  message.tileMedia = {};
@@ -11036,7 +11013,7 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11036
11013
  reader.pos++;
11037
11014
  message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
11038
11015
  break;
11039
- case 12:
11016
+ case 11:
11040
11017
  reader.skip().pos++;
11041
11018
  if (message.headerImageMedia === $util.emptyObject)
11042
11019
  message.headerImageMedia = {};
@@ -11044,12 +11021,12 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11044
11021
  reader.pos++;
11045
11022
  message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
11046
11023
  break;
11047
- case 13:
11024
+ case 12:
11048
11025
  if (!(message.accessGroups && message.accessGroups.length))
11049
11026
  message.accessGroups = [];
11050
11027
  message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
11051
11028
  break;
11052
- case 14:
11029
+ case 13:
11053
11030
  message.createdAt = reader.uint64();
11054
11031
  break;
11055
11032
  default:
@@ -11133,16 +11110,6 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11133
11110
  if (!$util.isString(message.playerOrientation[key[i]]))
11134
11111
  return "playerOrientation: string{k:string} expected";
11135
11112
  }
11136
- if (message.previewMedia != null && message.hasOwnProperty("previewMedia")) {
11137
- if (!$util.isObject(message.previewMedia))
11138
- return "previewMedia: object expected";
11139
- var key = Object.keys(message.previewMedia);
11140
- for (var i = 0; i < key.length; ++i) {
11141
- var error = $root.contentful.IdReference.verify(message.previewMedia[key[i]]);
11142
- if (error)
11143
- return "previewMedia." + error;
11144
- }
11145
- }
11146
11113
  if (message.videoSegments != null && message.hasOwnProperty("videoSegments")) {
11147
11114
  if (!$util.isObject(message.videoSegments))
11148
11115
  return "videoSegments: object expected";
@@ -11247,16 +11214,6 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11247
11214
  for (var keys = Object.keys(object.playerOrientation), i = 0; i < keys.length; ++i)
11248
11215
  message.playerOrientation[keys[i]] = String(object.playerOrientation[keys[i]]);
11249
11216
  }
11250
- if (object.previewMedia) {
11251
- if (typeof object.previewMedia !== "object")
11252
- throw TypeError(".ContentfulWorkoutPlaylistCreated.previewMedia: object expected");
11253
- message.previewMedia = {};
11254
- for (var keys = Object.keys(object.previewMedia), i = 0; i < keys.length; ++i) {
11255
- if (typeof object.previewMedia[keys[i]] !== "object")
11256
- throw TypeError(".ContentfulWorkoutPlaylistCreated.previewMedia: object expected");
11257
- message.previewMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.previewMedia[keys[i]]);
11258
- }
11259
- }
11260
11217
  if (object.videoSegments) {
11261
11218
  if (typeof object.videoSegments !== "object")
11262
11219
  throw TypeError(".ContentfulWorkoutPlaylistCreated.videoSegments: object expected");
@@ -11337,7 +11294,6 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11337
11294
  object.teaser = {};
11338
11295
  object.description = {};
11339
11296
  object.playerOrientation = {};
11340
- object.previewMedia = {};
11341
11297
  object.videoSegments = {};
11342
11298
  object.duration = {};
11343
11299
  object.tileMedia = {};
@@ -11382,11 +11338,6 @@ $root.ContentfulWorkoutPlaylistCreated = (function() {
11382
11338
  for (var j = 0; j < keys2.length; ++j)
11383
11339
  object.playerOrientation[keys2[j]] = message.playerOrientation[keys2[j]];
11384
11340
  }
11385
- if (message.previewMedia && (keys2 = Object.keys(message.previewMedia)).length) {
11386
- object.previewMedia = {};
11387
- for (var j = 0; j < keys2.length; ++j)
11388
- object.previewMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.previewMedia[keys2[j]], options);
11389
- }
11390
11341
  if (message.videoSegments && (keys2 = Object.keys(message.videoSegments)).length) {
11391
11342
  object.videoSegments = {};
11392
11343
  for (var j = 0; j < keys2.length; ++j)
@@ -11447,7 +11398,6 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11447
11398
  * @property {Object.<string,string>|null} [teaser] ContentfulWorkoutPlaylistUpdated teaser
11448
11399
  * @property {Object.<string,string>|null} [description] ContentfulWorkoutPlaylistUpdated description
11449
11400
  * @property {Object.<string,string>|null} [playerOrientation] ContentfulWorkoutPlaylistUpdated playerOrientation
11450
- * @property {Object.<string,contentful.IIdReference>|null} [previewMedia] ContentfulWorkoutPlaylistUpdated previewMedia
11451
11401
  * @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulWorkoutPlaylistUpdated videoSegments
11452
11402
  * @property {Object.<string,number>|null} [duration] ContentfulWorkoutPlaylistUpdated duration
11453
11403
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulWorkoutPlaylistUpdated tileMedia
@@ -11470,7 +11420,6 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11470
11420
  this.teaser = {};
11471
11421
  this.description = {};
11472
11422
  this.playerOrientation = {};
11473
- this.previewMedia = {};
11474
11423
  this.videoSegments = {};
11475
11424
  this.duration = {};
11476
11425
  this.tileMedia = {};
@@ -11538,14 +11487,6 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11538
11487
  */
11539
11488
  ContentfulWorkoutPlaylistUpdated.prototype.playerOrientation = $util.emptyObject;
11540
11489
 
11541
- /**
11542
- * ContentfulWorkoutPlaylistUpdated previewMedia.
11543
- * @member {Object.<string,contentful.IIdReference>} previewMedia
11544
- * @memberof ContentfulWorkoutPlaylistUpdated
11545
- * @instance
11546
- */
11547
- ContentfulWorkoutPlaylistUpdated.prototype.previewMedia = $util.emptyObject;
11548
-
11549
11490
  /**
11550
11491
  * ContentfulWorkoutPlaylistUpdated videoSegments.
11551
11492
  * @member {Object.<string,contentful.IIdReferences>} videoSegments
@@ -11637,34 +11578,29 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11637
11578
  if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation"))
11638
11579
  for (var keys = Object.keys(message.playerOrientation), i = 0; i < keys.length; ++i)
11639
11580
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.playerOrientation[keys[i]]).ldelim();
11640
- if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
11641
- for (var keys = Object.keys(message.previewMedia), i = 0; i < keys.length; ++i) {
11642
- writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
11643
- $root.contentful.IdReference.encode(message.previewMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
11644
- }
11645
11581
  if (message.videoSegments != null && message.hasOwnProperty("videoSegments"))
11646
11582
  for (var keys = Object.keys(message.videoSegments), i = 0; i < keys.length; ++i) {
11647
- writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
11583
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
11648
11584
  $root.contentful.IdReferences.encode(message.videoSegments[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
11649
11585
  }
11650
11586
  if (message.duration != null && message.hasOwnProperty("duration"))
11651
11587
  for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
11652
- writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
11588
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
11653
11589
  if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
11654
11590
  for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
11655
- writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
11591
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
11656
11592
  $root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
11657
11593
  }
11658
11594
  if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
11659
11595
  for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
11660
- writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
11596
+ writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
11661
11597
  $root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
11662
11598
  }
11663
11599
  if (message.accessGroups != null && message.accessGroups.length)
11664
11600
  for (var i = 0; i < message.accessGroups.length; ++i)
11665
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
11601
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
11666
11602
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
11667
- writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.updatedAt);
11603
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
11668
11604
  return writer;
11669
11605
  };
11670
11606
 
@@ -11746,14 +11682,6 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11746
11682
  message.playerOrientation[key] = reader.string();
11747
11683
  break;
11748
11684
  case 8:
11749
- reader.skip().pos++;
11750
- if (message.previewMedia === $util.emptyObject)
11751
- message.previewMedia = {};
11752
- key = reader.string();
11753
- reader.pos++;
11754
- message.previewMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
11755
- break;
11756
- case 9:
11757
11685
  reader.skip().pos++;
11758
11686
  if (message.videoSegments === $util.emptyObject)
11759
11687
  message.videoSegments = {};
@@ -11761,7 +11689,7 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11761
11689
  reader.pos++;
11762
11690
  message.videoSegments[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
11763
11691
  break;
11764
- case 10:
11692
+ case 9:
11765
11693
  reader.skip().pos++;
11766
11694
  if (message.duration === $util.emptyObject)
11767
11695
  message.duration = {};
@@ -11769,7 +11697,7 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11769
11697
  reader.pos++;
11770
11698
  message.duration[key] = reader.int32();
11771
11699
  break;
11772
- case 11:
11700
+ case 10:
11773
11701
  reader.skip().pos++;
11774
11702
  if (message.tileMedia === $util.emptyObject)
11775
11703
  message.tileMedia = {};
@@ -11777,7 +11705,7 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11777
11705
  reader.pos++;
11778
11706
  message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
11779
11707
  break;
11780
- case 12:
11708
+ case 11:
11781
11709
  reader.skip().pos++;
11782
11710
  if (message.headerImageMedia === $util.emptyObject)
11783
11711
  message.headerImageMedia = {};
@@ -11785,12 +11713,12 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11785
11713
  reader.pos++;
11786
11714
  message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
11787
11715
  break;
11788
- case 13:
11716
+ case 12:
11789
11717
  if (!(message.accessGroups && message.accessGroups.length))
11790
11718
  message.accessGroups = [];
11791
11719
  message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
11792
11720
  break;
11793
- case 14:
11721
+ case 13:
11794
11722
  message.updatedAt = reader.uint64();
11795
11723
  break;
11796
11724
  default:
@@ -11874,16 +11802,6 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11874
11802
  if (!$util.isString(message.playerOrientation[key[i]]))
11875
11803
  return "playerOrientation: string{k:string} expected";
11876
11804
  }
11877
- if (message.previewMedia != null && message.hasOwnProperty("previewMedia")) {
11878
- if (!$util.isObject(message.previewMedia))
11879
- return "previewMedia: object expected";
11880
- var key = Object.keys(message.previewMedia);
11881
- for (var i = 0; i < key.length; ++i) {
11882
- var error = $root.contentful.IdReference.verify(message.previewMedia[key[i]]);
11883
- if (error)
11884
- return "previewMedia." + error;
11885
- }
11886
- }
11887
11805
  if (message.videoSegments != null && message.hasOwnProperty("videoSegments")) {
11888
11806
  if (!$util.isObject(message.videoSegments))
11889
11807
  return "videoSegments: object expected";
@@ -11988,16 +11906,6 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
11988
11906
  for (var keys = Object.keys(object.playerOrientation), i = 0; i < keys.length; ++i)
11989
11907
  message.playerOrientation[keys[i]] = String(object.playerOrientation[keys[i]]);
11990
11908
  }
11991
- if (object.previewMedia) {
11992
- if (typeof object.previewMedia !== "object")
11993
- throw TypeError(".ContentfulWorkoutPlaylistUpdated.previewMedia: object expected");
11994
- message.previewMedia = {};
11995
- for (var keys = Object.keys(object.previewMedia), i = 0; i < keys.length; ++i) {
11996
- if (typeof object.previewMedia[keys[i]] !== "object")
11997
- throw TypeError(".ContentfulWorkoutPlaylistUpdated.previewMedia: object expected");
11998
- message.previewMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.previewMedia[keys[i]]);
11999
- }
12000
- }
12001
11909
  if (object.videoSegments) {
12002
11910
  if (typeof object.videoSegments !== "object")
12003
11911
  throw TypeError(".ContentfulWorkoutPlaylistUpdated.videoSegments: object expected");
@@ -12078,7 +11986,6 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
12078
11986
  object.teaser = {};
12079
11987
  object.description = {};
12080
11988
  object.playerOrientation = {};
12081
- object.previewMedia = {};
12082
11989
  object.videoSegments = {};
12083
11990
  object.duration = {};
12084
11991
  object.tileMedia = {};
@@ -12123,11 +12030,6 @@ $root.ContentfulWorkoutPlaylistUpdated = (function() {
12123
12030
  for (var j = 0; j < keys2.length; ++j)
12124
12031
  object.playerOrientation[keys2[j]] = message.playerOrientation[keys2[j]];
12125
12032
  }
12126
- if (message.previewMedia && (keys2 = Object.keys(message.previewMedia)).length) {
12127
- object.previewMedia = {};
12128
- for (var j = 0; j < keys2.length; ++j)
12129
- object.previewMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.previewMedia[keys2[j]], options);
12130
- }
12131
12033
  if (message.videoSegments && (keys2 = Object.keys(message.videoSegments)).length) {
12132
12034
  object.videoSegments = {};
12133
12035
  for (var j = 0; j < keys2.length; ++j)
@@ -43705,4 +43607,228 @@ $root.UserUnsubscribeRequested = (function() {
43705
43607
  return UserUnsubscribeRequested;
43706
43608
  })();
43707
43609
 
43610
+ $root.VirginPulseAccountLinked = (function() {
43611
+
43612
+ /**
43613
+ * Properties of a VirginPulseAccountLinked.
43614
+ * @exports IVirginPulseAccountLinked
43615
+ * @interface IVirginPulseAccountLinked
43616
+ * @property {number|Long|null} [timestamp] VirginPulseAccountLinked timestamp
43617
+ * @property {string|null} [userId] VirginPulseAccountLinked userId
43618
+ */
43619
+
43620
+ /**
43621
+ * Constructs a new VirginPulseAccountLinked.
43622
+ * @exports VirginPulseAccountLinked
43623
+ * @classdesc Represents a VirginPulseAccountLinked.
43624
+ * @implements IVirginPulseAccountLinked
43625
+ * @constructor
43626
+ * @param {IVirginPulseAccountLinked=} [properties] Properties to set
43627
+ */
43628
+ function VirginPulseAccountLinked(properties) {
43629
+ if (properties)
43630
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
43631
+ if (properties[keys[i]] != null)
43632
+ this[keys[i]] = properties[keys[i]];
43633
+ }
43634
+
43635
+ /**
43636
+ * VirginPulseAccountLinked timestamp.
43637
+ * @member {number|Long} timestamp
43638
+ * @memberof VirginPulseAccountLinked
43639
+ * @instance
43640
+ */
43641
+ VirginPulseAccountLinked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
43642
+
43643
+ /**
43644
+ * VirginPulseAccountLinked userId.
43645
+ * @member {string} userId
43646
+ * @memberof VirginPulseAccountLinked
43647
+ * @instance
43648
+ */
43649
+ VirginPulseAccountLinked.prototype.userId = "";
43650
+
43651
+ /**
43652
+ * Creates a new VirginPulseAccountLinked instance using the specified properties.
43653
+ * @function create
43654
+ * @memberof VirginPulseAccountLinked
43655
+ * @static
43656
+ * @param {IVirginPulseAccountLinked=} [properties] Properties to set
43657
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked instance
43658
+ */
43659
+ VirginPulseAccountLinked.create = function create(properties) {
43660
+ return new VirginPulseAccountLinked(properties);
43661
+ };
43662
+
43663
+ /**
43664
+ * Encodes the specified VirginPulseAccountLinked message. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
43665
+ * @function encode
43666
+ * @memberof VirginPulseAccountLinked
43667
+ * @static
43668
+ * @param {IVirginPulseAccountLinked} message VirginPulseAccountLinked message or plain object to encode
43669
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43670
+ * @returns {$protobuf.Writer} Writer
43671
+ */
43672
+ VirginPulseAccountLinked.encode = function encode(message, writer) {
43673
+ if (!writer)
43674
+ writer = $Writer.create();
43675
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
43676
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
43677
+ if (message.userId != null && message.hasOwnProperty("userId"))
43678
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
43679
+ return writer;
43680
+ };
43681
+
43682
+ /**
43683
+ * Encodes the specified VirginPulseAccountLinked message, length delimited. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
43684
+ * @function encodeDelimited
43685
+ * @memberof VirginPulseAccountLinked
43686
+ * @static
43687
+ * @param {IVirginPulseAccountLinked} message VirginPulseAccountLinked message or plain object to encode
43688
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43689
+ * @returns {$protobuf.Writer} Writer
43690
+ */
43691
+ VirginPulseAccountLinked.encodeDelimited = function encodeDelimited(message, writer) {
43692
+ return this.encode(message, writer).ldelim();
43693
+ };
43694
+
43695
+ /**
43696
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer.
43697
+ * @function decode
43698
+ * @memberof VirginPulseAccountLinked
43699
+ * @static
43700
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43701
+ * @param {number} [length] Message length if known beforehand
43702
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
43703
+ * @throws {Error} If the payload is not a reader or valid buffer
43704
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43705
+ */
43706
+ VirginPulseAccountLinked.decode = function decode(reader, length) {
43707
+ if (!(reader instanceof $Reader))
43708
+ reader = $Reader.create(reader);
43709
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VirginPulseAccountLinked();
43710
+ while (reader.pos < end) {
43711
+ var tag = reader.uint32();
43712
+ switch (tag >>> 3) {
43713
+ case 1:
43714
+ message.timestamp = reader.uint64();
43715
+ break;
43716
+ case 2:
43717
+ message.userId = reader.string();
43718
+ break;
43719
+ default:
43720
+ reader.skipType(tag & 7);
43721
+ break;
43722
+ }
43723
+ }
43724
+ return message;
43725
+ };
43726
+
43727
+ /**
43728
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer, length delimited.
43729
+ * @function decodeDelimited
43730
+ * @memberof VirginPulseAccountLinked
43731
+ * @static
43732
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43733
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
43734
+ * @throws {Error} If the payload is not a reader or valid buffer
43735
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43736
+ */
43737
+ VirginPulseAccountLinked.decodeDelimited = function decodeDelimited(reader) {
43738
+ if (!(reader instanceof $Reader))
43739
+ reader = new $Reader(reader);
43740
+ return this.decode(reader, reader.uint32());
43741
+ };
43742
+
43743
+ /**
43744
+ * Verifies a VirginPulseAccountLinked message.
43745
+ * @function verify
43746
+ * @memberof VirginPulseAccountLinked
43747
+ * @static
43748
+ * @param {Object.<string,*>} message Plain object to verify
43749
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
43750
+ */
43751
+ VirginPulseAccountLinked.verify = function verify(message) {
43752
+ if (typeof message !== "object" || message === null)
43753
+ return "object expected";
43754
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
43755
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
43756
+ return "timestamp: integer|Long expected";
43757
+ if (message.userId != null && message.hasOwnProperty("userId"))
43758
+ if (!$util.isString(message.userId))
43759
+ return "userId: string expected";
43760
+ return null;
43761
+ };
43762
+
43763
+ /**
43764
+ * Creates a VirginPulseAccountLinked message from a plain object. Also converts values to their respective internal types.
43765
+ * @function fromObject
43766
+ * @memberof VirginPulseAccountLinked
43767
+ * @static
43768
+ * @param {Object.<string,*>} object Plain object
43769
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
43770
+ */
43771
+ VirginPulseAccountLinked.fromObject = function fromObject(object) {
43772
+ if (object instanceof $root.VirginPulseAccountLinked)
43773
+ return object;
43774
+ var message = new $root.VirginPulseAccountLinked();
43775
+ if (object.timestamp != null)
43776
+ if ($util.Long)
43777
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
43778
+ else if (typeof object.timestamp === "string")
43779
+ message.timestamp = parseInt(object.timestamp, 10);
43780
+ else if (typeof object.timestamp === "number")
43781
+ message.timestamp = object.timestamp;
43782
+ else if (typeof object.timestamp === "object")
43783
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
43784
+ if (object.userId != null)
43785
+ message.userId = String(object.userId);
43786
+ return message;
43787
+ };
43788
+
43789
+ /**
43790
+ * Creates a plain object from a VirginPulseAccountLinked message. Also converts values to other types if specified.
43791
+ * @function toObject
43792
+ * @memberof VirginPulseAccountLinked
43793
+ * @static
43794
+ * @param {VirginPulseAccountLinked} message VirginPulseAccountLinked
43795
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
43796
+ * @returns {Object.<string,*>} Plain object
43797
+ */
43798
+ VirginPulseAccountLinked.toObject = function toObject(message, options) {
43799
+ if (!options)
43800
+ options = {};
43801
+ var object = {};
43802
+ if (options.defaults) {
43803
+ if ($util.Long) {
43804
+ var long = new $util.Long(0, 0, true);
43805
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
43806
+ } else
43807
+ object.timestamp = options.longs === String ? "0" : 0;
43808
+ object.userId = "";
43809
+ }
43810
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
43811
+ if (typeof message.timestamp === "number")
43812
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
43813
+ else
43814
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
43815
+ if (message.userId != null && message.hasOwnProperty("userId"))
43816
+ object.userId = message.userId;
43817
+ return object;
43818
+ };
43819
+
43820
+ /**
43821
+ * Converts this VirginPulseAccountLinked to JSON.
43822
+ * @function toJSON
43823
+ * @memberof VirginPulseAccountLinked
43824
+ * @instance
43825
+ * @returns {Object.<string,*>} JSON object
43826
+ */
43827
+ VirginPulseAccountLinked.prototype.toJSON = function toJSON() {
43828
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
43829
+ };
43830
+
43831
+ return VirginPulseAccountLinked;
43832
+ })();
43833
+
43708
43834
  module.exports = $root;
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.133.0"
19
+ "version": "1.135.0"
20
20
  }