@technova-tech/olive-proto-lib 3.0.2 → 3.0.4
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 +1321 -0
- package/package.json +1 -1
- package/pos.v1/terminal-types.js +40 -0
- package/types/admin/admin.d.ts +415 -0
- package/types/pos.v1/terminal-types.d.ts +10 -0
package/admin/admin.js
CHANGED
|
@@ -6624,6 +6624,1202 @@ var com;
|
|
|
6624
6624
|
}
|
|
6625
6625
|
}
|
|
6626
6626
|
admin.UpdateMfbStatusRequest = UpdateMfbStatusRequest;
|
|
6627
|
+
class CreateRegionRequest extends pb_1.Message {
|
|
6628
|
+
#one_of_decls = [];
|
|
6629
|
+
constructor(data) {
|
|
6630
|
+
super();
|
|
6631
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
6632
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
6633
|
+
if ("name" in data && data.name != undefined) {
|
|
6634
|
+
this.name = data.name;
|
|
6635
|
+
}
|
|
6636
|
+
if ("description" in data && data.description != undefined) {
|
|
6637
|
+
this.description = data.description;
|
|
6638
|
+
}
|
|
6639
|
+
if ("active" in data && data.active != undefined) {
|
|
6640
|
+
this.active = data.active;
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6643
|
+
}
|
|
6644
|
+
get name() {
|
|
6645
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
6646
|
+
}
|
|
6647
|
+
set name(value) {
|
|
6648
|
+
pb_1.Message.setField(this, 1, value);
|
|
6649
|
+
}
|
|
6650
|
+
get description() {
|
|
6651
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
6652
|
+
}
|
|
6653
|
+
set description(value) {
|
|
6654
|
+
pb_1.Message.setField(this, 2, value);
|
|
6655
|
+
}
|
|
6656
|
+
get active() {
|
|
6657
|
+
return pb_1.Message.getFieldWithDefault(this, 3, false);
|
|
6658
|
+
}
|
|
6659
|
+
set active(value) {
|
|
6660
|
+
pb_1.Message.setField(this, 3, value);
|
|
6661
|
+
}
|
|
6662
|
+
static fromObject(data) {
|
|
6663
|
+
const message = new CreateRegionRequest({});
|
|
6664
|
+
if (data.name != null) {
|
|
6665
|
+
message.name = data.name;
|
|
6666
|
+
}
|
|
6667
|
+
if (data.description != null) {
|
|
6668
|
+
message.description = data.description;
|
|
6669
|
+
}
|
|
6670
|
+
if (data.active != null) {
|
|
6671
|
+
message.active = data.active;
|
|
6672
|
+
}
|
|
6673
|
+
return message;
|
|
6674
|
+
}
|
|
6675
|
+
toObject() {
|
|
6676
|
+
const data = {};
|
|
6677
|
+
if (this.name != null) {
|
|
6678
|
+
data.name = this.name;
|
|
6679
|
+
}
|
|
6680
|
+
if (this.description != null) {
|
|
6681
|
+
data.description = this.description;
|
|
6682
|
+
}
|
|
6683
|
+
if (this.active != null) {
|
|
6684
|
+
data.active = this.active;
|
|
6685
|
+
}
|
|
6686
|
+
return data;
|
|
6687
|
+
}
|
|
6688
|
+
serialize(w) {
|
|
6689
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
6690
|
+
if (this.name.length)
|
|
6691
|
+
writer.writeString(1, this.name);
|
|
6692
|
+
if (this.description.length)
|
|
6693
|
+
writer.writeString(2, this.description);
|
|
6694
|
+
if (this.active != false)
|
|
6695
|
+
writer.writeBool(3, this.active);
|
|
6696
|
+
if (!w)
|
|
6697
|
+
return writer.getResultBuffer();
|
|
6698
|
+
}
|
|
6699
|
+
static deserialize(bytes) {
|
|
6700
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CreateRegionRequest();
|
|
6701
|
+
while (reader.nextField()) {
|
|
6702
|
+
if (reader.isEndGroup())
|
|
6703
|
+
break;
|
|
6704
|
+
switch (reader.getFieldNumber()) {
|
|
6705
|
+
case 1:
|
|
6706
|
+
message.name = reader.readString();
|
|
6707
|
+
break;
|
|
6708
|
+
case 2:
|
|
6709
|
+
message.description = reader.readString();
|
|
6710
|
+
break;
|
|
6711
|
+
case 3:
|
|
6712
|
+
message.active = reader.readBool();
|
|
6713
|
+
break;
|
|
6714
|
+
default: reader.skipField();
|
|
6715
|
+
}
|
|
6716
|
+
}
|
|
6717
|
+
return message;
|
|
6718
|
+
}
|
|
6719
|
+
serializeBinary() {
|
|
6720
|
+
return this.serialize();
|
|
6721
|
+
}
|
|
6722
|
+
static deserializeBinary(bytes) {
|
|
6723
|
+
return CreateRegionRequest.deserialize(bytes);
|
|
6724
|
+
}
|
|
6725
|
+
}
|
|
6726
|
+
admin.CreateRegionRequest = CreateRegionRequest;
|
|
6727
|
+
class UpdateRegionRequest extends pb_1.Message {
|
|
6728
|
+
#one_of_decls = [[2], [3], [4]];
|
|
6729
|
+
constructor(data) {
|
|
6730
|
+
super();
|
|
6731
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
6732
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
6733
|
+
if ("id" in data && data.id != undefined) {
|
|
6734
|
+
this.id = data.id;
|
|
6735
|
+
}
|
|
6736
|
+
if ("name" in data && data.name != undefined) {
|
|
6737
|
+
this.name = data.name;
|
|
6738
|
+
}
|
|
6739
|
+
if ("description" in data && data.description != undefined) {
|
|
6740
|
+
this.description = data.description;
|
|
6741
|
+
}
|
|
6742
|
+
if ("active" in data && data.active != undefined) {
|
|
6743
|
+
this.active = data.active;
|
|
6744
|
+
}
|
|
6745
|
+
}
|
|
6746
|
+
}
|
|
6747
|
+
get id() {
|
|
6748
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
6749
|
+
}
|
|
6750
|
+
set id(value) {
|
|
6751
|
+
pb_1.Message.setField(this, 1, value);
|
|
6752
|
+
}
|
|
6753
|
+
get name() {
|
|
6754
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
6755
|
+
}
|
|
6756
|
+
set name(value) {
|
|
6757
|
+
pb_1.Message.setOneofField(this, 2, this.#one_of_decls[0], value);
|
|
6758
|
+
}
|
|
6759
|
+
get hasName() {
|
|
6760
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
6761
|
+
}
|
|
6762
|
+
get description() {
|
|
6763
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
6764
|
+
}
|
|
6765
|
+
set description(value) {
|
|
6766
|
+
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[1], value);
|
|
6767
|
+
}
|
|
6768
|
+
get hasDescription() {
|
|
6769
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
6770
|
+
}
|
|
6771
|
+
get active() {
|
|
6772
|
+
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
6773
|
+
}
|
|
6774
|
+
set active(value) {
|
|
6775
|
+
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[2], value);
|
|
6776
|
+
}
|
|
6777
|
+
get hasActive() {
|
|
6778
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
6779
|
+
}
|
|
6780
|
+
get _name() {
|
|
6781
|
+
const cases = {
|
|
6782
|
+
0: "none",
|
|
6783
|
+
2: "name"
|
|
6784
|
+
};
|
|
6785
|
+
return cases[pb_1.Message.computeOneofCase(this, [2])];
|
|
6786
|
+
}
|
|
6787
|
+
get _description() {
|
|
6788
|
+
const cases = {
|
|
6789
|
+
0: "none",
|
|
6790
|
+
3: "description"
|
|
6791
|
+
};
|
|
6792
|
+
return cases[pb_1.Message.computeOneofCase(this, [3])];
|
|
6793
|
+
}
|
|
6794
|
+
get _active() {
|
|
6795
|
+
const cases = {
|
|
6796
|
+
0: "none",
|
|
6797
|
+
4: "active"
|
|
6798
|
+
};
|
|
6799
|
+
return cases[pb_1.Message.computeOneofCase(this, [4])];
|
|
6800
|
+
}
|
|
6801
|
+
static fromObject(data) {
|
|
6802
|
+
const message = new UpdateRegionRequest({});
|
|
6803
|
+
if (data.id != null) {
|
|
6804
|
+
message.id = data.id;
|
|
6805
|
+
}
|
|
6806
|
+
if (data.name != null) {
|
|
6807
|
+
message.name = data.name;
|
|
6808
|
+
}
|
|
6809
|
+
if (data.description != null) {
|
|
6810
|
+
message.description = data.description;
|
|
6811
|
+
}
|
|
6812
|
+
if (data.active != null) {
|
|
6813
|
+
message.active = data.active;
|
|
6814
|
+
}
|
|
6815
|
+
return message;
|
|
6816
|
+
}
|
|
6817
|
+
toObject() {
|
|
6818
|
+
const data = {};
|
|
6819
|
+
if (this.id != null) {
|
|
6820
|
+
data.id = this.id;
|
|
6821
|
+
}
|
|
6822
|
+
if (this.name != null) {
|
|
6823
|
+
data.name = this.name;
|
|
6824
|
+
}
|
|
6825
|
+
if (this.description != null) {
|
|
6826
|
+
data.description = this.description;
|
|
6827
|
+
}
|
|
6828
|
+
if (this.active != null) {
|
|
6829
|
+
data.active = this.active;
|
|
6830
|
+
}
|
|
6831
|
+
return data;
|
|
6832
|
+
}
|
|
6833
|
+
serialize(w) {
|
|
6834
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
6835
|
+
if (this.id.length)
|
|
6836
|
+
writer.writeString(1, this.id);
|
|
6837
|
+
if (this.hasName)
|
|
6838
|
+
writer.writeString(2, this.name);
|
|
6839
|
+
if (this.hasDescription)
|
|
6840
|
+
writer.writeString(3, this.description);
|
|
6841
|
+
if (this.hasActive)
|
|
6842
|
+
writer.writeBool(4, this.active);
|
|
6843
|
+
if (!w)
|
|
6844
|
+
return writer.getResultBuffer();
|
|
6845
|
+
}
|
|
6846
|
+
static deserialize(bytes) {
|
|
6847
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdateRegionRequest();
|
|
6848
|
+
while (reader.nextField()) {
|
|
6849
|
+
if (reader.isEndGroup())
|
|
6850
|
+
break;
|
|
6851
|
+
switch (reader.getFieldNumber()) {
|
|
6852
|
+
case 1:
|
|
6853
|
+
message.id = reader.readString();
|
|
6854
|
+
break;
|
|
6855
|
+
case 2:
|
|
6856
|
+
message.name = reader.readString();
|
|
6857
|
+
break;
|
|
6858
|
+
case 3:
|
|
6859
|
+
message.description = reader.readString();
|
|
6860
|
+
break;
|
|
6861
|
+
case 4:
|
|
6862
|
+
message.active = reader.readBool();
|
|
6863
|
+
break;
|
|
6864
|
+
default: reader.skipField();
|
|
6865
|
+
}
|
|
6866
|
+
}
|
|
6867
|
+
return message;
|
|
6868
|
+
}
|
|
6869
|
+
serializeBinary() {
|
|
6870
|
+
return this.serialize();
|
|
6871
|
+
}
|
|
6872
|
+
static deserializeBinary(bytes) {
|
|
6873
|
+
return UpdateRegionRequest.deserialize(bytes);
|
|
6874
|
+
}
|
|
6875
|
+
}
|
|
6876
|
+
admin.UpdateRegionRequest = UpdateRegionRequest;
|
|
6877
|
+
class GetRegionRequest extends pb_1.Message {
|
|
6878
|
+
#one_of_decls = [];
|
|
6879
|
+
constructor(data) {
|
|
6880
|
+
super();
|
|
6881
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
6882
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
6883
|
+
if ("id" in data && data.id != undefined) {
|
|
6884
|
+
this.id = data.id;
|
|
6885
|
+
}
|
|
6886
|
+
}
|
|
6887
|
+
}
|
|
6888
|
+
get id() {
|
|
6889
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
6890
|
+
}
|
|
6891
|
+
set id(value) {
|
|
6892
|
+
pb_1.Message.setField(this, 1, value);
|
|
6893
|
+
}
|
|
6894
|
+
static fromObject(data) {
|
|
6895
|
+
const message = new GetRegionRequest({});
|
|
6896
|
+
if (data.id != null) {
|
|
6897
|
+
message.id = data.id;
|
|
6898
|
+
}
|
|
6899
|
+
return message;
|
|
6900
|
+
}
|
|
6901
|
+
toObject() {
|
|
6902
|
+
const data = {};
|
|
6903
|
+
if (this.id != null) {
|
|
6904
|
+
data.id = this.id;
|
|
6905
|
+
}
|
|
6906
|
+
return data;
|
|
6907
|
+
}
|
|
6908
|
+
serialize(w) {
|
|
6909
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
6910
|
+
if (this.id.length)
|
|
6911
|
+
writer.writeString(1, this.id);
|
|
6912
|
+
if (!w)
|
|
6913
|
+
return writer.getResultBuffer();
|
|
6914
|
+
}
|
|
6915
|
+
static deserialize(bytes) {
|
|
6916
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetRegionRequest();
|
|
6917
|
+
while (reader.nextField()) {
|
|
6918
|
+
if (reader.isEndGroup())
|
|
6919
|
+
break;
|
|
6920
|
+
switch (reader.getFieldNumber()) {
|
|
6921
|
+
case 1:
|
|
6922
|
+
message.id = reader.readString();
|
|
6923
|
+
break;
|
|
6924
|
+
default: reader.skipField();
|
|
6925
|
+
}
|
|
6926
|
+
}
|
|
6927
|
+
return message;
|
|
6928
|
+
}
|
|
6929
|
+
serializeBinary() {
|
|
6930
|
+
return this.serialize();
|
|
6931
|
+
}
|
|
6932
|
+
static deserializeBinary(bytes) {
|
|
6933
|
+
return GetRegionRequest.deserialize(bytes);
|
|
6934
|
+
}
|
|
6935
|
+
}
|
|
6936
|
+
admin.GetRegionRequest = GetRegionRequest;
|
|
6937
|
+
class GetRegionsRequest extends pb_1.Message {
|
|
6938
|
+
#one_of_decls = [[1], [2], [3], [4]];
|
|
6939
|
+
constructor(data) {
|
|
6940
|
+
super();
|
|
6941
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
6942
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
6943
|
+
if ("page" in data && data.page != undefined) {
|
|
6944
|
+
this.page = data.page;
|
|
6945
|
+
}
|
|
6946
|
+
if ("limit" in data && data.limit != undefined) {
|
|
6947
|
+
this.limit = data.limit;
|
|
6948
|
+
}
|
|
6949
|
+
if ("searchQuery" in data && data.searchQuery != undefined) {
|
|
6950
|
+
this.searchQuery = data.searchQuery;
|
|
6951
|
+
}
|
|
6952
|
+
if ("active" in data && data.active != undefined) {
|
|
6953
|
+
this.active = data.active;
|
|
6954
|
+
}
|
|
6955
|
+
}
|
|
6956
|
+
}
|
|
6957
|
+
get page() {
|
|
6958
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
6959
|
+
}
|
|
6960
|
+
set page(value) {
|
|
6961
|
+
pb_1.Message.setOneofField(this, 1, this.#one_of_decls[0], value);
|
|
6962
|
+
}
|
|
6963
|
+
get hasPage() {
|
|
6964
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
6965
|
+
}
|
|
6966
|
+
get limit() {
|
|
6967
|
+
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
6968
|
+
}
|
|
6969
|
+
set limit(value) {
|
|
6970
|
+
pb_1.Message.setOneofField(this, 2, this.#one_of_decls[1], value);
|
|
6971
|
+
}
|
|
6972
|
+
get hasLimit() {
|
|
6973
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
6974
|
+
}
|
|
6975
|
+
get searchQuery() {
|
|
6976
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
6977
|
+
}
|
|
6978
|
+
set searchQuery(value) {
|
|
6979
|
+
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[2], value);
|
|
6980
|
+
}
|
|
6981
|
+
get hasSearchQuery() {
|
|
6982
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
6983
|
+
}
|
|
6984
|
+
get active() {
|
|
6985
|
+
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
6986
|
+
}
|
|
6987
|
+
set active(value) {
|
|
6988
|
+
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[3], value);
|
|
6989
|
+
}
|
|
6990
|
+
get hasActive() {
|
|
6991
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
6992
|
+
}
|
|
6993
|
+
get _page() {
|
|
6994
|
+
const cases = {
|
|
6995
|
+
0: "none",
|
|
6996
|
+
1: "page"
|
|
6997
|
+
};
|
|
6998
|
+
return cases[pb_1.Message.computeOneofCase(this, [1])];
|
|
6999
|
+
}
|
|
7000
|
+
get _limit() {
|
|
7001
|
+
const cases = {
|
|
7002
|
+
0: "none",
|
|
7003
|
+
2: "limit"
|
|
7004
|
+
};
|
|
7005
|
+
return cases[pb_1.Message.computeOneofCase(this, [2])];
|
|
7006
|
+
}
|
|
7007
|
+
get _search_query() {
|
|
7008
|
+
const cases = {
|
|
7009
|
+
0: "none",
|
|
7010
|
+
3: "searchQuery"
|
|
7011
|
+
};
|
|
7012
|
+
return cases[pb_1.Message.computeOneofCase(this, [3])];
|
|
7013
|
+
}
|
|
7014
|
+
get _active() {
|
|
7015
|
+
const cases = {
|
|
7016
|
+
0: "none",
|
|
7017
|
+
4: "active"
|
|
7018
|
+
};
|
|
7019
|
+
return cases[pb_1.Message.computeOneofCase(this, [4])];
|
|
7020
|
+
}
|
|
7021
|
+
static fromObject(data) {
|
|
7022
|
+
const message = new GetRegionsRequest({});
|
|
7023
|
+
if (data.page != null) {
|
|
7024
|
+
message.page = data.page;
|
|
7025
|
+
}
|
|
7026
|
+
if (data.limit != null) {
|
|
7027
|
+
message.limit = data.limit;
|
|
7028
|
+
}
|
|
7029
|
+
if (data.searchQuery != null) {
|
|
7030
|
+
message.searchQuery = data.searchQuery;
|
|
7031
|
+
}
|
|
7032
|
+
if (data.active != null) {
|
|
7033
|
+
message.active = data.active;
|
|
7034
|
+
}
|
|
7035
|
+
return message;
|
|
7036
|
+
}
|
|
7037
|
+
toObject() {
|
|
7038
|
+
const data = {};
|
|
7039
|
+
if (this.page != null) {
|
|
7040
|
+
data.page = this.page;
|
|
7041
|
+
}
|
|
7042
|
+
if (this.limit != null) {
|
|
7043
|
+
data.limit = this.limit;
|
|
7044
|
+
}
|
|
7045
|
+
if (this.searchQuery != null) {
|
|
7046
|
+
data.searchQuery = this.searchQuery;
|
|
7047
|
+
}
|
|
7048
|
+
if (this.active != null) {
|
|
7049
|
+
data.active = this.active;
|
|
7050
|
+
}
|
|
7051
|
+
return data;
|
|
7052
|
+
}
|
|
7053
|
+
serialize(w) {
|
|
7054
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
7055
|
+
if (this.hasPage)
|
|
7056
|
+
writer.writeUint32(1, this.page);
|
|
7057
|
+
if (this.hasLimit)
|
|
7058
|
+
writer.writeUint32(2, this.limit);
|
|
7059
|
+
if (this.hasSearchQuery)
|
|
7060
|
+
writer.writeString(3, this.searchQuery);
|
|
7061
|
+
if (this.hasActive)
|
|
7062
|
+
writer.writeBool(4, this.active);
|
|
7063
|
+
if (!w)
|
|
7064
|
+
return writer.getResultBuffer();
|
|
7065
|
+
}
|
|
7066
|
+
static deserialize(bytes) {
|
|
7067
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetRegionsRequest();
|
|
7068
|
+
while (reader.nextField()) {
|
|
7069
|
+
if (reader.isEndGroup())
|
|
7070
|
+
break;
|
|
7071
|
+
switch (reader.getFieldNumber()) {
|
|
7072
|
+
case 1:
|
|
7073
|
+
message.page = reader.readUint32();
|
|
7074
|
+
break;
|
|
7075
|
+
case 2:
|
|
7076
|
+
message.limit = reader.readUint32();
|
|
7077
|
+
break;
|
|
7078
|
+
case 3:
|
|
7079
|
+
message.searchQuery = reader.readString();
|
|
7080
|
+
break;
|
|
7081
|
+
case 4:
|
|
7082
|
+
message.active = reader.readBool();
|
|
7083
|
+
break;
|
|
7084
|
+
default: reader.skipField();
|
|
7085
|
+
}
|
|
7086
|
+
}
|
|
7087
|
+
return message;
|
|
7088
|
+
}
|
|
7089
|
+
serializeBinary() {
|
|
7090
|
+
return this.serialize();
|
|
7091
|
+
}
|
|
7092
|
+
static deserializeBinary(bytes) {
|
|
7093
|
+
return GetRegionsRequest.deserialize(bytes);
|
|
7094
|
+
}
|
|
7095
|
+
}
|
|
7096
|
+
admin.GetRegionsRequest = GetRegionsRequest;
|
|
7097
|
+
class UpdateRegionStatusRequest extends pb_1.Message {
|
|
7098
|
+
#one_of_decls = [];
|
|
7099
|
+
constructor(data) {
|
|
7100
|
+
super();
|
|
7101
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
7102
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
7103
|
+
if ("id" in data && data.id != undefined) {
|
|
7104
|
+
this.id = data.id;
|
|
7105
|
+
}
|
|
7106
|
+
if ("active" in data && data.active != undefined) {
|
|
7107
|
+
this.active = data.active;
|
|
7108
|
+
}
|
|
7109
|
+
}
|
|
7110
|
+
}
|
|
7111
|
+
get id() {
|
|
7112
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
7113
|
+
}
|
|
7114
|
+
set id(value) {
|
|
7115
|
+
pb_1.Message.setField(this, 1, value);
|
|
7116
|
+
}
|
|
7117
|
+
get active() {
|
|
7118
|
+
return pb_1.Message.getFieldWithDefault(this, 2, false);
|
|
7119
|
+
}
|
|
7120
|
+
set active(value) {
|
|
7121
|
+
pb_1.Message.setField(this, 2, value);
|
|
7122
|
+
}
|
|
7123
|
+
static fromObject(data) {
|
|
7124
|
+
const message = new UpdateRegionStatusRequest({});
|
|
7125
|
+
if (data.id != null) {
|
|
7126
|
+
message.id = data.id;
|
|
7127
|
+
}
|
|
7128
|
+
if (data.active != null) {
|
|
7129
|
+
message.active = data.active;
|
|
7130
|
+
}
|
|
7131
|
+
return message;
|
|
7132
|
+
}
|
|
7133
|
+
toObject() {
|
|
7134
|
+
const data = {};
|
|
7135
|
+
if (this.id != null) {
|
|
7136
|
+
data.id = this.id;
|
|
7137
|
+
}
|
|
7138
|
+
if (this.active != null) {
|
|
7139
|
+
data.active = this.active;
|
|
7140
|
+
}
|
|
7141
|
+
return data;
|
|
7142
|
+
}
|
|
7143
|
+
serialize(w) {
|
|
7144
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
7145
|
+
if (this.id.length)
|
|
7146
|
+
writer.writeString(1, this.id);
|
|
7147
|
+
if (this.active != false)
|
|
7148
|
+
writer.writeBool(2, this.active);
|
|
7149
|
+
if (!w)
|
|
7150
|
+
return writer.getResultBuffer();
|
|
7151
|
+
}
|
|
7152
|
+
static deserialize(bytes) {
|
|
7153
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdateRegionStatusRequest();
|
|
7154
|
+
while (reader.nextField()) {
|
|
7155
|
+
if (reader.isEndGroup())
|
|
7156
|
+
break;
|
|
7157
|
+
switch (reader.getFieldNumber()) {
|
|
7158
|
+
case 1:
|
|
7159
|
+
message.id = reader.readString();
|
|
7160
|
+
break;
|
|
7161
|
+
case 2:
|
|
7162
|
+
message.active = reader.readBool();
|
|
7163
|
+
break;
|
|
7164
|
+
default: reader.skipField();
|
|
7165
|
+
}
|
|
7166
|
+
}
|
|
7167
|
+
return message;
|
|
7168
|
+
}
|
|
7169
|
+
serializeBinary() {
|
|
7170
|
+
return this.serialize();
|
|
7171
|
+
}
|
|
7172
|
+
static deserializeBinary(bytes) {
|
|
7173
|
+
return UpdateRegionStatusRequest.deserialize(bytes);
|
|
7174
|
+
}
|
|
7175
|
+
}
|
|
7176
|
+
admin.UpdateRegionStatusRequest = UpdateRegionStatusRequest;
|
|
7177
|
+
class Region extends pb_1.Message {
|
|
7178
|
+
#one_of_decls = [[2], [3]];
|
|
7179
|
+
constructor(data) {
|
|
7180
|
+
super();
|
|
7181
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
7182
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
7183
|
+
if ("name" in data && data.name != undefined) {
|
|
7184
|
+
this.name = data.name;
|
|
7185
|
+
}
|
|
7186
|
+
if ("description" in data && data.description != undefined) {
|
|
7187
|
+
this.description = data.description;
|
|
7188
|
+
}
|
|
7189
|
+
if ("active" in data && data.active != undefined) {
|
|
7190
|
+
this.active = data.active;
|
|
7191
|
+
}
|
|
7192
|
+
}
|
|
7193
|
+
}
|
|
7194
|
+
get name() {
|
|
7195
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
7196
|
+
}
|
|
7197
|
+
set name(value) {
|
|
7198
|
+
pb_1.Message.setField(this, 1, value);
|
|
7199
|
+
}
|
|
7200
|
+
get description() {
|
|
7201
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
7202
|
+
}
|
|
7203
|
+
set description(value) {
|
|
7204
|
+
pb_1.Message.setOneofField(this, 2, this.#one_of_decls[0], value);
|
|
7205
|
+
}
|
|
7206
|
+
get hasDescription() {
|
|
7207
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
7208
|
+
}
|
|
7209
|
+
get active() {
|
|
7210
|
+
return pb_1.Message.getFieldWithDefault(this, 3, false);
|
|
7211
|
+
}
|
|
7212
|
+
set active(value) {
|
|
7213
|
+
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[1], value);
|
|
7214
|
+
}
|
|
7215
|
+
get hasActive() {
|
|
7216
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
7217
|
+
}
|
|
7218
|
+
get _description() {
|
|
7219
|
+
const cases = {
|
|
7220
|
+
0: "none",
|
|
7221
|
+
2: "description"
|
|
7222
|
+
};
|
|
7223
|
+
return cases[pb_1.Message.computeOneofCase(this, [2])];
|
|
7224
|
+
}
|
|
7225
|
+
get _active() {
|
|
7226
|
+
const cases = {
|
|
7227
|
+
0: "none",
|
|
7228
|
+
3: "active"
|
|
7229
|
+
};
|
|
7230
|
+
return cases[pb_1.Message.computeOneofCase(this, [3])];
|
|
7231
|
+
}
|
|
7232
|
+
static fromObject(data) {
|
|
7233
|
+
const message = new Region({});
|
|
7234
|
+
if (data.name != null) {
|
|
7235
|
+
message.name = data.name;
|
|
7236
|
+
}
|
|
7237
|
+
if (data.description != null) {
|
|
7238
|
+
message.description = data.description;
|
|
7239
|
+
}
|
|
7240
|
+
if (data.active != null) {
|
|
7241
|
+
message.active = data.active;
|
|
7242
|
+
}
|
|
7243
|
+
return message;
|
|
7244
|
+
}
|
|
7245
|
+
toObject() {
|
|
7246
|
+
const data = {};
|
|
7247
|
+
if (this.name != null) {
|
|
7248
|
+
data.name = this.name;
|
|
7249
|
+
}
|
|
7250
|
+
if (this.description != null) {
|
|
7251
|
+
data.description = this.description;
|
|
7252
|
+
}
|
|
7253
|
+
if (this.active != null) {
|
|
7254
|
+
data.active = this.active;
|
|
7255
|
+
}
|
|
7256
|
+
return data;
|
|
7257
|
+
}
|
|
7258
|
+
serialize(w) {
|
|
7259
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
7260
|
+
if (this.name.length)
|
|
7261
|
+
writer.writeString(1, this.name);
|
|
7262
|
+
if (this.hasDescription)
|
|
7263
|
+
writer.writeString(2, this.description);
|
|
7264
|
+
if (this.hasActive)
|
|
7265
|
+
writer.writeBool(3, this.active);
|
|
7266
|
+
if (!w)
|
|
7267
|
+
return writer.getResultBuffer();
|
|
7268
|
+
}
|
|
7269
|
+
static deserialize(bytes) {
|
|
7270
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Region();
|
|
7271
|
+
while (reader.nextField()) {
|
|
7272
|
+
if (reader.isEndGroup())
|
|
7273
|
+
break;
|
|
7274
|
+
switch (reader.getFieldNumber()) {
|
|
7275
|
+
case 1:
|
|
7276
|
+
message.name = reader.readString();
|
|
7277
|
+
break;
|
|
7278
|
+
case 2:
|
|
7279
|
+
message.description = reader.readString();
|
|
7280
|
+
break;
|
|
7281
|
+
case 3:
|
|
7282
|
+
message.active = reader.readBool();
|
|
7283
|
+
break;
|
|
7284
|
+
default: reader.skipField();
|
|
7285
|
+
}
|
|
7286
|
+
}
|
|
7287
|
+
return message;
|
|
7288
|
+
}
|
|
7289
|
+
serializeBinary() {
|
|
7290
|
+
return this.serialize();
|
|
7291
|
+
}
|
|
7292
|
+
static deserializeBinary(bytes) {
|
|
7293
|
+
return Region.deserialize(bytes);
|
|
7294
|
+
}
|
|
7295
|
+
}
|
|
7296
|
+
admin.Region = Region;
|
|
7297
|
+
class RegionResponse extends pb_1.Message {
|
|
7298
|
+
#one_of_decls = [];
|
|
7299
|
+
constructor(data) {
|
|
7300
|
+
super();
|
|
7301
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
7302
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
7303
|
+
if ("success" in data && data.success != undefined) {
|
|
7304
|
+
this.success = data.success;
|
|
7305
|
+
}
|
|
7306
|
+
if ("status" in data && data.status != undefined) {
|
|
7307
|
+
this.status = data.status;
|
|
7308
|
+
}
|
|
7309
|
+
if ("data" in data && data.data != undefined) {
|
|
7310
|
+
this.data = data.data;
|
|
7311
|
+
}
|
|
7312
|
+
if ("message" in data && data.message != undefined) {
|
|
7313
|
+
this.message = data.message;
|
|
7314
|
+
}
|
|
7315
|
+
}
|
|
7316
|
+
}
|
|
7317
|
+
get success() {
|
|
7318
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
7319
|
+
}
|
|
7320
|
+
set success(value) {
|
|
7321
|
+
pb_1.Message.setField(this, 1, value);
|
|
7322
|
+
}
|
|
7323
|
+
get status() {
|
|
7324
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
7325
|
+
}
|
|
7326
|
+
set status(value) {
|
|
7327
|
+
pb_1.Message.setField(this, 2, value);
|
|
7328
|
+
}
|
|
7329
|
+
get data() {
|
|
7330
|
+
return pb_1.Message.getWrapperField(this, Region, 3);
|
|
7331
|
+
}
|
|
7332
|
+
set data(value) {
|
|
7333
|
+
pb_1.Message.setWrapperField(this, 3, value);
|
|
7334
|
+
}
|
|
7335
|
+
get hasData() {
|
|
7336
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
7337
|
+
}
|
|
7338
|
+
get message() {
|
|
7339
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
7340
|
+
}
|
|
7341
|
+
set message(value) {
|
|
7342
|
+
pb_1.Message.setField(this, 4, value);
|
|
7343
|
+
}
|
|
7344
|
+
static fromObject(data) {
|
|
7345
|
+
const message = new RegionResponse({});
|
|
7346
|
+
if (data.success != null) {
|
|
7347
|
+
message.success = data.success;
|
|
7348
|
+
}
|
|
7349
|
+
if (data.status != null) {
|
|
7350
|
+
message.status = data.status;
|
|
7351
|
+
}
|
|
7352
|
+
if (data.data != null) {
|
|
7353
|
+
message.data = Region.fromObject(data.data);
|
|
7354
|
+
}
|
|
7355
|
+
if (data.message != null) {
|
|
7356
|
+
message.message = data.message;
|
|
7357
|
+
}
|
|
7358
|
+
return message;
|
|
7359
|
+
}
|
|
7360
|
+
toObject() {
|
|
7361
|
+
const data = {};
|
|
7362
|
+
if (this.success != null) {
|
|
7363
|
+
data.success = this.success;
|
|
7364
|
+
}
|
|
7365
|
+
if (this.status != null) {
|
|
7366
|
+
data.status = this.status;
|
|
7367
|
+
}
|
|
7368
|
+
if (this.data != null) {
|
|
7369
|
+
data.data = this.data.toObject();
|
|
7370
|
+
}
|
|
7371
|
+
if (this.message != null) {
|
|
7372
|
+
data.message = this.message;
|
|
7373
|
+
}
|
|
7374
|
+
return data;
|
|
7375
|
+
}
|
|
7376
|
+
serialize(w) {
|
|
7377
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
7378
|
+
if (this.success != false)
|
|
7379
|
+
writer.writeBool(1, this.success);
|
|
7380
|
+
if (this.status.length)
|
|
7381
|
+
writer.writeString(2, this.status);
|
|
7382
|
+
if (this.hasData)
|
|
7383
|
+
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
7384
|
+
if (this.message.length)
|
|
7385
|
+
writer.writeString(4, this.message);
|
|
7386
|
+
if (!w)
|
|
7387
|
+
return writer.getResultBuffer();
|
|
7388
|
+
}
|
|
7389
|
+
static deserialize(bytes) {
|
|
7390
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegionResponse();
|
|
7391
|
+
while (reader.nextField()) {
|
|
7392
|
+
if (reader.isEndGroup())
|
|
7393
|
+
break;
|
|
7394
|
+
switch (reader.getFieldNumber()) {
|
|
7395
|
+
case 1:
|
|
7396
|
+
message.success = reader.readBool();
|
|
7397
|
+
break;
|
|
7398
|
+
case 2:
|
|
7399
|
+
message.status = reader.readString();
|
|
7400
|
+
break;
|
|
7401
|
+
case 3:
|
|
7402
|
+
reader.readMessage(message.data, () => message.data = Region.deserialize(reader));
|
|
7403
|
+
break;
|
|
7404
|
+
case 4:
|
|
7405
|
+
message.message = reader.readString();
|
|
7406
|
+
break;
|
|
7407
|
+
default: reader.skipField();
|
|
7408
|
+
}
|
|
7409
|
+
}
|
|
7410
|
+
return message;
|
|
7411
|
+
}
|
|
7412
|
+
serializeBinary() {
|
|
7413
|
+
return this.serialize();
|
|
7414
|
+
}
|
|
7415
|
+
static deserializeBinary(bytes) {
|
|
7416
|
+
return RegionResponse.deserialize(bytes);
|
|
7417
|
+
}
|
|
7418
|
+
}
|
|
7419
|
+
admin.RegionResponse = RegionResponse;
|
|
7420
|
+
class SingleRegionResponse extends pb_1.Message {
|
|
7421
|
+
#one_of_decls = [[3], [4]];
|
|
7422
|
+
constructor(data) {
|
|
7423
|
+
super();
|
|
7424
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
7425
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
7426
|
+
if ("Id" in data && data.Id != undefined) {
|
|
7427
|
+
this.Id = data.Id;
|
|
7428
|
+
}
|
|
7429
|
+
if ("name" in data && data.name != undefined) {
|
|
7430
|
+
this.name = data.name;
|
|
7431
|
+
}
|
|
7432
|
+
if ("description" in data && data.description != undefined) {
|
|
7433
|
+
this.description = data.description;
|
|
7434
|
+
}
|
|
7435
|
+
if ("active" in data && data.active != undefined) {
|
|
7436
|
+
this.active = data.active;
|
|
7437
|
+
}
|
|
7438
|
+
}
|
|
7439
|
+
}
|
|
7440
|
+
get Id() {
|
|
7441
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
7442
|
+
}
|
|
7443
|
+
set Id(value) {
|
|
7444
|
+
pb_1.Message.setField(this, 1, value);
|
|
7445
|
+
}
|
|
7446
|
+
get name() {
|
|
7447
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
7448
|
+
}
|
|
7449
|
+
set name(value) {
|
|
7450
|
+
pb_1.Message.setField(this, 2, value);
|
|
7451
|
+
}
|
|
7452
|
+
get description() {
|
|
7453
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
7454
|
+
}
|
|
7455
|
+
set description(value) {
|
|
7456
|
+
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value);
|
|
7457
|
+
}
|
|
7458
|
+
get hasDescription() {
|
|
7459
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
7460
|
+
}
|
|
7461
|
+
get active() {
|
|
7462
|
+
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
7463
|
+
}
|
|
7464
|
+
set active(value) {
|
|
7465
|
+
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[1], value);
|
|
7466
|
+
}
|
|
7467
|
+
get hasActive() {
|
|
7468
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
7469
|
+
}
|
|
7470
|
+
get _description() {
|
|
7471
|
+
const cases = {
|
|
7472
|
+
0: "none",
|
|
7473
|
+
3: "description"
|
|
7474
|
+
};
|
|
7475
|
+
return cases[pb_1.Message.computeOneofCase(this, [3])];
|
|
7476
|
+
}
|
|
7477
|
+
get _active() {
|
|
7478
|
+
const cases = {
|
|
7479
|
+
0: "none",
|
|
7480
|
+
4: "active"
|
|
7481
|
+
};
|
|
7482
|
+
return cases[pb_1.Message.computeOneofCase(this, [4])];
|
|
7483
|
+
}
|
|
7484
|
+
static fromObject(data) {
|
|
7485
|
+
const message = new SingleRegionResponse({});
|
|
7486
|
+
if (data.Id != null) {
|
|
7487
|
+
message.Id = data.Id;
|
|
7488
|
+
}
|
|
7489
|
+
if (data.name != null) {
|
|
7490
|
+
message.name = data.name;
|
|
7491
|
+
}
|
|
7492
|
+
if (data.description != null) {
|
|
7493
|
+
message.description = data.description;
|
|
7494
|
+
}
|
|
7495
|
+
if (data.active != null) {
|
|
7496
|
+
message.active = data.active;
|
|
7497
|
+
}
|
|
7498
|
+
return message;
|
|
7499
|
+
}
|
|
7500
|
+
toObject() {
|
|
7501
|
+
const data = {};
|
|
7502
|
+
if (this.Id != null) {
|
|
7503
|
+
data.Id = this.Id;
|
|
7504
|
+
}
|
|
7505
|
+
if (this.name != null) {
|
|
7506
|
+
data.name = this.name;
|
|
7507
|
+
}
|
|
7508
|
+
if (this.description != null) {
|
|
7509
|
+
data.description = this.description;
|
|
7510
|
+
}
|
|
7511
|
+
if (this.active != null) {
|
|
7512
|
+
data.active = this.active;
|
|
7513
|
+
}
|
|
7514
|
+
return data;
|
|
7515
|
+
}
|
|
7516
|
+
serialize(w) {
|
|
7517
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
7518
|
+
if (this.Id.length)
|
|
7519
|
+
writer.writeString(1, this.Id);
|
|
7520
|
+
if (this.name.length)
|
|
7521
|
+
writer.writeString(2, this.name);
|
|
7522
|
+
if (this.hasDescription)
|
|
7523
|
+
writer.writeString(3, this.description);
|
|
7524
|
+
if (this.hasActive)
|
|
7525
|
+
writer.writeBool(4, this.active);
|
|
7526
|
+
if (!w)
|
|
7527
|
+
return writer.getResultBuffer();
|
|
7528
|
+
}
|
|
7529
|
+
static deserialize(bytes) {
|
|
7530
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SingleRegionResponse();
|
|
7531
|
+
while (reader.nextField()) {
|
|
7532
|
+
if (reader.isEndGroup())
|
|
7533
|
+
break;
|
|
7534
|
+
switch (reader.getFieldNumber()) {
|
|
7535
|
+
case 1:
|
|
7536
|
+
message.Id = reader.readString();
|
|
7537
|
+
break;
|
|
7538
|
+
case 2:
|
|
7539
|
+
message.name = reader.readString();
|
|
7540
|
+
break;
|
|
7541
|
+
case 3:
|
|
7542
|
+
message.description = reader.readString();
|
|
7543
|
+
break;
|
|
7544
|
+
case 4:
|
|
7545
|
+
message.active = reader.readBool();
|
|
7546
|
+
break;
|
|
7547
|
+
default: reader.skipField();
|
|
7548
|
+
}
|
|
7549
|
+
}
|
|
7550
|
+
return message;
|
|
7551
|
+
}
|
|
7552
|
+
serializeBinary() {
|
|
7553
|
+
return this.serialize();
|
|
7554
|
+
}
|
|
7555
|
+
static deserializeBinary(bytes) {
|
|
7556
|
+
return SingleRegionResponse.deserialize(bytes);
|
|
7557
|
+
}
|
|
7558
|
+
}
|
|
7559
|
+
admin.SingleRegionResponse = SingleRegionResponse;
|
|
7560
|
+
class RegionsResponse extends pb_1.Message {
|
|
7561
|
+
#one_of_decls = [];
|
|
7562
|
+
constructor(data) {
|
|
7563
|
+
super();
|
|
7564
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], this.#one_of_decls);
|
|
7565
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
7566
|
+
if ("success" in data && data.success != undefined) {
|
|
7567
|
+
this.success = data.success;
|
|
7568
|
+
}
|
|
7569
|
+
if ("message" in data && data.message != undefined) {
|
|
7570
|
+
this.message = data.message;
|
|
7571
|
+
}
|
|
7572
|
+
if ("data" in data && data.data != undefined) {
|
|
7573
|
+
this.data = data.data;
|
|
7574
|
+
}
|
|
7575
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
7576
|
+
this.pagination = data.pagination;
|
|
7577
|
+
}
|
|
7578
|
+
}
|
|
7579
|
+
}
|
|
7580
|
+
get success() {
|
|
7581
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
7582
|
+
}
|
|
7583
|
+
set success(value) {
|
|
7584
|
+
pb_1.Message.setField(this, 1, value);
|
|
7585
|
+
}
|
|
7586
|
+
get message() {
|
|
7587
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
7588
|
+
}
|
|
7589
|
+
set message(value) {
|
|
7590
|
+
pb_1.Message.setField(this, 2, value);
|
|
7591
|
+
}
|
|
7592
|
+
get data() {
|
|
7593
|
+
return pb_1.Message.getRepeatedWrapperField(this, RegionData, 3);
|
|
7594
|
+
}
|
|
7595
|
+
set data(value) {
|
|
7596
|
+
pb_1.Message.setRepeatedWrapperField(this, 3, value);
|
|
7597
|
+
}
|
|
7598
|
+
get pagination() {
|
|
7599
|
+
return pb_1.Message.getWrapperField(this, Pagination, 4);
|
|
7600
|
+
}
|
|
7601
|
+
set pagination(value) {
|
|
7602
|
+
pb_1.Message.setWrapperField(this, 4, value);
|
|
7603
|
+
}
|
|
7604
|
+
get hasPagination() {
|
|
7605
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
7606
|
+
}
|
|
7607
|
+
static fromObject(data) {
|
|
7608
|
+
const message = new RegionsResponse({});
|
|
7609
|
+
if (data.success != null) {
|
|
7610
|
+
message.success = data.success;
|
|
7611
|
+
}
|
|
7612
|
+
if (data.message != null) {
|
|
7613
|
+
message.message = data.message;
|
|
7614
|
+
}
|
|
7615
|
+
if (data.data != null) {
|
|
7616
|
+
message.data = data.data.map(item => RegionData.fromObject(item));
|
|
7617
|
+
}
|
|
7618
|
+
if (data.pagination != null) {
|
|
7619
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
7620
|
+
}
|
|
7621
|
+
return message;
|
|
7622
|
+
}
|
|
7623
|
+
toObject() {
|
|
7624
|
+
const data = {};
|
|
7625
|
+
if (this.success != null) {
|
|
7626
|
+
data.success = this.success;
|
|
7627
|
+
}
|
|
7628
|
+
if (this.message != null) {
|
|
7629
|
+
data.message = this.message;
|
|
7630
|
+
}
|
|
7631
|
+
if (this.data != null) {
|
|
7632
|
+
data.data = this.data.map((item) => item.toObject());
|
|
7633
|
+
}
|
|
7634
|
+
if (this.pagination != null) {
|
|
7635
|
+
data.pagination = this.pagination.toObject();
|
|
7636
|
+
}
|
|
7637
|
+
return data;
|
|
7638
|
+
}
|
|
7639
|
+
serialize(w) {
|
|
7640
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
7641
|
+
if (this.success != false)
|
|
7642
|
+
writer.writeBool(1, this.success);
|
|
7643
|
+
if (this.message.length)
|
|
7644
|
+
writer.writeString(2, this.message);
|
|
7645
|
+
if (this.data.length)
|
|
7646
|
+
writer.writeRepeatedMessage(3, this.data, (item) => item.serialize(writer));
|
|
7647
|
+
if (this.hasPagination)
|
|
7648
|
+
writer.writeMessage(4, this.pagination, () => this.pagination.serialize(writer));
|
|
7649
|
+
if (!w)
|
|
7650
|
+
return writer.getResultBuffer();
|
|
7651
|
+
}
|
|
7652
|
+
static deserialize(bytes) {
|
|
7653
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegionsResponse();
|
|
7654
|
+
while (reader.nextField()) {
|
|
7655
|
+
if (reader.isEndGroup())
|
|
7656
|
+
break;
|
|
7657
|
+
switch (reader.getFieldNumber()) {
|
|
7658
|
+
case 1:
|
|
7659
|
+
message.success = reader.readBool();
|
|
7660
|
+
break;
|
|
7661
|
+
case 2:
|
|
7662
|
+
message.message = reader.readString();
|
|
7663
|
+
break;
|
|
7664
|
+
case 3:
|
|
7665
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 3, RegionData.deserialize(reader), RegionData));
|
|
7666
|
+
break;
|
|
7667
|
+
case 4:
|
|
7668
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
7669
|
+
break;
|
|
7670
|
+
default: reader.skipField();
|
|
7671
|
+
}
|
|
7672
|
+
}
|
|
7673
|
+
return message;
|
|
7674
|
+
}
|
|
7675
|
+
serializeBinary() {
|
|
7676
|
+
return this.serialize();
|
|
7677
|
+
}
|
|
7678
|
+
static deserializeBinary(bytes) {
|
|
7679
|
+
return RegionsResponse.deserialize(bytes);
|
|
7680
|
+
}
|
|
7681
|
+
}
|
|
7682
|
+
admin.RegionsResponse = RegionsResponse;
|
|
7683
|
+
class RegionData extends pb_1.Message {
|
|
7684
|
+
#one_of_decls = [[3], [4]];
|
|
7685
|
+
constructor(data) {
|
|
7686
|
+
super();
|
|
7687
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
7688
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
7689
|
+
if ("Id" in data && data.Id != undefined) {
|
|
7690
|
+
this.Id = data.Id;
|
|
7691
|
+
}
|
|
7692
|
+
if ("name" in data && data.name != undefined) {
|
|
7693
|
+
this.name = data.name;
|
|
7694
|
+
}
|
|
7695
|
+
if ("description" in data && data.description != undefined) {
|
|
7696
|
+
this.description = data.description;
|
|
7697
|
+
}
|
|
7698
|
+
if ("active" in data && data.active != undefined) {
|
|
7699
|
+
this.active = data.active;
|
|
7700
|
+
}
|
|
7701
|
+
}
|
|
7702
|
+
}
|
|
7703
|
+
get Id() {
|
|
7704
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
7705
|
+
}
|
|
7706
|
+
set Id(value) {
|
|
7707
|
+
pb_1.Message.setField(this, 1, value);
|
|
7708
|
+
}
|
|
7709
|
+
get name() {
|
|
7710
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
7711
|
+
}
|
|
7712
|
+
set name(value) {
|
|
7713
|
+
pb_1.Message.setField(this, 2, value);
|
|
7714
|
+
}
|
|
7715
|
+
get description() {
|
|
7716
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
7717
|
+
}
|
|
7718
|
+
set description(value) {
|
|
7719
|
+
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value);
|
|
7720
|
+
}
|
|
7721
|
+
get hasDescription() {
|
|
7722
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
7723
|
+
}
|
|
7724
|
+
get active() {
|
|
7725
|
+
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
7726
|
+
}
|
|
7727
|
+
set active(value) {
|
|
7728
|
+
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[1], value);
|
|
7729
|
+
}
|
|
7730
|
+
get hasActive() {
|
|
7731
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
7732
|
+
}
|
|
7733
|
+
get _description() {
|
|
7734
|
+
const cases = {
|
|
7735
|
+
0: "none",
|
|
7736
|
+
3: "description"
|
|
7737
|
+
};
|
|
7738
|
+
return cases[pb_1.Message.computeOneofCase(this, [3])];
|
|
7739
|
+
}
|
|
7740
|
+
get _active() {
|
|
7741
|
+
const cases = {
|
|
7742
|
+
0: "none",
|
|
7743
|
+
4: "active"
|
|
7744
|
+
};
|
|
7745
|
+
return cases[pb_1.Message.computeOneofCase(this, [4])];
|
|
7746
|
+
}
|
|
7747
|
+
static fromObject(data) {
|
|
7748
|
+
const message = new RegionData({});
|
|
7749
|
+
if (data.Id != null) {
|
|
7750
|
+
message.Id = data.Id;
|
|
7751
|
+
}
|
|
7752
|
+
if (data.name != null) {
|
|
7753
|
+
message.name = data.name;
|
|
7754
|
+
}
|
|
7755
|
+
if (data.description != null) {
|
|
7756
|
+
message.description = data.description;
|
|
7757
|
+
}
|
|
7758
|
+
if (data.active != null) {
|
|
7759
|
+
message.active = data.active;
|
|
7760
|
+
}
|
|
7761
|
+
return message;
|
|
7762
|
+
}
|
|
7763
|
+
toObject() {
|
|
7764
|
+
const data = {};
|
|
7765
|
+
if (this.Id != null) {
|
|
7766
|
+
data.Id = this.Id;
|
|
7767
|
+
}
|
|
7768
|
+
if (this.name != null) {
|
|
7769
|
+
data.name = this.name;
|
|
7770
|
+
}
|
|
7771
|
+
if (this.description != null) {
|
|
7772
|
+
data.description = this.description;
|
|
7773
|
+
}
|
|
7774
|
+
if (this.active != null) {
|
|
7775
|
+
data.active = this.active;
|
|
7776
|
+
}
|
|
7777
|
+
return data;
|
|
7778
|
+
}
|
|
7779
|
+
serialize(w) {
|
|
7780
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
7781
|
+
if (this.Id.length)
|
|
7782
|
+
writer.writeString(1, this.Id);
|
|
7783
|
+
if (this.name.length)
|
|
7784
|
+
writer.writeString(2, this.name);
|
|
7785
|
+
if (this.hasDescription)
|
|
7786
|
+
writer.writeString(3, this.description);
|
|
7787
|
+
if (this.hasActive)
|
|
7788
|
+
writer.writeBool(4, this.active);
|
|
7789
|
+
if (!w)
|
|
7790
|
+
return writer.getResultBuffer();
|
|
7791
|
+
}
|
|
7792
|
+
static deserialize(bytes) {
|
|
7793
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegionData();
|
|
7794
|
+
while (reader.nextField()) {
|
|
7795
|
+
if (reader.isEndGroup())
|
|
7796
|
+
break;
|
|
7797
|
+
switch (reader.getFieldNumber()) {
|
|
7798
|
+
case 1:
|
|
7799
|
+
message.Id = reader.readString();
|
|
7800
|
+
break;
|
|
7801
|
+
case 2:
|
|
7802
|
+
message.name = reader.readString();
|
|
7803
|
+
break;
|
|
7804
|
+
case 3:
|
|
7805
|
+
message.description = reader.readString();
|
|
7806
|
+
break;
|
|
7807
|
+
case 4:
|
|
7808
|
+
message.active = reader.readBool();
|
|
7809
|
+
break;
|
|
7810
|
+
default: reader.skipField();
|
|
7811
|
+
}
|
|
7812
|
+
}
|
|
7813
|
+
return message;
|
|
7814
|
+
}
|
|
7815
|
+
serializeBinary() {
|
|
7816
|
+
return this.serialize();
|
|
7817
|
+
}
|
|
7818
|
+
static deserializeBinary(bytes) {
|
|
7819
|
+
return RegionData.deserialize(bytes);
|
|
7820
|
+
}
|
|
7821
|
+
}
|
|
7822
|
+
admin.RegionData = RegionData;
|
|
6627
7823
|
class UnimplementedAdminServiceService {
|
|
6628
7824
|
static definition = {
|
|
6629
7825
|
InviteAdmin: {
|
|
@@ -6895,6 +8091,51 @@ var com;
|
|
|
6895
8091
|
requestDeserialize: (bytes) => GetMfbRequest.deserialize(new Uint8Array(bytes)),
|
|
6896
8092
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
6897
8093
|
responseDeserialize: (bytes) => AdminsResponse.deserialize(new Uint8Array(bytes))
|
|
8094
|
+
},
|
|
8095
|
+
CreateRegion: {
|
|
8096
|
+
path: "/com.pkg.admin.AdminService/CreateRegion",
|
|
8097
|
+
requestStream: false,
|
|
8098
|
+
responseStream: false,
|
|
8099
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
8100
|
+
requestDeserialize: (bytes) => CreateRegionRequest.deserialize(new Uint8Array(bytes)),
|
|
8101
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
8102
|
+
responseDeserialize: (bytes) => RegionResponse.deserialize(new Uint8Array(bytes))
|
|
8103
|
+
},
|
|
8104
|
+
GetRegion: {
|
|
8105
|
+
path: "/com.pkg.admin.AdminService/GetRegion",
|
|
8106
|
+
requestStream: false,
|
|
8107
|
+
responseStream: false,
|
|
8108
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
8109
|
+
requestDeserialize: (bytes) => GetRegionRequest.deserialize(new Uint8Array(bytes)),
|
|
8110
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
8111
|
+
responseDeserialize: (bytes) => RegionResponse.deserialize(new Uint8Array(bytes))
|
|
8112
|
+
},
|
|
8113
|
+
GetRegions: {
|
|
8114
|
+
path: "/com.pkg.admin.AdminService/GetRegions",
|
|
8115
|
+
requestStream: false,
|
|
8116
|
+
responseStream: false,
|
|
8117
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
8118
|
+
requestDeserialize: (bytes) => GetRegionsRequest.deserialize(new Uint8Array(bytes)),
|
|
8119
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
8120
|
+
responseDeserialize: (bytes) => RegionsResponse.deserialize(new Uint8Array(bytes))
|
|
8121
|
+
},
|
|
8122
|
+
UpdateRegion: {
|
|
8123
|
+
path: "/com.pkg.admin.AdminService/UpdateRegion",
|
|
8124
|
+
requestStream: false,
|
|
8125
|
+
responseStream: false,
|
|
8126
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
8127
|
+
requestDeserialize: (bytes) => UpdateRegionRequest.deserialize(new Uint8Array(bytes)),
|
|
8128
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
8129
|
+
responseDeserialize: (bytes) => RegionResponse.deserialize(new Uint8Array(bytes))
|
|
8130
|
+
},
|
|
8131
|
+
UpdateRegionStatus: {
|
|
8132
|
+
path: "/com.pkg.admin.AdminService/UpdateRegionStatus",
|
|
8133
|
+
requestStream: false,
|
|
8134
|
+
responseStream: false,
|
|
8135
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
8136
|
+
requestDeserialize: (bytes) => UpdateRegionStatusRequest.deserialize(new Uint8Array(bytes)),
|
|
8137
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
8138
|
+
responseDeserialize: (bytes) => RegionResponse.deserialize(new Uint8Array(bytes))
|
|
6898
8139
|
}
|
|
6899
8140
|
};
|
|
6900
8141
|
}
|
|
@@ -7383,6 +8624,86 @@ var com;
|
|
|
7383
8624
|
}
|
|
7384
8625
|
}));
|
|
7385
8626
|
};
|
|
8627
|
+
CreateRegion = (message, metadata, options) => {
|
|
8628
|
+
if (!metadata) {
|
|
8629
|
+
metadata = new grpc_1.Metadata;
|
|
8630
|
+
}
|
|
8631
|
+
if (!options) {
|
|
8632
|
+
options = {};
|
|
8633
|
+
}
|
|
8634
|
+
return new Promise((resolve, reject) => super.CreateRegion(message, metadata, options, (error, response) => {
|
|
8635
|
+
if (error) {
|
|
8636
|
+
reject(error);
|
|
8637
|
+
}
|
|
8638
|
+
else {
|
|
8639
|
+
resolve(response);
|
|
8640
|
+
}
|
|
8641
|
+
}));
|
|
8642
|
+
};
|
|
8643
|
+
GetRegion = (message, metadata, options) => {
|
|
8644
|
+
if (!metadata) {
|
|
8645
|
+
metadata = new grpc_1.Metadata;
|
|
8646
|
+
}
|
|
8647
|
+
if (!options) {
|
|
8648
|
+
options = {};
|
|
8649
|
+
}
|
|
8650
|
+
return new Promise((resolve, reject) => super.GetRegion(message, metadata, options, (error, response) => {
|
|
8651
|
+
if (error) {
|
|
8652
|
+
reject(error);
|
|
8653
|
+
}
|
|
8654
|
+
else {
|
|
8655
|
+
resolve(response);
|
|
8656
|
+
}
|
|
8657
|
+
}));
|
|
8658
|
+
};
|
|
8659
|
+
GetRegions = (message, metadata, options) => {
|
|
8660
|
+
if (!metadata) {
|
|
8661
|
+
metadata = new grpc_1.Metadata;
|
|
8662
|
+
}
|
|
8663
|
+
if (!options) {
|
|
8664
|
+
options = {};
|
|
8665
|
+
}
|
|
8666
|
+
return new Promise((resolve, reject) => super.GetRegions(message, metadata, options, (error, response) => {
|
|
8667
|
+
if (error) {
|
|
8668
|
+
reject(error);
|
|
8669
|
+
}
|
|
8670
|
+
else {
|
|
8671
|
+
resolve(response);
|
|
8672
|
+
}
|
|
8673
|
+
}));
|
|
8674
|
+
};
|
|
8675
|
+
UpdateRegion = (message, metadata, options) => {
|
|
8676
|
+
if (!metadata) {
|
|
8677
|
+
metadata = new grpc_1.Metadata;
|
|
8678
|
+
}
|
|
8679
|
+
if (!options) {
|
|
8680
|
+
options = {};
|
|
8681
|
+
}
|
|
8682
|
+
return new Promise((resolve, reject) => super.UpdateRegion(message, metadata, options, (error, response) => {
|
|
8683
|
+
if (error) {
|
|
8684
|
+
reject(error);
|
|
8685
|
+
}
|
|
8686
|
+
else {
|
|
8687
|
+
resolve(response);
|
|
8688
|
+
}
|
|
8689
|
+
}));
|
|
8690
|
+
};
|
|
8691
|
+
UpdateRegionStatus = (message, metadata, options) => {
|
|
8692
|
+
if (!metadata) {
|
|
8693
|
+
metadata = new grpc_1.Metadata;
|
|
8694
|
+
}
|
|
8695
|
+
if (!options) {
|
|
8696
|
+
options = {};
|
|
8697
|
+
}
|
|
8698
|
+
return new Promise((resolve, reject) => super.UpdateRegionStatus(message, metadata, options, (error, response) => {
|
|
8699
|
+
if (error) {
|
|
8700
|
+
reject(error);
|
|
8701
|
+
}
|
|
8702
|
+
else {
|
|
8703
|
+
resolve(response);
|
|
8704
|
+
}
|
|
8705
|
+
}));
|
|
8706
|
+
};
|
|
7386
8707
|
}
|
|
7387
8708
|
admin.AdminServiceClient = AdminServiceClient;
|
|
7388
8709
|
})(admin = pkg.admin || (pkg.admin = {}));
|