jr-common-micro 1.1.111 → 1.1.113
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/dist/proto/micro/v1/mining/mining_messages_nest.d.ts +38 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.d.ts +38 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.js +68 -2
- package/dist/proto/micro/v1/mining/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/mining/services_connect.js +6 -0
- package/dist/proto/micro/v1/mining/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/mining/services_nest.js +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +27 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +15 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.js +18 -0
- package/package.json +1 -1
- package/proto/micro/v1/mining/mining_messages.proto +30 -1
- package/proto/micro/v1/mining/services.proto +2 -0
- package/proto/micro/v1/notification/notification_messages.proto +15 -0
|
@@ -285,6 +285,16 @@ export interface AdminTopReferrer {
|
|
|
285
285
|
earned: string;
|
|
286
286
|
avatar_id: string;
|
|
287
287
|
}
|
|
288
|
+
export interface AdminTopReferrersRequest {
|
|
289
|
+
page: number;
|
|
290
|
+
per_page: number;
|
|
291
|
+
}
|
|
292
|
+
export interface AdminTopReferrersResponse {
|
|
293
|
+
status: ResponseStatus | undefined;
|
|
294
|
+
data: AdminTopReferrer[];
|
|
295
|
+
has_more: boolean;
|
|
296
|
+
total: number;
|
|
297
|
+
}
|
|
288
298
|
export interface AdminOverviewResponse {
|
|
289
299
|
status: ResponseStatus | undefined;
|
|
290
300
|
metrics: AdminMetric[];
|
|
@@ -319,6 +329,13 @@ export interface AdminTaskItem {
|
|
|
319
329
|
active: boolean;
|
|
320
330
|
sort: number;
|
|
321
331
|
completions_7d: number;
|
|
332
|
+
titles: {
|
|
333
|
+
[key: string]: string;
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
export interface AdminTaskItem_TitlesEntry {
|
|
337
|
+
key: string;
|
|
338
|
+
value: string;
|
|
322
339
|
}
|
|
323
340
|
export interface AdminTasksResponse {
|
|
324
341
|
status: ResponseStatus | undefined;
|
|
@@ -456,12 +473,26 @@ export interface AdminSetTaskRequest {
|
|
|
456
473
|
title_en: string;
|
|
457
474
|
max_count?: number | undefined;
|
|
458
475
|
sort?: number | undefined;
|
|
476
|
+
titles: {
|
|
477
|
+
[key: string]: string;
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
export interface AdminSetTaskRequest_TitlesEntry {
|
|
481
|
+
key: string;
|
|
482
|
+
value: string;
|
|
459
483
|
}
|
|
460
484
|
export interface AdminGiftPreviewRequest {
|
|
461
485
|
usernames: string[];
|
|
462
486
|
all_miners: boolean;
|
|
463
487
|
amount: string;
|
|
464
488
|
note: string;
|
|
489
|
+
notes: {
|
|
490
|
+
[key: string]: string;
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
export interface AdminGiftPreviewRequest_NotesEntry {
|
|
494
|
+
key: string;
|
|
495
|
+
value: string;
|
|
465
496
|
}
|
|
466
497
|
export interface AdminGiftRecipient {
|
|
467
498
|
user_id: string;
|
|
@@ -499,6 +530,13 @@ export interface AdminGift {
|
|
|
499
530
|
total_paid: string;
|
|
500
531
|
created_at: string;
|
|
501
532
|
finished_at: string;
|
|
533
|
+
notes: {
|
|
534
|
+
[key: string]: string;
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
export interface AdminGift_NotesEntry {
|
|
538
|
+
key: string;
|
|
539
|
+
value: string;
|
|
502
540
|
}
|
|
503
541
|
export interface AdminGiftResponse {
|
|
504
542
|
status: ResponseStatus | undefined;
|
|
@@ -582,6 +582,32 @@ export declare class AdminTopReferrer extends Message<AdminTopReferrer> {
|
|
|
582
582
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminTopReferrer;
|
|
583
583
|
static equals(a: AdminTopReferrer | PlainMessage<AdminTopReferrer> | undefined, b: AdminTopReferrer | PlainMessage<AdminTopReferrer> | undefined): boolean;
|
|
584
584
|
}
|
|
585
|
+
export declare class AdminTopReferrersRequest extends Message<AdminTopReferrersRequest> {
|
|
586
|
+
page: number;
|
|
587
|
+
perPage: number;
|
|
588
|
+
constructor(data?: PartialMessage<AdminTopReferrersRequest>);
|
|
589
|
+
static readonly runtime: typeof proto3;
|
|
590
|
+
static readonly typeName = "micro.v1.mining.AdminTopReferrersRequest";
|
|
591
|
+
static readonly fields: FieldList;
|
|
592
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminTopReferrersRequest;
|
|
593
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminTopReferrersRequest;
|
|
594
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminTopReferrersRequest;
|
|
595
|
+
static equals(a: AdminTopReferrersRequest | PlainMessage<AdminTopReferrersRequest> | undefined, b: AdminTopReferrersRequest | PlainMessage<AdminTopReferrersRequest> | undefined): boolean;
|
|
596
|
+
}
|
|
597
|
+
export declare class AdminTopReferrersResponse extends Message<AdminTopReferrersResponse> {
|
|
598
|
+
status?: ResponseStatus;
|
|
599
|
+
data: AdminTopReferrer[];
|
|
600
|
+
hasMore: boolean;
|
|
601
|
+
total: number;
|
|
602
|
+
constructor(data?: PartialMessage<AdminTopReferrersResponse>);
|
|
603
|
+
static readonly runtime: typeof proto3;
|
|
604
|
+
static readonly typeName = "micro.v1.mining.AdminTopReferrersResponse";
|
|
605
|
+
static readonly fields: FieldList;
|
|
606
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminTopReferrersResponse;
|
|
607
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminTopReferrersResponse;
|
|
608
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminTopReferrersResponse;
|
|
609
|
+
static equals(a: AdminTopReferrersResponse | PlainMessage<AdminTopReferrersResponse> | undefined, b: AdminTopReferrersResponse | PlainMessage<AdminTopReferrersResponse> | undefined): boolean;
|
|
610
|
+
}
|
|
585
611
|
export declare class AdminOverviewResponse extends Message<AdminOverviewResponse> {
|
|
586
612
|
status?: ResponseStatus;
|
|
587
613
|
metrics: AdminMetric[];
|
|
@@ -648,6 +674,9 @@ export declare class AdminTaskItem extends Message<AdminTaskItem> {
|
|
|
648
674
|
active: boolean;
|
|
649
675
|
sort: number;
|
|
650
676
|
completions7d: number;
|
|
677
|
+
titles: {
|
|
678
|
+
[key: string]: string;
|
|
679
|
+
};
|
|
651
680
|
constructor(data?: PartialMessage<AdminTaskItem>);
|
|
652
681
|
static readonly runtime: typeof proto3;
|
|
653
682
|
static readonly typeName = "micro.v1.mining.AdminTaskItem";
|
|
@@ -921,6 +950,9 @@ export declare class AdminSetTaskRequest extends Message<AdminSetTaskRequest> {
|
|
|
921
950
|
titleEn: string;
|
|
922
951
|
maxCount?: number;
|
|
923
952
|
sort?: number;
|
|
953
|
+
titles: {
|
|
954
|
+
[key: string]: string;
|
|
955
|
+
};
|
|
924
956
|
constructor(data?: PartialMessage<AdminSetTaskRequest>);
|
|
925
957
|
static readonly runtime: typeof proto3;
|
|
926
958
|
static readonly typeName = "micro.v1.mining.AdminSetTaskRequest";
|
|
@@ -935,6 +967,9 @@ export declare class AdminGiftPreviewRequest extends Message<AdminGiftPreviewReq
|
|
|
935
967
|
allMiners: boolean;
|
|
936
968
|
amount: string;
|
|
937
969
|
note: string;
|
|
970
|
+
notes: {
|
|
971
|
+
[key: string]: string;
|
|
972
|
+
};
|
|
938
973
|
constructor(data?: PartialMessage<AdminGiftPreviewRequest>);
|
|
939
974
|
static readonly runtime: typeof proto3;
|
|
940
975
|
static readonly typeName = "micro.v1.mining.AdminGiftPreviewRequest";
|
|
@@ -1004,6 +1039,9 @@ export declare class AdminGift extends Message<AdminGift> {
|
|
|
1004
1039
|
totalPaid: string;
|
|
1005
1040
|
createdAt: string;
|
|
1006
1041
|
finishedAt: string;
|
|
1042
|
+
notes: {
|
|
1043
|
+
[key: string]: string;
|
|
1044
|
+
};
|
|
1007
1045
|
constructor(data?: PartialMessage<AdminGift>);
|
|
1008
1046
|
static readonly runtime: typeof proto3;
|
|
1009
1047
|
static readonly typeName = "micro.v1.mining.AdminGift";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.AdminGiftsResponse = exports.AdminGiftsRequest = exports.AdminGiftResponse = exports.AdminGift = exports.AdminGiftConfirmRequest = exports.AdminGiftPreviewResponse = exports.AdminGiftRecipient = exports.AdminGiftPreviewRequest = exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = exports.AdminRiskFlag = void 0;
|
|
3
|
+
exports.AdminUserResponse = exports.AdminActionItem = exports.AdminUsersResponse = exports.AdminUserItem = exports.AdminUsersRequest = exports.AdminTasksResponse = exports.AdminTaskItem = exports.SetParameterRequest = exports.ParametersResponse = exports.ParameterItem = exports.AdminOverviewResponse = exports.AdminTopReferrersResponse = exports.AdminTopReferrersRequest = exports.AdminTopReferrer = exports.AdminTaskStat = exports.AdminSeries = exports.AdminSeriesPoint = exports.AdminMetric = exports.AdminOverviewRequest = exports.ConfigResponse = exports.ResolveCodeResponse = exports.ResolveCodeRequest = exports.EnrollResponse = exports.EnrollRequest = exports.UpdateSettingsRequest = exports.HistoryResponse = exports.HistoryDay = exports.HistoryItem = exports.HistoryRequest = exports.TeamResponse = exports.SetTeamRequest = exports.ClaimResponse = exports.ReferralListResponse = exports.ReferralListRequest = exports.ReferralItem = exports.TaskEventResponse = exports.TaskEventRequest = exports.TasksResponse = exports.MiningMeResponse = exports.MiningState = exports.MiningSettings = exports.TasksSummary = exports.TaskInfo = exports.TeamInfo = exports.TeamWeek = exports.TeamMember = exports.ReferralInfo = exports.HalvingInfo = exports.RateInfo = exports.SessionInfo = void 0;
|
|
4
|
+
exports.AdminGiftsResponse = exports.AdminGiftsRequest = exports.AdminGiftResponse = exports.AdminGift = exports.AdminGiftConfirmRequest = exports.AdminGiftPreviewResponse = exports.AdminGiftRecipient = exports.AdminGiftPreviewRequest = exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = exports.AdminRiskFlag = exports.AdminRiskSignal = exports.AdminTeamSeat = void 0;
|
|
5
5
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
6
6
|
const general_pb_js_1 = require("../general_pb.js");
|
|
7
7
|
class SessionInfo extends protobuf_1.Message {
|
|
@@ -1277,6 +1277,64 @@ class AdminTopReferrer extends protobuf_1.Message {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
exports.AdminTopReferrer = AdminTopReferrer;
|
|
1280
|
+
class AdminTopReferrersRequest extends protobuf_1.Message {
|
|
1281
|
+
page = 0;
|
|
1282
|
+
perPage = 0;
|
|
1283
|
+
constructor(data) {
|
|
1284
|
+
super();
|
|
1285
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1286
|
+
}
|
|
1287
|
+
static runtime = protobuf_1.proto3;
|
|
1288
|
+
static typeName = "micro.v1.mining.AdminTopReferrersRequest";
|
|
1289
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1290
|
+
{ no: 1, name: "page", kind: "scalar", T: 5 },
|
|
1291
|
+
{ no: 2, name: "per_page", kind: "scalar", T: 5 },
|
|
1292
|
+
]);
|
|
1293
|
+
static fromBinary(bytes, options) {
|
|
1294
|
+
return new AdminTopReferrersRequest().fromBinary(bytes, options);
|
|
1295
|
+
}
|
|
1296
|
+
static fromJson(jsonValue, options) {
|
|
1297
|
+
return new AdminTopReferrersRequest().fromJson(jsonValue, options);
|
|
1298
|
+
}
|
|
1299
|
+
static fromJsonString(jsonString, options) {
|
|
1300
|
+
return new AdminTopReferrersRequest().fromJsonString(jsonString, options);
|
|
1301
|
+
}
|
|
1302
|
+
static equals(a, b) {
|
|
1303
|
+
return protobuf_1.proto3.util.equals(AdminTopReferrersRequest, a, b);
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
exports.AdminTopReferrersRequest = AdminTopReferrersRequest;
|
|
1307
|
+
class AdminTopReferrersResponse extends protobuf_1.Message {
|
|
1308
|
+
status;
|
|
1309
|
+
data = [];
|
|
1310
|
+
hasMore = false;
|
|
1311
|
+
total = 0;
|
|
1312
|
+
constructor(data) {
|
|
1313
|
+
super();
|
|
1314
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1315
|
+
}
|
|
1316
|
+
static runtime = protobuf_1.proto3;
|
|
1317
|
+
static typeName = "micro.v1.mining.AdminTopReferrersResponse";
|
|
1318
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1319
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1320
|
+
{ no: 2, name: "data", kind: "message", T: AdminTopReferrer, repeated: true },
|
|
1321
|
+
{ no: 3, name: "has_more", kind: "scalar", T: 8 },
|
|
1322
|
+
{ no: 4, name: "total", kind: "scalar", T: 5 },
|
|
1323
|
+
]);
|
|
1324
|
+
static fromBinary(bytes, options) {
|
|
1325
|
+
return new AdminTopReferrersResponse().fromBinary(bytes, options);
|
|
1326
|
+
}
|
|
1327
|
+
static fromJson(jsonValue, options) {
|
|
1328
|
+
return new AdminTopReferrersResponse().fromJson(jsonValue, options);
|
|
1329
|
+
}
|
|
1330
|
+
static fromJsonString(jsonString, options) {
|
|
1331
|
+
return new AdminTopReferrersResponse().fromJsonString(jsonString, options);
|
|
1332
|
+
}
|
|
1333
|
+
static equals(a, b) {
|
|
1334
|
+
return protobuf_1.proto3.util.equals(AdminTopReferrersResponse, a, b);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
exports.AdminTopReferrersResponse = AdminTopReferrersResponse;
|
|
1280
1338
|
class AdminOverviewResponse extends protobuf_1.Message {
|
|
1281
1339
|
status;
|
|
1282
1340
|
metrics = [];
|
|
@@ -1409,6 +1467,7 @@ class AdminTaskItem extends protobuf_1.Message {
|
|
|
1409
1467
|
active = false;
|
|
1410
1468
|
sort = 0;
|
|
1411
1469
|
completions7d = 0;
|
|
1470
|
+
titles = {};
|
|
1412
1471
|
constructor(data) {
|
|
1413
1472
|
super();
|
|
1414
1473
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1427,6 +1486,7 @@ class AdminTaskItem extends protobuf_1.Message {
|
|
|
1427
1486
|
{ no: 9, name: "active", kind: "scalar", T: 8 },
|
|
1428
1487
|
{ no: 10, name: "sort", kind: "scalar", T: 5 },
|
|
1429
1488
|
{ no: 11, name: "completions_7d", kind: "scalar", T: 5 },
|
|
1489
|
+
{ no: 12, name: "titles", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
|
|
1430
1490
|
]);
|
|
1431
1491
|
static fromBinary(bytes, options) {
|
|
1432
1492
|
return new AdminTaskItem().fromBinary(bytes, options);
|
|
@@ -2010,6 +2070,7 @@ class AdminSetTaskRequest extends protobuf_1.Message {
|
|
|
2010
2070
|
titleEn = "";
|
|
2011
2071
|
maxCount;
|
|
2012
2072
|
sort;
|
|
2073
|
+
titles = {};
|
|
2013
2074
|
constructor(data) {
|
|
2014
2075
|
super();
|
|
2015
2076
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -2024,6 +2085,7 @@ class AdminSetTaskRequest extends protobuf_1.Message {
|
|
|
2024
2085
|
{ no: 5, name: "title_en", kind: "scalar", T: 9 },
|
|
2025
2086
|
{ no: 6, name: "max_count", kind: "scalar", T: 5, opt: true },
|
|
2026
2087
|
{ no: 7, name: "sort", kind: "scalar", T: 5, opt: true },
|
|
2088
|
+
{ no: 8, name: "titles", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
|
|
2027
2089
|
]);
|
|
2028
2090
|
static fromBinary(bytes, options) {
|
|
2029
2091
|
return new AdminSetTaskRequest().fromBinary(bytes, options);
|
|
@@ -2044,6 +2106,7 @@ class AdminGiftPreviewRequest extends protobuf_1.Message {
|
|
|
2044
2106
|
allMiners = false;
|
|
2045
2107
|
amount = "";
|
|
2046
2108
|
note = "";
|
|
2109
|
+
notes = {};
|
|
2047
2110
|
constructor(data) {
|
|
2048
2111
|
super();
|
|
2049
2112
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -2055,6 +2118,7 @@ class AdminGiftPreviewRequest extends protobuf_1.Message {
|
|
|
2055
2118
|
{ no: 2, name: "all_miners", kind: "scalar", T: 8 },
|
|
2056
2119
|
{ no: 3, name: "amount", kind: "scalar", T: 9 },
|
|
2057
2120
|
{ no: 4, name: "note", kind: "scalar", T: 9 },
|
|
2121
|
+
{ no: 5, name: "notes", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
|
|
2058
2122
|
]);
|
|
2059
2123
|
static fromBinary(bytes, options) {
|
|
2060
2124
|
return new AdminGiftPreviewRequest().fromBinary(bytes, options);
|
|
@@ -2186,6 +2250,7 @@ class AdminGift extends protobuf_1.Message {
|
|
|
2186
2250
|
totalPaid = "";
|
|
2187
2251
|
createdAt = "";
|
|
2188
2252
|
finishedAt = "";
|
|
2253
|
+
notes = {};
|
|
2189
2254
|
constructor(data) {
|
|
2190
2255
|
super();
|
|
2191
2256
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -2205,6 +2270,7 @@ class AdminGift extends protobuf_1.Message {
|
|
|
2205
2270
|
{ no: 10, name: "total_paid", kind: "scalar", T: 9 },
|
|
2206
2271
|
{ no: 11, name: "created_at", kind: "scalar", T: 9 },
|
|
2207
2272
|
{ no: 12, name: "finished_at", kind: "scalar", T: 9 },
|
|
2273
|
+
{ no: 13, name: "notes", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
|
|
2208
2274
|
]);
|
|
2209
2275
|
static fromBinary(bytes, options) {
|
|
2210
2276
|
return new AdminGift().fromBinary(bytes, options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_pb.js";
|
|
2
|
-
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, AdminSetTaskRequest, AdminTasksResponse, AdminUserResponse, AdminUsersRequest, AdminUsersResponse, ClaimResponse, ConfigResponse, EnrollRequest, EnrollResponse, HistoryRequest, HistoryResponse, MiningMeResponse, ParametersResponse, ReferralListRequest, ReferralListResponse, ResolveCodeRequest, ResolveCodeResponse, SetParameterRequest, SetTeamRequest, TaskEventRequest, TaskEventResponse, TasksResponse, TeamResponse, UpdateSettingsRequest } from "./mining_messages_pb.js";
|
|
2
|
+
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, AdminSetTaskRequest, AdminTasksResponse, AdminTopReferrersRequest, AdminTopReferrersResponse, AdminUserResponse, AdminUsersRequest, AdminUsersResponse, ClaimResponse, ConfigResponse, EnrollRequest, EnrollResponse, HistoryRequest, HistoryResponse, MiningMeResponse, ParametersResponse, ReferralListRequest, ReferralListResponse, ResolveCodeRequest, ResolveCodeResponse, SetParameterRequest, SetTeamRequest, TaskEventRequest, TaskEventResponse, TasksResponse, TeamResponse, UpdateSettingsRequest } from "./mining_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
export declare const PMiningService: {
|
|
5
5
|
readonly typeName: "micro.v1.mining.PMiningService";
|
|
@@ -100,6 +100,12 @@ export declare const PMiningService: {
|
|
|
100
100
|
readonly O: typeof AdminOverviewResponse;
|
|
101
101
|
readonly kind: MethodKind.ServerStreaming;
|
|
102
102
|
};
|
|
103
|
+
readonly adminTopReferrers: {
|
|
104
|
+
readonly name: "AdminTopReferrers";
|
|
105
|
+
readonly I: typeof AdminTopReferrersRequest;
|
|
106
|
+
readonly O: typeof AdminTopReferrersResponse;
|
|
107
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
108
|
+
};
|
|
103
109
|
readonly adminParameters: {
|
|
104
110
|
readonly name: "AdminParameters";
|
|
105
111
|
readonly I: typeof EmptyRequest;
|
|
@@ -103,6 +103,12 @@ exports.PMiningService = {
|
|
|
103
103
|
O: mining_messages_pb_js_1.AdminOverviewResponse,
|
|
104
104
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
105
105
|
},
|
|
106
|
+
adminTopReferrers: {
|
|
107
|
+
name: "AdminTopReferrers",
|
|
108
|
+
I: mining_messages_pb_js_1.AdminTopReferrersRequest,
|
|
109
|
+
O: mining_messages_pb_js_1.AdminTopReferrersResponse,
|
|
110
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
111
|
+
},
|
|
106
112
|
adminParameters: {
|
|
107
113
|
name: "AdminParameters",
|
|
108
114
|
I: general_pb_js_1.EmptyRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "@grpc/grpc-js";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_nest";
|
|
4
|
-
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, AdminSetTaskRequest, AdminTasksResponse, AdminUserResponse, AdminUsersRequest, AdminUsersResponse, ClaimResponse, ConfigResponse, EnrollRequest, EnrollResponse, HistoryRequest, HistoryResponse, MiningMeResponse, ParametersResponse, ReferralListRequest, ReferralListResponse, ResolveCodeRequest, ResolveCodeResponse, SetParameterRequest, SetTeamRequest, TaskEventRequest, TaskEventResponse, TasksResponse, TeamResponse, UpdateSettingsRequest } from "./mining_messages_nest";
|
|
4
|
+
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, AdminSetTaskRequest, AdminTasksResponse, AdminTopReferrersRequest, AdminTopReferrersResponse, AdminUserResponse, AdminUsersRequest, AdminUsersResponse, ClaimResponse, ConfigResponse, EnrollRequest, EnrollResponse, HistoryRequest, HistoryResponse, MiningMeResponse, ParametersResponse, ReferralListRequest, ReferralListResponse, ResolveCodeRequest, ResolveCodeResponse, SetParameterRequest, SetTeamRequest, TaskEventRequest, TaskEventResponse, TasksResponse, TeamResponse, UpdateSettingsRequest } from "./mining_messages_nest";
|
|
5
5
|
export declare const protobufPackage = "micro.v1.mining";
|
|
6
6
|
export declare const MICRO_V1_MINING_PACKAGE_NAME = "micro.v1.mining";
|
|
7
7
|
export interface PMiningServiceClient {
|
|
@@ -21,6 +21,7 @@ export interface PMiningServiceClient {
|
|
|
21
21
|
resolveCode(request: ResolveCodeRequest, metadata?: Metadata): Observable<ResolveCodeResponse>;
|
|
22
22
|
config(request: EmptyRequest, metadata?: Metadata): Observable<ConfigResponse>;
|
|
23
23
|
adminOverview(request: AdminOverviewRequest, metadata?: Metadata): Observable<AdminOverviewResponse>;
|
|
24
|
+
adminTopReferrers(request: AdminTopReferrersRequest, metadata?: Metadata): Observable<AdminTopReferrersResponse>;
|
|
24
25
|
adminParameters(request: EmptyRequest, metadata?: Metadata): Observable<ParametersResponse>;
|
|
25
26
|
adminSetParameter(request: SetParameterRequest, metadata?: Metadata): Observable<ParametersResponse>;
|
|
26
27
|
adminTasks(request: EmptyRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
|
|
@@ -52,6 +53,7 @@ export interface PMiningServiceController {
|
|
|
52
53
|
resolveCode(request: ResolveCodeRequest, metadata?: Metadata): Observable<ResolveCodeResponse>;
|
|
53
54
|
config(request: EmptyRequest, metadata?: Metadata): Observable<ConfigResponse>;
|
|
54
55
|
adminOverview(request: AdminOverviewRequest, metadata?: Metadata): Observable<AdminOverviewResponse>;
|
|
56
|
+
adminTopReferrers(request: AdminTopReferrersRequest, metadata?: Metadata): Observable<AdminTopReferrersResponse>;
|
|
55
57
|
adminParameters(request: EmptyRequest, metadata?: Metadata): Observable<ParametersResponse>;
|
|
56
58
|
adminSetParameter(request: SetParameterRequest, metadata?: Metadata): Observable<ParametersResponse>;
|
|
57
59
|
adminTasks(request: EmptyRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
|
|
@@ -102,10 +102,23 @@ export interface SendNotificationRequest {
|
|
|
102
102
|
criteria: string;
|
|
103
103
|
title: string;
|
|
104
104
|
notificationMessage: SendNotificationRequest_NotificationMessage | undefined;
|
|
105
|
+
titles: {
|
|
106
|
+
[key: string]: string;
|
|
107
|
+
};
|
|
105
108
|
}
|
|
106
109
|
export interface SendNotificationRequest_NotificationMessage {
|
|
107
110
|
en: string;
|
|
108
111
|
tr: string;
|
|
112
|
+
es: string;
|
|
113
|
+
pt: string;
|
|
114
|
+
de: string;
|
|
115
|
+
ru: string;
|
|
116
|
+
id: string;
|
|
117
|
+
vi: string;
|
|
118
|
+
}
|
|
119
|
+
export interface SendNotificationRequest_TitlesEntry {
|
|
120
|
+
key: string;
|
|
121
|
+
value: string;
|
|
109
122
|
}
|
|
110
123
|
export interface SendUserPushRequest {
|
|
111
124
|
user_ids: string[];
|
|
@@ -120,11 +133,25 @@ export interface SendUserPushRequest {
|
|
|
120
133
|
collapse_id: string;
|
|
121
134
|
ttl_seconds: number;
|
|
122
135
|
priority: string;
|
|
136
|
+
titles: {
|
|
137
|
+
[key: string]: string;
|
|
138
|
+
};
|
|
139
|
+
bodies: {
|
|
140
|
+
[key: string]: string;
|
|
141
|
+
};
|
|
123
142
|
}
|
|
124
143
|
export interface SendUserPushRequest_DataEntry {
|
|
125
144
|
key: string;
|
|
126
145
|
value: string;
|
|
127
146
|
}
|
|
147
|
+
export interface SendUserPushRequest_TitlesEntry {
|
|
148
|
+
key: string;
|
|
149
|
+
value: string;
|
|
150
|
+
}
|
|
151
|
+
export interface SendUserPushRequest_BodiesEntry {
|
|
152
|
+
key: string;
|
|
153
|
+
value: string;
|
|
154
|
+
}
|
|
128
155
|
export interface SendChatMentionRequest {
|
|
129
156
|
user_ids: string[];
|
|
130
157
|
sender_username: string;
|
|
@@ -215,6 +215,9 @@ export declare class SendNotificationRequest extends Message<SendNotificationReq
|
|
|
215
215
|
criteria: string;
|
|
216
216
|
title: string;
|
|
217
217
|
notificationMessage?: SendNotificationRequest_NotificationMessage;
|
|
218
|
+
titles: {
|
|
219
|
+
[key: string]: string;
|
|
220
|
+
};
|
|
218
221
|
constructor(data?: PartialMessage<SendNotificationRequest>);
|
|
219
222
|
static readonly runtime: typeof proto3;
|
|
220
223
|
static readonly typeName = "micro.v1.notification.SendNotificationRequest";
|
|
@@ -227,6 +230,12 @@ export declare class SendNotificationRequest extends Message<SendNotificationReq
|
|
|
227
230
|
export declare class SendNotificationRequest_NotificationMessage extends Message<SendNotificationRequest_NotificationMessage> {
|
|
228
231
|
en: string;
|
|
229
232
|
tr: string;
|
|
233
|
+
es: string;
|
|
234
|
+
pt: string;
|
|
235
|
+
de: string;
|
|
236
|
+
ru: string;
|
|
237
|
+
id: string;
|
|
238
|
+
vi: string;
|
|
230
239
|
constructor(data?: PartialMessage<SendNotificationRequest_NotificationMessage>);
|
|
231
240
|
static readonly runtime: typeof proto3;
|
|
232
241
|
static readonly typeName = "micro.v1.notification.SendNotificationRequest.NotificationMessage";
|
|
@@ -249,6 +258,12 @@ export declare class SendUserPushRequest extends Message<SendUserPushRequest> {
|
|
|
249
258
|
collapseId: string;
|
|
250
259
|
ttlSeconds: number;
|
|
251
260
|
priority: string;
|
|
261
|
+
titles: {
|
|
262
|
+
[key: string]: string;
|
|
263
|
+
};
|
|
264
|
+
bodies: {
|
|
265
|
+
[key: string]: string;
|
|
266
|
+
};
|
|
252
267
|
constructor(data?: PartialMessage<SendUserPushRequest>);
|
|
253
268
|
static readonly runtime: typeof proto3;
|
|
254
269
|
static readonly typeName = "micro.v1.notification.SendUserPushRequest";
|
|
@@ -469,6 +469,7 @@ class SendNotificationRequest extends protobuf_1.Message {
|
|
|
469
469
|
criteria = "";
|
|
470
470
|
title = "";
|
|
471
471
|
notificationMessage;
|
|
472
|
+
titles = {};
|
|
472
473
|
constructor(data) {
|
|
473
474
|
super();
|
|
474
475
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -479,6 +480,7 @@ class SendNotificationRequest extends protobuf_1.Message {
|
|
|
479
480
|
{ no: 1, name: "criteria", kind: "scalar", T: 9 },
|
|
480
481
|
{ no: 2, name: "title", kind: "scalar", T: 9 },
|
|
481
482
|
{ no: 3, name: "notificationMessage", kind: "message", T: SendNotificationRequest_NotificationMessage },
|
|
483
|
+
{ no: 4, name: "titles", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
|
|
482
484
|
]);
|
|
483
485
|
static fromBinary(bytes, options) {
|
|
484
486
|
return new SendNotificationRequest().fromBinary(bytes, options);
|
|
@@ -497,6 +499,12 @@ exports.SendNotificationRequest = SendNotificationRequest;
|
|
|
497
499
|
class SendNotificationRequest_NotificationMessage extends protobuf_1.Message {
|
|
498
500
|
en = "";
|
|
499
501
|
tr = "";
|
|
502
|
+
es = "";
|
|
503
|
+
pt = "";
|
|
504
|
+
de = "";
|
|
505
|
+
ru = "";
|
|
506
|
+
id = "";
|
|
507
|
+
vi = "";
|
|
500
508
|
constructor(data) {
|
|
501
509
|
super();
|
|
502
510
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -506,6 +514,12 @@ class SendNotificationRequest_NotificationMessage extends protobuf_1.Message {
|
|
|
506
514
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
507
515
|
{ no: 1, name: "en", kind: "scalar", T: 9 },
|
|
508
516
|
{ no: 2, name: "tr", kind: "scalar", T: 9 },
|
|
517
|
+
{ no: 3, name: "es", kind: "scalar", T: 9 },
|
|
518
|
+
{ no: 4, name: "pt", kind: "scalar", T: 9 },
|
|
519
|
+
{ no: 5, name: "de", kind: "scalar", T: 9 },
|
|
520
|
+
{ no: 6, name: "ru", kind: "scalar", T: 9 },
|
|
521
|
+
{ no: 7, name: "id", kind: "scalar", T: 9 },
|
|
522
|
+
{ no: 8, name: "vi", kind: "scalar", T: 9 },
|
|
509
523
|
]);
|
|
510
524
|
static fromBinary(bytes, options) {
|
|
511
525
|
return new SendNotificationRequest_NotificationMessage().fromBinary(bytes, options);
|
|
@@ -532,6 +546,8 @@ class SendUserPushRequest extends protobuf_1.Message {
|
|
|
532
546
|
collapseId = "";
|
|
533
547
|
ttlSeconds = 0;
|
|
534
548
|
priority = "";
|
|
549
|
+
titles = {};
|
|
550
|
+
bodies = {};
|
|
535
551
|
constructor(data) {
|
|
536
552
|
super();
|
|
537
553
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -549,6 +565,8 @@ class SendUserPushRequest extends protobuf_1.Message {
|
|
|
549
565
|
{ no: 8, name: "collapse_id", kind: "scalar", T: 9 },
|
|
550
566
|
{ no: 9, name: "ttl_seconds", kind: "scalar", T: 5 },
|
|
551
567
|
{ no: 10, name: "priority", kind: "scalar", T: 9 },
|
|
568
|
+
{ no: 11, name: "titles", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
|
|
569
|
+
{ no: 12, name: "bodies", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
|
|
552
570
|
]);
|
|
553
571
|
static fromBinary(bytes, options) {
|
|
554
572
|
return new SendUserPushRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -413,6 +413,21 @@ message AdminTopReferrer {
|
|
|
413
413
|
string avatar_id = 6;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
+
message AdminTopReferrersRequest {
|
|
417
|
+
// 0-based.
|
|
418
|
+
int32 page = 1;
|
|
419
|
+
int32 per_page = 2;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
message AdminTopReferrersResponse {
|
|
423
|
+
ResponseStatus status = 1;
|
|
424
|
+
// Ranked, most referrals first; rank = page * per_page + index + 1.
|
|
425
|
+
repeated AdminTopReferrer data = 2;
|
|
426
|
+
bool has_more = 3;
|
|
427
|
+
// Referrers in the ranking (at most the list's cap).
|
|
428
|
+
int32 total = 4;
|
|
429
|
+
}
|
|
430
|
+
|
|
416
431
|
message AdminOverviewResponse {
|
|
417
432
|
ResponseStatus status = 1;
|
|
418
433
|
repeated AdminMetric metrics = 2;
|
|
@@ -457,6 +472,9 @@ message AdminTaskItem {
|
|
|
457
472
|
int32 sort = 10;
|
|
458
473
|
// Completions in the last 7 days (for the panel's context).
|
|
459
474
|
int32 completions_7d = 11;
|
|
475
|
+
// The title in the app's other languages (es, pt, de, ru, id, vi); one
|
|
476
|
+
// missing reads title_en.
|
|
477
|
+
map<string, string> titles = 12;
|
|
460
478
|
}
|
|
461
479
|
|
|
462
480
|
message AdminTasksResponse {
|
|
@@ -667,6 +685,10 @@ message AdminSetTaskRequest {
|
|
|
667
685
|
string title_en = 5;
|
|
668
686
|
optional int32 max_count = 6;
|
|
669
687
|
optional int32 sort = 7;
|
|
688
|
+
// The other languages' titles (es, pt, de, ru, id, vi). Any key sent
|
|
689
|
+
// replaces them all ('' = that language reads title_en); none sent
|
|
690
|
+
// leaves them as they are.
|
|
691
|
+
map<string, string> titles = 8;
|
|
670
692
|
}
|
|
671
693
|
|
|
672
694
|
// ---- admin gifts ------------------------------------------------------------
|
|
@@ -678,8 +700,13 @@ message AdminGiftPreviewRequest {
|
|
|
678
700
|
bool all_miners = 2;
|
|
679
701
|
// JR per person, at most the weekly limit.
|
|
680
702
|
string amount = 3;
|
|
681
|
-
// Why
|
|
703
|
+
// Why, optional ('' = no note). In the panel's log and the person's
|
|
704
|
+
// history; the push carries it too.
|
|
682
705
|
string note = 4;
|
|
706
|
+
// The note per app language (tr, en, es, pt, de, ru, id, vi), all
|
|
707
|
+
// optional: a language without one reads the English, then the Turkish,
|
|
708
|
+
// then `note`.
|
|
709
|
+
map<string, string> notes = 5;
|
|
683
710
|
}
|
|
684
711
|
|
|
685
712
|
message AdminGiftRecipient {
|
|
@@ -729,6 +756,8 @@ message AdminGift {
|
|
|
729
756
|
string total_paid = 10;
|
|
730
757
|
string created_at = 11;
|
|
731
758
|
string finished_at = 12;
|
|
759
|
+
// The note per language, as sent (see AdminGiftPreviewRequest).
|
|
760
|
+
map<string, string> notes = 13;
|
|
732
761
|
}
|
|
733
762
|
|
|
734
763
|
message AdminGiftResponse {
|
|
@@ -39,6 +39,8 @@ service PMiningService {
|
|
|
39
39
|
|
|
40
40
|
// Admin.
|
|
41
41
|
rpc AdminOverview(AdminOverviewRequest) returns(stream AdminOverviewResponse) {}
|
|
42
|
+
// The top referrers (the first 500), a page at a time.
|
|
43
|
+
rpc AdminTopReferrers(AdminTopReferrersRequest) returns(stream AdminTopReferrersResponse) {}
|
|
42
44
|
rpc AdminParameters(EmptyRequest) returns(stream ParametersResponse) {}
|
|
43
45
|
rpc AdminSetParameter(SetParameterRequest) returns(stream ParametersResponse) {}
|
|
44
46
|
rpc AdminTasks(EmptyRequest) returns(stream AdminTasksResponse) {}
|
|
@@ -125,12 +125,23 @@ message SendTestNotificationRequest {
|
|
|
125
125
|
|
|
126
126
|
message SendNotificationRequest {
|
|
127
127
|
string criteria = 1;
|
|
128
|
+
// The Turkish title (and every language's, before `titles`).
|
|
128
129
|
string title = 2;
|
|
130
|
+
// Body per app language; empty ones read the English, then the Turkish.
|
|
129
131
|
message NotificationMessage {
|
|
130
132
|
string en = 1;
|
|
131
133
|
string tr = 2;
|
|
134
|
+
string es = 3;
|
|
135
|
+
string pt = 4;
|
|
136
|
+
string de = 5;
|
|
137
|
+
string ru = 6;
|
|
138
|
+
string id = 7;
|
|
139
|
+
string vi = 8;
|
|
132
140
|
}
|
|
133
141
|
NotificationMessage notificationMessage = 3;
|
|
142
|
+
// Title per language (en, es, pt, de, ru, id, vi); one missing reads the
|
|
143
|
+
// English, then `title`.
|
|
144
|
+
map<string, string> titles = 4;
|
|
134
145
|
}
|
|
135
146
|
|
|
136
147
|
// Generic targeted push: one text per language, the same data for every
|
|
@@ -150,6 +161,10 @@ message SendUserPushRequest {
|
|
|
150
161
|
int32 ttl_seconds = 9;
|
|
151
162
|
// default | normal | high
|
|
152
163
|
string priority = 10;
|
|
164
|
+
// Language code (es, pt, de, ru, id, vi …) → text, for devices in the
|
|
165
|
+
// app's other languages; the _tr/_en fields above stay the fallback.
|
|
166
|
+
map<string, string> titles = 11;
|
|
167
|
+
map<string, string> bodies = 12;
|
|
153
168
|
}
|
|
154
169
|
|
|
155
170
|
// Targeted push for chat mentions (localized body built micro-side).
|