@cyberskill/shared 1.61.0 → 1.63.0

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 (84) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +99 -68
  2. package/dist/_tsup-dts-rollup.d.ts +99 -68
  3. package/dist/cli.cjs +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/configs/graphql/graphql-codegen.cjs +1 -1
  6. package/dist/configs/graphql/graphql-codegen.js +1 -1
  7. package/dist/configs/graphql/index.cjs +1 -1
  8. package/dist/configs/graphql/index.js +1 -1
  9. package/dist/configs/index.cjs +1 -1
  10. package/dist/configs/index.js +1 -1
  11. package/dist/configs/vitest/react/unit.cjs +1 -1
  12. package/dist/configs/vitest/react/unit.js +1 -1
  13. package/dist/constants/common-nodejs.cjs +1 -0
  14. package/dist/constants/common-nodejs.d.cts +1 -0
  15. package/dist/constants/common-nodejs.d.ts +1 -0
  16. package/dist/constants/common-nodejs.js +1 -0
  17. package/dist/constants/common.cjs +1 -1
  18. package/dist/constants/common.d.cts +0 -1
  19. package/dist/constants/common.d.ts +0 -1
  20. package/dist/constants/common.js +1 -1
  21. package/dist/constants/index.cjs +1 -1
  22. package/dist/constants/index.d.cts +1 -1
  23. package/dist/constants/index.d.ts +1 -1
  24. package/dist/constants/index.js +1 -1
  25. package/dist/constants/path.cjs +1 -1
  26. package/dist/constants/path.js +1 -1
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.d.cts +10 -8
  29. package/dist/index.d.ts +10 -8
  30. package/dist/index.js +1 -1
  31. package/dist/react/apollo-client.cjs +1 -1
  32. package/dist/react/apollo-client.js +1 -1
  33. package/dist/react/apollo-error.cjs +1 -1
  34. package/dist/react/apollo-error.js +1 -1
  35. package/dist/react/apollo-error.module.scss +2 -8
  36. package/dist/react/index.cjs +1 -1
  37. package/dist/react/index.js +1 -1
  38. package/dist/react/next-intl.cjs +1 -1
  39. package/dist/react/next-intl.js +1 -1
  40. package/dist/react/storage.cjs +1 -1
  41. package/dist/react/storage.js +1 -1
  42. package/dist/typescript/command.cjs +1 -1
  43. package/dist/typescript/command.d.cts +2 -3
  44. package/dist/typescript/command.d.ts +2 -3
  45. package/dist/typescript/command.js +1 -1
  46. package/dist/typescript/index.cjs +1 -1
  47. package/dist/typescript/index.d.cts +5 -4
  48. package/dist/typescript/index.d.ts +5 -4
  49. package/dist/typescript/index.js +1 -1
  50. package/dist/typescript/log.d.cts +3 -1
  51. package/dist/typescript/log.d.ts +3 -1
  52. package/dist/utils/command.cjs +1 -1
  53. package/dist/utils/command.d.cts +0 -1
  54. package/dist/utils/command.d.ts +0 -1
  55. package/dist/utils/command.js +1 -1
  56. package/dist/utils/fs.cjs +1 -1
  57. package/dist/utils/fs.d.cts +1 -1
  58. package/dist/utils/fs.d.ts +1 -1
  59. package/dist/utils/fs.js +1 -1
  60. package/dist/utils/index-nodejs.cjs +1 -1
  61. package/dist/utils/index-nodejs.d.cts +3 -3
  62. package/dist/utils/index-nodejs.d.ts +3 -3
  63. package/dist/utils/index-nodejs.js +1 -1
  64. package/dist/utils/index.cjs +1 -1
  65. package/dist/utils/index.d.cts +1 -0
  66. package/dist/utils/index.d.ts +1 -0
  67. package/dist/utils/index.js +1 -1
  68. package/dist/utils/log-nodejs.cjs +1 -0
  69. package/dist/utils/log-nodejs.d.cts +2 -0
  70. package/dist/utils/log-nodejs.d.ts +2 -0
  71. package/dist/utils/log-nodejs.js +1 -0
  72. package/dist/utils/log.cjs +1 -1
  73. package/dist/utils/log.d.cts +1 -1
  74. package/dist/utils/log.d.ts +1 -1
  75. package/dist/utils/log.js +1 -1
  76. package/dist/utils/package.cjs +1 -1
  77. package/dist/utils/package.js +1 -1
  78. package/dist/utils/path.cjs +1 -1
  79. package/dist/utils/path.js +1 -1
  80. package/dist/utils/storage-client.cjs +1 -1
  81. package/dist/utils/storage-client.js +1 -1
  82. package/dist/utils/storage-server.cjs +1 -1
  83. package/dist/utils/storage-server.js +1 -1
  84. package/package.json +2 -2
@@ -11,6 +11,7 @@ import type { ClientSession } from 'mongoose';
11
11
  import type { CodegenConfig } from '@graphql-codegen/cli';
12
12
  import { Collection } from 'mongodb';
13
13
  import type { ComponentType } from 'react';
14
+ import type consola from 'consola';
14
15
  import { Context } from 'react';
15
16
  import { Db } from 'mongodb';
16
17
  import type { DeleteResult } from 'mongodb';
@@ -171,17 +172,6 @@ export { COMMAND }
171
172
  export { COMMAND as COMMAND_alias_1 }
172
173
  export { COMMAND as COMMAND_alias_2 }
173
174
 
174
- declare const commandLog: {
175
- success: (message: string) => void;
176
- error: (message: string) => void;
177
- warning: (message: string) => void;
178
- info: (message: string) => void;
179
- printBoxedLog: typeof printBoxedLog;
180
- };
181
- export { commandLog }
182
- export { commandLog as commandLog_alias_1 }
183
- export { commandLog as commandLog_alias_2 }
184
-
185
175
  declare const COMMIT_LINT_CLI = "commitlint";
186
176
  export { COMMIT_LINT_CLI }
187
177
  export { COMMIT_LINT_CLI as COMMIT_LINT_CLI_alias_1 }
@@ -1420,15 +1410,15 @@ declare enum E_ConfigType_2 {
1420
1410
  VITEST_REACT_UNIT = 'vitest-react-unit',
1421
1411
  }
1422
1412
 
1423
- declare enum E_ErrorType {
1413
+ declare enum E_IssueType {
1424
1414
  Error = "error",
1425
1415
  Warning = "warning"
1426
1416
  }
1427
- export { E_ErrorType }
1428
- export { E_ErrorType as E_ErrorType_alias_1 }
1429
- export { E_ErrorType as E_ErrorType_alias_2 }
1417
+ export { E_IssueType }
1418
+ export { E_IssueType as E_IssueType_alias_1 }
1419
+ export { E_IssueType as E_IssueType_alias_2 }
1430
1420
 
1431
- declare enum E_ErrorType_2 {
1421
+ declare enum E_IssueType_2 {
1432
1422
  Error = 'error',
1433
1423
  Warning = 'warning',
1434
1424
  }
@@ -1458,7 +1448,7 @@ export { executeCommand }
1458
1448
  export { executeCommand as executeCommand_alias_1 }
1459
1449
  export { executeCommand as executeCommand_alias_2 }
1460
1450
 
1461
- declare const existsSync: (filePath: string) => boolean;
1451
+ declare function existsSync(...paths: string[]): boolean;
1462
1452
  export { existsSync }
1463
1453
  export { existsSync as existsSync_alias_1 }
1464
1454
  export { existsSync as existsSync_alias_2 }
@@ -1497,7 +1487,7 @@ export { getStorageDir }
1497
1487
  export { getStorageDir as getStorageDir_alias_1 }
1498
1488
  export { getStorageDir as getStorageDir_alias_2 }
1499
1489
 
1500
- declare function getStoredErrorLists(): Promise<I_ErrorEntry_2[]>;
1490
+ declare function getStoredErrorLists(): Promise<I_IssueEntry_2[]>;
1501
1491
  export { getStoredErrorLists }
1502
1492
  export { getStoredErrorLists as getStoredErrorLists_alias_1 }
1503
1493
  export { getStoredErrorLists as getStoredErrorLists_alias_2 }
@@ -1593,25 +1583,6 @@ declare interface I_ApolloProviderProps_2 {
1593
1583
  cache?: ApolloCache<NormalizedCacheObject>;
1594
1584
  }
1595
1585
 
1596
- declare interface I_BoxedLogOptions {
1597
- color?: string;
1598
- padding?: number;
1599
- margin?: number;
1600
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
1601
- titleColor?: string;
1602
- }
1603
- export { I_BoxedLogOptions }
1604
- export { I_BoxedLogOptions as I_BoxedLogOptions_alias_1 }
1605
- export { I_BoxedLogOptions as I_BoxedLogOptions_alias_2 }
1606
-
1607
- declare interface I_BoxedLogOptions_2 {
1608
- color?: string;
1609
- padding?: number;
1610
- margin?: number;
1611
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
1612
- titleColor?: string;
1613
- }
1614
-
1615
1586
  declare interface I_Command {
1616
1587
  raw: boolean;
1617
1588
  cmd: string;
@@ -1680,25 +1651,6 @@ declare interface I_DeleteOptionsExtended_2 extends Omit<QueryOptions, 'session'
1680
1651
  session?: ClientSession;
1681
1652
  }
1682
1653
 
1683
- declare interface I_ErrorEntry {
1684
- type: E_ErrorType;
1685
- file: string;
1686
- message: string;
1687
- position?: string;
1688
- rule?: string;
1689
- }
1690
- export { I_ErrorEntry }
1691
- export { I_ErrorEntry as I_ErrorEntry_alias_1 }
1692
- export { I_ErrorEntry as I_ErrorEntry_alias_2 }
1693
-
1694
- declare interface I_ErrorEntry_2 {
1695
- type: E_ErrorType_2;
1696
- file: string;
1697
- message: string;
1698
- position?: string;
1699
- rule?: string;
1700
- }
1701
-
1702
1654
  declare interface I_EslintError {
1703
1655
  filePath: string;
1704
1656
  messages: Array<{
@@ -1847,6 +1799,25 @@ export { I_Input_UpdateOne }
1847
1799
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_1 }
1848
1800
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_2 }
1849
1801
 
1802
+ declare interface I_IssueEntry {
1803
+ type: E_IssueType;
1804
+ file: string;
1805
+ message: string;
1806
+ position?: string;
1807
+ rule?: string;
1808
+ }
1809
+ export { I_IssueEntry }
1810
+ export { I_IssueEntry as I_IssueEntry_alias_1 }
1811
+ export { I_IssueEntry as I_IssueEntry_alias_2 }
1812
+
1813
+ declare interface I_IssueEntry_2 {
1814
+ type: E_IssueType_2;
1815
+ file: string;
1816
+ message: string;
1817
+ position?: string;
1818
+ rule?: string;
1819
+ }
1820
+
1850
1821
  declare interface I_LoadingContext {
1851
1822
  isLoading: boolean;
1852
1823
  isGlobalLoading: boolean;
@@ -1881,6 +1852,58 @@ declare interface I_LoadingProps_2 {
1881
1852
  message?: string;
1882
1853
  }
1883
1854
 
1855
+ declare interface I_Log {
1856
+ silent: typeof consola['silent'];
1857
+ level: typeof consola['level'];
1858
+ fatal: typeof consola['fatal'];
1859
+ error: typeof consola['error'];
1860
+ warn: typeof consola['warn'];
1861
+ log: typeof consola['log'];
1862
+ info: typeof consola['info'];
1863
+ success: typeof consola['success'];
1864
+ ready: typeof consola['ready'];
1865
+ start: typeof consola['start'];
1866
+ box: typeof consola['box'];
1867
+ debug: typeof consola['debug'];
1868
+ trace: typeof consola['trace'];
1869
+ verbose: typeof consola['verbose'];
1870
+ }
1871
+ export { I_Log }
1872
+ export { I_Log as I_Log_alias_1 }
1873
+ export { I_Log as I_Log_alias_2 }
1874
+
1875
+ declare interface I_Log_2 {
1876
+ silent: typeof consola['silent'];
1877
+ level: typeof consola['level'];
1878
+ fatal: typeof consola['fatal'];
1879
+ error: typeof consola['error'];
1880
+ warn: typeof consola['warn'];
1881
+ log: typeof consola['log'];
1882
+ info: typeof consola['info'];
1883
+ success: typeof consola['success'];
1884
+ ready: typeof consola['ready'];
1885
+ start: typeof consola['start'];
1886
+ box: typeof consola['box'];
1887
+ debug: typeof consola['debug'];
1888
+ trace: typeof consola['trace'];
1889
+ verbose: typeof consola['verbose'];
1890
+ }
1891
+
1892
+ declare interface I_Log_NodeJS extends I_Log {
1893
+ printBoxedLog: (title: string, issues: I_IssueEntry[], color?: string) => void;
1894
+ }
1895
+ export { I_Log_NodeJS }
1896
+ export { I_Log_NodeJS as I_Log_NodeJS_alias_1 }
1897
+ export { I_Log_NodeJS as I_Log_NodeJS_alias_2 }
1898
+
1899
+ declare interface I_Log_NodeJS_2 extends I_Log_2 {
1900
+ printBoxedLog: (
1901
+ title: string,
1902
+ issues: I_IssueEntry_2[],
1903
+ color?: string,
1904
+ ) => void;
1905
+ }
1906
+
1884
1907
  declare interface I_MongooseModelMiddleware<T extends Partial<C_Document>> {
1885
1908
  method: T_MongooseMiddlewareMethod;
1886
1909
  pre?: T_MongooseMiddlewarePreFunction<T & T_QueryWithHelpers<T>>;
@@ -2127,6 +2150,16 @@ export { LoadingProvider }
2127
2150
  export { LoadingProvider as LoadingProvider_alias_1 }
2128
2151
  export { LoadingProvider as LoadingProvider_alias_2 }
2129
2152
 
2153
+ declare const log: I_Log_2;
2154
+ export { log }
2155
+ export { log as log_alias_1 }
2156
+ export { log as log_alias_2 }
2157
+
2158
+ declare const logNodeJS: I_Log_NodeJS_2;
2159
+ export { logNodeJS }
2160
+ export { logNodeJS as logNodeJS_alias_1 }
2161
+ export { logNodeJS as logNodeJS_alias_2 }
2162
+
2130
2163
  export declare function mergeConfigs(type: T_ConfigType_2, ...configs: T_Object_2[]): T_Object_2;
2131
2164
 
2132
2165
  declare const mongo: {
@@ -2329,8 +2362,6 @@ export { PNPM_LOCK_YAML }
2329
2362
  export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_1 }
2330
2363
  export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_2 }
2331
2364
 
2332
- declare function printBoxedLog<T extends string | I_ErrorEntry_2[]>(title: string, content: T, { color, padding, margin, borderStyle, titleColor, }?: I_BoxedLogOptions_2): void;
2333
-
2334
2365
  declare function rawCommand(cmd: string): {
2335
2366
  raw: boolean;
2336
2367
  cmd: string;
@@ -2636,7 +2667,7 @@ export { RESPONSE_STATUS }
2636
2667
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_1 }
2637
2668
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_2 }
2638
2669
 
2639
- declare function rmSync(filePaths: string[]): void;
2670
+ declare function rmSync(...paths: string[]): void;
2640
2671
  export { rmSync }
2641
2672
  export { rmSync as rmSync_alias_1 }
2642
2673
  export { rmSync as rmSync_alias_2 }
@@ -2979,7 +3010,7 @@ export { T_QueryWithHelpers as T_QueryWithHelpers_alias_2 }
2979
3010
 
2980
3011
  declare type T_QueryWithHelpers_2<T> = QueryWithHelpers<T, T>;
2981
3012
 
2982
- declare interface T_ThrowResponseArgs {
3013
+ declare interface T_ThrowError {
2983
3014
  message?: string;
2984
3015
  status?: {
2985
3016
  CODE: string | number;
@@ -2987,11 +3018,11 @@ declare interface T_ThrowResponseArgs {
2987
3018
  };
2988
3019
  type?: 'graphql' | 'rest';
2989
3020
  }
2990
- export { T_ThrowResponseArgs }
2991
- export { T_ThrowResponseArgs as T_ThrowResponseArgs_alias_1 }
2992
- export { T_ThrowResponseArgs as T_ThrowResponseArgs_alias_2 }
3021
+ export { T_ThrowError }
3022
+ export { T_ThrowError as T_ThrowError_alias_1 }
3023
+ export { T_ThrowError as T_ThrowError_alias_2 }
2993
3024
 
2994
- declare interface T_ThrowResponseArgs_2 {
3025
+ declare interface T_ThrowError_2 {
2995
3026
  message?: string;
2996
3027
  status?: {
2997
3028
  CODE: string | number;
@@ -3021,10 +3052,10 @@ export { T_WithId as T_WithId_alias_2 }
3021
3052
 
3022
3053
  declare type T_WithId_2<T> = WithId<T>;
3023
3054
 
3024
- declare function throwResponse({ message, status, type, }: T_ThrowResponseArgs_2): never;
3025
- export { throwResponse }
3026
- export { throwResponse as throwResponse_alias_1 }
3027
- export { throwResponse as throwResponse_alias_2 }
3055
+ declare function throwError({ message, status, type, }: T_ThrowError_2): never;
3056
+ export { throwError }
3057
+ export { throwError as throwError_alias_1 }
3058
+ export { throwError as throwError_alias_2 }
3028
3059
 
3029
3060
  declare const TSC_CLI = "tsc";
3030
3061
  export { TSC_CLI }
@@ -11,6 +11,7 @@ import type { ClientSession } from 'mongoose';
11
11
  import type { CodegenConfig } from '@graphql-codegen/cli';
12
12
  import { Collection } from 'mongodb';
13
13
  import type { ComponentType } from 'react';
14
+ import type consola from 'consola';
14
15
  import { Context } from 'react';
15
16
  import { Db } from 'mongodb';
16
17
  import type { DeleteResult } from 'mongodb';
@@ -171,17 +172,6 @@ export { COMMAND }
171
172
  export { COMMAND as COMMAND_alias_1 }
172
173
  export { COMMAND as COMMAND_alias_2 }
173
174
 
174
- declare const commandLog: {
175
- success: (message: string) => void;
176
- error: (message: string) => void;
177
- warning: (message: string) => void;
178
- info: (message: string) => void;
179
- printBoxedLog: typeof printBoxedLog;
180
- };
181
- export { commandLog }
182
- export { commandLog as commandLog_alias_1 }
183
- export { commandLog as commandLog_alias_2 }
184
-
185
175
  declare const COMMIT_LINT_CLI = "commitlint";
186
176
  export { COMMIT_LINT_CLI }
187
177
  export { COMMIT_LINT_CLI as COMMIT_LINT_CLI_alias_1 }
@@ -1420,15 +1410,15 @@ declare enum E_ConfigType_2 {
1420
1410
  VITEST_REACT_UNIT = 'vitest-react-unit',
1421
1411
  }
1422
1412
 
1423
- declare enum E_ErrorType {
1413
+ declare enum E_IssueType {
1424
1414
  Error = "error",
1425
1415
  Warning = "warning"
1426
1416
  }
1427
- export { E_ErrorType }
1428
- export { E_ErrorType as E_ErrorType_alias_1 }
1429
- export { E_ErrorType as E_ErrorType_alias_2 }
1417
+ export { E_IssueType }
1418
+ export { E_IssueType as E_IssueType_alias_1 }
1419
+ export { E_IssueType as E_IssueType_alias_2 }
1430
1420
 
1431
- declare enum E_ErrorType_2 {
1421
+ declare enum E_IssueType_2 {
1432
1422
  Error = 'error',
1433
1423
  Warning = 'warning',
1434
1424
  }
@@ -1458,7 +1448,7 @@ export { executeCommand }
1458
1448
  export { executeCommand as executeCommand_alias_1 }
1459
1449
  export { executeCommand as executeCommand_alias_2 }
1460
1450
 
1461
- declare const existsSync: (filePath: string) => boolean;
1451
+ declare function existsSync(...paths: string[]): boolean;
1462
1452
  export { existsSync }
1463
1453
  export { existsSync as existsSync_alias_1 }
1464
1454
  export { existsSync as existsSync_alias_2 }
@@ -1497,7 +1487,7 @@ export { getStorageDir }
1497
1487
  export { getStorageDir as getStorageDir_alias_1 }
1498
1488
  export { getStorageDir as getStorageDir_alias_2 }
1499
1489
 
1500
- declare function getStoredErrorLists(): Promise<I_ErrorEntry_2[]>;
1490
+ declare function getStoredErrorLists(): Promise<I_IssueEntry_2[]>;
1501
1491
  export { getStoredErrorLists }
1502
1492
  export { getStoredErrorLists as getStoredErrorLists_alias_1 }
1503
1493
  export { getStoredErrorLists as getStoredErrorLists_alias_2 }
@@ -1593,25 +1583,6 @@ declare interface I_ApolloProviderProps_2 {
1593
1583
  cache?: ApolloCache<NormalizedCacheObject>;
1594
1584
  }
1595
1585
 
1596
- declare interface I_BoxedLogOptions {
1597
- color?: string;
1598
- padding?: number;
1599
- margin?: number;
1600
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
1601
- titleColor?: string;
1602
- }
1603
- export { I_BoxedLogOptions }
1604
- export { I_BoxedLogOptions as I_BoxedLogOptions_alias_1 }
1605
- export { I_BoxedLogOptions as I_BoxedLogOptions_alias_2 }
1606
-
1607
- declare interface I_BoxedLogOptions_2 {
1608
- color?: string;
1609
- padding?: number;
1610
- margin?: number;
1611
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
1612
- titleColor?: string;
1613
- }
1614
-
1615
1586
  declare interface I_Command {
1616
1587
  raw: boolean;
1617
1588
  cmd: string;
@@ -1680,25 +1651,6 @@ declare interface I_DeleteOptionsExtended_2 extends Omit<QueryOptions, 'session'
1680
1651
  session?: ClientSession;
1681
1652
  }
1682
1653
 
1683
- declare interface I_ErrorEntry {
1684
- type: E_ErrorType;
1685
- file: string;
1686
- message: string;
1687
- position?: string;
1688
- rule?: string;
1689
- }
1690
- export { I_ErrorEntry }
1691
- export { I_ErrorEntry as I_ErrorEntry_alias_1 }
1692
- export { I_ErrorEntry as I_ErrorEntry_alias_2 }
1693
-
1694
- declare interface I_ErrorEntry_2 {
1695
- type: E_ErrorType_2;
1696
- file: string;
1697
- message: string;
1698
- position?: string;
1699
- rule?: string;
1700
- }
1701
-
1702
1654
  declare interface I_EslintError {
1703
1655
  filePath: string;
1704
1656
  messages: Array<{
@@ -1847,6 +1799,25 @@ export { I_Input_UpdateOne }
1847
1799
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_1 }
1848
1800
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_2 }
1849
1801
 
1802
+ declare interface I_IssueEntry {
1803
+ type: E_IssueType;
1804
+ file: string;
1805
+ message: string;
1806
+ position?: string;
1807
+ rule?: string;
1808
+ }
1809
+ export { I_IssueEntry }
1810
+ export { I_IssueEntry as I_IssueEntry_alias_1 }
1811
+ export { I_IssueEntry as I_IssueEntry_alias_2 }
1812
+
1813
+ declare interface I_IssueEntry_2 {
1814
+ type: E_IssueType_2;
1815
+ file: string;
1816
+ message: string;
1817
+ position?: string;
1818
+ rule?: string;
1819
+ }
1820
+
1850
1821
  declare interface I_LoadingContext {
1851
1822
  isLoading: boolean;
1852
1823
  isGlobalLoading: boolean;
@@ -1881,6 +1852,58 @@ declare interface I_LoadingProps_2 {
1881
1852
  message?: string;
1882
1853
  }
1883
1854
 
1855
+ declare interface I_Log {
1856
+ silent: typeof consola['silent'];
1857
+ level: typeof consola['level'];
1858
+ fatal: typeof consola['fatal'];
1859
+ error: typeof consola['error'];
1860
+ warn: typeof consola['warn'];
1861
+ log: typeof consola['log'];
1862
+ info: typeof consola['info'];
1863
+ success: typeof consola['success'];
1864
+ ready: typeof consola['ready'];
1865
+ start: typeof consola['start'];
1866
+ box: typeof consola['box'];
1867
+ debug: typeof consola['debug'];
1868
+ trace: typeof consola['trace'];
1869
+ verbose: typeof consola['verbose'];
1870
+ }
1871
+ export { I_Log }
1872
+ export { I_Log as I_Log_alias_1 }
1873
+ export { I_Log as I_Log_alias_2 }
1874
+
1875
+ declare interface I_Log_2 {
1876
+ silent: typeof consola['silent'];
1877
+ level: typeof consola['level'];
1878
+ fatal: typeof consola['fatal'];
1879
+ error: typeof consola['error'];
1880
+ warn: typeof consola['warn'];
1881
+ log: typeof consola['log'];
1882
+ info: typeof consola['info'];
1883
+ success: typeof consola['success'];
1884
+ ready: typeof consola['ready'];
1885
+ start: typeof consola['start'];
1886
+ box: typeof consola['box'];
1887
+ debug: typeof consola['debug'];
1888
+ trace: typeof consola['trace'];
1889
+ verbose: typeof consola['verbose'];
1890
+ }
1891
+
1892
+ declare interface I_Log_NodeJS extends I_Log {
1893
+ printBoxedLog: (title: string, issues: I_IssueEntry[], color?: string) => void;
1894
+ }
1895
+ export { I_Log_NodeJS }
1896
+ export { I_Log_NodeJS as I_Log_NodeJS_alias_1 }
1897
+ export { I_Log_NodeJS as I_Log_NodeJS_alias_2 }
1898
+
1899
+ declare interface I_Log_NodeJS_2 extends I_Log_2 {
1900
+ printBoxedLog: (
1901
+ title: string,
1902
+ issues: I_IssueEntry_2[],
1903
+ color?: string,
1904
+ ) => void;
1905
+ }
1906
+
1884
1907
  declare interface I_MongooseModelMiddleware<T extends Partial<C_Document>> {
1885
1908
  method: T_MongooseMiddlewareMethod;
1886
1909
  pre?: T_MongooseMiddlewarePreFunction<T & T_QueryWithHelpers<T>>;
@@ -2127,6 +2150,16 @@ export { LoadingProvider }
2127
2150
  export { LoadingProvider as LoadingProvider_alias_1 }
2128
2151
  export { LoadingProvider as LoadingProvider_alias_2 }
2129
2152
 
2153
+ declare const log: I_Log_2;
2154
+ export { log }
2155
+ export { log as log_alias_1 }
2156
+ export { log as log_alias_2 }
2157
+
2158
+ declare const logNodeJS: I_Log_NodeJS_2;
2159
+ export { logNodeJS }
2160
+ export { logNodeJS as logNodeJS_alias_1 }
2161
+ export { logNodeJS as logNodeJS_alias_2 }
2162
+
2130
2163
  export declare function mergeConfigs(type: T_ConfigType_2, ...configs: T_Object_2[]): T_Object_2;
2131
2164
 
2132
2165
  declare const mongo: {
@@ -2329,8 +2362,6 @@ export { PNPM_LOCK_YAML }
2329
2362
  export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_1 }
2330
2363
  export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_2 }
2331
2364
 
2332
- declare function printBoxedLog<T extends string | I_ErrorEntry_2[]>(title: string, content: T, { color, padding, margin, borderStyle, titleColor, }?: I_BoxedLogOptions_2): void;
2333
-
2334
2365
  declare function rawCommand(cmd: string): {
2335
2366
  raw: boolean;
2336
2367
  cmd: string;
@@ -2636,7 +2667,7 @@ export { RESPONSE_STATUS }
2636
2667
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_1 }
2637
2668
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_2 }
2638
2669
 
2639
- declare function rmSync(filePaths: string[]): void;
2670
+ declare function rmSync(...paths: string[]): void;
2640
2671
  export { rmSync }
2641
2672
  export { rmSync as rmSync_alias_1 }
2642
2673
  export { rmSync as rmSync_alias_2 }
@@ -2979,7 +3010,7 @@ export { T_QueryWithHelpers as T_QueryWithHelpers_alias_2 }
2979
3010
 
2980
3011
  declare type T_QueryWithHelpers_2<T> = QueryWithHelpers<T, T>;
2981
3012
 
2982
- declare interface T_ThrowResponseArgs {
3013
+ declare interface T_ThrowError {
2983
3014
  message?: string;
2984
3015
  status?: {
2985
3016
  CODE: string | number;
@@ -2987,11 +3018,11 @@ declare interface T_ThrowResponseArgs {
2987
3018
  };
2988
3019
  type?: 'graphql' | 'rest';
2989
3020
  }
2990
- export { T_ThrowResponseArgs }
2991
- export { T_ThrowResponseArgs as T_ThrowResponseArgs_alias_1 }
2992
- export { T_ThrowResponseArgs as T_ThrowResponseArgs_alias_2 }
3021
+ export { T_ThrowError }
3022
+ export { T_ThrowError as T_ThrowError_alias_1 }
3023
+ export { T_ThrowError as T_ThrowError_alias_2 }
2993
3024
 
2994
- declare interface T_ThrowResponseArgs_2 {
3025
+ declare interface T_ThrowError_2 {
2995
3026
  message?: string;
2996
3027
  status?: {
2997
3028
  CODE: string | number;
@@ -3021,10 +3052,10 @@ export { T_WithId as T_WithId_alias_2 }
3021
3052
 
3022
3053
  declare type T_WithId_2<T> = WithId<T>;
3023
3054
 
3024
- declare function throwResponse({ message, status, type, }: T_ThrowResponseArgs_2): never;
3025
- export { throwResponse }
3026
- export { throwResponse as throwResponse_alias_1 }
3027
- export { throwResponse as throwResponse_alias_2 }
3055
+ declare function throwError({ message, status, type, }: T_ThrowError_2): never;
3056
+ export { throwError }
3057
+ export { throwError as throwError_alias_1 }
3058
+ export { throwError as throwError_alias_2 }
3028
3059
 
3029
3060
  declare const TSC_CLI = "tsc";
3030
3061
  export { TSC_CLI }