@headspace/protos-events 1.544.0 → 1.546.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 +161 -31
  2. package/lib/index.js +384 -62
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -38916,8 +38916,138 @@ export class GiftRedemptionCodeGenerated implements IGiftRedemptionCodeGenerated
38916
38916
  public toJSON(): { [k: string]: any };
38917
38917
  }
38918
38918
 
38919
- /** Properties of a GingerDependentRolledOver. */
38920
- export interface IGingerDependentRolledOver {
38919
+ /** Properties of a GingerMemberUpgraded. */
38920
+ export interface IGingerMemberUpgraded {
38921
+
38922
+ /** GingerMemberUpgraded headspaceHealthOrgId */
38923
+ headspaceHealthOrgId?: (string|null);
38924
+
38925
+ /** GingerMemberUpgraded b2bOrgId */
38926
+ b2bOrgId?: (string|null);
38927
+
38928
+ /** GingerMemberUpgraded gingerOrgId */
38929
+ gingerOrgId?: (string|null);
38930
+
38931
+ /** GingerMemberUpgraded workEmail */
38932
+ workEmail?: (string|null);
38933
+
38934
+ /** GingerMemberUpgraded workId */
38935
+ workId?: (string|null);
38936
+
38937
+ /** GingerMemberUpgraded accountEmail */
38938
+ accountEmail?: (string|null);
38939
+
38940
+ /** GingerMemberUpgraded headspaceUserId */
38941
+ headspaceUserId?: (string|null);
38942
+ }
38943
+
38944
+ /**
38945
+ * Indicates a Ginger-only member has been upgraded to have access to Headspace content (in addition to Care).
38946
+ * Published for all enrolled organization members when the org's upgraded subscription is activated on
38947
+ * the subscription's start date.
38948
+ */
38949
+ export class GingerMemberUpgraded implements IGingerMemberUpgraded {
38950
+
38951
+ /**
38952
+ * Constructs a new GingerMemberUpgraded.
38953
+ * @param [properties] Properties to set
38954
+ */
38955
+ constructor(properties?: IGingerMemberUpgraded);
38956
+
38957
+ /** GingerMemberUpgraded headspaceHealthOrgId. */
38958
+ public headspaceHealthOrgId: string;
38959
+
38960
+ /** GingerMemberUpgraded b2bOrgId. */
38961
+ public b2bOrgId: string;
38962
+
38963
+ /** GingerMemberUpgraded gingerOrgId. */
38964
+ public gingerOrgId: string;
38965
+
38966
+ /** GingerMemberUpgraded workEmail. */
38967
+ public workEmail: string;
38968
+
38969
+ /** GingerMemberUpgraded workId. */
38970
+ public workId: string;
38971
+
38972
+ /** GingerMemberUpgraded accountEmail. */
38973
+ public accountEmail: string;
38974
+
38975
+ /** GingerMemberUpgraded headspaceUserId. */
38976
+ public headspaceUserId: string;
38977
+
38978
+ /**
38979
+ * Creates a new GingerMemberUpgraded instance using the specified properties.
38980
+ * @param [properties] Properties to set
38981
+ * @returns GingerMemberUpgraded instance
38982
+ */
38983
+ public static create(properties?: IGingerMemberUpgraded): GingerMemberUpgraded;
38984
+
38985
+ /**
38986
+ * Encodes the specified GingerMemberUpgraded message. Does not implicitly {@link GingerMemberUpgraded.verify|verify} messages.
38987
+ * @param message GingerMemberUpgraded message or plain object to encode
38988
+ * @param [writer] Writer to encode to
38989
+ * @returns Writer
38990
+ */
38991
+ public static encode(message: IGingerMemberUpgraded, writer?: $protobuf.Writer): $protobuf.Writer;
38992
+
38993
+ /**
38994
+ * Encodes the specified GingerMemberUpgraded message, length delimited. Does not implicitly {@link GingerMemberUpgraded.verify|verify} messages.
38995
+ * @param message GingerMemberUpgraded message or plain object to encode
38996
+ * @param [writer] Writer to encode to
38997
+ * @returns Writer
38998
+ */
38999
+ public static encodeDelimited(message: IGingerMemberUpgraded, writer?: $protobuf.Writer): $protobuf.Writer;
39000
+
39001
+ /**
39002
+ * Decodes a GingerMemberUpgraded message from the specified reader or buffer.
39003
+ * @param reader Reader or buffer to decode from
39004
+ * @param [length] Message length if known beforehand
39005
+ * @returns GingerMemberUpgraded
39006
+ * @throws {Error} If the payload is not a reader or valid buffer
39007
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39008
+ */
39009
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerMemberUpgraded;
39010
+
39011
+ /**
39012
+ * Decodes a GingerMemberUpgraded message from the specified reader or buffer, length delimited.
39013
+ * @param reader Reader or buffer to decode from
39014
+ * @returns GingerMemberUpgraded
39015
+ * @throws {Error} If the payload is not a reader or valid buffer
39016
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39017
+ */
39018
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerMemberUpgraded;
39019
+
39020
+ /**
39021
+ * Verifies a GingerMemberUpgraded message.
39022
+ * @param message Plain object to verify
39023
+ * @returns `null` if valid, otherwise the reason why it is not
39024
+ */
39025
+ public static verify(message: { [k: string]: any }): (string|null);
39026
+
39027
+ /**
39028
+ * Creates a GingerMemberUpgraded message from a plain object. Also converts values to their respective internal types.
39029
+ * @param object Plain object
39030
+ * @returns GingerMemberUpgraded
39031
+ */
39032
+ public static fromObject(object: { [k: string]: any }): GingerMemberUpgraded;
39033
+
39034
+ /**
39035
+ * Creates a plain object from a GingerMemberUpgraded message. Also converts values to other types if specified.
39036
+ * @param message GingerMemberUpgraded
39037
+ * @param [options] Conversion options
39038
+ * @returns Plain object
39039
+ */
39040
+ public static toObject(message: GingerMemberUpgraded, options?: $protobuf.IConversionOptions): { [k: string]: any };
39041
+
39042
+ /**
39043
+ * Converts this GingerMemberUpgraded to JSON.
39044
+ * @returns JSON object
39045
+ */
39046
+ public toJSON(): { [k: string]: any };
39047
+ }
39048
+
39049
+ /** Properties of a GingerDependentUpgraded. */
39050
+ export interface IGingerDependentUpgraded {
38921
39051
 
38922
39052
  /** The organization's UUID v4, which is shared between b2b and ginger systems */
38923
39053
  orgHeadspaceHealthId?: (string|null);
@@ -38936,17 +39066,17 @@ export interface IGingerDependentRolledOver {
38936
39066
  }
38937
39067
 
38938
39068
  /**
38939
- * When an organization upgrades from Ginger to Fusion (meaning, when the Fusion contract gets activated on its start
38940
- * date), an async job will be running to update the organization’s records and backfill the enrolled members
38941
- * to Headspace. The same job will iterate through every record’s active dependents and send the event
39069
+ * Indicates a Ginger dependent has been upgraded to have access to Headspace content (in addition to Care).
39070
+ * Published for each dependent that belongs to an enrolled organization member, when the org's upgraded subscription
39071
+ * is activated on the subscription's start date.
38942
39072
  */
38943
- export class GingerDependentRolledOver implements IGingerDependentRolledOver {
39073
+ export class GingerDependentUpgraded implements IGingerDependentUpgraded {
38944
39074
 
38945
39075
  /**
38946
- * Constructs a new GingerDependentRolledOver.
39076
+ * Constructs a new GingerDependentUpgraded.
38947
39077
  * @param [properties] Properties to set
38948
39078
  */
38949
- constructor(properties?: IGingerDependentRolledOver);
39079
+ constructor(properties?: IGingerDependentUpgraded);
38950
39080
 
38951
39081
  /** The organization's UUID v4, which is shared between b2b and ginger systems */
38952
39082
  public orgHeadspaceHealthId: string;
@@ -38964,71 +39094,71 @@ export class GingerDependentRolledOver implements IGingerDependentRolledOver {
38964
39094
  public dependentHsUserId: string;
38965
39095
 
38966
39096
  /**
38967
- * Creates a new GingerDependentRolledOver instance using the specified properties.
39097
+ * Creates a new GingerDependentUpgraded instance using the specified properties.
38968
39098
  * @param [properties] Properties to set
38969
- * @returns GingerDependentRolledOver instance
39099
+ * @returns GingerDependentUpgraded instance
38970
39100
  */
38971
- public static create(properties?: IGingerDependentRolledOver): GingerDependentRolledOver;
39101
+ public static create(properties?: IGingerDependentUpgraded): GingerDependentUpgraded;
38972
39102
 
38973
39103
  /**
38974
- * Encodes the specified GingerDependentRolledOver message. Does not implicitly {@link GingerDependentRolledOver.verify|verify} messages.
38975
- * @param message GingerDependentRolledOver message or plain object to encode
39104
+ * Encodes the specified GingerDependentUpgraded message. Does not implicitly {@link GingerDependentUpgraded.verify|verify} messages.
39105
+ * @param message GingerDependentUpgraded message or plain object to encode
38976
39106
  * @param [writer] Writer to encode to
38977
39107
  * @returns Writer
38978
39108
  */
38979
- public static encode(message: IGingerDependentRolledOver, writer?: $protobuf.Writer): $protobuf.Writer;
39109
+ public static encode(message: IGingerDependentUpgraded, writer?: $protobuf.Writer): $protobuf.Writer;
38980
39110
 
38981
39111
  /**
38982
- * Encodes the specified GingerDependentRolledOver message, length delimited. Does not implicitly {@link GingerDependentRolledOver.verify|verify} messages.
38983
- * @param message GingerDependentRolledOver message or plain object to encode
39112
+ * Encodes the specified GingerDependentUpgraded message, length delimited. Does not implicitly {@link GingerDependentUpgraded.verify|verify} messages.
39113
+ * @param message GingerDependentUpgraded message or plain object to encode
38984
39114
  * @param [writer] Writer to encode to
38985
39115
  * @returns Writer
38986
39116
  */
38987
- public static encodeDelimited(message: IGingerDependentRolledOver, writer?: $protobuf.Writer): $protobuf.Writer;
39117
+ public static encodeDelimited(message: IGingerDependentUpgraded, writer?: $protobuf.Writer): $protobuf.Writer;
38988
39118
 
38989
39119
  /**
38990
- * Decodes a GingerDependentRolledOver message from the specified reader or buffer.
39120
+ * Decodes a GingerDependentUpgraded message from the specified reader or buffer.
38991
39121
  * @param reader Reader or buffer to decode from
38992
39122
  * @param [length] Message length if known beforehand
38993
- * @returns GingerDependentRolledOver
39123
+ * @returns GingerDependentUpgraded
38994
39124
  * @throws {Error} If the payload is not a reader or valid buffer
38995
39125
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
38996
39126
  */
38997
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerDependentRolledOver;
39127
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerDependentUpgraded;
38998
39128
 
38999
39129
  /**
39000
- * Decodes a GingerDependentRolledOver message from the specified reader or buffer, length delimited.
39130
+ * Decodes a GingerDependentUpgraded message from the specified reader or buffer, length delimited.
39001
39131
  * @param reader Reader or buffer to decode from
39002
- * @returns GingerDependentRolledOver
39132
+ * @returns GingerDependentUpgraded
39003
39133
  * @throws {Error} If the payload is not a reader or valid buffer
39004
39134
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
39005
39135
  */
39006
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerDependentRolledOver;
39136
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerDependentUpgraded;
39007
39137
 
39008
39138
  /**
39009
- * Verifies a GingerDependentRolledOver message.
39139
+ * Verifies a GingerDependentUpgraded message.
39010
39140
  * @param message Plain object to verify
39011
39141
  * @returns `null` if valid, otherwise the reason why it is not
39012
39142
  */
39013
39143
  public static verify(message: { [k: string]: any }): (string|null);
39014
39144
 
39015
39145
  /**
39016
- * Creates a GingerDependentRolledOver message from a plain object. Also converts values to their respective internal types.
39146
+ * Creates a GingerDependentUpgraded message from a plain object. Also converts values to their respective internal types.
39017
39147
  * @param object Plain object
39018
- * @returns GingerDependentRolledOver
39148
+ * @returns GingerDependentUpgraded
39019
39149
  */
39020
- public static fromObject(object: { [k: string]: any }): GingerDependentRolledOver;
39150
+ public static fromObject(object: { [k: string]: any }): GingerDependentUpgraded;
39021
39151
 
39022
39152
  /**
39023
- * Creates a plain object from a GingerDependentRolledOver message. Also converts values to other types if specified.
39024
- * @param message GingerDependentRolledOver
39153
+ * Creates a plain object from a GingerDependentUpgraded message. Also converts values to other types if specified.
39154
+ * @param message GingerDependentUpgraded
39025
39155
  * @param [options] Conversion options
39026
39156
  * @returns Plain object
39027
39157
  */
39028
- public static toObject(message: GingerDependentRolledOver, options?: $protobuf.IConversionOptions): { [k: string]: any };
39158
+ public static toObject(message: GingerDependentUpgraded, options?: $protobuf.IConversionOptions): { [k: string]: any };
39029
39159
 
39030
39160
  /**
39031
- * Converts this GingerDependentRolledOver to JSON.
39161
+ * Converts this GingerDependentUpgraded to JSON.
39032
39162
  * @returns JSON object
39033
39163
  */
39034
39164
  public toJSON(): { [k: string]: any };
package/lib/index.js CHANGED
@@ -109815,12 +109815,334 @@ $root.GiftRedemptionCodeGenerated = (function() {
109815
109815
  return GiftRedemptionCodeGenerated;
109816
109816
  })();
109817
109817
 
109818
- $root.GingerDependentRolledOver = (function() {
109818
+ $root.GingerMemberUpgraded = (function() {
109819
109819
 
109820
109820
  /**
109821
- * Properties of a GingerDependentRolledOver.
109822
- * @name IGingerDependentRolledOver
109823
- * @interface IGingerDependentRolledOver
109821
+ * Properties of a GingerMemberUpgraded.
109822
+ * @name IGingerMemberUpgraded
109823
+ * @interface IGingerMemberUpgraded
109824
+ * @property {string|null} [headspaceHealthOrgId] GingerMemberUpgraded headspaceHealthOrgId
109825
+ * @property {string|null} [b2bOrgId] GingerMemberUpgraded b2bOrgId
109826
+ * @property {string|null} [gingerOrgId] GingerMemberUpgraded gingerOrgId
109827
+ * @property {string|null} [workEmail] GingerMemberUpgraded workEmail
109828
+ * @property {string|null} [workId] GingerMemberUpgraded workId
109829
+ * @property {string|null} [accountEmail] GingerMemberUpgraded accountEmail
109830
+ * @property {string|null} [headspaceUserId] GingerMemberUpgraded headspaceUserId
109831
+ */
109832
+
109833
+ /**
109834
+ * Constructs a new GingerMemberUpgraded.
109835
+ * @name GingerMemberUpgraded
109836
+ * @classdesc Indicates a Ginger-only member has been upgraded to have access to Headspace content (in addition to Care).
109837
+ * Published for all enrolled organization members when the org's upgraded subscription is activated on
109838
+ * the subscription's start date.
109839
+ * @implements IGingerMemberUpgraded
109840
+ * @constructor
109841
+ * @param {IGingerMemberUpgraded=} [properties] Properties to set
109842
+ */
109843
+ function GingerMemberUpgraded(properties) {
109844
+ if (properties)
109845
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
109846
+ if (properties[keys[i]] != null)
109847
+ this[keys[i]] = properties[keys[i]];
109848
+ }
109849
+
109850
+ /**
109851
+ * GingerMemberUpgraded headspaceHealthOrgId.
109852
+ * @member {string} headspaceHealthOrgId
109853
+ * @memberof GingerMemberUpgraded
109854
+ * @instance
109855
+ */
109856
+ GingerMemberUpgraded.prototype.headspaceHealthOrgId = "";
109857
+
109858
+ /**
109859
+ * GingerMemberUpgraded b2bOrgId.
109860
+ * @member {string} b2bOrgId
109861
+ * @memberof GingerMemberUpgraded
109862
+ * @instance
109863
+ */
109864
+ GingerMemberUpgraded.prototype.b2bOrgId = "";
109865
+
109866
+ /**
109867
+ * GingerMemberUpgraded gingerOrgId.
109868
+ * @member {string} gingerOrgId
109869
+ * @memberof GingerMemberUpgraded
109870
+ * @instance
109871
+ */
109872
+ GingerMemberUpgraded.prototype.gingerOrgId = "";
109873
+
109874
+ /**
109875
+ * GingerMemberUpgraded workEmail.
109876
+ * @member {string} workEmail
109877
+ * @memberof GingerMemberUpgraded
109878
+ * @instance
109879
+ */
109880
+ GingerMemberUpgraded.prototype.workEmail = "";
109881
+
109882
+ /**
109883
+ * GingerMemberUpgraded workId.
109884
+ * @member {string} workId
109885
+ * @memberof GingerMemberUpgraded
109886
+ * @instance
109887
+ */
109888
+ GingerMemberUpgraded.prototype.workId = "";
109889
+
109890
+ /**
109891
+ * GingerMemberUpgraded accountEmail.
109892
+ * @member {string} accountEmail
109893
+ * @memberof GingerMemberUpgraded
109894
+ * @instance
109895
+ */
109896
+ GingerMemberUpgraded.prototype.accountEmail = "";
109897
+
109898
+ /**
109899
+ * GingerMemberUpgraded headspaceUserId.
109900
+ * @member {string} headspaceUserId
109901
+ * @memberof GingerMemberUpgraded
109902
+ * @instance
109903
+ */
109904
+ GingerMemberUpgraded.prototype.headspaceUserId = "";
109905
+
109906
+ /**
109907
+ * Creates a new GingerMemberUpgraded instance using the specified properties.
109908
+ * @function create
109909
+ * @memberof GingerMemberUpgraded
109910
+ * @static
109911
+ * @param {IGingerMemberUpgraded=} [properties] Properties to set
109912
+ * @returns {GingerMemberUpgraded} GingerMemberUpgraded instance
109913
+ */
109914
+ GingerMemberUpgraded.create = function create(properties) {
109915
+ return new GingerMemberUpgraded(properties);
109916
+ };
109917
+
109918
+ /**
109919
+ * Encodes the specified GingerMemberUpgraded message. Does not implicitly {@link GingerMemberUpgraded.verify|verify} messages.
109920
+ * @function encode
109921
+ * @memberof GingerMemberUpgraded
109922
+ * @static
109923
+ * @param {IGingerMemberUpgraded} message GingerMemberUpgraded message or plain object to encode
109924
+ * @param {$protobuf.Writer} [writer] Writer to encode to
109925
+ * @returns {$protobuf.Writer} Writer
109926
+ */
109927
+ GingerMemberUpgraded.encode = function encode(message, writer) {
109928
+ if (!writer)
109929
+ writer = $Writer.create();
109930
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
109931
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
109932
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
109933
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.b2bOrgId);
109934
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
109935
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
109936
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
109937
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.workEmail);
109938
+ if (message.workId != null && message.hasOwnProperty("workId"))
109939
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.workId);
109940
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
109941
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.accountEmail);
109942
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
109943
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.headspaceUserId);
109944
+ return writer;
109945
+ };
109946
+
109947
+ /**
109948
+ * Encodes the specified GingerMemberUpgraded message, length delimited. Does not implicitly {@link GingerMemberUpgraded.verify|verify} messages.
109949
+ * @function encodeDelimited
109950
+ * @memberof GingerMemberUpgraded
109951
+ * @static
109952
+ * @param {IGingerMemberUpgraded} message GingerMemberUpgraded message or plain object to encode
109953
+ * @param {$protobuf.Writer} [writer] Writer to encode to
109954
+ * @returns {$protobuf.Writer} Writer
109955
+ */
109956
+ GingerMemberUpgraded.encodeDelimited = function encodeDelimited(message, writer) {
109957
+ return this.encode(message, writer).ldelim();
109958
+ };
109959
+
109960
+ /**
109961
+ * Decodes a GingerMemberUpgraded message from the specified reader or buffer.
109962
+ * @function decode
109963
+ * @memberof GingerMemberUpgraded
109964
+ * @static
109965
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
109966
+ * @param {number} [length] Message length if known beforehand
109967
+ * @returns {GingerMemberUpgraded} GingerMemberUpgraded
109968
+ * @throws {Error} If the payload is not a reader or valid buffer
109969
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
109970
+ */
109971
+ GingerMemberUpgraded.decode = function decode(reader, length) {
109972
+ if (!(reader instanceof $Reader))
109973
+ reader = $Reader.create(reader);
109974
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerMemberUpgraded();
109975
+ while (reader.pos < end) {
109976
+ var tag = reader.uint32();
109977
+ switch (tag >>> 3) {
109978
+ case 1:
109979
+ message.headspaceHealthOrgId = reader.string();
109980
+ break;
109981
+ case 2:
109982
+ message.b2bOrgId = reader.string();
109983
+ break;
109984
+ case 3:
109985
+ message.gingerOrgId = reader.string();
109986
+ break;
109987
+ case 4:
109988
+ message.workEmail = reader.string();
109989
+ break;
109990
+ case 5:
109991
+ message.workId = reader.string();
109992
+ break;
109993
+ case 6:
109994
+ message.accountEmail = reader.string();
109995
+ break;
109996
+ case 7:
109997
+ message.headspaceUserId = reader.string();
109998
+ break;
109999
+ default:
110000
+ reader.skipType(tag & 7);
110001
+ break;
110002
+ }
110003
+ }
110004
+ return message;
110005
+ };
110006
+
110007
+ /**
110008
+ * Decodes a GingerMemberUpgraded message from the specified reader or buffer, length delimited.
110009
+ * @function decodeDelimited
110010
+ * @memberof GingerMemberUpgraded
110011
+ * @static
110012
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
110013
+ * @returns {GingerMemberUpgraded} GingerMemberUpgraded
110014
+ * @throws {Error} If the payload is not a reader or valid buffer
110015
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
110016
+ */
110017
+ GingerMemberUpgraded.decodeDelimited = function decodeDelimited(reader) {
110018
+ if (!(reader instanceof $Reader))
110019
+ reader = new $Reader(reader);
110020
+ return this.decode(reader, reader.uint32());
110021
+ };
110022
+
110023
+ /**
110024
+ * Verifies a GingerMemberUpgraded message.
110025
+ * @function verify
110026
+ * @memberof GingerMemberUpgraded
110027
+ * @static
110028
+ * @param {Object.<string,*>} message Plain object to verify
110029
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
110030
+ */
110031
+ GingerMemberUpgraded.verify = function verify(message) {
110032
+ if (typeof message !== "object" || message === null)
110033
+ return "object expected";
110034
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
110035
+ if (!$util.isString(message.headspaceHealthOrgId))
110036
+ return "headspaceHealthOrgId: string expected";
110037
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
110038
+ if (!$util.isString(message.b2bOrgId))
110039
+ return "b2bOrgId: string expected";
110040
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
110041
+ if (!$util.isString(message.gingerOrgId))
110042
+ return "gingerOrgId: string expected";
110043
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
110044
+ if (!$util.isString(message.workEmail))
110045
+ return "workEmail: string expected";
110046
+ if (message.workId != null && message.hasOwnProperty("workId"))
110047
+ if (!$util.isString(message.workId))
110048
+ return "workId: string expected";
110049
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
110050
+ if (!$util.isString(message.accountEmail))
110051
+ return "accountEmail: string expected";
110052
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
110053
+ if (!$util.isString(message.headspaceUserId))
110054
+ return "headspaceUserId: string expected";
110055
+ return null;
110056
+ };
110057
+
110058
+ /**
110059
+ * Creates a GingerMemberUpgraded message from a plain object. Also converts values to their respective internal types.
110060
+ * @function fromObject
110061
+ * @memberof GingerMemberUpgraded
110062
+ * @static
110063
+ * @param {Object.<string,*>} object Plain object
110064
+ * @returns {GingerMemberUpgraded} GingerMemberUpgraded
110065
+ */
110066
+ GingerMemberUpgraded.fromObject = function fromObject(object) {
110067
+ if (object instanceof $root.GingerMemberUpgraded)
110068
+ return object;
110069
+ var message = new $root.GingerMemberUpgraded();
110070
+ if (object.headspaceHealthOrgId != null)
110071
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
110072
+ if (object.b2bOrgId != null)
110073
+ message.b2bOrgId = String(object.b2bOrgId);
110074
+ if (object.gingerOrgId != null)
110075
+ message.gingerOrgId = String(object.gingerOrgId);
110076
+ if (object.workEmail != null)
110077
+ message.workEmail = String(object.workEmail);
110078
+ if (object.workId != null)
110079
+ message.workId = String(object.workId);
110080
+ if (object.accountEmail != null)
110081
+ message.accountEmail = String(object.accountEmail);
110082
+ if (object.headspaceUserId != null)
110083
+ message.headspaceUserId = String(object.headspaceUserId);
110084
+ return message;
110085
+ };
110086
+
110087
+ /**
110088
+ * Creates a plain object from a GingerMemberUpgraded message. Also converts values to other types if specified.
110089
+ * @function toObject
110090
+ * @memberof GingerMemberUpgraded
110091
+ * @static
110092
+ * @param {GingerMemberUpgraded} message GingerMemberUpgraded
110093
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
110094
+ * @returns {Object.<string,*>} Plain object
110095
+ */
110096
+ GingerMemberUpgraded.toObject = function toObject(message, options) {
110097
+ if (!options)
110098
+ options = {};
110099
+ var object = {};
110100
+ if (options.defaults) {
110101
+ object.headspaceHealthOrgId = "";
110102
+ object.b2bOrgId = "";
110103
+ object.gingerOrgId = "";
110104
+ object.workEmail = "";
110105
+ object.workId = "";
110106
+ object.accountEmail = "";
110107
+ object.headspaceUserId = "";
110108
+ }
110109
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
110110
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
110111
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
110112
+ object.b2bOrgId = message.b2bOrgId;
110113
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
110114
+ object.gingerOrgId = message.gingerOrgId;
110115
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
110116
+ object.workEmail = message.workEmail;
110117
+ if (message.workId != null && message.hasOwnProperty("workId"))
110118
+ object.workId = message.workId;
110119
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
110120
+ object.accountEmail = message.accountEmail;
110121
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
110122
+ object.headspaceUserId = message.headspaceUserId;
110123
+ return object;
110124
+ };
110125
+
110126
+ /**
110127
+ * Converts this GingerMemberUpgraded to JSON.
110128
+ * @function toJSON
110129
+ * @memberof GingerMemberUpgraded
110130
+ * @instance
110131
+ * @returns {Object.<string,*>} JSON object
110132
+ */
110133
+ GingerMemberUpgraded.prototype.toJSON = function toJSON() {
110134
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
110135
+ };
110136
+
110137
+ return GingerMemberUpgraded;
110138
+ })();
110139
+
110140
+ $root.GingerDependentUpgraded = (function() {
110141
+
110142
+ /**
110143
+ * Properties of a GingerDependentUpgraded.
110144
+ * @name IGingerDependentUpgraded
110145
+ * @interface IGingerDependentUpgraded
109824
110146
  * @property {string|null} [orgHeadspaceHealthId] The organization's UUID v4, which is shared between b2b and ginger systems
109825
110147
  * @property {number|null} [orgB2bId] The organization's ID in the b2b system
109826
110148
  * @property {number|null} [orgGingerId] The organization's ID in the ginger system
@@ -109829,16 +110151,16 @@ $root.GingerDependentRolledOver = (function() {
109829
110151
  */
109830
110152
 
109831
110153
  /**
109832
- * Constructs a new GingerDependentRolledOver.
109833
- * @name GingerDependentRolledOver
109834
- * @classdesc When an organization upgrades from Ginger to Fusion (meaning, when the Fusion contract gets activated on its start
109835
- * date), an async job will be running to update the organization’s records and backfill the enrolled members
109836
- * to Headspace. The same job will iterate through every record’s active dependents and send the event
109837
- * @implements IGingerDependentRolledOver
110154
+ * Constructs a new GingerDependentUpgraded.
110155
+ * @name GingerDependentUpgraded
110156
+ * @classdesc Indicates a Ginger dependent has been upgraded to have access to Headspace content (in addition to Care).
110157
+ * Published for each dependent that belongs to an enrolled organization member, when the org's upgraded subscription
110158
+ * is activated on the subscription's start date.
110159
+ * @implements IGingerDependentUpgraded
109838
110160
  * @constructor
109839
- * @param {IGingerDependentRolledOver=} [properties] Properties to set
110161
+ * @param {IGingerDependentUpgraded=} [properties] Properties to set
109840
110162
  */
109841
- function GingerDependentRolledOver(properties) {
110163
+ function GingerDependentUpgraded(properties) {
109842
110164
  if (properties)
109843
110165
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
109844
110166
  if (properties[keys[i]] != null)
@@ -109848,65 +110170,65 @@ $root.GingerDependentRolledOver = (function() {
109848
110170
  /**
109849
110171
  * The organization's UUID v4, which is shared between b2b and ginger systems
109850
110172
  * @member {string} orgHeadspaceHealthId
109851
- * @memberof GingerDependentRolledOver
110173
+ * @memberof GingerDependentUpgraded
109852
110174
  * @instance
109853
110175
  */
109854
- GingerDependentRolledOver.prototype.orgHeadspaceHealthId = "";
110176
+ GingerDependentUpgraded.prototype.orgHeadspaceHealthId = "";
109855
110177
 
109856
110178
  /**
109857
110179
  * The organization's ID in the b2b system
109858
110180
  * @member {number} orgB2bId
109859
- * @memberof GingerDependentRolledOver
110181
+ * @memberof GingerDependentUpgraded
109860
110182
  * @instance
109861
110183
  */
109862
- GingerDependentRolledOver.prototype.orgB2bId = 0;
110184
+ GingerDependentUpgraded.prototype.orgB2bId = 0;
109863
110185
 
109864
110186
  /**
109865
110187
  * The organization's ID in the ginger system
109866
110188
  * @member {number} orgGingerId
109867
- * @memberof GingerDependentRolledOver
110189
+ * @memberof GingerDependentUpgraded
109868
110190
  * @instance
109869
110191
  */
109870
- GingerDependentRolledOver.prototype.orgGingerId = 0;
110192
+ GingerDependentUpgraded.prototype.orgGingerId = 0;
109871
110193
 
109872
110194
  /**
109873
110195
  * The primary member's HSUSER_* ID
109874
110196
  * @member {string} primaryHsUserId
109875
- * @memberof GingerDependentRolledOver
110197
+ * @memberof GingerDependentUpgraded
109876
110198
  * @instance
109877
110199
  */
109878
- GingerDependentRolledOver.prototype.primaryHsUserId = "";
110200
+ GingerDependentUpgraded.prototype.primaryHsUserId = "";
109879
110201
 
109880
110202
  /**
109881
110203
  * The dependent's HSUSER_* ID
109882
110204
  * @member {string} dependentHsUserId
109883
- * @memberof GingerDependentRolledOver
110205
+ * @memberof GingerDependentUpgraded
109884
110206
  * @instance
109885
110207
  */
109886
- GingerDependentRolledOver.prototype.dependentHsUserId = "";
110208
+ GingerDependentUpgraded.prototype.dependentHsUserId = "";
109887
110209
 
109888
110210
  /**
109889
- * Creates a new GingerDependentRolledOver instance using the specified properties.
110211
+ * Creates a new GingerDependentUpgraded instance using the specified properties.
109890
110212
  * @function create
109891
- * @memberof GingerDependentRolledOver
110213
+ * @memberof GingerDependentUpgraded
109892
110214
  * @static
109893
- * @param {IGingerDependentRolledOver=} [properties] Properties to set
109894
- * @returns {GingerDependentRolledOver} GingerDependentRolledOver instance
110215
+ * @param {IGingerDependentUpgraded=} [properties] Properties to set
110216
+ * @returns {GingerDependentUpgraded} GingerDependentUpgraded instance
109895
110217
  */
109896
- GingerDependentRolledOver.create = function create(properties) {
109897
- return new GingerDependentRolledOver(properties);
110218
+ GingerDependentUpgraded.create = function create(properties) {
110219
+ return new GingerDependentUpgraded(properties);
109898
110220
  };
109899
110221
 
109900
110222
  /**
109901
- * Encodes the specified GingerDependentRolledOver message. Does not implicitly {@link GingerDependentRolledOver.verify|verify} messages.
110223
+ * Encodes the specified GingerDependentUpgraded message. Does not implicitly {@link GingerDependentUpgraded.verify|verify} messages.
109902
110224
  * @function encode
109903
- * @memberof GingerDependentRolledOver
110225
+ * @memberof GingerDependentUpgraded
109904
110226
  * @static
109905
- * @param {IGingerDependentRolledOver} message GingerDependentRolledOver message or plain object to encode
110227
+ * @param {IGingerDependentUpgraded} message GingerDependentUpgraded message or plain object to encode
109906
110228
  * @param {$protobuf.Writer} [writer] Writer to encode to
109907
110229
  * @returns {$protobuf.Writer} Writer
109908
110230
  */
109909
- GingerDependentRolledOver.encode = function encode(message, writer) {
110231
+ GingerDependentUpgraded.encode = function encode(message, writer) {
109910
110232
  if (!writer)
109911
110233
  writer = $Writer.create();
109912
110234
  if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
@@ -109923,33 +110245,33 @@ $root.GingerDependentRolledOver = (function() {
109923
110245
  };
109924
110246
 
109925
110247
  /**
109926
- * Encodes the specified GingerDependentRolledOver message, length delimited. Does not implicitly {@link GingerDependentRolledOver.verify|verify} messages.
110248
+ * Encodes the specified GingerDependentUpgraded message, length delimited. Does not implicitly {@link GingerDependentUpgraded.verify|verify} messages.
109927
110249
  * @function encodeDelimited
109928
- * @memberof GingerDependentRolledOver
110250
+ * @memberof GingerDependentUpgraded
109929
110251
  * @static
109930
- * @param {IGingerDependentRolledOver} message GingerDependentRolledOver message or plain object to encode
110252
+ * @param {IGingerDependentUpgraded} message GingerDependentUpgraded message or plain object to encode
109931
110253
  * @param {$protobuf.Writer} [writer] Writer to encode to
109932
110254
  * @returns {$protobuf.Writer} Writer
109933
110255
  */
109934
- GingerDependentRolledOver.encodeDelimited = function encodeDelimited(message, writer) {
110256
+ GingerDependentUpgraded.encodeDelimited = function encodeDelimited(message, writer) {
109935
110257
  return this.encode(message, writer).ldelim();
109936
110258
  };
109937
110259
 
109938
110260
  /**
109939
- * Decodes a GingerDependentRolledOver message from the specified reader or buffer.
110261
+ * Decodes a GingerDependentUpgraded message from the specified reader or buffer.
109940
110262
  * @function decode
109941
- * @memberof GingerDependentRolledOver
110263
+ * @memberof GingerDependentUpgraded
109942
110264
  * @static
109943
110265
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
109944
110266
  * @param {number} [length] Message length if known beforehand
109945
- * @returns {GingerDependentRolledOver} GingerDependentRolledOver
110267
+ * @returns {GingerDependentUpgraded} GingerDependentUpgraded
109946
110268
  * @throws {Error} If the payload is not a reader or valid buffer
109947
110269
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
109948
110270
  */
109949
- GingerDependentRolledOver.decode = function decode(reader, length) {
110271
+ GingerDependentUpgraded.decode = function decode(reader, length) {
109950
110272
  if (!(reader instanceof $Reader))
109951
110273
  reader = $Reader.create(reader);
109952
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerDependentRolledOver();
110274
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerDependentUpgraded();
109953
110275
  while (reader.pos < end) {
109954
110276
  var tag = reader.uint32();
109955
110277
  switch (tag >>> 3) {
@@ -109977,30 +110299,30 @@ $root.GingerDependentRolledOver = (function() {
109977
110299
  };
109978
110300
 
109979
110301
  /**
109980
- * Decodes a GingerDependentRolledOver message from the specified reader or buffer, length delimited.
110302
+ * Decodes a GingerDependentUpgraded message from the specified reader or buffer, length delimited.
109981
110303
  * @function decodeDelimited
109982
- * @memberof GingerDependentRolledOver
110304
+ * @memberof GingerDependentUpgraded
109983
110305
  * @static
109984
110306
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
109985
- * @returns {GingerDependentRolledOver} GingerDependentRolledOver
110307
+ * @returns {GingerDependentUpgraded} GingerDependentUpgraded
109986
110308
  * @throws {Error} If the payload is not a reader or valid buffer
109987
110309
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
109988
110310
  */
109989
- GingerDependentRolledOver.decodeDelimited = function decodeDelimited(reader) {
110311
+ GingerDependentUpgraded.decodeDelimited = function decodeDelimited(reader) {
109990
110312
  if (!(reader instanceof $Reader))
109991
110313
  reader = new $Reader(reader);
109992
110314
  return this.decode(reader, reader.uint32());
109993
110315
  };
109994
110316
 
109995
110317
  /**
109996
- * Verifies a GingerDependentRolledOver message.
110318
+ * Verifies a GingerDependentUpgraded message.
109997
110319
  * @function verify
109998
- * @memberof GingerDependentRolledOver
110320
+ * @memberof GingerDependentUpgraded
109999
110321
  * @static
110000
110322
  * @param {Object.<string,*>} message Plain object to verify
110001
110323
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
110002
110324
  */
110003
- GingerDependentRolledOver.verify = function verify(message) {
110325
+ GingerDependentUpgraded.verify = function verify(message) {
110004
110326
  if (typeof message !== "object" || message === null)
110005
110327
  return "object expected";
110006
110328
  if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
@@ -110022,17 +110344,17 @@ $root.GingerDependentRolledOver = (function() {
110022
110344
  };
110023
110345
 
110024
110346
  /**
110025
- * Creates a GingerDependentRolledOver message from a plain object. Also converts values to their respective internal types.
110347
+ * Creates a GingerDependentUpgraded message from a plain object. Also converts values to their respective internal types.
110026
110348
  * @function fromObject
110027
- * @memberof GingerDependentRolledOver
110349
+ * @memberof GingerDependentUpgraded
110028
110350
  * @static
110029
110351
  * @param {Object.<string,*>} object Plain object
110030
- * @returns {GingerDependentRolledOver} GingerDependentRolledOver
110352
+ * @returns {GingerDependentUpgraded} GingerDependentUpgraded
110031
110353
  */
110032
- GingerDependentRolledOver.fromObject = function fromObject(object) {
110033
- if (object instanceof $root.GingerDependentRolledOver)
110354
+ GingerDependentUpgraded.fromObject = function fromObject(object) {
110355
+ if (object instanceof $root.GingerDependentUpgraded)
110034
110356
  return object;
110035
- var message = new $root.GingerDependentRolledOver();
110357
+ var message = new $root.GingerDependentUpgraded();
110036
110358
  if (object.orgHeadspaceHealthId != null)
110037
110359
  message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
110038
110360
  if (object.orgB2bId != null)
@@ -110047,15 +110369,15 @@ $root.GingerDependentRolledOver = (function() {
110047
110369
  };
110048
110370
 
110049
110371
  /**
110050
- * Creates a plain object from a GingerDependentRolledOver message. Also converts values to other types if specified.
110372
+ * Creates a plain object from a GingerDependentUpgraded message. Also converts values to other types if specified.
110051
110373
  * @function toObject
110052
- * @memberof GingerDependentRolledOver
110374
+ * @memberof GingerDependentUpgraded
110053
110375
  * @static
110054
- * @param {GingerDependentRolledOver} message GingerDependentRolledOver
110376
+ * @param {GingerDependentUpgraded} message GingerDependentUpgraded
110055
110377
  * @param {$protobuf.IConversionOptions} [options] Conversion options
110056
110378
  * @returns {Object.<string,*>} Plain object
110057
110379
  */
110058
- GingerDependentRolledOver.toObject = function toObject(message, options) {
110380
+ GingerDependentUpgraded.toObject = function toObject(message, options) {
110059
110381
  if (!options)
110060
110382
  options = {};
110061
110383
  var object = {};
@@ -110080,17 +110402,17 @@ $root.GingerDependentRolledOver = (function() {
110080
110402
  };
110081
110403
 
110082
110404
  /**
110083
- * Converts this GingerDependentRolledOver to JSON.
110405
+ * Converts this GingerDependentUpgraded to JSON.
110084
110406
  * @function toJSON
110085
- * @memberof GingerDependentRolledOver
110407
+ * @memberof GingerDependentUpgraded
110086
110408
  * @instance
110087
110409
  * @returns {Object.<string,*>} JSON object
110088
110410
  */
110089
- GingerDependentRolledOver.prototype.toJSON = function toJSON() {
110411
+ GingerDependentUpgraded.prototype.toJSON = function toJSON() {
110090
110412
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
110091
110413
  };
110092
110414
 
110093
- return GingerDependentRolledOver;
110415
+ return GingerDependentUpgraded;
110094
110416
  })();
110095
110417
 
110096
110418
  $root.GoalSet = (function() {
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.544.0"
19
+ "version": "1.546.0"
20
20
  }