@unchainedshop/core 4.7.2 → 4.8.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/lib/bulk-exporter/createBulkExporter.d.ts +2 -2
- package/lib/bulk-exporter/createBulkExporter.js +2 -2
- package/lib/bulk-exporter/handlers/exportAssortmentsHandler.d.ts +19 -19
- package/lib/bulk-exporter/handlers/exportAssortmentsHandler.js +9 -9
- package/lib/bulk-exporter/handlers/exportFiltersHandler.d.ts +11 -11
- package/lib/bulk-exporter/handlers/exportFiltersHandler.js +5 -5
- package/lib/bulk-exporter/handlers/exportProductsHandler.d.ts +19 -19
- package/lib/bulk-exporter/handlers/exportProductsHandler.js +9 -9
- package/lib/bulk-exporter/handlers/exportUsersHandler.d.ts +17 -17
- package/lib/bulk-exporter/handlers/exportUsersHandler.js +8 -8
- package/lib/bulk-importer/createBulkImporter.d.ts +2 -2
- package/lib/bulk-importer/createBulkImporter.js +4 -2
- package/lib/bulk-importer/handlers/assortment/create.d.ts +87 -87
- package/lib/bulk-importer/handlers/assortment/create.js +13 -15
- package/lib/bulk-importer/handlers/assortment/remove.d.ts +5 -5
- package/lib/bulk-importer/handlers/assortment/remove.js +1 -1
- package/lib/bulk-importer/handlers/assortment/update.d.ts +87 -87
- package/lib/bulk-importer/handlers/assortment/update.js +17 -21
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts +7 -7
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js +5 -5
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts +7 -7
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js +5 -5
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts +7 -7
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js +5 -5
- package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts +14 -14
- package/lib/bulk-importer/handlers/assortment/upsertMedia.js +8 -10
- package/lib/bulk-importer/handlers/filter/create.d.ts +19 -19
- package/lib/bulk-importer/handlers/filter/create.js +8 -10
- package/lib/bulk-importer/handlers/filter/remove.d.ts +3 -3
- package/lib/bulk-importer/handlers/filter/remove.js +1 -1
- package/lib/bulk-importer/handlers/filter/update.d.ts +19 -19
- package/lib/bulk-importer/handlers/filter/update.js +8 -10
- package/lib/bulk-importer/handlers/product/create.d.ts +175 -175
- package/lib/bulk-importer/handlers/product/create.js +35 -45
- package/lib/bulk-importer/handlers/product/remove.d.ts +5 -5
- package/lib/bulk-importer/handlers/product/remove.js +1 -1
- package/lib/bulk-importer/handlers/product/update.d.ts +175 -175
- package/lib/bulk-importer/handlers/product/update.js +40 -52
- package/lib/bulk-importer/handlers/product/upsertMedia.d.ts +14 -14
- package/lib/bulk-importer/handlers/product/upsertMedia.js +8 -10
- package/lib/bulk-importer/handlers/product/upsertVariations.d.ts +13 -13
- package/lib/bulk-importer/handlers/product/upsertVariations.js +10 -14
- package/lib/bulk-importer/upsertAsset.d.ts +7 -7
- package/lib/bulk-importer/upsertAsset.js +4 -4
- package/lib/core-index.d.ts +0 -3
- package/lib/core-index.js +2 -6
- package/lib/directors/BaseDiscountDirector.js +6 -6
- package/lib/directors/BasePricingDirector.js +1 -1
- package/lib/directors/DeliveryAdapter.js +0 -1
- package/lib/directors/DeliveryDirector.js +2 -11
- package/lib/directors/DeliveryPricingAdapter.d.ts +1 -2
- package/lib/directors/DeliveryPricingAdapter.js +1 -2
- package/lib/directors/DeliveryPricingDirector.d.ts +1 -1
- package/lib/directors/DeliveryPricingDirector.js +2 -12
- package/lib/directors/DeliveryPricingSheet.d.ts +1 -1
- package/lib/directors/DeliveryPricingSheet.js +1 -1
- package/lib/directors/EnrollmentAdapter.js +0 -1
- package/lib/directors/EnrollmentDirector.js +1 -11
- package/lib/directors/FilterAdapter.js +0 -1
- package/lib/directors/FilterDirector.js +1 -11
- package/lib/directors/OrderDiscountAdapter.d.ts +2 -3
- package/lib/directors/OrderDiscountAdapter.js +2 -5
- package/lib/directors/OrderDiscountDirector.d.ts +1 -15
- package/lib/directors/OrderDiscountDirector.js +1 -14
- package/lib/directors/OrderPricingAdapter.d.ts +1 -2
- package/lib/directors/OrderPricingAdapter.js +1 -3
- package/lib/directors/OrderPricingDirector.d.ts +1 -4
- package/lib/directors/OrderPricingDirector.js +1 -12
- package/lib/directors/OrderPricingSheet.d.ts +1 -1
- package/lib/directors/OrderPricingSheet.js +1 -1
- package/lib/directors/PaymentAdapter.js +0 -1
- package/lib/directors/PaymentDirector.js +2 -11
- package/lib/directors/PaymentPricingAdapter.d.ts +1 -2
- package/lib/directors/PaymentPricingAdapter.js +1 -2
- package/lib/directors/PaymentPricingDirector.d.ts +1 -2
- package/lib/directors/PaymentPricingDirector.js +1 -11
- package/lib/directors/PaymentPricingSheet.d.ts +1 -2
- package/lib/directors/PaymentPricingSheet.js +1 -2
- package/lib/directors/ProductDiscountAdapter.d.ts +2 -3
- package/lib/directors/ProductDiscountAdapter.js +2 -5
- package/lib/directors/ProductDiscountDirector.d.ts +2 -16
- package/lib/directors/ProductDiscountDirector.js +2 -15
- package/lib/directors/ProductPricingAdapter.d.ts +1 -2
- package/lib/directors/ProductPricingAdapter.js +1 -3
- package/lib/directors/ProductPricingDirector.d.ts +1 -3
- package/lib/directors/ProductPricingDirector.js +1 -12
- package/lib/directors/ProductPricingSheet.d.ts +1 -1
- package/lib/directors/ProductPricingSheet.js +1 -1
- package/lib/directors/QuotationAdapter.js +0 -1
- package/lib/directors/QuotationDirector.js +2 -11
- package/lib/directors/WarehousingAdapter.js +0 -1
- package/lib/directors/WarehousingDirector.d.ts +1 -1
- package/lib/directors/WarehousingDirector.js +2 -12
- package/lib/directors/WorkerAdapter.js +0 -1
- package/lib/directors/WorkerDirector.d.ts +1 -1
- package/lib/directors/WorkerDirector.js +17 -10
- package/lib/directors/index.d.ts +0 -2
- package/lib/directors/index.js +0 -2
- package/lib/factory/registerAssortmentSearchFilter.d.ts +1 -2
- package/lib/factory/registerAssortmentSearchFilter.js +3 -12
- package/lib/factory/registerInvoicePayment.d.ts +2 -2
- package/lib/factory/registerInvoicePayment.js +3 -12
- package/lib/factory/registerPhysicalWarehousing.d.ts +2 -2
- package/lib/factory/registerPhysicalWarehousing.js +3 -12
- package/lib/factory/registerPickUpDelivery.d.ts +2 -2
- package/lib/factory/registerPickUpDelivery.js +3 -12
- package/lib/factory/registerProductDiscoverabilityFilter.d.ts +1 -2
- package/lib/factory/registerProductDiscoverabilityFilter.js +3 -12
- package/lib/factory/registerProductSearchFilter.d.ts +1 -2
- package/lib/factory/registerProductSearchFilter.js +3 -12
- package/lib/factory/registerShippingDelivery.d.ts +2 -2
- package/lib/factory/registerShippingDelivery.js +3 -12
- package/lib/factory/registerVirtualWarehousing.d.ts +2 -2
- package/lib/factory/registerVirtualWarehousing.js +3 -12
- package/lib/factory/registerWorker.d.ts +1 -2
- package/lib/factory/registerWorker.js +3 -12
- package/lib/services/createDownloadStream.js +1 -1
- package/lib/services/createFileDownloadURL.js +1 -2
- package/lib/services/createSignedURL.js +1 -2
- package/lib/services/linkFileService.js +1 -1
- package/lib/services/removeFiles.js +1 -1
- package/lib/services/uploadFileFromStream.js +1 -2
- package/lib/services/uploadFileFromURL.js +1 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFileAdapter } from
|
|
1
|
+
import { getFileAdapter } from '@unchainedshop/core-files';
|
|
2
2
|
export async function removeFilesService({ fileIds }) {
|
|
3
3
|
if (fileIds && typeof fileIds !== 'string' && !Array.isArray(fileIds))
|
|
4
4
|
throw Error('Media id/s to be removed not provided as a string or array');
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { getFileFromFileData } from '@unchainedshop/core-files';
|
|
2
|
-
import { getFileAdapter } from "../utils/getFileAdapter.js";
|
|
1
|
+
import { getFileFromFileData, getFileAdapter } from '@unchainedshop/core-files';
|
|
3
2
|
export async function uploadFileFromStreamService({ directoryName, rawFile, meta, ...options }) {
|
|
4
3
|
const fileUploadAdapter = getFileAdapter();
|
|
5
4
|
const uploadFileData = await fileUploadAdapter.uploadFileFromStream(directoryName, rawFile, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { getFileFromFileData } from '@unchainedshop/core-files';
|
|
2
|
-
import { getFileAdapter } from "../utils/getFileAdapter.js";
|
|
1
|
+
import { getFileFromFileData, getFileAdapter } from '@unchainedshop/core-files';
|
|
3
2
|
export async function uploadFileFromURLService({ directoryName, fileInput, meta, }) {
|
|
4
3
|
const fileUploadAdapter = getFileAdapter();
|
|
5
4
|
const uploadFileData = await fileUploadAdapter.uploadFileFromURL(directoryName, fileInput, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/core",
|
|
3
3
|
"description": "Core orchestration package for the Unchained Engine with business services and directors",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.8.1",
|
|
5
5
|
"main": "lib/core-index.js",
|
|
6
6
|
"types": "lib/core-index.d.ts",
|
|
7
7
|
"type": "module",
|