@spscommerce/asst-api 1.2.1 → 1.4.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 +197 -150
- package/dist/msw.d.cts +50 -97
- package/dist/msw.d.ts +50 -97
- package/dist/msw.js +176 -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/index-Zz-6wNSh.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { A as AsstClient, C as CompanyBriefByOrg } from './CompanyBriefByOrg-LTdsUKm4.js';
|
|
3
|
-
|
|
4
|
-
declare const retailerTradingPartnerStages: z.ZodArray<z.ZodEnum<["Core", "Core Plus", "Core Advanced", "Enriched", "Standard Requirements"]>, "many">;
|
|
5
|
-
type RetailerTradingPartnerStages = z.infer<typeof retailerTradingPartnerStages>;
|
|
6
|
-
|
|
7
|
-
declare const itemStatusResponseSchema: z.ZodObject<{
|
|
8
|
-
itemStatuses: z.ZodArray<z.ZodObject<{
|
|
9
|
-
itemId: z.ZodString;
|
|
10
|
-
itemOrgStatuses: z.ZodArray<z.ZodObject<{
|
|
11
|
-
org: z.ZodObject<{
|
|
12
|
-
ref: z.ZodString;
|
|
13
|
-
id: z.ZodString;
|
|
14
|
-
name: z.ZodString;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
name: string;
|
|
17
|
-
id: string;
|
|
18
|
-
ref: string;
|
|
19
|
-
}, {
|
|
20
|
-
name: string;
|
|
21
|
-
id: string;
|
|
22
|
-
ref: string;
|
|
23
|
-
}>;
|
|
24
|
-
lowestInvalidStage: z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED", "STANDARD_REQUIREMENTS"]>>;
|
|
25
|
-
validForRelationship: z.ZodBoolean;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
org: {
|
|
28
|
-
name: string;
|
|
29
|
-
id: string;
|
|
30
|
-
ref: string;
|
|
31
|
-
};
|
|
32
|
-
lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
33
|
-
validForRelationship: boolean;
|
|
34
|
-
}, {
|
|
35
|
-
org: {
|
|
36
|
-
name: string;
|
|
37
|
-
id: string;
|
|
38
|
-
ref: string;
|
|
39
|
-
};
|
|
40
|
-
lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
41
|
-
validForRelationship: boolean;
|
|
42
|
-
}>, "many">;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
itemId: string;
|
|
45
|
-
itemOrgStatuses: {
|
|
46
|
-
org: {
|
|
47
|
-
name: string;
|
|
48
|
-
id: string;
|
|
49
|
-
ref: string;
|
|
50
|
-
};
|
|
51
|
-
lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
52
|
-
validForRelationship: boolean;
|
|
53
|
-
}[];
|
|
54
|
-
}, {
|
|
55
|
-
itemId: string;
|
|
56
|
-
itemOrgStatuses: {
|
|
57
|
-
org: {
|
|
58
|
-
name: string;
|
|
59
|
-
id: string;
|
|
60
|
-
ref: string;
|
|
61
|
-
};
|
|
62
|
-
lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
63
|
-
validForRelationship: boolean;
|
|
64
|
-
}[];
|
|
65
|
-
}>, "many">;
|
|
66
|
-
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
itemStatuses: {
|
|
68
|
-
itemId: string;
|
|
69
|
-
itemOrgStatuses: {
|
|
70
|
-
org: {
|
|
71
|
-
name: string;
|
|
72
|
-
id: string;
|
|
73
|
-
ref: string;
|
|
74
|
-
};
|
|
75
|
-
lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
76
|
-
validForRelationship: boolean;
|
|
77
|
-
}[];
|
|
78
|
-
}[];
|
|
79
|
-
}, {
|
|
80
|
-
itemStatuses: {
|
|
81
|
-
itemId: string;
|
|
82
|
-
itemOrgStatuses: {
|
|
83
|
-
org: {
|
|
84
|
-
name: string;
|
|
85
|
-
id: string;
|
|
86
|
-
ref: string;
|
|
87
|
-
};
|
|
88
|
-
lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
89
|
-
validForRelationship: boolean;
|
|
90
|
-
}[];
|
|
91
|
-
}[];
|
|
92
|
-
}>;
|
|
93
|
-
type ItemStatusResponse = z.infer<typeof itemStatusResponseSchema>;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Initialize Companies Api functions
|
|
97
|
-
* @param client Assortment Client instance
|
|
98
|
-
* @returns A CompanyBriefByOrg object containing Companies API functions
|
|
99
|
-
*/
|
|
100
|
-
declare function createCompaniesApi(client: AsstClient): {
|
|
101
|
-
getCompanyBriefInfoByOrg: (params?: {
|
|
102
|
-
orgId?: string;
|
|
103
|
-
}, signal?: AbortSignal) => Promise<CompanyBriefByOrg>;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { type ItemStatusResponse as I, type RetailerTradingPartnerStages as R, createCompaniesApi as c };
|