@unchainedshop/plugins 3.0.0-rc2 → 3.0.0-rc4
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/pricing/discount-100-off.d.ts +2 -2
- package/lib/pricing/discount-100-off.d.ts.map +1 -1
- package/lib/pricing/discount-100-off.js.map +1 -1
- package/lib/pricing/discount-half-price-manual.d.ts +2 -2
- package/lib/pricing/discount-half-price-manual.d.ts.map +1 -1
- package/lib/pricing/discount-half-price-manual.js.map +1 -1
- package/lib/pricing/discount-half-price.d.ts +2 -2
- package/lib/pricing/discount-half-price.d.ts.map +1 -1
- package/lib/pricing/discount-half-price.js.map +1 -1
- package/package.json +13 -13
- package/src/pricing/discount-100-off.ts +1 -2
- package/src/pricing/discount-half-price-manual.ts +1 -2
- package/src/pricing/discount-half-price.ts +1 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { OrderDiscountConfiguration,
|
|
2
|
-
export declare const HundredOff: IDiscountAdapter<OrderDiscountConfiguration
|
|
1
|
+
import { OrderDiscountConfiguration, IDiscountAdapter } from '@unchainedshop/core';
|
|
2
|
+
export declare const HundredOff: IDiscountAdapter<OrderDiscountConfiguration>;
|
|
3
3
|
//# sourceMappingURL=discount-100-off.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-100-off.d.ts","sourceRoot":"","sources":["../../src/pricing/discount-100-off.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,0BAA0B,EAC1B,
|
|
1
|
+
{"version":3,"file":"discount-100-off.d.ts","sourceRoot":"","sources":["../../src/pricing/discount-100-off.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,0BAA0B,EAC1B,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,0BAA0B,CAsCnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-100-off.js","sourceRoot":"","sources":["../../src/pricing/discount-100-off.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"discount-100-off.js","sourceRoot":"","sources":["../../src/pricing/discount-100-off.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GAGrB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,UAAU,GAAiD;IACtE,GAAG,oBAAoB;IAEvB,GAAG,EAAE,iCAAiC;IACtC,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,EAAE;IAEd,uEAAuE;IACvE,uBAAuB,EAAE,KAAK,IAAI,EAAE;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,yEAAyE;IACzE,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/B,GAAG,CAAC,MAAM,oBAAoB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QAEpD,0BAA0B,EAAE,KAAK,IAAI,EAAE;YACrC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,wBAAwB,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC3C,OAAO,IAAI,CAAC,WAAW,EAAE,KAAK,QAAQ,CAAC;QACzC,CAAC;QAED,qEAAqE;QACrE,4BAA4B,EAAE,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE;YACtD,IAAI,iBAAiB,KAAK,uCAAuC,EAAE,CAAC;gBAClE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;CACH,CAAC;AAEF,qBAAqB,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProductDiscountConfiguration,
|
|
2
|
-
export declare const HalfPriceManual: IDiscountAdapter<ProductDiscountConfiguration
|
|
1
|
+
import { ProductDiscountConfiguration, IDiscountAdapter } from '@unchainedshop/core';
|
|
2
|
+
export declare const HalfPriceManual: IDiscountAdapter<ProductDiscountConfiguration>;
|
|
3
3
|
//# sourceMappingURL=discount-half-price-manual.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-half-price-manual.d.ts","sourceRoot":"","sources":["../../src/pricing/discount-half-price-manual.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,4BAA4B,EAC5B,
|
|
1
|
+
{"version":3,"file":"discount-half-price-manual.d.ts","sourceRoot":"","sources":["../../src/pricing/discount-half-price-manual.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,4BAA4B,EAC5B,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,eAAe,EAAE,gBAAgB,CAAC,4BAA4B,CAqC1E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-half-price-manual.js","sourceRoot":"","sources":["../../src/pricing/discount-half-price-manual.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"discount-half-price-manual.js","sourceRoot":"","sources":["../../src/pricing/discount-half-price-manual.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GAGrB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,eAAe,GAAmD;IAC7E,GAAG,oBAAoB;IAEvB,GAAG,EAAE,2CAA2C;IAChD,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,EAAE;IAEd,uEAAuE;IACvE,uBAAuB,EAAE,KAAK,IAAI,EAAE;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,yEAAyE;IACzE,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/B,GAAG,CAAC,MAAM,oBAAoB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QAEpD,0BAA0B,EAAE,KAAK,IAAI,EAAE;YACrC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,wBAAwB,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC3C,OAAO,IAAI,KAAK,WAAW,CAAC;QAC9B,CAAC;QAED,qEAAqE;QACrE,4BAA4B,CAAC,EAAE,iBAAiB,EAAE;YAChD,IAAI,iBAAiB,KAAK,yCAAyC,EAAE,CAAC;gBACpE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;YACvB,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;CACH,CAAC;AAEF,qBAAqB,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProductDiscountConfiguration, IDiscountAdapter
|
|
2
|
-
export declare const HalfPrice: IDiscountAdapter<ProductDiscountConfiguration
|
|
1
|
+
import { ProductDiscountConfiguration, IDiscountAdapter } from '@unchainedshop/core';
|
|
2
|
+
export declare const HalfPrice: IDiscountAdapter<ProductDiscountConfiguration>;
|
|
3
3
|
//# sourceMappingURL=discount-half-price.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-half-price.d.ts","sourceRoot":"","sources":["../../src/pricing/discount-half-price.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,4BAA4B,EAC5B,gBAAgB,
|
|
1
|
+
{"version":3,"file":"discount-half-price.d.ts","sourceRoot":"","sources":["../../src/pricing/discount-half-price.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,4BAA4B,EAC5B,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,SAAS,EAAE,gBAAgB,CAAC,4BAA4B,CAwCpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-half-price.js","sourceRoot":"","sources":["../../src/pricing/discount-half-price.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"discount-half-price.js","sourceRoot":"","sources":["../../src/pricing/discount-half-price.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GAGrB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,SAAS,GAAmD;IACvE,GAAG,oBAAoB;IAEvB,GAAG,EAAE,oCAAoC;IACzC,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,EAAE;IAEd,uEAAuE;IACvE,uBAAuB,EAAE,KAAK,IAAI,EAAE;QAClC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,yEAAyE;IACzE,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACjC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/B,GAAG,CAAC,MAAM,oBAAoB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QAEpD,0BAA0B,EAAE,KAAK,IAAI,EAAE;YACrC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;YAC1B,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACpE,MAAM,0BAA0B,GAAG,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;YACxF,OAAO,CAAC,CAAC,0BAA0B,CAAC;QACtC,CAAC;QAED,wBAAwB,EAAE,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,qEAAqE;QACrE,4BAA4B,CAAC,EAAE,iBAAiB,EAAE;YAChD,IAAI,iBAAiB,KAAK,yCAAyC,EAAE,CAAC;gBACpE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;YACvB,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;CACH,CAAC;AAEF,qBAAqB,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/plugins",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-rc4",
|
|
4
4
|
"main": "lib/plugins-index.js",
|
|
5
5
|
"types": "lib/plugins-index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/unchainedshop/unchained#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@unchainedshop/api": "^3.0.0-
|
|
36
|
-
"@unchainedshop/core-delivery": "^3.0.0-
|
|
37
|
-
"@unchainedshop/core-enrollments": "^3.0.0-
|
|
38
|
-
"@unchainedshop/core-orders": "^3.0.0-
|
|
39
|
-
"@unchainedshop/core-payment": "^3.0.0-
|
|
40
|
-
"@unchainedshop/core-products": "^3.0.0-
|
|
41
|
-
"@unchainedshop/core-warehousing": "^3.0.0-
|
|
42
|
-
"@unchainedshop/core-worker": "^3.0.0-
|
|
43
|
-
"@unchainedshop/events": "^3.0.0-
|
|
44
|
-
"@unchainedshop/file-upload": "^3.0.0-
|
|
45
|
-
"@unchainedshop/logger": "^3.0.0-
|
|
46
|
-
"@unchainedshop/utils": "^3.0.0-
|
|
35
|
+
"@unchainedshop/api": "^3.0.0-rc4",
|
|
36
|
+
"@unchainedshop/core-delivery": "^3.0.0-rc4",
|
|
37
|
+
"@unchainedshop/core-enrollments": "^3.0.0-rc4",
|
|
38
|
+
"@unchainedshop/core-orders": "^3.0.0-rc4",
|
|
39
|
+
"@unchainedshop/core-payment": "^3.0.0-rc4",
|
|
40
|
+
"@unchainedshop/core-products": "^3.0.0-rc4",
|
|
41
|
+
"@unchainedshop/core-warehousing": "^3.0.0-rc4",
|
|
42
|
+
"@unchainedshop/core-worker": "^3.0.0-rc4",
|
|
43
|
+
"@unchainedshop/events": "^3.0.0-rc4",
|
|
44
|
+
"@unchainedshop/file-upload": "^3.0.0-rc4",
|
|
45
|
+
"@unchainedshop/logger": "^3.0.0-rc4",
|
|
46
|
+
"@unchainedshop/utils": "^3.0.0-rc4"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
49
|
"@aws-sdk/client-eventbridge": "^3.714.0",
|
|
@@ -2,11 +2,10 @@ import {
|
|
|
2
2
|
OrderDiscountDirector,
|
|
3
3
|
OrderDiscountAdapter,
|
|
4
4
|
OrderDiscountConfiguration,
|
|
5
|
-
UnchainedCore,
|
|
6
5
|
IDiscountAdapter,
|
|
7
6
|
} from '@unchainedshop/core';
|
|
8
7
|
|
|
9
|
-
export const HundredOff: IDiscountAdapter<OrderDiscountConfiguration
|
|
8
|
+
export const HundredOff: IDiscountAdapter<OrderDiscountConfiguration> = {
|
|
10
9
|
...OrderDiscountAdapter,
|
|
11
10
|
|
|
12
11
|
key: 'shop.unchained.discount.100-off',
|
|
@@ -2,11 +2,10 @@ import {
|
|
|
2
2
|
OrderDiscountDirector,
|
|
3
3
|
OrderDiscountAdapter,
|
|
4
4
|
ProductDiscountConfiguration,
|
|
5
|
-
UnchainedCore,
|
|
6
5
|
IDiscountAdapter,
|
|
7
6
|
} from '@unchainedshop/core';
|
|
8
7
|
|
|
9
|
-
export const HalfPriceManual: IDiscountAdapter<ProductDiscountConfiguration
|
|
8
|
+
export const HalfPriceManual: IDiscountAdapter<ProductDiscountConfiguration> = {
|
|
10
9
|
...OrderDiscountAdapter,
|
|
11
10
|
|
|
12
11
|
key: 'shop.unchained.discount.half-price-manual',
|
|
@@ -3,10 +3,9 @@ import {
|
|
|
3
3
|
OrderDiscountAdapter,
|
|
4
4
|
ProductDiscountConfiguration,
|
|
5
5
|
IDiscountAdapter,
|
|
6
|
-
UnchainedCore,
|
|
7
6
|
} from '@unchainedshop/core';
|
|
8
7
|
|
|
9
|
-
export const HalfPrice: IDiscountAdapter<ProductDiscountConfiguration
|
|
8
|
+
export const HalfPrice: IDiscountAdapter<ProductDiscountConfiguration> = {
|
|
10
9
|
...OrderDiscountAdapter,
|
|
11
10
|
|
|
12
11
|
key: 'shop.unchained.discount.half-price',
|