@bisondesk/core-sdk 1.0.519 → 1.0.520
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/lib/types/leasing-debtors.d.ts +1 -0
- package/lib/types/leasing-debtors.d.ts.map +1 -1
- package/lib/types/leasing-debtors.js.map +1 -1
- package/lib/types/opportunities.d.ts +1 -0
- package/lib/types/opportunities.d.ts.map +1 -1
- package/lib/types/opportunities.js +1 -0
- package/lib/types/opportunities.js.map +1 -1
- package/lib/types/tenants.d.ts +1 -0
- package/lib/types/tenants.d.ts.map +1 -1
- package/lib/types/tenants.js.map +1 -1
- package/lib/types/user-performance.d.ts +4 -0
- package/lib/types/user-performance.d.ts.map +1 -1
- package/lib/types/user-performance.js.map +1 -1
- package/lib/types/vehicle-performance.d.ts +6 -0
- package/lib/types/vehicle-performance.d.ts.map +1 -1
- package/lib/types/vehicle-performance.js.map +1 -1
- package/package.json +1 -1
- package/src/types/leasing-debtors.ts +1 -0
- package/src/types/opportunities.ts +1 -0
- package/src/types/tenants.ts +1 -0
- package/src/types/user-performance.ts +4 -0
- package/src/types/vehicle-performance.ts +12 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -5,12 +5,14 @@ import {
|
|
|
5
5
|
VehiclePurchaseLogisticsStatus,
|
|
6
6
|
VehicleRoles,
|
|
7
7
|
} from './vehicles.js';
|
|
8
|
+
import { AttachmentValue } from '@bisondesk/commons-sdk/types';
|
|
8
9
|
|
|
9
10
|
export type VehicleSaleOverview = {
|
|
10
11
|
opportunityId: string;
|
|
11
12
|
type: OpportunityType;
|
|
12
13
|
userId: string; // account manager of the latest opportunity (if opportunity is >= review)
|
|
13
14
|
teamId?: string; // team of the account manager at the time of the latest opportunity
|
|
15
|
+
assistantUserId?: string;
|
|
14
16
|
|
|
15
17
|
// client details
|
|
16
18
|
clientId: string;
|
|
@@ -46,14 +48,14 @@ export type VehicleSaleOverview = {
|
|
|
46
48
|
actualAmount: string; // from all invoices
|
|
47
49
|
lifetimeActualAmount: string; // sum of all invoices from all opportunities for this vehicle
|
|
48
50
|
|
|
49
|
-
// is there an invoice with
|
|
50
|
-
// (we probably need a way to flag those categories since it is also important for the stocklist)
|
|
51
|
+
// is there an invoice with line categories related to the purchase of commercial vehicle?
|
|
51
52
|
hasMainInvoice?: boolean;
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
export type VehiclePurchaseOverview = {
|
|
55
56
|
userId: string; // purchaser
|
|
56
57
|
teamId?: string; // team of the purchaser at the time of purchase
|
|
58
|
+
assistantUserId?: string;
|
|
57
59
|
|
|
58
60
|
dealStatus: VehiclePurchaseDealStatus;
|
|
59
61
|
logisticsStatus: VehiclePurchaseLogisticsStatus;
|
|
@@ -104,6 +106,14 @@ type VehicleSummary = {
|
|
|
104
106
|
id: string;
|
|
105
107
|
role: VehicleRoles;
|
|
106
108
|
newCondition?: boolean;
|
|
109
|
+
|
|
110
|
+
// latest document of category Registration related to the vehicle
|
|
111
|
+
hasRegistration?: boolean;
|
|
112
|
+
registrationDocId?: string;
|
|
113
|
+
|
|
114
|
+
// latest document of category CoC related to the vehicle
|
|
115
|
+
hasCoc?: boolean;
|
|
116
|
+
cocDocId?: string;
|
|
107
117
|
};
|
|
108
118
|
|
|
109
119
|
export type VehicleBusinessOverview = {
|