@bisondesk/core-sdk 1.0.336 → 1.0.337
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/apis/crm.js.map +1 -1
- package/lib/apis/debtors.js.map +1 -1
- package/lib/apis/internet-vehicles.js.map +1 -1
- package/lib/apis/leasing-administration.js.map +1 -1
- package/lib/apis/leasing.js.map +1 -1
- package/lib/apis/opportunities.js.map +1 -1
- package/lib/apis/tenants.js.map +1 -1
- package/lib/apis/users.js.map +1 -1
- package/lib/apis/vehicles.js.map +1 -1
- package/lib/constants.d.ts +4 -1
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +9 -6
- package/lib/constants.js.map +1 -1
- package/lib/types/activities.js +2 -2
- package/lib/types/activities.js.map +1 -1
- package/lib/types/crm.js +3 -3
- package/lib/types/crm.js.map +1 -1
- package/lib/types/delivery-settings.js +1 -1
- package/lib/types/delivery-settings.js.map +1 -1
- package/lib/types/events.js +1 -1
- package/lib/types/events.js.map +1 -1
- package/lib/types/interests.js +1 -1
- package/lib/types/interests.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-settings.js +1 -1
- package/lib/types/leasing-settings.js.map +1 -1
- package/lib/types/leasing.js +5 -5
- package/lib/types/leasing.js.map +1 -1
- package/lib/types/opportunities.js +8 -8
- package/lib/types/opportunities.js.map +1 -1
- package/lib/types/payments.js +1 -1
- package/lib/types/payments.js.map +1 -1
- package/lib/types/quotes.js +6 -6
- package/lib/types/quotes.js.map +1 -1
- package/lib/types/reservations.js +1 -1
- package/lib/types/reservations.js.map +1 -1
- package/lib/types/roi-ratings.js +1 -1
- package/lib/types/roi-ratings.js.map +1 -1
- package/lib/types/saved-filters.js +1 -1
- package/lib/types/saved-filters.js.map +1 -1
- package/lib/types/tenants.js +1 -1
- package/lib/types/tenants.js.map +1 -1
- package/lib/types/vehicles.js +7 -7
- package/lib/types/vehicles.js.map +1 -1
- package/lib/utils/forms.js.map +1 -1
- package/lib/utils/opportunities.js.map +1 -1
- package/lib/utils/search.js.map +1 -1
- package/lib/utils/tenants.js.map +1 -1
- package/lib/utils/vehicles.js.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +3 -0
- package/src/types/leasing-administration.ts +44 -0
- package/tsconfig.deploy.tsbuildinfo +1 -1
- package/tsconfig.tsbuildinfo +1 -1
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
|
|
|
@@ -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];
|