@bisondesk/core-sdk 1.0.23-B → 1.0.23
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 +0 -77
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +1 -924
- package/lib/constants.js.map +1 -1
- package/lib/types/crm.d.ts +30 -103
- package/lib/types/crm.d.ts.map +1 -1
- package/lib/types/crm.js +0 -16
- package/lib/types/crm.js.map +1 -1
- package/lib/types/definitions.d.ts +13 -15
- package/lib/types/definitions.d.ts.map +1 -1
- package/lib/types/fields.d.ts +25 -26
- package/lib/types/fields.d.ts.map +1 -1
- package/lib/types/fields.js +0 -4
- package/lib/types/fields.js.map +1 -1
- package/lib/types/interests.d.ts +25 -0
- package/lib/types/interests.d.ts.map +1 -0
- package/lib/types/{settings.js → interests.js} +1 -1
- package/lib/types/interests.js.map +1 -0
- package/lib/types/picklists.d.ts +4 -15
- package/lib/types/picklists.d.ts.map +1 -1
- package/lib/types/search.d.ts +4 -26
- package/lib/types/search.d.ts.map +1 -1
- package/lib/types/search.js.map +1 -1
- package/lib/types/storage.d.ts +11 -1
- package/lib/types/storage.d.ts.map +1 -1
- package/lib/types/storage.js +0 -15
- package/lib/types/storage.js.map +1 -1
- package/lib/types/tenants.d.ts +9 -32
- package/lib/types/tenants.d.ts.map +1 -1
- package/lib/types/tenants.js +0 -11
- package/lib/types/tenants.js.map +1 -1
- package/lib/types/users.d.ts +3 -11
- package/lib/types/users.d.ts.map +1 -1
- package/lib/types/utils.d.ts +0 -20
- package/lib/types/utils.d.ts.map +1 -1
- package/lib/types/utils.js +0 -6
- package/lib/types/utils.js.map +1 -1
- package/lib/types/vehicles.d.ts +92 -406
- package/lib/types/vehicles.d.ts.map +1 -1
- package/lib/types/vehicles.js +1 -54
- package/lib/types/vehicles.js.map +1 -1
- package/package.json +6 -8
- package/src/constants.ts +1 -930
- package/src/types/crm.ts +30 -118
- package/src/types/definitions.ts +12 -19
- package/src/types/fields.ts +31 -72
- package/src/types/interests.ts +24 -0
- package/src/types/picklists.ts +7 -26
- package/src/types/search.ts +4 -34
- package/src/types/storage.ts +12 -1
- package/src/types/tenants.ts +11 -37
- package/src/types/users.ts +3 -17
- package/src/types/utils.ts +0 -25
- package/src/types/vehicles.ts +93 -461
- package/tsconfig.tsbuildinfo +2995 -1
- package/lib/apis/crm.d.ts +0 -39
- package/lib/apis/crm.d.ts.map +0 -1
- package/lib/apis/crm.js +0 -201
- package/lib/apis/crm.js.map +0 -1
- package/lib/apis/documents.d.ts +0 -4
- package/lib/apis/documents.d.ts.map +0 -1
- package/lib/apis/documents.js +0 -47
- package/lib/apis/documents.js.map +0 -1
- package/lib/apis/internet-vehicles.d.ts +0 -3
- package/lib/apis/internet-vehicles.d.ts.map +0 -1
- package/lib/apis/internet-vehicles.js +0 -27
- package/lib/apis/internet-vehicles.js.map +0 -1
- package/lib/apis/leasing-administration.d.ts +0 -8
- package/lib/apis/leasing-administration.d.ts.map +0 -1
- package/lib/apis/leasing-administration.js +0 -49
- package/lib/apis/leasing-administration.js.map +0 -1
- package/lib/apis/leasing.d.ts +0 -19
- package/lib/apis/leasing.d.ts.map +0 -1
- package/lib/apis/leasing.js +0 -168
- package/lib/apis/leasing.js.map +0 -1
- package/lib/apis/opportunities.d.ts +0 -9
- package/lib/apis/opportunities.d.ts.map +0 -1
- package/lib/apis/opportunities.js +0 -94
- package/lib/apis/opportunities.js.map +0 -1
- package/lib/apis/picklists.d.ts +0 -5
- package/lib/apis/picklists.d.ts.map +0 -1
- package/lib/apis/picklists.js +0 -44
- package/lib/apis/picklists.js.map +0 -1
- package/lib/apis/tenants.d.ts +0 -7
- package/lib/apis/tenants.d.ts.map +0 -1
- package/lib/apis/tenants.js +0 -80
- package/lib/apis/tenants.js.map +0 -1
- package/lib/apis/users.d.ts +0 -3
- package/lib/apis/users.d.ts.map +0 -1
- package/lib/apis/users.js +0 -26
- package/lib/apis/users.js.map +0 -1
- package/lib/apis/utils.d.ts +0 -9
- package/lib/apis/utils.d.ts.map +0 -1
- package/lib/apis/utils.js +0 -23
- package/lib/apis/utils.js.map +0 -1
- package/lib/apis/vehicles.d.ts +0 -18
- package/lib/apis/vehicles.d.ts.map +0 -1
- package/lib/apis/vehicles.js +0 -159
- package/lib/apis/vehicles.js.map +0 -1
- package/lib/ddb-entities.d.ts +0 -2
- package/lib/ddb-entities.d.ts.map +0 -1
- package/lib/ddb-entities.js +0 -5
- package/lib/ddb-entities.js.map +0 -1
- package/lib/types/activities.d.ts +0 -38
- package/lib/types/activities.d.ts.map +0 -1
- package/lib/types/activities.js +0 -16
- package/lib/types/activities.js.map +0 -1
- package/lib/types/documents.d.ts +0 -105
- package/lib/types/documents.d.ts.map +0 -1
- package/lib/types/documents.js +0 -3
- package/lib/types/documents.js.map +0 -1
- package/lib/types/internet-vehicles.d.ts +0 -64
- package/lib/types/internet-vehicles.d.ts.map +0 -1
- package/lib/types/internet-vehicles.js +0 -3
- package/lib/types/internet-vehicles.js.map +0 -1
- package/lib/types/leads.d.ts +0 -134
- package/lib/types/leads.d.ts.map +0 -1
- package/lib/types/leads.js +0 -3
- package/lib/types/leads.js.map +0 -1
- package/lib/types/leasing-administration.d.ts +0 -107
- package/lib/types/leasing-administration.d.ts.map +0 -1
- package/lib/types/leasing-administration.js +0 -3
- package/lib/types/leasing-administration.js.map +0 -1
- package/lib/types/leasing-search.d.ts +0 -22
- package/lib/types/leasing-search.d.ts.map +0 -1
- package/lib/types/leasing-search.js +0 -3
- package/lib/types/leasing-search.js.map +0 -1
- package/lib/types/leasing-settings.d.ts +0 -113
- package/lib/types/leasing-settings.d.ts.map +0 -1
- package/lib/types/leasing-settings.js +0 -10
- package/lib/types/leasing-settings.js.map +0 -1
- package/lib/types/leasing.d.ts +0 -322
- package/lib/types/leasing.d.ts.map +0 -1
- package/lib/types/leasing.js +0 -24
- package/lib/types/leasing.js.map +0 -1
- package/lib/types/machines.d.ts +0 -38
- package/lib/types/machines.d.ts.map +0 -1
- package/lib/types/machines.js +0 -3
- package/lib/types/machines.js.map +0 -1
- package/lib/types/opportunities.d.ts +0 -448
- package/lib/types/opportunities.d.ts.map +0 -1
- package/lib/types/opportunities.js +0 -68
- package/lib/types/opportunities.js.map +0 -1
- package/lib/types/payments.d.ts +0 -38
- package/lib/types/payments.d.ts.map +0 -1
- package/lib/types/payments.js +0 -9
- package/lib/types/payments.js.map +0 -1
- package/lib/types/quotes.d.ts +0 -173
- package/lib/types/quotes.d.ts.map +0 -1
- package/lib/types/quotes.js +0 -26
- package/lib/types/quotes.js.map +0 -1
- package/lib/types/recently-viewed.d.ts +0 -33
- package/lib/types/recently-viewed.d.ts.map +0 -1
- package/lib/types/recently-viewed.js +0 -3
- package/lib/types/recently-viewed.js.map +0 -1
- package/lib/types/saved-filters.d.ts +0 -20
- package/lib/types/saved-filters.d.ts.map +0 -1
- package/lib/types/saved-filters.js +0 -3
- package/lib/types/saved-filters.js.map +0 -1
- package/lib/types/settings.d.ts +0 -50
- package/lib/types/settings.d.ts.map +0 -1
- package/lib/types/settings.js.map +0 -1
- package/lib/types/templates.d.ts +0 -35
- package/lib/types/templates.d.ts.map +0 -1
- package/lib/types/templates.js +0 -9
- package/lib/types/templates.js.map +0 -1
- package/lib/types/website.d.ts +0 -24
- package/lib/types/website.d.ts.map +0 -1
- package/lib/types/website.js +0 -3
- package/lib/types/website.js.map +0 -1
- package/lib/utils/forms.d.ts +0 -6
- package/lib/utils/forms.d.ts.map +0 -1
- package/lib/utils/forms.js +0 -33
- package/lib/utils/forms.js.map +0 -1
- package/lib/utils/leasing.d.ts +0 -3
- package/lib/utils/leasing.d.ts.map +0 -1
- package/lib/utils/leasing.js +0 -10
- package/lib/utils/leasing.js.map +0 -1
- package/lib/utils/slug.d.ts +0 -3
- package/lib/utils/slug.d.ts.map +0 -1
- package/lib/utils/slug.js +0 -23
- package/lib/utils/slug.js.map +0 -1
- package/lib/utils/tenants.d.ts +0 -4
- package/lib/utils/tenants.d.ts.map +0 -1
- package/lib/utils/tenants.js +0 -16
- package/lib/utils/tenants.js.map +0 -1
- package/lib/utils/vehicles.d.ts +0 -12
- package/lib/utils/vehicles.d.ts.map +0 -1
- package/lib/utils/vehicles.js +0 -73
- package/lib/utils/vehicles.js.map +0 -1
- package/src/apis/crm.ts +0 -302
- package/src/apis/documents.ts +0 -54
- package/src/apis/internet-vehicles.ts +0 -23
- package/src/apis/leasing-administration.ts +0 -70
- package/src/apis/leasing.ts +0 -257
- package/src/apis/opportunities.ts +0 -133
- package/src/apis/picklists.ts +0 -50
- package/src/apis/tenants.ts +0 -100
- package/src/apis/users.ts +0 -22
- package/src/apis/utils.ts +0 -23
- package/src/apis/vehicles.ts +0 -229
- package/src/ddb-entities.ts +0 -1
- package/src/environment.d.ts +0 -6
- package/src/types/activities.ts +0 -41
- package/src/types/documents.ts +0 -110
- package/src/types/internet-vehicles.ts +0 -67
- package/src/types/leads.ts +0 -144
- package/src/types/leasing-administration.ts +0 -131
- package/src/types/leasing-search.ts +0 -24
- package/src/types/leasing-settings.ts +0 -111
- package/src/types/leasing.ts +0 -360
- package/src/types/machines.ts +0 -40
- package/src/types/opportunities.ts +0 -496
- package/src/types/payments.ts +0 -40
- package/src/types/quotes.ts +0 -186
- package/src/types/recently-viewed.ts +0 -45
- package/src/types/saved-filters.ts +0 -21
- package/src/types/settings.ts +0 -51
- package/src/types/templates.ts +0 -40
- package/src/types/website.ts +0 -28
- package/src/utils/forms.ts +0 -32
- package/src/utils/leasing.ts +0 -14
- package/src/utils/slug.ts +0 -19
- package/src/utils/tenants.ts +0 -14
- package/src/utils/vehicles.ts +0 -92
package/lib/types/quotes.d.ts
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { AttachmentValue } from '@bisondesk/commons-sdk/lib/types';
|
|
2
|
-
import { OpportunityType } from '../constants';
|
|
3
|
-
import { CustomLeasingQuoteExtraInput, LeasingDeliveryPackageInput, LeasingQuoteExtraInput } from './leasing-settings';
|
|
4
|
-
import { PricePercentageMode } from './utils';
|
|
5
|
-
export declare enum QuoteActions {
|
|
6
|
-
ACCEPT = "accept",
|
|
7
|
-
VALIDATE = "validate",
|
|
8
|
-
DONWLOAD_PDFS = "download-pdfs",
|
|
9
|
-
CANCEL = "cancel"
|
|
10
|
-
}
|
|
11
|
-
export declare enum QuoteStatus {
|
|
12
|
-
CREATED = "created",
|
|
13
|
-
VALIDATED = "validated",
|
|
14
|
-
INVALIDATED = "invalidated",
|
|
15
|
-
ACCEPTED = "accepted",
|
|
16
|
-
REJECTED = "rejected",
|
|
17
|
-
CANCELLED = "cancelled"
|
|
18
|
-
}
|
|
19
|
-
export declare enum LeasingQuoteMetricsScore {
|
|
20
|
-
DANGER = "danger",
|
|
21
|
-
NEUTRAL = "neutral",
|
|
22
|
-
GOOD = "good"
|
|
23
|
-
}
|
|
24
|
-
declare type BaseLeasingCalculatorInput = {
|
|
25
|
-
branch: string;
|
|
26
|
-
branchCountry: string;
|
|
27
|
-
customerCountry: string;
|
|
28
|
-
vehicleCategory: string;
|
|
29
|
-
};
|
|
30
|
-
export declare type LeasingCalculatorDefaultInput = BaseLeasingCalculatorInput & {
|
|
31
|
-
salesPrice: string;
|
|
32
|
-
purchasePrice: string;
|
|
33
|
-
deliveryPackage?: LeasingQuoteExtraInput;
|
|
34
|
-
extras?: LeasingQuoteExtraInput[];
|
|
35
|
-
customRequests?: CustomLeasingQuoteExtraInput[];
|
|
36
|
-
};
|
|
37
|
-
export declare type LeasingCalculatorInput = BaseLeasingCalculatorInput & {
|
|
38
|
-
localLicensePlate: boolean;
|
|
39
|
-
vanCourier: boolean;
|
|
40
|
-
leasing: {
|
|
41
|
-
salesPrice: string;
|
|
42
|
-
deposit: string;
|
|
43
|
-
depositMode: PricePercentageMode;
|
|
44
|
-
depositPercentage: string;
|
|
45
|
-
residual: string;
|
|
46
|
-
residualMode: PricePercentageMode;
|
|
47
|
-
residualPercentage: string;
|
|
48
|
-
startupFee: string;
|
|
49
|
-
startupFeeMode: PricePercentageMode;
|
|
50
|
-
startupFeePercentage: string;
|
|
51
|
-
interestRate: string;
|
|
52
|
-
purchasePrice: string;
|
|
53
|
-
duration: number;
|
|
54
|
-
};
|
|
55
|
-
bank: {
|
|
56
|
-
interestRate: string;
|
|
57
|
-
deposit: string;
|
|
58
|
-
depositMode: PricePercentageMode;
|
|
59
|
-
depositPercentage: string;
|
|
60
|
-
residual: string;
|
|
61
|
-
residualMode: PricePercentageMode;
|
|
62
|
-
residualPercentage: string;
|
|
63
|
-
duration: number;
|
|
64
|
-
salesPrice: string;
|
|
65
|
-
};
|
|
66
|
-
taxes: {
|
|
67
|
-
yearlyRoadTax: boolean;
|
|
68
|
-
oneTimeRoadTax: boolean;
|
|
69
|
-
margin: string;
|
|
70
|
-
};
|
|
71
|
-
insurance: {
|
|
72
|
-
margin: string;
|
|
73
|
-
civilLiabilities: boolean;
|
|
74
|
-
allRisks: boolean;
|
|
75
|
-
specialTechnicalInsurance: boolean;
|
|
76
|
-
roadAssistance: boolean;
|
|
77
|
-
};
|
|
78
|
-
deliveryPackage?: LeasingDeliveryPackageInput;
|
|
79
|
-
extras: LeasingQuoteExtraInput[];
|
|
80
|
-
customRequests: CustomLeasingQuoteExtraInput[];
|
|
81
|
-
};
|
|
82
|
-
export declare type LeasingCalculatorOutput = {
|
|
83
|
-
vatApplicable: boolean;
|
|
84
|
-
installment: string;
|
|
85
|
-
installmentPrintable: string;
|
|
86
|
-
totalMonthlyAmount: string;
|
|
87
|
-
monthlyTaxesInsurance: string;
|
|
88
|
-
beforeDelivery: string;
|
|
89
|
-
financingAmount: string;
|
|
90
|
-
settingId: string;
|
|
91
|
-
totalRetailAmount: string;
|
|
92
|
-
finalSalesPrice: string;
|
|
93
|
-
roi: {
|
|
94
|
-
value: string;
|
|
95
|
-
target: string;
|
|
96
|
-
perYear: string;
|
|
97
|
-
difference: string;
|
|
98
|
-
score: LeasingQuoteMetricsScore;
|
|
99
|
-
};
|
|
100
|
-
cashflow: {
|
|
101
|
-
deficit: string;
|
|
102
|
-
balanced: boolean;
|
|
103
|
-
score: LeasingQuoteMetricsScore;
|
|
104
|
-
};
|
|
105
|
-
profitability: {
|
|
106
|
-
leasing: string;
|
|
107
|
-
vehicle: string;
|
|
108
|
-
total: string;
|
|
109
|
-
score: LeasingQuoteMetricsScore;
|
|
110
|
-
};
|
|
111
|
-
taxes: {
|
|
112
|
-
yearlyRetailPrice: string;
|
|
113
|
-
monthlyRetailPrice: string;
|
|
114
|
-
yearlyRoadTax: string;
|
|
115
|
-
oneTimeRoadTax: string;
|
|
116
|
-
};
|
|
117
|
-
insurance: {
|
|
118
|
-
yearlyRetailPrice: string;
|
|
119
|
-
monthlyRetailPrice: string;
|
|
120
|
-
civilLiabilities: string;
|
|
121
|
-
allRisks: string;
|
|
122
|
-
specialTechnicalInsurance: string;
|
|
123
|
-
roadAssistance: string;
|
|
124
|
-
};
|
|
125
|
-
costs: {
|
|
126
|
-
financingAmount: string;
|
|
127
|
-
finalCostPrice: string;
|
|
128
|
-
monhtly: string;
|
|
129
|
-
trackAndTrace: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
declare type BaseLeasingQuote = {
|
|
133
|
-
opportunityId: string;
|
|
134
|
-
calculatorInput: LeasingCalculatorInput;
|
|
135
|
-
calculatorOutput: LeasingCalculatorOutput;
|
|
136
|
-
type: OpportunityType;
|
|
137
|
-
preferredLanguage: string;
|
|
138
|
-
};
|
|
139
|
-
export declare type NewLeasingQuote = BaseLeasingQuote & {
|
|
140
|
-
id?: undefined;
|
|
141
|
-
createdAt?: undefined;
|
|
142
|
-
createdBy?: undefined;
|
|
143
|
-
modifiedAt?: undefined;
|
|
144
|
-
modifiedBy?: undefined;
|
|
145
|
-
active: true;
|
|
146
|
-
};
|
|
147
|
-
export declare type LeasingQuote = BaseLeasingQuote & {
|
|
148
|
-
id: string;
|
|
149
|
-
createdAt: string;
|
|
150
|
-
createdBy: string;
|
|
151
|
-
modifiedAt: string;
|
|
152
|
-
modifiedBy: string;
|
|
153
|
-
validationBy?: string;
|
|
154
|
-
validationAt?: string;
|
|
155
|
-
cancelledBy?: string;
|
|
156
|
-
cancelledAt?: string;
|
|
157
|
-
customerFeedbackAt?: string;
|
|
158
|
-
customerFeedbackBy?: string;
|
|
159
|
-
version: number;
|
|
160
|
-
status: QuoteStatus;
|
|
161
|
-
proformaPdf?: AttachmentValue;
|
|
162
|
-
quotePdf?: AttachmentValue;
|
|
163
|
-
active: boolean;
|
|
164
|
-
contactId: string;
|
|
165
|
-
vehicleId: string;
|
|
166
|
-
organizationId: string;
|
|
167
|
-
};
|
|
168
|
-
export declare type QuoteUpdate = {
|
|
169
|
-
status?: QuoteStatus;
|
|
170
|
-
active?: boolean;
|
|
171
|
-
};
|
|
172
|
-
export {};
|
|
173
|
-
//# sourceMappingURL=quotes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/types/quotes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;CAClB;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,oBAAY,wBAAwB;IAClC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,aAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,aA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,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
package/lib/types/quotes.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LeasingQuoteMetricsScore = exports.QuoteStatus = exports.QuoteActions = void 0;
|
|
4
|
-
var QuoteActions;
|
|
5
|
-
(function (QuoteActions) {
|
|
6
|
-
QuoteActions["ACCEPT"] = "accept";
|
|
7
|
-
QuoteActions["VALIDATE"] = "validate";
|
|
8
|
-
QuoteActions["DONWLOAD_PDFS"] = "download-pdfs";
|
|
9
|
-
QuoteActions["CANCEL"] = "cancel";
|
|
10
|
-
})(QuoteActions = exports.QuoteActions || (exports.QuoteActions = {}));
|
|
11
|
-
var QuoteStatus;
|
|
12
|
-
(function (QuoteStatus) {
|
|
13
|
-
QuoteStatus["CREATED"] = "created";
|
|
14
|
-
QuoteStatus["VALIDATED"] = "validated";
|
|
15
|
-
QuoteStatus["INVALIDATED"] = "invalidated";
|
|
16
|
-
QuoteStatus["ACCEPTED"] = "accepted";
|
|
17
|
-
QuoteStatus["REJECTED"] = "rejected";
|
|
18
|
-
QuoteStatus["CANCELLED"] = "cancelled";
|
|
19
|
-
})(QuoteStatus = exports.QuoteStatus || (exports.QuoteStatus = {}));
|
|
20
|
-
var LeasingQuoteMetricsScore;
|
|
21
|
-
(function (LeasingQuoteMetricsScore) {
|
|
22
|
-
LeasingQuoteMetricsScore["DANGER"] = "danger";
|
|
23
|
-
LeasingQuoteMetricsScore["NEUTRAL"] = "neutral";
|
|
24
|
-
LeasingQuoteMetricsScore["GOOD"] = "good";
|
|
25
|
-
})(LeasingQuoteMetricsScore = exports.LeasingQuoteMetricsScore || (exports.LeasingQuoteMetricsScore = {}));
|
|
26
|
-
//# sourceMappingURL=quotes.js.map
|
package/lib/types/quotes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src/types/quotes.ts"],"names":[],"mappings":";;;AASA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,0CAA2B,CAAA;IAC3B,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,sCAAuB,CAAA;AACzB,CAAC,EAPW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAOtB;AAED,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;IACnB,yCAAa,CAAA;AACf,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AttachmentValue, Requester } from '@bisondesk/commons-sdk/lib/types';
|
|
2
|
-
import { BusinessEntityIds } from '../constants';
|
|
3
|
-
export declare type ViewedItemsRequest = {
|
|
4
|
-
businessEntity?: string;
|
|
5
|
-
id?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type NewViewedItem = {
|
|
8
|
-
businessEntity: BusinessEntityIds;
|
|
9
|
-
id: string;
|
|
10
|
-
viewedAt: string;
|
|
11
|
-
};
|
|
12
|
-
export declare type ViewedItemMeta = {
|
|
13
|
-
title: string;
|
|
14
|
-
subtitle: string;
|
|
15
|
-
thumbnail?: AttachmentValue | null;
|
|
16
|
-
};
|
|
17
|
-
export declare type ViewedItem = ViewedItemMeta & {
|
|
18
|
-
viewedAt: string;
|
|
19
|
-
id: string;
|
|
20
|
-
actions: string[];
|
|
21
|
-
};
|
|
22
|
-
export declare type RawViewedItem = {
|
|
23
|
-
id: string;
|
|
24
|
-
viewedAt: string;
|
|
25
|
-
};
|
|
26
|
-
export declare type ViewedItemHandler = (requester: Requester, req: ViewedItemsRequest, itemsBusinessEntity: BusinessEntityIds, items: RawViewedItem[]) => Promise<ViewedItem[]>;
|
|
27
|
-
export declare type ViewedItemsContextHandlers = {
|
|
28
|
-
[entity in BusinessEntityIds]?: ViewedItemHandler;
|
|
29
|
-
};
|
|
30
|
-
export declare type ViewedItemsHandlersCollection = {
|
|
31
|
-
[entity in BusinessEntityIds]?: ViewedItemsContextHandlers;
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=recently-viewed.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recently-viewed.d.ts","sourceRoot":"","sources":["../../src/types/recently-viewed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,oBAAY,kBAAkB,GAAG;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,cAAc,EAAE,iBAAiB,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,oBAAY,UAAU,GAAG,cAAc,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,CAC9B,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,kBAAkB,EACvB,mBAAmB,EAAE,iBAAiB,EACtC,KAAK,EAAE,aAAa,EAAE,KACnB,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;AAE3B,oBAAY,0BAA0B,GAAG;KACtC,MAAM,IAAI,iBAAiB,CAAC,CAAC,EAAE,iBAAiB;CAClD,CAAC;AAEF,oBAAY,6BAA6B,GAAG;KACzC,MAAM,IAAI,iBAAiB,CAAC,CAAC,EAAE,0BAA0B;CAC3D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recently-viewed.js","sourceRoot":"","sources":["../../src/types/recently-viewed.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BusinessEntityIds } from '../constants';
|
|
2
|
-
import { ComplexFilter } from './search';
|
|
3
|
-
declare type SavedFilterQuery = {
|
|
4
|
-
conditions: {
|
|
5
|
-
[fieldId: string]: ComplexFilter;
|
|
6
|
-
};
|
|
7
|
-
fullText?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare type SavedFilter = SavedFilterQuery & {
|
|
10
|
-
id: string;
|
|
11
|
-
businessEntityId: BusinessEntityIds;
|
|
12
|
-
name: string;
|
|
13
|
-
userId: string;
|
|
14
|
-
};
|
|
15
|
-
export declare type NewSavedFilterRequest = SavedFilterQuery & {
|
|
16
|
-
businessEntityId: BusinessEntityIds;
|
|
17
|
-
name: string;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=saved-filters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saved-filters.d.ts","sourceRoot":"","sources":["../../src/types/saved-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,aAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE;QACV,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAAC;KAClC,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,WAAW,GAAG,gBAAgB,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,qBAAqB,GAAG,gBAAgB,GAAG;IACrD,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saved-filters.js","sourceRoot":"","sources":["../../src/types/saved-filters.ts"],"names":[],"mappings":""}
|
package/lib/types/settings.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare type WebsiteSettings = {
|
|
2
|
-
contacts: {
|
|
3
|
-
destinations: string[];
|
|
4
|
-
};
|
|
5
|
-
leasing?: {
|
|
6
|
-
interestRate: number;
|
|
7
|
-
initialValues: {
|
|
8
|
-
residual: number;
|
|
9
|
-
deposit: number;
|
|
10
|
-
periods: number;
|
|
11
|
-
};
|
|
12
|
-
maxPeriods: number;
|
|
13
|
-
};
|
|
14
|
-
gatsbyCloud?: {
|
|
15
|
-
webhook: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare type HyperportalSettings = {
|
|
19
|
-
hcTenantId: string;
|
|
20
|
-
crm: {
|
|
21
|
-
active: boolean;
|
|
22
|
-
};
|
|
23
|
-
vehicles: {
|
|
24
|
-
active: boolean;
|
|
25
|
-
ignoreBeforeDate?: string;
|
|
26
|
-
};
|
|
27
|
-
leasing: {
|
|
28
|
-
active: boolean;
|
|
29
|
-
contractTransferDefinitionId: string;
|
|
30
|
-
contractDealDefinitionId: string;
|
|
31
|
-
contractOwner: {
|
|
32
|
-
[countryCode: string]: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export declare type HyperportalMachinesSettings = {
|
|
37
|
-
hcTenantId: string;
|
|
38
|
-
active: boolean;
|
|
39
|
-
};
|
|
40
|
-
export declare type LeasingCreditorBranch = {
|
|
41
|
-
bciNumber: string;
|
|
42
|
-
vatNumber: string;
|
|
43
|
-
licenceDate: string;
|
|
44
|
-
becrisFirstReportDate: string;
|
|
45
|
-
becrisStartDate: string;
|
|
46
|
-
};
|
|
47
|
-
export declare type LeasingCreditorSettings = {
|
|
48
|
-
[branchId: string]: LeasingCreditorBranch;
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/types/settings.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GAAG;IAC5B,QAAQ,EAAE;QACR,YAAY,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,EAAE;YACb,QAAQ,EAAE,MAAM,CAAC;YACjB,OAAO,EAAE,MAAM,CAAC;YAChB,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,WAAW,CAAC,EAAE;QACZ,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE;QACH,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;IACF,QAAQ,EAAE;QACR,MAAM,EAAE,OAAO,CAAC;QAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,OAAO,EAAE;QACP,MAAM,EAAE,OAAO,CAAC;QAChB,4BAA4B,EAAE,MAAM,CAAC;QACrC,wBAAwB,EAAE,MAAM,CAAC;QACjC,aAAa,EAAE;YAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KAClD,CAAC;CACH,CAAC;AAEF,oBAAY,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAAC;CAC3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/types/settings.ts"],"names":[],"mappings":""}
|
package/lib/types/templates.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare enum TemplateType {
|
|
2
|
-
Email = "email",
|
|
3
|
-
Sms = "sms"
|
|
4
|
-
}
|
|
5
|
-
export declare type TemplateContent = {
|
|
6
|
-
type: TemplateType.Email;
|
|
7
|
-
subject: string;
|
|
8
|
-
content: {
|
|
9
|
-
html: string;
|
|
10
|
-
design: any;
|
|
11
|
-
};
|
|
12
|
-
} | {
|
|
13
|
-
type: TemplateType.Sms;
|
|
14
|
-
content: string;
|
|
15
|
-
};
|
|
16
|
-
export declare type NewTemplateRequest = {
|
|
17
|
-
id?: string;
|
|
18
|
-
country: string;
|
|
19
|
-
name: string;
|
|
20
|
-
} & TemplateContent;
|
|
21
|
-
export declare type Template = {
|
|
22
|
-
id: string;
|
|
23
|
-
modifiedAt: string;
|
|
24
|
-
modifiedBy: string;
|
|
25
|
-
country: string;
|
|
26
|
-
name: string;
|
|
27
|
-
} & TemplateContent;
|
|
28
|
-
export declare type TemplateInfo = {
|
|
29
|
-
id: string;
|
|
30
|
-
countries: string[];
|
|
31
|
-
modifiedAt: string;
|
|
32
|
-
name: string;
|
|
33
|
-
type: TemplateType;
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/types/templates.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ;AAED,oBAAY,eAAe,GACvB;IACE,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,GAAG,CAAC;KACb,CAAC;CACH,GACD;IACE,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,oBAAY,kBAAkB,GAAG;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,eAAe,CAAC;AAEpB,oBAAY,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,eAAe,CAAC;AAEpB,oBAAY,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC"}
|
package/lib/types/templates.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TemplateType = void 0;
|
|
4
|
-
var TemplateType;
|
|
5
|
-
(function (TemplateType) {
|
|
6
|
-
TemplateType["Email"] = "email";
|
|
7
|
-
TemplateType["Sms"] = "sms";
|
|
8
|
-
})(TemplateType = exports.TemplateType || (exports.TemplateType = {}));
|
|
9
|
-
//# sourceMappingURL=templates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/types/templates.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,2BAAW,CAAA;AACb,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
|
package/lib/types/website.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { PhoneNumberRawValue, PhoneNumberValue } from '@bisondesk/commons-sdk/lib/types';
|
|
2
|
-
export declare type ContactFormRequest = {
|
|
3
|
-
email: string;
|
|
4
|
-
name: string;
|
|
5
|
-
message: string;
|
|
6
|
-
phone: PhoneNumberRawValue;
|
|
7
|
-
};
|
|
8
|
-
export declare type ValidContactFormRequest = Omit<ContactFormRequest, 'phone'> & {
|
|
9
|
-
phone: PhoneNumberValue;
|
|
10
|
-
};
|
|
11
|
-
export declare type ContactFormEvent = {
|
|
12
|
-
tenantId: string;
|
|
13
|
-
payload: ValidContactFormRequest;
|
|
14
|
-
};
|
|
15
|
-
export declare type LeasingSimulationRequest = {
|
|
16
|
-
deposit: number;
|
|
17
|
-
residual: number;
|
|
18
|
-
durationInMonths: number;
|
|
19
|
-
vehicleId: string;
|
|
20
|
-
};
|
|
21
|
-
export declare type LeasingSimulationResponse = {
|
|
22
|
-
monthly: string;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=website.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/types/website.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzF,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AAEF,oBAAY,uBAAuB,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,GAAG;IACxE,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,uBAAuB,CAAC;CAClC,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
package/lib/types/website.js
DELETED
package/lib/types/website.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"website.js","sourceRoot":"","sources":["../../src/types/website.ts"],"names":[],"mappings":""}
|
package/lib/utils/forms.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PricePercentageMode } from '../types/utils';
|
|
2
|
-
export declare const computePricePercentage: (totalAmount: string, percentage: string, partialAmount?: string, mode?: PricePercentageMode) => {
|
|
3
|
-
percentageAmount: string;
|
|
4
|
-
currencyAmount: string;
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=forms.d.ts.map
|
package/lib/utils/forms.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/utils/forms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,eAAO,MAAM,sBAAsB,gBACpB,MAAM,cACP,MAAM,kBACH,MAAM,SACf,mBAAmB,KACxB;IAAE,gBAAgB,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAuBpD,CAAC"}
|
package/lib/utils/forms.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.computePricePercentage = void 0;
|
|
7
|
-
const decimal_js_1 = __importDefault(require("decimal.js"));
|
|
8
|
-
const utils_1 = require("../types/utils");
|
|
9
|
-
const computePricePercentage = (totalAmount, percentage, partialAmount = '0', mode = utils_1.PricePercentageMode.PERCENTAGE) => {
|
|
10
|
-
const output = {
|
|
11
|
-
percentageAmount: percentage,
|
|
12
|
-
currencyAmount: partialAmount,
|
|
13
|
-
};
|
|
14
|
-
if (mode === utils_1.PricePercentageMode.PERCENTAGE) {
|
|
15
|
-
output.currencyAmount = new decimal_js_1.default(totalAmount)
|
|
16
|
-
.mul(percentage)
|
|
17
|
-
.div(100)
|
|
18
|
-
.toDecimalPlaces(2)
|
|
19
|
-
.clamp(0, totalAmount)
|
|
20
|
-
.toString();
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
output.percentageAmount = new decimal_js_1.default(partialAmount)
|
|
24
|
-
.mul(100)
|
|
25
|
-
.div(totalAmount)
|
|
26
|
-
.toDecimalPlaces(4)
|
|
27
|
-
.clamp(0, 100)
|
|
28
|
-
.toString();
|
|
29
|
-
}
|
|
30
|
-
return output;
|
|
31
|
-
};
|
|
32
|
-
exports.computePricePercentage = computePricePercentage;
|
|
33
|
-
//# sourceMappingURL=forms.js.map
|
package/lib/utils/forms.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/utils/forms.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAiC;AACjC,0CAAqD;AAE9C,MAAM,sBAAsB,GAAG,CACpC,WAAmB,EACnB,UAAkB,EAClB,gBAAwB,GAAG,EAC3B,OAA4B,2BAAmB,CAAC,UAAU,EACJ,EAAE;IACxD,MAAM,MAAM,GAAyD;QACnE,gBAAgB,EAAE,UAAU;QAC5B,cAAc,EAAE,aAAa;KAC9B,CAAC;IAEF,IAAI,IAAI,KAAK,2BAAmB,CAAC,UAAU,EAAE;QAC3C,MAAM,CAAC,cAAc,GAAG,IAAI,oBAAO,CAAC,WAAW,CAAC;aAC7C,GAAG,CAAC,UAAU,CAAC;aACf,GAAG,CAAC,GAAG,CAAC;aACR,eAAe,CAAC,CAAC,CAAC;aAClB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC;aACrB,QAAQ,EAAE,CAAC;KACf;SAAM;QACL,MAAM,CAAC,gBAAgB,GAAG,IAAI,oBAAO,CAAC,aAAa,CAAC;aACjD,GAAG,CAAC,GAAG,CAAC;aACR,GAAG,CAAC,WAAW,CAAC;aAChB,eAAe,CAAC,CAAC,CAAC;aAClB,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC;aACb,QAAQ,EAAE,CAAC;KACf;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AA5BW,QAAA,sBAAsB,0BA4BjC"}
|
package/lib/utils/leasing.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leasing.d.ts","sourceRoot":"","sources":["../../src/utils/leasing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,eAAO,MAAM,mBAAmB,YAAa,qBAAqB,EAAE,KAAG,qBAAqB,EAQzF,CAAC"}
|
package/lib/utils/leasing.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sortContractClients = void 0;
|
|
4
|
-
const dayjs_utils_1 = require("@bisondesk/commons-sdk/lib/dayjs-utils");
|
|
5
|
-
const lodash_1 = require("lodash");
|
|
6
|
-
/* sort from oldest to most recent client */
|
|
7
|
-
const sortContractClients = (clients) => (0, lodash_1.sortBy)((0, lodash_1.map)((0, lodash_1.uniqBy)(clients, (c) => c.takeoverId), (c) => ({ ...c, since: (0, dayjs_utils_1.utc)(c.since).format('YYYY-MM-DD') }) // doing a map to also fix legacy data
|
|
8
|
-
), (cli) => cli.since, (cli) => (cli.takeoverId ? parseInt(cli.takeoverId.replace(/[^0-9]/g, '')) : 0));
|
|
9
|
-
exports.sortContractClients = sortContractClients;
|
|
10
|
-
//# sourceMappingURL=leasing.js.map
|
package/lib/utils/leasing.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leasing.js","sourceRoot":"","sources":["../../src/utils/leasing.ts"],"names":[],"mappings":";;;AAAA,wEAA6D;AAC7D,mCAA6C;AAG7C,4CAA4C;AACrC,MAAM,mBAAmB,GAAG,CAAC,OAAgC,EAA2B,EAAE,CAC/F,IAAA,eAAM,EACJ,IAAA,YAAG,EACD,IAAA,eAAM,EAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,EACpC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,IAAA,iBAAG,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,sCAAsC;CACnG,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,EAClB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAChF,CAAC;AARS,QAAA,mBAAmB,uBAQ5B"}
|
package/lib/utils/slug.d.ts
DELETED
package/lib/utils/slug.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slug.d.ts","sourceRoot":"","sources":["../../src/utils/slug.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,cAAc,YAAa,OAAO,KAAG,MAejD,CAAC"}
|
package/lib/utils/slug.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getVehicleSlug = void 0;
|
|
7
|
-
const slugify_1 = __importDefault(require("slugify"));
|
|
8
|
-
const getVehicleSlug = (vehicle) => {
|
|
9
|
-
return (0, slugify_1.default)([
|
|
10
|
-
vehicle.external.identification.stockNumber ?? vehicle.internal.identification.stockNumber,
|
|
11
|
-
vehicle.external.general.make,
|
|
12
|
-
vehicle.external.general.modelName,
|
|
13
|
-
vehicle.external.general.typeName,
|
|
14
|
-
`${vehicle.external.history?.advertisingYear}`,
|
|
15
|
-
vehicle.external.general.category,
|
|
16
|
-
vehicle.external.general.bodystyle,
|
|
17
|
-
vehicle.external.powertrain?.axles?.configuration,
|
|
18
|
-
]
|
|
19
|
-
.filter((f) => !!f)
|
|
20
|
-
.join(' '));
|
|
21
|
-
};
|
|
22
|
-
exports.getVehicleSlug = getVehicleSlug;
|
|
23
|
-
//# sourceMappingURL=slug.js.map
|
package/lib/utils/slug.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slug.js","sourceRoot":"","sources":["../../src/utils/slug.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA8B;AAGvB,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAU,EAAE;IACzD,OAAO,IAAA,iBAAO,EACZ;QACE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW,IAAI,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW;QAC1F,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI;QAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS;QAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ;QACjC,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,EAAE;QAC9C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ;QACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS;QAClC,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,KAAK,EAAE,aAAa;KAClD;SACE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;SAClB,IAAI,CAAC,GAAG,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,cAAc,kBAezB"}
|
package/lib/utils/tenants.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../src/utils/tenants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,SAAS,WAAY,MAAM,YAAY,MAAM,KAAG,MAO5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,MAAM,KAAG,MAAiC,CAAC"}
|
package/lib/utils/tenants.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDefaultBranch = exports.getBranch = void 0;
|
|
4
|
-
const errors_1 = require("@bisondesk/commons-sdk/lib/errors");
|
|
5
|
-
const lodash_1 = require("lodash");
|
|
6
|
-
const getBranch = (tenant, branchId) => {
|
|
7
|
-
const branch = tenant.branches.find((branch) => branch.id === branchId);
|
|
8
|
-
if (branch == null) {
|
|
9
|
-
throw new errors_1.XError('tenants.branch-not-found', { tenantId: tenant.id, branchId });
|
|
10
|
-
}
|
|
11
|
-
return branch;
|
|
12
|
-
};
|
|
13
|
-
exports.getBranch = getBranch;
|
|
14
|
-
const getDefaultBranch = (tenant) => (0, lodash_1.first)(tenant.branches);
|
|
15
|
-
exports.getDefaultBranch = getDefaultBranch;
|
|
16
|
-
//# sourceMappingURL=tenants.js.map
|
package/lib/utils/tenants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../src/utils/tenants.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,mCAA+B;AAGxB,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,QAAgB,EAAU,EAAE;IACpE,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;IAChF,IAAI,MAAM,IAAI,IAAI,EAAE;QAClB,MAAM,IAAI,eAAM,CAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;KACjF;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAPW,QAAA,SAAS,aAOpB;AAEK,MAAM,gBAAgB,GAAG,CAAC,MAAc,EAAU,EAAE,CAAC,IAAA,cAAK,EAAC,MAAM,CAAC,QAAQ,CAAE,CAAC;AAAvE,QAAA,gBAAgB,oBAAuD"}
|
package/lib/utils/vehicles.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CustomSearchState, Vehicle, VehicleExternalInfo } from '../types/vehicles';
|
|
2
|
-
export declare const extractCustomState: (vehicle: Vehicle) => CustomSearchState[];
|
|
3
|
-
export declare const extractCustomFeatures: (vehicle: VehicleExternalInfo) => string[];
|
|
4
|
-
export declare const getInternalTitle: ({ make, category, modelName, bodywork, modelTypeName, }: {
|
|
5
|
-
make: string;
|
|
6
|
-
category: string;
|
|
7
|
-
modelName?: string | undefined;
|
|
8
|
-
modelTypeName?: string | undefined;
|
|
9
|
-
bodywork?: string | undefined;
|
|
10
|
-
}) => string;
|
|
11
|
-
export declare const convertNumberToLetters: (num: number) => string;
|
|
12
|
-
//# sourceMappingURL=vehicles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vehicles.d.ts","sourceRoot":"","sources":["../../src/utils/vehicles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEpF,eAAO,MAAM,kBAAkB,YAAa,OAAO,KAAG,iBAAiB,EAYtE,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAa,mBAAmB,KAAG,MAAM,EA+B1E,CAAC;AAEF,eAAO,MAAM,gBAAgB;UAOrB,MAAM;cACF,MAAM;;;;MAId,MAcH,CAAC;AAGF,eAAO,MAAM,sBAAsB,QAAS,MAAM,KAAG,MAYpD,CAAC"}
|