@aglyn/aglyn 1.0.0-beta.220 → 1.0.0-beta.222
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 +15 -11
- package/src/lib/app-utils/agent-openapi.js +1 -1
- package/src/lib/app-utils/agent-openapi.js.map +1 -1
- package/src/lib/app-utils/analytics-events.d.ts +3 -2
- package/src/lib/app-utils/analytics-events.js +3 -2
- package/src/lib/app-utils/analytics-events.js.map +1 -1
- package/src/lib/app-utils/api-plugins.d.ts +30 -0
- package/src/lib/app-utils/api-plugins.js +24 -1
- package/src/lib/app-utils/api-plugins.js.map +1 -1
- package/src/lib/app-utils/author-html.d.ts +1 -1
- package/src/lib/app-utils/author-html.js.map +1 -1
- package/src/lib/app-utils/bandwidth-cap.d.ts +12 -1
- package/src/lib/app-utils/bandwidth-cap.js +17 -1
- package/src/lib/app-utils/bandwidth-cap.js.map +1 -1
- package/src/lib/app-utils/compose-reusable-components.d.ts +19 -0
- package/src/lib/app-utils/compose-reusable-components.js +116 -26
- package/src/lib/app-utils/compose-reusable-components.js.map +1 -1
- package/src/lib/app-utils/console-routes.d.ts +4 -0
- package/src/lib/app-utils/console-routes.js +3 -0
- package/src/lib/app-utils/console-routes.js.map +1 -1
- package/src/lib/app-utils/contacts.d.ts +71 -0
- package/src/lib/app-utils/contacts.js +55 -0
- package/src/lib/app-utils/contacts.js.map +1 -1
- package/src/lib/app-utils/contexts.d.ts +1 -0
- package/src/lib/app-utils/contexts.js +1 -0
- package/src/lib/app-utils/contexts.js.map +1 -1
- package/src/lib/app-utils/crm-email-templates.js +21 -4
- package/src/lib/app-utils/crm-email-templates.js.map +1 -1
- package/src/lib/app-utils/crm-kinds.d.ts +2 -0
- package/src/lib/app-utils/crm-kinds.js +1 -0
- package/src/lib/app-utils/crm-kinds.js.map +1 -1
- package/src/lib/app-utils/crm.d.ts +1199 -67
- package/src/lib/app-utils/crm.js +1951 -310
- package/src/lib/app-utils/crm.js.map +1 -1
- package/src/lib/app-utils/csv-import.d.ts +10 -38
- package/src/lib/app-utils/csv-import.js +17 -42
- package/src/lib/app-utils/csv-import.js.map +1 -1
- package/src/lib/app-utils/csv.d.ts +32 -11
- package/src/lib/app-utils/csv.js +43 -5
- package/src/lib/app-utils/csv.js.map +1 -1
- package/src/lib/app-utils/default-site.d.ts +116 -0
- package/src/lib/app-utils/default-site.js +1024 -0
- package/src/lib/app-utils/default-site.js.map +1 -0
- package/src/lib/app-utils/docs-help.generated.d.ts +23 -23
- package/src/lib/app-utils/docs-help.generated.js +47 -10
- package/src/lib/app-utils/docs-help.generated.js.map +1 -1
- package/src/lib/app-utils/docs-index.generated.js +746 -151
- package/src/lib/app-utils/docs-index.generated.js.map +1 -1
- package/src/lib/app-utils/draft-placeholders.d.ts +76 -0
- package/src/lib/app-utils/draft-placeholders.js +115 -0
- package/src/lib/app-utils/draft-placeholders.js.map +1 -0
- package/src/lib/app-utils/entity-picker-context.d.ts +19 -15
- package/src/lib/app-utils/entity-picker-context.js +4 -4
- package/src/lib/app-utils/entity-picker-context.js.map +1 -1
- package/src/lib/app-utils/expand-repeatables.d.ts +66 -10
- package/src/lib/app-utils/expand-repeatables.js +88 -14
- package/src/lib/app-utils/expand-repeatables.js.map +1 -1
- package/src/lib/app-utils/forms.d.ts +33 -22
- package/src/lib/app-utils/forms.js +47 -28
- package/src/lib/app-utils/forms.js.map +1 -1
- package/src/lib/app-utils/full-use-cost.d.ts +277 -0
- package/src/lib/app-utils/full-use-cost.js +421 -0
- package/src/lib/app-utils/full-use-cost.js.map +1 -0
- package/src/lib/app-utils/health-report.js +33 -0
- package/src/lib/app-utils/health-report.js.map +1 -1
- package/src/lib/app-utils/leaving-notice.d.ts +96 -0
- package/src/lib/app-utils/leaving-notice.js +157 -0
- package/src/lib/app-utils/leaving-notice.js.map +1 -0
- package/src/lib/app-utils/llms-txt.d.ts +20 -0
- package/src/lib/app-utils/llms-txt.js +7 -1
- package/src/lib/app-utils/llms-txt.js.map +1 -1
- package/src/lib/app-utils/media-asset-facts.d.ts +16 -1
- package/src/lib/app-utils/media-asset-facts.js +40 -13
- package/src/lib/app-utils/media-asset-facts.js.map +1 -1
- package/src/lib/app-utils/media-bandwidth.d.ts +52 -0
- package/src/lib/app-utils/media-bandwidth.js +94 -0
- package/src/lib/app-utils/media-bandwidth.js.map +1 -0
- package/src/lib/app-utils/media-ref.d.ts +241 -33
- package/src/lib/app-utils/media-ref.js +324 -43
- package/src/lib/app-utils/media-ref.js.map +1 -1
- package/src/lib/app-utils/media-src.d.ts +8 -8
- package/src/lib/app-utils/media-src.js +27 -11
- package/src/lib/app-utils/media-src.js.map +1 -1
- package/src/lib/app-utils/media-takedown-reach.d.ts +4 -1
- package/src/lib/app-utils/media-takedown-reach.js +6 -3
- package/src/lib/app-utils/media-takedown-reach.js.map +1 -1
- package/src/lib/app-utils/notifications.d.ts +1 -1
- package/src/lib/app-utils/notifications.js +2 -0
- package/src/lib/app-utils/notifications.js.map +1 -1
- package/src/lib/app-utils/operator-alerts.js +17 -0
- package/src/lib/app-utils/operator-alerts.js.map +1 -1
- package/src/lib/app-utils/organizations.d.ts +51 -2
- package/src/lib/app-utils/organizations.js +56 -3
- package/src/lib/app-utils/organizations.js.map +1 -1
- package/src/lib/app-utils/page-record-sources.d.ts +87 -0
- package/src/lib/app-utils/page-record-sources.js +53 -0
- package/src/lib/app-utils/page-record-sources.js.map +1 -0
- package/src/lib/app-utils/paid-media-source.d.ts +3 -7
- package/src/lib/app-utils/paid-media-source.js +5 -19
- package/src/lib/app-utils/paid-media-source.js.map +1 -1
- package/src/lib/app-utils/person-erasure.d.ts +5 -2
- package/src/lib/app-utils/person-erasure.js.map +1 -1
- package/src/lib/app-utils/picklists.d.ts +187 -0
- package/src/lib/app-utils/picklists.js +320 -0
- package/src/lib/app-utils/picklists.js.map +1 -0
- package/src/lib/app-utils/plan-entitlements.d.ts +220 -50
- package/src/lib/app-utils/plan-entitlements.js +309 -115
- package/src/lib/app-utils/plan-entitlements.js.map +1 -1
- package/src/lib/app-utils/realm-host-surface.generated.js +2 -0
- package/src/lib/app-utils/realm-host-surface.generated.js.map +1 -1
- package/src/lib/app-utils/release-flags.d.ts +1 -1
- package/src/lib/app-utils/release-flags.js +11 -0
- package/src/lib/app-utils/release-flags.js.map +1 -1
- package/src/lib/app-utils/rendered-widths.d.ts +121 -0
- package/src/lib/app-utils/rendered-widths.js +211 -0
- package/src/lib/app-utils/rendered-widths.js.map +1 -0
- package/src/lib/app-utils/repeat-sources.d.ts +2 -1
- package/src/lib/app-utils/repeat-sources.js.map +1 -1
- package/src/lib/app-utils/screen-link-context-value.d.ts +7 -0
- package/src/lib/app-utils/screen-link-context-value.js.map +1 -1
- package/src/lib/app-utils/screen-link-context.js +14 -2
- package/src/lib/app-utils/screen-link-context.js.map +1 -1
- package/src/lib/app-utils/screen-route.d.ts +157 -36
- package/src/lib/app-utils/screen-route.js +191 -41
- package/src/lib/app-utils/screen-route.js.map +1 -1
- package/src/lib/app-utils/seo-audit.d.ts +11 -1
- package/src/lib/app-utils/seo-audit.js +33 -13
- package/src/lib/app-utils/seo-audit.js.map +1 -1
- package/src/lib/app-utils/seo-keywords.d.ts +11 -0
- package/src/lib/app-utils/seo-keywords.js +19 -5
- package/src/lib/app-utils/seo-keywords.js.map +1 -1
- package/src/lib/app-utils/seo-page-facts.d.ts +47 -4
- package/src/lib/app-utils/seo-page-facts.js +136 -31
- package/src/lib/app-utils/seo-page-facts.js.map +1 -1
- package/src/lib/app-utils/seo-site-scan.d.ts +42 -4
- package/src/lib/app-utils/seo-site-scan.js +113 -12
- package/src/lib/app-utils/seo-site-scan.js.map +1 -1
- package/src/lib/app-utils/server.d.ts +5 -4
- package/src/lib/app-utils/server.js +14 -5
- package/src/lib/app-utils/server.js.map +1 -1
- package/src/lib/app-utils/site-icon-set.d.ts +195 -0
- package/src/lib/app-utils/site-icon-set.js +351 -0
- package/src/lib/app-utils/site-icon-set.js.map +1 -0
- package/src/lib/app-utils/site-interactions.d.ts +101 -4
- package/src/lib/app-utils/site-interactions.js +120 -4
- package/src/lib/app-utils/site-interactions.js.map +1 -1
- package/src/lib/app-utils/starter-template-nodes.d.ts +7 -0
- package/src/lib/app-utils/starter-template-nodes.js +3 -0
- package/src/lib/app-utils/starter-template-nodes.js.map +1 -1
- package/src/lib/app-utils/starter-templates.d.ts +5 -19
- package/src/lib/app-utils/starter-templates.js +5 -49
- package/src/lib/app-utils/starter-templates.js.map +1 -1
- package/src/lib/app-utils/transfer-launcher-context.d.ts +136 -0
- package/src/lib/app-utils/transfer-launcher-context.js +23 -0
- package/src/lib/app-utils/transfer-launcher-context.js.map +1 -0
- package/src/lib/app-utils/transfer-resume-import.d.ts +39 -0
- package/src/lib/app-utils/transfer-resume-import.js +128 -0
- package/src/lib/app-utils/transfer-resume-import.js.map +1 -0
- package/src/lib/app-utils/upgrade-proposal.d.ts +66 -0
- package/src/lib/app-utils/upgrade-proposal.js +95 -0
- package/src/lib/app-utils/upgrade-proposal.js.map +1 -0
- package/src/lib/app-utils/utc-month.d.ts +33 -0
- package/src/lib/app-utils/utc-month.js +35 -0
- package/src/lib/app-utils/utc-month.js.map +1 -0
- package/src/lib/app-utils/visitor-record-ceiling.d.ts +4 -4
- package/src/lib/app-utils/visitor-record-ceiling.js +4 -4
- package/src/lib/app-utils/visitor-record-ceiling.js.map +1 -1
- package/src/lib/app-utils/wire-nodes.d.ts +39 -19
- package/src/lib/app-utils/wire-nodes.js +120 -34
- package/src/lib/app-utils/wire-nodes.js.map +1 -1
- package/src/lib/data-transfer/access.d.ts +74 -0
- package/src/lib/data-transfer/access.js +93 -0
- package/src/lib/data-transfer/access.js.map +1 -0
- package/src/lib/data-transfer/derive.d.ts +246 -0
- package/src/lib/data-transfer/derive.js +1007 -0
- package/src/lib/data-transfer/derive.js.map +1 -0
- package/src/lib/data-transfer/export-file.d.ts +46 -0
- package/src/lib/data-transfer/export-file.js +146 -0
- package/src/lib/data-transfer/export-file.js.map +1 -0
- package/src/lib/data-transfer/field-catalog.d.ts +134 -0
- package/src/lib/data-transfer/field-catalog.js +278 -0
- package/src/lib/data-transfer/field-catalog.js.map +1 -0
- package/src/lib/data-transfer/header-match.d.ts +129 -0
- package/src/lib/data-transfer/header-match.js +367 -0
- package/src/lib/data-transfer/header-match.js.map +1 -0
- package/src/lib/data-transfer/index.d.ts +34 -0
- package/src/lib/data-transfer/index.js +40 -0
- package/src/lib/data-transfer/index.js.map +1 -0
- package/src/lib/data-transfer/job.d.ts +190 -0
- package/src/lib/data-transfer/job.js +229 -0
- package/src/lib/data-transfer/job.js.map +1 -0
- package/src/lib/data-transfer/lookup.d.ts +45 -0
- package/src/lib/data-transfer/lookup.js +71 -0
- package/src/lib/data-transfer/lookup.js.map +1 -0
- package/src/lib/data-transfer/match.d.ts +99 -0
- package/src/lib/data-transfer/match.js +244 -0
- package/src/lib/data-transfer/match.js.map +1 -0
- package/src/lib/data-transfer/package-plan.d.ts +205 -0
- package/src/lib/data-transfer/package-plan.js +475 -0
- package/src/lib/data-transfer/package-plan.js.map +1 -0
- package/src/lib/data-transfer/package.d.ts +181 -0
- package/src/lib/data-transfer/package.js +426 -0
- package/src/lib/data-transfer/package.js.map +1 -0
- package/src/lib/data-transfer/picklist-map.d.ts +139 -0
- package/src/lib/data-transfer/picklist-map.js +271 -0
- package/src/lib/data-transfer/picklist-map.js.map +1 -0
- package/src/lib/data-transfer/plan.d.ts +176 -0
- package/src/lib/data-transfer/plan.js +451 -0
- package/src/lib/data-transfer/plan.js.map +1 -0
- package/src/lib/data-transfer/policy.d.ts +170 -0
- package/src/lib/data-transfer/policy.js +378 -0
- package/src/lib/data-transfer/policy.js.map +1 -0
- package/src/lib/data-transfer/resource.d.ts +211 -0
- package/src/lib/data-transfer/resource.js +241 -0
- package/src/lib/data-transfer/resource.js.map +1 -0
- package/src/lib/data-transfer/review.d.ts +70 -0
- package/src/lib/data-transfer/review.js +233 -0
- package/src/lib/data-transfer/review.js.map +1 -0
- package/src/lib/data-transfer/similarity.d.ts +40 -0
- package/src/lib/data-transfer/similarity.js +106 -0
- package/src/lib/data-transfer/similarity.js.map +1 -0
- package/src/lib/data-transfer/site-package.d.ts +365 -0
- package/src/lib/data-transfer/site-package.js +1077 -0
- package/src/lib/data-transfer/site-package.js.map +1 -0
- package/src/lib/data-transfer/source.d.ts +74 -0
- package/src/lib/data-transfer/source.js +293 -0
- package/src/lib/data-transfer/source.js.map +1 -0
- package/src/lib/data-transfer/transfer-api.d.ts +898 -0
- package/src/lib/data-transfer/transfer-api.js +107 -0
- package/src/lib/data-transfer/transfer-api.js.map +1 -0
- package/src/lib/foundation/definitions/org-billing.types.d.ts +31 -0
- package/src/lib/foundation/definitions/org-billing.types.js.map +1 -1
- package/src/lib/foundation/definitions/organization.types.d.ts +42 -1
- package/src/lib/foundation/definitions/organization.types.js.map +1 -1
- package/src/lib/foundation/definitions/platform.types.d.ts +6 -4
- package/src/lib/foundation/definitions/platform.types.js.map +1 -1
- package/src/lib/foundation/index.d.ts +1 -1
- package/src/lib/foundation/index.js.map +1 -1
- package/src/lib/plugin-manager/feature-plugins.d.ts +91 -2
- package/src/lib/plugin-manager/feature-plugins.js +48 -3
- package/src/lib/plugin-manager/feature-plugins.js.map +1 -1
- package/src/lib/plugin-manager/first-party-plugins.generated.d.ts +56 -0
- package/src/lib/plugin-manager/first-party-plugins.generated.js +1132 -27
- package/src/lib/plugin-manager/first-party-plugins.generated.js.map +1 -1
- package/src/lib/plugin-manager/index.d.ts +0 -1
- package/src/lib/plugin-manager/index.js +0 -1
- package/src/lib/plugin-manager/index.js.map +1 -1
- package/src/lib/plugin-manager/interaction-recipes.d.ts +142 -0
- package/src/lib/plugin-manager/interaction-recipes.js +104 -0
- package/src/lib/plugin-manager/interaction-recipes.js.map +1 -0
- package/src/lib/plugin-manager/interaction-step-checks.d.ts +66 -0
- package/src/lib/plugin-manager/interaction-step-checks.js +86 -0
- package/src/lib/plugin-manager/interaction-step-checks.js.map +1 -0
- package/src/lib/plugin-manager/plugin-artifact-types.d.ts +235 -0
- package/src/lib/plugin-manager/plugin-artifact-types.js +99 -0
- package/src/lib/plugin-manager/plugin-artifact-types.js.map +1 -0
- package/src/lib/plugin-manager/plugin-contact-capture.d.ts +8 -0
- package/src/lib/plugin-manager/plugin-contact-capture.js.map +1 -1
- package/src/lib/plugin-manager/plugin-conversion-credit.d.ts +216 -0
- package/src/lib/plugin-manager/plugin-conversion-credit.js +91 -0
- package/src/lib/plugin-manager/plugin-conversion-credit.js.map +1 -0
- package/src/lib/plugin-manager/plugin-entity-pickers.d.ts +83 -0
- package/src/lib/plugin-manager/plugin-entity-pickers.js +87 -0
- package/src/lib/plugin-manager/plugin-entity-pickers.js.map +1 -0
- package/src/lib/plugin-manager/plugin-host-resources.d.ts +6 -0
- package/src/lib/plugin-manager/plugin-host-resources.js +6 -1
- package/src/lib/plugin-manager/plugin-host-resources.js.map +1 -1
- package/src/lib/plugin-manager/plugin-intake-gates.d.ts +75 -0
- package/src/lib/plugin-manager/plugin-intake-gates.js +49 -0
- package/src/lib/plugin-manager/plugin-intake-gates.js.map +1 -0
- package/src/lib/plugin-manager/plugin-jobs.d.ts +5 -5
- package/src/lib/plugin-manager/plugin-jobs.js +7 -7
- package/src/lib/plugin-manager/plugin-jobs.js.map +1 -1
- package/src/lib/plugin-manager/plugin-live-paths.d.ts +70 -0
- package/src/lib/plugin-manager/plugin-live-paths.js +66 -0
- package/src/lib/plugin-manager/plugin-live-paths.js.map +1 -0
- package/src/lib/plugin-manager/plugin-org-erasure.d.ts +3 -2
- package/src/lib/plugin-manager/plugin-org-erasure.js +30 -5
- package/src/lib/plugin-manager/plugin-org-erasure.js.map +1 -1
- package/src/lib/plugin-manager/plugin-person-erasure.d.ts +68 -9
- package/src/lib/plugin-manager/plugin-person-erasure.js +196 -51
- package/src/lib/plugin-manager/plugin-person-erasure.js.map +1 -1
- package/src/lib/plugin-manager/plugin-person-records.d.ts +275 -0
- package/src/lib/plugin-manager/plugin-person-records.js +107 -0
- package/src/lib/plugin-manager/plugin-person-records.js.map +1 -0
- package/src/lib/plugin-manager/plugin-record-counts.d.ts +76 -0
- package/src/lib/plugin-manager/plugin-record-counts.js +49 -0
- package/src/lib/plugin-manager/plugin-record-counts.js.map +1 -0
- package/src/lib/plugin-manager/plugin-record-email-state.d.ts +26 -0
- package/src/lib/plugin-manager/plugin-record-email-state.js +16 -0
- package/src/lib/plugin-manager/plugin-record-email-state.js.map +1 -1
- package/src/lib/plugin-manager/plugin-record-index.d.ts +10 -0
- package/src/lib/plugin-manager/plugin-record-index.js.map +1 -1
- package/src/lib/plugin-manager/plugin-record-lists.d.ts +86 -6
- package/src/lib/plugin-manager/plugin-record-lists.js +42 -5
- package/src/lib/plugin-manager/plugin-record-lists.js.map +1 -1
- package/src/lib/plugin-manager/plugin-record-origin.d.ts +79 -0
- package/src/lib/plugin-manager/plugin-record-origin.js +46 -0
- package/src/lib/plugin-manager/plugin-record-origin.js.map +1 -0
- package/src/lib/plugin-manager/plugin-record-pages.d.ts +37 -0
- package/src/lib/plugin-manager/plugin-record-pages.js +52 -0
- package/src/lib/plugin-manager/plugin-record-pages.js.map +1 -0
- package/src/lib/plugin-manager/plugin-record-timeline.d.ts +60 -0
- package/src/lib/plugin-manager/plugin-record-timeline.js +16 -0
- package/src/lib/plugin-manager/plugin-record-timeline.js.map +1 -1
- package/src/lib/plugin-manager/plugin-resource-drafts.d.ts +5 -5
- package/src/lib/plugin-manager/plugin-resource-drafts.js.map +1 -1
- package/src/lib/plugin-manager/plugin-revocations.d.ts +64 -0
- package/src/lib/plugin-manager/plugin-revocations.js +47 -0
- package/src/lib/plugin-manager/plugin-revocations.js.map +1 -0
- package/src/lib/plugin-manager/plugin-send-tallies.d.ts +69 -0
- package/src/lib/plugin-manager/plugin-send-tallies.js +45 -0
- package/src/lib/plugin-manager/plugin-send-tallies.js.map +1 -0
- package/src/lib/plugin-manager/plugin-server-steps.d.ts +170 -0
- package/src/lib/plugin-manager/plugin-server-steps.js +116 -0
- package/src/lib/plugin-manager/plugin-server-steps.js.map +1 -0
- package/src/lib/plugin-manager/plugin-site-bundle.d.ts +40 -0
- package/src/lib/plugin-manager/plugin-site-bundle.js +4 -0
- package/src/lib/plugin-manager/plugin-site-bundle.js.map +1 -1
- package/src/lib/plugin-manager/plugin-site-export.d.ts +57 -1
- package/src/lib/plugin-manager/plugin-site-export.js +23 -10
- package/src/lib/plugin-manager/plugin-site-export.js.map +1 -1
- package/src/lib/plugin-manager/plugin-sitemap-readers.d.ts +146 -0
- package/src/lib/plugin-manager/plugin-sitemap-readers.js +110 -0
- package/src/lib/plugin-manager/plugin-sitemap-readers.js.map +1 -0
- package/src/lib/plugin-manager/plugin-transfer-resources.d.ts +714 -0
- package/src/lib/plugin-manager/plugin-transfer-resources.js +443 -0
- package/src/lib/plugin-manager/plugin-transfer-resources.js.map +1 -0
- package/src/lib/plugin-manager/plugin-usage-axes.d.ts +54 -5
- package/src/lib/plugin-manager/plugin-usage-axes.js +11 -3
- package/src/lib/plugin-manager/plugin-usage-axes.js.map +1 -1
- package/src/lib/plugin-manager/plugin-user-erasure.js +9 -1
- package/src/lib/plugin-manager/plugin-user-erasure.js.map +1 -1
- package/src/lib/plugin-manager/plugin-visitor-doors.d.ts +104 -0
- package/src/lib/plugin-manager/plugin-visitor-doors.js +108 -0
- package/src/lib/plugin-manager/plugin-visitor-doors.js.map +1 -0
- package/src/lib/plugin-manager/realm-host-aglyn.generated.js +2 -0
- package/src/lib/plugin-manager/realm-host-aglyn.generated.js.map +1 -1
- package/src/lib/plugin-manager/repeat-rows.d.ts +5 -6
- package/src/lib/plugin-manager/repeat-rows.js.map +1 -1
- package/src/lib/app-utils/actions.d.ts +0 -310
- package/src/lib/app-utils/actions.js +0 -506
- package/src/lib/app-utils/actions.js.map +0 -1
- package/src/lib/app-utils/automation-placeholders.d.ts +0 -72
- package/src/lib/app-utils/automation-placeholders.js +0 -207
- package/src/lib/app-utils/automation-placeholders.js.map +0 -1
- package/src/lib/app-utils/dataset-models.d.ts +0 -339
- package/src/lib/app-utils/dataset-models.js +0 -722
- package/src/lib/app-utils/dataset-models.js.map +0 -1
- package/src/lib/app-utils/datasets.d.ts +0 -171
- package/src/lib/app-utils/datasets.js +0 -227
- package/src/lib/app-utils/datasets.js.map +0 -1
- package/src/lib/app-utils/form-abuse-ceiling.d.ts +0 -146
- package/src/lib/app-utils/form-abuse-ceiling.js +0 -158
- package/src/lib/app-utils/form-abuse-ceiling.js.map +0 -1
- package/src/lib/plugin-manager/order-fulfilment.d.ts +0 -142
- package/src/lib/plugin-manager/order-fulfilment.js +0 -104
- package/src/lib/plugin-manager/order-fulfilment.js.map +0 -1
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { type PluginSiteBundleSectionPackage } from '../plugin-manager/plugin-site-bundle';
|
|
18
|
+
import { type ExistingPackageItem, type PackageDependency, type PackageItemComparison, type PackageItemDecision, type PackageItemStatus, type PackageManifest, type TransferPackage } from './package';
|
|
19
|
+
/** Where a kind is declared. */
|
|
20
|
+
export type SitePackageKindSource = 'platform' | 'collection' | 'section';
|
|
21
|
+
/** A field of an item that holds the id of another item. */
|
|
22
|
+
export interface SitePackageReferenceField {
|
|
23
|
+
field: string;
|
|
24
|
+
/** The kinds the id may name, tried in order against what is known. */
|
|
25
|
+
kinds: readonly string[];
|
|
26
|
+
/** `values`: the field is a map whose values are ids; `items`: a list of ids. */
|
|
27
|
+
each?: 'values' | 'items';
|
|
28
|
+
}
|
|
29
|
+
/** A node prop that names an item of the kind that declares it. */
|
|
30
|
+
export interface SitePackagePlacement {
|
|
31
|
+
/** Only nodes of this component; any node when absent. */
|
|
32
|
+
componentId?: string;
|
|
33
|
+
prop: string;
|
|
34
|
+
}
|
|
35
|
+
/** One kind of item a site package carries. */
|
|
36
|
+
export interface SitePackageKind {
|
|
37
|
+
kind: string;
|
|
38
|
+
/** Plural, for the import screen. */
|
|
39
|
+
label: string;
|
|
40
|
+
source: SitePackageKindSource;
|
|
41
|
+
/**
|
|
42
|
+
* Where a v1 backup carries the kind: its array (`screens`, a plugin
|
|
43
|
+
* collection's name, a section's key), or `host` for the site's fields.
|
|
44
|
+
*/
|
|
45
|
+
bundleKey: string;
|
|
46
|
+
/** The field an item with a new id is matched by first. */
|
|
47
|
+
slugField?: string;
|
|
48
|
+
/** …and second. */
|
|
49
|
+
nameField?: string;
|
|
50
|
+
/** Settings and the theme merge key by key. */
|
|
51
|
+
mergeable?: boolean;
|
|
52
|
+
/** A replace writes the incoming design as a new version. */
|
|
53
|
+
versioned?: boolean;
|
|
54
|
+
/** Its ids are words, never searched for inside other items' text. */
|
|
55
|
+
wordIds?: boolean;
|
|
56
|
+
/** Its own id inside its own content is left alone when it moves (a stored file's address). */
|
|
57
|
+
keepsOwnId?: boolean;
|
|
58
|
+
references?: readonly SitePackageReferenceField[];
|
|
59
|
+
bindingToken?: 'var' | 'fn';
|
|
60
|
+
placements?: readonly SitePackagePlacement[];
|
|
61
|
+
/** The one id a singleton kind is filed under. */
|
|
62
|
+
singletonId?: string;
|
|
63
|
+
/** Its ids are fixed (a singleton, a catalog key): an item cannot be kept as a copy. */
|
|
64
|
+
noCopies?: boolean;
|
|
65
|
+
}
|
|
66
|
+
/** The singleton id of the site's settings item. */
|
|
67
|
+
export declare const SITE_SETTINGS_ITEM_ID = "settings";
|
|
68
|
+
/** The singleton id of the site's theme item. */
|
|
69
|
+
export declare const SITE_THEME_ITEM_ID = "theme";
|
|
70
|
+
/** The two kinds a site's screens are listed as. */
|
|
71
|
+
export declare const SITE_SCREEN_KINDS: readonly ["page", "email"];
|
|
72
|
+
/** The platform's own kinds, in the order an export lists them. */
|
|
73
|
+
export declare const PLATFORM_SITE_PACKAGE_KINDS: readonly SitePackageKind[];
|
|
74
|
+
/**
|
|
75
|
+
* Every kind a site package carries: the platform's, then each host
|
|
76
|
+
* collection a plugin declares for the backup, then each backup section, in
|
|
77
|
+
* config order. Throws when two declare one kind — the generator refuses
|
|
78
|
+
* that, so it only fires for a hand-edited catalog.
|
|
79
|
+
*/
|
|
80
|
+
export declare function listSitePackageKinds(): SitePackageKind[];
|
|
81
|
+
/** The kinds by name. */
|
|
82
|
+
export declare function sitePackageKindMap(kinds?: SitePackageKind[]): ReadonlyMap<string, SitePackageKind>;
|
|
83
|
+
/** One item: its kind, its id and its content (the document, without `$id`). */
|
|
84
|
+
export interface SitePackageItem<T = Record<string, unknown>> {
|
|
85
|
+
kind: string;
|
|
86
|
+
id: string;
|
|
87
|
+
content: T;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* What the console's write path decides and this module must agree with:
|
|
91
|
+
* the site fields each singleton carries and the most items of each v1
|
|
92
|
+
* array an import reads.
|
|
93
|
+
*/
|
|
94
|
+
export interface SitePackageContract {
|
|
95
|
+
/** The host fields the `settings` item carries (the routing map is the pages'). */
|
|
96
|
+
settingsFields: readonly string[];
|
|
97
|
+
/** The host fields the `theme` item carries. */
|
|
98
|
+
themeFields: readonly string[];
|
|
99
|
+
/** The most items one array carries, by v1 key; a key absent is not capped here. */
|
|
100
|
+
limits: Readonly<Record<string, number>>;
|
|
101
|
+
}
|
|
102
|
+
/** The routing map's host field: screen id → address. */
|
|
103
|
+
export declare const SITE_ROUTING_MAP_FIELD = "screens";
|
|
104
|
+
/** A v1 backup's arrays and host block, as far as this module reads them. */
|
|
105
|
+
export type SiteBundle = Record<string, unknown> & {
|
|
106
|
+
host?: Record<string, unknown>;
|
|
107
|
+
};
|
|
108
|
+
type Doc = Record<string, unknown>;
|
|
109
|
+
/**
|
|
110
|
+
* A plain object, from any realm: one whose prototype is some realm's
|
|
111
|
+
* `Object.prototype` (itself prototype-less) or `null`. A request body parsed
|
|
112
|
+
* by the platform's fetch is a plain object of the host realm, not the
|
|
113
|
+
* module's, so identity with this realm's `Object.prototype` is not the test.
|
|
114
|
+
* Class instances — a `Timestamp`, a `Buffer` — are not plain.
|
|
115
|
+
*/
|
|
116
|
+
export declare function isPlainSiteObject(value: unknown): value is Doc;
|
|
117
|
+
/** The kind a screen is listed as: an email design, or a page. */
|
|
118
|
+
export declare function screenPackageKind(screen: Doc): 'page' | 'email';
|
|
119
|
+
/**
|
|
120
|
+
* A v1 backup's documents as package items, in kind order. Each array is
|
|
121
|
+
* capped at the contract's limit for it; a document with no `$id` is not an
|
|
122
|
+
* item. A screen's address in the routing map travels with it as `route`;
|
|
123
|
+
* an address naming a screen the backup does not carry is not an item and
|
|
124
|
+
* is dropped.
|
|
125
|
+
*/
|
|
126
|
+
export declare function siteBundleItems(bundle: SiteBundle, contract: SitePackageContract, kinds?: readonly SitePackageKind[]): SitePackageItem[];
|
|
127
|
+
/** An item as an import writes it: under `targetId`, its references moved. */
|
|
128
|
+
export interface SitePackageWrite {
|
|
129
|
+
/** `<kind>/<id>` in the package. */
|
|
130
|
+
key: string;
|
|
131
|
+
kind: string;
|
|
132
|
+
/** Its id in the package. */
|
|
133
|
+
sourceId: string;
|
|
134
|
+
/** The id it is written under. */
|
|
135
|
+
targetId: string;
|
|
136
|
+
decision: Exclude<PackageItemDecision, 'skip'>;
|
|
137
|
+
content: Doc;
|
|
138
|
+
/** The site item it replaces or merges into, by key. */
|
|
139
|
+
existingKey?: string;
|
|
140
|
+
}
|
|
141
|
+
/** What a v1-shaped write needs: the arrays, and the host fields to merge. */
|
|
142
|
+
export interface SiteBundleWrite {
|
|
143
|
+
bundle: Record<string, Doc[]>;
|
|
144
|
+
/**
|
|
145
|
+
* The host fields to write with `merge: true`: settings and theme fields,
|
|
146
|
+
* and `screens` holding the address of each page written with one.
|
|
147
|
+
*/
|
|
148
|
+
hostPatch: Doc;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Writes as the v1 shape the restore's writers read: each kind's documents
|
|
152
|
+
* under its array, with `$id` set to the id it is written under, and the
|
|
153
|
+
* site's own fields as one host patch.
|
|
154
|
+
*/
|
|
155
|
+
export declare function siteWritesToBundle(writes: readonly SitePackageWrite[], kinds?: ReadonlyMap<string, SitePackageKind>): SiteBundleWrite;
|
|
156
|
+
/** Ids searched for inside text are at least this long, so a word is never one. */
|
|
157
|
+
export declare const SITE_REFERENCE_MIN_ID_LENGTH = 8;
|
|
158
|
+
/** What the items being described can see: every item's kind by its id. */
|
|
159
|
+
export interface SiteReferenceIndex {
|
|
160
|
+
/** The kinds an id is known as, among the items this description can see. */
|
|
161
|
+
kindsOf(id: string): readonly string[];
|
|
162
|
+
/** Whether ids of this kind are searched for inside text. */
|
|
163
|
+
searchable(id: string): boolean;
|
|
164
|
+
}
|
|
165
|
+
/** An index over items (the package's, and the site's when importing). */
|
|
166
|
+
export declare function siteReferenceIndex(items: Iterable<{
|
|
167
|
+
kind: string;
|
|
168
|
+
id: string;
|
|
169
|
+
}>, kinds?: ReadonlyMap<string, SitePackageKind>): SiteReferenceIndex;
|
|
170
|
+
/** What a section answers for its items, by kind. */
|
|
171
|
+
export type SitePackageSectionHooks = Readonly<Record<string, PluginSiteBundleSectionPackage>>;
|
|
172
|
+
/**
|
|
173
|
+
* The items one item depends on: its typed references (fields, node
|
|
174
|
+
* placements, binding tokens) whether or not the item they name is known,
|
|
175
|
+
* then every other known id its content names. Never itself.
|
|
176
|
+
*/
|
|
177
|
+
export declare function siteItemDependencies(item: SitePackageItem, index: SiteReferenceIndex, kinds?: ReadonlyMap<string, SitePackageKind>, sections?: SitePackageSectionHooks): PackageDependency[];
|
|
178
|
+
/** An id map for moving references: an id to its new id, or `null` to drop the reference. */
|
|
179
|
+
export type SiteIdMap = ReadonlyMap<string, string | null>;
|
|
180
|
+
/**
|
|
181
|
+
* The value with every reference in `ids` moved: an exact id, a whole
|
|
182
|
+
* token inside a string, a map key. A dropped reference is `null` in a
|
|
183
|
+
* field, gone from a list or a map, gone as a binding token, and empties
|
|
184
|
+
* any other string it sat in. Unchanged parts keep their identity.
|
|
185
|
+
*/
|
|
186
|
+
export declare function remapSiteReferences<T>(value: T, ids: SiteIdMap): T;
|
|
187
|
+
/** How an item is hashed: by default its content as is. */
|
|
188
|
+
export type SiteItemHasher = (item: SitePackageItem) => Promise<string>;
|
|
189
|
+
/** What an item is called on the import screen, and matched by. */
|
|
190
|
+
export declare function describeSiteItem(item: SitePackageItem, kinds?: ReadonlyMap<string, SitePackageKind>): {
|
|
191
|
+
slug?: string;
|
|
192
|
+
name?: string;
|
|
193
|
+
};
|
|
194
|
+
/** A site package: the manifest, and each item's content by `<kind>/<id>`. */
|
|
195
|
+
export type SitePackage = TransferPackage<Doc>;
|
|
196
|
+
/**
|
|
197
|
+
* Builds a package from items: each hashed (by `hash`, or its content), named,
|
|
198
|
+
* and given its dependencies against `index` — the items themselves, and the
|
|
199
|
+
* site's own when an import is describing what it received.
|
|
200
|
+
*/
|
|
201
|
+
export declare function buildSitePackage(items: readonly SitePackageItem[], options?: {
|
|
202
|
+
hash?: SiteItemHasher;
|
|
203
|
+
index?: SiteReferenceIndex;
|
|
204
|
+
kinds?: ReadonlyMap<string, SitePackageKind>;
|
|
205
|
+
sections?: SitePackageSectionHooks;
|
|
206
|
+
createdAt?: number;
|
|
207
|
+
source?: string;
|
|
208
|
+
}): Promise<SitePackage>;
|
|
209
|
+
/** The package's items, back as items. */
|
|
210
|
+
export declare function sitePackageItems(pkg: SitePackage): SitePackageItem[];
|
|
211
|
+
/**
|
|
212
|
+
* The chosen items, and — with `includeDependencies` — everything they need
|
|
213
|
+
* inside the package, transitively. Keys are `<kind>/<id>`; an unknown key
|
|
214
|
+
* is ignored. The manifest keeps every item's full dependency list, so an
|
|
215
|
+
* import can say which ones the file does not carry.
|
|
216
|
+
*/
|
|
217
|
+
export declare function selectSitePackage(pkg: SitePackage, keys: Iterable<string>, includeDependencies: boolean): SitePackage;
|
|
218
|
+
/** The manifest without the content: the export picker's catalog. */
|
|
219
|
+
export declare function sitePackageCatalog(pkg: SitePackage): PackageManifest;
|
|
220
|
+
/** A package read from a file, or why it cannot be. */
|
|
221
|
+
export type SitePackageRead = {
|
|
222
|
+
ok: true;
|
|
223
|
+
items: SitePackageItem[];
|
|
224
|
+
manifest: PackageManifest;
|
|
225
|
+
unknownKinds: string[];
|
|
226
|
+
} | {
|
|
227
|
+
ok: false;
|
|
228
|
+
problems: string[];
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* A v2 package from untrusted JSON: the manifest checked by the core, every
|
|
232
|
+
* listed item's content present and an object, and items of kinds this
|
|
233
|
+
* site does not read set aside (named in `unknownKinds`) rather than
|
|
234
|
+
* refusing the file — a package from a site with a plugin this one lacks
|
|
235
|
+
* still imports the rest.
|
|
236
|
+
*/
|
|
237
|
+
export declare function readSitePackage(raw: unknown, kinds?: ReadonlyMap<string, SitePackageKind>): SitePackageRead;
|
|
238
|
+
/** One item of the plan the import screen shows. */
|
|
239
|
+
export interface SitePackagePlanItem {
|
|
240
|
+
key: string;
|
|
241
|
+
kind: string;
|
|
242
|
+
id: string;
|
|
243
|
+
name?: string;
|
|
244
|
+
slug?: string;
|
|
245
|
+
status: PackageItemStatus;
|
|
246
|
+
comparison: PackageItemComparison;
|
|
247
|
+
/** The site item it was matched to, and how. */
|
|
248
|
+
existing?: {
|
|
249
|
+
id: string;
|
|
250
|
+
name?: string;
|
|
251
|
+
slug?: string;
|
|
252
|
+
};
|
|
253
|
+
matchedBy?: 'id' | 'slug' | 'name';
|
|
254
|
+
/** What it needs, and of that what neither the package nor the site holds. */
|
|
255
|
+
deps: PackageDependency[];
|
|
256
|
+
missing: PackageDependency[];
|
|
257
|
+
/** The decision proposed, and whether the person must make one. */
|
|
258
|
+
proposed: PackageItemDecision;
|
|
259
|
+
needsChoice: boolean;
|
|
260
|
+
/** Every decision the item may take. */
|
|
261
|
+
choices: PackageItemDecision[];
|
|
262
|
+
}
|
|
263
|
+
/** The plan for a whole package. */
|
|
264
|
+
export interface SitePackagePlan {
|
|
265
|
+
items: SitePackagePlanItem[];
|
|
266
|
+
counts: Record<PackageItemStatus, number>;
|
|
267
|
+
/** Each kind present, with its label and how many items. */
|
|
268
|
+
kinds: Array<{
|
|
269
|
+
kind: string;
|
|
270
|
+
label: string;
|
|
271
|
+
count: number;
|
|
272
|
+
}>;
|
|
273
|
+
}
|
|
274
|
+
/** A site item as the plan compares against it. */
|
|
275
|
+
export type SiteExistingItem = ExistingPackageItem;
|
|
276
|
+
/**
|
|
277
|
+
* Every incoming item against the site: matched by id, then slug, then name
|
|
278
|
+
* within its kind; `identical` when the hashes agree; `missingDependency`
|
|
279
|
+
* when it names an item neither side holds. Proposes create for new items
|
|
280
|
+
* and skip for everything else — replacing is never assumed.
|
|
281
|
+
*/
|
|
282
|
+
export declare function planSitePackageImport(incoming: SitePackage, existing: readonly SiteExistingItem[], kinds?: ReadonlyMap<string, SitePackageKind>): SitePackagePlan;
|
|
283
|
+
/**
|
|
284
|
+
* What to do about a dependency neither side will hold after the import:
|
|
285
|
+
* `import` the package's copy (when the package carries it and the person
|
|
286
|
+
* skipped it), map it to an item the site holds (`mapTo`), `drop` the
|
|
287
|
+
* reference, or `keep` it as it is — pointing at nothing until that item
|
|
288
|
+
* exists.
|
|
289
|
+
*/
|
|
290
|
+
export type SitePackageDependencyChoice = 'import' | 'keep' | 'drop' | {
|
|
291
|
+
mapTo: string;
|
|
292
|
+
};
|
|
293
|
+
/** Whose value one key of a merged item takes. */
|
|
294
|
+
export type SitePackageMergeChoice = 'site' | 'package';
|
|
295
|
+
/** How the import decides. */
|
|
296
|
+
export type SitePackageImportMode =
|
|
297
|
+
/**
|
|
298
|
+
* The person's decisions, each item's own or the proposed one: the
|
|
299
|
+
* import plan's way.
|
|
300
|
+
*/
|
|
301
|
+
'decide'
|
|
302
|
+
/**
|
|
303
|
+
* A whole-site restore: every item under its own id — created where the
|
|
304
|
+
* site lacks the id, replaced where it holds it — whatever its slug or
|
|
305
|
+
* name, exactly as a v1 backup restored.
|
|
306
|
+
*/
|
|
307
|
+
| 'restore';
|
|
308
|
+
export interface ResolveSitePackageInput {
|
|
309
|
+
incoming: SitePackage;
|
|
310
|
+
plan: SitePackagePlan;
|
|
311
|
+
mode: SitePackageImportMode;
|
|
312
|
+
/** The person's decision per item key; the proposed one where absent. */
|
|
313
|
+
decisions?: Readonly<Record<string, PackageItemDecision>>;
|
|
314
|
+
/** The person's choice per dependency key (`<kind>/<id>`). */
|
|
315
|
+
dependencyChoices?: Readonly<Record<string, SitePackageDependencyChoice>>;
|
|
316
|
+
/**
|
|
317
|
+
* For a merged item, whose value each top-level key takes, by item key
|
|
318
|
+
* then key: `site` keeps the site's, `package` takes the file's. A key
|
|
319
|
+
* not named merges as {@link mergeSiteFields} does.
|
|
320
|
+
*/
|
|
321
|
+
mergeChoices?: Readonly<Record<string, Readonly<Record<string, SitePackageMergeChoice>>>>;
|
|
322
|
+
/** The site's items: their content (for merge) and slugs (for keep both). */
|
|
323
|
+
existing: readonly (SiteExistingItem & {
|
|
324
|
+
content?: Doc;
|
|
325
|
+
})[];
|
|
326
|
+
/** A new id for an item kept beside an existing one. */
|
|
327
|
+
newId: () => string;
|
|
328
|
+
kinds?: ReadonlyMap<string, SitePackageKind>;
|
|
329
|
+
sections?: SitePackageSectionHooks;
|
|
330
|
+
}
|
|
331
|
+
/** A warning the import reports beside its writes. */
|
|
332
|
+
export interface SitePackageWarning {
|
|
333
|
+
code: 'droppedReference' | 'danglingReference' | 'mappedReference';
|
|
334
|
+
item: string;
|
|
335
|
+
dependency: string;
|
|
336
|
+
message: string;
|
|
337
|
+
}
|
|
338
|
+
export interface ResolvedSitePackageImport {
|
|
339
|
+
writes: SitePackageWrite[];
|
|
340
|
+
skipped: string[];
|
|
341
|
+
warnings: SitePackageWarning[];
|
|
342
|
+
/** Item key → the id it is written under, for every item that moved. */
|
|
343
|
+
moved: Record<string, string>;
|
|
344
|
+
}
|
|
345
|
+
/** Why the decisions cannot be applied. */
|
|
346
|
+
export declare class SitePackageDecisionError extends Error {
|
|
347
|
+
readonly problems: string[];
|
|
348
|
+
constructor(problems: string[]);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Site fields filled from the incoming item only where the site holds
|
|
352
|
+
* none, at every depth of a plain object: the site's own value wins
|
|
353
|
+
* wherever it has one.
|
|
354
|
+
*/
|
|
355
|
+
export declare function mergeSiteFields(existing: unknown, incoming: unknown): unknown;
|
|
356
|
+
/**
|
|
357
|
+
* The writes an import makes: which items are written, under which ids,
|
|
358
|
+
* with every reference moved — to an item kept beside an existing one, to
|
|
359
|
+
* the site item an incoming one was matched to, to an item the person
|
|
360
|
+
* mapped a missing dependency onto — and the references dropped.
|
|
361
|
+
*/
|
|
362
|
+
export declare function resolveSitePackageImport(input: ResolveSitePackageInput): ResolvedSitePackageImport;
|
|
363
|
+
/** Whether a package carries the format and version this module writes. */
|
|
364
|
+
export declare function isSitePackageFile(raw: unknown): boolean;
|
|
365
|
+
export {};
|