kcommons 18.19.9 → 18.19.11
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/constants/companyRoutes.constants.d.ts +98 -0
- package/build/constants/companyRoutes.constants.js +110 -0
- package/build/constants/entityTypes.constants.d.ts +2 -1
- package/build/constants/entityTypes.constants.js +1 -0
- package/build/constants/permission.constants.d.ts +14 -2
- package/build/constants/permission.constants.js +37 -0
- package/build/constants/statuses.constants.d.ts +5 -1
- package/build/constants/statuses.constants.js +4 -0
- package/build/constants/vendorRoutes.constants.d.ts +6 -0
- package/build/constants/vendorRoutes.constants.js +6 -0
- package/build/index.d.ts +13 -0
- package/build/index.js +13 -0
- package/build/typings/approvalConfig.typings.d.ts +7 -3
- package/build/typings/approvalConfig.typings.js +1 -0
- package/build/typings/common/transporterDocumentManualVerificationByCompany.typings.d.ts +25 -0
- package/build/typings/common/transporterDocumentManualVerificationByCompany.typings.js +9 -0
- package/build/typings/common/uploadMedia.typings.d.ts +2 -1
- package/build/typings/common/uploadMedia.typings.js +1 -0
- package/build/typings/company/masters/transporterManagementBody.typings.d.ts +39 -0
- package/build/typings/company/masters/transporterManagementBody.typings.js +12 -0
- package/build/typings/company.typings.d.ts +24 -2
- package/build/typings/company.typings.js +8 -0
- package/build/typings/companyTransporter.typings.d.ts +99 -0
- package/build/typings/companyTransporter.typings.js +42 -0
- package/build/typings/companyTransporterCategory.typings.d.ts +27 -0
- package/build/typings/companyTransporterCategory.typings.js +10 -0
- package/build/typings/contactPeople.typings.d.ts +5 -2
- package/build/typings/contactPeople.typings.js +1 -0
- package/build/typings/department.typings.d.ts +7 -3
- package/build/typings/department.typings.js +1 -0
- package/build/typings/entityApprovalChainEntry.typings.d.ts +23 -3
- package/build/typings/entityApprovalChainEntry.typings.js +8 -0
- package/build/typings/freightComparative.typings.d.ts +97 -0
- package/build/typings/freightComparative.typings.js +40 -0
- package/build/typings/freightComparativeEarlyAccessRequests.typings.d.ts +18 -0
- package/build/typings/freightComparativeEarlyAccessRequests.typings.js +8 -0
- package/build/typings/freightComparativeVehiclesQuantitySplit.typings.d.ts +26 -0
- package/build/typings/freightComparativeVehiclesQuantitySplit.typings.js +10 -0
- package/build/typings/freightOrder.typings.d.ts +246 -0
- package/build/typings/freightOrder.typings.js +67 -0
- package/build/typings/freightQuote.typings.d.ts +155 -0
- package/build/typings/freightQuote.typings.js +28 -0
- package/build/typings/frr.typings.d.ts +189 -0
- package/build/typings/frr.typings.js +58 -0
- package/build/typings/purchaseLocation.typings.d.ts +5 -2
- package/build/typings/purchaseLocation.typings.js +1 -0
- package/build/typings/roles.typings.d.ts +7 -3
- package/build/typings/roles.typings.js +1 -0
- package/build/typings/storeLocation.typings.d.ts +8 -2
- package/build/typings/storeLocation.typings.js +2 -0
- package/build/typings/transporter.typings.d.ts +105 -0
- package/build/typings/transporter.typings.js +17 -0
- package/build/typings/transporterGroup.typings.d.ts +41 -0
- package/build/typings/transporterGroup.typings.js +11 -0
- package/build/typings/user.typings.d.ts +51 -2
- package/build/typings/user.typings.js +19 -0
- package/build/typings/vehicle.typings.d.ts +55 -0
- package/build/typings/vehicle.typings.js +21 -0
- package/build/utils/getContactPerson.util.spec.js +2 -0
- package/package.json +1 -1
|
@@ -5,8 +5,12 @@ import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
|
5
5
|
import { INestedCompany } from "./company.typings";
|
|
6
6
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
7
7
|
import { INestedComparative } from "./comparative.typings";
|
|
8
|
+
import { INestedFreightComparative } from "./freightComparative.typings";
|
|
8
9
|
import { INestedDepartment } from "./department.typings";
|
|
9
10
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
11
|
+
import { INestedFRR } from "./frr.typings";
|
|
12
|
+
import { INestedFreightQuote } from "./freightQuote.typings";
|
|
13
|
+
import { INestedFO } from "./freightOrder.typings";
|
|
10
14
|
import { INestedGate } from "./gate.typings";
|
|
11
15
|
import { INestedGRN } from "./grn.typings";
|
|
12
16
|
import { INestedIndent } from "./indent.typings";
|
|
@@ -20,6 +24,7 @@ import { INestedPR } from "./pr.typings";
|
|
|
20
24
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
21
25
|
import { INestedRFQ } from "./rfq.typings";
|
|
22
26
|
import { INestedRole } from "./roles.typings";
|
|
27
|
+
import { INestedVehicle } from "./vehicle.typings";
|
|
23
28
|
import { INestedExtraFormQuestions } from "./settings/form/extraFormQues.typings";
|
|
24
29
|
import { INestedExtraFormAnswer } from "./settings/form/extraFormAns.typings";
|
|
25
30
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
@@ -56,6 +61,8 @@ import { INestedCompanyCustomer } from "./companyCustomer.typings";
|
|
|
56
61
|
import { INestedCustomerManagementBody } from "./company/masters/customerManagementBody.typings";
|
|
57
62
|
import { INestedComparativeItemsQuantitySplit } from "./comparativeItemQUantitySplit.typings";
|
|
58
63
|
import { INestedComparativeEarlyAccessRequest } from "./comparativeEarlyAccessRequests.typings";
|
|
64
|
+
import { INestedFreightComparativeVehiclesQuantitySplit } from "./freightComparativeVehiclesQuantitySplit.typings";
|
|
65
|
+
import { INestedFreightComparativeEarlyAccessRequest } from "./freightComparativeEarlyAccessRequests.typings";
|
|
59
66
|
import { INestedOtpSecurity } from "./common/otpSecurity.typings";
|
|
60
67
|
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
61
68
|
import { INestedAccountsLocation } from "./accountsLocation.typings";
|
|
@@ -65,6 +72,8 @@ import { INestedQualityClearanceDocument } from "./qcd.typings";
|
|
|
65
72
|
import { INestedAudits } from "./audits.typings";
|
|
66
73
|
import { INestedApprovalComment } from "./approvalComments.typings";
|
|
67
74
|
import { INestedVendorLogs } from "./vendorLogs.typings";
|
|
75
|
+
import { INestedTransporterDocumentManualVerificationByCompany } from "./common/transporterDocumentManualVerificationByCompany.typings";
|
|
76
|
+
import { INestedTransporterGroups } from "./transporterGroup.typings";
|
|
68
77
|
export interface IUser {
|
|
69
78
|
id: string;
|
|
70
79
|
is_enabled?: boolean | null;
|
|
@@ -124,6 +133,13 @@ export interface IUser {
|
|
|
124
133
|
rfqs_sent_for_approval?: null | INestedRFQ[];
|
|
125
134
|
rfqs_sent_to_vendors?: null | INestedRFQ[];
|
|
126
135
|
created_rfq_items?: null | INestedRFQ[];
|
|
136
|
+
created_frrs?: null | INestedFRR[];
|
|
137
|
+
updated_frrs?: null | INestedFRR[];
|
|
138
|
+
as_contact_person_for_frrs?: null | INestedFRR[];
|
|
139
|
+
frrs_sent_for_approval?: null | INestedFRR[];
|
|
140
|
+
frrs_sent_to_transporters?: null | INestedFRR[];
|
|
141
|
+
created_vehicles?: null | INestedVehicle[];
|
|
142
|
+
updated_vehicles?: null | INestedVehicle[];
|
|
127
143
|
assigned_roles?: null | INestedRole[];
|
|
128
144
|
negotiations?: null | INestedNegotiation[];
|
|
129
145
|
created_pos?: null | INestedPo[];
|
|
@@ -142,6 +158,7 @@ export interface IUser {
|
|
|
142
158
|
created_vendor_groups?: INestedVendorGroups[] | null;
|
|
143
159
|
last_updated_vendor_groups?: INestedVendorGroups[] | null;
|
|
144
160
|
comparatives_sent_for_approval?: INestedComparative[] | null;
|
|
161
|
+
freight_comparatives_sent_for_approval?: INestedFreightComparative[] | null;
|
|
145
162
|
user_notifications?: INestedNegotiation[] | null;
|
|
146
163
|
created_extra_quesstions?: INestedExtraFormQuestions[] | null;
|
|
147
164
|
updated_extra_quesstions?: INestedExtraFormQuestions[] | null;
|
|
@@ -251,8 +268,21 @@ export interface IUser {
|
|
|
251
268
|
vendor_logs: INestedVendorLogs[] | null;
|
|
252
269
|
vendor_onboarding_request_rollback_to_initiator: INestedVendorOnboardingRequest[] | null;
|
|
253
270
|
company_vendor_rollback_to_initiator: INestedCompanyVendors[] | null;
|
|
271
|
+
transporter_documents_verified_by_user: INestedTransporterDocumentManualVerificationByCompany[] | null;
|
|
272
|
+
created_transporter_groups?: INestedTransporterGroups[] | null;
|
|
273
|
+
last_updated_transporter_groups?: INestedTransporterGroups[] | null;
|
|
274
|
+
as_contact_person_for_freight_quotes?: INestedFreightQuote[] | null;
|
|
275
|
+
submitted_freight_quote?: INestedFreightQuote[] | null;
|
|
276
|
+
last_updated_freight_quote?: INestedFreightQuote[] | null;
|
|
277
|
+
last_updated_freight_comparative_vehicles_quantity_splits?: INestedFreightComparativeVehiclesQuantitySplit[] | null;
|
|
278
|
+
created_fos?: INestedFO[] | null;
|
|
279
|
+
last_updated_fos?: INestedFO[] | null;
|
|
280
|
+
as_contact_person_for_fos?: INestedFO[] | null;
|
|
281
|
+
fos_sent_for_approval?: INestedFO[] | null;
|
|
282
|
+
fos_sent_to_transporters?: INestedFO[] | null;
|
|
283
|
+
freight_comparative_early_access_requests?: INestedFreightComparativeEarlyAccessRequest[] | null;
|
|
254
284
|
}
|
|
255
|
-
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" | "created_terms_and_conditions" | "last_updated_terms_and_conditions" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "pos_closed_early" | "ves_created_by_user" | "ves_last_updated_by_user" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint" | "created_queue_jobs" | "last_updated_payment_terms" | "created_temporary_worker_form" | "last_updated_temporary_worker_form" | "resolved_mrns" | "created_amended_po_items" | "last_updated_amended_po_items" | "created_sub_pos" | "last_updated_sub_pos" | "sent_for_approval_sub_pos" | "sent_to_vendor_sub_pos" | "created_sub_po_items" | "last_updated_sub_po_items" | "marked_as_deleted_sub_po_items" | "created_item_questions" | "last_updated_item_questions" | "created_rfq_questions" | "last_updated_rfq_questions" | "created_company_customer_categories" | "last_updated_company_customer_categories" | "company_customer_created_by_user" | "company_customer_last_updated_by_user" | "sent_for_approval_company_customer" | "onboarded_company_customer" | "created_customer_management_bodies" | "last_updated_customer_management_bodies" | "head_of_customer_management_bodies" | "last_updated_comparative_items_quantity_splits" | "comparative_early_access_requests" | "otp_security" | "qa_location_incharge" | "accounts_location_incharge" | "vendor_documents_verified_by_user" | "created_supplier_invoice" | "qcd_cancelled" | "qcd_created" | "qcd_last_updated" | "audits_incharge" | "supplier_invoices_marked_as_cancelled" | "supplier_invoices_marked_as_verified" | "approval_comments" | "last_updated_supplier_invoice" | "vendor_logs" | "vendor_onboarding_request_rollback_to_initiator" | "company_vendor_rollback_to_initiator"> {
|
|
285
|
+
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" | "created_frrs" | "updated_frrs" | "as_contact_person_for_frrs" | "frrs_sent_for_approval" | "frrs_sent_to_transporters" | "created_vehicles" | "updated_vehicles" | "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" | "freight_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" | "created_terms_and_conditions" | "last_updated_terms_and_conditions" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "pos_closed_early" | "ves_created_by_user" | "ves_last_updated_by_user" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint" | "created_queue_jobs" | "last_updated_payment_terms" | "created_temporary_worker_form" | "last_updated_temporary_worker_form" | "resolved_mrns" | "created_amended_po_items" | "last_updated_amended_po_items" | "created_sub_pos" | "last_updated_sub_pos" | "sent_for_approval_sub_pos" | "sent_to_vendor_sub_pos" | "created_sub_po_items" | "last_updated_sub_po_items" | "marked_as_deleted_sub_po_items" | "created_item_questions" | "last_updated_item_questions" | "created_rfq_questions" | "last_updated_rfq_questions" | "created_company_customer_categories" | "last_updated_company_customer_categories" | "company_customer_created_by_user" | "company_customer_last_updated_by_user" | "sent_for_approval_company_customer" | "onboarded_company_customer" | "created_customer_management_bodies" | "last_updated_customer_management_bodies" | "head_of_customer_management_bodies" | "last_updated_comparative_items_quantity_splits" | "comparative_early_access_requests" | "otp_security" | "qa_location_incharge" | "accounts_location_incharge" | "vendor_documents_verified_by_user" | "created_supplier_invoice" | "qcd_cancelled" | "qcd_created" | "qcd_last_updated" | "audits_incharge" | "supplier_invoices_marked_as_cancelled" | "supplier_invoices_marked_as_verified" | "approval_comments" | "last_updated_supplier_invoice" | "vendor_logs" | "vendor_onboarding_request_rollback_to_initiator" | "company_vendor_rollback_to_initiator" | "transporter_documents_verified_by_user" | "as_contact_person_for_freight_quotes" | "submitted_freight_quote" | "last_updated_freight_quote" | "last_updated_freight_comparative_vehicles_quantity_splits" | "freight_comparative_early_access_requests" | "created_fos" | "last_updated_fos" | "as_contact_person_for_fos" | "fos_sent_for_approval" | "fos_sent_to_transporters"> {
|
|
256
286
|
}
|
|
257
287
|
export declare enum UserInclude {
|
|
258
288
|
subordinates = "subordinates",
|
|
@@ -297,6 +327,7 @@ export declare enum UserInclude {
|
|
|
297
327
|
last_updated_vendor_groups = "last_updated_vendor_groups",
|
|
298
328
|
active_role = "active_role",
|
|
299
329
|
comparatives_sent_for_approval = "comparatives_sent_for_approval",
|
|
330
|
+
freight_comparatives_sent_for_approval = "freight_comparatives_sent_for_approval",
|
|
300
331
|
user_notifications = "user_notifications",
|
|
301
332
|
created_extra_quesstions = "created_extra_quesstions",
|
|
302
333
|
updated_extra_quesstions = "updated_extra_quesstions",
|
|
@@ -355,6 +386,13 @@ export declare enum UserInclude {
|
|
|
355
386
|
rfqs_sent_for_approval = "rfqs_sent_for_approval",
|
|
356
387
|
rfqs_sent_to_vendors = "rfqs_sent_to_vendors",
|
|
357
388
|
created_rfq_items = "created_rfq_items",
|
|
389
|
+
created_frrs = "created_frrs",
|
|
390
|
+
updated_frrs = "updated_frrs",
|
|
391
|
+
as_contact_person_for_frrs = "as_contact_person_for_frrs",
|
|
392
|
+
frrs_sent_for_approval = "frrs_sent_for_approval",
|
|
393
|
+
frrs_sent_to_transporters = "frrs_sent_to_transporters",
|
|
394
|
+
created_vehicles = "created_vehicles",
|
|
395
|
+
updated_vehicles = "updated_vehicles",
|
|
358
396
|
cancelled_asns = "cancelled_asns",
|
|
359
397
|
created_payment_terms = "created_payment_terms",
|
|
360
398
|
invoices_marked_as_paid_or_rejected = "invoices_marked_as_paid_or_rejected",
|
|
@@ -416,7 +454,18 @@ export declare enum UserInclude {
|
|
|
416
454
|
last_updated_supplier_invoice = "last_updated_supplier_invoice",
|
|
417
455
|
vendor_logs = "vendor_logs",
|
|
418
456
|
vendor_onboarding_request_rollback_to_initiator = "vendor_onboarding_request_rollback_to_initiator",
|
|
419
|
-
company_vendor_rollback_to_initiator = "company_vendor_rollback_to_initiator"
|
|
457
|
+
company_vendor_rollback_to_initiator = "company_vendor_rollback_to_initiator",
|
|
458
|
+
transporter_documents_verified_by_user = "transporter_documents_verified_by_user",
|
|
459
|
+
as_contact_person_for_freight_quotes = "as_contact_person_for_freight_quotes",
|
|
460
|
+
submitted_freight_quote = "submitted_freight_quote",
|
|
461
|
+
last_updated_freight_quote = "last_updated_freight_quote",
|
|
462
|
+
last_updated_freight_comparative_vehicles_quantity_splits = "last_updated_freight_comparative_vehicles_quantity_splits",
|
|
463
|
+
freight_comparative_early_access_requests = "freight_comparative_early_access_requests",
|
|
464
|
+
created_fos = "created_fos",
|
|
465
|
+
last_updated_fos = "last_updated_fos",
|
|
466
|
+
as_contact_person_for_fos = "as_contact_person_for_fos",
|
|
467
|
+
fos_sent_for_approval = "fos_sent_for_approval",
|
|
468
|
+
fos_sent_to_transporters = "fos_sent_to_transporters"
|
|
420
469
|
}
|
|
421
470
|
export interface IUserFilters {
|
|
422
471
|
name?: string | null;
|
|
@@ -45,6 +45,7 @@ var UserInclude;
|
|
|
45
45
|
UserInclude["last_updated_vendor_groups"] = "last_updated_vendor_groups";
|
|
46
46
|
UserInclude["active_role"] = "active_role";
|
|
47
47
|
UserInclude["comparatives_sent_for_approval"] = "comparatives_sent_for_approval";
|
|
48
|
+
UserInclude["freight_comparatives_sent_for_approval"] = "freight_comparatives_sent_for_approval";
|
|
48
49
|
UserInclude["user_notifications"] = "user_notifications";
|
|
49
50
|
UserInclude["created_extra_quesstions"] = "created_extra_quesstions";
|
|
50
51
|
UserInclude["updated_extra_quesstions"] = "updated_extra_quesstions";
|
|
@@ -103,6 +104,13 @@ var UserInclude;
|
|
|
103
104
|
UserInclude["rfqs_sent_for_approval"] = "rfqs_sent_for_approval";
|
|
104
105
|
UserInclude["rfqs_sent_to_vendors"] = "rfqs_sent_to_vendors";
|
|
105
106
|
UserInclude["created_rfq_items"] = "created_rfq_items";
|
|
107
|
+
UserInclude["created_frrs"] = "created_frrs";
|
|
108
|
+
UserInclude["updated_frrs"] = "updated_frrs";
|
|
109
|
+
UserInclude["as_contact_person_for_frrs"] = "as_contact_person_for_frrs";
|
|
110
|
+
UserInclude["frrs_sent_for_approval"] = "frrs_sent_for_approval";
|
|
111
|
+
UserInclude["frrs_sent_to_transporters"] = "frrs_sent_to_transporters";
|
|
112
|
+
UserInclude["created_vehicles"] = "created_vehicles";
|
|
113
|
+
UserInclude["updated_vehicles"] = "updated_vehicles";
|
|
106
114
|
UserInclude["cancelled_asns"] = "cancelled_asns";
|
|
107
115
|
UserInclude["created_payment_terms"] = "created_payment_terms";
|
|
108
116
|
UserInclude["invoices_marked_as_paid_or_rejected"] = "invoices_marked_as_paid_or_rejected";
|
|
@@ -165,4 +173,15 @@ var UserInclude;
|
|
|
165
173
|
UserInclude["vendor_logs"] = "vendor_logs";
|
|
166
174
|
UserInclude["vendor_onboarding_request_rollback_to_initiator"] = "vendor_onboarding_request_rollback_to_initiator";
|
|
167
175
|
UserInclude["company_vendor_rollback_to_initiator"] = "company_vendor_rollback_to_initiator";
|
|
176
|
+
UserInclude["transporter_documents_verified_by_user"] = "transporter_documents_verified_by_user";
|
|
177
|
+
UserInclude["as_contact_person_for_freight_quotes"] = "as_contact_person_for_freight_quotes";
|
|
178
|
+
UserInclude["submitted_freight_quote"] = "submitted_freight_quote";
|
|
179
|
+
UserInclude["last_updated_freight_quote"] = "last_updated_freight_quote";
|
|
180
|
+
UserInclude["last_updated_freight_comparative_vehicles_quantity_splits"] = "last_updated_freight_comparative_vehicles_quantity_splits";
|
|
181
|
+
UserInclude["freight_comparative_early_access_requests"] = "freight_comparative_early_access_requests";
|
|
182
|
+
UserInclude["created_fos"] = "created_fos";
|
|
183
|
+
UserInclude["last_updated_fos"] = "last_updated_fos";
|
|
184
|
+
UserInclude["as_contact_person_for_fos"] = "as_contact_person_for_fos";
|
|
185
|
+
UserInclude["fos_sent_for_approval"] = "fos_sent_for_approval";
|
|
186
|
+
UserInclude["fos_sent_to_transporters"] = "fos_sent_to_transporters";
|
|
168
187
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedFreightComparativeVehicle } from "./freightComparative.typings";
|
|
4
|
+
import { INestedFreightComparativeVehiclesQuantitySplit } from "./freightComparativeVehiclesQuantitySplit.typings";
|
|
5
|
+
import { INestedFOVehicle } from "./freightOrder.typings";
|
|
6
|
+
import { INestedFRRVehicle } from "./frr.typings";
|
|
7
|
+
import { INestedFreightQuoteVehicle } from "./freightQuote.typings";
|
|
8
|
+
import { INestedUser } from "./user.typings";
|
|
9
|
+
export declare enum VEHICLE_MODE_OF_TRANSPORT {
|
|
10
|
+
AIRWAY = "AIRWAY",
|
|
11
|
+
SEAWAY = "SEAWAY",
|
|
12
|
+
ROADWAY = "ROADWAY",
|
|
13
|
+
RAILWAY = "RAILWAY"
|
|
14
|
+
}
|
|
15
|
+
export declare enum VEHICLE_INCLUDE {
|
|
16
|
+
company = "company",
|
|
17
|
+
created_by_user = "created_by_user",
|
|
18
|
+
updated_by_user = "updated_by_user",
|
|
19
|
+
used_in_frr_vehicles = "used_in_frr_vehicles",
|
|
20
|
+
used_in_freight_quote_vehicles = "used_in_freight_quote_vehicles",
|
|
21
|
+
used_in_freight_comparative_vehicles = "used_in_freight_comparative_vehicles",
|
|
22
|
+
referenced_in_freight_comparative_vehicles_splits = "referenced_in_freight_comparative_vehicles_splits",
|
|
23
|
+
used_in_fo_vehicles = "used_in_fo_vehicles"
|
|
24
|
+
}
|
|
25
|
+
export interface IVehicleFilters {
|
|
26
|
+
name?: string;
|
|
27
|
+
mode_of_transport?: VEHICLE_MODE_OF_TRANSPORT;
|
|
28
|
+
include?: VEHICLE_INCLUDE[];
|
|
29
|
+
}
|
|
30
|
+
export interface IVehicleFiltersWithPagination extends IPaginationFilters, IVehicleFilters {
|
|
31
|
+
}
|
|
32
|
+
export interface IVehicle {
|
|
33
|
+
id: string;
|
|
34
|
+
company_id: string;
|
|
35
|
+
vehicle_type: string;
|
|
36
|
+
mode_of_transport: VEHICLE_MODE_OF_TRANSPORT;
|
|
37
|
+
description?: string | null;
|
|
38
|
+
created_by_user_id: string;
|
|
39
|
+
last_updated_by_user_id?: string | null;
|
|
40
|
+
is_enabled: boolean;
|
|
41
|
+
is_deleted?: boolean | null;
|
|
42
|
+
deleted_at?: string | null;
|
|
43
|
+
created_at?: string | null;
|
|
44
|
+
updated_at?: string | null;
|
|
45
|
+
created_by_user?: INestedUser | null;
|
|
46
|
+
updated_by_user?: INestedUser | null;
|
|
47
|
+
used_in_frr_vehicles?: INestedFRRVehicle[] | null;
|
|
48
|
+
used_in_freight_quote_vehicles?: INestedFreightQuoteVehicle[] | null;
|
|
49
|
+
used_in_freight_comparative_vehicles?: INestedFreightComparativeVehicle[] | null;
|
|
50
|
+
referenced_in_freight_comparative_vehicles_splits?: INestedFreightComparativeVehiclesQuantitySplit[] | null;
|
|
51
|
+
used_in_fo_vehicles?: INestedFOVehicle[] | null;
|
|
52
|
+
company: INestedCompany;
|
|
53
|
+
}
|
|
54
|
+
export interface INestedVehicle extends Omit<IVehicle, "company" | "created_by_user" | "updated_by_user" | "used_in_frr_vehicles" | "used_in_freight_quote_vehicles" | "used_in_freight_comparative_vehicles" | "referenced_in_freight_comparative_vehicles_splits" | "used_in_fo_vehicles"> {
|
|
55
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VEHICLE_INCLUDE = exports.VEHICLE_MODE_OF_TRANSPORT = void 0;
|
|
4
|
+
var VEHICLE_MODE_OF_TRANSPORT;
|
|
5
|
+
(function (VEHICLE_MODE_OF_TRANSPORT) {
|
|
6
|
+
VEHICLE_MODE_OF_TRANSPORT["AIRWAY"] = "AIRWAY";
|
|
7
|
+
VEHICLE_MODE_OF_TRANSPORT["SEAWAY"] = "SEAWAY";
|
|
8
|
+
VEHICLE_MODE_OF_TRANSPORT["ROADWAY"] = "ROADWAY";
|
|
9
|
+
VEHICLE_MODE_OF_TRANSPORT["RAILWAY"] = "RAILWAY";
|
|
10
|
+
})(VEHICLE_MODE_OF_TRANSPORT || (exports.VEHICLE_MODE_OF_TRANSPORT = VEHICLE_MODE_OF_TRANSPORT = {}));
|
|
11
|
+
var VEHICLE_INCLUDE;
|
|
12
|
+
(function (VEHICLE_INCLUDE) {
|
|
13
|
+
VEHICLE_INCLUDE["company"] = "company";
|
|
14
|
+
VEHICLE_INCLUDE["created_by_user"] = "created_by_user";
|
|
15
|
+
VEHICLE_INCLUDE["updated_by_user"] = "updated_by_user";
|
|
16
|
+
VEHICLE_INCLUDE["used_in_frr_vehicles"] = "used_in_frr_vehicles";
|
|
17
|
+
VEHICLE_INCLUDE["used_in_freight_quote_vehicles"] = "used_in_freight_quote_vehicles";
|
|
18
|
+
VEHICLE_INCLUDE["used_in_freight_comparative_vehicles"] = "used_in_freight_comparative_vehicles";
|
|
19
|
+
VEHICLE_INCLUDE["referenced_in_freight_comparative_vehicles_splits"] = "referenced_in_freight_comparative_vehicles_splits";
|
|
20
|
+
VEHICLE_INCLUDE["used_in_fo_vehicles"] = "used_in_fo_vehicles";
|
|
21
|
+
})(VEHICLE_INCLUDE || (exports.VEHICLE_INCLUDE = VEHICLE_INCLUDE = {}));
|
|
@@ -39,6 +39,7 @@ describe("Get Contact Person", () => {
|
|
|
39
39
|
updated_by_user: null,
|
|
40
40
|
company: null,
|
|
41
41
|
referred_pos: null,
|
|
42
|
+
referred_fos: null,
|
|
42
43
|
};
|
|
43
44
|
expect((0, getContactPerson_util_1.getContactPerson)({ contact_person_type, company_user, contact_person })).toStrictEqual({
|
|
44
45
|
contact: "942256XXXX",
|
|
@@ -84,6 +85,7 @@ describe("Get Contact Person", () => {
|
|
|
84
85
|
updated_by_user: null,
|
|
85
86
|
company: null,
|
|
86
87
|
referred_pos: null,
|
|
88
|
+
referred_fos: null,
|
|
87
89
|
};
|
|
88
90
|
expect((0, getContactPerson_util_1.getContactPerson)({ contact_person_type, company_user, contact_person })).toStrictEqual({
|
|
89
91
|
contact: "954508XXXX",
|