@vergelijkdirect/comparison-forms 2.0.0-rc.1 → 2.0.0-rc.10

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.
@@ -1,255 +1,299 @@
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
1
  import { ComponentOptionsMixin } from 'vue';
5
2
  import { ComponentProvideOptions } from 'vue';
6
- import { DataValidationService } from '@vergelijkdirect/insurance-transmission-client';
7
3
  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
4
  import { PublicProps } from 'vue';
19
5
  import { Ref } from 'vue';
20
- import { TravelService } from '@vergelijkdirect/insurance-transmission-client';
21
6
 
22
- declare const __VLS_export: DefineComponent<BikeFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
8
  submit: (model: BikeFormData) => any;
24
- }, string, PublicProps, Readonly<BikeFormProps> & Readonly<{
25
- onSubmit?: (model: BikeFormData) => any;
9
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onSubmit?: ((model: BikeFormData) => any) | undefined;
26
11
  }>, {
27
12
  title: string;
28
13
  flat: boolean;
29
- description: string;
30
14
  fullWidth: boolean;
15
+ description: string;
31
16
  banner: string;
32
17
  layout: "vertical" | "horizontal";
33
18
  card: boolean;
34
19
  submitLabel: string;
35
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
20
+ submitDisabled: boolean;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
36
22
 
37
- declare const __VLS_export_10: DefineComponent<MopedFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
+ declare const __VLS_export_10: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
38
24
  submit: (model: MopedFormData) => any;
39
- }, string, PublicProps, Readonly<MopedFormProps> & Readonly<{
40
- onSubmit?: (model: MopedFormData) => any;
25
+ }, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{
26
+ onSubmit?: ((model: MopedFormData) => any) | undefined;
41
27
  }>, {
42
28
  title: string;
43
29
  flat: boolean;
44
- description: string;
45
30
  fullWidth: boolean;
31
+ description: string;
46
32
  banner: string;
47
33
  layout: "vertical" | "horizontal";
48
34
  card: boolean;
49
35
  submitLabel: string;
50
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
36
+ submitDisabled: boolean;
37
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
51
38
 
52
- declare const __VLS_export_11: DefineComponent<MotorFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
39
+ declare const __VLS_export_11: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
53
40
  submit: (model: MotorFormData) => any;
54
- }, string, PublicProps, Readonly<MotorFormProps> & Readonly<{
55
- onSubmit?: (model: MotorFormData) => any;
41
+ }, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
42
+ onSubmit?: ((model: MotorFormData) => any) | undefined;
56
43
  }>, {
57
44
  title: string;
58
45
  flat: boolean;
59
- description: string;
60
46
  fullWidth: boolean;
47
+ description: string;
61
48
  banner: string;
62
49
  layout: "vertical" | "horizontal";
63
50
  card: boolean;
64
51
  submitLabel: string;
65
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
52
+ submitDisabled: boolean;
53
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
66
54
 
67
- declare const __VLS_export_12: DefineComponent<CarFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
55
+ declare const __VLS_export_12: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
68
56
  submit: (model: CarFormData) => any;
69
- }, string, PublicProps, Readonly<CarFormProps> & Readonly<{
70
- onSubmit?: (model: CarFormData) => any;
57
+ }, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
58
+ onSubmit?: ((model: CarFormData) => any) | undefined;
71
59
  }>, {
72
60
  title: string;
73
61
  flat: boolean;
74
- description: string;
75
62
  fullWidth: boolean;
63
+ description: string;
76
64
  banner: string;
77
65
  layout: "vertical" | "horizontal";
78
66
  card: boolean;
79
67
  submitLabel: string;
80
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
68
+ submitDisabled: boolean;
69
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
81
70
 
82
- declare const __VLS_export_13: DefineComponent<BusinessCarFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
71
+ declare const __VLS_export_13: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
83
72
  submit: (model: BusinessCarFormData) => any;
84
- }, string, PublicProps, Readonly<BusinessCarFormProps> & Readonly<{
85
- onSubmit?: (model: BusinessCarFormData) => any;
73
+ }, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
74
+ onSubmit?: ((model: BusinessCarFormData) => any) | undefined;
86
75
  }>, {
87
76
  title: string;
88
77
  flat: boolean;
78
+ fullWidth: boolean;
89
79
  description: string;
80
+ banner: string;
81
+ layout: "vertical" | "horizontal";
82
+ card: boolean;
83
+ submitLabel: string;
84
+ submitDisabled: boolean;
85
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
86
+
87
+ declare const __VLS_export_14: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
88
+ submit: (model: BusinessLiabilityFormData) => any;
89
+ }, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{
90
+ onSubmit?: ((model: BusinessLiabilityFormData) => any) | undefined;
91
+ }>, {
92
+ title: string;
93
+ flat: boolean;
90
94
  fullWidth: boolean;
95
+ description: string;
91
96
  banner: string;
92
97
  layout: "vertical" | "horizontal";
93
98
  card: boolean;
94
99
  submitLabel: string;
95
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
100
+ submitDisabled: boolean;
101
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
96
102
 
97
- declare const __VLS_export_14: DefineComponent<ComparisonFormFlowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
98
- error: (error: unknown) => any;
103
+ declare const __VLS_export_15: DefineComponent<ComparisonFormFlowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
104
+ error: (error: unknown, payload?: ComparisonPayload | undefined) => any;
99
105
  submitted: (url: string) => any;
100
106
  }, string, PublicProps, Readonly<ComparisonFormFlowProps> & Readonly<{
101
- onError?: (error: unknown) => any;
102
- onSubmitted?: (url: string) => any;
103
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
107
+ onError?: ((error: unknown, payload?: ComparisonPayload | undefined) => any) | undefined;
108
+ onSubmitted?: ((url: string) => any) | undefined;
109
+ }>, {
110
+ flat: boolean;
111
+ fullWidth: boolean;
112
+ card: boolean;
113
+ submitDisabled: boolean;
114
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
115
+
116
+ declare const __VLS_export_16: DefineComponent<RiskScannerFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<RiskScannerFormProps> & Readonly<{}>, {
117
+ title: string;
118
+ description: string;
119
+ buttonText: string;
120
+ showTitle: boolean;
121
+ qaOptions: Partial<QaOptions>;
122
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
123
+
124
+ declare const __VLS_export_17: DefineComponent<QuestionnaireSharedProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<QuestionnaireSharedProps> & Readonly<{}>, {
125
+ title: string;
126
+ description: string;
127
+ buttonText: string;
128
+ showTitle: boolean;
129
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
104
130
 
105
- declare const __VLS_export_2: DefineComponent<PetFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
131
+ declare const __VLS_export_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
106
132
  submit: (model: PetFormData) => any;
107
- }, string, PublicProps, Readonly<PetFormProps> & Readonly<{
108
- onSubmit?: (model: PetFormData) => any;
133
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
134
+ onSubmit?: ((model: PetFormData) => any) | undefined;
109
135
  }>, {
110
136
  title: string;
111
137
  flat: boolean;
112
- description: string;
113
138
  fullWidth: boolean;
139
+ description: string;
114
140
  banner: string;
115
141
  layout: "vertical" | "horizontal";
116
142
  card: boolean;
117
143
  submitLabel: string;
118
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
144
+ submitDisabled: boolean;
145
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
119
146
 
120
- declare const __VLS_export_3: DefineComponent<CaravanFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
147
+ declare const __VLS_export_3: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
121
148
  submit: (model: CaravanFormData) => any;
122
- }, string, PublicProps, Readonly<CaravanFormProps> & Readonly<{
123
- onSubmit?: (model: CaravanFormData) => any;
149
+ }, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
150
+ onSubmit?: ((model: CaravanFormData) => any) | undefined;
124
151
  }>, {
125
152
  title: string;
126
153
  flat: boolean;
127
- description: string;
128
154
  fullWidth: boolean;
155
+ description: string;
129
156
  banner: string;
130
157
  layout: "vertical" | "horizontal";
131
158
  card: boolean;
132
159
  submitLabel: string;
133
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
160
+ submitDisabled: boolean;
161
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
134
162
 
135
- declare const __VLS_export_4: DefineComponent<TravelFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
163
+ declare const __VLS_export_4: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
136
164
  submit: (model: TravelFormData) => any;
137
- }, string, PublicProps, Readonly<TravelFormProps> & Readonly<{
138
- onSubmit?: (model: TravelFormData) => any;
165
+ }, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
166
+ onSubmit?: ((model: TravelFormData) => any) | undefined;
139
167
  }>, {
140
168
  title: string;
141
169
  flat: boolean;
142
- description: string;
143
170
  fullWidth: boolean;
171
+ description: string;
144
172
  banner: string;
145
173
  layout: "vertical" | "horizontal";
146
174
  card: boolean;
147
175
  submitLabel: string;
148
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
176
+ submitDisabled: boolean;
177
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
149
178
 
150
- declare const __VLS_export_5: DefineComponent<LiabilityFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
179
+ declare const __VLS_export_5: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
151
180
  submit: (model: LiabilityFormData) => any;
152
- }, string, PublicProps, Readonly<LiabilityFormProps> & Readonly<{
153
- onSubmit?: (model: LiabilityFormData) => any;
181
+ }, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
182
+ onSubmit?: ((model: LiabilityFormData) => any) | undefined;
154
183
  }>, {
155
184
  title: string;
156
185
  flat: boolean;
157
- description: string;
158
186
  fullWidth: boolean;
187
+ description: string;
159
188
  banner: string;
160
189
  layout: "vertical" | "horizontal";
161
190
  card: boolean;
162
191
  submitLabel: string;
163
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
192
+ submitDisabled: boolean;
193
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
164
194
 
165
- declare const __VLS_export_6: DefineComponent<HouseFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
195
+ declare const __VLS_export_6: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
166
196
  submit: (model: HouseFormData) => any;
167
- }, string, PublicProps, Readonly<HouseFormProps> & Readonly<{
168
- onSubmit?: (model: HouseFormData) => any;
197
+ }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
198
+ onSubmit?: ((model: HouseFormData) => any) | undefined;
169
199
  }>, {
170
200
  title: string;
171
201
  flat: boolean;
172
- description: string;
173
202
  fullWidth: boolean;
203
+ description: string;
174
204
  banner: string;
175
205
  layout: "vertical" | "horizontal";
176
206
  card: boolean;
177
207
  submitLabel: string;
178
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
208
+ submitDisabled: boolean;
209
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
179
210
 
180
- declare const __VLS_export_7: DefineComponent<LegalFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
211
+ declare const __VLS_export_7: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
181
212
  submit: (model: LegalFormData) => any;
182
- }, string, PublicProps, Readonly<LegalFormProps> & Readonly<{
183
- onSubmit?: (model: LegalFormData) => any;
213
+ }, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
214
+ onSubmit?: ((model: LegalFormData) => any) | undefined;
184
215
  }>, {
185
216
  title: string;
186
217
  flat: boolean;
187
- description: string;
188
218
  fullWidth: boolean;
219
+ description: string;
189
220
  banner: string;
190
221
  layout: "vertical" | "horizontal";
191
222
  card: boolean;
192
223
  submitLabel: string;
193
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
224
+ submitDisabled: boolean;
225
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
194
226
 
195
- declare const __VLS_export_8: DefineComponent<PackageFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
227
+ declare const __VLS_export_8: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
196
228
  submit: (model: PackageFormData) => any;
197
- }, string, PublicProps, Readonly<PackageFormProps> & Readonly<{
198
- onSubmit?: (model: PackageFormData) => any;
229
+ }, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
230
+ onSubmit?: ((model: PackageFormData) => any) | undefined;
199
231
  }>, {
200
232
  title: string;
201
233
  flat: boolean;
202
- description: string;
203
234
  fullWidth: boolean;
235
+ description: string;
204
236
  banner: string;
205
237
  layout: "vertical" | "horizontal";
206
238
  card: boolean;
207
239
  submitLabel: string;
208
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
240
+ submitDisabled: boolean;
241
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
209
242
 
210
- declare const __VLS_export_9: DefineComponent<LoanFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
243
+ declare const __VLS_export_9: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
211
244
  submit: (model: LoanFormData) => any;
212
- }, string, PublicProps, Readonly<LoanFormProps> & Readonly<{
213
- onSubmit?: (model: LoanFormData) => any;
245
+ }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
246
+ onSubmit?: ((model: LoanFormData) => any) | undefined;
214
247
  }>, {
215
248
  title: string;
216
249
  flat: boolean;
217
- description: string;
218
250
  fullWidth: boolean;
251
+ description: string;
219
252
  banner: string;
220
253
  layout: "vertical" | "horizontal";
221
254
  card: boolean;
222
255
  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
- }
256
+ submitDisabled: boolean;
257
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
258
+
259
+ declare type __VLS_Props = ComparisonFormProps<BikeFormData>;
260
+
261
+ declare type __VLS_Props_10 = ComparisonFormProps<MopedFormData>;
262
+
263
+ declare type __VLS_Props_11 = ComparisonFormProps<MotorFormData>;
264
+
265
+ declare type __VLS_Props_12 = ComparisonFormProps<CarFormData>;
266
+
267
+ declare type __VLS_Props_13 = ComparisonFormProps<BusinessCarFormData>;
268
+
269
+ declare type __VLS_Props_14 = ComparisonFormProps<BusinessLiabilityFormData>;
270
+
271
+ declare type __VLS_Props_2 = ComparisonFormProps<PetFormData>;
272
+
273
+ declare type __VLS_Props_3 = ComparisonFormProps<CaravanFormData>;
274
+
275
+ declare type __VLS_Props_4 = ComparisonFormProps<TravelFormData>;
276
+
277
+ declare type __VLS_Props_5 = ComparisonFormProps<LiabilityFormData>;
278
+
279
+ declare type __VLS_Props_6 = ComparisonFormProps<HouseFormData>;
280
+
281
+ declare type __VLS_Props_7 = ComparisonFormProps<LegalFormData>;
282
+
283
+ declare type __VLS_Props_8 = ComparisonFormProps<PackageFormData>;
284
+
285
+ declare type __VLS_Props_9 = ComparisonFormProps<LoanFormData>;
241
286
 
242
287
  declare interface AddressBearingFormData {
243
- address: AddressDraft;
244
- street: string;
245
- city: string;
288
+ address: AddressData;
246
289
  }
247
290
 
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;
291
+ declare interface AddressData {
292
+ zipCode?: string;
293
+ houseNumber?: string;
294
+ houseNumberAddition?: string;
295
+ city?: string;
296
+ street?: string;
253
297
  }
254
298
 
255
299
  declare interface BaseVehicleData {
@@ -270,10 +314,6 @@ export declare interface BikeFormData {
270
314
  brand?: string;
271
315
  }
272
316
 
273
- declare interface BikeFormProps extends ComparisonFormSharedProps {
274
- initialData?: Partial<BikeFormData>;
275
- }
276
-
277
317
  export declare function bikePresenter(data: BikeFormData): ComparisonPayload;
278
318
 
279
319
  declare interface BirthdateFormData {
@@ -283,14 +323,18 @@ declare interface BirthdateFormData {
283
323
  export declare const BusinessCarForm: typeof __VLS_export_13;
284
324
 
285
325
  export declare interface BusinessCarFormData extends VehicleFormData<CarData> {
286
- company: CompanyDataPresenter | null;
326
+ company: CompanyDataPresenter;
287
327
  }
288
328
 
289
- declare interface BusinessCarFormProps extends ComparisonFormSharedProps {
290
- initialData?: Partial<BusinessCarFormData>;
329
+ export declare function businessCarPresenter(data: BusinessCarFormData): ComparisonPayload;
330
+
331
+ export declare const BusinessLiabilityForm: typeof __VLS_export_14;
332
+
333
+ export declare interface BusinessLiabilityFormData {
334
+ company: CompanyDataPresenter;
291
335
  }
292
336
 
293
- export declare function businessCarPresenter(data: BusinessCarFormData): ComparisonPayload;
337
+ export declare function businessLiabilityPresenter(data: BusinessLiabilityFormData): ComparisonPayload;
294
338
 
295
339
  export declare const CaravanForm: typeof __VLS_export_3;
296
340
 
@@ -300,10 +344,6 @@ export declare interface CaravanFormData {
300
344
  BuildYear: string | null;
301
345
  }
302
346
 
303
- declare interface CaravanFormProps extends ComparisonFormSharedProps {
304
- initialData?: Partial<CaravanFormData>;
305
- }
306
-
307
347
  export declare function caravanPresenter(data: CaravanFormData): ComparisonPayload;
308
348
 
309
349
  declare interface CarData extends BaseVehicleData {
@@ -320,10 +360,6 @@ export declare const CarForm: typeof __VLS_export_12;
320
360
  export declare interface CarFormData extends VehicleFormData<CarData>, AddressBearingFormData, BirthdateFormData {
321
361
  }
322
362
 
323
- declare interface CarFormProps extends ComparisonFormSharedProps {
324
- initialData?: Partial<CarFormData>;
325
- }
326
-
327
363
  export declare function carPresenter(data: CarFormData): ComparisonPayload;
328
364
 
329
365
  declare interface CompanyActivity {
@@ -356,25 +392,29 @@ declare interface CompanyDataPresenter {
356
392
  secondSBIs: CompanyActivity[];
357
393
  }
358
394
 
359
- declare interface ComparisonDetail {
360
- name: string;
361
- data: Record<string, unknown>;
362
- }
395
+ export declare const ComparisonFormFlow: typeof __VLS_export_15;
363
396
 
364
- export declare const ComparisonFormFlow: typeof __VLS_export_14;
365
-
366
- declare interface ComparisonFormFlowProps extends ComparisonFormSharedProps {
397
+ declare interface ComparisonFormFlowProps extends ComparisonFormProps<Record<string, unknown>> {
367
398
  form: ComparisonFormName;
368
- client: TransmissionClient;
369
- /** redirect target template with the <<COMPARISONID>> placeholder */
399
+ /** base page url of the target comparison app; the comparison route (`#/<id>/…`) is appended internally */
370
400
  link: string;
371
- initialData?: Record<string, unknown>;
372
401
  /** override the default full-page navigation (demos, SPA hosts) */
373
402
  redirect?: (url: string) => void;
374
403
  }
375
404
 
376
405
  declare type ComparisonFormName = ComparisonNameValue | ComparisonNameAlias;
377
406
 
407
+ /**
408
+ * Props of a concrete comparison form: the shared presentation subset plus the
409
+ * form-typed prefill. Kept out of `ComparisonFormSharedProps` on purpose — that
410
+ * interface is the v-bind contract of the <VdComparisonForm> shell, which must
411
+ * never receive `initialData`.
412
+ */
413
+ declare interface ComparisonFormProps<TData> extends ComparisonFormSharedProps {
414
+ /** prefill, read once on setup; the form maps each key (`props.initialData?.x ?? default`) — unknown keys are ignored, an explicit undefined falls back to the default */
415
+ initialData?: Partial<TData>;
416
+ }
417
+
378
418
  /**
379
419
  * Props shared by the base <VdComparisonForm> and every concrete comparison
380
420
  * form (BikeForm, CarForm, …). The host page configures copy and presentation
@@ -387,11 +427,7 @@ declare type ComparisonFormName = ComparisonNameValue | ComparisonNameAlias;
387
427
  * 3. forwards the shared subset with `useComparisonFormProps` via `v-bind`.
388
428
  *
389
429
  * ```ts
390
- * interface BikeFormProps extends ComparisonFormSharedProps {
391
- * // form-specific props go here
392
- * }
393
- *
394
- * const props = withDefaults(defineProps<BikeFormProps>(), {
430
+ * const props = withDefaults(defineProps<ComparisonFormProps<BikeFormData>>(), {
395
431
  * ...comparisonFormSharedDefaults,
396
432
  * title: 'Fietsverzekering vergelijken',
397
433
  * })
@@ -412,6 +448,8 @@ declare interface ComparisonFormSharedProps {
412
448
  /** opt out of the vertical fixed width — fill the parent (modal / slider host) */
413
449
  fullWidth?: boolean;
414
450
  submitLabel?: string;
451
+ /** host-side disable of the submit button; forms OR it with their own isSubmitting */
452
+ submitDisabled?: boolean;
415
453
  }
416
454
 
417
455
  export declare enum ComparisonName {
@@ -419,6 +457,7 @@ export declare enum ComparisonName {
419
457
  Car = "car",
420
458
  Caravan = "caravan",
421
459
  CarBusiness = "car-business",
460
+ BusinessLiability = "business-liability",
422
461
  Housing = "housing",
423
462
  LegalAssistance = "legal-assistance",
424
463
  Liability = "liability",
@@ -435,8 +474,8 @@ declare type ComparisonNameAlias = 'house' | 'business-car';
435
474
  declare type ComparisonNameValue = `${ComparisonName}`;
436
475
 
437
476
  export declare interface ComparisonPayload {
438
- comparison: ComparisonName;
439
- details: ComparisonDetail[];
477
+ comparison: ComparisonNameValue;
478
+ detail: Record<string, unknown>;
440
479
  user: ComparisonUserFields;
441
480
  }
442
481
 
@@ -471,10 +510,6 @@ export declare interface HouseFormData extends AddressBearingFormData, FamilyCom
471
510
  ownedBuilding: YesNo;
472
511
  }
473
512
 
474
- declare interface HouseFormProps extends ComparisonFormSharedProps {
475
- initialData?: Partial<HouseFormData>;
476
- }
477
-
478
513
  export declare function housePresenter(data: HouseFormData): ComparisonPayload;
479
514
 
480
515
  export declare const LegalForm: typeof __VLS_export_7;
@@ -484,10 +519,6 @@ export declare interface LegalFormData extends AddressBearingFormData, Birthdate
484
519
  familySize: string;
485
520
  }
486
521
 
487
- declare interface LegalFormProps extends ComparisonFormSharedProps {
488
- initialData?: Partial<LegalFormData>;
489
- }
490
-
491
522
  export declare function legalPresenter(data: LegalFormData): ComparisonPayload;
492
523
 
493
524
  export declare const LiabilityForm: typeof __VLS_export_5;
@@ -495,10 +526,6 @@ export declare const LiabilityForm: typeof __VLS_export_5;
495
526
  export declare interface LiabilityFormData extends AddressBearingFormData, BirthdateFormData, FamilyCompositionFormData {
496
527
  }
497
528
 
498
- declare interface LiabilityFormProps extends ComparisonFormSharedProps {
499
- initialData?: Partial<LiabilityFormData>;
500
- }
501
-
502
529
  export declare function liabilityPresenter(data: LiabilityFormData): ComparisonPayload;
503
530
 
504
531
  export declare const LoanForm: typeof __VLS_export_9;
@@ -508,10 +535,6 @@ export declare interface LoanFormData extends BirthdateFormData, FamilyCompositi
508
535
  LoanAmount: number | null;
509
536
  }
510
537
 
511
- declare interface LoanFormProps extends ComparisonFormSharedProps {
512
- initialData?: Partial<LoanFormData>;
513
- }
514
-
515
538
  export declare function loanPresenter(data: LoanFormData): ComparisonPayload;
516
539
 
517
540
  declare interface MopedData extends BaseVehicleData {
@@ -531,10 +554,6 @@ export declare const MopedForm: typeof __VLS_export_10;
531
554
  export declare interface MopedFormData extends VehicleFormData<MopedData>, AddressBearingFormData, BirthdateFormData {
532
555
  }
533
556
 
534
- declare interface MopedFormProps extends ComparisonFormSharedProps {
535
- initialData?: Partial<MopedFormData>;
536
- }
537
-
538
557
  export declare function mopedPresenter(data: MopedFormData): ComparisonPayload;
539
558
 
540
559
  declare interface MotorData extends BaseVehicleData {
@@ -559,10 +578,6 @@ export declare const MotorForm: typeof __VLS_export_11;
559
578
  export declare interface MotorFormData extends VehicleFormData<MotorData>, AddressBearingFormData, BirthdateFormData {
560
579
  }
561
580
 
562
- declare interface MotorFormProps extends ComparisonFormSharedProps {
563
- initialData?: Partial<MotorFormData>;
564
- }
565
-
566
581
  export declare function motorPresenter(data: MotorFormData): ComparisonPayload;
567
582
 
568
583
  export declare const PackageForm: typeof __VLS_export_8;
@@ -571,10 +586,6 @@ export declare interface PackageFormData extends AddressBearingFormData, Birthda
571
586
  partnerBirthdate: string;
572
587
  }
573
588
 
574
- declare interface PackageFormProps extends ComparisonFormSharedProps {
575
- initialData?: Partial<PackageFormData>;
576
- }
577
-
578
589
  export declare function packagePresenter(data: PackageFormData): ComparisonPayload;
579
590
 
580
591
  declare enum PaymentTerm {
@@ -590,75 +601,33 @@ export declare interface PetFormData {
590
601
  zipcode: string;
591
602
  }
592
603
 
593
- declare interface PetFormProps extends ComparisonFormSharedProps {
594
- initialData?: Partial<PetFormData>;
604
+ export declare function petPresenter(data: PetFormData): ComparisonPayload;
605
+
606
+ export declare interface QaOptions {
607
+ qaId: string;
608
+ thankyouPageTemplate?: string;
609
+ qaUrl?: string;
610
+ currentItemId?: string;
611
+ nextItemId?: string;
595
612
  }
596
613
 
597
- export declare function petPresenter(data: PetFormData): ComparisonPayload;
614
+ export declare const QuestionnaireForm: typeof __VLS_export_17;
598
615
 
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>;
616
+ export declare type QuestionnaireFormProps = QuestionnaireSharedProps;
617
+
618
+ export declare interface QuestionnaireSharedProps {
619
+ link: string;
620
+ title?: string;
621
+ description?: string;
622
+ buttonText?: string;
623
+ showTitle?: boolean;
624
+ qaOptions: QaOptions;
625
+ }
626
+
627
+ export declare const RiskScannerForm: typeof __VLS_export_16;
628
+
629
+ export declare interface RiskScannerFormProps extends Omit<QuestionnaireSharedProps, 'qaOptions'> {
630
+ qaOptions?: Partial<QaOptions>;
662
631
  }
663
632
 
664
633
  export declare const TravelForm: typeof __VLS_export_4;
@@ -667,10 +636,6 @@ export declare interface TravelFormData extends BirthdateFormData {
667
636
  PaymentTerm: PaymentTerm;
668
637
  }
669
638
 
670
- declare interface TravelFormProps extends ComparisonFormSharedProps {
671
- initialData?: Partial<TravelFormData>;
672
- }
673
-
674
639
  export declare function travelPresenter(data: TravelFormData): ComparisonPayload;
675
640
 
676
641
  export declare function useComparisonSubmit(options: UseComparisonSubmitOptions): {
@@ -680,7 +645,7 @@ export declare function useComparisonSubmit(options: UseComparisonSubmitOptions)
680
645
  };
681
646
 
682
647
  declare interface UseComparisonSubmitOptions {
683
- client: TransmissionClient;
648
+ /** base page url of the target comparison app; the comparison route (`#/<id>/…`) is appended internally */
684
649
  link: string;
685
650
  onRedirect?: (url: string) => void;
686
651
  onError?: (error: unknown, payload: ComparisonPayload) => void;