kcommons 5.8.12 → 5.9.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.
@@ -7,6 +7,7 @@ import { INestedItem } from "./item.typings";
7
7
  import { INestedItemCategory } from "./itemCategory.typings";
8
8
  import { IItemSubcategory } from "./itemSubcategory.typings";
9
9
  import { INestedMI, INestedMIItem } from "./mi.typings";
10
+ import { INestedMRN, INestedMRNItem } from "./mrn.typings";
10
11
  import { INestedNegotiation } from "./negotiation.typings";
11
12
  import { INestedOffice } from "./offices.typings";
12
13
  import { INestedPo } from "./po.typings";
@@ -69,8 +70,10 @@ export interface ICompany extends IAddress {
69
70
  company_pos?: null | INestedPo[];
70
71
  company_grns?: INestedGRN[] | null;
71
72
  company_grns_items?: INestedGRNItem[] | null;
73
+ company_mrns?: INestedMRN[] | null;
74
+ company_mrns_items?: INestedMRNItem[] | null;
72
75
  }
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"> {
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"> {
74
77
  }
75
78
  export declare enum COMPANY_INCLUDE {
76
79
  associated_purchase_locations = "associated_purchase_locations",
@@ -99,5 +102,7 @@ export declare enum COMPANY_INCLUDE {
99
102
  company_negotiations = "company_negotiations",
100
103
  company_pos = "company_pos",
101
104
  company_grns = "company_grns",
102
- company_grns_items = "company_grns_items"
105
+ company_grns_items = "company_grns_items",
106
+ company_mrns = "company_mrns",
107
+ company_mrns_items = "company_mrns_items"
103
108
  }
@@ -30,4 +30,6 @@ var COMPANY_INCLUDE;
30
30
  COMPANY_INCLUDE["company_pos"] = "company_pos";
31
31
  COMPANY_INCLUDE["company_grns"] = "company_grns";
32
32
  COMPANY_INCLUDE["company_grns_items"] = "company_grns_items";
33
+ COMPANY_INCLUDE["company_mrns"] = "company_mrns";
34
+ COMPANY_INCLUDE["company_mrns_items"] = "company_mrns_items";
33
35
  })(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
@@ -3,6 +3,7 @@ import { INestedGate } from "./gate.typings";
3
3
  import { INestedGRN } from "./grn.typings";
4
4
  import { INestedIndent } from "./indent.typings";
5
5
  import { INestedMI } from "./mi.typings";
6
+ import { INestedMRN } from "./mrn.typings";
6
7
  import { INestedOffice } from "./offices.typings";
7
8
  import { INestedPR } from "./pr.typings";
8
9
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
@@ -37,8 +38,9 @@ export interface IDepartment {
37
38
  subdepartments?: null | INestedSubdepartment[];
38
39
  roles?: null | INestedRole[];
39
40
  grns?: null | INestedGRN[];
41
+ mrns?: null | INestedMRN[];
40
42
  }
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"> {
43
+ export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "prs" | "subdepartments" | "roles" | "grns" | "mrns"> {
42
44
  }
43
45
  export declare const DEPT_TYPES: {
44
46
  PURCHASE: string;
@@ -49,7 +51,8 @@ export declare enum DepartmentInclude {
49
51
  subdepartments = "subdepartments",
50
52
  roles = "roles",
51
53
  hod = "hod",
52
- grns = "grns"
54
+ grns = "grns",
55
+ mrns = "mrns"
53
56
  }
54
57
  export interface ISubDepartment {
55
58
  id: string;
@@ -12,4 +12,5 @@ var DepartmentInclude;
12
12
  DepartmentInclude["roles"] = "roles";
13
13
  DepartmentInclude["hod"] = "hod";
14
14
  DepartmentInclude["grns"] = "grns";
15
+ DepartmentInclude["mrns"] = "mrns";
15
16
  })(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
@@ -4,6 +4,7 @@ import { INestedCompany } from "./company.typings";
4
4
  import { INestedDepartment } from "./department.typings";
5
5
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
6
6
  import { INestedItem } from "./item.typings";
7
+ import { INestedMRN, INestedMRNItem } from "./mrn.typings";
7
8
  import { INestedStoreLocation } from "./storeLocation.typings";
8
9
  import { INestedUser } from "./user.typings";
9
10
  export declare enum GRN_INCLUDE {
@@ -15,13 +16,14 @@ export declare enum GRN_INCLUDE {
15
16
  items = "items",
16
17
  approval_chain = "approval_chain",
17
18
  sent_for_approval_by = "sent_for_approval_by",
18
- sent_to_store_by = "sent_to_store_by"
19
+ sent_to_store_by = "sent_to_store_by",
20
+ child_mrns = "child_mrns"
19
21
  }
20
22
  export interface IGRNFilters {
21
23
  company_id?: string;
22
24
  parent_asn_id?: string;
23
25
  shipping_store_location_id?: string;
24
- department_id: string;
26
+ department_id?: string;
25
27
  status?: GRN_STATUS;
26
28
  include?: GRN_INCLUDE[];
27
29
  }
@@ -59,17 +61,19 @@ export interface IGRN {
59
61
  parent_asn?: INestedASN | null;
60
62
  contact_person?: INestedUser | null;
61
63
  items?: INestedGRNItem[] | null;
64
+ child_mrns?: INestedMRN[] | null;
62
65
  approval_chain?: INestedEntityApprovalChainEntry[] | null;
63
66
  sent_for_approval_by?: INestedUser | null;
64
67
  sent_to_store_by?: INestedUser | null;
65
68
  }
66
- export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by"> {
69
+ export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns"> {
67
70
  }
68
71
  export declare enum GRN_ITEM_INCLUDE {
69
72
  company = "company",
70
73
  parent_grn = "parent_grn",
71
74
  item = "item",
72
- parent_asn_item = "parent_asn_item"
75
+ parent_asn_item = "parent_asn_item",
76
+ referenced_in_mrn_items = "referenced_in_mrn_items"
73
77
  }
74
78
  export interface IGRNItem {
75
79
  id: string;
@@ -91,6 +95,7 @@ export interface IGRNItem {
91
95
  parent_grn?: INestedGRN | null;
92
96
  item?: INestedItem | null;
93
97
  parent_asn_item?: INestedASNItem | null;
98
+ referenced_in_mrn_items?: INestedMRNItem[] | null;
94
99
  }
95
- export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item"> {
100
+ export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items"> {
96
101
  }
@@ -12,6 +12,7 @@ var GRN_INCLUDE;
12
12
  GRN_INCLUDE["approval_chain"] = "approval_chain";
13
13
  GRN_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
14
14
  GRN_INCLUDE["sent_to_store_by"] = "sent_to_store_by";
15
+ GRN_INCLUDE["child_mrns"] = "child_mrns";
15
16
  })(GRN_INCLUDE || (exports.GRN_INCLUDE = GRN_INCLUDE = {}));
16
17
  var GRN_STATUS;
17
18
  (function (GRN_STATUS) {
@@ -28,4 +29,5 @@ var GRN_ITEM_INCLUDE;
28
29
  GRN_ITEM_INCLUDE["parent_grn"] = "parent_grn";
29
30
  GRN_ITEM_INCLUDE["item"] = "item";
30
31
  GRN_ITEM_INCLUDE["parent_asn_item"] = "parent_asn_item";
32
+ GRN_ITEM_INCLUDE["referenced_in_mrn_items"] = "referenced_in_mrn_items";
31
33
  })(GRN_ITEM_INCLUDE || (exports.GRN_ITEM_INCLUDE = GRN_ITEM_INCLUDE = {}));
@@ -4,6 +4,7 @@ import { INestedIndentItem } from "./indent.typings";
4
4
  import { INestedItemCategory } from "./itemCategory.typings";
5
5
  import { INestedItemSubcategory } from "./itemSubcategory.typings";
6
6
  import { INestedMIItem } from "./mi.typings";
7
+ import { INestedMRNItem } from "./mrn.typings";
7
8
  import { INestedPrItem } from "./pr.typings";
8
9
  import { INestedQuoteItems } from "./quote.typings";
9
10
  import { INestedInventoryItem } from "./storeInventory.typings";
@@ -44,8 +45,9 @@ export interface IItem {
44
45
  used_in_pr_items?: INestedPrItem[] | null;
45
46
  used_in_quote_items?: INestedQuoteItems[] | null;
46
47
  used_in_grn_items?: INestedGRNItem[] | null;
48
+ used_in_mrn_items?: INestedMRNItem[] | null;
47
49
  }
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"> {
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"> {
49
51
  }
50
52
  export declare const ITEM_CLASSIFICATION: {
51
53
  DIRECT: string;
@@ -3,3 +3,8 @@ export interface IMRN {
3
3
  }
4
4
  export interface INestedMRN extends Omit<IMRN, ""> {
5
5
  }
6
+ export interface IMRNItem {
7
+ id: string;
8
+ }
9
+ export interface INestedMRNItem extends Omit<IMRNItem, ""> {
10
+ }
@@ -6,6 +6,7 @@ import { INestedGate } from "./gate.typings";
6
6
  import { INestedGRN } from "./grn.typings";
7
7
  import { INestedIndent } from "./indent.typings";
8
8
  import { INestedMI } from "./mi.typings";
9
+ import { INestedMRN } from "./mrn.typings";
9
10
  import { INestedOffice } from "./offices.typings";
10
11
  import { INestedPo } from "./po.typings";
11
12
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
@@ -35,6 +36,7 @@ export interface IStoreLocation extends IAddress {
35
36
  roles?: null | INestedRole[];
36
37
  indents?: null | INestedIndent[];
37
38
  mis?: null | INestedMI[];
39
+ mrns?: null | INestedMRN[];
38
40
  as_shipping_location_for_rfqs?: null | INestedRFQ[];
39
41
  as_shipping_location_for_quotes?: null | INestedQuote[];
40
42
  target_offices?: null | INestedOffice[];
@@ -44,7 +46,7 @@ export interface IStoreLocation extends IAddress {
44
46
  as_shipping_location_for_grns?: null | INestedGRN[];
45
47
  as_shipping_location_for_asns?: null | INestedASN[];
46
48
  }
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"> {
49
+ export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "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"> {
48
50
  }
49
51
  export declare enum StoreLocationInclude {
50
52
  company = "company",
@@ -55,6 +57,7 @@ export declare enum StoreLocationInclude {
55
57
  roles = "roles",
56
58
  indents = "indents",
57
59
  mis = "mis",
60
+ mrns = "mrns",
58
61
  as_shipping_location_for_rfqs = "as_shipping_location_for_rfqs",
59
62
  as_shipping_location_for_quotes = "as_shipping_location_for_quotes",
60
63
  target_offices = "target_offices",
@@ -11,6 +11,7 @@ var StoreLocationInclude;
11
11
  StoreLocationInclude["roles"] = "roles";
12
12
  StoreLocationInclude["indents"] = "indents";
13
13
  StoreLocationInclude["mis"] = "mis";
14
+ StoreLocationInclude["mrns"] = "mrns";
14
15
  StoreLocationInclude["as_shipping_location_for_rfqs"] = "as_shipping_location_for_rfqs";
15
16
  StoreLocationInclude["as_shipping_location_for_quotes"] = "as_shipping_location_for_quotes";
16
17
  StoreLocationInclude["target_offices"] = "target_offices";
@@ -7,6 +7,7 @@ import { INestedGRN } from "./grn.typings";
7
7
  import { INestedIndent } from "./indent.typings";
8
8
  import { INestedItem } from "./item.typings";
9
9
  import { INestedMI } from "./mi.typings";
10
+ import { INestedMRN } from "./mrn.typings";
10
11
  import { INestedNegotiation } from "./negotiation.typings";
11
12
  import { INestedOffice } from "./offices.typings";
12
13
  import { INestedPo } from "./po.typings";
@@ -64,12 +65,14 @@ export interface IUser {
64
65
  negotiations?: null | INestedNegotiation[];
65
66
  created_pos?: null | INestedPo[];
66
67
  as_contact_person_for_pos?: null | INestedPo[];
68
+ as_contact_person_for_mrns?: null | INestedMRN[];
67
69
  pos_sent_for_approval?: null | INestedPo[];
68
70
  pos_sent_to_vendors?: null | INestedPo[];
69
71
  grns_sent_for_approval?: INestedGRN[] | null;
70
72
  grns_sent_to_store?: INestedGRN[] | null;
73
+ mrns_sent_for_approval?: INestedMRN[] | null;
71
74
  }
72
- 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" | "grns_sent_for_approval" | "grns_sent_to_store"> {
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"> {
73
76
  }
74
77
  export declare enum UserInclude {
75
78
  as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
@@ -91,5 +94,7 @@ export declare enum UserInclude {
91
94
  pos_sent_for_approval = "pos_sent_for_approval",
92
95
  pos_sent_to_vendors = "pos_sent_to_vendors",
93
96
  grns_sent_for_approval = "grns_sent_for_approval",
94
- grns_sent_to_store = "grns_sent_to_store"
97
+ grns_sent_to_store = "grns_sent_to_store",
98
+ mrns_sent_for_approval = "mrns_sent_for_approval",
99
+ as_contact_person_for_mrns = "as_contact_person_for_mrns"
95
100
  }
@@ -24,4 +24,6 @@ var UserInclude;
24
24
  UserInclude["pos_sent_to_vendors"] = "pos_sent_to_vendors";
25
25
  UserInclude["grns_sent_for_approval"] = "grns_sent_for_approval";
26
26
  UserInclude["grns_sent_to_store"] = "grns_sent_to_store";
27
+ UserInclude["mrns_sent_for_approval"] = "mrns_sent_for_approval";
28
+ UserInclude["as_contact_person_for_mrns"] = "as_contact_person_for_mrns";
27
29
  })(UserInclude || (exports.UserInclude = UserInclude = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.8.12",
3
+ "version": "5.9.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",