Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created dedicated classes for Workflow,Node,Edge and Execution #41

Merged
merged 17 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
717 changes: 442 additions & 275 deletions dist/index.d.mts

Large diffs are not rendered by default.

717 changes: 442 additions & 275 deletions dist/index.d.ts

Large diffs are not rendered by default.

1,159 changes: 854 additions & 305 deletions dist/index.js

Large diffs are not rendered by default.

1,136 changes: 831 additions & 305 deletions dist/index.mjs

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"max-len": ["error", { code: 128 }],
},
},
];
2 changes: 1 addition & 1 deletion grpc_codegen/avs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ message Execution {
string error = 3;

TriggerMark trigger_mark = 4;
// final return data of the whole execution
// final return data of the whole execution of the task
string result = 5;

message Step {
Expand Down
3 changes: 1 addition & 2 deletions grpc_codegen/avs_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ export class RestAPINode extends jspb.Message {
export namespace RestAPINode {
export type AsObject = {
url: string,

headersMap: Array<[string, string]>,
body: string,
method: string,
Expand Down Expand Up @@ -933,7 +932,7 @@ export namespace Task {
memo: string,
completedAt: number,
maxExecution: number,
status: TaskStatus,
status: avs_pb.TaskStatus,
chrisli30 marked this conversation as resolved.
Show resolved Hide resolved
trigger?: TaskTrigger.AsObject,
nodesList: Array<TaskNode.AsObject>,
edgesList: Array<TaskEdge.AsObject>,
Expand Down
Loading
Loading