@stacksjs/types 0.58.47 → 0.58.49

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 (60) hide show
  1. package/package.json +4 -3
  2. package/src/ai.ts +25 -0
  3. package/src/analytics.ts +21 -0
  4. package/src/api.ts +63 -0
  5. package/src/app.ts +172 -0
  6. package/src/auto-imports.ts +1 -0
  7. package/src/binary.ts +12 -0
  8. package/src/build.ts +2 -0
  9. package/src/cache.ts +98 -0
  10. package/src/cdn.ts +17 -0
  11. package/src/chat.ts +5 -0
  12. package/src/cli.ts +305 -0
  13. package/src/cloud.ts +85 -0
  14. package/src/components.ts +64 -0
  15. package/src/configure.ts +6 -0
  16. package/src/cron-jobs.ts +44 -0
  17. package/src/database.ts +45 -0
  18. package/src/dependencies.ts +69 -0
  19. package/src/deploy.ts +13 -0
  20. package/src/dns.ts +186 -0
  21. package/src/docs.ts +22 -0
  22. package/src/email.ts +16 -0
  23. package/src/env.ts +1 -0
  24. package/src/errors.ts +11 -0
  25. package/src/events.ts +30 -0
  26. package/src/exit-code.ts +10 -0
  27. package/src/file-systems.ts +70 -0
  28. package/src/git.ts +133 -0
  29. package/src/hashing.ts +131 -0
  30. package/src/helpers.ts +11 -0
  31. package/src/i18n.ts +19 -0
  32. package/src/index.ts +58 -0
  33. package/src/inspect.ts +10 -0
  34. package/src/layout.ts +8 -0
  35. package/src/library.ts +156 -0
  36. package/src/manifest.ts +9 -0
  37. package/src/model.ts +72 -0
  38. package/src/money.ts +3 -0
  39. package/src/native.ts +0 -0
  40. package/src/notifications.ts +147 -0
  41. package/src/pages.ts +10 -0
  42. package/src/payments.ts +65 -0
  43. package/src/promise.ts +1 -0
  44. package/src/push.ts +36 -0
  45. package/src/pwa.ts +8 -0
  46. package/src/queue.ts +36 -0
  47. package/src/reactivity.ts +1 -0
  48. package/src/router.ts +70 -0
  49. package/src/scheduler.ts +1 -0
  50. package/src/search-engine.ts +136 -0
  51. package/src/security.ts +23 -0
  52. package/src/services.ts +44 -0
  53. package/src/sms.ts +5 -0
  54. package/src/ssg.ts +3 -0
  55. package/src/stacks.ts +226 -0
  56. package/src/storage.ts +13 -0
  57. package/src/tables.ts +57 -0
  58. package/src/team.ts +8 -0
  59. package/src/ui.ts +197 -0
  60. package/src/utils.ts +47 -0
package/src/index.ts ADDED
@@ -0,0 +1,58 @@
1
+ export * from './ai'
2
+ export * from './analytics'
3
+ export * from './api'
4
+ export * from './app'
5
+ export * from './auto-imports'
6
+ export * from './binary'
7
+ export * from './build'
8
+ export * from './cache'
9
+ export * from './cdn'
10
+ export * from './chat'
11
+ export * from './cli'
12
+ export * from './cloud'
13
+ export * from './components'
14
+ export * from './configure'
15
+ export * from './cron-jobs'
16
+ export * from './database'
17
+ export * from './dependencies'
18
+ export * from './deploy'
19
+ export * from './dns'
20
+ export * from './docs'
21
+ export * from './errors'
22
+ export * from './email'
23
+ export * from './env'
24
+ export * from './events'
25
+ export * from './exit-code'
26
+ export * from './file-systems'
27
+ export * from './git'
28
+ export * from './hashing'
29
+ export * from './i18n'
30
+ export * from './inspect'
31
+ // export * from './layout'
32
+ export * from './library'
33
+ export * from './manifest'
34
+ export * from './model'
35
+ export * from './money'
36
+ export * from './notifications'
37
+ export * from './pages'
38
+ export * from './payments'
39
+ export * from './promise'
40
+ export * from './pwa'
41
+ export * from './push'
42
+ export * from './queue'
43
+ export * from './reactivity'
44
+ export * from './router'
45
+ export * from './scheduler'
46
+ export * from './search-engine'
47
+ export * from './security'
48
+ export * from './services'
49
+ export * from './sms'
50
+ export * from './ssg'
51
+ export * from './storage'
52
+ export * from './stacks'
53
+ export * from './team'
54
+ export * from './tables'
55
+ export * from './ui'
56
+ export * from './utils'
57
+
58
+ export * from './helpers'
package/src/inspect.ts ADDED
@@ -0,0 +1,10 @@
1
+ import type { Options } from 'vite-plugin-inspect'
2
+
3
+ /**
4
+ * **Inspect Options**
5
+ *
6
+ * The inspect options.
7
+ *
8
+ * @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
9
+ */
10
+ export type InspectOptions = Options
package/src/layout.ts ADDED
@@ -0,0 +1,8 @@
1
+ // import type { UserOptions } from 'vite-plugin-vue-layouts'
2
+ //
3
+ // /**
4
+ // * **Layout Options**
5
+ // *
6
+ // * The layout options.
7
+ // */
8
+ // export type LayoutOptions = UserOptions
package/src/library.ts ADDED
@@ -0,0 +1,156 @@
1
+ import type { TagsOptions } from './components'
2
+
3
+ /**
4
+ * **Library Options**
5
+ *
6
+ * This configuration defines all of your library 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 LibraryOptions {
11
+ /**
12
+ * The base name of your library/libraries.
13
+ */
14
+ name: string
15
+
16
+ /**
17
+ * The organization / parent / owner name.
18
+ * @example
19
+ * ```ts
20
+ * const owner = 'your-org' // <-- this is the owner
21
+ * const repository = 'your-repo'
22
+ * const packageName = owner ? `@${owner}/${repository}' // @your-org/your-repo <-- this is where the owner's name would be used
23
+ * ```
24
+ */
25
+ owner: string | null
26
+
27
+ /**
28
+ * The package registry to use.
29
+ */
30
+ packageRegistry: 'npm'
31
+
32
+ /**
33
+ * The path of your repository.
34
+ *
35
+ * @example
36
+ * "your-org/your-repo"
37
+ */
38
+ repository: string
39
+
40
+ /**
41
+ * The list of accepted SPDX licenses.
42
+ * When developing OS packages, you may want to utilize an OSI approved license.
43
+ *
44
+ * @example
45
+ * "MIT"
46
+ * @see https://opensource.org/licenses
47
+ */
48
+ license: LicenseType
49
+
50
+ /**
51
+ * The author's name of the library.
52
+ */
53
+ author: string
54
+
55
+ /**
56
+ * A list of all the contributors.
57
+ */
58
+ contributors: string[]
59
+
60
+ releaseable: boolean
61
+
62
+ /**
63
+ * The default language used within your stack.
64
+ */
65
+ defaultLanguage: LanguageCode
66
+
67
+ /**
68
+ * The Vue component library options.
69
+ */
70
+ vueComponents: LibraryBuildOptions
71
+
72
+ /**
73
+ * The Web Component library options.
74
+ */
75
+ webComponents: LibraryBuildOptions
76
+
77
+ /**
78
+ * The Web Component library options.
79
+ */
80
+ functions: LibraryBuildOptions
81
+ }
82
+
83
+ export type LibraryConfig = Partial<LibraryOptions>
84
+
85
+ /**
86
+ * The list of available options to build your library.
87
+ */
88
+ export interface LibraryBuildOptions {
89
+ /**
90
+ * The name of your library as published to npm.
91
+ */
92
+ name: string
93
+
94
+ /**
95
+ * The description of your library as published to npm.
96
+ */
97
+ description: string
98
+
99
+ /**
100
+ * The keywords of your library as published to npm.
101
+ */
102
+ keywords: string[]
103
+
104
+ /**
105
+ * Should your library generate a sourcemap?
106
+ * @default false
107
+ */
108
+ shouldGenerateSourcemap?: boolean
109
+
110
+ /**
111
+ * This is where you define the functions/composables that need to be included
112
+ * in your library. For example, including your `counter` function to be
113
+ * built would require `../functions/counter.ts` to be present.
114
+ */
115
+ functions?: string[]
116
+
117
+ /**
118
+ * This is where you define the components that need to be included in
119
+ * your library. For example, including your `HelloWorld` to be built
120
+ * would require `../components/HelloWorld.stx` to be present.
121
+ *
122
+ * @example
123
+ * {
124
+ * tags: [{
125
+ * name: 'HelloWorld' // export { default as HelloWorld } from './components/HelloWorld.stx'
126
+ * }]
127
+ * }
128
+ *
129
+ * @example
130
+ * {
131
+ * tags: [{
132
+ * name: ['HelloWorld', 'AppHelloWorld'] // export { default as AppHelloWorld } from './components/HelloWorld.stx'
133
+ * }]
134
+ * }
135
+ */
136
+ tags?: TagsOptions
137
+ }
138
+
139
+ /**
140
+ * The name of your "Stack" which generally is your library name
141
+ * or a concatenation of your organization & library name.
142
+ */
143
+ export type StackName = string
144
+
145
+ /**
146
+ * The list of accepted SPDX licenses.
147
+ * When developing OS packages, you may want to utilize an OSI approved license.
148
+ * @see https://opensource.org/licenses
149
+ */
150
+ 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'
151
+
152
+ /**
153
+ * The list of accepted language codes.
154
+ * @see https://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code
155
+ */
156
+ 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'
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The npm package manifest (package.json)
3
+ */
4
+ export interface Manifest {
5
+ name: string
6
+ version: string
7
+ description: string
8
+ [key: string]: unknown
9
+ }
package/src/model.ts ADDED
@@ -0,0 +1,72 @@
1
+ import type { VineBoolean, VineNumber, VineString } from '@vinejs/vine'
2
+ import type { Nullable, SearchEngineSettings } from '.'
3
+
4
+ export interface AuthOptions {}
5
+
6
+ export interface SeedOptions {
7
+ count: number
8
+ }
9
+
10
+ export interface TimestampOptions {
11
+ createdAt?: string // defaults to 'created_at'
12
+ updatedAt?: string
13
+ deletedAt?: string
14
+ }
15
+
16
+ export interface SoftDeleteOptions {
17
+ deletedAt?: string // defaults to 'deleted_at' & can be used for localized tables
18
+ }
19
+
20
+ interface Base {}
21
+
22
+ /**
23
+ * Model.
24
+ */
25
+ export interface ModelOptions extends Base {
26
+ name: string // defaults to the file name of the model
27
+ table: string // defaults to the lowercase, plural name of the model
28
+ useUuid: boolean
29
+ fields: Fields
30
+ hasOne: string // hasOne: 'Post'
31
+ hasMany: {
32
+ model: string // should be typed as ModelName
33
+ foreignKey?: string
34
+ }
35
+ belongsToMany: object
36
+ hasThrough: {
37
+ model: string // should be typed as ModelName
38
+ through: string
39
+ using: string
40
+ }
41
+ authenticatable: boolean | AuthOptions
42
+ seedable: boolean | SeedOptions
43
+ searchable: boolean | SearchEngineSettings
44
+ useSeed: boolean | SeedOptions
45
+ useSearch: boolean | SearchEngineSettings
46
+ useSearchEngine: boolean | SearchEngineSettings
47
+ useTimestamps: boolean | TimestampOptions
48
+ useSoftDeletes: boolean | SoftDeleteOptions
49
+
50
+ attributes: {
51
+ [key: string]: {
52
+ get: (value: any) => any
53
+ set: (value: any) => any
54
+ }
55
+ }
56
+ }
57
+
58
+ export interface Fields {
59
+ [key: string]: {
60
+ default?: string | number | boolean | Date
61
+ unique?: boolean
62
+ required?: boolean
63
+ factory?: () => any
64
+ validator?: {
65
+ rule: VineString | VineNumber | VineBoolean | Date | Nullable<any>
66
+ message: string
67
+ }
68
+ // validation?: String | Number | Boolean | Date
69
+ }
70
+ }
71
+
72
+ export type Model = Partial<ModelOptions>
package/src/money.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Dinero } from 'dinero.js'
2
+
3
+ export type Money = Dinero<number>
package/src/native.ts ADDED
File without changes
@@ -0,0 +1,147 @@
1
+ export interface NotificationOptions {
2
+ default: 'email' | 'sms' | 'chat' | string
3
+
4
+ email: {
5
+ default: 'emailjs' | 'mailgun' | 'mailjet' | 'mandrill' | 'netcore' | 'nodemailer' | 'postmark' | 'sendgrid' | 'ses' | string
6
+
7
+ from: {
8
+ name: string
9
+ address: string
10
+ }
11
+
12
+ drivers: {
13
+ smtp: {
14
+ host: string
15
+ port: number
16
+ secure: boolean
17
+ auth: {
18
+ user: string
19
+ pass: string
20
+ }
21
+ }
22
+
23
+ sendgrid: {
24
+ key: string
25
+ senderName: string
26
+ }
27
+
28
+ emailjs: {
29
+ host: string
30
+ user: string
31
+ password: string
32
+ port: number
33
+ secure: boolean
34
+ }
35
+
36
+ mailgun: {
37
+ key: string
38
+ domain: string
39
+ username: string
40
+ }
41
+
42
+ mailjet: {
43
+ key: string
44
+ secret: string
45
+ }
46
+
47
+ mandrill: {
48
+ key: string
49
+ }
50
+
51
+ netcore: {
52
+ key: string
53
+ }
54
+
55
+ nodemailer: {
56
+ host: string
57
+ user: string
58
+ password: string
59
+ port: number
60
+ secure: boolean
61
+ }
62
+
63
+ postmark: {
64
+ key: string
65
+ }
66
+
67
+ ses: {
68
+ region: string
69
+ key: string
70
+ secret: string
71
+ }
72
+ }
73
+ }
74
+
75
+ sms: {
76
+ default: 'twilio' | 'nexmo' | 'gupshup' | 'plivo' | 'sms77' | 'sns' | 'telnyx' | 'termii' | string
77
+ from: string
78
+
79
+ drivers: {
80
+ twilio: {
81
+ sid: string
82
+ authToken: string
83
+ }
84
+
85
+ nexmo: {
86
+ key: string
87
+ secret: string
88
+ }
89
+
90
+ gupshup: {
91
+ user: string
92
+ password: string
93
+ }
94
+
95
+ plivo: {
96
+ sid: string
97
+ authToken: string
98
+ }
99
+
100
+ sms77: {
101
+ key: string
102
+ }
103
+
104
+ sns: {
105
+ region: string
106
+ key: string
107
+ secret: string
108
+ }
109
+
110
+ telnyx: {
111
+ key: string
112
+ messageProfileId: string
113
+ }
114
+
115
+ termii: {
116
+ key: string
117
+ }
118
+ }
119
+ }
120
+
121
+ chat: {
122
+ default: 'slack' | 'msTeams' | 'discord' | string
123
+ from: string
124
+
125
+ drivers: {
126
+ slack?: {
127
+ appId: string
128
+ clientId: string
129
+ secret: string
130
+ }
131
+
132
+ msTeams?: {
133
+ appId: string
134
+ clientId: string
135
+ secret: string
136
+ }
137
+
138
+ discord?: {
139
+ // appId: string
140
+ // clientId: string
141
+ // secret: string
142
+ }
143
+ }
144
+ }
145
+ }
146
+
147
+ export type NotificationConfig = Partial<NotificationOptions>
package/src/pages.ts ADDED
@@ -0,0 +1,10 @@
1
+ export interface PagesOption {
2
+ onboarding: {
3
+ path: string
4
+ pages: string[]
5
+ }
6
+ settings: {
7
+ path: string
8
+ pages: string[]
9
+ }
10
+ }
@@ -0,0 +1,65 @@
1
+ export interface PaymentOptions {
2
+ driver: 'stripe'
3
+ }
4
+
5
+ export type PaymentConfig = Partial<PaymentOptions>
6
+
7
+ export interface ChargeOptions {
8
+ currency?: string
9
+ source?: string
10
+ description?: string
11
+ chargeId?: string
12
+ limit?: number
13
+ metadata?: object
14
+ searchOptions: {
15
+ query?: string
16
+ limit?: number
17
+ }
18
+ }
19
+
20
+ export interface CustomerOptions {
21
+ description?: string
22
+ address?: string
23
+ email?: string
24
+ metadata?: object
25
+ name?: string
26
+ payment_method?: string
27
+ shipping: string
28
+ listOptions?: {
29
+ created?: object
30
+ ending_before?: string
31
+ limit?: number
32
+ starting_after?: string
33
+ test_clock?: string
34
+ }
35
+ searchOptions?: {
36
+ query?: string
37
+ limit?: number
38
+ page?: number
39
+ }
40
+ }
41
+
42
+ export interface DisputeOptions {
43
+ dp_id?: string
44
+ metadata?: object
45
+ listOptions?: {
46
+ charge?: string
47
+ payment_intent?: string
48
+ created?: string
49
+ ending_before?: string
50
+ limit?: number
51
+ starting_after?: string
52
+ }
53
+ }
54
+
55
+ export interface EventOptions {
56
+ event_id?: string
57
+ listOptions?: {
58
+ created?: object
59
+ delivery_success?: boolean
60
+ ending_before?: string
61
+ limit?: number
62
+ starting_after?: string
63
+ type?: string
64
+ }
65
+ }
package/src/promise.ts ADDED
@@ -0,0 +1 @@
1
+ export type MaybePromise<T> = T | Promise<T>
package/src/push.ts ADDED
@@ -0,0 +1,36 @@
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
+
16
+ export interface ExpoPushNotificationOptions {
17
+ eventName: string
18
+ to: {
19
+ subscriberId: string
20
+ }
21
+ payload: {
22
+ to: string[]
23
+ data: object
24
+ title: string
25
+ body: string
26
+ ttl: number
27
+ expiration: number
28
+ priority: 'default' | 'normal' | 'high'
29
+ subtitle: string
30
+ sound: 'default' | null
31
+ badge: number
32
+ channelId: string
33
+ categoryId: string
34
+ mutableContent: boolean
35
+ }
36
+ }
package/src/pwa.ts ADDED
@@ -0,0 +1,8 @@
1
+ import type { Options } from 'vite-plugin-pwa'
2
+
3
+ /**
4
+ * **PWA Options**
5
+ *
6
+ * The PWA options.
7
+ */
8
+ export type PwaOptions = Options
package/src/queue.ts ADDED
@@ -0,0 +1,36 @@
1
+ export interface QueueOptions {
2
+ default: 'sync' | 'database' | 'redis' | 'sqs'
3
+ connections: {
4
+ sync: {
5
+ driver: 'sync'
6
+ }
7
+ database: {
8
+ driver: 'database'
9
+ table: 'jobs'
10
+ queue: 'default'
11
+ retry_after: 90
12
+ }
13
+ redis: {
14
+ driver: 'redis'
15
+ connection: 'default'
16
+ queue: 'default'
17
+ retry_after: 90
18
+ }
19
+ sqs: {
20
+ driver: 'sqs'
21
+ key: ''
22
+ secret: ''
23
+ prefix: ''
24
+ suffix: ''
25
+ queue: 'default'
26
+ region: 'us-east-1'
27
+ }
28
+ }
29
+ failed: {
30
+ driver: 'database'
31
+ database: 'mysql'
32
+ table: 'failed_jobs'
33
+ }
34
+ }
35
+
36
+ export type QueueConfig = Partial<QueueOptions>
@@ -0,0 +1 @@
1
+ export type { Ref } from 'vue'