@ikas/storefront-models 4.0.0-alpha.48 → 4.0.0-alpha.5
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/build-cjs/_virtual/_tslib.js +1 -0
- package/build-cjs/index.d.ts +0 -14
- package/build-cjs/index.js +2 -1
- package/build-cjs/models/base/init.js +1 -0
- package/build-cjs/models/blog/category/init.js +1 -0
- package/build-cjs/models/blog/init.js +1 -0
- package/build-cjs/models/blog/meta-data/index.js +1 -0
- package/build-cjs/models/brand/index.js +1 -0
- package/build-cjs/models/brand/init.js +1 -0
- package/build-cjs/models/campaign-offer/index.js +1 -0
- package/build-cjs/models/campaign-offer/product/index.js +1 -0
- package/build-cjs/models/cart/available-shipping-method/index.js +1 -0
- package/build-cjs/models/cart/campaign-offer/index.js +1 -0
- package/build-cjs/models/category/index.js +1 -0
- package/build-cjs/models/category/init.js +2 -1
- package/build-cjs/models/category/init.js.map +1 -1
- package/build-cjs/models/category/path-item/index.d.ts +0 -2
- package/build-cjs/models/checkout-settings/index.js +1 -0
- package/build-cjs/models/checkout-settings/price/index.d.ts +0 -1
- package/build-cjs/models/country/index.d.ts +0 -2
- package/build-cjs/models/customer/attribute/index.js +1 -0
- package/build-cjs/models/customer/attribute/init.js +1 -0
- package/build-cjs/models/customer/attribute/sales-channel/index.js +1 -0
- package/build-cjs/models/customer/index.js +1 -0
- package/build-cjs/models/customer/review/index.js +1 -0
- package/build-cjs/models/customer/review/init.js +1 -0
- package/build-cjs/models/html-meta-data/index.js +1 -0
- package/build-cjs/models/html-meta-data/init.js +1 -0
- package/build-cjs/models/merchant-settings/index.d.ts +0 -3
- package/build-cjs/models/merchant-settings/index.js +1 -0
- package/build-cjs/models/merchant-settings/index.js.map +1 -1
- package/build-cjs/models/merchant-settings/init.js +1 -0
- package/build-cjs/models/order/adjustment/index.js +1 -0
- package/build-cjs/models/order/index.d.ts +1 -3
- package/build-cjs/models/order/index.js +2 -1
- package/build-cjs/models/order/index.js.map +1 -1
- package/build-cjs/models/order/invoice/index.js +1 -0
- package/build-cjs/models/order/line-item/index.d.ts +0 -3
- package/build-cjs/models/order/line-item/index.js +1 -0
- package/build-cjs/models/order/line-item/index.js.map +1 -1
- package/build-cjs/models/order/line-item/variant/index.d.ts +0 -4
- package/build-cjs/models/order/line-item/variant/price/index.d.ts +0 -1
- package/build-cjs/models/order/package/index.js +1 -0
- package/build-cjs/models/order/transaction/index.d.ts +1 -1
- package/build-cjs/models/order/transaction/index.js +1 -0
- package/build-cjs/models/order/transaction/index.js.map +1 -1
- package/build-cjs/models/order/transaction/payment-method-detail/index.js +1 -0
- package/build-cjs/models/payment-gateway/additional-price/index.js +1 -0
- package/build-cjs/models/payment-gateway/index.js +1 -0
- package/build-cjs/models/payment-gateway/init.js +1 -0
- package/build-cjs/models/payment-gateway/settings/index.js +1 -0
- package/build-cjs/models/product/attribute/index.d.ts +1 -3
- package/build-cjs/models/product/attribute/index.js +2 -1
- package/build-cjs/models/product/attribute/index.js.map +1 -1
- package/build-cjs/models/product/attribute/init.js +1 -0
- package/build-cjs/models/product/attribute-value/init.js +1 -0
- package/build-cjs/models/product/campaign/data/index.js +1 -0
- package/build-cjs/models/product/campaign/filter/index.js +1 -0
- package/build-cjs/models/product/filter/index.d.ts +1 -3
- package/build-cjs/models/product/filter/index.js +2 -1
- package/build-cjs/models/product/filter/index.js.map +1 -1
- package/build-cjs/models/product/image/init.js +1 -0
- package/build-cjs/models/product/index.d.ts +0 -2
- package/build-cjs/models/product/index.js +1 -0
- package/build-cjs/models/product/index.js.map +1 -1
- package/build-cjs/models/product/init.js +1 -0
- package/build-cjs/models/product/option-set/init.js +1 -0
- package/build-cjs/models/product/option-set/option/index.js +1 -0
- package/build-cjs/models/product/option-set/option/init.js +1 -0
- package/build-cjs/models/product/variant/index.d.ts +0 -2
- package/build-cjs/models/product/variant/init.js +1 -0
- package/build-cjs/models/product/variant/price/index.d.ts +0 -2
- package/build-cjs/models/product/variant-type/index.d.ts +0 -1
- package/build-cjs/models/product/variant-type/init.js +1 -0
- package/build-cjs/models/raffle/index.d.ts +3 -9
- package/build-cjs/models/raffle/index.js +2 -1
- package/build-cjs/models/raffle/index.js.map +1 -1
- package/build-cjs/models/raffle/init.js +1 -0
- package/build-cjs/models/stock-location/index.js +1 -0
- package/build-cjs/models/storefront/index.d.ts +0 -1
- package/build-cjs/models/storefront/index.js +1 -0
- package/build-cjs/models/storefront/index.js.map +1 -1
- package/build-cjs/models/storefront/routing/index.d.ts +0 -2
- package/build-cjs/models/storefront/theme/index.js +1 -0
- package/build-cjs/models/theme-json/component/prop/index.js +1 -0
- package/build-cjs/models/theme-json/page/index.js +1 -0
- package/build-cjs/models/theme-json/settings/index.js +1 -0
- package/build-cjs/models/variant-type/index.js +1 -0
- package/build-cjs/models/variant-type/init.js +1 -0
- package/build-cjs/models/variant-type/variant-value/init.js +1 -0
- package/package.json +2 -8
- package/src/index.ts +0 -16
- package/src/models/category/init.ts +0 -4
- package/src/models/category/path-item/index.ts +0 -2
- package/src/models/checkout-settings/price/index.ts +0 -1
- package/src/models/country/index.ts +0 -2
- package/src/models/customer/address/{index.ts → index.tsx} +0 -0
- package/src/models/merchant-settings/index.ts +0 -3
- package/src/models/order/index.ts +0 -2
- package/src/models/order/line-item/index.ts +0 -3
- package/src/models/order/line-item/variant/index.ts +0 -4
- package/src/models/order/line-item/variant/price/index.ts +0 -1
- package/src/models/order/transaction/index.ts +3 -1
- package/src/models/product/attribute/index.ts +0 -2
- package/src/models/product/filter/index.ts +0 -2
- package/src/models/product/index.ts +0 -2
- package/src/models/product/variant/index.ts +0 -2
- package/src/models/product/variant/price/index.ts +0 -2
- package/src/models/product/variant-type/index.ts +0 -1
- package/src/models/raffle/index.ts +3 -10
- package/src/models/storefront/index.ts +0 -1
- package/src/models/storefront/routing/index.tsx +0 -2
- package/build-cjs/models/category/path-item/init.d.ts +0 -2
- package/build-cjs/models/category/path-item/init.js +0 -1
- package/build-cjs/models/category/path-item/init.js.map +0 -1
- package/build-cjs/models/country/init.d.ts +0 -2
- package/build-cjs/models/country/init.js +0 -1
- package/build-cjs/models/country/init.js.map +0 -1
- package/build-cjs/models/country/location-translations/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/city/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/country/index.d.ts +0 -7
- package/build-cjs/models/merchant-settings/address/district/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/index.d.ts +0 -21
- package/build-cjs/models/merchant-settings/address/state/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/type/index.d.ts +0 -4
- package/build-cjs/models/merchant-settings/address/type/index.js +0 -1
- package/build-cjs/models/merchant-settings/address/type/index.js.map +0 -1
- package/build-cjs/models/order/line-item/base-unit/index.d.ts +0 -20
- package/build-cjs/models/order/line-item/base-unit/index.js +0 -1
- package/build-cjs/models/order/line-item/base-unit/index.js.map +0 -1
- package/build-cjs/models/order/line-item/base-unit/unit-type/index.d.ts +0 -4
- package/build-cjs/models/order/line-item/variant/unit/index.d.ts +0 -5
- package/build-cjs/models/product/base-unit/index.d.ts +0 -10
- package/build-cjs/models/product/variant/unit/index.d.ts +0 -5
- package/build-cjs/models/product-option-file/index.d.ts +0 -5
- package/src/models/category/path-item/init.ts +0 -25
- package/src/models/country/init.ts +0 -16
- package/src/models/country/location-translations/index.ts +0 -5
- package/src/models/merchant-settings/address/city/index.ts +0 -5
- package/src/models/merchant-settings/address/country/index.ts +0 -7
- package/src/models/merchant-settings/address/district/index.ts +0 -5
- package/src/models/merchant-settings/address/index.ts +0 -22
- package/src/models/merchant-settings/address/state/index.ts +0 -5
- package/src/models/merchant-settings/address/type/index.ts +0 -4
- package/src/models/order/line-item/base-unit/index.ts +0 -22
- package/src/models/order/line-item/base-unit/unit-type/index.ts +0 -4
- package/src/models/order/line-item/variant/unit/index.ts +0 -6
- package/src/models/product/base-unit/index.ts +0 -12
- package/src/models/product/variant/unit/index.ts +0 -6
- package/src/models/product-option-file/index.ts +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasCategoryPathItem=function(e,n){e.translations&&n&&(!function(e,n,t){if(n&&n.some((function(e){return e.locale===t}))){var a=n.find((function(e){return e.locale===t}));(null==a?void 0:a.name)&&(e.name=a.name)}}(e,e.translations,n),delete e.translations)};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sources":["../../../../src/models/category/path-item/init.ts"],"sourcesContent":["import { IkasCategoryPathItem } from \".\";\nimport { IkasCategoryTranslation } from \"../translations\";\n\nexport function initIkasCategoryPathItem(\n categoryPathItem: IkasCategoryPathItem,\n locale: string | null\n) {\n if (categoryPathItem.translations && locale) {\n setTranslations(categoryPathItem, categoryPathItem.translations, locale);\n delete categoryPathItem.translations;\n }\n}\n\nfunction setTranslations(\n categoryPathItem: IkasCategoryPathItem,\n translations: IkasCategoryTranslation[],\n locale: string\n) {\n if (translations && translations.some((t) => t.locale === locale)) {\n const localeTranslations = translations.find((t) => t.locale === locale);\n\n if (localeTranslations?.name)\n categoryPathItem.name = localeTranslations.name;\n }\n}\n"],"names":["categoryPathItem","locale","translations","some","t","localeTranslations","find","name","setTranslations"],"mappings":"qGAGgB,SACdA,EACAC,GAEID,EAAiBE,cAAgBD,KAMvC,SACED,EACAE,EACAD,GAEA,GAAIC,GAAgBA,EAAaC,MAAK,SAACC,GAAM,OAAAA,EAAEH,SAAWA,KAAS,CACjE,IAAMI,EAAqBH,EAAaI,MAAK,SAACF,GAAM,OAAAA,EAAEH,SAAWA,MAE7DI,aAAA,EAAAA,EAAoBE,QACtBP,EAAiBO,KAAOF,EAAmBE,OAd7CC,CAAgBR,EAAkBA,EAAiBE,aAAcD,UAC1DD,EAAiBE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasCountry=function(n,o){n.locationTranslations&&o&&(!function(n,o){n.name=n.locationTranslations&&n.locationTranslations[o]||n.name}(n,o),delete n.locationTranslations)};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sources":["../../../src/models/country/init.ts"],"sourcesContent":["import { IkasCountry } from \"./index\";\nimport { IkasLocationTranslations } from \"./location-translations\";\n\nexport function initIkasCountry(country: IkasCountry, locale: string | null) {\n if (country.locationTranslations && locale) {\n setTranslations(country, locale);\n delete country.locationTranslations;\n }\n}\n\nfunction setTranslations(country: IkasCountry, locale: string) {\n country.name =\n (country.locationTranslations &&\n country.locationTranslations[locale as keyof IkasLocationTranslations]) ||\n country.name;\n}\n"],"names":["country","locale","locationTranslations","name","setTranslations"],"mappings":"4FAGgB,SAAgBA,EAAsBC,GAChDD,EAAQE,sBAAwBD,KAMtC,SAAyBD,EAAsBC,GAC7CD,EAAQG,KACLH,EAAQE,sBACPF,EAAQE,qBAAqBD,IAC/BD,EAAQG,KATRC,CAAgBJ,EAASC,UAClBD,EAAQE"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IkasMerchantAddressCity } from "./city";
|
|
2
|
-
import { IkasMerchantAddressCountry } from "./country";
|
|
3
|
-
import { IkasMerchantAddressDistrict } from "./district";
|
|
4
|
-
import { IkasMerchantAddressState } from "./state";
|
|
5
|
-
import { IkasMerchantSettingsAddressTypeEnum } from "./type";
|
|
6
|
-
export declare type IkasMerchantAddress = {
|
|
7
|
-
addressLine1: string | null;
|
|
8
|
-
addressLine2: string | null;
|
|
9
|
-
city: IkasMerchantAddressCity | null;
|
|
10
|
-
country: IkasMerchantAddressCountry | null;
|
|
11
|
-
district: IkasMerchantAddressDistrict | null;
|
|
12
|
-
firstName: string | null;
|
|
13
|
-
identityNumber: string | null;
|
|
14
|
-
lastName: string | null;
|
|
15
|
-
postalCode: string | null;
|
|
16
|
-
state: IkasMerchantAddressState | null;
|
|
17
|
-
taxOffice: string | null;
|
|
18
|
-
title: string | null;
|
|
19
|
-
type: IkasMerchantSettingsAddressTypeEnum | null;
|
|
20
|
-
vkn: string | null;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasMerchantSettingsAddressTypeEnum=void 0,(e=exports.IkasMerchantSettingsAddressTypeEnum||(exports.IkasMerchantSettingsAddressTypeEnum={})).CORPORATE="CORPORATE",e.INDIVIDUAL="INDIVIDUAL";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/models/merchant-settings/address/type/index.ts"],"sourcesContent":["export enum IkasMerchantSettingsAddressTypeEnum {\n CORPORATE = \"CORPORATE\",\n INDIVIDUAL = \"INDIVIDUAL\",\n}\n"],"names":["IkasMerchantSettingsAddressTypeEnum"],"mappings":"aAAA,IAAYA,yDAAAA,QAGXA,yCAAA,GAHWA,EAAAA,QAAmCA,sCAAnCA,4CAGX,KAFC,UAAA,YACAA,EAAA,WAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IkasOrderLineVariantUnitType } from "./unit-type";
|
|
2
|
-
export declare type IkasOrderLineBaseUnit = {
|
|
3
|
-
baseAmount: number;
|
|
4
|
-
type: IkasProductUnitType;
|
|
5
|
-
unit: IkasOrderLineVariantUnitType | null;
|
|
6
|
-
};
|
|
7
|
-
export declare enum IkasProductUnitType {
|
|
8
|
-
CENTILITER = "CENTILITER",
|
|
9
|
-
CENTIMETER = "CENTIMETER",
|
|
10
|
-
CUBIC_METERS = "CUBIC_METERS",
|
|
11
|
-
CUSTOM = "CUSTOM",
|
|
12
|
-
GRAM = "GRAM",
|
|
13
|
-
KILOGRAM = "KILOGRAM",
|
|
14
|
-
LITER = "LITER",
|
|
15
|
-
METER = "METER",
|
|
16
|
-
MILLIGRAM = "MILLIGRAM",
|
|
17
|
-
MILLILITER = "MILLILITER",
|
|
18
|
-
MILLIMETER = "MILLIMETER",
|
|
19
|
-
SQUARE_METERS = "SQUARE_METERS"
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductUnitType=void 0,(E=exports.IkasProductUnitType||(exports.IkasProductUnitType={})).CENTILITER="CENTILITER",E.CENTIMETER="CENTIMETER",E.CUBIC_METERS="CUBIC_METERS",E.CUSTOM="CUSTOM",E.GRAM="GRAM",E.KILOGRAM="KILOGRAM",E.LITER="LITER",E.METER="METER",E.MILLIGRAM="MILLIGRAM",E.MILLILITER="MILLILITER",E.MILLIMETER="MILLIMETER",E.SQUARE_METERS="SQUARE_METERS";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/models/order/line-item/base-unit/index.ts"],"sourcesContent":["import { IkasOrderLineVariantUnitType } from \"./unit-type\";\n\nexport type IkasOrderLineBaseUnit = {\n baseAmount: number;\n type: IkasProductUnitType;\n unit: IkasOrderLineVariantUnitType | null;\n};\n\nexport enum IkasProductUnitType {\n CENTILITER = \"CENTILITER\",\n CENTIMETER = \"CENTIMETER\",\n CUBIC_METERS = \"CUBIC_METERS\",\n CUSTOM = \"CUSTOM\",\n GRAM = \"GRAM\",\n KILOGRAM = \"KILOGRAM\",\n LITER = \"LITER\",\n METER = \"METER\",\n MILLIGRAM = \"MILLIGRAM\",\n MILLILITER = \"MILLILITER\",\n MILLIMETER = \"MILLIMETER\",\n SQUARE_METERS = \"SQUARE_METERS\",\n}\n"],"names":["IkasProductUnitType"],"mappings":"aAQA,IAAYA,yDAAAA,QAaXA,yBAAA,GAbWA,EAAAA,QAAmBA,sBAAnBA,4BAaX,KAZC,WAAA,aACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,SAAA,WACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,UAAA,YACAA,EAAA,WAAA,aACAA,EAAA,WAAA,aACAA,EAAA,cAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IkasProductUnitType } from "../../order/line-item/base-unit";
|
|
2
|
-
export declare type IkasProductBaseUnit = {
|
|
3
|
-
baseAmount: number | null;
|
|
4
|
-
type: IkasProductUnitType;
|
|
5
|
-
unit: IkasProductUnit;
|
|
6
|
-
};
|
|
7
|
-
export declare type IkasProductUnit = {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IkasCategoryPathItem } from ".";
|
|
2
|
-
import { IkasCategoryTranslation } from "../translations";
|
|
3
|
-
|
|
4
|
-
export function initIkasCategoryPathItem(
|
|
5
|
-
categoryPathItem: IkasCategoryPathItem,
|
|
6
|
-
locale: string | null
|
|
7
|
-
) {
|
|
8
|
-
if (categoryPathItem.translations && locale) {
|
|
9
|
-
setTranslations(categoryPathItem, categoryPathItem.translations, locale);
|
|
10
|
-
delete categoryPathItem.translations;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function setTranslations(
|
|
15
|
-
categoryPathItem: IkasCategoryPathItem,
|
|
16
|
-
translations: IkasCategoryTranslation[],
|
|
17
|
-
locale: string
|
|
18
|
-
) {
|
|
19
|
-
if (translations && translations.some((t) => t.locale === locale)) {
|
|
20
|
-
const localeTranslations = translations.find((t) => t.locale === locale);
|
|
21
|
-
|
|
22
|
-
if (localeTranslations?.name)
|
|
23
|
-
categoryPathItem.name = localeTranslations.name;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IkasCountry } from "./index";
|
|
2
|
-
import { IkasLocationTranslations } from "./location-translations";
|
|
3
|
-
|
|
4
|
-
export function initIkasCountry(country: IkasCountry, locale: string | null) {
|
|
5
|
-
if (country.locationTranslations && locale) {
|
|
6
|
-
setTranslations(country, locale);
|
|
7
|
-
delete country.locationTranslations;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function setTranslations(country: IkasCountry, locale: string) {
|
|
12
|
-
country.name =
|
|
13
|
-
(country.locationTranslations &&
|
|
14
|
-
country.locationTranslations[locale as keyof IkasLocationTranslations]) ||
|
|
15
|
-
country.name;
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IkasMerchantAddressCity } from "./city";
|
|
2
|
-
import { IkasMerchantAddressCountry } from "./country";
|
|
3
|
-
import { IkasMerchantAddressDistrict } from "./district";
|
|
4
|
-
import { IkasMerchantAddressState } from "./state";
|
|
5
|
-
import { IkasMerchantSettingsAddressTypeEnum } from "./type";
|
|
6
|
-
|
|
7
|
-
export type IkasMerchantAddress = {
|
|
8
|
-
addressLine1: string | null;
|
|
9
|
-
addressLine2: string | null;
|
|
10
|
-
city: IkasMerchantAddressCity | null;
|
|
11
|
-
country: IkasMerchantAddressCountry | null;
|
|
12
|
-
district: IkasMerchantAddressDistrict | null;
|
|
13
|
-
firstName: string | null;
|
|
14
|
-
identityNumber: string | null;
|
|
15
|
-
lastName: string | null;
|
|
16
|
-
postalCode: string | null;
|
|
17
|
-
state: IkasMerchantAddressState | null;
|
|
18
|
-
taxOffice: string | null;
|
|
19
|
-
title: string | null;
|
|
20
|
-
type: IkasMerchantSettingsAddressTypeEnum | null;
|
|
21
|
-
vkn: string | null;
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IkasOrderLineVariantUnitType } from "./unit-type";
|
|
2
|
-
|
|
3
|
-
export type IkasOrderLineBaseUnit = {
|
|
4
|
-
baseAmount: number;
|
|
5
|
-
type: IkasProductUnitType;
|
|
6
|
-
unit: IkasOrderLineVariantUnitType | null;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export enum IkasProductUnitType {
|
|
10
|
-
CENTILITER = "CENTILITER",
|
|
11
|
-
CENTIMETER = "CENTIMETER",
|
|
12
|
-
CUBIC_METERS = "CUBIC_METERS",
|
|
13
|
-
CUSTOM = "CUSTOM",
|
|
14
|
-
GRAM = "GRAM",
|
|
15
|
-
KILOGRAM = "KILOGRAM",
|
|
16
|
-
LITER = "LITER",
|
|
17
|
-
METER = "METER",
|
|
18
|
-
MILLIGRAM = "MILLIGRAM",
|
|
19
|
-
MILLILITER = "MILLILITER",
|
|
20
|
-
MILLIMETER = "MILLIMETER",
|
|
21
|
-
SQUARE_METERS = "SQUARE_METERS",
|
|
22
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IkasProductUnitType } from "../../order/line-item/base-unit";
|
|
2
|
-
|
|
3
|
-
export type IkasProductBaseUnit = {
|
|
4
|
-
baseAmount: number | null;
|
|
5
|
-
type: IkasProductUnitType;
|
|
6
|
-
unit: IkasProductUnit;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export type IkasProductUnit = {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
};
|