Membrane React - v0.29.2
Console
SDK
REST API
Preparing search index...
useFieldMappingInstance
Function useFieldMappingInstance
useFieldMappingInstance
(
selector
:
string
|
FieldMappingInstanceSelector
|
undefined
,
)
:
{
loading
:
boolean
;
saving
:
boolean
;
error
:
any
;
refreshing
:
boolean
;
create
:
(
data
:
{
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
name
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
}
,
)
=>
Promise
<
|
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
integration
?:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
(...)
|
(...)
|
(...)
;
parameters
?:
(...)
|
(...)
}
,
>
;
}
;
appliedToIntegrations
?:
{
element
:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
(...)
,
(...)
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
(...)
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
integration
:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
(...)
,
(...)
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
(...)
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
(...)
,
(...)
>
;
}
;
}
[]
;
user
?:
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
;
connection
?:
{
id
:
string
;
type
?:
"connector"
|
"mcp"
;
name
:
string
;
key
?:
string
;
isTest
?:
boolean
;
connected
?:
boolean
;
disconnected
?:
boolean
;
isDefunct
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
requestError
?:
ErrorDataSchema
;
error
?:
ErrorDataSchema
;
integrationId
?:
string
;
connectorId
?:
string
;
externalAppId
?:
string
;
connectorVersion
?:
string
;
authOptionKey
?:
string
;
createdAt
:
string
;
updatedAt
:
string
;
lastActiveAt
?:
string
;
nextCredentialsRefreshAt
?:
string
;
nextRetryTimestamp
?:
string
;
retryAttempts
?:
number
;
canTest
?:
boolean
;
canRefreshCredentials
?:
boolean
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
meta
?:
Record
<
string
,
any
>
;
buildingAgentSessionId
?:
string
;
clientAction
?:
{
type
:
"connect"
|
"provide-input"
;
description
:
string
;
uiUrl
?:
string
;
agentInstructions
?:
string
;
handoffAgentInstructions
?:
string
;
reason
?:
"provide-input"
|
"authenticate"
|
"reauthenticate"
;
}
;
userId
:
string
;
tenantId
?:
string
;
}
;
fieldMapping
?:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
}
|
undefined
,
>
;
patch
:
(
data
:
Partial
<
UpdateRequest
>
,
options
?:
MutatorConfig
,
)
=>
Promise
<
void
>
;
put
:
(
data
:
{
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
name
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
}
,
options
?:
MutatorConfig
,
)
=>
Promise
<
void
>
;
archive
:
()
=>
Promise
<
void
>
;
fieldMappingInstance
:
|
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
integration
?:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
boolean
;
parameters
?:
Record
<
string
,
any
>
}
,
>
;
}
;
appliedToIntegrations
?:
{
element
:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
integration
:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
(...)
|
(...)
|
(...)
;
parameters
?:
(...)
|
(...)
}
,
>
;
}
;
}
[]
;
user
?:
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
;
connection
?:
{
id
:
string
;
type
?:
"connector"
|
"mcp"
;
name
:
string
;
key
?:
string
;
isTest
?:
boolean
;
connected
?:
boolean
;
disconnected
?:
boolean
;
isDefunct
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
requestError
?:
ErrorDataSchema
;
error
?:
ErrorDataSchema
;
integrationId
?:
string
;
connectorId
?:
string
;
externalAppId
?:
string
;
connectorVersion
?:
string
;
authOptionKey
?:
string
;
createdAt
:
string
;
updatedAt
:
string
;
lastActiveAt
?:
string
;
nextCredentialsRefreshAt
?:
string
;
nextRetryTimestamp
?:
string
;
retryAttempts
?:
number
;
canTest
?:
boolean
;
canRefreshCredentials
?:
boolean
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
meta
?:
Record
<
string
,
any
>
;
buildingAgentSessionId
?:
string
;
clientAction
?:
{
type
:
"connect"
|
"provide-input"
;
description
:
string
;
uiUrl
?:
string
;
agentInstructions
?:
string
;
handoffAgentInstructions
?:
string
;
reason
?:
"provide-input"
|
"authenticate"
|
"reauthenticate"
;
}
;
userId
:
string
;
tenantId
?:
string
;
}
;
fieldMapping
?:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
}
|
undefined
;
accessor
:
FieldMappingInstanceAccessor
|
undefined
;
refresh
:
()
=>
Promise
<
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
integration
?:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
boolean
;
parameters
?:
Record
<
(...)
,
(...)
>
}
,
>
;
}
;
appliedToIntegrations
?:
{
element
:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
integration
:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
...
;
parameters
?:
...
}
>
;
}
;
}
[]
;
user
?:
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
;
connection
?:
{
id
:
string
;
type
?:
"connector"
|
"mcp"
;
name
:
string
;
key
?:
string
;
isTest
?:
boolean
;
connected
?:
boolean
;
disconnected
?:
boolean
;
isDefunct
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
requestError
?:
ErrorDataSchema
;
error
?:
ErrorDataSchema
;
integrationId
?:
string
;
connectorId
?:
string
;
externalAppId
?:
string
;
connectorVersion
?:
string
;
authOptionKey
?:
string
;
createdAt
:
string
;
updatedAt
:
string
;
lastActiveAt
?:
string
;
nextCredentialsRefreshAt
?:
string
;
nextRetryTimestamp
?:
string
;
retryAttempts
?:
number
;
canTest
?:
boolean
;
canRefreshCredentials
?:
boolean
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
meta
?:
Record
<
string
,
any
>
;
buildingAgentSessionId
?:
string
;
clientAction
?:
{
type
:
"connect"
|
"provide-input"
;
description
:
string
;
uiUrl
?:
string
;
agentInstructions
?:
string
;
handoffAgentInstructions
?:
string
;
reason
?:
"provide-input"
|
"authenticate"
|
"reauthenticate"
;
}
;
userId
:
string
;
tenantId
?:
string
;
}
;
fieldMapping
?:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
}
,
>
;
setup
:
()
=>
Promise
<
void
>
;
reset
:
()
=>
Promise
<
void
>
;
openConfiguration
:
(
options
?:
OpenFieldMappingInstanceConfigurationOptions
,
)
=>
Promise
<
void
|
undefined
>
;
}
Parameters
selector
:
string
|
FieldMappingInstanceSelector
|
undefined
Returns
{
loading
:
boolean
;
saving
:
boolean
;
error
:
any
;
refreshing
:
boolean
;
create
:
(
data
:
{
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
name
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
}
,
)
=>
Promise
<
|
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
integration
?:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
(...)
|
(...)
|
(...)
;
parameters
?:
(...)
|
(...)
}
,
>
;
}
;
appliedToIntegrations
?:
{
element
:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
(...)
,
(...)
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
(...)
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
integration
:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
(...)
,
(...)
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
(...)
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
(...)
,
(...)
>
;
}
;
}
[]
;
user
?:
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
;
connection
?:
{
id
:
string
;
type
?:
"connector"
|
"mcp"
;
name
:
string
;
key
?:
string
;
isTest
?:
boolean
;
connected
?:
boolean
;
disconnected
?:
boolean
;
isDefunct
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
requestError
?:
ErrorDataSchema
;
error
?:
ErrorDataSchema
;
integrationId
?:
string
;
connectorId
?:
string
;
externalAppId
?:
string
;
connectorVersion
?:
string
;
authOptionKey
?:
string
;
createdAt
:
string
;
updatedAt
:
string
;
lastActiveAt
?:
string
;
nextCredentialsRefreshAt
?:
string
;
nextRetryTimestamp
?:
string
;
retryAttempts
?:
number
;
canTest
?:
boolean
;
canRefreshCredentials
?:
boolean
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
meta
?:
Record
<
string
,
any
>
;
buildingAgentSessionId
?:
string
;
clientAction
?:
{
type
:
"connect"
|
"provide-input"
;
description
:
string
;
uiUrl
?:
string
;
agentInstructions
?:
string
;
handoffAgentInstructions
?:
string
;
reason
?:
"provide-input"
|
"authenticate"
|
"reauthenticate"
;
}
;
userId
:
string
;
tenantId
?:
string
;
}
;
fieldMapping
?:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
}
|
undefined
,
>
;
patch
:
(
data
:
Partial
<
UpdateRequest
>
,
options
?:
MutatorConfig
,
)
=>
Promise
<
void
>
;
put
:
(
data
:
{
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
name
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
}
,
options
?:
MutatorConfig
,
)
=>
Promise
<
void
>
;
archive
:
()
=>
Promise
<
void
>
;
fieldMappingInstance
:
|
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
integration
?:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
boolean
;
parameters
?:
Record
<
string
,
any
>
}
,
>
;
}
;
appliedToIntegrations
?:
{
element
:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
integration
:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
(...)
|
(...)
|
(...)
;
parameters
?:
(...)
|
(...)
}
,
>
;
}
;
}
[]
;
user
?:
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
;
connection
?:
{
id
:
string
;
type
?:
"connector"
|
"mcp"
;
name
:
string
;
key
?:
string
;
isTest
?:
boolean
;
connected
?:
boolean
;
disconnected
?:
boolean
;
isDefunct
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
requestError
?:
ErrorDataSchema
;
error
?:
ErrorDataSchema
;
integrationId
?:
string
;
connectorId
?:
string
;
externalAppId
?:
string
;
connectorVersion
?:
string
;
authOptionKey
?:
string
;
createdAt
:
string
;
updatedAt
:
string
;
lastActiveAt
?:
string
;
nextCredentialsRefreshAt
?:
string
;
nextRetryTimestamp
?:
string
;
retryAttempts
?:
number
;
canTest
?:
boolean
;
canRefreshCredentials
?:
boolean
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
meta
?:
Record
<
string
,
any
>
;
buildingAgentSessionId
?:
string
;
clientAction
?:
{
type
:
"connect"
|
"provide-input"
;
description
:
string
;
uiUrl
?:
string
;
agentInstructions
?:
string
;
handoffAgentInstructions
?:
string
;
reason
?:
"provide-input"
|
"authenticate"
|
"reauthenticate"
;
}
;
userId
:
string
;
tenantId
?:
string
;
}
;
fieldMapping
?:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
}
|
undefined
;
accessor
:
FieldMappingInstanceAccessor
|
undefined
;
refresh
:
()
=>
Promise
<
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
integration
?:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
boolean
;
parameters
?:
Record
<
(...)
,
(...)
>
}
,
>
;
}
;
appliedToIntegrations
?:
{
element
:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
integration
:
{
id
:
string
;
uuid
?:
string
;
key
?:
string
;
description
?:
string
;
meta
?:
Record
<
string
,
any
>
;
name
:
string
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
isReadOnly
?:
boolean
;
logoUri
:
string
;
connectorId
?:
string
;
connectorVersion
?:
string
;
oAuthCallbackUri
?:
string
;
parameters
?:
any
;
archivedAt
?:
string
;
hasMissingParameters
?:
boolean
;
hasDocumentation
?:
boolean
;
hasOperations
?:
boolean
;
operationsCount
?:
number
;
hasData
?:
boolean
;
dataCollectionsCount
?:
number
;
hasEvents
?:
boolean
;
eventsCount
?:
number
;
hasGlobalWebhooks
?:
boolean
;
hasUdm
?:
boolean
;
isTest
?:
boolean
;
externalAppId
?:
string
;
appUuid
?:
string
;
isDeactivated
?:
boolean
;
authType
?:
|
"proxy"
|
"integration-app-token"
|
"membrane-token"
|
"oauth2"
|
"oauth1"
|
"client-credentials"
;
optionsConfig
?:
Record
<
string
,
{
disabled
?:
...
;
parameters
?:
...
}
>
;
}
;
}
[]
;
user
?:
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
;
connection
?:
{
id
:
string
;
type
?:
"connector"
|
"mcp"
;
name
:
string
;
key
?:
string
;
isTest
?:
boolean
;
connected
?:
boolean
;
disconnected
?:
boolean
;
isDefunct
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
errors
?:
ErrorDataSchema
[]
;
requestError
?:
ErrorDataSchema
;
error
?:
ErrorDataSchema
;
integrationId
?:
string
;
connectorId
?:
string
;
externalAppId
?:
string
;
connectorVersion
?:
string
;
authOptionKey
?:
string
;
createdAt
:
string
;
updatedAt
:
string
;
lastActiveAt
?:
string
;
nextCredentialsRefreshAt
?:
string
;
nextRetryTimestamp
?:
string
;
retryAttempts
?:
number
;
canTest
?:
boolean
;
canRefreshCredentials
?:
boolean
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
meta
?:
Record
<
string
,
any
>
;
buildingAgentSessionId
?:
string
;
clientAction
?:
{
type
:
"connect"
|
"provide-input"
;
description
:
string
;
uiUrl
?:
string
;
agentInstructions
?:
string
;
handoffAgentInstructions
?:
string
;
reason
?:
"provide-input"
|
"authenticate"
|
"reauthenticate"
;
}
;
userId
:
string
;
tenantId
?:
string
;
}
;
fieldMapping
?:
{
id
:
string
;
key
?:
string
;
description
?:
string
;
integrationId
?:
string
;
integrationKey
?:
string
;
uuid
?:
string
;
meta
?:
Record
<
string
,
any
>
;
integrationUuid
?:
string
;
parentUuid
?:
string
;
parentKey
?:
string
;
isUniversal
?:
boolean
;
externalAppId
?:
string
;
externalAppUuid
?:
string
;
externalAppKey
?:
string
;
connectionId
?:
string
;
instanceKey
?:
string
;
fieldMappingId
?:
string
;
universalFieldMappingId
?:
string
;
dataSourceId
?:
string
;
dataSourceUuid
?:
string
;
dataSourceKey
?:
string
;
appSchema
?:
DataSchema
;
direction
?:
IMPORT
|
EXPORT
|
BOTH
;
defaultImportValue
?:
any
;
defaultExportValue
?:
any
;
importValue
?:
any
;
exportValue
?:
any
;
unifiedImportValue
?:
any
;
unifiedExportValue
?:
any
;
frozenImportFields
?:
any
;
frozenExportFields
?:
any
;
frozenUnifiedExportFields
?:
any
;
name
:
string
;
errors
?:
ErrorDataSchema
[]
;
revision
?:
string
;
createdAt
?:
string
;
updatedAt
?:
string
;
archivedAt
?:
string
;
isDeactivated
?:
boolean
;
isReadOnly
?:
boolean
;
fieldMappingRevision
?:
string
;
universalFieldMappingRevision
?:
string
;
dataSourceInstanceId
?:
string
;
dataSourceSchema
?:
DataSchema
;
isCustomized
?:
boolean
;
state
?:
|
BUILDING
|
CLIENT_ACTION_REQUIRED
|
CONFIGURATION_ERROR
|
SETUP_FAILED
|
READY
|
DISCONNECTING
;
error
?:
ErrorDataSchema
;
userId
?:
string
;
tenantId
?:
string
;
}
;
}
,
>
;
setup
:
()
=>
Promise
<
void
>
;
reset
:
()
=>
Promise
<
void
>
;
openConfiguration
:
(
options
?:
OpenFieldMappingInstanceConfigurationOptions
,
)
=>
Promise
<
void
|
undefined
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Console
SDK
REST API
Membrane React - v0.29.2
Loading...