@stacksjs/types 0.70.22 → 0.70.25

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 (161) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/src/ai.d.ts +37 -0
  3. package/dist/src/analytics.d.ts +36 -0
  4. package/dist/src/api.d.ts +26 -0
  5. package/dist/src/app.d.ts +28 -0
  6. package/dist/src/attributes.d.ts +1 -0
  7. package/dist/src/auth.d.ts +49 -0
  8. package/dist/src/auto-imports.d.ts +8 -0
  9. package/dist/{binary.d.ts → src/binary.d.ts} +4 -1
  10. package/dist/src/cache.d.ts +79 -0
  11. package/dist/{cdn.d.ts → src/cdn.d.ts} +1 -1
  12. package/dist/{chat.d.ts → src/chat.d.ts} +29 -48
  13. package/dist/src/cli.d.ts +308 -0
  14. package/dist/{cloud.d.ts → src/cloud.d.ts} +81 -26
  15. package/dist/{components.d.ts → src/components.d.ts} +1 -4
  16. package/dist/{configure.d.ts → src/configure.d.ts} +1 -1
  17. package/dist/{cron-jobs.d.ts → src/cron-jobs.d.ts} +33 -37
  18. package/dist/src/dashboard.d.ts +33 -0
  19. package/dist/{database.d.ts → src/database.d.ts} +20 -12
  20. package/dist/src/dependencies.d.ts +17 -0
  21. package/dist/src/deploy.d.ts +16 -0
  22. package/dist/{dns.d.ts → src/dns.d.ts} +59 -59
  23. package/dist/src/docs.d.ts +23 -0
  24. package/dist/src/email.d.ts +201 -0
  25. package/dist/src/env.d.ts +1 -0
  26. package/dist/{errors.d.ts → src/errors.d.ts} +17 -24
  27. package/dist/src/events.d.ts +31 -0
  28. package/dist/src/exit-code.d.ts +10 -0
  29. package/dist/{file-systems.d.ts → src/file-systems.d.ts} +10 -6
  30. package/dist/{git.d.ts → src/git.d.ts} +9 -6
  31. package/dist/src/hashing.d.ts +57 -0
  32. package/dist/src/helpers.d.ts +1 -0
  33. package/dist/src/i18n.d.ts +65 -0
  34. package/dist/src/index.d.ts +70 -0
  35. package/dist/{library.d.ts → src/library.d.ts} +31 -33
  36. package/dist/src/logging.d.ts +12 -0
  37. package/dist/{manifest.d.ts → src/manifest.d.ts} +4 -1
  38. package/dist/src/model-names.d.ts +1 -0
  39. package/dist/src/model.d.ts +251 -0
  40. package/dist/{notifications.d.ts → src/notifications.d.ts} +1 -26
  41. package/dist/src/oauth.d.ts +290 -0
  42. package/dist/{pages.d.ts → src/pages.d.ts} +1 -1
  43. package/dist/src/payments.d.ts +322 -0
  44. package/dist/src/phone.d.ts +52 -0
  45. package/dist/src/ports.d.ts +20 -0
  46. package/dist/src/promise.d.ts +1 -0
  47. package/dist/src/push.d.ts +108 -0
  48. package/dist/src/queue.d.ts +310 -0
  49. package/dist/src/reactivity.d.ts +1 -0
  50. package/dist/src/realtime.d.ts +443 -0
  51. package/dist/src/request.d.ts +154 -0
  52. package/dist/{response.d.ts → src/response.d.ts} +1 -1
  53. package/dist/src/router.d.ts +105 -0
  54. package/dist/{saas.d.ts → src/saas.d.ts} +2 -2
  55. package/dist/src/scheduler.d.ts +1 -0
  56. package/dist/{search-engine.d.ts → src/search-engine.d.ts} +41 -45
  57. package/dist/{security.d.ts → src/security.d.ts} +4 -8
  58. package/dist/{server.d.ts → src/server.d.ts} +1 -1
  59. package/dist/src/services.d.ts +140 -0
  60. package/dist/{settings-config.d.ts → src/settings-config.d.ts} +1 -1
  61. package/dist/src/sms.d.ts +144 -0
  62. package/dist/src/stack-extensions.d.ts +137 -0
  63. package/dist/src/stacks.d.ts +40 -0
  64. package/dist/src/storage.d.ts +105 -0
  65. package/dist/src/table-names.d.ts +1 -0
  66. package/dist/src/tables.d.ts +34 -0
  67. package/dist/src/team.d.ts +7 -0
  68. package/dist/src/ui.d.ts +55 -0
  69. package/dist/src/utils.d.ts +39 -0
  70. package/package.json +13 -32
  71. package/src/ai.ts +20 -6
  72. package/src/analytics.ts +38 -1
  73. package/src/app.ts +38 -0
  74. package/src/attributes.ts +5 -1
  75. package/src/auth.ts +122 -0
  76. package/src/auto-imports.ts +8 -1
  77. package/src/cache.ts +226 -69
  78. package/src/chat.ts +0 -20
  79. package/src/cli.ts +24 -9
  80. package/src/cloud.ts +40 -1
  81. package/src/components.ts +3 -5
  82. package/src/cron-jobs.ts +1 -1
  83. package/src/dashboard.ts +40 -0
  84. package/src/database.ts +18 -2
  85. package/src/dns.ts +1 -1
  86. package/src/docs.ts +3 -3
  87. package/src/email.ts +303 -13
  88. package/src/errors.ts +2 -3
  89. package/src/events.ts +10 -5
  90. package/src/git.ts +3 -3
  91. package/src/hashing.ts +15 -19
  92. package/src/i18n.ts +105 -3
  93. package/src/index.ts +9 -5
  94. package/src/library.ts +0 -5
  95. package/src/model-names.ts +1 -1
  96. package/src/model.ts +94 -11
  97. package/src/oauth.ts +488 -0
  98. package/src/payments.ts +370 -27
  99. package/src/phone.ts +62 -0
  100. package/src/push.ts +107 -0
  101. package/src/queue.ts +386 -28
  102. package/src/reactivity.ts +1 -1
  103. package/src/realtime.ts +584 -0
  104. package/src/request.ts +344 -22
  105. package/src/router.ts +63 -5
  106. package/src/search-engine.ts +13 -13
  107. package/src/services.ts +100 -5
  108. package/src/sms.ts +263 -3
  109. package/src/stack-extensions.ts +184 -0
  110. package/src/stacks.ts +34 -4
  111. package/src/storage.ts +140 -6
  112. package/src/table-names.ts +1 -1
  113. package/src/ui.ts +20 -12
  114. package/src/utils.ts +1 -1
  115. package/dist/ai.d.ts +0 -20
  116. package/dist/analytics.d.ts +0 -13
  117. package/dist/api.d.ts +0 -26
  118. package/dist/app.d.ts +0 -32
  119. package/dist/attributes.d.ts +0 -1
  120. package/dist/auto-imports.d.ts +0 -1
  121. package/dist/build.d.ts +0 -2
  122. package/dist/cache.d.ts +0 -49
  123. package/dist/cli.d.ts +0 -310
  124. package/dist/dependencies.d.ts +0 -16
  125. package/dist/deploy.d.ts +0 -10
  126. package/dist/docs.d.ts +0 -26
  127. package/dist/email.d.ts +0 -107
  128. package/dist/events.d.ts +0 -5
  129. package/dist/exit-code.d.ts +0 -5
  130. package/dist/hashing.d.ts +0 -36
  131. package/dist/helpers.d.ts +0 -1
  132. package/dist/i18n.d.ts +0 -11
  133. package/dist/index.d.ts +0 -65
  134. package/dist/inspect.d.ts +0 -3
  135. package/dist/logging.d.ts +0 -6
  136. package/dist/model-names.d.ts +0 -1
  137. package/dist/model.d.ts +0 -226
  138. package/dist/payments.d.ts +0 -94
  139. package/dist/ports.d.ts +0 -13
  140. package/dist/promise.d.ts +0 -1
  141. package/dist/push.d.ts +0 -35
  142. package/dist/pwa.d.ts +0 -3
  143. package/dist/queue.d.ts +0 -45
  144. package/dist/reactivity.d.ts +0 -1
  145. package/dist/request.d.ts +0 -49
  146. package/dist/router.d.ts +0 -65
  147. package/dist/scheduler.d.ts +0 -1
  148. package/dist/services.d.ts +0 -81
  149. package/dist/ssg.d.ts +0 -3
  150. package/dist/stacks.d.ts +0 -54
  151. package/dist/storage.d.ts +0 -31
  152. package/dist/table-names.d.ts +0 -1
  153. package/dist/tables.d.ts +0 -34
  154. package/dist/team.d.ts +0 -8
  155. package/dist/ui.d.ts +0 -47
  156. package/dist/utils.d.ts +0 -27
  157. package/src/build.ts +0 -2
  158. package/src/inspect.ts +0 -10
  159. package/src/layout.ts +0 -8
  160. package/src/pwa.ts +0 -8
  161. package/src/ssg.ts +0 -3
package/dist/email.d.ts DELETED
@@ -1,107 +0,0 @@
1
- import type { I18n } from 'vue-email';
2
-
3
- export declare interface EmailOptions {
4
- from: {
5
- name: string
6
- address: string
7
- }
8
-
9
- mailboxes: string[]
10
-
11
- url: string
12
- charset: string
13
-
14
- server: {
15
- scan?: boolean
16
- }
17
-
18
- default: 'ses' | 'sendgrid' | 'mailgun' | 'mailtrap'
19
- }
20
- export declare type EmailConfig = Partial<EmailOptions>
21
-
22
- export interface MailtrapConfig extends EmailDriverConfig {
23
- token: string
24
- inboxId?: number
25
- }
26
- export interface EmailResult {
27
- message: string
28
- success: boolean
29
- provider: string
30
- messageId?: string
31
- [key: string]: any
32
- }
33
-
34
- export interface EmailDriverConfig {
35
- maxRetries?: number
36
- retryTimeout?: number
37
- [key: string]: any
38
- }
39
-
40
- export interface EmailDriver {
41
- name: string
42
-
43
- send: (message: EmailMessage, options?: RenderOptions) => Promise<EmailResult>
44
-
45
- configure: (config: EmailDriverConfig) => void
46
- }
47
-
48
- export interface EmailMessage {
49
- from: EmailAddress
50
- to: string | string[] | EmailAddress[]
51
- cc?: string | string[] | EmailAddress[]
52
- bcc?: string | string[] | EmailAddress[]
53
- subject: string
54
- template?: string
55
- text?: string
56
- attachments?: EmailAttachment[]
57
- onSuccess?: () => Promise<{ message: string }> | { message: string }
58
- onError?: (error: Error) => Promise<{ message: string }> | { message: string }
59
- handle?: () => Promise<{ message: string }> | { message: string }
60
- }
61
-
62
- export interface EmailAddress {
63
- address: string
64
- name?: string
65
- }
66
-
67
- export interface EmailAttachment {
68
- filename: string
69
- content: string | Uint8Array
70
- contentType?: string
71
- encoding?: 'base64' | 'binary' | 'hex' | 'utf8'
72
- }
73
-
74
- export interface SESConfig extends EmailDriverConfig {
75
- region: string
76
- credentials?: {
77
- accessKeyId: string
78
- secretAccessKey: string
79
- }
80
- }
81
-
82
- export interface SendGridConfig extends EmailDriverConfig {
83
- apiKey: string
84
- }
85
-
86
- export interface RenderOptions {
87
- props?: Record<string, unknown>
88
- i18n?: I18n
89
- }
90
-
91
- export interface MailtrapSuccessResponse {
92
- success: boolean
93
- message_ids: string[]
94
- errors?: never
95
- }
96
-
97
- export interface MailtrapErrorResponse {
98
- success: false
99
- errors: {
100
- email?: string[]
101
- message?: string[]
102
- [key: string]: string[] | undefined
103
- }
104
- message_ids?: never
105
- }
106
-
107
- export type MailtrapResponse = MailtrapSuccessResponse | MailtrapErrorResponse
package/dist/events.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export declare interface Events {
2
- [key: string]: string[]
3
- }
4
-
5
- export * from '../../../types/events'
@@ -1,5 +0,0 @@
1
- export declare enum ExitCode {
2
- Success = 0,
3
- FatalError = 1,
4
- InvalidArgument = 9,
5
- }
package/dist/hashing.d.ts DELETED
@@ -1,36 +0,0 @@
1
- export declare interface HashingOptions {
2
- driver: 'argon2' | 'argon2id' | 'argon2i' | 'argon2d' | 'bcrypt'
3
-
4
- bcrypt?: BcryptOptions
5
-
6
- argon2?: ArgonOptions
7
- }
8
- export declare type HashingConfig = Partial<HashingOptions>
9
-
10
- export interface BcryptOptions {
11
- rounds: number
12
-
13
- cost: number
14
- }
15
-
16
- export interface ArgonOptions {
17
- memory?: number
18
-
19
-
20
- time?: number
21
- }
22
-
23
- export type HashAlgorithm =
24
- | 'md4'
25
- | 'md5'
26
- | 'sha1'
27
- | 'sha256'
28
- | 'sha384'
29
- | 'sha512'
30
- | 'ripemd128'
31
- | 'ripemd160'
32
- | 'tiger128'
33
- | 'tiger160'
34
- | 'tiger192'
35
- | 'crc32'
36
- | 'crc32b'
package/dist/helpers.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function getTypeName(v: any): string;
package/dist/i18n.d.ts DELETED
@@ -1,11 +0,0 @@
1
- declare 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
- export declare type i18nOptions = VitePluginVueI18nOptions
package/dist/index.d.ts DELETED
@@ -1,65 +0,0 @@
1
- export * from './ai'
2
- export * from './analytics'
3
- export * from './api'
4
- export * from './app'
5
- export * from './attributes'
6
- export * from './auto-imports'
7
- export * from './binary'
8
- export * from './build'
9
- export * from './cache'
10
- export * from './cdn'
11
- export * from './chat'
12
- export * from './cli'
13
- export * from './cloud'
14
- export * from './components'
15
- export * from './configure'
16
- export * from './cron-jobs'
17
- export * from './database'
18
- export * from './dependencies'
19
- export * from './deploy'
20
- export * from './dns'
21
- export * from './docs'
22
- export * from './email'
23
- export * from './env'
24
- export * from './errors'
25
- export * from './events'
26
- export * from './exit-code'
27
- export * from './file-systems'
28
- export * from './git'
29
- export * from './hashing'
30
- export * from './helpers'
31
- export * from './i18n'
32
- export * from './inspect'
33
- export * from './library'
34
- export * from './logging'
35
- export * from './manifest'
36
- export * from './model'
37
- export * from './model-names'
38
- export * from './notifications'
39
- export * from './pages'
40
- export * from './payments'
41
- export * from './ports'
42
- export * from './promise'
43
- export * from './push'
44
- export * from './pwa'
45
- export * from './queue'
46
- export * from './reactivity'
47
- export * from './request'
48
- export * from './response'
49
- export * from './router'
50
- export * from './saas'
51
- export * from './scheduler'
52
- export * from './search-engine'
53
- export * from './security'
54
- export * from './server'
55
- export * from './services'
56
- export * from './settings-config.ts'
57
- export * from './sms'
58
- export * from './ssg'
59
- export * from './stacks'
60
- export * from './storage'
61
- export * from './table-names'
62
- export * from './tables'
63
- export * from './team'
64
- export * from './ui'
65
- export * from './utils'
package/dist/inspect.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { Options } from 'vite-plugin-inspect';
2
-
3
- export declare type InspectOptions = Options
package/dist/logging.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export declare interface LoggingOptions {
2
- logsPath: string
3
-
4
- deploymentsPath: string
5
- }
6
- export declare type LoggingConfig = Partial<LoggingOptions>
@@ -1 +0,0 @@
1
- export declare type ModelNames = 'Project' | 'SubscriberEmail' | 'AccessToken' | 'Team' | 'Subscriber' | 'Deployment' | 'Release' | 'User' | 'Post' | 'Category' | 'Payment' | 'Driver' | 'WaitlistProduct' | 'DigitalDelivery' | 'Manufacturer' | 'OrderItem' | 'ShippingZone' | 'Customer' | 'Product' | 'ProductVariant' | 'LicenseKey' | 'WaitlistRestaurant' | 'Review' | 'ProductUnit' | 'GiftCard' | 'Order' | 'Coupon' | 'TaxRate' | 'Transaction' | 'LoyaltyPoint' | 'ProductItem' | 'LoyaltyReward' | 'ShippingMethod' | 'ShippingRate' | 'DeliveryRoute' | 'FailedJob' | 'PaymentMethod' | 'PaymentTransaction' | 'Request' | 'Job' | 'Subscription' | 'PaymentProduct' | 'Error'
package/dist/model.d.ts DELETED
@@ -1,226 +0,0 @@
1
- import type { DeepPartial, Nullable } from '.';
2
- import type { Faker } from '@stacksjs/faker';
3
- import type { ModelNames, TableNames } from '@stacksjs/types';
4
- import type { SearchOptions } from './search-engine';
5
- import type { VineBoolean, VineNumber, VineString } from '@vinejs/vine';
6
-
7
- export declare type Model = Partial<ModelOptions>
8
-
9
- export interface BaseRelation {
10
- foreignKey?: string
11
- relationName?: string
12
- }
13
-
14
- export interface Relation<T = string> extends BaseRelation {
15
- model: T
16
- }
17
-
18
- export interface HasOne<T = string> extends Array<Relation<T>> {}
19
-
20
- export interface MorphTo {
21
- name: string
22
- }
23
-
24
- export interface MorphOne<T = string> extends BaseRelation {
25
- model: T
26
- morphName?: string
27
- type?: string
28
- id?: string
29
- }
30
-
31
- export interface MorphMany<T = string> extends MorphOne<T> {}
32
-
33
- export interface HasMany<T = string> extends Array<Relation<T>> {}
34
- export interface BelongsTo<T = string> extends Array<Relation<T>> {}
35
-
36
- export interface BelongsToMany<T = string> extends Array<BaseBelongsToMany<T> | T> {}
37
- export interface HasOneThrough<T = string> extends Array<BaseHasOneThrough<T> | T> {}
38
-
39
- export interface BaseBelongsToMany<T = string> {
40
- model: T
41
- firstForeignKey?: string
42
- secondForeignKey?: string
43
- pivotTable?: string
44
- }
45
-
46
- export interface BaseHasOneThrough<T = string> {
47
- model: T
48
- through: T
49
- foreignKey?: string
50
- throughForeignKey?: string
51
- relationName?: string
52
- }
53
-
54
- export interface FieldArrayElement {
55
- entity: string
56
- charValue?: string | null
57
- }
58
-
59
- export interface ModelElement {
60
- field: string
61
- default: string | number | boolean | Date | undefined | null
62
- unique: boolean
63
- required: boolean
64
- fieldArray: FieldArrayElement | null
65
- }
66
-
67
- export interface AuthOptions {
68
- useTwoFactor?: boolean
69
- usePasskey?: boolean
70
- }
71
- export interface LikeableOptions {
72
- table?: string
73
- foreignKey?: string
74
- }
75
-
76
- type ActionPath = string
77
- type ActionName = string
78
- type Action = ActionPath | ActionName | undefined
79
-
80
- export type ApiRoutes = 'index' | 'show' | 'store' | 'update' | 'destroy'
81
-
82
- export type VineType = VineString | VineNumber | VineBoolean | Date | Nullable<any>
83
- export interface SeedOptions {
84
- count: number
85
- }
86
-
87
- type LogAttribute = string
88
-
89
- interface ActivityLogOption {
90
- exclude: LogAttribute[]
91
- include: LogAttribute[]
92
- logOnly: LogAttribute[]
93
- }
94
-
95
- export interface Relations {
96
- hasOne: HasOne<ModelNames> | ModelNames[]
97
- hasMany: HasMany<ModelNames> | ModelNames[]
98
- belongsTo: BelongsTo<ModelNames> | ModelNames[]
99
- belongsToMany: BelongsToMany<ModelNames> | ModelNames[]
100
- }
101
-
102
- export interface ApiSettings {
103
- uri: string
104
- middleware: string[]
105
- routes:
106
- | {
107
- [key in ApiRoutes]: Action
108
- }
109
- | string[]
110
- openApi: boolean
111
- }
112
-
113
- type ApiOptions = DeepPartial<ApiSettings>
114
-
115
- export interface TimestampOptions {
116
- createdAt?: string
117
- updatedAt?: string
118
- deletedAt?: string
119
- }
120
-
121
- interface ValidatorMessage {
122
- [key: string]: string
123
- }
124
-
125
- export interface SoftDeleteOptions {
126
- deletedAt?: string
127
- }
128
-
129
- interface Base {}
130
-
131
- export interface ModelOptions extends Base {
132
- name: string
133
- description?: string
134
- table?: string
135
- primaryKey?: string
136
- autoIncrement?: boolean
137
- dashboard?: {
138
- highlight?: boolean | number
139
- }
140
-
141
- traits?: {
142
- useUuid?: boolean
143
- useTimestamps?: boolean | TimestampOptions
144
- timestampable?: boolean | TimestampOptions
145
- useSoftDeletes?: boolean | SoftDeleteOptions
146
- softDeletable?: boolean | SoftDeleteOptions
147
-
148
- useAuth?: boolean | AuthOptions
149
- authenticatable?: boolean | AuthOptions
150
- useSeeder?: boolean | SeedOptions
151
- seedable?: boolean | SeedOptions
152
- useSearch?: boolean | SearchOptions
153
- searchable?: boolean | SearchOptions
154
- useApi?: ApiOptions | boolean
155
- observe?: string[] | boolean
156
- billable?: boolean
157
- useActivityLog?: boolean | ActivityLogOption
158
-
159
- likeable?: boolean | LikeableOptions
160
- }
161
-
162
- attributes?: AttributesElements
163
-
164
- hasOne?: HasOne<ModelNames> | ModelNames[]
165
-
166
- hasMany?: HasMany<ModelNames> | ModelNames[]
167
-
168
- belongsTo?: BelongsTo<ModelNames> | ModelNames[]
169
-
170
- belongsToMany?: BelongsToMany<ModelNames> | ModelNames[]
171
-
172
- hasOneThrough?: HasOneThrough<ModelNames> | ModelNames[]
173
-
174
- morphOne?: MorphOne<ModelNames> | ModelNames
175
-
176
- morphMany?: MorphMany<ModelNames>[] | ModelNames[]
177
-
178
- morphTo?: MorphTo
179
-
180
- scopes?: {
181
- [key: string]: (value: any) => any
182
- }
183
-
184
- get?: {
185
- [key: string]: (value: any) => any
186
- }
187
-
188
- set?: {
189
- [key: string]: (value: any) => any
190
- }
191
- }
192
-
193
- export interface Attribute {
194
- default?: string | number | boolean | Date
195
- unique?: boolean
196
- order?: number
197
- required?: boolean
198
- hidden?: boolean
199
- fillable?: boolean
200
- guarded?: boolean
201
- factory?: (faker: Faker) => any
202
- validation?: {
203
- rule: VineType
204
- message?: ValidatorMessage
205
- }
206
- }
207
-
208
- export interface AttributesElements {
209
- [key: string]: Attribute
210
- }
211
-
212
- export interface RelationConfig {
213
- relationship: string
214
- model: string
215
- table: TableNames
216
- relationModel?: string
217
- relationTable?: string
218
- foreignKey: string
219
- modelKey: string
220
- pivotKey?: string
221
- pivotForeign?: string
222
- relationName?: string
223
- throughModel?: string
224
- throughForeignKey?: string
225
- pivotTable: TableNames
226
- }
@@ -1,94 +0,0 @@
1
- export declare interface PaymentOptions {
2
- driver: 'stripe'
3
-
4
- stripe: {
5
- publishableKey: string
6
- secretKey: string
7
- }
8
- }
9
- export declare type PaymentConfig = Partial<PaymentOptions>
10
-
11
- export interface ChargeOptions {
12
- currency?: string
13
- source?: string
14
- description?: string
15
- chargeId?: string
16
- limit?: number
17
- metadata?: object
18
- searchOptions: {
19
- query?: string
20
- limit?: number
21
- }
22
- }
23
-
24
- export interface StripeCustomerOptions {
25
- address?: {
26
- line1?: string
27
- city?: string
28
- state?: string
29
- postal_code?: string
30
- country?: string
31
- }
32
- name?: string
33
- phone?: string
34
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>
35
- email?: string
36
- preferred_locales?: string[]
37
- }
38
-
39
- export interface CustomerOptions {
40
- description?: string
41
- address?: string
42
- email?: string
43
- metadata?: object
44
- name?: string
45
- payment_method?: string
46
- shipping: string
47
- listOptions?: {
48
- created?: object
49
- ending_before?: string
50
- limit?: number
51
- starting_after?: string
52
- test_clock?: string
53
- }
54
- searchOptions?: {
55
- query?: string
56
- limit?: number
57
- page?: number
58
- }
59
- }
60
-
61
- export interface DisputeOptions {
62
- dp_id?: string
63
- metadata?: object
64
- listOptions?: {
65
- charge?: string
66
- payment_intent?: string
67
- created?: string
68
- ending_before?: string
69
- limit?: number
70
- starting_after?: string
71
- }
72
- }
73
-
74
- export interface EventOptions {
75
- event_id?: string
76
- listOptions?: {
77
- created?: object
78
- delivery_success?: boolean
79
- ending_before?: string
80
- limit?: number
81
- starting_after?: string
82
- type?: string
83
- }
84
- }
85
-
86
- export interface CheckoutLineItem {
87
- priceId: string
88
- quantity: number
89
- }
90
-
91
- export interface CheckoutOptions extends Partial<Stripe.Checkout.SessionCreateParams> {
92
- enableTax?: boolean
93
- allowPromotions?: boolean
94
- }
package/dist/ports.d.ts DELETED
@@ -1,13 +0,0 @@
1
- export declare interface Ports {
2
- frontend: number
3
- backend: number
4
- admin: number
5
- library: number
6
- desktop: number
7
- email: number
8
- docs: number
9
- inspect: number
10
- api: number
11
- systemTray: number
12
- database: number
13
- }
package/dist/promise.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare type MaybePromise<T> = T | Promise<T>
package/dist/push.d.ts DELETED
@@ -1,35 +0,0 @@
1
- export declare 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 declare 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
@@ -1,3 +0,0 @@
1
- import type { Options } from 'vite-plugin-pwa';
2
-
3
- export declare type PwaOptions = Options
package/dist/queue.d.ts DELETED
@@ -1,45 +0,0 @@
1
- import type { DeepPartial } from './utils';
2
- import type { JobOptions } from './cron-jobs';
3
-
4
- export declare interface QueueOptions {
5
- default: 'sync' | 'database' | 'redis' | 'sqs'
6
- connections: {
7
- sync: {
8
- driver: 'sync'
9
- }
10
- database: {
11
- driver: 'database'
12
- table: 'jobs'
13
- queue: 'default'
14
- retry_after: 90
15
- }
16
- redis: {
17
- driver: 'redis'
18
- connection: 'default'
19
- queue: 'default'
20
- retry_after: 90
21
- }
22
- sqs: {
23
- driver: 'sqs'
24
- key: ''
25
- secret: ''
26
- prefix: ''
27
- suffix: ''
28
- queue: 'default'
29
- region: 'us-east-1'
30
- }
31
- }
32
- failed: {
33
- driver: 'database'
34
- database: 'mysql'
35
- table: 'failed_jobs'
36
- }
37
- }
38
- export declare interface QueueOption extends JobOptions {
39
- delay?: number
40
- payload?: any
41
- afterResponse?: any
42
- context?: string
43
- maxTries?: number
44
- }
45
- export declare type QueueConfig = DeepPartial<QueueOptions>
@@ -1 +0,0 @@
1
- export type { Ref } from 'vue'