@ikas/storefront-model-functions 5.0.19 → 5.0.20
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.
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IkasCheckout
|
|
1
|
+
import { IkasCheckout } from "@ikas/storefront-models";
|
|
2
2
|
export declare function isComplete(checkout: IkasCheckout): boolean;
|
|
3
|
-
export declare function getTotalFinalPrice(checkout: IkasCheckout, selectedPaymentGateway: IkasPaymentGateway): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IkasCartCreatedBy as
|
|
1
|
+
import{IkasCartCreatedBy as r,IkasOrderPaymentStatus as e}from"@ikas/storefront-models";function t(t){return t.createdBy===r.ADMIN?t.orderPaymentStatus===e.PAID:!!t.orderNumber}export{t as isComplete};
|
package/build/index.d.ts
CHANGED
|
@@ -30,8 +30,6 @@ import * as IkasOrderLineItemFunctions from "./functions/order/line-item";
|
|
|
30
30
|
export { IkasOrderLineItemFunctions };
|
|
31
31
|
import * as IkasOrderFunctions from "./functions/order";
|
|
32
32
|
export { IkasOrderFunctions };
|
|
33
|
-
import * as IkasPaymentGatewayFunctions from "./functions/payment-gateway";
|
|
34
|
-
export { IkasPaymentGatewayFunctions };
|
|
35
33
|
import * as IkasProductAttributeValueFunctions from "./functions/product/attribute-value";
|
|
36
34
|
export { IkasProductAttributeValueFunctions };
|
|
37
35
|
import * as IkasProductFilterFunctions from "./functions/product/filter";
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"./functions/blog/category/index.js";export{t as IkasBlogCategoryFunctions};import*as o from"./functions/blog/index.js";export{o as IkasBlogFunctions};import*as s from"./functions/brand/index.js";export{s as IkasBrandFunctions};import*as n from"./functions/category/path-item/index.js";export{n as IkasCategoryPathItemFunctions};import*as r from"./functions/category/index.js";export{r as IkasCategoryFunctions};import*as i from"./functions/checkout/index.js";export{i as IkasCheckoutFunctions};import*as a from"./functions/customer/address/index.js";export{a as IkasCustomerAddressFunctions};import*as e from"./functions/customer/attribute/index.js";export{e as IkasCustomerAttributeFunctions};import*as u from"./functions/customer/index.js";export{u as IkasCustomerFunctions};import*as c from"./functions/filter-category/index.js";export{c as IkasFilterCategoryFunctions};import*as
|
|
1
|
+
import*as t from"./functions/blog/category/index.js";export{t as IkasBlogCategoryFunctions};import*as o from"./functions/blog/index.js";export{o as IkasBlogFunctions};import*as s from"./functions/brand/index.js";export{s as IkasBrandFunctions};import*as n from"./functions/category/path-item/index.js";export{n as IkasCategoryPathItemFunctions};import*as r from"./functions/category/index.js";export{r as IkasCategoryFunctions};import*as i from"./functions/checkout/index.js";export{i as IkasCheckoutFunctions};import*as a from"./functions/customer/address/index.js";export{a as IkasCustomerAddressFunctions};import*as e from"./functions/customer/attribute/index.js";export{e as IkasCustomerAttributeFunctions};import*as u from"./functions/customer/index.js";export{u as IkasCustomerFunctions};import*as c from"./functions/filter-category/index.js";export{c as IkasFilterCategoryFunctions};import*as p from"./functions/image/index.js";export{p as IkasImageFunctions};import*as m from"./functions/order/address/index.js";export{m as IkasOrderAddressFunctions};import*as d from"./functions/order/line-item/variant/value/index.js";export{d as IkasOrderLineItemVariantValueFunctions};import*as f from"./functions/order/line-item/variant/index.js";export{f as IkasOrderLineItemVariantFunctions};import*as x from"./functions/order/line-item/index.js";export{x as IkasOrderLineItemFunctions};import*as I from"./functions/order/index.js";export{I as IkasOrderFunctions};import*as k from"./functions/product/attribute-value/index.js";export{k as IkasProductAttributeValueFunctions};import*as F from"./functions/product/filter/index.js";export{F as IkasProductFilterFunctions};import*as j from"./functions/product/option-set/option/index.js";export{j as IkasProductOptionFunctions};import*as l from"./functions/product/option-set/index.js";export{l as IkasProductOptionSetFunctions};import*as g from"./functions/product/variant/price/index.js";export{g as IkasProductPriceFunctions};import*as y from"./functions/product/variant/index.js";export{y as IkasProductVariantFunctions};import*as v from"./functions/product/index.js";export{v as IkasProductFunctions};import*as P from"./functions/raffle/index.js";export{P as IkasRaffleFunctions};import*as C from"./functions/variant-type/variant-value/index.js";export{C as IkasVariantValueFunctions};import*as V from"./functions/variant-type/index.js";export{V as IkasVariantTypeFunctions};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-model-functions",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.20",
|
|
4
4
|
"description": "Functions for ikas storefront models.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"build": "rm -rf build && rollup -c"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@ikas/storefront-config": "^5.0.
|
|
20
|
-
"@ikas/storefront-models": "^5.0.
|
|
19
|
+
"@ikas/storefront-config": "^5.0.20",
|
|
20
|
+
"@ikas/storefront-models": "^5.0.20",
|
|
21
21
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
22
22
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
23
23
|
"rollup-plugin-rename-node-modules": "^1.2.0",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"lodash": "^4.17.21"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@ikas/storefront-config": "^5.0.
|
|
37
|
-
"@ikas/storefront-models": "^5.0.
|
|
36
|
+
"@ikas/storefront-config": "^5.0.20",
|
|
37
|
+
"@ikas/storefront-models": "^5.0.20",
|
|
38
38
|
"lodash": "^4.17.21"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IkasOrderShippingLine, IkasPaymentGateway, IkasPaymentGatewayAdditionalPriceType } from "@ikas/storefront-models";
|
|
2
|
-
export declare function getCalculatedAdditionalPrices(paymentGateway: IkasPaymentGateway, totalFinalPrice: number, shippingLines: IkasOrderShippingLine[] | null): {
|
|
3
|
-
name: string;
|
|
4
|
-
amount: number;
|
|
5
|
-
type: IkasPaymentGatewayAdditionalPriceType;
|
|
6
|
-
}[] | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{IkasPaymentGatewayTransactionFeeType as n,IkasPaymentGatewayAdditionalPriceType as t}from"@ikas/storefront-models";function e(e,r,o){if(e.additionalPrices){var a=(null==o?void 0:o.reduce((function(n,t){return n+t.price}),0))||0;return r-=a,e.additionalPrices.map((function(o){var a=0;return a=o.amountType===n.RATIO?(r||0)*o.amount/100:o.amount,o.type===t.DECREMENT?r-=a:r+=a,{name:o.name||e.name,amount:a,type:o.type}}))}}export{e as getCalculatedAdditionalPrices};
|