@oneclick.dev/cms-core-modules 0.0.69 → 0.0.71

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneclick.dev/cms-core-modules",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,8 @@
13
13
  "./dist/cms-core-modules.css": "./dist/cms-core-modules.css"
14
14
  },
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "src/*/tools.ts"
17
18
  ],
18
19
  "sideEffects": false,
19
20
  "scripts": {
@@ -22,7 +23,7 @@
22
23
  "peerDependencies": {
23
24
  "@formkit/drag-and-drop": "^0.5.3",
24
25
  "@internationalized/date": "^3.8.0",
25
- "@oneclick.dev/cms-kit": "0.0.81",
26
+ "@oneclick.dev/cms-kit": "0.0.83",
26
27
  "@tanstack/vue-table": "^8.21.3",
27
28
  "@vee-validate/zod": "^4.15.0",
28
29
  "@vue-flow/core": "^1.48.1",
@@ -0,0 +1,25 @@
1
+ export const tools = {
2
+ getData: {
3
+ description: 'Gets the current table data',
4
+ params: {
5
+ size: {
6
+ type: 'number',
7
+ default: 10
8
+ }
9
+ },
10
+ returns: {
11
+ type: 'array'
12
+ }
13
+ },
14
+ filterTable: {
15
+ description: 'Filters the current table data',
16
+ params: {
17
+ filter: {
18
+ type: 'string'
19
+ }
20
+ },
21
+ returns: {
22
+ type: 'array'
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ export const tools = {
2
+ }
@@ -0,0 +1 @@
1
+ export const tools = {}
@@ -0,0 +1,25 @@
1
+ export const tools = {
2
+ getData: {
3
+ description: 'Gets the current table data',
4
+ params: {
5
+ size: {
6
+ type: 'number',
7
+ default: 10
8
+ }
9
+ },
10
+ returns: {
11
+ type: 'array'
12
+ }
13
+ },
14
+ filterTable: {
15
+ description: 'Filters the current table data',
16
+ params: {
17
+ filter: {
18
+ type: 'string'
19
+ }
20
+ },
21
+ returns: {
22
+ type: 'array'
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ export const tools = {
2
+ getData: {
3
+ description: 'Gets the current table data',
4
+ params: {
5
+ size: {
6
+ type: 'number',
7
+ default: 10
8
+ }
9
+ },
10
+ returns: {
11
+ type: 'array'
12
+ }
13
+ },
14
+ filterTable: {
15
+ description: 'Filters the current table data',
16
+ params: {
17
+ filter: {
18
+ type: 'string'
19
+ }
20
+ },
21
+ returns: {
22
+ type: 'array'
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,18 @@
1
+ export const tools = [
2
+ {
3
+ name: "getEmptyStock",
4
+ description: "Get a list of products with empty stock.",
5
+ parameters: {
6
+ type: "object",
7
+ properties: {
8
+ category: {
9
+ type: "string",
10
+ description: "Category of the product"
11
+ },
12
+ },
13
+ required: [
14
+ "category"
15
+ ]
16
+ }
17
+ }
18
+ ]
@@ -0,0 +1,25 @@
1
+ export const tools = {
2
+ getData: {
3
+ description: 'Gets the current table data',
4
+ params: {
5
+ size: {
6
+ type: 'number',
7
+ default: 10
8
+ }
9
+ },
10
+ returns: {
11
+ type: 'array'
12
+ }
13
+ },
14
+ filterTable: {
15
+ description: 'Filters the current table data',
16
+ params: {
17
+ filter: {
18
+ type: 'string'
19
+ }
20
+ },
21
+ returns: {
22
+ type: 'array'
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,24 @@
1
+ // import { defineModuleToolFunctions, type ResolveTools } from '@oneclick.dev/cms-kit'
2
+
3
+ // const sskkrrr = defineModuleToolFunctions({
4
+ // getData: {
5
+ // description: 'Gets the current table data',
6
+ // parameters: {
7
+ // size: {
8
+ // type: 'number',
9
+ // default: 10,
10
+ // description: 'Number of rows to return',
11
+ // required: false
12
+ // }
13
+ // },
14
+ // returns: {
15
+ // type: 'array'
16
+ // }
17
+ // }
18
+ // })
19
+
20
+ // type Tools = ResolveTools<typeof sskkrrr>
21
+
22
+ // export const tools: Tools = sskkrrr
23
+
24
+ export const tools = {}
@@ -0,0 +1,25 @@
1
+ export const tools = {
2
+ getData: {
3
+ description: 'Gets the current table data',
4
+ params: {
5
+ size: {
6
+ type: 'number',
7
+ default: 10
8
+ }
9
+ },
10
+ returns: {
11
+ type: 'array'
12
+ }
13
+ },
14
+ filterTable: {
15
+ description: 'Filters the current table data',
16
+ params: {
17
+ filter: {
18
+ type: 'string'
19
+ }
20
+ },
21
+ returns: {
22
+ type: 'array'
23
+ }
24
+ }
25
+ }