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
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { IAddress } from "./common/address.typings";
|
|
2
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
3
|
+
import { INestedCompany } from "./company.typings";
|
|
4
|
+
import { INestedCompanyTransporter } from "./companyTransporter.typings";
|
|
5
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
6
|
+
import { INestedFreightComparative } from "./freightComparative.typings";
|
|
7
|
+
import { INestedFreightQuote } from "./freightQuote.typings";
|
|
8
|
+
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
9
|
+
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
10
|
+
import { INestedTransporter, ITransporter } from "./transporter.typings";
|
|
11
|
+
import { INestedTransporterGroups } from "./transporterGroup.typings";
|
|
12
|
+
import { INestedUser } from "./user.typings";
|
|
13
|
+
import { INestedVehicle, VEHICLE_MODE_OF_TRANSPORT } from "./vehicle.typings";
|
|
14
|
+
export declare enum FRR_LIST_TYPES {
|
|
15
|
+
ALL = "ALL",
|
|
16
|
+
CREATED_BY_ME = "CREATED_BY_ME",
|
|
17
|
+
MY_APPROVALS = "MY_APPROVALS"
|
|
18
|
+
}
|
|
19
|
+
export declare enum LOADING_DONE_BY {
|
|
20
|
+
CONSIGNOR = "CONSIGNOR",
|
|
21
|
+
TRANSPORTER = "TRANSPORTER"
|
|
22
|
+
}
|
|
23
|
+
export declare enum FRRTransporterType {
|
|
24
|
+
DIRECT = "DIRECT",
|
|
25
|
+
TRANSPORTER_GROUP = "TRANSPORTER_GROUP",
|
|
26
|
+
ADDITIONAL_TRANSPORTERS = "ADDITIONAL_TRANSPORTERS"
|
|
27
|
+
}
|
|
28
|
+
export declare enum FRR_STATUS {
|
|
29
|
+
DRAFT = "DRAFT",
|
|
30
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
31
|
+
APPROVED = "APPROVED",
|
|
32
|
+
SENT_TO_TRANSPORTER = "SENT_TO_TRANSPORTER",
|
|
33
|
+
QUOTED = "QUOTED",
|
|
34
|
+
CLOSED = "CLOSED"
|
|
35
|
+
}
|
|
36
|
+
export declare enum FRR_INCLUDE {
|
|
37
|
+
company = "company",
|
|
38
|
+
parent_purchase_location = "parent_purchase_location",
|
|
39
|
+
created_by_user = "created_by_user",
|
|
40
|
+
updated_by_user = "updated_by_user",
|
|
41
|
+
source_store_location = "source_store_location",
|
|
42
|
+
contact_person = "contact_person",
|
|
43
|
+
sent_for_approval_by = "sent_for_approval_by",
|
|
44
|
+
sent_to_transporters_by = "sent_to_transporters_by",
|
|
45
|
+
approval_chain = "approval_chain",
|
|
46
|
+
vehicles = "vehicles",
|
|
47
|
+
frr_destinations = "frr_destinations",
|
|
48
|
+
additional_transporters = "additional_transporters",
|
|
49
|
+
frr_transporter = "frr_transporter",
|
|
50
|
+
frr_transporter_groups = "frr_transporter_groups",
|
|
51
|
+
freight_quotes = "freight_quotes",
|
|
52
|
+
freight_comparative = "freight_comparative"
|
|
53
|
+
}
|
|
54
|
+
export interface IFRRFilters {
|
|
55
|
+
parent_purchase_location_id?: string;
|
|
56
|
+
name?: string;
|
|
57
|
+
list_type?: FRR_LIST_TYPES;
|
|
58
|
+
status_array?: FRR_STATUS[];
|
|
59
|
+
include?: FRR_INCLUDE[];
|
|
60
|
+
}
|
|
61
|
+
export interface IFRRFiltersWithPagination extends IPaginationFilters, IFRRFilters {
|
|
62
|
+
}
|
|
63
|
+
export interface IFRR {
|
|
64
|
+
id: string;
|
|
65
|
+
frr_no: string;
|
|
66
|
+
company_id: string;
|
|
67
|
+
parent_purchase_location_id: string;
|
|
68
|
+
created_by_user_id: string;
|
|
69
|
+
last_updated_by_user_id?: string | null;
|
|
70
|
+
source_store_location_id: string;
|
|
71
|
+
contact_person_id?: string | null;
|
|
72
|
+
sent_for_approval_by_id: string;
|
|
73
|
+
sent_to_transporter_by_id: string;
|
|
74
|
+
status: string;
|
|
75
|
+
validity_date: string;
|
|
76
|
+
delivery_date: string;
|
|
77
|
+
pickup_date: string;
|
|
78
|
+
complete_route_distance: number;
|
|
79
|
+
remarks?: string | null;
|
|
80
|
+
payment_terms?: string | null;
|
|
81
|
+
terms_and_conditions?: string | null;
|
|
82
|
+
is_deleted?: boolean | null;
|
|
83
|
+
deleted_at?: string | null;
|
|
84
|
+
approved_at?: string | null;
|
|
85
|
+
sent_for_approval_at?: string | null;
|
|
86
|
+
sent_to_transporter_at?: string | null;
|
|
87
|
+
last_updated_at?: string | null;
|
|
88
|
+
created_at?: string | null;
|
|
89
|
+
updated_at?: string | null;
|
|
90
|
+
company?: INestedCompany | null;
|
|
91
|
+
parent_purchase_location?: INestedPurchaseLocation | null;
|
|
92
|
+
created_by_user?: INestedUser | null;
|
|
93
|
+
updated_by_user?: INestedUser | null;
|
|
94
|
+
source_store_location?: INestedStoreLocation | null;
|
|
95
|
+
contact_person?: INestedUser | null;
|
|
96
|
+
sent_for_approval_by?: INestedUser | null;
|
|
97
|
+
sent_to_transporters_by?: INestedUser | null;
|
|
98
|
+
approval_chain?: INestedEntityApprovalChainEntry[] | null;
|
|
99
|
+
vehicles?: INestedFRRVehicle[] | null;
|
|
100
|
+
frr_destinations?: INestedFRRDestination[] | null;
|
|
101
|
+
additional_transporters?: INestedTransporter[] | null;
|
|
102
|
+
frr_transporter?: INestedCompanyTransporter[] | null;
|
|
103
|
+
frr_transporter_groups?: INestedTransporterGroups[] | null;
|
|
104
|
+
freight_quotes?: INestedFreightQuote[] | null;
|
|
105
|
+
freight_comparative?: INestedFreightComparative | null;
|
|
106
|
+
}
|
|
107
|
+
export interface INestedFRR extends Omit<IFRR, "company" | "parent_purchase_location" | "created_by_user" | "updated_by_user" | "source_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_transporters_by" | "approval_chain" | "vehicles" | "frr_destinations" | "additional_transporters" | "frr_transporter" | "frr_transporter_groups" | "freight_quotes" | "freight_comparative"> {
|
|
108
|
+
}
|
|
109
|
+
export declare enum FRR_VEHICLE_INCLUDE {
|
|
110
|
+
vehicle = "vehicle",
|
|
111
|
+
parent_frr = "parent_frr"
|
|
112
|
+
}
|
|
113
|
+
export interface IFRRVehicle {
|
|
114
|
+
id: string;
|
|
115
|
+
parent_frr_id: string;
|
|
116
|
+
company_id: string;
|
|
117
|
+
vehicle_id: string;
|
|
118
|
+
mode_of_transport: VEHICLE_MODE_OF_TRANSPORT;
|
|
119
|
+
vehicle_type: string;
|
|
120
|
+
good_type?: string | null;
|
|
121
|
+
description?: string | null;
|
|
122
|
+
weight: number;
|
|
123
|
+
weight_uom: string;
|
|
124
|
+
volume?: number | null;
|
|
125
|
+
volume_uom?: string | null;
|
|
126
|
+
packages?: number | null;
|
|
127
|
+
consignment_value?: number | null;
|
|
128
|
+
budget?: number | null;
|
|
129
|
+
loading_done_by?: LOADING_DONE_BY | null;
|
|
130
|
+
no_of_vehicles?: number | null;
|
|
131
|
+
remarks?: string | null;
|
|
132
|
+
special_handling?: string | null;
|
|
133
|
+
is_freight_enabled: boolean;
|
|
134
|
+
is_freight_required: boolean;
|
|
135
|
+
is_freight_gst_required: boolean;
|
|
136
|
+
freight_gst_percentage?: number | null;
|
|
137
|
+
is_toll_enabled: boolean;
|
|
138
|
+
is_toll_required: boolean;
|
|
139
|
+
is_toll_gst_required: boolean;
|
|
140
|
+
toll_gst_percentage?: number | null;
|
|
141
|
+
is_loading_enabled: boolean;
|
|
142
|
+
is_loading_required: boolean;
|
|
143
|
+
is_loading_gst_required: boolean;
|
|
144
|
+
loading_gst_percentage?: number | null;
|
|
145
|
+
is_unloading_enabled: boolean;
|
|
146
|
+
is_unloading_required: boolean;
|
|
147
|
+
is_unloading_gst_required: boolean;
|
|
148
|
+
unloading_gst_percentage?: number | null;
|
|
149
|
+
is_insurance_enabled: boolean;
|
|
150
|
+
is_insurance_required: boolean;
|
|
151
|
+
is_insurance_gst_required: boolean;
|
|
152
|
+
insurance_gst_percentage?: number | null;
|
|
153
|
+
is_hating_enabled: boolean;
|
|
154
|
+
is_hating_required: boolean;
|
|
155
|
+
is_hating_gst_required: boolean;
|
|
156
|
+
halting_gst_percentage?: number | null;
|
|
157
|
+
is_other_charges_enabled: boolean;
|
|
158
|
+
is_other_charges_required: boolean;
|
|
159
|
+
is_other_charges_gst_required: boolean;
|
|
160
|
+
other_charges_gst_percentage?: number | null;
|
|
161
|
+
is_deleted?: boolean | null;
|
|
162
|
+
deleted_at?: string | null;
|
|
163
|
+
created_at?: string | null;
|
|
164
|
+
updated_at?: string | null;
|
|
165
|
+
vehicle?: INestedVehicle | null;
|
|
166
|
+
parent_frr?: INestedFRR | null;
|
|
167
|
+
}
|
|
168
|
+
export interface INestedFRRVehicle extends Omit<IFRRVehicle, "vehicle" | "parent_frr"> {
|
|
169
|
+
}
|
|
170
|
+
export interface IFRRVehicleFilters extends IPaginationFilters {
|
|
171
|
+
parent_frr_id?: string;
|
|
172
|
+
include?: FRR_VEHICLE_INCLUDE[];
|
|
173
|
+
}
|
|
174
|
+
export declare enum FRR_DESTINATION_INCLUDE {
|
|
175
|
+
parent_frr = "parent_frr"
|
|
176
|
+
}
|
|
177
|
+
export interface IFRRDestination extends IAddress {
|
|
178
|
+
id: string;
|
|
179
|
+
parent_frr_id: string;
|
|
180
|
+
order: number;
|
|
181
|
+
distance: number;
|
|
182
|
+
created_at?: string | null;
|
|
183
|
+
updated_at?: string | null;
|
|
184
|
+
parent_frr?: INestedFRR | null;
|
|
185
|
+
}
|
|
186
|
+
export interface INestedFRRDestination extends Omit<IFRRDestination, "parent_frr"> {
|
|
187
|
+
}
|
|
188
|
+
export interface IAdditionalTransporterInput extends Pick<ITransporter, "transporter_trade_name" | "address" | "email" | "contact" | "firstname" | "lastname"> {
|
|
189
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FRR_DESTINATION_INCLUDE = exports.FRR_VEHICLE_INCLUDE = exports.FRR_INCLUDE = exports.FRR_STATUS = exports.FRRTransporterType = exports.LOADING_DONE_BY = exports.FRR_LIST_TYPES = void 0;
|
|
4
|
+
var FRR_LIST_TYPES;
|
|
5
|
+
(function (FRR_LIST_TYPES) {
|
|
6
|
+
FRR_LIST_TYPES["ALL"] = "ALL";
|
|
7
|
+
FRR_LIST_TYPES["CREATED_BY_ME"] = "CREATED_BY_ME";
|
|
8
|
+
FRR_LIST_TYPES["MY_APPROVALS"] = "MY_APPROVALS";
|
|
9
|
+
})(FRR_LIST_TYPES || (exports.FRR_LIST_TYPES = FRR_LIST_TYPES = {}));
|
|
10
|
+
var LOADING_DONE_BY;
|
|
11
|
+
(function (LOADING_DONE_BY) {
|
|
12
|
+
LOADING_DONE_BY["CONSIGNOR"] = "CONSIGNOR";
|
|
13
|
+
LOADING_DONE_BY["TRANSPORTER"] = "TRANSPORTER";
|
|
14
|
+
})(LOADING_DONE_BY || (exports.LOADING_DONE_BY = LOADING_DONE_BY = {}));
|
|
15
|
+
var FRRTransporterType;
|
|
16
|
+
(function (FRRTransporterType) {
|
|
17
|
+
FRRTransporterType["DIRECT"] = "DIRECT";
|
|
18
|
+
FRRTransporterType["TRANSPORTER_GROUP"] = "TRANSPORTER_GROUP";
|
|
19
|
+
FRRTransporterType["ADDITIONAL_TRANSPORTERS"] = "ADDITIONAL_TRANSPORTERS";
|
|
20
|
+
})(FRRTransporterType || (exports.FRRTransporterType = FRRTransporterType = {}));
|
|
21
|
+
var FRR_STATUS;
|
|
22
|
+
(function (FRR_STATUS) {
|
|
23
|
+
FRR_STATUS["DRAFT"] = "DRAFT";
|
|
24
|
+
FRR_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
25
|
+
FRR_STATUS["APPROVED"] = "APPROVED";
|
|
26
|
+
FRR_STATUS["SENT_TO_TRANSPORTER"] = "SENT_TO_TRANSPORTER";
|
|
27
|
+
FRR_STATUS["QUOTED"] = "QUOTED";
|
|
28
|
+
FRR_STATUS["CLOSED"] = "CLOSED";
|
|
29
|
+
})(FRR_STATUS || (exports.FRR_STATUS = FRR_STATUS = {}));
|
|
30
|
+
var FRR_INCLUDE;
|
|
31
|
+
(function (FRR_INCLUDE) {
|
|
32
|
+
FRR_INCLUDE["company"] = "company";
|
|
33
|
+
FRR_INCLUDE["parent_purchase_location"] = "parent_purchase_location";
|
|
34
|
+
FRR_INCLUDE["created_by_user"] = "created_by_user";
|
|
35
|
+
FRR_INCLUDE["updated_by_user"] = "updated_by_user";
|
|
36
|
+
FRR_INCLUDE["source_store_location"] = "source_store_location";
|
|
37
|
+
FRR_INCLUDE["contact_person"] = "contact_person";
|
|
38
|
+
FRR_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
|
|
39
|
+
FRR_INCLUDE["sent_to_transporters_by"] = "sent_to_transporters_by";
|
|
40
|
+
FRR_INCLUDE["approval_chain"] = "approval_chain";
|
|
41
|
+
FRR_INCLUDE["vehicles"] = "vehicles";
|
|
42
|
+
FRR_INCLUDE["frr_destinations"] = "frr_destinations";
|
|
43
|
+
FRR_INCLUDE["additional_transporters"] = "additional_transporters";
|
|
44
|
+
FRR_INCLUDE["frr_transporter"] = "frr_transporter";
|
|
45
|
+
FRR_INCLUDE["frr_transporter_groups"] = "frr_transporter_groups";
|
|
46
|
+
FRR_INCLUDE["freight_quotes"] = "freight_quotes";
|
|
47
|
+
FRR_INCLUDE["freight_comparative"] = "freight_comparative";
|
|
48
|
+
})(FRR_INCLUDE || (exports.FRR_INCLUDE = FRR_INCLUDE = {}));
|
|
49
|
+
// FRR Vehicles
|
|
50
|
+
var FRR_VEHICLE_INCLUDE;
|
|
51
|
+
(function (FRR_VEHICLE_INCLUDE) {
|
|
52
|
+
FRR_VEHICLE_INCLUDE["vehicle"] = "vehicle";
|
|
53
|
+
FRR_VEHICLE_INCLUDE["parent_frr"] = "parent_frr";
|
|
54
|
+
})(FRR_VEHICLE_INCLUDE || (exports.FRR_VEHICLE_INCLUDE = FRR_VEHICLE_INCLUDE = {}));
|
|
55
|
+
var FRR_DESTINATION_INCLUDE;
|
|
56
|
+
(function (FRR_DESTINATION_INCLUDE) {
|
|
57
|
+
FRR_DESTINATION_INCLUDE["parent_frr"] = "parent_frr";
|
|
58
|
+
})(FRR_DESTINATION_INCLUDE || (exports.FRR_DESTINATION_INCLUDE = FRR_DESTINATION_INCLUDE = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
3
|
import { INestedDepartment } from "./department.typings";
|
|
4
|
+
import { INestedFO } from "./freightOrder.typings";
|
|
4
5
|
import { INestedOffice } from "./offices.typings";
|
|
5
6
|
import { INestedPo } from "./company/masters/po.typings";
|
|
6
7
|
import { INestedPR } from "./pr.typings";
|
|
@@ -19,7 +20,8 @@ export declare enum PurchaseLocationInclude {
|
|
|
19
20
|
rfqs = "rfqs",
|
|
20
21
|
pos = "pos",
|
|
21
22
|
associated_offices = "associated_offices",
|
|
22
|
-
target_store_locations = "target_store_locations"
|
|
23
|
+
target_store_locations = "target_store_locations",
|
|
24
|
+
fos = "fos"
|
|
23
25
|
}
|
|
24
26
|
export interface IPurchaseLocation extends IAddress {
|
|
25
27
|
id: string;
|
|
@@ -42,8 +44,9 @@ export interface IPurchaseLocation extends IAddress {
|
|
|
42
44
|
incharge: INestedUser | null;
|
|
43
45
|
approvalConfigs: INestedApprovalConfig[] | null;
|
|
44
46
|
pos: INestedPo[] | null;
|
|
47
|
+
fos: INestedFO[] | null;
|
|
45
48
|
}
|
|
46
|
-
export interface INestedPurchaseLocation extends Omit<IPurchaseLocation, "company" | "incharge" | "approvalConfigs" | "departments" | "roles" | "prs" | "rfqs" | "pos" | "associated_offices" | "target_store_locations"> {
|
|
49
|
+
export interface INestedPurchaseLocation extends Omit<IPurchaseLocation, "company" | "incharge" | "approvalConfigs" | "departments" | "roles" | "prs" | "rfqs" | "pos" | "associated_offices" | "target_store_locations" | "fos"> {
|
|
47
50
|
}
|
|
48
51
|
export interface IPurchaseLocationFilters {
|
|
49
52
|
name?: string;
|
|
@@ -13,4 +13,5 @@ var PurchaseLocationInclude;
|
|
|
13
13
|
PurchaseLocationInclude["pos"] = "pos";
|
|
14
14
|
PurchaseLocationInclude["associated_offices"] = "associated_offices";
|
|
15
15
|
PurchaseLocationInclude["target_store_locations"] = "target_store_locations";
|
|
16
|
+
PurchaseLocationInclude["fos"] = "fos";
|
|
16
17
|
})(PurchaseLocationInclude || (exports.PurchaseLocationInclude = PurchaseLocationInclude = {}));
|
|
@@ -7,6 +7,7 @@ import { INestedCompany } from "./company.typings";
|
|
|
7
7
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
8
8
|
import { INestedCustomerManagementBody } from "./company/masters/customerManagementBody.typings";
|
|
9
9
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
10
|
+
import { INestedTransporterManagementBody } from "./company/masters/transporterManagementBody.typings";
|
|
10
11
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
11
12
|
import { INestedDepartment } from "./department.typings";
|
|
12
13
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
@@ -36,9 +37,10 @@ export declare enum RolesInclude {
|
|
|
36
37
|
customer_management_body = "customer_management_body",
|
|
37
38
|
qa_location = "qa_location",
|
|
38
39
|
accounts_location = "accounts_location",
|
|
39
|
-
audits = "audits"
|
|
40
|
+
audits = "audits",
|
|
41
|
+
transporter_management_body = "transporter_management_body"
|
|
40
42
|
}
|
|
41
|
-
export interface IRoleFilters extends Partial<Pick<IRoles, "store_location_id" | "purchase_location_id" | "gate_id" | "office_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "customer_management_body_id" | "qa_location_id" | "accounts_location_id" | "audits_id">> {
|
|
43
|
+
export interface IRoleFilters extends Partial<Pick<IRoles, "store_location_id" | "purchase_location_id" | "gate_id" | "office_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "customer_management_body_id" | "qa_location_id" | "accounts_location_id" | "audits_id" | "transporter_management_body_id">> {
|
|
42
44
|
type?: string;
|
|
43
45
|
name?: string;
|
|
44
46
|
department_ids?: string[];
|
|
@@ -68,6 +70,7 @@ export interface IRoles {
|
|
|
68
70
|
qa_location_id: string | null;
|
|
69
71
|
accounts_location_id: string | null;
|
|
70
72
|
audits_id: string | null;
|
|
73
|
+
transporter_management_body_id?: string | null;
|
|
71
74
|
is_enabled: boolean;
|
|
72
75
|
is_deleted: boolean;
|
|
73
76
|
deleted_at: string;
|
|
@@ -92,8 +95,9 @@ export interface IRoles {
|
|
|
92
95
|
qa_location: INestedQALocation | null;
|
|
93
96
|
accounts_location: INestedAccountsLocation | null;
|
|
94
97
|
audits: INestedAudits | null;
|
|
98
|
+
transporter_management_body: INestedTransporterManagementBody | null;
|
|
95
99
|
}
|
|
96
|
-
export interface INestedRole extends Omit<IRoles, "company" | "department" | "office" | "store_location" | "purchase_location" | "gates" | "permissions" | "assigned_active_users" | "approval_chains" | "entity_approval_chain_entries" | "assigned_users" | "vendor_management_body" | "item_management_body" | "checkpoint" | "associated_queue_jobs" | "customer_management_body" | "qa_location" | "accounts_location" | "audits"> {
|
|
100
|
+
export interface INestedRole extends Omit<IRoles, "company" | "department" | "office" | "store_location" | "purchase_location" | "gates" | "permissions" | "assigned_active_users" | "approval_chains" | "entity_approval_chain_entries" | "assigned_users" | "vendor_management_body" | "item_management_body" | "checkpoint" | "associated_queue_jobs" | "customer_management_body" | "qa_location" | "accounts_location" | "audits" | "transporter_management_body"> {
|
|
97
101
|
}
|
|
98
102
|
export interface IPermissions extends Record<string | PERMISSION_ACTIONS, any> {
|
|
99
103
|
id: string;
|
|
@@ -26,6 +26,7 @@ var RolesInclude;
|
|
|
26
26
|
RolesInclude["qa_location"] = "qa_location";
|
|
27
27
|
RolesInclude["accounts_location"] = "accounts_location";
|
|
28
28
|
RolesInclude["audits"] = "audits";
|
|
29
|
+
RolesInclude["transporter_management_body"] = "transporter_management_body";
|
|
29
30
|
})(RolesInclude || (exports.RolesInclude = RolesInclude = {}));
|
|
30
31
|
var PermissionInclude;
|
|
31
32
|
(function (PermissionInclude) {
|
|
@@ -3,6 +3,8 @@ import { INestedASN } from "./asn.typings";
|
|
|
3
3
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
4
|
import { INestedCompany } from "./company.typings";
|
|
5
5
|
import { INestedDepartment } from "./department.typings";
|
|
6
|
+
import { INestedFO } from "./freightOrder.typings";
|
|
7
|
+
import { INestedFRR } from "./frr.typings";
|
|
6
8
|
import { INestedGate } from "./gate.typings";
|
|
7
9
|
import { INestedGRN } from "./grn.typings";
|
|
8
10
|
import { INestedIndent } from "./indent.typings";
|
|
@@ -59,6 +61,7 @@ export interface IStoreLocation extends IAddress {
|
|
|
59
61
|
mrns?: null | INestedMRN[];
|
|
60
62
|
prs?: null | INestedPR[];
|
|
61
63
|
as_shipping_location_for_rfqs?: null | INestedRFQ[];
|
|
64
|
+
as_source_location_for_frrs?: null | INestedFRR[];
|
|
62
65
|
as_shipping_location_for_quotes?: null | INestedQuote[];
|
|
63
66
|
target_offices?: null | INestedOffice[];
|
|
64
67
|
served_by_gates?: null | INestedGate[];
|
|
@@ -75,8 +78,9 @@ export interface IStoreLocation extends IAddress {
|
|
|
75
78
|
qa_locations: INestedQALocation | null;
|
|
76
79
|
accounts_locations: INestedAccountsLocation | null;
|
|
77
80
|
audits: INestedAudits[] | null;
|
|
81
|
+
as_source_location_for_fos?: null | INestedFO[];
|
|
78
82
|
}
|
|
79
|
-
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" | "qa_locations" | "accounts_locations" | "audits"> {
|
|
83
|
+
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_source_location_for_frrs" | "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" | "qa_locations" | "accounts_locations" | "audits" | "as_source_location_for_fos"> {
|
|
80
84
|
}
|
|
81
85
|
export declare enum StoreLocationInclude {
|
|
82
86
|
company = "company",
|
|
@@ -90,6 +94,7 @@ export declare enum StoreLocationInclude {
|
|
|
90
94
|
mrns = "mrns",
|
|
91
95
|
prs = "prs",
|
|
92
96
|
as_shipping_location_for_rfqs = "as_shipping_location_for_rfqs",
|
|
97
|
+
as_source_location_for_frrs = "as_source_location_for_frrs",
|
|
93
98
|
as_shipping_location_for_quotes = "as_shipping_location_for_quotes",
|
|
94
99
|
target_offices = "target_offices",
|
|
95
100
|
served_by_gates = "served_by_gates",
|
|
@@ -105,5 +110,6 @@ export declare enum StoreLocationInclude {
|
|
|
105
110
|
linked_checkpoints = "linked_checkpoints",
|
|
106
111
|
qa_locations = "qa_locations",
|
|
107
112
|
accounts_locations = "accounts_locations",
|
|
108
|
-
audits = "audits,"
|
|
113
|
+
audits = "audits,",
|
|
114
|
+
as_source_location_for_fos = "as_source_location_for_fos"
|
|
109
115
|
}
|
|
@@ -14,6 +14,7 @@ var StoreLocationInclude;
|
|
|
14
14
|
StoreLocationInclude["mrns"] = "mrns";
|
|
15
15
|
StoreLocationInclude["prs"] = "prs";
|
|
16
16
|
StoreLocationInclude["as_shipping_location_for_rfqs"] = "as_shipping_location_for_rfqs";
|
|
17
|
+
StoreLocationInclude["as_source_location_for_frrs"] = "as_source_location_for_frrs";
|
|
17
18
|
StoreLocationInclude["as_shipping_location_for_quotes"] = "as_shipping_location_for_quotes";
|
|
18
19
|
StoreLocationInclude["target_offices"] = "target_offices";
|
|
19
20
|
StoreLocationInclude["served_by_gates"] = "served_by_gates";
|
|
@@ -30,4 +31,5 @@ var StoreLocationInclude;
|
|
|
30
31
|
StoreLocationInclude["qa_locations"] = "qa_locations";
|
|
31
32
|
StoreLocationInclude["accounts_locations"] = "accounts_locations";
|
|
32
33
|
StoreLocationInclude["audits"] = "audits,";
|
|
34
|
+
StoreLocationInclude["as_source_location_for_fos"] = "as_source_location_for_fos";
|
|
33
35
|
})(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedTransporterDocumentManualVerificationByCompany } from "./common/transporterDocumentManualVerificationByCompany.typings";
|
|
3
|
+
import { INestedCompany } from "./company.typings";
|
|
4
|
+
import { INestedFO } from "./freightOrder.typings";
|
|
5
|
+
import { INestedFRR } from "./frr.typings";
|
|
6
|
+
import { INestedFreightQuote } from "./freightQuote.typings";
|
|
7
|
+
export interface ITransporter {
|
|
8
|
+
id: string;
|
|
9
|
+
transporter_trade_name: string;
|
|
10
|
+
contact: string;
|
|
11
|
+
email: string;
|
|
12
|
+
nature_of_business: string | null;
|
|
13
|
+
transporter_legal_name: string | null;
|
|
14
|
+
constitution_of_business: string | null;
|
|
15
|
+
pincode: string | null;
|
|
16
|
+
area: string | null;
|
|
17
|
+
city: string | null;
|
|
18
|
+
state: string | null;
|
|
19
|
+
address: string | null;
|
|
20
|
+
address_proof_attachment_link: string | null;
|
|
21
|
+
maps_location: string | null;
|
|
22
|
+
country: string | null;
|
|
23
|
+
firstname: string | null;
|
|
24
|
+
middlename: string | null;
|
|
25
|
+
lastname: string | null;
|
|
26
|
+
designation: string | null;
|
|
27
|
+
bank_name: string | null;
|
|
28
|
+
bank_branch_name: string | null;
|
|
29
|
+
beneficiary_name: string | null;
|
|
30
|
+
bank_account_number: string | null;
|
|
31
|
+
bank_ifsc_code: string | null;
|
|
32
|
+
bank_city: string | null;
|
|
33
|
+
bank_pincode: string | null;
|
|
34
|
+
cancelled_cheque_attachment_link: string | null;
|
|
35
|
+
bank_account_matching_percentage: number | null;
|
|
36
|
+
is_bank_details_verified: boolean;
|
|
37
|
+
gst_no: string | null;
|
|
38
|
+
gst_attachment_link: string | null;
|
|
39
|
+
is_gst_verified: boolean;
|
|
40
|
+
gst_declaration_form_link: string | null;
|
|
41
|
+
gst_matching_percentage: number | null;
|
|
42
|
+
pan_no: string | null;
|
|
43
|
+
pan_attachment_link: string | null;
|
|
44
|
+
is_pan_verified: boolean;
|
|
45
|
+
pan_matching_percentage: number | null;
|
|
46
|
+
cin: string | null;
|
|
47
|
+
cin_attachment_link: string | null;
|
|
48
|
+
is_cin_verified: boolean;
|
|
49
|
+
cin_matching_percentage: number | null;
|
|
50
|
+
udyam_aadhar: string | null;
|
|
51
|
+
udyam_aadhar_attachment_link: string | null;
|
|
52
|
+
udyam_aadhar_declaration_form_link: string | null;
|
|
53
|
+
is_udyam_verified: boolean;
|
|
54
|
+
iso_attachment_link: string | null;
|
|
55
|
+
msme_enterprise_type: string | null;
|
|
56
|
+
msme_major_activity: string | null;
|
|
57
|
+
udyam_matching_percentage: number | null;
|
|
58
|
+
fssai_no: string | null;
|
|
59
|
+
fssai_no_valid_from: string | null;
|
|
60
|
+
fssai_no_valid_to: string | null;
|
|
61
|
+
fssai_attachment_link: string | null;
|
|
62
|
+
is_fssai_verified: boolean;
|
|
63
|
+
fssai_matching_percentage: number | null;
|
|
64
|
+
svf_rollback_remark: string | null;
|
|
65
|
+
svf_form_status: TRANSPORTER_SVF_FORM_STATUS | null;
|
|
66
|
+
is_invitation_sent: boolean;
|
|
67
|
+
is_profile_complete: boolean;
|
|
68
|
+
is_profile_verified: boolean;
|
|
69
|
+
is_self_verified: boolean;
|
|
70
|
+
profile_img: string | null;
|
|
71
|
+
has_provided_consent: boolean | null;
|
|
72
|
+
is_enabled: boolean;
|
|
73
|
+
is_deleted: boolean;
|
|
74
|
+
deleted_at: string | null;
|
|
75
|
+
created_at: string;
|
|
76
|
+
updated_at: string;
|
|
77
|
+
associated_companies: INestedCompany[] | null;
|
|
78
|
+
transporter_documents_manual_verification_by_company: INestedTransporterDocumentManualVerificationByCompany[] | null;
|
|
79
|
+
as_additional_in_frrs: INestedFRR[] | null;
|
|
80
|
+
freight_quotes: INestedFreightQuote[] | null;
|
|
81
|
+
fos: INestedFO[] | null;
|
|
82
|
+
}
|
|
83
|
+
export interface INestedTransporter extends Omit<ITransporter, "associated_companies" | "transporter_documents_manual_verification_by_company" | "as_additional_in_frrs" | "freight_quotes" | "fos"> {
|
|
84
|
+
}
|
|
85
|
+
export declare enum TRANSPORTER_INCLUDE {
|
|
86
|
+
associated_companies = "associated_companies",
|
|
87
|
+
transporter_documents_manual_verification_by_company = "transporter_documents_manual_verification_by_company",
|
|
88
|
+
as_additional_in_frrs = "as_additional_in_frrs",
|
|
89
|
+
freight_quotes = "freight_quotes",
|
|
90
|
+
fos = "fos"
|
|
91
|
+
}
|
|
92
|
+
export declare enum TRANSPORTER_SVF_FORM_STATUS {
|
|
93
|
+
SENT = "SENT",
|
|
94
|
+
ANSWERED = "ANSWERED",
|
|
95
|
+
ROLLED_BACK = "ROLLED_BACK"
|
|
96
|
+
}
|
|
97
|
+
export interface ITransporterFilter {
|
|
98
|
+
name?: string;
|
|
99
|
+
include?: TRANSPORTER_INCLUDE[];
|
|
100
|
+
}
|
|
101
|
+
export interface ITransporterFiltersWithPagination extends IPaginationFilters, ITransporterFilter {
|
|
102
|
+
}
|
|
103
|
+
export interface ITRANSPOTER_SVF_TOKEN_PAYLOAD {
|
|
104
|
+
transporter_id: string;
|
|
105
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TRANSPORTER_SVF_FORM_STATUS = exports.TRANSPORTER_INCLUDE = void 0;
|
|
4
|
+
var TRANSPORTER_INCLUDE;
|
|
5
|
+
(function (TRANSPORTER_INCLUDE) {
|
|
6
|
+
TRANSPORTER_INCLUDE["associated_companies"] = "associated_companies";
|
|
7
|
+
TRANSPORTER_INCLUDE["transporter_documents_manual_verification_by_company"] = "transporter_documents_manual_verification_by_company";
|
|
8
|
+
TRANSPORTER_INCLUDE["as_additional_in_frrs"] = "as_additional_in_frrs";
|
|
9
|
+
TRANSPORTER_INCLUDE["freight_quotes"] = "freight_quotes";
|
|
10
|
+
TRANSPORTER_INCLUDE["fos"] = "fos";
|
|
11
|
+
})(TRANSPORTER_INCLUDE || (exports.TRANSPORTER_INCLUDE = TRANSPORTER_INCLUDE = {}));
|
|
12
|
+
var TRANSPORTER_SVF_FORM_STATUS;
|
|
13
|
+
(function (TRANSPORTER_SVF_FORM_STATUS) {
|
|
14
|
+
TRANSPORTER_SVF_FORM_STATUS["SENT"] = "SENT";
|
|
15
|
+
TRANSPORTER_SVF_FORM_STATUS["ANSWERED"] = "ANSWERED";
|
|
16
|
+
TRANSPORTER_SVF_FORM_STATUS["ROLLED_BACK"] = "ROLLED_BACK";
|
|
17
|
+
})(TRANSPORTER_SVF_FORM_STATUS || (exports.TRANSPORTER_SVF_FORM_STATUS = TRANSPORTER_SVF_FORM_STATUS = {}));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedCompanyTransporter } from "./companyTransporter.typings";
|
|
4
|
+
import { INestedFRR } from "./frr.typings";
|
|
5
|
+
import { INestedUser } from "./user.typings";
|
|
6
|
+
export interface ITransporterGroupFilters {
|
|
7
|
+
name?: string;
|
|
8
|
+
keywords?: string[];
|
|
9
|
+
include?: TRANSPORTER_GROUP_INCLUDE[];
|
|
10
|
+
}
|
|
11
|
+
export interface ITransporterGroupFiltersWithPagination extends ITransporterGroupFilters, IPaginationFilters {
|
|
12
|
+
}
|
|
13
|
+
export declare enum TRANSPORTER_GROUP_INCLUDE {
|
|
14
|
+
company = "company",
|
|
15
|
+
created_by_user = "created_by_user",
|
|
16
|
+
last_updated_by_user = "last_updated_by_user",
|
|
17
|
+
company_transporters = "company_transporters",
|
|
18
|
+
frrs = "frrs"
|
|
19
|
+
}
|
|
20
|
+
export interface ITransporterGroup {
|
|
21
|
+
id: string;
|
|
22
|
+
company_id: string;
|
|
23
|
+
transporter_group_name: string;
|
|
24
|
+
transporter_group_code: string;
|
|
25
|
+
keywords: string[];
|
|
26
|
+
description: string | null;
|
|
27
|
+
created_by_user_id: string;
|
|
28
|
+
last_updated_by_user_id: string;
|
|
29
|
+
is_enabled: boolean;
|
|
30
|
+
is_deleted: boolean;
|
|
31
|
+
deleted_at: string | null;
|
|
32
|
+
created_at: string;
|
|
33
|
+
updated_at: string;
|
|
34
|
+
company: INestedCompany | null;
|
|
35
|
+
created_by_user: INestedUser | null;
|
|
36
|
+
last_updated_by_user: INestedUser | null;
|
|
37
|
+
company_transporters: INestedCompanyTransporter[] | null;
|
|
38
|
+
frrs: INestedFRR[] | null;
|
|
39
|
+
}
|
|
40
|
+
export interface INestedTransporterGroups extends Omit<ITransporterGroup, "company" | "created_by_user" | "last_updated_by_user" | "company_transporters" | "frrs"> {
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TRANSPORTER_GROUP_INCLUDE = void 0;
|
|
4
|
+
var TRANSPORTER_GROUP_INCLUDE;
|
|
5
|
+
(function (TRANSPORTER_GROUP_INCLUDE) {
|
|
6
|
+
TRANSPORTER_GROUP_INCLUDE["company"] = "company";
|
|
7
|
+
TRANSPORTER_GROUP_INCLUDE["created_by_user"] = "created_by_user";
|
|
8
|
+
TRANSPORTER_GROUP_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
TRANSPORTER_GROUP_INCLUDE["company_transporters"] = "company_transporters";
|
|
10
|
+
TRANSPORTER_GROUP_INCLUDE["frrs"] = "frrs";
|
|
11
|
+
})(TRANSPORTER_GROUP_INCLUDE || (exports.TRANSPORTER_GROUP_INCLUDE = TRANSPORTER_GROUP_INCLUDE = {}));
|