@e-trias/woonplan 1.0.15 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +23 -23
- package/index.d.ts +452 -430
- package/package.json +24 -24
|
@@ -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,431 +1,453 @@
|
|
|
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 Logged{
|
|
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 Userdata{
|
|
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
|
-
|
|
120
|
-
export interface Solarapicall{
|
|
121
|
-
id:string
|
|
122
|
-
deleted:boolean
|
|
123
|
-
name?:string
|
|
124
|
-
sortorder?:number
|
|
125
|
-
energyconsumption:number | null
|
|
126
|
-
max:boolean
|
|
127
|
-
panels:number
|
|
128
|
-
yield:number
|
|
129
|
-
postcode:string
|
|
130
|
-
housenumber:number
|
|
131
|
-
extension:string | null
|
|
132
|
-
result:string
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface Quotation{
|
|
136
|
-
id:string
|
|
137
|
-
expiredate:Date
|
|
138
|
-
contractorid:string
|
|
139
|
-
adviceid:string
|
|
140
|
-
measuredataid?:string
|
|
141
|
-
quotationrequestid:string
|
|
142
|
-
investment?:number
|
|
143
|
-
status?:string
|
|
144
|
-
accepteddate?:Date
|
|
145
|
-
rejectdate?:Date
|
|
146
|
-
rejectreason?:string
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export interface QuotationFile{
|
|
150
|
-
id:string
|
|
151
|
-
originalfilename:string
|
|
152
|
-
quotationid?:string
|
|
153
|
-
quotationrequestid?:string
|
|
154
|
-
folder?:string
|
|
155
|
-
bucket?:string
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface QuotationRequest{
|
|
159
|
-
id:string
|
|
160
|
-
measureid:string
|
|
161
|
-
measuredataid?:string
|
|
162
|
-
contractorid?:string
|
|
163
|
-
adviceid:string
|
|
164
|
-
status:string
|
|
165
|
-
data:JSON | null
|
|
166
|
-
files?:QuotationFile[]
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export interface Collectivebuy{
|
|
170
|
-
id:string
|
|
171
|
-
expiredate:Date
|
|
172
|
-
partnerid:string
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export interface Measuredata{
|
|
176
|
-
id:string
|
|
177
|
-
name:string
|
|
178
|
-
deleted:boolean
|
|
179
|
-
sortorder?:number
|
|
180
|
-
active?:boolean
|
|
181
|
-
displayname?:string
|
|
182
|
-
price_m2?:number
|
|
183
|
-
price_m?:number
|
|
184
|
-
price_per_object?:number
|
|
185
|
-
startamount?:number
|
|
186
|
-
rcvalue?:number
|
|
187
|
-
investment?:number
|
|
188
|
-
collectivebuyid?:string
|
|
189
|
-
contractorid?:string
|
|
190
|
-
measureid?:string
|
|
191
|
-
requiressurvey?:boolean
|
|
192
|
-
collectivebuystatus?:"now" | "future" | "never"
|
|
193
|
-
collectivebuyquotationpossible?:boolean
|
|
194
|
-
g_value ?: number
|
|
195
|
-
u_value ?: number
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface Measuredatainterestedcontact{
|
|
199
|
-
measuredataid:string
|
|
200
|
-
contactid:string
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface Text{
|
|
204
|
-
id:string
|
|
205
|
-
title: string
|
|
206
|
-
body: string
|
|
207
|
-
localeid:string
|
|
208
|
-
partnerid:string
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export interface Content{
|
|
212
|
-
id:string
|
|
213
|
-
fullyqualifiedaction : string
|
|
214
|
-
subtitle?: string
|
|
215
|
-
excerpt?: string
|
|
216
|
-
searchbox?: string
|
|
217
|
-
actionsbox?: string
|
|
218
|
-
htmltitle?: string
|
|
219
|
-
htmlkeywords?: string
|
|
220
|
-
htmldescription?: string
|
|
221
|
-
parentid?: string
|
|
222
|
-
areaactionid?: string
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface Measuretext{
|
|
226
|
-
id:string
|
|
227
|
-
measureid?:string
|
|
228
|
-
measuredataid?:string
|
|
229
|
-
excerpt?:string
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export interface QuotationRequestForm{
|
|
233
|
-
measuredataid : string
|
|
234
|
-
measureid : string
|
|
235
|
-
contractorid : string
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface IAppointment {
|
|
239
|
-
id: string
|
|
240
|
-
status?: string
|
|
241
|
-
start?: Date
|
|
242
|
-
end?: Date
|
|
243
|
-
userdataid?: string
|
|
244
|
-
surveyorid?: string
|
|
245
|
-
needspayment?: true | false
|
|
246
|
-
price? : number
|
|
247
|
-
name?: string
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export interface ICreateAppointmentParams{
|
|
251
|
-
appointmentId: string
|
|
252
|
-
agendaId: string
|
|
253
|
-
appointmentTypeId: string
|
|
254
|
-
start: Date
|
|
255
|
-
end: Date
|
|
256
|
-
userdataId : string
|
|
257
|
-
customerId : string
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export interface IAppointmentFormParams{
|
|
261
|
-
agendaId: number
|
|
262
|
-
appointmentTypeId: number
|
|
263
|
-
startDate: string
|
|
264
|
-
endDate: string
|
|
265
|
-
measuredataids : string[]
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export interface ISettings{
|
|
269
|
-
onlineAfsprakenAgendaId ?: number
|
|
270
|
-
onlineAfsprakenActive ?: number
|
|
271
|
-
onlineAfsprakenAppointmentTypeId ?: number
|
|
272
|
-
cava ?: ICavaSettings
|
|
273
|
-
perfectview ?: IPerfectviewSettings
|
|
274
|
-
mollie : {
|
|
275
|
-
apiKey : string
|
|
276
|
-
}
|
|
277
|
-
"ga-code" ?: string
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
export interface ICavaSettings {
|
|
281
|
-
pvMark ?: string
|
|
282
|
-
pvMarkCategory ?: string
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export interface IPerfectviewSettings {
|
|
286
|
-
ApiKey ?: string
|
|
287
|
-
UserId ?: string
|
|
288
|
-
DatabaseId ?: string
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export interface IPrice {
|
|
292
|
-
currency: string
|
|
293
|
-
value: number
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export interface IPSPStatusUpdate {
|
|
297
|
-
mollieid: string
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export interface IPayment {
|
|
301
|
-
id: string
|
|
302
|
-
amount: number
|
|
303
|
-
description: string
|
|
304
|
-
// createdAt & updatedAt in ISO 8601 format
|
|
305
|
-
createdAt: string
|
|
306
|
-
updatedAt: string
|
|
307
|
-
appointmentid?: string
|
|
308
|
-
status : string
|
|
309
|
-
mollieid: string
|
|
310
|
-
checkoutUrl?: string
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
export interface IOnlineAfsprakenSettings{
|
|
314
|
-
apiKey: string
|
|
315
|
-
apiSecret: string
|
|
316
|
-
appointmentTypeId: number
|
|
317
|
-
agendaId: number
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
export interface IGetBookableDaysParams {
|
|
322
|
-
userdataid: string,
|
|
323
|
-
ResourceId?: string,
|
|
324
|
-
StartDate: string // YYYY-MM-DD
|
|
325
|
-
EndDate: string // YYYY-MM-DD
|
|
326
|
-
settings?:IOnlineAfsprakenSettings
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export interface IGetBookableTimesParams {
|
|
330
|
-
Date: string // YYYY-MM-DD
|
|
331
|
-
userdataid: string,
|
|
332
|
-
ResourceId?: string,
|
|
333
|
-
EndDate?: string // YYYY-MM-DD
|
|
334
|
-
settings?:IOnlineAfsprakenSettings
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
export interface IBookableday{
|
|
338
|
-
Date: string;
|
|
339
|
-
Month:number
|
|
340
|
-
Day:number
|
|
341
|
-
Year?:number
|
|
342
|
-
JSDate?:Date
|
|
343
|
-
UTCDate?: string
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
export interface IBookabletime{
|
|
348
|
-
Date: string;
|
|
349
|
-
StartTime: string,
|
|
350
|
-
LabelTime: string
|
|
351
|
-
EndTime: string,
|
|
352
|
-
Timestamp: number,
|
|
353
|
-
JSDateStart?:Date
|
|
354
|
-
JSDateEnd?:Date
|
|
355
|
-
UTCDateStart?: string
|
|
356
|
-
UTCDateEnd?: string
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
export interface IBagData {
|
|
362
|
-
coordinates: number[]
|
|
363
|
-
buildyear: number
|
|
364
|
-
streetname: string
|
|
365
|
-
city: string
|
|
366
|
-
surface:number
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
export interface IWssProject{
|
|
370
|
-
id : string
|
|
371
|
-
name : string
|
|
372
|
-
}
|
|
373
|
-
export interface IWssAddress{
|
|
374
|
-
id : string
|
|
375
|
-
postcode : string
|
|
376
|
-
housenumber : number
|
|
377
|
-
extension : string
|
|
378
|
-
projectid : string
|
|
379
|
-
tags : string[]
|
|
380
|
-
}
|
|
381
|
-
export interface IWssTag{
|
|
382
|
-
id : string
|
|
383
|
-
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
export interface IHouseobject{
|
|
387
|
-
deleted : boolean
|
|
388
|
-
id : string
|
|
389
|
-
sortorder : number
|
|
390
|
-
surface ?: number
|
|
391
|
-
measuredatas ?: Measuredata[]
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export interface IFloor extends IHouseobject{
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
export interface
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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 Logged{
|
|
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 Userdata{
|
|
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
|
+
|
|
120
|
+
export interface Solarapicall{
|
|
121
|
+
id:string
|
|
122
|
+
deleted:boolean
|
|
123
|
+
name?:string
|
|
124
|
+
sortorder?:number
|
|
125
|
+
energyconsumption:number | null
|
|
126
|
+
max:boolean
|
|
127
|
+
panels:number
|
|
128
|
+
yield:number
|
|
129
|
+
postcode:string
|
|
130
|
+
housenumber:number
|
|
131
|
+
extension:string | null
|
|
132
|
+
result:string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface Quotation{
|
|
136
|
+
id:string
|
|
137
|
+
expiredate:Date
|
|
138
|
+
contractorid:string
|
|
139
|
+
adviceid:string
|
|
140
|
+
measuredataid?:string
|
|
141
|
+
quotationrequestid:string
|
|
142
|
+
investment?:number
|
|
143
|
+
status?:string
|
|
144
|
+
accepteddate?:Date
|
|
145
|
+
rejectdate?:Date
|
|
146
|
+
rejectreason?:string
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface QuotationFile{
|
|
150
|
+
id:string
|
|
151
|
+
originalfilename:string
|
|
152
|
+
quotationid?:string
|
|
153
|
+
quotationrequestid?:string
|
|
154
|
+
folder?:string
|
|
155
|
+
bucket?:string
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface QuotationRequest{
|
|
159
|
+
id:string
|
|
160
|
+
measureid:string
|
|
161
|
+
measuredataid?:string
|
|
162
|
+
contractorid?:string
|
|
163
|
+
adviceid:string
|
|
164
|
+
status:string
|
|
165
|
+
data:JSON | null
|
|
166
|
+
files?:QuotationFile[]
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface Collectivebuy{
|
|
170
|
+
id:string
|
|
171
|
+
expiredate:Date
|
|
172
|
+
partnerid:string
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface Measuredata{
|
|
176
|
+
id:string
|
|
177
|
+
name:string
|
|
178
|
+
deleted:boolean
|
|
179
|
+
sortorder?:number
|
|
180
|
+
active?:boolean
|
|
181
|
+
displayname?:string
|
|
182
|
+
price_m2?:number
|
|
183
|
+
price_m?:number
|
|
184
|
+
price_per_object?:number
|
|
185
|
+
startamount?:number
|
|
186
|
+
rcvalue?:number
|
|
187
|
+
investment?:number
|
|
188
|
+
collectivebuyid?:string
|
|
189
|
+
contractorid?:string
|
|
190
|
+
measureid?:string
|
|
191
|
+
requiressurvey?:boolean
|
|
192
|
+
collectivebuystatus?:"now" | "future" | "never"
|
|
193
|
+
collectivebuyquotationpossible?:boolean
|
|
194
|
+
g_value ?: number
|
|
195
|
+
u_value ?: number
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface Measuredatainterestedcontact{
|
|
199
|
+
measuredataid:string
|
|
200
|
+
contactid:string
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface Text{
|
|
204
|
+
id:string
|
|
205
|
+
title: string
|
|
206
|
+
body: string
|
|
207
|
+
localeid:string
|
|
208
|
+
partnerid:string
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface Content{
|
|
212
|
+
id:string
|
|
213
|
+
fullyqualifiedaction : string
|
|
214
|
+
subtitle?: string
|
|
215
|
+
excerpt?: string
|
|
216
|
+
searchbox?: string
|
|
217
|
+
actionsbox?: string
|
|
218
|
+
htmltitle?: string
|
|
219
|
+
htmlkeywords?: string
|
|
220
|
+
htmldescription?: string
|
|
221
|
+
parentid?: string
|
|
222
|
+
areaactionid?: string
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface Measuretext{
|
|
226
|
+
id:string
|
|
227
|
+
measureid?:string
|
|
228
|
+
measuredataid?:string
|
|
229
|
+
excerpt?:string
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface QuotationRequestForm{
|
|
233
|
+
measuredataid : string
|
|
234
|
+
measureid : string
|
|
235
|
+
contractorid : string
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface IAppointment {
|
|
239
|
+
id: string
|
|
240
|
+
status?: string
|
|
241
|
+
start?: Date
|
|
242
|
+
end?: Date
|
|
243
|
+
userdataid?: string
|
|
244
|
+
surveyorid?: string
|
|
245
|
+
needspayment?: true | false
|
|
246
|
+
price? : number
|
|
247
|
+
name?: string
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface ICreateAppointmentParams{
|
|
251
|
+
appointmentId: string
|
|
252
|
+
agendaId: string
|
|
253
|
+
appointmentTypeId: string
|
|
254
|
+
start: Date
|
|
255
|
+
end: Date
|
|
256
|
+
userdataId : string
|
|
257
|
+
customerId : string
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface IAppointmentFormParams{
|
|
261
|
+
agendaId: number
|
|
262
|
+
appointmentTypeId: number
|
|
263
|
+
startDate: string
|
|
264
|
+
endDate: string
|
|
265
|
+
measuredataids : string[]
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface ISettings{
|
|
269
|
+
onlineAfsprakenAgendaId ?: number
|
|
270
|
+
onlineAfsprakenActive ?: number
|
|
271
|
+
onlineAfsprakenAppointmentTypeId ?: number
|
|
272
|
+
cava ?: ICavaSettings
|
|
273
|
+
perfectview ?: IPerfectviewSettings
|
|
274
|
+
mollie : {
|
|
275
|
+
apiKey : string
|
|
276
|
+
}
|
|
277
|
+
"ga-code" ?: string
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export interface ICavaSettings {
|
|
281
|
+
pvMark ?: string
|
|
282
|
+
pvMarkCategory ?: string
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface IPerfectviewSettings {
|
|
286
|
+
ApiKey ?: string
|
|
287
|
+
UserId ?: string
|
|
288
|
+
DatabaseId ?: string
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface IPrice {
|
|
292
|
+
currency: string
|
|
293
|
+
value: number
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface IPSPStatusUpdate {
|
|
297
|
+
mollieid: string
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export interface IPayment {
|
|
301
|
+
id: string
|
|
302
|
+
amount: number
|
|
303
|
+
description: string
|
|
304
|
+
// createdAt & updatedAt in ISO 8601 format
|
|
305
|
+
createdAt: string
|
|
306
|
+
updatedAt: string
|
|
307
|
+
appointmentid?: string
|
|
308
|
+
status : string
|
|
309
|
+
mollieid: string
|
|
310
|
+
checkoutUrl?: string
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface IOnlineAfsprakenSettings{
|
|
314
|
+
apiKey: string
|
|
315
|
+
apiSecret: string
|
|
316
|
+
appointmentTypeId: number
|
|
317
|
+
agendaId: number
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
export interface IGetBookableDaysParams {
|
|
322
|
+
userdataid: string,
|
|
323
|
+
ResourceId?: string,
|
|
324
|
+
StartDate: string // YYYY-MM-DD
|
|
325
|
+
EndDate: string // YYYY-MM-DD
|
|
326
|
+
settings?:IOnlineAfsprakenSettings
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export interface IGetBookableTimesParams {
|
|
330
|
+
Date: string // YYYY-MM-DD
|
|
331
|
+
userdataid: string,
|
|
332
|
+
ResourceId?: string,
|
|
333
|
+
EndDate?: string // YYYY-MM-DD
|
|
334
|
+
settings?:IOnlineAfsprakenSettings
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export interface IBookableday{
|
|
338
|
+
Date: string;
|
|
339
|
+
Month:number
|
|
340
|
+
Day:number
|
|
341
|
+
Year?:number
|
|
342
|
+
JSDate?:Date
|
|
343
|
+
UTCDate?: string
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
export interface IBookabletime{
|
|
348
|
+
Date: string;
|
|
349
|
+
StartTime: string,
|
|
350
|
+
LabelTime: string
|
|
351
|
+
EndTime: string,
|
|
352
|
+
Timestamp: number,
|
|
353
|
+
JSDateStart?:Date
|
|
354
|
+
JSDateEnd?:Date
|
|
355
|
+
UTCDateStart?: string
|
|
356
|
+
UTCDateEnd?: string
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
export interface IBagData {
|
|
362
|
+
coordinates: number[]
|
|
363
|
+
buildyear: number
|
|
364
|
+
streetname: string
|
|
365
|
+
city: string
|
|
366
|
+
surface:number
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface IWssProject{
|
|
370
|
+
id : string
|
|
371
|
+
name : string
|
|
372
|
+
}
|
|
373
|
+
export interface IWssAddress{
|
|
374
|
+
id : string
|
|
375
|
+
postcode : string
|
|
376
|
+
housenumber : number
|
|
377
|
+
extension : string
|
|
378
|
+
projectid : string
|
|
379
|
+
tags : string[]
|
|
380
|
+
}
|
|
381
|
+
export interface IWssTag{
|
|
382
|
+
id : string
|
|
383
|
+
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export interface IHouseobject{
|
|
387
|
+
deleted : boolean
|
|
388
|
+
id : string
|
|
389
|
+
sortorder : number
|
|
390
|
+
surface ?: number
|
|
391
|
+
measuredatas ?: Measuredata[]
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export interface IFloor extends IHouseobject{
|
|
395
|
+
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
export interface ISide{
|
|
400
|
+
name : string
|
|
401
|
+
deleted : boolean
|
|
402
|
+
id : string
|
|
403
|
+
sortorder : number
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export interface IWall extends IHouseobject{
|
|
407
|
+
shadowpercentage ?: number
|
|
408
|
+
angle ?: number
|
|
409
|
+
side ?: ISide
|
|
410
|
+
sideid ?: string
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
export interface IRoof extends IHouseobject{
|
|
415
|
+
shadowpercentage ?: number
|
|
416
|
+
angle ?: number
|
|
417
|
+
}
|
|
418
|
+
export interface IWindowframe extends IHouseobject{
|
|
419
|
+
userdataid : string
|
|
420
|
+
userdata ?: Userdata
|
|
421
|
+
wall ?: IWall
|
|
422
|
+
sideid : string
|
|
423
|
+
side ?: ISide
|
|
424
|
+
wallid : string
|
|
425
|
+
roomid : string
|
|
426
|
+
houselevelid : string
|
|
427
|
+
windowframetype : string
|
|
428
|
+
width : string
|
|
429
|
+
height : string
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export interface IWindowframepart extends IHouseobject{
|
|
433
|
+
framewidth ?: number
|
|
434
|
+
frameheight ?: number
|
|
435
|
+
glasswidth ?: number
|
|
436
|
+
glassheight ?: number
|
|
437
|
+
leftcasinglength ?: number
|
|
438
|
+
rightcasinglength ?: number
|
|
439
|
+
bottomstoollength ?: number
|
|
440
|
+
topstoollength ?: number
|
|
441
|
+
shadowpercentage ?: number
|
|
442
|
+
|
|
443
|
+
windowframeparttypeid ?: string
|
|
444
|
+
windowframeid ?: string
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export interface IWindowframetype{
|
|
448
|
+
id : string
|
|
449
|
+
name : string
|
|
450
|
+
deleted : boolean
|
|
451
|
+
sortorder : number
|
|
452
|
+
uvalue ?: number
|
|
431
453
|
}
|
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.
|
|
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.18",
|
|
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
|
+
}
|