@xuda.io/drive_module 1.1.1468 → 1.1.1470

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.mjs CHANGED
@@ -1288,7 +1288,7 @@ export const upload_drive_file = async (req, job_id, headers = {}, file_obj) =>
1288
1288
  return { code: -400, data: err.message };
1289
1289
  }
1290
1290
  };
1291
- export const check_drive_file = async (req, job_id, headers, file_obj) => {
1291
+ const check_single_drive_file = async (req, job_id, headers, file_obj) => {
1292
1292
  const { type = 'file', drive_type, app_id, uid, file_path, folder_name } = req;
1293
1293
 
1294
1294
  let master_app_id;
@@ -1382,6 +1382,59 @@ export const check_drive_file = async (req, job_id, headers, file_obj) => {
1382
1382
  };
1383
1383
  };
1384
1384
 
1385
+ export const check_drive_files = async (req, job_id, headers, file_obj) => {
1386
+ const files = req.files ||
1387
+ req.file_paths?.map((curr_file_path) => ({
1388
+ file_path: curr_file_path,
1389
+ })) || [
1390
+ {
1391
+ file_path: req.file_path,
1392
+ folder_name: req.folder_name,
1393
+ type: req.type,
1394
+ },
1395
+ ];
1396
+
1397
+ const results = [];
1398
+
1399
+ for (const item of files) {
1400
+ results.push(
1401
+ await check_single_drive_file(
1402
+ {
1403
+ ...req,
1404
+ ...item,
1405
+ },
1406
+ job_id,
1407
+ headers,
1408
+ file_obj,
1409
+ ),
1410
+ );
1411
+ }
1412
+
1413
+ const duplicates = results.flatMap((item) => item?.duplicates || []);
1414
+ const has_duplicates = results.some((item) => item?.code < 0);
1415
+
1416
+ return {
1417
+ code: has_duplicates ? -764 : 764,
1418
+ data: has_duplicates ? 'one or more files exist' : 'ok',
1419
+ files: results,
1420
+ duplicates,
1421
+ };
1422
+ };
1423
+
1424
+ export const check_drive_file = async (req, job_id, headers, file_obj) => {
1425
+ const ret = await check_drive_files(req, job_id, headers, file_obj);
1426
+
1427
+ if (!ret.files?.length) {
1428
+ return {
1429
+ code: -764,
1430
+ data: 'no files to check',
1431
+ duplicates: [],
1432
+ };
1433
+ }
1434
+
1435
+ return ret.files[0];
1436
+ };
1437
+
1385
1438
  const ocr_drive_file = async (app_id, doc) => {
1386
1439
  const { drive_type, uid, file_path, originalname } = doc;
1387
1440
 
@@ -1546,35 +1599,40 @@ export const run_drive_pending_ocr = async () => {
1546
1599
  }
1547
1600
  };
1548
1601
 
1602
+ const _drive_size_cache = new Map();
1603
+ const _DRIVE_SIZE_TTL_MS = 30 * 60 * 1000;
1604
+
1549
1605
  export const get_drive_size = async (req) => {
1550
1606
  try {
1551
1607
  const { drive_type, app_id, uid } = req;
1552
- let size = 0;
1608
+ const cache_key = `${drive_type}|${app_id || ''}|${uid || ''}`;
1609
+ const cached = _drive_size_cache.get(cache_key);
1610
+ if (cached && Date.now() - cached.ts < _DRIVE_SIZE_TTL_MS) {
1611
+ return { code: 200, data: cached.size };
1612
+ }
1553
1613
 
1614
+ let size = 0;
1554
1615
  let app_id_master, directoryPath;
1555
1616
  switch (drive_type) {
1556
1617
  case 'user':
1557
1618
  directoryPath = '';
1558
-
1559
1619
  break;
1560
1620
  case 'workspace':
1561
1621
  directoryPath = '';
1562
1622
  app_id_master = await _common.get_project_app_id(app_id, true);
1563
1623
  break;
1564
-
1565
1624
  default:
1566
1625
  app_id_master = await _common.get_project_app_id(app_id, true);
1567
1626
  directoryPath = path.join(_conf[`${drive_type}_drive_path`], app_id_master, '/');
1568
-
1569
1627
  break;
1570
1628
  }
1571
1629
 
1572
1630
  size = await get_folder_size(directoryPath, drive_type, app_id_master, uid);
1573
1631
  if (drive_type === 'workspace') {
1574
- // calc datacenter
1575
1632
  size += await get_folder_size(directoryPath, drive_type, app_id);
1576
1633
  }
1577
1634
 
1635
+ _drive_size_cache.set(cache_key, { size, ts: Date.now() });
1578
1636
  return { code: 200, data: size };
1579
1637
  } catch (err) {
1580
1638
  return { code: -200, data: err.message };
@@ -1678,17 +1736,31 @@ const get_folder_size = async (dir, drive_type, app_id, uid) => {
1678
1736
  let totalSize = 0;
1679
1737
 
1680
1738
  const calculateSizeFs = async (dirPath) => {
1681
- const fsPromises = fs.promises;
1682
- const files = await fsPromises.readdir(dirPath);
1683
- for (let file of files) {
1684
- const filePath = path.join(dirPath, file);
1685
- const stat = await fsPromises.stat(filePath);
1686
- if (stat.isFile()) {
1687
- totalSize += stat.size;
1688
- } else if (stat.isDirectory()) {
1689
- await calculateSizeFs(filePath);
1739
+ let entries;
1740
+ try {
1741
+ entries = await fs.promises.readdir(dirPath, { withFileTypes: true });
1742
+ } catch (err) {
1743
+ return;
1744
+ }
1745
+ const subdirs = [];
1746
+ const file_stats = [];
1747
+ for (const entry of entries) {
1748
+ const childPath = path.join(dirPath, entry.name);
1749
+ if (entry.isDirectory()) {
1750
+ subdirs.push(childPath);
1751
+ } else if (entry.isFile()) {
1752
+ file_stats.push(
1753
+ fs.promises
1754
+ .stat(childPath)
1755
+ .then((s) => {
1756
+ totalSize += s.size;
1757
+ })
1758
+ .catch(() => {}),
1759
+ );
1690
1760
  }
1691
1761
  }
1762
+ await Promise.all(file_stats);
1763
+ await Promise.all(subdirs.map((d) => calculateSizeFs(d)));
1692
1764
  };
1693
1765
 
1694
1766
  const calculateSizeDocs = async (dirPath) => {
@@ -1938,11 +2010,22 @@ export const compile_javascript_program_in_studio_drive = async (req, job_id) =>
1938
2010
  content = ` export const css = true \n` + content;
1939
2011
  }
1940
2012
 
2013
+ const getLocalPackageName = (doc) => {
2014
+ const rawName = doc?._id || doc?.properties?.menuName || 'program';
2015
+ const safeName = String(rawName)
2016
+ .toLowerCase()
2017
+ .replace(/[^a-z0-9._-]+/g, '-')
2018
+ .replace(/^[._-]+|[._-]+$/g, '');
2019
+ const packageName = `xuda-js-program-${safeName || 'program'}`.slice(0, 214);
2020
+
2021
+ return packageName.replace(/[._-]+$/g, '') || 'xuda-js-program';
2022
+ };
2023
+
1941
2024
  const index_js = path.join(src, 'index.mjs');
1942
2025
  await fs_module.save_file(index_js, content);
1943
2026
 
1944
2027
  let packageJSON = {
1945
- name: doc.properties?.menuName || doc._id,
2028
+ name: getLocalPackageName(doc),
1946
2029
  version: '1.0.0',
1947
2030
  description: '',
1948
2031
  main: 'index.js',
@@ -1959,15 +2042,39 @@ export const compile_javascript_program_in_studio_drive = async (req, job_id) =>
1959
2042
 
1960
2043
  let devDependencies = packageJSON.devDependencies || {};
1961
2044
  let allDependencies = new Set();
2045
+ let externalImports = new Set();
2046
+
2047
+ const isUrlSpecifier = (specifier) => /^[a-z][a-z0-9+.-]*:/i.test(specifier) || specifier.startsWith('//');
2048
+
2049
+ const getPackageDependencyName = (specifier) => {
2050
+ if (!specifier) {
2051
+ return;
2052
+ }
2053
+
2054
+ if (isUrlSpecifier(specifier)) {
2055
+ externalImports.add(specifier);
2056
+ return;
2057
+ }
2058
+
2059
+ if (specifier.startsWith('.') || specifier.startsWith('/') || specifier.startsWith('#') || specifier.endsWith('.css')) {
2060
+ return;
2061
+ }
2062
+
2063
+ if (specifier.startsWith('@')) {
2064
+ const [scope, packageName] = specifier.split('/');
2065
+ return scope && packageName ? `${scope}/${packageName}` : undefined;
2066
+ }
2067
+
2068
+ return specifier.split('/')[0];
2069
+ };
1962
2070
 
1963
2071
  const extractDependencies = (fileContent, regex) => {
1964
2072
  const matches = [];
1965
2073
  let match;
2074
+ regex.lastIndex = 0;
1966
2075
  while ((match = regex.exec(fileContent)) !== null) {
1967
- let dep = match[1];
1968
- if (!dep.startsWith('.') && !dep.startsWith('/') && !dep.endsWith('.css')) {
1969
- if (dep.includes('/')) dep = dep.split('/')[0];
1970
-
2076
+ const dep = getPackageDependencyName(match[1]);
2077
+ if (dep) {
1971
2078
  matches.push(dep);
1972
2079
  }
1973
2080
  }
@@ -2009,6 +2116,7 @@ export default {
2009
2116
  name: "MyLibrary", // Global variable for UMD/IIFE formats
2010
2117
  },
2011
2118
  rollupOptions: {
2119
+ external: ${JSON.stringify(Array.from(externalImports))},
2012
2120
  output: {
2013
2121
  manualChunks(id) {
2014
2122
  if (id.includes("node_modules")) {
@@ -2168,10 +2276,10 @@ export const get_drive_files_workspace = async (req, job_id, headers, file_obj)
2168
2276
  req.drive_type = 'workspace';
2169
2277
  return await get_drive_files(req, job_id, headers, file_obj);
2170
2278
  };
2171
- export const get_drive_files_studio = async (req, job_id, headers, file_obj) => {
2279
+ export const get_drive_files_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2172
2280
  req.drive_type = 'studio';
2173
2281
  return await get_drive_files(req, job_id, headers, file_obj);
2174
- };
2282
+ });
2175
2283
  export const get_drive_files_user = async (req, job_id, headers, file_obj) => {
2176
2284
  req.drive_type = 'user';
2177
2285
  return await get_drive_files(req, job_id, headers, file_obj);
@@ -2181,10 +2289,10 @@ export const get_drive_file_info_workspace = async (req, job_id, headers, file_o
2181
2289
  req.drive_type = 'workspace';
2182
2290
  return await get_drive_file_info(req, job_id, headers, file_obj);
2183
2291
  };
2184
- export const get_drive_file_info_studio = async (req, job_id, headers, file_obj) => {
2292
+ export const get_drive_file_info_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2185
2293
  req.drive_type = 'studio';
2186
2294
  return await get_drive_file_info(req, job_id, headers, file_obj);
2187
- };
2295
+ });
2188
2296
  export const get_drive_file_info_user = async (req, job_id, headers, file_obj) => {
2189
2297
  req.drive_type = 'user';
2190
2298
  return await get_drive_file_info(req, job_id, headers, file_obj);
@@ -2194,10 +2302,10 @@ export const delete_drive_files_workspace = async (req, job_id, headers, file_ob
2194
2302
  req.drive_type = 'workspace';
2195
2303
  return await delete_drive_files(req, job_id, headers, file_obj);
2196
2304
  };
2197
- export const delete_drive_files_studio = async (req, job_id, headers, file_obj) => {
2305
+ export const delete_drive_files_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2198
2306
  req.drive_type = 'studio';
2199
2307
  return await delete_drive_files(req, job_id, headers, file_obj);
2200
- };
2308
+ });
2201
2309
  export const delete_drive_files_user = async (req, job_id, headers, file_obj) => {
2202
2310
  req.drive_type = 'user';
2203
2311
  return await delete_drive_files(req, job_id, headers, file_obj);
@@ -2207,10 +2315,10 @@ export const extract_drive_file_workspace = async (req, job_id, headers, file_ob
2207
2315
  req.drive_type = 'workspace';
2208
2316
  return await extract_drive_file(req, job_id, headers, file_obj);
2209
2317
  };
2210
- export const extract_drive_file_studio = async (req, job_id, headers, file_obj) => {
2318
+ export const extract_drive_file_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2211
2319
  req.drive_type = 'studio';
2212
2320
  return await extract_drive_file(req, job_id, headers, file_obj);
2213
- };
2321
+ });
2214
2322
  export const extract_drive_file_user = async (req, job_id, headers, file_obj) => {
2215
2323
  req.drive_type = 'user';
2216
2324
  return await extract_drive_file(req, job_id, headers, file_obj);
@@ -2220,10 +2328,10 @@ export const upload_drive_file_workspace = async (req, job_id, headers, file_obj
2220
2328
  req.drive_type = 'workspace';
2221
2329
  return await upload_drive_file(req, job_id, headers, file_obj);
2222
2330
  };
2223
- export const upload_drive_file_studio = async (req, job_id, headers, file_obj) => {
2331
+ export const upload_drive_file_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2224
2332
  req.drive_type = 'studio';
2225
2333
  return await upload_drive_file(req, job_id, headers, file_obj);
2226
- };
2334
+ });
2227
2335
  export const upload_drive_file_user = async (req, job_id, headers, file_obj) => {
2228
2336
  req.drive_type = 'user';
2229
2337
  return await upload_drive_file(req, job_id, headers, file_obj);
@@ -2233,10 +2341,10 @@ export const update_drive_file_workspace = async (req, job_id, headers, file_obj
2233
2341
  req.drive_type = 'workspace';
2234
2342
  return await update_drive_file(req, job_id, headers, file_obj);
2235
2343
  };
2236
- export const update_drive_file_studio = async (req, job_id, headers, file_obj) => {
2344
+ export const update_drive_file_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2237
2345
  req.drive_type = 'studio';
2238
2346
  return await update_drive_file(req, job_id, headers, file_obj);
2239
- };
2347
+ });
2240
2348
  export const update_drive_file_user = async (req, job_id, headers, file_obj) => {
2241
2349
  req.drive_type = 'user';
2242
2350
  return await update_drive_file(req, job_id, headers, file_obj);
@@ -2246,10 +2354,10 @@ export const create_drive_folder_workspace = async (req, job_id, headers, file_o
2246
2354
  req.drive_type = 'workspace';
2247
2355
  return await create_drive_folder(req, job_id, headers, file_obj);
2248
2356
  };
2249
- export const create_drive_folder_studio = async (req, job_id, headers, file_obj) => {
2357
+ export const create_drive_folder_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2250
2358
  req.drive_type = 'studio';
2251
2359
  return await create_drive_folder(req, job_id, headers, file_obj);
2252
- };
2360
+ });
2253
2361
  export const create_drive_folder_user = async (req, job_id, headers, file_obj) => {
2254
2362
  req.drive_type = 'user';
2255
2363
  return await create_drive_folder(req, job_id, headers, file_obj);
@@ -2259,10 +2367,10 @@ export const rename_drive_file_workspace = async (req, job_id, headers, file_obj
2259
2367
  req.drive_type = 'workspace';
2260
2368
  return await rename_drive_file(req, job_id, headers, file_obj);
2261
2369
  };
2262
- export const rename_drive_file_studio = async (req, job_id, headers, file_obj) => {
2370
+ export const rename_drive_file_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2263
2371
  req.drive_type = 'studio';
2264
2372
  return await rename_drive_file(req, job_id, headers, file_obj);
2265
- };
2373
+ });
2266
2374
  export const rename_drive_file_user = async (req, job_id, headers, file_obj) => {
2267
2375
  req.drive_type = 'user';
2268
2376
  return await rename_drive_file(req, job_id, headers, file_obj);
@@ -2272,10 +2380,10 @@ export const rename_drive_folder_workspace = async (req, job_id, headers, file_o
2272
2380
  req.drive_type = 'workspace';
2273
2381
  return await rename_drive_folder(req, job_id, headers, file_obj);
2274
2382
  };
2275
- export const rename_drive_folder_studio = async (req, job_id, headers, file_obj) => {
2383
+ export const rename_drive_folder_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2276
2384
  req.drive_type = 'studio';
2277
2385
  return await rename_drive_folder(req, job_id, headers, file_obj);
2278
- };
2386
+ });
2279
2387
  export const rename_drive_folder_user = async (req, job_id, headers, file_obj) => {
2280
2388
  req.drive_type = 'user';
2281
2389
  return await rename_drive_folder(req, job_id, headers, file_obj);
@@ -2285,10 +2393,10 @@ export const update_drive_file_sharing_mode_workspace = async (req, job_id, head
2285
2393
  req.drive_type = 'workspace';
2286
2394
  return await update_drive_file_sharing_mode(req, job_id, headers, file_obj);
2287
2395
  };
2288
- export const update_drive_file_sharing_mode_studio = async (req, job_id, headers, file_obj) => {
2396
+ export const update_drive_file_sharing_mode_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2289
2397
  req.drive_type = 'studio';
2290
2398
  return await update_drive_file_sharing_mode(req, job_id, headers, file_obj);
2291
- };
2399
+ });
2292
2400
  export const update_drive_file_sharing_mode_user = async (req, job_id, headers, file_obj) => {
2293
2401
  req.drive_type = 'user';
2294
2402
  return await update_drive_file_sharing_mode(req, job_id, headers, file_obj);
@@ -2298,10 +2406,10 @@ export const delete_file_bulk_workspace = async (req, job_id, headers, file_obj)
2298
2406
  req.drive_type = 'workspace';
2299
2407
  return await delete_file_bulk(req, job_id, headers, file_obj);
2300
2408
  };
2301
- export const delete_file_bulk_studio = async (req, job_id, headers, file_obj) => {
2409
+ export const delete_file_bulk_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2302
2410
  req.drive_type = 'studio';
2303
2411
  return await delete_file_bulk(req, job_id, headers, file_obj);
2304
- };
2412
+ });
2305
2413
  export const delete_file_bulk_user = async (req, job_id, headers, file_obj) => {
2306
2414
  req.drive_type = 'user';
2307
2415
  return await delete_file_bulk(req, job_id, headers, file_obj);
@@ -2311,23 +2419,35 @@ export const check_drive_file_workspace = async (req, job_id, headers, file_obj)
2311
2419
  req.drive_type = 'workspace';
2312
2420
  return await check_drive_file(req, job_id, headers, file_obj);
2313
2421
  };
2314
- export const check_drive_file_studio = async (req, job_id, headers, file_obj) => {
2422
+ export const check_drive_files_workspace = async (req, job_id, headers, file_obj) => {
2423
+ req.drive_type = 'workspace';
2424
+ return await check_drive_files(req, job_id, headers, file_obj);
2425
+ };
2426
+ export const check_drive_file_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2315
2427
  req.drive_type = 'studio';
2316
2428
  return await check_drive_file(req, job_id, headers, file_obj);
2317
- };
2429
+ });
2430
+ export const check_drive_files_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2431
+ req.drive_type = 'studio';
2432
+ return await check_drive_files(req, job_id, headers, file_obj);
2433
+ });
2318
2434
  export const check_drive_file_user = async (req, job_id, headers, file_obj) => {
2319
2435
  req.drive_type = 'user';
2320
2436
  return await check_drive_file(req, job_id, headers, file_obj);
2321
2437
  };
2438
+ export const check_drive_files_user = async (req, job_id, headers, file_obj) => {
2439
+ req.drive_type = 'user';
2440
+ return await check_drive_files(req, job_id, headers, file_obj);
2441
+ };
2322
2442
 
2323
2443
  export const update_drive_file_tags_workspace = async (req, job_id, headers, file_obj) => {
2324
2444
  req.drive_type = 'workspace';
2325
2445
  return await update_drive_file_tags(req, job_id, headers, file_obj);
2326
2446
  };
2327
- export const update_drive_file_tags_studio = async (req, job_id, headers, file_obj) => {
2447
+ export const update_drive_file_tags_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2328
2448
  req.drive_type = 'studio';
2329
2449
  return await update_drive_file_tags(req, job_id, headers, file_obj);
2330
- };
2450
+ });
2331
2451
  export const update_drive_file_tags_user = async (req, job_id, headers, file_obj) => {
2332
2452
  req.drive_type = 'user';
2333
2453
  return await update_drive_file_tags(req, job_id, headers, file_obj);
@@ -2337,10 +2457,10 @@ export const update_drive_addons_workspace = async (req, job_id, headers, file_o
2337
2457
  req.drive_type = 'workspace';
2338
2458
  return await update_drive_addons(req, job_id, headers, file_obj);
2339
2459
  };
2340
- export const update_drive_addons_studio = async (req, job_id, headers, file_obj) => {
2460
+ export const update_drive_addons_studio = _common.location_sensitive(async (req, job_id, headers, file_obj) => {
2341
2461
  req.drive_type = 'studio';
2342
2462
  return await update_drive_addons(req, job_id, headers, file_obj);
2343
- };
2463
+ });
2344
2464
  export const update_drive_addons_user = async (req, job_id, headers, file_obj) => {
2345
2465
  req.drive_type = 'user';
2346
2466
  return await update_drive_addons(req, job_id, headers, file_obj);
package/index_ms.mjs CHANGED
@@ -61,6 +61,10 @@ export const upload_drive_file = async function (...args) {
61
61
  return await broker.send_to_queue("upload_drive_file", ...args);
62
62
  };
63
63
 
64
+ export const check_drive_files = async function (...args) {
65
+ return await broker.send_to_queue("check_drive_files", ...args);
66
+ };
67
+
64
68
  export const check_drive_file = async function (...args) {
65
69
  return await broker.send_to_queue("check_drive_file", ...args);
66
70
  };
@@ -229,14 +233,26 @@ export const check_drive_file_workspace = async function (...args) {
229
233
  return await broker.send_to_queue("check_drive_file_workspace", ...args);
230
234
  };
231
235
 
236
+ export const check_drive_files_workspace = async function (...args) {
237
+ return await broker.send_to_queue("check_drive_files_workspace", ...args);
238
+ };
239
+
232
240
  export const check_drive_file_studio = async function (...args) {
233
241
  return await broker.send_to_queue("check_drive_file_studio", ...args);
234
242
  };
235
243
 
244
+ export const check_drive_files_studio = async function (...args) {
245
+ return await broker.send_to_queue("check_drive_files_studio", ...args);
246
+ };
247
+
236
248
  export const check_drive_file_user = async function (...args) {
237
249
  return await broker.send_to_queue("check_drive_file_user", ...args);
238
250
  };
239
251
 
252
+ export const check_drive_files_user = async function (...args) {
253
+ return await broker.send_to_queue("check_drive_files_user", ...args);
254
+ };
255
+
240
256
  export const update_drive_file_tags_workspace = async function (...args) {
241
257
  return await broker.send_to_queue("update_drive_file_tags_workspace", ...args);
242
258
  };
package/index_msa.mjs CHANGED
@@ -61,6 +61,10 @@ export const upload_drive_file = function (...args) {
61
61
  broker.send_to_queue_async("upload_drive_file", ...args);
62
62
  };
63
63
 
64
+ export const check_drive_files = function (...args) {
65
+ broker.send_to_queue_async("check_drive_files", ...args);
66
+ };
67
+
64
68
  export const check_drive_file = function (...args) {
65
69
  broker.send_to_queue_async("check_drive_file", ...args);
66
70
  };
@@ -229,14 +233,26 @@ export const check_drive_file_workspace = function (...args) {
229
233
  broker.send_to_queue_async("check_drive_file_workspace", ...args);
230
234
  };
231
235
 
236
+ export const check_drive_files_workspace = function (...args) {
237
+ broker.send_to_queue_async("check_drive_files_workspace", ...args);
238
+ };
239
+
232
240
  export const check_drive_file_studio = function (...args) {
233
241
  broker.send_to_queue_async("check_drive_file_studio", ...args);
234
242
  };
235
243
 
244
+ export const check_drive_files_studio = function (...args) {
245
+ broker.send_to_queue_async("check_drive_files_studio", ...args);
246
+ };
247
+
236
248
  export const check_drive_file_user = function (...args) {
237
249
  broker.send_to_queue_async("check_drive_file_user", ...args);
238
250
  };
239
251
 
252
+ export const check_drive_files_user = function (...args) {
253
+ broker.send_to_queue_async("check_drive_files_user", ...args);
254
+ };
255
+
240
256
  export const update_drive_file_tags_workspace = function (...args) {
241
257
  broker.send_to_queue_async("update_drive_file_tags_workspace", ...args);
242
258
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1468",
3
+ "version": "1.1.1470",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {