kcommons 18.27.1 → 18.27.2

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 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,3 +1,4 @@
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";
3
4
  export interface ICheckpointOpsKPICommonFilters {
@@ -16,6 +17,8 @@ export interface ICheckpointOpsExpectedVehicleUnit {
16
17
  ves_id: string;
17
18
  ves_no: string;
18
19
  vehicle_no: string;
20
+ items: IKpiVesItem[];
21
+ items_source: KPI_VES_ITEMS_SOURCE;
19
22
  vendor_name: string | null;
20
23
  store_location_id: string;
21
24
  store_location_name: string;
@@ -26,6 +29,8 @@ export interface ICheckpointOpsInMarkedVehicleUnit {
26
29
  ves_id: string;
27
30
  ves_no: string;
28
31
  vehicle_no: string;
32
+ items: IKpiVesItem[];
33
+ items_source: KPI_VES_ITEMS_SOURCE;
29
34
  vendor_name: string | null;
30
35
  store_location_id: string;
31
36
  store_location_name: string;
@@ -1,3 +1,4 @@
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";
3
4
  export interface IExitCheckpointVehicleColumnsFilters {
@@ -16,6 +17,8 @@ interface IExitCheckpointVehicleBase {
16
17
  ves_id: string;
17
18
  ves_no: string;
18
19
  vehicle_no: string;
20
+ items: IKpiVesItem[];
21
+ items_source: KPI_VES_ITEMS_SOURCE;
19
22
  vendor_name: string | null;
20
23
  store_location_id: string;
21
24
  store_location_name: string;
@@ -1,5 +1,7 @@
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 { VES_STATUS } from "../../company/masters/ves.typings";
3
5
  export interface IGateKpiCardsResponse {
4
6
  gi_made_today: number;
5
7
  gi_made_this_month: number;
@@ -7,6 +9,7 @@ export interface IGateKpiCardsResponse {
7
9
  gi_pending_erp_sync: number;
8
10
  ves_marked_as_in: number;
9
11
  ves_pending_gi: number;
12
+ invoices_pending_verification: number;
10
13
  }
11
14
  export interface IGateVehicleColumnsFilters {
12
15
  store_location_id?: string;
@@ -19,6 +22,8 @@ interface IGateVehicleBase {
19
22
  ves_id: string;
20
23
  ves_no: string;
21
24
  vehicle_no: string;
25
+ items: IKpiVesItem[];
26
+ items_source: KPI_VES_ITEMS_SOURCE;
22
27
  vendor_name: string | null;
23
28
  store_location_id: string;
24
29
  store_location_name: string;
@@ -26,6 +31,12 @@ interface IGateVehicleBase {
26
31
  }
27
32
  export interface IGateArrivedVehicleUnit extends IGateVehicleBase {
28
33
  arrived_at: string;
34
+ ves_status: VES_STATUS;
35
+ waiting_duration_ms: number;
36
+ }
37
+ export interface IGatePendingApprovalVehicleUnit extends IGateVehicleBase {
38
+ arrived_at: string;
39
+ sent_for_approval_at: string;
29
40
  waiting_duration_ms: number;
30
41
  }
31
42
  export interface IGateRequestedVehicleUnit extends IGateVehicleBase {
@@ -1,3 +1,4 @@
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";
3
4
  export interface IGateOpsKpiCardsResponse {
@@ -6,9 +7,20 @@ export interface IGateOpsKpiCardsResponse {
6
7
  invalid_invoice_count: number;
7
8
  total_ves_recorded_count: number;
8
9
  }
10
+ export interface IGateOpsExpectedVehicleItem {
11
+ asn_item_id: string;
12
+ item_id: string;
13
+ item_name: string;
14
+ code_sku: string;
15
+ uom: string;
16
+ dispatched_quantity: number;
17
+ }
9
18
  export interface IGateOpsExpectedVehicleUnit {
10
19
  asn_id: string;
20
+ asn_no: string;
11
21
  vehicle_no: string;
22
+ items: IGateOpsExpectedVehicleItem[];
23
+ total_dispatched_quantity: number;
12
24
  vendor_name: string | null;
13
25
  store_location_id: string;
14
26
  store_location_name: string;
@@ -20,6 +32,8 @@ export interface IGateOpsParkedVehicleUnit {
20
32
  ves_id: string;
21
33
  ves_no: string;
22
34
  vehicle_no: string;
35
+ items: IKpiVesItem[];
36
+ items_source: KPI_VES_ITEMS_SOURCE;
23
37
  vendor_name: string | null;
24
38
  store_location_id: string;
25
39
  store_location_name: string;
@@ -31,6 +45,8 @@ export interface IGateOpsRequestedVehicleUnit {
31
45
  ves_id: string;
32
46
  ves_no: string;
33
47
  vehicle_no: string;
48
+ items: IKpiVesItem[];
49
+ items_source: KPI_VES_ITEMS_SOURCE;
34
50
  vendor_name: string | null;
35
51
  store_location_id: string;
36
52
  store_location_name: string;
@@ -0,0 +1,4 @@
1
+ export declare enum KPI_SORTING_ORDER {
2
+ oldest_first = "oldest_first",
3
+ newest_first = "newest_first"
4
+ }
@@ -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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "18.27.1",
3
+ "version": "18.27.2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",