@headspace/protos-events 1.415.0 → 1.416.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 +14 -0
- package/lib/index.js +90 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10037,6 +10037,9 @@ export namespace b2b {
|
|
|
10037
10037
|
|
|
10038
10038
|
/** Organization orgSlug */
|
|
10039
10039
|
orgSlug?: (string|null);
|
|
10040
|
+
|
|
10041
|
+
/** Organization orgAddons */
|
|
10042
|
+
orgAddons?: (b2b.AddOn[]|null);
|
|
10040
10043
|
}
|
|
10041
10044
|
|
|
10042
10045
|
/** Represents an Organization. */
|
|
@@ -10087,6 +10090,9 @@ export namespace b2b {
|
|
|
10087
10090
|
/** Organization orgSlug. */
|
|
10088
10091
|
public orgSlug: string;
|
|
10089
10092
|
|
|
10093
|
+
/** Organization orgAddons. */
|
|
10094
|
+
public orgAddons: b2b.AddOn[];
|
|
10095
|
+
|
|
10090
10096
|
/**
|
|
10091
10097
|
* Creates a new Organization instance using the specified properties.
|
|
10092
10098
|
* @param [properties] Properties to set
|
|
@@ -10363,6 +10369,14 @@ export namespace b2b {
|
|
|
10363
10369
|
SUBSCRIPTION_OFFERING_HEADSPACE = 1,
|
|
10364
10370
|
SUBSCRIPTION_OFFERING_GINGER = 2
|
|
10365
10371
|
}
|
|
10372
|
+
|
|
10373
|
+
/** AddOn enum. */
|
|
10374
|
+
enum AddOn {
|
|
10375
|
+
ADD_ON_UNKNOWN = 0,
|
|
10376
|
+
ADD_ON_EAP = 1,
|
|
10377
|
+
ADD_ON_WPO = 2,
|
|
10378
|
+
ADD_ON_R3C = 3
|
|
10379
|
+
}
|
|
10366
10380
|
}
|
|
10367
10381
|
|
|
10368
10382
|
/** Namespace community. */
|
package/lib/index.js
CHANGED
|
@@ -23947,6 +23947,7 @@ $root.b2b = (function() {
|
|
|
23947
23947
|
* @property {string|null} [headspaceHealthId] Organization headspaceHealthId
|
|
23948
23948
|
* @property {boolean|null} [mfaEnabled] Organization mfaEnabled
|
|
23949
23949
|
* @property {string|null} [orgSlug] Organization orgSlug
|
|
23950
|
+
* @property {Array.<b2b.AddOn>|null} [orgAddons] Organization orgAddons
|
|
23950
23951
|
*/
|
|
23951
23952
|
|
|
23952
23953
|
/**
|
|
@@ -23958,6 +23959,7 @@ $root.b2b = (function() {
|
|
|
23958
23959
|
* @param {b2b.IOrganization=} [properties] Properties to set
|
|
23959
23960
|
*/
|
|
23960
23961
|
function Organization(properties) {
|
|
23962
|
+
this.orgAddons = [];
|
|
23961
23963
|
if (properties)
|
|
23962
23964
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23963
23965
|
if (properties[keys[i]] != null)
|
|
@@ -24068,6 +24070,14 @@ $root.b2b = (function() {
|
|
|
24068
24070
|
*/
|
|
24069
24071
|
Organization.prototype.orgSlug = "";
|
|
24070
24072
|
|
|
24073
|
+
/**
|
|
24074
|
+
* Organization orgAddons.
|
|
24075
|
+
* @member {Array.<b2b.AddOn>} orgAddons
|
|
24076
|
+
* @memberof b2b.Organization
|
|
24077
|
+
* @instance
|
|
24078
|
+
*/
|
|
24079
|
+
Organization.prototype.orgAddons = $util.emptyArray;
|
|
24080
|
+
|
|
24071
24081
|
/**
|
|
24072
24082
|
* Creates a new Organization instance using the specified properties.
|
|
24073
24083
|
* @function create
|
|
@@ -24118,6 +24128,12 @@ $root.b2b = (function() {
|
|
|
24118
24128
|
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.mfaEnabled);
|
|
24119
24129
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
24120
24130
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.orgSlug);
|
|
24131
|
+
if (message.orgAddons != null && message.orgAddons.length) {
|
|
24132
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
24133
|
+
for (var i = 0; i < message.orgAddons.length; ++i)
|
|
24134
|
+
writer.int32(message.orgAddons[i]);
|
|
24135
|
+
writer.ldelim();
|
|
24136
|
+
}
|
|
24121
24137
|
return writer;
|
|
24122
24138
|
};
|
|
24123
24139
|
|
|
@@ -24191,6 +24207,16 @@ $root.b2b = (function() {
|
|
|
24191
24207
|
case 13:
|
|
24192
24208
|
message.orgSlug = reader.string();
|
|
24193
24209
|
break;
|
|
24210
|
+
case 14:
|
|
24211
|
+
if (!(message.orgAddons && message.orgAddons.length))
|
|
24212
|
+
message.orgAddons = [];
|
|
24213
|
+
if ((tag & 7) === 2) {
|
|
24214
|
+
var end2 = reader.uint32() + reader.pos;
|
|
24215
|
+
while (reader.pos < end2)
|
|
24216
|
+
message.orgAddons.push(reader.int32());
|
|
24217
|
+
} else
|
|
24218
|
+
message.orgAddons.push(reader.int32());
|
|
24219
|
+
break;
|
|
24194
24220
|
default:
|
|
24195
24221
|
reader.skipType(tag & 7);
|
|
24196
24222
|
break;
|
|
@@ -24288,6 +24314,20 @@ $root.b2b = (function() {
|
|
|
24288
24314
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
24289
24315
|
if (!$util.isString(message.orgSlug))
|
|
24290
24316
|
return "orgSlug: string expected";
|
|
24317
|
+
if (message.orgAddons != null && message.hasOwnProperty("orgAddons")) {
|
|
24318
|
+
if (!Array.isArray(message.orgAddons))
|
|
24319
|
+
return "orgAddons: array expected";
|
|
24320
|
+
for (var i = 0; i < message.orgAddons.length; ++i)
|
|
24321
|
+
switch (message.orgAddons[i]) {
|
|
24322
|
+
default:
|
|
24323
|
+
return "orgAddons: enum value[] expected";
|
|
24324
|
+
case 0:
|
|
24325
|
+
case 1:
|
|
24326
|
+
case 2:
|
|
24327
|
+
case 3:
|
|
24328
|
+
break;
|
|
24329
|
+
}
|
|
24330
|
+
}
|
|
24291
24331
|
return null;
|
|
24292
24332
|
};
|
|
24293
24333
|
|
|
@@ -24397,6 +24437,31 @@ $root.b2b = (function() {
|
|
|
24397
24437
|
message.mfaEnabled = Boolean(object.mfaEnabled);
|
|
24398
24438
|
if (object.orgSlug != null)
|
|
24399
24439
|
message.orgSlug = String(object.orgSlug);
|
|
24440
|
+
if (object.orgAddons) {
|
|
24441
|
+
if (!Array.isArray(object.orgAddons))
|
|
24442
|
+
throw TypeError(".b2b.Organization.orgAddons: array expected");
|
|
24443
|
+
message.orgAddons = [];
|
|
24444
|
+
for (var i = 0; i < object.orgAddons.length; ++i)
|
|
24445
|
+
switch (object.orgAddons[i]) {
|
|
24446
|
+
default:
|
|
24447
|
+
case "ADD_ON_UNKNOWN":
|
|
24448
|
+
case 0:
|
|
24449
|
+
message.orgAddons[i] = 0;
|
|
24450
|
+
break;
|
|
24451
|
+
case "ADD_ON_EAP":
|
|
24452
|
+
case 1:
|
|
24453
|
+
message.orgAddons[i] = 1;
|
|
24454
|
+
break;
|
|
24455
|
+
case "ADD_ON_WPO":
|
|
24456
|
+
case 2:
|
|
24457
|
+
message.orgAddons[i] = 2;
|
|
24458
|
+
break;
|
|
24459
|
+
case "ADD_ON_R3C":
|
|
24460
|
+
case 3:
|
|
24461
|
+
message.orgAddons[i] = 3;
|
|
24462
|
+
break;
|
|
24463
|
+
}
|
|
24464
|
+
}
|
|
24400
24465
|
return message;
|
|
24401
24466
|
};
|
|
24402
24467
|
|
|
@@ -24413,6 +24478,8 @@ $root.b2b = (function() {
|
|
|
24413
24478
|
if (!options)
|
|
24414
24479
|
options = {};
|
|
24415
24480
|
var object = {};
|
|
24481
|
+
if (options.arrays || options.defaults)
|
|
24482
|
+
object.orgAddons = [];
|
|
24416
24483
|
if (options.defaults) {
|
|
24417
24484
|
object.orgId = 0;
|
|
24418
24485
|
object.orgName = "";
|
|
@@ -24454,6 +24521,11 @@ $root.b2b = (function() {
|
|
|
24454
24521
|
object.mfaEnabled = message.mfaEnabled;
|
|
24455
24522
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
24456
24523
|
object.orgSlug = message.orgSlug;
|
|
24524
|
+
if (message.orgAddons && message.orgAddons.length) {
|
|
24525
|
+
object.orgAddons = [];
|
|
24526
|
+
for (var j = 0; j < message.orgAddons.length; ++j)
|
|
24527
|
+
object.orgAddons[j] = options.enums === String ? $root.b2b.AddOn[message.orgAddons[j]] : message.orgAddons[j];
|
|
24528
|
+
}
|
|
24457
24529
|
return object;
|
|
24458
24530
|
};
|
|
24459
24531
|
|
|
@@ -25094,6 +25166,24 @@ $root.b2b = (function() {
|
|
|
25094
25166
|
return values;
|
|
25095
25167
|
})();
|
|
25096
25168
|
|
|
25169
|
+
/**
|
|
25170
|
+
* AddOn enum.
|
|
25171
|
+
* @name b2b.AddOn
|
|
25172
|
+
* @enum {string}
|
|
25173
|
+
* @property {number} ADD_ON_UNKNOWN=0 ADD_ON_UNKNOWN value
|
|
25174
|
+
* @property {number} ADD_ON_EAP=1 ADD_ON_EAP value
|
|
25175
|
+
* @property {number} ADD_ON_WPO=2 ADD_ON_WPO value
|
|
25176
|
+
* @property {number} ADD_ON_R3C=3 ADD_ON_R3C value
|
|
25177
|
+
*/
|
|
25178
|
+
b2b.AddOn = (function() {
|
|
25179
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
25180
|
+
values[valuesById[0] = "ADD_ON_UNKNOWN"] = 0;
|
|
25181
|
+
values[valuesById[1] = "ADD_ON_EAP"] = 1;
|
|
25182
|
+
values[valuesById[2] = "ADD_ON_WPO"] = 2;
|
|
25183
|
+
values[valuesById[3] = "ADD_ON_R3C"] = 3;
|
|
25184
|
+
return values;
|
|
25185
|
+
})();
|
|
25186
|
+
|
|
25097
25187
|
return b2b;
|
|
25098
25188
|
})();
|
|
25099
25189
|
|
package/package.json
CHANGED