kcommons 18.22.0 → 18.22.2
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/typings/common/lifecycleLogger.typings.d.ts +11 -3
- package/build/typings/common/lifecycleLogger.typings.js +4 -0
- package/build/typings/companyConfig.typings.d.ts +1 -0
- package/build/typings/companyTransporter.typings.d.ts +17 -3
- package/build/typings/companyTransporter.typings.js +3 -0
- package/build/typings/department.typings.d.ts +14 -2
- package/build/typings/department.typings.js +4 -0
- package/build/typings/freightComparative.typings.d.ts +10 -3
- package/build/typings/freightComparative.typings.js +2 -0
- package/build/typings/freightOrder.typings.d.ts +52 -3
- package/build/typings/freightOrder.typings.js +12 -1
- package/build/typings/frr.typings.d.ts +11 -3
- package/build/typings/frr.typings.js +2 -0
- package/build/typings/system/queueJob.typings.d.ts +2 -1
- package/build/typings/system/queueJob.typings.js +1 -0
- package/build/typings/transporter.typings.d.ts +5 -2
- package/build/typings/transporter.typings.js +1 -0
- package/build/typings/transporterLogs.typings.d.ts +3 -1
- package/build/typings/transporterLogs.typings.js +2 -0
- package/build/typings/user.typings.d.ts +9 -2
- package/build/typings/user.typings.js +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DOCUMENTS } from "../../constants/permission.constants";
|
|
2
2
|
import { INestedCompany } from "../company.typings";
|
|
3
|
+
import { INestedTransporter } from "../transporter.typings";
|
|
3
4
|
import { INestedUser } from "../user.typings";
|
|
4
5
|
import { INestedVendor } from "../vendor.typings";
|
|
5
6
|
export declare enum LIFECYCLE_LOGS_ENTITY_TYPE {
|
|
@@ -45,12 +46,16 @@ export declare enum LIFECYCLE_LOG_ACTIONS {
|
|
|
45
46
|
REQUESTED_AT_SHIPPING_LOCATION = "REQUESTED_AT_SHIPPING_LOCATION",
|
|
46
47
|
IN_TRANSIT = "IN_TRANSIT",
|
|
47
48
|
AMENDED = "AMENDED",
|
|
48
|
-
SENT_TO_TRANSPORTERS = "SENT_TO_TRANSPORTERS"
|
|
49
|
+
SENT_TO_TRANSPORTERS = "SENT_TO_TRANSPORTERS",
|
|
50
|
+
ACCEPTED_BY_TRANSPORTER = "ACCEPTED_BY_TRANSPORTER",
|
|
51
|
+
REJECTED_BY_TRANSPORTER = "REJECTED_BY_TRANSPORTER",
|
|
52
|
+
AUTO_ACCEPTED = "AUTO_ACCEPTED"
|
|
49
53
|
}
|
|
50
54
|
export declare enum LIFECYCLE_LOGS_INCLUDE {
|
|
51
55
|
user = "user",
|
|
52
56
|
company = "company",
|
|
53
|
-
vendor = "vendor"
|
|
57
|
+
vendor = "vendor",
|
|
58
|
+
transporter = "transporter"
|
|
54
59
|
}
|
|
55
60
|
export interface IDocumentLoggerNodeData {
|
|
56
61
|
label: string;
|
|
@@ -69,6 +74,7 @@ export interface ILifecyleLogsFilters {
|
|
|
69
74
|
entity_id?: string;
|
|
70
75
|
user_id?: string;
|
|
71
76
|
vendor_id?: string;
|
|
77
|
+
transporter_id?: string;
|
|
72
78
|
include?: LIFECYCLE_LOGS_INCLUDE[];
|
|
73
79
|
}
|
|
74
80
|
export interface ILifecycleLogs {
|
|
@@ -76,6 +82,7 @@ export interface ILifecycleLogs {
|
|
|
76
82
|
company_id: string;
|
|
77
83
|
user_id: string | null;
|
|
78
84
|
vendor_id: string | null;
|
|
85
|
+
transporter_id: string | null;
|
|
79
86
|
entity_type: string;
|
|
80
87
|
entity_id: string;
|
|
81
88
|
entity_name: string;
|
|
@@ -87,8 +94,9 @@ export interface ILifecycleLogs {
|
|
|
87
94
|
user: INestedUser | null;
|
|
88
95
|
vendor: INestedVendor | null;
|
|
89
96
|
company: INestedCompany | null;
|
|
97
|
+
transporter: INestedTransporter | null;
|
|
90
98
|
}
|
|
91
|
-
export interface INestedLifecycleLogs extends Omit<ILifecycleLogs, "user" | "company" | "vendor"> {
|
|
99
|
+
export interface INestedLifecycleLogs extends Omit<ILifecycleLogs, "user" | "company" | "vendor" | "transporter"> {
|
|
92
100
|
}
|
|
93
101
|
export interface IGetLifecycleLogByIDRes {
|
|
94
102
|
before: ILifecycleLogs | null;
|
|
@@ -47,10 +47,14 @@ var LIFECYCLE_LOG_ACTIONS;
|
|
|
47
47
|
LIFECYCLE_LOG_ACTIONS["IN_TRANSIT"] = "IN_TRANSIT";
|
|
48
48
|
LIFECYCLE_LOG_ACTIONS["AMENDED"] = "AMENDED";
|
|
49
49
|
LIFECYCLE_LOG_ACTIONS["SENT_TO_TRANSPORTERS"] = "SENT_TO_TRANSPORTERS";
|
|
50
|
+
LIFECYCLE_LOG_ACTIONS["ACCEPTED_BY_TRANSPORTER"] = "ACCEPTED_BY_TRANSPORTER";
|
|
51
|
+
LIFECYCLE_LOG_ACTIONS["REJECTED_BY_TRANSPORTER"] = "REJECTED_BY_TRANSPORTER";
|
|
52
|
+
LIFECYCLE_LOG_ACTIONS["AUTO_ACCEPTED"] = "AUTO_ACCEPTED";
|
|
50
53
|
})(LIFECYCLE_LOG_ACTIONS || (exports.LIFECYCLE_LOG_ACTIONS = LIFECYCLE_LOG_ACTIONS = {}));
|
|
51
54
|
var LIFECYCLE_LOGS_INCLUDE;
|
|
52
55
|
(function (LIFECYCLE_LOGS_INCLUDE) {
|
|
53
56
|
LIFECYCLE_LOGS_INCLUDE["user"] = "user";
|
|
54
57
|
LIFECYCLE_LOGS_INCLUDE["company"] = "company";
|
|
55
58
|
LIFECYCLE_LOGS_INCLUDE["vendor"] = "vendor";
|
|
59
|
+
LIFECYCLE_LOGS_INCLUDE["transporter"] = "transporter";
|
|
56
60
|
})(LIFECYCLE_LOGS_INCLUDE || (exports.LIFECYCLE_LOGS_INCLUDE = LIFECYCLE_LOGS_INCLUDE = {}));
|
|
@@ -39,6 +39,7 @@ export interface ICompanyConfig {
|
|
|
39
39
|
week_off: IWeekOff[];
|
|
40
40
|
public_holidays: string[];
|
|
41
41
|
send_extra_forms_to_import_vendor: boolean;
|
|
42
|
+
fo_auto_acceptance_time_in_seconds: number | null;
|
|
42
43
|
created_at: string;
|
|
43
44
|
updated_at: string;
|
|
44
45
|
company: INestedCompany | null;
|
|
@@ -2,8 +2,10 @@ import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
|
2
2
|
import { ITransporterDocumentManualVerificationByCompanyForMetafields } from "./common/transporterDocumentManualVerificationByCompany.typings";
|
|
3
3
|
import { INestedCompany } from "./company.typings";
|
|
4
4
|
import { INestedCompanyTransporterCategory } from "./companyTransporterCategory.typings";
|
|
5
|
+
import { INestedDepartment } from "./department.typings";
|
|
5
6
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
6
7
|
import { INestedEntityApprovalChainEntryLog } from "./entityApprovalChainEntryLog.typings";
|
|
8
|
+
import { INestedEntityApprovalChainStageNames } from "./entityApprovalChainStageNames.typings";
|
|
7
9
|
import { INestedFO } from "./freightOrder.typings";
|
|
8
10
|
import { INestedFRR } from "./frr.typings";
|
|
9
11
|
import { ITransporter } from "./transporter.typings";
|
|
@@ -24,6 +26,12 @@ export interface ICompanyTransporter {
|
|
|
24
26
|
cancelled_by_user_id: string | null;
|
|
25
27
|
onboarded_by_id: string | null;
|
|
26
28
|
parent_company_transporter_category_id: string | null;
|
|
29
|
+
department_id?: string | null;
|
|
30
|
+
is_blacklisted?: boolean;
|
|
31
|
+
blacklist_remark?: string | null;
|
|
32
|
+
blacklisted_by_user_id?: string | null;
|
|
33
|
+
blacklisted_until?: string | null;
|
|
34
|
+
blacklisted_at?: string | null;
|
|
27
35
|
approved_at: string | null;
|
|
28
36
|
sent_for_approval_at: string | null;
|
|
29
37
|
cancelled_at: string | null;
|
|
@@ -46,9 +54,11 @@ export interface ICompanyTransporter {
|
|
|
46
54
|
frrs_sent: INestedFRR[] | null;
|
|
47
55
|
fos: INestedFO[] | null;
|
|
48
56
|
transporter_logs: INestedTransporterLogs[] | null;
|
|
57
|
+
blacklisted_by_user: INestedUser | null;
|
|
58
|
+
department: INestedDepartment | null;
|
|
49
59
|
metafields: ICompanyTransporterMetafields | null;
|
|
50
60
|
}
|
|
51
|
-
export interface INestedCompanyTransporter extends Omit<ICompanyTransporter, "company" | "transporter" | "parent_company_transporter_category" | "created_by_user" | "last_updated_by" | "sent_for_approval_by_user" | "cancelled_by_user" | "onboarded_by_user" | "approval_chain" | "transporter_groups" | "frrs_sent" | "fos" | "transporter_logs" | "metafields"> {
|
|
61
|
+
export interface INestedCompanyTransporter extends Omit<ICompanyTransporter, "company" | "transporter" | "parent_company_transporter_category" | "created_by_user" | "last_updated_by" | "sent_for_approval_by_user" | "cancelled_by_user" | "onboarded_by_user" | "approval_chain" | "transporter_groups" | "frrs_sent" | "fos" | "transporter_logs" | "department" | "blacklisted_by_user" | "metafields"> {
|
|
52
62
|
}
|
|
53
63
|
export declare enum COMPANY_TRANSPORTER_INCLUDE {
|
|
54
64
|
company = "company",
|
|
@@ -63,7 +73,9 @@ export declare enum COMPANY_TRANSPORTER_INCLUDE {
|
|
|
63
73
|
transporter_groups = "transporter_groups",
|
|
64
74
|
frrs_sent = "frrs_sent",
|
|
65
75
|
fos = "fos",
|
|
66
|
-
transporter_logs = "transporter_logs"
|
|
76
|
+
transporter_logs = "transporter_logs",
|
|
77
|
+
department = "department",
|
|
78
|
+
blacklisted_by_user = "blacklisted_by_user"
|
|
67
79
|
}
|
|
68
80
|
export declare enum COMPANY_FORM_STATUS_FOR_TRANSPORTER {
|
|
69
81
|
INVITED = "INVITED",
|
|
@@ -99,9 +111,11 @@ export interface ICompanyTransporterMetafields {
|
|
|
99
111
|
manual_verification_records: ITransporterDocumentManualVerificationByCompanyForMetafields[] | null;
|
|
100
112
|
approval_logs: INestedEntityApprovalChainEntryLog[] | null;
|
|
101
113
|
pending_with_data: ITransporterPendingWithData | null;
|
|
114
|
+
approval_chain_stage_names: INestedEntityApprovalChainStageNames[] | null;
|
|
102
115
|
}
|
|
103
116
|
export declare enum COMPANY_TRANSPORTER_METAFIELDS_INCLUDE {
|
|
104
117
|
manual_verification_records = "manual_verification_records",
|
|
105
118
|
approval_logs = "approval_logs",
|
|
106
|
-
pending_with_data = "pending_with_data"
|
|
119
|
+
pending_with_data = "pending_with_data",
|
|
120
|
+
approval_chain_stage_names = "approval_chain_stage_names"
|
|
107
121
|
}
|
|
@@ -16,6 +16,8 @@ var COMPANY_TRANSPORTER_INCLUDE;
|
|
|
16
16
|
COMPANY_TRANSPORTER_INCLUDE["frrs_sent"] = "frrs_sent";
|
|
17
17
|
COMPANY_TRANSPORTER_INCLUDE["fos"] = "fos";
|
|
18
18
|
COMPANY_TRANSPORTER_INCLUDE["transporter_logs"] = "transporter_logs";
|
|
19
|
+
COMPANY_TRANSPORTER_INCLUDE["department"] = "department";
|
|
20
|
+
COMPANY_TRANSPORTER_INCLUDE["blacklisted_by_user"] = "blacklisted_by_user";
|
|
19
21
|
})(COMPANY_TRANSPORTER_INCLUDE || (exports.COMPANY_TRANSPORTER_INCLUDE = COMPANY_TRANSPORTER_INCLUDE = {}));
|
|
20
22
|
var COMPANY_FORM_STATUS_FOR_TRANSPORTER;
|
|
21
23
|
(function (COMPANY_FORM_STATUS_FOR_TRANSPORTER) {
|
|
@@ -42,4 +44,5 @@ var COMPANY_TRANSPORTER_METAFIELDS_INCLUDE;
|
|
|
42
44
|
COMPANY_TRANSPORTER_METAFIELDS_INCLUDE["manual_verification_records"] = "manual_verification_records";
|
|
43
45
|
COMPANY_TRANSPORTER_METAFIELDS_INCLUDE["approval_logs"] = "approval_logs";
|
|
44
46
|
COMPANY_TRANSPORTER_METAFIELDS_INCLUDE["pending_with_data"] = "pending_with_data";
|
|
47
|
+
COMPANY_TRANSPORTER_METAFIELDS_INCLUDE["approval_chain_stage_names"] = "approval_chain_stage_names";
|
|
45
48
|
})(COMPANY_TRANSPORTER_METAFIELDS_INCLUDE || (exports.COMPANY_TRANSPORTER_METAFIELDS_INCLUDE = COMPANY_TRANSPORTER_METAFIELDS_INCLUDE = {}));
|
|
@@ -32,6 +32,10 @@ import { INestedRFQ } from "./rfq.typings";
|
|
|
32
32
|
import { INestedRole } from "./roles.typings";
|
|
33
33
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
34
34
|
import { INestedUser } from "./user.typings";
|
|
35
|
+
import { INestedCompanyTransporter } from "./companyTransporter.typings";
|
|
36
|
+
import { INestedFRR } from "./frr.typings";
|
|
37
|
+
import { INestedFreightComparative } from "./freightComparative.typings";
|
|
38
|
+
import { INestedFO } from "./freightOrder.typings";
|
|
35
39
|
export interface IDepartmentFilters extends Partial<Pick<IDepartment, "office_id" | "store_location_id" | "purchase_location_id" | "gate_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "customer_management_body_id" | "accounts_location_id" | "qa_location_id" | "audits_id" | "transporter_management_body_id">> {
|
|
36
40
|
name?: string;
|
|
37
41
|
type?: EntityTypes;
|
|
@@ -96,13 +100,17 @@ export interface IDepartment {
|
|
|
96
100
|
qcds?: null | INestedQualityClearanceDocument[];
|
|
97
101
|
vendor_onboarding_requests?: INestedVendorOnboardingRequest[] | null;
|
|
98
102
|
approval_configs?: INestedApprovalConfig[] | null;
|
|
103
|
+
company_transporters?: INestedCompanyTransporter[] | null;
|
|
104
|
+
frrs?: INestedFRR[] | null;
|
|
105
|
+
freight_comparatives?: INestedFreightComparative[] | null;
|
|
106
|
+
fos?: INestedFO[] | null;
|
|
99
107
|
parent_customer_management_body?: INestedCustomerManagementBody | null;
|
|
100
108
|
qa_location: INestedQALocation | null;
|
|
101
109
|
accounts_location: INestedAccountsLocation | null;
|
|
102
110
|
audits: INestedAudits | null;
|
|
103
111
|
parent_transporter_management_body: INestedTransporterManagementBody | null;
|
|
104
112
|
}
|
|
105
|
-
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "subdepartments" | "roles" | "grns" | "mrns" | "prs" | "rfqs" | "pos" | "asns" | "comparatives" | "istds" | "ves" | "company_vendors" | "company_customers" | "items" | "qcds" | "parent_vendor_management_body" | "vendor_onboarding_requests" | "approval_configs" | "parent_item_management_body" | "parent_checkpoint" | "parent_customer_management_body" | "qa_location" | "accounts_location" | "audits" | "parent_transporter_management_body"> {
|
|
113
|
+
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "subdepartments" | "roles" | "grns" | "mrns" | "prs" | "rfqs" | "pos" | "asns" | "comparatives" | "istds" | "ves" | "company_vendors" | "company_customers" | "items" | "qcds" | "parent_vendor_management_body" | "vendor_onboarding_requests" | "approval_configs" | "parent_item_management_body" | "parent_checkpoint" | "parent_customer_management_body" | "qa_location" | "accounts_location" | "audits" | "parent_transporter_management_body" | "company_transporters" | "frrs" | "freight_comparatives" | "fos"> {
|
|
106
114
|
}
|
|
107
115
|
export declare enum DepartmentInclude {
|
|
108
116
|
company = "company",
|
|
@@ -137,7 +145,11 @@ export declare enum DepartmentInclude {
|
|
|
137
145
|
qa_location = "qa_location",
|
|
138
146
|
accounts_location = "accounts_location",
|
|
139
147
|
audits = "audits",
|
|
140
|
-
parent_transporter_management_body = "parent_transporter_management_body"
|
|
148
|
+
parent_transporter_management_body = "parent_transporter_management_body",
|
|
149
|
+
company_transporters = "company_transporters",
|
|
150
|
+
frrs = "frrs",
|
|
151
|
+
freight_comparatives = "freight_comparatives",
|
|
152
|
+
fos = "fos"
|
|
141
153
|
}
|
|
142
154
|
export interface ISubDepartment {
|
|
143
155
|
id: string;
|
|
@@ -36,4 +36,8 @@ var DepartmentInclude;
|
|
|
36
36
|
DepartmentInclude["accounts_location"] = "accounts_location";
|
|
37
37
|
DepartmentInclude["audits"] = "audits";
|
|
38
38
|
DepartmentInclude["parent_transporter_management_body"] = "parent_transporter_management_body";
|
|
39
|
+
DepartmentInclude["company_transporters"] = "company_transporters";
|
|
40
|
+
DepartmentInclude["frrs"] = "frrs";
|
|
41
|
+
DepartmentInclude["freight_comparatives"] = "freight_comparatives";
|
|
42
|
+
DepartmentInclude["fos"] = "fos";
|
|
39
43
|
})(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
|
|
@@ -8,6 +8,8 @@ import { INestedFRR, INestedFRRVehicle } from "./frr.typings";
|
|
|
8
8
|
import { INestedFreightQuote, INestedFreightQuoteVehicle } from "./freightQuote.typings";
|
|
9
9
|
import { INestedUser, IUser } from "./user.typings";
|
|
10
10
|
import { INestedVehicle } from "./vehicle.typings";
|
|
11
|
+
import { INestedDepartment } from "./department.typings";
|
|
12
|
+
import { INestedEntityApprovalChainStageNames } from "./entityApprovalChainStageNames.typings";
|
|
11
13
|
export declare enum FREIGHT_COMPARATIVE_STATUS {
|
|
12
14
|
DRAFT = "DRAFT",
|
|
13
15
|
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
@@ -26,7 +28,8 @@ export declare enum FREIGHT_COMPARATIVE_INCLUDE {
|
|
|
26
28
|
vehicles = "vehicles",
|
|
27
29
|
freight_comparative_vehicles_quantity_splits = "freight_comparative_vehicles_quantity_splits",
|
|
28
30
|
early_view_access_requests = "early_view_access_requests",
|
|
29
|
-
child_fos = "child_fos"
|
|
31
|
+
child_fos = "child_fos",
|
|
32
|
+
department = "department"
|
|
30
33
|
}
|
|
31
34
|
export interface IFreightComparative {
|
|
32
35
|
id: string;
|
|
@@ -35,6 +38,7 @@ export interface IFreightComparative {
|
|
|
35
38
|
savings: number | null;
|
|
36
39
|
sent_for_approval_by_user_id: string | null;
|
|
37
40
|
status: FREIGHT_COMPARATIVE_STATUS;
|
|
41
|
+
department_id?: string | null;
|
|
38
42
|
is_approved: boolean;
|
|
39
43
|
is_deleted: boolean;
|
|
40
44
|
deleted_at: string | null;
|
|
@@ -51,6 +55,7 @@ export interface IFreightComparative {
|
|
|
51
55
|
freight_comparative_vehicles_quantity_splits: INestedFreightComparativeVehiclesQuantitySplit[] | null;
|
|
52
56
|
early_view_access_requests: INestedFreightComparativeEarlyAccessRequest[] | null;
|
|
53
57
|
child_fos: INestedFO[] | null;
|
|
58
|
+
department: INestedDepartment | null;
|
|
54
59
|
metafields: IFreightComparativeMetafields | null;
|
|
55
60
|
}
|
|
56
61
|
/** One transporter with a `FreightQuote` against this comparative — profile
|
|
@@ -83,14 +88,16 @@ export interface IFreightComparativeMetafields {
|
|
|
83
88
|
early_access_user_data: INestedUser[] | null;
|
|
84
89
|
freight_quote_vehicles: INestedFreightQuoteVehicle[] | null;
|
|
85
90
|
transporter_data: IFreightComparativeTransporterMetafieldsData[] | null;
|
|
91
|
+
approval_chain_stage_names: INestedEntityApprovalChainStageNames[] | null;
|
|
86
92
|
}
|
|
87
|
-
export interface INestedFreightComparative extends Omit<IFreightComparative, "company" | "parent_frr" | "sent_for_approval_by_user" | "freight_quotes" | "approval_chain" | "vehicles" | "freight_comparative_vehicles_quantity_splits" | "early_view_access_requests" | "metafields" | "child_fos"> {
|
|
93
|
+
export interface INestedFreightComparative extends Omit<IFreightComparative, "company" | "parent_frr" | "sent_for_approval_by_user" | "freight_quotes" | "approval_chain" | "vehicles" | "freight_comparative_vehicles_quantity_splits" | "early_view_access_requests" | "metafields" | "child_fos" | "department"> {
|
|
88
94
|
}
|
|
89
95
|
export declare enum FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE {
|
|
90
96
|
frr_vehicle_data = "frr_vehicle_data",
|
|
91
97
|
early_access_user_data = "early_access_user_data",
|
|
92
98
|
freight_quote_vehicles = "freight_quote_vehicles",
|
|
93
|
-
transporter_data = "transporter_data"
|
|
99
|
+
transporter_data = "transporter_data",
|
|
100
|
+
approval_chain_stage_names = "approval_chain_stage_names"
|
|
94
101
|
}
|
|
95
102
|
export interface IFreightComparativeFilters {
|
|
96
103
|
frr_id?: string;
|
|
@@ -22,6 +22,7 @@ var FREIGHT_COMPARATIVE_INCLUDE;
|
|
|
22
22
|
FREIGHT_COMPARATIVE_INCLUDE["freight_comparative_vehicles_quantity_splits"] = "freight_comparative_vehicles_quantity_splits";
|
|
23
23
|
FREIGHT_COMPARATIVE_INCLUDE["early_view_access_requests"] = "early_view_access_requests";
|
|
24
24
|
FREIGHT_COMPARATIVE_INCLUDE["child_fos"] = "child_fos";
|
|
25
|
+
FREIGHT_COMPARATIVE_INCLUDE["department"] = "department";
|
|
25
26
|
})(FREIGHT_COMPARATIVE_INCLUDE || (exports.FREIGHT_COMPARATIVE_INCLUDE = FREIGHT_COMPARATIVE_INCLUDE = {}));
|
|
26
27
|
var FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE;
|
|
27
28
|
(function (FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE) {
|
|
@@ -29,6 +30,7 @@ var FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE;
|
|
|
29
30
|
FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE["early_access_user_data"] = "early_access_user_data";
|
|
30
31
|
FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE["freight_quote_vehicles"] = "freight_quote_vehicles";
|
|
31
32
|
FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE["transporter_data"] = "transporter_data";
|
|
33
|
+
FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE["approval_chain_stage_names"] = "approval_chain_stage_names";
|
|
32
34
|
})(FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE || (exports.FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE = FREIGHT_COMPARATIVE_METAFIELDS_INCLUDE = {}));
|
|
33
35
|
// Freight Comparative Vehicles
|
|
34
36
|
var FREIGHT_COMPARATIVE_VEHICLE_INCLUDE;
|
|
@@ -11,8 +11,10 @@ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
|
11
11
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
12
12
|
import { INestedTransporter } from "./transporter.typings";
|
|
13
13
|
import { INestedUser, IUser } from "./user.typings";
|
|
14
|
+
import { INestedEntityApprovalChainStageNames } from "./entityApprovalChainStageNames.typings";
|
|
14
15
|
import { INestedVehicle, VEHICLE_MODE_OF_TRANSPORT } from "./vehicle.typings";
|
|
15
16
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
17
|
+
import { INestedDepartment } from "./department.typings";
|
|
16
18
|
export declare enum FO_STATUS {
|
|
17
19
|
DRAFT = "DRAFT",
|
|
18
20
|
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
@@ -48,13 +50,30 @@ export declare enum FO_INCLUDE {
|
|
|
48
50
|
freight_comparative = "freight_comparative",
|
|
49
51
|
vehicles = "vehicles",
|
|
50
52
|
fo_destinations = "fo_destinations",
|
|
51
|
-
approval_chain = "approval_chain"
|
|
53
|
+
approval_chain = "approval_chain",
|
|
54
|
+
fo_fine_logs = "fo_fine_logs",
|
|
55
|
+
fine_updated_by = "fine_updated_by",
|
|
56
|
+
department = "department"
|
|
52
57
|
}
|
|
53
58
|
export declare enum FO_METAFIELDS_INCLUDE {
|
|
54
|
-
vehicle_driver_details_data = "vehicle_driver_details_data"
|
|
59
|
+
vehicle_driver_details_data = "vehicle_driver_details_data",
|
|
60
|
+
fo_fine_log_user_data = "fo_fine_log_user_data",
|
|
61
|
+
approval_chain_stage_names = "approval_chain_stage_names"
|
|
62
|
+
}
|
|
63
|
+
export interface IFOFineLogUserMetafieldsData {
|
|
64
|
+
id: string;
|
|
65
|
+
fo_fine_log_id: string;
|
|
66
|
+
firstname: string | null;
|
|
67
|
+
lastname: string | null;
|
|
68
|
+
middlename: string | null;
|
|
69
|
+
email: string | null;
|
|
70
|
+
contact: string | null;
|
|
71
|
+
employee_code: string | null;
|
|
55
72
|
}
|
|
56
73
|
export interface IFOMetafields {
|
|
57
74
|
vehicle_driver_details_data: INestedFOVehicleDriverDetails[];
|
|
75
|
+
fo_fine_log_user_data: IFOFineLogUserMetafieldsData[];
|
|
76
|
+
approval_chain_stage_names: INestedEntityApprovalChainStageNames[];
|
|
58
77
|
}
|
|
59
78
|
export interface IFOFilters {
|
|
60
79
|
company_id?: string;
|
|
@@ -97,6 +116,10 @@ export interface IFO {
|
|
|
97
116
|
gst?: number | null;
|
|
98
117
|
subtotal?: number | null;
|
|
99
118
|
mode_of_transport: VEHICLE_MODE_OF_TRANSPORT;
|
|
119
|
+
customer_name?: string | null;
|
|
120
|
+
fine?: number | null;
|
|
121
|
+
fine_remark?: string | null;
|
|
122
|
+
fine_updated_by_user_id?: string | null;
|
|
100
123
|
sent_for_approval_by_id?: string | null;
|
|
101
124
|
sent_to_transporter_by_id?: string | null;
|
|
102
125
|
parent_freight_quote_id?: string | null;
|
|
@@ -106,6 +129,7 @@ export interface IFO {
|
|
|
106
129
|
terms_and_conditions?: string | null;
|
|
107
130
|
payment_terms?: string | null;
|
|
108
131
|
remark?: string | null;
|
|
132
|
+
department_id?: string | null;
|
|
109
133
|
/**@deprecated use the field from FOVehicles */
|
|
110
134
|
lorry_receipt_attachment_link: string[];
|
|
111
135
|
/**@deprecated use the field from FOVehicles */
|
|
@@ -145,9 +169,34 @@ export interface IFO {
|
|
|
145
169
|
vehicles?: INestedFOVehicle[] | null;
|
|
146
170
|
fo_destinations?: INestedFODestination[] | null;
|
|
147
171
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
172
|
+
fine_updated_by?: INestedUser | null;
|
|
173
|
+
fo_fine_logs?: INestedFOFineLog[] | null;
|
|
174
|
+
department?: INestedDepartment | null;
|
|
148
175
|
metafields?: IFOMetafields | null;
|
|
149
176
|
}
|
|
150
|
-
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"> {
|
|
177
|
+
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" | "fo_fine_logs" | "fine_updated_by" | "department" | "metafields"> {
|
|
178
|
+
}
|
|
179
|
+
export declare enum FO_FINE_LOG_INCLUDE {
|
|
180
|
+
parent_fo = "parent_fo",
|
|
181
|
+
user = "user"
|
|
182
|
+
}
|
|
183
|
+
export interface IFOFineLog {
|
|
184
|
+
id: string;
|
|
185
|
+
fine: number;
|
|
186
|
+
remark: string;
|
|
187
|
+
user_id: string;
|
|
188
|
+
fo_id: string;
|
|
189
|
+
created_at?: string | null;
|
|
190
|
+
updated_at?: string | null;
|
|
191
|
+
parent_fo?: INestedFO | null;
|
|
192
|
+
user?: INestedUser | null;
|
|
193
|
+
}
|
|
194
|
+
export interface INestedFOFineLog extends Omit<IFOFineLog, "parent_fo" | "user"> {
|
|
195
|
+
}
|
|
196
|
+
export interface IFOFineLogFilters extends IPaginationFilters {
|
|
197
|
+
fo_id?: string;
|
|
198
|
+
user_id?: string;
|
|
199
|
+
include?: FO_FINE_LOG_INCLUDE[];
|
|
151
200
|
}
|
|
152
201
|
export declare enum FO_VEHICLE_INCLUDE {
|
|
153
202
|
company = "company",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
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;
|
|
3
|
+
exports.FO_VEHICLE_DRIVER_DETAILS_INCLUDE = exports.FO_DESTINATION_INCLUDE = exports.FO_VEHICLE_INCLUDE = exports.FO_FINE_LOG_INCLUDE = exports.FO_METAFIELDS_INCLUDE = exports.FO_INCLUDE = exports.FO_LIST_TYPES = exports.FO_TYPE = exports.FO_STATUS = void 0;
|
|
4
4
|
var FO_STATUS;
|
|
5
5
|
(function (FO_STATUS) {
|
|
6
6
|
FO_STATUS["DRAFT"] = "DRAFT";
|
|
@@ -41,11 +41,22 @@ var FO_INCLUDE;
|
|
|
41
41
|
FO_INCLUDE["vehicles"] = "vehicles";
|
|
42
42
|
FO_INCLUDE["fo_destinations"] = "fo_destinations";
|
|
43
43
|
FO_INCLUDE["approval_chain"] = "approval_chain";
|
|
44
|
+
FO_INCLUDE["fo_fine_logs"] = "fo_fine_logs";
|
|
45
|
+
FO_INCLUDE["fine_updated_by"] = "fine_updated_by";
|
|
46
|
+
FO_INCLUDE["department"] = "department";
|
|
44
47
|
})(FO_INCLUDE || (exports.FO_INCLUDE = FO_INCLUDE = {}));
|
|
45
48
|
var FO_METAFIELDS_INCLUDE;
|
|
46
49
|
(function (FO_METAFIELDS_INCLUDE) {
|
|
47
50
|
FO_METAFIELDS_INCLUDE["vehicle_driver_details_data"] = "vehicle_driver_details_data";
|
|
51
|
+
FO_METAFIELDS_INCLUDE["fo_fine_log_user_data"] = "fo_fine_log_user_data";
|
|
52
|
+
FO_METAFIELDS_INCLUDE["approval_chain_stage_names"] = "approval_chain_stage_names";
|
|
48
53
|
})(FO_METAFIELDS_INCLUDE || (exports.FO_METAFIELDS_INCLUDE = FO_METAFIELDS_INCLUDE = {}));
|
|
54
|
+
// FO Fine Logs
|
|
55
|
+
var FO_FINE_LOG_INCLUDE;
|
|
56
|
+
(function (FO_FINE_LOG_INCLUDE) {
|
|
57
|
+
FO_FINE_LOG_INCLUDE["parent_fo"] = "parent_fo";
|
|
58
|
+
FO_FINE_LOG_INCLUDE["user"] = "user";
|
|
59
|
+
})(FO_FINE_LOG_INCLUDE || (exports.FO_FINE_LOG_INCLUDE = FO_FINE_LOG_INCLUDE = {}));
|
|
49
60
|
// FO Vehicles
|
|
50
61
|
var FO_VEHICLE_INCLUDE;
|
|
51
62
|
(function (FO_VEHICLE_INCLUDE) {
|
|
@@ -3,6 +3,7 @@ import { IAddress } from "./common/address.typings";
|
|
|
3
3
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
4
|
import { INestedCompany } from "./company.typings";
|
|
5
5
|
import { INestedCompanyTransporter } from "./companyTransporter.typings";
|
|
6
|
+
import { INestedEntityApprovalChainStageNames } from "./entityApprovalChainStageNames.typings";
|
|
6
7
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
7
8
|
import { INestedFreightComparative } from "./freightComparative.typings";
|
|
8
9
|
import { INestedFreightQuote } from "./freightQuote.typings";
|
|
@@ -12,6 +13,7 @@ import { INestedTransporter, ITransporter } from "./transporter.typings";
|
|
|
12
13
|
import { INestedTransporterGroups } from "./transporterGroup.typings";
|
|
13
14
|
import { INestedUser, IUser } from "./user.typings";
|
|
14
15
|
import { INestedVehicle, VEHICLE_MODE_OF_TRANSPORT } from "./vehicle.typings";
|
|
16
|
+
import { INestedDepartment } from "./department.typings";
|
|
15
17
|
export declare enum FRR_LIST_TYPES {
|
|
16
18
|
ALL = "ALL",
|
|
17
19
|
CREATED_BY_ME = "CREATED_BY_ME",
|
|
@@ -50,7 +52,8 @@ export declare enum FRR_INCLUDE {
|
|
|
50
52
|
frr_transporter = "frr_transporter",
|
|
51
53
|
frr_transporter_groups = "frr_transporter_groups",
|
|
52
54
|
freight_quotes = "freight_quotes",
|
|
53
|
-
freight_comparative = "freight_comparative"
|
|
55
|
+
freight_comparative = "freight_comparative",
|
|
56
|
+
department = "department"
|
|
54
57
|
}
|
|
55
58
|
/** One resolved transporter this FRR was (or will be) sent to — direct, via a
|
|
56
59
|
* transporter group, or an ad-hoc additional transporter — deduped by transporter_id,
|
|
@@ -78,9 +81,11 @@ export interface IFRRTransporterMetafieldsData {
|
|
|
78
81
|
}
|
|
79
82
|
export interface IFRRMetafields {
|
|
80
83
|
transporter_data: IFRRTransporterMetafieldsData[] | null;
|
|
84
|
+
approval_chain_stage_names: INestedEntityApprovalChainStageNames[] | null;
|
|
81
85
|
}
|
|
82
86
|
export declare enum FRR_METAFIELDS_INCLUDE {
|
|
83
|
-
transporter_data = "transporter_data"
|
|
87
|
+
transporter_data = "transporter_data",
|
|
88
|
+
approval_chain_stage_names = "approval_chain_stage_names"
|
|
84
89
|
}
|
|
85
90
|
export interface IFRRFilters {
|
|
86
91
|
parent_purchase_location_id?: string;
|
|
@@ -114,6 +119,8 @@ export interface IFRR {
|
|
|
114
119
|
mode_of_transport: VEHICLE_MODE_OF_TRANSPORT;
|
|
115
120
|
is_target_budget_visible?: boolean | null;
|
|
116
121
|
attachment_link?: string | null;
|
|
122
|
+
customer_name?: string | null;
|
|
123
|
+
department_id?: string | null;
|
|
117
124
|
is_deleted?: boolean | null;
|
|
118
125
|
deleted_at?: string | null;
|
|
119
126
|
approved_at?: string | null;
|
|
@@ -138,9 +145,10 @@ export interface IFRR {
|
|
|
138
145
|
frr_transporter_groups?: INestedTransporterGroups[] | null;
|
|
139
146
|
freight_quotes?: INestedFreightQuote[] | null;
|
|
140
147
|
freight_comparative?: INestedFreightComparative | null;
|
|
148
|
+
department?: INestedDepartment | null;
|
|
141
149
|
metafields?: IFRRMetafields | null;
|
|
142
150
|
}
|
|
143
|
-
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" | "metafields"> {
|
|
151
|
+
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" | "department" | "metafields"> {
|
|
144
152
|
}
|
|
145
153
|
export declare enum FRR_VEHICLE_INCLUDE {
|
|
146
154
|
vehicle = "vehicle",
|
|
@@ -45,10 +45,12 @@ var FRR_INCLUDE;
|
|
|
45
45
|
FRR_INCLUDE["frr_transporter_groups"] = "frr_transporter_groups";
|
|
46
46
|
FRR_INCLUDE["freight_quotes"] = "freight_quotes";
|
|
47
47
|
FRR_INCLUDE["freight_comparative"] = "freight_comparative";
|
|
48
|
+
FRR_INCLUDE["department"] = "department";
|
|
48
49
|
})(FRR_INCLUDE || (exports.FRR_INCLUDE = FRR_INCLUDE = {}));
|
|
49
50
|
var FRR_METAFIELDS_INCLUDE;
|
|
50
51
|
(function (FRR_METAFIELDS_INCLUDE) {
|
|
51
52
|
FRR_METAFIELDS_INCLUDE["transporter_data"] = "transporter_data";
|
|
53
|
+
FRR_METAFIELDS_INCLUDE["approval_chain_stage_names"] = "approval_chain_stage_names";
|
|
52
54
|
})(FRR_METAFIELDS_INCLUDE || (exports.FRR_METAFIELDS_INCLUDE = FRR_METAFIELDS_INCLUDE = {}));
|
|
53
55
|
// FRR Vehicles
|
|
54
56
|
var FRR_VEHICLE_INCLUDE;
|
|
@@ -10,7 +10,8 @@ export declare enum QUEUE_JOB_TYPES {
|
|
|
10
10
|
FETCH_FROM_ERP_AND_CREATE_GRN = "FETCH_FROM_ERP_AND_CREATE_GRN",
|
|
11
11
|
GRN_EXCEL_UPLOAD = "GRN_EXCEL_UPLOAD",
|
|
12
12
|
VENDOR_EXCEL_UPLOAD = "VENDOR_EXCEL_UPLOAD",
|
|
13
|
-
ITEM_EXCEL_UPLOAD = "ITEM_EXCEL_UPLOAD"
|
|
13
|
+
ITEM_EXCEL_UPLOAD = "ITEM_EXCEL_UPLOAD",
|
|
14
|
+
FO_AUTO_ACCEPTANCE = "FO_AUTO_ACCEPTANCE"
|
|
14
15
|
}
|
|
15
16
|
export declare enum QUEUE_JOB_STATUS {
|
|
16
17
|
waiting = "waiting",
|
|
@@ -10,6 +10,7 @@ var QUEUE_JOB_TYPES;
|
|
|
10
10
|
QUEUE_JOB_TYPES["GRN_EXCEL_UPLOAD"] = "GRN_EXCEL_UPLOAD";
|
|
11
11
|
QUEUE_JOB_TYPES["VENDOR_EXCEL_UPLOAD"] = "VENDOR_EXCEL_UPLOAD";
|
|
12
12
|
QUEUE_JOB_TYPES["ITEM_EXCEL_UPLOAD"] = "ITEM_EXCEL_UPLOAD";
|
|
13
|
+
QUEUE_JOB_TYPES["FO_AUTO_ACCEPTANCE"] = "FO_AUTO_ACCEPTANCE";
|
|
13
14
|
})(QUEUE_JOB_TYPES || (exports.QUEUE_JOB_TYPES = QUEUE_JOB_TYPES = {}));
|
|
14
15
|
var QUEUE_JOB_STATUS;
|
|
15
16
|
(function (QUEUE_JOB_STATUS) {
|
|
@@ -5,6 +5,7 @@ import { INestedFO } from "./freightOrder.typings";
|
|
|
5
5
|
import { INestedFRR } from "./frr.typings";
|
|
6
6
|
import { INestedFreightQuote } from "./freightQuote.typings";
|
|
7
7
|
import { INestedTransporterLogs } from "./transporterLogs.typings";
|
|
8
|
+
import { INestedLifecycleLogs } from "./common/lifecycleLogger.typings";
|
|
8
9
|
export interface ITransporter {
|
|
9
10
|
id: string;
|
|
10
11
|
transporter_trade_name: string;
|
|
@@ -81,8 +82,9 @@ export interface ITransporter {
|
|
|
81
82
|
freight_quotes: INestedFreightQuote[] | null;
|
|
82
83
|
fos: INestedFO[] | null;
|
|
83
84
|
transporter_logs: INestedTransporterLogs[] | null;
|
|
85
|
+
logs: INestedLifecycleLogs[] | null;
|
|
84
86
|
}
|
|
85
|
-
export interface INestedTransporter extends Omit<ITransporter, "associated_companies" | "transporter_documents_manual_verification_by_company" | "as_additional_in_frrs" | "freight_quotes" | "fos" | "transporter_logs"> {
|
|
87
|
+
export interface INestedTransporter extends Omit<ITransporter, "associated_companies" | "transporter_documents_manual_verification_by_company" | "as_additional_in_frrs" | "freight_quotes" | "fos" | "transporter_logs" | "logs"> {
|
|
86
88
|
}
|
|
87
89
|
export declare enum TRANSPORTER_INCLUDE {
|
|
88
90
|
associated_companies = "associated_companies",
|
|
@@ -90,7 +92,8 @@ export declare enum TRANSPORTER_INCLUDE {
|
|
|
90
92
|
as_additional_in_frrs = "as_additional_in_frrs",
|
|
91
93
|
freight_quotes = "freight_quotes",
|
|
92
94
|
fos = "fos",
|
|
93
|
-
transporter_logs = "transporter_logs"
|
|
95
|
+
transporter_logs = "transporter_logs",
|
|
96
|
+
logs = "logs"
|
|
94
97
|
}
|
|
95
98
|
export declare enum TRANSPORTER_SVF_FORM_STATUS {
|
|
96
99
|
SENT = "SENT",
|
|
@@ -9,6 +9,7 @@ var TRANSPORTER_INCLUDE;
|
|
|
9
9
|
TRANSPORTER_INCLUDE["freight_quotes"] = "freight_quotes";
|
|
10
10
|
TRANSPORTER_INCLUDE["fos"] = "fos";
|
|
11
11
|
TRANSPORTER_INCLUDE["transporter_logs"] = "transporter_logs";
|
|
12
|
+
TRANSPORTER_INCLUDE["logs"] = "logs";
|
|
12
13
|
})(TRANSPORTER_INCLUDE || (exports.TRANSPORTER_INCLUDE = TRANSPORTER_INCLUDE = {}));
|
|
13
14
|
var TRANSPORTER_SVF_FORM_STATUS;
|
|
14
15
|
(function (TRANSPORTER_SVF_FORM_STATUS) {
|
|
@@ -42,7 +42,9 @@ export declare enum TRANSPORTER_LOGS_ACTION {
|
|
|
42
42
|
TRANSPORTER_APPROVED = "TRANSPORTER_APPROVED",
|
|
43
43
|
TRANSPORTER_REJECTED = "TRANSPORTER_REJECTED",
|
|
44
44
|
TRANSPORTER_ONBOARDED = "TRANSPORTER_ONBOARDED",
|
|
45
|
-
TRANSPORTER_CANCELLED = "TRANSPORTER_CANCELLED"
|
|
45
|
+
TRANSPORTER_CANCELLED = "TRANSPORTER_CANCELLED",
|
|
46
|
+
TRANSPORTER_BLACKLISTED = "TRANSPORTER_BLACKLISTED",
|
|
47
|
+
TRANSPORTER_REMOVED_FROM_BLACKLIST = "TRANSPORTER_REMOVED_FROM_BLACKLIST"
|
|
46
48
|
}
|
|
47
49
|
export interface ITransporterPendingWithUserData {
|
|
48
50
|
user_id: string | null;
|
|
@@ -18,4 +18,6 @@ var TRANSPORTER_LOGS_ACTION;
|
|
|
18
18
|
TRANSPORTER_LOGS_ACTION["TRANSPORTER_REJECTED"] = "TRANSPORTER_REJECTED";
|
|
19
19
|
TRANSPORTER_LOGS_ACTION["TRANSPORTER_ONBOARDED"] = "TRANSPORTER_ONBOARDED";
|
|
20
20
|
TRANSPORTER_LOGS_ACTION["TRANSPORTER_CANCELLED"] = "TRANSPORTER_CANCELLED";
|
|
21
|
+
TRANSPORTER_LOGS_ACTION["TRANSPORTER_BLACKLISTED"] = "TRANSPORTER_BLACKLISTED";
|
|
22
|
+
TRANSPORTER_LOGS_ACTION["TRANSPORTER_REMOVED_FROM_BLACKLIST"] = "TRANSPORTER_REMOVED_FROM_BLACKLIST";
|
|
21
23
|
})(TRANSPORTER_LOGS_ACTION || (exports.TRANSPORTER_LOGS_ACTION = TRANSPORTER_LOGS_ACTION = {}));
|
|
@@ -10,7 +10,7 @@ import { INestedDepartment } from "./department.typings";
|
|
|
10
10
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
11
11
|
import { INestedFRR } from "./frr.typings";
|
|
12
12
|
import { INestedFreightQuote } from "./freightQuote.typings";
|
|
13
|
-
import { INestedFO } from "./freightOrder.typings";
|
|
13
|
+
import { INestedFO, INestedFOFineLog } from "./freightOrder.typings";
|
|
14
14
|
import { INestedGate } from "./gate.typings";
|
|
15
15
|
import { INestedGRN } from "./grn.typings";
|
|
16
16
|
import { INestedIndent } from "./indent.typings";
|
|
@@ -75,6 +75,7 @@ import { INestedVendorLogs } from "./vendorLogs.typings";
|
|
|
75
75
|
import { INestedTransporterDocumentManualVerificationByCompany } from "./common/transporterDocumentManualVerificationByCompany.typings";
|
|
76
76
|
import { INestedTransporterGroups } from "./transporterGroup.typings";
|
|
77
77
|
import { INestedTransporterLogs } from "./transporterLogs.typings";
|
|
78
|
+
import { INestedCompanyTransporter } from "./companyTransporter.typings";
|
|
78
79
|
import { INestedApprovalChainStageNames } from "./approvalChainStageNames.typings";
|
|
79
80
|
import { INestedEntityApprovalChainStageNames } from "./entityApprovalChainStageNames.typings";
|
|
80
81
|
export interface IUser {
|
|
@@ -285,12 +286,15 @@ export interface IUser {
|
|
|
285
286
|
fos_sent_to_transporters?: INestedFO[] | null;
|
|
286
287
|
freight_comparative_early_access_requests?: INestedFreightComparativeEarlyAccessRequest[] | null;
|
|
287
288
|
transporter_logs: INestedTransporterLogs[] | null;
|
|
289
|
+
last_updated_fo_fine: INestedFO[] | null;
|
|
290
|
+
fo_fine_logs: INestedFOFineLog[] | null;
|
|
291
|
+
blacklisted_company_transporter: INestedCompanyTransporter[] | null;
|
|
288
292
|
created_approval_stage_names: INestedApprovalChainStageNames[] | null;
|
|
289
293
|
last_updated_by_approval_stage_names: INestedApprovalChainStageNames[] | null;
|
|
290
294
|
created_entity_approval_chain_stage_names: INestedEntityApprovalChainStageNames[] | null;
|
|
291
295
|
last_updated_entity_approval_chain_stage_names: INestedEntityApprovalChainStageNames[] | null;
|
|
292
296
|
}
|
|
293
|
-
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" | "transporter_logs" | "created_approval_stage_names" | "last_updated_by_approval_stage_names" | "created_entity_approval_chain_stage_names" | "last_updated_entity_approval_chain_stage_names"> {
|
|
297
|
+
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" | "transporter_logs" | "last_updated_fo_fine" | "fo_fine_logs" | "blacklisted_company_transporter" | "created_approval_stage_names" | "last_updated_by_approval_stage_names" | "created_entity_approval_chain_stage_names" | "last_updated_entity_approval_chain_stage_names"> {
|
|
294
298
|
}
|
|
295
299
|
export declare enum UserInclude {
|
|
296
300
|
subordinates = "subordinates",
|
|
@@ -475,6 +479,9 @@ export declare enum UserInclude {
|
|
|
475
479
|
as_contact_person_for_fos = "as_contact_person_for_fos",
|
|
476
480
|
fos_sent_for_approval = "fos_sent_for_approval",
|
|
477
481
|
fos_sent_to_transporters = "fos_sent_to_transporters",
|
|
482
|
+
last_updated_fo_fine = "last_updated_fo_fine",
|
|
483
|
+
fo_fine_logs = "fo_fine_logs",
|
|
484
|
+
blacklisted_company_transporter = "blacklisted_company_transporter",
|
|
478
485
|
created_approval_stage_names = "created_approval_stage_names",
|
|
479
486
|
last_updated_by_approval_stage_names = "last_updated_by_approval_stage_names",
|
|
480
487
|
created_entity_approval_chain_stage_names = "created_entity_approval_chain_stage_names",
|
|
@@ -185,6 +185,9 @@ var UserInclude;
|
|
|
185
185
|
UserInclude["as_contact_person_for_fos"] = "as_contact_person_for_fos";
|
|
186
186
|
UserInclude["fos_sent_for_approval"] = "fos_sent_for_approval";
|
|
187
187
|
UserInclude["fos_sent_to_transporters"] = "fos_sent_to_transporters";
|
|
188
|
+
UserInclude["last_updated_fo_fine"] = "last_updated_fo_fine";
|
|
189
|
+
UserInclude["fo_fine_logs"] = "fo_fine_logs";
|
|
190
|
+
UserInclude["blacklisted_company_transporter"] = "blacklisted_company_transporter";
|
|
188
191
|
UserInclude["created_approval_stage_names"] = "created_approval_stage_names";
|
|
189
192
|
UserInclude["last_updated_by_approval_stage_names"] = "last_updated_by_approval_stage_names";
|
|
190
193
|
UserInclude["created_entity_approval_chain_stage_names"] = "created_entity_approval_chain_stage_names";
|