@stacksjs/types 0.53.1 → 0.56.3
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/dist/index.d.ts +2111 -39
- package/dist/index.mjs +112 -39
- package/package.json +24 -18
- package/dist/app.d.ts +0 -108
- package/dist/app.mjs +0 -0
- package/dist/auto-imports.d.ts +0 -1
- package/dist/auto-imports.mjs +0 -0
- package/dist/build.d.ts +0 -2
- package/dist/build.mjs +0 -0
- package/dist/cache.d.ts +0 -69
- package/dist/cache.mjs +0 -0
- package/dist/cdn.d.ts +0 -15
- package/dist/cdn.mjs +0 -0
- package/dist/cli.d.ts +0 -278
- package/dist/cli.mjs +0 -86
- package/dist/components.d.ts +0 -60
- package/dist/components.mjs +0 -0
- package/dist/cron-jobs.d.ts +0 -16
- package/dist/cron-jobs.mjs +0 -0
- package/dist/database.d.ts +0 -32
- package/dist/database.mjs +0 -0
- package/dist/debug.d.ts +0 -6
- package/dist/debug.mjs +0 -0
- package/dist/deploy.d.ts +0 -9
- package/dist/deploy.mjs +0 -0
- package/dist/dns.d.ts +0 -43
- package/dist/dns.mjs +0 -0
- package/dist/docs.d.ts +0 -3
- package/dist/docs.mjs +0 -0
- package/dist/errors.d.ts +0 -1
- package/dist/errors.mjs +0 -6
- package/dist/events.d.ts +0 -22
- package/dist/events.mjs +0 -0
- package/dist/exit-code.d.ts +0 -10
- package/dist/exit-code.mjs +0 -6
- package/dist/fs.d.ts +0 -27
- package/dist/fs.mjs +0 -0
- package/dist/git.d.ts +0 -128
- package/dist/git.mjs +0 -0
- package/dist/hashing.d.ts +0 -102
- package/dist/hashing.mjs +0 -0
- package/dist/i18n.d.ts +0 -19
- package/dist/i18n.mjs +0 -0
- package/dist/inspect.d.ts +0 -9
- package/dist/inspect.mjs +0 -0
- package/dist/layout.d.ts +0 -7
- package/dist/layout.mjs +0 -0
- package/dist/library.d.ts +0 -132
- package/dist/library.mjs +0 -0
- package/dist/manifest.d.ts +0 -9
- package/dist/manifest.mjs +0 -0
- package/dist/markdown.d.ts +0 -167
- package/dist/markdown.mjs +0 -0
- package/dist/model.d.ts +0 -40
- package/dist/model.mjs +0 -0
- package/dist/notifications.d.ts +0 -164
- package/dist/notifications.mjs +0 -0
- package/dist/pages.d.ts +0 -10
- package/dist/pages.mjs +0 -0
- package/dist/payments.d.ts +0 -59
- package/dist/payments.mjs +0 -0
- package/dist/promise.d.ts +0 -1
- package/dist/promise.mjs +0 -0
- package/dist/pwa.d.ts +0 -7
- package/dist/pwa.mjs +0 -0
- package/dist/reactivity.d.ts +0 -1
- package/dist/reactivity.mjs +0 -0
- package/dist/router.d.ts +0 -42
- package/dist/router.mjs +0 -0
- package/dist/search-engine.d.ts +0 -143
- package/dist/search-engine.mjs +0 -0
- package/dist/ssg.d.ts +0 -2
- package/dist/ssg.mjs +0 -0
- package/dist/stacks.d.ts +0 -163
- package/dist/stacks.mjs +0 -0
- package/dist/tables.d.ts +0 -52
- package/dist/tables.mjs +0 -0
- package/dist/ui.d.ts +0 -180
- package/dist/ui.mjs +0 -0
- package/dist/utils.d.ts +0 -30
- package/dist/utils.mjs +0 -0
package/dist/notifications.d.ts
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import type { IEmailOptions } from '@novu/stateless';
|
|
2
|
-
export interface NotificationOptions {
|
|
3
|
-
default: 'email' | 'sms' | 'chat' | string;
|
|
4
|
-
email: {
|
|
5
|
-
default: 'emailjs' | 'mailgun' | 'mailjet' | 'mandrill' | 'netcore' | 'nodemailer' | 'postmark' | 'sendgrid' | 'ses' | string;
|
|
6
|
-
from: string;
|
|
7
|
-
to: string;
|
|
8
|
-
drivers: {
|
|
9
|
-
smtp: {
|
|
10
|
-
host: string;
|
|
11
|
-
port: number;
|
|
12
|
-
secure: boolean;
|
|
13
|
-
auth: {
|
|
14
|
-
user: string;
|
|
15
|
-
pass: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
sendgrid: {
|
|
19
|
-
key: string;
|
|
20
|
-
senderName: string;
|
|
21
|
-
};
|
|
22
|
-
emailjs: {
|
|
23
|
-
host: string;
|
|
24
|
-
user: string;
|
|
25
|
-
password: string;
|
|
26
|
-
port: number;
|
|
27
|
-
secure: boolean;
|
|
28
|
-
};
|
|
29
|
-
mailgun: {
|
|
30
|
-
key: string;
|
|
31
|
-
domain: string;
|
|
32
|
-
username: string;
|
|
33
|
-
};
|
|
34
|
-
mailjet: {
|
|
35
|
-
key: string;
|
|
36
|
-
secret: string;
|
|
37
|
-
};
|
|
38
|
-
mandrill: {
|
|
39
|
-
key: string;
|
|
40
|
-
};
|
|
41
|
-
netcore: {
|
|
42
|
-
key: string;
|
|
43
|
-
};
|
|
44
|
-
nodemailer: {
|
|
45
|
-
host: string;
|
|
46
|
-
user: string;
|
|
47
|
-
password: string;
|
|
48
|
-
port: number;
|
|
49
|
-
secure: boolean;
|
|
50
|
-
};
|
|
51
|
-
postmark: {
|
|
52
|
-
key: string;
|
|
53
|
-
};
|
|
54
|
-
ses: {
|
|
55
|
-
region: string;
|
|
56
|
-
key: string;
|
|
57
|
-
secret: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
sms: {
|
|
62
|
-
default: 'twilio' | 'nexmo' | 'gupshup' | 'plivo' | 'sms77' | 'sns' | 'telnyx' | 'termii' | string;
|
|
63
|
-
from: string;
|
|
64
|
-
to: 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
|
-
to: string;
|
|
103
|
-
drivers: {
|
|
104
|
-
slack?: {
|
|
105
|
-
appId: string;
|
|
106
|
-
clientId: string;
|
|
107
|
-
secret: string;
|
|
108
|
-
};
|
|
109
|
-
msTeams?: {
|
|
110
|
-
appId: string;
|
|
111
|
-
clientId: string;
|
|
112
|
-
secret: string;
|
|
113
|
-
};
|
|
114
|
-
discord?: {};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
export interface FCMPushNotificationOptions {
|
|
119
|
-
eventName: string;
|
|
120
|
-
to: {
|
|
121
|
-
subscriberId: string;
|
|
122
|
-
};
|
|
123
|
-
payload: {
|
|
124
|
-
deviceTokens: Array<string>;
|
|
125
|
-
badge: boolean;
|
|
126
|
-
clickAction: string;
|
|
127
|
-
color: string;
|
|
128
|
-
icon: string;
|
|
129
|
-
sound: string;
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
export interface ExpoPushNotificationOptions {
|
|
133
|
-
eventName: string;
|
|
134
|
-
to: {
|
|
135
|
-
subscriberId: string;
|
|
136
|
-
};
|
|
137
|
-
payload: {
|
|
138
|
-
to: string[];
|
|
139
|
-
data: Object;
|
|
140
|
-
title: string;
|
|
141
|
-
body: string;
|
|
142
|
-
ttl: number;
|
|
143
|
-
expiration: number;
|
|
144
|
-
priority: 'default' | 'normal' | 'high';
|
|
145
|
-
subtitle: string;
|
|
146
|
-
sound: 'default' | null;
|
|
147
|
-
badge: number;
|
|
148
|
-
channelId: string;
|
|
149
|
-
categoryId: string;
|
|
150
|
-
mutableContent: boolean;
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
export type { IChatOptions as ChatOptions, ISendMessageSuccessResponse as SendMessageSuccessResponse, ISmsOptions as SmsOptions, } from '@novu/stateless';
|
|
154
|
-
export type EmailOptions = Omit<IEmailOptions, 'from'> & {
|
|
155
|
-
from: {
|
|
156
|
-
name?: string;
|
|
157
|
-
address?: string;
|
|
158
|
-
};
|
|
159
|
-
domain?: string;
|
|
160
|
-
mailboxes?: {
|
|
161
|
-
'username': string;
|
|
162
|
-
'forwardTo': string;
|
|
163
|
-
}[];
|
|
164
|
-
};
|
package/dist/notifications.mjs
DELETED
|
File without changes
|
package/dist/pages.d.ts
DELETED
package/dist/pages.mjs
DELETED
|
File without changes
|
package/dist/payments.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface PaymentOptions {
|
|
2
|
-
driver: 'stripe';
|
|
3
|
-
}
|
|
4
|
-
export interface ChargeOptions {
|
|
5
|
-
currency?: string;
|
|
6
|
-
source?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
chargeId?: string;
|
|
9
|
-
limit?: number;
|
|
10
|
-
metadata?: object;
|
|
11
|
-
searchOptions: {
|
|
12
|
-
query?: string;
|
|
13
|
-
limit?: number;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export interface CustomerOptions {
|
|
17
|
-
description?: string;
|
|
18
|
-
address?: string;
|
|
19
|
-
email?: string;
|
|
20
|
-
metadata?: object;
|
|
21
|
-
name?: string;
|
|
22
|
-
payment_method?: string;
|
|
23
|
-
shipping: string;
|
|
24
|
-
listOptions?: {
|
|
25
|
-
created?: object;
|
|
26
|
-
ending_before?: string;
|
|
27
|
-
limit?: number;
|
|
28
|
-
starting_after?: string;
|
|
29
|
-
test_clock?: string;
|
|
30
|
-
};
|
|
31
|
-
searchOptions?: {
|
|
32
|
-
query?: string;
|
|
33
|
-
limit?: number;
|
|
34
|
-
page?: number;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export interface DisputeOptions {
|
|
38
|
-
dp_id?: string;
|
|
39
|
-
metadata?: object;
|
|
40
|
-
listOptions?: {
|
|
41
|
-
charge?: string;
|
|
42
|
-
payment_intent?: string;
|
|
43
|
-
created?: string;
|
|
44
|
-
ending_before?: string;
|
|
45
|
-
limit?: number;
|
|
46
|
-
starting_after?: string;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export interface EventOptions {
|
|
50
|
-
event_id?: string;
|
|
51
|
-
listOptions?: {
|
|
52
|
-
created?: object;
|
|
53
|
-
delivery_success?: boolean;
|
|
54
|
-
ending_before?: string;
|
|
55
|
-
limit?: number;
|
|
56
|
-
starting_after?: string;
|
|
57
|
-
type?: string;
|
|
58
|
-
};
|
|
59
|
-
}
|
package/dist/payments.mjs
DELETED
|
File without changes
|
package/dist/promise.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type MaybePromise<T> = T | Promise<T>;
|
package/dist/promise.mjs
DELETED
|
File without changes
|
package/dist/pwa.d.ts
DELETED
package/dist/pwa.mjs
DELETED
|
File without changes
|
package/dist/reactivity.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Ref } from 'vue';
|
package/dist/reactivity.mjs
DELETED
|
File without changes
|
package/dist/router.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface NitroEventHandler {
|
|
2
|
-
/**
|
|
3
|
-
* Path prefix or route
|
|
4
|
-
*
|
|
5
|
-
* If an empty string used, will be used as a middleware
|
|
6
|
-
*/
|
|
7
|
-
route?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Specifies this is a middleware handler.
|
|
10
|
-
* Middleware are called on every route and should normally return nothing to pass to the next handlers
|
|
11
|
-
*/
|
|
12
|
-
middleware?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Use lazy loading to import handler
|
|
15
|
-
*/
|
|
16
|
-
lazy?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Path to event handler
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
handler: string;
|
|
22
|
-
/**
|
|
23
|
-
* Router method matcher
|
|
24
|
-
*/
|
|
25
|
-
method?: string;
|
|
26
|
-
}
|
|
27
|
-
export type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'before' | 'after' | 'view';
|
|
28
|
-
export type RouteCallback = (params: Record<string, any>) => any;
|
|
29
|
-
export interface Route {
|
|
30
|
-
method: HttpMethod;
|
|
31
|
-
pattern: RegExp;
|
|
32
|
-
callback: RouteCallback;
|
|
33
|
-
paramNames: string[];
|
|
34
|
-
}
|
|
35
|
-
export interface Middleware {
|
|
36
|
-
before?: RouteCallback;
|
|
37
|
-
after?: RouteCallback;
|
|
38
|
-
}
|
|
39
|
-
export interface RouteGroupOptions {
|
|
40
|
-
prefix?: string;
|
|
41
|
-
middleware?: Middleware[];
|
|
42
|
-
}
|
package/dist/router.mjs
DELETED
|
File without changes
|
package/dist/search-engine.d.ts
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import type { EnqueuedTask, Hits, Index, IndexOptions, IndexesResults, MeiliSearch, DocumentOptions as RecordOptions, Settings as SearchIndexSettings, SearchParams, SearchResponse } from 'meilisearch';
|
|
2
|
-
import type { MaybePromise } from '.';
|
|
3
|
-
type Search = any;
|
|
4
|
-
type Page = any;
|
|
5
|
-
type Pages = Page[];
|
|
6
|
-
type Filter = any;
|
|
7
|
-
type Filters = Filter[];
|
|
8
|
-
type Result = any;
|
|
9
|
-
type Results = Result[];
|
|
10
|
-
type SearchFilter = any;
|
|
11
|
-
type SearchFilters = SearchFilter[];
|
|
12
|
-
type Sorts = any;
|
|
13
|
-
type Sort = any;
|
|
14
|
-
export interface SearchEngineOptions {
|
|
15
|
-
/**
|
|
16
|
-
* **Search Engine Driver**
|
|
17
|
-
*
|
|
18
|
-
* The search engine to utilize.
|
|
19
|
-
*
|
|
20
|
-
* @default string 'meilisearch'
|
|
21
|
-
* @see https://stacksjs.dev/docs/search-engine
|
|
22
|
-
*/
|
|
23
|
-
driver: 'meilisearch' | 'algolia';
|
|
24
|
-
meilisearch?: {
|
|
25
|
-
host: string;
|
|
26
|
-
apiKey: string;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export interface ServicesOptions {
|
|
30
|
-
algolia?: {
|
|
31
|
-
appId: string;
|
|
32
|
-
apiKey: string;
|
|
33
|
-
};
|
|
34
|
-
meilisearch?: {
|
|
35
|
-
appId: string;
|
|
36
|
-
apiKey: string;
|
|
37
|
-
};
|
|
38
|
-
stripe?: {
|
|
39
|
-
appId: string;
|
|
40
|
-
apiKey: string;
|
|
41
|
-
};
|
|
42
|
-
planetscale?: {
|
|
43
|
-
appId: string;
|
|
44
|
-
apiKey: string;
|
|
45
|
-
};
|
|
46
|
-
supabase?: {
|
|
47
|
-
appId: string;
|
|
48
|
-
apiKey: string;
|
|
49
|
-
};
|
|
50
|
-
aws?: {
|
|
51
|
-
appId: string;
|
|
52
|
-
apiKey: string;
|
|
53
|
-
};
|
|
54
|
-
novu?: {
|
|
55
|
-
key: string;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export interface StorageOptions {
|
|
59
|
-
/**
|
|
60
|
-
* **Storage Driver**
|
|
61
|
-
*
|
|
62
|
-
* The storage driver to utilize.
|
|
63
|
-
*
|
|
64
|
-
* @default string 's3'
|
|
65
|
-
* @see https://stacksjs.dev/docs/storage
|
|
66
|
-
*/
|
|
67
|
-
driver: 's3' | 'local';
|
|
68
|
-
}
|
|
69
|
-
export interface MeiliSearchOptions {
|
|
70
|
-
apiKey: string;
|
|
71
|
-
host: string;
|
|
72
|
-
}
|
|
73
|
-
export interface SearchEngineDriver {
|
|
74
|
-
client: MeiliSearch;
|
|
75
|
-
createIndex: (name: string, options?: IndexOptions) => MaybePromise<EnqueuedTask>;
|
|
76
|
-
getIndex: (name: string) => MaybePromise<Index>;
|
|
77
|
-
updateIndex?: (name: string, options: IndexOptions) => MaybePromise<EnqueuedTask>;
|
|
78
|
-
deleteIndex?: (name: string) => MaybePromise<EnqueuedTask>;
|
|
79
|
-
updateIndexSettings: (name: string, settings: SearchIndexSettings) => MaybePromise<EnqueuedTask>;
|
|
80
|
-
listAllIndexes: () => MaybePromise<IndexesResults<Index[]>>;
|
|
81
|
-
listAllIndices: () => MaybePromise<IndexesResults<Index[]>>;
|
|
82
|
-
getRecord?: (key: string) => MaybePromise<any>;
|
|
83
|
-
getRecords?: (key: string) => MaybePromise<RecordOptions>;
|
|
84
|
-
createRecord?: (record: any, indexName: string, options: RecordOptions) => MaybePromise<EnqueuedTask>;
|
|
85
|
-
createRecords?: (records: any, indexName: string, options: RecordOptions) => MaybePromise<EnqueuedTask>;
|
|
86
|
-
createOrReplaceRecord?: (record: any, indexName: string, options: RecordOptions) => MaybePromise<EnqueuedTask>;
|
|
87
|
-
createOrUpdateRecord?: (record: any, indexName: string, options: RecordOptions) => MaybePromise<EnqueuedTask>;
|
|
88
|
-
deleteRecord?: (recordId: string | number, indexName: string) => MaybePromise<EnqueuedTask>;
|
|
89
|
-
deleteAllRecords?: (indexName: string) => MaybePromise<EnqueuedTask>;
|
|
90
|
-
batchDeleteRecords?: (recordIds: string[] | number[], indexName: string) => MaybePromise<EnqueuedTask>;
|
|
91
|
-
search?: (query: string, indexName: string, options: SearchParams) => MaybePromise<Search>;
|
|
92
|
-
calculatePagination: Pages;
|
|
93
|
-
currentPage: Page;
|
|
94
|
-
filterName: string;
|
|
95
|
-
filters: Filters;
|
|
96
|
-
goToNextPage: () => Page;
|
|
97
|
-
goToPage: (pageNumber: number) => Page;
|
|
98
|
-
goToPrevPage: () => Page;
|
|
99
|
-
hits: Hits;
|
|
100
|
-
index: Index;
|
|
101
|
-
lastPage: Page;
|
|
102
|
-
perPage: number;
|
|
103
|
-
query: string;
|
|
104
|
-
results: Results;
|
|
105
|
-
searchFilters: SearchFilters;
|
|
106
|
-
searchParams: SearchParams;
|
|
107
|
-
setTotalHits: number;
|
|
108
|
-
sort: Sort;
|
|
109
|
-
sorts: Sorts;
|
|
110
|
-
totalPages: number;
|
|
111
|
-
}
|
|
112
|
-
export type SearchEngineDriverFactory<T> = (opts?: T) => SearchEngineDriver;
|
|
113
|
-
/**
|
|
114
|
-
* This interface is used to unify the persisting of data to localStorage
|
|
115
|
-
*/
|
|
116
|
-
export interface SearchEngineStorage {
|
|
117
|
-
/**
|
|
118
|
-
* The search engine index name.
|
|
119
|
-
* i.e. the type of table, like `users`, `posts`, `products`, etc.
|
|
120
|
-
*/
|
|
121
|
-
index?: string;
|
|
122
|
-
/**
|
|
123
|
-
* The search engine results object.
|
|
124
|
-
*/
|
|
125
|
-
results?: SearchResponse;
|
|
126
|
-
/**
|
|
127
|
-
* The search engine hits object.
|
|
128
|
-
*/
|
|
129
|
-
hits?: Hits;
|
|
130
|
-
/**
|
|
131
|
-
* The number of hits to be returned per page.
|
|
132
|
-
*
|
|
133
|
-
* @default number 20
|
|
134
|
-
*/
|
|
135
|
-
perPage: number;
|
|
136
|
-
/**
|
|
137
|
-
* The current page number.
|
|
138
|
-
*
|
|
139
|
-
* @default number 1
|
|
140
|
-
*/
|
|
141
|
-
currentPage: number;
|
|
142
|
-
}
|
|
143
|
-
export type { EnqueuedTask, Hits, Index, IndexOptions, IndexesResults, MeiliSearch, RecordOptions, SearchIndexSettings, SearchParams, SearchResponse };
|
package/dist/search-engine.mjs
DELETED
|
File without changes
|
package/dist/ssg.d.ts
DELETED
package/dist/ssg.mjs
DELETED
|
File without changes
|
package/dist/stacks.d.ts
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import type { AppOptions, CacheOptions, CdnOptions, DatabaseOptions, DebugOptions, DnsOptions, DocsOptions, EmailOptions, EventOptions, GitOptions, HashingOptions, LibraryOptions, NotificationOptions, PaymentOptions, SearchEngineOptions, ServicesOptions, StorageOptions, UiOptions, UserCliOptions } from './';
|
|
2
|
-
/**
|
|
3
|
-
* **Stacks Options**
|
|
4
|
-
*
|
|
5
|
-
* This configuration defines all of your Stacks options. Because Stacks is fully-typed,
|
|
6
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
7
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
8
|
-
*/
|
|
9
|
-
export interface StacksOptions {
|
|
10
|
-
/**
|
|
11
|
-
* **Application Options**
|
|
12
|
-
*
|
|
13
|
-
* This configuration defines all of your Application options. Because Stacks is fully-typed,
|
|
14
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
15
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
16
|
-
*/
|
|
17
|
-
app: Partial<AppOptions>;
|
|
18
|
-
/**
|
|
19
|
-
* **Cache Options**
|
|
20
|
-
*
|
|
21
|
-
* This configuration defines all of your Cache options. Because Stacks is fully-typed, you
|
|
22
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
23
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
24
|
-
*/
|
|
25
|
-
cache: Partial<CacheOptions>;
|
|
26
|
-
/**
|
|
27
|
-
* **CDN Options**
|
|
28
|
-
*
|
|
29
|
-
* This configuration defines all of your CDN options. Because Stacks is fully-typed, you
|
|
30
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
31
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
32
|
-
*/
|
|
33
|
-
cdn: Partial<CdnOptions>;
|
|
34
|
-
/**
|
|
35
|
-
* **CLI Options**
|
|
36
|
-
*
|
|
37
|
-
* This configuration defines all of your CLI options. Because Stacks is fully-typed, you
|
|
38
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
39
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
40
|
-
*/
|
|
41
|
-
cli: Partial<UserCliOptions>;
|
|
42
|
-
/**
|
|
43
|
-
* **Database Options**
|
|
44
|
-
*
|
|
45
|
-
* This configuration defines all of your Database options. Because Stacks is fully-typed, you
|
|
46
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
47
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
48
|
-
*/
|
|
49
|
-
database: Partial<DatabaseOptions>;
|
|
50
|
-
/**
|
|
51
|
-
* **Debug Options**
|
|
52
|
-
*
|
|
53
|
-
* This configuration defines all of your Debug options. Because Stacks is fully-typed, you
|
|
54
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
55
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
56
|
-
*/
|
|
57
|
-
debug: Partial<DebugOptions>;
|
|
58
|
-
/**
|
|
59
|
-
* **DNS Options**
|
|
60
|
-
*
|
|
61
|
-
* This configuration defines all of your DNS options. Because Stacks is fully-typed, you
|
|
62
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
63
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
64
|
-
*/
|
|
65
|
-
dns: Partial<DnsOptions>;
|
|
66
|
-
/**
|
|
67
|
-
* **Docs Options**
|
|
68
|
-
*
|
|
69
|
-
* This configuration defines all of your Docs options. Because Stacks is fully-typed, you
|
|
70
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
71
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
72
|
-
*/
|
|
73
|
-
docs: Partial<DocsOptions>;
|
|
74
|
-
/**
|
|
75
|
-
* **Email Options**
|
|
76
|
-
*
|
|
77
|
-
* This configuration defines all of your Email options. Because Stacks is fully-typed, you
|
|
78
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
79
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
80
|
-
*/
|
|
81
|
-
email: Partial<EmailOptions>;
|
|
82
|
-
/**
|
|
83
|
-
* **Event Options**
|
|
84
|
-
*
|
|
85
|
-
* This configuration defines all of your Event options. Because Stacks is fully-typed, you
|
|
86
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
87
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
88
|
-
*/
|
|
89
|
-
event: Partial<EventOptions>;
|
|
90
|
-
/**
|
|
91
|
-
* **Git Options**
|
|
92
|
-
*
|
|
93
|
-
* This configuration defines all of your Git options. Because Stacks is fully-typed, you
|
|
94
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
95
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
96
|
-
*/
|
|
97
|
-
git: Partial<GitOptions>;
|
|
98
|
-
/**
|
|
99
|
-
* **Hashing Options**
|
|
100
|
-
*
|
|
101
|
-
* This configuration defines all of your Hashing options. Because Stacks is fully-typed, you
|
|
102
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
103
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
104
|
-
*/
|
|
105
|
-
hashing: Partial<HashingOptions>;
|
|
106
|
-
/**
|
|
107
|
-
* **Library Options**
|
|
108
|
-
*
|
|
109
|
-
* This configuration defines all of your Library options. Because Stacks is fully-typed, you
|
|
110
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
111
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
112
|
-
*/
|
|
113
|
-
library: Partial<LibraryOptions>;
|
|
114
|
-
/**
|
|
115
|
-
* **Notification Options**
|
|
116
|
-
*
|
|
117
|
-
* This configuration defines all of your Notification options. Because Stacks is fully-typed,
|
|
118
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
119
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
120
|
-
*/
|
|
121
|
-
notification: Partial<NotificationOptions>;
|
|
122
|
-
/**
|
|
123
|
-
* **Payment Options**
|
|
124
|
-
*
|
|
125
|
-
* This configuration defines all of your Payment options. Because Stacks is fully-typed,
|
|
126
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
127
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
128
|
-
*/
|
|
129
|
-
payment: Partial<PaymentOptions>;
|
|
130
|
-
/**
|
|
131
|
-
* **Search Engine Options**
|
|
132
|
-
*
|
|
133
|
-
* This configuration defines all of your Search Engine options. Because Stacks is fully-typed,
|
|
134
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
135
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
136
|
-
*/
|
|
137
|
-
searchEngine: Partial<SearchEngineOptions>;
|
|
138
|
-
/**
|
|
139
|
-
* **Services Options**
|
|
140
|
-
*
|
|
141
|
-
* This configuration defines all of your Services options. Because Stacks is fully-typed,
|
|
142
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
143
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
144
|
-
*/
|
|
145
|
-
services: Partial<ServicesOptions>;
|
|
146
|
-
/**
|
|
147
|
-
* **Storage Options**
|
|
148
|
-
*
|
|
149
|
-
* This configuration defines all of your Storage options. Because Stacks is fully-typed,
|
|
150
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
151
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
152
|
-
*/
|
|
153
|
-
storage: Partial<StorageOptions>;
|
|
154
|
-
/**
|
|
155
|
-
* **UI Options**
|
|
156
|
-
*
|
|
157
|
-
* This configuration defines all of your UI options. Because Stacks is fully-typed, you
|
|
158
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
159
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
160
|
-
*/
|
|
161
|
-
ui: Partial<UiOptions>;
|
|
162
|
-
}
|
|
163
|
-
export type ResolvedStacksOptions = Required<StacksOptions>;
|
package/dist/stacks.mjs
DELETED
|
File without changes
|
package/dist/tables.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { Hits, SearchResponse } from 'meilisearch';
|
|
2
|
-
/**
|
|
3
|
-
* the TableStore interface is primarily used to unify the persisting of data to localStorage
|
|
4
|
-
*/
|
|
5
|
-
export interface TableStore {
|
|
6
|
-
/**
|
|
7
|
-
* The search engine index name.
|
|
8
|
-
* i.e. the type of table, like `users`, `posts`, `products`, etc.
|
|
9
|
-
*/
|
|
10
|
-
index: string;
|
|
11
|
-
/**
|
|
12
|
-
* The search engine results object.
|
|
13
|
-
*/
|
|
14
|
-
results?: SearchResponse<Record<string, any>>;
|
|
15
|
-
/**
|
|
16
|
-
* The search engine hits object.
|
|
17
|
-
*/
|
|
18
|
-
hits?: Hits;
|
|
19
|
-
columns: string[];
|
|
20
|
-
source?: string;
|
|
21
|
-
password?: string;
|
|
22
|
-
searchable?: string | boolean;
|
|
23
|
-
query?: string;
|
|
24
|
-
sortable?: string | boolean;
|
|
25
|
-
sort?: string;
|
|
26
|
-
sorts?: string | string[];
|
|
27
|
-
filterable?: string | boolean;
|
|
28
|
-
filters?: string | string[];
|
|
29
|
-
filterValue?: any[];
|
|
30
|
-
actionable?: string | boolean;
|
|
31
|
-
actions?: string | string[];
|
|
32
|
-
perPage: number;
|
|
33
|
-
selectable?: string | boolean;
|
|
34
|
-
selectedRows?: number[] | string[];
|
|
35
|
-
selectedAll?: boolean;
|
|
36
|
-
goToNextPage: number;
|
|
37
|
-
goToPage: number;
|
|
38
|
-
goToPrevPage: number;
|
|
39
|
-
lastPageNumber: number;
|
|
40
|
-
searchFilters?: object;
|
|
41
|
-
searchParams?: object;
|
|
42
|
-
setTotalHits: number;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* The current page number
|
|
46
|
-
* @default 1
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof TableStore
|
|
49
|
-
* @example 1
|
|
50
|
-
*/
|
|
51
|
-
currentPage: number;
|
|
52
|
-
}
|
package/dist/tables.mjs
DELETED
|
File without changes
|