@e-trias/woonplan 1.0.33 → 1.0.36

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,23 +1,23 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
- name: Node.js Package
5
-
6
- on:
7
- release:
8
- types: [created]
9
-
10
- jobs:
11
- publish-npm:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - uses: actions/checkout@v2
15
- - uses: actions/setup-node@v2
16
- with:
17
- node-version: 16
18
- registry-url: https://registry.npmjs.org/
19
- - run: npm ci
20
- - run: npm version patch
21
- - run: npm publish
22
- env:
23
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: [created]
9
+
10
+ jobs:
11
+ publish-npm:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - uses: actions/setup-node@v2
16
+ with:
17
+ node-version: 16
18
+ registry-url: https://registry.npmjs.org/
19
+ - run: npm ci
20
+ - run: npm version patch
21
+ - run: npm publish
22
+ env:
23
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/index.d.ts CHANGED
@@ -1,552 +1,553 @@
1
- export interface Contact{
2
- id?: string | null
3
- firstname?: string
4
- infix?: string | null
5
- lastname?: string
6
- active?: boolean
7
- email?: string
8
- username?: string
9
- postcode?: string
10
- phone?: string
11
- mobile?: string
12
- houseno?: number
13
- extension?: string
14
- password?: string
15
- securityroleid?: string | null
16
- companyid?: string | null
17
- areaactioncollectionid?: string | null
18
- questionairelocked?: boolean
19
- wantsnewsletter?: boolean
20
- coordinates?:string
21
- streetname?:string
22
- city?:string
23
- simpleid?:number
24
- salutation?: string
25
- pvid?: string
26
- }
27
- export interface Advice{
28
- id:string | null;
29
- userdataid:string;
30
- status:string;
31
- usage:string
32
- adviceinfo:string
33
- advicedusage:string
34
- userinput:string
35
- advicedinput:string
36
- advicedstates:string
37
- workerresult:string
38
- calculatedmeasures:string
39
- }
40
-
41
- export interface EtriasDBContact{
42
- id:string | null;
43
- email:string;
44
- username:string;
45
- password:string;
46
- securityroleid:string | null;
47
- companyid:string | null;
48
- }
49
-
50
- export interface SecurityRole{
51
- id:string;
52
- name:string;
53
- deleted:boolean;
54
- }
55
-
56
- export interface Article{
57
- id:string;
58
- title:string;
59
- body: string;
60
- }
61
- export interface ILogged{
62
- id: string;
63
- name:string;
64
- deleted:boolean;
65
- sortorder:number;
66
- createdate:Date
67
- }
68
-
69
- export interface SignupForm{
70
- salutation:string;
71
- firstname:string;
72
- infix:string;
73
- lastname:string;
74
- postcode:string;
75
- housenumber:number;
76
- extension:string;
77
- phone:string;
78
- mobile:string;
79
- email:string;
80
- password:string;
81
- password_repeat:string;
82
- conditions:boolean;
83
- areaactionid: string;
84
- partnerid: string;
85
- areaactioncollectionid:string;
86
- }
87
-
88
- export interface CIASignupForm extends SignupForm{}
89
- export interface MWASignupForm extends SignupForm{}
90
-
91
- export interface SignupFormResponse{
92
- status: string;
93
- statuscode: number;
94
- title?: string;
95
- contact?:Contact;
96
- }
97
- export interface CIASignupFormResponse extends SignupFormResponse{}
98
- export interface MWASignupFormResponse extends SignupFormResponse{}
99
-
100
- export interface IUserdata{
101
- id:string;
102
- sourceid:string | null
103
- contactid:string
104
- maxpanels?:number
105
- openstairs?:boolean
106
- openkitchen?:boolean
107
- floorheating?:boolean
108
- occupants?:number
109
- showerprofile?:number
110
- cookingprofile?:number
111
- draftprofile?:number
112
- maxinvestment?:number
113
- cooksongas?:boolean
114
- source?:string
115
- buildyear?:number
116
- surface?:number
117
- usage ?: string
118
-
119
- diyconstruction ?: boolean
120
- circularconstruction ?: boolean
121
- renovationconstruction ?: boolean
122
- }
123
-
124
- export interface Solarapicall{
125
- id:string
126
- deleted:boolean
127
- name?:string
128
- sortorder?:number
129
- energyconsumption:number | null
130
- max:boolean
131
- panels:number
132
- yield:number
133
- postcode:string
134
- housenumber:number
135
- extension:string | null
136
- result:string
137
- }
138
-
139
- export interface Quotation{
140
- id:string
141
- expiredate:Date
142
- contractorid:string
143
- adviceid:string
144
- measuredataid?:string
145
- quotationrequestid:string
146
- investment?:number
147
- status?:string
148
- accepteddate?:Date
149
- rejectdate?:Date
150
- rejectreason?:string
151
- }
152
-
153
- export interface QuotationFile{
154
- id:string
155
- originalfilename:string
156
- quotationid?:string
157
- quotationrequestid?:string
158
- folder?:string
159
- bucket?:string
160
- }
161
-
162
- export interface QuotationRequest{
163
- id:string
164
- measureid:string
165
- measuredataid?:string
166
- contractorid?:string
167
- adviceid:string
168
- status:string
169
- data:JSON | null
170
- files?:QuotationFile[]
171
- }
172
-
173
- export interface Collectivebuy{
174
- id:string
175
- expiredate:Date
176
- partnerid:string
177
- }
178
-
179
- export interface IMeasuredata{
180
- id:string
181
- name:string
182
- deleted:boolean
183
- sortorder?:number
184
- active?:boolean
185
- displayname?:string
186
- price_m2?:number
187
- price_m?:number
188
- price_per_object?:number
189
- startamount?:number
190
- rcvalue?:number
191
- investment?:number
192
- collectivebuyid?:string
193
- contractorid?:string
194
- measureid?:string
195
- requiressurvey?:boolean
196
- collectivebuystatus?:"now" | "future" | "never"
197
- collectivebuyquotationpossible?:boolean
198
- g_value ?: number
199
- u_value ?: number
200
-
201
- insulationmethodid ?: string
202
- insulationlocationid ?: string
203
- insulationtypeid ?: string
204
- }
205
-
206
- export interface IMeasuredatainterestedcontact{
207
- measuredataid:string
208
- contactid:string
209
- }
210
-
211
- export interface Text{
212
- id:string
213
- title: string
214
- body: string
215
- localeid:string
216
- partnerid:string
217
- }
218
-
219
- export interface Content{
220
- id:string
221
- fullyqualifiedaction : string
222
- subtitle?: string
223
- excerpt?: string
224
- searchbox?: string
225
- actionsbox?: string
226
- htmltitle?: string
227
- htmlkeywords?: string
228
- htmldescription?: string
229
- parentid?: string
230
- areaactionid?: string
231
- }
232
-
233
- export interface Measuretext{
234
- id:string
235
- measureid?:string
236
- measuredataid?:string
237
- excerpt?:string
238
- }
239
-
240
- export interface QuotationRequestForm{
241
- measuredataid : string
242
- measureid : string
243
- contractorid : string
244
- }
245
-
246
- export interface IAppointment {
247
- id: string
248
- status?: string
249
- start?: Date
250
- end?: Date
251
- userdataid?: string
252
- surveyorid?: string
253
- needspayment?: true | false
254
- price? : number
255
- name?: string
256
- }
257
-
258
- export interface ICreateAppointmentParams{
259
- appointmentId: string
260
- agendaId: string
261
- appointmentTypeId: string
262
- start: Date
263
- end: Date
264
- userdataId : string
265
- customerId : string
266
- }
267
-
268
- export interface IAppointmentFormParams{
269
- agendaId: number
270
- appointmentTypeId: number
271
- startDate: string
272
- endDate: string
273
- measuredataids : string[]
274
- }
275
-
276
- export interface ISettings {
277
- "2fa"?: "email"
278
- "ga-api-key"?: string
279
- "ga-code"?: string
280
- "gtm-code"?: string
281
- adviceUrl?: string
282
- cava?: ICavaSettings
283
- createProjectInPerfectview?: boolean
284
- houseScan?: boolean
285
- initialQuestionsetP?: number
286
- mollie?: { apiKey: string }
287
- municipalityManagesLandingPage?: boolean
288
- onlineAfsprakenActive?: number
289
- onlineAfsprakenAgendaId?: number
290
- onlineAfsprakenAppointmentTypeId?: number
291
- perfectview?: IPerfectviewSettings
292
- perfectviewProject?: IPerfectviewProject
293
- priceMargin?: IPriceMargin
294
- primaryPackage?: IPackage
295
- quotationSalesContact?: string
296
- showCollectiveHeatSourceText?: boolean
297
- showPackages?: boolean
298
- startpercentagequestionaire?: number
299
- }
300
-
301
- export interface IPerfectviewSettings {
302
- ApiKey?: string
303
- DatabaseId?: string
304
- UserId?: string
305
- }
306
-
307
- export interface ICavaSettings {
308
- pvMark?: string
309
- pvMarkCategory?: string
310
- }
311
-
312
- export interface IPerfectviewProject {
313
- phase?: string
314
- type?: string
315
- }
316
-
317
- export interface IPackage {
318
- id: string
319
- name: string
320
- }
321
-
322
- export interface IPriceMargin {
323
- priceMarginMin?: number
324
- priceMarginMax?: number
325
- }
326
-
327
- export interface IPrice {
328
- currency: string
329
- value: number
330
- }
331
-
332
- export interface IPSPStatusUpdate {
333
- mollieid: string
334
- }
335
-
336
- export interface IPayment {
337
- id: string
338
- amount: number
339
- description: string
340
- // createdAt & updatedAt in ISO 8601 format
341
- createdAt: string
342
- updatedAt: string
343
- appointmentid?: string
344
- status : string
345
- mollieid: string
346
- checkoutUrl?: string
347
- }
348
-
349
- export interface IOnlineAfsprakenSettings{
350
- apiKey: string
351
- apiSecret: string
352
- appointmentTypeId: number
353
- agendaId: number
354
- }
355
-
356
-
357
- export interface IGetBookableDaysParams {
358
- userdataid: string,
359
- ResourceId?: string,
360
- StartDate: string // YYYY-MM-DD
361
- EndDate: string // YYYY-MM-DD
362
- settings?:IOnlineAfsprakenSettings
363
- }
364
-
365
- export interface IGetBookableTimesParams {
366
- Date: string // YYYY-MM-DD
367
- userdataid: string,
368
- ResourceId?: string,
369
- EndDate?: string // YYYY-MM-DD
370
- settings?:IOnlineAfsprakenSettings
371
- }
372
-
373
- export interface IBookableday{
374
- Date: string;
375
- Month:number
376
- Day:number
377
- Year?:number
378
- JSDate?:Date
379
- UTCDate?: string
380
- }
381
-
382
-
383
- export interface IBookabletime{
384
- Date: string;
385
- StartTime: string,
386
- LabelTime: string
387
- EndTime: string,
388
- Timestamp: number,
389
- JSDateStart?:Date
390
- JSDateEnd?:Date
391
- UTCDateStart?: string
392
- UTCDateEnd?: string
393
- }
394
-
395
-
396
-
397
- export interface IBagData {
398
- coordinates: number[]
399
- buildyear: number
400
- streetname: string
401
- city: string
402
- surface:number
403
- }
404
-
405
- export interface IWssProject{
406
- id : string
407
- name : string
408
- }
409
- export interface IWssAddress{
410
- id : string
411
- postcode : string
412
- housenumber : number
413
- extension : string
414
- projectid : string
415
- tags : string[]
416
- }
417
- export interface IWssTag{
418
- id : string
419
-
420
- }
421
-
422
- export interface IHouseobject{
423
- deleted ?: boolean
424
- id ?: string
425
- sortorder ?: number
426
- surface ?: number
427
- measuredatas ?: IMeasuredata[]
428
- }
429
-
430
- export interface IAbstractHouseObjectType{
431
- deleted ?: boolean
432
- id ?: string
433
- sortorder ?: number
434
- }
435
-
436
- export interface IFloortype extends IAbstractHouseObjectType{
437
- lambda ?: number
438
- rcvalue ?: number
439
- }
440
-
441
- export interface IRooftype extends IAbstractHouseObjectType{
442
- }
443
-
444
- export interface IWalltype extends IAbstractHouseObjectType{
445
- }
446
-
447
- export interface ICrawlspace{
448
- deleted ?: boolean
449
- id ?: string
450
- sortorder ?: number
451
- accessible ?: boolean
452
- pumpable ?: boolean
453
- cluttered ?: boolean
454
- height ?: number
455
- wet ?: string
456
-
457
- }
458
- export interface ICrawlspaceinfloor{
459
- floorid : ''
460
- crawlspaceid : ''
461
- }
462
-
463
- export interface IFloor extends IHouseobject{
464
- floortypeid ?: string
465
- floortype ?: IFloortype
466
- crawlspaces ?: ICrawlspace[]
467
- }
468
-
469
-
470
- export interface ISide{
471
- name : string
472
- deleted : boolean
473
- id : string
474
- sortorder : number
475
- }
476
-
477
- export interface IWall extends IHouseobject{
478
- shadowpercentage ?: number
479
- angle ?: number
480
- side ?: ISide
481
- sideid ?: string
482
- walltypeid ?: string
483
- walltype ?: IWalltype
484
- }
485
-
486
-
487
- export interface IRoof extends IHouseobject{
488
- shadowpercentage ?: number
489
- angle ?: number
490
- rooftypeid ?: string
491
- rooftype ?: IRooftype
492
- }
493
- export interface IWindowframe extends IHouseobject{
494
- userdataid : string
495
- userdata ?: IUserdata
496
- wall ?: IWall
497
- sideid : string
498
- side ?: ISide
499
- wallid : string
500
- roomid : string
501
- houselevelid : string
502
- windowframetypeid : string
503
- windowframetype ?: IWindowframetype
504
- width : number
505
- height : number
506
- }
507
-
508
- export interface IWindowframepart extends IHouseobject{
509
- framewidth ?: number
510
- frameheight ?: number
511
- glasswidth ?: number
512
- glassheight ?: number
513
- leftcasinglength ?: number
514
- rightcasinglength ?: number
515
- bottomstoollength ?: number
516
- topstoollength ?: number
517
- shadowpercentage ?: number
518
-
519
- windowframeparttypeid ?: string
520
- windowframeid ?: string
521
- }
522
-
523
- export interface IWindowframetype extends IAbstractHouseObjectType{
524
- uvalue ?: number
525
- }
526
-
527
- export interface IRule{
528
- id : string
529
- energylossid ?: string
530
- floortypeid ?: string
531
- glasstypeid ?: string
532
- roofingid ?: string
533
- roofshapeid ?: string
534
- rooftypeid ?: string
535
- wallfinishid ?: string
536
- walltypeid ?: string
537
- windowframeparttypeid ?: string
538
- packageid ?: string
539
- rulesetid ?: string
540
- ruletypeid ?: string
541
- measuredataid ?: string
542
- targetMeasureid ?: string
543
- gasfreeoptionid ?: string
544
- measuretypeid ?: string
545
- insulationlocationid ?: string
546
- insulationmethodid ?: string
547
- insulationtypeid ?: string
548
-
549
- field: string
550
- operator: string
551
- value : string
1
+ export interface Contact{
2
+ id?: string | null
3
+ firstname?: string
4
+ infix?: string | null
5
+ lastname?: string
6
+ active?: boolean
7
+ email?: string
8
+ username?: string
9
+ postcode?: string
10
+ phone?: string
11
+ mobile?: string
12
+ houseno?: number
13
+ extension?: string
14
+ password?: string
15
+ securityroleid?: string | null
16
+ companyid?: string | null
17
+ areaactioncollectionid?: string | null
18
+ questionairelocked?: boolean
19
+ wantsnewsletter?: boolean
20
+ coordinates?:string
21
+ streetname?:string
22
+ city?:string
23
+ simpleid?:number
24
+ salutation?: string
25
+ pvid?: string
26
+ }
27
+ export interface Advice{
28
+ id:string | null;
29
+ userdataid:string;
30
+ status:string;
31
+ usage:string
32
+ adviceinfo:string
33
+ advicedusage:string
34
+ userinput:string
35
+ advicedinput:string
36
+ advicedstates:string
37
+ workerresult:string
38
+ calculatedmeasures:string
39
+ }
40
+
41
+ export interface EtriasDBContact{
42
+ id:string | null;
43
+ email:string;
44
+ username:string;
45
+ password:string;
46
+ securityroleid:string | null;
47
+ companyid:string | null;
48
+ }
49
+
50
+ export interface SecurityRole{
51
+ id:string;
52
+ name:string;
53
+ deleted:boolean;
54
+ }
55
+
56
+ export interface Article{
57
+ id:string;
58
+ title:string;
59
+ body: string;
60
+ }
61
+ export interface ILogged{
62
+ id: string;
63
+ name:string;
64
+ deleted:boolean;
65
+ sortorder:number;
66
+ createdate:Date
67
+ }
68
+
69
+ export interface SignupForm{
70
+ salutation:string;
71
+ firstname:string;
72
+ infix:string;
73
+ lastname:string;
74
+ postcode:string;
75
+ housenumber:number;
76
+ extension:string;
77
+ phone:string;
78
+ mobile:string;
79
+ email:string;
80
+ password:string;
81
+ password_repeat:string;
82
+ conditions:boolean;
83
+ areaactionid: string;
84
+ partnerid: string;
85
+ areaactioncollectionid:string;
86
+ }
87
+
88
+ export interface CIASignupForm extends SignupForm{}
89
+ export interface MWASignupForm extends SignupForm{}
90
+
91
+ export interface SignupFormResponse{
92
+ status: string;
93
+ statuscode: number;
94
+ title?: string;
95
+ contact?:Contact;
96
+ }
97
+ export interface CIASignupFormResponse extends SignupFormResponse{}
98
+ export interface MWASignupFormResponse extends SignupFormResponse{}
99
+
100
+ export interface IUserdata{
101
+ id:string;
102
+ sourceid:string | null
103
+ contactid:string
104
+ maxpanels?:number
105
+ openstairs?:boolean
106
+ openkitchen?:boolean
107
+ floorheating?:boolean
108
+ occupants?:number
109
+ showerprofile?:number
110
+ cookingprofile?:number
111
+ draftprofile?:number
112
+ maxinvestment?:number
113
+ cooksongas?:boolean
114
+ source?:string
115
+ buildyear?:number
116
+ surface?:number
117
+ usage ?: string
118
+ wetspotswalls ?: string
119
+ diyconstruction ?: boolean
120
+ circularconstruction ?: boolean
121
+ renovationconstruction ?: boolean
122
+ }
123
+
124
+ export interface Solarapicall{
125
+ id:string
126
+ deleted:boolean
127
+ name?:string
128
+ sortorder?:number
129
+ energyconsumption:number | null
130
+ max:boolean
131
+ panels:number
132
+ yield:number
133
+ postcode:string
134
+ housenumber:number
135
+ extension:string | null
136
+ result:string
137
+ }
138
+
139
+ export interface Quotation{
140
+ id:string
141
+ expiredate:Date
142
+ contractorid:string
143
+ adviceid:string
144
+ measuredataid?:string
145
+ quotationrequestid:string
146
+ investment?:number
147
+ status?:string
148
+ accepteddate?:Date
149
+ rejectdate?:Date
150
+ rejectreason?:string
151
+ }
152
+
153
+ export interface QuotationFile{
154
+ id:string
155
+ originalfilename:string
156
+ quotationid?:string
157
+ quotationrequestid?:string
158
+ folder?:string
159
+ bucket?:string
160
+ }
161
+
162
+ export interface QuotationRequest{
163
+ id:string
164
+ measureid:string
165
+ measuredataid?:string
166
+ contractorid?:string
167
+ adviceid:string
168
+ status:string
169
+ data:JSON | null
170
+ files?:QuotationFile[]
171
+ }
172
+
173
+ export interface Collectivebuy{
174
+ id:string
175
+ expiredate:Date
176
+ partnerid:string
177
+ }
178
+
179
+ export interface IMeasuredata{
180
+ id:string
181
+ name:string
182
+ deleted:boolean
183
+ sortorder?:number
184
+ active?:boolean
185
+ displayname?:string
186
+ price_m2?:number
187
+ price_m?:number
188
+ price_per_object?:number
189
+ startamount?:number
190
+ rcvalue?:number
191
+ investment?:number
192
+ collectivebuyid?:string
193
+ contractorid?:string
194
+ measureid?:string
195
+ requiressurvey?:boolean
196
+ collectivebuystatus?:"now" | "future" | "never"
197
+ collectivebuyquotationpossible?:boolean
198
+ g_value ?: number
199
+ u_value ?: number
200
+
201
+ insulationmethodid ?: string
202
+ insulationlocationid ?: string
203
+ insulationtypeid ?: string
204
+ }
205
+
206
+ export interface IMeasuredatainterestedcontact{
207
+ measuredataid:string
208
+ contactid:string
209
+ }
210
+
211
+ export interface Text{
212
+ id:string
213
+ title: string
214
+ body: string
215
+ localeid:string
216
+ partnerid:string
217
+ }
218
+
219
+ export interface Content{
220
+ id:string
221
+ fullyqualifiedaction : string
222
+ subtitle?: string
223
+ excerpt?: string
224
+ searchbox?: string
225
+ actionsbox?: string
226
+ htmltitle?: string
227
+ htmlkeywords?: string
228
+ htmldescription?: string
229
+ parentid?: string
230
+ areaactionid?: string
231
+ }
232
+
233
+ export interface Measuretext{
234
+ id:string
235
+ measureid?:string
236
+ measuredataid?:string
237
+ excerpt?:string
238
+ }
239
+
240
+ export interface QuotationRequestForm{
241
+ measuredataid : string
242
+ measureid : string
243
+ contractorid : string
244
+ }
245
+
246
+ export interface IAppointment {
247
+ id: string
248
+ status?: string
249
+ start?: Date
250
+ end?: Date
251
+ userdataid?: string
252
+ surveyorid?: string
253
+ needspayment?: true | false
254
+ price? : number
255
+ name?: string
256
+ }
257
+
258
+ export interface ICreateAppointmentParams{
259
+ appointmentId: string
260
+ agendaId: string
261
+ appointmentTypeId: string
262
+ start: Date
263
+ end: Date
264
+ userdataId : string
265
+ customerId : string
266
+ }
267
+
268
+ export interface IAppointmentFormParams{
269
+ agendaId: number
270
+ appointmentTypeId: number
271
+ startDate: string
272
+ endDate: string
273
+ measuredataids : string[]
274
+ }
275
+
276
+ export interface ISettings {
277
+ "2fa"?: "email"
278
+ "ga-api-key"?: string
279
+ "ga-code"?: string
280
+ "gtm-code"?: string
281
+ adviceUrl?: string
282
+ cava?: ICavaSettings
283
+ createProjectInPerfectview?: boolean
284
+ houseScan?: boolean
285
+ initialQuestionsetP?: number
286
+ mollie?: { apiKey: string }
287
+ municipalityManagesLandingPage?: boolean
288
+ onlineAfsprakenActive?: number
289
+ onlineAfsprakenAgendaId?: number
290
+ onlineAfsprakenAppointmentTypeId?: number
291
+ perfectview?: IPerfectviewSettings
292
+ perfectviewProject?: IPerfectviewProject
293
+ priceMargin?: IPriceMargin
294
+ primaryPackage?: IPackage
295
+ quotationSalesContact?: string
296
+ showCollectiveHeatSourceText?: boolean
297
+ showPackages?: boolean
298
+ startpercentagequestionaire?: number
299
+ }
300
+
301
+ export interface IPerfectviewSettings {
302
+ ApiKey?: string
303
+ DatabaseId?: string
304
+ UserId?: string
305
+ }
306
+
307
+ export interface ICavaSettings {
308
+ pvMark?: string
309
+ pvMarkCategory?: string
310
+ }
311
+
312
+ export interface IPerfectviewProject {
313
+ phase?: string
314
+ type?: string
315
+ }
316
+
317
+ export interface IPackage {
318
+ id: string
319
+ name: string
320
+ }
321
+
322
+ export interface IPriceMargin {
323
+ priceMarginMin?: number
324
+ priceMarginMax?: number
325
+ }
326
+
327
+ export interface IPrice {
328
+ currency: string
329
+ value: number
330
+ }
331
+
332
+ export interface IPSPStatusUpdate {
333
+ mollieid: string
334
+ }
335
+
336
+ export interface IPayment {
337
+ id: string
338
+ amount: number
339
+ description: string
340
+ // createdAt & updatedAt in ISO 8601 format
341
+ createdAt: string
342
+ updatedAt: string
343
+ appointmentid?: string
344
+ status : string
345
+ mollieid: string
346
+ checkoutUrl?: string
347
+ }
348
+
349
+ export interface IOnlineAfsprakenSettings{
350
+ apiKey: string
351
+ apiSecret: string
352
+ appointmentTypeId: number
353
+ agendaId: number
354
+ }
355
+
356
+
357
+ export interface IGetBookableDaysParams {
358
+ userdataid: string,
359
+ ResourceId?: string,
360
+ StartDate: string // YYYY-MM-DD
361
+ EndDate: string // YYYY-MM-DD
362
+ settings?:IOnlineAfsprakenSettings
363
+ }
364
+
365
+ export interface IGetBookableTimesParams {
366
+ Date: string // YYYY-MM-DD
367
+ userdataid: string,
368
+ ResourceId?: string,
369
+ EndDate?: string // YYYY-MM-DD
370
+ settings?:IOnlineAfsprakenSettings
371
+ }
372
+
373
+ export interface IBookableday{
374
+ Date: string;
375
+ Month:number
376
+ Day:number
377
+ Year?:number
378
+ JSDate?:Date
379
+ UTCDate?: string
380
+ }
381
+
382
+
383
+ export interface IBookabletime{
384
+ Date: string;
385
+ StartTime: string,
386
+ LabelTime: string
387
+ EndTime: string,
388
+ Timestamp: number,
389
+ JSDateStart?:Date
390
+ JSDateEnd?:Date
391
+ UTCDateStart?: string
392
+ UTCDateEnd?: string
393
+ }
394
+
395
+
396
+
397
+ export interface IBagData {
398
+ coordinates: number[]
399
+ buildyear: number
400
+ streetname: string
401
+ city: string
402
+ surface:number
403
+ }
404
+
405
+ export interface IWssProject{
406
+ id : string
407
+ name : string
408
+ }
409
+ export interface IWssAddress{
410
+ id : string
411
+ postcode : string
412
+ housenumber : number
413
+ extension : string
414
+ projectid : string
415
+ tags : string[]
416
+ }
417
+ export interface IWssTag{
418
+ id : string
419
+
420
+ }
421
+
422
+ export interface IHouseobject{
423
+ deleted ?: boolean
424
+ id ?: string
425
+ sortorder ?: number
426
+ surface ?: number
427
+ measuredatas ?: IMeasuredata[]
428
+ }
429
+
430
+ export interface IAbstractHouseObjectType{
431
+ deleted ?: boolean
432
+ id ?: string
433
+ sortorder ?: number
434
+ }
435
+
436
+ export interface IFloortype extends IAbstractHouseObjectType{
437
+ lambda ?: number
438
+ rcvalue ?: number
439
+ }
440
+
441
+ export interface IRooftype extends IAbstractHouseObjectType{
442
+ }
443
+
444
+ export interface IWalltype extends IAbstractHouseObjectType{
445
+ }
446
+
447
+ export interface ICrawlspace{
448
+ deleted ?: boolean
449
+ id ?: string
450
+ sortorder ?: number
451
+ accessible ?: boolean
452
+ pumpable ?: boolean
453
+ cluttered ?: boolean
454
+ height ?: number
455
+ wet ?: string
456
+
457
+ }
458
+ export interface ICrawlspaceinfloor{
459
+ floorid : ''
460
+ crawlspaceid : ''
461
+ }
462
+
463
+ export interface IFloor extends IHouseobject{
464
+ floortypeid ?: string
465
+ floortype ?: IFloortype
466
+ crawlspaces ?: ICrawlspace[]
467
+ historic ?: boolean
468
+ }
469
+
470
+
471
+ export interface ISide{
472
+ name : string
473
+ deleted : boolean
474
+ id : string
475
+ sortorder : number
476
+ }
477
+
478
+ export interface IWall extends IHouseobject{
479
+ shadowpercentage ?: number
480
+ angle ?: number
481
+ side ?: ISide
482
+ sideid ?: string
483
+ walltypeid ?: string
484
+ walltype ?: IWalltype
485
+ }
486
+
487
+
488
+ export interface IRoof extends IHouseobject{
489
+ shadowpercentage ?: number
490
+ angle ?: number
491
+ rooftypeid ?: string
492
+ rooftype ?: IRooftype
493
+ }
494
+ export interface IWindowframe extends IHouseobject{
495
+ userdataid : string
496
+ userdata ?: IUserdata
497
+ wall ?: IWall
498
+ sideid : string
499
+ side ?: ISide
500
+ wallid : string
501
+ roomid : string
502
+ houselevelid : string
503
+ windowframetypeid : string
504
+ windowframetype ?: IWindowframetype
505
+ width : number
506
+ height : number
507
+ }
508
+
509
+ export interface IWindowframepart extends IHouseobject{
510
+ framewidth ?: number
511
+ frameheight ?: number
512
+ glasswidth ?: number
513
+ glassheight ?: number
514
+ leftcasinglength ?: number
515
+ rightcasinglength ?: number
516
+ bottomstoollength ?: number
517
+ topstoollength ?: number
518
+ shadowpercentage ?: number
519
+
520
+ windowframeparttypeid ?: string
521
+ windowframeid ?: string
522
+ }
523
+
524
+ export interface IWindowframetype extends IAbstractHouseObjectType{
525
+ uvalue ?: number
526
+ }
527
+
528
+ export interface IRule{
529
+ id : string
530
+ energylossid ?: string
531
+ floortypeid ?: string
532
+ glasstypeid ?: string
533
+ roofingid ?: string
534
+ roofshapeid ?: string
535
+ rooftypeid ?: string
536
+ wallfinishid ?: string
537
+ walltypeid ?: string
538
+ windowframeparttypeid ?: string
539
+ packageid ?: string
540
+ rulesetid ?: string
541
+ ruletypeid ?: string
542
+ measuredataid ?: string
543
+ targetMeasureid ?: string
544
+ gasfreeoptionid ?: string
545
+ measuretypeid ?: string
546
+ insulationlocationid ?: string
547
+ insulationmethodid ?: string
548
+ insulationtypeid ?: string
549
+
550
+ field ?: string
551
+ operator ?: string
552
+ value ?: string
552
553
  }
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "@e-trias/woonplan",
3
- "private": false,
4
- "types": "index.d.ts",
5
- "version": "1.0.33",
6
- "main": "index.d.ts",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/e-line-websolutions/woonplan-types.git"
13
- },
14
- "author": "Jasper Denk",
15
- "license": "ISC",
16
- "bugs": {
17
- "url": "https://github.com/e-line-websolutions/woonplan-types/issues"
18
- },
19
- "homepage": "https://github.com/e-line-websolutions/woonplan-types#readme",
20
- "description": "",
21
- "dependencies": {
22
- "@types/uuidv4": "^5.0.0"
23
- }
24
- }
1
+ {
2
+ "name": "@e-trias/woonplan",
3
+ "private": false,
4
+ "types": "index.d.ts",
5
+ "version": "1.0.36",
6
+ "main": "index.d.ts",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/e-line-websolutions/woonplan-types.git"
13
+ },
14
+ "author": "Jasper Denk",
15
+ "license": "ISC",
16
+ "bugs": {
17
+ "url": "https://github.com/e-line-websolutions/woonplan-types/issues"
18
+ },
19
+ "homepage": "https://github.com/e-line-websolutions/woonplan-types#readme",
20
+ "description": "",
21
+ "dependencies": {
22
+ "@types/uuidv4": "^5.0.0"
23
+ }
24
+ }