kcommons 5.9.5 → 5.9.7

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,4 +1,4 @@
1
- export declare enum MiInclude {
2
- items = "items",
3
- approval_chain = "approval_chain"
1
+ export declare enum MI_INCLUDE {
2
+ items = "items",
3
+ approval_chain = "approval_chain",
4
4
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MiInclude = void 0;
4
- var MiInclude;
5
- (function (MiInclude) {
6
- MiInclude["items"] = "items";
7
- MiInclude["approval_chain"] = "approval_chain";
8
- })(MiInclude = exports.MiInclude || (exports.MiInclude = {}));
3
+ exports.MI_INCLUDE = void 0;
4
+ var MI_INCLUDE;
5
+ (function (MI_INCLUDE) {
6
+ MI_INCLUDE["items"] = "items";
7
+ MI_INCLUDE["approval_chain"] = "approval_chain";
8
+ })((MI_INCLUDE = exports.MI_INCLUDE || (exports.MI_INCLUDE = {})));
@@ -1,5 +1,11 @@
1
1
  import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
+ import { INestedCompany } from "./company.typings";
3
+ import { INestedDepartment } from "./department.typings";
2
4
  import { IDocItem } from "./docItems.typings";
5
+ import { INestedMI } from "./mi.typings";
6
+ import { INestedPR } from "./pr.typings";
7
+ import { INestedStoreLocation } from "./storeLocation.typings";
8
+ import { INestedUser } from "./user.typings";
3
9
  export interface IIndent {
4
10
  id: string;
5
11
  company_id: string;
@@ -21,6 +27,12 @@ export interface IIndent {
21
27
  created_at: Date;
22
28
  updated_at: Date;
23
29
  items?: INestedIndentItem[] | null;
30
+ department?: INestedDepartment | null;
31
+ company?: INestedCompany | null;
32
+ created_by_user?: INestedUser | null;
33
+ target_store_location?: INestedStoreLocation | null;
34
+ corresponding_mis?: INestedMI[] | null;
35
+ prs?: INestedPR[] | null;
24
36
  approval_chain?: INestedApprovalChainEntry[] | null;
25
37
  }
26
38
  export interface INestedIndent extends Omit<IIndent, "department" | "company" | "budget_code" | "created_by_user" | "target_store_location" | "items" | "approval_chain" | "corresponding_mis" | "prs"> {
@@ -39,6 +51,12 @@ export declare const INDENT_PRIORITY_TYPES: {
39
51
  };
40
52
  export declare enum IndentInclude {
41
53
  items = "items",
54
+ department = "department",
55
+ company = "company",
56
+ created_by_user = "created_by_user",
57
+ target_store_location = "target_store_location",
58
+ corresponding_mis = "corresponding_mis",
59
+ prs = "prs",
42
60
  approval_chain = "approval_chain"
43
61
  }
44
62
  export interface IIndentItem extends IDocItem {
@@ -17,5 +17,11 @@ exports.INDENT_PRIORITY_TYPES = {
17
17
  var IndentInclude;
18
18
  (function (IndentInclude) {
19
19
  IndentInclude["items"] = "items";
20
+ IndentInclude["department"] = "department";
21
+ IndentInclude["company"] = "company";
22
+ IndentInclude["created_by_user"] = "created_by_user";
23
+ IndentInclude["target_store_location"] = "target_store_location";
24
+ IndentInclude["corresponding_mis"] = "corresponding_mis";
25
+ IndentInclude["prs"] = "prs";
20
26
  IndentInclude["approval_chain"] = "approval_chain";
21
27
  })(IndentInclude || (exports.IndentInclude = IndentInclude = {}));
@@ -37,9 +37,13 @@ export declare enum MI_STATUS {
37
37
  REJECTED = "REJECTED",
38
38
  CLOSED = "CLOSED"
39
39
  }
40
- export declare enum MiInclude {
41
- items = "items",
42
- approval_chain = "approval_chain"
40
+ export declare enum MI_INCLUDE {
41
+ company = "company",
42
+ parent_department = "parent_department",
43
+ created_by_user = "created_by_user",
44
+ parent_indent = "parent_indent",
45
+ approval_chain = "approval_chain",
46
+ items = "items"
43
47
  }
44
48
  export interface IMIItems extends IDocItem {
45
49
  mi_id: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MiInclude = exports.MI_STATUS = void 0;
3
+ exports.MI_INCLUDE = exports.MI_STATUS = void 0;
4
4
  var MI_STATUS;
5
5
  (function (MI_STATUS) {
6
6
  MI_STATUS["DRAFT"] = "DRAFT";
@@ -9,8 +9,12 @@ var MI_STATUS;
9
9
  MI_STATUS["REJECTED"] = "REJECTED";
10
10
  MI_STATUS["CLOSED"] = "CLOSED";
11
11
  })(MI_STATUS || (exports.MI_STATUS = MI_STATUS = {}));
12
- var MiInclude;
13
- (function (MiInclude) {
14
- MiInclude["items"] = "items";
15
- MiInclude["approval_chain"] = "approval_chain";
16
- })(MiInclude || (exports.MiInclude = MiInclude = {}));
12
+ var MI_INCLUDE;
13
+ (function (MI_INCLUDE) {
14
+ MI_INCLUDE["company"] = "company";
15
+ MI_INCLUDE["parent_department"] = "parent_department";
16
+ MI_INCLUDE["created_by_user"] = "created_by_user";
17
+ MI_INCLUDE["parent_indent"] = "parent_indent";
18
+ MI_INCLUDE["approval_chain"] = "approval_chain";
19
+ MI_INCLUDE["items"] = "items";
20
+ })(MI_INCLUDE || (exports.MI_INCLUDE = MI_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.9.5",
3
+ "version": "5.9.7",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",