@avakado.ai/schemas 1.1.9 → 1.1.10

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": "@avakado.ai/schemas",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Canonical Mongo schemas, models, enums and index declarations shared by the Avakado services.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -13,6 +13,7 @@ const taskNodeCoreSchema = new Schema({
13
13
  schema: Schema.Types.Mixed,
14
14
  mapper: Schema.Types.Mixed,
15
15
  preset: Schema.Types.Mixed,
16
+ compiledMapper: String,
16
17
  },
17
18
  output: {
18
19
  schema: Schema.Types.Mixed,
@@ -39,11 +40,11 @@ export const Task_Tree = new Schema({
39
40
  const ActionSchema = new Schema({
40
41
  name: String,
41
42
  business: { type: Schema.Types.ObjectId, ref: 'Businesses' },
42
- async: { type: Boolean, default: true },
43
+ // async: { type: Boolean, default: true },
43
44
  description: String,
44
45
  needsApproval: Boolean, // Knowledge fetching doesn't need approval
45
- parameters: Schema.Types.Mixed,
46
- config: Schema.Types.Mixed,
46
+ inputSchema: Schema.Types.Mixed,
47
+ outputSchema: Schema.Types.Mixed,
47
48
  functionString: String,
48
49
  errorFunction: String,
49
50
  UI: Schema.Types.Mixed,