@ikas/storefront-api 4.10.0-beta.1 → 4.10.0-beta.11

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.
@@ -0,0 +1,12 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import BaseModelData from "./_base";
3
+ export declare class ProductFileData extends BaseModelData {
4
+ name: string;
5
+ productId: string;
6
+ variantId: string;
7
+ constructor(data?: Partial<ProductFileData>);
8
+ }
9
+ export declare class ProductFile extends ProductFileData {
10
+ }
11
+ export declare type PartialProductFile = Partial<ProductFile>;
12
+ export declare type ReadOnlyProductFile = DeepReadonly<ProductFile>;
@@ -2,6 +2,7 @@ import { DeepReadonly } from "ts-essentials";
2
2
  import { ProductBrandTranslationData } from "./ProductBrandTranslation";
3
3
  export declare class SearchProductBrandData {
4
4
  id: string;
5
+ imageId: string | null;
5
6
  name: string;
6
7
  slug: string | null;
7
8
  translations: ProductBrandTranslationData[] | null;
@@ -1,6 +1,7 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
- declare const getDigitalProductFileDownloadUrl: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<undefined> | APIResponse<string>>;
2
+ declare const getDigitalProductFileDownloadUrl: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<string> | APIResponse<undefined>>;
3
3
  export default getDigitalProductFileDownloadUrl;
4
4
  export declare type QueryParams = {
5
+ orderId: string;
5
6
  orderLineItemId: string;
6
7
  };
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as r}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as n,fetchQuery as i}from"@ikas/fe-api-client";var o=function(o,d){return t(void 0,void 0,void 0,(function(){var t,l,a,s;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i({operationName:"getDigitalProductFileDownloadUrl",config:d,variables:o,query:"\n\t\t\t\tquery getDigitalProductFileDownloadUrl (\n\t\t\t\t\t$orderId: String!,\n\t\t\t\t\t$orderLineItemId: String!,\n\t\t\t\t) {\n\t\t\t\t\tgetDigitalProductFileDownloadUrl (\n\t\t\t\t\t\torderId: $orderId,\n\t\t\t\t\t\torderLineItemId: $orderLineItemId,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t"})];case 1:return t=r.sent(),l=t.data,a=t.errors,[2,new n(null==l?void 0:l.getDigitalProductFileDownloadUrl,a)];case 2:return s=r.sent(),[2,e(s)];case 3:return[2]}}))}))};export{o as default};
@@ -0,0 +1,16 @@
1
+ import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
+ import { StringFilterInput, ProductFile } from "../types";
3
+ declare const listProductFile: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<ProductFile[]> | APIResponse<undefined>>;
4
+ export default listProductFile;
5
+ export declare type QueryParams = {
6
+ id: StringFilterInput;
7
+ };
8
+ export declare enum ResponseField {
9
+ CREATED_AT = "createdAt",
10
+ DELETED = "deleted",
11
+ ID = "id",
12
+ NAME = "name",
13
+ PRODUCT_ID = "productId",
14
+ UPDATED_AT = "updatedAt",
15
+ VARIANT_ID = "variantId"
16
+ }
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as n,fetchQuery as i}from"@ikas/fe-api-client";var d,a=function(d,a,o){return t(void 0,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,i({operationName:"listProductFile",config:o,variables:d,allReturnFields:u,fields:a,query:function(t){return"\n\t\t\t\tquery listProductFile (\n\t\t\t\t\t$id: StringFilterInput!,\n\t\t\t\t) {\n\t\t\t\t\tlistProductFile (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),l=t.data,s=t.errors,[2,new n(null==l?void 0:l.listProductFile,s)];case 2:return c=e.sent(),[2,r(c)];case 3:return[2]}}))}))},u="{createdAt deleted id name productId updatedAt variantId }";!function(t){t.CREATED_AT="createdAt",t.DELETED="deleted",t.ID="id",t.NAME="name",t.PRODUCT_ID="productId",t.UPDATED_AT="updatedAt",t.VARIANT_ID="variantId"}(d||(d={}));export{d as ResponseField,a as default};
@@ -38,6 +38,7 @@ export declare enum ResponseField {
38
38
  RESULTS__BASE_UNIT__UNIT__TRANSLATIONS__LOCALE = "results.baseUnit.unit.translations.locale",
39
39
  RESULTS__BASE_UNIT__UNIT__TRANSLATIONS__NAME = "results.baseUnit.unit.translations.name",
40
40
  RESULTS__BRAND__ID = "results.brand.id",
41
+ RESULTS__BRAND__IMAGE_ID = "results.brand.imageId",
41
42
  RESULTS__BRAND__NAME = "results.brand.name",
42
43
  RESULTS__BRAND__SLUG = "results.brand.slug",
43
44
  RESULTS__BRAND__TRANSLATIONS__DESCRIPTION = "results.brand.translations.description",
@@ -1 +1 @@
1
- import{__awaiter as _,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as T,APIResponse as s,fetchQuery as e}from"@ikas/fe-api-client";var a,S=function(a,S,A){return _(void 0,void 0,void 0,(function(){var _,E,i,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e({operationName:"searchProducts",config:A,variables:a,allReturnFields:r,fields:S,query:function(_){return"\n\t\t\t\tquery searchProducts (\n\t\t\t\t\t$input: SearchInput!,\n\t\t\t\t) {\n\t\t\t\t\tsearchProducts (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(_,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return _=t.sent(),E=_.data,i=_.errors,[2,new s(null==E?void 0:E.searchProducts,i)];case 2:return R=t.sent(),[2,T(R)];case 3:return[2]}}))}))},r="{count data facets {id values {count id } } limit page results {attributes {imageIds productAttribute {id name tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type } productAttributeOption {id name } value } averageRating baseUnit {baseAmount type unit {id name translations {description locale name } } } brand {id name slug translations {description locale name } } campaigns {buyXThenGetY {buyX {amount applyByQuantity } getY {amount discountRatio } maxUsagePerOrder } currencyCodes dateRange {end start } fixedDiscount {amount } salesChannelIds title type } categories {id name path {id name slug translations {description locale name } } slug translations {description locale name } } createdAt customerReviewSummaries {averageRating reviewCount stars {count star } storefrontId } deleted description groupVariantsByVariantTypeId hiddenSalesChannelIds id metaData {canonicals description disableIndex metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug translations {description locale pageTitle } } name productOptionSetId productVariantTypes {order variantType {id name selectionType translations {locale name values {id name } } values {colorCode id name thumbnailImageId } } variantValueIds } reviewCount salesChannelIds shortDescription stars {count star } tags {id name translations {description locale name } } translations {description locale name } type updatedAt variants {attributes {imageIds productAttribute {id name tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type } productAttributeOption {id name } value } barcodeList bundleSettings {maxBundleQuantity minBundleQuantity products {addToBundleBasePrice discountRatio filteredVariantIds maxQuantity minQuantity order productId quantity } } deleted id images {fileName id isMain isVideo order } isActive prices {buyPrice currency currencyCode currencySymbol discountPrice priceListId sellPrice unitPrice } sellIfOutOfStock sku stocks {stockCount stockLocationId } unit {amount type } variantValues {variantTypeId variantValueId } weight } weight } totalCount }";!function(_){_.COUNT="count",_.DATA="data",_.FACETS__ID="facets.id",_.FACETS__VALUES__COUNT="facets.values.count",_.FACETS__VALUES__ID="facets.values.id",_.LIMIT="limit",_.PAGE="page",_.RESULTS__ATTRIBUTES__IMAGE_IDS="results.attributes.imageIds",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__ID="results.attributes.productAttribute.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__NAME="results.attributes.productAttribute.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__ID="results.attributes.productAttribute.tableTemplate.columns.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__NAME="results.attributes.productAttribute.tableTemplate.columns.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__ID="results.attributes.productAttribute.tableTemplate.rows.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__NAME="results.attributes.productAttribute.tableTemplate.rows.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__DESCRIPTION="results.attributes.productAttribute.translations.description",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__LOCALE="results.attributes.productAttribute.translations.locale",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__NAME="results.attributes.productAttribute.translations.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__ID="results.attributes.productAttribute.translations.options.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__NAME="results.attributes.productAttribute.translations.options.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TYPE="results.attributes.productAttribute.type",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__ID="results.attributes.productAttributeOption.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__NAME="results.attributes.productAttributeOption.name",_.RESULTS__ATTRIBUTES__VALUE="results.attributes.value",_.RESULTS__AVERAGE_RATING="results.averageRating",_.RESULTS__BASE_UNIT__BASE_AMOUNT="results.baseUnit.baseAmount",_.RESULTS__BASE_UNIT__TYPE="results.baseUnit.type",_.RESULTS__BASE_UNIT__UNIT__ID="results.baseUnit.unit.id",_.RESULTS__BASE_UNIT__UNIT__NAME="results.baseUnit.unit.name",_.RESULTS__BASE_UNIT__UNIT__TRANSLATIONS__DESCRIPTION="results.baseUnit.unit.translations.description",_.RESULTS__BASE_UNIT__UNIT__TRANSLATIONS__LOCALE="results.baseUnit.unit.translations.locale",_.RESULTS__BASE_UNIT__UNIT__TRANSLATIONS__NAME="results.baseUnit.unit.translations.name",_.RESULTS__BRAND__ID="results.brand.id",_.RESULTS__BRAND__NAME="results.brand.name",_.RESULTS__BRAND__SLUG="results.brand.slug",_.RESULTS__BRAND__TRANSLATIONS__DESCRIPTION="results.brand.translations.description",_.RESULTS__BRAND__TRANSLATIONS__LOCALE="results.brand.translations.locale",_.RESULTS__BRAND__TRANSLATIONS__NAME="results.brand.translations.name",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__AMOUNT="results.campaigns.buyXThenGetY.buyX.amount",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__APPLY_BY_QUANTITY="results.campaigns.buyXThenGetY.buyX.applyByQuantity",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__GET_Y__AMOUNT="results.campaigns.buyXThenGetY.getY.amount",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__GET_Y__DISCOUNT_RATIO="results.campaigns.buyXThenGetY.getY.discountRatio",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__MAX_USAGE_PER_ORDER="results.campaigns.buyXThenGetY.maxUsagePerOrder",_.RESULTS__CAMPAIGNS__CURRENCY_CODES="results.campaigns.currencyCodes",_.RESULTS__CAMPAIGNS__DATE_RANGE__END="results.campaigns.dateRange.end",_.RESULTS__CAMPAIGNS__DATE_RANGE__START="results.campaigns.dateRange.start",_.RESULTS__CAMPAIGNS__FIXED_DISCOUNT__AMOUNT="results.campaigns.fixedDiscount.amount",_.RESULTS__CAMPAIGNS__SALES_CHANNEL_IDS="results.campaigns.salesChannelIds",_.RESULTS__CAMPAIGNS__TITLE="results.campaigns.title",_.RESULTS__CAMPAIGNS__TYPE="results.campaigns.type",_.RESULTS__CATEGORIES__ID="results.categories.id",_.RESULTS__CATEGORIES__NAME="results.categories.name",_.RESULTS__CATEGORIES__PATH__ID="results.categories.path.id",_.RESULTS__CATEGORIES__PATH__NAME="results.categories.path.name",_.RESULTS__CATEGORIES__PATH__SLUG="results.categories.path.slug",_.RESULTS__CATEGORIES__PATH__TRANSLATIONS__DESCRIPTION="results.categories.path.translations.description",_.RESULTS__CATEGORIES__PATH__TRANSLATIONS__LOCALE="results.categories.path.translations.locale",_.RESULTS__CATEGORIES__PATH__TRANSLATIONS__NAME="results.categories.path.translations.name",_.RESULTS__CATEGORIES__SLUG="results.categories.slug",_.RESULTS__CATEGORIES__TRANSLATIONS__DESCRIPTION="results.categories.translations.description",_.RESULTS__CATEGORIES__TRANSLATIONS__LOCALE="results.categories.translations.locale",_.RESULTS__CATEGORIES__TRANSLATIONS__NAME="results.categories.translations.name",_.RESULTS__CREATED_AT="results.createdAt",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__AVERAGE_RATING="results.customerReviewSummaries.averageRating",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__REVIEW_COUNT="results.customerReviewSummaries.reviewCount",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__STARS__COUNT="results.customerReviewSummaries.stars.count",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__STARS__STAR="results.customerReviewSummaries.stars.star",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__STOREFRONT_ID="results.customerReviewSummaries.storefrontId",_.RESULTS__DELETED="results.deleted",_.RESULTS__DESCRIPTION="results.description",_.RESULTS__GROUP_VARIANTS_BY_VARIANT_TYPE_ID="results.groupVariantsByVariantTypeId",_.RESULTS__HIDDEN_SALES_CHANNEL_IDS="results.hiddenSalesChannelIds",_.RESULTS__ID="results.id",_.RESULTS__META_DATA__CANONICALS="results.metaData.canonicals",_.RESULTS__META_DATA__DESCRIPTION="results.metaData.description",_.RESULTS__META_DATA__DISABLE_INDEX="results.metaData.disableIndex",_.RESULTS__META_DATA__METADATA_OVERRIDES__DESCRIPTION="results.metaData.metadataOverrides.description",_.RESULTS__META_DATA__METADATA_OVERRIDES__LANGUAGE="results.metaData.metadataOverrides.language",_.RESULTS__META_DATA__METADATA_OVERRIDES__PAGE_TITLE="results.metaData.metadataOverrides.pageTitle",_.RESULTS__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID="results.metaData.metadataOverrides.storefrontId",_.RESULTS__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID="results.metaData.metadataOverrides.storefrontRegionId",_.RESULTS__META_DATA__PAGE_TITLE="results.metaData.pageTitle",_.RESULTS__META_DATA__REDIRECT_TO="results.metaData.redirectTo",_.RESULTS__META_DATA__SLUG="results.metaData.slug",_.RESULTS__META_DATA__TRANSLATIONS__DESCRIPTION="results.metaData.translations.description",_.RESULTS__META_DATA__TRANSLATIONS__LOCALE="results.metaData.translations.locale",_.RESULTS__META_DATA__TRANSLATIONS__PAGE_TITLE="results.metaData.translations.pageTitle",_.RESULTS__NAME="results.name",_.RESULTS__PRODUCT_OPTION_SET_ID="results.productOptionSetId",_.RESULTS__PRODUCT_VARIANT_TYPES__ORDER="results.productVariantTypes.order",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__ID="results.productVariantTypes.variantType.id",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__NAME="results.productVariantTypes.variantType.name",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__SELECTION_TYPE="results.productVariantTypes.variantType.selectionType",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__LOCALE="results.productVariantTypes.variantType.translations.locale",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__NAME="results.productVariantTypes.variantType.translations.name",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__VALUES__ID="results.productVariantTypes.variantType.translations.values.id",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__VALUES__NAME="results.productVariantTypes.variantType.translations.values.name",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__COLOR_CODE="results.productVariantTypes.variantType.values.colorCode",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__ID="results.productVariantTypes.variantType.values.id",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__NAME="results.productVariantTypes.variantType.values.name",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__THUMBNAIL_IMAGE_ID="results.productVariantTypes.variantType.values.thumbnailImageId",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_VALUE_IDS="results.productVariantTypes.variantValueIds",_.RESULTS__REVIEW_COUNT="results.reviewCount",_.RESULTS__SALES_CHANNEL_IDS="results.salesChannelIds",_.RESULTS__SHORT_DESCRIPTION="results.shortDescription",_.RESULTS__STARS__COUNT="results.stars.count",_.RESULTS__STARS__STAR="results.stars.star",_.RESULTS__TAGS__ID="results.tags.id",_.RESULTS__TAGS__NAME="results.tags.name",_.RESULTS__TAGS__TRANSLATIONS__DESCRIPTION="results.tags.translations.description",_.RESULTS__TAGS__TRANSLATIONS__LOCALE="results.tags.translations.locale",_.RESULTS__TAGS__TRANSLATIONS__NAME="results.tags.translations.name",_.RESULTS__TRANSLATIONS__DESCRIPTION="results.translations.description",_.RESULTS__TRANSLATIONS__LOCALE="results.translations.locale",_.RESULTS__TRANSLATIONS__NAME="results.translations.name",_.RESULTS__TYPE="results.type",_.RESULTS__UPDATED_AT="results.updatedAt",_.RESULTS__VARIANTS__ATTRIBUTES__IMAGE_IDS="results.variants.attributes.imageIds",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__ID="results.variants.attributes.productAttribute.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__NAME="results.variants.attributes.productAttribute.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__ID="results.variants.attributes.productAttribute.tableTemplate.columns.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__NAME="results.variants.attributes.productAttribute.tableTemplate.columns.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__ID="results.variants.attributes.productAttribute.tableTemplate.rows.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__NAME="results.variants.attributes.productAttribute.tableTemplate.rows.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__DESCRIPTION="results.variants.attributes.productAttribute.translations.description",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__LOCALE="results.variants.attributes.productAttribute.translations.locale",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__NAME="results.variants.attributes.productAttribute.translations.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__ID="results.variants.attributes.productAttribute.translations.options.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__NAME="results.variants.attributes.productAttribute.translations.options.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TYPE="results.variants.attributes.productAttribute.type",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__ID="results.variants.attributes.productAttributeOption.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__NAME="results.variants.attributes.productAttributeOption.name",_.RESULTS__VARIANTS__ATTRIBUTES__VALUE="results.variants.attributes.value",_.RESULTS__VARIANTS__BARCODE_LIST="results.variants.barcodeList",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__MAX_BUNDLE_QUANTITY="results.variants.bundleSettings.maxBundleQuantity",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__MIN_BUNDLE_QUANTITY="results.variants.bundleSettings.minBundleQuantity",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ADD_TO_BUNDLE_BASE_PRICE="results.variants.bundleSettings.products.addToBundleBasePrice",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__DISCOUNT_RATIO="results.variants.bundleSettings.products.discountRatio",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__FILTERED_VARIANT_IDS="results.variants.bundleSettings.products.filteredVariantIds",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__MAX_QUANTITY="results.variants.bundleSettings.products.maxQuantity",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__MIN_QUANTITY="results.variants.bundleSettings.products.minQuantity",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ORDER="results.variants.bundleSettings.products.order",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__PRODUCT_ID="results.variants.bundleSettings.products.productId",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__QUANTITY="results.variants.bundleSettings.products.quantity",_.RESULTS__VARIANTS__DELETED="results.variants.deleted",_.RESULTS__VARIANTS__ID="results.variants.id",_.RESULTS__VARIANTS__IMAGES__FILE_NAME="results.variants.images.fileName",_.RESULTS__VARIANTS__IMAGES__ID="results.variants.images.id",_.RESULTS__VARIANTS__IMAGES__IS_MAIN="results.variants.images.isMain",_.RESULTS__VARIANTS__IMAGES__IS_VIDEO="results.variants.images.isVideo",_.RESULTS__VARIANTS__IMAGES__ORDER="results.variants.images.order",_.RESULTS__VARIANTS__IS_ACTIVE="results.variants.isActive",_.RESULTS__VARIANTS__PRICES__BUY_PRICE="results.variants.prices.buyPrice",_.RESULTS__VARIANTS__PRICES__CURRENCY="results.variants.prices.currency",_.RESULTS__VARIANTS__PRICES__CURRENCY_CODE="results.variants.prices.currencyCode",_.RESULTS__VARIANTS__PRICES__CURRENCY_SYMBOL="results.variants.prices.currencySymbol",_.RESULTS__VARIANTS__PRICES__DISCOUNT_PRICE="results.variants.prices.discountPrice",_.RESULTS__VARIANTS__PRICES__PRICE_LIST_ID="results.variants.prices.priceListId",_.RESULTS__VARIANTS__PRICES__SELL_PRICE="results.variants.prices.sellPrice",_.RESULTS__VARIANTS__PRICES__UNIT_PRICE="results.variants.prices.unitPrice",_.RESULTS__VARIANTS__SELL_IF_OUT_OF_STOCK="results.variants.sellIfOutOfStock",_.RESULTS__VARIANTS__SKU="results.variants.sku",_.RESULTS__VARIANTS__STOCKS__STOCK_COUNT="results.variants.stocks.stockCount",_.RESULTS__VARIANTS__STOCKS__STOCK_LOCATION_ID="results.variants.stocks.stockLocationId",_.RESULTS__VARIANTS__UNIT__AMOUNT="results.variants.unit.amount",_.RESULTS__VARIANTS__UNIT__TYPE="results.variants.unit.type",_.RESULTS__VARIANTS__VARIANT_VALUES__VARIANT_TYPE_ID="results.variants.variantValues.variantTypeId",_.RESULTS__VARIANTS__VARIANT_VALUES__VARIANT_VALUE_ID="results.variants.variantValues.variantValueId",_.RESULTS__VARIANTS__WEIGHT="results.variants.weight",_.RESULTS__WEIGHT="results.weight",_.TOTAL_COUNT="totalCount"}(a||(a={}));export{a as ResponseField,S as default};
1
+ import{__awaiter as _,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as T,APIResponse as s,fetchQuery as e}from"@ikas/fe-api-client";var a,S=function(a,S,A){return _(void 0,void 0,void 0,(function(){var _,E,i,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e({operationName:"searchProducts",config:A,variables:a,allReturnFields:r,fields:S,query:function(_){return"\n\t\t\t\tquery searchProducts (\n\t\t\t\t\t$input: SearchInput!,\n\t\t\t\t) {\n\t\t\t\t\tsearchProducts (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(_,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return _=t.sent(),E=_.data,i=_.errors,[2,new s(null==E?void 0:E.searchProducts,i)];case 2:return R=t.sent(),[2,T(R)];case 3:return[2]}}))}))},r="{count data facets {id values {count id } } limit page results {attributes {imageIds productAttribute {id name tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type } productAttributeOption {id name } value } averageRating baseUnit {baseAmount type unit {id name translations {description locale name } } } brand {id imageId name slug translations {description locale name } } campaigns {buyXThenGetY {buyX {amount applyByQuantity } getY {amount discountRatio } maxUsagePerOrder } currencyCodes dateRange {end start } fixedDiscount {amount } salesChannelIds title type } categories {id name path {id name slug translations {description locale name } } slug translations {description locale name } } createdAt customerReviewSummaries {averageRating reviewCount stars {count star } storefrontId } deleted description groupVariantsByVariantTypeId hiddenSalesChannelIds id metaData {canonicals description disableIndex metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug translations {description locale pageTitle } } name productOptionSetId productVariantTypes {order variantType {id name selectionType translations {locale name values {id name } } values {colorCode id name thumbnailImageId } } variantValueIds } reviewCount salesChannelIds shortDescription stars {count star } tags {id name translations {description locale name } } translations {description locale name } type updatedAt variants {attributes {imageIds productAttribute {id name tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type } productAttributeOption {id name } value } barcodeList bundleSettings {maxBundleQuantity minBundleQuantity products {addToBundleBasePrice discountRatio filteredVariantIds maxQuantity minQuantity order productId quantity } } deleted id images {fileName id isMain isVideo order } isActive prices {buyPrice currency currencyCode currencySymbol discountPrice priceListId sellPrice unitPrice } sellIfOutOfStock sku stocks {stockCount stockLocationId } unit {amount type } variantValues {variantTypeId variantValueId } weight } weight } totalCount }";!function(_){_.COUNT="count",_.DATA="data",_.FACETS__ID="facets.id",_.FACETS__VALUES__COUNT="facets.values.count",_.FACETS__VALUES__ID="facets.values.id",_.LIMIT="limit",_.PAGE="page",_.RESULTS__ATTRIBUTES__IMAGE_IDS="results.attributes.imageIds",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__ID="results.attributes.productAttribute.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__NAME="results.attributes.productAttribute.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__ID="results.attributes.productAttribute.tableTemplate.columns.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__NAME="results.attributes.productAttribute.tableTemplate.columns.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__ID="results.attributes.productAttribute.tableTemplate.rows.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__NAME="results.attributes.productAttribute.tableTemplate.rows.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__DESCRIPTION="results.attributes.productAttribute.translations.description",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__LOCALE="results.attributes.productAttribute.translations.locale",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__NAME="results.attributes.productAttribute.translations.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__ID="results.attributes.productAttribute.translations.options.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__NAME="results.attributes.productAttribute.translations.options.name",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TYPE="results.attributes.productAttribute.type",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__ID="results.attributes.productAttributeOption.id",_.RESULTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__NAME="results.attributes.productAttributeOption.name",_.RESULTS__ATTRIBUTES__VALUE="results.attributes.value",_.RESULTS__AVERAGE_RATING="results.averageRating",_.RESULTS__BASE_UNIT__BASE_AMOUNT="results.baseUnit.baseAmount",_.RESULTS__BASE_UNIT__TYPE="results.baseUnit.type",_.RESULTS__BASE_UNIT__UNIT__ID="results.baseUnit.unit.id",_.RESULTS__BASE_UNIT__UNIT__NAME="results.baseUnit.unit.name",_.RESULTS__BASE_UNIT__UNIT__TRANSLATIONS__DESCRIPTION="results.baseUnit.unit.translations.description",_.RESULTS__BASE_UNIT__UNIT__TRANSLATIONS__LOCALE="results.baseUnit.unit.translations.locale",_.RESULTS__BASE_UNIT__UNIT__TRANSLATIONS__NAME="results.baseUnit.unit.translations.name",_.RESULTS__BRAND__ID="results.brand.id",_.RESULTS__BRAND__IMAGE_ID="results.brand.imageId",_.RESULTS__BRAND__NAME="results.brand.name",_.RESULTS__BRAND__SLUG="results.brand.slug",_.RESULTS__BRAND__TRANSLATIONS__DESCRIPTION="results.brand.translations.description",_.RESULTS__BRAND__TRANSLATIONS__LOCALE="results.brand.translations.locale",_.RESULTS__BRAND__TRANSLATIONS__NAME="results.brand.translations.name",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__AMOUNT="results.campaigns.buyXThenGetY.buyX.amount",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__APPLY_BY_QUANTITY="results.campaigns.buyXThenGetY.buyX.applyByQuantity",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__GET_Y__AMOUNT="results.campaigns.buyXThenGetY.getY.amount",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__GET_Y__DISCOUNT_RATIO="results.campaigns.buyXThenGetY.getY.discountRatio",_.RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__MAX_USAGE_PER_ORDER="results.campaigns.buyXThenGetY.maxUsagePerOrder",_.RESULTS__CAMPAIGNS__CURRENCY_CODES="results.campaigns.currencyCodes",_.RESULTS__CAMPAIGNS__DATE_RANGE__END="results.campaigns.dateRange.end",_.RESULTS__CAMPAIGNS__DATE_RANGE__START="results.campaigns.dateRange.start",_.RESULTS__CAMPAIGNS__FIXED_DISCOUNT__AMOUNT="results.campaigns.fixedDiscount.amount",_.RESULTS__CAMPAIGNS__SALES_CHANNEL_IDS="results.campaigns.salesChannelIds",_.RESULTS__CAMPAIGNS__TITLE="results.campaigns.title",_.RESULTS__CAMPAIGNS__TYPE="results.campaigns.type",_.RESULTS__CATEGORIES__ID="results.categories.id",_.RESULTS__CATEGORIES__NAME="results.categories.name",_.RESULTS__CATEGORIES__PATH__ID="results.categories.path.id",_.RESULTS__CATEGORIES__PATH__NAME="results.categories.path.name",_.RESULTS__CATEGORIES__PATH__SLUG="results.categories.path.slug",_.RESULTS__CATEGORIES__PATH__TRANSLATIONS__DESCRIPTION="results.categories.path.translations.description",_.RESULTS__CATEGORIES__PATH__TRANSLATIONS__LOCALE="results.categories.path.translations.locale",_.RESULTS__CATEGORIES__PATH__TRANSLATIONS__NAME="results.categories.path.translations.name",_.RESULTS__CATEGORIES__SLUG="results.categories.slug",_.RESULTS__CATEGORIES__TRANSLATIONS__DESCRIPTION="results.categories.translations.description",_.RESULTS__CATEGORIES__TRANSLATIONS__LOCALE="results.categories.translations.locale",_.RESULTS__CATEGORIES__TRANSLATIONS__NAME="results.categories.translations.name",_.RESULTS__CREATED_AT="results.createdAt",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__AVERAGE_RATING="results.customerReviewSummaries.averageRating",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__REVIEW_COUNT="results.customerReviewSummaries.reviewCount",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__STARS__COUNT="results.customerReviewSummaries.stars.count",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__STARS__STAR="results.customerReviewSummaries.stars.star",_.RESULTS__CUSTOMER_REVIEW_SUMMARIES__STOREFRONT_ID="results.customerReviewSummaries.storefrontId",_.RESULTS__DELETED="results.deleted",_.RESULTS__DESCRIPTION="results.description",_.RESULTS__GROUP_VARIANTS_BY_VARIANT_TYPE_ID="results.groupVariantsByVariantTypeId",_.RESULTS__HIDDEN_SALES_CHANNEL_IDS="results.hiddenSalesChannelIds",_.RESULTS__ID="results.id",_.RESULTS__META_DATA__CANONICALS="results.metaData.canonicals",_.RESULTS__META_DATA__DESCRIPTION="results.metaData.description",_.RESULTS__META_DATA__DISABLE_INDEX="results.metaData.disableIndex",_.RESULTS__META_DATA__METADATA_OVERRIDES__DESCRIPTION="results.metaData.metadataOverrides.description",_.RESULTS__META_DATA__METADATA_OVERRIDES__LANGUAGE="results.metaData.metadataOverrides.language",_.RESULTS__META_DATA__METADATA_OVERRIDES__PAGE_TITLE="results.metaData.metadataOverrides.pageTitle",_.RESULTS__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID="results.metaData.metadataOverrides.storefrontId",_.RESULTS__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID="results.metaData.metadataOverrides.storefrontRegionId",_.RESULTS__META_DATA__PAGE_TITLE="results.metaData.pageTitle",_.RESULTS__META_DATA__REDIRECT_TO="results.metaData.redirectTo",_.RESULTS__META_DATA__SLUG="results.metaData.slug",_.RESULTS__META_DATA__TRANSLATIONS__DESCRIPTION="results.metaData.translations.description",_.RESULTS__META_DATA__TRANSLATIONS__LOCALE="results.metaData.translations.locale",_.RESULTS__META_DATA__TRANSLATIONS__PAGE_TITLE="results.metaData.translations.pageTitle",_.RESULTS__NAME="results.name",_.RESULTS__PRODUCT_OPTION_SET_ID="results.productOptionSetId",_.RESULTS__PRODUCT_VARIANT_TYPES__ORDER="results.productVariantTypes.order",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__ID="results.productVariantTypes.variantType.id",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__NAME="results.productVariantTypes.variantType.name",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__SELECTION_TYPE="results.productVariantTypes.variantType.selectionType",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__LOCALE="results.productVariantTypes.variantType.translations.locale",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__NAME="results.productVariantTypes.variantType.translations.name",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__VALUES__ID="results.productVariantTypes.variantType.translations.values.id",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__VALUES__NAME="results.productVariantTypes.variantType.translations.values.name",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__COLOR_CODE="results.productVariantTypes.variantType.values.colorCode",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__ID="results.productVariantTypes.variantType.values.id",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__NAME="results.productVariantTypes.variantType.values.name",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__THUMBNAIL_IMAGE_ID="results.productVariantTypes.variantType.values.thumbnailImageId",_.RESULTS__PRODUCT_VARIANT_TYPES__VARIANT_VALUE_IDS="results.productVariantTypes.variantValueIds",_.RESULTS__REVIEW_COUNT="results.reviewCount",_.RESULTS__SALES_CHANNEL_IDS="results.salesChannelIds",_.RESULTS__SHORT_DESCRIPTION="results.shortDescription",_.RESULTS__STARS__COUNT="results.stars.count",_.RESULTS__STARS__STAR="results.stars.star",_.RESULTS__TAGS__ID="results.tags.id",_.RESULTS__TAGS__NAME="results.tags.name",_.RESULTS__TAGS__TRANSLATIONS__DESCRIPTION="results.tags.translations.description",_.RESULTS__TAGS__TRANSLATIONS__LOCALE="results.tags.translations.locale",_.RESULTS__TAGS__TRANSLATIONS__NAME="results.tags.translations.name",_.RESULTS__TRANSLATIONS__DESCRIPTION="results.translations.description",_.RESULTS__TRANSLATIONS__LOCALE="results.translations.locale",_.RESULTS__TRANSLATIONS__NAME="results.translations.name",_.RESULTS__TYPE="results.type",_.RESULTS__UPDATED_AT="results.updatedAt",_.RESULTS__VARIANTS__ATTRIBUTES__IMAGE_IDS="results.variants.attributes.imageIds",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__ID="results.variants.attributes.productAttribute.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__NAME="results.variants.attributes.productAttribute.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__ID="results.variants.attributes.productAttribute.tableTemplate.columns.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__NAME="results.variants.attributes.productAttribute.tableTemplate.columns.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__ID="results.variants.attributes.productAttribute.tableTemplate.rows.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__NAME="results.variants.attributes.productAttribute.tableTemplate.rows.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__DESCRIPTION="results.variants.attributes.productAttribute.translations.description",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__LOCALE="results.variants.attributes.productAttribute.translations.locale",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__NAME="results.variants.attributes.productAttribute.translations.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__ID="results.variants.attributes.productAttribute.translations.options.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__NAME="results.variants.attributes.productAttribute.translations.options.name",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TYPE="results.variants.attributes.productAttribute.type",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__ID="results.variants.attributes.productAttributeOption.id",_.RESULTS__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__NAME="results.variants.attributes.productAttributeOption.name",_.RESULTS__VARIANTS__ATTRIBUTES__VALUE="results.variants.attributes.value",_.RESULTS__VARIANTS__BARCODE_LIST="results.variants.barcodeList",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__MAX_BUNDLE_QUANTITY="results.variants.bundleSettings.maxBundleQuantity",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__MIN_BUNDLE_QUANTITY="results.variants.bundleSettings.minBundleQuantity",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ADD_TO_BUNDLE_BASE_PRICE="results.variants.bundleSettings.products.addToBundleBasePrice",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__DISCOUNT_RATIO="results.variants.bundleSettings.products.discountRatio",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__FILTERED_VARIANT_IDS="results.variants.bundleSettings.products.filteredVariantIds",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__MAX_QUANTITY="results.variants.bundleSettings.products.maxQuantity",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__MIN_QUANTITY="results.variants.bundleSettings.products.minQuantity",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ORDER="results.variants.bundleSettings.products.order",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__PRODUCT_ID="results.variants.bundleSettings.products.productId",_.RESULTS__VARIANTS__BUNDLE_SETTINGS__PRODUCTS__QUANTITY="results.variants.bundleSettings.products.quantity",_.RESULTS__VARIANTS__DELETED="results.variants.deleted",_.RESULTS__VARIANTS__ID="results.variants.id",_.RESULTS__VARIANTS__IMAGES__FILE_NAME="results.variants.images.fileName",_.RESULTS__VARIANTS__IMAGES__ID="results.variants.images.id",_.RESULTS__VARIANTS__IMAGES__IS_MAIN="results.variants.images.isMain",_.RESULTS__VARIANTS__IMAGES__IS_VIDEO="results.variants.images.isVideo",_.RESULTS__VARIANTS__IMAGES__ORDER="results.variants.images.order",_.RESULTS__VARIANTS__IS_ACTIVE="results.variants.isActive",_.RESULTS__VARIANTS__PRICES__BUY_PRICE="results.variants.prices.buyPrice",_.RESULTS__VARIANTS__PRICES__CURRENCY="results.variants.prices.currency",_.RESULTS__VARIANTS__PRICES__CURRENCY_CODE="results.variants.prices.currencyCode",_.RESULTS__VARIANTS__PRICES__CURRENCY_SYMBOL="results.variants.prices.currencySymbol",_.RESULTS__VARIANTS__PRICES__DISCOUNT_PRICE="results.variants.prices.discountPrice",_.RESULTS__VARIANTS__PRICES__PRICE_LIST_ID="results.variants.prices.priceListId",_.RESULTS__VARIANTS__PRICES__SELL_PRICE="results.variants.prices.sellPrice",_.RESULTS__VARIANTS__PRICES__UNIT_PRICE="results.variants.prices.unitPrice",_.RESULTS__VARIANTS__SELL_IF_OUT_OF_STOCK="results.variants.sellIfOutOfStock",_.RESULTS__VARIANTS__SKU="results.variants.sku",_.RESULTS__VARIANTS__STOCKS__STOCK_COUNT="results.variants.stocks.stockCount",_.RESULTS__VARIANTS__STOCKS__STOCK_LOCATION_ID="results.variants.stocks.stockLocationId",_.RESULTS__VARIANTS__UNIT__AMOUNT="results.variants.unit.amount",_.RESULTS__VARIANTS__UNIT__TYPE="results.variants.unit.type",_.RESULTS__VARIANTS__VARIANT_VALUES__VARIANT_TYPE_ID="results.variants.variantValues.variantTypeId",_.RESULTS__VARIANTS__VARIANT_VALUES__VARIANT_VALUE_ID="results.variants.variantValues.variantValueId",_.RESULTS__VARIANTS__WEIGHT="results.variants.weight",_.RESULTS__WEIGHT="results.weight",_.TOTAL_COUNT="totalCount"}(a||(a={}));export{a as ResponseField,S as default};
@@ -1932,6 +1932,15 @@ export interface ProductFacetCountValue {
1932
1932
  count: number;
1933
1933
  id: string;
1934
1934
  }
1935
+ export interface ProductFile {
1936
+ createdAt: any | null;
1937
+ deleted: boolean;
1938
+ id: string;
1939
+ name: string;
1940
+ productId: string;
1941
+ updatedAt: any | null;
1942
+ variantId: string;
1943
+ }
1935
1944
  export interface ProductFilterData {
1936
1945
  categories: Category[] | null;
1937
1946
  filters: ProductFilterDataFilter[];
@@ -2225,6 +2234,7 @@ export interface SearchProductAttributeValue {
2225
2234
  }
2226
2235
  export interface SearchProductBrand {
2227
2236
  id: string;
2237
+ imageId: string | null;
2228
2238
  name: string;
2229
2239
  slug: string | null;
2230
2240
  translations: ProductBrandTranslation[] | null;
@@ -12,10 +12,12 @@ import { QueryParams as CreateKlarnaClientTokenParams } from "../../__api/mutati
12
12
  import { QueryParams as CreateAdyenClientTokenParams } from "../../__api/mutations/createAdyenPaymentSession";
13
13
  import { QueryParams as GetPayPalClientIdTokenParams } from "../../__api/mutations/getPaypalClientId";
14
14
  import { QueryParams as CreatePayPalOrderParams } from "../../__api/mutations/createPaypalOrder";
15
+ import { QueryParams as ListProductFileQueryParams } from "../../__api/queries/listProductFile";
15
16
  import { IkasAvailableStockLocation, IkasCheckoutSettings, IkasPaymentGateway, IkasStockLocation } from "@ikas/storefront-models";
16
- export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, CreateAdyenClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, };
17
+ export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, CreateAdyenClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, ListProductFileQueryParams, };
17
18
  export declare function createSaleTransactionWithCart(params: CreateSaleTransactionQueryParams): Promise<APIResponse<import("../..").TransactionResponse> | APIResponse<undefined>>;
18
19
  export declare function listPaymentGateway(params: ListPaymentGatewayQueryParams): Promise<APIResponse<IkasPaymentGateway[]>>;
20
+ export declare function listProductFile(params: ListProductFileQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductFile[]>>;
19
21
  export declare function retrieveInstallmentInfo(params: RetrieveInstallmentInfoQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../..").RetrieveInstallmentInfoResponse>>;
20
22
  export declare function checkStocks(params: CheckStocksQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").CheckStocksResponse>>;
21
23
  export declare function listCheckoutSettings(params: ListCheckoutSettingsQueryParams): Promise<APIResponse<IkasCheckoutSettings[]>>;
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";function r(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/createSaleTransactionWithCart.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function i(r){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listPaymentGateway.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),i=t.data||[],[2,new n(i,t.graphQLErrors)]}}))}))}function s(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/retrieveInstallmentInfo.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function a(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkStocks.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function u(r){return t(this,void 0,void 0,(function(){var t,i,s,a,u;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().default,s=t,a=[r],[4,_()];case 2:return[4,s.apply(void 0,a.concat([e.sent()]))];case 3:return i=e.sent(),u=i.data||[],[2,new n(u,i.graphQLErrors)]}}))}))}function o(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getAvailableShippingCountries.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function c(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listStockLocation.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function l(r){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getAvailableStockLocations.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function f(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createStripePaymentIntent.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function d(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createKlarnaClientToken.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function h(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createAdyenPaymentSession.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function p(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/getPaypalClientId.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function v(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createPaypalOrder.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function _(){return t(this,void 0,void 0,(function(){var t,n;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().ResponseField,n=["IS_SHOW_POSTAL_CODE"],[2,Object.entries(t).filter((function(t){var e=t[0];return!n.includes(e)})).map((function(t){return t[1]}))]}}))}))}export{a as checkStocks,h as createAdyenClientToken,d as createKlarnaClientToken,v as createPayPalOrder,r as createSaleTransactionWithCart,f as createStripePaymentIntent,o as getAvailableShippingCountries,l as getAvailableStockLocations,p as getPayPalClientId,u as listCheckoutSettings,i as listPaymentGateway,c as listStockLocations,s as retrieveInstallmentInfo};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";function r(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/createSaleTransactionWithCart.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function i(r){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listPaymentGateway.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),i=t.data||[],[2,new n(i,t.graphQLErrors)]}}))}))}function s(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductFile.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function a(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/retrieveInstallmentInfo.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function u(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkStocks.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function o(r){return t(this,void 0,void 0,(function(){var t,i,s,a,u;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().default,s=t,a=[r],[4,m()];case 2:return[4,s.apply(void 0,a.concat([e.sent()]))];case 3:return i=e.sent(),u=i.data||[],[2,new n(u,i.graphQLErrors)]}}))}))}function c(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getAvailableShippingCountries.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function l(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listStockLocation.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function f(r){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getAvailableStockLocations.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function d(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createStripePaymentIntent.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function h(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createKlarnaClientToken.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function p(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createAdyenPaymentSession.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function v(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/getPaypalClientId.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function _(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createPaypalOrder.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function m(){return t(this,void 0,void 0,(function(){var t,n;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().ResponseField,n=["IS_SHOW_POSTAL_CODE"],[2,Object.entries(t).filter((function(t){var e=t[0];return!n.includes(e)})).map((function(t){return t[1]}))]}}))}))}export{u as checkStocks,p as createAdyenClientToken,h as createKlarnaClientToken,_ as createPayPalOrder,r as createSaleTransactionWithCart,d as createStripePaymentIntent,c as getAvailableShippingCountries,f as getAvailableStockLocations,v as getPayPalClientId,o as listCheckoutSettings,i as listPaymentGateway,s as listProductFile,l as listStockLocations,a as retrieveInstallmentInfo};
@@ -1,11 +1,13 @@
1
1
  import { QueryParams as GetProductOptionFileUrlQueryParams } from "../../__api/queries/getProductOptionFileUrl";
2
+ import { QueryParams as GetDigitalProductFileDownloadUrlQueryParams } from "../../__api/queries/getDigitalProductFileDownloadUrl";
2
3
  import { IkasProductOptionFileUrl } from "@ikas/storefront-models";
3
4
  import { APIResponse } from "@ikas/fe-api-client";
4
- export type { GetProductOptionFileUrlQueryParams };
5
+ export type { GetProductOptionFileUrlQueryParams, GetDigitalProductFileDownloadUrlQueryParams, };
5
6
  export declare function getProductOptionFileUrl(params: GetProductOptionFileUrlQueryParams, file: File): Promise<APIResponse<{
6
7
  file: File;
7
8
  fields: any;
8
9
  optionUrl: string;
9
10
  url: string;
10
11
  } | null>>;
12
+ export declare function getDigitalProductFileDownloadUrl(params: GetDigitalProductFileDownloadUrlQueryParams): Promise<APIResponse<undefined> | APIResponse<string>>;
11
13
  export declare function uploadFile(params: IkasProductOptionFileUrl, file: File): Promise<boolean>;
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__assign as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import i from"axios";function s(i,s){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductOptionFileUrl.js")];case 1:return[4,(0,e.sent().default)(i)];case 2:return t=e.sent(),[2,new n(t.data?r(r({},t.data),{file:s}):null,t.graphQLErrors)]}}))}))}function a(r,n){return t(this,void 0,void 0,(function(){var t,s,a;return e(this,(function(e){switch(e.label){case 0:return t={headers:{"Content-Type":"multipart/form-data"}},s=new FormData,Object.entries(r.fields).forEach((function(t){var e=t[0],r=t[1];s.append(e,r)})),s.append("file",n),[4,i.post(r.url,s,t)];case 1:return[2,200===(a=e.sent()).status||204===a.status]}}))}))}export{s as getProductOptionFileUrl,a as uploadFile};
1
+ import{__awaiter as t,__generator as e,__assign as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import i from"axios";function s(i,s){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductOptionFileUrl.js")];case 1:return[4,(0,e.sent().default)(i)];case 2:return t=e.sent(),[2,new n(t.data?r(r({},t.data),{file:s}):null,t.graphQLErrors)]}}))}))}function a(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getDigitalProductFileDownloadUrl.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function o(r,n){return t(this,void 0,void 0,(function(){var t,s,a;return e(this,(function(e){switch(e.label){case 0:return t={headers:{"Content-Type":"multipart/form-data"}},s=new FormData,Object.entries(r.fields).forEach((function(t){var e=t[0],r=t[1];s.append(e,r)})),s.append("file",n),[4,i.post(r.url,s,t)];case 1:return[2,200===(a=e.sent()).status||204===a.status]}}))}))}export{a as getDigitalProductFileDownloadUrl,s as getProductOptionFileUrl,o as uploadFile};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__assign as n,__spreadArray as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as i}from"@ikas/fe-api-client";import{IkasStorefrontConfig as a}from"@ikas/storefront-config";import{initIkasProduct as u,IkasBrandOrderType as o,IkasCategoryProductsOrderType as d,initIkasProductAttribute as l,initIkasProductOptionSet as s}from"@ikas/storefront-models";function c(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function p(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function v(r,o){var d,l;return t(this,void 0,void 0,(function(){var t,s,c,p,v,m;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().default,s=null===(d=a.getCurrentRouting())||void 0===d?void 0:d.dynamicCurrencySettings,p=t,v=[{input:n({locale:a.getCurrentLocale(),dynamicCurrencySettings:s?{roundingFormat:s.roundingFormat,targetCurrencyCode:s.targetCurrencyCode}:void 0},r.input)}],[4,C(o)];case 2:return[4,p.apply(void 0,v.concat([e.sent()]))];case 3:return c=e.sent(),null==(m=null===(l=c.data)||void 0===l?void 0:l.results.map(L))||m.forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(c.data?n(n({},c.data),{data:m}):null,c.graphQLErrors)]}}))}))}function m(n){var r,a;return t(this,void 0,void 0,(function(){var t,u,o;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductFilterData.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),u=null===(r=t.data)||void 0===r?void 0:r.filters,o=(null===(a=t.data)||void 0===a?void 0:a.categories)||null,[2,new i(t.data?{filters:u,categories:o}:null,t.graphQLErrors)]}}))}))}function f(r){var o,d;return t(this,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getRelatedProducts.js")];case 1:return t=e.sent().default,l=null===(o=a.getCurrentRouting())||void 0===o?void 0:o.dynamicCurrencySettings,[4,t(n({locale:a.getCurrentLocale(),dynamicCurrencySettings:l?{roundingFormat:l.roundingFormat,targetCurrencyCode:l.targetCurrencyCode}:void 0},r))];case 2:return s=e.sent(),(c=(null===(d=null==s?void 0:s.data)||void 0===d?void 0:d.map((function(t){return L(t)})))||[]).forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(s.data?{data:c,count:s.data.length,facets:null,limit:20,page:1,totalCount:s.data.length}:null,s.graphQLErrors)]}}))}))}function g(r){var o,d;return t(this,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getSuggestedProducts.js")];case 1:return t=e.sent().default,l=null===(o=a.getCurrentRouting())||void 0===o?void 0:o.dynamicCurrencySettings,[4,t(n({locale:a.getCurrentLocale(),dynamicCurrencySettings:l?{roundingFormat:l.roundingFormat,targetCurrencyCode:l.targetCurrencyCode}:void 0},r))];case 2:return s=e.sent(),(c=(null===(d=null==s?void 0:s.data)||void 0===d?void 0:d.map((function(t){return L(t)})))||[]).forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(s.data?{data:c,count:s.data.length,facets:null,limit:20,page:1,totalCount:s.data.length}:null,s.graphQLErrors)]}}))}))}function h(n){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductAttribute.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),null==(r=t.data)||r.forEach((function(t){return l(t,a.getCurrentLocale())})),[2,new i(r,t.graphQLErrors)]}}))}))}function b(n){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductCampaigns.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new i(null===(r=t.data)||void 0===r?void 0:r.map((function(t){return t})),t.graphQLErrors)]}}))}))}function y(n){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getVariantStockLocations.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new i(null===(r=t.data)||void 0===r?void 0:r.stockLocations.map((function(t){return t})),t.graphQLErrors)]}}))}))}function I(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/getOrderLineFile.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function A(n){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductOptionSet.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),null==(r=t.data)||r.forEach((function(t){return s(t,a.getCurrentLocale())})),[2,new i(r,t.graphQLErrors)]}}))}))}function C(n){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().ResponseField,i=["DATA"],n&&n.length&&n.map((function(e){var n=Object.keys(t).filter((function(t){return t.startsWith(e)}));i=r(r([],i,!0),n,!0)})),[2,Object.entries(t).filter((function(t){var e=t[0];return!i.includes(e)})).map((function(t){return t[1]}))]}}))}))}function L(t){var e,r,i,u,l="local"===process.env.NEXT_PUBLIC_ENV;return{id:t.id,type:t.type,groupVariantsByVariantTypeId:t.groupVariantsByVariantTypeId,deleted:t.deleted,attributes:(null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,r,i,a,u,o;return n(n({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(r=t.productAttributeOption)||void 0===r?void 0:r.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:null,type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],brand:t.brand?n(n({},t.brand),{id:t.brand.id,name:t.brand.name,createdAt:0,updatedAt:0,description:null,imageId:null,orderType:o.BEST_SELLER,metaData:{id:"",createdAt:0,updatedAt:0,slug:t.brand.slug||""}}):null,campaigns:null===(r=t.campaigns)||void 0===r?void 0:r.map((function(t){return{campaign:t,variantIds:[]}})),categories:(null===(i=t.categories)||void 0===i?void 0:i.map((function(t){return n(n({},t),{categoryPath:t.path.map((function(t){return t.name})),description:null,imageId:null,parentId:null,metaData:t.slug?{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug}:null,categoryPathItems:t.path.map((function(t){return{metaData:{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug||""},description:null,name:t.name,translations:t.translations,imageId:null,id:t.id,createdAt:0,updatedAt:0}})),createdAt:0,updatedAt:0,orderType:d.BEST_SELLER,conditions:null,conditionValues:null})})))||[],tags:t.tags||[],description:t.description||"",averageRating:t.averageRating,reviewCount:t.reviewCount,stars:t.stars,baseUnit:t.baseUnit,metaData:n(n({},t.metaData),{id:"",createdAt:0,updatedAt:0,slug:(null===(u=t.metaData)||void 0===u?void 0:u.slug)||""})||null,name:t.name,shortDescription:t.shortDescription||"",productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return{order:t.order,variantType:{id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return{id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id}})).filter((function(e){return t.variantValueIds.includes(e.id)}))},variantValueIds:t.variantValueIds}})),variants:t.variants.map((function(e){var r,i,u,o,d;return n(n({},e),{id:e.id,productId:t.id,images:(null===(r=e.images)||void 0===r?void 0:r.map((function(t){return{imageId:t.id,isMain:t.isMain||!1,isVideo:t.isVideo,order:t.order,fileName:t.fileName}})))||null,sellIfOutOfStock:e.sellIfOutOfStock||!1,unit:e.unit,attributes:(null===(i=e.attributes)||void 0===i?void 0:i.map((function(t){var e,r,i,a,u,o;return n(n({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(r=t.productAttributeOption)||void 0===r?void 0:r.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:"",type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],sku:e.sku,barcodeList:e.barcodeList||null,price:null===(u=e.prices)||void 0===u?void 0:u.find((function(t){return a.getPriceListId()?t.priceListId===a.getPriceListId():null===t.priceListId})),stock:(null===(o=e.stocks)||void 0===o?void 0:o.filter((function(t){var e;return l||a.getIsEditor()||(null===(e=a.getStockLocationIds())||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0))||0,variantValues:(null===(d=e.variantValues)||void 0===d?void 0:d.map((function(e){var n=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),r=null==n?void 0:n.variantType.values.find((function(t){return t.id===e.variantValueId}));return{id:e.variantValueId,name:(null==r?void 0:r.name)||"",colorCode:(null==r?void 0:r.colorCode)||"",thumbnailImageId:(null==r?void 0:r.thumbnailImageId)||"",variantTypeId:(null==n?void 0:n.variantType.id)||""}})))||[],isActive:e.isActive||!1})}))}}export{I as getOrderLineFile,b as getProductCampaigns,m as getProductFilterData,f as getRelatedProducts,g as getSuggestedProducts,y as getVariantStockLocations,h as listProductAttribute,c as listProductBackInStockRemind,A as listProductOptionSet,p as saveProductBackInStockRemind,v as searchProducts};
1
+ import{__awaiter as t,__generator as e,__assign as n,__spreadArray as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as i}from"@ikas/fe-api-client";import{IkasStorefrontConfig as a}from"@ikas/storefront-config";import{initIkasProduct as u,IkasBrandOrderType as o,IkasCategoryProductsOrderType as d,initIkasProductAttribute as l,initIkasProductOptionSet as s}from"@ikas/storefront-models";function c(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function p(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function v(r,o){var d,l;return t(this,void 0,void 0,(function(){var t,s,c,p,v,m;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().default,s=null===(d=a.getCurrentRouting())||void 0===d?void 0:d.dynamicCurrencySettings,p=t,v=[{input:n({locale:a.getCurrentLocale(),dynamicCurrencySettings:s?{roundingFormat:s.roundingFormat,targetCurrencyCode:s.targetCurrencyCode}:void 0},r.input)}],[4,C(o)];case 2:return[4,p.apply(void 0,v.concat([e.sent()]))];case 3:return c=e.sent(),null==(m=null===(l=c.data)||void 0===l?void 0:l.results.map(L))||m.forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(c.data?n(n({},c.data),{data:m}):null,c.graphQLErrors)]}}))}))}function m(n){var r,a;return t(this,void 0,void 0,(function(){var t,u,o;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductFilterData.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),u=null===(r=t.data)||void 0===r?void 0:r.filters,o=(null===(a=t.data)||void 0===a?void 0:a.categories)||null,[2,new i(t.data?{filters:u,categories:o}:null,t.graphQLErrors)]}}))}))}function f(r){var o,d;return t(this,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getRelatedProducts.js")];case 1:return t=e.sent().default,l=null===(o=a.getCurrentRouting())||void 0===o?void 0:o.dynamicCurrencySettings,[4,t(n({locale:a.getCurrentLocale(),dynamicCurrencySettings:l?{roundingFormat:l.roundingFormat,targetCurrencyCode:l.targetCurrencyCode}:void 0},r))];case 2:return s=e.sent(),(c=(null===(d=null==s?void 0:s.data)||void 0===d?void 0:d.map((function(t){return L(t)})))||[]).forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(s.data?{data:c,count:s.data.length,facets:null,limit:20,page:1,totalCount:s.data.length}:null,s.graphQLErrors)]}}))}))}function g(r){var o,d;return t(this,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getSuggestedProducts.js")];case 1:return t=e.sent().default,l=null===(o=a.getCurrentRouting())||void 0===o?void 0:o.dynamicCurrencySettings,[4,t(n({locale:a.getCurrentLocale(),dynamicCurrencySettings:l?{roundingFormat:l.roundingFormat,targetCurrencyCode:l.targetCurrencyCode}:void 0},r))];case 2:return s=e.sent(),(c=(null===(d=null==s?void 0:s.data)||void 0===d?void 0:d.map((function(t){return L(t)})))||[]).forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(s.data?{data:c,count:s.data.length,facets:null,limit:20,page:1,totalCount:s.data.length}:null,s.graphQLErrors)]}}))}))}function h(n){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductAttribute.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),null==(r=t.data)||r.forEach((function(t){return l(t,a.getCurrentLocale())})),[2,new i(r,t.graphQLErrors)]}}))}))}function b(n){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductCampaigns.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new i(null===(r=t.data)||void 0===r?void 0:r.map((function(t){return t})),t.graphQLErrors)]}}))}))}function y(n){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getVariantStockLocations.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new i(null===(r=t.data)||void 0===r?void 0:r.stockLocations.map((function(t){return t})),t.graphQLErrors)]}}))}))}function I(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/getOrderLineFile.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function A(n){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductOptionSet.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),null==(r=t.data)||r.forEach((function(t){return s(t,a.getCurrentLocale())})),[2,new i(r,t.graphQLErrors)]}}))}))}function C(n){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().ResponseField,i=["DATA"],n&&n.length&&n.map((function(e){var n=Object.keys(t).filter((function(t){return t.startsWith(e)}));i=r(r([],i,!0),n,!0)})),[2,Object.entries(t).filter((function(t){var e=t[0];return!i.includes(e)})).map((function(t){return t[1]}))]}}))}))}function L(t){var e,r,i,u,l="local"===process.env.NEXT_PUBLIC_ENV;return{id:t.id,type:t.type,groupVariantsByVariantTypeId:t.groupVariantsByVariantTypeId,deleted:t.deleted,attributes:(null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,r,i,a,u,o;return n(n({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(r=t.productAttributeOption)||void 0===r?void 0:r.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:null,type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],brand:t.brand?n(n({},t.brand),{id:t.brand.id,name:t.brand.name,createdAt:0,updatedAt:0,description:null,imageId:t.brand.imageId,orderType:o.BEST_SELLER,metaData:{id:"",createdAt:0,updatedAt:0,slug:t.brand.slug||""}}):null,campaigns:null===(r=t.campaigns)||void 0===r?void 0:r.map((function(t){return{campaign:t,variantIds:[]}})),categories:(null===(i=t.categories)||void 0===i?void 0:i.map((function(t){return n(n({},t),{categoryPath:t.path.map((function(t){return t.name})),description:null,imageId:null,parentId:null,metaData:t.slug?{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug}:null,categoryPathItems:t.path.map((function(t){return{metaData:{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug||""},description:null,name:t.name,translations:t.translations,imageId:null,id:t.id,createdAt:0,updatedAt:0}})),createdAt:0,updatedAt:0,orderType:d.BEST_SELLER,conditions:null,conditionValues:null})})))||[],tags:t.tags||[],description:t.description||"",averageRating:t.averageRating,reviewCount:t.reviewCount,stars:t.stars,baseUnit:t.baseUnit,metaData:n(n({},t.metaData),{id:"",createdAt:0,updatedAt:0,slug:(null===(u=t.metaData)||void 0===u?void 0:u.slug)||""})||null,name:t.name,shortDescription:t.shortDescription||"",productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return{order:t.order,variantType:{id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return{id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id}})).filter((function(e){return t.variantValueIds.includes(e.id)}))},variantValueIds:t.variantValueIds}})),variants:t.variants.map((function(e){var r,i,u,o,d;return n(n({},e),{id:e.id,productId:t.id,images:(null===(r=e.images)||void 0===r?void 0:r.map((function(t){return{imageId:t.id,isMain:t.isMain||!1,isVideo:t.isVideo,order:t.order,fileName:t.fileName}})))||null,sellIfOutOfStock:e.sellIfOutOfStock||!1,unit:e.unit,attributes:(null===(i=e.attributes)||void 0===i?void 0:i.map((function(t){var e,r,i,a,u,o;return n(n({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(r=t.productAttributeOption)||void 0===r?void 0:r.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:"",type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],sku:e.sku,barcodeList:e.barcodeList||null,price:null===(u=e.prices)||void 0===u?void 0:u.find((function(t){return a.getPriceListId()?t.priceListId===a.getPriceListId():null===t.priceListId})),stock:(null===(o=e.stocks)||void 0===o?void 0:o.filter((function(t){var e;return l||a.getIsEditor()||(null===(e=a.getStockLocationIds())||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0))||0,variantValues:(null===(d=e.variantValues)||void 0===d?void 0:d.map((function(e){var n=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),r=null==n?void 0:n.variantType.values.find((function(t){return t.id===e.variantValueId}));return{id:e.variantValueId,name:(null==r?void 0:r.name)||"",colorCode:(null==r?void 0:r.colorCode)||"",thumbnailImageId:(null==r?void 0:r.thumbnailImageId)||"",variantTypeId:(null==n?void 0:n.variantType.id)||""}})))||[],isActive:e.isActive||!1})}))}}export{I as getOrderLineFile,b as getProductCampaigns,m as getProductFilterData,f as getRelatedProducts,g as getSuggestedProducts,y as getVariantStockLocations,h as listProductAttribute,c as listProductBackInStockRemind,A as listProductOptionSet,p as saveProductBackInStockRemind,v as searchProducts};
package/build/index.js CHANGED
@@ -1 +1 @@
1
- export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkStocks,createAdyenClientToken,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications}from"./api/customer/index.js";export{getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getAvailableShippingZones,getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,getSuggestedProducts,getVariantStockLocations,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";
1
+ export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkStocks,createAdyenClientToken,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications}from"./api/customer/index.js";export{getDigitalProductFileDownloadUrl,getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getAvailableShippingZones,getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,getSuggestedProducts,getVariantStockLocations,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "4.10.0-beta.1",
3
+ "version": "4.10.0-beta.11",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "API functions that returns models from the ikas-storefront-models package.",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-commonjs": "^22.0.0",
20
- "@ikas/storefront-config": "^4.10.0-beta.1",
21
- "@ikas/storefront-models": "^4.10.0-beta.1",
20
+ "@ikas/storefront-config": "^4.10.0-beta.11",
21
+ "@ikas/storefront-models": "^4.10.0-beta.11",
22
22
  "@rollup/plugin-node-resolve": "^13.3.0",
23
23
  "rollup-plugin-rename-node-modules": "^1.2.0",
24
24
  "prettier": "^2.2.1",
@@ -34,8 +34,8 @@
34
34
  "@ikas/fe-api-client": "^1.0.19"
35
35
  },
36
36
  "peerDependencies": {
37
- "@ikas/storefront-config": "^4.10.0-beta.1",
38
- "@ikas/storefront-models": "^4.10.0-beta.1",
37
+ "@ikas/storefront-config": "^4.10.0-beta.11",
38
+ "@ikas/storefront-models": "^4.10.0-beta.11",
39
39
  "@ikas/fe-api-client": "^1.0.18",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"