@e-trias/woonplan 0.0.82 → 0.0.86

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.
@@ -0,0 +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}}
package/index.d.ts CHANGED
@@ -1,317 +1,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?:unknown
21
- street?:unknown
22
- city?:unknown
23
- buildyear?:unknown
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
- }
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
- startDate : Date
217
- endDate : Date
218
- startTime : string
219
- endTime : string
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
- startDate: Date
230
- endDate: Date
231
- startTime : string
232
- endTime : string
233
- userdataId : string
234
- customerId : string
235
- }
236
-
237
- export interface IAppointmentFormParams{
238
- agendaId: number
239
- appointmentTypeId: number
240
- startDate: Date
241
- endDate: Date
242
- startTime : string
243
- endTime : string
244
- measuredataids : string[]
245
- }
246
-
247
- export interface ISettings{
248
- onlineAfsprakenAgendaId ?: number
249
- onlineAfsprakenActive ?: number
250
- onlineAfsprakenAppointmentTypeId ?: number
251
- mollie : {
252
- apiKey : string
253
- }
254
- }
255
-
256
- export interface IPrice {
257
- currency: string
258
- value: number
259
- }
260
-
261
- export interface IPSPStatusUpdate {
262
- mollieid: string
263
- }
264
-
265
- export interface IPayment {
266
- id: string
267
- amount: number
268
- description: string
269
- // createdAt & updatedAt in ISO 8601 format
270
- createdAt: string
271
- updatedAt: string
272
- appointmentid?: string
273
- status : string
274
- mollieid: string
275
- checkoutUrl?: string
276
- }
277
-
278
- export interface IOnlineAfsprakenSettings{
279
- apiKey: string
280
- apiSecret: string
281
- appointmentTypeId: number
282
- agendaId: number
283
- }
284
-
285
-
286
- export interface IGetBookableDaysParams {
287
- userdataid: string,
288
- ResourceId?: string,
289
- StartDate: string // YYYY-MM-DD
290
- EndDate: string // YYYY-MM-DD
291
- settings?:IOnlineAfsprakenSettings
292
- }
293
-
294
- export interface IGetBookableTimesParams {
295
- Date: string // YYYY-MM-DD
296
- userdataid: string,
297
- ResourceId?: string,
298
- EndDate?: string // YYYY-MM-DD
299
- settings?:IOnlineAfsprakenSettings
300
- }
301
-
302
- export interface IBookableday{
303
- Date: string;
304
- Month:number
305
- Day:number
306
- Year?:number
307
- JSDate?:Date
308
- }
309
-
310
-
311
-
312
- export interface IBagData {
313
- coordinates: number[]
314
- buildyear: number
315
- street: string
316
- city: string
317
- }
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
+ }
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.82",
5
+ "version": "0.0.86",
6
6
  "main": "index.d.ts",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1"