kcommons 5.27.13 → 5.27.15

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.
@@ -65,7 +65,11 @@ export declare enum IndentInclude {
65
65
  approval_chain = "approval_chain"
66
66
  }
67
67
  export declare enum INDENT_ITEM_INCLUDE {
68
- item = 0
68
+ company = "company",
69
+ item = "item",
70
+ parent_indent = "parent_indent",
71
+ mi_items = "mi_items",
72
+ pr_items = "pr_items"
69
73
  }
70
74
  export interface IIndentItem extends IDocItem {
71
75
  indent_id: string;
@@ -35,5 +35,9 @@ var IndentInclude;
35
35
  // Indent Items typings
36
36
  var INDENT_ITEM_INCLUDE;
37
37
  (function (INDENT_ITEM_INCLUDE) {
38
- INDENT_ITEM_INCLUDE[INDENT_ITEM_INCLUDE["item"] = 0] = "item";
38
+ INDENT_ITEM_INCLUDE["company"] = "company";
39
+ INDENT_ITEM_INCLUDE["item"] = "item";
40
+ INDENT_ITEM_INCLUDE["parent_indent"] = "parent_indent";
41
+ INDENT_ITEM_INCLUDE["mi_items"] = "mi_items";
42
+ INDENT_ITEM_INCLUDE["pr_items"] = "pr_items";
39
43
  })(INDENT_ITEM_INCLUDE || (exports.INDENT_ITEM_INCLUDE = INDENT_ITEM_INCLUDE = {}));
@@ -57,12 +57,11 @@ export declare enum MI_ITEM_INCLUDE {
57
57
  }
58
58
  export interface IMIItems extends IDocItem {
59
59
  mi_id: string;
60
- quantity: number;
61
60
  parent_indent_item_id: string | null;
62
61
  indent_item: INestedIndentItem | null;
63
62
  item: INestedItem | null;
64
63
  company: INestedCompany | null;
65
- aprent_mi: INestedMI | null;
64
+ parent_mi: INestedMI | null;
66
65
  }
67
- export interface INestedMIItem extends Omit<IMIItems, "indent_item" | "item"> {
66
+ export interface INestedMIItem extends Omit<IMIItems, "indent_item" | "item" | "company" | "parent_mi"> {
68
67
  }
@@ -7,6 +7,24 @@ import { INestedItem } from "./item.typings";
7
7
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
8
8
  import { INestedRFQItem } from "./rfq.typings";
9
9
  import { INestedUser } from "./user.typings";
10
+ export declare enum PR_STATUS {
11
+ DRAFT = "DRAFT",
12
+ PENDING_APPROVAL = "PENDING APPROVAL",
13
+ APPROVED = "APPROVED",
14
+ REJECTED = "REJECTED",
15
+ CLOSED = "CLOSED",
16
+ SENT_TO_PURCHASE = "SENT TO PURCHASE"
17
+ }
18
+ export declare enum PR_INCLUDE {
19
+ created_by_user = "created_by_user",
20
+ company = "company",
21
+ parent_indent = "parent_indent",
22
+ parent_department = "parent_department",
23
+ target_purchase_location = "target_purchase_location",
24
+ approval_chain = "approval_chain",
25
+ items = "items",
26
+ referenced_rfq_items = "referenced_rfq_items"
27
+ }
10
28
  export interface IPR {
11
29
  id: string;
12
30
  pr_no: string;
@@ -63,22 +81,3 @@ export declare const PR_PRIORITY_TYPES: {
63
81
  MEDIUM: string;
64
82
  HIGH: string;
65
83
  };
66
- export declare enum PR_STATUS {
67
- DRAFT = "DRAFT",
68
- PENDING_APPROVAL = "PENDING APPROVAL",
69
- APPROVED = "APPROVED",
70
- REJECTED = "REJECTED",
71
- CLOSED = "CLOSED",
72
- SENT_TO_PURCHASE = "SENT TO PURCHASE"
73
- }
74
- export declare enum PR_INCLUDE {
75
- created_by_user = "created_by_user",
76
- company = "company",
77
- parent_indent = "parent_indent",
78
- parent_department = "parent_department",
79
- target_purchase_location = "target_purchase_location",
80
- approval_chain = "approval_chain",
81
- items = "items",
82
- referenced_rfq_items = "referenced_rfq_items"
83
- }
84
- export declare const etc = "hello";
@@ -1,21 +1,6 @@
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 = 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 = {}));
13
- exports.PR_PRIORITY_TYPES = {
14
- LOW: "Low",
15
- MEDIUM: "Medium",
16
- HIGH: "High",
17
- };
18
- //
3
+ exports.PR_PRIORITY_TYPES = exports.PR_ITEM_INCLUDE = exports.PR_INCLUDE = exports.PR_STATUS = void 0;
19
4
  var PR_STATUS;
20
5
  (function (PR_STATUS) {
21
6
  PR_STATUS["DRAFT"] = "DRAFT";
@@ -36,4 +21,18 @@ var PR_INCLUDE;
36
21
  PR_INCLUDE["items"] = "items";
37
22
  PR_INCLUDE["referenced_rfq_items"] = "referenced_rfq_items";
38
23
  })(PR_INCLUDE || (exports.PR_INCLUDE = PR_INCLUDE = {}));
39
- exports.etc = "hello";
24
+ // PR Items
25
+ var PR_ITEM_INCLUDE;
26
+ (function (PR_ITEM_INCLUDE) {
27
+ PR_ITEM_INCLUDE["company"] = "company";
28
+ PR_ITEM_INCLUDE["parent_pr"] = "parent_pr";
29
+ PR_ITEM_INCLUDE["item"] = "item";
30
+ PR_ITEM_INCLUDE["indent_item"] = "indent_item";
31
+ PR_ITEM_INCLUDE["related_rfq_items"] = "related_rfq_items";
32
+ })(PR_ITEM_INCLUDE || (exports.PR_ITEM_INCLUDE = PR_ITEM_INCLUDE = {}));
33
+ exports.PR_PRIORITY_TYPES = {
34
+ LOW: "Low",
35
+ MEDIUM: "Medium",
36
+ HIGH: "High",
37
+ };
38
+ //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.27.13",
3
+ "version": "5.27.15",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",