@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.
Files changed (47) hide show
  1. package/es/__shims__/next-rest-framework.d.ts +48 -0
  2. package/es/backend/actions/create-delete-action.d.ts +1 -1
  3. package/es/backend/actions/create-get-action.d.ts +2 -2
  4. package/es/backend/actions/create-get-action.js +1 -1
  5. package/es/backend/actions/create-get-list-action.d.ts +3 -3
  6. package/es/backend/actions/create-get-list-action.js +3 -3
  7. package/es/backend/actions/create-post-action.d.ts +2 -2
  8. package/es/backend/actions/create-post-action.js +8 -2
  9. package/es/backend/actions/create-put-action.d.ts +3 -3
  10. package/es/backend/actions/get-list-data.d.ts +3 -15
  11. package/es/backend/actions/get-list-query.d.ts +5 -7
  12. package/es/backend/actions/transform-body.d.ts +1 -1
  13. package/es/backend/actions/transform-body.js +0 -2
  14. package/es/backend/route-operation/delete-operation.d.ts +2 -2
  15. package/es/backend/route-operation/get-list-operation.d.ts +2 -2
  16. package/es/backend/route-operation/get-operation.d.ts +3 -3
  17. package/es/backend/route-operation/get-operation.js +18 -24
  18. package/es/backend/route-operation/post-operation.d.ts +2 -2
  19. package/es/backend/route-operation/post-operation.js +21 -16
  20. package/es/backend/route-operation/put-operation.d.ts +2 -2
  21. package/es/backend/route-operation/put-operation.js +21 -16
  22. package/es/backend/schemas/index.d.ts +76 -1249
  23. package/es/backend/schemas/index.js +1 -6
  24. package/lib/__shims__/next-rest-framework.d.ts +48 -0
  25. package/lib/backend/actions/create-delete-action.d.ts +1 -1
  26. package/lib/backend/actions/create-get-action.d.ts +2 -2
  27. package/lib/backend/actions/create-get-list-action.d.ts +3 -3
  28. package/lib/backend/actions/create-post-action.d.ts +2 -2
  29. package/lib/backend/actions/create-post-action.js +3 -1
  30. package/lib/backend/actions/create-put-action.d.ts +3 -3
  31. package/lib/backend/actions/create-put-action.js +4 -1
  32. package/lib/backend/actions/get-list-data.d.ts +3 -15
  33. package/lib/backend/actions/get-list-query.d.ts +5 -7
  34. package/lib/backend/actions/transform-body.d.ts +1 -1
  35. package/lib/backend/actions/transform-body.js +3 -1
  36. package/lib/backend/route-operation/delete-operation.d.ts +2 -2
  37. package/lib/backend/route-operation/get-list-operation.d.ts +2 -2
  38. package/lib/backend/route-operation/get-list-operation.js +7 -2
  39. package/lib/backend/route-operation/get-operation.d.ts +3 -3
  40. package/lib/backend/route-operation/get-operation.js +6 -3
  41. package/lib/backend/route-operation/post-operation.d.ts +2 -2
  42. package/lib/backend/route-operation/post-operation.js +5 -5
  43. package/lib/backend/route-operation/put-operation.d.ts +2 -2
  44. package/lib/backend/route-operation/put-operation.js +5 -5
  45. package/lib/backend/schemas/index.d.ts +76 -1249
  46. package/lib/backend/schemas/index.js +12 -14
  47. package/package.json +37 -34
@@ -83,20 +83,18 @@ var createTableSchema = ({
83
83
  return {
84
84
  table,
85
85
  selectSchema,
86
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
87
- // @ts-ignore
88
- insertSchema: (0, import_drizzle_zod.createInsertSchema)(insertTable, refineSchema),
89
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
90
- // @ts-ignore
91
- updateSchema: (0, import_drizzle_zod.createUpdateSchema)(updateTable, {
92
- id: import_zod.z.string(),
93
- ...refineSchema
94
- }),
95
- querySchema: selectSchema.pick({
96
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
97
- // @ts-ignore
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.14",
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": "father 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": "^19.8.0",
50
- "@testing-library/react": "^16.2.0",
51
- "@types/react": "^19.0.12",
52
- "@types/react-dom": "^19.0.4",
53
- "@typescript-eslint/eslint-plugin": "^8.32.0",
54
- "@vitest/coverage-v8": "^1.6.1",
55
- "antd": "^5.24.5",
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": "^19.8.0",
59
- "cross-env": "^7.0.3",
60
- "dayjs": "^1.11.13",
61
- "drizzle-orm": "^0.38.3",
62
- "drizzle-zod": "^0.7.1",
63
- "dumi": "^2.4.18",
64
- "dumi-theme-lobehub": "^2.0.1",
65
- "eslint": "^8.57.1",
66
- "eslint-config-next": "^15.3.2",
67
- "eslint-config-prettier": "^10.1.5",
68
- "eslint-plugin-prettier": "^5.4.0",
69
- "father": "^4.5.2",
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": "^15.5.0",
72
- "next": "^15.3.2",
73
- "next-rest-framework": "^6.0.7",
74
- "prettier": "^3.5.3",
75
- "pretty-quick": "^4.1.1",
76
- "react": "^19.0.0",
77
- "react-dom": "^19.0.0",
78
- "remark-cli": "^11",
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.19.3",
81
- "typescript": "^5.8.2",
82
- "vitest": "^1.6.1",
83
- "zod": "^3.24.4"
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
  }