@dev-fastn-ai/react-core 1.0.16 → 1.0.17

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/dist/index.cjs.js CHANGED
@@ -224,13 +224,6 @@ const DEACTIVATE_CONNECTOR = `
224
224
  deactivateConnector(input: $input)
225
225
  }
226
226
  `;
227
- const DELETE_TENANT_CONFIGURATION = `
228
- mutation DeleteTenantConfiguration($input: GetEntityInput!) {
229
- deleteTenantConfiguration(input: $input) {
230
- id
231
- }
232
- }
233
- `;
234
227
  const GET_FIELD_DATA_QUERY = `
235
228
  query executeGetFieldDataFlow($input: ApiPrimaryResolverInvocationInput!) {
236
229
  executeGetFieldDataFlow(input: $input) {
@@ -316,6 +309,13 @@ const UPDATE_TENANT_CONFIGURATION = `
316
309
  }
317
310
  }
318
311
  `;
312
+ const DELETE_TENANT_CONFIG = `
313
+ mutation DeleteTenantConfig($input: GetTenantConfigurationsInput!) {
314
+ deleteTenantConfig(input: $input) {
315
+ id
316
+ }
317
+ }
318
+ `;
319
319
  const DISABLE_TENANT_CONFIG = `
320
320
  mutation DisableTenantConfig($input: GetTenantConfigurationsInput!) {
321
321
  disableTenantConfig(input: $input) {
@@ -338,9 +338,6 @@ async function saveActivateConnectorStatus(variables) {
338
338
  async function deactivateConnector$1(variables) {
339
339
  return fetchGraphQL({ query: DEACTIVATE_CONNECTOR, variables });
340
340
  }
341
- async function deleteTenantConfiguration(variables) {
342
- return fetchGraphQL({ query: DELETE_TENANT_CONFIGURATION, variables });
343
- }
344
341
  async function getFieldData(variables) {
345
342
  return fetchGraphQL({ query: GET_FIELD_DATA_QUERY, variables });
346
343
  }
@@ -356,6 +353,9 @@ async function createTenantConfiguration(variables) {
356
353
  async function updateTenantConfiguration(variables) {
357
354
  return fetchGraphQL({ query: UPDATE_TENANT_CONFIGURATION, variables });
358
355
  }
356
+ async function deleteTenantConfig(variables) {
357
+ return fetchGraphQL({ query: DELETE_TENANT_CONFIG, variables });
358
+ }
359
359
  async function disableTenantConfig(variables) {
360
360
  return fetchGraphQL({ query: DISABLE_TENANT_CONFIG, variables });
361
361
  }
@@ -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 deleteTenantConfiguration({
1179
+ await deleteTenantConfig({
1180
1180
  input: {
1181
1181
  clientId: config.spaceId,
1182
1182
  tenantId: config.tenantId,
package/dist/index.esm.js CHANGED
@@ -222,13 +222,6 @@ const DEACTIVATE_CONNECTOR = `
222
222
  deactivateConnector(input: $input)
223
223
  }
224
224
  `;
225
- const DELETE_TENANT_CONFIGURATION = `
226
- mutation DeleteTenantConfiguration($input: GetEntityInput!) {
227
- deleteTenantConfiguration(input: $input) {
228
- id
229
- }
230
- }
231
- `;
232
225
  const GET_FIELD_DATA_QUERY = `
233
226
  query executeGetFieldDataFlow($input: ApiPrimaryResolverInvocationInput!) {
234
227
  executeGetFieldDataFlow(input: $input) {
@@ -314,6 +307,13 @@ const UPDATE_TENANT_CONFIGURATION = `
314
307
  }
315
308
  }
316
309
  `;
310
+ const DELETE_TENANT_CONFIG = `
311
+ mutation DeleteTenantConfig($input: GetTenantConfigurationsInput!) {
312
+ deleteTenantConfig(input: $input) {
313
+ id
314
+ }
315
+ }
316
+ `;
317
317
  const DISABLE_TENANT_CONFIG = `
318
318
  mutation DisableTenantConfig($input: GetTenantConfigurationsInput!) {
319
319
  disableTenantConfig(input: $input) {
@@ -336,9 +336,6 @@ async function saveActivateConnectorStatus(variables) {
336
336
  async function deactivateConnector$1(variables) {
337
337
  return fetchGraphQL({ query: DEACTIVATE_CONNECTOR, variables });
338
338
  }
339
- async function deleteTenantConfiguration(variables) {
340
- return fetchGraphQL({ query: DELETE_TENANT_CONFIGURATION, variables });
341
- }
342
339
  async function getFieldData(variables) {
343
340
  return fetchGraphQL({ query: GET_FIELD_DATA_QUERY, variables });
344
341
  }
@@ -354,6 +351,9 @@ async function createTenantConfiguration(variables) {
354
351
  async function updateTenantConfiguration(variables) {
355
352
  return fetchGraphQL({ query: UPDATE_TENANT_CONFIGURATION, variables });
356
353
  }
354
+ async function deleteTenantConfig(variables) {
355
+ return fetchGraphQL({ query: DELETE_TENANT_CONFIG, variables });
356
+ }
357
357
  async function disableTenantConfig(variables) {
358
358
  return fetchGraphQL({ query: DISABLE_TENANT_CONFIG, variables });
359
359
  }
@@ -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 deleteTenantConfiguration({
1177
+ await deleteTenantConfig({
1178
1178
  input: {
1179
1179
  clientId: config.spaceId,
1180
1180
  tenantId: config.tenantId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-fastn-ai/react-core",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
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.11"
62
+ "@dev-fastn-ai/core": "^1.0.12"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@tanstack/react-query": "^5.0.0",