@acorex-platform/framework-shared 0.0.15 → 0.0.20
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/background-job/src/lib/background-job-result.util.d.ts.map +1 -1
- package/background-job/src/lib/background-job-result.util.js +2 -3
- package/background-job/src/lib/background-job-result.util.js.map +1 -1
- package/background-job/src/lib/background-job.constants.d.ts +7 -7
- package/background-job/src/lib/background-job.constants.d.ts.map +1 -1
- package/background-job/src/lib/background-job.constants.js +19 -6
- package/background-job/src/lib/background-job.constants.js.map +1 -1
- package/background-job/src/lib/background-job.types.d.ts +6 -3
- package/background-job/src/lib/background-job.types.d.ts.map +1 -1
- package/background-job/src/lib/background-job.types.js +12 -11
- package/background-job/src/lib/background-job.types.js.map +1 -1
- package/core/src/lib/context-definition/context-definition.types.d.ts +24 -0
- package/core/src/lib/context-definition/context-definition.types.d.ts.map +1 -0
- package/core/src/lib/context-definition/context-definition.types.js +10 -0
- package/core/src/lib/context-definition/context-definition.types.js.map +1 -0
- package/core/src/lib/context-definition/index.d.ts +2 -0
- package/core/src/lib/context-definition/index.d.ts.map +1 -0
- package/core/src/lib/context-definition/index.js +5 -0
- package/core/src/lib/context-definition/index.js.map +1 -0
- package/core/src/lib/core/response.types.d.ts +2 -4
- package/core/src/lib/core/response.types.d.ts.map +1 -1
- package/core/src/lib/core/response.types.js +0 -1
- package/core/src/lib/core/response.types.js.map +1 -1
- package/core/src/lib/data/data.types.d.ts +5 -0
- package/core/src/lib/data/data.types.d.ts.map +1 -1
- package/core/src/lib/data/data.types.js.map +1 -1
- package/core/src/lib/domain/address.types.d.ts +6 -3
- package/core/src/lib/domain/address.types.d.ts.map +1 -1
- package/core/src/lib/domain/address.types.js +0 -1
- package/core/src/lib/domain/address.types.js.map +1 -1
- package/core/src/lib/domain/format-address.util.d.ts +1 -1
- package/core/src/lib/domain/format-address.util.d.ts.map +1 -1
- package/core/src/lib/domain/format-address.util.js +11 -7
- package/core/src/lib/domain/format-address.util.js.map +1 -1
- package/core/src/lib/errors/index.d.ts +3 -0
- package/core/src/lib/errors/index.d.ts.map +1 -0
- package/core/src/lib/errors/index.js +6 -0
- package/core/src/lib/errors/index.js.map +1 -0
- package/core/src/lib/errors/platform-error-codes.d.ts +17 -0
- package/core/src/lib/errors/platform-error-codes.d.ts.map +1 -0
- package/core/src/lib/errors/platform-error-codes.js +21 -0
- package/core/src/lib/errors/platform-error-codes.js.map +1 -0
- package/core/src/lib/errors/request-error.d.ts +35 -0
- package/core/src/lib/errors/request-error.d.ts.map +1 -0
- package/core/src/lib/errors/request-error.js +116 -0
- package/core/src/lib/errors/request-error.js.map +1 -0
- package/core/src/lib/expression-evaluator/expression-evaluator-scope.types.d.ts +20 -0
- package/core/src/lib/expression-evaluator/expression-evaluator-scope.types.d.ts.map +1 -0
- package/core/src/lib/expression-evaluator/expression-evaluator-scope.types.js +25 -0
- package/core/src/lib/expression-evaluator/expression-evaluator-scope.types.js.map +1 -0
- package/core/src/lib/expression-evaluator/expression-evaluator.engine.d.ts +29 -0
- package/core/src/lib/expression-evaluator/expression-evaluator.engine.d.ts.map +1 -0
- package/core/src/lib/expression-evaluator/expression-evaluator.engine.js +111 -0
- package/core/src/lib/expression-evaluator/expression-evaluator.engine.js.map +1 -0
- package/core/src/lib/expression-evaluator/index.d.ts +3 -0
- package/core/src/lib/expression-evaluator/index.d.ts.map +1 -0
- package/core/src/lib/expression-evaluator/index.js +6 -0
- package/core/src/lib/expression-evaluator/index.js.map +1 -0
- package/core/src/lib/index.d.ts +3 -0
- package/core/src/lib/index.d.ts.map +1 -1
- package/core/src/lib/index.js +3 -0
- package/core/src/lib/index.js.map +1 -1
- package/core/src/lib/integration/constants/category.constants.d.ts +1 -0
- package/core/src/lib/integration/constants/category.constants.d.ts.map +1 -1
- package/core/src/lib/integration/constants/category.constants.js +1 -0
- package/core/src/lib/integration/constants/category.constants.js.map +1 -1
- package/core/src/lib/integration/integration.types.d.ts +1 -0
- package/core/src/lib/integration/integration.types.d.ts.map +1 -1
- package/core/src/lib/integration/integration.types.js.map +1 -1
- package/core/src/lib/interaction/index.d.ts +1 -0
- package/core/src/lib/interaction/index.d.ts.map +1 -1
- package/core/src/lib/interaction/index.js +1 -0
- package/core/src/lib/interaction/index.js.map +1 -1
- package/core/src/lib/interaction/interactive.types.d.ts +64 -20
- package/core/src/lib/interaction/interactive.types.d.ts.map +1 -1
- package/core/src/lib/interaction/interactive.types.js.map +1 -1
- package/core/src/lib/interaction/runtime-result.util.d.ts +67 -0
- package/core/src/lib/interaction/runtime-result.util.d.ts.map +1 -0
- package/core/src/lib/interaction/runtime-result.util.js +167 -0
- package/core/src/lib/interaction/runtime-result.util.js.map +1 -0
- package/core/src/lib/keys/index.d.ts +0 -1
- package/core/src/lib/keys/index.d.ts.map +1 -1
- package/core/src/lib/keys/index.js +0 -1
- package/core/src/lib/keys/index.js.map +1 -1
- package/core/src/lib/keys/regional-settings.keys.d.ts +6 -1
- package/core/src/lib/keys/regional-settings.keys.d.ts.map +1 -1
- package/core/src/lib/keys/regional-settings.keys.js +5 -0
- package/core/src/lib/keys/regional-settings.keys.js.map +1 -1
- package/core/src/lib/multi-language-string/resolve-multi-language-string.util.d.ts +9 -0
- package/core/src/lib/multi-language-string/resolve-multi-language-string.util.d.ts.map +1 -1
- package/core/src/lib/multi-language-string/resolve-multi-language-string.util.js +25 -7
- package/core/src/lib/multi-language-string/resolve-multi-language-string.util.js.map +1 -1
- package/core/src/lib/utils/object-util.d.ts +8 -1
- package/core/src/lib/utils/object-util.d.ts.map +1 -1
- package/core/src/lib/utils/object-util.js +79 -6
- package/core/src/lib/utils/object-util.js.map +1 -1
- package/core/src/lib/widgets/widgets-catalog.d.ts +1 -0
- package/core/src/lib/widgets/widgets-catalog.d.ts.map +1 -1
- package/core/src/lib/widgets/widgets-catalog.js +1 -0
- package/core/src/lib/widgets/widgets-catalog.js.map +1 -1
- package/core/src/lib/widgets/widgets-list.d.ts +1 -0
- package/core/src/lib/widgets/widgets-list.d.ts.map +1 -1
- package/core/src/lib/widgets/widgets-list.js +1 -0
- package/core/src/lib/widgets/widgets-list.js.map +1 -1
- package/core/src/lib/workflow/activity.types.js +1 -1
- package/domain/src/lib/definitions/permission-definition.types.d.ts +4 -0
- package/domain/src/lib/definitions/permission-definition.types.d.ts.map +1 -1
- package/domain/src/lib/definitions/permission-definition.types.js.map +1 -1
- package/domain/src/lib/definitions/query-registry.types.d.ts +50 -4
- package/domain/src/lib/definitions/query-registry.types.d.ts.map +1 -1
- package/domain/src/lib/definitions/query-registry.types.js.map +1 -1
- package/domain/src/lib/definitions/widget-registry.types.d.ts +6 -1
- package/domain/src/lib/definitions/widget-registry.types.d.ts.map +1 -1
- package/domain/src/lib/definitions/widget-registry.types.js.map +1 -1
- package/entity/src/lib/constants/entity-events.keys.d.ts +4 -0
- package/entity/src/lib/constants/entity-events.keys.d.ts.map +1 -1
- package/entity/src/lib/constants/entity-events.keys.js +3 -0
- package/entity/src/lib/constants/entity-events.keys.js.map +1 -1
- package/entity/src/lib/constants/index.d.ts +0 -1
- package/entity/src/lib/constants/index.d.ts.map +1 -1
- package/entity/src/lib/constants/index.js +0 -1
- package/entity/src/lib/constants/index.js.map +1 -1
- package/entity/src/lib/helpers/entity-action.helpers.d.ts +1 -0
- package/entity/src/lib/helpers/entity-action.helpers.d.ts.map +1 -1
- package/entity/src/lib/helpers/entity-action.helpers.js +18 -10
- package/entity/src/lib/helpers/entity-action.helpers.js.map +1 -1
- package/entity/src/lib/types/entity-display-field.types.d.ts +5 -1
- package/entity/src/lib/types/entity-display-field.types.d.ts.map +1 -1
- package/entity/src/lib/types/entity-display-field.types.js.map +1 -1
- package/entity/src/lib/types/entity-event-payload.types.d.ts +31 -0
- package/entity/src/lib/types/entity-event-payload.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-event-payload.types.js +5 -0
- package/entity/src/lib/types/entity-event-payload.types.js.map +1 -0
- package/entity/src/lib/types/entity-model.types.d.ts +10 -4
- package/entity/src/lib/types/entity-model.types.d.ts.map +1 -1
- package/entity/src/lib/types/entity-model.types.js.map +1 -1
- package/entity/src/lib/types/entity-property.types.d.ts +10 -1
- package/entity/src/lib/types/entity-property.types.d.ts.map +1 -1
- package/entity/src/lib/types/entity-property.types.js.map +1 -1
- package/entity/src/lib/types/entity-query-view.types.d.ts +4 -0
- package/entity/src/lib/types/entity-query-view.types.d.ts.map +1 -1
- package/entity/src/lib/types/entity-query-view.types.js.map +1 -1
- package/entity/src/lib/types/index.d.ts +1 -0
- package/entity/src/lib/types/index.d.ts.map +1 -1
- package/entity/src/lib/types/index.js +1 -0
- package/entity/src/lib/types/index.js.map +1 -1
- package/entity/src/lib/types/lookup-widget.types.d.ts +21 -0
- package/entity/src/lib/types/lookup-widget.types.d.ts.map +1 -1
- package/entity/src/lib/types/lookup-widget.types.js.map +1 -1
- package/entity/src/lib/utils/entity-list-filter-definitions.util.d.ts.map +1 -1
- package/entity/src/lib/utils/entity-list-filter-definitions.util.js +2 -1
- package/entity/src/lib/utils/entity-list-filter-definitions.util.js.map +1 -1
- package/entity/src/lib/utils/entity-query-fields.util.d.ts +17 -0
- package/entity/src/lib/utils/entity-query-fields.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-query-fields.util.js +46 -0
- package/entity/src/lib/utils/entity-query-fields.util.js.map +1 -0
- package/entity/src/lib/utils/index.d.ts +1 -0
- package/entity/src/lib/utils/index.d.ts.map +1 -1
- package/entity/src/lib/utils/index.js +1 -0
- package/entity/src/lib/utils/index.js.map +1 -1
- package/entity/src/lib/utils/lookup-create-options.util.d.ts.map +1 -1
- package/entity/src/lib/utils/lookup-create-options.util.js +4 -2
- package/entity/src/lib/utils/lookup-create-options.util.js.map +1 -1
- package/entity/src/lib/utils/page-list-widget-name.util.d.ts +3 -2
- package/entity/src/lib/utils/page-list-widget-name.util.d.ts.map +1 -1
- package/entity/src/lib/utils/page-list-widget-name.util.js +3 -2
- package/entity/src/lib/utils/page-list-widget-name.util.js.map +1 -1
- package/package.json +1 -1
- package/rule-engine/src/lib/rule-engine.constants.d.ts +4 -0
- package/rule-engine/src/lib/rule-engine.constants.d.ts.map +1 -1
- package/rule-engine/src/lib/rule-engine.constants.js +4 -0
- package/rule-engine/src/lib/rule-engine.constants.js.map +1 -1
- package/runtime/src/catalog-sidecars.d.ts +2 -0
- package/runtime/src/catalog-sidecars.d.ts.map +1 -1
- package/runtime/src/catalog-sidecars.js +2 -0
- package/runtime/src/catalog-sidecars.js.map +1 -1
- package/runtime/src/lib/commands/auth-command-keys.d.ts +10 -0
- package/runtime/src/lib/commands/auth-command-keys.d.ts.map +1 -0
- package/runtime/src/lib/commands/auth-command-keys.js +15 -0
- package/runtime/src/lib/commands/auth-command-keys.js.map +1 -0
- package/runtime/src/lib/commands/bulk-command-failure.util.d.ts +24 -0
- package/runtime/src/lib/commands/bulk-command-failure.util.d.ts.map +1 -0
- package/runtime/src/lib/commands/bulk-command-failure.util.js +75 -0
- package/runtime/src/lib/commands/bulk-command-failure.util.js.map +1 -0
- package/runtime/src/lib/commands/bulk-command.types.d.ts +45 -0
- package/runtime/src/lib/commands/bulk-command.types.d.ts.map +1 -0
- package/runtime/src/lib/commands/bulk-command.types.js +12 -0
- package/runtime/src/lib/commands/bulk-command.types.js.map +1 -0
- package/runtime/src/lib/commands/catalog-command-definition.d.ts +1 -1
- package/runtime/src/lib/commands/catalog-command-definition.d.ts.map +1 -1
- package/runtime/src/lib/commands/catalog-command-definition.js +2 -2
- package/runtime/src/lib/commands/catalog-command-definition.js.map +1 -1
- package/runtime/src/lib/commands/command-definition.types.d.ts.map +1 -1
- package/runtime/src/lib/commands/command-definition.types.js.map +1 -1
- package/runtime/src/lib/commands/command-execute-options.types.d.ts +8 -0
- package/runtime/src/lib/commands/command-execute-options.types.d.ts.map +1 -0
- package/runtime/src/lib/commands/command-execute-options.types.js +5 -0
- package/runtime/src/lib/commands/command-execute-options.types.js.map +1 -0
- package/runtime/src/lib/commands/command.interface.d.ts +15 -4
- package/runtime/src/lib/commands/command.interface.d.ts.map +1 -1
- package/runtime/src/lib/commands/command.interface.js +2 -0
- package/runtime/src/lib/commands/command.interface.js.map +1 -1
- package/runtime/src/lib/commands/command.middleware.d.ts +22 -0
- package/runtime/src/lib/commands/command.middleware.d.ts.map +1 -0
- package/runtime/src/lib/commands/command.middleware.js +16 -0
- package/runtime/src/lib/commands/command.middleware.js.map +1 -0
- package/runtime/src/lib/commands/entity-action-command-input.d.ts +101 -0
- package/runtime/src/lib/commands/entity-action-command-input.d.ts.map +1 -0
- package/runtime/src/lib/commands/entity-action-command-input.js +204 -0
- package/runtime/src/lib/commands/entity-action-command-input.js.map +1 -0
- package/runtime/src/lib/commands/entity-command-keys.d.ts +29 -1
- package/runtime/src/lib/commands/entity-command-keys.d.ts.map +1 -1
- package/runtime/src/lib/commands/entity-command-keys.js +64 -9
- package/runtime/src/lib/commands/entity-command-keys.js.map +1 -1
- package/runtime/src/lib/commands/file-command-keys.d.ts +10 -0
- package/runtime/src/lib/commands/file-command-keys.d.ts.map +1 -0
- package/runtime/src/lib/commands/file-command-keys.js +15 -0
- package/runtime/src/lib/commands/file-command-keys.js.map +1 -0
- package/runtime/src/lib/commands/lock-command-keys.d.ts +5 -0
- package/runtime/src/lib/commands/lock-command-keys.d.ts.map +1 -0
- package/runtime/src/lib/commands/lock-command-keys.js +10 -0
- package/runtime/src/lib/commands/lock-command-keys.js.map +1 -0
- package/runtime/src/lib/commands/presence-command-keys.d.ts +2 -0
- package/runtime/src/lib/commands/presence-command-keys.d.ts.map +1 -0
- package/runtime/src/lib/commands/presence-command-keys.js +7 -0
- package/runtime/src/lib/commands/presence-command-keys.js.map +1 -0
- package/runtime/src/lib/commands/workflow-command-keys.d.ts +21 -0
- package/runtime/src/lib/commands/workflow-command-keys.d.ts.map +1 -0
- package/runtime/src/lib/commands/workflow-command-keys.js +26 -0
- package/runtime/src/lib/commands/workflow-command-keys.js.map +1 -0
- package/runtime/src/lib/index.d.ts +33 -13
- package/runtime/src/lib/index.d.ts.map +1 -1
- package/runtime/src/lib/index.js +33 -13
- package/runtime/src/lib/index.js.map +1 -1
- package/runtime/src/lib/queries/define-query.d.ts +18 -2
- package/runtime/src/lib/queries/define-query.d.ts.map +1 -1
- package/runtime/src/lib/queries/define-query.js +140 -2
- package/runtime/src/lib/queries/define-query.js.map +1 -1
- package/runtime/src/lib/queries/domain-query-keys.d.ts +15 -0
- package/runtime/src/lib/queries/domain-query-keys.d.ts.map +1 -0
- package/runtime/src/lib/queries/domain-query-keys.js +8 -0
- package/runtime/src/lib/queries/domain-query-keys.js.map +1 -0
- package/runtime/src/lib/queries/presence-query-keys.d.ts +3 -0
- package/runtime/src/lib/queries/presence-query-keys.d.ts.map +1 -0
- package/runtime/src/lib/queries/presence-query-keys.js +8 -0
- package/runtime/src/lib/queries/presence-query-keys.js.map +1 -0
- package/runtime/src/lib/queries/query-capability.types.d.ts +71 -0
- package/runtime/src/lib/queries/query-capability.types.d.ts.map +1 -0
- package/runtime/src/lib/queries/query-capability.types.js +15 -0
- package/runtime/src/lib/queries/query-capability.types.js.map +1 -0
- package/runtime/src/lib/queries/query-definition.types.d.ts +48 -1
- package/runtime/src/lib/queries/query-definition.types.d.ts.map +1 -1
- package/runtime/src/lib/queries/query-definition.types.js +3 -1
- package/runtime/src/lib/queries/query-definition.types.js.map +1 -1
- package/runtime/src/lib/queries/query-execute-options.types.d.ts +23 -0
- package/runtime/src/lib/queries/query-execute-options.types.d.ts.map +1 -0
- package/runtime/src/lib/queries/query-execute-options.types.js +5 -0
- package/runtime/src/lib/queries/query-execute-options.types.js.map +1 -0
- package/runtime/src/lib/queries/query-input.packs.d.ts +27 -0
- package/runtime/src/lib/queries/query-input.packs.d.ts.map +1 -0
- package/runtime/src/lib/queries/query-input.packs.js +53 -0
- package/runtime/src/lib/queries/query-input.packs.js.map +1 -0
- package/runtime/src/lib/queries/query-kind.types.d.ts +10 -0
- package/runtime/src/lib/queries/query-kind.types.d.ts.map +1 -0
- package/runtime/src/lib/queries/query-kind.types.js +7 -0
- package/runtime/src/lib/queries/query-kind.types.js.map +1 -0
- package/runtime/src/lib/queries/query.interface.d.ts +33 -2
- package/runtime/src/lib/queries/query.interface.d.ts.map +1 -1
- package/runtime/src/lib/queries/query.interface.js +2 -0
- package/runtime/src/lib/queries/query.interface.js.map +1 -1
- package/runtime/src/lib/queries/query.middleware.d.ts +17 -0
- package/runtime/src/lib/queries/query.middleware.d.ts.map +1 -0
- package/runtime/src/lib/queries/query.middleware.js +16 -0
- package/runtime/src/lib/queries/query.middleware.js.map +1 -0
- package/runtime/src/lib/transports/runtime-invoke-url.util.d.ts +12 -0
- package/runtime/src/lib/transports/runtime-invoke-url.util.d.ts.map +1 -0
- package/runtime/src/lib/transports/runtime-invoke-url.util.js +32 -0
- package/runtime/src/lib/transports/runtime-invoke-url.util.js.map +1 -0
- package/runtime/src/lib/transports/runtime-transport.keys.d.ts +14 -0
- package/runtime/src/lib/transports/runtime-transport.keys.d.ts.map +1 -0
- package/runtime/src/lib/transports/runtime-transport.keys.js +19 -0
- package/runtime/src/lib/transports/runtime-transport.keys.js.map +1 -0
- package/runtime/src/lib/widgets/get-widgets-for-ai-agent-scope.util.d.ts +13 -0
- package/runtime/src/lib/widgets/get-widgets-for-ai-agent-scope.util.d.ts.map +1 -0
- package/runtime/src/lib/widgets/get-widgets-for-ai-agent-scope.util.js +77 -0
- package/runtime/src/lib/widgets/get-widgets-for-ai-agent-scope.util.js.map +1 -0
- package/runtime/src/lib/widgets/widget-definition.types.d.ts +7 -1
- package/runtime/src/lib/widgets/widget-definition.types.d.ts.map +1 -1
- package/runtime/src/lib/widgets/widget-definition.types.js.map +1 -1
- package/widget-core/src/lib/types/widget.types.d.ts +1 -1
- package/widget-core/src/lib/types/widget.types.d.ts.map +1 -1
- package/widget-core/src/lib/types/widget.types.js.map +1 -1
- package/core/src/lib/keys/platform-core-datasource.keys.d.ts +0 -6
- package/core/src/lib/keys/platform-core-datasource.keys.d.ts.map +0 -1
- package/core/src/lib/keys/platform-core-datasource.keys.js +0 -11
- package/core/src/lib/keys/platform-core-datasource.keys.js.map +0 -1
- package/entity/src/lib/constants/entity-datasource.keys.d.ts +0 -5
- package/entity/src/lib/constants/entity-datasource.keys.d.ts.map +0 -1
- package/entity/src/lib/constants/entity-datasource.keys.js +0 -10
- package/entity/src/lib/constants/entity-datasource.keys.js.map +0 -1
|
@@ -1,23 +1,43 @@
|
|
|
1
1
|
export * from './shared/catalog-definition-base.types';
|
|
2
2
|
export * from './shared/catalog-definition.categories';
|
|
3
|
-
export * from './commands/command
|
|
4
|
-
export * from './commands/command-
|
|
3
|
+
export * from './commands/auth-command-keys';
|
|
4
|
+
export * from './commands/bulk-command-failure.util';
|
|
5
|
+
export * from './commands/bulk-command.types';
|
|
6
|
+
export * from './commands/catalog-command-definition';
|
|
5
7
|
export * from './commands/command-definition.categories';
|
|
8
|
+
export * from './commands/command-definition.types';
|
|
9
|
+
export * from './commands/command.interface';
|
|
10
|
+
export * from './commands/command-execute-options.types';
|
|
11
|
+
export * from './commands/command.middleware';
|
|
6
12
|
export * from './commands/define-command';
|
|
7
|
-
export * from './commands/
|
|
13
|
+
export * from './commands/entity-action-command-input';
|
|
8
14
|
export * from './commands/entity-command-keys';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
15
|
+
export * from './commands/file-command-keys';
|
|
16
|
+
export * from './commands/lock-command-keys';
|
|
17
|
+
export * from './commands/presence-command-keys';
|
|
18
|
+
export * from './commands/workflow-command-keys';
|
|
19
|
+
export * from './queries/domain-query-keys';
|
|
20
|
+
export * from './queries/presence-query-keys';
|
|
13
21
|
export * from './queries/catalog-query-definition';
|
|
22
|
+
export * from './queries/define-query';
|
|
23
|
+
export * from './queries/query-capability.types';
|
|
24
|
+
export * from './queries/query-definition.categories';
|
|
25
|
+
export * from './queries/query-definition.types';
|
|
26
|
+
export * from './queries/query-input.packs';
|
|
27
|
+
export * from './queries/query-kind.types';
|
|
28
|
+
export * from './queries/query-execute-options.types';
|
|
29
|
+
export * from './queries/query.middleware';
|
|
30
|
+
export * from './queries/query.interface';
|
|
14
31
|
export * from './views/view.interface';
|
|
15
|
-
export * from './widgets/widget-definition.types';
|
|
16
|
-
export * from './widgets/widget-definition.categories';
|
|
17
|
-
export * from './widgets/define-widget';
|
|
18
32
|
export * from './widgets/catalog-widget-definition';
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
33
|
+
export * from './widgets/define-widget';
|
|
34
|
+
export * from './widgets/get-widgets-for-ai-agent-scope.util';
|
|
35
|
+
export * from './widgets/widget-definition.categories';
|
|
36
|
+
export * from './widgets/widget-definition.types';
|
|
22
37
|
export * from './plugins/catalog-entity-plugin-definition';
|
|
38
|
+
export * from './plugins/define-entity-plugin';
|
|
39
|
+
export * from './plugins/entity-plugin-definition.categories';
|
|
40
|
+
export * from './plugins/entity-plugin-definition.types';
|
|
41
|
+
export * from './transports/runtime-invoke-url.util';
|
|
42
|
+
export * from './transports/runtime-transport.keys';
|
|
23
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/runtime/src/lib/index.ts"],"names":[],"mappings":"AAEA,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/runtime/src/lib/index.ts"],"names":[],"mappings":"AAEA,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,wBAAwB,CAAC;AAEvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAElD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AAEzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC"}
|
package/runtime/src/lib/index.js
CHANGED
|
@@ -4,25 +4,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./shared/catalog-definition-base.types"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./shared/catalog-definition.categories"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./commands/command
|
|
8
|
-
tslib_1.__exportStar(require("./commands/command-
|
|
7
|
+
tslib_1.__exportStar(require("./commands/auth-command-keys"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./commands/bulk-command-failure.util"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./commands/bulk-command.types"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./commands/catalog-command-definition"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./commands/command-definition.categories"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./commands/command-definition.types"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./commands/command.interface"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./commands/command-execute-options.types"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./commands/command.middleware"), exports);
|
|
10
16
|
tslib_1.__exportStar(require("./commands/define-command"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./commands/
|
|
17
|
+
tslib_1.__exportStar(require("./commands/entity-action-command-input"), exports);
|
|
12
18
|
tslib_1.__exportStar(require("./commands/entity-command-keys"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./
|
|
14
|
-
tslib_1.__exportStar(require("./
|
|
15
|
-
tslib_1.__exportStar(require("./
|
|
16
|
-
tslib_1.__exportStar(require("./
|
|
19
|
+
tslib_1.__exportStar(require("./commands/file-command-keys"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./commands/lock-command-keys"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./commands/presence-command-keys"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./commands/workflow-command-keys"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./queries/domain-query-keys"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./queries/presence-query-keys"), exports);
|
|
17
25
|
tslib_1.__exportStar(require("./queries/catalog-query-definition"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./queries/define-query"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./queries/query-capability.types"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./queries/query-definition.categories"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./queries/query-definition.types"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./queries/query-input.packs"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./queries/query-kind.types"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./queries/query-execute-options.types"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./queries/query.middleware"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./queries/query.interface"), exports);
|
|
18
35
|
tslib_1.__exportStar(require("./views/view.interface"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./widgets/widget-definition.types"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./widgets/widget-definition.categories"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./widgets/define-widget"), exports);
|
|
22
36
|
tslib_1.__exportStar(require("./widgets/catalog-widget-definition"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./
|
|
24
|
-
tslib_1.__exportStar(require("./
|
|
25
|
-
tslib_1.__exportStar(require("./
|
|
37
|
+
tslib_1.__exportStar(require("./widgets/define-widget"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./widgets/get-widgets-for-ai-agent-scope.util"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./widgets/widget-definition.categories"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./widgets/widget-definition.types"), exports);
|
|
26
41
|
tslib_1.__exportStar(require("./plugins/catalog-entity-plugin-definition"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./plugins/define-entity-plugin"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./plugins/entity-plugin-definition.categories"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./plugins/entity-plugin-definition.types"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./transports/runtime-invoke-url.util"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./transports/runtime-transport.keys"), exports);
|
|
27
47
|
//#endregion
|
|
28
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/runtime/src/lib/index.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;AAErC,iFAAuD;AACvD,iFAAuD;AAEvD,uEAA6C;AAC7C,8EAAoD;AACpD,mFAAyD;AACzD,oEAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/runtime/src/lib/index.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;AAErC,iFAAuD;AACvD,iFAAuD;AAEvD,uEAA6C;AAC7C,+EAAqD;AACrD,wEAA8C;AAC9C,gFAAsD;AACtD,mFAAyD;AACzD,8EAAoD;AACpD,uEAA6C;AAC7C,mFAAyD;AACzD,wEAA8C;AAC9C,oEAA0C;AAC1C,iFAAuD;AACvD,yEAA+C;AAC/C,uEAA6C;AAC7C,uEAA6C;AAC7C,2EAAiD;AACjD,2EAAiD;AAEjD,sEAA4C;AAC5C,wEAA8C;AAE9C,6EAAmD;AACnD,iEAAuC;AACvC,2EAAiD;AACjD,gFAAsD;AACtD,2EAAiD;AACjD,sEAA4C;AAC5C,qEAA2C;AAC3C,gFAAsD;AACtD,qEAA2C;AAC3C,oEAA0C;AAE1C,iEAAuC;AAEvC,8EAAoD;AACpD,kEAAwC;AACxC,wFAA8D;AAC9D,iFAAuD;AACvD,4EAAkD;AAElD,qFAA2D;AAC3D,yEAA+C;AAC/C,wFAA8D;AAC9D,mFAAyD;AAEzD,+EAAqD;AACrD,8EAAoD;AAEpD,YAAY"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
+
import type { AXPCatalogSchemaPropertyDefinition } from '../shared/catalog-definition-base.types';
|
|
2
|
+
import type { AXPQueryArgsSection, AXPQueryFilterSection, AXPQueryPagingSection, AXPQuerySortSection } from './query-capability.types';
|
|
1
3
|
import type { AXPQueryMetadataDefinition } from './query-definition.types';
|
|
4
|
+
export type AXPAlignedQueryMetadataDefinition = Omit<AXPQueryMetadataDefinition, 'args' | 'filter' | 'sort' | 'paging' | 'columns' | 'inputs' | 'outputs'> & {
|
|
5
|
+
args: AXPQueryArgsSection;
|
|
6
|
+
filter: AXPQueryFilterSection;
|
|
7
|
+
sort: AXPQuerySortSection;
|
|
8
|
+
paging: AXPQueryPagingSection;
|
|
9
|
+
columns?: AXPCatalogSchemaPropertyDefinition[];
|
|
10
|
+
};
|
|
2
11
|
/**
|
|
3
|
-
*
|
|
12
|
+
* Prepares query metadata for catalog JSON / DB seed.
|
|
13
|
+
* Produces explicit `{ enabled, definition }` sections for args / filter / sort / paging.
|
|
14
|
+
* Does not emit flattened legacy `inputs` / `outputs` — catalog uses capability sections + `columns`.
|
|
4
15
|
*/
|
|
5
|
-
export declare function
|
|
16
|
+
export declare function alignQueryDefinitionForCatalog(definition: AXPQueryMetadataDefinition): AXPAlignedQueryMetadataDefinition;
|
|
17
|
+
/**
|
|
18
|
+
* Typed helper for query metadata sidecars.
|
|
19
|
+
* Asserts collection-only fields and aligns catalog capability sections before DB seed/catalog gen.
|
|
20
|
+
*/
|
|
21
|
+
export declare function defineQuery<T extends AXPQueryMetadataDefinition>(definition: T): AXPAlignedQueryMetadataDefinition;
|
|
6
22
|
//# sourceMappingURL=define-query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-query.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/define-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"define-query.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/define-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,KAAK,EACV,mBAAmB,EAInB,qBAAqB,EAErB,qBAAqB,EAErB,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAIlC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAwH3E,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,0BAA0B,EAC1B,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CACzE,GAAG;IACF,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,kCAAkC,EAAE,CAAC;CAChD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,0BAA0B,GACrC,iCAAiC,CAuCnC;AAMD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,0BAA0B,EAC9D,UAAU,EAAE,CAAC,GACZ,iCAAiC,CAenC"}
|
|
@@ -1,12 +1,150 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.alignQueryDefinitionForCatalog = alignQueryDefinitionForCatalog;
|
|
3
4
|
exports.defineQuery = defineQuery;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const query_capability_types_1 = require("./query-capability.types");
|
|
7
|
+
//#region ---- Section normalize ----
|
|
8
|
+
function isCapabilitySection(value) {
|
|
9
|
+
return (value != null &&
|
|
10
|
+
typeof value === 'object' &&
|
|
11
|
+
!Array.isArray(value) &&
|
|
12
|
+
typeof value.enabled === 'boolean');
|
|
13
|
+
}
|
|
14
|
+
function normalizeListSection(input, mapItem) {
|
|
15
|
+
var _a;
|
|
16
|
+
if (input == null) {
|
|
17
|
+
return { enabled: false };
|
|
18
|
+
}
|
|
19
|
+
if (isCapabilitySection(input)) {
|
|
20
|
+
if (!input.enabled) {
|
|
21
|
+
return { enabled: false };
|
|
22
|
+
}
|
|
23
|
+
const definition = ((_a = input.definition) !== null && _a !== void 0 ? _a : []).map((item) => (mapItem ? mapItem(item) : item));
|
|
24
|
+
if (definition.length === 0) {
|
|
25
|
+
return { enabled: false };
|
|
26
|
+
}
|
|
27
|
+
return { enabled: true, definition };
|
|
28
|
+
}
|
|
29
|
+
if (Array.isArray(input)) {
|
|
30
|
+
if (input.length === 0) {
|
|
31
|
+
return { enabled: false };
|
|
32
|
+
}
|
|
33
|
+
const definition = mapItem ? input.map(mapItem) : [...input];
|
|
34
|
+
return { enabled: true, definition };
|
|
35
|
+
}
|
|
36
|
+
return { enabled: false };
|
|
37
|
+
}
|
|
38
|
+
function normalizePagingSection(input) {
|
|
39
|
+
var _a;
|
|
40
|
+
if (input == null) {
|
|
41
|
+
return { enabled: false };
|
|
42
|
+
}
|
|
43
|
+
if (isCapabilitySection(input)) {
|
|
44
|
+
if (!input.enabled) {
|
|
45
|
+
return { enabled: false };
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
enabled: true,
|
|
49
|
+
definition: Object.assign(Object.assign({}, query_capability_types_1.AXP_QUERY_DEFAULT_COLLECTION_PAGING), ((_a = input.definition) !== null && _a !== void 0 ? _a : {})),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
if (typeof input === 'object') {
|
|
53
|
+
return {
|
|
54
|
+
enabled: true,
|
|
55
|
+
definition: Object.assign(Object.assign({}, query_capability_types_1.AXP_QUERY_DEFAULT_COLLECTION_PAGING), input),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
return { enabled: false };
|
|
59
|
+
}
|
|
60
|
+
function normalizeFilterItem(item) {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
const source = (_a = item.source) !== null && _a !== void 0 ? _a : (item.field != null ? 'field' : 'custom');
|
|
63
|
+
return Object.assign(Object.assign(Object.assign({}, item), { source }), (source === 'field' ? { field: (_b = item.field) !== null && _b !== void 0 ? _b : item.name } : {}));
|
|
64
|
+
}
|
|
65
|
+
function normalizeSortItem(item) {
|
|
66
|
+
var _a, _b, _c;
|
|
67
|
+
const source = (_a = item.source) !== null && _a !== void 0 ? _a : (item.field != null ? 'field' : 'field');
|
|
68
|
+
return Object.assign(Object.assign({}, item), { source, field: (_b = item.field) !== null && _b !== void 0 ? _b : item.name, directions: ((_c = item.directions) === null || _c === void 0 ? void 0 : _c.length) ? item.directions : ['asc', 'desc'] });
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region ---- Legacy bridge ----
|
|
72
|
+
const PAGING_INPUT_NAMES = new Set(['skip', 'take']);
|
|
73
|
+
/**
|
|
74
|
+
* Prefer `args` / `columns`. When only legacy `inputs` / `outputs` exist, map them so catalog JSON
|
|
75
|
+
* still gets explicit capability sections.
|
|
76
|
+
*/
|
|
77
|
+
function bridgeLegacyInputs(definition) {
|
|
78
|
+
var _a;
|
|
79
|
+
if (definition.args != null) {
|
|
80
|
+
return { argsInput: definition.args };
|
|
81
|
+
}
|
|
82
|
+
const inputs = (_a = definition.inputs) !== null && _a !== void 0 ? _a : [];
|
|
83
|
+
if (inputs.length === 0) {
|
|
84
|
+
return { argsInput: undefined };
|
|
85
|
+
}
|
|
86
|
+
const argsOnly = inputs.filter((row) => !PAGING_INPUT_NAMES.has(row.name));
|
|
87
|
+
return {
|
|
88
|
+
argsInput: argsOnly.length > 0 ? argsOnly : undefined,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function bridgeLegacyColumns(definition) {
|
|
92
|
+
if (definition.columns != null) {
|
|
93
|
+
return definition.columns;
|
|
94
|
+
}
|
|
95
|
+
return definition.outputs;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Prepares query metadata for catalog JSON / DB seed.
|
|
99
|
+
* Produces explicit `{ enabled, definition }` sections for args / filter / sort / paging.
|
|
100
|
+
* Does not emit flattened legacy `inputs` / `outputs` — catalog uses capability sections + `columns`.
|
|
101
|
+
*/
|
|
102
|
+
function alignQueryDefinitionForCatalog(definition) {
|
|
103
|
+
const { argsInput } = bridgeLegacyInputs(definition);
|
|
104
|
+
const args = normalizeListSection(argsInput);
|
|
105
|
+
const filter = normalizeListSection(definition.filter, normalizeFilterItem);
|
|
106
|
+
const sort = normalizeListSection(definition.sort, normalizeSortItem);
|
|
107
|
+
let paging = normalizePagingSection(definition.paging);
|
|
108
|
+
// Collection defaults to paging unless the sidecar set `paging` explicitly (including `{ enabled: false }`).
|
|
109
|
+
if (definition.kind === 'collection' && definition.paging == null) {
|
|
110
|
+
paging = {
|
|
111
|
+
enabled: true,
|
|
112
|
+
definition: Object.assign({}, query_capability_types_1.AXP_QUERY_DEFAULT_COLLECTION_PAGING),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
// Reject declaring skip/take as args when collection paging is system-managed.
|
|
116
|
+
if (definition.kind === 'collection' && args.enabled) {
|
|
117
|
+
const conflict = args.definition.find((row) => PAGING_INPUT_NAMES.has(row.name));
|
|
118
|
+
if (conflict) {
|
|
119
|
+
throw new Error(`defineQuery(${definition.key}): do not declare arg "${conflict.name}" — ` +
|
|
120
|
+
`skip/take belong to paging when kind is 'collection'`);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const columns = bridgeLegacyColumns(definition);
|
|
124
|
+
// Drop legacy flat fields from the aligned catalog payload.
|
|
125
|
+
const { inputs: _legacyInputs, outputs: _legacyOutputs } = definition, rest = tslib_1.__rest(definition, ["inputs", "outputs"]);
|
|
126
|
+
return Object.assign(Object.assign({}, rest), { args,
|
|
127
|
+
filter,
|
|
128
|
+
sort,
|
|
129
|
+
paging,
|
|
130
|
+
columns });
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
4
133
|
//#region ---- defineQuery ----
|
|
5
134
|
/**
|
|
6
|
-
* Typed
|
|
135
|
+
* Typed helper for query metadata sidecars.
|
|
136
|
+
* Asserts collection-only fields and aligns catalog capability sections before DB seed/catalog gen.
|
|
7
137
|
*/
|
|
8
138
|
function defineQuery(definition) {
|
|
9
|
-
|
|
139
|
+
if (definition.kind != null && definition.kind !== 'collection') {
|
|
140
|
+
if (definition.binding != null) {
|
|
141
|
+
throw new Error(`defineQuery(${definition.key}): binding is only allowed when kind is 'collection'`);
|
|
142
|
+
}
|
|
143
|
+
if (definition.byKeyQuery != null) {
|
|
144
|
+
throw new Error(`defineQuery(${definition.key}): byKeyQuery is only allowed when kind is 'collection'`);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return alignQueryDefinitionForCatalog(definition);
|
|
10
148
|
}
|
|
11
149
|
//#endregion
|
|
12
150
|
//# sourceMappingURL=define-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-query.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/define-query.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"define-query.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/define-query.ts"],"names":[],"mappings":";;AAuJA,wEAyCC;AAUD,kCAiBC;;AA/MD,qEAEkC;AAGlC,qCAAqC;AAErC,SAAS,mBAAmB,CAAC,KAAc;IACzC,OAAO,CACL,KAAK,IAAI,IAAI;QACb,OAAO,KAAK,KAAK,QAAQ;QACzB,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrB,OAAQ,KAA+B,CAAC,OAAO,KAAK,SAAS,CAC9D,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAC3B,KAAsD,EACtD,OAAwB;;IAExB,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;IACD,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YACnB,OAAO,EAAE,OAAO,E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CAAC;QACD,IAAI,UAAU,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CACb,eAAe,UAAU,CAAC,GAAG,yDAAyD,CACvF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,8BAA8B,CAAC,UAAU,CAAC,CAAC;AACpD,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const DOMAIN_GET_ENTITY_LAYOUT_DEFAULT: "Domain:GetEntityLayout";
|
|
2
|
+
export interface DomainGetEntityLayoutInput {
|
|
3
|
+
module: string;
|
|
4
|
+
entity: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const DOMAIN_LIST_ENTITY_LAYOUTS_DEFAULT: "Domain:ListEntityLayouts";
|
|
7
|
+
export interface DomainListEntityLayoutsInput {
|
|
8
|
+
/** When set, only entities for this module are returned. */
|
|
9
|
+
module?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DomainEntityLayoutListItem {
|
|
12
|
+
module: string;
|
|
13
|
+
entity: string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=domain-query-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain-query-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/domain-query-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,EAAG,wBAAiC,CAAC;AAElF,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kCAAkC,EAAG,0BAAmC,CAAC;AAEtF,MAAM,WAAW,4BAA4B;IAC3C,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Domain query keys ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DOMAIN_LIST_ENTITY_LAYOUTS_DEFAULT = exports.DOMAIN_GET_ENTITY_LAYOUT_DEFAULT = void 0;
|
|
5
|
+
exports.DOMAIN_GET_ENTITY_LAYOUT_DEFAULT = 'Domain:GetEntityLayout';
|
|
6
|
+
exports.DOMAIN_LIST_ENTITY_LAYOUTS_DEFAULT = 'Domain:ListEntityLayouts';
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=domain-query-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain-query-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/domain-query-keys.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;AAExB,QAAA,gCAAgC,GAAG,wBAAiC,CAAC;AAOrE,QAAA,kCAAkC,GAAG,0BAAmC,CAAC;AAYtF,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presence-query-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/presence-query-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,EAAG,uBAAgC,CAAC;AACvE,eAAO,MAAM,wBAAwB,EAAG,yBAAkC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ----- Presence query keys -----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PRESENCE_TENANT_ACTIVITY = exports.PRESENCE_USER_ACTIVITY = void 0;
|
|
5
|
+
exports.PRESENCE_USER_ACTIVITY = 'Presence:UserActivity';
|
|
6
|
+
exports.PRESENCE_TENANT_ACTIVITY = 'Presence:TenantActivity';
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=presence-query-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presence-query-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/presence-query-keys.ts"],"names":[],"mappings":";AAAA,yCAAyC;;;AAE5B,QAAA,sBAAsB,GAAG,uBAAgC,CAAC;AAC1D,QAAA,wBAAwB,GAAG,yBAAkC,CAAC;AAE3E,YAAY"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Query catalog capability sections for AI / report / DB seed.
|
|
3
|
+
* Catalog JSON uses explicit `{ enabled, definition }` (never infer support from absent lists).
|
|
4
|
+
*/
|
|
5
|
+
import type { AXPCatalogSchemaPropertyDefinition } from '../shared/catalog-definition-base.types';
|
|
6
|
+
/**
|
|
7
|
+
* One request axis (args / filter / sort / paging).
|
|
8
|
+
* If `enabled` is false, callers and AI must not send that axis.
|
|
9
|
+
*/
|
|
10
|
+
export type AXPQueryCapabilitySection<TDefinition> = {
|
|
11
|
+
enabled: false;
|
|
12
|
+
definition?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
enabled: true;
|
|
15
|
+
definition: TDefinition;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Authoring shorthand before {@link alignQueryDefinitionForCatalog}:
|
|
19
|
+
* - omit / undefined → `{ enabled: false }`
|
|
20
|
+
* - array (or paging object) → `{ enabled: true, definition }`
|
|
21
|
+
* - full section → kept (validated)
|
|
22
|
+
*/
|
|
23
|
+
export type AXPQueryCapabilitySectionInput<TDefinition> = TDefinition | AXPQueryCapabilitySection<TDefinition> | undefined;
|
|
24
|
+
/** Named contract parameter (not a dynamic filter clause). */
|
|
25
|
+
export type AXPQueryArgDefinition = AXPCatalogSchemaPropertyDefinition;
|
|
26
|
+
export type AXPQueryArgsSection = AXPQueryCapabilitySection<AXPQueryArgDefinition[]>;
|
|
27
|
+
export type AXPQueryArgsSectionInput = AXPQueryCapabilitySectionInput<AXPQueryArgDefinition[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Filter descriptor.
|
|
30
|
+
* - `source: 'field'` — bound to a result/column field
|
|
31
|
+
* - `source: 'custom'` — semantic / virtual (e.g. near|expired|both)
|
|
32
|
+
*/
|
|
33
|
+
export interface AXPQueryFilterDefinition extends AXPCatalogSchemaPropertyDefinition {
|
|
34
|
+
source?: 'field' | 'custom';
|
|
35
|
+
/** When `source` is `field`, the column/field name (defaults to `name`). */
|
|
36
|
+
field?: string;
|
|
37
|
+
}
|
|
38
|
+
export type AXPQueryFilterSection = AXPQueryCapabilitySection<AXPQueryFilterDefinition[]>;
|
|
39
|
+
export type AXPQueryFilterSectionInput = AXPQueryCapabilitySectionInput<AXPQueryFilterDefinition[]>;
|
|
40
|
+
/** Sortable key; may reference a non-visible / non-column field. */
|
|
41
|
+
export interface AXPQuerySortDefinition {
|
|
42
|
+
name: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
source?: 'field' | 'custom';
|
|
46
|
+
/** Sort field path when different from `name`. */
|
|
47
|
+
field?: string;
|
|
48
|
+
directions?: Array<'asc' | 'desc'>;
|
|
49
|
+
}
|
|
50
|
+
export type AXPQuerySortSection = AXPQueryCapabilitySection<AXPQuerySortDefinition[]>;
|
|
51
|
+
export type AXPQuerySortSectionInput = AXPQueryCapabilitySectionInput<AXPQuerySortDefinition[]>;
|
|
52
|
+
export interface AXPQueryPagingDefinition {
|
|
53
|
+
skip?: boolean;
|
|
54
|
+
take?: boolean;
|
|
55
|
+
/** `take: null` means fetch-all up to platform soft limit. */
|
|
56
|
+
takeNullMeansAll?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Optional default page size for UI widgets that wrap this query as an AXDataSource
|
|
59
|
+
* (e.g. select-box). Omitted → widget / control default.
|
|
60
|
+
*/
|
|
61
|
+
pageSize?: number;
|
|
62
|
+
}
|
|
63
|
+
export type AXPQueryPagingSection = AXPQueryCapabilitySection<AXPQueryPagingDefinition>;
|
|
64
|
+
export type AXPQueryPagingSectionInput = AXPQueryCapabilitySectionInput<AXPQueryPagingDefinition>;
|
|
65
|
+
/** Default collection paging contract injected by align. */
|
|
66
|
+
export declare const AXP_QUERY_DEFAULT_COLLECTION_PAGING: AXPQueryPagingDefinition;
|
|
67
|
+
/** Collection item / object field schema (result shape, not a request capability). */
|
|
68
|
+
export type AXPQueryColumnDefinition = AXPCatalogSchemaPropertyDefinition;
|
|
69
|
+
/** Builtin scalar result for `kind: 'value'`. */
|
|
70
|
+
export type AXPQueryValueType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
|
|
71
|
+
//# sourceMappingURL=query-capability.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-capability.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-capability.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAIlG;;;GAGG;AACH,MAAM,MAAM,yBAAyB,CAAC,WAAW,IAC7C;IACE,OAAO,EAAE,KAAK,CAAC;IACf,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB,GACD;IACE,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,WAAW,CAAC;CACzB,CAAC;AAEN;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,CAAC,WAAW,IAClD,WAAW,GACX,yBAAyB,CAAC,WAAW,CAAC,GACtC,SAAS,CAAC;AAMd,8DAA8D;AAC9D,MAAM,MAAM,qBAAqB,GAAG,kCAAkC,CAAC;AAEvE,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,qBAAqB,EAAE,CAAC,CAAC;AACrF,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CAAC,qBAAqB,EAAE,CAAC,CAAC;AAM/F;;;;GAIG;AACH,MAAM,WAAW,wBAAyB,SAAQ,kCAAkC;IA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,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Query catalog capability sections for AI / report / DB seed.
|
|
4
|
+
* Catalog JSON uses explicit `{ enabled, definition }` (never infer support from absent lists).
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.AXP_QUERY_DEFAULT_COLLECTION_PAGING = void 0;
|
|
8
|
+
/** Default collection paging contract injected by align. */
|
|
9
|
+
exports.AXP_QUERY_DEFAULT_COLLECTION_PAGING = {
|
|
10
|
+
skip: true,
|
|
11
|
+
take: true,
|
|
12
|
+
takeNullMeansAll: true,
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//# sourceMappingURL=query-capability.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-capability.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-capability.types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAgGH,4DAA4D;AAC/C,QAAA,mCAAmC,GAA6B;IAC3E,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAkBF,YAAY"}
|
|
@@ -1,14 +1,61 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Build-time query metadata for AXPQuery implementations.
|
|
3
3
|
* Mirrors command metadata shape except there are no `outcomes` (queries only `fetch`).
|
|
4
|
-
* Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets
|
|
4
|
+
* Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets.
|
|
5
|
+
* Prefer `args` / `filter` / `sort` / `paging` / `columns`. Legacy `inputs` / `outputs` are
|
|
6
|
+
* accepted only as an inbound bridge for older sidecars and are stripped from catalog output.
|
|
5
7
|
*/
|
|
6
8
|
import type { AXPCatalogExecutionMode, AXPCatalogMetadataDefinitionBase, AXPCatalogSchemaPropertyDefinition } from '../shared/catalog-definition-base.types';
|
|
9
|
+
import type { AXPQueryArgsSectionInput, AXPQueryColumnDefinition, AXPQueryFilterSectionInput, AXPQueryPagingSectionInput, AXPQuerySortSectionInput, AXPQueryValueType } from './query-capability.types';
|
|
10
|
+
import type { AXPQueryCollectionBinding, AXPQueryKind } from './query-kind.types';
|
|
7
11
|
/** One input/output property description for query definitions (same as command / widget catalog rows). */
|
|
8
12
|
export type AXPQuerySchemaPropertyDefinition = AXPCatalogSchemaPropertyDefinition;
|
|
9
13
|
export interface AXPQueryMetadataDefinition extends AXPCatalogMetadataDefinitionBase {
|
|
10
14
|
/** Runtime registration key (provideQuerySetups). */
|
|
11
15
|
key: string;
|
|
12
16
|
executionMode: AXPCatalogExecutionMode;
|
|
17
|
+
/**
|
|
18
|
+
* Result shape — must match the success `kind` returned by `fetch`
|
|
19
|
+
* (`value` | `object` | `collection`).
|
|
20
|
+
*/
|
|
21
|
+
kind?: AXPQueryKind;
|
|
22
|
+
/**
|
|
23
|
+
* Optional stable result DTO id (e.g. `AXPBarChartQueryResult`).
|
|
24
|
+
* Used by chart/KPI widget designers to filter compatible queries.
|
|
25
|
+
*/
|
|
26
|
+
resultType?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Select/lookup binding for `kind: 'collection'` only.
|
|
29
|
+
* Ignored for `value` / `object`.
|
|
30
|
+
*/
|
|
31
|
+
binding?: AXPQueryCollectionBinding;
|
|
32
|
+
/**
|
|
33
|
+
* Runtime query key of an `object` query used to resolve one row by `binding.valueField`.
|
|
34
|
+
* Collection only.
|
|
35
|
+
*/
|
|
36
|
+
byKeyQuery?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Contract args (named params). Prefer over stuffing everything into `inputs`.
|
|
39
|
+
* Authoring: array shorthand or `{ enabled, definition }`.
|
|
40
|
+
*/
|
|
41
|
+
args?: AXPQueryArgsSectionInput;
|
|
42
|
+
/**
|
|
43
|
+
* Dynamic filters (field-bound or custom/semantic). Omit or empty ⇒ not supported.
|
|
44
|
+
*/
|
|
45
|
+
filter?: AXPQueryFilterSectionInput;
|
|
46
|
+
/**
|
|
47
|
+
* Sort keys (may include fields not shown as columns).
|
|
48
|
+
*/
|
|
49
|
+
sort?: AXPQuerySortSectionInput;
|
|
50
|
+
/**
|
|
51
|
+
* Paging contract. For `kind: 'collection'`, align injects a default when omitted.
|
|
52
|
+
*/
|
|
53
|
+
paging?: AXPQueryPagingSectionInput;
|
|
54
|
+
/**
|
|
55
|
+
* Result field schema for `object` / `collection` items (catalog `outputs` equivalent).
|
|
56
|
+
*/
|
|
57
|
+
columns?: AXPQueryColumnDefinition[];
|
|
58
|
+
/** Scalar result type when `kind: 'value'`. */
|
|
59
|
+
valueType?: AXPQueryValueType;
|
|
13
60
|
}
|
|
14
61
|
//# sourceMappingURL=query-definition.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-definition.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-definition.types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"query-definition.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-definition.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,gCAAgC,EAChC,kCAAkC,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIlF,2GAA2G;AAC3G,MAAM,MAAM,gCAAgC,GAAG,kCAAkC,CAAC;AAElF,MAAM,WAAW,0BAA2B,SAAQ,gCAAgC;IAClF,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,uBAAuB,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACrC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Build-time query metadata for AXPQuery implementations.
|
|
4
4
|
* Mirrors command metadata shape except there are no `outcomes` (queries only `fetch`).
|
|
5
|
-
* Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets
|
|
5
|
+
* Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets.
|
|
6
|
+
* Prefer `args` / `filter` / `sort` / `paging` / `columns`. Legacy `inputs` / `outputs` are
|
|
7
|
+
* accepted only as an inbound bridge for older sidecars and are stripped from catalog output.
|
|
6
8
|
*/
|
|
7
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
10
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-definition.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-definition.types.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"query-definition.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-definition.types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAwEH,YAAY"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How this execute call should use ReportManagement query snapshots.
|
|
3
|
+
* Interpreted by the server query-snapshot middleware when a policy exists.
|
|
4
|
+
*
|
|
5
|
+
* - `true` — prefer snapshot; on miss/stale, sync ensure (canonical `{}`) then return
|
|
6
|
+
* - `{ minCalculatedAt, maxAgeMs }` — same as `true`, with a freshness floor
|
|
7
|
+
* - `false` — force live handler (skip snapshot serve)
|
|
8
|
+
* - omitted — transparent: serve ready+fresh snapshot when policy exists; miss → live (no ensure)
|
|
9
|
+
*/
|
|
10
|
+
export type AXPQuerySnapshotOption = boolean | {
|
|
11
|
+
/** Snapshot `calculatedAt` must be at/after this epoch ms. */
|
|
12
|
+
minCalculatedAt?: number;
|
|
13
|
+
/** Max age in ms (overrides policy `staleAfterMs` for this call). */
|
|
14
|
+
maxAgeMs?: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Parent bag for query execute knobs (not business input).
|
|
18
|
+
* Extensible — add fields here instead of new positional args.
|
|
19
|
+
*/
|
|
20
|
+
export interface AXPQueryExecuteOptions {
|
|
21
|
+
snapshot?: AXPQuerySnapshotOption;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=query-execute-options.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-execute-options.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-execute-options.types.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,MAAM,sBAAsB,GAC9B,OAAO,GACP;IACE,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEN;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-execute-options.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-execute-options.types.ts"],"names":[],"mappings":";AAAA,2CAA2C;;AA4B3C,YAAY"}
|