@epcc-sdk/sdks-shopper 0.0.6 → 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.
@@ -858,11 +858,11 @@ export declare const createACartMutation: (options?: Partial<Options<CreateACart
858
858
  data?: import("../types.gen").CartResponse;
859
859
  }, import("../types.gen").ResponseError, Options<CreateACartData>, unknown>;
860
860
  export declare const deleteACartMutation: (options?: Partial<Options<DeleteACartData>>) => UseMutationOptions<void, import("../types.gen").ResponseError, Options<DeleteACartData>, unknown>;
861
- export declare const getCartQueryKey: (options?: Options<GetCartData>) => (Pick<Options<GetCartData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
861
+ export declare const getCartQueryKey: (options: Options<GetCartData>) => (Pick<Options<GetCartData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
862
862
  _id: string;
863
863
  _infinite?: boolean;
864
864
  })[];
865
- export declare const getCartOptions: (options?: Options<GetCartData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").ResponseData & {
865
+ export declare const getCartOptions: (options: Options<GetCartData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").ResponseData & {
866
866
  data?: import("../types.gen").CartResponse;
867
867
  }, Error, import("../types.gen").ResponseData & {
868
868
  data?: import("../types.gen").CartResponse;
@@ -1147,7 +1147,7 @@ export declare const deleteACart: <ThrowOnError extends boolean = false>(options
1147
1147
  * | `include` | Optional | `string` | Comma-delimited string of entities that can be included. The information included are `items`,`tax_items`, `custom_discounts`, or `promotions`. |
1148
1148
  *
1149
1149
  */
1150
- export declare const getCart: <ThrowOnError extends boolean = false>(options?: Options<GetCartData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
1150
+ export declare const getCart: <ThrowOnError extends boolean = false>(options: Options<GetCartData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
1151
1151
  data?: import("./types.gen").CartResponse;
1152
1152
  }, import("./types.gen").ResponseError, ThrowOnError>;
1153
1153
  /**
@@ -1879,6 +1879,7 @@ export type CartResponse = {
1879
1879
  };
1880
1880
  };
1881
1881
  };
1882
+ included?: CartInclude;
1882
1883
  };
1883
1884
  export type CartItemsObjectRequest = CartItemObject | SubscriptionItemObject | CartMergeObjectRequest | CustomItemObject | ReOrderObjectRequest | PromotionItemObject;
1884
1885
  export type CartItemObject = {
@@ -5466,6 +5467,10 @@ export type GetByContextAllProductsResponse = GetByContextAllProductsResponses[k
5466
5467
  export type GetByContextProductData = {
5467
5468
  body?: never;
5468
5469
  headers?: {
5470
+ /**
5471
+ * The language and locale your storefront prefers. See [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language).
5472
+ */
5473
+ "accept-language"?: string;
5469
5474
  /**
5470
5475
  * The list of channels in which this catalog can be displayed. A channel is the shopping experience, such as a mobile app or web storefront. If empty, the catalog rule matches all channels. The channel will eventually be included in the bearer token that is used for authorization, but currently, you must set the `EP-Channel` header in your requests.
5471
5476
  */
@@ -6860,7 +6865,12 @@ export type DeleteACartResponses = {
6860
6865
  export type DeleteACartResponse = DeleteACartResponses[keyof DeleteACartResponses];
6861
6866
  export type GetCartData = {
6862
6867
  body?: never;
6863
- path?: never;
6868
+ path: {
6869
+ /**
6870
+ * The unique identifier for this cart that you created.
6871
+ */
6872
+ cartID: string;
6873
+ };
6864
6874
  query?: {
6865
6875
  include?: Array<"items">;
6866
6876
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epcc-sdk/sdks-shopper",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {