2021-03-30 05:29:03 +00:00
|
|
|
import { ErrorActionPayload } from "sagas/ErrorSagas";
|
|
|
|
|
import { ActionResponse } from "api/ActionAPI";
|
|
|
|
|
import { PluginType } from "entities/Action";
|
|
|
|
|
import queryActionSettingsConfig from "constants/AppsmithActionConstants/formConfig/QuerySettingsConfig";
|
|
|
|
|
import apiActionSettingsConfig from "constants/AppsmithActionConstants/formConfig/ApiSettingsConfig";
|
|
|
|
|
import apiActionEditorConfig from "constants/AppsmithActionConstants/formConfig/ApiEditorConfigs";
|
2021-04-22 03:30:09 +00:00
|
|
|
import saasActionSettingsConfig from "constants/AppsmithActionConstants/formConfig/GoogleSheetsSettingsConfig";
|
2021-04-26 05:41:32 +00:00
|
|
|
import apiActionDependencyConfig from "constants/AppsmithActionConstants/formConfig/ApiDependencyConfigs";
|
2022-03-30 13:11:25 +00:00
|
|
|
import apiActionDatasourceFormButtonConfig from "constants/AppsmithActionConstants/formConfig/ApiDatasourceFormsButtonConfig";
|
2021-02-04 09:38:25 +00:00
|
|
|
|
2020-03-06 09:45:21 +00:00
|
|
|
export type ExecuteActionPayloadEvent = {
|
|
|
|
|
type: EventType;
|
|
|
|
|
callback?: (result: ExecutionResult) => void;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type ExecutionResult = {
|
|
|
|
|
success: boolean;
|
|
|
|
|
};
|
|
|
|
|
|
2021-09-23 07:21:57 +00:00
|
|
|
export type TriggerSource = {
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
2022-03-17 12:05:17 +00:00
|
|
|
collectionId?: string;
|
|
|
|
|
isJSAction?: boolean;
|
|
|
|
|
actionId?: string;
|
2021-09-23 07:21:57 +00:00
|
|
|
};
|
|
|
|
|
|
2021-08-27 09:25:28 +00:00
|
|
|
export type ExecuteTriggerPayload = {
|
2020-02-18 10:41:52 +00:00
|
|
|
dynamicString: string;
|
2020-03-06 09:45:21 +00:00
|
|
|
event: ExecuteActionPayloadEvent;
|
2022-03-02 06:37:20 +00:00
|
|
|
callbackData?: Array<any>;
|
2021-04-23 13:50:55 +00:00
|
|
|
triggerPropertyName?: string;
|
2021-09-23 07:21:57 +00:00
|
|
|
source?: TriggerSource;
|
2021-09-09 15:10:22 +00:00
|
|
|
widgetId?: string;
|
2022-03-02 06:37:20 +00:00
|
|
|
globalContext?: Record<string, unknown>;
|
2021-04-23 13:50:55 +00:00
|
|
|
};
|
|
|
|
|
|
2021-03-30 05:29:03 +00:00
|
|
|
export type ContentType =
|
|
|
|
|
| "application/json"
|
|
|
|
|
| "application/x-www-form-urlencoded";
|
|
|
|
|
|
|
|
|
|
export interface APIHeaders {
|
|
|
|
|
"Content-Type": ContentType;
|
|
|
|
|
Accept?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface APIRequest {
|
|
|
|
|
requestId?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-18 10:41:52 +00:00
|
|
|
export enum EventType {
|
2020-03-06 09:45:21 +00:00
|
|
|
ON_RESET = "ON_RESET",
|
2020-02-18 10:41:52 +00:00
|
|
|
ON_PAGE_LOAD = "ON_PAGE_LOAD",
|
|
|
|
|
ON_PREV_PAGE = "ON_PREV_PAGE",
|
|
|
|
|
ON_NEXT_PAGE = "ON_NEXT_PAGE",
|
2021-01-27 05:40:53 +00:00
|
|
|
ON_PAGE_SIZE_CHANGE = "ON_PAGE_SIZE_CHANGE",
|
2020-02-18 10:41:52 +00:00
|
|
|
ON_ERROR = "ON_ERROR",
|
|
|
|
|
ON_SUCCESS = "ON_SUCCESS",
|
|
|
|
|
ON_ROW_SELECTED = "ON_ROW_SELECTED",
|
2020-07-03 08:26:04 +00:00
|
|
|
ON_SEARCH = "ON_SEARCH",
|
2020-02-18 10:41:52 +00:00
|
|
|
ON_CLICK = "ON_CLICK",
|
2021-02-22 16:31:13 +00:00
|
|
|
ON_DATA_POINT_CLICK = "ON_DATA_POINT_CLICK",
|
2020-02-21 13:17:52 +00:00
|
|
|
ON_FILES_SELECTED = "ON_FILES_SELECTED",
|
2020-02-18 10:41:52 +00:00
|
|
|
ON_HOVER = "ON_HOVER",
|
|
|
|
|
ON_TOGGLE = "ON_TOGGLE",
|
|
|
|
|
ON_LOAD = "ON_LOAD",
|
2021-06-01 09:20:13 +00:00
|
|
|
ON_MODAL_CLOSE = "ON_MODAL_CLOSE",
|
2020-02-18 10:41:52 +00:00
|
|
|
ON_TEXT_CHANGE = "ON_TEXT_CHANGE",
|
|
|
|
|
ON_SUBMIT = "ON_SUBMIT",
|
|
|
|
|
ON_CHECK_CHANGE = "ON_CHECK_CHANGE",
|
2021-02-16 12:15:17 +00:00
|
|
|
ON_SWITCH_CHANGE = "ON_SWITCH_CHANGE",
|
2020-02-18 10:41:52 +00:00
|
|
|
ON_SELECT = "ON_SELECT",
|
|
|
|
|
ON_DATE_SELECTED = "ON_DATE_SELECTED",
|
|
|
|
|
ON_DATE_RANGE_SELECTED = "ON_DATE_RANGE_SELECTED",
|
|
|
|
|
ON_OPTION_CHANGE = "ON_OPTION_CHANGE",
|
2021-08-16 06:56:09 +00:00
|
|
|
ON_FILTER_CHANGE = "ON_FILTER_CHANGE",
|
|
|
|
|
ON_FILTER_UPDATE = "ON_FILTER_UPDATE",
|
2020-04-15 11:42:11 +00:00
|
|
|
ON_MARKER_CLICK = "ON_MARKER_CLICK",
|
|
|
|
|
ON_CREATE_MARKER = "ON_CREATE_MARKER",
|
2020-08-07 07:23:15 +00:00
|
|
|
ON_TAB_CHANGE = "ON_TAB_CHANGE",
|
2020-09-26 12:59:33 +00:00
|
|
|
ON_VIDEO_START = "ON_VIDEO_START",
|
|
|
|
|
ON_VIDEO_END = "ON_VIDEO_END",
|
|
|
|
|
ON_VIDEO_PLAY = "ON_VIDEO_PLAY",
|
|
|
|
|
ON_VIDEO_PAUSE = "ON_VIDEO_PAUSE",
|
2021-09-24 16:05:53 +00:00
|
|
|
ON_AUDIO_START = "ON_AUDIO_START",
|
|
|
|
|
ON_AUDIO_END = "ON_AUDIO_END",
|
|
|
|
|
ON_AUDIO_PLAY = "ON_AUDIO_PLAY",
|
|
|
|
|
ON_AUDIO_PAUSE = "ON_AUDIO_PAUSE",
|
2021-07-02 09:55:50 +00:00
|
|
|
ON_RATE_CHANGED = "ON_RATE_CHANGED",
|
2021-06-09 09:39:17 +00:00
|
|
|
ON_IFRAME_URL_CHANGED = "ON_IFRAME_URL_CHANGED",
|
2022-01-05 05:01:58 +00:00
|
|
|
ON_IFRAME_SRC_DOC_CHANGED = "ON_IFRAME_SRC_DOC_CHANGED",
|
2021-06-09 09:39:17 +00:00
|
|
|
ON_IFRAME_MESSAGE_RECEIVED = "ON_IFRAME_MESSAGE_RECEIVED",
|
2021-08-29 03:50:16 +00:00
|
|
|
ON_SNIPPET_EXECUTE = "ON_SNIPPET_EXECUTE",
|
2021-08-25 13:20:06 +00:00
|
|
|
ON_SORT = "ON_SORT",
|
2021-08-17 09:11:38 +00:00
|
|
|
ON_CHECKBOX_GROUP_SELECTION_CHANGE = "ON_CHECKBOX_GROUP_SELECTION_CHANGE",
|
2021-09-22 08:46:51 +00:00
|
|
|
ON_LIST_PAGE_CHANGE = "ON_LIST_PAGE_CHANGE",
|
2021-09-08 11:00:36 +00:00
|
|
|
ON_RECORDING_START = "ON_RECORDING_START",
|
|
|
|
|
ON_RECORDING_COMPLETE = "ON_RECORDING_COMPLETE",
|
2021-12-09 12:02:47 +00:00
|
|
|
ON_SWITCH_GROUP_SELECTION_CHANGE = "ON_SWITCH_GROUP_SELECTION_CHANGE",
|
2021-12-23 14:17:20 +00:00
|
|
|
ON_JS_FUNCTION_EXECUTE = "ON_JS_FUNCTION_EXECUTE",
|
feat: camera widget (#8069)
* feat: Camera Widget
-- Scaffold the basic structure of the widget
* feat: Camera Widget
-- Prototype a feature, taking picture
* feat: Camera Widget
-- Add types for MediaRecorder
-- Define media capture status and action types
-- Prototype basic video recording, playing features
* feat: Camera Widget
-- Implement video player
-- Add timer for recording and playing video
-- Add permission and error handling logic
-- Add device selectors
* feat: Camera Widget
-- Place control buttons above device inputs layer
-- Make the widget fully responsive
* feat: Camera Widget
-- Change the color of caret-down icon to white
-- Remove overlaying of web cam and video player
-- Add some padding for device inputs
* feat: Camera Widget
-- Add black background to the container of the widget
* feat: Camera Widget
-- Change the widget icon
* feat: Camera Widget
-- Implement the mute feature of a mic or a camera
* feat: Camera Widget
-- Check media device permissions before getting started
* feat: Camera Widget
-- Add a fullscreen control
* feat: Camera Widget
-- Set error text color to white
-- Change the layout of control panel
* feat: Camera Widget
-- Apply layout change for control panel according to app layout change
* feat: Camera Widget
-- Add a new derived property, videoURL
* feat: Switch Group Widget
-- Adopt theme changes
* feat: Camera Widget
-- Make background grey in case of both error and disabled status
* feat: Camera Widget
-- Update npm dependencies
* feat: Camera Widget
-- Fix on #8788, using muted property
* feat: Camera Widget
-- Show off the microphone setting icon only if the current mode is video
-- Set isMirrored property to true by default
* feat: Camera Widget
-- Add photo viewer
* feat: Camera Widget
-- Add onImageCapture, onRecordingStart, onRecordingStop actions instead of onMediaCapture
* feat: Camera Widget
-- Expose meta properties for the widget
* feat: Camera Widget
-- Fix on responsiveness issue
* feat: Camera Widget
-- Add type definitions for MediaStream recording
* feat: Camera Widget
-- Hide isMirroed property for video mode
* feat: Camera Widget
-- Wrap all the controls with TooltipComponent
* feat: Camera Widget
-- Implement enter, exit full screen feature
* feat: Camera Widget
-- Add a widget icon for entity explorer
* feat: Camera Widget
-- Fix on the typo for the label of onRecordingStop property
* feat: Camera Widget
-- Enable/disable media tracks
* feat: Camera Widget
-- Set the video's height to 100% in fullscreen mode
* feat: Camera Widget
-- Add overlayers on Webcam
* feat: Camera Widget
-- Set position to relative on fullscreen wrapper div
-- Set the photo viewer's height to 100%
* feat: Camera Widget
-- Add image, mediaCaptureStatus, timer meta properties to keep UI states when the widget is dragged
* feat: Camera Widget
-- Refactor code base, eliminating commented code blocks
* feat: Camera Widget
-- Revert all the changes needed for keeping status when the widget is dragged
-- Set mirroed property to false for video mode
2021-12-24 14:06:59 +00:00
|
|
|
ON_CAMERA_IMAGE_CAPTURE = "ON_CAMERA_IMAGE_CAPTURE",
|
2022-02-17 12:10:32 +00:00
|
|
|
ON_CAMERA_IMAGE_SAVE = "ON_CAMERA_IMAGE_SAVE",
|
feat: camera widget (#8069)
* feat: Camera Widget
-- Scaffold the basic structure of the widget
* feat: Camera Widget
-- Prototype a feature, taking picture
* feat: Camera Widget
-- Add types for MediaRecorder
-- Define media capture status and action types
-- Prototype basic video recording, playing features
* feat: Camera Widget
-- Implement video player
-- Add timer for recording and playing video
-- Add permission and error handling logic
-- Add device selectors
* feat: Camera Widget
-- Place control buttons above device inputs layer
-- Make the widget fully responsive
* feat: Camera Widget
-- Change the color of caret-down icon to white
-- Remove overlaying of web cam and video player
-- Add some padding for device inputs
* feat: Camera Widget
-- Add black background to the container of the widget
* feat: Camera Widget
-- Change the widget icon
* feat: Camera Widget
-- Implement the mute feature of a mic or a camera
* feat: Camera Widget
-- Check media device permissions before getting started
* feat: Camera Widget
-- Add a fullscreen control
* feat: Camera Widget
-- Set error text color to white
-- Change the layout of control panel
* feat: Camera Widget
-- Apply layout change for control panel according to app layout change
* feat: Camera Widget
-- Add a new derived property, videoURL
* feat: Switch Group Widget
-- Adopt theme changes
* feat: Camera Widget
-- Make background grey in case of both error and disabled status
* feat: Camera Widget
-- Update npm dependencies
* feat: Camera Widget
-- Fix on #8788, using muted property
* feat: Camera Widget
-- Show off the microphone setting icon only if the current mode is video
-- Set isMirrored property to true by default
* feat: Camera Widget
-- Add photo viewer
* feat: Camera Widget
-- Add onImageCapture, onRecordingStart, onRecordingStop actions instead of onMediaCapture
* feat: Camera Widget
-- Expose meta properties for the widget
* feat: Camera Widget
-- Fix on responsiveness issue
* feat: Camera Widget
-- Add type definitions for MediaStream recording
* feat: Camera Widget
-- Hide isMirroed property for video mode
* feat: Camera Widget
-- Wrap all the controls with TooltipComponent
* feat: Camera Widget
-- Implement enter, exit full screen feature
* feat: Camera Widget
-- Add a widget icon for entity explorer
* feat: Camera Widget
-- Fix on the typo for the label of onRecordingStop property
* feat: Camera Widget
-- Enable/disable media tracks
* feat: Camera Widget
-- Set the video's height to 100% in fullscreen mode
* feat: Camera Widget
-- Add overlayers on Webcam
* feat: Camera Widget
-- Set position to relative on fullscreen wrapper div
-- Set the photo viewer's height to 100%
* feat: Camera Widget
-- Add image, mediaCaptureStatus, timer meta properties to keep UI states when the widget is dragged
* feat: Camera Widget
-- Refactor code base, eliminating commented code blocks
* feat: Camera Widget
-- Revert all the changes needed for keeping status when the widget is dragged
-- Set mirroed property to false for video mode
2021-12-24 14:06:59 +00:00
|
|
|
ON_CAMERA_VIDEO_RECORDING_START = "ON_CAMERA_VIDEO_RECORDING_START",
|
|
|
|
|
ON_CAMERA_VIDEO_RECORDING_STOP = "ON_CAMERA_VIDEO_RECORDING_STOP",
|
2022-02-17 12:10:32 +00:00
|
|
|
ON_CAMERA_VIDEO_RECORDING_SAVE = "ON_CAMERA_VIDEO_RECORDING_SAVE",
|
feat: JSON Form widget (#8472)
* initial layout
* updated parser to support nested array
* array field rendering
* changes
* ts fix
* minor revert FormWidget
* modified schema structure
* select and switch fields
* added checkbox field
* added RadioGroupField
* partial DateField and defaults, typing refactoring
* added label and field type change
* minor ts changes
* changes
* modified widget/utils for nested panelConfig, modified schema to object approach
* array/object label support
* hide field configuration when children not present
* added tooltip
* field visibility option
* disabled state
* upgraded tslib, form initial values
* custom field configuration - add/hide/edit
* field configuration - label change
* return input when field configuration reaches max depth
* minor changes
* form - scroll, fixedfooter, enitity defn and other minior changes
* form title
* unregister on unmount
* fixes
* zero state
* fix field padding
* patched updating form values, removed linting warnings
* configured action buttons
* minor fix
* minor change
* property pane - sort fields in field configuration
* refactor include all properties
* checkbox properties
* date properties
* refactor typings and radio group properties
* switch, multselect, select, array, object properties
* minor changes
* default value
* ts fixes
* checkbox field properties implementation
* date field prop implementation
* switch field
* select field and fix deep nested meta properties
* multiselect implementation
* minor change
* input field implementation
* fix position jump on field type change
* initial accordian
* field state property and auto-complete of JSONFormComputeControl
* merge fixes
* renamed FormBuilder to JSONForm
* source data validation minor change
* custom field default value fix
* Editable keys for custom field
* minor fixes
* replaced useFieldArray with custom logic, added widget icon
* array and object accordian with border/background styling
* minor change
* disabled states for array and objects
* default value minor fix
* form level styles
* modified logic for isDisabled for array and object, added disabledWhenInvalid, exposed isValid to fieldState for text input, removed useDisableChildren
* added isValid for all field types
* fixed reset to default values
* debounce form values update
* minor change
* minor change
* fix crash - source data change multi-select to array, fix crash - change of options
* fix positioning
* detect date type in source data
* fix crash - when object is passed to regex input field
* fixed default sourceData path for fields
* accodion keep children mounted on collapse
* jest test for schemaParser
* widget/helper and useRegisterFieldInvalid test
* tests for property config helper and generatePanelPropertyConfig
* fix input field validation not appearing
* fix date field type detection
* rename data -> formData
* handle null/undefined field value change in sourceData
* added null/undefined as valid values for defaultValue text field
* auto detect email field
* set formData default value on initial load
* switch field inline positioning
* field margin fix for row direction
* select full width
* fiex date field default value - out of range
* fix any field type to array
* array default value logic change
* base cypress test changes
* initial json form render cy test
* key sanitization
* fix fieldState update logic
* required design, object/array background color, accordion changes, fix - add new custom field
* minor change
* cypress tests
* fix date formatted value, field state cypress test
* cypress - field properties test and fixes
* rename test file
* fix accessort change to blank value, cypress tests
* fix array field default value for modified accessor
* minor fix
* added animate loading
* fix empty state, add new custom field
* test data fix
* fix warnings
* fix timePrecision visibility
* button styling
* ported input v2
* fix jest tests
* fix cypress tests
* perf changes
* perf improvement
* added comments
* multiselect changes
* input field perf refactor
* array field, object field refactor performance
* checkbox field refactor
* refectored date, radio, select and switch
* fixes
* test fixes
* fixes
* minor fix
* rename field renderer
* remove tracked fieldRenderer field
* cypress test fixes
* cypress changes
* array default value fixes
* arrayfield passedDefaultValue
* auto enabled JS mode for few properties, reverted swith and date property controls
* cypress changes
* added widget sniping mode and fixed object passedDefaultValue
* multiselect v2
* select v2
* fix jest tests
* test fixes
* field limit
* rename field type dropdown texts
* field type changes fixes
* jest fixes
* loading state submit button
* default source data for new widget
* modify limit message
* multiseelct default value changes and cypress fix
* select default value
* keep default value intact on field type change
* TextTable cypress text fix
* review changes
* fixed footer changes
* collapse styles section by default
* fixed footer changes
* form modes
* custom field key rentention
* fixed footer fix in view mode
* non ascii characters
* fix meta merge in dataTreeWidget
* minor fixes
* rename useRegisterFieldInvalid.ts -> useRegisterFieldValidity.ts
* modified dependency injection into evaluated values
* refactored fixedfooter logic
* minor change
* accessor update
* minor change
* fixes
* QA fixes date field, scroll content
* fix phone number field, removed visiblity option from array item
* fix sourceData autocomplete
* reset logic
* fix multiselect reset
* form values hydration on widget drag
* code review changes
* reverted order of merge dataTreeWidget
* fixes
* added button titles, fixed hydration issue
* default value fixes
* upgraded react hook form, modified array-level/field-level default value logic
* fixed select validation
* added icon entity explorer, modified icon align control
* modify accessor validation for mongo db _id
* update email field regex
* review changes
* explicitly handle empty source data validation
2022-03-24 07:13:25 +00:00
|
|
|
ON_ENTER_KEY_PRESS = "ON_ENTER_KEY_PRESS",
|
|
|
|
|
ON_BLUR = "ON_BLUR",
|
|
|
|
|
ON_FOCUS = "ON_FOCUS",
|
2020-02-18 10:41:52 +00:00
|
|
|
}
|
2019-03-30 12:30:42 +00:00
|
|
|
|
2019-09-12 13:44:25 +00:00
|
|
|
export interface PageAction {
|
2019-10-21 15:12:45 +00:00
|
|
|
id: string;
|
2021-03-30 05:29:03 +00:00
|
|
|
pluginType: PluginType;
|
2019-10-21 15:12:45 +00:00
|
|
|
name: string;
|
2019-12-11 15:24:27 +00:00
|
|
|
jsonPathKeys: string[];
|
2020-05-07 08:07:29 +00:00
|
|
|
timeoutInMillisecond: number;
|
2022-03-17 12:05:17 +00:00
|
|
|
clientSideExecution?: boolean;
|
|
|
|
|
collectionId?: string;
|
2019-09-16 10:37:38 +00:00
|
|
|
}
|
2019-12-03 04:28:14 +00:00
|
|
|
|
2021-02-04 09:38:25 +00:00
|
|
|
export interface ExecuteErrorPayload extends ErrorActionPayload {
|
2020-01-30 13:23:04 +00:00
|
|
|
actionId: string;
|
2020-09-28 05:12:23 +00:00
|
|
|
isPageLoad?: boolean;
|
2021-02-04 09:38:25 +00:00
|
|
|
data: ActionResponse;
|
2020-01-30 13:23:04 +00:00
|
|
|
}
|
2020-07-06 13:35:31 +00:00
|
|
|
|
|
|
|
|
// Group 1 = datasource (https://www.domain.com)
|
|
|
|
|
// Group 2 = path (/nested/path)
|
|
|
|
|
// Group 3 = params (?param=123¶m2=12)
|
2022-01-07 11:57:51 +00:00
|
|
|
export const urlGroupsRegexExp = /^(https?:\/{2}\S+?)(\/[\s\S]*?)?(\?(?![^{]*})[\s\S]*)?$/;
|
2021-01-14 14:37:21 +00:00
|
|
|
|
2020-12-14 18:48:13 +00:00
|
|
|
export const EXECUTION_PARAM_KEY = "executionParams";
|
2022-02-04 12:28:46 +00:00
|
|
|
export const EXECUTION_PARAM_REFERENCE_REGEX = /this.params|this\?.params/g;
|
|
|
|
|
export const THIS_DOT_PARAMS_KEY = "params";
|
2021-03-30 05:29:03 +00:00
|
|
|
|
2021-07-19 14:43:37 +00:00
|
|
|
export const RESP_HEADER_DATATYPE = "X-APPSMITH-DATATYPE";
|
2021-03-30 05:29:03 +00:00
|
|
|
export const API_REQUEST_HEADERS: APIHeaders = {
|
|
|
|
|
"Content-Type": "application/json",
|
|
|
|
|
};
|
|
|
|
|
export const POSTMAN = "POSTMAN";
|
|
|
|
|
export const CURL = "CURL";
|
|
|
|
|
export const Swagger = "Swagger";
|
|
|
|
|
|
|
|
|
|
export const defaultActionSettings: Record<PluginType, any> = {
|
|
|
|
|
[PluginType.API]: apiActionSettingsConfig,
|
|
|
|
|
[PluginType.DB]: queryActionSettingsConfig,
|
2021-04-22 03:30:09 +00:00
|
|
|
[PluginType.SAAS]: saasActionSettingsConfig,
|
2021-09-21 12:05:29 +00:00
|
|
|
[PluginType.REMOTE]: saasActionSettingsConfig,
|
2021-09-08 13:47:30 +00:00
|
|
|
[PluginType.JS]: [],
|
2021-03-30 05:29:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const defaultActionEditorConfigs: Record<PluginType, any> = {
|
|
|
|
|
[PluginType.API]: apiActionEditorConfig,
|
|
|
|
|
[PluginType.DB]: [],
|
2021-04-22 03:30:09 +00:00
|
|
|
[PluginType.SAAS]: [],
|
2021-09-21 12:05:29 +00:00
|
|
|
[PluginType.REMOTE]: [],
|
2021-09-08 13:47:30 +00:00
|
|
|
[PluginType.JS]: [],
|
2021-03-30 05:29:03 +00:00
|
|
|
};
|
2021-04-26 05:41:32 +00:00
|
|
|
|
|
|
|
|
export const defaultActionDependenciesConfig: Record<
|
|
|
|
|
PluginType,
|
|
|
|
|
Record<string, string[]>
|
|
|
|
|
> = {
|
|
|
|
|
[PluginType.API]: apiActionDependencyConfig,
|
|
|
|
|
[PluginType.DB]: {},
|
|
|
|
|
[PluginType.SAAS]: {},
|
2021-09-21 12:05:29 +00:00
|
|
|
[PluginType.REMOTE]: {},
|
2021-09-08 13:47:30 +00:00
|
|
|
[PluginType.JS]: {},
|
2021-04-26 05:41:32 +00:00
|
|
|
};
|
2022-03-30 13:11:25 +00:00
|
|
|
|
|
|
|
|
export const defaultDatasourceFormButtonConfig: Record<PluginType, string[]> = {
|
|
|
|
|
[PluginType.API]: apiActionDatasourceFormButtonConfig.API,
|
|
|
|
|
[PluginType.DB]: apiActionDatasourceFormButtonConfig.DB,
|
|
|
|
|
[PluginType.SAAS]: apiActionDatasourceFormButtonConfig.SAAS,
|
|
|
|
|
[PluginType.REMOTE]: apiActionDatasourceFormButtonConfig.REMOTE,
|
|
|
|
|
[PluginType.JS]: [],
|
|
|
|
|
};
|