@headspace/protos-events 1.176.0 → 1.178.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 +25 -0
- package/lib/index.js +127 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4407,6 +4407,15 @@ export namespace userdomain {
|
|
|
4407
4407
|
|
|
4408
4408
|
/** User emailNormalizedSha256 */
|
|
4409
4409
|
emailNormalizedSha256?: (string|null);
|
|
4410
|
+
|
|
4411
|
+
/** User isHeadspaceStaff */
|
|
4412
|
+
isHeadspaceStaff?: (boolean|null);
|
|
4413
|
+
|
|
4414
|
+
/** User isTestUser */
|
|
4415
|
+
isTestUser?: (boolean|null);
|
|
4416
|
+
|
|
4417
|
+
/** User tags */
|
|
4418
|
+
tags?: (userdomain.users.UserTag[]|null);
|
|
4410
4419
|
}
|
|
4411
4420
|
|
|
4412
4421
|
/** Represents a User. */
|
|
@@ -4463,6 +4472,15 @@ export namespace userdomain {
|
|
|
4463
4472
|
/** User emailNormalizedSha256. */
|
|
4464
4473
|
public emailNormalizedSha256: string;
|
|
4465
4474
|
|
|
4475
|
+
/** User isHeadspaceStaff. */
|
|
4476
|
+
public isHeadspaceStaff: boolean;
|
|
4477
|
+
|
|
4478
|
+
/** User isTestUser. */
|
|
4479
|
+
public isTestUser: boolean;
|
|
4480
|
+
|
|
4481
|
+
/** User tags. */
|
|
4482
|
+
public tags: userdomain.users.UserTag[];
|
|
4483
|
+
|
|
4466
4484
|
/**
|
|
4467
4485
|
* Creates a new User instance using the specified properties.
|
|
4468
4486
|
* @param [properties] Properties to set
|
|
@@ -4534,6 +4552,13 @@ export namespace userdomain {
|
|
|
4534
4552
|
public toJSON(): { [k: string]: any };
|
|
4535
4553
|
}
|
|
4536
4554
|
|
|
4555
|
+
/** UserTag enum. */
|
|
4556
|
+
enum UserTag {
|
|
4557
|
+
USERTAG_UNKNOWN = 0,
|
|
4558
|
+
USERTAG_HS_STAFF = 1,
|
|
4559
|
+
USERTAG_HS_TEST_USER = 2
|
|
4560
|
+
}
|
|
4561
|
+
|
|
4537
4562
|
/** Platform enum. */
|
|
4538
4563
|
enum Platform {
|
|
4539
4564
|
UNKNOWN_PLATFORM = 0,
|
package/lib/index.js
CHANGED
|
@@ -10283,6 +10283,9 @@ $root.userdomain = (function() {
|
|
|
10283
10283
|
* @property {userdomain.users.UserType|null} [userType] User userType
|
|
10284
10284
|
* @property {string|null} [emailSha256] User emailSha256
|
|
10285
10285
|
* @property {string|null} [emailNormalizedSha256] User emailNormalizedSha256
|
|
10286
|
+
* @property {boolean|null} [isHeadspaceStaff] User isHeadspaceStaff
|
|
10287
|
+
* @property {boolean|null} [isTestUser] User isTestUser
|
|
10288
|
+
* @property {Array.<userdomain.users.UserTag>|null} [tags] User tags
|
|
10286
10289
|
*/
|
|
10287
10290
|
|
|
10288
10291
|
/**
|
|
@@ -10294,6 +10297,7 @@ $root.userdomain = (function() {
|
|
|
10294
10297
|
* @param {userdomain.users.IUser=} [properties] Properties to set
|
|
10295
10298
|
*/
|
|
10296
10299
|
function User(properties) {
|
|
10300
|
+
this.tags = [];
|
|
10297
10301
|
if (properties)
|
|
10298
10302
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10299
10303
|
if (properties[keys[i]] != null)
|
|
@@ -10420,6 +10424,30 @@ $root.userdomain = (function() {
|
|
|
10420
10424
|
*/
|
|
10421
10425
|
User.prototype.emailNormalizedSha256 = "";
|
|
10422
10426
|
|
|
10427
|
+
/**
|
|
10428
|
+
* User isHeadspaceStaff.
|
|
10429
|
+
* @member {boolean} isHeadspaceStaff
|
|
10430
|
+
* @memberof userdomain.users.User
|
|
10431
|
+
* @instance
|
|
10432
|
+
*/
|
|
10433
|
+
User.prototype.isHeadspaceStaff = false;
|
|
10434
|
+
|
|
10435
|
+
/**
|
|
10436
|
+
* User isTestUser.
|
|
10437
|
+
* @member {boolean} isTestUser
|
|
10438
|
+
* @memberof userdomain.users.User
|
|
10439
|
+
* @instance
|
|
10440
|
+
*/
|
|
10441
|
+
User.prototype.isTestUser = false;
|
|
10442
|
+
|
|
10443
|
+
/**
|
|
10444
|
+
* User tags.
|
|
10445
|
+
* @member {Array.<userdomain.users.UserTag>} tags
|
|
10446
|
+
* @memberof userdomain.users.User
|
|
10447
|
+
* @instance
|
|
10448
|
+
*/
|
|
10449
|
+
User.prototype.tags = $util.emptyArray;
|
|
10450
|
+
|
|
10423
10451
|
/**
|
|
10424
10452
|
* Creates a new User instance using the specified properties.
|
|
10425
10453
|
* @function create
|
|
@@ -10474,6 +10502,16 @@ $root.userdomain = (function() {
|
|
|
10474
10502
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.emailSha256);
|
|
10475
10503
|
if (message.emailNormalizedSha256 != null && message.hasOwnProperty("emailNormalizedSha256"))
|
|
10476
10504
|
writer.uint32(/* id 15, wireType 2 =*/122).string(message.emailNormalizedSha256);
|
|
10505
|
+
if (message.isHeadspaceStaff != null && message.hasOwnProperty("isHeadspaceStaff"))
|
|
10506
|
+
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.isHeadspaceStaff);
|
|
10507
|
+
if (message.isTestUser != null && message.hasOwnProperty("isTestUser"))
|
|
10508
|
+
writer.uint32(/* id 17, wireType 0 =*/136).bool(message.isTestUser);
|
|
10509
|
+
if (message.tags != null && message.tags.length) {
|
|
10510
|
+
writer.uint32(/* id 18, wireType 2 =*/146).fork();
|
|
10511
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
10512
|
+
writer.int32(message.tags[i]);
|
|
10513
|
+
writer.ldelim();
|
|
10514
|
+
}
|
|
10477
10515
|
return writer;
|
|
10478
10516
|
};
|
|
10479
10517
|
|
|
@@ -10553,6 +10591,22 @@ $root.userdomain = (function() {
|
|
|
10553
10591
|
case 15:
|
|
10554
10592
|
message.emailNormalizedSha256 = reader.string();
|
|
10555
10593
|
break;
|
|
10594
|
+
case 16:
|
|
10595
|
+
message.isHeadspaceStaff = reader.bool();
|
|
10596
|
+
break;
|
|
10597
|
+
case 17:
|
|
10598
|
+
message.isTestUser = reader.bool();
|
|
10599
|
+
break;
|
|
10600
|
+
case 18:
|
|
10601
|
+
if (!(message.tags && message.tags.length))
|
|
10602
|
+
message.tags = [];
|
|
10603
|
+
if ((tag & 7) === 2) {
|
|
10604
|
+
var end2 = reader.uint32() + reader.pos;
|
|
10605
|
+
while (reader.pos < end2)
|
|
10606
|
+
message.tags.push(reader.int32());
|
|
10607
|
+
} else
|
|
10608
|
+
message.tags.push(reader.int32());
|
|
10609
|
+
break;
|
|
10556
10610
|
default:
|
|
10557
10611
|
reader.skipType(tag & 7);
|
|
10558
10612
|
break;
|
|
@@ -10651,6 +10705,25 @@ $root.userdomain = (function() {
|
|
|
10651
10705
|
if (message.emailNormalizedSha256 != null && message.hasOwnProperty("emailNormalizedSha256"))
|
|
10652
10706
|
if (!$util.isString(message.emailNormalizedSha256))
|
|
10653
10707
|
return "emailNormalizedSha256: string expected";
|
|
10708
|
+
if (message.isHeadspaceStaff != null && message.hasOwnProperty("isHeadspaceStaff"))
|
|
10709
|
+
if (typeof message.isHeadspaceStaff !== "boolean")
|
|
10710
|
+
return "isHeadspaceStaff: boolean expected";
|
|
10711
|
+
if (message.isTestUser != null && message.hasOwnProperty("isTestUser"))
|
|
10712
|
+
if (typeof message.isTestUser !== "boolean")
|
|
10713
|
+
return "isTestUser: boolean expected";
|
|
10714
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
10715
|
+
if (!Array.isArray(message.tags))
|
|
10716
|
+
return "tags: array expected";
|
|
10717
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
10718
|
+
switch (message.tags[i]) {
|
|
10719
|
+
default:
|
|
10720
|
+
return "tags: enum value[] expected";
|
|
10721
|
+
case 0:
|
|
10722
|
+
case 1:
|
|
10723
|
+
case 2:
|
|
10724
|
+
break;
|
|
10725
|
+
}
|
|
10726
|
+
}
|
|
10654
10727
|
return null;
|
|
10655
10728
|
};
|
|
10656
10729
|
|
|
@@ -10744,6 +10817,31 @@ $root.userdomain = (function() {
|
|
|
10744
10817
|
message.emailSha256 = String(object.emailSha256);
|
|
10745
10818
|
if (object.emailNormalizedSha256 != null)
|
|
10746
10819
|
message.emailNormalizedSha256 = String(object.emailNormalizedSha256);
|
|
10820
|
+
if (object.isHeadspaceStaff != null)
|
|
10821
|
+
message.isHeadspaceStaff = Boolean(object.isHeadspaceStaff);
|
|
10822
|
+
if (object.isTestUser != null)
|
|
10823
|
+
message.isTestUser = Boolean(object.isTestUser);
|
|
10824
|
+
if (object.tags) {
|
|
10825
|
+
if (!Array.isArray(object.tags))
|
|
10826
|
+
throw TypeError(".userdomain.users.User.tags: array expected");
|
|
10827
|
+
message.tags = [];
|
|
10828
|
+
for (var i = 0; i < object.tags.length; ++i)
|
|
10829
|
+
switch (object.tags[i]) {
|
|
10830
|
+
default:
|
|
10831
|
+
case "USERTAG_UNKNOWN":
|
|
10832
|
+
case 0:
|
|
10833
|
+
message.tags[i] = 0;
|
|
10834
|
+
break;
|
|
10835
|
+
case "USERTAG_HS_STAFF":
|
|
10836
|
+
case 1:
|
|
10837
|
+
message.tags[i] = 1;
|
|
10838
|
+
break;
|
|
10839
|
+
case "USERTAG_HS_TEST_USER":
|
|
10840
|
+
case 2:
|
|
10841
|
+
message.tags[i] = 2;
|
|
10842
|
+
break;
|
|
10843
|
+
}
|
|
10844
|
+
}
|
|
10747
10845
|
return message;
|
|
10748
10846
|
};
|
|
10749
10847
|
|
|
@@ -10760,6 +10858,8 @@ $root.userdomain = (function() {
|
|
|
10760
10858
|
if (!options)
|
|
10761
10859
|
options = {};
|
|
10762
10860
|
var object = {};
|
|
10861
|
+
if (options.arrays || options.defaults)
|
|
10862
|
+
object.tags = [];
|
|
10763
10863
|
if (options.defaults) {
|
|
10764
10864
|
object.hsId = "";
|
|
10765
10865
|
object.auth0Id = "";
|
|
@@ -10776,6 +10876,8 @@ $root.userdomain = (function() {
|
|
|
10776
10876
|
object.userType = options.enums === String ? "CORE_ADMIN" : 0;
|
|
10777
10877
|
object.emailSha256 = "";
|
|
10778
10878
|
object.emailNormalizedSha256 = "";
|
|
10879
|
+
object.isHeadspaceStaff = false;
|
|
10880
|
+
object.isTestUser = false;
|
|
10779
10881
|
}
|
|
10780
10882
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10781
10883
|
object.hsId = message.hsId;
|
|
@@ -10807,6 +10909,15 @@ $root.userdomain = (function() {
|
|
|
10807
10909
|
object.emailSha256 = message.emailSha256;
|
|
10808
10910
|
if (message.emailNormalizedSha256 != null && message.hasOwnProperty("emailNormalizedSha256"))
|
|
10809
10911
|
object.emailNormalizedSha256 = message.emailNormalizedSha256;
|
|
10912
|
+
if (message.isHeadspaceStaff != null && message.hasOwnProperty("isHeadspaceStaff"))
|
|
10913
|
+
object.isHeadspaceStaff = message.isHeadspaceStaff;
|
|
10914
|
+
if (message.isTestUser != null && message.hasOwnProperty("isTestUser"))
|
|
10915
|
+
object.isTestUser = message.isTestUser;
|
|
10916
|
+
if (message.tags && message.tags.length) {
|
|
10917
|
+
object.tags = [];
|
|
10918
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
10919
|
+
object.tags[j] = options.enums === String ? $root.userdomain.users.UserTag[message.tags[j]] : message.tags[j];
|
|
10920
|
+
}
|
|
10810
10921
|
return object;
|
|
10811
10922
|
};
|
|
10812
10923
|
|
|
@@ -10824,6 +10935,22 @@ $root.userdomain = (function() {
|
|
|
10824
10935
|
return User;
|
|
10825
10936
|
})();
|
|
10826
10937
|
|
|
10938
|
+
/**
|
|
10939
|
+
* UserTag enum.
|
|
10940
|
+
* @name userdomain.users.UserTag
|
|
10941
|
+
* @enum {string}
|
|
10942
|
+
* @property {number} USERTAG_UNKNOWN=0 USERTAG_UNKNOWN value
|
|
10943
|
+
* @property {number} USERTAG_HS_STAFF=1 USERTAG_HS_STAFF value
|
|
10944
|
+
* @property {number} USERTAG_HS_TEST_USER=2 USERTAG_HS_TEST_USER value
|
|
10945
|
+
*/
|
|
10946
|
+
users.UserTag = (function() {
|
|
10947
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10948
|
+
values[valuesById[0] = "USERTAG_UNKNOWN"] = 0;
|
|
10949
|
+
values[valuesById[1] = "USERTAG_HS_STAFF"] = 1;
|
|
10950
|
+
values[valuesById[2] = "USERTAG_HS_TEST_USER"] = 2;
|
|
10951
|
+
return values;
|
|
10952
|
+
})();
|
|
10953
|
+
|
|
10827
10954
|
/**
|
|
10828
10955
|
* Platform enum.
|
|
10829
10956
|
* @name userdomain.users.Platform
|
package/package.json
CHANGED