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.
Files changed (60) hide show
  1. package/build/constants/companyRoutes.constants.d.ts +98 -0
  2. package/build/constants/companyRoutes.constants.js +110 -0
  3. package/build/constants/entityTypes.constants.d.ts +2 -1
  4. package/build/constants/entityTypes.constants.js +1 -0
  5. package/build/constants/permission.constants.d.ts +14 -2
  6. package/build/constants/permission.constants.js +37 -0
  7. package/build/constants/statuses.constants.d.ts +5 -1
  8. package/build/constants/statuses.constants.js +4 -0
  9. package/build/constants/vendorRoutes.constants.d.ts +6 -0
  10. package/build/constants/vendorRoutes.constants.js +6 -0
  11. package/build/index.d.ts +13 -0
  12. package/build/index.js +13 -0
  13. package/build/typings/approvalConfig.typings.d.ts +7 -3
  14. package/build/typings/approvalConfig.typings.js +1 -0
  15. package/build/typings/common/transporterDocumentManualVerificationByCompany.typings.d.ts +25 -0
  16. package/build/typings/common/transporterDocumentManualVerificationByCompany.typings.js +9 -0
  17. package/build/typings/common/uploadMedia.typings.d.ts +2 -1
  18. package/build/typings/common/uploadMedia.typings.js +1 -0
  19. package/build/typings/company/masters/transporterManagementBody.typings.d.ts +39 -0
  20. package/build/typings/company/masters/transporterManagementBody.typings.js +12 -0
  21. package/build/typings/company.typings.d.ts +24 -2
  22. package/build/typings/company.typings.js +8 -0
  23. package/build/typings/companyTransporter.typings.d.ts +99 -0
  24. package/build/typings/companyTransporter.typings.js +42 -0
  25. package/build/typings/companyTransporterCategory.typings.d.ts +27 -0
  26. package/build/typings/companyTransporterCategory.typings.js +10 -0
  27. package/build/typings/contactPeople.typings.d.ts +5 -2
  28. package/build/typings/contactPeople.typings.js +1 -0
  29. package/build/typings/department.typings.d.ts +7 -3
  30. package/build/typings/department.typings.js +1 -0
  31. package/build/typings/entityApprovalChainEntry.typings.d.ts +23 -3
  32. package/build/typings/entityApprovalChainEntry.typings.js +8 -0
  33. package/build/typings/freightComparative.typings.d.ts +97 -0
  34. package/build/typings/freightComparative.typings.js +40 -0
  35. package/build/typings/freightComparativeEarlyAccessRequests.typings.d.ts +18 -0
  36. package/build/typings/freightComparativeEarlyAccessRequests.typings.js +8 -0
  37. package/build/typings/freightComparativeVehiclesQuantitySplit.typings.d.ts +26 -0
  38. package/build/typings/freightComparativeVehiclesQuantitySplit.typings.js +10 -0
  39. package/build/typings/freightOrder.typings.d.ts +246 -0
  40. package/build/typings/freightOrder.typings.js +67 -0
  41. package/build/typings/freightQuote.typings.d.ts +155 -0
  42. package/build/typings/freightQuote.typings.js +28 -0
  43. package/build/typings/frr.typings.d.ts +189 -0
  44. package/build/typings/frr.typings.js +58 -0
  45. package/build/typings/purchaseLocation.typings.d.ts +5 -2
  46. package/build/typings/purchaseLocation.typings.js +1 -0
  47. package/build/typings/roles.typings.d.ts +7 -3
  48. package/build/typings/roles.typings.js +1 -0
  49. package/build/typings/storeLocation.typings.d.ts +8 -2
  50. package/build/typings/storeLocation.typings.js +2 -0
  51. package/build/typings/transporter.typings.d.ts +105 -0
  52. package/build/typings/transporter.typings.js +17 -0
  53. package/build/typings/transporterGroup.typings.d.ts +41 -0
  54. package/build/typings/transporterGroup.typings.js +11 -0
  55. package/build/typings/user.typings.d.ts +51 -2
  56. package/build/typings/user.typings.js +19 -0
  57. package/build/typings/vehicle.typings.d.ts +55 -0
  58. package/build/typings/vehicle.typings.js +21 -0
  59. package/build/utils/getContactPerson.util.spec.js +2 -0
  60. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FREIGHT_COMPARATIVE_VEHICLE_INCLUDE = exports.FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE = exports.FREIGHT_COMPARATIVE_INCLUDE = exports.FREIGHT_COMPARATIVE_STATUS = void 0;
4
+ var FREIGHT_COMPARATIVE_STATUS;
5
+ (function (FREIGHT_COMPARATIVE_STATUS) {
6
+ FREIGHT_COMPARATIVE_STATUS["DRAFT"] = "DRAFT";
7
+ FREIGHT_COMPARATIVE_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
8
+ FREIGHT_COMPARATIVE_STATUS["APPROVED"] = "APPROVED";
9
+ FREIGHT_COMPARATIVE_STATUS["PROCESSING"] = "PROCESSING";
10
+ FREIGHT_COMPARATIVE_STATUS["CLOSED"] = "CLOSED";
11
+ FREIGHT_COMPARATIVE_STATUS["CANCELLED"] = "CANCELLED";
12
+ FREIGHT_COMPARATIVE_STATUS["PROCESSED"] = "PROCESSED";
13
+ })(FREIGHT_COMPARATIVE_STATUS || (exports.FREIGHT_COMPARATIVE_STATUS = FREIGHT_COMPARATIVE_STATUS = {}));
14
+ var FREIGHT_COMPARATIVE_INCLUDE;
15
+ (function (FREIGHT_COMPARATIVE_INCLUDE) {
16
+ FREIGHT_COMPARATIVE_INCLUDE["company"] = "company";
17
+ FREIGHT_COMPARATIVE_INCLUDE["parent_frr"] = "parent_frr";
18
+ FREIGHT_COMPARATIVE_INCLUDE["sent_for_approval_by_user"] = "sent_for_approval_by_user";
19
+ FREIGHT_COMPARATIVE_INCLUDE["freight_quotes"] = "freight_quotes";
20
+ FREIGHT_COMPARATIVE_INCLUDE["approval_chain"] = "approval_chain";
21
+ FREIGHT_COMPARATIVE_INCLUDE["vehicles"] = "vehicles";
22
+ FREIGHT_COMPARATIVE_INCLUDE["freight_comparative_vehicles_quantity_splits"] = "freight_comparative_vehicles_quantity_splits";
23
+ FREIGHT_COMPARATIVE_INCLUDE["early_view_access_requests"] = "early_view_access_requests";
24
+ FREIGHT_COMPARATIVE_INCLUDE["child_fos"] = "child_fos";
25
+ })(FREIGHT_COMPARATIVE_INCLUDE || (exports.FREIGHT_COMPARATIVE_INCLUDE = FREIGHT_COMPARATIVE_INCLUDE = {}));
26
+ var FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE;
27
+ (function (FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE) {
28
+ FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE["frr_vehicle_data"] = "frr_vehicle_data";
29
+ FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE["early_access_user_data"] = "early_access_user_data";
30
+ FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE["freight_quote_vehicles"] = "freight_quote_vehicles";
31
+ })(FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE || (exports.FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE = FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE = {}));
32
+ // Freight Comparative Vehicles
33
+ var FREIGHT_COMPARATIVE_VEHICLE_INCLUDE;
34
+ (function (FREIGHT_COMPARATIVE_VEHICLE_INCLUDE) {
35
+ FREIGHT_COMPARATIVE_VEHICLE_INCLUDE["company"] = "company";
36
+ FREIGHT_COMPARATIVE_VEHICLE_INCLUDE["freight_comparative"] = "freight_comparative";
37
+ FREIGHT_COMPARATIVE_VEHICLE_INCLUDE["vehicle"] = "vehicle";
38
+ FREIGHT_COMPARATIVE_VEHICLE_INCLUDE["freight_quote_vehicles"] = "freight_quote_vehicles";
39
+ FREIGHT_COMPARATIVE_VEHICLE_INCLUDE["fo_vehicles"] = "fo_vehicles";
40
+ })(FREIGHT_COMPARATIVE_VEHICLE_INCLUDE || (exports.FREIGHT_COMPARATIVE_VEHICLE_INCLUDE = FREIGHT_COMPARATIVE_VEHICLE_INCLUDE = {}));
@@ -0,0 +1,18 @@
1
+ import { INestedFreightComparative } from "./freightComparative.typings";
2
+ import { INestedUser } from "./user.typings";
3
+ export declare enum FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE {
4
+ parent_freight_comparative = "parent_freight_comparative",
5
+ user = "user"
6
+ }
7
+ export interface IFreightComparativeEarlyAccessRequests {
8
+ id: string;
9
+ user_id: string;
10
+ freight_comparative_id: string;
11
+ reason: string;
12
+ created_at: string;
13
+ updated_at: string;
14
+ parent_freight_comparative: INestedFreightComparative | null;
15
+ user: INestedUser | null;
16
+ }
17
+ export interface INestedFreightComparativeEarlyAccessRequest extends Omit<IFreightComparativeEarlyAccessRequests, "parent_freight_comparative" | "user"> {
18
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE = void 0;
4
+ var FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE;
5
+ (function (FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE) {
6
+ FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE["parent_freight_comparative"] = "parent_freight_comparative";
7
+ FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE["user"] = "user";
8
+ })(FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE || (exports.FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE = FREIGHT_COMPARATIVE_EARLY_ACCESS_REQUEST_INCLUDE = {}));
@@ -0,0 +1,26 @@
1
+ import { INestedFreightComparative } from "./freightComparative.typings";
2
+ import { INestedFreightQuoteVehicle } from "./freightQuote.typings";
3
+ import { INestedUser } from "./user.typings";
4
+ import { INestedVehicle } from "./vehicle.typings";
5
+ export declare enum FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE {
6
+ freight_comparative = "freight_comparative",
7
+ vehicle = "vehicle",
8
+ parent_quote_item = "parent_quote_item",
9
+ last_updated_by_user = "last_updated_by_user"
10
+ }
11
+ export interface IFreightComparativeVehiclesQuantitySplit {
12
+ id: string;
13
+ freight_comparative_id: string;
14
+ vehicle_id: string;
15
+ freight_quote_vehicle_id: string;
16
+ no_of_vehicles: number;
17
+ last_updated_by_user_id: string;
18
+ created_at: string;
19
+ updated_at: string;
20
+ freight_comparative: INestedFreightComparative | null;
21
+ vehicle: INestedVehicle | null;
22
+ parent_quote_item: INestedFreightQuoteVehicle | null;
23
+ last_updated_by_user: INestedUser | null;
24
+ }
25
+ export interface INestedFreightComparativeVehiclesQuantitySplit extends Omit<IFreightComparativeVehiclesQuantitySplit, "freight_comparative" | "vehicle" | "parent_quote_item" | "last_updated_by_user"> {
26
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE = void 0;
4
+ var FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE;
5
+ (function (FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE) {
6
+ FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE["freight_comparative"] = "freight_comparative";
7
+ FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE["vehicle"] = "vehicle";
8
+ FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE["parent_quote_item"] = "parent_quote_item";
9
+ FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
10
+ })(FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE || (exports.FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE = FREIGHT_COMPARATIVE_VEHICLES_QUANTITY_SPLIT_INCLUDE = {}));
@@ -0,0 +1,246 @@
1
+ import { IPaginationFilters } from "./common/paginationFilters.typings";
2
+ import { IAddress } from "./common/address.typings";
3
+ import { INestedCompany } from "./company.typings";
4
+ import { INestedCompanyTransporter } from "./companyTransporter.typings";
5
+ import { CONTACT_PERSON_TYPE, INestedContactPeople } from "./contactPeople.typings";
6
+ import { INestedFreightComparative, INestedFreightComparativeVehicle } from "./freightComparative.typings";
7
+ import { INestedFreightQuote } from "./freightQuote.typings";
8
+ import { LOADING_DONE_BY } from "./frr.typings";
9
+ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
10
+ import { INestedStoreLocation } from "./storeLocation.typings";
11
+ import { INestedTransporter } from "./transporter.typings";
12
+ import { INestedUser } from "./user.typings";
13
+ import { INestedVehicle, VEHICLE_MODE_OF_TRANSPORT } from "./vehicle.typings";
14
+ import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
15
+ export declare enum FO_STATUS {
16
+ DRAFT = "DRAFT",
17
+ PENDING_APPROVAL = "PENDING_APPROVAL",
18
+ APPROVED = "APPROVED",
19
+ SENT_TO_TRANSPORTER = "SENT_TO_TRANSPORTER",
20
+ ACCEPTED_BY_TRANSPORTER = "ACCEPTED_BY_TRANSPORTER",
21
+ REJECTED_BY_TRANSPORTER = "REJECTED_BY_TRANSPORTER",
22
+ CANCELLED = "CANCELLED",
23
+ CLOSED = "CLOSED"
24
+ }
25
+ export declare enum FO_TYPE {
26
+ DIRECT = "DIRECT",
27
+ ASCENDENT_OF_COMPARATIVE = "ASCENDENT_OF_COMPARATIVE"
28
+ }
29
+ export declare enum FO_LIST_TYPES {
30
+ ALL = "ALL",
31
+ CREATED_BY_ME = "CREATED_BY_ME",
32
+ MY_APPROVALS = "MY_APPROVALS"
33
+ }
34
+ export declare enum FO_INCLUDE {
35
+ company = "company",
36
+ source_store_location = "source_store_location",
37
+ purchase_location = "purchase_location",
38
+ created_by_user = "created_by_user",
39
+ last_updated_by_user = "last_updated_by_user",
40
+ company_transporter = "company_transporter",
41
+ transporter = "transporter",
42
+ contact_person = "contact_person",
43
+ external_contact_person = "external_contact_person",
44
+ sent_for_approval_by = "sent_for_approval_by",
45
+ sent_to_transporter_by = "sent_to_transporter_by",
46
+ parent_freight_quote = "parent_freight_quote",
47
+ freight_comparative = "freight_comparative",
48
+ vehicles = "vehicles",
49
+ fo_destinations = "fo_destinations",
50
+ approval_chain = "approval_chain"
51
+ }
52
+ export declare enum FO_METAFIELDS_INCLUDE {
53
+ vehicle_driver_details_data = "vehicle_driver_details_data"
54
+ }
55
+ export interface IFOMetafields {
56
+ vehicle_driver_details_data: INestedFOVehicleDriverDetails[];
57
+ }
58
+ export interface IFOFilters {
59
+ company_id?: string;
60
+ fo_no?: string;
61
+ name?: string | null;
62
+ status?: FO_STATUS;
63
+ status_array?: FO_STATUS[];
64
+ transporter_id?: string;
65
+ company_transporter_id?: string;
66
+ parent_freight_quote_id?: string;
67
+ freight_comparative_id?: string;
68
+ purchase_location_id?: string;
69
+ source_store_location_id?: string;
70
+ list_type?: FO_LIST_TYPES;
71
+ contact_person_id?: string;
72
+ external_contact_person_id?: string;
73
+ include?: FO_INCLUDE[];
74
+ metafields_include?: FO_METAFIELDS_INCLUDE[];
75
+ }
76
+ export interface IFOFiltersWithPagination extends IPaginationFilters, IFOFilters {
77
+ }
78
+ export interface IFO {
79
+ id: string;
80
+ fo_type: FO_TYPE;
81
+ fo_no: string;
82
+ pickup_date: string;
83
+ delivery_date: string;
84
+ company_id: string;
85
+ purchase_location_id: string;
86
+ source_store_location_id: string;
87
+ created_by_user_id: string;
88
+ last_updated_by_user_id?: string | null;
89
+ company_transporter_id: string;
90
+ transporter_id?: string | null;
91
+ contact_person_id?: string | null;
92
+ contact_person_type: CONTACT_PERSON_TYPE;
93
+ external_contact_person_id?: string | null;
94
+ status: FO_STATUS;
95
+ total?: number | null;
96
+ gst?: number | null;
97
+ subtotal?: number | null;
98
+ sent_for_approval_by_id?: string | null;
99
+ sent_to_transporter_by_id?: string | null;
100
+ parent_freight_quote_id?: string | null;
101
+ freight_comparative_id?: string | null;
102
+ rejection_remark?: string | null;
103
+ attachment_link?: string | null;
104
+ terms_and_conditions?: string | null;
105
+ payment_terms?: string | null;
106
+ remark?: string | null;
107
+ lorry_receipt_attachment_link: string[];
108
+ e_way_bill_attachment_link: string[];
109
+ invoice_attachment_link: string[];
110
+ delivery_challan_attachment_link: string[];
111
+ pod_attachment_link: string[];
112
+ vehicle_document_attachment_link: string[];
113
+ other_attachment_link: string[];
114
+ is_deleted?: boolean | null;
115
+ sent_to_transporter_at?: string | null;
116
+ sent_for_approval_at?: string | null;
117
+ approved_at?: string | null;
118
+ accepted_or_rejected_by_transporter_at?: string | null;
119
+ is_auto_accepted?: boolean | null;
120
+ deleted_at?: string | null;
121
+ created_at?: string | null;
122
+ updated_at?: string | null;
123
+ company?: INestedCompany | null;
124
+ source_store_location?: INestedStoreLocation | null;
125
+ purchase_location?: INestedPurchaseLocation | null;
126
+ created_by_user?: INestedUser | null;
127
+ last_updated_by_user?: INestedUser | null;
128
+ company_transporter?: INestedCompanyTransporter | null;
129
+ transporter?: INestedTransporter | null;
130
+ contact_person?: INestedUser | null;
131
+ external_contact_person?: INestedContactPeople | null;
132
+ sent_for_approval_by?: INestedUser | null;
133
+ sent_to_transporter_by?: INestedUser | null;
134
+ parent_freight_quote?: INestedFreightQuote | null;
135
+ freight_comparative?: INestedFreightComparative | null;
136
+ vehicles?: INestedFOVehicle[] | null;
137
+ fo_destinations?: INestedFODestination[] | null;
138
+ approval_chain: INestedEntityApprovalChainEntry[] | null;
139
+ metafields?: IFOMetafields | null;
140
+ }
141
+ export interface INestedFO extends Omit<IFO, "company" | "source_store_location" | "purchase_location" | "created_by_user" | "last_updated_by_user" | "company_transporter" | "transporter" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_transporter_by" | "parent_freight_quote" | "freight_comparative" | "vehicles" | "fo_destinations" | "approval_chain" | "metafields"> {
142
+ }
143
+ export declare enum FO_VEHICLE_INCLUDE {
144
+ company = "company",
145
+ vehicle = "vehicle",
146
+ parent_fo = "parent_fo",
147
+ referenced_freight_comparative_vehicle = "referenced_freight_comparative_vehicle",
148
+ vehicle_driver_details = "vehicle_driver_details"
149
+ }
150
+ export interface IFOVehicle {
151
+ id: string;
152
+ type: string;
153
+ company_id: string;
154
+ vehicle_id: string;
155
+ referenced_freight_comparative_vehcile_id?: string | null;
156
+ parent_fo_id?: string | null;
157
+ mode_of_transport: VEHICLE_MODE_OF_TRANSPORT;
158
+ vehicle_type: string;
159
+ description?: string | null;
160
+ good_type?: string | null;
161
+ weight: number;
162
+ weight_uom: string;
163
+ volume?: number | null;
164
+ volume_uom?: string | null;
165
+ packages?: number | null;
166
+ consignment_value?: number | null;
167
+ budget?: number | null;
168
+ gst?: number | null;
169
+ total?: number | null;
170
+ subtotal?: number | null;
171
+ loading_done_by?: LOADING_DONE_BY | null;
172
+ no_of_vehicles?: number | null;
173
+ remarks?: string | null;
174
+ special_handling?: string | null;
175
+ freight_gst_percentage?: number | null;
176
+ freight_value?: number | null;
177
+ toll_gst_percentage?: number | null;
178
+ toll_value?: number | null;
179
+ loading_gst_percentage?: number | null;
180
+ loading_value?: number | null;
181
+ unloading_gst_percentage?: number | null;
182
+ unloading_value?: number | null;
183
+ insurance_gst_percentage?: number | null;
184
+ insurance_value?: number | null;
185
+ halting_gst_percentage?: number | null;
186
+ halting_value?: number | null;
187
+ other_charges_gst_percentage?: number | null;
188
+ other_charges_value?: number | null;
189
+ is_deleted?: boolean | null;
190
+ deleted_at?: string | null;
191
+ created_at?: string | null;
192
+ updated_at?: string | null;
193
+ company?: INestedCompany | null;
194
+ vehicle?: INestedVehicle | null;
195
+ parent_fo?: INestedFO | null;
196
+ referenced_freight_comparative_vehicle?: INestedFreightComparativeVehicle | null;
197
+ vehicle_driver_details?: INestedFOVehicleDriverDetails[] | null;
198
+ }
199
+ export interface INestedFOVehicle extends Omit<IFOVehicle, "company" | "vehicle" | "parent_fo" | "referenced_freight_comparative_vehicle" | "vehicle_driver_details"> {
200
+ }
201
+ export interface IFOVehicleFilters extends IPaginationFilters {
202
+ parent_fo_id?: string;
203
+ include?: FO_VEHICLE_INCLUDE[];
204
+ }
205
+ export declare enum FO_DESTINATION_INCLUDE {
206
+ parent_fo = "parent_fo"
207
+ }
208
+ export interface IFODestination extends IAddress {
209
+ id: string;
210
+ parent_fo_id: string;
211
+ order: number;
212
+ distance: number;
213
+ created_at?: string | null;
214
+ updated_at?: string | null;
215
+ parent_fo?: INestedFO | null;
216
+ }
217
+ export interface INestedFODestination extends Omit<IFODestination, "parent_fo"> {
218
+ }
219
+ export declare enum FO_VEHICLE_DRIVER_DETAILS_INCLUDE {
220
+ parent_fo_vehicle = "parent_fo_vehicle"
221
+ }
222
+ export interface IFOVehicleDriverDetails {
223
+ id: string;
224
+ parent_fo_vehcile_id: string;
225
+ driver_number?: string | null;
226
+ vehicle_number?: string | null;
227
+ driver_name?: string | null;
228
+ driver_email?: string | null;
229
+ license_number?: string | null;
230
+ created_at?: string | null;
231
+ updated_at?: string | null;
232
+ parent_fo_vehicle?: INestedFOVehicle | null;
233
+ }
234
+ export interface INestedFOVehicleDriverDetails extends Omit<IFOVehicleDriverDetails, "parent_fo_vehicle"> {
235
+ }
236
+ export interface IFOVehicleDriverDetailsFilters extends IPaginationFilters {
237
+ parent_fo_vehcile_id?: string;
238
+ include?: FO_VEHICLE_DRIVER_DETAILS_INCLUDE[];
239
+ }
240
+ export interface IFO_TOKEN_PAYLOAD {
241
+ fo_id: string;
242
+ }
243
+ export interface IFO_ACCEPT_REJECT_BY_TRANSPORTER_TOKEN_PAYLOAD {
244
+ fo_id: string;
245
+ transporter_id: string;
246
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FO_VEHICLE_DRIVER_DETAILS_INCLUDE = exports.FO_DESTINATION_INCLUDE = exports.FO_VEHICLE_INCLUDE = exports.FO_METAFIELDS_INCLUDE = exports.FO_INCLUDE = exports.FO_LIST_TYPES = exports.FO_TYPE = exports.FO_STATUS = void 0;
4
+ var FO_STATUS;
5
+ (function (FO_STATUS) {
6
+ FO_STATUS["DRAFT"] = "DRAFT";
7
+ FO_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
8
+ FO_STATUS["APPROVED"] = "APPROVED";
9
+ FO_STATUS["SENT_TO_TRANSPORTER"] = "SENT_TO_TRANSPORTER";
10
+ FO_STATUS["ACCEPTED_BY_TRANSPORTER"] = "ACCEPTED_BY_TRANSPORTER";
11
+ FO_STATUS["REJECTED_BY_TRANSPORTER"] = "REJECTED_BY_TRANSPORTER";
12
+ FO_STATUS["CANCELLED"] = "CANCELLED";
13
+ FO_STATUS["CLOSED"] = "CLOSED";
14
+ })(FO_STATUS || (exports.FO_STATUS = FO_STATUS = {}));
15
+ var FO_TYPE;
16
+ (function (FO_TYPE) {
17
+ FO_TYPE["DIRECT"] = "DIRECT";
18
+ FO_TYPE["ASCENDENT_OF_COMPARATIVE"] = "ASCENDENT_OF_COMPARATIVE";
19
+ })(FO_TYPE || (exports.FO_TYPE = FO_TYPE = {}));
20
+ var FO_LIST_TYPES;
21
+ (function (FO_LIST_TYPES) {
22
+ FO_LIST_TYPES["ALL"] = "ALL";
23
+ FO_LIST_TYPES["CREATED_BY_ME"] = "CREATED_BY_ME";
24
+ FO_LIST_TYPES["MY_APPROVALS"] = "MY_APPROVALS";
25
+ })(FO_LIST_TYPES || (exports.FO_LIST_TYPES = FO_LIST_TYPES = {}));
26
+ var FO_INCLUDE;
27
+ (function (FO_INCLUDE) {
28
+ FO_INCLUDE["company"] = "company";
29
+ FO_INCLUDE["source_store_location"] = "source_store_location";
30
+ FO_INCLUDE["purchase_location"] = "purchase_location";
31
+ FO_INCLUDE["created_by_user"] = "created_by_user";
32
+ FO_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
33
+ FO_INCLUDE["company_transporter"] = "company_transporter";
34
+ FO_INCLUDE["transporter"] = "transporter";
35
+ FO_INCLUDE["contact_person"] = "contact_person";
36
+ FO_INCLUDE["external_contact_person"] = "external_contact_person";
37
+ FO_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
38
+ FO_INCLUDE["sent_to_transporter_by"] = "sent_to_transporter_by";
39
+ FO_INCLUDE["parent_freight_quote"] = "parent_freight_quote";
40
+ FO_INCLUDE["freight_comparative"] = "freight_comparative";
41
+ FO_INCLUDE["vehicles"] = "vehicles";
42
+ FO_INCLUDE["fo_destinations"] = "fo_destinations";
43
+ FO_INCLUDE["approval_chain"] = "approval_chain";
44
+ })(FO_INCLUDE || (exports.FO_INCLUDE = FO_INCLUDE = {}));
45
+ var FO_METAFIELDS_INCLUDE;
46
+ (function (FO_METAFIELDS_INCLUDE) {
47
+ FO_METAFIELDS_INCLUDE["vehicle_driver_details_data"] = "vehicle_driver_details_data";
48
+ })(FO_METAFIELDS_INCLUDE || (exports.FO_METAFIELDS_INCLUDE = FO_METAFIELDS_INCLUDE = {}));
49
+ // FO Vehicles
50
+ var FO_VEHICLE_INCLUDE;
51
+ (function (FO_VEHICLE_INCLUDE) {
52
+ FO_VEHICLE_INCLUDE["company"] = "company";
53
+ FO_VEHICLE_INCLUDE["vehicle"] = "vehicle";
54
+ FO_VEHICLE_INCLUDE["parent_fo"] = "parent_fo";
55
+ FO_VEHICLE_INCLUDE["referenced_freight_comparative_vehicle"] = "referenced_freight_comparative_vehicle";
56
+ FO_VEHICLE_INCLUDE["vehicle_driver_details"] = "vehicle_driver_details";
57
+ })(FO_VEHICLE_INCLUDE || (exports.FO_VEHICLE_INCLUDE = FO_VEHICLE_INCLUDE = {}));
58
+ // FO Destinations
59
+ var FO_DESTINATION_INCLUDE;
60
+ (function (FO_DESTINATION_INCLUDE) {
61
+ FO_DESTINATION_INCLUDE["parent_fo"] = "parent_fo";
62
+ })(FO_DESTINATION_INCLUDE || (exports.FO_DESTINATION_INCLUDE = FO_DESTINATION_INCLUDE = {}));
63
+ // FO Vehicle Driver Details
64
+ var FO_VEHICLE_DRIVER_DETAILS_INCLUDE;
65
+ (function (FO_VEHICLE_DRIVER_DETAILS_INCLUDE) {
66
+ FO_VEHICLE_DRIVER_DETAILS_INCLUDE["parent_fo_vehicle"] = "parent_fo_vehicle";
67
+ })(FO_VEHICLE_DRIVER_DETAILS_INCLUDE || (exports.FO_VEHICLE_DRIVER_DETAILS_INCLUDE = FO_VEHICLE_DRIVER_DETAILS_INCLUDE = {}));
@@ -0,0 +1,155 @@
1
+ import { IPaginationFilters } from "./common/paginationFilters.typings";
2
+ import { INestedCompany } from "./company.typings";
3
+ import { INestedFreightComparative, INestedFreightComparativeVehicle } from "./freightComparative.typings";
4
+ import { INestedFreightComparativeVehiclesQuantitySplit } from "./freightComparativeVehiclesQuantitySplit.typings";
5
+ import { INestedFO } from "./freightOrder.typings";
6
+ import { INestedFRR, LOADING_DONE_BY } from "./frr.typings";
7
+ import { INestedTransporter } from "./transporter.typings";
8
+ import { INestedUser } from "./user.typings";
9
+ import { INestedVehicle, VEHICLE_MODE_OF_TRANSPORT } from "./vehicle.typings";
10
+ export declare enum FREIGHT_QUOTE_SUBMITTED_BY_TYPE {
11
+ COMPANY_USER = "COMPANY_USER",
12
+ TRANSPORTER = "TRANSPORTER"
13
+ }
14
+ export declare enum FREIGHT_QUOTE_INCLUDE {
15
+ contact_person = "contact_person",
16
+ parent_frr = "parent_frr",
17
+ transporter = "transporter",
18
+ company = "company",
19
+ submitted_by_user = "submitted_by_user",
20
+ last_updated_by_user = "last_updated_by_user",
21
+ vehicles = "vehicles",
22
+ freight_comparative = "freight_comparative",
23
+ child_fos = "child_fos"
24
+ }
25
+ export interface IFreightQuoteFilters {
26
+ company_id?: string;
27
+ frr_id?: string;
28
+ transporter_id?: string;
29
+ name?: string;
30
+ include?: FREIGHT_QUOTE_INCLUDE[];
31
+ }
32
+ export interface IFreightQuoteFiltersWithPagination extends IPaginationFilters, IFreightQuoteFilters {
33
+ }
34
+ export interface IFreightQuote {
35
+ id: string;
36
+ transporter_id: string;
37
+ company_id: string;
38
+ quote_no: string;
39
+ is_quoted: boolean;
40
+ contact_person_id?: string | null;
41
+ parent_frr_id: string;
42
+ freight_comparative_id?: string | null;
43
+ subtotal?: number | null;
44
+ total?: number | null;
45
+ attachment_link?: string | null;
46
+ remarks?: string | null;
47
+ gst?: number | null;
48
+ quote_on_behalf_remark?: string | null;
49
+ payment_terms?: string | null;
50
+ terms_and_conditions?: string | null;
51
+ quote_submitted_by_type?: FREIGHT_QUOTE_SUBMITTED_BY_TYPE | null;
52
+ quote_submitted_by_user_id?: string | null;
53
+ last_updated_by_user_id?: string | null;
54
+ quoted_at?: string | null;
55
+ last_updated_at?: string | null;
56
+ is_deleted?: boolean | null;
57
+ deleted_at?: string | null;
58
+ created_at?: string | null;
59
+ updated_at?: string | null;
60
+ contact_person?: INestedUser | null;
61
+ parent_frr?: INestedFRR | null;
62
+ transporter?: INestedTransporter | null;
63
+ company?: INestedCompany | null;
64
+ submitted_by_user?: INestedUser | null;
65
+ last_updated_by_user?: INestedUser | null;
66
+ vehicles?: INestedFreightQuoteVehicle[] | null;
67
+ freight_comparative?: INestedFreightComparative | null;
68
+ child_fos?: INestedFO[] | null;
69
+ }
70
+ export interface INestedFreightQuote extends Omit<IFreightQuote, "contact_person" | "parent_frr" | "transporter" | "company" | "submitted_by_user" | "last_updated_by_user" | "vehicles" | "freight_comparative" | "child_fos"> {
71
+ }
72
+ export declare enum FREIGHT_QUOTE_VEHICLE_INCLUDE {
73
+ parent_freight_quote = "parent_freight_quote",
74
+ vehicle = "vehicle",
75
+ referenced_freight_comparative_vehicle = "referenced_freight_comparative_vehicle",
76
+ referenced_in_freight_comparative_item_quantity = "referenced_in_freight_comparative_item_quantity"
77
+ }
78
+ export interface IFreightQuoteVehicle {
79
+ id: string;
80
+ freight_quote_id: string;
81
+ freight_comparative_vehicle_id?: string | null;
82
+ vehicle_id: string;
83
+ alternate_vehicle_type?: string | null;
84
+ mode_of_transport: VEHICLE_MODE_OF_TRANSPORT;
85
+ vehicle_type: string | null;
86
+ description?: string | null;
87
+ good_type?: string | null;
88
+ weight: number;
89
+ weight_uom: string;
90
+ volume?: number | null;
91
+ volume_uom?: string | null;
92
+ packages?: number | null;
93
+ consignment_value?: number | null;
94
+ budget?: number | null;
95
+ total?: number | null;
96
+ gst?: number | null;
97
+ loading_done_by?: LOADING_DONE_BY | null;
98
+ no_of_vehicles?: number | null;
99
+ remarks?: string | null;
100
+ special_handling?: string | null;
101
+ is_freight_enabled: boolean;
102
+ is_freight_required: boolean;
103
+ is_freight_gst_required: boolean;
104
+ freight_gst_percentage?: number | null;
105
+ freight_value?: number | null;
106
+ is_toll_enabled: boolean;
107
+ is_toll_required: boolean;
108
+ is_toll_gst_required: boolean;
109
+ toll_gst_percentage?: number | null;
110
+ toll_value?: number | null;
111
+ is_loading_enabled: boolean;
112
+ is_loading_required: boolean;
113
+ is_loading_gst_required: boolean;
114
+ loading_gst_percentage?: number | null;
115
+ loading_value?: number | null;
116
+ is_unloading_enabled: boolean;
117
+ is_unloading_required: boolean;
118
+ is_unloading_gst_required: boolean;
119
+ unloading_gst_percentage?: number | null;
120
+ unloading_value?: number | null;
121
+ is_insurance_enabled: boolean;
122
+ is_insurance_required: boolean;
123
+ is_insurance_gst_required: boolean;
124
+ insurance_gst_percentage?: number | null;
125
+ insurance_value?: number | null;
126
+ is_hating_enabled: boolean;
127
+ is_hating_required: boolean;
128
+ is_hating_gst_required: boolean;
129
+ halting_gst_percentage?: number | null;
130
+ halting_value?: number | null;
131
+ is_other_charges_enabled: boolean;
132
+ is_other_charges_required: boolean;
133
+ is_other_charges_gst_required: boolean;
134
+ other_charges_gst_percentage?: number | null;
135
+ other_charges_value?: number | null;
136
+ is_deleted?: boolean | null;
137
+ deleted_at?: string | null;
138
+ created_at?: string | null;
139
+ updated_at?: string | null;
140
+ parent_freight_quote?: INestedFreightQuote | null;
141
+ vehicle?: INestedVehicle | null;
142
+ referenced_freight_comparative_vehicle?: INestedFreightComparativeVehicle | null;
143
+ referenced_in_freight_comparative_item_quantity?: INestedFreightComparativeVehiclesQuantitySplit[] | null;
144
+ }
145
+ export interface INestedFreightQuoteVehicle extends Omit<IFreightQuoteVehicle, "parent_freight_quote" | "vehicle" | "referenced_freight_comparative_vehicle" | "referenced_in_freight_comparative_item_quantity"> {
146
+ }
147
+ export interface IFreightQuoteVehicleFilters extends IPaginationFilters {
148
+ freight_quote_id?: string;
149
+ include?: FREIGHT_QUOTE_VEHICLE_INCLUDE[];
150
+ }
151
+ export interface IOPEN_FREIGHT_QUOTE_TOKEN_PAYLOAD {
152
+ freight_quote_id: string;
153
+ transporter_id: string;
154
+ on_behalf_user_id?: string;
155
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FREIGHT_QUOTE_VEHICLE_INCLUDE = exports.FREIGHT_QUOTE_INCLUDE = exports.FREIGHT_QUOTE_SUBMITTED_BY_TYPE = void 0;
4
+ var FREIGHT_QUOTE_SUBMITTED_BY_TYPE;
5
+ (function (FREIGHT_QUOTE_SUBMITTED_BY_TYPE) {
6
+ FREIGHT_QUOTE_SUBMITTED_BY_TYPE["COMPANY_USER"] = "COMPANY_USER";
7
+ FREIGHT_QUOTE_SUBMITTED_BY_TYPE["TRANSPORTER"] = "TRANSPORTER";
8
+ })(FREIGHT_QUOTE_SUBMITTED_BY_TYPE || (exports.FREIGHT_QUOTE_SUBMITTED_BY_TYPE = FREIGHT_QUOTE_SUBMITTED_BY_TYPE = {}));
9
+ var FREIGHT_QUOTE_INCLUDE;
10
+ (function (FREIGHT_QUOTE_INCLUDE) {
11
+ FREIGHT_QUOTE_INCLUDE["contact_person"] = "contact_person";
12
+ FREIGHT_QUOTE_INCLUDE["parent_frr"] = "parent_frr";
13
+ FREIGHT_QUOTE_INCLUDE["transporter"] = "transporter";
14
+ FREIGHT_QUOTE_INCLUDE["company"] = "company";
15
+ FREIGHT_QUOTE_INCLUDE["submitted_by_user"] = "submitted_by_user";
16
+ FREIGHT_QUOTE_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
17
+ FREIGHT_QUOTE_INCLUDE["vehicles"] = "vehicles";
18
+ FREIGHT_QUOTE_INCLUDE["freight_comparative"] = "freight_comparative";
19
+ FREIGHT_QUOTE_INCLUDE["child_fos"] = "child_fos";
20
+ })(FREIGHT_QUOTE_INCLUDE || (exports.FREIGHT_QUOTE_INCLUDE = FREIGHT_QUOTE_INCLUDE = {}));
21
+ // Freight Quote Vehicles
22
+ var FREIGHT_QUOTE_VEHICLE_INCLUDE;
23
+ (function (FREIGHT_QUOTE_VEHICLE_INCLUDE) {
24
+ FREIGHT_QUOTE_VEHICLE_INCLUDE["parent_freight_quote"] = "parent_freight_quote";
25
+ FREIGHT_QUOTE_VEHICLE_INCLUDE["vehicle"] = "vehicle";
26
+ FREIGHT_QUOTE_VEHICLE_INCLUDE["referenced_freight_comparative_vehicle"] = "referenced_freight_comparative_vehicle";
27
+ FREIGHT_QUOTE_VEHICLE_INCLUDE["referenced_in_freight_comparative_item_quantity"] = "referenced_in_freight_comparative_item_quantity";
28
+ })(FREIGHT_QUOTE_VEHICLE_INCLUDE || (exports.FREIGHT_QUOTE_VEHICLE_INCLUDE = FREIGHT_QUOTE_VEHICLE_INCLUDE = {}));