@e-trias/woonplan 0.0.86 → 0.0.90

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