@spscommerce/asst-api 4.2.2 → 4.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.
- package/dist/{CompanyBriefByOrg-Dy2omcT0.d.cts → SpsItemIdResponse-0VgfCmG_.d.cts} +26 -37
- package/dist/{CompanyBriefByOrg-Dy2omcT0.d.ts → SpsItemIdResponse-0VgfCmG_.d.ts} +26 -37
- package/dist/SpsItemIdResponse-CI_Ao86P.d.cts +87 -0
- package/dist/SpsItemIdResponse-CI_Ao86P.d.ts +87 -0
- package/dist/SpsItemIdResponse-s0vCXepG.d.cts +74 -0
- package/dist/SpsItemIdResponse-s0vCXepG.d.ts +74 -0
- package/dist/chunk-355LPVI6.js +126 -0
- package/dist/{chunk-BVCWT7AV.js → chunk-55ECRTUX.js} +1 -1
- package/dist/chunk-63KIELUR.js +128 -0
- package/dist/{chunk-4RARACQK.js → chunk-CI3ZSIT4.js} +29 -13
- package/dist/chunk-DK2OMRWR.js +134 -0
- package/dist/chunk-FCUIJXCD.js +544 -0
- package/dist/{chunk-MH76527N.js → chunk-L4AWOEED.js} +6 -6
- package/dist/chunk-LKUGPDIT.js +4896 -0
- package/dist/chunk-NFZI7D22.js +544 -0
- package/dist/chunk-NUUQDRHD.js +4899 -0
- package/dist/chunk-RPGGEEFE.js +79 -0
- package/dist/index.cjs +14 -10
- package/dist/index.d.cts +18 -7
- package/dist/index.d.ts +18 -7
- package/dist/index.js +5 -17
- package/dist/msw.cjs +71 -25
- package/dist/msw.d.cts +58 -4
- package/dist/msw.d.ts +58 -4
- package/dist/msw.js +61 -13
- package/dist/{zod-BRmUARvM.d.cts → zod-C3fOiO-H.d.cts} +38 -17
- package/dist/zod-C41Rts8D.d.cts +5903 -0
- package/dist/{zod-CFNzalN6.d.ts → zod-CJ6AFTQr.d.ts} +38 -17
- package/dist/zod-CJmsC_DX.d.cts +5900 -0
- package/dist/zod-COyz02Lh.d.ts +5903 -0
- package/dist/zod-CzPw-bfk.d.cts +5900 -0
- package/dist/zod-vDuspd-x.d.ts +5900 -0
- package/dist/zod-xWM6u1LJ.d.ts +5900 -0
- package/dist/zod.cjs +14 -10
- package/dist/zod.d.cts +2 -2
- package/dist/zod.d.ts +2 -2
- package/dist/zod.js +2 -2
- package/package.json +3 -3
- package/dist/index-9KKchLwe.d.cts +0 -14
- package/dist/index-DeivEdv0.d.ts +0 -14
package/dist/zod.cjs
CHANGED
|
@@ -4131,14 +4131,14 @@ var ostring = () => stringType().optional();
|
|
|
4131
4131
|
var onumber = () => numberType().optional();
|
|
4132
4132
|
var oboolean = () => booleanType().optional();
|
|
4133
4133
|
var coerce = {
|
|
4134
|
-
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
4135
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
4136
|
-
boolean: (arg) => ZodBoolean.create({
|
|
4134
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4135
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4136
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
4137
4137
|
...arg,
|
|
4138
4138
|
coerce: true
|
|
4139
|
-
}),
|
|
4140
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
4141
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
4139
|
+
})),
|
|
4140
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4141
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
|
|
4142
4142
|
};
|
|
4143
4143
|
var NEVER = INVALID;
|
|
4144
4144
|
|
|
@@ -4224,13 +4224,17 @@ var vendorPartnerAttGroupsSchema = external_exports.object({
|
|
|
4224
4224
|
partnerAttributeGroups: external_exports.array(external_exports.number())
|
|
4225
4225
|
});
|
|
4226
4226
|
|
|
4227
|
+
// lib/_common/ApplicationType.ts
|
|
4228
|
+
var applicationTypeSchema = external_exports.enum(["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]);
|
|
4229
|
+
|
|
4227
4230
|
// lib/imports/models/GenerateImportTemplateParams.ts
|
|
4228
4231
|
var generateImportTemplateParamsSchema = external_exports.object({
|
|
4229
4232
|
"multi-sheet": external_exports.boolean(),
|
|
4233
|
+
callingApplicationType: applicationTypeSchema.optional(),
|
|
4230
4234
|
gids: external_exports.string().optional(),
|
|
4231
|
-
productTypeIds: external_exports.string().optional(),
|
|
4232
4235
|
groupTypeId: external_exports.number().optional(),
|
|
4233
|
-
includeGuides: external_exports.boolean().optional()
|
|
4236
|
+
includeGuides: external_exports.boolean().optional(),
|
|
4237
|
+
productTypeIds: external_exports.string().optional()
|
|
4234
4238
|
});
|
|
4235
4239
|
|
|
4236
4240
|
// lib/exports/models/ExportType.ts
|
|
@@ -4702,7 +4706,7 @@ var companyRelationshipUpsertBodySchema = external_exports.object({
|
|
|
4702
4706
|
retailerId: external_exports.number(),
|
|
4703
4707
|
catalogId: external_exports.number(),
|
|
4704
4708
|
active: external_exports.boolean(),
|
|
4705
|
-
applicationType: external_exports.array(
|
|
4709
|
+
applicationType: external_exports.array(applicationTypeSchema).default([])
|
|
4706
4710
|
});
|
|
4707
4711
|
|
|
4708
4712
|
// lib/tradingPartners/models/ItemPartner.ts
|
|
@@ -4714,7 +4718,7 @@ var itemPartnerSchema = external_exports.object({
|
|
|
4714
4718
|
isActive: external_exports.number(),
|
|
4715
4719
|
createdDate: external_exports.string(),
|
|
4716
4720
|
modifiedDate: external_exports.string(),
|
|
4717
|
-
applications: external_exports.array(
|
|
4721
|
+
applications: external_exports.array(applicationTypeSchema)
|
|
4718
4722
|
});
|
|
4719
4723
|
|
|
4720
4724
|
// lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
|
package/dist/zod.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-s0vCXepG.cjs';
|
|
2
|
+
export { aN as attrProdTypeSchema, aD as attributeDetailSchema, av as bulbSchema, aA as categoryEnumSchema, ao as categoryTypeSchema, b6 as companyBriefByOrgSchema, aT as companyRelationshipUpsertBodySchema, aF as componentDetailsSchema, aQ as connectionSchema, al as downLoadItemsParamsSchema, ah as exportDayOfWeekEnum, ai as exportFrequencyEnum, ak as exportSchema, aj as exportTypeEnum, af as generateImportTemplateParamsSchema, aJ as groupedAttributeListSchema, aH as groupedAttributesSchema, az as groupedItemSchema, aI as hierarchyCategorySchema, aG as hierarchyDetailsSchema, aU as identityServiceDatetimePreferencesSchema, aV as identityServiceOrganizationMetadataSchema, aW as identityServiceOrganizationSchema, aX as identityServicePreferencesSchema, aY as identityServiceUserSchema, a9 as importDetailSchema, aa as importErrorSchema, ab as importErrorsSchema, ac as importSchema, ae as importStatusEnumSchema, ad as importsStatusSchema, am as itemCategoriesSearchSchema, an as itemCategorySchema, ay as itemDetailSchema, aC as itemDetailViewSchema, a$ as itemErrorDetailsResultSchema, b1 as itemErrorDetailsResultV2Schema, b0 as itemErrorDetailsSchema, b3 as itemErrorDetailsV2Schema, b5 as itemErrorSummaryResultV2Schema, b2 as itemErrorSummaryV2Schema, ap as itemHeaderSchema, aq as itemMapSchema, aS as itemPartnerSchema, aw as itemPriceSchema, ar as itemSearchViewSchema, as as itemTableSchema, aM as localeSchema, ax as mediaItemSchema, aK as packComponentDetailsSchema, aL as packComponentItemInfoSchema, aB as packComponentSchema, at as phaseEnumSchema, aZ as registeredServiceSchema, aE as repeatableGroupSchema, aO as spreadsheetTemplateCompanySchema, aP as spreadsheetTemplateSchema, aR as tradingPartnerAccessByCompanyIdSchema, au as tradingPartnerStageSchema, b4 as tradingPartnerStageV2Schema, a_ as userAccountSchema, ag as vendorPartnerAttGroupsSchema } from './zod-C41Rts8D.cjs';
|
|
3
3
|
import 'ky';
|
|
4
4
|
import 'zod';
|
package/dist/zod.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-s0vCXepG.js';
|
|
2
|
+
export { aN as attrProdTypeSchema, aD as attributeDetailSchema, av as bulbSchema, aA as categoryEnumSchema, ao as categoryTypeSchema, b6 as companyBriefByOrgSchema, aT as companyRelationshipUpsertBodySchema, aF as componentDetailsSchema, aQ as connectionSchema, al as downLoadItemsParamsSchema, ah as exportDayOfWeekEnum, ai as exportFrequencyEnum, ak as exportSchema, aj as exportTypeEnum, af as generateImportTemplateParamsSchema, aJ as groupedAttributeListSchema, aH as groupedAttributesSchema, az as groupedItemSchema, aI as hierarchyCategorySchema, aG as hierarchyDetailsSchema, aU as identityServiceDatetimePreferencesSchema, aV as identityServiceOrganizationMetadataSchema, aW as identityServiceOrganizationSchema, aX as identityServicePreferencesSchema, aY as identityServiceUserSchema, a9 as importDetailSchema, aa as importErrorSchema, ab as importErrorsSchema, ac as importSchema, ae as importStatusEnumSchema, ad as importsStatusSchema, am as itemCategoriesSearchSchema, an as itemCategorySchema, ay as itemDetailSchema, aC as itemDetailViewSchema, a$ as itemErrorDetailsResultSchema, b1 as itemErrorDetailsResultV2Schema, b0 as itemErrorDetailsSchema, b3 as itemErrorDetailsV2Schema, b5 as itemErrorSummaryResultV2Schema, b2 as itemErrorSummaryV2Schema, ap as itemHeaderSchema, aq as itemMapSchema, aS as itemPartnerSchema, aw as itemPriceSchema, ar as itemSearchViewSchema, as as itemTableSchema, aM as localeSchema, ax as mediaItemSchema, aK as packComponentDetailsSchema, aL as packComponentItemInfoSchema, aB as packComponentSchema, at as phaseEnumSchema, aZ as registeredServiceSchema, aE as repeatableGroupSchema, aO as spreadsheetTemplateCompanySchema, aP as spreadsheetTemplateSchema, aR as tradingPartnerAccessByCompanyIdSchema, au as tradingPartnerStageSchema, b4 as tradingPartnerStageV2Schema, a_ as userAccountSchema, ag as vendorPartnerAttGroupsSchema } from './zod-COyz02Lh.js';
|
|
3
3
|
import 'ky';
|
|
4
4
|
import 'zod';
|
package/dist/zod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-55ECRTUX.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-
|
|
65
|
+
} from "./chunk-LKUGPDIT.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
|
+
"version": "4.3.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@anatine/zod-mock": "^3.13.4",
|
|
37
37
|
"@faker-js/faker": "^8.4.1",
|
|
38
|
-
"msw": "^2.10.
|
|
38
|
+
"msw": "^2.10.5"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@anatine/zod-mock": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@anatine/zod-mock": "^3.13.4",
|
|
53
53
|
"@faker-js/faker": "^8.4.1",
|
|
54
54
|
"@microsoft/api-extractor": "^7.47.9",
|
|
55
|
-
"msw": "^2.10.
|
|
55
|
+
"msw": "^2.10.5",
|
|
56
56
|
"tsup": "^8.3.0",
|
|
57
57
|
"vite": "^6.2.6"
|
|
58
58
|
},
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { A as AsstClient, C as CompanyBriefByOrg } from './CompanyBriefByOrg-Dy2omcT0.cjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Initialize Companies Api functions
|
|
5
|
-
* @param client Assortment Client instance
|
|
6
|
-
* @returns A CompanyBriefByOrg object containing Companies API functions
|
|
7
|
-
*/
|
|
8
|
-
declare function createCompaniesApi(client: AsstClient): {
|
|
9
|
-
getCompanyBriefInfoByOrg: (params?: {
|
|
10
|
-
orgId?: string;
|
|
11
|
-
}, signal?: AbortSignal) => Promise<CompanyBriefByOrg>;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { createCompaniesApi as c };
|
package/dist/index-DeivEdv0.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { A as AsstClient, C as CompanyBriefByOrg } from './CompanyBriefByOrg-Dy2omcT0.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Initialize Companies Api functions
|
|
5
|
-
* @param client Assortment Client instance
|
|
6
|
-
* @returns A CompanyBriefByOrg object containing Companies API functions
|
|
7
|
-
*/
|
|
8
|
-
declare function createCompaniesApi(client: AsstClient): {
|
|
9
|
-
getCompanyBriefInfoByOrg: (params?: {
|
|
10
|
-
orgId?: string;
|
|
11
|
-
}, signal?: AbortSignal) => Promise<CompanyBriefByOrg>;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { createCompaniesApi as c };
|