@epcc-sdk/sdks-shopper 0.0.23 → 0.0.25
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.
|
@@ -1227,14 +1227,23 @@ export declare const getAnOrderQueryKey: (options: Options<GetAnOrderData>) => (
|
|
|
1227
1227
|
})[];
|
|
1228
1228
|
export declare const getAnOrderOptions: (options: Options<GetAnOrderData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").ResponseData & {
|
|
1229
1229
|
data?: import("../types.gen").OrderResponse;
|
|
1230
|
+
included?: {
|
|
1231
|
+
items?: Array<import("../types.gen").OrderItemResponse>;
|
|
1232
|
+
};
|
|
1230
1233
|
}, Error, import("../types.gen").ResponseData & {
|
|
1231
1234
|
data?: import("../types.gen").OrderResponse;
|
|
1235
|
+
included?: {
|
|
1236
|
+
items?: Array<import("../types.gen").OrderItemResponse>;
|
|
1237
|
+
};
|
|
1232
1238
|
}, (Pick<Options<GetAnOrderData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1233
1239
|
_id: string;
|
|
1234
1240
|
_infinite?: boolean;
|
|
1235
1241
|
})[]>, "queryFn"> & {
|
|
1236
1242
|
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").ResponseData & {
|
|
1237
1243
|
data?: import("../types.gen").OrderResponse;
|
|
1244
|
+
included?: {
|
|
1245
|
+
items?: Array<import("../types.gen").OrderItemResponse>;
|
|
1246
|
+
};
|
|
1238
1247
|
}, (Pick<Options<GetAnOrderData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1239
1248
|
_id: string;
|
|
1240
1249
|
_infinite?: boolean;
|
|
@@ -1246,6 +1255,9 @@ export declare const getAnOrderOptions: (options: Options<GetAnOrderData>) => im
|
|
|
1246
1255
|
})[] & {
|
|
1247
1256
|
[dataTagSymbol]: import("../types.gen").ResponseData & {
|
|
1248
1257
|
data?: import("../types.gen").OrderResponse;
|
|
1258
|
+
included?: {
|
|
1259
|
+
items?: Array<import("../types.gen").OrderItemResponse>;
|
|
1260
|
+
};
|
|
1249
1261
|
};
|
|
1250
1262
|
[dataTagErrorSymbol]: Error;
|
|
1251
1263
|
};
|
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -2057,6 +2057,9 @@ export declare const getCustomerOrders: <ThrowOnError extends boolean = false>(o
|
|
|
2057
2057
|
*/
|
|
2058
2058
|
export declare const getAnOrder: <ThrowOnError extends boolean = false>(options: Options<GetAnOrderData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
|
|
2059
2059
|
data?: import("./types.gen").OrderResponse;
|
|
2060
|
+
included?: {
|
|
2061
|
+
items?: Array<import("./types.gen").OrderItemResponse>;
|
|
2062
|
+
};
|
|
2060
2063
|
}, import("./types.gen").ResponseError, ThrowOnError>;
|
|
2061
2064
|
/**
|
|
2062
2065
|
* Update an Order
|
|
@@ -1870,7 +1870,36 @@ export type CustomItemResponseObject = CustomItemObjectData & {
|
|
|
1870
1870
|
* Specifies the ID of the custom cart item
|
|
1871
1871
|
*/
|
|
1872
1872
|
id: string;
|
|
1873
|
-
|
|
1873
|
+
readonly image?: {
|
|
1874
|
+
/**
|
|
1875
|
+
* The MIME type for the uploaded file.
|
|
1876
|
+
*/
|
|
1877
|
+
readonly mime_type?: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* The name of the image file that was uploaded.
|
|
1880
|
+
*/
|
|
1881
|
+
readonly file_name?: string;
|
|
1882
|
+
/**
|
|
1883
|
+
* The link to the image.
|
|
1884
|
+
*/
|
|
1885
|
+
readonly href?: string;
|
|
1886
|
+
};
|
|
1887
|
+
readonly manage_stock?: boolean;
|
|
1888
|
+
unit_price?: ItemPriceData;
|
|
1889
|
+
value?: ItemPriceData;
|
|
1890
|
+
readonly links?: {
|
|
1891
|
+
[key: string]: unknown;
|
|
1892
|
+
};
|
|
1893
|
+
readonly meta?: {
|
|
1894
|
+
display_price?: {
|
|
1895
|
+
with_tax?: FormattedPriceData;
|
|
1896
|
+
without_tax?: FormattedPriceData;
|
|
1897
|
+
tax?: FormattedPriceData;
|
|
1898
|
+
discount?: FormattedPriceData;
|
|
1899
|
+
without_discount?: FormattedPriceData;
|
|
1900
|
+
};
|
|
1901
|
+
timestamps?: CartCheckoutTimestamps;
|
|
1902
|
+
};
|
|
1874
1903
|
};
|
|
1875
1904
|
export type PromotionItemResponseObject = PromotionItemObjectData & {
|
|
1876
1905
|
/**
|
|
@@ -2959,6 +2988,16 @@ export type OrderResponse = {
|
|
|
2959
2988
|
meta?: OrderMeta;
|
|
2960
2989
|
billing_address?: BillingAddress;
|
|
2961
2990
|
contact?: Contact;
|
|
2991
|
+
customer?: {
|
|
2992
|
+
/**
|
|
2993
|
+
* The name of the customer.
|
|
2994
|
+
*/
|
|
2995
|
+
name?: string;
|
|
2996
|
+
/**
|
|
2997
|
+
* The email address of the customer.
|
|
2998
|
+
*/
|
|
2999
|
+
email?: string;
|
|
3000
|
+
};
|
|
2962
3001
|
shipping_address?: ShippingAddress;
|
|
2963
3002
|
relationships?: {
|
|
2964
3003
|
items?: RelationshipArray;
|
|
@@ -8611,7 +8650,20 @@ export type GetAnOrderData = {
|
|
|
8611
8650
|
*/
|
|
8612
8651
|
orderID: string;
|
|
8613
8652
|
};
|
|
8614
|
-
query?:
|
|
8653
|
+
query?: {
|
|
8654
|
+
/**
|
|
8655
|
+
* The number of records to offset the results by.
|
|
8656
|
+
*/
|
|
8657
|
+
"page[offset]"?: BigInt;
|
|
8658
|
+
/**
|
|
8659
|
+
* The number of records per page. The maximum limit is 100.
|
|
8660
|
+
*/
|
|
8661
|
+
"page[limit]"?: BigInt;
|
|
8662
|
+
/**
|
|
8663
|
+
* A comma-separated list of resources to include. See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
|
|
8664
|
+
*/
|
|
8665
|
+
include?: string;
|
|
8666
|
+
};
|
|
8615
8667
|
url: "/v2/orders/{orderID}";
|
|
8616
8668
|
};
|
|
8617
8669
|
export type GetAnOrderErrors = {
|
|
@@ -8627,6 +8679,9 @@ export type GetAnOrderResponses = {
|
|
|
8627
8679
|
*/
|
|
8628
8680
|
200: ResponseData & {
|
|
8629
8681
|
data?: OrderResponse;
|
|
8682
|
+
included?: {
|
|
8683
|
+
items?: Array<OrderItemResponse>;
|
|
8684
|
+
};
|
|
8630
8685
|
};
|
|
8631
8686
|
};
|
|
8632
8687
|
export type GetAnOrderResponse = GetAnOrderResponses[keyof GetAnOrderResponses];
|