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.cjs.js
CHANGED
|
@@ -2933,57 +2933,6 @@ var import_minimal = __toESM(require_minimal2());
|
|
|
2933
2933
|
// google/protobuf/wrappers.ts
|
|
2934
2934
|
var import_long = __toESM(require_long());
|
|
2935
2935
|
var import_minimal2 = __toESM(require_minimal2());
|
|
2936
|
-
function createBaseInt32Value() {
|
|
2937
|
-
return { value: 0 };
|
|
2938
|
-
}
|
|
2939
|
-
var Int32Value = {
|
|
2940
|
-
encode(message, writer = import_minimal2.default.Writer.create()) {
|
|
2941
|
-
if (message.value !== 0) {
|
|
2942
|
-
writer.uint32(8).int32(message.value);
|
|
2943
|
-
}
|
|
2944
|
-
return writer;
|
|
2945
|
-
},
|
|
2946
|
-
decode(input, length) {
|
|
2947
|
-
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
|
2948
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2949
|
-
const message = createBaseInt32Value();
|
|
2950
|
-
while (reader.pos < end) {
|
|
2951
|
-
const tag = reader.uint32();
|
|
2952
|
-
switch (tag >>> 3) {
|
|
2953
|
-
case 1:
|
|
2954
|
-
if (tag !== 8) {
|
|
2955
|
-
break;
|
|
2956
|
-
}
|
|
2957
|
-
message.value = reader.int32();
|
|
2958
|
-
continue;
|
|
2959
|
-
}
|
|
2960
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2961
|
-
break;
|
|
2962
|
-
}
|
|
2963
|
-
reader.skipType(tag & 7);
|
|
2964
|
-
}
|
|
2965
|
-
return message;
|
|
2966
|
-
},
|
|
2967
|
-
fromJSON(object) {
|
|
2968
|
-
return { value: isSet(object.value) ? globalThis.Number(object.value) : 0 };
|
|
2969
|
-
},
|
|
2970
|
-
toJSON(message) {
|
|
2971
|
-
const obj = {};
|
|
2972
|
-
if (message.value !== 0) {
|
|
2973
|
-
obj.value = Math.round(message.value);
|
|
2974
|
-
}
|
|
2975
|
-
return obj;
|
|
2976
|
-
},
|
|
2977
|
-
create(base) {
|
|
2978
|
-
return Int32Value.fromPartial(base != null ? base : {});
|
|
2979
|
-
},
|
|
2980
|
-
fromPartial(object) {
|
|
2981
|
-
var _a;
|
|
2982
|
-
const message = createBaseInt32Value();
|
|
2983
|
-
message.value = (_a = object.value) != null ? _a : 0;
|
|
2984
|
-
return message;
|
|
2985
|
-
}
|
|
2986
|
-
};
|
|
2987
2936
|
function createBaseBoolValue() {
|
|
2988
2937
|
return { value: false };
|
|
2989
2938
|
}
|
|
@@ -3425,7 +3374,7 @@ var AddFriendsResponse = {
|
|
|
3425
3374
|
}
|
|
3426
3375
|
};
|
|
3427
3376
|
function createBaseSessionRefreshRequest() {
|
|
3428
|
-
return { token: "", vars: {}, is_remember:
|
|
3377
|
+
return { token: "", vars: {}, is_remember: false };
|
|
3429
3378
|
}
|
|
3430
3379
|
var SessionRefreshRequest = {
|
|
3431
3380
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -3435,8 +3384,8 @@ var SessionRefreshRequest = {
|
|
|
3435
3384
|
Object.entries(message.vars).forEach(([key, value]) => {
|
|
3436
3385
|
SessionRefreshRequest_VarsEntry.encode({ key, value }, writer.uint32(18).fork()).ldelim();
|
|
3437
3386
|
});
|
|
3438
|
-
if (message.is_remember !==
|
|
3439
|
-
|
|
3387
|
+
if (message.is_remember !== false) {
|
|
3388
|
+
writer.uint32(24).bool(message.is_remember);
|
|
3440
3389
|
}
|
|
3441
3390
|
return writer;
|
|
3442
3391
|
},
|
|
@@ -3463,10 +3412,10 @@ var SessionRefreshRequest = {
|
|
|
3463
3412
|
}
|
|
3464
3413
|
continue;
|
|
3465
3414
|
case 3:
|
|
3466
|
-
if (tag !==
|
|
3415
|
+
if (tag !== 24) {
|
|
3467
3416
|
break;
|
|
3468
3417
|
}
|
|
3469
|
-
message.is_remember =
|
|
3418
|
+
message.is_remember = reader.bool();
|
|
3470
3419
|
continue;
|
|
3471
3420
|
}
|
|
3472
3421
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -3483,7 +3432,7 @@ var SessionRefreshRequest = {
|
|
|
3483
3432
|
acc[key] = String(value);
|
|
3484
3433
|
return acc;
|
|
3485
3434
|
}, {}) : {},
|
|
3486
|
-
is_remember: isSet2(object.is_remember) ? Boolean(object.is_remember) :
|
|
3435
|
+
is_remember: isSet2(object.is_remember) ? globalThis.Boolean(object.is_remember) : false
|
|
3487
3436
|
};
|
|
3488
3437
|
},
|
|
3489
3438
|
toJSON(message) {
|
|
@@ -3500,7 +3449,7 @@ var SessionRefreshRequest = {
|
|
|
3500
3449
|
});
|
|
3501
3450
|
}
|
|
3502
3451
|
}
|
|
3503
|
-
if (message.is_remember !==
|
|
3452
|
+
if (message.is_remember !== false) {
|
|
3504
3453
|
obj.is_remember = message.is_remember;
|
|
3505
3454
|
}
|
|
3506
3455
|
return obj;
|
|
@@ -3518,7 +3467,7 @@ var SessionRefreshRequest = {
|
|
|
3518
3467
|
}
|
|
3519
3468
|
return acc;
|
|
3520
3469
|
}, {});
|
|
3521
|
-
message.is_remember = (_c = object.is_remember) != null ? _c :
|
|
3470
|
+
message.is_remember = (_c = object.is_remember) != null ? _c : false;
|
|
3522
3471
|
return message;
|
|
3523
3472
|
}
|
|
3524
3473
|
};
|
|
@@ -6781,7 +6730,7 @@ var RegistFcmDeviceTokenResponse = {
|
|
|
6781
6730
|
}
|
|
6782
6731
|
};
|
|
6783
6732
|
function createBaseListChannelMessagesRequest() {
|
|
6784
|
-
return { clan_id: "0", channel_id: "0", message_id: "0", limit:
|
|
6733
|
+
return { clan_id: "0", channel_id: "0", message_id: "0", limit: 0, direction: 0, topic_id: "0" };
|
|
6785
6734
|
}
|
|
6786
6735
|
var ListChannelMessagesRequest = {
|
|
6787
6736
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -6794,11 +6743,11 @@ var ListChannelMessagesRequest = {
|
|
|
6794
6743
|
if (message.message_id !== "0") {
|
|
6795
6744
|
writer.uint32(24).int64(message.message_id);
|
|
6796
6745
|
}
|
|
6797
|
-
if (message.limit !==
|
|
6798
|
-
|
|
6746
|
+
if (message.limit !== 0) {
|
|
6747
|
+
writer.uint32(32).int32(message.limit);
|
|
6799
6748
|
}
|
|
6800
|
-
if (message.direction !==
|
|
6801
|
-
|
|
6749
|
+
if (message.direction !== 0) {
|
|
6750
|
+
writer.uint32(40).int32(message.direction);
|
|
6802
6751
|
}
|
|
6803
6752
|
if (message.topic_id !== "0") {
|
|
6804
6753
|
writer.uint32(48).int64(message.topic_id);
|
|
@@ -6831,16 +6780,16 @@ var ListChannelMessagesRequest = {
|
|
|
6831
6780
|
message.message_id = longToString(reader.int64());
|
|
6832
6781
|
continue;
|
|
6833
6782
|
case 4:
|
|
6834
|
-
if (tag !==
|
|
6783
|
+
if (tag !== 32) {
|
|
6835
6784
|
break;
|
|
6836
6785
|
}
|
|
6837
|
-
message.limit =
|
|
6786
|
+
message.limit = reader.int32();
|
|
6838
6787
|
continue;
|
|
6839
6788
|
case 5:
|
|
6840
|
-
if (tag !==
|
|
6789
|
+
if (tag !== 40) {
|
|
6841
6790
|
break;
|
|
6842
6791
|
}
|
|
6843
|
-
message.direction =
|
|
6792
|
+
message.direction = reader.int32();
|
|
6844
6793
|
continue;
|
|
6845
6794
|
case 6:
|
|
6846
6795
|
if (tag !== 48) {
|
|
@@ -6861,8 +6810,8 @@ var ListChannelMessagesRequest = {
|
|
|
6861
6810
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
6862
6811
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
6863
6812
|
message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
6864
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
6865
|
-
direction: isSet2(object.direction) ? Number(object.direction) :
|
|
6813
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
6814
|
+
direction: isSet2(object.direction) ? globalThis.Number(object.direction) : 0,
|
|
6866
6815
|
topic_id: isSet2(object.topic_id) ? globalThis.String(object.topic_id) : "0"
|
|
6867
6816
|
};
|
|
6868
6817
|
},
|
|
@@ -6877,11 +6826,11 @@ var ListChannelMessagesRequest = {
|
|
|
6877
6826
|
if (message.message_id !== "0") {
|
|
6878
6827
|
obj.message_id = message.message_id;
|
|
6879
6828
|
}
|
|
6880
|
-
if (message.limit !==
|
|
6881
|
-
obj.limit = message.limit;
|
|
6829
|
+
if (message.limit !== 0) {
|
|
6830
|
+
obj.limit = Math.round(message.limit);
|
|
6882
6831
|
}
|
|
6883
|
-
if (message.direction !==
|
|
6884
|
-
obj.direction = message.direction;
|
|
6832
|
+
if (message.direction !== 0) {
|
|
6833
|
+
obj.direction = Math.round(message.direction);
|
|
6885
6834
|
}
|
|
6886
6835
|
if (message.topic_id !== "0") {
|
|
6887
6836
|
obj.topic_id = message.topic_id;
|
|
@@ -6897,22 +6846,22 @@ var ListChannelMessagesRequest = {
|
|
|
6897
6846
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
6898
6847
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
6899
6848
|
message.message_id = (_c = object.message_id) != null ? _c : "0";
|
|
6900
|
-
message.limit = (_d = object.limit) != null ? _d :
|
|
6901
|
-
message.direction = (_e = object.direction) != null ? _e :
|
|
6849
|
+
message.limit = (_d = object.limit) != null ? _d : 0;
|
|
6850
|
+
message.direction = (_e = object.direction) != null ? _e : 0;
|
|
6902
6851
|
message.topic_id = (_f = object.topic_id) != null ? _f : "0";
|
|
6903
6852
|
return message;
|
|
6904
6853
|
}
|
|
6905
6854
|
};
|
|
6906
6855
|
function createBaseListFriendsRequest() {
|
|
6907
|
-
return { limit:
|
|
6856
|
+
return { limit: 0, state: 0, cursor: "" };
|
|
6908
6857
|
}
|
|
6909
6858
|
var ListFriendsRequest = {
|
|
6910
6859
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
6911
|
-
if (message.limit !==
|
|
6912
|
-
|
|
6860
|
+
if (message.limit !== 0) {
|
|
6861
|
+
writer.uint32(8).int32(message.limit);
|
|
6913
6862
|
}
|
|
6914
|
-
if (message.state !==
|
|
6915
|
-
|
|
6863
|
+
if (message.state !== 0) {
|
|
6864
|
+
writer.uint32(16).int32(message.state);
|
|
6916
6865
|
}
|
|
6917
6866
|
if (message.cursor !== "") {
|
|
6918
6867
|
writer.uint32(26).string(message.cursor);
|
|
@@ -6927,16 +6876,16 @@ var ListFriendsRequest = {
|
|
|
6927
6876
|
const tag = reader.uint32();
|
|
6928
6877
|
switch (tag >>> 3) {
|
|
6929
6878
|
case 1:
|
|
6930
|
-
if (tag !==
|
|
6879
|
+
if (tag !== 8) {
|
|
6931
6880
|
break;
|
|
6932
6881
|
}
|
|
6933
|
-
message.limit =
|
|
6882
|
+
message.limit = reader.int32();
|
|
6934
6883
|
continue;
|
|
6935
6884
|
case 2:
|
|
6936
|
-
if (tag !==
|
|
6885
|
+
if (tag !== 16) {
|
|
6937
6886
|
break;
|
|
6938
6887
|
}
|
|
6939
|
-
message.state =
|
|
6888
|
+
message.state = reader.int32();
|
|
6940
6889
|
continue;
|
|
6941
6890
|
case 3:
|
|
6942
6891
|
if (tag !== 26) {
|
|
@@ -6954,18 +6903,18 @@ var ListFriendsRequest = {
|
|
|
6954
6903
|
},
|
|
6955
6904
|
fromJSON(object) {
|
|
6956
6905
|
return {
|
|
6957
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
6958
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
6906
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
6907
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
6959
6908
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
6960
6909
|
};
|
|
6961
6910
|
},
|
|
6962
6911
|
toJSON(message) {
|
|
6963
6912
|
const obj = {};
|
|
6964
|
-
if (message.limit !==
|
|
6965
|
-
obj.limit = message.limit;
|
|
6913
|
+
if (message.limit !== 0) {
|
|
6914
|
+
obj.limit = Math.round(message.limit);
|
|
6966
6915
|
}
|
|
6967
|
-
if (message.state !==
|
|
6968
|
-
obj.state = message.state;
|
|
6916
|
+
if (message.state !== 0) {
|
|
6917
|
+
obj.state = Math.round(message.state);
|
|
6969
6918
|
}
|
|
6970
6919
|
if (message.cursor !== "") {
|
|
6971
6920
|
obj.cursor = message.cursor;
|
|
@@ -6978,14 +6927,14 @@ var ListFriendsRequest = {
|
|
|
6978
6927
|
fromPartial(object) {
|
|
6979
6928
|
var _a, _b, _c;
|
|
6980
6929
|
const message = createBaseListFriendsRequest();
|
|
6981
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
6982
|
-
message.state = (_b = object.state) != null ? _b :
|
|
6930
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
6931
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
6983
6932
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
6984
6933
|
return message;
|
|
6985
6934
|
}
|
|
6986
6935
|
};
|
|
6987
6936
|
function createBaseListChannelUsersRequest() {
|
|
6988
|
-
return { clan_id: "0", channel_id: "0", channel_type: 0, limit:
|
|
6937
|
+
return { clan_id: "0", channel_id: "0", channel_type: 0, limit: 0, state: 0, cursor: "" };
|
|
6989
6938
|
}
|
|
6990
6939
|
var ListChannelUsersRequest = {
|
|
6991
6940
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -6998,11 +6947,11 @@ var ListChannelUsersRequest = {
|
|
|
6998
6947
|
if (message.channel_type !== 0) {
|
|
6999
6948
|
writer.uint32(24).int32(message.channel_type);
|
|
7000
6949
|
}
|
|
7001
|
-
if (message.limit !==
|
|
7002
|
-
|
|
6950
|
+
if (message.limit !== 0) {
|
|
6951
|
+
writer.uint32(32).int32(message.limit);
|
|
7003
6952
|
}
|
|
7004
|
-
if (message.state !==
|
|
7005
|
-
|
|
6953
|
+
if (message.state !== 0) {
|
|
6954
|
+
writer.uint32(40).int32(message.state);
|
|
7006
6955
|
}
|
|
7007
6956
|
if (message.cursor !== "") {
|
|
7008
6957
|
writer.uint32(50).string(message.cursor);
|
|
@@ -7035,16 +6984,16 @@ var ListChannelUsersRequest = {
|
|
|
7035
6984
|
message.channel_type = reader.int32();
|
|
7036
6985
|
continue;
|
|
7037
6986
|
case 4:
|
|
7038
|
-
if (tag !==
|
|
6987
|
+
if (tag !== 32) {
|
|
7039
6988
|
break;
|
|
7040
6989
|
}
|
|
7041
|
-
message.limit =
|
|
6990
|
+
message.limit = reader.int32();
|
|
7042
6991
|
continue;
|
|
7043
6992
|
case 5:
|
|
7044
|
-
if (tag !==
|
|
6993
|
+
if (tag !== 40) {
|
|
7045
6994
|
break;
|
|
7046
6995
|
}
|
|
7047
|
-
message.state =
|
|
6996
|
+
message.state = reader.int32();
|
|
7048
6997
|
continue;
|
|
7049
6998
|
case 6:
|
|
7050
6999
|
if (tag !== 50) {
|
|
@@ -7065,8 +7014,8 @@ var ListChannelUsersRequest = {
|
|
|
7065
7014
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
7066
7015
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
7067
7016
|
channel_type: isSet2(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
7068
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
7069
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
7017
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
7018
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
7070
7019
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
7071
7020
|
};
|
|
7072
7021
|
},
|
|
@@ -7081,11 +7030,11 @@ var ListChannelUsersRequest = {
|
|
|
7081
7030
|
if (message.channel_type !== 0) {
|
|
7082
7031
|
obj.channel_type = Math.round(message.channel_type);
|
|
7083
7032
|
}
|
|
7084
|
-
if (message.limit !==
|
|
7085
|
-
obj.limit = message.limit;
|
|
7033
|
+
if (message.limit !== 0) {
|
|
7034
|
+
obj.limit = Math.round(message.limit);
|
|
7086
7035
|
}
|
|
7087
|
-
if (message.state !==
|
|
7088
|
-
obj.state = message.state;
|
|
7036
|
+
if (message.state !== 0) {
|
|
7037
|
+
obj.state = Math.round(message.state);
|
|
7089
7038
|
}
|
|
7090
7039
|
if (message.cursor !== "") {
|
|
7091
7040
|
obj.cursor = message.cursor;
|
|
@@ -7101,8 +7050,8 @@ var ListChannelUsersRequest = {
|
|
|
7101
7050
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
7102
7051
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
7103
7052
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
7104
|
-
message.limit = (_d = object.limit) != null ? _d :
|
|
7105
|
-
message.state = (_e = object.state) != null ? _e :
|
|
7053
|
+
message.limit = (_d = object.limit) != null ? _d : 0;
|
|
7054
|
+
message.state = (_e = object.state) != null ? _e : 0;
|
|
7106
7055
|
message.cursor = (_f = object.cursor) != null ? _f : "";
|
|
7107
7056
|
return message;
|
|
7108
7057
|
}
|
|
@@ -7310,12 +7259,12 @@ var ListClanUsersRequest = {
|
|
|
7310
7259
|
}
|
|
7311
7260
|
};
|
|
7312
7261
|
function createBaseListNotificationsRequest() {
|
|
7313
|
-
return { limit:
|
|
7262
|
+
return { limit: 0, clan_id: "0", notification_id: "0", category: 0, direction: 0 };
|
|
7314
7263
|
}
|
|
7315
7264
|
var ListNotificationsRequest = {
|
|
7316
7265
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
7317
|
-
if (message.limit !==
|
|
7318
|
-
|
|
7266
|
+
if (message.limit !== 0) {
|
|
7267
|
+
writer.uint32(8).int32(message.limit);
|
|
7319
7268
|
}
|
|
7320
7269
|
if (message.clan_id !== "0") {
|
|
7321
7270
|
writer.uint32(16).int64(message.clan_id);
|
|
@@ -7326,8 +7275,8 @@ var ListNotificationsRequest = {
|
|
|
7326
7275
|
if (message.category !== 0) {
|
|
7327
7276
|
writer.uint32(32).int32(message.category);
|
|
7328
7277
|
}
|
|
7329
|
-
if (message.direction !==
|
|
7330
|
-
|
|
7278
|
+
if (message.direction !== 0) {
|
|
7279
|
+
writer.uint32(40).int32(message.direction);
|
|
7331
7280
|
}
|
|
7332
7281
|
return writer;
|
|
7333
7282
|
},
|
|
@@ -7339,10 +7288,10 @@ var ListNotificationsRequest = {
|
|
|
7339
7288
|
const tag = reader.uint32();
|
|
7340
7289
|
switch (tag >>> 3) {
|
|
7341
7290
|
case 1:
|
|
7342
|
-
if (tag !==
|
|
7291
|
+
if (tag !== 8) {
|
|
7343
7292
|
break;
|
|
7344
7293
|
}
|
|
7345
|
-
message.limit =
|
|
7294
|
+
message.limit = reader.int32();
|
|
7346
7295
|
continue;
|
|
7347
7296
|
case 2:
|
|
7348
7297
|
if (tag !== 16) {
|
|
@@ -7363,10 +7312,10 @@ var ListNotificationsRequest = {
|
|
|
7363
7312
|
message.category = reader.int32();
|
|
7364
7313
|
continue;
|
|
7365
7314
|
case 5:
|
|
7366
|
-
if (tag !==
|
|
7315
|
+
if (tag !== 40) {
|
|
7367
7316
|
break;
|
|
7368
7317
|
}
|
|
7369
|
-
message.direction =
|
|
7318
|
+
message.direction = reader.int32();
|
|
7370
7319
|
continue;
|
|
7371
7320
|
}
|
|
7372
7321
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7378,17 +7327,17 @@ var ListNotificationsRequest = {
|
|
|
7378
7327
|
},
|
|
7379
7328
|
fromJSON(object) {
|
|
7380
7329
|
return {
|
|
7381
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
7330
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
7382
7331
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
7383
7332
|
notification_id: isSet2(object.notification_id) ? globalThis.String(object.notification_id) : "0",
|
|
7384
7333
|
category: isSet2(object.category) ? globalThis.Number(object.category) : 0,
|
|
7385
|
-
direction: isSet2(object.direction) ? Number(object.direction) :
|
|
7334
|
+
direction: isSet2(object.direction) ? globalThis.Number(object.direction) : 0
|
|
7386
7335
|
};
|
|
7387
7336
|
},
|
|
7388
7337
|
toJSON(message) {
|
|
7389
7338
|
const obj = {};
|
|
7390
|
-
if (message.limit !==
|
|
7391
|
-
obj.limit = message.limit;
|
|
7339
|
+
if (message.limit !== 0) {
|
|
7340
|
+
obj.limit = Math.round(message.limit);
|
|
7392
7341
|
}
|
|
7393
7342
|
if (message.clan_id !== "0") {
|
|
7394
7343
|
obj.clan_id = message.clan_id;
|
|
@@ -7399,8 +7348,8 @@ var ListNotificationsRequest = {
|
|
|
7399
7348
|
if (message.category !== 0) {
|
|
7400
7349
|
obj.category = Math.round(message.category);
|
|
7401
7350
|
}
|
|
7402
|
-
if (message.direction !==
|
|
7403
|
-
obj.direction = message.direction;
|
|
7351
|
+
if (message.direction !== 0) {
|
|
7352
|
+
obj.direction = Math.round(message.direction);
|
|
7404
7353
|
}
|
|
7405
7354
|
return obj;
|
|
7406
7355
|
},
|
|
@@ -7410,11 +7359,11 @@ var ListNotificationsRequest = {
|
|
|
7410
7359
|
fromPartial(object) {
|
|
7411
7360
|
var _a, _b, _c, _d, _e;
|
|
7412
7361
|
const message = createBaseListNotificationsRequest();
|
|
7413
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
7362
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
7414
7363
|
message.clan_id = (_b = object.clan_id) != null ? _b : "0";
|
|
7415
7364
|
message.notification_id = (_c = object.notification_id) != null ? _c : "0";
|
|
7416
7365
|
message.category = (_d = object.category) != null ? _d : 0;
|
|
7417
|
-
message.direction = (_e = object.direction) != null ? _e :
|
|
7366
|
+
message.direction = (_e = object.direction) != null ? _e : 0;
|
|
7418
7367
|
return message;
|
|
7419
7368
|
}
|
|
7420
7369
|
};
|
|
@@ -9395,15 +9344,15 @@ var DeleteClanDescRequest = {
|
|
|
9395
9344
|
}
|
|
9396
9345
|
};
|
|
9397
9346
|
function createBaseListClanDescRequest() {
|
|
9398
|
-
return { limit:
|
|
9347
|
+
return { limit: 0, state: 0, cursor: "" };
|
|
9399
9348
|
}
|
|
9400
9349
|
var ListClanDescRequest = {
|
|
9401
9350
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9402
|
-
if (message.limit !==
|
|
9403
|
-
|
|
9351
|
+
if (message.limit !== 0) {
|
|
9352
|
+
writer.uint32(8).int32(message.limit);
|
|
9404
9353
|
}
|
|
9405
|
-
if (message.state !==
|
|
9406
|
-
|
|
9354
|
+
if (message.state !== 0) {
|
|
9355
|
+
writer.uint32(16).int32(message.state);
|
|
9407
9356
|
}
|
|
9408
9357
|
if (message.cursor !== "") {
|
|
9409
9358
|
writer.uint32(26).string(message.cursor);
|
|
@@ -9418,16 +9367,16 @@ var ListClanDescRequest = {
|
|
|
9418
9367
|
const tag = reader.uint32();
|
|
9419
9368
|
switch (tag >>> 3) {
|
|
9420
9369
|
case 1:
|
|
9421
|
-
if (tag !==
|
|
9370
|
+
if (tag !== 8) {
|
|
9422
9371
|
break;
|
|
9423
9372
|
}
|
|
9424
|
-
message.limit =
|
|
9373
|
+
message.limit = reader.int32();
|
|
9425
9374
|
continue;
|
|
9426
9375
|
case 2:
|
|
9427
|
-
if (tag !==
|
|
9376
|
+
if (tag !== 16) {
|
|
9428
9377
|
break;
|
|
9429
9378
|
}
|
|
9430
|
-
message.state =
|
|
9379
|
+
message.state = reader.int32();
|
|
9431
9380
|
continue;
|
|
9432
9381
|
case 3:
|
|
9433
9382
|
if (tag !== 26) {
|
|
@@ -9445,18 +9394,18 @@ var ListClanDescRequest = {
|
|
|
9445
9394
|
},
|
|
9446
9395
|
fromJSON(object) {
|
|
9447
9396
|
return {
|
|
9448
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
9449
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
9397
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
9398
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
9450
9399
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
9451
9400
|
};
|
|
9452
9401
|
},
|
|
9453
9402
|
toJSON(message) {
|
|
9454
9403
|
const obj = {};
|
|
9455
|
-
if (message.limit !==
|
|
9456
|
-
obj.limit = message.limit;
|
|
9404
|
+
if (message.limit !== 0) {
|
|
9405
|
+
obj.limit = Math.round(message.limit);
|
|
9457
9406
|
}
|
|
9458
|
-
if (message.state !==
|
|
9459
|
-
obj.state = message.state;
|
|
9407
|
+
if (message.state !== 0) {
|
|
9408
|
+
obj.state = Math.round(message.state);
|
|
9460
9409
|
}
|
|
9461
9410
|
if (message.cursor !== "") {
|
|
9462
9411
|
obj.cursor = message.cursor;
|
|
@@ -9469,8 +9418,8 @@ var ListClanDescRequest = {
|
|
|
9469
9418
|
fromPartial(object) {
|
|
9470
9419
|
var _a, _b, _c;
|
|
9471
9420
|
const message = createBaseListClanDescRequest();
|
|
9472
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
9473
|
-
message.state = (_b = object.state) != null ? _b :
|
|
9421
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
9422
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
9474
9423
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
9475
9424
|
return message;
|
|
9476
9425
|
}
|
|
@@ -11770,15 +11719,15 @@ var ChannelDescListNoPool = {
|
|
|
11770
11719
|
}
|
|
11771
11720
|
};
|
|
11772
11721
|
function createBaseListThreadRequest() {
|
|
11773
|
-
return { limit:
|
|
11722
|
+
return { limit: 0, state: 0, clan_id: "0", channel_id: "0", thread_id: "0", page: 0 };
|
|
11774
11723
|
}
|
|
11775
11724
|
var ListThreadRequest = {
|
|
11776
11725
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
11777
|
-
if (message.limit !==
|
|
11778
|
-
|
|
11726
|
+
if (message.limit !== 0) {
|
|
11727
|
+
writer.uint32(8).int32(message.limit);
|
|
11779
11728
|
}
|
|
11780
|
-
if (message.state !==
|
|
11781
|
-
|
|
11729
|
+
if (message.state !== 0) {
|
|
11730
|
+
writer.uint32(16).int32(message.state);
|
|
11782
11731
|
}
|
|
11783
11732
|
if (message.clan_id !== "0") {
|
|
11784
11733
|
writer.uint32(24).int64(message.clan_id);
|
|
@@ -11789,8 +11738,8 @@ var ListThreadRequest = {
|
|
|
11789
11738
|
if (message.thread_id !== "0") {
|
|
11790
11739
|
writer.uint32(40).int64(message.thread_id);
|
|
11791
11740
|
}
|
|
11792
|
-
if (message.page !==
|
|
11793
|
-
|
|
11741
|
+
if (message.page !== 0) {
|
|
11742
|
+
writer.uint32(48).int32(message.page);
|
|
11794
11743
|
}
|
|
11795
11744
|
return writer;
|
|
11796
11745
|
},
|
|
@@ -11802,16 +11751,16 @@ var ListThreadRequest = {
|
|
|
11802
11751
|
const tag = reader.uint32();
|
|
11803
11752
|
switch (tag >>> 3) {
|
|
11804
11753
|
case 1:
|
|
11805
|
-
if (tag !==
|
|
11754
|
+
if (tag !== 8) {
|
|
11806
11755
|
break;
|
|
11807
11756
|
}
|
|
11808
|
-
message.limit =
|
|
11757
|
+
message.limit = reader.int32();
|
|
11809
11758
|
continue;
|
|
11810
11759
|
case 2:
|
|
11811
|
-
if (tag !==
|
|
11760
|
+
if (tag !== 16) {
|
|
11812
11761
|
break;
|
|
11813
11762
|
}
|
|
11814
|
-
message.state =
|
|
11763
|
+
message.state = reader.int32();
|
|
11815
11764
|
continue;
|
|
11816
11765
|
case 3:
|
|
11817
11766
|
if (tag !== 24) {
|
|
@@ -11832,10 +11781,10 @@ var ListThreadRequest = {
|
|
|
11832
11781
|
message.thread_id = longToString(reader.int64());
|
|
11833
11782
|
continue;
|
|
11834
11783
|
case 6:
|
|
11835
|
-
if (tag !==
|
|
11784
|
+
if (tag !== 48) {
|
|
11836
11785
|
break;
|
|
11837
11786
|
}
|
|
11838
|
-
message.page =
|
|
11787
|
+
message.page = reader.int32();
|
|
11839
11788
|
continue;
|
|
11840
11789
|
}
|
|
11841
11790
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -11847,21 +11796,21 @@ var ListThreadRequest = {
|
|
|
11847
11796
|
},
|
|
11848
11797
|
fromJSON(object) {
|
|
11849
11798
|
return {
|
|
11850
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
11851
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
11799
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
11800
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
11852
11801
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
11853
11802
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
11854
11803
|
thread_id: isSet2(object.thread_id) ? globalThis.String(object.thread_id) : "0",
|
|
11855
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
11804
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0
|
|
11856
11805
|
};
|
|
11857
11806
|
},
|
|
11858
11807
|
toJSON(message) {
|
|
11859
11808
|
const obj = {};
|
|
11860
|
-
if (message.limit !==
|
|
11861
|
-
obj.limit = message.limit;
|
|
11809
|
+
if (message.limit !== 0) {
|
|
11810
|
+
obj.limit = Math.round(message.limit);
|
|
11862
11811
|
}
|
|
11863
|
-
if (message.state !==
|
|
11864
|
-
obj.state = message.state;
|
|
11812
|
+
if (message.state !== 0) {
|
|
11813
|
+
obj.state = Math.round(message.state);
|
|
11865
11814
|
}
|
|
11866
11815
|
if (message.clan_id !== "0") {
|
|
11867
11816
|
obj.clan_id = message.clan_id;
|
|
@@ -11872,8 +11821,8 @@ var ListThreadRequest = {
|
|
|
11872
11821
|
if (message.thread_id !== "0") {
|
|
11873
11822
|
obj.thread_id = message.thread_id;
|
|
11874
11823
|
}
|
|
11875
|
-
if (message.page !==
|
|
11876
|
-
obj.page = message.page;
|
|
11824
|
+
if (message.page !== 0) {
|
|
11825
|
+
obj.page = Math.round(message.page);
|
|
11877
11826
|
}
|
|
11878
11827
|
return obj;
|
|
11879
11828
|
},
|
|
@@ -11883,25 +11832,25 @@ var ListThreadRequest = {
|
|
|
11883
11832
|
fromPartial(object) {
|
|
11884
11833
|
var _a, _b, _c, _d, _e, _f;
|
|
11885
11834
|
const message = createBaseListThreadRequest();
|
|
11886
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
11887
|
-
message.state = (_b = object.state) != null ? _b :
|
|
11835
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
11836
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
11888
11837
|
message.clan_id = (_c = object.clan_id) != null ? _c : "0";
|
|
11889
11838
|
message.channel_id = (_d = object.channel_id) != null ? _d : "0";
|
|
11890
11839
|
message.thread_id = (_e = object.thread_id) != null ? _e : "0";
|
|
11891
|
-
message.page = (_f = object.page) != null ? _f :
|
|
11840
|
+
message.page = (_f = object.page) != null ? _f : 0;
|
|
11892
11841
|
return message;
|
|
11893
11842
|
}
|
|
11894
11843
|
};
|
|
11895
11844
|
function createBaseListChannelDescsRequest() {
|
|
11896
|
-
return { limit:
|
|
11845
|
+
return { limit: 0, state: 0, cursor: "", clan_id: "0", channel_type: 0, is_mobile: false };
|
|
11897
11846
|
}
|
|
11898
11847
|
var ListChannelDescsRequest = {
|
|
11899
11848
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
11900
|
-
if (message.limit !==
|
|
11901
|
-
|
|
11849
|
+
if (message.limit !== 0) {
|
|
11850
|
+
writer.uint32(8).int32(message.limit);
|
|
11902
11851
|
}
|
|
11903
|
-
if (message.state !==
|
|
11904
|
-
|
|
11852
|
+
if (message.state !== 0) {
|
|
11853
|
+
writer.uint32(16).int32(message.state);
|
|
11905
11854
|
}
|
|
11906
11855
|
if (message.cursor !== "") {
|
|
11907
11856
|
writer.uint32(26).string(message.cursor);
|
|
@@ -11925,16 +11874,16 @@ var ListChannelDescsRequest = {
|
|
|
11925
11874
|
const tag = reader.uint32();
|
|
11926
11875
|
switch (tag >>> 3) {
|
|
11927
11876
|
case 1:
|
|
11928
|
-
if (tag !==
|
|
11877
|
+
if (tag !== 8) {
|
|
11929
11878
|
break;
|
|
11930
11879
|
}
|
|
11931
|
-
message.limit =
|
|
11880
|
+
message.limit = reader.int32();
|
|
11932
11881
|
continue;
|
|
11933
11882
|
case 2:
|
|
11934
|
-
if (tag !==
|
|
11883
|
+
if (tag !== 16) {
|
|
11935
11884
|
break;
|
|
11936
11885
|
}
|
|
11937
|
-
message.state =
|
|
11886
|
+
message.state = reader.int32();
|
|
11938
11887
|
continue;
|
|
11939
11888
|
case 3:
|
|
11940
11889
|
if (tag !== 26) {
|
|
@@ -11970,8 +11919,8 @@ var ListChannelDescsRequest = {
|
|
|
11970
11919
|
},
|
|
11971
11920
|
fromJSON(object) {
|
|
11972
11921
|
return {
|
|
11973
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
11974
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
11922
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
11923
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
11975
11924
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
11976
11925
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
11977
11926
|
channel_type: isSet2(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
@@ -11980,11 +11929,11 @@ var ListChannelDescsRequest = {
|
|
|
11980
11929
|
},
|
|
11981
11930
|
toJSON(message) {
|
|
11982
11931
|
const obj = {};
|
|
11983
|
-
if (message.limit !==
|
|
11984
|
-
obj.limit = message.limit;
|
|
11932
|
+
if (message.limit !== 0) {
|
|
11933
|
+
obj.limit = Math.round(message.limit);
|
|
11985
11934
|
}
|
|
11986
|
-
if (message.state !==
|
|
11987
|
-
obj.state = message.state;
|
|
11935
|
+
if (message.state !== 0) {
|
|
11936
|
+
obj.state = Math.round(message.state);
|
|
11988
11937
|
}
|
|
11989
11938
|
if (message.cursor !== "") {
|
|
11990
11939
|
obj.cursor = message.cursor;
|
|
@@ -12006,8 +11955,8 @@ var ListChannelDescsRequest = {
|
|
|
12006
11955
|
fromPartial(object) {
|
|
12007
11956
|
var _a, _b, _c, _d, _e, _f;
|
|
12008
11957
|
const message = createBaseListChannelDescsRequest();
|
|
12009
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
12010
|
-
message.state = (_b = object.state) != null ? _b :
|
|
11958
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
11959
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
12011
11960
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
12012
11961
|
message.clan_id = (_d = object.clan_id) != null ? _d : "0";
|
|
12013
11962
|
message.channel_type = (_e = object.channel_type) != null ? _e : 0;
|
|
@@ -15622,15 +15571,15 @@ var ListPermissionsRequest = {
|
|
|
15622
15571
|
}
|
|
15623
15572
|
};
|
|
15624
15573
|
function createBaseListRoleUsersRequest() {
|
|
15625
|
-
return { role_id: "0", limit:
|
|
15574
|
+
return { role_id: "0", limit: 0, cursor: "" };
|
|
15626
15575
|
}
|
|
15627
15576
|
var ListRoleUsersRequest = {
|
|
15628
15577
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
15629
15578
|
if (message.role_id !== "0") {
|
|
15630
15579
|
writer.uint32(8).int64(message.role_id);
|
|
15631
15580
|
}
|
|
15632
|
-
if (message.limit !==
|
|
15633
|
-
|
|
15581
|
+
if (message.limit !== 0) {
|
|
15582
|
+
writer.uint32(16).int32(message.limit);
|
|
15634
15583
|
}
|
|
15635
15584
|
if (message.cursor !== "") {
|
|
15636
15585
|
writer.uint32(26).string(message.cursor);
|
|
@@ -15651,10 +15600,10 @@ var ListRoleUsersRequest = {
|
|
|
15651
15600
|
message.role_id = longToString(reader.int64());
|
|
15652
15601
|
continue;
|
|
15653
15602
|
case 2:
|
|
15654
|
-
if (tag !==
|
|
15603
|
+
if (tag !== 16) {
|
|
15655
15604
|
break;
|
|
15656
15605
|
}
|
|
15657
|
-
message.limit =
|
|
15606
|
+
message.limit = reader.int32();
|
|
15658
15607
|
continue;
|
|
15659
15608
|
case 3:
|
|
15660
15609
|
if (tag !== 26) {
|
|
@@ -15673,7 +15622,7 @@ var ListRoleUsersRequest = {
|
|
|
15673
15622
|
fromJSON(object) {
|
|
15674
15623
|
return {
|
|
15675
15624
|
role_id: isSet2(object.role_id) ? globalThis.String(object.role_id) : "0",
|
|
15676
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
15625
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
15677
15626
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
15678
15627
|
};
|
|
15679
15628
|
},
|
|
@@ -15682,8 +15631,8 @@ var ListRoleUsersRequest = {
|
|
|
15682
15631
|
if (message.role_id !== "0") {
|
|
15683
15632
|
obj.role_id = message.role_id;
|
|
15684
15633
|
}
|
|
15685
|
-
if (message.limit !==
|
|
15686
|
-
obj.limit = message.limit;
|
|
15634
|
+
if (message.limit !== 0) {
|
|
15635
|
+
obj.limit = Math.round(message.limit);
|
|
15687
15636
|
}
|
|
15688
15637
|
if (message.cursor !== "") {
|
|
15689
15638
|
obj.cursor = message.cursor;
|
|
@@ -15697,7 +15646,7 @@ var ListRoleUsersRequest = {
|
|
|
15697
15646
|
var _a, _b, _c;
|
|
15698
15647
|
const message = createBaseListRoleUsersRequest();
|
|
15699
15648
|
message.role_id = (_a = object.role_id) != null ? _a : "0";
|
|
15700
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
15649
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
15701
15650
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
15702
15651
|
return message;
|
|
15703
15652
|
}
|
|
@@ -16333,7 +16282,7 @@ function createBaseCreateEventRequest() {
|
|
|
16333
16282
|
repeat_type: 0,
|
|
16334
16283
|
creator_id: "0",
|
|
16335
16284
|
user_id: "0",
|
|
16336
|
-
is_private:
|
|
16285
|
+
is_private: false,
|
|
16337
16286
|
meet_room: void 0
|
|
16338
16287
|
};
|
|
16339
16288
|
}
|
|
@@ -16384,8 +16333,8 @@ var CreateEventRequest = {
|
|
|
16384
16333
|
if (message.user_id !== "0") {
|
|
16385
16334
|
writer.uint32(120).int64(message.user_id);
|
|
16386
16335
|
}
|
|
16387
|
-
if (message.is_private !==
|
|
16388
|
-
|
|
16336
|
+
if (message.is_private !== false) {
|
|
16337
|
+
writer.uint32(128).bool(message.is_private);
|
|
16389
16338
|
}
|
|
16390
16339
|
if (message.meet_room !== void 0) {
|
|
16391
16340
|
GenerateMezonMeetResponse.encode(message.meet_room, writer.uint32(138).fork()).ldelim();
|
|
@@ -16490,10 +16439,10 @@ var CreateEventRequest = {
|
|
|
16490
16439
|
message.user_id = longToString(reader.int64());
|
|
16491
16440
|
continue;
|
|
16492
16441
|
case 16:
|
|
16493
|
-
if (tag !==
|
|
16442
|
+
if (tag !== 128) {
|
|
16494
16443
|
break;
|
|
16495
16444
|
}
|
|
16496
|
-
message.is_private =
|
|
16445
|
+
message.is_private = reader.bool();
|
|
16497
16446
|
continue;
|
|
16498
16447
|
case 17:
|
|
16499
16448
|
if (tag !== 138) {
|
|
@@ -16526,7 +16475,7 @@ var CreateEventRequest = {
|
|
|
16526
16475
|
repeat_type: isSet2(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
16527
16476
|
creator_id: isSet2(object.creator_id) ? globalThis.String(object.creator_id) : "0",
|
|
16528
16477
|
user_id: isSet2(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
16529
|
-
is_private: isSet2(object.is_private) ? Boolean(object.is_private) :
|
|
16478
|
+
is_private: isSet2(object.is_private) ? globalThis.Boolean(object.is_private) : false,
|
|
16530
16479
|
meet_room: isSet2(object.meet_room) ? GenerateMezonMeetResponse.fromJSON(object.meet_room) : void 0
|
|
16531
16480
|
};
|
|
16532
16481
|
},
|
|
@@ -16577,7 +16526,7 @@ var CreateEventRequest = {
|
|
|
16577
16526
|
if (message.user_id !== "0") {
|
|
16578
16527
|
obj.user_id = message.user_id;
|
|
16579
16528
|
}
|
|
16580
|
-
if (message.is_private !==
|
|
16529
|
+
if (message.is_private !== false) {
|
|
16581
16530
|
obj.is_private = message.is_private;
|
|
16582
16531
|
}
|
|
16583
16532
|
if (message.meet_room !== void 0) {
|
|
@@ -16606,7 +16555,7 @@ var CreateEventRequest = {
|
|
|
16606
16555
|
message.repeat_type = (_m = object.repeat_type) != null ? _m : 0;
|
|
16607
16556
|
message.creator_id = (_n = object.creator_id) != null ? _n : "0";
|
|
16608
16557
|
message.user_id = (_o = object.user_id) != null ? _o : "0";
|
|
16609
|
-
message.is_private = (_p = object.is_private) != null ? _p :
|
|
16558
|
+
message.is_private = (_p = object.is_private) != null ? _p : false;
|
|
16610
16559
|
message.meet_room = object.meet_room !== void 0 && object.meet_room !== null ? GenerateMezonMeetResponse.fromPartial(object.meet_room) : void 0;
|
|
16611
16560
|
return message;
|
|
16612
16561
|
}
|
|
@@ -17057,8 +17006,8 @@ function createBaseUpdateRoleRequest() {
|
|
|
17057
17006
|
color: void 0,
|
|
17058
17007
|
role_icon: void 0,
|
|
17059
17008
|
description: void 0,
|
|
17060
|
-
display_online:
|
|
17061
|
-
allow_mention:
|
|
17009
|
+
display_online: 0,
|
|
17010
|
+
allow_mention: 0,
|
|
17062
17011
|
add_user_ids: [],
|
|
17063
17012
|
active_permission_ids: [],
|
|
17064
17013
|
remove_user_ids: [],
|
|
@@ -17084,11 +17033,11 @@ var UpdateRoleRequest = {
|
|
|
17084
17033
|
if (message.description !== void 0) {
|
|
17085
17034
|
StringValue.encode({ value: message.description }, writer.uint32(42).fork()).ldelim();
|
|
17086
17035
|
}
|
|
17087
|
-
if (message.display_online !==
|
|
17088
|
-
|
|
17036
|
+
if (message.display_online !== 0) {
|
|
17037
|
+
writer.uint32(48).int32(message.display_online);
|
|
17089
17038
|
}
|
|
17090
|
-
if (message.allow_mention !==
|
|
17091
|
-
|
|
17039
|
+
if (message.allow_mention !== 0) {
|
|
17040
|
+
writer.uint32(56).int32(message.allow_mention);
|
|
17092
17041
|
}
|
|
17093
17042
|
writer.uint32(66).fork();
|
|
17094
17043
|
for (const v of message.add_user_ids) {
|
|
@@ -17156,16 +17105,16 @@ var UpdateRoleRequest = {
|
|
|
17156
17105
|
message.description = StringValue.decode(reader, reader.uint32()).value;
|
|
17157
17106
|
continue;
|
|
17158
17107
|
case 6:
|
|
17159
|
-
if (tag !==
|
|
17108
|
+
if (tag !== 48) {
|
|
17160
17109
|
break;
|
|
17161
17110
|
}
|
|
17162
|
-
message.display_online =
|
|
17111
|
+
message.display_online = reader.int32();
|
|
17163
17112
|
continue;
|
|
17164
17113
|
case 7:
|
|
17165
|
-
if (tag !==
|
|
17114
|
+
if (tag !== 56) {
|
|
17166
17115
|
break;
|
|
17167
17116
|
}
|
|
17168
|
-
message.allow_mention =
|
|
17117
|
+
message.allow_mention = reader.int32();
|
|
17169
17118
|
continue;
|
|
17170
17119
|
case 8:
|
|
17171
17120
|
if (tag === 64) {
|
|
@@ -17246,8 +17195,8 @@ var UpdateRoleRequest = {
|
|
|
17246
17195
|
color: isSet2(object.color) ? String(object.color) : void 0,
|
|
17247
17196
|
role_icon: isSet2(object.role_icon) ? String(object.role_icon) : void 0,
|
|
17248
17197
|
description: isSet2(object.description) ? String(object.description) : void 0,
|
|
17249
|
-
display_online: isSet2(object.display_online) ? Number(object.display_online) :
|
|
17250
|
-
allow_mention: isSet2(object.allow_mention) ? Number(object.allow_mention) :
|
|
17198
|
+
display_online: isSet2(object.display_online) ? globalThis.Number(object.display_online) : 0,
|
|
17199
|
+
allow_mention: isSet2(object.allow_mention) ? globalThis.Number(object.allow_mention) : 0,
|
|
17251
17200
|
add_user_ids: globalThis.Array.isArray(object == null ? void 0 : object.add_user_ids) ? object.add_user_ids.map((e) => globalThis.String(e)) : [],
|
|
17252
17201
|
active_permission_ids: globalThis.Array.isArray(object == null ? void 0 : object.active_permission_ids) ? object.active_permission_ids.map((e) => globalThis.String(e)) : [],
|
|
17253
17202
|
remove_user_ids: globalThis.Array.isArray(object == null ? void 0 : object.remove_user_ids) ? object.remove_user_ids.map((e) => globalThis.String(e)) : [],
|
|
@@ -17274,11 +17223,11 @@ var UpdateRoleRequest = {
|
|
|
17274
17223
|
if (message.description !== void 0) {
|
|
17275
17224
|
obj.description = message.description;
|
|
17276
17225
|
}
|
|
17277
|
-
if (message.display_online !==
|
|
17278
|
-
obj.display_online = message.display_online;
|
|
17226
|
+
if (message.display_online !== 0) {
|
|
17227
|
+
obj.display_online = Math.round(message.display_online);
|
|
17279
17228
|
}
|
|
17280
|
-
if (message.allow_mention !==
|
|
17281
|
-
obj.allow_mention = message.allow_mention;
|
|
17229
|
+
if (message.allow_mention !== 0) {
|
|
17230
|
+
obj.allow_mention = Math.round(message.allow_mention);
|
|
17282
17231
|
}
|
|
17283
17232
|
if ((_a = message.add_user_ids) == null ? void 0 : _a.length) {
|
|
17284
17233
|
obj.add_user_ids = message.add_user_ids;
|
|
@@ -17311,8 +17260,8 @@ var UpdateRoleRequest = {
|
|
|
17311
17260
|
message.color = (_c = object.color) != null ? _c : void 0;
|
|
17312
17261
|
message.role_icon = (_d = object.role_icon) != null ? _d : void 0;
|
|
17313
17262
|
message.description = (_e = object.description) != null ? _e : void 0;
|
|
17314
|
-
message.display_online = (_f = object.display_online) != null ? _f :
|
|
17315
|
-
message.allow_mention = (_g = object.allow_mention) != null ? _g :
|
|
17263
|
+
message.display_online = (_f = object.display_online) != null ? _f : 0;
|
|
17264
|
+
message.allow_mention = (_g = object.allow_mention) != null ? _g : 0;
|
|
17316
17265
|
message.add_user_ids = ((_h = object.add_user_ids) == null ? void 0 : _h.map((e) => e)) || [];
|
|
17317
17266
|
message.active_permission_ids = ((_i = object.active_permission_ids) == null ? void 0 : _i.map((e) => e)) || [];
|
|
17318
17267
|
message.remove_user_ids = ((_j = object.remove_user_ids) == null ? void 0 : _j.map((e) => e)) || [];
|
|
@@ -17704,18 +17653,18 @@ var UploadAttachment = {
|
|
|
17704
17653
|
}
|
|
17705
17654
|
};
|
|
17706
17655
|
function createBaseSearchMessageRequest() {
|
|
17707
|
-
return { filters: [], from:
|
|
17656
|
+
return { filters: [], from: 0, size: 0, sorts: [] };
|
|
17708
17657
|
}
|
|
17709
17658
|
var SearchMessageRequest = {
|
|
17710
17659
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
17711
17660
|
for (const v of message.filters) {
|
|
17712
17661
|
FilterParam.encode(v, writer.uint32(10).fork()).ldelim();
|
|
17713
17662
|
}
|
|
17714
|
-
if (message.from !==
|
|
17715
|
-
|
|
17663
|
+
if (message.from !== 0) {
|
|
17664
|
+
writer.uint32(24).int32(message.from);
|
|
17716
17665
|
}
|
|
17717
|
-
if (message.size !==
|
|
17718
|
-
|
|
17666
|
+
if (message.size !== 0) {
|
|
17667
|
+
writer.uint32(32).int32(message.size);
|
|
17719
17668
|
}
|
|
17720
17669
|
for (const v of message.sorts) {
|
|
17721
17670
|
SortParam.encode(v, writer.uint32(42).fork()).ldelim();
|
|
@@ -17736,16 +17685,16 @@ var SearchMessageRequest = {
|
|
|
17736
17685
|
message.filters.push(FilterParam.decode(reader, reader.uint32()));
|
|
17737
17686
|
continue;
|
|
17738
17687
|
case 3:
|
|
17739
|
-
if (tag !==
|
|
17688
|
+
if (tag !== 24) {
|
|
17740
17689
|
break;
|
|
17741
17690
|
}
|
|
17742
|
-
message.from =
|
|
17691
|
+
message.from = reader.int32();
|
|
17743
17692
|
continue;
|
|
17744
17693
|
case 4:
|
|
17745
|
-
if (tag !==
|
|
17694
|
+
if (tag !== 32) {
|
|
17746
17695
|
break;
|
|
17747
17696
|
}
|
|
17748
|
-
message.size =
|
|
17697
|
+
message.size = reader.int32();
|
|
17749
17698
|
continue;
|
|
17750
17699
|
case 5:
|
|
17751
17700
|
if (tag !== 42) {
|
|
@@ -17764,8 +17713,8 @@ var SearchMessageRequest = {
|
|
|
17764
17713
|
fromJSON(object) {
|
|
17765
17714
|
return {
|
|
17766
17715
|
filters: globalThis.Array.isArray(object == null ? void 0 : object.filters) ? object.filters.map((e) => FilterParam.fromJSON(e)) : [],
|
|
17767
|
-
from: isSet2(object.from) ? Number(object.from) :
|
|
17768
|
-
size: isSet2(object.size) ? Number(object.size) :
|
|
17716
|
+
from: isSet2(object.from) ? globalThis.Number(object.from) : 0,
|
|
17717
|
+
size: isSet2(object.size) ? globalThis.Number(object.size) : 0,
|
|
17769
17718
|
sorts: globalThis.Array.isArray(object == null ? void 0 : object.sorts) ? object.sorts.map((e) => SortParam.fromJSON(e)) : []
|
|
17770
17719
|
};
|
|
17771
17720
|
},
|
|
@@ -17775,11 +17724,11 @@ var SearchMessageRequest = {
|
|
|
17775
17724
|
if ((_a = message.filters) == null ? void 0 : _a.length) {
|
|
17776
17725
|
obj.filters = message.filters.map((e) => FilterParam.toJSON(e));
|
|
17777
17726
|
}
|
|
17778
|
-
if (message.from !==
|
|
17779
|
-
obj.from = message.from;
|
|
17727
|
+
if (message.from !== 0) {
|
|
17728
|
+
obj.from = Math.round(message.from);
|
|
17780
17729
|
}
|
|
17781
|
-
if (message.size !==
|
|
17782
|
-
obj.size = message.size;
|
|
17730
|
+
if (message.size !== 0) {
|
|
17731
|
+
obj.size = Math.round(message.size);
|
|
17783
17732
|
}
|
|
17784
17733
|
if ((_b = message.sorts) == null ? void 0 : _b.length) {
|
|
17785
17734
|
obj.sorts = message.sorts.map((e) => SortParam.toJSON(e));
|
|
@@ -17793,8 +17742,8 @@ var SearchMessageRequest = {
|
|
|
17793
17742
|
var _a, _b, _c, _d;
|
|
17794
17743
|
const message = createBaseSearchMessageRequest();
|
|
17795
17744
|
message.filters = ((_a = object.filters) == null ? void 0 : _a.map((e) => FilterParam.fromPartial(e))) || [];
|
|
17796
|
-
message.from = (_b = object.from) != null ? _b :
|
|
17797
|
-
message.size = (_c = object.size) != null ? _c :
|
|
17745
|
+
message.from = (_b = object.from) != null ? _b : 0;
|
|
17746
|
+
message.size = (_c = object.size) != null ? _c : 0;
|
|
17798
17747
|
message.sorts = ((_d = object.sorts) == null ? void 0 : _d.map((e) => SortParam.fromPartial(e))) || [];
|
|
17799
17748
|
return message;
|
|
17800
17749
|
}
|
|
@@ -18785,15 +18734,15 @@ var ClanSticker = {
|
|
|
18785
18734
|
}
|
|
18786
18735
|
};
|
|
18787
18736
|
function createBaseAllUsersAddChannelRequest() {
|
|
18788
|
-
return { channel_id: "0", limit:
|
|
18737
|
+
return { channel_id: "0", limit: 0 };
|
|
18789
18738
|
}
|
|
18790
18739
|
var AllUsersAddChannelRequest = {
|
|
18791
18740
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
18792
18741
|
if (message.channel_id !== "0") {
|
|
18793
18742
|
writer.uint32(8).int64(message.channel_id);
|
|
18794
18743
|
}
|
|
18795
|
-
if (message.limit !==
|
|
18796
|
-
|
|
18744
|
+
if (message.limit !== 0) {
|
|
18745
|
+
writer.uint32(16).int32(message.limit);
|
|
18797
18746
|
}
|
|
18798
18747
|
return writer;
|
|
18799
18748
|
},
|
|
@@ -18811,10 +18760,10 @@ var AllUsersAddChannelRequest = {
|
|
|
18811
18760
|
message.channel_id = longToString(reader.int64());
|
|
18812
18761
|
continue;
|
|
18813
18762
|
case 2:
|
|
18814
|
-
if (tag !==
|
|
18763
|
+
if (tag !== 16) {
|
|
18815
18764
|
break;
|
|
18816
18765
|
}
|
|
18817
|
-
message.limit =
|
|
18766
|
+
message.limit = reader.int32();
|
|
18818
18767
|
continue;
|
|
18819
18768
|
}
|
|
18820
18769
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -18827,7 +18776,7 @@ var AllUsersAddChannelRequest = {
|
|
|
18827
18776
|
fromJSON(object) {
|
|
18828
18777
|
return {
|
|
18829
18778
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
18830
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
18779
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0
|
|
18831
18780
|
};
|
|
18832
18781
|
},
|
|
18833
18782
|
toJSON(message) {
|
|
@@ -18835,8 +18784,8 @@ var AllUsersAddChannelRequest = {
|
|
|
18835
18784
|
if (message.channel_id !== "0") {
|
|
18836
18785
|
obj.channel_id = message.channel_id;
|
|
18837
18786
|
}
|
|
18838
|
-
if (message.limit !==
|
|
18839
|
-
obj.limit = message.limit;
|
|
18787
|
+
if (message.limit !== 0) {
|
|
18788
|
+
obj.limit = Math.round(message.limit);
|
|
18840
18789
|
}
|
|
18841
18790
|
return obj;
|
|
18842
18791
|
},
|
|
@@ -18847,20 +18796,12 @@ var AllUsersAddChannelRequest = {
|
|
|
18847
18796
|
var _a, _b;
|
|
18848
18797
|
const message = createBaseAllUsersAddChannelRequest();
|
|
18849
18798
|
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
18850
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
18799
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
18851
18800
|
return message;
|
|
18852
18801
|
}
|
|
18853
18802
|
};
|
|
18854
18803
|
function createBaseAllUsersAddChannelResponse() {
|
|
18855
|
-
return {
|
|
18856
|
-
channel_id: "0",
|
|
18857
|
-
user_ids: [],
|
|
18858
|
-
limit: void 0,
|
|
18859
|
-
usernames: [],
|
|
18860
|
-
display_names: [],
|
|
18861
|
-
avatars: [],
|
|
18862
|
-
onlines: []
|
|
18863
|
-
};
|
|
18804
|
+
return { channel_id: "0", user_ids: [], limit: 0, usernames: [], display_names: [], avatars: [], onlines: [] };
|
|
18864
18805
|
}
|
|
18865
18806
|
var AllUsersAddChannelResponse = {
|
|
18866
18807
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -18872,8 +18813,8 @@ var AllUsersAddChannelResponse = {
|
|
|
18872
18813
|
writer.int64(v);
|
|
18873
18814
|
}
|
|
18874
18815
|
writer.ldelim();
|
|
18875
|
-
if (message.limit !==
|
|
18876
|
-
|
|
18816
|
+
if (message.limit !== 0) {
|
|
18817
|
+
writer.uint32(24).int32(message.limit);
|
|
18877
18818
|
}
|
|
18878
18819
|
for (const v of message.usernames) {
|
|
18879
18820
|
writer.uint32(34).string(v);
|
|
@@ -18918,10 +18859,10 @@ var AllUsersAddChannelResponse = {
|
|
|
18918
18859
|
}
|
|
18919
18860
|
break;
|
|
18920
18861
|
case 3:
|
|
18921
|
-
if (tag !==
|
|
18862
|
+
if (tag !== 24) {
|
|
18922
18863
|
break;
|
|
18923
18864
|
}
|
|
18924
|
-
message.limit =
|
|
18865
|
+
message.limit = reader.int32();
|
|
18925
18866
|
continue;
|
|
18926
18867
|
case 4:
|
|
18927
18868
|
if (tag !== 34) {
|
|
@@ -18966,7 +18907,7 @@ var AllUsersAddChannelResponse = {
|
|
|
18966
18907
|
return {
|
|
18967
18908
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
18968
18909
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
18969
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
18910
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
18970
18911
|
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
18971
18912
|
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
|
|
18972
18913
|
avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : [],
|
|
@@ -18982,8 +18923,8 @@ var AllUsersAddChannelResponse = {
|
|
|
18982
18923
|
if ((_a = message.user_ids) == null ? void 0 : _a.length) {
|
|
18983
18924
|
obj.user_ids = message.user_ids;
|
|
18984
18925
|
}
|
|
18985
|
-
if (message.limit !==
|
|
18986
|
-
obj.limit = message.limit;
|
|
18926
|
+
if (message.limit !== 0) {
|
|
18927
|
+
obj.limit = Math.round(message.limit);
|
|
18987
18928
|
}
|
|
18988
18929
|
if ((_b = message.usernames) == null ? void 0 : _b.length) {
|
|
18989
18930
|
obj.usernames = message.usernames;
|
|
@@ -19007,7 +18948,7 @@ var AllUsersAddChannelResponse = {
|
|
|
19007
18948
|
const message = createBaseAllUsersAddChannelResponse();
|
|
19008
18949
|
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
19009
18950
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
19010
|
-
message.limit = (_c = object.limit) != null ? _c :
|
|
18951
|
+
message.limit = (_c = object.limit) != null ? _c : 0;
|
|
19011
18952
|
message.usernames = ((_d = object.usernames) == null ? void 0 : _d.map((e) => e)) || [];
|
|
19012
18953
|
message.display_names = ((_e = object.display_names) == null ? void 0 : _e.map((e) => e)) || [];
|
|
19013
18954
|
message.avatars = ((_f = object.avatars) == null ? void 0 : _f.map((e) => e)) || [];
|
|
@@ -22959,12 +22900,12 @@ function createBaseChannelSettingListRequest() {
|
|
|
22959
22900
|
clan_id: "0",
|
|
22960
22901
|
parent_id: "0",
|
|
22961
22902
|
category_id: "0",
|
|
22962
|
-
private_channel:
|
|
22963
|
-
active:
|
|
22964
|
-
status:
|
|
22965
|
-
type:
|
|
22966
|
-
limit:
|
|
22967
|
-
page:
|
|
22903
|
+
private_channel: 0,
|
|
22904
|
+
active: 0,
|
|
22905
|
+
status: 0,
|
|
22906
|
+
type: 0,
|
|
22907
|
+
limit: 0,
|
|
22908
|
+
page: 0,
|
|
22968
22909
|
channel_label: ""
|
|
22969
22910
|
};
|
|
22970
22911
|
}
|
|
@@ -22979,23 +22920,23 @@ var ChannelSettingListRequest = {
|
|
|
22979
22920
|
if (message.category_id !== "0") {
|
|
22980
22921
|
writer.uint32(24).int64(message.category_id);
|
|
22981
22922
|
}
|
|
22982
|
-
if (message.private_channel !==
|
|
22983
|
-
|
|
22923
|
+
if (message.private_channel !== 0) {
|
|
22924
|
+
writer.uint32(32).int32(message.private_channel);
|
|
22984
22925
|
}
|
|
22985
|
-
if (message.active !==
|
|
22986
|
-
|
|
22926
|
+
if (message.active !== 0) {
|
|
22927
|
+
writer.uint32(40).int32(message.active);
|
|
22987
22928
|
}
|
|
22988
|
-
if (message.status !==
|
|
22989
|
-
|
|
22929
|
+
if (message.status !== 0) {
|
|
22930
|
+
writer.uint32(48).int32(message.status);
|
|
22990
22931
|
}
|
|
22991
|
-
if (message.type !==
|
|
22992
|
-
|
|
22932
|
+
if (message.type !== 0) {
|
|
22933
|
+
writer.uint32(56).int32(message.type);
|
|
22993
22934
|
}
|
|
22994
|
-
if (message.limit !==
|
|
22995
|
-
|
|
22935
|
+
if (message.limit !== 0) {
|
|
22936
|
+
writer.uint32(64).int32(message.limit);
|
|
22996
22937
|
}
|
|
22997
|
-
if (message.page !==
|
|
22998
|
-
|
|
22938
|
+
if (message.page !== 0) {
|
|
22939
|
+
writer.uint32(72).int32(message.page);
|
|
22999
22940
|
}
|
|
23000
22941
|
if (message.channel_label !== "") {
|
|
23001
22942
|
writer.uint32(82).string(message.channel_label);
|
|
@@ -23028,40 +22969,40 @@ var ChannelSettingListRequest = {
|
|
|
23028
22969
|
message.category_id = longToString(reader.int64());
|
|
23029
22970
|
continue;
|
|
23030
22971
|
case 4:
|
|
23031
|
-
if (tag !==
|
|
22972
|
+
if (tag !== 32) {
|
|
23032
22973
|
break;
|
|
23033
22974
|
}
|
|
23034
|
-
message.private_channel =
|
|
22975
|
+
message.private_channel = reader.int32();
|
|
23035
22976
|
continue;
|
|
23036
22977
|
case 5:
|
|
23037
|
-
if (tag !==
|
|
22978
|
+
if (tag !== 40) {
|
|
23038
22979
|
break;
|
|
23039
22980
|
}
|
|
23040
|
-
message.active =
|
|
22981
|
+
message.active = reader.int32();
|
|
23041
22982
|
continue;
|
|
23042
22983
|
case 6:
|
|
23043
|
-
if (tag !==
|
|
22984
|
+
if (tag !== 48) {
|
|
23044
22985
|
break;
|
|
23045
22986
|
}
|
|
23046
|
-
message.status =
|
|
22987
|
+
message.status = reader.int32();
|
|
23047
22988
|
continue;
|
|
23048
22989
|
case 7:
|
|
23049
|
-
if (tag !==
|
|
22990
|
+
if (tag !== 56) {
|
|
23050
22991
|
break;
|
|
23051
22992
|
}
|
|
23052
|
-
message.type =
|
|
22993
|
+
message.type = reader.int32();
|
|
23053
22994
|
continue;
|
|
23054
22995
|
case 8:
|
|
23055
|
-
if (tag !==
|
|
22996
|
+
if (tag !== 64) {
|
|
23056
22997
|
break;
|
|
23057
22998
|
}
|
|
23058
|
-
message.limit =
|
|
22999
|
+
message.limit = reader.int32();
|
|
23059
23000
|
continue;
|
|
23060
23001
|
case 9:
|
|
23061
|
-
if (tag !==
|
|
23002
|
+
if (tag !== 72) {
|
|
23062
23003
|
break;
|
|
23063
23004
|
}
|
|
23064
|
-
message.page =
|
|
23005
|
+
message.page = reader.int32();
|
|
23065
23006
|
continue;
|
|
23066
23007
|
case 10:
|
|
23067
23008
|
if (tag !== 82) {
|
|
@@ -23082,12 +23023,12 @@ var ChannelSettingListRequest = {
|
|
|
23082
23023
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
23083
23024
|
parent_id: isSet2(object.parent_id) ? globalThis.String(object.parent_id) : "0",
|
|
23084
23025
|
category_id: isSet2(object.category_id) ? globalThis.String(object.category_id) : "0",
|
|
23085
|
-
private_channel: isSet2(object.private_channel) ? Number(object.private_channel) :
|
|
23086
|
-
active: isSet2(object.active) ? Number(object.active) :
|
|
23087
|
-
status: isSet2(object.status) ? Number(object.status) :
|
|
23088
|
-
type: isSet2(object.type) ? Number(object.type) :
|
|
23089
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
23090
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
23026
|
+
private_channel: isSet2(object.private_channel) ? globalThis.Number(object.private_channel) : 0,
|
|
23027
|
+
active: isSet2(object.active) ? globalThis.Number(object.active) : 0,
|
|
23028
|
+
status: isSet2(object.status) ? globalThis.Number(object.status) : 0,
|
|
23029
|
+
type: isSet2(object.type) ? globalThis.Number(object.type) : 0,
|
|
23030
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
23031
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0,
|
|
23091
23032
|
channel_label: isSet2(object.channel_label) ? globalThis.String(object.channel_label) : ""
|
|
23092
23033
|
};
|
|
23093
23034
|
},
|
|
@@ -23102,23 +23043,23 @@ var ChannelSettingListRequest = {
|
|
|
23102
23043
|
if (message.category_id !== "0") {
|
|
23103
23044
|
obj.category_id = message.category_id;
|
|
23104
23045
|
}
|
|
23105
|
-
if (message.private_channel !==
|
|
23106
|
-
obj.private_channel = message.private_channel;
|
|
23046
|
+
if (message.private_channel !== 0) {
|
|
23047
|
+
obj.private_channel = Math.round(message.private_channel);
|
|
23107
23048
|
}
|
|
23108
|
-
if (message.active !==
|
|
23109
|
-
obj.active = message.active;
|
|
23049
|
+
if (message.active !== 0) {
|
|
23050
|
+
obj.active = Math.round(message.active);
|
|
23110
23051
|
}
|
|
23111
|
-
if (message.status !==
|
|
23112
|
-
obj.status = message.status;
|
|
23052
|
+
if (message.status !== 0) {
|
|
23053
|
+
obj.status = Math.round(message.status);
|
|
23113
23054
|
}
|
|
23114
|
-
if (message.type !==
|
|
23115
|
-
obj.type = message.type;
|
|
23055
|
+
if (message.type !== 0) {
|
|
23056
|
+
obj.type = Math.round(message.type);
|
|
23116
23057
|
}
|
|
23117
|
-
if (message.limit !==
|
|
23118
|
-
obj.limit = message.limit;
|
|
23058
|
+
if (message.limit !== 0) {
|
|
23059
|
+
obj.limit = Math.round(message.limit);
|
|
23119
23060
|
}
|
|
23120
|
-
if (message.page !==
|
|
23121
|
-
obj.page = message.page;
|
|
23061
|
+
if (message.page !== 0) {
|
|
23062
|
+
obj.page = Math.round(message.page);
|
|
23122
23063
|
}
|
|
23123
23064
|
if (message.channel_label !== "") {
|
|
23124
23065
|
obj.channel_label = message.channel_label;
|
|
@@ -23134,12 +23075,12 @@ var ChannelSettingListRequest = {
|
|
|
23134
23075
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
23135
23076
|
message.parent_id = (_b = object.parent_id) != null ? _b : "0";
|
|
23136
23077
|
message.category_id = (_c = object.category_id) != null ? _c : "0";
|
|
23137
|
-
message.private_channel = (_d = object.private_channel) != null ? _d :
|
|
23138
|
-
message.active = (_e = object.active) != null ? _e :
|
|
23139
|
-
message.status = (_f = object.status) != null ? _f :
|
|
23140
|
-
message.type = (_g = object.type) != null ? _g :
|
|
23141
|
-
message.limit = (_h = object.limit) != null ? _h :
|
|
23142
|
-
message.page = (_i = object.page) != null ? _i :
|
|
23078
|
+
message.private_channel = (_d = object.private_channel) != null ? _d : 0;
|
|
23079
|
+
message.active = (_e = object.active) != null ? _e : 0;
|
|
23080
|
+
message.status = (_f = object.status) != null ? _f : 0;
|
|
23081
|
+
message.type = (_g = object.type) != null ? _g : 0;
|
|
23082
|
+
message.limit = (_h = object.limit) != null ? _h : 0;
|
|
23083
|
+
message.page = (_i = object.page) != null ? _i : 0;
|
|
23143
23084
|
message.channel_label = (_j = object.channel_label) != null ? _j : "";
|
|
23144
23085
|
return message;
|
|
23145
23086
|
}
|
|
@@ -23821,7 +23762,7 @@ var DeleteChannelCanvasRequest = {
|
|
|
23821
23762
|
}
|
|
23822
23763
|
};
|
|
23823
23764
|
function createBaseChannelCanvasListRequest() {
|
|
23824
|
-
return { clan_id: "0", channel_id: "0", limit:
|
|
23765
|
+
return { clan_id: "0", channel_id: "0", limit: 0, page: 0, cursor: "" };
|
|
23825
23766
|
}
|
|
23826
23767
|
var ChannelCanvasListRequest = {
|
|
23827
23768
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -23831,11 +23772,11 @@ var ChannelCanvasListRequest = {
|
|
|
23831
23772
|
if (message.channel_id !== "0") {
|
|
23832
23773
|
writer.uint32(16).int64(message.channel_id);
|
|
23833
23774
|
}
|
|
23834
|
-
if (message.limit !==
|
|
23835
|
-
|
|
23775
|
+
if (message.limit !== 0) {
|
|
23776
|
+
writer.uint32(24).int32(message.limit);
|
|
23836
23777
|
}
|
|
23837
|
-
if (message.page !==
|
|
23838
|
-
|
|
23778
|
+
if (message.page !== 0) {
|
|
23779
|
+
writer.uint32(32).int32(message.page);
|
|
23839
23780
|
}
|
|
23840
23781
|
if (message.cursor !== "") {
|
|
23841
23782
|
writer.uint32(42).string(message.cursor);
|
|
@@ -23862,16 +23803,16 @@ var ChannelCanvasListRequest = {
|
|
|
23862
23803
|
message.channel_id = longToString(reader.int64());
|
|
23863
23804
|
continue;
|
|
23864
23805
|
case 3:
|
|
23865
|
-
if (tag !==
|
|
23806
|
+
if (tag !== 24) {
|
|
23866
23807
|
break;
|
|
23867
23808
|
}
|
|
23868
|
-
message.limit =
|
|
23809
|
+
message.limit = reader.int32();
|
|
23869
23810
|
continue;
|
|
23870
23811
|
case 4:
|
|
23871
|
-
if (tag !==
|
|
23812
|
+
if (tag !== 32) {
|
|
23872
23813
|
break;
|
|
23873
23814
|
}
|
|
23874
|
-
message.page =
|
|
23815
|
+
message.page = reader.int32();
|
|
23875
23816
|
continue;
|
|
23876
23817
|
case 5:
|
|
23877
23818
|
if (tag !== 42) {
|
|
@@ -23891,8 +23832,8 @@ var ChannelCanvasListRequest = {
|
|
|
23891
23832
|
return {
|
|
23892
23833
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
23893
23834
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
23894
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
23895
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
23835
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
23836
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0,
|
|
23896
23837
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
23897
23838
|
};
|
|
23898
23839
|
},
|
|
@@ -23904,11 +23845,11 @@ var ChannelCanvasListRequest = {
|
|
|
23904
23845
|
if (message.channel_id !== "0") {
|
|
23905
23846
|
obj.channel_id = message.channel_id;
|
|
23906
23847
|
}
|
|
23907
|
-
if (message.limit !==
|
|
23908
|
-
obj.limit = message.limit;
|
|
23848
|
+
if (message.limit !== 0) {
|
|
23849
|
+
obj.limit = Math.round(message.limit);
|
|
23909
23850
|
}
|
|
23910
|
-
if (message.page !==
|
|
23911
|
-
obj.page = message.page;
|
|
23851
|
+
if (message.page !== 0) {
|
|
23852
|
+
obj.page = Math.round(message.page);
|
|
23912
23853
|
}
|
|
23913
23854
|
if (message.cursor !== "") {
|
|
23914
23855
|
obj.cursor = message.cursor;
|
|
@@ -23923,8 +23864,8 @@ var ChannelCanvasListRequest = {
|
|
|
23923
23864
|
const message = createBaseChannelCanvasListRequest();
|
|
23924
23865
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
23925
23866
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
23926
|
-
message.limit = (_c = object.limit) != null ? _c :
|
|
23927
|
-
message.page = (_d = object.page) != null ? _d :
|
|
23867
|
+
message.limit = (_c = object.limit) != null ? _c : 0;
|
|
23868
|
+
message.page = (_d = object.page) != null ? _d : 0;
|
|
23928
23869
|
message.cursor = (_e = object.cursor) != null ? _e : "";
|
|
23929
23870
|
return message;
|
|
23930
23871
|
}
|
|
@@ -26086,21 +26027,21 @@ var TokenSentEvent = {
|
|
|
26086
26027
|
}
|
|
26087
26028
|
};
|
|
26088
26029
|
function createBaseListOnboardingRequest() {
|
|
26089
|
-
return { clan_id: "0", guide_type:
|
|
26030
|
+
return { clan_id: "0", guide_type: 0, limit: 0, page: 0 };
|
|
26090
26031
|
}
|
|
26091
26032
|
var ListOnboardingRequest = {
|
|
26092
26033
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
26093
26034
|
if (message.clan_id !== "0") {
|
|
26094
26035
|
writer.uint32(8).int64(message.clan_id);
|
|
26095
26036
|
}
|
|
26096
|
-
if (message.guide_type !==
|
|
26097
|
-
|
|
26037
|
+
if (message.guide_type !== 0) {
|
|
26038
|
+
writer.uint32(16).int32(message.guide_type);
|
|
26098
26039
|
}
|
|
26099
|
-
if (message.limit !==
|
|
26100
|
-
|
|
26040
|
+
if (message.limit !== 0) {
|
|
26041
|
+
writer.uint32(24).int32(message.limit);
|
|
26101
26042
|
}
|
|
26102
|
-
if (message.page !==
|
|
26103
|
-
|
|
26043
|
+
if (message.page !== 0) {
|
|
26044
|
+
writer.uint32(32).int32(message.page);
|
|
26104
26045
|
}
|
|
26105
26046
|
return writer;
|
|
26106
26047
|
},
|
|
@@ -26118,22 +26059,22 @@ var ListOnboardingRequest = {
|
|
|
26118
26059
|
message.clan_id = longToString(reader.int64());
|
|
26119
26060
|
continue;
|
|
26120
26061
|
case 2:
|
|
26121
|
-
if (tag !==
|
|
26062
|
+
if (tag !== 16) {
|
|
26122
26063
|
break;
|
|
26123
26064
|
}
|
|
26124
|
-
message.guide_type =
|
|
26065
|
+
message.guide_type = reader.int32();
|
|
26125
26066
|
continue;
|
|
26126
26067
|
case 3:
|
|
26127
|
-
if (tag !==
|
|
26068
|
+
if (tag !== 24) {
|
|
26128
26069
|
break;
|
|
26129
26070
|
}
|
|
26130
|
-
message.limit =
|
|
26071
|
+
message.limit = reader.int32();
|
|
26131
26072
|
continue;
|
|
26132
26073
|
case 4:
|
|
26133
|
-
if (tag !==
|
|
26074
|
+
if (tag !== 32) {
|
|
26134
26075
|
break;
|
|
26135
26076
|
}
|
|
26136
|
-
message.page =
|
|
26077
|
+
message.page = reader.int32();
|
|
26137
26078
|
continue;
|
|
26138
26079
|
}
|
|
26139
26080
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -26146,9 +26087,9 @@ var ListOnboardingRequest = {
|
|
|
26146
26087
|
fromJSON(object) {
|
|
26147
26088
|
return {
|
|
26148
26089
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
26149
|
-
guide_type: isSet2(object.guide_type) ? Number(object.guide_type) :
|
|
26150
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
26151
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
26090
|
+
guide_type: isSet2(object.guide_type) ? globalThis.Number(object.guide_type) : 0,
|
|
26091
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
26092
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0
|
|
26152
26093
|
};
|
|
26153
26094
|
},
|
|
26154
26095
|
toJSON(message) {
|
|
@@ -26156,14 +26097,14 @@ var ListOnboardingRequest = {
|
|
|
26156
26097
|
if (message.clan_id !== "0") {
|
|
26157
26098
|
obj.clan_id = message.clan_id;
|
|
26158
26099
|
}
|
|
26159
|
-
if (message.guide_type !==
|
|
26160
|
-
obj.guide_type = message.guide_type;
|
|
26100
|
+
if (message.guide_type !== 0) {
|
|
26101
|
+
obj.guide_type = Math.round(message.guide_type);
|
|
26161
26102
|
}
|
|
26162
|
-
if (message.limit !==
|
|
26163
|
-
obj.limit = message.limit;
|
|
26103
|
+
if (message.limit !== 0) {
|
|
26104
|
+
obj.limit = Math.round(message.limit);
|
|
26164
26105
|
}
|
|
26165
|
-
if (message.page !==
|
|
26166
|
-
obj.page = message.page;
|
|
26106
|
+
if (message.page !== 0) {
|
|
26107
|
+
obj.page = Math.round(message.page);
|
|
26167
26108
|
}
|
|
26168
26109
|
return obj;
|
|
26169
26110
|
},
|
|
@@ -26174,9 +26115,9 @@ var ListOnboardingRequest = {
|
|
|
26174
26115
|
var _a, _b, _c, _d;
|
|
26175
26116
|
const message = createBaseListOnboardingRequest();
|
|
26176
26117
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
26177
|
-
message.guide_type = (_b = object.guide_type) != null ? _b :
|
|
26178
|
-
message.limit = (_c = object.limit) != null ? _c :
|
|
26179
|
-
message.page = (_d = object.page) != null ? _d :
|
|
26118
|
+
message.guide_type = (_b = object.guide_type) != null ? _b : 0;
|
|
26119
|
+
message.limit = (_c = object.limit) != null ? _c : 0;
|
|
26120
|
+
message.page = (_d = object.page) != null ? _d : 0;
|
|
26180
26121
|
return message;
|
|
26181
26122
|
}
|
|
26182
26123
|
};
|
|
@@ -26742,16 +26683,7 @@ var CreateOnboardingRequest = {
|
|
|
26742
26683
|
}
|
|
26743
26684
|
};
|
|
26744
26685
|
function createBaseUpdateOnboardingRequest() {
|
|
26745
|
-
return {
|
|
26746
|
-
id: "0",
|
|
26747
|
-
clan_id: "0",
|
|
26748
|
-
task_type: void 0,
|
|
26749
|
-
channel_id: "0",
|
|
26750
|
-
title: "",
|
|
26751
|
-
content: "",
|
|
26752
|
-
image_url: "",
|
|
26753
|
-
answers: []
|
|
26754
|
-
};
|
|
26686
|
+
return { id: "0", clan_id: "0", task_type: 0, channel_id: "0", title: "", content: "", image_url: "", answers: [] };
|
|
26755
26687
|
}
|
|
26756
26688
|
var UpdateOnboardingRequest = {
|
|
26757
26689
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -26761,8 +26693,8 @@ var UpdateOnboardingRequest = {
|
|
|
26761
26693
|
if (message.clan_id !== "0") {
|
|
26762
26694
|
writer.uint32(16).int64(message.clan_id);
|
|
26763
26695
|
}
|
|
26764
|
-
if (message.task_type !==
|
|
26765
|
-
|
|
26696
|
+
if (message.task_type !== 0) {
|
|
26697
|
+
writer.uint32(24).int32(message.task_type);
|
|
26766
26698
|
}
|
|
26767
26699
|
if (message.channel_id !== "0") {
|
|
26768
26700
|
writer.uint32(32).int64(message.channel_id);
|
|
@@ -26801,10 +26733,10 @@ var UpdateOnboardingRequest = {
|
|
|
26801
26733
|
message.clan_id = longToString(reader.int64());
|
|
26802
26734
|
continue;
|
|
26803
26735
|
case 3:
|
|
26804
|
-
if (tag !==
|
|
26736
|
+
if (tag !== 24) {
|
|
26805
26737
|
break;
|
|
26806
26738
|
}
|
|
26807
|
-
message.task_type =
|
|
26739
|
+
message.task_type = reader.int32();
|
|
26808
26740
|
continue;
|
|
26809
26741
|
case 4:
|
|
26810
26742
|
if (tag !== 32) {
|
|
@@ -26848,7 +26780,7 @@ var UpdateOnboardingRequest = {
|
|
|
26848
26780
|
return {
|
|
26849
26781
|
id: isSet2(object.id) ? globalThis.String(object.id) : "0",
|
|
26850
26782
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
26851
|
-
task_type: isSet2(object.task_type) ? Number(object.task_type) :
|
|
26783
|
+
task_type: isSet2(object.task_type) ? globalThis.Number(object.task_type) : 0,
|
|
26852
26784
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
26853
26785
|
title: isSet2(object.title) ? globalThis.String(object.title) : "",
|
|
26854
26786
|
content: isSet2(object.content) ? globalThis.String(object.content) : "",
|
|
@@ -26865,8 +26797,8 @@ var UpdateOnboardingRequest = {
|
|
|
26865
26797
|
if (message.clan_id !== "0") {
|
|
26866
26798
|
obj.clan_id = message.clan_id;
|
|
26867
26799
|
}
|
|
26868
|
-
if (message.task_type !==
|
|
26869
|
-
obj.task_type = message.task_type;
|
|
26800
|
+
if (message.task_type !== 0) {
|
|
26801
|
+
obj.task_type = Math.round(message.task_type);
|
|
26870
26802
|
}
|
|
26871
26803
|
if (message.channel_id !== "0") {
|
|
26872
26804
|
obj.channel_id = message.channel_id;
|
|
@@ -26893,7 +26825,7 @@ var UpdateOnboardingRequest = {
|
|
|
26893
26825
|
const message = createBaseUpdateOnboardingRequest();
|
|
26894
26826
|
message.id = (_a = object.id) != null ? _a : "0";
|
|
26895
26827
|
message.clan_id = (_b = object.clan_id) != null ? _b : "0";
|
|
26896
|
-
message.task_type = (_c = object.task_type) != null ? _c :
|
|
26828
|
+
message.task_type = (_c = object.task_type) != null ? _c : 0;
|
|
26897
26829
|
message.channel_id = (_d = object.channel_id) != null ? _d : "0";
|
|
26898
26830
|
message.title = (_e = object.title) != null ? _e : "";
|
|
26899
26831
|
message.content = (_f = object.content) != null ? _f : "";
|
|
@@ -27899,18 +27831,18 @@ var ListOnboardingStepResponse = {
|
|
|
27899
27831
|
}
|
|
27900
27832
|
};
|
|
27901
27833
|
function createBaseListOnboardingStepRequest() {
|
|
27902
|
-
return { clan_id: "0", limit:
|
|
27834
|
+
return { clan_id: "0", limit: 0, page: 0 };
|
|
27903
27835
|
}
|
|
27904
27836
|
var ListOnboardingStepRequest = {
|
|
27905
27837
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
27906
27838
|
if (message.clan_id !== "0") {
|
|
27907
27839
|
writer.uint32(8).int64(message.clan_id);
|
|
27908
27840
|
}
|
|
27909
|
-
if (message.limit !==
|
|
27910
|
-
|
|
27841
|
+
if (message.limit !== 0) {
|
|
27842
|
+
writer.uint32(16).int32(message.limit);
|
|
27911
27843
|
}
|
|
27912
|
-
if (message.page !==
|
|
27913
|
-
|
|
27844
|
+
if (message.page !== 0) {
|
|
27845
|
+
writer.uint32(24).int32(message.page);
|
|
27914
27846
|
}
|
|
27915
27847
|
return writer;
|
|
27916
27848
|
},
|
|
@@ -27928,16 +27860,16 @@ var ListOnboardingStepRequest = {
|
|
|
27928
27860
|
message.clan_id = longToString(reader.int64());
|
|
27929
27861
|
continue;
|
|
27930
27862
|
case 2:
|
|
27931
|
-
if (tag !==
|
|
27863
|
+
if (tag !== 16) {
|
|
27932
27864
|
break;
|
|
27933
27865
|
}
|
|
27934
|
-
message.limit =
|
|
27866
|
+
message.limit = reader.int32();
|
|
27935
27867
|
continue;
|
|
27936
27868
|
case 3:
|
|
27937
|
-
if (tag !==
|
|
27869
|
+
if (tag !== 24) {
|
|
27938
27870
|
break;
|
|
27939
27871
|
}
|
|
27940
|
-
message.page =
|
|
27872
|
+
message.page = reader.int32();
|
|
27941
27873
|
continue;
|
|
27942
27874
|
}
|
|
27943
27875
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -27950,8 +27882,8 @@ var ListOnboardingStepRequest = {
|
|
|
27950
27882
|
fromJSON(object) {
|
|
27951
27883
|
return {
|
|
27952
27884
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
27953
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
27954
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
27885
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
27886
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0
|
|
27955
27887
|
};
|
|
27956
27888
|
},
|
|
27957
27889
|
toJSON(message) {
|
|
@@ -27959,11 +27891,11 @@ var ListOnboardingStepRequest = {
|
|
|
27959
27891
|
if (message.clan_id !== "0") {
|
|
27960
27892
|
obj.clan_id = message.clan_id;
|
|
27961
27893
|
}
|
|
27962
|
-
if (message.limit !==
|
|
27963
|
-
obj.limit = message.limit;
|
|
27894
|
+
if (message.limit !== 0) {
|
|
27895
|
+
obj.limit = Math.round(message.limit);
|
|
27964
27896
|
}
|
|
27965
|
-
if (message.page !==
|
|
27966
|
-
obj.page = message.page;
|
|
27897
|
+
if (message.page !== 0) {
|
|
27898
|
+
obj.page = Math.round(message.page);
|
|
27967
27899
|
}
|
|
27968
27900
|
return obj;
|
|
27969
27901
|
},
|
|
@@ -27974,21 +27906,21 @@ var ListOnboardingStepRequest = {
|
|
|
27974
27906
|
var _a, _b, _c;
|
|
27975
27907
|
const message = createBaseListOnboardingStepRequest();
|
|
27976
27908
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
27977
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
27978
|
-
message.page = (_c = object.page) != null ? _c :
|
|
27909
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
27910
|
+
message.page = (_c = object.page) != null ? _c : 0;
|
|
27979
27911
|
return message;
|
|
27980
27912
|
}
|
|
27981
27913
|
};
|
|
27982
27914
|
function createBaseUpdateOnboardingStepRequest() {
|
|
27983
|
-
return { clan_id: "0", onboarding_step:
|
|
27915
|
+
return { clan_id: "0", onboarding_step: 0 };
|
|
27984
27916
|
}
|
|
27985
27917
|
var UpdateOnboardingStepRequest = {
|
|
27986
27918
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
27987
27919
|
if (message.clan_id !== "0") {
|
|
27988
27920
|
writer.uint32(8).int64(message.clan_id);
|
|
27989
27921
|
}
|
|
27990
|
-
if (message.onboarding_step !==
|
|
27991
|
-
|
|
27922
|
+
if (message.onboarding_step !== 0) {
|
|
27923
|
+
writer.uint32(16).int32(message.onboarding_step);
|
|
27992
27924
|
}
|
|
27993
27925
|
return writer;
|
|
27994
27926
|
},
|
|
@@ -28006,10 +27938,10 @@ var UpdateOnboardingStepRequest = {
|
|
|
28006
27938
|
message.clan_id = longToString(reader.int64());
|
|
28007
27939
|
continue;
|
|
28008
27940
|
case 2:
|
|
28009
|
-
if (tag !==
|
|
27941
|
+
if (tag !== 16) {
|
|
28010
27942
|
break;
|
|
28011
27943
|
}
|
|
28012
|
-
message.onboarding_step =
|
|
27944
|
+
message.onboarding_step = reader.int32();
|
|
28013
27945
|
continue;
|
|
28014
27946
|
}
|
|
28015
27947
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -28022,7 +27954,7 @@ var UpdateOnboardingStepRequest = {
|
|
|
28022
27954
|
fromJSON(object) {
|
|
28023
27955
|
return {
|
|
28024
27956
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
28025
|
-
onboarding_step: isSet2(object.onboarding_step) ? Number(object.onboarding_step) :
|
|
27957
|
+
onboarding_step: isSet2(object.onboarding_step) ? globalThis.Number(object.onboarding_step) : 0
|
|
28026
27958
|
};
|
|
28027
27959
|
},
|
|
28028
27960
|
toJSON(message) {
|
|
@@ -28030,8 +27962,8 @@ var UpdateOnboardingStepRequest = {
|
|
|
28030
27962
|
if (message.clan_id !== "0") {
|
|
28031
27963
|
obj.clan_id = message.clan_id;
|
|
28032
27964
|
}
|
|
28033
|
-
if (message.onboarding_step !==
|
|
28034
|
-
obj.onboarding_step = message.onboarding_step;
|
|
27965
|
+
if (message.onboarding_step !== 0) {
|
|
27966
|
+
obj.onboarding_step = Math.round(message.onboarding_step);
|
|
28035
27967
|
}
|
|
28036
27968
|
return obj;
|
|
28037
27969
|
},
|
|
@@ -28042,7 +27974,7 @@ var UpdateOnboardingStepRequest = {
|
|
|
28042
27974
|
var _a, _b;
|
|
28043
27975
|
const message = createBaseUpdateOnboardingStepRequest();
|
|
28044
27976
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
28045
|
-
message.onboarding_step = (_b = object.onboarding_step) != null ? _b :
|
|
27977
|
+
message.onboarding_step = (_b = object.onboarding_step) != null ? _b : 0;
|
|
28046
27978
|
return message;
|
|
28047
27979
|
}
|
|
28048
27980
|
};
|