@bisondesk/core-sdk 1.0.336 → 1.0.338
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 +4 -1
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +3 -0
- package/lib/constants.js.map +1 -1
- package/lib/types/crm.d.ts +10 -2
- package/lib/types/crm.d.ts.map +1 -1
- package/lib/types/crm.js.map +1 -1
- package/lib/types/leasing-administration.d.ts +36 -0
- package/lib/types/leasing-administration.d.ts.map +1 -1
- package/lib/types/leasing-administration.js.map +1 -1
- package/lib/types/leasing-search.d.ts +0 -8
- package/lib/types/leasing-search.d.ts.map +1 -1
- package/lib/types/leasing-search.js.map +1 -1
- package/lib/types/leasing.d.ts +10 -1
- package/lib/types/leasing.d.ts.map +1 -1
- package/lib/types/leasing.js.map +1 -1
- package/lib/utils/vehicles.d.ts +3 -3
- package/lib/utils/vehicles.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +3 -0
- package/src/types/crm.ts +11 -2
- package/src/types/leasing-administration.ts +44 -0
- package/src/types/leasing-search.ts +0 -9
- package/src/types/leasing.ts +11 -1
- package/tsconfig.deploy.tsbuildinfo +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vehicles.d.ts","sourceRoot":"/","sources":["utils/vehicles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,eAAO,MAAM,qBAAqB,YAAa,mBAAmB,KAAG,MAAM,EA+B1E,CAAC;AAEF,eAAO,MAAM,gBAAgB;
|
|
1
|
+
{"version":3,"file":"vehicles.d.ts","sourceRoot":"/","sources":["utils/vehicles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,eAAO,MAAM,qBAAqB,YAAa,mBAAmB,KAAG,MAAM,EA+B1E,CAAC;AAEF,eAAO,MAAM,gBAAgB,4DAM1B;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,KAAG,MAcH,CAAC;AAGF,eAAO,MAAM,sBAAsB,QAAS,MAAM,KAAG,MAYpD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bisondesk/core-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.338",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/lodash-es": "4.17.12",
|
|
23
23
|
"@types/node": "20.11.24",
|
|
24
|
-
"typescript": "5.
|
|
24
|
+
"typescript": "5.4.4"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@bisondesk/commons-sdk": "*"
|
package/src/constants.ts
CHANGED
|
@@ -105,6 +105,7 @@ export enum LeasingAdminUploadHandlers {
|
|
|
105
105
|
DhondtProrata = 'dhondt-prorata-invoice',
|
|
106
106
|
Belfius = 'belfius-monthly-invoice',
|
|
107
107
|
ING = 'ing-monthly-invoice',
|
|
108
|
+
DLL = 'dll-monthly-invoice',
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
export enum LeasingAdminEntities {
|
|
@@ -118,6 +119,7 @@ export enum LeasingAdminUploadErrors {
|
|
|
118
119
|
FetchCurrentFile = 'leasing-administration.diff.fetch-current-file-failed',
|
|
119
120
|
InvalidAttachment = 'leasing-administration.invalid-attachment',
|
|
120
121
|
InvalidBelfiusXlsx = 'leasing-administration.belfius.invalid-xlsx',
|
|
122
|
+
InvalidDLLXlsx = 'leasing-administration.dll.invalid-xlsx',
|
|
121
123
|
InvalidHandlerId = 'leasing-administration.invalid-handler',
|
|
122
124
|
InvalidInvoiceFormat = 'leasing-administration.upload.invalid-invoice',
|
|
123
125
|
NegativeAmount = 'leasing-administration.negative-amount',
|
|
@@ -125,6 +127,7 @@ export enum LeasingAdminUploadErrors {
|
|
|
125
127
|
Publish = 'leasing-administration.upload.publish-failed',
|
|
126
128
|
UnknownVehicle = 'leasing-administration.belfius.unknown-vehicle',
|
|
127
129
|
MissingVehicle = 'leasing-administration.belfius.missing-vehicle',
|
|
130
|
+
UnknownContractDLL = 'leasing-administration.dll.unknown-contract',
|
|
128
131
|
Validation = 'leasing-administration.upload.invalid-request',
|
|
129
132
|
}
|
|
130
133
|
|
package/src/types/crm.ts
CHANGED
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
SearchPermissions,
|
|
7
7
|
} from '@bisondesk/commons-sdk/types';
|
|
8
8
|
import { PublicSearchDefinition } from './definitions.js';
|
|
9
|
-
import { LeasingContract } from './leasing.js';
|
|
10
9
|
import { ReferenceData } from './utils.js';
|
|
11
10
|
|
|
12
11
|
export type CrmEvent = CrmOrganizationEvent | CrmContactEvent;
|
|
@@ -79,9 +78,19 @@ export type OrganizationDebtInfo = {
|
|
|
79
78
|
unpaidAmount: string;
|
|
80
79
|
};
|
|
81
80
|
|
|
81
|
+
export type OrgLeasingContract = {
|
|
82
|
+
id: string;
|
|
83
|
+
contractNumber?: string;
|
|
84
|
+
vehicle: {
|
|
85
|
+
id: string;
|
|
86
|
+
stockNumber: string;
|
|
87
|
+
administrativeNumber?: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
82
91
|
export type SearchOrganization = {
|
|
83
92
|
org: Organization;
|
|
84
|
-
contract:
|
|
93
|
+
contract: OrgLeasingContract[]; // important for the logic regarding leasing overdue reminders
|
|
85
94
|
};
|
|
86
95
|
|
|
87
96
|
export type PotentialDuplicatesReferenceData = ReferenceData & { blockIgnore?: boolean };
|
|
@@ -49,6 +49,16 @@ export type BelfiusMetadata = {
|
|
|
49
49
|
totalIncludingVat: string;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
export type DLLAttachments = {
|
|
53
|
+
xlsx: AttachmentValue;
|
|
54
|
+
json?: AttachmentValue; // json version of the xlsx file
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type DLLMetadata = {
|
|
58
|
+
totalLines: number;
|
|
59
|
+
totalIncludingVat: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
52
62
|
export type DhondtMetadata = {
|
|
53
63
|
invoiceNumber: string;
|
|
54
64
|
invoiceDate: string;
|
|
@@ -119,6 +129,40 @@ export type DiffableBelfiusInvoiceLine = Omit<
|
|
|
119
129
|
'invoiceNr' | 'invoiceDate' | 'capital' | 'interest'
|
|
120
130
|
>;
|
|
121
131
|
|
|
132
|
+
export type DLLRawInvoiceLine = {
|
|
133
|
+
LESSOR: number;
|
|
134
|
+
CONTRACT: number;
|
|
135
|
+
DEBTOR: number;
|
|
136
|
+
'INVOICE NUMBER': number;
|
|
137
|
+
'CREATION DATE': Date;
|
|
138
|
+
'REF LESSEE': string;
|
|
139
|
+
'PRINCIPAL AMOUNT': number;
|
|
140
|
+
'INTEREST AMOUNT': number;
|
|
141
|
+
'TOTAL INV AMOUNT': number;
|
|
142
|
+
VAT: number;
|
|
143
|
+
'DATE BEGIN PERIOD': Date;
|
|
144
|
+
'DATE END PERIOD': Date;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export type DLLInvoiceLine = {
|
|
148
|
+
capital: string;
|
|
149
|
+
contractNumber: string;
|
|
150
|
+
interest: string;
|
|
151
|
+
invoiceNumber: string;
|
|
152
|
+
totalAmount: string;
|
|
153
|
+
totalAmountExlVat: string;
|
|
154
|
+
invoiceDate: string;
|
|
155
|
+
vatAmount: string;
|
|
156
|
+
vat: 21;
|
|
157
|
+
vehicleId: string;
|
|
158
|
+
stockNumber: string;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type DiffableDLLInvoiceLine = Omit<
|
|
162
|
+
DLLInvoiceLine,
|
|
163
|
+
'invoiceNumber' | 'invoiceDate' | 'capital' | 'interest'
|
|
164
|
+
>;
|
|
165
|
+
|
|
122
166
|
export type LineDiff<T> = {
|
|
123
167
|
[Property in keyof T]: {
|
|
124
168
|
value: T[Property];
|
|
@@ -17,7 +17,6 @@ export type SearchLeasingContract = {
|
|
|
17
17
|
contract: LeasingContract;
|
|
18
18
|
org: Organization;
|
|
19
19
|
contact?: Contact;
|
|
20
|
-
debt: LeasingContractDebtInfo;
|
|
21
20
|
vehicle: Vehicle;
|
|
22
21
|
custom: {
|
|
23
22
|
active: boolean;
|
|
@@ -25,14 +24,6 @@ export type SearchLeasingContract = {
|
|
|
25
24
|
};
|
|
26
25
|
};
|
|
27
26
|
|
|
28
|
-
export type LeasingContractDebtInfo = {
|
|
29
|
-
overdueSince?: string;
|
|
30
|
-
overdueInvoices: number;
|
|
31
|
-
overdueAmount: string;
|
|
32
|
-
unpaidInvoices: number;
|
|
33
|
-
unpaidAmount: string;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
27
|
export type InputSearchLeasingContract = SearchLeasingContract & {
|
|
37
28
|
permissions: SearchPermissions;
|
|
38
29
|
};
|
package/src/types/leasing.ts
CHANGED
|
@@ -7,6 +7,14 @@ export enum LeasingContractActions {
|
|
|
7
7
|
CREATE_FINANCE_DOCUMENT = 'create_finance_document',
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export type LeasingContractDebtInfo = {
|
|
11
|
+
overdueSince?: string;
|
|
12
|
+
overdueInvoices: number;
|
|
13
|
+
overdueAmount: string;
|
|
14
|
+
unpaidInvoices: number;
|
|
15
|
+
unpaidAmount: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
10
18
|
export type LeasingContractEvent = {
|
|
11
19
|
id: string;
|
|
12
20
|
action: 'create' | 'update' | 'delete';
|
|
@@ -113,11 +121,13 @@ type BaseLeasingContract<T = LeasingContractHyperportal | LeasingContractBisonde
|
|
|
113
121
|
export type LeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> =
|
|
114
122
|
BaseLeasingContract<T> & {
|
|
115
123
|
readonly expectedEndDate: string;
|
|
124
|
+
readonly debt: LeasingContractDebtInfo;
|
|
116
125
|
};
|
|
117
126
|
|
|
118
127
|
export type NewLeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> =
|
|
119
128
|
BaseLeasingContract<T> & {
|
|
120
|
-
readonly expectedEndDate?: undefined;
|
|
129
|
+
readonly expectedEndDate?: string | undefined;
|
|
130
|
+
readonly debt?: LeasingContractDebtInfo | undefined;
|
|
121
131
|
};
|
|
122
132
|
|
|
123
133
|
export type NextLeasingRentRowRequest = {
|