@nocobase/flow-engine 2.1.0-alpha.12 → 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/lib/FlowDefinition.d.ts +0 -4
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -3
- package/lib/models/DisplayItemModel.d.ts +1 -1
- package/lib/models/EditableItemModel.d.ts +1 -1
- package/lib/models/FilterableItemModel.d.ts +1 -1
- package/lib/runjs-context/snippets/index.js +13 -2
- package/lib/{server.d.ts → runjs-context/snippets/scene/detail/set-field-style.snippet.d.ts} +3 -2
- package/lib/{server.js → runjs-context/snippets/scene/detail/set-field-style.snippet.js} +27 -9
- package/{src/server.ts → lib/runjs-context/snippets/scene/table/set-cell-style.snippet.d.ts} +3 -3
- package/lib/runjs-context/snippets/scene/table/set-cell-style.snippet.js +54 -0
- package/lib/types.d.ts +0 -221
- package/package.json +4 -4
- package/src/__tests__/runjsSnippets.test.ts +21 -0
- package/src/index.ts +0 -1
- package/src/models/DisplayItemModel.tsx +1 -1
- package/src/models/EditableItemModel.tsx +1 -1
- package/src/models/FilterableItemModel.tsx +1 -1
- package/src/runjs-context/snippets/index.ts +12 -1
- package/src/runjs-context/snippets/scene/detail/set-field-style.snippet.ts +30 -0
- package/src/runjs-context/snippets/scene/table/set-cell-style.snippet.ts +34 -0
- package/src/types.ts +0 -262
- package/lib/FlowSchemaRegistry.d.ts +0 -154
- package/lib/FlowSchemaRegistry.js +0 -1427
- package/lib/flow-schema-registry/fieldBinding.d.ts +0 -32
- package/lib/flow-schema-registry/fieldBinding.js +0 -165
- package/lib/flow-schema-registry/modelPatches.d.ts +0 -16
- package/lib/flow-schema-registry/modelPatches.js +0 -235
- package/lib/flow-schema-registry/schemaInference.d.ts +0 -17
- package/lib/flow-schema-registry/schemaInference.js +0 -207
- package/lib/flow-schema-registry/utils.d.ts +0 -25
- package/lib/flow-schema-registry/utils.js +0 -293
- package/server.d.ts +0 -1
- package/server.js +0 -1
- package/src/FlowSchemaRegistry.ts +0 -1799
- package/src/__tests__/FlowSchemaRegistry.test.ts +0 -1951
- package/src/flow-schema-registry/fieldBinding.ts +0 -171
- package/src/flow-schema-registry/modelPatches.ts +0 -260
- package/src/flow-schema-registry/schemaInference.ts +0 -210
- package/src/flow-schema-registry/utils.ts +0 -268
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
|
|
10
|
+
import type { SnippetModule } from '../../types';
|
|
11
|
+
const snippet: SnippetModule = {
|
|
12
|
+
contexts: ['*'],
|
|
13
|
+
scenes: ['tableFieldEvent'],
|
|
14
|
+
prefix: 'sn-table-cell-style',
|
|
15
|
+
label: 'Set table cell style',
|
|
16
|
+
description: 'Customize table field cell styles with onCell',
|
|
17
|
+
locales: {
|
|
18
|
+
'zh-CN': {
|
|
19
|
+
label: '表格字段样式设置',
|
|
20
|
+
description: '通过 onCell 自定义表格字段单元格样式',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
content: `
|
|
24
|
+
ctx.model.props.onCell = (record, rowIndex) => {
|
|
25
|
+
return {
|
|
26
|
+
style: {
|
|
27
|
+
fontWeight: 900,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
`,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default snippet;
|
package/src/types.ts
CHANGED
|
@@ -41,261 +41,6 @@ export type DeepPartial<T> = {
|
|
|
41
41
|
: T[P];
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
export type FlowJsonSchema = Record<string, any> & {
|
|
45
|
-
$schema?: string;
|
|
46
|
-
$id?: string;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export interface FlowDynamicHintMetadata {
|
|
50
|
-
slotRules?: {
|
|
51
|
-
slotKey?: string;
|
|
52
|
-
type?: 'object' | 'array';
|
|
53
|
-
allowedUses?: string[];
|
|
54
|
-
};
|
|
55
|
-
contextRequirements?: string[];
|
|
56
|
-
unresolvedReason?: string;
|
|
57
|
-
recommendedFallback?: any;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface FlowDynamicHint {
|
|
61
|
-
kind:
|
|
62
|
-
| 'dynamic-ui-schema'
|
|
63
|
-
| 'dynamic-children'
|
|
64
|
-
| 'custom-component'
|
|
65
|
-
| 'x-reactions'
|
|
66
|
-
| 'unresolved-action'
|
|
67
|
-
| 'manual-schema-required'
|
|
68
|
-
| 'unresolved-model';
|
|
69
|
-
path?: string;
|
|
70
|
-
message: string;
|
|
71
|
-
'x-flow'?: FlowDynamicHintMetadata;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface FlowSchemaCoverage {
|
|
75
|
-
status: 'auto' | 'manual' | 'mixed' | 'unresolved';
|
|
76
|
-
source: 'official' | 'plugin' | 'third-party';
|
|
77
|
-
strict?: boolean;
|
|
78
|
-
issues?: string[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export type FlowModelSchemaExposure = 'public' | 'internal';
|
|
82
|
-
|
|
83
|
-
export interface FlowSchemaPattern {
|
|
84
|
-
title: string;
|
|
85
|
-
description?: string;
|
|
86
|
-
snippet?: any;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface FlowSchemaDocument {
|
|
90
|
-
use: string;
|
|
91
|
-
title?: string;
|
|
92
|
-
jsonSchema: FlowJsonSchema;
|
|
93
|
-
coverage: FlowSchemaCoverage;
|
|
94
|
-
dynamicHints: FlowDynamicHint[];
|
|
95
|
-
examples: any[];
|
|
96
|
-
minimalExample?: any;
|
|
97
|
-
commonPatterns: FlowSchemaPattern[];
|
|
98
|
-
antiPatterns: FlowSchemaPattern[];
|
|
99
|
-
skeleton: any;
|
|
100
|
-
hash: string;
|
|
101
|
-
source: FlowSchemaCoverage['source'];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export type FlowSchemaDetail = 'compact' | 'full';
|
|
105
|
-
|
|
106
|
-
export interface FlowSchemaPublicDocument {
|
|
107
|
-
use: string;
|
|
108
|
-
title?: string;
|
|
109
|
-
jsonSchema: FlowJsonSchema;
|
|
110
|
-
dynamicHints: FlowDynamicHint[];
|
|
111
|
-
minimalExample?: any;
|
|
112
|
-
commonPatterns: FlowSchemaPattern[];
|
|
113
|
-
antiPatterns: FlowSchemaPattern[];
|
|
114
|
-
hash: string;
|
|
115
|
-
source: FlowSchemaCoverage['source'];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface FlowSchemaDocs {
|
|
119
|
-
description?: string;
|
|
120
|
-
examples?: any[];
|
|
121
|
-
minimalExample?: any;
|
|
122
|
-
commonPatterns?: FlowSchemaPattern[];
|
|
123
|
-
antiPatterns?: FlowSchemaPattern[];
|
|
124
|
-
dynamicHints?: FlowDynamicHint[];
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface FlowSchemaBundleSlotCatalog {
|
|
128
|
-
type: 'object' | 'array';
|
|
129
|
-
required?: boolean;
|
|
130
|
-
minItems?: number;
|
|
131
|
-
open?: boolean;
|
|
132
|
-
candidates: FlowSchemaBundleNode[];
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface FlowSchemaBundleNode {
|
|
136
|
-
use: string;
|
|
137
|
-
title?: string;
|
|
138
|
-
compatibility?: FlowFieldModelCompatibility;
|
|
139
|
-
subModelCatalog?: Record<string, FlowSchemaBundleSlotCatalog>;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export type FlowSchemaBundleItem = FlowSchemaBundleNode;
|
|
143
|
-
|
|
144
|
-
export interface FlowSchemaBundleDocument {
|
|
145
|
-
items: FlowSchemaBundleNode[];
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface FlowSchemaContextEdge {
|
|
149
|
-
parentUse: string;
|
|
150
|
-
slotKey: string;
|
|
151
|
-
childUse: string;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface FlowSubModelContextPathStep {
|
|
155
|
-
slotKey: string;
|
|
156
|
-
use?: string | string[];
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface FlowModelSchemaPatch {
|
|
160
|
-
stepParamsSchema?: FlowJsonSchema;
|
|
161
|
-
flowRegistrySchema?: FlowJsonSchema;
|
|
162
|
-
subModelSlots?: Record<string, FlowSubModelSlotSchema>;
|
|
163
|
-
flowRegistrySchemaPatch?: FlowJsonSchema;
|
|
164
|
-
docs?: FlowSchemaDocs;
|
|
165
|
-
examples?: any[];
|
|
166
|
-
skeleton?: any;
|
|
167
|
-
dynamicHints?: FlowDynamicHint[];
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface FlowDescendantSchemaPatch {
|
|
171
|
-
path: FlowSubModelContextPathStep[];
|
|
172
|
-
patch: FlowModelSchemaPatch;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export interface FlowSubModelSlotSchema {
|
|
176
|
-
type: 'object' | 'array';
|
|
177
|
-
use?: string;
|
|
178
|
-
uses?: string[];
|
|
179
|
-
required?: boolean;
|
|
180
|
-
minItems?: number;
|
|
181
|
-
dynamic?: boolean;
|
|
182
|
-
schema?: FlowJsonSchema;
|
|
183
|
-
fieldBindingContext?: string;
|
|
184
|
-
childSchemaPatch?: FlowModelSchemaPatch | Record<string, FlowModelSchemaPatch>;
|
|
185
|
-
descendantSchemaPatches?: FlowDescendantSchemaPatch[];
|
|
186
|
-
description?: string;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface FlowModelSchemaMeta {
|
|
190
|
-
stepParamsSchema?: FlowJsonSchema;
|
|
191
|
-
flowRegistrySchema?: FlowJsonSchema;
|
|
192
|
-
subModelSlots?: Record<string, FlowSubModelSlotSchema>;
|
|
193
|
-
flowRegistrySchemaPatch?: FlowJsonSchema;
|
|
194
|
-
docs?: FlowSchemaDocs;
|
|
195
|
-
examples?: any[];
|
|
196
|
-
skeleton?: any;
|
|
197
|
-
dynamicHints?: FlowDynamicHint[];
|
|
198
|
-
source?: FlowSchemaCoverage['source'];
|
|
199
|
-
strict?: boolean;
|
|
200
|
-
exposure?: FlowModelSchemaExposure;
|
|
201
|
-
abstract?: boolean;
|
|
202
|
-
allowDirectUse?: boolean;
|
|
203
|
-
suggestedUses?: string[];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface FlowActionSchemaContribution {
|
|
207
|
-
name: string;
|
|
208
|
-
title?: string;
|
|
209
|
-
paramsSchema?: FlowJsonSchema;
|
|
210
|
-
docs?: FlowSchemaDocs;
|
|
211
|
-
source?: FlowSchemaCoverage['source'];
|
|
212
|
-
strict?: boolean;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface FlowModelSchemaContribution {
|
|
216
|
-
use: string;
|
|
217
|
-
title?: string;
|
|
218
|
-
stepParamsSchema?: FlowJsonSchema;
|
|
219
|
-
flowRegistrySchema?: FlowJsonSchema;
|
|
220
|
-
subModelSlots?: Record<string, FlowSubModelSlotSchema>;
|
|
221
|
-
flowRegistrySchemaPatch?: FlowJsonSchema;
|
|
222
|
-
docs?: FlowSchemaDocs;
|
|
223
|
-
examples?: any[];
|
|
224
|
-
skeleton?: any;
|
|
225
|
-
dynamicHints?: FlowDynamicHint[];
|
|
226
|
-
source?: FlowSchemaCoverage['source'];
|
|
227
|
-
strict?: boolean;
|
|
228
|
-
exposure?: FlowModelSchemaExposure;
|
|
229
|
-
abstract?: boolean;
|
|
230
|
-
allowDirectUse?: boolean;
|
|
231
|
-
suggestedUses?: string[];
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
export interface FlowSchemaContributionDefaults {
|
|
235
|
-
source?: FlowSchemaCoverage['source'];
|
|
236
|
-
strict?: boolean;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export interface FlowSchemaSlotUseExpansion {
|
|
240
|
-
parentUse: string;
|
|
241
|
-
slotKey: string;
|
|
242
|
-
uses: string[];
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export interface FlowSchemaInventoryContribution {
|
|
246
|
-
publicTreeRoots?: string[];
|
|
247
|
-
slotUseExpansions?: FlowSchemaSlotUseExpansion[];
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export interface FlowFieldBindingConditions {
|
|
251
|
-
association?: boolean;
|
|
252
|
-
fieldTypes?: string[];
|
|
253
|
-
targetCollectionTemplateIn?: string[];
|
|
254
|
-
targetCollectionTemplateNotIn?: string[];
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export interface FlowFieldBindingContextContribution {
|
|
258
|
-
name: string;
|
|
259
|
-
inherits?: string[];
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export interface FlowFieldBindingContribution {
|
|
263
|
-
context: string;
|
|
264
|
-
use: string;
|
|
265
|
-
interfaces: string[];
|
|
266
|
-
isDefault?: boolean;
|
|
267
|
-
order?: number;
|
|
268
|
-
conditions?: FlowFieldBindingConditions;
|
|
269
|
-
defaultProps?: any;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export interface FlowFieldModelCompatibility {
|
|
273
|
-
context: string;
|
|
274
|
-
interfaces: string[];
|
|
275
|
-
isDefault?: boolean;
|
|
276
|
-
order?: number;
|
|
277
|
-
association?: boolean;
|
|
278
|
-
fieldTypes?: string[];
|
|
279
|
-
targetCollectionTemplateIn?: string[];
|
|
280
|
-
targetCollectionTemplateNotIn?: string[];
|
|
281
|
-
inheritParentFieldBinding?: boolean;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export interface FlowSchemaContribution {
|
|
285
|
-
models?: FlowModelSchemaContribution[] | Record<string, FlowModelSchemaContribution>;
|
|
286
|
-
actions?: FlowActionSchemaContribution[] | Record<string, FlowActionSchemaContribution>;
|
|
287
|
-
fieldBindingContexts?: FlowFieldBindingContextContribution[] | Record<string, FlowFieldBindingContextContribution>;
|
|
288
|
-
fieldBindings?:
|
|
289
|
-
| FlowFieldBindingContribution[]
|
|
290
|
-
| Record<string, FlowFieldBindingContribution | FlowFieldBindingContribution[]>;
|
|
291
|
-
inventory?: FlowSchemaInventoryContribution;
|
|
292
|
-
defaults?: FlowSchemaContributionDefaults;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export interface FlowSchemaContributionProvider {
|
|
296
|
-
getFlowSchemaContributions(): FlowSchemaContribution | undefined | Promise<FlowSchemaContribution | undefined>;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
44
|
/**
|
|
300
45
|
* Defines a flow with generic model type support.
|
|
301
46
|
*/
|
|
@@ -410,9 +155,6 @@ export interface ActionDefinition<TModel extends FlowModel = FlowModel, TCtx ext
|
|
|
410
155
|
title?: string;
|
|
411
156
|
handler: (ctx: TCtx, params: any) => Promise<any> | any;
|
|
412
157
|
uiSchema?: Record<string, ISchema> | ((ctx: TCtx) => Record<string, ISchema> | Promise<Record<string, ISchema>>);
|
|
413
|
-
paramsSchema?: FlowJsonSchema;
|
|
414
|
-
paramsSchemaPatch?: FlowJsonSchema;
|
|
415
|
-
schemaDocs?: FlowSchemaDocs;
|
|
416
158
|
defaultParams?: Record<string, any> | ((ctx: TCtx) => Record<string, any> | Promise<Record<string, any>>);
|
|
417
159
|
beforeParamsSave?: (ctx: FlowSettingsContext<TModel>, params: any, previousParams: any) => void | Promise<void>;
|
|
418
160
|
afterParamsSave?: (ctx: FlowSettingsContext<TModel>, params: any, previousParams: any) => void | Promise<void>;
|
|
@@ -559,9 +301,6 @@ export interface StepDefinition<TModel extends FlowModel = FlowModel>
|
|
|
559
301
|
// Step configuration
|
|
560
302
|
// `preset: true` 的 step params 需要在创建时填写,没有标记的可以创建模型后再填写。
|
|
561
303
|
preset?: boolean;
|
|
562
|
-
// JSON Schema object used to fully override the resolved step params schema for this step.
|
|
563
|
-
paramsSchemaOverride?: FlowJsonSchema;
|
|
564
|
-
schemaDocs?: FlowSchemaDocs;
|
|
565
304
|
uiMode?: StepUIMode | ((ctx: FlowRuntimeContext<TModel>) => StepUIMode | Promise<StepUIMode>);
|
|
566
305
|
}
|
|
567
306
|
|
|
@@ -834,7 +573,6 @@ export type FlowModelMeta =
|
|
|
834
573
|
*/
|
|
835
574
|
hide?: boolean | ((context: FlowModelContext) => boolean);
|
|
836
575
|
eventList?: { label: string; value: string }[]; // 支持的事件列表
|
|
837
|
-
schema?: FlowModelSchemaMeta;
|
|
838
576
|
};
|
|
839
577
|
|
|
840
578
|
/**
|
|
@@ -1,154 +0,0 @@
|
|
|
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
|
-
}
|