jr-common-micro 1.1.95 → 1.1.97

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.
Files changed (38) hide show
  1. package/dist/proto/micro/v1/index.d.ts +2 -0
  2. package/dist/proto/micro/v1/index.js +3 -1
  3. package/dist/proto/micro/v1/mining/index.d.ts +3 -0
  4. package/dist/proto/micro/v1/mining/index.js +7 -0
  5. package/dist/proto/micro/v1/mining/mining_messages_nest.d.ts +270 -0
  6. package/dist/proto/micro/v1/mining/mining_messages_nest.js +5 -0
  7. package/dist/proto/micro/v1/mining/mining_messages_pb.d.ts +582 -0
  8. package/dist/proto/micro/v1/mining/mining_messages_pb.js +1280 -0
  9. package/dist/proto/micro/v1/mining/services_connect.d.ts +116 -0
  10. package/dist/proto/micro/v1/mining/services_connect.js +119 -0
  11. package/dist/proto/micro/v1/mining/services_nest.d.ts +48 -0
  12. package/dist/proto/micro/v1/mining/services_nest.js +41 -0
  13. package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +18 -0
  14. package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +22 -0
  15. package/dist/proto/micro/v1/notification/notification_messages_pb.js +44 -1
  16. package/dist/proto/micro/v1/notification/services_connect.d.ts +7 -1
  17. package/dist/proto/micro/v1/notification/services_connect.js +6 -0
  18. package/dist/proto/micro/v1/notification/services_nest.d.ts +3 -1
  19. package/dist/proto/micro/v1/notification/services_nest.js +1 -0
  20. package/dist/proto/micro/v1/support/index.d.ts +3 -0
  21. package/dist/proto/micro/v1/support/index.js +7 -0
  22. package/dist/proto/micro/v1/support/services_connect.d.ts +56 -0
  23. package/dist/proto/micro/v1/support/services_connect.js +59 -0
  24. package/dist/proto/micro/v1/support/services_nest.d.ts +28 -0
  25. package/dist/proto/micro/v1/support/services_nest.js +31 -0
  26. package/dist/proto/micro/v1/support/support_messages_nest.d.ts +70 -0
  27. package/dist/proto/micro/v1/support/support_messages_nest.js +5 -0
  28. package/dist/proto/micro/v1/support/support_messages_pb.d.ts +142 -0
  29. package/dist/proto/micro/v1/support/support_messages_pb.js +310 -0
  30. package/dist/utils/constants.d.ts +2 -0
  31. package/dist/utils/constants.js +3 -1
  32. package/package.json +1 -1
  33. package/proto/micro/v1/mining/mining_messages.proto +366 -0
  34. package/proto/micro/v1/mining/services.proto +45 -0
  35. package/proto/micro/v1/notification/notification_messages.proto +19 -0
  36. package/proto/micro/v1/notification/services.proto +3 -0
  37. package/proto/micro/v1/support/services.proto +24 -0
  38. package/proto/micro/v1/support/support_messages.proto +96 -0
@@ -4,10 +4,12 @@ export * as data from './data';
4
4
  export * as education from './education';
5
5
  export * as general_nest from './general_nest';
6
6
  export * as media from './media';
7
+ export * as mining from './mining';
7
8
  export * as news from './news';
8
9
  export * as notification from './notification';
9
10
  export * as portfolio from './portfolio';
10
11
  export * as puppeteer from './puppeteer';
11
12
  export * as subscription from './subscription';
13
+ export * as support from './support';
12
14
  export * as user from './user';
13
15
  export * as voice from './voice';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.voice = exports.user = exports.subscription = exports.puppeteer = exports.portfolio = exports.notification = exports.news = exports.media = exports.general_nest = exports.education = exports.data = exports.coin = exports.chat = void 0;
3
+ exports.voice = exports.user = exports.support = exports.subscription = exports.puppeteer = exports.portfolio = exports.notification = exports.news = exports.mining = exports.media = exports.general_nest = exports.education = exports.data = exports.coin = exports.chat = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  exports.chat = tslib_1.__importStar(require("./chat"));
6
6
  exports.coin = tslib_1.__importStar(require("./coin"));
@@ -8,10 +8,12 @@ exports.data = tslib_1.__importStar(require("./data"));
8
8
  exports.education = tslib_1.__importStar(require("./education"));
9
9
  exports.general_nest = tslib_1.__importStar(require("./general_nest"));
10
10
  exports.media = tslib_1.__importStar(require("./media"));
11
+ exports.mining = tslib_1.__importStar(require("./mining"));
11
12
  exports.news = tslib_1.__importStar(require("./news"));
12
13
  exports.notification = tslib_1.__importStar(require("./notification"));
13
14
  exports.portfolio = tslib_1.__importStar(require("./portfolio"));
14
15
  exports.puppeteer = tslib_1.__importStar(require("./puppeteer"));
15
16
  exports.subscription = tslib_1.__importStar(require("./subscription"));
17
+ exports.support = tslib_1.__importStar(require("./support"));
16
18
  exports.user = tslib_1.__importStar(require("./user"));
17
19
  exports.voice = tslib_1.__importStar(require("./voice"));
@@ -0,0 +1,3 @@
1
+ export * as mining_messages_nest from './mining_messages_nest';
2
+ export * as services_connect from './services_connect';
3
+ export * as services_nest from './services_nest';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.services_nest = exports.services_connect = exports.mining_messages_nest = void 0;
4
+ const tslib_1 = require("tslib");
5
+ exports.mining_messages_nest = tslib_1.__importStar(require("./mining_messages_nest"));
6
+ exports.services_connect = tslib_1.__importStar(require("./services_connect"));
7
+ exports.services_nest = tslib_1.__importStar(require("./services_nest"));
@@ -0,0 +1,270 @@
1
+ import { PaginationMetaResult, ResponseStatus } from "../general_nest";
2
+ export declare const protobufPackage = "micro.v1.mining";
3
+ export interface SessionInfo {
4
+ id: string;
5
+ started_at: string;
6
+ ends_at: string;
7
+ closed_at: string;
8
+ earned: string;
9
+ settled_at: string;
10
+ projected: string;
11
+ open: boolean;
12
+ }
13
+ export interface RateInfo {
14
+ base: string;
15
+ badge: string;
16
+ badge_base: string;
17
+ own_tasks: string;
18
+ team_share: string;
19
+ full_team: string;
20
+ full_team_ready: number;
21
+ full_team_size: number;
22
+ multiplier: string;
23
+ cap: string;
24
+ hourly: string;
25
+ }
26
+ export interface HalvingInfo {
27
+ users: number;
28
+ next_threshold: number;
29
+ next_base: string;
30
+ halvings: number;
31
+ }
32
+ export interface ReferralInfo {
33
+ code: string;
34
+ link: string;
35
+ pending: string;
36
+ pending_hourly: string;
37
+ l1_share: string;
38
+ l2_share: string;
39
+ l1_count: number;
40
+ l1_mining: number;
41
+ l2_count: number;
42
+ l2_mining: number;
43
+ earned_l1: string;
44
+ earned_l2: string;
45
+ earned_gifts: string;
46
+ earned_total: string;
47
+ referred_by_username: string;
48
+ }
49
+ export interface TeamMember {
50
+ user_id: string;
51
+ username: string;
52
+ avatar_url: string;
53
+ tasks_today: number;
54
+ task_multiplier: string;
55
+ contribution: string;
56
+ mining: boolean;
57
+ full_team_ready: boolean;
58
+ active_from: string;
59
+ active_until: string;
60
+ nudge_available_at: string;
61
+ }
62
+ export interface TeamInfo {
63
+ members: TeamMember[];
64
+ size: number;
65
+ locked: boolean;
66
+ locked_until: string;
67
+ share: string;
68
+ full_team_bonus: string;
69
+ full_team_min_tasks: number;
70
+ }
71
+ export interface TaskInfo {
72
+ id: string;
73
+ kind: string;
74
+ title: string;
75
+ multiplier: string;
76
+ max_count: number;
77
+ done_count: number;
78
+ done: boolean;
79
+ expires_at: string;
80
+ event: string;
81
+ standard_only: boolean;
82
+ }
83
+ export interface TasksSummary {
84
+ done: number;
85
+ total: number;
86
+ next_id: string;
87
+ next_title: string;
88
+ next_multiplier: string;
89
+ potential_multiplier: string;
90
+ }
91
+ export interface MiningSettings {
92
+ notify_session_end: boolean;
93
+ }
94
+ export interface MiningState {
95
+ user_id: string;
96
+ balance: string;
97
+ total_mined: string;
98
+ total_claimed: string;
99
+ session?: SessionInfo | undefined;
100
+ rate: RateInfo | undefined;
101
+ halving: HalvingInfo | undefined;
102
+ referral: ReferralInfo | undefined;
103
+ team: TeamInfo | undefined;
104
+ tasks: TasksSummary | undefined;
105
+ settings: MiningSettings | undefined;
106
+ server_time: string;
107
+ welcome_pending: boolean;
108
+ ended_session?: SessionInfo | undefined;
109
+ sessions_completed: number;
110
+ streak_days: number;
111
+ inactive: boolean;
112
+ }
113
+ export interface MiningMeResponse {
114
+ status: ResponseStatus | undefined;
115
+ data?: MiningState | undefined;
116
+ }
117
+ export interface TasksResponse {
118
+ status: ResponseStatus | undefined;
119
+ daily: TaskInfo[];
120
+ weekly: TaskInfo[];
121
+ once: TaskInfo[];
122
+ summary?: TasksSummary | undefined;
123
+ rate?: RateInfo | undefined;
124
+ }
125
+ export interface TaskEventRequest {
126
+ event: string;
127
+ payload: string;
128
+ }
129
+ export interface TaskEventResponse {
130
+ status: ResponseStatus | undefined;
131
+ completed_task_id: string;
132
+ data?: MiningState | undefined;
133
+ }
134
+ export interface ReferralItem {
135
+ user_id: string;
136
+ username: string;
137
+ avatar_url: string;
138
+ level: number;
139
+ verified: boolean;
140
+ mining: boolean;
141
+ sessions_completed: number;
142
+ gift_status: string;
143
+ referral_count: number;
144
+ hourly_contribution: string;
145
+ in_team: boolean;
146
+ team_eligible: boolean;
147
+ joined_at: string;
148
+ }
149
+ export interface ReferralListRequest {
150
+ page: number;
151
+ per_page: number;
152
+ filter: string;
153
+ search: string;
154
+ level: number;
155
+ }
156
+ export interface ReferralListResponse {
157
+ status: ResponseStatus | undefined;
158
+ data: ReferralItem[];
159
+ pagination?: PaginationMetaResult | undefined;
160
+ }
161
+ export interface ClaimResponse {
162
+ status: ResponseStatus | undefined;
163
+ claimed: string;
164
+ data?: MiningState | undefined;
165
+ }
166
+ export interface SetTeamRequest {
167
+ user_ids: string[];
168
+ }
169
+ export interface TeamResponse {
170
+ status: ResponseStatus | undefined;
171
+ data?: TeamInfo | undefined;
172
+ rate?: RateInfo | undefined;
173
+ }
174
+ export interface HistoryRequest {
175
+ page: number;
176
+ per_page: number;
177
+ filter: string;
178
+ }
179
+ export interface HistoryItem {
180
+ id: string;
181
+ kind: string;
182
+ amount: string;
183
+ created_at: string;
184
+ detail: string;
185
+ }
186
+ export interface HistoryDay {
187
+ date: string;
188
+ amount: string;
189
+ }
190
+ export interface HistoryResponse {
191
+ status: ResponseStatus | undefined;
192
+ data: HistoryItem[];
193
+ pagination?: PaginationMetaResult | undefined;
194
+ week: HistoryDay[];
195
+ }
196
+ export interface UpdateSettingsRequest {
197
+ settings: MiningSettings | undefined;
198
+ }
199
+ export interface EnrollRequest {
200
+ user_id: string;
201
+ referral_code: string;
202
+ device_hash: string;
203
+ }
204
+ export interface EnrollResponse {
205
+ status: ResponseStatus | undefined;
206
+ referral_attached: boolean;
207
+ reason: string;
208
+ }
209
+ export interface ResolveCodeRequest {
210
+ code: string;
211
+ }
212
+ export interface ResolveCodeResponse {
213
+ status: ResponseStatus | undefined;
214
+ valid: boolean;
215
+ username: string;
216
+ avatar_url: string;
217
+ gift: string;
218
+ }
219
+ export interface AdminOverviewRequest {
220
+ period: string;
221
+ }
222
+ export interface AdminMetric {
223
+ key: string;
224
+ value: string;
225
+ change: string;
226
+ }
227
+ export interface AdminSeriesPoint {
228
+ date: string;
229
+ value: string;
230
+ }
231
+ export interface AdminSeries {
232
+ key: string;
233
+ points: AdminSeriesPoint[];
234
+ }
235
+ export interface AdminTaskStat {
236
+ task_id: string;
237
+ title: string;
238
+ completion_rate: string;
239
+ change: string;
240
+ }
241
+ export interface AdminTopReferrer {
242
+ user_id: string;
243
+ username: string;
244
+ referrals: number;
245
+ active_rate: string;
246
+ earned: string;
247
+ }
248
+ export interface AdminOverviewResponse {
249
+ status: ResponseStatus | undefined;
250
+ metrics: AdminMetric[];
251
+ series: AdminSeries[];
252
+ tasks: AdminTaskStat[];
253
+ top_referrers: AdminTopReferrer[];
254
+ suspicious_accounts: number;
255
+ }
256
+ export interface ParameterItem {
257
+ key: string;
258
+ value: string;
259
+ updated_at: string;
260
+ updated_by: string;
261
+ }
262
+ export interface ParametersResponse {
263
+ status: ResponseStatus | undefined;
264
+ data: ParameterItem[];
265
+ }
266
+ export interface SetParameterRequest {
267
+ key: string;
268
+ value: string;
269
+ }
270
+ export declare const MICRO_V1_MINING_PACKAGE_NAME = "micro.v1.mining";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MICRO_V1_MINING_PACKAGE_NAME = exports.protobufPackage = void 0;
4
+ exports.protobufPackage = "micro.v1.mining";
5
+ exports.MICRO_V1_MINING_PACKAGE_NAME = "micro.v1.mining";