@headspace/protos-events 1.426.0 → 1.428.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 +162 -0
- package/lib/index.js +483 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -32518,6 +32518,15 @@ export interface IElfRecordPresent {
|
|
|
32518
32518
|
/** ElfRecordPresent offerings */
|
|
32519
32519
|
offerings?: (b2b.SubscriptionOffering[]|null);
|
|
32520
32520
|
|
|
32521
|
+
/** ElfRecordPresent rootOrgHeadspaceHealthId */
|
|
32522
|
+
rootOrgHeadspaceHealthId?: (string|null);
|
|
32523
|
+
|
|
32524
|
+
/** ElfRecordPresent rootOrgId */
|
|
32525
|
+
rootOrgId?: (string|null);
|
|
32526
|
+
|
|
32527
|
+
/** ElfRecordPresent isMemberMigrated */
|
|
32528
|
+
isMemberMigrated?: (boolean|null);
|
|
32529
|
+
|
|
32521
32530
|
/** ElfRecordPresent isDryRun */
|
|
32522
32531
|
isDryRun?: (boolean|null);
|
|
32523
32532
|
|
|
@@ -32597,6 +32606,15 @@ export class ElfRecordPresent implements IElfRecordPresent {
|
|
|
32597
32606
|
/** ElfRecordPresent offerings. */
|
|
32598
32607
|
public offerings: b2b.SubscriptionOffering[];
|
|
32599
32608
|
|
|
32609
|
+
/** ElfRecordPresent rootOrgHeadspaceHealthId. */
|
|
32610
|
+
public rootOrgHeadspaceHealthId: string;
|
|
32611
|
+
|
|
32612
|
+
/** ElfRecordPresent rootOrgId. */
|
|
32613
|
+
public rootOrgId: string;
|
|
32614
|
+
|
|
32615
|
+
/** ElfRecordPresent isMemberMigrated. */
|
|
32616
|
+
public isMemberMigrated: boolean;
|
|
32617
|
+
|
|
32600
32618
|
/** ElfRecordPresent isDryRun. */
|
|
32601
32619
|
public isDryRun: boolean;
|
|
32602
32620
|
|
|
@@ -32715,6 +32733,15 @@ export interface IElfRecordAbsent {
|
|
|
32715
32733
|
|
|
32716
32734
|
/** ElfRecordAbsent unifiedEligibilityEnabled */
|
|
32717
32735
|
unifiedEligibilityEnabled?: (boolean|null);
|
|
32736
|
+
|
|
32737
|
+
/** ElfRecordAbsent rootOrgHeadspaceHealthId */
|
|
32738
|
+
rootOrgHeadspaceHealthId?: (string|null);
|
|
32739
|
+
|
|
32740
|
+
/** ElfRecordAbsent rootOrgId */
|
|
32741
|
+
rootOrgId?: (string|null);
|
|
32742
|
+
|
|
32743
|
+
/** ElfRecordAbsent isMemberMigrated */
|
|
32744
|
+
isMemberMigrated?: (boolean|null);
|
|
32718
32745
|
}
|
|
32719
32746
|
|
|
32720
32747
|
/** Represents an ElfRecordAbsent. */
|
|
@@ -32759,6 +32786,15 @@ export class ElfRecordAbsent implements IElfRecordAbsent {
|
|
|
32759
32786
|
/** ElfRecordAbsent unifiedEligibilityEnabled. */
|
|
32760
32787
|
public unifiedEligibilityEnabled: boolean;
|
|
32761
32788
|
|
|
32789
|
+
/** ElfRecordAbsent rootOrgHeadspaceHealthId. */
|
|
32790
|
+
public rootOrgHeadspaceHealthId: string;
|
|
32791
|
+
|
|
32792
|
+
/** ElfRecordAbsent rootOrgId. */
|
|
32793
|
+
public rootOrgId: string;
|
|
32794
|
+
|
|
32795
|
+
/** ElfRecordAbsent isMemberMigrated. */
|
|
32796
|
+
public isMemberMigrated: boolean;
|
|
32797
|
+
|
|
32762
32798
|
/**
|
|
32763
32799
|
* Creates a new ElfRecordAbsent instance using the specified properties.
|
|
32764
32800
|
* @param [properties] Properties to set
|
|
@@ -33022,6 +33058,132 @@ export class ElfProcessingStats implements IElfProcessingStats {
|
|
|
33022
33058
|
public toJSON(): { [k: string]: any };
|
|
33023
33059
|
}
|
|
33024
33060
|
|
|
33061
|
+
/** Properties of an EnterpriseUserOnboarded. */
|
|
33062
|
+
export interface IEnterpriseUserOnboarded {
|
|
33063
|
+
|
|
33064
|
+
/** EnterpriseUserOnboarded keyType */
|
|
33065
|
+
keyType?: (KeyType|null);
|
|
33066
|
+
|
|
33067
|
+
/** EnterpriseUserOnboarded workId */
|
|
33068
|
+
workId?: (string|null);
|
|
33069
|
+
|
|
33070
|
+
/** EnterpriseUserOnboarded workEmail */
|
|
33071
|
+
workEmail?: (string|null);
|
|
33072
|
+
|
|
33073
|
+
/** EnterpriseUserOnboarded hsUserId */
|
|
33074
|
+
hsUserId?: (string|null);
|
|
33075
|
+
|
|
33076
|
+
/** EnterpriseUserOnboarded orgId */
|
|
33077
|
+
orgId?: (number|null);
|
|
33078
|
+
|
|
33079
|
+
/** EnterpriseUserOnboarded headspaceHealthOrgId */
|
|
33080
|
+
headspaceHealthOrgId?: (string|null);
|
|
33081
|
+
|
|
33082
|
+
/** EnterpriseUserOnboarded recommendedOffering */
|
|
33083
|
+
recommendedOffering?: (b2b.SubscriptionOffering|null);
|
|
33084
|
+
}
|
|
33085
|
+
|
|
33086
|
+
/** Represents an EnterpriseUserOnboarded. */
|
|
33087
|
+
export class EnterpriseUserOnboarded implements IEnterpriseUserOnboarded {
|
|
33088
|
+
|
|
33089
|
+
/**
|
|
33090
|
+
* Constructs a new EnterpriseUserOnboarded.
|
|
33091
|
+
* @param [properties] Properties to set
|
|
33092
|
+
*/
|
|
33093
|
+
constructor(properties?: IEnterpriseUserOnboarded);
|
|
33094
|
+
|
|
33095
|
+
/** EnterpriseUserOnboarded keyType. */
|
|
33096
|
+
public keyType: KeyType;
|
|
33097
|
+
|
|
33098
|
+
/** EnterpriseUserOnboarded workId. */
|
|
33099
|
+
public workId: string;
|
|
33100
|
+
|
|
33101
|
+
/** EnterpriseUserOnboarded workEmail. */
|
|
33102
|
+
public workEmail: string;
|
|
33103
|
+
|
|
33104
|
+
/** EnterpriseUserOnboarded hsUserId. */
|
|
33105
|
+
public hsUserId: string;
|
|
33106
|
+
|
|
33107
|
+
/** EnterpriseUserOnboarded orgId. */
|
|
33108
|
+
public orgId: number;
|
|
33109
|
+
|
|
33110
|
+
/** EnterpriseUserOnboarded headspaceHealthOrgId. */
|
|
33111
|
+
public headspaceHealthOrgId: string;
|
|
33112
|
+
|
|
33113
|
+
/** EnterpriseUserOnboarded recommendedOffering. */
|
|
33114
|
+
public recommendedOffering: b2b.SubscriptionOffering;
|
|
33115
|
+
|
|
33116
|
+
/**
|
|
33117
|
+
* Creates a new EnterpriseUserOnboarded instance using the specified properties.
|
|
33118
|
+
* @param [properties] Properties to set
|
|
33119
|
+
* @returns EnterpriseUserOnboarded instance
|
|
33120
|
+
*/
|
|
33121
|
+
public static create(properties?: IEnterpriseUserOnboarded): EnterpriseUserOnboarded;
|
|
33122
|
+
|
|
33123
|
+
/**
|
|
33124
|
+
* Encodes the specified EnterpriseUserOnboarded message. Does not implicitly {@link EnterpriseUserOnboarded.verify|verify} messages.
|
|
33125
|
+
* @param message EnterpriseUserOnboarded message or plain object to encode
|
|
33126
|
+
* @param [writer] Writer to encode to
|
|
33127
|
+
* @returns Writer
|
|
33128
|
+
*/
|
|
33129
|
+
public static encode(message: IEnterpriseUserOnboarded, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
33130
|
+
|
|
33131
|
+
/**
|
|
33132
|
+
* Encodes the specified EnterpriseUserOnboarded message, length delimited. Does not implicitly {@link EnterpriseUserOnboarded.verify|verify} messages.
|
|
33133
|
+
* @param message EnterpriseUserOnboarded message or plain object to encode
|
|
33134
|
+
* @param [writer] Writer to encode to
|
|
33135
|
+
* @returns Writer
|
|
33136
|
+
*/
|
|
33137
|
+
public static encodeDelimited(message: IEnterpriseUserOnboarded, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
33138
|
+
|
|
33139
|
+
/**
|
|
33140
|
+
* Decodes an EnterpriseUserOnboarded message from the specified reader or buffer.
|
|
33141
|
+
* @param reader Reader or buffer to decode from
|
|
33142
|
+
* @param [length] Message length if known beforehand
|
|
33143
|
+
* @returns EnterpriseUserOnboarded
|
|
33144
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33145
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33146
|
+
*/
|
|
33147
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): EnterpriseUserOnboarded;
|
|
33148
|
+
|
|
33149
|
+
/**
|
|
33150
|
+
* Decodes an EnterpriseUserOnboarded message from the specified reader or buffer, length delimited.
|
|
33151
|
+
* @param reader Reader or buffer to decode from
|
|
33152
|
+
* @returns EnterpriseUserOnboarded
|
|
33153
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33154
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33155
|
+
*/
|
|
33156
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): EnterpriseUserOnboarded;
|
|
33157
|
+
|
|
33158
|
+
/**
|
|
33159
|
+
* Verifies an EnterpriseUserOnboarded message.
|
|
33160
|
+
* @param message Plain object to verify
|
|
33161
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
33162
|
+
*/
|
|
33163
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
33164
|
+
|
|
33165
|
+
/**
|
|
33166
|
+
* Creates an EnterpriseUserOnboarded message from a plain object. Also converts values to their respective internal types.
|
|
33167
|
+
* @param object Plain object
|
|
33168
|
+
* @returns EnterpriseUserOnboarded
|
|
33169
|
+
*/
|
|
33170
|
+
public static fromObject(object: { [k: string]: any }): EnterpriseUserOnboarded;
|
|
33171
|
+
|
|
33172
|
+
/**
|
|
33173
|
+
* Creates a plain object from an EnterpriseUserOnboarded message. Also converts values to other types if specified.
|
|
33174
|
+
* @param message EnterpriseUserOnboarded
|
|
33175
|
+
* @param [options] Conversion options
|
|
33176
|
+
* @returns Plain object
|
|
33177
|
+
*/
|
|
33178
|
+
public static toObject(message: EnterpriseUserOnboarded, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
33179
|
+
|
|
33180
|
+
/**
|
|
33181
|
+
* Converts this EnterpriseUserOnboarded to JSON.
|
|
33182
|
+
* @returns JSON object
|
|
33183
|
+
*/
|
|
33184
|
+
public toJSON(): { [k: string]: any };
|
|
33185
|
+
}
|
|
33186
|
+
|
|
33025
33187
|
/** Properties of an EnterpriseUserEnrollmentCreated. */
|
|
33026
33188
|
export interface IEnterpriseUserEnrollmentCreated {
|
|
33027
33189
|
|
package/lib/index.js
CHANGED
|
@@ -89806,6 +89806,9 @@ $root.ElfRecordPresent = (function() {
|
|
|
89806
89806
|
* @property {string|null} [language] ElfRecordPresent language
|
|
89807
89807
|
* @property {string|null} [customFields] ElfRecordPresent customFields
|
|
89808
89808
|
* @property {Array.<b2b.SubscriptionOffering>|null} [offerings] ElfRecordPresent offerings
|
|
89809
|
+
* @property {string|null} [rootOrgHeadspaceHealthId] ElfRecordPresent rootOrgHeadspaceHealthId
|
|
89810
|
+
* @property {string|null} [rootOrgId] ElfRecordPresent rootOrgId
|
|
89811
|
+
* @property {boolean|null} [isMemberMigrated] ElfRecordPresent isMemberMigrated
|
|
89809
89812
|
* @property {boolean|null} [isDryRun] ElfRecordPresent isDryRun
|
|
89810
89813
|
* @property {boolean|null} [gingerShouldProcess] ElfRecordPresent gingerShouldProcess
|
|
89811
89814
|
* @property {boolean|null} [headspaceShouldProcess] ElfRecordPresent headspaceShouldProcess
|
|
@@ -89980,6 +89983,30 @@ $root.ElfRecordPresent = (function() {
|
|
|
89980
89983
|
*/
|
|
89981
89984
|
ElfRecordPresent.prototype.offerings = $util.emptyArray;
|
|
89982
89985
|
|
|
89986
|
+
/**
|
|
89987
|
+
* ElfRecordPresent rootOrgHeadspaceHealthId.
|
|
89988
|
+
* @member {string} rootOrgHeadspaceHealthId
|
|
89989
|
+
* @memberof ElfRecordPresent
|
|
89990
|
+
* @instance
|
|
89991
|
+
*/
|
|
89992
|
+
ElfRecordPresent.prototype.rootOrgHeadspaceHealthId = "";
|
|
89993
|
+
|
|
89994
|
+
/**
|
|
89995
|
+
* ElfRecordPresent rootOrgId.
|
|
89996
|
+
* @member {string} rootOrgId
|
|
89997
|
+
* @memberof ElfRecordPresent
|
|
89998
|
+
* @instance
|
|
89999
|
+
*/
|
|
90000
|
+
ElfRecordPresent.prototype.rootOrgId = "";
|
|
90001
|
+
|
|
90002
|
+
/**
|
|
90003
|
+
* ElfRecordPresent isMemberMigrated.
|
|
90004
|
+
* @member {boolean} isMemberMigrated
|
|
90005
|
+
* @memberof ElfRecordPresent
|
|
90006
|
+
* @instance
|
|
90007
|
+
*/
|
|
90008
|
+
ElfRecordPresent.prototype.isMemberMigrated = false;
|
|
90009
|
+
|
|
89983
90010
|
/**
|
|
89984
90011
|
* ElfRecordPresent isDryRun.
|
|
89985
90012
|
* @member {boolean} isDryRun
|
|
@@ -90086,6 +90113,12 @@ $root.ElfRecordPresent = (function() {
|
|
|
90086
90113
|
}
|
|
90087
90114
|
if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
|
|
90088
90115
|
writer.uint32(/* id 23, wireType 0 =*/184).bool(message.unifiedEligibilityEnabled);
|
|
90116
|
+
if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
|
|
90117
|
+
writer.uint32(/* id 24, wireType 2 =*/194).string(message.rootOrgHeadspaceHealthId);
|
|
90118
|
+
if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
|
|
90119
|
+
writer.uint32(/* id 25, wireType 2 =*/202).string(message.rootOrgId);
|
|
90120
|
+
if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
|
|
90121
|
+
writer.uint32(/* id 26, wireType 0 =*/208).bool(message.isMemberMigrated);
|
|
90089
90122
|
return writer;
|
|
90090
90123
|
};
|
|
90091
90124
|
|
|
@@ -90184,6 +90217,15 @@ $root.ElfRecordPresent = (function() {
|
|
|
90184
90217
|
} else
|
|
90185
90218
|
message.offerings.push(reader.int32());
|
|
90186
90219
|
break;
|
|
90220
|
+
case 24:
|
|
90221
|
+
message.rootOrgHeadspaceHealthId = reader.string();
|
|
90222
|
+
break;
|
|
90223
|
+
case 25:
|
|
90224
|
+
message.rootOrgId = reader.string();
|
|
90225
|
+
break;
|
|
90226
|
+
case 26:
|
|
90227
|
+
message.isMemberMigrated = reader.bool();
|
|
90228
|
+
break;
|
|
90187
90229
|
case 18:
|
|
90188
90230
|
message.isDryRun = reader.bool();
|
|
90189
90231
|
break;
|
|
@@ -90303,6 +90345,15 @@ $root.ElfRecordPresent = (function() {
|
|
|
90303
90345
|
break;
|
|
90304
90346
|
}
|
|
90305
90347
|
}
|
|
90348
|
+
if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
|
|
90349
|
+
if (!$util.isString(message.rootOrgHeadspaceHealthId))
|
|
90350
|
+
return "rootOrgHeadspaceHealthId: string expected";
|
|
90351
|
+
if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
|
|
90352
|
+
if (!$util.isString(message.rootOrgId))
|
|
90353
|
+
return "rootOrgId: string expected";
|
|
90354
|
+
if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
|
|
90355
|
+
if (typeof message.isMemberMigrated !== "boolean")
|
|
90356
|
+
return "isMemberMigrated: boolean expected";
|
|
90306
90357
|
if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
|
|
90307
90358
|
if (typeof message.isDryRun !== "boolean")
|
|
90308
90359
|
return "isDryRun: boolean expected";
|
|
@@ -90402,6 +90453,12 @@ $root.ElfRecordPresent = (function() {
|
|
|
90402
90453
|
break;
|
|
90403
90454
|
}
|
|
90404
90455
|
}
|
|
90456
|
+
if (object.rootOrgHeadspaceHealthId != null)
|
|
90457
|
+
message.rootOrgHeadspaceHealthId = String(object.rootOrgHeadspaceHealthId);
|
|
90458
|
+
if (object.rootOrgId != null)
|
|
90459
|
+
message.rootOrgId = String(object.rootOrgId);
|
|
90460
|
+
if (object.isMemberMigrated != null)
|
|
90461
|
+
message.isMemberMigrated = Boolean(object.isMemberMigrated);
|
|
90405
90462
|
if (object.isDryRun != null)
|
|
90406
90463
|
message.isDryRun = Boolean(object.isDryRun);
|
|
90407
90464
|
if (object.gingerShouldProcess != null)
|
|
@@ -90455,6 +90512,9 @@ $root.ElfRecordPresent = (function() {
|
|
|
90455
90512
|
object.headspaceShouldProcess = false;
|
|
90456
90513
|
object.customFields = "";
|
|
90457
90514
|
object.unifiedEligibilityEnabled = false;
|
|
90515
|
+
object.rootOrgHeadspaceHealthId = "";
|
|
90516
|
+
object.rootOrgId = "";
|
|
90517
|
+
object.isMemberMigrated = false;
|
|
90458
90518
|
}
|
|
90459
90519
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
90460
90520
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -90508,6 +90568,12 @@ $root.ElfRecordPresent = (function() {
|
|
|
90508
90568
|
}
|
|
90509
90569
|
if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
|
|
90510
90570
|
object.unifiedEligibilityEnabled = message.unifiedEligibilityEnabled;
|
|
90571
|
+
if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
|
|
90572
|
+
object.rootOrgHeadspaceHealthId = message.rootOrgHeadspaceHealthId;
|
|
90573
|
+
if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
|
|
90574
|
+
object.rootOrgId = message.rootOrgId;
|
|
90575
|
+
if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
|
|
90576
|
+
object.isMemberMigrated = message.isMemberMigrated;
|
|
90511
90577
|
return object;
|
|
90512
90578
|
};
|
|
90513
90579
|
|
|
@@ -90542,6 +90608,9 @@ $root.ElfRecordAbsent = (function() {
|
|
|
90542
90608
|
* @property {boolean|null} [gingerShouldProcess] ElfRecordAbsent gingerShouldProcess
|
|
90543
90609
|
* @property {boolean|null} [headspaceShouldProcess] ElfRecordAbsent headspaceShouldProcess
|
|
90544
90610
|
* @property {boolean|null} [unifiedEligibilityEnabled] ElfRecordAbsent unifiedEligibilityEnabled
|
|
90611
|
+
* @property {string|null} [rootOrgHeadspaceHealthId] ElfRecordAbsent rootOrgHeadspaceHealthId
|
|
90612
|
+
* @property {string|null} [rootOrgId] ElfRecordAbsent rootOrgId
|
|
90613
|
+
* @property {boolean|null} [isMemberMigrated] ElfRecordAbsent isMemberMigrated
|
|
90545
90614
|
*/
|
|
90546
90615
|
|
|
90547
90616
|
/**
|
|
@@ -90647,6 +90716,30 @@ $root.ElfRecordAbsent = (function() {
|
|
|
90647
90716
|
*/
|
|
90648
90717
|
ElfRecordAbsent.prototype.unifiedEligibilityEnabled = false;
|
|
90649
90718
|
|
|
90719
|
+
/**
|
|
90720
|
+
* ElfRecordAbsent rootOrgHeadspaceHealthId.
|
|
90721
|
+
* @member {string} rootOrgHeadspaceHealthId
|
|
90722
|
+
* @memberof ElfRecordAbsent
|
|
90723
|
+
* @instance
|
|
90724
|
+
*/
|
|
90725
|
+
ElfRecordAbsent.prototype.rootOrgHeadspaceHealthId = "";
|
|
90726
|
+
|
|
90727
|
+
/**
|
|
90728
|
+
* ElfRecordAbsent rootOrgId.
|
|
90729
|
+
* @member {string} rootOrgId
|
|
90730
|
+
* @memberof ElfRecordAbsent
|
|
90731
|
+
* @instance
|
|
90732
|
+
*/
|
|
90733
|
+
ElfRecordAbsent.prototype.rootOrgId = "";
|
|
90734
|
+
|
|
90735
|
+
/**
|
|
90736
|
+
* ElfRecordAbsent isMemberMigrated.
|
|
90737
|
+
* @member {boolean} isMemberMigrated
|
|
90738
|
+
* @memberof ElfRecordAbsent
|
|
90739
|
+
* @instance
|
|
90740
|
+
*/
|
|
90741
|
+
ElfRecordAbsent.prototype.isMemberMigrated = false;
|
|
90742
|
+
|
|
90650
90743
|
/**
|
|
90651
90744
|
* Creates a new ElfRecordAbsent instance using the specified properties.
|
|
90652
90745
|
* @function create
|
|
@@ -90693,6 +90786,12 @@ $root.ElfRecordAbsent = (function() {
|
|
|
90693
90786
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.headspaceShouldProcess);
|
|
90694
90787
|
if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
|
|
90695
90788
|
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.unifiedEligibilityEnabled);
|
|
90789
|
+
if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
|
|
90790
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.rootOrgHeadspaceHealthId);
|
|
90791
|
+
if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
|
|
90792
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.rootOrgId);
|
|
90793
|
+
if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
|
|
90794
|
+
writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isMemberMigrated);
|
|
90696
90795
|
return writer;
|
|
90697
90796
|
};
|
|
90698
90797
|
|
|
@@ -90760,6 +90859,15 @@ $root.ElfRecordAbsent = (function() {
|
|
|
90760
90859
|
case 11:
|
|
90761
90860
|
message.unifiedEligibilityEnabled = reader.bool();
|
|
90762
90861
|
break;
|
|
90862
|
+
case 12:
|
|
90863
|
+
message.rootOrgHeadspaceHealthId = reader.string();
|
|
90864
|
+
break;
|
|
90865
|
+
case 13:
|
|
90866
|
+
message.rootOrgId = reader.string();
|
|
90867
|
+
break;
|
|
90868
|
+
case 14:
|
|
90869
|
+
message.isMemberMigrated = reader.bool();
|
|
90870
|
+
break;
|
|
90763
90871
|
default:
|
|
90764
90872
|
reader.skipType(tag & 7);
|
|
90765
90873
|
break;
|
|
@@ -90833,6 +90941,15 @@ $root.ElfRecordAbsent = (function() {
|
|
|
90833
90941
|
if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
|
|
90834
90942
|
if (typeof message.unifiedEligibilityEnabled !== "boolean")
|
|
90835
90943
|
return "unifiedEligibilityEnabled: boolean expected";
|
|
90944
|
+
if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
|
|
90945
|
+
if (!$util.isString(message.rootOrgHeadspaceHealthId))
|
|
90946
|
+
return "rootOrgHeadspaceHealthId: string expected";
|
|
90947
|
+
if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
|
|
90948
|
+
if (!$util.isString(message.rootOrgId))
|
|
90949
|
+
return "rootOrgId: string expected";
|
|
90950
|
+
if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
|
|
90951
|
+
if (typeof message.isMemberMigrated !== "boolean")
|
|
90952
|
+
return "isMemberMigrated: boolean expected";
|
|
90836
90953
|
return null;
|
|
90837
90954
|
};
|
|
90838
90955
|
|
|
@@ -90885,6 +91002,12 @@ $root.ElfRecordAbsent = (function() {
|
|
|
90885
91002
|
message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
|
|
90886
91003
|
if (object.unifiedEligibilityEnabled != null)
|
|
90887
91004
|
message.unifiedEligibilityEnabled = Boolean(object.unifiedEligibilityEnabled);
|
|
91005
|
+
if (object.rootOrgHeadspaceHealthId != null)
|
|
91006
|
+
message.rootOrgHeadspaceHealthId = String(object.rootOrgHeadspaceHealthId);
|
|
91007
|
+
if (object.rootOrgId != null)
|
|
91008
|
+
message.rootOrgId = String(object.rootOrgId);
|
|
91009
|
+
if (object.isMemberMigrated != null)
|
|
91010
|
+
message.isMemberMigrated = Boolean(object.isMemberMigrated);
|
|
90888
91011
|
return message;
|
|
90889
91012
|
};
|
|
90890
91013
|
|
|
@@ -90917,6 +91040,9 @@ $root.ElfRecordAbsent = (function() {
|
|
|
90917
91040
|
object.gingerShouldProcess = false;
|
|
90918
91041
|
object.headspaceShouldProcess = false;
|
|
90919
91042
|
object.unifiedEligibilityEnabled = false;
|
|
91043
|
+
object.rootOrgHeadspaceHealthId = "";
|
|
91044
|
+
object.rootOrgId = "";
|
|
91045
|
+
object.isMemberMigrated = false;
|
|
90920
91046
|
}
|
|
90921
91047
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
90922
91048
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -90943,6 +91069,12 @@ $root.ElfRecordAbsent = (function() {
|
|
|
90943
91069
|
object.headspaceShouldProcess = message.headspaceShouldProcess;
|
|
90944
91070
|
if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
|
|
90945
91071
|
object.unifiedEligibilityEnabled = message.unifiedEligibilityEnabled;
|
|
91072
|
+
if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
|
|
91073
|
+
object.rootOrgHeadspaceHealthId = message.rootOrgHeadspaceHealthId;
|
|
91074
|
+
if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
|
|
91075
|
+
object.rootOrgId = message.rootOrgId;
|
|
91076
|
+
if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
|
|
91077
|
+
object.isMemberMigrated = message.isMemberMigrated;
|
|
90946
91078
|
return object;
|
|
90947
91079
|
};
|
|
90948
91080
|
|
|
@@ -91613,6 +91745,357 @@ $root.ElfProcessingStats = (function() {
|
|
|
91613
91745
|
return ElfProcessingStats;
|
|
91614
91746
|
})();
|
|
91615
91747
|
|
|
91748
|
+
$root.EnterpriseUserOnboarded = (function() {
|
|
91749
|
+
|
|
91750
|
+
/**
|
|
91751
|
+
* Properties of an EnterpriseUserOnboarded.
|
|
91752
|
+
* @exports IEnterpriseUserOnboarded
|
|
91753
|
+
* @interface IEnterpriseUserOnboarded
|
|
91754
|
+
* @property {KeyType|null} [keyType] EnterpriseUserOnboarded keyType
|
|
91755
|
+
* @property {string|null} [workId] EnterpriseUserOnboarded workId
|
|
91756
|
+
* @property {string|null} [workEmail] EnterpriseUserOnboarded workEmail
|
|
91757
|
+
* @property {string|null} [hsUserId] EnterpriseUserOnboarded hsUserId
|
|
91758
|
+
* @property {number|null} [orgId] EnterpriseUserOnboarded orgId
|
|
91759
|
+
* @property {string|null} [headspaceHealthOrgId] EnterpriseUserOnboarded headspaceHealthOrgId
|
|
91760
|
+
* @property {b2b.SubscriptionOffering|null} [recommendedOffering] EnterpriseUserOnboarded recommendedOffering
|
|
91761
|
+
*/
|
|
91762
|
+
|
|
91763
|
+
/**
|
|
91764
|
+
* Constructs a new EnterpriseUserOnboarded.
|
|
91765
|
+
* @exports EnterpriseUserOnboarded
|
|
91766
|
+
* @classdesc Represents an EnterpriseUserOnboarded.
|
|
91767
|
+
* @implements IEnterpriseUserOnboarded
|
|
91768
|
+
* @constructor
|
|
91769
|
+
* @param {IEnterpriseUserOnboarded=} [properties] Properties to set
|
|
91770
|
+
*/
|
|
91771
|
+
function EnterpriseUserOnboarded(properties) {
|
|
91772
|
+
if (properties)
|
|
91773
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91774
|
+
if (properties[keys[i]] != null)
|
|
91775
|
+
this[keys[i]] = properties[keys[i]];
|
|
91776
|
+
}
|
|
91777
|
+
|
|
91778
|
+
/**
|
|
91779
|
+
* EnterpriseUserOnboarded keyType.
|
|
91780
|
+
* @member {KeyType} keyType
|
|
91781
|
+
* @memberof EnterpriseUserOnboarded
|
|
91782
|
+
* @instance
|
|
91783
|
+
*/
|
|
91784
|
+
EnterpriseUserOnboarded.prototype.keyType = 0;
|
|
91785
|
+
|
|
91786
|
+
/**
|
|
91787
|
+
* EnterpriseUserOnboarded workId.
|
|
91788
|
+
* @member {string} workId
|
|
91789
|
+
* @memberof EnterpriseUserOnboarded
|
|
91790
|
+
* @instance
|
|
91791
|
+
*/
|
|
91792
|
+
EnterpriseUserOnboarded.prototype.workId = "";
|
|
91793
|
+
|
|
91794
|
+
/**
|
|
91795
|
+
* EnterpriseUserOnboarded workEmail.
|
|
91796
|
+
* @member {string} workEmail
|
|
91797
|
+
* @memberof EnterpriseUserOnboarded
|
|
91798
|
+
* @instance
|
|
91799
|
+
*/
|
|
91800
|
+
EnterpriseUserOnboarded.prototype.workEmail = "";
|
|
91801
|
+
|
|
91802
|
+
/**
|
|
91803
|
+
* EnterpriseUserOnboarded hsUserId.
|
|
91804
|
+
* @member {string} hsUserId
|
|
91805
|
+
* @memberof EnterpriseUserOnboarded
|
|
91806
|
+
* @instance
|
|
91807
|
+
*/
|
|
91808
|
+
EnterpriseUserOnboarded.prototype.hsUserId = "";
|
|
91809
|
+
|
|
91810
|
+
/**
|
|
91811
|
+
* EnterpriseUserOnboarded orgId.
|
|
91812
|
+
* @member {number} orgId
|
|
91813
|
+
* @memberof EnterpriseUserOnboarded
|
|
91814
|
+
* @instance
|
|
91815
|
+
*/
|
|
91816
|
+
EnterpriseUserOnboarded.prototype.orgId = 0;
|
|
91817
|
+
|
|
91818
|
+
/**
|
|
91819
|
+
* EnterpriseUserOnboarded headspaceHealthOrgId.
|
|
91820
|
+
* @member {string} headspaceHealthOrgId
|
|
91821
|
+
* @memberof EnterpriseUserOnboarded
|
|
91822
|
+
* @instance
|
|
91823
|
+
*/
|
|
91824
|
+
EnterpriseUserOnboarded.prototype.headspaceHealthOrgId = "";
|
|
91825
|
+
|
|
91826
|
+
/**
|
|
91827
|
+
* EnterpriseUserOnboarded recommendedOffering.
|
|
91828
|
+
* @member {b2b.SubscriptionOffering} recommendedOffering
|
|
91829
|
+
* @memberof EnterpriseUserOnboarded
|
|
91830
|
+
* @instance
|
|
91831
|
+
*/
|
|
91832
|
+
EnterpriseUserOnboarded.prototype.recommendedOffering = 0;
|
|
91833
|
+
|
|
91834
|
+
/**
|
|
91835
|
+
* Creates a new EnterpriseUserOnboarded instance using the specified properties.
|
|
91836
|
+
* @function create
|
|
91837
|
+
* @memberof EnterpriseUserOnboarded
|
|
91838
|
+
* @static
|
|
91839
|
+
* @param {IEnterpriseUserOnboarded=} [properties] Properties to set
|
|
91840
|
+
* @returns {EnterpriseUserOnboarded} EnterpriseUserOnboarded instance
|
|
91841
|
+
*/
|
|
91842
|
+
EnterpriseUserOnboarded.create = function create(properties) {
|
|
91843
|
+
return new EnterpriseUserOnboarded(properties);
|
|
91844
|
+
};
|
|
91845
|
+
|
|
91846
|
+
/**
|
|
91847
|
+
* Encodes the specified EnterpriseUserOnboarded message. Does not implicitly {@link EnterpriseUserOnboarded.verify|verify} messages.
|
|
91848
|
+
* @function encode
|
|
91849
|
+
* @memberof EnterpriseUserOnboarded
|
|
91850
|
+
* @static
|
|
91851
|
+
* @param {IEnterpriseUserOnboarded} message EnterpriseUserOnboarded message or plain object to encode
|
|
91852
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91853
|
+
* @returns {$protobuf.Writer} Writer
|
|
91854
|
+
*/
|
|
91855
|
+
EnterpriseUserOnboarded.encode = function encode(message, writer) {
|
|
91856
|
+
if (!writer)
|
|
91857
|
+
writer = $Writer.create();
|
|
91858
|
+
if (message.keyType != null && message.hasOwnProperty("keyType"))
|
|
91859
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.keyType);
|
|
91860
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
91861
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.workId);
|
|
91862
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
91863
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.workEmail);
|
|
91864
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91865
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.hsUserId);
|
|
91866
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
91867
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.orgId);
|
|
91868
|
+
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
91869
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.headspaceHealthOrgId);
|
|
91870
|
+
if (message.recommendedOffering != null && message.hasOwnProperty("recommendedOffering"))
|
|
91871
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.recommendedOffering);
|
|
91872
|
+
return writer;
|
|
91873
|
+
};
|
|
91874
|
+
|
|
91875
|
+
/**
|
|
91876
|
+
* Encodes the specified EnterpriseUserOnboarded message, length delimited. Does not implicitly {@link EnterpriseUserOnboarded.verify|verify} messages.
|
|
91877
|
+
* @function encodeDelimited
|
|
91878
|
+
* @memberof EnterpriseUserOnboarded
|
|
91879
|
+
* @static
|
|
91880
|
+
* @param {IEnterpriseUserOnboarded} message EnterpriseUserOnboarded message or plain object to encode
|
|
91881
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91882
|
+
* @returns {$protobuf.Writer} Writer
|
|
91883
|
+
*/
|
|
91884
|
+
EnterpriseUserOnboarded.encodeDelimited = function encodeDelimited(message, writer) {
|
|
91885
|
+
return this.encode(message, writer).ldelim();
|
|
91886
|
+
};
|
|
91887
|
+
|
|
91888
|
+
/**
|
|
91889
|
+
* Decodes an EnterpriseUserOnboarded message from the specified reader or buffer.
|
|
91890
|
+
* @function decode
|
|
91891
|
+
* @memberof EnterpriseUserOnboarded
|
|
91892
|
+
* @static
|
|
91893
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91894
|
+
* @param {number} [length] Message length if known beforehand
|
|
91895
|
+
* @returns {EnterpriseUserOnboarded} EnterpriseUserOnboarded
|
|
91896
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91897
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91898
|
+
*/
|
|
91899
|
+
EnterpriseUserOnboarded.decode = function decode(reader, length) {
|
|
91900
|
+
if (!(reader instanceof $Reader))
|
|
91901
|
+
reader = $Reader.create(reader);
|
|
91902
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EnterpriseUserOnboarded();
|
|
91903
|
+
while (reader.pos < end) {
|
|
91904
|
+
var tag = reader.uint32();
|
|
91905
|
+
switch (tag >>> 3) {
|
|
91906
|
+
case 1:
|
|
91907
|
+
message.keyType = reader.int32();
|
|
91908
|
+
break;
|
|
91909
|
+
case 2:
|
|
91910
|
+
message.workId = reader.string();
|
|
91911
|
+
break;
|
|
91912
|
+
case 3:
|
|
91913
|
+
message.workEmail = reader.string();
|
|
91914
|
+
break;
|
|
91915
|
+
case 4:
|
|
91916
|
+
message.hsUserId = reader.string();
|
|
91917
|
+
break;
|
|
91918
|
+
case 5:
|
|
91919
|
+
message.orgId = reader.uint32();
|
|
91920
|
+
break;
|
|
91921
|
+
case 6:
|
|
91922
|
+
message.headspaceHealthOrgId = reader.string();
|
|
91923
|
+
break;
|
|
91924
|
+
case 7:
|
|
91925
|
+
message.recommendedOffering = reader.int32();
|
|
91926
|
+
break;
|
|
91927
|
+
default:
|
|
91928
|
+
reader.skipType(tag & 7);
|
|
91929
|
+
break;
|
|
91930
|
+
}
|
|
91931
|
+
}
|
|
91932
|
+
return message;
|
|
91933
|
+
};
|
|
91934
|
+
|
|
91935
|
+
/**
|
|
91936
|
+
* Decodes an EnterpriseUserOnboarded message from the specified reader or buffer, length delimited.
|
|
91937
|
+
* @function decodeDelimited
|
|
91938
|
+
* @memberof EnterpriseUserOnboarded
|
|
91939
|
+
* @static
|
|
91940
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91941
|
+
* @returns {EnterpriseUserOnboarded} EnterpriseUserOnboarded
|
|
91942
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91943
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91944
|
+
*/
|
|
91945
|
+
EnterpriseUserOnboarded.decodeDelimited = function decodeDelimited(reader) {
|
|
91946
|
+
if (!(reader instanceof $Reader))
|
|
91947
|
+
reader = new $Reader(reader);
|
|
91948
|
+
return this.decode(reader, reader.uint32());
|
|
91949
|
+
};
|
|
91950
|
+
|
|
91951
|
+
/**
|
|
91952
|
+
* Verifies an EnterpriseUserOnboarded message.
|
|
91953
|
+
* @function verify
|
|
91954
|
+
* @memberof EnterpriseUserOnboarded
|
|
91955
|
+
* @static
|
|
91956
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
91957
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
91958
|
+
*/
|
|
91959
|
+
EnterpriseUserOnboarded.verify = function verify(message) {
|
|
91960
|
+
if (typeof message !== "object" || message === null)
|
|
91961
|
+
return "object expected";
|
|
91962
|
+
if (message.keyType != null && message.hasOwnProperty("keyType"))
|
|
91963
|
+
switch (message.keyType) {
|
|
91964
|
+
default:
|
|
91965
|
+
return "keyType: enum value expected";
|
|
91966
|
+
case 0:
|
|
91967
|
+
case 1:
|
|
91968
|
+
break;
|
|
91969
|
+
}
|
|
91970
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
91971
|
+
if (!$util.isString(message.workId))
|
|
91972
|
+
return "workId: string expected";
|
|
91973
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
91974
|
+
if (!$util.isString(message.workEmail))
|
|
91975
|
+
return "workEmail: string expected";
|
|
91976
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91977
|
+
if (!$util.isString(message.hsUserId))
|
|
91978
|
+
return "hsUserId: string expected";
|
|
91979
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
91980
|
+
if (!$util.isInteger(message.orgId))
|
|
91981
|
+
return "orgId: integer expected";
|
|
91982
|
+
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
91983
|
+
if (!$util.isString(message.headspaceHealthOrgId))
|
|
91984
|
+
return "headspaceHealthOrgId: string expected";
|
|
91985
|
+
if (message.recommendedOffering != null && message.hasOwnProperty("recommendedOffering"))
|
|
91986
|
+
switch (message.recommendedOffering) {
|
|
91987
|
+
default:
|
|
91988
|
+
return "recommendedOffering: enum value expected";
|
|
91989
|
+
case 0:
|
|
91990
|
+
case 1:
|
|
91991
|
+
case 2:
|
|
91992
|
+
break;
|
|
91993
|
+
}
|
|
91994
|
+
return null;
|
|
91995
|
+
};
|
|
91996
|
+
|
|
91997
|
+
/**
|
|
91998
|
+
* Creates an EnterpriseUserOnboarded message from a plain object. Also converts values to their respective internal types.
|
|
91999
|
+
* @function fromObject
|
|
92000
|
+
* @memberof EnterpriseUserOnboarded
|
|
92001
|
+
* @static
|
|
92002
|
+
* @param {Object.<string,*>} object Plain object
|
|
92003
|
+
* @returns {EnterpriseUserOnboarded} EnterpriseUserOnboarded
|
|
92004
|
+
*/
|
|
92005
|
+
EnterpriseUserOnboarded.fromObject = function fromObject(object) {
|
|
92006
|
+
if (object instanceof $root.EnterpriseUserOnboarded)
|
|
92007
|
+
return object;
|
|
92008
|
+
var message = new $root.EnterpriseUserOnboarded();
|
|
92009
|
+
switch (object.keyType) {
|
|
92010
|
+
case "WORK_ID":
|
|
92011
|
+
case 0:
|
|
92012
|
+
message.keyType = 0;
|
|
92013
|
+
break;
|
|
92014
|
+
case "WORK_EMAIL":
|
|
92015
|
+
case 1:
|
|
92016
|
+
message.keyType = 1;
|
|
92017
|
+
break;
|
|
92018
|
+
}
|
|
92019
|
+
if (object.workId != null)
|
|
92020
|
+
message.workId = String(object.workId);
|
|
92021
|
+
if (object.workEmail != null)
|
|
92022
|
+
message.workEmail = String(object.workEmail);
|
|
92023
|
+
if (object.hsUserId != null)
|
|
92024
|
+
message.hsUserId = String(object.hsUserId);
|
|
92025
|
+
if (object.orgId != null)
|
|
92026
|
+
message.orgId = object.orgId >>> 0;
|
|
92027
|
+
if (object.headspaceHealthOrgId != null)
|
|
92028
|
+
message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
|
|
92029
|
+
switch (object.recommendedOffering) {
|
|
92030
|
+
case "SUBSCRIPTION_OFFERING_UNKNOWN":
|
|
92031
|
+
case 0:
|
|
92032
|
+
message.recommendedOffering = 0;
|
|
92033
|
+
break;
|
|
92034
|
+
case "SUBSCRIPTION_OFFERING_HEADSPACE":
|
|
92035
|
+
case 1:
|
|
92036
|
+
message.recommendedOffering = 1;
|
|
92037
|
+
break;
|
|
92038
|
+
case "SUBSCRIPTION_OFFERING_GINGER":
|
|
92039
|
+
case 2:
|
|
92040
|
+
message.recommendedOffering = 2;
|
|
92041
|
+
break;
|
|
92042
|
+
}
|
|
92043
|
+
return message;
|
|
92044
|
+
};
|
|
92045
|
+
|
|
92046
|
+
/**
|
|
92047
|
+
* Creates a plain object from an EnterpriseUserOnboarded message. Also converts values to other types if specified.
|
|
92048
|
+
* @function toObject
|
|
92049
|
+
* @memberof EnterpriseUserOnboarded
|
|
92050
|
+
* @static
|
|
92051
|
+
* @param {EnterpriseUserOnboarded} message EnterpriseUserOnboarded
|
|
92052
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
92053
|
+
* @returns {Object.<string,*>} Plain object
|
|
92054
|
+
*/
|
|
92055
|
+
EnterpriseUserOnboarded.toObject = function toObject(message, options) {
|
|
92056
|
+
if (!options)
|
|
92057
|
+
options = {};
|
|
92058
|
+
var object = {};
|
|
92059
|
+
if (options.defaults) {
|
|
92060
|
+
object.keyType = options.enums === String ? "WORK_ID" : 0;
|
|
92061
|
+
object.workId = "";
|
|
92062
|
+
object.workEmail = "";
|
|
92063
|
+
object.hsUserId = "";
|
|
92064
|
+
object.orgId = 0;
|
|
92065
|
+
object.headspaceHealthOrgId = "";
|
|
92066
|
+
object.recommendedOffering = options.enums === String ? "SUBSCRIPTION_OFFERING_UNKNOWN" : 0;
|
|
92067
|
+
}
|
|
92068
|
+
if (message.keyType != null && message.hasOwnProperty("keyType"))
|
|
92069
|
+
object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
|
|
92070
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
92071
|
+
object.workId = message.workId;
|
|
92072
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
92073
|
+
object.workEmail = message.workEmail;
|
|
92074
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
92075
|
+
object.hsUserId = message.hsUserId;
|
|
92076
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
92077
|
+
object.orgId = message.orgId;
|
|
92078
|
+
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
92079
|
+
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
92080
|
+
if (message.recommendedOffering != null && message.hasOwnProperty("recommendedOffering"))
|
|
92081
|
+
object.recommendedOffering = options.enums === String ? $root.b2b.SubscriptionOffering[message.recommendedOffering] : message.recommendedOffering;
|
|
92082
|
+
return object;
|
|
92083
|
+
};
|
|
92084
|
+
|
|
92085
|
+
/**
|
|
92086
|
+
* Converts this EnterpriseUserOnboarded to JSON.
|
|
92087
|
+
* @function toJSON
|
|
92088
|
+
* @memberof EnterpriseUserOnboarded
|
|
92089
|
+
* @instance
|
|
92090
|
+
* @returns {Object.<string,*>} JSON object
|
|
92091
|
+
*/
|
|
92092
|
+
EnterpriseUserOnboarded.prototype.toJSON = function toJSON() {
|
|
92093
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
92094
|
+
};
|
|
92095
|
+
|
|
92096
|
+
return EnterpriseUserOnboarded;
|
|
92097
|
+
})();
|
|
92098
|
+
|
|
91616
92099
|
$root.EnterpriseUserEnrollmentCreated = (function() {
|
|
91617
92100
|
|
|
91618
92101
|
/**
|
package/package.json
CHANGED