@technova-tech/olive-proto-lib 3.1.7 → 3.1.9
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/admin/admin.js +622 -33
- package/package.json +1 -1
- package/types/admin/admin.d.ts +206 -4
package/admin/admin.js
CHANGED
|
@@ -1391,6 +1391,166 @@ var com;
|
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
1393
|
admin.Role = Role;
|
|
1394
|
+
class RoleInfo extends pb_1.Message {
|
|
1395
|
+
#one_of_decls = [];
|
|
1396
|
+
constructor(data) {
|
|
1397
|
+
super();
|
|
1398
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
1399
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1400
|
+
if ("id" in data && data.id != undefined) {
|
|
1401
|
+
this.id = data.id;
|
|
1402
|
+
}
|
|
1403
|
+
if ("name" in data && data.name != undefined) {
|
|
1404
|
+
this.name = data.name;
|
|
1405
|
+
}
|
|
1406
|
+
if ("description" in data && data.description != undefined) {
|
|
1407
|
+
this.description = data.description;
|
|
1408
|
+
}
|
|
1409
|
+
if ("memberCount" in data && data.memberCount != undefined) {
|
|
1410
|
+
this.memberCount = data.memberCount;
|
|
1411
|
+
}
|
|
1412
|
+
if ("dataScope" in data && data.dataScope != undefined) {
|
|
1413
|
+
this.dataScope = data.dataScope;
|
|
1414
|
+
}
|
|
1415
|
+
if ("isReadonly" in data && data.isReadonly != undefined) {
|
|
1416
|
+
this.isReadonly = data.isReadonly;
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
get id() {
|
|
1421
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1422
|
+
}
|
|
1423
|
+
set id(value) {
|
|
1424
|
+
pb_1.Message.setField(this, 1, value);
|
|
1425
|
+
}
|
|
1426
|
+
get name() {
|
|
1427
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1428
|
+
}
|
|
1429
|
+
set name(value) {
|
|
1430
|
+
pb_1.Message.setField(this, 2, value);
|
|
1431
|
+
}
|
|
1432
|
+
get description() {
|
|
1433
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
1434
|
+
}
|
|
1435
|
+
set description(value) {
|
|
1436
|
+
pb_1.Message.setField(this, 3, value);
|
|
1437
|
+
}
|
|
1438
|
+
get memberCount() {
|
|
1439
|
+
return pb_1.Message.getFieldWithDefault(this, 4, 0);
|
|
1440
|
+
}
|
|
1441
|
+
set memberCount(value) {
|
|
1442
|
+
pb_1.Message.setField(this, 4, value);
|
|
1443
|
+
}
|
|
1444
|
+
get dataScope() {
|
|
1445
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
1446
|
+
}
|
|
1447
|
+
set dataScope(value) {
|
|
1448
|
+
pb_1.Message.setField(this, 6, value);
|
|
1449
|
+
}
|
|
1450
|
+
get isReadonly() {
|
|
1451
|
+
return pb_1.Message.getFieldWithDefault(this, 7, false);
|
|
1452
|
+
}
|
|
1453
|
+
set isReadonly(value) {
|
|
1454
|
+
pb_1.Message.setField(this, 7, value);
|
|
1455
|
+
}
|
|
1456
|
+
static fromObject(data) {
|
|
1457
|
+
const message = new RoleInfo({});
|
|
1458
|
+
if (data.id != null) {
|
|
1459
|
+
message.id = data.id;
|
|
1460
|
+
}
|
|
1461
|
+
if (data.name != null) {
|
|
1462
|
+
message.name = data.name;
|
|
1463
|
+
}
|
|
1464
|
+
if (data.description != null) {
|
|
1465
|
+
message.description = data.description;
|
|
1466
|
+
}
|
|
1467
|
+
if (data.memberCount != null) {
|
|
1468
|
+
message.memberCount = data.memberCount;
|
|
1469
|
+
}
|
|
1470
|
+
if (data.dataScope != null) {
|
|
1471
|
+
message.dataScope = data.dataScope;
|
|
1472
|
+
}
|
|
1473
|
+
if (data.isReadonly != null) {
|
|
1474
|
+
message.isReadonly = data.isReadonly;
|
|
1475
|
+
}
|
|
1476
|
+
return message;
|
|
1477
|
+
}
|
|
1478
|
+
toObject() {
|
|
1479
|
+
const data = {};
|
|
1480
|
+
if (this.id != null) {
|
|
1481
|
+
data.id = this.id;
|
|
1482
|
+
}
|
|
1483
|
+
if (this.name != null) {
|
|
1484
|
+
data.name = this.name;
|
|
1485
|
+
}
|
|
1486
|
+
if (this.description != null) {
|
|
1487
|
+
data.description = this.description;
|
|
1488
|
+
}
|
|
1489
|
+
if (this.memberCount != null) {
|
|
1490
|
+
data.memberCount = this.memberCount;
|
|
1491
|
+
}
|
|
1492
|
+
if (this.dataScope != null) {
|
|
1493
|
+
data.dataScope = this.dataScope;
|
|
1494
|
+
}
|
|
1495
|
+
if (this.isReadonly != null) {
|
|
1496
|
+
data.isReadonly = this.isReadonly;
|
|
1497
|
+
}
|
|
1498
|
+
return data;
|
|
1499
|
+
}
|
|
1500
|
+
serialize(w) {
|
|
1501
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1502
|
+
if (this.id.length)
|
|
1503
|
+
writer.writeString(1, this.id);
|
|
1504
|
+
if (this.name.length)
|
|
1505
|
+
writer.writeString(2, this.name);
|
|
1506
|
+
if (this.description.length)
|
|
1507
|
+
writer.writeString(3, this.description);
|
|
1508
|
+
if (this.memberCount != 0)
|
|
1509
|
+
writer.writeUint32(4, this.memberCount);
|
|
1510
|
+
if (this.dataScope.length)
|
|
1511
|
+
writer.writeString(6, this.dataScope);
|
|
1512
|
+
if (this.isReadonly != false)
|
|
1513
|
+
writer.writeBool(7, this.isReadonly);
|
|
1514
|
+
if (!w)
|
|
1515
|
+
return writer.getResultBuffer();
|
|
1516
|
+
}
|
|
1517
|
+
static deserialize(bytes) {
|
|
1518
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RoleInfo();
|
|
1519
|
+
while (reader.nextField()) {
|
|
1520
|
+
if (reader.isEndGroup())
|
|
1521
|
+
break;
|
|
1522
|
+
switch (reader.getFieldNumber()) {
|
|
1523
|
+
case 1:
|
|
1524
|
+
message.id = reader.readString();
|
|
1525
|
+
break;
|
|
1526
|
+
case 2:
|
|
1527
|
+
message.name = reader.readString();
|
|
1528
|
+
break;
|
|
1529
|
+
case 3:
|
|
1530
|
+
message.description = reader.readString();
|
|
1531
|
+
break;
|
|
1532
|
+
case 4:
|
|
1533
|
+
message.memberCount = reader.readUint32();
|
|
1534
|
+
break;
|
|
1535
|
+
case 6:
|
|
1536
|
+
message.dataScope = reader.readString();
|
|
1537
|
+
break;
|
|
1538
|
+
case 7:
|
|
1539
|
+
message.isReadonly = reader.readBool();
|
|
1540
|
+
break;
|
|
1541
|
+
default: reader.skipField();
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
return message;
|
|
1545
|
+
}
|
|
1546
|
+
serializeBinary() {
|
|
1547
|
+
return this.serialize();
|
|
1548
|
+
}
|
|
1549
|
+
static deserializeBinary(bytes) {
|
|
1550
|
+
return RoleInfo.deserialize(bytes);
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
admin.RoleInfo = RoleInfo;
|
|
1394
1554
|
class CreateRoleRequest extends pb_1.Message {
|
|
1395
1555
|
#one_of_decls = [];
|
|
1396
1556
|
constructor(data) {
|
|
@@ -2521,54 +2681,277 @@ var com;
|
|
|
2521
2681
|
if (this.errors != null) {
|
|
2522
2682
|
data.errors = this.errors.map((item) => item.toObject());
|
|
2523
2683
|
}
|
|
2524
|
-
if (this.data != null) {
|
|
2525
|
-
data.data = this.data.toObject();
|
|
2684
|
+
if (this.data != null) {
|
|
2685
|
+
data.data = this.data.toObject();
|
|
2686
|
+
}
|
|
2687
|
+
if (this.error != null) {
|
|
2688
|
+
data.error = this.error;
|
|
2689
|
+
}
|
|
2690
|
+
return data;
|
|
2691
|
+
}
|
|
2692
|
+
serialize(w) {
|
|
2693
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2694
|
+
if (this.success != false)
|
|
2695
|
+
writer.writeBool(1, this.success);
|
|
2696
|
+
if (this.status.length)
|
|
2697
|
+
writer.writeString(2, this.status);
|
|
2698
|
+
if (this.message.length)
|
|
2699
|
+
writer.writeString(3, this.message);
|
|
2700
|
+
if (this.errors.length)
|
|
2701
|
+
writer.writeRepeatedMessage(4, this.errors, (item) => item.serialize(writer));
|
|
2702
|
+
if (this.hasData)
|
|
2703
|
+
writer.writeMessage(5, this.data, () => this.data.serialize(writer));
|
|
2704
|
+
if (this.error.length)
|
|
2705
|
+
writer.writeString(6, this.error);
|
|
2706
|
+
if (!w)
|
|
2707
|
+
return writer.getResultBuffer();
|
|
2708
|
+
}
|
|
2709
|
+
static deserialize(bytes) {
|
|
2710
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PermissionsResponse();
|
|
2711
|
+
while (reader.nextField()) {
|
|
2712
|
+
if (reader.isEndGroup())
|
|
2713
|
+
break;
|
|
2714
|
+
switch (reader.getFieldNumber()) {
|
|
2715
|
+
case 1:
|
|
2716
|
+
message.success = reader.readBool();
|
|
2717
|
+
break;
|
|
2718
|
+
case 2:
|
|
2719
|
+
message.status = reader.readString();
|
|
2720
|
+
break;
|
|
2721
|
+
case 3:
|
|
2722
|
+
message.message = reader.readString();
|
|
2723
|
+
break;
|
|
2724
|
+
case 4:
|
|
2725
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 4, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
2726
|
+
break;
|
|
2727
|
+
case 5:
|
|
2728
|
+
reader.readMessage(message.data, () => message.data = PermissionsResponseData.deserialize(reader));
|
|
2729
|
+
break;
|
|
2730
|
+
case 6:
|
|
2731
|
+
message.error = reader.readString();
|
|
2732
|
+
break;
|
|
2733
|
+
default: reader.skipField();
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
return message;
|
|
2737
|
+
}
|
|
2738
|
+
serializeBinary() {
|
|
2739
|
+
return this.serialize();
|
|
2740
|
+
}
|
|
2741
|
+
static deserializeBinary(bytes) {
|
|
2742
|
+
return PermissionsResponse.deserialize(bytes);
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
admin.PermissionsResponse = PermissionsResponse;
|
|
2746
|
+
class Admin extends pb_1.Message {
|
|
2747
|
+
#one_of_decls = [];
|
|
2748
|
+
constructor(data) {
|
|
2749
|
+
super();
|
|
2750
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
2751
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2752
|
+
if ("id" in data && data.id != undefined) {
|
|
2753
|
+
this.id = data.id;
|
|
2754
|
+
}
|
|
2755
|
+
if ("email" in data && data.email != undefined) {
|
|
2756
|
+
this.email = data.email;
|
|
2757
|
+
}
|
|
2758
|
+
if ("firstName" in data && data.firstName != undefined) {
|
|
2759
|
+
this.firstName = data.firstName;
|
|
2760
|
+
}
|
|
2761
|
+
if ("lastName" in data && data.lastName != undefined) {
|
|
2762
|
+
this.lastName = data.lastName;
|
|
2763
|
+
}
|
|
2764
|
+
if ("role" in data && data.role != undefined) {
|
|
2765
|
+
this.role = data.role;
|
|
2766
|
+
}
|
|
2767
|
+
if ("status" in data && data.status != undefined) {
|
|
2768
|
+
this.status = data.status;
|
|
2769
|
+
}
|
|
2770
|
+
if ("phone" in data && data.phone != undefined) {
|
|
2771
|
+
this.phone = data.phone;
|
|
2772
|
+
}
|
|
2773
|
+
if ("mfbId" in data && data.mfbId != undefined) {
|
|
2774
|
+
this.mfbId = data.mfbId;
|
|
2775
|
+
}
|
|
2776
|
+
if ("regionId" in data && data.regionId != undefined) {
|
|
2777
|
+
this.regionId = data.regionId;
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
get id() {
|
|
2782
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2783
|
+
}
|
|
2784
|
+
set id(value) {
|
|
2785
|
+
pb_1.Message.setField(this, 1, value);
|
|
2786
|
+
}
|
|
2787
|
+
get email() {
|
|
2788
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2789
|
+
}
|
|
2790
|
+
set email(value) {
|
|
2791
|
+
pb_1.Message.setField(this, 2, value);
|
|
2792
|
+
}
|
|
2793
|
+
get firstName() {
|
|
2794
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
2795
|
+
}
|
|
2796
|
+
set firstName(value) {
|
|
2797
|
+
pb_1.Message.setField(this, 3, value);
|
|
2798
|
+
}
|
|
2799
|
+
get lastName() {
|
|
2800
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
2801
|
+
}
|
|
2802
|
+
set lastName(value) {
|
|
2803
|
+
pb_1.Message.setField(this, 4, value);
|
|
2804
|
+
}
|
|
2805
|
+
get role() {
|
|
2806
|
+
return pb_1.Message.getWrapperField(this, Role, 5);
|
|
2807
|
+
}
|
|
2808
|
+
set role(value) {
|
|
2809
|
+
pb_1.Message.setWrapperField(this, 5, value);
|
|
2810
|
+
}
|
|
2811
|
+
get hasRole() {
|
|
2812
|
+
return pb_1.Message.getField(this, 5) != null;
|
|
2813
|
+
}
|
|
2814
|
+
get status() {
|
|
2815
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
2816
|
+
}
|
|
2817
|
+
set status(value) {
|
|
2818
|
+
pb_1.Message.setField(this, 6, value);
|
|
2819
|
+
}
|
|
2820
|
+
get phone() {
|
|
2821
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
2822
|
+
}
|
|
2823
|
+
set phone(value) {
|
|
2824
|
+
pb_1.Message.setField(this, 7, value);
|
|
2825
|
+
}
|
|
2826
|
+
get mfbId() {
|
|
2827
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
2828
|
+
}
|
|
2829
|
+
set mfbId(value) {
|
|
2830
|
+
pb_1.Message.setField(this, 8, value);
|
|
2831
|
+
}
|
|
2832
|
+
get regionId() {
|
|
2833
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
2834
|
+
}
|
|
2835
|
+
set regionId(value) {
|
|
2836
|
+
pb_1.Message.setField(this, 9, value);
|
|
2837
|
+
}
|
|
2838
|
+
static fromObject(data) {
|
|
2839
|
+
const message = new Admin({});
|
|
2840
|
+
if (data.id != null) {
|
|
2841
|
+
message.id = data.id;
|
|
2842
|
+
}
|
|
2843
|
+
if (data.email != null) {
|
|
2844
|
+
message.email = data.email;
|
|
2845
|
+
}
|
|
2846
|
+
if (data.firstName != null) {
|
|
2847
|
+
message.firstName = data.firstName;
|
|
2848
|
+
}
|
|
2849
|
+
if (data.lastName != null) {
|
|
2850
|
+
message.lastName = data.lastName;
|
|
2851
|
+
}
|
|
2852
|
+
if (data.role != null) {
|
|
2853
|
+
message.role = Role.fromObject(data.role);
|
|
2854
|
+
}
|
|
2855
|
+
if (data.status != null) {
|
|
2856
|
+
message.status = data.status;
|
|
2857
|
+
}
|
|
2858
|
+
if (data.phone != null) {
|
|
2859
|
+
message.phone = data.phone;
|
|
2860
|
+
}
|
|
2861
|
+
if (data.mfbId != null) {
|
|
2862
|
+
message.mfbId = data.mfbId;
|
|
2863
|
+
}
|
|
2864
|
+
if (data.regionId != null) {
|
|
2865
|
+
message.regionId = data.regionId;
|
|
2866
|
+
}
|
|
2867
|
+
return message;
|
|
2868
|
+
}
|
|
2869
|
+
toObject() {
|
|
2870
|
+
const data = {};
|
|
2871
|
+
if (this.id != null) {
|
|
2872
|
+
data.id = this.id;
|
|
2873
|
+
}
|
|
2874
|
+
if (this.email != null) {
|
|
2875
|
+
data.email = this.email;
|
|
2876
|
+
}
|
|
2877
|
+
if (this.firstName != null) {
|
|
2878
|
+
data.firstName = this.firstName;
|
|
2879
|
+
}
|
|
2880
|
+
if (this.lastName != null) {
|
|
2881
|
+
data.lastName = this.lastName;
|
|
2882
|
+
}
|
|
2883
|
+
if (this.role != null) {
|
|
2884
|
+
data.role = this.role.toObject();
|
|
2885
|
+
}
|
|
2886
|
+
if (this.status != null) {
|
|
2887
|
+
data.status = this.status;
|
|
2888
|
+
}
|
|
2889
|
+
if (this.phone != null) {
|
|
2890
|
+
data.phone = this.phone;
|
|
2891
|
+
}
|
|
2892
|
+
if (this.mfbId != null) {
|
|
2893
|
+
data.mfbId = this.mfbId;
|
|
2526
2894
|
}
|
|
2527
|
-
if (this.
|
|
2528
|
-
data.
|
|
2895
|
+
if (this.regionId != null) {
|
|
2896
|
+
data.regionId = this.regionId;
|
|
2529
2897
|
}
|
|
2530
2898
|
return data;
|
|
2531
2899
|
}
|
|
2532
2900
|
serialize(w) {
|
|
2533
2901
|
const writer = w || new pb_1.BinaryWriter();
|
|
2534
|
-
if (this.
|
|
2535
|
-
writer.
|
|
2902
|
+
if (this.id.length)
|
|
2903
|
+
writer.writeString(1, this.id);
|
|
2904
|
+
if (this.email.length)
|
|
2905
|
+
writer.writeString(2, this.email);
|
|
2906
|
+
if (this.firstName.length)
|
|
2907
|
+
writer.writeString(3, this.firstName);
|
|
2908
|
+
if (this.lastName.length)
|
|
2909
|
+
writer.writeString(4, this.lastName);
|
|
2910
|
+
if (this.hasRole)
|
|
2911
|
+
writer.writeMessage(5, this.role, () => this.role.serialize(writer));
|
|
2536
2912
|
if (this.status.length)
|
|
2537
|
-
writer.writeString(
|
|
2538
|
-
if (this.
|
|
2539
|
-
writer.writeString(
|
|
2540
|
-
if (this.
|
|
2541
|
-
writer.
|
|
2542
|
-
if (this.
|
|
2543
|
-
writer.
|
|
2544
|
-
if (this.error.length)
|
|
2545
|
-
writer.writeString(6, this.error);
|
|
2913
|
+
writer.writeString(6, this.status);
|
|
2914
|
+
if (this.phone.length)
|
|
2915
|
+
writer.writeString(7, this.phone);
|
|
2916
|
+
if (this.mfbId.length)
|
|
2917
|
+
writer.writeString(8, this.mfbId);
|
|
2918
|
+
if (this.regionId.length)
|
|
2919
|
+
writer.writeString(9, this.regionId);
|
|
2546
2920
|
if (!w)
|
|
2547
2921
|
return writer.getResultBuffer();
|
|
2548
2922
|
}
|
|
2549
2923
|
static deserialize(bytes) {
|
|
2550
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
2924
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Admin();
|
|
2551
2925
|
while (reader.nextField()) {
|
|
2552
2926
|
if (reader.isEndGroup())
|
|
2553
2927
|
break;
|
|
2554
2928
|
switch (reader.getFieldNumber()) {
|
|
2555
2929
|
case 1:
|
|
2556
|
-
message.
|
|
2930
|
+
message.id = reader.readString();
|
|
2557
2931
|
break;
|
|
2558
2932
|
case 2:
|
|
2559
|
-
message.
|
|
2933
|
+
message.email = reader.readString();
|
|
2560
2934
|
break;
|
|
2561
2935
|
case 3:
|
|
2562
|
-
message.
|
|
2936
|
+
message.firstName = reader.readString();
|
|
2563
2937
|
break;
|
|
2564
2938
|
case 4:
|
|
2565
|
-
|
|
2939
|
+
message.lastName = reader.readString();
|
|
2566
2940
|
break;
|
|
2567
2941
|
case 5:
|
|
2568
|
-
reader.readMessage(message.
|
|
2942
|
+
reader.readMessage(message.role, () => message.role = Role.deserialize(reader));
|
|
2569
2943
|
break;
|
|
2570
2944
|
case 6:
|
|
2571
|
-
message.
|
|
2945
|
+
message.status = reader.readString();
|
|
2946
|
+
break;
|
|
2947
|
+
case 7:
|
|
2948
|
+
message.phone = reader.readString();
|
|
2949
|
+
break;
|
|
2950
|
+
case 8:
|
|
2951
|
+
message.mfbId = reader.readString();
|
|
2952
|
+
break;
|
|
2953
|
+
case 9:
|
|
2954
|
+
message.regionId = reader.readString();
|
|
2572
2955
|
break;
|
|
2573
2956
|
default: reader.skipField();
|
|
2574
2957
|
}
|
|
@@ -2579,11 +2962,11 @@ var com;
|
|
|
2579
2962
|
return this.serialize();
|
|
2580
2963
|
}
|
|
2581
2964
|
static deserializeBinary(bytes) {
|
|
2582
|
-
return
|
|
2965
|
+
return Admin.deserialize(bytes);
|
|
2583
2966
|
}
|
|
2584
2967
|
}
|
|
2585
|
-
admin.
|
|
2586
|
-
class
|
|
2968
|
+
admin.Admin = Admin;
|
|
2969
|
+
class AdminInfo extends pb_1.Message {
|
|
2587
2970
|
#one_of_decls = [];
|
|
2588
2971
|
constructor(data) {
|
|
2589
2972
|
super();
|
|
@@ -2616,6 +2999,9 @@ var com;
|
|
|
2616
2999
|
if ("regionId" in data && data.regionId != undefined) {
|
|
2617
3000
|
this.regionId = data.regionId;
|
|
2618
3001
|
}
|
|
3002
|
+
if ("region" in data && data.region != undefined) {
|
|
3003
|
+
this.region = data.region;
|
|
3004
|
+
}
|
|
2619
3005
|
}
|
|
2620
3006
|
}
|
|
2621
3007
|
get id() {
|
|
@@ -2643,7 +3029,7 @@ var com;
|
|
|
2643
3029
|
pb_1.Message.setField(this, 4, value);
|
|
2644
3030
|
}
|
|
2645
3031
|
get role() {
|
|
2646
|
-
return pb_1.Message.getWrapperField(this,
|
|
3032
|
+
return pb_1.Message.getWrapperField(this, RoleInfo, 5);
|
|
2647
3033
|
}
|
|
2648
3034
|
set role(value) {
|
|
2649
3035
|
pb_1.Message.setWrapperField(this, 5, value);
|
|
@@ -2675,8 +3061,17 @@ var com;
|
|
|
2675
3061
|
set regionId(value) {
|
|
2676
3062
|
pb_1.Message.setField(this, 9, value);
|
|
2677
3063
|
}
|
|
3064
|
+
get region() {
|
|
3065
|
+
return pb_1.Message.getWrapperField(this, Region, 10);
|
|
3066
|
+
}
|
|
3067
|
+
set region(value) {
|
|
3068
|
+
pb_1.Message.setWrapperField(this, 10, value);
|
|
3069
|
+
}
|
|
3070
|
+
get hasRegion() {
|
|
3071
|
+
return pb_1.Message.getField(this, 10) != null;
|
|
3072
|
+
}
|
|
2678
3073
|
static fromObject(data) {
|
|
2679
|
-
const message = new
|
|
3074
|
+
const message = new AdminInfo({});
|
|
2680
3075
|
if (data.id != null) {
|
|
2681
3076
|
message.id = data.id;
|
|
2682
3077
|
}
|
|
@@ -2690,7 +3085,7 @@ var com;
|
|
|
2690
3085
|
message.lastName = data.lastName;
|
|
2691
3086
|
}
|
|
2692
3087
|
if (data.role != null) {
|
|
2693
|
-
message.role =
|
|
3088
|
+
message.role = RoleInfo.fromObject(data.role);
|
|
2694
3089
|
}
|
|
2695
3090
|
if (data.status != null) {
|
|
2696
3091
|
message.status = data.status;
|
|
@@ -2704,6 +3099,9 @@ var com;
|
|
|
2704
3099
|
if (data.regionId != null) {
|
|
2705
3100
|
message.regionId = data.regionId;
|
|
2706
3101
|
}
|
|
3102
|
+
if (data.region != null) {
|
|
3103
|
+
message.region = Region.fromObject(data.region);
|
|
3104
|
+
}
|
|
2707
3105
|
return message;
|
|
2708
3106
|
}
|
|
2709
3107
|
toObject() {
|
|
@@ -2735,6 +3133,9 @@ var com;
|
|
|
2735
3133
|
if (this.regionId != null) {
|
|
2736
3134
|
data.regionId = this.regionId;
|
|
2737
3135
|
}
|
|
3136
|
+
if (this.region != null) {
|
|
3137
|
+
data.region = this.region.toObject();
|
|
3138
|
+
}
|
|
2738
3139
|
return data;
|
|
2739
3140
|
}
|
|
2740
3141
|
serialize(w) {
|
|
@@ -2757,11 +3158,13 @@ var com;
|
|
|
2757
3158
|
writer.writeString(8, this.mfbId);
|
|
2758
3159
|
if (this.regionId.length)
|
|
2759
3160
|
writer.writeString(9, this.regionId);
|
|
3161
|
+
if (this.hasRegion)
|
|
3162
|
+
writer.writeMessage(10, this.region, () => this.region.serialize(writer));
|
|
2760
3163
|
if (!w)
|
|
2761
3164
|
return writer.getResultBuffer();
|
|
2762
3165
|
}
|
|
2763
3166
|
static deserialize(bytes) {
|
|
2764
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
3167
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AdminInfo();
|
|
2765
3168
|
while (reader.nextField()) {
|
|
2766
3169
|
if (reader.isEndGroup())
|
|
2767
3170
|
break;
|
|
@@ -2779,7 +3182,7 @@ var com;
|
|
|
2779
3182
|
message.lastName = reader.readString();
|
|
2780
3183
|
break;
|
|
2781
3184
|
case 5:
|
|
2782
|
-
reader.readMessage(message.role, () => message.role =
|
|
3185
|
+
reader.readMessage(message.role, () => message.role = RoleInfo.deserialize(reader));
|
|
2783
3186
|
break;
|
|
2784
3187
|
case 6:
|
|
2785
3188
|
message.status = reader.readString();
|
|
@@ -2793,6 +3196,9 @@ var com;
|
|
|
2793
3196
|
case 9:
|
|
2794
3197
|
message.regionId = reader.readString();
|
|
2795
3198
|
break;
|
|
3199
|
+
case 10:
|
|
3200
|
+
reader.readMessage(message.region, () => message.region = Region.deserialize(reader));
|
|
3201
|
+
break;
|
|
2796
3202
|
default: reader.skipField();
|
|
2797
3203
|
}
|
|
2798
3204
|
}
|
|
@@ -2802,10 +3208,10 @@ var com;
|
|
|
2802
3208
|
return this.serialize();
|
|
2803
3209
|
}
|
|
2804
3210
|
static deserializeBinary(bytes) {
|
|
2805
|
-
return
|
|
3211
|
+
return AdminInfo.deserialize(bytes);
|
|
2806
3212
|
}
|
|
2807
3213
|
}
|
|
2808
|
-
admin.
|
|
3214
|
+
admin.AdminInfo = AdminInfo;
|
|
2809
3215
|
class AdminResponse extends pb_1.Message {
|
|
2810
3216
|
#one_of_decls = [];
|
|
2811
3217
|
constructor(data) {
|
|
@@ -3292,6 +3698,189 @@ var com;
|
|
|
3292
3698
|
}
|
|
3293
3699
|
}
|
|
3294
3700
|
admin.AdminsResponse = AdminsResponse;
|
|
3701
|
+
class GetAdminsResponse extends pb_1.Message {
|
|
3702
|
+
#one_of_decls = [];
|
|
3703
|
+
constructor(data) {
|
|
3704
|
+
super();
|
|
3705
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 5], this.#one_of_decls);
|
|
3706
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
3707
|
+
if ("success" in data && data.success != undefined) {
|
|
3708
|
+
this.success = data.success;
|
|
3709
|
+
}
|
|
3710
|
+
if ("status" in data && data.status != undefined) {
|
|
3711
|
+
this.status = data.status;
|
|
3712
|
+
}
|
|
3713
|
+
if ("message" in data && data.message != undefined) {
|
|
3714
|
+
this.message = data.message;
|
|
3715
|
+
}
|
|
3716
|
+
if ("errors" in data && data.errors != undefined) {
|
|
3717
|
+
this.errors = data.errors;
|
|
3718
|
+
}
|
|
3719
|
+
if ("data" in data && data.data != undefined) {
|
|
3720
|
+
this.data = data.data;
|
|
3721
|
+
}
|
|
3722
|
+
if ("error" in data && data.error != undefined) {
|
|
3723
|
+
this.error = data.error;
|
|
3724
|
+
}
|
|
3725
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
3726
|
+
this.pagination = data.pagination;
|
|
3727
|
+
}
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3730
|
+
get success() {
|
|
3731
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
3732
|
+
}
|
|
3733
|
+
set success(value) {
|
|
3734
|
+
pb_1.Message.setField(this, 1, value);
|
|
3735
|
+
}
|
|
3736
|
+
get status() {
|
|
3737
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
3738
|
+
}
|
|
3739
|
+
set status(value) {
|
|
3740
|
+
pb_1.Message.setField(this, 2, value);
|
|
3741
|
+
}
|
|
3742
|
+
get message() {
|
|
3743
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
3744
|
+
}
|
|
3745
|
+
set message(value) {
|
|
3746
|
+
pb_1.Message.setField(this, 3, value);
|
|
3747
|
+
}
|
|
3748
|
+
get errors() {
|
|
3749
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 4);
|
|
3750
|
+
}
|
|
3751
|
+
set errors(value) {
|
|
3752
|
+
pb_1.Message.setRepeatedWrapperField(this, 4, value);
|
|
3753
|
+
}
|
|
3754
|
+
get data() {
|
|
3755
|
+
return pb_1.Message.getRepeatedWrapperField(this, AdminInfo, 5);
|
|
3756
|
+
}
|
|
3757
|
+
set data(value) {
|
|
3758
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
3759
|
+
}
|
|
3760
|
+
get error() {
|
|
3761
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
3762
|
+
}
|
|
3763
|
+
set error(value) {
|
|
3764
|
+
pb_1.Message.setField(this, 6, value);
|
|
3765
|
+
}
|
|
3766
|
+
get pagination() {
|
|
3767
|
+
return pb_1.Message.getWrapperField(this, Pagination, 7);
|
|
3768
|
+
}
|
|
3769
|
+
set pagination(value) {
|
|
3770
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
3771
|
+
}
|
|
3772
|
+
get hasPagination() {
|
|
3773
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
3774
|
+
}
|
|
3775
|
+
static fromObject(data) {
|
|
3776
|
+
const message = new GetAdminsResponse({});
|
|
3777
|
+
if (data.success != null) {
|
|
3778
|
+
message.success = data.success;
|
|
3779
|
+
}
|
|
3780
|
+
if (data.status != null) {
|
|
3781
|
+
message.status = data.status;
|
|
3782
|
+
}
|
|
3783
|
+
if (data.message != null) {
|
|
3784
|
+
message.message = data.message;
|
|
3785
|
+
}
|
|
3786
|
+
if (data.errors != null) {
|
|
3787
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
3788
|
+
}
|
|
3789
|
+
if (data.data != null) {
|
|
3790
|
+
message.data = data.data.map(item => AdminInfo.fromObject(item));
|
|
3791
|
+
}
|
|
3792
|
+
if (data.error != null) {
|
|
3793
|
+
message.error = data.error;
|
|
3794
|
+
}
|
|
3795
|
+
if (data.pagination != null) {
|
|
3796
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
3797
|
+
}
|
|
3798
|
+
return message;
|
|
3799
|
+
}
|
|
3800
|
+
toObject() {
|
|
3801
|
+
const data = {};
|
|
3802
|
+
if (this.success != null) {
|
|
3803
|
+
data.success = this.success;
|
|
3804
|
+
}
|
|
3805
|
+
if (this.status != null) {
|
|
3806
|
+
data.status = this.status;
|
|
3807
|
+
}
|
|
3808
|
+
if (this.message != null) {
|
|
3809
|
+
data.message = this.message;
|
|
3810
|
+
}
|
|
3811
|
+
if (this.errors != null) {
|
|
3812
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
3813
|
+
}
|
|
3814
|
+
if (this.data != null) {
|
|
3815
|
+
data.data = this.data.map((item) => item.toObject());
|
|
3816
|
+
}
|
|
3817
|
+
if (this.error != null) {
|
|
3818
|
+
data.error = this.error;
|
|
3819
|
+
}
|
|
3820
|
+
if (this.pagination != null) {
|
|
3821
|
+
data.pagination = this.pagination.toObject();
|
|
3822
|
+
}
|
|
3823
|
+
return data;
|
|
3824
|
+
}
|
|
3825
|
+
serialize(w) {
|
|
3826
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
3827
|
+
if (this.success != false)
|
|
3828
|
+
writer.writeBool(1, this.success);
|
|
3829
|
+
if (this.status.length)
|
|
3830
|
+
writer.writeString(2, this.status);
|
|
3831
|
+
if (this.message.length)
|
|
3832
|
+
writer.writeString(3, this.message);
|
|
3833
|
+
if (this.errors.length)
|
|
3834
|
+
writer.writeRepeatedMessage(4, this.errors, (item) => item.serialize(writer));
|
|
3835
|
+
if (this.data.length)
|
|
3836
|
+
writer.writeRepeatedMessage(5, this.data, (item) => item.serialize(writer));
|
|
3837
|
+
if (this.error.length)
|
|
3838
|
+
writer.writeString(6, this.error);
|
|
3839
|
+
if (this.hasPagination)
|
|
3840
|
+
writer.writeMessage(7, this.pagination, () => this.pagination.serialize(writer));
|
|
3841
|
+
if (!w)
|
|
3842
|
+
return writer.getResultBuffer();
|
|
3843
|
+
}
|
|
3844
|
+
static deserialize(bytes) {
|
|
3845
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetAdminsResponse();
|
|
3846
|
+
while (reader.nextField()) {
|
|
3847
|
+
if (reader.isEndGroup())
|
|
3848
|
+
break;
|
|
3849
|
+
switch (reader.getFieldNumber()) {
|
|
3850
|
+
case 1:
|
|
3851
|
+
message.success = reader.readBool();
|
|
3852
|
+
break;
|
|
3853
|
+
case 2:
|
|
3854
|
+
message.status = reader.readString();
|
|
3855
|
+
break;
|
|
3856
|
+
case 3:
|
|
3857
|
+
message.message = reader.readString();
|
|
3858
|
+
break;
|
|
3859
|
+
case 4:
|
|
3860
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 4, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
3861
|
+
break;
|
|
3862
|
+
case 5:
|
|
3863
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 5, AdminInfo.deserialize(reader), AdminInfo));
|
|
3864
|
+
break;
|
|
3865
|
+
case 6:
|
|
3866
|
+
message.error = reader.readString();
|
|
3867
|
+
break;
|
|
3868
|
+
case 7:
|
|
3869
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
3870
|
+
break;
|
|
3871
|
+
default: reader.skipField();
|
|
3872
|
+
}
|
|
3873
|
+
}
|
|
3874
|
+
return message;
|
|
3875
|
+
}
|
|
3876
|
+
serializeBinary() {
|
|
3877
|
+
return this.serialize();
|
|
3878
|
+
}
|
|
3879
|
+
static deserializeBinary(bytes) {
|
|
3880
|
+
return GetAdminsResponse.deserialize(bytes);
|
|
3881
|
+
}
|
|
3882
|
+
}
|
|
3883
|
+
admin.GetAdminsResponse = GetAdminsResponse;
|
|
3295
3884
|
class InviteAdminRequest extends pb_1.Message {
|
|
3296
3885
|
#one_of_decls = [];
|
|
3297
3886
|
constructor(data) {
|
|
@@ -8352,7 +8941,7 @@ var com;
|
|
|
8352
8941
|
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
8353
8942
|
requestDeserialize: (bytes) => GetAdminsRequest.deserialize(new Uint8Array(bytes)),
|
|
8354
8943
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
8355
|
-
responseDeserialize: (bytes) =>
|
|
8944
|
+
responseDeserialize: (bytes) => GetAdminsResponse.deserialize(new Uint8Array(bytes))
|
|
8356
8945
|
},
|
|
8357
8946
|
RequestPasswordReset: {
|
|
8358
8947
|
path: "/com.pkg.admin.AdminService/RequestPasswordReset",
|
package/package.json
CHANGED
package/types/admin/admin.d.ts
CHANGED
|
@@ -392,6 +392,50 @@ export declare namespace com.pkg.admin {
|
|
|
392
392
|
serializeBinary(): Uint8Array;
|
|
393
393
|
static deserializeBinary(bytes: Uint8Array): Role;
|
|
394
394
|
}
|
|
395
|
+
export class RoleInfo extends pb_1.Message {
|
|
396
|
+
#private;
|
|
397
|
+
constructor(data?: any[] | {
|
|
398
|
+
id?: string;
|
|
399
|
+
name?: string;
|
|
400
|
+
description?: string;
|
|
401
|
+
memberCount?: number;
|
|
402
|
+
dataScope?: string;
|
|
403
|
+
isReadonly?: boolean;
|
|
404
|
+
});
|
|
405
|
+
get id(): string;
|
|
406
|
+
set id(value: string);
|
|
407
|
+
get name(): string;
|
|
408
|
+
set name(value: string);
|
|
409
|
+
get description(): string;
|
|
410
|
+
set description(value: string);
|
|
411
|
+
get memberCount(): number;
|
|
412
|
+
set memberCount(value: number);
|
|
413
|
+
get dataScope(): string;
|
|
414
|
+
set dataScope(value: string);
|
|
415
|
+
get isReadonly(): boolean;
|
|
416
|
+
set isReadonly(value: boolean);
|
|
417
|
+
static fromObject(data: {
|
|
418
|
+
id?: string;
|
|
419
|
+
name?: string;
|
|
420
|
+
description?: string;
|
|
421
|
+
memberCount?: number;
|
|
422
|
+
dataScope?: string;
|
|
423
|
+
isReadonly?: boolean;
|
|
424
|
+
}): RoleInfo;
|
|
425
|
+
toObject(): {
|
|
426
|
+
id?: string | undefined;
|
|
427
|
+
name?: string | undefined;
|
|
428
|
+
description?: string | undefined;
|
|
429
|
+
memberCount?: number | undefined;
|
|
430
|
+
dataScope?: string | undefined;
|
|
431
|
+
isReadonly?: boolean | undefined;
|
|
432
|
+
};
|
|
433
|
+
serialize(): Uint8Array;
|
|
434
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
435
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RoleInfo;
|
|
436
|
+
serializeBinary(): Uint8Array;
|
|
437
|
+
static deserializeBinary(bytes: Uint8Array): RoleInfo;
|
|
438
|
+
}
|
|
395
439
|
export class CreateRoleRequest extends pb_1.Message {
|
|
396
440
|
#private;
|
|
397
441
|
constructor(data?: any[] | {
|
|
@@ -881,6 +925,83 @@ export declare namespace com.pkg.admin {
|
|
|
881
925
|
serializeBinary(): Uint8Array;
|
|
882
926
|
static deserializeBinary(bytes: Uint8Array): Admin;
|
|
883
927
|
}
|
|
928
|
+
export class AdminInfo extends pb_1.Message {
|
|
929
|
+
#private;
|
|
930
|
+
constructor(data?: any[] | {
|
|
931
|
+
id?: string;
|
|
932
|
+
email?: string;
|
|
933
|
+
firstName?: string;
|
|
934
|
+
lastName?: string;
|
|
935
|
+
role?: RoleInfo;
|
|
936
|
+
status?: string;
|
|
937
|
+
phone?: string;
|
|
938
|
+
mfbId?: string;
|
|
939
|
+
regionId?: string;
|
|
940
|
+
region?: Region;
|
|
941
|
+
});
|
|
942
|
+
get id(): string;
|
|
943
|
+
set id(value: string);
|
|
944
|
+
get email(): string;
|
|
945
|
+
set email(value: string);
|
|
946
|
+
get firstName(): string;
|
|
947
|
+
set firstName(value: string);
|
|
948
|
+
get lastName(): string;
|
|
949
|
+
set lastName(value: string);
|
|
950
|
+
get role(): RoleInfo;
|
|
951
|
+
set role(value: RoleInfo);
|
|
952
|
+
get hasRole(): boolean;
|
|
953
|
+
get status(): string;
|
|
954
|
+
set status(value: string);
|
|
955
|
+
get phone(): string;
|
|
956
|
+
set phone(value: string);
|
|
957
|
+
get mfbId(): string;
|
|
958
|
+
set mfbId(value: string);
|
|
959
|
+
get regionId(): string;
|
|
960
|
+
set regionId(value: string);
|
|
961
|
+
get region(): Region;
|
|
962
|
+
set region(value: Region);
|
|
963
|
+
get hasRegion(): boolean;
|
|
964
|
+
static fromObject(data: {
|
|
965
|
+
id?: string;
|
|
966
|
+
email?: string;
|
|
967
|
+
firstName?: string;
|
|
968
|
+
lastName?: string;
|
|
969
|
+
role?: ReturnType<typeof RoleInfo.prototype.toObject>;
|
|
970
|
+
status?: string;
|
|
971
|
+
phone?: string;
|
|
972
|
+
mfbId?: string;
|
|
973
|
+
regionId?: string;
|
|
974
|
+
region?: ReturnType<typeof Region.prototype.toObject>;
|
|
975
|
+
}): AdminInfo;
|
|
976
|
+
toObject(): {
|
|
977
|
+
id?: string | undefined;
|
|
978
|
+
email?: string | undefined;
|
|
979
|
+
firstName?: string | undefined;
|
|
980
|
+
lastName?: string | undefined;
|
|
981
|
+
role?: {
|
|
982
|
+
id?: string | undefined;
|
|
983
|
+
name?: string | undefined;
|
|
984
|
+
description?: string | undefined;
|
|
985
|
+
memberCount?: number | undefined;
|
|
986
|
+
dataScope?: string | undefined;
|
|
987
|
+
isReadonly?: boolean | undefined;
|
|
988
|
+
} | undefined;
|
|
989
|
+
status?: string | undefined;
|
|
990
|
+
phone?: string | undefined;
|
|
991
|
+
mfbId?: string | undefined;
|
|
992
|
+
regionId?: string | undefined;
|
|
993
|
+
region?: {
|
|
994
|
+
name?: string | undefined;
|
|
995
|
+
description?: string | undefined;
|
|
996
|
+
active?: boolean | undefined;
|
|
997
|
+
} | undefined;
|
|
998
|
+
};
|
|
999
|
+
serialize(): Uint8Array;
|
|
1000
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1001
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AdminInfo;
|
|
1002
|
+
serializeBinary(): Uint8Array;
|
|
1003
|
+
static deserializeBinary(bytes: Uint8Array): AdminInfo;
|
|
1004
|
+
}
|
|
884
1005
|
export class AdminResponse extends pb_1.Message {
|
|
885
1006
|
#private;
|
|
886
1007
|
constructor(data?: any[] | {
|
|
@@ -1075,6 +1196,87 @@ export declare namespace com.pkg.admin {
|
|
|
1075
1196
|
serializeBinary(): Uint8Array;
|
|
1076
1197
|
static deserializeBinary(bytes: Uint8Array): AdminsResponse;
|
|
1077
1198
|
}
|
|
1199
|
+
export class GetAdminsResponse extends pb_1.Message {
|
|
1200
|
+
#private;
|
|
1201
|
+
constructor(data?: any[] | {
|
|
1202
|
+
success?: boolean;
|
|
1203
|
+
status?: string;
|
|
1204
|
+
message?: string;
|
|
1205
|
+
errors?: ValidationErrors[];
|
|
1206
|
+
data?: AdminInfo[];
|
|
1207
|
+
error?: string;
|
|
1208
|
+
pagination?: Pagination;
|
|
1209
|
+
});
|
|
1210
|
+
get success(): boolean;
|
|
1211
|
+
set success(value: boolean);
|
|
1212
|
+
get status(): string;
|
|
1213
|
+
set status(value: string);
|
|
1214
|
+
get message(): string;
|
|
1215
|
+
set message(value: string);
|
|
1216
|
+
get errors(): ValidationErrors[];
|
|
1217
|
+
set errors(value: ValidationErrors[]);
|
|
1218
|
+
get data(): AdminInfo[];
|
|
1219
|
+
set data(value: AdminInfo[]);
|
|
1220
|
+
get error(): string;
|
|
1221
|
+
set error(value: string);
|
|
1222
|
+
get pagination(): Pagination;
|
|
1223
|
+
set pagination(value: Pagination);
|
|
1224
|
+
get hasPagination(): boolean;
|
|
1225
|
+
static fromObject(data: {
|
|
1226
|
+
success?: boolean;
|
|
1227
|
+
status?: string;
|
|
1228
|
+
message?: string;
|
|
1229
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
|
|
1230
|
+
data?: ReturnType<typeof AdminInfo.prototype.toObject>[];
|
|
1231
|
+
error?: string;
|
|
1232
|
+
pagination?: ReturnType<typeof Pagination.prototype.toObject>;
|
|
1233
|
+
}): GetAdminsResponse;
|
|
1234
|
+
toObject(): {
|
|
1235
|
+
success?: boolean | undefined;
|
|
1236
|
+
status?: string | undefined;
|
|
1237
|
+
message?: string | undefined;
|
|
1238
|
+
errors?: {
|
|
1239
|
+
field?: string | undefined;
|
|
1240
|
+
message?: string | undefined;
|
|
1241
|
+
}[] | undefined;
|
|
1242
|
+
data?: {
|
|
1243
|
+
id?: string | undefined;
|
|
1244
|
+
email?: string | undefined;
|
|
1245
|
+
firstName?: string | undefined;
|
|
1246
|
+
lastName?: string | undefined;
|
|
1247
|
+
role?: {
|
|
1248
|
+
id?: string | undefined;
|
|
1249
|
+
name?: string | undefined;
|
|
1250
|
+
description?: string | undefined;
|
|
1251
|
+
memberCount?: number | undefined;
|
|
1252
|
+
dataScope?: string | undefined;
|
|
1253
|
+
isReadonly?: boolean | undefined;
|
|
1254
|
+
} | undefined;
|
|
1255
|
+
status?: string | undefined;
|
|
1256
|
+
phone?: string | undefined;
|
|
1257
|
+
mfbId?: string | undefined;
|
|
1258
|
+
regionId?: string | undefined;
|
|
1259
|
+
region?: {
|
|
1260
|
+
name?: string | undefined;
|
|
1261
|
+
description?: string | undefined;
|
|
1262
|
+
active?: boolean | undefined;
|
|
1263
|
+
} | undefined;
|
|
1264
|
+
}[] | undefined;
|
|
1265
|
+
error?: string | undefined;
|
|
1266
|
+
pagination?: {
|
|
1267
|
+
page?: number | undefined;
|
|
1268
|
+
limit?: number | undefined;
|
|
1269
|
+
total?: number | undefined;
|
|
1270
|
+
hasNext?: boolean | undefined;
|
|
1271
|
+
hasPrev?: boolean | undefined;
|
|
1272
|
+
} | undefined;
|
|
1273
|
+
};
|
|
1274
|
+
serialize(): Uint8Array;
|
|
1275
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1276
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetAdminsResponse;
|
|
1277
|
+
serializeBinary(): Uint8Array;
|
|
1278
|
+
static deserializeBinary(bytes: Uint8Array): GetAdminsResponse;
|
|
1279
|
+
}
|
|
1078
1280
|
export class InviteAdminRequest extends pb_1.Message {
|
|
1079
1281
|
#private;
|
|
1080
1282
|
constructor(data?: any[] | {
|
|
@@ -2741,8 +2943,8 @@ export declare namespace com.pkg.admin {
|
|
|
2741
2943
|
responseStream: boolean;
|
|
2742
2944
|
requestSerialize: (message: GetAdminsRequest) => Buffer;
|
|
2743
2945
|
requestDeserialize: (bytes: Buffer) => GetAdminsRequest;
|
|
2744
|
-
responseSerialize: (message:
|
|
2745
|
-
responseDeserialize: (bytes: Buffer) =>
|
|
2946
|
+
responseSerialize: (message: GetAdminsResponse) => Buffer;
|
|
2947
|
+
responseDeserialize: (bytes: Buffer) => GetAdminsResponse;
|
|
2746
2948
|
};
|
|
2747
2949
|
RequestPasswordReset: {
|
|
2748
2950
|
path: string;
|
|
@@ -3032,7 +3234,7 @@ export declare namespace com.pkg.admin {
|
|
|
3032
3234
|
abstract AcceptInvitation(call: grpc_1.ServerUnaryCall<AcceptInvitationRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
|
|
3033
3235
|
abstract Login(call: grpc_1.ServerUnaryCall<LoginRequest, LoginResponse>, callback: grpc_1.sendUnaryData<LoginResponse>): void;
|
|
3034
3236
|
abstract ValidateToken(call: grpc_1.ServerUnaryCall<TokenRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
|
|
3035
|
-
abstract GetAdmins(call: grpc_1.ServerUnaryCall<GetAdminsRequest,
|
|
3237
|
+
abstract GetAdmins(call: grpc_1.ServerUnaryCall<GetAdminsRequest, GetAdminsResponse>, callback: grpc_1.sendUnaryData<GetAdminsResponse>): void;
|
|
3036
3238
|
abstract RequestPasswordReset(call: grpc_1.ServerUnaryCall<EmailRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
3037
3239
|
abstract ResetPassword(call: grpc_1.ServerUnaryCall<ResetPasswordRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
3038
3240
|
abstract CreateRole(call: grpc_1.ServerUnaryCall<CreateRoleRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
@@ -3075,7 +3277,7 @@ export declare namespace com.pkg.admin {
|
|
|
3075
3277
|
AcceptInvitation: GrpcPromiseServiceInterface<AcceptInvitationRequest, AdminResponse>;
|
|
3076
3278
|
Login: GrpcPromiseServiceInterface<LoginRequest, LoginResponse>;
|
|
3077
3279
|
ValidateToken: GrpcPromiseServiceInterface<TokenRequest, AdminResponse>;
|
|
3078
|
-
GetAdmins: GrpcPromiseServiceInterface<GetAdminsRequest,
|
|
3280
|
+
GetAdmins: GrpcPromiseServiceInterface<GetAdminsRequest, GetAdminsResponse>;
|
|
3079
3281
|
RequestPasswordReset: GrpcPromiseServiceInterface<EmailRequest, DefaultResponse>;
|
|
3080
3282
|
ResetPassword: GrpcPromiseServiceInterface<ResetPasswordRequest, DefaultResponse>;
|
|
3081
3283
|
CreateRole: GrpcPromiseServiceInterface<CreateRoleRequest, DefaultResponse>;
|