@nocobase/plugin-workflow 0.14.0-alpha.7 → 0.15.0-alpha.1

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.
Files changed (50) hide show
  1. package/dist/client/AddButton.d.ts +2 -1
  2. package/dist/client/Branch.d.ts +4 -2
  3. package/dist/client/WorkflowProvider.d.ts +1 -0
  4. package/dist/client/constant.d.ts +2 -0
  5. package/dist/client/constants.d.ts +2 -0
  6. package/dist/client/hooks/useGetAriaLabelOfAddButton.d.ts +6 -0
  7. package/dist/client/index.d.ts +8 -2
  8. package/dist/client/index.js +138 -120
  9. package/dist/client/nodes/aggregate.d.ts +3 -3
  10. package/dist/client/nodes/calculation.d.ts +21 -7
  11. package/dist/client/nodes/create.d.ts +3 -2
  12. package/dist/client/nodes/index.d.ts +2 -2
  13. package/dist/client/nodes/loop.d.ts +4 -5
  14. package/dist/client/nodes/manual/SchemaConfig.d.ts +1 -1
  15. package/dist/client/nodes/manual/index.d.ts +3 -3
  16. package/dist/client/nodes/query.d.ts +5 -5
  17. package/dist/client/nodes/request.d.ts +15 -10
  18. package/dist/client/nodes/sql.d.ts +11 -2
  19. package/dist/client/schemas/collection.d.ts +1 -1
  20. package/dist/client/triggers/collection.d.ts +1 -0
  21. package/dist/client/triggers/form.d.ts +2 -0
  22. package/dist/client/triggers/index.d.ts +4 -0
  23. package/dist/client/variable.d.ts +20 -3
  24. package/dist/externalVersion.js +9 -10
  25. package/dist/locale/zh-CN.d.ts +5 -3
  26. package/dist/locale/zh-CN.js +5 -3
  27. package/dist/node_modules/cron-parser/package.json +1 -1
  28. package/dist/node_modules/lru-cache/package.json +1 -1
  29. package/dist/server/Plugin.js +4 -1
  30. package/dist/server/Processor.d.ts +4 -4
  31. package/dist/server/Processor.js +9 -6
  32. package/dist/server/actions/workflows.d.ts +1 -0
  33. package/dist/server/actions/workflows.js +13 -52
  34. package/dist/server/collections/flow_nodes.js +4 -0
  35. package/dist/server/constants.d.ts +2 -0
  36. package/dist/server/constants.js +4 -2
  37. package/dist/server/index.d.ts +1 -0
  38. package/dist/server/index.js +2 -0
  39. package/dist/server/instructions/index.d.ts +3 -1
  40. package/dist/server/migrations/20230221162902-jsonb-to-json.js +0 -16
  41. package/dist/server/migrations/20230809113132-workflow-options.js +5 -2
  42. package/dist/server/migrations/20231024172342-add-node-key.d.ts +4 -0
  43. package/dist/server/migrations/20231024172342-add-node-key.js +80 -0
  44. package/dist/server/triggers/form.d.ts +3 -3
  45. package/dist/server/triggers/form.js +15 -11
  46. package/dist/server/triggers/index.d.ts +2 -0
  47. package/dist/server/triggers/index.js +1 -1
  48. package/dist/server/triggers/schedule.js +2 -2
  49. package/dist/server/utils.js +5 -4
  50. package/package.json +2 -3
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface AddButtonProps {
3
3
  upstream: any;
4
4
  branchIndex?: number | null;
5
+ [key: string]: any;
5
6
  }
6
- export declare function AddButton({ upstream, branchIndex }: AddButtonProps): React.JSX.Element;
7
+ export declare function AddButton(props: AddButtonProps): React.JSX.Element;
7
8
  export {};
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
- export declare function Branch({ from, entry, branchIndex, controller, }: {
2
+ export declare function Branch({ from, entry, branchIndex, controller, className, end, }: {
3
3
  from?: any;
4
4
  entry?: any;
5
5
  branchIndex?: number | null;
6
- controller?: any;
6
+ controller?: React.ReactNode;
7
+ className?: string;
8
+ end?: boolean;
7
9
  }): React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const WorkflowContext: React.Context<{}>;
3
3
  export declare function useWorkflowContext(): {};
4
+ export declare function WorkflowPane(): React.JSX.Element;
4
5
  export declare const WorkflowProvider: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const getWorkflowDetailPath: (id: string | number) => string;
2
+ export declare const getWorkflowExecutionsPath: (id: string | number) => string;
@@ -8,6 +8,7 @@ export declare const EXECUTION_STATUS: {
8
8
  ABORTED: number;
9
9
  CANCELED: number;
10
10
  REJECTED: number;
11
+ RETRY_NEEDED: number;
11
12
  };
12
13
  export declare const ExecutionStatusOptions: {
13
14
  value: any;
@@ -25,6 +26,7 @@ export declare const JOB_STATUS: {
25
26
  ABORTED: number;
26
27
  CANCELED: number;
27
28
  REJECTED: number;
29
+ RETRY_NEEDED: number;
28
30
  };
29
31
  export declare const JobStatusOptions: {
30
32
  value: number;
@@ -0,0 +1,6 @@
1
+ export declare const useGetAriaLabelOfAddButton: (data: {
2
+ type: string;
3
+ title: string;
4
+ }, branchIndex?: number) => {
5
+ getAriaLabel: (postfix?: string) => string;
6
+ };
@@ -1,10 +1,16 @@
1
+ export * from './constants';
1
2
  export * from './Branch';
2
3
  export * from './FlowContext';
3
4
  export * from './nodes';
4
- export { triggers, getTriggersOptions } from './triggers';
5
- export { useWorkflowVariableOptions } from './variable';
5
+ export { triggers, useTrigger, getTriggersOptions } from './triggers';
6
+ export * from './variable';
7
+ export { default as useStyles } from './style';
6
8
  import { Plugin } from '@nocobase/client';
9
+ import { getTriggersOptions } from './triggers';
7
10
  export declare class WorkflowPlugin extends Plugin {
11
+ triggers: any;
12
+ getTriggersOptions: typeof getTriggersOptions;
13
+ instructions: any;
8
14
  load(): Promise<void>;
9
15
  addScopes(): void;
10
16
  addComponents(): void;