@vergelijkdirect/comparison-forms 1.3.39-VER-7588.0 → 2.0.0-rc.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.
@@ -0,0 +1,699 @@
1
+ import { BikeService } from '@vergelijkdirect/insurance-transmission-client';
2
+ import { CaravanService } from '@vergelijkdirect/insurance-transmission-client';
3
+ import { CarService } from '@vergelijkdirect/insurance-transmission-client';
4
+ import { ComponentOptionsMixin } from 'vue';
5
+ import { ComponentProvideOptions } from 'vue';
6
+ import { DataValidationService } from '@vergelijkdirect/insurance-transmission-client';
7
+ import { DefineComponent } from 'vue';
8
+ import { DocumentService } from '@vergelijkdirect/insurance-transmission-client';
9
+ import { HomeService } from '@vergelijkdirect/insurance-transmission-client';
10
+ import { HouseholdService } from '@vergelijkdirect/insurance-transmission-client';
11
+ import { HousingService } from '@vergelijkdirect/insurance-transmission-client';
12
+ import * as insurances from '@vergelijkdirect/insurance-transmission-client';
13
+ import { LiabilityService } from '@vergelijkdirect/insurance-transmission-client';
14
+ import { MopedService } from '@vergelijkdirect/insurance-transmission-client';
15
+ import { MotorService } from '@vergelijkdirect/insurance-transmission-client';
16
+ import { PackageService } from '@vergelijkdirect/insurance-transmission-client';
17
+ import { PetService } from '@vergelijkdirect/insurance-transmission-client';
18
+ import { PublicProps } from 'vue';
19
+ import { Ref } from 'vue';
20
+ import { TravelService } from '@vergelijkdirect/insurance-transmission-client';
21
+
22
+ declare const __VLS_export: DefineComponent<BikeFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
+ submit: (model: BikeFormData) => any;
24
+ }, string, PublicProps, Readonly<BikeFormProps> & Readonly<{
25
+ onSubmit?: (model: BikeFormData) => any;
26
+ }>, {
27
+ title: string;
28
+ flat: boolean;
29
+ description: string;
30
+ fullWidth: boolean;
31
+ banner: string;
32
+ layout: "vertical" | "horizontal";
33
+ card: boolean;
34
+ submitLabel: string;
35
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
36
+
37
+ declare const __VLS_export_10: DefineComponent<MopedFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
38
+ submit: (model: MopedFormData) => any;
39
+ }, string, PublicProps, Readonly<MopedFormProps> & Readonly<{
40
+ onSubmit?: (model: MopedFormData) => any;
41
+ }>, {
42
+ title: string;
43
+ flat: boolean;
44
+ description: string;
45
+ fullWidth: boolean;
46
+ banner: string;
47
+ layout: "vertical" | "horizontal";
48
+ card: boolean;
49
+ submitLabel: string;
50
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
51
+
52
+ declare const __VLS_export_11: DefineComponent<MotorFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
53
+ submit: (model: MotorFormData) => any;
54
+ }, string, PublicProps, Readonly<MotorFormProps> & Readonly<{
55
+ onSubmit?: (model: MotorFormData) => any;
56
+ }>, {
57
+ title: string;
58
+ flat: boolean;
59
+ description: string;
60
+ fullWidth: boolean;
61
+ banner: string;
62
+ layout: "vertical" | "horizontal";
63
+ card: boolean;
64
+ submitLabel: string;
65
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
66
+
67
+ declare const __VLS_export_12: DefineComponent<CarFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
68
+ submit: (model: CarFormData) => any;
69
+ }, string, PublicProps, Readonly<CarFormProps> & Readonly<{
70
+ onSubmit?: (model: CarFormData) => any;
71
+ }>, {
72
+ title: string;
73
+ flat: boolean;
74
+ description: string;
75
+ fullWidth: boolean;
76
+ banner: string;
77
+ layout: "vertical" | "horizontal";
78
+ card: boolean;
79
+ submitLabel: string;
80
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
81
+
82
+ declare const __VLS_export_13: DefineComponent<BusinessCarFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
83
+ submit: (model: BusinessCarFormData) => any;
84
+ }, string, PublicProps, Readonly<BusinessCarFormProps> & Readonly<{
85
+ onSubmit?: (model: BusinessCarFormData) => any;
86
+ }>, {
87
+ title: string;
88
+ flat: boolean;
89
+ description: string;
90
+ fullWidth: boolean;
91
+ banner: string;
92
+ layout: "vertical" | "horizontal";
93
+ card: boolean;
94
+ submitLabel: string;
95
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
96
+
97
+ declare const __VLS_export_14: DefineComponent<ComparisonFormFlowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
98
+ error: (error: unknown) => any;
99
+ submitted: (url: string) => any;
100
+ }, string, PublicProps, Readonly<ComparisonFormFlowProps> & Readonly<{
101
+ onError?: (error: unknown) => any;
102
+ onSubmitted?: (url: string) => any;
103
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
104
+
105
+ declare const __VLS_export_2: DefineComponent<PetFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
106
+ submit: (model: PetFormData) => any;
107
+ }, string, PublicProps, Readonly<PetFormProps> & Readonly<{
108
+ onSubmit?: (model: PetFormData) => any;
109
+ }>, {
110
+ title: string;
111
+ flat: boolean;
112
+ description: string;
113
+ fullWidth: boolean;
114
+ banner: string;
115
+ layout: "vertical" | "horizontal";
116
+ card: boolean;
117
+ submitLabel: string;
118
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
119
+
120
+ declare const __VLS_export_3: DefineComponent<CaravanFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
121
+ submit: (model: CaravanFormData) => any;
122
+ }, string, PublicProps, Readonly<CaravanFormProps> & Readonly<{
123
+ onSubmit?: (model: CaravanFormData) => any;
124
+ }>, {
125
+ title: string;
126
+ flat: boolean;
127
+ description: string;
128
+ fullWidth: boolean;
129
+ banner: string;
130
+ layout: "vertical" | "horizontal";
131
+ card: boolean;
132
+ submitLabel: string;
133
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
134
+
135
+ declare const __VLS_export_4: DefineComponent<TravelFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
136
+ submit: (model: TravelFormData) => any;
137
+ }, string, PublicProps, Readonly<TravelFormProps> & Readonly<{
138
+ onSubmit?: (model: TravelFormData) => any;
139
+ }>, {
140
+ title: string;
141
+ flat: boolean;
142
+ description: string;
143
+ fullWidth: boolean;
144
+ banner: string;
145
+ layout: "vertical" | "horizontal";
146
+ card: boolean;
147
+ submitLabel: string;
148
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
149
+
150
+ declare const __VLS_export_5: DefineComponent<LiabilityFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
151
+ submit: (model: LiabilityFormData) => any;
152
+ }, string, PublicProps, Readonly<LiabilityFormProps> & Readonly<{
153
+ onSubmit?: (model: LiabilityFormData) => any;
154
+ }>, {
155
+ title: string;
156
+ flat: boolean;
157
+ description: string;
158
+ fullWidth: boolean;
159
+ banner: string;
160
+ layout: "vertical" | "horizontal";
161
+ card: boolean;
162
+ submitLabel: string;
163
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
164
+
165
+ declare const __VLS_export_6: DefineComponent<HouseFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
166
+ submit: (model: HouseFormData) => any;
167
+ }, string, PublicProps, Readonly<HouseFormProps> & Readonly<{
168
+ onSubmit?: (model: HouseFormData) => any;
169
+ }>, {
170
+ title: string;
171
+ flat: boolean;
172
+ description: string;
173
+ fullWidth: boolean;
174
+ banner: string;
175
+ layout: "vertical" | "horizontal";
176
+ card: boolean;
177
+ submitLabel: string;
178
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
179
+
180
+ declare const __VLS_export_7: DefineComponent<LegalFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
181
+ submit: (model: LegalFormData) => any;
182
+ }, string, PublicProps, Readonly<LegalFormProps> & Readonly<{
183
+ onSubmit?: (model: LegalFormData) => any;
184
+ }>, {
185
+ title: string;
186
+ flat: boolean;
187
+ description: string;
188
+ fullWidth: boolean;
189
+ banner: string;
190
+ layout: "vertical" | "horizontal";
191
+ card: boolean;
192
+ submitLabel: string;
193
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
194
+
195
+ declare const __VLS_export_8: DefineComponent<PackageFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
196
+ submit: (model: PackageFormData) => any;
197
+ }, string, PublicProps, Readonly<PackageFormProps> & Readonly<{
198
+ onSubmit?: (model: PackageFormData) => any;
199
+ }>, {
200
+ title: string;
201
+ flat: boolean;
202
+ description: string;
203
+ fullWidth: boolean;
204
+ banner: string;
205
+ layout: "vertical" | "horizontal";
206
+ card: boolean;
207
+ submitLabel: string;
208
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
209
+
210
+ declare const __VLS_export_9: DefineComponent<LoanFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
211
+ submit: (model: LoanFormData) => any;
212
+ }, string, PublicProps, Readonly<LoanFormProps> & Readonly<{
213
+ onSubmit?: (model: LoanFormData) => any;
214
+ }>, {
215
+ title: string;
216
+ flat: boolean;
217
+ description: string;
218
+ fullWidth: boolean;
219
+ banner: string;
220
+ layout: "vertical" | "horizontal";
221
+ card: boolean;
222
+ submitLabel: string;
223
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
224
+
225
+ declare interface ActiveInsurances {
226
+ MotorService: MotorService;
227
+ PetService: PetService;
228
+ MopedService: MopedService;
229
+ HousingService: HousingService;
230
+ HomeService: HomeService;
231
+ LiabilityService: LiabilityService;
232
+ HouseholdService: HouseholdService;
233
+ DocumentService: DocumentService;
234
+ PackageService: PackageService;
235
+ BikeService: BikeService;
236
+ CaravanService: CaravanService;
237
+ DataValidationService: DataValidationService;
238
+ CarService: CarService;
239
+ TravelService: TravelService;
240
+ }
241
+
242
+ declare interface AddressBearingFormData {
243
+ address: AddressDraft;
244
+ street: string;
245
+ city: string;
246
+ }
247
+
248
+ /** The form-owned draft the user types; lives in the form's `formData`. */
249
+ declare interface AddressDraft {
250
+ zipCode: string;
251
+ houseNumber: string;
252
+ houseNumberAddition: string;
253
+ }
254
+
255
+ declare interface BaseVehicleData {
256
+ LicensePlate: string;
257
+ Brand: string;
258
+ Model: string;
259
+ VehicleType: string;
260
+ ManufacturingYear: string | number;
261
+ [key: string]: unknown;
262
+ }
263
+
264
+ export declare const BikeForm: typeof __VLS_export;
265
+
266
+ export declare interface BikeFormData {
267
+ kind: number | null;
268
+ condition: number;
269
+ price: string;
270
+ brand?: string;
271
+ }
272
+
273
+ declare interface BikeFormProps extends ComparisonFormSharedProps {
274
+ initialData?: Partial<BikeFormData>;
275
+ }
276
+
277
+ export declare function bikePresenter(data: BikeFormData): ComparisonPayload;
278
+
279
+ declare interface BirthdateFormData {
280
+ birthdate: string;
281
+ }
282
+
283
+ export declare const BusinessCarForm: typeof __VLS_export_13;
284
+
285
+ export declare interface BusinessCarFormData extends VehicleFormData<CarData> {
286
+ company: CompanyDataPresenter | null;
287
+ }
288
+
289
+ declare interface BusinessCarFormProps extends ComparisonFormSharedProps {
290
+ initialData?: Partial<BusinessCarFormData>;
291
+ }
292
+
293
+ export declare function businessCarPresenter(data: BusinessCarFormData): ComparisonPayload;
294
+
295
+ export declare const CaravanForm: typeof __VLS_export_3;
296
+
297
+ export declare interface CaravanFormData {
298
+ TypeOfCaravan: string | null;
299
+ NewOrOccasion: YesNo;
300
+ BuildYear: string | null;
301
+ }
302
+
303
+ declare interface CaravanFormProps extends ComparisonFormSharedProps {
304
+ initialData?: Partial<CaravanFormData>;
305
+ }
306
+
307
+ export declare function caravanPresenter(data: CaravanFormData): ComparisonPayload;
308
+
309
+ declare interface CarData extends BaseVehicleData {
310
+ BrandLogo: string;
311
+ Type: string;
312
+ CatalogValue: string | number | null;
313
+ DayValue: string | number | null;
314
+ TheftProtectionClass: string;
315
+ CarAlarmRequirement: string;
316
+ }
317
+
318
+ export declare const CarForm: typeof __VLS_export_12;
319
+
320
+ export declare interface CarFormData extends VehicleFormData<CarData>, AddressBearingFormData, BirthdateFormData {
321
+ }
322
+
323
+ declare interface CarFormProps extends ComparisonFormSharedProps {
324
+ initialData?: Partial<CarFormData>;
325
+ }
326
+
327
+ export declare function carPresenter(data: CarFormData): ComparisonPayload;
328
+
329
+ declare interface CompanyActivity {
330
+ isMainActivity: string;
331
+ sbiCode: string;
332
+ description: string;
333
+ }
334
+
335
+ /**
336
+ * The full, form-ready company a selection resolves to. Mirrors the business
337
+ * form's `CompanyDataPresenter` so the legacy `companyDataPresenter` flow and the
338
+ * new `VdCompanySelect` emit the exact same shape and stay interchangeable.
339
+ */
340
+ declare interface CompanyDataPresenter {
341
+ name: string;
342
+ kvkNumber: string;
343
+ industry: number;
344
+ numberOfEmployees: number;
345
+ legalForm: string;
346
+ houseNumber: number;
347
+ houseNumberAddition: string;
348
+ city: string;
349
+ zipCode: string;
350
+ streetName: string;
351
+ fullAddress: string;
352
+ hasVisitingAddress: boolean;
353
+ mainSBI: string;
354
+ otherSBI: string[];
355
+ firstSBIs: CompanyActivity[];
356
+ secondSBIs: CompanyActivity[];
357
+ }
358
+
359
+ declare interface ComparisonDetail {
360
+ name: string;
361
+ data: Record<string, unknown>;
362
+ }
363
+
364
+ export declare const ComparisonFormFlow: typeof __VLS_export_14;
365
+
366
+ declare interface ComparisonFormFlowProps extends ComparisonFormSharedProps {
367
+ form: ComparisonFormName;
368
+ client: TransmissionClient;
369
+ /** redirect target template with the <<COMPARISONID>> placeholder */
370
+ link: string;
371
+ initialData?: Record<string, unknown>;
372
+ /** override the default full-page navigation (demos, SPA hosts) */
373
+ redirect?: (url: string) => void;
374
+ }
375
+
376
+ declare type ComparisonFormName = ComparisonNameValue | ComparisonNameAlias;
377
+
378
+ /**
379
+ * Props shared by the base <VdComparisonForm> and every concrete comparison
380
+ * form (BikeForm, CarForm, …). The host page configures copy and presentation
381
+ * through these; the form owns its fields, validation and submit payload.
382
+ *
383
+ * A concrete form:
384
+ * 1. extends this interface with its form-specific props;
385
+ * 2. applies `comparisonFormSharedDefaults` in `withDefaults`, overriding the
386
+ * per-form copy (`title`, `submitLabel`, …);
387
+ * 3. forwards the shared subset with `useComparisonFormProps` via `v-bind`.
388
+ *
389
+ * ```ts
390
+ * interface BikeFormProps extends ComparisonFormSharedProps {
391
+ * // form-specific props go here
392
+ * }
393
+ *
394
+ * const props = withDefaults(defineProps<BikeFormProps>(), {
395
+ * ...comparisonFormSharedDefaults,
396
+ * title: 'Fietsverzekering vergelijken',
397
+ * })
398
+ *
399
+ * const baseFormProps = useComparisonFormProps(props)
400
+ * // <vd-comparison-form v-bind="baseFormProps" …>
401
+ * ```
402
+ */
403
+ declare interface ComparisonFormSharedProps {
404
+ /** form heading; pass '' to hide it (independent of `card` — the host decides) */
405
+ title?: string;
406
+ description?: string;
407
+ /** optional promo ribbon copy; HTML allowed, e.g. 'Bespaar <strong>tot € 500</strong> per jaar!' */
408
+ banner?: string;
409
+ layout?: 'vertical' | 'horizontal';
410
+ card?: boolean;
411
+ flat?: boolean;
412
+ /** opt out of the vertical fixed width — fill the parent (modal / slider host) */
413
+ fullWidth?: boolean;
414
+ submitLabel?: string;
415
+ }
416
+
417
+ export declare enum ComparisonName {
418
+ Bike = "bike",
419
+ Car = "car",
420
+ Caravan = "caravan",
421
+ CarBusiness = "car-business",
422
+ Housing = "housing",
423
+ LegalAssistance = "legal-assistance",
424
+ Liability = "liability",
425
+ Loan = "loan",
426
+ Moped = "moped",
427
+ Motor = "motor",
428
+ Package = "package",
429
+ Pet = "pet",
430
+ Travel = "travel"
431
+ }
432
+
433
+ declare type ComparisonNameAlias = 'house' | 'business-car';
434
+
435
+ declare type ComparisonNameValue = `${ComparisonName}`;
436
+
437
+ export declare interface ComparisonPayload {
438
+ comparison: ComparisonName;
439
+ details: ComparisonDetail[];
440
+ user: ComparisonUserFields;
441
+ }
442
+
443
+ declare interface ComparisonUserFields {
444
+ birthdate?: string;
445
+ zipcode?: string;
446
+ houseNumber?: string;
447
+ houseNumberAddition?: string;
448
+ email?: string;
449
+ kidsAmount?: number;
450
+ familyComposition?: FamilyComposition;
451
+ firstName?: string;
452
+ phoneNumber?: string;
453
+ city?: string;
454
+ street?: string;
455
+ }
456
+
457
+ declare enum FamilyComposition {
458
+ FamilyWithChildren = "I",
459
+ FamilyWithoutChildren = "H",
460
+ SingleWithoutChildren = "A",
461
+ SingleWithChildren = "K"
462
+ }
463
+
464
+ declare interface FamilyCompositionFormData {
465
+ familyComposition: FamilyComposition;
466
+ }
467
+
468
+ export declare const HouseForm: typeof __VLS_export_6;
469
+
470
+ export declare interface HouseFormData extends AddressBearingFormData, FamilyCompositionFormData {
471
+ ownedBuilding: YesNo;
472
+ }
473
+
474
+ declare interface HouseFormProps extends ComparisonFormSharedProps {
475
+ initialData?: Partial<HouseFormData>;
476
+ }
477
+
478
+ export declare function housePresenter(data: HouseFormData): ComparisonPayload;
479
+
480
+ export declare const LegalForm: typeof __VLS_export_7;
481
+
482
+ export declare interface LegalFormData extends AddressBearingFormData, BirthdateFormData, FamilyCompositionFormData {
483
+ ownedBuilding: YesNo;
484
+ familySize: string;
485
+ }
486
+
487
+ declare interface LegalFormProps extends ComparisonFormSharedProps {
488
+ initialData?: Partial<LegalFormData>;
489
+ }
490
+
491
+ export declare function legalPresenter(data: LegalFormData): ComparisonPayload;
492
+
493
+ export declare const LiabilityForm: typeof __VLS_export_5;
494
+
495
+ export declare interface LiabilityFormData extends AddressBearingFormData, BirthdateFormData, FamilyCompositionFormData {
496
+ }
497
+
498
+ declare interface LiabilityFormProps extends ComparisonFormSharedProps {
499
+ initialData?: Partial<LiabilityFormData>;
500
+ }
501
+
502
+ export declare function liabilityPresenter(data: LiabilityFormData): ComparisonPayload;
503
+
504
+ export declare const LoanForm: typeof __VLS_export_9;
505
+
506
+ export declare interface LoanFormData extends BirthdateFormData, FamilyCompositionFormData {
507
+ LoanPurpose: string;
508
+ LoanAmount: number | null;
509
+ }
510
+
511
+ declare interface LoanFormProps extends ComparisonFormSharedProps {
512
+ initialData?: Partial<LoanFormData>;
513
+ }
514
+
515
+ export declare function loanPresenter(data: LoanFormData): ComparisonPayload;
516
+
517
+ declare interface MopedData extends BaseVehicleData {
518
+ Type: string;
519
+ TypeOfMoped: string;
520
+ CatalogValue: string | null;
521
+ CylinderCapacity: string;
522
+ EnginePower: string | number | null;
523
+ Fuel: string;
524
+ MaximumPower: string;
525
+ SignCode?: string;
526
+ Weight: number | string | null;
527
+ }
528
+
529
+ export declare const MopedForm: typeof __VLS_export_10;
530
+
531
+ export declare interface MopedFormData extends VehicleFormData<MopedData>, AddressBearingFormData, BirthdateFormData {
532
+ }
533
+
534
+ declare interface MopedFormProps extends ComparisonFormSharedProps {
535
+ initialData?: Partial<MopedFormData>;
536
+ }
537
+
538
+ export declare function mopedPresenter(data: MopedFormData): ComparisonPayload;
539
+
540
+ declare interface MotorData extends BaseVehicleData {
541
+ BrandLogo: string;
542
+ Type: string;
543
+ Source?: string;
544
+ CatalogValue: string | null;
545
+ DayValue: string | null;
546
+ CylinderCapacity: string;
547
+ EnginePower: number | null;
548
+ Fuel: string;
549
+ VehicleCategory: string;
550
+ Weight: number | null;
551
+ WeightEmpty: string;
552
+ Wheels?: number;
553
+ NumberOfKilowatts?: string;
554
+ MotorType?: string;
555
+ }
556
+
557
+ export declare const MotorForm: typeof __VLS_export_11;
558
+
559
+ export declare interface MotorFormData extends VehicleFormData<MotorData>, AddressBearingFormData, BirthdateFormData {
560
+ }
561
+
562
+ declare interface MotorFormProps extends ComparisonFormSharedProps {
563
+ initialData?: Partial<MotorFormData>;
564
+ }
565
+
566
+ export declare function motorPresenter(data: MotorFormData): ComparisonPayload;
567
+
568
+ export declare const PackageForm: typeof __VLS_export_8;
569
+
570
+ export declare interface PackageFormData extends AddressBearingFormData, BirthdateFormData, FamilyCompositionFormData {
571
+ partnerBirthdate: string;
572
+ }
573
+
574
+ declare interface PackageFormProps extends ComparisonFormSharedProps {
575
+ initialData?: Partial<PackageFormData>;
576
+ }
577
+
578
+ export declare function packagePresenter(data: PackageFormData): ComparisonPayload;
579
+
580
+ declare enum PaymentTerm {
581
+ Continuous = "L",
582
+ ShortTerm = "S"
583
+ }
584
+
585
+ export declare const PetForm: typeof __VLS_export_2;
586
+
587
+ export declare interface PetFormData {
588
+ kind: string;
589
+ age: string;
590
+ zipcode: string;
591
+ }
592
+
593
+ declare interface PetFormProps extends ComparisonFormSharedProps {
594
+ initialData?: Partial<PetFormData>;
595
+ }
596
+
597
+ export declare function petPresenter(data: PetFormData): ComparisonPayload;
598
+
599
+ declare class TransmissionClient {
600
+ private insurances;
601
+ private activeInsurances;
602
+ private client;
603
+ petService: insurances.PetService;
604
+ motorService: insurances.MotorService;
605
+ bikeService: insurances.BikeService;
606
+ mopedService: insurances.MopedService;
607
+ housingService: insurances.HousingService;
608
+ homeService: insurances.HomeService;
609
+ liabilityService: insurances.LiabilityService;
610
+ householdService: insurances.HouseholdService;
611
+ documentService: insurances.DocumentService;
612
+ packageService: insurances.PackageService;
613
+ caravanService: insurances.CaravanService;
614
+ dataValidationService: insurances.DataValidationService;
615
+ carService: insurances.CarService;
616
+ partnerService: insurances.PartnerService;
617
+ validation: insurances.DataValidationService;
618
+ comparisonService: insurances.ComparisonService;
619
+ userService: insurances.UserService;
620
+ v1Service: insurances.V1Service;
621
+ travelService: insurances.TravelService;
622
+ dataService: insurances.DataService;
623
+ constructor();
624
+ getUrl(): string;
625
+ initITC(): Promise<this>;
626
+ /**
627
+ * @since v1.0.0
628
+ *
629
+ * Create config for the transmissionclient
630
+ * to work properly
631
+ *
632
+ * @returns {void} void
633
+ */
634
+ private createConfig;
635
+ /**
636
+ * @since v1.0.0
637
+ *
638
+ * Generates the classes from config
639
+ * to load in the insurances from ITC
640
+ *
641
+ * @returns {void} void
642
+ */
643
+ private createInsuranceClasses;
644
+ /**
645
+ * @since v1.0.0
646
+ *
647
+ * Exports the active insuranaces that we're loaded
648
+ * in from createInsuranceClasses
649
+ *
650
+ * @returns {ActiveInsurances} Classes from ITC
651
+ */
652
+ get getActiveInsurances(): ActiveInsurances;
653
+ /**
654
+ * @since v1.0.0
655
+ *
656
+ * Exports the ITC client class
657
+ *
658
+ * @returns {insurances.InsuranceTransmissionClient} ITC client
659
+ */
660
+ get getClient(): insurances.InsuranceTransmissionClient;
661
+ getVehicleLicenseInformation(type: string, license: string): Promise<any>;
662
+ }
663
+
664
+ export declare const TravelForm: typeof __VLS_export_4;
665
+
666
+ export declare interface TravelFormData extends BirthdateFormData {
667
+ PaymentTerm: PaymentTerm;
668
+ }
669
+
670
+ declare interface TravelFormProps extends ComparisonFormSharedProps {
671
+ initialData?: Partial<TravelFormData>;
672
+ }
673
+
674
+ export declare function travelPresenter(data: TravelFormData): ComparisonPayload;
675
+
676
+ export declare function useComparisonSubmit(options: UseComparisonSubmitOptions): {
677
+ submit: (payload: ComparisonPayload) => Promise<void>;
678
+ isSubmitting: Ref<boolean, boolean>;
679
+ error: Ref<unknown, unknown>;
680
+ };
681
+
682
+ declare interface UseComparisonSubmitOptions {
683
+ client: TransmissionClient;
684
+ link: string;
685
+ onRedirect?: (url: string) => void;
686
+ onError?: (error: unknown, payload: ComparisonPayload) => void;
687
+ }
688
+
689
+ declare interface VehicleFormData<TVehicle> {
690
+ licensePlate: string;
691
+ vehicle: TVehicle | null;
692
+ }
693
+
694
+ declare enum YesNo {
695
+ Yes = "J",
696
+ No = "N"
697
+ }
698
+
699
+ export { }