@stacksjs/types 0.59.10 → 0.61.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.
- package/package.json +22 -25
- package/src/ai.ts +2 -1
- package/src/api.ts +12 -0
- package/src/chat.ts +1 -1
- package/src/cli.ts +76 -27
- package/src/cloud.ts +250 -27
- package/src/database.ts +18 -8
- package/src/dns.ts +286 -2
- package/src/email.ts +1 -3
- package/src/errors.ts +93 -0
- package/src/git.ts +1 -1
- package/src/hashing.ts +9 -9
- package/src/helpers.ts +2 -5
- package/src/index.ts +1 -0
- package/src/library.ts +765 -5
- package/src/model-names.ts +1 -0
- package/src/model.ts +92 -33
- package/src/notifications.ts +11 -1
- package/src/ports.ts +1 -0
- package/src/search-engine.ts +38 -13
- package/src/security.ts +1 -1
- package/src/services.ts +6 -6
- package/src/stacks.ts +11 -0
- package/src/tables.ts +1 -1
- package/src/ui.ts +1 -1
- package/src/utils.ts +6 -7
- package/dist/ai.d.ts +0 -15
- package/dist/analytics.d.ts +0 -19
- package/dist/api.d.ts +0 -59
- package/dist/app.d.ts +0 -135
- package/dist/auto-imports.d.ts +0 -1
- package/dist/binary.d.ts +0 -11
- package/dist/build.d.ts +0 -2
- package/dist/cache.d.ts +0 -88
- package/dist/cdn.d.ts +0 -16
- package/dist/chat.d.ts +0 -4
- package/dist/cli.d.ts +0 -278
- package/dist/cloud.d.ts +0 -69
- package/dist/components.d.ts +0 -60
- package/dist/configure.d.ts +0 -12
- package/dist/cron-jobs.d.ts +0 -43
- package/dist/database.d.ts +0 -37
- package/dist/dependencies.d.ts +0 -62
- package/dist/deploy.d.ts +0 -12
- package/dist/dns.d.ts +0 -175
- package/dist/docs.d.ts +0 -22
- package/dist/email.d.ts +0 -14
- package/dist/env.d.ts +0 -1
- package/dist/errors.d.ts +0 -1
- package/dist/events.d.ts +0 -30
- package/dist/exit-code.d.ts +0 -10
- package/dist/file-systems.d.ts +0 -60
- package/dist/git.d.ts +0 -129
- package/dist/hashing.d.ts +0 -109
- package/dist/helpers.d.ts +0 -1
- package/dist/i18n.d.ts +0 -19
- package/dist/index.d.ts +0 -58
- package/dist/inspect.d.ts +0 -9
- package/dist/library.d.ts +0 -134
- package/dist/logger.d.ts +0 -49
- package/dist/manifest.d.ts +0 -9
- package/dist/model.d.ts +0 -70
- package/dist/money.d.ts +0 -2
- package/dist/notifications.d.ts +0 -117
- package/dist/pages.d.ts +0 -10
- package/dist/payments.d.ts +0 -60
- package/dist/ports.d.ts +0 -19
- package/dist/promise.d.ts +0 -1
- package/dist/push.d.ts +0 -35
- package/dist/pwa.d.ts +0 -7
- package/dist/queue.d.ts +0 -36
- package/dist/reactivity.d.ts +0 -1
- package/dist/router.d.ts +0 -78
- package/dist/scheduler.d.ts +0 -1
- package/dist/search-engine.d.ts +0 -118
- package/dist/security.d.ts +0 -18
- package/dist/services.d.ts +0 -33
- package/dist/sms.d.ts +0 -1
- package/dist/ssg.d.ts +0 -2
- package/dist/stacks.d.ts +0 -196
- package/dist/storage.d.ts +0 -12
- package/dist/tables.d.ts +0 -52
- package/dist/team.d.ts +0 -8
- package/dist/ui.d.ts +0 -165
- package/dist/utils.d.ts +0 -33
package/dist/library.d.ts
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import type { TagsOptions } from './components';
|
|
2
|
-
/**
|
|
3
|
-
* **Library Options**
|
|
4
|
-
*
|
|
5
|
-
* This configuration defines all of your library options. Because Stacks is fully-typed, you
|
|
6
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
7
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
8
|
-
*/
|
|
9
|
-
export interface LibraryOptions {
|
|
10
|
-
/**
|
|
11
|
-
* The base name of your library/libraries.
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* The organization / parent / owner name.
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const owner = 'your-org' // <-- this is the owner
|
|
19
|
-
* const repository = 'your-repo'
|
|
20
|
-
* const packageName = owner ? `@${owner}/${repository}' // @your-org/your-repo <-- this is where the owner's name would be used
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
owner: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* The package registry to use.
|
|
26
|
-
*/
|
|
27
|
-
packageRegistry: 'npm';
|
|
28
|
-
/**
|
|
29
|
-
* The path of your repository.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* "your-org/your-repo"
|
|
33
|
-
*/
|
|
34
|
-
repository: string;
|
|
35
|
-
/**
|
|
36
|
-
* The list of accepted SPDX licenses.
|
|
37
|
-
* When developing OS packages, you may want to utilize an OSI approved license.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* "MIT"
|
|
41
|
-
* @see https://opensource.org/licenses
|
|
42
|
-
*/
|
|
43
|
-
license: LicenseType;
|
|
44
|
-
/**
|
|
45
|
-
* The author's name of the library.
|
|
46
|
-
*/
|
|
47
|
-
author: string;
|
|
48
|
-
/**
|
|
49
|
-
* A list of all the contributors.
|
|
50
|
-
*/
|
|
51
|
-
contributors: string[];
|
|
52
|
-
releaseable: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* The default language used within your stack.
|
|
55
|
-
*/
|
|
56
|
-
defaultLanguage: LanguageCode;
|
|
57
|
-
/**
|
|
58
|
-
* The Vue component library options.
|
|
59
|
-
*/
|
|
60
|
-
vueComponents: LibraryBuildOptions;
|
|
61
|
-
/**
|
|
62
|
-
* The Web Component library options.
|
|
63
|
-
*/
|
|
64
|
-
webComponents: LibraryBuildOptions;
|
|
65
|
-
/**
|
|
66
|
-
* The Web Component library options.
|
|
67
|
-
*/
|
|
68
|
-
functions: LibraryBuildOptions;
|
|
69
|
-
}
|
|
70
|
-
export type LibraryConfig = Partial<LibraryOptions>;
|
|
71
|
-
/**
|
|
72
|
-
* The list of available options to build your library.
|
|
73
|
-
*/
|
|
74
|
-
export interface LibraryBuildOptions {
|
|
75
|
-
/**
|
|
76
|
-
* The name of your library as published to npm.
|
|
77
|
-
*/
|
|
78
|
-
name: string;
|
|
79
|
-
/**
|
|
80
|
-
* The description of your library as published to npm.
|
|
81
|
-
*/
|
|
82
|
-
description: string;
|
|
83
|
-
/**
|
|
84
|
-
* The keywords of your library as published to npm.
|
|
85
|
-
*/
|
|
86
|
-
keywords: string[];
|
|
87
|
-
/**
|
|
88
|
-
* Should your library generate a sourcemap?
|
|
89
|
-
* @default false
|
|
90
|
-
*/
|
|
91
|
-
shouldGenerateSourcemap?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* This is where you define the functions/composables that need to be included
|
|
94
|
-
* in your library. For example, including your `counter` function to be
|
|
95
|
-
* built would require `../functions/counter.ts` to be present.
|
|
96
|
-
*/
|
|
97
|
-
functions?: string[];
|
|
98
|
-
/**
|
|
99
|
-
* This is where you define the components that need to be included in
|
|
100
|
-
* your library. For example, including your `HelloWorld` to be built
|
|
101
|
-
* would require `../components/HelloWorld.stx` to be present.
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* {
|
|
105
|
-
* tags: [{
|
|
106
|
-
* name: 'HelloWorld' // export { default as HelloWorld } from './components/HelloWorld.stx'
|
|
107
|
-
* }]
|
|
108
|
-
* }
|
|
109
|
-
*
|
|
110
|
-
* @example
|
|
111
|
-
* {
|
|
112
|
-
* tags: [{
|
|
113
|
-
* name: ['HelloWorld', 'AppHelloWorld'] // export { default as AppHelloWorld } from './components/HelloWorld.stx'
|
|
114
|
-
* }]
|
|
115
|
-
* }
|
|
116
|
-
*/
|
|
117
|
-
tags?: TagsOptions;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* The name of your "Stack" which generally is your library name
|
|
121
|
-
* or a concatenation of your organization & library name.
|
|
122
|
-
*/
|
|
123
|
-
export type StackName = string;
|
|
124
|
-
/**
|
|
125
|
-
* The list of accepted SPDX licenses.
|
|
126
|
-
* When developing OS packages, you may want to utilize an OSI approved license.
|
|
127
|
-
* @see https://opensource.org/licenses
|
|
128
|
-
*/
|
|
129
|
-
export type LicenseType = 'CC-BY-NC-ND-2.0' | 'SGI-B-2.0' | 'LPPL-1.3c' | 'NIST-PD-fallback' | 'libtiff' | 'XSkat' | 'PDDL-1.0' | 'KiCad-libraries-exception' | 'CC-BY-NC-SA-1.0' | 'GFDL-1.1-no-invariants-only' | 'Xerox' | 'LPPL-1.1' | 'VOSTROM' | 'UCL-1.0' | 'ADSL' | 'OSL-2.0' | 'AAL' | 'FDK-AAC' | 'W3C-20150513' | 'AFL-1.1' | 'W3C' | 'Sleepycat' | 'CECILL-1.1' | 'mpich2' | 'SISSL' | 'NLOD-1.0' | 'ANTLR-PD' | 'GPL-3.0-only' | 'gnuplot' | 'NLOD-2.0' | 'BSD-3-Clause-Open-MPI' | 'LiLiQ-P-1.1' | 'BSD-3-Clause-Clear' | 'FSFUL' | 'CC-BY-NC-SA-2.0-UK' | 'CERN-OHL-S-2.0' | 'Spencer-94' | 'CERN-OHL-1.2' | 'GFDL-1.1-or-later' | 'AGPL-1.0-or-later' | 'Wsuipa' | 'AML' | 'BSD-2-Clause' | 'DSDP' | 'CC-BY-2.5' | 'MIT-CMU' | 'Beerware' | 'Sendmail' | 'TU-Berlin-1.0' | 'CNRI-Jython' | 'mplus' | 'CPOL-1.02' | 'BSD-3-Clause-No-Nuclear-License-2014' | 'ISC' | 'CC-BY-SA-4.0' | 'Eurosym' | 'LGPL-3.0-only' | 'OLDAP-1.3' | 'GFDL-1.1-invariants-or-later' | 'Glulxe' | 'SimPL-2.0' | 'CDLA-Permissive-2.0' | 'GPL-2.0-with-font-exception' | 'OGL-UK-2.0' | 'CC-BY-SA-3.0-DE' | 'CC-BY-ND-1.0' | 'GFDL-1.1' | 'CC-BY-4.0' | 'OpenSSL' | 'TU-Berlin-2.0' | 'DOC' | 'GFDL-1.2-no-invariants-or-later' | 'QPL-1.0' | 'OLDAP-2.8' | 'OML' | 'OLDAP-2.7' | 'NIST-PD' | 'Bitstream-Vera' | 'GFDL-1.2-or-later' | 'OFL-1.1-RFN' | 'Bahyph' | 'Barr' | 'COIL-1.0' | 'GFDL-1.3' | 'CECILL-B' | 'JPNIC' | 'Zed' | 'ICU' | 'CC-BY-NC-SA-2.5' | 'CC-BY-ND-3.0-DE' | 'bzip2-1.0.5' | 'SPL-1.0' | 'YPL-1.0' | 'OSET-PL-2.1' | 'Noweb' | 'RPSL-1.0' | 'BSD-3-Clause-LBNL' | 'CDLA-Sharing-1.0' | 'CECILL-1.0' | 'AMPAS' | 'APAFML' | 'CC-BY-ND-3.0' | 'D-FSL-1.0' | 'CC-BY-NC-3.0' | 'libpng-2.0' | 'PolyForm-Noncommercial-1.0.0' | 'dvipdfm' | 'GFDL-1.3-or-later' | 'OGTSL' | 'NPL-1.1' | 'GPL-3.0' | 'CERN-OHL-P-2.0' | 'BlueOak-1.0.0' | 'AGPL-3.0-or-later' | 'blessing' | 'ImageMagick' | 'APSL-2.0' | 'MIT-advertising' | 'curl' | 'CC0-1.0' | 'Zimbra-1.4' | 'SSPL-1.0' | 'psutils' | 'CC-BY-SA-2.0-UK' | 'PSF-2.0' | 'Net-SNMP' | 'NAIST-2003' | 'GFDL-1.2-invariants-or-later' | 'SGI-B-1.0' | 'NBPL-1.0' | 'GFDL-1.2-invariants-only' | 'W3C-19980720' | 'OFL-1.0-no-RFN' | 'NetCDF' | 'TMate' | 'NOSL' | 'CNRI-Python-GPL-Compatible' | 'BSD-1-Clause' | 'CC-BY-NC-SA-3.0-DE' | 'BSD-3-Clause-Modification' | 'GLWTPL' | 'GFDL-1.3-only' | 'OLDAP-2.2' | 'CC-BY-ND-4.0' | 'CC-BY-NC-ND-3.0-DE' | 'EUPL-1.0' | 'Linux-OpenIB' | 'LGPL-2.0-or-later' | 'OSL-1.1' | 'Spencer-86' | 'LGPL-2.0' | 'CC-PDDC' | 'CC-BY-NC-ND-3.0' | 'CDL-1.0' | 'Elastic-2.0' | 'CC-BY-2.0' | 'BSD-3-Clause-No-Military-License' | 'IJG' | 'LPPL-1.3a' | 'SAX-PD' | 'BitTorrent-1.0' | 'OLDAP-2.0' | 'Giftware' | 'C-UDA-1.0' | 'LGPL-2.0+' | 'Rdisc' | 'GPL-2.0-with-classpath-exception' | 'CC-BY-3.0-US' | 'CDDL-1.0' | 'Xnet' | 'CPL-1.0' | 'LGPL-3.0-or-later' | 'NASA-1.3' | 'BUSL-1.1' | 'etalab-2.0' | 'MIT-open-group' | 'OLDAP-1.4' | 'GFDL-1.1-invariants-only' | 'RPL-1.1' | 'CC-BY-NC-ND-2.5' | 'FSFULLR' | 'Saxpath' | 'NTP-0' | 'SISSL-1.2' | 'GPL-3.0-or-later' | 'Apache-1.1' | 'CC-BY-SA-2.1-JP' | 'AGPL-3.0-only' | 'GPL-2.0-with-autoconf-exception' | 'Artistic-2.0' | 'App-s2p' | 'Unicode-DFS-2015' | 'diffmark' | 'SNIA' | 'CC-BY-SA-2.5' | 'Linux-man-pages-copyleft' | 'HPND-sell-variant' | 'ZPL-2.1' | 'BSD-4-Clause-UC' | 'LAL-1.2' | 'AGPL-1.0-only' | 'MIT-enna' | 'Condor-1.1' | 'Naumen' | 'GFDL-1.3-no-invariants-or-later' | 'RPL-1.5' | 'PolyForm-Small-Business-1.0.0' | 'EFL-1.0' | 'MirOS' | 'CC-BY-2.5-AU' | 'Afmparse' | 'MPL-2.0-no-copyleft-exception' | 'LiLiQ-Rplus-1.1' | 'AFL-1.2' | 'OSL-1.0' | 'GPL-1.0-only' | 'APSL-1.0' | 'OGL-Canada-2.0' | 'CPAL-1.0' | 'Latex2e' | 'Zend-2.0' | 'Unlicense' | 'xpp' | 'CC-BY-NC-1.0' | 'GPL-3.0-with-autoconf-exception' | 'CC-BY-NC-SA-3.0' | 'TCP-wrappers' | 'SCEA' | 'SSH-short' | 'CC-BY-3.0-NL' | 'SchemeReport' | 'CC-BY-3.0' | 'MPL-2.0' | 'Unicode-TOU' | 'CC-BY-NC-ND-1.0' | 'Entessa' | 'BSD-3-Clause-No-Nuclear-License' | 'SWL' | 'GFDL-1.2-no-invariants-only' | 'Parity-7.0.0' | 'OLDAP-2.2.1' | 'SGI-B-1.1' | 'FTL' | 'OLDAP-2.4' | 'CC-BY-NC-4.0' | 'bzip2-1.0.6' | 'copyleft-next-0.3.0' | 'MakeIndex' | 'NRL' | 'GFDL-1.3-invariants-or-later' | 'CC-BY-NC-2.0' | 'SugarCRM-1.1.3' | 'AFL-2.1' | 'GPL-2.0-only' | 'GFDL-1.3-invariants-only' | 'TORQUE-1.1' | 'Ruby' | 'X11' | 'Borceux' | 'Libpng' | 'X11-distribute-modifications-variant' | 'Frameworx-1.0' | 'NCGL-UK-2.0' | 'CECILL-2.1' | 'CC-BY-3.0-AT' | 'CNRI-Python' | 'NCSA' | 'gSOAP-1.3b' | 'EUPL-1.1' | 'AMDPLPA' | 'Imlib2' | 'CDDL-1.1' | 'WTFPL' | 'LPL-1.0' | 'EPL-1.0' | 'BSD-3-Clause-Attribution' | 'OSL-3.0' | 'RHeCos-1.1' | 'PHP-3.0' | 'BSD-Protection' | 'CC-BY-NC-3.0-DE' | 'APL-1.0' | 'EUDatagrid' | 'GPL-1.0' | 'SHL-0.5' | 'CC-BY-SA-2.0' | 'CC-BY-SA-3.0-AT' | 'CC-BY-NC-SA-3.0-IGO' | 'Adobe-2006' | 'Newsletr' | 'Nunit' | 'Multics' | 'OGL-UK-1.0' | 'Vim' | 'eCos-2.0' | 'Zimbra-1.3' | 'eGenix' | 'IBM-pibs' | 'BitTorrent-1.1' | 'OFL-1.1-no-RFN' | 'psfrag' | 'CC-BY-ND-2.0' | 'SHL-0.51' | 'FreeBSD-DOC' | 'Python-2.0' | 'Mup' | 'BSD-4-Clause-Shortened' | 'CC-BY-NC-SA-4.0' | 'HPND' | 'OLDAP-2.6' | 'MPL-1.1' | 'GPL-2.0-with-GCC-exception' | 'HaskellReport' | 'ECL-1.0' | 'LGPL-2.1-or-later' | 'OFL-1.0' | 'APSL-1.1' | 'MITNFA' | 'CECILL-2.0' | 'Crossword' | 'Aladdin' | 'Baekmuk' | 'XFree86-1.1' | 'GPL-1.0-or-later' | 'CERN-OHL-W-2.0' | 'CC-BY-SA-1.0' | 'NTP' | 'PHP-3.01' | 'OCLC-2.0' | 'CC-BY-3.0-DE' | 'CC-BY-NC-2.5' | 'Zlib' | 'CATOSL-1.1' | 'LGPL-3.0+' | 'CAL-1.0' | 'NPL-1.0' | 'SMLNJ' | 'GPL-2.0+' | 'OLDAP-2.5' | 'JasPer-2.0' | 'GPL-2.0-or-later' | 'BSD-2-Clause-Patent' | 'MS-RL' | 'CUA-OPL-1.0' | 'IPA' | 'NLPL' | 'O-UDA-1.0' | 'MIT-Modern-Variant' | 'OLDAP-1.2' | 'BSD-2-Clause-FreeBSD' | 'Info-ZIP' | 'CC-BY-NC-SA-2.0-FR' | '0BSD' | 'Unicode-DFS-2016' | 'OFL-1.0-RFN' | 'Intel' | 'AFL-2.0' | 'GL2PS' | 'TAPR-OHL-1.0' | 'Apache-1.0' | 'MTLL' | 'Motosoto' | 'RSA-MD' | 'Community-Spec-1.0' | 'ODC-By-1.0' | 'zlib-acknowledgement' | 'DL-DE-BY-2.0' | 'VSL-1.0' | 'LiLiQ-R-1.1' | 'OPL-1.0' | 'GPL-3.0+' | 'MulanPSL-2.0' | 'APSL-1.2' | 'OGDL-Taiwan-1.0' | 'RSCPL' | 'OGC-1.0' | 'EFL-2.0' | 'CAL-1.0-Combined-Work-Exception' | 'MS-PL' | 'Plexus' | 'Sendmail-8.23' | 'Cube' | 'JSON' | 'EUPL-1.2' | 'Adobe-Glyph' | 'FreeImage' | 'Watcom-1.0' | 'Jam' | 'Hippocratic-2.1' | 'OLDAP-2.0.1' | 'CC-BY-NC-SA-2.0' | 'Nokia' | 'OCCT-PL' | 'ErlPL-1.1' | 'TOSL' | 'OSL-2.1' | 'ClArtistic' | 'xinetd' | 'GPL-3.0-with-GCC-exception' | 'ODbL-1.0' | 'MIT' | 'LGPL-2.1+' | 'LGPL-2.1-only' | 'CrystalStacker' | 'ECL-2.0' | 'LPPL-1.0' | 'iMatix' | 'CC-BY-NC-ND-3.0-IGO' | 'BSD-Source-Code' | 'Parity-6.0.0' | 'TCL' | 'Arphic-1999' | 'CC-BY-SA-3.0' | 'Caldera' | 'AGPL-1.0' | 'IPL-1.0' | 'LAL-1.3' | 'EPICS' | 'NGPL' | 'DRL-1.0' | 'BSD-2-Clause-NetBSD' | 'ZPL-1.1' | 'GD' | 'LPPL-1.2' | 'Dotseqn' | 'Spencer-99' | 'OLDAP-2.3' | 'YPL-1.1' | 'Fair' | 'Qhull' | 'GFDL-1.1-no-invariants-or-later' | 'CECILL-C' | 'MulanPSL-1.0' | 'OLDAP-1.1' | 'OLDAP-2.1' | 'LPL-1.02' | 'UPL-1.0' | 'Abstyles' | 'ZPL-2.0' | 'MIT-0' | 'LGPL-2.0-only' | 'GFDL-1.3-no-invariants-only' | 'AGPL-3.0' | 'EPL-2.0' | 'AFL-3.0' | 'CDLA-Permissive-1.0' | 'Artistic-1.0' | 'CC-BY-NC-ND-4.0' | 'HTMLTIDY' | 'Glide' | 'FSFAP' | 'LGPLLR' | 'OGL-UK-3.0' | 'GFDL-1.2' | 'SSH-OpenSSH' | 'GFDL-1.1-only' | 'MIT-feh' | 'MPL-1.0' | 'PostgreSQL' | 'OLDAP-2.2.2' | 'SMPPL' | 'OFL-1.1' | 'Leptonica' | 'CERN-OHL-1.1' | 'BSD-3-Clause-No-Nuclear-Warranty' | 'CC-BY-ND-2.5' | 'CC-BY-1.0' | 'GFDL-1.2-only' | 'OPUBL-1.0' | 'libselinux-1.0' | 'BSD-3-Clause' | 'ANTLR-PD-fallback' | 'copyleft-next-0.3.1' | 'GPL-1.0+' | 'wxWindows' | 'LGPL-3.0' | 'LGPL-2.1' | 'StandardML-NJ' | 'BSD-4-Clause' | 'GPL-2.0-with-bison-exception' | 'Apache-2.0' | 'Artistic-1.0-cl8' | 'GPL-2.0' | 'Intel-ACPI' | 'BSL-1.0' | 'Artistic-1.0-Perl' | 'BSD-2-Clause-Views' | 'Interbase-1.0' | 'NPOSL-3.0';
|
|
130
|
-
/**
|
|
131
|
-
* The list of accepted language codes.
|
|
132
|
-
* @see https://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code
|
|
133
|
-
*/
|
|
134
|
-
export type LanguageCode = 'aa' | 'ab' | 'af' | 'ak' | 'als' | 'am' | 'an' | 'ang' | 'ang' | 'ar' | 'arc' | 'as' | 'ast' | 'av' | 'awa' | 'ay' | 'az' | 'ba' | 'bar' | 'bat-smg' | 'bcl' | 'be' | 'be-x-old' | 'bg' | 'bh' | 'bi' | 'bm' | 'bn' | 'bo' | 'bpy' | 'br' | 'brx' | 'bs' | 'bug' | 'bxr' | 'ca' | 'cdo' | 'ce' | 'ceb' | 'ch' | 'cho' | 'chr' | 'chy' | 'ckb' | 'co' | 'cr' | 'cs' | 'csb' | 'cu' | 'cv' | 'cy' | 'da' | 'de' | 'diq' | 'dsb' | 'dv' | 'dz' | 'ee' | 'el' | 'en' | 'eo' | 'es' | 'et' | 'eu' | 'ext' | 'fa' | 'ff' | 'fi' | 'fiu-vro' | 'fj' | 'fo' | 'fr' | 'frp' | 'fur' | 'fy' | 'ga' | 'gan' | 'gbm' | 'gd' | 'gil' | 'gl' | 'gn' | 'got' | 'gu' | 'gv' | 'ha' | 'hak' | 'haw' | 'he' | 'hi' | 'ho' | 'hr' | 'ht' | 'hu' | 'hy' | 'hz' | 'ia' | 'id' | 'ie' | 'ig' | 'ii' | 'ik' | 'ilo' | 'inh' | 'io' | 'is' | 'it' | 'iu' | 'ja' | 'jbo' | 'jv' | 'ka' | 'kg' | 'ki' | 'kj' | 'kk' | 'kl' | 'km' | 'kn' | 'khw' | 'ko' | 'kr' | 'ks' | 'ksh' | 'ku' | 'kv' | 'kw' | 'ky' | 'la' | 'lad' | 'lan' | 'lb' | 'lg' | 'li' | 'lij' | 'lmo' | 'ln' | 'lo' | 'lzz' | 'lt' | 'lv' | 'map-bms' | 'mg' | 'man' | 'mh' | 'mi' | 'min' | 'mk' | 'ml' | 'mn' | 'mo' | 'mr' | 'mrh' | 'ms' | 'mt' | 'mus' | 'mwl' | 'my' | 'na' | 'nah' | 'nap' | 'nd' | 'nds' | 'nds-nl' | 'ne' | 'new' | 'ng' | 'nl' | 'nn' | 'no' | 'nr' | 'nso' | 'nrm' | 'nv' | 'ny' | 'oc' | 'oj' | 'om' | 'or' | 'os' | 'pa' | 'pag' | 'pam' | 'pap' | 'pdc' | 'pi' | 'pih' | 'pl' | 'pms' | 'ps' | 'pt' | 'qu' | 'rm' | 'rmy' | 'rn' | 'ro' | 'roa-rup' | 'ru' | 'rw' | 'sa' | 'sc' | 'scn' | 'sco' | 'sd' | 'se' | 'sg' | 'sh' | 'si' | 'sk' | 'sl' | 'sm' | 'sn' | 'so' | 'sq' | 'sr' | 'ss' | 'st' | 'su' | 'sv' | 'sw' | 'ta' | 'te' | 'tet' | 'tg' | 'th' | 'ti' | 'tk' | 'tl' | 'tlh' | 'tn' | 'to' | 'tpi' | 'tr' | 'ts' | 'tt' | 'tum' | 'tw' | 'ty' | 'udm' | 'ug' | 'uk' | 'ur' | 'uz' | 'uz_AF' | 've' | 'vi' | 'vec' | 'vls' | 'vo' | 'wa' | 'war' | 'wo' | 'xal' | 'xh' | 'xmf' | 'yi' | 'yo' | 'za' | 'zh' | 'zh-classical' | 'zh-min-nan' | 'zh-yue' | 'zu';
|
package/dist/logger.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { LogLevel } from 'consola';
|
|
2
|
-
import { LogLevels, LogTypes } from 'consola';
|
|
3
|
-
/**
|
|
4
|
-
* **Logger Options**
|
|
5
|
-
*
|
|
6
|
-
* This configuration defines all of your logger options. Because Stacks is fully-typed, you
|
|
7
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
8
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
9
|
-
*/
|
|
10
|
-
export interface LoggerOptions {
|
|
11
|
-
/**
|
|
12
|
-
* **Log Level**
|
|
13
|
-
*
|
|
14
|
-
* The log level is a number that represents the verbosity of the logs. The higher the number,
|
|
15
|
-
* the more verbose the logs will be. The log levels are as follows:
|
|
16
|
-
*
|
|
17
|
-
* - 0: Error
|
|
18
|
-
* - 1: Warning
|
|
19
|
-
* - 2: Normal
|
|
20
|
-
* - 3: Info
|
|
21
|
-
* - 4: Debug
|
|
22
|
-
* - 5: Trace
|
|
23
|
-
* - -999: Silent
|
|
24
|
-
* - +999: Verbose
|
|
25
|
-
*
|
|
26
|
-
* @default 3
|
|
27
|
-
*/
|
|
28
|
-
level: LogLevel;
|
|
29
|
-
/**
|
|
30
|
-
* **Log File Path**
|
|
31
|
-
*
|
|
32
|
-
* The path to the log file. This will be used to write logs to a file. If you do not want to
|
|
33
|
-
* write logs to a file, you may set this to `null`.
|
|
34
|
-
*
|
|
35
|
-
* @default 'storage/logs/console.log'
|
|
36
|
-
*/
|
|
37
|
-
logFilePath: string;
|
|
38
|
-
/**
|
|
39
|
-
* **Errors Log Path**
|
|
40
|
-
*
|
|
41
|
-
* The path to the errors log file. This will be used to write error logs to a file. If you do
|
|
42
|
-
* not want to write error logs to a file, you may set this to `null`.
|
|
43
|
-
*
|
|
44
|
-
* @default 'storage/logs/errors.log'
|
|
45
|
-
*/
|
|
46
|
-
errorsPath: string;
|
|
47
|
-
}
|
|
48
|
-
export type LoggerConfig = Partial<LoggerOptions>;
|
|
49
|
-
export { LogLevels, LogTypes };
|
package/dist/manifest.d.ts
DELETED
package/dist/model.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { VineBoolean, VineNumber, VineString } from '@vinejs/vine';
|
|
2
|
-
import type { Nullable, SearchEngineSettings } from '.';
|
|
3
|
-
export interface AuthOptions {
|
|
4
|
-
}
|
|
5
|
-
export interface SeedOptions {
|
|
6
|
-
count: number;
|
|
7
|
-
}
|
|
8
|
-
export interface TimestampOptions {
|
|
9
|
-
createdAt?: string;
|
|
10
|
-
updatedAt?: string;
|
|
11
|
-
deletedAt?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface SoftDeleteOptions {
|
|
14
|
-
deletedAt?: string;
|
|
15
|
-
}
|
|
16
|
-
interface Base {
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Model.
|
|
20
|
-
*/
|
|
21
|
-
export interface ModelOptions extends Base {
|
|
22
|
-
name: string;
|
|
23
|
-
table: string;
|
|
24
|
-
primaryKey?: string;
|
|
25
|
-
autoIncrement?: boolean;
|
|
26
|
-
traits: {
|
|
27
|
-
useUuid?: boolean;
|
|
28
|
-
useTimestamps?: boolean | TimestampOptions;
|
|
29
|
-
useSoftDeletes?: boolean | SoftDeleteOptions;
|
|
30
|
-
useAuth?: boolean | AuthOptions;
|
|
31
|
-
authenticatable?: boolean | AuthOptions;
|
|
32
|
-
useSeeder?: boolean | SeedOptions;
|
|
33
|
-
seedable?: boolean | SeedOptions;
|
|
34
|
-
useSearch?: boolean | SearchEngineSettings;
|
|
35
|
-
searchable?: boolean | SearchEngineSettings;
|
|
36
|
-
};
|
|
37
|
-
fields: Fields;
|
|
38
|
-
hasOne: string;
|
|
39
|
-
hasMany: {
|
|
40
|
-
model: string;
|
|
41
|
-
foreignKey?: string;
|
|
42
|
-
};
|
|
43
|
-
belongsTo: string;
|
|
44
|
-
belongsToMany: object;
|
|
45
|
-
hasThrough: {
|
|
46
|
-
model: string;
|
|
47
|
-
through: string;
|
|
48
|
-
using: string;
|
|
49
|
-
};
|
|
50
|
-
attributes: {
|
|
51
|
-
[key: string]: {
|
|
52
|
-
get: (value: any) => any;
|
|
53
|
-
set: (value: any) => any;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export interface Fields {
|
|
58
|
-
[key: string]: {
|
|
59
|
-
default?: string | number | boolean | Date;
|
|
60
|
-
unique?: boolean;
|
|
61
|
-
required?: boolean;
|
|
62
|
-
factory?: () => any;
|
|
63
|
-
validator?: {
|
|
64
|
-
rule: VineString | VineNumber | VineBoolean | Date | Nullable<any>;
|
|
65
|
-
message: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export type Model = Partial<ModelOptions>;
|
|
70
|
-
export {};
|
package/dist/money.d.ts
DELETED
package/dist/notifications.d.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
export interface NotificationOptions {
|
|
2
|
-
default: 'email' | 'sms' | 'chat' | string;
|
|
3
|
-
email: {
|
|
4
|
-
default: 'emailjs' | 'mailgun' | 'mailjet' | 'mandrill' | 'netcore' | 'nodemailer' | 'postmark' | 'sendgrid' | 'ses' | string;
|
|
5
|
-
from: {
|
|
6
|
-
name: string;
|
|
7
|
-
address: string;
|
|
8
|
-
};
|
|
9
|
-
drivers: {
|
|
10
|
-
smtp: {
|
|
11
|
-
host: string;
|
|
12
|
-
port: number;
|
|
13
|
-
secure: boolean;
|
|
14
|
-
auth: {
|
|
15
|
-
user: string;
|
|
16
|
-
pass: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
sendgrid: {
|
|
20
|
-
key: string;
|
|
21
|
-
senderName: string;
|
|
22
|
-
};
|
|
23
|
-
emailjs: {
|
|
24
|
-
host: string;
|
|
25
|
-
user: string;
|
|
26
|
-
password: string;
|
|
27
|
-
port: number;
|
|
28
|
-
secure: boolean;
|
|
29
|
-
};
|
|
30
|
-
mailgun: {
|
|
31
|
-
key: string;
|
|
32
|
-
domain: string;
|
|
33
|
-
username: string;
|
|
34
|
-
};
|
|
35
|
-
mailjet: {
|
|
36
|
-
key: string;
|
|
37
|
-
secret: string;
|
|
38
|
-
};
|
|
39
|
-
mandrill: {
|
|
40
|
-
key: string;
|
|
41
|
-
};
|
|
42
|
-
netcore: {
|
|
43
|
-
key: string;
|
|
44
|
-
};
|
|
45
|
-
nodemailer: {
|
|
46
|
-
host: string;
|
|
47
|
-
user: string;
|
|
48
|
-
password: string;
|
|
49
|
-
port: number;
|
|
50
|
-
secure: boolean;
|
|
51
|
-
};
|
|
52
|
-
postmark: {
|
|
53
|
-
key: string;
|
|
54
|
-
};
|
|
55
|
-
ses: {
|
|
56
|
-
region: string;
|
|
57
|
-
key: string;
|
|
58
|
-
secret: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
sms: {
|
|
63
|
-
default: 'twilio' | 'nexmo' | 'gupshup' | 'plivo' | 'sms77' | 'sns' | 'telnyx' | 'termii' | string;
|
|
64
|
-
from: string;
|
|
65
|
-
drivers: {
|
|
66
|
-
twilio: {
|
|
67
|
-
sid: string;
|
|
68
|
-
authToken: string;
|
|
69
|
-
};
|
|
70
|
-
nexmo: {
|
|
71
|
-
key: string;
|
|
72
|
-
secret: string;
|
|
73
|
-
};
|
|
74
|
-
gupshup: {
|
|
75
|
-
user: string;
|
|
76
|
-
password: string;
|
|
77
|
-
};
|
|
78
|
-
plivo: {
|
|
79
|
-
sid: string;
|
|
80
|
-
authToken: string;
|
|
81
|
-
};
|
|
82
|
-
sms77: {
|
|
83
|
-
key: string;
|
|
84
|
-
};
|
|
85
|
-
sns: {
|
|
86
|
-
region: string;
|
|
87
|
-
key: string;
|
|
88
|
-
secret: string;
|
|
89
|
-
};
|
|
90
|
-
telnyx: {
|
|
91
|
-
key: string;
|
|
92
|
-
messageProfileId: string;
|
|
93
|
-
};
|
|
94
|
-
termii: {
|
|
95
|
-
key: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
chat: {
|
|
100
|
-
default: 'slack' | 'msTeams' | 'discord' | string;
|
|
101
|
-
from: string;
|
|
102
|
-
drivers: {
|
|
103
|
-
slack?: {
|
|
104
|
-
appId: string;
|
|
105
|
-
clientId: string;
|
|
106
|
-
secret: string;
|
|
107
|
-
};
|
|
108
|
-
msTeams?: {
|
|
109
|
-
appId: string;
|
|
110
|
-
clientId: string;
|
|
111
|
-
secret: string;
|
|
112
|
-
};
|
|
113
|
-
discord?: {};
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
export type NotificationConfig = Partial<NotificationOptions>;
|
package/dist/pages.d.ts
DELETED
package/dist/payments.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export interface PaymentOptions {
|
|
2
|
-
driver: 'stripe';
|
|
3
|
-
}
|
|
4
|
-
export type PaymentConfig = Partial<PaymentOptions>;
|
|
5
|
-
export interface ChargeOptions {
|
|
6
|
-
currency?: string;
|
|
7
|
-
source?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
chargeId?: string;
|
|
10
|
-
limit?: number;
|
|
11
|
-
metadata?: object;
|
|
12
|
-
searchOptions: {
|
|
13
|
-
query?: string;
|
|
14
|
-
limit?: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export interface CustomerOptions {
|
|
18
|
-
description?: string;
|
|
19
|
-
address?: string;
|
|
20
|
-
email?: string;
|
|
21
|
-
metadata?: object;
|
|
22
|
-
name?: string;
|
|
23
|
-
payment_method?: string;
|
|
24
|
-
shipping: string;
|
|
25
|
-
listOptions?: {
|
|
26
|
-
created?: object;
|
|
27
|
-
ending_before?: string;
|
|
28
|
-
limit?: number;
|
|
29
|
-
starting_after?: string;
|
|
30
|
-
test_clock?: string;
|
|
31
|
-
};
|
|
32
|
-
searchOptions?: {
|
|
33
|
-
query?: string;
|
|
34
|
-
limit?: number;
|
|
35
|
-
page?: number;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export interface DisputeOptions {
|
|
39
|
-
dp_id?: string;
|
|
40
|
-
metadata?: object;
|
|
41
|
-
listOptions?: {
|
|
42
|
-
charge?: string;
|
|
43
|
-
payment_intent?: string;
|
|
44
|
-
created?: string;
|
|
45
|
-
ending_before?: string;
|
|
46
|
-
limit?: number;
|
|
47
|
-
starting_after?: string;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export interface EventOptions {
|
|
51
|
-
event_id?: string;
|
|
52
|
-
listOptions?: {
|
|
53
|
-
created?: object;
|
|
54
|
-
delivery_success?: boolean;
|
|
55
|
-
ending_before?: string;
|
|
56
|
-
limit?: number;
|
|
57
|
-
starting_after?: string;
|
|
58
|
-
type?: string;
|
|
59
|
-
};
|
|
60
|
-
}
|
package/dist/ports.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* **Stacks Ports**
|
|
3
|
-
*
|
|
4
|
-
* This port is used by the Stacks servers when running your application, library, email services,
|
|
5
|
-
* and other services. You may change this port to any other port that is free
|
|
6
|
-
* on your machine, as long as the following 6 ports are also available.
|
|
7
|
-
*/
|
|
8
|
-
export interface Ports {
|
|
9
|
-
frontend: number;
|
|
10
|
-
backend: number;
|
|
11
|
-
admin: number;
|
|
12
|
-
library: number;
|
|
13
|
-
desktop: number;
|
|
14
|
-
email: number;
|
|
15
|
-
docs: number;
|
|
16
|
-
inspect: number;
|
|
17
|
-
api: number;
|
|
18
|
-
systemTray: number;
|
|
19
|
-
}
|
package/dist/promise.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type MaybePromise<T> = T | Promise<T>;
|
package/dist/push.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface FCMPushNotificationOptions {
|
|
2
|
-
eventName: string;
|
|
3
|
-
to: {
|
|
4
|
-
subscriberId: string;
|
|
5
|
-
};
|
|
6
|
-
payload: {
|
|
7
|
-
deviceTokens: Array<string>;
|
|
8
|
-
badge: boolean;
|
|
9
|
-
clickAction: string;
|
|
10
|
-
color: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
sound: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface ExpoPushNotificationOptions {
|
|
16
|
-
eventName: string;
|
|
17
|
-
to: {
|
|
18
|
-
subscriberId: string;
|
|
19
|
-
};
|
|
20
|
-
payload: {
|
|
21
|
-
to: string[];
|
|
22
|
-
data: object;
|
|
23
|
-
title: string;
|
|
24
|
-
body: string;
|
|
25
|
-
ttl: number;
|
|
26
|
-
expiration: number;
|
|
27
|
-
priority: 'default' | 'normal' | 'high';
|
|
28
|
-
subtitle: string;
|
|
29
|
-
sound: 'default' | null;
|
|
30
|
-
badge: number;
|
|
31
|
-
channelId: string;
|
|
32
|
-
categoryId: string;
|
|
33
|
-
mutableContent: boolean;
|
|
34
|
-
};
|
|
35
|
-
}
|
package/dist/pwa.d.ts
DELETED
package/dist/queue.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { DeepPartial } from './utils';
|
|
2
|
-
export interface QueueOptions {
|
|
3
|
-
default: 'sync' | 'database' | 'redis' | 'sqs';
|
|
4
|
-
connections: {
|
|
5
|
-
sync: {
|
|
6
|
-
driver: 'sync';
|
|
7
|
-
};
|
|
8
|
-
database: {
|
|
9
|
-
driver: 'database';
|
|
10
|
-
table: 'jobs';
|
|
11
|
-
queue: 'default';
|
|
12
|
-
retry_after: 90;
|
|
13
|
-
};
|
|
14
|
-
redis: {
|
|
15
|
-
driver: 'redis';
|
|
16
|
-
connection: 'default';
|
|
17
|
-
queue: 'default';
|
|
18
|
-
retry_after: 90;
|
|
19
|
-
};
|
|
20
|
-
sqs: {
|
|
21
|
-
driver: 'sqs';
|
|
22
|
-
key: '';
|
|
23
|
-
secret: '';
|
|
24
|
-
prefix: '';
|
|
25
|
-
suffix: '';
|
|
26
|
-
queue: 'default';
|
|
27
|
-
region: 'us-east-1';
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
failed: {
|
|
31
|
-
driver: 'database';
|
|
32
|
-
database: 'mysql';
|
|
33
|
-
table: 'failed_jobs';
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export type QueueConfig = DeepPartial<QueueOptions>;
|
package/dist/reactivity.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Ref } from 'vue';
|
package/dist/router.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { Action } from '@stacksjs/actions';
|
|
2
|
-
import type { ActionPath } from '~/storage/framework/types/actions';
|
|
3
|
-
export interface NitroEventHandler {
|
|
4
|
-
/**
|
|
5
|
-
* Path prefix or route
|
|
6
|
-
*
|
|
7
|
-
* If an empty string used, will be used as a middleware
|
|
8
|
-
*/
|
|
9
|
-
route?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Specifies this is a middleware handler.
|
|
12
|
-
* Middleware are called on every route and should normally return nothing to pass to the next handlers
|
|
13
|
-
*/
|
|
14
|
-
middleware?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Use lazy loading to import handler
|
|
17
|
-
*/
|
|
18
|
-
lazy?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Path to event handler
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
handler: string;
|
|
24
|
-
/**
|
|
25
|
-
* Router method matcher
|
|
26
|
-
*/
|
|
27
|
-
method?: string;
|
|
28
|
-
}
|
|
29
|
-
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'before' | 'after' | 'view';
|
|
30
|
-
export type RouteCallback = (params?: Record<string, any>) => any | string | object;
|
|
31
|
-
export interface Route {
|
|
32
|
-
name: string;
|
|
33
|
-
uri: string;
|
|
34
|
-
url: string;
|
|
35
|
-
method: HttpMethod;
|
|
36
|
-
pattern: RegExp;
|
|
37
|
-
callback: RouteCallback | ActionPath | Action | Promise<any>;
|
|
38
|
-
paramNames: string[];
|
|
39
|
-
middleware?: string | string[];
|
|
40
|
-
statusCode?: StatusCode;
|
|
41
|
-
}
|
|
42
|
-
export interface MiddlewareOptions {
|
|
43
|
-
name: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
priority: number;
|
|
46
|
-
handle: Function;
|
|
47
|
-
}
|
|
48
|
-
export type StatusCode = 200 | 201 | 202 | 204 | 301 | 302 | 304 | 400 | 401 | 403 | 404 | 500;
|
|
49
|
-
export type RedirectCode = Extract<StatusCode, 301 | 302>;
|
|
50
|
-
export type MiddlewareFn = () => void;
|
|
51
|
-
export interface Middlewares {
|
|
52
|
-
logger: MiddlewareFn;
|
|
53
|
-
auth: MiddlewareFn;
|
|
54
|
-
[key: string]: MiddlewareFn;
|
|
55
|
-
}
|
|
56
|
-
export interface RouteGroupOptions {
|
|
57
|
-
prefix?: string;
|
|
58
|
-
middleware?: Route['middleware'];
|
|
59
|
-
}
|
|
60
|
-
type Prefix = string;
|
|
61
|
-
export interface RouterInterface {
|
|
62
|
-
get: (url: Route['url'], callback: Route['callback']) => Promise<this>;
|
|
63
|
-
post: (url: Route['url'], callback: Route['callback']) => this;
|
|
64
|
-
view: (url: Route['url'], callback: Route['callback']) => this;
|
|
65
|
-
redirect: (url: Route['url'], callback: Route['callback'], status?: RedirectCode) => this;
|
|
66
|
-
delete: (url: Route['url'], callback: Route['callback']) => this;
|
|
67
|
-
patch: (url: Route['url'], callback: Route['callback']) => this;
|
|
68
|
-
put: (url: Route['url'], callback: Route['callback']) => this;
|
|
69
|
-
email: (url: Route['url']) => Promise<this>;
|
|
70
|
-
health: () => Promise<this>;
|
|
71
|
-
job: (url: Route['url']) => Promise<this>;
|
|
72
|
-
action: (url: Route['url']) => Promise<this>;
|
|
73
|
-
group: (options: Prefix | RouteGroupOptions, callback: () => void) => this;
|
|
74
|
-
name: (name: string) => this;
|
|
75
|
-
middleware: (middleware: Route['middleware']) => this;
|
|
76
|
-
getRoutes: () => Promise<Route[]>;
|
|
77
|
-
}
|
|
78
|
-
export {};
|
package/dist/scheduler.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Schedule } from '@stacksjs/scheduler';
|