@coherentglobal/spark-execute-sdk 0.3.1 → 0.3.3

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 (3) hide show
  1. package/README.md +16 -12
  2. package/dist/browser.js +262 -104
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -27,25 +27,25 @@ yarn add @coherentglobal/spark-execute-sdk
27
27
 
28
28
  ```js
29
29
  const config = {
30
- sparkEndpoint: {
30
+ sparkEndpoint: {
31
31
  url: "https://excel.dev.coherent.global", // Spark Endpoint to be used on Fallback
32
32
  tenant: "tenant", // Spark tenant name
33
- authType: public | syntheticKey | bearerToken
33
+ authType: public | syntheticKey | bearerToken,
34
34
  // If syntheticKey
35
35
  syntheticKey: "apiKey" or generateSyntheticKey(), // value or a func - func call every time making API call, user will do cache
36
36
  // If bearerToken
37
37
  bearerToken: generateToken(), //a func - func call every time making API call, user will do cache
38
38
  },
39
- nodegenModels: [
40
- {
41
- versionId: "uuid",
42
- type: "base64",
43
- binary: Blob | Base64 | BinaryUnit | Func(versionId), // a binary zipped file or a function the will get the zipped file
44
- metadata: {
45
- // Spark Model Metadata
46
- }
47
- }
48
- ]
39
+ nodegenModels: [
40
+ {
41
+ versionId: "uuid",
42
+ type: "base64",
43
+ binary: Blob | Base64 | BinaryUnit | Func(versionId), // a binary zipped file or a function the will get the zipped file
44
+ metadata: {
45
+ // Spark Model Metadata
46
+ }
47
+ }
48
+ ]
49
49
  }
50
50
  ```
51
51
 
@@ -100,3 +100,7 @@ Note: The second parameter (version_id) is optional if version_id is already inc
100
100
  }
101
101
  }
102
102
  ```
103
+
104
+ ### DEMO
105
+
106
+ DEMO LINK- https://codesandbox.io/s/autumn-hill-1342ln?file=/index.html