@vergelijkdirect/comparison-forms 2.0.0-rc.2 → 2.0.0-rc.4

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,304 @@
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, {
103
+ declare const __VLS_export_15: DefineComponent<ComparisonFormFlowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
98
104
  error: (error: unknown) => 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) => 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>;
104
115
 
105
- declare const __VLS_export_2: DefineComponent<PetFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
116
+ declare const __VLS_export_16: DefineComponent<RiskScannerFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<RiskScannerFormProps> & Readonly<{}>, {
117
+ title: string;
118
+ description: string;
119
+ qaId: string;
120
+ thankyouPageTemplate: string;
121
+ buttonText: string;
122
+ showTitle: boolean;
123
+ qaUrl: string;
124
+ currentItemId: string;
125
+ nextItemId: string;
126
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
127
+
128
+ declare const __VLS_export_17: DefineComponent<QuestionnaireSharedProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<QuestionnaireSharedProps> & Readonly<{}>, {
129
+ title: string;
130
+ description: string;
131
+ thankyouPageTemplate: string;
132
+ buttonText: string;
133
+ showTitle: boolean;
134
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
135
+
136
+ declare const __VLS_export_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
106
137
  submit: (model: PetFormData) => any;
107
- }, string, PublicProps, Readonly<PetFormProps> & Readonly<{
108
- onSubmit?: (model: PetFormData) => any;
138
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
139
+ onSubmit?: ((model: PetFormData) => any) | undefined;
109
140
  }>, {
110
141
  title: string;
111
142
  flat: boolean;
112
- description: string;
113
143
  fullWidth: boolean;
144
+ description: string;
114
145
  banner: string;
115
146
  layout: "vertical" | "horizontal";
116
147
  card: boolean;
117
148
  submitLabel: string;
118
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
149
+ submitDisabled: boolean;
150
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
119
151
 
120
- declare const __VLS_export_3: DefineComponent<CaravanFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
152
+ declare const __VLS_export_3: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
121
153
  submit: (model: CaravanFormData) => any;
122
- }, string, PublicProps, Readonly<CaravanFormProps> & Readonly<{
123
- onSubmit?: (model: CaravanFormData) => any;
154
+ }, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
155
+ onSubmit?: ((model: CaravanFormData) => any) | undefined;
124
156
  }>, {
125
157
  title: string;
126
158
  flat: boolean;
127
- description: string;
128
159
  fullWidth: boolean;
160
+ description: string;
129
161
  banner: string;
130
162
  layout: "vertical" | "horizontal";
131
163
  card: boolean;
132
164
  submitLabel: string;
133
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
165
+ submitDisabled: boolean;
166
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
134
167
 
135
- declare const __VLS_export_4: DefineComponent<TravelFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
168
+ declare const __VLS_export_4: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
136
169
  submit: (model: TravelFormData) => any;
137
- }, string, PublicProps, Readonly<TravelFormProps> & Readonly<{
138
- onSubmit?: (model: TravelFormData) => any;
170
+ }, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
171
+ onSubmit?: ((model: TravelFormData) => any) | undefined;
139
172
  }>, {
140
173
  title: string;
141
174
  flat: boolean;
142
- description: string;
143
175
  fullWidth: boolean;
176
+ description: string;
144
177
  banner: string;
145
178
  layout: "vertical" | "horizontal";
146
179
  card: boolean;
147
180
  submitLabel: string;
148
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
181
+ submitDisabled: boolean;
182
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
149
183
 
150
- declare const __VLS_export_5: DefineComponent<LiabilityFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
184
+ declare const __VLS_export_5: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
151
185
  submit: (model: LiabilityFormData) => any;
152
- }, string, PublicProps, Readonly<LiabilityFormProps> & Readonly<{
153
- onSubmit?: (model: LiabilityFormData) => any;
186
+ }, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
187
+ onSubmit?: ((model: LiabilityFormData) => any) | undefined;
154
188
  }>, {
155
189
  title: string;
156
190
  flat: boolean;
157
- description: string;
158
191
  fullWidth: boolean;
192
+ description: string;
159
193
  banner: string;
160
194
  layout: "vertical" | "horizontal";
161
195
  card: boolean;
162
196
  submitLabel: string;
163
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
197
+ submitDisabled: boolean;
198
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
164
199
 
165
- declare const __VLS_export_6: DefineComponent<HouseFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
200
+ declare const __VLS_export_6: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
166
201
  submit: (model: HouseFormData) => any;
167
- }, string, PublicProps, Readonly<HouseFormProps> & Readonly<{
168
- onSubmit?: (model: HouseFormData) => any;
202
+ }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
203
+ onSubmit?: ((model: HouseFormData) => any) | undefined;
169
204
  }>, {
170
205
  title: string;
171
206
  flat: boolean;
172
- description: string;
173
207
  fullWidth: boolean;
208
+ description: string;
174
209
  banner: string;
175
210
  layout: "vertical" | "horizontal";
176
211
  card: boolean;
177
212
  submitLabel: string;
178
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
213
+ submitDisabled: boolean;
214
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
179
215
 
180
- declare const __VLS_export_7: DefineComponent<LegalFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
216
+ declare const __VLS_export_7: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
181
217
  submit: (model: LegalFormData) => any;
182
- }, string, PublicProps, Readonly<LegalFormProps> & Readonly<{
183
- onSubmit?: (model: LegalFormData) => any;
218
+ }, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
219
+ onSubmit?: ((model: LegalFormData) => any) | undefined;
184
220
  }>, {
185
221
  title: string;
186
222
  flat: boolean;
187
- description: string;
188
223
  fullWidth: boolean;
224
+ description: string;
189
225
  banner: string;
190
226
  layout: "vertical" | "horizontal";
191
227
  card: boolean;
192
228
  submitLabel: string;
193
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
229
+ submitDisabled: boolean;
230
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
194
231
 
195
- declare const __VLS_export_8: DefineComponent<PackageFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
232
+ declare const __VLS_export_8: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
196
233
  submit: (model: PackageFormData) => any;
197
- }, string, PublicProps, Readonly<PackageFormProps> & Readonly<{
198
- onSubmit?: (model: PackageFormData) => any;
234
+ }, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
235
+ onSubmit?: ((model: PackageFormData) => any) | undefined;
199
236
  }>, {
200
237
  title: string;
201
238
  flat: boolean;
202
- description: string;
203
239
  fullWidth: boolean;
240
+ description: string;
204
241
  banner: string;
205
242
  layout: "vertical" | "horizontal";
206
243
  card: boolean;
207
244
  submitLabel: string;
208
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
245
+ submitDisabled: boolean;
246
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
209
247
 
210
- declare const __VLS_export_9: DefineComponent<LoanFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
248
+ declare const __VLS_export_9: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
211
249
  submit: (model: LoanFormData) => any;
212
- }, string, PublicProps, Readonly<LoanFormProps> & Readonly<{
213
- onSubmit?: (model: LoanFormData) => any;
250
+ }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
251
+ onSubmit?: ((model: LoanFormData) => any) | undefined;
214
252
  }>, {
215
253
  title: string;
216
254
  flat: boolean;
217
- description: string;
218
255
  fullWidth: boolean;
256
+ description: string;
219
257
  banner: string;
220
258
  layout: "vertical" | "horizontal";
221
259
  card: boolean;
222
260
  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
- }
261
+ submitDisabled: boolean;
262
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
263
+
264
+ declare type __VLS_Props = ComparisonFormProps<BikeFormData>;
265
+
266
+ declare type __VLS_Props_10 = ComparisonFormProps<MopedFormData>;
267
+
268
+ declare type __VLS_Props_11 = ComparisonFormProps<MotorFormData>;
269
+
270
+ declare type __VLS_Props_12 = ComparisonFormProps<CarFormData>;
271
+
272
+ declare type __VLS_Props_13 = ComparisonFormProps<BusinessCarFormData>;
273
+
274
+ declare type __VLS_Props_14 = ComparisonFormProps<BusinessLiabilityFormData>;
275
+
276
+ declare type __VLS_Props_2 = ComparisonFormProps<PetFormData>;
277
+
278
+ declare type __VLS_Props_3 = ComparisonFormProps<CaravanFormData>;
279
+
280
+ declare type __VLS_Props_4 = ComparisonFormProps<TravelFormData>;
281
+
282
+ declare type __VLS_Props_5 = ComparisonFormProps<LiabilityFormData>;
283
+
284
+ declare type __VLS_Props_6 = ComparisonFormProps<HouseFormData>;
285
+
286
+ declare type __VLS_Props_7 = ComparisonFormProps<LegalFormData>;
287
+
288
+ declare type __VLS_Props_8 = ComparisonFormProps<PackageFormData>;
289
+
290
+ declare type __VLS_Props_9 = ComparisonFormProps<LoanFormData>;
241
291
 
242
292
  declare interface AddressBearingFormData {
243
- address: AddressDraft;
244
- street: string;
245
- city: string;
293
+ address: AddressData;
246
294
  }
247
295
 
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;
296
+ declare interface AddressData {
297
+ zipCode?: string;
298
+ houseNumber?: string;
299
+ houseNumberAddition?: string;
300
+ city?: string;
301
+ street?: string;
253
302
  }
254
303
 
255
304
  declare interface BaseVehicleData {
@@ -270,10 +319,6 @@ export declare interface BikeFormData {
270
319
  brand?: string;
271
320
  }
272
321
 
273
- declare interface BikeFormProps extends ComparisonFormSharedProps {
274
- initialData?: Partial<BikeFormData>;
275
- }
276
-
277
322
  export declare function bikePresenter(data: BikeFormData): ComparisonPayload;
278
323
 
279
324
  declare interface BirthdateFormData {
@@ -283,14 +328,18 @@ declare interface BirthdateFormData {
283
328
  export declare const BusinessCarForm: typeof __VLS_export_13;
284
329
 
285
330
  export declare interface BusinessCarFormData extends VehicleFormData<CarData> {
286
- company: CompanyDataPresenter | null;
331
+ company: CompanyDataPresenter;
287
332
  }
288
333
 
289
- declare interface BusinessCarFormProps extends ComparisonFormSharedProps {
290
- initialData?: Partial<BusinessCarFormData>;
334
+ export declare function businessCarPresenter(data: BusinessCarFormData): ComparisonPayload;
335
+
336
+ export declare const BusinessLiabilityForm: typeof __VLS_export_14;
337
+
338
+ export declare interface BusinessLiabilityFormData {
339
+ company: CompanyDataPresenter;
291
340
  }
292
341
 
293
- export declare function businessCarPresenter(data: BusinessCarFormData): ComparisonPayload;
342
+ export declare function businessLiabilityPresenter(data: BusinessLiabilityFormData): ComparisonPayload;
294
343
 
295
344
  export declare const CaravanForm: typeof __VLS_export_3;
296
345
 
@@ -300,10 +349,6 @@ export declare interface CaravanFormData {
300
349
  BuildYear: string | null;
301
350
  }
302
351
 
303
- declare interface CaravanFormProps extends ComparisonFormSharedProps {
304
- initialData?: Partial<CaravanFormData>;
305
- }
306
-
307
352
  export declare function caravanPresenter(data: CaravanFormData): ComparisonPayload;
308
353
 
309
354
  declare interface CarData extends BaseVehicleData {
@@ -320,10 +365,6 @@ export declare const CarForm: typeof __VLS_export_12;
320
365
  export declare interface CarFormData extends VehicleFormData<CarData>, AddressBearingFormData, BirthdateFormData {
321
366
  }
322
367
 
323
- declare interface CarFormProps extends ComparisonFormSharedProps {
324
- initialData?: Partial<CarFormData>;
325
- }
326
-
327
368
  export declare function carPresenter(data: CarFormData): ComparisonPayload;
328
369
 
329
370
  declare interface CompanyActivity {
@@ -356,25 +397,29 @@ declare interface CompanyDataPresenter {
356
397
  secondSBIs: CompanyActivity[];
357
398
  }
358
399
 
359
- declare interface ComparisonDetail {
360
- name: string;
361
- data: Record<string, unknown>;
362
- }
400
+ export declare const ComparisonFormFlow: typeof __VLS_export_15;
363
401
 
364
- export declare const ComparisonFormFlow: typeof __VLS_export_14;
365
-
366
- declare interface ComparisonFormFlowProps extends ComparisonFormSharedProps {
402
+ declare interface ComparisonFormFlowProps extends ComparisonFormProps<Record<string, unknown>> {
367
403
  form: ComparisonFormName;
368
- client: TransmissionClient;
369
- /** redirect target template with the <<COMPARISONID>> placeholder */
404
+ /** base page url of the target comparison app; the comparison route (`#/<id>/…`) is appended internally */
370
405
  link: string;
371
- initialData?: Record<string, unknown>;
372
406
  /** override the default full-page navigation (demos, SPA hosts) */
373
407
  redirect?: (url: string) => void;
374
408
  }
375
409
 
376
410
  declare type ComparisonFormName = ComparisonNameValue | ComparisonNameAlias;
377
411
 
412
+ /**
413
+ * Props of a concrete comparison form: the shared presentation subset plus the
414
+ * form-typed prefill. Kept out of `ComparisonFormSharedProps` on purpose — that
415
+ * interface is the v-bind contract of the <VdComparisonForm> shell, which must
416
+ * never receive `initialData`.
417
+ */
418
+ declare interface ComparisonFormProps<TData> extends ComparisonFormSharedProps {
419
+ /** 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 */
420
+ initialData?: Partial<TData>;
421
+ }
422
+
378
423
  /**
379
424
  * Props shared by the base <VdComparisonForm> and every concrete comparison
380
425
  * form (BikeForm, CarForm, …). The host page configures copy and presentation
@@ -387,11 +432,7 @@ declare type ComparisonFormName = ComparisonNameValue | ComparisonNameAlias;
387
432
  * 3. forwards the shared subset with `useComparisonFormProps` via `v-bind`.
388
433
  *
389
434
  * ```ts
390
- * interface BikeFormProps extends ComparisonFormSharedProps {
391
- * // form-specific props go here
392
- * }
393
- *
394
- * const props = withDefaults(defineProps<BikeFormProps>(), {
435
+ * const props = withDefaults(defineProps<ComparisonFormProps<BikeFormData>>(), {
395
436
  * ...comparisonFormSharedDefaults,
396
437
  * title: 'Fietsverzekering vergelijken',
397
438
  * })
@@ -412,6 +453,8 @@ declare interface ComparisonFormSharedProps {
412
453
  /** opt out of the vertical fixed width — fill the parent (modal / slider host) */
413
454
  fullWidth?: boolean;
414
455
  submitLabel?: string;
456
+ /** host-side disable of the submit button; forms OR it with their own isSubmitting */
457
+ submitDisabled?: boolean;
415
458
  }
416
459
 
417
460
  export declare enum ComparisonName {
@@ -419,6 +462,7 @@ export declare enum ComparisonName {
419
462
  Car = "car",
420
463
  Caravan = "caravan",
421
464
  CarBusiness = "car-business",
465
+ BusinessLiability = "business-liability",
422
466
  Housing = "housing",
423
467
  LegalAssistance = "legal-assistance",
424
468
  Liability = "liability",
@@ -435,8 +479,8 @@ declare type ComparisonNameAlias = 'house' | 'business-car';
435
479
  declare type ComparisonNameValue = `${ComparisonName}`;
436
480
 
437
481
  export declare interface ComparisonPayload {
438
- comparison: ComparisonName;
439
- details: ComparisonDetail[];
482
+ comparison: ComparisonNameValue;
483
+ detail: Record<string, unknown>;
440
484
  user: ComparisonUserFields;
441
485
  }
442
486
 
@@ -471,10 +515,6 @@ export declare interface HouseFormData extends AddressBearingFormData, FamilyCom
471
515
  ownedBuilding: YesNo;
472
516
  }
473
517
 
474
- declare interface HouseFormProps extends ComparisonFormSharedProps {
475
- initialData?: Partial<HouseFormData>;
476
- }
477
-
478
518
  export declare function housePresenter(data: HouseFormData): ComparisonPayload;
479
519
 
480
520
  export declare const LegalForm: typeof __VLS_export_7;
@@ -484,10 +524,6 @@ export declare interface LegalFormData extends AddressBearingFormData, Birthdate
484
524
  familySize: string;
485
525
  }
486
526
 
487
- declare interface LegalFormProps extends ComparisonFormSharedProps {
488
- initialData?: Partial<LegalFormData>;
489
- }
490
-
491
527
  export declare function legalPresenter(data: LegalFormData): ComparisonPayload;
492
528
 
493
529
  export declare const LiabilityForm: typeof __VLS_export_5;
@@ -495,10 +531,6 @@ export declare const LiabilityForm: typeof __VLS_export_5;
495
531
  export declare interface LiabilityFormData extends AddressBearingFormData, BirthdateFormData, FamilyCompositionFormData {
496
532
  }
497
533
 
498
- declare interface LiabilityFormProps extends ComparisonFormSharedProps {
499
- initialData?: Partial<LiabilityFormData>;
500
- }
501
-
502
534
  export declare function liabilityPresenter(data: LiabilityFormData): ComparisonPayload;
503
535
 
504
536
  export declare const LoanForm: typeof __VLS_export_9;
@@ -508,10 +540,6 @@ export declare interface LoanFormData extends BirthdateFormData, FamilyCompositi
508
540
  LoanAmount: number | null;
509
541
  }
510
542
 
511
- declare interface LoanFormProps extends ComparisonFormSharedProps {
512
- initialData?: Partial<LoanFormData>;
513
- }
514
-
515
543
  export declare function loanPresenter(data: LoanFormData): ComparisonPayload;
516
544
 
517
545
  declare interface MopedData extends BaseVehicleData {
@@ -531,10 +559,6 @@ export declare const MopedForm: typeof __VLS_export_10;
531
559
  export declare interface MopedFormData extends VehicleFormData<MopedData>, AddressBearingFormData, BirthdateFormData {
532
560
  }
533
561
 
534
- declare interface MopedFormProps extends ComparisonFormSharedProps {
535
- initialData?: Partial<MopedFormData>;
536
- }
537
-
538
562
  export declare function mopedPresenter(data: MopedFormData): ComparisonPayload;
539
563
 
540
564
  declare interface MotorData extends BaseVehicleData {
@@ -559,10 +583,6 @@ export declare const MotorForm: typeof __VLS_export_11;
559
583
  export declare interface MotorFormData extends VehicleFormData<MotorData>, AddressBearingFormData, BirthdateFormData {
560
584
  }
561
585
 
562
- declare interface MotorFormProps extends ComparisonFormSharedProps {
563
- initialData?: Partial<MotorFormData>;
564
- }
565
-
566
586
  export declare function motorPresenter(data: MotorFormData): ComparisonPayload;
567
587
 
568
588
  export declare const PackageForm: typeof __VLS_export_8;
@@ -571,10 +591,6 @@ export declare interface PackageFormData extends AddressBearingFormData, Birthda
571
591
  partnerBirthdate: string;
572
592
  }
573
593
 
574
- declare interface PackageFormProps extends ComparisonFormSharedProps {
575
- initialData?: Partial<PackageFormData>;
576
- }
577
-
578
594
  export declare function packagePresenter(data: PackageFormData): ComparisonPayload;
579
595
 
580
596
  declare enum PaymentTerm {
@@ -590,75 +606,44 @@ export declare interface PetFormData {
590
606
  zipcode: string;
591
607
  }
592
608
 
593
- declare interface PetFormProps extends ComparisonFormSharedProps {
594
- initialData?: Partial<PetFormData>;
609
+ export declare function petPresenter(data: PetFormData): ComparisonPayload;
610
+
611
+ export declare const QuestionnaireForm: typeof __VLS_export_17;
612
+
613
+ export declare type QuestionnaireFormProps = QuestionnaireSharedProps;
614
+
615
+ /**
616
+ * The shared public API of every questionnaire (QA-renderer quiz starter).
617
+ * Deliberately independent from the comparison forms' `ComparisonFormProps` —
618
+ * questionnaires are VD-internal drop-ins, their contract evolves separately.
619
+ *
620
+ * On master (1.x) this contract was `link`/`title`/`description`/`buttonText`/
621
+ * `showTitle` + an `additionalOptions` object carrying the QA params; 2.x
622
+ * flattens those params into plain props, keeping the master names
623
+ * (`thankyouPageTemplate` still lands in the url as the `template` query param).
624
+ */
625
+ export declare interface QuestionnaireSharedProps {
626
+ /** base page url of the quiz app; `{qaId, template, …}` are merged into its query */
627
+ link: string;
628
+ qaId: string;
629
+ thankyouPageTemplate?: string;
630
+ title?: string;
631
+ description?: string;
632
+ buttonText?: string;
633
+ showTitle?: boolean;
595
634
  }
596
635
 
597
- export declare function petPresenter(data: PetFormData): ComparisonPayload;
636
+ export declare const RiskScannerForm: typeof __VLS_export_16;
598
637
 
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;
638
+ export declare interface RiskScannerFormProps extends Omit<QuestionnaireSharedProps, 'qaId'> {
644
639
  /**
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
640
+ * base url of the QA API (a missing trailing slash is normalized internally);
641
+ * falls back to the ITC client's qa config when omitted
651
642
  */
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>;
643
+ qaUrl?: string;
644
+ qaId?: string;
645
+ currentItemId?: string;
646
+ nextItemId?: string;
662
647
  }
663
648
 
664
649
  export declare const TravelForm: typeof __VLS_export_4;
@@ -667,10 +652,6 @@ export declare interface TravelFormData extends BirthdateFormData {
667
652
  PaymentTerm: PaymentTerm;
668
653
  }
669
654
 
670
- declare interface TravelFormProps extends ComparisonFormSharedProps {
671
- initialData?: Partial<TravelFormData>;
672
- }
673
-
674
655
  export declare function travelPresenter(data: TravelFormData): ComparisonPayload;
675
656
 
676
657
  export declare function useComparisonSubmit(options: UseComparisonSubmitOptions): {
@@ -680,7 +661,7 @@ export declare function useComparisonSubmit(options: UseComparisonSubmitOptions)
680
661
  };
681
662
 
682
663
  declare interface UseComparisonSubmitOptions {
683
- client: TransmissionClient;
664
+ /** base page url of the target comparison app; the comparison route (`#/<id>/…`) is appended internally */
684
665
  link: string;
685
666
  onRedirect?: (url: string) => void;
686
667
  onError?: (error: unknown, payload: ComparisonPayload) => void;