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