kcommons 18.27.1 → 18.27.4
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/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/typings/kpis/checkpoint/checkpointOpsKpis.typings.d.ts +7 -0
- package/build/typings/kpis/exitCheckpoint/exitCheckpointKpis.typings.d.ts +5 -0
- package/build/typings/kpis/gate/gateKpis.typings.d.ts +13 -0
- package/build/typings/kpis/gateOps/gateOpsKpis.typings.d.ts +18 -0
- package/build/typings/kpis/kpiSorting.typings.d.ts +4 -0
- package/build/typings/kpis/kpiSorting.typings.js +9 -0
- package/build/typings/kpis/kpiVesItems.typings.d.ts +13 -0
- package/build/typings/kpis/kpiVesItems.typings.js +14 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -178,6 +178,7 @@ export * from "./typings/verification_apis/bankAccountVerification.typings";
|
|
|
178
178
|
export * from "./typings/verification_apis/cinVerification.typings";
|
|
179
179
|
export * from "./typings/verification_apis/aadhaarVerification.typings";
|
|
180
180
|
export * from "./typings/kpis/basKPIS.typings";
|
|
181
|
+
export * from "./typings/kpis/kpiSorting.typings";
|
|
181
182
|
export * from "./typings/kpis/company/main/purchase/totalSavings.typings";
|
|
182
183
|
export * from "./typings/kpis/company/main/purchase/purchaseTrend.typings";
|
|
183
184
|
export * from "./typings/kpis/company/main/purchase/avgVendorResponseRatePerRFQKPI.typings";
|
|
@@ -190,6 +191,7 @@ export * from "./typings/kpis/company/item/itemSpecific/stockTrend.typings";
|
|
|
190
191
|
export * from "./typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings";
|
|
191
192
|
export * from "./typings/kpis/company/item/mainDashboard/purchaseVSIssuanceKPI.typings";
|
|
192
193
|
export * from "./typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings";
|
|
194
|
+
export * from "./typings/kpis/kpiVesItems.typings";
|
|
193
195
|
export * from "./typings/kpis/gateOps/gateOpsKpis.typings";
|
|
194
196
|
export * from "./typings/kpis/checkpoint/checkpointOpsKpis.typings";
|
|
195
197
|
export * from "./typings/kpis/exitCheckpoint/exitCheckpointKpis.typings";
|
package/build/index.js
CHANGED
|
@@ -206,6 +206,7 @@ __exportStar(require("./typings/verification_apis/cinVerification.typings"), exp
|
|
|
206
206
|
__exportStar(require("./typings/verification_apis/aadhaarVerification.typings"), exports);
|
|
207
207
|
// KPIs
|
|
208
208
|
__exportStar(require("./typings/kpis/basKPIS.typings"), exports);
|
|
209
|
+
__exportStar(require("./typings/kpis/kpiSorting.typings"), exports);
|
|
209
210
|
// Main Dashboard KPIS
|
|
210
211
|
__exportStar(require("./typings/kpis/company/main/purchase/totalSavings.typings"), exports);
|
|
211
212
|
__exportStar(require("./typings/kpis/company/main/purchase/purchaseTrend.typings"), exports);
|
|
@@ -221,6 +222,7 @@ __exportStar(require("./typings/kpis/company/item/mainDashboard/inventoryAndItem
|
|
|
221
222
|
__exportStar(require("./typings/kpis/company/item/mainDashboard/purchaseVSIssuanceKPI.typings"), exports);
|
|
222
223
|
__exportStar(require("./typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings"), exports);
|
|
223
224
|
// Gate Ops KPIs
|
|
225
|
+
__exportStar(require("./typings/kpis/kpiVesItems.typings"), exports);
|
|
224
226
|
__exportStar(require("./typings/kpis/gateOps/gateOpsKpis.typings"), exports);
|
|
225
227
|
// Checkpoint Ops KPIs
|
|
226
228
|
__exportStar(require("./typings/kpis/checkpoint/checkpointOpsKpis.typings"), exports);
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { IKpiVesItem, KPI_VES_ITEMS_SOURCE } from "../kpiVesItems.typings";
|
|
1
2
|
import { SUPPLIER_INVOICE_STATUS } from "../../supplierInvoice.typings";
|
|
2
3
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
4
|
+
import { KPI_SORTING_ORDER } from "../kpiSorting.typings";
|
|
3
5
|
export interface ICheckpointOpsKPICommonFilters {
|
|
4
6
|
checkpoint_id?: string;
|
|
5
7
|
search?: string;
|
|
8
|
+
sorting_order?: KPI_SORTING_ORDER;
|
|
6
9
|
}
|
|
7
10
|
export interface ICheckpointOpsKPICommonFiltersWithPaginationFilters extends IPaginationFilters, ICheckpointOpsKPICommonFilters {
|
|
8
11
|
}
|
|
@@ -16,6 +19,8 @@ export interface ICheckpointOpsExpectedVehicleUnit {
|
|
|
16
19
|
ves_id: string;
|
|
17
20
|
ves_no: string;
|
|
18
21
|
vehicle_no: string;
|
|
22
|
+
items: IKpiVesItem[];
|
|
23
|
+
items_source: KPI_VES_ITEMS_SOURCE;
|
|
19
24
|
vendor_name: string | null;
|
|
20
25
|
store_location_id: string;
|
|
21
26
|
store_location_name: string;
|
|
@@ -26,6 +31,8 @@ export interface ICheckpointOpsInMarkedVehicleUnit {
|
|
|
26
31
|
ves_id: string;
|
|
27
32
|
ves_no: string;
|
|
28
33
|
vehicle_no: string;
|
|
34
|
+
items: IKpiVesItem[];
|
|
35
|
+
items_source: KPI_VES_ITEMS_SOURCE;
|
|
29
36
|
vendor_name: string | null;
|
|
30
37
|
store_location_id: string;
|
|
31
38
|
store_location_name: string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { IKpiVesItem, KPI_VES_ITEMS_SOURCE } from "../kpiVesItems.typings";
|
|
1
2
|
import { SUPPLIER_INVOICE_STATUS } from "../../supplierInvoice.typings";
|
|
2
3
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
4
|
+
import { KPI_SORTING_ORDER } from "../kpiSorting.typings";
|
|
3
5
|
export interface IExitCheckpointVehicleColumnsFilters {
|
|
4
6
|
checkpoint_id?: string;
|
|
5
7
|
search?: string;
|
|
8
|
+
sorting_order?: KPI_SORTING_ORDER;
|
|
6
9
|
}
|
|
7
10
|
export interface IExitCheckpointVehicleColumnsFiltersWithPaginationFilters extends IExitCheckpointVehicleColumnsFilters, IPaginationFilters {
|
|
8
11
|
}
|
|
@@ -16,6 +19,8 @@ interface IExitCheckpointVehicleBase {
|
|
|
16
19
|
ves_id: string;
|
|
17
20
|
ves_no: string;
|
|
18
21
|
vehicle_no: string;
|
|
22
|
+
items: IKpiVesItem[];
|
|
23
|
+
items_source: KPI_VES_ITEMS_SOURCE;
|
|
19
24
|
vendor_name: string | null;
|
|
20
25
|
store_location_id: string;
|
|
21
26
|
store_location_name: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { IKpiVesItem, KPI_VES_ITEMS_SOURCE } from "../kpiVesItems.typings";
|
|
1
2
|
import { SUPPLIER_INVOICE_STATUS } from "../../supplierInvoice.typings";
|
|
2
3
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
4
|
+
import { KPI_SORTING_ORDER } from "../kpiSorting.typings";
|
|
5
|
+
import { VES_STATUS } from "../../company/masters/ves.typings";
|
|
3
6
|
export interface IGateKpiCardsResponse {
|
|
4
7
|
gi_made_today: number;
|
|
5
8
|
gi_made_this_month: number;
|
|
@@ -7,11 +10,13 @@ export interface IGateKpiCardsResponse {
|
|
|
7
10
|
gi_pending_erp_sync: number;
|
|
8
11
|
ves_marked_as_in: number;
|
|
9
12
|
ves_pending_gi: number;
|
|
13
|
+
invoices_pending_verification: number;
|
|
10
14
|
}
|
|
11
15
|
export interface IGateVehicleColumnsFilters {
|
|
12
16
|
store_location_id?: string;
|
|
13
17
|
gate_id?: string;
|
|
14
18
|
search?: string;
|
|
19
|
+
sorting_order?: KPI_SORTING_ORDER;
|
|
15
20
|
}
|
|
16
21
|
export interface IGateVehicleColumnsFiltersWithPagination extends IGateVehicleColumnsFilters, IPaginationFilters {
|
|
17
22
|
}
|
|
@@ -19,6 +24,8 @@ interface IGateVehicleBase {
|
|
|
19
24
|
ves_id: string;
|
|
20
25
|
ves_no: string;
|
|
21
26
|
vehicle_no: string;
|
|
27
|
+
items: IKpiVesItem[];
|
|
28
|
+
items_source: KPI_VES_ITEMS_SOURCE;
|
|
22
29
|
vendor_name: string | null;
|
|
23
30
|
store_location_id: string;
|
|
24
31
|
store_location_name: string;
|
|
@@ -26,6 +33,12 @@ interface IGateVehicleBase {
|
|
|
26
33
|
}
|
|
27
34
|
export interface IGateArrivedVehicleUnit extends IGateVehicleBase {
|
|
28
35
|
arrived_at: string;
|
|
36
|
+
ves_status: VES_STATUS;
|
|
37
|
+
waiting_duration_ms: number;
|
|
38
|
+
}
|
|
39
|
+
export interface IGatePendingApprovalVehicleUnit extends IGateVehicleBase {
|
|
40
|
+
arrived_at: string;
|
|
41
|
+
sent_for_approval_at: string;
|
|
29
42
|
waiting_duration_ms: number;
|
|
30
43
|
}
|
|
31
44
|
export interface IGateRequestedVehicleUnit extends IGateVehicleBase {
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
+
import { IKpiVesItem, KPI_VES_ITEMS_SOURCE } from "../kpiVesItems.typings";
|
|
1
2
|
import { SUPPLIER_INVOICE_STATUS } from "../../supplierInvoice.typings";
|
|
2
3
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
4
|
+
import { KPI_SORTING_ORDER } from "../kpiSorting.typings";
|
|
3
5
|
export interface IGateOpsKpiCardsResponse {
|
|
4
6
|
verified_invoice_count: number;
|
|
5
7
|
recorded_invoice_count: number;
|
|
6
8
|
invalid_invoice_count: number;
|
|
7
9
|
total_ves_recorded_count: number;
|
|
8
10
|
}
|
|
11
|
+
export interface IGateOpsExpectedVehicleItem {
|
|
12
|
+
asn_item_id: string;
|
|
13
|
+
item_id: string;
|
|
14
|
+
item_name: string;
|
|
15
|
+
code_sku: string;
|
|
16
|
+
uom: string;
|
|
17
|
+
dispatched_quantity: number;
|
|
18
|
+
}
|
|
9
19
|
export interface IGateOpsExpectedVehicleUnit {
|
|
10
20
|
asn_id: string;
|
|
21
|
+
asn_no: string;
|
|
11
22
|
vehicle_no: string;
|
|
23
|
+
items: IGateOpsExpectedVehicleItem[];
|
|
24
|
+
total_dispatched_quantity: number;
|
|
12
25
|
vendor_name: string | null;
|
|
13
26
|
store_location_id: string;
|
|
14
27
|
store_location_name: string;
|
|
@@ -20,6 +33,8 @@ export interface IGateOpsParkedVehicleUnit {
|
|
|
20
33
|
ves_id: string;
|
|
21
34
|
ves_no: string;
|
|
22
35
|
vehicle_no: string;
|
|
36
|
+
items: IKpiVesItem[];
|
|
37
|
+
items_source: KPI_VES_ITEMS_SOURCE;
|
|
23
38
|
vendor_name: string | null;
|
|
24
39
|
store_location_id: string;
|
|
25
40
|
store_location_name: string;
|
|
@@ -31,6 +46,8 @@ export interface IGateOpsRequestedVehicleUnit {
|
|
|
31
46
|
ves_id: string;
|
|
32
47
|
ves_no: string;
|
|
33
48
|
vehicle_no: string;
|
|
49
|
+
items: IKpiVesItem[];
|
|
50
|
+
items_source: KPI_VES_ITEMS_SOURCE;
|
|
34
51
|
vendor_name: string | null;
|
|
35
52
|
store_location_id: string;
|
|
36
53
|
store_location_name: string;
|
|
@@ -53,6 +70,7 @@ export interface IGateOpsVehicleColumnsResponse {
|
|
|
53
70
|
export interface IGateOpsKPICommonFilters {
|
|
54
71
|
checkpoint_id?: string | null;
|
|
55
72
|
search?: string | null;
|
|
73
|
+
sorting_order?: KPI_SORTING_ORDER;
|
|
56
74
|
}
|
|
57
75
|
export interface IGateOpsVehicleColumnsFiltersWithPagination extends IGateOpsKPICommonFilters, IPaginationFilters {
|
|
58
76
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KPI_SORTING_ORDER = void 0;
|
|
4
|
+
// Sort order on created date for the operational dashboard vehicle columns
|
|
5
|
+
var KPI_SORTING_ORDER;
|
|
6
|
+
(function (KPI_SORTING_ORDER) {
|
|
7
|
+
KPI_SORTING_ORDER["oldest_first"] = "oldest_first";
|
|
8
|
+
KPI_SORTING_ORDER["newest_first"] = "newest_first";
|
|
9
|
+
})(KPI_SORTING_ORDER || (exports.KPI_SORTING_ORDER = KPI_SORTING_ORDER = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum KPI_VES_ITEMS_SOURCE {
|
|
2
|
+
SUPPLIER_INVOICE = "SUPPLIER_INVOICE",
|
|
3
|
+
ASN = "ASN",
|
|
4
|
+
VES = "VES"
|
|
5
|
+
}
|
|
6
|
+
export interface IKpiVesItem {
|
|
7
|
+
id: string;
|
|
8
|
+
item_id: string | null;
|
|
9
|
+
item_name: string;
|
|
10
|
+
code_sku: string | null;
|
|
11
|
+
uom: string;
|
|
12
|
+
quantity: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KPI_VES_ITEMS_SOURCE = void 0;
|
|
4
|
+
// Items shown on a VES card in the vehicle dashboards (gate ops, gate, checkpoint, exit checkpoint)
|
|
5
|
+
// Source depends on the VES's supplier invoice:
|
|
6
|
+
// - VERIFIED invoice -> supplier invoice items
|
|
7
|
+
// - RAISED invoice -> ASN items when an ASN is linked, otherwise supplier invoice items
|
|
8
|
+
// - anything else -> VES items
|
|
9
|
+
var KPI_VES_ITEMS_SOURCE;
|
|
10
|
+
(function (KPI_VES_ITEMS_SOURCE) {
|
|
11
|
+
KPI_VES_ITEMS_SOURCE["SUPPLIER_INVOICE"] = "SUPPLIER_INVOICE";
|
|
12
|
+
KPI_VES_ITEMS_SOURCE["ASN"] = "ASN";
|
|
13
|
+
KPI_VES_ITEMS_SOURCE["VES"] = "VES";
|
|
14
|
+
})(KPI_VES_ITEMS_SOURCE || (exports.KPI_VES_ITEMS_SOURCE = KPI_VES_ITEMS_SOURCE = {}));
|