@codingfactory/mediables-vue 2.0.1
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/PixiFrameExporter-BTU38EVl.cjs +2 -0
- package/dist/PixiFrameExporter-BTU38EVl.cjs.map +1 -0
- package/dist/PixiFrameExporter-Bb3QNWP-.js +199 -0
- package/dist/PixiFrameExporter-Bb3QNWP-.js.map +1 -0
- package/dist/adapters/MediablesAdapter.d.ts +19 -0
- package/dist/adapters/SpatieAdapter.d.ts +18 -0
- package/dist/adapters/index.d.ts +18 -0
- package/dist/components/AdminMediaBrowser.vue.d.ts +11 -0
- package/dist/components/AdminMediaBrowserExample.vue.d.ts +2 -0
- package/dist/components/AdminMediaBulkActionsToolbar.vue.d.ts +2 -0
- package/dist/components/AdminMediaGrid.vue.d.ts +17 -0
- package/dist/components/AdminMediaListItem.vue.d.ts +10 -0
- package/dist/components/AdminMediaManager.vue.d.ts +25 -0
- package/dist/components/AdminMediaUploader.vue.d.ts +11 -0
- package/dist/components/AlbumBrowser.vue.d.ts +17 -0
- package/dist/components/AlbumManager.vue.d.ts +16 -0
- package/dist/components/AlbumMediaGrid.vue.d.ts +28 -0
- package/dist/components/AlbumTree.vue.d.ts +35 -0
- package/dist/components/BulkActionsToolbar.vue.d.ts +2 -0
- package/dist/components/ConversionProgressIndicator.vue.d.ts +2 -0
- package/dist/components/Editor.vue.d.ts +29 -0
- package/dist/components/ExampleGridAndList.vue.d.ts +2 -0
- package/dist/components/ExampleUsage.vue.d.ts +2 -0
- package/dist/components/Grid.vue.d.ts +2 -0
- package/dist/components/ImageEditor/ImageEditor.vue.d.ts +3 -0
- package/dist/components/ImageEditorModal.vue.d.ts +16 -0
- package/dist/components/ImagePicker.vue.d.ts +32 -0
- package/dist/components/ImageUploadZone.vue.d.ts +7 -0
- package/dist/components/Item.vue.d.ts +2 -0
- package/dist/components/Library.vue.d.ts +2 -0
- package/dist/components/ManagedMediaGallery.vue.d.ts +12 -0
- package/dist/components/MediaAttacher.vue.d.ts +21 -0
- package/dist/components/MediaBrowser.vue.d.ts +2 -0
- package/dist/components/MediaCard.vue.d.ts +2 -0
- package/dist/components/MediaFilters.vue.d.ts +2 -0
- package/dist/components/MediaGrid.vue.d.ts +31 -0
- package/dist/components/MediaInfoEditor.vue.d.ts +7 -0
- package/dist/components/MediaManager.vue.d.ts +2 -0
- package/dist/components/MediaUploadWithProgress.vue.d.ts +2 -0
- package/dist/components/MediaUploader.vue.d.ts +2 -0
- package/dist/components/MediaWorkspace.vue.d.ts +19 -0
- package/dist/components/Modal.vue.d.ts +2 -0
- package/dist/components/ModelMediaManager.vue.d.ts +80 -0
- package/dist/components/Pagination.vue.d.ts +2 -0
- package/dist/components/Search.vue.d.ts +2 -0
- package/dist/components/VideoEditorSimple.vue.d.ts +2 -0
- package/dist/components/VideoExportPanel.vue.d.ts +2 -0
- package/dist/components/VideoTimeline.vue.d.ts +2 -0
- package/dist/components/VideoTimelineSimple.vue.d.ts +2 -0
- package/dist/components/VideoToolsPanel.vue.d.ts +2 -0
- package/dist/components/albums/AlbumTreeNode.vue.d.ts +23 -0
- package/dist/components/attachment/MediaAttachment.vue.d.ts +23 -0
- package/dist/components/attachment/index.d.ts +4 -0
- package/dist/components/collection/MediaCollection.vue.d.ts +27 -0
- package/dist/components/collection/MediaCollectionDropzone.vue.d.ts +18 -0
- package/dist/components/collection/MediaCollectionItem.vue.d.ts +2 -0
- package/dist/components/collection/index.d.ts +6 -0
- package/dist/components/form/MediaHiddenFields.vue.d.ts +2 -0
- package/dist/components/form/index.d.ts +4 -0
- package/dist/components/image/ImageEditor.vue.d.ts +2 -0
- package/dist/components/image/ImageItem.vue.d.ts +2 -0
- package/dist/components/renderless/MediaAttachmentProvider.vue.d.ts +12 -0
- package/dist/components/renderless/MediaCollectionProvider.vue.d.ts +12 -0
- package/dist/components/renderless/index.d.ts +7 -0
- package/dist/components/timeline/TimeRuler.vue.d.ts +2 -0
- package/dist/components/timeline/VideoTrack.vue.d.ts +2 -0
- package/dist/components/tools/VideoFiltersPanel.vue.d.ts +7 -0
- package/dist/components/tools/VideoTextPanel.vue.d.ts +2 -0
- package/dist/components/video/AudioTrackManager.vue.d.ts +2 -0
- package/dist/components/video/EditorControls.vue.d.ts +2 -0
- package/dist/components/video/ExportPanel.vue.d.ts +2 -0
- package/dist/components/video/FilterSelector.vue.d.ts +2 -0
- package/dist/components/video/LiveStreamManager.vue.d.ts +2 -0
- package/dist/components/video/StreamCredentials.vue.d.ts +2 -0
- package/dist/components/video/StreamStatus.vue.d.ts +2 -0
- package/dist/components/video/TextOverlayPanel.vue.d.ts +2 -0
- package/dist/components/video/ThumbnailPicker.vue.d.ts +2 -0
- package/dist/components/video/TimelineClip.vue.d.ts +2 -0
- package/dist/components/video/TimelineControls.vue.d.ts +2 -0
- package/dist/components/video/TransitionSelector.vue.d.ts +2 -0
- package/dist/components/video/VideoControls.vue.d.ts +2 -0
- package/dist/components/video/VideoEditor.vue.d.ts +8 -0
- package/dist/components/video/VideoEditorDialog.vue.d.ts +12 -0
- package/dist/components/video/VideoFilterCarousel.vue.d.ts +2 -0
- package/dist/components/video/VideoFilterPreview.vue.d.ts +18 -0
- package/dist/components/video/VideoPlayer.vue.d.ts +2 -0
- package/dist/components/video/VideoPreview.vue.d.ts +3 -0
- package/dist/components/video/VideoPreviewCSS.vue.d.ts +2 -0
- package/dist/components/video/VideoPreviewEngine.vue.d.ts +3 -0
- package/dist/components/video/VideoTimeline.vue.d.ts +2 -0
- package/dist/components/video/VideoUploadProgress.vue.d.ts +2 -0
- package/dist/components/video/VideoUploader.vue.d.ts +29 -0
- package/dist/components/video/index.d.ts +19 -0
- package/dist/composables/useAccordion.d.ts +138 -0
- package/dist/composables/useAlbumDragDrop.d.ts +24 -0
- package/dist/composables/useAlbums.d.ts +17 -0
- package/dist/composables/useFloatingPills.d.ts +111 -0
- package/dist/composables/useHaptic.d.ts +10 -0
- package/dist/composables/useImageEditorModal.d.ts +277 -0
- package/dist/composables/useLiveStream.d.ts +66 -0
- package/dist/composables/useMediaAttachment.d.ts +105 -0
- package/dist/composables/useMediaCollection.d.ts +122 -0
- package/dist/composables/useMediaConversionProgress.d.ts +31 -0
- package/dist/composables/useMediaDragSort.d.ts +56 -0
- package/dist/composables/useMediaSelection.d.ts +27 -0
- package/dist/composables/useMediaUploadQueue.d.ts +61 -0
- package/dist/composables/useMediaValidation.d.ts +59 -0
- package/dist/composables/useRadialMenu.d.ts +116 -0
- package/dist/composables/useSanctumClient.d.ts +31 -0
- package/dist/composables/useTheme.d.ts +7 -0
- package/dist/composables/useToast.d.ts +25 -0
- package/dist/composables/useVideoEditor.d.ts +127 -0
- package/dist/composables/useVideoFilters.d.ts +176 -0
- package/dist/composables/useVideoPlayer.d.ts +50 -0
- package/dist/composables/useVideoUpload.d.ts +134 -0
- package/dist/filters/controlMapping.d.ts +31 -0
- package/dist/filters/css-registry.d.ts +83 -0
- package/dist/filters/definitions/adjustment.d.ts +2 -0
- package/dist/filters/definitions/adjustmentAdvanced.d.ts +2 -0
- package/dist/filters/definitions/advancedBloom.d.ts +2 -0
- package/dist/filters/definitions/alpha.d.ts +2 -0
- package/dist/filters/definitions/ascii.d.ts +2 -0
- package/dist/filters/definitions/backdropBlur.d.ts +2 -0
- package/dist/filters/definitions/bevel.d.ts +2 -0
- package/dist/filters/definitions/bloom.d.ts +2 -0
- package/dist/filters/definitions/blur.d.ts +2 -0
- package/dist/filters/definitions/bulgePinch.d.ts +2 -0
- package/dist/filters/definitions/colorGradient.d.ts +2 -0
- package/dist/filters/definitions/colorMap.d.ts +2 -0
- package/dist/filters/definitions/colorMatrix.d.ts +2 -0
- package/dist/filters/definitions/colorOverlay.d.ts +2 -0
- package/dist/filters/definitions/colorReplace.d.ts +2 -0
- package/dist/filters/definitions/convolution.d.ts +2 -0
- package/dist/filters/definitions/crossHatch.d.ts +2 -0
- package/dist/filters/definitions/crt.d.ts +2 -0
- package/dist/filters/definitions/displacement.d.ts +2 -0
- package/dist/filters/definitions/dot.d.ts +2 -0
- package/dist/filters/definitions/dropShadow.d.ts +2 -0
- package/dist/filters/definitions/emboss.d.ts +2 -0
- package/dist/filters/definitions/glitch.d.ts +2 -0
- package/dist/filters/definitions/glow.d.ts +2 -0
- package/dist/filters/definitions/godray.d.ts +2 -0
- package/dist/filters/definitions/grayscale.d.ts +2 -0
- package/dist/filters/definitions/hslAdjustment.d.ts +2 -0
- package/dist/filters/definitions/kawaseBlur.d.ts +2 -0
- package/dist/filters/definitions/lightmap.d.ts +2 -0
- package/dist/filters/definitions/motionBlur.d.ts +2 -0
- package/dist/filters/definitions/multiColorReplace.d.ts +2 -0
- package/dist/filters/definitions/noise.d.ts +2 -0
- package/dist/filters/definitions/oldFilm.d.ts +2 -0
- package/dist/filters/definitions/outline.d.ts +2 -0
- package/dist/filters/definitions/pixelate.d.ts +2 -0
- package/dist/filters/definitions/radialBlur.d.ts +2 -0
- package/dist/filters/definitions/reflection.d.ts +2 -0
- package/dist/filters/definitions/rgbSplit.d.ts +2 -0
- package/dist/filters/definitions/shockwave.d.ts +2 -0
- package/dist/filters/definitions/simplexNoise.d.ts +2 -0
- package/dist/filters/definitions/tiltShift.d.ts +2 -0
- package/dist/filters/definitions/twist.d.ts +2 -0
- package/dist/filters/definitions/vignette.d.ts +2 -0
- package/dist/filters/definitions/zoomBlur.d.ts +2 -0
- package/dist/filters/factory.d.ts +38 -0
- package/dist/filters/filters/controlMapping.d.ts +31 -0
- package/dist/filters/filters/definitions/adjustment.d.ts +2 -0
- package/dist/filters/filters/definitions/adjustmentAdvanced.d.ts +2 -0
- package/dist/filters/filters/definitions/advancedBloom.d.ts +2 -0
- package/dist/filters/filters/definitions/alpha.d.ts +2 -0
- package/dist/filters/filters/definitions/ascii.d.ts +2 -0
- package/dist/filters/filters/definitions/backdropBlur.d.ts +2 -0
- package/dist/filters/filters/definitions/bevel.d.ts +2 -0
- package/dist/filters/filters/definitions/bloom.d.ts +2 -0
- package/dist/filters/filters/definitions/blur.d.ts +2 -0
- package/dist/filters/filters/definitions/bulgePinch.d.ts +2 -0
- package/dist/filters/filters/definitions/colorGradient.d.ts +2 -0
- package/dist/filters/filters/definitions/colorMap.d.ts +2 -0
- package/dist/filters/filters/definitions/colorMatrix.d.ts +2 -0
- package/dist/filters/filters/definitions/colorOverlay.d.ts +2 -0
- package/dist/filters/filters/definitions/colorReplace.d.ts +2 -0
- package/dist/filters/filters/definitions/convolution.d.ts +2 -0
- package/dist/filters/filters/definitions/crossHatch.d.ts +2 -0
- package/dist/filters/filters/definitions/crt.d.ts +2 -0
- package/dist/filters/filters/definitions/displacement.d.ts +2 -0
- package/dist/filters/filters/definitions/dot.d.ts +2 -0
- package/dist/filters/filters/definitions/dropShadow.d.ts +2 -0
- package/dist/filters/filters/definitions/emboss.d.ts +2 -0
- package/dist/filters/filters/definitions/glitch.d.ts +2 -0
- package/dist/filters/filters/definitions/glow.d.ts +2 -0
- package/dist/filters/filters/definitions/godray.d.ts +2 -0
- package/dist/filters/filters/definitions/grayscale.d.ts +2 -0
- package/dist/filters/filters/definitions/hslAdjustment.d.ts +2 -0
- package/dist/filters/filters/definitions/kawaseBlur.d.ts +2 -0
- package/dist/filters/filters/definitions/lightmap.d.ts +2 -0
- package/dist/filters/filters/definitions/motionBlur.d.ts +2 -0
- package/dist/filters/filters/definitions/multiColorReplace.d.ts +2 -0
- package/dist/filters/filters/definitions/noise.d.ts +2 -0
- package/dist/filters/filters/definitions/oldFilm.d.ts +2 -0
- package/dist/filters/filters/definitions/outline.d.ts +2 -0
- package/dist/filters/filters/definitions/pixelate.d.ts +2 -0
- package/dist/filters/filters/definitions/radialBlur.d.ts +2 -0
- package/dist/filters/filters/definitions/reflection.d.ts +2 -0
- package/dist/filters/filters/definitions/rgbSplit.d.ts +2 -0
- package/dist/filters/filters/definitions/shockwave.d.ts +2 -0
- package/dist/filters/filters/definitions/simplexNoise.d.ts +2 -0
- package/dist/filters/filters/definitions/tiltShift.d.ts +2 -0
- package/dist/filters/filters/definitions/twist.d.ts +2 -0
- package/dist/filters/filters/definitions/vignette.d.ts +2 -0
- package/dist/filters/filters/definitions/zoomBlur.d.ts +2 -0
- package/dist/filters/filters/factory.d.ts +36 -0
- package/dist/filters/filters/index.d.ts +93 -0
- package/dist/filters/filters/registry.d.ts +89 -0
- package/dist/filters/index.d.ts +93 -0
- package/dist/filters/registry.d.ts +89 -0
- package/dist/filters/video-compatible.d.ts +77 -0
- package/dist/filters/video-css-filters.d.ts +153 -0
- package/dist/index-6yUGA--H.cjs +42 -0
- package/dist/index-6yUGA--H.cjs.map +1 -0
- package/dist/index-CcGWfCCV.js +7799 -0
- package/dist/index-CcGWfCCV.js.map +1 -0
- package/dist/index-DTUgsw7J.cjs +76 -0
- package/dist/index-DTUgsw7J.cjs.map +1 -0
- package/dist/index-VrUG0lmk.js +28655 -0
- package/dist/index-VrUG0lmk.js.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/js/workers/material-color-extractor.js +215 -0
- package/dist/mediables-vanilla.cjs +2 -0
- package/dist/mediables-vanilla.cjs.map +1 -0
- package/dist/mediables-vanilla.mjs +12 -0
- package/dist/mediables-vanilla.mjs.map +1 -0
- package/dist/mediables-vue.cjs +2 -0
- package/dist/mediables-vue.cjs.map +1 -0
- package/dist/mediables-vue.mjs +67 -0
- package/dist/mediables-vue.mjs.map +1 -0
- package/dist/render-page/assets/index-hBfvGPpt.js +48933 -0
- package/dist/render-page/index.html +18 -0
- package/dist/services/VideoJobClient.d.ts +79 -0
- package/dist/stores/albumStore.d.ts +4 -0
- package/dist/stores/mediaVariantStore.d.ts +1 -0
- package/dist/stores/useAdminMediaStore.d.ts +16 -0
- package/dist/stores/useMediaStore.d.ts +25 -0
- package/dist/stores/useVideoStore.d.ts +21 -0
- package/dist/stores/variantPollStore.d.ts +5 -0
- package/dist/stores/video.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/types/adapter.d.ts +181 -0
- package/dist/types/album.d.ts +28 -0
- package/dist/types/api.d.ts +88 -0
- package/dist/types/collection.d.ts +306 -0
- package/dist/types/editor.d.ts +172 -0
- package/dist/types/image.d.ts +210 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/media.d.ts +107 -0
- package/dist/types/types/address.d.ts +66 -0
- package/dist/types/types/admin/intelligent-po.d.ts +47 -0
- package/dist/types/types/admin/products/index.d.ts +17 -0
- package/dist/types/types/admin/purchase-order.d.ts +50 -0
- package/dist/types/types/admin/receipt.d.ts +86 -0
- package/dist/types/types/admin/vendor.d.ts +61 -0
- package/dist/types/types/ai.d.ts +63 -0
- package/dist/types/types/aiActions.d.ts +42 -0
- package/dist/types/types/aiDesigner.d.ts +77 -0
- package/dist/types/types/api-errors.d.ts +6 -0
- package/dist/types/types/api.d.ts +109 -0
- package/dist/types/types/bundle.d.ts +131 -0
- package/dist/types/types/bundles/analytics.d.ts +64 -0
- package/dist/types/types/bundles.d.ts +108 -0
- package/dist/types/types/cart.d.ts +81 -0
- package/dist/types/types/checkout.d.ts +40 -0
- package/dist/types/types/component-config.d.ts +26 -0
- package/dist/types/types/components.d.ts +32 -0
- package/dist/types/types/content.d.ts +138 -0
- package/dist/types/types/coupon.d.ts +32 -0
- package/dist/types/types/customer-product-history.d.ts +210 -0
- package/dist/types/types/drag-contracts.d.ts +40 -0
- package/dist/types/types/drag-drop.d.ts +19 -0
- package/dist/types/types/editor.d.ts +127 -0
- package/dist/types/types/errors.d.ts +36 -0
- package/dist/types/types/feedback.d.ts +122 -0
- package/dist/types/types/image.d.ts +210 -0
- package/dist/types/types/index.d.ts +62 -0
- package/dist/types/types/instagram.d.ts +86 -0
- package/dist/types/types/ionic-components.d.ts +152 -0
- package/dist/types/types/layout.d.ts +127 -0
- package/dist/types/types/media-gateway.d.ts +34 -0
- package/dist/types/types/media.d.ts +178 -0
- package/dist/types/types/notifications.d.ts +123 -0
- package/dist/types/types/order-management.d.ts +245 -0
- package/dist/types/types/pageBuilder/block.d.ts +34 -0
- package/dist/types/types/pageBuilder/blocks.d.ts +82 -0
- package/dist/types/types/pageBuilder/cache.d.ts +33 -0
- package/dist/types/types/pageBuilder/editor.d.ts +15 -0
- package/dist/types/types/pageBuilder/field.d.ts +11 -0
- package/dist/types/types/pageBuilder/index.d.ts +24 -0
- package/dist/types/types/pageBuilder/revisions.d.ts +40 -0
- package/dist/types/types/pageBuilder/templates.d.ts +62 -0
- package/dist/types/types/pattern.d.ts +40 -0
- package/dist/types/types/payment.d.ts +21 -0
- package/dist/types/types/payments.d.ts +10 -0
- package/dist/types/types/pipeline.d.ts +12 -0
- package/dist/types/types/pixi/filter-args.d.ts +274 -0
- package/dist/types/types/pixi/filters-extended.d.ts +157 -0
- package/dist/types/types/pixi/filters.d.ts +38 -0
- package/dist/types/types/preview.d.ts +36 -0
- package/dist/types/types/pricing.d.ts +31 -0
- package/dist/types/types/quickbooks.d.ts +43 -0
- package/dist/types/types/receipt.d.ts +121 -0
- package/dist/types/types/rewards.d.ts +110 -0
- package/dist/types/types/saved-cart.d.ts +51 -0
- package/dist/types/types/settings.d.ts +63 -0
- package/dist/types/types/shipment.d.ts +62 -0
- package/dist/types/types/shipping.d.ts +98 -0
- package/dist/types/types/sidebar-variations.d.ts +226 -0
- package/dist/types/types/slots.d.ts +2 -0
- package/dist/types/types/specification-types.d.ts +70 -0
- package/dist/types/types/specifications.d.ts +163 -0
- package/dist/types/types/store.d.ts +64 -0
- package/dist/types/types/template.d.ts +8 -0
- package/dist/types/types/user.d.ts +47 -0
- package/dist/types/types/variant-groups.d.ts +158 -0
- package/dist/types/types/wishlist.d.ts +73 -0
- package/dist/types/types/workflow-wizard.d.ts +12 -0
- package/dist/types/video.d.ts +449 -0
- package/dist/utils/category-tree-constants.d.ts +42 -0
- package/dist/utils/cookies.d.ts +3 -0
- package/dist/utils/crypto-polyfill.d.ts +4 -0
- package/dist/utils/datetime.d.ts +43 -0
- package/dist/utils/debounce.d.ts +10 -0
- package/dist/utils/debugConsole.d.ts +69 -0
- package/dist/utils/editor/argHelpers.d.ts +6 -0
- package/dist/utils/formatters.d.ts +105 -0
- package/dist/utils/isPresignedAwsUrl.d.ts +67 -0
- package/dist/utils/media-helpers.d.ts +34 -0
- package/dist/utils/normalisePricing.d.ts +11 -0
- package/dist/utils/recipe-generator.d.ts +34 -0
- package/dist/utils/string.d.ts +29 -0
- package/dist/utils/unwrapApiResponse.d.ts +5 -0
- package/dist/utils/uuid.d.ts +30 -0
- package/dist/utils/validators.d.ts +28 -0
- package/dist/utils/video-export.d.ts +60 -0
- package/dist/v3-ionic-1-demo.html +440 -0
- package/dist/video-engine/VideoEngine.d.ts +267 -0
- package/dist/video-engine/adapters/AudioManager.d.ts +106 -0
- package/dist/video-engine/adapters/CSSFilterAdapter.d.ts +106 -0
- package/dist/video-engine/adapters/ExportManager.d.ts +88 -0
- package/dist/video-engine/adapters/FilterBridge.d.ts +96 -0
- package/dist/video-engine/adapters/MediablesCompositionAdapter.d.ts +56 -0
- package/dist/video-engine/adapters/PixiFrameExporter.d.ts +52 -0
- package/dist/video-engine/adapters/RenderQueue.d.ts +119 -0
- package/dist/video-engine/adapters/TextOverlayManager.d.ts +93 -0
- package/dist/video-engine/adapters/TimelineAdapter.d.ts +58 -0
- package/dist/video-engine/adapters/TransitionManager.d.ts +76 -0
- package/dist/video-engine/adapters/WebCodecsExport.d.ts +36 -0
- package/dist/video-engine/compositions/examples/example.d.ts +2 -0
- package/dist/video-engine/filters/CSSFilterSystem.d.ts +213 -0
- package/dist/video-engine/index.d.ts +14 -0
- package/dist/video-engine/presets/ExportPresets.d.ts +70 -0
- package/dist/video-engine/types/index.d.ts +96 -0
- package/dist/video-engine/types.d.ts +1 -0
- package/dist/video-engine/utils/EventEmitter.d.ts +12 -0
- package/dist/video-engine/utils/MediaSourceResolver.d.ts +9 -0
- package/dist/video-engine/utils/error-reporter.d.ts +159 -0
- package/dist/video-engine/utils/keyboard-shortcuts.d.ts +120 -0
- package/dist/video-engine/utils/pixi-video-fallback.d.ts +2 -0
- package/docs/video-subsystem/README.md +490 -0
- package/docs/video-subsystem/api-reference.md +747 -0
- package/docs/video-subsystem/component-examples.md +1477 -0
- package/docs/video-subsystem/integration-guide.md +1021 -0
- package/package.json +102 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface ActionField {
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
type: 'string' | 'integer' | 'boolean' | 'object' | 'array';
|
|
5
|
+
enum?: string[];
|
|
6
|
+
description?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface AIAction {
|
|
10
|
+
uuid: string;
|
|
11
|
+
type: string;
|
|
12
|
+
status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
13
|
+
priority: number;
|
|
14
|
+
dependencies: string[];
|
|
15
|
+
agent?: {
|
|
16
|
+
uuid: string;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
payload?: any;
|
|
20
|
+
result?: any;
|
|
21
|
+
error?: string;
|
|
22
|
+
created_at: string;
|
|
23
|
+
updated_at?: string;
|
|
24
|
+
started_at?: string;
|
|
25
|
+
completed_at?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ActionType {
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
icon?: string;
|
|
32
|
+
badgeClass?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ValidationResult {
|
|
35
|
+
action_uuid: string;
|
|
36
|
+
isValid: boolean;
|
|
37
|
+
errors?: {
|
|
38
|
+
field: string;
|
|
39
|
+
message: string;
|
|
40
|
+
path?: string;
|
|
41
|
+
}[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export interface SlotSchema {
|
|
2
|
+
slot_uuid?: string;
|
|
3
|
+
slot_name: string;
|
|
4
|
+
slot_config: Record<string, unknown>;
|
|
5
|
+
}
|
|
6
|
+
export interface ColumnSchema {
|
|
7
|
+
column_uuid?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
order: number;
|
|
10
|
+
config: Record<string, unknown>;
|
|
11
|
+
slots: SlotSchema[];
|
|
12
|
+
}
|
|
13
|
+
export interface SectionSchema {
|
|
14
|
+
section_uuid?: string;
|
|
15
|
+
section_type: string;
|
|
16
|
+
order: number;
|
|
17
|
+
config: Record<string, unknown>;
|
|
18
|
+
child_sections: SectionSchema[];
|
|
19
|
+
columns: ColumnSchema[];
|
|
20
|
+
}
|
|
21
|
+
export interface BreakpointSchema {
|
|
22
|
+
breakpoint_uuid?: string;
|
|
23
|
+
name: string;
|
|
24
|
+
min_width?: string;
|
|
25
|
+
max_width?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface LayoutSchema {
|
|
28
|
+
layout_uuid?: string;
|
|
29
|
+
layout_name: string;
|
|
30
|
+
layout_config: Record<string, unknown>;
|
|
31
|
+
sections: SectionSchema[];
|
|
32
|
+
breakpoints: BreakpointSchema[];
|
|
33
|
+
}
|
|
34
|
+
export interface DesignBrief {
|
|
35
|
+
brief_uuid: string;
|
|
36
|
+
store_uuid: string;
|
|
37
|
+
design_brief: string;
|
|
38
|
+
status: 'pending' | 'processing' | 'processed' | 'failed';
|
|
39
|
+
created_at: string;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
}
|
|
42
|
+
export interface DesignSuggestion {
|
|
43
|
+
suggestion_uuid: string;
|
|
44
|
+
brief_uuid: string;
|
|
45
|
+
layout_uuid: string | null;
|
|
46
|
+
suggested_layout: LayoutSchema;
|
|
47
|
+
status: 'draft' | 'approved' | 'rejected';
|
|
48
|
+
created_at: string;
|
|
49
|
+
updated_at: string;
|
|
50
|
+
}
|
|
51
|
+
export interface GenerateDesignRequest {
|
|
52
|
+
design_brief: string;
|
|
53
|
+
store_uuid: string;
|
|
54
|
+
type?: string;
|
|
55
|
+
context?: string;
|
|
56
|
+
auto_approve?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface ApproveDesignRequest {
|
|
59
|
+
store_uuid: string;
|
|
60
|
+
apply_changes?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface RejectDesignRequest {
|
|
63
|
+
feedback?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface GenerateDesignResponse {
|
|
66
|
+
brief_uuid: string;
|
|
67
|
+
suggestion_uuid: string;
|
|
68
|
+
layout_uuid?: string;
|
|
69
|
+
layout_data: LayoutSchema;
|
|
70
|
+
}
|
|
71
|
+
export interface ApproveDesignResponse {
|
|
72
|
+
layout_uuid: string;
|
|
73
|
+
suggestion_uuid: string;
|
|
74
|
+
}
|
|
75
|
+
export interface RejectDesignResponse {
|
|
76
|
+
suggestion_uuid: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard API response wrapper
|
|
3
|
+
*/
|
|
4
|
+
export interface ApiResponse<T> {
|
|
5
|
+
data: T;
|
|
6
|
+
message?: string;
|
|
7
|
+
success?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Session API Response
|
|
11
|
+
*/
|
|
12
|
+
export interface SessionResponse extends ApiResponse<CheckoutSession> {
|
|
13
|
+
data: CheckoutSession;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Delivery Info API Response
|
|
17
|
+
*/
|
|
18
|
+
export interface DeliveryInfoResponse extends ApiResponse<CheckoutSession> {
|
|
19
|
+
data: CheckoutSession;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Paginated API response wrapper
|
|
23
|
+
*/
|
|
24
|
+
export interface PaginatedResponse<T> {
|
|
25
|
+
data: T[];
|
|
26
|
+
links: {
|
|
27
|
+
first: string;
|
|
28
|
+
last: string;
|
|
29
|
+
prev: string | null;
|
|
30
|
+
next: string | null;
|
|
31
|
+
};
|
|
32
|
+
meta: BasePagination;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Base pagination interface for consistent pagination structure
|
|
36
|
+
*/
|
|
37
|
+
export interface BasePagination {
|
|
38
|
+
current_page: number;
|
|
39
|
+
from: number;
|
|
40
|
+
last_page: number;
|
|
41
|
+
path: string;
|
|
42
|
+
per_page: number;
|
|
43
|
+
to: number;
|
|
44
|
+
total: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* API error response
|
|
48
|
+
*/
|
|
49
|
+
export interface ApiError {
|
|
50
|
+
message: string;
|
|
51
|
+
errors?: Record<string, string[]>;
|
|
52
|
+
error_code?: string;
|
|
53
|
+
status?: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Common error codes for handling specific error scenarios
|
|
57
|
+
*/
|
|
58
|
+
export declare enum ApiErrorCode {
|
|
59
|
+
CONCURRENCY_EXCEPTION = "CONCURRENCY_EXCEPTION",
|
|
60
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
61
|
+
NOT_FOUND = "NOT_FOUND",
|
|
62
|
+
UNAUTHORIZED = "UNAUTHORIZED",
|
|
63
|
+
FORBIDDEN = "FORBIDDEN",
|
|
64
|
+
SERVER_ERROR = "SERVER_ERROR"
|
|
65
|
+
}
|
|
66
|
+
export interface MediaAlbum {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
parent_id: string | null;
|
|
70
|
+
user_id: string;
|
|
71
|
+
description: string | null;
|
|
72
|
+
order_column: number;
|
|
73
|
+
created_at: string;
|
|
74
|
+
updated_at: string;
|
|
75
|
+
children?: MediaAlbum[];
|
|
76
|
+
}
|
|
77
|
+
import type { CheckoutSession } from './checkout';
|
|
78
|
+
export interface Media {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
file_name: string;
|
|
82
|
+
disk: string;
|
|
83
|
+
mime_type: string;
|
|
84
|
+
size: number;
|
|
85
|
+
custom_properties?: {
|
|
86
|
+
alt?: string;
|
|
87
|
+
tags?: string[];
|
|
88
|
+
variants?: {
|
|
89
|
+
latest?: {
|
|
90
|
+
id: string;
|
|
91
|
+
status?: 'pending' | 'processing' | 'completed' | 'failed';
|
|
92
|
+
url?: string | null;
|
|
93
|
+
error_message?: string | null;
|
|
94
|
+
};
|
|
95
|
+
thumbnail?: {
|
|
96
|
+
url?: string | null;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
} | null;
|
|
100
|
+
url?: string;
|
|
101
|
+
urls?: {
|
|
102
|
+
original?: string;
|
|
103
|
+
preview?: string;
|
|
104
|
+
thumbnail?: string;
|
|
105
|
+
[key: string]: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
created_at: string;
|
|
108
|
+
updated_at: string;
|
|
109
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export interface Bundle {
|
|
2
|
+
uuid: string;
|
|
3
|
+
bundle_uuid?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
sku: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
type: 'fixed_quantity' | 'kit' | 'standard' | 'dynamic';
|
|
9
|
+
price: number;
|
|
10
|
+
status: 'active' | 'inactive' | 'draft';
|
|
11
|
+
is_active: boolean;
|
|
12
|
+
discount_type: 'percentage' | 'fixed';
|
|
13
|
+
discount_percentage?: number;
|
|
14
|
+
discount_amount?: number;
|
|
15
|
+
savings_text?: string;
|
|
16
|
+
start_date?: string;
|
|
17
|
+
end_date?: string;
|
|
18
|
+
items: BundleItem[];
|
|
19
|
+
bundle_items?: BundleItem[];
|
|
20
|
+
media?: any[];
|
|
21
|
+
analytics?: {
|
|
22
|
+
total_sold: number;
|
|
23
|
+
revenue: number;
|
|
24
|
+
avg_savings: number;
|
|
25
|
+
};
|
|
26
|
+
inventory_mode?: 'virtual' | 'physical' | 'mixed';
|
|
27
|
+
physical_stock_quantity?: number;
|
|
28
|
+
physical_stock_reserved?: number;
|
|
29
|
+
track_inventory?: boolean;
|
|
30
|
+
show_when_components_available?: boolean;
|
|
31
|
+
fallback_to_virtual?: boolean;
|
|
32
|
+
show_out_of_stock_when_physical_depleted?: boolean;
|
|
33
|
+
created_at: string;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
}
|
|
36
|
+
export interface BundleItem {
|
|
37
|
+
uuid?: string;
|
|
38
|
+
bundle_uuid?: string;
|
|
39
|
+
product_uuid: string;
|
|
40
|
+
quantity: number;
|
|
41
|
+
is_required?: boolean;
|
|
42
|
+
discount_type?: 'percentage' | 'fixed';
|
|
43
|
+
discount_amount?: number;
|
|
44
|
+
sort_order: number;
|
|
45
|
+
product?: BundleProduct;
|
|
46
|
+
temp_id?: string;
|
|
47
|
+
product_name?: string;
|
|
48
|
+
product_sku?: string;
|
|
49
|
+
product_price?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface BundleProduct {
|
|
52
|
+
uuid: string;
|
|
53
|
+
name: string;
|
|
54
|
+
sku: string;
|
|
55
|
+
price: number;
|
|
56
|
+
thumbnail_url?: string;
|
|
57
|
+
image_url?: string;
|
|
58
|
+
medium_url?: string;
|
|
59
|
+
preview_url?: string;
|
|
60
|
+
status?: string;
|
|
61
|
+
quantity?: number;
|
|
62
|
+
stock_level?: number;
|
|
63
|
+
in_stock?: boolean;
|
|
64
|
+
primary_image?: {
|
|
65
|
+
uuid?: string;
|
|
66
|
+
url?: string;
|
|
67
|
+
thumb_url?: string;
|
|
68
|
+
small_url?: string;
|
|
69
|
+
medium_url?: string;
|
|
70
|
+
large_url?: string;
|
|
71
|
+
alt_text?: string;
|
|
72
|
+
thumb?: string;
|
|
73
|
+
small?: string;
|
|
74
|
+
responsive?: Record<string, string>;
|
|
75
|
+
original?: string;
|
|
76
|
+
};
|
|
77
|
+
gallery_images?: any[];
|
|
78
|
+
}
|
|
79
|
+
export interface BundleInventoryConversion {
|
|
80
|
+
uuid: string;
|
|
81
|
+
bundle_uuid: string;
|
|
82
|
+
product_uuid: string;
|
|
83
|
+
quantity_per_bundle: number;
|
|
84
|
+
created_at: string;
|
|
85
|
+
updated_at: string;
|
|
86
|
+
}
|
|
87
|
+
export interface CreateBundlePayload {
|
|
88
|
+
name: string;
|
|
89
|
+
sku: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
type: 'fixed_quantity' | 'kit' | 'standard' | 'dynamic';
|
|
92
|
+
price?: number;
|
|
93
|
+
is_active?: boolean;
|
|
94
|
+
status?: 'active' | 'inactive' | 'draft';
|
|
95
|
+
discount_type: 'percentage' | 'fixed';
|
|
96
|
+
discount_percentage?: number;
|
|
97
|
+
discount_amount?: number;
|
|
98
|
+
start_date?: string;
|
|
99
|
+
end_date?: string;
|
|
100
|
+
items: CreateBundleItemPayload[];
|
|
101
|
+
}
|
|
102
|
+
export interface CreateBundleItemPayload {
|
|
103
|
+
product_uuid: string;
|
|
104
|
+
quantity: number;
|
|
105
|
+
is_required?: boolean;
|
|
106
|
+
sort_order?: number;
|
|
107
|
+
}
|
|
108
|
+
export interface UpdateBundlePayload extends Partial<CreateBundlePayload> {
|
|
109
|
+
uuid?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface BundleFilters {
|
|
112
|
+
search?: string;
|
|
113
|
+
status?: string;
|
|
114
|
+
type?: string;
|
|
115
|
+
page?: number;
|
|
116
|
+
per_page?: number;
|
|
117
|
+
sort_by?: string;
|
|
118
|
+
sort_order?: 'asc' | 'desc';
|
|
119
|
+
}
|
|
120
|
+
export interface BundleInventoryStatus {
|
|
121
|
+
bundle_uuid: string;
|
|
122
|
+
virtual_max_bundles: number;
|
|
123
|
+
physical_available: number;
|
|
124
|
+
total_available: number;
|
|
125
|
+
component_status: Array<{
|
|
126
|
+
product: string;
|
|
127
|
+
required_per_bundle: number;
|
|
128
|
+
available: number;
|
|
129
|
+
max_bundles: number;
|
|
130
|
+
}>;
|
|
131
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface BundleAnalyticsSummary {
|
|
2
|
+
total_revenue: number;
|
|
3
|
+
units_sold: number;
|
|
4
|
+
average_discount: number;
|
|
5
|
+
top_bundle: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
revenue: number;
|
|
9
|
+
} | null;
|
|
10
|
+
}
|
|
11
|
+
export interface BundleTrend {
|
|
12
|
+
date: string;
|
|
13
|
+
revenue: number;
|
|
14
|
+
units_sold: number;
|
|
15
|
+
discount_percentage: number;
|
|
16
|
+
}
|
|
17
|
+
export interface TopBundle {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
sku: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
units_sold: number;
|
|
23
|
+
revenue: number;
|
|
24
|
+
average_discount: number;
|
|
25
|
+
conversion_rate: number;
|
|
26
|
+
}
|
|
27
|
+
export interface NoSalesBundle {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
slug: string;
|
|
31
|
+
created_at: string;
|
|
32
|
+
is_active: boolean;
|
|
33
|
+
products_count: number;
|
|
34
|
+
discount_percentage: number;
|
|
35
|
+
featured_image_url?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface BundleAnalyticsFilter {
|
|
38
|
+
date_from: string;
|
|
39
|
+
date_to: string;
|
|
40
|
+
store_id?: string;
|
|
41
|
+
category_id?: string;
|
|
42
|
+
status?: 'active' | 'inactive' | 'all';
|
|
43
|
+
}
|
|
44
|
+
export interface BundlePerformance {
|
|
45
|
+
bundle_id: string;
|
|
46
|
+
bundle_name: string;
|
|
47
|
+
period_metrics: {
|
|
48
|
+
revenue: number;
|
|
49
|
+
units_sold: number;
|
|
50
|
+
orders_count: number;
|
|
51
|
+
average_order_value: number;
|
|
52
|
+
discount_given: number;
|
|
53
|
+
};
|
|
54
|
+
comparison_metrics?: {
|
|
55
|
+
revenue_change: number;
|
|
56
|
+
units_change: number;
|
|
57
|
+
orders_change: number;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export interface BundleAnalyticsExport {
|
|
61
|
+
format: 'csv' | 'excel' | 'pdf';
|
|
62
|
+
filters: BundleAnalyticsFilter;
|
|
63
|
+
include_details: boolean;
|
|
64
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export interface Bundle {
|
|
2
|
+
uuid: string;
|
|
3
|
+
name: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
sku?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
short_description?: string;
|
|
8
|
+
bundle_type: 'fixed' | 'dynamic' | 'kit';
|
|
9
|
+
is_active: boolean;
|
|
10
|
+
all_items_required: boolean;
|
|
11
|
+
allow_partial_fulfillment: boolean;
|
|
12
|
+
show_savings: boolean;
|
|
13
|
+
track_inventory: boolean;
|
|
14
|
+
allow_break_apart?: boolean;
|
|
15
|
+
inventory_mode: 'physical' | 'virtual' | 'mixed';
|
|
16
|
+
physical_stock_quantity: number;
|
|
17
|
+
physical_stock_reserved: number;
|
|
18
|
+
show_out_of_stock_when_physical_depleted: boolean;
|
|
19
|
+
fallback_to_virtual: boolean;
|
|
20
|
+
show_when_components_available: boolean;
|
|
21
|
+
total_value?: number;
|
|
22
|
+
bundle_price?: number;
|
|
23
|
+
savings_amount?: number;
|
|
24
|
+
savings_percentage?: number;
|
|
25
|
+
display_order: number;
|
|
26
|
+
metadata?: Record<string, any>;
|
|
27
|
+
meta_title?: string;
|
|
28
|
+
meta_description?: string;
|
|
29
|
+
meta_keywords?: string;
|
|
30
|
+
created_at: string;
|
|
31
|
+
updated_at: string;
|
|
32
|
+
deleted_at?: string;
|
|
33
|
+
items?: BundleItem[];
|
|
34
|
+
products?: Product[];
|
|
35
|
+
}
|
|
36
|
+
export interface BundleItem {
|
|
37
|
+
uuid: string;
|
|
38
|
+
bundle_uuid: string;
|
|
39
|
+
product_uuid: string;
|
|
40
|
+
quantity: number;
|
|
41
|
+
is_required: boolean;
|
|
42
|
+
display_order: number;
|
|
43
|
+
override_price?: number;
|
|
44
|
+
created_at: string;
|
|
45
|
+
updated_at: string;
|
|
46
|
+
product?: Product;
|
|
47
|
+
bundle?: Bundle;
|
|
48
|
+
}
|
|
49
|
+
export interface Product {
|
|
50
|
+
uuid: string;
|
|
51
|
+
name: string;
|
|
52
|
+
sku: string;
|
|
53
|
+
price: number;
|
|
54
|
+
getAvailableQuantity(): number;
|
|
55
|
+
reserveInventory(quantity: number): void;
|
|
56
|
+
releaseReservedInventory(quantity: number): void;
|
|
57
|
+
decrementInventory(quantity: number): void;
|
|
58
|
+
}
|
|
59
|
+
export interface BundleInventoryStatus {
|
|
60
|
+
mode: 'physical' | 'virtual' | 'mixed';
|
|
61
|
+
physical_stock: number;
|
|
62
|
+
physical_reserved: number;
|
|
63
|
+
physical_available: number;
|
|
64
|
+
virtual_max_bundles?: number;
|
|
65
|
+
component_status?: ComponentStatus[];
|
|
66
|
+
}
|
|
67
|
+
export interface ComponentStatus {
|
|
68
|
+
product: string;
|
|
69
|
+
required_per_bundle: number;
|
|
70
|
+
available: number;
|
|
71
|
+
max_bundles: number;
|
|
72
|
+
}
|
|
73
|
+
export interface BundleAvailability {
|
|
74
|
+
available: boolean;
|
|
75
|
+
method: 'physical' | 'virtual' | 'mixed';
|
|
76
|
+
available_quantity: number;
|
|
77
|
+
physical_quantity?: number;
|
|
78
|
+
virtual_quantity?: number;
|
|
79
|
+
physical_available?: number;
|
|
80
|
+
virtual_available?: number;
|
|
81
|
+
reason?: string;
|
|
82
|
+
insufficient_items?: InsufficientItem[];
|
|
83
|
+
}
|
|
84
|
+
export interface InsufficientItem {
|
|
85
|
+
product: string;
|
|
86
|
+
required: number;
|
|
87
|
+
available: number;
|
|
88
|
+
}
|
|
89
|
+
export interface BundleInventoryConversion {
|
|
90
|
+
uuid: string;
|
|
91
|
+
bundle_uuid: string;
|
|
92
|
+
conversion_quantity: number;
|
|
93
|
+
notes?: string;
|
|
94
|
+
converted_by?: string;
|
|
95
|
+
deductions: Record<string, number>;
|
|
96
|
+
created_at: string;
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}
|
|
99
|
+
export interface BundleOrderFulfillment {
|
|
100
|
+
uuid: string;
|
|
101
|
+
bundle_uuid: string;
|
|
102
|
+
order_item_uuid: string;
|
|
103
|
+
fulfillment_method: 'physical' | 'virtual';
|
|
104
|
+
quantity: number;
|
|
105
|
+
component_deductions?: Record<string, number>;
|
|
106
|
+
created_at: string;
|
|
107
|
+
updated_at: string;
|
|
108
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export interface CartItem {
|
|
2
|
+
id: number;
|
|
3
|
+
product_uuid: string;
|
|
4
|
+
quantity: number;
|
|
5
|
+
price: number;
|
|
6
|
+
currency: string;
|
|
7
|
+
subtotal: number;
|
|
8
|
+
product_name?: string;
|
|
9
|
+
product_slug?: string;
|
|
10
|
+
thumbnail_url?: string;
|
|
11
|
+
image_url?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
final_price?: number;
|
|
14
|
+
product_details?: unknown;
|
|
15
|
+
saved_for_later?: boolean;
|
|
16
|
+
min_order_qty?: number;
|
|
17
|
+
quantity_increment?: number;
|
|
18
|
+
max_order_qty?: number | null;
|
|
19
|
+
sku?: string;
|
|
20
|
+
store_uuid?: string;
|
|
21
|
+
store_name?: string;
|
|
22
|
+
store_slug?: string;
|
|
23
|
+
is_variant?: boolean;
|
|
24
|
+
parent_uuid?: string;
|
|
25
|
+
parent_name?: string;
|
|
26
|
+
variant_specifications?: Array<{
|
|
27
|
+
name: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}>;
|
|
30
|
+
product_uom?: {
|
|
31
|
+
uom_id: number;
|
|
32
|
+
uom_name: string;
|
|
33
|
+
conversion_factor: number;
|
|
34
|
+
is_base_uom: boolean;
|
|
35
|
+
};
|
|
36
|
+
product?: {
|
|
37
|
+
product_type: string;
|
|
38
|
+
};
|
|
39
|
+
bundle_data?: {
|
|
40
|
+
allow_break_apart: boolean;
|
|
41
|
+
savings_amount: number;
|
|
42
|
+
bundle_type: string;
|
|
43
|
+
items: Array<{
|
|
44
|
+
product_uuid: string;
|
|
45
|
+
product_name: string;
|
|
46
|
+
quantity: number;
|
|
47
|
+
individual_price: number;
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
metadata?: {
|
|
51
|
+
from_bundle?: string;
|
|
52
|
+
from_bundle_name?: string;
|
|
53
|
+
break_apart_timestamp?: string;
|
|
54
|
+
};
|
|
55
|
+
is_reward_redemption?: boolean;
|
|
56
|
+
points_required?: number;
|
|
57
|
+
reward_points_required?: number;
|
|
58
|
+
}
|
|
59
|
+
export interface Cart {
|
|
60
|
+
id: number;
|
|
61
|
+
cart_uuid: string;
|
|
62
|
+
type: string;
|
|
63
|
+
status: string;
|
|
64
|
+
items_count: number;
|
|
65
|
+
total_price: number;
|
|
66
|
+
items: CartItem[];
|
|
67
|
+
cartItems?: CartItem[];
|
|
68
|
+
user_id?: number;
|
|
69
|
+
guest_token?: string;
|
|
70
|
+
session_id?: string;
|
|
71
|
+
created_at?: string;
|
|
72
|
+
updated_at?: string;
|
|
73
|
+
version?: number;
|
|
74
|
+
store_uuid?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface BundleBreakApartResponse {
|
|
77
|
+
removed_item_id: string;
|
|
78
|
+
added_items: CartItem[];
|
|
79
|
+
new_total: number;
|
|
80
|
+
savings_lost: number;
|
|
81
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkout type definitions for the marketplace application
|
|
3
|
+
*/
|
|
4
|
+
export interface CheckoutSession {
|
|
5
|
+
uuid: string;
|
|
6
|
+
status: string;
|
|
7
|
+
billing_address_uuid?: string;
|
|
8
|
+
shipping_address_uuid?: string;
|
|
9
|
+
shipping_method_uuid?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FinalizeCheckoutResponse {
|
|
12
|
+
status: 'processing' | 'completed' | 'failed';
|
|
13
|
+
payment_uuid?: string;
|
|
14
|
+
transaction_id?: string;
|
|
15
|
+
order_uuid?: string;
|
|
16
|
+
error?: string;
|
|
17
|
+
message?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ShippingMethod {
|
|
20
|
+
uuid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
carrier: string;
|
|
23
|
+
rate: number;
|
|
24
|
+
description?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface CartItem {
|
|
27
|
+
uuid: string;
|
|
28
|
+
product_uuid: string;
|
|
29
|
+
quantity: number;
|
|
30
|
+
price: number;
|
|
31
|
+
subtotal: number;
|
|
32
|
+
}
|
|
33
|
+
export interface Cart {
|
|
34
|
+
uuid: string;
|
|
35
|
+
items: CartItem[];
|
|
36
|
+
subtotal: number;
|
|
37
|
+
tax: number;
|
|
38
|
+
shipping: number;
|
|
39
|
+
total: number;
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component configuration interface for content builder components
|
|
3
|
+
*/
|
|
4
|
+
export interface ComponentConfig {
|
|
5
|
+
name: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
description: string;
|
|
8
|
+
version: string;
|
|
9
|
+
category: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
defaultData?: Record<string, any>;
|
|
12
|
+
defaultSettings?: Record<string, any>;
|
|
13
|
+
schema?: {
|
|
14
|
+
data?: Record<string, any>;
|
|
15
|
+
settings?: Record<string, any>;
|
|
16
|
+
};
|
|
17
|
+
presets?: Array<{
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
data?: Record<string, any>;
|
|
21
|
+
settings?: Record<string, any>;
|
|
22
|
+
}>;
|
|
23
|
+
allowedSlots?: string[];
|
|
24
|
+
slotRestrictions?: string[];
|
|
25
|
+
allowedModels?: string[];
|
|
26
|
+
}
|