@aglyn/plugins-forms 1.0.0-beta.261 → 1.0.0-beta.263
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/plugins-forms",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.263",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aglyn/aglyn": "1.0.0-beta.
|
|
29
|
-
"@aglyn/shared-data-enums": "1.0.0-beta.
|
|
30
|
-
"@aglyn/shared-data-mdi": "1.0.0-beta.
|
|
31
|
-
"@aglyn/shared-ui-jsx": "1.0.0-beta.
|
|
32
|
-
"@aglyn/shared-ui-jsx-forms": "1.0.0-beta.
|
|
33
|
-
"@aglyn/shared-ui-snackstack": "1.0.0-beta.
|
|
34
|
-
"@aglyn/shared-util-email": "1.0.0-beta.
|
|
35
|
-
"@aglyn/shared-util-http": "1.0.0-beta.
|
|
36
|
-
"@aglyn/shared-util-timestamp": "1.0.0-beta.
|
|
37
|
-
"@aglyn/shared-util-tools": "1.0.0-beta.
|
|
38
|
-
"@aglyn/tenant-data-admin": "1.0.0-beta.
|
|
39
|
-
"@aglyn/tenant-feature-instance": "1.0.0-beta.
|
|
40
|
-
"@aglyn/tenant-runtime": "1.0.0-beta.
|
|
28
|
+
"@aglyn/aglyn": "1.0.0-beta.263",
|
|
29
|
+
"@aglyn/shared-data-enums": "1.0.0-beta.263",
|
|
30
|
+
"@aglyn/shared-data-mdi": "1.0.0-beta.263",
|
|
31
|
+
"@aglyn/shared-ui-jsx": "1.0.0-beta.263",
|
|
32
|
+
"@aglyn/shared-ui-jsx-forms": "1.0.0-beta.263",
|
|
33
|
+
"@aglyn/shared-ui-snackstack": "1.0.0-beta.263",
|
|
34
|
+
"@aglyn/shared-util-email": "1.0.0-beta.263",
|
|
35
|
+
"@aglyn/shared-util-http": "1.0.0-beta.263",
|
|
36
|
+
"@aglyn/shared-util-timestamp": "1.0.0-beta.263",
|
|
37
|
+
"@aglyn/shared-util-tools": "1.0.0-beta.263",
|
|
38
|
+
"@aglyn/tenant-data-admin": "1.0.0-beta.263",
|
|
39
|
+
"@aglyn/tenant-feature-instance": "1.0.0-beta.263",
|
|
40
|
+
"@aglyn/tenant-runtime": "1.0.0-beta.263",
|
|
41
41
|
"@swc/helpers": "0.5.23"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
import { registerApiV1SiteResource } from "@aglyn/tenant-data-admin/server/api-v1-resources";
|
|
19
19
|
import { registerPluginTransferResource } from "@aglyn/aglyn/plugin-manager/plugin-transfer-resources";
|
|
20
20
|
import { BUNDLE_ID } from "./constants/bundle-common.js";
|
|
21
|
+
import { registerFormsRecordRoutes } from "./model/forms-record-routes.js";
|
|
21
22
|
import { FORM_SUBMISSIONS_MATCH_KEYS, FORM_SUBMISSIONS_TRANSFER_KEY } from "./transfer/form-submissions-transfer-key.js";
|
|
22
23
|
/**
|
|
23
24
|
* The submissions resource over the console's Admin SDK, built with the first
|
|
@@ -48,6 +49,10 @@ import { FORM_SUBMISSIONS_MATCH_KEYS, FORM_SUBMISSIONS_TRANSFER_KEY } from "./tr
|
|
|
48
49
|
* with the first export; only its match keys are read at registration.
|
|
49
50
|
* Registering again replaces this plugin's own entries.
|
|
50
51
|
*/ export function registerFormsConsoleServerDeclarations() {
|
|
52
|
+
// A form's console address on the server too, so a server route that names a
|
|
53
|
+
// form someone else made (an AI job's draft, AGL-3854) links it through the
|
|
54
|
+
// record-route seam rather than spelling this plugin's path.
|
|
55
|
+
registerFormsRecordRoutes();
|
|
51
56
|
registerApiV1SiteResource('form-submissions', {
|
|
52
57
|
handle: async (...args)=>(await import("./server/api-v1/form-submissions.js")).handleFormSubmissions(...args),
|
|
53
58
|
describe: async ()=>(await import("./server/api-v1/openapi.js")).FORM_SUBMISSIONS_API_V1_DESCRIPTION
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../libs/plugins/forms/src/lib/declarations.console-server.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// The registry's own module, not the data layer's barrel: boot needs the\n// registry, not the whole server surface.\nimport { registerApiV1SiteResource } from '@aglyn/tenant-data-admin/server/api-v1-resources'\nimport { registerPluginTransferResource } from '@aglyn/aglyn/plugin-manager/plugin-transfer-resources'\nimport { BUNDLE_ID } from './constants/bundle-common'\nimport {\n FORM_SUBMISSIONS_MATCH_KEYS,\n FORM_SUBMISSIONS_TRANSFER_KEY,\n} from './transfer/form-submissions-transfer-key'\nimport type { FormSubmissionsTransferResource } from './transfer/form-submissions-transfer'\n\n/**\n * The submissions resource over the console's Admin SDK, built with the first\n * export that asks — the resource, `firebase-admin` and the Admin app load\n * then, never at boot.\n */\nasync function formSubmissionsTransfer(): Promise<FormSubmissionsTransferResource> {\n return (await import('./transfer/form-submissions-transfer.server')).adminFormSubmissionsTransferResource()\n}\n\n/**\n * The forms plugin's CONSOLE-ONLY server declarations, named under\n * `consoleServerDeclarations` in `plugins.config.json` and run at the\n * console's boot. The tenant runtime registers none of it.\n *\n * It serves a site's form submissions on the customer REST API,\n * `/v1/sites/{siteId}/form-submissions/…`: the console's router owns the\n * pipeline in front — the key, the plan's API access, the quota, the rate\n * limit, the error envelope — and the site's ownership, and hands every\n * request under the resource here. No plan feature is named: submissions are\n * read and marked on every plan, as they always were. The resource brings its\n * description for the API's OpenAPI document.\n *\n * It also answers the export of a site's submissions (`forms.submissions`,\n * export only — see `transfer/form-submissions-transfer.ts`): the console's\n * transfer routes gate the reader on the site and read through these hooks.\n *\n * Light at boot: the handler is imported with its first request and the\n * description when the document is first built, and the transfer resource\n * with the first export; only its match keys are read at registration.\n * Registering again replaces this plugin's own entries.\n */\nexport function registerFormsConsoleServerDeclarations(): void {\n registerApiV1SiteResource(\n 'form-submissions',\n {\n handle: async (...args) =>\n (await import('./server/api-v1/form-submissions')).handleFormSubmissions(...args),\n describe: async () =>\n (await import('./server/api-v1/openapi')).FORM_SUBMISSIONS_API_V1_DESCRIPTION,\n },\n { pluginId: BUNDLE_ID },\n )\n registerPluginTransferResource(\n FORM_SUBMISSIONS_TRANSFER_KEY,\n {\n matchKeys: FORM_SUBMISSIONS_MATCH_KEYS,\n fields: async (ctx) => (await formSubmissionsTransfer()).fields(ctx),\n count: async (ctx, options) => (await formSubmissionsTransfer()).count(ctx, options),\n readPage: async (ctx, cursor, fieldIds, options) =>\n (await formSubmissionsTransfer()).readPage(ctx, cursor, fieldIds, options),\n lookup: async (ctx, requests) => (await formSubmissionsTransfer()).lookup(ctx, requests),\n },\n { pluginId: BUNDLE_ID },\n )\n}\n"],"names":["registerApiV1SiteResource","registerPluginTransferResource","BUNDLE_ID","FORM_SUBMISSIONS_MATCH_KEYS","FORM_SUBMISSIONS_TRANSFER_KEY","formSubmissionsTransfer","adminFormSubmissionsTransferResource","registerFormsConsoleServerDeclarations","handle","args","handleFormSubmissions","describe","FORM_SUBMISSIONS_API_V1_DESCRIPTION","pluginId","matchKeys","fields","ctx","count","options","readPage","cursor","fieldIds","lookup","requests"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,yEAAyE;AACzE,0CAA0C;AAC1C,SAASA,yBAAyB,QAAQ,mDAAkD;AAC5F,SAASC,8BAA8B,QAAQ,wDAAuD;AACtG,SAASC,SAAS,QAAQ,+BAA2B;AACrD,SACEC,2BAA2B,EAC3BC,6BAA6B,QACxB,8CAA0C;AAGjD;;;;CAIC,GACD,eAAeC;IACb,OAAO,AAAC,CAAA,MAAM,MAAM,CAAC,iDAA6C,EAAGC,oCAAoC;AAC3G;AAEA;;;;;;;;;;;;;;;;;;;;;CAqBC,GACD,OAAO,SAASC;
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/plugins/forms/src/lib/declarations.console-server.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// The registry's own module, not the data layer's barrel: boot needs the\n// registry, not the whole server surface.\nimport { registerApiV1SiteResource } from '@aglyn/tenant-data-admin/server/api-v1-resources'\nimport { registerPluginTransferResource } from '@aglyn/aglyn/plugin-manager/plugin-transfer-resources'\nimport { BUNDLE_ID } from './constants/bundle-common'\nimport { registerFormsRecordRoutes } from './model/forms-record-routes'\nimport {\n FORM_SUBMISSIONS_MATCH_KEYS,\n FORM_SUBMISSIONS_TRANSFER_KEY,\n} from './transfer/form-submissions-transfer-key'\nimport type { FormSubmissionsTransferResource } from './transfer/form-submissions-transfer'\n\n/**\n * The submissions resource over the console's Admin SDK, built with the first\n * export that asks — the resource, `firebase-admin` and the Admin app load\n * then, never at boot.\n */\nasync function formSubmissionsTransfer(): Promise<FormSubmissionsTransferResource> {\n return (await import('./transfer/form-submissions-transfer.server')).adminFormSubmissionsTransferResource()\n}\n\n/**\n * The forms plugin's CONSOLE-ONLY server declarations, named under\n * `consoleServerDeclarations` in `plugins.config.json` and run at the\n * console's boot. The tenant runtime registers none of it.\n *\n * It serves a site's form submissions on the customer REST API,\n * `/v1/sites/{siteId}/form-submissions/…`: the console's router owns the\n * pipeline in front — the key, the plan's API access, the quota, the rate\n * limit, the error envelope — and the site's ownership, and hands every\n * request under the resource here. No plan feature is named: submissions are\n * read and marked on every plan, as they always were. The resource brings its\n * description for the API's OpenAPI document.\n *\n * It also answers the export of a site's submissions (`forms.submissions`,\n * export only — see `transfer/form-submissions-transfer.ts`): the console's\n * transfer routes gate the reader on the site and read through these hooks.\n *\n * Light at boot: the handler is imported with its first request and the\n * description when the document is first built, and the transfer resource\n * with the first export; only its match keys are read at registration.\n * Registering again replaces this plugin's own entries.\n */\nexport function registerFormsConsoleServerDeclarations(): void {\n // A form's console address on the server too, so a server route that names a\n // form someone else made (an AI job's draft, AGL-3854) links it through the\n // record-route seam rather than spelling this plugin's path.\n registerFormsRecordRoutes()\n registerApiV1SiteResource(\n 'form-submissions',\n {\n handle: async (...args) =>\n (await import('./server/api-v1/form-submissions')).handleFormSubmissions(...args),\n describe: async () =>\n (await import('./server/api-v1/openapi')).FORM_SUBMISSIONS_API_V1_DESCRIPTION,\n },\n { pluginId: BUNDLE_ID },\n )\n registerPluginTransferResource(\n FORM_SUBMISSIONS_TRANSFER_KEY,\n {\n matchKeys: FORM_SUBMISSIONS_MATCH_KEYS,\n fields: async (ctx) => (await formSubmissionsTransfer()).fields(ctx),\n count: async (ctx, options) => (await formSubmissionsTransfer()).count(ctx, options),\n readPage: async (ctx, cursor, fieldIds, options) =>\n (await formSubmissionsTransfer()).readPage(ctx, cursor, fieldIds, options),\n lookup: async (ctx, requests) => (await formSubmissionsTransfer()).lookup(ctx, requests),\n },\n { pluginId: BUNDLE_ID },\n )\n}\n"],"names":["registerApiV1SiteResource","registerPluginTransferResource","BUNDLE_ID","registerFormsRecordRoutes","FORM_SUBMISSIONS_MATCH_KEYS","FORM_SUBMISSIONS_TRANSFER_KEY","formSubmissionsTransfer","adminFormSubmissionsTransferResource","registerFormsConsoleServerDeclarations","handle","args","handleFormSubmissions","describe","FORM_SUBMISSIONS_API_V1_DESCRIPTION","pluginId","matchKeys","fields","ctx","count","options","readPage","cursor","fieldIds","lookup","requests"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,yEAAyE;AACzE,0CAA0C;AAC1C,SAASA,yBAAyB,QAAQ,mDAAkD;AAC5F,SAASC,8BAA8B,QAAQ,wDAAuD;AACtG,SAASC,SAAS,QAAQ,+BAA2B;AACrD,SAASC,yBAAyB,QAAQ,iCAA6B;AACvE,SACEC,2BAA2B,EAC3BC,6BAA6B,QACxB,8CAA0C;AAGjD;;;;CAIC,GACD,eAAeC;IACb,OAAO,AAAC,CAAA,MAAM,MAAM,CAAC,iDAA6C,EAAGC,oCAAoC;AAC3G;AAEA;;;;;;;;;;;;;;;;;;;;;CAqBC,GACD,OAAO,SAASC;IACd,6EAA6E;IAC7E,4EAA4E;IAC5E,6DAA6D;IAC7DL;IACAH,0BACE,oBACA;QACES,QAAQ,OAAO,GAAGC,OAChB,AAAC,CAAA,MAAM,MAAM,CAAC,sCAAkC,EAAGC,qBAAqB,IAAID;QAC9EE,UAAU,UACR,AAAC,CAAA,MAAM,MAAM,CAAC,6BAAyB,EAAGC,mCAAmC;IACjF,GACA;QAAEC,UAAUZ;IAAU;IAExBD,+BACEI,+BACA;QACEU,WAAWX;QACXY,QAAQ,OAAOC,MAAQ,AAAC,CAAA,MAAMX,yBAAwB,EAAGU,MAAM,CAACC;QAChEC,OAAO,OAAOD,KAAKE,UAAY,AAAC,CAAA,MAAMb,yBAAwB,EAAGY,KAAK,CAACD,KAAKE;QAC5EC,UAAU,OAAOH,KAAKI,QAAQC,UAAUH,UACtC,AAAC,CAAA,MAAMb,yBAAwB,EAAGc,QAAQ,CAACH,KAAKI,QAAQC,UAAUH;QACpEI,QAAQ,OAAON,KAAKO,WAAa,AAAC,CAAA,MAAMlB,yBAAwB,EAAGiB,MAAM,CAACN,KAAKO;IACjF,GACA;QAAEV,UAAUZ;IAAU;AAE1B"}
|