commerce-kit 0.53.0 → 0.54.0

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.
Files changed (2) hide show
  1. package/dist/api-types.d.ts +139 -103
  2. package/package.json +1 -1
@@ -4672,6 +4672,14 @@ type APIOrdersBrowseResult = {
4672
4672
  id: number;
4673
4673
  name: string;
4674
4674
  service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
4675
+ } | {
4676
+ carrier: "inpost";
4677
+ name: string;
4678
+ service: "inpost";
4679
+ } | {
4680
+ carrier: "gls";
4681
+ name: string;
4682
+ service: "gls";
4675
4683
  } | null;
4676
4684
  deliverySlots: unknown;
4677
4685
  shippingTaxRate: {
@@ -4707,7 +4715,6 @@ type APIOrdersBrowseResult = {
4707
4715
  barcode: string | null;
4708
4716
  description: string | null;
4709
4717
  price: string;
4710
- originalPrice: string;
4711
4718
  calculatedPrice: string | null;
4712
4719
  prePromotionPrice: string | null;
4713
4720
  preVolumePricingPrice: string | null;
@@ -4763,6 +4770,14 @@ type APIOrdersBrowseResult = {
4763
4770
  guestLabel?: string | null | undefined;
4764
4771
  guest?: string | null | undefined;
4765
4772
  } | null | undefined;
4773
+ gpsr?: {
4774
+ safetyInformation?: {
4775
+ type: "NO_SAFETY_INFORMATION";
4776
+ } | {
4777
+ type: "TEXT";
4778
+ description: string;
4779
+ } | null | undefined;
4780
+ } | null | undefined;
4766
4781
  } | null;
4767
4782
  type: "set" | "product" | "bundle";
4768
4783
  bundleDiscountPercentage: string | null;
@@ -4821,7 +4836,6 @@ type APIOrdersBrowseResult = {
4821
4836
  description: string | null;
4822
4837
  price: string;
4823
4838
  shippable: boolean;
4824
- originalPrice: string;
4825
4839
  calculatedPrice: string | null;
4826
4840
  stock: number | null;
4827
4841
  depth: number | null;
@@ -4852,6 +4866,9 @@ type APIOrdersBrowseResult = {
4852
4866
  value: string;
4853
4867
  }[] | null;
4854
4868
  storeId: string;
4869
+ originalPrice?: string | null | undefined;
4870
+ } & {
4871
+ originalPrice: string;
4855
4872
  };
4856
4873
  }[];
4857
4874
  setProduct: {
@@ -4894,6 +4911,9 @@ type APIOrdersBrowseResult = {
4894
4911
  value: string;
4895
4912
  }[] | null;
4896
4913
  storeId: string;
4914
+ originalPrice?: string | null | undefined;
4915
+ } & {
4916
+ originalPrice: string;
4897
4917
  };
4898
4918
  productVariantId: string;
4899
4919
  preVolumePricingPrice: string | null;
@@ -5049,6 +5069,13 @@ type APIOrdersBrowseResult = {
5049
5069
  externalReference?: string | undefined;
5050
5070
  idempotencyKey?: string | undefined;
5051
5071
  } | null;
5072
+ inventory: {
5073
+ committedAt: string;
5074
+ lines: {
5075
+ variantId: string;
5076
+ quantity: number;
5077
+ }[];
5078
+ } | null;
5052
5079
  freeShippingThreshold: number | null;
5053
5080
  totalNet: number | null;
5054
5081
  subtotalNet: number | null;
@@ -5125,6 +5152,14 @@ type APIOrdersBrowseResult = {
5125
5152
  id: number;
5126
5153
  name: string;
5127
5154
  service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
5155
+ } | {
5156
+ carrier: "inpost";
5157
+ name: string;
5158
+ service: "inpost";
5159
+ } | {
5160
+ carrier: "gls";
5161
+ name: string;
5162
+ service: "gls";
5128
5163
  } | null;
5129
5164
  deliverySlots: unknown;
5130
5165
  shippingTaxRate: {
@@ -5160,7 +5195,6 @@ type APIOrdersBrowseResult = {
5160
5195
  barcode: string | null;
5161
5196
  description: string | null;
5162
5197
  price: string;
5163
- originalPrice: string;
5164
5198
  calculatedPrice: string | null;
5165
5199
  prePromotionPrice: string | null;
5166
5200
  preVolumePricingPrice: string | null;
@@ -5216,6 +5250,14 @@ type APIOrdersBrowseResult = {
5216
5250
  guestLabel?: string | null | undefined;
5217
5251
  guest?: string | null | undefined;
5218
5252
  } | null | undefined;
5253
+ gpsr?: {
5254
+ safetyInformation?: {
5255
+ type: "NO_SAFETY_INFORMATION";
5256
+ } | {
5257
+ type: "TEXT";
5258
+ description: string;
5259
+ } | null | undefined;
5260
+ } | null | undefined;
5219
5261
  } | null;
5220
5262
  type: "set" | "product" | "bundle";
5221
5263
  bundleDiscountPercentage: string | null;
@@ -5274,7 +5316,6 @@ type APIOrdersBrowseResult = {
5274
5316
  description: string | null;
5275
5317
  price: string;
5276
5318
  shippable: boolean;
5277
- originalPrice: string;
5278
5319
  calculatedPrice: string | null;
5279
5320
  stock: number | null;
5280
5321
  depth: number | null;
@@ -5305,6 +5346,9 @@ type APIOrdersBrowseResult = {
5305
5346
  value: string;
5306
5347
  }[] | null;
5307
5348
  storeId: string;
5349
+ originalPrice?: string | null | undefined;
5350
+ } & {
5351
+ originalPrice: string;
5308
5352
  };
5309
5353
  }[];
5310
5354
  setProduct: {
@@ -5347,6 +5391,9 @@ type APIOrdersBrowseResult = {
5347
5391
  value: string;
5348
5392
  }[] | null;
5349
5393
  storeId: string;
5394
+ originalPrice?: string | null | undefined;
5395
+ } & {
5396
+ originalPrice: string;
5350
5397
  };
5351
5398
  productVariantId: string;
5352
5399
  preVolumePricingPrice: string | null;
@@ -5502,6 +5549,13 @@ type APIOrdersBrowseResult = {
5502
5549
  externalReference?: string | undefined;
5503
5550
  idempotencyKey?: string | undefined;
5504
5551
  } | null;
5552
+ inventory: {
5553
+ committedAt: string;
5554
+ lines: {
5555
+ variantId: string;
5556
+ quantity: number;
5557
+ }[];
5558
+ } | null;
5505
5559
  freeShippingThreshold: number | null;
5506
5560
  totalNet: number | null;
5507
5561
  subtotalNet: number | null;
@@ -5589,6 +5643,14 @@ type APIOrderGetByIdResult = {
5589
5643
  id: number;
5590
5644
  name: string;
5591
5645
  service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
5646
+ } | {
5647
+ carrier: "inpost";
5648
+ name: string;
5649
+ service: "inpost";
5650
+ } | {
5651
+ carrier: "gls";
5652
+ name: string;
5653
+ service: "gls";
5592
5654
  } | null;
5593
5655
  deliverySlots: unknown;
5594
5656
  shippingTaxRate: {
@@ -5624,7 +5686,6 @@ type APIOrderGetByIdResult = {
5624
5686
  barcode: string | null;
5625
5687
  description: string | null;
5626
5688
  price: string;
5627
- originalPrice: string;
5628
5689
  calculatedPrice: string | null;
5629
5690
  prePromotionPrice: string | null;
5630
5691
  preVolumePricingPrice: string | null;
@@ -5680,6 +5741,14 @@ type APIOrderGetByIdResult = {
5680
5741
  guestLabel?: string | null | undefined;
5681
5742
  guest?: string | null | undefined;
5682
5743
  } | null | undefined;
5744
+ gpsr?: {
5745
+ safetyInformation?: {
5746
+ type: "NO_SAFETY_INFORMATION";
5747
+ } | {
5748
+ type: "TEXT";
5749
+ description: string;
5750
+ } | null | undefined;
5751
+ } | null | undefined;
5683
5752
  } | null;
5684
5753
  type: "set" | "product" | "bundle";
5685
5754
  bundleDiscountPercentage: string | null;
@@ -5738,7 +5807,6 @@ type APIOrderGetByIdResult = {
5738
5807
  description: string | null;
5739
5808
  price: string;
5740
5809
  shippable: boolean;
5741
- originalPrice: string;
5742
5810
  calculatedPrice: string | null;
5743
5811
  stock: number | null;
5744
5812
  depth: number | null;
@@ -5769,6 +5837,9 @@ type APIOrderGetByIdResult = {
5769
5837
  value: string;
5770
5838
  }[] | null;
5771
5839
  storeId: string;
5840
+ originalPrice?: string | null | undefined;
5841
+ } & {
5842
+ originalPrice: string;
5772
5843
  };
5773
5844
  }[];
5774
5845
  setProduct: {
@@ -5811,6 +5882,9 @@ type APIOrderGetByIdResult = {
5811
5882
  value: string;
5812
5883
  }[] | null;
5813
5884
  storeId: string;
5885
+ originalPrice?: string | null | undefined;
5886
+ } & {
5887
+ originalPrice: string;
5814
5888
  };
5815
5889
  productVariantId: string;
5816
5890
  preVolumePricingPrice: string | null;
@@ -5966,6 +6040,13 @@ type APIOrderGetByIdResult = {
5966
6040
  externalReference?: string | undefined;
5967
6041
  idempotencyKey?: string | undefined;
5968
6042
  } | null;
6043
+ inventory: {
6044
+ committedAt: string;
6045
+ lines: {
6046
+ variantId: string;
6047
+ quantity: number;
6048
+ }[];
6049
+ } | null;
5969
6050
  freeShippingThreshold: number | null;
5970
6051
  totalNet: number | null;
5971
6052
  subtotalNet: number | null;
@@ -6075,6 +6156,14 @@ type APIOrderGetByIdResult = {
6075
6156
  id: number;
6076
6157
  name: string;
6077
6158
  service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
6159
+ } | {
6160
+ carrier: "inpost";
6161
+ name: string;
6162
+ service: "inpost";
6163
+ } | {
6164
+ carrier: "gls";
6165
+ name: string;
6166
+ service: "gls";
6078
6167
  } | null;
6079
6168
  deliverySlots: unknown;
6080
6169
  shippingTaxRate: {
@@ -6110,7 +6199,6 @@ type APIOrderGetByIdResult = {
6110
6199
  barcode: string | null;
6111
6200
  description: string | null;
6112
6201
  price: string;
6113
- originalPrice: string;
6114
6202
  calculatedPrice: string | null;
6115
6203
  prePromotionPrice: string | null;
6116
6204
  preVolumePricingPrice: string | null;
@@ -6166,6 +6254,14 @@ type APIOrderGetByIdResult = {
6166
6254
  guestLabel?: string | null | undefined;
6167
6255
  guest?: string | null | undefined;
6168
6256
  } | null | undefined;
6257
+ gpsr?: {
6258
+ safetyInformation?: {
6259
+ type: "NO_SAFETY_INFORMATION";
6260
+ } | {
6261
+ type: "TEXT";
6262
+ description: string;
6263
+ } | null | undefined;
6264
+ } | null | undefined;
6169
6265
  } | null;
6170
6266
  type: "set" | "product" | "bundle";
6171
6267
  bundleDiscountPercentage: string | null;
@@ -6224,7 +6320,6 @@ type APIOrderGetByIdResult = {
6224
6320
  description: string | null;
6225
6321
  price: string;
6226
6322
  shippable: boolean;
6227
- originalPrice: string;
6228
6323
  calculatedPrice: string | null;
6229
6324
  stock: number | null;
6230
6325
  depth: number | null;
@@ -6255,6 +6350,9 @@ type APIOrderGetByIdResult = {
6255
6350
  value: string;
6256
6351
  }[] | null;
6257
6352
  storeId: string;
6353
+ originalPrice?: string | null | undefined;
6354
+ } & {
6355
+ originalPrice: string;
6258
6356
  };
6259
6357
  }[];
6260
6358
  setProduct: {
@@ -6297,6 +6395,9 @@ type APIOrderGetByIdResult = {
6297
6395
  value: string;
6298
6396
  }[] | null;
6299
6397
  storeId: string;
6398
+ originalPrice?: string | null | undefined;
6399
+ } & {
6400
+ originalPrice: string;
6300
6401
  };
6301
6402
  productVariantId: string;
6302
6403
  preVolumePricingPrice: string | null;
@@ -6452,6 +6553,13 @@ type APIOrderGetByIdResult = {
6452
6553
  externalReference?: string | undefined;
6453
6554
  idempotencyKey?: string | undefined;
6454
6555
  } | null;
6556
+ inventory: {
6557
+ committedAt: string;
6558
+ lines: {
6559
+ variantId: string;
6560
+ quantity: number;
6561
+ }[];
6562
+ } | null;
6455
6563
  freeShippingThreshold: number | null;
6456
6564
  totalNet: number | null;
6457
6565
  subtotalNet: number | null;
@@ -6561,29 +6669,10 @@ type APICategoryGetByIdResult = ({
6561
6669
  products: {
6562
6670
  id: string;
6563
6671
  name: string;
6564
- createdAt: string;
6565
- updatedAt: string;
6566
- type: "set" | "product" | "bundle";
6567
6672
  slug: string;
6568
6673
  status: "published" | "draft" | "hidden" | null;
6569
- flags: unknown;
6570
- storeId: string;
6571
6674
  summary: string | null;
6572
- content: JSONContent | null;
6573
6675
  images: string[];
6574
- badge: unknown;
6575
- bundleDiscountPercentage: string | null;
6576
- bundlePriceMode: "fixed" | "percent" | "amount";
6577
- bundleFixedPriceAmount: string | null;
6578
- bundleAmountOffAmount: string | null;
6579
- seo: {
6580
- title?: string | null | undefined;
6581
- description?: string | null | undefined;
6582
- canonical?: string | null | undefined;
6583
- } | null;
6584
- stripeTaxCode: string | null;
6585
- categoryId: string | null;
6586
- brandId: string | null;
6587
6676
  }[];
6588
6677
  parent: {
6589
6678
  id: string;
@@ -6606,29 +6695,10 @@ type APICategoryGetByIdResult = ({
6606
6695
  products: {
6607
6696
  id: string;
6608
6697
  name: string;
6609
- createdAt: string;
6610
- updatedAt: string;
6611
- type: "set" | "product" | "bundle";
6612
6698
  slug: string;
6613
6699
  status: "published" | "draft" | "hidden" | null;
6614
- flags: unknown;
6615
- storeId: string;
6616
6700
  summary: string | null;
6617
- content: JSONContent | null;
6618
6701
  images: string[];
6619
- badge: unknown;
6620
- bundleDiscountPercentage: string | null;
6621
- bundlePriceMode: "fixed" | "percent" | "amount";
6622
- bundleFixedPriceAmount: string | null;
6623
- bundleAmountOffAmount: string | null;
6624
- seo: {
6625
- title?: string | null | undefined;
6626
- description?: string | null | undefined;
6627
- canonical?: string | null | undefined;
6628
- } | null;
6629
- stripeTaxCode: string | null;
6630
- categoryId: string | null;
6631
- brandId: string | null;
6632
6702
  }[];
6633
6703
  parent: {
6634
6704
  id: string;
@@ -6651,29 +6721,10 @@ type APICategoryGetByIdResult = ({
6651
6721
  products: {
6652
6722
  id: string;
6653
6723
  name: string;
6654
- createdAt: string;
6655
- updatedAt: string;
6656
- type: "set" | "product" | "bundle";
6657
6724
  slug: string;
6658
6725
  status: "published" | "draft" | "hidden" | null;
6659
- flags: unknown;
6660
- storeId: string;
6661
6726
  summary: string | null;
6662
- content: JSONContent | null;
6663
6727
  images: string[];
6664
- badge: unknown;
6665
- bundleDiscountPercentage: string | null;
6666
- bundlePriceMode: "fixed" | "percent" | "amount";
6667
- bundleFixedPriceAmount: string | null;
6668
- bundleAmountOffAmount: string | null;
6669
- seo: {
6670
- title?: string | null | undefined;
6671
- description?: string | null | undefined;
6672
- canonical?: string | null | undefined;
6673
- } | null;
6674
- stripeTaxCode: string | null;
6675
- categoryId: string | null;
6676
- brandId: string | null;
6677
6728
  }[];
6678
6729
  } | null;
6679
6730
  } | null;
@@ -6698,29 +6749,10 @@ type APICategoryGetByIdResult = ({
6698
6749
  products: {
6699
6750
  id: string;
6700
6751
  name: string;
6701
- createdAt: string;
6702
- updatedAt: string;
6703
- type: "set" | "product" | "bundle";
6704
6752
  slug: string;
6705
6753
  status: "published" | "draft" | "hidden" | null;
6706
- flags: unknown;
6707
- storeId: string;
6708
6754
  summary: string | null;
6709
- content: JSONContent | null;
6710
6755
  images: string[];
6711
- badge: unknown;
6712
- bundleDiscountPercentage: string | null;
6713
- bundlePriceMode: "fixed" | "percent" | "amount";
6714
- bundleFixedPriceAmount: string | null;
6715
- bundleAmountOffAmount: string | null;
6716
- seo: {
6717
- title?: string | null | undefined;
6718
- description?: string | null | undefined;
6719
- canonical?: string | null | undefined;
6720
- } | null;
6721
- stripeTaxCode: string | null;
6722
- categoryId: string | null;
6723
- brandId: string | null;
6724
6756
  }[];
6725
6757
  children: {
6726
6758
  id: string;
@@ -6743,29 +6775,10 @@ type APICategoryGetByIdResult = ({
6743
6775
  products: {
6744
6776
  id: string;
6745
6777
  name: string;
6746
- createdAt: string;
6747
- updatedAt: string;
6748
- type: "set" | "product" | "bundle";
6749
6778
  slug: string;
6750
6779
  status: "published" | "draft" | "hidden" | null;
6751
- flags: unknown;
6752
- storeId: string;
6753
6780
  summary: string | null;
6754
- content: JSONContent | null;
6755
6781
  images: string[];
6756
- badge: unknown;
6757
- bundleDiscountPercentage: string | null;
6758
- bundlePriceMode: "fixed" | "percent" | "amount";
6759
- bundleFixedPriceAmount: string | null;
6760
- bundleAmountOffAmount: string | null;
6761
- seo: {
6762
- title?: string | null | undefined;
6763
- description?: string | null | undefined;
6764
- canonical?: string | null | undefined;
6765
- } | null;
6766
- stripeTaxCode: string | null;
6767
- categoryId: string | null;
6768
- brandId: string | null;
6769
6782
  }[];
6770
6783
  }[];
6771
6784
  }[];
@@ -7072,6 +7085,7 @@ type APIMeGetResult = {
7072
7085
  } | null | undefined;
7073
7086
  outboundEmail?: string | null | undefined;
7074
7087
  notificationEmail?: string | null | undefined;
7088
+ contactRoutingEmails?: Record<string, string> | null | undefined;
7075
7089
  notifications?: {
7076
7090
  newOrderNotifications: boolean | null;
7077
7091
  lowStockNotifications: boolean | null;
@@ -7090,6 +7104,21 @@ type APIMeGetResult = {
7090
7104
  } | null | undefined;
7091
7105
  } | null | undefined;
7092
7106
  cartIcon?: "shopping-bag" | "shopping-cart" | "shopping-basket" | null | undefined;
7107
+ checkoutAppearance?: {
7108
+ summaryPosition?: "left" | "right" | null | undefined;
7109
+ summaryBackground?: "custom" | "tint" | "plain" | null | undefined;
7110
+ summaryBackgroundColor?: string | null | undefined;
7111
+ cornerRadius?: "small" | "none" | "medium" | "large" | null | undefined;
7112
+ payButtonLabel?: "pay" | "completeOrder" | "placeOrder" | null | undefined;
7113
+ showHeader?: boolean | null | undefined;
7114
+ showPolicyLinks?: boolean | null | undefined;
7115
+ hideExpressWallets?: boolean | null | undefined;
7116
+ fontFamily?: "default" | "roboto" | "poppins" | "inter" | "merriweather" | "montserrat" | "nunito" | "inconsolata" | "ibmPlexSans" | "cardo" | "spaceMono" | "buenard" | "titanOne" | "bartok" | "robotoSlab" | "playwritePl" | "jetBrainsMono" | null | undefined;
7117
+ colors?: {
7118
+ buttonBackground?: string | null | undefined;
7119
+ buttonText?: string | null | undefined;
7120
+ } | null | undefined;
7121
+ } | null | undefined;
7093
7122
  productCards?: {
7094
7123
  borderRadius?: "none" | "sm" | "md" | "lg" | "xl" | null | undefined;
7095
7124
  } | null | undefined;
@@ -7114,6 +7143,7 @@ type APIMeGetResult = {
7114
7143
  apiKeyDisplay: string;
7115
7144
  createdAt: string;
7116
7145
  name?: string | undefined;
7146
+ system?: boolean | undefined;
7117
7147
  }[] | null | undefined;
7118
7148
  loyalty?: {
7119
7149
  pointsPerUnit: number;
@@ -7263,6 +7293,9 @@ type APIMeGetResult = {
7263
7293
  url: string;
7264
7294
  createdAt: string;
7265
7295
  } | null | undefined;
7296
+ autoPublish?: boolean | undefined;
7297
+ ynsApiKeyId?: string | undefined;
7298
+ ynsApiKeyEncrypted?: string | undefined;
7266
7299
  } | null;
7267
7300
  brandKit: {
7268
7301
  kit?: {
@@ -7796,6 +7829,7 @@ type APIVariantCreateResult = {
7796
7829
  type APISubscriberCreateBody = {
7797
7830
  email: string;
7798
7831
  name?: string;
7832
+ placement?: string;
7799
7833
  };
7800
7834
  type APISubscriberCreateResult = {
7801
7835
  id: string;
@@ -7806,6 +7840,7 @@ type APISubscriberCreateResult = {
7806
7840
  storeId: string;
7807
7841
  location: string | null;
7808
7842
  source: string;
7843
+ placement: string | null;
7809
7844
  unsubscribed: boolean;
7810
7845
  unsubscribedAt: string | null;
7811
7846
  unsubscribeToken: string | null;
@@ -7824,6 +7859,7 @@ type APIContactMessageCreateResult = {
7824
7859
  updatedAt: string;
7825
7860
  message: string;
7826
7861
  storeId: string;
7862
+ routingKey: string | null;
7827
7863
  readAt: string | null;
7828
7864
  } | undefined;
7829
7865
  type APIProductCreateBody = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "commerce-kit",
4
- "version": "0.53.0",
4
+ "version": "0.54.0",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
7
7
  "keywords": [