@cyberskill/shared 1.32.0 → 1.33.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 (123) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/nodejs/index.cjs +1 -1
  4. package/dist/nodejs/index.js +1 -1
  5. package/dist/nodejs/mongo.cjs +1 -1
  6. package/dist/nodejs/mongo.js +1 -1
  7. package/dist/utils/index-nodejs.cjs +1 -1
  8. package/dist/utils/index-nodejs.js +1 -1
  9. package/dist/utils/index.cjs +1 -1
  10. package/dist/utils/index.js +1 -1
  11. package/dist/utils/mongoose.cjs +1 -1
  12. package/dist/utils/mongoose.js +1 -1
  13. package/package.json +1 -1
  14. package/dist/commands.d.cts +0 -1
  15. package/dist/commands.d.ts +0 -1
  16. package/dist/configs/commitlint/base.d.cts +0 -5
  17. package/dist/configs/commitlint/base.d.ts +0 -5
  18. package/dist/configs/eslint/base.d.cts +0 -1154
  19. package/dist/configs/eslint/base.d.ts +0 -1154
  20. package/dist/configs/eslint/nestjs.d.cts +0 -1156
  21. package/dist/configs/eslint/nestjs.d.ts +0 -1156
  22. package/dist/configs/eslint/nextjs.d.cts +0 -1156
  23. package/dist/configs/eslint/nextjs.d.ts +0 -1156
  24. package/dist/configs/eslint/nodejs.d.cts +0 -1156
  25. package/dist/configs/eslint/nodejs.d.ts +0 -1156
  26. package/dist/configs/eslint/vite-react.d.cts +0 -1157
  27. package/dist/configs/eslint/vite-react.d.ts +0 -1157
  28. package/dist/configs/graphql/graphql-codegen.d.cts +0 -6
  29. package/dist/configs/graphql/graphql-codegen.d.ts +0 -6
  30. package/dist/configs/graphql/index.d.cts +0 -3
  31. package/dist/configs/graphql/index.d.ts +0 -3
  32. package/dist/configs/i18n/react/i18next.d.cts +0 -6
  33. package/dist/configs/i18n/react/i18next.d.ts +0 -6
  34. package/dist/configs/i18n/react/index.d.cts +0 -2
  35. package/dist/configs/i18n/react/index.d.ts +0 -2
  36. package/dist/configs/index.d.cts +0 -9
  37. package/dist/configs/index.d.ts +0 -9
  38. package/dist/configs/lint-staged/base.d.cts +0 -5
  39. package/dist/configs/lint-staged/base.d.ts +0 -5
  40. package/dist/configs/vitest/react/e2e.d.cts +0 -5
  41. package/dist/configs/vitest/react/e2e.d.ts +0 -5
  42. package/dist/configs/vitest/react/unit.d.cts +0 -5
  43. package/dist/configs/vitest/react/unit.d.ts +0 -5
  44. package/dist/configs/vitest/react/unit.setup.d.cts +0 -2
  45. package/dist/configs/vitest/react/unit.setup.d.ts +0 -2
  46. package/dist/constants/index.d.cts +0 -2
  47. package/dist/constants/index.d.ts +0 -2
  48. package/dist/constants/path.d.cts +0 -4
  49. package/dist/constants/path.d.ts +0 -4
  50. package/dist/constants/response-status.d.cts +0 -252
  51. package/dist/constants/response-status.d.ts +0 -252
  52. package/dist/index.d.cts +0 -40
  53. package/dist/index.d.ts +0 -40
  54. package/dist/nodejs/index.d.cts +0 -5
  55. package/dist/nodejs/index.d.ts +0 -5
  56. package/dist/nodejs/mongo.d.cts +0 -55
  57. package/dist/nodejs/mongo.d.ts +0 -55
  58. package/dist/nodejs/mongoose.d.cts +0 -25
  59. package/dist/nodejs/mongoose.d.ts +0 -25
  60. package/dist/react/apollo-client.d.cts +0 -9
  61. package/dist/react/apollo-client.d.ts +0 -9
  62. package/dist/react/index.d.cts +0 -15
  63. package/dist/react/index.d.ts +0 -15
  64. package/dist/react/loading.d.cts +0 -13
  65. package/dist/react/loading.d.ts +0 -13
  66. package/dist/react/loading.module.d.cts +0 -2
  67. package/dist/react/loading.module.d.ts +0 -2
  68. package/dist/react/next-intl.d.cts +0 -28
  69. package/dist/react/next-intl.d.ts +0 -28
  70. package/dist/react/storage.d.cts +0 -5
  71. package/dist/react/storage.d.ts +0 -5
  72. package/dist/styles/reset.d.cts +0 -2
  73. package/dist/styles/reset.d.ts +0 -2
  74. package/dist/typescript/apollo.d.cts +0 -21
  75. package/dist/typescript/apollo.d.ts +0 -21
  76. package/dist/typescript/command.d.cts +0 -30
  77. package/dist/typescript/command.d.ts +0 -30
  78. package/dist/typescript/config.d.cts +0 -5
  79. package/dist/typescript/config.d.ts +0 -5
  80. package/dist/typescript/graphql-codegen.d.cts +0 -12
  81. package/dist/typescript/graphql-codegen.d.ts +0 -12
  82. package/dist/typescript/index.d.cts +0 -16
  83. package/dist/typescript/index.d.ts +0 -16
  84. package/dist/typescript/loading.d.cts +0 -8
  85. package/dist/typescript/loading.d.ts +0 -8
  86. package/dist/typescript/log.d.cts +0 -10
  87. package/dist/typescript/log.d.ts +0 -10
  88. package/dist/typescript/mongoose.d.cts +0 -163
  89. package/dist/typescript/mongoose.d.ts +0 -163
  90. package/dist/typescript/next-intl.d.cts +0 -23
  91. package/dist/typescript/next-intl.d.ts +0 -23
  92. package/dist/typescript/react.d.cts +0 -11
  93. package/dist/typescript/react.d.ts +0 -11
  94. package/dist/typescript/serializer.d.cts +0 -6
  95. package/dist/typescript/serializer.d.ts +0 -6
  96. package/dist/utils/command.d.cts +0 -17
  97. package/dist/utils/command.d.ts +0 -17
  98. package/dist/utils/common.d.cts +0 -5
  99. package/dist/utils/common.d.ts +0 -5
  100. package/dist/utils/config.d.cts +0 -5
  101. package/dist/utils/config.d.ts +0 -5
  102. package/dist/utils/datetime.d.cts +0 -3
  103. package/dist/utils/datetime.d.ts +0 -3
  104. package/dist/utils/fs.d.cts +0 -3
  105. package/dist/utils/fs.d.ts +0 -3
  106. package/dist/utils/index-nodejs.d.cts +0 -11
  107. package/dist/utils/index-nodejs.d.ts +0 -11
  108. package/dist/utils/index.d.cts +0 -10
  109. package/dist/utils/index.d.ts +0 -10
  110. package/dist/utils/log.d.cts +0 -5
  111. package/dist/utils/log.d.ts +0 -5
  112. package/dist/utils/mongoose.d.cts +0 -19
  113. package/dist/utils/mongoose.d.ts +0 -19
  114. package/dist/utils/npm-package.d.cts +0 -6
  115. package/dist/utils/npm-package.d.ts +0 -6
  116. package/dist/utils/serializer.d.cts +0 -5
  117. package/dist/utils/serializer.d.ts +0 -5
  118. package/dist/utils/storage-client.d.cts +0 -8
  119. package/dist/utils/storage-client.d.ts +0 -8
  120. package/dist/utils/storage-server.d.cts +0 -11
  121. package/dist/utils/storage-server.d.ts +0 -11
  122. package/dist/utils/validate.d.cts +0 -14
  123. package/dist/utils/validate.d.ts +0 -14
@@ -1,6 +0,0 @@
1
- import { CodegenConfig } from '@graphql-codegen/cli';
2
- import { I_GraphqlCodegenConfig } from '../../typescript/graphql-codegen.cjs';
3
-
4
- declare function createGraphqlCodegenConfig({ uri, from, to, withComponent, withHOC, withHooks, withMutationFn, withRefetchFn, }: I_GraphqlCodegenConfig): CodegenConfig;
5
-
6
- export { createGraphqlCodegenConfig };
@@ -1,6 +0,0 @@
1
- import { CodegenConfig } from '@graphql-codegen/cli';
2
- import { I_GraphqlCodegenConfig } from '../../typescript/graphql-codegen.js';
3
-
4
- declare function createGraphqlCodegenConfig({ uri, from, to, withComponent, withHOC, withHooks, withMutationFn, withRefetchFn, }: I_GraphqlCodegenConfig): CodegenConfig;
5
-
6
- export { createGraphqlCodegenConfig };
@@ -1,3 +0,0 @@
1
- export { createGraphqlCodegenConfig } from './graphql-codegen.cjs';
2
- import '@graphql-codegen/cli';
3
- import '../../typescript/graphql-codegen.cjs';
@@ -1,3 +0,0 @@
1
- export { createGraphqlCodegenConfig } from './graphql-codegen.js';
2
- import '@graphql-codegen/cli';
3
- import '../../typescript/graphql-codegen.js';
@@ -1,6 +0,0 @@
1
- import * as i18next from 'i18next';
2
- import { InitOptions } from 'i18next';
3
-
4
- declare function initI18Next(options: InitOptions): Promise<i18next.TFunction<"translation", undefined>>;
5
-
6
- export { initI18Next };
@@ -1,6 +0,0 @@
1
- import * as i18next from 'i18next';
2
- import { InitOptions } from 'i18next';
3
-
4
- declare function initI18Next(options: InitOptions): Promise<i18next.TFunction<"translation", undefined>>;
5
-
6
- export { initI18Next };
@@ -1,2 +0,0 @@
1
- export { initI18Next } from './i18next.cjs';
2
- import 'i18next';
@@ -1,2 +0,0 @@
1
- export { initI18Next } from './i18next.js';
2
- import 'i18next';
@@ -1,9 +0,0 @@
1
- import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
- import * as _antfu_eslint_config from '@antfu/eslint-config';
3
- import { I_Config } from '../typescript/config.cjs';
4
-
5
- declare const _default: {
6
- merge: (type?: string, ...configs: I_Config[]) => I_Config | eslint_flat_config_utils.FlatConfigComposer<_antfu_eslint_config.TypedFlatConfigItem, _antfu_eslint_config.ConfigNames>;
7
- };
8
-
9
- export { _default as default };
@@ -1,9 +0,0 @@
1
- import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
- import * as _antfu_eslint_config from '@antfu/eslint-config';
3
- import { I_Config } from '../typescript/config.js';
4
-
5
- declare const _default: {
6
- merge: (type?: string, ...configs: I_Config[]) => I_Config | eslint_flat_config_utils.FlatConfigComposer<_antfu_eslint_config.TypedFlatConfigItem, _antfu_eslint_config.ConfigNames>;
7
- };
8
-
9
- export { _default as default };
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- '*': string[];
3
- };
4
-
5
- export { _default as default };
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- '*': string[];
3
- };
4
-
5
- export { _default as default };
@@ -1,5 +0,0 @@
1
- import { UserConfig } from 'vite';
2
-
3
- declare const _default: (options: UserConfig) => UserConfig;
4
-
5
- export { _default as default };
@@ -1,5 +0,0 @@
1
- import { UserConfig } from 'vite';
2
-
3
- declare const _default: (options: UserConfig) => UserConfig;
4
-
5
- export { _default as default };
@@ -1,5 +0,0 @@
1
- import { UserConfig } from 'vite';
2
-
3
- declare const _default: (options: UserConfig) => UserConfig;
4
-
5
- export { _default as default };
@@ -1,5 +0,0 @@
1
- import { UserConfig } from 'vite';
2
-
3
- declare const _default: (options: UserConfig) => UserConfig;
4
-
5
- export { _default as default };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
- export { PROJECT_ROOT, WORKING_DIRECTORY } from './path.cjs';
2
- export { RESPONSE_STATUS } from './response-status.cjs';
@@ -1,2 +0,0 @@
1
- export { PROJECT_ROOT, WORKING_DIRECTORY } from './path.js';
2
- export { RESPONSE_STATUS } from './response-status.js';
@@ -1,4 +0,0 @@
1
- declare const PROJECT_ROOT: string;
2
- declare const WORKING_DIRECTORY: string;
3
-
4
- export { PROJECT_ROOT, WORKING_DIRECTORY };
@@ -1,4 +0,0 @@
1
- declare const PROJECT_ROOT: string;
2
- declare const WORKING_DIRECTORY: string;
3
-
4
- export { PROJECT_ROOT, WORKING_DIRECTORY };
@@ -1,252 +0,0 @@
1
- declare const RESPONSE_STATUS: {
2
- GRAPHQL_PARSE_FAILED: {
3
- CODE: string;
4
- MESSAGE: string;
5
- };
6
- GRAPHQL_VALIDATION_FAILED: {
7
- CODE: string;
8
- MESSAGE: string;
9
- };
10
- BAD_USER_INPUT: {
11
- CODE: string;
12
- MESSAGE: string;
13
- };
14
- PERSISTED_QUERY_NOT_FOUND: {
15
- CODE: string;
16
- MESSAGE: string;
17
- };
18
- PERSISTED_QUERY_NOT_SUPPORTED: {
19
- CODE: string;
20
- MESSAGE: string;
21
- };
22
- OPERATION_RESOLUTION_FAILURE: {
23
- CODE: string;
24
- MESSAGE: string;
25
- };
26
- CONTINUE: {
27
- CODE: number;
28
- MESSAGE: string;
29
- };
30
- SWITCHING_PROTOCOLS: {
31
- CODE: number;
32
- MESSAGE: string;
33
- };
34
- PROCESSING: {
35
- CODE: number;
36
- MESSAGE: string;
37
- };
38
- OK: {
39
- CODE: number;
40
- MESSAGE: string;
41
- };
42
- CREATED: {
43
- CODE: number;
44
- MESSAGE: string;
45
- };
46
- ACCEPTED: {
47
- CODE: number;
48
- MESSAGE: string;
49
- };
50
- NON_AUTHORITATIVE_INFORMATION: {
51
- CODE: number;
52
- MESSAGE: string;
53
- };
54
- NO_CONTENT: {
55
- CODE: number;
56
- MESSAGE: string;
57
- };
58
- RESET_CONTENT: {
59
- CODE: number;
60
- MESSAGE: string;
61
- };
62
- PARTIAL_CONTENT: {
63
- CODE: number;
64
- MESSAGE: string;
65
- };
66
- MULTI_STATUS: {
67
- CODE: number;
68
- MESSAGE: string;
69
- };
70
- MULTIPLE_CHOICES: {
71
- CODE: number;
72
- MESSAGE: string;
73
- };
74
- MOVED_PERMANENTLY: {
75
- CODE: number;
76
- MESSAGE: string;
77
- };
78
- MOVED_TEMPORARILY: {
79
- CODE: number;
80
- MESSAGE: string;
81
- };
82
- SEE_OTHER: {
83
- CODE: number;
84
- MESSAGE: string;
85
- };
86
- NOT_MODIFIED: {
87
- CODE: number;
88
- MESSAGE: string;
89
- };
90
- USE_PROXY: {
91
- CODE: number;
92
- MESSAGE: string;
93
- };
94
- TEMPORARY_REDIRECT: {
95
- CODE: number;
96
- MESSAGE: string;
97
- };
98
- PERMANENT_REDIRECT: {
99
- CODE: number;
100
- MESSAGE: string;
101
- };
102
- BAD_REQUEST: {
103
- CODE: number;
104
- MESSAGE: string;
105
- };
106
- UNAUTHORIZED: {
107
- CODE: number;
108
- MESSAGE: string;
109
- };
110
- PAYMENT_REQUIRED: {
111
- CODE: number;
112
- MESSAGE: string;
113
- };
114
- FORBIDDEN: {
115
- CODE: number;
116
- MESSAGE: string;
117
- };
118
- NOT_FOUND: {
119
- CODE: number;
120
- MESSAGE: string;
121
- };
122
- METHOD_NOT_ALLOWED: {
123
- CODE: number;
124
- MESSAGE: string;
125
- };
126
- NOT_ACCEPTABLE: {
127
- CODE: number;
128
- MESSAGE: string;
129
- };
130
- PROXY_AUTHENTICATION_REQUIRED: {
131
- CODE: number;
132
- MESSAGE: string;
133
- };
134
- REQUEST_TIMEOUT: {
135
- CODE: number;
136
- MESSAGE: string;
137
- };
138
- CONFLICT: {
139
- CODE: number;
140
- MESSAGE: string;
141
- };
142
- GONE: {
143
- CODE: number;
144
- MESSAGE: string;
145
- };
146
- LENGTH_REQUIRED: {
147
- CODE: number;
148
- MESSAGE: string;
149
- };
150
- PRECONDITION_FAILED: {
151
- CODE: number;
152
- MESSAGE: string;
153
- };
154
- REQUEST_TOO_LONG: {
155
- CODE: number;
156
- MESSAGE: string;
157
- };
158
- REQUEST_URI_TOO_LONG: {
159
- CODE: number;
160
- MESSAGE: string;
161
- };
162
- UNSUPPORTED_MEDIA_TYPE: {
163
- CODE: number;
164
- MESSAGE: string;
165
- };
166
- REQUESTED_RANGE_NOT_SATISFIABLE: {
167
- CODE: number;
168
- MESSAGE: string;
169
- };
170
- EXPECTATION_FAILED: {
171
- CODE: number;
172
- MESSAGE: string;
173
- };
174
- IM_A_TEAPOT: {
175
- CODE: number;
176
- MESSAGE: string;
177
- };
178
- INSUFFICIENT_SPACE_ON_RESOURCE: {
179
- CODE: number;
180
- MESSAGE: string;
181
- };
182
- METHOD_FAILURE: {
183
- CODE: number;
184
- MESSAGE: string;
185
- };
186
- MISDIRECTED_REQUEST: {
187
- CODE: number;
188
- MESSAGE: string;
189
- };
190
- UNPROCESSABLE_ENTITY: {
191
- CODE: number;
192
- MESSAGE: string;
193
- };
194
- LOCKED: {
195
- CODE: number;
196
- MESSAGE: string;
197
- };
198
- FAILED_DEPENDENCY: {
199
- CODE: number;
200
- MESSAGE: string;
201
- };
202
- PRECONDITION_REQUIRED: {
203
- CODE: number;
204
- MESSAGE: string;
205
- };
206
- TOO_MANY_REQUESTS: {
207
- CODE: number;
208
- MESSAGE: string;
209
- };
210
- REQUEST_HEADER_FIELDS_TOO_LARGE: {
211
- CODE: number;
212
- MESSAGE: string;
213
- };
214
- UNAVAILABLE_FOR_LEGAL_REASONS: {
215
- CODE: number;
216
- MESSAGE: string;
217
- };
218
- INTERNAL_SERVER_ERROR: {
219
- CODE: number;
220
- MESSAGE: string;
221
- };
222
- NOT_IMPLEMENTED: {
223
- CODE: number;
224
- MESSAGE: string;
225
- };
226
- BAD_GATEWAY: {
227
- CODE: number;
228
- MESSAGE: string;
229
- };
230
- SERVICE_UNAVAILABLE: {
231
- CODE: number;
232
- MESSAGE: string;
233
- };
234
- GATEWAY_TIMEOUT: {
235
- CODE: number;
236
- MESSAGE: string;
237
- };
238
- HTTP_VERSION_NOT_SUPPORTED: {
239
- CODE: number;
240
- MESSAGE: string;
241
- };
242
- INSUFFICIENT_STORAGE: {
243
- CODE: number;
244
- MESSAGE: string;
245
- };
246
- NETWORK_AUTHENTICATION_REQUIRED: {
247
- CODE: number;
248
- MESSAGE: string;
249
- };
250
- };
251
-
252
- export { RESPONSE_STATUS };
@@ -1,252 +0,0 @@
1
- declare const RESPONSE_STATUS: {
2
- GRAPHQL_PARSE_FAILED: {
3
- CODE: string;
4
- MESSAGE: string;
5
- };
6
- GRAPHQL_VALIDATION_FAILED: {
7
- CODE: string;
8
- MESSAGE: string;
9
- };
10
- BAD_USER_INPUT: {
11
- CODE: string;
12
- MESSAGE: string;
13
- };
14
- PERSISTED_QUERY_NOT_FOUND: {
15
- CODE: string;
16
- MESSAGE: string;
17
- };
18
- PERSISTED_QUERY_NOT_SUPPORTED: {
19
- CODE: string;
20
- MESSAGE: string;
21
- };
22
- OPERATION_RESOLUTION_FAILURE: {
23
- CODE: string;
24
- MESSAGE: string;
25
- };
26
- CONTINUE: {
27
- CODE: number;
28
- MESSAGE: string;
29
- };
30
- SWITCHING_PROTOCOLS: {
31
- CODE: number;
32
- MESSAGE: string;
33
- };
34
- PROCESSING: {
35
- CODE: number;
36
- MESSAGE: string;
37
- };
38
- OK: {
39
- CODE: number;
40
- MESSAGE: string;
41
- };
42
- CREATED: {
43
- CODE: number;
44
- MESSAGE: string;
45
- };
46
- ACCEPTED: {
47
- CODE: number;
48
- MESSAGE: string;
49
- };
50
- NON_AUTHORITATIVE_INFORMATION: {
51
- CODE: number;
52
- MESSAGE: string;
53
- };
54
- NO_CONTENT: {
55
- CODE: number;
56
- MESSAGE: string;
57
- };
58
- RESET_CONTENT: {
59
- CODE: number;
60
- MESSAGE: string;
61
- };
62
- PARTIAL_CONTENT: {
63
- CODE: number;
64
- MESSAGE: string;
65
- };
66
- MULTI_STATUS: {
67
- CODE: number;
68
- MESSAGE: string;
69
- };
70
- MULTIPLE_CHOICES: {
71
- CODE: number;
72
- MESSAGE: string;
73
- };
74
- MOVED_PERMANENTLY: {
75
- CODE: number;
76
- MESSAGE: string;
77
- };
78
- MOVED_TEMPORARILY: {
79
- CODE: number;
80
- MESSAGE: string;
81
- };
82
- SEE_OTHER: {
83
- CODE: number;
84
- MESSAGE: string;
85
- };
86
- NOT_MODIFIED: {
87
- CODE: number;
88
- MESSAGE: string;
89
- };
90
- USE_PROXY: {
91
- CODE: number;
92
- MESSAGE: string;
93
- };
94
- TEMPORARY_REDIRECT: {
95
- CODE: number;
96
- MESSAGE: string;
97
- };
98
- PERMANENT_REDIRECT: {
99
- CODE: number;
100
- MESSAGE: string;
101
- };
102
- BAD_REQUEST: {
103
- CODE: number;
104
- MESSAGE: string;
105
- };
106
- UNAUTHORIZED: {
107
- CODE: number;
108
- MESSAGE: string;
109
- };
110
- PAYMENT_REQUIRED: {
111
- CODE: number;
112
- MESSAGE: string;
113
- };
114
- FORBIDDEN: {
115
- CODE: number;
116
- MESSAGE: string;
117
- };
118
- NOT_FOUND: {
119
- CODE: number;
120
- MESSAGE: string;
121
- };
122
- METHOD_NOT_ALLOWED: {
123
- CODE: number;
124
- MESSAGE: string;
125
- };
126
- NOT_ACCEPTABLE: {
127
- CODE: number;
128
- MESSAGE: string;
129
- };
130
- PROXY_AUTHENTICATION_REQUIRED: {
131
- CODE: number;
132
- MESSAGE: string;
133
- };
134
- REQUEST_TIMEOUT: {
135
- CODE: number;
136
- MESSAGE: string;
137
- };
138
- CONFLICT: {
139
- CODE: number;
140
- MESSAGE: string;
141
- };
142
- GONE: {
143
- CODE: number;
144
- MESSAGE: string;
145
- };
146
- LENGTH_REQUIRED: {
147
- CODE: number;
148
- MESSAGE: string;
149
- };
150
- PRECONDITION_FAILED: {
151
- CODE: number;
152
- MESSAGE: string;
153
- };
154
- REQUEST_TOO_LONG: {
155
- CODE: number;
156
- MESSAGE: string;
157
- };
158
- REQUEST_URI_TOO_LONG: {
159
- CODE: number;
160
- MESSAGE: string;
161
- };
162
- UNSUPPORTED_MEDIA_TYPE: {
163
- CODE: number;
164
- MESSAGE: string;
165
- };
166
- REQUESTED_RANGE_NOT_SATISFIABLE: {
167
- CODE: number;
168
- MESSAGE: string;
169
- };
170
- EXPECTATION_FAILED: {
171
- CODE: number;
172
- MESSAGE: string;
173
- };
174
- IM_A_TEAPOT: {
175
- CODE: number;
176
- MESSAGE: string;
177
- };
178
- INSUFFICIENT_SPACE_ON_RESOURCE: {
179
- CODE: number;
180
- MESSAGE: string;
181
- };
182
- METHOD_FAILURE: {
183
- CODE: number;
184
- MESSAGE: string;
185
- };
186
- MISDIRECTED_REQUEST: {
187
- CODE: number;
188
- MESSAGE: string;
189
- };
190
- UNPROCESSABLE_ENTITY: {
191
- CODE: number;
192
- MESSAGE: string;
193
- };
194
- LOCKED: {
195
- CODE: number;
196
- MESSAGE: string;
197
- };
198
- FAILED_DEPENDENCY: {
199
- CODE: number;
200
- MESSAGE: string;
201
- };
202
- PRECONDITION_REQUIRED: {
203
- CODE: number;
204
- MESSAGE: string;
205
- };
206
- TOO_MANY_REQUESTS: {
207
- CODE: number;
208
- MESSAGE: string;
209
- };
210
- REQUEST_HEADER_FIELDS_TOO_LARGE: {
211
- CODE: number;
212
- MESSAGE: string;
213
- };
214
- UNAVAILABLE_FOR_LEGAL_REASONS: {
215
- CODE: number;
216
- MESSAGE: string;
217
- };
218
- INTERNAL_SERVER_ERROR: {
219
- CODE: number;
220
- MESSAGE: string;
221
- };
222
- NOT_IMPLEMENTED: {
223
- CODE: number;
224
- MESSAGE: string;
225
- };
226
- BAD_GATEWAY: {
227
- CODE: number;
228
- MESSAGE: string;
229
- };
230
- SERVICE_UNAVAILABLE: {
231
- CODE: number;
232
- MESSAGE: string;
233
- };
234
- GATEWAY_TIMEOUT: {
235
- CODE: number;
236
- MESSAGE: string;
237
- };
238
- HTTP_VERSION_NOT_SUPPORTED: {
239
- CODE: number;
240
- MESSAGE: string;
241
- };
242
- INSUFFICIENT_STORAGE: {
243
- CODE: number;
244
- MESSAGE: string;
245
- };
246
- NETWORK_AUTHENTICATION_REQUIRED: {
247
- CODE: number;
248
- MESSAGE: string;
249
- };
250
- };
251
-
252
- export { RESPONSE_STATUS };
package/dist/index.d.cts DELETED
@@ -1,40 +0,0 @@
1
- export { I_Config } from './typescript/config.cjs';
2
- export { PROJECT_ROOT, WORKING_DIRECTORY } from './constants/path.cjs';
3
- export { RESPONSE_STATUS } from './constants/response-status.cjs';
4
- export { MongoController } from './nodejs/mongo.cjs';
5
- export { MongooseController } from './nodejs/mongoose.cjs';
6
- export { ApolloProvider } from './react/apollo-client.cjs';
7
- export { Loading, LoadingContext, LoadingProvider, useLoading } from './react/loading.cjs';
8
- export { NextIntlContext, NextIntlProvider, useNextIntl, useTranslateNextIntl, withNextIntl } from './react/next-intl.cjs';
9
- export { useStorage } from './react/storage.cjs';
10
- export { I_ApolloOptions, I_ApolloProviderProps } from './typescript/apollo.cjs';
11
- export { E_ErrorType, I_BoxedLogOptions, I_ErrorEntry, I_EslintError } from './typescript/command.cjs';
12
- export { I_GraphqlCodegenConfig } from './typescript/graphql-codegen.cjs';
13
- export { I_LoadingProps } from './typescript/loading.cjs';
14
- export { T_ThrowResponseArgs } from './typescript/log.cjs';
15
- export { C_Collection, C_Db, C_Document, C_Model, I_DeleteOptionsExtended, I_ExtendedModel, I_GenerateModelOptions, I_GenerateSchemaOptions, I_GenericDocument, I_HookNextFunction, I_Input_CreateMany, I_Input_CreateOne, I_Input_DeleteMany, I_Input_DeleteOne, I_Input_FindAll, I_Input_FindOne, I_Input_FindPaging, I_Input_FindPagingAggregate, I_Input_UpdateMany, I_Input_UpdateOne, I_MongooseModelMiddleware, I_MongooseOptions, I_Return, I_ReturnFailure, I_ReturnSuccess, I_SlugifyOptions, I_UpdateOptionsExtended, T_AggregatePaginateResult, T_DeleteResult, T_Filter, T_FilterQuery, T_GenerateSlugQueryResponse, T_Input_MongooseSchema, T_Input_Populate, T_InsertManyOptions, T_InsertManyResult, T_InsertOneResult, T_MiddlewareContext, T_MongooseModelMiddlewareFunction, T_MongoosePlugin, T_MongooseShema, T_OptionalUnlessRequiredId, T_PaginateOptions, T_PaginateOptionsWithPopulate, T_PaginateResult, T_PipelineStage, T_PopulateOption, T_PopulateOptions, T_ProjectionType, T_QueryOptions, T_UpdateQuery, T_UpdateResult, T_WithId } from './typescript/mongoose.cjs';
16
- export { I_NextIntlContextType, I_NextIntlLanguage, T_NextIntlMessageList } from './typescript/next-intl.cjs';
17
- export { I_LoadingContext, T_Children } from './typescript/react.cjs';
18
- export { I_Serializer } from './typescript/serializer.cjs';
19
- export { clearAllErrorLists, commandLog, executeCommand, getStoredErrorLists, saveErrorListToStorage } from './utils/command.cjs';
20
- export { fileExists } from './utils/fs.cjs';
21
- export { generateModel, generateSchema, generateShortId, generateSlug, generateSlugQuery, getMongoGenericFields } from './utils/mongoose.cjs';
22
- export { getLatestPackageVersion, isCurrentProject, isPackageOutdated, updatePackage } from './utils/npm-package.cjs';
23
- export { initNodePersist, storageDir, storageServer } from './utils/storage-server.cjs';
24
- export { isJson, regexSearchMapper, removeAccent } from './utils/common.cjs';
25
- export { deepMerge } from './utils/config.cjs';
26
- export { getMongoDateTime } from './utils/datetime.cjs';
27
- export { throwResponse } from './utils/log.cjs';
28
- export { serializer } from './utils/serializer.cjs';
29
- export { storageClient } from './utils/storage-client.cjs';
30
- export { validate } from './utils/validate.cjs';
31
- export { ApolloCache, ApolloClient, ApolloClientOptions } from '@apollo/client';
32
- export { default as aggregatePaginate } from 'mongoose-aggregate-paginate-v2';
33
- export { default as mongoosePaginate } from 'mongoose-paginate-v2';
34
- import 'react/jsx-runtime';
35
- import 'react';
36
- import 'use-intl';
37
- import 'mongodb';
38
- import 'mongoose';
39
- import 'date-fns';
40
- import 'next-intl';