@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
|
@@ -9,18 +9,20 @@ function resolveLookupWidgetCreateOptions(options) {
|
|
|
9
9
|
const create = options.create;
|
|
10
10
|
const legacyMode = options.allowCreate;
|
|
11
11
|
const context = create === null || create === void 0 ? void 0 : create.context;
|
|
12
|
+
const title = create === null || create === void 0 ? void 0 : create.title;
|
|
12
13
|
if ((create === null || create === void 0 ? void 0 : create.enable) !== undefined) {
|
|
13
14
|
if (!create.enable) {
|
|
14
|
-
return { enabled: false, mode: 'none', context };
|
|
15
|
+
return { enabled: false, mode: 'none', context, title };
|
|
15
16
|
}
|
|
16
17
|
const mode = legacyMode && legacyMode !== 'none' ? legacyMode : 'quick';
|
|
17
|
-
return { enabled: true, mode, context };
|
|
18
|
+
return { enabled: true, mode, context, title };
|
|
18
19
|
}
|
|
19
20
|
const mode = legacyMode !== null && legacyMode !== void 0 ? legacyMode : 'none';
|
|
20
21
|
return {
|
|
21
22
|
enabled: mode !== 'none',
|
|
22
23
|
mode,
|
|
23
24
|
context,
|
|
25
|
+
title,
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup-create-options.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/lookup-create-options.util.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"lookup-create-options.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/lookup-create-options.util.ts"],"names":[],"mappings":";;AAOA,4EA0BC;AA/BD,8BAA8B;AAE9B;;GAEG;AACH,SAAgB,gCAAgC,CAAC,OAIhD;IACC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IACvC,MAAM,OAAO,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC;IAChC,MAAM,KAAK,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC;IAE5B,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACnB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC1D,CAAC;QAED,MAAM,IAAI,GAAG,UAAU,IAAI,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC;QACxE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,MAAM,CAAC;IAClC,OAAO;QACL,OAAO,EAAE,IAAI,KAAK,MAAM;QACxB,IAAI;QACJ,OAAO;QACP,KAAK;KACN,CAAC;AACJ,CAAC;AAED,YAAY"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/** Prefix for related-entity sidebar list widget nodes (`page-list` layout). */
|
|
1
|
+
/** Prefix for related-entity sidebar list widget nodes and page ids (`page-list` layout). */
|
|
2
2
|
export declare const PAGE_LIST_WIDGET_NAME_PREFIX = "page-list-";
|
|
3
3
|
/**
|
|
4
|
-
* Builds a unique
|
|
4
|
+
* Builds a unique id/name for a related-entity `page-list` sidebar page (widget node + details `page` query).
|
|
5
|
+
* Must not equal the host overview page id (`entity.name`) so self-referential related lists can navigate.
|
|
5
6
|
* Mirrors the `tab-list` pattern (`${entity}-tab-list`).
|
|
6
7
|
*/
|
|
7
8
|
export declare function buildPageListWidgetName(relatedEntityKey: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-list-widget-name.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/page-list-widget-name.util.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"page-list-widget-name.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/page-list-widget-name.util.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,eAAO,MAAM,4BAA4B,eAAe,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,uFAAuF;AACvF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,CAE7E;AAED,0FAA0F;AAC1F,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAErE"}
|
|
@@ -4,10 +4,11 @@ exports.PAGE_LIST_WIDGET_NAME_PREFIX = void 0;
|
|
|
4
4
|
exports.buildPageListWidgetName = buildPageListWidgetName;
|
|
5
5
|
exports.isPageListWidgetName = isPageListWidgetName;
|
|
6
6
|
exports.buildPageListTableWidgetId = buildPageListTableWidgetId;
|
|
7
|
-
/** Prefix for related-entity sidebar list widget nodes (`page-list` layout). */
|
|
7
|
+
/** Prefix for related-entity sidebar list widget nodes and page ids (`page-list` layout). */
|
|
8
8
|
exports.PAGE_LIST_WIDGET_NAME_PREFIX = 'page-list-';
|
|
9
9
|
/**
|
|
10
|
-
* Builds a unique
|
|
10
|
+
* Builds a unique id/name for a related-entity `page-list` sidebar page (widget node + details `page` query).
|
|
11
|
+
* Must not equal the host overview page id (`entity.name`) so self-referential related lists can navigate.
|
|
11
12
|
* Mirrors the `tab-list` pattern (`${entity}-tab-list`).
|
|
12
13
|
*/
|
|
13
14
|
function buildPageListWidgetName(relatedEntityKey) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-list-widget-name.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/page-list-widget-name.util.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"page-list-widget-name.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/page-list-widget-name.util.ts"],"names":[],"mappings":";;;AAQA,0DAEC;AAGD,oDAEC;AAGD,gEAEC;AApBD,6FAA6F;AAChF,QAAA,4BAA4B,GAAG,YAAY,CAAC;AAEzD;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,gBAAwB;IAC9D,OAAO,GAAG,oCAA4B,GAAG,gBAAgB,EAAE,CAAC;AAC9D,CAAC;AAED,uFAAuF;AACvF,SAAgB,oBAAoB,CAAC,IAA+B;IAClE,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,UAAU,CAAC,oCAA4B,CAAC,CAAC;AACnF,CAAC;AAED,0FAA0F;AAC1F,SAAgB,0BAA0B,CAAC,UAAkB;IAC3D,OAAO,GAAG,UAAU,QAAQ,CAAC;AAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,6 +8,10 @@ export declare const AXPRuleEngineCommandKeys: {
|
|
|
8
8
|
readonly Publish: "RuleEngineManagement:Publish";
|
|
9
9
|
readonly Rollback: "RuleEngineManagement:Rollback";
|
|
10
10
|
readonly RunHarness: "RuleEngineManagement:RunHarness";
|
|
11
|
+
readonly ListPacks: "RuleEngineManagement:ListPacks";
|
|
12
|
+
readonly ListRuns: "RuleEngineManagement:ListRuns";
|
|
13
|
+
readonly ExportPack: "RuleEngineManagement:ExportPack";
|
|
14
|
+
readonly ImportPack: "RuleEngineManagement:ImportPack";
|
|
11
15
|
};
|
|
12
16
|
export declare const AXP_RULE_SET_STATUS: {
|
|
13
17
|
readonly Draft: "draft";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-engine.constants.d.ts","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/rule-engine/src/lib/rule-engine.constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B,eAA4C,CAAC;AACzF,eAAO,MAAM,qBAAqB,eAAkC,CAAC;AAErE,eAAO,MAAM,mCAAmC,+BAA+B,CAAC;AAEhF,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"rule-engine.constants.d.ts","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/rule-engine/src/lib/rule-engine.constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B,eAA4C,CAAC;AACzF,eAAO,MAAM,qBAAqB,eAAkC,CAAC;AAErE,eAAO,MAAM,mCAAmC,+BAA+B,CAAC;AAEhF,eAAO,MAAM,wBAAwB;;;;;;;;;;;CAW3B,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC"}
|
|
@@ -12,6 +12,10 @@ exports.AXPRuleEngineCommandKeys = {
|
|
|
12
12
|
Publish: 'RuleEngineManagement:Publish',
|
|
13
13
|
Rollback: 'RuleEngineManagement:Rollback',
|
|
14
14
|
RunHarness: 'RuleEngineManagement:RunHarness',
|
|
15
|
+
ListPacks: 'RuleEngineManagement:ListPacks',
|
|
16
|
+
ListRuns: 'RuleEngineManagement:ListRuns',
|
|
17
|
+
ExportPack: 'RuleEngineManagement:ExportPack',
|
|
18
|
+
ImportPack: 'RuleEngineManagement:ImportPack',
|
|
15
19
|
};
|
|
16
20
|
exports.AXP_RULE_SET_STATUS = {
|
|
17
21
|
Draft: 'draft',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-engine.constants.js","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/rule-engine/src/lib/rule-engine.constants.ts"],"names":[],"mappings":";AAAA,yCAAyC;;;AAE5B,QAAA,+BAA+B,GAAG,MAAM,CAAC,iCAAiC,CAAC,CAAC;AAC5E,QAAA,qBAAqB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAExD,QAAA,mCAAmC,GAAG,4BAA4B,CAAC;AAEnE,QAAA,wBAAwB,GAAG;IACtC,QAAQ,EAAE,qBAAqB;IAC/B,YAAY,EAAE,yBAAyB;IACvC,QAAQ,EAAE,+BAA+B;IACzC,OAAO,EAAE,8BAA8B;IACvC,QAAQ,EAAE,+BAA+B;IACzC,UAAU,EAAE,iCAAiC;CACrC,CAAC;AAEE,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;CAChB,CAAC;AAEX,YAAY"}
|
|
1
|
+
{"version":3,"file":"rule-engine.constants.js","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/rule-engine/src/lib/rule-engine.constants.ts"],"names":[],"mappings":";AAAA,yCAAyC;;;AAE5B,QAAA,+BAA+B,GAAG,MAAM,CAAC,iCAAiC,CAAC,CAAC;AAC5E,QAAA,qBAAqB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAExD,QAAA,mCAAmC,GAAG,4BAA4B,CAAC;AAEnE,QAAA,wBAAwB,GAAG;IACtC,QAAQ,EAAE,qBAAqB;IAC/B,YAAY,EAAE,yBAAyB;IACvC,QAAQ,EAAE,+BAA+B;IACzC,OAAO,EAAE,8BAA8B;IACvC,QAAQ,EAAE,+BAA+B;IACzC,UAAU,EAAE,iCAAiC;IAC7C,SAAS,EAAE,gCAAgC;IAC3C,QAAQ,EAAE,+BAA+B;IACzC,UAAU,EAAE,iCAAiC;IAC7C,UAAU,EAAE,iCAAiC;CACrC,CAAC;AAEE,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;CAChB,CAAC;AAEX,YAAY"}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* Re-exports build-time metadata only — do not add Angular modules or runtime services here.
|
|
4
4
|
*/
|
|
5
5
|
export * from './lib/commands/catalog-command-definition';
|
|
6
|
+
export * from './lib/commands/presence-command-keys';
|
|
6
7
|
export * from './lib/queries/catalog-query-definition';
|
|
8
|
+
export * from './lib/queries/presence-query-keys';
|
|
7
9
|
export * from './lib/plugins/catalog-entity-plugin-definition';
|
|
8
10
|
export * from './lib/widgets/catalog-widget-definition';
|
|
9
11
|
//# sourceMappingURL=catalog-sidecars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-sidecars.d.ts","sourceRoot":"","sources":["../../../../../../libs/framework/shared/runtime/src/catalog-sidecars.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"catalog-sidecars.d.ts","sourceRoot":"","sources":["../../../../../../libs/framework/shared/runtime/src/catalog-sidecars.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,yCAAyC,CAAC"}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
8
|
tslib_1.__exportStar(require("./lib/commands/catalog-command-definition"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./lib/commands/presence-command-keys"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./lib/queries/catalog-query-definition"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./lib/queries/presence-query-keys"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./lib/plugins/catalog-entity-plugin-definition"), exports);
|
|
11
13
|
tslib_1.__exportStar(require("./lib/widgets/catalog-widget-definition"), exports);
|
|
12
14
|
//# sourceMappingURL=catalog-sidecars.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-sidecars.js","sourceRoot":"","sources":["../../../../../../libs/framework/shared/runtime/src/catalog-sidecars.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,oFAA0D;AAC1D,iFAAuD;AACvD,yFAA+D;AAC/D,kFAAwD"}
|
|
1
|
+
{"version":3,"file":"catalog-sidecars.js","sourceRoot":"","sources":["../../../../../../libs/framework/shared/runtime/src/catalog-sidecars.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,oFAA0D;AAC1D,+EAAqD;AACrD,iFAAuD;AACvD,4EAAkD;AAClD,yFAA+D;AAC/D,kFAAwD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const AUTH_SIGN_IN_DEFAULT: "Auth:SignIn";
|
|
2
|
+
export declare const AUTH_REGISTER_DEFAULT: "Auth:Register";
|
|
3
|
+
export declare const AUTH_REFRESH_DEFAULT: "Auth:Refresh";
|
|
4
|
+
export declare const AUTH_LOGOUT_DEFAULT: "Auth:Logout";
|
|
5
|
+
export declare const AUTH_UPDATE_SESSION_DEFAULT: "Auth:UpdateSession";
|
|
6
|
+
export declare const AUTH_LIST_PROVIDERS_DEFAULT: "Auth:ListProviders";
|
|
7
|
+
export declare const AUTH_LIST_TENANTS_DEFAULT: "Auth:ListTenants";
|
|
8
|
+
export declare const AUTH_LIST_APPLICATIONS_DEFAULT: "Auth:ListApplications";
|
|
9
|
+
export declare const AUTH_GET_ACCESS_POLICY_DEFAULT: "Auth:GetAccessPolicy";
|
|
10
|
+
//# sourceMappingURL=auth-command-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-command-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/auth-command-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,EAAG,aAAsB,CAAC;AAC3D,eAAO,MAAM,qBAAqB,EAAG,eAAwB,CAAC;AAC9D,eAAO,MAAM,oBAAoB,EAAG,cAAuB,CAAC;AAC5D,eAAO,MAAM,mBAAmB,EAAG,aAAsB,CAAC;AAC1D,eAAO,MAAM,2BAA2B,EAAG,oBAA6B,CAAC;AAEzE,eAAO,MAAM,2BAA2B,EAAG,oBAA6B,CAAC;AACzE,eAAO,MAAM,yBAAyB,EAAG,kBAA2B,CAAC;AACrE,eAAO,MAAM,8BAA8B,EAAG,uBAAgC,CAAC;AAC/E,eAAO,MAAM,8BAA8B,EAAG,sBAA+B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Auth command/query keys ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AUTH_GET_ACCESS_POLICY_DEFAULT = exports.AUTH_LIST_APPLICATIONS_DEFAULT = exports.AUTH_LIST_TENANTS_DEFAULT = exports.AUTH_LIST_PROVIDERS_DEFAULT = exports.AUTH_UPDATE_SESSION_DEFAULT = exports.AUTH_LOGOUT_DEFAULT = exports.AUTH_REFRESH_DEFAULT = exports.AUTH_REGISTER_DEFAULT = exports.AUTH_SIGN_IN_DEFAULT = void 0;
|
|
5
|
+
exports.AUTH_SIGN_IN_DEFAULT = 'Auth:SignIn';
|
|
6
|
+
exports.AUTH_REGISTER_DEFAULT = 'Auth:Register';
|
|
7
|
+
exports.AUTH_REFRESH_DEFAULT = 'Auth:Refresh';
|
|
8
|
+
exports.AUTH_LOGOUT_DEFAULT = 'Auth:Logout';
|
|
9
|
+
exports.AUTH_UPDATE_SESSION_DEFAULT = 'Auth:UpdateSession';
|
|
10
|
+
exports.AUTH_LIST_PROVIDERS_DEFAULT = 'Auth:ListProviders';
|
|
11
|
+
exports.AUTH_LIST_TENANTS_DEFAULT = 'Auth:ListTenants';
|
|
12
|
+
exports.AUTH_LIST_APPLICATIONS_DEFAULT = 'Auth:ListApplications';
|
|
13
|
+
exports.AUTH_GET_ACCESS_POLICY_DEFAULT = 'Auth:GetAccessPolicy';
|
|
14
|
+
//#endregion
|
|
15
|
+
//# sourceMappingURL=auth-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-command-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/auth-command-keys.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAE9B,QAAA,oBAAoB,GAAG,aAAsB,CAAC;AAC9C,QAAA,qBAAqB,GAAG,eAAwB,CAAC;AACjD,QAAA,oBAAoB,GAAG,cAAuB,CAAC;AAC/C,QAAA,mBAAmB,GAAG,aAAsB,CAAC;AAC7C,QAAA,2BAA2B,GAAG,oBAA6B,CAAC;AAE5D,QAAA,2BAA2B,GAAG,oBAA6B,CAAC;AAC5D,QAAA,yBAAyB,GAAG,kBAA2B,CAAC;AACxD,QAAA,8BAA8B,GAAG,uBAAgC,CAAC;AAClE,QAAA,8BAA8B,GAAG,sBAA+B,CAAC;AAE9E,YAAY"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AXPRuntimeMessage } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import type { AXPBulkCommandItemResult } from './bulk-command.types';
|
|
3
|
+
export type AXPBulkFailureMode = 'none' | 'single' | 'shared-code' | 'mixed';
|
|
4
|
+
export interface AXPBulkFailureAnalysis {
|
|
5
|
+
failed: AXPBulkCommandItemResult[];
|
|
6
|
+
mode: AXPBulkFailureMode;
|
|
7
|
+
/** Set for `single` / `shared-code` when all failed items share one code (or the only failure has a code). */
|
|
8
|
+
sharedCode?: string;
|
|
9
|
+
/** First failed item message — use for single / shared-code presentation. */
|
|
10
|
+
representative?: AXPRuntimeMessage;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Classifies failed bulk item results for UX:
|
|
14
|
+
* - `single` — exactly one failure (show that item’s reason)
|
|
15
|
+
* - `shared-code` — 2+ failures, all with the same `message.code`
|
|
16
|
+
* - `mixed` — 2+ failures with differing / missing codes (summary only)
|
|
17
|
+
*/
|
|
18
|
+
export declare function analyzeBulkCommandFailures(results: AXPBulkCommandItemResult[] | undefined | null): AXPBulkFailureAnalysis;
|
|
19
|
+
/**
|
|
20
|
+
* Top-level soft-fail `message` for a bulk command response.
|
|
21
|
+
* Lifts `code` when there is a single failure or all failures share one code.
|
|
22
|
+
*/
|
|
23
|
+
export declare function buildBulkCommandFailureMessage(succeeded: number, failed: number, results: AXPBulkCommandItemResult[]): AXPRuntimeMessage | undefined;
|
|
24
|
+
//# sourceMappingURL=bulk-command-failure.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-command-failure.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/bulk-command-failure.util.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAMrE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,wBAAwB,EAAE,CAAC;IACnC,IAAI,EAAE,kBAAkB,CAAC;IACzB,8GAA8G;IAC9G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,iBAAiB,CAAC;CACpC;AAMD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,wBAAwB,EAAE,GAAG,SAAS,GAAG,IAAI,GACrD,sBAAsB,CA8BxB;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,wBAAwB,EAAE,GAClC,iBAAiB,GAAG,SAAS,CA2B/B"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Imports ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.analyzeBulkCommandFailures = analyzeBulkCommandFailures;
|
|
5
|
+
exports.buildBulkCommandFailureMessage = buildBulkCommandFailureMessage;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ---- Analyze bulk failures ----
|
|
8
|
+
/**
|
|
9
|
+
* Classifies failed bulk item results for UX:
|
|
10
|
+
* - `single` — exactly one failure (show that item’s reason)
|
|
11
|
+
* - `shared-code` — 2+ failures, all with the same `message.code`
|
|
12
|
+
* - `mixed` — 2+ failures with differing / missing codes (summary only)
|
|
13
|
+
*/
|
|
14
|
+
function analyzeBulkCommandFailures(results) {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
const failed = (results !== null && results !== void 0 ? results : []).filter((item) => !item.success);
|
|
17
|
+
if (failed.length === 0) {
|
|
18
|
+
return { failed, mode: 'none' };
|
|
19
|
+
}
|
|
20
|
+
if (failed.length === 1) {
|
|
21
|
+
const representative = (_a = failed[0]) === null || _a === void 0 ? void 0 : _a.message;
|
|
22
|
+
return {
|
|
23
|
+
failed,
|
|
24
|
+
mode: 'single',
|
|
25
|
+
sharedCode: typeof (representative === null || representative === void 0 ? void 0 : representative.code) === 'string' ? representative.code : undefined,
|
|
26
|
+
representative,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const codes = failed
|
|
30
|
+
.map((item) => { var _a; return (_a = item.message) === null || _a === void 0 ? void 0 : _a.code; })
|
|
31
|
+
.filter((code) => typeof code === 'string' && code.trim().length > 0);
|
|
32
|
+
if (codes.length === failed.length && new Set(codes).size === 1) {
|
|
33
|
+
return {
|
|
34
|
+
failed,
|
|
35
|
+
mode: 'shared-code',
|
|
36
|
+
sharedCode: codes[0],
|
|
37
|
+
representative: (_b = failed[0]) === null || _b === void 0 ? void 0 : _b.message,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return { failed, mode: 'mixed' };
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Top-level soft-fail `message` for a bulk command response.
|
|
44
|
+
* Lifts `code` when there is a single failure or all failures share one code.
|
|
45
|
+
*/
|
|
46
|
+
function buildBulkCommandFailureMessage(succeeded, failed, results) {
|
|
47
|
+
var _a, _b, _c, _d;
|
|
48
|
+
if (failed <= 0) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
const analysis = analyzeBulkCommandFailures(results);
|
|
52
|
+
if (analysis.mode === 'single' || analysis.mode === 'shared-code') {
|
|
53
|
+
const code = (_a = analysis.sharedCode) !== null && _a !== void 0 ? _a : (_b = analysis.representative) === null || _b === void 0 ? void 0 : _b.code;
|
|
54
|
+
const message = {
|
|
55
|
+
type: 'error',
|
|
56
|
+
code,
|
|
57
|
+
details: (_c = analysis.representative) === null || _c === void 0 ? void 0 : _c.details,
|
|
58
|
+
};
|
|
59
|
+
// Prefer code → client i18n; keep @i18n text if the item already used one.
|
|
60
|
+
const text = (_d = analysis.representative) === null || _d === void 0 ? void 0 : _d.text;
|
|
61
|
+
if (typeof text === 'string' && text.startsWith('@')) {
|
|
62
|
+
message.text = text;
|
|
63
|
+
}
|
|
64
|
+
else if (text && typeof text === 'object') {
|
|
65
|
+
message.text = text;
|
|
66
|
+
}
|
|
67
|
+
return message;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
type: 'error',
|
|
71
|
+
text: `Bulk command finished with ${succeeded} succeeded and ${failed} failed.`,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//# sourceMappingURL=bulk-command-failure.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-command-failure.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/bulk-command-failure.util.ts"],"names":[],"mappings":";AAAA,2BAA2B;;AA+B3B,gEAgCC;AAMD,wEA+BC;AA/ED,YAAY;AAEZ,yCAAyC;AAEzC;;;;;GAKG;AACH,SAAgB,0BAA0B,CACxC,OAAsD;;IAEtD,MAAM,MAAM,GAAG,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,cAAc,GAAG,MAAA,MAAM,CAAC,CAAC,CAAC,0CAAE,OAAO,CAAC;QAC1C,OAAO;YACL,MAAM;YACN,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,OAAO,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,CAAA,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;YACtF,cAAc;SACf,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,MAAM;SACjB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,IAAI,CAAA,EAAA,CAAC;SACjC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAExF,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;QAChE,OAAO;YACL,MAAM;YACN,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;YACpB,cAAc,EAAE,MAAA,MAAM,CAAC,CAAC,CAAC,0CAAE,OAAO;SACnC,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACnC,CAAC;AAED;;;GAGG;AACH,SAAgB,8BAA8B,CAC5C,SAAiB,EACjB,MAAc,EACd,OAAmC;;IAEnC,IAAI,MAAM,IAAI,CAAC,EAAE,CAAC;QAChB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,QAAQ,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACrD,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;QAClE,MAAM,IAAI,GAAG,MAAA,QAAQ,CAAC,UAAU,mCAAI,MAAA,QAAQ,CAAC,cAAc,0CAAE,IAAI,CAAC;QAClE,MAAM,OAAO,GAAsB;YACjC,IAAI,EAAE,OAAO;YACb,IAAI;YACJ,OAAO,EAAE,MAAA,QAAQ,CAAC,cAAc,0CAAE,OAAO;SAC1C,CAAC;QACF,2EAA2E;QAC3E,MAAM,IAAI,GAAG,MAAA,QAAQ,CAAC,cAAc,0CAAE,IAAI,CAAC;QAC3C,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACrD,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;QACtB,CAAC;aAAM,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC5C,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;QACtB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,8BAA8B,SAAS,kBAAkB,MAAM,UAAU;KAChF,CAAC;AACJ,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { AXDataSourceFilterOption, AXPRuntimeMessage } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
/** Default cap for ids resolved from a bulk filter before fan-out. */
|
|
3
|
+
export declare const AXP_BULK_COMMAND_DEFAULT_MAX_ITEMS = 100;
|
|
4
|
+
/** Default parallel fan-out workers for bulk command execution. */
|
|
5
|
+
export declare const AXP_BULK_COMMAND_DEFAULT_CONCURRENCY = 1;
|
|
6
|
+
/** Hard upper bound for bulk filter resolution / fan-out. */
|
|
7
|
+
export declare const AXP_BULK_COMMAND_HARD_MAX_ITEMS = 500;
|
|
8
|
+
/**
|
|
9
|
+
* Filter-only bulk execute request.
|
|
10
|
+
* Target rows are resolved server-side via entity query + {@link filter}.
|
|
11
|
+
*/
|
|
12
|
+
export interface AXPBulkCommandRequest {
|
|
13
|
+
/** Server-executable command key (e.g. `Entity:Delete:Default`, `BackgroundJobManagement:Schedule:RunNow`). */
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Entity used to resolve {@link filter} and, for `Entity:*:Default` names,
|
|
17
|
+
* injected into each fan-out command input (do not repeat in {@link input}).
|
|
18
|
+
*/
|
|
19
|
+
entity: string;
|
|
20
|
+
/** Same filter shape as runtime entity queries. Selected rows → `{ field:'id', operator:{type:'in'}, value: ids }`. */
|
|
21
|
+
filter: AXDataSourceFilterOption;
|
|
22
|
+
/** Shared input merged into each per-item command call (patch fields, etc. — not `entity`). */
|
|
23
|
+
input?: Record<string, unknown>;
|
|
24
|
+
/** Field name for the resolved id in each command input. Default: `id`. */
|
|
25
|
+
idField?: string;
|
|
26
|
+
/** Max rows to resolve from filter (capped by hard max). */
|
|
27
|
+
maxItems?: number;
|
|
28
|
+
/** Parallel fan-out size (capped). Default: 1 (sequential). */
|
|
29
|
+
concurrency?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface AXPBulkCommandItemResult {
|
|
32
|
+
id: string;
|
|
33
|
+
success: boolean;
|
|
34
|
+
data?: unknown;
|
|
35
|
+
message?: AXPRuntimeMessage;
|
|
36
|
+
}
|
|
37
|
+
export interface AXPBulkCommandResultData {
|
|
38
|
+
total: number;
|
|
39
|
+
succeeded: number;
|
|
40
|
+
failed: number;
|
|
41
|
+
/** True when filter matched more rows than {@link AXPBulkCommandRequest.maxItems}. */
|
|
42
|
+
truncated?: boolean;
|
|
43
|
+
results: AXPBulkCommandItemResult[];
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=bulk-command.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-command.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/bulk-command.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE1G,sEAAsE;AACtE,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAEtD,mEAAmE;AACnE,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD,6DAA6D;AAC7D,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,+GAA+G;IAC/G,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,uHAAuH;IACvH,MAAM,EAAE,wBAAwB,CAAC;IACjC,+FAA+F;IAC/F,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Bulk command contracts ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AXP_BULK_COMMAND_HARD_MAX_ITEMS = exports.AXP_BULK_COMMAND_DEFAULT_CONCURRENCY = exports.AXP_BULK_COMMAND_DEFAULT_MAX_ITEMS = void 0;
|
|
5
|
+
/** Default cap for ids resolved from a bulk filter before fan-out. */
|
|
6
|
+
exports.AXP_BULK_COMMAND_DEFAULT_MAX_ITEMS = 100;
|
|
7
|
+
/** Default parallel fan-out workers for bulk command execution. */
|
|
8
|
+
exports.AXP_BULK_COMMAND_DEFAULT_CONCURRENCY = 1;
|
|
9
|
+
/** Hard upper bound for bulk filter resolution / fan-out. */
|
|
10
|
+
exports.AXP_BULK_COMMAND_HARD_MAX_ITEMS = 500;
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=bulk-command.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-command.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/bulk-command.types.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;AAI1C,sEAAsE;AACzD,QAAA,kCAAkC,GAAG,GAAG,CAAC;AAEtD,mEAAmE;AACtD,QAAA,oCAAoC,GAAG,CAAC,CAAC;AAEtD,6DAA6D;AAChD,QAAA,+BAA+B,GAAG,GAAG,CAAC;AA0CnD,YAAY"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Build-time command metadata only. Safe under Node (e.g. generate-runtime-catalog) without loading the command executor stack.
|
|
3
3
|
* Sidecars should import `defineCommand` from `@acorex-platform/framework-shared/runtime`.
|
|
4
4
|
*/
|
|
5
|
-
export { defineCommand } from './define-command';
|
|
6
5
|
export * from './command-definition.categories';
|
|
7
6
|
export * from './command-definition.types';
|
|
7
|
+
export { defineCommand } from './define-command';
|
|
8
8
|
//# sourceMappingURL=catalog-command-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-command-definition.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/catalog-command-definition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"catalog-command-definition.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/catalog-command-definition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -6,8 +6,8 @@ const tslib_1 = require("tslib");
|
|
|
6
6
|
* Build-time command metadata only. Safe under Node (e.g. generate-runtime-catalog) without loading the command executor stack.
|
|
7
7
|
* Sidecars should import `defineCommand` from `@acorex-platform/framework-shared/runtime`.
|
|
8
8
|
*/
|
|
9
|
-
var define_command_1 = require("./define-command");
|
|
10
|
-
Object.defineProperty(exports, "defineCommand", { enumerable: true, get: function () { return define_command_1.defineCommand; } });
|
|
11
9
|
tslib_1.__exportStar(require("./command-definition.categories"), exports);
|
|
12
10
|
tslib_1.__exportStar(require("./command-definition.types"), exports);
|
|
11
|
+
var define_command_1 = require("./define-command");
|
|
12
|
+
Object.defineProperty(exports, "defineCommand", { enumerable: true, get: function () { return define_command_1.defineCommand; } });
|
|
13
13
|
//# sourceMappingURL=catalog-command-definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-command-definition.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/catalog-command-definition.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,mDAAiD;AAAxC,+GAAA,aAAa,OAAA
|
|
1
|
+
{"version":3,"file":"catalog-command-definition.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/catalog-command-definition.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,0EAAgD;AAChD,qEAA2C;AAC3C,mDAAiD;AAAxC,+GAAA,aAAa,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-definition.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command-definition.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"command-definition.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command-definition.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAEzH,cAAc,yCAAyC,CAAC;AAIxD,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAMN,MAAM,WAAW,4BAA6B,SAAQ,gCAAgC;IACpF,wEAAwE;IACxE,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,uBAAuB,CAAC;IACvC,QAAQ,EAAE,2BAA2B,CAAC;CACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-definition.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command-definition.types.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;
|
|
1
|
+
{"version":3,"file":"command-definition.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command-definition.types.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAIH,kFAAwD;AA2BxD,YAAY"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parent bag for command execute knobs (not business input).
|
|
3
|
+
* Extensible — add fields here instead of new positional args.
|
|
4
|
+
* Separate from {@link AXPQueryExecuteOptions}.
|
|
5
|
+
*/
|
|
6
|
+
export interface AXPCommandExecuteOptions {
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=command-execute-options.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-execute-options.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command-execute-options.types.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;CAExC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-execute-options.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command-execute-options.types.ts"],"names":[],"mappings":";AAAA,6CAA6C;;AAW7C,YAAY"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
/**
|
|
3
|
+
* Command execute promise.
|
|
4
|
+
* Success envelope still uses shared kinds (`value` | `object` | `collection`) on
|
|
5
|
+
* {@link AXPRuntimeCommandResult}, but unlike queries there is no kind-driven
|
|
6
|
+
* standard input pack (no skip/take contract).
|
|
7
|
+
*/
|
|
8
|
+
export type AXPCommandExecuteResultPromise<TResult = unknown> = Promise<AXPRuntimeCommandResult<TResult>>;
|
|
9
|
+
/**
|
|
10
|
+
* Client/server command handler contract.
|
|
11
|
+
* Input shape is free; return {@link AXPRuntimeCommandResult} with the appropriate
|
|
12
|
+
* success `kind` for the payload.
|
|
13
|
+
*/
|
|
14
|
+
export interface AXPCommand<TInput = unknown, TResult = unknown> {
|
|
15
|
+
execute(input: TInput): AXPCommandExecuteResultPromise<TResult>;
|
|
5
16
|
}
|
|
6
17
|
//# sourceMappingURL=command.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command.interface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command.interface.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAMtF;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,CAAC,OAAO,GAAG,OAAO,IAC1D,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO;IAC7D,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC;CACjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.interface.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command.interface.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"command.interface.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command.interface.ts"],"names":[],"mappings":";AAAA,2BAA2B;;AA0B3B,YAAY"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AXPCommandExecuteResultPromise } from './command.interface';
|
|
2
|
+
import type { AXPCommandExecuteOptions } from './command-execute-options.types';
|
|
3
|
+
/**
|
|
4
|
+
* Context passed through the named-command middleware pipeline.
|
|
5
|
+
* Separate from query middleware — do not unify the public aliases.
|
|
6
|
+
*
|
|
7
|
+
* Defaults use `any` (same as the former client-only types) so targeted
|
|
8
|
+
* middlewares remain assignable to the untyped registry slot.
|
|
9
|
+
*/
|
|
10
|
+
export type AXPCommandMiddlewareContext<TInput = any> = {
|
|
11
|
+
key: string;
|
|
12
|
+
input: TInput;
|
|
13
|
+
options?: AXPCommandExecuteOptions;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Onion middleware around a named command execute.
|
|
17
|
+
* `next` / return are command envelopes ({@link AXPCommandExecuteResultPromise}),
|
|
18
|
+
* not an arbitrary `TResult` payload.
|
|
19
|
+
*/
|
|
20
|
+
export type AXPCommandMiddleware<TInput = any, TResult = any> = (context: AXPCommandMiddlewareContext<TInput>, next: (context: AXPCommandMiddlewareContext<TInput>) => AXPCommandExecuteResultPromise<TResult>) => AXPCommandExecuteResultPromise<TResult>;
|
|
21
|
+
export declare function composeCommandMiddlewares<TInput, TResult>(middlewares: readonly AXPCommandMiddleware<TInput, TResult>[]): (handler: (context: AXPCommandMiddlewareContext<TInput>) => AXPCommandExecuteResultPromise<TResult>) => (context: AXPCommandMiddlewareContext<TInput>) => AXPCommandExecuteResultPromise<TResult>;
|
|
22
|
+
//# sourceMappingURL=command.middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.middleware.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command.middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAIhF;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,CAAC,MAAM,GAAG,GAAG,IAAI;IACtD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,wBAAwB,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,CAAC,MAAM,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,CAC9D,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,CAAC,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,KAAK,8BAA8B,CAAC,OAAO,CAAC,KAC5F,8BAA8B,CAAC,OAAO,CAAC,CAAC;AAE7C,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,OAAO,EACvD,WAAW,EAAE,SAAS,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAC5D,CACD,OAAO,EAAE,CAAC,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,KAAK,8BAA8B,CAAC,OAAO,CAAC,KAC/F,CAAC,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,KAAK,8BAA8B,CAAC,OAAO,CAAC,CAc7F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.composeCommandMiddlewares = composeCommandMiddlewares;
|
|
4
|
+
function composeCommandMiddlewares(middlewares) {
|
|
5
|
+
return (handler) => {
|
|
6
|
+
let composed = handler;
|
|
7
|
+
for (let i = middlewares.length - 1; i >= 0; i--) {
|
|
8
|
+
const mw = middlewares[i];
|
|
9
|
+
const next = composed;
|
|
10
|
+
composed = (context) => mw(context, next);
|
|
11
|
+
}
|
|
12
|
+
return composed;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//# sourceMappingURL=command.middleware.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.middleware.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/command.middleware.ts"],"names":[],"mappings":";;AA4BA,8DAkBC;AAlBD,SAAgB,yBAAyB,CACvC,WAA6D;IAI7D,OAAO,CACL,OAAkG,EAClG,EAAE;QACF,IAAI,QAAQ,GAAG,OAAO,CAAC;QAEvB,KAAK,IAAI,CAAC,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YACjD,MAAM,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAC1B,MAAM,IAAI,GAAG,QAAQ,CAAC;YACtB,QAAQ,GAAG,CAAC,OAA4C,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjF,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC;AAED,YAAY"}
|