@trigora/sdk 0.1.0

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.
@@ -0,0 +1,2 @@
1
+ import type { FlowDefinition } from '@trigora/contracts';
2
+ export declare function defineFlow<TPayload = unknown, TEnv extends Record<string, string> = Record<string, string>>(flow: FlowDefinition<TPayload, TEnv>): FlowDefinition<TPayload, TEnv>;
@@ -0,0 +1,2 @@
1
+ export { defineFlow } from './defineFlow';
2
+ export type { FlowContext, FlowDefinition, FlowEvent, FlowRunFn, Trigger, } from '@trigora/contracts';
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ // src/defineFlow.ts
2
+ function defineFlow(flow) {
3
+ return flow;
4
+ }
5
+ export {
6
+ defineFlow
7
+ };
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@trigora/sdk",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "dependencies": {
17
+ "@trigora/contracts": "0.1.0"
18
+ },
19
+ "devDependencies": {
20
+ "tsup": "^8.5.1"
21
+ },
22
+ "scripts": {
23
+ "build": "pnpm run build:js && pnpm run build:types",
24
+ "build:js": "tsup",
25
+ "build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly",
26
+ "lint": "eslint .",
27
+ "test": "vitest run",
28
+ "test:coverage": "vitest run --coverage",
29
+ "typecheck": "tsc --noEmit"
30
+ }
31
+ }