@integration-app/react
Advanced tools
Comparing version
import * as _integration_app_sdk from '@integration-app/sdk'; | ||
import { IntegrationAppClient, ConnectionAccessor, Connection, CreateConnectionRequest, UpdateConnectionRequest, FindConnectionsQuery, ConnectionSpec, IntegrationAccessor, Integration, CreateIntegrationRequest, UpdateIntegrationRequest, FindIntegrationsQuery, FieldMappingSelector, CreateFieldMappingRequest, FieldMapping, UpdateFieldMappingRequest, FieldMappingAccessor, FieldMappingInstanceSelector, CreateFieldMappingInstanceRequest, FieldMappingInstance, UpdateFieldMappingInstanceRequest, FieldMappingInstanceAccessor, OpenFieldMappingInstanceConfigurationOptions, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, DataSourceSelector, CreateDataSourceRequest, DataSource, UpdateDataSourceRequest, DataSourceAccessor, FindDataSourceEventsQuery, DataSourceEvent, DataSourceInstanceSelector, CreateDataSourceInstanceRequest, DataSourceInstance, UpdateDataSourceInstanceRequest, DataSourceInstanceAccessor, OpenDataSourceConfigurationOptions, DataCollectionListRequest, DataCollectionFindRequest, DataCollectionCreateRequest, DataCollectionUpdateRequest, DataCollectionSpec, FindDataSourceInstancesQuery, FindDataSourcesQuery, AppEventSubscriptionSelector, AppEventSubscriptionAccessor, AppEventSubscription, AppEventSubscriptionUpdateRequest, FindAppEventSubscriptionsQuery, AppEventTypeAccessor, AppEventType, CreateAppEventTypeRequest, UpdateAppEventTypeRequest, FindAppEventTypesQuery, FindAppEventsQuery, AppEvent, AppDataSchemaAccessor, AppDataSchema, CreateAppDataSchemaRequest, UpdateAppDataSchemaRequest, FindAppDataSchemasQuery, AppDataSchemaInstanceSelector, CreateAppDataSchemaInstanceRequest, AppDataSchemaInstance, UpdateAppDataSchemaInstanceRequest, AppDataSchemaInstanceAccessor, FindAppDataSchemaInstancesQuery, FlowSelector, CreateFlowRequest, Flow, UpdateFlowRequest, FlowAccessor, FindFlowsRequest, FlowInstanceSelector, CreateFlowInstanceRequest, FlowInstance, UpdateFlowInstanceRequest, FlowInstanceAccessor, OpenFlowInstanceConfigurationOptions, RunFlowOptions, FindFlowInstancesQuery, FlowRun, FindFlowRunsRequest, DataLinkTableAccessor, DataLinkTable, CreateDataLinkTableRequest, DataLinkTableInstanceSelector, CreateDataLinkTableInstanceRequest, DataLinkTableInstance, UpdateDataLinkTableInstanceRequest, DataLinkTableInstanceAccessor, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, ActionSelector, CreateActionRequest, Action, UpdateActionRequest, ActionAccessor, ActionInstanceSelector, CreateActionInstanceRequest, ActionInstance, UpdateActionInstanceRequest, ActionInstanceAccessor, OpenActionConfigurationOptions, FindActionInstancesQuery, FindActionsQuery, ScreenSelector, ScreenAccessor, Screen, CreateScreenRequest, UpdateScreenRequest, CustomerSelector, CustomerAccessor, Customer, CreateCustomerRequest, UpdateCustomerRequest, FindCustomersQuery, UseCaseSelector, UseCaseAccessor, UseCase, CreateUseCaseRequest, UpdateUseCaseRequest, FindUseCasesQuery } from '@integration-app/sdk'; | ||
import { IntegrationAppClient, ConnectionAccessor, Connection, CreateConnectionRequest, UpdateConnectionRequest, FindConnectionsQuery, ConnectionSpec, IntegrationAccessor, Integration, CreateIntegrationRequest, UpdateIntegrationRequest, FindIntegrationsQuery, FieldMappingSelector, CreateFieldMappingRequest, FieldMapping, UpdateFieldMappingRequest, FieldMappingAccessor, FieldMappingInstanceSelector, CreateFieldMappingInstanceRequest, FieldMappingInstance, UpdateFieldMappingInstanceRequest, FieldMappingInstanceAccessor, OpenFieldMappingInstanceConfigurationOptions, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, DataSourceSelector, CreateDataSourceRequest, DataSource, UpdateDataSourceRequest, DataSourceAccessor, FindDataSourceEventsQuery, DataSourceEvent, DataSourceInstanceSelector, CreateDataSourceInstanceRequest, DataSourceInstance, UpdateDataSourceInstanceRequest, DataSourceInstanceAccessor, OpenDataSourceConfigurationOptions, DataCollectionListRequest, DataCollectionFindRequest, DataCollectionCreateRequest, DataCollectionUpdateRequest, DataCollectionSpec, FindDataSourceInstancesQuery, FindDataSourcesQuery, AppEventSubscriptionSelector, AppEventSubscriptionAccessor, AppEventSubscription, AppEventSubscriptionUpdateRequest, FindAppEventSubscriptionsQuery, AppEventTypeAccessor, AppEventType, CreateAppEventTypeRequest, UpdateAppEventTypeRequest, FindAppEventTypesQuery, FindAppEventsQuery, AppEvent, AppDataSchemaAccessor, AppDataSchema, CreateAppDataSchemaRequest, UpdateAppDataSchemaRequest, FindAppDataSchemasQuery, AppDataSchemaInstanceSelector, CreateAppDataSchemaInstanceRequest, AppDataSchemaInstance, UpdateAppDataSchemaInstanceRequest, AppDataSchemaInstanceAccessor, FindAppDataSchemaInstancesQuery, FlowSelector, CreateFlowRequest, Flow, UpdateFlowRequest, FlowAccessor, FindFlowsRequest, FlowInstanceSelector, CreateFlowInstanceRequest, FlowInstance, UpdateFlowInstanceRequest, FlowInstanceAccessor, OpenFlowInstanceConfigurationOptions, RunFlowOptions, FindFlowInstancesQuery, FlowRun, FindFlowRunsRequest, DataLinkTableAccessor, DataLinkTable, CreateDataLinkTableRequest, DataLinkTableInstanceSelector, CreateDataLinkTableInstanceRequest, DataLinkTableInstance, UpdateDataLinkTableInstanceRequest, DataLinkTableInstanceAccessor, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, ActionSelector, CreateActionRequest, Action, UpdateActionRequest, ActionAccessor, ActionInstanceSelector, CreateActionInstanceRequest, ActionInstance, UpdateActionInstanceRequest, ActionInstanceAccessor, OpenActionConfigurationOptions, FindActionInstancesQuery, FindActionsQuery, ScreenSelector, ScreenAccessor, Screen, CreateScreenRequest, UpdateScreenRequest, CustomerSelector, CustomerAccessor, Customer, CreateCustomerRequest, UpdateCustomerRequest, FindCustomersQuery, ScenarioSelector, ScenarioAccessor, Scenario, CreateScenarioRequest, UpdateScenarioRequest, FindScenariosQuery } from '@integration-app/sdk'; | ||
export { DataForm } from '@integration-app/sdk'; | ||
@@ -565,18 +565,18 @@ import { ReactNode } from 'react'; | ||
declare function useUseCase(selector: UseCaseSelector | string | undefined): { | ||
accessor: UseCaseAccessor | undefined; | ||
declare function useScenario(selector: ScenarioSelector | string | undefined): { | ||
accessor: ScenarioAccessor | undefined; | ||
loading: boolean; | ||
saving: boolean; | ||
error: any; | ||
refresh: () => Promise<UseCase>; | ||
refresh: () => Promise<Scenario>; | ||
refreshing: boolean; | ||
create: (data: CreateUseCaseRequest) => Promise<UseCase | undefined>; | ||
patch: (data: Partial<UpdateUseCaseRequest>) => Promise<void>; | ||
put: (data: UpdateUseCaseRequest) => Promise<void>; | ||
create: (data: CreateScenarioRequest) => Promise<Scenario | undefined>; | ||
patch: (data: Partial<UpdateScenarioRequest>) => Promise<void>; | ||
put: (data: UpdateScenarioRequest) => Promise<void>; | ||
archive: () => Promise<void>; | ||
useCase: UseCase | undefined; | ||
scenario: Scenario | undefined; | ||
}; | ||
declare function useUseCases(query?: FindUseCasesQuery): { | ||
items: UseCase[]; | ||
declare function useScenarios(query?: FindScenariosQuery): { | ||
items: Scenario[]; | ||
refresh: () => Promise<void>; | ||
@@ -588,3 +588,3 @@ refreshing: boolean; | ||
error: any; | ||
useCases: UseCase[]; | ||
scenarios: Scenario[]; | ||
}; | ||
@@ -598,2 +598,2 @@ | ||
export { IntegrationAppProvider, useAction, useActionInstance, useActionInstances, useActions, useAppDataSchema, useAppDataSchemaInstance, useAppDataSchemaInstances, useAppDataSchemas, useAppEventSubscription, useAppEventSubscriptions, useAppEventType, useAppEventTypes, useAppEvents, useConnection, useConnections, useConnectorSpec, useCustomer, useCustomers, useDataCollectionSpec, useDataLinkTable, useDataLinkTableInstance, useDataLinkTableInstances, useDataLinkTables, useDataSource, useDataSourceEvents, useDataSourceInstance, useDataSourceInstanceCollection, useDataSourceInstances, useDataSources, useFieldMapping, useFieldMappingInstance, useFieldMappingInstances, useFieldMappings, useFlow, useFlowInstance, useFlowInstances, useFlowRun, useFlowRuns, useFlows, useIntegration, useIntegrationApp, useIntegrationAppSWR, useIntegrations, useScreen, useUseCase, useUseCases }; | ||
export { IntegrationAppProvider, useAction, useActionInstance, useActionInstances, useActions, useAppDataSchema, useAppDataSchemaInstance, useAppDataSchemaInstances, useAppDataSchemas, useAppEventSubscription, useAppEventSubscriptions, useAppEventType, useAppEventTypes, useAppEvents, useConnection, useConnections, useConnectorSpec, useCustomer, useCustomers, useDataCollectionSpec, useDataLinkTable, useDataLinkTableInstance, useDataLinkTableInstances, useDataLinkTables, useDataSource, useDataSourceEvents, useDataSourceInstance, useDataSourceInstanceCollection, useDataSourceInstances, useDataSources, useFieldMapping, useFieldMappingInstance, useFieldMappingInstances, useFieldMappings, useFlow, useFlowInstance, useFlowInstances, useFlowRun, useFlowRuns, useFlows, useIntegration, useIntegrationApp, useIntegrationAppSWR, useIntegrations, useScenario, useScenarios, useScreen }; |
@@ -682,11 +682,11 @@ 'use strict'; | ||
function useUseCase(selector) { | ||
const { item: useCase, ...rest } = useElement(selector, (integrationApp) => selector ? integrationApp.useCase(selector) : undefined); | ||
return { useCase, ...rest }; | ||
function useScenario(selector) { | ||
const { item: scenario, ...rest } = useElement(selector, (integrationApp) => selector ? integrationApp.scenario(selector) : undefined); | ||
return { scenario, ...rest }; | ||
} | ||
function useUseCases(query) { | ||
const { ...rest } = useElements('useCases', query); | ||
function useScenarios(query) { | ||
const { ...rest } = useElements('scenarios', query); | ||
return { | ||
useCases: rest.items, | ||
scenarios: rest.items, | ||
...rest, | ||
@@ -758,5 +758,5 @@ }; | ||
exports.useIntegrations = useIntegrations; | ||
exports.useScenario = useScenario; | ||
exports.useScenarios = useScenarios; | ||
exports.useScreen = useScreen; | ||
exports.useUseCase = useUseCase; | ||
exports.useUseCases = useUseCases; | ||
//# sourceMappingURL=index.js.map |
import * as _integration_app_sdk from '@integration-app/sdk'; | ||
import { IntegrationAppClient, ConnectionAccessor, Connection, CreateConnectionRequest, UpdateConnectionRequest, FindConnectionsQuery, ConnectionSpec, IntegrationAccessor, Integration, CreateIntegrationRequest, UpdateIntegrationRequest, FindIntegrationsQuery, FieldMappingSelector, CreateFieldMappingRequest, FieldMapping, UpdateFieldMappingRequest, FieldMappingAccessor, FieldMappingInstanceSelector, CreateFieldMappingInstanceRequest, FieldMappingInstance, UpdateFieldMappingInstanceRequest, FieldMappingInstanceAccessor, OpenFieldMappingInstanceConfigurationOptions, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, DataSourceSelector, CreateDataSourceRequest, DataSource, UpdateDataSourceRequest, DataSourceAccessor, FindDataSourceEventsQuery, DataSourceEvent, DataSourceInstanceSelector, CreateDataSourceInstanceRequest, DataSourceInstance, UpdateDataSourceInstanceRequest, DataSourceInstanceAccessor, OpenDataSourceConfigurationOptions, DataCollectionListRequest, DataCollectionFindRequest, DataCollectionCreateRequest, DataCollectionUpdateRequest, DataCollectionSpec, FindDataSourceInstancesQuery, FindDataSourcesQuery, AppEventSubscriptionSelector, AppEventSubscriptionAccessor, AppEventSubscription, AppEventSubscriptionUpdateRequest, FindAppEventSubscriptionsQuery, AppEventTypeAccessor, AppEventType, CreateAppEventTypeRequest, UpdateAppEventTypeRequest, FindAppEventTypesQuery, FindAppEventsQuery, AppEvent, AppDataSchemaAccessor, AppDataSchema, CreateAppDataSchemaRequest, UpdateAppDataSchemaRequest, FindAppDataSchemasQuery, AppDataSchemaInstanceSelector, CreateAppDataSchemaInstanceRequest, AppDataSchemaInstance, UpdateAppDataSchemaInstanceRequest, AppDataSchemaInstanceAccessor, FindAppDataSchemaInstancesQuery, FlowSelector, CreateFlowRequest, Flow, UpdateFlowRequest, FlowAccessor, FindFlowsRequest, FlowInstanceSelector, CreateFlowInstanceRequest, FlowInstance, UpdateFlowInstanceRequest, FlowInstanceAccessor, OpenFlowInstanceConfigurationOptions, RunFlowOptions, FindFlowInstancesQuery, FlowRun, FindFlowRunsRequest, DataLinkTableAccessor, DataLinkTable, CreateDataLinkTableRequest, DataLinkTableInstanceSelector, CreateDataLinkTableInstanceRequest, DataLinkTableInstance, UpdateDataLinkTableInstanceRequest, DataLinkTableInstanceAccessor, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, ActionSelector, CreateActionRequest, Action, UpdateActionRequest, ActionAccessor, ActionInstanceSelector, CreateActionInstanceRequest, ActionInstance, UpdateActionInstanceRequest, ActionInstanceAccessor, OpenActionConfigurationOptions, FindActionInstancesQuery, FindActionsQuery, ScreenSelector, ScreenAccessor, Screen, CreateScreenRequest, UpdateScreenRequest, CustomerSelector, CustomerAccessor, Customer, CreateCustomerRequest, UpdateCustomerRequest, FindCustomersQuery, UseCaseSelector, UseCaseAccessor, UseCase, CreateUseCaseRequest, UpdateUseCaseRequest, FindUseCasesQuery } from '@integration-app/sdk'; | ||
import { IntegrationAppClient, ConnectionAccessor, Connection, CreateConnectionRequest, UpdateConnectionRequest, FindConnectionsQuery, ConnectionSpec, IntegrationAccessor, Integration, CreateIntegrationRequest, UpdateIntegrationRequest, FindIntegrationsQuery, FieldMappingSelector, CreateFieldMappingRequest, FieldMapping, UpdateFieldMappingRequest, FieldMappingAccessor, FieldMappingInstanceSelector, CreateFieldMappingInstanceRequest, FieldMappingInstance, UpdateFieldMappingInstanceRequest, FieldMappingInstanceAccessor, OpenFieldMappingInstanceConfigurationOptions, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, DataSourceSelector, CreateDataSourceRequest, DataSource, UpdateDataSourceRequest, DataSourceAccessor, FindDataSourceEventsQuery, DataSourceEvent, DataSourceInstanceSelector, CreateDataSourceInstanceRequest, DataSourceInstance, UpdateDataSourceInstanceRequest, DataSourceInstanceAccessor, OpenDataSourceConfigurationOptions, DataCollectionListRequest, DataCollectionFindRequest, DataCollectionCreateRequest, DataCollectionUpdateRequest, DataCollectionSpec, FindDataSourceInstancesQuery, FindDataSourcesQuery, AppEventSubscriptionSelector, AppEventSubscriptionAccessor, AppEventSubscription, AppEventSubscriptionUpdateRequest, FindAppEventSubscriptionsQuery, AppEventTypeAccessor, AppEventType, CreateAppEventTypeRequest, UpdateAppEventTypeRequest, FindAppEventTypesQuery, FindAppEventsQuery, AppEvent, AppDataSchemaAccessor, AppDataSchema, CreateAppDataSchemaRequest, UpdateAppDataSchemaRequest, FindAppDataSchemasQuery, AppDataSchemaInstanceSelector, CreateAppDataSchemaInstanceRequest, AppDataSchemaInstance, UpdateAppDataSchemaInstanceRequest, AppDataSchemaInstanceAccessor, FindAppDataSchemaInstancesQuery, FlowSelector, CreateFlowRequest, Flow, UpdateFlowRequest, FlowAccessor, FindFlowsRequest, FlowInstanceSelector, CreateFlowInstanceRequest, FlowInstance, UpdateFlowInstanceRequest, FlowInstanceAccessor, OpenFlowInstanceConfigurationOptions, RunFlowOptions, FindFlowInstancesQuery, FlowRun, FindFlowRunsRequest, DataLinkTableAccessor, DataLinkTable, CreateDataLinkTableRequest, DataLinkTableInstanceSelector, CreateDataLinkTableInstanceRequest, DataLinkTableInstance, UpdateDataLinkTableInstanceRequest, DataLinkTableInstanceAccessor, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, ActionSelector, CreateActionRequest, Action, UpdateActionRequest, ActionAccessor, ActionInstanceSelector, CreateActionInstanceRequest, ActionInstance, UpdateActionInstanceRequest, ActionInstanceAccessor, OpenActionConfigurationOptions, FindActionInstancesQuery, FindActionsQuery, ScreenSelector, ScreenAccessor, Screen, CreateScreenRequest, UpdateScreenRequest, CustomerSelector, CustomerAccessor, Customer, CreateCustomerRequest, UpdateCustomerRequest, FindCustomersQuery, ScenarioSelector, ScenarioAccessor, Scenario, CreateScenarioRequest, UpdateScenarioRequest, FindScenariosQuery } from '@integration-app/sdk'; | ||
export { DataForm } from '@integration-app/sdk'; | ||
@@ -565,18 +565,18 @@ import { ReactNode } from 'react'; | ||
declare function useUseCase(selector: UseCaseSelector | string | undefined): { | ||
accessor: UseCaseAccessor | undefined; | ||
declare function useScenario(selector: ScenarioSelector | string | undefined): { | ||
accessor: ScenarioAccessor | undefined; | ||
loading: boolean; | ||
saving: boolean; | ||
error: any; | ||
refresh: () => Promise<UseCase>; | ||
refresh: () => Promise<Scenario>; | ||
refreshing: boolean; | ||
create: (data: CreateUseCaseRequest) => Promise<UseCase | undefined>; | ||
patch: (data: Partial<UpdateUseCaseRequest>) => Promise<void>; | ||
put: (data: UpdateUseCaseRequest) => Promise<void>; | ||
create: (data: CreateScenarioRequest) => Promise<Scenario | undefined>; | ||
patch: (data: Partial<UpdateScenarioRequest>) => Promise<void>; | ||
put: (data: UpdateScenarioRequest) => Promise<void>; | ||
archive: () => Promise<void>; | ||
useCase: UseCase | undefined; | ||
scenario: Scenario | undefined; | ||
}; | ||
declare function useUseCases(query?: FindUseCasesQuery): { | ||
items: UseCase[]; | ||
declare function useScenarios(query?: FindScenariosQuery): { | ||
items: Scenario[]; | ||
refresh: () => Promise<void>; | ||
@@ -588,3 +588,3 @@ refreshing: boolean; | ||
error: any; | ||
useCases: UseCase[]; | ||
scenarios: Scenario[]; | ||
}; | ||
@@ -598,2 +598,2 @@ | ||
export { IntegrationAppProvider, useAction, useActionInstance, useActionInstances, useActions, useAppDataSchema, useAppDataSchemaInstance, useAppDataSchemaInstances, useAppDataSchemas, useAppEventSubscription, useAppEventSubscriptions, useAppEventType, useAppEventTypes, useAppEvents, useConnection, useConnections, useConnectorSpec, useCustomer, useCustomers, useDataCollectionSpec, useDataLinkTable, useDataLinkTableInstance, useDataLinkTableInstances, useDataLinkTables, useDataSource, useDataSourceEvents, useDataSourceInstance, useDataSourceInstanceCollection, useDataSourceInstances, useDataSources, useFieldMapping, useFieldMappingInstance, useFieldMappingInstances, useFieldMappings, useFlow, useFlowInstance, useFlowInstances, useFlowRun, useFlowRuns, useFlows, useIntegration, useIntegrationApp, useIntegrationAppSWR, useIntegrations, useScreen, useUseCase, useUseCases }; | ||
export { IntegrationAppProvider, useAction, useActionInstance, useActionInstances, useActions, useAppDataSchema, useAppDataSchemaInstance, useAppDataSchemaInstances, useAppDataSchemas, useAppEventSubscription, useAppEventSubscriptions, useAppEventType, useAppEventTypes, useAppEvents, useConnection, useConnections, useConnectorSpec, useCustomer, useCustomers, useDataCollectionSpec, useDataLinkTable, useDataLinkTableInstance, useDataLinkTableInstances, useDataLinkTables, useDataSource, useDataSourceEvents, useDataSourceInstance, useDataSourceInstanceCollection, useDataSourceInstances, useDataSources, useFieldMapping, useFieldMappingInstance, useFieldMappingInstances, useFieldMappings, useFlow, useFlowInstance, useFlowInstances, useFlowRun, useFlowRuns, useFlows, useIntegration, useIntegrationApp, useIntegrationAppSWR, useIntegrations, useScenario, useScenarios, useScreen }; |
import * as _integration_app_sdk from '@integration-app/sdk'; | ||
import { IntegrationAppClient, ConnectionAccessor, Connection, CreateConnectionRequest, UpdateConnectionRequest, FindConnectionsQuery, ConnectionSpec, IntegrationAccessor, Integration, CreateIntegrationRequest, UpdateIntegrationRequest, FindIntegrationsQuery, FieldMappingSelector, CreateFieldMappingRequest, FieldMapping, UpdateFieldMappingRequest, FieldMappingAccessor, FieldMappingInstanceSelector, CreateFieldMappingInstanceRequest, FieldMappingInstance, UpdateFieldMappingInstanceRequest, FieldMappingInstanceAccessor, OpenFieldMappingInstanceConfigurationOptions, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, DataSourceSelector, CreateDataSourceRequest, DataSource, UpdateDataSourceRequest, DataSourceAccessor, FindDataSourceEventsQuery, DataSourceEvent, DataSourceInstanceSelector, CreateDataSourceInstanceRequest, DataSourceInstance, UpdateDataSourceInstanceRequest, DataSourceInstanceAccessor, OpenDataSourceConfigurationOptions, DataCollectionListRequest, DataCollectionFindRequest, DataCollectionCreateRequest, DataCollectionUpdateRequest, DataCollectionSpec, FindDataSourceInstancesQuery, FindDataSourcesQuery, AppEventSubscriptionSelector, AppEventSubscriptionAccessor, AppEventSubscription, AppEventSubscriptionUpdateRequest, FindAppEventSubscriptionsQuery, AppEventTypeAccessor, AppEventType, CreateAppEventTypeRequest, UpdateAppEventTypeRequest, FindAppEventTypesQuery, FindAppEventsQuery, AppEvent, AppDataSchemaAccessor, AppDataSchema, CreateAppDataSchemaRequest, UpdateAppDataSchemaRequest, FindAppDataSchemasQuery, AppDataSchemaInstanceSelector, CreateAppDataSchemaInstanceRequest, AppDataSchemaInstance, UpdateAppDataSchemaInstanceRequest, AppDataSchemaInstanceAccessor, FindAppDataSchemaInstancesQuery, FlowSelector, CreateFlowRequest, Flow, UpdateFlowRequest, FlowAccessor, FindFlowsRequest, FlowInstanceSelector, CreateFlowInstanceRequest, FlowInstance, UpdateFlowInstanceRequest, FlowInstanceAccessor, OpenFlowInstanceConfigurationOptions, RunFlowOptions, FindFlowInstancesQuery, FlowRun, FindFlowRunsRequest, DataLinkTableAccessor, DataLinkTable, CreateDataLinkTableRequest, DataLinkTableInstanceSelector, CreateDataLinkTableInstanceRequest, DataLinkTableInstance, UpdateDataLinkTableInstanceRequest, DataLinkTableInstanceAccessor, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, ActionSelector, CreateActionRequest, Action, UpdateActionRequest, ActionAccessor, ActionInstanceSelector, CreateActionInstanceRequest, ActionInstance, UpdateActionInstanceRequest, ActionInstanceAccessor, OpenActionConfigurationOptions, FindActionInstancesQuery, FindActionsQuery, ScreenSelector, ScreenAccessor, Screen, CreateScreenRequest, UpdateScreenRequest, CustomerSelector, CustomerAccessor, Customer, CreateCustomerRequest, UpdateCustomerRequest, FindCustomersQuery, UseCaseSelector, UseCaseAccessor, UseCase, CreateUseCaseRequest, UpdateUseCaseRequest, FindUseCasesQuery } from '@integration-app/sdk'; | ||
import { IntegrationAppClient, ConnectionAccessor, Connection, CreateConnectionRequest, UpdateConnectionRequest, FindConnectionsQuery, ConnectionSpec, IntegrationAccessor, Integration, CreateIntegrationRequest, UpdateIntegrationRequest, FindIntegrationsQuery, FieldMappingSelector, CreateFieldMappingRequest, FieldMapping, UpdateFieldMappingRequest, FieldMappingAccessor, FieldMappingInstanceSelector, CreateFieldMappingInstanceRequest, FieldMappingInstance, UpdateFieldMappingInstanceRequest, FieldMappingInstanceAccessor, OpenFieldMappingInstanceConfigurationOptions, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, DataSourceSelector, CreateDataSourceRequest, DataSource, UpdateDataSourceRequest, DataSourceAccessor, FindDataSourceEventsQuery, DataSourceEvent, DataSourceInstanceSelector, CreateDataSourceInstanceRequest, DataSourceInstance, UpdateDataSourceInstanceRequest, DataSourceInstanceAccessor, OpenDataSourceConfigurationOptions, DataCollectionListRequest, DataCollectionFindRequest, DataCollectionCreateRequest, DataCollectionUpdateRequest, DataCollectionSpec, FindDataSourceInstancesQuery, FindDataSourcesQuery, AppEventSubscriptionSelector, AppEventSubscriptionAccessor, AppEventSubscription, AppEventSubscriptionUpdateRequest, FindAppEventSubscriptionsQuery, AppEventTypeAccessor, AppEventType, CreateAppEventTypeRequest, UpdateAppEventTypeRequest, FindAppEventTypesQuery, FindAppEventsQuery, AppEvent, AppDataSchemaAccessor, AppDataSchema, CreateAppDataSchemaRequest, UpdateAppDataSchemaRequest, FindAppDataSchemasQuery, AppDataSchemaInstanceSelector, CreateAppDataSchemaInstanceRequest, AppDataSchemaInstance, UpdateAppDataSchemaInstanceRequest, AppDataSchemaInstanceAccessor, FindAppDataSchemaInstancesQuery, FlowSelector, CreateFlowRequest, Flow, UpdateFlowRequest, FlowAccessor, FindFlowsRequest, FlowInstanceSelector, CreateFlowInstanceRequest, FlowInstance, UpdateFlowInstanceRequest, FlowInstanceAccessor, OpenFlowInstanceConfigurationOptions, RunFlowOptions, FindFlowInstancesQuery, FlowRun, FindFlowRunsRequest, DataLinkTableAccessor, DataLinkTable, CreateDataLinkTableRequest, DataLinkTableInstanceSelector, CreateDataLinkTableInstanceRequest, DataLinkTableInstance, UpdateDataLinkTableInstanceRequest, DataLinkTableInstanceAccessor, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, ActionSelector, CreateActionRequest, Action, UpdateActionRequest, ActionAccessor, ActionInstanceSelector, CreateActionInstanceRequest, ActionInstance, UpdateActionInstanceRequest, ActionInstanceAccessor, OpenActionConfigurationOptions, FindActionInstancesQuery, FindActionsQuery, ScreenSelector, ScreenAccessor, Screen, CreateScreenRequest, UpdateScreenRequest, CustomerSelector, CustomerAccessor, Customer, CreateCustomerRequest, UpdateCustomerRequest, FindCustomersQuery, ScenarioSelector, ScenarioAccessor, Scenario, CreateScenarioRequest, UpdateScenarioRequest, FindScenariosQuery } from '@integration-app/sdk'; | ||
export { DataForm } from '@integration-app/sdk'; | ||
@@ -565,18 +565,18 @@ import { ReactNode } from 'react'; | ||
declare function useUseCase(selector: UseCaseSelector | string | undefined): { | ||
accessor: UseCaseAccessor | undefined; | ||
declare function useScenario(selector: ScenarioSelector | string | undefined): { | ||
accessor: ScenarioAccessor | undefined; | ||
loading: boolean; | ||
saving: boolean; | ||
error: any; | ||
refresh: () => Promise<UseCase>; | ||
refresh: () => Promise<Scenario>; | ||
refreshing: boolean; | ||
create: (data: CreateUseCaseRequest) => Promise<UseCase | undefined>; | ||
patch: (data: Partial<UpdateUseCaseRequest>) => Promise<void>; | ||
put: (data: UpdateUseCaseRequest) => Promise<void>; | ||
create: (data: CreateScenarioRequest) => Promise<Scenario | undefined>; | ||
patch: (data: Partial<UpdateScenarioRequest>) => Promise<void>; | ||
put: (data: UpdateScenarioRequest) => Promise<void>; | ||
archive: () => Promise<void>; | ||
useCase: UseCase | undefined; | ||
scenario: Scenario | undefined; | ||
}; | ||
declare function useUseCases(query?: FindUseCasesQuery): { | ||
items: UseCase[]; | ||
declare function useScenarios(query?: FindScenariosQuery): { | ||
items: Scenario[]; | ||
refresh: () => Promise<void>; | ||
@@ -588,3 +588,3 @@ refreshing: boolean; | ||
error: any; | ||
useCases: UseCase[]; | ||
scenarios: Scenario[]; | ||
}; | ||
@@ -598,2 +598,2 @@ | ||
export { IntegrationAppProvider, useAction, useActionInstance, useActionInstances, useActions, useAppDataSchema, useAppDataSchemaInstance, useAppDataSchemaInstances, useAppDataSchemas, useAppEventSubscription, useAppEventSubscriptions, useAppEventType, useAppEventTypes, useAppEvents, useConnection, useConnections, useConnectorSpec, useCustomer, useCustomers, useDataCollectionSpec, useDataLinkTable, useDataLinkTableInstance, useDataLinkTableInstances, useDataLinkTables, useDataSource, useDataSourceEvents, useDataSourceInstance, useDataSourceInstanceCollection, useDataSourceInstances, useDataSources, useFieldMapping, useFieldMappingInstance, useFieldMappingInstances, useFieldMappings, useFlow, useFlowInstance, useFlowInstances, useFlowRun, useFlowRuns, useFlows, useIntegration, useIntegrationApp, useIntegrationAppSWR, useIntegrations, useScreen, useUseCase, useUseCases }; | ||
export { IntegrationAppProvider, useAction, useActionInstance, useActionInstances, useActions, useAppDataSchema, useAppDataSchemaInstance, useAppDataSchemaInstances, useAppDataSchemas, useAppEventSubscription, useAppEventSubscriptions, useAppEventType, useAppEventTypes, useAppEvents, useConnection, useConnections, useConnectorSpec, useCustomer, useCustomers, useDataCollectionSpec, useDataLinkTable, useDataLinkTableInstance, useDataLinkTableInstances, useDataLinkTables, useDataSource, useDataSourceEvents, useDataSourceInstance, useDataSourceInstanceCollection, useDataSourceInstances, useDataSources, useFieldMapping, useFieldMappingInstance, useFieldMappingInstances, useFieldMappings, useFlow, useFlowInstance, useFlowInstances, useFlowRun, useFlowRuns, useFlows, useIntegration, useIntegrationApp, useIntegrationAppSWR, useIntegrations, useScenario, useScenarios, useScreen }; |
@@ -678,11 +678,11 @@ (function (global, factory) { | ||
function useUseCase(selector) { | ||
const { item: useCase, ...rest } = useElement(selector, (integrationApp) => selector ? integrationApp.useCase(selector) : undefined); | ||
return { useCase, ...rest }; | ||
function useScenario(selector) { | ||
const { item: scenario, ...rest } = useElement(selector, (integrationApp) => selector ? integrationApp.scenario(selector) : undefined); | ||
return { scenario, ...rest }; | ||
} | ||
function useUseCases(query) { | ||
const { ...rest } = useElements('useCases', query); | ||
function useScenarios(query) { | ||
const { ...rest } = useElements('scenarios', query); | ||
return { | ||
useCases: rest.items, | ||
scenarios: rest.items, | ||
...rest, | ||
@@ -754,7 +754,7 @@ }; | ||
exports.useIntegrations = useIntegrations; | ||
exports.useScenario = useScenario; | ||
exports.useScenarios = useScenarios; | ||
exports.useScreen = useScreen; | ||
exports.useUseCase = useUseCase; | ||
exports.useUseCases = useUseCases; | ||
})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@integration-app/react", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "", | ||
@@ -37,3 +37,3 @@ "author": "Integration.app", | ||
"dependencies": { | ||
"@integration-app/sdk": "^0.16.75", | ||
"@integration-app/sdk": "^0.16.76", | ||
"awesome-debounce-promise": "^2.1.0", | ||
@@ -40,0 +40,0 @@ "query-string": "^7.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
284579
0.05%