@spscommerce/asst-api 0.0.1-beta.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/ImportsStatus-52d26b01.d.ts +134 -0
- package/dist/ImportsStatusEnum-22c03a0b.d.ts +51 -0
- package/dist/ItemCategoriesSearch-1bb945de.d.ts +275 -0
- package/dist/ItemCategory-768179bd.d.ts +99 -0
- package/dist/TradingPartnerAccessByCompanyId-479e3e57.d.ts +124 -0
- package/dist/asstClient-f6a1693a.d.ts +29 -0
- package/dist/chunk-7HCJJATJ.js +40 -0
- package/dist/chunk-B7B2ACF4.js +3794 -0
- package/dist/chunk-D3ML6E4G.js +3787 -0
- package/dist/chunk-LGP22FRF.js +0 -0
- package/dist/chunk-RNUSCCKB.js +183 -0
- package/dist/index.cjs +4038 -0
- package/dist/index.d.ts +125 -0
- package/dist/index.js +69 -0
- package/dist/msw.cjs +4036 -0
- package/dist/msw.d.ts +228 -0
- package/dist/msw.js +190 -0
- package/dist/zod.cjs +3874 -0
- package/dist/zod.d.ts +3 -0
- package/dist/zod.js +74 -0
- package/package.json +67 -0
package/dist/zod.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { f as exportSchema, i as importErrorsSchema, d as importSchema, e as importsStatusSchema, g as itemCategoriesSearchSchema } from './ItemCategoriesSearch-1bb945de.js';
|
|
2
|
+
export { h as exportDayOfWeekEnum, j as exportFrequencyEnum, k as exportTypeEnum, i as importDetailSchema, f as importErrorSchema, g as importStatusEnumSchema, l as itemCategorySchema } from './ItemCategory-768179bd.js';
|
|
3
|
+
import 'zod';
|
package/dist/zod.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import "./chunk-LGP22FRF.js";
|
|
2
|
+
import {
|
|
3
|
+
importDetailSchema,
|
|
4
|
+
importErrorSchema,
|
|
5
|
+
importErrorsSchema,
|
|
6
|
+
importSchema,
|
|
7
|
+
importStatusEnumSchema,
|
|
8
|
+
importsStatusSchema,
|
|
9
|
+
itemCategoriesSearchSchema,
|
|
10
|
+
itemCategorySchema,
|
|
11
|
+
z
|
|
12
|
+
} from "./chunk-D3ML6E4G.js";
|
|
13
|
+
|
|
14
|
+
// lib/exports/models/ExportType.ts
|
|
15
|
+
var exportTypeEnum = z.enum(["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]);
|
|
16
|
+
|
|
17
|
+
// lib/exports/models/ExportFrequency.ts
|
|
18
|
+
var exportFrequencyEnum = z.enum([
|
|
19
|
+
"IMMEDIATE",
|
|
20
|
+
"ONETIME",
|
|
21
|
+
"DAILY",
|
|
22
|
+
"WEEKLY",
|
|
23
|
+
"MONTHLY"
|
|
24
|
+
]);
|
|
25
|
+
|
|
26
|
+
// lib/exports/models/ExportDayOfWeek.ts
|
|
27
|
+
var exportDayOfWeekEnum = z.enum([
|
|
28
|
+
"MON",
|
|
29
|
+
"TUE",
|
|
30
|
+
"WED",
|
|
31
|
+
"THU",
|
|
32
|
+
"FRI",
|
|
33
|
+
"SAT",
|
|
34
|
+
"SUN"
|
|
35
|
+
]);
|
|
36
|
+
|
|
37
|
+
// lib/exports/models/Export.ts
|
|
38
|
+
var exportSchema = z.object({
|
|
39
|
+
exportName: z.string(),
|
|
40
|
+
exportDescription: z.string(),
|
|
41
|
+
isActive: z.boolean(),
|
|
42
|
+
exportType: exportTypeEnum,
|
|
43
|
+
exportFrequency: exportFrequencyEnum,
|
|
44
|
+
includeValidAttributes: z.optional(z.boolean()),
|
|
45
|
+
dayOfMonth: z.optional(z.number()),
|
|
46
|
+
dayOfWeek: z.optional(exportDayOfWeekEnum),
|
|
47
|
+
hourOfDay: z.optional(z.number()),
|
|
48
|
+
date: z.optional(z.string()),
|
|
49
|
+
catalogIds: z.optional(z.array(z.number())),
|
|
50
|
+
itemInfoIds: z.optional(z.array(z.number())),
|
|
51
|
+
excludeItemInfoIds: z.optional(z.array(z.number())),
|
|
52
|
+
selectionCodeIds: z.optional(z.array(z.number())),
|
|
53
|
+
productCodeIds: z.optional(z.array(z.number())),
|
|
54
|
+
productTypes: z.optional(z.array(z.string())),
|
|
55
|
+
deliveryType: z.optional(z.string()),
|
|
56
|
+
spreadsheetTemplateId: z.optional(z.number()),
|
|
57
|
+
emailAddresses: z.optional(z.array(z.string())),
|
|
58
|
+
subjectLine: z.optional(z.string()),
|
|
59
|
+
additionalLocales: z.optional(z.array(z.string()))
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
exportDayOfWeekEnum,
|
|
63
|
+
exportFrequencyEnum,
|
|
64
|
+
exportSchema,
|
|
65
|
+
exportTypeEnum,
|
|
66
|
+
importDetailSchema,
|
|
67
|
+
importErrorSchema,
|
|
68
|
+
importErrorsSchema,
|
|
69
|
+
importSchema,
|
|
70
|
+
importStatusEnumSchema,
|
|
71
|
+
importsStatusSchema,
|
|
72
|
+
itemCategoriesSearchSchema,
|
|
73
|
+
itemCategorySchema
|
|
74
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spscommerce/asst-api",
|
|
3
|
+
"description": "Assortment Api is a collection of HTTP functions to use Assortment endpoints",
|
|
4
|
+
"author": "Assortment",
|
|
5
|
+
"repository": "https://github.com/SPSCommerce/assortment-main/tree/main/ui/packages/asst-api",
|
|
6
|
+
"version": "0.0.1-beta.0",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./msw": {
|
|
20
|
+
"import": "./dist/msw.js",
|
|
21
|
+
"require": "./dist/msw.cjs",
|
|
22
|
+
"types": "./dist/msw.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./zod": {
|
|
25
|
+
"import": "./dist/zod.js",
|
|
26
|
+
"require": "./dist/zod.cjs",
|
|
27
|
+
"types": "./dist/zod.d.ts"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"example": "vite",
|
|
32
|
+
"build": "tsup",
|
|
33
|
+
"build:watch": "tsup --watch"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@anatine/zod-mock": "^3.9.0",
|
|
37
|
+
"@faker-js/faker": "^7.6.0",
|
|
38
|
+
"msw": "^1.1.1"
|
|
39
|
+
},
|
|
40
|
+
"peerDependenciesMeta": {
|
|
41
|
+
"@anatine/zod-mock": {
|
|
42
|
+
"optional": true
|
|
43
|
+
},
|
|
44
|
+
"@faker-js/faker": {
|
|
45
|
+
"optional": true
|
|
46
|
+
},
|
|
47
|
+
"msw": {
|
|
48
|
+
"optional": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@anatine/zod-mock": "^3.9.0",
|
|
53
|
+
"@faker-js/faker": "^7.6.0",
|
|
54
|
+
"msw": "^1.1.1",
|
|
55
|
+
"tsup": "^6.7.0",
|
|
56
|
+
"typescript": "^4.9.3",
|
|
57
|
+
"vite": "^4.1.0"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"ky": "^0.33.3",
|
|
61
|
+
"ky-universal": "^0.11.0",
|
|
62
|
+
"query-string": "^8.1.0"
|
|
63
|
+
},
|
|
64
|
+
"msw": {
|
|
65
|
+
"workerDirectory": "public"
|
|
66
|
+
}
|
|
67
|
+
}
|