@unchainedshop/core 4.3.6 → 4.4.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/README.md +614 -2
- package/lib/bulk-importer/createBulkImporter.d.ts +5 -6
- package/lib/bulk-importer/createBulkImporter.js +6 -5
- package/lib/bulk-importer/handlers/assortment/create.d.ts +2 -3
- package/lib/bulk-importer/handlers/assortment/create.js +6 -8
- package/lib/bulk-importer/handlers/assortment/index.d.ts +3 -4
- package/lib/bulk-importer/handlers/assortment/index.js +3 -4
- package/lib/bulk-importer/handlers/assortment/remove.d.ts +1 -2
- package/lib/bulk-importer/handlers/assortment/remove.js +0 -1
- package/lib/bulk-importer/handlers/assortment/update.d.ts +2 -3
- package/lib/bulk-importer/handlers/assortment/update.js +7 -9
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts +1 -2
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js +1 -2
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts +1 -2
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js +1 -2
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts +1 -2
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js +1 -2
- package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts +2 -3
- package/lib/bulk-importer/handlers/assortment/upsertMedia.js +2 -4
- package/lib/bulk-importer/handlers/filter/create.d.ts +7 -3
- package/lib/bulk-importer/handlers/filter/create.js +3 -4
- package/lib/bulk-importer/handlers/filter/index.d.ts +3 -4
- package/lib/bulk-importer/handlers/filter/index.js +3 -4
- package/lib/bulk-importer/handlers/filter/remove.d.ts +1 -2
- package/lib/bulk-importer/handlers/filter/remove.js +0 -1
- package/lib/bulk-importer/handlers/filter/update.d.ts +1 -2
- package/lib/bulk-importer/handlers/filter/update.js +2 -4
- package/lib/bulk-importer/handlers/product/create.d.ts +23 -6
- package/lib/bulk-importer/handlers/product/create.js +10 -12
- package/lib/bulk-importer/handlers/product/index.d.ts +3 -4
- package/lib/bulk-importer/handlers/product/index.js +3 -4
- package/lib/bulk-importer/handlers/product/remove.d.ts +2 -3
- package/lib/bulk-importer/handlers/product/remove.js +0 -1
- package/lib/bulk-importer/handlers/product/update.d.ts +2 -3
- package/lib/bulk-importer/handlers/product/update.js +8 -11
- package/lib/bulk-importer/handlers/product/upsertMedia.d.ts +2 -3
- package/lib/bulk-importer/handlers/product/upsertMedia.js +3 -5
- package/lib/bulk-importer/handlers/product/upsertVariations.d.ts +1 -2
- package/lib/bulk-importer/handlers/product/upsertVariations.js +2 -5
- package/lib/bulk-importer/handlers/utils/convertTagsToLowerCase.d.ts +0 -1
- package/lib/bulk-importer/handlers/utils/convertTagsToLowerCase.js +0 -1
- package/lib/bulk-importer/index.d.ts +2 -3
- package/lib/bulk-importer/index.js +2 -3
- package/lib/bulk-importer/upsertAsset.d.ts +3 -4
- package/lib/bulk-importer/upsertAsset.js +1 -3
- package/lib/core-index.d.ts +9 -10
- package/lib/core-index.js +9 -10
- package/lib/directors/BaseDiscountAdapter.d.ts +5 -6
- package/lib/directors/BaseDiscountAdapter.js +0 -17
- package/lib/directors/BaseDiscountDirector.d.ts +3 -4
- package/lib/directors/BaseDiscountDirector.js +0 -1
- package/lib/directors/BasePricingAdapter.d.ts +4 -5
- package/lib/directors/BasePricingAdapter.js +1 -2
- package/lib/directors/BasePricingDirector.d.ts +4 -5
- package/lib/directors/BasePricingDirector.js +1 -6
- package/lib/directors/BasePricingSheet.d.ts +1 -2
- package/lib/directors/BasePricingSheet.js +0 -4
- package/lib/directors/BaseWorker.d.ts +1 -2
- package/lib/directors/BaseWorker.js +2 -5
- package/lib/directors/DeliveryAdapter.d.ts +8 -8
- package/lib/directors/DeliveryAdapter.js +6 -15
- package/lib/directors/DeliveryDirector.d.ts +5 -6
- package/lib/directors/DeliveryDirector.js +1 -2
- package/lib/directors/DeliveryPricingAdapter.d.ts +6 -7
- package/lib/directors/DeliveryPricingAdapter.js +2 -3
- package/lib/directors/DeliveryPricingDirector.d.ts +3 -4
- package/lib/directors/DeliveryPricingDirector.js +2 -2
- package/lib/directors/DeliveryPricingSheet.d.ts +9 -9
- package/lib/directors/DeliveryPricingSheet.js +7 -9
- package/lib/directors/EnrollmentAdapter.d.ts +2 -3
- package/lib/directors/EnrollmentAdapter.js +0 -1
- package/lib/directors/EnrollmentDirector.d.ts +3 -4
- package/lib/directors/EnrollmentDirector.js +0 -1
- package/lib/directors/EventListenerWorker.d.ts +1 -2
- package/lib/directors/EventListenerWorker.js +2 -11
- package/lib/directors/FailedRescheduler.d.ts +1 -2
- package/lib/directors/FailedRescheduler.js +0 -3
- package/lib/directors/FilterAdapter.d.ts +5 -6
- package/lib/directors/FilterAdapter.js +1 -5
- package/lib/directors/FilterDirector.d.ts +4 -5
- package/lib/directors/FilterDirector.js +1 -10
- package/lib/directors/IntervalWorker.d.ts +2 -3
- package/lib/directors/IntervalWorker.js +3 -5
- package/lib/directors/MessagingDirector.d.ts +0 -1
- package/lib/directors/MessagingDirector.js +0 -1
- package/lib/directors/OrderDiscountAdapter.d.ts +1 -2
- package/lib/directors/OrderDiscountAdapter.js +1 -2
- package/lib/directors/OrderDiscountConfiguration.d.ts +0 -1
- package/lib/directors/OrderDiscountConfiguration.js +0 -1
- package/lib/directors/OrderDiscountDirector.d.ts +2 -3
- package/lib/directors/OrderDiscountDirector.js +1 -2
- package/lib/directors/OrderPricingAdapter.d.ts +4 -5
- package/lib/directors/OrderPricingAdapter.js +1 -2
- package/lib/directors/OrderPricingDirector.d.ts +2 -3
- package/lib/directors/OrderPricingDirector.js +1 -2
- package/lib/directors/OrderPricingSheet.d.ts +10 -10
- package/lib/directors/OrderPricingSheet.js +8 -12
- package/lib/directors/PaymentAdapter.d.ts +8 -8
- package/lib/directors/PaymentAdapter.js +6 -12
- package/lib/directors/PaymentDirector.d.ts +4 -5
- package/lib/directors/PaymentDirector.js +1 -2
- package/lib/directors/PaymentPricingAdapter.d.ts +6 -7
- package/lib/directors/PaymentPricingAdapter.js +2 -3
- package/lib/directors/PaymentPricingDirector.d.ts +4 -5
- package/lib/directors/PaymentPricingDirector.js +2 -3
- package/lib/directors/PaymentPricingSheet.d.ts +8 -8
- package/lib/directors/PaymentPricingSheet.js +7 -9
- package/lib/directors/ProductDiscountAdapter.d.ts +1 -2
- package/lib/directors/ProductDiscountAdapter.js +1 -2
- package/lib/directors/ProductDiscountConfiguration.d.ts +1 -2
- package/lib/directors/ProductDiscountConfiguration.js +0 -1
- package/lib/directors/ProductDiscountDirector.d.ts +2 -3
- package/lib/directors/ProductDiscountDirector.js +1 -2
- package/lib/directors/ProductPricingAdapter.d.ts +5 -6
- package/lib/directors/ProductPricingAdapter.js +1 -2
- package/lib/directors/ProductPricingDirector.d.ts +4 -5
- package/lib/directors/ProductPricingDirector.js +1 -2
- package/lib/directors/ProductPricingSheet.d.ts +8 -8
- package/lib/directors/ProductPricingSheet.js +6 -8
- package/lib/directors/QuotationAdapter.d.ts +9 -9
- package/lib/directors/QuotationAdapter.js +6 -8
- package/lib/directors/QuotationDirector.d.ts +2 -3
- package/lib/directors/QuotationDirector.js +1 -2
- package/lib/directors/WarehousingAdapter.d.ts +12 -12
- package/lib/directors/WarehousingAdapter.js +6 -8
- package/lib/directors/WarehousingDirector.d.ts +4 -5
- package/lib/directors/WarehousingDirector.js +1 -4
- package/lib/directors/WorkerAdapter.d.ts +5 -6
- package/lib/directors/WorkerAdapter.js +0 -1
- package/lib/directors/WorkerDirector.d.ts +5 -6
- package/lib/directors/WorkerDirector.js +0 -3
- package/lib/directors/index.d.ts +42 -43
- package/lib/directors/index.js +42 -43
- package/lib/factory/index.d.ts +9 -10
- package/lib/factory/index.js +9 -10
- package/lib/factory/registerAssortmentSearchFilter.d.ts +1 -2
- package/lib/factory/registerAssortmentSearchFilter.js +1 -2
- package/lib/factory/registerInvoicePayment.d.ts +2 -3
- package/lib/factory/registerInvoicePayment.js +1 -2
- package/lib/factory/registerPhysicalWarehousing.d.ts +2 -3
- package/lib/factory/registerPhysicalWarehousing.js +1 -2
- package/lib/factory/registerPickUpDelivery.d.ts +3 -4
- package/lib/factory/registerPickUpDelivery.js +1 -2
- package/lib/factory/registerProductDiscoverabilityFilter.d.ts +0 -1
- package/lib/factory/registerProductDiscoverabilityFilter.js +1 -2
- package/lib/factory/registerProductSearchFilter.d.ts +1 -2
- package/lib/factory/registerProductSearchFilter.js +1 -2
- package/lib/factory/registerShippingDelivery.d.ts +3 -4
- package/lib/factory/registerShippingDelivery.js +1 -2
- package/lib/factory/registerVirtualWarehousing.d.ts +2 -3
- package/lib/factory/registerVirtualWarehousing.js +1 -2
- package/lib/factory/registerWorker.d.ts +0 -1
- package/lib/factory/registerWorker.js +1 -2
- package/lib/modules.d.ts +18 -19
- package/lib/modules.js +5 -5
- package/lib/services/activateEnrollment.d.ts +2 -3
- package/lib/services/activateEnrollment.js +2 -3
- package/lib/services/addMessage.d.ts +2 -3
- package/lib/services/addMessage.js +2 -3
- package/lib/services/calculateDiscountTotal.d.ts +2 -3
- package/lib/services/calculateDiscountTotal.js +1 -6
- package/lib/services/checkoutOrder.d.ts +1 -2
- package/lib/services/checkoutOrder.js +4 -6
- package/lib/services/confirmOrder.d.ts +2 -3
- package/lib/services/confirmOrder.js +1 -2
- package/lib/services/createDownloadStream.d.ts +2 -3
- package/lib/services/createDownloadStream.js +0 -1
- package/lib/services/createEnrollmentFromCheckout.d.ts +4 -5
- package/lib/services/createEnrollmentFromCheckout.js +2 -3
- package/lib/services/createManualOrderDiscount.d.ts +2 -3
- package/lib/services/createManualOrderDiscount.js +1 -3
- package/lib/services/createSignedURL.d.ts +2 -3
- package/lib/services/createSignedURL.js +0 -1
- package/lib/services/deleteUser.d.ts +1 -2
- package/lib/services/deleteUser.js +0 -1
- package/lib/services/discountedEntities.d.ts +3 -4
- package/lib/services/discountedEntities.js +1 -7
- package/lib/services/ercMetadata.d.ts +3 -4
- package/lib/services/ercMetadata.js +1 -2
- package/lib/services/findOrInitCart.d.ts +2 -3
- package/lib/services/findOrInitCart.js +1 -2
- package/lib/services/fullfillQuotation.d.ts +2 -3
- package/lib/services/fullfillQuotation.js +1 -2
- package/lib/services/generateOrderFromEnrollment.d.ts +2 -3
- package/lib/services/generateOrderFromEnrollment.js +2 -3
- package/lib/services/index.d.ts +48 -49
- package/lib/services/index.js +47 -51
- package/lib/services/initCartProviders.d.ts +2 -3
- package/lib/services/initCartProviders.js +2 -5
- package/lib/services/initializeEnrollment.d.ts +2 -3
- package/lib/services/initializeEnrollment.js +3 -4
- package/lib/services/invalidateFilterCache.d.ts +1 -2
- package/lib/services/invalidateFilterCache.js +1 -2
- package/lib/services/linkFileService.d.ts +1 -2
- package/lib/services/linkFileService.js +0 -1
- package/lib/services/loadFilterOptions.d.ts +2 -3
- package/lib/services/loadFilterOptions.js +1 -2
- package/lib/services/loadFilters.d.ts +2 -3
- package/lib/services/loadFilters.js +1 -2
- package/lib/services/migrateBookmarks.d.ts +1 -2
- package/lib/services/migrateBookmarks.js +0 -2
- package/lib/services/migrateOrderCart.d.ts +1 -2
- package/lib/services/migrateOrderCart.js +1 -7
- package/lib/services/migrateUserData.d.ts +0 -1
- package/lib/services/migrateUserData.js +2 -3
- package/lib/services/nextUserCart.d.ts +2 -3
- package/lib/services/nextUserCart.js +1 -2
- package/lib/services/processEnrollment.d.ts +2 -3
- package/lib/services/processEnrollment.js +1 -5
- package/lib/services/processOrder.d.ts +2 -3
- package/lib/services/processOrder.js +7 -27
- package/lib/services/processQuotation.d.ts +2 -3
- package/lib/services/processQuotation.js +2 -3
- package/lib/services/proposeQuotation.d.ts +2 -3
- package/lib/services/proposeQuotation.js +1 -2
- package/lib/services/registerPaymentCredentials.d.ts +2 -3
- package/lib/services/registerPaymentCredentials.js +1 -2
- package/lib/services/rejectOrder.d.ts +2 -3
- package/lib/services/rejectOrder.js +1 -2
- package/lib/services/rejectQuotation.d.ts +2 -3
- package/lib/services/rejectQuotation.js +1 -2
- package/lib/services/removeFiles.d.ts +1 -2
- package/lib/services/removeFiles.js +0 -2
- package/lib/services/removeProduct.d.ts +1 -2
- package/lib/services/removeProduct.js +1 -4
- package/lib/services/searchAssortments.d.ts +3 -4
- package/lib/services/searchAssortments.js +1 -2
- package/lib/services/searchProducts.d.ts +3 -4
- package/lib/services/searchProducts.js +1 -4
- package/lib/services/simulateProductDispatching.d.ts +5 -6
- package/lib/services/simulateProductDispatching.js +2 -3
- package/lib/services/simulateProductInventory.d.ts +4 -5
- package/lib/services/simulateProductInventory.js +2 -3
- package/lib/services/simulateProductPricing.d.ts +5 -6
- package/lib/services/simulateProductPricing.js +1 -2
- package/lib/services/supportedDeliveryProviders.d.ts +3 -4
- package/lib/services/supportedDeliveryProviders.js +1 -2
- package/lib/services/supportedPaymentProviders.d.ts +3 -4
- package/lib/services/supportedPaymentProviders.js +1 -2
- package/lib/services/supportedWarehousingProviders.d.ts +3 -4
- package/lib/services/supportedWarehousingProviders.js +1 -2
- package/lib/services/terminateEnrollment.d.ts +1 -2
- package/lib/services/terminateEnrollment.js +2 -3
- package/lib/services/updateCalculation.d.ts +2 -3
- package/lib/services/updateCalculation.js +3 -20
- package/lib/services/updateScheduling.d.ts +2 -3
- package/lib/services/updateScheduling.js +2 -4
- package/lib/services/updateUserAvatarAfterUpload.d.ts +2 -3
- package/lib/services/updateUserAvatarAfterUpload.js +1 -3
- package/lib/services/uploadFileFromStream.d.ts +2 -3
- package/lib/services/uploadFileFromStream.js +0 -1
- package/lib/services/uploadFileFromURL.d.ts +1 -2
- package/lib/services/uploadFileFromURL.js +0 -1
- package/lib/services/validateOrder.d.ts +2 -3
- package/lib/services/validateOrder.js +0 -1
- package/lib/services/verifyQuotation.d.ts +2 -3
- package/lib/services/verifyQuotation.js +1 -2
- package/package.json +27 -26
- package/lib/bulk-importer/createBulkImporter.d.ts.map +0 -1
- package/lib/bulk-importer/createBulkImporter.js.map +0 -1
- package/lib/bulk-importer/handlers/assortment/create.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/assortment/create.js.map +0 -1
- package/lib/bulk-importer/handlers/assortment/index.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/assortment/index.js.map +0 -1
- package/lib/bulk-importer/handlers/assortment/remove.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/assortment/remove.js.map +0 -1
- package/lib/bulk-importer/handlers/assortment/update.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/assortment/update.js.map +0 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js.map +0 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js.map +0 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js.map +0 -1
- package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/assortment/upsertMedia.js.map +0 -1
- package/lib/bulk-importer/handlers/filter/create.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/filter/create.js.map +0 -1
- package/lib/bulk-importer/handlers/filter/index.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/filter/index.js.map +0 -1
- package/lib/bulk-importer/handlers/filter/remove.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/filter/remove.js.map +0 -1
- package/lib/bulk-importer/handlers/filter/update.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/filter/update.js.map +0 -1
- package/lib/bulk-importer/handlers/product/create.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/product/create.js.map +0 -1
- package/lib/bulk-importer/handlers/product/index.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/product/index.js.map +0 -1
- package/lib/bulk-importer/handlers/product/remove.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/product/remove.js.map +0 -1
- package/lib/bulk-importer/handlers/product/update.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/product/update.js.map +0 -1
- package/lib/bulk-importer/handlers/product/upsertMedia.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/product/upsertMedia.js.map +0 -1
- package/lib/bulk-importer/handlers/product/upsertVariations.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/product/upsertVariations.js.map +0 -1
- package/lib/bulk-importer/handlers/utils/convertTagsToLowerCase.d.ts.map +0 -1
- package/lib/bulk-importer/handlers/utils/convertTagsToLowerCase.js.map +0 -1
- package/lib/bulk-importer/index.d.ts.map +0 -1
- package/lib/bulk-importer/index.js.map +0 -1
- package/lib/bulk-importer/upsertAsset.d.ts.map +0 -1
- package/lib/bulk-importer/upsertAsset.js.map +0 -1
- package/lib/core-index.d.ts.map +0 -1
- package/lib/core-index.js.map +0 -1
- package/lib/directors/BaseDiscountAdapter.d.ts.map +0 -1
- package/lib/directors/BaseDiscountAdapter.js.map +0 -1
- package/lib/directors/BaseDiscountDirector.d.ts.map +0 -1
- package/lib/directors/BaseDiscountDirector.js.map +0 -1
- package/lib/directors/BasePricingAdapter.d.ts.map +0 -1
- package/lib/directors/BasePricingAdapter.js.map +0 -1
- package/lib/directors/BasePricingDirector.d.ts.map +0 -1
- package/lib/directors/BasePricingDirector.js.map +0 -1
- package/lib/directors/BasePricingSheet.d.ts.map +0 -1
- package/lib/directors/BasePricingSheet.js.map +0 -1
- package/lib/directors/BaseWorker.d.ts.map +0 -1
- package/lib/directors/BaseWorker.js.map +0 -1
- package/lib/directors/DeliveryAdapter.d.ts.map +0 -1
- package/lib/directors/DeliveryAdapter.js.map +0 -1
- package/lib/directors/DeliveryDirector.d.ts.map +0 -1
- package/lib/directors/DeliveryDirector.js.map +0 -1
- package/lib/directors/DeliveryPricingAdapter.d.ts.map +0 -1
- package/lib/directors/DeliveryPricingAdapter.js.map +0 -1
- package/lib/directors/DeliveryPricingDirector.d.ts.map +0 -1
- package/lib/directors/DeliveryPricingDirector.js.map +0 -1
- package/lib/directors/DeliveryPricingSheet.d.ts.map +0 -1
- package/lib/directors/DeliveryPricingSheet.js.map +0 -1
- package/lib/directors/EnrollmentAdapter.d.ts.map +0 -1
- package/lib/directors/EnrollmentAdapter.js.map +0 -1
- package/lib/directors/EnrollmentDirector.d.ts.map +0 -1
- package/lib/directors/EnrollmentDirector.js.map +0 -1
- package/lib/directors/EventListenerWorker.d.ts.map +0 -1
- package/lib/directors/EventListenerWorker.js.map +0 -1
- package/lib/directors/FailedRescheduler.d.ts.map +0 -1
- package/lib/directors/FailedRescheduler.js.map +0 -1
- package/lib/directors/FilterAdapter.d.ts.map +0 -1
- package/lib/directors/FilterAdapter.js.map +0 -1
- package/lib/directors/FilterDirector.d.ts.map +0 -1
- package/lib/directors/FilterDirector.js.map +0 -1
- package/lib/directors/IntervalWorker.d.ts.map +0 -1
- package/lib/directors/IntervalWorker.js.map +0 -1
- package/lib/directors/MessagingDirector.d.ts.map +0 -1
- package/lib/directors/MessagingDirector.js.map +0 -1
- package/lib/directors/OrderDiscountAdapter.d.ts.map +0 -1
- package/lib/directors/OrderDiscountAdapter.js.map +0 -1
- package/lib/directors/OrderDiscountConfiguration.d.ts.map +0 -1
- package/lib/directors/OrderDiscountConfiguration.js.map +0 -1
- package/lib/directors/OrderDiscountDirector.d.ts.map +0 -1
- package/lib/directors/OrderDiscountDirector.js.map +0 -1
- package/lib/directors/OrderPricingAdapter.d.ts.map +0 -1
- package/lib/directors/OrderPricingAdapter.js.map +0 -1
- package/lib/directors/OrderPricingDirector.d.ts.map +0 -1
- package/lib/directors/OrderPricingDirector.js.map +0 -1
- package/lib/directors/OrderPricingSheet.d.ts.map +0 -1
- package/lib/directors/OrderPricingSheet.js.map +0 -1
- package/lib/directors/PaymentAdapter.d.ts.map +0 -1
- package/lib/directors/PaymentAdapter.js.map +0 -1
- package/lib/directors/PaymentDirector.d.ts.map +0 -1
- package/lib/directors/PaymentDirector.js.map +0 -1
- package/lib/directors/PaymentPricingAdapter.d.ts.map +0 -1
- package/lib/directors/PaymentPricingAdapter.js.map +0 -1
- package/lib/directors/PaymentPricingDirector.d.ts.map +0 -1
- package/lib/directors/PaymentPricingDirector.js.map +0 -1
- package/lib/directors/PaymentPricingSheet.d.ts.map +0 -1
- package/lib/directors/PaymentPricingSheet.js.map +0 -1
- package/lib/directors/ProductDiscountAdapter.d.ts.map +0 -1
- package/lib/directors/ProductDiscountAdapter.js.map +0 -1
- package/lib/directors/ProductDiscountConfiguration.d.ts.map +0 -1
- package/lib/directors/ProductDiscountConfiguration.js.map +0 -1
- package/lib/directors/ProductDiscountDirector.d.ts.map +0 -1
- package/lib/directors/ProductDiscountDirector.js.map +0 -1
- package/lib/directors/ProductPricingAdapter.d.ts.map +0 -1
- package/lib/directors/ProductPricingAdapter.js.map +0 -1
- package/lib/directors/ProductPricingDirector.d.ts.map +0 -1
- package/lib/directors/ProductPricingDirector.js.map +0 -1
- package/lib/directors/ProductPricingSheet.d.ts.map +0 -1
- package/lib/directors/ProductPricingSheet.js.map +0 -1
- package/lib/directors/QuotationAdapter.d.ts.map +0 -1
- package/lib/directors/QuotationAdapter.js.map +0 -1
- package/lib/directors/QuotationDirector.d.ts.map +0 -1
- package/lib/directors/QuotationDirector.js.map +0 -1
- package/lib/directors/WarehousingAdapter.d.ts.map +0 -1
- package/lib/directors/WarehousingAdapter.js.map +0 -1
- package/lib/directors/WarehousingDirector.d.ts.map +0 -1
- package/lib/directors/WarehousingDirector.js.map +0 -1
- package/lib/directors/WorkerAdapter.d.ts.map +0 -1
- package/lib/directors/WorkerAdapter.js.map +0 -1
- package/lib/directors/WorkerDirector.d.ts.map +0 -1
- package/lib/directors/WorkerDirector.js.map +0 -1
- package/lib/directors/index.d.ts.map +0 -1
- package/lib/directors/index.js.map +0 -1
- package/lib/factory/index.d.ts.map +0 -1
- package/lib/factory/index.js.map +0 -1
- package/lib/factory/registerAssortmentSearchFilter.d.ts.map +0 -1
- package/lib/factory/registerAssortmentSearchFilter.js.map +0 -1
- package/lib/factory/registerInvoicePayment.d.ts.map +0 -1
- package/lib/factory/registerInvoicePayment.js.map +0 -1
- package/lib/factory/registerPhysicalWarehousing.d.ts.map +0 -1
- package/lib/factory/registerPhysicalWarehousing.js.map +0 -1
- package/lib/factory/registerPickUpDelivery.d.ts.map +0 -1
- package/lib/factory/registerPickUpDelivery.js.map +0 -1
- package/lib/factory/registerProductDiscoverabilityFilter.d.ts.map +0 -1
- package/lib/factory/registerProductDiscoverabilityFilter.js.map +0 -1
- package/lib/factory/registerProductSearchFilter.d.ts.map +0 -1
- package/lib/factory/registerProductSearchFilter.js.map +0 -1
- package/lib/factory/registerShippingDelivery.d.ts.map +0 -1
- package/lib/factory/registerShippingDelivery.js.map +0 -1
- package/lib/factory/registerVirtualWarehousing.d.ts.map +0 -1
- package/lib/factory/registerVirtualWarehousing.js.map +0 -1
- package/lib/factory/registerWorker.d.ts.map +0 -1
- package/lib/factory/registerWorker.js.map +0 -1
- package/lib/modules.d.ts.map +0 -1
- package/lib/modules.js.map +0 -1
- package/lib/services/activateEnrollment.d.ts.map +0 -1
- package/lib/services/activateEnrollment.js.map +0 -1
- package/lib/services/addMessage.d.ts.map +0 -1
- package/lib/services/addMessage.js.map +0 -1
- package/lib/services/calculateDiscountTotal.d.ts.map +0 -1
- package/lib/services/calculateDiscountTotal.js.map +0 -1
- package/lib/services/checkoutOrder.d.ts.map +0 -1
- package/lib/services/checkoutOrder.js.map +0 -1
- package/lib/services/confirmOrder.d.ts.map +0 -1
- package/lib/services/confirmOrder.js.map +0 -1
- package/lib/services/createDownloadStream.d.ts.map +0 -1
- package/lib/services/createDownloadStream.js.map +0 -1
- package/lib/services/createEnrollmentFromCheckout.d.ts.map +0 -1
- package/lib/services/createEnrollmentFromCheckout.js.map +0 -1
- package/lib/services/createManualOrderDiscount.d.ts.map +0 -1
- package/lib/services/createManualOrderDiscount.js.map +0 -1
- package/lib/services/createSignedURL.d.ts.map +0 -1
- package/lib/services/createSignedURL.js.map +0 -1
- package/lib/services/deleteUser.d.ts.map +0 -1
- package/lib/services/deleteUser.js.map +0 -1
- package/lib/services/discountedEntities.d.ts.map +0 -1
- package/lib/services/discountedEntities.js.map +0 -1
- package/lib/services/ercMetadata.d.ts.map +0 -1
- package/lib/services/ercMetadata.js.map +0 -1
- package/lib/services/findOrInitCart.d.ts.map +0 -1
- package/lib/services/findOrInitCart.js.map +0 -1
- package/lib/services/fullfillQuotation.d.ts.map +0 -1
- package/lib/services/fullfillQuotation.js.map +0 -1
- package/lib/services/generateOrderFromEnrollment.d.ts.map +0 -1
- package/lib/services/generateOrderFromEnrollment.js.map +0 -1
- package/lib/services/index.d.ts.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/services/initCartProviders.d.ts.map +0 -1
- package/lib/services/initCartProviders.js.map +0 -1
- package/lib/services/initializeEnrollment.d.ts.map +0 -1
- package/lib/services/initializeEnrollment.js.map +0 -1
- package/lib/services/invalidateFilterCache.d.ts.map +0 -1
- package/lib/services/invalidateFilterCache.js.map +0 -1
- package/lib/services/linkFileService.d.ts.map +0 -1
- package/lib/services/linkFileService.js.map +0 -1
- package/lib/services/loadFilterOptions.d.ts.map +0 -1
- package/lib/services/loadFilterOptions.js.map +0 -1
- package/lib/services/loadFilters.d.ts.map +0 -1
- package/lib/services/loadFilters.js.map +0 -1
- package/lib/services/migrateBookmarks.d.ts.map +0 -1
- package/lib/services/migrateBookmarks.js.map +0 -1
- package/lib/services/migrateOrderCart.d.ts.map +0 -1
- package/lib/services/migrateOrderCart.js.map +0 -1
- package/lib/services/migrateUserData.d.ts.map +0 -1
- package/lib/services/migrateUserData.js.map +0 -1
- package/lib/services/nextUserCart.d.ts.map +0 -1
- package/lib/services/nextUserCart.js.map +0 -1
- package/lib/services/processEnrollment.d.ts.map +0 -1
- package/lib/services/processEnrollment.js.map +0 -1
- package/lib/services/processOrder.d.ts.map +0 -1
- package/lib/services/processOrder.js.map +0 -1
- package/lib/services/processQuotation.d.ts.map +0 -1
- package/lib/services/processQuotation.js.map +0 -1
- package/lib/services/proposeQuotation.d.ts.map +0 -1
- package/lib/services/proposeQuotation.js.map +0 -1
- package/lib/services/registerPaymentCredentials.d.ts.map +0 -1
- package/lib/services/registerPaymentCredentials.js.map +0 -1
- package/lib/services/rejectOrder.d.ts.map +0 -1
- package/lib/services/rejectOrder.js.map +0 -1
- package/lib/services/rejectQuotation.d.ts.map +0 -1
- package/lib/services/rejectQuotation.js.map +0 -1
- package/lib/services/removeFiles.d.ts.map +0 -1
- package/lib/services/removeFiles.js.map +0 -1
- package/lib/services/removeProduct.d.ts.map +0 -1
- package/lib/services/removeProduct.js.map +0 -1
- package/lib/services/searchAssortments.d.ts.map +0 -1
- package/lib/services/searchAssortments.js.map +0 -1
- package/lib/services/searchProducts.d.ts.map +0 -1
- package/lib/services/searchProducts.js.map +0 -1
- package/lib/services/simulateProductDispatching.d.ts.map +0 -1
- package/lib/services/simulateProductDispatching.js.map +0 -1
- package/lib/services/simulateProductInventory.d.ts.map +0 -1
- package/lib/services/simulateProductInventory.js.map +0 -1
- package/lib/services/simulateProductPricing.d.ts.map +0 -1
- package/lib/services/simulateProductPricing.js.map +0 -1
- package/lib/services/supportedDeliveryProviders.d.ts.map +0 -1
- package/lib/services/supportedDeliveryProviders.js.map +0 -1
- package/lib/services/supportedPaymentProviders.d.ts.map +0 -1
- package/lib/services/supportedPaymentProviders.js.map +0 -1
- package/lib/services/supportedWarehousingProviders.d.ts.map +0 -1
- package/lib/services/supportedWarehousingProviders.js.map +0 -1
- package/lib/services/terminateEnrollment.d.ts.map +0 -1
- package/lib/services/terminateEnrollment.js.map +0 -1
- package/lib/services/updateCalculation.d.ts.map +0 -1
- package/lib/services/updateCalculation.js.map +0 -1
- package/lib/services/updateScheduling.d.ts.map +0 -1
- package/lib/services/updateScheduling.js.map +0 -1
- package/lib/services/updateUserAvatarAfterUpload.d.ts.map +0 -1
- package/lib/services/updateUserAvatarAfterUpload.js.map +0 -1
- package/lib/services/uploadFileFromStream.d.ts.map +0 -1
- package/lib/services/uploadFileFromStream.js.map +0 -1
- package/lib/services/uploadFileFromURL.d.ts.map +0 -1
- package/lib/services/uploadFileFromURL.js.map +0 -1
- package/lib/services/validateOrder.d.ts.map +0 -1
- package/lib/services/validateOrder.js.map +0 -1
- package/lib/services/verifyQuotation.d.ts.map +0 -1
- package/lib/services/verifyQuotation.js.map +0 -1
- package/src/bulk-importer/createBulkImporter.ts +0 -205
- package/src/bulk-importer/handlers/assortment/create.ts +0 -118
- package/src/bulk-importer/handlers/assortment/index.ts +0 -3
- package/src/bulk-importer/handlers/assortment/remove.ts +0 -26
- package/src/bulk-importer/handlers/assortment/update.ts +0 -133
- package/src/bulk-importer/handlers/assortment/upsertAssortmentChildren.ts +0 -77
- package/src/bulk-importer/handlers/assortment/upsertAssortmentFilters.ts +0 -70
- package/src/bulk-importer/handlers/assortment/upsertAssortmentProducts.ts +0 -76
- package/src/bulk-importer/handlers/assortment/upsertMedia.ts +0 -76
- package/src/bulk-importer/handlers/filter/create.ts +0 -104
- package/src/bulk-importer/handlers/filter/index.ts +0 -3
- package/src/bulk-importer/handlers/filter/remove.ts +0 -25
- package/src/bulk-importer/handlers/filter/update.ts +0 -94
- package/src/bulk-importer/handlers/product/create.ts +0 -170
- package/src/bulk-importer/handlers/product/index.ts +0 -3
- package/src/bulk-importer/handlers/product/remove.ts +0 -27
- package/src/bulk-importer/handlers/product/update.ts +0 -175
- package/src/bulk-importer/handlers/product/upsertMedia.ts +0 -81
- package/src/bulk-importer/handlers/product/upsertVariations.ts +0 -110
- package/src/bulk-importer/handlers/utils/convertTagsToLowerCase.ts +0 -4
- package/src/bulk-importer/index.ts +0 -3
- package/src/bulk-importer/upsertAsset.ts +0 -53
- package/src/core-index.ts +0 -103
- package/src/directors/BaseDiscountAdapter.test.ts +0 -52
- package/src/directors/BaseDiscountAdapter.ts +0 -86
- package/src/directors/BaseDiscountDirector.ts +0 -73
- package/src/directors/BasePricingAdapter.ts +0 -74
- package/src/directors/BasePricingDirector.ts +0 -136
- package/src/directors/BasePricingSheet.test.ts +0 -45
- package/src/directors/BasePricingSheet.ts +0 -141
- package/src/directors/BaseWorker.ts +0 -117
- package/src/directors/DeliveryAdapter.ts +0 -106
- package/src/directors/DeliveryDirector.ts +0 -143
- package/src/directors/DeliveryPricingAdapter.ts +0 -87
- package/src/directors/DeliveryPricingDirector.ts +0 -91
- package/src/directors/DeliveryPricingSheet.ts +0 -87
- package/src/directors/EnrollmentAdapter.ts +0 -108
- package/src/directors/EnrollmentDirector.ts +0 -71
- package/src/directors/EventListenerWorker.ts +0 -101
- package/src/directors/FailedRescheduler.ts +0 -73
- package/src/directors/FilterAdapter.ts +0 -106
- package/src/directors/FilterDirector.ts +0 -314
- package/src/directors/IntervalWorker.ts +0 -75
- package/src/directors/MessagingDirector.test.ts +0 -8
- package/src/directors/MessagingDirector.ts +0 -52
- package/src/directors/OrderDiscountAdapter.ts +0 -10
- package/src/directors/OrderDiscountConfiguration.ts +0 -5
- package/src/directors/OrderDiscountDirector.ts +0 -5
- package/src/directors/OrderPricingAdapter.ts +0 -63
- package/src/directors/OrderPricingDirector.ts +0 -74
- package/src/directors/OrderPricingSheet.ts +0 -148
- package/src/directors/PaymentAdapter.ts +0 -118
- package/src/directors/PaymentDirector.ts +0 -297
- package/src/directors/PaymentPricingAdapter.ts +0 -86
- package/src/directors/PaymentPricingDirector.ts +0 -92
- package/src/directors/PaymentPricingSheet.ts +0 -92
- package/src/directors/ProductDiscountAdapter.ts +0 -10
- package/src/directors/ProductDiscountConfiguration.ts +0 -18
- package/src/directors/ProductDiscountDirector.ts +0 -4
- package/src/directors/ProductPricingAdapter.ts +0 -58
- package/src/directors/ProductPricingDirector.ts +0 -100
- package/src/directors/ProductPricingSheet.test.ts +0 -140
- package/src/directors/ProductPricingSheet.ts +0 -125
- package/src/directors/QuotationAdapter.ts +0 -82
- package/src/directors/QuotationDirector.ts +0 -105
- package/src/directors/WarehousingAdapter.ts +0 -77
- package/src/directors/WarehousingDirector.ts +0 -233
- package/src/directors/WorkerAdapter.ts +0 -31
- package/src/directors/WorkerDirector.ts +0 -149
- package/src/directors/index.ts +0 -53
- package/src/directors/periodForReferenceDate.test.ts +0 -25
- package/src/factory/index.ts +0 -21
- package/src/factory/registerAssortmentSearchFilter.ts +0 -36
- package/src/factory/registerInvoicePayment.ts +0 -61
- package/src/factory/registerPhysicalWarehousing.ts +0 -92
- package/src/factory/registerPickUpDelivery.ts +0 -81
- package/src/factory/registerProductDiscoverabilityFilter.ts +0 -36
- package/src/factory/registerProductSearchFilter.ts +0 -36
- package/src/factory/registerShippingDelivery.ts +0 -65
- package/src/factory/registerVirtualWarehousing.ts +0 -100
- package/src/factory/registerWorker.ts +0 -46
- package/src/modules.ts +0 -207
- package/src/services/activateEnrollment.ts +0 -26
- package/src/services/addMessage.ts +0 -20
- package/src/services/calculateDiscountTotal.ts +0 -71
- package/src/services/checkoutOrder.ts +0 -48
- package/src/services/confirmOrder.ts +0 -26
- package/src/services/createDownloadStream.ts +0 -17
- package/src/services/createEnrollmentFromCheckout.ts +0 -68
- package/src/services/createManualOrderDiscount.ts +0 -56
- package/src/services/createSignedURL.ts +0 -21
- package/src/services/deleteUser.ts +0 -48
- package/src/services/discountedEntities.ts +0 -81
- package/src/services/ercMetadata.ts +0 -25
- package/src/services/findOrInitCart.ts +0 -28
- package/src/services/fullfillQuotation.ts +0 -14
- package/src/services/generateOrderFromEnrollment.ts +0 -54
- package/src/services/index.ts +0 -173
- package/src/services/initCartProviders.ts +0 -84
- package/src/services/initializeEnrollment.ts +0 -41
- package/src/services/invalidateFilterCache.ts +0 -16
- package/src/services/linkFileService.ts +0 -24
- package/src/services/loadFilterOptions.ts +0 -49
- package/src/services/loadFilters.ts +0 -62
- package/src/services/migrateBookmarks.ts +0 -39
- package/src/services/migrateOrderCart.ts +0 -52
- package/src/services/migrateUserData.ts +0 -22
- package/src/services/nextUserCart.ts +0 -52
- package/src/services/processEnrollment.ts +0 -49
- package/src/services/processOrder.ts +0 -243
- package/src/services/processQuotation.ts +0 -71
- package/src/services/proposeQuotation.ts +0 -18
- package/src/services/registerPaymentCredentials.ts +0 -28
- package/src/services/rejectOrder.ts +0 -26
- package/src/services/rejectQuotation.ts +0 -18
- package/src/services/removeFiles.ts +0 -25
- package/src/services/removeProduct.ts +0 -39
- package/src/services/searchAssortments.ts +0 -57
- package/src/services/searchProducts.ts +0 -71
- package/src/services/simulateProductDispatching.ts +0 -58
- package/src/services/simulateProductInventory.ts +0 -59
- package/src/services/simulateProductPricing.ts +0 -23
- package/src/services/supportedDeliveryProviders.ts +0 -24
- package/src/services/supportedPaymentProviders.ts +0 -25
- package/src/services/supportedWarehousingProviders.ts +0 -18
- package/src/services/terminateEnrollment.ts +0 -25
- package/src/services/updateCalculation.ts +0 -159
- package/src/services/updateScheduling.ts +0 -63
- package/src/services/updateUserAvatarAfterUpload.ts +0 -33
- package/src/services/uploadFileFromStream.ts +0 -27
- package/src/services/uploadFileFromURL.ts +0 -29
- package/src/services/validateOrder.ts +0 -49
- package/src/services/verifyQuotation.ts +0 -18
- package/tsconfig.json +0 -9
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as create } from
|
|
2
|
-
export { default as update } from
|
|
3
|
-
export { default as remove } from
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { default as create } from "./create.js";
|
|
2
|
+
export { default as update } from "./update.js";
|
|
3
|
+
export { default as remove } from "./remove.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
3
|
export declare const AssortmentRemovePayloadSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
@@ -19,4 +19,3 @@ declare namespace removeAssortment {
|
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
}
|
|
21
21
|
export default removeAssortment;
|
|
22
|
-
//# sourceMappingURL=remove.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
3
|
-
import { Services } from '../../../services/index.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
|
+
import type { Services } from '../../../services/index.ts';
|
|
4
4
|
export declare const AssortmentUpdatePayloadSchema: z.ZodObject<{
|
|
5
5
|
_id: z.ZodString;
|
|
6
6
|
specification: z.ZodOptional<z.ZodObject<{
|
|
@@ -123,4 +123,3 @@ declare namespace updateAssortment {
|
|
|
123
123
|
}, z.core.$strip>;
|
|
124
124
|
}
|
|
125
125
|
export default updateAssortment;
|
|
126
|
-
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import upsertAssortmentProducts, { AssortmentProductSchema } from
|
|
3
|
-
import upsertAssortmentChildren, { AssortmentLinkSchema } from
|
|
4
|
-
import upsertAssortmentFilters, { AssortmentFilterSchema } from
|
|
5
|
-
import upsertMedia, { MediaSchema } from
|
|
6
|
-
import convertTagsToLowerCase from
|
|
7
|
-
import createAssortment from
|
|
2
|
+
import upsertAssortmentProducts, { AssortmentProductSchema } from "./upsertAssortmentProducts.js";
|
|
3
|
+
import upsertAssortmentChildren, { AssortmentLinkSchema } from "./upsertAssortmentChildren.js";
|
|
4
|
+
import upsertAssortmentFilters, { AssortmentFilterSchema } from "./upsertAssortmentFilters.js";
|
|
5
|
+
import upsertMedia, { MediaSchema } from "./upsertMedia.js";
|
|
6
|
+
import convertTagsToLowerCase from "../utils/convertTagsToLowerCase.js";
|
|
7
|
+
import createAssortment, { AssortmentCreatePayloadSchema } from "./create.js";
|
|
8
8
|
export const AssortmentUpdatePayloadSchema = z.object({
|
|
9
9
|
_id: z.string(),
|
|
10
10
|
specification: z
|
|
@@ -16,8 +16,7 @@ export const AssortmentUpdatePayloadSchema = z.object({
|
|
|
16
16
|
tags: z.array(z.string()).optional(),
|
|
17
17
|
meta: z.record(z.any(), z.any()).optional(),
|
|
18
18
|
content: z
|
|
19
|
-
.record(z.string(),
|
|
20
|
-
z.object({
|
|
19
|
+
.record(z.string(), z.object({
|
|
21
20
|
title: z.string().optional(),
|
|
22
21
|
subtitle: z.string().optional(),
|
|
23
22
|
slug: z.string().optional(),
|
|
@@ -95,4 +94,3 @@ export default async function updateAssortment(payload, { logger, createShouldUp
|
|
|
95
94
|
};
|
|
96
95
|
}
|
|
97
96
|
updateAssortment.payloadSchema = AssortmentUpdatePayloadSchema;
|
|
98
|
-
//# sourceMappingURL=update.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
3
|
export declare const AssortmentLinkSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodOptional<z.ZodString>;
|
|
5
5
|
assortmentId: z.ZodString;
|
|
@@ -14,4 +14,3 @@ declare const _default: ({ children, assortmentId: parentAssortmentId, }: {
|
|
|
14
14
|
modules: Modules;
|
|
15
15
|
}) => Promise<void>;
|
|
16
16
|
export default _default;
|
|
17
|
-
//# sourceMappingURL=upsertAssortmentChildren.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import convertTagsToLowerCase from
|
|
2
|
+
import convertTagsToLowerCase from "../utils/convertTagsToLowerCase.js";
|
|
3
3
|
export const AssortmentLinkSchema = z.object({
|
|
4
4
|
_id: z.string().optional(),
|
|
5
5
|
assortmentId: z.string(),
|
|
@@ -42,4 +42,3 @@ export default async ({ children, assortmentId: parentAssortmentId, }, unchained
|
|
|
42
42
|
parentAssortmentId,
|
|
43
43
|
}, { skipInvalidation: true });
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=upsertAssortmentChildren.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
3
|
export declare const AssortmentFilterSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodOptional<z.ZodString>;
|
|
5
5
|
filterId: z.ZodString;
|
|
@@ -14,4 +14,3 @@ declare const _default: ({ filters, assortmentId, }: {
|
|
|
14
14
|
modules: Modules;
|
|
15
15
|
}) => Promise<void>;
|
|
16
16
|
export default _default;
|
|
17
|
-
//# sourceMappingURL=upsertAssortmentFilters.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import convertTagsToLowerCase from
|
|
2
|
+
import convertTagsToLowerCase from "../utils/convertTagsToLowerCase.js";
|
|
3
3
|
export const AssortmentFilterSchema = z.object({
|
|
4
4
|
_id: z.string().optional(),
|
|
5
5
|
filterId: z.string(),
|
|
@@ -38,4 +38,3 @@ export default async ({ filters, assortmentId, }, unchainedAPI) => {
|
|
|
38
38
|
assortmentId,
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=upsertAssortmentFilters.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
3
|
export declare const AssortmentProductSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodOptional<z.ZodString>;
|
|
5
5
|
productId: z.ZodString;
|
|
@@ -14,4 +14,3 @@ declare const _default: ({ products, assortmentId, }: {
|
|
|
14
14
|
modules: Modules;
|
|
15
15
|
}) => Promise<void>;
|
|
16
16
|
export default _default;
|
|
17
|
-
//# sourceMappingURL=upsertAssortmentProducts.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import convertTagsToLowerCase from
|
|
2
|
+
import convertTagsToLowerCase from "../utils/convertTagsToLowerCase.js";
|
|
3
3
|
export const AssortmentProductSchema = z.object({
|
|
4
4
|
_id: z.string().optional(),
|
|
5
5
|
productId: z.string(),
|
|
@@ -43,4 +43,3 @@ export default async ({ products, assortmentId, }, unchainedAPI) => {
|
|
|
43
43
|
assortmentId,
|
|
44
44
|
}, { skipInvalidation: true });
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=upsertAssortmentProducts.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Services } from '../../../services/index.
|
|
3
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Services } from '../../../services/index.ts';
|
|
3
|
+
import type { Modules } from '../../../modules.ts';
|
|
4
4
|
export declare const MediaSchema: z.ZodObject<{
|
|
5
5
|
_id: z.ZodOptional<z.ZodString>;
|
|
6
6
|
asset: z.ZodObject<{
|
|
@@ -25,4 +25,3 @@ declare const _default: ({ media, assortmentId }: {
|
|
|
25
25
|
services: Services;
|
|
26
26
|
}) => Promise<void>;
|
|
27
27
|
export default _default;
|
|
28
|
-
//# sourceMappingURL=upsertMedia.d.ts.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import upsertAsset, { AssetSchema } from
|
|
2
|
+
import upsertAsset, { AssetSchema } from "../../upsertAsset.js";
|
|
3
3
|
export const MediaSchema = z.object({
|
|
4
4
|
_id: z.string().optional(),
|
|
5
5
|
asset: AssetSchema,
|
|
6
6
|
content: z
|
|
7
|
-
.record(z.string(),
|
|
8
|
-
z.object({
|
|
7
|
+
.record(z.string(), z.object({
|
|
9
8
|
title: z.string().optional(),
|
|
10
9
|
subtitle: z.string().optional(),
|
|
11
10
|
}))
|
|
@@ -50,4 +49,3 @@ export default async ({ media, assortmentId }, unchainedAPI) => {
|
|
|
50
49
|
excludedAssortmentMediaIds: mediaObjects.map((obj) => obj._id),
|
|
51
50
|
});
|
|
52
51
|
};
|
|
53
|
-
//# sourceMappingURL=upsertMedia.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
3
|
export declare const LocalizedContentSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4
4
|
title: z.ZodOptional<z.ZodString>;
|
|
5
5
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
@@ -7,7 +7,12 @@ export declare const LocalizedContentSchema: z.ZodRecord<z.ZodString, z.ZodObjec
|
|
|
7
7
|
export declare const FilterCreatePayloadSchema: z.ZodObject<{
|
|
8
8
|
_id: z.ZodString;
|
|
9
9
|
specification: z.ZodObject<{
|
|
10
|
-
type: z.
|
|
10
|
+
type: z.ZodEnum<{
|
|
11
|
+
readonly SWITCH: "SWITCH";
|
|
12
|
+
readonly SINGLE_CHOICE: "SINGLE_CHOICE";
|
|
13
|
+
readonly MULTI_CHOICE: "MULTI_CHOICE";
|
|
14
|
+
readonly RANGE: "RANGE";
|
|
15
|
+
}>;
|
|
11
16
|
key: z.ZodString;
|
|
12
17
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
13
18
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -35,4 +40,3 @@ export default function createFilter(payload: any, { logger, createShouldUpsertI
|
|
|
35
40
|
_id: any;
|
|
36
41
|
success: boolean;
|
|
37
42
|
}>;
|
|
38
|
-
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
z.object({
|
|
2
|
+
import { FilterType } from '@unchainedshop/core-filters';
|
|
3
|
+
export const LocalizedContentSchema = z.record(z.string(), z.object({
|
|
4
4
|
title: z.string().optional(),
|
|
5
5
|
subtitle: z.string().optional(),
|
|
6
6
|
}));
|
|
7
7
|
export const FilterCreatePayloadSchema = z.object({
|
|
8
8
|
_id: z.string(),
|
|
9
9
|
specification: z.object({
|
|
10
|
-
type: z.
|
|
10
|
+
type: z.enum(FilterType),
|
|
11
11
|
key: z.string(),
|
|
12
12
|
isActive: z.boolean().optional(),
|
|
13
13
|
options: z
|
|
@@ -77,4 +77,3 @@ export default async function createFilter(payload, { logger, createShouldUpsert
|
|
|
77
77
|
success: true,
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as create } from './create.
|
|
2
|
-
export { default as update } from './update.
|
|
3
|
-
export { default as remove } from './remove.
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { default as create } from './create.ts';
|
|
2
|
+
export { default as update } from './update.ts';
|
|
3
|
+
export { default as remove } from './remove.ts';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as create } from
|
|
2
|
-
export { default as update } from
|
|
3
|
-
export { default as remove } from
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { default as create } from "./create.js";
|
|
2
|
+
export { default as update } from "./update.js";
|
|
3
|
+
export { default as remove } from "./remove.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
3
|
export declare const FilterRemovePayloadSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
@@ -13,4 +13,3 @@ export default function removeFilter(payload: z.infer<typeof FilterRemovePayload
|
|
|
13
13
|
_id: string;
|
|
14
14
|
success: boolean;
|
|
15
15
|
}>;
|
|
16
|
-
//# sourceMappingURL=remove.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
3
|
export declare const LocalizedContentSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4
4
|
title: z.ZodOptional<z.ZodString>;
|
|
5
5
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
@@ -35,4 +35,3 @@ export default function updateFilter(payload: any, { logger, updateShouldUpsertI
|
|
|
35
35
|
_id: any;
|
|
36
36
|
success: boolean;
|
|
37
37
|
}>;
|
|
38
|
-
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import createFilter from
|
|
3
|
-
export const LocalizedContentSchema = z.record(z.string(),
|
|
4
|
-
z.object({
|
|
2
|
+
import createFilter from "./create.js";
|
|
3
|
+
export const LocalizedContentSchema = z.record(z.string(), z.object({
|
|
5
4
|
title: z.string().optional(),
|
|
6
5
|
subtitle: z.string().optional(),
|
|
7
6
|
}));
|
|
@@ -67,4 +66,3 @@ export default async function updateFilter(payload, { logger, updateShouldUpsert
|
|
|
67
66
|
success: true,
|
|
68
67
|
};
|
|
69
68
|
}
|
|
70
|
-
//# sourceMappingURL=update.js.map
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
3
|
-
import { Services } from '../../../services/index.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
|
+
import type { Services } from '../../../services/index.ts';
|
|
4
4
|
export declare const ProductCreateSpecificationSchema: z.ZodObject<{
|
|
5
|
-
type: z.
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
readonly SIMPLE_PRODUCT: "SIMPLE_PRODUCT";
|
|
7
|
+
readonly CONFIGURABLE_PRODUCT: "CONFIGURABLE_PRODUCT";
|
|
8
|
+
readonly BUNDLE_PRODUCT: "BUNDLE_PRODUCT";
|
|
9
|
+
readonly PLAN_PRODUCT: "PLAN_PRODUCT";
|
|
10
|
+
readonly TOKENIZED_PRODUCT: "TOKENIZED_PRODUCT";
|
|
11
|
+
}>;
|
|
6
12
|
sequence: z.ZodNumber;
|
|
7
13
|
status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
14
|
published: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -53,7 +59,13 @@ export declare const ProductCreateSpecificationSchema: z.ZodObject<{
|
|
|
53
59
|
export declare const ProductCreatePayloadSchema: z.ZodObject<{
|
|
54
60
|
_id: z.ZodString;
|
|
55
61
|
specification: z.ZodObject<{
|
|
56
|
-
type: z.
|
|
62
|
+
type: z.ZodEnum<{
|
|
63
|
+
readonly SIMPLE_PRODUCT: "SIMPLE_PRODUCT";
|
|
64
|
+
readonly CONFIGURABLE_PRODUCT: "CONFIGURABLE_PRODUCT";
|
|
65
|
+
readonly BUNDLE_PRODUCT: "BUNDLE_PRODUCT";
|
|
66
|
+
readonly PLAN_PRODUCT: "PLAN_PRODUCT";
|
|
67
|
+
readonly TOKENIZED_PRODUCT: "TOKENIZED_PRODUCT";
|
|
68
|
+
}>;
|
|
57
69
|
sequence: z.ZodNumber;
|
|
58
70
|
status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
59
71
|
published: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -150,7 +162,13 @@ declare namespace createProduct {
|
|
|
150
162
|
var payloadSchema: z.ZodObject<{
|
|
151
163
|
_id: z.ZodString;
|
|
152
164
|
specification: z.ZodObject<{
|
|
153
|
-
type: z.
|
|
165
|
+
type: z.ZodEnum<{
|
|
166
|
+
readonly SIMPLE_PRODUCT: "SIMPLE_PRODUCT";
|
|
167
|
+
readonly CONFIGURABLE_PRODUCT: "CONFIGURABLE_PRODUCT";
|
|
168
|
+
readonly BUNDLE_PRODUCT: "BUNDLE_PRODUCT";
|
|
169
|
+
readonly PLAN_PRODUCT: "PLAN_PRODUCT";
|
|
170
|
+
readonly TOKENIZED_PRODUCT: "TOKENIZED_PRODUCT";
|
|
171
|
+
}>;
|
|
154
172
|
sequence: z.ZodNumber;
|
|
155
173
|
status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
156
174
|
published: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -233,4 +251,3 @@ declare namespace createProduct {
|
|
|
233
251
|
}, z.core.$strip>;
|
|
234
252
|
}
|
|
235
253
|
export default createProduct;
|
|
236
|
-
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import upsertVariations, { ProductVariationSchema } from
|
|
3
|
-
import upsertMedia from
|
|
4
|
-
import { MediaSchema } from
|
|
5
|
-
import convertTagsToLowerCase from
|
|
2
|
+
import upsertVariations, { ProductVariationSchema } from "./upsertVariations.js";
|
|
3
|
+
import upsertMedia from "./upsertMedia.js";
|
|
4
|
+
import { MediaSchema } from "../assortment/upsertMedia.js";
|
|
5
|
+
import convertTagsToLowerCase from "../utils/convertTagsToLowerCase.js";
|
|
6
|
+
import { ProductType } from '@unchainedshop/core-products';
|
|
6
7
|
export const ProductCreateSpecificationSchema = z.object({
|
|
7
|
-
type: z.
|
|
8
|
+
type: z.enum(ProductType),
|
|
8
9
|
sequence: z.number(),
|
|
9
|
-
status: z.string().optional().nullable(),
|
|
10
|
-
published: z.string().datetime().optional().nullable(),
|
|
10
|
+
status: z.string().optional().nullable(),
|
|
11
|
+
published: z.string().datetime().optional().nullable(),
|
|
11
12
|
tags: z.array(z.string()).optional(),
|
|
12
13
|
commerce: z
|
|
13
14
|
.object({
|
|
@@ -46,8 +47,7 @@ export const ProductCreateSpecificationSchema = z.object({
|
|
|
46
47
|
}))
|
|
47
48
|
.optional(),
|
|
48
49
|
meta: z.record(z.any(), z.any()).optional(),
|
|
49
|
-
content: z.record(z.string(),
|
|
50
|
-
z.object({
|
|
50
|
+
content: z.record(z.string(), z.object({
|
|
51
51
|
title: z.string().optional(),
|
|
52
52
|
subtitle: z.string().optional(),
|
|
53
53
|
slug: z.string().optional(),
|
|
@@ -70,8 +70,7 @@ export const ProductCreatePayloadSchema = z.object({
|
|
|
70
70
|
variations: z.array(ProductVariationSchema).optional(),
|
|
71
71
|
});
|
|
72
72
|
const transformSpecification = (specification) => {
|
|
73
|
-
const { variationResolvers: assignments, content,
|
|
74
|
-
supply, warehousing, ...productData } = specification;
|
|
73
|
+
const { variationResolvers: assignments, content, supply, warehousing, ...productData } = specification;
|
|
75
74
|
const tags = productData?.tags ? convertTagsToLowerCase(productData.tags) : [];
|
|
76
75
|
const proxy = assignments ? { assignments } : undefined;
|
|
77
76
|
return {
|
|
@@ -129,4 +128,3 @@ export default async function createProduct(payload, { logger, createShouldUpser
|
|
|
129
128
|
};
|
|
130
129
|
}
|
|
131
130
|
createProduct.payloadSchema = ProductCreatePayloadSchema;
|
|
132
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as create } from './create.
|
|
2
|
-
export { default as update } from './update.
|
|
3
|
-
export { default as remove } from './remove.
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { default as create } from './create.ts';
|
|
2
|
+
export { default as update } from './update.ts';
|
|
3
|
+
export { default as remove } from './remove.ts';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as create } from
|
|
2
|
-
export { default as update } from
|
|
3
|
-
export { default as remove } from
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { default as create } from "./create.js";
|
|
2
|
+
export { default as update } from "./update.js";
|
|
3
|
+
export { default as remove } from "./remove.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
3
|
-
import { Services } from '../../../services/index.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
|
+
import type { Services } from '../../../services/index.ts';
|
|
4
4
|
export declare const ProductRemovePayloadSchema: z.ZodObject<{
|
|
5
5
|
_id: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
@@ -21,4 +21,3 @@ declare namespace removeProduct {
|
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
}
|
|
23
23
|
export default removeProduct;
|
|
24
|
-
//# sourceMappingURL=remove.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
3
|
-
import { Services } from '../../../services/index.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
|
+
import type { Services } from '../../../services/index.ts';
|
|
4
4
|
export declare const ProductUpdateSpecificationSchema: z.ZodObject<{
|
|
5
5
|
type: z.ZodOptional<z.ZodString>;
|
|
6
6
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -233,4 +233,3 @@ declare namespace updateProduct {
|
|
|
233
233
|
}, z.core.$strip>;
|
|
234
234
|
}
|
|
235
235
|
export default updateProduct;
|
|
236
|
-
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import upsertVariations, { ProductVariationSchema } from
|
|
3
|
-
import upsertMedia, { MediaSchema } from
|
|
4
|
-
import createProduct from
|
|
5
|
-
import convertTagsToLowerCase from
|
|
2
|
+
import upsertVariations, { ProductVariationSchema } from "./upsertVariations.js";
|
|
3
|
+
import upsertMedia, { MediaSchema } from "./upsertMedia.js";
|
|
4
|
+
import createProduct, { ProductCreatePayloadSchema } from "./create.js";
|
|
5
|
+
import convertTagsToLowerCase from "../utils/convertTagsToLowerCase.js";
|
|
6
6
|
export const ProductUpdateSpecificationSchema = z.object({
|
|
7
7
|
type: z.string().optional(),
|
|
8
8
|
sequence: z.number().optional(),
|
|
9
|
-
status: z.string().optional().nullable(),
|
|
10
|
-
published: z.string().datetime().optional().nullable(),
|
|
9
|
+
status: z.string().optional().nullable(),
|
|
10
|
+
published: z.string().datetime().optional().nullable(),
|
|
11
11
|
tags: z.array(z.string()).optional(),
|
|
12
12
|
commerce: z
|
|
13
13
|
.object({
|
|
@@ -47,8 +47,7 @@ export const ProductUpdateSpecificationSchema = z.object({
|
|
|
47
47
|
.optional(),
|
|
48
48
|
meta: z.record(z.any(), z.any()).optional(),
|
|
49
49
|
content: z
|
|
50
|
-
.record(z.string(),
|
|
51
|
-
z.object({
|
|
50
|
+
.record(z.string(), z.object({
|
|
52
51
|
title: z.string().optional(),
|
|
53
52
|
subtitle: z.string().optional(),
|
|
54
53
|
slug: z.string().optional(),
|
|
@@ -72,8 +71,7 @@ export const ProductUpdatePayloadSchema = z.object({
|
|
|
72
71
|
variations: z.array(ProductVariationSchema).optional(),
|
|
73
72
|
});
|
|
74
73
|
const transformSpecification = (specification) => {
|
|
75
|
-
const { variationResolvers: assignments, content,
|
|
76
|
-
supply, warehousing, ...productData } = specification;
|
|
74
|
+
const { variationResolvers: assignments, content, supply, warehousing, ...productData } = specification;
|
|
77
75
|
const tags = productData?.tags ? convertTagsToLowerCase(productData.tags) : [];
|
|
78
76
|
const proxy = assignments ? { assignments } : undefined;
|
|
79
77
|
return {
|
|
@@ -129,4 +127,3 @@ export default async function updateProduct(payload, { logger, updateShouldUpser
|
|
|
129
127
|
};
|
|
130
128
|
}
|
|
131
129
|
updateProduct.payloadSchema = ProductUpdatePayloadSchema;
|
|
132
|
-
//# sourceMappingURL=update.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
3
|
-
import { Services } from '../../../services/index.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
|
+
import type { Services } from '../../../services/index.ts';
|
|
4
4
|
export declare const MediaSchema: z.ZodObject<{
|
|
5
5
|
_id: z.ZodOptional<z.ZodString>;
|
|
6
6
|
asset: z.ZodObject<{
|
|
@@ -24,4 +24,3 @@ export default function upsertMedia({ media, productId }: {
|
|
|
24
24
|
modules: Modules;
|
|
25
25
|
services: Services;
|
|
26
26
|
}): Promise<void>;
|
|
27
|
-
//# sourceMappingURL=upsertMedia.d.ts.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import convertTagsToLowerCase from
|
|
3
|
-
import upsertAsset, { AssetSchema } from
|
|
2
|
+
import convertTagsToLowerCase from "../utils/convertTagsToLowerCase.js";
|
|
3
|
+
import upsertAsset, { AssetSchema } from "../../upsertAsset.js";
|
|
4
4
|
export const MediaSchema = z.object({
|
|
5
5
|
_id: z.string().optional(),
|
|
6
6
|
asset: AssetSchema,
|
|
7
7
|
content: z
|
|
8
|
-
.record(z.string(),
|
|
9
|
-
z.object({
|
|
8
|
+
.record(z.string(), z.object({
|
|
10
9
|
title: z.string().optional(),
|
|
11
10
|
subtitle: z.string().optional(),
|
|
12
11
|
}))
|
|
@@ -56,4 +55,3 @@ export default async function upsertMedia({ media, productId }, unchainedAPI) {
|
|
|
56
55
|
excludedProductMediaIds: productMediaObjects.map((obj) => obj._id),
|
|
57
56
|
});
|
|
58
57
|
}
|
|
59
|
-
//# sourceMappingURL=upsertMedia.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Modules } from '../../../modules.
|
|
2
|
+
import type { Modules } from '../../../modules.ts';
|
|
3
3
|
export declare const ProductVariationSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodOptional<z.ZodString>;
|
|
5
5
|
key: z.ZodString;
|
|
@@ -22,4 +22,3 @@ export default function upsertVariations({ variations, productId }: {
|
|
|
22
22
|
}, unchainedAPI: {
|
|
23
23
|
modules: Modules;
|
|
24
24
|
}): Promise<void>;
|
|
25
|
-
//# sourceMappingURL=upsertVariations.d.ts.map
|
|
@@ -2,8 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
const ProductVariationOptionSchema = z.object({
|
|
3
3
|
value: z.string(),
|
|
4
4
|
content: z
|
|
5
|
-
.record(z.string(),
|
|
6
|
-
z.object({
|
|
5
|
+
.record(z.string(), z.object({
|
|
7
6
|
title: z.string().optional(),
|
|
8
7
|
subtitle: z.string().optional(),
|
|
9
8
|
}))
|
|
@@ -15,8 +14,7 @@ export const ProductVariationSchema = z.object({
|
|
|
15
14
|
type: z.string(),
|
|
16
15
|
options: z.array(ProductVariationOptionSchema),
|
|
17
16
|
content: z
|
|
18
|
-
.record(z.string(),
|
|
19
|
-
z.object({
|
|
17
|
+
.record(z.string(), z.object({
|
|
20
18
|
title: z.string().optional(),
|
|
21
19
|
subtitle: z.string().optional(),
|
|
22
20
|
}))
|
|
@@ -69,4 +67,3 @@ export default async function upsertVariations({ variations, productId }, unchai
|
|
|
69
67
|
}
|
|
70
68
|
}));
|
|
71
69
|
}
|
|
72
|
-
//# sourceMappingURL=upsertVariations.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as createBulkImporterFactory } from './createBulkImporter.
|
|
2
|
-
export * from './createBulkImporter.
|
|
1
|
+
import { default as createBulkImporterFactory } from './createBulkImporter.ts';
|
|
2
|
+
export * from './createBulkImporter.ts';
|
|
3
3
|
export default createBulkImporterFactory;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as createBulkImporterFactory } from
|
|
2
|
-
export * from
|
|
1
|
+
import { default as createBulkImporterFactory } from "./createBulkImporter.js";
|
|
2
|
+
export * from "./createBulkImporter.js";
|
|
3
3
|
export default createBulkImporterFactory;
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Modules } from '../modules.
|
|
2
|
-
import { Services } from '../services/index.
|
|
1
|
+
import type { Modules } from '../modules.ts';
|
|
2
|
+
import type { Services } from '../services/index.ts';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export declare const AssetSchema: z.ZodObject<{
|
|
5
5
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -11,6 +11,5 @@ export declare const AssetSchema: z.ZodObject<{
|
|
|
11
11
|
declare const upsertAsset: (directoryName: string, asset: z.infer<typeof AssetSchema>, unchainedAPI: {
|
|
12
12
|
modules: Modules;
|
|
13
13
|
services: Services;
|
|
14
|
-
}) => Promise<import("@unchainedshop/core-files").File | null
|
|
14
|
+
}) => Promise<import("@unchainedshop/core-files").File | null>;
|
|
15
15
|
export default upsertAsset;
|
|
16
|
-
//# sourceMappingURL=upsertAsset.d.ts.map
|
|
@@ -31,8 +31,7 @@ const upsertAsset = async (directoryName, asset, unchainedAPI) => {
|
|
|
31
31
|
},
|
|
32
32
|
meta,
|
|
33
33
|
});
|
|
34
|
-
|
|
35
|
-
return null;
|
|
34
|
+
return assetObject;
|
|
36
35
|
}
|
|
37
36
|
catch (e) {
|
|
38
37
|
logger.warn(`Unable to upsert asset ${fileId || fileName}: ${e.message}`);
|
|
@@ -40,4 +39,3 @@ const upsertAsset = async (directoryName, asset, unchainedAPI) => {
|
|
|
40
39
|
}
|
|
41
40
|
};
|
|
42
41
|
export default upsertAsset;
|
|
43
|
-
//# sourceMappingURL=upsertAsset.js.map
|