kcommons 9.24.2 → 9.25.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.
- package/build/constants/companyRoutes.constants.d.ts +3 -1
- package/build/constants/companyRoutes.constants.js +4 -1
- package/build/typings/comparative.typings.d.ts +1 -1
- package/build/typings/comparative.typings.js +1 -1
- package/build/typings/mi.typings.d.ts +17 -4
- package/build/typings/mi.typings.js +9 -1
- package/build/typings/user.typings.d.ts +8 -1
- package/build/typings/user.typings.js +4 -0
- package/package.json +1 -1
|
@@ -374,7 +374,9 @@ export declare const companyNavConfig: {
|
|
|
374
374
|
id: COMPANY_ROUTE_IDS;
|
|
375
375
|
};
|
|
376
376
|
view: {
|
|
377
|
-
route: (mi_id: string
|
|
377
|
+
route: (mi_id: string, queryParams?: {
|
|
378
|
+
active_tab: string;
|
|
379
|
+
}) => string;
|
|
378
380
|
id: COMPANY_ROUTE_IDS;
|
|
379
381
|
};
|
|
380
382
|
};
|
|
@@ -374,7 +374,10 @@ exports.companyNavConfig = {
|
|
|
374
374
|
id: COMPANY_ROUTE_IDS.MI_EDT,
|
|
375
375
|
},
|
|
376
376
|
view: {
|
|
377
|
-
route: (mi_id) => `/store/material-issuance/${mi_id}/view
|
|
377
|
+
route: (mi_id, queryParams) => (0, parseReqString_1.parseReqString)(`/store/material-issuance/${mi_id}/view`, {
|
|
378
|
+
route_id: COMPANY_ROUTE_IDS.MI_VIEW,
|
|
379
|
+
active_tab: queryParams === null || queryParams === void 0 ? void 0 : queryParams.active_tab,
|
|
380
|
+
}),
|
|
378
381
|
id: COMPANY_ROUTE_IDS.MI_VIEW,
|
|
379
382
|
},
|
|
380
383
|
},
|
|
@@ -8,7 +8,7 @@ import { INestedUser } from "./user.typings";
|
|
|
8
8
|
export declare enum COMPARATIVE_TABS {
|
|
9
9
|
COMMERCIAL = "Commercial",
|
|
10
10
|
TECHNICAL = "Technical",
|
|
11
|
-
APPROVALS = "
|
|
11
|
+
APPROVALS = "Approvals",
|
|
12
12
|
ANALYTICS = "Analytics"
|
|
13
13
|
}
|
|
14
14
|
export declare enum COMPARATIVE_STATUS {
|
|
@@ -5,7 +5,7 @@ var COMPARATIVE_TABS;
|
|
|
5
5
|
(function (COMPARATIVE_TABS) {
|
|
6
6
|
COMPARATIVE_TABS["COMMERCIAL"] = "Commercial";
|
|
7
7
|
COMPARATIVE_TABS["TECHNICAL"] = "Technical";
|
|
8
|
-
COMPARATIVE_TABS["APPROVALS"] = "
|
|
8
|
+
COMPARATIVE_TABS["APPROVALS"] = "Approvals";
|
|
9
9
|
COMPARATIVE_TABS["ANALYTICS"] = "Analytics";
|
|
10
10
|
})(COMPARATIVE_TABS || (exports.COMPARATIVE_TABS = COMPARATIVE_TABS = {}));
|
|
11
11
|
var COMPARATIVE_STATUS;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
2
1
|
import { INestedCompany } from "./company.typings";
|
|
3
2
|
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
4
3
|
import { INestedDepartment } from "./department.typings";
|
|
5
4
|
import { IDocItem } from "./docItems.typings";
|
|
5
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
6
6
|
import { INestedIndent, INestedIndentItem } from "./indent.typings";
|
|
7
7
|
import { INestedItem } from "./item.typings";
|
|
8
8
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
9
9
|
import { INestedUser } from "./user.typings";
|
|
10
|
+
export declare enum MI_TABS {
|
|
11
|
+
ITEMS = "ITEMS",
|
|
12
|
+
APPROVALS = "APPROVALS"
|
|
13
|
+
}
|
|
10
14
|
export declare enum MI_SOURCE {
|
|
11
15
|
DIRECT = "DIRECT",
|
|
12
16
|
INDENT = "INDENT"
|
|
@@ -20,6 +24,9 @@ export interface IMI {
|
|
|
20
24
|
parent_company_id: string;
|
|
21
25
|
status: string;
|
|
22
26
|
parent_store_location_id: string;
|
|
27
|
+
sent_for_approval_by_id?: string | null;
|
|
28
|
+
issued_by_user_id?: string | null;
|
|
29
|
+
last_updated_by_user_id?: string | null;
|
|
23
30
|
message?: string | null;
|
|
24
31
|
attachment_link?: string | null;
|
|
25
32
|
is_deleted?: boolean | null;
|
|
@@ -33,11 +40,14 @@ export interface IMI {
|
|
|
33
40
|
created_by_user?: INestedUser | null;
|
|
34
41
|
parent_indent?: INestedIndent | null;
|
|
35
42
|
items?: INestedMIItem[] | null;
|
|
36
|
-
approval_chain?:
|
|
43
|
+
approval_chain?: INestedEntityApprovalChainEntry[] | null;
|
|
37
44
|
store_location?: INestedStoreLocation | null;
|
|
38
45
|
inventory_logs?: INestedInventoryLog[] | null;
|
|
46
|
+
sent_for_approval_by_user: INestedUser | null;
|
|
47
|
+
issued_by_user: INestedUser | null;
|
|
48
|
+
last_updated_by_user: INestedUser | null;
|
|
39
49
|
}
|
|
40
|
-
export interface INestedMI extends Omit<IMI, "store_location" | "company" | "paretn_department" | "created_by_user" | "parent_indent" | "items" | "approval_chain" | "store_location" | "inventory_logs"> {
|
|
50
|
+
export interface INestedMI extends Omit<IMI, "store_location" | "company" | "paretn_department" | "created_by_user" | "parent_indent" | "items" | "approval_chain" | "store_location" | "inventory_logs" | "sent_for_approval_by_user" | "issued_by_user" | "last_updated_by_user"> {
|
|
41
51
|
}
|
|
42
52
|
export declare enum MI_STATUS {
|
|
43
53
|
DRAFT = "DRAFT",
|
|
@@ -54,7 +64,10 @@ export declare enum MI_INCLUDE {
|
|
|
54
64
|
approval_chain = "approval_chain",
|
|
55
65
|
items = "items",
|
|
56
66
|
store_location = "store_location",
|
|
57
|
-
inventory_logs = "inventory_logs"
|
|
67
|
+
inventory_logs = "inventory_logs",
|
|
68
|
+
sent_for_approval_by_user = "sent_for_approval_by_user",
|
|
69
|
+
issued_by_user = "issued_by_user",
|
|
70
|
+
last_updated_by_user = "last_updated_by_user"
|
|
58
71
|
}
|
|
59
72
|
export declare enum MI_ITEM_INCLUDE {
|
|
60
73
|
indent_item = "indent_item",
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MI_ITEM_INCLUDE = exports.MI_INCLUDE = exports.MI_STATUS = exports.MI_SOURCE = void 0;
|
|
3
|
+
exports.MI_ITEM_INCLUDE = exports.MI_INCLUDE = exports.MI_STATUS = exports.MI_SOURCE = exports.MI_TABS = void 0;
|
|
4
|
+
var MI_TABS;
|
|
5
|
+
(function (MI_TABS) {
|
|
6
|
+
MI_TABS["ITEMS"] = "ITEMS";
|
|
7
|
+
MI_TABS["APPROVALS"] = "APPROVALS";
|
|
8
|
+
})(MI_TABS || (exports.MI_TABS = MI_TABS = {}));
|
|
4
9
|
var MI_SOURCE;
|
|
5
10
|
(function (MI_SOURCE) {
|
|
6
11
|
MI_SOURCE["DIRECT"] = "DIRECT";
|
|
@@ -24,6 +29,9 @@ var MI_INCLUDE;
|
|
|
24
29
|
MI_INCLUDE["items"] = "items";
|
|
25
30
|
MI_INCLUDE["store_location"] = "store_location";
|
|
26
31
|
MI_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
32
|
+
MI_INCLUDE["sent_for_approval_by_user"] = "sent_for_approval_by_user";
|
|
33
|
+
MI_INCLUDE["issued_by_user"] = "issued_by_user";
|
|
34
|
+
MI_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
27
35
|
})(MI_INCLUDE || (exports.MI_INCLUDE = MI_INCLUDE = {}));
|
|
28
36
|
// MI Item Typings
|
|
29
37
|
var MI_ITEM_INCLUDE;
|
|
@@ -76,6 +76,9 @@ export interface IUser {
|
|
|
76
76
|
approval_chains?: null | INestedApprovalChainEntry[];
|
|
77
77
|
created_indents?: null | INestedIndent[];
|
|
78
78
|
created_mis?: null | INestedMI[];
|
|
79
|
+
mis_sent_for_approval?: null | INestedMI[];
|
|
80
|
+
mis_issued?: null | INestedMI[];
|
|
81
|
+
mis_last_updated?: null | INestedMI[];
|
|
79
82
|
created_prs?: null | INestedPR[];
|
|
80
83
|
pr_sent_for_approval?: null | INestedPR[];
|
|
81
84
|
last_updated_prs?: null | INestedPR[];
|
|
@@ -133,7 +136,7 @@ export interface IUser {
|
|
|
133
136
|
iads_terminated_by_user: INestedIAD[] | null;
|
|
134
137
|
initiated_inventory_logs: INestedInventoryLog[] | null;
|
|
135
138
|
}
|
|
136
|
-
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "as_item_approver_for_company" | "as_vendor_approver_for_company" | "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" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "pr_sent_for_approval" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "as_contact_person_for_asns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "approved_company_vendors" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "last_updated_root_entity_approval_config" | "as_part_of_root_entity_approval_chain_entries" | "as_part_of_root_entity_approval_chain" | "last_updated_root_entity_approval_chain" | "items_last_updated_by_user" | "copmany_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs"> {
|
|
139
|
+
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "as_item_approver_for_company" | "as_vendor_approver_for_company" | "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" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "as_contact_person_for_asns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "approved_company_vendors" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "last_updated_root_entity_approval_config" | "as_part_of_root_entity_approval_chain_entries" | "as_part_of_root_entity_approval_chain" | "last_updated_root_entity_approval_chain" | "items_last_updated_by_user" | "copmany_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs"> {
|
|
137
140
|
}
|
|
138
141
|
export declare enum UserInclude {
|
|
139
142
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|
|
@@ -152,6 +155,10 @@ export declare enum UserInclude {
|
|
|
152
155
|
approval_chains = "approval_chains",
|
|
153
156
|
assigned_roles = "assigned_roles",
|
|
154
157
|
negotiations = "negotiations",
|
|
158
|
+
created_mis = "created_mis",
|
|
159
|
+
mis_sent_for_approval = "mis_sent_for_approval",
|
|
160
|
+
mis_issued = "mis_issued",
|
|
161
|
+
mis_last_updated = "mis_last_updated",
|
|
155
162
|
created_pos = "created_pos",
|
|
156
163
|
pr_sent_for_approval = "pr_sent_for_approval",
|
|
157
164
|
last_updated_prs = "last_updated_prs",
|
|
@@ -20,6 +20,10 @@ var UserInclude;
|
|
|
20
20
|
UserInclude["approval_chains"] = "approval_chains";
|
|
21
21
|
UserInclude["assigned_roles"] = "assigned_roles";
|
|
22
22
|
UserInclude["negotiations"] = "negotiations";
|
|
23
|
+
UserInclude["created_mis"] = "created_mis";
|
|
24
|
+
UserInclude["mis_sent_for_approval"] = "mis_sent_for_approval";
|
|
25
|
+
UserInclude["mis_issued"] = "mis_issued";
|
|
26
|
+
UserInclude["mis_last_updated"] = "mis_last_updated";
|
|
23
27
|
UserInclude["created_pos"] = "created_pos";
|
|
24
28
|
UserInclude["pr_sent_for_approval"] = "pr_sent_for_approval";
|
|
25
29
|
UserInclude["last_updated_prs"] = "last_updated_prs";
|