truflow 0.0.164 → 0.0.165

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.
@@ -16,9 +16,8 @@ export interface IInventoryEntry {
16
16
  };
17
17
  createdAt?: Date;
18
18
  }
19
- export interface IGenerateFieldsOptions {
20
- inventoryType: IInventoryEntry;
21
- providedFields?: {
22
- [key: string]: any;
23
- };
24
- }
19
+ export type IGenerateFields = (inventoryType: IInventoryEntry, providedFields?: {
20
+ [key: string]: any;
21
+ }) => Promise<{
22
+ [key: string]: any;
23
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truflow",
3
- "version": "0.0.164",
3
+ "version": "0.0.165",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
package/src/IInventory.ts CHANGED
@@ -12,12 +12,12 @@ export interface IInventoryType {
12
12
  }
13
13
 
14
14
  export interface IInventoryEntry {
15
- type: string; // reference to InventoryType ID
15
+ type: string;
16
16
  fields: { [key: string]: any };
17
17
  createdAt?: Date;
18
18
  }
19
19
 
20
- export interface IGenerateFieldsOptions {
21
- inventoryType: IInventoryEntry;
22
- providedFields?: { [key: string]: any };
23
- }
20
+ export type IGenerateFields = (
21
+ inventoryType: IInventoryEntry,
22
+ providedFields?: { [key: string]: any }
23
+ ) => Promise<{ [key: string]: any }>;