@ikas/storefront 0.0.5 → 0.0.7

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/index.es.js CHANGED
@@ -10865,14 +10865,16 @@ function setContext(setter) {
10865
10865
  var IkasStorefrontConfig = /** @class */ (function () {
10866
10866
  function IkasStorefrontConfig() {
10867
10867
  }
10868
- IkasStorefrontConfig.init = function (store, components, config, localTheme) {
10868
+ IkasStorefrontConfig.init = function (store, components, config, localTheme, apiUrlOverride) {
10869
10869
  IkasStorefrontConfig.store = store;
10870
10870
  IkasStorefrontConfig.components = components;
10871
10871
  IkasStorefrontConfig.config = config;
10872
10872
  IkasStorefrontConfig.localTheme = localTheme;
10873
+ IkasStorefrontConfig.apiUrlOverride = apiUrlOverride;
10873
10874
  };
10874
10875
  IkasStorefrontConfig.components = {};
10875
10876
  IkasStorefrontConfig.config = {};
10877
+ IkasStorefrontConfig.apiUrlOverride = null;
10876
10878
  return IkasStorefrontConfig;
10877
10879
  }());
10878
10880
 
@@ -10892,9 +10894,10 @@ var Apollo = /** @class */ (function () {
10892
10894
  });
10893
10895
  var hostname = typeof window !== "undefined" ? window.location.hostname : null;
10894
10896
  var httpLink = createHttpLink({
10895
- uri: hostname && hostname !== "localhost"
10896
- ? "https://" + hostname + "/api/sf/graphql"
10897
- : process.env.NEXT_PUBLIC_GQL_URL,
10897
+ uri: IkasStorefrontConfig.apiUrlOverride ||
10898
+ (hostname && hostname !== "localhost"
10899
+ ? "https://" + hostname + "/api/sf/graphql"
10900
+ : process.env.NEXT_PUBLIC_GQL_URL),
10898
10901
  });
10899
10902
  _this._client = new ApolloClient({
10900
10903
  link: authLink.concat(httpLink),
@@ -10931,6 +10934,7 @@ var apollo = new Apollo();
10931
10934
  var IkasHTMLMetaData = /** @class */ (function () {
10932
10935
  function IkasHTMLMetaData(data) {
10933
10936
  if (data === void 0) { data = {}; }
10937
+ this.redirectTo = null;
10934
10938
  this.slug = data.slug || "";
10935
10939
  this.pageTitle = data.pageTitle || null;
10936
10940
  this.description = data.description || null;
@@ -10951,6 +10955,8 @@ var IkasHTMLMetaDataTargetType;
10951
10955
 
10952
10956
  var IkasBrand = /** @class */ (function () {
10953
10957
  function IkasBrand(data) {
10958
+ this.metaData = null;
10959
+ this.image = null;
10954
10960
  this.id = data.id || "";
10955
10961
  this.name = data.name || "";
10956
10962
  this.metaData = data.metaData
@@ -10974,6 +10980,8 @@ var IkasBrand = /** @class */ (function () {
10974
10980
 
10975
10981
  var IkasCategory = /** @class */ (function () {
10976
10982
  function IkasCategory(data) {
10983
+ this.metaData = null;
10984
+ this.image = null;
10977
10985
  this.id = data.id || "";
10978
10986
  this.name = data.name || "";
10979
10987
  this.parentId = data.parentId || null;
@@ -11751,6 +11759,7 @@ var IkasLinkPropValueProvider = /** @class */ (function () {
11751
11759
 
11752
11760
  var IkasNavigationLink = /** @class */ (function () {
11753
11761
  function IkasNavigationLink(href, label, subLinks, isExternal) {
11762
+ this.isExternal = null;
11754
11763
  this.href = href;
11755
11764
  this.label = label;
11756
11765
  this.subLinks = subLinks;
@@ -11762,8 +11771,10 @@ var IkasNavigationLink = /** @class */ (function () {
11762
11771
 
11763
11772
  var IkasPageDataProvider = /** @class */ (function () {
11764
11773
  function IkasPageDataProvider(theme, pageParams, pageType) {
11774
+ this.pageType = null;
11765
11775
  this.pageParams = {};
11766
11776
  this.pageComponentPropValues = [];
11777
+ this.pageSpecificData = null;
11767
11778
  this.theme = new IkasTheme(theme);
11768
11779
  this.pageParams = pageParams || {};
11769
11780
  this.pageType = pageType;
@@ -12166,21 +12177,36 @@ var formatMoney = function (price, currency) {
12166
12177
  var IkasOrderAddress = /** @class */ (function () {
12167
12178
  function IkasOrderAddress(data) {
12168
12179
  if (data === void 0) { data = {}; }
12169
- this.addressLine1 = data.addressLine1 || undefined;
12170
- this.addressLine2 = data.addressLine2 || undefined;
12171
- this.country = data.country || undefined;
12172
- this.state = data.state || undefined;
12173
- this.city = data.city || undefined;
12174
- this.district = data.district || undefined;
12175
- this.isDefault = data.isDefault || undefined;
12176
- this.company = data.company || undefined;
12177
- this.firstName = data.firstName || undefined;
12178
- this.lastName = data.lastName || undefined;
12179
- this.phone = data.phone || undefined;
12180
- this.postalCode = data.postalCode || undefined;
12181
- this.identityNumber = data.identityNumber || undefined;
12182
- this.taxNumber = data.taxNumber || undefined;
12183
- this.taxOffice = data.taxOffice || undefined;
12180
+ this.addressLine1 = null;
12181
+ this.addressLine2 = null;
12182
+ this.country = null;
12183
+ this.state = null;
12184
+ this.city = null;
12185
+ this.district = null;
12186
+ this.isDefault = null;
12187
+ this.company = null;
12188
+ this.firstName = null;
12189
+ this.lastName = null;
12190
+ this.phone = null;
12191
+ this.postalCode = null;
12192
+ this.identityNumber = null;
12193
+ this.taxNumber = null;
12194
+ this.taxOffice = null;
12195
+ this.addressLine1 = data.addressLine1 || null;
12196
+ this.addressLine2 = data.addressLine2 || null;
12197
+ this.country = data.country || null;
12198
+ this.state = data.state || null;
12199
+ this.city = data.city || null;
12200
+ this.district = data.district || null;
12201
+ this.isDefault = data.isDefault || null;
12202
+ this.company = data.company || null;
12203
+ this.firstName = data.firstName || null;
12204
+ this.lastName = data.lastName || null;
12205
+ this.phone = data.phone || null;
12206
+ this.postalCode = data.postalCode || null;
12207
+ this.identityNumber = data.identityNumber || null;
12208
+ this.taxNumber = data.taxNumber || null;
12209
+ this.taxOffice = data.taxOffice || null;
12184
12210
  makeAutoObservable(this);
12185
12211
  }
12186
12212
  Object.defineProperty(IkasOrderAddress.prototype, "addressText", {
@@ -12287,6 +12313,11 @@ var IkasImage = /** @class */ (function () {
12287
12313
  var IkasOrderLineVariant = /** @class */ (function () {
12288
12314
  function IkasOrderLineVariant(data) {
12289
12315
  if (data === void 0) { data = {}; }
12316
+ this.sku = null;
12317
+ this.slug = null;
12318
+ this.mainImageId = null;
12319
+ // Extra
12320
+ this.mainImage = null;
12290
12321
  this.id = data.id || "";
12291
12322
  this.name = data.name || "";
12292
12323
  this.productId = data.productId || "";
@@ -12349,6 +12380,10 @@ var IkasOrderLineVariantVariantValue = /** @class */ (function () {
12349
12380
 
12350
12381
  var IkasOrderLineItem = /** @class */ (function () {
12351
12382
  function IkasOrderLineItem(data) {
12383
+ this.discount = null;
12384
+ this.discountPrice = null;
12385
+ this.originalOrderLineItemId = null;
12386
+ this.taxValue = null;
12352
12387
  this.id = data.id || "";
12353
12388
  this.createdAt = data.createdAt || "";
12354
12389
  this.updatedAt = data.updatedAt || "";
@@ -12381,6 +12416,8 @@ var IkasOrderLineItem = /** @class */ (function () {
12381
12416
 
12382
12417
  var IkasCart = /** @class */ (function () {
12383
12418
  function IkasCart(data) {
12419
+ this.dueDate = null;
12420
+ this.customerId = null;
12384
12421
  this.id = data.id || "";
12385
12422
  this.createdAt = data.createdAt || "";
12386
12423
  this.updatedAt = data.updatedAt || "";
@@ -12410,6 +12447,27 @@ var IkasCart = /** @class */ (function () {
12410
12447
  var IkasCheckout = /** @class */ (function () {
12411
12448
  function IkasCheckout(data) {
12412
12449
  if (data === void 0) { data = {}; }
12450
+ this.id = null;
12451
+ this.createdAt = null;
12452
+ this.updatedAt = null;
12453
+ this.cartId = null;
12454
+ this.cart = null;
12455
+ this.orderId = null;
12456
+ this.orderNumber = null;
12457
+ this.merchantId = null;
12458
+ this.shippingSettingsId = null;
12459
+ this.shippingZoneRateId = null;
12460
+ this.customer = null;
12461
+ this.billingAddress = null;
12462
+ this.shippingAddress = null;
12463
+ this.shippingLines = null;
12464
+ this.shippingMethod = null;
12465
+ this.status = null;
12466
+ this.couponCode = null;
12467
+ this.recoverEmailStatus = null;
12468
+ this.recoveryStatus = null;
12469
+ this.totalFinalPrice = null;
12470
+ this.adjustments = null;
12413
12471
  this.id = data.id;
12414
12472
  this.createdAt = data.createdAt;
12415
12473
  this.updatedAt = data.updatedAt;
@@ -12522,23 +12580,40 @@ var IkasShippingMethodEnum;
12522
12580
  var IkasCustomerAddress = /** @class */ (function () {
12523
12581
  function IkasCustomerAddress(data) {
12524
12582
  if (data === void 0) { data = {}; }
12525
- this.id = data.id || undefined;
12526
- this.title = data.title || undefined;
12527
- this.addressLine1 = data.addressLine1 || undefined;
12528
- this.addressLine2 = data.addressLine2 || undefined;
12529
- this.country = data.country || undefined;
12530
- this.state = data.state || undefined;
12531
- this.city = data.city || undefined;
12532
- this.district = data.district || undefined;
12533
- this.isDefault = data.isDefault || undefined;
12534
- this.company = data.company || undefined;
12535
- this.firstName = data.firstName || undefined;
12536
- this.lastName = data.lastName || undefined;
12537
- this.phone = data.phone || undefined;
12538
- this.postalCode = data.postalCode || undefined;
12539
- this.identityNumber = data.identityNumber || undefined;
12540
- this.taxNumber = data.taxNumber || undefined;
12541
- this.taxOffice = data.taxOffice || undefined;
12583
+ this.id = null;
12584
+ this.title = null;
12585
+ this.addressLine1 = null;
12586
+ this.addressLine2 = null;
12587
+ this.country = null;
12588
+ this.state = null;
12589
+ this.city = null;
12590
+ this.district = null;
12591
+ this.isDefault = null;
12592
+ this.company = null;
12593
+ this.firstName = null;
12594
+ this.lastName = null;
12595
+ this.phone = null;
12596
+ this.postalCode = null;
12597
+ this.identityNumber = null;
12598
+ this.taxNumber = null;
12599
+ this.taxOffice = null;
12600
+ this.id = data.id || null;
12601
+ this.title = data.title || null;
12602
+ this.addressLine1 = data.addressLine1 || null;
12603
+ this.addressLine2 = data.addressLine2 || null;
12604
+ this.country = data.country || null;
12605
+ this.state = data.state || null;
12606
+ this.city = data.city || null;
12607
+ this.district = data.district || null;
12608
+ this.isDefault = data.isDefault || null;
12609
+ this.company = data.company || null;
12610
+ this.firstName = data.firstName || null;
12611
+ this.lastName = data.lastName || null;
12612
+ this.phone = data.phone || null;
12613
+ this.postalCode = data.postalCode || null;
12614
+ this.identityNumber = data.identityNumber || null;
12615
+ this.taxNumber = data.taxNumber || null;
12616
+ this.taxOffice = data.taxOffice || null;
12542
12617
  makeAutoObservable(this);
12543
12618
  }
12544
12619
  Object.defineProperty(IkasCustomerAddress.prototype, "addressText", {
@@ -12595,6 +12670,7 @@ var IkasCustomerAddress = /** @class */ (function () {
12595
12670
 
12596
12671
  var IkasCustomer = /** @class */ (function () {
12597
12672
  function IkasCustomer(data) {
12673
+ this.phone = null;
12598
12674
  this.id = data.id || "";
12599
12675
  this.firstName = data.firstName || "";
12600
12676
  this.lastName = data.lastName || "";
@@ -13217,6 +13293,16 @@ var IkasTheme = /** @class */ (function () {
13217
13293
  var IkasLinkPropValue = /** @class */ (function () {
13218
13294
  function IkasLinkPropValue(data) {
13219
13295
  if (data === void 0) { data = {}; }
13296
+ this.id = null;
13297
+ this.linkType = null;
13298
+ this.label = null;
13299
+ this.pageId = null;
13300
+ this.pageType = null;
13301
+ this.itemId = null;
13302
+ this.externalLink = null;
13303
+ this.fileUrl = null;
13304
+ // This will be used to link to a specific part of the page
13305
+ this.pageComponentId = null;
13220
13306
  this.id = data.id;
13221
13307
  this.linkType = data.linkType;
13222
13308
  this.label = data.label;
@@ -13240,6 +13326,9 @@ var IkasLinkType;
13240
13326
 
13241
13327
  var IkasBrandPropValue = /** @class */ (function () {
13242
13328
  function IkasBrandPropValue(data) {
13329
+ this.brandId = null;
13330
+ // Only for brand detail page
13331
+ this.usePageData = null;
13243
13332
  this.brandId = data.brandId;
13244
13333
  this.usePageData = data.usePageData;
13245
13334
  makeAutoObservable(this);
@@ -13251,6 +13340,7 @@ var IkasBrandList = /** @class */ (function () {
13251
13340
  function IkasBrandList(data) {
13252
13341
  var _this = this;
13253
13342
  this._initialized = false;
13343
+ this._minPage = null;
13254
13344
  this._isLoading = false;
13255
13345
  this.getInitial = function () { return __awaiter(_this, void 0, void 0, function () {
13256
13346
  var response_1, err_1;
@@ -13516,6 +13606,11 @@ var IkasBrandListSortType;
13516
13606
 
13517
13607
  var IkasBrandListPropValue = /** @class */ (function () {
13518
13608
  function IkasBrandListPropValue(data) {
13609
+ this.initialSort = null;
13610
+ this.initialLimit = null;
13611
+ // Only for static lists
13612
+ this.brandCount = null;
13613
+ this.brandIds = null;
13519
13614
  this.brandListType = data.brandListType || IkasBrandListType.ALL;
13520
13615
  this.initialSort = data.initialSort || IkasBrandListSortType.A_Z;
13521
13616
  this.initialLimit = data.initialLimit || 20;
@@ -13528,6 +13623,8 @@ var IkasBrandListPropValue = /** @class */ (function () {
13528
13623
 
13529
13624
  var IkasProductDetail = /** @class */ (function () {
13530
13625
  function IkasProductDetail(product, selectedVariantValues, usePageData, router) {
13626
+ this.usePageData = null;
13627
+ this.router = null;
13531
13628
  this.product = new IkasProduct(product);
13532
13629
  this.selectedVariantValues = selectedVariantValues.map(function (vv) { return new IkasVariantValue(vv); });
13533
13630
  this.usePageData = usePageData;
@@ -13597,6 +13694,9 @@ var IkasProductDetail = /** @class */ (function () {
13597
13694
  var IkasProductListFilter = /** @class */ (function () {
13598
13695
  function IkasProductListFilter(data) {
13599
13696
  if (data === void 0) { data = {}; }
13697
+ // /collections/slug ve /brands/slug sayfalarında bunlar sabit filtre olacak
13698
+ this.category = null;
13699
+ this.brand = null;
13600
13700
  this.categories = data.categories || [];
13601
13701
  this.brands = data.brands || [];
13602
13702
  this.variantValues = data.variantValues || [];
@@ -13610,6 +13710,11 @@ var IkasProductList = /** @class */ (function () {
13610
13710
  function IkasProductList(data) {
13611
13711
  var _this = this;
13612
13712
  this._initialized = false;
13713
+ this._minPage = null;
13714
+ // Used for ProducListType.ALL
13715
+ this._filters = null;
13716
+ // Used for recommending products for a specific product
13717
+ this._recommendFor = null; // productId
13613
13718
  this._isLoading = false;
13614
13719
  this.getInitial = function () { return __awaiter(_this, void 0, void 0, function () {
13615
13720
  var page, limit, response_1, data_1, err_1;
@@ -13922,7 +14027,9 @@ var IkasProductList = /** @class */ (function () {
13922
14027
  enumerable: false,
13923
14028
  configurable: true
13924
14029
  });
13925
- IkasProductList.prototype.applyFilters = function () { };
14030
+ IkasProductList.prototype.applyFilters = function () {
14031
+ return;
14032
+ };
13926
14033
  IkasProductList.prototype.toJSON = function () {
13927
14034
  return {
13928
14035
  data: this.data,
@@ -13961,6 +14068,14 @@ var IkasProductListSortType;
13961
14068
 
13962
14069
  var IkasProductListPropValue = /** @class */ (function () {
13963
14070
  function IkasProductListPropValue(data) {
14071
+ this.initialSort = null;
14072
+ this.initialLimit = null;
14073
+ // Only for static lists
14074
+ this.productCount = null;
14075
+ this.productIds = null;
14076
+ // Only for collection and brand pages
14077
+ // Example collections/man -> lists products inside the "man" category
14078
+ this.usePageFilter = null;
13964
14079
  this.productListType = data.productListType || IkasProductListType.ALL;
13965
14080
  this.initialSort = data.initialSort || IkasProductListSortType.A_Z;
13966
14081
  this.initialLimit = data.initialLimit || 20;
@@ -13974,6 +14089,10 @@ var IkasProductListPropValue = /** @class */ (function () {
13974
14089
 
13975
14090
  var IkasProductDetailPropValue = /** @class */ (function () {
13976
14091
  function IkasProductDetailPropValue(data) {
14092
+ this.productId = null;
14093
+ this.variantId = null;
14094
+ // Only for product detail page
14095
+ this.usePageData = null;
13977
14096
  this.productId = data.productId;
13978
14097
  this.variantId = data.variantId;
13979
14098
  this.usePageData = data.usePageData;
@@ -19929,6 +20048,10 @@ var LS_CUSTOMER_KEY = "customer";
19929
20048
  var IkasCustomerStore = /** @class */ (function () {
19930
20049
  function IkasCustomerStore(baseStore) {
19931
20050
  var _this = this;
20051
+ this.customer = null;
20052
+ this.token = null;
20053
+ this.tokenExpiry = null;
20054
+ this.baseStore = null;
19932
20055
  this._initialized = false;
19933
20056
  this.login = function (email, password) { return __awaiter(_this, void 0, void 0, function () {
19934
20057
  var response, cart;
@@ -22188,22 +22311,6 @@ var IkasCartStore = /** @class */ (function () {
22188
22311
  };
22189
22312
  this.baseStore = baseStore;
22190
22313
  makeAutoObservable(this);
22191
- // makeObservable(this, {
22192
- // cart: observable,
22193
- // //@ts-ignore
22194
- // baseStore: observable,
22195
- // //@ts-ignore
22196
- // _checkoutId: observable,
22197
- // //@ts-ignore
22198
- // _isLoadingCart: observable,
22199
- // //@ts-ignore
22200
- // _cartLoadFinished: observable,
22201
- // isBrowser: computed,
22202
- // isLoadingCart: computed,
22203
- // cartLoadFinished: computed,
22204
- // checkoutId: computed,
22205
- // checkoutUrl: computed,
22206
- // });
22207
22314
  this.getCart();
22208
22315
  }
22209
22316
  Object.defineProperty(IkasCartStore.prototype, "isBrowser", {
package/build/index.js CHANGED
@@ -10878,14 +10878,16 @@ function setContext(setter) {
10878
10878
  var IkasStorefrontConfig = /** @class */ (function () {
10879
10879
  function IkasStorefrontConfig() {
10880
10880
  }
10881
- IkasStorefrontConfig.init = function (store, components, config, localTheme) {
10881
+ IkasStorefrontConfig.init = function (store, components, config, localTheme, apiUrlOverride) {
10882
10882
  IkasStorefrontConfig.store = store;
10883
10883
  IkasStorefrontConfig.components = components;
10884
10884
  IkasStorefrontConfig.config = config;
10885
10885
  IkasStorefrontConfig.localTheme = localTheme;
10886
+ IkasStorefrontConfig.apiUrlOverride = apiUrlOverride;
10886
10887
  };
10887
10888
  IkasStorefrontConfig.components = {};
10888
10889
  IkasStorefrontConfig.config = {};
10890
+ IkasStorefrontConfig.apiUrlOverride = null;
10889
10891
  return IkasStorefrontConfig;
10890
10892
  }());
10891
10893
 
@@ -10905,9 +10907,10 @@ var Apollo = /** @class */ (function () {
10905
10907
  });
10906
10908
  var hostname = typeof window !== "undefined" ? window.location.hostname : null;
10907
10909
  var httpLink = createHttpLink({
10908
- uri: hostname && hostname !== "localhost"
10909
- ? "https://" + hostname + "/api/sf/graphql"
10910
- : process.env.NEXT_PUBLIC_GQL_URL,
10910
+ uri: IkasStorefrontConfig.apiUrlOverride ||
10911
+ (hostname && hostname !== "localhost"
10912
+ ? "https://" + hostname + "/api/sf/graphql"
10913
+ : process.env.NEXT_PUBLIC_GQL_URL),
10911
10914
  });
10912
10915
  _this._client = new ApolloClient({
10913
10916
  link: authLink.concat(httpLink),
@@ -10944,6 +10947,7 @@ var apollo = new Apollo();
10944
10947
  var IkasHTMLMetaData = /** @class */ (function () {
10945
10948
  function IkasHTMLMetaData(data) {
10946
10949
  if (data === void 0) { data = {}; }
10950
+ this.redirectTo = null;
10947
10951
  this.slug = data.slug || "";
10948
10952
  this.pageTitle = data.pageTitle || null;
10949
10953
  this.description = data.description || null;
@@ -10963,6 +10967,8 @@ var IkasHTMLMetaData = /** @class */ (function () {
10963
10967
 
10964
10968
  var IkasBrand = /** @class */ (function () {
10965
10969
  function IkasBrand(data) {
10970
+ this.metaData = null;
10971
+ this.image = null;
10966
10972
  this.id = data.id || "";
10967
10973
  this.name = data.name || "";
10968
10974
  this.metaData = data.metaData
@@ -10986,6 +10992,8 @@ var IkasBrand = /** @class */ (function () {
10986
10992
 
10987
10993
  var IkasCategory = /** @class */ (function () {
10988
10994
  function IkasCategory(data) {
10995
+ this.metaData = null;
10996
+ this.image = null;
10989
10997
  this.id = data.id || "";
10990
10998
  this.name = data.name || "";
10991
10999
  this.parentId = data.parentId || null;
@@ -11763,6 +11771,7 @@ var IkasLinkPropValueProvider = /** @class */ (function () {
11763
11771
 
11764
11772
  var IkasNavigationLink = /** @class */ (function () {
11765
11773
  function IkasNavigationLink(href, label, subLinks, isExternal) {
11774
+ this.isExternal = null;
11766
11775
  this.href = href;
11767
11776
  this.label = label;
11768
11777
  this.subLinks = subLinks;
@@ -11774,8 +11783,10 @@ var IkasNavigationLink = /** @class */ (function () {
11774
11783
 
11775
11784
  var IkasPageDataProvider = /** @class */ (function () {
11776
11785
  function IkasPageDataProvider(theme, pageParams, pageType) {
11786
+ this.pageType = null;
11777
11787
  this.pageParams = {};
11778
11788
  this.pageComponentPropValues = [];
11789
+ this.pageSpecificData = null;
11779
11790
  this.theme = new IkasTheme(theme);
11780
11791
  this.pageParams = pageParams || {};
11781
11792
  this.pageType = pageType;
@@ -12178,21 +12189,36 @@ var formatMoney = function (price, currency) {
12178
12189
  var IkasOrderAddress = /** @class */ (function () {
12179
12190
  function IkasOrderAddress(data) {
12180
12191
  if (data === void 0) { data = {}; }
12181
- this.addressLine1 = data.addressLine1 || undefined;
12182
- this.addressLine2 = data.addressLine2 || undefined;
12183
- this.country = data.country || undefined;
12184
- this.state = data.state || undefined;
12185
- this.city = data.city || undefined;
12186
- this.district = data.district || undefined;
12187
- this.isDefault = data.isDefault || undefined;
12188
- this.company = data.company || undefined;
12189
- this.firstName = data.firstName || undefined;
12190
- this.lastName = data.lastName || undefined;
12191
- this.phone = data.phone || undefined;
12192
- this.postalCode = data.postalCode || undefined;
12193
- this.identityNumber = data.identityNumber || undefined;
12194
- this.taxNumber = data.taxNumber || undefined;
12195
- this.taxOffice = data.taxOffice || undefined;
12192
+ this.addressLine1 = null;
12193
+ this.addressLine2 = null;
12194
+ this.country = null;
12195
+ this.state = null;
12196
+ this.city = null;
12197
+ this.district = null;
12198
+ this.isDefault = null;
12199
+ this.company = null;
12200
+ this.firstName = null;
12201
+ this.lastName = null;
12202
+ this.phone = null;
12203
+ this.postalCode = null;
12204
+ this.identityNumber = null;
12205
+ this.taxNumber = null;
12206
+ this.taxOffice = null;
12207
+ this.addressLine1 = data.addressLine1 || null;
12208
+ this.addressLine2 = data.addressLine2 || null;
12209
+ this.country = data.country || null;
12210
+ this.state = data.state || null;
12211
+ this.city = data.city || null;
12212
+ this.district = data.district || null;
12213
+ this.isDefault = data.isDefault || null;
12214
+ this.company = data.company || null;
12215
+ this.firstName = data.firstName || null;
12216
+ this.lastName = data.lastName || null;
12217
+ this.phone = data.phone || null;
12218
+ this.postalCode = data.postalCode || null;
12219
+ this.identityNumber = data.identityNumber || null;
12220
+ this.taxNumber = data.taxNumber || null;
12221
+ this.taxOffice = data.taxOffice || null;
12196
12222
  mobx.makeAutoObservable(this);
12197
12223
  }
12198
12224
  Object.defineProperty(IkasOrderAddress.prototype, "addressText", {
@@ -12299,6 +12325,11 @@ var IkasImage = /** @class */ (function () {
12299
12325
  var IkasOrderLineVariant = /** @class */ (function () {
12300
12326
  function IkasOrderLineVariant(data) {
12301
12327
  if (data === void 0) { data = {}; }
12328
+ this.sku = null;
12329
+ this.slug = null;
12330
+ this.mainImageId = null;
12331
+ // Extra
12332
+ this.mainImage = null;
12302
12333
  this.id = data.id || "";
12303
12334
  this.name = data.name || "";
12304
12335
  this.productId = data.productId || "";
@@ -12361,6 +12392,10 @@ var IkasOrderLineVariantVariantValue = /** @class */ (function () {
12361
12392
 
12362
12393
  var IkasOrderLineItem = /** @class */ (function () {
12363
12394
  function IkasOrderLineItem(data) {
12395
+ this.discount = null;
12396
+ this.discountPrice = null;
12397
+ this.originalOrderLineItemId = null;
12398
+ this.taxValue = null;
12364
12399
  this.id = data.id || "";
12365
12400
  this.createdAt = data.createdAt || "";
12366
12401
  this.updatedAt = data.updatedAt || "";
@@ -12393,6 +12428,8 @@ var IkasOrderLineItem = /** @class */ (function () {
12393
12428
 
12394
12429
  var IkasCart = /** @class */ (function () {
12395
12430
  function IkasCart(data) {
12431
+ this.dueDate = null;
12432
+ this.customerId = null;
12396
12433
  this.id = data.id || "";
12397
12434
  this.createdAt = data.createdAt || "";
12398
12435
  this.updatedAt = data.updatedAt || "";
@@ -12422,6 +12459,27 @@ var IkasCart = /** @class */ (function () {
12422
12459
  var IkasCheckout = /** @class */ (function () {
12423
12460
  function IkasCheckout(data) {
12424
12461
  if (data === void 0) { data = {}; }
12462
+ this.id = null;
12463
+ this.createdAt = null;
12464
+ this.updatedAt = null;
12465
+ this.cartId = null;
12466
+ this.cart = null;
12467
+ this.orderId = null;
12468
+ this.orderNumber = null;
12469
+ this.merchantId = null;
12470
+ this.shippingSettingsId = null;
12471
+ this.shippingZoneRateId = null;
12472
+ this.customer = null;
12473
+ this.billingAddress = null;
12474
+ this.shippingAddress = null;
12475
+ this.shippingLines = null;
12476
+ this.shippingMethod = null;
12477
+ this.status = null;
12478
+ this.couponCode = null;
12479
+ this.recoverEmailStatus = null;
12480
+ this.recoveryStatus = null;
12481
+ this.totalFinalPrice = null;
12482
+ this.adjustments = null;
12425
12483
  this.id = data.id;
12426
12484
  this.createdAt = data.createdAt;
12427
12485
  this.updatedAt = data.updatedAt;
@@ -12528,23 +12586,40 @@ var IkasCheckout = /** @class */ (function () {
12528
12586
  var IkasCustomerAddress = /** @class */ (function () {
12529
12587
  function IkasCustomerAddress(data) {
12530
12588
  if (data === void 0) { data = {}; }
12531
- this.id = data.id || undefined;
12532
- this.title = data.title || undefined;
12533
- this.addressLine1 = data.addressLine1 || undefined;
12534
- this.addressLine2 = data.addressLine2 || undefined;
12535
- this.country = data.country || undefined;
12536
- this.state = data.state || undefined;
12537
- this.city = data.city || undefined;
12538
- this.district = data.district || undefined;
12539
- this.isDefault = data.isDefault || undefined;
12540
- this.company = data.company || undefined;
12541
- this.firstName = data.firstName || undefined;
12542
- this.lastName = data.lastName || undefined;
12543
- this.phone = data.phone || undefined;
12544
- this.postalCode = data.postalCode || undefined;
12545
- this.identityNumber = data.identityNumber || undefined;
12546
- this.taxNumber = data.taxNumber || undefined;
12547
- this.taxOffice = data.taxOffice || undefined;
12589
+ this.id = null;
12590
+ this.title = null;
12591
+ this.addressLine1 = null;
12592
+ this.addressLine2 = null;
12593
+ this.country = null;
12594
+ this.state = null;
12595
+ this.city = null;
12596
+ this.district = null;
12597
+ this.isDefault = null;
12598
+ this.company = null;
12599
+ this.firstName = null;
12600
+ this.lastName = null;
12601
+ this.phone = null;
12602
+ this.postalCode = null;
12603
+ this.identityNumber = null;
12604
+ this.taxNumber = null;
12605
+ this.taxOffice = null;
12606
+ this.id = data.id || null;
12607
+ this.title = data.title || null;
12608
+ this.addressLine1 = data.addressLine1 || null;
12609
+ this.addressLine2 = data.addressLine2 || null;
12610
+ this.country = data.country || null;
12611
+ this.state = data.state || null;
12612
+ this.city = data.city || null;
12613
+ this.district = data.district || null;
12614
+ this.isDefault = data.isDefault || null;
12615
+ this.company = data.company || null;
12616
+ this.firstName = data.firstName || null;
12617
+ this.lastName = data.lastName || null;
12618
+ this.phone = data.phone || null;
12619
+ this.postalCode = data.postalCode || null;
12620
+ this.identityNumber = data.identityNumber || null;
12621
+ this.taxNumber = data.taxNumber || null;
12622
+ this.taxOffice = data.taxOffice || null;
12548
12623
  mobx.makeAutoObservable(this);
12549
12624
  }
12550
12625
  Object.defineProperty(IkasCustomerAddress.prototype, "addressText", {
@@ -12601,6 +12676,7 @@ var IkasCustomerAddress = /** @class */ (function () {
12601
12676
 
12602
12677
  var IkasCustomer = /** @class */ (function () {
12603
12678
  function IkasCustomer(data) {
12679
+ this.phone = null;
12604
12680
  this.id = data.id || "";
12605
12681
  this.firstName = data.firstName || "";
12606
12682
  this.lastName = data.lastName || "";
@@ -13208,6 +13284,16 @@ var IkasTheme = /** @class */ (function () {
13208
13284
  var IkasLinkPropValue = /** @class */ (function () {
13209
13285
  function IkasLinkPropValue(data) {
13210
13286
  if (data === void 0) { data = {}; }
13287
+ this.id = null;
13288
+ this.linkType = null;
13289
+ this.label = null;
13290
+ this.pageId = null;
13291
+ this.pageType = null;
13292
+ this.itemId = null;
13293
+ this.externalLink = null;
13294
+ this.fileUrl = null;
13295
+ // This will be used to link to a specific part of the page
13296
+ this.pageComponentId = null;
13211
13297
  this.id = data.id;
13212
13298
  this.linkType = data.linkType;
13213
13299
  this.label = data.label;
@@ -13230,6 +13316,9 @@ var IkasLinkPropValue = /** @class */ (function () {
13230
13316
 
13231
13317
  var IkasBrandPropValue = /** @class */ (function () {
13232
13318
  function IkasBrandPropValue(data) {
13319
+ this.brandId = null;
13320
+ // Only for brand detail page
13321
+ this.usePageData = null;
13233
13322
  this.brandId = data.brandId;
13234
13323
  this.usePageData = data.usePageData;
13235
13324
  mobx.makeAutoObservable(this);
@@ -13241,6 +13330,7 @@ var IkasBrandList = /** @class */ (function () {
13241
13330
  function IkasBrandList(data) {
13242
13331
  var _this = this;
13243
13332
  this._initialized = false;
13333
+ this._minPage = null;
13244
13334
  this._isLoading = false;
13245
13335
  this.getInitial = function () { return __awaiter(_this, void 0, void 0, function () {
13246
13336
  var response_1, err_1;
@@ -13504,6 +13594,11 @@ var IkasBrandList = /** @class */ (function () {
13504
13594
 
13505
13595
  var IkasBrandListPropValue = /** @class */ (function () {
13506
13596
  function IkasBrandListPropValue(data) {
13597
+ this.initialSort = null;
13598
+ this.initialLimit = null;
13599
+ // Only for static lists
13600
+ this.brandCount = null;
13601
+ this.brandIds = null;
13507
13602
  this.brandListType = data.brandListType || exports.IkasBrandListType.ALL;
13508
13603
  this.initialSort = data.initialSort || exports.IkasBrandListSortType.A_Z;
13509
13604
  this.initialLimit = data.initialLimit || 20;
@@ -13516,6 +13611,8 @@ var IkasBrandListPropValue = /** @class */ (function () {
13516
13611
 
13517
13612
  var IkasProductDetail = /** @class */ (function () {
13518
13613
  function IkasProductDetail(product, selectedVariantValues, usePageData, router) {
13614
+ this.usePageData = null;
13615
+ this.router = null;
13519
13616
  this.product = new IkasProduct(product);
13520
13617
  this.selectedVariantValues = selectedVariantValues.map(function (vv) { return new IkasVariantValue(vv); });
13521
13618
  this.usePageData = usePageData;
@@ -13585,6 +13682,9 @@ var IkasProductDetail = /** @class */ (function () {
13585
13682
  var IkasProductListFilter = /** @class */ (function () {
13586
13683
  function IkasProductListFilter(data) {
13587
13684
  if (data === void 0) { data = {}; }
13685
+ // /collections/slug ve /brands/slug sayfalarında bunlar sabit filtre olacak
13686
+ this.category = null;
13687
+ this.brand = null;
13588
13688
  this.categories = data.categories || [];
13589
13689
  this.brands = data.brands || [];
13590
13690
  this.variantValues = data.variantValues || [];
@@ -13598,6 +13698,11 @@ var IkasProductList = /** @class */ (function () {
13598
13698
  function IkasProductList(data) {
13599
13699
  var _this = this;
13600
13700
  this._initialized = false;
13701
+ this._minPage = null;
13702
+ // Used for ProducListType.ALL
13703
+ this._filters = null;
13704
+ // Used for recommending products for a specific product
13705
+ this._recommendFor = null; // productId
13601
13706
  this._isLoading = false;
13602
13707
  this.getInitial = function () { return __awaiter(_this, void 0, void 0, function () {
13603
13708
  var page, limit, response_1, data_1, err_1;
@@ -13910,7 +14015,9 @@ var IkasProductList = /** @class */ (function () {
13910
14015
  enumerable: false,
13911
14016
  configurable: true
13912
14017
  });
13913
- IkasProductList.prototype.applyFilters = function () { };
14018
+ IkasProductList.prototype.applyFilters = function () {
14019
+ return;
14020
+ };
13914
14021
  IkasProductList.prototype.toJSON = function () {
13915
14022
  return {
13916
14023
  data: this.data,
@@ -13947,6 +14054,14 @@ var IkasProductList = /** @class */ (function () {
13947
14054
 
13948
14055
  var IkasProductListPropValue = /** @class */ (function () {
13949
14056
  function IkasProductListPropValue(data) {
14057
+ this.initialSort = null;
14058
+ this.initialLimit = null;
14059
+ // Only for static lists
14060
+ this.productCount = null;
14061
+ this.productIds = null;
14062
+ // Only for collection and brand pages
14063
+ // Example collections/man -> lists products inside the "man" category
14064
+ this.usePageFilter = null;
13950
14065
  this.productListType = data.productListType || exports.IkasProductListType.ALL;
13951
14066
  this.initialSort = data.initialSort || exports.IkasProductListSortType.A_Z;
13952
14067
  this.initialLimit = data.initialLimit || 20;
@@ -13960,6 +14075,10 @@ var IkasProductListPropValue = /** @class */ (function () {
13960
14075
 
13961
14076
  var IkasProductDetailPropValue = /** @class */ (function () {
13962
14077
  function IkasProductDetailPropValue(data) {
14078
+ this.productId = null;
14079
+ this.variantId = null;
14080
+ // Only for product detail page
14081
+ this.usePageData = null;
13963
14082
  this.productId = data.productId;
13964
14083
  this.variantId = data.variantId;
13965
14084
  this.usePageData = data.usePageData;
@@ -19915,6 +20034,10 @@ var LS_CUSTOMER_KEY = "customer";
19915
20034
  var IkasCustomerStore = /** @class */ (function () {
19916
20035
  function IkasCustomerStore(baseStore) {
19917
20036
  var _this = this;
20037
+ this.customer = null;
20038
+ this.token = null;
20039
+ this.tokenExpiry = null;
20040
+ this.baseStore = null;
19918
20041
  this._initialized = false;
19919
20042
  this.login = function (email, password) { return __awaiter(_this, void 0, void 0, function () {
19920
20043
  var response, cart;
@@ -22174,22 +22297,6 @@ var IkasCartStore = /** @class */ (function () {
22174
22297
  };
22175
22298
  this.baseStore = baseStore;
22176
22299
  mobx.makeAutoObservable(this);
22177
- // makeObservable(this, {
22178
- // cart: observable,
22179
- // //@ts-ignore
22180
- // baseStore: observable,
22181
- // //@ts-ignore
22182
- // _checkoutId: observable,
22183
- // //@ts-ignore
22184
- // _isLoadingCart: observable,
22185
- // //@ts-ignore
22186
- // _cartLoadFinished: observable,
22187
- // isBrowser: computed,
22188
- // isLoadingCart: computed,
22189
- // cartLoadFinished: computed,
22190
- // checkoutId: computed,
22191
- // checkoutUrl: computed,
22192
- // });
22193
22300
  this.getCart();
22194
22301
  }
22195
22302
  Object.defineProperty(IkasCartStore.prototype, "isBrowser", {
@@ -3,8 +3,8 @@ import { IkasHTMLMetaData } from "../html-meta-data/index";
3
3
  export declare class IkasBrand {
4
4
  id: string;
5
5
  name: string;
6
- metaData?: IkasHTMLMetaData;
7
- image?: IkasImage;
6
+ metaData?: IkasHTMLMetaData | null;
7
+ image?: IkasImage | null;
8
8
  constructor(data: Partial<IkasBrand>);
9
9
  get href(): string;
10
10
  }
@@ -3,9 +3,9 @@ export declare class IkasCart {
3
3
  id: string;
4
4
  createdAt: string;
5
5
  updatedAt: string;
6
- dueDate?: string;
6
+ dueDate?: string | null;
7
7
  currencyCode: string;
8
- customerId?: string;
8
+ customerId?: string | null;
9
9
  itemCount: number;
10
10
  items: IkasOrderLineItem[];
11
11
  merchantId: string;
@@ -4,8 +4,8 @@ export declare class IkasCategory {
4
4
  id: string;
5
5
  name: string;
6
6
  parentId: string | null;
7
- metaData?: IkasHTMLMetaData;
8
- image?: IkasImage;
7
+ metaData?: IkasHTMLMetaData | null;
8
+ image?: IkasImage | null;
9
9
  constructor(data: Partial<IkasCategory>);
10
10
  get href(): string;
11
11
  }
@@ -3,28 +3,28 @@ import { IkasOrderShippingLine } from "../order/shipping-line/index";
3
3
  import { IkasCart } from "../cart/index";
4
4
  import { IkasOrderAdjustment } from "../order/index";
5
5
  export declare class IkasCheckout {
6
- id?: string;
7
- createdAt?: string;
8
- updatedAt?: string;
9
- cartId?: string;
10
- cart?: IkasCart;
11
- orderId?: string;
12
- orderNumber?: string;
13
- merchantId?: string;
14
- shippingSettingsId?: string;
15
- shippingZoneRateId?: string;
6
+ id?: string | null;
7
+ createdAt?: string | null;
8
+ updatedAt?: string | null;
9
+ cartId?: string | null;
10
+ cart?: IkasCart | null;
11
+ orderId?: string | null;
12
+ orderNumber?: string | null;
13
+ merchantId?: string | null;
14
+ shippingSettingsId?: string | null;
15
+ shippingZoneRateId?: string | null;
16
16
  availableShippingMethods: IkasAvailableShippingMethod[];
17
- customer?: IkasCheckoutCustomer;
18
- billingAddress?: IkasOrderAddress;
19
- shippingAddress?: IkasOrderAddress;
20
- shippingLines?: IkasOrderShippingLine[];
21
- shippingMethod?: IkasShippingMethod;
22
- status?: IkasCheckoutStatus;
23
- couponCode?: string;
24
- recoverEmailStatus?: IkasCheckoutRecoveryEmailStatus;
25
- recoveryStatus?: IkasCheckoutRecoveryStatus;
26
- totalFinalPrice?: number;
27
- adjustments?: IkasOrderAdjustment[];
17
+ customer?: IkasCheckoutCustomer | null;
18
+ billingAddress?: IkasOrderAddress | null;
19
+ shippingAddress?: IkasOrderAddress | null;
20
+ shippingLines?: IkasOrderShippingLine[] | null;
21
+ shippingMethod?: IkasShippingMethod | null;
22
+ status?: IkasCheckoutStatus | null;
23
+ couponCode?: string | null;
24
+ recoverEmailStatus?: IkasCheckoutRecoveryEmailStatus | null;
25
+ recoveryStatus?: IkasCheckoutRecoveryStatus | null;
26
+ totalFinalPrice?: number | null;
27
+ adjustments?: IkasOrderAdjustment[] | null;
28
28
  constructor(data?: Partial<IkasCheckout>);
29
29
  get shippingTotal(): number;
30
30
  get hasCustomer(): boolean;
@@ -1,21 +1,21 @@
1
1
  export declare class IkasCustomerAddress {
2
- id?: string;
3
- title?: string;
4
- addressLine1?: string;
5
- addressLine2?: string;
6
- country?: IkasCustomerAddressCountry;
7
- state?: IkasCustomerAddressState;
8
- city?: IkasCustomerAddressCity;
9
- district?: IkasCustomerAddressDistrict;
10
- isDefault?: boolean;
11
- company?: string;
12
- firstName?: string;
13
- lastName?: string;
14
- phone?: string;
15
- postalCode?: string;
16
- identityNumber?: string;
17
- taxNumber?: string;
18
- taxOffice?: string;
2
+ id?: string | null;
3
+ title?: string | null;
4
+ addressLine1?: string | null;
5
+ addressLine2?: string | null;
6
+ country?: IkasCustomerAddressCountry | null;
7
+ state?: IkasCustomerAddressState | null;
8
+ city?: IkasCustomerAddressCity | null;
9
+ district?: IkasCustomerAddressDistrict | null;
10
+ isDefault?: boolean | null;
11
+ company?: string | null;
12
+ firstName?: string | null;
13
+ lastName?: string | null;
14
+ phone?: string | null;
15
+ postalCode?: string | null;
16
+ identityNumber?: string | null;
17
+ taxNumber?: string | null;
18
+ taxOffice?: string | null;
19
19
  constructor(data?: Partial<IkasCustomerAddress>);
20
20
  get addressText(): string;
21
21
  get validationResult(): IkasAddressValidationResult;
@@ -4,7 +4,7 @@ export declare class IkasCustomer {
4
4
  firstName: string;
5
5
  lastName: string;
6
6
  email: string;
7
- phone?: string;
7
+ phone?: string | null;
8
8
  isEmailVerified: boolean;
9
9
  isPhoneVerified: boolean;
10
10
  accountStatus: IkasCustomerAccountStatus;
@@ -4,7 +4,7 @@ export declare class IkasHTMLMetaData {
4
4
  description: string | null;
5
5
  targetType: IkasHTMLMetaDataTargetType | null;
6
6
  targetId: string | null;
7
- redirectTo?: string;
7
+ redirectTo?: string | null;
8
8
  constructor(data?: Partial<IkasHTMLMetaData>);
9
9
  }
10
10
  export declare enum IkasHTMLMetaDataTargetType {
@@ -1,19 +1,19 @@
1
1
  export declare class IkasOrderAddress {
2
- addressLine1?: string;
3
- addressLine2?: string;
4
- country?: IkasOrderAddressCountry;
5
- state?: IkasOrderAddressState;
6
- city?: IkasOrderAddressCity;
7
- district?: IkasOrderAddressDistrict;
8
- isDefault?: boolean;
9
- company?: string;
10
- firstName?: string;
11
- lastName?: string;
12
- phone?: string;
13
- postalCode?: string;
14
- identityNumber?: string;
15
- taxNumber?: string;
16
- taxOffice?: string;
2
+ addressLine1?: string | null;
3
+ addressLine2?: string | null;
4
+ country?: IkasOrderAddressCountry | null;
5
+ state?: IkasOrderAddressState | null;
6
+ city?: IkasOrderAddressCity | null;
7
+ district?: IkasOrderAddressDistrict | null;
8
+ isDefault?: boolean | null;
9
+ company?: string | null;
10
+ firstName?: string | null;
11
+ lastName?: string | null;
12
+ phone?: string | null;
13
+ postalCode?: string | null;
14
+ identityNumber?: string | null;
15
+ taxNumber?: string | null;
16
+ taxOffice?: string | null;
17
17
  constructor(data?: Partial<IkasOrderAddress>);
18
18
  get addressText(): string;
19
19
  get validationResult(): IkasAddressValidationResult;
@@ -6,13 +6,13 @@ export declare class IkasOrderLineItem {
6
6
  updatedAt: string;
7
7
  deleted: boolean;
8
8
  currencyCode: string;
9
- discount?: IkasOrderLineDiscount;
10
- discountPrice?: number;
9
+ discount?: IkasOrderLineDiscount | null;
10
+ discountPrice?: number | null;
11
11
  finalPrice: number;
12
- originalOrderLineItemId?: string;
12
+ originalOrderLineItemId?: string | null;
13
13
  price: number;
14
14
  quantity: number;
15
- taxValue?: number;
15
+ taxValue?: number | null;
16
16
  variant: IkasOrderLineVariant;
17
17
  constructor(data: Partial<IkasOrderLineItem>);
18
18
  get tax(): number;
@@ -3,13 +3,13 @@ export declare class IkasOrderLineVariant {
3
3
  id: string;
4
4
  name: string;
5
5
  productId: string;
6
- sku?: string;
7
- slug?: string;
6
+ sku?: string | null;
7
+ slug?: string | null;
8
8
  barcodeList: string[];
9
- mainImageId?: string;
9
+ mainImageId?: string | null;
10
10
  taxValue: number;
11
11
  variantValues: IkasOrderLineVariantVariantValue[];
12
- mainImage?: IkasImage;
12
+ mainImage?: IkasImage | null;
13
13
  constructor(data?: Partial<IkasOrderLineVariant>);
14
14
  get href(): string;
15
15
  }
@@ -1,9 +1,9 @@
1
1
  import { IkasBrandListSortType, IkasBrandListType } from "../../../../ui/brand-list/index";
2
2
  export declare class IkasBrandListPropValue {
3
3
  brandListType: IkasBrandListType;
4
- initialSort?: IkasBrandListSortType;
5
- initialLimit?: number;
6
- brandCount?: number;
7
- brandIds?: string[];
4
+ initialSort?: IkasBrandListSortType | null;
5
+ initialLimit?: number | null;
6
+ brandCount?: number | null;
7
+ brandIds?: string[] | null;
8
8
  constructor(data: Partial<IkasBrandListPropValue>);
9
9
  }
@@ -1,5 +1,5 @@
1
1
  export declare class IkasBrandPropValue {
2
- brandId?: string;
3
- usePageData?: boolean;
2
+ brandId?: string | null;
3
+ usePageData?: boolean | null;
4
4
  constructor(data: Partial<IkasBrandPropValue>);
5
5
  }
@@ -1,14 +1,14 @@
1
1
  import { IkasThemePageType } from "../../index";
2
2
  export declare class IkasLinkPropValue {
3
- id?: string;
4
- linkType?: IkasLinkType;
5
- label?: string;
6
- pageId?: string;
7
- pageType?: IkasThemePageType;
8
- itemId?: string;
9
- externalLink?: string;
10
- fileUrl?: string;
11
- pageComponentId?: string;
3
+ id?: string | null;
4
+ linkType?: IkasLinkType | null;
5
+ label?: string | null;
6
+ pageId?: string | null;
7
+ pageType?: IkasThemePageType | null;
8
+ itemId?: string | null;
9
+ externalLink?: string | null;
10
+ fileUrl?: string | null;
11
+ pageComponentId?: string | null;
12
12
  subLinks: IkasLinkPropValue[];
13
13
  constructor(data?: Partial<IkasLinkPropValue>);
14
14
  }
@@ -1,6 +1,6 @@
1
1
  export declare class IkasProductDetailPropValue {
2
- productId?: string;
3
- variantId?: string;
4
- usePageData?: boolean;
2
+ productId?: string | null;
3
+ variantId?: string | null;
4
+ usePageData?: boolean | null;
5
5
  constructor(data: Partial<IkasProductDetailPropValue>);
6
6
  }
@@ -1,11 +1,11 @@
1
1
  import { IkasProductListSortType, IkasProductListType } from "../../../../ui/index";
2
2
  export declare class IkasProductListPropValue {
3
3
  productListType: IkasProductListType;
4
- initialSort?: IkasProductListSortType;
5
- initialLimit?: number;
6
- productCount?: number;
7
- productIds?: IkasProductVariantId[];
8
- usePageFilter?: boolean;
4
+ initialSort?: IkasProductListSortType | null;
5
+ initialLimit?: number | null;
6
+ productCount?: number | null;
7
+ productIds?: IkasProductVariantId[] | null;
8
+ usePageFilter?: boolean | null;
9
9
  constructor(data: Partial<IkasProductListPropValue>);
10
10
  }
11
11
  declare type IkasProductVariantId = {
@@ -2,6 +2,6 @@ export declare class IkasNavigationLink {
2
2
  href: string;
3
3
  label: string;
4
4
  subLinks: IkasNavigationLink[];
5
- isExternal?: boolean;
5
+ isExternal?: boolean | null;
6
6
  constructor(href: string, label: string, subLinks: IkasNavigationLink[], isExternal?: boolean);
7
7
  }
@@ -1,6 +1,6 @@
1
1
  export declare class IkasProductListFilter {
2
- category?: string;
3
- brand?: string;
2
+ category?: string | null;
3
+ brand?: string | null;
4
4
  categories: string[];
5
5
  brands: string[];
6
6
  variantValues: VariantValueFilter[];
@@ -1,9 +1,9 @@
1
1
  import { IkasCustomer, IkasOrderTransaction } from "../models/index";
2
2
  import { IkasBaseStore } from "./base";
3
3
  export declare class IkasCustomerStore {
4
- customer?: IkasCustomer;
5
- token?: string;
6
- tokenExpiry?: number;
4
+ customer?: IkasCustomer | null;
5
+ token?: string | null;
6
+ tokenExpiry?: number | null;
7
7
  private baseStore?;
8
8
  private _initialized;
9
9
  constructor(baseStore?: IkasBaseStore);
@@ -5,5 +5,6 @@ export declare class IkasStorefrontConfig {
5
5
  static components: any;
6
6
  static config: Record<string, any>;
7
7
  static localTheme: IkasTheme;
8
- static init(store: IkasBaseStore, components: any, config: Record<string, any>, localTheme: IkasTheme): void;
8
+ static apiUrlOverride: string | null;
9
+ static init(store: IkasBaseStore, components: any, config: Record<string, any>, localTheme: IkasTheme, apiUrlOverride?: string): void;
9
10
  }
@@ -2,10 +2,10 @@ import { NextRouter } from "next/router";
2
2
  import { IkasTheme, IkasThemePageType, IkasThemePageComponent, IkasThemeComponentProp, IkasThemeComponent, IkasThemePage } from "../../models/index";
3
3
  export declare class IkasPageDataProvider {
4
4
  theme: IkasTheme;
5
- pageType?: IkasThemePageType;
5
+ pageType?: IkasThemePageType | null;
6
6
  pageParams: Record<string, any>;
7
7
  pageComponentPropValues: IkasPageComponentPropValue[];
8
- pageSpecificData?: any;
8
+ pageSpecificData?: any | null;
9
9
  constructor(theme: IkasTheme, pageParams?: Record<string, any>, pageType?: IkasThemePageType);
10
10
  get page(): IkasThemePage | undefined;
11
11
  get nextPageData(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",