next-workflow-builder 0.4.0 → 0.4.2
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/README.md +1 -1
- package/dist/{chunk-DJ7ANVJ3.js → chunk-2IJUDWUK.js} +1 -1
- package/dist/{chunk-BNYDOC3I.js → chunk-BL6QJDNB.js} +1 -1
- package/dist/{chunk-P3DTV3QS.js → chunk-F6HAK4HT.js} +1 -1
- package/dist/{chunk-7MUXUHEL.js → chunk-KZNRU3LB.js} +1 -1
- package/dist/{chunk-3MSAF2TH.js → chunk-PGG52OSJ.js} +1 -1
- package/dist/{condition-JZJH7YSJ.js → condition-YFHUXD7D.js} +5 -5
- package/dist/{database-query-GRWP3S3M.js → database-query-Q2JDUQ3N.js} +3 -3
- package/dist/{http-request-2HVCXQHK.js → http-request-T2UP7JLH.js} +1 -1
- package/dist/{loop-YPEZHNH2.js → loop-EIU3JQIY.js} +1 -1
- package/dist/{merge-T3RP6SKV.js → merge-2GBB4W2S.js} +5 -5
- package/dist/next/index.d.ts +2 -0
- package/dist/next/index.js +6 -1
- package/dist/server/api/index.js +9 -9
- package/dist/server/index.js +5 -5
- package/dist/{switch-GNPFCPCA.js → switch-SG2SNUUJ.js} +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ var schema = {
|
|
|
162
162
|
apiKeys,
|
|
163
163
|
integrations
|
|
164
164
|
};
|
|
165
|
-
var connectionString = process.env.DATABASE_URL || "postgres://localhost:5432/workflow";
|
|
165
|
+
var connectionString = process.env.__NWB_DATABASE_URL || process.env.DATABASE_URL || "postgres://localhost:5432/workflow";
|
|
166
166
|
var migrationClient = postgres(connectionString, { max: 1 });
|
|
167
167
|
var globalForDb = globalThis;
|
|
168
168
|
var queryClient = globalForDb.queryClient ?? postgres(connectionString, { max: 10 });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-KZNRU3LB.js";
|
|
2
2
|
import "./chunk-TFNZVQEH.js";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-F6HAK4HT.js";
|
|
4
4
|
import "./chunk-5YYA34YV.js";
|
|
5
5
|
import "./chunk-OQHML4II.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-2IJUDWUK.js";
|
|
7
|
+
import "./chunk-BL6QJDNB.js";
|
|
8
8
|
import "./chunk-Z3BJJYHM.js";
|
|
9
9
|
import "./chunk-O3I2INCD.js";
|
|
10
10
|
import {
|
|
11
11
|
withStepLogging
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PGG52OSJ.js";
|
|
13
13
|
|
|
14
14
|
// src/plugins/condition/condition.ts
|
|
15
15
|
import "server-only";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchCredentials
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-2IJUDWUK.js";
|
|
4
|
+
import "./chunk-BL6QJDNB.js";
|
|
5
5
|
import "./chunk-Z3BJJYHM.js";
|
|
6
6
|
import {
|
|
7
7
|
withStepLogging
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PGG52OSJ.js";
|
|
9
9
|
|
|
10
10
|
// src/plugins/database-query/database-query.ts
|
|
11
11
|
import "server-only";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-KZNRU3LB.js";
|
|
2
2
|
import "./chunk-TFNZVQEH.js";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-F6HAK4HT.js";
|
|
4
4
|
import "./chunk-5YYA34YV.js";
|
|
5
5
|
import "./chunk-OQHML4II.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-2IJUDWUK.js";
|
|
7
|
+
import "./chunk-BL6QJDNB.js";
|
|
8
8
|
import "./chunk-Z3BJJYHM.js";
|
|
9
9
|
import "./chunk-O3I2INCD.js";
|
|
10
10
|
import {
|
|
11
11
|
withStepLogging
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PGG52OSJ.js";
|
|
13
13
|
|
|
14
14
|
// src/plugins/merge/merge.ts
|
|
15
15
|
import "server-only";
|
package/dist/next/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ declare const NextWorkflowBuilderConfigSchema: z.ZodObject<{
|
|
|
6
6
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
/** Set Better Auth options (must be JSON-serializable). */
|
|
8
8
|
authOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
/** Override the database connection URL. Defaults to process.env.DATABASE_URL. */
|
|
10
|
+
databaseUrl: z.ZodOptional<z.ZodString>;
|
|
9
11
|
}, z.core.$strict>;
|
|
10
12
|
|
|
11
13
|
/**
|
package/dist/next/index.js
CHANGED
|
@@ -14,7 +14,9 @@ var NextWorkflowBuilderConfigSchema = z.strictObject({
|
|
|
14
14
|
/** Enable debug logging. */
|
|
15
15
|
debug: z.boolean().optional(),
|
|
16
16
|
/** Set Better Auth options (must be JSON-serializable). */
|
|
17
|
-
authOptions: z.record(z.string(), z.unknown()).optional()
|
|
17
|
+
authOptions: z.record(z.string(), z.unknown()).optional(),
|
|
18
|
+
/** Override the database connection URL. Defaults to process.env.DATABASE_URL. */
|
|
19
|
+
databaseUrl: z.string().optional()
|
|
18
20
|
});
|
|
19
21
|
|
|
20
22
|
// src/next/index.ts
|
|
@@ -29,6 +31,9 @@ var nextWorkflowBuilder = (config = {}) => {
|
|
|
29
31
|
if (loaderOptions.authOptions) {
|
|
30
32
|
process.env.__NWB_AUTH_OPTIONS = JSON.stringify(loaderOptions.authOptions);
|
|
31
33
|
}
|
|
34
|
+
if (loaderOptions.databaseUrl) {
|
|
35
|
+
process.env.__NWB_DATABASE_URL = loaderOptions.databaseUrl;
|
|
36
|
+
}
|
|
32
37
|
discoverPlugins();
|
|
33
38
|
return function withNextWorkflowBuilder(nextConfig = {}) {
|
|
34
39
|
const consumerPluginsRelative = "./plugins/index.ts";
|
package/dist/server/api/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
auth,
|
|
17
17
|
getAuthConfig
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-F6HAK4HT.js";
|
|
19
19
|
import {
|
|
20
20
|
getErrorMessageAsync
|
|
21
21
|
} from "../../chunk-5YYA34YV.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
getIntegrations,
|
|
34
34
|
updateIntegration,
|
|
35
35
|
validateWorkflowIntegrations
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-BL6QJDNB.js";
|
|
37
37
|
import {
|
|
38
38
|
findActionById,
|
|
39
39
|
getAllEnvVars,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
workflowExecutionLogs,
|
|
51
51
|
workflowExecutions,
|
|
52
52
|
workflows
|
|
53
|
-
} from "../../chunk-
|
|
53
|
+
} from "../../chunk-PGG52OSJ.js";
|
|
54
54
|
|
|
55
55
|
// src/server/api/index.ts
|
|
56
56
|
import { NextResponse as NextResponse5 } from "next/server";
|
|
@@ -416,32 +416,32 @@ triggerStep.maxRetries = 0;
|
|
|
416
416
|
var SYSTEM_ACTIONS = {
|
|
417
417
|
"Database Query": {
|
|
418
418
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
419
|
-
importer: () => import("../../database-query-
|
|
419
|
+
importer: () => import("../../database-query-Q2JDUQ3N.js"),
|
|
420
420
|
stepFunction: "databaseQueryStep"
|
|
421
421
|
},
|
|
422
422
|
"HTTP Request": {
|
|
423
423
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
424
|
-
importer: () => import("../../http-request-
|
|
424
|
+
importer: () => import("../../http-request-T2UP7JLH.js"),
|
|
425
425
|
stepFunction: "httpRequestStep"
|
|
426
426
|
},
|
|
427
427
|
Condition: {
|
|
428
428
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
429
|
-
importer: () => import("../../condition-
|
|
429
|
+
importer: () => import("../../condition-YFHUXD7D.js"),
|
|
430
430
|
stepFunction: "conditionStep"
|
|
431
431
|
},
|
|
432
432
|
Loop: {
|
|
433
433
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
434
|
-
importer: () => import("../../loop-
|
|
434
|
+
importer: () => import("../../loop-EIU3JQIY.js"),
|
|
435
435
|
stepFunction: "loopStep"
|
|
436
436
|
},
|
|
437
437
|
Switch: {
|
|
438
438
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
439
|
-
importer: () => import("../../switch-
|
|
439
|
+
importer: () => import("../../switch-SG2SNUUJ.js"),
|
|
440
440
|
stepFunction: "switchStep"
|
|
441
441
|
},
|
|
442
442
|
Merge: {
|
|
443
443
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
444
|
-
importer: () => import("../../merge-
|
|
444
|
+
importer: () => import("../../merge-2GBB4W2S.js"),
|
|
445
445
|
stepFunction: "mergeStep"
|
|
446
446
|
}
|
|
447
447
|
};
|
package/dist/server/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateWorkflowMetadata
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KZNRU3LB.js";
|
|
4
4
|
import {
|
|
5
5
|
discoverPlugins
|
|
6
6
|
} from "../chunk-TFNZVQEH.js";
|
|
7
7
|
import {
|
|
8
8
|
auth
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-F6HAK4HT.js";
|
|
10
10
|
import {
|
|
11
11
|
getErrorMessageAsync
|
|
12
12
|
} from "../chunk-5YYA34YV.js";
|
|
13
13
|
import "../chunk-OQHML4II.js";
|
|
14
14
|
import {
|
|
15
15
|
fetchCredentials
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-2IJUDWUK.js";
|
|
17
17
|
import {
|
|
18
18
|
decrypt,
|
|
19
19
|
encrypt
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-BL6QJDNB.js";
|
|
21
21
|
import "../chunk-Z3BJJYHM.js";
|
|
22
22
|
import {
|
|
23
23
|
getErrorMessage
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
workflowExecutionLogs,
|
|
36
36
|
workflowExecutions,
|
|
37
37
|
workflowExecutionsRelations
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-PGG52OSJ.js";
|
|
39
39
|
export {
|
|
40
40
|
accounts,
|
|
41
41
|
apiKeys,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-KZNRU3LB.js";
|
|
2
2
|
import "./chunk-TFNZVQEH.js";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-F6HAK4HT.js";
|
|
4
4
|
import "./chunk-5YYA34YV.js";
|
|
5
5
|
import "./chunk-OQHML4II.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-2IJUDWUK.js";
|
|
7
|
+
import "./chunk-BL6QJDNB.js";
|
|
8
8
|
import "./chunk-Z3BJJYHM.js";
|
|
9
9
|
import "./chunk-O3I2INCD.js";
|
|
10
10
|
import {
|
|
11
11
|
withStepLogging
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PGG52OSJ.js";
|
|
13
13
|
|
|
14
14
|
// src/plugins/switch/switch.ts
|
|
15
15
|
import "server-only";
|