@hartl-services/medusa-base 4.0.0 → 5.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/.medusa/server/src/free-shipping/free-shipping-settings.js +38 -0
- package/.medusa/server/src/free-shipping/plugin-features.js +45 -0
- package/.medusa/server/src/jobs/free-shipping-promotion-sync.js +22 -0
- package/.medusa/server/src/modules/free-shipping/index.js +13 -0
- package/.medusa/server/src/modules/free-shipping/migrations/Migration20260911114515.js +16 -0
- package/.medusa/server/src/modules/free-shipping/migrations/Migration20260928201511.js +19 -0
- package/.medusa/server/src/modules/free-shipping/migrations/Migration20260928211756.js +110 -0
- package/.medusa/server/src/modules/free-shipping/service.js +17 -0
- package/.medusa/server/src/shop-config/build-shop-config.js +5 -9
- package/.medusa/server/src/subscribers/free-shipping-plugin-features-updated.js +25 -0
- package/.medusa/server/src/subscribers/free-shipping-plugin-settings-updated.js +26 -0
- package/.medusa/server/src/workflows/free-shipping/sync-free-shipping-promotions.js +143 -0
- package/.medusa/server/src/workflows/hooks/set-free-shipping-promotion-context.js +86 -0
- package/README.md +712 -530
- package/dist/shop-config/build-shop-config.d.ts +2 -2
- package/dist/shop-config/build-shop-config.js +4 -8
- package/package.json +4 -4
|
@@ -33,8 +33,8 @@ export type ShopConfigInput = {
|
|
|
33
33
|
* Builds the plain `medusa-config.ts` input of a shop: Medusa core
|
|
34
34
|
* settings, the Redis event bus, the mail provider (set up in the Admin), S3 file storage, tax and
|
|
35
35
|
* Stripe payment providers, and the Hartl Services plugins (the base plugin
|
|
36
|
-
* with its E-Mail, Documents, Steuer-Compliance and file
|
|
37
|
-
*
|
|
36
|
+
* with its E-Mail, Documents, Steuer-Compliance, Versandkostenfrei and file
|
|
37
|
+
* storage modules plus three feature plugins). Deployment
|
|
38
38
|
* values are read and validated from `environment`; a missing or invalid one
|
|
39
39
|
* fails with its name.
|
|
40
40
|
*/
|
|
@@ -14,8 +14,8 @@ const options_1 = require("./options");
|
|
|
14
14
|
* Builds the plain `medusa-config.ts` input of a shop: Medusa core
|
|
15
15
|
* settings, the Redis event bus, the mail provider (set up in the Admin), S3 file storage, tax and
|
|
16
16
|
* Stripe payment providers, and the Hartl Services plugins (the base plugin
|
|
17
|
-
* with its E-Mail, Documents, Steuer-Compliance and file
|
|
18
|
-
*
|
|
17
|
+
* with its E-Mail, Documents, Steuer-Compliance, Versandkostenfrei and file
|
|
18
|
+
* storage modules plus three feature plugins). Deployment
|
|
19
19
|
* values are read and validated from `environment`; a missing or invalid one
|
|
20
20
|
* fails with its name.
|
|
21
21
|
*/
|
|
@@ -162,8 +162,8 @@ function buildShopConfig(options, environment = process.env) {
|
|
|
162
162
|
const plugins = [
|
|
163
163
|
{
|
|
164
164
|
// Always first: owns the plugin feature toggles the other plugins gate
|
|
165
|
-
// on, and carries E-Mail, Documents, Steuer-Compliance
|
|
166
|
-
// gateway.
|
|
165
|
+
// on, and carries E-Mail, Documents, Steuer-Compliance, Versandkostenfrei
|
|
166
|
+
// and the /files gateway.
|
|
167
167
|
resolve: "@hartl-services/medusa-base",
|
|
168
168
|
options: {
|
|
169
169
|
email: {
|
|
@@ -210,10 +210,6 @@ function buildShopConfig(options, environment = process.env) {
|
|
|
210
210
|
files: { gateway: s3CacheStorage.gateway },
|
|
211
211
|
},
|
|
212
212
|
},
|
|
213
|
-
{
|
|
214
|
-
resolve: "@hartl-services/medusa-free-shipping",
|
|
215
|
-
options: {},
|
|
216
|
-
},
|
|
217
213
|
{
|
|
218
214
|
resolve: "@hartl-services/medusa-batch-management",
|
|
219
215
|
options: {},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hartl-services/medusa-base",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Base plugin for Hartl Services Medusa shops: per-plugin feature toggles with a generic Admin settings page, a Store endpoint for storefronts, enforcement helpers, the complete-cart hook composition, the root redirect, cart-promotion link repair, the built-in E-Mail, Documents, Steuer-Compliance (UID check, Tax provider) and S3 file storage modules, config helpers with the turnkey shop-config preset, and the Sentry logger wrapper and instrumentation.",
|
|
3
|
+
"version": "5.0.1",
|
|
4
|
+
"description": "Base plugin for Hartl Services Medusa shops: per-plugin feature toggles with a generic Admin settings page, a Store endpoint for storefronts, enforcement helpers, the complete-cart hook composition, the root redirect, cart-promotion link repair, the built-in E-Mail, Documents, Steuer-Compliance (UID check, Tax provider), Versandkostenfrei and S3 file storage modules, config helpers with the turnkey shop-config preset, and the Sentry logger wrapper and instrumentation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
".medusa/server",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "git+https://gitlab.com/hartl-services-gmbh/
|
|
14
|
+
"url": "git+https://gitlab.com/hartl-services-gmbh/pakete/medusa-plugins.git",
|
|
15
15
|
"directory": "plugins/base"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"mime-types": "3.0.1",
|
|
103
103
|
"nodemailer": "6.10.1",
|
|
104
104
|
"ulid": "^2.4.0",
|
|
105
|
-
"@hartl-services/medusa-contracts": "^1.0.
|
|
105
|
+
"@hartl-services/medusa-contracts": "^1.0.1"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@medusajs/admin-sdk": "2.19.0",
|