@epcc-sdk/sdks-shopper 0.0.5 → 0.0.6

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
  /**
@@ -3171,6 +3171,15 @@ export type CartCheckoutTimestamps = {
3171
3171
  */
3172
3172
  updated_at?: unknown;
3173
3173
  };
3174
+ /**
3175
+ * Included is an array of resources that are included in the response.
3176
+ */
3177
+ export type CartInclude = {
3178
+ /**
3179
+ * The cart items associated with a cart.
3180
+ */
3181
+ items?: Array<CartItemObject>;
3182
+ };
3174
3183
  /**
3175
3184
  * Whether a plan is active on a subscription using that offering. The `active_plan` attribute is null if a plan is not active in a subscription.
3176
3185
  */
@@ -5000,6 +5009,7 @@ export type Offset = BigInt;
5000
5009
  * Product tags are used to store or assign a key word against a product. The product tag can then be used to describe or label that product. Using product tags means that you can group your products together, for example, by brand, category, subcategory, colors, types, industries, and so on. You can enhance your product list using tags, enabling you to refine your product list and run targeted promotions. Tags are used to refine the eligibility criteria for a rule. Requests populate the catalog rule tag using the `EP-Context-Tag` header.
5001
5010
  */
5002
5011
  export type Tag = string;
5012
+ export type CartInclude2 = Array<"items">;
5003
5013
  /**
5004
5014
  * A comma-separated list of resources to include. See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
5005
5015
  */
@@ -6850,13 +6860,10 @@ export type DeleteACartResponses = {
6850
6860
  export type DeleteACartResponse = DeleteACartResponses[keyof DeleteACartResponses];
6851
6861
  export type GetCartData = {
6852
6862
  body?: never;
6853
- path: {
6854
- /**
6855
- * The unique identifier for this cart that you created.
6856
- */
6857
- cartID: string;
6863
+ path?: never;
6864
+ query?: {
6865
+ include?: Array<"items">;
6858
6866
  };
6859
- query?: never;
6860
6867
  url: "/v2/carts/{cartID}";
6861
6868
  };
6862
6869
  export type GetCartErrors = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epcc-sdk/sdks-shopper",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {