@oronts/vendure-data-hub-plugin 0.1.2 → 0.1.4
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/CHANGELOG.md +33 -1
- package/README.md +36 -10
- package/dashboard/components/pipelines/PipelineEditor.tsx +159 -5
- package/dashboard/components/pipelines/ReactFlowPipelineEditor.tsx +3 -3
- package/dashboard/components/pipelines/shared/NodePropertiesPanel.tsx +42 -4
- package/dashboard/components/pipelines/shared/StepListItem.tsx +2 -2
- package/dashboard/components/shared/CodeEditor.tsx +289 -0
- package/dashboard/components/shared/schema-form/fields/TextareaField.tsx +19 -4
- package/dashboard/components/shared/step-config/AdapterSelector.tsx +2 -2
- package/dashboard/components/shared/step-config/OperatorFieldInput.tsx +19 -0
- package/dashboard/components/shared/step-config/RouteConfigComponent.tsx +218 -29
- package/dashboard/components/shared/step-config/StepConfigPanel.tsx +24 -10
- package/dashboard/constants/ui-dimensions.ts +2 -1
- package/dashboard/constants/ui-states.ts +1 -0
- package/dashboard/gql/gql.ts +6 -6
- package/dashboard/gql/graphql.ts +9 -4
- package/dashboard/hooks/api/use-pipeline-runs.ts +1 -0
- package/dashboard/hooks/api/use-queues.ts +1 -0
- package/dashboard/hooks/use-adapter-catalog.ts +4 -32
- package/dashboard/routes/connections/ConnectionDetail.tsx +7 -1
- package/dashboard/routes/pipelines/RunDetailsPanel.tsx +1 -1
- package/dashboard/routes/pipelines/components/PipelineActionButtons.tsx +3 -3
- package/dashboard/routes/pipelines/utils/pipeline-conversion.ts +3 -5
- package/dashboard/utils/formatters.ts +6 -4
- package/dist/dashboard/components/pipelines/PipelineEditor.tsx +159 -5
- package/dist/dashboard/components/pipelines/ReactFlowPipelineEditor.tsx +3 -3
- package/dist/dashboard/components/pipelines/shared/NodePropertiesPanel.tsx +42 -4
- package/dist/dashboard/components/pipelines/shared/StepListItem.tsx +2 -2
- package/dist/dashboard/components/shared/CodeEditor.tsx +289 -0
- package/dist/dashboard/components/shared/schema-form/fields/TextareaField.tsx +19 -4
- package/dist/dashboard/components/shared/step-config/AdapterSelector.tsx +2 -2
- package/dist/dashboard/components/shared/step-config/OperatorFieldInput.tsx +19 -0
- package/dist/dashboard/components/shared/step-config/RouteConfigComponent.tsx +218 -29
- package/dist/dashboard/components/shared/step-config/StepConfigPanel.tsx +24 -10
- package/dist/dashboard/constants/ui-dimensions.ts +2 -1
- package/dist/dashboard/constants/ui-states.ts +1 -0
- package/dist/dashboard/gql/gql.ts +6 -6
- package/dist/dashboard/gql/graphql.ts +9 -4
- package/dist/dashboard/hooks/api/use-pipeline-runs.ts +1 -0
- package/dist/dashboard/hooks/api/use-queues.ts +1 -0
- package/dist/dashboard/hooks/use-adapter-catalog.ts +4 -32
- package/dist/dashboard/routes/connections/ConnectionDetail.tsx +7 -1
- package/dist/dashboard/routes/pipelines/RunDetailsPanel.tsx +1 -1
- package/dist/dashboard/routes/pipelines/components/PipelineActionButtons.tsx +3 -3
- package/dist/dashboard/routes/pipelines/utils/pipeline-conversion.ts +3 -5
- package/dist/dashboard/utils/formatters.ts +6 -4
- package/dist/shared/types/adapter-config.types.d.ts +400 -13
- package/dist/shared/types/adapter-config.types.d.ts.map +1 -1
- package/dist/shared/types/index.d.ts +1 -1
- package/dist/shared/types/index.d.ts.map +1 -1
- package/dist/shared/types/index.js.map +1 -1
- package/dist/shared/types/loader.types.d.ts +4 -0
- package/dist/shared/types/loader.types.d.ts.map +1 -1
- package/dist/shared/types/step.types.d.ts +6 -0
- package/dist/shared/types/step.types.d.ts.map +1 -1
- package/dist/shared/utils/error.d.ts +5 -0
- package/dist/shared/utils/error.d.ts.map +1 -1
- package/dist/shared/utils/error.js +11 -0
- package/dist/shared/utils/error.js.map +1 -1
- package/dist/src/adapters/registry.d.ts.map +1 -1
- package/dist/src/adapters/registry.js +2 -1
- package/dist/src/adapters/registry.js.map +1 -1
- package/dist/src/api/controllers/webhook.controller.d.ts +10 -0
- package/dist/src/api/controllers/webhook.controller.d.ts.map +1 -1
- package/dist/src/api/controllers/webhook.controller.js +50 -10
- package/dist/src/api/controllers/webhook.controller.js.map +1 -1
- package/dist/src/api/resolvers/queue.resolver.d.ts +3 -1
- package/dist/src/api/resolvers/queue.resolver.d.ts.map +1 -1
- package/dist/src/api/resolvers/queue.resolver.js +6 -5
- package/dist/src/api/resolvers/queue.resolver.js.map +1 -1
- package/dist/src/api/schema/pipeline.schema.d.ts +1 -1
- package/dist/src/api/schema/pipeline.schema.d.ts.map +1 -1
- package/dist/src/api/schema/pipeline.schema.js +6 -0
- package/dist/src/api/schema/pipeline.schema.js.map +1 -1
- package/dist/src/api/schema/test.schema.d.ts +1 -1
- package/dist/src/api/schema/test.schema.d.ts.map +1 -1
- package/dist/src/api/schema/test.schema.js +5 -1
- package/dist/src/api/schema/test.schema.js.map +1 -1
- package/dist/src/bootstrap/initialization.d.ts.map +1 -1
- package/dist/src/bootstrap/initialization.js +6 -0
- package/dist/src/bootstrap/initialization.js.map +1 -1
- package/dist/src/constants/adapter-schema-options.d.ts +65 -0
- package/dist/src/constants/adapter-schema-options.d.ts.map +1 -1
- package/dist/src/constants/adapter-schema-options.js +79 -3
- package/dist/src/constants/adapter-schema-options.js.map +1 -1
- package/dist/src/constants/builtin-adapters.d.ts +1 -1
- package/dist/src/constants/builtin-adapters.d.ts.map +1 -1
- package/dist/src/constants/builtin-adapters.js +19 -1
- package/dist/src/constants/builtin-adapters.js.map +1 -1
- package/dist/src/constants/core.d.ts +10 -0
- package/dist/src/constants/core.d.ts.map +1 -1
- package/dist/src/constants/core.js +10 -0
- package/dist/src/constants/core.js.map +1 -1
- package/dist/src/constants/defaults/webhook-defaults.d.ts +2 -0
- package/dist/src/constants/defaults/webhook-defaults.d.ts.map +1 -1
- package/dist/src/constants/defaults/webhook-defaults.js +2 -0
- package/dist/src/constants/defaults/webhook-defaults.js.map +1 -1
- package/dist/src/constants/enum-metadata.d.ts.map +1 -1
- package/dist/src/constants/enum-metadata.js +3 -0
- package/dist/src/constants/enum-metadata.js.map +1 -1
- package/dist/src/constants/hook-stage-metadata.d.ts.map +1 -1
- package/dist/src/constants/hook-stage-metadata.js +42 -0
- package/dist/src/constants/hook-stage-metadata.js.map +1 -1
- package/dist/src/constants/services.d.ts.map +1 -1
- package/dist/src/constants/services.js +7 -0
- package/dist/src/constants/services.js.map +1 -1
- package/dist/src/constants/time.d.ts +2 -0
- package/dist/src/constants/time.d.ts.map +1 -1
- package/dist/src/constants/time.js +2 -0
- package/dist/src/constants/time.js.map +1 -1
- package/dist/src/entities/data/error-record.entity.d.ts +1 -0
- package/dist/src/entities/data/error-record.entity.d.ts.map +1 -1
- package/dist/src/entities/data/error-record.entity.js +4 -0
- package/dist/src/entities/data/error-record.entity.js.map +1 -1
- package/dist/src/entities/pipeline/pipeline-run.entity.d.ts +4 -0
- package/dist/src/entities/pipeline/pipeline-run.entity.d.ts.map +1 -1
- package/dist/src/entities/pipeline/pipeline-run.entity.js +8 -0
- package/dist/src/entities/pipeline/pipeline-run.entity.js.map +1 -1
- package/dist/src/extractors/cdc/cdc.extractor.d.ts.map +1 -1
- package/dist/src/extractors/cdc/cdc.extractor.js +7 -2
- package/dist/src/extractors/cdc/cdc.extractor.js.map +1 -1
- package/dist/src/extractors/cdc/types.d.ts +1 -1
- package/dist/src/extractors/cdc/types.d.ts.map +1 -1
- package/dist/src/extractors/extractor-handler-registry.d.ts.map +1 -1
- package/dist/src/extractors/extractor-handler-registry.js +3 -0
- package/dist/src/extractors/extractor-handler-registry.js.map +1 -1
- package/dist/src/extractors/vendure-query/helpers.d.ts +9 -4
- package/dist/src/extractors/vendure-query/helpers.d.ts.map +1 -1
- package/dist/src/extractors/vendure-query/helpers.js +98 -32
- package/dist/src/extractors/vendure-query/helpers.js.map +1 -1
- package/dist/src/extractors/vendure-query/schema.d.ts.map +1 -1
- package/dist/src/extractors/vendure-query/schema.js +13 -0
- package/dist/src/extractors/vendure-query/schema.js.map +1 -1
- package/dist/src/feeds/generators/csv-feed.generator.d.ts.map +1 -1
- package/dist/src/feeds/generators/csv-feed.generator.js +5 -4
- package/dist/src/feeds/generators/csv-feed.generator.js.map +1 -1
- package/dist/src/feeds/generators/facebook-catalog.generator.d.ts.map +1 -1
- package/dist/src/feeds/generators/facebook-catalog.generator.js +83 -114
- package/dist/src/feeds/generators/facebook-catalog.generator.js.map +1 -1
- package/dist/src/feeds/generators/feed-constants.d.ts +1 -0
- package/dist/src/feeds/generators/feed-constants.d.ts.map +1 -1
- package/dist/src/feeds/generators/feed-constants.js +1 -0
- package/dist/src/feeds/generators/feed-constants.js.map +1 -1
- package/dist/src/feeds/generators/feed-helpers.d.ts +10 -8
- package/dist/src/feeds/generators/feed-helpers.d.ts.map +1 -1
- package/dist/src/feeds/generators/feed-helpers.js +23 -3
- package/dist/src/feeds/generators/feed-helpers.js.map +1 -1
- package/dist/src/feeds/generators/feed-item-builder.d.ts +59 -0
- package/dist/src/feeds/generators/feed-item-builder.d.ts.map +1 -0
- package/dist/src/feeds/generators/feed-item-builder.js +93 -0
- package/dist/src/feeds/generators/feed-item-builder.js.map +1 -0
- package/dist/src/feeds/generators/google-shopping.generator.d.ts.map +1 -1
- package/dist/src/feeds/generators/google-shopping.generator.js +52 -64
- package/dist/src/feeds/generators/google-shopping.generator.js.map +1 -1
- package/dist/src/feeds/generators/json-feed.generator.d.ts.map +1 -1
- package/dist/src/feeds/generators/json-feed.generator.js +4 -3
- package/dist/src/feeds/generators/json-feed.generator.js.map +1 -1
- package/dist/src/feeds/generators/xml-feed.generator.d.ts.map +1 -1
- package/dist/src/feeds/generators/xml-feed.generator.js +6 -5
- package/dist/src/feeds/generators/xml-feed.generator.js.map +1 -1
- package/dist/src/gql/generated.d.ts +5 -0
- package/dist/src/gql/generated.d.ts.map +1 -1
- package/dist/src/gql/generated.js.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/loaders/asset/asset.loader.d.ts.map +1 -1
- package/dist/src/loaders/asset/asset.loader.js +5 -1
- package/dist/src/loaders/asset/asset.loader.js.map +1 -1
- package/dist/src/loaders/base/validation-builder.d.ts +128 -3
- package/dist/src/loaders/base/validation-builder.d.ts.map +1 -1
- package/dist/src/loaders/base/validation-builder.js +177 -6
- package/dist/src/loaders/base/validation-builder.js.map +1 -1
- package/dist/src/loaders/collection/collection.loader.d.ts.map +1 -1
- package/dist/src/loaders/collection/collection.loader.js +22 -1
- package/dist/src/loaders/collection/collection.loader.js.map +1 -1
- package/dist/src/loaders/collection/helpers.d.ts +16 -1
- package/dist/src/loaders/collection/helpers.d.ts.map +1 -1
- package/dist/src/loaders/collection/helpers.js +37 -0
- package/dist/src/loaders/collection/helpers.js.map +1 -1
- package/dist/src/loaders/customer/customer.loader.d.ts.map +1 -1
- package/dist/src/loaders/customer/customer.loader.js +13 -1
- package/dist/src/loaders/customer/customer.loader.js.map +1 -1
- package/dist/src/loaders/customer/helpers.d.ts +15 -3
- package/dist/src/loaders/customer/helpers.d.ts.map +1 -1
- package/dist/src/loaders/customer/helpers.js +188 -7
- package/dist/src/loaders/customer/helpers.js.map +1 -1
- package/dist/src/loaders/facet-value/facet-value.loader.d.ts.map +1 -1
- package/dist/src/loaders/facet-value/facet-value.loader.js +18 -0
- package/dist/src/loaders/facet-value/facet-value.loader.js.map +1 -1
- package/dist/src/loaders/facet-value/types.d.ts +1 -1
- package/dist/src/loaders/facet-value/types.js +1 -1
- package/dist/src/loaders/facet-value/types.js.map +1 -1
- package/dist/src/loaders/inventory/inventory.loader.d.ts.map +1 -1
- package/dist/src/loaders/inventory/inventory.loader.js +1 -2
- package/dist/src/loaders/inventory/inventory.loader.js.map +1 -1
- package/dist/src/loaders/order/helpers.d.ts +16 -2
- package/dist/src/loaders/order/helpers.d.ts.map +1 -1
- package/dist/src/loaders/order/helpers.js +108 -0
- package/dist/src/loaders/order/helpers.js.map +1 -1
- package/dist/src/loaders/order/order.loader.d.ts +38 -0
- package/dist/src/loaders/order/order.loader.d.ts.map +1 -1
- package/dist/src/loaders/order/order.loader.js +238 -24
- package/dist/src/loaders/order/order.loader.js.map +1 -1
- package/dist/src/loaders/order/types.d.ts +10 -3
- package/dist/src/loaders/order/types.d.ts.map +1 -1
- package/dist/src/loaders/order/types.js +13 -2
- package/dist/src/loaders/order/types.js.map +1 -1
- package/dist/src/loaders/product/product.loader.d.ts.map +1 -1
- package/dist/src/loaders/product/product.loader.js +18 -2
- package/dist/src/loaders/product/product.loader.js.map +1 -1
- package/dist/src/loaders/product-variant/helpers.d.ts +20 -0
- package/dist/src/loaders/product-variant/helpers.d.ts.map +1 -0
- package/dist/src/loaders/product-variant/helpers.js +103 -0
- package/dist/src/loaders/product-variant/helpers.js.map +1 -0
- package/dist/src/loaders/product-variant/product-variant.loader.d.ts.map +1 -1
- package/dist/src/loaders/product-variant/product-variant.loader.js +76 -10
- package/dist/src/loaders/product-variant/product-variant.loader.js.map +1 -1
- package/dist/src/loaders/product-variant/types.d.ts +7 -0
- package/dist/src/loaders/product-variant/types.d.ts.map +1 -1
- package/dist/src/loaders/product-variant/types.js.map +1 -1
- package/dist/src/loaders/promotion/helpers.d.ts +29 -0
- package/dist/src/loaders/promotion/helpers.d.ts.map +1 -1
- package/dist/src/loaders/promotion/helpers.js +68 -0
- package/dist/src/loaders/promotion/helpers.js.map +1 -1
- package/dist/src/loaders/promotion/promotion.loader.d.ts.map +1 -1
- package/dist/src/loaders/promotion/promotion.loader.js +12 -2
- package/dist/src/loaders/promotion/promotion.loader.js.map +1 -1
- package/dist/src/loaders/shared-helpers.d.ts +42 -2
- package/dist/src/loaders/shared-helpers.d.ts.map +1 -1
- package/dist/src/loaders/shared-helpers.js +384 -5
- package/dist/src/loaders/shared-helpers.js.map +1 -1
- package/dist/src/operators/data/copy.operator.js +2 -2
- package/dist/src/operators/data/copy.operator.js.map +1 -1
- package/dist/src/operators/data/rename.operator.js +1 -1
- package/dist/src/operators/data/rename.operator.js.map +1 -1
- package/dist/src/operators/helpers.d.ts.map +1 -1
- package/dist/src/operators/helpers.js +11 -1
- package/dist/src/operators/helpers.js.map +1 -1
- package/dist/src/operators/operator-runtime-registry.d.ts +2 -2
- package/dist/src/operators/operator-runtime-registry.d.ts.map +1 -1
- package/dist/src/operators/operator-runtime-registry.js +1 -1
- package/dist/src/operators/operator-runtime-registry.js.map +1 -1
- package/dist/src/operators/script/script.operators.d.ts.map +1 -1
- package/dist/src/operators/script/script.operators.js +9 -3
- package/dist/src/operators/script/script.operators.js.map +1 -1
- package/dist/src/runtime/config-types.d.ts +6 -0
- package/dist/src/runtime/config-types.d.ts.map +1 -1
- package/dist/src/runtime/executor-helpers.d.ts +77 -0
- package/dist/src/runtime/executor-helpers.d.ts.map +1 -0
- package/dist/src/runtime/executor-helpers.js +143 -0
- package/dist/src/runtime/executor-helpers.js.map +1 -0
- package/dist/src/runtime/executor-types.d.ts +3 -2
- package/dist/src/runtime/executor-types.d.ts.map +1 -1
- package/dist/src/runtime/executors/export.executor.d.ts +3 -1
- package/dist/src/runtime/executors/export.executor.d.ts.map +1 -1
- package/dist/src/runtime/executors/export.executor.js +15 -3
- package/dist/src/runtime/executors/export.executor.js.map +1 -1
- package/dist/src/runtime/executors/exporters/export-handler-registry.d.ts.map +1 -1
- package/dist/src/runtime/executors/exporters/export-handler-registry.js +5 -0
- package/dist/src/runtime/executors/exporters/export-handler-registry.js.map +1 -1
- package/dist/src/runtime/executors/exporters/export-handler.types.d.ts +3 -0
- package/dist/src/runtime/executors/exporters/export-handler.types.d.ts.map +1 -1
- package/dist/src/runtime/executors/exporters/export-handler.types.js.map +1 -1
- package/dist/src/runtime/executors/exporters/export-helpers.d.ts +1 -0
- package/dist/src/runtime/executors/exporters/export-helpers.d.ts.map +1 -1
- package/dist/src/runtime/executors/exporters/export-helpers.js +33 -4
- package/dist/src/runtime/executors/exporters/export-helpers.js.map +1 -1
- package/dist/src/runtime/executors/exporters/http-export.handler.js +4 -4
- package/dist/src/runtime/executors/exporters/http-export.handler.js.map +1 -1
- package/dist/src/runtime/executors/extractors/file-extract.handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/extractors/file-extract.handler.js +33 -13
- package/dist/src/runtime/executors/extractors/file-extract.handler.js.map +1 -1
- package/dist/src/runtime/executors/extractors/memory-extract.handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/extractors/memory-extract.handler.js +17 -9
- package/dist/src/runtime/executors/extractors/memory-extract.handler.js.map +1 -1
- package/dist/src/runtime/executors/feed.executor.d.ts.map +1 -1
- package/dist/src/runtime/executors/feed.executor.js +11 -2
- package/dist/src/runtime/executors/feed.executor.js.map +1 -1
- package/dist/src/runtime/executors/feeds/feed-handler-registry.d.ts.map +1 -1
- package/dist/src/runtime/executors/feeds/feed-handler-registry.js +4 -0
- package/dist/src/runtime/executors/feeds/feed-handler-registry.js.map +1 -1
- package/dist/src/runtime/executors/gate.executor.d.ts +3 -1
- package/dist/src/runtime/executors/gate.executor.d.ts.map +1 -1
- package/dist/src/runtime/executors/gate.executor.js +47 -26
- package/dist/src/runtime/executors/gate.executor.js.map +1 -1
- package/dist/src/runtime/executors/loaders/asset-handler.js +1 -1
- package/dist/src/runtime/executors/loaders/asset-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/asset-import-handler.js +1 -1
- package/dist/src/runtime/executors/loaders/asset-import-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/channel-handler.d.ts +3 -1
- package/dist/src/runtime/executors/loaders/channel-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/channel-handler.js +28 -5
- package/dist/src/runtime/executors/loaders/channel-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/collection-handler.d.ts +14 -2
- package/dist/src/runtime/executors/loaders/collection-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/collection-handler.js +113 -23
- package/dist/src/runtime/executors/loaders/collection-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/customer-group-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/customer-group-handler.js +2 -20
- package/dist/src/runtime/executors/loaders/customer-group-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/customer-handler.d.ts +6 -1
- package/dist/src/runtime/executors/loaders/customer-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/customer-handler.js +128 -15
- package/dist/src/runtime/executors/loaders/customer-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/deletion-handler.d.ts +39 -0
- package/dist/src/runtime/executors/loaders/deletion-handler.d.ts.map +1 -0
- package/dist/src/runtime/executors/loaders/deletion-handler.js +414 -0
- package/dist/src/runtime/executors/loaders/deletion-handler.js.map +1 -0
- package/dist/src/runtime/executors/loaders/facet-handler.d.ts +18 -3
- package/dist/src/runtime/executors/loaders/facet-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/facet-handler.js +161 -28
- package/dist/src/runtime/executors/loaders/facet-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/graphql-mutation-handler.js +1 -1
- package/dist/src/runtime/executors/loaders/graphql-mutation-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/index.d.ts +2 -0
- package/dist/src/runtime/executors/loaders/index.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/index.js +5 -1
- package/dist/src/runtime/executors/loaders/index.js.map +1 -1
- package/dist/src/runtime/executors/loaders/inventory-adjust-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/inventory-adjust-handler.js +2 -21
- package/dist/src/runtime/executors/loaders/inventory-adjust-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/inventory-handler.d.ts +2 -1
- package/dist/src/runtime/executors/loaders/inventory-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/inventory-handler.js +11 -9
- package/dist/src/runtime/executors/loaders/inventory-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/loader-handler-registry.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/loader-handler-registry.js +150 -11
- package/dist/src/runtime/executors/loaders/loader-handler-registry.js.map +1 -1
- package/dist/src/runtime/executors/loaders/order-handler.d.ts +32 -4
- package/dist/src/runtime/executors/loaders/order-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/order-handler.js +201 -18
- package/dist/src/runtime/executors/loaders/order-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/order-upsert-handler.d.ts +15 -0
- package/dist/src/runtime/executors/loaders/order-upsert-handler.d.ts.map +1 -0
- package/dist/src/runtime/executors/loaders/order-upsert-handler.js +89 -0
- package/dist/src/runtime/executors/loaders/order-upsert-handler.js.map +1 -0
- package/dist/src/runtime/executors/loaders/payment-method-handler.d.ts +11 -2
- package/dist/src/runtime/executors/loaders/payment-method-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/payment-method-handler.js +92 -34
- package/dist/src/runtime/executors/loaders/payment-method-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/product-handler.d.ts +20 -0
- package/dist/src/runtime/executors/loaders/product-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/product-handler.js +121 -31
- package/dist/src/runtime/executors/loaders/product-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/promotion-handler.d.ts +9 -2
- package/dist/src/runtime/executors/loaders/promotion-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/promotion-handler.js +134 -68
- package/dist/src/runtime/executors/loaders/promotion-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/rest-handler.js +1 -1
- package/dist/src/runtime/executors/loaders/rest-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/shared-lookups.d.ts +62 -1
- package/dist/src/runtime/executors/loaders/shared-lookups.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/shared-lookups.js +238 -0
- package/dist/src/runtime/executors/loaders/shared-lookups.js.map +1 -1
- package/dist/src/runtime/executors/loaders/shipping-method-handler.d.ts +11 -6
- package/dist/src/runtime/executors/loaders/shipping-method-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/shipping-method-handler.js +168 -54
- package/dist/src/runtime/executors/loaders/shipping-method-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/stock-location-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/stock-location-handler.js +2 -20
- package/dist/src/runtime/executors/loaders/stock-location-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/tax-rate-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/tax-rate-handler.js +14 -1
- package/dist/src/runtime/executors/loaders/tax-rate-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/types.d.ts +2 -0
- package/dist/src/runtime/executors/loaders/types.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/variant-handler.d.ts +24 -2
- package/dist/src/runtime/executors/loaders/variant-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/variant-handler.js +266 -47
- package/dist/src/runtime/executors/loaders/variant-handler.js.map +1 -1
- package/dist/src/runtime/executors/sink-handler-registry.d.ts +7 -11
- package/dist/src/runtime/executors/sink-handler-registry.d.ts.map +1 -1
- package/dist/src/runtime/executors/sink-handler-registry.js +376 -10
- package/dist/src/runtime/executors/sink-handler-registry.js.map +1 -1
- package/dist/src/runtime/executors/sink.executor.d.ts +1 -0
- package/dist/src/runtime/executors/sink.executor.d.ts.map +1 -1
- package/dist/src/runtime/executors/sink.executor.js +82 -12
- package/dist/src/runtime/executors/sink.executor.js.map +1 -1
- package/dist/src/runtime/executors/transform.executor.d.ts.map +1 -1
- package/dist/src/runtime/executors/transform.executor.js +31 -2
- package/dist/src/runtime/executors/transform.executor.js.map +1 -1
- package/dist/src/runtime/orchestration/graph-executor.d.ts.map +1 -1
- package/dist/src/runtime/orchestration/graph-executor.js +3 -2
- package/dist/src/runtime/orchestration/graph-executor.js.map +1 -1
- package/dist/src/runtime/orchestration/helpers.d.ts +4 -1
- package/dist/src/runtime/orchestration/helpers.d.ts.map +1 -1
- package/dist/src/runtime/orchestration/helpers.js +7 -2
- package/dist/src/runtime/orchestration/helpers.js.map +1 -1
- package/dist/src/runtime/orchestration/linear-executor.d.ts.map +1 -1
- package/dist/src/runtime/orchestration/linear-executor.js +3 -2
- package/dist/src/runtime/orchestration/linear-executor.js.map +1 -1
- package/dist/src/runtime/orchestration/replay-executor.d.ts.map +1 -1
- package/dist/src/runtime/orchestration/replay-executor.js +3 -2
- package/dist/src/runtime/orchestration/replay-executor.js.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/export-step.strategy.d.ts.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/export-step.strategy.js +12 -12
- package/dist/src/runtime/orchestration/step-strategies/export-step.strategy.js.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/feed-step.strategy.d.ts.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/feed-step.strategy.js +12 -12
- package/dist/src/runtime/orchestration/step-strategies/feed-step.strategy.js.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/load-step.strategy.js +2 -2
- package/dist/src/runtime/orchestration/step-strategies/load-step.strategy.js.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/sink-step.strategy.d.ts.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/sink-step.strategy.js +12 -12
- package/dist/src/runtime/orchestration/step-strategies/sink-step.strategy.js.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/step-dispatcher.d.ts.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/step-dispatcher.js +4 -3
- package/dist/src/runtime/orchestration/step-strategies/step-dispatcher.js.map +1 -1
- package/dist/src/runtime/orchestration/step-strategies/transform-step.strategy.js +4 -4
- package/dist/src/runtime/orchestration/step-strategies/transform-step.strategy.js.map +1 -1
- package/dist/src/runtime/orchestration/types.d.ts +1 -0
- package/dist/src/runtime/orchestration/types.d.ts.map +1 -1
- package/dist/src/runtime/utils.d.ts.map +1 -1
- package/dist/src/runtime/utils.js +8 -1
- package/dist/src/runtime/utils.js.map +1 -1
- package/dist/src/sdk/adapters/queue/index.d.ts +1 -0
- package/dist/src/sdk/adapters/queue/index.d.ts.map +1 -1
- package/dist/src/sdk/adapters/queue/index.js +1 -0
- package/dist/src/sdk/adapters/queue/index.js.map +1 -1
- package/dist/src/sdk/adapters/queue/internal.adapter.d.ts +32 -0
- package/dist/src/sdk/adapters/queue/internal.adapter.d.ts.map +1 -0
- package/dist/src/sdk/adapters/queue/internal.adapter.js +68 -0
- package/dist/src/sdk/adapters/queue/internal.adapter.js.map +1 -0
- package/dist/src/sdk/adapters/queue/queue-adapter.registry.d.ts.map +1 -1
- package/dist/src/sdk/adapters/queue/queue-adapter.registry.js +3 -0
- package/dist/src/sdk/adapters/queue/queue-adapter.registry.js.map +1 -1
- package/dist/src/sdk/adapters/queue/rabbitmq.adapter.d.ts.map +1 -1
- package/dist/src/sdk/adapters/queue/rabbitmq.adapter.js +2 -1
- package/dist/src/sdk/adapters/queue/rabbitmq.adapter.js.map +1 -1
- package/dist/src/sdk/constants.d.ts +2 -2
- package/dist/src/sdk/constants.d.ts.map +1 -1
- package/dist/src/sdk/dsl/pipeline-builder.d.ts +8 -2
- package/dist/src/sdk/dsl/pipeline-builder.d.ts.map +1 -1
- package/dist/src/sdk/dsl/pipeline-builder.js +115 -19
- package/dist/src/sdk/dsl/pipeline-builder.js.map +1 -1
- package/dist/src/sdk/dsl/step-configs.d.ts +24 -0
- package/dist/src/sdk/dsl/step-configs.d.ts.map +1 -1
- package/dist/src/services/data/record-error.service.d.ts +1 -1
- package/dist/src/services/data/record-error.service.d.ts.map +1 -1
- package/dist/src/services/data/record-error.service.js +4 -1
- package/dist/src/services/data/record-error.service.js.map +1 -1
- package/dist/src/services/events/consumer-discovery.d.ts.map +1 -1
- package/dist/src/services/events/consumer-discovery.js +2 -1
- package/dist/src/services/events/consumer-discovery.js.map +1 -1
- package/dist/src/services/events/consumer-lifecycle.d.ts.map +1 -1
- package/dist/src/services/events/consumer-lifecycle.js +19 -15
- package/dist/src/services/events/consumer-lifecycle.js.map +1 -1
- package/dist/src/services/events/event-trigger.service.d.ts.map +1 -1
- package/dist/src/services/events/event-trigger.service.js +9 -3
- package/dist/src/services/events/event-trigger.service.js.map +1 -1
- package/dist/src/services/events/hook.service.d.ts.map +1 -1
- package/dist/src/services/events/hook.service.js +7 -3
- package/dist/src/services/events/hook.service.js.map +1 -1
- package/dist/src/services/events/message-processing.d.ts.map +1 -1
- package/dist/src/services/events/message-processing.js +13 -8
- package/dist/src/services/events/message-processing.js.map +1 -1
- package/dist/src/services/logger/datahub-logger.d.ts +7 -0
- package/dist/src/services/logger/datahub-logger.d.ts.map +1 -1
- package/dist/src/services/logger/datahub-logger.js +9 -0
- package/dist/src/services/logger/datahub-logger.js.map +1 -1
- package/dist/src/services/logger/execution-logger.d.ts +1 -1
- package/dist/src/services/logger/execution-logger.d.ts.map +1 -1
- package/dist/src/services/logger/execution-logger.js +8 -4
- package/dist/src/services/logger/execution-logger.js.map +1 -1
- package/dist/src/services/pipeline/pipeline-runner.service.d.ts +3 -1
- package/dist/src/services/pipeline/pipeline-runner.service.d.ts.map +1 -1
- package/dist/src/services/pipeline/pipeline-runner.service.js +17 -7
- package/dist/src/services/pipeline/pipeline-runner.service.js.map +1 -1
- package/dist/src/services/pipeline/pipeline.service.d.ts.map +1 -1
- package/dist/src/services/pipeline/pipeline.service.js +8 -2
- package/dist/src/services/pipeline/pipeline.service.js.map +1 -1
- package/dist/src/services/storage/retention.service.d.ts.map +1 -1
- package/dist/src/services/storage/retention.service.js +22 -0
- package/dist/src/services/storage/retention.service.js.map +1 -1
- package/dist/src/services/testing/step-test.service.d.ts.map +1 -1
- package/dist/src/services/testing/step-test.service.js +17 -1
- package/dist/src/services/testing/step-test.service.js.map +1 -1
- package/dist/src/services/validation/definition-validation.service.d.ts.map +1 -1
- package/dist/src/services/validation/definition-validation.service.js +4 -1
- package/dist/src/services/validation/definition-validation.service.js.map +1 -1
- package/dist/src/services/validation/trigger-validation.d.ts.map +1 -1
- package/dist/src/services/validation/trigger-validation.js +76 -2
- package/dist/src/services/validation/trigger-validation.js.map +1 -1
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/types/loader-configs.d.ts +1071 -0
- package/dist/src/types/loader-configs.d.ts.map +1 -0
- package/dist/src/types/loader-configs.js +54 -0
- package/dist/src/types/loader-configs.js.map +1 -0
- package/dist/src/types/step-configs.d.ts +1 -0
- package/dist/src/types/step-configs.d.ts.map +1 -1
- package/dist/src/types/step-configs.js +3 -0
- package/dist/src/types/step-configs.js.map +1 -1
- package/dist/src/utils/code-security.utils.d.ts +18 -0
- package/dist/src/utils/code-security.utils.d.ts.map +1 -1
- package/dist/src/utils/code-security.utils.js +125 -9
- package/dist/src/utils/code-security.utils.js.map +1 -1
- package/dist/src/utils/error.utils.d.ts +1 -1
- package/dist/src/utils/error.utils.d.ts.map +1 -1
- package/dist/src/utils/error.utils.js +2 -1
- package/dist/src/utils/error.utils.js.map +1 -1
- package/dist/src/utils/url-security.utils.d.ts +5 -3
- package/dist/src/utils/url-security.utils.d.ts.map +1 -1
- package/dist/src/utils/url-security.utils.js +20 -4
- package/dist/src/utils/url-security.utils.js.map +1 -1
- package/dist/src/validation/pipeline-definition.validator.js +2 -1
- package/dist/src/validation/pipeline-definition.validator.js.map +1 -1
- package/docs/developer-guide/README.md +2 -0
- package/docs/developer-guide/dsl/pipeline-builder.md +12 -0
- package/docs/developer-guide/extending/README.md +230 -10
- package/docs/developer-guide/extending/custom-sinks.md +87 -0
- package/docs/developer-guide/extending/events.md +4 -1
- package/docs/examples/validation-error-messages.md +246 -0
- package/docs/guides/multi-channel.md +1190 -0
- package/docs/guides/multi-currency.md +881 -0
- package/docs/guides/multi-entity.md +597 -0
- package/docs/guides/multi-language.md +957 -0
- package/docs/reference/README.md +11 -4
- package/docs/reference/extractors.md +30 -0
- package/docs/reference/loaders.md +396 -21
- package/docs/reference/operators-complete.md +1251 -0
- package/docs/reference/operators.md +36 -2
- package/docs/reference/sinks.md +7 -6
- package/docs/reference/step-types.md +12 -5
- package/docs/user-guide/pipelines.md +82 -13
- package/package.json +1 -1
- package/shared/types/adapter-config.types.ts +439 -10
- package/shared/types/index.ts +25 -0
- package/shared/types/loader.types.ts +4 -0
- package/shared/types/step.types.ts +6 -0
- package/shared/utils/error.ts +11 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useMemo, useCallback } from 'react';
|
|
2
|
+
import { useMemo, useCallback, useEffect } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
Button,
|
|
5
5
|
Input,
|
|
@@ -158,9 +158,11 @@ export function StepConfigPanel({
|
|
|
158
158
|
[stepType, data.config?.operators]
|
|
159
159
|
);
|
|
160
160
|
|
|
161
|
+
const hasSpecialConfigEditor = stepType in SPECIAL_CONFIG_EDITORS;
|
|
162
|
+
|
|
161
163
|
const needsAdapterSelection = useMemo(
|
|
162
|
-
() => !adapterCode && !hasMultiOperatorConfig && stepType !== STEP_TYPE.TRIGGER,
|
|
163
|
-
[adapterCode, hasMultiOperatorConfig, stepType]
|
|
164
|
+
() => !adapterCode && !hasMultiOperatorConfig && stepType !== STEP_TYPE.TRIGGER && !hasSpecialConfigEditor,
|
|
165
|
+
[adapterCode, hasMultiOperatorConfig, stepType, hasSpecialConfigEditor]
|
|
164
166
|
);
|
|
165
167
|
|
|
166
168
|
const dynamicFields = React.useMemo<AdapterSchemaField[]>(
|
|
@@ -194,7 +196,6 @@ export function StepConfigPanel({
|
|
|
194
196
|
onChange({
|
|
195
197
|
...data,
|
|
196
198
|
adapterCode: code,
|
|
197
|
-
config: { ...data.config, adapterCode: code },
|
|
198
199
|
});
|
|
199
200
|
}, [onChange, data]);
|
|
200
201
|
|
|
@@ -210,11 +211,24 @@ export function StepConfigPanel({
|
|
|
210
211
|
}, [updateKey]);
|
|
211
212
|
|
|
212
213
|
const handleAdapterCodeChange = useCallback((code: string) => {
|
|
213
|
-
if (code !== adapterCode) {
|
|
214
|
+
if (code && code !== adapterCode) {
|
|
214
215
|
updateAdapterCode(code);
|
|
215
216
|
}
|
|
216
217
|
}, [adapterCode, updateAdapterCode]);
|
|
217
218
|
|
|
219
|
+
// Auto-select the sole adapter for step types with a special config editor
|
|
220
|
+
// (e.g., ROUTE has exactly one ROUTER adapter: "condition"). This prevents
|
|
221
|
+
// the user from having to manually pick the only available adapter.
|
|
222
|
+
useEffect(() => {
|
|
223
|
+
if (
|
|
224
|
+
stepType in SPECIAL_CONFIG_EDITORS &&
|
|
225
|
+
!adapterCode &&
|
|
226
|
+
availableAdapters.length === 1
|
|
227
|
+
) {
|
|
228
|
+
handleAdapterCodeChange(availableAdapters[0].code);
|
|
229
|
+
}
|
|
230
|
+
}, [stepType, adapterCode, availableAdapters, handleAdapterCodeChange]);
|
|
231
|
+
|
|
218
232
|
const handleResetDefaults = useCallback(() => {
|
|
219
233
|
const defaults: Record<string, unknown> = {};
|
|
220
234
|
for (const f of dynamicFields) {
|
|
@@ -235,7 +249,6 @@ export function StepConfigPanel({
|
|
|
235
249
|
authentication: trigger.authentication,
|
|
236
250
|
secretCode: trigger.secretCode,
|
|
237
251
|
event: trigger.eventType,
|
|
238
|
-
eventType: trigger.eventType,
|
|
239
252
|
});
|
|
240
253
|
}, [updateConfigBatch]);
|
|
241
254
|
|
|
@@ -339,6 +352,7 @@ export function StepConfigPanel({
|
|
|
339
352
|
trigger={triggerValue}
|
|
340
353
|
onChange={handleTriggerChange}
|
|
341
354
|
compact={compact}
|
|
355
|
+
secretCodes={secretOptions.map(s => s.code)}
|
|
342
356
|
/>
|
|
343
357
|
);
|
|
344
358
|
};
|
|
@@ -404,16 +418,16 @@ export function StepConfigPanel({
|
|
|
404
418
|
)}
|
|
405
419
|
|
|
406
420
|
{selectedAdapter && (
|
|
407
|
-
<div className="flex items-
|
|
421
|
+
<div className="flex items-start gap-2 p-2 bg-muted/50 rounded border">
|
|
408
422
|
<div
|
|
409
|
-
className="w-7 h-7 rounded flex items-center justify-center text-white shrink-0"
|
|
423
|
+
className="w-7 h-7 rounded flex items-center justify-center text-white shrink-0 mt-0.5"
|
|
410
424
|
style={{ backgroundColor: selectedAdapter.color }}
|
|
411
425
|
>
|
|
412
426
|
<selectedAdapter.icon className="w-3.5 h-3.5" />
|
|
413
427
|
</div>
|
|
414
|
-
<div className="min-w-0">
|
|
428
|
+
<div className="min-w-0 flex-1">
|
|
415
429
|
<div className="font-medium text-sm truncate">{selectedAdapter.name}</div>
|
|
416
|
-
<div className="text-xs text-muted-foreground
|
|
430
|
+
<div className="text-xs text-muted-foreground line-clamp-2">
|
|
417
431
|
{selectedAdapter.description}
|
|
418
432
|
</div>
|
|
419
433
|
</div>
|
|
@@ -93,7 +93,8 @@ export const SKELETON_WIDTHS = [80, 120, 100, 140] as const;
|
|
|
93
93
|
* Panel widths for drawers and side panels
|
|
94
94
|
*/
|
|
95
95
|
export const PANEL_WIDTHS = {
|
|
96
|
-
PROPERTIES_DEFAULT: '
|
|
96
|
+
PROPERTIES_DEFAULT: '520px',
|
|
97
|
+
PROPERTIES_MIN: '380px',
|
|
97
98
|
NODE_PALETTE: 'w-[260px]',
|
|
98
99
|
MAX_VW: '90vw',
|
|
99
100
|
} as const;
|
package/dashboard/gql/gql.ts
CHANGED
|
@@ -31,7 +31,7 @@ type Documents = {
|
|
|
31
31
|
"\n query DataHubRecentLogsApi($limit: Int) {\n dataHubRecentLogs(limit: $limit) {\n id\n createdAt\n level\n message\n stepKey\n pipelineId\n pipeline {\n id\n code\n name\n }\n runId\n durationMs\n recordsProcessed\n recordsFailed\n }\n }\n": typeof types.DataHubRecentLogsApiDocument,
|
|
32
32
|
"\n query DataHubPipelineRunsApi($pipelineId: ID, $options: DataHubPipelineRunListOptions) {\n dataHubPipelineRuns(pipelineId: $pipelineId, options: $options) {\n items {\n id\n status\n startedAt\n finishedAt\n metrics\n }\n totalItems\n }\n }\n": typeof types.DataHubPipelineRunsApiDocument,
|
|
33
33
|
"\n query DataHubPipelineRunDetailApi($id: ID!) {\n dataHubPipelineRun(id: $id) {\n id\n status\n startedAt\n finishedAt\n metrics\n error\n startedByUserId\n pipeline {\n id\n code\n name\n }\n }\n }\n": typeof types.DataHubPipelineRunDetailApiDocument,
|
|
34
|
-
"\n query DataHubRunErrorsApi($runId: ID!) {\n dataHubRunErrors(runId: $runId) {\n id\n stepKey\n message\n payload\n }\n }\n": typeof types.DataHubRunErrorsApiDocument,
|
|
34
|
+
"\n query DataHubRunErrorsApi($runId: ID!) {\n dataHubRunErrors(runId: $runId) {\n id\n stepKey\n message\n payload\n stackTrace\n }\n }\n": typeof types.DataHubRunErrorsApiDocument,
|
|
35
35
|
"\n mutation CancelDataHubPipelineRunApi($id: ID!) {\n cancelDataHubPipelineRun(id: $id) {\n id\n status\n }\n }\n": typeof types.CancelDataHubPipelineRunApiDocument,
|
|
36
36
|
"\n mutation RetryDataHubRecordApi($errorId: ID!, $patch: JSON) {\n retryDataHubRecord(errorId: $errorId, patch: $patch)\n }\n": typeof types.RetryDataHubRecordApiDocument,
|
|
37
37
|
"\n mutation ApproveDataHubGateApi($runId: ID!, $stepKey: String!) {\n approveDataHubGate(runId: $runId, stepKey: $stepKey) {\n success\n message\n run {\n id\n status\n }\n }\n }\n": typeof types.ApproveDataHubGateApiDocument,
|
|
@@ -52,7 +52,7 @@ type Documents = {
|
|
|
52
52
|
"\n mutation PublishDataHubPipelineApi($id: ID!) {\n publishDataHubPipeline(id: $id) {\n id\n status\n publishedAt\n }\n }\n": typeof types.PublishDataHubPipelineApiDocument,
|
|
53
53
|
"\n mutation ArchiveDataHubPipelineApi($id: ID!) {\n archiveDataHubPipeline(id: $id) {\n id\n status\n }\n }\n": typeof types.ArchiveDataHubPipelineApiDocument,
|
|
54
54
|
"\n query DataHubQueueStatsApi {\n dataHubQueueStats {\n pending\n running\n failed\n completedToday\n byPipeline {\n code\n pending\n running\n }\n recentFailed {\n id\n code\n finishedAt\n error\n }\n }\n }\n": typeof types.DataHubQueueStatsApiDocument,
|
|
55
|
-
"\n query DataHubDeadLettersApi {\n dataHubDeadLetters {\n id\n stepKey\n message\n payload\n }\n }\n": typeof types.DataHubDeadLettersApiDocument,
|
|
55
|
+
"\n query DataHubDeadLettersApi {\n dataHubDeadLetters {\n id\n stepKey\n message\n payload\n stackTrace\n }\n }\n": typeof types.DataHubDeadLettersApiDocument,
|
|
56
56
|
"\n query DataHubConsumersApi {\n dataHubConsumers {\n pipelineCode\n queueName\n isActive\n messagesProcessed\n messagesFailed\n lastMessageAt\n }\n }\n": typeof types.DataHubConsumersApiDocument,
|
|
57
57
|
"\n mutation StartDataHubConsumerApi($pipelineCode: String!) {\n startDataHubConsumer(pipelineCode: $pipelineCode)\n }\n": typeof types.StartDataHubConsumerApiDocument,
|
|
58
58
|
"\n mutation StopDataHubConsumerApi($pipelineCode: String!) {\n stopDataHubConsumer(pipelineCode: $pipelineCode)\n }\n": typeof types.StopDataHubConsumerApiDocument,
|
|
@@ -88,7 +88,7 @@ const documents: Documents = {
|
|
|
88
88
|
"\n query DataHubRecentLogsApi($limit: Int) {\n dataHubRecentLogs(limit: $limit) {\n id\n createdAt\n level\n message\n stepKey\n pipelineId\n pipeline {\n id\n code\n name\n }\n runId\n durationMs\n recordsProcessed\n recordsFailed\n }\n }\n": types.DataHubRecentLogsApiDocument,
|
|
89
89
|
"\n query DataHubPipelineRunsApi($pipelineId: ID, $options: DataHubPipelineRunListOptions) {\n dataHubPipelineRuns(pipelineId: $pipelineId, options: $options) {\n items {\n id\n status\n startedAt\n finishedAt\n metrics\n }\n totalItems\n }\n }\n": types.DataHubPipelineRunsApiDocument,
|
|
90
90
|
"\n query DataHubPipelineRunDetailApi($id: ID!) {\n dataHubPipelineRun(id: $id) {\n id\n status\n startedAt\n finishedAt\n metrics\n error\n startedByUserId\n pipeline {\n id\n code\n name\n }\n }\n }\n": types.DataHubPipelineRunDetailApiDocument,
|
|
91
|
-
"\n query DataHubRunErrorsApi($runId: ID!) {\n dataHubRunErrors(runId: $runId) {\n id\n stepKey\n message\n payload\n }\n }\n": types.DataHubRunErrorsApiDocument,
|
|
91
|
+
"\n query DataHubRunErrorsApi($runId: ID!) {\n dataHubRunErrors(runId: $runId) {\n id\n stepKey\n message\n payload\n stackTrace\n }\n }\n": types.DataHubRunErrorsApiDocument,
|
|
92
92
|
"\n mutation CancelDataHubPipelineRunApi($id: ID!) {\n cancelDataHubPipelineRun(id: $id) {\n id\n status\n }\n }\n": types.CancelDataHubPipelineRunApiDocument,
|
|
93
93
|
"\n mutation RetryDataHubRecordApi($errorId: ID!, $patch: JSON) {\n retryDataHubRecord(errorId: $errorId, patch: $patch)\n }\n": types.RetryDataHubRecordApiDocument,
|
|
94
94
|
"\n mutation ApproveDataHubGateApi($runId: ID!, $stepKey: String!) {\n approveDataHubGate(runId: $runId, stepKey: $stepKey) {\n success\n message\n run {\n id\n status\n }\n }\n }\n": types.ApproveDataHubGateApiDocument,
|
|
@@ -109,7 +109,7 @@ const documents: Documents = {
|
|
|
109
109
|
"\n mutation PublishDataHubPipelineApi($id: ID!) {\n publishDataHubPipeline(id: $id) {\n id\n status\n publishedAt\n }\n }\n": types.PublishDataHubPipelineApiDocument,
|
|
110
110
|
"\n mutation ArchiveDataHubPipelineApi($id: ID!) {\n archiveDataHubPipeline(id: $id) {\n id\n status\n }\n }\n": types.ArchiveDataHubPipelineApiDocument,
|
|
111
111
|
"\n query DataHubQueueStatsApi {\n dataHubQueueStats {\n pending\n running\n failed\n completedToday\n byPipeline {\n code\n pending\n running\n }\n recentFailed {\n id\n code\n finishedAt\n error\n }\n }\n }\n": types.DataHubQueueStatsApiDocument,
|
|
112
|
-
"\n query DataHubDeadLettersApi {\n dataHubDeadLetters {\n id\n stepKey\n message\n payload\n }\n }\n": types.DataHubDeadLettersApiDocument,
|
|
112
|
+
"\n query DataHubDeadLettersApi {\n dataHubDeadLetters {\n id\n stepKey\n message\n payload\n stackTrace\n }\n }\n": types.DataHubDeadLettersApiDocument,
|
|
113
113
|
"\n query DataHubConsumersApi {\n dataHubConsumers {\n pipelineCode\n queueName\n isActive\n messagesProcessed\n messagesFailed\n lastMessageAt\n }\n }\n": types.DataHubConsumersApiDocument,
|
|
114
114
|
"\n mutation StartDataHubConsumerApi($pipelineCode: String!) {\n startDataHubConsumer(pipelineCode: $pipelineCode)\n }\n": types.StartDataHubConsumerApiDocument,
|
|
115
115
|
"\n mutation StopDataHubConsumerApi($pipelineCode: String!) {\n stopDataHubConsumer(pipelineCode: $pipelineCode)\n }\n": types.StopDataHubConsumerApiDocument,
|
|
@@ -213,7 +213,7 @@ export function graphql(source: "\n query DataHubPipelineRunDetailApi($id: ID
|
|
|
213
213
|
/**
|
|
214
214
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
215
215
|
*/
|
|
216
|
-
export function graphql(source: "\n query DataHubRunErrorsApi($runId: ID!) {\n dataHubRunErrors(runId: $runId) {\n id\n stepKey\n message\n payload\n }\n }\n"): (typeof documents)["\n query DataHubRunErrorsApi($runId: ID!) {\n dataHubRunErrors(runId: $runId) {\n id\n stepKey\n message\n payload\n }\n }\n"];
|
|
216
|
+
export function graphql(source: "\n query DataHubRunErrorsApi($runId: ID!) {\n dataHubRunErrors(runId: $runId) {\n id\n stepKey\n message\n payload\n stackTrace\n }\n }\n"): (typeof documents)["\n query DataHubRunErrorsApi($runId: ID!) {\n dataHubRunErrors(runId: $runId) {\n id\n stepKey\n message\n payload\n stackTrace\n }\n }\n"];
|
|
217
217
|
/**
|
|
218
218
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
219
219
|
*/
|
|
@@ -297,7 +297,7 @@ export function graphql(source: "\n query DataHubQueueStatsApi {\n dat
|
|
|
297
297
|
/**
|
|
298
298
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
299
299
|
*/
|
|
300
|
-
export function graphql(source: "\n query DataHubDeadLettersApi {\n dataHubDeadLetters {\n id\n stepKey\n message\n payload\n }\n }\n"): (typeof documents)["\n query DataHubDeadLettersApi {\n dataHubDeadLetters {\n id\n stepKey\n message\n payload\n }\n }\n"];
|
|
300
|
+
export function graphql(source: "\n query DataHubDeadLettersApi {\n dataHubDeadLetters {\n id\n stepKey\n message\n payload\n stackTrace\n }\n }\n"): (typeof documents)["\n query DataHubDeadLettersApi {\n dataHubDeadLetters {\n id\n stepKey\n message\n payload\n stackTrace\n }\n }\n"];
|
|
301
301
|
/**
|
|
302
302
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
303
303
|
*/
|
package/dashboard/gql/graphql.ts
CHANGED
|
@@ -490,6 +490,7 @@ export type Collection = Node & {
|
|
|
490
490
|
parent?: Maybe<Collection>;
|
|
491
491
|
parentId: Scalars['ID']['output'];
|
|
492
492
|
position: Scalars['Int']['output'];
|
|
493
|
+
productVariantCount: Scalars['Int']['output'];
|
|
493
494
|
productVariants: ProductVariantList;
|
|
494
495
|
slug: Scalars['String']['output'];
|
|
495
496
|
translations: Array<CollectionTranslation>;
|
|
@@ -520,6 +521,7 @@ export type CollectionFilterParameter = {
|
|
|
520
521
|
name?: InputMaybe<StringOperators>;
|
|
521
522
|
parentId?: InputMaybe<IdOperators>;
|
|
522
523
|
position?: InputMaybe<NumberOperators>;
|
|
524
|
+
productVariantCount?: InputMaybe<NumberOperators>;
|
|
523
525
|
slug?: InputMaybe<StringOperators>;
|
|
524
526
|
updatedAt?: InputMaybe<DateOperators>;
|
|
525
527
|
};
|
|
@@ -561,6 +563,7 @@ export type CollectionSortParameter = {
|
|
|
561
563
|
name?: InputMaybe<SortOrder>;
|
|
562
564
|
parentId?: InputMaybe<SortOrder>;
|
|
563
565
|
position?: InputMaybe<SortOrder>;
|
|
566
|
+
productVariantCount?: InputMaybe<SortOrder>;
|
|
564
567
|
slug?: InputMaybe<SortOrder>;
|
|
565
568
|
updatedAt?: InputMaybe<SortOrder>;
|
|
566
569
|
};
|
|
@@ -2841,6 +2844,8 @@ export type DataHubRecordError = Node & {
|
|
|
2841
2844
|
/** The record data that failed to process */
|
|
2842
2845
|
payload: Scalars['JSON']['output'];
|
|
2843
2846
|
run: DataHubPipelineRun;
|
|
2847
|
+
/** JavaScript stack trace for debugging (only present when the error originated from an exception) */
|
|
2848
|
+
stackTrace?: Maybe<Scalars['String']['output']>;
|
|
2844
2849
|
/** The step key where the error occurred */
|
|
2845
2850
|
stepKey: Scalars['String']['output'];
|
|
2846
2851
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -10056,7 +10061,7 @@ export type DataHubRunErrorsApiQueryVariables = Exact<{
|
|
|
10056
10061
|
}>;
|
|
10057
10062
|
|
|
10058
10063
|
|
|
10059
|
-
export type DataHubRunErrorsApiQuery = { __typename?: 'Query', dataHubRunErrors: Array<{ __typename?: 'DataHubRecordError', id: string | number, stepKey: string, message: string, payload: Record<string, unknown
|
|
10064
|
+
export type DataHubRunErrorsApiQuery = { __typename?: 'Query', dataHubRunErrors: Array<{ __typename?: 'DataHubRecordError', id: string | number, stepKey: string, message: string, payload: Record<string, unknown>, stackTrace?: string | null }> };
|
|
10060
10065
|
|
|
10061
10066
|
export type CancelDataHubPipelineRunApiMutationVariables = Exact<{
|
|
10062
10067
|
id: Scalars['ID']['input'];
|
|
@@ -10204,7 +10209,7 @@ export type DataHubQueueStatsApiQuery = { __typename?: 'Query', dataHubQueueStat
|
|
|
10204
10209
|
export type DataHubDeadLettersApiQueryVariables = Exact<{ [key: string]: never; }>;
|
|
10205
10210
|
|
|
10206
10211
|
|
|
10207
|
-
export type DataHubDeadLettersApiQuery = { __typename?: 'Query', dataHubDeadLetters: Array<{ __typename?: 'DataHubRecordError', id: string | number, stepKey: string, message: string, payload: Record<string, unknown
|
|
10212
|
+
export type DataHubDeadLettersApiQuery = { __typename?: 'Query', dataHubDeadLetters: Array<{ __typename?: 'DataHubRecordError', id: string | number, stepKey: string, message: string, payload: Record<string, unknown>, stackTrace?: string | null }> };
|
|
10208
10213
|
|
|
10209
10214
|
export type DataHubConsumersApiQueryVariables = Exact<{ [key: string]: never; }>;
|
|
10210
10215
|
|
|
@@ -10338,7 +10343,7 @@ export const DataHubLogStatsApiDocument = {"kind":"Document","definitions":[{"ki
|
|
|
10338
10343
|
export const DataHubRecentLogsApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubRecentLogsApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubRecentLogs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"level"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"stepKey"}},{"kind":"Field","name":{"kind":"Name","value":"pipelineId"}},{"kind":"Field","name":{"kind":"Name","value":"pipeline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"runId"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"recordsProcessed"}},{"kind":"Field","name":{"kind":"Name","value":"recordsFailed"}}]}}]}}]} as unknown as DocumentNode<DataHubRecentLogsApiQuery, DataHubRecentLogsApiQueryVariables>;
|
|
10339
10344
|
export const DataHubPipelineRunsApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubPipelineRunsApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pipelineId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"options"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DataHubPipelineRunListOptions"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubPipelineRuns"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pipelineId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pipelineId"}}},{"kind":"Argument","name":{"kind":"Name","value":"options"},"value":{"kind":"Variable","name":{"kind":"Name","value":"options"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"finishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"metrics"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalItems"}}]}}]}}]} as unknown as DocumentNode<DataHubPipelineRunsApiQuery, DataHubPipelineRunsApiQueryVariables>;
|
|
10340
10345
|
export const DataHubPipelineRunDetailApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubPipelineRunDetailApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubPipelineRun"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"finishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"metrics"}},{"kind":"Field","name":{"kind":"Name","value":"error"}},{"kind":"Field","name":{"kind":"Name","value":"startedByUserId"}},{"kind":"Field","name":{"kind":"Name","value":"pipeline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<DataHubPipelineRunDetailApiQuery, DataHubPipelineRunDetailApiQueryVariables>;
|
|
10341
|
-
export const DataHubRunErrorsApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubRunErrorsApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"runId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubRunErrors"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"runId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"runId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"stepKey"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]} as unknown as DocumentNode<DataHubRunErrorsApiQuery, DataHubRunErrorsApiQueryVariables>;
|
|
10346
|
+
export const DataHubRunErrorsApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubRunErrorsApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"runId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubRunErrors"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"runId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"runId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"stepKey"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}},{"kind":"Field","name":{"kind":"Name","value":"stackTrace"}}]}}]}}]} as unknown as DocumentNode<DataHubRunErrorsApiQuery, DataHubRunErrorsApiQueryVariables>;
|
|
10342
10347
|
export const CancelDataHubPipelineRunApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CancelDataHubPipelineRunApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cancelDataHubPipelineRun"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<CancelDataHubPipelineRunApiMutation, CancelDataHubPipelineRunApiMutationVariables>;
|
|
10343
10348
|
export const RetryDataHubRecordApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RetryDataHubRecordApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"errorId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"patch"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"retryDataHubRecord"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"errorId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"errorId"}}},{"kind":"Argument","name":{"kind":"Name","value":"patch"},"value":{"kind":"Variable","name":{"kind":"Name","value":"patch"}}}]}]}}]} as unknown as DocumentNode<RetryDataHubRecordApiMutation, RetryDataHubRecordApiMutationVariables>;
|
|
10344
10349
|
export const ApproveDataHubGateApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ApproveDataHubGateApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"runId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"stepKey"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"approveDataHubGate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"runId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"runId"}}},{"kind":"Argument","name":{"kind":"Name","value":"stepKey"},"value":{"kind":"Variable","name":{"kind":"Name","value":"stepKey"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"run"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]}}]} as unknown as DocumentNode<ApproveDataHubGateApiMutation, ApproveDataHubGateApiMutationVariables>;
|
|
@@ -10359,7 +10364,7 @@ export const RejectDataHubPipelineReviewApiDocument = {"kind":"Document","defini
|
|
|
10359
10364
|
export const PublishDataHubPipelineApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"PublishDataHubPipelineApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publishDataHubPipeline"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}}]}}]}}]} as unknown as DocumentNode<PublishDataHubPipelineApiMutation, PublishDataHubPipelineApiMutationVariables>;
|
|
10360
10365
|
export const ArchiveDataHubPipelineApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ArchiveDataHubPipelineApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"archiveDataHubPipeline"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<ArchiveDataHubPipelineApiMutation, ArchiveDataHubPipelineApiMutationVariables>;
|
|
10361
10366
|
export const DataHubQueueStatsApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubQueueStatsApi"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubQueueStats"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pending"}},{"kind":"Field","name":{"kind":"Name","value":"running"}},{"kind":"Field","name":{"kind":"Name","value":"failed"}},{"kind":"Field","name":{"kind":"Name","value":"completedToday"}},{"kind":"Field","name":{"kind":"Name","value":"byPipeline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"pending"}},{"kind":"Field","name":{"kind":"Name","value":"running"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recentFailed"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"finishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"error"}}]}}]}}]}}]} as unknown as DocumentNode<DataHubQueueStatsApiQuery, DataHubQueueStatsApiQueryVariables>;
|
|
10362
|
-
export const DataHubDeadLettersApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubDeadLettersApi"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubDeadLetters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"stepKey"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]} as unknown as DocumentNode<DataHubDeadLettersApiQuery, DataHubDeadLettersApiQueryVariables>;
|
|
10367
|
+
export const DataHubDeadLettersApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubDeadLettersApi"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubDeadLetters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"stepKey"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}},{"kind":"Field","name":{"kind":"Name","value":"stackTrace"}}]}}]}}]} as unknown as DocumentNode<DataHubDeadLettersApiQuery, DataHubDeadLettersApiQueryVariables>;
|
|
10363
10368
|
export const DataHubConsumersApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DataHubConsumersApi"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataHubConsumers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pipelineCode"}},{"kind":"Field","name":{"kind":"Name","value":"queueName"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"messagesProcessed"}},{"kind":"Field","name":{"kind":"Name","value":"messagesFailed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMessageAt"}}]}}]}}]} as unknown as DocumentNode<DataHubConsumersApiQuery, DataHubConsumersApiQueryVariables>;
|
|
10364
10369
|
export const StartDataHubConsumerApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"StartDataHubConsumerApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pipelineCode"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startDataHubConsumer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pipelineCode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pipelineCode"}}}]}]}}]} as unknown as DocumentNode<StartDataHubConsumerApiMutation, StartDataHubConsumerApiMutationVariables>;
|
|
10365
10370
|
export const StopDataHubConsumerApiDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"StopDataHubConsumerApi"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pipelineCode"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stopDataHubConsumer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pipelineCode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pipelineCode"}}}]}]}}]} as unknown as DocumentNode<StopDataHubConsumerApiMutation, StopDataHubConsumerApiMutationVariables>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
|
-
GitBranch,
|
|
4
3
|
Settings,
|
|
5
4
|
type LucideIcon,
|
|
6
5
|
} from 'lucide-react';
|
|
@@ -143,24 +142,6 @@ function buildAdapterMetadata(adapter: {
|
|
|
143
142
|
};
|
|
144
143
|
}
|
|
145
144
|
|
|
146
|
-
const CORE_ADAPTERS: AdapterMetadata[] = [
|
|
147
|
-
{
|
|
148
|
-
code: 'condition',
|
|
149
|
-
type: 'ROUTER',
|
|
150
|
-
name: 'Condition',
|
|
151
|
-
description: 'Route records based on conditions',
|
|
152
|
-
icon: GitBranch,
|
|
153
|
-
color: '#f97316',
|
|
154
|
-
category: UI_ADAPTER_CATEGORY.ROUTING,
|
|
155
|
-
nodeType: 'condition',
|
|
156
|
-
schema: {
|
|
157
|
-
fields: [
|
|
158
|
-
{ key: 'expression', label: 'Condition Expression', type: 'text', required: true, description: 'JavaScript expression to evaluate (e.g., price > 100)' },
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
];
|
|
163
|
-
|
|
164
145
|
interface UseAdapterCatalogResult {
|
|
165
146
|
catalog: AdapterCatalog;
|
|
166
147
|
adapters: AdapterMetadata[];
|
|
@@ -178,19 +159,10 @@ export function useAdapterCatalog(): UseAdapterCatalogResult {
|
|
|
178
159
|
const { data: connectionCodesData } = useConnectionCodes();
|
|
179
160
|
const { data: secretsData } = useSecrets({ take: QUERY_LIMITS.SECRETS_LIST });
|
|
180
161
|
|
|
181
|
-
const adapters: AdapterMetadata[] = React.useMemo(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
const codes = new Set(mapped.map(a => a.code));
|
|
186
|
-
for (const core of CORE_ADAPTERS) {
|
|
187
|
-
if (!codes.has(core.code)) {
|
|
188
|
-
mapped.push(core);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
return mapped;
|
|
193
|
-
}, [adaptersData]);
|
|
162
|
+
const adapters: AdapterMetadata[] = React.useMemo(
|
|
163
|
+
() => (adaptersData ?? []).map(buildAdapterMetadata),
|
|
164
|
+
[adaptersData],
|
|
165
|
+
);
|
|
194
166
|
|
|
195
167
|
const catalog: AdapterCatalog = React.useMemo(() => {
|
|
196
168
|
const sources = adapters.filter(a => a.category === UI_ADAPTER_CATEGORY.SOURCES);
|
|
@@ -24,7 +24,13 @@ import {
|
|
|
24
24
|
|
|
25
25
|
export const connectionDetail: DashboardRouteDefinition = {
|
|
26
26
|
path: `${ROUTES.CONNECTIONS}/$id`,
|
|
27
|
-
loader: detailPageRouteLoader({
|
|
27
|
+
loader: detailPageRouteLoader({
|
|
28
|
+
queryDocument: connectionDetailDocument,
|
|
29
|
+
breadcrumb: (isNew, entity) => [
|
|
30
|
+
{ path: ROUTES.CONNECTIONS, label: 'Connections' },
|
|
31
|
+
isNew ? 'New connection' : (entity?.code ?? ''),
|
|
32
|
+
],
|
|
33
|
+
}),
|
|
28
34
|
component: route => (
|
|
29
35
|
<PermissionGuard requires={[DATAHUB_PERMISSIONS.MANAGE_CONNECTIONS]}>
|
|
30
36
|
<ConnectionDetailPage route={route} />
|
|
@@ -174,7 +174,7 @@ export function RunDetailsPanel({ runId, initialData, onCancel, onRerun, isCance
|
|
|
174
174
|
</div>
|
|
175
175
|
<div className="text-sm">
|
|
176
176
|
<div className="text-sm font-medium mb-1">Finished</div>
|
|
177
|
-
<div>{formatDateTime(run?.finishedAt ?? initialData.finishedAt)}</div>
|
|
177
|
+
<div>{(run?.finishedAt ?? initialData.finishedAt) ? formatDateTime(run?.finishedAt ?? initialData.finishedAt) : '—'}</div>
|
|
178
178
|
</div>
|
|
179
179
|
|
|
180
180
|
{run?.error && (
|
|
@@ -134,11 +134,11 @@ export function PipelineActionButtons({
|
|
|
134
134
|
const canPublish = status === PIPELINE_STATUS.DRAFT || status === PIPELINE_STATUS.REVIEW;
|
|
135
135
|
|
|
136
136
|
return (
|
|
137
|
-
<div className="flex items-center gap-2">
|
|
137
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
138
138
|
<PipelineImportDialog onImport={onImport} />
|
|
139
139
|
<PipelineExportDialog definition={definition} />
|
|
140
140
|
|
|
141
|
-
<div className="mx-1 h-6 w-px bg-border" />
|
|
141
|
+
<div className="mx-1 hidden sm:block h-6 w-px bg-border" />
|
|
142
142
|
|
|
143
143
|
<PermissionGuard requires={[DATAHUB_PERMISSIONS.RUN_PIPELINE]}>
|
|
144
144
|
<Button
|
|
@@ -168,7 +168,7 @@ export function PipelineActionButtons({
|
|
|
168
168
|
</Button>
|
|
169
169
|
</PermissionGuard>
|
|
170
170
|
|
|
171
|
-
<div className="mx-1 h-6 w-px bg-border" />
|
|
171
|
+
<div className="mx-1 hidden sm:block h-6 w-px bg-border" />
|
|
172
172
|
|
|
173
173
|
<Button
|
|
174
174
|
variant="ghost"
|
|
@@ -148,7 +148,7 @@ export function toVisualDefinition(
|
|
|
148
148
|
const nodes: PipelineNode[] = steps.map((step, i) => {
|
|
149
149
|
const id = String(step.key ?? `step-${i}`);
|
|
150
150
|
const category = mapStepTypeToCategory(step.type);
|
|
151
|
-
const adapterCode = step.config?.adapterCode;
|
|
151
|
+
const adapterCode = step.adapterCode ?? step.config?.adapterCode;
|
|
152
152
|
const label = step.name || step.key || `Step ${i + 1}`;
|
|
153
153
|
|
|
154
154
|
return {
|
|
@@ -220,10 +220,8 @@ export function toCanonicalDefinition(
|
|
|
220
220
|
key: node.id ?? `step-${idx}`,
|
|
221
221
|
type: stepType,
|
|
222
222
|
name: node.data?.label,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
adapterCode,
|
|
226
|
-
},
|
|
223
|
+
adapterCode: adapterCode || undefined,
|
|
224
|
+
config: restConfig,
|
|
227
225
|
};
|
|
228
226
|
});
|
|
229
227
|
|
|
@@ -27,9 +27,10 @@ export function formatKey(key: string): string {
|
|
|
27
27
|
.trim();
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export function formatDateTime(date: Date | string | number, options?: Intl.DateTimeFormatOptions): string {
|
|
30
|
+
export function formatDateTime(date: Date | string | number | null | undefined, options?: Intl.DateTimeFormatOptions): string {
|
|
31
|
+
if (date == null || date === '') return '\u2014';
|
|
31
32
|
const dateObj = date instanceof Date ? date : new Date(date);
|
|
32
|
-
if (isNaN(dateObj.getTime())) return '\u2014';
|
|
33
|
+
if (isNaN(dateObj.getTime()) || dateObj.getFullYear() < 2000) return '\u2014';
|
|
33
34
|
|
|
34
35
|
const defaultOptions: Intl.DateTimeFormatOptions = {
|
|
35
36
|
year: 'numeric',
|
|
@@ -42,9 +43,10 @@ export function formatDateTime(date: Date | string | number, options?: Intl.Date
|
|
|
42
43
|
return dateObj.toLocaleString('en-US', options || defaultOptions);
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
export function formatSmartDateTime(date: Date | string | number): string {
|
|
46
|
+
export function formatSmartDateTime(date: Date | string | number | null | undefined): string {
|
|
47
|
+
if (date == null || date === '') return '\u2014';
|
|
46
48
|
const dateObj = date instanceof Date ? date : new Date(date);
|
|
47
|
-
if (isNaN(dateObj.getTime())) return '\u2014';
|
|
49
|
+
if (isNaN(dateObj.getTime()) || dateObj.getFullYear() < 2000) return '\u2014';
|
|
48
50
|
|
|
49
51
|
const now = new Date();
|
|
50
52
|
const isToday = dateObj.toDateString() === now.toDateString();
|