kcommons 5.27.12 → 5.27.13

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.
@@ -2,8 +2,9 @@ import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
3
  import { INestedDepartment } from "./department.typings";
4
4
  import { IDocItem } from "./docItems.typings";
5
- import { INestedMI } from "./mi.typings";
6
- import { INestedPR } from "./pr.typings";
5
+ import { INestedItem } from "./item.typings";
6
+ import { INestedMI, INestedMIItem } from "./mi.typings";
7
+ import { INestedPR, INestedPrItem } from "./pr.typings";
7
8
  import { INestedStoreLocation } from "./storeLocation.typings";
8
9
  import { INestedUser } from "./user.typings";
9
10
  export interface IIndent {
@@ -63,10 +64,18 @@ export declare enum IndentInclude {
63
64
  prs = "prs",
64
65
  approval_chain = "approval_chain"
65
66
  }
67
+ export declare enum INDENT_ITEM_INCLUDE {
68
+ item = 0
69
+ }
66
70
  export interface IIndentItem extends IDocItem {
67
71
  indent_id: string;
68
72
  pending_quantity: number;
69
73
  processing_quantity: number;
74
+ company: INestedCompany | null;
75
+ item: INestedItem | null;
76
+ parent_indent: INestedIndent | null;
77
+ mi_items: INestedMIItem[] | null;
78
+ pr_items: INestedPrItem[] | null;
70
79
  }
71
- export interface INestedIndentItem extends Omit<IIndentItem, "company" | "item" | "parent_indent"> {
80
+ export interface INestedIndentItem extends Omit<IIndentItem, "company" | "item" | "parent_indent" | "mi_items" | "pr_items"> {
72
81
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IndentInclude = exports.INDENT_PRIORITY_TYPES = exports.IndentStatus = void 0;
3
+ exports.INDENT_ITEM_INCLUDE = exports.IndentInclude = exports.INDENT_PRIORITY_TYPES = exports.IndentStatus = void 0;
4
4
  var IndentStatus;
5
5
  (function (IndentStatus) {
6
6
  IndentStatus["DRAFT"] = "DRAFT";
@@ -32,3 +32,8 @@ var IndentInclude;
32
32
  IndentInclude["prs"] = "prs";
33
33
  IndentInclude["approval_chain"] = "approval_chain";
34
34
  })(IndentInclude || (exports.IndentInclude = IndentInclude = {}));
35
+ // Indent Items typings
36
+ var INDENT_ITEM_INCLUDE;
37
+ (function (INDENT_ITEM_INCLUDE) {
38
+ INDENT_ITEM_INCLUDE[INDENT_ITEM_INCLUDE["item"] = 0] = "item";
39
+ })(INDENT_ITEM_INCLUDE || (exports.INDENT_ITEM_INCLUDE = INDENT_ITEM_INCLUDE = {}));
@@ -2,7 +2,8 @@ import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
3
  import { INestedDepartment } from "./department.typings";
4
4
  import { IDocItem } from "./docItems.typings";
5
- import { INestedIndent } from "./indent.typings";
5
+ import { INestedIndent, INestedIndentItem } from "./indent.typings";
6
+ import { INestedItem } from "./item.typings";
6
7
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
7
8
  import { INestedRFQItem } from "./rfq.typings";
8
9
  import { INestedUser } from "./user.typings";
@@ -37,11 +38,23 @@ export interface IPR {
37
38
  }
38
39
  export interface INestedPR extends Omit<IPR, "created_by_user" | "company" | "parent_indent" | "parent_department" | "target_purchase_location" | "approval_chain" | "items" | "referenced_rfq_items"> {
39
40
  }
41
+ export declare enum PR_ITEM_INCLUDE {
42
+ company = "company",
43
+ parent_pr = "parent_pr",
44
+ item = "item",
45
+ indent_item = "indent_item",
46
+ related_rfq_items = "related_rfq_items"
47
+ }
40
48
  export interface IPRItems extends IDocItem {
41
49
  pr_id: string;
42
50
  pr_no: string;
43
- quantity: number;
44
51
  pending_quantity: number;
52
+ processing_quantity: number;
53
+ company: INestedCompany | null;
54
+ parent_pr: INestedPrItem | null;
55
+ item: INestedItem | null;
56
+ indent_item: INestedIndentItem | null;
57
+ related_rfq_items: INestedRFQItem[] | null;
45
58
  }
46
59
  export interface INestedPrItem extends Omit<IPRItems, "company" | "parent_pr" | "related_rfq_items" | "item"> {
47
60
  }
@@ -1,6 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.etc = exports.PR_INCLUDE = exports.PR_STATUS = exports.PR_PRIORITY_TYPES = void 0;
3
+ exports.etc = exports.PR_INCLUDE = exports.PR_STATUS = exports.PR_PRIORITY_TYPES = exports.PR_ITEM_INCLUDE = void 0;
4
+ // PR Items
5
+ var PR_ITEM_INCLUDE;
6
+ (function (PR_ITEM_INCLUDE) {
7
+ PR_ITEM_INCLUDE["company"] = "company";
8
+ PR_ITEM_INCLUDE["parent_pr"] = "parent_pr";
9
+ PR_ITEM_INCLUDE["item"] = "item";
10
+ PR_ITEM_INCLUDE["indent_item"] = "indent_item";
11
+ PR_ITEM_INCLUDE["related_rfq_items"] = "related_rfq_items";
12
+ })(PR_ITEM_INCLUDE || (exports.PR_ITEM_INCLUDE = PR_ITEM_INCLUDE = {}));
4
13
  exports.PR_PRIORITY_TYPES = {
5
14
  LOW: "Low",
6
15
  MEDIUM: "Medium",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.27.12",
3
+ "version": "5.27.13",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",