kcommons 5.16.0 → 5.16.2

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,7 +1,7 @@
1
1
  import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
2
  import { INestedApprovalConfig } from "./approvalConfig.typings";
3
3
  import { INestedBOM, INestedBOMItem } from "./bom.typings";
4
- import { INestedComparative } from "./comparative.typings";
4
+ import { INestedComparative, INestedComparativeItem } from "./comparative.typings";
5
5
  import { INestedDepartment, INestedSubdepartment } from "./department.typings";
6
6
  import { INestedGRN, INestedGRNItem } from "./grn.typings";
7
7
  import { INestedIndent, INestedIndentItem } from "./indent.typings";
@@ -55,7 +55,8 @@ export declare enum COMPANY_INCLUDE {
55
55
  company_mrns_items = "company_mrns_items",
56
56
  company_boms = "company_boms",
57
57
  company_bom_items = "company_bom_items",
58
- company_comparatives = "company_comparatives"
58
+ company_comparatives = "company_comparatives",
59
+ company_comparative_items = "company_comparative_items"
59
60
  }
60
61
  export interface ICompany extends IAddress {
61
62
  id: string;
@@ -111,6 +112,7 @@ export interface ICompany extends IAddress {
111
112
  company_boms?: INestedBOM[] | null;
112
113
  company_bom_items: INestedBOMItem[] | null;
113
114
  company_comparatives: INestedComparative[] | null;
115
+ company_comparative_items: INestedComparativeItem[] | null;
114
116
  }
115
- export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives"> {
117
+ export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items"> {
116
118
  }
@@ -35,4 +35,5 @@ var COMPANY_INCLUDE;
35
35
  COMPANY_INCLUDE["company_boms"] = "company_boms";
36
36
  COMPANY_INCLUDE["company_bom_items"] = "company_bom_items";
37
37
  COMPANY_INCLUDE["company_comparatives"] = "company_comparatives";
38
+ COMPANY_INCLUDE["company_comparative_items"] = "company_comparative_items";
38
39
  })(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
@@ -1,5 +1,6 @@
1
1
  import { INestedCompany } from "./company.typings";
2
2
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
3
+ import { INestedItem } from "./item.typings";
3
4
  import { INestedPo } from "./po.typings";
4
5
  import { INestedQuote } from "./quote.typings";
5
6
  import { INestedRFQ } from "./rfq.typings";
@@ -45,3 +46,29 @@ export interface IComparativeFilters {
45
46
  company_id?: string;
46
47
  include?: COMPARATIVE_INCLUDE[];
47
48
  }
49
+ export declare enum COMPARATIVE_ITEM_INCLUDE {
50
+ company = "company",
51
+ comparative = "comparative",
52
+ item = "item"
53
+ }
54
+ export interface IComparativeItem {
55
+ id: string;
56
+ item_id: string;
57
+ comparative_id: string;
58
+ company_id: string;
59
+ item_name: string;
60
+ code_sku: string;
61
+ uom: string;
62
+ quantity: number;
63
+ pending_qnty: number;
64
+ processing_qnty: number;
65
+ is_deleted: boolean;
66
+ deleted_at: string | null;
67
+ created_at: string;
68
+ updated_at: string;
69
+ company: INestedCompany | null;
70
+ comparative: INestedComparative | null;
71
+ item: INestedItem | null;
72
+ }
73
+ export interface INestedComparativeItem extends Omit<IComparativeItem, "company" | "comparative" | "item"> {
74
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COMPARATIVE_INCLUDE = exports.COMPARATIVE_STATUS = void 0;
3
+ exports.COMPARATIVE_ITEM_INCLUDE = exports.COMPARATIVE_INCLUDE = exports.COMPARATIVE_STATUS = void 0;
4
4
  var COMPARATIVE_STATUS;
5
5
  (function (COMPARATIVE_STATUS) {
6
6
  COMPARATIVE_STATUS["DRAFT"] = "DRAFT";
@@ -20,3 +20,10 @@ var COMPARATIVE_INCLUDE;
20
20
  COMPARATIVE_INCLUDE["child_pos"] = "child_pos";
21
21
  COMPARATIVE_INCLUDE["approval_chain"] = "approval_chain";
22
22
  })(COMPARATIVE_INCLUDE || (exports.COMPARATIVE_INCLUDE = COMPARATIVE_INCLUDE = {}));
23
+ // Comparative Items
24
+ var COMPARATIVE_ITEM_INCLUDE;
25
+ (function (COMPARATIVE_ITEM_INCLUDE) {
26
+ COMPARATIVE_ITEM_INCLUDE["company"] = "company";
27
+ COMPARATIVE_ITEM_INCLUDE["comparative"] = "comparative";
28
+ COMPARATIVE_ITEM_INCLUDE["item"] = "item";
29
+ })(COMPARATIVE_ITEM_INCLUDE || (exports.COMPARATIVE_ITEM_INCLUDE = COMPARATIVE_ITEM_INCLUDE = {}));
@@ -1,5 +1,6 @@
1
1
  import { INestedBOMItem } from "./bom.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedComparativeItem } from "./comparative.typings";
3
4
  import { INestedGRNItem } from "./grn.typings";
4
5
  import { INestedIndentItem } from "./indent.typings";
5
6
  import { INestedItemCategory } from "./itemCategory.typings";
@@ -49,8 +50,9 @@ export interface IItem {
49
50
  used_in_grn_items?: INestedGRNItem[] | null;
50
51
  used_in_mrn_items?: INestedMRNItem[] | null;
51
52
  used_in_bom_items?: INestedBOMItem[] | null;
53
+ used_in_comparative_items?: INestedComparativeItem[] | null;
52
54
  }
53
- export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items"> {
55
+ export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items"> {
54
56
  }
55
57
  export declare const ITEM_CLASSIFICATION: {
56
58
  DIRECT: string;
@@ -108,8 +108,6 @@ export interface IRFQItem {
108
108
  uom: string;
109
109
  code_sku: string;
110
110
  quantity: number;
111
- pending_qnty: number;
112
- processing_qnty: number;
113
111
  created_by_user_id: string;
114
112
  item_description?: string | null;
115
113
  remarks?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.16.0",
3
+ "version": "5.16.2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",