mezon-js 2.14.48 → 2.14.49
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/api/api.ts +515 -961
- package/dist/api/api.d.ts +54 -252
- package/dist/mezon-js.cjs.js +336 -404
- package/dist/mezon-js.esm.mjs +336 -404
- package/package.json +1 -1
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -2898,57 +2898,6 @@ var import_minimal = __toESM(require_minimal2());
|
|
|
2898
2898
|
// google/protobuf/wrappers.ts
|
|
2899
2899
|
var import_long = __toESM(require_long());
|
|
2900
2900
|
var import_minimal2 = __toESM(require_minimal2());
|
|
2901
|
-
function createBaseInt32Value() {
|
|
2902
|
-
return { value: 0 };
|
|
2903
|
-
}
|
|
2904
|
-
var Int32Value = {
|
|
2905
|
-
encode(message, writer = import_minimal2.default.Writer.create()) {
|
|
2906
|
-
if (message.value !== 0) {
|
|
2907
|
-
writer.uint32(8).int32(message.value);
|
|
2908
|
-
}
|
|
2909
|
-
return writer;
|
|
2910
|
-
},
|
|
2911
|
-
decode(input, length) {
|
|
2912
|
-
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
|
2913
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2914
|
-
const message = createBaseInt32Value();
|
|
2915
|
-
while (reader.pos < end) {
|
|
2916
|
-
const tag = reader.uint32();
|
|
2917
|
-
switch (tag >>> 3) {
|
|
2918
|
-
case 1:
|
|
2919
|
-
if (tag !== 8) {
|
|
2920
|
-
break;
|
|
2921
|
-
}
|
|
2922
|
-
message.value = reader.int32();
|
|
2923
|
-
continue;
|
|
2924
|
-
}
|
|
2925
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2926
|
-
break;
|
|
2927
|
-
}
|
|
2928
|
-
reader.skipType(tag & 7);
|
|
2929
|
-
}
|
|
2930
|
-
return message;
|
|
2931
|
-
},
|
|
2932
|
-
fromJSON(object) {
|
|
2933
|
-
return { value: isSet(object.value) ? globalThis.Number(object.value) : 0 };
|
|
2934
|
-
},
|
|
2935
|
-
toJSON(message) {
|
|
2936
|
-
const obj = {};
|
|
2937
|
-
if (message.value !== 0) {
|
|
2938
|
-
obj.value = Math.round(message.value);
|
|
2939
|
-
}
|
|
2940
|
-
return obj;
|
|
2941
|
-
},
|
|
2942
|
-
create(base) {
|
|
2943
|
-
return Int32Value.fromPartial(base != null ? base : {});
|
|
2944
|
-
},
|
|
2945
|
-
fromPartial(object) {
|
|
2946
|
-
var _a;
|
|
2947
|
-
const message = createBaseInt32Value();
|
|
2948
|
-
message.value = (_a = object.value) != null ? _a : 0;
|
|
2949
|
-
return message;
|
|
2950
|
-
}
|
|
2951
|
-
};
|
|
2952
2901
|
function createBaseBoolValue() {
|
|
2953
2902
|
return { value: false };
|
|
2954
2903
|
}
|
|
@@ -3390,7 +3339,7 @@ var AddFriendsResponse = {
|
|
|
3390
3339
|
}
|
|
3391
3340
|
};
|
|
3392
3341
|
function createBaseSessionRefreshRequest() {
|
|
3393
|
-
return { token: "", vars: {}, is_remember:
|
|
3342
|
+
return { token: "", vars: {}, is_remember: false };
|
|
3394
3343
|
}
|
|
3395
3344
|
var SessionRefreshRequest = {
|
|
3396
3345
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -3400,8 +3349,8 @@ var SessionRefreshRequest = {
|
|
|
3400
3349
|
Object.entries(message.vars).forEach(([key, value]) => {
|
|
3401
3350
|
SessionRefreshRequest_VarsEntry.encode({ key, value }, writer.uint32(18).fork()).ldelim();
|
|
3402
3351
|
});
|
|
3403
|
-
if (message.is_remember !==
|
|
3404
|
-
|
|
3352
|
+
if (message.is_remember !== false) {
|
|
3353
|
+
writer.uint32(24).bool(message.is_remember);
|
|
3405
3354
|
}
|
|
3406
3355
|
return writer;
|
|
3407
3356
|
},
|
|
@@ -3428,10 +3377,10 @@ var SessionRefreshRequest = {
|
|
|
3428
3377
|
}
|
|
3429
3378
|
continue;
|
|
3430
3379
|
case 3:
|
|
3431
|
-
if (tag !==
|
|
3380
|
+
if (tag !== 24) {
|
|
3432
3381
|
break;
|
|
3433
3382
|
}
|
|
3434
|
-
message.is_remember =
|
|
3383
|
+
message.is_remember = reader.bool();
|
|
3435
3384
|
continue;
|
|
3436
3385
|
}
|
|
3437
3386
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -3448,7 +3397,7 @@ var SessionRefreshRequest = {
|
|
|
3448
3397
|
acc[key] = String(value);
|
|
3449
3398
|
return acc;
|
|
3450
3399
|
}, {}) : {},
|
|
3451
|
-
is_remember: isSet2(object.is_remember) ? Boolean(object.is_remember) :
|
|
3400
|
+
is_remember: isSet2(object.is_remember) ? globalThis.Boolean(object.is_remember) : false
|
|
3452
3401
|
};
|
|
3453
3402
|
},
|
|
3454
3403
|
toJSON(message) {
|
|
@@ -3465,7 +3414,7 @@ var SessionRefreshRequest = {
|
|
|
3465
3414
|
});
|
|
3466
3415
|
}
|
|
3467
3416
|
}
|
|
3468
|
-
if (message.is_remember !==
|
|
3417
|
+
if (message.is_remember !== false) {
|
|
3469
3418
|
obj.is_remember = message.is_remember;
|
|
3470
3419
|
}
|
|
3471
3420
|
return obj;
|
|
@@ -3483,7 +3432,7 @@ var SessionRefreshRequest = {
|
|
|
3483
3432
|
}
|
|
3484
3433
|
return acc;
|
|
3485
3434
|
}, {});
|
|
3486
|
-
message.is_remember = (_c = object.is_remember) != null ? _c :
|
|
3435
|
+
message.is_remember = (_c = object.is_remember) != null ? _c : false;
|
|
3487
3436
|
return message;
|
|
3488
3437
|
}
|
|
3489
3438
|
};
|
|
@@ -6746,7 +6695,7 @@ var RegistFcmDeviceTokenResponse = {
|
|
|
6746
6695
|
}
|
|
6747
6696
|
};
|
|
6748
6697
|
function createBaseListChannelMessagesRequest() {
|
|
6749
|
-
return { clan_id: "0", channel_id: "0", message_id: "0", limit:
|
|
6698
|
+
return { clan_id: "0", channel_id: "0", message_id: "0", limit: 0, direction: 0, topic_id: "0" };
|
|
6750
6699
|
}
|
|
6751
6700
|
var ListChannelMessagesRequest = {
|
|
6752
6701
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -6759,11 +6708,11 @@ var ListChannelMessagesRequest = {
|
|
|
6759
6708
|
if (message.message_id !== "0") {
|
|
6760
6709
|
writer.uint32(24).int64(message.message_id);
|
|
6761
6710
|
}
|
|
6762
|
-
if (message.limit !==
|
|
6763
|
-
|
|
6711
|
+
if (message.limit !== 0) {
|
|
6712
|
+
writer.uint32(32).int32(message.limit);
|
|
6764
6713
|
}
|
|
6765
|
-
if (message.direction !==
|
|
6766
|
-
|
|
6714
|
+
if (message.direction !== 0) {
|
|
6715
|
+
writer.uint32(40).int32(message.direction);
|
|
6767
6716
|
}
|
|
6768
6717
|
if (message.topic_id !== "0") {
|
|
6769
6718
|
writer.uint32(48).int64(message.topic_id);
|
|
@@ -6796,16 +6745,16 @@ var ListChannelMessagesRequest = {
|
|
|
6796
6745
|
message.message_id = longToString(reader.int64());
|
|
6797
6746
|
continue;
|
|
6798
6747
|
case 4:
|
|
6799
|
-
if (tag !==
|
|
6748
|
+
if (tag !== 32) {
|
|
6800
6749
|
break;
|
|
6801
6750
|
}
|
|
6802
|
-
message.limit =
|
|
6751
|
+
message.limit = reader.int32();
|
|
6803
6752
|
continue;
|
|
6804
6753
|
case 5:
|
|
6805
|
-
if (tag !==
|
|
6754
|
+
if (tag !== 40) {
|
|
6806
6755
|
break;
|
|
6807
6756
|
}
|
|
6808
|
-
message.direction =
|
|
6757
|
+
message.direction = reader.int32();
|
|
6809
6758
|
continue;
|
|
6810
6759
|
case 6:
|
|
6811
6760
|
if (tag !== 48) {
|
|
@@ -6826,8 +6775,8 @@ var ListChannelMessagesRequest = {
|
|
|
6826
6775
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
6827
6776
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
6828
6777
|
message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
6829
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
6830
|
-
direction: isSet2(object.direction) ? Number(object.direction) :
|
|
6778
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
6779
|
+
direction: isSet2(object.direction) ? globalThis.Number(object.direction) : 0,
|
|
6831
6780
|
topic_id: isSet2(object.topic_id) ? globalThis.String(object.topic_id) : "0"
|
|
6832
6781
|
};
|
|
6833
6782
|
},
|
|
@@ -6842,11 +6791,11 @@ var ListChannelMessagesRequest = {
|
|
|
6842
6791
|
if (message.message_id !== "0") {
|
|
6843
6792
|
obj.message_id = message.message_id;
|
|
6844
6793
|
}
|
|
6845
|
-
if (message.limit !==
|
|
6846
|
-
obj.limit = message.limit;
|
|
6794
|
+
if (message.limit !== 0) {
|
|
6795
|
+
obj.limit = Math.round(message.limit);
|
|
6847
6796
|
}
|
|
6848
|
-
if (message.direction !==
|
|
6849
|
-
obj.direction = message.direction;
|
|
6797
|
+
if (message.direction !== 0) {
|
|
6798
|
+
obj.direction = Math.round(message.direction);
|
|
6850
6799
|
}
|
|
6851
6800
|
if (message.topic_id !== "0") {
|
|
6852
6801
|
obj.topic_id = message.topic_id;
|
|
@@ -6862,22 +6811,22 @@ var ListChannelMessagesRequest = {
|
|
|
6862
6811
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
6863
6812
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
6864
6813
|
message.message_id = (_c = object.message_id) != null ? _c : "0";
|
|
6865
|
-
message.limit = (_d = object.limit) != null ? _d :
|
|
6866
|
-
message.direction = (_e = object.direction) != null ? _e :
|
|
6814
|
+
message.limit = (_d = object.limit) != null ? _d : 0;
|
|
6815
|
+
message.direction = (_e = object.direction) != null ? _e : 0;
|
|
6867
6816
|
message.topic_id = (_f = object.topic_id) != null ? _f : "0";
|
|
6868
6817
|
return message;
|
|
6869
6818
|
}
|
|
6870
6819
|
};
|
|
6871
6820
|
function createBaseListFriendsRequest() {
|
|
6872
|
-
return { limit:
|
|
6821
|
+
return { limit: 0, state: 0, cursor: "" };
|
|
6873
6822
|
}
|
|
6874
6823
|
var ListFriendsRequest = {
|
|
6875
6824
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
6876
|
-
if (message.limit !==
|
|
6877
|
-
|
|
6825
|
+
if (message.limit !== 0) {
|
|
6826
|
+
writer.uint32(8).int32(message.limit);
|
|
6878
6827
|
}
|
|
6879
|
-
if (message.state !==
|
|
6880
|
-
|
|
6828
|
+
if (message.state !== 0) {
|
|
6829
|
+
writer.uint32(16).int32(message.state);
|
|
6881
6830
|
}
|
|
6882
6831
|
if (message.cursor !== "") {
|
|
6883
6832
|
writer.uint32(26).string(message.cursor);
|
|
@@ -6892,16 +6841,16 @@ var ListFriendsRequest = {
|
|
|
6892
6841
|
const tag = reader.uint32();
|
|
6893
6842
|
switch (tag >>> 3) {
|
|
6894
6843
|
case 1:
|
|
6895
|
-
if (tag !==
|
|
6844
|
+
if (tag !== 8) {
|
|
6896
6845
|
break;
|
|
6897
6846
|
}
|
|
6898
|
-
message.limit =
|
|
6847
|
+
message.limit = reader.int32();
|
|
6899
6848
|
continue;
|
|
6900
6849
|
case 2:
|
|
6901
|
-
if (tag !==
|
|
6850
|
+
if (tag !== 16) {
|
|
6902
6851
|
break;
|
|
6903
6852
|
}
|
|
6904
|
-
message.state =
|
|
6853
|
+
message.state = reader.int32();
|
|
6905
6854
|
continue;
|
|
6906
6855
|
case 3:
|
|
6907
6856
|
if (tag !== 26) {
|
|
@@ -6919,18 +6868,18 @@ var ListFriendsRequest = {
|
|
|
6919
6868
|
},
|
|
6920
6869
|
fromJSON(object) {
|
|
6921
6870
|
return {
|
|
6922
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
6923
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
6871
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
6872
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
6924
6873
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
6925
6874
|
};
|
|
6926
6875
|
},
|
|
6927
6876
|
toJSON(message) {
|
|
6928
6877
|
const obj = {};
|
|
6929
|
-
if (message.limit !==
|
|
6930
|
-
obj.limit = message.limit;
|
|
6878
|
+
if (message.limit !== 0) {
|
|
6879
|
+
obj.limit = Math.round(message.limit);
|
|
6931
6880
|
}
|
|
6932
|
-
if (message.state !==
|
|
6933
|
-
obj.state = message.state;
|
|
6881
|
+
if (message.state !== 0) {
|
|
6882
|
+
obj.state = Math.round(message.state);
|
|
6934
6883
|
}
|
|
6935
6884
|
if (message.cursor !== "") {
|
|
6936
6885
|
obj.cursor = message.cursor;
|
|
@@ -6943,14 +6892,14 @@ var ListFriendsRequest = {
|
|
|
6943
6892
|
fromPartial(object) {
|
|
6944
6893
|
var _a, _b, _c;
|
|
6945
6894
|
const message = createBaseListFriendsRequest();
|
|
6946
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
6947
|
-
message.state = (_b = object.state) != null ? _b :
|
|
6895
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
6896
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
6948
6897
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
6949
6898
|
return message;
|
|
6950
6899
|
}
|
|
6951
6900
|
};
|
|
6952
6901
|
function createBaseListChannelUsersRequest() {
|
|
6953
|
-
return { clan_id: "0", channel_id: "0", channel_type: 0, limit:
|
|
6902
|
+
return { clan_id: "0", channel_id: "0", channel_type: 0, limit: 0, state: 0, cursor: "" };
|
|
6954
6903
|
}
|
|
6955
6904
|
var ListChannelUsersRequest = {
|
|
6956
6905
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -6963,11 +6912,11 @@ var ListChannelUsersRequest = {
|
|
|
6963
6912
|
if (message.channel_type !== 0) {
|
|
6964
6913
|
writer.uint32(24).int32(message.channel_type);
|
|
6965
6914
|
}
|
|
6966
|
-
if (message.limit !==
|
|
6967
|
-
|
|
6915
|
+
if (message.limit !== 0) {
|
|
6916
|
+
writer.uint32(32).int32(message.limit);
|
|
6968
6917
|
}
|
|
6969
|
-
if (message.state !==
|
|
6970
|
-
|
|
6918
|
+
if (message.state !== 0) {
|
|
6919
|
+
writer.uint32(40).int32(message.state);
|
|
6971
6920
|
}
|
|
6972
6921
|
if (message.cursor !== "") {
|
|
6973
6922
|
writer.uint32(50).string(message.cursor);
|
|
@@ -7000,16 +6949,16 @@ var ListChannelUsersRequest = {
|
|
|
7000
6949
|
message.channel_type = reader.int32();
|
|
7001
6950
|
continue;
|
|
7002
6951
|
case 4:
|
|
7003
|
-
if (tag !==
|
|
6952
|
+
if (tag !== 32) {
|
|
7004
6953
|
break;
|
|
7005
6954
|
}
|
|
7006
|
-
message.limit =
|
|
6955
|
+
message.limit = reader.int32();
|
|
7007
6956
|
continue;
|
|
7008
6957
|
case 5:
|
|
7009
|
-
if (tag !==
|
|
6958
|
+
if (tag !== 40) {
|
|
7010
6959
|
break;
|
|
7011
6960
|
}
|
|
7012
|
-
message.state =
|
|
6961
|
+
message.state = reader.int32();
|
|
7013
6962
|
continue;
|
|
7014
6963
|
case 6:
|
|
7015
6964
|
if (tag !== 50) {
|
|
@@ -7030,8 +6979,8 @@ var ListChannelUsersRequest = {
|
|
|
7030
6979
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
7031
6980
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
7032
6981
|
channel_type: isSet2(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
7033
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
7034
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
6982
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
6983
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
7035
6984
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
7036
6985
|
};
|
|
7037
6986
|
},
|
|
@@ -7046,11 +6995,11 @@ var ListChannelUsersRequest = {
|
|
|
7046
6995
|
if (message.channel_type !== 0) {
|
|
7047
6996
|
obj.channel_type = Math.round(message.channel_type);
|
|
7048
6997
|
}
|
|
7049
|
-
if (message.limit !==
|
|
7050
|
-
obj.limit = message.limit;
|
|
6998
|
+
if (message.limit !== 0) {
|
|
6999
|
+
obj.limit = Math.round(message.limit);
|
|
7051
7000
|
}
|
|
7052
|
-
if (message.state !==
|
|
7053
|
-
obj.state = message.state;
|
|
7001
|
+
if (message.state !== 0) {
|
|
7002
|
+
obj.state = Math.round(message.state);
|
|
7054
7003
|
}
|
|
7055
7004
|
if (message.cursor !== "") {
|
|
7056
7005
|
obj.cursor = message.cursor;
|
|
@@ -7066,8 +7015,8 @@ var ListChannelUsersRequest = {
|
|
|
7066
7015
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
7067
7016
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
7068
7017
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
7069
|
-
message.limit = (_d = object.limit) != null ? _d :
|
|
7070
|
-
message.state = (_e = object.state) != null ? _e :
|
|
7018
|
+
message.limit = (_d = object.limit) != null ? _d : 0;
|
|
7019
|
+
message.state = (_e = object.state) != null ? _e : 0;
|
|
7071
7020
|
message.cursor = (_f = object.cursor) != null ? _f : "";
|
|
7072
7021
|
return message;
|
|
7073
7022
|
}
|
|
@@ -7275,12 +7224,12 @@ var ListClanUsersRequest = {
|
|
|
7275
7224
|
}
|
|
7276
7225
|
};
|
|
7277
7226
|
function createBaseListNotificationsRequest() {
|
|
7278
|
-
return { limit:
|
|
7227
|
+
return { limit: 0, clan_id: "0", notification_id: "0", category: 0, direction: 0 };
|
|
7279
7228
|
}
|
|
7280
7229
|
var ListNotificationsRequest = {
|
|
7281
7230
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
7282
|
-
if (message.limit !==
|
|
7283
|
-
|
|
7231
|
+
if (message.limit !== 0) {
|
|
7232
|
+
writer.uint32(8).int32(message.limit);
|
|
7284
7233
|
}
|
|
7285
7234
|
if (message.clan_id !== "0") {
|
|
7286
7235
|
writer.uint32(16).int64(message.clan_id);
|
|
@@ -7291,8 +7240,8 @@ var ListNotificationsRequest = {
|
|
|
7291
7240
|
if (message.category !== 0) {
|
|
7292
7241
|
writer.uint32(32).int32(message.category);
|
|
7293
7242
|
}
|
|
7294
|
-
if (message.direction !==
|
|
7295
|
-
|
|
7243
|
+
if (message.direction !== 0) {
|
|
7244
|
+
writer.uint32(40).int32(message.direction);
|
|
7296
7245
|
}
|
|
7297
7246
|
return writer;
|
|
7298
7247
|
},
|
|
@@ -7304,10 +7253,10 @@ var ListNotificationsRequest = {
|
|
|
7304
7253
|
const tag = reader.uint32();
|
|
7305
7254
|
switch (tag >>> 3) {
|
|
7306
7255
|
case 1:
|
|
7307
|
-
if (tag !==
|
|
7256
|
+
if (tag !== 8) {
|
|
7308
7257
|
break;
|
|
7309
7258
|
}
|
|
7310
|
-
message.limit =
|
|
7259
|
+
message.limit = reader.int32();
|
|
7311
7260
|
continue;
|
|
7312
7261
|
case 2:
|
|
7313
7262
|
if (tag !== 16) {
|
|
@@ -7328,10 +7277,10 @@ var ListNotificationsRequest = {
|
|
|
7328
7277
|
message.category = reader.int32();
|
|
7329
7278
|
continue;
|
|
7330
7279
|
case 5:
|
|
7331
|
-
if (tag !==
|
|
7280
|
+
if (tag !== 40) {
|
|
7332
7281
|
break;
|
|
7333
7282
|
}
|
|
7334
|
-
message.direction =
|
|
7283
|
+
message.direction = reader.int32();
|
|
7335
7284
|
continue;
|
|
7336
7285
|
}
|
|
7337
7286
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7343,17 +7292,17 @@ var ListNotificationsRequest = {
|
|
|
7343
7292
|
},
|
|
7344
7293
|
fromJSON(object) {
|
|
7345
7294
|
return {
|
|
7346
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
7295
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
7347
7296
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
7348
7297
|
notification_id: isSet2(object.notification_id) ? globalThis.String(object.notification_id) : "0",
|
|
7349
7298
|
category: isSet2(object.category) ? globalThis.Number(object.category) : 0,
|
|
7350
|
-
direction: isSet2(object.direction) ? Number(object.direction) :
|
|
7299
|
+
direction: isSet2(object.direction) ? globalThis.Number(object.direction) : 0
|
|
7351
7300
|
};
|
|
7352
7301
|
},
|
|
7353
7302
|
toJSON(message) {
|
|
7354
7303
|
const obj = {};
|
|
7355
|
-
if (message.limit !==
|
|
7356
|
-
obj.limit = message.limit;
|
|
7304
|
+
if (message.limit !== 0) {
|
|
7305
|
+
obj.limit = Math.round(message.limit);
|
|
7357
7306
|
}
|
|
7358
7307
|
if (message.clan_id !== "0") {
|
|
7359
7308
|
obj.clan_id = message.clan_id;
|
|
@@ -7364,8 +7313,8 @@ var ListNotificationsRequest = {
|
|
|
7364
7313
|
if (message.category !== 0) {
|
|
7365
7314
|
obj.category = Math.round(message.category);
|
|
7366
7315
|
}
|
|
7367
|
-
if (message.direction !==
|
|
7368
|
-
obj.direction = message.direction;
|
|
7316
|
+
if (message.direction !== 0) {
|
|
7317
|
+
obj.direction = Math.round(message.direction);
|
|
7369
7318
|
}
|
|
7370
7319
|
return obj;
|
|
7371
7320
|
},
|
|
@@ -7375,11 +7324,11 @@ var ListNotificationsRequest = {
|
|
|
7375
7324
|
fromPartial(object) {
|
|
7376
7325
|
var _a, _b, _c, _d, _e;
|
|
7377
7326
|
const message = createBaseListNotificationsRequest();
|
|
7378
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
7327
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
7379
7328
|
message.clan_id = (_b = object.clan_id) != null ? _b : "0";
|
|
7380
7329
|
message.notification_id = (_c = object.notification_id) != null ? _c : "0";
|
|
7381
7330
|
message.category = (_d = object.category) != null ? _d : 0;
|
|
7382
|
-
message.direction = (_e = object.direction) != null ? _e :
|
|
7331
|
+
message.direction = (_e = object.direction) != null ? _e : 0;
|
|
7383
7332
|
return message;
|
|
7384
7333
|
}
|
|
7385
7334
|
};
|
|
@@ -9360,15 +9309,15 @@ var DeleteClanDescRequest = {
|
|
|
9360
9309
|
}
|
|
9361
9310
|
};
|
|
9362
9311
|
function createBaseListClanDescRequest() {
|
|
9363
|
-
return { limit:
|
|
9312
|
+
return { limit: 0, state: 0, cursor: "" };
|
|
9364
9313
|
}
|
|
9365
9314
|
var ListClanDescRequest = {
|
|
9366
9315
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9367
|
-
if (message.limit !==
|
|
9368
|
-
|
|
9316
|
+
if (message.limit !== 0) {
|
|
9317
|
+
writer.uint32(8).int32(message.limit);
|
|
9369
9318
|
}
|
|
9370
|
-
if (message.state !==
|
|
9371
|
-
|
|
9319
|
+
if (message.state !== 0) {
|
|
9320
|
+
writer.uint32(16).int32(message.state);
|
|
9372
9321
|
}
|
|
9373
9322
|
if (message.cursor !== "") {
|
|
9374
9323
|
writer.uint32(26).string(message.cursor);
|
|
@@ -9383,16 +9332,16 @@ var ListClanDescRequest = {
|
|
|
9383
9332
|
const tag = reader.uint32();
|
|
9384
9333
|
switch (tag >>> 3) {
|
|
9385
9334
|
case 1:
|
|
9386
|
-
if (tag !==
|
|
9335
|
+
if (tag !== 8) {
|
|
9387
9336
|
break;
|
|
9388
9337
|
}
|
|
9389
|
-
message.limit =
|
|
9338
|
+
message.limit = reader.int32();
|
|
9390
9339
|
continue;
|
|
9391
9340
|
case 2:
|
|
9392
|
-
if (tag !==
|
|
9341
|
+
if (tag !== 16) {
|
|
9393
9342
|
break;
|
|
9394
9343
|
}
|
|
9395
|
-
message.state =
|
|
9344
|
+
message.state = reader.int32();
|
|
9396
9345
|
continue;
|
|
9397
9346
|
case 3:
|
|
9398
9347
|
if (tag !== 26) {
|
|
@@ -9410,18 +9359,18 @@ var ListClanDescRequest = {
|
|
|
9410
9359
|
},
|
|
9411
9360
|
fromJSON(object) {
|
|
9412
9361
|
return {
|
|
9413
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
9414
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
9362
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
9363
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
9415
9364
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
9416
9365
|
};
|
|
9417
9366
|
},
|
|
9418
9367
|
toJSON(message) {
|
|
9419
9368
|
const obj = {};
|
|
9420
|
-
if (message.limit !==
|
|
9421
|
-
obj.limit = message.limit;
|
|
9369
|
+
if (message.limit !== 0) {
|
|
9370
|
+
obj.limit = Math.round(message.limit);
|
|
9422
9371
|
}
|
|
9423
|
-
if (message.state !==
|
|
9424
|
-
obj.state = message.state;
|
|
9372
|
+
if (message.state !== 0) {
|
|
9373
|
+
obj.state = Math.round(message.state);
|
|
9425
9374
|
}
|
|
9426
9375
|
if (message.cursor !== "") {
|
|
9427
9376
|
obj.cursor = message.cursor;
|
|
@@ -9434,8 +9383,8 @@ var ListClanDescRequest = {
|
|
|
9434
9383
|
fromPartial(object) {
|
|
9435
9384
|
var _a, _b, _c;
|
|
9436
9385
|
const message = createBaseListClanDescRequest();
|
|
9437
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
9438
|
-
message.state = (_b = object.state) != null ? _b :
|
|
9386
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
9387
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
9439
9388
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
9440
9389
|
return message;
|
|
9441
9390
|
}
|
|
@@ -11735,15 +11684,15 @@ var ChannelDescListNoPool = {
|
|
|
11735
11684
|
}
|
|
11736
11685
|
};
|
|
11737
11686
|
function createBaseListThreadRequest() {
|
|
11738
|
-
return { limit:
|
|
11687
|
+
return { limit: 0, state: 0, clan_id: "0", channel_id: "0", thread_id: "0", page: 0 };
|
|
11739
11688
|
}
|
|
11740
11689
|
var ListThreadRequest = {
|
|
11741
11690
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
11742
|
-
if (message.limit !==
|
|
11743
|
-
|
|
11691
|
+
if (message.limit !== 0) {
|
|
11692
|
+
writer.uint32(8).int32(message.limit);
|
|
11744
11693
|
}
|
|
11745
|
-
if (message.state !==
|
|
11746
|
-
|
|
11694
|
+
if (message.state !== 0) {
|
|
11695
|
+
writer.uint32(16).int32(message.state);
|
|
11747
11696
|
}
|
|
11748
11697
|
if (message.clan_id !== "0") {
|
|
11749
11698
|
writer.uint32(24).int64(message.clan_id);
|
|
@@ -11754,8 +11703,8 @@ var ListThreadRequest = {
|
|
|
11754
11703
|
if (message.thread_id !== "0") {
|
|
11755
11704
|
writer.uint32(40).int64(message.thread_id);
|
|
11756
11705
|
}
|
|
11757
|
-
if (message.page !==
|
|
11758
|
-
|
|
11706
|
+
if (message.page !== 0) {
|
|
11707
|
+
writer.uint32(48).int32(message.page);
|
|
11759
11708
|
}
|
|
11760
11709
|
return writer;
|
|
11761
11710
|
},
|
|
@@ -11767,16 +11716,16 @@ var ListThreadRequest = {
|
|
|
11767
11716
|
const tag = reader.uint32();
|
|
11768
11717
|
switch (tag >>> 3) {
|
|
11769
11718
|
case 1:
|
|
11770
|
-
if (tag !==
|
|
11719
|
+
if (tag !== 8) {
|
|
11771
11720
|
break;
|
|
11772
11721
|
}
|
|
11773
|
-
message.limit =
|
|
11722
|
+
message.limit = reader.int32();
|
|
11774
11723
|
continue;
|
|
11775
11724
|
case 2:
|
|
11776
|
-
if (tag !==
|
|
11725
|
+
if (tag !== 16) {
|
|
11777
11726
|
break;
|
|
11778
11727
|
}
|
|
11779
|
-
message.state =
|
|
11728
|
+
message.state = reader.int32();
|
|
11780
11729
|
continue;
|
|
11781
11730
|
case 3:
|
|
11782
11731
|
if (tag !== 24) {
|
|
@@ -11797,10 +11746,10 @@ var ListThreadRequest = {
|
|
|
11797
11746
|
message.thread_id = longToString(reader.int64());
|
|
11798
11747
|
continue;
|
|
11799
11748
|
case 6:
|
|
11800
|
-
if (tag !==
|
|
11749
|
+
if (tag !== 48) {
|
|
11801
11750
|
break;
|
|
11802
11751
|
}
|
|
11803
|
-
message.page =
|
|
11752
|
+
message.page = reader.int32();
|
|
11804
11753
|
continue;
|
|
11805
11754
|
}
|
|
11806
11755
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -11812,21 +11761,21 @@ var ListThreadRequest = {
|
|
|
11812
11761
|
},
|
|
11813
11762
|
fromJSON(object) {
|
|
11814
11763
|
return {
|
|
11815
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
11816
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
11764
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
11765
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
11817
11766
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
11818
11767
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
11819
11768
|
thread_id: isSet2(object.thread_id) ? globalThis.String(object.thread_id) : "0",
|
|
11820
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
11769
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0
|
|
11821
11770
|
};
|
|
11822
11771
|
},
|
|
11823
11772
|
toJSON(message) {
|
|
11824
11773
|
const obj = {};
|
|
11825
|
-
if (message.limit !==
|
|
11826
|
-
obj.limit = message.limit;
|
|
11774
|
+
if (message.limit !== 0) {
|
|
11775
|
+
obj.limit = Math.round(message.limit);
|
|
11827
11776
|
}
|
|
11828
|
-
if (message.state !==
|
|
11829
|
-
obj.state = message.state;
|
|
11777
|
+
if (message.state !== 0) {
|
|
11778
|
+
obj.state = Math.round(message.state);
|
|
11830
11779
|
}
|
|
11831
11780
|
if (message.clan_id !== "0") {
|
|
11832
11781
|
obj.clan_id = message.clan_id;
|
|
@@ -11837,8 +11786,8 @@ var ListThreadRequest = {
|
|
|
11837
11786
|
if (message.thread_id !== "0") {
|
|
11838
11787
|
obj.thread_id = message.thread_id;
|
|
11839
11788
|
}
|
|
11840
|
-
if (message.page !==
|
|
11841
|
-
obj.page = message.page;
|
|
11789
|
+
if (message.page !== 0) {
|
|
11790
|
+
obj.page = Math.round(message.page);
|
|
11842
11791
|
}
|
|
11843
11792
|
return obj;
|
|
11844
11793
|
},
|
|
@@ -11848,25 +11797,25 @@ var ListThreadRequest = {
|
|
|
11848
11797
|
fromPartial(object) {
|
|
11849
11798
|
var _a, _b, _c, _d, _e, _f;
|
|
11850
11799
|
const message = createBaseListThreadRequest();
|
|
11851
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
11852
|
-
message.state = (_b = object.state) != null ? _b :
|
|
11800
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
11801
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
11853
11802
|
message.clan_id = (_c = object.clan_id) != null ? _c : "0";
|
|
11854
11803
|
message.channel_id = (_d = object.channel_id) != null ? _d : "0";
|
|
11855
11804
|
message.thread_id = (_e = object.thread_id) != null ? _e : "0";
|
|
11856
|
-
message.page = (_f = object.page) != null ? _f :
|
|
11805
|
+
message.page = (_f = object.page) != null ? _f : 0;
|
|
11857
11806
|
return message;
|
|
11858
11807
|
}
|
|
11859
11808
|
};
|
|
11860
11809
|
function createBaseListChannelDescsRequest() {
|
|
11861
|
-
return { limit:
|
|
11810
|
+
return { limit: 0, state: 0, cursor: "", clan_id: "0", channel_type: 0, is_mobile: false };
|
|
11862
11811
|
}
|
|
11863
11812
|
var ListChannelDescsRequest = {
|
|
11864
11813
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
11865
|
-
if (message.limit !==
|
|
11866
|
-
|
|
11814
|
+
if (message.limit !== 0) {
|
|
11815
|
+
writer.uint32(8).int32(message.limit);
|
|
11867
11816
|
}
|
|
11868
|
-
if (message.state !==
|
|
11869
|
-
|
|
11817
|
+
if (message.state !== 0) {
|
|
11818
|
+
writer.uint32(16).int32(message.state);
|
|
11870
11819
|
}
|
|
11871
11820
|
if (message.cursor !== "") {
|
|
11872
11821
|
writer.uint32(26).string(message.cursor);
|
|
@@ -11890,16 +11839,16 @@ var ListChannelDescsRequest = {
|
|
|
11890
11839
|
const tag = reader.uint32();
|
|
11891
11840
|
switch (tag >>> 3) {
|
|
11892
11841
|
case 1:
|
|
11893
|
-
if (tag !==
|
|
11842
|
+
if (tag !== 8) {
|
|
11894
11843
|
break;
|
|
11895
11844
|
}
|
|
11896
|
-
message.limit =
|
|
11845
|
+
message.limit = reader.int32();
|
|
11897
11846
|
continue;
|
|
11898
11847
|
case 2:
|
|
11899
|
-
if (tag !==
|
|
11848
|
+
if (tag !== 16) {
|
|
11900
11849
|
break;
|
|
11901
11850
|
}
|
|
11902
|
-
message.state =
|
|
11851
|
+
message.state = reader.int32();
|
|
11903
11852
|
continue;
|
|
11904
11853
|
case 3:
|
|
11905
11854
|
if (tag !== 26) {
|
|
@@ -11935,8 +11884,8 @@ var ListChannelDescsRequest = {
|
|
|
11935
11884
|
},
|
|
11936
11885
|
fromJSON(object) {
|
|
11937
11886
|
return {
|
|
11938
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
11939
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
11887
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
11888
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
11940
11889
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
11941
11890
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
11942
11891
|
channel_type: isSet2(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
@@ -11945,11 +11894,11 @@ var ListChannelDescsRequest = {
|
|
|
11945
11894
|
},
|
|
11946
11895
|
toJSON(message) {
|
|
11947
11896
|
const obj = {};
|
|
11948
|
-
if (message.limit !==
|
|
11949
|
-
obj.limit = message.limit;
|
|
11897
|
+
if (message.limit !== 0) {
|
|
11898
|
+
obj.limit = Math.round(message.limit);
|
|
11950
11899
|
}
|
|
11951
|
-
if (message.state !==
|
|
11952
|
-
obj.state = message.state;
|
|
11900
|
+
if (message.state !== 0) {
|
|
11901
|
+
obj.state = Math.round(message.state);
|
|
11953
11902
|
}
|
|
11954
11903
|
if (message.cursor !== "") {
|
|
11955
11904
|
obj.cursor = message.cursor;
|
|
@@ -11971,8 +11920,8 @@ var ListChannelDescsRequest = {
|
|
|
11971
11920
|
fromPartial(object) {
|
|
11972
11921
|
var _a, _b, _c, _d, _e, _f;
|
|
11973
11922
|
const message = createBaseListChannelDescsRequest();
|
|
11974
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
11975
|
-
message.state = (_b = object.state) != null ? _b :
|
|
11923
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
11924
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
11976
11925
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
11977
11926
|
message.clan_id = (_d = object.clan_id) != null ? _d : "0";
|
|
11978
11927
|
message.channel_type = (_e = object.channel_type) != null ? _e : 0;
|
|
@@ -15587,15 +15536,15 @@ var ListPermissionsRequest = {
|
|
|
15587
15536
|
}
|
|
15588
15537
|
};
|
|
15589
15538
|
function createBaseListRoleUsersRequest() {
|
|
15590
|
-
return { role_id: "0", limit:
|
|
15539
|
+
return { role_id: "0", limit: 0, cursor: "" };
|
|
15591
15540
|
}
|
|
15592
15541
|
var ListRoleUsersRequest = {
|
|
15593
15542
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
15594
15543
|
if (message.role_id !== "0") {
|
|
15595
15544
|
writer.uint32(8).int64(message.role_id);
|
|
15596
15545
|
}
|
|
15597
|
-
if (message.limit !==
|
|
15598
|
-
|
|
15546
|
+
if (message.limit !== 0) {
|
|
15547
|
+
writer.uint32(16).int32(message.limit);
|
|
15599
15548
|
}
|
|
15600
15549
|
if (message.cursor !== "") {
|
|
15601
15550
|
writer.uint32(26).string(message.cursor);
|
|
@@ -15616,10 +15565,10 @@ var ListRoleUsersRequest = {
|
|
|
15616
15565
|
message.role_id = longToString(reader.int64());
|
|
15617
15566
|
continue;
|
|
15618
15567
|
case 2:
|
|
15619
|
-
if (tag !==
|
|
15568
|
+
if (tag !== 16) {
|
|
15620
15569
|
break;
|
|
15621
15570
|
}
|
|
15622
|
-
message.limit =
|
|
15571
|
+
message.limit = reader.int32();
|
|
15623
15572
|
continue;
|
|
15624
15573
|
case 3:
|
|
15625
15574
|
if (tag !== 26) {
|
|
@@ -15638,7 +15587,7 @@ var ListRoleUsersRequest = {
|
|
|
15638
15587
|
fromJSON(object) {
|
|
15639
15588
|
return {
|
|
15640
15589
|
role_id: isSet2(object.role_id) ? globalThis.String(object.role_id) : "0",
|
|
15641
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
15590
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
15642
15591
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
15643
15592
|
};
|
|
15644
15593
|
},
|
|
@@ -15647,8 +15596,8 @@ var ListRoleUsersRequest = {
|
|
|
15647
15596
|
if (message.role_id !== "0") {
|
|
15648
15597
|
obj.role_id = message.role_id;
|
|
15649
15598
|
}
|
|
15650
|
-
if (message.limit !==
|
|
15651
|
-
obj.limit = message.limit;
|
|
15599
|
+
if (message.limit !== 0) {
|
|
15600
|
+
obj.limit = Math.round(message.limit);
|
|
15652
15601
|
}
|
|
15653
15602
|
if (message.cursor !== "") {
|
|
15654
15603
|
obj.cursor = message.cursor;
|
|
@@ -15662,7 +15611,7 @@ var ListRoleUsersRequest = {
|
|
|
15662
15611
|
var _a, _b, _c;
|
|
15663
15612
|
const message = createBaseListRoleUsersRequest();
|
|
15664
15613
|
message.role_id = (_a = object.role_id) != null ? _a : "0";
|
|
15665
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
15614
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
15666
15615
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
15667
15616
|
return message;
|
|
15668
15617
|
}
|
|
@@ -16298,7 +16247,7 @@ function createBaseCreateEventRequest() {
|
|
|
16298
16247
|
repeat_type: 0,
|
|
16299
16248
|
creator_id: "0",
|
|
16300
16249
|
user_id: "0",
|
|
16301
|
-
is_private:
|
|
16250
|
+
is_private: false,
|
|
16302
16251
|
meet_room: void 0
|
|
16303
16252
|
};
|
|
16304
16253
|
}
|
|
@@ -16349,8 +16298,8 @@ var CreateEventRequest = {
|
|
|
16349
16298
|
if (message.user_id !== "0") {
|
|
16350
16299
|
writer.uint32(120).int64(message.user_id);
|
|
16351
16300
|
}
|
|
16352
|
-
if (message.is_private !==
|
|
16353
|
-
|
|
16301
|
+
if (message.is_private !== false) {
|
|
16302
|
+
writer.uint32(128).bool(message.is_private);
|
|
16354
16303
|
}
|
|
16355
16304
|
if (message.meet_room !== void 0) {
|
|
16356
16305
|
GenerateMezonMeetResponse.encode(message.meet_room, writer.uint32(138).fork()).ldelim();
|
|
@@ -16455,10 +16404,10 @@ var CreateEventRequest = {
|
|
|
16455
16404
|
message.user_id = longToString(reader.int64());
|
|
16456
16405
|
continue;
|
|
16457
16406
|
case 16:
|
|
16458
|
-
if (tag !==
|
|
16407
|
+
if (tag !== 128) {
|
|
16459
16408
|
break;
|
|
16460
16409
|
}
|
|
16461
|
-
message.is_private =
|
|
16410
|
+
message.is_private = reader.bool();
|
|
16462
16411
|
continue;
|
|
16463
16412
|
case 17:
|
|
16464
16413
|
if (tag !== 138) {
|
|
@@ -16491,7 +16440,7 @@ var CreateEventRequest = {
|
|
|
16491
16440
|
repeat_type: isSet2(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
16492
16441
|
creator_id: isSet2(object.creator_id) ? globalThis.String(object.creator_id) : "0",
|
|
16493
16442
|
user_id: isSet2(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
16494
|
-
is_private: isSet2(object.is_private) ? Boolean(object.is_private) :
|
|
16443
|
+
is_private: isSet2(object.is_private) ? globalThis.Boolean(object.is_private) : false,
|
|
16495
16444
|
meet_room: isSet2(object.meet_room) ? GenerateMezonMeetResponse.fromJSON(object.meet_room) : void 0
|
|
16496
16445
|
};
|
|
16497
16446
|
},
|
|
@@ -16542,7 +16491,7 @@ var CreateEventRequest = {
|
|
|
16542
16491
|
if (message.user_id !== "0") {
|
|
16543
16492
|
obj.user_id = message.user_id;
|
|
16544
16493
|
}
|
|
16545
|
-
if (message.is_private !==
|
|
16494
|
+
if (message.is_private !== false) {
|
|
16546
16495
|
obj.is_private = message.is_private;
|
|
16547
16496
|
}
|
|
16548
16497
|
if (message.meet_room !== void 0) {
|
|
@@ -16571,7 +16520,7 @@ var CreateEventRequest = {
|
|
|
16571
16520
|
message.repeat_type = (_m = object.repeat_type) != null ? _m : 0;
|
|
16572
16521
|
message.creator_id = (_n = object.creator_id) != null ? _n : "0";
|
|
16573
16522
|
message.user_id = (_o = object.user_id) != null ? _o : "0";
|
|
16574
|
-
message.is_private = (_p = object.is_private) != null ? _p :
|
|
16523
|
+
message.is_private = (_p = object.is_private) != null ? _p : false;
|
|
16575
16524
|
message.meet_room = object.meet_room !== void 0 && object.meet_room !== null ? GenerateMezonMeetResponse.fromPartial(object.meet_room) : void 0;
|
|
16576
16525
|
return message;
|
|
16577
16526
|
}
|
|
@@ -17022,8 +16971,8 @@ function createBaseUpdateRoleRequest() {
|
|
|
17022
16971
|
color: void 0,
|
|
17023
16972
|
role_icon: void 0,
|
|
17024
16973
|
description: void 0,
|
|
17025
|
-
display_online:
|
|
17026
|
-
allow_mention:
|
|
16974
|
+
display_online: 0,
|
|
16975
|
+
allow_mention: 0,
|
|
17027
16976
|
add_user_ids: [],
|
|
17028
16977
|
active_permission_ids: [],
|
|
17029
16978
|
remove_user_ids: [],
|
|
@@ -17049,11 +16998,11 @@ var UpdateRoleRequest = {
|
|
|
17049
16998
|
if (message.description !== void 0) {
|
|
17050
16999
|
StringValue.encode({ value: message.description }, writer.uint32(42).fork()).ldelim();
|
|
17051
17000
|
}
|
|
17052
|
-
if (message.display_online !==
|
|
17053
|
-
|
|
17001
|
+
if (message.display_online !== 0) {
|
|
17002
|
+
writer.uint32(48).int32(message.display_online);
|
|
17054
17003
|
}
|
|
17055
|
-
if (message.allow_mention !==
|
|
17056
|
-
|
|
17004
|
+
if (message.allow_mention !== 0) {
|
|
17005
|
+
writer.uint32(56).int32(message.allow_mention);
|
|
17057
17006
|
}
|
|
17058
17007
|
writer.uint32(66).fork();
|
|
17059
17008
|
for (const v of message.add_user_ids) {
|
|
@@ -17121,16 +17070,16 @@ var UpdateRoleRequest = {
|
|
|
17121
17070
|
message.description = StringValue.decode(reader, reader.uint32()).value;
|
|
17122
17071
|
continue;
|
|
17123
17072
|
case 6:
|
|
17124
|
-
if (tag !==
|
|
17073
|
+
if (tag !== 48) {
|
|
17125
17074
|
break;
|
|
17126
17075
|
}
|
|
17127
|
-
message.display_online =
|
|
17076
|
+
message.display_online = reader.int32();
|
|
17128
17077
|
continue;
|
|
17129
17078
|
case 7:
|
|
17130
|
-
if (tag !==
|
|
17079
|
+
if (tag !== 56) {
|
|
17131
17080
|
break;
|
|
17132
17081
|
}
|
|
17133
|
-
message.allow_mention =
|
|
17082
|
+
message.allow_mention = reader.int32();
|
|
17134
17083
|
continue;
|
|
17135
17084
|
case 8:
|
|
17136
17085
|
if (tag === 64) {
|
|
@@ -17211,8 +17160,8 @@ var UpdateRoleRequest = {
|
|
|
17211
17160
|
color: isSet2(object.color) ? String(object.color) : void 0,
|
|
17212
17161
|
role_icon: isSet2(object.role_icon) ? String(object.role_icon) : void 0,
|
|
17213
17162
|
description: isSet2(object.description) ? String(object.description) : void 0,
|
|
17214
|
-
display_online: isSet2(object.display_online) ? Number(object.display_online) :
|
|
17215
|
-
allow_mention: isSet2(object.allow_mention) ? Number(object.allow_mention) :
|
|
17163
|
+
display_online: isSet2(object.display_online) ? globalThis.Number(object.display_online) : 0,
|
|
17164
|
+
allow_mention: isSet2(object.allow_mention) ? globalThis.Number(object.allow_mention) : 0,
|
|
17216
17165
|
add_user_ids: globalThis.Array.isArray(object == null ? void 0 : object.add_user_ids) ? object.add_user_ids.map((e) => globalThis.String(e)) : [],
|
|
17217
17166
|
active_permission_ids: globalThis.Array.isArray(object == null ? void 0 : object.active_permission_ids) ? object.active_permission_ids.map((e) => globalThis.String(e)) : [],
|
|
17218
17167
|
remove_user_ids: globalThis.Array.isArray(object == null ? void 0 : object.remove_user_ids) ? object.remove_user_ids.map((e) => globalThis.String(e)) : [],
|
|
@@ -17239,11 +17188,11 @@ var UpdateRoleRequest = {
|
|
|
17239
17188
|
if (message.description !== void 0) {
|
|
17240
17189
|
obj.description = message.description;
|
|
17241
17190
|
}
|
|
17242
|
-
if (message.display_online !==
|
|
17243
|
-
obj.display_online = message.display_online;
|
|
17191
|
+
if (message.display_online !== 0) {
|
|
17192
|
+
obj.display_online = Math.round(message.display_online);
|
|
17244
17193
|
}
|
|
17245
|
-
if (message.allow_mention !==
|
|
17246
|
-
obj.allow_mention = message.allow_mention;
|
|
17194
|
+
if (message.allow_mention !== 0) {
|
|
17195
|
+
obj.allow_mention = Math.round(message.allow_mention);
|
|
17247
17196
|
}
|
|
17248
17197
|
if ((_a = message.add_user_ids) == null ? void 0 : _a.length) {
|
|
17249
17198
|
obj.add_user_ids = message.add_user_ids;
|
|
@@ -17276,8 +17225,8 @@ var UpdateRoleRequest = {
|
|
|
17276
17225
|
message.color = (_c = object.color) != null ? _c : void 0;
|
|
17277
17226
|
message.role_icon = (_d = object.role_icon) != null ? _d : void 0;
|
|
17278
17227
|
message.description = (_e = object.description) != null ? _e : void 0;
|
|
17279
|
-
message.display_online = (_f = object.display_online) != null ? _f :
|
|
17280
|
-
message.allow_mention = (_g = object.allow_mention) != null ? _g :
|
|
17228
|
+
message.display_online = (_f = object.display_online) != null ? _f : 0;
|
|
17229
|
+
message.allow_mention = (_g = object.allow_mention) != null ? _g : 0;
|
|
17281
17230
|
message.add_user_ids = ((_h = object.add_user_ids) == null ? void 0 : _h.map((e) => e)) || [];
|
|
17282
17231
|
message.active_permission_ids = ((_i = object.active_permission_ids) == null ? void 0 : _i.map((e) => e)) || [];
|
|
17283
17232
|
message.remove_user_ids = ((_j = object.remove_user_ids) == null ? void 0 : _j.map((e) => e)) || [];
|
|
@@ -17669,18 +17618,18 @@ var UploadAttachment = {
|
|
|
17669
17618
|
}
|
|
17670
17619
|
};
|
|
17671
17620
|
function createBaseSearchMessageRequest() {
|
|
17672
|
-
return { filters: [], from:
|
|
17621
|
+
return { filters: [], from: 0, size: 0, sorts: [] };
|
|
17673
17622
|
}
|
|
17674
17623
|
var SearchMessageRequest = {
|
|
17675
17624
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
17676
17625
|
for (const v of message.filters) {
|
|
17677
17626
|
FilterParam.encode(v, writer.uint32(10).fork()).ldelim();
|
|
17678
17627
|
}
|
|
17679
|
-
if (message.from !==
|
|
17680
|
-
|
|
17628
|
+
if (message.from !== 0) {
|
|
17629
|
+
writer.uint32(24).int32(message.from);
|
|
17681
17630
|
}
|
|
17682
|
-
if (message.size !==
|
|
17683
|
-
|
|
17631
|
+
if (message.size !== 0) {
|
|
17632
|
+
writer.uint32(32).int32(message.size);
|
|
17684
17633
|
}
|
|
17685
17634
|
for (const v of message.sorts) {
|
|
17686
17635
|
SortParam.encode(v, writer.uint32(42).fork()).ldelim();
|
|
@@ -17701,16 +17650,16 @@ var SearchMessageRequest = {
|
|
|
17701
17650
|
message.filters.push(FilterParam.decode(reader, reader.uint32()));
|
|
17702
17651
|
continue;
|
|
17703
17652
|
case 3:
|
|
17704
|
-
if (tag !==
|
|
17653
|
+
if (tag !== 24) {
|
|
17705
17654
|
break;
|
|
17706
17655
|
}
|
|
17707
|
-
message.from =
|
|
17656
|
+
message.from = reader.int32();
|
|
17708
17657
|
continue;
|
|
17709
17658
|
case 4:
|
|
17710
|
-
if (tag !==
|
|
17659
|
+
if (tag !== 32) {
|
|
17711
17660
|
break;
|
|
17712
17661
|
}
|
|
17713
|
-
message.size =
|
|
17662
|
+
message.size = reader.int32();
|
|
17714
17663
|
continue;
|
|
17715
17664
|
case 5:
|
|
17716
17665
|
if (tag !== 42) {
|
|
@@ -17729,8 +17678,8 @@ var SearchMessageRequest = {
|
|
|
17729
17678
|
fromJSON(object) {
|
|
17730
17679
|
return {
|
|
17731
17680
|
filters: globalThis.Array.isArray(object == null ? void 0 : object.filters) ? object.filters.map((e) => FilterParam.fromJSON(e)) : [],
|
|
17732
|
-
from: isSet2(object.from) ? Number(object.from) :
|
|
17733
|
-
size: isSet2(object.size) ? Number(object.size) :
|
|
17681
|
+
from: isSet2(object.from) ? globalThis.Number(object.from) : 0,
|
|
17682
|
+
size: isSet2(object.size) ? globalThis.Number(object.size) : 0,
|
|
17734
17683
|
sorts: globalThis.Array.isArray(object == null ? void 0 : object.sorts) ? object.sorts.map((e) => SortParam.fromJSON(e)) : []
|
|
17735
17684
|
};
|
|
17736
17685
|
},
|
|
@@ -17740,11 +17689,11 @@ var SearchMessageRequest = {
|
|
|
17740
17689
|
if ((_a = message.filters) == null ? void 0 : _a.length) {
|
|
17741
17690
|
obj.filters = message.filters.map((e) => FilterParam.toJSON(e));
|
|
17742
17691
|
}
|
|
17743
|
-
if (message.from !==
|
|
17744
|
-
obj.from = message.from;
|
|
17692
|
+
if (message.from !== 0) {
|
|
17693
|
+
obj.from = Math.round(message.from);
|
|
17745
17694
|
}
|
|
17746
|
-
if (message.size !==
|
|
17747
|
-
obj.size = message.size;
|
|
17695
|
+
if (message.size !== 0) {
|
|
17696
|
+
obj.size = Math.round(message.size);
|
|
17748
17697
|
}
|
|
17749
17698
|
if ((_b = message.sorts) == null ? void 0 : _b.length) {
|
|
17750
17699
|
obj.sorts = message.sorts.map((e) => SortParam.toJSON(e));
|
|
@@ -17758,8 +17707,8 @@ var SearchMessageRequest = {
|
|
|
17758
17707
|
var _a, _b, _c, _d;
|
|
17759
17708
|
const message = createBaseSearchMessageRequest();
|
|
17760
17709
|
message.filters = ((_a = object.filters) == null ? void 0 : _a.map((e) => FilterParam.fromPartial(e))) || [];
|
|
17761
|
-
message.from = (_b = object.from) != null ? _b :
|
|
17762
|
-
message.size = (_c = object.size) != null ? _c :
|
|
17710
|
+
message.from = (_b = object.from) != null ? _b : 0;
|
|
17711
|
+
message.size = (_c = object.size) != null ? _c : 0;
|
|
17763
17712
|
message.sorts = ((_d = object.sorts) == null ? void 0 : _d.map((e) => SortParam.fromPartial(e))) || [];
|
|
17764
17713
|
return message;
|
|
17765
17714
|
}
|
|
@@ -18750,15 +18699,15 @@ var ClanSticker = {
|
|
|
18750
18699
|
}
|
|
18751
18700
|
};
|
|
18752
18701
|
function createBaseAllUsersAddChannelRequest() {
|
|
18753
|
-
return { channel_id: "0", limit:
|
|
18702
|
+
return { channel_id: "0", limit: 0 };
|
|
18754
18703
|
}
|
|
18755
18704
|
var AllUsersAddChannelRequest = {
|
|
18756
18705
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
18757
18706
|
if (message.channel_id !== "0") {
|
|
18758
18707
|
writer.uint32(8).int64(message.channel_id);
|
|
18759
18708
|
}
|
|
18760
|
-
if (message.limit !==
|
|
18761
|
-
|
|
18709
|
+
if (message.limit !== 0) {
|
|
18710
|
+
writer.uint32(16).int32(message.limit);
|
|
18762
18711
|
}
|
|
18763
18712
|
return writer;
|
|
18764
18713
|
},
|
|
@@ -18776,10 +18725,10 @@ var AllUsersAddChannelRequest = {
|
|
|
18776
18725
|
message.channel_id = longToString(reader.int64());
|
|
18777
18726
|
continue;
|
|
18778
18727
|
case 2:
|
|
18779
|
-
if (tag !==
|
|
18728
|
+
if (tag !== 16) {
|
|
18780
18729
|
break;
|
|
18781
18730
|
}
|
|
18782
|
-
message.limit =
|
|
18731
|
+
message.limit = reader.int32();
|
|
18783
18732
|
continue;
|
|
18784
18733
|
}
|
|
18785
18734
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -18792,7 +18741,7 @@ var AllUsersAddChannelRequest = {
|
|
|
18792
18741
|
fromJSON(object) {
|
|
18793
18742
|
return {
|
|
18794
18743
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
18795
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
18744
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0
|
|
18796
18745
|
};
|
|
18797
18746
|
},
|
|
18798
18747
|
toJSON(message) {
|
|
@@ -18800,8 +18749,8 @@ var AllUsersAddChannelRequest = {
|
|
|
18800
18749
|
if (message.channel_id !== "0") {
|
|
18801
18750
|
obj.channel_id = message.channel_id;
|
|
18802
18751
|
}
|
|
18803
|
-
if (message.limit !==
|
|
18804
|
-
obj.limit = message.limit;
|
|
18752
|
+
if (message.limit !== 0) {
|
|
18753
|
+
obj.limit = Math.round(message.limit);
|
|
18805
18754
|
}
|
|
18806
18755
|
return obj;
|
|
18807
18756
|
},
|
|
@@ -18812,20 +18761,12 @@ var AllUsersAddChannelRequest = {
|
|
|
18812
18761
|
var _a, _b;
|
|
18813
18762
|
const message = createBaseAllUsersAddChannelRequest();
|
|
18814
18763
|
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
18815
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
18764
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
18816
18765
|
return message;
|
|
18817
18766
|
}
|
|
18818
18767
|
};
|
|
18819
18768
|
function createBaseAllUsersAddChannelResponse() {
|
|
18820
|
-
return {
|
|
18821
|
-
channel_id: "0",
|
|
18822
|
-
user_ids: [],
|
|
18823
|
-
limit: void 0,
|
|
18824
|
-
usernames: [],
|
|
18825
|
-
display_names: [],
|
|
18826
|
-
avatars: [],
|
|
18827
|
-
onlines: []
|
|
18828
|
-
};
|
|
18769
|
+
return { channel_id: "0", user_ids: [], limit: 0, usernames: [], display_names: [], avatars: [], onlines: [] };
|
|
18829
18770
|
}
|
|
18830
18771
|
var AllUsersAddChannelResponse = {
|
|
18831
18772
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -18837,8 +18778,8 @@ var AllUsersAddChannelResponse = {
|
|
|
18837
18778
|
writer.int64(v);
|
|
18838
18779
|
}
|
|
18839
18780
|
writer.ldelim();
|
|
18840
|
-
if (message.limit !==
|
|
18841
|
-
|
|
18781
|
+
if (message.limit !== 0) {
|
|
18782
|
+
writer.uint32(24).int32(message.limit);
|
|
18842
18783
|
}
|
|
18843
18784
|
for (const v of message.usernames) {
|
|
18844
18785
|
writer.uint32(34).string(v);
|
|
@@ -18883,10 +18824,10 @@ var AllUsersAddChannelResponse = {
|
|
|
18883
18824
|
}
|
|
18884
18825
|
break;
|
|
18885
18826
|
case 3:
|
|
18886
|
-
if (tag !==
|
|
18827
|
+
if (tag !== 24) {
|
|
18887
18828
|
break;
|
|
18888
18829
|
}
|
|
18889
|
-
message.limit =
|
|
18830
|
+
message.limit = reader.int32();
|
|
18890
18831
|
continue;
|
|
18891
18832
|
case 4:
|
|
18892
18833
|
if (tag !== 34) {
|
|
@@ -18931,7 +18872,7 @@ var AllUsersAddChannelResponse = {
|
|
|
18931
18872
|
return {
|
|
18932
18873
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
18933
18874
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
18934
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
18875
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
18935
18876
|
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
18936
18877
|
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
|
|
18937
18878
|
avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : [],
|
|
@@ -18947,8 +18888,8 @@ var AllUsersAddChannelResponse = {
|
|
|
18947
18888
|
if ((_a = message.user_ids) == null ? void 0 : _a.length) {
|
|
18948
18889
|
obj.user_ids = message.user_ids;
|
|
18949
18890
|
}
|
|
18950
|
-
if (message.limit !==
|
|
18951
|
-
obj.limit = message.limit;
|
|
18891
|
+
if (message.limit !== 0) {
|
|
18892
|
+
obj.limit = Math.round(message.limit);
|
|
18952
18893
|
}
|
|
18953
18894
|
if ((_b = message.usernames) == null ? void 0 : _b.length) {
|
|
18954
18895
|
obj.usernames = message.usernames;
|
|
@@ -18972,7 +18913,7 @@ var AllUsersAddChannelResponse = {
|
|
|
18972
18913
|
const message = createBaseAllUsersAddChannelResponse();
|
|
18973
18914
|
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
18974
18915
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
18975
|
-
message.limit = (_c = object.limit) != null ? _c :
|
|
18916
|
+
message.limit = (_c = object.limit) != null ? _c : 0;
|
|
18976
18917
|
message.usernames = ((_d = object.usernames) == null ? void 0 : _d.map((e) => e)) || [];
|
|
18977
18918
|
message.display_names = ((_e = object.display_names) == null ? void 0 : _e.map((e) => e)) || [];
|
|
18978
18919
|
message.avatars = ((_f = object.avatars) == null ? void 0 : _f.map((e) => e)) || [];
|
|
@@ -22924,12 +22865,12 @@ function createBaseChannelSettingListRequest() {
|
|
|
22924
22865
|
clan_id: "0",
|
|
22925
22866
|
parent_id: "0",
|
|
22926
22867
|
category_id: "0",
|
|
22927
|
-
private_channel:
|
|
22928
|
-
active:
|
|
22929
|
-
status:
|
|
22930
|
-
type:
|
|
22931
|
-
limit:
|
|
22932
|
-
page:
|
|
22868
|
+
private_channel: 0,
|
|
22869
|
+
active: 0,
|
|
22870
|
+
status: 0,
|
|
22871
|
+
type: 0,
|
|
22872
|
+
limit: 0,
|
|
22873
|
+
page: 0,
|
|
22933
22874
|
channel_label: ""
|
|
22934
22875
|
};
|
|
22935
22876
|
}
|
|
@@ -22944,23 +22885,23 @@ var ChannelSettingListRequest = {
|
|
|
22944
22885
|
if (message.category_id !== "0") {
|
|
22945
22886
|
writer.uint32(24).int64(message.category_id);
|
|
22946
22887
|
}
|
|
22947
|
-
if (message.private_channel !==
|
|
22948
|
-
|
|
22888
|
+
if (message.private_channel !== 0) {
|
|
22889
|
+
writer.uint32(32).int32(message.private_channel);
|
|
22949
22890
|
}
|
|
22950
|
-
if (message.active !==
|
|
22951
|
-
|
|
22891
|
+
if (message.active !== 0) {
|
|
22892
|
+
writer.uint32(40).int32(message.active);
|
|
22952
22893
|
}
|
|
22953
|
-
if (message.status !==
|
|
22954
|
-
|
|
22894
|
+
if (message.status !== 0) {
|
|
22895
|
+
writer.uint32(48).int32(message.status);
|
|
22955
22896
|
}
|
|
22956
|
-
if (message.type !==
|
|
22957
|
-
|
|
22897
|
+
if (message.type !== 0) {
|
|
22898
|
+
writer.uint32(56).int32(message.type);
|
|
22958
22899
|
}
|
|
22959
|
-
if (message.limit !==
|
|
22960
|
-
|
|
22900
|
+
if (message.limit !== 0) {
|
|
22901
|
+
writer.uint32(64).int32(message.limit);
|
|
22961
22902
|
}
|
|
22962
|
-
if (message.page !==
|
|
22963
|
-
|
|
22903
|
+
if (message.page !== 0) {
|
|
22904
|
+
writer.uint32(72).int32(message.page);
|
|
22964
22905
|
}
|
|
22965
22906
|
if (message.channel_label !== "") {
|
|
22966
22907
|
writer.uint32(82).string(message.channel_label);
|
|
@@ -22993,40 +22934,40 @@ var ChannelSettingListRequest = {
|
|
|
22993
22934
|
message.category_id = longToString(reader.int64());
|
|
22994
22935
|
continue;
|
|
22995
22936
|
case 4:
|
|
22996
|
-
if (tag !==
|
|
22937
|
+
if (tag !== 32) {
|
|
22997
22938
|
break;
|
|
22998
22939
|
}
|
|
22999
|
-
message.private_channel =
|
|
22940
|
+
message.private_channel = reader.int32();
|
|
23000
22941
|
continue;
|
|
23001
22942
|
case 5:
|
|
23002
|
-
if (tag !==
|
|
22943
|
+
if (tag !== 40) {
|
|
23003
22944
|
break;
|
|
23004
22945
|
}
|
|
23005
|
-
message.active =
|
|
22946
|
+
message.active = reader.int32();
|
|
23006
22947
|
continue;
|
|
23007
22948
|
case 6:
|
|
23008
|
-
if (tag !==
|
|
22949
|
+
if (tag !== 48) {
|
|
23009
22950
|
break;
|
|
23010
22951
|
}
|
|
23011
|
-
message.status =
|
|
22952
|
+
message.status = reader.int32();
|
|
23012
22953
|
continue;
|
|
23013
22954
|
case 7:
|
|
23014
|
-
if (tag !==
|
|
22955
|
+
if (tag !== 56) {
|
|
23015
22956
|
break;
|
|
23016
22957
|
}
|
|
23017
|
-
message.type =
|
|
22958
|
+
message.type = reader.int32();
|
|
23018
22959
|
continue;
|
|
23019
22960
|
case 8:
|
|
23020
|
-
if (tag !==
|
|
22961
|
+
if (tag !== 64) {
|
|
23021
22962
|
break;
|
|
23022
22963
|
}
|
|
23023
|
-
message.limit =
|
|
22964
|
+
message.limit = reader.int32();
|
|
23024
22965
|
continue;
|
|
23025
22966
|
case 9:
|
|
23026
|
-
if (tag !==
|
|
22967
|
+
if (tag !== 72) {
|
|
23027
22968
|
break;
|
|
23028
22969
|
}
|
|
23029
|
-
message.page =
|
|
22970
|
+
message.page = reader.int32();
|
|
23030
22971
|
continue;
|
|
23031
22972
|
case 10:
|
|
23032
22973
|
if (tag !== 82) {
|
|
@@ -23047,12 +22988,12 @@ var ChannelSettingListRequest = {
|
|
|
23047
22988
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
23048
22989
|
parent_id: isSet2(object.parent_id) ? globalThis.String(object.parent_id) : "0",
|
|
23049
22990
|
category_id: isSet2(object.category_id) ? globalThis.String(object.category_id) : "0",
|
|
23050
|
-
private_channel: isSet2(object.private_channel) ? Number(object.private_channel) :
|
|
23051
|
-
active: isSet2(object.active) ? Number(object.active) :
|
|
23052
|
-
status: isSet2(object.status) ? Number(object.status) :
|
|
23053
|
-
type: isSet2(object.type) ? Number(object.type) :
|
|
23054
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
23055
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
22991
|
+
private_channel: isSet2(object.private_channel) ? globalThis.Number(object.private_channel) : 0,
|
|
22992
|
+
active: isSet2(object.active) ? globalThis.Number(object.active) : 0,
|
|
22993
|
+
status: isSet2(object.status) ? globalThis.Number(object.status) : 0,
|
|
22994
|
+
type: isSet2(object.type) ? globalThis.Number(object.type) : 0,
|
|
22995
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
22996
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0,
|
|
23056
22997
|
channel_label: isSet2(object.channel_label) ? globalThis.String(object.channel_label) : ""
|
|
23057
22998
|
};
|
|
23058
22999
|
},
|
|
@@ -23067,23 +23008,23 @@ var ChannelSettingListRequest = {
|
|
|
23067
23008
|
if (message.category_id !== "0") {
|
|
23068
23009
|
obj.category_id = message.category_id;
|
|
23069
23010
|
}
|
|
23070
|
-
if (message.private_channel !==
|
|
23071
|
-
obj.private_channel = message.private_channel;
|
|
23011
|
+
if (message.private_channel !== 0) {
|
|
23012
|
+
obj.private_channel = Math.round(message.private_channel);
|
|
23072
23013
|
}
|
|
23073
|
-
if (message.active !==
|
|
23074
|
-
obj.active = message.active;
|
|
23014
|
+
if (message.active !== 0) {
|
|
23015
|
+
obj.active = Math.round(message.active);
|
|
23075
23016
|
}
|
|
23076
|
-
if (message.status !==
|
|
23077
|
-
obj.status = message.status;
|
|
23017
|
+
if (message.status !== 0) {
|
|
23018
|
+
obj.status = Math.round(message.status);
|
|
23078
23019
|
}
|
|
23079
|
-
if (message.type !==
|
|
23080
|
-
obj.type = message.type;
|
|
23020
|
+
if (message.type !== 0) {
|
|
23021
|
+
obj.type = Math.round(message.type);
|
|
23081
23022
|
}
|
|
23082
|
-
if (message.limit !==
|
|
23083
|
-
obj.limit = message.limit;
|
|
23023
|
+
if (message.limit !== 0) {
|
|
23024
|
+
obj.limit = Math.round(message.limit);
|
|
23084
23025
|
}
|
|
23085
|
-
if (message.page !==
|
|
23086
|
-
obj.page = message.page;
|
|
23026
|
+
if (message.page !== 0) {
|
|
23027
|
+
obj.page = Math.round(message.page);
|
|
23087
23028
|
}
|
|
23088
23029
|
if (message.channel_label !== "") {
|
|
23089
23030
|
obj.channel_label = message.channel_label;
|
|
@@ -23099,12 +23040,12 @@ var ChannelSettingListRequest = {
|
|
|
23099
23040
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
23100
23041
|
message.parent_id = (_b = object.parent_id) != null ? _b : "0";
|
|
23101
23042
|
message.category_id = (_c = object.category_id) != null ? _c : "0";
|
|
23102
|
-
message.private_channel = (_d = object.private_channel) != null ? _d :
|
|
23103
|
-
message.active = (_e = object.active) != null ? _e :
|
|
23104
|
-
message.status = (_f = object.status) != null ? _f :
|
|
23105
|
-
message.type = (_g = object.type) != null ? _g :
|
|
23106
|
-
message.limit = (_h = object.limit) != null ? _h :
|
|
23107
|
-
message.page = (_i = object.page) != null ? _i :
|
|
23043
|
+
message.private_channel = (_d = object.private_channel) != null ? _d : 0;
|
|
23044
|
+
message.active = (_e = object.active) != null ? _e : 0;
|
|
23045
|
+
message.status = (_f = object.status) != null ? _f : 0;
|
|
23046
|
+
message.type = (_g = object.type) != null ? _g : 0;
|
|
23047
|
+
message.limit = (_h = object.limit) != null ? _h : 0;
|
|
23048
|
+
message.page = (_i = object.page) != null ? _i : 0;
|
|
23108
23049
|
message.channel_label = (_j = object.channel_label) != null ? _j : "";
|
|
23109
23050
|
return message;
|
|
23110
23051
|
}
|
|
@@ -23786,7 +23727,7 @@ var DeleteChannelCanvasRequest = {
|
|
|
23786
23727
|
}
|
|
23787
23728
|
};
|
|
23788
23729
|
function createBaseChannelCanvasListRequest() {
|
|
23789
|
-
return { clan_id: "0", channel_id: "0", limit:
|
|
23730
|
+
return { clan_id: "0", channel_id: "0", limit: 0, page: 0, cursor: "" };
|
|
23790
23731
|
}
|
|
23791
23732
|
var ChannelCanvasListRequest = {
|
|
23792
23733
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -23796,11 +23737,11 @@ var ChannelCanvasListRequest = {
|
|
|
23796
23737
|
if (message.channel_id !== "0") {
|
|
23797
23738
|
writer.uint32(16).int64(message.channel_id);
|
|
23798
23739
|
}
|
|
23799
|
-
if (message.limit !==
|
|
23800
|
-
|
|
23740
|
+
if (message.limit !== 0) {
|
|
23741
|
+
writer.uint32(24).int32(message.limit);
|
|
23801
23742
|
}
|
|
23802
|
-
if (message.page !==
|
|
23803
|
-
|
|
23743
|
+
if (message.page !== 0) {
|
|
23744
|
+
writer.uint32(32).int32(message.page);
|
|
23804
23745
|
}
|
|
23805
23746
|
if (message.cursor !== "") {
|
|
23806
23747
|
writer.uint32(42).string(message.cursor);
|
|
@@ -23827,16 +23768,16 @@ var ChannelCanvasListRequest = {
|
|
|
23827
23768
|
message.channel_id = longToString(reader.int64());
|
|
23828
23769
|
continue;
|
|
23829
23770
|
case 3:
|
|
23830
|
-
if (tag !==
|
|
23771
|
+
if (tag !== 24) {
|
|
23831
23772
|
break;
|
|
23832
23773
|
}
|
|
23833
|
-
message.limit =
|
|
23774
|
+
message.limit = reader.int32();
|
|
23834
23775
|
continue;
|
|
23835
23776
|
case 4:
|
|
23836
|
-
if (tag !==
|
|
23777
|
+
if (tag !== 32) {
|
|
23837
23778
|
break;
|
|
23838
23779
|
}
|
|
23839
|
-
message.page =
|
|
23780
|
+
message.page = reader.int32();
|
|
23840
23781
|
continue;
|
|
23841
23782
|
case 5:
|
|
23842
23783
|
if (tag !== 42) {
|
|
@@ -23856,8 +23797,8 @@ var ChannelCanvasListRequest = {
|
|
|
23856
23797
|
return {
|
|
23857
23798
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
23858
23799
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
23859
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
23860
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
23800
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
23801
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0,
|
|
23861
23802
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
23862
23803
|
};
|
|
23863
23804
|
},
|
|
@@ -23869,11 +23810,11 @@ var ChannelCanvasListRequest = {
|
|
|
23869
23810
|
if (message.channel_id !== "0") {
|
|
23870
23811
|
obj.channel_id = message.channel_id;
|
|
23871
23812
|
}
|
|
23872
|
-
if (message.limit !==
|
|
23873
|
-
obj.limit = message.limit;
|
|
23813
|
+
if (message.limit !== 0) {
|
|
23814
|
+
obj.limit = Math.round(message.limit);
|
|
23874
23815
|
}
|
|
23875
|
-
if (message.page !==
|
|
23876
|
-
obj.page = message.page;
|
|
23816
|
+
if (message.page !== 0) {
|
|
23817
|
+
obj.page = Math.round(message.page);
|
|
23877
23818
|
}
|
|
23878
23819
|
if (message.cursor !== "") {
|
|
23879
23820
|
obj.cursor = message.cursor;
|
|
@@ -23888,8 +23829,8 @@ var ChannelCanvasListRequest = {
|
|
|
23888
23829
|
const message = createBaseChannelCanvasListRequest();
|
|
23889
23830
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
23890
23831
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
23891
|
-
message.limit = (_c = object.limit) != null ? _c :
|
|
23892
|
-
message.page = (_d = object.page) != null ? _d :
|
|
23832
|
+
message.limit = (_c = object.limit) != null ? _c : 0;
|
|
23833
|
+
message.page = (_d = object.page) != null ? _d : 0;
|
|
23893
23834
|
message.cursor = (_e = object.cursor) != null ? _e : "";
|
|
23894
23835
|
return message;
|
|
23895
23836
|
}
|
|
@@ -26051,21 +25992,21 @@ var TokenSentEvent = {
|
|
|
26051
25992
|
}
|
|
26052
25993
|
};
|
|
26053
25994
|
function createBaseListOnboardingRequest() {
|
|
26054
|
-
return { clan_id: "0", guide_type:
|
|
25995
|
+
return { clan_id: "0", guide_type: 0, limit: 0, page: 0 };
|
|
26055
25996
|
}
|
|
26056
25997
|
var ListOnboardingRequest = {
|
|
26057
25998
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
26058
25999
|
if (message.clan_id !== "0") {
|
|
26059
26000
|
writer.uint32(8).int64(message.clan_id);
|
|
26060
26001
|
}
|
|
26061
|
-
if (message.guide_type !==
|
|
26062
|
-
|
|
26002
|
+
if (message.guide_type !== 0) {
|
|
26003
|
+
writer.uint32(16).int32(message.guide_type);
|
|
26063
26004
|
}
|
|
26064
|
-
if (message.limit !==
|
|
26065
|
-
|
|
26005
|
+
if (message.limit !== 0) {
|
|
26006
|
+
writer.uint32(24).int32(message.limit);
|
|
26066
26007
|
}
|
|
26067
|
-
if (message.page !==
|
|
26068
|
-
|
|
26008
|
+
if (message.page !== 0) {
|
|
26009
|
+
writer.uint32(32).int32(message.page);
|
|
26069
26010
|
}
|
|
26070
26011
|
return writer;
|
|
26071
26012
|
},
|
|
@@ -26083,22 +26024,22 @@ var ListOnboardingRequest = {
|
|
|
26083
26024
|
message.clan_id = longToString(reader.int64());
|
|
26084
26025
|
continue;
|
|
26085
26026
|
case 2:
|
|
26086
|
-
if (tag !==
|
|
26027
|
+
if (tag !== 16) {
|
|
26087
26028
|
break;
|
|
26088
26029
|
}
|
|
26089
|
-
message.guide_type =
|
|
26030
|
+
message.guide_type = reader.int32();
|
|
26090
26031
|
continue;
|
|
26091
26032
|
case 3:
|
|
26092
|
-
if (tag !==
|
|
26033
|
+
if (tag !== 24) {
|
|
26093
26034
|
break;
|
|
26094
26035
|
}
|
|
26095
|
-
message.limit =
|
|
26036
|
+
message.limit = reader.int32();
|
|
26096
26037
|
continue;
|
|
26097
26038
|
case 4:
|
|
26098
|
-
if (tag !==
|
|
26039
|
+
if (tag !== 32) {
|
|
26099
26040
|
break;
|
|
26100
26041
|
}
|
|
26101
|
-
message.page =
|
|
26042
|
+
message.page = reader.int32();
|
|
26102
26043
|
continue;
|
|
26103
26044
|
}
|
|
26104
26045
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -26111,9 +26052,9 @@ var ListOnboardingRequest = {
|
|
|
26111
26052
|
fromJSON(object) {
|
|
26112
26053
|
return {
|
|
26113
26054
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
26114
|
-
guide_type: isSet2(object.guide_type) ? Number(object.guide_type) :
|
|
26115
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
26116
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
26055
|
+
guide_type: isSet2(object.guide_type) ? globalThis.Number(object.guide_type) : 0,
|
|
26056
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
26057
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0
|
|
26117
26058
|
};
|
|
26118
26059
|
},
|
|
26119
26060
|
toJSON(message) {
|
|
@@ -26121,14 +26062,14 @@ var ListOnboardingRequest = {
|
|
|
26121
26062
|
if (message.clan_id !== "0") {
|
|
26122
26063
|
obj.clan_id = message.clan_id;
|
|
26123
26064
|
}
|
|
26124
|
-
if (message.guide_type !==
|
|
26125
|
-
obj.guide_type = message.guide_type;
|
|
26065
|
+
if (message.guide_type !== 0) {
|
|
26066
|
+
obj.guide_type = Math.round(message.guide_type);
|
|
26126
26067
|
}
|
|
26127
|
-
if (message.limit !==
|
|
26128
|
-
obj.limit = message.limit;
|
|
26068
|
+
if (message.limit !== 0) {
|
|
26069
|
+
obj.limit = Math.round(message.limit);
|
|
26129
26070
|
}
|
|
26130
|
-
if (message.page !==
|
|
26131
|
-
obj.page = message.page;
|
|
26071
|
+
if (message.page !== 0) {
|
|
26072
|
+
obj.page = Math.round(message.page);
|
|
26132
26073
|
}
|
|
26133
26074
|
return obj;
|
|
26134
26075
|
},
|
|
@@ -26139,9 +26080,9 @@ var ListOnboardingRequest = {
|
|
|
26139
26080
|
var _a, _b, _c, _d;
|
|
26140
26081
|
const message = createBaseListOnboardingRequest();
|
|
26141
26082
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
26142
|
-
message.guide_type = (_b = object.guide_type) != null ? _b :
|
|
26143
|
-
message.limit = (_c = object.limit) != null ? _c :
|
|
26144
|
-
message.page = (_d = object.page) != null ? _d :
|
|
26083
|
+
message.guide_type = (_b = object.guide_type) != null ? _b : 0;
|
|
26084
|
+
message.limit = (_c = object.limit) != null ? _c : 0;
|
|
26085
|
+
message.page = (_d = object.page) != null ? _d : 0;
|
|
26145
26086
|
return message;
|
|
26146
26087
|
}
|
|
26147
26088
|
};
|
|
@@ -26707,16 +26648,7 @@ var CreateOnboardingRequest = {
|
|
|
26707
26648
|
}
|
|
26708
26649
|
};
|
|
26709
26650
|
function createBaseUpdateOnboardingRequest() {
|
|
26710
|
-
return {
|
|
26711
|
-
id: "0",
|
|
26712
|
-
clan_id: "0",
|
|
26713
|
-
task_type: void 0,
|
|
26714
|
-
channel_id: "0",
|
|
26715
|
-
title: "",
|
|
26716
|
-
content: "",
|
|
26717
|
-
image_url: "",
|
|
26718
|
-
answers: []
|
|
26719
|
-
};
|
|
26651
|
+
return { id: "0", clan_id: "0", task_type: 0, channel_id: "0", title: "", content: "", image_url: "", answers: [] };
|
|
26720
26652
|
}
|
|
26721
26653
|
var UpdateOnboardingRequest = {
|
|
26722
26654
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -26726,8 +26658,8 @@ var UpdateOnboardingRequest = {
|
|
|
26726
26658
|
if (message.clan_id !== "0") {
|
|
26727
26659
|
writer.uint32(16).int64(message.clan_id);
|
|
26728
26660
|
}
|
|
26729
|
-
if (message.task_type !==
|
|
26730
|
-
|
|
26661
|
+
if (message.task_type !== 0) {
|
|
26662
|
+
writer.uint32(24).int32(message.task_type);
|
|
26731
26663
|
}
|
|
26732
26664
|
if (message.channel_id !== "0") {
|
|
26733
26665
|
writer.uint32(32).int64(message.channel_id);
|
|
@@ -26766,10 +26698,10 @@ var UpdateOnboardingRequest = {
|
|
|
26766
26698
|
message.clan_id = longToString(reader.int64());
|
|
26767
26699
|
continue;
|
|
26768
26700
|
case 3:
|
|
26769
|
-
if (tag !==
|
|
26701
|
+
if (tag !== 24) {
|
|
26770
26702
|
break;
|
|
26771
26703
|
}
|
|
26772
|
-
message.task_type =
|
|
26704
|
+
message.task_type = reader.int32();
|
|
26773
26705
|
continue;
|
|
26774
26706
|
case 4:
|
|
26775
26707
|
if (tag !== 32) {
|
|
@@ -26813,7 +26745,7 @@ var UpdateOnboardingRequest = {
|
|
|
26813
26745
|
return {
|
|
26814
26746
|
id: isSet2(object.id) ? globalThis.String(object.id) : "0",
|
|
26815
26747
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
26816
|
-
task_type: isSet2(object.task_type) ? Number(object.task_type) :
|
|
26748
|
+
task_type: isSet2(object.task_type) ? globalThis.Number(object.task_type) : 0,
|
|
26817
26749
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
26818
26750
|
title: isSet2(object.title) ? globalThis.String(object.title) : "",
|
|
26819
26751
|
content: isSet2(object.content) ? globalThis.String(object.content) : "",
|
|
@@ -26830,8 +26762,8 @@ var UpdateOnboardingRequest = {
|
|
|
26830
26762
|
if (message.clan_id !== "0") {
|
|
26831
26763
|
obj.clan_id = message.clan_id;
|
|
26832
26764
|
}
|
|
26833
|
-
if (message.task_type !==
|
|
26834
|
-
obj.task_type = message.task_type;
|
|
26765
|
+
if (message.task_type !== 0) {
|
|
26766
|
+
obj.task_type = Math.round(message.task_type);
|
|
26835
26767
|
}
|
|
26836
26768
|
if (message.channel_id !== "0") {
|
|
26837
26769
|
obj.channel_id = message.channel_id;
|
|
@@ -26858,7 +26790,7 @@ var UpdateOnboardingRequest = {
|
|
|
26858
26790
|
const message = createBaseUpdateOnboardingRequest();
|
|
26859
26791
|
message.id = (_a = object.id) != null ? _a : "0";
|
|
26860
26792
|
message.clan_id = (_b = object.clan_id) != null ? _b : "0";
|
|
26861
|
-
message.task_type = (_c = object.task_type) != null ? _c :
|
|
26793
|
+
message.task_type = (_c = object.task_type) != null ? _c : 0;
|
|
26862
26794
|
message.channel_id = (_d = object.channel_id) != null ? _d : "0";
|
|
26863
26795
|
message.title = (_e = object.title) != null ? _e : "";
|
|
26864
26796
|
message.content = (_f = object.content) != null ? _f : "";
|
|
@@ -27864,18 +27796,18 @@ var ListOnboardingStepResponse = {
|
|
|
27864
27796
|
}
|
|
27865
27797
|
};
|
|
27866
27798
|
function createBaseListOnboardingStepRequest() {
|
|
27867
|
-
return { clan_id: "0", limit:
|
|
27799
|
+
return { clan_id: "0", limit: 0, page: 0 };
|
|
27868
27800
|
}
|
|
27869
27801
|
var ListOnboardingStepRequest = {
|
|
27870
27802
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
27871
27803
|
if (message.clan_id !== "0") {
|
|
27872
27804
|
writer.uint32(8).int64(message.clan_id);
|
|
27873
27805
|
}
|
|
27874
|
-
if (message.limit !==
|
|
27875
|
-
|
|
27806
|
+
if (message.limit !== 0) {
|
|
27807
|
+
writer.uint32(16).int32(message.limit);
|
|
27876
27808
|
}
|
|
27877
|
-
if (message.page !==
|
|
27878
|
-
|
|
27809
|
+
if (message.page !== 0) {
|
|
27810
|
+
writer.uint32(24).int32(message.page);
|
|
27879
27811
|
}
|
|
27880
27812
|
return writer;
|
|
27881
27813
|
},
|
|
@@ -27893,16 +27825,16 @@ var ListOnboardingStepRequest = {
|
|
|
27893
27825
|
message.clan_id = longToString(reader.int64());
|
|
27894
27826
|
continue;
|
|
27895
27827
|
case 2:
|
|
27896
|
-
if (tag !==
|
|
27828
|
+
if (tag !== 16) {
|
|
27897
27829
|
break;
|
|
27898
27830
|
}
|
|
27899
|
-
message.limit =
|
|
27831
|
+
message.limit = reader.int32();
|
|
27900
27832
|
continue;
|
|
27901
27833
|
case 3:
|
|
27902
|
-
if (tag !==
|
|
27834
|
+
if (tag !== 24) {
|
|
27903
27835
|
break;
|
|
27904
27836
|
}
|
|
27905
|
-
message.page =
|
|
27837
|
+
message.page = reader.int32();
|
|
27906
27838
|
continue;
|
|
27907
27839
|
}
|
|
27908
27840
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -27915,8 +27847,8 @@ var ListOnboardingStepRequest = {
|
|
|
27915
27847
|
fromJSON(object) {
|
|
27916
27848
|
return {
|
|
27917
27849
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
27918
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
27919
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
27850
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
27851
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0
|
|
27920
27852
|
};
|
|
27921
27853
|
},
|
|
27922
27854
|
toJSON(message) {
|
|
@@ -27924,11 +27856,11 @@ var ListOnboardingStepRequest = {
|
|
|
27924
27856
|
if (message.clan_id !== "0") {
|
|
27925
27857
|
obj.clan_id = message.clan_id;
|
|
27926
27858
|
}
|
|
27927
|
-
if (message.limit !==
|
|
27928
|
-
obj.limit = message.limit;
|
|
27859
|
+
if (message.limit !== 0) {
|
|
27860
|
+
obj.limit = Math.round(message.limit);
|
|
27929
27861
|
}
|
|
27930
|
-
if (message.page !==
|
|
27931
|
-
obj.page = message.page;
|
|
27862
|
+
if (message.page !== 0) {
|
|
27863
|
+
obj.page = Math.round(message.page);
|
|
27932
27864
|
}
|
|
27933
27865
|
return obj;
|
|
27934
27866
|
},
|
|
@@ -27939,21 +27871,21 @@ var ListOnboardingStepRequest = {
|
|
|
27939
27871
|
var _a, _b, _c;
|
|
27940
27872
|
const message = createBaseListOnboardingStepRequest();
|
|
27941
27873
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
27942
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
27943
|
-
message.page = (_c = object.page) != null ? _c :
|
|
27874
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
27875
|
+
message.page = (_c = object.page) != null ? _c : 0;
|
|
27944
27876
|
return message;
|
|
27945
27877
|
}
|
|
27946
27878
|
};
|
|
27947
27879
|
function createBaseUpdateOnboardingStepRequest() {
|
|
27948
|
-
return { clan_id: "0", onboarding_step:
|
|
27880
|
+
return { clan_id: "0", onboarding_step: 0 };
|
|
27949
27881
|
}
|
|
27950
27882
|
var UpdateOnboardingStepRequest = {
|
|
27951
27883
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
27952
27884
|
if (message.clan_id !== "0") {
|
|
27953
27885
|
writer.uint32(8).int64(message.clan_id);
|
|
27954
27886
|
}
|
|
27955
|
-
if (message.onboarding_step !==
|
|
27956
|
-
|
|
27887
|
+
if (message.onboarding_step !== 0) {
|
|
27888
|
+
writer.uint32(16).int32(message.onboarding_step);
|
|
27957
27889
|
}
|
|
27958
27890
|
return writer;
|
|
27959
27891
|
},
|
|
@@ -27971,10 +27903,10 @@ var UpdateOnboardingStepRequest = {
|
|
|
27971
27903
|
message.clan_id = longToString(reader.int64());
|
|
27972
27904
|
continue;
|
|
27973
27905
|
case 2:
|
|
27974
|
-
if (tag !==
|
|
27906
|
+
if (tag !== 16) {
|
|
27975
27907
|
break;
|
|
27976
27908
|
}
|
|
27977
|
-
message.onboarding_step =
|
|
27909
|
+
message.onboarding_step = reader.int32();
|
|
27978
27910
|
continue;
|
|
27979
27911
|
}
|
|
27980
27912
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -27987,7 +27919,7 @@ var UpdateOnboardingStepRequest = {
|
|
|
27987
27919
|
fromJSON(object) {
|
|
27988
27920
|
return {
|
|
27989
27921
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
27990
|
-
onboarding_step: isSet2(object.onboarding_step) ? Number(object.onboarding_step) :
|
|
27922
|
+
onboarding_step: isSet2(object.onboarding_step) ? globalThis.Number(object.onboarding_step) : 0
|
|
27991
27923
|
};
|
|
27992
27924
|
},
|
|
27993
27925
|
toJSON(message) {
|
|
@@ -27995,8 +27927,8 @@ var UpdateOnboardingStepRequest = {
|
|
|
27995
27927
|
if (message.clan_id !== "0") {
|
|
27996
27928
|
obj.clan_id = message.clan_id;
|
|
27997
27929
|
}
|
|
27998
|
-
if (message.onboarding_step !==
|
|
27999
|
-
obj.onboarding_step = message.onboarding_step;
|
|
27930
|
+
if (message.onboarding_step !== 0) {
|
|
27931
|
+
obj.onboarding_step = Math.round(message.onboarding_step);
|
|
28000
27932
|
}
|
|
28001
27933
|
return obj;
|
|
28002
27934
|
},
|
|
@@ -28007,7 +27939,7 @@ var UpdateOnboardingStepRequest = {
|
|
|
28007
27939
|
var _a, _b;
|
|
28008
27940
|
const message = createBaseUpdateOnboardingStepRequest();
|
|
28009
27941
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
28010
|
-
message.onboarding_step = (_b = object.onboarding_step) != null ? _b :
|
|
27942
|
+
message.onboarding_step = (_b = object.onboarding_step) != null ? _b : 0;
|
|
28011
27943
|
return message;
|
|
28012
27944
|
}
|
|
28013
27945
|
};
|