@t4h.framework/dev 0.13.1 → 0.13.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @t4h.framework/dev
2
2
 
3
+ ## 0.13.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#135](https://github.com/tech4humans-brasil/framework/pull/135) [`c238dbe`](https://github.com/tech4humans-brasil/framework/commit/c238dbea4199169c935c714442d9e316abd74e20) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Fix start workflow activity
8
+
9
+ - Updated dependencies [[`c238dbe`](https://github.com/tech4humans-brasil/framework/commit/c238dbea4199169c935c714442d9e316abd74e20)]:
10
+ - @t4h.framework/core@0.9.1
11
+
3
12
  ## 0.13.1
4
13
 
5
14
  ### Patch Changes
@@ -3,6 +3,6 @@ import { RuntimeContextService } from '../../services/RuntimeContext.service.js'
3
3
  export declare class DevWorkflowClaim extends WorkflowClaim {
4
4
  private readonly context;
5
5
  constructor(context: RuntimeContextService);
6
- start<TWorkflow extends Workflow<any, any>>(workflow: TWorkflow, inputOrParallel?: WorkflowInput<TWorkflow> | boolean, _parallel?: boolean): Serializable;
6
+ start<TWorkflow extends Workflow<any, any>>(workflow: TWorkflow | string, input?: WorkflowInput<TWorkflow>): Serializable;
7
7
  startMany<TWorkflow extends Workflow<any, any>>(workflow: TWorkflow | string, inputs: WorkflowInput<TWorkflow>[] | Binary[]): Promise<WorkflowBatchRef>;
8
8
  }
@@ -17,13 +17,10 @@ let DevWorkflowClaim = class DevWorkflowClaim extends WorkflowClaim {
17
17
  super();
18
18
  this.context = context;
19
19
  }
20
- start(workflow, inputOrParallel,
21
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
22
- _parallel) {
23
- const workflowId = workflow.id;
20
+ start(workflow, input) {
21
+ const workflowId = typeof workflow === 'string' ? workflow : workflow.id;
24
22
  if (!workflowId)
25
23
  throw new TypeError('Could not start workflow without an id');
26
- const input = (workflow.schema !== null ? inputOrParallel : undefined);
27
24
  const parentContext = this.context.getContext();
28
25
  const workflowRun = container.resolve(WorkflowRunFacade);
29
26
  const run = workflowRun.create(workflowId, input, {
@@ -1 +1 @@
1
- {"version":3,"file":"DevWorkflowClaim.js","sourceRoot":"","sources":["../../../src/models/claims/DevWorkflowClaim.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,gBAAgB,EAChB,aAAa,GAKd,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAA;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AAGxE,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,aAAa;IAG9B;IAFnB,YAEmB,OAA8B;QAE/C,KAAK,EAAE,CAAA;QAFU,YAAO,GAAP,OAAO,CAAuB;IAGjD,CAAC;IAEM,KAAK,CACV,QAAmB,EACnB,eAAoD;IACpD,6DAA6D;IAC7D,SAAmB;QAEnB,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAA;QAE9B,IAAI,CAAC,UAAU;YACb,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAA;QAE/D,MAAM,KAAK,GAAG,CACZ,QAAQ,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAC3B,CAAA;QAE7B,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAA;QAE/C,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;QAExD,MAAM,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE;YAChD,mBAAmB,EAAE,aAAa,EAAE,KAAK;YACzC,2BAA2B,EAAE,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CAAC,UAAU,EAAE,CAAA;QAE/C,IAAI,CAAC,aAAa,EAAE,UAAU;YAC5B,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAA;QAE3E,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;QAExD,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAA;QAE/B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE;YACnC,WAAW,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE;gBACpC,mBAAmB,EAAE,aAAa,CAAC,KAAK;gBACxC,2BAA2B,EAAE,aAAa,CAAC,UAAU;gBACrD,UAAU;gBACV,SAAS;aACV,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,OAAO,IAAI,gBAAgB,CAAC,aAAa,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;IAClE,CAAC;CACF,CAAA;AA1DY,gBAAgB;IAD5B,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAA;GAF3B,gBAAgB,CA0D5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t4h.framework/dev",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Dev server for the T4H Framework",
5
5
  "homepage": "https://github.com/tech4humans-brasil/framework/tree/main/packages/dev",
6
6
  "bugs": "https://github.com/tech4humans-brasil/framework/issues",
@@ -44,8 +44,8 @@
44
44
  "dependencies": {
45
45
  "@t4h.framework/cache": "^0.5.0",
46
46
  "@t4h.framework/fs": "^0.7.0",
47
- "@t4h.framework/http": "^0.4.0",
48
- "@t4h.framework/orm": "^0.6.0",
47
+ "@t4h.framework/http": "^0.4.2",
48
+ "@t4h.framework/orm": "^0.6.1",
49
49
  "@t4h.framework/runtime-claims": "^0.1.0",
50
50
  "@t4h.framework/sftp": "^0.6.0",
51
51
  "@t4h.framework/smtp": "^0.5.0",
@@ -58,7 +58,7 @@
58
58
  "undici": "^7.22.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@t4h.framework/core": "^0.9.0",
61
+ "@t4h.framework/core": "^0.9.1",
62
62
  "@types/json-schema": "^7.0.15",
63
63
  "@types/mime-types": "^3",
64
64
  "@types/node": "^25.3.5",
@@ -68,7 +68,7 @@
68
68
  "vitest": "^4.0.18"
69
69
  },
70
70
  "peerDependencies": {
71
- "@t4h.framework/core": "^0.9.0"
71
+ "@t4h.framework/core": "^0.9.1"
72
72
  },
73
73
  "packageManager": "yarn@4.12.0",
74
74
  "engines": {