@bisondesk/core-sdk 1.0.312 → 1.0.314
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/cjs/apis/crm.js +1 -0
- package/lib/cjs/apis/crm.js.map +1 -1
- package/lib/cjs/apis/documents.js +24 -1
- package/lib/cjs/apis/documents.js.map +1 -1
- package/lib/cjs/apis/opportunities.js.map +1 -1
- package/lib/cjs/types/documents.js +8 -1
- package/lib/cjs/types/documents.js.map +1 -1
- package/lib/cjs/types/leasing-settings.js.map +1 -1
- package/lib/cjs/types/opportunities.js.map +1 -1
- package/lib/cjs/types/payments.js +1 -2
- package/lib/cjs/types/payments.js.map +1 -1
- package/lib/cjs/types/quotes.js.map +1 -1
- package/lib/cjs/types/search.js.map +1 -1
- package/lib/cjs/types/vehicles.js.map +1 -1
- package/lib/esm/apis/crm.js +1 -0
- package/lib/esm/apis/crm.js.map +1 -1
- package/lib/esm/apis/documents.js +22 -0
- package/lib/esm/apis/documents.js.map +1 -1
- package/lib/esm/apis/opportunities.js.map +1 -1
- package/lib/esm/types/documents.js +7 -0
- package/lib/esm/types/documents.js.map +1 -1
- package/lib/esm/types/leasing-settings.js.map +1 -1
- package/lib/esm/types/opportunities.js.map +1 -1
- package/lib/esm/types/payments.js +0 -1
- package/lib/esm/types/payments.js.map +1 -1
- package/lib/esm/types/quotes.js.map +1 -1
- package/lib/esm/types/search.js.map +1 -1
- package/lib/esm/types/vehicles.js.map +1 -1
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/apis/crm.d.ts.map +1 -1
- package/lib/types/apis/documents.d.ts +1 -0
- package/lib/types/apis/documents.d.ts.map +1 -1
- package/lib/types/apis/opportunities.d.ts +1 -1
- package/lib/types/apis/opportunities.d.ts.map +1 -1
- package/lib/types/types/documents.d.ts +16 -1
- package/lib/types/types/documents.d.ts.map +1 -1
- package/lib/types/types/leasing-settings.d.ts +71 -0
- package/lib/types/types/leasing-settings.d.ts.map +1 -1
- package/lib/types/types/opportunities.d.ts +0 -2
- package/lib/types/types/opportunities.d.ts.map +1 -1
- package/lib/types/types/payments.d.ts +0 -1
- package/lib/types/types/payments.d.ts.map +1 -1
- package/lib/types/types/quotes.d.ts +14 -8
- package/lib/types/types/quotes.d.ts.map +1 -1
- package/lib/types/types/search.d.ts +7 -1
- package/lib/types/types/search.d.ts.map +1 -1
- package/lib/types/types/vehicles.d.ts +0 -18
- package/lib/types/types/vehicles.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/apis/crm.ts +1 -0
- package/src/apis/documents.ts +29 -0
- package/src/apis/opportunities.ts +1 -1
- package/src/types/documents.ts +18 -1
- package/src/types/leasing-settings.ts +76 -0
- package/src/types/opportunities.ts +0 -2
- package/src/types/payments.ts +0 -2
- package/src/types/quotes.ts +16 -7
- package/src/types/search.ts +9 -1
- package/src/types/vehicles.ts +0 -22
- package/lib/cjs/types/quote-settings.js +0 -3
- package/lib/cjs/types/quote-settings.js.map +0 -1
- package/lib/esm/types/quote-settings.js +0 -2
- package/lib/esm/types/quote-settings.js.map +0 -1
- package/lib/types/types/quote-settings.d.ts +0 -89
- package/lib/types/types/quote-settings.d.ts.map +0 -1
- package/src/types/quote-settings.ts +0 -93
|
@@ -2,6 +2,82 @@ import { MultiLangValue } from '@bisondesk/commons-sdk/types';
|
|
|
2
2
|
import { Categories, OpportunityType } from '../constants';
|
|
3
3
|
import { SortFilter } from './search';
|
|
4
4
|
|
|
5
|
+
export type BeSpecificQuoteParams = {
|
|
6
|
+
countryCode: 'be';
|
|
7
|
+
other: {
|
|
8
|
+
leasingStartupFeePercentage: string;
|
|
9
|
+
};
|
|
10
|
+
insurance: {
|
|
11
|
+
allRisksCost: string;
|
|
12
|
+
allRisksTax: string;
|
|
13
|
+
allRisksFees: string;
|
|
14
|
+
allRisksMinimumCost: string;
|
|
15
|
+
specialTechnicalInsuranceCost: string;
|
|
16
|
+
specialTechnicalInsuranceTax: string;
|
|
17
|
+
specialTechnicalInsuranceFees: string;
|
|
18
|
+
civilLiabilitiesCost: string;
|
|
19
|
+
civilLiabilitiesTax: string;
|
|
20
|
+
civilLiabilitiesFees: string;
|
|
21
|
+
roadAssistanceMonthlySalesPrice: string; // monthly Price
|
|
22
|
+
roadAssistanceMonthlyCostPrice: string; // monthly Price
|
|
23
|
+
margin: string;
|
|
24
|
+
allRisksCheckedForLocalClients: boolean;
|
|
25
|
+
specialTechnicalInsuranceCheckedForLocalClients: boolean;
|
|
26
|
+
civilLiabilitiesCheckedForLocalClients: boolean;
|
|
27
|
+
roadAssistanceCheckedForLocalClients: boolean;
|
|
28
|
+
};
|
|
29
|
+
track: {
|
|
30
|
+
trackAndTrace24Cost: string;
|
|
31
|
+
trackAndTrace36Cost: string;
|
|
32
|
+
trackAndTrace48Cost: string;
|
|
33
|
+
trackAndTraceMaxCost: string;
|
|
34
|
+
};
|
|
35
|
+
taxes: {
|
|
36
|
+
oneTimeRoadTax: string;
|
|
37
|
+
yearlyRoadTax: string;
|
|
38
|
+
oneTimeRoadCheckedForLocalClients: boolean;
|
|
39
|
+
yearlyRoadCheckedForLocalClients: boolean;
|
|
40
|
+
margin: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type BoSpecificQuoteParams = {
|
|
45
|
+
countryCode: 'bo';
|
|
46
|
+
insurance: {
|
|
47
|
+
allRisksCost: string;
|
|
48
|
+
margin: string;
|
|
49
|
+
};
|
|
50
|
+
other: {
|
|
51
|
+
administrativeFee: string;
|
|
52
|
+
};
|
|
53
|
+
track: {
|
|
54
|
+
installationCost: string;
|
|
55
|
+
monthlyCost: string;
|
|
56
|
+
monthlyFee: string;
|
|
57
|
+
deviceCost: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type CountrySpecificQuoteParams = BeSpecificQuoteParams | BoSpecificQuoteParams;
|
|
62
|
+
|
|
63
|
+
export type LeasingQuoteParams<P extends CountrySpecificQuoteParams = CountrySpecificQuoteParams> =
|
|
64
|
+
{
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
modifiedAt: string;
|
|
68
|
+
leasing: {
|
|
69
|
+
leasingInterestRate: string;
|
|
70
|
+
leasingDuration: number;
|
|
71
|
+
leasingDepositPercentage: string;
|
|
72
|
+
leasingResidualValuePercentage: string;
|
|
73
|
+
};
|
|
74
|
+
costs: {
|
|
75
|
+
bankDepositPercentage: string;
|
|
76
|
+
bankInterestRate: string;
|
|
77
|
+
bankResidualValuePercentage: string;
|
|
78
|
+
};
|
|
79
|
+
} & P;
|
|
80
|
+
|
|
5
81
|
type BaseQuoteExtraSettings = {
|
|
6
82
|
referenceCode: string;
|
|
7
83
|
active: boolean;
|
|
@@ -289,11 +289,9 @@ export type SearchOpportunity = {
|
|
|
289
289
|
vehicle?: Vehicle;
|
|
290
290
|
quote?: QuoteInfo;
|
|
291
291
|
custom: {
|
|
292
|
-
anyPaymentCollected: boolean;
|
|
293
292
|
unassigned: boolean;
|
|
294
293
|
lost: boolean;
|
|
295
294
|
assignees: string[];
|
|
296
|
-
vehicleCheckedIn: boolean;
|
|
297
295
|
};
|
|
298
296
|
};
|
|
299
297
|
|
package/src/types/payments.ts
CHANGED
package/src/types/quotes.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AttachmentValue, LocationValue } from '@bisondesk/commons-sdk/types';
|
|
2
2
|
import { OpportunityType } from '../constants';
|
|
3
|
+
import { DeliveryParams } from './delivery-settings';
|
|
3
4
|
import {
|
|
4
5
|
CustomLeasingQuoteExtraInput,
|
|
5
6
|
CustomSalesQuoteExtraInput,
|
|
6
7
|
LeasingDeliveryPackageInput,
|
|
7
8
|
LeasingQuoteExtraInput,
|
|
9
|
+
LeasingQuoteParams,
|
|
8
10
|
SalesQuoteExtraInput,
|
|
9
11
|
} from './leasing-settings';
|
|
10
12
|
import { MatchingRuleValue } from './roi-ratings';
|
|
@@ -60,7 +62,7 @@ type BaseQuoteCalculatorInput = {
|
|
|
60
62
|
id: string;
|
|
61
63
|
category: string;
|
|
62
64
|
bodywork?: string;
|
|
63
|
-
|
|
65
|
+
agreedPrice: string;
|
|
64
66
|
};
|
|
65
67
|
};
|
|
66
68
|
|
|
@@ -73,8 +75,6 @@ export type LeasingCalculatorInput = BaseQuoteCalculatorInput & {
|
|
|
73
75
|
localLicensePlate: boolean;
|
|
74
76
|
vanCourier: boolean;
|
|
75
77
|
vehicle: BaseQuoteCalculatorInput['vehicle'] & {
|
|
76
|
-
purchasePriceExclVat: string;
|
|
77
|
-
agreedPrice: string;
|
|
78
78
|
purchasePrice: string;
|
|
79
79
|
};
|
|
80
80
|
leasing: {
|
|
@@ -113,7 +113,6 @@ export type LeasingCalculatorInput = BaseQuoteCalculatorInput & {
|
|
|
113
113
|
allRisks: boolean;
|
|
114
114
|
specialTechnicalInsurance: boolean;
|
|
115
115
|
roadAssistance: boolean;
|
|
116
|
-
initialFractionPercentage: string;
|
|
117
116
|
};
|
|
118
117
|
deliveryPackage?: LeasingDeliveryPackageInput;
|
|
119
118
|
extras: LeasingQuoteExtraInput[];
|
|
@@ -165,8 +164,6 @@ export type SalesCalculatorDefaultInput = BaseQuoteCalculatorInput & {
|
|
|
165
164
|
export type SalesCalculatorInput = BaseQuoteCalculatorInput & {
|
|
166
165
|
vehicle: BaseQuoteCalculatorInput['vehicle'] & {
|
|
167
166
|
purchasePrice: string;
|
|
168
|
-
purchasePriceExclVat: string;
|
|
169
|
-
agreedPrice: string;
|
|
170
167
|
premiumPrice?: string;
|
|
171
168
|
vatRate: string;
|
|
172
169
|
minimumPrice: string;
|
|
@@ -192,7 +189,6 @@ export type LeasingCalculatorOutput = {
|
|
|
192
189
|
installmentPrintable: string;
|
|
193
190
|
totalMonthlyAmount: string;
|
|
194
191
|
monthlyTaxesInsurance: string;
|
|
195
|
-
beforeDeliveryExclVat: string;
|
|
196
192
|
beforeDelivery: string;
|
|
197
193
|
financingAmount: string;
|
|
198
194
|
settingId: string;
|
|
@@ -350,6 +346,19 @@ export type CalculatorSalesIO = {
|
|
|
350
346
|
};
|
|
351
347
|
export type CalculatorQuoteIO = CalculatorLeasingIO | CalculatorSalesIO;
|
|
352
348
|
|
|
349
|
+
export type UsedVehiclesSalesParams = {
|
|
350
|
+
id: string;
|
|
351
|
+
modifiedAt: string;
|
|
352
|
+
modifiedBy: string;
|
|
353
|
+
countryCode: 'be';
|
|
354
|
+
name: string;
|
|
355
|
+
profitabilityDealGap: string;
|
|
356
|
+
exaDocumentCosts: string;
|
|
357
|
+
delivery?: DeliveryParams;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
export type QuoteSettings = LeasingQuoteParams | UsedVehiclesSalesParams;
|
|
361
|
+
|
|
353
362
|
export type DeliveryLocationValue = Omit<LocationValue, 'addressLine1' | 'city'> & {
|
|
354
363
|
addressLine1: string;
|
|
355
364
|
city: string;
|
package/src/types/search.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Generic stuff
|
|
3
3
|
///////////////////////////////////////////////////////
|
|
4
4
|
|
|
5
|
-
import { SUPPORTED_LANGUAGES } from '@bisondesk/commons-sdk/constants';
|
|
5
|
+
import { BusinessEntityIds, SUPPORTED_LANGUAGES } from '@bisondesk/commons-sdk/constants';
|
|
6
6
|
import { MultiLangValue } from '@bisondesk/commons-sdk/types';
|
|
7
7
|
import { FieldTypes, NumberMeta } from './fields';
|
|
8
8
|
|
|
@@ -110,6 +110,14 @@ export type SearchRequest = {
|
|
|
110
110
|
sortBy?: SortFilter[];
|
|
111
111
|
} & (InfiniteSearchRequest | PaginatedSearchRequest);
|
|
112
112
|
|
|
113
|
+
export type MultiEntitySearchRequest = SearchRequest & {
|
|
114
|
+
entityIds: BusinessEntityIds[];
|
|
115
|
+
} & (InfiniteSearchRequest | PaginatedSearchRequest);
|
|
116
|
+
|
|
117
|
+
export type MultiEntitySearchItem<T = unknown> = {
|
|
118
|
+
businessEntityId: BusinessEntityIds;
|
|
119
|
+
} & T;
|
|
120
|
+
|
|
113
121
|
export type PublicSearchRequest = {
|
|
114
122
|
limit: number;
|
|
115
123
|
offset?: number;
|
package/src/types/vehicles.ts
CHANGED
|
@@ -146,28 +146,6 @@ export type VehicleMarketingEvent = {
|
|
|
146
146
|
vehicleId: string;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
type BaseVehiclePurchaseEvent = {
|
|
150
|
-
actionAt: string;
|
|
151
|
-
userId: string;
|
|
152
|
-
tenantId: string;
|
|
153
|
-
branchId: string;
|
|
154
|
-
vehicleId: string;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export type VehiclePurchaseCreateEvent = BaseVehiclePurchaseEvent & {
|
|
158
|
-
action: 'create';
|
|
159
|
-
data: VehiclePurchase;
|
|
160
|
-
previousData?: undefined;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export type VehiclePurchaseUpdateEvent = BaseVehiclePurchaseEvent & {
|
|
164
|
-
action: 'update';
|
|
165
|
-
data: VehiclePurchase;
|
|
166
|
-
previousData: VehiclePurchase;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
export type VehiclePurchaseEvent = VehiclePurchaseCreateEvent | VehiclePurchaseUpdateEvent;
|
|
170
|
-
|
|
171
149
|
export type UpdateVehiclesPricesEvent = {
|
|
172
150
|
id: string;
|
|
173
151
|
actionAt: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quote-settings.js","sourceRoot":"/","sources":["types/quote-settings.ts"],"names":[],"mappings":"","sourcesContent":["import { DeliveryParams } from './delivery-settings';\n\nexport type UsedVehiclesSalesParams = BaseQuoteSettings & {\n modifiedBy: string;\n countryCode: 'be';\n profitabilityDealGap: string;\n exaDocumentCosts: string;\n delivery?: DeliveryParams;\n};\n\nexport type BeSpecificQuoteParams = {\n countryCode: 'be';\n other: BaseQuoteSettings['other'] & {\n leasingStartupFeePercentage: string;\n };\n insurance: {\n allRisksCost: string;\n allRisksTax: string;\n allRisksFees: string;\n allRisksMinimumCost: string;\n specialTechnicalInsuranceCost: string;\n specialTechnicalInsuranceTax: string;\n specialTechnicalInsuranceFees: string;\n civilLiabilitiesCost: string;\n civilLiabilitiesTax: string;\n civilLiabilitiesFees: string;\n roadAssistanceMonthlySalesPrice: string; // monthly Price\n roadAssistanceMonthlyCostPrice: string; // monthly Price\n margin: string;\n allRisksCheckedForLocalClients: boolean;\n specialTechnicalInsuranceCheckedForLocalClients: boolean;\n civilLiabilitiesCheckedForLocalClients: boolean;\n roadAssistanceCheckedForLocalClients: boolean;\n initialFractionPercentage: '0';\n };\n track: {\n trackAndTrace24Cost: string;\n trackAndTrace36Cost: string;\n trackAndTrace48Cost: string;\n trackAndTraceMaxCost: string;\n };\n taxes: {\n oneTimeRoadTax: string;\n yearlyRoadTax: string;\n oneTimeRoadCheckedForLocalClients: boolean;\n yearlyRoadCheckedForLocalClients: boolean;\n margin: string;\n };\n};\n\nexport type BoSpecificQuoteParams = {\n countryCode: 'bo';\n insurance: {\n allRisksCost: string;\n margin: string;\n initialFractionPercentage: string;\n };\n other: BaseQuoteSettings['other'] & {\n administrativeFee: string;\n };\n track: {\n installationCost: string;\n monthlyCost: string;\n monthlyFee: string;\n deviceCost: string;\n };\n};\n\nexport type CountrySpecificQuoteParams = BeSpecificQuoteParams | BoSpecificQuoteParams;\n\ntype BaseQuoteSettings = {\n id: string;\n modifiedAt: string;\n name: string;\n other: { minimumDepositAdjudicationPercentage: string };\n};\n\nexport type LeasingQuoteParams<P extends CountrySpecificQuoteParams = CountrySpecificQuoteParams> =\n BaseQuoteSettings & {\n leasing: {\n leasingInterestRate: string;\n leasingDuration: number;\n leasingDepositPercentage: string;\n leasingResidualValuePercentage: string;\n };\n costs: {\n bankDepositPercentage: string;\n bankInterestRate: string;\n bankResidualValuePercentage: string;\n };\n } & P;\n\nexport type QuoteSettings = LeasingQuoteParams | UsedVehiclesSalesParams;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quote-settings.js","sourceRoot":"/","sources":["types/quote-settings.ts"],"names":[],"mappings":"","sourcesContent":["import { DeliveryParams } from './delivery-settings';\n\nexport type UsedVehiclesSalesParams = BaseQuoteSettings & {\n modifiedBy: string;\n countryCode: 'be';\n profitabilityDealGap: string;\n exaDocumentCosts: string;\n delivery?: DeliveryParams;\n};\n\nexport type BeSpecificQuoteParams = {\n countryCode: 'be';\n other: BaseQuoteSettings['other'] & {\n leasingStartupFeePercentage: string;\n };\n insurance: {\n allRisksCost: string;\n allRisksTax: string;\n allRisksFees: string;\n allRisksMinimumCost: string;\n specialTechnicalInsuranceCost: string;\n specialTechnicalInsuranceTax: string;\n specialTechnicalInsuranceFees: string;\n civilLiabilitiesCost: string;\n civilLiabilitiesTax: string;\n civilLiabilitiesFees: string;\n roadAssistanceMonthlySalesPrice: string; // monthly Price\n roadAssistanceMonthlyCostPrice: string; // monthly Price\n margin: string;\n allRisksCheckedForLocalClients: boolean;\n specialTechnicalInsuranceCheckedForLocalClients: boolean;\n civilLiabilitiesCheckedForLocalClients: boolean;\n roadAssistanceCheckedForLocalClients: boolean;\n initialFractionPercentage: '0';\n };\n track: {\n trackAndTrace24Cost: string;\n trackAndTrace36Cost: string;\n trackAndTrace48Cost: string;\n trackAndTraceMaxCost: string;\n };\n taxes: {\n oneTimeRoadTax: string;\n yearlyRoadTax: string;\n oneTimeRoadCheckedForLocalClients: boolean;\n yearlyRoadCheckedForLocalClients: boolean;\n margin: string;\n };\n};\n\nexport type BoSpecificQuoteParams = {\n countryCode: 'bo';\n insurance: {\n allRisksCost: string;\n margin: string;\n initialFractionPercentage: string;\n };\n other: BaseQuoteSettings['other'] & {\n administrativeFee: string;\n };\n track: {\n installationCost: string;\n monthlyCost: string;\n monthlyFee: string;\n deviceCost: string;\n };\n};\n\nexport type CountrySpecificQuoteParams = BeSpecificQuoteParams | BoSpecificQuoteParams;\n\ntype BaseQuoteSettings = {\n id: string;\n modifiedAt: string;\n name: string;\n other: { minimumDepositAdjudicationPercentage: string };\n};\n\nexport type LeasingQuoteParams<P extends CountrySpecificQuoteParams = CountrySpecificQuoteParams> =\n BaseQuoteSettings & {\n leasing: {\n leasingInterestRate: string;\n leasingDuration: number;\n leasingDepositPercentage: string;\n leasingResidualValuePercentage: string;\n };\n costs: {\n bankDepositPercentage: string;\n bankInterestRate: string;\n bankResidualValuePercentage: string;\n };\n } & P;\n\nexport type QuoteSettings = LeasingQuoteParams | UsedVehiclesSalesParams;\n"]}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { DeliveryParams } from './delivery-settings';
|
|
2
|
-
export type UsedVehiclesSalesParams = BaseQuoteSettings & {
|
|
3
|
-
modifiedBy: string;
|
|
4
|
-
countryCode: 'be';
|
|
5
|
-
profitabilityDealGap: string;
|
|
6
|
-
exaDocumentCosts: string;
|
|
7
|
-
delivery?: DeliveryParams;
|
|
8
|
-
};
|
|
9
|
-
export type BeSpecificQuoteParams = {
|
|
10
|
-
countryCode: 'be';
|
|
11
|
-
other: BaseQuoteSettings['other'] & {
|
|
12
|
-
leasingStartupFeePercentage: string;
|
|
13
|
-
};
|
|
14
|
-
insurance: {
|
|
15
|
-
allRisksCost: string;
|
|
16
|
-
allRisksTax: string;
|
|
17
|
-
allRisksFees: string;
|
|
18
|
-
allRisksMinimumCost: string;
|
|
19
|
-
specialTechnicalInsuranceCost: string;
|
|
20
|
-
specialTechnicalInsuranceTax: string;
|
|
21
|
-
specialTechnicalInsuranceFees: string;
|
|
22
|
-
civilLiabilitiesCost: string;
|
|
23
|
-
civilLiabilitiesTax: string;
|
|
24
|
-
civilLiabilitiesFees: string;
|
|
25
|
-
roadAssistanceMonthlySalesPrice: string;
|
|
26
|
-
roadAssistanceMonthlyCostPrice: string;
|
|
27
|
-
margin: string;
|
|
28
|
-
allRisksCheckedForLocalClients: boolean;
|
|
29
|
-
specialTechnicalInsuranceCheckedForLocalClients: boolean;
|
|
30
|
-
civilLiabilitiesCheckedForLocalClients: boolean;
|
|
31
|
-
roadAssistanceCheckedForLocalClients: boolean;
|
|
32
|
-
initialFractionPercentage: '0';
|
|
33
|
-
};
|
|
34
|
-
track: {
|
|
35
|
-
trackAndTrace24Cost: string;
|
|
36
|
-
trackAndTrace36Cost: string;
|
|
37
|
-
trackAndTrace48Cost: string;
|
|
38
|
-
trackAndTraceMaxCost: string;
|
|
39
|
-
};
|
|
40
|
-
taxes: {
|
|
41
|
-
oneTimeRoadTax: string;
|
|
42
|
-
yearlyRoadTax: string;
|
|
43
|
-
oneTimeRoadCheckedForLocalClients: boolean;
|
|
44
|
-
yearlyRoadCheckedForLocalClients: boolean;
|
|
45
|
-
margin: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export type BoSpecificQuoteParams = {
|
|
49
|
-
countryCode: 'bo';
|
|
50
|
-
insurance: {
|
|
51
|
-
allRisksCost: string;
|
|
52
|
-
margin: string;
|
|
53
|
-
initialFractionPercentage: string;
|
|
54
|
-
};
|
|
55
|
-
other: BaseQuoteSettings['other'] & {
|
|
56
|
-
administrativeFee: string;
|
|
57
|
-
};
|
|
58
|
-
track: {
|
|
59
|
-
installationCost: string;
|
|
60
|
-
monthlyCost: string;
|
|
61
|
-
monthlyFee: string;
|
|
62
|
-
deviceCost: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export type CountrySpecificQuoteParams = BeSpecificQuoteParams | BoSpecificQuoteParams;
|
|
66
|
-
type BaseQuoteSettings = {
|
|
67
|
-
id: string;
|
|
68
|
-
modifiedAt: string;
|
|
69
|
-
name: string;
|
|
70
|
-
other: {
|
|
71
|
-
minimumDepositAdjudicationPercentage: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
export type LeasingQuoteParams<P extends CountrySpecificQuoteParams = CountrySpecificQuoteParams> = BaseQuoteSettings & {
|
|
75
|
-
leasing: {
|
|
76
|
-
leasingInterestRate: string;
|
|
77
|
-
leasingDuration: number;
|
|
78
|
-
leasingDepositPercentage: string;
|
|
79
|
-
leasingResidualValuePercentage: string;
|
|
80
|
-
};
|
|
81
|
-
costs: {
|
|
82
|
-
bankDepositPercentage: string;
|
|
83
|
-
bankInterestRate: string;
|
|
84
|
-
bankResidualValuePercentage: string;
|
|
85
|
-
};
|
|
86
|
-
} & P;
|
|
87
|
-
export type QuoteSettings = LeasingQuoteParams | UsedVehiclesSalesParams;
|
|
88
|
-
export {};
|
|
89
|
-
//# sourceMappingURL=quote-settings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quote-settings.d.ts","sourceRoot":"/","sources":["types/quote-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,IAAI,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,IAAI,CAAC;IAClB,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG;QAClC,2BAA2B,EAAE,MAAM,CAAC;KACrC,CAAC;IACF,SAAS,EAAE;QACT,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,6BAA6B,EAAE,MAAM,CAAC;QACtC,4BAA4B,EAAE,MAAM,CAAC;QACrC,6BAA6B,EAAE,MAAM,CAAC;QACtC,oBAAoB,EAAE,MAAM,CAAC;QAC7B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,+BAA+B,EAAE,MAAM,CAAC;QACxC,8BAA8B,EAAE,MAAM,CAAC;QACvC,MAAM,EAAE,MAAM,CAAC;QACf,8BAA8B,EAAE,OAAO,CAAC;QACxC,+CAA+C,EAAE,OAAO,CAAC;QACzD,sCAAsC,EAAE,OAAO,CAAC;QAChD,oCAAoC,EAAE,OAAO,CAAC;QAC9C,yBAAyB,EAAE,GAAG,CAAC;KAChC,CAAC;IACF,KAAK,EAAE;QACL,mBAAmB,EAAE,MAAM,CAAC;QAC5B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,KAAK,EAAE;QACL,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,EAAE,MAAM,CAAC;QACtB,iCAAiC,EAAE,OAAO,CAAC;QAC3C,gCAAgC,EAAE,OAAO,CAAC;QAC1C,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,IAAI,CAAC;IAClB,SAAS,EAAE;QACT,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,yBAAyB,EAAE,MAAM,CAAC;KACnC,CAAC;IACF,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG;QAClC,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,KAAK,EAAE;QACL,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;AAEvF,KAAK,iBAAiB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,oCAAoC,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,0BAA0B,GAAG,0BAA0B,IAC9F,iBAAiB,GAAG;IAClB,OAAO,EAAE;QACP,mBAAmB,EAAE,MAAM,CAAC;QAC5B,eAAe,EAAE,MAAM,CAAC;QACxB,wBAAwB,EAAE,MAAM,CAAC;QACjC,8BAA8B,EAAE,MAAM,CAAC;KACxC,CAAC;IACF,KAAK,EAAE;QACL,qBAAqB,EAAE,MAAM,CAAC;QAC9B,gBAAgB,EAAE,MAAM,CAAC;QACzB,2BAA2B,EAAE,MAAM,CAAC;KACrC,CAAC;CACH,GAAG,CAAC,CAAC;AAER,MAAM,MAAM,aAAa,GAAG,kBAAkB,GAAG,uBAAuB,CAAC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { DeliveryParams } from './delivery-settings';
|
|
2
|
-
|
|
3
|
-
export type UsedVehiclesSalesParams = BaseQuoteSettings & {
|
|
4
|
-
modifiedBy: string;
|
|
5
|
-
countryCode: 'be';
|
|
6
|
-
profitabilityDealGap: string;
|
|
7
|
-
exaDocumentCosts: string;
|
|
8
|
-
delivery?: DeliveryParams;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export type BeSpecificQuoteParams = {
|
|
12
|
-
countryCode: 'be';
|
|
13
|
-
other: BaseQuoteSettings['other'] & {
|
|
14
|
-
leasingStartupFeePercentage: string;
|
|
15
|
-
};
|
|
16
|
-
insurance: {
|
|
17
|
-
allRisksCost: string;
|
|
18
|
-
allRisksTax: string;
|
|
19
|
-
allRisksFees: string;
|
|
20
|
-
allRisksMinimumCost: string;
|
|
21
|
-
specialTechnicalInsuranceCost: string;
|
|
22
|
-
specialTechnicalInsuranceTax: string;
|
|
23
|
-
specialTechnicalInsuranceFees: string;
|
|
24
|
-
civilLiabilitiesCost: string;
|
|
25
|
-
civilLiabilitiesTax: string;
|
|
26
|
-
civilLiabilitiesFees: string;
|
|
27
|
-
roadAssistanceMonthlySalesPrice: string; // monthly Price
|
|
28
|
-
roadAssistanceMonthlyCostPrice: string; // monthly Price
|
|
29
|
-
margin: string;
|
|
30
|
-
allRisksCheckedForLocalClients: boolean;
|
|
31
|
-
specialTechnicalInsuranceCheckedForLocalClients: boolean;
|
|
32
|
-
civilLiabilitiesCheckedForLocalClients: boolean;
|
|
33
|
-
roadAssistanceCheckedForLocalClients: boolean;
|
|
34
|
-
initialFractionPercentage: '0';
|
|
35
|
-
};
|
|
36
|
-
track: {
|
|
37
|
-
trackAndTrace24Cost: string;
|
|
38
|
-
trackAndTrace36Cost: string;
|
|
39
|
-
trackAndTrace48Cost: string;
|
|
40
|
-
trackAndTraceMaxCost: string;
|
|
41
|
-
};
|
|
42
|
-
taxes: {
|
|
43
|
-
oneTimeRoadTax: string;
|
|
44
|
-
yearlyRoadTax: string;
|
|
45
|
-
oneTimeRoadCheckedForLocalClients: boolean;
|
|
46
|
-
yearlyRoadCheckedForLocalClients: boolean;
|
|
47
|
-
margin: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export type BoSpecificQuoteParams = {
|
|
52
|
-
countryCode: 'bo';
|
|
53
|
-
insurance: {
|
|
54
|
-
allRisksCost: string;
|
|
55
|
-
margin: string;
|
|
56
|
-
initialFractionPercentage: string;
|
|
57
|
-
};
|
|
58
|
-
other: BaseQuoteSettings['other'] & {
|
|
59
|
-
administrativeFee: string;
|
|
60
|
-
};
|
|
61
|
-
track: {
|
|
62
|
-
installationCost: string;
|
|
63
|
-
monthlyCost: string;
|
|
64
|
-
monthlyFee: string;
|
|
65
|
-
deviceCost: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export type CountrySpecificQuoteParams = BeSpecificQuoteParams | BoSpecificQuoteParams;
|
|
70
|
-
|
|
71
|
-
type BaseQuoteSettings = {
|
|
72
|
-
id: string;
|
|
73
|
-
modifiedAt: string;
|
|
74
|
-
name: string;
|
|
75
|
-
other: { minimumDepositAdjudicationPercentage: string };
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export type LeasingQuoteParams<P extends CountrySpecificQuoteParams = CountrySpecificQuoteParams> =
|
|
79
|
-
BaseQuoteSettings & {
|
|
80
|
-
leasing: {
|
|
81
|
-
leasingInterestRate: string;
|
|
82
|
-
leasingDuration: number;
|
|
83
|
-
leasingDepositPercentage: string;
|
|
84
|
-
leasingResidualValuePercentage: string;
|
|
85
|
-
};
|
|
86
|
-
costs: {
|
|
87
|
-
bankDepositPercentage: string;
|
|
88
|
-
bankInterestRate: string;
|
|
89
|
-
bankResidualValuePercentage: string;
|
|
90
|
-
};
|
|
91
|
-
} & P;
|
|
92
|
-
|
|
93
|
-
export type QuoteSettings = LeasingQuoteParams | UsedVehiclesSalesParams;
|