@xuda.io/account_module 1.2.1994 → 1.2.1996
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/index_ms.mjs +84 -78
- package/package.json +1 -1
package/index_ms.mjs
CHANGED
|
@@ -1,309 +1,315 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// =====================================================
|
|
2
|
+
// Queue wrapper – generated from index.mjs
|
|
3
|
+
// Queue target : account_module
|
|
4
|
+
// =====================================================
|
|
5
|
+
|
|
6
|
+
const send_to_queue = function(ms_method, ...args) {
|
|
7
|
+
global[`_${module_name}_ch`].sendToQueue(
|
|
3
8
|
'account_module',
|
|
4
9
|
Buffer.from(
|
|
5
10
|
JSON.stringify({
|
|
6
|
-
|
|
11
|
+
ms_method,
|
|
7
12
|
data: args,
|
|
8
13
|
})
|
|
9
14
|
)
|
|
10
15
|
);
|
|
11
16
|
};
|
|
12
17
|
|
|
13
|
-
//
|
|
18
|
+
// You must define this somewhere before using these wrappers:
|
|
19
|
+
const module_name = 'account_module';
|
|
14
20
|
|
|
15
21
|
export const update_account_info = async function (...args) {
|
|
16
|
-
return await send_to_queue
|
|
22
|
+
return await send_to_queue("update_account_info", ...args);
|
|
17
23
|
};
|
|
18
24
|
|
|
19
25
|
export const update_account_preferences = async function (...args) {
|
|
20
|
-
return await send_to_queue
|
|
26
|
+
return await send_to_queue("update_account_preferences", ...args);
|
|
21
27
|
};
|
|
22
28
|
|
|
23
29
|
export const save_admin_presets = async function (...args) {
|
|
24
|
-
return await send_to_queue
|
|
30
|
+
return await send_to_queue("save_admin_presets", ...args);
|
|
25
31
|
};
|
|
26
32
|
|
|
27
33
|
export const increment_account_usage = async function (...args) {
|
|
28
|
-
return await send_to_queue
|
|
34
|
+
return await send_to_queue("increment_account_usage", ...args);
|
|
29
35
|
};
|
|
30
36
|
|
|
31
37
|
export const get_account_data = async function (...args) {
|
|
32
|
-
return await send_to_queue
|
|
38
|
+
return await send_to_queue("get_account_data", ...args);
|
|
33
39
|
};
|
|
34
40
|
|
|
35
41
|
export const get_account_projects = async function (...args) {
|
|
36
|
-
return await send_to_queue
|
|
42
|
+
return await send_to_queue("get_account_projects", ...args);
|
|
37
43
|
};
|
|
38
44
|
|
|
39
45
|
export const get_account_datacenters = async function (...args) {
|
|
40
|
-
return await send_to_queue
|
|
46
|
+
return await send_to_queue("get_account_datacenters", ...args);
|
|
41
47
|
};
|
|
42
48
|
|
|
43
49
|
export const get_account_deployments = async function (...args) {
|
|
44
|
-
return await send_to_queue
|
|
50
|
+
return await send_to_queue("get_account_deployments", ...args);
|
|
45
51
|
};
|
|
46
52
|
|
|
47
53
|
export const get_account_instances = async function (...args) {
|
|
48
|
-
return await send_to_queue
|
|
54
|
+
return await send_to_queue("get_account_instances", ...args);
|
|
49
55
|
};
|
|
50
56
|
|
|
51
57
|
export const get_account_info = async function (...args) {
|
|
52
|
-
return await send_to_queue
|
|
58
|
+
return await send_to_queue("get_account_info", ...args);
|
|
53
59
|
};
|
|
54
60
|
|
|
55
61
|
export const get_active_account_profile_info = async function (...args) {
|
|
56
|
-
return await send_to_queue
|
|
62
|
+
return await send_to_queue("get_active_account_profile_info", ...args);
|
|
57
63
|
};
|
|
58
64
|
|
|
59
65
|
export const get_account_name = async function (...args) {
|
|
60
|
-
return await send_to_queue
|
|
66
|
+
return await send_to_queue("get_account_name", ...args);
|
|
61
67
|
};
|
|
62
68
|
|
|
63
69
|
export const account_validate_username = async function (...args) {
|
|
64
|
-
return await send_to_queue
|
|
70
|
+
return await send_to_queue("account_validate_username", ...args);
|
|
65
71
|
};
|
|
66
72
|
|
|
67
73
|
export const verify_account = async function (...args) {
|
|
68
|
-
return await send_to_queue
|
|
74
|
+
return await send_to_queue("verify_account", ...args);
|
|
69
75
|
};
|
|
70
76
|
|
|
71
77
|
export const validate_user_plan = async function (...args) {
|
|
72
|
-
return await send_to_queue
|
|
78
|
+
return await send_to_queue("validate_user_plan", ...args);
|
|
73
79
|
};
|
|
74
80
|
|
|
75
81
|
export const get_hosting_plan = async function (...args) {
|
|
76
|
-
return await send_to_queue
|
|
82
|
+
return await send_to_queue("get_hosting_plan", ...args);
|
|
77
83
|
};
|
|
78
84
|
|
|
79
85
|
export const get_cpu = async function (...args) {
|
|
80
|
-
return await send_to_queue
|
|
86
|
+
return await send_to_queue("get_cpu", ...args);
|
|
81
87
|
};
|
|
82
88
|
|
|
83
89
|
export const add_account_log_util = async function (...args) {
|
|
84
|
-
return await send_to_queue
|
|
90
|
+
return await send_to_queue("add_account_log_util", ...args);
|
|
85
91
|
};
|
|
86
92
|
|
|
87
93
|
export const save_ssh_key = async function (...args) {
|
|
88
|
-
return await send_to_queue
|
|
94
|
+
return await send_to_queue("save_ssh_key", ...args);
|
|
89
95
|
};
|
|
90
96
|
|
|
91
97
|
export const delete_ssh_key = async function (...args) {
|
|
92
|
-
return await send_to_queue
|
|
98
|
+
return await send_to_queue("delete_ssh_key", ...args);
|
|
93
99
|
};
|
|
94
100
|
|
|
95
101
|
export const get_ssh_keys = async function (...args) {
|
|
96
|
-
return await send_to_queue
|
|
102
|
+
return await send_to_queue("get_ssh_keys", ...args);
|
|
97
103
|
};
|
|
98
104
|
|
|
99
105
|
export const search_users = async function (...args) {
|
|
100
|
-
return await send_to_queue
|
|
106
|
+
return await send_to_queue("search_users", ...args);
|
|
101
107
|
};
|
|
102
108
|
|
|
103
109
|
export const find_contact_duplicates = async function (...args) {
|
|
104
|
-
return await send_to_queue
|
|
110
|
+
return await send_to_queue("find_contact_duplicates", ...args);
|
|
105
111
|
};
|
|
106
112
|
|
|
107
113
|
export const merge_contact = async function (...args) {
|
|
108
|
-
return await send_to_queue
|
|
114
|
+
return await send_to_queue("merge_contact", ...args);
|
|
109
115
|
};
|
|
110
116
|
|
|
111
117
|
export const get_contact_info = async function (...args) {
|
|
112
|
-
return await send_to_queue
|
|
118
|
+
return await send_to_queue("get_contact_info", ...args);
|
|
113
119
|
};
|
|
114
120
|
|
|
115
121
|
export const get_pending_contact_out = async function (...args) {
|
|
116
|
-
return await send_to_queue
|
|
122
|
+
return await send_to_queue("get_pending_contact_out", ...args);
|
|
117
123
|
};
|
|
118
124
|
|
|
119
125
|
export const get_pending_contact_in = async function (...args) {
|
|
120
|
-
return await send_to_queue
|
|
126
|
+
return await send_to_queue("get_pending_contact_in", ...args);
|
|
121
127
|
};
|
|
122
128
|
|
|
123
129
|
export const get_pending_share_contact_in = async function (...args) {
|
|
124
|
-
return await send_to_queue
|
|
130
|
+
return await send_to_queue("get_pending_share_contact_in", ...args);
|
|
125
131
|
};
|
|
126
132
|
|
|
127
133
|
export const update_contact = async function (...args) {
|
|
128
|
-
return await send_to_queue
|
|
134
|
+
return await send_to_queue("update_contact", ...args);
|
|
129
135
|
};
|
|
130
136
|
|
|
131
137
|
export const get_account_rt_info = async function (...args) {
|
|
132
|
-
return await send_to_queue
|
|
138
|
+
return await send_to_queue("get_account_rt_info", ...args);
|
|
133
139
|
};
|
|
134
140
|
|
|
135
141
|
export const validate_account_topup = async function (...args) {
|
|
136
|
-
return await send_to_queue
|
|
142
|
+
return await send_to_queue("validate_account_topup", ...args);
|
|
137
143
|
};
|
|
138
144
|
|
|
139
145
|
export const create_account_oauth_link = async function (...args) {
|
|
140
|
-
return await send_to_queue
|
|
146
|
+
return await send_to_queue("create_account_oauth_link", ...args);
|
|
141
147
|
};
|
|
142
148
|
|
|
143
149
|
export const get_default_project_account_doc = async function (...args) {
|
|
144
|
-
return await send_to_queue
|
|
150
|
+
return await send_to_queue("get_default_project_account_doc", ...args);
|
|
145
151
|
};
|
|
146
152
|
|
|
147
153
|
export const get_account_default_project_id = async function (...args) {
|
|
148
|
-
return await send_to_queue
|
|
154
|
+
return await send_to_queue("get_account_default_project_id", ...args);
|
|
149
155
|
};
|
|
150
156
|
|
|
151
157
|
export const get_user_name = async function (...args) {
|
|
152
|
-
return await send_to_queue
|
|
158
|
+
return await send_to_queue("get_user_name", ...args);
|
|
153
159
|
};
|
|
154
160
|
|
|
155
161
|
export const get_user_card = async function (...args) {
|
|
156
|
-
return await send_to_queue
|
|
162
|
+
return await send_to_queue("get_user_card", ...args);
|
|
157
163
|
};
|
|
158
164
|
|
|
159
165
|
export const onboarding_completed = async function (...args) {
|
|
160
|
-
return await send_to_queue
|
|
166
|
+
return await send_to_queue("onboarding_completed", ...args);
|
|
161
167
|
};
|
|
162
168
|
|
|
163
169
|
export const ts_contact = async function (...args) {
|
|
164
|
-
return await send_to_queue
|
|
170
|
+
return await send_to_queue("ts_contact", ...args);
|
|
165
171
|
};
|
|
166
172
|
|
|
167
173
|
export const get_account_ai_usage = async function (...args) {
|
|
168
|
-
return await send_to_queue
|
|
174
|
+
return await send_to_queue("get_account_ai_usage", ...args);
|
|
169
175
|
};
|
|
170
176
|
|
|
171
177
|
export const add_contact = async function (...args) {
|
|
172
|
-
return await send_to_queue
|
|
178
|
+
return await send_to_queue("add_contact", ...args);
|
|
173
179
|
};
|
|
174
180
|
|
|
175
181
|
export const get_contacts = async function (...args) {
|
|
176
|
-
return await send_to_queue
|
|
182
|
+
return await send_to_queue("get_contacts", ...args);
|
|
177
183
|
};
|
|
178
184
|
|
|
179
185
|
export const archive_contact = async function (...args) {
|
|
180
|
-
return await send_to_queue
|
|
186
|
+
return await send_to_queue("archive_contact", ...args);
|
|
181
187
|
};
|
|
182
188
|
|
|
183
189
|
export const delete_contact = async function (...args) {
|
|
184
|
-
return await send_to_queue
|
|
190
|
+
return await send_to_queue("delete_contact", ...args);
|
|
185
191
|
};
|
|
186
192
|
|
|
187
193
|
export const unarchive_contact = async function (...args) {
|
|
188
|
-
return await send_to_queue
|
|
194
|
+
return await send_to_queue("unarchive_contact", ...args);
|
|
189
195
|
};
|
|
190
196
|
|
|
191
197
|
export const unfriend_contact = async function (...args) {
|
|
192
|
-
return await send_to_queue
|
|
198
|
+
return await send_to_queue("unfriend_contact", ...args);
|
|
193
199
|
};
|
|
194
200
|
|
|
195
201
|
export const pin_contact = async function (...args) {
|
|
196
|
-
return await send_to_queue
|
|
202
|
+
return await send_to_queue("pin_contact", ...args);
|
|
197
203
|
};
|
|
198
204
|
|
|
199
205
|
export const set_contact_deep_research = async function (...args) {
|
|
200
|
-
return await send_to_queue
|
|
206
|
+
return await send_to_queue("set_contact_deep_research", ...args);
|
|
201
207
|
};
|
|
202
208
|
|
|
203
209
|
export const unpin_contact = async function (...args) {
|
|
204
|
-
return await send_to_queue
|
|
210
|
+
return await send_to_queue("unpin_contact", ...args);
|
|
205
211
|
};
|
|
206
212
|
|
|
207
213
|
export const not_spam_contact = async function (...args) {
|
|
208
|
-
return await send_to_queue
|
|
214
|
+
return await send_to_queue("not_spam_contact", ...args);
|
|
209
215
|
};
|
|
210
216
|
|
|
211
217
|
export const generate_contact_avatar = async function (...args) {
|
|
212
|
-
return await send_to_queue
|
|
218
|
+
return await send_to_queue("generate_contact_avatar", ...args);
|
|
213
219
|
};
|
|
214
220
|
|
|
215
221
|
export const set_deep_research_contact = async function (...args) {
|
|
216
|
-
return await send_to_queue
|
|
222
|
+
return await send_to_queue("set_deep_research_contact", ...args);
|
|
217
223
|
};
|
|
218
224
|
|
|
219
225
|
export const unset_deep_research_contact = async function (...args) {
|
|
220
|
-
return await send_to_queue
|
|
226
|
+
return await send_to_queue("unset_deep_research_contact", ...args);
|
|
221
227
|
};
|
|
222
228
|
|
|
223
229
|
export const get_pending_share_profile_in = async function (...args) {
|
|
224
|
-
return await send_to_queue
|
|
230
|
+
return await send_to_queue("get_pending_share_profile_in", ...args);
|
|
225
231
|
};
|
|
226
232
|
|
|
227
233
|
export const get_account_profile_info = async function (...args) {
|
|
228
|
-
return await send_to_queue
|
|
234
|
+
return await send_to_queue("get_account_profile_info", ...args);
|
|
229
235
|
};
|
|
230
236
|
|
|
231
237
|
export const get_account_profiles = async function (...args) {
|
|
232
|
-
return await send_to_queue
|
|
238
|
+
return await send_to_queue("get_account_profiles", ...args);
|
|
233
239
|
};
|
|
234
240
|
|
|
235
241
|
export const archive_account_profile = async function (...args) {
|
|
236
|
-
return await send_to_queue
|
|
242
|
+
return await send_to_queue("archive_account_profile", ...args);
|
|
237
243
|
};
|
|
238
244
|
|
|
239
245
|
export const delete_account_profile = async function (...args) {
|
|
240
|
-
return await send_to_queue
|
|
246
|
+
return await send_to_queue("delete_account_profile", ...args);
|
|
241
247
|
};
|
|
242
248
|
|
|
243
249
|
export const unarchive_account_profile = async function (...args) {
|
|
244
|
-
return await send_to_queue
|
|
250
|
+
return await send_to_queue("unarchive_account_profile", ...args);
|
|
245
251
|
};
|
|
246
252
|
|
|
247
253
|
export const create_account_profile = async function (...args) {
|
|
248
|
-
return await send_to_queue
|
|
254
|
+
return await send_to_queue("create_account_profile", ...args);
|
|
249
255
|
};
|
|
250
256
|
|
|
251
257
|
export const update_account_profile = async function (...args) {
|
|
252
|
-
return await send_to_queue
|
|
258
|
+
return await send_to_queue("update_account_profile", ...args);
|
|
253
259
|
};
|
|
254
260
|
|
|
255
261
|
export const update_entity_account_profiles = async function (...args) {
|
|
256
|
-
return await send_to_queue
|
|
262
|
+
return await send_to_queue("update_entity_account_profiles", ...args);
|
|
257
263
|
};
|
|
258
264
|
|
|
259
265
|
export const get_contact = async function (...args) {
|
|
260
|
-
return await send_to_queue
|
|
266
|
+
return await send_to_queue("get_contact", ...args);
|
|
261
267
|
};
|
|
262
268
|
|
|
263
269
|
export const save_contact = async function (...args) {
|
|
264
|
-
return await send_to_queue
|
|
270
|
+
return await send_to_queue("save_contact", ...args);
|
|
265
271
|
};
|
|
266
272
|
|
|
267
273
|
export const find_contact_query = async function (...args) {
|
|
268
|
-
return await send_to_queue
|
|
274
|
+
return await send_to_queue("find_contact_query", ...args);
|
|
269
275
|
};
|
|
270
276
|
|
|
271
277
|
export const delete_xuda_cache = async function (...args) {
|
|
272
|
-
return await send_to_queue
|
|
278
|
+
return await send_to_queue("delete_xuda_cache", ...args);
|
|
273
279
|
};
|
|
274
280
|
|
|
275
281
|
export const save_xuda_cache = async function (...args) {
|
|
276
|
-
return await send_to_queue
|
|
282
|
+
return await send_to_queue("save_xuda_cache", ...args);
|
|
277
283
|
};
|
|
278
284
|
|
|
279
285
|
export const get_xuda_cache = async function (...args) {
|
|
280
|
-
return await send_to_queue
|
|
286
|
+
return await send_to_queue("get_xuda_cache", ...args);
|
|
281
287
|
};
|
|
282
288
|
|
|
283
289
|
export const save_cache_hit = async function (...args) {
|
|
284
|
-
return await send_to_queue
|
|
290
|
+
return await send_to_queue("save_cache_hit", ...args);
|
|
285
291
|
};
|
|
286
292
|
|
|
287
293
|
export const record_ai_usage = async function (...args) {
|
|
288
|
-
return await send_to_queue
|
|
294
|
+
return await send_to_queue("record_ai_usage", ...args);
|
|
289
295
|
};
|
|
290
296
|
|
|
291
297
|
export const record_ai_credit = async function (...args) {
|
|
292
|
-
return await send_to_queue
|
|
298
|
+
return await send_to_queue("record_ai_credit", ...args);
|
|
293
299
|
};
|
|
294
300
|
|
|
295
301
|
export const add_ai_credits_to_active_accounts = async function (...args) {
|
|
296
|
-
return await send_to_queue
|
|
302
|
+
return await send_to_queue("add_ai_credits_to_active_accounts", ...args);
|
|
297
303
|
};
|
|
298
304
|
|
|
299
305
|
export const archive_expire_ai_credits = async function (...args) {
|
|
300
|
-
return await send_to_queue
|
|
306
|
+
return await send_to_queue("archive_expire_ai_credits", ...args);
|
|
301
307
|
};
|
|
302
308
|
|
|
303
309
|
export const read_accounts_emails = async function (...args) {
|
|
304
|
-
return await send_to_queue
|
|
310
|
+
return await send_to_queue("read_accounts_emails", ...args);
|
|
305
311
|
};
|
|
306
312
|
|
|
307
313
|
export const process_accounts_emails = async function (...args) {
|
|
308
|
-
return await send_to_queue
|
|
314
|
+
return await send_to_queue("process_accounts_emails", ...args);
|
|
309
315
|
};
|