@drax/ai-back 3.53.1 → 3.54.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.
@@ -155,7 +155,7 @@ const toolDefinitions = {
155
155
  parameters: builder => builder.objectParameters(z.object({
156
156
  fields: z.array(z.string()).optional(),
157
157
  filters: filtersSchema,
158
- dateFormat: z.enum(["year", "month", "day", "hour", "minute", "second"]).optional(),
158
+ dateFormat: z.enum(["year", "month", "week", "day", "hour", "minute", "second"]).optional(),
159
159
  })),
160
160
  execute: (service, args) => service.groupBy?.({
161
161
  fields: args.fields ?? [],
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.53.1",
6
+ "version": "3.54.0",
7
7
  "description": "Ai utils",
8
8
  "main": "dist/index.js",
9
9
  "types": "types/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "license": "ISC",
20
20
  "dependencies": {
21
21
  "@drax/ai-share": "^3.52.0",
22
- "@drax/crud-back": "^3.53.1",
22
+ "@drax/crud-back": "^3.54.0",
23
23
  "mongoose": "^8.23.0",
24
24
  "mongoose-paginate-v2": "^1.8.3"
25
25
  },
@@ -46,5 +46,5 @@
46
46
  "typescript": "^5.9.3",
47
47
  "vitest": "^3.0.8"
48
48
  },
49
- "gitHead": "7d5464871cc0ac9c530bb36fc6fa41896b74b0bc"
49
+ "gitHead": "e7b0f29f3f68e352e8accb9d70c66b6f745a3278"
50
50
  }
@@ -166,7 +166,7 @@ const toolDefinitions: Record<ToolBuilderMethod, ToolDefinition> = {
166
166
  parameters: builder => builder.objectParameters(z.object({
167
167
  fields: z.array(z.string()).optional(),
168
168
  filters: filtersSchema,
169
- dateFormat: z.enum(["year", "month", "day", "hour", "minute", "second"]).optional(),
169
+ dateFormat: z.enum(["year", "month", "week", "day", "hour", "minute", "second"]).optional(),
170
170
  })),
171
171
  execute: (service, args) => service.groupBy?.({
172
172
  fields: args.fields ?? [],