@apostlejs/tools 0.0.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.
- package/LICENSE +21 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +12 -0
- package/package.json +58 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _apostlejs_flows from '@apostlejs/flows';
|
|
2
|
+
import { TypedFlowJson, NativeFlowJSON } from '@apostlejs/flows';
|
|
3
|
+
import * as ajv from 'ajv';
|
|
4
|
+
|
|
5
|
+
declare function deployFlows(oldFlows: TypedFlowJson[], newFlows: TypedFlowJson[]): Promise<_apostlejs_flows.NativeFlowJSON[]>;
|
|
6
|
+
|
|
7
|
+
declare const validateFlowJson: (nativeFlowJson: NativeFlowJSON) => Promise<{
|
|
8
|
+
valid: boolean;
|
|
9
|
+
errors: ajv.ErrorObject<string, Record<string, any>, unknown>[] | null | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
|
|
12
|
+
export { deployFlows, validateFlowJson };
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apostlejs/tools",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"version": "0.0.1",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"types": "./dist/index.d.cts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": "./dist/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"typesVersions": {
|
|
18
|
+
"*": {
|
|
19
|
+
".": [
|
|
20
|
+
"./dist/index.d.cts"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/node": "^22.9.1",
|
|
26
|
+
"terser": "^5.39.0",
|
|
27
|
+
"tsup": "8.4.0",
|
|
28
|
+
"tsx": "^4.19.3",
|
|
29
|
+
"typescript": "5.8.2",
|
|
30
|
+
"@apostlejs/config": "1.0.0"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"ajv": "8.17.1",
|
|
34
|
+
"ajv-formats": "3.0.1",
|
|
35
|
+
"@apostlejs/whatsapp": "0.0.10",
|
|
36
|
+
"@apostlejs/flows": "0.0.11"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"zod": "4.0.14"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"------------- toolchain -------------": "-------------",
|
|
43
|
+
"format": "biome format --write",
|
|
44
|
+
"lint": "biome lint --error-on-warnings",
|
|
45
|
+
"checktypes": "tsc --noEmit",
|
|
46
|
+
"------------- dev -------------": "-------------",
|
|
47
|
+
"dev": "pnpm tsup --env.mode dev",
|
|
48
|
+
"------------- build -------------": "-------------",
|
|
49
|
+
"build": "rm -rf dist && pnpm tsup --env.mode release",
|
|
50
|
+
"bundlesize": "pnpm build --metafile && npm pack --dry-run",
|
|
51
|
+
"bundlesize:dev": "pnpm tsup --metafile && npm pack --dry-run",
|
|
52
|
+
"------------- publishing -------------": "-------------",
|
|
53
|
+
"change": "changeset",
|
|
54
|
+
"bump": "pnpm changeset version",
|
|
55
|
+
"release": "pnpm checktypes && pnpm build && pnpm publish --no-git-checks",
|
|
56
|
+
"release:rc": "pnpm checktypes && pnpm build && pnpm version prerelease --preid=rc"
|
|
57
|
+
}
|
|
58
|
+
}
|