@antelopejs/dms 0.15.1 → 0.16.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/CHANGELOG.md +19 -0
- package/README.md +36 -26
- package/bin/control/base.mjs +9 -4
- package/bin/control/browser-client.mjs +24 -5
- package/bin/control/browser-wire.mjs +41 -0
- package/bin/control/browser-wire.test.mjs +96 -0
- package/bin/control/browser.mjs +78 -27
- package/bin/control/commands-stack.mjs +58 -8
- package/bin/control/commands-verify.mjs +47 -1
- package/bin/control/doctor.mjs +49 -4
- package/bin/control/failure.mjs +9 -0
- package/bin/control/journey.mjs +158 -30
- package/bin/control/journey.test.mjs +61 -0
- package/bin/control/json.mjs +229 -0
- package/bin/control/json.test.mjs +130 -0
- package/bin/control/mail.mjs +57 -7
- package/bin/control/mail.test.mjs +55 -0
- package/bin/control/mongo.mjs +205 -27
- package/bin/control/mongo.test.mjs +298 -0
- package/bin/control/options.mjs +33 -0
- package/bin/control/processes.mjs +24 -2
- package/bin/control/renderer.mjs +39 -0
- package/bin/control/renderer.test.mjs +324 -0
- package/bin/control/run-state.mjs +119 -6
- package/bin/control/run-state.test.mjs +171 -0
- package/bin/control/session.mjs +30 -14
- package/bin/control/stack.mjs +95 -24
- package/bin/control/tab.mjs +117 -18
- package/bin/control/verify/behaviour.mjs +44 -6
- package/bin/control/verify/behaviour.test.mjs +130 -22
- package/bin/control/verify/decode.mjs +220 -0
- package/bin/control/verify/decode.test.mjs +245 -0
- package/bin/control/verify/doors.mjs +1 -1
- package/bin/control/verify/doors.test.mjs +40 -0
- package/bin/control/verify/emit.mjs +135 -9
- package/bin/control/verify/formal.mjs +61 -10
- package/bin/control/verify/formal.test.mjs +19 -3
- package/bin/control/verify/judgement.mjs +22 -3
- package/bin/control/verify/map.mjs +25 -5
- package/bin/control/verify/publish.mjs +20 -14
- package/bin/control/verify/seeded.mjs +65 -16
- package/bin/control/verify/skill.mjs +27 -6
- package/bin/control/verify/types.mjs +29 -0
- package/bin/control/verify/verdict.mjs +72 -7
- package/bin/dms-control.mjs +8 -28
- package/checks/api-error-presentation.d.mts +61 -0
- package/dist/attachments/access.js +1 -1
- package/dist/attachments/access.js.map +1 -1
- package/dist/attachments/fields.d.ts +2 -2
- package/dist/attachments/fields.js +26 -13
- package/dist/attachments/fields.js.map +1 -1
- package/dist/attachments/index.d.ts +1 -0
- package/dist/attachments/index.js +1 -0
- package/dist/attachments/index.js.map +1 -1
- package/dist/attachments/read.js.map +1 -1
- package/dist/attachments/save.d.ts +1 -1
- package/dist/attachments/save.js +49 -17
- package/dist/attachments/save.js.map +1 -1
- package/dist/attachments/table-view.d.ts +1 -2
- package/dist/attachments/table-view.js +23 -13
- package/dist/attachments/table-view.js.map +1 -1
- package/dist/automation/events.d.ts +10 -10
- package/dist/automation/index.js +3 -4
- package/dist/automation/index.js.map +1 -1
- package/dist/automation/send-notification.d.ts +2 -2
- package/dist/automation/send-notification.js +4 -6
- package/dist/automation/send-notification.js.map +1 -1
- package/dist/crons/cleanup-user-invites.js.map +1 -1
- package/dist/crons/sweep-expired-sessions.js.map +1 -1
- package/dist/crons/sweep-stale-exports.js.map +1 -1
- package/dist/db/guard-row.d.ts +2 -3
- package/dist/db/guard-row.js +1 -2
- package/dist/db/guard-row.js.map +1 -1
- package/dist/db/models/attachments.model.d.ts +7 -5
- package/dist/db/models/setupToken.model.d.ts +7 -5
- package/dist/db/models/signInAttempts.model.d.ts +7 -5
- package/dist/db/models/systemState.model.d.ts +7 -5
- package/dist/db/models/userEmailChanges.model.d.ts +7 -5
- package/dist/db/models/userKnownDevices.model.d.ts +7 -5
- package/dist/db/models/userNotificationPreferences.model.d.ts +7 -5
- package/dist/db/models/userNotifications.model.d.ts +9 -6
- package/dist/db/models/userNotifications.model.js.map +1 -1
- package/dist/dev/module-update-notifications.js.map +1 -1
- package/dist/hooks/internal/sign-in-monitor.js +6 -6
- package/dist/hooks/internal/sign-in-monitor.js.map +1 -1
- package/dist/implementations/dms/page/controller.d.ts +2 -2
- package/dist/implementations/dms/page/controller.js +3 -1
- package/dist/implementations/dms/page/controller.js.map +1 -1
- package/dist/implementations/dms/page/dynamic-menu.js +3 -2
- package/dist/implementations/dms/page/dynamic-menu.js.map +1 -1
- package/dist/implementations/dms/page/notifications.d.ts +6 -2
- package/dist/implementations/dms/page/notifications.js +1 -0
- package/dist/implementations/dms/page/notifications.js.map +1 -1
- package/dist/implementations/dms/page/preview-pages.js +6 -3
- package/dist/implementations/dms/page/preview-pages.js.map +1 -1
- package/dist/implementations/dms/page/registry.js +10 -4
- package/dist/implementations/dms/page/registry.js.map +1 -1
- package/dist/implementations/dms/permissions.js +12 -12
- package/dist/implementations/dms/permissions.js.map +1 -1
- package/dist/implementations/dms-base/bulk-selection.d.ts +3 -4
- package/dist/implementations/dms-base/bulk-selection.js +18 -6
- package/dist/implementations/dms-base/bulk-selection.js.map +1 -1
- package/dist/implementations/dms-base/filter-tokens.js.map +1 -1
- package/dist/implementations/dms-base/footer-summary.js +44 -27
- package/dist/implementations/dms-base/footer-summary.js.map +1 -1
- package/dist/implementations/dms-base/row-rule-operand.d.ts +6 -0
- package/dist/implementations/dms-base/row-rule-operand.js +41 -0
- package/dist/implementations/dms-base/row-rule-operand.js.map +1 -0
- package/dist/implementations/dms-base/search-route.d.ts +9 -13
- package/dist/implementations/dms-base/search-route.js +7 -6
- package/dist/implementations/dms-base/search-route.js.map +1 -1
- package/dist/implementations/dms-base/services.d.ts +1 -0
- package/dist/implementations/dms-base/services.js +1 -0
- package/dist/implementations/dms-base/services.js.map +1 -1
- package/dist/implementations/dms-base/table-view.d.ts +5 -6
- package/dist/implementations/dms-base/table-view.js +17 -6
- package/dist/implementations/dms-base/table-view.js.map +1 -1
- package/dist/implementations/dms-html-render/index.js +16 -6
- package/dist/implementations/dms-html-render/index.js.map +1 -1
- package/dist/implementations/dms-notifications/delivery-guard.d.ts +3 -2
- package/dist/implementations/dms-notifications/delivery-guard.js.map +1 -1
- package/dist/implementations/dms-notifications/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pages/public/preview/block-types.d.ts +1 -2
- package/dist/pages/public/preview/block-types.js.map +1 -1
- package/dist/pages/settings/overview/account-summary.js +4 -1
- package/dist/pages/settings/overview/account-summary.js.map +1 -1
- package/dist/pages/settings/users/account-activity-feed.js +3 -2
- package/dist/pages/settings/users/account-activity-feed.js.map +1 -1
- package/dist/pages/settings/users/account-credentials.d.ts +1 -1
- package/dist/pages/settings/users/account-credentials.js +1 -2
- package/dist/pages/settings/users/account-credentials.js.map +1 -1
- package/dist/pages/settings/users/account-data-store.d.ts +1 -1
- package/dist/pages/settings/users/account-data-store.js +1 -3
- package/dist/pages/settings/users/account-data-store.js.map +1 -1
- package/dist/pages/settings/users/email-change.d.ts +2 -2
- package/dist/pages/settings/users/email-change.js +2 -3
- package/dist/pages/settings/users/email-change.js.map +1 -1
- package/dist/pages/settings/users/invite-extension-routes.d.ts +2 -2
- package/dist/pages/settings/users/invite-extension-routes.js +11 -4
- package/dist/pages/settings/users/invite-extension-routes.js.map +1 -1
- package/dist/pages/settings/users/invites.d.ts +2 -2
- package/dist/pages/settings/users/member-invite-batch.d.ts +2 -2
- package/dist/pages/settings/users/member-invite-batch.js +7 -3
- package/dist/pages/settings/users/member-invite-batch.js.map +1 -1
- package/dist/pages/settings/users/member-roles-field.js +1 -4
- package/dist/pages/settings/users/member-roles-field.js.map +1 -1
- package/dist/pages/settings/users/members.d.ts +2 -3
- package/dist/pages/settings/users/members.js.map +1 -1
- package/dist/pages/settings/users/notifications.d.ts +2 -3
- package/dist/pages/settings/users/notifications.js +2 -1
- package/dist/pages/settings/users/notifications.js.map +1 -1
- package/dist/pages/settings/users/profile-helpers.d.ts +0 -1
- package/dist/pages/settings/users/profile-helpers.js +0 -17
- package/dist/pages/settings/users/profile-helpers.js.map +1 -1
- package/dist/pages/settings/users/profile.d.ts +3 -4
- package/dist/pages/settings/users/profile.js +12 -12
- package/dist/pages/settings/users/profile.js.map +1 -1
- package/dist/pages/settings/users/region.d.ts +3 -4
- package/dist/pages/settings/users/region.js.map +1 -1
- package/dist/pages/settings/users/regional-preferences.d.ts +8 -1
- package/dist/pages/settings/users/regional-preferences.js +10 -6
- package/dist/pages/settings/users/regional-preferences.js.map +1 -1
- package/dist/pages/settings/users/role-preview.js +3 -2
- package/dist/pages/settings/users/role-preview.js.map +1 -1
- package/dist/pages/settings/users/roles.d.ts +4 -5
- package/dist/pages/settings/users/roles.js.map +1 -1
- package/dist/pages/settings/users/security.d.ts +9 -12
- package/dist/pages/settings/users/security.js +11 -9
- package/dist/pages/settings/users/security.js.map +1 -1
- package/dist/pages/settings/users/two-factor-operations.d.ts +7 -7
- package/dist/pages/settings/users/two-factor-operations.js +5 -7
- package/dist/pages/settings/users/two-factor-operations.js.map +1 -1
- package/dist/realtime/broker.js.map +1 -1
- package/dist/realtime/heartbeat.js.map +1 -1
- package/dist/realtime/redis-broker.js.map +1 -1
- package/dist/realtime/sessions.js.map +1 -1
- package/dist/realtime/sse.js +1 -2
- package/dist/realtime/sse.js.map +1 -1
- package/dist/routes/auth/forgot-password.d.ts +1 -1
- package/dist/routes/auth/forgot-password.js +1 -3
- package/dist/routes/auth/forgot-password.js.map +1 -1
- package/dist/routes/auth/login.d.ts +1 -1
- package/dist/routes/auth/login.js +1 -2
- package/dist/routes/auth/login.js.map +1 -1
- package/dist/routes/auth/logout.d.ts +1 -1
- package/dist/routes/auth/logout.js +1 -2
- package/dist/routes/auth/logout.js.map +1 -1
- package/dist/routes/auth/oauth/providers.js +30 -6
- package/dist/routes/auth/oauth/providers.js.map +1 -1
- package/dist/routes/auth/oauth/state.js +8 -5
- package/dist/routes/auth/oauth/state.js.map +1 -1
- package/dist/routes/auth/oauth/token-exchange.js +8 -1
- package/dist/routes/auth/oauth/token-exchange.js.map +1 -1
- package/dist/routes/auth/refresh.d.ts +1 -1
- package/dist/routes/auth/refresh.js +1 -2
- package/dist/routes/auth/refresh.js.map +1 -1
- package/dist/routes/auth/request-2fa-email.d.ts +1 -1
- package/dist/routes/auth/request-2fa-email.js +1 -2
- package/dist/routes/auth/request-2fa-email.js.map +1 -1
- package/dist/routes/auth/reset-password.d.ts +1 -1
- package/dist/routes/auth/reset-password.js +1 -3
- package/dist/routes/auth/reset-password.js.map +1 -1
- package/dist/routes/auth/session-handoff.d.ts +1 -1
- package/dist/routes/auth/session-handoff.js +1 -2
- package/dist/routes/auth/session-handoff.js.map +1 -1
- package/dist/routes/auth/signup.d.ts +1 -1
- package/dist/routes/auth/signup.js +1 -2
- package/dist/routes/auth/signup.js.map +1 -1
- package/dist/routes/auth/switch-tenant.d.ts +2 -3
- package/dist/routes/auth/switch-tenant.js +3 -2
- package/dist/routes/auth/switch-tenant.js.map +1 -1
- package/dist/routes/auth/validate-forgot-password-token.d.ts +1 -1
- package/dist/routes/auth/validate-forgot-password-token.js +1 -3
- package/dist/routes/auth/validate-forgot-password-token.js.map +1 -1
- package/dist/routes/auth/validate-invite-token.d.ts +1 -1
- package/dist/routes/auth/validate-invite-token.js +1 -3
- package/dist/routes/auth/validate-invite-token.js.map +1 -1
- package/dist/routes/auth/verify-2fa.d.ts +1 -1
- package/dist/routes/auth/verify-2fa.js +1 -2
- package/dist/routes/auth/verify-2fa.js.map +1 -1
- package/dist/routes/auth/verify-email.d.ts +1 -1
- package/dist/routes/auth/verify-email.js +1 -2
- package/dist/routes/auth/verify-email.js.map +1 -1
- package/dist/routes/auth.d.ts +14 -15
- package/dist/routes/auth.js +15 -13
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/files.d.ts +1 -2
- package/dist/routes/files.js.map +1 -1
- package/dist/routes/onboarding.d.ts +1 -2
- package/dist/routes/onboarding.js.map +1 -1
- package/dist/routes/realtime.js +5 -6
- package/dist/routes/realtime.js.map +1 -1
- package/dist/routes/store.d.ts +6 -7
- package/dist/routes/store.js +19 -13
- package/dist/routes/store.js.map +1 -1
- package/dist/store/catalog.d.ts +13 -5
- package/dist/store/catalog.js +19 -9
- package/dist/store/catalog.js.map +1 -1
- package/dist/store/compatibility.d.ts +1 -0
- package/dist/store/compatibility.js +24 -8
- package/dist/store/compatibility.js.map +1 -1
- package/dist/store/frontend-compatibility.js +15 -3
- package/dist/store/frontend-compatibility.js.map +1 -1
- package/dist/store/interfaces.js +35 -13
- package/dist/store/interfaces.js.map +1 -1
- package/dist/store/internal/frontend/frontend-modules.js +7 -3
- package/dist/store/internal/frontend/frontend-modules.js.map +1 -1
- package/dist/store/internal/frontend/frontend-ready.d.ts +2 -1
- package/dist/store/internal/frontend/frontend-ready.js +6 -4
- package/dist/store/internal/frontend/frontend-ready.js.map +1 -1
- package/dist/store/internal/frontend/manifest.js +6 -7
- package/dist/store/internal/frontend/manifest.js.map +1 -1
- package/dist/store/operations.js.map +1 -1
- package/dist/store/registry.js.map +1 -1
- package/dist/store/runtime.d.ts +13 -0
- package/dist/store/runtime.js +9 -1
- package/dist/store/runtime.js.map +1 -1
- package/dist/utils/admin-invite-email.js +3 -1
- package/dist/utils/admin-invite-email.js.map +1 -1
- package/dist/utils/email-subjects.js +3 -1
- package/dist/utils/email-subjects.js.map +1 -1
- package/dist/utils/export-jobs-run.js.map +1 -1
- package/dist/utils/export-jobs.js +3 -9
- package/dist/utils/export-jobs.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/own-value.d.ts +1 -0
- package/dist/utils/own-value.js +7 -0
- package/dist/utils/own-value.js.map +1 -0
- package/dist/utils/row-action-rule-evaluator.js +31 -35
- package/dist/utils/row-action-rule-evaluator.js.map +1 -1
- package/dist/utils/sign-in-country.js +4 -2
- package/dist/utils/sign-in-country.js.map +1 -1
- package/dist/utils/tenant-export-archive.js +9 -14
- package/dist/utils/tenant-export-archive.js.map +1 -1
- package/dist/utils/user-agent.js +2 -1
- package/dist/utils/user-agent.js.map +1 -1
- package/dist/validation/auth.schema.d.ts +10 -10
- package/dist/validation/regional-preferences.schema.d.ts +2 -2
- package/dist/validation/role-editor.schema.d.ts +1 -1
- package/frontend-vue/build/backend-boundary.ts +49 -18
- package/frontend-vue/dms.frontend.ts +8 -12
- package/frontend-vue/layers/dms-auth/server/accounts.ts +44 -3
- package/frontend-vue/layers/dms-auth/server/actions.ts +17 -4
- package/frontend-vue/layers/dms-auth/server/oauth.ts +42 -4
- package/frontend-vue/layers/dms-core/app/types/watch.ts +1 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldValueRule.ts +57 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/form/registerFormFunctions.ts +7 -9
- package/frontend-vue/layers/dms-ui/app/entries/composables/form/registerFormFunctions.ts +1 -0
- package/frontend-vue/lazy-plugin.ts +18 -0
- package/frontend-vue/package.json +2 -2
- package/package.json +19 -13
- package/skills/dms-project/SKILL.md +4 -3
|
@@ -4,12 +4,19 @@ exports.SaveTableViewAttachments = SaveTableViewAttachments;
|
|
|
4
4
|
const interface_data_api_1 = require("@antelopejs/interface-data-api");
|
|
5
5
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
6
6
|
const db_1 = require("../db");
|
|
7
|
+
const own_value_1 = require("../utils/own-value");
|
|
7
8
|
const guards_1 = require("@antelopejs/interface-dms/base/table-view/internal/guards");
|
|
8
9
|
const meta_1 = require("@antelopejs/interface-dms/base/table-view/internal/meta");
|
|
9
10
|
const bindings_1 = require("./bindings");
|
|
10
11
|
const fields_1 = require("./fields");
|
|
11
12
|
const registry_1 = require("./registry");
|
|
12
13
|
const save_1 = require("./save");
|
|
14
|
+
function isFieldHolder(row) {
|
|
15
|
+
return typeof row === "object" && row !== null;
|
|
16
|
+
}
|
|
17
|
+
function isSavedRow(result) {
|
|
18
|
+
return typeof result === "object" && result !== null && "_id" in result;
|
|
19
|
+
}
|
|
13
20
|
async function loadDocument(controller, fields, id) {
|
|
14
21
|
const meta = (0, interface_data_api_1.GetDataControllerMeta)(controller);
|
|
15
22
|
const idField = (0, meta_1.getTableViewMetaFor)(controller).options.rowIdKey || "_id";
|
|
@@ -18,16 +25,14 @@ async function loadDocument(controller, fields, id) {
|
|
|
18
25
|
return undefined;
|
|
19
26
|
const stored = (0, interface_database_decorators_1.fromPlainData)(row, meta.tableClass);
|
|
20
27
|
(0, interface_database_decorators_1.unlock)(stored, interface_database_decorators_1.LocalizationModifier, undefined, "*");
|
|
28
|
+
if (!isFieldHolder(stored)) {
|
|
29
|
+
throw new TypeError(`A stored ${meta.tableName} row is not an object`);
|
|
30
|
+
}
|
|
21
31
|
return Object.fromEntries([idField, ...fields.map((field) => field.key)].map((key) => [
|
|
22
32
|
key,
|
|
23
33
|
stored[meta.fields[key]?.dbName || key],
|
|
24
34
|
]));
|
|
25
35
|
}
|
|
26
|
-
function retainedFiles(fields, before) {
|
|
27
|
-
return Object.fromEntries(fields
|
|
28
|
-
.filter((field) => (0, fields_1.collectAttachments)([field], before).length > 0)
|
|
29
|
-
.map((field) => [field.key, before[field.key]]));
|
|
30
|
-
}
|
|
31
36
|
async function SaveTableViewAttachments(request) {
|
|
32
37
|
const { controller, route, context, params, args, mode, componentIds } = request;
|
|
33
38
|
const fields = (0, bindings_1.tableAttachmentFields)((0, meta_1.getTableViewMetaFor)(controller), (0, meta_1.getControllerLocation)(controller));
|
|
@@ -44,28 +49,33 @@ async function SaveTableViewAttachments(request) {
|
|
|
44
49
|
fields,
|
|
45
50
|
before,
|
|
46
51
|
submitted: {
|
|
47
|
-
...
|
|
52
|
+
...Object.fromEntries(fields
|
|
53
|
+
.filter((field) => (0, fields_1.collectAttachments)([field], before).length > 0)
|
|
54
|
+
.map((field) => [field.key, (0, own_value_1.ownValue)(before, field.key)])),
|
|
48
55
|
...(0, guards_1.parseGuardBody)(args[0]),
|
|
49
56
|
},
|
|
50
57
|
}, async (promoted) => {
|
|
51
58
|
const result = await route.func.call(controller, context, params, promoted, ...args.slice(1));
|
|
52
|
-
const id = documentId || result
|
|
59
|
+
const id = documentId || (isSavedRow(result) ? result._id : undefined);
|
|
53
60
|
if (typeof id !== "string" || !id)
|
|
54
61
|
(0, registry_1.denyAttachment)();
|
|
55
62
|
const document = await loadDocument(controller, fields, id);
|
|
56
63
|
if (!document)
|
|
57
64
|
(0, registry_1.denyAttachment)();
|
|
58
|
-
return { id, document, result };
|
|
65
|
+
return { id, document, result: undefined };
|
|
59
66
|
});
|
|
60
67
|
}
|
|
61
68
|
async function deleteDocuments(request) {
|
|
62
69
|
const { controller, route, context, params, args, fields, componentIds } = request;
|
|
63
70
|
const ids = params.id;
|
|
64
71
|
const rows = await Promise.all((Array.isArray(ids) ? ids : [ids]).map((id) => loadDocument(controller, fields, String(id))));
|
|
65
|
-
const before = Object.fromEntries(fields.map((field) => [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
})
|
|
72
|
+
const before = Object.fromEntries(fields.map((field) => [
|
|
73
|
+
field.key,
|
|
74
|
+
rows.map((row) => (row ? (0, own_value_1.ownValue)(row, field.key) : undefined)),
|
|
75
|
+
]));
|
|
76
|
+
return (0, save_1.SaveComponentFiles)({ context, componentIds, fields, before, submitted: {} }, async () => {
|
|
77
|
+
await route.func.call(controller, context, params, ...args);
|
|
78
|
+
return { result: undefined, document: {} };
|
|
79
|
+
});
|
|
70
80
|
}
|
|
71
81
|
//# sourceMappingURL=table-view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-view.js","sourceRoot":"","sources":["../../src/attachments/table-view.ts"],"names":[],"mappings":";;AA0DA,
|
|
1
|
+
{"version":3,"file":"table-view.js","sourceRoot":"","sources":["../../src/attachments/table-view.ts"],"names":[],"mappings":";;AA0DA,4DAiDC;AA3GD,uEAAuE;AAEvE,6FAImD;AACnD,8BAAyC;AACzC,kDAA8C;AAG9C,sFAA2F;AAC3F,kFAGiE;AACjE,yCAAmD;AACnD,qCAA8C;AAC9C,yCAA4C;AAC5C,iCAA4C;AAG5C,SAAS,aAAa,CAAC,GAAY;IACjC,OAAO,OAAO,GAAG,KAAK,QAAQ,IA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EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAA,oBAAQ,EAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;KAChE,CAAC,CACH,CAAC;IACF,OAAO,IAAA,yBAAkB,EACvB,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,EACxD,KAAK,IAAI,EAAE;QACT,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;QAC5D,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IAC7C,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { TriggerType } from "@antelopejs/interface-dms-automation";
|
|
2
|
-
export
|
|
2
|
+
export type MemberAddedEvent = {
|
|
3
3
|
tenantId: string;
|
|
4
4
|
userId: string;
|
|
5
5
|
isTenantOwner: boolean;
|
|
6
6
|
deliveryId?: string;
|
|
7
7
|
at: string;
|
|
8
|
-
}
|
|
9
|
-
export
|
|
8
|
+
};
|
|
9
|
+
export type MemberRemovedEvent = {
|
|
10
10
|
tenantId: string;
|
|
11
11
|
userIds: string[];
|
|
12
12
|
at: string;
|
|
13
|
-
}
|
|
14
|
-
export
|
|
13
|
+
};
|
|
14
|
+
export type InviteCreatedEvent = {
|
|
15
15
|
tenantId: string;
|
|
16
16
|
inviteId: string;
|
|
17
17
|
email: string;
|
|
@@ -19,21 +19,21 @@ export interface InviteCreatedEvent {
|
|
|
19
19
|
roleIds: string[];
|
|
20
20
|
deliveryId?: string;
|
|
21
21
|
at: string;
|
|
22
|
-
}
|
|
23
|
-
export
|
|
22
|
+
};
|
|
23
|
+
export type UserRegisteredEvent = {
|
|
24
24
|
tenantId: string;
|
|
25
25
|
userId: string;
|
|
26
26
|
email: string;
|
|
27
27
|
name: string;
|
|
28
28
|
at: string;
|
|
29
|
-
}
|
|
30
|
-
export
|
|
29
|
+
};
|
|
30
|
+
export type RecordMutationEvent = {
|
|
31
31
|
location: string;
|
|
32
32
|
ids: string[];
|
|
33
33
|
actorId?: string;
|
|
34
34
|
actorName?: string;
|
|
35
35
|
at: string;
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
37
|
interface AutomationEventPayloads {
|
|
38
38
|
"dms.member-added": MemberAddedEvent;
|
|
39
39
|
"dms.member-removed": MemberRemovedEvent;
|
package/dist/automation/index.js
CHANGED
|
@@ -47,9 +47,8 @@ const AUTOMATION_INTERFACE_PACKAGE = "@antelopejs/interface-dms-automation";
|
|
|
47
47
|
let automationInterfacePromise;
|
|
48
48
|
const automationLifecycle = new registration_lifecycle_1.AutomationRegistrationLifecycle();
|
|
49
49
|
function isMissingAutomationInterface(error) {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
return (["MODULE_NOT_FOUND", "ERR_MODULE_NOT_FOUND"].includes(moduleError?.code ?? "") &&
|
|
50
|
+
const firstLine = error.message.split("\n", 1)[0] ?? "";
|
|
51
|
+
return (["MODULE_NOT_FOUND", "ERR_MODULE_NOT_FOUND"].includes(error.code ?? "") &&
|
|
53
52
|
(firstLine === `Cannot find module '${AUTOMATION_INTERFACE_PACKAGE}'` ||
|
|
54
53
|
firstLine.startsWith(`Cannot find package '${AUTOMATION_INTERFACE_PACKAGE}' imported from `)));
|
|
55
54
|
}
|
|
@@ -58,7 +57,7 @@ async function loadAutomationInterface() {
|
|
|
58
57
|
return await Promise.resolve().then(() => __importStar(require("@antelopejs/interface-dms-automation")));
|
|
59
58
|
}
|
|
60
59
|
catch (error) {
|
|
61
|
-
if (isMissingAutomationInterface(error))
|
|
60
|
+
if (error instanceof Error && isMissingAutomationInterface(error))
|
|
62
61
|
return undefined;
|
|
63
62
|
throw error;
|
|
64
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/automation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/automation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,0DAkBC;AAED,8DAaC;AAvFD,uCAAoC;AACpC,qEAA2E;AAC3E,uCAGmB;AACnB,yCAAsC;AAEtC,2CAAyB;AAEzB,MAAM,4BAA4B,GAAG,sCAAsC,CAAC;AAS5E,IAAI,0BAAoE,CAAC;AACzE,MAAM,mBAAmB,GAAG,IAAI,wDAA+B,EAAE,CAAC;AAElE,SAAS,4BAA4B,CAAC,KAAsB;IAC1D,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACxD,OAAO,CACL,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC;QACvE,CAAC,SAAS,KAAK,uBAAuB,4BAA4B,GAAG;YACnE,SAAS,CAAC,UAAU,CAClB,wBAAwB,4BAA4B,kBAAkB,CACvE,CAAC,CACL,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,uBAAuB;IAGpC,IAAI,CAAC;QACH,OAAO,wDAAa,sCAAsC,GAAC,CAAC;IAC9D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,KAAK,IAAI,4BAA4B,CAAC,KAAK,CAAC;YAC/D,OAAO,SAAS,CAAC;QACnB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,sBAAsB;IAC7B,0BAA0B,KAAK,uBAAuB,EAAE,CAAC;IACzD,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAMM,KAAK,U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QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,iBAAO,EAAE,CAAC;QAC7B,IAAI,CAAC;YACH,mBAAmB,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACtD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IACD,IAAI,CAAC;QACH,IAAA,0CAAgC,GAAE,CAAC;IACrC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AACD,4CAA0B;AAC1B,2DAAyC;AACzC,sDAAoC;AACpC,6CAA2B"}
|
|
@@ -14,8 +14,8 @@ interface SendNotificationInput {
|
|
|
14
14
|
linkTo?: string;
|
|
15
15
|
idempotencyKey?: string;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
type SendNotificationOutput = {
|
|
18
18
|
ok: boolean;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
export declare const sendNotificationAction: ActionType<SendNotificationInput, SendNotificationOutput>;
|
|
21
21
|
export {};
|
|
@@ -15,17 +15,15 @@ exports.NOTIFICATION_TONES = [
|
|
|
15
15
|
"warning",
|
|
16
16
|
"error",
|
|
17
17
|
];
|
|
18
|
-
function isPlainObject(value) {
|
|
19
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20
|
-
}
|
|
21
18
|
function isNotificationTone(value) {
|
|
22
19
|
const tones = exports.NOTIFICATION_TONES;
|
|
23
20
|
return tones.includes(value);
|
|
24
21
|
}
|
|
25
|
-
function toNotificationParams(
|
|
22
|
+
function toNotificationParams(input, ctx) {
|
|
23
|
+
const { params } = input;
|
|
26
24
|
if (params === undefined || params === null)
|
|
27
25
|
return undefined;
|
|
28
|
-
if (
|
|
26
|
+
if (typeof params !== "object" || Array.isArray(params)) {
|
|
29
27
|
throw new Error(`${exports.SEND_NOTIFICATION_ACTION_ID}: params must be an object of strings and numbers`);
|
|
30
28
|
}
|
|
31
29
|
const result = {};
|
|
@@ -68,7 +66,7 @@ function toSendOptions(idempotencyKey, ctx) {
|
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
function buildNotification(input, ctx) {
|
|
71
|
-
const params = toNotificationParams(input
|
|
69
|
+
const params = toNotificationParams(input, ctx);
|
|
72
70
|
const tone = toTone(input.tone);
|
|
73
71
|
const linkTo = input.linkTo?.trim();
|
|
74
72
|
const data = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-notification.js","sourceRoot":"","sources":["../../src/automation/send-notification.ts"],"names":[],"mappings":";;;AAAA,mEAAwE;AACxE,2EAKiD;AACjD,+EAAwF;AAKxF,iCAA+D;AAElD,QAAA,2BAA2B,GAAG,uBAAuB,CAAC;AACnE,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAE3D,MAAM,yBAAyB,GAAG,WAAW,CAAC;AAGjC,QAAA,kBAAkB,GAAG;IAChC,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,OAAO;CACuC,CAAC;AA4BjD,SAAS,
|
|
1
|
+
{"version":3,"file":"send-notification.js","sourceRoot":"","sources":["../../src/automation/send-notification.ts"],"names":[],"mappings":";;;AAAA,mEAAwE;AACxE,2EAKiD;AACjD,+EAAwF;AAKxF,iCAA+D;AAElD,QAAA,2BAA2B,GAAG,uBAAuB,CAAC;AACnE,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAE3D,MAAM,yBAAyB,GAAG,WAAW,CAAC;AAGjC,QAAA,kBAAkB,GAAG;IAChC,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,OAAO;CACuC,CAAC;AA4BjD,SAAS,kBAAkB,CAAC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AG,uBAAuB,EAC3D,KAAK,CACN,CAAC;YACJ,CAAC;QACH,CAAC;QACD,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAC3C,CAAC;AACH,CAAC;AAGD,SAAgB,0BAA0B;IACxC,OAAO,mBAAI,CAAC,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;QACvD,KAAK,qBAAqB,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YACpD,iBAAO,CAAC,KAAK,CAAC,SAAS,sCAA8B,WAAW,EAAE,KAAK,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sweep-expired-sessions.js","sourceRoot":"","sources":["../../src/crons/sweep-expired-sessions.ts"],"names":[],"mappings":";;;;;;AAWA,0DAKC;AAED,oEASC;AA3BD,gEAA6D;AAC7D,6FAAqE;AACrE,0DAAiE;AACjE,0DAAqD;AACrD,sCAA0C;AAE7B,QAAA,gCAAgC,GAAG,wBAAwB,CAAC;AAEzE,MAAM,+BAA+B,GAAG,YAAY,CAAC;AAG9C,KAAK,UAAU,uBAAuB,CAAC,GAAG,GAAG,IAAI,IAAI,EAAE;IAC5D,MAAM,SAAS,GAAG,IAAI,IAAI,CACxB,GAAG,CAAC,OAAO,EAAE,GAAG,IAAA,sBAAa,GAAE,CAAC,oBAAoB,CACrD,CAAC;IACF,MAAM,IAAA,wCAAQ,EAAC,iBAAY,CAAC,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,4BAA4B;IAC1C,OAAO,mBAAI,CAAC,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACzD,KAAK,uBAAuB,EAAE,CAAC,KAAK,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"sweep-expired-sessions.js","sourceRoot":"","sources":["../../src/crons/sweep-expired-sessions.ts"],"names":[],"mappings":";;;;;;AAWA,0DAKC;AAED,oEASC;AA3BD,gEAA6D;AAC7D,6FAAqE;AACrE,0DAAiE;AACjE,0DAAqD;AACrD,sCAA0C;AAE7B,QAAA,gCAAgC,GAAG,wBAAwB,CAAC;AAEzE,MAAM,+BAA+B,GAAG,YAAY,CAAC;AAG9C,KAAK,UAAU,uBAAuB,CAAC,GAAG,GAAG,IAAI,IAAI,EAAE;IAC5D,MAAM,SAAS,GAAG,IAAI,IAAI,CACxB,GAAG,CAAC,OAAO,EAAE,GAAG,IAAA,sBAAa,GAAE,CAAC,oBAAoB,CACrD,CAAC;IACF,MAAM,IAAA,wCAAQ,EAAC,iBAAY,CAAC,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,4BAA4B;IAC1C,OAAO,mBAAI,CAAC,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACzD,KAAK,uBAAuB,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YACtD,iBAAO,CAAC,KAAK,CACX,SAAS,wCAAgC,WAAW,EACpD,KAAK,CACN,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sweep-stale-exports.js","sourceRoot":"","sources":["../../src/crons/sweep-stale-exports.ts"],"names":[],"mappings":";;;;;;AAQA,oDAEC;AAED,8DAMC;AAlBD,gEAA6D;AAC7D,0DAAqD;AACrD,oCAAsE;AAEzD,QAAA,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE,MAAM,4BAA4B,GAAG,WAAW,CAAC;AAE1C,KAAK,UAAU,oBAAoB;IACxC,MAAM,IAAA,mCAA2B,EAAC,qBAAa,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,yBAAyB;IACvC,OAAO,mBAAI,CAAC,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACtD,KAAK,oBAAoB,EAAE,CAAC,KAAK,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"sweep-stale-exports.js","sourceRoot":"","sources":["../../src/crons/sweep-stale-exports.ts"],"names":[],"mappings":";;;;;;AAQA,oDAEC;AAED,8DAMC;AAlBD,gEAA6D;AAC7D,0DAAqD;AACrD,oCAAsE;AAEzD,QAAA,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE,MAAM,4BAA4B,GAAG,WAAW,CAAC;AAE1C,KAAK,UAAU,oBAAoB;IACxC,MAAM,IAAA,mCAA2B,EAAC,qBAAa,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,yBAAyB;IACvC,OAAO,mBAAI,CAAC,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACtD,KAAK,oBAAoB,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YACnD,iBAAO,CAAC,KAAK,CAAC,SAAS,qCAA6B,WAAW,EAAE,KAAK,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/db/guard-row.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export declare function fetchRowForGuard(controller: any, id: string, idField: string): Promise<RuleRow | undefined>;
|
|
1
|
+
import { type DataControllerInstance } from "@antelopejs/interface-data-api";
|
|
2
|
+
export declare function fetchRowForGuard(controller: DataControllerInstance, id: string, idField: string): Promise<Record<string, unknown> | undefined>;
|
package/dist/db/guard-row.js
CHANGED
|
@@ -7,7 +7,6 @@ async function fetchRowForGuard(controller, id, idField) {
|
|
|
7
7
|
const controllerMetadata = (0, interface_data_api_1.GetDataControllerMeta)(controller);
|
|
8
8
|
const model = components_1.Query.GetModel(controller, controllerMetadata);
|
|
9
9
|
const rows = await model.table.getAll([id], idField);
|
|
10
|
-
|
|
11
|
-
return row;
|
|
10
|
+
return rows[0];
|
|
12
11
|
}
|
|
13
12
|
//# sourceMappingURL=guard-row.js.map
|
package/dist/db/guard-row.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guard-row.js","sourceRoot":"","sources":["../../src/db/guard-row.ts"],"names":[],"mappings":";;AAMA,4CAUC;AAhBD,
|
|
1
|
+
{"version":3,"file":"guard-row.js","sourceRoot":"","sources":["../../src/db/guard-row.ts"],"names":[],"mappings":";;AAMA,4CAUC;AAhBD,uEAGwC;AACxC,0EAAkE;AAE3D,KAAK,UAAU,gBAAgB,CACpC,UAAkC,EAClC,EAAU,EACV,OAAe;IAGf,MAAM,kBAAkB,GAAG,IAAA,0CAAqB,EAAC,UAAU,CAAC,CAAC;IAC7D,MAAM,KAAK,GAAG,kBAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;IAC7D,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;IACrD,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC"}
|
|
@@ -4,18 +4,20 @@ declare const AttachmentModel_base: {
|
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<Attachment>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
6
|
get(id: string): PromiseLike<Attachment | undefined>;
|
|
7
|
-
getBy(index: keyof Attachment, ...keys:
|
|
7
|
+
getBy(index: keyof Attachment, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): PromiseLike<Attachment[]>;
|
|
8
8
|
getAll(): PromiseLike<Attachment[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Attachment> | import("@antelopejs/interface-database-decorators").DeepPartial<Attachment>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<Attachment>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Attachment
|
|
11
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Attachment> & {
|
|
12
|
+
_id: string;
|
|
13
|
+
}, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
14
|
delete(id: string): Promise<number>;
|
|
13
15
|
};
|
|
14
|
-
readonly schemaName: string;
|
|
16
|
+
readonly schemaName: string | undefined;
|
|
15
17
|
readonly tableClass: import("@antelopejs/interface-database-decorators").Constructible<Attachment>;
|
|
16
|
-
fromPlainData(obj:
|
|
18
|
+
fromPlainData(obj: Attachment | import("@antelopejs/interface-database-decorators").PlainData<Attachment>): Attachment;
|
|
17
19
|
fromDatabase(obj: any): Attachment | undefined;
|
|
18
|
-
toDatabase(obj:
|
|
20
|
+
toDatabase(obj: Attachment | import("@antelopejs/interface-database-decorators").PlainData<Attachment>): import("@antelopejs/interface-database-decorators").StoredRow<Attachment>;
|
|
19
21
|
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
20
22
|
};
|
|
21
23
|
export declare class AttachmentModel extends AttachmentModel_base {
|
|
@@ -4,18 +4,20 @@ declare const SetupTokenModel_base: {
|
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<SetupToken>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
6
|
get(id: string): PromiseLike<SetupToken | undefined>;
|
|
7
|
-
getBy(index: keyof SetupToken, ...keys:
|
|
7
|
+
getBy(index: keyof SetupToken, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): PromiseLike<SetupToken[]>;
|
|
8
8
|
getAll(): PromiseLike<SetupToken[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SetupToken> | import("@antelopejs/interface-database-decorators").DeepPartial<SetupToken>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<SetupToken>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SetupToken
|
|
11
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SetupToken> & {
|
|
12
|
+
_id: string;
|
|
13
|
+
}, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
14
|
delete(id: string): Promise<number>;
|
|
13
15
|
};
|
|
14
|
-
readonly schemaName: string;
|
|
16
|
+
readonly schemaName: string | undefined;
|
|
15
17
|
readonly tableClass: import("@antelopejs/interface-database-decorators").Constructible<SetupToken>;
|
|
16
|
-
fromPlainData(obj:
|
|
18
|
+
fromPlainData(obj: SetupToken | import("@antelopejs/interface-database-decorators").PlainData<SetupToken>): SetupToken;
|
|
17
19
|
fromDatabase(obj: any): SetupToken | undefined;
|
|
18
|
-
toDatabase(obj:
|
|
20
|
+
toDatabase(obj: SetupToken | import("@antelopejs/interface-database-decorators").PlainData<SetupToken>): import("@antelopejs/interface-database-decorators").StoredRow<SetupToken>;
|
|
19
21
|
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
20
22
|
};
|
|
21
23
|
export declare class SetupTokenModel extends SetupTokenModel_base {
|
|
@@ -8,18 +8,20 @@ declare const SignInAttemptsModel_base: {
|
|
|
8
8
|
readonly table: import("@antelopejs/interface-database").Table<SignInAttempt>;
|
|
9
9
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
10
10
|
get(id: string): PromiseLike<SignInAttempt | undefined>;
|
|
11
|
-
getBy(index: keyof SignInAttempt, ...keys:
|
|
11
|
+
getBy(index: keyof SignInAttempt, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): PromiseLike<SignInAttempt[]>;
|
|
12
12
|
getAll(): PromiseLike<SignInAttempt[]>;
|
|
13
13
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SignInAttempt> | import("@antelopejs/interface-database-decorators").DeepPartial<SignInAttempt>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
14
14
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<SignInAttempt>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
15
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SignInAttempt
|
|
15
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SignInAttempt> & {
|
|
16
|
+
_id: string;
|
|
17
|
+
}, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
16
18
|
delete(id: string): Promise<number>;
|
|
17
19
|
};
|
|
18
|
-
readonly schemaName: string;
|
|
20
|
+
readonly schemaName: string | undefined;
|
|
19
21
|
readonly tableClass: import("@antelopejs/interface-database-decorators").Constructible<SignInAttempt>;
|
|
20
|
-
fromPlainData(obj:
|
|
22
|
+
fromPlainData(obj: SignInAttempt | import("@antelopejs/interface-database-decorators").PlainData<SignInAttempt>): SignInAttempt;
|
|
21
23
|
fromDatabase(obj: any): SignInAttempt | undefined;
|
|
22
|
-
toDatabase(obj:
|
|
24
|
+
toDatabase(obj: SignInAttempt | import("@antelopejs/interface-database-decorators").PlainData<SignInAttempt>): import("@antelopejs/interface-database-decorators").StoredRow<SignInAttempt>;
|
|
23
25
|
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
24
26
|
};
|
|
25
27
|
export declare class SignInAttemptsModel extends SignInAttemptsModel_base {
|
|
@@ -4,18 +4,20 @@ declare const SystemStateModel_base: {
|
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<SystemState>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
6
|
get(id: string): PromiseLike<SystemState | undefined>;
|
|
7
|
-
getBy(index: keyof SystemState, ...keys:
|
|
7
|
+
getBy(index: keyof SystemState, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): PromiseLike<SystemState[]>;
|
|
8
8
|
getAll(): PromiseLike<SystemState[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SystemState> | import("@antelopejs/interface-database-decorators").DeepPartial<SystemState>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<SystemState>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SystemState
|
|
11
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SystemState> & {
|
|
12
|
+
_id: string;
|
|
13
|
+
}, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
14
|
delete(id: string): Promise<number>;
|
|
13
15
|
};
|
|
14
|
-
readonly schemaName: string;
|
|
16
|
+
readonly schemaName: string | undefined;
|
|
15
17
|
readonly tableClass: import("@antelopejs/interface-database-decorators").Constructible<SystemState>;
|
|
16
|
-
fromPlainData(obj:
|
|
18
|
+
fromPlainData(obj: SystemState | import("@antelopejs/interface-database-decorators").PlainData<SystemState>): SystemState;
|
|
17
19
|
fromDatabase(obj: any): SystemState | undefined;
|
|
18
|
-
toDatabase(obj:
|
|
20
|
+
toDatabase(obj: SystemState | import("@antelopejs/interface-database-decorators").PlainData<SystemState>): import("@antelopejs/interface-database-decorators").StoredRow<SystemState>;
|
|
19
21
|
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
20
22
|
};
|
|
21
23
|
export declare class SystemStateModel extends SystemStateModel_base {
|
|
@@ -13,18 +13,20 @@ declare const UserEmailChangesModel_base: {
|
|
|
13
13
|
readonly table: import("@antelopejs/interface-database").Table<UserEmailChange>;
|
|
14
14
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
15
15
|
get(id: string): PromiseLike<UserEmailChange | undefined>;
|
|
16
|
-
getBy(index: keyof UserEmailChange, ...keys:
|
|
16
|
+
getBy(index: keyof UserEmailChange, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): PromiseLike<UserEmailChange[]>;
|
|
17
17
|
getAll(): PromiseLike<UserEmailChange[]>;
|
|
18
18
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserEmailChange> | import("@antelopejs/interface-database-decorators").DeepPartial<UserEmailChange>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
19
19
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserEmailChange>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
20
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserEmailChange
|
|
20
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserEmailChange> & {
|
|
21
|
+
_id: string;
|
|
22
|
+
}, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
21
23
|
delete(id: string): Promise<number>;
|
|
22
24
|
};
|
|
23
|
-
readonly schemaName: string;
|
|
25
|
+
readonly schemaName: string | undefined;
|
|
24
26
|
readonly tableClass: import("@antelopejs/interface-database-decorators").Constructible<UserEmailChange>;
|
|
25
|
-
fromPlainData(obj:
|
|
27
|
+
fromPlainData(obj: UserEmailChange | import("@antelopejs/interface-database-decorators").PlainData<UserEmailChange>): UserEmailChange;
|
|
26
28
|
fromDatabase(obj: any): UserEmailChange | undefined;
|
|
27
|
-
toDatabase(obj:
|
|
29
|
+
toDatabase(obj: UserEmailChange | import("@antelopejs/interface-database-decorators").PlainData<UserEmailChange>): import("@antelopejs/interface-database-decorators").StoredRow<UserEmailChange>;
|
|
28
30
|
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
29
31
|
};
|
|
30
32
|
export declare class UserEmailChangesModel extends UserEmailChangesModel_base {
|
|
@@ -4,18 +4,20 @@ declare const UserKnownDevicesModel_base: {
|
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<UserKnownDevice>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
6
|
get(id: string): PromiseLike<UserKnownDevice | undefined>;
|
|
7
|
-
getBy(index: keyof UserKnownDevice, ...keys:
|
|
7
|
+
getBy(index: keyof UserKnownDevice, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): PromiseLike<UserKnownDevice[]>;
|
|
8
8
|
getAll(): PromiseLike<UserKnownDevice[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserKnownDevice> | import("@antelopejs/interface-database-decorators").DeepPartial<UserKnownDevice>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserKnownDevice>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserKnownDevice
|
|
11
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserKnownDevice> & {
|
|
12
|
+
_id: string;
|
|
13
|
+
}, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
14
|
delete(id: string): Promise<number>;
|
|
13
15
|
};
|
|
14
|
-
readonly schemaName: string;
|
|
16
|
+
readonly schemaName: string | undefined;
|
|
15
17
|
readonly tableClass: import("@antelopejs/interface-database-decorators").Constructible<UserKnownDevice>;
|
|
16
|
-
fromPlainData(obj:
|
|
18
|
+
fromPlainData(obj: UserKnownDevice | import("@antelopejs/interface-database-decorators").PlainData<UserKnownDevice>): UserKnownDevice;
|
|
17
19
|
fromDatabase(obj: any): UserKnownDevice | undefined;
|
|
18
|
-
toDatabase(obj:
|
|
20
|
+
toDatabase(obj: UserKnownDevice | import("@antelopejs/interface-database-decorators").PlainData<UserKnownDevice>): import("@antelopejs/interface-database-decorators").StoredRow<UserKnownDevice>;
|
|
19
21
|
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
20
22
|
};
|
|
21
23
|
export declare class UserKnownDevicesModel extends UserKnownDevicesModel_base {
|
|
@@ -4,18 +4,20 @@ declare const UserNotificationPreferencesModel_base: {
|
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<UserNotificationPreferences>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
6
|
get(id: string): PromiseLike<UserNotificationPreferences | undefined>;
|
|
7
|
-
getBy(index: keyof UserNotificationPreferences, ...keys:
|
|
7
|
+
getBy(index: keyof UserNotificationPreferences, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): PromiseLike<UserNotificationPreferences[]>;
|
|
8
8
|
getAll(): PromiseLike<UserNotificationPreferences[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences> | import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences
|
|
11
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences> & {
|
|
12
|
+
_id: string;
|
|
13
|
+
}, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
14
|
delete(id: string): Promise<number>;
|
|
13
15
|
};
|
|
14
|
-
readonly schemaName: string;
|
|
16
|
+
readonly schemaName: string | undefined;
|
|
15
17
|
readonly tableClass: import("@antelopejs/interface-database-decorators").Constructible<UserNotificationPreferences>;
|
|
16
|
-
fromPlainData(obj:
|
|
18
|
+
fromPlainData(obj: UserNotificationPreferences | import("@antelopejs/interface-database-decorators").PlainData<UserNotificationPreferences>): UserNotificationPreferences;
|
|
17
19
|
fromDatabase(obj: any): UserNotificationPreferences | undefined;
|
|
18
|
-
toDatabase(obj:
|
|
20
|
+
toDatabase(obj: UserNotificationPreferences | import("@antelopejs/interface-database-decorators").PlainData<UserNotificationPreferences>): import("@antelopejs/interface-database-decorators").StoredRow<UserNotificationPreferences>;
|
|
19
21
|
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
20
22
|
};
|
|
21
23
|
export declare class UserNotificationPreferencesModel extends UserNotificationPreferencesModel_base {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type IndexKey } from "@antelopejs/interface-database-decorators";
|
|
1
2
|
import type { NotificationData, NotificationTone } from "@antelopejs/interface-dms/notifications/types";
|
|
2
3
|
import { UserNotification } from "../tables";
|
|
3
4
|
import type { NavBadgeCount } from "@antelopejs/interface-dms/component";
|
|
@@ -39,24 +40,26 @@ declare const UserNotificationsModel_base: {
|
|
|
39
40
|
readonly table: import("@antelopejs/interface-database").Table<UserNotification>;
|
|
40
41
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
41
42
|
get(id: string): PromiseLike<UserNotification | undefined>;
|
|
42
|
-
getBy(index: keyof UserNotification, ...keys:
|
|
43
|
+
getBy(index: keyof UserNotification, ...keys: IndexKey[]): PromiseLike<UserNotification[]>;
|
|
43
44
|
getAll(): PromiseLike<UserNotification[]>;
|
|
44
45
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification> | import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
45
46
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
46
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification
|
|
47
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification> & {
|
|
48
|
+
_id: string;
|
|
49
|
+
}, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
47
50
|
delete(id: string): Promise<number>;
|
|
48
51
|
};
|
|
49
|
-
readonly schemaName: string;
|
|
52
|
+
readonly schemaName: string | undefined;
|
|
50
53
|
readonly tableClass: import("@antelopejs/interface-database-decorators").Constructible<UserNotification>;
|
|
51
|
-
fromPlainData(obj:
|
|
54
|
+
fromPlainData(obj: UserNotification | import("@antelopejs/interface-database-decorators").PlainData<UserNotification>): UserNotification;
|
|
52
55
|
fromDatabase(obj: any): UserNotification | undefined;
|
|
53
|
-
toDatabase(obj:
|
|
56
|
+
toDatabase(obj: UserNotification | import("@antelopejs/interface-database-decorators").PlainData<UserNotification>): import("@antelopejs/interface-database-decorators").StoredRow<UserNotification>;
|
|
54
57
|
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
55
58
|
};
|
|
56
59
|
export declare class UserNotificationsModel extends UserNotificationsModel_base {
|
|
57
60
|
get(id: string): Promise<UserNotification | undefined>;
|
|
58
61
|
getAll(): Promise<UserNotification[]>;
|
|
59
|
-
getBy(index: keyof UserNotification, ...keys:
|
|
62
|
+
getBy(index: Extract<keyof UserNotification, string>, ...keys: IndexKey[]): Promise<UserNotification[]>;
|
|
60
63
|
private visibleFeed;
|
|
61
64
|
private unreadFeed;
|
|
62
65
|
getByUserId(userId: string, limit?: number, offset?: number, unreadOnly?: boolean): Promise<UserNotification[]>;
|