Skip to content

@shopware/api-client@1.4.0

Choose a tag to compare

@github-actions github-actions released this 16 Dec 13:39
· 57 commits to main since this release
a6376b3

Minor Changes

  • #2012 70dcf95 Thanks @patzick! - Added helper to support encoded _criteria field in GET query parameters.
    Context information: shopware/shopware#12388

    This helper is available under the @shopware/api-client/helpers import path.

    import { encodeForQuery } from "@shopware/api-client/helpers";
    
    const criteria = {
      page: 1,
      limit: 10,
      ...
    }
    
    const encodedCriteria = encodeForQuery(criteria);
    
    const result = await apiClient.invoke("getProducts get /product", {
      query: {
        _criteria: encodedCriteria,
      },
    });
  • #1959 c77daa6 Thanks @patzick! - Updated default types to Shopware 6.7