truflow 0.0.163 → 0.0.164

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,24 @@
1
+ export interface IField {
2
+ name: string;
3
+ type: string;
4
+ autoGenerate?: boolean;
5
+ generationPattern?: string;
6
+ required?: boolean;
7
+ }
8
+ export interface IInventoryType {
9
+ name: string;
10
+ fields: IField[];
11
+ }
12
+ export interface IInventoryEntry {
13
+ type: string;
14
+ fields: {
15
+ [key: string]: any;
16
+ };
17
+ createdAt?: Date;
18
+ }
19
+ export interface IGenerateFieldsOptions {
20
+ inventoryType: IInventoryEntry;
21
+ providedFields?: {
22
+ [key: string]: any;
23
+ };
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -27,3 +27,4 @@ export * from "./IMailCache";
27
27
  export * from "./API/Allmoxy";
28
28
  export * from "./IAllmoxy";
29
29
  export * from "./Classes/IRoute";
30
+ export * from "./IInventory";
package/dist/index.js CHANGED
@@ -43,3 +43,4 @@ __exportStar(require("./IMailCache"), exports);
43
43
  __exportStar(require("./API/Allmoxy"), exports);
44
44
  __exportStar(require("./IAllmoxy"), exports);
45
45
  __exportStar(require("./Classes/IRoute"), exports);
46
+ __exportStar(require("./IInventory"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truflow",
3
- "version": "0.0.163",
3
+ "version": "0.0.164",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -0,0 +1,23 @@
1
+ export interface IField {
2
+ name: string;
3
+ type: string;
4
+ autoGenerate?: boolean;
5
+ generationPattern?: string;
6
+ required?: boolean;
7
+ }
8
+
9
+ export interface IInventoryType {
10
+ name: string;
11
+ fields: IField[];
12
+ }
13
+
14
+ export interface IInventoryEntry {
15
+ type: string; // reference to InventoryType ID
16
+ fields: { [key: string]: any };
17
+ createdAt?: Date;
18
+ }
19
+
20
+ export interface IGenerateFieldsOptions {
21
+ inventoryType: IInventoryEntry;
22
+ providedFields?: { [key: string]: any };
23
+ }
package/src/index.ts CHANGED
@@ -27,3 +27,4 @@ export * from "./IMailCache";
27
27
  export * from "./API/Allmoxy";
28
28
  export * from "./IAllmoxy";
29
29
  export * from "./Classes/IRoute";
30
+ export * from "./IInventory";