commerce-kit 0.25.0 → 0.27.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.
- package/dist/api-types.d.ts +22 -7
- package/package.json +1 -1
package/dist/api-types.d.ts
CHANGED
|
@@ -2989,7 +2989,9 @@ type APIProductGetByIdResult = ({
|
|
|
2989
2989
|
entityId: string;
|
|
2990
2990
|
}[];
|
|
2991
2991
|
});
|
|
2992
|
-
type APIProductGetByIdParams =
|
|
2992
|
+
type APIProductGetByIdParams = {
|
|
2993
|
+
idOrSlug: string;
|
|
2994
|
+
};
|
|
2993
2995
|
type APIProductGetByIdQueryParams = {
|
|
2994
2996
|
lang?: string;
|
|
2995
2997
|
};
|
|
@@ -3407,6 +3409,7 @@ type APICartCreateBody = {
|
|
|
3407
3409
|
quantity: number;
|
|
3408
3410
|
cartId?: string | undefined;
|
|
3409
3411
|
subscriptionPlanId?: string | null | undefined;
|
|
3412
|
+
currency?: string | undefined;
|
|
3410
3413
|
};
|
|
3411
3414
|
type APICartCreateResult = {
|
|
3412
3415
|
lineItems: {
|
|
@@ -5949,7 +5952,9 @@ type APIOrderGetByIdResult = {
|
|
|
5949
5952
|
}[] | null;
|
|
5950
5953
|
};
|
|
5951
5954
|
};
|
|
5952
|
-
type APIOrderGetByIdParams =
|
|
5955
|
+
type APIOrderGetByIdParams = {
|
|
5956
|
+
id: string;
|
|
5957
|
+
};
|
|
5953
5958
|
type APICategoriesBrowseResult = Omit<{
|
|
5954
5959
|
data: {
|
|
5955
5960
|
id: string;
|
|
@@ -6242,7 +6247,9 @@ type APICategoryGetByIdResult = ({
|
|
|
6242
6247
|
entityId: string;
|
|
6243
6248
|
}[];
|
|
6244
6249
|
};
|
|
6245
|
-
type APICategoryGetByIdParams =
|
|
6250
|
+
type APICategoryGetByIdParams = {
|
|
6251
|
+
idOrSlug: string;
|
|
6252
|
+
};
|
|
6246
6253
|
type APICategoryGetByIdQueryParams = {
|
|
6247
6254
|
lang?: string;
|
|
6248
6255
|
};
|
|
@@ -6422,7 +6429,9 @@ type APICollectionGetByIdResult = ({
|
|
|
6422
6429
|
entityId: string;
|
|
6423
6430
|
}[];
|
|
6424
6431
|
};
|
|
6425
|
-
type APICollectionGetByIdParams =
|
|
6432
|
+
type APICollectionGetByIdParams = {
|
|
6433
|
+
idOrSlug: string;
|
|
6434
|
+
};
|
|
6426
6435
|
type APICollectionGetByIdQueryParams = {
|
|
6427
6436
|
lang?: string;
|
|
6428
6437
|
};
|
|
@@ -6745,7 +6754,9 @@ type APIPostGetByIdResult = {
|
|
|
6745
6754
|
filters: unknown;
|
|
6746
6755
|
publishedAt: string | null;
|
|
6747
6756
|
} | null | undefined;
|
|
6748
|
-
type APIPostGetByIdParams =
|
|
6757
|
+
type APIPostGetByIdParams = {
|
|
6758
|
+
idOrSlug: string;
|
|
6759
|
+
};
|
|
6749
6760
|
type APIPostCreateBody = {
|
|
6750
6761
|
title: string;
|
|
6751
6762
|
slug: string;
|
|
@@ -6855,7 +6866,9 @@ type APICustomerGetByIdResult = {
|
|
|
6855
6866
|
}>;
|
|
6856
6867
|
createdAt: string;
|
|
6857
6868
|
};
|
|
6858
|
-
type APICustomerGetByIdParams =
|
|
6869
|
+
type APICustomerGetByIdParams = {
|
|
6870
|
+
id: string;
|
|
6871
|
+
};
|
|
6859
6872
|
type APICustomerUpdateBody = {
|
|
6860
6873
|
name?: string;
|
|
6861
6874
|
phone?: string;
|
|
@@ -6952,7 +6965,9 @@ type APIVariantGetByIdResult = {
|
|
|
6952
6965
|
images: string[];
|
|
6953
6966
|
};
|
|
6954
6967
|
};
|
|
6955
|
-
type APIVariantGetByIdParams =
|
|
6968
|
+
type APIVariantGetByIdParams = {
|
|
6969
|
+
idOrSku: string;
|
|
6970
|
+
};
|
|
6956
6971
|
type APIVariantUpdateBody = {
|
|
6957
6972
|
sku?: string;
|
|
6958
6973
|
title?: string;
|