commerce-kit 0.32.0 → 0.33.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.
@@ -11,6 +11,7 @@ type APIProductsBrowseResult = Omit<{
11
11
  flags: unknown;
12
12
  storeId: string;
13
13
  summary: string | null;
14
+ content: JSONContent | null;
14
15
  images: string[];
15
16
  badge: unknown;
16
17
  bundleDiscountPercentage: string | null;
@@ -253,6 +254,7 @@ type APIProductsBrowseResult = Omit<{
253
254
  flags: unknown;
254
255
  storeId: string;
255
256
  summary: string | null;
257
+ content: JSONContent | null;
256
258
  images: string[];
257
259
  badge: unknown;
258
260
  bundleDiscountPercentage: string | null;
@@ -495,6 +497,7 @@ type APIProductsBrowseResult = Omit<{
495
497
  flags: unknown;
496
498
  storeId: string;
497
499
  summary: string | null;
500
+ content: JSONContent | null;
498
501
  images: string[];
499
502
  badge: unknown;
500
503
  bundleDiscountPercentage: string | null;
@@ -737,6 +740,7 @@ type APIProductsBrowseResult = Omit<{
737
740
  flags: unknown;
738
741
  storeId: string;
739
742
  summary: string | null;
743
+ content: JSONContent | null;
740
744
  images: string[];
741
745
  badge: unknown;
742
746
  bundleDiscountPercentage: string | null;
@@ -980,6 +984,7 @@ type APIProductsBrowseResult = Omit<{
980
984
  flags: unknown;
981
985
  storeId: string;
982
986
  summary: string | null;
987
+ content: JSONContent | null;
983
988
  images: string[];
984
989
  badge: unknown;
985
990
  bundleDiscountPercentage: string | null;
@@ -1232,6 +1237,7 @@ type APIProductsBrowseResult = Omit<{
1232
1237
  flags: unknown;
1233
1238
  storeId: string;
1234
1239
  summary: string | null;
1240
+ content: JSONContent | null;
1235
1241
  images: string[];
1236
1242
  badge: unknown;
1237
1243
  bundleDiscountPercentage: string | null;
@@ -1474,6 +1480,7 @@ type APIProductsBrowseResult = Omit<{
1474
1480
  flags: unknown;
1475
1481
  storeId: string;
1476
1482
  summary: string | null;
1483
+ content: JSONContent | null;
1477
1484
  images: string[];
1478
1485
  badge: unknown;
1479
1486
  bundleDiscountPercentage: string | null;
@@ -1716,6 +1723,7 @@ type APIProductsBrowseResult = Omit<{
1716
1723
  flags: unknown;
1717
1724
  storeId: string;
1718
1725
  summary: string | null;
1726
+ content: JSONContent | null;
1719
1727
  images: string[];
1720
1728
  badge: unknown;
1721
1729
  bundleDiscountPercentage: string | null;
@@ -1958,6 +1966,7 @@ type APIProductsBrowseResult = Omit<{
1958
1966
  flags: unknown;
1959
1967
  storeId: string;
1960
1968
  summary: string | null;
1969
+ content: JSONContent | null;
1961
1970
  images: string[];
1962
1971
  badge: unknown;
1963
1972
  bundleDiscountPercentage: string | null;
@@ -2201,6 +2210,7 @@ type APIProductsBrowseResult = Omit<{
2201
2210
  flags: unknown;
2202
2211
  storeId: string;
2203
2212
  summary: string | null;
2213
+ content: JSONContent | null;
2204
2214
  images: string[];
2205
2215
  badge: unknown;
2206
2216
  bundleDiscountPercentage: string | null;
@@ -2468,6 +2478,7 @@ type APIProductGetByIdResult = ({
2468
2478
  flags: unknown;
2469
2479
  storeId: string;
2470
2480
  summary: string | null;
2481
+ content: JSONContent | null;
2471
2482
  images: string[];
2472
2483
  badge: unknown;
2473
2484
  bundleDiscountPercentage: string | null;
@@ -2733,6 +2744,7 @@ type APIProductGetByIdResult = ({
2733
2744
  flags: unknown;
2734
2745
  storeId: string;
2735
2746
  summary: string | null;
2747
+ content: JSONContent | null;
2736
2748
  images: string[];
2737
2749
  badge: unknown;
2738
2750
  bundleDiscountPercentage: string | null;
@@ -3061,6 +3073,7 @@ type APICartGetResult = {
3061
3073
  flags: unknown;
3062
3074
  storeId: string;
3063
3075
  summary: string | null;
3076
+ content: JSONContent | null;
3064
3077
  images: string[];
3065
3078
  badge: unknown;
3066
3079
  bundleDiscountPercentage: string | null;
@@ -3480,6 +3493,7 @@ type APICartCreateResult = {
3480
3493
  flags: unknown;
3481
3494
  storeId: string;
3482
3495
  summary: string | null;
3496
+ content: JSONContent | null;
3483
3497
  images: string[];
3484
3498
  badge: unknown;
3485
3499
  bundleDiscountPercentage: string | null;
@@ -3890,6 +3904,7 @@ type APICartRemoveItemResult = {
3890
3904
  flags: unknown;
3891
3905
  storeId: string;
3892
3906
  summary: string | null;
3907
+ content: JSONContent | null;
3893
3908
  images: string[];
3894
3909
  badge: unknown;
3895
3910
  bundleDiscountPercentage: string | null;
@@ -4337,6 +4352,7 @@ type APIOrdersBrowseResult = {
4337
4352
  storeId: string;
4338
4353
  categoryId: string | null;
4339
4354
  summary: string | null;
4355
+ content: any;
4340
4356
  createdAt: string;
4341
4357
  updatedAt: string;
4342
4358
  productTaxRate: {
@@ -4758,6 +4774,7 @@ type APIOrdersBrowseResult = {
4758
4774
  storeId: string;
4759
4775
  categoryId: string | null;
4760
4776
  summary: string | null;
4777
+ content: any;
4761
4778
  createdAt: string;
4762
4779
  updatedAt: string;
4763
4780
  productTaxRate: {
@@ -5194,6 +5211,7 @@ type APIOrderGetByIdResult = {
5194
5211
  storeId: string;
5195
5212
  categoryId: string | null;
5196
5213
  summary: string | null;
5214
+ content: any;
5197
5215
  createdAt: string;
5198
5216
  updatedAt: string;
5199
5217
  productTaxRate: {
@@ -5648,6 +5666,7 @@ type APIOrderGetByIdResult = {
5648
5666
  storeId: string;
5649
5667
  categoryId: string | null;
5650
5668
  summary: string | null;
5669
+ content: any;
5651
5670
  createdAt: string;
5652
5671
  updatedAt: string;
5653
5672
  productTaxRate: {
@@ -6055,6 +6074,7 @@ type APICategoryGetByIdResult = ({
6055
6074
  flags: unknown;
6056
6075
  storeId: string;
6057
6076
  summary: string | null;
6077
+ content: JSONContent | null;
6058
6078
  images: string[];
6059
6079
  badge: unknown;
6060
6080
  bundleDiscountPercentage: string | null;
@@ -6095,6 +6115,7 @@ type APICategoryGetByIdResult = ({
6095
6115
  flags: unknown;
6096
6116
  storeId: string;
6097
6117
  summary: string | null;
6118
+ content: JSONContent | null;
6098
6119
  images: string[];
6099
6120
  badge: unknown;
6100
6121
  bundleDiscountPercentage: string | null;
@@ -6135,6 +6156,7 @@ type APICategoryGetByIdResult = ({
6135
6156
  flags: unknown;
6136
6157
  storeId: string;
6137
6158
  summary: string | null;
6159
+ content: JSONContent | null;
6138
6160
  images: string[];
6139
6161
  badge: unknown;
6140
6162
  bundleDiscountPercentage: string | null;
@@ -6177,6 +6199,7 @@ type APICategoryGetByIdResult = ({
6177
6199
  flags: unknown;
6178
6200
  storeId: string;
6179
6201
  summary: string | null;
6202
+ content: JSONContent | null;
6180
6203
  images: string[];
6181
6204
  badge: unknown;
6182
6205
  bundleDiscountPercentage: string | null;
@@ -6217,6 +6240,7 @@ type APICategoryGetByIdResult = ({
6217
6240
  flags: unknown;
6218
6241
  storeId: string;
6219
6242
  summary: string | null;
6243
+ content: JSONContent | null;
6220
6244
  images: string[];
6221
6245
  badge: unknown;
6222
6246
  bundleDiscountPercentage: string | null;
@@ -6345,6 +6369,7 @@ type APICollectionGetByIdResult = ({
6345
6369
  flags: unknown;
6346
6370
  storeId: string;
6347
6371
  summary: string | null;
6372
+ content: JSONContent | null;
6348
6373
  images: string[];
6349
6374
  badge: unknown;
6350
6375
  bundleDiscountPercentage: string | null;
@@ -6395,6 +6420,7 @@ type APICollectionGetByIdResult = ({
6395
6420
  flags: unknown;
6396
6421
  storeId: string;
6397
6422
  summary: string | null;
6423
+ content: JSONContent | null;
6398
6424
  images: string[];
6399
6425
  badge: unknown;
6400
6426
  bundleDiscountPercentage: string | null;
@@ -6703,8 +6729,8 @@ type APIPostsBrowseResult = {
6703
6729
  createdAt: string;
6704
6730
  slug: string;
6705
6731
  active: boolean;
6706
- title: string;
6707
6732
  content: JSONContent;
6733
+ title: string;
6708
6734
  tag: string | null;
6709
6735
  filters: unknown;
6710
6736
  publishedAt: string | null;
@@ -6731,13 +6757,13 @@ type APIPostGetByIdResult = {
6731
6757
  slug: string;
6732
6758
  active: boolean;
6733
6759
  storeId: string;
6760
+ content: JSONContent;
6734
6761
  title: string;
6735
6762
  seo: {
6736
6763
  title?: string | null | undefined;
6737
6764
  description?: string | null | undefined;
6738
6765
  canonical?: string | null | undefined;
6739
6766
  } | null;
6740
- content: JSONContent;
6741
6767
  tag: string | null;
6742
6768
  filters: unknown;
6743
6769
  publishedAt: string | null;
@@ -6768,13 +6794,13 @@ type APIPostCreateResult = {
6768
6794
  slug: string;
6769
6795
  active: boolean;
6770
6796
  storeId: string;
6797
+ content: JSONContent;
6771
6798
  title: string;
6772
6799
  seo: {
6773
6800
  title?: string | null | undefined;
6774
6801
  description?: string | null | undefined;
6775
6802
  canonical?: string | null | undefined;
6776
6803
  } | null;
6777
- content: JSONContent;
6778
6804
  tag: string | null;
6779
6805
  filters: unknown;
6780
6806
  publishedAt: string | null;
@@ -6802,13 +6828,13 @@ type APIPostUpdateResult = {
6802
6828
  slug: string;
6803
6829
  active: boolean;
6804
6830
  storeId: string;
6831
+ content: JSONContent;
6805
6832
  title: string;
6806
6833
  seo: {
6807
6834
  title?: string | null | undefined;
6808
6835
  description?: string | null | undefined;
6809
6836
  canonical?: string | null | undefined;
6810
6837
  } | null;
6811
- content: JSONContent;
6812
6838
  tag: string | null;
6813
6839
  filters: unknown;
6814
6840
  publishedAt: string | null;
@@ -7105,6 +7131,7 @@ type APIProductCreateBody = {
7105
7131
  name: string;
7106
7132
  slug: string;
7107
7133
  description?: string;
7134
+ content?: Record<string, unknown>;
7108
7135
  price: number;
7109
7136
  images?: string[];
7110
7137
  category?: string;
@@ -7117,6 +7144,7 @@ type APIProductCreateResult = {
7117
7144
  name: string;
7118
7145
  slug: string;
7119
7146
  description?: string;
7147
+ content?: Record<string, unknown> | null;
7120
7148
  category?: string;
7121
7149
  images: string[];
7122
7150
  variant: {
@@ -7129,6 +7157,7 @@ type APIProductCreateResult = {
7129
7157
  type APIProductUpdateBody = {
7130
7158
  title?: string;
7131
7159
  description?: string;
7160
+ content?: Record<string, unknown>;
7132
7161
  status?: "active" | "draft";
7133
7162
  };
7134
7163
  type APIProductUpdateQueryParams = {
@@ -7138,6 +7167,7 @@ type APIProductUpdateResult = {
7138
7167
  id: string;
7139
7168
  title: string;
7140
7169
  description: string | null;
7170
+ content: Record<string, unknown> | null;
7141
7171
  status: "active" | "draft";
7142
7172
  };
7143
7173
  type APIProductDeleteQueryParams = {
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.32.0",
4
+ "version": "0.33.0",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
7
7
  "keywords": [