@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,127 @@
|
|
|
1
|
+
export interface SlotConfig {
|
|
2
|
+
content?: string;
|
|
3
|
+
background?: string;
|
|
4
|
+
padding?: string;
|
|
5
|
+
margin?: string;
|
|
6
|
+
alignment?: string;
|
|
7
|
+
styles?: Record<string, string>;
|
|
8
|
+
breakpointStyles?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface LayoutSlot {
|
|
11
|
+
uuid?: string;
|
|
12
|
+
slot_uuid?: string;
|
|
13
|
+
layout_slot_uuid?: string;
|
|
14
|
+
slot_name?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
slot_config?: SlotConfig;
|
|
17
|
+
column_uuid?: string;
|
|
18
|
+
order?: number;
|
|
19
|
+
content_config?: {
|
|
20
|
+
allowed_blocks?: string[];
|
|
21
|
+
max_blocks?: number;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface ColumnConfig {
|
|
27
|
+
width?: string;
|
|
28
|
+
background?: string;
|
|
29
|
+
padding?: string;
|
|
30
|
+
margin?: string;
|
|
31
|
+
alignment?: string;
|
|
32
|
+
classList?: {
|
|
33
|
+
classes: string[];
|
|
34
|
+
style: Record<string, string>;
|
|
35
|
+
};
|
|
36
|
+
breakpointStyles?: Record<string, unknown>;
|
|
37
|
+
}
|
|
38
|
+
export interface LayoutColumn {
|
|
39
|
+
uuid?: string;
|
|
40
|
+
column_uuid: string;
|
|
41
|
+
section_uuid: string;
|
|
42
|
+
label?: string;
|
|
43
|
+
order: number;
|
|
44
|
+
width?: number;
|
|
45
|
+
responsive_width?: {
|
|
46
|
+
desktop?: number;
|
|
47
|
+
tablet?: number;
|
|
48
|
+
mobile?: number;
|
|
49
|
+
[key: string]: number | undefined;
|
|
50
|
+
};
|
|
51
|
+
config?: ColumnConfig;
|
|
52
|
+
slots?: LayoutSlot[];
|
|
53
|
+
}
|
|
54
|
+
export interface SectionConfig {
|
|
55
|
+
background?: string;
|
|
56
|
+
padding?: string;
|
|
57
|
+
margin?: string;
|
|
58
|
+
width?: string;
|
|
59
|
+
maxWidth?: string;
|
|
60
|
+
alignment?: string;
|
|
61
|
+
breakpointStyles?: Record<string, unknown>;
|
|
62
|
+
}
|
|
63
|
+
export interface LayoutSection {
|
|
64
|
+
uuid?: string;
|
|
65
|
+
section_uuid: string;
|
|
66
|
+
layout_uuid?: string;
|
|
67
|
+
parent_section_uuid?: string | null;
|
|
68
|
+
section_type: 'full-width' | 'container' | 'custom' | 'generic' | string;
|
|
69
|
+
columns?: LayoutColumn[];
|
|
70
|
+
childSections?: LayoutSection[];
|
|
71
|
+
order: number;
|
|
72
|
+
config?: SectionConfig & {
|
|
73
|
+
visibility?: {
|
|
74
|
+
desktop?: boolean;
|
|
75
|
+
tablet?: boolean;
|
|
76
|
+
mobile?: boolean;
|
|
77
|
+
};
|
|
78
|
+
custom_classes?: string;
|
|
79
|
+
[key: string]: unknown;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export interface LayoutConfig {
|
|
83
|
+
maxWidth?: string;
|
|
84
|
+
[key: string]: unknown;
|
|
85
|
+
}
|
|
86
|
+
export interface Layout {
|
|
87
|
+
uuid?: string;
|
|
88
|
+
layout_uuid: string;
|
|
89
|
+
name?: string;
|
|
90
|
+
layout_name?: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
store_uuid?: string | null;
|
|
93
|
+
layout_config?: LayoutConfig;
|
|
94
|
+
config?: LayoutConfig;
|
|
95
|
+
sections?: LayoutSection[];
|
|
96
|
+
breakpoints?: unknown[];
|
|
97
|
+
is_default?: boolean;
|
|
98
|
+
created_at?: string;
|
|
99
|
+
updated_at?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface LayoutData extends Layout {
|
|
102
|
+
}
|
|
103
|
+
export interface LayoutRevision {
|
|
104
|
+
id: string | number;
|
|
105
|
+
revision_uuid: string;
|
|
106
|
+
layout_uuid: string;
|
|
107
|
+
timestamp: string;
|
|
108
|
+
created_at: string;
|
|
109
|
+
description: string;
|
|
110
|
+
revision_note?: string;
|
|
111
|
+
user: {
|
|
112
|
+
id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
};
|
|
115
|
+
changes?: {
|
|
116
|
+
type: 'section' | 'column' | 'slot' | 'layout';
|
|
117
|
+
action: 'add' | 'update' | 'delete' | 'move';
|
|
118
|
+
itemId: string;
|
|
119
|
+
details?: string;
|
|
120
|
+
}[];
|
|
121
|
+
}
|
|
122
|
+
export interface ResponsiveWidth {
|
|
123
|
+
desktop?: number;
|
|
124
|
+
tablet?: number;
|
|
125
|
+
mobile?: number;
|
|
126
|
+
[key: string]: number | undefined;
|
|
127
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface MediaScope {
|
|
2
|
+
type: 'product' | 'category' | 'user' | 'store' | 'marketplace';
|
|
3
|
+
uuid: string;
|
|
4
|
+
collection?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ReorderMove {
|
|
7
|
+
uuid: string;
|
|
8
|
+
newIndex: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SearchParams {
|
|
11
|
+
q?: string;
|
|
12
|
+
page?: number;
|
|
13
|
+
per_page?: number;
|
|
14
|
+
mime_types?: string[];
|
|
15
|
+
tags?: string[];
|
|
16
|
+
}
|
|
17
|
+
import type { Media } from '~/types/media';
|
|
18
|
+
export interface MediaResponse {
|
|
19
|
+
data: Media[];
|
|
20
|
+
meta: {
|
|
21
|
+
current_page: number;
|
|
22
|
+
last_page: number;
|
|
23
|
+
per_page: number;
|
|
24
|
+
total: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface PermissionSet {
|
|
28
|
+
canUpload: boolean;
|
|
29
|
+
canEdit: boolean;
|
|
30
|
+
canDelete: boolean;
|
|
31
|
+
canReorder: boolean;
|
|
32
|
+
maxFileSize?: number;
|
|
33
|
+
allowedMimeTypes?: string[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for media management components
|
|
3
|
+
* Defines interfaces for Media objects, album structures, and API responses
|
|
4
|
+
*/
|
|
5
|
+
import type { ImageApiResponse as ImportedImageApiResponse } from '../types/image';
|
|
6
|
+
export type Image = Media;
|
|
7
|
+
export type ImageApiResponse = ImportedImageApiResponse;
|
|
8
|
+
/**
|
|
9
|
+
* Represents a media item for basic operations (legacy compatibility)
|
|
10
|
+
*/
|
|
11
|
+
export interface MediaItem {
|
|
12
|
+
uuid: string;
|
|
13
|
+
file_name: string;
|
|
14
|
+
mime_type: string;
|
|
15
|
+
size: number;
|
|
16
|
+
caption: string | null;
|
|
17
|
+
alt_text: string | null;
|
|
18
|
+
disk: string;
|
|
19
|
+
conversions: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
custom_properties: Record<string, unknown>;
|
|
23
|
+
generated_conversions: {
|
|
24
|
+
[key: string]: boolean;
|
|
25
|
+
};
|
|
26
|
+
original_url: string;
|
|
27
|
+
preview_url: string;
|
|
28
|
+
created_at: string;
|
|
29
|
+
updated_at: string;
|
|
30
|
+
urls?: {
|
|
31
|
+
[key: string]: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Basic collection response (legacy compatibility)
|
|
36
|
+
*/
|
|
37
|
+
export interface MediaCollection {
|
|
38
|
+
data: MediaItem[];
|
|
39
|
+
meta: {
|
|
40
|
+
current_page: number;
|
|
41
|
+
total: number;
|
|
42
|
+
per_page: number;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Media update payload for API requests
|
|
47
|
+
*/
|
|
48
|
+
export interface MediaUpdatePayload {
|
|
49
|
+
alt_text?: string | null;
|
|
50
|
+
caption?: string | null;
|
|
51
|
+
custom_properties?: Record<string, unknown>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Media variant representing a processed version of media
|
|
55
|
+
*/
|
|
56
|
+
export interface MediaVariant {
|
|
57
|
+
uuid: string;
|
|
58
|
+
status: 'pending' | 'processing' | 'complete' | 'failed';
|
|
59
|
+
disk: string;
|
|
60
|
+
path: string;
|
|
61
|
+
data: Record<string, unknown>;
|
|
62
|
+
image_uuid?: string;
|
|
63
|
+
url?: string;
|
|
64
|
+
pipeline?: any;
|
|
65
|
+
error?: string;
|
|
66
|
+
created_at?: string;
|
|
67
|
+
updated_at?: string;
|
|
68
|
+
progress?: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Comprehensive media representation used throughout the system
|
|
72
|
+
*/
|
|
73
|
+
export interface Media {
|
|
74
|
+
uuid: string;
|
|
75
|
+
name: string;
|
|
76
|
+
filename?: string;
|
|
77
|
+
file_name: string;
|
|
78
|
+
mime_type: string;
|
|
79
|
+
size: number;
|
|
80
|
+
formatted_size?: string;
|
|
81
|
+
width?: number;
|
|
82
|
+
height?: number;
|
|
83
|
+
is_image?: boolean;
|
|
84
|
+
thumbnail_url?: string;
|
|
85
|
+
url?: string;
|
|
86
|
+
original_url: string | null;
|
|
87
|
+
album_uuid?: string | null;
|
|
88
|
+
collection_name: string;
|
|
89
|
+
mediaCategory?: 'product' | 'temporary' | 'user_content' | string;
|
|
90
|
+
created_at: string | null;
|
|
91
|
+
updated_at: string | null;
|
|
92
|
+
disk: string;
|
|
93
|
+
responsive_images?: {
|
|
94
|
+
[key: string]: {
|
|
95
|
+
urls: string[];
|
|
96
|
+
base64svg?: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
custom_properties: Record<string, unknown>;
|
|
100
|
+
manipulations?: Record<string, any>;
|
|
101
|
+
order_column?: number;
|
|
102
|
+
conversions_disk?: string;
|
|
103
|
+
extension?: string;
|
|
104
|
+
generated_conversions?: Record<string, boolean>;
|
|
105
|
+
variants?: MediaVariant[];
|
|
106
|
+
srcset?: {
|
|
107
|
+
[key: string]: string | null;
|
|
108
|
+
};
|
|
109
|
+
conversions?: {
|
|
110
|
+
[key: string]: string;
|
|
111
|
+
};
|
|
112
|
+
conversion_urls?: {
|
|
113
|
+
thumb?: string;
|
|
114
|
+
preview?: string;
|
|
115
|
+
[key: string]: string | undefined;
|
|
116
|
+
};
|
|
117
|
+
caption?: string | null;
|
|
118
|
+
alt_text?: string | null;
|
|
119
|
+
isProcessing?: boolean;
|
|
120
|
+
placeholderSvg?: string | null;
|
|
121
|
+
thumbUrl?: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Represents an album for organizing media
|
|
125
|
+
*/
|
|
126
|
+
export interface Album {
|
|
127
|
+
uuid: string;
|
|
128
|
+
id?: string;
|
|
129
|
+
name: string;
|
|
130
|
+
parent_id?: string | null;
|
|
131
|
+
parentUuid: string | null;
|
|
132
|
+
children?: Album[];
|
|
133
|
+
userUuid?: string;
|
|
134
|
+
order: number;
|
|
135
|
+
created_at?: string;
|
|
136
|
+
updated_at?: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Metadata for API pagination
|
|
140
|
+
*/
|
|
141
|
+
export interface PaginationMeta {
|
|
142
|
+
current_page: number;
|
|
143
|
+
from?: number;
|
|
144
|
+
last_page: number;
|
|
145
|
+
path?: string;
|
|
146
|
+
per_page: number;
|
|
147
|
+
to?: number;
|
|
148
|
+
total: number;
|
|
149
|
+
links?: Array<{
|
|
150
|
+
url: string | null;
|
|
151
|
+
label: string;
|
|
152
|
+
active: boolean;
|
|
153
|
+
}>;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* API response for a single media item
|
|
157
|
+
*/
|
|
158
|
+
export interface MediaResponse {
|
|
159
|
+
data: Media;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* API response for a collection of media items
|
|
163
|
+
*/
|
|
164
|
+
export interface MediaCollectionResponse {
|
|
165
|
+
data: Media[];
|
|
166
|
+
meta: PaginationMeta;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Search parameters for media filtering
|
|
170
|
+
*/
|
|
171
|
+
export interface MediaSearchParams {
|
|
172
|
+
q?: string | null;
|
|
173
|
+
album_uuid?: string | null;
|
|
174
|
+
album_id?: string | null;
|
|
175
|
+
collection_name?: string | null;
|
|
176
|
+
page?: number;
|
|
177
|
+
per_page?: number;
|
|
178
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification Types
|
|
3
|
+
*
|
|
4
|
+
* TypeScript interfaces for the notification system
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Core notification model
|
|
8
|
+
*/
|
|
9
|
+
export interface Notification {
|
|
10
|
+
id: string;
|
|
11
|
+
type_key: string;
|
|
12
|
+
title: string;
|
|
13
|
+
message: string;
|
|
14
|
+
data?: Record<string, unknown>;
|
|
15
|
+
read_at: string | null;
|
|
16
|
+
viewed_at?: string | null;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Notification type model
|
|
22
|
+
*/
|
|
23
|
+
export interface NotificationType {
|
|
24
|
+
id: string;
|
|
25
|
+
key: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
available_channels: string[];
|
|
29
|
+
is_user_configurable: boolean;
|
|
30
|
+
is_critical: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Notification channel model
|
|
34
|
+
*/
|
|
35
|
+
export interface NotificationChannel {
|
|
36
|
+
id: string;
|
|
37
|
+
key: string;
|
|
38
|
+
name: string;
|
|
39
|
+
is_enabled: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* User notification preference
|
|
43
|
+
*/
|
|
44
|
+
export interface NotificationPreference {
|
|
45
|
+
notification_type_id: string;
|
|
46
|
+
channels: string[];
|
|
47
|
+
is_opted_out: boolean;
|
|
48
|
+
is_enabled: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Combined notification type and preference
|
|
52
|
+
*/
|
|
53
|
+
export interface NotificationPreferenceWithType {
|
|
54
|
+
type: NotificationType;
|
|
55
|
+
preference: NotificationPreference;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* API pagination metadata
|
|
59
|
+
*/
|
|
60
|
+
export interface PaginationMeta {
|
|
61
|
+
currentPage: number;
|
|
62
|
+
from: number;
|
|
63
|
+
lastPage: number;
|
|
64
|
+
path: string;
|
|
65
|
+
perPage: number;
|
|
66
|
+
to: number;
|
|
67
|
+
total: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* API pagination links
|
|
71
|
+
*/
|
|
72
|
+
export interface PaginationLinks {
|
|
73
|
+
first: string;
|
|
74
|
+
last: string;
|
|
75
|
+
prev: string | null;
|
|
76
|
+
next: string | null;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* API response for notification list
|
|
80
|
+
*/
|
|
81
|
+
export interface NotificationListResponse {
|
|
82
|
+
data: Notification[];
|
|
83
|
+
meta: PaginationMeta;
|
|
84
|
+
links: PaginationLinks;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* API response for unread count
|
|
88
|
+
*/
|
|
89
|
+
export interface UnreadCountResponse {
|
|
90
|
+
unread_count: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* API response for notification preferences
|
|
94
|
+
*/
|
|
95
|
+
export interface NotificationPreferencesResponse {
|
|
96
|
+
data: NotificationPreferenceWithType[];
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Parameters for updating notification preferences
|
|
100
|
+
*/
|
|
101
|
+
export interface UpdatePreferenceParams {
|
|
102
|
+
preferences: Array<{
|
|
103
|
+
notification_type_key: string;
|
|
104
|
+
channels: string[];
|
|
105
|
+
is_opted_out: boolean;
|
|
106
|
+
}>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Parameters for listing notifications
|
|
110
|
+
*/
|
|
111
|
+
export interface NotificationListParams {
|
|
112
|
+
page?: number;
|
|
113
|
+
limit?: number;
|
|
114
|
+
type?: string;
|
|
115
|
+
read?: boolean;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Real-time notification event data
|
|
119
|
+
*/
|
|
120
|
+
export interface NotificationReceivedEvent {
|
|
121
|
+
notification: Notification;
|
|
122
|
+
unread_count: number;
|
|
123
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
export interface OrderFilters {
|
|
2
|
+
dateRange: {
|
|
3
|
+
start: Date | null;
|
|
4
|
+
end: Date | null;
|
|
5
|
+
};
|
|
6
|
+
status: string[];
|
|
7
|
+
amountRange: {
|
|
8
|
+
min: number | null;
|
|
9
|
+
max: number | null;
|
|
10
|
+
};
|
|
11
|
+
searchQuery: string;
|
|
12
|
+
paymentMethod: string[];
|
|
13
|
+
shippingMethod: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface DateRangePickerProps {
|
|
16
|
+
modelValue: {
|
|
17
|
+
start: Date | null;
|
|
18
|
+
end: Date | null;
|
|
19
|
+
};
|
|
20
|
+
quickFilters?: boolean;
|
|
21
|
+
maxDate?: Date;
|
|
22
|
+
minDate?: Date;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DateRangePickerEmits {
|
|
26
|
+
'update:modelValue': [value: {
|
|
27
|
+
start: Date | null;
|
|
28
|
+
end: Date | null;
|
|
29
|
+
}];
|
|
30
|
+
'change': [value: {
|
|
31
|
+
start: Date | null;
|
|
32
|
+
end: Date | null;
|
|
33
|
+
}];
|
|
34
|
+
}
|
|
35
|
+
export interface OrderFiltersProps {
|
|
36
|
+
modelValue: OrderFilters;
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
orderCounts?: Record<string, number>;
|
|
39
|
+
}
|
|
40
|
+
export interface OrderStatsProps {
|
|
41
|
+
dateRange: {
|
|
42
|
+
start: Date | null;
|
|
43
|
+
end: Date | null;
|
|
44
|
+
};
|
|
45
|
+
filters: OrderFilters;
|
|
46
|
+
}
|
|
47
|
+
export interface OrderStatsData {
|
|
48
|
+
totalOrders: number;
|
|
49
|
+
totalSpent: number;
|
|
50
|
+
averageOrder: number;
|
|
51
|
+
comparisonPeriod?: {
|
|
52
|
+
totalOrders: number;
|
|
53
|
+
totalSpent: number;
|
|
54
|
+
percentChange: number;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface OrderSearchProps {
|
|
58
|
+
modelValue: string;
|
|
59
|
+
suggestions?: SearchSuggestion[];
|
|
60
|
+
loading?: boolean;
|
|
61
|
+
placeholder?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface SearchSuggestion {
|
|
64
|
+
type: 'order' | 'product' | 'sku' | 'history';
|
|
65
|
+
value: string;
|
|
66
|
+
label: string;
|
|
67
|
+
count?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface PaginationState {
|
|
70
|
+
currentPage: number;
|
|
71
|
+
perPage: number;
|
|
72
|
+
total: number;
|
|
73
|
+
lastPage?: number;
|
|
74
|
+
}
|
|
75
|
+
export interface SavedFilter {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
description?: string;
|
|
79
|
+
filters: OrderFilters;
|
|
80
|
+
tags?: string[];
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
lastUsed?: Date;
|
|
83
|
+
}
|
|
84
|
+
export interface Order {
|
|
85
|
+
uuid: string;
|
|
86
|
+
order_number: string;
|
|
87
|
+
status: string;
|
|
88
|
+
total: number;
|
|
89
|
+
created_at: string;
|
|
90
|
+
items_count?: number;
|
|
91
|
+
items?: OrderItem[];
|
|
92
|
+
}
|
|
93
|
+
export interface OrderItem {
|
|
94
|
+
id: string;
|
|
95
|
+
product_name: string;
|
|
96
|
+
quantity: number;
|
|
97
|
+
}
|
|
98
|
+
export interface OrdersQueryParams {
|
|
99
|
+
page?: number;
|
|
100
|
+
per_page?: number;
|
|
101
|
+
start_date?: string;
|
|
102
|
+
end_date?: string;
|
|
103
|
+
status?: string[];
|
|
104
|
+
min_amount?: number;
|
|
105
|
+
max_amount?: number;
|
|
106
|
+
search?: string;
|
|
107
|
+
payment_method?: string[];
|
|
108
|
+
shipping_method?: string[];
|
|
109
|
+
sort_by?: 'date' | 'amount' | 'status' | 'order_number';
|
|
110
|
+
sort_order?: 'asc' | 'desc';
|
|
111
|
+
}
|
|
112
|
+
export interface OrdersResponse {
|
|
113
|
+
data: Order[];
|
|
114
|
+
meta: {
|
|
115
|
+
current_page: number;
|
|
116
|
+
per_page: number;
|
|
117
|
+
total: number;
|
|
118
|
+
last_page: number;
|
|
119
|
+
};
|
|
120
|
+
stats: {
|
|
121
|
+
total_orders: number;
|
|
122
|
+
total_amount: number;
|
|
123
|
+
average_order: number;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export interface SearchSuggestionsParams {
|
|
127
|
+
query: string;
|
|
128
|
+
limit?: number;
|
|
129
|
+
}
|
|
130
|
+
export interface SearchSuggestionsResponse {
|
|
131
|
+
suggestions: SearchSuggestion[];
|
|
132
|
+
}
|
|
133
|
+
export interface FilterOptionsResponse {
|
|
134
|
+
status_options: Array<{
|
|
135
|
+
value: string;
|
|
136
|
+
label: string;
|
|
137
|
+
count: number;
|
|
138
|
+
}>;
|
|
139
|
+
payment_methods: Array<{
|
|
140
|
+
value: string;
|
|
141
|
+
label: string;
|
|
142
|
+
count: number;
|
|
143
|
+
}>;
|
|
144
|
+
shipping_methods: Array<{
|
|
145
|
+
value: string;
|
|
146
|
+
label: string;
|
|
147
|
+
count: number;
|
|
148
|
+
}>;
|
|
149
|
+
date_range: {
|
|
150
|
+
earliest_order: string;
|
|
151
|
+
latest_order: string;
|
|
152
|
+
};
|
|
153
|
+
amount_range: {
|
|
154
|
+
min_amount: number;
|
|
155
|
+
max_amount: number;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
export interface AnnualReportData {
|
|
159
|
+
year: number;
|
|
160
|
+
summary: {
|
|
161
|
+
totalOrders: number;
|
|
162
|
+
totalAmount: number;
|
|
163
|
+
averageOrder: number;
|
|
164
|
+
largestOrder: {
|
|
165
|
+
amount: number;
|
|
166
|
+
date: string;
|
|
167
|
+
orderId: string;
|
|
168
|
+
};
|
|
169
|
+
mostActiveMonth: {
|
|
170
|
+
month: number;
|
|
171
|
+
monthName: string;
|
|
172
|
+
orders: number;
|
|
173
|
+
amount: number;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
monthlyBreakdown: Array<{
|
|
177
|
+
month: number;
|
|
178
|
+
monthName: string;
|
|
179
|
+
orders: number;
|
|
180
|
+
amount: number;
|
|
181
|
+
averageOrder: number;
|
|
182
|
+
}>;
|
|
183
|
+
}
|
|
184
|
+
export interface CustomReportParams {
|
|
185
|
+
start_date: string;
|
|
186
|
+
end_date: string;
|
|
187
|
+
filters?: OrderFilters;
|
|
188
|
+
group_by?: 'day' | 'week' | 'month' | 'quarter';
|
|
189
|
+
include_comparisons?: boolean;
|
|
190
|
+
comparison_period?: {
|
|
191
|
+
start_date: string;
|
|
192
|
+
end_date: string;
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
export interface ProductAnalyticsData {
|
|
196
|
+
name: string;
|
|
197
|
+
sku: string;
|
|
198
|
+
totalQuantity: number;
|
|
199
|
+
totalSpent: number;
|
|
200
|
+
orderCount: number;
|
|
201
|
+
firstOrdered: string;
|
|
202
|
+
lastOrdered: string;
|
|
203
|
+
averagePrice: number;
|
|
204
|
+
}
|
|
205
|
+
export interface ProductAnalyticsParams {
|
|
206
|
+
start_date?: string;
|
|
207
|
+
end_date?: string;
|
|
208
|
+
search?: string;
|
|
209
|
+
categories?: string[];
|
|
210
|
+
price_min?: number;
|
|
211
|
+
price_max?: number;
|
|
212
|
+
quantity_min?: number;
|
|
213
|
+
quantity_max?: number;
|
|
214
|
+
order_frequency?: 'high' | 'medium' | 'low';
|
|
215
|
+
sort_by?: 'name' | 'quantity' | 'amount' | 'lastOrdered' | 'frequency';
|
|
216
|
+
sort_order?: 'asc' | 'desc';
|
|
217
|
+
page?: number;
|
|
218
|
+
per_page?: number;
|
|
219
|
+
}
|
|
220
|
+
export type QuickFilterType = 'last-30-days' | 'last-3-months' | 'last-6-months' | 'last-year' | 'this-month' | 'last-month' | 'this-quarter' | 'last-quarter' | 'this-year' | 'last-year-full' | 'all-time';
|
|
221
|
+
export interface QuickFilter {
|
|
222
|
+
type: QuickFilterType;
|
|
223
|
+
label: string;
|
|
224
|
+
dateRange: {
|
|
225
|
+
start: Date;
|
|
226
|
+
end: Date;
|
|
227
|
+
} | {
|
|
228
|
+
start: Date;
|
|
229
|
+
end: null;
|
|
230
|
+
} | {
|
|
231
|
+
start: null;
|
|
232
|
+
end: null;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
export interface OrderManagementError {
|
|
236
|
+
code: string;
|
|
237
|
+
message: string;
|
|
238
|
+
field?: string;
|
|
239
|
+
details?: Record<string, any>;
|
|
240
|
+
}
|
|
241
|
+
export interface ApiErrorResponse {
|
|
242
|
+
error: OrderManagementError;
|
|
243
|
+
timestamp: string;
|
|
244
|
+
path: string;
|
|
245
|
+
}
|