@headspace/protos-events 1.403.0 → 1.405.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 +18 -114
- package/lib/index.js +110 -289
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10031,6 +10031,9 @@ export namespace b2b {
|
|
|
10031
10031
|
|
|
10032
10032
|
/** Organization mfaEnabled */
|
|
10033
10033
|
mfaEnabled?: (boolean|null);
|
|
10034
|
+
|
|
10035
|
+
/** Organization orgSlug */
|
|
10036
|
+
orgSlug?: (string|null);
|
|
10034
10037
|
}
|
|
10035
10038
|
|
|
10036
10039
|
/** Represents an Organization. */
|
|
@@ -10078,6 +10081,9 @@ export namespace b2b {
|
|
|
10078
10081
|
/** Organization mfaEnabled. */
|
|
10079
10082
|
public mfaEnabled: boolean;
|
|
10080
10083
|
|
|
10084
|
+
/** Organization orgSlug. */
|
|
10085
|
+
public orgSlug: string;
|
|
10086
|
+
|
|
10081
10087
|
/**
|
|
10082
10088
|
* Creates a new Organization instance using the specified properties.
|
|
10083
10089
|
* @param [properties] Properties to set
|
|
@@ -10167,9 +10173,6 @@ export namespace b2b {
|
|
|
10167
10173
|
/** B2BSubscriptionManagement dependentsPerEmployee */
|
|
10168
10174
|
dependentsPerEmployee?: (number|Long|null);
|
|
10169
10175
|
|
|
10170
|
-
/** B2BSubscriptionManagement dependentSeats */
|
|
10171
|
-
dependentSeats?: (number|Long|null);
|
|
10172
|
-
|
|
10173
10176
|
/** B2BSubscriptionManagement isPartialPay */
|
|
10174
10177
|
isPartialPay?: (boolean|null);
|
|
10175
10178
|
|
|
@@ -10178,6 +10181,12 @@ export namespace b2b {
|
|
|
10178
10181
|
|
|
10179
10182
|
/** B2BSubscriptionManagement orgSubscriptionId */
|
|
10180
10183
|
orgSubscriptionId?: (number|null);
|
|
10184
|
+
|
|
10185
|
+
/** B2BSubscriptionManagement dependentSeats */
|
|
10186
|
+
dependentSeats?: (number|Long|null);
|
|
10187
|
+
|
|
10188
|
+
/** B2BSubscriptionManagement offerings */
|
|
10189
|
+
offerings?: (b2b.SubscriptionOffering[]|null);
|
|
10181
10190
|
}
|
|
10182
10191
|
|
|
10183
10192
|
/** Represents a B2BSubscriptionManagement. */
|
|
@@ -10204,9 +10213,6 @@ export namespace b2b {
|
|
|
10204
10213
|
/** B2BSubscriptionManagement dependentsPerEmployee. */
|
|
10205
10214
|
public dependentsPerEmployee: (number|Long);
|
|
10206
10215
|
|
|
10207
|
-
/** B2BSubscriptionManagement dependentSeats. */
|
|
10208
|
-
public dependentSeats: (number|Long);
|
|
10209
|
-
|
|
10210
10216
|
/** B2BSubscriptionManagement isPartialPay. */
|
|
10211
10217
|
public isPartialPay: boolean;
|
|
10212
10218
|
|
|
@@ -10216,6 +10222,12 @@ export namespace b2b {
|
|
|
10216
10222
|
/** B2BSubscriptionManagement orgSubscriptionId. */
|
|
10217
10223
|
public orgSubscriptionId: number;
|
|
10218
10224
|
|
|
10225
|
+
/** B2BSubscriptionManagement dependentSeats. */
|
|
10226
|
+
public dependentSeats: (number|Long);
|
|
10227
|
+
|
|
10228
|
+
/** B2BSubscriptionManagement offerings. */
|
|
10229
|
+
public offerings: b2b.SubscriptionOffering[];
|
|
10230
|
+
|
|
10219
10231
|
/**
|
|
10220
10232
|
* Creates a new B2BSubscriptionManagement instance using the specified properties.
|
|
10221
10233
|
* @param [properties] Properties to set
|
|
@@ -23169,114 +23181,6 @@ export class UserDomainLoggedIn implements IUserDomainLoggedIn {
|
|
|
23169
23181
|
public toJSON(): { [k: string]: any };
|
|
23170
23182
|
}
|
|
23171
23183
|
|
|
23172
|
-
/** Properties of a UserPasswordResetCreated. */
|
|
23173
|
-
export interface IUserPasswordResetCreated {
|
|
23174
|
-
|
|
23175
|
-
/** UserPasswordResetCreated hsId */
|
|
23176
|
-
hsId?: (string|null);
|
|
23177
|
-
|
|
23178
|
-
/** UserPasswordResetCreated email */
|
|
23179
|
-
email?: (string|null);
|
|
23180
|
-
|
|
23181
|
-
/** UserPasswordResetCreated timestampMillis */
|
|
23182
|
-
timestampMillis?: (number|Long|null);
|
|
23183
|
-
|
|
23184
|
-
/** UserPasswordResetCreated auth0Ticket */
|
|
23185
|
-
auth0Ticket?: (string|null);
|
|
23186
|
-
}
|
|
23187
|
-
|
|
23188
|
-
/** Represents a UserPasswordResetCreated. */
|
|
23189
|
-
export class UserPasswordResetCreated implements IUserPasswordResetCreated {
|
|
23190
|
-
|
|
23191
|
-
/**
|
|
23192
|
-
* Constructs a new UserPasswordResetCreated.
|
|
23193
|
-
* @param [properties] Properties to set
|
|
23194
|
-
*/
|
|
23195
|
-
constructor(properties?: IUserPasswordResetCreated);
|
|
23196
|
-
|
|
23197
|
-
/** UserPasswordResetCreated hsId. */
|
|
23198
|
-
public hsId: string;
|
|
23199
|
-
|
|
23200
|
-
/** UserPasswordResetCreated email. */
|
|
23201
|
-
public email: string;
|
|
23202
|
-
|
|
23203
|
-
/** UserPasswordResetCreated timestampMillis. */
|
|
23204
|
-
public timestampMillis: (number|Long);
|
|
23205
|
-
|
|
23206
|
-
/** UserPasswordResetCreated auth0Ticket. */
|
|
23207
|
-
public auth0Ticket: string;
|
|
23208
|
-
|
|
23209
|
-
/**
|
|
23210
|
-
* Creates a new UserPasswordResetCreated instance using the specified properties.
|
|
23211
|
-
* @param [properties] Properties to set
|
|
23212
|
-
* @returns UserPasswordResetCreated instance
|
|
23213
|
-
*/
|
|
23214
|
-
public static create(properties?: IUserPasswordResetCreated): UserPasswordResetCreated;
|
|
23215
|
-
|
|
23216
|
-
/**
|
|
23217
|
-
* Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link UserPasswordResetCreated.verify|verify} messages.
|
|
23218
|
-
* @param message UserPasswordResetCreated message or plain object to encode
|
|
23219
|
-
* @param [writer] Writer to encode to
|
|
23220
|
-
* @returns Writer
|
|
23221
|
-
*/
|
|
23222
|
-
public static encode(message: IUserPasswordResetCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
23223
|
-
|
|
23224
|
-
/**
|
|
23225
|
-
* Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link UserPasswordResetCreated.verify|verify} messages.
|
|
23226
|
-
* @param message UserPasswordResetCreated message or plain object to encode
|
|
23227
|
-
* @param [writer] Writer to encode to
|
|
23228
|
-
* @returns Writer
|
|
23229
|
-
*/
|
|
23230
|
-
public static encodeDelimited(message: IUserPasswordResetCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
23231
|
-
|
|
23232
|
-
/**
|
|
23233
|
-
* Decodes a UserPasswordResetCreated message from the specified reader or buffer.
|
|
23234
|
-
* @param reader Reader or buffer to decode from
|
|
23235
|
-
* @param [length] Message length if known beforehand
|
|
23236
|
-
* @returns UserPasswordResetCreated
|
|
23237
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23238
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23239
|
-
*/
|
|
23240
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPasswordResetCreated;
|
|
23241
|
-
|
|
23242
|
-
/**
|
|
23243
|
-
* Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
|
|
23244
|
-
* @param reader Reader or buffer to decode from
|
|
23245
|
-
* @returns UserPasswordResetCreated
|
|
23246
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23247
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23248
|
-
*/
|
|
23249
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPasswordResetCreated;
|
|
23250
|
-
|
|
23251
|
-
/**
|
|
23252
|
-
* Verifies a UserPasswordResetCreated message.
|
|
23253
|
-
* @param message Plain object to verify
|
|
23254
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
23255
|
-
*/
|
|
23256
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
23257
|
-
|
|
23258
|
-
/**
|
|
23259
|
-
* Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
|
|
23260
|
-
* @param object Plain object
|
|
23261
|
-
* @returns UserPasswordResetCreated
|
|
23262
|
-
*/
|
|
23263
|
-
public static fromObject(object: { [k: string]: any }): UserPasswordResetCreated;
|
|
23264
|
-
|
|
23265
|
-
/**
|
|
23266
|
-
* Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
|
|
23267
|
-
* @param message UserPasswordResetCreated
|
|
23268
|
-
* @param [options] Conversion options
|
|
23269
|
-
* @returns Plain object
|
|
23270
|
-
*/
|
|
23271
|
-
public static toObject(message: UserPasswordResetCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
23272
|
-
|
|
23273
|
-
/**
|
|
23274
|
-
* Converts this UserPasswordResetCreated to JSON.
|
|
23275
|
-
* @returns JSON object
|
|
23276
|
-
*/
|
|
23277
|
-
public toJSON(): { [k: string]: any };
|
|
23278
|
-
}
|
|
23279
|
-
|
|
23280
23184
|
/** Properties of a UserPasswordResetCompleted. */
|
|
23281
23185
|
export interface IUserPasswordResetCompleted {
|
|
23282
23186
|
|
package/lib/index.js
CHANGED
|
@@ -23948,6 +23948,7 @@ $root.b2b = (function() {
|
|
|
23948
23948
|
* @property {string|null} [gingerId] Organization gingerId
|
|
23949
23949
|
* @property {string|null} [headspaceHealthId] Organization headspaceHealthId
|
|
23950
23950
|
* @property {boolean|null} [mfaEnabled] Organization mfaEnabled
|
|
23951
|
+
* @property {string|null} [orgSlug] Organization orgSlug
|
|
23951
23952
|
*/
|
|
23952
23953
|
|
|
23953
23954
|
/**
|
|
@@ -24061,6 +24062,14 @@ $root.b2b = (function() {
|
|
|
24061
24062
|
*/
|
|
24062
24063
|
Organization.prototype.mfaEnabled = false;
|
|
24063
24064
|
|
|
24065
|
+
/**
|
|
24066
|
+
* Organization orgSlug.
|
|
24067
|
+
* @member {string} orgSlug
|
|
24068
|
+
* @memberof b2b.Organization
|
|
24069
|
+
* @instance
|
|
24070
|
+
*/
|
|
24071
|
+
Organization.prototype.orgSlug = "";
|
|
24072
|
+
|
|
24064
24073
|
/**
|
|
24065
24074
|
* Creates a new Organization instance using the specified properties.
|
|
24066
24075
|
* @function create
|
|
@@ -24109,6 +24118,8 @@ $root.b2b = (function() {
|
|
|
24109
24118
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.headspaceHealthId);
|
|
24110
24119
|
if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
|
|
24111
24120
|
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.mfaEnabled);
|
|
24121
|
+
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
24122
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.orgSlug);
|
|
24112
24123
|
return writer;
|
|
24113
24124
|
};
|
|
24114
24125
|
|
|
@@ -24179,6 +24190,9 @@ $root.b2b = (function() {
|
|
|
24179
24190
|
case 12:
|
|
24180
24191
|
message.mfaEnabled = reader.bool();
|
|
24181
24192
|
break;
|
|
24193
|
+
case 13:
|
|
24194
|
+
message.orgSlug = reader.string();
|
|
24195
|
+
break;
|
|
24182
24196
|
default:
|
|
24183
24197
|
reader.skipType(tag & 7);
|
|
24184
24198
|
break;
|
|
@@ -24273,6 +24287,9 @@ $root.b2b = (function() {
|
|
|
24273
24287
|
if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
|
|
24274
24288
|
if (typeof message.mfaEnabled !== "boolean")
|
|
24275
24289
|
return "mfaEnabled: boolean expected";
|
|
24290
|
+
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
24291
|
+
if (!$util.isString(message.orgSlug))
|
|
24292
|
+
return "orgSlug: string expected";
|
|
24276
24293
|
return null;
|
|
24277
24294
|
};
|
|
24278
24295
|
|
|
@@ -24380,6 +24397,8 @@ $root.b2b = (function() {
|
|
|
24380
24397
|
message.headspaceHealthId = String(object.headspaceHealthId);
|
|
24381
24398
|
if (object.mfaEnabled != null)
|
|
24382
24399
|
message.mfaEnabled = Boolean(object.mfaEnabled);
|
|
24400
|
+
if (object.orgSlug != null)
|
|
24401
|
+
message.orgSlug = String(object.orgSlug);
|
|
24383
24402
|
return message;
|
|
24384
24403
|
};
|
|
24385
24404
|
|
|
@@ -24409,6 +24428,7 @@ $root.b2b = (function() {
|
|
|
24409
24428
|
object.gingerId = "";
|
|
24410
24429
|
object.headspaceHealthId = "";
|
|
24411
24430
|
object.mfaEnabled = false;
|
|
24431
|
+
object.orgSlug = "";
|
|
24412
24432
|
}
|
|
24413
24433
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
24414
24434
|
object.orgId = message.orgId;
|
|
@@ -24434,6 +24454,8 @@ $root.b2b = (function() {
|
|
|
24434
24454
|
object.headspaceHealthId = message.headspaceHealthId;
|
|
24435
24455
|
if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
|
|
24436
24456
|
object.mfaEnabled = message.mfaEnabled;
|
|
24457
|
+
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
24458
|
+
object.orgSlug = message.orgSlug;
|
|
24437
24459
|
return object;
|
|
24438
24460
|
};
|
|
24439
24461
|
|
|
@@ -24462,10 +24484,11 @@ $root.b2b = (function() {
|
|
|
24462
24484
|
* @property {number|Long|null} [orgSubscriptionEndDate] B2BSubscriptionManagement orgSubscriptionEndDate
|
|
24463
24485
|
* @property {number|null} [seats] B2BSubscriptionManagement seats
|
|
24464
24486
|
* @property {number|Long|null} [dependentsPerEmployee] B2BSubscriptionManagement dependentsPerEmployee
|
|
24465
|
-
* @property {number|Long|null} [dependentSeats] B2BSubscriptionManagement dependentSeats
|
|
24466
24487
|
* @property {boolean|null} [isPartialPay] B2BSubscriptionManagement isPartialPay
|
|
24467
24488
|
* @property {boolean|null} [isPilot] B2BSubscriptionManagement isPilot
|
|
24468
24489
|
* @property {number|null} [orgSubscriptionId] B2BSubscriptionManagement orgSubscriptionId
|
|
24490
|
+
* @property {number|Long|null} [dependentSeats] B2BSubscriptionManagement dependentSeats
|
|
24491
|
+
* @property {Array.<b2b.SubscriptionOffering>|null} [offerings] B2BSubscriptionManagement offerings
|
|
24469
24492
|
*/
|
|
24470
24493
|
|
|
24471
24494
|
/**
|
|
@@ -24477,6 +24500,7 @@ $root.b2b = (function() {
|
|
|
24477
24500
|
* @param {b2b.IB2BSubscriptionManagement=} [properties] Properties to set
|
|
24478
24501
|
*/
|
|
24479
24502
|
function B2BSubscriptionManagement(properties) {
|
|
24503
|
+
this.offerings = [];
|
|
24480
24504
|
if (properties)
|
|
24481
24505
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24482
24506
|
if (properties[keys[i]] != null)
|
|
@@ -24523,14 +24547,6 @@ $root.b2b = (function() {
|
|
|
24523
24547
|
*/
|
|
24524
24548
|
B2BSubscriptionManagement.prototype.dependentsPerEmployee = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24525
24549
|
|
|
24526
|
-
/**
|
|
24527
|
-
* B2BSubscriptionManagement dependentSeats.
|
|
24528
|
-
* @member {number|Long} dependentSeats
|
|
24529
|
-
* @memberof b2b.B2BSubscriptionManagement
|
|
24530
|
-
* @instance
|
|
24531
|
-
*/
|
|
24532
|
-
B2BSubscriptionManagement.prototype.dependentSeats = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24533
|
-
|
|
24534
24550
|
/**
|
|
24535
24551
|
* B2BSubscriptionManagement isPartialPay.
|
|
24536
24552
|
* @member {boolean} isPartialPay
|
|
@@ -24555,6 +24571,22 @@ $root.b2b = (function() {
|
|
|
24555
24571
|
*/
|
|
24556
24572
|
B2BSubscriptionManagement.prototype.orgSubscriptionId = 0;
|
|
24557
24573
|
|
|
24574
|
+
/**
|
|
24575
|
+
* B2BSubscriptionManagement dependentSeats.
|
|
24576
|
+
* @member {number|Long} dependentSeats
|
|
24577
|
+
* @memberof b2b.B2BSubscriptionManagement
|
|
24578
|
+
* @instance
|
|
24579
|
+
*/
|
|
24580
|
+
B2BSubscriptionManagement.prototype.dependentSeats = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24581
|
+
|
|
24582
|
+
/**
|
|
24583
|
+
* B2BSubscriptionManagement offerings.
|
|
24584
|
+
* @member {Array.<b2b.SubscriptionOffering>} offerings
|
|
24585
|
+
* @memberof b2b.B2BSubscriptionManagement
|
|
24586
|
+
* @instance
|
|
24587
|
+
*/
|
|
24588
|
+
B2BSubscriptionManagement.prototype.offerings = $util.emptyArray;
|
|
24589
|
+
|
|
24558
24590
|
/**
|
|
24559
24591
|
* Creates a new B2BSubscriptionManagement instance using the specified properties.
|
|
24560
24592
|
* @function create
|
|
@@ -24597,6 +24629,12 @@ $root.b2b = (function() {
|
|
|
24597
24629
|
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.orgSubscriptionId);
|
|
24598
24630
|
if (message.dependentSeats != null && message.hasOwnProperty("dependentSeats"))
|
|
24599
24631
|
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.dependentSeats);
|
|
24632
|
+
if (message.offerings != null && message.offerings.length) {
|
|
24633
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
24634
|
+
for (var i = 0; i < message.offerings.length; ++i)
|
|
24635
|
+
writer.int32(message.offerings[i]);
|
|
24636
|
+
writer.ldelim();
|
|
24637
|
+
}
|
|
24600
24638
|
return writer;
|
|
24601
24639
|
};
|
|
24602
24640
|
|
|
@@ -24646,9 +24684,6 @@ $root.b2b = (function() {
|
|
|
24646
24684
|
case 5:
|
|
24647
24685
|
message.dependentsPerEmployee = reader.uint64();
|
|
24648
24686
|
break;
|
|
24649
|
-
case 9:
|
|
24650
|
-
message.dependentSeats = reader.uint64();
|
|
24651
|
-
break;
|
|
24652
24687
|
case 6:
|
|
24653
24688
|
message.isPartialPay = reader.bool();
|
|
24654
24689
|
break;
|
|
@@ -24658,6 +24693,19 @@ $root.b2b = (function() {
|
|
|
24658
24693
|
case 8:
|
|
24659
24694
|
message.orgSubscriptionId = reader.uint32();
|
|
24660
24695
|
break;
|
|
24696
|
+
case 9:
|
|
24697
|
+
message.dependentSeats = reader.uint64();
|
|
24698
|
+
break;
|
|
24699
|
+
case 10:
|
|
24700
|
+
if (!(message.offerings && message.offerings.length))
|
|
24701
|
+
message.offerings = [];
|
|
24702
|
+
if ((tag & 7) === 2) {
|
|
24703
|
+
var end2 = reader.uint32() + reader.pos;
|
|
24704
|
+
while (reader.pos < end2)
|
|
24705
|
+
message.offerings.push(reader.int32());
|
|
24706
|
+
} else
|
|
24707
|
+
message.offerings.push(reader.int32());
|
|
24708
|
+
break;
|
|
24661
24709
|
default:
|
|
24662
24710
|
reader.skipType(tag & 7);
|
|
24663
24711
|
break;
|
|
@@ -24708,9 +24756,6 @@ $root.b2b = (function() {
|
|
|
24708
24756
|
if (message.dependentsPerEmployee != null && message.hasOwnProperty("dependentsPerEmployee"))
|
|
24709
24757
|
if (!$util.isInteger(message.dependentsPerEmployee) && !(message.dependentsPerEmployee && $util.isInteger(message.dependentsPerEmployee.low) && $util.isInteger(message.dependentsPerEmployee.high)))
|
|
24710
24758
|
return "dependentsPerEmployee: integer|Long expected";
|
|
24711
|
-
if (message.dependentSeats != null && message.hasOwnProperty("dependentSeats"))
|
|
24712
|
-
if (!$util.isInteger(message.dependentSeats) && !(message.dependentSeats && $util.isInteger(message.dependentSeats.low) && $util.isInteger(message.dependentSeats.high)))
|
|
24713
|
-
return "dependentSeats: integer|Long expected";
|
|
24714
24759
|
if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
|
|
24715
24760
|
if (typeof message.isPartialPay !== "boolean")
|
|
24716
24761
|
return "isPartialPay: boolean expected";
|
|
@@ -24720,6 +24765,22 @@ $root.b2b = (function() {
|
|
|
24720
24765
|
if (message.orgSubscriptionId != null && message.hasOwnProperty("orgSubscriptionId"))
|
|
24721
24766
|
if (!$util.isInteger(message.orgSubscriptionId))
|
|
24722
24767
|
return "orgSubscriptionId: integer expected";
|
|
24768
|
+
if (message.dependentSeats != null && message.hasOwnProperty("dependentSeats"))
|
|
24769
|
+
if (!$util.isInteger(message.dependentSeats) && !(message.dependentSeats && $util.isInteger(message.dependentSeats.low) && $util.isInteger(message.dependentSeats.high)))
|
|
24770
|
+
return "dependentSeats: integer|Long expected";
|
|
24771
|
+
if (message.offerings != null && message.hasOwnProperty("offerings")) {
|
|
24772
|
+
if (!Array.isArray(message.offerings))
|
|
24773
|
+
return "offerings: array expected";
|
|
24774
|
+
for (var i = 0; i < message.offerings.length; ++i)
|
|
24775
|
+
switch (message.offerings[i]) {
|
|
24776
|
+
default:
|
|
24777
|
+
return "offerings: enum value[] expected";
|
|
24778
|
+
case 0:
|
|
24779
|
+
case 1:
|
|
24780
|
+
case 2:
|
|
24781
|
+
break;
|
|
24782
|
+
}
|
|
24783
|
+
}
|
|
24723
24784
|
return null;
|
|
24724
24785
|
};
|
|
24725
24786
|
|
|
@@ -24766,6 +24827,12 @@ $root.b2b = (function() {
|
|
|
24766
24827
|
message.dependentsPerEmployee = object.dependentsPerEmployee;
|
|
24767
24828
|
else if (typeof object.dependentsPerEmployee === "object")
|
|
24768
24829
|
message.dependentsPerEmployee = new $util.LongBits(object.dependentsPerEmployee.low >>> 0, object.dependentsPerEmployee.high >>> 0).toNumber(true);
|
|
24830
|
+
if (object.isPartialPay != null)
|
|
24831
|
+
message.isPartialPay = Boolean(object.isPartialPay);
|
|
24832
|
+
if (object.isPilot != null)
|
|
24833
|
+
message.isPilot = Boolean(object.isPilot);
|
|
24834
|
+
if (object.orgSubscriptionId != null)
|
|
24835
|
+
message.orgSubscriptionId = object.orgSubscriptionId >>> 0;
|
|
24769
24836
|
if (object.dependentSeats != null)
|
|
24770
24837
|
if ($util.Long)
|
|
24771
24838
|
(message.dependentSeats = $util.Long.fromValue(object.dependentSeats)).unsigned = true;
|
|
@@ -24775,12 +24842,27 @@ $root.b2b = (function() {
|
|
|
24775
24842
|
message.dependentSeats = object.dependentSeats;
|
|
24776
24843
|
else if (typeof object.dependentSeats === "object")
|
|
24777
24844
|
message.dependentSeats = new $util.LongBits(object.dependentSeats.low >>> 0, object.dependentSeats.high >>> 0).toNumber(true);
|
|
24778
|
-
if (object.
|
|
24779
|
-
|
|
24780
|
-
|
|
24781
|
-
message.
|
|
24782
|
-
|
|
24783
|
-
|
|
24845
|
+
if (object.offerings) {
|
|
24846
|
+
if (!Array.isArray(object.offerings))
|
|
24847
|
+
throw TypeError(".b2b.B2BSubscriptionManagement.offerings: array expected");
|
|
24848
|
+
message.offerings = [];
|
|
24849
|
+
for (var i = 0; i < object.offerings.length; ++i)
|
|
24850
|
+
switch (object.offerings[i]) {
|
|
24851
|
+
default:
|
|
24852
|
+
case "SUBSCRIPTION_OFFERING_UNKNOWN":
|
|
24853
|
+
case 0:
|
|
24854
|
+
message.offerings[i] = 0;
|
|
24855
|
+
break;
|
|
24856
|
+
case "SUBSCRIPTION_OFFERING_HEADSPACE":
|
|
24857
|
+
case 1:
|
|
24858
|
+
message.offerings[i] = 1;
|
|
24859
|
+
break;
|
|
24860
|
+
case "SUBSCRIPTION_OFFERING_GINGER":
|
|
24861
|
+
case 2:
|
|
24862
|
+
message.offerings[i] = 2;
|
|
24863
|
+
break;
|
|
24864
|
+
}
|
|
24865
|
+
}
|
|
24784
24866
|
return message;
|
|
24785
24867
|
};
|
|
24786
24868
|
|
|
@@ -24797,6 +24879,8 @@ $root.b2b = (function() {
|
|
|
24797
24879
|
if (!options)
|
|
24798
24880
|
options = {};
|
|
24799
24881
|
var object = {};
|
|
24882
|
+
if (options.arrays || options.defaults)
|
|
24883
|
+
object.offerings = [];
|
|
24800
24884
|
if (options.defaults) {
|
|
24801
24885
|
object.salesforceOpportunityId = "";
|
|
24802
24886
|
if ($util.Long) {
|
|
@@ -24854,6 +24938,11 @@ $root.b2b = (function() {
|
|
|
24854
24938
|
object.dependentSeats = options.longs === String ? String(message.dependentSeats) : message.dependentSeats;
|
|
24855
24939
|
else
|
|
24856
24940
|
object.dependentSeats = options.longs === String ? $util.Long.prototype.toString.call(message.dependentSeats) : options.longs === Number ? new $util.LongBits(message.dependentSeats.low >>> 0, message.dependentSeats.high >>> 0).toNumber(true) : message.dependentSeats;
|
|
24941
|
+
if (message.offerings && message.offerings.length) {
|
|
24942
|
+
object.offerings = [];
|
|
24943
|
+
for (var j = 0; j < message.offerings.length; ++j)
|
|
24944
|
+
object.offerings[j] = options.enums === String ? $root.b2b.SubscriptionOffering[message.offerings[j]] : message.offerings[j];
|
|
24945
|
+
}
|
|
24857
24946
|
return object;
|
|
24858
24947
|
};
|
|
24859
24948
|
|
|
@@ -63513,274 +63602,6 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
63513
63602
|
return UserDomainLoggedIn;
|
|
63514
63603
|
})();
|
|
63515
63604
|
|
|
63516
|
-
$root.UserPasswordResetCreated = (function() {
|
|
63517
|
-
|
|
63518
|
-
/**
|
|
63519
|
-
* Properties of a UserPasswordResetCreated.
|
|
63520
|
-
* @exports IUserPasswordResetCreated
|
|
63521
|
-
* @interface IUserPasswordResetCreated
|
|
63522
|
-
* @property {string|null} [hsId] UserPasswordResetCreated hsId
|
|
63523
|
-
* @property {string|null} [email] UserPasswordResetCreated email
|
|
63524
|
-
* @property {number|Long|null} [timestampMillis] UserPasswordResetCreated timestampMillis
|
|
63525
|
-
* @property {string|null} [auth0Ticket] UserPasswordResetCreated auth0Ticket
|
|
63526
|
-
*/
|
|
63527
|
-
|
|
63528
|
-
/**
|
|
63529
|
-
* Constructs a new UserPasswordResetCreated.
|
|
63530
|
-
* @exports UserPasswordResetCreated
|
|
63531
|
-
* @classdesc Represents a UserPasswordResetCreated.
|
|
63532
|
-
* @implements IUserPasswordResetCreated
|
|
63533
|
-
* @constructor
|
|
63534
|
-
* @param {IUserPasswordResetCreated=} [properties] Properties to set
|
|
63535
|
-
*/
|
|
63536
|
-
function UserPasswordResetCreated(properties) {
|
|
63537
|
-
if (properties)
|
|
63538
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
63539
|
-
if (properties[keys[i]] != null)
|
|
63540
|
-
this[keys[i]] = properties[keys[i]];
|
|
63541
|
-
}
|
|
63542
|
-
|
|
63543
|
-
/**
|
|
63544
|
-
* UserPasswordResetCreated hsId.
|
|
63545
|
-
* @member {string} hsId
|
|
63546
|
-
* @memberof UserPasswordResetCreated
|
|
63547
|
-
* @instance
|
|
63548
|
-
*/
|
|
63549
|
-
UserPasswordResetCreated.prototype.hsId = "";
|
|
63550
|
-
|
|
63551
|
-
/**
|
|
63552
|
-
* UserPasswordResetCreated email.
|
|
63553
|
-
* @member {string} email
|
|
63554
|
-
* @memberof UserPasswordResetCreated
|
|
63555
|
-
* @instance
|
|
63556
|
-
*/
|
|
63557
|
-
UserPasswordResetCreated.prototype.email = "";
|
|
63558
|
-
|
|
63559
|
-
/**
|
|
63560
|
-
* UserPasswordResetCreated timestampMillis.
|
|
63561
|
-
* @member {number|Long} timestampMillis
|
|
63562
|
-
* @memberof UserPasswordResetCreated
|
|
63563
|
-
* @instance
|
|
63564
|
-
*/
|
|
63565
|
-
UserPasswordResetCreated.prototype.timestampMillis = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
63566
|
-
|
|
63567
|
-
/**
|
|
63568
|
-
* UserPasswordResetCreated auth0Ticket.
|
|
63569
|
-
* @member {string} auth0Ticket
|
|
63570
|
-
* @memberof UserPasswordResetCreated
|
|
63571
|
-
* @instance
|
|
63572
|
-
*/
|
|
63573
|
-
UserPasswordResetCreated.prototype.auth0Ticket = "";
|
|
63574
|
-
|
|
63575
|
-
/**
|
|
63576
|
-
* Creates a new UserPasswordResetCreated instance using the specified properties.
|
|
63577
|
-
* @function create
|
|
63578
|
-
* @memberof UserPasswordResetCreated
|
|
63579
|
-
* @static
|
|
63580
|
-
* @param {IUserPasswordResetCreated=} [properties] Properties to set
|
|
63581
|
-
* @returns {UserPasswordResetCreated} UserPasswordResetCreated instance
|
|
63582
|
-
*/
|
|
63583
|
-
UserPasswordResetCreated.create = function create(properties) {
|
|
63584
|
-
return new UserPasswordResetCreated(properties);
|
|
63585
|
-
};
|
|
63586
|
-
|
|
63587
|
-
/**
|
|
63588
|
-
* Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link UserPasswordResetCreated.verify|verify} messages.
|
|
63589
|
-
* @function encode
|
|
63590
|
-
* @memberof UserPasswordResetCreated
|
|
63591
|
-
* @static
|
|
63592
|
-
* @param {IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
|
|
63593
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
63594
|
-
* @returns {$protobuf.Writer} Writer
|
|
63595
|
-
*/
|
|
63596
|
-
UserPasswordResetCreated.encode = function encode(message, writer) {
|
|
63597
|
-
if (!writer)
|
|
63598
|
-
writer = $Writer.create();
|
|
63599
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
63600
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
63601
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
63602
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
63603
|
-
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
63604
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestampMillis);
|
|
63605
|
-
if (message.auth0Ticket != null && message.hasOwnProperty("auth0Ticket"))
|
|
63606
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.auth0Ticket);
|
|
63607
|
-
return writer;
|
|
63608
|
-
};
|
|
63609
|
-
|
|
63610
|
-
/**
|
|
63611
|
-
* Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link UserPasswordResetCreated.verify|verify} messages.
|
|
63612
|
-
* @function encodeDelimited
|
|
63613
|
-
* @memberof UserPasswordResetCreated
|
|
63614
|
-
* @static
|
|
63615
|
-
* @param {IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
|
|
63616
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
63617
|
-
* @returns {$protobuf.Writer} Writer
|
|
63618
|
-
*/
|
|
63619
|
-
UserPasswordResetCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
63620
|
-
return this.encode(message, writer).ldelim();
|
|
63621
|
-
};
|
|
63622
|
-
|
|
63623
|
-
/**
|
|
63624
|
-
* Decodes a UserPasswordResetCreated message from the specified reader or buffer.
|
|
63625
|
-
* @function decode
|
|
63626
|
-
* @memberof UserPasswordResetCreated
|
|
63627
|
-
* @static
|
|
63628
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
63629
|
-
* @param {number} [length] Message length if known beforehand
|
|
63630
|
-
* @returns {UserPasswordResetCreated} UserPasswordResetCreated
|
|
63631
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63632
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
63633
|
-
*/
|
|
63634
|
-
UserPasswordResetCreated.decode = function decode(reader, length) {
|
|
63635
|
-
if (!(reader instanceof $Reader))
|
|
63636
|
-
reader = $Reader.create(reader);
|
|
63637
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordResetCreated();
|
|
63638
|
-
while (reader.pos < end) {
|
|
63639
|
-
var tag = reader.uint32();
|
|
63640
|
-
switch (tag >>> 3) {
|
|
63641
|
-
case 1:
|
|
63642
|
-
message.hsId = reader.string();
|
|
63643
|
-
break;
|
|
63644
|
-
case 2:
|
|
63645
|
-
message.email = reader.string();
|
|
63646
|
-
break;
|
|
63647
|
-
case 3:
|
|
63648
|
-
message.timestampMillis = reader.uint64();
|
|
63649
|
-
break;
|
|
63650
|
-
case 6:
|
|
63651
|
-
message.auth0Ticket = reader.string();
|
|
63652
|
-
break;
|
|
63653
|
-
default:
|
|
63654
|
-
reader.skipType(tag & 7);
|
|
63655
|
-
break;
|
|
63656
|
-
}
|
|
63657
|
-
}
|
|
63658
|
-
return message;
|
|
63659
|
-
};
|
|
63660
|
-
|
|
63661
|
-
/**
|
|
63662
|
-
* Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
|
|
63663
|
-
* @function decodeDelimited
|
|
63664
|
-
* @memberof UserPasswordResetCreated
|
|
63665
|
-
* @static
|
|
63666
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
63667
|
-
* @returns {UserPasswordResetCreated} UserPasswordResetCreated
|
|
63668
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63669
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
63670
|
-
*/
|
|
63671
|
-
UserPasswordResetCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
63672
|
-
if (!(reader instanceof $Reader))
|
|
63673
|
-
reader = new $Reader(reader);
|
|
63674
|
-
return this.decode(reader, reader.uint32());
|
|
63675
|
-
};
|
|
63676
|
-
|
|
63677
|
-
/**
|
|
63678
|
-
* Verifies a UserPasswordResetCreated message.
|
|
63679
|
-
* @function verify
|
|
63680
|
-
* @memberof UserPasswordResetCreated
|
|
63681
|
-
* @static
|
|
63682
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
63683
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
63684
|
-
*/
|
|
63685
|
-
UserPasswordResetCreated.verify = function verify(message) {
|
|
63686
|
-
if (typeof message !== "object" || message === null)
|
|
63687
|
-
return "object expected";
|
|
63688
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
63689
|
-
if (!$util.isString(message.hsId))
|
|
63690
|
-
return "hsId: string expected";
|
|
63691
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
63692
|
-
if (!$util.isString(message.email))
|
|
63693
|
-
return "email: string expected";
|
|
63694
|
-
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
63695
|
-
if (!$util.isInteger(message.timestampMillis) && !(message.timestampMillis && $util.isInteger(message.timestampMillis.low) && $util.isInteger(message.timestampMillis.high)))
|
|
63696
|
-
return "timestampMillis: integer|Long expected";
|
|
63697
|
-
if (message.auth0Ticket != null && message.hasOwnProperty("auth0Ticket"))
|
|
63698
|
-
if (!$util.isString(message.auth0Ticket))
|
|
63699
|
-
return "auth0Ticket: string expected";
|
|
63700
|
-
return null;
|
|
63701
|
-
};
|
|
63702
|
-
|
|
63703
|
-
/**
|
|
63704
|
-
* Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
|
|
63705
|
-
* @function fromObject
|
|
63706
|
-
* @memberof UserPasswordResetCreated
|
|
63707
|
-
* @static
|
|
63708
|
-
* @param {Object.<string,*>} object Plain object
|
|
63709
|
-
* @returns {UserPasswordResetCreated} UserPasswordResetCreated
|
|
63710
|
-
*/
|
|
63711
|
-
UserPasswordResetCreated.fromObject = function fromObject(object) {
|
|
63712
|
-
if (object instanceof $root.UserPasswordResetCreated)
|
|
63713
|
-
return object;
|
|
63714
|
-
var message = new $root.UserPasswordResetCreated();
|
|
63715
|
-
if (object.hsId != null)
|
|
63716
|
-
message.hsId = String(object.hsId);
|
|
63717
|
-
if (object.email != null)
|
|
63718
|
-
message.email = String(object.email);
|
|
63719
|
-
if (object.timestampMillis != null)
|
|
63720
|
-
if ($util.Long)
|
|
63721
|
-
(message.timestampMillis = $util.Long.fromValue(object.timestampMillis)).unsigned = true;
|
|
63722
|
-
else if (typeof object.timestampMillis === "string")
|
|
63723
|
-
message.timestampMillis = parseInt(object.timestampMillis, 10);
|
|
63724
|
-
else if (typeof object.timestampMillis === "number")
|
|
63725
|
-
message.timestampMillis = object.timestampMillis;
|
|
63726
|
-
else if (typeof object.timestampMillis === "object")
|
|
63727
|
-
message.timestampMillis = new $util.LongBits(object.timestampMillis.low >>> 0, object.timestampMillis.high >>> 0).toNumber(true);
|
|
63728
|
-
if (object.auth0Ticket != null)
|
|
63729
|
-
message.auth0Ticket = String(object.auth0Ticket);
|
|
63730
|
-
return message;
|
|
63731
|
-
};
|
|
63732
|
-
|
|
63733
|
-
/**
|
|
63734
|
-
* Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
|
|
63735
|
-
* @function toObject
|
|
63736
|
-
* @memberof UserPasswordResetCreated
|
|
63737
|
-
* @static
|
|
63738
|
-
* @param {UserPasswordResetCreated} message UserPasswordResetCreated
|
|
63739
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
63740
|
-
* @returns {Object.<string,*>} Plain object
|
|
63741
|
-
*/
|
|
63742
|
-
UserPasswordResetCreated.toObject = function toObject(message, options) {
|
|
63743
|
-
if (!options)
|
|
63744
|
-
options = {};
|
|
63745
|
-
var object = {};
|
|
63746
|
-
if (options.defaults) {
|
|
63747
|
-
object.hsId = "";
|
|
63748
|
-
object.email = "";
|
|
63749
|
-
if ($util.Long) {
|
|
63750
|
-
var long = new $util.Long(0, 0, true);
|
|
63751
|
-
object.timestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
63752
|
-
} else
|
|
63753
|
-
object.timestampMillis = options.longs === String ? "0" : 0;
|
|
63754
|
-
object.auth0Ticket = "";
|
|
63755
|
-
}
|
|
63756
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
63757
|
-
object.hsId = message.hsId;
|
|
63758
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
63759
|
-
object.email = message.email;
|
|
63760
|
-
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
63761
|
-
if (typeof message.timestampMillis === "number")
|
|
63762
|
-
object.timestampMillis = options.longs === String ? String(message.timestampMillis) : message.timestampMillis;
|
|
63763
|
-
else
|
|
63764
|
-
object.timestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMillis) : options.longs === Number ? new $util.LongBits(message.timestampMillis.low >>> 0, message.timestampMillis.high >>> 0).toNumber(true) : message.timestampMillis;
|
|
63765
|
-
if (message.auth0Ticket != null && message.hasOwnProperty("auth0Ticket"))
|
|
63766
|
-
object.auth0Ticket = message.auth0Ticket;
|
|
63767
|
-
return object;
|
|
63768
|
-
};
|
|
63769
|
-
|
|
63770
|
-
/**
|
|
63771
|
-
* Converts this UserPasswordResetCreated to JSON.
|
|
63772
|
-
* @function toJSON
|
|
63773
|
-
* @memberof UserPasswordResetCreated
|
|
63774
|
-
* @instance
|
|
63775
|
-
* @returns {Object.<string,*>} JSON object
|
|
63776
|
-
*/
|
|
63777
|
-
UserPasswordResetCreated.prototype.toJSON = function toJSON() {
|
|
63778
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
63779
|
-
};
|
|
63780
|
-
|
|
63781
|
-
return UserPasswordResetCreated;
|
|
63782
|
-
})();
|
|
63783
|
-
|
|
63784
63605
|
$root.UserPasswordResetCompleted = (function() {
|
|
63785
63606
|
|
|
63786
63607
|
/**
|
package/package.json
CHANGED