@open-mercato/cli 0.6.8-develop.7100.1.fbf66fca35 → 0.7.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/.turbo/turbo-build.log +1 -7
- package/dist/agentic/guides/module-facts.json +598 -5508
- package/dist/agentic/guides/module-facts.v2.json +598 -5594
- package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
- package/dist/agentic/guides/modules/api_docs/index.md +1 -1
- package/dist/agentic/guides/modules/api_keys/exact-override-targets.md +0 -1
- package/dist/agentic/guides/modules/api_keys/index.md +2 -4
- package/dist/agentic/guides/modules/attachments/di-registrations-rich.md +5 -6
- package/dist/agentic/guides/modules/attachments/di-service-tokens.md +4 -5
- package/dist/agentic/guides/modules/attachments/exact-override-targets.md +5 -6
- package/dist/agentic/guides/modules/attachments/index.md +2 -2
- package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
- package/dist/agentic/guides/modules/auth/di-registrations-rich.md +2 -3
- package/dist/agentic/guides/modules/auth/di-service-tokens.md +2 -3
- package/dist/agentic/guides/modules/auth/exact-override-targets.md +2 -3
- package/dist/agentic/guides/modules/auth/index.md +1 -1
- package/dist/agentic/guides/modules/business_rules/index.md +1 -1
- package/dist/agentic/guides/modules/catalog/incoming-installed-contributions.md +0 -3
- package/dist/agentic/guides/modules/catalog/index.md +2 -2
- package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
- package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
- package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
- package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
- package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
- package/dist/agentic/guides/modules/checkout/index.md +1 -1
- package/dist/agentic/guides/modules/communication_channels/di-registrations-rich.md +8 -9
- package/dist/agentic/guides/modules/communication_channels/exact-override-targets.md +8 -9
- package/dist/agentic/guides/modules/communication_channels/incoming-installed-contributions.md +0 -2
- package/dist/agentic/guides/modules/communication_channels/index.md +3 -3
- package/dist/agentic/guides/modules/configs/index.md +1 -1
- package/dist/agentic/guides/modules/content/index.md +1 -1
- package/dist/agentic/guides/modules/currencies/index.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
- package/dist/agentic/guides/modules/customers/active-extension-bindings.md +3 -6
- package/dist/agentic/guides/modules/customers/contribution-resolutions.md +0 -1
- package/dist/agentic/guides/modules/customers/events.md +1 -2
- package/dist/agentic/guides/modules/customers/incoming-installed-contributions.md +0 -7
- package/dist/agentic/guides/modules/customers/index.md +4 -4
- package/dist/agentic/guides/modules/customers/umes-contributions.md +0 -1
- package/dist/agentic/guides/modules/customers/umes-hosts.md +0 -1
- package/dist/agentic/guides/modules/dashboards/index.md +1 -1
- package/dist/agentic/guides/modules/data_sync/exact-override-targets.md +2 -2
- package/dist/agentic/guides/modules/data_sync/index.md +1 -1
- package/dist/agentic/guides/modules/data_sync/workers.md +2 -2
- package/dist/agentic/guides/modules/design_system/index.md +1 -1
- package/dist/agentic/guides/modules/devices/index.md +1 -1
- package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/exact-override-targets.md +0 -2
- package/dist/agentic/guides/modules/directory/index.md +3 -5
- package/dist/agentic/guides/modules/entities/index.md +1 -1
- package/dist/agentic/guides/modules/eudr/index.md +1 -1
- package/dist/agentic/guides/modules/events/index.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/exact-override-targets.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/workers.md +1 -1
- package/dist/agentic/guides/modules/generators/index.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
- package/dist/agentic/guides/modules/integrations/index.md +1 -1
- package/dist/agentic/guides/modules/messages/index.md +1 -1
- package/dist/agentic/guides/modules/notifications/index.md +1 -1
- package/dist/agentic/guides/modules/onboarding/index.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
- package/dist/agentic/guides/modules/perspectives/index.md +1 -1
- package/dist/agentic/guides/modules/planner/index.md +1 -1
- package/dist/agentic/guides/modules/portal/index.md +1 -1
- package/dist/agentic/guides/modules/progress/index.md +1 -1
- package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
- package/dist/agentic/guides/modules/query_index/index.md +1 -1
- package/dist/agentic/guides/modules/record_locks/index.md +1 -1
- package/dist/agentic/guides/modules/resources/index.md +1 -1
- package/dist/agentic/guides/modules/sales/active-extension-bindings.md +0 -1
- package/dist/agentic/guides/modules/sales/contribution-resolutions.md +0 -1
- package/dist/agentic/guides/modules/sales/exact-override-targets.md +4 -5
- package/dist/agentic/guides/modules/sales/host-extension-points.md +1 -1
- package/dist/agentic/guides/modules/sales/incoming-installed-contributions.md +0 -2
- package/dist/agentic/guides/modules/sales/index.md +3 -3
- package/dist/agentic/guides/modules/sales/setup.md +1 -1
- package/dist/agentic/guides/modules/sales/umes-contributions.md +0 -1
- package/dist/agentic/guides/modules/sales/umes-diagnostics.md +0 -1
- package/dist/agentic/guides/modules/sales/umes-hosts.md +0 -9
- package/dist/agentic/guides/modules/scheduler/cli-commands.md +0 -1
- package/dist/agentic/guides/modules/scheduler/exact-override-targets.md +1 -3
- package/dist/agentic/guides/modules/scheduler/index.md +2 -2
- package/dist/agentic/guides/modules/scheduler/workers.md +1 -2
- package/dist/agentic/guides/modules/search/index.md +1 -1
- package/dist/agentic/guides/modules/security/index.md +1 -1
- package/dist/agentic/guides/modules/security/owned-contract-module-metadata.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
- package/dist/agentic/guides/modules/sso/index.md +1 -1
- package/dist/agentic/guides/modules/staff/index.md +1 -1
- package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
- package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
- package/dist/agentic/guides/modules/translations/index.md +1 -1
- package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
- package/dist/agentic/guides/modules/webhooks/index.md +1 -1
- package/dist/agentic/guides/modules/wms/index.md +1 -1
- package/dist/agentic/guides/modules/workflows/index.md +1 -1
- package/dist/agentic/guides/reference-module-facts.json +2 -2
- package/dist/agentic/guides/reference-modules/example/index.md +1 -1
- package/dist/agentic/guides/upstream/manifest.json +1 -1
- package/dist/agentic/shared/AGENTS.md.template +3 -3
- package/dist/agentic/shared/ai/harness/README.md +2 -2
- package/dist/agentic/shared/ai/harness/RELEASE.md +6 -8
- package/dist/agentic/shared/ai/harness/cases.json +0 -83
- package/dist/agentic/shared/ai/harness/cases.schema.json +4 -4
- package/dist/agentic/shared/ai/harness/validators.json +1 -1
- package/dist/agentic/shared/ai/skills/om-auto-upgrade-0.6.7-to-0.7.0/SKILL.md +12 -3
- package/dist/agentic/shared/scripts/run-agent-harness-release.mjs +11 -37
- package/dist/lib/generators/ast/index.js +1 -4
- package/dist/lib/generators/ast/index.js.map +2 -2
- package/dist/lib/generators/ast/source-file.js +1 -8
- package/dist/lib/generators/ast/source-file.js.map +2 -2
- package/dist/lib/generators/ast/writers.js +1 -9
- package/dist/lib/generators/ast/writers.js.map +2 -2
- package/dist/lib/generators/module-registry.js +189 -424
- package/dist/lib/generators/module-registry.js.map +2 -2
- package/dist/lib/generators/route-manifest-shards.js +1 -4
- package/dist/lib/generators/route-manifest-shards.js.map +2 -2
- package/dist/lib/spawn.js +2 -3
- package/dist/lib/spawn.js.map +2 -2
- package/dist/lib/testing/integration.js +24 -162
- package/dist/lib/testing/integration.js.map +2 -2
- package/dist/mercato.js +0 -14
- package/dist/mercato.js.map +2 -2
- package/package.json +7 -8
- package/src/lib/__tests__/spawn.test.ts +0 -23
- package/src/lib/generators/__tests__/metadata-extraction.test.ts +0 -44
- package/src/lib/generators/__tests__/module-facts.bc-guard.test.ts +8 -32
- package/src/lib/generators/__tests__/module-facts.customers.fixture.test.ts +1 -4
- package/src/lib/generators/__tests__/module-facts.extension-hosts.test.ts +1 -1
- package/src/lib/generators/__tests__/module-subset.test.ts +72 -96
- package/src/lib/generators/__tests__/output-snapshots.test.ts +1 -1
- package/src/lib/generators/__tests__/route-manifest-shards.test.ts +0 -15
- package/src/lib/generators/__tests__/structural-contracts.test.ts +3 -7
- package/src/lib/generators/ast/index.ts +1 -2
- package/src/lib/generators/ast/source-file.ts +0 -13
- package/src/lib/generators/ast/writers.ts +1 -26
- package/src/lib/generators/module-registry.ts +227 -534
- package/src/lib/generators/route-manifest-shards.ts +1 -8
- package/src/lib/spawn.ts +4 -5
- package/src/lib/testing/__tests__/integration.test.ts +0 -435
- package/src/lib/testing/integration.ts +32 -254
- package/src/mercato.ts +0 -27
- package/dist/agentic/guides/modules/api_keys/di-registrations-rich.md +0 -11
- package/dist/agentic/guides/modules/api_keys/di-service-tokens.md +0 -11
- package/dist/agentic/guides/modules/channel_discord/acl-features.md +0 -13
- package/dist/agentic/guides/modules/channel_discord/ai-agents.md +0 -11
- package/dist/agentic/guides/modules/channel_discord/backend-pages.md +0 -11
- package/dist/agentic/guides/modules/channel_discord/cli-commands.md +0 -13
- package/dist/agentic/guides/modules/channel_discord/contribution-resolutions.md +0 -14
- package/dist/agentic/guides/modules/channel_discord/di-registrations-rich.md +0 -12
- package/dist/agentic/guides/modules/channel_discord/exact-override-targets.md +0 -26
- package/dist/agentic/guides/modules/channel_discord/index.md +0 -22
- package/dist/agentic/guides/modules/channel_discord/owned-contract-module-metadata.md +0 -11
- package/dist/agentic/guides/modules/channel_discord/setup.md +0 -11
- package/dist/agentic/guides/modules/channel_discord/umes-contributions.md +0 -14
- package/dist/agentic/guides/modules/channel_discord/workers.md +0 -12
- package/dist/agentic/guides/modules/directory/di-registrations-rich.md +0 -12
- package/dist/agentic/guides/modules/directory/di-service-tokens.md +0 -12
- package/dist/agentic/guides/modules/documents/acl-features.md +0 -17
- package/dist/agentic/guides/modules/documents/backend-pages.md +0 -13
- package/dist/agentic/guides/modules/documents/contribution-resolutions.md +0 -27
- package/dist/agentic/guides/modules/documents/di-registrations-rich.md +0 -21
- package/dist/agentic/guides/modules/documents/domain-commands.md +0 -37
- package/dist/agentic/guides/modules/documents/encryption.md +0 -11
- package/dist/agentic/guides/modules/documents/entities.md +0 -21
- package/dist/agentic/guides/modules/documents/events.md +0 -25
- package/dist/agentic/guides/modules/documents/exact-override-targets.md +0 -39
- package/dist/agentic/guides/modules/documents/index.md +0 -25
- package/dist/agentic/guides/modules/documents/notifications.md +0 -13
- package/dist/agentic/guides/modules/documents/owned-contract-module-metadata.md +0 -11
- package/dist/agentic/guides/modules/documents/setup.md +0 -11
- package/dist/agentic/guides/modules/documents/umes-contributions.md +0 -27
- package/dist/agentic/guides/modules/documents/umes-hosts.md +0 -36
- package/src/__tests__/resolve-queue-abandon-hook.test.ts +0 -39
- package/src/lib/generators/__tests__/__snapshots__/bootstrap-registrations.test.ts.snap +0 -14
- package/src/lib/generators/__tests__/__snapshots__/command-loaders.test.ts.snap +0 -23
- package/src/lib/generators/__tests__/ast-writers-escaping.test.ts +0 -64
- package/src/lib/generators/__tests__/bootstrap-registrations.test.ts +0 -176
- package/src/lib/generators/__tests__/command-loaders.test.ts +0 -239
- package/src/lib/generators/__tests__/generated-registry-imports.test.ts +0 -128
- package/src/lib/generators/__tests__/registry-variant-parity.test.ts +0 -258
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# channel_discord — Workers
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Workers
|
|
6
|
-
|
|
7
|
-
| ID | Metadata | Source |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| channel_discord:gateway | concurrency=1; queue=channel_discord_gateway | [workers/discord-gateway.ts:50](../../../../node_modules/@open-mercato/channel-discord/src/modules/channel_discord/workers/discord-gateway.ts#L50) |
|
|
10
|
-
| channel_discord:interactions | concurrency=5; queue=channel_discord_interactions | [workers/discord-interactions.ts:39](../../../../node_modules/@open-mercato/channel-discord/src/modules/channel_discord/workers/discord-interactions.ts#L39) |
|
|
11
|
-
|
|
12
|
-
<!-- end module facts section: channel_discord/workers -->
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# directory — DI registrations (rich)
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## DI registrations (rich)
|
|
6
|
-
|
|
7
|
-
| Token | Kind | Lifetime | Injection | Provider | Source |
|
|
8
|
-
|---|---|---|---|---|---|
|
|
9
|
-
| organizationHierarchyService | class | scoped | — | DefaultOrganizationHierarchyService | [di.ts:11](../../../../node_modules/@open-mercato/core/src/modules/directory/di.ts#L11) |
|
|
10
|
-
| organizationScopeService | function | scoped | proxy | — | [di.ts:12](../../../../node_modules/@open-mercato/core/src/modules/directory/di.ts#L12) |
|
|
11
|
-
|
|
12
|
-
<!-- end module facts section: directory/di-registrations-rich -->
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# directory — DI service tokens
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## DI service tokens
|
|
6
|
-
|
|
7
|
-
| Token | Source |
|
|
8
|
-
|---|---|
|
|
9
|
-
| organizationHierarchyService | [di.ts:11](../../../../node_modules/@open-mercato/core/src/modules/directory/di.ts#L11) |
|
|
10
|
-
| organizationScopeService | [di.ts:12](../../../../node_modules/@open-mercato/core/src/modules/directory/di.ts#L12) |
|
|
11
|
-
|
|
12
|
-
<!-- end module facts section: directory/di-service-tokens -->
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# documents — ACL features
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## ACL features (7)
|
|
6
|
-
|
|
7
|
-
| Feature | Source |
|
|
8
|
-
|---|---|
|
|
9
|
-
| documents.view | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
10
|
-
| documents.create | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
11
|
-
| documents.edit | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
12
|
-
| documents.delete | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
13
|
-
| documents.share | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
14
|
-
| documents.templates.manage | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
15
|
-
| documents.manage | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
16
|
-
|
|
17
|
-
<!-- end module facts section: documents/acl-features -->
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# documents — Backend pages
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Backend pages
|
|
6
|
-
|
|
7
|
-
| ID / path | Source |
|
|
8
|
-
|---|---|
|
|
9
|
-
| /backend/documents | [backend/documents/page.tsx](../../../../node_modules/@open-mercato/documents/src/modules/documents/backend/documents/page.tsx) |
|
|
10
|
-
| /backend/documents/[id] | [backend/documents/[id]/page.tsx](../../../../node_modules/@open-mercato/documents/src/modules/documents/backend/documents/[id]/page.tsx) |
|
|
11
|
-
| /backend/documents/templates | [backend/documents/templates/page.tsx](../../../../node_modules/@open-mercato/documents/src/modules/documents/backend/documents/templates/page.tsx) |
|
|
12
|
-
|
|
13
|
-
<!-- end module facts section: documents/backend-pages -->
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# documents — Contribution resolutions
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Contribution resolutions
|
|
6
|
-
|
|
7
|
-
| Contribution | Target | Resolution | Activations | Source |
|
|
8
|
-
|---|---|---|---|---|
|
|
9
|
-
| documents.entity-extension.0:customers:customer_entity->documents:document_entity_link | entity:customers:customer_entity @customers | capability-only | — | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
10
|
-
| documents.entity-extension.1:customers:customer_deal->documents:document_entity_link | entity:customers:customer_deal @customers | capability-only | — | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
11
|
-
| documents.entity-extension.2:catalog:catalog_product->documents:document_entity_link | entity:catalog:catalog_product @catalog | capability-only | — | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
12
|
-
| documents.entity-extension.3:catalog:catalog_offer->documents:document_entity_link | entity:catalog:catalog_offer @catalog | capability-only | — | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
13
|
-
| documents.entity-extension.4:sales:sales_quote->documents:document_entity_link | entity:sales:sales_quote @sales | capability-only | — | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
14
|
-
| documents.entity-extension.5:sales:sales_order->documents:document_entity_link | entity:sales:sales_order @sales | capability-only | — | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
15
|
-
| documents.injection.related-documents@crud-form:catalog.product | widget-spot:crud-form:catalog.product @catalog | bound | widget-spot:crud-form:catalog.product:widget-injection-consumer | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
16
|
-
| documents.injection.related-documents@customers.company.detail:details | widget-spot:customers.company.detail:details @customers | bound | widget-spot:customers.company.detail:details:widget-injection-consumer | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
17
|
-
| documents.injection.related-documents@customers.person.detail:details | widget-spot:customers.person.detail:details @customers | bound | widget-spot:customers.person.detail:details:widget-injection-consumer | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
18
|
-
| documents.injection.related-documents@detail:customers.company:footer | widget-spot:detail:customers.company:footer @customers | bound | widget-spot:detail:customers.company:footer:widget-injection-consumer | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
19
|
-
| documents.injection.related-documents@detail:customers.deal:footer | widget-spot:detail:customers.deal:footer @customers | bound | widget-spot:detail:customers.deal:footer:widget-injection-consumer | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
20
|
-
| documents.injection.related-documents@detail:customers.person:footer | widget-spot:detail:customers.person:footer @customers | bound | widget-spot:detail:customers.person:footer:widget-injection-consumer | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
21
|
-
| documents.injection.related-documents@sales.document.detail.order:details | widget-spot:sales.document.detail.order:details | wildcard | — | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
22
|
-
| documents.injection.related-documents@sales.document.detail.quote:details | widget-spot:sales.document.detail.quote:details | wildcard | — | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
23
|
-
| notification:documents.comment.mentioned | module:documents.comment.mentioned @documents | capability-only | — | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
24
|
-
| notification:documents.watch.changed | module:documents.watch.changed | capability-only | — | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
25
|
-
| notification:documents.watch.commented | module:documents.watch.commented | capability-only | — | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
26
|
-
|
|
27
|
-
<!-- end module facts section: documents/contribution-resolutions -->
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# documents — DI registrations (rich)
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## DI registrations (rich)
|
|
6
|
-
|
|
7
|
-
| Token | Kind | Lifetime | Injection | Provider | Source |
|
|
8
|
-
|---|---|---|---|---|---|
|
|
9
|
-
| Document | value | — | — | — | [di.ts:19](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L19) |
|
|
10
|
-
| DocumentAttachment | value | — | — | — | [di.ts:20](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L20) |
|
|
11
|
-
| DocumentComment | value | — | — | — | [di.ts:21](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L21) |
|
|
12
|
-
| DocumentContent | value | — | — | — | [di.ts:22](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L22) |
|
|
13
|
-
| DocumentEntityLink | value | — | — | — | [di.ts:24](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L24) |
|
|
14
|
-
| DocumentFavorite | value | — | — | — | [di.ts:25](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L25) |
|
|
15
|
-
| DocumentFolder | value | — | — | — | [di.ts:23](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L23) |
|
|
16
|
-
| DocumentShare | value | — | — | — | [di.ts:26](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L26) |
|
|
17
|
-
| DocumentTemplate | value | — | — | — | [di.ts:27](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L27) |
|
|
18
|
-
| DocumentVersion | value | — | — | — | [di.ts:28](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L28) |
|
|
19
|
-
| DocumentWatcher | value | — | — | — | [di.ts:29](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L29) |
|
|
20
|
-
|
|
21
|
-
<!-- end module facts section: documents/di-registrations-rich -->
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# documents — Domain commands
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Domain commands
|
|
6
|
-
|
|
7
|
-
| ID | Metadata | Source |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| documents.attachment.create | — | [commands/attachments.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/attachments.ts) |
|
|
10
|
-
| documents.attachment.delete | — | [commands/attachments.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/attachments.ts) |
|
|
11
|
-
| documents.comment.create | — | [commands/comments.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/comments.ts) |
|
|
12
|
-
| documents.comment.resolve | — | [commands/comments.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/comments.ts) |
|
|
13
|
-
| documents.content.replace | — | [commands/content.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/content.ts) |
|
|
14
|
-
| documents.document.create | — | [commands/document-crud.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/document-crud.ts) |
|
|
15
|
-
| documents.document.delete | — | [commands/document-crud.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/document-crud.ts) |
|
|
16
|
-
| documents.document.duplicate | — | [commands/duplicate.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/duplicate.ts) |
|
|
17
|
-
| documents.document.instantiate | — | [commands/documents.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/documents.ts) |
|
|
18
|
-
| documents.document.update | — | [commands/document-crud.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/document-crud.ts) |
|
|
19
|
-
| documents.favorite.create | — | [commands/favorites.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/favorites.ts) |
|
|
20
|
-
| documents.favorite.delete | — | [commands/favorites.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/favorites.ts) |
|
|
21
|
-
| documents.folder.create | — | [commands/folders.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/folders.ts) |
|
|
22
|
-
| documents.folder.delete | — | [commands/folders.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/folders.ts) |
|
|
23
|
-
| documents.folder.update | — | [commands/folders.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/folders.ts) |
|
|
24
|
-
| documents.link.create | — | [commands/links.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/links.ts) |
|
|
25
|
-
| documents.link.delete | — | [commands/links.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/links.ts) |
|
|
26
|
-
| documents.share.create | — | [commands/shares.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/shares.ts) |
|
|
27
|
-
| documents.share.delete | — | [commands/shares.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/shares.ts) |
|
|
28
|
-
| documents.share.update | — | [commands/shares.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/shares.ts) |
|
|
29
|
-
| documents.template.create | — | [commands/templates.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/templates.ts) |
|
|
30
|
-
| documents.template.delete | — | [commands/templates.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/templates.ts) |
|
|
31
|
-
| documents.template.update | — | [commands/templates.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/templates.ts) |
|
|
32
|
-
| documents.version.create | — | [commands/versions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/versions.ts) |
|
|
33
|
-
| documents.version.restore | — | [commands/versions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/versions.ts) |
|
|
34
|
-
| documents.watch.create | — | [commands/watchers.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/watchers.ts) |
|
|
35
|
-
| documents.watch.delete | — | [commands/watchers.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/commands/watchers.ts) |
|
|
36
|
-
|
|
37
|
-
<!-- end module facts section: documents/domain-commands -->
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# documents — Encryption
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Encryption
|
|
6
|
-
|
|
7
|
-
| ID | Metadata | Source |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| documents:document_entity_link | fields=label_snapshot | [encryption.ts:8](../../../../node_modules/@open-mercato/documents/src/modules/documents/encryption.ts#L8) |
|
|
10
|
-
|
|
11
|
-
<!-- end module facts section: documents/encryption -->
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# documents — Entities
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Entities
|
|
6
|
-
|
|
7
|
-
| Entity ID | Class | Table | Editable | CustomFields | Source |
|
|
8
|
-
|---|---|---|---|---|---|
|
|
9
|
-
| documents:document | Document | documents | yes | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
10
|
-
| documents:document_content | DocumentContent | document_contents | yes | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
11
|
-
| documents:document_folder | DocumentFolder | document_folders | yes | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
12
|
-
| documents:document_share | DocumentShare | document_shares | yes | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
13
|
-
| documents:document_favorite | DocumentFavorite | document_favorites | no | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
14
|
-
| documents:document_watcher | DocumentWatcher | document_watchers | no | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
15
|
-
| documents:document_comment | DocumentComment | document_comments | yes | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
16
|
-
| documents:document_version | DocumentVersion | document_versions | no | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
17
|
-
| documents:document_attachment | DocumentAttachment | document_attachments | yes | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
18
|
-
| documents:document_template | DocumentTemplate | document_templates | yes | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
19
|
-
| documents:document_entity_link | DocumentEntityLink | document_entity_links | yes | no | [data/entities.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/entities.ts) |
|
|
20
|
-
|
|
21
|
-
<!-- end module facts section: documents/entities -->
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# documents — Events
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Events (15)
|
|
6
|
-
|
|
7
|
-
| ID | Category | Entity | Browser transport | Source |
|
|
8
|
-
|---|---|---|---|---|
|
|
9
|
-
| documents.document.created | crud | document | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
10
|
-
| documents.document.updated | crud | document | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
11
|
-
| documents.document.deleted | crud | document | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
12
|
-
| documents.document.archived | lifecycle | document | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
13
|
-
| documents.document.unarchived | lifecycle | document | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
14
|
-
| documents.document.duplicated | lifecycle | document | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
15
|
-
| documents.document.shared | lifecycle | document | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
16
|
-
| documents.document.unshared | lifecycle | document | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
17
|
-
| documents.comment.created | crud | comment | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
18
|
-
| documents.comment.mentioned | lifecycle | comment | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
19
|
-
| documents.comment.resolved | lifecycle | comment | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
20
|
-
| documents.version.created | crud | version | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
21
|
-
| documents.version.restored | lifecycle | version | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
22
|
-
| documents.link.created | crud | link | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
23
|
-
| documents.link.deleted | crud | link | — | [events.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/events.ts) |
|
|
24
|
-
|
|
25
|
-
<!-- end module facts section: documents/events -->
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# documents — Exact override targets
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Exact override targets
|
|
6
|
-
|
|
7
|
-
| Domain | Path / key | Supported modes | Referenced fact | Source |
|
|
8
|
-
|---|---|---|---|---|
|
|
9
|
-
| acl | `overrides.acl.features["documents.create"]` | disable-replace | aclFeatures:documents.create | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
10
|
-
| acl | `overrides.acl.features["documents.delete"]` | disable-replace | aclFeatures:documents.delete | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
11
|
-
| acl | `overrides.acl.features["documents.edit"]` | disable-replace | aclFeatures:documents.edit | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
12
|
-
| acl | `overrides.acl.features["documents.manage"]` | disable-replace | aclFeatures:documents.manage | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
13
|
-
| acl | `overrides.acl.features["documents.share"]` | disable-replace | aclFeatures:documents.share | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
14
|
-
| acl | `overrides.acl.features["documents.templates.manage"]` | disable-replace | aclFeatures:documents.templates.manage | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
15
|
-
| acl | `overrides.acl.features["documents.view"]` | disable-replace | aclFeatures:documents.view | [acl.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/acl.ts) |
|
|
16
|
-
| di | `overrides.di["Document"]` | disable-replace | ownedContracts.di-registration:Document | [di.ts:19](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L19) |
|
|
17
|
-
| di | `overrides.di["DocumentAttachment"]` | disable-replace | ownedContracts.di-registration:DocumentAttachment | [di.ts:20](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L20) |
|
|
18
|
-
| di | `overrides.di["DocumentComment"]` | disable-replace | ownedContracts.di-registration:DocumentComment | [di.ts:21](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L21) |
|
|
19
|
-
| di | `overrides.di["DocumentContent"]` | disable-replace | ownedContracts.di-registration:DocumentContent | [di.ts:22](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L22) |
|
|
20
|
-
| di | `overrides.di["DocumentEntityLink"]` | disable-replace | ownedContracts.di-registration:DocumentEntityLink | [di.ts:24](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L24) |
|
|
21
|
-
| di | `overrides.di["DocumentFavorite"]` | disable-replace | ownedContracts.di-registration:DocumentFavorite | [di.ts:25](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L25) |
|
|
22
|
-
| di | `overrides.di["DocumentFolder"]` | disable-replace | ownedContracts.di-registration:DocumentFolder | [di.ts:23](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L23) |
|
|
23
|
-
| di | `overrides.di["DocumentShare"]` | disable-replace | ownedContracts.di-registration:DocumentShare | [di.ts:26](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L26) |
|
|
24
|
-
| di | `overrides.di["DocumentTemplate"]` | disable-replace | ownedContracts.di-registration:DocumentTemplate | [di.ts:27](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L27) |
|
|
25
|
-
| di | `overrides.di["DocumentVersion"]` | disable-replace | ownedContracts.di-registration:DocumentVersion | [di.ts:28](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L28) |
|
|
26
|
-
| di | `overrides.di["DocumentWatcher"]` | disable-replace | ownedContracts.di-registration:DocumentWatcher | [di.ts:29](../../../../node_modules/@open-mercato/documents/src/modules/documents/di.ts#L29) |
|
|
27
|
-
| encryption | `overrides.encryption.maps["documents:document_entity_link"]` | disable-replace | ownedContracts.encryption:documents:document_entity_link | [encryption.ts:8](../../../../node_modules/@open-mercato/documents/src/modules/documents/encryption.ts#L8) |
|
|
28
|
-
| notifications | `overrides.notifications.types["documents.comment.mentioned"]` | disable-replace | notifications:documents.comment.mentioned | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
29
|
-
| notifications | `overrides.notifications.types["documents.watch.changed"]` | disable-replace | notifications:documents.watch.changed | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
30
|
-
| notifications | `overrides.notifications.types["documents.watch.commented"]` | disable-replace | notifications:documents.watch.commented | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
31
|
-
| routes | `overrides.routes.pages["backend:/backend/documents"]` | disable-replace | backendPages:/backend/documents | [backend/documents/page.tsx](../../../../node_modules/@open-mercato/documents/src/modules/documents/backend/documents/page.tsx) |
|
|
32
|
-
| routes | `overrides.routes.pages["backend:/backend/documents/[id]"]` | disable-replace | backendPages:/backend/documents/[id] | [backend/documents/[id]/page.tsx](../../../../node_modules/@open-mercato/documents/src/modules/documents/backend/documents/[id]/page.tsx) |
|
|
33
|
-
| routes | `overrides.routes.pages["backend:/backend/documents/templates"]` | disable-replace | backendPages:/backend/documents/templates | [backend/documents/templates/page.tsx](../../../../node_modules/@open-mercato/documents/src/modules/documents/backend/documents/templates/page.tsx) |
|
|
34
|
-
| setup | `overrides.setup.defaultRoleFeatures` | replace | ownedContracts.setup:documents:setup | [setup.ts:4](../../../../node_modules/@open-mercato/documents/src/modules/documents/setup.ts#L4) |
|
|
35
|
-
| setup | `overrides.setup.onTenantCreated` | replace | ownedContracts.setup:documents:setup | [setup.ts:4](../../../../node_modules/@open-mercato/documents/src/modules/documents/setup.ts#L4) |
|
|
36
|
-
| setup | `overrides.setup.seedDefaults` | replace | ownedContracts.setup:documents:setup | [setup.ts:4](../../../../node_modules/@open-mercato/documents/src/modules/documents/setup.ts#L4) |
|
|
37
|
-
| widgets | `overrides.widgets.injection["documents.injection.related-documents"]` | disable-replace | extensionSurfaces.contributions:documents.injection.related-documents@customers.company.detail:details | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
38
|
-
|
|
39
|
-
<!-- end module facts section: documents/exact-override-targets -->
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# documents — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/documents 0.6.8-develop.7100.1.fbf66fca35; core 0.6.8-develop.7100.1.fbf66fca35 — R1 staleness stamp -->
|
|
3
|
-
Source root: node_modules/@open-mercato/documents/src/modules/documents
|
|
4
|
-
|
|
5
|
-
## Sections
|
|
6
|
-
|
|
7
|
-
- [Entities](entities.md) — ~3 KB — Generated entities facts for documents.
|
|
8
|
-
- [Events](events.md) — ~3 KB — Generated events facts for documents.
|
|
9
|
-
- [ACL features](acl-features.md) — ~1 KB — Generated acl features facts for documents.
|
|
10
|
-
- [Backend pages](backend-pages.md) — ~1 KB — Generated backend pages facts for documents.
|
|
11
|
-
- [UMES hosts](umes-hosts.md) — ~5 KB — Generated umes hosts facts for documents.
|
|
12
|
-
- [UMES contributions](umes-contributions.md) — ~7 KB — Generated umes contributions facts for documents.
|
|
13
|
-
- [Contribution resolutions](contribution-resolutions.md) — ~5 KB — Generated contribution resolutions facts for documents.
|
|
14
|
-
- [Notifications](notifications.md) — ~1 KB — Generated notifications facts for documents.
|
|
15
|
-
- [Exact override targets](exact-override-targets.md) — ~7 KB — Generated exact override targets facts for documents.
|
|
16
|
-
- [Owned contract — module metadata](owned-contract-module-metadata.md) — ~1 KB — Generated owned contract — module metadata facts for documents.
|
|
17
|
-
- [Domain commands](domain-commands.md) — ~5 KB — Generated domain commands facts for documents.
|
|
18
|
-
- [Setup](setup.md) — ~1 KB — Generated setup facts for documents.
|
|
19
|
-
- [Encryption](encryption.md) — ~1 KB — Generated encryption facts for documents.
|
|
20
|
-
- [DI registrations (rich)](di-registrations-rich.md) — ~2 KB — Generated di registrations (rich) facts for documents.
|
|
21
|
-
|
|
22
|
-
Read only the section files needed for the task; every section ends with a completion marker.
|
|
23
|
-
A section absent from this list has no facts for documents; this index is complete only when the read reaches the marker below.
|
|
24
|
-
|
|
25
|
-
<!-- end module facts: documents — 14 sections -->
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# documents — Notifications
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Notifications
|
|
6
|
-
|
|
7
|
-
| Notification ID | Source |
|
|
8
|
-
|---|---|
|
|
9
|
-
| documents.comment.mentioned | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
10
|
-
| documents.watch.commented | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
11
|
-
| documents.watch.changed | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
12
|
-
|
|
13
|
-
<!-- end module facts section: documents/notifications -->
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# documents — Owned contract — module metadata
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Owned contract — module metadata
|
|
6
|
-
|
|
7
|
-
| ID | Metadata | Source |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| documents | ejectable=false; name=documents; requires=auth, directory, attachments; version=0.1.0 | [index.ts:4](../../../../node_modules/@open-mercato/documents/src/modules/documents/index.ts#L4) |
|
|
10
|
-
|
|
11
|
-
<!-- end module facts section: documents/owned-contract-module-metadata -->
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# documents — Setup
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## Setup
|
|
6
|
-
|
|
7
|
-
| ID | Metadata | Source |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| documents:setup | hooks=onTenantCreated, seedDefaults; roles=admin, employee | [setup.ts:4](../../../../node_modules/@open-mercato/documents/src/modules/documents/setup.ts#L4) |
|
|
10
|
-
|
|
11
|
-
<!-- end module facts section: documents/setup -->
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# documents — UMES contributions
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## UMES contributions
|
|
6
|
-
|
|
7
|
-
| ID | Kind | Target | Phase / operations | Contract | Resolution | Source |
|
|
8
|
-
|---|---|---|---|---|---|---|
|
|
9
|
-
| documents.injection.related-documents@crud-form:catalog.product | crud-form | crud-form:catalog.product | — | entityId=catalog.product; payload=render; requestHeaderCapability=false | exact | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
10
|
-
| documents.entity-extension.0:customers:customer_entity->documents:document_entity_link | entity-extension | customers:customer_entity | — | extensionEntityId=documents:document_entity_link; hostEntityId=customers:customer_entity; linkId=id:customer_entity_id; orphanContract=optional; scopeContract=tenant-and-organization | fact-ref | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
11
|
-
| documents.entity-extension.1:customers:customer_deal->documents:document_entity_link | entity-extension | customers:customer_deal | — | extensionEntityId=documents:document_entity_link; hostEntityId=customers:customer_deal; linkId=id:deal_id; orphanContract=optional; scopeContract=tenant-and-organization | fact-ref | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
12
|
-
| documents.entity-extension.2:catalog:catalog_product->documents:document_entity_link | entity-extension | catalog:catalog_product | — | extensionEntityId=documents:document_entity_link; hostEntityId=catalog:catalog_product; linkId=id:product_id; orphanContract=optional; scopeContract=tenant-and-organization | exact | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
13
|
-
| documents.entity-extension.3:catalog:catalog_offer->documents:document_entity_link | entity-extension | catalog:catalog_offer | — | extensionEntityId=documents:document_entity_link; hostEntityId=catalog:catalog_offer; linkId=id:catalog_offer_id; orphanContract=optional; scopeContract=tenant-and-organization | fact-ref | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
14
|
-
| documents.entity-extension.4:sales:sales_quote->documents:document_entity_link | entity-extension | sales:sales_quote | — | extensionEntityId=documents:document_entity_link; hostEntityId=sales:sales_quote; linkId=id:quote_id; orphanContract=optional; scopeContract=tenant-and-organization | fact-ref | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
15
|
-
| documents.entity-extension.5:sales:sales_order->documents:document_entity_link | entity-extension | sales:sales_order | — | extensionEntityId=documents:document_entity_link; hostEntityId=sales:sales_order; linkId=id:sales_order_id; orphanContract=optional; scopeContract=tenant-and-organization | fact-ref | [data/extensions.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/data/extensions.ts) |
|
|
16
|
-
| notification:documents.comment.mentioned | specialized-registry | documents.comment.mentioned | — | registry=notification; registryId=documents.comment.mentioned; specialistRoute=notifications | fact-ref | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
17
|
-
| notification:documents.watch.changed | specialized-registry | documents.watch.changed | — | registry=notification; registryId=documents.watch.changed; specialistRoute=notifications | fact-ref | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
18
|
-
| notification:documents.watch.commented | specialized-registry | documents.watch.commented | — | registry=notification; registryId=documents.watch.commented; specialistRoute=notifications | fact-ref | [notifications.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/notifications.ts) |
|
|
19
|
-
| documents.injection.related-documents@customers.company.detail:details | widget | customers.company.detail:details | — | executionGuard=host; payload=render; registryKey=documents.injection.related-documents | exact | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
20
|
-
| documents.injection.related-documents@customers.person.detail:details | widget | customers.person.detail:details | — | executionGuard=host; payload=render; registryKey=documents.injection.related-documents | exact | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
21
|
-
| documents.injection.related-documents@detail:customers.company:footer | widget | detail:customers.company:footer | — | executionGuard=host; payload=render; registryKey=documents.injection.related-documents | exact | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
22
|
-
| documents.injection.related-documents@detail:customers.deal:footer | widget | detail:customers.deal:footer | — | executionGuard=host; payload=render; registryKey=documents.injection.related-documents | exact | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
23
|
-
| documents.injection.related-documents@detail:customers.person:footer | widget | detail:customers.person:footer | — | executionGuard=host; payload=render; registryKey=documents.injection.related-documents | exact | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
24
|
-
| documents.injection.related-documents@sales.document.detail.order:details | widget | sales.document.detail.order:details | — | executionGuard=host; payload=render; registryKey=documents.injection.related-documents | pattern | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
25
|
-
| documents.injection.related-documents@sales.document.detail.quote:details | widget | sales.document.detail.quote:details | — | executionGuard=host; payload=render; registryKey=documents.injection.related-documents | pattern | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/documents/src/modules/documents/widgets/injection-table.ts) |
|
|
26
|
-
|
|
27
|
-
<!-- end module facts section: documents/umes-contributions -->
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# documents — UMES hosts
|
|
2
|
-
|
|
3
|
-
[Back to module index](index.md)
|
|
4
|
-
|
|
5
|
-
## UMES hosts
|
|
6
|
-
|
|
7
|
-
| ID / pattern | Family | Supports | Context | Stability | Source |
|
|
8
|
-
|---|---|---|---|---|---|
|
|
9
|
-
| documents:document | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document |
|
|
10
|
-
| documents:document_attachment | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_attachment |
|
|
11
|
-
| documents:document_comment | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_comment |
|
|
12
|
-
| documents:document_content | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_content |
|
|
13
|
-
| documents:document_entity_link | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_entity_link |
|
|
14
|
-
| documents:document_favorite | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_favorite |
|
|
15
|
-
| documents:document_folder | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_folder |
|
|
16
|
-
| documents:document_share | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_share |
|
|
17
|
-
| documents:document_template | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_template |
|
|
18
|
-
| documents:document_version | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_version |
|
|
19
|
-
| documents:document_watcher | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:documents:document_watcher |
|
|
20
|
-
| documents.comment.created | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.comment.created |
|
|
21
|
-
| documents.comment.mentioned | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.comment.mentioned |
|
|
22
|
-
| documents.comment.resolved | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.comment.resolved |
|
|
23
|
-
| documents.document.archived | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.document.archived |
|
|
24
|
-
| documents.document.created | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.document.created |
|
|
25
|
-
| documents.document.deleted | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.document.deleted |
|
|
26
|
-
| documents.document.duplicated | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.document.duplicated |
|
|
27
|
-
| documents.document.shared | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.document.shared |
|
|
28
|
-
| documents.document.unarchived | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.document.unarchived |
|
|
29
|
-
| documents.document.unshared | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.document.unshared |
|
|
30
|
-
| documents.document.updated | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.document.updated |
|
|
31
|
-
| documents.link.created | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.link.created |
|
|
32
|
-
| documents.link.deleted | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.link.deleted |
|
|
33
|
-
| documents.version.created | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.version.created |
|
|
34
|
-
| documents.version.restored | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:documents.version.restored |
|
|
35
|
-
|
|
36
|
-
<!-- end module facts section: documents/umes-hosts -->
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { resolveQueueAbandonHook } from '../mercato'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Covers the CLI's per-queue pick, which is the last link between worker metadata and the queue the
|
|
5
|
-
* worker runs on. The warning exists because two handlers on one queue each expecting to report is a
|
|
6
|
-
* wiring mistake, and a silent first-wins would hide it.
|
|
7
|
-
*/
|
|
8
|
-
describe('resolveQueueAbandonHook', () => {
|
|
9
|
-
const hookA = jest.fn(async () => {})
|
|
10
|
-
const hookB = jest.fn(async () => {})
|
|
11
|
-
|
|
12
|
-
it('returns undefined when no worker declares one', () => {
|
|
13
|
-
const warn = jest.fn()
|
|
14
|
-
expect(resolveQueueAbandonHook('q', [{ id: 'a' }, { id: 'b' }], warn)).toBeUndefined()
|
|
15
|
-
expect(warn).not.toHaveBeenCalled()
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
it('returns the single declared callback without warning', () => {
|
|
19
|
-
const warn = jest.fn()
|
|
20
|
-
expect(resolveQueueAbandonHook('q', [{ id: 'a' }, { id: 'b', onJobAbandoned: hookA }], warn)).toBe(hookA)
|
|
21
|
-
expect(warn).not.toHaveBeenCalled()
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
it('keeps the first and warns, naming the queue and every declaring worker', () => {
|
|
25
|
-
const warn = jest.fn()
|
|
26
|
-
const picked = resolveQueueAbandonHook(
|
|
27
|
-
'data-sync-import',
|
|
28
|
-
[{ id: 'first', onJobAbandoned: hookA }, { id: 'second', onJobAbandoned: hookB }],
|
|
29
|
-
warn,
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
expect(picked).toBe(hookA)
|
|
33
|
-
expect(warn).toHaveBeenCalledTimes(1)
|
|
34
|
-
const message = warn.mock.calls[0][0] as string
|
|
35
|
-
expect(message).toContain('data-sync-import')
|
|
36
|
-
expect(message).toContain('first')
|
|
37
|
-
expect(message).toContain('second')
|
|
38
|
-
})
|
|
39
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`renderBootstrapRegistrationsFile pins the emitted text so emitter changes surface as a reviewable diff 1`] = `
|
|
4
|
-
"// AUTO-GENERATED by mercato generate registry
|
|
5
|
-
import { backendRoutes } from "./backend-routes.generated";
|
|
6
|
-
import { frontendRoutes } from "./frontend-routes.generated";
|
|
7
|
-
import { registerBackendRouteManifests, registerFrontendRouteManifests } from "@open-mercato/shared/modules/registry";
|
|
8
|
-
|
|
9
|
-
export function runBootstrapRegistrations(): void {
|
|
10
|
-
registerBackendRouteManifests(backendRoutes)
|
|
11
|
-
registerFrontendRouteManifests(frontendRoutes)
|
|
12
|
-
}
|
|
13
|
-
"
|
|
14
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`renderCommandLoadersFile pins the emitted text so emitter changes surface as a reviewable diff 1`] = `
|
|
4
|
-
"// AUTO-GENERATED by mercato generate command-loaders
|
|
5
|
-
import type { CommandLoader } from "@open-mercato/shared/lib/commands";
|
|
6
|
-
|
|
7
|
-
export const commandLoaderEntries: CommandLoader[] = [
|
|
8
|
-
{
|
|
9
|
-
moduleId: "catalog",
|
|
10
|
-
id: "catalog.products.create",
|
|
11
|
-
key: "catalog:commands:products",
|
|
12
|
-
load: () => import("@open-mercato/core/modules/catalog/commands/products")
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
moduleId: "catalog",
|
|
16
|
-
key: "catalog:commands:products",
|
|
17
|
-
load: () => import("@open-mercato/core/modules/catalog/commands/products")
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
export default commandLoaderEntries;
|
|
22
|
-
"
|
|
23
|
-
`;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `stringLiteral` is the only place a JavaScript string value becomes source text in the
|
|
3
|
-
* AST generator stack. It must escape the characters that are legal inside a JSON string
|
|
4
|
-
* but hazardous inside an emitted source file, matching the escaping the string emitters
|
|
5
|
-
* applied before they were retired — otherwise the migration would have silently dropped
|
|
6
|
-
* that hardening from every generated file.
|
|
7
|
-
*/
|
|
8
|
-
import { escapeGeneratedJsonLiteral, stringLiteral, writeValue } from '../ast/writers'
|
|
9
|
-
import type { CodeBlockWriter } from 'ts-morph'
|
|
10
|
-
|
|
11
|
-
function render(value: unknown): string {
|
|
12
|
-
const chunks: string[] = []
|
|
13
|
-
const writer = { write: (text: string) => { chunks.push(text) } } as unknown as CodeBlockWriter
|
|
14
|
-
writeValue(writer, value as never)
|
|
15
|
-
return chunks.join('')
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
describe('stringLiteral', () => {
|
|
19
|
-
it('escapes angle brackets so an emitted value cannot close a surrounding script context', () => {
|
|
20
|
-
expect(stringLiteral('a</script>b')).toBe('"a\\u003c/script\\u003eb"')
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
it('escapes the line and paragraph separators older parsers reject inside a string literal', () => {
|
|
24
|
-
expect(stringLiteral('a
b
c')).toBe('"a\\u2028b\\u2029c"')
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
it('leaves an ordinary string as plain JSON', () => {
|
|
28
|
-
expect(stringLiteral('catalog:commands:products')).toBe('"catalog:commands:products"')
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
it('still escapes what JSON escapes', () => {
|
|
32
|
-
expect(stringLiteral('a"b\\c\nd')).toBe('"a\\"b\\\\c\\nd"')
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
it('denotes the same runtime string after escaping', () => {
|
|
36
|
-
const original = 'a</script>b
c'
|
|
37
|
-
expect(JSON.parse(stringLiteral(original))).toBe(original)
|
|
38
|
-
})
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
describe('escapeGeneratedJsonLiteral', () => {
|
|
42
|
-
it('hardens strings nested inside a serialized object', () => {
|
|
43
|
-
const literal = escapeGeneratedJsonLiteral(JSON.stringify({ GET: { title: 'a</script>b' } }))
|
|
44
|
-
expect(literal).toBe('{"GET":{"title":"a\\u003c/script\\u003eb"}}')
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
it('keeps the object literal parseable back to the same value', () => {
|
|
48
|
-
const value = { GET: { title: 'a</script>b
c
d' } }
|
|
49
|
-
expect(JSON.parse(escapeGeneratedJsonLiteral(JSON.stringify(value)))).toEqual(value)
|
|
50
|
-
})
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
describe('writeValue', () => {
|
|
54
|
-
it('routes string values through the escaping helper', () => {
|
|
55
|
-
expect(render('a<b>c')).toBe('"a\\u003cb\\u003ec"')
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
it('leaves non-string primitives alone', () => {
|
|
59
|
-
expect(render(42)).toBe('42')
|
|
60
|
-
expect(render(true)).toBe('true')
|
|
61
|
-
expect(render(null)).toBe('null')
|
|
62
|
-
expect(render(undefined)).toBe('undefined')
|
|
63
|
-
})
|
|
64
|
-
})
|