@spscommerce/asst-api 5.3.3 → 5.3.4

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.
@@ -422,7 +422,7 @@ var companyFeatureSchema = z7.object({
422
422
  });
423
423
  function createCompanyFeaturesApi(client, companyType) {
424
424
  function getSearchParams() {
425
- return companyType && { companyType };
425
+ return { companyType: companyType ?? client.getCompanyType() };
426
426
  }
427
427
  async function checkIfStageItemSetupIsEnabled(signal) {
428
428
  const data = await client.get(`${BASE_URL10}/isphaseditemsetupenabled`, {
package/dist/index.cjs CHANGED
@@ -1732,7 +1732,7 @@ var companyFeatureSchema = import_zod38.z.object({
1732
1732
  });
1733
1733
  function createCompanyFeaturesApi(client, companyType) {
1734
1734
  function getSearchParams() {
1735
- return companyType && { companyType };
1735
+ return { companyType: companyType ?? client.getCompanyType() };
1736
1736
  }
1737
1737
  async function checkIfStageItemSetupIsEnabled(signal) {
1738
1738
  const data = await client.get(`${BASE_URL10}/isphaseditemsetupenabled`, {
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  createTradingPartnerSettingsApi,
18
18
  createUniqueCriteriaApi,
19
19
  createWhoAmIApi
20
- } from "./chunk-FECWD4HI.js";
20
+ } from "./chunk-42U2ERT7.js";
21
21
  import {
22
22
  AsstClient,
23
23
  BASE_URLS,
package/dist/msw.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  FlattenedItemIdentifierKeysSchema,
23
23
  companyFeatureSchema,
24
24
  retailerTradingPartnerStages
25
- } from "./chunk-FECWD4HI.js";
25
+ } from "./chunk-42U2ERT7.js";
26
26
  import {
27
27
  attrProdTypeSchema,
28
28
  catalogBriefResponseSchema,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Assortment Api is a collection of HTTP functions to use Assortment endpoints",
4
4
  "author": "Assortment",
5
5
  "repository": "https://github.com/SPSCommerce/assortment-main/tree/main/ui/packages/asst-api",
6
- "version": "5.3.3",
6
+ "version": "5.3.4",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
@@ -54,7 +54,7 @@
54
54
  "msw": "^2.11.3",
55
55
  "tsup": "^8.3.0",
56
56
  "typescript": "~5.8.3",
57
- "vite": "^6.2.6",
57
+ "vite": "^8.0.16",
58
58
  "zod": "^3.23.8"
59
59
  },
60
60
  "dependencies": {