jr-common-micro 1.1.94 → 1.1.96

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 (30) hide show
  1. package/dist/proto/micro/v1/chat/chat_messages_nest.d.ts +4 -0
  2. package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +4 -0
  3. package/dist/proto/micro/v1/chat/chat_messages_pb.js +8 -0
  4. package/dist/proto/micro/v1/index.d.ts +1 -0
  5. package/dist/proto/micro/v1/index.js +2 -1
  6. package/dist/proto/micro/v1/mining/index.d.ts +3 -0
  7. package/dist/proto/micro/v1/mining/index.js +7 -0
  8. package/dist/proto/micro/v1/mining/mining_messages_nest.d.ts +270 -0
  9. package/dist/proto/micro/v1/mining/mining_messages_nest.js +5 -0
  10. package/dist/proto/micro/v1/mining/mining_messages_pb.d.ts +582 -0
  11. package/dist/proto/micro/v1/mining/mining_messages_pb.js +1280 -0
  12. package/dist/proto/micro/v1/mining/services_connect.d.ts +116 -0
  13. package/dist/proto/micro/v1/mining/services_connect.js +119 -0
  14. package/dist/proto/micro/v1/mining/services_nest.d.ts +48 -0
  15. package/dist/proto/micro/v1/mining/services_nest.js +41 -0
  16. package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +18 -0
  17. package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +22 -0
  18. package/dist/proto/micro/v1/notification/notification_messages_pb.js +44 -1
  19. package/dist/proto/micro/v1/notification/services_connect.d.ts +7 -1
  20. package/dist/proto/micro/v1/notification/services_connect.js +6 -0
  21. package/dist/proto/micro/v1/notification/services_nest.d.ts +3 -1
  22. package/dist/proto/micro/v1/notification/services_nest.js +1 -0
  23. package/dist/utils/constants.d.ts +1 -0
  24. package/dist/utils/constants.js +2 -1
  25. package/package.json +1 -1
  26. package/proto/micro/v1/chat/chat_messages.proto +10 -0
  27. package/proto/micro/v1/mining/mining_messages.proto +366 -0
  28. package/proto/micro/v1/mining/services.proto +45 -0
  29. package/proto/micro/v1/notification/notification_messages.proto +19 -0
  30. package/proto/micro/v1/notification/services.proto +3 -0
@@ -27,6 +27,8 @@ export interface ChatGroupDto {
27
27
  voice_policy: string;
28
28
  voice_reactions: boolean;
29
29
  list_visibility: string;
30
+ access: string;
31
+ theme: string;
30
32
  }
31
33
  export interface ChatGroupListResponse {
32
34
  status: ResponseStatus | undefined;
@@ -280,6 +282,8 @@ export interface GroupUpsertRequest {
280
282
  voice_policy: string;
281
283
  voice_reactions: string;
282
284
  list_visibility: string;
285
+ access: string;
286
+ theme: string;
283
287
  }
284
288
  export interface SanctionRequest {
285
289
  username: string;
@@ -28,6 +28,8 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
28
28
  voicePolicy: string;
29
29
  voiceReactions: boolean;
30
30
  listVisibility: string;
31
+ access: string;
32
+ theme: string;
31
33
  constructor(data?: PartialMessage<ChatGroupDto>);
32
34
  static readonly runtime: typeof proto3;
33
35
  static readonly typeName = "micro.v1.chat.ChatGroupDto";
@@ -569,6 +571,8 @@ export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
569
571
  voicePolicy: string;
570
572
  voiceReactions: string;
571
573
  listVisibility: string;
574
+ access: string;
575
+ theme: string;
572
576
  constructor(data?: PartialMessage<GroupUpsertRequest>);
573
577
  static readonly runtime: typeof proto3;
574
578
  static readonly typeName = "micro.v1.chat.GroupUpsertRequest";
@@ -31,6 +31,8 @@ class ChatGroupDto extends protobuf_1.Message {
31
31
  voicePolicy = "";
32
32
  voiceReactions = false;
33
33
  listVisibility = "";
34
+ access = "";
35
+ theme = "";
34
36
  constructor(data) {
35
37
  super();
36
38
  protobuf_1.proto3.util.initPartial(data, this);
@@ -64,6 +66,8 @@ class ChatGroupDto extends protobuf_1.Message {
64
66
  { no: 24, name: "voice_policy", kind: "scalar", T: 9 },
65
67
  { no: 25, name: "voice_reactions", kind: "scalar", T: 8 },
66
68
  { no: 26, name: "list_visibility", kind: "scalar", T: 9 },
69
+ { no: 27, name: "access", kind: "scalar", T: 9 },
70
+ { no: 28, name: "theme", kind: "scalar", T: 9 },
67
71
  ]);
68
72
  static fromBinary(bytes, options) {
69
73
  return new ChatGroupDto().fromBinary(bytes, options);
@@ -1233,6 +1237,8 @@ class GroupUpsertRequest extends protobuf_1.Message {
1233
1237
  voicePolicy = "";
1234
1238
  voiceReactions = "";
1235
1239
  listVisibility = "";
1240
+ access = "";
1241
+ theme = "";
1236
1242
  constructor(data) {
1237
1243
  super();
1238
1244
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1254,6 +1260,8 @@ class GroupUpsertRequest extends protobuf_1.Message {
1254
1260
  { no: 12, name: "voice_policy", kind: "scalar", T: 9 },
1255
1261
  { no: 13, name: "voice_reactions", kind: "scalar", T: 9 },
1256
1262
  { no: 14, name: "list_visibility", kind: "scalar", T: 9 },
1263
+ { no: 15, name: "access", kind: "scalar", T: 9 },
1264
+ { no: 16, name: "theme", kind: "scalar", T: 9 },
1257
1265
  ]);
1258
1266
  static fromBinary(bytes, options) {
1259
1267
  return new GroupUpsertRequest().fromBinary(bytes, options);
@@ -4,6 +4,7 @@ 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';
@@ -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.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,6 +8,7 @@ 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"));
@@ -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";