adula 2.1.0 → 2.3.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/README.md +149 -18
- package/build/agent/AGENTS.template.md +4 -4
- package/build/agent/capabilities.md +22 -12
- package/build/agent/skills/adula-frontend-design/SKILL.md +6 -4
- package/build/agent/skills/idea-review/SKILL.md +2 -2
- package/build/commands/adula_assistant_prune.d.ts +10 -0
- package/build/commands/adula_assistant_prune.js +12 -0
- package/build/commands/adula_outbox.d.ts +10 -0
- package/build/commands/adula_outbox.js +11 -0
- package/build/commands/adula_restore_reconcile.d.ts +10 -0
- package/build/commands/adula_restore_reconcile.js +34 -0
- package/build/commands/adula_runtime_health.d.ts +10 -0
- package/build/commands/adula_runtime_health.js +27 -0
- package/build/commands/adula_uploads_prune.d.ts +10 -0
- package/build/commands/adula_uploads_prune.js +16 -0
- package/build/commands/app.d.ts +10 -0
- package/build/commands/app.js +64 -0
- package/build/commands/backup_create.d.ts +11 -0
- package/build/commands/backup_create.js +99 -0
- package/build/commands/backup_open.d.ts +16 -0
- package/build/commands/backup_open.js +48 -0
- package/build/commands/backup_restore_files.d.ts +11 -0
- package/build/commands/backup_restore_files.js +44 -0
- package/build/commands/backup_restore_test.d.ts +12 -0
- package/build/commands/backup_restore_test.js +188 -0
- package/build/commands/backup_seal.d.ts +12 -0
- package/build/commands/backup_seal.js +36 -0
- package/build/commands/backup_services.d.ts +33 -0
- package/build/commands/backup_services.js +6 -0
- package/build/commands/backup_verify.d.ts +9 -0
- package/build/commands/backup_verify.js +59 -0
- package/build/commands/backup_verify_snapshot.d.ts +10 -0
- package/build/commands/backup_verify_snapshot.js +37 -0
- package/build/commands/client.d.ts +16 -0
- package/build/commands/client.js +71 -0
- package/build/commands/doctor.js +21 -1
- package/build/commands/install.d.ts +8 -0
- package/build/commands/install.js +69 -45
- package/build/commands/main.d.ts +3 -2
- package/build/commands/main.js +32 -0
- package/build/commands/module_add.js +4 -20
- package/build/commands/resource.d.ts +2 -0
- package/build/commands/resource.js +12 -3
- package/build/commands/resource_migration.d.ts +15 -0
- package/build/commands/resource_migration.js +81 -0
- package/build/commands/resource_snapshot.d.ts +2 -0
- package/build/commands/resource_snapshot.js +21 -4
- package/build/commands/sla_evaluate.d.ts +14 -0
- package/build/commands/sla_evaluate.js +16 -0
- package/build/commands/ui.js +4 -2
- package/build/commands/ui_css.d.ts +9 -0
- package/build/commands/ui_css.js +19 -0
- package/build/commands/upgrade.d.ts +1 -1
- package/build/commands/upgrade.js +1 -1
- package/build/configure.js +1 -1
- package/build/database/migrations/1770000000020_two_factor.d.ts +5 -0
- package/build/database/migrations/1770000000020_two_factor.js +10 -0
- package/build/database/migrations/1770000000041_import_modes.d.ts +5 -0
- package/build/database/migrations/1770000000041_import_modes.js +10 -0
- package/build/database/migrations/1770000000042_sync_jobs.d.ts +5 -0
- package/build/database/migrations/1770000000042_sync_jobs.js +10 -0
- package/build/database/migrations/1770000000043_notification_channels.d.ts +5 -0
- package/build/database/migrations/1770000000043_notification_channels.js +10 -0
- package/build/database/migrations/1770000000044_channel_confirmations.d.ts +5 -0
- package/build/database/migrations/1770000000044_channel_confirmations.js +10 -0
- package/build/database/migrations/1770000000045_import_leases.d.ts +5 -0
- package/build/database/migrations/1770000000045_import_leases.js +10 -0
- package/build/database/migrations/1770000000046_workflow_delegation_sla.d.ts +5 -0
- package/build/database/migrations/1770000000046_workflow_delegation_sla.js +10 -0
- package/build/database/migrations/1770000000049_print_templates.d.ts +5 -0
- package/build/database/migrations/1770000000049_print_templates.js +10 -0
- package/build/database/migrations/1770000000051_comment_notifications.d.ts +5 -0
- package/build/database/migrations/1770000000051_comment_notifications.js +10 -0
- package/build/database/migrations/1770000000054_cloud_backups.d.ts +5 -0
- package/build/database/migrations/1770000000054_cloud_backups.js +10 -0
- package/build/database/migrations/1770000000055_ai_assistant.d.ts +5 -0
- package/build/database/migrations/1770000000055_ai_assistant.js +10 -0
- package/build/database/migrations/1770000000056_appearance.d.ts +5 -0
- package/build/database/migrations/1770000000056_appearance.js +10 -0
- package/build/index.d.ts +87 -11
- package/build/index.js +50 -7
- package/build/providers/adula_provider.d.ts +2 -0
- package/build/providers/adula_provider.js +7 -0
- package/build/src/admin/contracts.js +1 -1
- package/build/src/admin/controller.d.ts +14 -1
- package/build/src/admin/controller.js +91 -13
- package/build/src/admin/errors.d.ts +32 -0
- package/build/src/admin/errors.js +63 -1
- package/build/src/admin/presentation.d.ts +21 -2
- package/build/src/admin/resource/editor.d.ts +60 -0
- package/build/src/admin/resource/editor.js +345 -0
- package/build/src/admin/resource/export.d.ts +54 -0
- package/build/src/admin/resource/export.js +262 -0
- package/build/src/admin/resource/lifecycle.d.ts +23 -0
- package/build/src/admin/resource/lifecycle.js +91 -0
- package/build/src/admin/resource/query.d.ts +111 -0
- package/build/src/admin/resource/query.js +595 -0
- package/build/src/admin/resource/read.d.ts +109 -0
- package/build/src/admin/resource/read.js +388 -0
- package/build/src/admin/resource/shared.d.ts +93 -0
- package/build/src/admin/resource/shared.js +265 -0
- package/build/src/admin/resource/trash.d.ts +10 -0
- package/build/src/admin/resource/trash.js +56 -0
- package/build/src/admin/resource/write.d.ts +57 -0
- package/build/src/admin/resource/write.js +603 -0
- package/build/src/admin/resource_service.d.ts +80 -193
- package/build/src/admin/resource_service.js +81 -1343
- package/build/src/admin/resource_tools.d.ts +111 -0
- package/build/src/admin/resource_tools.js +139 -0
- package/build/src/ai/assistant.d.ts +100 -0
- package/build/src/ai/assistant.js +487 -0
- package/build/src/ai/client.d.ts +49 -0
- package/build/src/ai/client.js +85 -0
- package/build/src/ai/prompt.d.ts +23 -0
- package/build/src/ai/prompt.js +83 -0
- package/build/src/ai/settings.d.ts +56 -0
- package/build/src/ai/settings.js +214 -0
- package/build/src/ai/usage.d.ts +16 -0
- package/build/src/ai/usage.js +33 -0
- package/build/src/appearance/appearance.d.ts +134 -0
- package/build/src/appearance/appearance.js +461 -0
- package/build/src/appearance/colors.d.ts +43 -0
- package/build/src/appearance/colors.js +99 -0
- package/build/src/appearance/logo.d.ts +32 -0
- package/build/src/appearance/logo.js +112 -0
- package/build/src/attachments/attachment_service.d.ts +46 -2
- package/build/src/attachments/attachment_service.js +96 -4
- package/build/src/auth/actor_store.d.ts +5 -1
- package/build/src/auth/actor_store.js +8 -4
- package/build/src/auth/conditions.d.ts +5 -0
- package/build/src/auth/conditions.js +26 -3
- package/build/src/auth/sql.js +17 -5
- package/build/src/auth/two_factor.d.ts +96 -0
- package/build/src/auth/two_factor.js +259 -0
- package/build/src/backups/archive.d.ts +52 -0
- package/build/src/backups/archive.js +362 -0
- package/build/src/backups/cloud_backups.d.ts +133 -0
- package/build/src/backups/cloud_backups.js +650 -0
- package/build/src/backups/doctor.d.ts +7 -0
- package/build/src/backups/doctor.js +55 -0
- package/build/src/backups/providers.d.ts +81 -0
- package/build/src/backups/providers.js +470 -0
- package/build/src/collaboration/assignments.d.ts +59 -2
- package/build/src/collaboration/assignments.js +196 -74
- package/build/src/collaboration/record_collaboration.d.ts +21 -4
- package/build/src/collaboration/record_collaboration.js +126 -51
- package/build/src/collaboration/shared.d.ts +24 -0
- package/build/src/collaboration/shared.js +34 -0
- package/build/src/commands/app_scaffold.d.ts +72 -0
- package/build/src/commands/app_scaffold.js +285 -0
- package/build/src/commands/capabilities.js +35 -9
- package/build/src/commands/doctor.d.ts +24 -2
- package/build/src/commands/doctor.js +81 -6
- package/build/src/commands/gap_report.d.ts +1 -1
- package/build/src/commands/gap_report.js +2 -2
- package/build/src/commands/generator.d.ts +37 -1
- package/build/src/commands/generator.js +61 -18
- package/build/src/commands/snapshot.d.ts +24 -13
- package/build/src/commands/snapshot.js +54 -14
- package/build/src/commands/source_markers.d.ts +10 -0
- package/build/src/commands/source_markers.js +29 -0
- package/build/src/core/activity.d.ts +2 -0
- package/build/src/core/activity.js +7 -1
- package/build/src/core/administrators.d.ts +38 -0
- package/build/src/core/administrators.js +145 -0
- package/build/src/core/avatar_image.d.ts +33 -0
- package/build/src/core/avatar_image.js +278 -0
- package/build/src/core/html_sanitizer.d.ts +20 -0
- package/build/src/core/html_sanitizer.js +261 -0
- package/build/src/core/like.d.ts +5 -0
- package/build/src/core/like.js +5 -0
- package/build/src/core/lookups.d.ts +80 -0
- package/build/src/core/lookups.js +319 -0
- package/build/src/core/mail_settings.d.ts +83 -0
- package/build/src/core/mail_settings.js +274 -0
- package/build/src/core/mail_test.d.ts +16 -0
- package/build/src/core/mail_test.js +81 -6
- package/build/src/core/message_templates.d.ts +15 -2
- package/build/src/core/message_templates.js +81 -11
- package/build/src/core/module_seed.js +2 -1
- package/build/src/core/notification_channels.d.ts +235 -0
- package/build/src/core/notification_channels.js +660 -0
- package/build/src/core/roles.js +26 -9
- package/build/src/core/saved_views.d.ts +8 -1
- package/build/src/core/saved_views.js +91 -26
- package/build/src/core/sequences.d.ts +32 -0
- package/build/src/core/sequences.js +97 -0
- package/build/src/core/settings.d.ts +5 -0
- package/build/src/core/settings.js +31 -3
- package/build/src/core/template_language.d.ts +61 -0
- package/build/src/core/template_language.js +141 -0
- package/build/src/core/ui_preferences.d.ts +10 -0
- package/build/src/core/ui_preferences.js +15 -1
- package/build/src/core/user_avatars.d.ts +79 -0
- package/build/src/core/user_avatars.js +186 -0
- package/build/src/core/user_invitations.d.ts +5 -1
- package/build/src/core/user_invitations.js +7 -1
- package/build/src/core/user_preferences.d.ts +36 -0
- package/build/src/core/user_preferences.js +125 -0
- package/build/src/core/users.d.ts +2 -0
- package/build/src/core/users.js +5 -3
- package/build/src/database/calendar_days.d.ts +19 -0
- package/build/src/database/calendar_days.js +36 -0
- package/build/src/database/schema.d.ts +201 -2
- package/build/src/database/schema.js +713 -59
- package/build/src/database/schema_diff.d.ts +70 -0
- package/build/src/database/schema_diff.js +190 -0
- package/build/src/events/record_mutation.d.ts +2 -1
- package/build/src/events/record_mutation.js +1 -0
- package/build/src/integrations/api_client.d.ts +37 -0
- package/build/src/integrations/api_client.js +567 -0
- package/build/src/integrations/import_adapters.d.ts +37 -0
- package/build/src/integrations/import_adapters.js +35 -0
- package/build/src/integrations/imports.d.ts +130 -16
- package/build/src/integrations/imports.js +434 -73
- package/build/src/integrations/openapi.d.ts +3 -1
- package/build/src/integrations/openapi.js +465 -31
- package/build/src/integrations/outbound.d.ts +94 -0
- package/build/src/integrations/outbound.js +276 -0
- package/build/src/integrations/print.d.ts +22 -1
- package/build/src/integrations/print.js +68 -22
- package/build/src/integrations/print_templates.d.ts +216 -0
- package/build/src/integrations/print_templates.js +1017 -0
- package/build/src/integrations/sync_jobs.d.ts +139 -0
- package/build/src/integrations/sync_jobs.js +416 -0
- package/build/src/integrations/webhooks.d.ts +12 -12
- package/build/src/integrations/webhooks.js +34 -43
- package/build/src/integrations/xlsx.d.ts +41 -0
- package/build/src/integrations/xlsx.js +519 -0
- package/build/src/languages/ar.d.ts +11 -0
- package/build/src/languages/ar.js +358 -0
- package/build/src/languages/ar_ui.d.ts +461 -0
- package/build/src/languages/ar_ui.js +464 -0
- package/build/src/languages/catalog.d.ts +66 -0
- package/build/src/languages/catalog.js +152 -0
- package/build/src/languages/en.d.ts +7 -0
- package/build/src/languages/en.js +352 -0
- package/build/src/languages/en_ui.d.ts +3 -0
- package/build/src/languages/en_ui.js +458 -0
- package/build/src/languages/validation.d.ts +26 -0
- package/build/src/languages/validation.js +60 -0
- package/build/src/lists/bulk_actions.d.ts +89 -0
- package/build/src/lists/bulk_actions.js +268 -0
- package/build/src/lists/dashboards.d.ts +138 -0
- package/build/src/lists/dashboards.js +290 -0
- package/build/src/mcp/tools.js +9 -104
- package/build/src/resource/define_resource.d.ts +18 -1
- package/build/src/resource/define_resource.js +212 -18
- package/build/src/resource/definition.d.ts +44 -0
- package/build/src/resource/definition.js +171 -0
- package/build/src/resource/registry.js +15 -4
- package/build/src/resource/types.d.ts +313 -16
- package/build/src/resource/values.d.ts +56 -1
- package/build/src/resource/values.js +237 -5
- package/build/src/services/settings.d.ts +2 -0
- package/build/src/services/settings.js +5 -1
- package/build/src/upgrade/legacy.js +2 -2
- package/build/src/workflows/calendar.d.ts +9 -0
- package/build/src/workflows/calendar.js +44 -0
- package/build/src/workflows/define_workflow.d.ts +48 -3
- package/build/src/workflows/define_workflow.js +57 -13
- package/build/src/workflows/delegations.d.ts +107 -0
- package/build/src/workflows/delegations.js +326 -0
- package/build/src/workflows/engine.d.ts +80 -4
- package/build/src/workflows/engine.js +466 -86
- package/build/src/workflows/sla.d.ts +15 -0
- package/build/src/workflows/sla.js +8 -0
- package/build/stubs/resource_contract.txt +12 -1
- package/package.json +9 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '@adonisjs/core/ace';
|
|
2
|
+
/**
|
|
3
|
+
* The `sla:` job family (ADR 044): reminds approvers before their deadline and runs
|
|
4
|
+
* each overdue step's escalation policy once. The application owns the engine wiring in
|
|
5
|
+
* `#services/workflow_sla`; the scheduler runs this every minute without overlap.
|
|
6
|
+
*/
|
|
7
|
+
export default class SlaEvaluate extends BaseCommand {
|
|
8
|
+
static commandName: string;
|
|
9
|
+
static description: string;
|
|
10
|
+
static options: {
|
|
11
|
+
startApp: boolean;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseCommand } from '@adonisjs/core/ace';
|
|
2
|
+
/**
|
|
3
|
+
* The `sla:` job family (ADR 044): reminds approvers before their deadline and runs
|
|
4
|
+
* each overdue step's escalation policy once. The application owns the engine wiring in
|
|
5
|
+
* `#services/workflow_sla`; the scheduler runs this every minute without overlap.
|
|
6
|
+
*/
|
|
7
|
+
export default class SlaEvaluate extends BaseCommand {
|
|
8
|
+
static commandName = 'sla:evaluate';
|
|
9
|
+
static description = 'Remind approvers before SLA deadlines and escalate overdue approvals';
|
|
10
|
+
static options = { startApp: true };
|
|
11
|
+
async run() {
|
|
12
|
+
const { evaluateWorkflowSla } = (await this.app.import('#services/workflow_sla'));
|
|
13
|
+
const { reminded, escalated } = await evaluateWorkflowSla();
|
|
14
|
+
this.logger.info(`SLA: ${reminded} reminders, ${escalated} escalations`);
|
|
15
|
+
}
|
|
16
|
+
}
|
package/build/commands/ui.js
CHANGED
|
@@ -10,6 +10,7 @@ import { readFile, writeFile, mkdir, access } from 'node:fs/promises';
|
|
|
10
10
|
import { dirname, join, resolve, relative, isAbsolute } from 'node:path';
|
|
11
11
|
import { spawn } from 'node:child_process';
|
|
12
12
|
import { digest } from '../src/commands/agent_assets.js';
|
|
13
|
+
import { ensureAdulaCssEntry } from './ui_css.js';
|
|
13
14
|
export default class Ui extends BaseCommand {
|
|
14
15
|
static commandName = 'adula:ui';
|
|
15
16
|
static description = 'Install reviewed RTL components through the project-owned shadcn registry';
|
|
@@ -186,8 +187,9 @@ export default class Ui extends BaseCommand {
|
|
|
186
187
|
// One CSS entry fixes layer ordering in development and production bundlers.
|
|
187
188
|
const adulaCssPath = join(root, 'inertia/css/adula.css');
|
|
188
189
|
const adulaCss = await readFile(adulaCssPath, 'utf8');
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
const entryCss = ensureAdulaCssEntry(adulaCss);
|
|
191
|
+
if (entryCss !== adulaCss)
|
|
192
|
+
await writeFile(adulaCssPath, entryCss);
|
|
191
193
|
entry.getImportDeclaration('./css/app.css')?.remove();
|
|
192
194
|
if (!entry.getImportDeclaration('./css/adula.css'))
|
|
193
195
|
entry.addImportDeclaration({ moduleSpecifier: './css/adula.css' });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CSS entry `adula:ui` keeps in `inertia/css/adula.css`: the layer order first, then the
|
|
3
|
+
* legacy application stylesheet. Formatters may rewrite quotes and spacing (prettier writes
|
|
4
|
+
* `@import './app.css';`), so detection is quote- and whitespace-agnostic and re-running the
|
|
5
|
+
* command never prepends the lines again.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ADULA_CSS_LAYERS = "@layer theme, base, legacy, components, utilities;";
|
|
8
|
+
export declare const ADULA_CSS_IMPORT = "@import \"./app.css\";";
|
|
9
|
+
export declare function ensureAdulaCssEntry(css: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CSS entry `adula:ui` keeps in `inertia/css/adula.css`: the layer order first, then the
|
|
3
|
+
* legacy application stylesheet. Formatters may rewrite quotes and spacing (prettier writes
|
|
4
|
+
* `@import './app.css';`), so detection is quote- and whitespace-agnostic and re-running the
|
|
5
|
+
* command never prepends the lines again.
|
|
6
|
+
*/
|
|
7
|
+
export const ADULA_CSS_LAYERS = '@layer theme, base, legacy, components, utilities;';
|
|
8
|
+
export const ADULA_CSS_IMPORT = '@import "./app.css";';
|
|
9
|
+
const LAYERS = /@layer\s+theme\s*,\s*base\s*,\s*legacy\s*,\s*components\s*,\s*utilities\s*;/;
|
|
10
|
+
const IMPORT = /@import\s+(["'])\.\/app\.css\1[^;]*;/;
|
|
11
|
+
export function ensureAdulaCssEntry(css) {
|
|
12
|
+
const layers = css.match(LAYERS);
|
|
13
|
+
if (IMPORT.test(css))
|
|
14
|
+
return layers ? css : `${ADULA_CSS_LAYERS}\n${css}`;
|
|
15
|
+
// A missing import goes right after the layer order, which must stay the first statement.
|
|
16
|
+
if (layers)
|
|
17
|
+
return css.replace(LAYERS, (statement) => `${statement}\n${ADULA_CSS_IMPORT}`);
|
|
18
|
+
return `${ADULA_CSS_LAYERS}\n${ADULA_CSS_IMPORT}\n${css}`;
|
|
19
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '@adonisjs/core/ace';
|
|
2
2
|
/**
|
|
3
|
-
* Second step of the 2.0 upgrade, after `npx create-
|
|
3
|
+
* Second step of the 2.0 upgrade, after `npx create-adulajs@latest upgrade` has
|
|
4
4
|
* moved the application to the `adula` package. Renames the migration history,
|
|
5
5
|
* the gap log and the managed AGENTS.md block that 1.x wrote, then runs the
|
|
6
6
|
* pending migrations. Safe to repeat.
|
|
@@ -3,7 +3,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
3
3
|
import { syncAgentAssets } from '../src/commands/agent_assets.js';
|
|
4
4
|
import { renameLegacyFiles, renameRecordedMigrations } from '../src/upgrade/rename.js';
|
|
5
5
|
/**
|
|
6
|
-
* Second step of the 2.0 upgrade, after `npx create-
|
|
6
|
+
* Second step of the 2.0 upgrade, after `npx create-adulajs@latest upgrade` has
|
|
7
7
|
* moved the application to the `adula` package. Renames the migration history,
|
|
8
8
|
* the gap log and the managed AGENTS.md block that 1.x wrote, then runs the
|
|
9
9
|
* pending migrations. Safe to repeat.
|
package/build/configure.js
CHANGED
|
@@ -75,5 +75,5 @@ export async function configure(command) {
|
|
|
75
75
|
['shieldApiClient', '@adonisjs/shield/plugins/api_client', ''],
|
|
76
76
|
])
|
|
77
77
|
await codemods.registerJapaPlugin(`${name}(${args})`, [{ module: path, isNamed: true, identifier: name }]);
|
|
78
|
-
command.logger.success('AdulaJS configured. Run migration:run,
|
|
78
|
+
command.logger.success('AdulaJS configured. Run migration:run, then ADULA_ADMIN_EMAIL=<email> node ace adula:install (it creates the first administrator when that user does not exist).');
|
|
79
79
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createTwoFactorSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class TwoFactor extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createTwoFactorSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createImportModesSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class ImportModes extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createImportModesSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createSyncJobsSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class SyncJobs extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createSyncJobsSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createNotificationChannelsSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class NotificationChannels extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createNotificationChannelsSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createChannelConfirmationsSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class ChannelConfirmations extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createChannelConfirmationsSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createImportLeasesSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class ImportLeases extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createImportLeasesSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createWorkflowDelegationSlaSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class WorkflowDelegationSla extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createWorkflowDelegationSlaSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createPrintTemplatesSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class PrintTemplates extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createPrintTemplatesSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createCommentNotificationsSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class CommentNotifications extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createCommentNotificationsSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createCloudBackupsSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class CloudBackups extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createCloudBackupsSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createAssistantSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class AiAssistant extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createAssistantSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
2
|
+
import { createAppearanceSchema } from '../../src/database/schema.js';
|
|
3
|
+
export default class Appearance extends BaseSchema {
|
|
4
|
+
async up() {
|
|
5
|
+
await createAppearanceSchema(this.db.getWriteClient());
|
|
6
|
+
}
|
|
7
|
+
async down() {
|
|
8
|
+
throw new Error('AdulaJS migrations are additive. Restore a tested backup instead of rolling back.');
|
|
9
|
+
}
|
|
10
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { defineResource, columnName } from './src/resource/define_resource.js';
|
|
1
|
+
export { defineResource, columnName, joinTable } from './src/resource/define_resource.js';
|
|
2
2
|
export { configure } from './configure.js';
|
|
3
3
|
export { withAdulaDatabase } from './src/database/configure.js';
|
|
4
4
|
export { createResourceController } from './src/admin/controller.js';
|
|
@@ -14,19 +14,55 @@ export { accessibleBy, authorizationSql, conditionSql } from './src/auth/sql.js'
|
|
|
14
14
|
export { ACTOR_ID, resolveActorConditions } from './src/auth/conditions.js';
|
|
15
15
|
export { ResourceService, canQueryField } from './src/admin/resource_service.js';
|
|
16
16
|
export type { AggregateOptions, AggregateRow, ListOptions } from './src/admin/resource_service.js';
|
|
17
|
+
export { EXPORT_ROW_LIMIT, guardFormula } from './src/admin/resource_service.js';
|
|
18
|
+
export type { CsvExport, XlsxExport, ExportOptions, ListFilterScalar, ListFilterValue, } from './src/admin/resource_service.js';
|
|
19
|
+
export { BulkActions, defineBulkActions, BULK_ID_LIMIT } from './src/lists/bulk_actions.js';
|
|
20
|
+
export type { BulkActionDefinition, BulkActionOption, BulkActionSet, BulkActionsOptions, BulkFailure, BulkRequest, BulkResult, } from './src/lists/bulk_actions.js';
|
|
21
|
+
export { Dashboards, defineDashboard } from './src/lists/dashboards.js';
|
|
22
|
+
export type { DashboardDefinition, DashboardFormat, DashboardGroupRow, DashboardMeasure, DashboardResult, DashboardSummary, DashboardWidgetDefinition, DashboardWidgetResult, OverviewBuiltin, OverviewLayout, OverviewState, OverviewWidget, } from './src/lists/dashboards.js';
|
|
17
23
|
export { serialize, writableInput, selectedFields } from './src/admin/contracts.js';
|
|
18
24
|
export { AdulaError } from './src/admin/errors.js';
|
|
19
|
-
export {
|
|
25
|
+
export { BASE_LANGUAGE, registerLanguage, registeredLanguages, enabledLanguages, resolveLanguage, languageDirection, translate, localizeText, messageKeyOf, clientMessages, runWithLanguage, currentLanguage, labelText, } from './src/languages/catalog.js';
|
|
26
|
+
export type { MessageCatalog, MessageParams, TextDirection, LanguageInfo, LanguageOptions, } from './src/languages/catalog.js';
|
|
27
|
+
export { arabicMessages } from './src/languages/ar.js';
|
|
28
|
+
export { englishMessages } from './src/languages/en.js';
|
|
29
|
+
export { CatalogMessagesProvider, installCatalogMessages } from './src/languages/validation.js';
|
|
30
|
+
export { TwoFactor, normalizeRecoveryCode, RECOVERY_CODE_COUNT, TWO_FACTOR_PERIOD, TWO_FACTOR_DIGITS, TWO_FACTOR_WINDOW, TWO_FACTOR_UNREADABLE, } from './src/auth/two_factor.js';
|
|
31
|
+
export type { TwoFactorStatus, TwoFactorEnrolment, TwoFactorResult, TwoFactorOptions, TwoFactorVerifyOptions, } from './src/auth/two_factor.js';
|
|
32
|
+
export { createCoreSchema, createResourceTable, createAttachmentsSchema, createSavedViewsSchema, createCollaborationSchema, createAssignmentsSchema, createMessagingSchema, createWebhooksSchema, createImportsSchema, createWorkflowSchema, createManagedAssignmentsSchema, createRoleKeysSchema, createNotificationTargetsSchema, createUploadGrantsSchema, createInboundWebhooksSchema, createTwoFactorSchema, createWorkflowDelegationSlaSchema, resourceSchema, alterResourceTable, fieldColumnType, } from './src/database/schema.js';
|
|
33
|
+
export type { ResourceSchema, ResourceColumn, ResourceUniqueIndex, ResourceJoinTable, ResourceAddition, ResourceTableDefinition, } from './src/database/schema.js';
|
|
34
|
+
export { schemaDrift, resourceAddition, describeDrift } from './src/database/schema_diff.js';
|
|
35
|
+
export type { SchemaDrift } from './src/database/schema_diff.js';
|
|
36
|
+
export { definitionSchema, definitionValidator, resourceValidator, isVisible, applyVisibility, } from './src/resource/definition.js';
|
|
37
|
+
export { FieldValueError, canonicalDecimal, decimalShape, isMultipleAttachment, attachmentLimit, MULTIPLE_ATTACHMENT_LIMIT, MULTIPLE_ATTACHMENT_MAX, } from './src/resource/values.js';
|
|
20
38
|
export { defineWorkflow, nextStep } from './src/workflows/define_workflow.js';
|
|
21
|
-
export type { WorkflowDefinition, WorkflowInput, WorkflowStep, WorkflowEvent, StepContext, Recipients, DecisionOutcome, } from './src/workflows/define_workflow.js';
|
|
22
|
-
export { WorkflowEngine, workflowListeners } from './src/workflows/engine.js';
|
|
23
|
-
export type { WorkflowRun, WorkflowRunStatus, WorkflowOptions, WorkflowDecisionForm, } from './src/workflows/engine.js';
|
|
39
|
+
export type { WorkflowDefinition, WorkflowInput, WorkflowStep, WorkflowEvent, StepContext, Recipients, DecisionOutcome, StepSla, SlaEscalation, EscalationTarget, } from './src/workflows/define_workflow.js';
|
|
40
|
+
export { WorkflowEngine, workflowListeners, slaState } from './src/workflows/engine.js';
|
|
41
|
+
export type { WorkflowRun, WorkflowRunStatus, WorkflowOptions, WorkflowDecisionForm, SlaState, WorkflowSlaStatus, SlaEvaluation, } from './src/workflows/engine.js';
|
|
42
|
+
export { WorkflowDelegations } from './src/workflows/delegations.js';
|
|
43
|
+
export type { WorkflowDelegation, WorkflowDelegationInput, WorkflowDelegationOptions, } from './src/workflows/delegations.js';
|
|
24
44
|
export { ImportBatches, importCell, IMPORT_ROW_LIMIT } from './src/integrations/imports.js';
|
|
25
45
|
export type { ImportBatch, ImportStatus, ImportTarget, ActorSource, } from './src/integrations/imports.js';
|
|
46
|
+
export type { ImportBatchRecord, ImportBatchStatus, ImportTargetField, ImportMode, ImportReportRow, ImportBatchesOptions, ImportCreateInput, ImportStartOptions, } from './src/integrations/imports.js';
|
|
47
|
+
export { csvImportAdapter, importFile } from './src/integrations/import_adapters.js';
|
|
48
|
+
export { guardXlsx, readXlsxTable, xlsxImportAdapter, XLSX_LIMITS, XLSX_MIME_TYPE, } from './src/integrations/xlsx.js';
|
|
49
|
+
export type { GuardedXlsx, XlsxLimits } from './src/integrations/xlsx.js';
|
|
50
|
+
export type { ImportAdapter, ImportFile, ImportTable } from './src/integrations/import_adapters.js';
|
|
51
|
+
export { createImportModesSchema, createImportLeasesSchema } from './src/database/schema.js';
|
|
26
52
|
export { openApiDocument } from './src/integrations/openapi.js';
|
|
27
|
-
export {
|
|
53
|
+
export { apiClientSource, apiClientDeclarations } from './src/integrations/api_client.js';
|
|
54
|
+
export type { ApiClientDocument, ApiClientOptions } from './src/integrations/api_client.js';
|
|
55
|
+
export { renderPrintHtml, htmlToPdf, imageDataUri, PRINT_LOGO_LIMIT, } from './src/integrations/print.js';
|
|
28
56
|
export type { PrintIdentity, PrintInput } from './src/integrations/print.js';
|
|
57
|
+
export { PrintTemplates, DEFAULT_PRINT_TEMPLATE, PRINT_HELPERS, PRINT_PAPERS, PRINT_ORIENTATIONS, codeTemplateVersion, renderTemplateDocument, printableGroups, PRINT_LINE_LIMIT, } from './src/integrations/print_templates.js';
|
|
58
|
+
export type { PrintTemplateDetail, PrintTemplateDraft, PrintTemplateInput, PrintTemplateOption, PrintTemplateSource, PrintTemplateSummary, PrintTemplateVersion, PrintedDocument, PrintOptions, PrintSource, PrintLayout, } from './src/integrations/print_templates.js';
|
|
59
|
+
export { sanitizePrintHtml } from './src/core/html_sanitizer.js';
|
|
60
|
+
export { parseTemplate } from './src/core/template_language.js';
|
|
61
|
+
export type { TemplateNode, TemplateRef } from './src/core/template_language.js';
|
|
62
|
+
export { createPrintTemplatesSchema } from './src/database/schema.js';
|
|
29
63
|
export { Webhooks, signWebhook, WEBHOOK_MAX_ATTEMPTS } from './src/integrations/webhooks.js';
|
|
64
|
+
export { createOutboundPoster, createOutboundRequester, OutboundResponseTooLargeError, isBlockedAddress, outboundErrorCategory, } from './src/integrations/outbound.js';
|
|
65
|
+
export type { OutboundOptions, OutboundRequest, OutboundTarget, OutboundErrorCategory, } from './src/integrations/outbound.js';
|
|
30
66
|
export { InboundWebhooks, inboundEventName, INBOUND_BODY_LIMIT, INBOUND_RETENTION_DAYS, } from './src/integrations/inbound_webhooks.js';
|
|
31
67
|
export type { InboundSource, InboundSourceInput, InboundDelivery, InboundReceipt, } from './src/integrations/inbound_webhooks.js';
|
|
32
68
|
export type { SecretBox, Webhook, WebhookDelivery, WebhookOptions, HttpPoster, } from './src/integrations/webhooks.js';
|
|
@@ -37,17 +73,19 @@ export type { Assignment, AssignmentPage, AssignmentOptions, CloseNotePolicy, As
|
|
|
37
73
|
export { RecordCollaboration, followerListeners } from './src/collaboration/record_collaboration.js';
|
|
38
74
|
export type { ActorLoader, CommentEntry, FieldChangeEntry, RecordCollaborationState, MentionCandidate, } from './src/collaboration/record_collaboration.js';
|
|
39
75
|
export type { FieldChange } from './src/events/record_mutation.js';
|
|
40
|
-
export { registerUpload, findAttachment, loadAttachments, claimAttachment, releaseAttachment, summarizeAttachment, attachmentUrl, isAttachmentId, isRelativeDiskPath, attachmentPolicy, pendingUploadCount, staleUploads, forgetUpload, DEFAULT_ATTACHMENT_EXTENSIONS, PENDING_UPLOAD_LIMIT, UNBOUND_UPLOAD_TTL_MS, } from './src/attachments/attachment_service.js';
|
|
41
|
-
export type { AttachmentRecord, AttachmentSummary, UploadInput, ClaimInput, } from './src/attachments/attachment_service.js';
|
|
76
|
+
export { registerUpload, findAttachment, loadAttachments, claimAttachment, releaseAttachment, summarizeAttachment, attachmentUrl, isAttachmentId, isRelativeDiskPath, attachmentPolicy, attachmentPreview, attachmentHeaders, pendingUploadCount, staleUploads, forgetUpload, DEFAULT_ATTACHMENT_EXTENSIONS, PENDING_UPLOAD_LIMIT, UNBOUND_UPLOAD_TTL_MS, } from './src/attachments/attachment_service.js';
|
|
77
|
+
export type { AttachmentRecord, AttachmentSummary, AttachmentPreview, AttachmentPreviewOptions, UploadInput, ClaimInput, } from './src/attachments/attachment_service.js';
|
|
42
78
|
export { grantUpload, redeemUploadGrant, pruneUploadGrants, UPLOAD_GRANT_MAX_TTL_MS, } from './src/attachments/upload_grants.js';
|
|
43
79
|
export type { UploadGrantInput, UploadGrant, RedeemedUploadGrant, } from './src/attachments/upload_grants.js';
|
|
44
80
|
export { migrateStorage } from './src/attachments/storage_migrate.js';
|
|
45
81
|
export type { StorageDisk, StorageMigrationOptions, StorageMigrationResult, } from './src/attachments/storage_migrate.js';
|
|
46
82
|
export { diagnoseAttachments } from './src/attachments/doctor.js';
|
|
47
|
-
export { Settings, sequence, notify } from './src/services/settings.js';
|
|
83
|
+
export { Settings, sequence, formatSequence, notify } from './src/services/settings.js';
|
|
48
84
|
export type { NotificationTarget } from './src/services/settings.js';
|
|
49
85
|
export { uiPreferences, validateUiPreferences, UI_PREFERENCES_KEY, DEFAULT_UI_PREFERENCES, } from './src/core/ui_preferences.js';
|
|
50
|
-
export type { UiPreferences, CalendarSystem, CalendarPreference, } from './src/core/ui_preferences.js';
|
|
86
|
+
export type { UiPreferences, CalendarSystem, CalendarPreference, DigitsPreference, NavigationLayout, } from './src/core/ui_preferences.js';
|
|
87
|
+
export { UserPreferences, definePreference, isPreferenceSetting, PREFERENCE_PREFIX, PREFERENCE_MAX_BYTES, } from './src/core/user_preferences.js';
|
|
88
|
+
export type { PreferenceDefinition } from './src/core/user_preferences.js';
|
|
51
89
|
export { moveOrgUnit } from './src/org/org_service.js';
|
|
52
90
|
export { publishOutbox, consumeEvent } from './src/events/outbox.js';
|
|
53
91
|
export type { Jobs, DomainEvent, Listener } from './src/events/outbox.js';
|
|
@@ -55,6 +93,12 @@ export { AdonisJobs } from './src/events/adonis_jobs.js';
|
|
|
55
93
|
export { recordMutation } from './src/events/record_mutation.js';
|
|
56
94
|
export { assessBackup, verifyBackup } from './src/services/backup.js';
|
|
57
95
|
export type { BackupObject, BackupStatus } from './src/services/backup.js';
|
|
96
|
+
export { BACKUP_ARCHIVE_EXTENSION, BACKUP_ARCHIVE_FILES, BackupArchiveError, createOpenStream, createSealStream, openBackupArchive, parseBackupKey, sealBackupArchive, } from './src/backups/archive.js';
|
|
97
|
+
export type { BackupArchiveErrorCode } from './src/backups/archive.js';
|
|
98
|
+
export { BackupProviderError, googleDriveProvider, oneDriveProvider, } from './src/backups/providers.js';
|
|
99
|
+
export type { BackupProvider, BackupProviderClient, BackupProviderErrorCategory, BackupProviderOptions, GoogleDriveEndpoints, OneDriveEndpoints, } from './src/backups/providers.js';
|
|
100
|
+
export { BACKUP_FAILURE_MESSAGES, CloudBackups } from './src/backups/cloud_backups.js';
|
|
101
|
+
export type { BackupConnection, BackupKind, BackupRun, BackupRunStatus, BackupSchedule, BackupTrigger, CloudBackupStatus, CloudBackupsOptions, } from './src/backups/cloud_backups.js';
|
|
58
102
|
export { ActivityAdmin, logActivity } from './src/core/activity.js';
|
|
59
103
|
export type { ActivityEntry, ActivityFilters, ActivityPage, ActivityRow, } from './src/core/activity.js';
|
|
60
104
|
export { RolesAdmin, ALL_SUBJECT_LABEL } from './src/core/roles.js';
|
|
@@ -62,6 +106,10 @@ export { seedModules } from './src/core/module_seed.js';
|
|
|
62
106
|
export type { ModuleSeedResult } from './src/core/module_seed.js';
|
|
63
107
|
export type { RoleSummary, RoleDetail, RoleRule, RuleInput, RoleMatrix, MatrixSubject, MatrixField, } from './src/core/roles.js';
|
|
64
108
|
export { UsersAdmin } from './src/core/users.js';
|
|
109
|
+
export { UserAvatars, avatarUrl, avatarUrlFor, avatarVersionColumn, avatarHeaders, } from './src/core/user_avatars.js';
|
|
110
|
+
export type { AvatarRecord, RemovedAvatarFile } from './src/core/user_avatars.js';
|
|
111
|
+
export { prepareAvatarImage, AVATAR_LIMITS } from './src/core/avatar_image.js';
|
|
112
|
+
export type { AvatarImage } from './src/core/avatar_image.js';
|
|
65
113
|
export { UserInvitations, type InvitationDelivery } from './src/core/user_invitations.js';
|
|
66
114
|
export type { UserSummary, UserPage, UserRoleAssignment, UserOrgUnit } from './src/core/users.js';
|
|
67
115
|
export { OrgUnitsAdmin } from './src/core/org_units.js';
|
|
@@ -72,9 +120,37 @@ export { NotificationsAdmin } from './src/core/notifications.js';
|
|
|
72
120
|
export type { Notification, NotificationPage } from './src/core/notifications.js';
|
|
73
121
|
export { SettingsAdmin, isProtectedSetting, parseSettingValue, SETTING_SCOPES, PROTECTED_SETTING_KEYS, } from './src/core/settings.js';
|
|
74
122
|
export type { SettingScope, SettingRow, SettingInput } from './src/core/settings.js';
|
|
123
|
+
export { LookupsAdmin } from './src/core/lookups.js';
|
|
124
|
+
export type { LookupFieldUse, LookupGroupSummary, LookupValue, LookupInput, LookupUpdate, } from './src/core/lookups.js';
|
|
125
|
+
export { SequencesAdmin } from './src/core/sequences.js';
|
|
126
|
+
export type { SequenceRow } from './src/core/sequences.js';
|
|
75
127
|
export { runtimeHealth, isBackupStale, backupStale, heartbeat, HEARTBEAT_MAX_AGE_MS, BACKUP_MAX_AGE_MS, } from './src/core/health.js';
|
|
76
128
|
export type { RuntimeHealth, HeartbeatStatus, QueueSnapshot, QueueCounts, FailedJob, } from './src/core/health.js';
|
|
77
|
-
export { MailDeliveryTest, MAIL_TEST_KEY, type MailTestState } from './src/core/mail_test.js';
|
|
129
|
+
export { MailDeliveryTest, MAIL_TEST_KEY, classifyMailFailure, type MailFailure, type MailFailureReason, type MailTestState, } from './src/core/mail_test.js';
|
|
78
130
|
export { InitialSetup, type SetupCheck } from './src/core/setup.js';
|
|
131
|
+
export { administratorExists, grantInstallAdministrator, resolveInstallAdministrator, } from './src/core/administrators.js';
|
|
79
132
|
export { ADULA_VERSION } from './src/version.js';
|
|
80
133
|
export { capabilityCatalog, SERVICES as CAPABILITY_SERVICES, FIELD_TYPES, WORKFLOW_STEPS, } from './src/commands/capabilities.js';
|
|
134
|
+
export { createSyncJobsSchema } from './src/database/schema.js';
|
|
135
|
+
export { defineSyncJob, SyncJobs, SyncJobError, syncErrorCategory, SYNC_DEFAULT_TIMEOUT_MS, } from './src/integrations/sync_jobs.js';
|
|
136
|
+
export type { SyncJobDefinition, SyncJobInput, SyncJobContext, SyncJobSummary, SyncJobsOptions, SyncSaveOptions, SyncRun, SyncRunStatus, SyncTrigger, SyncErrorCategory, SyncStats, SyncLogger, } from './src/integrations/sync_jobs.js';
|
|
137
|
+
export { createNotificationChannelsSchema, createChannelConfirmationsSchema, } from './src/database/schema.js';
|
|
138
|
+
export { NotificationChannels, HttpChannelSettings, ChannelDeliveryError, inAppChannel, mailChannel, httpNotificationChannel, phoneAddress, IN_APP_CHANNEL, MAIL_CHANNEL, CHANNEL_MAX_ATTEMPTS, HTTP_CHANNEL_SETTING_KEY, HTTP_CHANNEL_KINDS, CHANNEL_KIND_LABELS, } from './src/core/notification_channels.js';
|
|
139
|
+
export type { NotificationChannel, ChannelLabel, ChannelMessage, ChannelRecipient, ChannelContext, ChannelDelivery, ChannelPreference, ChannelPreferenceInput, ChannelDispatchResult, HttpChannelOptions, HttpChannelKind, HttpChannelConfig, HttpChannelInput, } from './src/core/notification_channels.js';
|
|
140
|
+
export { isSealedSetting } from './src/core/settings.js';
|
|
141
|
+
export { parseResourceToolArgs, runResourceTool, resourceToolError, RESOURCE_READ_SCHEMA, RESOURCE_WRITE_SCHEMA, } from './src/admin/resource_tools.js';
|
|
142
|
+
export type { ResourceToolCall, ResourceToolError } from './src/admin/resource_tools.js';
|
|
143
|
+
export { Assistant } from './src/ai/assistant.js';
|
|
144
|
+
export type { AssistantProposal, AssistantTurnResult, AssistantStatus } from './src/ai/assistant.js';
|
|
145
|
+
export { AssistantSettings, ASSISTANT_LIMITS } from './src/ai/settings.js';
|
|
146
|
+
export { MailSettings, MAIL_SETTINGS_KEY } from './src/core/mail_settings.js';
|
|
147
|
+
export type { MailSettingsView, MailSettingsInput, MailRuntime, MailSecurity, } from './src/core/mail_settings.js';
|
|
148
|
+
export type { AssistantSettingsView, AssistantSettingsInput } from './src/ai/settings.js';
|
|
149
|
+
export { createChatClient, AssistantError } from './src/ai/client.js';
|
|
150
|
+
export type { ChatClient, ChatRequest, ChatCompletion } from './src/ai/client.js';
|
|
151
|
+
export { Appearance, APPEARANCE_LOGO_OWNER, APPEARANCE_SETTING_KEY, APPEARANCE_TEXT_LIMITS, BASE_LOGO_RECORD, dateIn, } from './src/appearance/appearance.js';
|
|
152
|
+
export type { AppearanceIdentity, AppearanceLogo, AppearanceOccasion, RemovedLogoFile, ResolvedAppearance, } from './src/appearance/appearance.js';
|
|
153
|
+
export { checkPrimaryColor, contrast, derivePrimaryTheme, normalizeColor, WCAG_AA, } from './src/appearance/colors.js';
|
|
154
|
+
export type { ContrastCheck, DerivedTheme, ThemeColors } from './src/appearance/colors.js';
|
|
155
|
+
export { LOGO_LIMITS, detectLogoType, logoHeaders, prepareLogoImage, } from './src/appearance/logo.js';
|
|
156
|
+
export type { LogoImage, LogoType } from './src/appearance/logo.js';
|