@alba-cars/common-modules 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/network/endpoint-config.d.ts +2 -0
- package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.d.ts +11 -0
- package/dist/features/models/BankValuationResult.d.ts +22 -0
- package/dist/features/models/index.d.ts +2 -1
- package/dist/features/tickets/data/enums/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -42,6 +42,7 @@ type TicketEndpoints = BaseEndpoint & {
|
|
|
42
42
|
addDocument: EndpointFunction;
|
|
43
43
|
getDocuments: EndpointFunction;
|
|
44
44
|
reopenTicket: EndpointFunction;
|
|
45
|
+
sendToKissFlow: string;
|
|
45
46
|
};
|
|
46
47
|
type ReviewEndpoints = BaseEndpoint & {
|
|
47
48
|
changeReviewShowPublic: EndpointFunction;
|
|
@@ -116,6 +117,7 @@ type APIEndpointType = {
|
|
|
116
117
|
exchangeCarRequest: ExchangeCarRequestEndpoints;
|
|
117
118
|
dubiCars: DubiCarsEndpoints;
|
|
118
119
|
colors: ColorEndpoints;
|
|
120
|
+
bankValuationResult: BaseEndpoint;
|
|
119
121
|
};
|
|
120
122
|
export declare const API_ENDPOINTS: APIEndpointType;
|
|
121
123
|
export declare const UTIL_ENDPOINTS: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MarketingData } from "../../../../core";
|
|
2
|
+
import { BankValuationActionType } from "../../../models/BankValuationResult";
|
|
2
3
|
export declare class BankValuationRequestCreateDto {
|
|
3
4
|
name: string;
|
|
4
5
|
email?: string;
|
|
@@ -31,3 +32,13 @@ export declare class BankValuationRequestUpdateDto {
|
|
|
31
32
|
comments?: string;
|
|
32
33
|
status?: string;
|
|
33
34
|
}
|
|
35
|
+
export declare class BankValuationResultCreateDto {
|
|
36
|
+
bankValuationRequestId: string;
|
|
37
|
+
doneById: string;
|
|
38
|
+
action: BankValuationActionType;
|
|
39
|
+
rejectionReason?: string;
|
|
40
|
+
approvalComments?: string;
|
|
41
|
+
approvedValuation?: number;
|
|
42
|
+
dealDriveEstimatedPrice?: number;
|
|
43
|
+
certificateUrl?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { User } from "./_index";
|
|
2
|
+
import { BankValuationRequest } from "./BankValuationRequest";
|
|
3
|
+
export declare const BankValuationAction: {
|
|
4
|
+
readonly APPROVAL: "approval";
|
|
5
|
+
readonly REJECTION: "rejection";
|
|
6
|
+
readonly ISSUED_FOR_FREE: "issued_for_free";
|
|
7
|
+
};
|
|
8
|
+
export type BankValuationActionType = (typeof BankValuationAction)[keyof typeof BankValuationAction];
|
|
9
|
+
export declare class BankValuationResult {
|
|
10
|
+
id: string;
|
|
11
|
+
refId: number;
|
|
12
|
+
action: BankValuationActionType;
|
|
13
|
+
doneBy: User;
|
|
14
|
+
bankValuationRequest: BankValuationRequest;
|
|
15
|
+
dealDriveEstimatedPrice?: number;
|
|
16
|
+
rejectionReason?: string;
|
|
17
|
+
approvalComments?: string;
|
|
18
|
+
approvedValuation?: number;
|
|
19
|
+
certificateUrl?: string;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
}
|
|
@@ -16,4 +16,5 @@ import { Lead } from "./Lead";
|
|
|
16
16
|
import { Ticket, TicketDocument, TicketMessage } from "./Ticket";
|
|
17
17
|
import { BankValuationRequest } from "./BankValuationRequest";
|
|
18
18
|
import { Color } from "./Color";
|
|
19
|
-
|
|
19
|
+
import { BankValuationResult } from "./BankValuationResult";
|
|
20
|
+
export { BaseModel, Vehicle, VehicleOrder, VehicleFeature, VehicleFeatureCategory, VehicleBodyType, Payment, User, VehicleFinance, VehicleMake, VehicleModel, VehicleMedia, VehicleMetaData, Deposit, Lead, Ticket, TicketDocument, TicketMessage, BankValuationRequest, Color, BankValuationResult, };
|
|
@@ -3,7 +3,9 @@ export declare enum TicketRequestType {
|
|
|
3
3
|
REFUND = "Refund",
|
|
4
4
|
TEST_DRIVE = "Test Drive",
|
|
5
5
|
CAR_VIEWING = "Car Viewing",
|
|
6
|
-
COMPLAINT = "Complaint"
|
|
6
|
+
COMPLAINT = "Complaint",
|
|
7
|
+
SUPPORT = "Support",
|
|
8
|
+
OTHER = "Other"
|
|
7
9
|
}
|
|
8
10
|
export declare enum TicketStatusType {
|
|
9
11
|
OPEN = "Open",
|