@spscommerce/asst-api 4.6.0 → 4.8.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.
package/dist/zod.cjs CHANGED
@@ -5014,6 +5014,88 @@ var companyBriefByOrgSchema = external_exports.object({
5014
5014
  companyTypes: external_exports.array(companyTypeSchema),
5015
5015
  dc4Id: external_exports.number()
5016
5016
  });
5017
+
5018
+ // lib/companies/models/CompanyRelationship.ts
5019
+ var applicationSchema = external_exports.object({
5020
+ application: applicationTypeSchema,
5021
+ relationshipApplicationId: external_exports.number()
5022
+ });
5023
+ var catalogSchema = external_exports.object({
5024
+ active: external_exports.boolean(),
5025
+ catalogId: external_exports.number(),
5026
+ itemPartnerId: external_exports.number()
5027
+ });
5028
+ var relationshipCompanySchema = external_exports.object({
5029
+ companyId: external_exports.number(),
5030
+ companyTypes: external_exports.array(companyTypeSchema),
5031
+ dc4Id: external_exports.number().nullable(),
5032
+ name: external_exports.string(),
5033
+ orgId: external_exports.string()
5034
+ });
5035
+ var relationshipSchema = external_exports.object({
5036
+ active: external_exports.boolean(),
5037
+ application: external_exports.array(applicationSchema),
5038
+ catalog: external_exports.array(catalogSchema),
5039
+ company: relationshipCompanySchema,
5040
+ createdAt: external_exports.number(),
5041
+ modifiedAt: external_exports.number().nullable(),
5042
+ relationshipId: external_exports.number()
5043
+ });
5044
+
5045
+ // lib/companies/models/Company.ts
5046
+ var featureResponseSchema = external_exports.object({
5047
+ active: external_exports.boolean(),
5048
+ createdBy: external_exports.string().nullable(),
5049
+ createdDate: external_exports.number().nullable(),
5050
+ display: external_exports.string(),
5051
+ modifiedBy: external_exports.string().nullable(),
5052
+ modifiedDate: external_exports.number().nullable(),
5053
+ type: external_exports.string()
5054
+ });
5055
+ var identitySchema = external_exports.object({
5056
+ orgId: external_exports.string().nullable(),
5057
+ service: external_exports.object({
5058
+ name: external_exports.string()
5059
+ }).nullable()
5060
+ });
5061
+ var companySchema = external_exports.object({
5062
+ active: external_exports.boolean(),
5063
+ companyId: external_exports.number(),
5064
+ companyTypes: external_exports.array(companyTypeSchema),
5065
+ createdAt: external_exports.number().nullable(),
5066
+ features: external_exports.array(featureResponseSchema),
5067
+ identity: identitySchema,
5068
+ modifiedAt: external_exports.number().nullable(),
5069
+ name: external_exports.string(),
5070
+ relationships: external_exports.array(relationshipSchema),
5071
+ uniqueAttributes: external_exports.array(external_exports.string())
5072
+ });
5073
+
5074
+ // lib/companies/models/CompanySearch.ts
5075
+ var companySearchParamsSchema = external_exports.object({
5076
+ name: external_exports.string().min(2).max(100).optional(),
5077
+ companyIds: external_exports.string().min(2).optional(),
5078
+ orgId: external_exports.string().min(2).optional(),
5079
+ catalogName: external_exports.string().min(2).max(100).optional(),
5080
+ catalogIds: external_exports.string().min(2).optional(),
5081
+ type: companyTypeSchema.optional()
5082
+ });
5083
+ var companyCatalogSchema = external_exports.object({
5084
+ categoryId: external_exports.number(),
5085
+ categoryName: external_exports.string()
5086
+ });
5087
+ var companySearchSchema = external_exports.object({
5088
+ id: external_exports.string(),
5089
+ organizationName: external_exports.string(),
5090
+ description: external_exports.string(),
5091
+ orgId: external_exports.string().optional(),
5092
+ roles: external_exports.array(companyTypeSchema),
5093
+ connections: external_exports.number(),
5094
+ uniqueCriteria: external_exports.array(external_exports.string()).optional(),
5095
+ serviceName: external_exports.string(),
5096
+ catalogs: external_exports.array(companyCatalogSchema),
5097
+ application: external_exports.array(applicationTypeSchema).optional()
5098
+ });
5017
5099
  // Annotate the CommonJS export names for ESM import in node:
5018
5100
  0 && (module.exports = {
5019
5101
  attrProdTypeSchema,
package/dist/zod.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { c as companyBriefByOrgSchema, e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-gAHfCzwP.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-C-emh7a3.cjs';
3
- import 'ky';
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-DscWtu4d.cjs';
4
3
  import 'zod';
4
+ import 'ky';
package/dist/zod.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { c as companyBriefByOrgSchema, e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-gAHfCzwP.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-D3Xe9bw3.js';
3
- import 'ky';
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-CEvcMeWn.js';
4
3
  import 'zod';
4
+ import 'ky';
package/dist/zod.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  envSchema
3
- } from "./chunk-WX4LGXJV.js";
3
+ } from "./chunk-VQDRXCML.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-BMTYM2N6.js";
65
+ } from "./chunk-52RZCPMT.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": "4.6.0",
6
+ "version": "4.8.0",
7
7
  "files": [
8
8
  "dist"
9
9
  ],