kcommons 14.1.1 → 14.2.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.
|
@@ -27,7 +27,8 @@ export declare enum VES_STATUS {
|
|
|
27
27
|
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
28
28
|
REQUESTED_AT_SHIPPING_LOCATION = "REQUESTED_AT_SHIPPING_LOCATION",
|
|
29
29
|
IN_TRANSIT = "IN_TRANSIT",
|
|
30
|
-
EXITED = "EXITED"
|
|
30
|
+
EXITED = "EXITED",
|
|
31
|
+
CANCELLED = "CANCELLED"
|
|
31
32
|
}
|
|
32
33
|
export declare enum VES_INCLUDE {
|
|
33
34
|
company = "company",
|
|
@@ -36,6 +37,7 @@ export declare enum VES_INCLUDE {
|
|
|
36
37
|
last_updated_by_user = "last_updated_by_user",
|
|
37
38
|
created_at_checkpoint = "created_at_checkpoint",
|
|
38
39
|
directed_to_checkpoint = "directed_to_checkpoint",
|
|
40
|
+
cancelled_by_user = "cancelled_by_user",
|
|
39
41
|
parent_po = "parent_po",
|
|
40
42
|
parent_asn = "parent_asn",
|
|
41
43
|
items = "items",
|
|
@@ -61,6 +63,7 @@ export interface IVES {
|
|
|
61
63
|
target_store_location_id: string;
|
|
62
64
|
last_updated_by_user_id: string;
|
|
63
65
|
created_by_user_id: string;
|
|
66
|
+
cancelled_by_user_id: string | null;
|
|
64
67
|
take_on_approval_by_user_id: string | null;
|
|
65
68
|
created_at_checkpoint_id: string;
|
|
66
69
|
directed_to_checkpoint_id: string;
|
|
@@ -68,12 +71,14 @@ export interface IVES {
|
|
|
68
71
|
parent_asn_id: string | null;
|
|
69
72
|
status: VES_STATUS;
|
|
70
73
|
remarks: string | null;
|
|
74
|
+
cancellation_remark: string | null;
|
|
71
75
|
driver_name: string;
|
|
72
76
|
driver_contact: string;
|
|
73
77
|
vehicle_no: string;
|
|
74
78
|
invoice_no: string;
|
|
75
79
|
was_sent_to_store_location_without_confirmation: boolean;
|
|
76
80
|
is_deleted: boolean;
|
|
81
|
+
cancelled_at: string | null;
|
|
77
82
|
deleted_at: string | null;
|
|
78
83
|
take_on_approval_at: string | null;
|
|
79
84
|
created_at: string;
|
|
@@ -81,6 +86,7 @@ export interface IVES {
|
|
|
81
86
|
company: INestedCompany | null;
|
|
82
87
|
target_store_location: INestedStoreLocation | null;
|
|
83
88
|
created_by_user: INestedUser | null;
|
|
89
|
+
cancelled_by_user: INestedUser | null;
|
|
84
90
|
last_updated_by_user: INestedUser | null;
|
|
85
91
|
take_on_approval_by_user: INestedUser | null;
|
|
86
92
|
created_at_checkpoint: INestedCheckpoint | null;
|
|
@@ -91,5 +97,5 @@ export interface IVES {
|
|
|
91
97
|
store_location_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
92
98
|
checkpoint_trail: INestedVESCheckpointTracking[] | null;
|
|
93
99
|
}
|
|
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"> {
|
|
100
|
+
export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "cancelled_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "items" | "store_location_approval_chain" | "checkpoint_trail"> {
|
|
95
101
|
}
|
|
@@ -25,6 +25,7 @@ var VES_STATUS;
|
|
|
25
25
|
VES_STATUS["REQUESTED_AT_SHIPPING_LOCATION"] = "REQUESTED_AT_SHIPPING_LOCATION";
|
|
26
26
|
VES_STATUS["IN_TRANSIT"] = "IN_TRANSIT";
|
|
27
27
|
VES_STATUS["EXITED"] = "EXITED";
|
|
28
|
+
VES_STATUS["CANCELLED"] = "CANCELLED";
|
|
28
29
|
})(VES_STATUS || (exports.VES_STATUS = VES_STATUS = {}));
|
|
29
30
|
var VES_INCLUDE;
|
|
30
31
|
(function (VES_INCLUDE) {
|
|
@@ -34,6 +35,7 @@ var VES_INCLUDE;
|
|
|
34
35
|
VES_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
35
36
|
VES_INCLUDE["created_at_checkpoint"] = "created_at_checkpoint";
|
|
36
37
|
VES_INCLUDE["directed_to_checkpoint"] = "directed_to_checkpoint";
|
|
38
|
+
VES_INCLUDE["cancelled_by_user"] = "cancelled_by_user";
|
|
37
39
|
VES_INCLUDE["parent_po"] = "parent_po";
|
|
38
40
|
VES_INCLUDE["parent_asn"] = "parent_asn";
|
|
39
41
|
VES_INCLUDE["items"] = "items";
|
|
@@ -179,9 +179,10 @@ export interface IUser {
|
|
|
179
179
|
ves_created_by_user: INestedVES[] | null;
|
|
180
180
|
ves_last_updated_by_user: INestedVES[] | null;
|
|
181
181
|
take_on_approval_for_ves: INestedVES[] | null;
|
|
182
|
+
ves_cancelled_by_user: INestedVES[] | null;
|
|
182
183
|
time_records_at_checkpoint: INestedVESCheckpointTracking[] | null;
|
|
183
184
|
}
|
|
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"> {
|
|
185
|
+
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" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint"> {
|
|
185
186
|
}
|
|
186
187
|
export declare enum UserInclude {
|
|
187
188
|
subordinates = "subordinates",
|
|
@@ -294,6 +295,7 @@ export declare enum UserInclude {
|
|
|
294
295
|
checkpoints_last_updated_by_user = "checkpoints_last_updated_by_user",
|
|
295
296
|
ves_created_by_user = "ves_created_by_user",
|
|
296
297
|
ves_last_updated_by_user = "ves_last_updated_by_user",
|
|
298
|
+
ves_cancelled_by_user = "ves_cancelled_by_user",
|
|
297
299
|
take_on_approval_for_ves = "take_on_approval_for_ves",
|
|
298
300
|
time_records_at_checkpoint = "time_records_at_checkpoint"
|
|
299
301
|
}
|
|
@@ -115,6 +115,7 @@ var UserInclude;
|
|
|
115
115
|
UserInclude["checkpoints_last_updated_by_user"] = "checkpoints_last_updated_by_user";
|
|
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
|
+
UserInclude["ves_cancelled_by_user"] = "ves_cancelled_by_user";
|
|
118
119
|
UserInclude["take_on_approval_for_ves"] = "take_on_approval_for_ves";
|
|
119
120
|
UserInclude["time_records_at_checkpoint"] = "time_records_at_checkpoint";
|
|
120
121
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|
|
@@ -78,6 +78,7 @@ describe("Get Contact Person", () => {
|
|
|
78
78
|
ves_last_updated_by_user: null,
|
|
79
79
|
take_on_approval_for_ves: null,
|
|
80
80
|
time_records_at_checkpoint: null,
|
|
81
|
+
ves_cancelled_by_user: null,
|
|
81
82
|
};
|
|
82
83
|
const contact_person = {
|
|
83
84
|
id: "",
|
|
@@ -183,6 +184,7 @@ describe("Get Contact Person", () => {
|
|
|
183
184
|
ves_last_updated_by_user: null,
|
|
184
185
|
take_on_approval_for_ves: null,
|
|
185
186
|
time_records_at_checkpoint: null,
|
|
187
|
+
ves_cancelled_by_user: null,
|
|
186
188
|
};
|
|
187
189
|
const contact_person = {
|
|
188
190
|
id: "CP-001",
|