@nocobase/plugin-flow-engine 2.1.0-alpha.11 → 2.1.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/externalVersion.js +12 -11
- package/dist/node_modules/ajv/package.json +1 -1
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-models/schema-contribution-collector.d.ts +2 -1
- package/dist/server/flow-models/schema-contribution-collector.js +26 -5
- package/dist/server/flow-schema-contributions/actions/aclCheck.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/actionLinkageRules.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/confirm.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/customVariable.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/dataScope.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/formAssignRules.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/index.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/layout.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/navigateToURL.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/openView.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/runjs.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/setTargetDataScope.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/showMessage.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/showNotification.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/sortingRule.d.ts +1 -1
- package/dist/server/flow-schema-contributions/field-models.d.ts +1 -1
- package/dist/server/flow-schema-contributions/index.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.js +382 -0
- package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.js +169 -0
- package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.d.ts +11 -0
- package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.js +115 -0
- package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.js +169 -0
- package/dist/server/flow-schema-contributions/models/ActionExportModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionExportModel.js +141 -0
- package/dist/server/flow-schema-contributions/models/ActionImportModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionImportModel.js +122 -0
- package/dist/server/flow-schema-contributions/models/ActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AddChildActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AddNewActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AssignFormGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AssignFormItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AssignFormModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/BasePageTabModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/BlockGridCardModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockGridCardModel.js +449 -0
- package/dist/server/flow-schema-contributions/models/BlockGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/BlockIframeModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockIframeModel.js +143 -0
- package/dist/server/flow-schema-contributions/models/BlockListModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockListModel.js +435 -0
- package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.js +108 -0
- package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.js +173 -0
- package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ChildPageModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ChildPageTabModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/CommentsModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/CommentsModel.js +255 -0
- package/dist/server/flow-schema-contributions/models/CreateFormModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/DataVisualizationModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/DataVisualizationModel.js +240 -0
- package/dist/server/flow-schema-contributions/models/DeleteActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/DetailsBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/DetailsGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/DetailsItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/EditActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/EditFormModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.js +87 -0
- package/dist/server/flow-schema-contributions/models/FieldCodeModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldCodeModel.js +99 -0
- package/dist/server/flow-schema-contributions/models/FieldFormulaModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldFormulaModel.js +152 -0
- package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.js +92 -0
- package/dist/server/flow-schema-contributions/models/FieldSequenceModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldSequenceModel.js +60 -0
- package/dist/server/flow-schema-contributions/models/FieldSortModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldSortModel.js +87 -0
- package/dist/server/flow-schema-contributions/models/FileManagerModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FileManagerModel.js +115 -0
- package/dist/server/flow-schema-contributions/models/FilterActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSColumnModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSFormActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSRecordActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/LinkActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/MapModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/MapModel.js +427 -0
- package/dist/server/flow-schema-contributions/models/PageModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/PageTabModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/PopupActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/RefreshActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/RootPageModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/RootPageTabModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/RouteModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/TableBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/TableColumnModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/UiTemplatesModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/UiTemplatesModel.js +130 -0
- package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ViewActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/index.d.ts +6 -1
- package/dist/server/flow-schema-contributions/models/index.js +114 -0
- package/dist/server/flow-schema-contributions/shared.d.ts +1 -1
- package/dist/server/flow-schema-registry/FlowSchemaRegistry.d.ts +154 -0
- package/dist/server/flow-schema-registry/FlowSchemaRegistry.js +1424 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.d.ts +32 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.js +159 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.d.ts +16 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.js +226 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.d.ts +17 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.js +204 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/utils.d.ts +25 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/utils.js +278 -0
- package/dist/server/flow-schema-registry/index.d.ts +10 -0
- package/dist/server/flow-schema-registry/index.js +32 -0
- package/dist/server/flow-schema-registry/types.d.ts +244 -0
- package/dist/server/flow-schema-registry/types.js +24 -0
- package/dist/server/flow-schema-service.d.ts +1 -1
- package/dist/server/flow-schema-service.js +2 -2
- package/dist/server/plugin.d.ts +1 -1
- package/dist/server/repository.d.ts +1 -0
- package/dist/server/repository.js +3 -5
- package/dist/server/server.js +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution, FlowSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
import { actionModelSchemaContribution } from './ActionModel';
|
|
11
11
|
import { addChildActionModelInternalSchemaContribution } from './AddChildActionModel';
|
|
12
12
|
import { addNewActionModelInternalSchemaContribution } from './AddNewActionModel';
|
|
@@ -64,3 +64,8 @@ import { updateRecordActionModelSchemaContribution } from './UpdateRecordActionM
|
|
|
64
64
|
import { viewActionModelInternalSchemaContribution } from './ViewActionModel';
|
|
65
65
|
export { actionModelSchemaContribution, addChildActionModelInternalSchemaContribution, addNewActionModelInternalSchemaContribution, assignFormItemModelInternalSchemaContribution, assignFormGridModelInternalSchemaContribution, assignFormModelInternalSchemaContribution, basePageTabModelInternalSchemaContribution, blockGridModelInternalSchemaContribution, bulkDeleteActionModelInternalSchemaContribution, childPageModelInternalSchemaContribution, childPageTabModelInternalSchemaContribution, createFormModelSchemaContribution, deleteActionModelInternalSchemaContribution, detailsBlockModelSchemaContribution, detailsGridModelInternalSchemaContribution, detailsItemModelInternalSchemaContribution, editActionModelInternalSchemaContribution, expandCollapseActionModelInternalSchemaContribution, editFormModelSchemaContribution, filterActionModelInternalSchemaContribution, filterFormBlockModelSchemaContribution, filterFormCollapseActionModelInternalSchemaContribution, filterFormCustomFieldModelInternalSchemaContribution, filterFormGridModelInternalSchemaContribution, filterFormItemModelInternalSchemaContribution, filterFormJsActionModelInternalSchemaContribution, filterFormResetActionModelInternalSchemaContribution, filterFormSubmitActionModelInternalSchemaContribution, formBlockModelInternalSchemaContribution, formAssociationItemModelInternalSchemaContribution, formGridModelInternalSchemaContribution, jsActionModelInternalSchemaContribution, jsBlockModelSchemaContribution, jsCollectionActionModelInternalSchemaContribution, jsFormActionModelInternalSchemaContribution, jsItemModelInternalSchemaContribution, formItemModelInternalSchemaContribution, jsRecordActionModelInternalSchemaContribution, formSubmitActionModelInternalSchemaContribution, jsColumnModelInternalSchemaContribution, linkActionModelInternalSchemaContribution, pageModelSchemaContribution, pageTabModelInternalSchemaContribution, popupActionModelInternalSchemaContribution, popupCollectionActionModelInternalSchemaContribution, refreshActionModelInternalSchemaContribution, rootPageModelSchemaContribution, rootPageTabModelInternalSchemaContribution, routeModelSchemaContribution, tableActionsColumnModelInternalSchemaContribution, tableBlockModelSchemaContribution, tableColumnModelInternalSchemaContribution, tableCustomColumnModelInternalSchemaContribution, updateRecordActionModelSchemaContribution, viewActionModelInternalSchemaContribution, };
|
|
66
66
|
export declare const flowSchemaModelContributions: FlowModelSchemaContribution[];
|
|
67
|
+
export type OfficialFlowSchemaContributionEntry = {
|
|
68
|
+
packageName: string;
|
|
69
|
+
contribution: FlowSchemaContribution;
|
|
70
|
+
};
|
|
71
|
+
export declare const officialFlowSchemaContributions: OfficialFlowSchemaContributionEntry[];
|
|
@@ -68,6 +68,7 @@ __export(models_exports, {
|
|
|
68
68
|
jsItemModelInternalSchemaContribution: () => import_JSItemModel.jsItemModelInternalSchemaContribution,
|
|
69
69
|
jsRecordActionModelInternalSchemaContribution: () => import_JSRecordActionModel.jsRecordActionModelInternalSchemaContribution,
|
|
70
70
|
linkActionModelInternalSchemaContribution: () => import_LinkActionModel.linkActionModelInternalSchemaContribution,
|
|
71
|
+
officialFlowSchemaContributions: () => officialFlowSchemaContributions,
|
|
71
72
|
pageModelSchemaContribution: () => import_PageModel.pageModelSchemaContribution,
|
|
72
73
|
pageTabModelInternalSchemaContribution: () => import_PageTabModel.pageTabModelInternalSchemaContribution,
|
|
73
74
|
popupActionModelInternalSchemaContribution: () => import_PopupActionModel.popupActionModelInternalSchemaContribution,
|
|
@@ -84,18 +85,31 @@ __export(models_exports, {
|
|
|
84
85
|
viewActionModelInternalSchemaContribution: () => import_ViewActionModel.viewActionModelInternalSchemaContribution
|
|
85
86
|
});
|
|
86
87
|
module.exports = __toCommonJS(models_exports);
|
|
88
|
+
var import_ActionBulkEditModel = require("./ActionBulkEditModel");
|
|
89
|
+
var import_ActionBulkUpdateModel = require("./ActionBulkUpdateModel");
|
|
90
|
+
var import_ActionCustomRequestModel = require("./ActionCustomRequestModel");
|
|
87
91
|
var import_ActionModel = require("./ActionModel");
|
|
92
|
+
var import_ActionDuplicateModel = require("./ActionDuplicateModel");
|
|
93
|
+
var import_ActionExportModel = require("./ActionExportModel");
|
|
94
|
+
var import_ActionImportModel = require("./ActionImportModel");
|
|
88
95
|
var import_AddChildActionModel = require("./AddChildActionModel");
|
|
89
96
|
var import_AddNewActionModel = require("./AddNewActionModel");
|
|
90
97
|
var import_AssignFormItemModel = require("./AssignFormItemModel");
|
|
91
98
|
var import_AssignFormGridModel = require("./AssignFormGridModel");
|
|
92
99
|
var import_AssignFormModel = require("./AssignFormModel");
|
|
93
100
|
var import_BasePageTabModel = require("./BasePageTabModel");
|
|
101
|
+
var import_BlockGridCardModel = require("./BlockGridCardModel");
|
|
94
102
|
var import_BlockGridModel = require("./BlockGridModel");
|
|
103
|
+
var import_BlockIframeModel = require("./BlockIframeModel");
|
|
104
|
+
var import_BlockListModel = require("./BlockListModel");
|
|
105
|
+
var import_BlockMarkdownModel = require("./BlockMarkdownModel");
|
|
106
|
+
var import_BlockWorkbenchModel = require("./BlockWorkbenchModel");
|
|
95
107
|
var import_BulkDeleteActionModel = require("./BulkDeleteActionModel");
|
|
96
108
|
var import_ChildPageModel = require("./ChildPageModel");
|
|
97
109
|
var import_ChildPageTabModel = require("./ChildPageTabModel");
|
|
110
|
+
var import_CommentsModel = require("./CommentsModel");
|
|
98
111
|
var import_CreateFormModel = require("./CreateFormModel");
|
|
112
|
+
var import_DataVisualizationModel = require("./DataVisualizationModel");
|
|
99
113
|
var import_DeleteActionModel = require("./DeleteActionModel");
|
|
100
114
|
var import_DetailsBlockModel = require("./DetailsBlockModel");
|
|
101
115
|
var import_DetailsGridModel = require("./DetailsGridModel");
|
|
@@ -103,6 +117,9 @@ var import_DetailsItemModel = require("./DetailsItemModel");
|
|
|
103
117
|
var import_EditActionModel = require("./EditActionModel");
|
|
104
118
|
var import_ExpandCollapseActionModel = require("./ExpandCollapseActionModel");
|
|
105
119
|
var import_EditFormModel = require("./EditFormModel");
|
|
120
|
+
var import_FieldAttachmentUrlModel = require("./FieldAttachmentUrlModel");
|
|
121
|
+
var import_FieldCodeModel = require("./FieldCodeModel");
|
|
122
|
+
var import_FieldFormulaModel = require("./FieldFormulaModel");
|
|
106
123
|
var import_FilterActionModel = require("./FilterActionModel");
|
|
107
124
|
var import_FilterFormBlockModel = require("./FilterFormBlockModel");
|
|
108
125
|
var import_FilterFormCollapseActionModel = require("./FilterFormCollapseActionModel");
|
|
@@ -112,6 +129,10 @@ var import_FilterFormItemModel = require("./FilterFormItemModel");
|
|
|
112
129
|
var import_FilterFormJSActionModel = require("./FilterFormJSActionModel");
|
|
113
130
|
var import_FilterFormResetActionModel = require("./FilterFormResetActionModel");
|
|
114
131
|
var import_FilterFormSubmitActionModel = require("./FilterFormSubmitActionModel");
|
|
132
|
+
var import_FieldMarkdownVditorModel = require("./FieldMarkdownVditorModel");
|
|
133
|
+
var import_FieldSequenceModel = require("./FieldSequenceModel");
|
|
134
|
+
var import_FieldSortModel = require("./FieldSortModel");
|
|
135
|
+
var import_FileManagerModel = require("./FileManagerModel");
|
|
115
136
|
var import_FormBlockModel = require("./FormBlockModel");
|
|
116
137
|
var import_FormAssociationItemModel = require("./FormAssociationItemModel");
|
|
117
138
|
var import_FormGridModel = require("./FormGridModel");
|
|
@@ -137,6 +158,8 @@ var import_TableActionsColumnModel = require("./TableActionsColumnModel");
|
|
|
137
158
|
var import_TableBlockModel = require("./TableBlockModel");
|
|
138
159
|
var import_TableColumnModel = require("./TableColumnModel");
|
|
139
160
|
var import_TableCustomColumnModel = require("./TableCustomColumnModel");
|
|
161
|
+
var import_MapModel = require("./MapModel");
|
|
162
|
+
var import_UiTemplatesModel = require("./UiTemplatesModel");
|
|
140
163
|
var import_UpdateRecordActionModel = require("./UpdateRecordActionModel");
|
|
141
164
|
var import_ViewActionModel = require("./ViewActionModel");
|
|
142
165
|
const flowSchemaModelContributions = [
|
|
@@ -196,6 +219,96 @@ const flowSchemaModelContributions = [
|
|
|
196
219
|
import_TableBlockModel.tableBlockModelSchemaContribution,
|
|
197
220
|
import_PageModel.pageModelSchemaContribution
|
|
198
221
|
];
|
|
222
|
+
const officialFlowSchemaContributions = [
|
|
223
|
+
{
|
|
224
|
+
packageName: "@nocobase/plugin-action-bulk-edit",
|
|
225
|
+
contribution: import_ActionBulkEditModel.flowSchemaContribution
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
packageName: "@nocobase/plugin-action-bulk-update",
|
|
229
|
+
contribution: import_ActionBulkUpdateModel.flowSchemaContribution
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
packageName: "@nocobase/plugin-action-custom-request",
|
|
233
|
+
contribution: import_ActionCustomRequestModel.flowSchemaContribution
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
packageName: "@nocobase/plugin-action-duplicate",
|
|
237
|
+
contribution: import_ActionDuplicateModel.flowSchemaContribution
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
packageName: "@nocobase/plugin-action-export",
|
|
241
|
+
contribution: import_ActionExportModel.flowSchemaContribution
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
packageName: "@nocobase/plugin-action-import",
|
|
245
|
+
contribution: import_ActionImportModel.flowSchemaContribution
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
packageName: "@nocobase/plugin-block-grid-card",
|
|
249
|
+
contribution: import_BlockGridCardModel.flowSchemaContribution
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
packageName: "@nocobase/plugin-block-iframe",
|
|
253
|
+
contribution: import_BlockIframeModel.flowSchemaContribution
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
packageName: "@nocobase/plugin-block-list",
|
|
257
|
+
contribution: import_BlockListModel.flowSchemaContribution
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
packageName: "@nocobase/plugin-block-markdown",
|
|
261
|
+
contribution: import_BlockMarkdownModel.flowSchemaContribution
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
packageName: "@nocobase/plugin-block-workbench",
|
|
265
|
+
contribution: import_BlockWorkbenchModel.flowSchemaContribution
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
packageName: "@nocobase/plugin-comments",
|
|
269
|
+
contribution: import_CommentsModel.flowSchemaContribution
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
packageName: "@nocobase/plugin-data-visualization",
|
|
273
|
+
contribution: import_DataVisualizationModel.flowSchemaContribution
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
packageName: "@nocobase/plugin-field-attachment-url",
|
|
277
|
+
contribution: import_FieldAttachmentUrlModel.flowSchemaContribution
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
packageName: "@nocobase/plugin-field-code",
|
|
281
|
+
contribution: import_FieldCodeModel.flowSchemaContribution
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
packageName: "@nocobase/plugin-field-formula",
|
|
285
|
+
contribution: import_FieldFormulaModel.flowSchemaContribution
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
packageName: "@nocobase/plugin-field-markdown-vditor",
|
|
289
|
+
contribution: import_FieldMarkdownVditorModel.flowSchemaContribution
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
packageName: "@nocobase/plugin-field-sequence",
|
|
293
|
+
contribution: import_FieldSequenceModel.flowSchemaContribution
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
packageName: "@nocobase/plugin-field-sort",
|
|
297
|
+
contribution: import_FieldSortModel.flowSchemaContribution
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
packageName: "@nocobase/plugin-file-manager",
|
|
301
|
+
contribution: import_FileManagerModel.flowSchemaContribution
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
packageName: "@nocobase/plugin-map",
|
|
305
|
+
contribution: import_MapModel.flowSchemaContribution
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
packageName: "@nocobase/plugin-ui-templates",
|
|
309
|
+
contribution: import_UiTemplatesModel.flowSchemaContribution
|
|
310
|
+
}
|
|
311
|
+
];
|
|
199
312
|
// Annotate the CommonJS export names for ESM import in node:
|
|
200
313
|
0 && (module.exports = {
|
|
201
314
|
actionModelSchemaContribution,
|
|
@@ -240,6 +353,7 @@ const flowSchemaModelContributions = [
|
|
|
240
353
|
jsItemModelInternalSchemaContribution,
|
|
241
354
|
jsRecordActionModelInternalSchemaContribution,
|
|
242
355
|
linkActionModelInternalSchemaContribution,
|
|
356
|
+
officialFlowSchemaContributions,
|
|
243
357
|
pageModelSchemaContribution,
|
|
244
358
|
pageTabModelInternalSchemaContribution,
|
|
245
359
|
popupActionModelInternalSchemaContribution,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowDynamicHint, FlowJsonSchema, FlowModelSchemaContribution, FlowSubModelSlotSchema } from '
|
|
9
|
+
import type { FlowDynamicHint, FlowJsonSchema, FlowModelSchemaContribution, FlowSubModelSlotSchema } from '../flow-schema-registry';
|
|
10
10
|
export declare const genericFilterSchema: FlowJsonSchema;
|
|
11
11
|
export declare const genericModelNodeSchema: FlowJsonSchema;
|
|
12
12
|
export declare const emptyObjectSchema: FlowJsonSchema;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { ActionDefinition, FlowActionSchemaContribution, FlowFieldBindingContextContribution, FlowFieldBindingContribution, FlowFieldModelCompatibility, FlowSchemaBundleDocument, FlowSchemaContextEdge, FlowSchemaDocs, FlowDynamicHint, FlowSchemaInventoryContribution, FlowJsonSchema, FlowModelSchemaContribution, FlowSchemaCoverage, FlowSchemaDetail, FlowSchemaDocument, FlowModelSchemaExposure, FlowSchemaPublicDocument, FlowSubModelSlotSchema, ModelConstructor, StepDefinition } from './types';
|
|
10
|
+
import { type StepSchemaResolution } from './flow-schema-registry/schemaInference';
|
|
11
|
+
export type RegisteredActionSchema = {
|
|
12
|
+
name: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
definition?: ActionDefinition;
|
|
15
|
+
schema?: FlowJsonSchema;
|
|
16
|
+
docs: FlowSchemaDocs;
|
|
17
|
+
coverage: FlowSchemaCoverage;
|
|
18
|
+
dynamicHints: FlowDynamicHint[];
|
|
19
|
+
};
|
|
20
|
+
export type RegisteredModelSchema = {
|
|
21
|
+
use: string;
|
|
22
|
+
modelClass?: ModelConstructor;
|
|
23
|
+
stepParamsSchema?: FlowJsonSchema;
|
|
24
|
+
flowRegistrySchema?: FlowJsonSchema;
|
|
25
|
+
subModelSlots?: Record<string, FlowSubModelSlotSchema>;
|
|
26
|
+
flowRegistrySchemaPatch?: FlowJsonSchema;
|
|
27
|
+
title?: string;
|
|
28
|
+
examples: any[];
|
|
29
|
+
docs: FlowSchemaDocs;
|
|
30
|
+
skeleton?: any;
|
|
31
|
+
dynamicHints: FlowDynamicHint[];
|
|
32
|
+
coverage: FlowSchemaCoverage;
|
|
33
|
+
exposure: FlowModelSchemaExposure;
|
|
34
|
+
abstract: boolean;
|
|
35
|
+
allowDirectUse: boolean;
|
|
36
|
+
suggestedUses: string[];
|
|
37
|
+
};
|
|
38
|
+
export declare class FlowSchemaRegistry {
|
|
39
|
+
private readonly modelSchemas;
|
|
40
|
+
private readonly actionSchemas;
|
|
41
|
+
private readonly fieldBindingContexts;
|
|
42
|
+
private readonly fieldBindings;
|
|
43
|
+
private readonly resolvedModelCache;
|
|
44
|
+
private readonly modelSnapshotSchemaCache;
|
|
45
|
+
private readonly compactModelSnapshotSchemaCache;
|
|
46
|
+
private readonly modelSchemaHashCache;
|
|
47
|
+
private readonly compactModelSchemaHashCache;
|
|
48
|
+
private readonly modelDocumentCache;
|
|
49
|
+
private readonly modelLocalDynamicHintsCache;
|
|
50
|
+
private readonly publicModelDocumentCache;
|
|
51
|
+
private readonly publicTreeRoots;
|
|
52
|
+
private readonly slotUseExpansions;
|
|
53
|
+
private invalidateDerivedCaches;
|
|
54
|
+
registerAction(action: ActionDefinition | ({
|
|
55
|
+
name: string;
|
|
56
|
+
} & Partial<ActionDefinition>)): void;
|
|
57
|
+
registerActions(actions: Record<string, ActionDefinition>): void;
|
|
58
|
+
registerActionContribution(contribution: FlowActionSchemaContribution): void;
|
|
59
|
+
registerActionContributions(contributions: FlowActionSchemaContribution[] | Record<string, FlowActionSchemaContribution>): void;
|
|
60
|
+
registerFieldBindingContext(contribution: FlowFieldBindingContextContribution, fallbackName?: string): void;
|
|
61
|
+
registerFieldBindingContexts(contributions: FlowFieldBindingContextContribution[] | Record<string, FlowFieldBindingContextContribution> | undefined): void;
|
|
62
|
+
registerFieldBinding(contribution: FlowFieldBindingContribution, source?: FlowSchemaCoverage['source']): void;
|
|
63
|
+
registerFieldBindings(contributions: FlowFieldBindingContribution[] | Record<string, FlowFieldBindingContribution | FlowFieldBindingContribution[]> | undefined, source?: FlowSchemaCoverage['source']): void;
|
|
64
|
+
registerModel(use: string, options: Partial<RegisteredModelSchema>): void;
|
|
65
|
+
registerModelContribution(contribution: FlowModelSchemaContribution): void;
|
|
66
|
+
registerModelContributions(contributions: FlowModelSchemaContribution[] | Record<string, FlowModelSchemaContribution>): void;
|
|
67
|
+
registerModelClass(use: string, modelClass: ModelConstructor): void;
|
|
68
|
+
registerModels(models: Record<string, ModelConstructor | undefined>): void;
|
|
69
|
+
registerInventory(inventory: FlowSchemaInventoryContribution | undefined, _source: FlowSchemaCoverage['source']): void;
|
|
70
|
+
resolveFieldBindingCandidates(context: string, options?: {
|
|
71
|
+
interface?: string;
|
|
72
|
+
fieldType?: string;
|
|
73
|
+
association?: boolean;
|
|
74
|
+
targetCollectionTemplate?: string;
|
|
75
|
+
}): {
|
|
76
|
+
use: string;
|
|
77
|
+
defaultProps: any;
|
|
78
|
+
compatibility: FlowFieldModelCompatibility;
|
|
79
|
+
}[];
|
|
80
|
+
getAction(name: string): RegisteredActionSchema | undefined;
|
|
81
|
+
listActionNames(): string[];
|
|
82
|
+
getModel(use: string): RegisteredModelSchema | undefined;
|
|
83
|
+
private resolveFieldBindingContextChain;
|
|
84
|
+
private resolveModelSchemaRef;
|
|
85
|
+
resolveModelSchema(use: string, contextChain?: FlowSchemaContextEdge[]): RegisteredModelSchema;
|
|
86
|
+
private isPublicModel;
|
|
87
|
+
private isQueryableModel;
|
|
88
|
+
getSuggestedUses(use: string): string[];
|
|
89
|
+
hasQueryableModel(use: string): boolean;
|
|
90
|
+
isDirectUseAllowed(use: string): boolean;
|
|
91
|
+
listPublicTreeRoots(): string[];
|
|
92
|
+
listModelUses(options?: {
|
|
93
|
+
publicOnly?: boolean;
|
|
94
|
+
directUseOnly?: boolean;
|
|
95
|
+
queryableOnly?: boolean;
|
|
96
|
+
}): string[];
|
|
97
|
+
getSchemaBundle(uses?: string[]): FlowSchemaBundleDocument;
|
|
98
|
+
getModelDocument(use: string, contextChain?: FlowSchemaContextEdge[]): FlowSchemaDocument;
|
|
99
|
+
getModelDocumentRef(use: string, contextChain?: FlowSchemaContextEdge[]): Readonly<FlowSchemaDocument>;
|
|
100
|
+
getPublicModelDocument(use: string, options?: {
|
|
101
|
+
detail?: FlowSchemaDetail;
|
|
102
|
+
contextChain?: FlowSchemaContextEdge[];
|
|
103
|
+
}): FlowSchemaPublicDocument;
|
|
104
|
+
getPublicModelDocumentRef(use: string, options?: {
|
|
105
|
+
detail?: FlowSchemaDetail;
|
|
106
|
+
contextChain?: FlowSchemaContextEdge[];
|
|
107
|
+
}): Readonly<FlowSchemaPublicDocument>;
|
|
108
|
+
private buildFullPublicModelDocument;
|
|
109
|
+
private buildCompactPublicModelDocument;
|
|
110
|
+
private getModelLocalDynamicHintsRef;
|
|
111
|
+
private buildModelLocalDynamicHints;
|
|
112
|
+
getModelSchemaHash(use: string, contextChain?: FlowSchemaContextEdge[]): string;
|
|
113
|
+
getCompactModelSchemaHash(use: string, contextChain?: FlowSchemaContextEdge[]): string;
|
|
114
|
+
private createSlotUseExpansionKey;
|
|
115
|
+
private getSlotUseExpansionUses;
|
|
116
|
+
resolveSlotAllowedUses(parentUse: string, slotKey: string, slot?: FlowSubModelSlotSchema): string[];
|
|
117
|
+
private buildModelDocument;
|
|
118
|
+
private buildBundleNode;
|
|
119
|
+
private buildBundleSubModelCatalog;
|
|
120
|
+
private createContextVisitKey;
|
|
121
|
+
private isContextCycle;
|
|
122
|
+
buildModelSnapshotSchema(use: string, contextChain?: FlowSchemaContextEdge[]): FlowJsonSchema;
|
|
123
|
+
buildCompactModelSnapshotSchema(use: string, contextChain?: FlowSchemaContextEdge[]): FlowJsonSchema;
|
|
124
|
+
private buildModelSnapshotSchemaRef;
|
|
125
|
+
private buildCompactModelSnapshotSchemaRef;
|
|
126
|
+
private buildCompactModelSnapshotSchemaInternal;
|
|
127
|
+
private buildModelSnapshotSchemaInternal;
|
|
128
|
+
private buildSnapshotSchemaFromResolved;
|
|
129
|
+
private buildSnapshotShellSchema;
|
|
130
|
+
private buildTruncatedSnapshotSchema;
|
|
131
|
+
buildStaticFlowRegistrySchema(use: string, contextChain?: FlowSchemaContextEdge[]): FlowJsonSchema;
|
|
132
|
+
buildStaticStepParamsSchema(use: string, contextChain?: FlowSchemaContextEdge[]): FlowJsonSchema;
|
|
133
|
+
buildSubModelsSchema(use: string, contextChain?: FlowSchemaContextEdge[]): FlowJsonSchema;
|
|
134
|
+
private buildCompactSubModelsSchemaFromSlots;
|
|
135
|
+
private buildSubModelsSchemaFromSlots;
|
|
136
|
+
private buildInferredFlowRegistrySchema;
|
|
137
|
+
private buildInferredStepParamsSchema;
|
|
138
|
+
buildFlowOnSchema(): FlowJsonSchema;
|
|
139
|
+
buildStepDefinitionSchema(step: StepDefinition): FlowJsonSchema;
|
|
140
|
+
resolveStepParamsSchema(step: StepDefinition, path: string): StepSchemaResolution;
|
|
141
|
+
private buildSlotTargetSchema;
|
|
142
|
+
private buildCompactSlotTargetSchema;
|
|
143
|
+
private buildCompactSlotCandidateSchema;
|
|
144
|
+
private buildCompactAnonymousSlotSnapshotSchema;
|
|
145
|
+
private buildAnonymousSlotSnapshotSchema;
|
|
146
|
+
private createAnonymousResolvedSchema;
|
|
147
|
+
private collectNestedDocumentHints;
|
|
148
|
+
private prefixNestedHint;
|
|
149
|
+
private collectContextPatches;
|
|
150
|
+
private collectModelDynamicHints;
|
|
151
|
+
private collectFlowSchemaDiagnostics;
|
|
152
|
+
private buildDocumentCoverage;
|
|
153
|
+
private inferSubModelSlotsFromModelClass;
|
|
154
|
+
}
|