@headspace/protos-events 1.665.0 → 1.667.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 +114 -12
  2. package/lib/index.js +283 -51
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -53288,8 +53288,8 @@ export interface IEligibilityCollectiveCreated {
53288
53288
  /** EligibilityCollectiveCreated createdTimestamp */
53289
53289
  createdTimestamp?: (number|Long|null);
53290
53290
 
53291
- /** EligibilityCollectiveCreated elligibilityCollective */
53292
- elligibilityCollective?: (IEligibilityCollective|null);
53291
+ /** EligibilityCollectiveCreated eligibilityCollective */
53292
+ eligibilityCollective?: (IEligibilityCollective|null);
53293
53293
  }
53294
53294
 
53295
53295
  /** Represents an EligibilityCollectiveCreated. */
@@ -53304,8 +53304,8 @@ export class EligibilityCollectiveCreated implements IEligibilityCollectiveCreat
53304
53304
  /** EligibilityCollectiveCreated createdTimestamp. */
53305
53305
  public createdTimestamp: (number|Long);
53306
53306
 
53307
- /** EligibilityCollectiveCreated elligibilityCollective. */
53308
- public elligibilityCollective?: (IEligibilityCollective|null);
53307
+ /** EligibilityCollectiveCreated eligibilityCollective. */
53308
+ public eligibilityCollective?: (IEligibilityCollective|null);
53309
53309
 
53310
53310
  /**
53311
53311
  * Creates a new EligibilityCollectiveCreated instance using the specified properties.
@@ -53384,8 +53384,8 @@ export interface IEligibilityCollectiveUpdated {
53384
53384
  /** EligibilityCollectiveUpdated updatedTimestamp */
53385
53385
  updatedTimestamp?: (number|Long|null);
53386
53386
 
53387
- /** EligibilityCollectiveUpdated elligibilityCollective */
53388
- elligibilityCollective?: (IEligibilityCollective|null);
53387
+ /** EligibilityCollectiveUpdated eligibilityCollective */
53388
+ eligibilityCollective?: (IEligibilityCollective|null);
53389
53389
  }
53390
53390
 
53391
53391
  /** Represents an EligibilityCollectiveUpdated. */
@@ -53400,8 +53400,8 @@ export class EligibilityCollectiveUpdated implements IEligibilityCollectiveUpdat
53400
53400
  /** EligibilityCollectiveUpdated updatedTimestamp. */
53401
53401
  public updatedTimestamp: (number|Long);
53402
53402
 
53403
- /** EligibilityCollectiveUpdated elligibilityCollective. */
53404
- public elligibilityCollective?: (IEligibilityCollective|null);
53403
+ /** EligibilityCollectiveUpdated eligibilityCollective. */
53404
+ public eligibilityCollective?: (IEligibilityCollective|null);
53405
53405
 
53406
53406
  /**
53407
53407
  * Creates a new EligibilityCollectiveUpdated instance using the specified properties.
@@ -53480,8 +53480,8 @@ export interface IEligibilityCollectiveDeleted {
53480
53480
  /** EligibilityCollectiveDeleted deletedTimestamp */
53481
53481
  deletedTimestamp?: (number|Long|null);
53482
53482
 
53483
- /** EligibilityCollectiveDeleted elligibilityCollective */
53484
- elligibilityCollective?: (IEligibilityCollective|null);
53483
+ /** EligibilityCollectiveDeleted eligibilityCollective */
53484
+ eligibilityCollective?: (IEligibilityCollective|null);
53485
53485
  }
53486
53486
 
53487
53487
  /** Represents an EligibilityCollectiveDeleted. */
@@ -53496,8 +53496,8 @@ export class EligibilityCollectiveDeleted implements IEligibilityCollectiveDelet
53496
53496
  /** EligibilityCollectiveDeleted deletedTimestamp. */
53497
53497
  public deletedTimestamp: (number|Long);
53498
53498
 
53499
- /** EligibilityCollectiveDeleted elligibilityCollective. */
53500
- public elligibilityCollective?: (IEligibilityCollective|null);
53499
+ /** EligibilityCollectiveDeleted eligibilityCollective. */
53500
+ public eligibilityCollective?: (IEligibilityCollective|null);
53501
53501
 
53502
53502
  /**
53503
53503
  * Creates a new EligibilityCollectiveDeleted instance using the specified properties.
@@ -56691,6 +56691,108 @@ export class GingerEligibilityRecordCreated implements IGingerEligibilityRecordC
56691
56691
  public toJSON(): { [k: string]: any };
56692
56692
  }
56693
56693
 
56694
+ /** Properties of a GingerEligibilityRecordReactivated. */
56695
+ export interface IGingerEligibilityRecordReactivated {
56696
+
56697
+ /** GingerEligibilityRecordReactivated hsUserId */
56698
+ hsUserId?: (string|null);
56699
+
56700
+ /** GingerEligibilityRecordReactivated gingerEligibilityRecordId */
56701
+ gingerEligibilityRecordId?: (number|null);
56702
+
56703
+ /** GingerEligibilityRecordReactivated hsEligibilityRecordUuid */
56704
+ hsEligibilityRecordUuid?: (string|null);
56705
+ }
56706
+
56707
+ /** A terminated member has re-enrolled, their EligibilityRecord is set to active and coupon code reactivated */
56708
+ export class GingerEligibilityRecordReactivated implements IGingerEligibilityRecordReactivated {
56709
+
56710
+ /**
56711
+ * Constructs a new GingerEligibilityRecordReactivated.
56712
+ * @param [properties] Properties to set
56713
+ */
56714
+ constructor(properties?: IGingerEligibilityRecordReactivated);
56715
+
56716
+ /** GingerEligibilityRecordReactivated hsUserId. */
56717
+ public hsUserId: string;
56718
+
56719
+ /** GingerEligibilityRecordReactivated gingerEligibilityRecordId. */
56720
+ public gingerEligibilityRecordId: number;
56721
+
56722
+ /** GingerEligibilityRecordReactivated hsEligibilityRecordUuid. */
56723
+ public hsEligibilityRecordUuid: string;
56724
+
56725
+ /**
56726
+ * Creates a new GingerEligibilityRecordReactivated instance using the specified properties.
56727
+ * @param [properties] Properties to set
56728
+ * @returns GingerEligibilityRecordReactivated instance
56729
+ */
56730
+ public static create(properties?: IGingerEligibilityRecordReactivated): GingerEligibilityRecordReactivated;
56731
+
56732
+ /**
56733
+ * Encodes the specified GingerEligibilityRecordReactivated message. Does not implicitly {@link GingerEligibilityRecordReactivated.verify|verify} messages.
56734
+ * @param message GingerEligibilityRecordReactivated message or plain object to encode
56735
+ * @param [writer] Writer to encode to
56736
+ * @returns Writer
56737
+ */
56738
+ public static encode(message: IGingerEligibilityRecordReactivated, writer?: $protobuf.Writer): $protobuf.Writer;
56739
+
56740
+ /**
56741
+ * Encodes the specified GingerEligibilityRecordReactivated message, length delimited. Does not implicitly {@link GingerEligibilityRecordReactivated.verify|verify} messages.
56742
+ * @param message GingerEligibilityRecordReactivated message or plain object to encode
56743
+ * @param [writer] Writer to encode to
56744
+ * @returns Writer
56745
+ */
56746
+ public static encodeDelimited(message: IGingerEligibilityRecordReactivated, writer?: $protobuf.Writer): $protobuf.Writer;
56747
+
56748
+ /**
56749
+ * Decodes a GingerEligibilityRecordReactivated message from the specified reader or buffer.
56750
+ * @param reader Reader or buffer to decode from
56751
+ * @param [length] Message length if known beforehand
56752
+ * @returns GingerEligibilityRecordReactivated
56753
+ * @throws {Error} If the payload is not a reader or valid buffer
56754
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56755
+ */
56756
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerEligibilityRecordReactivated;
56757
+
56758
+ /**
56759
+ * Decodes a GingerEligibilityRecordReactivated message from the specified reader or buffer, length delimited.
56760
+ * @param reader Reader or buffer to decode from
56761
+ * @returns GingerEligibilityRecordReactivated
56762
+ * @throws {Error} If the payload is not a reader or valid buffer
56763
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56764
+ */
56765
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerEligibilityRecordReactivated;
56766
+
56767
+ /**
56768
+ * Verifies a GingerEligibilityRecordReactivated message.
56769
+ * @param message Plain object to verify
56770
+ * @returns `null` if valid, otherwise the reason why it is not
56771
+ */
56772
+ public static verify(message: { [k: string]: any }): (string|null);
56773
+
56774
+ /**
56775
+ * Creates a GingerEligibilityRecordReactivated message from a plain object. Also converts values to their respective internal types.
56776
+ * @param object Plain object
56777
+ * @returns GingerEligibilityRecordReactivated
56778
+ */
56779
+ public static fromObject(object: { [k: string]: any }): GingerEligibilityRecordReactivated;
56780
+
56781
+ /**
56782
+ * Creates a plain object from a GingerEligibilityRecordReactivated message. Also converts values to other types if specified.
56783
+ * @param message GingerEligibilityRecordReactivated
56784
+ * @param [options] Conversion options
56785
+ * @returns Plain object
56786
+ */
56787
+ public static toObject(message: GingerEligibilityRecordReactivated, options?: $protobuf.IConversionOptions): { [k: string]: any };
56788
+
56789
+ /**
56790
+ * Converts this GingerEligibilityRecordReactivated to JSON.
56791
+ * @returns JSON object
56792
+ */
56793
+ public toJSON(): { [k: string]: any };
56794
+ }
56795
+
56694
56796
  /** Properties of a GoalSet. */
56695
56797
  export interface IGoalSet {
56696
56798
 
package/lib/index.js CHANGED
@@ -147481,7 +147481,7 @@ $root.EligibilityCollectiveCreated = (function() {
147481
147481
  * @name IEligibilityCollectiveCreated
147482
147482
  * @interface IEligibilityCollectiveCreated
147483
147483
  * @property {number|Long|null} [createdTimestamp] EligibilityCollectiveCreated createdTimestamp
147484
- * @property {IEligibilityCollective|null} [elligibilityCollective] EligibilityCollectiveCreated elligibilityCollective
147484
+ * @property {IEligibilityCollective|null} [eligibilityCollective] EligibilityCollectiveCreated eligibilityCollective
147485
147485
  */
147486
147486
 
147487
147487
  /**
@@ -147508,12 +147508,12 @@ $root.EligibilityCollectiveCreated = (function() {
147508
147508
  EligibilityCollectiveCreated.prototype.createdTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
147509
147509
 
147510
147510
  /**
147511
- * EligibilityCollectiveCreated elligibilityCollective.
147512
- * @member {IEligibilityCollective|null|undefined} elligibilityCollective
147511
+ * EligibilityCollectiveCreated eligibilityCollective.
147512
+ * @member {IEligibilityCollective|null|undefined} eligibilityCollective
147513
147513
  * @memberof EligibilityCollectiveCreated
147514
147514
  * @instance
147515
147515
  */
147516
- EligibilityCollectiveCreated.prototype.elligibilityCollective = null;
147516
+ EligibilityCollectiveCreated.prototype.eligibilityCollective = null;
147517
147517
 
147518
147518
  /**
147519
147519
  * Creates a new EligibilityCollectiveCreated instance using the specified properties.
@@ -147541,8 +147541,8 @@ $root.EligibilityCollectiveCreated = (function() {
147541
147541
  writer = $Writer.create();
147542
147542
  if (message.createdTimestamp != null && message.hasOwnProperty("createdTimestamp"))
147543
147543
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.createdTimestamp);
147544
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective"))
147545
- $root.EligibilityCollective.encode(message.elligibilityCollective, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
147544
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective"))
147545
+ $root.EligibilityCollective.encode(message.eligibilityCollective, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
147546
147546
  return writer;
147547
147547
  };
147548
147548
 
@@ -147581,7 +147581,7 @@ $root.EligibilityCollectiveCreated = (function() {
147581
147581
  message.createdTimestamp = reader.uint64();
147582
147582
  break;
147583
147583
  case 2:
147584
- message.elligibilityCollective = $root.EligibilityCollective.decode(reader, reader.uint32());
147584
+ message.eligibilityCollective = $root.EligibilityCollective.decode(reader, reader.uint32());
147585
147585
  break;
147586
147586
  default:
147587
147587
  reader.skipType(tag & 7);
@@ -147621,10 +147621,10 @@ $root.EligibilityCollectiveCreated = (function() {
147621
147621
  if (message.createdTimestamp != null && message.hasOwnProperty("createdTimestamp"))
147622
147622
  if (!$util.isInteger(message.createdTimestamp) && !(message.createdTimestamp && $util.isInteger(message.createdTimestamp.low) && $util.isInteger(message.createdTimestamp.high)))
147623
147623
  return "createdTimestamp: integer|Long expected";
147624
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective")) {
147625
- var error = $root.EligibilityCollective.verify(message.elligibilityCollective);
147624
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective")) {
147625
+ var error = $root.EligibilityCollective.verify(message.eligibilityCollective);
147626
147626
  if (error)
147627
- return "elligibilityCollective." + error;
147627
+ return "eligibilityCollective." + error;
147628
147628
  }
147629
147629
  return null;
147630
147630
  };
@@ -147650,10 +147650,10 @@ $root.EligibilityCollectiveCreated = (function() {
147650
147650
  message.createdTimestamp = object.createdTimestamp;
147651
147651
  else if (typeof object.createdTimestamp === "object")
147652
147652
  message.createdTimestamp = new $util.LongBits(object.createdTimestamp.low >>> 0, object.createdTimestamp.high >>> 0).toNumber(true);
147653
- if (object.elligibilityCollective != null) {
147654
- if (typeof object.elligibilityCollective !== "object")
147655
- throw TypeError(".EligibilityCollectiveCreated.elligibilityCollective: object expected");
147656
- message.elligibilityCollective = $root.EligibilityCollective.fromObject(object.elligibilityCollective);
147653
+ if (object.eligibilityCollective != null) {
147654
+ if (typeof object.eligibilityCollective !== "object")
147655
+ throw TypeError(".EligibilityCollectiveCreated.eligibilityCollective: object expected");
147656
+ message.eligibilityCollective = $root.EligibilityCollective.fromObject(object.eligibilityCollective);
147657
147657
  }
147658
147658
  return message;
147659
147659
  };
@@ -147677,15 +147677,15 @@ $root.EligibilityCollectiveCreated = (function() {
147677
147677
  object.createdTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
147678
147678
  } else
147679
147679
  object.createdTimestamp = options.longs === String ? "0" : 0;
147680
- object.elligibilityCollective = null;
147680
+ object.eligibilityCollective = null;
147681
147681
  }
147682
147682
  if (message.createdTimestamp != null && message.hasOwnProperty("createdTimestamp"))
147683
147683
  if (typeof message.createdTimestamp === "number")
147684
147684
  object.createdTimestamp = options.longs === String ? String(message.createdTimestamp) : message.createdTimestamp;
147685
147685
  else
147686
147686
  object.createdTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createdTimestamp) : options.longs === Number ? new $util.LongBits(message.createdTimestamp.low >>> 0, message.createdTimestamp.high >>> 0).toNumber(true) : message.createdTimestamp;
147687
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective"))
147688
- object.elligibilityCollective = $root.EligibilityCollective.toObject(message.elligibilityCollective, options);
147687
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective"))
147688
+ object.eligibilityCollective = $root.EligibilityCollective.toObject(message.eligibilityCollective, options);
147689
147689
  return object;
147690
147690
  };
147691
147691
 
@@ -147710,7 +147710,7 @@ $root.EligibilityCollectiveUpdated = (function() {
147710
147710
  * @name IEligibilityCollectiveUpdated
147711
147711
  * @interface IEligibilityCollectiveUpdated
147712
147712
  * @property {number|Long|null} [updatedTimestamp] EligibilityCollectiveUpdated updatedTimestamp
147713
- * @property {IEligibilityCollective|null} [elligibilityCollective] EligibilityCollectiveUpdated elligibilityCollective
147713
+ * @property {IEligibilityCollective|null} [eligibilityCollective] EligibilityCollectiveUpdated eligibilityCollective
147714
147714
  */
147715
147715
 
147716
147716
  /**
@@ -147737,12 +147737,12 @@ $root.EligibilityCollectiveUpdated = (function() {
147737
147737
  EligibilityCollectiveUpdated.prototype.updatedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
147738
147738
 
147739
147739
  /**
147740
- * EligibilityCollectiveUpdated elligibilityCollective.
147741
- * @member {IEligibilityCollective|null|undefined} elligibilityCollective
147740
+ * EligibilityCollectiveUpdated eligibilityCollective.
147741
+ * @member {IEligibilityCollective|null|undefined} eligibilityCollective
147742
147742
  * @memberof EligibilityCollectiveUpdated
147743
147743
  * @instance
147744
147744
  */
147745
- EligibilityCollectiveUpdated.prototype.elligibilityCollective = null;
147745
+ EligibilityCollectiveUpdated.prototype.eligibilityCollective = null;
147746
147746
 
147747
147747
  /**
147748
147748
  * Creates a new EligibilityCollectiveUpdated instance using the specified properties.
@@ -147770,8 +147770,8 @@ $root.EligibilityCollectiveUpdated = (function() {
147770
147770
  writer = $Writer.create();
147771
147771
  if (message.updatedTimestamp != null && message.hasOwnProperty("updatedTimestamp"))
147772
147772
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.updatedTimestamp);
147773
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective"))
147774
- $root.EligibilityCollective.encode(message.elligibilityCollective, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
147773
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective"))
147774
+ $root.EligibilityCollective.encode(message.eligibilityCollective, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
147775
147775
  return writer;
147776
147776
  };
147777
147777
 
@@ -147810,7 +147810,7 @@ $root.EligibilityCollectiveUpdated = (function() {
147810
147810
  message.updatedTimestamp = reader.uint64();
147811
147811
  break;
147812
147812
  case 2:
147813
- message.elligibilityCollective = $root.EligibilityCollective.decode(reader, reader.uint32());
147813
+ message.eligibilityCollective = $root.EligibilityCollective.decode(reader, reader.uint32());
147814
147814
  break;
147815
147815
  default:
147816
147816
  reader.skipType(tag & 7);
@@ -147850,10 +147850,10 @@ $root.EligibilityCollectiveUpdated = (function() {
147850
147850
  if (message.updatedTimestamp != null && message.hasOwnProperty("updatedTimestamp"))
147851
147851
  if (!$util.isInteger(message.updatedTimestamp) && !(message.updatedTimestamp && $util.isInteger(message.updatedTimestamp.low) && $util.isInteger(message.updatedTimestamp.high)))
147852
147852
  return "updatedTimestamp: integer|Long expected";
147853
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective")) {
147854
- var error = $root.EligibilityCollective.verify(message.elligibilityCollective);
147853
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective")) {
147854
+ var error = $root.EligibilityCollective.verify(message.eligibilityCollective);
147855
147855
  if (error)
147856
- return "elligibilityCollective." + error;
147856
+ return "eligibilityCollective." + error;
147857
147857
  }
147858
147858
  return null;
147859
147859
  };
@@ -147879,10 +147879,10 @@ $root.EligibilityCollectiveUpdated = (function() {
147879
147879
  message.updatedTimestamp = object.updatedTimestamp;
147880
147880
  else if (typeof object.updatedTimestamp === "object")
147881
147881
  message.updatedTimestamp = new $util.LongBits(object.updatedTimestamp.low >>> 0, object.updatedTimestamp.high >>> 0).toNumber(true);
147882
- if (object.elligibilityCollective != null) {
147883
- if (typeof object.elligibilityCollective !== "object")
147884
- throw TypeError(".EligibilityCollectiveUpdated.elligibilityCollective: object expected");
147885
- message.elligibilityCollective = $root.EligibilityCollective.fromObject(object.elligibilityCollective);
147882
+ if (object.eligibilityCollective != null) {
147883
+ if (typeof object.eligibilityCollective !== "object")
147884
+ throw TypeError(".EligibilityCollectiveUpdated.eligibilityCollective: object expected");
147885
+ message.eligibilityCollective = $root.EligibilityCollective.fromObject(object.eligibilityCollective);
147886
147886
  }
147887
147887
  return message;
147888
147888
  };
@@ -147906,15 +147906,15 @@ $root.EligibilityCollectiveUpdated = (function() {
147906
147906
  object.updatedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
147907
147907
  } else
147908
147908
  object.updatedTimestamp = options.longs === String ? "0" : 0;
147909
- object.elligibilityCollective = null;
147909
+ object.eligibilityCollective = null;
147910
147910
  }
147911
147911
  if (message.updatedTimestamp != null && message.hasOwnProperty("updatedTimestamp"))
147912
147912
  if (typeof message.updatedTimestamp === "number")
147913
147913
  object.updatedTimestamp = options.longs === String ? String(message.updatedTimestamp) : message.updatedTimestamp;
147914
147914
  else
147915
147915
  object.updatedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.updatedTimestamp) : options.longs === Number ? new $util.LongBits(message.updatedTimestamp.low >>> 0, message.updatedTimestamp.high >>> 0).toNumber(true) : message.updatedTimestamp;
147916
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective"))
147917
- object.elligibilityCollective = $root.EligibilityCollective.toObject(message.elligibilityCollective, options);
147916
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective"))
147917
+ object.eligibilityCollective = $root.EligibilityCollective.toObject(message.eligibilityCollective, options);
147918
147918
  return object;
147919
147919
  };
147920
147920
 
@@ -147939,7 +147939,7 @@ $root.EligibilityCollectiveDeleted = (function() {
147939
147939
  * @name IEligibilityCollectiveDeleted
147940
147940
  * @interface IEligibilityCollectiveDeleted
147941
147941
  * @property {number|Long|null} [deletedTimestamp] EligibilityCollectiveDeleted deletedTimestamp
147942
- * @property {IEligibilityCollective|null} [elligibilityCollective] EligibilityCollectiveDeleted elligibilityCollective
147942
+ * @property {IEligibilityCollective|null} [eligibilityCollective] EligibilityCollectiveDeleted eligibilityCollective
147943
147943
  */
147944
147944
 
147945
147945
  /**
@@ -147966,12 +147966,12 @@ $root.EligibilityCollectiveDeleted = (function() {
147966
147966
  EligibilityCollectiveDeleted.prototype.deletedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
147967
147967
 
147968
147968
  /**
147969
- * EligibilityCollectiveDeleted elligibilityCollective.
147970
- * @member {IEligibilityCollective|null|undefined} elligibilityCollective
147969
+ * EligibilityCollectiveDeleted eligibilityCollective.
147970
+ * @member {IEligibilityCollective|null|undefined} eligibilityCollective
147971
147971
  * @memberof EligibilityCollectiveDeleted
147972
147972
  * @instance
147973
147973
  */
147974
- EligibilityCollectiveDeleted.prototype.elligibilityCollective = null;
147974
+ EligibilityCollectiveDeleted.prototype.eligibilityCollective = null;
147975
147975
 
147976
147976
  /**
147977
147977
  * Creates a new EligibilityCollectiveDeleted instance using the specified properties.
@@ -147999,8 +147999,8 @@ $root.EligibilityCollectiveDeleted = (function() {
147999
147999
  writer = $Writer.create();
148000
148000
  if (message.deletedTimestamp != null && message.hasOwnProperty("deletedTimestamp"))
148001
148001
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.deletedTimestamp);
148002
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective"))
148003
- $root.EligibilityCollective.encode(message.elligibilityCollective, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
148002
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective"))
148003
+ $root.EligibilityCollective.encode(message.eligibilityCollective, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
148004
148004
  return writer;
148005
148005
  };
148006
148006
 
@@ -148039,7 +148039,7 @@ $root.EligibilityCollectiveDeleted = (function() {
148039
148039
  message.deletedTimestamp = reader.uint64();
148040
148040
  break;
148041
148041
  case 2:
148042
- message.elligibilityCollective = $root.EligibilityCollective.decode(reader, reader.uint32());
148042
+ message.eligibilityCollective = $root.EligibilityCollective.decode(reader, reader.uint32());
148043
148043
  break;
148044
148044
  default:
148045
148045
  reader.skipType(tag & 7);
@@ -148079,10 +148079,10 @@ $root.EligibilityCollectiveDeleted = (function() {
148079
148079
  if (message.deletedTimestamp != null && message.hasOwnProperty("deletedTimestamp"))
148080
148080
  if (!$util.isInteger(message.deletedTimestamp) && !(message.deletedTimestamp && $util.isInteger(message.deletedTimestamp.low) && $util.isInteger(message.deletedTimestamp.high)))
148081
148081
  return "deletedTimestamp: integer|Long expected";
148082
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective")) {
148083
- var error = $root.EligibilityCollective.verify(message.elligibilityCollective);
148082
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective")) {
148083
+ var error = $root.EligibilityCollective.verify(message.eligibilityCollective);
148084
148084
  if (error)
148085
- return "elligibilityCollective." + error;
148085
+ return "eligibilityCollective." + error;
148086
148086
  }
148087
148087
  return null;
148088
148088
  };
@@ -148108,10 +148108,10 @@ $root.EligibilityCollectiveDeleted = (function() {
148108
148108
  message.deletedTimestamp = object.deletedTimestamp;
148109
148109
  else if (typeof object.deletedTimestamp === "object")
148110
148110
  message.deletedTimestamp = new $util.LongBits(object.deletedTimestamp.low >>> 0, object.deletedTimestamp.high >>> 0).toNumber(true);
148111
- if (object.elligibilityCollective != null) {
148112
- if (typeof object.elligibilityCollective !== "object")
148113
- throw TypeError(".EligibilityCollectiveDeleted.elligibilityCollective: object expected");
148114
- message.elligibilityCollective = $root.EligibilityCollective.fromObject(object.elligibilityCollective);
148111
+ if (object.eligibilityCollective != null) {
148112
+ if (typeof object.eligibilityCollective !== "object")
148113
+ throw TypeError(".EligibilityCollectiveDeleted.eligibilityCollective: object expected");
148114
+ message.eligibilityCollective = $root.EligibilityCollective.fromObject(object.eligibilityCollective);
148115
148115
  }
148116
148116
  return message;
148117
148117
  };
@@ -148135,15 +148135,15 @@ $root.EligibilityCollectiveDeleted = (function() {
148135
148135
  object.deletedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
148136
148136
  } else
148137
148137
  object.deletedTimestamp = options.longs === String ? "0" : 0;
148138
- object.elligibilityCollective = null;
148138
+ object.eligibilityCollective = null;
148139
148139
  }
148140
148140
  if (message.deletedTimestamp != null && message.hasOwnProperty("deletedTimestamp"))
148141
148141
  if (typeof message.deletedTimestamp === "number")
148142
148142
  object.deletedTimestamp = options.longs === String ? String(message.deletedTimestamp) : message.deletedTimestamp;
148143
148143
  else
148144
148144
  object.deletedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.deletedTimestamp) : options.longs === Number ? new $util.LongBits(message.deletedTimestamp.low >>> 0, message.deletedTimestamp.high >>> 0).toNumber(true) : message.deletedTimestamp;
148145
- if (message.elligibilityCollective != null && message.hasOwnProperty("elligibilityCollective"))
148146
- object.elligibilityCollective = $root.EligibilityCollective.toObject(message.elligibilityCollective, options);
148145
+ if (message.eligibilityCollective != null && message.hasOwnProperty("eligibilityCollective"))
148146
+ object.eligibilityCollective = $root.EligibilityCollective.toObject(message.eligibilityCollective, options);
148147
148147
  return object;
148148
148148
  };
148149
148149
 
@@ -158519,6 +158519,238 @@ $root.GingerEligibilityRecordCreated = (function() {
158519
158519
  return GingerEligibilityRecordCreated;
158520
158520
  })();
158521
158521
 
158522
+ $root.GingerEligibilityRecordReactivated = (function() {
158523
+
158524
+ /**
158525
+ * Properties of a GingerEligibilityRecordReactivated.
158526
+ * @name IGingerEligibilityRecordReactivated
158527
+ * @interface IGingerEligibilityRecordReactivated
158528
+ * @property {string|null} [hsUserId] GingerEligibilityRecordReactivated hsUserId
158529
+ * @property {number|null} [gingerEligibilityRecordId] GingerEligibilityRecordReactivated gingerEligibilityRecordId
158530
+ * @property {string|null} [hsEligibilityRecordUuid] GingerEligibilityRecordReactivated hsEligibilityRecordUuid
158531
+ */
158532
+
158533
+ /**
158534
+ * Constructs a new GingerEligibilityRecordReactivated.
158535
+ * @name GingerEligibilityRecordReactivated
158536
+ * @classdesc A terminated member has re-enrolled, their EligibilityRecord is set to active and coupon code reactivated
158537
+ * @implements IGingerEligibilityRecordReactivated
158538
+ * @constructor
158539
+ * @param {IGingerEligibilityRecordReactivated=} [properties] Properties to set
158540
+ */
158541
+ function GingerEligibilityRecordReactivated(properties) {
158542
+ if (properties)
158543
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
158544
+ if (properties[keys[i]] != null)
158545
+ this[keys[i]] = properties[keys[i]];
158546
+ }
158547
+
158548
+ /**
158549
+ * GingerEligibilityRecordReactivated hsUserId.
158550
+ * @member {string} hsUserId
158551
+ * @memberof GingerEligibilityRecordReactivated
158552
+ * @instance
158553
+ */
158554
+ GingerEligibilityRecordReactivated.prototype.hsUserId = "";
158555
+
158556
+ /**
158557
+ * GingerEligibilityRecordReactivated gingerEligibilityRecordId.
158558
+ * @member {number} gingerEligibilityRecordId
158559
+ * @memberof GingerEligibilityRecordReactivated
158560
+ * @instance
158561
+ */
158562
+ GingerEligibilityRecordReactivated.prototype.gingerEligibilityRecordId = 0;
158563
+
158564
+ /**
158565
+ * GingerEligibilityRecordReactivated hsEligibilityRecordUuid.
158566
+ * @member {string} hsEligibilityRecordUuid
158567
+ * @memberof GingerEligibilityRecordReactivated
158568
+ * @instance
158569
+ */
158570
+ GingerEligibilityRecordReactivated.prototype.hsEligibilityRecordUuid = "";
158571
+
158572
+ /**
158573
+ * Creates a new GingerEligibilityRecordReactivated instance using the specified properties.
158574
+ * @function create
158575
+ * @memberof GingerEligibilityRecordReactivated
158576
+ * @static
158577
+ * @param {IGingerEligibilityRecordReactivated=} [properties] Properties to set
158578
+ * @returns {GingerEligibilityRecordReactivated} GingerEligibilityRecordReactivated instance
158579
+ */
158580
+ GingerEligibilityRecordReactivated.create = function create(properties) {
158581
+ return new GingerEligibilityRecordReactivated(properties);
158582
+ };
158583
+
158584
+ /**
158585
+ * Encodes the specified GingerEligibilityRecordReactivated message. Does not implicitly {@link GingerEligibilityRecordReactivated.verify|verify} messages.
158586
+ * @function encode
158587
+ * @memberof GingerEligibilityRecordReactivated
158588
+ * @static
158589
+ * @param {IGingerEligibilityRecordReactivated} message GingerEligibilityRecordReactivated message or plain object to encode
158590
+ * @param {$protobuf.Writer} [writer] Writer to encode to
158591
+ * @returns {$protobuf.Writer} Writer
158592
+ */
158593
+ GingerEligibilityRecordReactivated.encode = function encode(message, writer) {
158594
+ if (!writer)
158595
+ writer = $Writer.create();
158596
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
158597
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
158598
+ if (message.gingerEligibilityRecordId != null && message.hasOwnProperty("gingerEligibilityRecordId"))
158599
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerEligibilityRecordId);
158600
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
158601
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsEligibilityRecordUuid);
158602
+ return writer;
158603
+ };
158604
+
158605
+ /**
158606
+ * Encodes the specified GingerEligibilityRecordReactivated message, length delimited. Does not implicitly {@link GingerEligibilityRecordReactivated.verify|verify} messages.
158607
+ * @function encodeDelimited
158608
+ * @memberof GingerEligibilityRecordReactivated
158609
+ * @static
158610
+ * @param {IGingerEligibilityRecordReactivated} message GingerEligibilityRecordReactivated message or plain object to encode
158611
+ * @param {$protobuf.Writer} [writer] Writer to encode to
158612
+ * @returns {$protobuf.Writer} Writer
158613
+ */
158614
+ GingerEligibilityRecordReactivated.encodeDelimited = function encodeDelimited(message, writer) {
158615
+ return this.encode(message, writer).ldelim();
158616
+ };
158617
+
158618
+ /**
158619
+ * Decodes a GingerEligibilityRecordReactivated message from the specified reader or buffer.
158620
+ * @function decode
158621
+ * @memberof GingerEligibilityRecordReactivated
158622
+ * @static
158623
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
158624
+ * @param {number} [length] Message length if known beforehand
158625
+ * @returns {GingerEligibilityRecordReactivated} GingerEligibilityRecordReactivated
158626
+ * @throws {Error} If the payload is not a reader or valid buffer
158627
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
158628
+ */
158629
+ GingerEligibilityRecordReactivated.decode = function decode(reader, length) {
158630
+ if (!(reader instanceof $Reader))
158631
+ reader = $Reader.create(reader);
158632
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerEligibilityRecordReactivated();
158633
+ while (reader.pos < end) {
158634
+ var tag = reader.uint32();
158635
+ switch (tag >>> 3) {
158636
+ case 1:
158637
+ message.hsUserId = reader.string();
158638
+ break;
158639
+ case 2:
158640
+ message.gingerEligibilityRecordId = reader.uint32();
158641
+ break;
158642
+ case 3:
158643
+ message.hsEligibilityRecordUuid = reader.string();
158644
+ break;
158645
+ default:
158646
+ reader.skipType(tag & 7);
158647
+ break;
158648
+ }
158649
+ }
158650
+ return message;
158651
+ };
158652
+
158653
+ /**
158654
+ * Decodes a GingerEligibilityRecordReactivated message from the specified reader or buffer, length delimited.
158655
+ * @function decodeDelimited
158656
+ * @memberof GingerEligibilityRecordReactivated
158657
+ * @static
158658
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
158659
+ * @returns {GingerEligibilityRecordReactivated} GingerEligibilityRecordReactivated
158660
+ * @throws {Error} If the payload is not a reader or valid buffer
158661
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
158662
+ */
158663
+ GingerEligibilityRecordReactivated.decodeDelimited = function decodeDelimited(reader) {
158664
+ if (!(reader instanceof $Reader))
158665
+ reader = new $Reader(reader);
158666
+ return this.decode(reader, reader.uint32());
158667
+ };
158668
+
158669
+ /**
158670
+ * Verifies a GingerEligibilityRecordReactivated message.
158671
+ * @function verify
158672
+ * @memberof GingerEligibilityRecordReactivated
158673
+ * @static
158674
+ * @param {Object.<string,*>} message Plain object to verify
158675
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
158676
+ */
158677
+ GingerEligibilityRecordReactivated.verify = function verify(message) {
158678
+ if (typeof message !== "object" || message === null)
158679
+ return "object expected";
158680
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
158681
+ if (!$util.isString(message.hsUserId))
158682
+ return "hsUserId: string expected";
158683
+ if (message.gingerEligibilityRecordId != null && message.hasOwnProperty("gingerEligibilityRecordId"))
158684
+ if (!$util.isInteger(message.gingerEligibilityRecordId))
158685
+ return "gingerEligibilityRecordId: integer expected";
158686
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
158687
+ if (!$util.isString(message.hsEligibilityRecordUuid))
158688
+ return "hsEligibilityRecordUuid: string expected";
158689
+ return null;
158690
+ };
158691
+
158692
+ /**
158693
+ * Creates a GingerEligibilityRecordReactivated message from a plain object. Also converts values to their respective internal types.
158694
+ * @function fromObject
158695
+ * @memberof GingerEligibilityRecordReactivated
158696
+ * @static
158697
+ * @param {Object.<string,*>} object Plain object
158698
+ * @returns {GingerEligibilityRecordReactivated} GingerEligibilityRecordReactivated
158699
+ */
158700
+ GingerEligibilityRecordReactivated.fromObject = function fromObject(object) {
158701
+ if (object instanceof $root.GingerEligibilityRecordReactivated)
158702
+ return object;
158703
+ var message = new $root.GingerEligibilityRecordReactivated();
158704
+ if (object.hsUserId != null)
158705
+ message.hsUserId = String(object.hsUserId);
158706
+ if (object.gingerEligibilityRecordId != null)
158707
+ message.gingerEligibilityRecordId = object.gingerEligibilityRecordId >>> 0;
158708
+ if (object.hsEligibilityRecordUuid != null)
158709
+ message.hsEligibilityRecordUuid = String(object.hsEligibilityRecordUuid);
158710
+ return message;
158711
+ };
158712
+
158713
+ /**
158714
+ * Creates a plain object from a GingerEligibilityRecordReactivated message. Also converts values to other types if specified.
158715
+ * @function toObject
158716
+ * @memberof GingerEligibilityRecordReactivated
158717
+ * @static
158718
+ * @param {GingerEligibilityRecordReactivated} message GingerEligibilityRecordReactivated
158719
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
158720
+ * @returns {Object.<string,*>} Plain object
158721
+ */
158722
+ GingerEligibilityRecordReactivated.toObject = function toObject(message, options) {
158723
+ if (!options)
158724
+ options = {};
158725
+ var object = {};
158726
+ if (options.defaults) {
158727
+ object.hsUserId = "";
158728
+ object.gingerEligibilityRecordId = 0;
158729
+ object.hsEligibilityRecordUuid = "";
158730
+ }
158731
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
158732
+ object.hsUserId = message.hsUserId;
158733
+ if (message.gingerEligibilityRecordId != null && message.hasOwnProperty("gingerEligibilityRecordId"))
158734
+ object.gingerEligibilityRecordId = message.gingerEligibilityRecordId;
158735
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
158736
+ object.hsEligibilityRecordUuid = message.hsEligibilityRecordUuid;
158737
+ return object;
158738
+ };
158739
+
158740
+ /**
158741
+ * Converts this GingerEligibilityRecordReactivated to JSON.
158742
+ * @function toJSON
158743
+ * @memberof GingerEligibilityRecordReactivated
158744
+ * @instance
158745
+ * @returns {Object.<string,*>} JSON object
158746
+ */
158747
+ GingerEligibilityRecordReactivated.prototype.toJSON = function toJSON() {
158748
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
158749
+ };
158750
+
158751
+ return GingerEligibilityRecordReactivated;
158752
+ })();
158753
+
158522
158754
  $root.GoalSet = (function() {
158523
158755
 
158524
158756
  /**
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.665.0"
19
+ "version": "1.667.0"
20
20
  }