kcommons 5.8.0 → 5.8.5

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,5 +1,6 @@
1
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedGRNItem } from "./grn.typings";
3
4
  import { INestedItem } from "./item.typings";
4
5
  import { INestedPo } from "./po.typings";
5
6
  import { INestedStoreLocation } from "./storeLocation.typings";
@@ -21,14 +22,14 @@ export interface IASN {
21
22
  deleted_at: string;
22
23
  created_at: string;
23
24
  updated_at: string;
24
- created_by_vendor: INestedVendor | null;
25
- for_company: INestedCompany | null;
26
- parent_po: INestedPo | null;
27
- shipping_store_location: INestedStoreLocation | null;
28
- contact_person: INestedUser | null;
29
- items: INestedASNItem[] | null;
25
+ created_by_vendor?: INestedVendor | null;
26
+ for_company?: INestedCompany | null;
27
+ parent_po?: INestedPo | null;
28
+ shipping_store_location?: INestedStoreLocation | null;
29
+ contact_person?: INestedUser | null;
30
+ items?: INestedASNItem[] | null;
30
31
  }
31
- export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "shipping_store_location" | "contact_person" | "items"> {
32
+ export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "shipping_store_location" | "contact_person" | "items" | "associated_grns"> {
32
33
  }
33
34
  export interface IASNFilters {
34
35
  company_id?: string;
@@ -53,14 +54,16 @@ export declare enum ASN_INCLUDE {
53
54
  parent_po = "parent_po",
54
55
  shipping_store_location = "shipping_store_location",
55
56
  contact_person = "contact_person",
56
- items = "items"
57
+ items = "items",
58
+ associated_grns = "associated_grns"
57
59
  }
58
60
  export declare enum ASN_ITEM_INCLUDE {
59
61
  company = "company",
60
62
  item = "item",
61
63
  parent_asn = "parent_asn",
62
64
  vendor = "vendor",
63
- parent_po_item = "parent_po_item"
65
+ parent_po_item = "parent_po_item",
66
+ used_in_grn_items = "used_in_grn_items"
64
67
  }
65
68
  export interface IASNItem {
66
69
  id: string;
@@ -78,11 +81,12 @@ export interface IASNItem {
78
81
  created_at: string;
79
82
  updated_at: string;
80
83
  po_item_id: string | null;
81
- company: INestedCompany | null;
82
- item: INestedItem | null;
83
- parent_asn: INestedASN | null;
84
- vendor: INestedVendor | null;
85
- parent_po_item: INestedPo | null;
84
+ company?: INestedCompany | null;
85
+ item?: INestedItem | null;
86
+ parent_asn?: INestedASN | null;
87
+ vendor?: INestedVendor | null;
88
+ parent_po_item?: INestedPo | null;
89
+ used_in_grn_items?: INestedGRNItem[] | null;
86
90
  }
87
- export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item"> {
91
+ export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items"> {
88
92
  }
@@ -16,6 +16,7 @@ var ASN_INCLUDE;
16
16
  ASN_INCLUDE["shipping_store_location"] = "shipping_store_location";
17
17
  ASN_INCLUDE["contact_person"] = "contact_person";
18
18
  ASN_INCLUDE["items"] = "items";
19
+ ASN_INCLUDE["associated_grns"] = "associated_grns";
19
20
  })(ASN_INCLUDE || (exports.ASN_INCLUDE = ASN_INCLUDE = {}));
20
21
  // ASN Items
21
22
  var ASN_ITEM_INCLUDE;
@@ -25,4 +26,5 @@ var ASN_ITEM_INCLUDE;
25
26
  ASN_ITEM_INCLUDE["parent_asn"] = "parent_asn";
26
27
  ASN_ITEM_INCLUDE["vendor"] = "vendor";
27
28
  ASN_ITEM_INCLUDE["parent_po_item"] = "parent_po_item";
29
+ ASN_ITEM_INCLUDE["used_in_grn_items"] = "used_in_grn_items";
28
30
  })(ASN_ITEM_INCLUDE || (exports.ASN_ITEM_INCLUDE = ASN_ITEM_INCLUDE = {}));
@@ -1,6 +1,7 @@
1
1
  import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
2
  import { INestedApprovalConfig } from "./approvalConfig.typings";
3
3
  import { INestedDepartment, INestedSubdepartment } from "./department.typings";
4
+ import { INestedGRN, INestedGRNItem } from "./grn.typings";
4
5
  import { INestedIndent, INestedIndentItem } from "./indent.typings";
5
6
  import { INestedItem } from "./item.typings";
6
7
  import { INestedItemCategory } from "./itemCategory.typings";
@@ -66,8 +67,10 @@ export interface ICompany extends IAddress {
66
67
  entity_approval_chain_entries?: null | INestedApprovalChainEntry[];
67
68
  company_negotiations?: null | INestedNegotiation[];
68
69
  company_pos?: null | INestedPo[];
70
+ company_grns?: INestedGRN[] | null;
71
+ company_grns_items?: INestedGRNItem[] | null;
69
72
  }
70
- 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"> {
73
+ 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"> {
71
74
  }
72
75
  export declare enum COMPANY_INCLUDE {
73
76
  associated_purchase_locations = "associated_purchase_locations",
@@ -94,5 +97,7 @@ export declare enum COMPANY_INCLUDE {
94
97
  company_quotes = "company_quotes",
95
98
  entity_approval_chain_entries = "entity_approval_chain_entries",
96
99
  company_negotiations = "company_negotiations",
97
- company_pos = "company_pos"
100
+ company_pos = "company_pos",
101
+ company_grns = "company_grns",
102
+ company_grns_items = "company_grns_items"
98
103
  }
@@ -28,4 +28,6 @@ var COMPANY_INCLUDE;
28
28
  COMPANY_INCLUDE["entity_approval_chain_entries"] = "entity_approval_chain_entries";
29
29
  COMPANY_INCLUDE["company_negotiations"] = "company_negotiations";
30
30
  COMPANY_INCLUDE["company_pos"] = "company_pos";
31
+ COMPANY_INCLUDE["company_grns"] = "company_grns";
32
+ COMPANY_INCLUDE["company_grns_items"] = "company_grns_items";
31
33
  })(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
@@ -1,5 +1,6 @@
1
1
  import { INestedCompany } from "./company.typings";
2
2
  import { INestedGate } from "./gate.typings";
3
+ import { INestedGRN } from "./grn.typings";
3
4
  import { INestedIndent } from "./indent.typings";
4
5
  import { INestedMI } from "./mi.typings";
5
6
  import { INestedOffice } from "./offices.typings";
@@ -35,8 +36,9 @@ export interface IDepartment {
35
36
  prs?: null | INestedPR[];
36
37
  subdepartments?: null | INestedSubdepartment[];
37
38
  roles?: null | INestedRole[];
39
+ grns?: null | INestedGRN[];
38
40
  }
39
- export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "prs" | "subdepartments" | "roles"> {
41
+ export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "prs" | "subdepartments" | "roles" | "grns"> {
40
42
  }
41
43
  export declare const DEPT_TYPES: {
42
44
  PURCHASE: string;
@@ -46,7 +48,8 @@ export declare const DEPT_TYPES: {
46
48
  export declare enum DepartmentInclude {
47
49
  subdepartments = "subdepartments",
48
50
  roles = "roles",
49
- hod = "hod"
51
+ hod = "hod",
52
+ grns = "grns"
50
53
  }
51
54
  export interface ISubDepartment {
52
55
  id: string;
@@ -11,4 +11,5 @@ var DepartmentInclude;
11
11
  DepartmentInclude["subdepartments"] = "subdepartments";
12
12
  DepartmentInclude["roles"] = "roles";
13
13
  DepartmentInclude["hod"] = "hod";
14
+ DepartmentInclude["grns"] = "grns";
14
15
  })(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
@@ -1,4 +1,5 @@
1
1
  import { INestedCompany } from "./company.typings";
2
+ import { INestedGRNItem } from "./grn.typings";
2
3
  import { INestedIndentItem } from "./indent.typings";
3
4
  import { INestedItemCategory } from "./itemCategory.typings";
4
5
  import { INestedItemSubcategory } from "./itemSubcategory.typings";
@@ -42,8 +43,9 @@ export interface IItem {
42
43
  used_in_mi_items?: INestedMIItem[] | null;
43
44
  used_in_pr_items?: INestedPrItem[] | null;
44
45
  used_in_quote_items?: INestedQuoteItems[] | null;
46
+ used_in_grn_items?: INestedGRNItem[] | null;
45
47
  }
46
- 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"> {
48
+ 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"> {
47
49
  }
48
50
  export declare const ITEM_CLASSIFICATION: {
49
51
  DIRECT: string;
@@ -1,6 +1,9 @@
1
1
  import { INestedApprovalConfig } from "./approvalConfig.typings";
2
+ import { INestedASN } from "./asn.typings";
2
3
  import { INestedCompany } from "./company.typings";
3
4
  import { INestedDepartment } from "./department.typings";
5
+ import { INestedGate } from "./gate.typings";
6
+ import { INestedGRN } from "./grn.typings";
4
7
  import { INestedIndent } from "./indent.typings";
5
8
  import { INestedMI } from "./mi.typings";
6
9
  import { INestedOffice } from "./offices.typings";
@@ -35,10 +38,13 @@ export interface IStoreLocation extends IAddress {
35
38
  as_shipping_location_for_rfqs?: null | INestedRFQ[];
36
39
  as_shipping_location_for_quotes?: null | INestedQuote[];
37
40
  target_offices?: null | INestedOffice[];
41
+ served_by_gates?: null | INestedGate[];
38
42
  served_by_purchase_locations?: null | INestedPurchaseLocation[];
39
43
  as_shipping_location_for_pos?: null | INestedPo[];
44
+ as_shipping_location_for_grns?: null | INestedGRN[];
45
+ as_shipping_location_for_asns?: null | INestedASN[];
40
46
  }
41
- export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_purchase_locations" | "as_shipping_location_for_pos"> {
47
+ export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_gates" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns" | "as_shipping_location_for_asns"> {
42
48
  }
43
49
  export declare enum StoreLocationInclude {
44
50
  company = "company",
@@ -52,6 +58,9 @@ export declare enum StoreLocationInclude {
52
58
  as_shipping_location_for_rfqs = "as_shipping_location_for_rfqs",
53
59
  as_shipping_location_for_quotes = "as_shipping_location_for_quotes",
54
60
  target_offices = "target_offices",
61
+ served_by_gates = "served_by_gates",
55
62
  served_by_purchase_locations = "served_by_purchase_locations",
56
- as_shipping_location_for_pos = "as_shipping_location_for_pos"
63
+ as_shipping_location_for_pos = "as_shipping_location_for_pos",
64
+ as_shipping_location_for_grns = "as_shipping_location_for_grns",
65
+ as_shipping_location_for_asns = "as_shipping_location_for_asns"
57
66
  }
@@ -14,6 +14,9 @@ var StoreLocationInclude;
14
14
  StoreLocationInclude["as_shipping_location_for_rfqs"] = "as_shipping_location_for_rfqs";
15
15
  StoreLocationInclude["as_shipping_location_for_quotes"] = "as_shipping_location_for_quotes";
16
16
  StoreLocationInclude["target_offices"] = "target_offices";
17
+ StoreLocationInclude["served_by_gates"] = "served_by_gates";
17
18
  StoreLocationInclude["served_by_purchase_locations"] = "served_by_purchase_locations";
18
19
  StoreLocationInclude["as_shipping_location_for_pos"] = "as_shipping_location_for_pos";
20
+ StoreLocationInclude["as_shipping_location_for_grns"] = "as_shipping_location_for_grns";
21
+ StoreLocationInclude["as_shipping_location_for_asns"] = "as_shipping_location_for_asns";
19
22
  })(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
@@ -3,6 +3,7 @@ import { INestedCompany } from "./company.typings";
3
3
  import { INestedDepartment } from "./department.typings";
4
4
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
5
5
  import { INestedGate } from "./gate.typings";
6
+ import { INestedGRN } from "./grn.typings";
6
7
  import { INestedIndent } from "./indent.typings";
7
8
  import { INestedItem } from "./item.typings";
8
9
  import { INestedMI } from "./mi.typings";
@@ -46,6 +47,7 @@ export interface IUser {
46
47
  as_contact_person_companies?: null | INestedCompany[];
47
48
  as_contact_person_offices?: null | INestedOffice[];
48
49
  as_contact_person_gates?: null | INestedGate[];
50
+ as_contact_person_for_grns?: null | INestedGRN[];
49
51
  owned_companies?: null | INestedCompany[];
50
52
  head_for_departments?: null | INestedDepartment[];
51
53
  approved_items?: null | INestedItem[];
@@ -65,7 +67,7 @@ export interface IUser {
65
67
  pos_sent_for_approval?: null | INestedPo[];
66
68
  pos_sent_to_vendors?: null | INestedPo[];
67
69
  }
68
- 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" | "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"> {
70
+ 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" | "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"> {
69
71
  }
70
72
  export declare enum UserInclude {
71
73
  as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
@@ -73,6 +75,8 @@ export declare enum UserInclude {
73
75
  as_incharge_in_offices = "as_incharge_in_offices",
74
76
  as_contact_person_companies = "as_contact_person_companies",
75
77
  as_contact_person_offices = "as_contact_person_offices",
78
+ as_contact_person_gates = "as_contact_person_gates",
79
+ as_contact_person_for_grns = "as_contact_person_for_grns",
76
80
  owned_companies = "owned_companies",
77
81
  head_for_departments = "head_for_departments",
78
82
  approved_items = "approved_items",
@@ -9,6 +9,8 @@ var UserInclude;
9
9
  UserInclude["as_incharge_in_offices"] = "as_incharge_in_offices";
10
10
  UserInclude["as_contact_person_companies"] = "as_contact_person_companies";
11
11
  UserInclude["as_contact_person_offices"] = "as_contact_person_offices";
12
+ UserInclude["as_contact_person_gates"] = "as_contact_person_gates";
13
+ UserInclude["as_contact_person_for_grns"] = "as_contact_person_for_grns";
12
14
  UserInclude["owned_companies"] = "owned_companies";
13
15
  UserInclude["head_for_departments"] = "head_for_departments";
14
16
  UserInclude["approved_items"] = "approved_items";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.8.0",
3
+ "version": "5.8.5",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",