appos 0.5.1-0 → 0.6.0-0
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/exports/api/index.d.mts +3 -3
- package/dist/exports/api/index.mjs +29 -4
- package/dist/exports/api/orm.d.mts +1 -1
- package/dist/exports/api/orm.mjs +1 -1
- package/dist/exports/api/workflows/index.d.mts +2 -2
- package/dist/exports/{chunk-CHSICr2d.mjs → chunk-DCbLExaX.mjs} +2 -1
- package/dist/exports/cli/index.d.mts +2 -2
- package/dist/exports/cli/index.mjs +3 -3
- package/dist/exports/{index-CiuTp085.d.mts → index-Di4PdhuL.d.mts} +25 -3
- package/dist/exports/{instrumentation-DkoLNAtz.mjs → instrumentation-Dqv_rRlR.mjs} +1 -1
- package/dist/exports/instrumentation.mjs +1 -1
- package/dist/exports/{mock-2jMk5l3y.mjs → mock-DLfalkIV.mjs} +1 -1
- package/dist/exports/{orm-CJrd147z.d.mts → orm-D-7F2n1J.d.mts} +1 -1
- package/dist/exports/{orm-COJ9l6sS.mjs → orm-DbH3_5aw.mjs} +1 -1
- package/dist/exports/{server-CA4aI0U6.mjs → server-cD8Pckgj.mjs} +1 -1
- package/dist/exports/tests/api.d.mts +2 -2
- package/dist/exports/tests/api.mjs +3 -3
- package/dist/exports/tests/mock.mjs +1 -1
- package/dist/exports/vite/index.d.mts +369 -3
- package/dist/exports/vite/index.mjs +743 -8
- package/dist/exports/web/index.js +5 -5
- package/dist/exports/web/ssr.d.mts +2 -2
- package/package.json +28 -1
- package/src/storybook/.storybook/main.ts +89 -7
- package/src/storybook/.storybook/preview.tsx +1 -0
- package/src/web/font/config.test.ts +224 -0
- package/src/web/font/config.ts +119 -0
- package/src/web/font/css.ts +268 -0
- package/src/web/font/index.ts +43 -0
- package/src/web/font/presets.ts +257 -0
- package/src/web/font/virtual.d.ts +25 -0
- package/src/web/font/virtual.js +2 -0
- package/src/web/ui/auth/auth-card.stories.tsx +1 -1
- package/src/web/ui/auth/email-input.stories.tsx +1 -1
- package/src/web/ui/auth/otp-input.stories.tsx +1 -1
- package/src/web/ui/auth/passkey-button.stories.tsx +1 -1
- package/src/web/ui/auth/passkey-register-button.stories.tsx +1 -1
- package/src/web/ui/auth/password-input.stories.tsx +1 -1
- package/src/web/ui/auth/phone-input.stories.tsx +1 -1
- package/src/web/ui/auth/social-buttons.stories.tsx +1 -1
- package/src/web/ui/auth/sso-button.stories.tsx +1 -1
- package/src/web/ui/chart.stories.tsx +14 -14
- package/src/web/ui/drawer.tsx +1 -1
- package/src/web/ui/navigation-menu.tsx +4 -4
- package/src/web/ui/popover.stories.tsx +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as defineLogger, C as dbChanges, D as migrationsSchema, E as defineTestDatabase, O as DefineLoggerOptions, S as QualifiedTableNames, T as defineMigrationOpts, a as AuthCaptchaConfig, b as DefineTestDatabaseOptions, c as AuthSessionConfig, d as Role, f as auditActionSchema, g as defineEndpointRateLimits, h as defineAuth, i as Auth, k as Logger, l as CaptchaProvider, m as createAccessControl, n as AccessController, o as AuthConfig, p as captchaProviders, r as AuditAction, s as AuthPasskeyConfig, t as AccessControlRoles, u as DefineAuthOptions, v as Database, w as defineDatabase, x as MigrationType, y as DefineDatabaseOptions } from "../auth-BCOIpGDO.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
import "../orm-
|
|
2
|
+
import { $ as NewStorageVariantRecord, A as defaultI18nConfig, At as Event, B as Container, Bt as defineConfig, C as scanAPIRoutes, Ct as WorkflowStartOptions, D as loadMiddleware, Dt as loadWorkflows, E as defineMiddleware, Et as defineWorkflow, F as AppContext, Ft as defineEvent, G as DefineS3DiskOptions, H as WorkerConfig, Ht as DefineCacheOptions, I as DefineAppContextOpts, It as defineEventBus, J as StorageService, K as DefineStorageOptions, L as SessionData, Lt as loadEvents, M as i18n, Mt as EventContext, N as isLocalDev, Nt as dbChangeInputSchema, Ot as DbChangeInput, P as defineAuthSchema, Pt as dbChangesEvent, Q as NewStorageBlob, R as defineAppContext, Rt as Config, S as registerRoutes, St as WorkflowHandle, T as Middleware, Tt as defineScheduledWorkflow, U as defineAppContainer, Ut as defineCache, V as ServerConfig, Vt as Cache, W as DatabaseWithStorage, X as defineStorage, Y as defineS3Disk, Z as NewStorageAttachment, _ as defineOpenAPIConfig, _t as QueueFactory, a as defineRedisClient, at as StorageVariantRecord, b as generateOpenAPIDocument, bt as ScheduledWorkflowContext, c as DefineOpenAPIConfigInput, ct as DefineMailerOptionsWithQueue, d as OpenAPIMethodSpec, dt as MailerPayloadHtml, et as StorageAttachment, f as OpenAPIObjectConfigV31, ft as MailerPayloadReact, g as defineOpenAPI, gt as Queue, h as ValidationErrorResponse, ht as DefineQueueOptions, i as RedisClient, it as StorageTables, j as defineI18n, jt as EventBus, k as I18nInitOptions, kt as DefineEventBusOptions, l as DefineOpenAPIReturn, lt as Mailer, m as RouteModule, mt as defineMailer, nt as StorageRelations, o as withOtelSpan, ot as defineStorageSchema, p as OpenAPIRegistration, pt as MailerWithQueue, q as Storage, r as DefineRedisClientOptions, rt as StorageRelationsConfig, s as DefineOpenAPIConfig, st as DefineMailerOptions, t as CustomTypeOptions, tt as StorageBlob, u as HandlerParams, ut as MailerPayload, v as defineOpenAPIEndpoint, vt as QueueFactoryContext, w as writeOpenAPISpecs, wt as defineQueue, x as loadAndRegisterAPIRoutes, xt as WorkflowContext, y as defineTypedResponses, yt as QueueRateLimit, z as AppContainer, zt as baseSchema } from "../index-Di4PdhuL.mjs";
|
|
3
|
+
import "../orm-D-7F2n1J.mjs";
|
|
4
4
|
import "../instrumentation-CFIspF8-.mjs";
|
|
5
|
-
export { AccessControlRoles, AccessController, AppContainer, AppContext, AuditAction, Auth, AuthCaptchaConfig, AuthConfig, AuthPasskeyConfig, AuthSessionConfig, Cache, CaptchaProvider, Config, Container, CustomTypeOptions, Database, DatabaseWithStorage, DbChangeInput, DefineAppContextOpts, DefineAuthOptions, DefineCacheOptions, DefineDatabaseOptions, DefineEventBusOptions, DefineLoggerOptions, DefineMailerOptions, DefineMailerOptionsWithQueue, DefineOpenAPIConfig, DefineOpenAPIConfigInput, DefineOpenAPIReturn, DefineQueueOptions, DefineRedisClientOptions, DefineS3DiskOptions, DefineStorageOptions, DefineTestDatabaseOptions, Event, EventBus, EventContext, HandlerParams, I18nInitOptions, Logger, Mailer, MailerPayload, MailerPayloadHtml, MailerPayloadReact, MailerWithQueue, Middleware, MigrationType, NewStorageAttachment, NewStorageBlob, NewStorageVariantRecord, OpenAPIMethodSpec, OpenAPIObjectConfigV31, OpenAPIRegistration, QualifiedTableNames, Queue, QueueFactory, QueueFactoryContext, QueueRateLimit, RedisClient, Role, RouteModule, ScheduledWorkflowContext, ServerConfig, SessionData, Storage, StorageAttachment, StorageBlob, StorageRelations, StorageRelationsConfig, StorageService, StorageTables, StorageVariantRecord, ValidationErrorResponse, WorkerConfig, WorkflowContext, WorkflowHandle, WorkflowStartOptions, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, i18n, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
5
|
+
export { AccessControlRoles, AccessController, AppContainer, AppContext, AuditAction, Auth, AuthCaptchaConfig, AuthConfig, AuthPasskeyConfig, AuthSessionConfig, Cache, CaptchaProvider, Config, Container, CustomTypeOptions, Database, DatabaseWithStorage, DbChangeInput, DefineAppContextOpts, DefineAuthOptions, DefineCacheOptions, DefineDatabaseOptions, DefineEventBusOptions, DefineLoggerOptions, DefineMailerOptions, DefineMailerOptionsWithQueue, DefineOpenAPIConfig, DefineOpenAPIConfigInput, DefineOpenAPIReturn, DefineQueueOptions, DefineRedisClientOptions, DefineS3DiskOptions, DefineStorageOptions, DefineTestDatabaseOptions, Event, EventBus, EventContext, HandlerParams, I18nInitOptions, Logger, Mailer, MailerPayload, MailerPayloadHtml, MailerPayloadReact, MailerWithQueue, Middleware, MigrationType, NewStorageAttachment, NewStorageBlob, NewStorageVariantRecord, OpenAPIMethodSpec, OpenAPIObjectConfigV31, OpenAPIRegistration, QualifiedTableNames, Queue, QueueFactory, QueueFactoryContext, QueueRateLimit, RedisClient, Role, RouteModule, ScheduledWorkflowContext, ServerConfig, SessionData, Storage, StorageAttachment, StorageBlob, StorageRelations, StorageRelationsConfig, StorageService, StorageTables, StorageVariantRecord, ValidationErrorResponse, WorkerConfig, WorkflowContext, WorkflowHandle, WorkflowStartOptions, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, i18n, isLocalDev, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
@@ -2,8 +2,8 @@ import { t as defineAppContext } from "../app-context-LF4QmPUC.mjs";
|
|
|
2
2
|
import { _ as defineAuthSchema, a as loadWorkflows, c as generatePreview, d as dbChangeInputSchema, f as dbChangesEvent, g as defineRedisClient, h as loadEvents, i as defineWorkflow, l as generateImageVariant, m as defineEventBus, n as defineQueue, o as purgeAttachment, p as defineEvent, r as defineScheduledWorkflow, t as sendEmail, u as extractBlobMetadata } from "../send-email-CXxlkfFL.mjs";
|
|
3
3
|
import { p as PUBLIC_DIR, u as LOCALES_DIR } from "../constants-BicCnEiJ.mjs";
|
|
4
4
|
import { _ as defineMigrationOpts, a as generateOpenAPIDocument, c as scanAPIRoutes, d as loadMiddleware, f as ui_default$2, g as defineDatabase, h as dbChanges, i as defineTypedResponses, l as writeOpenAPISpecs, m as ui_default, n as defineOpenAPIConfig, o as loadAndRegisterAPIRoutes, p as ui_default$1, r as defineOpenAPIEndpoint, s as registerRoutes, t as defineOpenAPI, u as defineMiddleware, v as defineTestDatabase, y as migrationsSchema } from "../openapi-uisUTLq7.mjs";
|
|
5
|
-
import { t as instrumentation_exports } from "../instrumentation-
|
|
6
|
-
import { _ as pgTable, c as orm_exports, t as index, w as unique } from "../orm-
|
|
5
|
+
import { t as instrumentation_exports } from "../instrumentation-Dqv_rRlR.mjs";
|
|
6
|
+
import { _ as pgTable, c as orm_exports, t as index, w as unique } from "../orm-DbH3_5aw.mjs";
|
|
7
7
|
import { passkey } from "@better-auth/passkey";
|
|
8
8
|
import { sso } from "@better-auth/sso";
|
|
9
9
|
import { betterAuth } from "better-auth";
|
|
@@ -464,6 +464,31 @@ function defineAppContainer(container) {
|
|
|
464
464
|
return container;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/api/env.ts
|
|
469
|
+
/**
|
|
470
|
+
* Returns true if running in local development mode.
|
|
471
|
+
* False in production, CI, or test environments.
|
|
472
|
+
*
|
|
473
|
+
* Use this to enable dev-only features like file watchers that should not
|
|
474
|
+
* run in production, CI pipelines, or test suites.
|
|
475
|
+
*
|
|
476
|
+
* @returns True if in local development mode.
|
|
477
|
+
*
|
|
478
|
+
* @example
|
|
479
|
+
* ```typescript
|
|
480
|
+
* import { isLocalDev } from "appos/api";
|
|
481
|
+
*
|
|
482
|
+
* if (isLocalDev()) {
|
|
483
|
+
* const watcher = watch(filePath, callback);
|
|
484
|
+
* watcher.unref(); // Don't keep process alive
|
|
485
|
+
* }
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
function isLocalDev() {
|
|
489
|
+
return process.env.NODE_ENV !== "production" && !process.env.VITEST && !process.env.CI;
|
|
490
|
+
}
|
|
491
|
+
|
|
467
492
|
//#endregion
|
|
468
493
|
//#region src/api/i18n.ts
|
|
469
494
|
const uiTranslations = {
|
|
@@ -501,7 +526,7 @@ async function defineI18n(opts) {
|
|
|
501
526
|
const ns = opts.ns;
|
|
502
527
|
const namespaces = Array.isArray(ns) ? [...ns] : ns ? [ns] : [];
|
|
503
528
|
if (!namespaces.includes("ui")) namespaces.push("ui");
|
|
504
|
-
if (
|
|
529
|
+
if (isLocalDev()) watch(localesDir, { recursive: true }, async (event, fn) => {
|
|
505
530
|
await i18n$1.reloadResources(opts.supportedLngs || []);
|
|
506
531
|
}).unref();
|
|
507
532
|
await i18n$1.use(I18nextFsBackend).use(initReactI18next).init({
|
|
@@ -1540,4 +1565,4 @@ function defineStorageSchema() {
|
|
|
1540
1565
|
}
|
|
1541
1566
|
|
|
1542
1567
|
//#endregion
|
|
1543
|
-
export { StorageService, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
1568
|
+
export { StorageService, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, isLocalDev, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as sparsevec, E as uniqueKeyName, S as smallserial, T as uniqueIndex, _ as pgTable, a as isPgSequence, b as serial, d as pgEnum, f as pgMaterializedView, g as pgSequence, h as pgSchema, i as isPgSchema, l as parsePgArray, m as pgRole, n as isPgEnum, o as isPgView, p as pgPolicy, r as isPgMaterializedView, s as numeric, t as index, u as parsePgNestedArray, v as pgTableCreator, w as unique, x as smallint, y as pgView } from "../orm-
|
|
1
|
+
import { C as sparsevec, E as uniqueKeyName, S as smallserial, T as uniqueIndex, _ as pgTable, a as isPgSequence, b as serial, d as pgEnum, f as pgMaterializedView, g as pgSequence, h as pgSchema, i as isPgSchema, l as parsePgArray, m as pgRole, n as isPgEnum, o as isPgView, p as pgPolicy, r as isPgMaterializedView, s as numeric, t as index, u as parsePgNestedArray, v as pgTableCreator, w as unique, x as smallint, y as pgView } from "../orm-D-7F2n1J.mjs";
|
|
2
2
|
export * from "drizzle-orm";
|
|
3
3
|
export { index, isPgEnum, isPgMaterializedView, isPgSchema, isPgSequence, isPgView, numeric, parsePgArray, parsePgNestedArray, pgEnum, pgMaterializedView, pgPolicy, pgRole, pgSchema, pgSequence, pgTable, pgTableCreator, pgView, serial, smallint, smallserial, sparsevec, unique, uniqueIndex, uniqueKeyName };
|
package/dist/exports/api/orm.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as sparsevec, E as uniqueKeyName, S as smallserial, T as uniqueIndex, _ as pgTable, a as isPgSequence, b as serial, d as pgEnum, f as pgMaterializedView, g as pgSequence, h as pgSchema, i as isPgSchema, l as parsePgArray, m as pgRole, n as isPgEnum, o as isPgView, p as pgPolicy, r as isPgMaterializedView, s as numeric, t as index, u as parsePgNestedArray, v as pgTableCreator, w as unique, x as smallint, y as pgView } from "../orm-
|
|
1
|
+
import { C as sparsevec, E as uniqueKeyName, S as smallserial, T as uniqueIndex, _ as pgTable, a as isPgSequence, b as serial, d as pgEnum, f as pgMaterializedView, g as pgSequence, h as pgSchema, i as isPgSchema, l as parsePgArray, m as pgRole, n as isPgEnum, o as isPgView, p as pgPolicy, r as isPgMaterializedView, s as numeric, t as index, u as parsePgNestedArray, v as pgTableCreator, w as unique, x as smallint, y as pgView } from "../orm-DbH3_5aw.mjs";
|
|
2
2
|
|
|
3
3
|
export * from "drizzle-orm"
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../auth-BCOIpGDO.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "../../orm-
|
|
2
|
+
import { B as Container, Ct as WorkflowStartOptions, St as WorkflowHandle } from "../../index-Di4PdhuL.mjs";
|
|
3
|
+
import "../../orm-D-7F2n1J.mjs";
|
|
4
4
|
import "../../instrumentation-CFIspF8-.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import * as _dbos_inc_dbos_sdk0 from "@dbos-inc/dbos-sdk";
|
|
@@ -33,6 +33,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
33
33
|
return to;
|
|
34
34
|
};
|
|
35
35
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
36
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
36
37
|
|
|
37
38
|
//#endregion
|
|
38
|
-
export { __reExport as n, __exportAll as t };
|
|
39
|
+
export { __reExport as n, __require as r, __exportAll as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../auth-BCOIpGDO.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "../orm-
|
|
2
|
+
import { B as Container } from "../index-Di4PdhuL.mjs";
|
|
3
|
+
import "../orm-D-7F2n1J.mjs";
|
|
4
4
|
import "../instrumentation-CFIspF8-.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { ChildProcess } from "node:child_process";
|
|
@@ -2,8 +2,8 @@ import "../app-context-LF4QmPUC.mjs";
|
|
|
2
2
|
import { a as loadWorkflows, h as loadEvents } from "../send-email-CXxlkfFL.mjs";
|
|
3
3
|
import { a as DATABASES_DIR, c as FILE_EXT, d as MAIN_ENTRY, g as WEB_DIR, h as TEST_EXTENSIONS, i as COMMANDS_DIR, l as FIXTURES_DIR, n as BUILD_DIR, t as APPOS_DIR } from "../constants-BicCnEiJ.mjs";
|
|
4
4
|
import { _ as defineMigrationOpts } from "../openapi-uisUTLq7.mjs";
|
|
5
|
-
import "../instrumentation-
|
|
6
|
-
import { t as defineServer } from "../server-
|
|
5
|
+
import "../instrumentation-Dqv_rRlR.mjs";
|
|
6
|
+
import { t as defineServer } from "../server-cD8Pckgj.mjs";
|
|
7
7
|
import "../ssr-BsfNjYlJ.mjs";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -1423,7 +1423,7 @@ var preview_default = defineCommand({
|
|
|
1423
1423
|
|
|
1424
1424
|
//#endregion
|
|
1425
1425
|
//#region package.json
|
|
1426
|
-
var version = "0.
|
|
1426
|
+
var version = "0.6.0-0";
|
|
1427
1427
|
|
|
1428
1428
|
//#endregion
|
|
1429
1429
|
//#region src/cli/commands/repl.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as defineLogger, C as dbChanges, D as migrationsSchema, E as defineTestDatabase, O as DefineLoggerOptions, S as QualifiedTableNames, T as defineMigrationOpts, a as AuthCaptchaConfig, b as DefineTestDatabaseOptions, c as AuthSessionConfig, d as Role, f as auditActionSchema, g as defineEndpointRateLimits, h as defineAuth, i as Auth$1, k as Logger, l as CaptchaProvider, m as createAccessControl, n as AccessController, o as AuthConfig, p as captchaProviders, r as AuditAction, s as AuthPasskeyConfig, t as AccessControlRoles, u as DefineAuthOptions, v as Database, w as defineDatabase, x as MigrationType, y as DefineDatabaseOptions } from "./auth-BCOIpGDO.mjs";
|
|
2
|
-
import { c as orm_d_exports } from "./orm-
|
|
2
|
+
import { c as orm_d_exports } from "./orm-D-7F2n1J.mjs";
|
|
3
3
|
import { t as instrumentation_d_exports } from "./instrumentation-CFIspF8-.mjs";
|
|
4
4
|
import { Auth } from "better-auth";
|
|
5
5
|
import { ApiKey } from "better-auth/plugins";
|
|
@@ -6740,6 +6740,28 @@ declare function defineAuthSchema(): {
|
|
|
6740
6740
|
};
|
|
6741
6741
|
};
|
|
6742
6742
|
//#endregion
|
|
6743
|
+
//#region src/api/env.d.ts
|
|
6744
|
+
/**
|
|
6745
|
+
* Returns true if running in local development mode.
|
|
6746
|
+
* False in production, CI, or test environments.
|
|
6747
|
+
*
|
|
6748
|
+
* Use this to enable dev-only features like file watchers that should not
|
|
6749
|
+
* run in production, CI pipelines, or test suites.
|
|
6750
|
+
*
|
|
6751
|
+
* @returns True if in local development mode.
|
|
6752
|
+
*
|
|
6753
|
+
* @example
|
|
6754
|
+
* ```typescript
|
|
6755
|
+
* import { isLocalDev } from "appos/api";
|
|
6756
|
+
*
|
|
6757
|
+
* if (isLocalDev()) {
|
|
6758
|
+
* const watcher = watch(filePath, callback);
|
|
6759
|
+
* watcher.unref(); // Don't keep process alive
|
|
6760
|
+
* }
|
|
6761
|
+
* ```
|
|
6762
|
+
*/
|
|
6763
|
+
declare function isLocalDev(): boolean;
|
|
6764
|
+
//#endregion
|
|
6743
6765
|
//#region src/api/i18n.d.ts
|
|
6744
6766
|
/**
|
|
6745
6767
|
* i18n initialization options extending i18next's InitOptions.
|
|
@@ -7146,7 +7168,7 @@ interface DefineRedisClientOptions {
|
|
|
7146
7168
|
*/
|
|
7147
7169
|
declare function defineRedisClient(opts: DefineRedisClientOptions): RedisClient;
|
|
7148
7170
|
declare namespace index_d_exports {
|
|
7149
|
-
export { AccessControlRoles, AccessController, AppContainer, AppContext, AuditAction, Auth$1 as Auth, AuthCaptchaConfig, AuthConfig, AuthPasskeyConfig, AuthSessionConfig, Cache, CaptchaProvider, Config, Container, CustomTypeOptions, Database, DatabaseWithStorage, DbChangeInput, DefineAppContextOpts, DefineAuthOptions, DefineCacheOptions, DefineDatabaseOptions, DefineEventBusOptions, DefineLoggerOptions, DefineMailerOptions, DefineMailerOptionsWithQueue, DefineOpenAPIConfig, DefineOpenAPIConfigInput, DefineOpenAPIReturn, DefineQueueOptions, DefineRedisClientOptions, DefineS3DiskOptions, DefineStorageOptions, DefineTestDatabaseOptions, Event, EventBus, EventContext, HandlerParams, I18nInitOptions, Logger, Mailer, MailerPayload, MailerPayloadHtml, MailerPayloadReact, MailerWithQueue, Middleware, MigrationType, NewStorageAttachment, NewStorageBlob, NewStorageVariantRecord, OpenAPIMethodSpec, OpenAPIObjectConfigV31, OpenAPIRegistration, QualifiedTableNames, Queue, QueueFactory, QueueFactoryContext, QueueRateLimit, RedisClient, Role, RouteModule, ScheduledWorkflowContext, ServerConfig, SessionData, Storage, StorageAttachment, StorageBlob, StorageRelations, StorageRelationsConfig, StorageService, StorageTables, StorageVariantRecord, ValidationErrorResponse, WorkerConfig, WorkflowContext, WorkflowHandle, WorkflowStartOptions, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, i18n$1 as i18n, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
7171
|
+
export { AccessControlRoles, AccessController, AppContainer, AppContext, AuditAction, Auth$1 as Auth, AuthCaptchaConfig, AuthConfig, AuthPasskeyConfig, AuthSessionConfig, Cache, CaptchaProvider, Config, Container, CustomTypeOptions, Database, DatabaseWithStorage, DbChangeInput, DefineAppContextOpts, DefineAuthOptions, DefineCacheOptions, DefineDatabaseOptions, DefineEventBusOptions, DefineLoggerOptions, DefineMailerOptions, DefineMailerOptionsWithQueue, DefineOpenAPIConfig, DefineOpenAPIConfigInput, DefineOpenAPIReturn, DefineQueueOptions, DefineRedisClientOptions, DefineS3DiskOptions, DefineStorageOptions, DefineTestDatabaseOptions, Event, EventBus, EventContext, HandlerParams, I18nInitOptions, Logger, Mailer, MailerPayload, MailerPayloadHtml, MailerPayloadReact, MailerWithQueue, Middleware, MigrationType, NewStorageAttachment, NewStorageBlob, NewStorageVariantRecord, OpenAPIMethodSpec, OpenAPIObjectConfigV31, OpenAPIRegistration, QualifiedTableNames, Queue, QueueFactory, QueueFactoryContext, QueueRateLimit, RedisClient, Role, RouteModule, ScheduledWorkflowContext, ServerConfig, SessionData, Storage, StorageAttachment, StorageBlob, StorageRelations, StorageRelationsConfig, StorageService, StorageTables, StorageVariantRecord, ValidationErrorResponse, WorkerConfig, WorkflowContext, WorkflowHandle, WorkflowStartOptions, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, i18n$1 as i18n, isLocalDev, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
7150
7172
|
}
|
|
7151
7173
|
//#endregion
|
|
7152
|
-
export {
|
|
7174
|
+
export { NewStorageVariantRecord as $, defaultI18nConfig as A, Event as At, Container as B, defineConfig as Bt, scanAPIRoutes as C, WorkflowStartOptions as Ct, loadMiddleware as D, loadWorkflows as Dt, defineMiddleware as E, defineWorkflow as Et, AppContext as F, defineEvent as Ft, DefineS3DiskOptions as G, WorkerConfig as H, DefineCacheOptions as Ht, DefineAppContextOpts as I, defineEventBus as It, StorageService as J, DefineStorageOptions as K, SessionData as L, loadEvents as Lt, i18n$1 as M, EventContext as Mt, isLocalDev as N, dbChangeInputSchema as Nt, App as O, DbChangeInput as Ot, defineAuthSchema as P, dbChangesEvent as Pt, NewStorageBlob as Q, defineAppContext as R, Config as Rt, registerRoutes as S, WorkflowHandle as St, Middleware as T, defineScheduledWorkflow as Tt, defineAppContainer as U, defineCache as Ut, ServerConfig as V, Cache as Vt, DatabaseWithStorage as W, defineStorage as X, defineS3Disk as Y, NewStorageAttachment as Z, defineOpenAPIConfig as _, QueueFactory as _t, defineRedisClient as a, StorageVariantRecord as at, generateOpenAPIDocument as b, ScheduledWorkflowContext as bt, DefineOpenAPIConfigInput as c, DefineMailerOptionsWithQueue as ct, OpenAPIMethodSpec as d, MailerPayloadHtml as dt, StorageAttachment as et, OpenAPIObjectConfigV31 as f, MailerPayloadReact as ft, defineOpenAPI as g, Queue as gt, ValidationErrorResponse as h, DefineQueueOptions as ht, RedisClient as i, StorageTables as it, defineI18n as j, EventBus as jt, I18nInitOptions as k, DefineEventBusOptions as kt, DefineOpenAPIReturn as l, Mailer as lt, RouteModule as m, defineMailer as mt, index_d_exports as n, StorageRelations as nt, withOtelSpan as o, defineStorageSchema as ot, OpenAPIRegistration as p, MailerWithQueue as pt, Storage as q, DefineRedisClientOptions as r, StorageRelationsConfig as rt, DefineOpenAPIConfig as s, DefineMailerOptions as st, CustomTypeOptions as t, StorageBlob as tt, HandlerParams as u, MailerPayload as ut, defineOpenAPIEndpoint as v, QueueFactoryContext as vt, writeOpenAPISpecs as w, defineQueue as wt, loadAndRegisterAPIRoutes as x, WorkflowContext as xt, defineTypedResponses as y, QueueRateLimit as yt, AppContainer as z, baseSchema as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-DCbLExaX.mjs";
|
|
2
2
|
import { index, isPgEnum, isPgMaterializedView, isPgSchema, isPgSequence, isPgView, numeric, parsePgArray, parsePgNestedArray, pgEnum, pgMaterializedView, pgPolicy, pgRole, pgSchema, pgSequence, pgTable as pgTable$1, pgTableCreator, pgView, serial, smallint, smallserial, sparsevec, unique, uniqueIndex, uniqueKeyName } from "drizzle-orm/pg-core";
|
|
3
3
|
|
|
4
4
|
//#region src/api/orm.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-DCbLExaX.mjs";
|
|
2
2
|
import { index, isPgEnum, isPgMaterializedView, isPgSchema, isPgSequence, isPgView, numeric, parsePgArray, parsePgNestedArray, pgEnum, pgMaterializedView, pgPolicy, pgRole, pgSchema, pgSequence, pgTable as pgTable$1, pgTableCreator, pgView, serial, smallint, smallserial, sparsevec, unique, uniqueIndex, uniqueKeyName } from "drizzle-orm/pg-core";
|
|
3
3
|
|
|
4
4
|
//#region src/api/orm.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as MIDDLEWARE_DIR, g as WEB_DIR, o as DESIGN_SYSTEM_PATH, p as PUBLIC_DIR, r as BUILD_OUTPUT_DIR, t as APPOS_DIR } from "./constants-BicCnEiJ.mjs";
|
|
2
2
|
import { d as loadMiddleware, f as ui_default$2, m as ui_default, o as loadAndRegisterAPIRoutes, p as ui_default$1 } from "./openapi-uisUTLq7.mjs";
|
|
3
|
-
import { t as instrumentation_exports } from "./instrumentation-
|
|
3
|
+
import { t as instrumentation_exports } from "./instrumentation-Dqv_rRlR.mjs";
|
|
4
4
|
import { a as appLoadContext } from "./ssr-BsfNjYlJ.mjs";
|
|
5
5
|
import { toNodeHandler } from "better-auth/node";
|
|
6
6
|
import { createClient } from "redis";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as defineTestDatabase, b as DefineTestDatabaseOptions } from "../auth-BCOIpGDO.mjs";
|
|
2
|
-
import { O as App,
|
|
3
|
-
import "../orm-
|
|
2
|
+
import { O as App, n as index_d_exports, z as AppContainer } from "../index-Di4PdhuL.mjs";
|
|
3
|
+
import "../orm-D-7F2n1J.mjs";
|
|
4
4
|
import "../instrumentation-CFIspF8-.mjs";
|
|
5
5
|
import supertestOriginal from "supertest";
|
|
6
6
|
import { TestAPI } from "vitest";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../app-context-LF4QmPUC.mjs";
|
|
2
2
|
import "../constants-BicCnEiJ.mjs";
|
|
3
3
|
import { v as defineTestDatabase } from "../openapi-uisUTLq7.mjs";
|
|
4
|
-
import "../instrumentation-
|
|
5
|
-
import { t as defineServer } from "../server-
|
|
4
|
+
import "../instrumentation-Dqv_rRlR.mjs";
|
|
5
|
+
import { t as defineServer } from "../server-cD8Pckgj.mjs";
|
|
6
6
|
import "../ssr-BsfNjYlJ.mjs";
|
|
7
|
-
import { t as mock_exports } from "../mock-
|
|
7
|
+
import { t as mock_exports } from "../mock-DLfalkIV.mjs";
|
|
8
8
|
import { join } from "node:path";
|
|
9
9
|
import { mkdirSync, mkdtempSync } from "node:fs";
|
|
10
10
|
import { rm } from "node:fs/promises";
|