@headspace/protos-events 1.648.0 → 1.650.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
@@ -34812,6 +34812,12 @@ export interface ICoachingSessionCompleted {
34812
34812
 
34813
34813
  /** CoachingSessionCompleted eventDetail */
34814
34814
  eventDetail?: (IEventDetail|null);
34815
+
34816
+ /** CoachingSessionCompleted hsUserId */
34817
+ hsUserId?: (string|null);
34818
+
34819
+ /** CoachingSessionCompleted isScheduledCheckin */
34820
+ isScheduledCheckin?: (boolean|null);
34815
34821
  }
34816
34822
 
34817
34823
  /** Represents a CoachingSessionCompleted. */
@@ -34826,6 +34832,12 @@ export class CoachingSessionCompleted implements ICoachingSessionCompleted {
34826
34832
  /** CoachingSessionCompleted eventDetail. */
34827
34833
  public eventDetail?: (IEventDetail|null);
34828
34834
 
34835
+ /** CoachingSessionCompleted hsUserId. */
34836
+ public hsUserId: string;
34837
+
34838
+ /** CoachingSessionCompleted isScheduledCheckin. */
34839
+ public isScheduledCheckin: boolean;
34840
+
34829
34841
  /**
34830
34842
  * Creates a new CoachingSessionCompleted instance using the specified properties.
34831
34843
  * @param [properties] Properties to set
@@ -55761,6 +55773,212 @@ export class GingerDependentUpgraded implements IGingerDependentUpgraded {
55761
55773
  public toJSON(): { [k: string]: any };
55762
55774
  }
55763
55775
 
55776
+ /** Properties of a GingerEligibilityRecordCreated. */
55777
+ export interface IGingerEligibilityRecordCreated {
55778
+
55779
+ /** GingerEligibilityRecordCreated gingerEligibilityRecordId */
55780
+ gingerEligibilityRecordId?: (number|null);
55781
+
55782
+ /** GingerEligibilityRecordCreated gingerOrgId */
55783
+ gingerOrgId?: (number|null);
55784
+
55785
+ /** GingerEligibilityRecordCreated headspaceHealthOrgId */
55786
+ headspaceHealthOrgId?: (string|null);
55787
+
55788
+ /** GingerEligibilityRecordCreated b2bOrgId */
55789
+ b2bOrgId?: (number|null);
55790
+
55791
+ /** GingerEligibilityRecordCreated b2bRootOrgId */
55792
+ b2bRootOrgId?: (number|null);
55793
+
55794
+ /** GingerEligibilityRecordCreated workEmail */
55795
+ workEmail?: (string|null);
55796
+
55797
+ /** GingerEligibilityRecordCreated workId */
55798
+ workId?: (string|null);
55799
+
55800
+ /** GingerEligibilityRecordCreated firstName */
55801
+ firstName?: (string|null);
55802
+
55803
+ /** GingerEligibilityRecordCreated lastName */
55804
+ lastName?: (string|null);
55805
+
55806
+ /** GingerEligibilityRecordCreated zipCode */
55807
+ zipCode?: (string|null);
55808
+
55809
+ /** GingerEligibilityRecordCreated dob */
55810
+ dob?: (string|null);
55811
+
55812
+ /** GingerEligibilityRecordCreated country */
55813
+ country?: (string|null);
55814
+
55815
+ /** GingerEligibilityRecordCreated streetAddress_1 */
55816
+ streetAddress_1?: (string|null);
55817
+
55818
+ /** GingerEligibilityRecordCreated streetAddress_2 */
55819
+ streetAddress_2?: (string|null);
55820
+
55821
+ /** GingerEligibilityRecordCreated department */
55822
+ department?: (string|null);
55823
+
55824
+ /** GingerEligibilityRecordCreated location */
55825
+ location?: (string|null);
55826
+
55827
+ /** GingerEligibilityRecordCreated collectiveUuid */
55828
+ collectiveUuid?: (string|null);
55829
+
55830
+ /** GingerEligibilityRecordCreated hierarchyMappingValue */
55831
+ hierarchyMappingValue?: (string|null);
55832
+
55833
+ /** GingerEligibilityRecordCreated hsEligibilityRecordUuid */
55834
+ hsEligibilityRecordUuid?: (string|null);
55835
+ }
55836
+
55837
+ /**
55838
+ * Indicates the creation of an EligibilityRecord on the ginger system.
55839
+ * An EligibilityRecord is a data entry that represents the eligibility status of an individual
55840
+ * in our systems. Ginger-only records live only on the ginger system, and Unified and Fusion live in
55841
+ * in multiple services, but we are migrating some to the hs-eligibility-service.
55842
+ * Eligibility Records will usually be created by partners uploading eligibility files, but there are other sources too,
55843
+ * such as partners redirecting to our landing pages.
55844
+ * This event was essentially thought of to migrate existing and still eligible ginger-only records to Fusion.
55845
+ */
55846
+ export class GingerEligibilityRecordCreated implements IGingerEligibilityRecordCreated {
55847
+
55848
+ /**
55849
+ * Constructs a new GingerEligibilityRecordCreated.
55850
+ * @param [properties] Properties to set
55851
+ */
55852
+ constructor(properties?: IGingerEligibilityRecordCreated);
55853
+
55854
+ /** GingerEligibilityRecordCreated gingerEligibilityRecordId. */
55855
+ public gingerEligibilityRecordId: number;
55856
+
55857
+ /** GingerEligibilityRecordCreated gingerOrgId. */
55858
+ public gingerOrgId: number;
55859
+
55860
+ /** GingerEligibilityRecordCreated headspaceHealthOrgId. */
55861
+ public headspaceHealthOrgId: string;
55862
+
55863
+ /** GingerEligibilityRecordCreated b2bOrgId. */
55864
+ public b2bOrgId: number;
55865
+
55866
+ /** GingerEligibilityRecordCreated b2bRootOrgId. */
55867
+ public b2bRootOrgId: number;
55868
+
55869
+ /** GingerEligibilityRecordCreated workEmail. */
55870
+ public workEmail: string;
55871
+
55872
+ /** GingerEligibilityRecordCreated workId. */
55873
+ public workId: string;
55874
+
55875
+ /** GingerEligibilityRecordCreated firstName. */
55876
+ public firstName: string;
55877
+
55878
+ /** GingerEligibilityRecordCreated lastName. */
55879
+ public lastName: string;
55880
+
55881
+ /** GingerEligibilityRecordCreated zipCode. */
55882
+ public zipCode: string;
55883
+
55884
+ /** GingerEligibilityRecordCreated dob. */
55885
+ public dob: string;
55886
+
55887
+ /** GingerEligibilityRecordCreated country. */
55888
+ public country: string;
55889
+
55890
+ /** GingerEligibilityRecordCreated streetAddress_1. */
55891
+ public streetAddress_1: string;
55892
+
55893
+ /** GingerEligibilityRecordCreated streetAddress_2. */
55894
+ public streetAddress_2: string;
55895
+
55896
+ /** GingerEligibilityRecordCreated department. */
55897
+ public department: string;
55898
+
55899
+ /** GingerEligibilityRecordCreated location. */
55900
+ public location: string;
55901
+
55902
+ /** GingerEligibilityRecordCreated collectiveUuid. */
55903
+ public collectiveUuid: string;
55904
+
55905
+ /** GingerEligibilityRecordCreated hierarchyMappingValue. */
55906
+ public hierarchyMappingValue: string;
55907
+
55908
+ /** GingerEligibilityRecordCreated hsEligibilityRecordUuid. */
55909
+ public hsEligibilityRecordUuid: string;
55910
+
55911
+ /**
55912
+ * Creates a new GingerEligibilityRecordCreated instance using the specified properties.
55913
+ * @param [properties] Properties to set
55914
+ * @returns GingerEligibilityRecordCreated instance
55915
+ */
55916
+ public static create(properties?: IGingerEligibilityRecordCreated): GingerEligibilityRecordCreated;
55917
+
55918
+ /**
55919
+ * Encodes the specified GingerEligibilityRecordCreated message. Does not implicitly {@link GingerEligibilityRecordCreated.verify|verify} messages.
55920
+ * @param message GingerEligibilityRecordCreated message or plain object to encode
55921
+ * @param [writer] Writer to encode to
55922
+ * @returns Writer
55923
+ */
55924
+ public static encode(message: IGingerEligibilityRecordCreated, writer?: $protobuf.Writer): $protobuf.Writer;
55925
+
55926
+ /**
55927
+ * Encodes the specified GingerEligibilityRecordCreated message, length delimited. Does not implicitly {@link GingerEligibilityRecordCreated.verify|verify} messages.
55928
+ * @param message GingerEligibilityRecordCreated message or plain object to encode
55929
+ * @param [writer] Writer to encode to
55930
+ * @returns Writer
55931
+ */
55932
+ public static encodeDelimited(message: IGingerEligibilityRecordCreated, writer?: $protobuf.Writer): $protobuf.Writer;
55933
+
55934
+ /**
55935
+ * Decodes a GingerEligibilityRecordCreated message from the specified reader or buffer.
55936
+ * @param reader Reader or buffer to decode from
55937
+ * @param [length] Message length if known beforehand
55938
+ * @returns GingerEligibilityRecordCreated
55939
+ * @throws {Error} If the payload is not a reader or valid buffer
55940
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55941
+ */
55942
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerEligibilityRecordCreated;
55943
+
55944
+ /**
55945
+ * Decodes a GingerEligibilityRecordCreated message from the specified reader or buffer, length delimited.
55946
+ * @param reader Reader or buffer to decode from
55947
+ * @returns GingerEligibilityRecordCreated
55948
+ * @throws {Error} If the payload is not a reader or valid buffer
55949
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55950
+ */
55951
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerEligibilityRecordCreated;
55952
+
55953
+ /**
55954
+ * Verifies a GingerEligibilityRecordCreated message.
55955
+ * @param message Plain object to verify
55956
+ * @returns `null` if valid, otherwise the reason why it is not
55957
+ */
55958
+ public static verify(message: { [k: string]: any }): (string|null);
55959
+
55960
+ /**
55961
+ * Creates a GingerEligibilityRecordCreated message from a plain object. Also converts values to their respective internal types.
55962
+ * @param object Plain object
55963
+ * @returns GingerEligibilityRecordCreated
55964
+ */
55965
+ public static fromObject(object: { [k: string]: any }): GingerEligibilityRecordCreated;
55966
+
55967
+ /**
55968
+ * Creates a plain object from a GingerEligibilityRecordCreated message. Also converts values to other types if specified.
55969
+ * @param message GingerEligibilityRecordCreated
55970
+ * @param [options] Conversion options
55971
+ * @returns Plain object
55972
+ */
55973
+ public static toObject(message: GingerEligibilityRecordCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
55974
+
55975
+ /**
55976
+ * Converts this GingerEligibilityRecordCreated to JSON.
55977
+ * @returns JSON object
55978
+ */
55979
+ public toJSON(): { [k: string]: any };
55980
+ }
55981
+
55764
55982
  /** Properties of a GoalSet. */
55765
55983
  export interface IGoalSet {
55766
55984
 
package/lib/index.js CHANGED
@@ -99030,6 +99030,8 @@ $root.CoachingSessionCompleted = (function() {
99030
99030
  * @name ICoachingSessionCompleted
99031
99031
  * @interface ICoachingSessionCompleted
99032
99032
  * @property {IEventDetail|null} [eventDetail] CoachingSessionCompleted eventDetail
99033
+ * @property {string|null} [hsUserId] CoachingSessionCompleted hsUserId
99034
+ * @property {boolean|null} [isScheduledCheckin] CoachingSessionCompleted isScheduledCheckin
99033
99035
  */
99034
99036
 
99035
99037
  /**
@@ -99055,6 +99057,22 @@ $root.CoachingSessionCompleted = (function() {
99055
99057
  */
99056
99058
  CoachingSessionCompleted.prototype.eventDetail = null;
99057
99059
 
99060
+ /**
99061
+ * CoachingSessionCompleted hsUserId.
99062
+ * @member {string} hsUserId
99063
+ * @memberof CoachingSessionCompleted
99064
+ * @instance
99065
+ */
99066
+ CoachingSessionCompleted.prototype.hsUserId = "";
99067
+
99068
+ /**
99069
+ * CoachingSessionCompleted isScheduledCheckin.
99070
+ * @member {boolean} isScheduledCheckin
99071
+ * @memberof CoachingSessionCompleted
99072
+ * @instance
99073
+ */
99074
+ CoachingSessionCompleted.prototype.isScheduledCheckin = false;
99075
+
99058
99076
  /**
99059
99077
  * Creates a new CoachingSessionCompleted instance using the specified properties.
99060
99078
  * @function create
@@ -99081,6 +99099,10 @@ $root.CoachingSessionCompleted = (function() {
99081
99099
  writer = $Writer.create();
99082
99100
  if (message.eventDetail != null && message.hasOwnProperty("eventDetail"))
99083
99101
  $root.EventDetail.encode(message.eventDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
99102
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99103
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
99104
+ if (message.isScheduledCheckin != null && message.hasOwnProperty("isScheduledCheckin"))
99105
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isScheduledCheckin);
99084
99106
  return writer;
99085
99107
  };
99086
99108
 
@@ -99118,6 +99140,12 @@ $root.CoachingSessionCompleted = (function() {
99118
99140
  case 1:
99119
99141
  message.eventDetail = $root.EventDetail.decode(reader, reader.uint32());
99120
99142
  break;
99143
+ case 2:
99144
+ message.hsUserId = reader.string();
99145
+ break;
99146
+ case 3:
99147
+ message.isScheduledCheckin = reader.bool();
99148
+ break;
99121
99149
  default:
99122
99150
  reader.skipType(tag & 7);
99123
99151
  break;
@@ -99158,6 +99186,12 @@ $root.CoachingSessionCompleted = (function() {
99158
99186
  if (error)
99159
99187
  return "eventDetail." + error;
99160
99188
  }
99189
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99190
+ if (!$util.isString(message.hsUserId))
99191
+ return "hsUserId: string expected";
99192
+ if (message.isScheduledCheckin != null && message.hasOwnProperty("isScheduledCheckin"))
99193
+ if (typeof message.isScheduledCheckin !== "boolean")
99194
+ return "isScheduledCheckin: boolean expected";
99161
99195
  return null;
99162
99196
  };
99163
99197
 
@@ -99178,6 +99212,10 @@ $root.CoachingSessionCompleted = (function() {
99178
99212
  throw TypeError(".CoachingSessionCompleted.eventDetail: object expected");
99179
99213
  message.eventDetail = $root.EventDetail.fromObject(object.eventDetail);
99180
99214
  }
99215
+ if (object.hsUserId != null)
99216
+ message.hsUserId = String(object.hsUserId);
99217
+ if (object.isScheduledCheckin != null)
99218
+ message.isScheduledCheckin = Boolean(object.isScheduledCheckin);
99181
99219
  return message;
99182
99220
  };
99183
99221
 
@@ -99194,10 +99232,17 @@ $root.CoachingSessionCompleted = (function() {
99194
99232
  if (!options)
99195
99233
  options = {};
99196
99234
  var object = {};
99197
- if (options.defaults)
99235
+ if (options.defaults) {
99198
99236
  object.eventDetail = null;
99237
+ object.hsUserId = "";
99238
+ object.isScheduledCheckin = false;
99239
+ }
99199
99240
  if (message.eventDetail != null && message.hasOwnProperty("eventDetail"))
99200
99241
  object.eventDetail = $root.EventDetail.toObject(message.eventDetail, options);
99242
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99243
+ object.hsUserId = message.hsUserId;
99244
+ if (message.isScheduledCheckin != null && message.hasOwnProperty("isScheduledCheckin"))
99245
+ object.isScheduledCheckin = message.isScheduledCheckin;
99201
99246
  return object;
99202
99247
  };
99203
99248
 
@@ -155963,6 +156008,596 @@ $root.GingerDependentUpgraded = (function() {
155963
156008
  return GingerDependentUpgraded;
155964
156009
  })();
155965
156010
 
156011
+ $root.GingerEligibilityRecordCreated = (function() {
156012
+
156013
+ /**
156014
+ * Properties of a GingerEligibilityRecordCreated.
156015
+ * @name IGingerEligibilityRecordCreated
156016
+ * @interface IGingerEligibilityRecordCreated
156017
+ * @property {number|null} [gingerEligibilityRecordId] GingerEligibilityRecordCreated gingerEligibilityRecordId
156018
+ * @property {number|null} [gingerOrgId] GingerEligibilityRecordCreated gingerOrgId
156019
+ * @property {string|null} [headspaceHealthOrgId] GingerEligibilityRecordCreated headspaceHealthOrgId
156020
+ * @property {number|null} [b2bOrgId] GingerEligibilityRecordCreated b2bOrgId
156021
+ * @property {number|null} [b2bRootOrgId] GingerEligibilityRecordCreated b2bRootOrgId
156022
+ * @property {string|null} [workEmail] GingerEligibilityRecordCreated workEmail
156023
+ * @property {string|null} [workId] GingerEligibilityRecordCreated workId
156024
+ * @property {string|null} [firstName] GingerEligibilityRecordCreated firstName
156025
+ * @property {string|null} [lastName] GingerEligibilityRecordCreated lastName
156026
+ * @property {string|null} [zipCode] GingerEligibilityRecordCreated zipCode
156027
+ * @property {string|null} [dob] GingerEligibilityRecordCreated dob
156028
+ * @property {string|null} [country] GingerEligibilityRecordCreated country
156029
+ * @property {string|null} [streetAddress_1] GingerEligibilityRecordCreated streetAddress_1
156030
+ * @property {string|null} [streetAddress_2] GingerEligibilityRecordCreated streetAddress_2
156031
+ * @property {string|null} [department] GingerEligibilityRecordCreated department
156032
+ * @property {string|null} [location] GingerEligibilityRecordCreated location
156033
+ * @property {string|null} [collectiveUuid] GingerEligibilityRecordCreated collectiveUuid
156034
+ * @property {string|null} [hierarchyMappingValue] GingerEligibilityRecordCreated hierarchyMappingValue
156035
+ * @property {string|null} [hsEligibilityRecordUuid] GingerEligibilityRecordCreated hsEligibilityRecordUuid
156036
+ */
156037
+
156038
+ /**
156039
+ * Constructs a new GingerEligibilityRecordCreated.
156040
+ * @name GingerEligibilityRecordCreated
156041
+ * @classdesc Indicates the creation of an EligibilityRecord on the ginger system.
156042
+ * An EligibilityRecord is a data entry that represents the eligibility status of an individual
156043
+ * in our systems. Ginger-only records live only on the ginger system, and Unified and Fusion live in
156044
+ * in multiple services, but we are migrating some to the hs-eligibility-service.
156045
+ * Eligibility Records will usually be created by partners uploading eligibility files, but there are other sources too,
156046
+ * such as partners redirecting to our landing pages.
156047
+ * This event was essentially thought of to migrate existing and still eligible ginger-only records to Fusion.
156048
+ * @implements IGingerEligibilityRecordCreated
156049
+ * @constructor
156050
+ * @param {IGingerEligibilityRecordCreated=} [properties] Properties to set
156051
+ */
156052
+ function GingerEligibilityRecordCreated(properties) {
156053
+ if (properties)
156054
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
156055
+ if (properties[keys[i]] != null)
156056
+ this[keys[i]] = properties[keys[i]];
156057
+ }
156058
+
156059
+ /**
156060
+ * GingerEligibilityRecordCreated gingerEligibilityRecordId.
156061
+ * @member {number} gingerEligibilityRecordId
156062
+ * @memberof GingerEligibilityRecordCreated
156063
+ * @instance
156064
+ */
156065
+ GingerEligibilityRecordCreated.prototype.gingerEligibilityRecordId = 0;
156066
+
156067
+ /**
156068
+ * GingerEligibilityRecordCreated gingerOrgId.
156069
+ * @member {number} gingerOrgId
156070
+ * @memberof GingerEligibilityRecordCreated
156071
+ * @instance
156072
+ */
156073
+ GingerEligibilityRecordCreated.prototype.gingerOrgId = 0;
156074
+
156075
+ /**
156076
+ * GingerEligibilityRecordCreated headspaceHealthOrgId.
156077
+ * @member {string} headspaceHealthOrgId
156078
+ * @memberof GingerEligibilityRecordCreated
156079
+ * @instance
156080
+ */
156081
+ GingerEligibilityRecordCreated.prototype.headspaceHealthOrgId = "";
156082
+
156083
+ /**
156084
+ * GingerEligibilityRecordCreated b2bOrgId.
156085
+ * @member {number} b2bOrgId
156086
+ * @memberof GingerEligibilityRecordCreated
156087
+ * @instance
156088
+ */
156089
+ GingerEligibilityRecordCreated.prototype.b2bOrgId = 0;
156090
+
156091
+ /**
156092
+ * GingerEligibilityRecordCreated b2bRootOrgId.
156093
+ * @member {number} b2bRootOrgId
156094
+ * @memberof GingerEligibilityRecordCreated
156095
+ * @instance
156096
+ */
156097
+ GingerEligibilityRecordCreated.prototype.b2bRootOrgId = 0;
156098
+
156099
+ /**
156100
+ * GingerEligibilityRecordCreated workEmail.
156101
+ * @member {string} workEmail
156102
+ * @memberof GingerEligibilityRecordCreated
156103
+ * @instance
156104
+ */
156105
+ GingerEligibilityRecordCreated.prototype.workEmail = "";
156106
+
156107
+ /**
156108
+ * GingerEligibilityRecordCreated workId.
156109
+ * @member {string} workId
156110
+ * @memberof GingerEligibilityRecordCreated
156111
+ * @instance
156112
+ */
156113
+ GingerEligibilityRecordCreated.prototype.workId = "";
156114
+
156115
+ /**
156116
+ * GingerEligibilityRecordCreated firstName.
156117
+ * @member {string} firstName
156118
+ * @memberof GingerEligibilityRecordCreated
156119
+ * @instance
156120
+ */
156121
+ GingerEligibilityRecordCreated.prototype.firstName = "";
156122
+
156123
+ /**
156124
+ * GingerEligibilityRecordCreated lastName.
156125
+ * @member {string} lastName
156126
+ * @memberof GingerEligibilityRecordCreated
156127
+ * @instance
156128
+ */
156129
+ GingerEligibilityRecordCreated.prototype.lastName = "";
156130
+
156131
+ /**
156132
+ * GingerEligibilityRecordCreated zipCode.
156133
+ * @member {string} zipCode
156134
+ * @memberof GingerEligibilityRecordCreated
156135
+ * @instance
156136
+ */
156137
+ GingerEligibilityRecordCreated.prototype.zipCode = "";
156138
+
156139
+ /**
156140
+ * GingerEligibilityRecordCreated dob.
156141
+ * @member {string} dob
156142
+ * @memberof GingerEligibilityRecordCreated
156143
+ * @instance
156144
+ */
156145
+ GingerEligibilityRecordCreated.prototype.dob = "";
156146
+
156147
+ /**
156148
+ * GingerEligibilityRecordCreated country.
156149
+ * @member {string} country
156150
+ * @memberof GingerEligibilityRecordCreated
156151
+ * @instance
156152
+ */
156153
+ GingerEligibilityRecordCreated.prototype.country = "";
156154
+
156155
+ /**
156156
+ * GingerEligibilityRecordCreated streetAddress_1.
156157
+ * @member {string} streetAddress_1
156158
+ * @memberof GingerEligibilityRecordCreated
156159
+ * @instance
156160
+ */
156161
+ GingerEligibilityRecordCreated.prototype.streetAddress_1 = "";
156162
+
156163
+ /**
156164
+ * GingerEligibilityRecordCreated streetAddress_2.
156165
+ * @member {string} streetAddress_2
156166
+ * @memberof GingerEligibilityRecordCreated
156167
+ * @instance
156168
+ */
156169
+ GingerEligibilityRecordCreated.prototype.streetAddress_2 = "";
156170
+
156171
+ /**
156172
+ * GingerEligibilityRecordCreated department.
156173
+ * @member {string} department
156174
+ * @memberof GingerEligibilityRecordCreated
156175
+ * @instance
156176
+ */
156177
+ GingerEligibilityRecordCreated.prototype.department = "";
156178
+
156179
+ /**
156180
+ * GingerEligibilityRecordCreated location.
156181
+ * @member {string} location
156182
+ * @memberof GingerEligibilityRecordCreated
156183
+ * @instance
156184
+ */
156185
+ GingerEligibilityRecordCreated.prototype.location = "";
156186
+
156187
+ /**
156188
+ * GingerEligibilityRecordCreated collectiveUuid.
156189
+ * @member {string} collectiveUuid
156190
+ * @memberof GingerEligibilityRecordCreated
156191
+ * @instance
156192
+ */
156193
+ GingerEligibilityRecordCreated.prototype.collectiveUuid = "";
156194
+
156195
+ /**
156196
+ * GingerEligibilityRecordCreated hierarchyMappingValue.
156197
+ * @member {string} hierarchyMappingValue
156198
+ * @memberof GingerEligibilityRecordCreated
156199
+ * @instance
156200
+ */
156201
+ GingerEligibilityRecordCreated.prototype.hierarchyMappingValue = "";
156202
+
156203
+ /**
156204
+ * GingerEligibilityRecordCreated hsEligibilityRecordUuid.
156205
+ * @member {string} hsEligibilityRecordUuid
156206
+ * @memberof GingerEligibilityRecordCreated
156207
+ * @instance
156208
+ */
156209
+ GingerEligibilityRecordCreated.prototype.hsEligibilityRecordUuid = "";
156210
+
156211
+ /**
156212
+ * Creates a new GingerEligibilityRecordCreated instance using the specified properties.
156213
+ * @function create
156214
+ * @memberof GingerEligibilityRecordCreated
156215
+ * @static
156216
+ * @param {IGingerEligibilityRecordCreated=} [properties] Properties to set
156217
+ * @returns {GingerEligibilityRecordCreated} GingerEligibilityRecordCreated instance
156218
+ */
156219
+ GingerEligibilityRecordCreated.create = function create(properties) {
156220
+ return new GingerEligibilityRecordCreated(properties);
156221
+ };
156222
+
156223
+ /**
156224
+ * Encodes the specified GingerEligibilityRecordCreated message. Does not implicitly {@link GingerEligibilityRecordCreated.verify|verify} messages.
156225
+ * @function encode
156226
+ * @memberof GingerEligibilityRecordCreated
156227
+ * @static
156228
+ * @param {IGingerEligibilityRecordCreated} message GingerEligibilityRecordCreated message or plain object to encode
156229
+ * @param {$protobuf.Writer} [writer] Writer to encode to
156230
+ * @returns {$protobuf.Writer} Writer
156231
+ */
156232
+ GingerEligibilityRecordCreated.encode = function encode(message, writer) {
156233
+ if (!writer)
156234
+ writer = $Writer.create();
156235
+ if (message.gingerEligibilityRecordId != null && message.hasOwnProperty("gingerEligibilityRecordId"))
156236
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.gingerEligibilityRecordId);
156237
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
156238
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerOrgId);
156239
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
156240
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.headspaceHealthOrgId);
156241
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
156242
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.b2bOrgId);
156243
+ if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
156244
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.b2bRootOrgId);
156245
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
156246
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.workEmail);
156247
+ if (message.workId != null && message.hasOwnProperty("workId"))
156248
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.workId);
156249
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
156250
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.firstName);
156251
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
156252
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastName);
156253
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
156254
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.zipCode);
156255
+ if (message.dob != null && message.hasOwnProperty("dob"))
156256
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.dob);
156257
+ if (message.country != null && message.hasOwnProperty("country"))
156258
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.country);
156259
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
156260
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.streetAddress_1);
156261
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
156262
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.streetAddress_2);
156263
+ if (message.department != null && message.hasOwnProperty("department"))
156264
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.department);
156265
+ if (message.location != null && message.hasOwnProperty("location"))
156266
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.location);
156267
+ if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
156268
+ writer.uint32(/* id 17, wireType 2 =*/138).string(message.collectiveUuid);
156269
+ if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
156270
+ writer.uint32(/* id 18, wireType 2 =*/146).string(message.hierarchyMappingValue);
156271
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
156272
+ writer.uint32(/* id 19, wireType 2 =*/154).string(message.hsEligibilityRecordUuid);
156273
+ return writer;
156274
+ };
156275
+
156276
+ /**
156277
+ * Encodes the specified GingerEligibilityRecordCreated message, length delimited. Does not implicitly {@link GingerEligibilityRecordCreated.verify|verify} messages.
156278
+ * @function encodeDelimited
156279
+ * @memberof GingerEligibilityRecordCreated
156280
+ * @static
156281
+ * @param {IGingerEligibilityRecordCreated} message GingerEligibilityRecordCreated message or plain object to encode
156282
+ * @param {$protobuf.Writer} [writer] Writer to encode to
156283
+ * @returns {$protobuf.Writer} Writer
156284
+ */
156285
+ GingerEligibilityRecordCreated.encodeDelimited = function encodeDelimited(message, writer) {
156286
+ return this.encode(message, writer).ldelim();
156287
+ };
156288
+
156289
+ /**
156290
+ * Decodes a GingerEligibilityRecordCreated message from the specified reader or buffer.
156291
+ * @function decode
156292
+ * @memberof GingerEligibilityRecordCreated
156293
+ * @static
156294
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
156295
+ * @param {number} [length] Message length if known beforehand
156296
+ * @returns {GingerEligibilityRecordCreated} GingerEligibilityRecordCreated
156297
+ * @throws {Error} If the payload is not a reader or valid buffer
156298
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
156299
+ */
156300
+ GingerEligibilityRecordCreated.decode = function decode(reader, length) {
156301
+ if (!(reader instanceof $Reader))
156302
+ reader = $Reader.create(reader);
156303
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerEligibilityRecordCreated();
156304
+ while (reader.pos < end) {
156305
+ var tag = reader.uint32();
156306
+ switch (tag >>> 3) {
156307
+ case 1:
156308
+ message.gingerEligibilityRecordId = reader.uint32();
156309
+ break;
156310
+ case 2:
156311
+ message.gingerOrgId = reader.uint32();
156312
+ break;
156313
+ case 3:
156314
+ message.headspaceHealthOrgId = reader.string();
156315
+ break;
156316
+ case 4:
156317
+ message.b2bOrgId = reader.uint32();
156318
+ break;
156319
+ case 5:
156320
+ message.b2bRootOrgId = reader.uint32();
156321
+ break;
156322
+ case 6:
156323
+ message.workEmail = reader.string();
156324
+ break;
156325
+ case 7:
156326
+ message.workId = reader.string();
156327
+ break;
156328
+ case 8:
156329
+ message.firstName = reader.string();
156330
+ break;
156331
+ case 9:
156332
+ message.lastName = reader.string();
156333
+ break;
156334
+ case 10:
156335
+ message.zipCode = reader.string();
156336
+ break;
156337
+ case 11:
156338
+ message.dob = reader.string();
156339
+ break;
156340
+ case 12:
156341
+ message.country = reader.string();
156342
+ break;
156343
+ case 13:
156344
+ message.streetAddress_1 = reader.string();
156345
+ break;
156346
+ case 14:
156347
+ message.streetAddress_2 = reader.string();
156348
+ break;
156349
+ case 15:
156350
+ message.department = reader.string();
156351
+ break;
156352
+ case 16:
156353
+ message.location = reader.string();
156354
+ break;
156355
+ case 17:
156356
+ message.collectiveUuid = reader.string();
156357
+ break;
156358
+ case 18:
156359
+ message.hierarchyMappingValue = reader.string();
156360
+ break;
156361
+ case 19:
156362
+ message.hsEligibilityRecordUuid = reader.string();
156363
+ break;
156364
+ default:
156365
+ reader.skipType(tag & 7);
156366
+ break;
156367
+ }
156368
+ }
156369
+ return message;
156370
+ };
156371
+
156372
+ /**
156373
+ * Decodes a GingerEligibilityRecordCreated message from the specified reader or buffer, length delimited.
156374
+ * @function decodeDelimited
156375
+ * @memberof GingerEligibilityRecordCreated
156376
+ * @static
156377
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
156378
+ * @returns {GingerEligibilityRecordCreated} GingerEligibilityRecordCreated
156379
+ * @throws {Error} If the payload is not a reader or valid buffer
156380
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
156381
+ */
156382
+ GingerEligibilityRecordCreated.decodeDelimited = function decodeDelimited(reader) {
156383
+ if (!(reader instanceof $Reader))
156384
+ reader = new $Reader(reader);
156385
+ return this.decode(reader, reader.uint32());
156386
+ };
156387
+
156388
+ /**
156389
+ * Verifies a GingerEligibilityRecordCreated message.
156390
+ * @function verify
156391
+ * @memberof GingerEligibilityRecordCreated
156392
+ * @static
156393
+ * @param {Object.<string,*>} message Plain object to verify
156394
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
156395
+ */
156396
+ GingerEligibilityRecordCreated.verify = function verify(message) {
156397
+ if (typeof message !== "object" || message === null)
156398
+ return "object expected";
156399
+ if (message.gingerEligibilityRecordId != null && message.hasOwnProperty("gingerEligibilityRecordId"))
156400
+ if (!$util.isInteger(message.gingerEligibilityRecordId))
156401
+ return "gingerEligibilityRecordId: integer expected";
156402
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
156403
+ if (!$util.isInteger(message.gingerOrgId))
156404
+ return "gingerOrgId: integer expected";
156405
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
156406
+ if (!$util.isString(message.headspaceHealthOrgId))
156407
+ return "headspaceHealthOrgId: string expected";
156408
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
156409
+ if (!$util.isInteger(message.b2bOrgId))
156410
+ return "b2bOrgId: integer expected";
156411
+ if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
156412
+ if (!$util.isInteger(message.b2bRootOrgId))
156413
+ return "b2bRootOrgId: integer expected";
156414
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
156415
+ if (!$util.isString(message.workEmail))
156416
+ return "workEmail: string expected";
156417
+ if (message.workId != null && message.hasOwnProperty("workId"))
156418
+ if (!$util.isString(message.workId))
156419
+ return "workId: string expected";
156420
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
156421
+ if (!$util.isString(message.firstName))
156422
+ return "firstName: string expected";
156423
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
156424
+ if (!$util.isString(message.lastName))
156425
+ return "lastName: string expected";
156426
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
156427
+ if (!$util.isString(message.zipCode))
156428
+ return "zipCode: string expected";
156429
+ if (message.dob != null && message.hasOwnProperty("dob"))
156430
+ if (!$util.isString(message.dob))
156431
+ return "dob: string expected";
156432
+ if (message.country != null && message.hasOwnProperty("country"))
156433
+ if (!$util.isString(message.country))
156434
+ return "country: string expected";
156435
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
156436
+ if (!$util.isString(message.streetAddress_1))
156437
+ return "streetAddress_1: string expected";
156438
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
156439
+ if (!$util.isString(message.streetAddress_2))
156440
+ return "streetAddress_2: string expected";
156441
+ if (message.department != null && message.hasOwnProperty("department"))
156442
+ if (!$util.isString(message.department))
156443
+ return "department: string expected";
156444
+ if (message.location != null && message.hasOwnProperty("location"))
156445
+ if (!$util.isString(message.location))
156446
+ return "location: string expected";
156447
+ if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
156448
+ if (!$util.isString(message.collectiveUuid))
156449
+ return "collectiveUuid: string expected";
156450
+ if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
156451
+ if (!$util.isString(message.hierarchyMappingValue))
156452
+ return "hierarchyMappingValue: string expected";
156453
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
156454
+ if (!$util.isString(message.hsEligibilityRecordUuid))
156455
+ return "hsEligibilityRecordUuid: string expected";
156456
+ return null;
156457
+ };
156458
+
156459
+ /**
156460
+ * Creates a GingerEligibilityRecordCreated message from a plain object. Also converts values to their respective internal types.
156461
+ * @function fromObject
156462
+ * @memberof GingerEligibilityRecordCreated
156463
+ * @static
156464
+ * @param {Object.<string,*>} object Plain object
156465
+ * @returns {GingerEligibilityRecordCreated} GingerEligibilityRecordCreated
156466
+ */
156467
+ GingerEligibilityRecordCreated.fromObject = function fromObject(object) {
156468
+ if (object instanceof $root.GingerEligibilityRecordCreated)
156469
+ return object;
156470
+ var message = new $root.GingerEligibilityRecordCreated();
156471
+ if (object.gingerEligibilityRecordId != null)
156472
+ message.gingerEligibilityRecordId = object.gingerEligibilityRecordId >>> 0;
156473
+ if (object.gingerOrgId != null)
156474
+ message.gingerOrgId = object.gingerOrgId >>> 0;
156475
+ if (object.headspaceHealthOrgId != null)
156476
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
156477
+ if (object.b2bOrgId != null)
156478
+ message.b2bOrgId = object.b2bOrgId >>> 0;
156479
+ if (object.b2bRootOrgId != null)
156480
+ message.b2bRootOrgId = object.b2bRootOrgId >>> 0;
156481
+ if (object.workEmail != null)
156482
+ message.workEmail = String(object.workEmail);
156483
+ if (object.workId != null)
156484
+ message.workId = String(object.workId);
156485
+ if (object.firstName != null)
156486
+ message.firstName = String(object.firstName);
156487
+ if (object.lastName != null)
156488
+ message.lastName = String(object.lastName);
156489
+ if (object.zipCode != null)
156490
+ message.zipCode = String(object.zipCode);
156491
+ if (object.dob != null)
156492
+ message.dob = String(object.dob);
156493
+ if (object.country != null)
156494
+ message.country = String(object.country);
156495
+ if (object.streetAddress_1 != null)
156496
+ message.streetAddress_1 = String(object.streetAddress_1);
156497
+ if (object.streetAddress_2 != null)
156498
+ message.streetAddress_2 = String(object.streetAddress_2);
156499
+ if (object.department != null)
156500
+ message.department = String(object.department);
156501
+ if (object.location != null)
156502
+ message.location = String(object.location);
156503
+ if (object.collectiveUuid != null)
156504
+ message.collectiveUuid = String(object.collectiveUuid);
156505
+ if (object.hierarchyMappingValue != null)
156506
+ message.hierarchyMappingValue = String(object.hierarchyMappingValue);
156507
+ if (object.hsEligibilityRecordUuid != null)
156508
+ message.hsEligibilityRecordUuid = String(object.hsEligibilityRecordUuid);
156509
+ return message;
156510
+ };
156511
+
156512
+ /**
156513
+ * Creates a plain object from a GingerEligibilityRecordCreated message. Also converts values to other types if specified.
156514
+ * @function toObject
156515
+ * @memberof GingerEligibilityRecordCreated
156516
+ * @static
156517
+ * @param {GingerEligibilityRecordCreated} message GingerEligibilityRecordCreated
156518
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
156519
+ * @returns {Object.<string,*>} Plain object
156520
+ */
156521
+ GingerEligibilityRecordCreated.toObject = function toObject(message, options) {
156522
+ if (!options)
156523
+ options = {};
156524
+ var object = {};
156525
+ if (options.defaults) {
156526
+ object.gingerEligibilityRecordId = 0;
156527
+ object.gingerOrgId = 0;
156528
+ object.headspaceHealthOrgId = "";
156529
+ object.b2bOrgId = 0;
156530
+ object.b2bRootOrgId = 0;
156531
+ object.workEmail = "";
156532
+ object.workId = "";
156533
+ object.firstName = "";
156534
+ object.lastName = "";
156535
+ object.zipCode = "";
156536
+ object.dob = "";
156537
+ object.country = "";
156538
+ object.streetAddress_1 = "";
156539
+ object.streetAddress_2 = "";
156540
+ object.department = "";
156541
+ object.location = "";
156542
+ object.collectiveUuid = "";
156543
+ object.hierarchyMappingValue = "";
156544
+ object.hsEligibilityRecordUuid = "";
156545
+ }
156546
+ if (message.gingerEligibilityRecordId != null && message.hasOwnProperty("gingerEligibilityRecordId"))
156547
+ object.gingerEligibilityRecordId = message.gingerEligibilityRecordId;
156548
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
156549
+ object.gingerOrgId = message.gingerOrgId;
156550
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
156551
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
156552
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
156553
+ object.b2bOrgId = message.b2bOrgId;
156554
+ if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
156555
+ object.b2bRootOrgId = message.b2bRootOrgId;
156556
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
156557
+ object.workEmail = message.workEmail;
156558
+ if (message.workId != null && message.hasOwnProperty("workId"))
156559
+ object.workId = message.workId;
156560
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
156561
+ object.firstName = message.firstName;
156562
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
156563
+ object.lastName = message.lastName;
156564
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
156565
+ object.zipCode = message.zipCode;
156566
+ if (message.dob != null && message.hasOwnProperty("dob"))
156567
+ object.dob = message.dob;
156568
+ if (message.country != null && message.hasOwnProperty("country"))
156569
+ object.country = message.country;
156570
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
156571
+ object.streetAddress_1 = message.streetAddress_1;
156572
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
156573
+ object.streetAddress_2 = message.streetAddress_2;
156574
+ if (message.department != null && message.hasOwnProperty("department"))
156575
+ object.department = message.department;
156576
+ if (message.location != null && message.hasOwnProperty("location"))
156577
+ object.location = message.location;
156578
+ if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
156579
+ object.collectiveUuid = message.collectiveUuid;
156580
+ if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
156581
+ object.hierarchyMappingValue = message.hierarchyMappingValue;
156582
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
156583
+ object.hsEligibilityRecordUuid = message.hsEligibilityRecordUuid;
156584
+ return object;
156585
+ };
156586
+
156587
+ /**
156588
+ * Converts this GingerEligibilityRecordCreated to JSON.
156589
+ * @function toJSON
156590
+ * @memberof GingerEligibilityRecordCreated
156591
+ * @instance
156592
+ * @returns {Object.<string,*>} JSON object
156593
+ */
156594
+ GingerEligibilityRecordCreated.prototype.toJSON = function toJSON() {
156595
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
156596
+ };
156597
+
156598
+ return GingerEligibilityRecordCreated;
156599
+ })();
156600
+
155966
156601
  $root.GoalSet = (function() {
155967
156602
 
155968
156603
  /**
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.648.0"
19
+ "version": "1.650.0"
20
20
  }