mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 08:48:35 +00:00
* Add Go to node * Remove goto_ prefix from destination_node_* * Move max dispatches check into _before_node_dispatch() * Remove translations from backend errors * move validate_goto_destination to a static method in the node type * Move clearing goto links to node type * Refactor cleared_goto_links to a more generic post_move_modifications * Remove automation concepts from integration land * Fix flakey service test * Remove 'node' mentions in CoreGotoServiceType * Implement new import_references() hook to avoid overriding import_formulas() * Fix forward-jumps * Fix test * Rename goto_node to just goto * Update comment * Clean up old references to connectors (we now use badge) * Refactor history handler's get_destination_labels() to get the destination from node type. * Handle max dispatch error in the dispatch_node() * Rename output_service_id to destination_service_id * Remove simulate check from goto node type. * Rename post_move_modifications to move_extra_data * Rename revert_move_in_workflow and after_move_in_workflow to revert_move and after_move respectively. * Rename import_references to post_import * Make _condition_is_set more consistent * Move CoreGottoServiceForm to integrations and refactor logic/imports. * Make node history label more generic. * Add afterMove() hook * Max dispatch check should happen for simulations too * Move _before_node_dispatch() error handling into the main try/except * Move post_import() into EasyImportExportMixin * Add a generic getDestinations() method to node types * Simplify setting destination_service_id * Use existing convention to inject registry * Set limit to 2000 for max dispatch * Add new skipped history status * Dedupe queries for destination labels * Ensure destination node validation considered deleted nodes. * Ensure destination nodes are ordered per graph * Set max dispatches default limit to 1000 * Only allow backward jumps. * Fix ordering bug that caused non-default router branch nodes to not appear as a destination target. * Fix migration * Re-add lost commit from Jeremie - rename to after_import()
104 lines
4.0 KiB
JavaScript
104 lines
4.0 KiB
JavaScript
import { defineNuxtPlugin } from '#app'
|
|
|
|
import { LocalBaserowIntegrationType } from '@baserow/modules/integrations/localBaserow/integrationTypes'
|
|
import { SMTPIntegrationType } from '@baserow/modules/integrations/core/integrationTypes'
|
|
import { AIIntegrationType } from '@baserow/modules/integrations/ai/integrationTypes'
|
|
import {
|
|
LocalBaserowGetRowServiceType,
|
|
LocalBaserowListRowsServiceType,
|
|
LocalBaserowAggregateRowsServiceType,
|
|
LocalBaserowCreateRowsWorkflowServiceType,
|
|
LocalBaserowCreateRowWorkflowServiceType,
|
|
LocalBaserowDeleteRowWorkflowServiceType,
|
|
LocalBaserowUpdateRowWorkflowServiceType,
|
|
LocalBaserowUpdateRowsWorkflowServiceType,
|
|
LocalBaserowRowsCreatedTriggerServiceType,
|
|
LocalBaserowRowsUpdatedTriggerServiceType,
|
|
LocalBaserowRowsDeletedTriggerServiceType,
|
|
LocalBaserowFieldsUpdatedTriggerServiceType,
|
|
} from '@baserow/modules/integrations/localBaserow/serviceTypes'
|
|
import {
|
|
CoreCSVFileReaderServiceType,
|
|
CoreHTTPRequestServiceType,
|
|
PeriodicTriggerServiceType,
|
|
CoreRouterServiceType,
|
|
CoreGotoServiceType,
|
|
CoreSMTPEmailServiceType,
|
|
CoreHTTPTriggerServiceType,
|
|
CoreIteratorServiceType,
|
|
CoreStartWorkflowServiceType,
|
|
CoreManualTriggerServiceType,
|
|
} from '@baserow/modules/integrations/core/serviceTypes'
|
|
import { AIAgentServiceType } from '@baserow/modules/integrations/ai/serviceTypes'
|
|
import { SlackWriteMessageServiceType } from '@baserow/modules/integrations/slack/serviceTypes'
|
|
import { SlackBotIntegrationType } from '@baserow/modules/integrations/slack/integrationTypes'
|
|
|
|
export default defineNuxtPlugin({
|
|
dependsOn: ['core'],
|
|
setup(nuxtApp) {
|
|
const { $registry } = nuxtApp
|
|
|
|
const context = { app: nuxtApp }
|
|
|
|
$registry.register('integration', new LocalBaserowIntegrationType(context))
|
|
$registry.register('integration', new SMTPIntegrationType(context))
|
|
$registry.register('integration', new AIIntegrationType(context))
|
|
$registry.register('integration', new SlackBotIntegrationType(context))
|
|
|
|
$registry.register('service', new LocalBaserowGetRowServiceType(context))
|
|
$registry.register('service', new LocalBaserowListRowsServiceType(context))
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowAggregateRowsServiceType(context)
|
|
)
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowCreateRowWorkflowServiceType(context)
|
|
)
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowCreateRowsWorkflowServiceType(context)
|
|
)
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowUpdateRowWorkflowServiceType(context)
|
|
)
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowUpdateRowsWorkflowServiceType(context)
|
|
)
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowDeleteRowWorkflowServiceType(context)
|
|
)
|
|
$registry.register('service', new CoreHTTPRequestServiceType(context))
|
|
$registry.register('service', new CoreSMTPEmailServiceType(context))
|
|
$registry.register('service', new CoreRouterServiceType(context))
|
|
$registry.register('service', new CoreGotoServiceType(context))
|
|
$registry.register('service', new CoreHTTPTriggerServiceType(context))
|
|
$registry.register('service', new CoreManualTriggerServiceType(context))
|
|
$registry.register('service', new CoreIteratorServiceType(context))
|
|
$registry.register('service', new CoreCSVFileReaderServiceType(context))
|
|
$registry.register('service', new CoreStartWorkflowServiceType(context))
|
|
$registry.register('service', new AIAgentServiceType(context))
|
|
$registry.register('service', new PeriodicTriggerServiceType(context))
|
|
$registry.register('service', new SlackWriteMessageServiceType(context))
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowRowsCreatedTriggerServiceType(context)
|
|
)
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowRowsUpdatedTriggerServiceType(context)
|
|
)
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowRowsDeletedTriggerServiceType(context)
|
|
)
|
|
$registry.register(
|
|
'service',
|
|
new LocalBaserowFieldsUpdatedTriggerServiceType(context)
|
|
)
|
|
},
|
|
})
|