@endora-commerce/mod-catalog 0.109.0 → 0.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/components/CopyToChannelsDialog.d.ts +37 -0
- package/dist/admin/components/CopyToChannelsDialog.js +83 -0
- package/dist/admin/components/PackagingUnitsEditor.d.ts +13 -4
- package/dist/admin/components/PackagingUnitsEditor.js +21 -85
- package/dist/admin/components/ProductAttachmentsSection.d.ts +1 -3
- package/dist/admin/components/ProductAttachmentsSection.js +59 -98
- package/dist/admin/components/ProductAttributesTab.d.ts +1 -11
- package/dist/admin/components/ProductAttributesTab.js +128 -119
- package/dist/admin/components/ProductContentCard.d.ts +41 -0
- package/dist/admin/components/ProductContentCard.js +28 -0
- package/dist/admin/components/ProductEditorSaveAction.d.ts +22 -0
- package/dist/admin/components/ProductEditorSaveAction.js +23 -0
- package/dist/admin/components/ProductGallerySection.d.ts +2 -13
- package/dist/admin/components/ProductGallerySection.js +98 -354
- package/dist/admin/components/ProductInventoryTab.d.ts +12 -1
- package/dist/admin/components/ProductInventoryTab.js +52 -115
- package/dist/admin/components/ProductOrderRulesCard.d.ts +11 -15
- package/dist/admin/components/ProductOrderRulesCard.js +15 -268
- package/dist/admin/components/ProductScopeBar.d.ts +34 -0
- package/dist/admin/components/ProductScopeBar.js +70 -0
- package/dist/admin/components/ProductScopeOverview.d.ts +13 -1
- package/dist/admin/components/ProductScopeOverview.js +56 -37
- package/dist/admin/components/ProductUrlRedirects.d.ts +15 -0
- package/dist/admin/components/ProductUrlRedirects.js +70 -0
- package/dist/admin/components/ProductsBulkEditDialog.js +4 -3
- package/dist/admin/components/editor/DetailsTab.d.ts +30 -0
- package/dist/admin/components/editor/DetailsTab.js +60 -0
- package/dist/admin/components/editor/SectionHeading.d.ts +22 -0
- package/dist/admin/components/editor/SectionHeading.js +19 -0
- package/dist/admin/components/editor/confirm-removal.d.ts +13 -0
- package/dist/admin/components/editor/confirm-removal.js +33 -0
- package/dist/admin/components/editor/editor-context.d.ts +55 -0
- package/dist/admin/components/editor/editor-context.js +88 -0
- package/dist/admin/components/editor/scoped-controls.d.ts +46 -0
- package/dist/admin/components/editor/scoped-controls.js +64 -0
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin/index.js +11 -0
- package/dist/admin/lib/attribute-scope.d.ts +17 -14
- package/dist/admin/lib/attribute-scope.js +12 -9
- package/dist/admin/lib/bulk-result-outcome.d.ts +14 -0
- package/dist/admin/lib/bulk-result-outcome.js +13 -0
- package/dist/admin/lib/editor-scope.d.ts +35 -0
- package/dist/admin/lib/editor-scope.js +114 -0
- package/dist/admin/lib/order-minimum-input.d.ts +13 -0
- package/dist/admin/lib/order-minimum-input.js +16 -0
- package/dist/admin/lib/product-labels.d.ts +0 -2
- package/dist/admin/lib/product-labels.js +1 -5
- package/dist/admin/lib/product-scopes-api.d.ts +5 -22
- package/dist/admin/lib/product-scopes-api.js +4 -48
- package/dist/admin/lib/product-url-keys-api.d.ts +4 -27
- package/dist/admin/lib/product-url-keys-api.js +1 -50
- package/dist/admin/lib/scope-overview.d.ts +13 -14
- package/dist/admin/lib/scope-overview.js +36 -31
- package/dist/admin/lib/scoped-editor-store.d.ts +81 -0
- package/dist/admin/lib/scoped-editor-store.js +198 -0
- package/dist/admin/lib/scoped-values-api.d.ts +14 -0
- package/dist/admin/lib/scoped-values-api.js +55 -0
- package/dist/admin/pages/AttachmentTypesPage.js +14 -4
- package/dist/admin/pages/AttributeSetsPage.js +11 -4
- package/dist/admin/pages/AttributesManager.js +130 -40
- package/dist/admin/pages/BulkOperationDetailPage.js +11 -4
- package/dist/admin/pages/CategoriesTree.d.ts +5 -0
- package/dist/admin/pages/CategoriesTree.js +226 -40
- package/dist/admin/pages/ProductContentPage.d.ts +27 -0
- package/dist/admin/pages/ProductContentPage.js +161 -0
- package/dist/admin/pages/ProductCreateForm.d.ts +3 -0
- package/dist/admin/pages/ProductCreateForm.js +87 -0
- package/dist/admin/pages/ProductEditor.js +938 -458
- package/dist/admin/pages/ProductsList.js +33 -38
- package/dist/backend/admin-search-provider.d.ts +2 -1
- package/dist/backend/admin-search-provider.js +1 -1
- package/dist/backend/commands/attribute-commands.d.ts +4 -3
- package/dist/backend/commands/attribute-commands.js +137 -30
- package/dist/backend/commands/product-content-commands.d.ts +31 -0
- package/dist/backend/commands/product-content-commands.js +70 -0
- package/dist/backend/commands/scoped-values.commands.d.ts +95 -0
- package/dist/backend/commands/scoped-values.commands.js +235 -0
- package/dist/backend/demo/reset.js +2 -1
- package/dist/backend/demo/rows.d.ts +18 -0
- package/dist/backend/demo/rows.js +18 -0
- package/dist/backend/demo/seed.d.ts +2 -1
- package/dist/backend/demo/seed.js +20 -6
- package/dist/backend/entities/gallery-item-scope-override.entity.d.ts +30 -0
- package/dist/backend/entities/gallery-item-scope-override.entity.js +80 -0
- package/dist/backend/entities/gallery-item.entity.d.ts +7 -6
- package/dist/backend/entities/gallery-item.entity.js +11 -6
- package/dist/backend/entities/gallery-role-scope-override.entity.d.ts +28 -0
- package/dist/backend/entities/gallery-role-scope-override.entity.js +75 -0
- package/dist/backend/entities/product-attachment-scope-override.entity.d.ts +30 -0
- package/dist/backend/entities/product-attachment-scope-override.entity.js +80 -0
- package/dist/backend/entities/product-attachment.entity.d.ts +4 -6
- package/dist/backend/entities/product-attachment.entity.js +6 -12
- package/dist/backend/entities/product-attribute.entity.d.ts +5 -9
- package/dist/backend/entities/product-attribute.entity.js +5 -13
- package/dist/backend/entities/product-channel-scope.entity.d.ts +7 -2
- package/dist/backend/entities/product-channel-scope.entity.js +10 -1
- package/dist/backend/entities/product-content-value.entity.d.ts +39 -0
- package/dist/backend/entities/product-content-value.entity.js +81 -0
- package/dist/backend/entities/product-packaging-unit-scope-override.entity.d.ts +30 -0
- package/dist/backend/entities/product-packaging-unit-scope-override.entity.js +80 -0
- package/dist/backend/entities/product-packaging-unit.entity.d.ts +1 -7
- package/dist/backend/entities/product-packaging-unit.entity.js +0 -10
- package/dist/backend/entities/product-url-key.entity.d.ts +14 -19
- package/dist/backend/entities/product-url-key.entity.js +17 -22
- package/dist/backend/entities/product-url-redirect.entity.d.ts +8 -13
- package/dist/backend/entities/product-url-redirect.entity.js +13 -14
- package/dist/backend/entities/product-variant.entity.d.ts +8 -1
- package/dist/backend/entities/product-variant.entity.js +13 -2
- package/dist/backend/entities/product.entity.d.ts +31 -14
- package/dist/backend/entities/product.entity.js +41 -34
- package/dist/backend/index.d.ts +11 -3
- package/dist/backend/index.js +155 -49
- package/dist/backend/plugin.d.ts +36 -6
- package/dist/backend/plugin.js +36 -13
- package/dist/backend/prompt-tools.d.ts +3 -2
- package/dist/backend/prompt-tools.js +18 -7
- package/dist/backend/routes.admin.d.ts +15 -16
- package/dist/backend/routes.admin.js +122 -103
- package/dist/backend/routes.api-key.js +4 -2
- package/dist/backend/routes.external.js +3 -2
- package/dist/backend/routes.public.d.ts +8 -1
- package/dist/backend/routes.public.js +68 -11
- package/dist/backend/services/asset-references.d.ts +12 -1
- package/dist/backend/services/asset-references.js +42 -2
- package/dist/backend/services/attachment-packaging-scopes.d.ts +38 -20
- package/dist/backend/services/attachment-packaging-scopes.js +58 -75
- package/dist/backend/services/attachment.service.d.ts +4 -8
- package/dist/backend/services/attachment.service.js +35 -49
- package/dist/backend/services/attribute-filter-match.d.ts +14 -0
- package/dist/backend/services/attribute-filter-match.js +19 -0
- package/dist/backend/services/attribute-scope-preview.d.ts +17 -7
- package/dist/backend/services/attribute-scope-preview.js +30 -20
- package/dist/backend/services/attribute-set.service.d.ts +10 -1
- package/dist/backend/services/attribute-set.service.js +30 -4
- package/dist/backend/services/attribute-type-mapping.d.ts +2 -2
- package/dist/backend/services/attribute-type-mapping.js +6 -0
- package/dist/backend/services/attribute-usage.d.ts +31 -0
- package/dist/backend/services/attribute-usage.js +29 -0
- package/dist/backend/services/bulk-operation.service.d.ts +1 -1
- package/dist/backend/services/bulk-operation.service.js +16 -6
- package/dist/backend/services/bundle.service.js +19 -1
- package/dist/backend/services/catalog-admin-search.service.d.ts +3 -2
- package/dist/backend/services/catalog-admin-search.service.js +6 -6
- package/dist/backend/services/catalog-admin.service.d.ts +63 -12
- package/dist/backend/services/catalog-admin.service.js +368 -195
- package/dist/backend/services/catalog-attribute-read.service.d.ts +14 -0
- package/dist/backend/services/catalog-attribute-read.service.js +9 -19
- package/dist/backend/services/catalog-bulk-import.service.d.ts +58 -5
- package/dist/backend/services/catalog-bulk-import.service.js +192 -142
- package/dist/backend/services/catalog-bulk-update.service.d.ts +5 -3
- package/dist/backend/services/catalog-bulk-update.service.js +21 -8
- package/dist/backend/services/catalog-product-read.service.d.ts +11 -1
- package/dist/backend/services/catalog-product-read.service.js +37 -17
- package/dist/backend/services/catalog-query.service.d.ts +48 -8
- package/dist/backend/services/catalog-query.service.js +180 -116
- package/dist/backend/services/catalog-quick-search.service.js +5 -5
- package/dist/backend/services/catalog-write-ports.d.ts +14 -16
- package/dist/backend/services/catalog-write-ports.js +11 -70
- package/dist/backend/services/category-admin.service.js +29 -5
- package/dist/backend/services/content-attribute-rules.d.ts +61 -0
- package/dist/backend/services/content-attribute-rules.js +102 -0
- package/dist/backend/services/effective-value.sql.d.ts +24 -38
- package/dist/backend/services/effective-value.sql.js +37 -87
- package/dist/backend/services/gallery-scopes.d.ts +45 -22
- package/dist/backend/services/gallery-scopes.js +116 -109
- package/dist/backend/services/gallery.service.d.ts +13 -27
- package/dist/backend/services/gallery.service.js +75 -199
- package/dist/backend/services/grouped.service.js +20 -3
- package/dist/backend/services/packaging-unit.service.js +7 -12
- package/dist/backend/services/page-builder-content.d.ts +64 -0
- package/dist/backend/services/page-builder-content.js +113 -0
- package/dist/backend/services/primary-asset-url.d.ts +6 -1
- package/dist/backend/services/primary-asset-url.js +9 -4
- package/dist/backend/services/product-availability.service.d.ts +16 -3
- package/dist/backend/services/product-availability.service.js +58 -21
- package/dist/backend/services/product-content.service.d.ts +62 -0
- package/dist/backend/services/product-content.service.js +122 -0
- package/dist/backend/services/product-editor-preferences.service.d.ts +6 -0
- package/dist/backend/services/product-editor-preferences.service.js +12 -0
- package/dist/backend/services/product-global-field-rules.d.ts +39 -0
- package/dist/backend/services/product-global-field-rules.js +84 -0
- package/dist/backend/services/product-link.service.js +14 -16
- package/dist/backend/services/product-list-view-service.js +5 -8
- package/dist/backend/services/product-page-revalidation.d.ts +9 -0
- package/dist/backend/services/product-page-revalidation.js +19 -0
- package/dist/backend/services/product-scopes.service.d.ts +18 -8
- package/dist/backend/services/product-scopes.service.js +91 -36
- package/dist/backend/services/product-value-resolver.service.d.ts +2 -2
- package/dist/backend/services/product-value-resolver.service.js +4 -7
- package/dist/backend/services/publication-window-sweep.d.ts +61 -7
- package/dist/backend/services/publication-window-sweep.js +106 -19
- package/dist/backend/services/scheduled-work-probe.d.ts +34 -0
- package/dist/backend/services/scheduled-work-probe.js +30 -0
- package/dist/backend/services/scope-completeness.d.ts +11 -11
- package/dist/backend/services/scope-completeness.js +26 -33
- package/dist/backend/services/scope-overview.service.d.ts +24 -24
- package/dist/backend/services/scope-overview.service.js +33 -76
- package/dist/backend/services/scoped-store-adapters.d.ts +58 -0
- package/dist/backend/services/scoped-store-adapters.js +92 -0
- package/dist/backend/services/scoped-values-global-only.d.ts +36 -0
- package/dist/backend/services/scoped-values-global-only.js +92 -0
- package/dist/backend/services/scoped-values-import.d.ts +86 -0
- package/dist/backend/services/scoped-values-import.js +320 -0
- package/dist/backend/services/scoped-values-read.service.d.ts +56 -0
- package/dist/backend/services/scoped-values-read.service.js +289 -0
- package/dist/backend/services/scoped-values-save.service.d.ts +79 -0
- package/dist/backend/services/scoped-values-save.service.js +675 -0
- package/dist/backend/services/scoped-values-state.d.ts +94 -0
- package/dist/backend/services/scoped-values-state.js +159 -0
- package/dist/backend/services/scoped-values.service.d.ts +36 -0
- package/dist/backend/services/scoped-values.service.js +92 -0
- package/dist/backend/services/storefront-value-overrides.d.ts +7 -8
- package/dist/backend/services/storefront-value-overrides.js +11 -14
- package/dist/backend/services/table-maintenance-queue.d.ts +78 -0
- package/dist/backend/services/table-maintenance-queue.js +97 -0
- package/dist/backend/services/url-key-resolution.service.d.ts +12 -18
- package/dist/backend/services/url-key-resolution.service.js +43 -43
- package/dist/backend/services/url-key.service.d.ts +87 -135
- package/dist/backend/services/url-key.service.js +447 -619
- package/dist/manifest.d.ts +51 -1
- package/dist/manifest.js +111 -7
- package/dist/migrations/20261030T113855_catalog_scope_model_texts.d.ts +36 -0
- package/dist/migrations/20261030T113855_catalog_scope_model_texts.js +225 -0
- package/dist/migrations/20261030T113859_catalog_scope_model_order_rules.d.ts +18 -0
- package/dist/migrations/20261030T113859_catalog_scope_model_order_rules.js +39 -0
- package/dist/migrations/20261030T113904_catalog_scope_model_url_keys.d.ts +6 -0
- package/dist/migrations/20261030T113904_catalog_scope_model_url_keys.js +119 -0
- package/dist/migrations/20261030T113908_catalog_scope_model_media.d.ts +6 -0
- package/dist/migrations/20261030T113908_catalog_scope_model_media.js +185 -0
- package/dist/migrations/20261104T121504_catalog_product_content_values.d.ts +36 -0
- package/dist/migrations/20261104T121504_catalog_product_content_values.js +53 -0
- package/dist/migrations/20261107T093126_catalog_sku_unique_among_live.d.ts +33 -0
- package/dist/migrations/20261107T093126_catalog_sku_unique_among_live.js +58 -0
- package/dist/migrations/20261107T120008_catalog_product_created_at_milliseconds.d.ts +36 -0
- package/dist/migrations/20261107T120008_catalog_product_created_at_milliseconds.js +40 -0
- package/dist/migrations/20261114T000706_catalog_category_main_image.d.ts +37 -0
- package/dist/migrations/20261114T000706_catalog_category_main_image.js +56 -0
- package/dist/migrations/index.d.ts +9 -1
- package/dist/migrations/index.js +17 -1
- package/docs/catalog/attachments.md +53 -43
- package/docs/catalog/attribute-sets.md +3 -2
- package/docs/catalog/attributes.md +99 -25
- package/docs/catalog/category-content.md +9 -3
- package/docs/catalog/composite-products.md +5 -3
- package/docs/catalog/editing-a-product-at-a-scope.md +151 -0
- package/docs/catalog/gallery-and-labels.md +61 -60
- package/docs/catalog/packaging-units.md +43 -34
- package/docs/catalog/per-channel-per-language-overrides.md +83 -410
- package/docs/catalog/product-content.md +184 -0
- package/docs/catalog/product-links.md +2 -2
- package/docs/catalog/url-keys-and-redirects.md +79 -79
- package/docs/catalog.md +113 -31
- package/i18n/en.json +317 -274
- package/i18n/pl.json +319 -276
- package/package.json +13 -12
- package/dist/admin/components/AttachmentScopesDialog.d.ts +0 -22
- package/dist/admin/components/AttachmentScopesDialog.d.ts.map +0 -1
- package/dist/admin/components/AttachmentScopesDialog.js +0 -70
- package/dist/admin/components/AttachmentScopesDialog.js.map +0 -1
- package/dist/admin/components/PackagingUnitsEditor.d.ts.map +0 -1
- package/dist/admin/components/PackagingUnitsEditor.js.map +0 -1
- package/dist/admin/components/ProductAttachmentsSection.d.ts.map +0 -1
- package/dist/admin/components/ProductAttachmentsSection.js.map +0 -1
- package/dist/admin/components/ProductAttributesTab.d.ts.map +0 -1
- package/dist/admin/components/ProductAttributesTab.js.map +0 -1
- package/dist/admin/components/ProductGallerySection.d.ts.map +0 -1
- package/dist/admin/components/ProductGallerySection.js.map +0 -1
- package/dist/admin/components/ProductInventoryTab.d.ts.map +0 -1
- package/dist/admin/components/ProductInventoryTab.js.map +0 -1
- package/dist/admin/components/ProductOrderRulesCard.d.ts.map +0 -1
- package/dist/admin/components/ProductOrderRulesCard.js.map +0 -1
- package/dist/admin/components/ProductScopeControls.d.ts +0 -31
- package/dist/admin/components/ProductScopeControls.d.ts.map +0 -1
- package/dist/admin/components/ProductScopeControls.js +0 -243
- package/dist/admin/components/ProductScopeControls.js.map +0 -1
- package/dist/admin/components/ProductScopeEditor.d.ts +0 -88
- package/dist/admin/components/ProductScopeEditor.d.ts.map +0 -1
- package/dist/admin/components/ProductScopeEditor.js +0 -396
- package/dist/admin/components/ProductScopeEditor.js.map +0 -1
- package/dist/admin/components/ProductScopeOverview.d.ts.map +0 -1
- package/dist/admin/components/ProductScopeOverview.js.map +0 -1
- package/dist/admin/components/ProductStatusPills.d.ts.map +0 -1
- package/dist/admin/components/ProductStatusPills.js.map +0 -1
- package/dist/admin/components/ProductUrlKeysPanel.d.ts +0 -17
- package/dist/admin/components/ProductUrlKeysPanel.d.ts.map +0 -1
- package/dist/admin/components/ProductUrlKeysPanel.js +0 -215
- package/dist/admin/components/ProductUrlKeysPanel.js.map +0 -1
- package/dist/admin/components/ProductsBulkEditDialog.d.ts.map +0 -1
- package/dist/admin/components/ProductsBulkEditDialog.js.map +0 -1
- package/dist/admin/components/ScopedDialogParts.d.ts +0 -23
- package/dist/admin/components/ScopedDialogParts.d.ts.map +0 -1
- package/dist/admin/components/ScopedDialogParts.js +0 -16
- package/dist/admin/components/ScopedDialogParts.js.map +0 -1
- package/dist/admin/index.d.ts.map +0 -1
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/lib/attribute-scope.d.ts.map +0 -1
- package/dist/admin/lib/attribute-scope.js.map +0 -1
- package/dist/admin/lib/bulk-operation-log-text.d.ts.map +0 -1
- package/dist/admin/lib/bulk-operation-log-text.js.map +0 -1
- package/dist/admin/lib/media-scopes.d.ts +0 -41
- package/dist/admin/lib/media-scopes.d.ts.map +0 -1
- package/dist/admin/lib/media-scopes.js +0 -66
- package/dist/admin/lib/media-scopes.js.map +0 -1
- package/dist/admin/lib/product-labels.d.ts.map +0 -1
- package/dist/admin/lib/product-labels.js.map +0 -1
- package/dist/admin/lib/product-scope-drafts.d.ts +0 -77
- package/dist/admin/lib/product-scope-drafts.d.ts.map +0 -1
- package/dist/admin/lib/product-scope-drafts.js +0 -133
- package/dist/admin/lib/product-scope-drafts.js.map +0 -1
- package/dist/admin/lib/product-scopes-api.d.ts.map +0 -1
- package/dist/admin/lib/product-scopes-api.js.map +0 -1
- package/dist/admin/lib/product-url-keys-api.d.ts.map +0 -1
- package/dist/admin/lib/product-url-keys-api.js.map +0 -1
- package/dist/admin/lib/resolve-product-selection.d.ts.map +0 -1
- package/dist/admin/lib/resolve-product-selection.js.map +0 -1
- package/dist/admin/lib/scope-overview.d.ts.map +0 -1
- package/dist/admin/lib/scope-overview.js.map +0 -1
- package/dist/admin/pages/AttachmentTypesPage.d.ts.map +0 -1
- package/dist/admin/pages/AttachmentTypesPage.js.map +0 -1
- package/dist/admin/pages/AttributeSetsPage.d.ts.map +0 -1
- package/dist/admin/pages/AttributeSetsPage.js.map +0 -1
- package/dist/admin/pages/AttributesManager.d.ts.map +0 -1
- package/dist/admin/pages/AttributesManager.js.map +0 -1
- package/dist/admin/pages/BulkOperationDetailPage.d.ts.map +0 -1
- package/dist/admin/pages/BulkOperationDetailPage.js.map +0 -1
- package/dist/admin/pages/BulkOperationsPage.d.ts.map +0 -1
- package/dist/admin/pages/BulkOperationsPage.js.map +0 -1
- package/dist/admin/pages/CategoriesTree.d.ts.map +0 -1
- package/dist/admin/pages/CategoriesTree.js.map +0 -1
- package/dist/admin/pages/CategoryContentPage.d.ts.map +0 -1
- package/dist/admin/pages/CategoryContentPage.js.map +0 -1
- package/dist/admin/pages/ProductEditor.d.ts.map +0 -1
- package/dist/admin/pages/ProductEditor.js.map +0 -1
- package/dist/admin/pages/ProductsList.d.ts.map +0 -1
- package/dist/admin/pages/ProductsList.js.map +0 -1
- package/dist/backend/admin-search-provider.d.ts.map +0 -1
- package/dist/backend/admin-search-provider.js.map +0 -1
- package/dist/backend/commands/attribute-commands.d.ts.map +0 -1
- package/dist/backend/commands/attribute-commands.js.map +0 -1
- package/dist/backend/demo/reset.d.ts.map +0 -1
- package/dist/backend/demo/reset.js.map +0 -1
- package/dist/backend/demo/rows.d.ts.map +0 -1
- package/dist/backend/demo/rows.js.map +0 -1
- package/dist/backend/demo/seed.d.ts.map +0 -1
- package/dist/backend/demo/seed.js.map +0 -1
- package/dist/backend/entities/attachment-type.entity.d.ts.map +0 -1
- package/dist/backend/entities/attachment-type.entity.js.map +0 -1
- package/dist/backend/entities/attribute-set-attribute.entity.d.ts.map +0 -1
- package/dist/backend/entities/attribute-set-attribute.entity.js.map +0 -1
- package/dist/backend/entities/attribute-set.entity.d.ts.map +0 -1
- package/dist/backend/entities/attribute-set.entity.js.map +0 -1
- package/dist/backend/entities/bulk-operation.entity.d.ts.map +0 -1
- package/dist/backend/entities/bulk-operation.entity.js.map +0 -1
- package/dist/backend/entities/bundle-slot-option.entity.d.ts.map +0 -1
- package/dist/backend/entities/bundle-slot-option.entity.js.map +0 -1
- package/dist/backend/entities/bundle-slot.entity.d.ts.map +0 -1
- package/dist/backend/entities/bundle-slot.entity.js.map +0 -1
- package/dist/backend/entities/category.entity.d.ts.map +0 -1
- package/dist/backend/entities/category.entity.js.map +0 -1
- package/dist/backend/entities/gallery-item-channel-hidden.entity.d.ts +0 -14
- package/dist/backend/entities/gallery-item-channel-hidden.entity.d.ts.map +0 -1
- package/dist/backend/entities/gallery-item-channel-hidden.entity.js +0 -42
- package/dist/backend/entities/gallery-item-channel-hidden.entity.js.map +0 -1
- package/dist/backend/entities/gallery-item-channel-label.entity.d.ts +0 -18
- package/dist/backend/entities/gallery-item-channel-label.entity.d.ts.map +0 -1
- package/dist/backend/entities/gallery-item-channel-label.entity.js +0 -49
- package/dist/backend/entities/gallery-item-channel-label.entity.js.map +0 -1
- package/dist/backend/entities/gallery-item-label.entity.d.ts.map +0 -1
- package/dist/backend/entities/gallery-item-label.entity.js.map +0 -1
- package/dist/backend/entities/gallery-item.entity.d.ts.map +0 -1
- package/dist/backend/entities/gallery-item.entity.js.map +0 -1
- package/dist/backend/entities/grouped-item.entity.d.ts.map +0 -1
- package/dist/backend/entities/grouped-item.entity.js.map +0 -1
- package/dist/backend/entities/product-attachment-channel-hidden.entity.d.ts +0 -13
- package/dist/backend/entities/product-attachment-channel-hidden.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-attachment-channel-hidden.entity.js +0 -41
- package/dist/backend/entities/product-attachment-channel-hidden.entity.js.map +0 -1
- package/dist/backend/entities/product-attachment.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-attachment.entity.js.map +0 -1
- package/dist/backend/entities/product-attribute.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-attribute.entity.js.map +0 -1
- package/dist/backend/entities/product-channel-language-scope.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-channel-language-scope.entity.js.map +0 -1
- package/dist/backend/entities/product-channel-scope.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-channel-scope.entity.js.map +0 -1
- package/dist/backend/entities/product-editor-preference.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-editor-preference.entity.js.map +0 -1
- package/dist/backend/entities/product-link.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-link.entity.js.map +0 -1
- package/dist/backend/entities/product-list-saved-view.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-list-saved-view.entity.js.map +0 -1
- package/dist/backend/entities/product-packaging-unit.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-packaging-unit.entity.js.map +0 -1
- package/dist/backend/entities/product-url-key.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-url-key.entity.js.map +0 -1
- package/dist/backend/entities/product-url-redirect.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-url-redirect.entity.js.map +0 -1
- package/dist/backend/entities/product-value-override.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-value-override.entity.js.map +0 -1
- package/dist/backend/entities/product-variant.entity.d.ts.map +0 -1
- package/dist/backend/entities/product-variant.entity.js.map +0 -1
- package/dist/backend/entities/product.entity.d.ts.map +0 -1
- package/dist/backend/entities/product.entity.js.map +0 -1
- package/dist/backend/index.d.ts.map +0 -1
- package/dist/backend/index.js.map +0 -1
- package/dist/backend/plugin.d.ts.map +0 -1
- package/dist/backend/plugin.js.map +0 -1
- package/dist/backend/prompt-tools.d.ts.map +0 -1
- package/dist/backend/prompt-tools.js.map +0 -1
- package/dist/backend/routes.admin.d.ts.map +0 -1
- package/dist/backend/routes.admin.js.map +0 -1
- package/dist/backend/routes.admin.url-keys.d.ts.map +0 -1
- package/dist/backend/routes.admin.url-keys.js.map +0 -1
- package/dist/backend/routes.api-key.d.ts.map +0 -1
- package/dist/backend/routes.api-key.js.map +0 -1
- package/dist/backend/routes.external.d.ts.map +0 -1
- package/dist/backend/routes.external.js.map +0 -1
- package/dist/backend/routes.public.d.ts.map +0 -1
- package/dist/backend/routes.public.js.map +0 -1
- package/dist/backend/routes.public.url-keys.d.ts.map +0 -1
- package/dist/backend/routes.public.url-keys.js.map +0 -1
- package/dist/backend/saved-view-actor.d.ts.map +0 -1
- package/dist/backend/saved-view-actor.js.map +0 -1
- package/dist/backend/services/asset-references.d.ts.map +0 -1
- package/dist/backend/services/asset-references.js.map +0 -1
- package/dist/backend/services/attachment-packaging-scopes.d.ts.map +0 -1
- package/dist/backend/services/attachment-packaging-scopes.js.map +0 -1
- package/dist/backend/services/attachment.service.d.ts.map +0 -1
- package/dist/backend/services/attachment.service.js.map +0 -1
- package/dist/backend/services/attribute-option-validator.d.ts.map +0 -1
- package/dist/backend/services/attribute-option-validator.js.map +0 -1
- package/dist/backend/services/attribute-scope-preview.d.ts.map +0 -1
- package/dist/backend/services/attribute-scope-preview.js.map +0 -1
- package/dist/backend/services/attribute-set-validations.d.ts.map +0 -1
- package/dist/backend/services/attribute-set-validations.js.map +0 -1
- package/dist/backend/services/attribute-set.service.d.ts.map +0 -1
- package/dist/backend/services/attribute-set.service.js.map +0 -1
- package/dist/backend/services/attribute-type-mapping.d.ts.map +0 -1
- package/dist/backend/services/attribute-type-mapping.js.map +0 -1
- package/dist/backend/services/attribute-value-key.service.d.ts.map +0 -1
- package/dist/backend/services/attribute-value-key.service.js.map +0 -1
- package/dist/backend/services/audit-references.d.ts.map +0 -1
- package/dist/backend/services/audit-references.js.map +0 -1
- package/dist/backend/services/bulk-operation-queue.d.ts.map +0 -1
- package/dist/backend/services/bulk-operation-queue.js.map +0 -1
- package/dist/backend/services/bulk-operation.service.d.ts.map +0 -1
- package/dist/backend/services/bulk-operation.service.js.map +0 -1
- package/dist/backend/services/bundle.service.d.ts.map +0 -1
- package/dist/backend/services/bundle.service.js.map +0 -1
- package/dist/backend/services/catalog-admin-search.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-admin-search.service.js.map +0 -1
- package/dist/backend/services/catalog-admin.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-admin.service.js.map +0 -1
- package/dist/backend/services/catalog-attribute-read.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-attribute-read.service.js.map +0 -1
- package/dist/backend/services/catalog-bulk-import.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-bulk-import.service.js.map +0 -1
- package/dist/backend/services/catalog-bulk-update.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-bulk-update.service.js.map +0 -1
- package/dist/backend/services/catalog-category-read.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-category-read.service.js.map +0 -1
- package/dist/backend/services/catalog-org-price-decorator.d.ts.map +0 -1
- package/dist/backend/services/catalog-org-price-decorator.js.map +0 -1
- package/dist/backend/services/catalog-product-filter.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-product-filter.service.js.map +0 -1
- package/dist/backend/services/catalog-product-read.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-product-read.service.js.map +0 -1
- package/dist/backend/services/catalog-query.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-query.service.js.map +0 -1
- package/dist/backend/services/catalog-quick-search.service.d.ts.map +0 -1
- package/dist/backend/services/catalog-quick-search.service.js.map +0 -1
- package/dist/backend/services/catalog-write-ports.d.ts.map +0 -1
- package/dist/backend/services/catalog-write-ports.js.map +0 -1
- package/dist/backend/services/category-admin.service.d.ts.map +0 -1
- package/dist/backend/services/category-admin.service.js.map +0 -1
- package/dist/backend/services/channel-url-facts.d.ts.map +0 -1
- package/dist/backend/services/channel-url-facts.js.map +0 -1
- package/dist/backend/services/effective-value.sql.d.ts.map +0 -1
- package/dist/backend/services/effective-value.sql.js.map +0 -1
- package/dist/backend/services/gallery-scopes.d.ts.map +0 -1
- package/dist/backend/services/gallery-scopes.js.map +0 -1
- package/dist/backend/services/gallery.service.d.ts.map +0 -1
- package/dist/backend/services/gallery.service.js.map +0 -1
- package/dist/backend/services/grouped.service.d.ts.map +0 -1
- package/dist/backend/services/grouped.service.js.map +0 -1
- package/dist/backend/services/label-resolver.d.ts.map +0 -1
- package/dist/backend/services/label-resolver.js.map +0 -1
- package/dist/backend/services/linkable-asset.d.ts.map +0 -1
- package/dist/backend/services/linkable-asset.js.map +0 -1
- package/dist/backend/services/packaging-unit.service.d.ts.map +0 -1
- package/dist/backend/services/packaging-unit.service.js.map +0 -1
- package/dist/backend/services/primary-asset-url.d.ts.map +0 -1
- package/dist/backend/services/primary-asset-url.js.map +0 -1
- package/dist/backend/services/product-availability.service.d.ts.map +0 -1
- package/dist/backend/services/product-availability.service.js.map +0 -1
- package/dist/backend/services/product-availability.sql.d.ts.map +0 -1
- package/dist/backend/services/product-availability.sql.js.map +0 -1
- package/dist/backend/services/product-editor-preferences.service.d.ts.map +0 -1
- package/dist/backend/services/product-editor-preferences.service.js.map +0 -1
- package/dist/backend/services/product-link.service.d.ts.map +0 -1
- package/dist/backend/services/product-link.service.js.map +0 -1
- package/dist/backend/services/product-list-view-service.d.ts.map +0 -1
- package/dist/backend/services/product-list-view-service.js.map +0 -1
- package/dist/backend/services/product-overrides.service.d.ts +0 -84
- package/dist/backend/services/product-overrides.service.d.ts.map +0 -1
- package/dist/backend/services/product-overrides.service.js +0 -211
- package/dist/backend/services/product-overrides.service.js.map +0 -1
- package/dist/backend/services/product-page-revalidation.d.ts.map +0 -1
- package/dist/backend/services/product-page-revalidation.js.map +0 -1
- package/dist/backend/services/product-scope-context.service.d.ts +0 -36
- package/dist/backend/services/product-scope-context.service.d.ts.map +0 -1
- package/dist/backend/services/product-scope-context.service.js +0 -107
- package/dist/backend/services/product-scope-context.service.js.map +0 -1
- package/dist/backend/services/product-scopes.service.d.ts.map +0 -1
- package/dist/backend/services/product-scopes.service.js.map +0 -1
- package/dist/backend/services/product-summary-text.d.ts.map +0 -1
- package/dist/backend/services/product-summary-text.js.map +0 -1
- package/dist/backend/services/product-type-validations.d.ts.map +0 -1
- package/dist/backend/services/product-type-validations.js.map +0 -1
- package/dist/backend/services/product-value-resolver.service.d.ts.map +0 -1
- package/dist/backend/services/product-value-resolver.service.js.map +0 -1
- package/dist/backend/services/publication-window-sweep.d.ts.map +0 -1
- package/dist/backend/services/publication-window-sweep.js.map +0 -1
- package/dist/backend/services/scope-completeness.d.ts.map +0 -1
- package/dist/backend/services/scope-completeness.js.map +0 -1
- package/dist/backend/services/scope-overview.service.d.ts.map +0 -1
- package/dist/backend/services/scope-overview.service.js.map +0 -1
- package/dist/backend/services/sql-id-arrays.d.ts.map +0 -1
- package/dist/backend/services/sql-id-arrays.js.map +0 -1
- package/dist/backend/services/storefront-value-overrides.d.ts.map +0 -1
- package/dist/backend/services/storefront-value-overrides.js.map +0 -1
- package/dist/backend/services/system-attribute-scopes.d.ts.map +0 -1
- package/dist/backend/services/system-attribute-scopes.js.map +0 -1
- package/dist/backend/services/url-key-resolution.service.d.ts.map +0 -1
- package/dist/backend/services/url-key-resolution.service.js.map +0 -1
- package/dist/backend/services/url-key.service.d.ts.map +0 -1
- package/dist/backend/services/url-key.service.js.map +0 -1
- package/dist/backend/services/viewer-organization.d.ts.map +0 -1
- package/dist/backend/services/viewer-organization.js.map +0 -1
- package/dist/manifest.d.ts.map +0 -1
- package/dist/manifest.js.map +0 -1
- package/dist/migrations/20260429T064146_catalog_attribute_sets_init.d.ts.map +0 -1
- package/dist/migrations/20260429T064146_catalog_attribute_sets_init.js.map +0 -1
- package/dist/migrations/20260429T070004_catalog_product_attribute_extensions.d.ts.map +0 -1
- package/dist/migrations/20260429T070004_catalog_product_attribute_extensions.js.map +0 -1
- package/dist/migrations/20260429T102322_catalog_product_type_and_virtual_fields.d.ts.map +0 -1
- package/dist/migrations/20260429T102322_catalog_product_type_and_virtual_fields.js.map +0 -1
- package/dist/migrations/20260429T111839_catalog_gallery_items_and_labels.d.ts.map +0 -1
- package/dist/migrations/20260429T111839_catalog_gallery_items_and_labels.js.map +0 -1
- package/dist/migrations/20260429T112543_catalog_product_attachments.d.ts.map +0 -1
- package/dist/migrations/20260429T112543_catalog_product_attachments.js.map +0 -1
- package/dist/migrations/20260429T123726_catalog_product_links.d.ts.map +0 -1
- package/dist/migrations/20260429T123726_catalog_product_links.js.map +0 -1
- package/dist/migrations/20260429T130803_catalog_grouped_and_bundle.d.ts.map +0 -1
- package/dist/migrations/20260429T130803_catalog_grouped_and_bundle.js.map +0 -1
- package/dist/migrations/20260501T185835_catalog_product_attribute_is_comparable.d.ts.map +0 -1
- package/dist/migrations/20260501T185835_catalog_product_attribute_is_comparable.js.map +0 -1
- package/dist/migrations/20260505T060113_catalog_attribute_options_and_flags.d.ts.map +0 -1
- package/dist/migrations/20260505T060113_catalog_attribute_options_and_flags.js.map +0 -1
- package/dist/migrations/20260515T082629_catalog_attribute_mass_editable.d.ts.map +0 -1
- package/dist/migrations/20260515T082629_catalog_attribute_mass_editable.js.map +0 -1
- package/dist/migrations/20260526T124736_catalog_product_status_inactive.d.ts.map +0 -1
- package/dist/migrations/20260526T124736_catalog_product_status_inactive.js.map +0 -1
- package/dist/migrations/20260611T140346_catalog_product_value_overrides_init.d.ts.map +0 -1
- package/dist/migrations/20260611T140346_catalog_product_value_overrides_init.js.map +0 -1
- package/dist/migrations/20260611T140400_catalog_attribute_quick_searchable.d.ts.map +0 -1
- package/dist/migrations/20260611T140400_catalog_attribute_quick_searchable.js.map +0 -1
- package/dist/migrations/20260611T140407_catalog_bulk_operations.d.ts.map +0 -1
- package/dist/migrations/20260611T140407_catalog_bulk_operations.js.map +0 -1
- package/dist/migrations/20260611T140408_catalog_bulk_operation_logs.d.ts.map +0 -1
- package/dist/migrations/20260611T140408_catalog_bulk_operation_logs.js.map +0 -1
- package/dist/migrations/20260611T140412_catalog_product_packaging_units.d.ts.map +0 -1
- package/dist/migrations/20260611T140412_catalog_product_packaging_units.js.map +0 -1
- package/dist/migrations/20260718T060659_catalog_bulk_operation_revert_state.d.ts.map +0 -1
- package/dist/migrations/20260718T060659_catalog_bulk_operation_revert_state.js.map +0 -1
- package/dist/migrations/20260718T200343_catalog_category_custom_field_values.d.ts.map +0 -1
- package/dist/migrations/20260718T200343_catalog_category_custom_field_values.js.map +0 -1
- package/dist/migrations/20260723T230401_catalog_attributes_on_custom_fields.d.ts.map +0 -1
- package/dist/migrations/20260723T230401_catalog_attributes_on_custom_fields.js.map +0 -1
- package/dist/migrations/20260804T152604_catalog_widen_product_sku.d.ts.map +0 -1
- package/dist/migrations/20260804T152604_catalog_widen_product_sku.js.map +0 -1
- package/dist/migrations/20260804T160244_catalog_category_activation.d.ts.map +0 -1
- package/dist/migrations/20260804T160244_catalog_category_activation.js.map +0 -1
- package/dist/migrations/20260912T094557_catalog_sales_channel_products.d.ts.map +0 -1
- package/dist/migrations/20260912T094557_catalog_sales_channel_products.js.map +0 -1
- package/dist/migrations/20260912T094623_catalog_sales_channel_categories.d.ts.map +0 -1
- package/dist/migrations/20260912T094623_catalog_sales_channel_categories.js.map +0 -1
- package/dist/migrations/20260925T125527_catalog_inventory_columns.d.ts.map +0 -1
- package/dist/migrations/20260925T125527_catalog_inventory_columns.js.map +0 -1
- package/dist/migrations/20261008T080839_catalog_product_attribute_is_price_rule.d.ts.map +0 -1
- package/dist/migrations/20261008T080839_catalog_product_attribute_is_price_rule.js.map +0 -1
- package/dist/migrations/20261008T092714_catalog_category_content.d.ts.map +0 -1
- package/dist/migrations/20261008T092714_catalog_category_content.js.map +0 -1
- package/dist/migrations/20261014T170531_catalog_product_list_saved_views.d.ts.map +0 -1
- package/dist/migrations/20261014T170531_catalog_product_list_saved_views.js.map +0 -1
- package/dist/migrations/20261016T082008_catalog_order_rules.d.ts.map +0 -1
- package/dist/migrations/20261016T082008_catalog_order_rules.js.map +0 -1
- package/dist/migrations/20261022T035133_catalog_product_scopes.d.ts.map +0 -1
- package/dist/migrations/20261022T035133_catalog_product_scopes.js.map +0 -1
- package/dist/migrations/20261022T054223_catalog_product_url_keys.d.ts.map +0 -1
- package/dist/migrations/20261022T054223_catalog_product_url_keys.js.map +0 -1
- package/dist/migrations/20261022T111811_catalog_price_fields_removed.d.ts.map +0 -1
- package/dist/migrations/20261022T111811_catalog_price_fields_removed.js.map +0 -1
- package/dist/migrations/20261022T182523_catalog_admin_name_keys.d.ts.map +0 -1
- package/dist/migrations/20261022T182523_catalog_admin_name_keys.js.map +0 -1
- package/dist/migrations/20261025T222634_catalog_product_status_drop_draft.d.ts.map +0 -1
- package/dist/migrations/20261025T222634_catalog_product_status_drop_draft.js.map +0 -1
- package/dist/migrations/20261026T033453_catalog_product_media_scopes.d.ts.map +0 -1
- package/dist/migrations/20261026T033453_catalog_product_media_scopes.js.map +0 -1
- package/dist/migrations/20261026T084533_catalog_attachment_packaging_translations.d.ts.map +0 -1
- package/dist/migrations/20261026T084533_catalog_attachment_packaging_translations.js.map +0 -1
- package/dist/migrations/index.d.ts.map +0 -1
- package/dist/migrations/index.js.map +0 -1
- package/dist/ports/index.d.ts.map +0 -1
- package/dist/ports/index.js.map +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* `categories.main_image_asset_id`, its foreign key to `assets` and its index
|
|
4
|
+
* (feature 013 — a catalogue category's main image from the assets library),
|
|
5
|
+
* created by `catalog`.
|
|
6
|
+
*
|
|
7
|
+
* `Category.mainImageAssetId` maps the column. Until issue #611 only
|
|
8
|
+
* `assets_library`'s frozen `Migration20260505T102206AssetsLibraryInit`
|
|
9
|
+
* created the three, so another module's migration decided this module's
|
|
10
|
+
* schema — the write the migration table-ownership rule (feature 097, R2)
|
|
11
|
+
* refuses. Declaring `catalog` in `assets_library` was no remedy: this module
|
|
12
|
+
* declares `assets_library`, so that closes a cycle. The frozen init keeps
|
|
13
|
+
* its class name and lost only these statements, the shape D-226 gave the
|
|
14
|
+
* `cms_pages` index the same body carried
|
|
15
|
+
* (`Migration20260912T125709CmsPageBodyAssetRefIndex`) and feature 134 gave
|
|
16
|
+
* the stock columns `inventory` carried
|
|
17
|
+
* (`Migration20260925T125527CatalogInventoryColumns`).
|
|
18
|
+
*
|
|
19
|
+
* The closure holds in the direction the SQL runs: this module declares
|
|
20
|
+
* `assets_library`, so `assets` exists by the time this runs.
|
|
21
|
+
*
|
|
22
|
+
* **`if not exists` and a `pg_constraint` probe**, because every database
|
|
23
|
+
* that ran the frozen init already has all three, and there this must be a
|
|
24
|
+
* no-op. PostgreSQL has no `add constraint if not exists`; the probe form
|
|
25
|
+
* follows `20260925T125527`. Types, names and `on delete set null` are the
|
|
26
|
+
* frozen statements verbatim, so the two paths reach one schema.
|
|
27
|
+
*
|
|
28
|
+
* **`down()` is deliberately empty**, for `20260925T125527`'s reason:
|
|
29
|
+
* `categories` is created by the platform's `core_foundation_init`, which a
|
|
30
|
+
* hard uninstall of this module never reverts, so the rows outlive `catalog`
|
|
31
|
+
* and dropping the column would silently lose every category's main image.
|
|
32
|
+
*/
|
|
33
|
+
export class Migration20261114T000706CatalogCategoryMainImage extends Migration {
|
|
34
|
+
async up() {
|
|
35
|
+
this.addSql('alter table "categories" add column if not exists "main_image_asset_id" uuid null;');
|
|
36
|
+
this.addSql(`
|
|
37
|
+
do $$
|
|
38
|
+
begin
|
|
39
|
+
if not exists (
|
|
40
|
+
select 1 from pg_constraint
|
|
41
|
+
where "conname" = 'categories_main_image_fk'
|
|
42
|
+
and "conrelid" = '"categories"'::regclass
|
|
43
|
+
) then
|
|
44
|
+
alter table "categories"
|
|
45
|
+
add constraint "categories_main_image_fk" foreign key ("main_image_asset_id")
|
|
46
|
+
references "assets" ("id") on delete set null;
|
|
47
|
+
end if;
|
|
48
|
+
end $$;
|
|
49
|
+
`);
|
|
50
|
+
this.addSql('create index if not exists "categories_main_image_asset_id_index" on "categories" ("main_image_asset_id");');
|
|
51
|
+
}
|
|
52
|
+
async down() {
|
|
53
|
+
// Intentionally empty — see the class comment.
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=20261114T000706_catalog_category_main_image.js.map
|
|
@@ -61,6 +61,14 @@ import { Migration20261022T182523CatalogAdminNameKeys } from './20261022T182523_
|
|
|
61
61
|
import { Migration20261025T222634CatalogProductStatusDropDraft } from './20261025T222634_catalog_product_status_drop_draft.js';
|
|
62
62
|
import { Migration20261026T033453CatalogProductMediaScopes } from './20261026T033453_catalog_product_media_scopes.js';
|
|
63
63
|
import { Migration20261026T084533CatalogAttachmentPackagingTranslations } from './20261026T084533_catalog_attachment_packaging_translations.js';
|
|
64
|
+
import { Migration20261030T113855CatalogScopeModelTexts } from './20261030T113855_catalog_scope_model_texts.js';
|
|
65
|
+
import { Migration20261030T113859CatalogScopeModelOrderRules } from './20261030T113859_catalog_scope_model_order_rules.js';
|
|
66
|
+
import { Migration20261030T113904CatalogScopeModelUrlKeys } from './20261030T113904_catalog_scope_model_url_keys.js';
|
|
67
|
+
import { Migration20261030T113908CatalogScopeModelMedia } from './20261030T113908_catalog_scope_model_media.js';
|
|
68
|
+
import { Migration20261104T121504CatalogProductContentValues } from './20261104T121504_catalog_product_content_values.js';
|
|
69
|
+
import { Migration20261107T093126CatalogSkuUniqueAmongLive } from './20261107T093126_catalog_sku_unique_among_live.js';
|
|
70
|
+
import { Migration20261107T120008CatalogProductCreatedAtMilliseconds } from './20261107T120008_catalog_product_created_at_milliseconds.js';
|
|
71
|
+
import { Migration20261114T000706CatalogCategoryMainImage } from './20261114T000706_catalog_category_main_image.js';
|
|
64
72
|
export declare const migrations: (typeof Migration20260429T070004CatalogProductAttributeExtensions)[];
|
|
65
|
-
export { Migration20260429T064146CatalogAttributeSetsInit, Migration20260429T070004CatalogProductAttributeExtensions, Migration20260429T102322CatalogProductTypeAndVirtualFields, Migration20260429T111839CatalogGalleryItemsAndLabels, Migration20260429T112543CatalogProductAttachments, Migration20260429T123726CatalogProductLinks, Migration20260429T130803CatalogGroupedAndBundle, Migration20260501T185835CatalogProductAttributeIsComparable, Migration20260505T060113CatalogAttributeOptionsAndFlags, Migration20260515T082629CatalogAttributeMassEditable, Migration20260526T124736CatalogProductStatusInactive, Migration20260611T140346CatalogProductValueOverridesInit, Migration20260611T140400CatalogAttributeQuickSearchable, Migration20260611T140407CatalogBulkOperations, Migration20260611T140408CatalogBulkOperationLogs, Migration20260611T140412CatalogProductPackagingUnits, Migration20260718T060659CatalogBulkOperationRevertState, Migration20260718T200343CatalogCategoryCustomFieldValues, Migration20260723T230401CatalogAttributesOnCustomFields, Migration20260804T152604CatalogWidenProductSku, Migration20260804T160244CatalogCategoryActivation, Migration20260912T094557CatalogSalesChannelProducts, Migration20260912T094623CatalogSalesChannelCategories, Migration20260925T125527CatalogInventoryColumns, Migration20261008T080839CatalogProductAttributeIsPriceRule, Migration20261008T092714CatalogCategoryContent, Migration20261014T170531CatalogProductListSavedViews, Migration20261016T082008CatalogOrderRules, Migration20261022T035133CatalogProductScopes, Migration20261022T054223CatalogProductUrlKeys, Migration20261022T111811CatalogPriceFieldsRemoved, Migration20261022T182523CatalogAdminNameKeys, Migration20261025T222634CatalogProductStatusDropDraft, Migration20261026T033453CatalogProductMediaScopes, Migration20261026T084533CatalogAttachmentPackagingTranslations, };
|
|
73
|
+
export { Migration20260429T064146CatalogAttributeSetsInit, Migration20260429T070004CatalogProductAttributeExtensions, Migration20260429T102322CatalogProductTypeAndVirtualFields, Migration20260429T111839CatalogGalleryItemsAndLabels, Migration20260429T112543CatalogProductAttachments, Migration20260429T123726CatalogProductLinks, Migration20260429T130803CatalogGroupedAndBundle, Migration20260501T185835CatalogProductAttributeIsComparable, Migration20260505T060113CatalogAttributeOptionsAndFlags, Migration20260515T082629CatalogAttributeMassEditable, Migration20260526T124736CatalogProductStatusInactive, Migration20260611T140346CatalogProductValueOverridesInit, Migration20260611T140400CatalogAttributeQuickSearchable, Migration20260611T140407CatalogBulkOperations, Migration20260611T140408CatalogBulkOperationLogs, Migration20260611T140412CatalogProductPackagingUnits, Migration20260718T060659CatalogBulkOperationRevertState, Migration20260718T200343CatalogCategoryCustomFieldValues, Migration20260723T230401CatalogAttributesOnCustomFields, Migration20260804T152604CatalogWidenProductSku, Migration20260804T160244CatalogCategoryActivation, Migration20260912T094557CatalogSalesChannelProducts, Migration20260912T094623CatalogSalesChannelCategories, Migration20260925T125527CatalogInventoryColumns, Migration20261008T080839CatalogProductAttributeIsPriceRule, Migration20261008T092714CatalogCategoryContent, Migration20261014T170531CatalogProductListSavedViews, Migration20261016T082008CatalogOrderRules, Migration20261022T035133CatalogProductScopes, Migration20261022T054223CatalogProductUrlKeys, Migration20261022T111811CatalogPriceFieldsRemoved, Migration20261022T182523CatalogAdminNameKeys, Migration20261025T222634CatalogProductStatusDropDraft, Migration20261026T033453CatalogProductMediaScopes, Migration20261026T084533CatalogAttachmentPackagingTranslations, Migration20261030T113855CatalogScopeModelTexts, Migration20261030T113859CatalogScopeModelOrderRules, Migration20261030T113904CatalogScopeModelUrlKeys, Migration20261030T113908CatalogScopeModelMedia, Migration20261104T121504CatalogProductContentValues, Migration20261107T093126CatalogSkuUniqueAmongLive, Migration20261107T120008CatalogProductCreatedAtMilliseconds, Migration20261114T000706CatalogCategoryMainImage, };
|
|
66
74
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/migrations/index.js
CHANGED
|
@@ -61,6 +61,14 @@ import { Migration20261022T182523CatalogAdminNameKeys } from './20261022T182523_
|
|
|
61
61
|
import { Migration20261025T222634CatalogProductStatusDropDraft } from './20261025T222634_catalog_product_status_drop_draft.js';
|
|
62
62
|
import { Migration20261026T033453CatalogProductMediaScopes } from './20261026T033453_catalog_product_media_scopes.js';
|
|
63
63
|
import { Migration20261026T084533CatalogAttachmentPackagingTranslations } from './20261026T084533_catalog_attachment_packaging_translations.js';
|
|
64
|
+
import { Migration20261030T113855CatalogScopeModelTexts } from './20261030T113855_catalog_scope_model_texts.js';
|
|
65
|
+
import { Migration20261030T113859CatalogScopeModelOrderRules } from './20261030T113859_catalog_scope_model_order_rules.js';
|
|
66
|
+
import { Migration20261030T113904CatalogScopeModelUrlKeys } from './20261030T113904_catalog_scope_model_url_keys.js';
|
|
67
|
+
import { Migration20261030T113908CatalogScopeModelMedia } from './20261030T113908_catalog_scope_model_media.js';
|
|
68
|
+
import { Migration20261104T121504CatalogProductContentValues } from './20261104T121504_catalog_product_content_values.js';
|
|
69
|
+
import { Migration20261107T093126CatalogSkuUniqueAmongLive } from './20261107T093126_catalog_sku_unique_among_live.js';
|
|
70
|
+
import { Migration20261107T120008CatalogProductCreatedAtMilliseconds } from './20261107T120008_catalog_product_created_at_milliseconds.js';
|
|
71
|
+
import { Migration20261114T000706CatalogCategoryMainImage } from './20261114T000706_catalog_category_main_image.js';
|
|
64
72
|
export const migrations = [
|
|
65
73
|
Migration20260429T064146CatalogAttributeSetsInit,
|
|
66
74
|
Migration20260429T070004CatalogProductAttributeExtensions,
|
|
@@ -97,6 +105,14 @@ export const migrations = [
|
|
|
97
105
|
Migration20261025T222634CatalogProductStatusDropDraft,
|
|
98
106
|
Migration20261026T033453CatalogProductMediaScopes,
|
|
99
107
|
Migration20261026T084533CatalogAttachmentPackagingTranslations,
|
|
108
|
+
Migration20261030T113855CatalogScopeModelTexts,
|
|
109
|
+
Migration20261030T113859CatalogScopeModelOrderRules,
|
|
110
|
+
Migration20261030T113904CatalogScopeModelUrlKeys,
|
|
111
|
+
Migration20261030T113908CatalogScopeModelMedia,
|
|
112
|
+
Migration20261104T121504CatalogProductContentValues,
|
|
113
|
+
Migration20261107T093126CatalogSkuUniqueAmongLive,
|
|
114
|
+
Migration20261107T120008CatalogProductCreatedAtMilliseconds,
|
|
115
|
+
Migration20261114T000706CatalogCategoryMainImage,
|
|
100
116
|
];
|
|
101
|
-
export { Migration20260429T064146CatalogAttributeSetsInit, Migration20260429T070004CatalogProductAttributeExtensions, Migration20260429T102322CatalogProductTypeAndVirtualFields, Migration20260429T111839CatalogGalleryItemsAndLabels, Migration20260429T112543CatalogProductAttachments, Migration20260429T123726CatalogProductLinks, Migration20260429T130803CatalogGroupedAndBundle, Migration20260501T185835CatalogProductAttributeIsComparable, Migration20260505T060113CatalogAttributeOptionsAndFlags, Migration20260515T082629CatalogAttributeMassEditable, Migration20260526T124736CatalogProductStatusInactive, Migration20260611T140346CatalogProductValueOverridesInit, Migration20260611T140400CatalogAttributeQuickSearchable, Migration20260611T140407CatalogBulkOperations, Migration20260611T140408CatalogBulkOperationLogs, Migration20260611T140412CatalogProductPackagingUnits, Migration20260718T060659CatalogBulkOperationRevertState, Migration20260718T200343CatalogCategoryCustomFieldValues, Migration20260723T230401CatalogAttributesOnCustomFields, Migration20260804T152604CatalogWidenProductSku, Migration20260804T160244CatalogCategoryActivation, Migration20260912T094557CatalogSalesChannelProducts, Migration20260912T094623CatalogSalesChannelCategories, Migration20260925T125527CatalogInventoryColumns, Migration20261008T080839CatalogProductAttributeIsPriceRule, Migration20261008T092714CatalogCategoryContent, Migration20261014T170531CatalogProductListSavedViews, Migration20261016T082008CatalogOrderRules, Migration20261022T035133CatalogProductScopes, Migration20261022T054223CatalogProductUrlKeys, Migration20261022T111811CatalogPriceFieldsRemoved, Migration20261022T182523CatalogAdminNameKeys, Migration20261025T222634CatalogProductStatusDropDraft, Migration20261026T033453CatalogProductMediaScopes, Migration20261026T084533CatalogAttachmentPackagingTranslations, };
|
|
117
|
+
export { Migration20260429T064146CatalogAttributeSetsInit, Migration20260429T070004CatalogProductAttributeExtensions, Migration20260429T102322CatalogProductTypeAndVirtualFields, Migration20260429T111839CatalogGalleryItemsAndLabels, Migration20260429T112543CatalogProductAttachments, Migration20260429T123726CatalogProductLinks, Migration20260429T130803CatalogGroupedAndBundle, Migration20260501T185835CatalogProductAttributeIsComparable, Migration20260505T060113CatalogAttributeOptionsAndFlags, Migration20260515T082629CatalogAttributeMassEditable, Migration20260526T124736CatalogProductStatusInactive, Migration20260611T140346CatalogProductValueOverridesInit, Migration20260611T140400CatalogAttributeQuickSearchable, Migration20260611T140407CatalogBulkOperations, Migration20260611T140408CatalogBulkOperationLogs, Migration20260611T140412CatalogProductPackagingUnits, Migration20260718T060659CatalogBulkOperationRevertState, Migration20260718T200343CatalogCategoryCustomFieldValues, Migration20260723T230401CatalogAttributesOnCustomFields, Migration20260804T152604CatalogWidenProductSku, Migration20260804T160244CatalogCategoryActivation, Migration20260912T094557CatalogSalesChannelProducts, Migration20260912T094623CatalogSalesChannelCategories, Migration20260925T125527CatalogInventoryColumns, Migration20261008T080839CatalogProductAttributeIsPriceRule, Migration20261008T092714CatalogCategoryContent, Migration20261014T170531CatalogProductListSavedViews, Migration20261016T082008CatalogOrderRules, Migration20261022T035133CatalogProductScopes, Migration20261022T054223CatalogProductUrlKeys, Migration20261022T111811CatalogPriceFieldsRemoved, Migration20261022T182523CatalogAdminNameKeys, Migration20261025T222634CatalogProductStatusDropDraft, Migration20261026T033453CatalogProductMediaScopes, Migration20261026T084533CatalogAttachmentPackagingTranslations, Migration20261030T113855CatalogScopeModelTexts, Migration20261030T113859CatalogScopeModelOrderRules, Migration20261030T113904CatalogScopeModelUrlKeys, Migration20261030T113908CatalogScopeModelMedia, Migration20261104T121504CatalogProductContentValues, Migration20261107T093126CatalogSkuUniqueAmongLive, Migration20261107T120008CatalogProductCreatedAtMilliseconds, Migration20261114T000706CatalogCategoryMainImage, };
|
|
102
118
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Product
|
|
2
|
+
title: Product attachments
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Product
|
|
5
|
+
# Product attachments
|
|
6
6
|
|
|
7
7
|
Product Attachments are downloadable files (certificates, technical
|
|
8
8
|
specifications, product cards, generic PDFs) attached to a Product.
|
|
@@ -10,7 +10,7 @@ They wrap an underlying `Asset` row, so the same file can be linked to
|
|
|
10
10
|
multiple Products without duplication — the `assets` row survives even
|
|
11
11
|
when an attachment is deleted.
|
|
12
12
|
|
|
13
|
-
## Attachment
|
|
13
|
+
## Attachment types
|
|
14
14
|
|
|
15
15
|
The `attachment_types` dictionary categorizes attachments. Migration
|
|
16
16
|
`20260429T112543_catalog_product_attachments.ts` seeds four standard rows with deterministic UUIDs so seeds and
|
|
@@ -21,7 +21,7 @@ tests can reference them stably:
|
|
|
21
21
|
- `product_card` — Product card / Karta produktu
|
|
22
22
|
- `pdf` — generic PDF
|
|
23
23
|
|
|
24
|
-
Admins can add custom types via the **Attachment
|
|
24
|
+
Admins can add custom types via the **Attachment types** page in the
|
|
25
25
|
admin panel. Deleting a type that any product still references returns
|
|
26
26
|
`409 ATTACHMENT_TYPE_IN_USE`.
|
|
27
27
|
|
|
@@ -34,44 +34,54 @@ admin panel. Deleting a type that any product still references returns
|
|
|
34
34
|
| `PATCH /api/v1/admin/catalog/attachment-types/:id` | admin | Update name / position |
|
|
35
35
|
| `DELETE /api/v1/admin/catalog/attachment-types/:id` | admin | Delete; rejects when in use |
|
|
36
36
|
| `GET /api/v1/admin/catalog/products/:id/attachments` | admin | List attachments on a product |
|
|
37
|
-
| `POST /api/v1/admin/catalog/products/:id/attachments` | admin | Attach an existing Asset
|
|
38
|
-
| `PATCH /api/v1/admin/catalog/products/:id/attachments/:attachmentId` | admin | Update
|
|
37
|
+
| `POST /api/v1/admin/catalog/products/:id/attachments` | admin | Attach an existing Asset with its type and its Global name and description |
|
|
38
|
+
| `PATCH /api/v1/admin/catalog/products/:id/attachments/:attachmentId` | admin | Update type / position |
|
|
39
|
+
| `PUT /api/v1/admin/catalog/products/:id/scoped-values` | admin | Name, description and hidden flag at Global, a channel, or a channel and language (see below) |
|
|
39
40
|
| `DELETE /api/v1/admin/catalog/products/:id/attachments/:attachmentId` | admin | Remove (Asset survives) |
|
|
40
41
|
|
|
41
|
-
## Per
|
|
42
|
-
|
|
43
|
-
An attachment is the same file in every sales channel. What can differ
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
42
|
+
## Per scope: Global, Channel, Channel × language
|
|
43
|
+
|
|
44
|
+
An attachment is the same file in every sales channel. What can differ per scope is
|
|
45
|
+
its name, its description, and whether it is listed at all. All three are scoped
|
|
46
|
+
fields, saved with the rest of the scope by `PUT …/products/:id/scoped-values`:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"scope": { "channelId": "<retail-uuid>", "languageCode": "pl-PL" },
|
|
51
|
+
"version": "7",
|
|
52
|
+
"changes": {
|
|
53
|
+
"attachments": { "<attachmentId>": { "name": "Karta techniczna", "description": null, "hidden": false } }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
- **Name** — at most 160 characters. At Global it is required, so an empty name is
|
|
59
|
+
refused there; at a channel or a channel and language `null` stores a deliberately
|
|
60
|
+
empty name.
|
|
61
|
+
- **Description** — at most 4000 characters; `null` stores a deliberately empty
|
|
62
|
+
description, which stays empty there even though a parent scope has one.
|
|
63
|
+
- **Hidden** — `true` or `false`, at Global, a channel, or a channel and language. A
|
|
64
|
+
hidden attachment is neither listed on the product page there nor linked from it.
|
|
65
|
+
|
|
66
|
+
`{ "inherit": true }` removes the scope's own value, and a field left out is unchanged.
|
|
67
|
+
A scope that holds no value inherits it — Channel × language → Channel → Global.
|
|
68
|
+
Writing at a channel the product is not in, or a language the channel does not
|
|
69
|
+
offer, answers `422 SCOPE_INVALID`; removing an override is always allowed, even after
|
|
70
|
+
the product has left the channel.
|
|
71
|
+
|
|
72
|
+
Hiding is presentation, not access control. A hidden attachment is not shown at
|
|
73
|
+
the scope, but its file keeps its stable URL, and anyone who has that URL can
|
|
62
74
|
still download it. Do not rely on hiding to keep a document confidential: a file
|
|
63
75
|
that must not be public must not be attached to the product.
|
|
64
76
|
|
|
65
77
|
Creating or updating an attachment is recorded once in the audit log, as
|
|
66
78
|
`product_attachment.create` or `product_attachment.update`, with the attachment's
|
|
67
|
-
state before and after
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
`product.updated.v1` with `changedFields: ["attachments"]`. A request that changes
|
|
71
|
-
nothing writes nothing and announces nothing.
|
|
79
|
+
state before and after. A scoped save is recorded as `product.scoped_values.save`.
|
|
80
|
+
Both announce `product.updated.v1`. A request that changes nothing writes nothing and
|
|
81
|
+
announces nothing. Deleting an attachment removes its overrides at every scope.
|
|
72
82
|
|
|
73
|
-
With
|
|
74
|
-
|
|
83
|
+
With no override, every channel and language lists every attachment under its Global
|
|
84
|
+
name and description.
|
|
75
85
|
|
|
76
86
|
## Errors
|
|
77
87
|
|
|
@@ -82,14 +92,14 @@ as before.
|
|
|
82
92
|
| `ATTACHMENT_TYPE_CODE_TAKEN` | 409 | `code` collision on create |
|
|
83
93
|
| `ATTACHMENT_TYPE_NOT_FOUND` | 404 | `:id` missing |
|
|
84
94
|
| `ATTACHMENT_NOT_FOUND` | 404 | `:attachmentId` missing |
|
|
85
|
-
| `SCOPE_INVALID` | 422 |
|
|
95
|
+
| `SCOPE_INVALID` | 422 | A scoped attachment value for a channel the product is not in, or a language the channel does not offer |
|
|
86
96
|
|
|
87
97
|
## Storefront integration
|
|
88
98
|
|
|
89
99
|
`productDetail.attachments[]` carries the full type and Asset metadata
|
|
90
|
-
(filename, sizeBytes, mimeType, url), as the request's sales channel
|
|
91
|
-
attachments hidden there are left out, and the name and description are
|
|
92
|
-
|
|
100
|
+
(filename, sizeBytes, mimeType, url), as the request's sales channel and language
|
|
101
|
+
show it: attachments hidden there are left out, and the name and description are the
|
|
102
|
+
effective values there. The `<AttachmentsList>` component
|
|
93
103
|
groups by AttachmentType (preserving first-seen order so admin-curated
|
|
94
104
|
positions shape the section ordering), renders one heading per type,
|
|
95
105
|
and emits download anchors with `download={filename}` for clean file
|
|
@@ -99,11 +109,11 @@ names.
|
|
|
99
109
|
|
|
100
110
|
`attachment_types` (id, code unique, name jsonb, position) +
|
|
101
111
|
`product_attachments` (id, product_id FK CASCADE, asset_id FK RESTRICT,
|
|
102
|
-
attachment_type_id FK RESTRICT, name, description
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
attachment's, the product's and the channel's delete.
|
|
112
|
+
attachment_type_id FK RESTRICT, the Global name, description and hidden flag,
|
|
113
|
+
position). `product_attachment_scope_overrides` holds a name, description or hidden
|
|
114
|
+
flag at a channel or a channel and language; it references the attachment together
|
|
115
|
+
with its product, so an override cannot point at another product's attachment, and
|
|
116
|
+
it cascades on the attachment's, the product's and the channel's delete.
|
|
107
117
|
|
|
108
118
|
The Foundation has no public `AssetsService` — the catalog uses direct
|
|
109
119
|
`Asset` entity imports across modules. An admin Asset upload UI is a
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Attribute
|
|
2
|
+
title: Attribute sets
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Attribute
|
|
5
|
+
# Attribute sets
|
|
6
6
|
|
|
7
7
|
Attribute Sets group `ProductAttribute` definitions into reusable
|
|
8
8
|
schemas. Every Product is wired to exactly one Attribute Set; the system
|
|
@@ -39,6 +39,7 @@ omitted, the system Default Set is used.
|
|
|
39
39
|
| `ATTRIBUTE_SET_CODE_TAKEN` | 409 | `code` already exists |
|
|
40
40
|
| `ATTRIBUTE_SET_IN_USE` | 409 | Delete blocked: at least one Product references the set |
|
|
41
41
|
| `SYSTEM_ATTRIBUTE_SET_IMMUTABLE` | 409 | Mutating the seeded Default Set |
|
|
42
|
+
| `ATTRIBUTE_VALUES_REQUIRED` | 400 | A product save leaves attributes the set requires without a value (`details.attributeKeys`, joined) |
|
|
42
43
|
| `ATTRIBUTE_SET_NOT_FOUND` | 404 | `:id` missing |
|
|
43
44
|
| `ATTRIBUTE_NOT_FOUND` | 404 | `:key` missing on assignment |
|
|
44
45
|
|
|
@@ -14,7 +14,7 @@ and the configurable-product variant picker.
|
|
|
14
14
|
Attributes are grouped into [Attribute Sets](./attribute-sets.md) which
|
|
15
15
|
are then pinned to a Product so the admin editor renders just the
|
|
16
16
|
fields that family actually needs. This page covers the attribute
|
|
17
|
-
itself; the set ↔ product wiring lives on the Attribute
|
|
17
|
+
itself; the set ↔ product wiring lives on the Attribute sets page.
|
|
18
18
|
|
|
19
19
|
## Anatomy
|
|
20
20
|
|
|
@@ -25,8 +25,9 @@ Every attribute carries:
|
|
|
25
25
|
| `key` | Stable, URL-safe identifier — `^[a-z][a-z0-9_]*$`, unique platform-wide (case-insensitive). Used in filter URLs, search payloads, and the product JSONB key. |
|
|
26
26
|
| `label` | `Record<bcp47-tag, string>` per-locale label map. |
|
|
27
27
|
| `labelDefault` | Fallback label used when the active storefront / admin locale is missing from `label`. |
|
|
28
|
-
| `valueType` | One of `string`, `number`, `boolean`, `price`, `date`, `select`, `multiselect`, `enum`. |
|
|
28
|
+
| `valueType` | One of `string`, `number`, `boolean`, `price`, `date`, `select`, `multiselect`, `enum`, `page_builder`. |
|
|
29
29
|
| `options[]` | Ordered list of selectable options — only for `select` / `multiselect` / `enum`. See [Option lists](#option-lists) below. |
|
|
30
|
+
| `adminAccess` | **Admin access**: `edit` (*Editable*, the default), `read` (*Read-only*) or `hidden` (*Hidden*), stored on the attribute's custom-field definition and answered on every attribute response. It only changes the admin panel: it does not restrict the API, filters, exports or the audit log. A required attribute must stay `edit` — anything else is refused with `400 VALIDATION_FAILED`, and the attribute editor keeps *Read-only* and *Hidden* unavailable while the attribute is required. |
|
|
30
31
|
|
|
31
32
|
Plus the behavioural flags and a numeric position:
|
|
32
33
|
|
|
@@ -55,9 +56,31 @@ Plus the behavioural flags and a numeric position:
|
|
|
55
56
|
| `select` | option `value` | Single choice from `options[]`. At most one option may carry `isDefault = true`. |
|
|
56
57
|
| `multiselect` | array of option `value`s | Multiple choices from `options[]`. Any number of options may carry `isDefault = true`. |
|
|
57
58
|
| `enum` | option `value` | Same storage shape as `select`; renders as a compact pill / segmented control on storefront filters and the PDP rather than a dropdown. |
|
|
59
|
+
| `page_builder` | one Page Builder document per language, stored apart from `attribute_values` | **Page Builder content** — see [Product content](./product-content.md). |
|
|
58
60
|
|
|
59
|
-
Changing `valueType` while any product
|
|
60
|
-
|
|
61
|
+
Changing `valueType` while any product holds a value for the attribute is
|
|
62
|
+
refused with `409 ATTRIBUTE_VALUE_TYPE_LOCKED`; clear the values first.
|
|
63
|
+
|
|
64
|
+
### Page Builder content
|
|
65
|
+
|
|
66
|
+
A `page_builder` attribute holds a Page Builder document per language for each
|
|
67
|
+
product, authored on its own screen and shown in the product page's description
|
|
68
|
+
tab ([Product content](./product-content.md)). Its settings are fixed:
|
|
69
|
+
|
|
70
|
+
- its languages are those of its documents, so it is never `scopable`: it has
|
|
71
|
+
no value per sales channel or per channel language;
|
|
72
|
+
- `isSearchable`, `isFilterable`, `isVariantAxis`, `displayAsSlider`,
|
|
73
|
+
`isComparable`, `quickSearchable`, `isPromoRule`, `isPriceRule`,
|
|
74
|
+
`massEditable`, `isRequired`, `isVisibleOnProductPage` and `scopable`
|
|
75
|
+
stay `false`. Setting any of them is refused and nothing is stored: on
|
|
76
|
+
create with `400 VALIDATION_FAILED`, one detail per setting; on update, where
|
|
77
|
+
the stored type refuses it, with `400 CONTENT_ATTRIBUTE_CAPABILITY_LOCKED`;
|
|
78
|
+
- it has no options;
|
|
79
|
+
- its type cannot be changed, and no attribute can be changed into it
|
|
80
|
+
(`409 ATTRIBUTE_VALUE_TYPE_LOCKED`, token `page_builder`).
|
|
81
|
+
|
|
82
|
+
The attribute editor hides those settings for this type, and the list shows the
|
|
83
|
+
row's flags locked. The type is admissible for products only.
|
|
61
84
|
|
|
62
85
|
## Option lists
|
|
63
86
|
|
|
@@ -75,7 +98,7 @@ authored inline on the attribute editor. Each option carries:
|
|
|
75
98
|
Option **values** are immutable while any product still carries them —
|
|
76
99
|
the operator must migrate dependent values first. Option **labels** can
|
|
77
100
|
always be renamed. Deleting an option is refused with
|
|
78
|
-
`409
|
|
101
|
+
`409 ATTRIBUTE_OPTION_IN_USE` while any product still carries that value.
|
|
79
102
|
|
|
80
103
|
## Public surface
|
|
81
104
|
|
|
@@ -87,31 +110,78 @@ Admin routes are gated by `catalog:read` (list / get) /
|
|
|
87
110
|
| `GET /api/v1/admin/catalog/attributes` | admin | List attributes |
|
|
88
111
|
| `GET /api/v1/admin/catalog/attributes/by-flag?flag=isPromoRule\|isComparable\|...` | admin | Picker payload — every attribute carrying the requested flag |
|
|
89
112
|
| `GET /api/v1/admin/catalog/attributes/:idOrKey` | admin | Single attribute read |
|
|
90
|
-
| `POST /api/v1/admin/catalog/attributes` | admin | Create attribute (accepts the flags + inline `options[]` for select-style types) |
|
|
113
|
+
| `POST /api/v1/admin/catalog/attributes` | admin | Create attribute (accepts the flags, `adminAccess` + inline `options[]` for select-style types) |
|
|
91
114
|
| `PATCH /api/v1/admin/catalog/attributes/:key` | admin | Update labels and hot-toggle `isFilterable` / `isSearchable` / `isVariantAxis` / `isPromoRule` / `isPriceRule` / `isComparable` / `isVisibleOnProductPage` / `isRequired` / `filterPosition`. Re-emits `attribute.updated.v1`. |
|
|
92
|
-
| `
|
|
115
|
+
| `GET /api/v1/admin/catalog/attributes/:idOrKey/usage` | admin (`catalog:read`) | What deleting the attribute would meet: `{ attributeSetCount, productValueCount, productContentCount }` — see [Deleting an attribute](#deleting-an-attribute) |
|
|
116
|
+
| `DELETE /api/v1/admin/catalog/attributes/:idOrKey` | admin (`catalog:write`) | Delete an attribute of any type; refused with `409` while an Attribute Set contains it or a product holds a value for it — see [Deleting an attribute](#deleting-an-attribute) |
|
|
93
117
|
| `GET /api/v1/admin/catalog/attributes/:idOrKey/options` | admin | List option rows for select / enum / multiselect attributes |
|
|
94
118
|
| `POST /api/v1/admin/catalog/attributes/:idOrKey/options` | admin | Append an option |
|
|
95
|
-
| `PATCH /api/v1/admin/catalog/
|
|
96
|
-
| `DELETE /api/v1/admin/catalog/
|
|
119
|
+
| `PATCH /api/v1/admin/catalog/attributes/:attributeId/options/:optionId` | admin | Patch `label` / `labelDefault` / `isDefault` / `sortOrder` (option `value` is immutable) |
|
|
120
|
+
| `DELETE /api/v1/admin/catalog/attributes/:attributeId/options/:optionId` | admin | Remove; refused with `409 ATTRIBUTE_OPTION_IN_USE` while any product still carries the value |
|
|
97
121
|
|
|
98
122
|
Filter sidebar reads consume `GET /api/v1/catalog/filters` (defined on
|
|
99
123
|
the [Catalog](../catalog.md) page) — that endpoint resolves the
|
|
100
124
|
currently visible filterable attributes per Sales Channel and orders
|
|
101
125
|
them by `filterPosition`.
|
|
102
126
|
|
|
103
|
-
##
|
|
127
|
+
## Deleting an attribute
|
|
104
128
|
|
|
105
|
-
|
|
129
|
+
**Delete** is offered on every attribute row, whatever its type. The
|
|
130
|
+
confirmation first reads `GET …/attributes/:idOrKey/usage` and says what stands
|
|
131
|
+
in the way and what goes with the attribute:
|
|
132
|
+
|
|
133
|
+
| Count | Meaning | Effect |
|
|
106
134
|
| --- | --- | --- |
|
|
107
|
-
| `
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
135
|
+
| `attributeSetCount` | Attribute Sets that contain the attribute | Refuses: remove it from them first |
|
|
136
|
+
| `productValueCount` | Products that hold a value for the key — on the product, as a per-sales-channel override, or on a variant | Refuses: clear the values first |
|
|
137
|
+
| `productContentCount` | Products that carry content for a `page_builder` attribute | The content is deleted with the attribute |
|
|
138
|
+
|
|
139
|
+
A deleted product does not count, and does not block the delete. The dialog and
|
|
140
|
+
the delete use the same query, so a refusal can only come from a change made
|
|
141
|
+
after the dialog opened; the dialog then shows the API's message.
|
|
142
|
+
|
|
143
|
+
The delete removes the attribute's definition, its options, its content and its
|
|
144
|
+
catalogue settings in one transaction, with one audit entry
|
|
145
|
+
(`catalog.attribute.delete`, whose before-state counts the content removed). It
|
|
146
|
+
then emits `attribute.updated.v1` with the key and both `isSearchable` and
|
|
147
|
+
`isFilterable` set to `false`, so the search index and price lists stop using
|
|
148
|
+
the key.
|
|
149
|
+
|
|
150
|
+
Promotion conditions, price-list rows and feed rules that use the attribute are
|
|
151
|
+
neither refused nor deleted — the catalogue cannot see them. They stop matching
|
|
152
|
+
products: a promotion condition on the key no longer matches a cart line, a
|
|
153
|
+
price-list row on it shows as inactive, and a feed whose selection rule names it
|
|
154
|
+
records a configuration error on its next run. The confirmation says so in one
|
|
155
|
+
sentence. Fix or remove them in their own screens.
|
|
156
|
+
|
|
157
|
+
**Behaviour change (feature 172).** A per-sales-channel override or a variant
|
|
158
|
+
value now refuses the delete, as a value on the product always did; a value on a
|
|
159
|
+
deleted product no longer does; and the delete now emits
|
|
160
|
+
`attribute.updated.v1`.
|
|
161
|
+
|
|
162
|
+
## Errors
|
|
163
|
+
|
|
164
|
+
Each refusal the stored attribute or its options make has its own code and a
|
|
165
|
+
sentence in English and Polish that names the values in `details`. Until issue
|
|
166
|
+
#624 (and issue #1218 for Page Builder content attributes) they were
|
|
167
|
+
`VALIDATION_FAILED` with an English message or a machine token
|
|
168
|
+
(`option_in_use: …`). A malformed request — a key that does not match
|
|
169
|
+
`^[a-z][a-z0-9_]*$`, an option value that does not match its pattern, options,
|
|
170
|
+
a slider or a content attribute's locked setting on a type the same request
|
|
171
|
+
names — stays `400 VALIDATION_FAILED`.
|
|
172
|
+
|
|
173
|
+
| Code | Status | When | `details` |
|
|
174
|
+
| --- | --- | --- | --- |
|
|
175
|
+
| `ATTRIBUTE_KEY_TAKEN` | 409 | Another attribute already has the key | `attributeKey` |
|
|
176
|
+
| `ATTRIBUTE_VALUE_TYPE_LOCKED` | 409 | The value type is changed while products hold values for the attribute; token `page_builder`: changed to or from Page Builder content | `attributeKey` |
|
|
177
|
+
| `ATTRIBUTE_IN_USE` | 409 | Delete blocked: an attribute set contains the attribute (token `attribute_sets`), or products hold its values (token `products`) | `attributeKey`, `attributeSetCount` or `productCount` |
|
|
178
|
+
| `ATTRIBUTE_OPTION_VALUE_TAKEN` | 409 | The attribute already has an option with the value | `attributeKey`, `value` |
|
|
179
|
+
| `ATTRIBUTE_DEFAULT_OPTION_TAKEN` | 409 | A second default option on a single-choice attribute, on create or when an option is made the default | `attributeKey`, `value` |
|
|
180
|
+
| `ATTRIBUTE_OPTIONS_NOT_SUPPORTED` | 400 | An option is written to an attribute whose type takes none | `attributeKey`, `valueType` |
|
|
181
|
+
| `ATTRIBUTE_OPTION_IN_USE` | 409 | Delete blocked: products carry the option (token `products` with the count) | `attributeKey`, `value`, `productCount` |
|
|
182
|
+
| `ATTRIBUTE_SLIDER_NOT_SUPPORTED` | 400 | `displayAsSlider` is turned on for an attribute whose stored type is not a number or a price | `attributeKey`, `valueType` |
|
|
183
|
+
| `CONTENT_ATTRIBUTE_CAPABILITY_LOCKED` | 400 | An update switches on a setting a Page Builder content attribute holds off | `attributeKey`, `capabilities` (joined) |
|
|
184
|
+
| `NOT_FOUND` | 404 | `:idOrKey` or `:optionId` missing | — |
|
|
115
185
|
|
|
116
186
|
## Storefront integration
|
|
117
187
|
|
|
@@ -125,12 +195,16 @@ values across the current page are omitted (no empty filter).
|
|
|
125
195
|
|
|
126
196
|
### PDP "Parametry produktu" tab
|
|
127
197
|
|
|
128
|
-
|
|
129
|
-
attribute meeting both:
|
|
198
|
+
The PDP's `Parametry produktu` tab lists every attribute meeting both:
|
|
130
199
|
|
|
131
200
|
- the product has a value for the attribute, **and**
|
|
132
201
|
- the attribute is flagged `isVisibleOnProductPage = true`.
|
|
133
202
|
|
|
203
|
+
Each row shows the attribute's label and its rendered value — never a technical
|
|
204
|
+
key or a raw stored value. An attribute not flagged visible is never shown, and
|
|
205
|
+
the tab itself is shown only when at least one attribute qualifies. Page Builder
|
|
206
|
+
content never appears in it.
|
|
207
|
+
|
|
134
208
|
For `select` / `multiselect` / `enum` values the tab renders the
|
|
135
209
|
option's per-locale label, not the raw `value`. The detail payload
|
|
136
210
|
field is assembled by `CatalogQueryService.buildVisibleAttributesProjection()`.
|
|
@@ -190,7 +264,7 @@ admin surface composes the two back into the legacy form.
|
|
|
190
264
|
- Boolean flags: `is_searchable`, `is_filterable`, `is_variant_axis`,
|
|
191
265
|
`is_comparable`, `quick_searchable`, `is_promo_rule`,
|
|
192
266
|
`is_price_rule`, `is_visible_on_product_page`, `display_as_slider`,
|
|
193
|
-
`
|
|
267
|
+
`scopable`, `mass_editable`.
|
|
194
268
|
- `filter_position int NOT NULL DEFAULT 0`.
|
|
195
269
|
- Presentation refinements: `select_display varchar(16) NULL`
|
|
196
270
|
(`pill` = legacy `enum`, `dropdown` = legacy `select`) and
|
|
@@ -209,12 +283,12 @@ them again.
|
|
|
209
283
|
All attribute and option mutations flow through the catalog Commands
|
|
210
284
|
behind `/catalog/attributes` — the generic Custom Fields admin surface
|
|
211
285
|
lists product definitions read-only and refuses mutations with
|
|
212
|
-
`409
|
|
286
|
+
`409 CUSTOM_FIELD_HOST_MANAGED`.
|
|
213
287
|
|
|
214
288
|
## Events emitted
|
|
215
289
|
|
|
216
|
-
- `attribute.updated.v1` — picked up by the
|
|
217
|
-
bridged to webhook subscribers.
|
|
290
|
+
- `attribute.updated.v1` — on create, update and delete; picked up by the
|
|
291
|
+
search indexer and bridged to webhook subscribers.
|
|
218
292
|
|
|
219
293
|
## Audit log
|
|
220
294
|
|
|
@@ -29,15 +29,21 @@ The **Content** action appears only while a module that provides a Page Builder
|
|
|
29
29
|
(the CMS module) is enabled and you have access to it. Content that is already
|
|
30
30
|
stored is kept while that module is off.
|
|
31
31
|
|
|
32
|
+
Unlike [product content](./product-content.md), which is hidden while the CMS
|
|
33
|
+
module is off, category content keeps rendering on the storefront.
|
|
34
|
+
|
|
32
35
|
## On the storefront
|
|
33
36
|
|
|
34
37
|
The category page renders the content between the category heading and the
|
|
35
38
|
listing toolbar, on the **first page** of the listing only — a visitor paging
|
|
36
39
|
through products is not shown the introduction again above every page.
|
|
37
40
|
|
|
38
|
-
The document is resolved to one language in this order: the visitor's language
|
|
39
|
-
the sales channel
|
|
40
|
-
|
|
41
|
+
The document is resolved to one language in this order: the visitor's language
|
|
42
|
+
as the sales channel offers it, else the channel's default language; then the
|
|
43
|
+
channel's default language, English, and any language that has content. The
|
|
44
|
+
visitor's language is the first `Accept-Language` entry, by weight, that the
|
|
45
|
+
channel offers (`pl` matches the channel's `pl-PL`); a language the channel does
|
|
46
|
+
not offer is never used, even where a document is stored in it. A language whose document holds no block is skipped.
|
|
41
47
|
|
|
42
48
|
The content follows the category's visibility: an inactive category, or one
|
|
43
49
|
under an inactive parent, has no page and its content is not served.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Composite
|
|
2
|
+
title: Composite products
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Composite
|
|
5
|
+
# Composite products: grouped, bundle, virtual
|
|
6
6
|
|
|
7
7
|
The Catalog supports three product types beyond `simple` /
|
|
8
8
|
`configurable`. Each carries a type-discriminated payload on the PDP
|
|
@@ -75,7 +75,9 @@ not a bundle, 404 `PRODUCT_NOT_FOUND`) still apply.
|
|
|
75
75
|
|
|
76
76
|
| Code | Status | When |
|
|
77
77
|
| --- | --- | --- |
|
|
78
|
-
| `PRODUCT_TYPE_MISMATCH` | 400 | Calling grouped/bundle endpoints against the wrong parent type |
|
|
78
|
+
| `PRODUCT_TYPE_MISMATCH` | 400 | Calling grouped/bundle endpoints against the wrong parent type; adding a variant to a product that is not configurable (token `variants_need_configurable`, `details.productId`, `productType`) |
|
|
79
|
+
| `SELF_LINK_NOT_ALLOWED` | 400 | A grouped product names itself as a child (token `grouped`, `details.productId`) |
|
|
80
|
+
| `GROUPED_ITEM_ALREADY_EXISTS` | 409 | The child is already in the group (`details.parentProductId`, `childProductId`, `childSku`) |
|
|
79
81
|
| `NESTED_COMPOSITE_NOT_ALLOWED` | 400 | Child / option product is itself grouped or bundle |
|
|
80
82
|
| `INVALID_QUANTITY_RANGE` | 400 | Slot `minQuantity > maxQuantity` |
|
|
81
83
|
| `OPTION_ALREADY_EXISTS` | 409 | Same option product reused in a slot |
|