@e-trias/woonplan 1.0.5 → 1.0.8

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,365 +1,368 @@
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
- }
25
- export interface Advice{
26
- id:string | null;
27
- userdataid:string;
28
- status:string;
29
- usage:string
30
- adviceinfo:string
31
- advicedusage:string
32
- userinput:string
33
- advicedinput:string
34
- advicedstates:string
35
- workerresult:string
36
- calculatedmeasures:string
37
- }
38
-
39
- export interface EtriasDBContact{
40
- id:string | null;
41
- email:string;
42
- username:string;
43
- password:string;
44
- securityroleid:string | null;
45
- companyid:string | null;
46
- }
47
-
48
- export interface SecurityRole{
49
- id:string;
50
- name:string;
51
- deleted:boolean;
52
- }
53
-
54
- export interface Article{
55
- id:string;
56
- title:string;
57
- body: string;
58
- }
59
- export interface Logged{
60
- id: string;
61
- name:string;
62
- deleted:boolean;
63
- sortorder:number;
64
- createdate:Date
65
- }
66
-
67
- export interface SignupForm{
68
- salutation:string;
69
- firstname:string;
70
- infix:string;
71
- lastname:string;
72
- postcode:string;
73
- housenumber:number;
74
- extension:string;
75
- phone:string;
76
- mobile:string;
77
- email:string;
78
- password:string;
79
- password_repeat:string;
80
- conditions:boolean;
81
- areaactionid: string;
82
- partnerid: string;
83
- areaactioncollectionid:string;
84
- }
85
-
86
- export interface CIASignupForm extends SignupForm{}
87
- export interface MWASignupForm extends SignupForm{}
88
-
89
- export interface SignupFormResponse{
90
- status: string;
91
- statuscode: number;
92
- title?: string;
93
- contact?:Contact;
94
- }
95
- export interface CIASignupFormResponse extends SignupFormResponse{}
96
- export interface MWASignupFormResponse extends SignupFormResponse{}
97
-
98
- export interface Userdata{
99
- id:string;
100
- sourceid:string | null
101
- contactid:string
102
- maxpanels?:number
103
- openstairs?:boolean
104
- openkitchen?:boolean
105
- floorheating?:boolean
106
- occupants?:number
107
- showerprofile?:number
108
- cookingprofile?:number
109
- draftprofile?:number
110
- maxinvestment?:number
111
- cooksongas?:boolean
112
- source?:string
113
- buildyear?:number
114
- surface?:number
115
- }
116
-
117
- export interface Solarapicall{
118
- id:string
119
- deleted:boolean
120
- name?:string
121
- sortorder?:number
122
- energyconsumption:number | null
123
- max:boolean
124
- panels:number
125
- yield:number
126
- postcode:string
127
- housenumber:number
128
- extension:string | null
129
- result:string
130
- }
131
-
132
- export interface Quotation{
133
- id:string
134
- expiredate:Date
135
- contractorid:string
136
- adviceid:string
137
- measuredataid?:string
138
- quotationrequestid:string
139
- investment?:number
140
- status?:string
141
- accepteddate?:Date
142
- rejectdate?:Date
143
- rejectreason?:string
144
- }
145
-
146
- export interface QuotationFile{
147
- id:string
148
- originalfilename:string
149
- quotationid?:string
150
- quotationrequestid?:string
151
- folder?:string
152
- bucket?:string
153
- }
154
-
155
- export interface QuotationRequest{
156
- id:string
157
- measureid:string
158
- measuredataid?:string
159
- contractorid?:string
160
- adviceid:string
161
- status:string
162
- data:JSON | null
163
- files?:QuotationFile[]
164
- }
165
-
166
- export interface Collectivebuy{
167
- id:string
168
- expiredate:Date
169
- partnerid:string
170
- }
171
-
172
- export interface Measuredata{
173
- id:string
174
- name:string
175
- deleted:boolean
176
- sortorder?:number
177
- active?:boolean
178
- displayname?:string
179
- price_m2?:number
180
- price_m?:number
181
- price_per_object?:number
182
- startamount?:number
183
- rcvalue?:number
184
- investment?:number
185
- collectivebuyid?:string
186
- contractorid?:string
187
- measureid?:string
188
- requiressurvey?:boolean
189
- collectivebuystatus?:"now" | "future" | "never"
190
- }
191
-
192
- export interface Measuredatainterestedcontact{
193
- measuredataid:string
194
- contactid:string
195
- }
196
-
197
- export interface Text{
198
- id:string
199
- title: string
200
- body: string
201
- localeid:string
202
- partnerid:string
203
- }
204
-
205
- export interface Content{
206
- id:string
207
- fullyqualifiedaction : string
208
- subtitle?: string
209
- excerpt?: string
210
- searchbox?: string
211
- actionsbox?: string
212
- htmltitle?: string
213
- htmlkeywords?: string
214
- htmldescription?: string
215
- parentid?: string
216
- areaactionid?: string
217
- }
218
-
219
- export interface Measuretext{
220
- id:string
221
- measureid?:string
222
- measuredataid?:string
223
- excerpt?:string
224
- }
225
-
226
- export interface QuotationRequestForm{
227
- measuredataid : string
228
- measureid : string
229
- contractorid : string
230
- }
231
-
232
- export interface IAppointment {
233
- id: string
234
- status?: string
235
- start?: Date
236
- end?: Date
237
- userdataid?: string
238
- surveyorid?: string
239
- needspayment?: true | false
240
- price? : number
241
- name?: string
242
- }
243
-
244
- export interface ICreateAppointmentParams{
245
- appointmentId: string
246
- agendaId: string
247
- appointmentTypeId: string
248
- start: Date
249
- end: Date
250
- userdataId : string
251
- customerId : string
252
- }
253
-
254
- export interface IAppointmentFormParams{
255
- agendaId: number
256
- appointmentTypeId: number
257
- startDate: string
258
- endDate: string
259
- measuredataids : string[]
260
- }
261
-
262
- export interface ISettings{
263
- onlineAfsprakenAgendaId ?: number
264
- onlineAfsprakenActive ?: number
265
- onlineAfsprakenAppointmentTypeId ?: number
266
- mollie : {
267
- apiKey : string
268
- }
269
- "ga-code" ?: string
270
- }
271
-
272
- export interface IPrice {
273
- currency: string
274
- value: number
275
- }
276
-
277
- export interface IPSPStatusUpdate {
278
- mollieid: string
279
- }
280
-
281
- export interface IPayment {
282
- id: string
283
- amount: number
284
- description: string
285
- // createdAt & updatedAt in ISO 8601 format
286
- createdAt: string
287
- updatedAt: string
288
- appointmentid?: string
289
- status : string
290
- mollieid: string
291
- checkoutUrl?: string
292
- }
293
-
294
- export interface IOnlineAfsprakenSettings{
295
- apiKey: string
296
- apiSecret: string
297
- appointmentTypeId: number
298
- agendaId: number
299
- }
300
-
301
-
302
- export interface IGetBookableDaysParams {
303
- userdataid: string,
304
- ResourceId?: string,
305
- StartDate: string // YYYY-MM-DD
306
- EndDate: string // YYYY-MM-DD
307
- settings?:IOnlineAfsprakenSettings
308
- }
309
-
310
- export interface IGetBookableTimesParams {
311
- Date: string // YYYY-MM-DD
312
- userdataid: string,
313
- ResourceId?: string,
314
- EndDate?: string // YYYY-MM-DD
315
- settings?:IOnlineAfsprakenSettings
316
- }
317
-
318
- export interface IBookableday{
319
- Date: string;
320
- Month:number
321
- Day:number
322
- Year?:number
323
- JSDate?:Date
324
- UTCDate?: string
325
- }
326
-
327
-
328
- export interface IBookabletime{
329
- Date: string;
330
- StartTime: string,
331
- LabelTime: string
332
- EndTime: string,
333
- Timestamp: number,
334
- JSDateStart?:Date
335
- JSDateEnd?:Date
336
- UTCDateStart?: string
337
- UTCDateEnd?: string
338
- }
339
-
340
-
341
-
342
- export interface IBagData {
343
- coordinates: number[]
344
- buildyear: number
345
- streetname: string
346
- city: string
347
- surface:number
348
- }
349
-
350
- export interface IWssProject{
351
- id : string
352
- name : string
353
- }
354
- export interface IWssAddress{
355
- id : string
356
- postcode : string
357
- housenumber : number
358
- extension : string
359
- projectid : string
360
- tags : string[]
361
- }
362
- export interface IWssTag{
363
- id : string
364
-
365
- }
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
+ }
194
+
195
+ export interface Measuredatainterestedcontact{
196
+ measuredataid:string
197
+ contactid:string
198
+ }
199
+
200
+ export interface Text{
201
+ id:string
202
+ title: string
203
+ body: string
204
+ localeid:string
205
+ partnerid:string
206
+ }
207
+
208
+ export interface Content{
209
+ id:string
210
+ fullyqualifiedaction : string
211
+ subtitle?: string
212
+ excerpt?: string
213
+ searchbox?: string
214
+ actionsbox?: string
215
+ htmltitle?: string
216
+ htmlkeywords?: string
217
+ htmldescription?: string
218
+ parentid?: string
219
+ areaactionid?: string
220
+ }
221
+
222
+ export interface Measuretext{
223
+ id:string
224
+ measureid?:string
225
+ measuredataid?:string
226
+ excerpt?:string
227
+ }
228
+
229
+ export interface QuotationRequestForm{
230
+ measuredataid : string
231
+ measureid : string
232
+ contractorid : string
233
+ }
234
+
235
+ export interface IAppointment {
236
+ id: string
237
+ status?: string
238
+ start?: Date
239
+ end?: Date
240
+ userdataid?: string
241
+ surveyorid?: string
242
+ needspayment?: true | false
243
+ price? : number
244
+ name?: string
245
+ }
246
+
247
+ export interface ICreateAppointmentParams{
248
+ appointmentId: string
249
+ agendaId: string
250
+ appointmentTypeId: string
251
+ start: Date
252
+ end: Date
253
+ userdataId : string
254
+ customerId : string
255
+ }
256
+
257
+ export interface IAppointmentFormParams{
258
+ agendaId: number
259
+ appointmentTypeId: number
260
+ startDate: string
261
+ endDate: string
262
+ measuredataids : string[]
263
+ }
264
+
265
+ export interface ISettings{
266
+ onlineAfsprakenAgendaId ?: number
267
+ onlineAfsprakenActive ?: number
268
+ onlineAfsprakenAppointmentTypeId ?: number
269
+ mollie : {
270
+ apiKey : string
271
+ }
272
+ "ga-code" ?: string
273
+ }
274
+
275
+ export interface IPrice {
276
+ currency: string
277
+ value: number
278
+ }
279
+
280
+ export interface IPSPStatusUpdate {
281
+ mollieid: string
282
+ }
283
+
284
+ export interface IPayment {
285
+ id: string
286
+ amount: number
287
+ description: string
288
+ // createdAt & updatedAt in ISO 8601 format
289
+ createdAt: string
290
+ updatedAt: string
291
+ appointmentid?: string
292
+ status : string
293
+ mollieid: string
294
+ checkoutUrl?: string
295
+ }
296
+
297
+ export interface IOnlineAfsprakenSettings{
298
+ apiKey: string
299
+ apiSecret: string
300
+ appointmentTypeId: number
301
+ agendaId: number
302
+ }
303
+
304
+
305
+ export interface IGetBookableDaysParams {
306
+ userdataid: string,
307
+ ResourceId?: string,
308
+ StartDate: string // YYYY-MM-DD
309
+ EndDate: string // YYYY-MM-DD
310
+ settings?:IOnlineAfsprakenSettings
311
+ }
312
+
313
+ export interface IGetBookableTimesParams {
314
+ Date: string // YYYY-MM-DD
315
+ userdataid: string,
316
+ ResourceId?: string,
317
+ EndDate?: string // YYYY-MM-DD
318
+ settings?:IOnlineAfsprakenSettings
319
+ }
320
+
321
+ export interface IBookableday{
322
+ Date: string;
323
+ Month:number
324
+ Day:number
325
+ Year?:number
326
+ JSDate?:Date
327
+ UTCDate?: string
328
+ }
329
+
330
+
331
+ export interface IBookabletime{
332
+ Date: string;
333
+ StartTime: string,
334
+ LabelTime: string
335
+ EndTime: string,
336
+ Timestamp: number,
337
+ JSDateStart?:Date
338
+ JSDateEnd?:Date
339
+ UTCDateStart?: string
340
+ UTCDateEnd?: string
341
+ }
342
+
343
+
344
+
345
+ export interface IBagData {
346
+ coordinates: number[]
347
+ buildyear: number
348
+ streetname: string
349
+ city: string
350
+ surface:number
351
+ }
352
+
353
+ export interface IWssProject{
354
+ id : string
355
+ name : string
356
+ }
357
+ export interface IWssAddress{
358
+ id : string
359
+ postcode : string
360
+ housenumber : number
361
+ extension : string
362
+ projectid : string
363
+ tags : string[]
364
+ }
365
+ export interface IWssTag{
366
+ id : string
367
+
368
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@e-trias/woonplan",
3
3
  "private": false,
4
4
  "types": "index.d.ts",
5
- "version": "1.0.5",
5
+ "version": "1.0.8",
6
6
  "main": "index.d.ts",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1"