@spscommerce/asst-api 1.2.1 → 1.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-itus4RMD.d.cts +131 -0
- package/dist/CompanyBriefByOrg-itus4RMD.d.ts +131 -0
- package/dist/{chunk-AH5MG2WF.js → chunk-5AROSGQB.js} +7 -13
- package/dist/{chunk-IO62OUOU.js → chunk-TTT6PM27.js} +57 -21
- package/dist/index-B8ovDTs5.d.cts +14 -0
- package/dist/index-BFKgtuVI.d.ts +14 -0
- package/dist/index.cjs +63 -34
- package/dist/index.d.cts +112 -14
- package/dist/index.d.ts +112 -14
- package/dist/index.js +2 -2
- package/dist/msw.cjs +196 -150
- package/dist/msw.d.cts +50 -97
- package/dist/msw.d.ts +50 -97
- package/dist/msw.js +175 -159
- package/dist/{zod-NE2xXWlK.d.ts → zod-C5pRCHei.d.ts} +3329 -33
- package/dist/zod-DzhoVlw_.d.cts +6712 -0
- package/dist/zod.cjs +7 -13
- package/dist/zod.d.cts +2 -2
- package/dist/zod.d.ts +2 -2
- package/dist/zod.js +1 -1
- package/package.json +24 -23
- package/dist/CompanyBriefByOrg-LTdsUKm4.d.ts +0 -3427
- package/dist/index-Zz-6wNSh.d.ts +0 -106
package/dist/zod.cjs
CHANGED
|
@@ -105,7 +105,7 @@ __export(zod_exports, {
|
|
|
105
105
|
module.exports = __toCommonJS(zod_exports);
|
|
106
106
|
|
|
107
107
|
// lib/asstClient.ts
|
|
108
|
-
var
|
|
108
|
+
var import_ky = __toESM(require("ky"), 1);
|
|
109
109
|
|
|
110
110
|
// ../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
111
111
|
var util;
|
|
@@ -565,19 +565,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
565
565
|
var isValid = (x) => x.status === "valid";
|
|
566
566
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
567
567
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
568
|
-
if (kind === "a" && !f)
|
|
569
|
-
|
|
570
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
571
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
568
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
569
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
572
570
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
573
571
|
}
|
|
574
572
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
575
|
-
if (kind === "m")
|
|
576
|
-
|
|
577
|
-
if (
|
|
578
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
579
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
580
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
573
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
574
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
575
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
581
576
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
582
577
|
}
|
|
583
578
|
var errorUtil;
|
|
@@ -2296,8 +2291,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
2296
2291
|
});
|
|
2297
2292
|
status.dirty();
|
|
2298
2293
|
}
|
|
2299
|
-
} else if (unknownKeys === "strip")
|
|
2300
|
-
;
|
|
2294
|
+
} else if (unknownKeys === "strip") ;
|
|
2301
2295
|
else {
|
|
2302
2296
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2303
2297
|
}
|
package/dist/zod.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as
|
|
2
|
-
export {
|
|
1
|
+
export { d as attributeValidValuesSchema, f as companyBriefByOrgSchema, e as envSchema, s as spsItemIdResponseSchema } from './CompanyBriefByOrg-itus4RMD.cjs';
|
|
2
|
+
export { at as attrDatatypeNameEnumSchema, aX as attrProdTypeSchema, au as attributeDefinitionSchema, aN as attributeDetailSchema, av as attributeGroupSchema, aw as attributeMetaDataSchema, ax as attributeSummarySchema, ay as attributesByCompanySchema, aF as bulbSchema, aK as categoryEnumSchema, b1 as companyRelationshipUpsertBodySchema, aP as componentDetailsSchema, a_ as connectionSchema, ap as downLoadItemsParamsSchema, al as exportDayOfWeekEnum, am as exportFrequencyEnum, ao as exportSchema, an as exportTypeEnum, aj as generateImportTemplateParamsSchema, aT as groupedAttributeListSchema, aR as groupedAttributesSchema, aJ as groupedItemSchema, aS as hierarchyCategorySchema, aQ as hierarchyDetailsSchema, b2 as identityServiceDatetimePreferencesSchema, b3 as identityServiceOrganizationMetadataSchema, b4 as identityServiceOrganizationSchema, b5 as identityServicePreferencesSchema, b6 as identityServiceUserSchema, ad as importDetailSchema, ae as importErrorSchema, af as importErrorsSchema, ag as importSchema, ai as importStatusEnumSchema, ah as importsStatusSchema, aq as itemCategoriesSearchSchema, ar as itemCategorySchema, aI as itemDetailSchema, aM as itemDetailViewSchema, b9 as itemErrorDetailsResultSchema, bb as itemErrorDetailsResultV2Schema, ba as itemErrorDetailsSchema, bd as itemErrorDetailsV2Schema, bf as itemErrorSummaryResultV2Schema, bc as itemErrorSummaryV2Schema, az as itemHeaderSchema, as as itemHierarchyResponseSchema, aA as itemMapSchema, b0 as itemPartnerSchema, aG as itemPriceSchema, aB as itemSearchViewSchema, aC as itemTableSchema, aW as localeSchema, aH as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aL as packComponentSchema, aD as phaseEnumSchema, b7 as registeredServiceSchema, aO as repeatableGroupSchema, aY as spreadsheetTemplateCompanySchema, aZ as spreadsheetTemplateSchema, a$ as tradingPartnerAccessByCompanyIdSchema, aE as tradingPartnerStageSchema, be as tradingPartnerStageV2Schema, b8 as userAccountSchema, ak as vendorPartnerAttGroupsSchema } from './zod-DzhoVlw_.cjs';
|
|
3
3
|
import 'ky';
|
|
4
4
|
import 'zod';
|
package/dist/zod.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as
|
|
2
|
-
export {
|
|
1
|
+
export { d as attributeValidValuesSchema, f as companyBriefByOrgSchema, e as envSchema, s as spsItemIdResponseSchema } from './CompanyBriefByOrg-itus4RMD.js';
|
|
2
|
+
export { at as attrDatatypeNameEnumSchema, aX as attrProdTypeSchema, au as attributeDefinitionSchema, aN as attributeDetailSchema, av as attributeGroupSchema, aw as attributeMetaDataSchema, ax as attributeSummarySchema, ay as attributesByCompanySchema, aF as bulbSchema, aK as categoryEnumSchema, b1 as companyRelationshipUpsertBodySchema, aP as componentDetailsSchema, a_ as connectionSchema, ap as downLoadItemsParamsSchema, al as exportDayOfWeekEnum, am as exportFrequencyEnum, ao as exportSchema, an as exportTypeEnum, aj as generateImportTemplateParamsSchema, aT as groupedAttributeListSchema, aR as groupedAttributesSchema, aJ as groupedItemSchema, aS as hierarchyCategorySchema, aQ as hierarchyDetailsSchema, b2 as identityServiceDatetimePreferencesSchema, b3 as identityServiceOrganizationMetadataSchema, b4 as identityServiceOrganizationSchema, b5 as identityServicePreferencesSchema, b6 as identityServiceUserSchema, ad as importDetailSchema, ae as importErrorSchema, af as importErrorsSchema, ag as importSchema, ai as importStatusEnumSchema, ah as importsStatusSchema, aq as itemCategoriesSearchSchema, ar as itemCategorySchema, aI as itemDetailSchema, aM as itemDetailViewSchema, b9 as itemErrorDetailsResultSchema, bb as itemErrorDetailsResultV2Schema, ba as itemErrorDetailsSchema, bd as itemErrorDetailsV2Schema, bf as itemErrorSummaryResultV2Schema, bc as itemErrorSummaryV2Schema, az as itemHeaderSchema, as as itemHierarchyResponseSchema, aA as itemMapSchema, b0 as itemPartnerSchema, aG as itemPriceSchema, aB as itemSearchViewSchema, aC as itemTableSchema, aW as localeSchema, aH as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aL as packComponentSchema, aD as phaseEnumSchema, b7 as registeredServiceSchema, aO as repeatableGroupSchema, aY as spreadsheetTemplateCompanySchema, aZ as spreadsheetTemplateSchema, a$ as tradingPartnerAccessByCompanyIdSchema, aE as tradingPartnerStageSchema, be as tradingPartnerStageV2Schema, b8 as userAccountSchema, ak as vendorPartnerAttGroupsSchema } from './zod-C5pRCHei.js';
|
|
3
3
|
import 'ky';
|
|
4
4
|
import 'zod';
|
package/dist/zod.js
CHANGED
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": "1.
|
|
6
|
+
"version": "1.3.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
@@ -12,25 +12,30 @@
|
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
15
16
|
"import": "./dist/index.js",
|
|
16
|
-
"require": "./dist/index.cjs"
|
|
17
|
-
"types": "./dist/index.d.ts"
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
18
18
|
},
|
|
19
19
|
"./msw": {
|
|
20
|
+
"types": "./dist/msw.d.ts",
|
|
20
21
|
"import": "./dist/msw.js",
|
|
21
|
-
"require": "./dist/msw.cjs"
|
|
22
|
-
"types": "./dist/msw.d.ts"
|
|
22
|
+
"require": "./dist/msw.cjs"
|
|
23
23
|
},
|
|
24
24
|
"./zod": {
|
|
25
|
+
"types": "./dist/zod.d.ts",
|
|
25
26
|
"import": "./dist/zod.js",
|
|
26
|
-
"require": "./dist/zod.cjs"
|
|
27
|
-
"types": "./dist/zod.d.ts"
|
|
27
|
+
"require": "./dist/zod.cjs"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"example": "vite",
|
|
32
|
+
"build": "tsup",
|
|
33
|
+
"build:watch": "tsup --watch"
|
|
34
|
+
},
|
|
30
35
|
"peerDependencies": {
|
|
31
|
-
"@anatine/zod-mock": "^3.
|
|
32
|
-
"@faker-js/faker": "^
|
|
33
|
-
"msw": "^
|
|
36
|
+
"@anatine/zod-mock": "^3.13.4",
|
|
37
|
+
"@faker-js/faker": "^8.4.1",
|
|
38
|
+
"msw": "^2.4.9"
|
|
34
39
|
},
|
|
35
40
|
"peerDependenciesMeta": {
|
|
36
41
|
"@anatine/zod-mock": {
|
|
@@ -44,22 +49,18 @@
|
|
|
44
49
|
}
|
|
45
50
|
},
|
|
46
51
|
"devDependencies": {
|
|
47
|
-
"@anatine/zod-mock": "^3.
|
|
48
|
-
"@faker-js/faker": "^
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
+
"@anatine/zod-mock": "^3.13.4",
|
|
53
|
+
"@faker-js/faker": "^8.4.1",
|
|
54
|
+
"@microsoft/api-extractor": "^7.47.9",
|
|
55
|
+
"msw": "^2.4.9",
|
|
56
|
+
"tsup": "^8.3.0",
|
|
57
|
+
"vite": "^5.4.7"
|
|
52
58
|
},
|
|
53
59
|
"dependencies": {
|
|
54
|
-
"ky": "
|
|
55
|
-
"ky-universal": "
|
|
60
|
+
"ky": "0.25.1",
|
|
61
|
+
"ky-universal": "0.8.2"
|
|
56
62
|
},
|
|
57
63
|
"msw": {
|
|
58
64
|
"workerDirectory": "public"
|
|
59
|
-
},
|
|
60
|
-
"scripts": {
|
|
61
|
-
"example": "vite",
|
|
62
|
-
"build": "tsup",
|
|
63
|
-
"build:watch": "tsup --watch"
|
|
64
65
|
}
|
|
65
|
-
}
|
|
66
|
+
}
|