kcommons 5.9.13 → 5.10.0

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,50 @@
1
+ import { INestedCompany } from "./company.typings";
2
+ import { INestedItem } from "./item.typings";
3
+ import { INestedUser } from "./user.typings";
4
+ export declare enum BOM_INCLUDE {
5
+ company = "company",
6
+ created_by_user = "created_by_user",
7
+ last_updated_by_user = "last_updated_by_user",
8
+ items = "items"
9
+ }
10
+ export interface IBOM {
11
+ id: string;
12
+ company_id: string;
13
+ bom_name: string;
14
+ bom_code: string;
15
+ description: string | null;
16
+ created_by_user_id: string;
17
+ last_updated_by_user_id: string;
18
+ is_enabled: string;
19
+ is_deleted: string;
20
+ deleted_at: Date | null;
21
+ created_at: Date;
22
+ updated_at: Date;
23
+ company: INestedCompany | null;
24
+ created_by_user: INestedUser | null;
25
+ last_updated_by_user: INestedUser | null;
26
+ items: INestedBOMItem[] | null;
27
+ }
28
+ export interface INestedBOM extends Omit<IBOM, "company" | "created_by_user" | "last_updated_by_user" | "items"> {
29
+ }
30
+ export declare enum BOM_ITEM_INCLUDE {
31
+ company = "company",
32
+ parent_bom = "parent_bom",
33
+ item = "item"
34
+ }
35
+ export interface IBOMItem {
36
+ id: string;
37
+ quantity: number;
38
+ company_id: string;
39
+ parent_bom_id: string;
40
+ item_id: string;
41
+ is_deleted: boolean;
42
+ deleted_at: Date | null;
43
+ updated_at: Date;
44
+ created_at: Date;
45
+ company: INestedCompany | null;
46
+ parent_bom: INestedBOM | null;
47
+ item: INestedItem | null;
48
+ }
49
+ export interface INestedBOMItem extends Omit<IBOMItem, "company" | "item" | "parent_bom"> {
50
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BOM_ITEM_INCLUDE = exports.BOM_INCLUDE = void 0;
4
+ var BOM_INCLUDE;
5
+ (function (BOM_INCLUDE) {
6
+ BOM_INCLUDE["company"] = "company";
7
+ BOM_INCLUDE["created_by_user"] = "created_by_user";
8
+ BOM_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
9
+ BOM_INCLUDE["items"] = "items";
10
+ })(BOM_INCLUDE || (exports.BOM_INCLUDE = BOM_INCLUDE = {}));
11
+ var BOM_ITEM_INCLUDE;
12
+ (function (BOM_ITEM_INCLUDE) {
13
+ BOM_ITEM_INCLUDE["company"] = "company";
14
+ BOM_ITEM_INCLUDE["parent_bom"] = "parent_bom";
15
+ BOM_ITEM_INCLUDE["item"] = "item";
16
+ })(BOM_ITEM_INCLUDE || (exports.BOM_ITEM_INCLUDE = BOM_ITEM_INCLUDE = {}));
@@ -1,5 +1,6 @@
1
1
  import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
2
  import { INestedApprovalConfig } from "./approvalConfig.typings";
3
+ import { INestedBOM, INestedBOMItem } from "./bom.typings";
3
4
  import { INestedDepartment, INestedSubdepartment } from "./department.typings";
4
5
  import { INestedGRN, INestedGRNItem } from "./grn.typings";
5
6
  import { INestedIndent, INestedIndentItem } from "./indent.typings";
@@ -72,8 +73,10 @@ export interface ICompany extends IAddress {
72
73
  company_grns_items?: INestedGRNItem[] | null;
73
74
  company_mrns?: INestedMRN[] | null;
74
75
  company_mrns_items?: INestedMRNItem[] | null;
76
+ company_boms?: INestedBOM[] | null;
77
+ company_bom_items: INestedBOMItem[] | null;
75
78
  }
76
- 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"> {
79
+ 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"> {
77
80
  }
78
81
  export declare enum COMPANY_INCLUDE {
79
82
  associated_purchase_locations = "associated_purchase_locations",
@@ -104,5 +107,7 @@ export declare enum COMPANY_INCLUDE {
104
107
  company_grns = "company_grns",
105
108
  company_grns_items = "company_grns_items",
106
109
  company_mrns = "company_mrns",
107
- company_mrns_items = "company_mrns_items"
110
+ company_mrns_items = "company_mrns_items",
111
+ company_boms = "company_boms",
112
+ company_bom_items = "company_bom_items"
108
113
  }
@@ -32,4 +32,6 @@ var COMPANY_INCLUDE;
32
32
  COMPANY_INCLUDE["company_grns_items"] = "company_grns_items";
33
33
  COMPANY_INCLUDE["company_mrns"] = "company_mrns";
34
34
  COMPANY_INCLUDE["company_mrns_items"] = "company_mrns_items";
35
+ COMPANY_INCLUDE["company_boms"] = "company_boms";
36
+ COMPANY_INCLUDE["company_bom_items"] = "company_bom_items";
35
37
  })(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
@@ -1,3 +1,4 @@
1
+ import { INestedBOMItem } from "./bom.typings";
1
2
  import { INestedCompany } from "./company.typings";
2
3
  import { INestedGRNItem } from "./grn.typings";
3
4
  import { INestedIndentItem } from "./indent.typings";
@@ -46,8 +47,9 @@ export interface IItem {
46
47
  used_in_quote_items?: INestedQuoteItems[] | null;
47
48
  used_in_grn_items?: INestedGRNItem[] | null;
48
49
  used_in_mrn_items?: INestedMRNItem[] | null;
50
+ used_in_bom_items?: INestedBOMItem[] | null;
49
51
  }
50
- 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"> {
52
+ 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"> {
51
53
  }
52
54
  export declare const ITEM_CLASSIFICATION: {
53
55
  DIRECT: string;
@@ -1,4 +1,5 @@
1
1
  import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
+ import { INestedBOM } from "./bom.typings";
2
3
  import { INestedCompany } from "./company.typings";
3
4
  import { INestedDepartment } from "./department.typings";
4
5
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
@@ -71,8 +72,10 @@ export interface IUser {
71
72
  grns_sent_to_store?: INestedGRN[] | null;
72
73
  as_contact_person_for_mrns?: null | INestedMRN[];
73
74
  mrns_sent_for_approval?: INestedMRN[] | null;
75
+ created_boms?: INestedBOM[] | null;
76
+ last_updated_boms?: INestedBOM[] | null;
74
77
  }
75
- export interface INestedUser extends Omit<IUser, "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "as_contact_person_for_grns" | "as_contact_person_for_mrns" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval"> {
78
+ export interface INestedUser extends Omit<IUser, "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "as_contact_person_for_grns" | "as_contact_person_for_mrns" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "created_boms" | "last_updated_boms"> {
76
79
  }
77
80
  export declare enum UserInclude {
78
81
  as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
@@ -96,5 +99,7 @@ export declare enum UserInclude {
96
99
  grns_sent_for_approval = "grns_sent_for_approval",
97
100
  grns_sent_to_store = "grns_sent_to_store",
98
101
  mrns_sent_for_approval = "mrns_sent_for_approval",
99
- as_contact_person_for_mrns = "as_contact_person_for_mrns"
102
+ as_contact_person_for_mrns = "as_contact_person_for_mrns",
103
+ created_boms = "created_boms",
104
+ last_updated_boms = "last_updated_boms"
100
105
  }
@@ -26,4 +26,6 @@ var UserInclude;
26
26
  UserInclude["grns_sent_to_store"] = "grns_sent_to_store";
27
27
  UserInclude["mrns_sent_for_approval"] = "mrns_sent_for_approval";
28
28
  UserInclude["as_contact_person_for_mrns"] = "as_contact_person_for_mrns";
29
+ UserInclude["created_boms"] = "created_boms";
30
+ UserInclude["last_updated_boms"] = "last_updated_boms";
29
31
  })(UserInclude || (exports.UserInclude = UserInclude = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.9.13",
3
+ "version": "5.10.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",