@wayke-se/ecom-web 1.8.5 → 2.0.0
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/dist/@types/BaseAction.d.ts +3 -0
- package/dist/@types/CallbackOrder.d.ts +4 -0
- package/dist/@types/CreditAssessmentStatus.d.ts +17 -0
- package/dist/@types/Customer.d.ts +20 -0
- package/dist/@types/EcomSdkConfig.d.ts +6 -0
- package/dist/@types/Insurance.d.ts +5 -0
- package/dist/@types/MarketCode.d.ts +1 -0
- package/dist/@types/Navigation.d.ts +6 -0
- package/dist/@types/OrderOptions.d.ts +27 -0
- package/dist/@types/PaymentLookup.d.ts +19 -0
- package/dist/@types/PaymentOrderResponse.d.ts +99 -0
- package/dist/@types/Stages.d.ts +46 -0
- package/dist/@types/TradeIn.d.ts +17 -0
- package/dist/@types/Vehicle.d.ts +10 -0
- package/dist/@types/VehicleLookup.d.ts +4 -0
- package/dist/App.d.ts +38 -0
- package/dist/Components/Accordion/index.d.ts +14 -0
- package/dist/Components/BankId/BankIdSign.d.ts +29 -0
- package/dist/Components/BankId/BankIdSignQrCode.d.ts +11 -0
- package/dist/Components/BankId/BankIdSignSameDevice.d.ts +12 -0
- package/dist/Components/Button/Button.d.ts +17 -0
- package/dist/Components/Button/ButtonAddRemove.d.ts +18 -0
- package/dist/Components/Button/ButtonAlt.d.ts +17 -0
- package/dist/Components/Button/ButtonArrowRight.d.ts +17 -0
- package/dist/Components/Button/ButtonAsLink.d.ts +14 -0
- package/dist/Components/Button/ButtonAsLinkArrowLeft.d.ts +14 -0
- package/dist/Components/Button/ButtonBankId.d.ts +17 -0
- package/dist/Components/Button/ButtonClear.d.ts +12 -0
- package/dist/Components/Button/ButtonClose.d.ts +12 -0
- package/dist/Components/Button/ButtonSkip.d.ts +12 -0
- package/dist/Components/Button/ButtonSuccess.d.ts +17 -0
- package/dist/Components/Chart/PieChart.d.ts +11 -0
- package/dist/Components/Checklist/Checklist.d.ts +12 -0
- package/dist/Components/Disclaimer/Disclaimer.d.ts +10 -0
- package/dist/Components/Disclaimer/DisclaimerPadlock.d.ts +10 -0
- package/dist/Components/ErrorAlert/index.d.ts +12 -0
- package/dist/Components/Extension/HtmlNode.d.ts +16 -0
- package/dist/Components/Extension/StackNode.d.ts +5 -0
- package/dist/Components/Gallery/Arrow.d.ts +13 -0
- package/dist/Components/Gallery/Gallery.d.ts +21 -0
- package/dist/Components/Input/InputCheckbox.d.ts +21 -0
- package/dist/Components/Input/InputError.d.ts +13 -0
- package/dist/Components/Input/InputField.d.ts +30 -0
- package/dist/Components/Input/InputInformation.d.ts +13 -0
- package/dist/Components/Input/InputRadioField.d.ts +18 -0
- package/dist/Components/Input/InputRadioGroup.d.ts +29 -0
- package/dist/Components/Input/InputRange.d.ts +39 -0
- package/dist/Components/Input/InputSelect.d.ts +25 -0
- package/dist/Components/Input/InputTextarea.d.ts +22 -0
- package/dist/Components/Modal/Modal.d.ts +17 -0
- package/dist/Components/Modal/ModalBody.d.ts +8 -0
- package/dist/Components/Modal/ModalCenter.d.ts +8 -0
- package/dist/Components/Modal/ModalClose.d.ts +12 -0
- package/dist/Components/Modal/ModalContainer.d.ts +8 -0
- package/dist/Components/Modal/ModalDialog.d.ts +8 -0
- package/dist/Components/Modal/ModalFooter.d.ts +12 -0
- package/dist/Components/Modal/ModalHeader.d.ts +16 -0
- package/dist/Components/OverflowGrid/Arrow.d.ts +13 -0
- package/dist/Components/OverflowGrid/OverflowGridItem.d.ts +25 -0
- package/dist/Components/OverflowGrid/OverflowGridList.d.ts +17 -0
- package/dist/Components/StageCompleted.d.ts +13 -0
- package/dist/Data/createOrder.d.ts +2 -0
- package/dist/Data/creditAssessmentAccept.d.ts +1 -0
- package/dist/Data/creditAssessmentCancelSigning.d.ts +1 -0
- package/dist/Data/creditAssessmentDecline.d.ts +1 -0
- package/dist/Data/creditAssessmentGetStatus.d.ts +1 -0
- package/dist/Data/creditAssessmentNewCase.d.ts +2 -0
- package/dist/Data/creditAssessmentSignCase.d.ts +2 -0
- package/dist/Data/getAddress.d.ts +1 -0
- package/dist/Data/getBankIdAuth.d.ts +2 -0
- package/dist/Data/getBankIdQrCode.d.ts +1 -0
- package/dist/Data/getBankIdStatus.d.ts +1 -0
- package/dist/Data/getInsurances.d.ts +3 -0
- package/dist/Data/getOrder.d.ts +1 -0
- package/dist/Data/getPayment.d.ts +10 -0
- package/dist/Data/getTradeInVehicle.d.ts +2 -0
- package/dist/Redux/action.d.ts +241 -0
- package/dist/Redux/reducer.d.ts +44 -0
- package/dist/Redux/store.d.ts +5 -0
- package/dist/Redux/watch.d.ts +5 -0
- package/dist/Templates/Alert.d.ts +8 -0
- package/dist/Templates/InputHelp.d.ts +2 -0
- package/dist/Templates/ItemTileLarge.d.ts +10 -0
- package/dist/Templates/ItemTileSmall.d.ts +9 -0
- package/dist/Templates/KeyValueListItem.d.ts +12 -0
- package/dist/Templates/ListItem.d.ts +9 -0
- package/dist/Templates/Loader.d.ts +6 -0
- package/dist/Templates/Logotype.d.ts +8 -0
- package/dist/Templates/TimelineItem.d.ts +7 -0
- package/dist/Utils/cdn.d.ts +1 -0
- package/dist/Utils/compare.d.ts +1 -0
- package/dist/Utils/constants.d.ts +18 -0
- package/dist/Utils/convert.d.ts +12 -0
- package/dist/Utils/delivery.d.ts +3 -0
- package/dist/Utils/ecomEvent.d.ts +156 -0
- package/dist/Utils/format.d.ts +10 -0
- package/dist/Utils/i18n.d.ts +6 -0
- package/dist/Utils/intervals.d.ts +2 -0
- package/dist/Utils/isMobile.d.ts +1 -0
- package/dist/Utils/market.d.ts +2 -0
- package/dist/Utils/mask.d.ts +2 -0
- package/dist/Utils/parser.d.ts +1 -0
- package/dist/Utils/payment.d.ts +1 -0
- package/dist/Utils/portal.d.ts +2 -0
- package/dist/Utils/regex.d.ts +7 -0
- package/dist/Utils/render.d.ts +1 -0
- package/dist/Utils/scroll.d.ts +1 -0
- package/dist/Utils/stage.d.ts +3 -0
- package/dist/Utils/trapFocus.d.ts +1 -0
- package/dist/Utils/validationMethods.d.ts +24 -0
- package/dist/Utils/vw.d.ts +1 -0
- package/dist/Views/ConfirmClose/index.d.ts +11 -0
- package/dist/Views/Main/Accessories/AccessoryItem.d.ts +20 -0
- package/dist/Views/Main/Accessories/AccessoryItemInfo.d.ts +15 -0
- package/dist/Views/Main/Accessories/AccessoryList.d.ts +13 -0
- package/dist/Views/Main/Accessories/index.d.ts +15 -0
- package/dist/Views/Main/CentralStorage/index.d.ts +20 -0
- package/dist/Views/Main/Confirmation/NoVerify.d.ts +18 -0
- package/dist/Views/Main/Confirmation/Payment.d.ts +12 -0
- package/dist/Views/Main/Confirmation/VerifyByBankId.d.ts +41 -0
- package/dist/Views/Main/Confirmation/index.d.ts +15 -0
- package/dist/Views/Main/Customer/EmailAndPhone.d.ts +23 -0
- package/dist/Views/Main/Customer/FullAddress.d.ts +15 -0
- package/dist/Views/Main/Customer/FullAddressBySocialId.d.ts +23 -0
- package/dist/Views/Main/Customer/FullAddressForm.d.ts +28 -0
- package/dist/Views/Main/Customer/index.d.ts +16 -0
- package/dist/Views/Main/Delivery/index.d.ts +17 -0
- package/dist/Views/Main/Financial/CreditAssessment.d.ts +49 -0
- package/dist/Views/Main/Financial/CreditAssessmentApproved.d.ts +13 -0
- package/dist/Views/Main/Financial/CreditAssessmentAssessManually.d.ts +13 -0
- package/dist/Views/Main/Financial/CreditAssessmentRejected.d.ts +12 -0
- package/dist/Views/Main/Financial/CreditAssessmentResult.d.ts +15 -0
- package/dist/Views/Main/Financial/Loan.d.ts +24 -0
- package/dist/Views/Main/Financial/LoanDetails.d.ts +16 -0
- package/dist/Views/Main/Financial/LoanDetailsBasic.d.ts +14 -0
- package/dist/Views/Main/Financial/LoanDetailsDetailed.d.ts +20 -0
- package/dist/Views/Main/Financial/LoanDetailsMonthlyCost.d.ts +11 -0
- package/dist/Views/Main/Financial/StageCompletedFinancial.d.ts +18 -0
- package/dist/Views/Main/Financial/StageCompletedFinancialCreditAssessment.d.ts +13 -0
- package/dist/Views/Main/Financial/Summary.d.ts +10 -0
- package/dist/Views/Main/Financial/index.d.ts +19 -0
- package/dist/Views/Main/Financial/utils.d.ts +5 -0
- package/dist/Views/Main/Insurance/DefaultInsurance/InsuranceItem.d.ts +18 -0
- package/dist/Views/Main/Insurance/DefaultInsurance/InsuranceItemInfo.d.ts +14 -0
- package/dist/Views/Main/Insurance/DefaultInsurance/InsuranceList.d.ts +13 -0
- package/dist/Views/Main/Insurance/DefaultInsurance/index.d.ts +15 -0
- package/dist/Views/Main/Insurance/IfInsurance/InsuranceAddonBox.d.ts +6 -0
- package/dist/Views/Main/Insurance/IfInsurance/InsuranceItem.d.ts +18 -0
- package/dist/Views/Main/Insurance/IfInsurance/InsuranceItemInfo.d.ts +21 -0
- package/dist/Views/Main/Insurance/IfInsurance/InsuranceList.d.ts +13 -0
- package/dist/Views/Main/Insurance/IfInsurance/InsuranceView.d.ts +21 -0
- package/dist/Views/Main/Insurance/IfInsurance/index.d.ts +17 -0
- package/dist/Views/Main/Insurance/index.d.ts +18 -0
- package/dist/Views/Main/TradeIn/PartTradeIn.d.ts +33 -0
- package/dist/Views/Main/TradeIn/index.d.ts +18 -0
- package/dist/Views/Main/index.d.ts +14 -0
- package/dist/Views/OrderCallback/index.d.ts +17 -0
- package/dist/Views/Preview/HowTo.d.ts +8 -0
- package/dist/Views/Preview/index.d.ts +20 -0
- package/dist/Views/Summary/CentralStorage.d.ts +12 -0
- package/dist/Views/Summary/Customer.d.ts +13 -0
- package/dist/Views/Summary/Delivery.d.ts +12 -0
- package/dist/Views/Summary/Intro.d.ts +11 -0
- package/dist/Views/Summary/Order.d.ts +12 -0
- package/dist/Views/Summary/TradeIn.d.ts +13 -0
- package/dist/Views/Summary/index.d.ts +15 -0
- package/dist/cdn.d.ts +6 -0
- package/dist/devConfig.d.ts +44 -0
- package/dist/index-dev.d.ts +1 -0
- package/dist/index.cjs +161 -161
- package/dist/index.cjs.map +4 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- package/dist/index.d.ts +2 -4163
- package/dist/index.mjs +134 -134
- package/dist/index.mjs.map +4 -4
- package/dist/translation/index.d.ts +2 -0
- package/dist/translation/nb-NO.d.ts +487 -0
- package/dist/translation/sv-SE.d.ts +487 -0
- package/package.json +24 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function trapFocus(modalElement: HTMLElement): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MarketCode } from '../@types/MarketCode';
|
|
2
|
+
export declare const validationMethods: {
|
|
3
|
+
requiredEmail: (s: string) => boolean;
|
|
4
|
+
requiredTelephone: (s: string) => boolean;
|
|
5
|
+
requiredSsn: (s: string) => boolean;
|
|
6
|
+
requiredSsnOver18: (s: string) => boolean;
|
|
7
|
+
requiredZip: (s: string) => boolean;
|
|
8
|
+
requiredNumberOrStringNumberInRange: (s: string | number, from: number, to: number) => boolean;
|
|
9
|
+
requiredNumber: (s?: string | number | null) => boolean;
|
|
10
|
+
requiredNumberGreaterOrEqualThanZero: (s?: string | number | null) => boolean;
|
|
11
|
+
optionalNumberGreaterOrEqualThanZero: (s?: string | number | null) => boolean;
|
|
12
|
+
optionalNumber: (s?: string | number | null) => boolean;
|
|
13
|
+
requiredRegistrationNumber: (s?: string, marketCode?: MarketCode) => boolean;
|
|
14
|
+
requiredMileage: (s?: string) => boolean;
|
|
15
|
+
optionalString: (s?: string) => boolean;
|
|
16
|
+
requiredCondition: (s?: string) => boolean;
|
|
17
|
+
requiredAssessmentMaritalStatus: (s?: string) => boolean;
|
|
18
|
+
requiredAssessmentEmplyment: (s?: string) => boolean;
|
|
19
|
+
requiredHousingType: (s?: string) => boolean;
|
|
20
|
+
requiredName: (s?: string) => boolean;
|
|
21
|
+
requiredCity: (s?: string) => boolean;
|
|
22
|
+
requiredStreet: (s?: string) => boolean;
|
|
23
|
+
requiredStreet2: (_s?: string) => boolean;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useVwListner: () => () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import HtmlNode from '../../Components/Extension/HtmlNode';
|
|
2
|
+
interface ConfirmCloseProps {
|
|
3
|
+
readonly onConfirmClose: () => void;
|
|
4
|
+
readonly onAbortClose: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare class ConfirmClose extends HtmlNode {
|
|
7
|
+
private readonly props;
|
|
8
|
+
constructor(element: HTMLElement, props: ConfirmCloseProps);
|
|
9
|
+
render(): void;
|
|
10
|
+
}
|
|
11
|
+
export default ConfirmClose;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAccessory } from '@wayke-se/ecom/dist-types/orders/types';
|
|
2
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
3
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
4
|
+
interface AccessoryItemProps {
|
|
5
|
+
readonly store: WaykeStore;
|
|
6
|
+
readonly accessory: IAccessory;
|
|
7
|
+
readonly key: string;
|
|
8
|
+
}
|
|
9
|
+
declare class AccessoryItem extends HtmlNode {
|
|
10
|
+
private readonly props;
|
|
11
|
+
private displayInfo;
|
|
12
|
+
private exposureTracked;
|
|
13
|
+
constructor(element: HTMLElement, props: AccessoryItemProps);
|
|
14
|
+
private onInfoOpen;
|
|
15
|
+
private onInfoClose;
|
|
16
|
+
private onClick;
|
|
17
|
+
private trackExposure;
|
|
18
|
+
render(): void;
|
|
19
|
+
}
|
|
20
|
+
export default AccessoryItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IAccessory } from '@wayke-se/ecom/dist-types/orders/types';
|
|
2
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
3
|
+
interface AccessoryItemInfoProps {
|
|
4
|
+
readonly accessory: IAccessory;
|
|
5
|
+
readonly selected: boolean;
|
|
6
|
+
readonly onClick: () => void;
|
|
7
|
+
readonly onClose: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare class AccessoryItemInfo extends HtmlNode {
|
|
10
|
+
private readonly props;
|
|
11
|
+
constructor(element: HTMLElement, props: AccessoryItemInfoProps);
|
|
12
|
+
private onGalleryImagePaging;
|
|
13
|
+
render(): void;
|
|
14
|
+
}
|
|
15
|
+
export default AccessoryItemInfo;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAccessory } from '@wayke-se/ecom/dist-types/orders/types';
|
|
2
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
3
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
4
|
+
interface AccessoryListProps {
|
|
5
|
+
readonly store: WaykeStore;
|
|
6
|
+
readonly accessories: IAccessory[];
|
|
7
|
+
}
|
|
8
|
+
declare class AccessoryList extends HtmlNode {
|
|
9
|
+
private readonly props;
|
|
10
|
+
constructor(element: HTMLElement | null, props: AccessoryListProps);
|
|
11
|
+
render(): void;
|
|
12
|
+
}
|
|
13
|
+
export default AccessoryList;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface AccessoriesProps {
|
|
4
|
+
readonly store: WaykeStore;
|
|
5
|
+
readonly index: number;
|
|
6
|
+
readonly lastStage: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare class Accessories extends HtmlNode {
|
|
9
|
+
private readonly props;
|
|
10
|
+
constructor(element: HTMLElement, props: AccessoriesProps);
|
|
11
|
+
private onProceed;
|
|
12
|
+
private onEdit;
|
|
13
|
+
render(): void;
|
|
14
|
+
}
|
|
15
|
+
export default Accessories;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface CentralStorageProps {
|
|
4
|
+
readonly store: WaykeStore;
|
|
5
|
+
readonly index: number;
|
|
6
|
+
readonly lastStage: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare class CentralStorage extends HtmlNode {
|
|
9
|
+
private readonly props;
|
|
10
|
+
private selectedDealer?;
|
|
11
|
+
private requestError;
|
|
12
|
+
private contexts;
|
|
13
|
+
constructor(element: HTMLElement, props: CentralStorageProps);
|
|
14
|
+
private updateOrder;
|
|
15
|
+
private onChange;
|
|
16
|
+
private onEdit;
|
|
17
|
+
private onProceed;
|
|
18
|
+
render(): void;
|
|
19
|
+
}
|
|
20
|
+
export default CentralStorage;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface NoVerifyProps {
|
|
4
|
+
store: WaykeStore;
|
|
5
|
+
}
|
|
6
|
+
declare class NoVerify extends HtmlNode {
|
|
7
|
+
private props;
|
|
8
|
+
private requestError;
|
|
9
|
+
private notAvailable;
|
|
10
|
+
private view;
|
|
11
|
+
private contexts;
|
|
12
|
+
private acceptConditions;
|
|
13
|
+
constructor(element: HTMLElement | null, props: NoVerifyProps);
|
|
14
|
+
private onCreateOrder;
|
|
15
|
+
private onCheckbox;
|
|
16
|
+
render(): void;
|
|
17
|
+
}
|
|
18
|
+
export default NoVerify;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface PaymentProps {
|
|
4
|
+
store: WaykeStore;
|
|
5
|
+
}
|
|
6
|
+
declare class Payment extends HtmlNode {
|
|
7
|
+
private props;
|
|
8
|
+
constructor(element: HTMLElement | null, props: PaymentProps);
|
|
9
|
+
init(): void;
|
|
10
|
+
render(): void;
|
|
11
|
+
}
|
|
12
|
+
export default Payment;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface VerifyByBankIdProps {
|
|
4
|
+
readonly store: WaykeStore;
|
|
5
|
+
readonly index: number;
|
|
6
|
+
readonly lastStage: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare class VerifyByBankId extends HtmlNode {
|
|
9
|
+
private readonly props;
|
|
10
|
+
private bankidStatusInterval?;
|
|
11
|
+
private bankidQrCodeInterval?;
|
|
12
|
+
private focusTimeout?;
|
|
13
|
+
private view;
|
|
14
|
+
private contexts;
|
|
15
|
+
private ageError;
|
|
16
|
+
private requestError;
|
|
17
|
+
private socialIdNotMatchingError;
|
|
18
|
+
private notAvailable;
|
|
19
|
+
private confirmConditions;
|
|
20
|
+
private bankidRequestRef;
|
|
21
|
+
constructor(element: HTMLElement, props: VerifyByBankIdProps);
|
|
22
|
+
private addWindowEvents;
|
|
23
|
+
private removeWindowEvents;
|
|
24
|
+
private clearIntervals;
|
|
25
|
+
private onFocus;
|
|
26
|
+
private onSameDeviceClick;
|
|
27
|
+
private setBankidRequestRef;
|
|
28
|
+
private clearBankidRequestRef;
|
|
29
|
+
private acceptCreditAssessment;
|
|
30
|
+
private onCreateOrder;
|
|
31
|
+
private handleBankidStatusResponse;
|
|
32
|
+
private bankidStatus;
|
|
33
|
+
private qrCode;
|
|
34
|
+
private startBankidSameDevice;
|
|
35
|
+
private startBankidWithQr;
|
|
36
|
+
private onStartBankIdAuth;
|
|
37
|
+
private onAbort;
|
|
38
|
+
private onCheckbox;
|
|
39
|
+
render(): void;
|
|
40
|
+
}
|
|
41
|
+
export default VerifyByBankId;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface ConfirmationProps {
|
|
4
|
+
readonly store: WaykeStore;
|
|
5
|
+
readonly index: number;
|
|
6
|
+
readonly lastStage: boolean;
|
|
7
|
+
readonly bypassBankId: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare class Confirmation extends HtmlNode {
|
|
10
|
+
private readonly props;
|
|
11
|
+
private view;
|
|
12
|
+
constructor(element: HTMLElement, props: ConfirmationProps);
|
|
13
|
+
render(): void;
|
|
14
|
+
}
|
|
15
|
+
export default Confirmation;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
export interface PartialCustomerValidation {
|
|
4
|
+
email: boolean;
|
|
5
|
+
phone: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface EmailAndPhoneProps {
|
|
8
|
+
readonly store: WaykeStore;
|
|
9
|
+
}
|
|
10
|
+
declare class EmailAndPhone extends HtmlNode {
|
|
11
|
+
private readonly props;
|
|
12
|
+
private state;
|
|
13
|
+
private contexts;
|
|
14
|
+
constructor(element: HTMLDivElement, props: EmailAndPhoneProps);
|
|
15
|
+
private onChange;
|
|
16
|
+
private onBlur;
|
|
17
|
+
private updateUiError;
|
|
18
|
+
private updateProceedButton;
|
|
19
|
+
private onProceed;
|
|
20
|
+
private onChangeContacts;
|
|
21
|
+
render(): void;
|
|
22
|
+
}
|
|
23
|
+
export default EmailAndPhone;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MarketCode } from '../../../@types/MarketCode';
|
|
2
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
3
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
4
|
+
interface FullAddressProps {
|
|
5
|
+
readonly store: WaykeStore;
|
|
6
|
+
readonly lastStage: boolean;
|
|
7
|
+
readonly marketCode: MarketCode;
|
|
8
|
+
}
|
|
9
|
+
declare class FullAddress extends HtmlNode {
|
|
10
|
+
private readonly props;
|
|
11
|
+
private state;
|
|
12
|
+
constructor(element: HTMLDivElement, props: FullAddressProps);
|
|
13
|
+
render(): void;
|
|
14
|
+
}
|
|
15
|
+
export default FullAddress;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
export interface SocialIdValidation {
|
|
4
|
+
socialId: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface FullAddressBySocialIdProps {
|
|
7
|
+
readonly store: WaykeStore;
|
|
8
|
+
readonly lastStage: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare class FullAddressBySocialId extends HtmlNode {
|
|
11
|
+
private readonly props;
|
|
12
|
+
private state;
|
|
13
|
+
private requestError;
|
|
14
|
+
private contexts;
|
|
15
|
+
constructor(element: HTMLElement, props: FullAddressBySocialIdProps);
|
|
16
|
+
private onFetchAddress;
|
|
17
|
+
private onChange;
|
|
18
|
+
private onBlur;
|
|
19
|
+
private updateUiError;
|
|
20
|
+
private updateProceedButton;
|
|
21
|
+
render(): void;
|
|
22
|
+
}
|
|
23
|
+
export default FullAddressBySocialId;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
export interface PartialAddressValidation {
|
|
4
|
+
givenName: boolean;
|
|
5
|
+
surname: boolean;
|
|
6
|
+
street: boolean;
|
|
7
|
+
street2: boolean;
|
|
8
|
+
postalCode: boolean;
|
|
9
|
+
city: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface FullAddressFormProps {
|
|
12
|
+
readonly store: WaykeStore;
|
|
13
|
+
readonly lastStage: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare class FullAddressForm extends HtmlNode {
|
|
16
|
+
private readonly props;
|
|
17
|
+
private state;
|
|
18
|
+
private contexts;
|
|
19
|
+
constructor(element: HTMLElement, props: FullAddressFormProps);
|
|
20
|
+
private onChange;
|
|
21
|
+
private onBlur;
|
|
22
|
+
private updateUiError;
|
|
23
|
+
private updateProceedButton;
|
|
24
|
+
private onProceed;
|
|
25
|
+
private onChangeAddress;
|
|
26
|
+
render(): void;
|
|
27
|
+
}
|
|
28
|
+
export default FullAddressForm;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MarketCode } from '../../../@types/MarketCode';
|
|
2
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
3
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
4
|
+
interface CustomerProps {
|
|
5
|
+
readonly store: WaykeStore;
|
|
6
|
+
readonly index: number;
|
|
7
|
+
readonly lastStage: boolean;
|
|
8
|
+
readonly marketCode: MarketCode;
|
|
9
|
+
}
|
|
10
|
+
declare class Customer extends HtmlNode {
|
|
11
|
+
private readonly props;
|
|
12
|
+
constructor(element: HTMLElement, props: CustomerProps);
|
|
13
|
+
private onChange;
|
|
14
|
+
render(): void;
|
|
15
|
+
}
|
|
16
|
+
export default Customer;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface DeliveryProps {
|
|
4
|
+
readonly store: WaykeStore;
|
|
5
|
+
readonly index: number;
|
|
6
|
+
readonly lastStage: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare class Delivery extends HtmlNode {
|
|
9
|
+
private readonly props;
|
|
10
|
+
private homeDelivery;
|
|
11
|
+
constructor(element: HTMLElement, props: DeliveryProps);
|
|
12
|
+
private onChange;
|
|
13
|
+
private onProceed;
|
|
14
|
+
private onEdit;
|
|
15
|
+
render(): void;
|
|
16
|
+
}
|
|
17
|
+
export default Delivery;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PaymentOption } from '../../../@types/OrderOptions';
|
|
2
|
+
import { PaymentLookup } from '../../../@types/PaymentLookup';
|
|
3
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
4
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
5
|
+
export declare const DISCLAIMER_WRAPPER_NODE = "credit-assessment-disclaimer";
|
|
6
|
+
export interface CreditAssessmentHouseholdEconomyValidation {
|
|
7
|
+
maritalStatus: boolean;
|
|
8
|
+
income: boolean;
|
|
9
|
+
employment: boolean;
|
|
10
|
+
householdChildren: boolean;
|
|
11
|
+
housingCost: boolean;
|
|
12
|
+
'debtSpecification.cardCredits': boolean;
|
|
13
|
+
'debtSpecification.vehicleLoan': boolean;
|
|
14
|
+
'debtSpecification.collateral': boolean;
|
|
15
|
+
'debtSpecification.leasingFees': boolean;
|
|
16
|
+
'debtSpecification.privateLoan': boolean;
|
|
17
|
+
housingType: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface CreditAssessmentProps {
|
|
20
|
+
readonly store: WaykeStore;
|
|
21
|
+
readonly loan: PaymentOption;
|
|
22
|
+
readonly paymentLookupResponse: PaymentLookup;
|
|
23
|
+
readonly onProceed: () => void;
|
|
24
|
+
}
|
|
25
|
+
declare class CreditAssessment extends HtmlNode {
|
|
26
|
+
private readonly props;
|
|
27
|
+
private state;
|
|
28
|
+
private bankidStatusInterval?;
|
|
29
|
+
private view;
|
|
30
|
+
private contexts;
|
|
31
|
+
private caseError?;
|
|
32
|
+
private bankidError;
|
|
33
|
+
private signed;
|
|
34
|
+
private creditAssessmentResponse?;
|
|
35
|
+
constructor(element: HTMLDivElement | undefined | null, props: CreditAssessmentProps);
|
|
36
|
+
private onChange;
|
|
37
|
+
private onBlur;
|
|
38
|
+
private onChangeSelect;
|
|
39
|
+
private onChangeRadio;
|
|
40
|
+
private updateUiError;
|
|
41
|
+
private updateProceedButton;
|
|
42
|
+
private onAbort;
|
|
43
|
+
private bankIdStatus;
|
|
44
|
+
private onStartBankIdAuth;
|
|
45
|
+
private startBankId;
|
|
46
|
+
private newCreditAssessmentCase;
|
|
47
|
+
private render;
|
|
48
|
+
}
|
|
49
|
+
export default CreditAssessment;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface CreditAssessmentApprovedProps {
|
|
4
|
+
readonly store: WaykeStore;
|
|
5
|
+
readonly onProceed: () => void;
|
|
6
|
+
readonly onGoBack: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare class CreditAssessmentApproved extends HtmlNode {
|
|
9
|
+
private readonly props;
|
|
10
|
+
constructor(element: HTMLElement, props: CreditAssessmentApprovedProps);
|
|
11
|
+
render(): void;
|
|
12
|
+
}
|
|
13
|
+
export default CreditAssessmentApproved;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface CreditAssessmentAssessManuallyProps {
|
|
4
|
+
readonly store: WaykeStore;
|
|
5
|
+
readonly onProceed: () => void;
|
|
6
|
+
readonly onGoBack: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare class CreditAssessmentAssessManually extends HtmlNode {
|
|
9
|
+
private readonly props;
|
|
10
|
+
constructor(element: HTMLElement, props: CreditAssessmentAssessManuallyProps);
|
|
11
|
+
render(): void;
|
|
12
|
+
}
|
|
13
|
+
export default CreditAssessmentAssessManually;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
3
|
+
interface CreditAssessmentRejectedProps {
|
|
4
|
+
readonly store: WaykeStore;
|
|
5
|
+
readonly onGoBack: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare class CreditAssessmentRejected extends HtmlNode {
|
|
8
|
+
private props;
|
|
9
|
+
constructor(element: HTMLElement, props: CreditAssessmentRejectedProps);
|
|
10
|
+
render(): void;
|
|
11
|
+
}
|
|
12
|
+
export default CreditAssessmentRejected;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICreditAssessmentStatus } from '../../../@types/CreditAssessmentStatus';
|
|
2
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
3
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
4
|
+
interface CreditAssessmentResultProps {
|
|
5
|
+
readonly store: WaykeStore;
|
|
6
|
+
readonly creditAssessmentResponse: ICreditAssessmentStatus;
|
|
7
|
+
readonly onProceed: () => void;
|
|
8
|
+
readonly onGoBack: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare class CreditAssessmentResult extends HtmlNode {
|
|
11
|
+
private readonly props;
|
|
12
|
+
constructor(element: HTMLElement, props: CreditAssessmentResultProps);
|
|
13
|
+
render(): void;
|
|
14
|
+
}
|
|
15
|
+
export default CreditAssessmentResult;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PaymentOption } from '../../../@types/OrderOptions';
|
|
2
|
+
import { PaymentLookup } from '../../../@types/PaymentLookup';
|
|
3
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
4
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
5
|
+
interface LoanProps {
|
|
6
|
+
readonly store: WaykeStore;
|
|
7
|
+
readonly loan: PaymentOption;
|
|
8
|
+
readonly vehicleId: string;
|
|
9
|
+
readonly paymentLookupResponse?: PaymentLookup;
|
|
10
|
+
readonly onProceed: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare class Loan extends HtmlNode {
|
|
13
|
+
private readonly props;
|
|
14
|
+
private paymentState;
|
|
15
|
+
private previousState;
|
|
16
|
+
private paymentLookupResponse;
|
|
17
|
+
private contexts;
|
|
18
|
+
constructor(element: HTMLDivElement, props: LoanProps);
|
|
19
|
+
private payment;
|
|
20
|
+
private onChange;
|
|
21
|
+
private update;
|
|
22
|
+
render(): void;
|
|
23
|
+
}
|
|
24
|
+
export default Loan;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PaymentOption } from '../../../@types/OrderOptions';
|
|
2
|
+
import { PaymentLookup } from '../../../@types/PaymentLookup';
|
|
3
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
4
|
+
interface LoanDetailsProps {
|
|
5
|
+
paymentLookupResponse: PaymentLookup;
|
|
6
|
+
loan: PaymentOption;
|
|
7
|
+
}
|
|
8
|
+
declare class LoanDetails extends HtmlNode {
|
|
9
|
+
private props;
|
|
10
|
+
private contexts;
|
|
11
|
+
constructor(element: HTMLElement | null | undefined, props: LoanDetailsProps);
|
|
12
|
+
private extractProps;
|
|
13
|
+
update(props: LoanDetailsProps): void;
|
|
14
|
+
render(): void;
|
|
15
|
+
}
|
|
16
|
+
export default LoanDetails;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
interface LoanDetailsBasicProps {
|
|
3
|
+
downPayment: number;
|
|
4
|
+
creditAmount: number;
|
|
5
|
+
downPaymentPercentage: number;
|
|
6
|
+
creditAmountPercentage: number;
|
|
7
|
+
}
|
|
8
|
+
declare class LoanDetailsBasic extends HtmlNode {
|
|
9
|
+
private props;
|
|
10
|
+
constructor(element: HTMLElement | null | undefined, props: LoanDetailsBasicProps);
|
|
11
|
+
update(props: LoanDetailsBasicProps): void;
|
|
12
|
+
render(): void;
|
|
13
|
+
}
|
|
14
|
+
export default LoanDetailsBasic;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
interface LoanDetailsDetailedProps {
|
|
3
|
+
duration: number;
|
|
4
|
+
administrationFee?: number;
|
|
5
|
+
setupFee?: number;
|
|
6
|
+
totalCreditCost: number;
|
|
7
|
+
interest: number;
|
|
8
|
+
effectiveInterest: number;
|
|
9
|
+
publicUrl?: string;
|
|
10
|
+
loanOrgName?: string;
|
|
11
|
+
}
|
|
12
|
+
declare class LoanDetailsDetailed extends HtmlNode {
|
|
13
|
+
private props;
|
|
14
|
+
private showDetails;
|
|
15
|
+
constructor(element: HTMLElement | null | undefined, props: LoanDetailsDetailedProps);
|
|
16
|
+
private onDetails;
|
|
17
|
+
update(props: LoanDetailsDetailedProps): void;
|
|
18
|
+
render(): void;
|
|
19
|
+
}
|
|
20
|
+
export default LoanDetailsDetailed;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
2
|
+
interface LoanDetailsMonthlyCostProps {
|
|
3
|
+
monthlyCost: number;
|
|
4
|
+
}
|
|
5
|
+
declare class LoanDetailsMonthlyCost extends HtmlNode {
|
|
6
|
+
private props;
|
|
7
|
+
constructor(element: HTMLElement | null | undefined, props: LoanDetailsMonthlyCostProps);
|
|
8
|
+
update(props: LoanDetailsMonthlyCostProps): void;
|
|
9
|
+
render(): void;
|
|
10
|
+
}
|
|
11
|
+
export default LoanDetailsMonthlyCost;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PaymentType } from '@wayke-se/ecom';
|
|
2
|
+
import { PaymentOption } from '../../../@types/OrderOptions';
|
|
3
|
+
import { PaymentLookup } from '../../../@types/PaymentLookup';
|
|
4
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
5
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
6
|
+
interface StageCompletedFinancialProps {
|
|
7
|
+
readonly store: WaykeStore;
|
|
8
|
+
readonly loan?: PaymentOption;
|
|
9
|
+
readonly paymentLookupResponse?: PaymentLookup;
|
|
10
|
+
readonly paymentType: PaymentType;
|
|
11
|
+
readonly onEdit?: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare class StageCompletedFinancial extends HtmlNode {
|
|
14
|
+
private readonly props;
|
|
15
|
+
constructor(element: HTMLDivElement, props: StageCompletedFinancialProps);
|
|
16
|
+
render(): void;
|
|
17
|
+
}
|
|
18
|
+
export default StageCompletedFinancial;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreditAssessmentRecommendation } from '@wayke-se/ecom';
|
|
2
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
3
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
4
|
+
interface StageCompletedFinancialCreditAssessmentProps {
|
|
5
|
+
readonly store: WaykeStore;
|
|
6
|
+
readonly decision: CreditAssessmentRecommendation;
|
|
7
|
+
}
|
|
8
|
+
declare class StageCompletedFinancialCreditAssessment extends HtmlNode {
|
|
9
|
+
private readonly props;
|
|
10
|
+
constructor(element: HTMLElement | null, props: StageCompletedFinancialCreditAssessmentProps);
|
|
11
|
+
render(): void;
|
|
12
|
+
}
|
|
13
|
+
export default StageCompletedFinancialCreditAssessment;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPaymentOption, PaymentType } from '@wayke-se/ecom';
|
|
2
|
+
import { PaymentLookup } from '../../../@types/PaymentLookup';
|
|
3
|
+
interface SummaryProps {
|
|
4
|
+
loan?: IPaymentOption;
|
|
5
|
+
paymentLookupResponse?: PaymentLookup;
|
|
6
|
+
paymentType: PaymentType;
|
|
7
|
+
changeButtonId: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Summary: ({ paymentType, loan, paymentLookupResponse, changeButtonId }: SummaryProps) => string;
|
|
10
|
+
export default Summary;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MarketCode } from '../../../@types/MarketCode';
|
|
2
|
+
import HtmlNode from '../../../Components/Extension/HtmlNode';
|
|
3
|
+
import { WaykeStore } from '../../../Redux/store';
|
|
4
|
+
interface FinancialProps {
|
|
5
|
+
readonly store: WaykeStore;
|
|
6
|
+
readonly index: number;
|
|
7
|
+
readonly lastStage: boolean;
|
|
8
|
+
readonly marketCode: MarketCode;
|
|
9
|
+
}
|
|
10
|
+
declare class Financial extends HtmlNode {
|
|
11
|
+
private readonly props;
|
|
12
|
+
private paymentType?;
|
|
13
|
+
constructor(element: HTMLElement, props: FinancialProps);
|
|
14
|
+
private onChange;
|
|
15
|
+
private onProceed;
|
|
16
|
+
private onEdit;
|
|
17
|
+
render(preventScrollIntoView?: boolean): void;
|
|
18
|
+
}
|
|
19
|
+
export default Financial;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PaymentType } from '@wayke-se/ecom';
|
|
2
|
+
declare const createTerm: (months: number) => string;
|
|
3
|
+
export default createTerm;
|
|
4
|
+
export declare const extractPaymentType: (s?: string) => PaymentType | undefined;
|
|
5
|
+
export declare const extractLoanIndex: (s?: string) => number | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAvailableInsuranceOption } from '@wayke-se/ecom';
|
|
2
|
+
import HtmlNode from '../../../../Components/Extension/HtmlNode';
|
|
3
|
+
import { WaykeStore } from '../../../../Redux/store';
|
|
4
|
+
interface InsuranceItemProps {
|
|
5
|
+
readonly store: WaykeStore;
|
|
6
|
+
readonly freeInsurance: IAvailableInsuranceOption;
|
|
7
|
+
readonly key: string;
|
|
8
|
+
}
|
|
9
|
+
declare class InsuranceItem extends HtmlNode {
|
|
10
|
+
private readonly props;
|
|
11
|
+
private displayInfo;
|
|
12
|
+
constructor(element: HTMLElement, props: InsuranceItemProps);
|
|
13
|
+
private onInfoOpen;
|
|
14
|
+
private onInfoClose;
|
|
15
|
+
private onClick;
|
|
16
|
+
render(): void;
|
|
17
|
+
}
|
|
18
|
+
export default InsuranceItem;
|