@nocobase/plugin-flow-engine 2.1.0-beta.35 → 2.1.0-beta.36
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 +9 -9
- package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
- package/dist/node_modules/acorn/LICENSE +21 -0
- package/dist/node_modules/acorn/bin/acorn +4 -0
- package/dist/node_modules/acorn/dist/acorn.d.mts +857 -0
- package/dist/node_modules/acorn/dist/acorn.d.ts +857 -0
- package/dist/node_modules/acorn/dist/acorn.js +1 -0
- package/dist/node_modules/acorn/dist/bin.js +90 -0
- package/dist/node_modules/acorn/package.json +1 -0
- package/dist/node_modules/acorn-jsx/LICENSE +19 -0
- package/dist/node_modules/acorn-jsx/index.d.ts +12 -0
- package/dist/node_modules/acorn-jsx/index.js +1 -0
- package/dist/node_modules/acorn-jsx/package.json +1 -0
- package/dist/node_modules/acorn-jsx/xhtml.js +255 -0
- package/dist/node_modules/acorn-walk/LICENSE +21 -0
- package/dist/node_modules/acorn-walk/dist/walk.d.mts +177 -0
- package/dist/node_modules/acorn-walk/dist/walk.d.ts +177 -0
- package/dist/node_modules/acorn-walk/dist/walk.js +1 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/bin/acorn +4 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.d.mts +866 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.d.ts +866 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.js +6174 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/bin.js +90 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/package.json +50 -0
- package/dist/node_modules/acorn-walk/package.json +1 -0
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/action-scope.d.ts +2 -0
- package/dist/server/flow-surfaces/action-scope.js +8 -0
- package/dist/server/flow-surfaces/authoring-validation.d.ts +3 -0
- package/dist/server/flow-surfaces/authoring-validation.js +317 -9
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +143 -3
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +1 -1
- package/dist/server/flow-surfaces/builder.js +54 -1
- package/dist/server/flow-surfaces/catalog.js +148 -2
- package/dist/server/flow-surfaces/chart-config.d.ts +58 -54
- package/dist/server/flow-surfaces/chart-config.js +18 -5
- package/dist/server/flow-surfaces/compose-compiler.d.ts +1 -1
- package/dist/server/flow-surfaces/compose-runtime.d.ts +1 -0
- package/dist/server/flow-surfaces/compose-runtime.js +24 -6
- package/dist/server/flow-surfaces/configure-options.js +40 -1
- package/dist/server/flow-surfaces/default-block-actions.js +11 -0
- package/dist/server/flow-surfaces/index.js +4 -2
- package/dist/server/flow-surfaces/node-use-sets.js +2 -0
- package/dist/server/flow-surfaces/runjs-authoring/index.d.ts +14 -2
- package/dist/server/flow-surfaces/runjs-authoring/index.js +4213 -242
- package/dist/server/flow-surfaces/runjs-authoring/nested-runjs-stop/index.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/nested-runjs-stop/index.js +40 -0
- package/dist/server/flow-surfaces/runjs-authoring/rules.js +6 -0
- package/dist/server/flow-surfaces/runjs-authoring/source-limit-stop/index.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/source-limit-stop/index.js +40 -0
- package/dist/server/flow-surfaces/runjs-authoring/syntax-stop/index.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/syntax-stop/index.js +40 -0
- package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
- package/dist/server/flow-surfaces/service-utils.d.ts +1 -1
- package/dist/server/flow-surfaces/service-utils.js +3 -0
- package/dist/server/flow-surfaces/service.d.ts +61 -3
- package/dist/server/flow-surfaces/service.js +1199 -101
- package/dist/server/flow-surfaces/support-matrix.d.ts +1 -1
- package/dist/server/flow-surfaces/support-matrix.js +13 -1
- package/dist/server/flow-surfaces/surface-context.js +4 -13
- package/dist/swagger/flow-surfaces.d.ts +147 -0
- package/dist/swagger/flow-surfaces.examples.d.ts +194 -1
- package/dist/swagger/flow-surfaces.examples.js +75 -3
- package/dist/swagger/flow-surfaces.js +180 -7
- package/dist/swagger/index.d.ts +147 -0
- package/package.json +5 -2
|
@@ -0,0 +1,10 @@
|
|
|
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 { RunJsAuthoringRuleDefinition } from '../types';
|
|
10
|
+
export declare const nestedRunjsStopRule: RunJsAuthoringRuleDefinition;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var nested_runjs_stop_exports = {};
|
|
28
|
+
__export(nested_runjs_stop_exports, {
|
|
29
|
+
nestedRunjsStopRule: () => nestedRunjsStopRule
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(nested_runjs_stop_exports);
|
|
32
|
+
const nestedRunjsStopRule = {
|
|
33
|
+
repairClass: "nested-runjs-stop",
|
|
34
|
+
defaultRuleId: "runjs-nested-runjs-forbidden",
|
|
35
|
+
suggestedAction: "Write the JavaScript directly in the current RunJS body instead of calling ctx.runjs(...)."
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
nestedRunjsStopRule
|
|
40
|
+
});
|
|
@@ -36,16 +36,22 @@ var import_blocked_global_stop = require("./blocked-global-stop");
|
|
|
36
36
|
var import_ctx_libs_member_mismatch_stop = require("./ctx-libs-member-mismatch-stop");
|
|
37
37
|
var import_ctx_root_mismatch_stop = require("./ctx-root-mismatch-stop");
|
|
38
38
|
var import_missing_top_level_return = require("./missing-top-level-return");
|
|
39
|
+
var import_nested_runjs_stop = require("./nested-runjs-stop");
|
|
39
40
|
var import_render_top_level_function_wrapper = require("./render-top-level-function-wrapper");
|
|
40
41
|
var import_render_unreachable_render_call = require("./render-unreachable-render-call");
|
|
41
42
|
var import_replace_innerhtml_with_render = require("./replace-innerhtml-with-render");
|
|
42
43
|
var import_react_runtime_contract_stop = require("./react-runtime-contract-stop");
|
|
43
44
|
var import_resource_runtime_contract_stop = require("./resource-runtime-contract-stop");
|
|
45
|
+
var import_source_limit_stop = require("./source-limit-stop");
|
|
44
46
|
var import_switch_to_resource_api = require("./switch-to-resource-api");
|
|
47
|
+
var import_syntax_stop = require("./syntax-stop");
|
|
45
48
|
var import_unknown_model_stop = require("./unknown-model-stop");
|
|
46
49
|
var import_unknown_surface_stop = require("./unknown-surface-stop");
|
|
47
50
|
var import_value_surface_forbids_render = require("./value-surface-forbids-render");
|
|
48
51
|
const RUNJS_AUTHORING_RULES = [
|
|
52
|
+
import_syntax_stop.syntaxStopRule,
|
|
53
|
+
import_nested_runjs_stop.nestedRunjsStopRule,
|
|
54
|
+
import_source_limit_stop.sourceLimitStopRule,
|
|
49
55
|
import_switch_to_resource_api.switchToResourceApiRule,
|
|
50
56
|
import_missing_top_level_return.missingTopLevelReturnRule,
|
|
51
57
|
import_value_surface_forbids_render.valueSurfaceForbidsRenderRule,
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { RunJsAuthoringRuleDefinition } from '../types';
|
|
10
|
+
export declare const sourceLimitStopRule: RunJsAuthoringRuleDefinition;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var source_limit_stop_exports = {};
|
|
28
|
+
__export(source_limit_stop_exports, {
|
|
29
|
+
sourceLimitStopRule: () => sourceLimitStopRule
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(source_limit_stop_exports);
|
|
32
|
+
const sourceLimitStopRule = {
|
|
33
|
+
repairClass: "source-limit-stop",
|
|
34
|
+
defaultRuleId: "runjs-source-too-large",
|
|
35
|
+
suggestedAction: "Reduce the authored JavaScript size or split the UI behavior into fewer, smaller RunJS sources."
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
sourceLimitStopRule
|
|
40
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { RunJsAuthoringRuleDefinition } from '../types';
|
|
10
|
+
export declare const syntaxStopRule: RunJsAuthoringRuleDefinition;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var syntax_stop_exports = {};
|
|
28
|
+
__export(syntax_stop_exports, {
|
|
29
|
+
syntaxStopRule: () => syntaxStopRule
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(syntax_stop_exports);
|
|
32
|
+
const syntaxStopRule = {
|
|
33
|
+
repairClass: "syntax-stop",
|
|
34
|
+
defaultRuleId: "runjs-syntax-invalid",
|
|
35
|
+
suggestedAction: "Fix the JavaScript syntax before retrying the FlowSurface write."
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
syntaxStopRule
|
|
40
|
+
});
|
|
@@ -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
|
-
export type RunJsAuthoringRepairClass = 'switch-to-resource-api' | 'missing-top-level-return' | 'value-surface-forbids-render' | 'unknown-surface-stop' | 'unknown-model-stop' | 'replace-innerhtml-with-render' | 'render-top-level-function-wrapper' | 'render-unreachable-render-call' | 'blocked-global-stop' | 'blocked-capability-reroute' | 'react-runtime-contract-stop' | 'resource-runtime-contract-stop' | 'ctx-libs-member-mismatch-stop' | 'ctx-root-mismatch-stop';
|
|
9
|
+
export type RunJsAuthoringRepairClass = 'syntax-stop' | 'nested-runjs-stop' | 'source-limit-stop' | 'switch-to-resource-api' | 'missing-top-level-return' | 'value-surface-forbids-render' | 'unknown-surface-stop' | 'unknown-model-stop' | 'replace-innerhtml-with-render' | 'render-top-level-function-wrapper' | 'render-unreachable-render-call' | 'blocked-global-stop' | 'blocked-capability-reroute' | 'react-runtime-contract-stop' | 'resource-runtime-contract-stop' | 'ctx-libs-member-mismatch-stop' | 'ctx-root-mismatch-stop';
|
|
10
10
|
export type RunJsAuthoringSurfaceStyle = 'render' | 'value' | 'action';
|
|
11
11
|
export interface RunJsAuthoringRuleDefinition {
|
|
12
12
|
repairClass: RunJsAuthoringRepairClass;
|
|
@@ -118,7 +118,7 @@ export declare function splitComposeFieldChanges(changes: Record<string, any>, w
|
|
|
118
118
|
wrapperChanges: _.Dictionary<any>;
|
|
119
119
|
fieldChanges: _.Dictionary<any>;
|
|
120
120
|
};
|
|
121
|
-
export declare function getCatalogRecordActionContainerUse(use?: string): "DetailsBlockModel" | "ListItemModel" | "GridCardItemModel" | "TableActionsColumnModel";
|
|
121
|
+
export declare function getCatalogRecordActionContainerUse(use?: string): "DetailsBlockModel" | "ListItemModel" | "GridCardItemModel" | "TableActionsColumnModel" | "CommentItemModel";
|
|
122
122
|
export declare function normalizeRowSpans(spans?: Array<number | undefined>): number[];
|
|
123
123
|
export declare function normalizePublicBlockHeightMode(input: any): string;
|
|
124
124
|
export declare function normalizeStoredChartCardHeightMode(input: any): string;
|
|
@@ -714,6 +714,9 @@ function getCatalogRecordActionContainerUse(use) {
|
|
|
714
714
|
case "GridCardBlockModel":
|
|
715
715
|
case "GridCardItemModel":
|
|
716
716
|
return "GridCardItemModel";
|
|
717
|
+
case "CommentsBlockModel":
|
|
718
|
+
case "CommentItemModel":
|
|
719
|
+
return "CommentItemModel";
|
|
717
720
|
default:
|
|
718
721
|
return null;
|
|
719
722
|
}
|
|
@@ -15,6 +15,7 @@ import type { FlowSurfaceActionLinkageRule, FlowSurfaceBlockLinkageRule, FlowSur
|
|
|
15
15
|
import type { FlowSurfaceTemplateListPopupActionContext, FlowSurfaceTemplateListValues, FlowSurfaceTemplateRow } from './template-service-utils';
|
|
16
16
|
import type { FlowSurfaceApplyValues, FlowSurfaceCatalogResponse, FlowSurfaceCatalogValues, FlowSurfaceComposeValues, FlowSurfaceConfigureValues, FlowSurfaceContextValues, FlowSurfaceDescribeValues, FlowSurfaceMutateValues } from './types';
|
|
17
17
|
type FlowSurfacePopupTemplateAliasSession = Map<string, string>;
|
|
18
|
+
type FlowSurfaceRequestRoles = readonly string[] | string;
|
|
18
19
|
type FlowSurfaceAddFieldResult = {
|
|
19
20
|
uid?: string;
|
|
20
21
|
parentUid?: string;
|
|
@@ -199,6 +200,7 @@ export declare class FlowSurfacesService {
|
|
|
199
200
|
private bindTransactionRollbackEmitter;
|
|
200
201
|
applyBlueprint(values: Record<string, any>, options?: {
|
|
201
202
|
transaction?: any;
|
|
203
|
+
currentRoles?: FlowSurfaceRequestRoles;
|
|
202
204
|
}): Promise<{
|
|
203
205
|
version: string;
|
|
204
206
|
mode: import("./blueprint").FlowSurfaceApplyBlueprintMode;
|
|
@@ -318,6 +320,7 @@ export declare class FlowSurfacesService {
|
|
|
318
320
|
private decorateTemplateReadbackTree;
|
|
319
321
|
compose(values: FlowSurfaceComposeValues, options?: {
|
|
320
322
|
transaction?: any;
|
|
323
|
+
currentRoles?: FlowSurfaceRequestRoles;
|
|
321
324
|
enabledPackages?: ReadonlySet<string>;
|
|
322
325
|
popupTemplateAliasSession?: FlowSurfacePopupTemplateAliasSession;
|
|
323
326
|
popupTemplateTreeCache?: FlowSurfacePopupTemplateTreeCache;
|
|
@@ -325,6 +328,7 @@ export declare class FlowSurfacesService {
|
|
|
325
328
|
}): Promise<import("./compose-runtime").FlowSurfaceComposeExecutionResult>;
|
|
326
329
|
configure(values: FlowSurfaceConfigureValues, options?: {
|
|
327
330
|
transaction?: any;
|
|
331
|
+
currentRoles?: FlowSurfaceRequestRoles;
|
|
328
332
|
popupTemplateTreeCache?: FlowSurfacePopupTemplateTreeCache;
|
|
329
333
|
skipConfigureGeneratedDefaultPopup?: boolean;
|
|
330
334
|
}): Promise<_.Dictionary<any> | {
|
|
@@ -443,6 +447,7 @@ export declare class FlowSurfacesService {
|
|
|
443
447
|
}): Promise<FlowSurfaceAddFieldResult>;
|
|
444
448
|
addAction(values: Record<string, any>, options?: {
|
|
445
449
|
transaction?: any;
|
|
450
|
+
currentRoles?: FlowSurfaceRequestRoles;
|
|
446
451
|
enabledPackages?: ReadonlySet<string>;
|
|
447
452
|
autoCompleteDefaultPopup?: boolean;
|
|
448
453
|
popupTemplateAliasSession?: FlowSurfacePopupTemplateAliasSession;
|
|
@@ -455,12 +460,13 @@ export declare class FlowSurfacesService {
|
|
|
455
460
|
}>;
|
|
456
461
|
addRecordAction(values: Record<string, any>, options?: {
|
|
457
462
|
transaction?: any;
|
|
463
|
+
currentRoles?: FlowSurfaceRequestRoles;
|
|
458
464
|
enabledPackages?: ReadonlySet<string>;
|
|
459
465
|
autoCompleteDefaultPopup?: boolean;
|
|
460
466
|
popupTemplateAliasSession?: FlowSurfacePopupTemplateAliasSession;
|
|
461
467
|
popupTemplateTreeCache?: FlowSurfacePopupTemplateTreeCache;
|
|
462
468
|
}): Promise<{
|
|
463
|
-
uid:
|
|
469
|
+
uid: any;
|
|
464
470
|
parentUid: any;
|
|
465
471
|
subKey: string;
|
|
466
472
|
scope: import("./types").FlowSurfaceActionScope;
|
|
@@ -475,12 +481,16 @@ export declare class FlowSurfacesService {
|
|
|
475
481
|
successCount: number;
|
|
476
482
|
errorCount: number;
|
|
477
483
|
}>;
|
|
478
|
-
addActions(values: Record<string, any
|
|
484
|
+
addActions(values: Record<string, any>, options?: {
|
|
485
|
+
currentRoles?: FlowSurfaceRequestRoles;
|
|
486
|
+
}): Promise<{
|
|
479
487
|
[x: string]: number | Record<string, any>[];
|
|
480
488
|
successCount: number;
|
|
481
489
|
errorCount: number;
|
|
482
490
|
}>;
|
|
483
|
-
addRecordActions(values: Record<string, any
|
|
491
|
+
addRecordActions(values: Record<string, any>, options?: {
|
|
492
|
+
currentRoles?: FlowSurfaceRequestRoles;
|
|
493
|
+
}): Promise<{
|
|
484
494
|
[x: string]: number | Record<string, any>[];
|
|
485
495
|
successCount: number;
|
|
486
496
|
errorCount: number;
|
|
@@ -605,6 +615,7 @@ export declare class FlowSurfacesService {
|
|
|
605
615
|
private ensureLocalFieldPopupSurface;
|
|
606
616
|
private applyInlineNodeSettings;
|
|
607
617
|
private resolveComposeBlockSettings;
|
|
618
|
+
private resolveComposeActionSettings;
|
|
608
619
|
private applyInlineFieldPopup;
|
|
609
620
|
private applyInlineFieldSettings;
|
|
610
621
|
private applyInlineStandaloneFieldSettings;
|
|
@@ -668,6 +679,7 @@ export declare class FlowSurfacesService {
|
|
|
668
679
|
private applyInlineActionPopup;
|
|
669
680
|
updateSettings(values: Record<string, any>, options?: {
|
|
670
681
|
transaction?: any;
|
|
682
|
+
currentRoles?: FlowSurfaceRequestRoles;
|
|
671
683
|
replaceChartCardSettings?: boolean;
|
|
672
684
|
replacePopupStepParamSubtrees?: boolean;
|
|
673
685
|
openViewActionName?: string;
|
|
@@ -675,6 +687,9 @@ export declare class FlowSurfacesService {
|
|
|
675
687
|
popupActionContext?: FlowSurfaceTemplateListPopupActionContext;
|
|
676
688
|
popupTemplateTreeCache?: FlowSurfacePopupTemplateTreeCache;
|
|
677
689
|
skipHiddenPopupHostEnsure?: boolean;
|
|
690
|
+
enabledPackages?: ReadonlySet<string>;
|
|
691
|
+
allowAIEmployeeInternalProps?: boolean;
|
|
692
|
+
replaceRecordHistorySettings?: boolean;
|
|
678
693
|
}): Promise<{
|
|
679
694
|
uid: any;
|
|
680
695
|
updated?: undefined;
|
|
@@ -683,8 +698,10 @@ export declare class FlowSurfacesService {
|
|
|
683
698
|
updated: string[];
|
|
684
699
|
}>;
|
|
685
700
|
private normalizeLegacyDataScopeFilterWrapperForUpdateSettings;
|
|
701
|
+
private assertRecordHistoryRecordIdWriteAllowed;
|
|
686
702
|
private syncCalendarPopupPropsForUpdateSettings;
|
|
687
703
|
private replaceExplicitPopupStepParamSubtreesForUpdateSettings;
|
|
704
|
+
private replaceRecordHistorySettingsForUpdateSettings;
|
|
688
705
|
private normalizePopupStepParamReplacementForUpdateSettings;
|
|
689
706
|
private stripPopupPropsFromPayload;
|
|
690
707
|
private syncDefaultSortingForUpdateSettings;
|
|
@@ -705,7 +722,11 @@ export declare class FlowSurfacesService {
|
|
|
705
722
|
private stripLegacyBlockHeaderChromeForUpdateSettings;
|
|
706
723
|
private normalizeOpenViewForUpdateSettings;
|
|
707
724
|
private syncChartConfigureForUpdateSettings;
|
|
725
|
+
private validateBuilderChartFieldsForUpdateSettings;
|
|
708
726
|
private validateChartConfigureForUpdateSettings;
|
|
727
|
+
private normalizeChartSelectionFieldPath;
|
|
728
|
+
private validateBuilderChartFieldsForRuntime;
|
|
729
|
+
private resolveBuilderChartAssociationSubfieldSuggestion;
|
|
709
730
|
private stripChartSqlForInspection;
|
|
710
731
|
private normalizeReadOnlyChartSql;
|
|
711
732
|
private buildChartSqlPreviewQuery;
|
|
@@ -805,6 +826,7 @@ export declare class FlowSurfacesService {
|
|
|
805
826
|
private normalizeEventFlowObject;
|
|
806
827
|
private persistEventFlowRegistry;
|
|
807
828
|
private buildEventFlowWriteResult;
|
|
829
|
+
private buildFlowRegistryRunJsAuthoringContext;
|
|
808
830
|
private assertFlowRegistryRunJsAuthoringPayload;
|
|
809
831
|
private buildEventFlowBindingMeta;
|
|
810
832
|
private buildEventFlowStepActionsMeta;
|
|
@@ -954,7 +976,21 @@ export declare class FlowSurfacesService {
|
|
|
954
976
|
private stripBasicSqlVisualWhenPreviewUnavailable;
|
|
955
977
|
private configureActionPanelBlock;
|
|
956
978
|
private configureMapBlock;
|
|
979
|
+
private normalizeBlockResourceForValidation;
|
|
980
|
+
private isCommentTemplateCollection;
|
|
981
|
+
private isCommentsAssociationField;
|
|
982
|
+
private getRecordHistoryDeclaredFilterTargetKey;
|
|
983
|
+
private collectionHasConcreteField;
|
|
984
|
+
private assertInitialBlockResourceCompatible;
|
|
985
|
+
private assertInitialBlockSettingsCompatible;
|
|
986
|
+
private assertCommentsBlockResourceCompatible;
|
|
987
|
+
private assertRecordHistoryBlockResourceCompatible;
|
|
988
|
+
private normalizeRecordHistoryBlockCreateState;
|
|
989
|
+
private normalizeConfigureCollectionBlockResource;
|
|
990
|
+
private assertCommentsSettingValues;
|
|
991
|
+
private assertRecordHistorySettingValues;
|
|
957
992
|
private configureCommentsBlock;
|
|
993
|
+
private configureRecordHistoryBlock;
|
|
958
994
|
private configureJSBlock;
|
|
959
995
|
private configureActionColumn;
|
|
960
996
|
private configureJSColumn;
|
|
@@ -965,6 +1001,28 @@ export declare class FlowSurfacesService {
|
|
|
965
1001
|
private normalizeFilterActionDefaultFilterValue;
|
|
966
1002
|
private normalizeActionAssignValues;
|
|
967
1003
|
private normalizeActionTriggerWorkflows;
|
|
1004
|
+
private isAIEmployeeActionUse;
|
|
1005
|
+
private hasAIEmployeePublicSettings;
|
|
1006
|
+
private assertOnlyAIEmployeePublicSettings;
|
|
1007
|
+
private assertOnlyAIEmployeeNestedPublicSettings;
|
|
1008
|
+
private assertNoAIEmployeeInternalPropSettings;
|
|
1009
|
+
private assertAIEmployeePluginEnabled;
|
|
1010
|
+
private readRecordPlainObject;
|
|
1011
|
+
private readRecordField;
|
|
1012
|
+
private normalizeFlowSurfaceRequestRoles;
|
|
1013
|
+
private assertRequestRolesCanUseAIEmployeeUsername;
|
|
1014
|
+
private assertVisibleAIEmployeeUsername;
|
|
1015
|
+
private normalizeAIEmployeeUsername;
|
|
1016
|
+
private assertAIEmployeeWorkContextType;
|
|
1017
|
+
private normalizeAIEmployeeWorkContext;
|
|
1018
|
+
private normalizeAIEmployeeTaskModel;
|
|
1019
|
+
private normalizeAIEmployeeSkillSettings;
|
|
1020
|
+
private normalizeAIEmployeeTaskMessage;
|
|
1021
|
+
private normalizeAIEmployeeTaskPatch;
|
|
1022
|
+
private normalizeAIEmployeeTasks;
|
|
1023
|
+
private normalizeAIEmployeeActionSettingsReferences;
|
|
1024
|
+
private normalizeAIEmployeeActionPublicSettings;
|
|
1025
|
+
private resolveAIEmployeeActionSelfUid;
|
|
968
1026
|
private configureActionNode;
|
|
969
1027
|
private normalizeActionPanelActionChanges;
|
|
970
1028
|
private buildFieldCatalog;
|