@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.
Files changed (124) hide show
  1. package/lib/bulk-exporter/createBulkExporter.d.ts +2 -2
  2. package/lib/bulk-exporter/createBulkExporter.js +2 -2
  3. package/lib/bulk-exporter/handlers/exportAssortmentsHandler.d.ts +19 -19
  4. package/lib/bulk-exporter/handlers/exportAssortmentsHandler.js +9 -9
  5. package/lib/bulk-exporter/handlers/exportFiltersHandler.d.ts +11 -11
  6. package/lib/bulk-exporter/handlers/exportFiltersHandler.js +5 -5
  7. package/lib/bulk-exporter/handlers/exportProductsHandler.d.ts +19 -19
  8. package/lib/bulk-exporter/handlers/exportProductsHandler.js +9 -9
  9. package/lib/bulk-exporter/handlers/exportUsersHandler.d.ts +17 -17
  10. package/lib/bulk-exporter/handlers/exportUsersHandler.js +8 -8
  11. package/lib/bulk-importer/createBulkImporter.d.ts +2 -2
  12. package/lib/bulk-importer/createBulkImporter.js +4 -2
  13. package/lib/bulk-importer/handlers/assortment/create.d.ts +87 -87
  14. package/lib/bulk-importer/handlers/assortment/create.js +13 -15
  15. package/lib/bulk-importer/handlers/assortment/remove.d.ts +5 -5
  16. package/lib/bulk-importer/handlers/assortment/remove.js +1 -1
  17. package/lib/bulk-importer/handlers/assortment/update.d.ts +87 -87
  18. package/lib/bulk-importer/handlers/assortment/update.js +17 -21
  19. package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts +7 -7
  20. package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js +5 -5
  21. package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts +7 -7
  22. package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js +5 -5
  23. package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts +7 -7
  24. package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js +5 -5
  25. package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts +14 -14
  26. package/lib/bulk-importer/handlers/assortment/upsertMedia.js +8 -10
  27. package/lib/bulk-importer/handlers/filter/create.d.ts +19 -19
  28. package/lib/bulk-importer/handlers/filter/create.js +8 -10
  29. package/lib/bulk-importer/handlers/filter/remove.d.ts +3 -3
  30. package/lib/bulk-importer/handlers/filter/remove.js +1 -1
  31. package/lib/bulk-importer/handlers/filter/update.d.ts +19 -19
  32. package/lib/bulk-importer/handlers/filter/update.js +8 -10
  33. package/lib/bulk-importer/handlers/product/create.d.ts +175 -175
  34. package/lib/bulk-importer/handlers/product/create.js +35 -45
  35. package/lib/bulk-importer/handlers/product/remove.d.ts +5 -5
  36. package/lib/bulk-importer/handlers/product/remove.js +1 -1
  37. package/lib/bulk-importer/handlers/product/update.d.ts +175 -175
  38. package/lib/bulk-importer/handlers/product/update.js +40 -52
  39. package/lib/bulk-importer/handlers/product/upsertMedia.d.ts +14 -14
  40. package/lib/bulk-importer/handlers/product/upsertMedia.js +8 -10
  41. package/lib/bulk-importer/handlers/product/upsertVariations.d.ts +13 -13
  42. package/lib/bulk-importer/handlers/product/upsertVariations.js +10 -14
  43. package/lib/bulk-importer/upsertAsset.d.ts +7 -7
  44. package/lib/bulk-importer/upsertAsset.js +4 -4
  45. package/lib/core-index.d.ts +0 -3
  46. package/lib/core-index.js +2 -6
  47. package/lib/directors/BaseDiscountDirector.js +6 -6
  48. package/lib/directors/BasePricingDirector.js +1 -1
  49. package/lib/directors/DeliveryAdapter.js +0 -1
  50. package/lib/directors/DeliveryDirector.js +2 -11
  51. package/lib/directors/DeliveryPricingAdapter.d.ts +1 -2
  52. package/lib/directors/DeliveryPricingAdapter.js +1 -2
  53. package/lib/directors/DeliveryPricingDirector.d.ts +1 -1
  54. package/lib/directors/DeliveryPricingDirector.js +2 -12
  55. package/lib/directors/DeliveryPricingSheet.d.ts +1 -1
  56. package/lib/directors/DeliveryPricingSheet.js +1 -1
  57. package/lib/directors/EnrollmentAdapter.js +0 -1
  58. package/lib/directors/EnrollmentDirector.js +1 -11
  59. package/lib/directors/FilterAdapter.js +0 -1
  60. package/lib/directors/FilterDirector.js +1 -11
  61. package/lib/directors/OrderDiscountAdapter.d.ts +2 -3
  62. package/lib/directors/OrderDiscountAdapter.js +2 -5
  63. package/lib/directors/OrderDiscountDirector.d.ts +1 -15
  64. package/lib/directors/OrderDiscountDirector.js +1 -14
  65. package/lib/directors/OrderPricingAdapter.d.ts +1 -2
  66. package/lib/directors/OrderPricingAdapter.js +1 -3
  67. package/lib/directors/OrderPricingDirector.d.ts +1 -4
  68. package/lib/directors/OrderPricingDirector.js +1 -12
  69. package/lib/directors/OrderPricingSheet.d.ts +1 -1
  70. package/lib/directors/OrderPricingSheet.js +1 -1
  71. package/lib/directors/PaymentAdapter.js +0 -1
  72. package/lib/directors/PaymentDirector.js +2 -11
  73. package/lib/directors/PaymentPricingAdapter.d.ts +1 -2
  74. package/lib/directors/PaymentPricingAdapter.js +1 -2
  75. package/lib/directors/PaymentPricingDirector.d.ts +1 -2
  76. package/lib/directors/PaymentPricingDirector.js +1 -11
  77. package/lib/directors/PaymentPricingSheet.d.ts +1 -2
  78. package/lib/directors/PaymentPricingSheet.js +1 -2
  79. package/lib/directors/ProductDiscountAdapter.d.ts +2 -3
  80. package/lib/directors/ProductDiscountAdapter.js +2 -5
  81. package/lib/directors/ProductDiscountDirector.d.ts +2 -16
  82. package/lib/directors/ProductDiscountDirector.js +2 -15
  83. package/lib/directors/ProductPricingAdapter.d.ts +1 -2
  84. package/lib/directors/ProductPricingAdapter.js +1 -3
  85. package/lib/directors/ProductPricingDirector.d.ts +1 -3
  86. package/lib/directors/ProductPricingDirector.js +1 -12
  87. package/lib/directors/ProductPricingSheet.d.ts +1 -1
  88. package/lib/directors/ProductPricingSheet.js +1 -1
  89. package/lib/directors/QuotationAdapter.js +0 -1
  90. package/lib/directors/QuotationDirector.js +2 -11
  91. package/lib/directors/WarehousingAdapter.js +0 -1
  92. package/lib/directors/WarehousingDirector.d.ts +1 -1
  93. package/lib/directors/WarehousingDirector.js +2 -12
  94. package/lib/directors/WorkerAdapter.js +0 -1
  95. package/lib/directors/WorkerDirector.d.ts +1 -1
  96. package/lib/directors/WorkerDirector.js +17 -10
  97. package/lib/directors/index.d.ts +0 -2
  98. package/lib/directors/index.js +0 -2
  99. package/lib/factory/registerAssortmentSearchFilter.d.ts +1 -2
  100. package/lib/factory/registerAssortmentSearchFilter.js +3 -12
  101. package/lib/factory/registerInvoicePayment.d.ts +2 -2
  102. package/lib/factory/registerInvoicePayment.js +3 -12
  103. package/lib/factory/registerPhysicalWarehousing.d.ts +2 -2
  104. package/lib/factory/registerPhysicalWarehousing.js +3 -12
  105. package/lib/factory/registerPickUpDelivery.d.ts +2 -2
  106. package/lib/factory/registerPickUpDelivery.js +3 -12
  107. package/lib/factory/registerProductDiscoverabilityFilter.d.ts +1 -2
  108. package/lib/factory/registerProductDiscoverabilityFilter.js +3 -12
  109. package/lib/factory/registerProductSearchFilter.d.ts +1 -2
  110. package/lib/factory/registerProductSearchFilter.js +3 -12
  111. package/lib/factory/registerShippingDelivery.d.ts +2 -2
  112. package/lib/factory/registerShippingDelivery.js +3 -12
  113. package/lib/factory/registerVirtualWarehousing.d.ts +2 -2
  114. package/lib/factory/registerVirtualWarehousing.js +3 -12
  115. package/lib/factory/registerWorker.d.ts +1 -2
  116. package/lib/factory/registerWorker.js +3 -12
  117. package/lib/services/createDownloadStream.js +1 -1
  118. package/lib/services/createFileDownloadURL.js +1 -2
  119. package/lib/services/createSignedURL.js +1 -2
  120. package/lib/services/linkFileService.js +1 -1
  121. package/lib/services/removeFiles.js +1 -1
  122. package/lib/services/uploadFileFromStream.js +1 -2
  123. package/lib/services/uploadFileFromURL.js +1 -2
  124. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { getFileAdapter } from "../utils/getFileAdapter.js";
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.7.2",
4
+ "version": "4.8.1",
5
5
  "main": "lib/core-index.js",
6
6
  "types": "lib/core-index.d.ts",
7
7
  "type": "module",