@headspace/protos-events 1.425.0 → 1.427.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 +234 -0
- package/lib/index.js +629 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -31102,6 +31102,114 @@ export class OrganizationSubscriptionAmended implements IOrganizationSubscriptio
|
|
|
31102
31102
|
public toJSON(): { [k: string]: any };
|
|
31103
31103
|
}
|
|
31104
31104
|
|
|
31105
|
+
/** Properties of an OrganizationSubscriptionActivated. */
|
|
31106
|
+
export interface IOrganizationSubscriptionActivated {
|
|
31107
|
+
|
|
31108
|
+
/** OrganizationSubscriptionActivated timestamp */
|
|
31109
|
+
timestamp?: (number|Long|null);
|
|
31110
|
+
|
|
31111
|
+
/** OrganizationSubscriptionActivated dashboardUserId */
|
|
31112
|
+
dashboardUserId?: (number|null);
|
|
31113
|
+
|
|
31114
|
+
/** OrganizationSubscriptionActivated organization */
|
|
31115
|
+
organization?: (b2b.IOrganization|null);
|
|
31116
|
+
|
|
31117
|
+
/** OrganizationSubscriptionActivated subscription */
|
|
31118
|
+
subscription?: (b2b.IB2BSubscriptionManagement|null);
|
|
31119
|
+
}
|
|
31120
|
+
|
|
31121
|
+
/** Represents an OrganizationSubscriptionActivated. */
|
|
31122
|
+
export class OrganizationSubscriptionActivated implements IOrganizationSubscriptionActivated {
|
|
31123
|
+
|
|
31124
|
+
/**
|
|
31125
|
+
* Constructs a new OrganizationSubscriptionActivated.
|
|
31126
|
+
* @param [properties] Properties to set
|
|
31127
|
+
*/
|
|
31128
|
+
constructor(properties?: IOrganizationSubscriptionActivated);
|
|
31129
|
+
|
|
31130
|
+
/** OrganizationSubscriptionActivated timestamp. */
|
|
31131
|
+
public timestamp: (number|Long);
|
|
31132
|
+
|
|
31133
|
+
/** OrganizationSubscriptionActivated dashboardUserId. */
|
|
31134
|
+
public dashboardUserId: number;
|
|
31135
|
+
|
|
31136
|
+
/** OrganizationSubscriptionActivated organization. */
|
|
31137
|
+
public organization?: (b2b.IOrganization|null);
|
|
31138
|
+
|
|
31139
|
+
/** OrganizationSubscriptionActivated subscription. */
|
|
31140
|
+
public subscription?: (b2b.IB2BSubscriptionManagement|null);
|
|
31141
|
+
|
|
31142
|
+
/**
|
|
31143
|
+
* Creates a new OrganizationSubscriptionActivated instance using the specified properties.
|
|
31144
|
+
* @param [properties] Properties to set
|
|
31145
|
+
* @returns OrganizationSubscriptionActivated instance
|
|
31146
|
+
*/
|
|
31147
|
+
public static create(properties?: IOrganizationSubscriptionActivated): OrganizationSubscriptionActivated;
|
|
31148
|
+
|
|
31149
|
+
/**
|
|
31150
|
+
* Encodes the specified OrganizationSubscriptionActivated message. Does not implicitly {@link OrganizationSubscriptionActivated.verify|verify} messages.
|
|
31151
|
+
* @param message OrganizationSubscriptionActivated message or plain object to encode
|
|
31152
|
+
* @param [writer] Writer to encode to
|
|
31153
|
+
* @returns Writer
|
|
31154
|
+
*/
|
|
31155
|
+
public static encode(message: IOrganizationSubscriptionActivated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31156
|
+
|
|
31157
|
+
/**
|
|
31158
|
+
* Encodes the specified OrganizationSubscriptionActivated message, length delimited. Does not implicitly {@link OrganizationSubscriptionActivated.verify|verify} messages.
|
|
31159
|
+
* @param message OrganizationSubscriptionActivated message or plain object to encode
|
|
31160
|
+
* @param [writer] Writer to encode to
|
|
31161
|
+
* @returns Writer
|
|
31162
|
+
*/
|
|
31163
|
+
public static encodeDelimited(message: IOrganizationSubscriptionActivated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31164
|
+
|
|
31165
|
+
/**
|
|
31166
|
+
* Decodes an OrganizationSubscriptionActivated message from the specified reader or buffer.
|
|
31167
|
+
* @param reader Reader or buffer to decode from
|
|
31168
|
+
* @param [length] Message length if known beforehand
|
|
31169
|
+
* @returns OrganizationSubscriptionActivated
|
|
31170
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31171
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31172
|
+
*/
|
|
31173
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationSubscriptionActivated;
|
|
31174
|
+
|
|
31175
|
+
/**
|
|
31176
|
+
* Decodes an OrganizationSubscriptionActivated message from the specified reader or buffer, length delimited.
|
|
31177
|
+
* @param reader Reader or buffer to decode from
|
|
31178
|
+
* @returns OrganizationSubscriptionActivated
|
|
31179
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31180
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31181
|
+
*/
|
|
31182
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationSubscriptionActivated;
|
|
31183
|
+
|
|
31184
|
+
/**
|
|
31185
|
+
* Verifies an OrganizationSubscriptionActivated message.
|
|
31186
|
+
* @param message Plain object to verify
|
|
31187
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
31188
|
+
*/
|
|
31189
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
31190
|
+
|
|
31191
|
+
/**
|
|
31192
|
+
* Creates an OrganizationSubscriptionActivated message from a plain object. Also converts values to their respective internal types.
|
|
31193
|
+
* @param object Plain object
|
|
31194
|
+
* @returns OrganizationSubscriptionActivated
|
|
31195
|
+
*/
|
|
31196
|
+
public static fromObject(object: { [k: string]: any }): OrganizationSubscriptionActivated;
|
|
31197
|
+
|
|
31198
|
+
/**
|
|
31199
|
+
* Creates a plain object from an OrganizationSubscriptionActivated message. Also converts values to other types if specified.
|
|
31200
|
+
* @param message OrganizationSubscriptionActivated
|
|
31201
|
+
* @param [options] Conversion options
|
|
31202
|
+
* @returns Plain object
|
|
31203
|
+
*/
|
|
31204
|
+
public static toObject(message: OrganizationSubscriptionActivated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
31205
|
+
|
|
31206
|
+
/**
|
|
31207
|
+
* Converts this OrganizationSubscriptionActivated to JSON.
|
|
31208
|
+
* @returns JSON object
|
|
31209
|
+
*/
|
|
31210
|
+
public toJSON(): { [k: string]: any };
|
|
31211
|
+
}
|
|
31212
|
+
|
|
31105
31213
|
/** Properties of a FamilyMemberAdded. */
|
|
31106
31214
|
export interface IFamilyMemberAdded {
|
|
31107
31215
|
|
|
@@ -32914,6 +33022,132 @@ export class ElfProcessingStats implements IElfProcessingStats {
|
|
|
32914
33022
|
public toJSON(): { [k: string]: any };
|
|
32915
33023
|
}
|
|
32916
33024
|
|
|
33025
|
+
/** Properties of an EnterpriseUserOnboarded. */
|
|
33026
|
+
export interface IEnterpriseUserOnboarded {
|
|
33027
|
+
|
|
33028
|
+
/** EnterpriseUserOnboarded keyType */
|
|
33029
|
+
keyType?: (KeyType|null);
|
|
33030
|
+
|
|
33031
|
+
/** EnterpriseUserOnboarded workId */
|
|
33032
|
+
workId?: (string|null);
|
|
33033
|
+
|
|
33034
|
+
/** EnterpriseUserOnboarded workEmail */
|
|
33035
|
+
workEmail?: (string|null);
|
|
33036
|
+
|
|
33037
|
+
/** EnterpriseUserOnboarded hsUserId */
|
|
33038
|
+
hsUserId?: (string|null);
|
|
33039
|
+
|
|
33040
|
+
/** EnterpriseUserOnboarded orgId */
|
|
33041
|
+
orgId?: (number|null);
|
|
33042
|
+
|
|
33043
|
+
/** EnterpriseUserOnboarded headspaceHealthOrgId */
|
|
33044
|
+
headspaceHealthOrgId?: (string|null);
|
|
33045
|
+
|
|
33046
|
+
/** EnterpriseUserOnboarded recommendedOffering */
|
|
33047
|
+
recommendedOffering?: (b2b.SubscriptionOffering|null);
|
|
33048
|
+
}
|
|
33049
|
+
|
|
33050
|
+
/** Represents an EnterpriseUserOnboarded. */
|
|
33051
|
+
export class EnterpriseUserOnboarded implements IEnterpriseUserOnboarded {
|
|
33052
|
+
|
|
33053
|
+
/**
|
|
33054
|
+
* Constructs a new EnterpriseUserOnboarded.
|
|
33055
|
+
* @param [properties] Properties to set
|
|
33056
|
+
*/
|
|
33057
|
+
constructor(properties?: IEnterpriseUserOnboarded);
|
|
33058
|
+
|
|
33059
|
+
/** EnterpriseUserOnboarded keyType. */
|
|
33060
|
+
public keyType: KeyType;
|
|
33061
|
+
|
|
33062
|
+
/** EnterpriseUserOnboarded workId. */
|
|
33063
|
+
public workId: string;
|
|
33064
|
+
|
|
33065
|
+
/** EnterpriseUserOnboarded workEmail. */
|
|
33066
|
+
public workEmail: string;
|
|
33067
|
+
|
|
33068
|
+
/** EnterpriseUserOnboarded hsUserId. */
|
|
33069
|
+
public hsUserId: string;
|
|
33070
|
+
|
|
33071
|
+
/** EnterpriseUserOnboarded orgId. */
|
|
33072
|
+
public orgId: number;
|
|
33073
|
+
|
|
33074
|
+
/** EnterpriseUserOnboarded headspaceHealthOrgId. */
|
|
33075
|
+
public headspaceHealthOrgId: string;
|
|
33076
|
+
|
|
33077
|
+
/** EnterpriseUserOnboarded recommendedOffering. */
|
|
33078
|
+
public recommendedOffering: b2b.SubscriptionOffering;
|
|
33079
|
+
|
|
33080
|
+
/**
|
|
33081
|
+
* Creates a new EnterpriseUserOnboarded instance using the specified properties.
|
|
33082
|
+
* @param [properties] Properties to set
|
|
33083
|
+
* @returns EnterpriseUserOnboarded instance
|
|
33084
|
+
*/
|
|
33085
|
+
public static create(properties?: IEnterpriseUserOnboarded): EnterpriseUserOnboarded;
|
|
33086
|
+
|
|
33087
|
+
/**
|
|
33088
|
+
* Encodes the specified EnterpriseUserOnboarded message. Does not implicitly {@link EnterpriseUserOnboarded.verify|verify} messages.
|
|
33089
|
+
* @param message EnterpriseUserOnboarded message or plain object to encode
|
|
33090
|
+
* @param [writer] Writer to encode to
|
|
33091
|
+
* @returns Writer
|
|
33092
|
+
*/
|
|
33093
|
+
public static encode(message: IEnterpriseUserOnboarded, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
33094
|
+
|
|
33095
|
+
/**
|
|
33096
|
+
* Encodes the specified EnterpriseUserOnboarded message, length delimited. Does not implicitly {@link EnterpriseUserOnboarded.verify|verify} messages.
|
|
33097
|
+
* @param message EnterpriseUserOnboarded message or plain object to encode
|
|
33098
|
+
* @param [writer] Writer to encode to
|
|
33099
|
+
* @returns Writer
|
|
33100
|
+
*/
|
|
33101
|
+
public static encodeDelimited(message: IEnterpriseUserOnboarded, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
33102
|
+
|
|
33103
|
+
/**
|
|
33104
|
+
* Decodes an EnterpriseUserOnboarded message from the specified reader or buffer.
|
|
33105
|
+
* @param reader Reader or buffer to decode from
|
|
33106
|
+
* @param [length] Message length if known beforehand
|
|
33107
|
+
* @returns EnterpriseUserOnboarded
|
|
33108
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33109
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33110
|
+
*/
|
|
33111
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): EnterpriseUserOnboarded;
|
|
33112
|
+
|
|
33113
|
+
/**
|
|
33114
|
+
* Decodes an EnterpriseUserOnboarded message from the specified reader or buffer, length delimited.
|
|
33115
|
+
* @param reader Reader or buffer to decode from
|
|
33116
|
+
* @returns EnterpriseUserOnboarded
|
|
33117
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33118
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33119
|
+
*/
|
|
33120
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): EnterpriseUserOnboarded;
|
|
33121
|
+
|
|
33122
|
+
/**
|
|
33123
|
+
* Verifies an EnterpriseUserOnboarded message.
|
|
33124
|
+
* @param message Plain object to verify
|
|
33125
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
33126
|
+
*/
|
|
33127
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
33128
|
+
|
|
33129
|
+
/**
|
|
33130
|
+
* Creates an EnterpriseUserOnboarded message from a plain object. Also converts values to their respective internal types.
|
|
33131
|
+
* @param object Plain object
|
|
33132
|
+
* @returns EnterpriseUserOnboarded
|
|
33133
|
+
*/
|
|
33134
|
+
public static fromObject(object: { [k: string]: any }): EnterpriseUserOnboarded;
|
|
33135
|
+
|
|
33136
|
+
/**
|
|
33137
|
+
* Creates a plain object from an EnterpriseUserOnboarded message. Also converts values to other types if specified.
|
|
33138
|
+
* @param message EnterpriseUserOnboarded
|
|
33139
|
+
* @param [options] Conversion options
|
|
33140
|
+
* @returns Plain object
|
|
33141
|
+
*/
|
|
33142
|
+
public static toObject(message: EnterpriseUserOnboarded, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
33143
|
+
|
|
33144
|
+
/**
|
|
33145
|
+
* Converts this EnterpriseUserOnboarded to JSON.
|
|
33146
|
+
* @returns JSON object
|
|
33147
|
+
*/
|
|
33148
|
+
public toJSON(): { [k: string]: any };
|
|
33149
|
+
}
|
|
33150
|
+
|
|
32917
33151
|
/** Properties of an EnterpriseUserEnrollmentCreated. */
|
|
32918
33152
|
export interface IEnterpriseUserEnrollmentCreated {
|
|
32919
33153
|
|
package/lib/index.js
CHANGED
|
@@ -86267,6 +86267,284 @@ $root.OrganizationSubscriptionAmended = (function() {
|
|
|
86267
86267
|
return OrganizationSubscriptionAmended;
|
|
86268
86268
|
})();
|
|
86269
86269
|
|
|
86270
|
+
$root.OrganizationSubscriptionActivated = (function() {
|
|
86271
|
+
|
|
86272
|
+
/**
|
|
86273
|
+
* Properties of an OrganizationSubscriptionActivated.
|
|
86274
|
+
* @exports IOrganizationSubscriptionActivated
|
|
86275
|
+
* @interface IOrganizationSubscriptionActivated
|
|
86276
|
+
* @property {number|Long|null} [timestamp] OrganizationSubscriptionActivated timestamp
|
|
86277
|
+
* @property {number|null} [dashboardUserId] OrganizationSubscriptionActivated dashboardUserId
|
|
86278
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionActivated organization
|
|
86279
|
+
* @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionActivated subscription
|
|
86280
|
+
*/
|
|
86281
|
+
|
|
86282
|
+
/**
|
|
86283
|
+
* Constructs a new OrganizationSubscriptionActivated.
|
|
86284
|
+
* @exports OrganizationSubscriptionActivated
|
|
86285
|
+
* @classdesc Represents an OrganizationSubscriptionActivated.
|
|
86286
|
+
* @implements IOrganizationSubscriptionActivated
|
|
86287
|
+
* @constructor
|
|
86288
|
+
* @param {IOrganizationSubscriptionActivated=} [properties] Properties to set
|
|
86289
|
+
*/
|
|
86290
|
+
function OrganizationSubscriptionActivated(properties) {
|
|
86291
|
+
if (properties)
|
|
86292
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86293
|
+
if (properties[keys[i]] != null)
|
|
86294
|
+
this[keys[i]] = properties[keys[i]];
|
|
86295
|
+
}
|
|
86296
|
+
|
|
86297
|
+
/**
|
|
86298
|
+
* OrganizationSubscriptionActivated timestamp.
|
|
86299
|
+
* @member {number|Long} timestamp
|
|
86300
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86301
|
+
* @instance
|
|
86302
|
+
*/
|
|
86303
|
+
OrganizationSubscriptionActivated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
86304
|
+
|
|
86305
|
+
/**
|
|
86306
|
+
* OrganizationSubscriptionActivated dashboardUserId.
|
|
86307
|
+
* @member {number} dashboardUserId
|
|
86308
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86309
|
+
* @instance
|
|
86310
|
+
*/
|
|
86311
|
+
OrganizationSubscriptionActivated.prototype.dashboardUserId = 0;
|
|
86312
|
+
|
|
86313
|
+
/**
|
|
86314
|
+
* OrganizationSubscriptionActivated organization.
|
|
86315
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
86316
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86317
|
+
* @instance
|
|
86318
|
+
*/
|
|
86319
|
+
OrganizationSubscriptionActivated.prototype.organization = null;
|
|
86320
|
+
|
|
86321
|
+
/**
|
|
86322
|
+
* OrganizationSubscriptionActivated subscription.
|
|
86323
|
+
* @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
|
|
86324
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86325
|
+
* @instance
|
|
86326
|
+
*/
|
|
86327
|
+
OrganizationSubscriptionActivated.prototype.subscription = null;
|
|
86328
|
+
|
|
86329
|
+
/**
|
|
86330
|
+
* Creates a new OrganizationSubscriptionActivated instance using the specified properties.
|
|
86331
|
+
* @function create
|
|
86332
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86333
|
+
* @static
|
|
86334
|
+
* @param {IOrganizationSubscriptionActivated=} [properties] Properties to set
|
|
86335
|
+
* @returns {OrganizationSubscriptionActivated} OrganizationSubscriptionActivated instance
|
|
86336
|
+
*/
|
|
86337
|
+
OrganizationSubscriptionActivated.create = function create(properties) {
|
|
86338
|
+
return new OrganizationSubscriptionActivated(properties);
|
|
86339
|
+
};
|
|
86340
|
+
|
|
86341
|
+
/**
|
|
86342
|
+
* Encodes the specified OrganizationSubscriptionActivated message. Does not implicitly {@link OrganizationSubscriptionActivated.verify|verify} messages.
|
|
86343
|
+
* @function encode
|
|
86344
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86345
|
+
* @static
|
|
86346
|
+
* @param {IOrganizationSubscriptionActivated} message OrganizationSubscriptionActivated message or plain object to encode
|
|
86347
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86348
|
+
* @returns {$protobuf.Writer} Writer
|
|
86349
|
+
*/
|
|
86350
|
+
OrganizationSubscriptionActivated.encode = function encode(message, writer) {
|
|
86351
|
+
if (!writer)
|
|
86352
|
+
writer = $Writer.create();
|
|
86353
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
86354
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
86355
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
86356
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
|
|
86357
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
86358
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
86359
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
86360
|
+
$root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
86361
|
+
return writer;
|
|
86362
|
+
};
|
|
86363
|
+
|
|
86364
|
+
/**
|
|
86365
|
+
* Encodes the specified OrganizationSubscriptionActivated message, length delimited. Does not implicitly {@link OrganizationSubscriptionActivated.verify|verify} messages.
|
|
86366
|
+
* @function encodeDelimited
|
|
86367
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86368
|
+
* @static
|
|
86369
|
+
* @param {IOrganizationSubscriptionActivated} message OrganizationSubscriptionActivated message or plain object to encode
|
|
86370
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86371
|
+
* @returns {$protobuf.Writer} Writer
|
|
86372
|
+
*/
|
|
86373
|
+
OrganizationSubscriptionActivated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86374
|
+
return this.encode(message, writer).ldelim();
|
|
86375
|
+
};
|
|
86376
|
+
|
|
86377
|
+
/**
|
|
86378
|
+
* Decodes an OrganizationSubscriptionActivated message from the specified reader or buffer.
|
|
86379
|
+
* @function decode
|
|
86380
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86381
|
+
* @static
|
|
86382
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86383
|
+
* @param {number} [length] Message length if known beforehand
|
|
86384
|
+
* @returns {OrganizationSubscriptionActivated} OrganizationSubscriptionActivated
|
|
86385
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86386
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86387
|
+
*/
|
|
86388
|
+
OrganizationSubscriptionActivated.decode = function decode(reader, length) {
|
|
86389
|
+
if (!(reader instanceof $Reader))
|
|
86390
|
+
reader = $Reader.create(reader);
|
|
86391
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionActivated();
|
|
86392
|
+
while (reader.pos < end) {
|
|
86393
|
+
var tag = reader.uint32();
|
|
86394
|
+
switch (tag >>> 3) {
|
|
86395
|
+
case 1:
|
|
86396
|
+
message.timestamp = reader.uint64();
|
|
86397
|
+
break;
|
|
86398
|
+
case 2:
|
|
86399
|
+
message.dashboardUserId = reader.uint32();
|
|
86400
|
+
break;
|
|
86401
|
+
case 3:
|
|
86402
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
86403
|
+
break;
|
|
86404
|
+
case 4:
|
|
86405
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
|
|
86406
|
+
break;
|
|
86407
|
+
default:
|
|
86408
|
+
reader.skipType(tag & 7);
|
|
86409
|
+
break;
|
|
86410
|
+
}
|
|
86411
|
+
}
|
|
86412
|
+
return message;
|
|
86413
|
+
};
|
|
86414
|
+
|
|
86415
|
+
/**
|
|
86416
|
+
* Decodes an OrganizationSubscriptionActivated message from the specified reader or buffer, length delimited.
|
|
86417
|
+
* @function decodeDelimited
|
|
86418
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86419
|
+
* @static
|
|
86420
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86421
|
+
* @returns {OrganizationSubscriptionActivated} OrganizationSubscriptionActivated
|
|
86422
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86423
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86424
|
+
*/
|
|
86425
|
+
OrganizationSubscriptionActivated.decodeDelimited = function decodeDelimited(reader) {
|
|
86426
|
+
if (!(reader instanceof $Reader))
|
|
86427
|
+
reader = new $Reader(reader);
|
|
86428
|
+
return this.decode(reader, reader.uint32());
|
|
86429
|
+
};
|
|
86430
|
+
|
|
86431
|
+
/**
|
|
86432
|
+
* Verifies an OrganizationSubscriptionActivated message.
|
|
86433
|
+
* @function verify
|
|
86434
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86435
|
+
* @static
|
|
86436
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
86437
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86438
|
+
*/
|
|
86439
|
+
OrganizationSubscriptionActivated.verify = function verify(message) {
|
|
86440
|
+
if (typeof message !== "object" || message === null)
|
|
86441
|
+
return "object expected";
|
|
86442
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
86443
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
86444
|
+
return "timestamp: integer|Long expected";
|
|
86445
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
86446
|
+
if (!$util.isInteger(message.dashboardUserId))
|
|
86447
|
+
return "dashboardUserId: integer expected";
|
|
86448
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
86449
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
86450
|
+
if (error)
|
|
86451
|
+
return "organization." + error;
|
|
86452
|
+
}
|
|
86453
|
+
if (message.subscription != null && message.hasOwnProperty("subscription")) {
|
|
86454
|
+
var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
|
|
86455
|
+
if (error)
|
|
86456
|
+
return "subscription." + error;
|
|
86457
|
+
}
|
|
86458
|
+
return null;
|
|
86459
|
+
};
|
|
86460
|
+
|
|
86461
|
+
/**
|
|
86462
|
+
* Creates an OrganizationSubscriptionActivated message from a plain object. Also converts values to their respective internal types.
|
|
86463
|
+
* @function fromObject
|
|
86464
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86465
|
+
* @static
|
|
86466
|
+
* @param {Object.<string,*>} object Plain object
|
|
86467
|
+
* @returns {OrganizationSubscriptionActivated} OrganizationSubscriptionActivated
|
|
86468
|
+
*/
|
|
86469
|
+
OrganizationSubscriptionActivated.fromObject = function fromObject(object) {
|
|
86470
|
+
if (object instanceof $root.OrganizationSubscriptionActivated)
|
|
86471
|
+
return object;
|
|
86472
|
+
var message = new $root.OrganizationSubscriptionActivated();
|
|
86473
|
+
if (object.timestamp != null)
|
|
86474
|
+
if ($util.Long)
|
|
86475
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
86476
|
+
else if (typeof object.timestamp === "string")
|
|
86477
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
86478
|
+
else if (typeof object.timestamp === "number")
|
|
86479
|
+
message.timestamp = object.timestamp;
|
|
86480
|
+
else if (typeof object.timestamp === "object")
|
|
86481
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
86482
|
+
if (object.dashboardUserId != null)
|
|
86483
|
+
message.dashboardUserId = object.dashboardUserId >>> 0;
|
|
86484
|
+
if (object.organization != null) {
|
|
86485
|
+
if (typeof object.organization !== "object")
|
|
86486
|
+
throw TypeError(".OrganizationSubscriptionActivated.organization: object expected");
|
|
86487
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
86488
|
+
}
|
|
86489
|
+
if (object.subscription != null) {
|
|
86490
|
+
if (typeof object.subscription !== "object")
|
|
86491
|
+
throw TypeError(".OrganizationSubscriptionActivated.subscription: object expected");
|
|
86492
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
|
|
86493
|
+
}
|
|
86494
|
+
return message;
|
|
86495
|
+
};
|
|
86496
|
+
|
|
86497
|
+
/**
|
|
86498
|
+
* Creates a plain object from an OrganizationSubscriptionActivated message. Also converts values to other types if specified.
|
|
86499
|
+
* @function toObject
|
|
86500
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86501
|
+
* @static
|
|
86502
|
+
* @param {OrganizationSubscriptionActivated} message OrganizationSubscriptionActivated
|
|
86503
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86504
|
+
* @returns {Object.<string,*>} Plain object
|
|
86505
|
+
*/
|
|
86506
|
+
OrganizationSubscriptionActivated.toObject = function toObject(message, options) {
|
|
86507
|
+
if (!options)
|
|
86508
|
+
options = {};
|
|
86509
|
+
var object = {};
|
|
86510
|
+
if (options.defaults) {
|
|
86511
|
+
if ($util.Long) {
|
|
86512
|
+
var long = new $util.Long(0, 0, true);
|
|
86513
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
86514
|
+
} else
|
|
86515
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
86516
|
+
object.dashboardUserId = 0;
|
|
86517
|
+
object.organization = null;
|
|
86518
|
+
object.subscription = null;
|
|
86519
|
+
}
|
|
86520
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
86521
|
+
if (typeof message.timestamp === "number")
|
|
86522
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
86523
|
+
else
|
|
86524
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
86525
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
86526
|
+
object.dashboardUserId = message.dashboardUserId;
|
|
86527
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
86528
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
86529
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
86530
|
+
object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
|
|
86531
|
+
return object;
|
|
86532
|
+
};
|
|
86533
|
+
|
|
86534
|
+
/**
|
|
86535
|
+
* Converts this OrganizationSubscriptionActivated to JSON.
|
|
86536
|
+
* @function toJSON
|
|
86537
|
+
* @memberof OrganizationSubscriptionActivated
|
|
86538
|
+
* @instance
|
|
86539
|
+
* @returns {Object.<string,*>} JSON object
|
|
86540
|
+
*/
|
|
86541
|
+
OrganizationSubscriptionActivated.prototype.toJSON = function toJSON() {
|
|
86542
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86543
|
+
};
|
|
86544
|
+
|
|
86545
|
+
return OrganizationSubscriptionActivated;
|
|
86546
|
+
})();
|
|
86547
|
+
|
|
86270
86548
|
$root.FamilyMemberAdded = (function() {
|
|
86271
86549
|
|
|
86272
86550
|
/**
|
|
@@ -91335,6 +91613,357 @@ $root.ElfProcessingStats = (function() {
|
|
|
91335
91613
|
return ElfProcessingStats;
|
|
91336
91614
|
})();
|
|
91337
91615
|
|
|
91616
|
+
$root.EnterpriseUserOnboarded = (function() {
|
|
91617
|
+
|
|
91618
|
+
/**
|
|
91619
|
+
* Properties of an EnterpriseUserOnboarded.
|
|
91620
|
+
* @exports IEnterpriseUserOnboarded
|
|
91621
|
+
* @interface IEnterpriseUserOnboarded
|
|
91622
|
+
* @property {KeyType|null} [keyType] EnterpriseUserOnboarded keyType
|
|
91623
|
+
* @property {string|null} [workId] EnterpriseUserOnboarded workId
|
|
91624
|
+
* @property {string|null} [workEmail] EnterpriseUserOnboarded workEmail
|
|
91625
|
+
* @property {string|null} [hsUserId] EnterpriseUserOnboarded hsUserId
|
|
91626
|
+
* @property {number|null} [orgId] EnterpriseUserOnboarded orgId
|
|
91627
|
+
* @property {string|null} [headspaceHealthOrgId] EnterpriseUserOnboarded headspaceHealthOrgId
|
|
91628
|
+
* @property {b2b.SubscriptionOffering|null} [recommendedOffering] EnterpriseUserOnboarded recommendedOffering
|
|
91629
|
+
*/
|
|
91630
|
+
|
|
91631
|
+
/**
|
|
91632
|
+
* Constructs a new EnterpriseUserOnboarded.
|
|
91633
|
+
* @exports EnterpriseUserOnboarded
|
|
91634
|
+
* @classdesc Represents an EnterpriseUserOnboarded.
|
|
91635
|
+
* @implements IEnterpriseUserOnboarded
|
|
91636
|
+
* @constructor
|
|
91637
|
+
* @param {IEnterpriseUserOnboarded=} [properties] Properties to set
|
|
91638
|
+
*/
|
|
91639
|
+
function EnterpriseUserOnboarded(properties) {
|
|
91640
|
+
if (properties)
|
|
91641
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91642
|
+
if (properties[keys[i]] != null)
|
|
91643
|
+
this[keys[i]] = properties[keys[i]];
|
|
91644
|
+
}
|
|
91645
|
+
|
|
91646
|
+
/**
|
|
91647
|
+
* EnterpriseUserOnboarded keyType.
|
|
91648
|
+
* @member {KeyType} keyType
|
|
91649
|
+
* @memberof EnterpriseUserOnboarded
|
|
91650
|
+
* @instance
|
|
91651
|
+
*/
|
|
91652
|
+
EnterpriseUserOnboarded.prototype.keyType = 0;
|
|
91653
|
+
|
|
91654
|
+
/**
|
|
91655
|
+
* EnterpriseUserOnboarded workId.
|
|
91656
|
+
* @member {string} workId
|
|
91657
|
+
* @memberof EnterpriseUserOnboarded
|
|
91658
|
+
* @instance
|
|
91659
|
+
*/
|
|
91660
|
+
EnterpriseUserOnboarded.prototype.workId = "";
|
|
91661
|
+
|
|
91662
|
+
/**
|
|
91663
|
+
* EnterpriseUserOnboarded workEmail.
|
|
91664
|
+
* @member {string} workEmail
|
|
91665
|
+
* @memberof EnterpriseUserOnboarded
|
|
91666
|
+
* @instance
|
|
91667
|
+
*/
|
|
91668
|
+
EnterpriseUserOnboarded.prototype.workEmail = "";
|
|
91669
|
+
|
|
91670
|
+
/**
|
|
91671
|
+
* EnterpriseUserOnboarded hsUserId.
|
|
91672
|
+
* @member {string} hsUserId
|
|
91673
|
+
* @memberof EnterpriseUserOnboarded
|
|
91674
|
+
* @instance
|
|
91675
|
+
*/
|
|
91676
|
+
EnterpriseUserOnboarded.prototype.hsUserId = "";
|
|
91677
|
+
|
|
91678
|
+
/**
|
|
91679
|
+
* EnterpriseUserOnboarded orgId.
|
|
91680
|
+
* @member {number} orgId
|
|
91681
|
+
* @memberof EnterpriseUserOnboarded
|
|
91682
|
+
* @instance
|
|
91683
|
+
*/
|
|
91684
|
+
EnterpriseUserOnboarded.prototype.orgId = 0;
|
|
91685
|
+
|
|
91686
|
+
/**
|
|
91687
|
+
* EnterpriseUserOnboarded headspaceHealthOrgId.
|
|
91688
|
+
* @member {string} headspaceHealthOrgId
|
|
91689
|
+
* @memberof EnterpriseUserOnboarded
|
|
91690
|
+
* @instance
|
|
91691
|
+
*/
|
|
91692
|
+
EnterpriseUserOnboarded.prototype.headspaceHealthOrgId = "";
|
|
91693
|
+
|
|
91694
|
+
/**
|
|
91695
|
+
* EnterpriseUserOnboarded recommendedOffering.
|
|
91696
|
+
* @member {b2b.SubscriptionOffering} recommendedOffering
|
|
91697
|
+
* @memberof EnterpriseUserOnboarded
|
|
91698
|
+
* @instance
|
|
91699
|
+
*/
|
|
91700
|
+
EnterpriseUserOnboarded.prototype.recommendedOffering = 0;
|
|
91701
|
+
|
|
91702
|
+
/**
|
|
91703
|
+
* Creates a new EnterpriseUserOnboarded instance using the specified properties.
|
|
91704
|
+
* @function create
|
|
91705
|
+
* @memberof EnterpriseUserOnboarded
|
|
91706
|
+
* @static
|
|
91707
|
+
* @param {IEnterpriseUserOnboarded=} [properties] Properties to set
|
|
91708
|
+
* @returns {EnterpriseUserOnboarded} EnterpriseUserOnboarded instance
|
|
91709
|
+
*/
|
|
91710
|
+
EnterpriseUserOnboarded.create = function create(properties) {
|
|
91711
|
+
return new EnterpriseUserOnboarded(properties);
|
|
91712
|
+
};
|
|
91713
|
+
|
|
91714
|
+
/**
|
|
91715
|
+
* Encodes the specified EnterpriseUserOnboarded message. Does not implicitly {@link EnterpriseUserOnboarded.verify|verify} messages.
|
|
91716
|
+
* @function encode
|
|
91717
|
+
* @memberof EnterpriseUserOnboarded
|
|
91718
|
+
* @static
|
|
91719
|
+
* @param {IEnterpriseUserOnboarded} message EnterpriseUserOnboarded message or plain object to encode
|
|
91720
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91721
|
+
* @returns {$protobuf.Writer} Writer
|
|
91722
|
+
*/
|
|
91723
|
+
EnterpriseUserOnboarded.encode = function encode(message, writer) {
|
|
91724
|
+
if (!writer)
|
|
91725
|
+
writer = $Writer.create();
|
|
91726
|
+
if (message.keyType != null && message.hasOwnProperty("keyType"))
|
|
91727
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.keyType);
|
|
91728
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
91729
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.workId);
|
|
91730
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
91731
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.workEmail);
|
|
91732
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91733
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.hsUserId);
|
|
91734
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
91735
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.orgId);
|
|
91736
|
+
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
91737
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.headspaceHealthOrgId);
|
|
91738
|
+
if (message.recommendedOffering != null && message.hasOwnProperty("recommendedOffering"))
|
|
91739
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.recommendedOffering);
|
|
91740
|
+
return writer;
|
|
91741
|
+
};
|
|
91742
|
+
|
|
91743
|
+
/**
|
|
91744
|
+
* Encodes the specified EnterpriseUserOnboarded message, length delimited. Does not implicitly {@link EnterpriseUserOnboarded.verify|verify} messages.
|
|
91745
|
+
* @function encodeDelimited
|
|
91746
|
+
* @memberof EnterpriseUserOnboarded
|
|
91747
|
+
* @static
|
|
91748
|
+
* @param {IEnterpriseUserOnboarded} message EnterpriseUserOnboarded message or plain object to encode
|
|
91749
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91750
|
+
* @returns {$protobuf.Writer} Writer
|
|
91751
|
+
*/
|
|
91752
|
+
EnterpriseUserOnboarded.encodeDelimited = function encodeDelimited(message, writer) {
|
|
91753
|
+
return this.encode(message, writer).ldelim();
|
|
91754
|
+
};
|
|
91755
|
+
|
|
91756
|
+
/**
|
|
91757
|
+
* Decodes an EnterpriseUserOnboarded message from the specified reader or buffer.
|
|
91758
|
+
* @function decode
|
|
91759
|
+
* @memberof EnterpriseUserOnboarded
|
|
91760
|
+
* @static
|
|
91761
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91762
|
+
* @param {number} [length] Message length if known beforehand
|
|
91763
|
+
* @returns {EnterpriseUserOnboarded} EnterpriseUserOnboarded
|
|
91764
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91765
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91766
|
+
*/
|
|
91767
|
+
EnterpriseUserOnboarded.decode = function decode(reader, length) {
|
|
91768
|
+
if (!(reader instanceof $Reader))
|
|
91769
|
+
reader = $Reader.create(reader);
|
|
91770
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EnterpriseUserOnboarded();
|
|
91771
|
+
while (reader.pos < end) {
|
|
91772
|
+
var tag = reader.uint32();
|
|
91773
|
+
switch (tag >>> 3) {
|
|
91774
|
+
case 1:
|
|
91775
|
+
message.keyType = reader.int32();
|
|
91776
|
+
break;
|
|
91777
|
+
case 2:
|
|
91778
|
+
message.workId = reader.string();
|
|
91779
|
+
break;
|
|
91780
|
+
case 3:
|
|
91781
|
+
message.workEmail = reader.string();
|
|
91782
|
+
break;
|
|
91783
|
+
case 4:
|
|
91784
|
+
message.hsUserId = reader.string();
|
|
91785
|
+
break;
|
|
91786
|
+
case 5:
|
|
91787
|
+
message.orgId = reader.uint32();
|
|
91788
|
+
break;
|
|
91789
|
+
case 6:
|
|
91790
|
+
message.headspaceHealthOrgId = reader.string();
|
|
91791
|
+
break;
|
|
91792
|
+
case 7:
|
|
91793
|
+
message.recommendedOffering = reader.int32();
|
|
91794
|
+
break;
|
|
91795
|
+
default:
|
|
91796
|
+
reader.skipType(tag & 7);
|
|
91797
|
+
break;
|
|
91798
|
+
}
|
|
91799
|
+
}
|
|
91800
|
+
return message;
|
|
91801
|
+
};
|
|
91802
|
+
|
|
91803
|
+
/**
|
|
91804
|
+
* Decodes an EnterpriseUserOnboarded message from the specified reader or buffer, length delimited.
|
|
91805
|
+
* @function decodeDelimited
|
|
91806
|
+
* @memberof EnterpriseUserOnboarded
|
|
91807
|
+
* @static
|
|
91808
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91809
|
+
* @returns {EnterpriseUserOnboarded} EnterpriseUserOnboarded
|
|
91810
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91811
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91812
|
+
*/
|
|
91813
|
+
EnterpriseUserOnboarded.decodeDelimited = function decodeDelimited(reader) {
|
|
91814
|
+
if (!(reader instanceof $Reader))
|
|
91815
|
+
reader = new $Reader(reader);
|
|
91816
|
+
return this.decode(reader, reader.uint32());
|
|
91817
|
+
};
|
|
91818
|
+
|
|
91819
|
+
/**
|
|
91820
|
+
* Verifies an EnterpriseUserOnboarded message.
|
|
91821
|
+
* @function verify
|
|
91822
|
+
* @memberof EnterpriseUserOnboarded
|
|
91823
|
+
* @static
|
|
91824
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
91825
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
91826
|
+
*/
|
|
91827
|
+
EnterpriseUserOnboarded.verify = function verify(message) {
|
|
91828
|
+
if (typeof message !== "object" || message === null)
|
|
91829
|
+
return "object expected";
|
|
91830
|
+
if (message.keyType != null && message.hasOwnProperty("keyType"))
|
|
91831
|
+
switch (message.keyType) {
|
|
91832
|
+
default:
|
|
91833
|
+
return "keyType: enum value expected";
|
|
91834
|
+
case 0:
|
|
91835
|
+
case 1:
|
|
91836
|
+
break;
|
|
91837
|
+
}
|
|
91838
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
91839
|
+
if (!$util.isString(message.workId))
|
|
91840
|
+
return "workId: string expected";
|
|
91841
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
91842
|
+
if (!$util.isString(message.workEmail))
|
|
91843
|
+
return "workEmail: string expected";
|
|
91844
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91845
|
+
if (!$util.isString(message.hsUserId))
|
|
91846
|
+
return "hsUserId: string expected";
|
|
91847
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
91848
|
+
if (!$util.isInteger(message.orgId))
|
|
91849
|
+
return "orgId: integer expected";
|
|
91850
|
+
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
91851
|
+
if (!$util.isString(message.headspaceHealthOrgId))
|
|
91852
|
+
return "headspaceHealthOrgId: string expected";
|
|
91853
|
+
if (message.recommendedOffering != null && message.hasOwnProperty("recommendedOffering"))
|
|
91854
|
+
switch (message.recommendedOffering) {
|
|
91855
|
+
default:
|
|
91856
|
+
return "recommendedOffering: enum value expected";
|
|
91857
|
+
case 0:
|
|
91858
|
+
case 1:
|
|
91859
|
+
case 2:
|
|
91860
|
+
break;
|
|
91861
|
+
}
|
|
91862
|
+
return null;
|
|
91863
|
+
};
|
|
91864
|
+
|
|
91865
|
+
/**
|
|
91866
|
+
* Creates an EnterpriseUserOnboarded message from a plain object. Also converts values to their respective internal types.
|
|
91867
|
+
* @function fromObject
|
|
91868
|
+
* @memberof EnterpriseUserOnboarded
|
|
91869
|
+
* @static
|
|
91870
|
+
* @param {Object.<string,*>} object Plain object
|
|
91871
|
+
* @returns {EnterpriseUserOnboarded} EnterpriseUserOnboarded
|
|
91872
|
+
*/
|
|
91873
|
+
EnterpriseUserOnboarded.fromObject = function fromObject(object) {
|
|
91874
|
+
if (object instanceof $root.EnterpriseUserOnboarded)
|
|
91875
|
+
return object;
|
|
91876
|
+
var message = new $root.EnterpriseUserOnboarded();
|
|
91877
|
+
switch (object.keyType) {
|
|
91878
|
+
case "WORK_ID":
|
|
91879
|
+
case 0:
|
|
91880
|
+
message.keyType = 0;
|
|
91881
|
+
break;
|
|
91882
|
+
case "WORK_EMAIL":
|
|
91883
|
+
case 1:
|
|
91884
|
+
message.keyType = 1;
|
|
91885
|
+
break;
|
|
91886
|
+
}
|
|
91887
|
+
if (object.workId != null)
|
|
91888
|
+
message.workId = String(object.workId);
|
|
91889
|
+
if (object.workEmail != null)
|
|
91890
|
+
message.workEmail = String(object.workEmail);
|
|
91891
|
+
if (object.hsUserId != null)
|
|
91892
|
+
message.hsUserId = String(object.hsUserId);
|
|
91893
|
+
if (object.orgId != null)
|
|
91894
|
+
message.orgId = object.orgId >>> 0;
|
|
91895
|
+
if (object.headspaceHealthOrgId != null)
|
|
91896
|
+
message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
|
|
91897
|
+
switch (object.recommendedOffering) {
|
|
91898
|
+
case "SUBSCRIPTION_OFFERING_UNKNOWN":
|
|
91899
|
+
case 0:
|
|
91900
|
+
message.recommendedOffering = 0;
|
|
91901
|
+
break;
|
|
91902
|
+
case "SUBSCRIPTION_OFFERING_HEADSPACE":
|
|
91903
|
+
case 1:
|
|
91904
|
+
message.recommendedOffering = 1;
|
|
91905
|
+
break;
|
|
91906
|
+
case "SUBSCRIPTION_OFFERING_GINGER":
|
|
91907
|
+
case 2:
|
|
91908
|
+
message.recommendedOffering = 2;
|
|
91909
|
+
break;
|
|
91910
|
+
}
|
|
91911
|
+
return message;
|
|
91912
|
+
};
|
|
91913
|
+
|
|
91914
|
+
/**
|
|
91915
|
+
* Creates a plain object from an EnterpriseUserOnboarded message. Also converts values to other types if specified.
|
|
91916
|
+
* @function toObject
|
|
91917
|
+
* @memberof EnterpriseUserOnboarded
|
|
91918
|
+
* @static
|
|
91919
|
+
* @param {EnterpriseUserOnboarded} message EnterpriseUserOnboarded
|
|
91920
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
91921
|
+
* @returns {Object.<string,*>} Plain object
|
|
91922
|
+
*/
|
|
91923
|
+
EnterpriseUserOnboarded.toObject = function toObject(message, options) {
|
|
91924
|
+
if (!options)
|
|
91925
|
+
options = {};
|
|
91926
|
+
var object = {};
|
|
91927
|
+
if (options.defaults) {
|
|
91928
|
+
object.keyType = options.enums === String ? "WORK_ID" : 0;
|
|
91929
|
+
object.workId = "";
|
|
91930
|
+
object.workEmail = "";
|
|
91931
|
+
object.hsUserId = "";
|
|
91932
|
+
object.orgId = 0;
|
|
91933
|
+
object.headspaceHealthOrgId = "";
|
|
91934
|
+
object.recommendedOffering = options.enums === String ? "SUBSCRIPTION_OFFERING_UNKNOWN" : 0;
|
|
91935
|
+
}
|
|
91936
|
+
if (message.keyType != null && message.hasOwnProperty("keyType"))
|
|
91937
|
+
object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
|
|
91938
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
91939
|
+
object.workId = message.workId;
|
|
91940
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
91941
|
+
object.workEmail = message.workEmail;
|
|
91942
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91943
|
+
object.hsUserId = message.hsUserId;
|
|
91944
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
91945
|
+
object.orgId = message.orgId;
|
|
91946
|
+
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
91947
|
+
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
91948
|
+
if (message.recommendedOffering != null && message.hasOwnProperty("recommendedOffering"))
|
|
91949
|
+
object.recommendedOffering = options.enums === String ? $root.b2b.SubscriptionOffering[message.recommendedOffering] : message.recommendedOffering;
|
|
91950
|
+
return object;
|
|
91951
|
+
};
|
|
91952
|
+
|
|
91953
|
+
/**
|
|
91954
|
+
* Converts this EnterpriseUserOnboarded to JSON.
|
|
91955
|
+
* @function toJSON
|
|
91956
|
+
* @memberof EnterpriseUserOnboarded
|
|
91957
|
+
* @instance
|
|
91958
|
+
* @returns {Object.<string,*>} JSON object
|
|
91959
|
+
*/
|
|
91960
|
+
EnterpriseUserOnboarded.prototype.toJSON = function toJSON() {
|
|
91961
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
91962
|
+
};
|
|
91963
|
+
|
|
91964
|
+
return EnterpriseUserOnboarded;
|
|
91965
|
+
})();
|
|
91966
|
+
|
|
91338
91967
|
$root.EnterpriseUserEnrollmentCreated = (function() {
|
|
91339
91968
|
|
|
91340
91969
|
/**
|
package/package.json
CHANGED