@spscommerce/asst-api 4.10.0 → 5.0.0

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.
@@ -44,15 +44,17 @@ declare const BASE_URLS: BaseUrls;
44
44
  declare const envSchema: z.ZodEnum<["local", "test", "prod"]>;
45
45
  type Env = z.infer<typeof envSchema>;
46
46
  type AsstUrl = BaseUrls[Env];
47
+ type GetTokenFn = () => Promise<string | null>;
47
48
  interface AsstClientOptions extends Options {
48
49
  prefixUrl?: AsstUrl;
50
+ tokenFn?: GetTokenFn;
49
51
  }
50
52
  type Input = string | URL | Request;
51
53
  type Listener = (config: AsstClientOptions) => void;
52
54
  declare class AsstClient {
53
55
  #private;
54
56
  constructor(options?: AsstClientOptions);
55
- updateConfig(options: AsstClientOptions): void;
57
+ updateConfig({ tokenFn, ...options }: AsstClientOptions): void;
56
58
  updateCompanyType(companyType: CompanyType): void;
57
59
  getBaseUrl(): AsstUrl;
58
60
  getCompanyType(): CompanyType;
@@ -44,15 +44,17 @@ declare const BASE_URLS: BaseUrls;
44
44
  declare const envSchema: z.ZodEnum<["local", "test", "prod"]>;
45
45
  type Env = z.infer<typeof envSchema>;
46
46
  type AsstUrl = BaseUrls[Env];
47
+ type GetTokenFn = () => Promise<string | null>;
47
48
  interface AsstClientOptions extends Options {
48
49
  prefixUrl?: AsstUrl;
50
+ tokenFn?: GetTokenFn;
49
51
  }
50
52
  type Input = string | URL | Request;
51
53
  type Listener = (config: AsstClientOptions) => void;
52
54
  declare class AsstClient {
53
55
  #private;
54
56
  constructor(options?: AsstClientOptions);
55
- updateConfig(options: AsstClientOptions): void;
57
+ updateConfig({ tokenFn, ...options }: AsstClientOptions): void;
56
58
  updateCompanyType(companyType: CompanyType): void;
57
59
  getBaseUrl(): AsstUrl;
58
60
  getCompanyType(): CompanyType;
@@ -32,13 +32,28 @@ var AsstClient = class {
32
32
  this.updateConfig(options);
33
33
  }
34
34
  }
35
- updateConfig(options) {
36
- this.#client = this.#client.extend(options);
37
- this.#currentConfig = options;
35
+ updateConfig({ tokenFn, ...options }) {
36
+ const beforeRequest = tokenFn ? [
37
+ ...options.hooks?.beforeRequest ?? [],
38
+ async (request) => {
39
+ const token = await tokenFn();
40
+ if (token) {
41
+ request.headers.set("Authorization", `Bearer ${token}`);
42
+ }
43
+ }
44
+ ] : [];
45
+ this.#client = this.#client.extend({
46
+ ...options,
47
+ hooks: {
48
+ ...options.hooks,
49
+ beforeRequest
50
+ }
51
+ });
52
+ this.#currentConfig = { ...options, tokenFn };
38
53
  if (options.prefixUrl) {
39
54
  this.#baseUrl = options.prefixUrl;
40
55
  }
41
- this.#listeners.forEach((listener) => listener(options));
56
+ this.#listeners.forEach((listener) => listener({ ...options, tokenFn }));
42
57
  }
43
58
  updateCompanyType(companyType) {
44
59
  this.#companyType = companyType;
package/dist/index.cjs CHANGED
@@ -4129,13 +4129,28 @@ var AsstClient = class {
4129
4129
  this.updateConfig(options);
4130
4130
  }
4131
4131
  }
4132
- updateConfig(options) {
4133
- this.#client = this.#client.extend(options);
4134
- this.#currentConfig = options;
4132
+ updateConfig({ tokenFn, ...options }) {
4133
+ const beforeRequest = tokenFn ? [
4134
+ ...options.hooks?.beforeRequest ?? [],
4135
+ async (request) => {
4136
+ const token = await tokenFn();
4137
+ if (token) {
4138
+ request.headers.set("Authorization", `Bearer ${token}`);
4139
+ }
4140
+ }
4141
+ ] : [];
4142
+ this.#client = this.#client.extend({
4143
+ ...options,
4144
+ hooks: {
4145
+ ...options.hooks,
4146
+ beforeRequest
4147
+ }
4148
+ });
4149
+ this.#currentConfig = { ...options, tokenFn };
4135
4150
  if (options.prefixUrl) {
4136
4151
  this.#baseUrl = options.prefixUrl;
4137
4152
  }
4138
- this.#listeners.forEach((listener) => listener(options));
4153
+ this.#listeners.forEach((listener) => listener({ ...options, tokenFn }));
4139
4154
  }
4140
4155
  updateCompanyType(companyType) {
4141
4156
  this.#companyType = companyType;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { A as AsstClient, I as ItemHierarchyResponse, a as CompanyType, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-BEq6yqtR.cjs';
2
- export { b as AsstClientOptions, c as AsstUrl, B as BASE_URLS, E as Env, e as envSchema } from './SpsItemIdResponse-BEq6yqtR.cjs';
3
- import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, L as Locale, S as SpreadsheetTemplate, U as UserAccount, d as ItemSearchView, e as ItemDetailView, f as ItemDetail, g as ItemErrorDetailsResult, h as ItemErrorSummaryResultV2, i as ItemErrorDetailsResultV2 } from './zod-xDwooVEk.cjs';
4
- export { K as AttributeDetail, a0 as Bulb, M as CategoryEnum, N as ComponentDetails, q as Connection, n as ExportDayOfWeek, o as ExportFrequency, p as ExportType, O as GroupedAttributeList, Q as GroupedAttributes, W as GroupedItem, X as HierarchyCategory, Y as HierarchyDetails, v as IdentityServiceDatetimePreferences, w as IdentityServiceOrganization, u as IdentityServiceOrganizationMetadata, x as IdentityServicePreferences, y as IdentityServiceUser, j as ImportDetails, k as ImportError, l as ImportErrors, m as ImportStatusEnum, s as ItemCategory, a4 as ItemErrorDetails, a6 as ItemErrorDetailsV2, a5 as ItemErrorSummaryV2, z as ItemHeader, B as ItemMap, Z as ItemPrice, F as ItemTable, $ as MediaItem, P as PRODUCT_CODE_DEFAULT_VALUE, a1 as PackComponent, _ as PackComponentDetails, a3 as PackComponentItemInfo, H as PhaseEnum, R as RegisteredService, a2 as RepeatableGroup, r as SELECTION_CODE_DEFAULT_VALUE, t as SpreadsheetTemplateCompany, J as TradingPartnerStage, a7 as TradingPartnerStageV2 } from './zod-xDwooVEk.cjs';
1
+ import { A as AsstClient, I as ItemHierarchyResponse, a as CompanyType, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-CSZKx_Tz.cjs';
2
+ export { b as AsstClientOptions, c as AsstUrl, B as BASE_URLS, E as Env, e as envSchema } from './SpsItemIdResponse-CSZKx_Tz.cjs';
3
+ import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, L as Locale, S as SpreadsheetTemplate, U as UserAccount, d as ItemSearchView, e as ItemDetailView, f as ItemDetail, g as ItemErrorDetailsResult, h as ItemErrorSummaryResultV2, i as ItemErrorDetailsResultV2 } from './zod-3trJEAcb.cjs';
4
+ export { K as AttributeDetail, a0 as Bulb, M as CategoryEnum, N as ComponentDetails, q as Connection, n as ExportDayOfWeek, o as ExportFrequency, p as ExportType, O as GroupedAttributeList, Q as GroupedAttributes, W as GroupedItem, X as HierarchyCategory, Y as HierarchyDetails, v as IdentityServiceDatetimePreferences, w as IdentityServiceOrganization, u as IdentityServiceOrganizationMetadata, x as IdentityServicePreferences, y as IdentityServiceUser, j as ImportDetails, k as ImportError, l as ImportErrors, m as ImportStatusEnum, s as ItemCategory, a4 as ItemErrorDetails, a6 as ItemErrorDetailsV2, a5 as ItemErrorSummaryV2, z as ItemHeader, B as ItemMap, Z as ItemPrice, F as ItemTable, $ as MediaItem, P as PRODUCT_CODE_DEFAULT_VALUE, a1 as PackComponent, _ as PackComponentDetails, a3 as PackComponentItemInfo, H as PhaseEnum, R as RegisteredService, a2 as RepeatableGroup, r as SELECTION_CODE_DEFAULT_VALUE, t as SpreadsheetTemplateCompany, J as TradingPartnerStage, a7 as TradingPartnerStageV2 } from './zod-3trJEAcb.cjs';
5
5
  import { z } from 'zod';
6
6
  import { b as CompanySearchParams, C as CompanySearch, a as Company } from './CompanySearch-T6HJx4a6.cjs';
7
7
  import 'ky';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { A as AsstClient, I as ItemHierarchyResponse, a as CompanyType, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-BEq6yqtR.js';
2
- export { b as AsstClientOptions, c as AsstUrl, B as BASE_URLS, E as Env, e as envSchema } from './SpsItemIdResponse-BEq6yqtR.js';
3
- import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, L as Locale, S as SpreadsheetTemplate, U as UserAccount, d as ItemSearchView, e as ItemDetailView, f as ItemDetail, g as ItemErrorDetailsResult, h as ItemErrorSummaryResultV2, i as ItemErrorDetailsResultV2 } from './zod-BzaUv6Z0.js';
4
- export { K as AttributeDetail, a0 as Bulb, M as CategoryEnum, N as ComponentDetails, q as Connection, n as ExportDayOfWeek, o as ExportFrequency, p as ExportType, O as GroupedAttributeList, Q as GroupedAttributes, W as GroupedItem, X as HierarchyCategory, Y as HierarchyDetails, v as IdentityServiceDatetimePreferences, w as IdentityServiceOrganization, u as IdentityServiceOrganizationMetadata, x as IdentityServicePreferences, y as IdentityServiceUser, j as ImportDetails, k as ImportError, l as ImportErrors, m as ImportStatusEnum, s as ItemCategory, a4 as ItemErrorDetails, a6 as ItemErrorDetailsV2, a5 as ItemErrorSummaryV2, z as ItemHeader, B as ItemMap, Z as ItemPrice, F as ItemTable, $ as MediaItem, P as PRODUCT_CODE_DEFAULT_VALUE, a1 as PackComponent, _ as PackComponentDetails, a3 as PackComponentItemInfo, H as PhaseEnum, R as RegisteredService, a2 as RepeatableGroup, r as SELECTION_CODE_DEFAULT_VALUE, t as SpreadsheetTemplateCompany, J as TradingPartnerStage, a7 as TradingPartnerStageV2 } from './zod-BzaUv6Z0.js';
1
+ import { A as AsstClient, I as ItemHierarchyResponse, a as CompanyType, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-CSZKx_Tz.js';
2
+ export { b as AsstClientOptions, c as AsstUrl, B as BASE_URLS, E as Env, e as envSchema } from './SpsItemIdResponse-CSZKx_Tz.js';
3
+ import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, L as Locale, S as SpreadsheetTemplate, U as UserAccount, d as ItemSearchView, e as ItemDetailView, f as ItemDetail, g as ItemErrorDetailsResult, h as ItemErrorSummaryResultV2, i as ItemErrorDetailsResultV2 } from './zod-D5FuRg8T.js';
4
+ export { K as AttributeDetail, a0 as Bulb, M as CategoryEnum, N as ComponentDetails, q as Connection, n as ExportDayOfWeek, o as ExportFrequency, p as ExportType, O as GroupedAttributeList, Q as GroupedAttributes, W as GroupedItem, X as HierarchyCategory, Y as HierarchyDetails, v as IdentityServiceDatetimePreferences, w as IdentityServiceOrganization, u as IdentityServiceOrganizationMetadata, x as IdentityServicePreferences, y as IdentityServiceUser, j as ImportDetails, k as ImportError, l as ImportErrors, m as ImportStatusEnum, s as ItemCategory, a4 as ItemErrorDetails, a6 as ItemErrorDetailsV2, a5 as ItemErrorSummaryV2, z as ItemHeader, B as ItemMap, Z as ItemPrice, F as ItemTable, $ as MediaItem, P as PRODUCT_CODE_DEFAULT_VALUE, a1 as PackComponent, _ as PackComponentDetails, a3 as PackComponentItemInfo, H as PhaseEnum, R as RegisteredService, a2 as RepeatableGroup, r as SELECTION_CODE_DEFAULT_VALUE, t as SpreadsheetTemplateCompany, J as TradingPartnerStage, a7 as TradingPartnerStageV2 } from './zod-D5FuRg8T.js';
5
5
  import { z } from 'zod';
6
6
  import { b as CompanySearchParams, C as CompanySearch, a as Company } from './CompanySearch-T6HJx4a6.js';
7
7
  import 'ky';
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  AsstClient,
23
23
  BASE_URLS,
24
24
  envSchema
25
- } from "./chunk-GVKJQMZO.js";
25
+ } from "./chunk-M63TD46U.js";
26
26
  import {
27
27
  PRODUCT_CODE_DEFAULT_VALUE,
28
28
  SELECTION_CODE_DEFAULT_VALUE
package/dist/msw.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as msw from 'msw';
2
2
  import { ResponseResolver, HttpResponseResolver, HttpHandler } from 'msw';
3
- import { A as AsstClient, I as ItemHierarchyResponse, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-BEq6yqtR.cjs';
3
+ import { A as AsstClient, I as ItemHierarchyResponse, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-CSZKx_Tz.cjs';
4
4
  import { z } from 'zod';
5
5
  import { C as CompanySearch, a as Company } from './CompanySearch-T6HJx4a6.cjs';
6
6
  import 'ky';
package/dist/msw.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as msw from 'msw';
2
2
  import { ResponseResolver, HttpResponseResolver, HttpHandler } from 'msw';
3
- import { A as AsstClient, I as ItemHierarchyResponse, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-BEq6yqtR.js';
3
+ import { A as AsstClient, I as ItemHierarchyResponse, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-CSZKx_Tz.js';
4
4
  import { z } from 'zod';
5
5
  import { C as CompanySearch, a as Company } from './CompanySearch-T6HJx4a6.js';
6
6
  import 'ky';
@@ -1,4 +1,4 @@
1
- import './SpsItemIdResponse-BEq6yqtR.cjs';
1
+ import './SpsItemIdResponse-CSZKx_Tz.cjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const importSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import './SpsItemIdResponse-BEq6yqtR.js';
1
+ import './SpsItemIdResponse-CSZKx_Tz.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const importSchema: z.ZodObject<{
package/dist/zod.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as companyBriefByOrgSchema, e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-BEq6yqtR.cjs';
2
- export { aM as attrProdTypeSchema, aC as attributeDetailSchema, au as bulbSchema, az as categoryEnumSchema, an as categoryTypeSchema, aS as companyRelationshipUpsertBodySchema, aE as componentDetailsSchema, aP as connectionSchema, ak as downLoadItemsParamsSchema, ag as exportDayOfWeekEnum, ah as exportFrequencyEnum, aj as exportSchema, ai as exportTypeEnum, ae as generateImportTemplateParamsSchema, aI as groupedAttributeListSchema, aG as groupedAttributesSchema, ay as groupedItemSchema, aH as hierarchyCategorySchema, aF as hierarchyDetailsSchema, aT as identityServiceDatetimePreferencesSchema, aU as identityServiceOrganizationMetadataSchema, aV as identityServiceOrganizationSchema, aW as identityServicePreferencesSchema, aX as identityServiceUserSchema, a8 as importDetailSchema, a9 as importErrorSchema, aa as importErrorsSchema, ab as importSchema, ad as importStatusEnumSchema, ac as importsStatusSchema, al as itemCategoriesSearchSchema, am as itemCategorySchema, ax as itemDetailSchema, aB as itemDetailViewSchema, a_ as itemErrorDetailsResultSchema, b0 as itemErrorDetailsResultV2Schema, a$ as itemErrorDetailsSchema, b2 as itemErrorDetailsV2Schema, b4 as itemErrorSummaryResultV2Schema, b1 as itemErrorSummaryV2Schema, ao as itemHeaderSchema, ap as itemMapSchema, aR as itemPartnerSchema, av as itemPriceSchema, aq as itemSearchViewSchema, ar as itemTableSchema, aL as localeSchema, aw as mediaItemSchema, aJ as packComponentDetailsSchema, aK as packComponentItemInfoSchema, aA as packComponentSchema, as as phaseEnumSchema, aY as registeredServiceSchema, aD as repeatableGroupSchema, aN as spreadsheetTemplateCompanySchema, aO as spreadsheetTemplateSchema, aQ as tradingPartnerAccessByCompanyIdSchema, at as tradingPartnerStageSchema, b3 as tradingPartnerStageV2Schema, aZ as userAccountSchema, af as vendorPartnerAttGroupsSchema } from './zod-xDwooVEk.cjs';
1
+ export { d as companyBriefByOrgSchema, e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-CSZKx_Tz.cjs';
2
+ export { aM as attrProdTypeSchema, aC as attributeDetailSchema, au as bulbSchema, az as categoryEnumSchema, an as categoryTypeSchema, aS as companyRelationshipUpsertBodySchema, aE as componentDetailsSchema, aP as connectionSchema, ak as downLoadItemsParamsSchema, ag as exportDayOfWeekEnum, ah as exportFrequencyEnum, aj as exportSchema, ai as exportTypeEnum, ae as generateImportTemplateParamsSchema, aI as groupedAttributeListSchema, aG as groupedAttributesSchema, ay as groupedItemSchema, aH as hierarchyCategorySchema, aF as hierarchyDetailsSchema, aT as identityServiceDatetimePreferencesSchema, aU as identityServiceOrganizationMetadataSchema, aV as identityServiceOrganizationSchema, aW as identityServicePreferencesSchema, aX as identityServiceUserSchema, a8 as importDetailSchema, a9 as importErrorSchema, aa as importErrorsSchema, ab as importSchema, ad as importStatusEnumSchema, ac as importsStatusSchema, al as itemCategoriesSearchSchema, am as itemCategorySchema, ax as itemDetailSchema, aB as itemDetailViewSchema, a_ as itemErrorDetailsResultSchema, b0 as itemErrorDetailsResultV2Schema, a$ as itemErrorDetailsSchema, b2 as itemErrorDetailsV2Schema, b4 as itemErrorSummaryResultV2Schema, b1 as itemErrorSummaryV2Schema, ao as itemHeaderSchema, ap as itemMapSchema, aR as itemPartnerSchema, av as itemPriceSchema, aq as itemSearchViewSchema, ar as itemTableSchema, aL as localeSchema, aw as mediaItemSchema, aJ as packComponentDetailsSchema, aK as packComponentItemInfoSchema, aA as packComponentSchema, as as phaseEnumSchema, aY as registeredServiceSchema, aD as repeatableGroupSchema, aN as spreadsheetTemplateCompanySchema, aO as spreadsheetTemplateSchema, aQ as tradingPartnerAccessByCompanyIdSchema, at as tradingPartnerStageSchema, b3 as tradingPartnerStageV2Schema, aZ as userAccountSchema, af as vendorPartnerAttGroupsSchema } from './zod-3trJEAcb.cjs';
3
3
  import 'zod';
4
4
  import 'ky';
package/dist/zod.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as companyBriefByOrgSchema, e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-BEq6yqtR.js';
2
- export { aM as attrProdTypeSchema, aC as attributeDetailSchema, au as bulbSchema, az as categoryEnumSchema, an as categoryTypeSchema, aS as companyRelationshipUpsertBodySchema, aE as componentDetailsSchema, aP as connectionSchema, ak as downLoadItemsParamsSchema, ag as exportDayOfWeekEnum, ah as exportFrequencyEnum, aj as exportSchema, ai as exportTypeEnum, ae as generateImportTemplateParamsSchema, aI as groupedAttributeListSchema, aG as groupedAttributesSchema, ay as groupedItemSchema, aH as hierarchyCategorySchema, aF as hierarchyDetailsSchema, aT as identityServiceDatetimePreferencesSchema, aU as identityServiceOrganizationMetadataSchema, aV as identityServiceOrganizationSchema, aW as identityServicePreferencesSchema, aX as identityServiceUserSchema, a8 as importDetailSchema, a9 as importErrorSchema, aa as importErrorsSchema, ab as importSchema, ad as importStatusEnumSchema, ac as importsStatusSchema, al as itemCategoriesSearchSchema, am as itemCategorySchema, ax as itemDetailSchema, aB as itemDetailViewSchema, a_ as itemErrorDetailsResultSchema, b0 as itemErrorDetailsResultV2Schema, a$ as itemErrorDetailsSchema, b2 as itemErrorDetailsV2Schema, b4 as itemErrorSummaryResultV2Schema, b1 as itemErrorSummaryV2Schema, ao as itemHeaderSchema, ap as itemMapSchema, aR as itemPartnerSchema, av as itemPriceSchema, aq as itemSearchViewSchema, ar as itemTableSchema, aL as localeSchema, aw as mediaItemSchema, aJ as packComponentDetailsSchema, aK as packComponentItemInfoSchema, aA as packComponentSchema, as as phaseEnumSchema, aY as registeredServiceSchema, aD as repeatableGroupSchema, aN as spreadsheetTemplateCompanySchema, aO as spreadsheetTemplateSchema, aQ as tradingPartnerAccessByCompanyIdSchema, at as tradingPartnerStageSchema, b3 as tradingPartnerStageV2Schema, aZ as userAccountSchema, af as vendorPartnerAttGroupsSchema } from './zod-BzaUv6Z0.js';
1
+ export { d as companyBriefByOrgSchema, e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-CSZKx_Tz.js';
2
+ export { aM as attrProdTypeSchema, aC as attributeDetailSchema, au as bulbSchema, az as categoryEnumSchema, an as categoryTypeSchema, aS as companyRelationshipUpsertBodySchema, aE as componentDetailsSchema, aP as connectionSchema, ak as downLoadItemsParamsSchema, ag as exportDayOfWeekEnum, ah as exportFrequencyEnum, aj as exportSchema, ai as exportTypeEnum, ae as generateImportTemplateParamsSchema, aI as groupedAttributeListSchema, aG as groupedAttributesSchema, ay as groupedItemSchema, aH as hierarchyCategorySchema, aF as hierarchyDetailsSchema, aT as identityServiceDatetimePreferencesSchema, aU as identityServiceOrganizationMetadataSchema, aV as identityServiceOrganizationSchema, aW as identityServicePreferencesSchema, aX as identityServiceUserSchema, a8 as importDetailSchema, a9 as importErrorSchema, aa as importErrorsSchema, ab as importSchema, ad as importStatusEnumSchema, ac as importsStatusSchema, al as itemCategoriesSearchSchema, am as itemCategorySchema, ax as itemDetailSchema, aB as itemDetailViewSchema, a_ as itemErrorDetailsResultSchema, b0 as itemErrorDetailsResultV2Schema, a$ as itemErrorDetailsSchema, b2 as itemErrorDetailsV2Schema, b4 as itemErrorSummaryResultV2Schema, b1 as itemErrorSummaryV2Schema, ao as itemHeaderSchema, ap as itemMapSchema, aR as itemPartnerSchema, av as itemPriceSchema, aq as itemSearchViewSchema, ar as itemTableSchema, aL as localeSchema, aw as mediaItemSchema, aJ as packComponentDetailsSchema, aK as packComponentItemInfoSchema, aA as packComponentSchema, as as phaseEnumSchema, aY as registeredServiceSchema, aD as repeatableGroupSchema, aN as spreadsheetTemplateCompanySchema, aO as spreadsheetTemplateSchema, aQ as tradingPartnerAccessByCompanyIdSchema, at as tradingPartnerStageSchema, b3 as tradingPartnerStageV2Schema, aZ as userAccountSchema, af as vendorPartnerAttGroupsSchema } from './zod-D5FuRg8T.js';
3
3
  import 'zod';
4
4
  import 'ky';
package/dist/zod.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  envSchema
3
- } from "./chunk-GVKJQMZO.js";
3
+ } from "./chunk-M63TD46U.js";
4
4
  import {
5
5
  attrProdTypeSchema,
6
6
  attributeDetailSchema,
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": "4.10.0",
6
+ "version": "5.0.0",
7
7
  "files": [
8
8
  "dist"
9
9
  ],