kcommons 18.22.5 → 18.23.1

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.
@@ -211,6 +211,7 @@ exports.EntitySpecificDocuments = {
211
211
  PERMISSION_RESOURCES.ASN,
212
212
  PERMISSION_RESOURCES.VES,
213
213
  PERMISSION_RESOURCES.SUPPLIER_INVOICE,
214
+ PERMISSION_RESOURCES.GRN,
214
215
  ],
215
216
  [entityTypes_constants_1.EntityTypes.PURCHASE_LOCATION]: [
216
217
  PERMISSION_RESOURCES.RFQ,
package/build/index.d.ts CHANGED
@@ -186,6 +186,10 @@ export * from "./typings/kpis/company/item/itemSpecific/stockTrend.typings";
186
186
  export * from "./typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings";
187
187
  export * from "./typings/kpis/company/item/mainDashboard/purchaseVSIssuanceKPI.typings";
188
188
  export * from "./typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings";
189
+ export * from "./typings/kpis/gateOps/gateOpsKpis.typings";
190
+ export * from "./typings/kpis/checkpoint/checkpointOpsKpis.typings";
191
+ export * from "./typings/kpis/exitCheckpoint/exitCheckpointKpis.typings";
192
+ export * from "./typings/kpis/gate/gateKpis.typings";
189
193
  export * from "./typings/kpis/store/storeKpis.typings";
190
194
  export * from "./typings/kpis/company/vendor/totalBusiness.typings";
191
195
  export * from "./typings/kpis/company/vendor/companyVendorPurchaseFlow.typings";
package/build/index.js CHANGED
@@ -216,6 +216,14 @@ __exportStar(require("./typings/kpis/company/item/itemSpecific/stockTrend.typing
216
216
  __exportStar(require("./typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings"), exports);
217
217
  __exportStar(require("./typings/kpis/company/item/mainDashboard/purchaseVSIssuanceKPI.typings"), exports);
218
218
  __exportStar(require("./typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings"), exports);
219
+ // Gate Ops KPIs
220
+ __exportStar(require("./typings/kpis/gateOps/gateOpsKpis.typings"), exports);
221
+ // Checkpoint Ops KPIs
222
+ __exportStar(require("./typings/kpis/checkpoint/checkpointOpsKpis.typings"), exports);
223
+ // Exit Checkpoint KPIs
224
+ __exportStar(require("./typings/kpis/exitCheckpoint/exitCheckpointKpis.typings"), exports);
225
+ // Gate (GI) KPIs
226
+ __exportStar(require("./typings/kpis/gate/gateKpis.typings"), exports);
219
227
  // Store Dashboard KPIs
220
228
  __exportStar(require("./typings/kpis/store/storeKpis.typings"), exports);
221
229
  // Company Vendor Dashboard KPIs
@@ -45,6 +45,14 @@ export declare enum VES_STATUS {
45
45
  EXITED = "EXITED",
46
46
  CANCELLED = "CANCELLED"
47
47
  }
48
+ export declare enum VES_KPI_FILTER {
49
+ VEHICLES_IN_TODAY = "VEHICLES_IN_TODAY",
50
+ VEHICLES_OUT_TODAY = "VEHICLES_OUT_TODAY",
51
+ VEHICLES_COMPLETED_THIS_MONTH = "VEHICLES_COMPLETED_THIS_MONTH",
52
+ VEHICLES_COMPLETED_ALL_TIME = "VEHICLES_COMPLETED_ALL_TIME",
53
+ VES_PENDING_GI = "VES_PENDING_GI",
54
+ VES_MARKED_AS_IN = "VES_MARKED_AS_IN"
55
+ }
48
56
  export declare enum VES_INCLUDE {
49
57
  company = "company",
50
58
  department = "department",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VES_METAFIELDS_INCLUDE = exports.VES_INCLUDE = exports.VES_STATUS = exports.VES_APPROVALS_TABS = exports.VES_VIEW_TABS = exports.VES_PARENT_DOCUMENT_TYPE = exports.VES_REQUESTING_ENTITY_TYPE = void 0;
3
+ exports.VES_METAFIELDS_INCLUDE = exports.VES_INCLUDE = exports.VES_KPI_FILTER = exports.VES_STATUS = exports.VES_APPROVALS_TABS = exports.VES_VIEW_TABS = exports.VES_PARENT_DOCUMENT_TYPE = exports.VES_REQUESTING_ENTITY_TYPE = void 0;
4
4
  var VES_REQUESTING_ENTITY_TYPE;
5
5
  (function (VES_REQUESTING_ENTITY_TYPE) {
6
6
  VES_REQUESTING_ENTITY_TYPE["STORE_LOCATION"] = "store_location";
@@ -34,6 +34,15 @@ var VES_STATUS;
34
34
  VES_STATUS["EXITED"] = "EXITED";
35
35
  VES_STATUS["CANCELLED"] = "CANCELLED";
36
36
  })(VES_STATUS || (exports.VES_STATUS = VES_STATUS = {}));
37
+ var VES_KPI_FILTER;
38
+ (function (VES_KPI_FILTER) {
39
+ VES_KPI_FILTER["VEHICLES_IN_TODAY"] = "VEHICLES_IN_TODAY";
40
+ VES_KPI_FILTER["VEHICLES_OUT_TODAY"] = "VEHICLES_OUT_TODAY";
41
+ VES_KPI_FILTER["VEHICLES_COMPLETED_THIS_MONTH"] = "VEHICLES_COMPLETED_THIS_MONTH";
42
+ VES_KPI_FILTER["VEHICLES_COMPLETED_ALL_TIME"] = "VEHICLES_COMPLETED_ALL_TIME";
43
+ VES_KPI_FILTER["VES_PENDING_GI"] = "VES_PENDING_GI";
44
+ VES_KPI_FILTER["VES_MARKED_AS_IN"] = "VES_MARKED_AS_IN";
45
+ })(VES_KPI_FILTER || (exports.VES_KPI_FILTER = VES_KPI_FILTER = {}));
37
46
  var VES_INCLUDE;
38
47
  (function (VES_INCLUDE) {
39
48
  VES_INCLUDE["company"] = "company";
@@ -41,6 +41,7 @@ export interface INestedGate extends Omit<IGate, "`approval_config" | "departmen
41
41
  }
42
42
  export interface IGateFilters {
43
43
  target_store_location_ids?: string[] | null;
44
+ has_associated_checkpoint?: boolean | null;
44
45
  name?: string | null;
45
46
  include?: GATE_INCLUDE[] | null;
46
47
  }
@@ -48,6 +48,12 @@ export declare enum GRN_PARENT_DOC_TYPE {
48
48
  VES = "VES",
49
49
  SUPPLIER_INVOICE = "SUPPLIER_INVOICE"
50
50
  }
51
+ export declare enum GRN_KPI_FILTER {
52
+ GI_MADE_TODAY = "GI_MADE_TODAY",
53
+ GI_MADE_THIS_MONTH = "GI_MADE_THIS_MONTH",
54
+ GI_MADE_TILL_NOW = "GI_MADE_TILL_NOW",
55
+ GI_PENDING_ERP_SYNC = "GI_PENDING_ERP_SYNC"
56
+ }
51
57
  export declare enum GRN_INCLUDE {
52
58
  company = "company",
53
59
  created_by_user = "created_by_user",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GRN_METAFIELDS_INCLUDE = exports.GRN_ITEM_INCLUDE = exports.GRN_STATUS = exports.GRN_INCLUDE = exports.GRN_PARENT_DOC_TYPE = exports.GRN_TABS = exports.GRN_VIEW_TABS = exports.GRN_LIST_TYPES = void 0;
3
+ exports.GRN_METAFIELDS_INCLUDE = exports.GRN_ITEM_INCLUDE = exports.GRN_STATUS = exports.GRN_INCLUDE = exports.GRN_KPI_FILTER = exports.GRN_PARENT_DOC_TYPE = exports.GRN_TABS = exports.GRN_VIEW_TABS = exports.GRN_LIST_TYPES = void 0;
4
4
  var GRN_LIST_TYPES;
5
5
  (function (GRN_LIST_TYPES) {
6
6
  GRN_LIST_TYPES["ALL"] = "ALL";
@@ -35,6 +35,13 @@ var GRN_PARENT_DOC_TYPE;
35
35
  GRN_PARENT_DOC_TYPE["VES"] = "VES";
36
36
  GRN_PARENT_DOC_TYPE["SUPPLIER_INVOICE"] = "SUPPLIER_INVOICE";
37
37
  })(GRN_PARENT_DOC_TYPE || (exports.GRN_PARENT_DOC_TYPE = GRN_PARENT_DOC_TYPE = {}));
38
+ var GRN_KPI_FILTER;
39
+ (function (GRN_KPI_FILTER) {
40
+ GRN_KPI_FILTER["GI_MADE_TODAY"] = "GI_MADE_TODAY";
41
+ GRN_KPI_FILTER["GI_MADE_THIS_MONTH"] = "GI_MADE_THIS_MONTH";
42
+ GRN_KPI_FILTER["GI_MADE_TILL_NOW"] = "GI_MADE_TILL_NOW";
43
+ GRN_KPI_FILTER["GI_PENDING_ERP_SYNC"] = "GI_PENDING_ERP_SYNC";
44
+ })(GRN_KPI_FILTER || (exports.GRN_KPI_FILTER = GRN_KPI_FILTER = {}));
38
45
  var GRN_INCLUDE;
39
46
  (function (GRN_INCLUDE) {
40
47
  GRN_INCLUDE["company"] = "company";
@@ -0,0 +1,42 @@
1
+ import { SUPPLIER_INVOICE_STATUS } from "../../supplierInvoice.typings";
2
+ import { IPaginationFilters } from "../../common/paginationFilters.typings";
3
+ export interface ICheckpointOpsKPICommonFilters {
4
+ checkpoint_id?: string;
5
+ search?: string;
6
+ }
7
+ export interface ICheckpointOpsKPICommonFiltersWithPaginationFilters extends IPaginationFilters, ICheckpointOpsKPICommonFilters {
8
+ }
9
+ export interface ICheckpointOpsKpiCardsResponse {
10
+ vehicles_in_today: number;
11
+ vehicles_out_today: number;
12
+ vehicles_completed_this_month: number;
13
+ vehicles_completed_all_time: number;
14
+ }
15
+ export interface ICheckpointOpsExpectedVehicleUnit {
16
+ ves_id: string;
17
+ ves_no: string;
18
+ vehicle_no: string;
19
+ vendor_name: string | null;
20
+ store_location_id: string;
21
+ store_location_name: string;
22
+ checkpoint_exited_at: string;
23
+ supplier_invoice_status: SUPPLIER_INVOICE_STATUS | null;
24
+ }
25
+ export interface ICheckpointOpsInMarkedVehicleUnit {
26
+ ves_id: string;
27
+ ves_no: string;
28
+ vehicle_no: string;
29
+ vendor_name: string | null;
30
+ store_location_id: string;
31
+ store_location_name: string;
32
+ in_marked_at: string;
33
+ waiting_duration_ms: number;
34
+ supplier_invoice_status: SUPPLIER_INVOICE_STATUS | null;
35
+ }
36
+ export interface ICheckpointOpsVehicleColumnsResponse {
37
+ expected: ICheckpointOpsExpectedVehicleUnit[];
38
+ in_marked: ICheckpointOpsInMarkedVehicleUnit[];
39
+ page: number;
40
+ limit: number;
41
+ total: number;
42
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ import { SUPPLIER_INVOICE_STATUS } from "../../supplierInvoice.typings";
2
+ import { IPaginationFilters } from "../../common/paginationFilters.typings";
3
+ export interface IExitCheckpointVehicleColumnsFilters {
4
+ checkpoint_id?: string;
5
+ search?: string;
6
+ }
7
+ export interface IExitCheckpointVehicleColumnsFiltersWithPaginationFilters extends IExitCheckpointVehicleColumnsFilters, IPaginationFilters {
8
+ }
9
+ export interface IExitCheckpointKpiCardsResponse {
10
+ vehicles_in_today: number;
11
+ vehicles_out_today: number;
12
+ vehicles_completed_this_month: number;
13
+ vehicles_completed_all_time: number;
14
+ }
15
+ interface IExitCheckpointVehicleBase {
16
+ ves_id: string;
17
+ ves_no: string;
18
+ vehicle_no: string;
19
+ vendor_name: string | null;
20
+ store_location_id: string;
21
+ store_location_name: string;
22
+ supplier_invoice_status: SUPPLIER_INVOICE_STATUS | null;
23
+ }
24
+ export interface IExitCheckpointExpectedVehicleUnit extends IExitCheckpointVehicleBase {
25
+ checkpoint_exited_at: string | null;
26
+ origin_checkpoint_name: string | null;
27
+ }
28
+ export interface IExitCheckpointInMarkedVehicleUnit extends IExitCheckpointVehicleBase {
29
+ in_marked_at: string;
30
+ waiting_duration_ms: number;
31
+ }
32
+ export interface IExitCheckpointOutPendingVehicleUnit extends IExitCheckpointVehicleBase {
33
+ in_marked_at: string;
34
+ plant_gate_out_at: string;
35
+ waiting_duration_ms: number;
36
+ grn_done: boolean;
37
+ }
38
+ export interface IExitCheckpointVehicleColumnsResponse {
39
+ expected: IExitCheckpointExpectedVehicleUnit[];
40
+ in_marked: IExitCheckpointInMarkedVehicleUnit[];
41
+ out_pending: IExitCheckpointOutPendingVehicleUnit[];
42
+ page: number;
43
+ limit: number;
44
+ total: number;
45
+ }
46
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,60 @@
1
+ import { SUPPLIER_INVOICE_STATUS } from "../../supplierInvoice.typings";
2
+ import { IPaginationFilters } from "../../common/paginationFilters.typings";
3
+ export interface IGateKpiCardsResponse {
4
+ gi_made_today: number;
5
+ gi_made_this_month: number;
6
+ gi_made_till_now: number;
7
+ gi_pending_erp_sync: number;
8
+ ves_marked_as_in: number;
9
+ ves_pending_gi: number;
10
+ }
11
+ export interface IGateVehicleColumnsFilters {
12
+ store_location_id?: string;
13
+ gate_id?: string;
14
+ search?: string;
15
+ }
16
+ export interface IGateVehicleColumnsFiltersWithPagination extends IGateVehicleColumnsFilters, IPaginationFilters {
17
+ }
18
+ interface IGateVehicleBase {
19
+ ves_id: string;
20
+ ves_no: string;
21
+ vehicle_no: string;
22
+ vendor_name: string | null;
23
+ store_location_id: string;
24
+ store_location_name: string;
25
+ supplier_invoice_status: SUPPLIER_INVOICE_STATUS | null;
26
+ }
27
+ export interface IGateArrivedVehicleUnit extends IGateVehicleBase {
28
+ arrived_at: string;
29
+ waiting_duration_ms: number;
30
+ }
31
+ export interface IGateRequestedVehicleUnit extends IGateVehicleBase {
32
+ arrived_at: string;
33
+ requested_at: string;
34
+ waiting_duration_ms: number;
35
+ }
36
+ export interface IGateInMarkedVehicleUnit extends IGateVehicleBase {
37
+ in_marked_at: string | null;
38
+ waiting_duration_ms: number | null;
39
+ }
40
+ export interface IGateGIMadeVehicleUnit extends IGateInMarkedVehicleUnit {
41
+ grn_id: string;
42
+ grn_no: string;
43
+ grn_status: string;
44
+ grn_created_at: string;
45
+ }
46
+ export interface IGatePlantUnit {
47
+ store_location_id: string;
48
+ store_location_name: string;
49
+ }
50
+ export interface IGateVehicleColumnsResponse {
51
+ plant: IGatePlantUnit | null;
52
+ arrived: IGateArrivedVehicleUnit[];
53
+ requested_at_store: IGateRequestedVehicleUnit[];
54
+ in_marked: IGateInMarkedVehicleUnit[];
55
+ gi_made: IGateGIMadeVehicleUnit[];
56
+ page: number;
57
+ limit: number;
58
+ total: number;
59
+ }
60
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,55 @@
1
+ import { SUPPLIER_INVOICE_STATUS } from "../../supplierInvoice.typings";
2
+ import { IPaginationFilters } from "../../common/paginationFilters.typings";
3
+ export interface IGateOpsKpiCardsResponse {
4
+ verified_invoice_count: number;
5
+ recorded_invoice_count: number;
6
+ invalid_invoice_count: number;
7
+ total_ves_recorded_count: number;
8
+ }
9
+ export interface IGateOpsExpectedVehicleUnit {
10
+ asn_id: string;
11
+ vehicle_no: string;
12
+ vendor_name: string | null;
13
+ store_location_id: string;
14
+ store_location_name: string;
15
+ estimated_delivery_date: string | null;
16
+ is_delayed: boolean;
17
+ delayed_by_ms?: number;
18
+ }
19
+ export interface IGateOpsParkedVehicleUnit {
20
+ ves_id: string;
21
+ ves_no: string;
22
+ vehicle_no: string;
23
+ vendor_name: string | null;
24
+ store_location_id: string;
25
+ store_location_name: string;
26
+ arrived_at: string;
27
+ waiting_duration_ms: number;
28
+ supplier_invoice_status: SUPPLIER_INVOICE_STATUS | null;
29
+ }
30
+ export interface IGateOpsRequestedVehicleUnit {
31
+ ves_id: string;
32
+ ves_no: string;
33
+ vehicle_no: string;
34
+ vendor_name: string | null;
35
+ store_location_id: string;
36
+ store_location_name: string;
37
+ arrived_at: string;
38
+ requested_at: string | null;
39
+ waiting_duration_ms: number;
40
+ supplier_invoice_status: SUPPLIER_INVOICE_STATUS | null;
41
+ }
42
+ export interface IGateOpsVehicleColumnsResponse {
43
+ expected: IGateOpsExpectedVehicleUnit[];
44
+ parked: IGateOpsParkedVehicleUnit[];
45
+ requested: IGateOpsRequestedVehicleUnit[];
46
+ page: number;
47
+ limit: number;
48
+ total: number;
49
+ }
50
+ export interface IGateOpsKPICommonFilters {
51
+ checkpoint_id?: string | null;
52
+ search?: string | null;
53
+ }
54
+ export interface IGateOpsVehicleColumnsFiltersWithPagination extends IGateOpsKPICommonFilters, IPaginationFilters {
55
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "18.22.5",
3
+ "version": "18.23.1",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",