@bisondesk/core-sdk 1.0.497 → 1.0.498
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/constants.d.ts +1 -2
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +1 -2
- package/lib/constants.js.map +1 -1
- package/lib/types/activities.d.ts +5 -17
- package/lib/types/activities.d.ts.map +1 -1
- package/lib/types/activities.js +0 -1
- package/lib/types/activities.js.map +1 -1
- package/lib/types/internal-events.d.ts +1 -2
- package/lib/types/internal-events.d.ts.map +1 -1
- package/lib/types/internal-events.js +0 -1
- package/lib/types/internal-events.js.map +1 -1
- package/lib/types/journeys.d.ts +0 -7
- package/lib/types/journeys.d.ts.map +1 -1
- package/lib/types/journeys.js.map +1 -1
- package/lib/types/leasing-debtors.d.ts +0 -206
- package/lib/types/leasing-debtors.d.ts.map +1 -1
- package/lib/types/leasing-debtors.js +1 -58
- package/lib/types/leasing-debtors.js.map +1 -1
- package/lib/types/leasing.d.ts +22 -1
- package/lib/types/leasing.d.ts.map +1 -1
- package/lib/types/leasing.js.map +1 -1
- package/lib/types/vehicles.d.ts +4 -4
- package/lib/types/vehicles.d.ts.map +1 -1
- package/lib/types/vehicles.js.map +1 -1
- package/lib/utils/search.d.ts +2 -3
- package/lib/utils/search.d.ts.map +1 -1
- package/lib/utils/search.js.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +1 -2
- package/src/types/activities.ts +4 -50
- package/src/types/internal-events.ts +0 -1
- package/src/types/journeys.ts +0 -8
- package/src/types/leasing-debtors.ts +0 -313
- package/src/types/leasing.ts +20 -0
- package/src/types/vehicles.ts +4 -4
- package/src/utils/search.ts +2 -9
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/debtors-dossiers.d.ts +0 -15
- package/lib/utils/debtors-dossiers.d.ts.map +0 -1
- package/lib/utils/debtors-dossiers.js +0 -51
- package/lib/utils/debtors-dossiers.js.map +0 -1
- package/src/utils/debtors-dossiers.ts +0 -73
package/src/types/leasing.ts
CHANGED
|
@@ -42,6 +42,19 @@ export type LeasingConditionEvent = {
|
|
|
42
42
|
tenantId: string;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
export type OverdueDossier = {
|
|
46
|
+
id: string;
|
|
47
|
+
organizationId: string;
|
|
48
|
+
organizationName: string;
|
|
49
|
+
status: 'ONGOING' | 'ERROR' | 'SUCCESS' | 'EXPIRED' | 'DISCARDED';
|
|
50
|
+
emails: EmailMessage[];
|
|
51
|
+
createdAt: string;
|
|
52
|
+
modifiedAt: string;
|
|
53
|
+
completedAt?: string;
|
|
54
|
+
nextActionAt: string;
|
|
55
|
+
riskLevel: number;
|
|
56
|
+
};
|
|
57
|
+
|
|
45
58
|
export type LeasingContractClient = {
|
|
46
59
|
organizationId: string;
|
|
47
60
|
contactIds: string[];
|
|
@@ -180,6 +193,13 @@ export type OpportunityRef = BaseRef & {
|
|
|
180
193
|
//Since VAT is client specific and contracts can be transferred between clients, we always handle values without VAT
|
|
181
194
|
};
|
|
182
195
|
|
|
196
|
+
export type ListOverdueRemindersResponse = PaginatedList<OverdueDossier, ReferenceData>;
|
|
197
|
+
export type ListOverdueRemindersRequest = {
|
|
198
|
+
offset: number;
|
|
199
|
+
limit: number;
|
|
200
|
+
sortBy: SortFilter;
|
|
201
|
+
};
|
|
202
|
+
|
|
183
203
|
export type NewLeasingConditions = {
|
|
184
204
|
parameters: {
|
|
185
205
|
yearlyRoadTax: string;
|
package/src/types/vehicles.ts
CHANGED
|
@@ -316,6 +316,10 @@ export type VehicleInternalInfo = {
|
|
|
316
316
|
branch: string;
|
|
317
317
|
|
|
318
318
|
offerId?: string;
|
|
319
|
+
licensePlateHistory?: {
|
|
320
|
+
licensePlate: string;
|
|
321
|
+
changedAt: string;
|
|
322
|
+
}[];
|
|
319
323
|
|
|
320
324
|
/**
|
|
321
325
|
* This ID is used to link different vehicle objects that represent the same real world asset.
|
|
@@ -439,10 +443,6 @@ export type VehicleExternalInfo = {
|
|
|
439
443
|
};
|
|
440
444
|
identification: {
|
|
441
445
|
licensePlate?: string;
|
|
442
|
-
licensePlateHistory?: {
|
|
443
|
-
licensePlate: string;
|
|
444
|
-
changedAt: string;
|
|
445
|
-
}[];
|
|
446
446
|
stockNumber?: string;
|
|
447
447
|
vin?: string;
|
|
448
448
|
buildStockNumber?: string;
|
package/src/utils/search.ts
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { joinWithSeparator } from '@bisondesk/commons-sdk/formatting';
|
|
2
2
|
import { BusinessEntityIds } from '../constants.js';
|
|
3
3
|
import { Contact, Organization, SearchOrganization } from '../types/crm.js';
|
|
4
|
-
import { DebtorsDossier, SearchDebtorsDossier } from '../types/leasing-debtors.js';
|
|
5
4
|
import { SearchLeasingContract } from '../types/leasing-search.js';
|
|
6
5
|
import { LeasingContract } from '../types/leasing.js';
|
|
7
6
|
import { Opportunity, SearchOpportunity } from '../types/opportunities.js';
|
|
8
7
|
import { SearchVehicle, Vehicle } from '../types/vehicles.js';
|
|
9
8
|
|
|
10
|
-
export type GlobalBusinessEntity =
|
|
11
|
-
| Opportunity
|
|
12
|
-
| Vehicle
|
|
13
|
-
| Organization
|
|
14
|
-
| LeasingContract
|
|
15
|
-
| DebtorsDossier;
|
|
9
|
+
export type GlobalBusinessEntity = Opportunity | Vehicle | Organization | LeasingContract;
|
|
16
10
|
export type GlobalSearchEntity =
|
|
17
11
|
| SearchOpportunity
|
|
18
12
|
| SearchVehicle
|
|
19
13
|
| SearchOrganization
|
|
20
|
-
| SearchLeasingContract
|
|
21
|
-
| SearchDebtorsDossier;
|
|
14
|
+
| SearchLeasingContract;
|
|
22
15
|
|
|
23
16
|
export const getCustomerInformation = (org?: Organization, contact?: Contact) => {
|
|
24
17
|
if (org != null) {
|