@e-trias/woonplan 1.0.8 → 1.0.9

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,368 +1,369 @@
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
- }
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
+ }
195
+
196
+ export interface Measuredatainterestedcontact{
197
+ measuredataid:string
198
+ contactid:string
199
+ }
200
+
201
+ export interface Text{
202
+ id:string
203
+ title: string
204
+ body: string
205
+ localeid:string
206
+ partnerid:string
207
+ }
208
+
209
+ export interface Content{
210
+ id:string
211
+ fullyqualifiedaction : string
212
+ subtitle?: string
213
+ excerpt?: string
214
+ searchbox?: string
215
+ actionsbox?: string
216
+ htmltitle?: string
217
+ htmlkeywords?: string
218
+ htmldescription?: string
219
+ parentid?: string
220
+ areaactionid?: string
221
+ }
222
+
223
+ export interface Measuretext{
224
+ id:string
225
+ measureid?:string
226
+ measuredataid?:string
227
+ excerpt?:string
228
+ }
229
+
230
+ export interface QuotationRequestForm{
231
+ measuredataid : string
232
+ measureid : string
233
+ contractorid : string
234
+ }
235
+
236
+ export interface IAppointment {
237
+ id: string
238
+ status?: string
239
+ start?: Date
240
+ end?: Date
241
+ userdataid?: string
242
+ surveyorid?: string
243
+ needspayment?: true | false
244
+ price? : number
245
+ name?: string
246
+ }
247
+
248
+ export interface ICreateAppointmentParams{
249
+ appointmentId: string
250
+ agendaId: string
251
+ appointmentTypeId: string
252
+ start: Date
253
+ end: Date
254
+ userdataId : string
255
+ customerId : string
256
+ }
257
+
258
+ export interface IAppointmentFormParams{
259
+ agendaId: number
260
+ appointmentTypeId: number
261
+ startDate: string
262
+ endDate: string
263
+ measuredataids : string[]
264
+ }
265
+
266
+ export interface ISettings{
267
+ onlineAfsprakenAgendaId ?: number
268
+ onlineAfsprakenActive ?: number
269
+ onlineAfsprakenAppointmentTypeId ?: number
270
+ mollie : {
271
+ apiKey : string
272
+ }
273
+ "ga-code" ?: string
274
+ }
275
+
276
+ export interface IPrice {
277
+ currency: string
278
+ value: number
279
+ }
280
+
281
+ export interface IPSPStatusUpdate {
282
+ mollieid: string
283
+ }
284
+
285
+ export interface IPayment {
286
+ id: string
287
+ amount: number
288
+ description: string
289
+ // createdAt & updatedAt in ISO 8601 format
290
+ createdAt: string
291
+ updatedAt: string
292
+ appointmentid?: string
293
+ status : string
294
+ mollieid: string
295
+ checkoutUrl?: string
296
+ }
297
+
298
+ export interface IOnlineAfsprakenSettings{
299
+ apiKey: string
300
+ apiSecret: string
301
+ appointmentTypeId: number
302
+ agendaId: number
303
+ }
304
+
305
+
306
+ export interface IGetBookableDaysParams {
307
+ userdataid: string,
308
+ ResourceId?: string,
309
+ StartDate: string // YYYY-MM-DD
310
+ EndDate: string // YYYY-MM-DD
311
+ settings?:IOnlineAfsprakenSettings
312
+ }
313
+
314
+ export interface IGetBookableTimesParams {
315
+ Date: string // YYYY-MM-DD
316
+ userdataid: string,
317
+ ResourceId?: string,
318
+ EndDate?: string // YYYY-MM-DD
319
+ settings?:IOnlineAfsprakenSettings
320
+ }
321
+
322
+ export interface IBookableday{
323
+ Date: string;
324
+ Month:number
325
+ Day:number
326
+ Year?:number
327
+ JSDate?:Date
328
+ UTCDate?: string
329
+ }
330
+
331
+
332
+ export interface IBookabletime{
333
+ Date: string;
334
+ StartTime: string,
335
+ LabelTime: string
336
+ EndTime: string,
337
+ Timestamp: number,
338
+ JSDateStart?:Date
339
+ JSDateEnd?:Date
340
+ UTCDateStart?: string
341
+ UTCDateEnd?: string
342
+ }
343
+
344
+
345
+
346
+ export interface IBagData {
347
+ coordinates: number[]
348
+ buildyear: number
349
+ streetname: string
350
+ city: string
351
+ surface:number
352
+ }
353
+
354
+ export interface IWssProject{
355
+ id : string
356
+ name : string
357
+ }
358
+ export interface IWssAddress{
359
+ id : string
360
+ postcode : string
361
+ housenumber : number
362
+ extension : string
363
+ projectid : string
364
+ tags : string[]
365
+ }
366
+ export interface IWssTag{
367
+ id : string
368
+
369
+ }
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.8",
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.9",
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
+ }