@stacksjs/types 0.70.86 → 0.70.87
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 +19 -5
- package/src/ai.ts +0 -41
- package/src/analytics.ts +0 -58
- package/src/api.ts +0 -77
- package/src/app.ts +0 -189
- package/src/attributes.ts +0 -5
- package/src/auth.ts +0 -161
- package/src/auto-imports.ts +0 -8
- package/src/binary.ts +0 -13
- package/src/cache.ts +0 -325
- package/src/cdn.ts +0 -17
- package/src/chat.ts +0 -193
- package/src/cli.ts +0 -445
- package/src/cloud.ts +0 -381
- package/src/cms.ts +0 -14
- package/src/commerce.ts +0 -18
- package/src/components.ts +0 -62
- package/src/configure.ts +0 -13
- package/src/cors.ts +0 -86
- package/src/cron-jobs.ts +0 -146
- package/src/dashboard.ts +0 -218
- package/src/database.ts +0 -117
- package/src/dependencies.ts +0 -69
- package/src/deploy.ts +0 -17
- package/src/dns.ts +0 -470
- package/src/docs.ts +0 -27
- package/src/email.ts +0 -511
- package/src/env.ts +0 -1
- package/src/errors.ts +0 -110
- package/src/events.ts +0 -37
- package/src/exit-code.ts +0 -10
- package/src/file-systems.ts +0 -70
- package/src/git.ts +0 -133
- package/src/hashing.ts +0 -127
- package/src/helpers.ts +0 -9
- package/src/i18n.ts +0 -121
- package/src/index.ts +0 -80
- package/src/library.ts +0 -911
- package/src/logging.ts +0 -62
- package/src/manifest.ts +0 -9
- package/src/marketing.ts +0 -14
- package/src/model-dashboard-augmentation.ts +0 -51
- package/src/model-names.ts +0 -1
- package/src/model.ts +0 -353
- package/src/monitoring.ts +0 -14
- package/src/native.ts +0 -0
- package/src/notifications.ts +0 -153
- package/src/oauth.ts +0 -488
- package/src/pages.ts +0 -10
- package/src/payments.ts +0 -440
- package/src/phone.ts +0 -78
- package/src/ports.ts +0 -20
- package/src/promise.ts +0 -1
- package/src/push.ts +0 -143
- package/src/queue.ts +0 -413
- package/src/reactivity.ts +0 -1
- package/src/realtime.ts +0 -584
- package/src/request.ts +0 -541
- package/src/response.ts +0 -16
- package/src/router.ts +0 -124
- package/src/saas.ts +0 -33
- package/src/scheduler.ts +0 -1
- package/src/search-engine.ts +0 -251
- package/src/security.ts +0 -23
- package/src/server.ts +0 -16
- package/src/services.ts +0 -211
- package/src/settings-config.ts +0 -10
- package/src/sms.ts +0 -265
- package/src/stack-extensions.ts +0 -184
- package/src/stacks.ts +0 -339
- package/src/storage.ts +0 -173
- package/src/table-names.ts +0 -1
- package/src/tables.ts +0 -57
- package/src/team.ts +0 -8
- package/src/ui.ts +0 -197
- package/src/utils.ts +0 -46
package/src/stacks.ts
DELETED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AiConfig,
|
|
3
|
-
AnalyticsConfig,
|
|
4
|
-
AppConfig,
|
|
5
|
-
AuthConfig,
|
|
6
|
-
BinaryConfig,
|
|
7
|
-
CacheConfig,
|
|
8
|
-
CloudConfig,
|
|
9
|
-
CmsConfig,
|
|
10
|
-
CommerceConfig,
|
|
11
|
-
CorsConfig,
|
|
12
|
-
DashboardConfig,
|
|
13
|
-
DatabaseConfig,
|
|
14
|
-
DnsConfig,
|
|
15
|
-
DocsConfig,
|
|
16
|
-
EmailConfig,
|
|
17
|
-
ErrorConfig,
|
|
18
|
-
FilesystemsConfig,
|
|
19
|
-
GitConfig,
|
|
20
|
-
HashingConfig,
|
|
21
|
-
LibraryConfig,
|
|
22
|
-
LoggingConfig,
|
|
23
|
-
MarketingConfig,
|
|
24
|
-
MonitoringConfig,
|
|
25
|
-
NotificationConfig,
|
|
26
|
-
PaymentConfig,
|
|
27
|
-
Ports,
|
|
28
|
-
QueueConfig,
|
|
29
|
-
RealtimeConfig,
|
|
30
|
-
SaasConfig,
|
|
31
|
-
SearchEngineConfig,
|
|
32
|
-
SecurityConfig,
|
|
33
|
-
ServicesConfig,
|
|
34
|
-
Team,
|
|
35
|
-
UiConfig,
|
|
36
|
-
} from '.'
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* **Stacks Options**
|
|
40
|
-
*
|
|
41
|
-
* This configuration defines all of your Stacks options. Because Stacks is fully-typed,
|
|
42
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
43
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
44
|
-
*/
|
|
45
|
-
export interface StacksOptions {
|
|
46
|
-
ai: AiConfig
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* **Analytics Options**
|
|
50
|
-
*
|
|
51
|
-
* This configuration defines all of your Analytics options. Because Stacks is fully-typed, you
|
|
52
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
53
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
54
|
-
*/
|
|
55
|
-
analytics: AnalyticsConfig
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* **Application Options**
|
|
59
|
-
*
|
|
60
|
-
* This configuration defines all of your Application options. Because Stacks is fully-typed,
|
|
61
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
62
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
63
|
-
*/
|
|
64
|
-
app: AppConfig
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* **Auth Options**
|
|
68
|
-
*
|
|
69
|
-
* This configuration defines all of your Auth options. Because Stacks is fully-typed, you
|
|
70
|
-
* may hover any of the options below and the definitions will be provided. In case
|
|
71
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
72
|
-
*/
|
|
73
|
-
auth: AuthConfig
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* **CORS Options**
|
|
77
|
-
*
|
|
78
|
-
* Cross-origin resource sharing policy applied to API responses.
|
|
79
|
-
* Configured via `config/cors.ts`. See {@link CorsConfig}.
|
|
80
|
-
*/
|
|
81
|
-
cors?: CorsConfig
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* **Realtime Options**
|
|
85
|
-
*
|
|
86
|
-
* This configuration defines all of your Realtime options. Because Stacks is fully-typed,
|
|
87
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
88
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
89
|
-
*/
|
|
90
|
-
realtime: RealtimeConfig
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* **Cache Options**
|
|
94
|
-
*
|
|
95
|
-
* This configuration defines all of your Cache options. Because Stacks is fully-typed, you
|
|
96
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
97
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
98
|
-
*/
|
|
99
|
-
cache: CacheConfig
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* **CLI / Binary Options**
|
|
103
|
-
*
|
|
104
|
-
* This configuration defines all of your Binary options. Because Stacks is fully-typed, you
|
|
105
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
106
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
107
|
-
*/
|
|
108
|
-
cli: BinaryConfig
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* **Cloud Options**
|
|
112
|
-
*
|
|
113
|
-
* This configuration defines all of your Cloud options. Because Stacks is fully-typed, you
|
|
114
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
115
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
116
|
-
*/
|
|
117
|
-
cloud: CloudConfig
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* **CMS Options**
|
|
121
|
-
*
|
|
122
|
-
* Top-level feature gate for the CMS bundle (Post / Page / Author /
|
|
123
|
-
* Comment / Tag / Category models + content-edit dashboards).
|
|
124
|
-
*/
|
|
125
|
-
cms: CmsConfig
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* **Commerce Options**
|
|
129
|
-
*
|
|
130
|
-
* Top-level feature gate for the commerce bundle plus storefront defaults.
|
|
131
|
-
*/
|
|
132
|
-
commerce: CommerceConfig
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* **Dashboard Options**
|
|
136
|
-
*
|
|
137
|
-
* Top-level feature gate plus per-section visibility toggles for the
|
|
138
|
-
* `buddy dev --dashboard` sidebar.
|
|
139
|
-
*/
|
|
140
|
-
dashboard: DashboardConfig
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* **Database Options**
|
|
144
|
-
*
|
|
145
|
-
* This configuration defines all of your Database options. Because Stacks is fully-typed, you
|
|
146
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
147
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
148
|
-
*/
|
|
149
|
-
database: DatabaseConfig
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* **DNS Options**
|
|
153
|
-
*
|
|
154
|
-
* This configuration defines all of your DNS options. Because Stacks is fully-typed, you
|
|
155
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
156
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
157
|
-
*/
|
|
158
|
-
dns: DnsConfig
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* **Docs Options**
|
|
162
|
-
*
|
|
163
|
-
* This configuration defines all of your Docs options. Because Stacks is fully-typed, you
|
|
164
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
165
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
166
|
-
*/
|
|
167
|
-
docs: DocsConfig
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* **Email Options**
|
|
171
|
-
*
|
|
172
|
-
* This configuration defines all of your Email options. Because Stacks is fully-typed, you
|
|
173
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
174
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
175
|
-
*/
|
|
176
|
-
email: EmailConfig
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* **Errors Options**
|
|
180
|
-
*
|
|
181
|
-
* This configuration defines all of your Errors options. Because Stacks is fully-typed, you
|
|
182
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
183
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
184
|
-
*/
|
|
185
|
-
errors: ErrorConfig
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* **Git Options**
|
|
189
|
-
*
|
|
190
|
-
* This configuration defines all of your Git options. Because Stacks is fully-typed, you
|
|
191
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
192
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
193
|
-
*/
|
|
194
|
-
git: GitConfig
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* **Hashing Options**
|
|
198
|
-
*
|
|
199
|
-
* This configuration defines all of your Hashing options. Because Stacks is fully-typed, you
|
|
200
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
201
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
202
|
-
*/
|
|
203
|
-
hashing: HashingConfig
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* **Library Options**
|
|
207
|
-
*
|
|
208
|
-
* This configuration defines all of your Library options. Because Stacks is fully-typed, you
|
|
209
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
210
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
211
|
-
*/
|
|
212
|
-
library: LibraryConfig
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* **Logging Options**
|
|
216
|
-
*
|
|
217
|
-
* This configuration defines all of your logging options. Because Stacks is fully-typed, you
|
|
218
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
219
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
220
|
-
*/
|
|
221
|
-
logging: LoggingConfig
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* **Marketing Options**
|
|
225
|
-
*
|
|
226
|
-
* Top-level feature gate for the marketing bundle (`/api/email/subscribe`,
|
|
227
|
-
* `/api/contact`, Campaign / EmailList / SocialPost).
|
|
228
|
-
*/
|
|
229
|
-
marketing: MarketingConfig
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* **Monitoring Options**
|
|
233
|
-
*
|
|
234
|
-
* Top-level feature gate for the monitoring bundle (Error model +
|
|
235
|
-
* error-tracking views and actions).
|
|
236
|
-
*/
|
|
237
|
-
monitoring: MonitoringConfig
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* **Notification Options**
|
|
241
|
-
*
|
|
242
|
-
* This configuration defines all of your Notification options. Because Stacks is fully-typed,
|
|
243
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
244
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
245
|
-
*/
|
|
246
|
-
notification: NotificationConfig
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* **Payment Options**
|
|
250
|
-
*
|
|
251
|
-
* This configuration defines all of your Payment options. Because Stacks is fully-typed,
|
|
252
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
253
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
254
|
-
*/
|
|
255
|
-
payment: PaymentConfig
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* **Ports**
|
|
259
|
-
*
|
|
260
|
-
* This configuration defines all of your Ports options. Because Stacks is fully-typed, you
|
|
261
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
262
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
263
|
-
*/
|
|
264
|
-
ports: Ports
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* **Queue Options**
|
|
268
|
-
*
|
|
269
|
-
* This configuration defines all of your Queue options. Because Stacks is fully-typed,
|
|
270
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
271
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
272
|
-
*/
|
|
273
|
-
queue: QueueConfig
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* **SaaS Options**
|
|
277
|
-
*
|
|
278
|
-
* This configuration defines all of your SaaS options. Because Stacks is fully-typed,
|
|
279
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
280
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
281
|
-
*/
|
|
282
|
-
saas: SaasConfig
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* **Search Engine Options**
|
|
286
|
-
*
|
|
287
|
-
* This configuration defines all of your Search Engine options. Because Stacks is fully-typed,
|
|
288
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
289
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
290
|
-
*/
|
|
291
|
-
security: SecurityConfig
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* **Search Engine Options**
|
|
295
|
-
*
|
|
296
|
-
* This configuration defines all of your Search Engine options. Because Stacks is fully-typed,
|
|
297
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
298
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
299
|
-
*/
|
|
300
|
-
searchEngine: SearchEngineConfig
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* **Services Options**
|
|
304
|
-
*
|
|
305
|
-
* This configuration defines all of your Services options. Because Stacks is fully-typed,
|
|
306
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
307
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
308
|
-
*/
|
|
309
|
-
services: ServicesConfig
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* **Filesystems Options**
|
|
313
|
-
*
|
|
314
|
-
* This configuration defines all of your Filesystem options. Because Stacks is fully-typed,
|
|
315
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
316
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
317
|
-
*/
|
|
318
|
-
filesystems: FilesystemsConfig
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* **Team Members**
|
|
322
|
-
*
|
|
323
|
-
* This configuration defines all of your Team members. Because Stacks is fully-typed, you
|
|
324
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
325
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
326
|
-
*/
|
|
327
|
-
team: Team
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* **UI Options**
|
|
331
|
-
*
|
|
332
|
-
* This configuration defines all of your UI options. Because Stacks is fully-typed, you
|
|
333
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
334
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
335
|
-
*/
|
|
336
|
-
ui: UiConfig
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
export type StacksConfig = Partial<StacksOptions>
|
package/src/storage.ts
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import type { Buffer } from 'node:buffer'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* File contents can be a string, Buffer, Uint8Array, or ReadableStream
|
|
5
|
-
*/
|
|
6
|
-
export type FileContents = string | Buffer | Uint8Array | ReadableStream
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Visibility options for files
|
|
10
|
-
*/
|
|
11
|
-
export type Visibility = 'public' | 'private'
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* File stat entry information
|
|
15
|
-
*/
|
|
16
|
-
export interface StatEntry {
|
|
17
|
-
path: string
|
|
18
|
-
type: 'file' | 'directory'
|
|
19
|
-
visibility: Visibility
|
|
20
|
-
size: number
|
|
21
|
-
lastModified: number
|
|
22
|
-
mimeType?: string
|
|
23
|
-
metadata?: Record<string, any>
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Directory listing entry
|
|
28
|
-
*/
|
|
29
|
-
export interface DirectoryEntry {
|
|
30
|
-
path: string
|
|
31
|
-
type: 'file' | 'directory'
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Directory listing iterator
|
|
36
|
-
*/
|
|
37
|
-
export interface DirectoryListing extends AsyncIterable<DirectoryEntry> {
|
|
38
|
-
[Symbol.asyncIterator](): AsyncIterator<DirectoryEntry>
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Options for generating public URLs
|
|
43
|
-
*/
|
|
44
|
-
export interface PublicUrlOptions {
|
|
45
|
-
domain?: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Options for generating temporary URLs
|
|
50
|
-
*/
|
|
51
|
-
export interface TemporaryUrlOptions {
|
|
52
|
-
expiresIn: number | Date
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Checksum algorithm options
|
|
57
|
-
*/
|
|
58
|
-
export interface ChecksumOptions {
|
|
59
|
-
algorithm?: 'md5' | 'sha1' | 'sha256'
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* MIME type detection options
|
|
64
|
-
*/
|
|
65
|
-
export interface MimeTypeOptions {
|
|
66
|
-
useExtension?: boolean
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface StorageOptions {
|
|
70
|
-
/**
|
|
71
|
-
* **Storage Driver**
|
|
72
|
-
*
|
|
73
|
-
* The storage driver to utilize.
|
|
74
|
-
*
|
|
75
|
-
* @default 'local'
|
|
76
|
-
* @see https://stacksjs.com/docs/storage
|
|
77
|
-
*/
|
|
78
|
-
driver: 's3' | 'efs' | 'local' | 'bun' | 'memory'
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* **Root Directory**
|
|
82
|
-
*
|
|
83
|
-
* Root directory for local and bun drivers.
|
|
84
|
-
*
|
|
85
|
-
* @default process.cwd()
|
|
86
|
-
*/
|
|
87
|
-
root?: string
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* **S3 Configuration**
|
|
91
|
-
*/
|
|
92
|
-
s3?: {
|
|
93
|
-
/**
|
|
94
|
-
* S3 bucket name
|
|
95
|
-
*/
|
|
96
|
-
bucket: string
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* S3 region
|
|
100
|
-
*
|
|
101
|
-
* @default 'us-east-1'
|
|
102
|
-
*/
|
|
103
|
-
region?: string
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Key prefix for all S3 objects
|
|
107
|
-
*/
|
|
108
|
-
prefix?: string
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* AWS credentials
|
|
112
|
-
*/
|
|
113
|
-
credentials?: {
|
|
114
|
-
accessKeyId: string
|
|
115
|
-
secretAccessKey: string
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Custom endpoint (for S3-compatible services)
|
|
120
|
-
*/
|
|
121
|
-
endpoint?: string
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* **Public URL Configuration**
|
|
126
|
-
*/
|
|
127
|
-
publicUrl?: {
|
|
128
|
-
/**
|
|
129
|
-
* Domain for public URLs
|
|
130
|
-
*
|
|
131
|
-
* @default 'http://localhost'
|
|
132
|
-
*/
|
|
133
|
-
domain?: string
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* **Default Visibility**
|
|
138
|
-
*
|
|
139
|
-
* @default 'private'
|
|
140
|
-
*/
|
|
141
|
-
defaultVisibility?: Visibility
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export type StorageConfig = Partial<StorageOptions>
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Filesystem configuration (Laravel-style alias)
|
|
148
|
-
*/
|
|
149
|
-
export type FilesystemsConfig = StorageConfig
|
|
150
|
-
|
|
151
|
-
export interface StorageDriver {
|
|
152
|
-
list: (path: string, options?: any) => DirectoryListing
|
|
153
|
-
changeVisibility: (path: string, visibility: Visibility) => Promise<void>
|
|
154
|
-
visibility: (path: string) => Promise<Visibility>
|
|
155
|
-
fileExists: (path: string) => Promise<boolean>
|
|
156
|
-
directoryExists: (path: string) => Promise<boolean>
|
|
157
|
-
publicUrl: (path: string, options: PublicUrlOptions) => Promise<string>
|
|
158
|
-
temporaryUrl: (path: string, options: TemporaryUrlOptions) => Promise<string>
|
|
159
|
-
checksum: (path: string, options: ChecksumOptions) => Promise<string>
|
|
160
|
-
mimeType: (path: string, options: MimeTypeOptions) => Promise<string>
|
|
161
|
-
lastModified: (path: string) => Promise<number>
|
|
162
|
-
fileSize: (path: string) => Promise<number>
|
|
163
|
-
read: (path: string) => Promise<FileContents>
|
|
164
|
-
readToString: (path: string) => Promise<string>
|
|
165
|
-
readToBuffer: (path: string) => Promise<Buffer>
|
|
166
|
-
readToUint8Array: (path: string) => Promise<Uint8Array>
|
|
167
|
-
deleteFile: (path: string) => Promise<void>
|
|
168
|
-
copyFile: (from: string, to: string) => Promise<void>
|
|
169
|
-
moveFile: (from: string, to: string) => Promise<void>
|
|
170
|
-
stat: (path: string) => Promise<StatEntry>
|
|
171
|
-
createDirectory: (path: string) => Promise<void>
|
|
172
|
-
write: (path: string, contents: FileContents) => Promise<void>
|
|
173
|
-
}
|
package/src/table-names.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TableNames = 'tags' | 'taggables' | 'categorizables' | 'comments' | 'commentables' | 'commentable_upvotes' | 'passkeys' | 'password_resets' | 'query_logs' | 'migrations' | 'tags' | 'payment_products' | 'failed_jobs' | 'social_posts' | 'payment_methods' | 'campaigns' | 'payment_transactions' | 'requests' | 'activities' | 'email_lists' | 'notifications' | 'jobs' | 'logs' | 'subscriptions' | 'errors' | 'comments' | 'users' | 'websockets' | 'pages' | 'authors' | 'posts' | 'print_devices' | 'categories' | 'payments' | 'drivers' | 'waitlist_products' | 'digital_deliveries' | 'manufacturers' | 'order_items' | 'shipping_zones' | 'customers' | 'products' | 'receipts' | 'product_variants' | 'license_keys' | 'waitlist_restaurants' | 'reviews' | 'product_units' | 'gift_cards' | 'orders' | 'coupons' | 'tax_rates' | 'transactions' | 'loyalty_points' | 'loyalty_rewards' | 'shipping_methods' | 'shipping_rates' | 'carts' | 'delivery_routes' | 'cart_items' | 'subscribers' | 'subscriber_emails'
|
package/src/tables.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { Hits, SearchResponse } from 'meilisearch'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* the TableStore interface is primarily used to unify the persisting of data to localStorage
|
|
5
|
-
*/
|
|
6
|
-
export interface TableStore {
|
|
7
|
-
/**
|
|
8
|
-
* The search engine index name.
|
|
9
|
-
* i.e. the type of table, like `users`, `posts`, `products`, etc.
|
|
10
|
-
*/
|
|
11
|
-
index: string
|
|
12
|
-
/**
|
|
13
|
-
* The search engine results object.
|
|
14
|
-
*/
|
|
15
|
-
results?: SearchResponse<Record<string, any>> // optional: the Meilisearch search response (defaults: {})
|
|
16
|
-
/**
|
|
17
|
-
* The search engine hits object.
|
|
18
|
-
*/
|
|
19
|
-
hits?: Hits
|
|
20
|
-
|
|
21
|
-
columns: string[] // used as table heads/column titles
|
|
22
|
-
source?: string // optional: the Meilisearch host name/address (defaults: http://127.0.0.1:7700)
|
|
23
|
-
password?: string // optional: the Meilisearch password (defaults: '')
|
|
24
|
-
searchable?: string | boolean // optional: determines whether the table displays the search bar (defaults: true)
|
|
25
|
-
query?: string // optional: the "query" (= search input) used to search the table (defaults: '')
|
|
26
|
-
sortable?: string | boolean // optional: determines whether the table displays the "table head"-sorts (defaults: true)
|
|
27
|
-
sort?: string // optional: the only active sort to be applied to the table (defaults: '')
|
|
28
|
-
sorts?: string | string[] // optional: the specific type of sorts to be applied to the table (defaults: [])
|
|
29
|
-
filterable?: string | boolean // optional: determines whether the table displays the filters component (defaults: true)
|
|
30
|
-
filters?: string | string[] // optional: the specific type of filters to be displayed/utilized in the table (defaults: [])
|
|
31
|
-
filterValue?: any[] // optional: the specific type of filters to be displayed/utilized in the table (defaults: [])
|
|
32
|
-
actionable?: string | boolean // optional: determines whether the table displays any "action items" (defaults: true)
|
|
33
|
-
actions?: string | string[] // optional: the specific type of actions to be displayed/utilized in the table (defaults: 'Edit, Delete')
|
|
34
|
-
perPage: number // optional: the number of rows (items) to be displayed per page (defaults: 10)
|
|
35
|
-
selectable?: string | boolean // optional: determines whether the table displays the checkboxes (defaults: true)
|
|
36
|
-
selectedRows?: number[] | string[] // optional: holds the selected rows (defaults: [])
|
|
37
|
-
selectedAll?: boolean // optional: determines whether all the rows are selected (defaults: false)
|
|
38
|
-
// stickyHeader?: string | boolean // optional: determines whether the table displays the sticky header (defaults: false)
|
|
39
|
-
// stickyFooter?: string | boolean // optional: determines whether the table displays the sticky footer (defaults: false)
|
|
40
|
-
goToNextPage: number
|
|
41
|
-
goToPage: number
|
|
42
|
-
goToPrevPage: number
|
|
43
|
-
lastPageNumber: number
|
|
44
|
-
searchFilters?: object
|
|
45
|
-
searchParams?: object
|
|
46
|
-
setTotalHits: number
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* The current page number
|
|
51
|
-
* @default 1
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof TableStore
|
|
54
|
-
* @example 1
|
|
55
|
-
*/
|
|
56
|
-
currentPage: number
|
|
57
|
-
}
|