kcommons 14.0.1 → 14.1.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.
@@ -112,10 +112,12 @@ export declare enum COMPANY_ROUTE_IDS {
112
112
  CMP_VDR_ONB_REQ = "CMP_VDR_ONB_REQ",
113
113
  CHKPT_VIEW = "CHKPT_VIEW",
114
114
  CHKPT_LST = "CHKPT_LST",
115
- VES_LST = "VES_LST",
116
- VES_VIEW = "VES_VIEW",
115
+ VES_CP_LST = "VES_CP_LST",
116
+ VES_CP_VIEW = "VES_CP_VIEW",
117
117
  VES_EDT = "VES_EDT",
118
118
  VES_ADD = "VES_ADD",
119
+ VES_SL_LST = "VES_SL_LST",
120
+ VES_SL_VIEW = "VES_SL_VIEW",
119
121
  OPN_CMPNY_VDR_APPR = "OPN_CMPNY_VDR_APPR",
120
122
  OPN_IND_APPR = "OPN_IND_APPR",
121
123
  OPN_MI_APPR = "OPN_MI_APPR",
@@ -578,6 +580,16 @@ export declare const companyNavConfig: {
578
580
  id: COMPANY_ROUTE_IDS;
579
581
  };
580
582
  };
583
+ ves: {
584
+ list: {
585
+ route: string;
586
+ id: COMPANY_ROUTE_IDS;
587
+ };
588
+ view: {
589
+ route: (ves_id: string) => string;
590
+ id: COMPANY_ROUTE_IDS;
591
+ };
592
+ };
581
593
  };
582
594
  purchase: {
583
595
  rfq: {
@@ -108,10 +108,12 @@ var COMPANY_ROUTE_IDS;
108
108
  COMPANY_ROUTE_IDS["CMP_VDR_ONB_REQ"] = "CMP_VDR_ONB_REQ";
109
109
  COMPANY_ROUTE_IDS["CHKPT_VIEW"] = "CHKPT_VIEW";
110
110
  COMPANY_ROUTE_IDS["CHKPT_LST"] = "CHKPT_LST";
111
- COMPANY_ROUTE_IDS["VES_LST"] = "VES_LST";
112
- COMPANY_ROUTE_IDS["VES_VIEW"] = "VES_VIEW";
111
+ COMPANY_ROUTE_IDS["VES_CP_LST"] = "VES_CP_LST";
112
+ COMPANY_ROUTE_IDS["VES_CP_VIEW"] = "VES_CP_VIEW";
113
113
  COMPANY_ROUTE_IDS["VES_EDT"] = "VES_EDT";
114
114
  COMPANY_ROUTE_IDS["VES_ADD"] = "VES_ADD";
115
+ COMPANY_ROUTE_IDS["VES_SL_LST"] = "VES_SL_LST";
116
+ COMPANY_ROUTE_IDS["VES_SL_VIEW"] = "VES_SL_VIEW";
115
117
  // For Open Approvals
116
118
  COMPANY_ROUTE_IDS["OPN_CMPNY_VDR_APPR"] = "OPN_CMPNY_VDR_APPR";
117
119
  COMPANY_ROUTE_IDS["OPN_IND_APPR"] = "OPN_IND_APPR";
@@ -596,6 +598,16 @@ exports.companyNavConfig = {
596
598
  id: COMPANY_ROUTE_IDS.ST_ASN_VIEW,
597
599
  },
598
600
  },
601
+ ves: {
602
+ list: {
603
+ route: `/store/ves?route_id=${COMPANY_ROUTE_IDS.VES_SL_LST}`,
604
+ id: COMPANY_ROUTE_IDS.VES_SL_LST,
605
+ },
606
+ view: {
607
+ route: (ves_id) => `/store/ves/${ves_id}/view?route_id=${COMPANY_ROUTE_IDS.VES_SL_VIEW}`,
608
+ id: COMPANY_ROUTE_IDS.VES_SL_VIEW,
609
+ },
610
+ },
599
611
  },
600
612
  purchase: {
601
613
  rfq: {
@@ -768,20 +780,20 @@ exports.companyNavConfig = {
768
780
  checkpoint: {
769
781
  ves: {
770
782
  list: {
771
- route: `/checkpoint/ves?route_id=${COMPANY_ROUTE_IDS.VES_LST}`,
772
- id: COMPANY_ROUTE_IDS.VES_LST,
783
+ route: `/checkpoint/ves?route_id=${COMPANY_ROUTE_IDS.VES_CP_LST}`,
784
+ id: COMPANY_ROUTE_IDS.VES_CP_LST,
773
785
  },
774
786
  add: {
775
787
  route: `/checkpoint/ves/add?route_id=${COMPANY_ROUTE_IDS.VES_ADD}`,
776
788
  id: COMPANY_ROUTE_IDS.VES_ADD,
777
789
  },
778
790
  edit: {
779
- route: (ves_id) => `/checkpoint/ves/${ves_id}/edit?route_id=${COMPANY_ROUTE_IDS.VES_LST}`,
791
+ route: (ves_id) => `/checkpoint/ves/${ves_id}/edit?route_id=${COMPANY_ROUTE_IDS.VES_CP_LST}`,
780
792
  id: COMPANY_ROUTE_IDS.VES_EDT,
781
793
  },
782
794
  view: {
783
- route: (ves_id) => `/checkpoint/ves/${ves_id}/view?route_id=${COMPANY_ROUTE_IDS.VES_VIEW}`,
784
- id: COMPANY_ROUTE_IDS.VES_VIEW,
795
+ route: (ves_id) => `/checkpoint/ves/${ves_id}/view?route_id=${COMPANY_ROUTE_IDS.VES_CP_VIEW}`,
796
+ id: COMPANY_ROUTE_IDS.VES_CP_VIEW,
785
797
  },
786
798
  },
787
799
  },
package/build/index.d.ts CHANGED
@@ -63,6 +63,7 @@ export * from "./typings/company/settings/companySettings.typings";
63
63
  export * from "./typings/company/settings/comanyVendorSettings.typings";
64
64
  export * from "./typings/company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
65
65
  export * from "./typings/company/masters/itemManagementbody.typings";
66
+ export * from "./typings/company/_junctions/vesCheckpointTracking.typings";
66
67
  export * from "./typings/common/address.typings";
67
68
  export * from "./typings/common/paginationFilters.typings";
68
69
  export * from "./typings/common/uploadMedia.typings";
package/build/index.js CHANGED
@@ -82,6 +82,7 @@ __exportStar(require("./typings/company/settings/companySettings.typings"), expo
82
82
  __exportStar(require("./typings/company/settings/comanyVendorSettings.typings"), exports);
83
83
  __exportStar(require("./typings/company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings"), exports);
84
84
  __exportStar(require("./typings/company/masters/itemManagementbody.typings"), exports);
85
+ __exportStar(require("./typings/company/_junctions/vesCheckpointTracking.typings"), exports);
85
86
  // Commons
86
87
  __exportStar(require("./typings/common/address.typings"), exports);
87
88
  __exportStar(require("./typings/common/paginationFilters.typings"), exports);
@@ -0,0 +1,33 @@
1
+ import { IPaginationFilters } from "../../common/paginationFilters.typings";
2
+ import { INestedCheckpoint } from "../masters/checkpoints.typings";
3
+ import { INestedVES } from "../masters/ves.typings";
4
+ import { INestedUser } from "../../user.typings";
5
+ export declare enum VES_CHECKPOINT_TRACKING_INCLUDE {
6
+ ves = "ves",
7
+ checkpoint = "checkpoint",
8
+ recorded_by_user = "recorded_by_user"
9
+ }
10
+ export declare enum VES_CHECKPOINT_RECORD_TYPE {
11
+ IN_TIME = "IN_TIME",
12
+ OUT_TIME = "OUT_TIME"
13
+ }
14
+ export interface IVESCheckpointTrackingFilters extends Partial<Pick<IVESCheckpointTracking, "checkpoint_id" | "ves_id">> {
15
+ }
16
+ export interface IVESCheckpointTrackingFiltersWithPagination extends IVESCheckpointTrackingFilters, IPaginationFilters {
17
+ }
18
+ export interface IVESCheckpointTracking {
19
+ id: string;
20
+ ves_id: string;
21
+ checkpoint_id: string;
22
+ recorded_by_user_id: string;
23
+ record_type: VES_CHECKPOINT_RECORD_TYPE;
24
+ timestamp: Date;
25
+ remark: string | null;
26
+ created_at: Date;
27
+ updated_at: Date;
28
+ ves: INestedVES | null;
29
+ checkpoint: INestedCheckpoint | null;
30
+ recorded_by_user: INestedUser | null;
31
+ }
32
+ export interface INestedVESCheckpointTracking extends Omit<IVESCheckpointTracking, "ves" | "checkpoint" | "recorded_by_user"> {
33
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VES_CHECKPOINT_RECORD_TYPE = exports.VES_CHECKPOINT_TRACKING_INCLUDE = void 0;
4
+ var VES_CHECKPOINT_TRACKING_INCLUDE;
5
+ (function (VES_CHECKPOINT_TRACKING_INCLUDE) {
6
+ VES_CHECKPOINT_TRACKING_INCLUDE["ves"] = "ves";
7
+ VES_CHECKPOINT_TRACKING_INCLUDE["checkpoint"] = "checkpoint";
8
+ VES_CHECKPOINT_TRACKING_INCLUDE["recorded_by_user"] = "recorded_by_user";
9
+ })(VES_CHECKPOINT_TRACKING_INCLUDE || (exports.VES_CHECKPOINT_TRACKING_INCLUDE = VES_CHECKPOINT_TRACKING_INCLUDE = {}));
10
+ var VES_CHECKPOINT_RECORD_TYPE;
11
+ (function (VES_CHECKPOINT_RECORD_TYPE) {
12
+ VES_CHECKPOINT_RECORD_TYPE["IN_TIME"] = "IN_TIME";
13
+ VES_CHECKPOINT_RECORD_TYPE["OUT_TIME"] = "OUT_TIME";
14
+ })(VES_CHECKPOINT_RECORD_TYPE || (exports.VES_CHECKPOINT_RECORD_TYPE = VES_CHECKPOINT_RECORD_TYPE = {}));
@@ -2,10 +2,13 @@ import { IPaginationFilters } from "../../common/paginationFilters.typings";
2
2
  import { INestedCompany } from "../../company.typings";
3
3
  import { INestedDepartment } from "../../department.typings";
4
4
  import { INestedRole } from "../../roles.typings";
5
+ import { INestedStoreLocation } from "../../storeLocation.typings";
5
6
  import { INestedUser } from "../../user.typings";
7
+ import { INestedVESCheckpointTracking } from "../_junctions/vesCheckpointTracking.typings";
6
8
  import { INestedVES } from "./ves.typings";
7
9
  export interface ICheckpointFilters extends Partial<Pick<ICheckpoints, "is_enabled" | "checkpoint_type">> {
8
10
  name?: string;
11
+ linked_store_location_id?: string;
9
12
  created_by_logged_in_user?: boolean;
10
13
  include?: CHECKPOINT_INCLUDE[];
11
14
  }
@@ -34,8 +37,10 @@ export interface ICheckpoints {
34
37
  departments: INestedDepartment[] | null;
35
38
  ves_created_at_checkpoint: INestedVES[] | null;
36
39
  ves_directed_at_checkpoint: INestedVES[] | null;
40
+ linked_store_locations: INestedStoreLocation[] | null;
41
+ ves_passed_through_checkpoint: INestedVESCheckpointTracking[] | null;
37
42
  }
38
- export interface INestedCheckpoint extends Omit<ICheckpoints, "company" | "created_by_user" | "last_updated_by_user" | "roles" | "departments" | "ves_created_at_checkpoint" | "ves_directed_at_checkpoint"> {
43
+ export interface INestedCheckpoint extends Omit<ICheckpoints, "company" | "created_by_user" | "last_updated_by_user" | "roles" | "departments" | "ves_created_at_checkpoint" | "ves_directed_at_checkpoint" | "linked_store_locations" | "ves_passed_through_checkpoint"> {
39
44
  }
40
45
  /** --- ENUMS--- */
41
46
  export declare enum CHECKPOINT_INCLUDE {
@@ -45,7 +50,9 @@ export declare enum CHECKPOINT_INCLUDE {
45
50
  roles = "roles",
46
51
  departments = "departments",
47
52
  ves_created_at_checkpoint = "ves_created_at_checkpoint",
48
- ves_directed_at_checkpoint = "ves_directed_at_checkpoint"
53
+ ves_directed_at_checkpoint = "ves_directed_at_checkpoint",
54
+ linked_store_locations = "linked_store_locations",
55
+ ves_passed_through_checkpoint = "ves_passed_through_checkpoint"
49
56
  }
50
57
  export declare enum CHECKPOINT_TYPE {
51
58
  ENTRY = "ENTRY",
@@ -11,6 +11,8 @@ var CHECKPOINT_INCLUDE;
11
11
  CHECKPOINT_INCLUDE["departments"] = "departments";
12
12
  CHECKPOINT_INCLUDE["ves_created_at_checkpoint"] = "ves_created_at_checkpoint";
13
13
  CHECKPOINT_INCLUDE["ves_directed_at_checkpoint"] = "ves_directed_at_checkpoint";
14
+ CHECKPOINT_INCLUDE["linked_store_locations"] = "linked_store_locations";
15
+ CHECKPOINT_INCLUDE["ves_passed_through_checkpoint"] = "ves_passed_through_checkpoint";
14
16
  })(CHECKPOINT_INCLUDE || (exports.CHECKPOINT_INCLUDE = CHECKPOINT_INCLUDE = {}));
15
17
  var CHECKPOINT_TYPE;
16
18
  (function (CHECKPOINT_TYPE) {
@@ -5,8 +5,13 @@ import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.
5
5
  import { INestedPo } from "../../po.typings";
6
6
  import { INestedStoreLocation } from "../../storeLocation.typings";
7
7
  import { INestedUser } from "../../user.typings";
8
+ import { INestedVESCheckpointTracking } from "../_junctions/vesCheckpointTracking.typings";
8
9
  import { INestedCheckpoint } from "./checkpoints.typings";
9
10
  import { INestedVESItem } from "./vesItem.typings";
11
+ export declare enum VES_REQUESTING_ENTITY_TYPE {
12
+ STORE_LOCATION = "store_location",
13
+ CHECKPOINT = "checkpoint"
14
+ }
10
15
  export declare enum VES_PARENT_DOCUMENT_TYPE {
11
16
  ASN = "ASN",
12
17
  PO = "PO"
@@ -35,9 +40,14 @@ export declare enum VES_INCLUDE {
35
40
  parent_asn = "parent_asn",
36
41
  items = "items",
37
42
  store_location_approval_chain = "store_location_approval_chain",
38
- take_on_approval_by_user = "take_on_approval_by_user"
43
+ take_on_approval_by_user = "take_on_approval_by_user",
44
+ checkpoint_trail = "checkpoint_trail"
39
45
  }
40
- export interface IVESFilters extends Partial<Pick<IVES, "created_at_checkpoint_id" | "directed_to_checkpoint_id" | "parent_document_type" | "target_store_location_id" | "was_sent_to_store_location_without_confirmation">> {
46
+ export interface IVESFilters {
47
+ ves_requesting_entity_type: VES_REQUESTING_ENTITY_TYPE;
48
+ parent_document_type?: VES_PARENT_DOCUMENT_TYPE | null;
49
+ status?: VES_STATUS | null;
50
+ was_sent_to_store_location_without_confirmation?: boolean | null;
41
51
  name?: string | null;
42
52
  include?: VES_INCLUDE[];
43
53
  }
@@ -79,6 +89,7 @@ export interface IVES {
79
89
  parent_asn: INestedASN | null;
80
90
  items: INestedVESItem[] | null;
81
91
  store_location_approval_chain: INestedEntityApprovalChainEntry[] | null;
92
+ checkpoint_trail: INestedVESCheckpointTracking[] | null;
82
93
  }
83
- export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "items" | "store_location_approval_chain"> {
94
+ export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "items" | "store_location_approval_chain" | "checkpoint_trail"> {
84
95
  }
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VES_INCLUDE = exports.VES_STATUS = exports.VES_VIEW_TABS = exports.VES_PARENT_DOCUMENT_TYPE = void 0;
3
+ exports.VES_INCLUDE = exports.VES_STATUS = exports.VES_VIEW_TABS = exports.VES_PARENT_DOCUMENT_TYPE = exports.VES_REQUESTING_ENTITY_TYPE = void 0;
4
+ var VES_REQUESTING_ENTITY_TYPE;
5
+ (function (VES_REQUESTING_ENTITY_TYPE) {
6
+ VES_REQUESTING_ENTITY_TYPE["STORE_LOCATION"] = "store_location";
7
+ VES_REQUESTING_ENTITY_TYPE["CHECKPOINT"] = "checkpoint";
8
+ })(VES_REQUESTING_ENTITY_TYPE || (exports.VES_REQUESTING_ENTITY_TYPE = VES_REQUESTING_ENTITY_TYPE = {}));
4
9
  var VES_PARENT_DOCUMENT_TYPE;
5
10
  (function (VES_PARENT_DOCUMENT_TYPE) {
6
11
  VES_PARENT_DOCUMENT_TYPE["ASN"] = "ASN";
@@ -34,4 +39,5 @@ var VES_INCLUDE;
34
39
  VES_INCLUDE["items"] = "items";
35
40
  VES_INCLUDE["store_location_approval_chain"] = "store_location_approval_chain";
36
41
  VES_INCLUDE["take_on_approval_by_user"] = "take_on_approval_by_user";
42
+ VES_INCLUDE["checkpoint_trail"] = "checkpoint_trail";
37
43
  })(VES_INCLUDE || (exports.VES_INCLUDE = VES_INCLUDE = {}));
@@ -7,6 +7,9 @@ export declare enum VES_ITEM_INCLUDE {
7
7
  export interface IVesItem {
8
8
  id: string;
9
9
  item_id: string;
10
+ item_name: string;
11
+ code_sku: string;
12
+ uom: string;
10
13
  quantity: number;
11
14
  remarks: string | null;
12
15
  is_deleted: boolean;
@@ -22,6 +22,7 @@ import { INestedIAD } from "./company/iad/iad.typings";
22
22
  import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
23
23
  import { INestedPR } from "./pr.typings";
24
24
  import { INestedVES } from "./company/masters/ves.typings";
25
+ import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
25
26
  export interface IStoreLocationFilters {
26
27
  name?: string;
27
28
  company_id?: string;
@@ -68,8 +69,9 @@ export interface IStoreLocation extends IAddress {
68
69
  iads?: INestedIAD[] | null;
69
70
  inventory_logs?: INestedInventoryLog[] | null;
70
71
  target_location_for_ves?: INestedVES[] | null;
72
+ linked_checkpoints: INestedCheckpoint[] | null;
71
73
  }
72
- export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "prs" | "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" | "as_source_store_location_for_istds" | "as_dest_store_location_for_istds" | "iads" | "inventory_logs" | "target_location_for_ves"> {
74
+ export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "prs" | "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" | "as_source_store_location_for_istds" | "as_dest_store_location_for_istds" | "iads" | "inventory_logs" | "target_location_for_ves" | "linked_checkpoints"> {
73
75
  }
74
76
  export declare enum StoreLocationInclude {
75
77
  company = "company",
@@ -94,5 +96,6 @@ export declare enum StoreLocationInclude {
94
96
  as_dest_store_location_for_istds = "as_dest_store_location_for_istds",
95
97
  iads = "iads",
96
98
  inventory_logs = "inventory_logs",
97
- target_location_for_ves = "target_location_for_ves"
99
+ target_location_for_ves = "target_location_for_ves",
100
+ linked_checkpoints = "linked_checkpoints"
98
101
  }
@@ -26,4 +26,5 @@ var StoreLocationInclude;
26
26
  StoreLocationInclude["iads"] = "iads";
27
27
  StoreLocationInclude["inventory_logs"] = "inventory_logs";
28
28
  StoreLocationInclude["target_location_for_ves"] = "target_location_for_ves";
29
+ StoreLocationInclude["linked_checkpoints"] = "linked_checkpoints";
29
30
  })(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
@@ -42,6 +42,7 @@ import { INestedInvoice } from "./invoices.typings";
42
42
  import { INestedFormRolback } from "./vendor/vendorFormRollbackRemark.typings";
43
43
  import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
44
44
  import { INestedVES } from "./company/masters/ves.typings";
45
+ import { INestedVESCheckpointTracking } from "./company/_junctions/vesCheckpointTracking.typings";
45
46
  export interface IUser {
46
47
  id: string;
47
48
  is_enabled?: boolean | null;
@@ -178,8 +179,9 @@ export interface IUser {
178
179
  ves_created_by_user: INestedVES[] | null;
179
180
  ves_last_updated_by_user: INestedVES[] | null;
180
181
  take_on_approval_for_ves: INestedVES[] | null;
182
+ time_records_at_checkpoint: INestedVESCheckpointTracking[] | null;
181
183
  }
182
- export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "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" | "approval_chains" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "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" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "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" | "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" | "items_last_updated_by_user" | "company_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" | "logs" | "vendor_onboarding_requests_created_by_user" | "vendor_onboarding_requests_last_updated" | "vendor_onboarding_requests_sent_for_approval" | "invitation_sent_for_vendor_onboarding_requests" | "created_vendor_management_bodies" | "last_updated_vendor_management_bodies" | "head_of_vendor_management_bodies" | "cancelled_vendor_onboarding_requests" | "company_vendor_created_by_user" | "company_vendors_last_updated_by_user" | "sent_for_approval_company_vendors" | "sent_questions_to_company_vendors" | "cancelled_company_vendors" | "created_vendor_onboarding_request_categories" | "last_updated_vendor_onboarding_request_categories" | "created_item_management_bodies" | "last_updated_item_management_bodies" | "as_head_of_item_management_bodies" | "created_items" | "items_sent_for_approval" | "cancelled_items" | "invoices_marked_as_paid_or_rejected" | "onboarded_company_vendors" | "created_indents" | "rollback_forms_by_user" | "asns_sent_to_vendor_by_user" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "ves_created_by_user" | "ves_last_updated_by_user" | "take_on_approval_for_ves"> {
184
+ export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "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" | "approval_chains" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "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" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "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" | "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" | "items_last_updated_by_user" | "company_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" | "logs" | "vendor_onboarding_requests_created_by_user" | "vendor_onboarding_requests_last_updated" | "vendor_onboarding_requests_sent_for_approval" | "invitation_sent_for_vendor_onboarding_requests" | "created_vendor_management_bodies" | "last_updated_vendor_management_bodies" | "head_of_vendor_management_bodies" | "cancelled_vendor_onboarding_requests" | "company_vendor_created_by_user" | "company_vendors_last_updated_by_user" | "sent_for_approval_company_vendors" | "sent_questions_to_company_vendors" | "cancelled_company_vendors" | "created_vendor_onboarding_request_categories" | "last_updated_vendor_onboarding_request_categories" | "created_item_management_bodies" | "last_updated_item_management_bodies" | "as_head_of_item_management_bodies" | "created_items" | "items_sent_for_approval" | "cancelled_items" | "invoices_marked_as_paid_or_rejected" | "onboarded_company_vendors" | "created_indents" | "rollback_forms_by_user" | "asns_sent_to_vendor_by_user" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "ves_created_by_user" | "ves_last_updated_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint"> {
183
185
  }
184
186
  export declare enum UserInclude {
185
187
  subordinates = "subordinates",
@@ -292,7 +294,8 @@ export declare enum UserInclude {
292
294
  checkpoints_last_updated_by_user = "checkpoints_last_updated_by_user",
293
295
  ves_created_by_user = "ves_created_by_user",
294
296
  ves_last_updated_by_user = "ves_last_updated_by_user",
295
- take_on_approval_for_ves = "take_on_approval_for_ves"
297
+ take_on_approval_for_ves = "take_on_approval_for_ves",
298
+ time_records_at_checkpoint = "time_records_at_checkpoint"
296
299
  }
297
300
  export interface IUserFilters {
298
301
  name?: string | null;
@@ -116,4 +116,5 @@ var UserInclude;
116
116
  UserInclude["ves_created_by_user"] = "ves_created_by_user";
117
117
  UserInclude["ves_last_updated_by_user"] = "ves_last_updated_by_user";
118
118
  UserInclude["take_on_approval_for_ves"] = "take_on_approval_for_ves";
119
+ UserInclude["time_records_at_checkpoint"] = "time_records_at_checkpoint";
119
120
  })(UserInclude || (exports.UserInclude = UserInclude = {}));
@@ -77,6 +77,7 @@ describe("Get Contact Person", () => {
77
77
  ves_created_by_user: null,
78
78
  ves_last_updated_by_user: null,
79
79
  take_on_approval_for_ves: null,
80
+ time_records_at_checkpoint: null,
80
81
  };
81
82
  const contact_person = {
82
83
  id: "",
@@ -181,6 +182,7 @@ describe("Get Contact Person", () => {
181
182
  ves_created_by_user: null,
182
183
  ves_last_updated_by_user: null,
183
184
  take_on_approval_for_ves: null,
185
+ time_records_at_checkpoint: null,
184
186
  };
185
187
  const contact_person = {
186
188
  id: "CP-001",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "14.0.1",
3
+ "version": "14.1.1",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",