@headspace/protos-events 1.592.0 → 1.594.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
@@ -36210,6 +36210,9 @@ export interface IB2BPartnerConsentCreated {
36210
36210
 
36211
36211
  /** B2BPartnerConsentCreated timestamp */
36212
36212
  timestamp?: (number|Long|null);
36213
+
36214
+ /** B2BPartnerConsentCreated consentCode */
36215
+ consentCode?: (string|null);
36213
36216
  }
36214
36217
 
36215
36218
  /** Represents a B2BPartnerConsentCreated. */
@@ -36230,6 +36233,9 @@ export class B2BPartnerConsentCreated implements IB2BPartnerConsentCreated {
36230
36233
  /** B2BPartnerConsentCreated timestamp. */
36231
36234
  public timestamp: (number|Long);
36232
36235
 
36236
+ /** B2BPartnerConsentCreated consentCode. */
36237
+ public consentCode: string;
36238
+
36233
36239
  /**
36234
36240
  * Creates a new B2BPartnerConsentCreated instance using the specified properties.
36235
36241
  * @param [properties] Properties to set
@@ -36315,6 +36321,9 @@ export interface IB2BMemberPartnerConsentRequested {
36315
36321
 
36316
36322
  /** B2BMemberPartnerConsentRequested orgId */
36317
36323
  orgId?: (number|null);
36324
+
36325
+ /** B2BMemberPartnerConsentRequested consentCode */
36326
+ consentCode?: (string|null);
36318
36327
  }
36319
36328
 
36320
36329
  /** Represents a B2BMemberPartnerConsentRequested. */
@@ -36338,6 +36347,9 @@ export class B2BMemberPartnerConsentRequested implements IB2BMemberPartnerConsen
36338
36347
  /** B2BMemberPartnerConsentRequested orgId. */
36339
36348
  public orgId: number;
36340
36349
 
36350
+ /** B2BMemberPartnerConsentRequested consentCode. */
36351
+ public consentCode: string;
36352
+
36341
36353
  /**
36342
36354
  * Creates a new B2BMemberPartnerConsentRequested instance using the specified properties.
36343
36355
  * @param [properties] Properties to set
@@ -36417,6 +36429,9 @@ export interface IB2BMemberPartnerConsentRemovalRequested {
36417
36429
 
36418
36430
  /** B2BMemberPartnerConsentRemovalRequested timestamp */
36419
36431
  timestamp?: (number|Long|null);
36432
+
36433
+ /** B2BMemberPartnerConsentRemovalRequested consentCode */
36434
+ consentCode?: (string|null);
36420
36435
  }
36421
36436
 
36422
36437
  /** Represents a B2BMemberPartnerConsentRemovalRequested. */
@@ -36434,6 +36449,9 @@ export class B2BMemberPartnerConsentRemovalRequested implements IB2BMemberPartne
36434
36449
  /** B2BMemberPartnerConsentRemovalRequested timestamp. */
36435
36450
  public timestamp: (number|Long);
36436
36451
 
36452
+ /** B2BMemberPartnerConsentRemovalRequested consentCode. */
36453
+ public consentCode: string;
36454
+
36437
36455
  /**
36438
36456
  * Creates a new B2BMemberPartnerConsentRemovalRequested instance using the specified properties.
36439
36457
  * @param [properties] Properties to set
@@ -48633,6 +48651,108 @@ export class UserOnboardingTopicResponses implements IUserOnboardingTopicRespons
48633
48651
  public toJSON(): { [k: string]: any };
48634
48652
  }
48635
48653
 
48654
+ /** Properties of an OnboardingCompleted. */
48655
+ export interface IOnboardingCompleted {
48656
+
48657
+ /** OnboardingCompleted hsUserId */
48658
+ hsUserId?: (string|null);
48659
+
48660
+ /** OnboardingCompleted gingerUserId */
48661
+ gingerUserId?: (number|null);
48662
+
48663
+ /** OnboardingCompleted completedAtIsoDate */
48664
+ completedAtIsoDate?: (string|null);
48665
+ }
48666
+
48667
+ /** Represents an OnboardingCompleted. */
48668
+ export class OnboardingCompleted implements IOnboardingCompleted {
48669
+
48670
+ /**
48671
+ * Constructs a new OnboardingCompleted.
48672
+ * @param [properties] Properties to set
48673
+ */
48674
+ constructor(properties?: IOnboardingCompleted);
48675
+
48676
+ /** OnboardingCompleted hsUserId. */
48677
+ public hsUserId: string;
48678
+
48679
+ /** OnboardingCompleted gingerUserId. */
48680
+ public gingerUserId: number;
48681
+
48682
+ /** OnboardingCompleted completedAtIsoDate. */
48683
+ public completedAtIsoDate: string;
48684
+
48685
+ /**
48686
+ * Creates a new OnboardingCompleted instance using the specified properties.
48687
+ * @param [properties] Properties to set
48688
+ * @returns OnboardingCompleted instance
48689
+ */
48690
+ public static create(properties?: IOnboardingCompleted): OnboardingCompleted;
48691
+
48692
+ /**
48693
+ * Encodes the specified OnboardingCompleted message. Does not implicitly {@link OnboardingCompleted.verify|verify} messages.
48694
+ * @param message OnboardingCompleted message or plain object to encode
48695
+ * @param [writer] Writer to encode to
48696
+ * @returns Writer
48697
+ */
48698
+ public static encode(message: IOnboardingCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
48699
+
48700
+ /**
48701
+ * Encodes the specified OnboardingCompleted message, length delimited. Does not implicitly {@link OnboardingCompleted.verify|verify} messages.
48702
+ * @param message OnboardingCompleted message or plain object to encode
48703
+ * @param [writer] Writer to encode to
48704
+ * @returns Writer
48705
+ */
48706
+ public static encodeDelimited(message: IOnboardingCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
48707
+
48708
+ /**
48709
+ * Decodes an OnboardingCompleted message from the specified reader or buffer.
48710
+ * @param reader Reader or buffer to decode from
48711
+ * @param [length] Message length if known beforehand
48712
+ * @returns OnboardingCompleted
48713
+ * @throws {Error} If the payload is not a reader or valid buffer
48714
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48715
+ */
48716
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OnboardingCompleted;
48717
+
48718
+ /**
48719
+ * Decodes an OnboardingCompleted message from the specified reader or buffer, length delimited.
48720
+ * @param reader Reader or buffer to decode from
48721
+ * @returns OnboardingCompleted
48722
+ * @throws {Error} If the payload is not a reader or valid buffer
48723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48724
+ */
48725
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OnboardingCompleted;
48726
+
48727
+ /**
48728
+ * Verifies an OnboardingCompleted message.
48729
+ * @param message Plain object to verify
48730
+ * @returns `null` if valid, otherwise the reason why it is not
48731
+ */
48732
+ public static verify(message: { [k: string]: any }): (string|null);
48733
+
48734
+ /**
48735
+ * Creates an OnboardingCompleted message from a plain object. Also converts values to their respective internal types.
48736
+ * @param object Plain object
48737
+ * @returns OnboardingCompleted
48738
+ */
48739
+ public static fromObject(object: { [k: string]: any }): OnboardingCompleted;
48740
+
48741
+ /**
48742
+ * Creates a plain object from an OnboardingCompleted message. Also converts values to other types if specified.
48743
+ * @param message OnboardingCompleted
48744
+ * @param [options] Conversion options
48745
+ * @returns Plain object
48746
+ */
48747
+ public static toObject(message: OnboardingCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
48748
+
48749
+ /**
48750
+ * Converts this OnboardingCompleted to JSON.
48751
+ * @returns JSON object
48752
+ */
48753
+ public toJSON(): { [k: string]: any };
48754
+ }
48755
+
48636
48756
  /** Properties of a WakeupPlaylistCreated. */
48637
48757
  export interface IWakeupPlaylistCreated {
48638
48758
 
@@ -55484,6 +55604,9 @@ export interface IUserConsentUpdated {
55484
55604
 
55485
55605
  /** UserConsentUpdated status */
55486
55606
  status?: (string|null);
55607
+
55608
+ /** UserConsentUpdated version */
55609
+ version?: (number|Long|null);
55487
55610
  }
55488
55611
 
55489
55612
  /** Represents a UserConsentUpdated. */
@@ -55504,6 +55627,9 @@ export class UserConsentUpdated implements IUserConsentUpdated {
55504
55627
  /** UserConsentUpdated status. */
55505
55628
  public status: string;
55506
55629
 
55630
+ /** UserConsentUpdated version. */
55631
+ public version: (number|Long);
55632
+
55507
55633
  /**
55508
55634
  * Creates a new UserConsentUpdated instance using the specified properties.
55509
55635
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -103156,6 +103156,7 @@ $root.B2BPartnerConsentCreated = (function() {
103156
103156
  * @property {b2b.IPartnerConsent|null} [partnerConsent] B2BPartnerConsentCreated partnerConsent
103157
103157
  * @property {Array.<number>|null} [orgIds] B2BPartnerConsentCreated orgIds
103158
103158
  * @property {number|Long|null} [timestamp] B2BPartnerConsentCreated timestamp
103159
+ * @property {string|null} [consentCode] B2BPartnerConsentCreated consentCode
103159
103160
  */
103160
103161
 
103161
103162
  /**
@@ -103198,6 +103199,14 @@ $root.B2BPartnerConsentCreated = (function() {
103198
103199
  */
103199
103200
  B2BPartnerConsentCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
103200
103201
 
103202
+ /**
103203
+ * B2BPartnerConsentCreated consentCode.
103204
+ * @member {string} consentCode
103205
+ * @memberof B2BPartnerConsentCreated
103206
+ * @instance
103207
+ */
103208
+ B2BPartnerConsentCreated.prototype.consentCode = "";
103209
+
103201
103210
  /**
103202
103211
  * Creates a new B2BPartnerConsentCreated instance using the specified properties.
103203
103212
  * @function create
@@ -103232,6 +103241,8 @@ $root.B2BPartnerConsentCreated = (function() {
103232
103241
  }
103233
103242
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
103234
103243
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
103244
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103245
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.consentCode);
103235
103246
  return writer;
103236
103247
  };
103237
103248
 
@@ -103282,6 +103293,9 @@ $root.B2BPartnerConsentCreated = (function() {
103282
103293
  case 3:
103283
103294
  message.timestamp = reader.uint64();
103284
103295
  break;
103296
+ case 4:
103297
+ message.consentCode = reader.string();
103298
+ break;
103285
103299
  default:
103286
103300
  reader.skipType(tag & 7);
103287
103301
  break;
@@ -103332,6 +103346,9 @@ $root.B2BPartnerConsentCreated = (function() {
103332
103346
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
103333
103347
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
103334
103348
  return "timestamp: integer|Long expected";
103349
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103350
+ if (!$util.isString(message.consentCode))
103351
+ return "consentCode: string expected";
103335
103352
  return null;
103336
103353
  };
103337
103354
 
@@ -103368,6 +103385,8 @@ $root.B2BPartnerConsentCreated = (function() {
103368
103385
  message.timestamp = object.timestamp;
103369
103386
  else if (typeof object.timestamp === "object")
103370
103387
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
103388
+ if (object.consentCode != null)
103389
+ message.consentCode = String(object.consentCode);
103371
103390
  return message;
103372
103391
  };
103373
103392
 
@@ -103393,6 +103412,7 @@ $root.B2BPartnerConsentCreated = (function() {
103393
103412
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
103394
103413
  } else
103395
103414
  object.timestamp = options.longs === String ? "0" : 0;
103415
+ object.consentCode = "";
103396
103416
  }
103397
103417
  if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
103398
103418
  object.partnerConsent = $root.b2b.PartnerConsent.toObject(message.partnerConsent, options);
@@ -103406,6 +103426,8 @@ $root.B2BPartnerConsentCreated = (function() {
103406
103426
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
103407
103427
  else
103408
103428
  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;
103429
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103430
+ object.consentCode = message.consentCode;
103409
103431
  return object;
103410
103432
  };
103411
103433
 
@@ -103433,6 +103455,7 @@ $root.B2BMemberPartnerConsentRequested = (function() {
103433
103455
  * @property {string|null} [hsUserId] B2BMemberPartnerConsentRequested hsUserId
103434
103456
  * @property {number|Long|null} [timestamp] B2BMemberPartnerConsentRequested timestamp
103435
103457
  * @property {number|null} [orgId] B2BMemberPartnerConsentRequested orgId
103458
+ * @property {string|null} [consentCode] B2BMemberPartnerConsentRequested consentCode
103436
103459
  */
103437
103460
 
103438
103461
  /**
@@ -103482,6 +103505,14 @@ $root.B2BMemberPartnerConsentRequested = (function() {
103482
103505
  */
103483
103506
  B2BMemberPartnerConsentRequested.prototype.orgId = 0;
103484
103507
 
103508
+ /**
103509
+ * B2BMemberPartnerConsentRequested consentCode.
103510
+ * @member {string} consentCode
103511
+ * @memberof B2BMemberPartnerConsentRequested
103512
+ * @instance
103513
+ */
103514
+ B2BMemberPartnerConsentRequested.prototype.consentCode = "";
103515
+
103485
103516
  /**
103486
103517
  * Creates a new B2BMemberPartnerConsentRequested instance using the specified properties.
103487
103518
  * @function create
@@ -103514,6 +103545,8 @@ $root.B2BMemberPartnerConsentRequested = (function() {
103514
103545
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
103515
103546
  if (message.orgId != null && message.hasOwnProperty("orgId"))
103516
103547
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.orgId);
103548
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103549
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.consentCode);
103517
103550
  return writer;
103518
103551
  };
103519
103552
 
@@ -103560,6 +103593,9 @@ $root.B2BMemberPartnerConsentRequested = (function() {
103560
103593
  case 4:
103561
103594
  message.orgId = reader.uint32();
103562
103595
  break;
103596
+ case 5:
103597
+ message.consentCode = reader.string();
103598
+ break;
103563
103599
  default:
103564
103600
  reader.skipType(tag & 7);
103565
103601
  break;
@@ -103607,6 +103643,9 @@ $root.B2BMemberPartnerConsentRequested = (function() {
103607
103643
  if (message.orgId != null && message.hasOwnProperty("orgId"))
103608
103644
  if (!$util.isInteger(message.orgId))
103609
103645
  return "orgId: integer expected";
103646
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103647
+ if (!$util.isString(message.consentCode))
103648
+ return "consentCode: string expected";
103610
103649
  return null;
103611
103650
  };
103612
103651
 
@@ -103637,6 +103676,8 @@ $root.B2BMemberPartnerConsentRequested = (function() {
103637
103676
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
103638
103677
  if (object.orgId != null)
103639
103678
  message.orgId = object.orgId >>> 0;
103679
+ if (object.consentCode != null)
103680
+ message.consentCode = String(object.consentCode);
103640
103681
  return message;
103641
103682
  };
103642
103683
 
@@ -103662,6 +103703,7 @@ $root.B2BMemberPartnerConsentRequested = (function() {
103662
103703
  } else
103663
103704
  object.timestamp = options.longs === String ? "0" : 0;
103664
103705
  object.orgId = 0;
103706
+ object.consentCode = "";
103665
103707
  }
103666
103708
  if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
103667
103709
  object.partnerConsentId = message.partnerConsentId;
@@ -103674,6 +103716,8 @@ $root.B2BMemberPartnerConsentRequested = (function() {
103674
103716
  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;
103675
103717
  if (message.orgId != null && message.hasOwnProperty("orgId"))
103676
103718
  object.orgId = message.orgId;
103719
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103720
+ object.consentCode = message.consentCode;
103677
103721
  return object;
103678
103722
  };
103679
103723
 
@@ -103699,6 +103743,7 @@ $root.B2BMemberPartnerConsentRemovalRequested = (function() {
103699
103743
  * @interface IB2BMemberPartnerConsentRemovalRequested
103700
103744
  * @property {string|null} [hsUserId] B2BMemberPartnerConsentRemovalRequested hsUserId
103701
103745
  * @property {number|Long|null} [timestamp] B2BMemberPartnerConsentRemovalRequested timestamp
103746
+ * @property {string|null} [consentCode] B2BMemberPartnerConsentRemovalRequested consentCode
103702
103747
  */
103703
103748
 
103704
103749
  /**
@@ -103732,6 +103777,14 @@ $root.B2BMemberPartnerConsentRemovalRequested = (function() {
103732
103777
  */
103733
103778
  B2BMemberPartnerConsentRemovalRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
103734
103779
 
103780
+ /**
103781
+ * B2BMemberPartnerConsentRemovalRequested consentCode.
103782
+ * @member {string} consentCode
103783
+ * @memberof B2BMemberPartnerConsentRemovalRequested
103784
+ * @instance
103785
+ */
103786
+ B2BMemberPartnerConsentRemovalRequested.prototype.consentCode = "";
103787
+
103735
103788
  /**
103736
103789
  * Creates a new B2BMemberPartnerConsentRemovalRequested instance using the specified properties.
103737
103790
  * @function create
@@ -103760,6 +103813,8 @@ $root.B2BMemberPartnerConsentRemovalRequested = (function() {
103760
103813
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
103761
103814
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
103762
103815
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
103816
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103817
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.consentCode);
103763
103818
  return writer;
103764
103819
  };
103765
103820
 
@@ -103800,6 +103855,9 @@ $root.B2BMemberPartnerConsentRemovalRequested = (function() {
103800
103855
  case 2:
103801
103856
  message.timestamp = reader.uint64();
103802
103857
  break;
103858
+ case 3:
103859
+ message.consentCode = reader.string();
103860
+ break;
103803
103861
  default:
103804
103862
  reader.skipType(tag & 7);
103805
103863
  break;
@@ -103841,6 +103899,9 @@ $root.B2BMemberPartnerConsentRemovalRequested = (function() {
103841
103899
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
103842
103900
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
103843
103901
  return "timestamp: integer|Long expected";
103902
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103903
+ if (!$util.isString(message.consentCode))
103904
+ return "consentCode: string expected";
103844
103905
  return null;
103845
103906
  };
103846
103907
 
@@ -103867,6 +103928,8 @@ $root.B2BMemberPartnerConsentRemovalRequested = (function() {
103867
103928
  message.timestamp = object.timestamp;
103868
103929
  else if (typeof object.timestamp === "object")
103869
103930
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
103931
+ if (object.consentCode != null)
103932
+ message.consentCode = String(object.consentCode);
103870
103933
  return message;
103871
103934
  };
103872
103935
 
@@ -103890,6 +103953,7 @@ $root.B2BMemberPartnerConsentRemovalRequested = (function() {
103890
103953
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
103891
103954
  } else
103892
103955
  object.timestamp = options.longs === String ? "0" : 0;
103956
+ object.consentCode = "";
103893
103957
  }
103894
103958
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
103895
103959
  object.hsUserId = message.hsUserId;
@@ -103898,6 +103962,8 @@ $root.B2BMemberPartnerConsentRemovalRequested = (function() {
103898
103962
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
103899
103963
  else
103900
103964
  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;
103965
+ if (message.consentCode != null && message.hasOwnProperty("consentCode"))
103966
+ object.consentCode = message.consentCode;
103901
103967
  return object;
103902
103968
  };
103903
103969
 
@@ -139722,6 +139788,238 @@ $root.UserOnboardingTopicResponses = (function() {
139722
139788
  return UserOnboardingTopicResponses;
139723
139789
  })();
139724
139790
 
139791
+ $root.OnboardingCompleted = (function() {
139792
+
139793
+ /**
139794
+ * Properties of an OnboardingCompleted.
139795
+ * @name IOnboardingCompleted
139796
+ * @interface IOnboardingCompleted
139797
+ * @property {string|null} [hsUserId] OnboardingCompleted hsUserId
139798
+ * @property {number|null} [gingerUserId] OnboardingCompleted gingerUserId
139799
+ * @property {string|null} [completedAtIsoDate] OnboardingCompleted completedAtIsoDate
139800
+ */
139801
+
139802
+ /**
139803
+ * Constructs a new OnboardingCompleted.
139804
+ * @name OnboardingCompleted
139805
+ * @classdesc Represents an OnboardingCompleted.
139806
+ * @implements IOnboardingCompleted
139807
+ * @constructor
139808
+ * @param {IOnboardingCompleted=} [properties] Properties to set
139809
+ */
139810
+ function OnboardingCompleted(properties) {
139811
+ if (properties)
139812
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
139813
+ if (properties[keys[i]] != null)
139814
+ this[keys[i]] = properties[keys[i]];
139815
+ }
139816
+
139817
+ /**
139818
+ * OnboardingCompleted hsUserId.
139819
+ * @member {string} hsUserId
139820
+ * @memberof OnboardingCompleted
139821
+ * @instance
139822
+ */
139823
+ OnboardingCompleted.prototype.hsUserId = "";
139824
+
139825
+ /**
139826
+ * OnboardingCompleted gingerUserId.
139827
+ * @member {number} gingerUserId
139828
+ * @memberof OnboardingCompleted
139829
+ * @instance
139830
+ */
139831
+ OnboardingCompleted.prototype.gingerUserId = 0;
139832
+
139833
+ /**
139834
+ * OnboardingCompleted completedAtIsoDate.
139835
+ * @member {string} completedAtIsoDate
139836
+ * @memberof OnboardingCompleted
139837
+ * @instance
139838
+ */
139839
+ OnboardingCompleted.prototype.completedAtIsoDate = "";
139840
+
139841
+ /**
139842
+ * Creates a new OnboardingCompleted instance using the specified properties.
139843
+ * @function create
139844
+ * @memberof OnboardingCompleted
139845
+ * @static
139846
+ * @param {IOnboardingCompleted=} [properties] Properties to set
139847
+ * @returns {OnboardingCompleted} OnboardingCompleted instance
139848
+ */
139849
+ OnboardingCompleted.create = function create(properties) {
139850
+ return new OnboardingCompleted(properties);
139851
+ };
139852
+
139853
+ /**
139854
+ * Encodes the specified OnboardingCompleted message. Does not implicitly {@link OnboardingCompleted.verify|verify} messages.
139855
+ * @function encode
139856
+ * @memberof OnboardingCompleted
139857
+ * @static
139858
+ * @param {IOnboardingCompleted} message OnboardingCompleted message or plain object to encode
139859
+ * @param {$protobuf.Writer} [writer] Writer to encode to
139860
+ * @returns {$protobuf.Writer} Writer
139861
+ */
139862
+ OnboardingCompleted.encode = function encode(message, writer) {
139863
+ if (!writer)
139864
+ writer = $Writer.create();
139865
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
139866
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
139867
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
139868
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
139869
+ if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
139870
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
139871
+ return writer;
139872
+ };
139873
+
139874
+ /**
139875
+ * Encodes the specified OnboardingCompleted message, length delimited. Does not implicitly {@link OnboardingCompleted.verify|verify} messages.
139876
+ * @function encodeDelimited
139877
+ * @memberof OnboardingCompleted
139878
+ * @static
139879
+ * @param {IOnboardingCompleted} message OnboardingCompleted message or plain object to encode
139880
+ * @param {$protobuf.Writer} [writer] Writer to encode to
139881
+ * @returns {$protobuf.Writer} Writer
139882
+ */
139883
+ OnboardingCompleted.encodeDelimited = function encodeDelimited(message, writer) {
139884
+ return this.encode(message, writer).ldelim();
139885
+ };
139886
+
139887
+ /**
139888
+ * Decodes an OnboardingCompleted message from the specified reader or buffer.
139889
+ * @function decode
139890
+ * @memberof OnboardingCompleted
139891
+ * @static
139892
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
139893
+ * @param {number} [length] Message length if known beforehand
139894
+ * @returns {OnboardingCompleted} OnboardingCompleted
139895
+ * @throws {Error} If the payload is not a reader or valid buffer
139896
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
139897
+ */
139898
+ OnboardingCompleted.decode = function decode(reader, length) {
139899
+ if (!(reader instanceof $Reader))
139900
+ reader = $Reader.create(reader);
139901
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OnboardingCompleted();
139902
+ while (reader.pos < end) {
139903
+ var tag = reader.uint32();
139904
+ switch (tag >>> 3) {
139905
+ case 1:
139906
+ message.hsUserId = reader.string();
139907
+ break;
139908
+ case 2:
139909
+ message.gingerUserId = reader.uint32();
139910
+ break;
139911
+ case 3:
139912
+ message.completedAtIsoDate = reader.string();
139913
+ break;
139914
+ default:
139915
+ reader.skipType(tag & 7);
139916
+ break;
139917
+ }
139918
+ }
139919
+ return message;
139920
+ };
139921
+
139922
+ /**
139923
+ * Decodes an OnboardingCompleted message from the specified reader or buffer, length delimited.
139924
+ * @function decodeDelimited
139925
+ * @memberof OnboardingCompleted
139926
+ * @static
139927
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
139928
+ * @returns {OnboardingCompleted} OnboardingCompleted
139929
+ * @throws {Error} If the payload is not a reader or valid buffer
139930
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
139931
+ */
139932
+ OnboardingCompleted.decodeDelimited = function decodeDelimited(reader) {
139933
+ if (!(reader instanceof $Reader))
139934
+ reader = new $Reader(reader);
139935
+ return this.decode(reader, reader.uint32());
139936
+ };
139937
+
139938
+ /**
139939
+ * Verifies an OnboardingCompleted message.
139940
+ * @function verify
139941
+ * @memberof OnboardingCompleted
139942
+ * @static
139943
+ * @param {Object.<string,*>} message Plain object to verify
139944
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
139945
+ */
139946
+ OnboardingCompleted.verify = function verify(message) {
139947
+ if (typeof message !== "object" || message === null)
139948
+ return "object expected";
139949
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
139950
+ if (!$util.isString(message.hsUserId))
139951
+ return "hsUserId: string expected";
139952
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
139953
+ if (!$util.isInteger(message.gingerUserId))
139954
+ return "gingerUserId: integer expected";
139955
+ if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
139956
+ if (!$util.isString(message.completedAtIsoDate))
139957
+ return "completedAtIsoDate: string expected";
139958
+ return null;
139959
+ };
139960
+
139961
+ /**
139962
+ * Creates an OnboardingCompleted message from a plain object. Also converts values to their respective internal types.
139963
+ * @function fromObject
139964
+ * @memberof OnboardingCompleted
139965
+ * @static
139966
+ * @param {Object.<string,*>} object Plain object
139967
+ * @returns {OnboardingCompleted} OnboardingCompleted
139968
+ */
139969
+ OnboardingCompleted.fromObject = function fromObject(object) {
139970
+ if (object instanceof $root.OnboardingCompleted)
139971
+ return object;
139972
+ var message = new $root.OnboardingCompleted();
139973
+ if (object.hsUserId != null)
139974
+ message.hsUserId = String(object.hsUserId);
139975
+ if (object.gingerUserId != null)
139976
+ message.gingerUserId = object.gingerUserId >>> 0;
139977
+ if (object.completedAtIsoDate != null)
139978
+ message.completedAtIsoDate = String(object.completedAtIsoDate);
139979
+ return message;
139980
+ };
139981
+
139982
+ /**
139983
+ * Creates a plain object from an OnboardingCompleted message. Also converts values to other types if specified.
139984
+ * @function toObject
139985
+ * @memberof OnboardingCompleted
139986
+ * @static
139987
+ * @param {OnboardingCompleted} message OnboardingCompleted
139988
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
139989
+ * @returns {Object.<string,*>} Plain object
139990
+ */
139991
+ OnboardingCompleted.toObject = function toObject(message, options) {
139992
+ if (!options)
139993
+ options = {};
139994
+ var object = {};
139995
+ if (options.defaults) {
139996
+ object.hsUserId = "";
139997
+ object.gingerUserId = 0;
139998
+ object.completedAtIsoDate = "";
139999
+ }
140000
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140001
+ object.hsUserId = message.hsUserId;
140002
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
140003
+ object.gingerUserId = message.gingerUserId;
140004
+ if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
140005
+ object.completedAtIsoDate = message.completedAtIsoDate;
140006
+ return object;
140007
+ };
140008
+
140009
+ /**
140010
+ * Converts this OnboardingCompleted to JSON.
140011
+ * @function toJSON
140012
+ * @memberof OnboardingCompleted
140013
+ * @instance
140014
+ * @returns {Object.<string,*>} JSON object
140015
+ */
140016
+ OnboardingCompleted.prototype.toJSON = function toJSON() {
140017
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
140018
+ };
140019
+
140020
+ return OnboardingCompleted;
140021
+ })();
140022
+
139725
140023
  $root.WakeupPlaylistCreated = (function() {
139726
140024
 
139727
140025
  /**
@@ -160120,6 +160418,7 @@ $root.UserConsentUpdated = (function() {
160120
160418
  * @property {string|null} [userId] UserConsentUpdated userId
160121
160419
  * @property {string|null} [code] UserConsentUpdated code
160122
160420
  * @property {string|null} [status] UserConsentUpdated status
160421
+ * @property {number|Long|null} [version] UserConsentUpdated version
160123
160422
  */
160124
160423
 
160125
160424
  /**
@@ -160161,6 +160460,14 @@ $root.UserConsentUpdated = (function() {
160161
160460
  */
160162
160461
  UserConsentUpdated.prototype.status = "";
160163
160462
 
160463
+ /**
160464
+ * UserConsentUpdated version.
160465
+ * @member {number|Long} version
160466
+ * @memberof UserConsentUpdated
160467
+ * @instance
160468
+ */
160469
+ UserConsentUpdated.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
160470
+
160164
160471
  /**
160165
160472
  * Creates a new UserConsentUpdated instance using the specified properties.
160166
160473
  * @function create
@@ -160191,6 +160498,8 @@ $root.UserConsentUpdated = (function() {
160191
160498
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.code);
160192
160499
  if (message.status != null && message.hasOwnProperty("status"))
160193
160500
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.status);
160501
+ if (message.version != null && message.hasOwnProperty("version"))
160502
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.version);
160194
160503
  return writer;
160195
160504
  };
160196
160505
 
@@ -160234,6 +160543,9 @@ $root.UserConsentUpdated = (function() {
160234
160543
  case 3:
160235
160544
  message.status = reader.string();
160236
160545
  break;
160546
+ case 4:
160547
+ message.version = reader.uint64();
160548
+ break;
160237
160549
  default:
160238
160550
  reader.skipType(tag & 7);
160239
160551
  break;
@@ -160278,6 +160590,9 @@ $root.UserConsentUpdated = (function() {
160278
160590
  if (message.status != null && message.hasOwnProperty("status"))
160279
160591
  if (!$util.isString(message.status))
160280
160592
  return "status: string expected";
160593
+ if (message.version != null && message.hasOwnProperty("version"))
160594
+ if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
160595
+ return "version: integer|Long expected";
160281
160596
  return null;
160282
160597
  };
160283
160598
 
@@ -160299,6 +160614,15 @@ $root.UserConsentUpdated = (function() {
160299
160614
  message.code = String(object.code);
160300
160615
  if (object.status != null)
160301
160616
  message.status = String(object.status);
160617
+ if (object.version != null)
160618
+ if ($util.Long)
160619
+ (message.version = $util.Long.fromValue(object.version)).unsigned = true;
160620
+ else if (typeof object.version === "string")
160621
+ message.version = parseInt(object.version, 10);
160622
+ else if (typeof object.version === "number")
160623
+ message.version = object.version;
160624
+ else if (typeof object.version === "object")
160625
+ message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
160302
160626
  return message;
160303
160627
  };
160304
160628
 
@@ -160319,6 +160643,11 @@ $root.UserConsentUpdated = (function() {
160319
160643
  object.userId = "";
160320
160644
  object.code = "";
160321
160645
  object.status = "";
160646
+ if ($util.Long) {
160647
+ var long = new $util.Long(0, 0, true);
160648
+ object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
160649
+ } else
160650
+ object.version = options.longs === String ? "0" : 0;
160322
160651
  }
160323
160652
  if (message.userId != null && message.hasOwnProperty("userId"))
160324
160653
  object.userId = message.userId;
@@ -160326,6 +160655,11 @@ $root.UserConsentUpdated = (function() {
160326
160655
  object.code = message.code;
160327
160656
  if (message.status != null && message.hasOwnProperty("status"))
160328
160657
  object.status = message.status;
160658
+ if (message.version != null && message.hasOwnProperty("version"))
160659
+ if (typeof message.version === "number")
160660
+ object.version = options.longs === String ? String(message.version) : message.version;
160661
+ else
160662
+ object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
160329
160663
  return object;
160330
160664
  };
160331
160665
 
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.592.0"
19
+ "version": "1.594.0"
20
20
  }