@dev-fastn-ai/react-core 1.0.16 → 1.0.18
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 +44 -1304
- package/dist/core/src/types/config.d.ts +1 -0
- package/dist/index.cjs.js +18 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +18 -18
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -24,10 +24,11 @@ function setConfig(userConfig) {
|
|
|
24
24
|
config = {
|
|
25
25
|
baseUrl: userConfig.baseUrl || DEFAULT_BASE_URL,
|
|
26
26
|
environment: userConfig.environment || 'DRAFT',
|
|
27
|
+
flowsEnvironment: userConfig.flowsEnvironment || 'LIVE',
|
|
27
28
|
authToken: userConfig.authToken,
|
|
28
29
|
tenantId: userConfig.tenantId,
|
|
29
30
|
spaceId: userConfig.spaceId,
|
|
30
|
-
customAuth: (_a = userConfig.customAuth) !== null && _a !== void 0 ? _a :
|
|
31
|
+
customAuth: (_a = userConfig.customAuth) !== null && _a !== void 0 ? _a : true,
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
function getConfig() {
|
|
@@ -224,13 +225,6 @@ const DEACTIVATE_CONNECTOR = `
|
|
|
224
225
|
deactivateConnector(input: $input)
|
|
225
226
|
}
|
|
226
227
|
`;
|
|
227
|
-
const DELETE_TENANT_CONFIGURATION = `
|
|
228
|
-
mutation DeleteTenantConfiguration($input: GetEntityInput!) {
|
|
229
|
-
deleteTenantConfiguration(input: $input) {
|
|
230
|
-
id
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
`;
|
|
234
228
|
const GET_FIELD_DATA_QUERY = `
|
|
235
229
|
query executeGetFieldDataFlow($input: ApiPrimaryResolverInvocationInput!) {
|
|
236
230
|
executeGetFieldDataFlow(input: $input) {
|
|
@@ -316,6 +310,13 @@ const UPDATE_TENANT_CONFIGURATION = `
|
|
|
316
310
|
}
|
|
317
311
|
}
|
|
318
312
|
`;
|
|
313
|
+
const DELETE_TENANT_CONFIG = `
|
|
314
|
+
mutation DeleteTenantConfig($input: GetTenantConfigurationsInput!) {
|
|
315
|
+
deleteTenantConfig(input: $input) {
|
|
316
|
+
id
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
`;
|
|
319
320
|
const DISABLE_TENANT_CONFIG = `
|
|
320
321
|
mutation DisableTenantConfig($input: GetTenantConfigurationsInput!) {
|
|
321
322
|
disableTenantConfig(input: $input) {
|
|
@@ -338,9 +339,6 @@ async function saveActivateConnectorStatus(variables) {
|
|
|
338
339
|
async function deactivateConnector$1(variables) {
|
|
339
340
|
return fetchGraphQL({ query: DEACTIVATE_CONNECTOR, variables });
|
|
340
341
|
}
|
|
341
|
-
async function deleteTenantConfiguration(variables) {
|
|
342
|
-
return fetchGraphQL({ query: DELETE_TENANT_CONFIGURATION, variables });
|
|
343
|
-
}
|
|
344
342
|
async function getFieldData(variables) {
|
|
345
343
|
return fetchGraphQL({ query: GET_FIELD_DATA_QUERY, variables });
|
|
346
344
|
}
|
|
@@ -356,6 +354,9 @@ async function createTenantConfiguration(variables) {
|
|
|
356
354
|
async function updateTenantConfiguration(variables) {
|
|
357
355
|
return fetchGraphQL({ query: UPDATE_TENANT_CONFIGURATION, variables });
|
|
358
356
|
}
|
|
357
|
+
async function deleteTenantConfig(variables) {
|
|
358
|
+
return fetchGraphQL({ query: DELETE_TENANT_CONFIG, variables });
|
|
359
|
+
}
|
|
359
360
|
async function disableTenantConfig(variables) {
|
|
360
361
|
return fetchGraphQL({ query: DISABLE_TENANT_CONFIG, variables });
|
|
361
362
|
}
|
|
@@ -616,7 +617,6 @@ const getFieldType = (field) => {
|
|
|
616
617
|
return ConnectorFieldType.TEXT;
|
|
617
618
|
};
|
|
618
619
|
const uiCodeToFormFields = (uiCodeString, options) => {
|
|
619
|
-
console.log("options", options);
|
|
620
620
|
try {
|
|
621
621
|
const parsed = safeParse(uiCodeString);
|
|
622
622
|
const { targetType, target } = parsed;
|
|
@@ -631,13 +631,13 @@ const uiCodeToFormFields = (uiCodeString, options) => {
|
|
|
631
631
|
const field = {
|
|
632
632
|
key,
|
|
633
633
|
name: key,
|
|
634
|
-
label,
|
|
634
|
+
label: label !== null && label !== void 0 ? label : key,
|
|
635
635
|
description,
|
|
636
636
|
initialValue: (_a = values[key]) !== null && _a !== void 0 ? _a : defaultValue,
|
|
637
637
|
type: getFieldType(rawField),
|
|
638
638
|
required: Boolean(required),
|
|
639
|
-
hidden: Boolean(hideOption === null || hideOption === void 0 ? void 0 : hideOption.enable),
|
|
640
|
-
disabled: Boolean(hideOption === null || hideOption === void 0 ? void 0 : hideOption.enable),
|
|
639
|
+
hidden: Boolean((hideOption === null || hideOption === void 0 ? void 0 : hideOption.enable) || key === "connectorId" || key === "id"),
|
|
640
|
+
disabled: Boolean((hideOption === null || hideOption === void 0 ? void 0 : hideOption.enable) || key === "connectorId" || key === "id"),
|
|
641
641
|
placeholder,
|
|
642
642
|
};
|
|
643
643
|
if (selection === null || selection === void 0 ? void 0 : selection.enable) {
|
|
@@ -797,7 +797,7 @@ const executeFLow = async ({ path, input = {}, headers = {} }) => {
|
|
|
797
797
|
const backendUrl = getBackendUrl();
|
|
798
798
|
const response = await fetch(`${backendUrl}/${path}`, {
|
|
799
799
|
method: "POST",
|
|
800
|
-
headers: Object.assign({ "Content-Type": "application/json", [PROJECT_ID_HEADER_KEY]: config.spaceId, [TENANT_ID_HEADER_KEY]: config.tenantId, authorization: `${config.authToken}`, stage: config.
|
|
800
|
+
headers: Object.assign({ "Content-Type": "application/json", [PROJECT_ID_HEADER_KEY]: config.spaceId, [TENANT_ID_HEADER_KEY]: config.tenantId, authorization: `${config.authToken}`, stage: config.flowsEnvironment }, headers),
|
|
801
801
|
body: JSON.stringify({
|
|
802
802
|
"input": input
|
|
803
803
|
})
|
|
@@ -847,7 +847,7 @@ const callActivateConnector = async (input, headers) => {
|
|
|
847
847
|
const url = config.baseUrl + ACTIVATE_CONNECTOR_URL;
|
|
848
848
|
const response = await fetch(url, {
|
|
849
849
|
method: "POST",
|
|
850
|
-
headers: Object.assign(Object.assign({ "Content-Type": "application/json" }, headers), { "x-fastn-api-key": ACTIVATE_CONNECTOR_ACCESS_KEY, "x-fastn-space-id": ACTIVATE_CONNECTOR_PROJECT_ID }),
|
|
850
|
+
headers: Object.assign(Object.assign({ "Content-Type": "application/json" }, headers), { "x-fastn-api-key": ACTIVATE_CONNECTOR_ACCESS_KEY, "x-fastn-space-id": ACTIVATE_CONNECTOR_PROJECT_ID, "x-fastn-space-client-id": config.spaceId }),
|
|
851
851
|
body: JSON.stringify({
|
|
852
852
|
input
|
|
853
853
|
})
|
|
@@ -1176,7 +1176,7 @@ const handleDisableConfiguration = async ({ id, connectorId, }) => {
|
|
|
1176
1176
|
const handleDeleteConfiguration = async ({ id, connectorId, }) => {
|
|
1177
1177
|
try {
|
|
1178
1178
|
const config = getConfig();
|
|
1179
|
-
await
|
|
1179
|
+
await deleteTenantConfig({
|
|
1180
1180
|
input: {
|
|
1181
1181
|
clientId: config.spaceId,
|
|
1182
1182
|
tenantId: config.tenantId,
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../core/node_modules/uuid/dist/esm-browser/rng.js","../../core/node_modules/uuid/dist/esm-browser/stringify.js","../../core/node_modules/uuid/dist/esm-browser/native.js","../../core/node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../core/node_modules/uuid/dist/esm-browser/rng.js","../../core/node_modules/uuid/dist/esm-browser/stringify.js","../../core/node_modules/uuid/dist/esm-browser/native.js","../../core/node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA,IAAI,eAAe;AACnB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC;AACjB,SAAS,GAAG,GAAG;AAC9B;AACA,EAAE,IAAI,CAAC,eAAe,EAAE;AACxB;AACA,IAAI,eAAe,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,1,2,3]}
|
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -22,10 +22,11 @@ function setConfig(userConfig) {
|
|
|
22
22
|
config = {
|
|
23
23
|
baseUrl: userConfig.baseUrl || DEFAULT_BASE_URL,
|
|
24
24
|
environment: userConfig.environment || 'DRAFT',
|
|
25
|
+
flowsEnvironment: userConfig.flowsEnvironment || 'LIVE',
|
|
25
26
|
authToken: userConfig.authToken,
|
|
26
27
|
tenantId: userConfig.tenantId,
|
|
27
28
|
spaceId: userConfig.spaceId,
|
|
28
|
-
customAuth: (_a = userConfig.customAuth) !== null && _a !== void 0 ? _a :
|
|
29
|
+
customAuth: (_a = userConfig.customAuth) !== null && _a !== void 0 ? _a : true,
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
function getConfig() {
|
|
@@ -222,13 +223,6 @@ const DEACTIVATE_CONNECTOR = `
|
|
|
222
223
|
deactivateConnector(input: $input)
|
|
223
224
|
}
|
|
224
225
|
`;
|
|
225
|
-
const DELETE_TENANT_CONFIGURATION = `
|
|
226
|
-
mutation DeleteTenantConfiguration($input: GetEntityInput!) {
|
|
227
|
-
deleteTenantConfiguration(input: $input) {
|
|
228
|
-
id
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
`;
|
|
232
226
|
const GET_FIELD_DATA_QUERY = `
|
|
233
227
|
query executeGetFieldDataFlow($input: ApiPrimaryResolverInvocationInput!) {
|
|
234
228
|
executeGetFieldDataFlow(input: $input) {
|
|
@@ -314,6 +308,13 @@ const UPDATE_TENANT_CONFIGURATION = `
|
|
|
314
308
|
}
|
|
315
309
|
}
|
|
316
310
|
`;
|
|
311
|
+
const DELETE_TENANT_CONFIG = `
|
|
312
|
+
mutation DeleteTenantConfig($input: GetTenantConfigurationsInput!) {
|
|
313
|
+
deleteTenantConfig(input: $input) {
|
|
314
|
+
id
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
`;
|
|
317
318
|
const DISABLE_TENANT_CONFIG = `
|
|
318
319
|
mutation DisableTenantConfig($input: GetTenantConfigurationsInput!) {
|
|
319
320
|
disableTenantConfig(input: $input) {
|
|
@@ -336,9 +337,6 @@ async function saveActivateConnectorStatus(variables) {
|
|
|
336
337
|
async function deactivateConnector$1(variables) {
|
|
337
338
|
return fetchGraphQL({ query: DEACTIVATE_CONNECTOR, variables });
|
|
338
339
|
}
|
|
339
|
-
async function deleteTenantConfiguration(variables) {
|
|
340
|
-
return fetchGraphQL({ query: DELETE_TENANT_CONFIGURATION, variables });
|
|
341
|
-
}
|
|
342
340
|
async function getFieldData(variables) {
|
|
343
341
|
return fetchGraphQL({ query: GET_FIELD_DATA_QUERY, variables });
|
|
344
342
|
}
|
|
@@ -354,6 +352,9 @@ async function createTenantConfiguration(variables) {
|
|
|
354
352
|
async function updateTenantConfiguration(variables) {
|
|
355
353
|
return fetchGraphQL({ query: UPDATE_TENANT_CONFIGURATION, variables });
|
|
356
354
|
}
|
|
355
|
+
async function deleteTenantConfig(variables) {
|
|
356
|
+
return fetchGraphQL({ query: DELETE_TENANT_CONFIG, variables });
|
|
357
|
+
}
|
|
357
358
|
async function disableTenantConfig(variables) {
|
|
358
359
|
return fetchGraphQL({ query: DISABLE_TENANT_CONFIG, variables });
|
|
359
360
|
}
|
|
@@ -614,7 +615,6 @@ const getFieldType = (field) => {
|
|
|
614
615
|
return ConnectorFieldType.TEXT;
|
|
615
616
|
};
|
|
616
617
|
const uiCodeToFormFields = (uiCodeString, options) => {
|
|
617
|
-
console.log("options", options);
|
|
618
618
|
try {
|
|
619
619
|
const parsed = safeParse(uiCodeString);
|
|
620
620
|
const { targetType, target } = parsed;
|
|
@@ -629,13 +629,13 @@ const uiCodeToFormFields = (uiCodeString, options) => {
|
|
|
629
629
|
const field = {
|
|
630
630
|
key,
|
|
631
631
|
name: key,
|
|
632
|
-
label,
|
|
632
|
+
label: label !== null && label !== void 0 ? label : key,
|
|
633
633
|
description,
|
|
634
634
|
initialValue: (_a = values[key]) !== null && _a !== void 0 ? _a : defaultValue,
|
|
635
635
|
type: getFieldType(rawField),
|
|
636
636
|
required: Boolean(required),
|
|
637
|
-
hidden: Boolean(hideOption === null || hideOption === void 0 ? void 0 : hideOption.enable),
|
|
638
|
-
disabled: Boolean(hideOption === null || hideOption === void 0 ? void 0 : hideOption.enable),
|
|
637
|
+
hidden: Boolean((hideOption === null || hideOption === void 0 ? void 0 : hideOption.enable) || key === "connectorId" || key === "id"),
|
|
638
|
+
disabled: Boolean((hideOption === null || hideOption === void 0 ? void 0 : hideOption.enable) || key === "connectorId" || key === "id"),
|
|
639
639
|
placeholder,
|
|
640
640
|
};
|
|
641
641
|
if (selection === null || selection === void 0 ? void 0 : selection.enable) {
|
|
@@ -795,7 +795,7 @@ const executeFLow = async ({ path, input = {}, headers = {} }) => {
|
|
|
795
795
|
const backendUrl = getBackendUrl();
|
|
796
796
|
const response = await fetch(`${backendUrl}/${path}`, {
|
|
797
797
|
method: "POST",
|
|
798
|
-
headers: Object.assign({ "Content-Type": "application/json", [PROJECT_ID_HEADER_KEY]: config.spaceId, [TENANT_ID_HEADER_KEY]: config.tenantId, authorization: `${config.authToken}`, stage: config.
|
|
798
|
+
headers: Object.assign({ "Content-Type": "application/json", [PROJECT_ID_HEADER_KEY]: config.spaceId, [TENANT_ID_HEADER_KEY]: config.tenantId, authorization: `${config.authToken}`, stage: config.flowsEnvironment }, headers),
|
|
799
799
|
body: JSON.stringify({
|
|
800
800
|
"input": input
|
|
801
801
|
})
|
|
@@ -845,7 +845,7 @@ const callActivateConnector = async (input, headers) => {
|
|
|
845
845
|
const url = config.baseUrl + ACTIVATE_CONNECTOR_URL;
|
|
846
846
|
const response = await fetch(url, {
|
|
847
847
|
method: "POST",
|
|
848
|
-
headers: Object.assign(Object.assign({ "Content-Type": "application/json" }, headers), { "x-fastn-api-key": ACTIVATE_CONNECTOR_ACCESS_KEY, "x-fastn-space-id": ACTIVATE_CONNECTOR_PROJECT_ID }),
|
|
848
|
+
headers: Object.assign(Object.assign({ "Content-Type": "application/json" }, headers), { "x-fastn-api-key": ACTIVATE_CONNECTOR_ACCESS_KEY, "x-fastn-space-id": ACTIVATE_CONNECTOR_PROJECT_ID, "x-fastn-space-client-id": config.spaceId }),
|
|
849
849
|
body: JSON.stringify({
|
|
850
850
|
input
|
|
851
851
|
})
|
|
@@ -1174,7 +1174,7 @@ const handleDisableConfiguration = async ({ id, connectorId, }) => {
|
|
|
1174
1174
|
const handleDeleteConfiguration = async ({ id, connectorId, }) => {
|
|
1175
1175
|
try {
|
|
1176
1176
|
const config = getConfig();
|
|
1177
|
-
await
|
|
1177
|
+
await deleteTenantConfig({
|
|
1178
1178
|
input: {
|
|
1179
1179
|
clientId: config.spaceId,
|
|
1180
1180
|
tenantId: config.tenantId,
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../core/node_modules/uuid/dist/esm-browser/rng.js","../../core/node_modules/uuid/dist/esm-browser/stringify.js","../../core/node_modules/uuid/dist/esm-browser/native.js","../../core/node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../core/node_modules/uuid/dist/esm-browser/rng.js","../../core/node_modules/uuid/dist/esm-browser/stringify.js","../../core/node_modules/uuid/dist/esm-browser/native.js","../../core/node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA,IAAI,eAAe;AACnB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC;AACjB,SAAS,GAAG,GAAG;AAC9B;AACA,EAAE,IAAI,CAAC,eAAe,EAAE;AACxB;AACA,IAAI,eAAe,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;;AAEpH,IAAI,IAAI,CAAC,eAAe,EAAE;AAC1B,MAAM,MAAM,IAAI,KAAK,CAAC,0GAA0G,CAAC;AACjI,IAAI;AACJ,EAAE;;AAEF,EAAE,OAAO,eAAe,CAAC,KAAK,CAAC;AAC/B;;AChBA;AACA;AACA;AACA;;AAEA,MAAM,SAAS,GAAG,EAAE;;AAEpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;AAC9B,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnD;;AAEO,SAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,EAAE;AACjD;AACA;AACA,EAAE,OAAO,SAAS,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,MAAM,GAAG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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-fastn-ai/react-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "React hooks and components for integrating Fastn AI connector marketplace into your applications. Built on top of @fastn-ai/core with React Query for optimal performance.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"homepage": "https://docs.fastn.ai",
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@dev-fastn-ai/core": "^1.0.
|
|
62
|
+
"@dev-fastn-ai/core": "^1.0.13"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@tanstack/react-query": "^5.0.0",
|