alepha 0.11.5 → 0.11.7

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 (51) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +15 -100
  3. package/api/files.d.ts +168 -169
  4. package/api/jobs.d.ts +263 -154
  5. package/api/notifications.d.ts +28 -29
  6. package/api/users.d.ts +476 -477
  7. package/batch.d.ts +59 -493
  8. package/bucket.d.ts +20 -11
  9. package/cache/redis.d.ts +1 -1
  10. package/cache.d.ts +1 -1
  11. package/command.d.ts +24 -7
  12. package/core.d.ts +299 -222
  13. package/datetime.d.ts +4 -29
  14. package/devtools.d.ts +166 -284
  15. package/email.d.ts +45 -2
  16. package/fake.d.ts +1 -1
  17. package/file.d.ts +1 -1
  18. package/lock/redis.d.ts +1 -1
  19. package/lock.d.ts +1 -1
  20. package/logger.d.ts +11 -9
  21. package/package.json +51 -51
  22. package/postgres.d.ts +480 -198
  23. package/queue/redis.d.ts +1 -1
  24. package/queue.d.ts +1 -1
  25. package/react/auth.d.ts +7 -2
  26. package/react/form.d.ts +39 -16
  27. package/react/head.d.ts +1 -1
  28. package/react/i18n.d.ts +2 -2
  29. package/react.d.ts +66 -41
  30. package/redis.d.ts +1 -1
  31. package/retry.d.ts +84 -21
  32. package/scheduler.d.ts +1 -1
  33. package/security.d.ts +29 -29
  34. package/server/cache.d.ts +1 -1
  35. package/server/compress.d.ts +9 -3
  36. package/server/cookies.d.ts +1 -1
  37. package/server/cors.d.ts +28 -10
  38. package/server/health.d.ts +18 -19
  39. package/server/helmet.d.ts +44 -15
  40. package/server/links.d.ts +37 -31
  41. package/server/metrics.d.ts +1 -1
  42. package/server/multipart.d.ts +1 -1
  43. package/server/proxy.d.ts +1 -1
  44. package/server/security.d.ts +8 -3
  45. package/server/static.d.ts +1 -1
  46. package/server/swagger.d.ts +19 -6
  47. package/server.d.ts +1 -1
  48. package/topic/redis.d.ts +1 -1
  49. package/topic.d.ts +1 -1
  50. package/ui.d.ts +142 -12
  51. package/vite.d.ts +2 -2
package/cache.d.ts CHANGED
@@ -282,7 +282,7 @@ declare class MemoryCacheProvider implements CacheProvider {
282
282
  * @see {@link CacheProvider}
283
283
  * @module alepha.cache
284
284
  */
285
- declare const AlephaCache: _alepha_core0.Service<_alepha_core0.Module<{}>>;
285
+ declare const AlephaCache: _alepha_core0.Service<_alepha_core0.Module>;
286
286
  //#endregion
287
287
  export { $cache, AlephaCache, CacheDescriptor, CacheDescriptorFn, CacheDescriptorOptions, CacheProvider, MemoryCacheProvider };
288
288
  //# sourceMappingURL=index.d.ts.map
package/command.d.ts CHANGED
@@ -177,6 +177,20 @@ declare const envSchema: TObject<{
177
177
  declare module "alepha" {
178
178
  interface Env extends Partial<Static<typeof envSchema>> {}
179
179
  }
180
+ /**
181
+ * CLI provider configuration atom
182
+ */
183
+ declare const cliOptions: _alepha_core1.Atom<TObject<{
184
+ name: typebox0.TOptional<_alepha_core1.TString>;
185
+ description: typebox0.TOptional<_alepha_core1.TString>;
186
+ argv: typebox0.TOptional<typebox0.TArray<_alepha_core1.TString>>;
187
+ }>, "alepha.command.cli.options">;
188
+ type CliProviderOptions = Static<typeof cliOptions.schema>;
189
+ declare module "alepha" {
190
+ interface State {
191
+ [cliOptions.key]: CliProviderOptions;
192
+ }
193
+ }
180
194
  declare class CliProvider {
181
195
  protected readonly env: {
182
196
  CLI_NAME: string;
@@ -186,11 +200,14 @@ declare class CliProvider {
186
200
  protected readonly log: _alepha_logger0.Logger;
187
201
  protected readonly runner: Runner;
188
202
  protected readonly asker: Asker;
189
- options: {
190
- name: string;
191
- description: string;
192
- argv: string[];
193
- };
203
+ protected readonly options: Readonly<{
204
+ description?: string | undefined;
205
+ name?: string | undefined;
206
+ argv?: string[] | undefined;
207
+ }>;
208
+ protected get name(): string;
209
+ protected get description(): string;
210
+ protected get argv(): string[];
194
211
  protected readonly globalFlags: {
195
212
  help: {
196
213
  aliases: string[];
@@ -234,7 +251,7 @@ declare class CliProvider {
234
251
  * @see {@link $command}
235
252
  * @module alepha.command
236
253
  */
237
- declare const AlephaCommand: _alepha_core1.Service<_alepha_core1.Module<{}>>;
254
+ declare const AlephaCommand: _alepha_core1.Service<_alepha_core1.Module>;
238
255
  declare module "typebox" {
239
256
  interface StringOptions {
240
257
  /**
@@ -248,5 +265,5 @@ declare module "typebox" {
248
265
  //# sourceMappingURL=index.d.ts.map
249
266
 
250
267
  //#endregion
251
- export { $command, AlephaCommand, AskMethod, AskOptions, Asker, CliProvider, CommandDescriptor, CommandDescriptorOptions, CommandError, CommandHandlerArgs, RunOptions, Runner, RunnerMethod, Task };
268
+ export { $command, AlephaCommand, AskMethod, AskOptions, Asker, CliProvider, CliProviderOptions, CommandDescriptor, CommandDescriptorOptions, CommandError, CommandHandlerArgs, RunOptions, Runner, RunnerMethod, Task, cliOptions };
252
269
  //# sourceMappingURL=index.d.ts.map