@xuda.io/account_module 1.2.2079 → 1.2.2080

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