@headspace/protos-events 1.666.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.
package/lib/index.d.ts CHANGED
@@ -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
@@ -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.666.0"
19
+ "version": "1.667.0"
20
20
  }