creo-flow-extensions-base 1.2.0-dev.2 → 1.2.0-dev.3

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.
@@ -1,17 +1,18 @@
1
1
  import { Field } from '../fields';
2
2
  import { FieldNameMap } from '../fields/interfaces';
3
3
  import { SafeAny } from '../common/interfaces';
4
+ import { IDefaultExecutionArgs } from './interfaces';
4
5
  export interface IMethodSchema<T extends readonly Field[], C extends readonly Field[] = [], S = SafeAny> {
5
6
  label: string;
6
7
  name: string;
7
8
  description: string;
8
9
  fields: T;
9
- execute: (args: FieldNameMap<T> & FieldNameMap<C>) => S;
10
+ execute: (args: FieldNameMap<T> & FieldNameMap<C> & IDefaultExecutionArgs) => S;
10
11
  }
11
12
  export declare function createMethodSchema<const T extends readonly Field[], const C extends readonly Field[] = [], S = SafeAny>(schema: {
12
13
  label: string;
13
14
  name: string;
14
15
  description: string;
15
16
  fields: T;
16
- execute: (args: FieldNameMap<T> & FieldNameMap<C>) => S;
17
+ execute: (args: FieldNameMap<T> & FieldNameMap<C> & IDefaultExecutionArgs) => S;
17
18
  }): IMethodSchema<T, C, S>;
@@ -0,0 +1,6 @@
1
+ export interface IDefaultExecutionArgs {
2
+ organizationId: string;
3
+ organizationUnitId: string;
4
+ flowId: string;
5
+ secrets: Record<string, string>;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "creo-flow-extensions-base",
3
- "version": "1.2.0-dev.2",
4
- "main": "index.js",
3
+ "version": "1.2.0-dev.3",
4
+ "main": "lib/index.js",
5
5
  "repository": "git@github.com:CloudDataHub/creo-flow-extension-base.git",
6
6
  "author": "Naum Zakletskyi",
7
7
  "license": "ISC",