@cyberskill/shared 1.60.0 → 1.62.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 (77) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +85 -83
  2. package/dist/_tsup-dts-rollup.d.ts +85 -83
  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/index.cjs +1 -1
  14. package/dist/constants/index.js +1 -1
  15. package/dist/constants/path.cjs +1 -1
  16. package/dist/constants/path.js +1 -1
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.d.cts +7 -8
  19. package/dist/index.d.ts +7 -8
  20. package/dist/index.js +1 -1
  21. package/dist/react/apollo-client.cjs +1 -1
  22. package/dist/react/apollo-client.js +1 -1
  23. package/dist/react/apollo-error.cjs +1 -1
  24. package/dist/react/apollo-error.d.cts +0 -1
  25. package/dist/react/apollo-error.d.ts +0 -1
  26. package/dist/react/apollo-error.js +1 -1
  27. package/dist/react/apollo-error.module.d.cts +1 -0
  28. package/dist/react/apollo-error.module.d.ts +1 -0
  29. package/dist/react/apollo-error.module.scss +105 -0
  30. package/dist/react/index.cjs +1 -1
  31. package/dist/react/index.d.cts +0 -1
  32. package/dist/react/index.d.ts +0 -1
  33. package/dist/react/index.js +1 -1
  34. package/dist/react/loading.module.scss +1 -8
  35. package/dist/react/next-intl.cjs +1 -1
  36. package/dist/react/next-intl.js +1 -1
  37. package/dist/react/storage.cjs +1 -1
  38. package/dist/react/storage.js +1 -1
  39. package/dist/typescript/apollo-error.d.cts +0 -1
  40. package/dist/typescript/apollo-error.d.ts +0 -1
  41. package/dist/typescript/command.cjs +1 -1
  42. package/dist/typescript/command.d.cts +2 -3
  43. package/dist/typescript/command.d.ts +2 -3
  44. package/dist/typescript/command.js +1 -1
  45. package/dist/typescript/index.cjs +1 -1
  46. package/dist/typescript/index.d.cts +4 -4
  47. package/dist/typescript/index.d.ts +4 -4
  48. package/dist/typescript/index.js +1 -1
  49. package/dist/typescript/log.d.cts +2 -1
  50. package/dist/typescript/log.d.ts +2 -1
  51. package/dist/utils/command.cjs +1 -1
  52. package/dist/utils/command.d.cts +0 -1
  53. package/dist/utils/command.d.ts +0 -1
  54. package/dist/utils/command.js +1 -1
  55. package/dist/utils/fs.cjs +1 -1
  56. package/dist/utils/fs.d.cts +1 -1
  57. package/dist/utils/fs.d.ts +1 -1
  58. package/dist/utils/fs.js +1 -1
  59. package/dist/utils/index-nodejs.cjs +1 -1
  60. package/dist/utils/index-nodejs.d.cts +3 -3
  61. package/dist/utils/index-nodejs.d.ts +3 -3
  62. package/dist/utils/index-nodejs.js +1 -1
  63. package/dist/utils/index.cjs +1 -1
  64. package/dist/utils/index.js +1 -1
  65. package/dist/utils/log.cjs +1 -1
  66. package/dist/utils/log.d.cts +2 -1
  67. package/dist/utils/log.d.ts +2 -1
  68. package/dist/utils/log.js +1 -1
  69. package/dist/utils/package.cjs +1 -1
  70. package/dist/utils/package.js +1 -1
  71. package/dist/utils/path.cjs +1 -1
  72. package/dist/utils/path.js +1 -1
  73. package/dist/utils/storage-client.cjs +1 -1
  74. package/dist/utils/storage-client.js +1 -1
  75. package/dist/utils/storage-server.cjs +1 -1
  76. package/dist/utils/storage-server.js +1 -1
  77. 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';
@@ -73,21 +74,6 @@ export { ApolloClientOptions }
73
74
  export { ApolloClientOptions as ApolloClientOptions_alias_1 }
74
75
  export { ApolloClientOptions as ApolloClientOptions_alias_2 }
75
76
 
76
- declare function ApolloErrorScreen({ error, refetch }: ApolloErrorScreenProps_2): JSX_2.Element;
77
- export { ApolloErrorScreen }
78
- export { ApolloErrorScreen as ApolloErrorScreen_alias_1 }
79
- export { ApolloErrorScreen as ApolloErrorScreen_alias_2 }
80
-
81
- export declare interface ApolloErrorScreenProps {
82
- error: ApolloError;
83
- refetch?: () => void;
84
- }
85
-
86
- declare interface ApolloErrorScreenProps_2 {
87
- error: ApolloError;
88
- refetch?: () => void;
89
- }
90
-
91
77
  declare function ApolloErrorViewerModal(): JSX_2.Element | null;
92
78
  export { ApolloErrorViewerModal }
93
79
  export { ApolloErrorViewerModal as ApolloErrorViewerModal_alias_1 }
@@ -186,17 +172,6 @@ export { COMMAND }
186
172
  export { COMMAND as COMMAND_alias_1 }
187
173
  export { COMMAND as COMMAND_alias_2 }
188
174
 
189
- declare const commandLog: {
190
- success: (message: string) => void;
191
- error: (message: string) => void;
192
- warning: (message: string) => void;
193
- info: (message: string) => void;
194
- printBoxedLog: typeof printBoxedLog;
195
- };
196
- export { commandLog }
197
- export { commandLog as commandLog_alias_1 }
198
- export { commandLog as commandLog_alias_2 }
199
-
200
175
  declare const COMMIT_LINT_CLI = "commitlint";
201
176
  export { COMMIT_LINT_CLI }
202
177
  export { COMMIT_LINT_CLI as COMMIT_LINT_CLI_alias_1 }
@@ -1435,15 +1410,15 @@ declare enum E_ConfigType_2 {
1435
1410
  VITEST_REACT_UNIT = 'vitest-react-unit',
1436
1411
  }
1437
1412
 
1438
- declare enum E_ErrorType {
1413
+ declare enum E_IssueType {
1439
1414
  Error = "error",
1440
1415
  Warning = "warning"
1441
1416
  }
1442
- export { E_ErrorType }
1443
- export { E_ErrorType as E_ErrorType_alias_1 }
1444
- 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 }
1445
1420
 
1446
- declare enum E_ErrorType_2 {
1421
+ declare enum E_IssueType_2 {
1447
1422
  Error = 'error',
1448
1423
  Warning = 'warning',
1449
1424
  }
@@ -1473,7 +1448,7 @@ export { executeCommand }
1473
1448
  export { executeCommand as executeCommand_alias_1 }
1474
1449
  export { executeCommand as executeCommand_alias_2 }
1475
1450
 
1476
- declare const existsSync: (filePath: string) => boolean;
1451
+ declare function existsSync(...paths: string[]): boolean;
1477
1452
  export { existsSync }
1478
1453
  export { existsSync as existsSync_alias_1 }
1479
1454
  export { existsSync as existsSync_alias_2 }
@@ -1512,7 +1487,7 @@ export { getStorageDir }
1512
1487
  export { getStorageDir as getStorageDir_alias_1 }
1513
1488
  export { getStorageDir as getStorageDir_alias_2 }
1514
1489
 
1515
- declare function getStoredErrorLists(): Promise<I_ErrorEntry_2[]>;
1490
+ declare function getStoredErrorLists(): Promise<I_IssueEntry_2[]>;
1516
1491
  export { getStoredErrorLists }
1517
1492
  export { getStoredErrorLists as getStoredErrorLists_alias_1 }
1518
1493
  export { getStoredErrorLists as getStoredErrorLists_alias_2 }
@@ -1608,25 +1583,6 @@ declare interface I_ApolloProviderProps_2 {
1608
1583
  cache?: ApolloCache<NormalizedCacheObject>;
1609
1584
  }
1610
1585
 
1611
- declare interface I_BoxedLogOptions {
1612
- color?: string;
1613
- padding?: number;
1614
- margin?: number;
1615
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
1616
- titleColor?: string;
1617
- }
1618
- export { I_BoxedLogOptions }
1619
- export { I_BoxedLogOptions as I_BoxedLogOptions_alias_1 }
1620
- export { I_BoxedLogOptions as I_BoxedLogOptions_alias_2 }
1621
-
1622
- declare interface I_BoxedLogOptions_2 {
1623
- color?: string;
1624
- padding?: number;
1625
- margin?: number;
1626
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
1627
- titleColor?: string;
1628
- }
1629
-
1630
1586
  declare interface I_Command {
1631
1587
  raw: boolean;
1632
1588
  cmd: string;
@@ -1695,25 +1651,6 @@ declare interface I_DeleteOptionsExtended_2 extends Omit<QueryOptions, 'session'
1695
1651
  session?: ClientSession;
1696
1652
  }
1697
1653
 
1698
- declare interface I_ErrorEntry {
1699
- type: E_ErrorType;
1700
- file: string;
1701
- message: string;
1702
- position?: string;
1703
- rule?: string;
1704
- }
1705
- export { I_ErrorEntry }
1706
- export { I_ErrorEntry as I_ErrorEntry_alias_1 }
1707
- export { I_ErrorEntry as I_ErrorEntry_alias_2 }
1708
-
1709
- declare interface I_ErrorEntry_2 {
1710
- type: E_ErrorType_2;
1711
- file: string;
1712
- message: string;
1713
- position?: string;
1714
- rule?: string;
1715
- }
1716
-
1717
1654
  declare interface I_EslintError {
1718
1655
  filePath: string;
1719
1656
  messages: Array<{
@@ -1862,6 +1799,25 @@ export { I_Input_UpdateOne }
1862
1799
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_1 }
1863
1800
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_2 }
1864
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
+
1865
1821
  declare interface I_LoadingContext {
1866
1822
  isLoading: boolean;
1867
1823
  isGlobalLoading: boolean;
@@ -1896,6 +1852,49 @@ declare interface I_LoadingProps_2 {
1896
1852
  message?: string;
1897
1853
  }
1898
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
+ printBoxedLog: (title: string, issues: I_IssueEntry[], color?: string) => void;
1871
+ }
1872
+ export { I_Log }
1873
+ export { I_Log as I_Log_alias_1 }
1874
+ export { I_Log as I_Log_alias_2 }
1875
+
1876
+ declare interface I_Log_2 {
1877
+ silent: typeof consola['silent'];
1878
+ level: typeof consola['level'];
1879
+ fatal: typeof consola['fatal'];
1880
+ error: typeof consola['error'];
1881
+ warn: typeof consola['warn'];
1882
+ log: typeof consola['log'];
1883
+ info: typeof consola['info'];
1884
+ success: typeof consola['success'];
1885
+ ready: typeof consola['ready'];
1886
+ start: typeof consola['start'];
1887
+ box: typeof consola['box'];
1888
+ debug: typeof consola['debug'];
1889
+ trace: typeof consola['trace'];
1890
+ verbose: typeof consola['verbose'];
1891
+ printBoxedLog: (
1892
+ title: string,
1893
+ issues: I_IssueEntry_2[],
1894
+ color?: string,
1895
+ ) => void;
1896
+ }
1897
+
1899
1898
  declare interface I_MongooseModelMiddleware<T extends Partial<C_Document>> {
1900
1899
  method: T_MongooseMiddlewareMethod;
1901
1900
  pre?: T_MongooseMiddlewarePreFunction<T & T_QueryWithHelpers<T>>;
@@ -2142,6 +2141,11 @@ export { LoadingProvider }
2142
2141
  export { LoadingProvider as LoadingProvider_alias_1 }
2143
2142
  export { LoadingProvider as LoadingProvider_alias_2 }
2144
2143
 
2144
+ declare const log: I_Log_2;
2145
+ export { log }
2146
+ export { log as log_alias_1 }
2147
+ export { log as log_alias_2 }
2148
+
2145
2149
  export declare function mergeConfigs(type: T_ConfigType_2, ...configs: T_Object_2[]): T_Object_2;
2146
2150
 
2147
2151
  declare const mongo: {
@@ -2344,8 +2348,6 @@ export { PNPM_LOCK_YAML }
2344
2348
  export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_1 }
2345
2349
  export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_2 }
2346
2350
 
2347
- declare function printBoxedLog<T extends string | I_ErrorEntry_2[]>(title: string, content: T, { color, padding, margin, borderStyle, titleColor, }?: I_BoxedLogOptions_2): void;
2348
-
2349
2351
  declare function rawCommand(cmd: string): {
2350
2352
  raw: boolean;
2351
2353
  cmd: string;
@@ -2651,7 +2653,7 @@ export { RESPONSE_STATUS }
2651
2653
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_1 }
2652
2654
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_2 }
2653
2655
 
2654
- declare function rmSync(filePaths: string[]): void;
2656
+ declare function rmSync(...paths: string[]): void;
2655
2657
  export { rmSync }
2656
2658
  export { rmSync as rmSync_alias_1 }
2657
2659
  export { rmSync as rmSync_alias_2 }
@@ -2994,7 +2996,7 @@ export { T_QueryWithHelpers as T_QueryWithHelpers_alias_2 }
2994
2996
 
2995
2997
  declare type T_QueryWithHelpers_2<T> = QueryWithHelpers<T, T>;
2996
2998
 
2997
- declare interface T_ThrowResponseArgs {
2999
+ declare interface T_ThrowError {
2998
3000
  message?: string;
2999
3001
  status?: {
3000
3002
  CODE: string | number;
@@ -3002,11 +3004,11 @@ declare interface T_ThrowResponseArgs {
3002
3004
  };
3003
3005
  type?: 'graphql' | 'rest';
3004
3006
  }
3005
- export { T_ThrowResponseArgs }
3006
- export { T_ThrowResponseArgs as T_ThrowResponseArgs_alias_1 }
3007
- export { T_ThrowResponseArgs as T_ThrowResponseArgs_alias_2 }
3007
+ export { T_ThrowError }
3008
+ export { T_ThrowError as T_ThrowError_alias_1 }
3009
+ export { T_ThrowError as T_ThrowError_alias_2 }
3008
3010
 
3009
- declare interface T_ThrowResponseArgs_2 {
3011
+ declare interface T_ThrowError_2 {
3010
3012
  message?: string;
3011
3013
  status?: {
3012
3014
  CODE: string | number;
@@ -3036,10 +3038,10 @@ export { T_WithId as T_WithId_alias_2 }
3036
3038
 
3037
3039
  declare type T_WithId_2<T> = WithId<T>;
3038
3040
 
3039
- declare function throwResponse({ message, status, type, }: T_ThrowResponseArgs_2): never;
3040
- export { throwResponse }
3041
- export { throwResponse as throwResponse_alias_1 }
3042
- export { throwResponse as throwResponse_alias_2 }
3041
+ declare function throwError({ message, status, type, }: T_ThrowError_2): never;
3042
+ export { throwError }
3043
+ export { throwError as throwError_alias_1 }
3044
+ export { throwError as throwError_alias_2 }
3043
3045
 
3044
3046
  declare const TSC_CLI = "tsc";
3045
3047
  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';
@@ -73,21 +74,6 @@ export { ApolloClientOptions }
73
74
  export { ApolloClientOptions as ApolloClientOptions_alias_1 }
74
75
  export { ApolloClientOptions as ApolloClientOptions_alias_2 }
75
76
 
76
- declare function ApolloErrorScreen({ error, refetch }: ApolloErrorScreenProps_2): JSX_2.Element;
77
- export { ApolloErrorScreen }
78
- export { ApolloErrorScreen as ApolloErrorScreen_alias_1 }
79
- export { ApolloErrorScreen as ApolloErrorScreen_alias_2 }
80
-
81
- export declare interface ApolloErrorScreenProps {
82
- error: ApolloError;
83
- refetch?: () => void;
84
- }
85
-
86
- declare interface ApolloErrorScreenProps_2 {
87
- error: ApolloError;
88
- refetch?: () => void;
89
- }
90
-
91
77
  declare function ApolloErrorViewerModal(): JSX_2.Element | null;
92
78
  export { ApolloErrorViewerModal }
93
79
  export { ApolloErrorViewerModal as ApolloErrorViewerModal_alias_1 }
@@ -186,17 +172,6 @@ export { COMMAND }
186
172
  export { COMMAND as COMMAND_alias_1 }
187
173
  export { COMMAND as COMMAND_alias_2 }
188
174
 
189
- declare const commandLog: {
190
- success: (message: string) => void;
191
- error: (message: string) => void;
192
- warning: (message: string) => void;
193
- info: (message: string) => void;
194
- printBoxedLog: typeof printBoxedLog;
195
- };
196
- export { commandLog }
197
- export { commandLog as commandLog_alias_1 }
198
- export { commandLog as commandLog_alias_2 }
199
-
200
175
  declare const COMMIT_LINT_CLI = "commitlint";
201
176
  export { COMMIT_LINT_CLI }
202
177
  export { COMMIT_LINT_CLI as COMMIT_LINT_CLI_alias_1 }
@@ -1435,15 +1410,15 @@ declare enum E_ConfigType_2 {
1435
1410
  VITEST_REACT_UNIT = 'vitest-react-unit',
1436
1411
  }
1437
1412
 
1438
- declare enum E_ErrorType {
1413
+ declare enum E_IssueType {
1439
1414
  Error = "error",
1440
1415
  Warning = "warning"
1441
1416
  }
1442
- export { E_ErrorType }
1443
- export { E_ErrorType as E_ErrorType_alias_1 }
1444
- 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 }
1445
1420
 
1446
- declare enum E_ErrorType_2 {
1421
+ declare enum E_IssueType_2 {
1447
1422
  Error = 'error',
1448
1423
  Warning = 'warning',
1449
1424
  }
@@ -1473,7 +1448,7 @@ export { executeCommand }
1473
1448
  export { executeCommand as executeCommand_alias_1 }
1474
1449
  export { executeCommand as executeCommand_alias_2 }
1475
1450
 
1476
- declare const existsSync: (filePath: string) => boolean;
1451
+ declare function existsSync(...paths: string[]): boolean;
1477
1452
  export { existsSync }
1478
1453
  export { existsSync as existsSync_alias_1 }
1479
1454
  export { existsSync as existsSync_alias_2 }
@@ -1512,7 +1487,7 @@ export { getStorageDir }
1512
1487
  export { getStorageDir as getStorageDir_alias_1 }
1513
1488
  export { getStorageDir as getStorageDir_alias_2 }
1514
1489
 
1515
- declare function getStoredErrorLists(): Promise<I_ErrorEntry_2[]>;
1490
+ declare function getStoredErrorLists(): Promise<I_IssueEntry_2[]>;
1516
1491
  export { getStoredErrorLists }
1517
1492
  export { getStoredErrorLists as getStoredErrorLists_alias_1 }
1518
1493
  export { getStoredErrorLists as getStoredErrorLists_alias_2 }
@@ -1608,25 +1583,6 @@ declare interface I_ApolloProviderProps_2 {
1608
1583
  cache?: ApolloCache<NormalizedCacheObject>;
1609
1584
  }
1610
1585
 
1611
- declare interface I_BoxedLogOptions {
1612
- color?: string;
1613
- padding?: number;
1614
- margin?: number;
1615
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
1616
- titleColor?: string;
1617
- }
1618
- export { I_BoxedLogOptions }
1619
- export { I_BoxedLogOptions as I_BoxedLogOptions_alias_1 }
1620
- export { I_BoxedLogOptions as I_BoxedLogOptions_alias_2 }
1621
-
1622
- declare interface I_BoxedLogOptions_2 {
1623
- color?: string;
1624
- padding?: number;
1625
- margin?: number;
1626
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
1627
- titleColor?: string;
1628
- }
1629
-
1630
1586
  declare interface I_Command {
1631
1587
  raw: boolean;
1632
1588
  cmd: string;
@@ -1695,25 +1651,6 @@ declare interface I_DeleteOptionsExtended_2 extends Omit<QueryOptions, 'session'
1695
1651
  session?: ClientSession;
1696
1652
  }
1697
1653
 
1698
- declare interface I_ErrorEntry {
1699
- type: E_ErrorType;
1700
- file: string;
1701
- message: string;
1702
- position?: string;
1703
- rule?: string;
1704
- }
1705
- export { I_ErrorEntry }
1706
- export { I_ErrorEntry as I_ErrorEntry_alias_1 }
1707
- export { I_ErrorEntry as I_ErrorEntry_alias_2 }
1708
-
1709
- declare interface I_ErrorEntry_2 {
1710
- type: E_ErrorType_2;
1711
- file: string;
1712
- message: string;
1713
- position?: string;
1714
- rule?: string;
1715
- }
1716
-
1717
1654
  declare interface I_EslintError {
1718
1655
  filePath: string;
1719
1656
  messages: Array<{
@@ -1862,6 +1799,25 @@ export { I_Input_UpdateOne }
1862
1799
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_1 }
1863
1800
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_2 }
1864
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
+
1865
1821
  declare interface I_LoadingContext {
1866
1822
  isLoading: boolean;
1867
1823
  isGlobalLoading: boolean;
@@ -1896,6 +1852,49 @@ declare interface I_LoadingProps_2 {
1896
1852
  message?: string;
1897
1853
  }
1898
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
+ printBoxedLog: (title: string, issues: I_IssueEntry[], color?: string) => void;
1871
+ }
1872
+ export { I_Log }
1873
+ export { I_Log as I_Log_alias_1 }
1874
+ export { I_Log as I_Log_alias_2 }
1875
+
1876
+ declare interface I_Log_2 {
1877
+ silent: typeof consola['silent'];
1878
+ level: typeof consola['level'];
1879
+ fatal: typeof consola['fatal'];
1880
+ error: typeof consola['error'];
1881
+ warn: typeof consola['warn'];
1882
+ log: typeof consola['log'];
1883
+ info: typeof consola['info'];
1884
+ success: typeof consola['success'];
1885
+ ready: typeof consola['ready'];
1886
+ start: typeof consola['start'];
1887
+ box: typeof consola['box'];
1888
+ debug: typeof consola['debug'];
1889
+ trace: typeof consola['trace'];
1890
+ verbose: typeof consola['verbose'];
1891
+ printBoxedLog: (
1892
+ title: string,
1893
+ issues: I_IssueEntry_2[],
1894
+ color?: string,
1895
+ ) => void;
1896
+ }
1897
+
1899
1898
  declare interface I_MongooseModelMiddleware<T extends Partial<C_Document>> {
1900
1899
  method: T_MongooseMiddlewareMethod;
1901
1900
  pre?: T_MongooseMiddlewarePreFunction<T & T_QueryWithHelpers<T>>;
@@ -2142,6 +2141,11 @@ export { LoadingProvider }
2142
2141
  export { LoadingProvider as LoadingProvider_alias_1 }
2143
2142
  export { LoadingProvider as LoadingProvider_alias_2 }
2144
2143
 
2144
+ declare const log: I_Log_2;
2145
+ export { log }
2146
+ export { log as log_alias_1 }
2147
+ export { log as log_alias_2 }
2148
+
2145
2149
  export declare function mergeConfigs(type: T_ConfigType_2, ...configs: T_Object_2[]): T_Object_2;
2146
2150
 
2147
2151
  declare const mongo: {
@@ -2344,8 +2348,6 @@ export { PNPM_LOCK_YAML }
2344
2348
  export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_1 }
2345
2349
  export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_2 }
2346
2350
 
2347
- declare function printBoxedLog<T extends string | I_ErrorEntry_2[]>(title: string, content: T, { color, padding, margin, borderStyle, titleColor, }?: I_BoxedLogOptions_2): void;
2348
-
2349
2351
  declare function rawCommand(cmd: string): {
2350
2352
  raw: boolean;
2351
2353
  cmd: string;
@@ -2651,7 +2653,7 @@ export { RESPONSE_STATUS }
2651
2653
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_1 }
2652
2654
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_2 }
2653
2655
 
2654
- declare function rmSync(filePaths: string[]): void;
2656
+ declare function rmSync(...paths: string[]): void;
2655
2657
  export { rmSync }
2656
2658
  export { rmSync as rmSync_alias_1 }
2657
2659
  export { rmSync as rmSync_alias_2 }
@@ -2994,7 +2996,7 @@ export { T_QueryWithHelpers as T_QueryWithHelpers_alias_2 }
2994
2996
 
2995
2997
  declare type T_QueryWithHelpers_2<T> = QueryWithHelpers<T, T>;
2996
2998
 
2997
- declare interface T_ThrowResponseArgs {
2999
+ declare interface T_ThrowError {
2998
3000
  message?: string;
2999
3001
  status?: {
3000
3002
  CODE: string | number;
@@ -3002,11 +3004,11 @@ declare interface T_ThrowResponseArgs {
3002
3004
  };
3003
3005
  type?: 'graphql' | 'rest';
3004
3006
  }
3005
- export { T_ThrowResponseArgs }
3006
- export { T_ThrowResponseArgs as T_ThrowResponseArgs_alias_1 }
3007
- export { T_ThrowResponseArgs as T_ThrowResponseArgs_alias_2 }
3007
+ export { T_ThrowError }
3008
+ export { T_ThrowError as T_ThrowError_alias_1 }
3009
+ export { T_ThrowError as T_ThrowError_alias_2 }
3008
3010
 
3009
- declare interface T_ThrowResponseArgs_2 {
3011
+ declare interface T_ThrowError_2 {
3010
3012
  message?: string;
3011
3013
  status?: {
3012
3014
  CODE: string | number;
@@ -3036,10 +3038,10 @@ export { T_WithId as T_WithId_alias_2 }
3036
3038
 
3037
3039
  declare type T_WithId_2<T> = WithId<T>;
3038
3040
 
3039
- declare function throwResponse({ message, status, type, }: T_ThrowResponseArgs_2): never;
3040
- export { throwResponse }
3041
- export { throwResponse as throwResponse_alias_1 }
3042
- export { throwResponse as throwResponse_alias_2 }
3041
+ declare function throwError({ message, status, type, }: T_ThrowError_2): never;
3042
+ export { throwError }
3043
+ export { throwError as throwError_alias_1 }
3044
+ export { throwError as throwError_alias_2 }
3043
3045
 
3044
3046
  declare const TSC_CLI = "tsc";
3045
3047
  export { TSC_CLI }