@oronts/vendure-data-hub-plugin 0.1.1 → 0.1.3
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 +17 -0
- package/README.md +6 -2
- 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/dist/dashboard/components/common/ConnectionConfigEditor.tsx +589 -0
- package/dist/dashboard/components/common/HeadersEditor.tsx +90 -0
- package/dist/dashboard/components/common/ValidationFeedback.tsx +17 -0
- package/dist/dashboard/components/common/index.ts +10 -0
- package/dist/dashboard/components/pipelines/PipelineEditor.tsx +504 -0
- package/dist/dashboard/components/pipelines/PipelineExport.tsx +63 -0
- package/dist/dashboard/components/pipelines/PipelineImport.tsx +87 -0
- package/dist/dashboard/components/pipelines/ReactFlowPipelineEditor.tsx +539 -0
- package/dist/dashboard/components/pipelines/shared/NodePropertiesPanel.tsx +146 -0
- package/dist/dashboard/components/pipelines/shared/PipelineNode.tsx +155 -0
- package/dist/dashboard/components/pipelines/shared/PipelineSettingsPanel.tsx +392 -0
- package/dist/dashboard/components/pipelines/shared/StepListItem.tsx +144 -0
- package/dist/dashboard/components/pipelines/shared/index.ts +33 -0
- package/dist/dashboard/components/pipelines/shared/visual-node-config.ts +169 -0
- package/dist/dashboard/components/shared/LoadMoreButton.tsx +18 -0
- package/dist/dashboard/components/shared/entity-selector/EntitySelector.tsx +59 -0
- package/dist/dashboard/components/shared/entity-selector/index.ts +1 -0
- package/dist/dashboard/components/shared/error-boundary/ErrorBoundary.tsx +90 -0
- package/dist/dashboard/components/shared/error-boundary/index.ts +1 -0
- package/dist/dashboard/components/shared/feedback/EmptyState.tsx +36 -0
- package/dist/dashboard/components/shared/feedback/ErrorState.tsx +69 -0
- package/dist/dashboard/components/shared/feedback/LoadingState.tsx +104 -0
- package/dist/dashboard/components/shared/feedback/ValidationErrorDisplay.tsx +29 -0
- package/dist/dashboard/components/shared/feedback/index.ts +4 -0
- package/dist/dashboard/components/shared/file-dropzone/FileDropzone.tsx +167 -0
- package/dist/dashboard/components/shared/file-dropzone/index.ts +1 -0
- package/dist/dashboard/components/shared/filter-conditions-editor/FilterConditionsEditor.tsx +226 -0
- package/dist/dashboard/components/shared/filter-conditions-editor/index.ts +1 -0
- package/dist/dashboard/components/shared/index.ts +45 -0
- package/dist/dashboard/components/shared/schema-form/SchemaFormRenderer.tsx +248 -0
- package/dist/dashboard/components/shared/schema-form/fields/BooleanField.tsx +26 -0
- package/dist/dashboard/components/shared/schema-form/fields/FieldWrapper.tsx +28 -0
- package/dist/dashboard/components/shared/schema-form/fields/FileUploadField.tsx +171 -0
- package/dist/dashboard/components/shared/schema-form/fields/JsonField.tsx +132 -0
- package/dist/dashboard/components/shared/schema-form/fields/NumberField.tsx +33 -0
- package/dist/dashboard/components/shared/schema-form/fields/SelectField.tsx +70 -0
- package/dist/dashboard/components/shared/schema-form/fields/StringField.tsx +36 -0
- package/dist/dashboard/components/shared/schema-form/fields/TextareaField.tsx +31 -0
- package/dist/dashboard/components/shared/schema-form/fields/index.ts +23 -0
- package/dist/dashboard/components/shared/schema-form/index.ts +2 -0
- package/dist/dashboard/components/shared/schema-form/utils.ts +3 -0
- package/dist/dashboard/components/shared/selectable-card/SelectableCard.tsx +65 -0
- package/dist/dashboard/components/shared/selectable-card/index.ts +1 -0
- package/dist/dashboard/components/shared/stat-card/StatCard.tsx +121 -0
- package/dist/dashboard/components/shared/stat-card/index.ts +1 -0
- package/dist/dashboard/components/shared/step-config/AdapterRequiredWarning.tsx +25 -0
- package/dist/dashboard/components/shared/step-config/AdapterSelector.tsx +109 -0
- package/dist/dashboard/components/shared/step-config/AdvancedEditors.tsx +634 -0
- package/dist/dashboard/components/shared/step-config/EnrichConfigComponent.tsx +295 -0
- package/dist/dashboard/components/shared/step-config/ExtractTestResults.tsx +143 -0
- package/dist/dashboard/components/shared/step-config/GateConfigComponent.tsx +127 -0
- package/dist/dashboard/components/shared/step-config/LoadTestResults.tsx +104 -0
- package/dist/dashboard/components/shared/step-config/OperatorCard.tsx +266 -0
- package/dist/dashboard/components/shared/step-config/OperatorCheatSheetButton.tsx +54 -0
- package/dist/dashboard/components/shared/step-config/OperatorFieldInput.tsx +209 -0
- package/dist/dashboard/components/shared/step-config/RetrySettingsComponent.tsx +111 -0
- package/dist/dashboard/components/shared/step-config/RouteConfigComponent.tsx +125 -0
- package/dist/dashboard/components/shared/step-config/StepConfigPanel.tsx +564 -0
- package/dist/dashboard/components/shared/step-config/StepTester.tsx +165 -0
- package/dist/dashboard/components/shared/step-config/TestResultContainer.tsx +57 -0
- package/dist/dashboard/components/shared/step-config/TransformTestResults.tsx +130 -0
- package/dist/dashboard/components/shared/step-config/ValidateConfigComponent.tsx +334 -0
- package/dist/dashboard/components/shared/step-config/index.ts +29 -0
- package/dist/dashboard/components/shared/step-config/step-test-handlers.ts +297 -0
- package/dist/dashboard/components/shared/trigger-config/TriggerForm.tsx +478 -0
- package/dist/dashboard/components/shared/trigger-config/index.ts +1 -0
- package/dist/dashboard/components/shared/triggers-panel/TriggersPanel.tsx +281 -0
- package/dist/dashboard/components/shared/triggers-panel/index.ts +1 -0
- package/dist/dashboard/components/shared/wizard/ConfigurationNameCard.tsx +59 -0
- package/dist/dashboard/components/shared/wizard/SummaryCard.tsx +53 -0
- package/dist/dashboard/components/shared/wizard/WizardFooter.tsx +47 -0
- package/dist/dashboard/components/shared/wizard/WizardProgressBar.tsx +78 -0
- package/dist/dashboard/components/shared/wizard/index.ts +4 -0
- package/dist/dashboard/components/shared/wizard-trigger/TriggerSchemaFields.tsx +128 -0
- package/dist/dashboard/components/shared/wizard-trigger/TriggerSelector.tsx +33 -0
- package/dist/dashboard/components/shared/wizard-trigger/index.ts +2 -0
- package/dist/dashboard/components/templates/TemplateGallery.tsx +210 -0
- package/dist/dashboard/components/templates/TemplatePreview.tsx +214 -0
- package/dist/dashboard/components/templates/index.ts +4 -0
- package/dist/dashboard/components/wizards/export-wizard/DestinationStep.tsx +207 -0
- package/dist/dashboard/components/wizards/export-wizard/ExportWizard.tsx +221 -0
- package/dist/dashboard/components/wizards/export-wizard/FieldsStep.tsx +159 -0
- package/dist/dashboard/components/wizards/export-wizard/FormatStep.tsx +246 -0
- package/dist/dashboard/components/wizards/export-wizard/ReviewStep.tsx +231 -0
- package/dist/dashboard/components/wizards/export-wizard/SourceStep.tsx +154 -0
- package/dist/dashboard/components/wizards/export-wizard/TriggerStep.tsx +234 -0
- package/dist/dashboard/components/wizards/export-wizard/constants.ts +73 -0
- package/dist/dashboard/components/wizards/export-wizard/index.ts +2 -0
- package/dist/dashboard/components/wizards/export-wizard/types.ts +39 -0
- package/dist/dashboard/components/wizards/import-wizard/ImportWizard.tsx +350 -0
- package/dist/dashboard/components/wizards/import-wizard/MappingStep.tsx +286 -0
- package/dist/dashboard/components/wizards/import-wizard/PreviewStep.tsx +79 -0
- package/dist/dashboard/components/wizards/import-wizard/ReviewStep.tsx +266 -0
- package/dist/dashboard/components/wizards/import-wizard/SourceStep.tsx +537 -0
- package/dist/dashboard/components/wizards/import-wizard/StrategyStep.tsx +328 -0
- package/dist/dashboard/components/wizards/import-wizard/TargetStep.tsx +76 -0
- package/dist/dashboard/components/wizards/import-wizard/TemplateStep.tsx +116 -0
- package/dist/dashboard/components/wizards/import-wizard/TransformStep.tsx +666 -0
- package/dist/dashboard/components/wizards/import-wizard/TriggerStep.tsx +51 -0
- package/dist/dashboard/components/wizards/import-wizard/constants.ts +104 -0
- package/dist/dashboard/components/wizards/import-wizard/index.ts +3 -0
- package/dist/dashboard/components/wizards/import-wizard/types.ts +35 -0
- package/dist/dashboard/components/wizards/index.ts +7 -0
- package/dist/dashboard/components/wizards/shared/WizardStepContainer.tsx +27 -0
- package/dist/dashboard/components/wizards/shared/constants.ts +16 -0
- package/dist/dashboard/components/wizards/shared/index.ts +10 -0
- package/dist/dashboard/constants/colors.ts +25 -0
- package/dist/dashboard/constants/connection-defaults.ts +7 -0
- package/dist/dashboard/constants/connection-types.ts +1 -0
- package/dist/dashboard/constants/defaults.ts +18 -0
- package/dist/dashboard/constants/editor.ts +69 -0
- package/dist/dashboard/constants/enum-maps.ts +18 -0
- package/dist/dashboard/constants/fallbacks.ts +44 -0
- package/dist/dashboard/constants/file-format-registry.ts +206 -0
- package/dist/dashboard/constants/index.ts +24 -0
- package/dist/dashboard/constants/navigation.ts +29 -0
- package/dist/dashboard/constants/permissions.ts +41 -0
- package/dist/dashboard/constants/placeholders.ts +77 -0
- package/dist/dashboard/constants/routes.ts +12 -0
- package/dist/dashboard/constants/run-status.ts +1 -0
- package/dist/dashboard/constants/sentinel-values.ts +12 -0
- package/dist/dashboard/constants/step-configs.ts +9 -0
- package/dist/dashboard/constants/step-mappings.ts +170 -0
- package/dist/dashboard/constants/steps.ts +37 -0
- package/dist/dashboard/constants/toast-messages.ts +149 -0
- package/dist/dashboard/constants/triggers.ts +5 -0
- package/dist/dashboard/constants/ui-config.ts +139 -0
- package/dist/dashboard/constants/ui-dimensions.ts +145 -0
- package/dist/dashboard/constants/ui-states.ts +28 -0
- package/dist/dashboard/constants/ui-types.ts +85 -0
- package/dist/dashboard/constants/validation-patterns.ts +26 -0
- package/dist/dashboard/gql/gql.ts +370 -0
- package/dist/dashboard/gql/graphql.ts +10383 -0
- package/dist/dashboard/gql/index.ts +1 -0
- package/dist/dashboard/hooks/api/index.ts +115 -0
- package/dist/dashboard/hooks/api/mutation-helpers.ts +34 -0
- package/dist/dashboard/hooks/api/use-adapters.ts +92 -0
- package/dist/dashboard/hooks/api/use-config-options.ts +513 -0
- package/dist/dashboard/hooks/api/use-connections.ts +84 -0
- package/dist/dashboard/hooks/api/use-entity-field-schemas.ts +99 -0
- package/dist/dashboard/hooks/api/use-entity-loaders.ts +45 -0
- package/dist/dashboard/hooks/api/use-hooks.ts +68 -0
- package/dist/dashboard/hooks/api/use-logs.ts +102 -0
- package/dist/dashboard/hooks/api/use-pipeline-runs.ts +222 -0
- package/dist/dashboard/hooks/api/use-pipelines.ts +279 -0
- package/dist/dashboard/hooks/api/use-queues.ts +142 -0
- package/dist/dashboard/hooks/api/use-secrets.ts +75 -0
- package/dist/dashboard/hooks/api/use-settings.ts +55 -0
- package/dist/dashboard/hooks/api/use-step-tester.ts +79 -0
- package/dist/dashboard/hooks/index.ts +13 -0
- package/dist/dashboard/hooks/use-adapter-catalog.ts +253 -0
- package/dist/dashboard/hooks/use-export-templates.ts +80 -0
- package/dist/dashboard/hooks/use-import-templates.ts +139 -0
- package/dist/dashboard/hooks/use-load-more.ts +29 -0
- package/dist/dashboard/hooks/use-stable-keys.ts +54 -0
- package/dist/dashboard/hooks/use-trigger-types.ts +100 -0
- package/dist/dashboard/hooks/use-wizard-navigation.ts +128 -0
- package/dist/dashboard/index.tsx +55 -0
- package/dist/dashboard/routes/adapters/AdapterCard.tsx +102 -0
- package/dist/dashboard/routes/adapters/AdapterConstants.tsx +20 -0
- package/dist/dashboard/routes/adapters/AdapterDetail.tsx +208 -0
- package/dist/dashboard/routes/adapters/AdapterTypeSection.tsx +105 -0
- package/dist/dashboard/routes/adapters/AdaptersPage.tsx +276 -0
- package/dist/dashboard/routes/adapters/AdaptersTable.tsx +107 -0
- package/dist/dashboard/routes/adapters/index.ts +1 -0
- package/dist/dashboard/routes/connections/ConnectionDetail.tsx +218 -0
- package/dist/dashboard/routes/connections/ConnectionsList.tsx +34 -0
- package/dist/dashboard/routes/connections/index.ts +2 -0
- package/dist/dashboard/routes/hooks/Hooks.tsx +425 -0
- package/dist/dashboard/routes/hooks/hook-stages.ts +52 -0
- package/dist/dashboard/routes/hooks/index.ts +1 -0
- package/dist/dashboard/routes/index.ts +8 -0
- package/dist/dashboard/routes/logs/Logs.tsx +93 -0
- package/dist/dashboard/routes/logs/components/LogDetailDrawer.tsx +118 -0
- package/dist/dashboard/routes/logs/components/LogExplorerTab.tsx +367 -0
- package/dist/dashboard/routes/logs/components/LogLevelBadge.tsx +34 -0
- package/dist/dashboard/routes/logs/components/LogTableRow.tsx +70 -0
- package/dist/dashboard/routes/logs/components/LogsOverviewTab.tsx +178 -0
- package/dist/dashboard/routes/logs/components/RealtimeLogTab.tsx +122 -0
- package/dist/dashboard/routes/logs/index.ts +1 -0
- package/dist/dashboard/routes/pipelines/ErrorAuditList.tsx +39 -0
- package/dist/dashboard/routes/pipelines/ExportWizardPage.tsx +96 -0
- package/dist/dashboard/routes/pipelines/ImportWizardPage.tsx +104 -0
- package/dist/dashboard/routes/pipelines/PipelineDetail.tsx +211 -0
- package/dist/dashboard/routes/pipelines/PipelineRunsBlock.tsx +377 -0
- package/dist/dashboard/routes/pipelines/PipelinesList.tsx +87 -0
- package/dist/dashboard/routes/pipelines/RetryPatchHelper.tsx +51 -0
- package/dist/dashboard/routes/pipelines/RunDetailsPanel.tsx +238 -0
- package/dist/dashboard/routes/pipelines/RunErrorsList.tsx +116 -0
- package/dist/dashboard/routes/pipelines/StepCounters.tsx +24 -0
- package/dist/dashboard/routes/pipelines/StepSummaryTable.tsx +36 -0
- package/dist/dashboard/routes/pipelines/components/DryRunDialog.tsx +341 -0
- package/dist/dashboard/routes/pipelines/components/PipelineActionButtons.tsx +201 -0
- package/dist/dashboard/routes/pipelines/components/PipelineEditorToggle.tsx +116 -0
- package/dist/dashboard/routes/pipelines/components/PipelineFormFields.tsx +156 -0
- package/dist/dashboard/routes/pipelines/components/PipelineWebhookInfo.tsx +111 -0
- package/dist/dashboard/routes/pipelines/components/ReviewActionsPanel.tsx +342 -0
- package/dist/dashboard/routes/pipelines/components/ValidationPanel.tsx +121 -0
- package/dist/dashboard/routes/pipelines/components/VersionHistoryDialog.tsx +131 -0
- package/dist/dashboard/routes/pipelines/components/index.ts +25 -0
- package/dist/dashboard/routes/pipelines/hooks/index.ts +1 -0
- package/dist/dashboard/routes/pipelines/hooks/use-pipeline-validation.ts +114 -0
- package/dist/dashboard/routes/pipelines/index.ts +4 -0
- package/dist/dashboard/routes/pipelines/utils/index.ts +1 -0
- package/dist/dashboard/routes/pipelines/utils/pipeline-conversion.ts +261 -0
- package/dist/dashboard/routes/queues/ConsumersTable.tsx +134 -0
- package/dist/dashboard/routes/queues/DeadLettersTable.tsx +118 -0
- package/dist/dashboard/routes/queues/FailedRunsTable.tsx +74 -0
- package/dist/dashboard/routes/queues/QueuesPage.tsx +290 -0
- package/dist/dashboard/routes/queues/index.ts +1 -0
- package/dist/dashboard/routes/queues/types.ts +22 -0
- package/dist/dashboard/routes/secrets/SecretDetail.tsx +278 -0
- package/dist/dashboard/routes/secrets/SecretsList.tsx +34 -0
- package/dist/dashboard/routes/secrets/index.ts +2 -0
- package/dist/dashboard/routes/settings/Settings.tsx +343 -0
- package/dist/dashboard/routes/settings/index.ts +1 -0
- package/dist/dashboard/types/index.ts +89 -0
- package/dist/dashboard/types/pipeline.ts +51 -0
- package/dist/dashboard/types/ui-types.ts +400 -0
- package/dist/dashboard/types/wizard.ts +235 -0
- package/dist/dashboard/utils/adapter-grouping.ts +43 -0
- package/dist/dashboard/utils/column-analysis.ts +11 -0
- package/dist/dashboard/utils/field-preparation.ts +31 -0
- package/dist/dashboard/utils/form-validation.ts +373 -0
- package/dist/dashboard/utils/formatters.ts +92 -0
- package/dist/dashboard/utils/icon-resolver.ts +35 -0
- package/dist/dashboard/utils/index.ts +60 -0
- package/dist/dashboard/utils/query-key-factory.ts +54 -0
- package/dist/dashboard/utils/step-helpers.ts +32 -0
- package/dist/dashboard/utils/string-helpers.ts +4 -0
- package/dist/dashboard/utils/template-helpers.ts +26 -0
- package/dist/dashboard/utils/trigger-sync.ts +138 -0
- package/dist/dashboard/utils/wizard-to-pipeline.ts +569 -0
- package/dist/shared/types/adapter-config.types.d.ts +254 -11
- 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/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/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 +2 -0
- package/dist/src/api/schema/pipeline.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/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/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/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/runtime/executor-types.d.ts +3 -2
- package/dist/src/runtime/executor-types.d.ts.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.map +1 -1
- package/dist/src/runtime/executors/loaders/channel-handler.js +14 -1
- package/dist/src/runtime/executors/loaders/channel-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/collection-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/collection-handler.js +22 -3
- 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 +8 -1
- package/dist/src/runtime/executors/loaders/customer-group-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/customer-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/customer-handler.js +33 -2
- package/dist/src/runtime/executors/loaders/customer-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/facet-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/facet-handler.js +34 -2
- 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/inventory-adjust-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/inventory-adjust-handler.js +8 -1
- package/dist/src/runtime/executors/loaders/inventory-adjust-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/inventory-handler.js +3 -3
- 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 +35 -10
- package/dist/src/runtime/executors/loaders/loader-handler-registry.js.map +1 -1
- package/dist/src/runtime/executors/loaders/order-handler.d.ts +1 -1
- package/dist/src/runtime/executors/loaders/order-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/order-handler.js +7 -4
- package/dist/src/runtime/executors/loaders/order-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/payment-method-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/payment-method-handler.js +14 -1
- package/dist/src/runtime/executors/loaders/payment-method-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/product-handler.d.ts +6 -0
- package/dist/src/runtime/executors/loaders/product-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/product-handler.js +31 -13
- package/dist/src/runtime/executors/loaders/product-handler.js.map +1 -1
- package/dist/src/runtime/executors/loaders/promotion-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/promotion-handler.js +21 -2
- 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 +28 -1
- package/dist/src/runtime/executors/loaders/shared-lookups.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/shared-lookups.js +136 -0
- package/dist/src/runtime/executors/loaders/shared-lookups.js.map +1 -1
- package/dist/src/runtime/executors/loaders/shipping-method-handler.d.ts.map +1 -1
- package/dist/src/runtime/executors/loaders/shipping-method-handler.js +8 -1
- 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 +8 -1
- 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 +190 -44
- package/dist/src/runtime/executors/loaders/variant-handler.js.map +1 -1
- package/dist/src/runtime/executors/sink-handler-registry.js +2 -2
- package/dist/src/runtime/executors/sink-handler-registry.js.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/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.map +1 -1
- package/dist/src/services/pipeline/pipeline-runner.service.js +3 -3
- package/dist/src/services/pipeline/pipeline-runner.service.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/docs/reference/loaders.md +39 -2
- package/package.json +2 -2
- package/shared/types/adapter-config.types.ts +278 -9
- package/shared/types/index.ts +13 -0
- package/shared/utils/error.ts +11 -0
|
@@ -324,26 +324,36 @@ export type TypedOperatorConfig =
|
|
|
324
324
|
/** Product Upsert Loader */
|
|
325
325
|
export interface ProductUpsertLoaderConfig {
|
|
326
326
|
adapterCode: 'productUpsert';
|
|
327
|
-
/** Channel code
|
|
328
|
-
channel
|
|
329
|
-
/**
|
|
330
|
-
strategy
|
|
327
|
+
/** Channel code */
|
|
328
|
+
channel?: string;
|
|
329
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
330
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
331
|
+
/** Conflict strategy: SOURCE_WINS (default), VENDURE_WINS, or MERGE */
|
|
332
|
+
conflictStrategy?: 'SOURCE_WINS' | 'VENDURE_WINS' | 'MERGE';
|
|
331
333
|
/** Field containing product name */
|
|
332
334
|
nameField?: string;
|
|
333
335
|
/** Field containing slug */
|
|
334
336
|
slugField?: string;
|
|
335
337
|
/** Field containing description */
|
|
336
338
|
descriptionField?: string;
|
|
339
|
+
/** Field containing product enabled/published flag */
|
|
340
|
+
enabledField?: string;
|
|
337
341
|
/** Field containing SKU */
|
|
338
342
|
skuField?: string;
|
|
339
343
|
/** Field containing price */
|
|
340
344
|
priceField?: string;
|
|
341
345
|
/** Field containing stock quantity */
|
|
342
346
|
stockField?: string;
|
|
347
|
+
/** Field containing stock by location map */
|
|
348
|
+
stockByLocationField?: string;
|
|
343
349
|
/** Track inventory flag */
|
|
344
350
|
trackInventory?: string | boolean;
|
|
345
351
|
/** Tax category name */
|
|
346
352
|
taxCategoryName?: string;
|
|
353
|
+
/** Field containing custom fields object */
|
|
354
|
+
customFieldsField?: string;
|
|
355
|
+
/** Whether to create/update variants alongside the product (default: true). Set to false when variants are handled by a separate variantUpsert step. */
|
|
356
|
+
createVariants?: boolean;
|
|
347
357
|
}
|
|
348
358
|
|
|
349
359
|
/** Variant Upsert Loader */
|
|
@@ -353,12 +363,31 @@ export interface VariantUpsertLoaderConfig {
|
|
|
353
363
|
channel?: string;
|
|
354
364
|
/** Field containing SKU */
|
|
355
365
|
skuField?: string;
|
|
356
|
-
/** Field containing
|
|
366
|
+
/** Field containing variant name */
|
|
367
|
+
nameField?: string;
|
|
368
|
+
/** Field containing price (major units, auto-converted to minor) */
|
|
357
369
|
priceField?: string;
|
|
358
|
-
/** Field containing
|
|
370
|
+
/** Field containing price map by currency code (object, e.g. { USD: 19.99, EUR: 17.50 }) */
|
|
371
|
+
priceByCurrencyField?: string;
|
|
372
|
+
/** Field containing stock on hand */
|
|
359
373
|
stockField?: string;
|
|
374
|
+
/** Field containing stock by location map (object, e.g. { "Warehouse A": 100, "Warehouse B": 50 }) */
|
|
375
|
+
stockByLocationField?: string;
|
|
360
376
|
/** Tax category name */
|
|
361
377
|
taxCategoryName?: string;
|
|
378
|
+
/** Field containing custom fields object */
|
|
379
|
+
customFieldsField?: string;
|
|
380
|
+
/** Field containing option group→value pairs (object, e.g. { size: 'S', color: 'Blue' }). Auto-creates option groups and assigns them to the parent product. */
|
|
381
|
+
optionGroupsField?: string;
|
|
382
|
+
/** Field containing pre-existing Vendure option IDs (array, e.g. [1, 2, 3]). Passed directly without lookup. */
|
|
383
|
+
optionIdsField?: string;
|
|
384
|
+
/** Field containing option codes (array, e.g. ['size-s', 'color-blue']). Resolved to IDs by code lookup. */
|
|
385
|
+
optionCodesField?: string;
|
|
386
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE.
|
|
387
|
+
* UPSERT: update existing or create new (record must contain productSlug, productId, or productName for creation).
|
|
388
|
+
* CREATE: only create new variants, skip existing.
|
|
389
|
+
* UPDATE: only update existing variants, skip missing. */
|
|
390
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
362
391
|
}
|
|
363
392
|
|
|
364
393
|
/** Customer Upsert Loader */
|
|
@@ -378,6 +407,10 @@ export interface CustomerUpsertLoaderConfig {
|
|
|
378
407
|
groupsField?: string;
|
|
379
408
|
/** Groups mode */
|
|
380
409
|
groupsMode?: 'add' | 'set';
|
|
410
|
+
/** Field containing custom fields object */
|
|
411
|
+
customFieldsField?: string;
|
|
412
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
413
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
381
414
|
}
|
|
382
415
|
|
|
383
416
|
/** Stock Adjust Loader */
|
|
@@ -453,6 +486,8 @@ export interface CollectionUpsertLoaderConfig {
|
|
|
453
486
|
adapterCode: 'collectionUpsert';
|
|
454
487
|
/** Channel code */
|
|
455
488
|
channel?: string;
|
|
489
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
490
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
456
491
|
/** Field containing name */
|
|
457
492
|
nameField?: string;
|
|
458
493
|
/** Field containing slug */
|
|
@@ -461,6 +496,10 @@ export interface CollectionUpsertLoaderConfig {
|
|
|
461
496
|
descriptionField?: string;
|
|
462
497
|
/** Field containing parent slug */
|
|
463
498
|
parentSlugField?: string;
|
|
499
|
+
/** Apply collection filters after upsert */
|
|
500
|
+
applyFilters?: boolean;
|
|
501
|
+
/** Field containing custom fields object */
|
|
502
|
+
customFieldsField?: string;
|
|
464
503
|
}
|
|
465
504
|
|
|
466
505
|
/** Asset Attach Loader */
|
|
@@ -492,6 +531,8 @@ export interface PromotionUpsertLoaderConfig {
|
|
|
492
531
|
codeField: string;
|
|
493
532
|
/** Field containing name */
|
|
494
533
|
nameField?: string;
|
|
534
|
+
/** Field containing enabled flag */
|
|
535
|
+
enabledField?: string;
|
|
495
536
|
/** Field containing starts at date */
|
|
496
537
|
startsAtField?: string;
|
|
497
538
|
/** Field containing ends at date */
|
|
@@ -502,6 +543,215 @@ export interface PromotionUpsertLoaderConfig {
|
|
|
502
543
|
conditionsField?: string;
|
|
503
544
|
/** Field containing actions */
|
|
504
545
|
actionsField?: string;
|
|
546
|
+
/** Channel code */
|
|
547
|
+
channel?: string;
|
|
548
|
+
/** Field containing custom fields object */
|
|
549
|
+
customFieldsField?: string;
|
|
550
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
551
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/** GraphQL Mutation Loader */
|
|
555
|
+
export interface GraphqlMutationLoaderConfig {
|
|
556
|
+
adapterCode: 'graphqlMutation';
|
|
557
|
+
/** GraphQL endpoint URL (required) */
|
|
558
|
+
endpoint: string;
|
|
559
|
+
/** GraphQL mutation string (required) */
|
|
560
|
+
mutation: string;
|
|
561
|
+
/** Variable mapping: { "input.name": "productName" } (required) */
|
|
562
|
+
variableMapping: Record<string, string>;
|
|
563
|
+
/** Request headers */
|
|
564
|
+
headers?: Record<string, string>;
|
|
565
|
+
/** Auth preset */
|
|
566
|
+
auth?: 'NONE' | 'BEARER' | 'BASIC';
|
|
567
|
+
/** Bearer token secret code */
|
|
568
|
+
bearerTokenSecretCode?: string;
|
|
569
|
+
/** Basic auth secret code */
|
|
570
|
+
basicSecretCode?: string;
|
|
571
|
+
/** Batch mode */
|
|
572
|
+
batchMode?: 'SINGLE' | 'BATCH';
|
|
573
|
+
/** Max records per batch */
|
|
574
|
+
maxBatchSize?: number;
|
|
575
|
+
/** Number of retries */
|
|
576
|
+
retries?: number;
|
|
577
|
+
/** Delay between retries (ms) */
|
|
578
|
+
retryDelayMs?: number;
|
|
579
|
+
/** Request timeout (ms) */
|
|
580
|
+
timeoutMs?: number;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/** Facet Upsert Loader */
|
|
584
|
+
export interface FacetUpsertLoaderConfig {
|
|
585
|
+
adapterCode: 'facetUpsert';
|
|
586
|
+
/** Field containing facet code (required) */
|
|
587
|
+
codeField: string;
|
|
588
|
+
/** Field containing facet name (required) */
|
|
589
|
+
nameField: string;
|
|
590
|
+
/** Field containing private flag */
|
|
591
|
+
privateField?: string;
|
|
592
|
+
/** Channel code */
|
|
593
|
+
channel?: string;
|
|
594
|
+
/** Field containing custom fields object */
|
|
595
|
+
customFieldsField?: string;
|
|
596
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
597
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/** Facet Value Upsert Loader */
|
|
601
|
+
export interface FacetValueUpsertLoaderConfig {
|
|
602
|
+
adapterCode: 'facetValueUpsert';
|
|
603
|
+
/** Field containing parent facet code (required) */
|
|
604
|
+
facetCodeField: string;
|
|
605
|
+
/** Field containing value code (required) */
|
|
606
|
+
codeField: string;
|
|
607
|
+
/** Field containing value name (required) */
|
|
608
|
+
nameField: string;
|
|
609
|
+
/** Channel code */
|
|
610
|
+
channel?: string;
|
|
611
|
+
/** Field containing custom fields object */
|
|
612
|
+
customFieldsField?: string;
|
|
613
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
614
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/** Asset Import Loader */
|
|
618
|
+
export interface AssetImportLoaderConfig {
|
|
619
|
+
adapterCode: 'assetImport';
|
|
620
|
+
/** Field containing source URL to download (required) */
|
|
621
|
+
sourceUrlField: string;
|
|
622
|
+
/** Field containing target filename */
|
|
623
|
+
filenameField?: string;
|
|
624
|
+
/** Field containing asset name */
|
|
625
|
+
nameField?: string;
|
|
626
|
+
/** Field containing tags (array) */
|
|
627
|
+
tagsField?: string;
|
|
628
|
+
/** Channel code */
|
|
629
|
+
channel?: string;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/** Tax Rate Upsert Loader */
|
|
633
|
+
export interface TaxRateUpsertLoaderConfig {
|
|
634
|
+
adapterCode: 'taxRateUpsert';
|
|
635
|
+
/** Field containing tax rate name (required) */
|
|
636
|
+
nameField: string;
|
|
637
|
+
/** Field containing tax rate percentage 0-100 (required) */
|
|
638
|
+
valueField: string;
|
|
639
|
+
/** Field containing enabled flag */
|
|
640
|
+
enabledField?: string;
|
|
641
|
+
/** Field containing tax category code/name (required) */
|
|
642
|
+
taxCategoryCodeField: string;
|
|
643
|
+
/** Field containing tax category ID (alternative) */
|
|
644
|
+
taxCategoryIdField?: string;
|
|
645
|
+
/** Field containing zone code/name (required) */
|
|
646
|
+
zoneCodeField: string;
|
|
647
|
+
/** Field containing zone ID (alternative) */
|
|
648
|
+
zoneIdField?: string;
|
|
649
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
650
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/** Payment Method Upsert Loader */
|
|
654
|
+
export interface PaymentMethodUpsertLoaderConfig {
|
|
655
|
+
adapterCode: 'paymentMethodUpsert';
|
|
656
|
+
/** Field containing payment method name (required) */
|
|
657
|
+
nameField: string;
|
|
658
|
+
/** Field containing unique code (required) */
|
|
659
|
+
codeField: string;
|
|
660
|
+
/** Field containing description */
|
|
661
|
+
descriptionField?: string;
|
|
662
|
+
/** Field containing enabled flag */
|
|
663
|
+
enabledField?: string;
|
|
664
|
+
/** Field containing handler config { code, args } (required) */
|
|
665
|
+
handlerField: string;
|
|
666
|
+
/** Field containing eligibility checker config { code, args } */
|
|
667
|
+
checkerField?: string;
|
|
668
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
669
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/** Channel Upsert Loader */
|
|
673
|
+
export interface ChannelUpsertLoaderConfig {
|
|
674
|
+
adapterCode: 'channelUpsert';
|
|
675
|
+
/** Field containing unique channel code (required) */
|
|
676
|
+
codeField: string;
|
|
677
|
+
/** Field containing channel token */
|
|
678
|
+
tokenField?: string;
|
|
679
|
+
/** Field containing default language code (required) */
|
|
680
|
+
defaultLanguageCodeField: string;
|
|
681
|
+
/** Field containing available language codes (array) */
|
|
682
|
+
availableLanguageCodesField?: string;
|
|
683
|
+
/** Field containing default currency code (required) */
|
|
684
|
+
defaultCurrencyCodeField: string;
|
|
685
|
+
/** Field containing available currency codes (array) */
|
|
686
|
+
availableCurrencyCodesField?: string;
|
|
687
|
+
/** Field containing prices-include-tax flag */
|
|
688
|
+
pricesIncludeTaxField?: string;
|
|
689
|
+
/** Field containing default tax zone code */
|
|
690
|
+
defaultTaxZoneCodeField?: string;
|
|
691
|
+
/** Field containing default shipping zone code */
|
|
692
|
+
defaultShippingZoneCodeField?: string;
|
|
693
|
+
/** Field containing seller ID (for multi-vendor) */
|
|
694
|
+
sellerIdField?: string;
|
|
695
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
696
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/** Shipping Method Upsert Loader */
|
|
700
|
+
export interface ShippingMethodUpsertLoaderConfig {
|
|
701
|
+
adapterCode: 'shippingMethodUpsert';
|
|
702
|
+
/** Field containing display name (required) */
|
|
703
|
+
nameField: string;
|
|
704
|
+
/** Field containing unique code (required) */
|
|
705
|
+
codeField: string;
|
|
706
|
+
/** Field containing description */
|
|
707
|
+
descriptionField?: string;
|
|
708
|
+
/** Field containing fulfillment handler code (required) */
|
|
709
|
+
fulfillmentHandlerField: string;
|
|
710
|
+
/** Field containing calculator config { code, args } (required) */
|
|
711
|
+
calculatorField: string;
|
|
712
|
+
/** Field containing eligibility checker config { code, args } */
|
|
713
|
+
checkerField?: string;
|
|
714
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
715
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/** Customer Group Upsert Loader */
|
|
719
|
+
export interface CustomerGroupUpsertLoaderConfig {
|
|
720
|
+
adapterCode: 'customerGroupUpsert';
|
|
721
|
+
/** Field containing group name (required) */
|
|
722
|
+
nameField: string;
|
|
723
|
+
/** Field containing customer email addresses (array) */
|
|
724
|
+
customerEmailsField?: string;
|
|
725
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
726
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/** Stock Location Upsert Loader */
|
|
730
|
+
export interface StockLocationUpsertLoaderConfig {
|
|
731
|
+
adapterCode: 'stockLocationUpsert';
|
|
732
|
+
/** Field containing stock location name (required) */
|
|
733
|
+
nameField: string;
|
|
734
|
+
/** Field containing location description */
|
|
735
|
+
descriptionField?: string;
|
|
736
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
737
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/** Inventory Adjust Loader */
|
|
741
|
+
export interface InventoryAdjustLoaderConfig {
|
|
742
|
+
adapterCode: 'inventoryAdjust';
|
|
743
|
+
/** Field containing variant SKU (required) */
|
|
744
|
+
skuField: string;
|
|
745
|
+
/** Field containing stock on hand quantity (required) */
|
|
746
|
+
stockOnHandField: string;
|
|
747
|
+
/** Field containing stock location name */
|
|
748
|
+
stockLocationNameField?: string;
|
|
749
|
+
/** Field containing stock location ID (alternative) */
|
|
750
|
+
stockLocationIdField?: string;
|
|
751
|
+
/** Field containing adjustment reason */
|
|
752
|
+
reasonField?: string;
|
|
753
|
+
/** Load strategy: UPSERT (default), CREATE, or UPDATE */
|
|
754
|
+
strategy?: 'UPSERT' | 'CREATE' | 'UPDATE';
|
|
505
755
|
}
|
|
506
756
|
|
|
507
757
|
/** Generic config for custom loader adapters */
|
|
@@ -517,12 +767,23 @@ export type TypedLoaderConfig =
|
|
|
517
767
|
| CustomerUpsertLoaderConfig
|
|
518
768
|
| StockAdjustLoaderConfig
|
|
519
769
|
| RestPostLoaderConfig
|
|
770
|
+
| GraphqlMutationLoaderConfig
|
|
520
771
|
| OrderNoteLoaderConfig
|
|
521
772
|
| OrderTransitionLoaderConfig
|
|
522
773
|
| CollectionUpsertLoaderConfig
|
|
523
774
|
| AssetAttachLoaderConfig
|
|
775
|
+
| AssetImportLoaderConfig
|
|
524
776
|
| ApplyCouponLoaderConfig
|
|
525
777
|
| PromotionUpsertLoaderConfig
|
|
778
|
+
| FacetUpsertLoaderConfig
|
|
779
|
+
| FacetValueUpsertLoaderConfig
|
|
780
|
+
| TaxRateUpsertLoaderConfig
|
|
781
|
+
| PaymentMethodUpsertLoaderConfig
|
|
782
|
+
| ChannelUpsertLoaderConfig
|
|
783
|
+
| ShippingMethodUpsertLoaderConfig
|
|
784
|
+
| CustomerGroupUpsertLoaderConfig
|
|
785
|
+
| StockLocationUpsertLoaderConfig
|
|
786
|
+
| InventoryAdjustLoaderConfig
|
|
526
787
|
| GenericLoaderConfig;
|
|
527
788
|
|
|
528
789
|
// EXPORTER CONFIGS
|
|
@@ -711,10 +972,10 @@ export interface RouteConfig {
|
|
|
711
972
|
// PERMISSION MAPPINGS
|
|
712
973
|
|
|
713
974
|
/** Loader adapter codes that require UpdateCatalog permission */
|
|
714
|
-
export type UpdateCatalogLoaders = 'productUpsert' | 'variantUpsert' | 'stockAdjust' | 'collectionUpsert' | 'assetAttach';
|
|
975
|
+
export type UpdateCatalogLoaders = 'productUpsert' | 'variantUpsert' | 'stockAdjust' | 'collectionUpsert' | 'assetAttach' | 'assetImport' | 'facetUpsert' | 'facetValueUpsert' | 'stockLocationUpsert' | 'inventoryAdjust';
|
|
715
976
|
|
|
716
977
|
/** Loader adapter codes that require UpdateCustomer permission */
|
|
717
|
-
export type UpdateCustomerLoaders = 'customerUpsert';
|
|
978
|
+
export type UpdateCustomerLoaders = 'customerUpsert' | 'customerGroupUpsert';
|
|
718
979
|
|
|
719
980
|
/** Loader adapter codes that require UpdateOrder permission */
|
|
720
981
|
export type UpdateOrderLoaders = 'orderNote' | 'orderTransition' | 'applyCoupon';
|
|
@@ -722,8 +983,14 @@ export type UpdateOrderLoaders = 'orderNote' | 'orderTransition' | 'applyCoupon'
|
|
|
722
983
|
/** Loader adapter codes that require UpdatePromotion permission */
|
|
723
984
|
export type UpdatePromotionLoaders = 'promotionUpsert';
|
|
724
985
|
|
|
986
|
+
/** Loader adapter codes that require UpdateSettings permission */
|
|
987
|
+
export type UpdateSettingsLoaders = 'taxRateUpsert' | 'paymentMethodUpsert' | 'channelUpsert';
|
|
988
|
+
|
|
989
|
+
/** Loader adapter codes that require UpdateShippingMethod permission */
|
|
990
|
+
export type UpdateShippingMethodLoaders = 'shippingMethodUpsert';
|
|
991
|
+
|
|
725
992
|
/** Loader adapter codes that require UpdateDataHubSettings permission */
|
|
726
|
-
export type UpdateDataHubSettingsLoaders = 'restPost';
|
|
993
|
+
export type UpdateDataHubSettingsLoaders = 'restPost' | 'graphqlMutation';
|
|
727
994
|
|
|
728
995
|
/** All loader adapter codes */
|
|
729
996
|
export type LoaderAdapterCode =
|
|
@@ -731,5 +998,7 @@ export type LoaderAdapterCode =
|
|
|
731
998
|
| UpdateCustomerLoaders
|
|
732
999
|
| UpdateOrderLoaders
|
|
733
1000
|
| UpdatePromotionLoaders
|
|
1001
|
+
| UpdateSettingsLoaders
|
|
1002
|
+
| UpdateShippingMethodLoaders
|
|
734
1003
|
| UpdateDataHubSettingsLoaders;
|
|
735
1004
|
|
package/shared/types/index.ts
CHANGED
|
@@ -332,12 +332,23 @@ export type {
|
|
|
332
332
|
CustomerUpsertLoaderConfig,
|
|
333
333
|
StockAdjustLoaderConfig,
|
|
334
334
|
RestPostLoaderConfig,
|
|
335
|
+
GraphqlMutationLoaderConfig,
|
|
335
336
|
OrderNoteLoaderConfig,
|
|
336
337
|
OrderTransitionLoaderConfig,
|
|
337
338
|
CollectionUpsertLoaderConfig,
|
|
338
339
|
AssetAttachLoaderConfig,
|
|
340
|
+
AssetImportLoaderConfig,
|
|
339
341
|
ApplyCouponLoaderConfig,
|
|
340
342
|
PromotionUpsertLoaderConfig,
|
|
343
|
+
FacetUpsertLoaderConfig,
|
|
344
|
+
FacetValueUpsertLoaderConfig,
|
|
345
|
+
TaxRateUpsertLoaderConfig,
|
|
346
|
+
PaymentMethodUpsertLoaderConfig,
|
|
347
|
+
ChannelUpsertLoaderConfig,
|
|
348
|
+
ShippingMethodUpsertLoaderConfig,
|
|
349
|
+
CustomerGroupUpsertLoaderConfig,
|
|
350
|
+
StockLocationUpsertLoaderConfig,
|
|
351
|
+
InventoryAdjustLoaderConfig,
|
|
341
352
|
GenericLoaderConfig,
|
|
342
353
|
TypedLoaderConfig,
|
|
343
354
|
CsvExportConfig,
|
|
@@ -357,6 +368,8 @@ export type {
|
|
|
357
368
|
UpdateCustomerLoaders,
|
|
358
369
|
UpdateOrderLoaders,
|
|
359
370
|
UpdatePromotionLoaders,
|
|
371
|
+
UpdateSettingsLoaders,
|
|
372
|
+
UpdateShippingMethodLoaders,
|
|
360
373
|
UpdateDataHubSettingsLoaders,
|
|
361
374
|
LoaderAdapterCode,
|
|
362
375
|
} from './adapter-config.types';
|
package/shared/utils/error.ts
CHANGED
|
@@ -23,3 +23,14 @@ export function ensureError(error: unknown): Error {
|
|
|
23
23
|
export function toErrorOrUndefined(error: unknown): Error | undefined {
|
|
24
24
|
return error instanceof Error ? error : undefined;
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Extracts the stack trace from an unknown caught value.
|
|
29
|
+
* Returns undefined if the value is not an Error or has no stack.
|
|
30
|
+
*/
|
|
31
|
+
export function getErrorStack(error: unknown): string | undefined {
|
|
32
|
+
if (error instanceof Error && error.stack) {
|
|
33
|
+
return error.stack;
|
|
34
|
+
}
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|