@trackunit/irisx-proxy 1.11.19 → 1.12.1

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/index.cjs.js CHANGED
@@ -362,14 +362,15 @@ const databricksTokenSchema = zod.z.object({
362
362
  * Hook for retrieving an access token to interact with Databricks.
363
363
  * This hook fetches an authentication token needed to access specific tables within a Databricks workspace.
364
364
  *
365
- * @param {string} domainBase - The base domain URL of the Databricks workspace (e.g., 'mycompany.cloud.databricks.com').
366
- * @param {string} encodedClientIdSecretVaultKey - A vault key pointing to a stored encoded base64 value in this format <clientId>:<clientSecret>.
365
+ * @param options - The hook options.
366
+ * @param options.domainBase - The base domain URL of the Databricks workspace (e.g., 'mycompany.cloud.databricks.com').
367
+ * @param options.encodedClientIdSecretVaultKey - A vault key pointing to a stored encoded base64 value in this format clientId:clientSecret.
367
368
  * Example original value: `myClientId:myClientSecret`
368
369
  * Stored encoded value: `bXlDbGllbnRJZDpteUNsaWVudFNlY3JldA==`
369
370
  * This key must be set up and stored in advance to successfully authenticate.
370
- * @param {string[]} tableNames - An array of table names that the token will grant access to.
371
- * @param onSuccess - A callback function that will be called when the token is successfully retrieved.
372
- * @param onError - A callback function that will be called when an error occurs during the token retrieval process.
371
+ * @param options.tableNames - An array of table names that the token will grant access to.
372
+ * @param options.onSuccess - A callback function that will be called when the token is successfully retrieved.
373
+ * @param options.onError - A callback function that will be called when an error occurs during the token retrieval process.
373
374
  */
374
375
  const useDatabricksToken = ({ domainBase, encodedClientIdSecretVaultKey, tableNames, onSuccess, onError, }) => {
375
376
  const encodedBody = react.useMemo(() => {
package/index.esm.js CHANGED
@@ -360,14 +360,15 @@ const databricksTokenSchema = z.object({
360
360
  * Hook for retrieving an access token to interact with Databricks.
361
361
  * This hook fetches an authentication token needed to access specific tables within a Databricks workspace.
362
362
  *
363
- * @param {string} domainBase - The base domain URL of the Databricks workspace (e.g., 'mycompany.cloud.databricks.com').
364
- * @param {string} encodedClientIdSecretVaultKey - A vault key pointing to a stored encoded base64 value in this format <clientId>:<clientSecret>.
363
+ * @param options - The hook options.
364
+ * @param options.domainBase - The base domain URL of the Databricks workspace (e.g., 'mycompany.cloud.databricks.com').
365
+ * @param options.encodedClientIdSecretVaultKey - A vault key pointing to a stored encoded base64 value in this format clientId:clientSecret.
365
366
  * Example original value: `myClientId:myClientSecret`
366
367
  * Stored encoded value: `bXlDbGllbnRJZDpteUNsaWVudFNlY3JldA==`
367
368
  * This key must be set up and stored in advance to successfully authenticate.
368
- * @param {string[]} tableNames - An array of table names that the token will grant access to.
369
- * @param onSuccess - A callback function that will be called when the token is successfully retrieved.
370
- * @param onError - A callback function that will be called when an error occurs during the token retrieval process.
369
+ * @param options.tableNames - An array of table names that the token will grant access to.
370
+ * @param options.onSuccess - A callback function that will be called when the token is successfully retrieved.
371
+ * @param options.onError - A callback function that will be called when an error occurs during the token retrieval process.
371
372
  */
372
373
  const useDatabricksToken = ({ domainBase, encodedClientIdSecretVaultKey, tableNames, onSuccess, onError, }) => {
373
374
  const encodedBody = useMemo(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/irisx-proxy",
3
- "version": "1.11.19",
3
+ "version": "1.12.1",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -13,9 +13,9 @@
13
13
  "@graphql-codegen/cli": "^5.0.3",
14
14
  "@graphql-typed-document-node/core": "^3.2.0",
15
15
  "zod": "^3.23.8",
16
- "@trackunit/iris-app-api": "1.14.17",
17
- "@trackunit/react-core-contexts-test": "1.11.18",
18
- "@trackunit/shared-utils": "1.13.18"
16
+ "@trackunit/iris-app-api": "1.14.19",
17
+ "@trackunit/react-core-contexts-test": "1.12.1",
18
+ "@trackunit/shared-utils": "1.13.20"
19
19
  },
20
20
  "module": "./index.esm.js",
21
21
  "main": "./index.cjs.js",
@@ -96,14 +96,15 @@ interface UseDatabricksTokenProps {
96
96
  * Hook for retrieving an access token to interact with Databricks.
97
97
  * This hook fetches an authentication token needed to access specific tables within a Databricks workspace.
98
98
  *
99
- * @param {string} domainBase - The base domain URL of the Databricks workspace (e.g., 'mycompany.cloud.databricks.com').
100
- * @param {string} encodedClientIdSecretVaultKey - A vault key pointing to a stored encoded base64 value in this format <clientId>:<clientSecret>.
99
+ * @param options - The hook options.
100
+ * @param options.domainBase - The base domain URL of the Databricks workspace (e.g., 'mycompany.cloud.databricks.com').
101
+ * @param options.encodedClientIdSecretVaultKey - A vault key pointing to a stored encoded base64 value in this format clientId:clientSecret.
101
102
  * Example original value: `myClientId:myClientSecret`
102
103
  * Stored encoded value: `bXlDbGllbnRJZDpteUNsaWVudFNlY3JldA==`
103
104
  * This key must be set up and stored in advance to successfully authenticate.
104
- * @param {string[]} tableNames - An array of table names that the token will grant access to.
105
- * @param onSuccess - A callback function that will be called when the token is successfully retrieved.
106
- * @param onError - A callback function that will be called when an error occurs during the token retrieval process.
105
+ * @param options.tableNames - An array of table names that the token will grant access to.
106
+ * @param options.onSuccess - A callback function that will be called when the token is successfully retrieved.
107
+ * @param options.onError - A callback function that will be called when an error occurs during the token retrieval process.
107
108
  */
108
109
  export declare const useDatabricksToken: ({ domainBase, encodedClientIdSecretVaultKey, tableNames, onSuccess, onError, }: UseDatabricksTokenProps) => {
109
110
  data: {