@spscommerce/asst-api 5.1.0 → 5.3.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.
@@ -10,8 +10,8 @@ declare const companySchema: z.ZodObject<{
10
10
  createdBy: z.ZodNullable<z.ZodString>;
11
11
  createdDate: z.ZodNullable<z.ZodNumber>;
12
12
  display: z.ZodString;
13
- modifiedBy: z.ZodNullable<z.ZodString>;
14
- modifiedDate: z.ZodNullable<z.ZodNumber>;
13
+ modifiedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ modifiedDate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
15
  type: z.ZodString;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  type: string;
@@ -19,16 +19,16 @@ declare const companySchema: z.ZodObject<{
19
19
  createdBy: string | null;
20
20
  createdDate: number | null;
21
21
  display: string;
22
- modifiedBy: string | null;
23
- modifiedDate: number | null;
22
+ modifiedBy?: string | null | undefined;
23
+ modifiedDate?: number | null | undefined;
24
24
  }, {
25
25
  type: string;
26
26
  active: boolean;
27
27
  createdBy: string | null;
28
28
  createdDate: number | null;
29
29
  display: string;
30
- modifiedBy: string | null;
31
- modifiedDate: number | null;
30
+ modifiedBy?: string | null | undefined;
31
+ modifiedDate?: number | null | undefined;
32
32
  }>, "many">;
33
33
  identity: z.ZodObject<{
34
34
  orgId: z.ZodNullable<z.ZodString>;
@@ -156,8 +156,8 @@ declare const companySchema: z.ZodObject<{
156
156
  createdBy: string | null;
157
157
  createdDate: number | null;
158
158
  display: string;
159
- modifiedBy: string | null;
160
- modifiedDate: number | null;
159
+ modifiedBy?: string | null | undefined;
160
+ modifiedDate?: number | null | undefined;
161
161
  }[];
162
162
  identity: {
163
163
  orgId: string | null;
@@ -201,8 +201,8 @@ declare const companySchema: z.ZodObject<{
201
201
  createdBy: string | null;
202
202
  createdDate: number | null;
203
203
  display: string;
204
- modifiedBy: string | null;
205
- modifiedDate: number | null;
204
+ modifiedBy?: string | null | undefined;
205
+ modifiedDate?: number | null | undefined;
206
206
  }[];
207
207
  identity: {
208
208
  orgId: string | null;
@@ -10,8 +10,8 @@ declare const companySchema: z.ZodObject<{
10
10
  createdBy: z.ZodNullable<z.ZodString>;
11
11
  createdDate: z.ZodNullable<z.ZodNumber>;
12
12
  display: z.ZodString;
13
- modifiedBy: z.ZodNullable<z.ZodString>;
14
- modifiedDate: z.ZodNullable<z.ZodNumber>;
13
+ modifiedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ modifiedDate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
15
  type: z.ZodString;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  type: string;
@@ -19,16 +19,16 @@ declare const companySchema: z.ZodObject<{
19
19
  createdBy: string | null;
20
20
  createdDate: number | null;
21
21
  display: string;
22
- modifiedBy: string | null;
23
- modifiedDate: number | null;
22
+ modifiedBy?: string | null | undefined;
23
+ modifiedDate?: number | null | undefined;
24
24
  }, {
25
25
  type: string;
26
26
  active: boolean;
27
27
  createdBy: string | null;
28
28
  createdDate: number | null;
29
29
  display: string;
30
- modifiedBy: string | null;
31
- modifiedDate: number | null;
30
+ modifiedBy?: string | null | undefined;
31
+ modifiedDate?: number | null | undefined;
32
32
  }>, "many">;
33
33
  identity: z.ZodObject<{
34
34
  orgId: z.ZodNullable<z.ZodString>;
@@ -156,8 +156,8 @@ declare const companySchema: z.ZodObject<{
156
156
  createdBy: string | null;
157
157
  createdDate: number | null;
158
158
  display: string;
159
- modifiedBy: string | null;
160
- modifiedDate: number | null;
159
+ modifiedBy?: string | null | undefined;
160
+ modifiedDate?: number | null | undefined;
161
161
  }[];
162
162
  identity: {
163
163
  orgId: string | null;
@@ -201,8 +201,8 @@ declare const companySchema: z.ZodObject<{
201
201
  createdBy: string | null;
202
202
  createdDate: number | null;
203
203
  display: string;
204
- modifiedBy: string | null;
205
- modifiedDate: number | null;
204
+ modifiedBy?: string | null | undefined;
205
+ modifiedDate?: number | null | undefined;
206
206
  }[];
207
207
  identity: {
208
208
  orgId: string | null;
@@ -23,7 +23,7 @@ import {
23
23
  tradingPartnerAccessByCompanyIdSchema,
24
24
  userAccountSchema,
25
25
  vendorPartnerAttGroupsSchema
26
- } from "./chunk-FJMJ3WLT.js";
26
+ } from "./chunk-3H53DOKQ.js";
27
27
 
28
28
  // lib/util.ts
29
29
  function getCompanyTypeSearchParams({
@@ -357,6 +357,19 @@ function createWhoAmIApi(client) {
357
357
 
358
358
  // lib/companyFeatures/index.ts
359
359
  var BASE_URL10 = "feature";
360
+ var companyFeatureSchema = external_exports.object({
361
+ /**
362
+ * Validated as a string at runtime so that unknown feature types returned by the
363
+ * backend (e.g., after a backend-only deploy) never cause a ZodError. The TypeScript
364
+ * type is narrowed to `FeatureType` so callers still get compile-time checking when
365
+ * comparing against known values.
366
+ */
367
+ type: external_exports.string(),
368
+ display: external_exports.string(),
369
+ active: external_exports.boolean(),
370
+ assortmentSystemInstanceId: external_exports.string().nullish(),
371
+ defaultCatalogId: external_exports.number().nullish()
372
+ });
360
373
  function createCompanyFeaturesApi(client, companyType) {
361
374
  function getSearchParams() {
362
375
  return companyType && { companyType };
@@ -368,12 +381,17 @@ function createCompanyFeaturesApi(client, companyType) {
368
381
  }).json();
369
382
  return external_exports.boolean().parse(data);
370
383
  }
384
+ async function getFeaturesForCompany(companyId, signal) {
385
+ const data = await client.get(`${BASE_URL10}/company/${companyId}`, { signal }).json();
386
+ return external_exports.array(companyFeatureSchema).parse(data);
387
+ }
371
388
  async function enableFeatureForCompany(featureKey, companyId) {
372
389
  await client.put(`${BASE_URL10}/${featureKey}/company/${companyId}/enable`);
373
390
  }
374
391
  return {
375
392
  checkIfStageItemSetupIsEnabled,
376
- enableFeatureForCompany
393
+ enableFeatureForCompany,
394
+ getFeaturesForCompany
377
395
  };
378
396
  }
379
397
 
@@ -701,6 +719,7 @@ export {
701
719
  BASE_URL9,
702
720
  createWhoAmIApi,
703
721
  BASE_URL10,
722
+ companyFeatureSchema,
704
723
  createCompanyFeaturesApi,
705
724
  BASE_URL11,
706
725
  createFeatureFlagsApi,
@@ -3832,7 +3832,7 @@ ZodNaN.create = (params) => {
3832
3832
  ...processCreateParams(params)
3833
3833
  });
3834
3834
  };
3835
- var BRAND = Symbol("zod_brand");
3835
+ var BRAND = /* @__PURE__ */ Symbol("zod_brand");
3836
3836
  var ZodBranded = class extends ZodType {
3837
3837
  _parse(input) {
3838
3838
  const { ctx } = this._processInputParams(input);
@@ -4887,8 +4887,8 @@ var featureResponseSchema = external_exports.object({
4887
4887
  createdBy: external_exports.string().nullable(),
4888
4888
  createdDate: external_exports.number().nullable(),
4889
4889
  display: external_exports.string(),
4890
- modifiedBy: external_exports.string().nullable(),
4891
- modifiedDate: external_exports.number().nullable(),
4890
+ modifiedBy: external_exports.string().nullish(),
4891
+ modifiedDate: external_exports.number().nullish(),
4892
4892
  type: external_exports.string()
4893
4893
  });
4894
4894
  var identitySchema = external_exports.object({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  external_exports
3
- } from "./chunk-FJMJ3WLT.js";
3
+ } from "./chunk-3H53DOKQ.js";
4
4
 
5
5
  // lib/asstClient.ts
6
6
  import ky from "ky";
package/dist/index.cjs CHANGED
@@ -3887,7 +3887,7 @@ ZodNaN.create = (params) => {
3887
3887
  ...processCreateParams(params)
3888
3888
  });
3889
3889
  };
3890
- var BRAND = Symbol("zod_brand");
3890
+ var BRAND = /* @__PURE__ */ Symbol("zod_brand");
3891
3891
  var ZodBranded = class extends ZodType {
3892
3892
  _parse(input) {
3893
3893
  const { ctx } = this._processInputParams(input);
@@ -4845,6 +4845,19 @@ function createWhoAmIApi(client) {
4845
4845
 
4846
4846
  // lib/companyFeatures/index.ts
4847
4847
  var BASE_URL10 = "feature";
4848
+ var companyFeatureSchema = external_exports.object({
4849
+ /**
4850
+ * Validated as a string at runtime so that unknown feature types returned by the
4851
+ * backend (e.g., after a backend-only deploy) never cause a ZodError. The TypeScript
4852
+ * type is narrowed to `FeatureType` so callers still get compile-time checking when
4853
+ * comparing against known values.
4854
+ */
4855
+ type: external_exports.string(),
4856
+ display: external_exports.string(),
4857
+ active: external_exports.boolean(),
4858
+ assortmentSystemInstanceId: external_exports.string().nullish(),
4859
+ defaultCatalogId: external_exports.number().nullish()
4860
+ });
4848
4861
  function createCompanyFeaturesApi(client, companyType) {
4849
4862
  function getSearchParams() {
4850
4863
  return companyType && { companyType };
@@ -4856,12 +4869,17 @@ function createCompanyFeaturesApi(client, companyType) {
4856
4869
  }).json();
4857
4870
  return external_exports.boolean().parse(data);
4858
4871
  }
4872
+ async function getFeaturesForCompany(companyId, signal) {
4873
+ const data = await client.get(`${BASE_URL10}/company/${companyId}`, { signal }).json();
4874
+ return external_exports.array(companyFeatureSchema).parse(data);
4875
+ }
4859
4876
  async function enableFeatureForCompany(featureKey, companyId) {
4860
4877
  await client.put(`${BASE_URL10}/${featureKey}/company/${companyId}/enable`);
4861
4878
  }
4862
4879
  return {
4863
4880
  checkIfStageItemSetupIsEnabled,
4864
- enableFeatureForCompany
4881
+ enableFeatureForCompany,
4882
+ getFeaturesForCompany
4865
4883
  };
4866
4884
  }
4867
4885
 
@@ -5637,8 +5655,8 @@ var featureResponseSchema = external_exports.object({
5637
5655
  createdBy: external_exports.string().nullable(),
5638
5656
  createdDate: external_exports.number().nullable(),
5639
5657
  display: external_exports.string(),
5640
- modifiedBy: external_exports.string().nullable(),
5641
- modifiedDate: external_exports.number().nullable(),
5658
+ modifiedBy: external_exports.string().nullish(),
5659
+ modifiedDate: external_exports.number().nullish(),
5642
5660
  type: external_exports.string()
5643
5661
  });
5644
5662
  var identitySchema = external_exports.object({
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { A as AsstClient, I as ItemHierarchyResponse, a as CompanyType, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-CSZKx_Tz.cjs';
2
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-CN3wjL1r.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-CN3wjL1r.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-CFHO1Ktc.cjs';
4
+ export { j as AttributeDetail, B as Bulb, k as CategoryEnum, l as ComponentDetails, m as Connection, n as ExportDayOfWeek, o as ExportFrequency, p as ExportType, q as GroupedAttributeList, r as GroupedAttributes, s as GroupedItem, H as HierarchyCategory, t as HierarchyDetails, u as IdentityServiceDatetimePreferences, v as IdentityServiceOrganization, w as IdentityServiceOrganizationMetadata, x as IdentityServicePreferences, y as IdentityServiceUser, z as ImportDetails, F as ImportError, J as ImportErrors, K as ImportStatusEnum, M as ItemCategory, N as ItemErrorDetails, O as ItemErrorDetailsV2, P as ItemErrorSummaryV2, Q as ItemHeader, R as ItemMap, W as ItemPrice, X as ItemTable, Y as MediaItem, Z as PRODUCT_CODE_DEFAULT_VALUE, _ as PackComponent, $ as PackComponentDetails, a0 as PackComponentItemInfo, a1 as PhaseEnum, a2 as RegisteredService, a3 as RepeatableGroup, a4 as SELECTION_CODE_DEFAULT_VALUE, a5 as SpreadsheetTemplateCompany, a6 as TradingPartnerStage, a7 as TradingPartnerStageV2 } from './zod-CFHO1Ktc.cjs';
5
5
  import { z } from 'zod';
6
- import { b as CompanySearchParams, C as CompanySearch, a as Company } from './CompanySearch-T6HJx4a6.cjs';
6
+ import { b as CompanySearchParams, C as CompanySearch, a as Company } from './CompanySearch-7_L0_02Y.cjs';
7
7
  import 'ky';
8
8
 
9
9
  declare const relationshipSchema: z.ZodObject<{
@@ -330,8 +330,37 @@ type ApplicationType = z.infer<typeof applicationTypeSchema>;
330
330
  * match the backend enum values in the CompanyFeatures service. If this list
331
331
  * grows significantly, we should consider moving these to their own constants file or
332
332
  * generating them from the backend.
333
+ *
334
+ * Defined as a const tuple so that both the `FeatureType` union and the Zod schema
335
+ * share a single source of truth — adding a value here automatically widens both.
333
336
  */
334
- type FeatureType = "RETAILERAPI" | "DELTASUPDATEEXPORT" | "ASSORTMENTUIDASHBOARD" | "PHASEDITEMSETUP" | "PUBLICIMAGEACCESS" | "SINGLEHIERARCHYBYITEM" | "DELTAPRICEEXPORT";
337
+ type FeatureType = "RETAILERAPI" | "DELTASUPDATEEXPORT" | "ASSORTMENTUIDASHBOARD" | "PHASEDITEMSETUP" | "PUBLICIMAGEACCESS" | "SINGLEHIERARCHYBYITEM" | "DELTAPRICEEXPORT" | "ASSORTMENTXREF";
338
+ declare const companyFeatureSchema: z.ZodObject<{
339
+ /**
340
+ * Validated as a string at runtime so that unknown feature types returned by the
341
+ * backend (e.g., after a backend-only deploy) never cause a ZodError. The TypeScript
342
+ * type is narrowed to `FeatureType` so callers still get compile-time checking when
343
+ * comparing against known values.
344
+ */
345
+ type: z.ZodString;
346
+ display: z.ZodString;
347
+ active: z.ZodBoolean;
348
+ assortmentSystemInstanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ defaultCatalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ type: string;
352
+ active: boolean;
353
+ display: string;
354
+ assortmentSystemInstanceId?: string | null | undefined;
355
+ defaultCatalogId?: number | null | undefined;
356
+ }, {
357
+ type: string;
358
+ active: boolean;
359
+ display: string;
360
+ assortmentSystemInstanceId?: string | null | undefined;
361
+ defaultCatalogId?: number | null | undefined;
362
+ }>;
363
+ type CompanyFeature = z.infer<typeof companyFeatureSchema>;
335
364
  /**
336
365
  * Initialize Company Features Api functions
337
366
  * @param client Assortment Client instance
@@ -341,6 +370,7 @@ type FeatureType = "RETAILERAPI" | "DELTASUPDATEEXPORT" | "ASSORTMENTUIDASHBOARD
341
370
  declare function createCompanyFeaturesApi(client: AsstClient, companyType?: CompanyType): {
342
371
  checkIfStageItemSetupIsEnabled: (signal?: AbortSignal) => Promise<boolean>;
343
372
  enableFeatureForCompany: (featureKey: FeatureType, companyId: number) => Promise<void>;
373
+ getFeaturesForCompany: (companyId: number, signal?: AbortSignal) => Promise<CompanyFeature[]>;
344
374
  };
345
375
 
346
376
  interface FlagOptions {
@@ -961,4 +991,4 @@ declare function createRulesManagementApi(client: AsstClient): {
961
991
  activateRule: (ruleId: string, request: ActivateRuleRequestDto, signal?: AbortSignal) => Promise<void>;
962
992
  };
963
993
 
964
- export { type ActivateRuleRequestDto, type ApplicationType, AsstClient, AttrProdType, type CatalogBriefResponse, type CatalogCreateRequest, type CatalogCreateResponse, type CatalogSearchParams, type CategoriesApi, Company, CompanyBriefByOrg, type CompanyRelationship, CompanyRelationshipUpsertBody, CompanySearch, CompanySearchParams, CompanyType, DownLoadItemsParams, Export, type FeatureType, type FlagOptions, type FlattenedItemIdentifiers, GenerateImportTemplateParams, type GetItemErrorSummaryParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemErrorDetailsResultV2, ItemErrorSummaryResultV2, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, type ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, type ItemsApi, Locale, type OrgSummary, type RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, type UniqueCriteriaOptions, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompaniesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createRulesManagementApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
994
+ export { type ActivateRuleRequestDto, type ApplicationType, AsstClient, AttrProdType, type CatalogBriefResponse, type CatalogCreateRequest, type CatalogCreateResponse, type CatalogSearchParams, type CategoriesApi, Company, CompanyBriefByOrg, type CompanyFeature, type CompanyRelationship, CompanyRelationshipUpsertBody, CompanySearch, CompanySearchParams, CompanyType, DownLoadItemsParams, Export, type FeatureType, type FlagOptions, type FlattenedItemIdentifiers, GenerateImportTemplateParams, type GetItemErrorSummaryParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemErrorDetailsResultV2, ItemErrorSummaryResultV2, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, type ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, type ItemsApi, Locale, type OrgSummary, type RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, type UniqueCriteriaOptions, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompaniesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createRulesManagementApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { A as AsstClient, I as ItemHierarchyResponse, a as CompanyType, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-CSZKx_Tz.js';
2
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-Bv6sVW6n.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-Bv6sVW6n.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-DOSs4Eg9.js';
4
+ export { j as AttributeDetail, B as Bulb, k as CategoryEnum, l as ComponentDetails, m as Connection, n as ExportDayOfWeek, o as ExportFrequency, p as ExportType, q as GroupedAttributeList, r as GroupedAttributes, s as GroupedItem, H as HierarchyCategory, t as HierarchyDetails, u as IdentityServiceDatetimePreferences, v as IdentityServiceOrganization, w as IdentityServiceOrganizationMetadata, x as IdentityServicePreferences, y as IdentityServiceUser, z as ImportDetails, F as ImportError, J as ImportErrors, K as ImportStatusEnum, M as ItemCategory, N as ItemErrorDetails, O as ItemErrorDetailsV2, P as ItemErrorSummaryV2, Q as ItemHeader, R as ItemMap, W as ItemPrice, X as ItemTable, Y as MediaItem, Z as PRODUCT_CODE_DEFAULT_VALUE, _ as PackComponent, $ as PackComponentDetails, a0 as PackComponentItemInfo, a1 as PhaseEnum, a2 as RegisteredService, a3 as RepeatableGroup, a4 as SELECTION_CODE_DEFAULT_VALUE, a5 as SpreadsheetTemplateCompany, a6 as TradingPartnerStage, a7 as TradingPartnerStageV2 } from './zod-DOSs4Eg9.js';
5
5
  import { z } from 'zod';
6
- import { b as CompanySearchParams, C as CompanySearch, a as Company } from './CompanySearch-T6HJx4a6.js';
6
+ import { b as CompanySearchParams, C as CompanySearch, a as Company } from './CompanySearch-7_L0_02Y.js';
7
7
  import 'ky';
8
8
 
9
9
  declare const relationshipSchema: z.ZodObject<{
@@ -330,8 +330,37 @@ type ApplicationType = z.infer<typeof applicationTypeSchema>;
330
330
  * match the backend enum values in the CompanyFeatures service. If this list
331
331
  * grows significantly, we should consider moving these to their own constants file or
332
332
  * generating them from the backend.
333
+ *
334
+ * Defined as a const tuple so that both the `FeatureType` union and the Zod schema
335
+ * share a single source of truth — adding a value here automatically widens both.
333
336
  */
334
- type FeatureType = "RETAILERAPI" | "DELTASUPDATEEXPORT" | "ASSORTMENTUIDASHBOARD" | "PHASEDITEMSETUP" | "PUBLICIMAGEACCESS" | "SINGLEHIERARCHYBYITEM" | "DELTAPRICEEXPORT";
337
+ type FeatureType = "RETAILERAPI" | "DELTASUPDATEEXPORT" | "ASSORTMENTUIDASHBOARD" | "PHASEDITEMSETUP" | "PUBLICIMAGEACCESS" | "SINGLEHIERARCHYBYITEM" | "DELTAPRICEEXPORT" | "ASSORTMENTXREF";
338
+ declare const companyFeatureSchema: z.ZodObject<{
339
+ /**
340
+ * Validated as a string at runtime so that unknown feature types returned by the
341
+ * backend (e.g., after a backend-only deploy) never cause a ZodError. The TypeScript
342
+ * type is narrowed to `FeatureType` so callers still get compile-time checking when
343
+ * comparing against known values.
344
+ */
345
+ type: z.ZodString;
346
+ display: z.ZodString;
347
+ active: z.ZodBoolean;
348
+ assortmentSystemInstanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ defaultCatalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ type: string;
352
+ active: boolean;
353
+ display: string;
354
+ assortmentSystemInstanceId?: string | null | undefined;
355
+ defaultCatalogId?: number | null | undefined;
356
+ }, {
357
+ type: string;
358
+ active: boolean;
359
+ display: string;
360
+ assortmentSystemInstanceId?: string | null | undefined;
361
+ defaultCatalogId?: number | null | undefined;
362
+ }>;
363
+ type CompanyFeature = z.infer<typeof companyFeatureSchema>;
335
364
  /**
336
365
  * Initialize Company Features Api functions
337
366
  * @param client Assortment Client instance
@@ -341,6 +370,7 @@ type FeatureType = "RETAILERAPI" | "DELTASUPDATEEXPORT" | "ASSORTMENTUIDASHBOARD
341
370
  declare function createCompanyFeaturesApi(client: AsstClient, companyType?: CompanyType): {
342
371
  checkIfStageItemSetupIsEnabled: (signal?: AbortSignal) => Promise<boolean>;
343
372
  enableFeatureForCompany: (featureKey: FeatureType, companyId: number) => Promise<void>;
373
+ getFeaturesForCompany: (companyId: number, signal?: AbortSignal) => Promise<CompanyFeature[]>;
344
374
  };
345
375
 
346
376
  interface FlagOptions {
@@ -961,4 +991,4 @@ declare function createRulesManagementApi(client: AsstClient): {
961
991
  activateRule: (ruleId: string, request: ActivateRuleRequestDto, signal?: AbortSignal) => Promise<void>;
962
992
  };
963
993
 
964
- export { type ActivateRuleRequestDto, type ApplicationType, AsstClient, AttrProdType, type CatalogBriefResponse, type CatalogCreateRequest, type CatalogCreateResponse, type CatalogSearchParams, type CategoriesApi, Company, CompanyBriefByOrg, type CompanyRelationship, CompanyRelationshipUpsertBody, CompanySearch, CompanySearchParams, CompanyType, DownLoadItemsParams, Export, type FeatureType, type FlagOptions, type FlattenedItemIdentifiers, GenerateImportTemplateParams, type GetItemErrorSummaryParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemErrorDetailsResultV2, ItemErrorSummaryResultV2, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, type ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, type ItemsApi, Locale, type OrgSummary, type RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, type UniqueCriteriaOptions, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompaniesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createRulesManagementApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
994
+ export { type ActivateRuleRequestDto, type ApplicationType, AsstClient, AttrProdType, type CatalogBriefResponse, type CatalogCreateRequest, type CatalogCreateResponse, type CatalogSearchParams, type CategoriesApi, Company, CompanyBriefByOrg, type CompanyFeature, type CompanyRelationship, CompanyRelationshipUpsertBody, CompanySearch, CompanySearchParams, CompanyType, DownLoadItemsParams, Export, type FeatureType, type FlagOptions, type FlattenedItemIdentifiers, GenerateImportTemplateParams, type GetItemErrorSummaryParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemErrorDetailsResultV2, ItemErrorSummaryResultV2, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, type ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, type ItemsApi, Locale, type OrgSummary, type RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, type UniqueCriteriaOptions, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompaniesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createRulesManagementApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
package/dist/index.js CHANGED
@@ -17,16 +17,16 @@ import {
17
17
  createTradingPartnerSettingsApi,
18
18
  createUniqueCriteriaApi,
19
19
  createWhoAmIApi
20
- } from "./chunk-T6TAJDKV.js";
20
+ } from "./chunk-35CHQUKC.js";
21
21
  import {
22
22
  AsstClient,
23
23
  BASE_URLS,
24
24
  envSchema
25
- } from "./chunk-M63TD46U.js";
25
+ } from "./chunk-XSWAONLH.js";
26
26
  import {
27
27
  PRODUCT_CODE_DEFAULT_VALUE,
28
28
  SELECTION_CODE_DEFAULT_VALUE
29
- } from "./chunk-FJMJ3WLT.js";
29
+ } from "./chunk-3H53DOKQ.js";
30
30
  export {
31
31
  AsstClient,
32
32
  BASE_URLS,
package/dist/msw.cjs CHANGED
@@ -3873,7 +3873,7 @@ ZodNaN.create = (params) => {
3873
3873
  ...processCreateParams(params)
3874
3874
  });
3875
3875
  };
3876
- var BRAND = Symbol("zod_brand");
3876
+ var BRAND = /* @__PURE__ */ Symbol("zod_brand");
3877
3877
  var ZodBranded = class extends ZodType {
3878
3878
  _parse(input) {
3879
3879
  const { ctx } = this._processInputParams(input);
@@ -5352,6 +5352,19 @@ var import_msw13 = require("msw");
5352
5352
 
5353
5353
  // lib/companyFeatures/index.ts
5354
5354
  var BASE_URL13 = "feature";
5355
+ var companyFeatureSchema = external_exports.object({
5356
+ /**
5357
+ * Validated as a string at runtime so that unknown feature types returned by the
5358
+ * backend (e.g., after a backend-only deploy) never cause a ZodError. The TypeScript
5359
+ * type is narrowed to `FeatureType` so callers still get compile-time checking when
5360
+ * comparing against known values.
5361
+ */
5362
+ type: external_exports.string(),
5363
+ display: external_exports.string(),
5364
+ active: external_exports.boolean(),
5365
+ assortmentSystemInstanceId: external_exports.string().nullish(),
5366
+ defaultCatalogId: external_exports.number().nullish()
5367
+ });
5355
5368
 
5356
5369
  // lib/companyFeatures/mockHandlers.ts
5357
5370
  function createCompanyFeaturesApiHandlers(client) {
@@ -5361,8 +5374,15 @@ function createCompanyFeaturesApiHandlers(client) {
5361
5374
  }) {
5362
5375
  return import_msw13.http.get(`${client.getBaseUrl()}${BASE_URL13}/isphaseditemsetupenabled`, resolver);
5363
5376
  }
5377
+ function getFeaturesForCompany(resolver = (_info) => {
5378
+ const data = (0, import_zod_mock12.generateMock)(external_exports.array(companyFeatureSchema));
5379
+ return import_msw13.HttpResponse.json(data);
5380
+ }) {
5381
+ return import_msw13.http.get(`${client.getBaseUrl()}${BASE_URL13}/company/:companyId`, resolver);
5382
+ }
5364
5383
  return {
5365
- checkIfStageItemSetupIsEnabled
5384
+ checkIfStageItemSetupIsEnabled,
5385
+ getFeaturesForCompany
5366
5386
  };
5367
5387
  }
5368
5388
 
@@ -5545,8 +5565,8 @@ var featureResponseSchema = external_exports.object({
5545
5565
  createdBy: external_exports.string().nullable(),
5546
5566
  createdDate: external_exports.number().nullable(),
5547
5567
  display: external_exports.string(),
5548
- modifiedBy: external_exports.string().nullable(),
5549
- modifiedDate: external_exports.number().nullable(),
5568
+ modifiedBy: external_exports.string().nullish(),
5569
+ modifiedDate: external_exports.number().nullish(),
5550
5570
  type: external_exports.string()
5551
5571
  });
5552
5572
  var identitySchema = external_exports.object({
package/dist/msw.d.cts CHANGED
@@ -2,7 +2,7 @@ import * as msw from 'msw';
2
2
  import { ResponseResolver, HttpResponseResolver, HttpHandler } from 'msw';
3
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
- import { C as CompanySearch, a as Company } from './CompanySearch-T6HJx4a6.cjs';
5
+ import { C as CompanySearch, a as Company } from './CompanySearch-7_L0_02Y.cjs';
6
6
  import 'ky';
7
7
 
8
8
  /**
@@ -634,6 +634,7 @@ declare function createSpreadsheetTemplateApiHandlers(client: AsstClient): {
634
634
  */
635
635
  declare function createCompanyFeaturesApiHandlers(client: AsstClient): {
636
636
  checkIfStageItemSetupIsEnabled: (resolver?: ResponseResolver) => msw.HttpHandler;
637
+ getFeaturesForCompany: (resolver?: ResponseResolver) => msw.HttpHandler;
637
638
  };
638
639
 
639
640
  /**
@@ -727,8 +728,8 @@ declare function createCompaniesApiHandlers(client: AsstClient): {
727
728
  createdBy: string | null;
728
729
  createdDate: number | null;
729
730
  display: string;
730
- modifiedBy: string | null;
731
- modifiedDate: number | null;
731
+ modifiedBy?: string | null | undefined;
732
+ modifiedDate?: number | null | undefined;
732
733
  }[];
733
734
  identity: {
734
735
  orgId: string | null;
package/dist/msw.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as msw from 'msw';
2
2
  import { ResponseResolver, HttpResponseResolver, HttpHandler } from 'msw';
3
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
- import { C as CompanySearch, a as Company } from './CompanySearch-T6HJx4a6.js';
5
+ import { C as CompanySearch, a as Company } from './CompanySearch-7_L0_02Y.js';
6
6
  import 'ky';
7
7
 
8
8
  /**
@@ -634,6 +634,7 @@ declare function createSpreadsheetTemplateApiHandlers(client: AsstClient): {
634
634
  */
635
635
  declare function createCompanyFeaturesApiHandlers(client: AsstClient): {
636
636
  checkIfStageItemSetupIsEnabled: (resolver?: ResponseResolver) => msw.HttpHandler;
637
+ getFeaturesForCompany: (resolver?: ResponseResolver) => msw.HttpHandler;
637
638
  };
638
639
 
639
640
  /**
@@ -727,8 +728,8 @@ declare function createCompaniesApiHandlers(client: AsstClient): {
727
728
  createdBy: string | null;
728
729
  createdDate: number | null;
729
730
  display: string;
730
- modifiedBy: string | null;
731
- modifiedDate: number | null;
731
+ modifiedBy?: string | null | undefined;
732
+ modifiedDate?: number | null | undefined;
732
733
  }[];
733
734
  identity: {
734
735
  orgId: string | null;
package/dist/msw.js CHANGED
@@ -19,8 +19,9 @@ import {
19
19
  BASE_URL9,
20
20
  BASE_URL_V2,
21
21
  FlattenedItemIdentifierKeysSchema,
22
+ companyFeatureSchema,
22
23
  retailerTradingPartnerStages
23
- } from "./chunk-T6TAJDKV.js";
24
+ } from "./chunk-35CHQUKC.js";
24
25
  import {
25
26
  attrProdTypeSchema,
26
27
  catalogBriefResponseSchema,
@@ -49,7 +50,7 @@ import {
49
50
  tradingPartnerAccessByCompanyIdSchema,
50
51
  userAccountSchema,
51
52
  vendorPartnerAttGroupsSchema
52
- } from "./chunk-FJMJ3WLT.js";
53
+ } from "./chunk-3H53DOKQ.js";
53
54
 
54
55
  // lib/imports/mockHandlers.ts
55
56
  import { generateMock } from "@anatine/zod-mock";
@@ -458,8 +459,15 @@ function createCompanyFeaturesApiHandlers(client) {
458
459
  }) {
459
460
  return http13.get(`${client.getBaseUrl()}${BASE_URL10}/isphaseditemsetupenabled`, resolver);
460
461
  }
462
+ function getFeaturesForCompany(resolver = (_info) => {
463
+ const data = generateMock12(external_exports.array(companyFeatureSchema));
464
+ return HttpResponse13.json(data);
465
+ }) {
466
+ return http13.get(`${client.getBaseUrl()}${BASE_URL10}/company/:companyId`, resolver);
467
+ }
461
468
  return {
462
- checkIfStageItemSetupIsEnabled
469
+ checkIfStageItemSetupIsEnabled,
470
+ getFeaturesForCompany
463
471
  };
464
472
  }
465
473
 
@@ -5873,4 +5873,4 @@ declare const itemErrorDetailsResultV2Schema: z.ZodObject<{
5873
5873
  }>;
5874
5874
  type ItemErrorDetailsResultV2 = z.infer<typeof itemErrorDetailsResultV2Schema>;
5875
5875
 
5876
- export { type MediaItem as $, type AttrProdType as A, type ItemMap as B, type CompanyRelationshipUpsertBody as C, type DownLoadItemsParams as D, type Export as E, type ItemTable as F, type GenerateImportTemplateParams as G, type PhaseEnum as H, type Import as I, type TradingPartnerStage as J, type AttributeDetail as K, type Locale as L, type CategoryEnum as M, type ComponentDetails as N, type GroupedAttributeList as O, PRODUCT_CODE_DEFAULT_VALUE as P, type GroupedAttributes as Q, type RegisteredService as R, type SpreadsheetTemplate as S, type TradingPartnerAccessByCompanyId as T, type UserAccount as U, type VendorPartnerAttGroups as V, type GroupedItem as W, type HierarchyCategory as X, type HierarchyDetails as Y, type ItemPrice as Z, type PackComponentDetails as _, type ImportsStatus as a, itemErrorDetailsSchema as a$, type Bulb as a0, type PackComponent as a1, type RepeatableGroup as a2, type PackComponentItemInfo as a3, type ItemErrorDetails as a4, type ItemErrorSummaryV2 as a5, type ItemErrorDetailsV2 as a6, type TradingPartnerStageV2 as a7, importDetailSchema as a8, importErrorSchema as a9, packComponentSchema as aA, itemDetailViewSchema as aB, attributeDetailSchema as aC, repeatableGroupSchema as aD, componentDetailsSchema as aE, hierarchyDetailsSchema as aF, groupedAttributesSchema as aG, hierarchyCategorySchema as aH, groupedAttributeListSchema as aI, packComponentDetailsSchema as aJ, packComponentItemInfoSchema as aK, localeSchema as aL, attrProdTypeSchema as aM, spreadsheetTemplateCompanySchema as aN, spreadsheetTemplateSchema as aO, connectionSchema as aP, tradingPartnerAccessByCompanyIdSchema as aQ, itemPartnerSchema as aR, companyRelationshipUpsertBodySchema as aS, identityServiceDatetimePreferencesSchema as aT, identityServiceOrganizationMetadataSchema as aU, identityServiceOrganizationSchema as aV, identityServicePreferencesSchema as aW, identityServiceUserSchema as aX, registeredServiceSchema as aY, userAccountSchema as aZ, itemErrorDetailsResultSchema as a_, importErrorsSchema as aa, importSchema as ab, importsStatusSchema as ac, importStatusEnumSchema as ad, generateImportTemplateParamsSchema as ae, vendorPartnerAttGroupsSchema as af, exportDayOfWeekEnum as ag, exportFrequencyEnum as ah, exportTypeEnum as ai, exportSchema as aj, downLoadItemsParamsSchema as ak, itemCategoriesSearchSchema as al, itemCategorySchema as am, categoryTypeSchema as an, itemHeaderSchema as ao, itemMapSchema as ap, itemSearchViewSchema as aq, itemTableSchema as ar, phaseEnumSchema as as, tradingPartnerStageSchema as at, bulbSchema as au, itemPriceSchema as av, mediaItemSchema as aw, itemDetailSchema as ax, groupedItemSchema as ay, categoryEnumSchema as az, type ItemPartner as b, itemErrorDetailsResultV2Schema as b0, itemErrorSummaryV2Schema as b1, itemErrorDetailsV2Schema as b2, tradingPartnerStageV2Schema as b3, itemErrorSummaryResultV2Schema as b4, type ItemCategoriesSearch as c, type ItemSearchView as d, type ItemDetailView as e, type ItemDetail as f, type ItemErrorDetailsResult as g, type ItemErrorSummaryResultV2 as h, type ItemErrorDetailsResultV2 as i, type ImportDetails as j, type ImportError as k, type ImportErrors as l, type ImportStatusEnum as m, type ExportDayOfWeek as n, type ExportFrequency as o, type ExportType as p, type Connection as q, SELECTION_CODE_DEFAULT_VALUE as r, type ItemCategory as s, type SpreadsheetTemplateCompany as t, type IdentityServiceOrganizationMetadata as u, type IdentityServiceDatetimePreferences as v, type IdentityServiceOrganization as w, type IdentityServicePreferences as x, type IdentityServiceUser as y, type ItemHeader as z };
5876
+ export { type PackComponentDetails as $, type AttrProdType as A, type Bulb as B, type CompanyRelationshipUpsertBody as C, type DownLoadItemsParams as D, type Export as E, type ImportError as F, type GenerateImportTemplateParams as G, type HierarchyCategory as H, type Import as I, type ImportErrors as J, type ImportStatusEnum as K, type Locale as L, type ItemCategory as M, type ItemErrorDetails as N, type ItemErrorDetailsV2 as O, type ItemErrorSummaryV2 as P, type ItemHeader as Q, type ItemMap as R, type SpreadsheetTemplate as S, type TradingPartnerAccessByCompanyId as T, type UserAccount as U, type VendorPartnerAttGroups as V, type ItemPrice as W, type ItemTable as X, type MediaItem as Y, PRODUCT_CODE_DEFAULT_VALUE as Z, type PackComponent as _, type ImportsStatus as a, spreadsheetTemplateSchema as a$, type PackComponentItemInfo as a0, type PhaseEnum as a1, type RegisteredService as a2, type RepeatableGroup as a3, SELECTION_CODE_DEFAULT_VALUE as a4, type SpreadsheetTemplateCompany as a5, type TradingPartnerStage as a6, type TradingPartnerStageV2 as a7, attrProdTypeSchema as a8, attributeDetailSchema as a9, importStatusEnumSchema as aA, importsStatusSchema as aB, itemCategoriesSearchSchema as aC, itemCategorySchema as aD, itemDetailSchema as aE, itemDetailViewSchema as aF, itemErrorDetailsResultSchema as aG, itemErrorDetailsResultV2Schema as aH, itemErrorDetailsSchema as aI, itemErrorDetailsV2Schema as aJ, itemErrorSummaryResultV2Schema as aK, itemErrorSummaryV2Schema as aL, itemHeaderSchema as aM, itemMapSchema as aN, itemPartnerSchema as aO, itemPriceSchema as aP, itemSearchViewSchema as aQ, itemTableSchema as aR, localeSchema as aS, mediaItemSchema as aT, packComponentDetailsSchema as aU, packComponentItemInfoSchema as aV, packComponentSchema as aW, phaseEnumSchema as aX, registeredServiceSchema as aY, repeatableGroupSchema as aZ, spreadsheetTemplateCompanySchema as a_, bulbSchema as aa, categoryEnumSchema as ab, categoryTypeSchema as ac, companyRelationshipUpsertBodySchema as ad, componentDetailsSchema as ae, connectionSchema as af, downLoadItemsParamsSchema as ag, exportDayOfWeekEnum as ah, exportFrequencyEnum as ai, exportSchema as aj, exportTypeEnum as ak, generateImportTemplateParamsSchema as al, groupedAttributeListSchema as am, groupedAttributesSchema as an, groupedItemSchema as ao, hierarchyCategorySchema as ap, hierarchyDetailsSchema as aq, identityServiceDatetimePreferencesSchema as ar, identityServiceOrganizationMetadataSchema as as, identityServiceOrganizationSchema as at, identityServicePreferencesSchema as au, identityServiceUserSchema as av, importDetailSchema as aw, importErrorSchema as ax, importErrorsSchema as ay, importSchema as az, type ItemPartner as b, tradingPartnerAccessByCompanyIdSchema as b0, tradingPartnerStageSchema as b1, tradingPartnerStageV2Schema as b2, userAccountSchema as b3, vendorPartnerAttGroupsSchema as b4, type ItemCategoriesSearch as c, type ItemSearchView as d, type ItemDetailView as e, type ItemDetail as f, type ItemErrorDetailsResult as g, type ItemErrorSummaryResultV2 as h, type ItemErrorDetailsResultV2 as i, type AttributeDetail as j, type CategoryEnum as k, type ComponentDetails as l, type Connection as m, type ExportDayOfWeek as n, type ExportFrequency as o, type ExportType as p, type GroupedAttributeList as q, type GroupedAttributes as r, type GroupedItem as s, type HierarchyDetails as t, type IdentityServiceDatetimePreferences as u, type IdentityServiceOrganization as v, type IdentityServiceOrganizationMetadata as w, type IdentityServicePreferences as x, type IdentityServiceUser as y, type ImportDetails as z };
@@ -5873,4 +5873,4 @@ declare const itemErrorDetailsResultV2Schema: z.ZodObject<{
5873
5873
  }>;
5874
5874
  type ItemErrorDetailsResultV2 = z.infer<typeof itemErrorDetailsResultV2Schema>;
5875
5875
 
5876
- export { type MediaItem as $, type AttrProdType as A, type ItemMap as B, type CompanyRelationshipUpsertBody as C, type DownLoadItemsParams as D, type Export as E, type ItemTable as F, type GenerateImportTemplateParams as G, type PhaseEnum as H, type Import as I, type TradingPartnerStage as J, type AttributeDetail as K, type Locale as L, type CategoryEnum as M, type ComponentDetails as N, type GroupedAttributeList as O, PRODUCT_CODE_DEFAULT_VALUE as P, type GroupedAttributes as Q, type RegisteredService as R, type SpreadsheetTemplate as S, type TradingPartnerAccessByCompanyId as T, type UserAccount as U, type VendorPartnerAttGroups as V, type GroupedItem as W, type HierarchyCategory as X, type HierarchyDetails as Y, type ItemPrice as Z, type PackComponentDetails as _, type ImportsStatus as a, itemErrorDetailsSchema as a$, type Bulb as a0, type PackComponent as a1, type RepeatableGroup as a2, type PackComponentItemInfo as a3, type ItemErrorDetails as a4, type ItemErrorSummaryV2 as a5, type ItemErrorDetailsV2 as a6, type TradingPartnerStageV2 as a7, importDetailSchema as a8, importErrorSchema as a9, packComponentSchema as aA, itemDetailViewSchema as aB, attributeDetailSchema as aC, repeatableGroupSchema as aD, componentDetailsSchema as aE, hierarchyDetailsSchema as aF, groupedAttributesSchema as aG, hierarchyCategorySchema as aH, groupedAttributeListSchema as aI, packComponentDetailsSchema as aJ, packComponentItemInfoSchema as aK, localeSchema as aL, attrProdTypeSchema as aM, spreadsheetTemplateCompanySchema as aN, spreadsheetTemplateSchema as aO, connectionSchema as aP, tradingPartnerAccessByCompanyIdSchema as aQ, itemPartnerSchema as aR, companyRelationshipUpsertBodySchema as aS, identityServiceDatetimePreferencesSchema as aT, identityServiceOrganizationMetadataSchema as aU, identityServiceOrganizationSchema as aV, identityServicePreferencesSchema as aW, identityServiceUserSchema as aX, registeredServiceSchema as aY, userAccountSchema as aZ, itemErrorDetailsResultSchema as a_, importErrorsSchema as aa, importSchema as ab, importsStatusSchema as ac, importStatusEnumSchema as ad, generateImportTemplateParamsSchema as ae, vendorPartnerAttGroupsSchema as af, exportDayOfWeekEnum as ag, exportFrequencyEnum as ah, exportTypeEnum as ai, exportSchema as aj, downLoadItemsParamsSchema as ak, itemCategoriesSearchSchema as al, itemCategorySchema as am, categoryTypeSchema as an, itemHeaderSchema as ao, itemMapSchema as ap, itemSearchViewSchema as aq, itemTableSchema as ar, phaseEnumSchema as as, tradingPartnerStageSchema as at, bulbSchema as au, itemPriceSchema as av, mediaItemSchema as aw, itemDetailSchema as ax, groupedItemSchema as ay, categoryEnumSchema as az, type ItemPartner as b, itemErrorDetailsResultV2Schema as b0, itemErrorSummaryV2Schema as b1, itemErrorDetailsV2Schema as b2, tradingPartnerStageV2Schema as b3, itemErrorSummaryResultV2Schema as b4, type ItemCategoriesSearch as c, type ItemSearchView as d, type ItemDetailView as e, type ItemDetail as f, type ItemErrorDetailsResult as g, type ItemErrorSummaryResultV2 as h, type ItemErrorDetailsResultV2 as i, type ImportDetails as j, type ImportError as k, type ImportErrors as l, type ImportStatusEnum as m, type ExportDayOfWeek as n, type ExportFrequency as o, type ExportType as p, type Connection as q, SELECTION_CODE_DEFAULT_VALUE as r, type ItemCategory as s, type SpreadsheetTemplateCompany as t, type IdentityServiceOrganizationMetadata as u, type IdentityServiceDatetimePreferences as v, type IdentityServiceOrganization as w, type IdentityServicePreferences as x, type IdentityServiceUser as y, type ItemHeader as z };
5876
+ export { type PackComponentDetails as $, type AttrProdType as A, type Bulb as B, type CompanyRelationshipUpsertBody as C, type DownLoadItemsParams as D, type Export as E, type ImportError as F, type GenerateImportTemplateParams as G, type HierarchyCategory as H, type Import as I, type ImportErrors as J, type ImportStatusEnum as K, type Locale as L, type ItemCategory as M, type ItemErrorDetails as N, type ItemErrorDetailsV2 as O, type ItemErrorSummaryV2 as P, type ItemHeader as Q, type ItemMap as R, type SpreadsheetTemplate as S, type TradingPartnerAccessByCompanyId as T, type UserAccount as U, type VendorPartnerAttGroups as V, type ItemPrice as W, type ItemTable as X, type MediaItem as Y, PRODUCT_CODE_DEFAULT_VALUE as Z, type PackComponent as _, type ImportsStatus as a, spreadsheetTemplateSchema as a$, type PackComponentItemInfo as a0, type PhaseEnum as a1, type RegisteredService as a2, type RepeatableGroup as a3, SELECTION_CODE_DEFAULT_VALUE as a4, type SpreadsheetTemplateCompany as a5, type TradingPartnerStage as a6, type TradingPartnerStageV2 as a7, attrProdTypeSchema as a8, attributeDetailSchema as a9, importStatusEnumSchema as aA, importsStatusSchema as aB, itemCategoriesSearchSchema as aC, itemCategorySchema as aD, itemDetailSchema as aE, itemDetailViewSchema as aF, itemErrorDetailsResultSchema as aG, itemErrorDetailsResultV2Schema as aH, itemErrorDetailsSchema as aI, itemErrorDetailsV2Schema as aJ, itemErrorSummaryResultV2Schema as aK, itemErrorSummaryV2Schema as aL, itemHeaderSchema as aM, itemMapSchema as aN, itemPartnerSchema as aO, itemPriceSchema as aP, itemSearchViewSchema as aQ, itemTableSchema as aR, localeSchema as aS, mediaItemSchema as aT, packComponentDetailsSchema as aU, packComponentItemInfoSchema as aV, packComponentSchema as aW, phaseEnumSchema as aX, registeredServiceSchema as aY, repeatableGroupSchema as aZ, spreadsheetTemplateCompanySchema as a_, bulbSchema as aa, categoryEnumSchema as ab, categoryTypeSchema as ac, companyRelationshipUpsertBodySchema as ad, componentDetailsSchema as ae, connectionSchema as af, downLoadItemsParamsSchema as ag, exportDayOfWeekEnum as ah, exportFrequencyEnum as ai, exportSchema as aj, exportTypeEnum as ak, generateImportTemplateParamsSchema as al, groupedAttributeListSchema as am, groupedAttributesSchema as an, groupedItemSchema as ao, hierarchyCategorySchema as ap, hierarchyDetailsSchema as aq, identityServiceDatetimePreferencesSchema as ar, identityServiceOrganizationMetadataSchema as as, identityServiceOrganizationSchema as at, identityServicePreferencesSchema as au, identityServiceUserSchema as av, importDetailSchema as aw, importErrorSchema as ax, importErrorsSchema as ay, importSchema as az, type ItemPartner as b, tradingPartnerAccessByCompanyIdSchema as b0, tradingPartnerStageSchema as b1, tradingPartnerStageV2Schema as b2, userAccountSchema as b3, vendorPartnerAttGroupsSchema as b4, type ItemCategoriesSearch as c, type ItemSearchView as d, type ItemDetailView as e, type ItemDetail as f, type ItemErrorDetailsResult as g, type ItemErrorSummaryResultV2 as h, type ItemErrorDetailsResultV2 as i, type AttributeDetail as j, type CategoryEnum as k, type ComponentDetails as l, type Connection as m, type ExportDayOfWeek as n, type ExportFrequency as o, type ExportType as p, type GroupedAttributeList as q, type GroupedAttributes as r, type GroupedItem as s, type HierarchyDetails as t, type IdentityServiceDatetimePreferences as u, type IdentityServiceOrganization as v, type IdentityServiceOrganizationMetadata as w, type IdentityServicePreferences as x, type IdentityServiceUser as y, type ImportDetails as z };
package/dist/zod.cjs CHANGED
@@ -3929,7 +3929,7 @@ ZodNaN.create = (params) => {
3929
3929
  ...processCreateParams(params)
3930
3930
  });
3931
3931
  };
3932
- var BRAND = Symbol("zod_brand");
3932
+ var BRAND = /* @__PURE__ */ Symbol("zod_brand");
3933
3933
  var ZodBranded = class extends ZodType {
3934
3934
  _parse(input) {
3935
3935
  const { ctx } = this._processInputParams(input);
@@ -5051,8 +5051,8 @@ var featureResponseSchema = external_exports.object({
5051
5051
  createdBy: external_exports.string().nullable(),
5052
5052
  createdDate: external_exports.number().nullable(),
5053
5053
  display: external_exports.string(),
5054
- modifiedBy: external_exports.string().nullable(),
5055
- modifiedDate: external_exports.number().nullable(),
5054
+ modifiedBy: external_exports.string().nullish(),
5055
+ modifiedDate: external_exports.number().nullish(),
5056
5056
  type: external_exports.string()
5057
5057
  });
5058
5058
  var identitySchema = external_exports.object({
package/dist/zod.d.cts CHANGED
@@ -1,4 +1,4 @@
1
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-CN3wjL1r.cjs';
2
+ export { a8 as attrProdTypeSchema, a9 as attributeDetailSchema, aa as bulbSchema, ab as categoryEnumSchema, ac as categoryTypeSchema, ad as companyRelationshipUpsertBodySchema, ae as componentDetailsSchema, af as connectionSchema, ag as downLoadItemsParamsSchema, ah as exportDayOfWeekEnum, ai as exportFrequencyEnum, aj as exportSchema, ak as exportTypeEnum, al as generateImportTemplateParamsSchema, am as groupedAttributeListSchema, an as groupedAttributesSchema, ao as groupedItemSchema, ap as hierarchyCategorySchema, aq as hierarchyDetailsSchema, ar as identityServiceDatetimePreferencesSchema, as as identityServiceOrganizationMetadataSchema, at as identityServiceOrganizationSchema, au as identityServicePreferencesSchema, av as identityServiceUserSchema, aw as importDetailSchema, ax as importErrorSchema, ay as importErrorsSchema, az as importSchema, aA as importStatusEnumSchema, aB as importsStatusSchema, aC as itemCategoriesSearchSchema, aD as itemCategorySchema, aE as itemDetailSchema, aF as itemDetailViewSchema, aG as itemErrorDetailsResultSchema, aH as itemErrorDetailsResultV2Schema, aI as itemErrorDetailsSchema, aJ as itemErrorDetailsV2Schema, aK as itemErrorSummaryResultV2Schema, aL as itemErrorSummaryV2Schema, aM as itemHeaderSchema, aN as itemMapSchema, aO as itemPartnerSchema, aP as itemPriceSchema, aQ as itemSearchViewSchema, aR as itemTableSchema, aS as localeSchema, aT as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aW as packComponentSchema, aX as phaseEnumSchema, aY as registeredServiceSchema, aZ as repeatableGroupSchema, a_ as spreadsheetTemplateCompanySchema, a$ as spreadsheetTemplateSchema, b0 as tradingPartnerAccessByCompanyIdSchema, b1 as tradingPartnerStageSchema, b2 as tradingPartnerStageV2Schema, b3 as userAccountSchema, b4 as vendorPartnerAttGroupsSchema } from './zod-CFHO1Ktc.cjs';
3
3
  import 'zod';
4
4
  import 'ky';
package/dist/zod.d.ts CHANGED
@@ -1,4 +1,4 @@
1
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-Bv6sVW6n.js';
2
+ export { a8 as attrProdTypeSchema, a9 as attributeDetailSchema, aa as bulbSchema, ab as categoryEnumSchema, ac as categoryTypeSchema, ad as companyRelationshipUpsertBodySchema, ae as componentDetailsSchema, af as connectionSchema, ag as downLoadItemsParamsSchema, ah as exportDayOfWeekEnum, ai as exportFrequencyEnum, aj as exportSchema, ak as exportTypeEnum, al as generateImportTemplateParamsSchema, am as groupedAttributeListSchema, an as groupedAttributesSchema, ao as groupedItemSchema, ap as hierarchyCategorySchema, aq as hierarchyDetailsSchema, ar as identityServiceDatetimePreferencesSchema, as as identityServiceOrganizationMetadataSchema, at as identityServiceOrganizationSchema, au as identityServicePreferencesSchema, av as identityServiceUserSchema, aw as importDetailSchema, ax as importErrorSchema, ay as importErrorsSchema, az as importSchema, aA as importStatusEnumSchema, aB as importsStatusSchema, aC as itemCategoriesSearchSchema, aD as itemCategorySchema, aE as itemDetailSchema, aF as itemDetailViewSchema, aG as itemErrorDetailsResultSchema, aH as itemErrorDetailsResultV2Schema, aI as itemErrorDetailsSchema, aJ as itemErrorDetailsV2Schema, aK as itemErrorSummaryResultV2Schema, aL as itemErrorSummaryV2Schema, aM as itemHeaderSchema, aN as itemMapSchema, aO as itemPartnerSchema, aP as itemPriceSchema, aQ as itemSearchViewSchema, aR as itemTableSchema, aS as localeSchema, aT as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aW as packComponentSchema, aX as phaseEnumSchema, aY as registeredServiceSchema, aZ as repeatableGroupSchema, a_ as spreadsheetTemplateCompanySchema, a$ as spreadsheetTemplateSchema, b0 as tradingPartnerAccessByCompanyIdSchema, b1 as tradingPartnerStageSchema, b2 as tradingPartnerStageV2Schema, b3 as userAccountSchema, b4 as vendorPartnerAttGroupsSchema } from './zod-DOSs4Eg9.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-M63TD46U.js";
3
+ } from "./chunk-XSWAONLH.js";
4
4
  import {
5
5
  attrProdTypeSchema,
6
6
  attributeDetailSchema,
@@ -62,7 +62,7 @@ import {
62
62
  tradingPartnerStageV2Schema,
63
63
  userAccountSchema,
64
64
  vendorPartnerAttGroupsSchema
65
- } from "./chunk-FJMJ3WLT.js";
65
+ } from "./chunk-3H53DOKQ.js";
66
66
 
67
67
  // lib/exports/models/ExportType.ts
68
68
  var exportTypeEnum = external_exports.enum(["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]);
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.1.0",
6
+ "version": "5.3.0",
7
7
  "files": [
8
8
  "dist"
9
9
  ],