@stacksjs/types 0.74.28 → 0.74.31
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.js +1 -1
- package/dist/model.d.ts +4 -4
- package/dist/ui.d.ts +9 -9
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function a(e){return typeof e==="object"&&e!==null&&"id"in e&&"userId"in e&&"clientId"in e&&"scopes"in e}function c(e){return a(e)&&"abilities"in e}function d(e){return typeof e==="object"&&e!==null&&"id"in e&&"name"in e&&"secret"in e&&"redirect"in e}var i;((
|
|
2
|
+
function a(e){return typeof e==="object"&&e!==null&&"id"in e&&"userId"in e&&"clientId"in e&&"scopes"in e}function c(e){return a(e)&&"abilities"in e}function d(e){return typeof e==="object"&&e!==null&&"id"in e&&"name"in e&&"secret"in e&&"redirect"in e}var i;((r)=>{r.Second="* * * * * *";r.FiveSeconds="*/5 * * * * *";r.TenSeconds="*/10 * * * * *";r.ThirtySeconds="*/30 * * * * *";r.Minute="* * * * *";r.TwoMinutes="*/2 * * * *";r.FiveMinutes="*/5 * * * *";r.TenMinutes="*/10 * * * *";r.FifteenMinutes="*/15 * * * *";r.ThirtyMinutes="*/30 * * * *";r.Hour="0 * * * *";r.HalfHour="0,30 * * * *";r.Day="0 0 * * *";r.Week="0 0 * * 0";r.Weekday="0 0 * * 1-5";r.Weekend="0 0 * * 0,6";r.Month="0 0 1 * *";r.Year="0 0 1 1 *"})(i||={});var s;((n)=>{n.Bluesky="bluesky";n.Discord="discord";n.Facebook="facebook";n.GitHub="github";n.Instagram="instagram";n.LinkedIn="linkedin";n.Mastodon="mastodon";n.Slack="slack";n.Twitter="twitter";n.YouTube="youtube"})(s||={});var l;((t)=>{t[t.Success=0]="Success";t[t.FatalError=1]="FatalError";t[t.InvalidArgument=9]="InvalidArgument"})(l||={});import{toString as p}from"@stacksjs/strings";function x(e){if(e===null)return"null";let o=p(e).slice(8,-1).toLowerCase();return typeof e==="object"||typeof e==="function"?o:typeof e}function h(e){return e}function T(e){return e}var C={development:{default:"sync",connections:{sync:{driver:"sync"}},failed:{driver:"database",table:"failed_jobs"}},production:{default:"redis",connections:{redis:{driver:"redis",prefix:"stacks:queue",concurrency:5,distributedLock:!0,metrics:{enabled:!0},defaultDeadLetterOptions:{enabled:!0,maxRetries:3}}},failed:{driver:"redis",prefix:"stacks:failed"},worker:{concurrency:5,shutdownTimeout:30000}},highPerformance:{default:"redis",connections:{redis:{driver:"redis",prefix:"stacks:queue",concurrency:20,distributedLock:!0,metrics:{enabled:!0,collectInterval:5000},horizontalScaling:{enabled:!0,maxWorkersPerInstance:20,jobsPerWorker:50},defaultDeadLetterOptions:{enabled:!0,maxRetries:5}}},failed:{driver:"redis",prefix:"stacks:failed"},worker:{concurrency:20,shutdownTimeout:60000}},database:{default:"database",connections:{database:{driver:"database",table:"jobs",queue:"default",retryAfter:90}},failed:{driver:"database",table:"failed_jobs"}}};var M={server:{development:{enabled:!0,mode:"server",debug:!0,server:{host:"localhost",port:6001,scheme:"ws",driver:"bun",rateLimit:{enabled:!1},healthCheck:{enabled:!0,path:"/health"}},channels:{public:!0,private:!0,presence:!0}},production:{enabled:!0,mode:"server",debug:!1,server:{host:"0.0.0.0",port:6001,scheme:"wss",driver:"bun",redis:{enabled:!0,prefix:"stacks:realtime:"},rateLimit:{enabled:!0,maxConnectionsPerIp:100,maxMessagesPerSecond:50,maxPayloadSize:65536},loadManagement:{maxConnections:1e4,backpressureThreshold:1000,messageQueueSize:1e4,gracefulShutdownTimeout:30000},autoScaling:{min:2,max:10,targetCPU:70},healthCheck:{enabled:!0,path:"/health",interval:30},metrics:{enabled:!0,port:9090,path:"/metrics"}},channels:{public:!0,private:!0,presence:!0}},highPerformance:{enabled:!0,mode:"server",server:{driver:"bun",redis:{enabled:!0,cluster:!0},rateLimit:{enabled:!0,maxConnectionsPerIp:500,maxMessagesPerSecond:200,maxPayloadSize:131072},loadManagement:{maxConnections:1e5,backpressureThreshold:5000,messageQueueSize:50000,gracefulShutdownTimeout:60000},autoScaling:{min:4,max:50,targetCPU:60}}},chat:{enabled:!0,mode:"server",server:{driver:"bun",redis:{enabled:!0},rateLimit:{enabled:!0,maxConnectionsPerIp:10,maxMessagesPerSecond:20},loadManagement:{maxConnections:50000}},channels:{public:!0,private:!0,presence:{enabled:!0,maxMembersPerChannel:500,memberInfoTtl:60}}},gaming:{enabled:!0,mode:"server",server:{driver:"bun",redis:{enabled:!0,cluster:!0},rateLimit:{enabled:!0,maxConnectionsPerIp:50,maxMessagesPerSecond:100},loadManagement:{maxConnections:50000,backpressureThreshold:2000,messageQueueSize:20000},autoScaling:{min:2,max:20,targetCPU:50}},channels:{public:!0,private:!0,presence:!0}}},serverless:{development:{enabled:!0,mode:"serverless",debug:!0,serverless:{connectionTimeout:3600,idleTimeout:600,stageName:"dev",memorySize:256,timeout:30},channels:{public:!0,private:!0,presence:!0}},production:{enabled:!0,mode:"serverless",debug:!1,serverless:{connectionTimeout:3600,idleTimeout:600,stageName:"production",memorySize:512,timeout:30,provisionedConcurrency:2},channels:{public:!0,private:!0,presence:!0}},notifications:{enabled:!0,mode:"serverless",serverless:{connectionTimeout:7200,idleTimeout:1800,memorySize:256,timeout:15},channels:{public:!0,private:!0,presence:!1}}}};var A={calendar:{github:"stacksjs/calendar",package:"@stacksjs/calendar",description:"Calendar links, ICS generation, and an STX calendar component"},table:{github:"stacksjs/table",package:"@stacksjs/table",description:"Typed table drivers and an STX data table component"}};export{i as Every,l as ExitCode,C as QueuePresets,M as RealtimePresets,s as SocialLinkIcon,h as defineModel,T as defineModels,x as getTypeName,a as isAccessToken,d as isOAuthClient,c as isPersonalAccessToken,A as stackExtensionRegistry};
|
package/dist/model.d.ts
CHANGED
|
@@ -144,10 +144,11 @@ export declare interface SeedOptions {
|
|
|
144
144
|
count: number
|
|
145
145
|
fixtures?: Array<Record<string, unknown>>
|
|
146
146
|
}
|
|
147
|
+
/** Which attributes `traits.useActivityLog` records. See the trait's docblock. */
|
|
147
148
|
declare interface ActivityLogOption {
|
|
148
|
-
|
|
149
|
-
include
|
|
150
|
-
|
|
149
|
+
logOnly?: string[]
|
|
150
|
+
include?: string[]
|
|
151
|
+
exclude?: string[]
|
|
151
152
|
}
|
|
152
153
|
export declare interface Relations {
|
|
153
154
|
hasOne: HasOne<ModelNames> | ModelNames[]
|
|
@@ -304,7 +305,6 @@ declare type ActionName = string;
|
|
|
304
305
|
declare type Action = ActionPath | ActionName | undefined;
|
|
305
306
|
export type ApiRoutes = 'index' | 'show' | 'store' | 'update' | 'destroy';
|
|
306
307
|
export type SocialProviders = 'google' | 'github' | 'apple' | 'twitter' | 'facebook';
|
|
307
|
-
declare type LogAttribute = string;
|
|
308
308
|
export type SocialOptions = SocialProviders[];
|
|
309
309
|
/**
|
|
310
310
|
* Middleware for the auto-generated REST routes.
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Local mirror of
|
|
2
|
-
// into @stacksjs/types as a hard dependency. Apps that
|
|
3
|
-
// only need the structural surface
|
|
4
|
-
//
|
|
5
|
-
// `
|
|
6
|
-
declare interface
|
|
1
|
+
// Local mirror of the CSS engine's config shape so we don't bring
|
|
2
|
+
// @stacksjs/ts-css into @stacksjs/types as a hard dependency. Apps that
|
|
3
|
+
// import these types only need the structural surface
|
|
4
|
+
// (shortcuts/theme/variants); when full fidelity is needed, projects can
|
|
5
|
+
// import `CssConfig` from `@stacksjs/ts-css/engine` directly.
|
|
6
|
+
declare interface CssConfig {
|
|
7
7
|
shortcuts?: unknown
|
|
8
8
|
theme?: unknown
|
|
9
9
|
variants?: unknown
|
|
@@ -37,13 +37,13 @@ export declare interface UiOptions {
|
|
|
37
37
|
fonts?: any
|
|
38
38
|
useWebFonts?: boolean | WebFontsProviders
|
|
39
39
|
icons: Icon | Icon[]
|
|
40
|
-
theme:
|
|
41
|
-
variants:
|
|
40
|
+
theme: CssConfig['theme']
|
|
41
|
+
variants: CssConfig['variants']
|
|
42
42
|
}
|
|
43
43
|
export type Font = 'inter' | 'mona' | 'hubot';
|
|
44
44
|
export type Icon = 'heroicons' | 'hugeicons';
|
|
45
45
|
export type WebFontsProviders = 'google' | 'bunny' | 'fontshare';
|
|
46
|
-
export type Shortcuts =
|
|
46
|
+
export type Shortcuts = CssConfig['shortcuts'];
|
|
47
47
|
export type UiConfig = Partial<UiOptions>;
|
|
48
48
|
/**
|
|
49
49
|
* **Style Reset — Preset**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.74.
|
|
4
|
+
"version": "0.74.31",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@stacksjs/bunpress": "^0.2.8",
|
|
60
60
|
"@stacksjs/clapp": "^0.2.12",
|
|
61
|
-
"@stacksjs/events": "0.74.
|
|
62
|
-
"@stacksjs/strings": "0.74.
|
|
61
|
+
"@stacksjs/events": "0.74.31",
|
|
62
|
+
"@stacksjs/strings": "0.74.31",
|
|
63
63
|
"@stacksjs/stx": "^0.2.274",
|
|
64
64
|
"@stacksjs/ts-validation": "^0.5.6",
|
|
65
|
-
"bun-query-builder": "^0.2.
|
|
65
|
+
"bun-query-builder": "^0.2.69"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"meilisearch": "^0.59.0"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@stacksjs/validation": "0.74.
|
|
76
|
+
"@stacksjs/validation": "0.74.31",
|
|
77
77
|
"better-dx": "^0.2.24",
|
|
78
78
|
"meilisearch": "^0.59.0"
|
|
79
79
|
},
|