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