@ai0x0/utils 0.0.14 → 0.0.15
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/es/__shims__/next-rest-framework.d.ts +48 -0
- package/es/backend/actions/create-delete-action.d.ts +1 -1
- package/es/backend/actions/create-get-action.d.ts +2 -2
- package/es/backend/actions/create-get-action.js +1 -1
- package/es/backend/actions/create-get-list-action.d.ts +3 -3
- package/es/backend/actions/create-get-list-action.js +3 -3
- package/es/backend/actions/create-post-action.d.ts +2 -2
- package/es/backend/actions/create-post-action.js +8 -2
- package/es/backend/actions/create-put-action.d.ts +3 -3
- package/es/backend/actions/get-list-data.d.ts +3 -15
- package/es/backend/actions/get-list-query.d.ts +5 -7
- package/es/backend/actions/transform-body.d.ts +1 -1
- package/es/backend/actions/transform-body.js +0 -2
- package/es/backend/route-operation/delete-operation.d.ts +2 -2
- package/es/backend/route-operation/get-list-operation.d.ts +2 -2
- package/es/backend/route-operation/get-operation.d.ts +3 -3
- package/es/backend/route-operation/get-operation.js +18 -24
- package/es/backend/route-operation/post-operation.d.ts +2 -2
- package/es/backend/route-operation/post-operation.js +21 -16
- package/es/backend/route-operation/put-operation.d.ts +2 -2
- package/es/backend/route-operation/put-operation.js +21 -16
- package/es/backend/schemas/index.d.ts +76 -1249
- package/es/backend/schemas/index.js +1 -6
- package/lib/__shims__/next-rest-framework.d.ts +48 -0
- package/lib/backend/actions/create-delete-action.d.ts +1 -1
- package/lib/backend/actions/create-get-action.d.ts +2 -2
- package/lib/backend/actions/create-get-list-action.d.ts +3 -3
- package/lib/backend/actions/create-post-action.d.ts +2 -2
- package/lib/backend/actions/create-post-action.js +3 -1
- package/lib/backend/actions/create-put-action.d.ts +3 -3
- package/lib/backend/actions/create-put-action.js +4 -1
- package/lib/backend/actions/get-list-data.d.ts +3 -15
- package/lib/backend/actions/get-list-query.d.ts +5 -7
- package/lib/backend/actions/transform-body.d.ts +1 -1
- package/lib/backend/actions/transform-body.js +3 -1
- package/lib/backend/route-operation/delete-operation.d.ts +2 -2
- package/lib/backend/route-operation/get-list-operation.d.ts +2 -2
- package/lib/backend/route-operation/get-list-operation.js +7 -2
- package/lib/backend/route-operation/get-operation.d.ts +3 -3
- package/lib/backend/route-operation/get-operation.js +6 -3
- package/lib/backend/route-operation/post-operation.d.ts +2 -2
- package/lib/backend/route-operation/post-operation.js +5 -5
- package/lib/backend/route-operation/put-operation.d.ts +2 -2
- package/lib/backend/route-operation/put-operation.js +5 -5
- package/lib/backend/schemas/index.d.ts +76 -1249
- package/lib/backend/schemas/index.js +12 -14
- package/package.json +37 -34
|
@@ -83,20 +83,18 @@ var createTableSchema = ({
|
|
|
83
83
|
return {
|
|
84
84
|
table,
|
|
85
85
|
selectSchema,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
id: true
|
|
99
|
-
}),
|
|
86
|
+
insertSchema: (0, import_drizzle_zod.createInsertSchema)(
|
|
87
|
+
insertTable,
|
|
88
|
+
refineSchema
|
|
89
|
+
),
|
|
90
|
+
updateSchema: (0, import_drizzle_zod.createUpdateSchema)(
|
|
91
|
+
updateTable,
|
|
92
|
+
{
|
|
93
|
+
id: import_zod.z.string(),
|
|
94
|
+
...refineSchema
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
querySchema: selectSchema.pick({ id: true }),
|
|
100
98
|
queryListSchema: queryListSchema(selectSchema.partial()),
|
|
101
99
|
queryListSelectSchema: selectSchema
|
|
102
100
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai0x0/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "AI0x0 utils",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai0x0"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"es"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "
|
|
27
|
+
"build": "node scripts/build.mjs",
|
|
28
28
|
"build:watch": "father dev",
|
|
29
29
|
"docs:build": "dumi build",
|
|
30
30
|
"docs:dev": "dumi dev",
|
|
@@ -46,45 +46,48 @@
|
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@commitlint/cli": "^
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
49
|
+
"@commitlint/cli": "^20.5.0",
|
|
50
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
51
|
+
"@eslint/js": "^10.0.1",
|
|
52
|
+
"@testing-library/react": "^16.3.2",
|
|
53
|
+
"@types/react": "^19.2.14",
|
|
54
|
+
"@types/react-dom": "^19.2.3",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^8.58.2",
|
|
56
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
57
|
+
"antd": "^6.3.5",
|
|
56
58
|
"babel-plugin-antd-style": "^1.0.4",
|
|
57
59
|
"clean-package": "^2.2.0",
|
|
58
|
-
"commitlint": "^
|
|
59
|
-
"cross-env": "^
|
|
60
|
-
"dayjs": "^1.11.
|
|
61
|
-
"drizzle-orm": "^0.
|
|
62
|
-
"drizzle-zod": "^0.
|
|
63
|
-
"dumi": "^2.4.
|
|
64
|
-
"dumi-theme-lobehub": "^
|
|
65
|
-
"eslint": "
|
|
66
|
-
"eslint-config-next": "^
|
|
67
|
-
"eslint-config-prettier": "^10.1.
|
|
68
|
-
"eslint-plugin-prettier": "^5.
|
|
69
|
-
"father": "^4.
|
|
60
|
+
"commitlint": "^20.5.0",
|
|
61
|
+
"cross-env": "^10.1.0",
|
|
62
|
+
"dayjs": "^1.11.20",
|
|
63
|
+
"drizzle-orm": "^0.45.2",
|
|
64
|
+
"drizzle-zod": "^0.8.3",
|
|
65
|
+
"dumi": "^2.4.23",
|
|
66
|
+
"dumi-theme-lobehub": "^5.0.0",
|
|
67
|
+
"eslint": "9",
|
|
68
|
+
"eslint-config-next": "^16.2.4",
|
|
69
|
+
"eslint-config-prettier": "^10.1.8",
|
|
70
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
71
|
+
"father": "^4.6.18",
|
|
70
72
|
"husky": "^9.1.7",
|
|
71
|
-
"lint-staged": "^
|
|
72
|
-
"next": "^
|
|
73
|
-
"next-rest-framework": "
|
|
74
|
-
"prettier": "^3.
|
|
75
|
-
"pretty-quick": "^4.
|
|
76
|
-
"react": "^19.
|
|
77
|
-
"react-dom": "^19.
|
|
78
|
-
"remark-cli": "^
|
|
73
|
+
"lint-staged": "^16.4.0",
|
|
74
|
+
"next": "^16.2.4",
|
|
75
|
+
"next-rest-framework": "github:mushan0x0/next-rest-framework#pkg",
|
|
76
|
+
"prettier": "^3.8.3",
|
|
77
|
+
"pretty-quick": "^4.2.2",
|
|
78
|
+
"react": "^19.2.5",
|
|
79
|
+
"react-dom": "^19.2.5",
|
|
80
|
+
"remark-cli": "^12.0.1",
|
|
79
81
|
"tsc-files": "^1.1.4",
|
|
80
|
-
"tsx": "^4.
|
|
81
|
-
"typescript": "^
|
|
82
|
-
"vitest": "^1.
|
|
83
|
-
"zod": "^3.
|
|
82
|
+
"tsx": "^4.21.0",
|
|
83
|
+
"typescript": "^6.0.2",
|
|
84
|
+
"vitest": "^2.1.9",
|
|
85
|
+
"zod": "^4.3.6"
|
|
84
86
|
},
|
|
85
87
|
"publishConfig": {
|
|
86
88
|
"access": "public",
|
|
87
89
|
"registry": "https://registry.npmjs.org"
|
|
88
90
|
},
|
|
89
|
-
"packageManager": "pnpm@10.32.1"
|
|
91
|
+
"packageManager": "pnpm@10.32.1",
|
|
92
|
+
"type": "module"
|
|
90
93
|
}
|