@stacksjs/types 0.53.1 → 0.56.21

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 (47) hide show
  1. package/dist/cli.mjs +5 -3
  2. package/dist/cron-jobs.mjs +12 -0
  3. package/dist/errors.mjs +7 -1
  4. package/dist/index.mjs +2 -1
  5. package/dist/queue.mjs +0 -0
  6. package/package.json +25 -18
  7. package/dist/app.d.ts +0 -108
  8. package/dist/auto-imports.d.ts +0 -1
  9. package/dist/build.d.ts +0 -2
  10. package/dist/cache.d.ts +0 -69
  11. package/dist/cdn.d.ts +0 -15
  12. package/dist/cli.d.ts +0 -278
  13. package/dist/components.d.ts +0 -60
  14. package/dist/cron-jobs.d.ts +0 -16
  15. package/dist/database.d.ts +0 -32
  16. package/dist/debug.d.ts +0 -6
  17. package/dist/deploy.d.ts +0 -9
  18. package/dist/dns.d.ts +0 -43
  19. package/dist/docs.d.ts +0 -3
  20. package/dist/errors.d.ts +0 -1
  21. package/dist/events.d.ts +0 -22
  22. package/dist/exit-code.d.ts +0 -10
  23. package/dist/fs.d.ts +0 -27
  24. package/dist/git.d.ts +0 -128
  25. package/dist/hashing.d.ts +0 -102
  26. package/dist/i18n.d.ts +0 -19
  27. package/dist/index.d.ts +0 -39
  28. package/dist/inspect.d.ts +0 -9
  29. package/dist/layout.d.ts +0 -7
  30. package/dist/library.d.ts +0 -132
  31. package/dist/manifest.d.ts +0 -9
  32. package/dist/markdown.d.ts +0 -167
  33. package/dist/model.d.ts +0 -40
  34. package/dist/notifications.d.ts +0 -164
  35. package/dist/pages.d.ts +0 -10
  36. package/dist/payments.d.ts +0 -59
  37. package/dist/promise.d.ts +0 -1
  38. package/dist/pwa.d.ts +0 -7
  39. package/dist/reactivity.d.ts +0 -1
  40. package/dist/router.d.ts +0 -42
  41. package/dist/search-engine.d.ts +0 -143
  42. package/dist/ssg.d.ts +0 -2
  43. package/dist/stacks.d.ts +0 -163
  44. package/dist/tables.d.ts +0 -52
  45. package/dist/ui.d.ts +0 -180
  46. package/dist/utils.d.ts +0 -30
  47. /package/dist/{markdown.mjs → money.mjs} +0 -0
@@ -1,60 +0,0 @@
1
- export type { Options as ComponentOptions } from 'unplugin-vue-components';
2
- export interface TagOption {
3
- /**
4
- * **Tag Name**
5
- *
6
- * This is the name of the component to be included in your library build.
7
- * When defining a tag, ensure that the name corresponds to a file within
8
- * root component directory.
9
- *
10
- * @example
11
- * {
12
- * tags: [{
13
- * name: 'HelloWorld' // results in `<HelloWorld />`
14
- * }]
15
- * }
16
- *
17
- * @example
18
- * {
19
- * tags: [{
20
- * name: ['HelloWorld', 'AppHelloWorld'] // results in `<AppHelloWorld />`
21
- * }]
22
- * }
23
- * @see https://stacksjs.dev/docs/components
24
- */
25
- name: string | string[];
26
- /**
27
- * **Tag Description**
28
- *
29
- * This is the description of your component. This value is
30
- * used when to provide additional information to IDEs.
31
- *
32
- * @example
33
- * {
34
- * name: 'HelloWorld' // results in `<HelloWorld />`
35
- * }
36
- * @see https://stacksjs.dev/docs/components
37
- */
38
- description?: string;
39
- /**
40
- * **Tag Attributes**
41
- *
42
- * These are your component's attributes. While it's an optional field, you should aim
43
- * to define all of your component attributes here, to provide as much context
44
- * to your IDEs as possible, when actually using the library as an end-user.
45
- *
46
- * @example
47
- * {
48
- * attributes: {
49
- * name: 'greeting',
50
- * description: 'The way to greet the user.',
51
- * }
52
- * }
53
- * @see https://stacksjs.dev/docs/components
54
- */
55
- attributes?: {
56
- name: string;
57
- description: string;
58
- }[];
59
- }
60
- export type TagsOptions = TagOption[];
@@ -1,16 +0,0 @@
1
- /**
2
- * Cron Job Options.
3
- */
4
- export interface CronJobOptions {
5
- /**
6
- * The name of the cron job.
7
- */
8
- name?: string;
9
- function: string;
10
- schedule: string;
11
- description?: string;
12
- enabled?: boolean;
13
- timezone?: string;
14
- }
15
- export type CronJob = CronJobOptions;
16
- export type CronJobs = CronJob[];
@@ -1,32 +0,0 @@
1
- import type { Model } from './model';
2
- export type DatabaseClient = any;
3
- export interface DatabaseOptions {
4
- driver: string;
5
- drivers: {
6
- mysql: {
7
- url?: string;
8
- host?: string;
9
- port?: number;
10
- client?: DatabaseClient;
11
- name: string;
12
- username?: string;
13
- password?: string;
14
- };
15
- planetscale: {};
16
- postgres: {};
17
- };
18
- }
19
- export interface FactoryOptions {
20
- name: string;
21
- count?: number;
22
- items: object;
23
- columns: object;
24
- }
25
- export interface SchemaOptions {
26
- database: string;
27
- }
28
- export interface DatabaseDriver {
29
- client: DatabaseClient;
30
- migrate: (models: Model[], path: string, options?: SchemaOptions) => Promise<void>;
31
- factory: (modelName: string, fileName: string, path: string) => Promise<void>;
32
- }
package/dist/debug.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export interface DebugOptions {
2
- driver?: string;
3
- enabled: boolean;
4
- host: string;
5
- port: number;
6
- }
package/dist/deploy.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * **Deploy Options**
3
- *
4
- * This configuration defines all of your deployment options. Because Stacks is fully-typed,
5
- * you may hover any of the options below and the definitions will be provided. In case
6
- * you have any questions, feel free to reach out via Discord or GitHub Discussions.
7
- */
8
- export interface DeployOptions {
9
- }
package/dist/dns.d.ts DELETED
@@ -1,43 +0,0 @@
1
- export interface ARecord {
2
- name: string | '@' | '*';
3
- address: string;
4
- ttl?: number | 'auto';
5
- }
6
- export interface CNameRecord {
7
- name: string;
8
- target: string;
9
- ttl: number | 'auto';
10
- }
11
- export interface MXRecord {
12
- name: string | '@';
13
- mailServer: string;
14
- ttl: number | 'auto';
15
- priority: number;
16
- }
17
- export interface TxtRecord {
18
- name: string | '@';
19
- ttl: number | 'auto';
20
- content: string;
21
- }
22
- export interface AAAARecord {
23
- name: string | '@' | '*';
24
- address: string;
25
- ttl: number | 'auto';
26
- }
27
- export type DnsRecord = ARecord | CNameRecord | MXRecord | TxtRecord | AAAARecord;
28
- /**
29
- * **DNS Options**
30
- *
31
- * This configuration defines all of your DNS options. Because Stacks is fully-typed,
32
- * you may hover any of the options below and the definitions will be provided. In case
33
- * you have any questions, feel free to reach out via Discord or GitHub Discussions.
34
- *
35
- * @see https://stacksjs.dev/docs/dns
36
- */
37
- export interface DnsOptions {
38
- a?: ARecord[];
39
- aaaa?: AAAARecord[];
40
- cname?: CNameRecord[];
41
- mx?: MXRecord[];
42
- txt?: TxtRecord[];
43
- }
package/dist/docs.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { UserConfig } from 'vitepress';
2
- export type DocsConfig = UserConfig;
3
- export type DocsOptions = DocsConfig;
package/dist/errors.d.ts DELETED
@@ -1 +0,0 @@
1
- export { Err, Ok, Result, ResultAsync, } from 'neverthrow';
package/dist/events.d.ts DELETED
@@ -1,22 +0,0 @@
1
- /**
2
- * **Events**
3
- *
4
- * This configuration defines all of your events. Because Stacks is fully-typed, you may
5
- * hover any of the options below and the definitions will be provided. In case you
6
- * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
- *
8
- * @example To fire an event, you may use any of the following approaches:
9
- * ```ts
10
- * useEvent('user:registered', { name: 'Chris'})
11
- * dispatch('user:registered', { name: 'Chris'})
12
- * ````
13
-
14
- * @example To capture an event, you may use any of the following approaches:
15
- * ```ts
16
- * useListen('user:registered', (user) => console.log(user))
17
- * listen('user:registered', (user) => console.log(user))
18
- * ```
19
- */
20
- export interface Events {
21
- [key: string]: any;
22
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * CLI exit codes.
3
- *
4
- * @see https://nodejs.org/api/process.html#process_exit_codes
5
- */
6
- export declare enum ExitCode {
7
- Success = 0,
8
- FatalError = 1,
9
- InvalidArgument = 9
10
- }
package/dist/fs.d.ts DELETED
@@ -1,27 +0,0 @@
1
- /**
2
- * Describes a plain-text file.
3
- */
4
- export interface TextFile {
5
- path: string;
6
- data: string;
7
- }
8
- /**
9
- * Describes a JSON file.
10
- */
11
- export interface JsonFile {
12
- path: string;
13
- data: unknown;
14
- indent: string;
15
- newline: string | undefined;
16
- }
17
- /**
18
- * Describes a package.json file.
19
- */
20
- export interface PackageJson {
21
- engines: {
22
- node: string;
23
- pnpm: string;
24
- };
25
- version: string;
26
- packageManager: string;
27
- }
package/dist/git.d.ts DELETED
@@ -1,128 +0,0 @@
1
- /**
2
- * **Git Options**
3
- *
4
- * This configuration defines all of your git options. Because Stacks is fully-typed, you may
5
- * hover any of the options below and the definitions will be provided. In case you
6
- * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
- */
8
- export interface GitOptions {
9
- /**
10
- * **Git Hooks**
11
- *
12
- * The git hooks to use.
13
- *
14
- * @see https://git-scm.com/docs/githooks
15
- * @example
16
- * ```ts
17
- * git: {
18
- * hooks: {
19
- * 'pre-commit': 'lint-staged',
20
- * }
21
- * }
22
- * ```
23
- */
24
- hooks: GitHooks;
25
- /**
26
- * **Git Commit Scopes**
27
- *
28
- * The git commit scopes to use.
29
- *
30
- * @see https://stacksjs.dev/docs/git/scopes
31
- * @example
32
- * git: [
33
- * scopes: [
34
- * '', 'ci', 'deps', 'dx', 'release', 'readme', 'test', 'actions', 'build', 'cli',
35
- * 'config', 'examples', 'functions', 'modules', 'pages', 'router', 'scripts',
36
- * 'ui', 'utils', 'arrays', 'collections', 'fs', 'objects', 'strings',
37
- * ]
38
- * ]
39
- */
40
- scopes: string[];
41
- /**
42
- * **Git Commit Types**
43
- *
44
- * The git commit types to use.
45
- *
46
- * @default array
47
- * @see https://stacksjs.dev/docs/git/types
48
- * @see https://www.conventionalcommits.org/en/v1.0.0/
49
- * @example
50
- * ```ts
51
- * git: [
52
- * types: [
53
- * 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test',
54
- * ]
55
- * ]
56
- * ```
57
- */
58
- types: {
59
- value: string;
60
- name: string;
61
- emoji: string;
62
- }[];
63
- /**
64
- * **Messages—Options**
65
- *
66
- * The git messages/prompts to use.
67
- *
68
- * @default object
69
- * @example
70
- * ```ts
71
- * messages: {
72
- * type: 'Select the type of change that you\'re committing:',
73
- * scope: 'Denote the SCOPE of this change:',
74
- * subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
75
- * body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
76
- * breaking: 'List any BREAKING CHANGES (optional):\n',
77
- * footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
78
- * confirmCommit: 'Are you sure you want to proceed with the commit above?',
79
- * }
80
- * ```
81
- * @see https://stacksjs.dev/docs/git/messages
82
- */
83
- messages: {
84
- type: string;
85
- scope: string;
86
- customScope: string;
87
- subject: string;
88
- body: string;
89
- breaking: string;
90
- footerPrefixesSelect: string;
91
- customFooterPrefixes: string;
92
- footer: string;
93
- confirmCommit: string;
94
- };
95
- }
96
- interface Hooks {
97
- 'applypatch-msg'?: string;
98
- 'pre-applypatch'?: string;
99
- 'post-applypatch'?: string;
100
- 'pre-commit'?: string;
101
- 'pre-merge-commit'?: string;
102
- 'prepare-commit-msg'?: string;
103
- 'commit-msg'?: string;
104
- 'post-commit'?: string;
105
- 'pre-rebase'?: string;
106
- 'post-checkout'?: string;
107
- 'post-merge'?: string;
108
- 'pre-push'?: string;
109
- 'pre-receive'?: string;
110
- 'update'?: string;
111
- 'proc-receive'?: string;
112
- 'post-receive'?: string;
113
- 'post-update'?: string;
114
- 'reference-transaction'?: string;
115
- 'push-to-checkout'?: string;
116
- 'pre-auto-gc'?: string;
117
- 'post-rewrite'?: string;
118
- 'sendemail-validate'?: string;
119
- 'fsmonitor-watchman'?: string;
120
- 'p4-changelist'?: string;
121
- 'p4-prepare-changelist'?: string;
122
- 'p4-post-changelist'?: string;
123
- 'p4-pre-submit'?: string;
124
- 'post-index-change'?: string;
125
- }
126
- export interface GitHooks extends Hooks {
127
- }
128
- export {};
package/dist/hashing.d.ts DELETED
@@ -1,102 +0,0 @@
1
- /**
2
- * The Stacks runtime provides secure Bcrypt & Argon2 hashing for storing user passwords.
3
- * If you are using one of the Laravel application starter kits, Bcrypt will be used for
4
- * registration and authentication by default.
5
- *
6
- * Bcrypt is a great choice for hashing passwords because its "work factor" is adjustable, which
7
- * means that the time it takes to generate a hash can be increased as hardware power increases.
8
- * When hashing passwords, slow is good. The longer an algorithm takes to hash a password, the
9
- * longer it takes malicious users to generate "rainbow tables" of all possible string hash
10
- * values that may be used in brute force attacks against applications.
11
- *
12
- * @see https://stacksjs.dev/docs/hashing
13
- */
14
- export interface HashingOptions {
15
- /**
16
- * **Hashing Driver**
17
- *
18
- * This option controls the default hash driver that will be used to hash
19
- * passwords for your application. By default, the bcrypt algorithm is
20
- * used; however, you remain free to modify this option if you wish.
21
- *
22
- * @see https://stacksjs.dev/docs/hashing
23
- */
24
- driver: 'argon' | 'bcrypt';
25
- /**
26
- * **Bcrypt Option**
27
- *
28
- * Here you may specify the configuration options that should be used when
29
- * passwords are hashed using the Bcrypt algorithm. This will allow you
30
- * to control the amount of time it takes to hash the given password.
31
- *
32
- * @see https://stacksjs.dev/docs/hashing
33
- */
34
- bcrypt?: BcryptOptions;
35
- /**
36
- * **Argon Options**
37
- *
38
- * Here you may specify the configuration options that should be used when
39
- * passwords are hashed using the Argon algorithm. These will allow you
40
- * to control the amount of time it takes to hash the given password.
41
- *
42
- * @see https://stacksjs.dev/docs/hashing
43
- */
44
- argon?: ArgonOptions;
45
- }
46
- /**
47
- * **Bcrypt Options**
48
- *
49
- * Here you may specify the configuration options that should be used when
50
- * passwords are hashed using the Bcrypt algorithm. This will allow you
51
- * to control the amount of time it takes to hash the given password.
52
- *
53
- * @see https://stacksjs.dev/docs/hashing
54
- */
55
- export interface BcryptOptions {
56
- /**
57
- * Bcrypt salt rounds.
58
- *
59
- * @default number 10
60
- * @see https://stacksjs.dev/docs/hashing
61
- */
62
- rounds?: number;
63
- }
64
- /**
65
- * **Argon Options**
66
- *
67
- * Here you may specify the configuration options that should be used when
68
- * passwords are hashed using the Argon algorithm. These will allow you
69
- * to control the amount of time it takes to hash the given password.
70
- *
71
- * @see https://stacksjs.dev/docs/hashing
72
- */
73
- export interface ArgonOptions {
74
- /**
75
- * **Argon Memory**
76
- *
77
- * Amount of memory (in kibibytes) to use.
78
- *
79
- * @default number 65536
80
- * @see https://stacksjs.dev/docs/hashing
81
- */
82
- memory?: number;
83
- /**
84
- * **Argon Parallelism**
85
- *
86
- * Degree of parallelism (i.e. number of threads).
87
- *
88
- * @default number 1
89
- * @see https://stacksjs.dev/docs/hashing
90
- */
91
- threads?: number;
92
- /**
93
- * **Argon time**
94
- *
95
- * Execution time.
96
- *
97
- * @default number 1
98
- * @see https://stacksjs.dev/docs/hashing
99
- */
100
- time?: number;
101
- }
102
- export type HashAlgorithm = 'md4' | 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'ripemd128' | 'ripemd160' | 'tiger128' | 'tiger160' | 'tiger192' | 'crc32' | 'crc32b';
package/dist/i18n.d.ts DELETED
@@ -1,19 +0,0 @@
1
- interface VitePluginVueI18nOptions {
2
- forceStringify?: boolean;
3
- runtimeOnly?: boolean;
4
- compositionOnly?: boolean;
5
- fullInstall?: boolean;
6
- include?: string | string[];
7
- defaultSFCLang?: 'json' | 'json5' | 'yml' | 'yaml';
8
- globalSFCScope?: boolean;
9
- useVueI18nImportName?: boolean;
10
- }
11
- /**
12
- * **Internationalization Options**
13
- *
14
- * The i18n option.
15
- *
16
- * @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
17
- */
18
- export type i18nOptions = VitePluginVueI18nOptions;
19
- export {};
package/dist/index.d.ts DELETED
@@ -1,39 +0,0 @@
1
- export * from './app';
2
- export * from './auto-imports';
3
- export * from './build';
4
- export * from './cache';
5
- export * from './cdn';
6
- export * from './cli';
7
- export * from './components';
8
- export * from './cron-jobs';
9
- export * from './database';
10
- export * from './debug';
11
- export * from './deploy';
12
- export * from './dns';
13
- export * from './docs';
14
- export * from './errors';
15
- export * from './events';
16
- export * from './exit-code';
17
- export * from './fs';
18
- export * from './git';
19
- export * from './hashing';
20
- export * from './i18n';
21
- export * from './inspect';
22
- export * from './layout';
23
- export * from './library';
24
- export * from './manifest';
25
- export * from './markdown';
26
- export * from './model';
27
- export * from './notifications';
28
- export * from './pages';
29
- export * from './payments';
30
- export * from './promise';
31
- export * from './pwa';
32
- export * from './reactivity';
33
- export * from './router';
34
- export * from './search-engine';
35
- export * from './ssg';
36
- export * from './stacks';
37
- export * from './tables';
38
- export * from './ui';
39
- export * from './utils';
package/dist/inspect.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { Options } from 'vite-plugin-inspect';
2
- /**
3
- * **Inspect Options**
4
- *
5
- * The inspect options.
6
- *
7
- * @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
8
- */
9
- export type InspectOptions = Options;
package/dist/layout.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { UserOptions } from 'vite-plugin-vue-layouts';
2
- /**
3
- * **Layout Options**
4
- *
5
- * The layout options.
6
- */
7
- export type LayoutOptions = UserOptions;