@ansight/react-native 1.4.0-preview.1 → 1.4.0-preview.5

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/README.md CHANGED
@@ -80,8 +80,8 @@ bundle; its API requires the native Ansight module.
80
80
 
81
81
  This package version expects matching native SDK packages:
82
82
 
83
- - CocoaPods: `Ansight`, `AnsightObjC` version `1.4.0-preview.1`
84
- - Maven: `ai.ansight:ansight-android:1.4.0-preview.1`
83
+ - CocoaPods: `Ansight`, `AnsightObjC` version `1.4.0-preview.5`
84
+ - Maven: `ai.ansight:ansight-android:1.4.0-preview.5`
85
85
 
86
86
  ## Quickstart
87
87
 
@@ -67,6 +67,6 @@ repositories {
67
67
  dependencies {
68
68
  implementation("com.facebook.react:react-android")
69
69
  def ansightAndroidVersion =
70
- findProperty("ansightAndroidVersion") ?: "1.4.0-preview.1"
71
- implementation("ai.ansight:ansight-android:1.4.0-preview.1")
70
+ findProperty("ansightAndroidVersion") ?: "1.4.0-preview.5"
71
+ implementation("ai.ansight:ansight-android:1.4.0-preview.5")
72
72
  }
@@ -1094,6 +1094,7 @@ class AnsightReactNativeModule(
1094
1094
  },
1095
1095
  argumentsSchema = schemaFrom(map.getMapOrNull("argumentsSchema")),
1096
1096
  resultSchema = schemaFrom(map.getMapOrNull("resultSchema")),
1097
+ prerequisiteToolIds = map.getArrayOrNull("prerequisiteToolIds").toStringList(),
1097
1098
  ).validated()
1098
1099
 
1099
1100
  private fun schemaFrom(map: ReadableMap?): ToolSchema {
package/index.d.ts CHANGED
@@ -406,6 +406,7 @@ export interface AnsightToolDefinition {
406
406
  keywords?: string | string[];
407
407
  argumentsSchema?: object;
408
408
  resultSchema?: object;
409
+ prerequisiteToolIds?: string[];
409
410
  timeoutMilliseconds?: number;
410
411
  }
411
412
 
@@ -1230,7 +1230,8 @@ final class AnsightReactNative: RCTEventEmitter {
1230
1230
  policy: toolPolicy(stringValue(dictionary, "policy")),
1231
1231
  keywords: keywords(dictionary["keywords"]),
1232
1232
  argumentsSchema: AnsightToolSchema(json: jsonValue(dictionary["argumentsSchema"]) ?? .object([:])),
1233
- resultSchema: AnsightToolSchema(json: jsonValue(dictionary["resultSchema"]) ?? .object([:]))
1233
+ resultSchema: AnsightToolSchema(json: jsonValue(dictionary["resultSchema"]) ?? .object([:])),
1234
+ prerequisiteToolIds: stringArray(dictionary, "prerequisiteToolIds")
1234
1235
  )
1235
1236
  }
1236
1237
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ansight/react-native",
3
- "version": "1.4.0-preview.1",
3
+ "version": "1.4.0-preview.5",
4
4
  "description": "React Native bridge for the Ansight mobile SDK.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",