@xuda.io/ai_module 1.1.4851 → 1.1.4853

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 (2) hide show
  1. package/index.mjs +3 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2798,6 +2798,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
2798
2798
 
2799
2799
 
2800
2800
  use the field keys from the above ## fields object
2801
+ and create validations for each step
2801
2802
 
2802
2803
  result example:
2803
2804
 
@@ -2806,7 +2807,8 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
2806
2807
  step: 1,
2807
2808
  title: "Core Loan Details",
2808
2809
  description: "Enter the fundamental numbers for your loan.",
2809
- fields: ["loan_amount", "down_payment", "loan_type"]
2810
+ fields: ["loan_amount", "down_payment", "loan_type"],
2811
+ isValid: (obj) => { return obj.loanAmount?.length ? true : false; }
2810
2812
  },
2811
2813
  {
2812
2814
  step: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4851",
3
+ "version": "1.1.4853",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",