@technova-tech/olive-proto-lib 3.1.6 → 3.1.8
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 +604 -38
- package/package.json +1 -1
- package/pos.v1/terminals.js +40 -0
- package/types/admin/admin.d.ts +191 -4
- package/types/pos.v1/terminals.d.ts +10 -0
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) {
|
|
@@ -2515,60 +2675,283 @@ var com;
|
|
|
2515
2675
|
if (this.status != null) {
|
|
2516
2676
|
data.status = this.status;
|
|
2517
2677
|
}
|
|
2518
|
-
if (this.message != null) {
|
|
2519
|
-
data.message = this.message;
|
|
2520
|
-
}
|
|
2521
|
-
if (this.errors != null) {
|
|
2522
|
-
data.errors = this.errors.map((item) => item.toObject());
|
|
2678
|
+
if (this.message != null) {
|
|
2679
|
+
data.message = this.message;
|
|
2680
|
+
}
|
|
2681
|
+
if (this.errors != null) {
|
|
2682
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
2683
|
+
}
|
|
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;
|
|
2523
2891
|
}
|
|
2524
|
-
if (this.
|
|
2525
|
-
data.
|
|
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();
|
|
@@ -2643,7 +3026,7 @@ var com;
|
|
|
2643
3026
|
pb_1.Message.setField(this, 4, value);
|
|
2644
3027
|
}
|
|
2645
3028
|
get role() {
|
|
2646
|
-
return pb_1.Message.getWrapperField(this,
|
|
3029
|
+
return pb_1.Message.getWrapperField(this, RoleInfo, 5);
|
|
2647
3030
|
}
|
|
2648
3031
|
set role(value) {
|
|
2649
3032
|
pb_1.Message.setWrapperField(this, 5, value);
|
|
@@ -2676,7 +3059,7 @@ var com;
|
|
|
2676
3059
|
pb_1.Message.setField(this, 9, value);
|
|
2677
3060
|
}
|
|
2678
3061
|
static fromObject(data) {
|
|
2679
|
-
const message = new
|
|
3062
|
+
const message = new AdminInfo({});
|
|
2680
3063
|
if (data.id != null) {
|
|
2681
3064
|
message.id = data.id;
|
|
2682
3065
|
}
|
|
@@ -2690,7 +3073,7 @@ var com;
|
|
|
2690
3073
|
message.lastName = data.lastName;
|
|
2691
3074
|
}
|
|
2692
3075
|
if (data.role != null) {
|
|
2693
|
-
message.role =
|
|
3076
|
+
message.role = RoleInfo.fromObject(data.role);
|
|
2694
3077
|
}
|
|
2695
3078
|
if (data.status != null) {
|
|
2696
3079
|
message.status = data.status;
|
|
@@ -2761,7 +3144,7 @@ var com;
|
|
|
2761
3144
|
return writer.getResultBuffer();
|
|
2762
3145
|
}
|
|
2763
3146
|
static deserialize(bytes) {
|
|
2764
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
3147
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AdminInfo();
|
|
2765
3148
|
while (reader.nextField()) {
|
|
2766
3149
|
if (reader.isEndGroup())
|
|
2767
3150
|
break;
|
|
@@ -2779,7 +3162,7 @@ var com;
|
|
|
2779
3162
|
message.lastName = reader.readString();
|
|
2780
3163
|
break;
|
|
2781
3164
|
case 5:
|
|
2782
|
-
reader.readMessage(message.role, () => message.role =
|
|
3165
|
+
reader.readMessage(message.role, () => message.role = RoleInfo.deserialize(reader));
|
|
2783
3166
|
break;
|
|
2784
3167
|
case 6:
|
|
2785
3168
|
message.status = reader.readString();
|
|
@@ -2802,10 +3185,10 @@ var com;
|
|
|
2802
3185
|
return this.serialize();
|
|
2803
3186
|
}
|
|
2804
3187
|
static deserializeBinary(bytes) {
|
|
2805
|
-
return
|
|
3188
|
+
return AdminInfo.deserialize(bytes);
|
|
2806
3189
|
}
|
|
2807
3190
|
}
|
|
2808
|
-
admin.
|
|
3191
|
+
admin.AdminInfo = AdminInfo;
|
|
2809
3192
|
class AdminResponse extends pb_1.Message {
|
|
2810
3193
|
#one_of_decls = [];
|
|
2811
3194
|
constructor(data) {
|
|
@@ -3292,6 +3675,189 @@ var com;
|
|
|
3292
3675
|
}
|
|
3293
3676
|
}
|
|
3294
3677
|
admin.AdminsResponse = AdminsResponse;
|
|
3678
|
+
class GetAdminsResponse extends pb_1.Message {
|
|
3679
|
+
#one_of_decls = [];
|
|
3680
|
+
constructor(data) {
|
|
3681
|
+
super();
|
|
3682
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 5], this.#one_of_decls);
|
|
3683
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
3684
|
+
if ("success" in data && data.success != undefined) {
|
|
3685
|
+
this.success = data.success;
|
|
3686
|
+
}
|
|
3687
|
+
if ("status" in data && data.status != undefined) {
|
|
3688
|
+
this.status = data.status;
|
|
3689
|
+
}
|
|
3690
|
+
if ("message" in data && data.message != undefined) {
|
|
3691
|
+
this.message = data.message;
|
|
3692
|
+
}
|
|
3693
|
+
if ("errors" in data && data.errors != undefined) {
|
|
3694
|
+
this.errors = data.errors;
|
|
3695
|
+
}
|
|
3696
|
+
if ("data" in data && data.data != undefined) {
|
|
3697
|
+
this.data = data.data;
|
|
3698
|
+
}
|
|
3699
|
+
if ("error" in data && data.error != undefined) {
|
|
3700
|
+
this.error = data.error;
|
|
3701
|
+
}
|
|
3702
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
3703
|
+
this.pagination = data.pagination;
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
}
|
|
3707
|
+
get success() {
|
|
3708
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
3709
|
+
}
|
|
3710
|
+
set success(value) {
|
|
3711
|
+
pb_1.Message.setField(this, 1, value);
|
|
3712
|
+
}
|
|
3713
|
+
get status() {
|
|
3714
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
3715
|
+
}
|
|
3716
|
+
set status(value) {
|
|
3717
|
+
pb_1.Message.setField(this, 2, value);
|
|
3718
|
+
}
|
|
3719
|
+
get message() {
|
|
3720
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
3721
|
+
}
|
|
3722
|
+
set message(value) {
|
|
3723
|
+
pb_1.Message.setField(this, 3, value);
|
|
3724
|
+
}
|
|
3725
|
+
get errors() {
|
|
3726
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 4);
|
|
3727
|
+
}
|
|
3728
|
+
set errors(value) {
|
|
3729
|
+
pb_1.Message.setRepeatedWrapperField(this, 4, value);
|
|
3730
|
+
}
|
|
3731
|
+
get data() {
|
|
3732
|
+
return pb_1.Message.getRepeatedWrapperField(this, AdminInfo, 5);
|
|
3733
|
+
}
|
|
3734
|
+
set data(value) {
|
|
3735
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
3736
|
+
}
|
|
3737
|
+
get error() {
|
|
3738
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
3739
|
+
}
|
|
3740
|
+
set error(value) {
|
|
3741
|
+
pb_1.Message.setField(this, 6, value);
|
|
3742
|
+
}
|
|
3743
|
+
get pagination() {
|
|
3744
|
+
return pb_1.Message.getWrapperField(this, Pagination, 7);
|
|
3745
|
+
}
|
|
3746
|
+
set pagination(value) {
|
|
3747
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
3748
|
+
}
|
|
3749
|
+
get hasPagination() {
|
|
3750
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
3751
|
+
}
|
|
3752
|
+
static fromObject(data) {
|
|
3753
|
+
const message = new GetAdminsResponse({});
|
|
3754
|
+
if (data.success != null) {
|
|
3755
|
+
message.success = data.success;
|
|
3756
|
+
}
|
|
3757
|
+
if (data.status != null) {
|
|
3758
|
+
message.status = data.status;
|
|
3759
|
+
}
|
|
3760
|
+
if (data.message != null) {
|
|
3761
|
+
message.message = data.message;
|
|
3762
|
+
}
|
|
3763
|
+
if (data.errors != null) {
|
|
3764
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
3765
|
+
}
|
|
3766
|
+
if (data.data != null) {
|
|
3767
|
+
message.data = data.data.map(item => AdminInfo.fromObject(item));
|
|
3768
|
+
}
|
|
3769
|
+
if (data.error != null) {
|
|
3770
|
+
message.error = data.error;
|
|
3771
|
+
}
|
|
3772
|
+
if (data.pagination != null) {
|
|
3773
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
3774
|
+
}
|
|
3775
|
+
return message;
|
|
3776
|
+
}
|
|
3777
|
+
toObject() {
|
|
3778
|
+
const data = {};
|
|
3779
|
+
if (this.success != null) {
|
|
3780
|
+
data.success = this.success;
|
|
3781
|
+
}
|
|
3782
|
+
if (this.status != null) {
|
|
3783
|
+
data.status = this.status;
|
|
3784
|
+
}
|
|
3785
|
+
if (this.message != null) {
|
|
3786
|
+
data.message = this.message;
|
|
3787
|
+
}
|
|
3788
|
+
if (this.errors != null) {
|
|
3789
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
3790
|
+
}
|
|
3791
|
+
if (this.data != null) {
|
|
3792
|
+
data.data = this.data.map((item) => item.toObject());
|
|
3793
|
+
}
|
|
3794
|
+
if (this.error != null) {
|
|
3795
|
+
data.error = this.error;
|
|
3796
|
+
}
|
|
3797
|
+
if (this.pagination != null) {
|
|
3798
|
+
data.pagination = this.pagination.toObject();
|
|
3799
|
+
}
|
|
3800
|
+
return data;
|
|
3801
|
+
}
|
|
3802
|
+
serialize(w) {
|
|
3803
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
3804
|
+
if (this.success != false)
|
|
3805
|
+
writer.writeBool(1, this.success);
|
|
3806
|
+
if (this.status.length)
|
|
3807
|
+
writer.writeString(2, this.status);
|
|
3808
|
+
if (this.message.length)
|
|
3809
|
+
writer.writeString(3, this.message);
|
|
3810
|
+
if (this.errors.length)
|
|
3811
|
+
writer.writeRepeatedMessage(4, this.errors, (item) => item.serialize(writer));
|
|
3812
|
+
if (this.data.length)
|
|
3813
|
+
writer.writeRepeatedMessage(5, this.data, (item) => item.serialize(writer));
|
|
3814
|
+
if (this.error.length)
|
|
3815
|
+
writer.writeString(6, this.error);
|
|
3816
|
+
if (this.hasPagination)
|
|
3817
|
+
writer.writeMessage(7, this.pagination, () => this.pagination.serialize(writer));
|
|
3818
|
+
if (!w)
|
|
3819
|
+
return writer.getResultBuffer();
|
|
3820
|
+
}
|
|
3821
|
+
static deserialize(bytes) {
|
|
3822
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetAdminsResponse();
|
|
3823
|
+
while (reader.nextField()) {
|
|
3824
|
+
if (reader.isEndGroup())
|
|
3825
|
+
break;
|
|
3826
|
+
switch (reader.getFieldNumber()) {
|
|
3827
|
+
case 1:
|
|
3828
|
+
message.success = reader.readBool();
|
|
3829
|
+
break;
|
|
3830
|
+
case 2:
|
|
3831
|
+
message.status = reader.readString();
|
|
3832
|
+
break;
|
|
3833
|
+
case 3:
|
|
3834
|
+
message.message = reader.readString();
|
|
3835
|
+
break;
|
|
3836
|
+
case 4:
|
|
3837
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 4, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
3838
|
+
break;
|
|
3839
|
+
case 5:
|
|
3840
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 5, AdminInfo.deserialize(reader), AdminInfo));
|
|
3841
|
+
break;
|
|
3842
|
+
case 6:
|
|
3843
|
+
message.error = reader.readString();
|
|
3844
|
+
break;
|
|
3845
|
+
case 7:
|
|
3846
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
3847
|
+
break;
|
|
3848
|
+
default: reader.skipField();
|
|
3849
|
+
}
|
|
3850
|
+
}
|
|
3851
|
+
return message;
|
|
3852
|
+
}
|
|
3853
|
+
serializeBinary() {
|
|
3854
|
+
return this.serialize();
|
|
3855
|
+
}
|
|
3856
|
+
static deserializeBinary(bytes) {
|
|
3857
|
+
return GetAdminsResponse.deserialize(bytes);
|
|
3858
|
+
}
|
|
3859
|
+
}
|
|
3860
|
+
admin.GetAdminsResponse = GetAdminsResponse;
|
|
3295
3861
|
class InviteAdminRequest extends pb_1.Message {
|
|
3296
3862
|
#one_of_decls = [];
|
|
3297
3863
|
constructor(data) {
|
|
@@ -8352,7 +8918,7 @@ var com;
|
|
|
8352
8918
|
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
8353
8919
|
requestDeserialize: (bytes) => GetAdminsRequest.deserialize(new Uint8Array(bytes)),
|
|
8354
8920
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
8355
|
-
responseDeserialize: (bytes) =>
|
|
8921
|
+
responseDeserialize: (bytes) => GetAdminsResponse.deserialize(new Uint8Array(bytes))
|
|
8356
8922
|
},
|
|
8357
8923
|
RequestPasswordReset: {
|
|
8358
8924
|
path: "/com.pkg.admin.AdminService/RequestPasswordReset",
|
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -23005,6 +23005,9 @@ var com;
|
|
|
23005
23005
|
if ("auditContext" in data && data.auditContext != undefined) {
|
|
23006
23006
|
this.auditContext = data.auditContext;
|
|
23007
23007
|
}
|
|
23008
|
+
if ("regionId" in data && data.regionId != undefined) {
|
|
23009
|
+
this.regionId = data.regionId;
|
|
23010
|
+
}
|
|
23008
23011
|
}
|
|
23009
23012
|
}
|
|
23010
23013
|
get requestId() {
|
|
@@ -23037,6 +23040,12 @@ var com;
|
|
|
23037
23040
|
set auditContext(value) {
|
|
23038
23041
|
pb_1.Message.setField(this, 5, value);
|
|
23039
23042
|
}
|
|
23043
|
+
get regionId() {
|
|
23044
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
23045
|
+
}
|
|
23046
|
+
set regionId(value) {
|
|
23047
|
+
pb_1.Message.setField(this, 6, value);
|
|
23048
|
+
}
|
|
23040
23049
|
static fromObject(data) {
|
|
23041
23050
|
const message = new ApproveTerminalRequestRequest({});
|
|
23042
23051
|
if (data.requestId != null) {
|
|
@@ -23054,6 +23063,9 @@ var com;
|
|
|
23054
23063
|
if (data.auditContext != null) {
|
|
23055
23064
|
message.auditContext = data.auditContext;
|
|
23056
23065
|
}
|
|
23066
|
+
if (data.regionId != null) {
|
|
23067
|
+
message.regionId = data.regionId;
|
|
23068
|
+
}
|
|
23057
23069
|
return message;
|
|
23058
23070
|
}
|
|
23059
23071
|
toObject() {
|
|
@@ -23073,6 +23085,9 @@ var com;
|
|
|
23073
23085
|
if (this.auditContext != null) {
|
|
23074
23086
|
data.auditContext = this.auditContext;
|
|
23075
23087
|
}
|
|
23088
|
+
if (this.regionId != null) {
|
|
23089
|
+
data.regionId = this.regionId;
|
|
23090
|
+
}
|
|
23076
23091
|
return data;
|
|
23077
23092
|
}
|
|
23078
23093
|
serialize(w) {
|
|
@@ -23087,6 +23102,8 @@ var com;
|
|
|
23087
23102
|
writer.writeRepeatedString(4, this.terminals);
|
|
23088
23103
|
if (this.auditContext.length)
|
|
23089
23104
|
writer.writeString(5, this.auditContext);
|
|
23105
|
+
if (this.regionId.length)
|
|
23106
|
+
writer.writeString(6, this.regionId);
|
|
23090
23107
|
if (!w)
|
|
23091
23108
|
return writer.getResultBuffer();
|
|
23092
23109
|
}
|
|
@@ -23111,6 +23128,9 @@ var com;
|
|
|
23111
23128
|
case 5:
|
|
23112
23129
|
message.auditContext = reader.readString();
|
|
23113
23130
|
break;
|
|
23131
|
+
case 6:
|
|
23132
|
+
message.regionId = reader.readString();
|
|
23133
|
+
break;
|
|
23114
23134
|
default: reader.skipField();
|
|
23115
23135
|
}
|
|
23116
23136
|
}
|
|
@@ -31708,6 +31728,9 @@ var com;
|
|
|
31708
31728
|
if ("auditContext" in data && data.auditContext != undefined) {
|
|
31709
31729
|
this.auditContext = data.auditContext;
|
|
31710
31730
|
}
|
|
31731
|
+
if ("regionId" in data && data.regionId != undefined) {
|
|
31732
|
+
this.regionId = data.regionId;
|
|
31733
|
+
}
|
|
31711
31734
|
}
|
|
31712
31735
|
}
|
|
31713
31736
|
get serialNumber() {
|
|
@@ -31770,6 +31793,12 @@ var com;
|
|
|
31770
31793
|
set auditContext(value) {
|
|
31771
31794
|
pb_1.Message.setField(this, 10, value);
|
|
31772
31795
|
}
|
|
31796
|
+
get regionId() {
|
|
31797
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "");
|
|
31798
|
+
}
|
|
31799
|
+
set regionId(value) {
|
|
31800
|
+
pb_1.Message.setField(this, 11, value);
|
|
31801
|
+
}
|
|
31773
31802
|
static fromObject(data) {
|
|
31774
31803
|
const message = new ProvisionMerchantBranchTerminalRequest({});
|
|
31775
31804
|
if (data.serialNumber != null) {
|
|
@@ -31802,6 +31831,9 @@ var com;
|
|
|
31802
31831
|
if (data.auditContext != null) {
|
|
31803
31832
|
message.auditContext = data.auditContext;
|
|
31804
31833
|
}
|
|
31834
|
+
if (data.regionId != null) {
|
|
31835
|
+
message.regionId = data.regionId;
|
|
31836
|
+
}
|
|
31805
31837
|
return message;
|
|
31806
31838
|
}
|
|
31807
31839
|
toObject() {
|
|
@@ -31836,6 +31868,9 @@ var com;
|
|
|
31836
31868
|
if (this.auditContext != null) {
|
|
31837
31869
|
data.auditContext = this.auditContext;
|
|
31838
31870
|
}
|
|
31871
|
+
if (this.regionId != null) {
|
|
31872
|
+
data.regionId = this.regionId;
|
|
31873
|
+
}
|
|
31839
31874
|
return data;
|
|
31840
31875
|
}
|
|
31841
31876
|
serialize(w) {
|
|
@@ -31860,6 +31895,8 @@ var com;
|
|
|
31860
31895
|
writer.writeString(9, this.assignmentReason);
|
|
31861
31896
|
if (this.auditContext.length)
|
|
31862
31897
|
writer.writeString(10, this.auditContext);
|
|
31898
|
+
if (this.regionId.length)
|
|
31899
|
+
writer.writeString(11, this.regionId);
|
|
31863
31900
|
if (!w)
|
|
31864
31901
|
return writer.getResultBuffer();
|
|
31865
31902
|
}
|
|
@@ -31899,6 +31936,9 @@ var com;
|
|
|
31899
31936
|
case 10:
|
|
31900
31937
|
message.auditContext = reader.readString();
|
|
31901
31938
|
break;
|
|
31939
|
+
case 11:
|
|
31940
|
+
message.regionId = reader.readString();
|
|
31941
|
+
break;
|
|
31902
31942
|
default: reader.skipField();
|
|
31903
31943
|
}
|
|
31904
31944
|
}
|
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,73 @@ 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
|
+
});
|
|
941
|
+
get id(): string;
|
|
942
|
+
set id(value: string);
|
|
943
|
+
get email(): string;
|
|
944
|
+
set email(value: string);
|
|
945
|
+
get firstName(): string;
|
|
946
|
+
set firstName(value: string);
|
|
947
|
+
get lastName(): string;
|
|
948
|
+
set lastName(value: string);
|
|
949
|
+
get role(): RoleInfo;
|
|
950
|
+
set role(value: RoleInfo);
|
|
951
|
+
get hasRole(): boolean;
|
|
952
|
+
get status(): string;
|
|
953
|
+
set status(value: string);
|
|
954
|
+
get phone(): string;
|
|
955
|
+
set phone(value: string);
|
|
956
|
+
get mfbId(): string;
|
|
957
|
+
set mfbId(value: string);
|
|
958
|
+
get regionId(): string;
|
|
959
|
+
set regionId(value: string);
|
|
960
|
+
static fromObject(data: {
|
|
961
|
+
id?: string;
|
|
962
|
+
email?: string;
|
|
963
|
+
firstName?: string;
|
|
964
|
+
lastName?: string;
|
|
965
|
+
role?: ReturnType<typeof RoleInfo.prototype.toObject>;
|
|
966
|
+
status?: string;
|
|
967
|
+
phone?: string;
|
|
968
|
+
mfbId?: string;
|
|
969
|
+
regionId?: string;
|
|
970
|
+
}): AdminInfo;
|
|
971
|
+
toObject(): {
|
|
972
|
+
id?: string | undefined;
|
|
973
|
+
email?: string | undefined;
|
|
974
|
+
firstName?: string | undefined;
|
|
975
|
+
lastName?: string | undefined;
|
|
976
|
+
role?: {
|
|
977
|
+
id?: string | undefined;
|
|
978
|
+
name?: string | undefined;
|
|
979
|
+
description?: string | undefined;
|
|
980
|
+
memberCount?: number | undefined;
|
|
981
|
+
dataScope?: string | undefined;
|
|
982
|
+
isReadonly?: boolean | undefined;
|
|
983
|
+
} | undefined;
|
|
984
|
+
status?: string | undefined;
|
|
985
|
+
phone?: string | undefined;
|
|
986
|
+
mfbId?: string | undefined;
|
|
987
|
+
regionId?: string | undefined;
|
|
988
|
+
};
|
|
989
|
+
serialize(): Uint8Array;
|
|
990
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
991
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AdminInfo;
|
|
992
|
+
serializeBinary(): Uint8Array;
|
|
993
|
+
static deserializeBinary(bytes: Uint8Array): AdminInfo;
|
|
994
|
+
}
|
|
884
995
|
export class AdminResponse extends pb_1.Message {
|
|
885
996
|
#private;
|
|
886
997
|
constructor(data?: any[] | {
|
|
@@ -1075,6 +1186,82 @@ export declare namespace com.pkg.admin {
|
|
|
1075
1186
|
serializeBinary(): Uint8Array;
|
|
1076
1187
|
static deserializeBinary(bytes: Uint8Array): AdminsResponse;
|
|
1077
1188
|
}
|
|
1189
|
+
export class GetAdminsResponse extends pb_1.Message {
|
|
1190
|
+
#private;
|
|
1191
|
+
constructor(data?: any[] | {
|
|
1192
|
+
success?: boolean;
|
|
1193
|
+
status?: string;
|
|
1194
|
+
message?: string;
|
|
1195
|
+
errors?: ValidationErrors[];
|
|
1196
|
+
data?: AdminInfo[];
|
|
1197
|
+
error?: string;
|
|
1198
|
+
pagination?: Pagination;
|
|
1199
|
+
});
|
|
1200
|
+
get success(): boolean;
|
|
1201
|
+
set success(value: boolean);
|
|
1202
|
+
get status(): string;
|
|
1203
|
+
set status(value: string);
|
|
1204
|
+
get message(): string;
|
|
1205
|
+
set message(value: string);
|
|
1206
|
+
get errors(): ValidationErrors[];
|
|
1207
|
+
set errors(value: ValidationErrors[]);
|
|
1208
|
+
get data(): AdminInfo[];
|
|
1209
|
+
set data(value: AdminInfo[]);
|
|
1210
|
+
get error(): string;
|
|
1211
|
+
set error(value: string);
|
|
1212
|
+
get pagination(): Pagination;
|
|
1213
|
+
set pagination(value: Pagination);
|
|
1214
|
+
get hasPagination(): boolean;
|
|
1215
|
+
static fromObject(data: {
|
|
1216
|
+
success?: boolean;
|
|
1217
|
+
status?: string;
|
|
1218
|
+
message?: string;
|
|
1219
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
|
|
1220
|
+
data?: ReturnType<typeof AdminInfo.prototype.toObject>[];
|
|
1221
|
+
error?: string;
|
|
1222
|
+
pagination?: ReturnType<typeof Pagination.prototype.toObject>;
|
|
1223
|
+
}): GetAdminsResponse;
|
|
1224
|
+
toObject(): {
|
|
1225
|
+
success?: boolean | undefined;
|
|
1226
|
+
status?: string | undefined;
|
|
1227
|
+
message?: string | undefined;
|
|
1228
|
+
errors?: {
|
|
1229
|
+
field?: string | undefined;
|
|
1230
|
+
message?: string | undefined;
|
|
1231
|
+
}[] | undefined;
|
|
1232
|
+
data?: {
|
|
1233
|
+
id?: string | undefined;
|
|
1234
|
+
email?: string | undefined;
|
|
1235
|
+
firstName?: string | undefined;
|
|
1236
|
+
lastName?: string | undefined;
|
|
1237
|
+
role?: {
|
|
1238
|
+
id?: string | undefined;
|
|
1239
|
+
name?: string | undefined;
|
|
1240
|
+
description?: string | undefined;
|
|
1241
|
+
memberCount?: number | undefined;
|
|
1242
|
+
dataScope?: string | undefined;
|
|
1243
|
+
isReadonly?: boolean | undefined;
|
|
1244
|
+
} | undefined;
|
|
1245
|
+
status?: string | undefined;
|
|
1246
|
+
phone?: string | undefined;
|
|
1247
|
+
mfbId?: string | undefined;
|
|
1248
|
+
regionId?: string | undefined;
|
|
1249
|
+
}[] | undefined;
|
|
1250
|
+
error?: string | undefined;
|
|
1251
|
+
pagination?: {
|
|
1252
|
+
page?: number | undefined;
|
|
1253
|
+
limit?: number | undefined;
|
|
1254
|
+
total?: number | undefined;
|
|
1255
|
+
hasNext?: boolean | undefined;
|
|
1256
|
+
hasPrev?: boolean | undefined;
|
|
1257
|
+
} | undefined;
|
|
1258
|
+
};
|
|
1259
|
+
serialize(): Uint8Array;
|
|
1260
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1261
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetAdminsResponse;
|
|
1262
|
+
serializeBinary(): Uint8Array;
|
|
1263
|
+
static deserializeBinary(bytes: Uint8Array): GetAdminsResponse;
|
|
1264
|
+
}
|
|
1078
1265
|
export class InviteAdminRequest extends pb_1.Message {
|
|
1079
1266
|
#private;
|
|
1080
1267
|
constructor(data?: any[] | {
|
|
@@ -2741,8 +2928,8 @@ export declare namespace com.pkg.admin {
|
|
|
2741
2928
|
responseStream: boolean;
|
|
2742
2929
|
requestSerialize: (message: GetAdminsRequest) => Buffer;
|
|
2743
2930
|
requestDeserialize: (bytes: Buffer) => GetAdminsRequest;
|
|
2744
|
-
responseSerialize: (message:
|
|
2745
|
-
responseDeserialize: (bytes: Buffer) =>
|
|
2931
|
+
responseSerialize: (message: GetAdminsResponse) => Buffer;
|
|
2932
|
+
responseDeserialize: (bytes: Buffer) => GetAdminsResponse;
|
|
2746
2933
|
};
|
|
2747
2934
|
RequestPasswordReset: {
|
|
2748
2935
|
path: string;
|
|
@@ -3032,7 +3219,7 @@ export declare namespace com.pkg.admin {
|
|
|
3032
3219
|
abstract AcceptInvitation(call: grpc_1.ServerUnaryCall<AcceptInvitationRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
|
|
3033
3220
|
abstract Login(call: grpc_1.ServerUnaryCall<LoginRequest, LoginResponse>, callback: grpc_1.sendUnaryData<LoginResponse>): void;
|
|
3034
3221
|
abstract ValidateToken(call: grpc_1.ServerUnaryCall<TokenRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
|
|
3035
|
-
abstract GetAdmins(call: grpc_1.ServerUnaryCall<GetAdminsRequest,
|
|
3222
|
+
abstract GetAdmins(call: grpc_1.ServerUnaryCall<GetAdminsRequest, GetAdminsResponse>, callback: grpc_1.sendUnaryData<GetAdminsResponse>): void;
|
|
3036
3223
|
abstract RequestPasswordReset(call: grpc_1.ServerUnaryCall<EmailRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
3037
3224
|
abstract ResetPassword(call: grpc_1.ServerUnaryCall<ResetPasswordRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
3038
3225
|
abstract CreateRole(call: grpc_1.ServerUnaryCall<CreateRoleRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
@@ -3075,7 +3262,7 @@ export declare namespace com.pkg.admin {
|
|
|
3075
3262
|
AcceptInvitation: GrpcPromiseServiceInterface<AcceptInvitationRequest, AdminResponse>;
|
|
3076
3263
|
Login: GrpcPromiseServiceInterface<LoginRequest, LoginResponse>;
|
|
3077
3264
|
ValidateToken: GrpcPromiseServiceInterface<TokenRequest, AdminResponse>;
|
|
3078
|
-
GetAdmins: GrpcPromiseServiceInterface<GetAdminsRequest,
|
|
3265
|
+
GetAdmins: GrpcPromiseServiceInterface<GetAdminsRequest, GetAdminsResponse>;
|
|
3079
3266
|
RequestPasswordReset: GrpcPromiseServiceInterface<EmailRequest, DefaultResponse>;
|
|
3080
3267
|
ResetPassword: GrpcPromiseServiceInterface<ResetPasswordRequest, DefaultResponse>;
|
|
3081
3268
|
CreateRole: GrpcPromiseServiceInterface<CreateRoleRequest, DefaultResponse>;
|
|
@@ -7736,6 +7736,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7736
7736
|
admin?: string;
|
|
7737
7737
|
terminals?: string[];
|
|
7738
7738
|
auditContext?: string;
|
|
7739
|
+
regionId?: string;
|
|
7739
7740
|
});
|
|
7740
7741
|
get requestId(): string;
|
|
7741
7742
|
set requestId(value: string);
|
|
@@ -7747,12 +7748,15 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7747
7748
|
set terminals(value: string[]);
|
|
7748
7749
|
get auditContext(): string;
|
|
7749
7750
|
set auditContext(value: string);
|
|
7751
|
+
get regionId(): string;
|
|
7752
|
+
set regionId(value: string);
|
|
7750
7753
|
static fromObject(data: {
|
|
7751
7754
|
requestId?: string;
|
|
7752
7755
|
reason?: string;
|
|
7753
7756
|
admin?: string;
|
|
7754
7757
|
terminals?: string[];
|
|
7755
7758
|
auditContext?: string;
|
|
7759
|
+
regionId?: string;
|
|
7756
7760
|
}): ApproveTerminalRequestRequest;
|
|
7757
7761
|
toObject(): {
|
|
7758
7762
|
requestId?: string | undefined;
|
|
@@ -7760,6 +7764,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7760
7764
|
admin?: string | undefined;
|
|
7761
7765
|
terminals?: string[] | undefined;
|
|
7762
7766
|
auditContext?: string | undefined;
|
|
7767
|
+
regionId?: string | undefined;
|
|
7763
7768
|
};
|
|
7764
7769
|
serialize(): Uint8Array;
|
|
7765
7770
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -10601,6 +10606,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
10601
10606
|
phoneNumber?: string;
|
|
10602
10607
|
assignmentReason?: string;
|
|
10603
10608
|
auditContext?: string;
|
|
10609
|
+
regionId?: string;
|
|
10604
10610
|
});
|
|
10605
10611
|
get serialNumber(): string;
|
|
10606
10612
|
set serialNumber(value: string);
|
|
@@ -10622,6 +10628,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
10622
10628
|
set assignmentReason(value: string);
|
|
10623
10629
|
get auditContext(): string;
|
|
10624
10630
|
set auditContext(value: string);
|
|
10631
|
+
get regionId(): string;
|
|
10632
|
+
set regionId(value: string);
|
|
10625
10633
|
static fromObject(data: {
|
|
10626
10634
|
serialNumber?: string;
|
|
10627
10635
|
merchantId?: string;
|
|
@@ -10633,6 +10641,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
10633
10641
|
phoneNumber?: string;
|
|
10634
10642
|
assignmentReason?: string;
|
|
10635
10643
|
auditContext?: string;
|
|
10644
|
+
regionId?: string;
|
|
10636
10645
|
}): ProvisionMerchantBranchTerminalRequest;
|
|
10637
10646
|
toObject(): {
|
|
10638
10647
|
serialNumber?: string | undefined;
|
|
@@ -10645,6 +10654,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
10645
10654
|
phoneNumber?: string | undefined;
|
|
10646
10655
|
assignmentReason?: string | undefined;
|
|
10647
10656
|
auditContext?: string | undefined;
|
|
10657
|
+
regionId?: string | undefined;
|
|
10648
10658
|
};
|
|
10649
10659
|
serialize(): Uint8Array;
|
|
10650
10660
|
serialize(w: pb_1.BinaryWriter): void;
|