tuix-timesheets-api 0.4.0 → 0.4.2

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.
Files changed (72) hide show
  1. package/README.md +17 -9
  2. package/index.html +35 -0
  3. package/package.json +2 -11
  4. package/TuixTimesheetAPIClient.js +0 -24
  5. package/TuixTimesheetAPIClient.js.map +0 -1
  6. package/TuixTimesheetAPIClient.ts +0 -28
  7. package/core/ApiError.js +0 -16
  8. package/core/ApiError.js.map +0 -1
  9. package/core/ApiError.ts +0 -25
  10. package/core/ApiRequestOptions.js +0 -3
  11. package/core/ApiRequestOptions.js.map +0 -1
  12. package/core/ApiRequestOptions.ts +0 -17
  13. package/core/ApiResult.js +0 -3
  14. package/core/ApiResult.js.map +0 -1
  15. package/core/ApiResult.ts +0 -11
  16. package/core/BaseHttpRequest.js +0 -10
  17. package/core/BaseHttpRequest.js.map +0 -1
  18. package/core/BaseHttpRequest.ts +0 -14
  19. package/core/CancelablePromise.js +0 -117
  20. package/core/CancelablePromise.js.map +0 -1
  21. package/core/CancelablePromise.ts +0 -131
  22. package/core/FetchHttpRequest.js +0 -21
  23. package/core/FetchHttpRequest.js.map +0 -1
  24. package/core/FetchHttpRequest.ts +0 -26
  25. package/core/OpenAPI.js +0 -15
  26. package/core/OpenAPI.js.map +0 -1
  27. package/core/OpenAPI.ts +0 -32
  28. package/core/request.js +0 -282
  29. package/core/request.js.map +0 -1
  30. package/core/request.ts +0 -322
  31. package/index.js +0 -21
  32. package/index.js.map +0 -1
  33. package/index.ts +0 -26
  34. package/models/Client.js +0 -3
  35. package/models/Client.js.map +0 -1
  36. package/models/Client.ts +0 -17
  37. package/models/Company.js +0 -3
  38. package/models/Company.js.map +0 -1
  39. package/models/Company.ts +0 -24
  40. package/models/CreateClientDTO.js +0 -3
  41. package/models/CreateClientDTO.js.map +0 -1
  42. package/models/CreateClientDTO.ts +0 -17
  43. package/models/CreateCompanyDTO.js +0 -3
  44. package/models/CreateCompanyDTO.js.map +0 -1
  45. package/models/CreateCompanyDTO.ts +0 -25
  46. package/models/CreateSubscriptionDTO.js +0 -3
  47. package/models/CreateSubscriptionDTO.js.map +0 -1
  48. package/models/CreateSubscriptionDTO.ts +0 -7
  49. package/models/EmailTemplateDto.js +0 -3
  50. package/models/EmailTemplateDto.js.map +0 -1
  51. package/models/EmailTemplateDto.ts +0 -8
  52. package/models/JoinUserDTO.js +0 -3
  53. package/models/JoinUserDTO.js.map +0 -1
  54. package/models/JoinUserDTO.ts +0 -7
  55. package/models/SendEmailDto.js +0 -3
  56. package/models/SendEmailDto.js.map +0 -1
  57. package/models/SendEmailDto.ts +0 -13
  58. package/models/SendNewsletterDto.js +0 -3
  59. package/models/SendNewsletterDto.js.map +0 -1
  60. package/models/SendNewsletterDto.ts +0 -7
  61. package/models/UpdateClientDto.js +0 -3
  62. package/models/UpdateClientDto.js.map +0 -1
  63. package/models/UpdateClientDto.ts +0 -17
  64. package/models/UpdateCompanyDto.js +0 -3
  65. package/models/UpdateCompanyDto.js.map +0 -1
  66. package/models/UpdateCompanyDto.ts +0 -25
  67. package/models/User.js +0 -3
  68. package/models/User.js.map +0 -1
  69. package/models/User.ts +0 -7
  70. package/services/ServicesService.js +0 -332
  71. package/services/ServicesService.js.map +0 -1
  72. package/services/ServicesService.ts +0 -545
@@ -1,545 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { CancelablePromise } from '../core/CancelablePromise';
6
- import type { BaseHttpRequest } from '../core/BaseHttpRequest';
7
- export class ServicesService {
8
- constructor(public readonly httpRequest: BaseHttpRequest) {}
9
- /**
10
- * Get all clients
11
- * @returns any Return a list of clients
12
- * @throws ApiError
13
- */
14
- public getClients(): CancelablePromise<Array<{
15
- companyName: string;
16
- email: string;
17
- street: string;
18
- postalCode: string;
19
- houseNumber: string;
20
- city: string;
21
- country: string;
22
- phoneNumber: string;
23
- vatNumber: string;
24
- reverseCharged: boolean;
25
- }>> {
26
- return this.httpRequest.request({
27
- method: 'GET',
28
- url: '/clients',
29
- });
30
- }
31
- /**
32
- * Create a new client
33
- * @param requestBody
34
- * @returns any Create a client and returns the created client
35
- * @throws ApiError
36
- */
37
- public postClients(
38
- requestBody: {
39
- companyName: string;
40
- email: string;
41
- street: string;
42
- postalCode: string;
43
- houseNumber: string;
44
- city: string;
45
- country: string;
46
- phoneNumber: string;
47
- vatNumber: string;
48
- reverseCharged: boolean;
49
- },
50
- ): CancelablePromise<{
51
- companyName: string;
52
- email: string;
53
- street: string;
54
- postalCode: string;
55
- houseNumber: string;
56
- city: string;
57
- country: string;
58
- phoneNumber: string;
59
- vatNumber: string;
60
- reverseCharged: boolean;
61
- }> {
62
- return this.httpRequest.request({
63
- method: 'POST',
64
- url: '/clients',
65
- body: requestBody,
66
- mediaType: 'application/json',
67
- errors: {
68
- 400: `Return an error if there is a missing or invalid field`,
69
- 500: `Return an error if the server founds an error`,
70
- },
71
- });
72
- }
73
- /**
74
- * Get a client by ID
75
- * @param id
76
- * @returns any Return a client if the ID exists
77
- * @throws ApiError
78
- */
79
- public getClients1(
80
- id: string,
81
- ): CancelablePromise<{
82
- companyName: string;
83
- email: string;
84
- street: string;
85
- postalCode: string;
86
- houseNumber: string;
87
- city: string;
88
- country: string;
89
- phoneNumber: string;
90
- vatNumber: string;
91
- reverseCharged: boolean;
92
- }> {
93
- return this.httpRequest.request({
94
- method: 'GET',
95
- url: '/clients/{id}',
96
- path: {
97
- 'id': id,
98
- },
99
- errors: {
100
- 400: `Return an error if the provided ID is not UUID`,
101
- 404: `Return an error if the client is not found`,
102
- },
103
- });
104
- }
105
- /**
106
- * Update a client by ID
107
- * @param id
108
- * @param requestBody
109
- * @returns any Update a client and returns the updated client
110
- * @throws ApiError
111
- */
112
- public patchClients(
113
- id: string,
114
- requestBody: {
115
- companyName?: string;
116
- email?: string;
117
- street?: string;
118
- postalCode?: string;
119
- houseNumber?: string;
120
- city?: string;
121
- country?: string;
122
- phoneNumber?: string;
123
- vatNumber?: string;
124
- reverseCharged?: boolean;
125
- },
126
- ): CancelablePromise<{
127
- companyName: string;
128
- email: string;
129
- street: string;
130
- postalCode: string;
131
- houseNumber: string;
132
- city: string;
133
- country: string;
134
- phoneNumber: string;
135
- vatNumber: string;
136
- reverseCharged: boolean;
137
- }> {
138
- return this.httpRequest.request({
139
- method: 'PATCH',
140
- url: '/clients/{id}',
141
- path: {
142
- 'id': id,
143
- },
144
- body: requestBody,
145
- mediaType: 'application/json',
146
- errors: {
147
- 400: `Return an error if a field is invalid or empty`,
148
- 404: `Return an error if the client is not found`,
149
- 500: `Return an error if the server founds an error`,
150
- },
151
- });
152
- }
153
- /**
154
- * Delete a client by ID
155
- * @param id
156
- * @returns void
157
- * @throws ApiError
158
- */
159
- public deleteClients(
160
- id: string,
161
- ): CancelablePromise<void> {
162
- return this.httpRequest.request({
163
- method: 'DELETE',
164
- url: '/clients/{id}',
165
- path: {
166
- 'id': id,
167
- },
168
- errors: {
169
- 400: `Return an error if provided ID is not valid UUID`,
170
- 404: `Return an error if the client is not found`,
171
- 500: `Return an error if the server founds an error`,
172
- },
173
- });
174
- }
175
- /**
176
- * Get all companies
177
- * @returns any Return a list of companies
178
- * @throws ApiError
179
- */
180
- public getCompanies(): CancelablePromise<Array<{
181
- companyName: string;
182
- email: string;
183
- street: string;
184
- postalCode: string;
185
- houseNumber: string;
186
- city: string;
187
- country: string;
188
- phoneNumber: string;
189
- taxNumber: string;
190
- vatNumber: string;
191
- iban: string;
192
- bankName: string;
193
- bankAddressStreet: string;
194
- bankAddressHouseNumber: string;
195
- bankAddressPostalCode: string;
196
- bankAddressCity: string;
197
- bankSwiftCode: string;
198
- }>> {
199
- return this.httpRequest.request({
200
- method: 'GET',
201
- url: '/companies',
202
- });
203
- }
204
- /**
205
- * Creates a new company
206
- * @param requestBody
207
- * @returns any Create a company and returns the created company
208
- * @throws ApiError
209
- */
210
- public postCompanies(
211
- requestBody: {
212
- companyName: string;
213
- email: string;
214
- street: string;
215
- postalCode: string;
216
- houseNumber: string;
217
- city: string;
218
- country: string;
219
- phoneNumber: string;
220
- vatNumber: string;
221
- taxNumber: string;
222
- iban: string;
223
- bankName: string;
224
- bankAddressStreet: string;
225
- bankAddressHouseNumber: string;
226
- bankAddressPostalCode: string;
227
- bankAddressCity: string;
228
- bankSwiftCode: string;
229
- userId: string;
230
- },
231
- ): CancelablePromise<{
232
- companyName: string;
233
- email: string;
234
- street: string;
235
- postalCode: string;
236
- houseNumber: string;
237
- city: string;
238
- country: string;
239
- phoneNumber: string;
240
- taxNumber: string;
241
- vatNumber: string;
242
- iban: string;
243
- bankName: string;
244
- bankAddressStreet: string;
245
- bankAddressHouseNumber: string;
246
- bankAddressPostalCode: string;
247
- bankAddressCity: string;
248
- bankSwiftCode: string;
249
- }> {
250
- return this.httpRequest.request({
251
- method: 'POST',
252
- url: '/companies',
253
- body: requestBody,
254
- mediaType: 'application/json',
255
- errors: {
256
- 400: `Return an error if there is a missing or invalid field`,
257
- 500: `Return an error if the server founds an error`,
258
- },
259
- });
260
- }
261
- /**
262
- * Get a company by ID
263
- * @returns any Return a company if the ID exists
264
- * @throws ApiError
265
- */
266
- public getCompanies1(): CancelablePromise<{
267
- companyName: string;
268
- email: string;
269
- street: string;
270
- postalCode: string;
271
- houseNumber: string;
272
- city: string;
273
- country: string;
274
- phoneNumber: string;
275
- taxNumber: string;
276
- vatNumber: string;
277
- iban: string;
278
- bankName: string;
279
- bankAddressStreet: string;
280
- bankAddressHouseNumber: string;
281
- bankAddressPostalCode: string;
282
- bankAddressCity: string;
283
- bankSwiftCode: string;
284
- }> {
285
- return this.httpRequest.request({
286
- method: 'GET',
287
- url: '/companies/{id}',
288
- errors: {
289
- 400: `Return an error if provided ID is not a valid UUID`,
290
- 404: `Return an error if the company is not found`,
291
- },
292
- });
293
- }
294
- /**
295
- * Update a company by ID
296
- * @param requestBody
297
- * @returns any Update a company and returns the updated company
298
- * @throws ApiError
299
- */
300
- public patchCompanies(
301
- requestBody: {
302
- companyName?: string;
303
- email?: string;
304
- street?: string;
305
- postalCode?: string;
306
- houseNumber?: string;
307
- city?: string;
308
- country?: string;
309
- phoneNumber?: string;
310
- vatNumber?: string;
311
- taxNumber?: string;
312
- iban?: string;
313
- bankName?: string;
314
- bankAddressStreet?: string;
315
- bankAddressHouseNumber?: string;
316
- bankAddressPostalCode?: string;
317
- bankAddressCity?: string;
318
- bankSwiftCode?: string;
319
- userId?: string;
320
- },
321
- ): CancelablePromise<{
322
- companyName: string;
323
- email: string;
324
- street: string;
325
- postalCode: string;
326
- houseNumber: string;
327
- city: string;
328
- country: string;
329
- phoneNumber: string;
330
- taxNumber: string;
331
- vatNumber: string;
332
- iban: string;
333
- bankName: string;
334
- bankAddressStreet: string;
335
- bankAddressHouseNumber: string;
336
- bankAddressPostalCode: string;
337
- bankAddressCity: string;
338
- bankSwiftCode: string;
339
- }> {
340
- return this.httpRequest.request({
341
- method: 'PATCH',
342
- url: '/companies/{id}',
343
- body: requestBody,
344
- mediaType: 'application/json',
345
- errors: {
346
- 400: `Return an error if provided ID is not a valid UUID`,
347
- 404: `Return an error if the company is not found`,
348
- 500: `Return an error if the server founds an error`,
349
- },
350
- });
351
- }
352
- /**
353
- * Delete a company by ID
354
- * @returns void
355
- * @throws ApiError
356
- */
357
- public deleteCompanies(): CancelablePromise<void> {
358
- return this.httpRequest.request({
359
- method: 'DELETE',
360
- url: '/companies/{id}',
361
- errors: {
362
- 400: `Return an error if provided ID is not a valid UUID`,
363
- 404: `Return an error if the company is not found`,
364
- 500: `Return an error if the server founds an error`,
365
- },
366
- });
367
- }
368
- /**
369
- * Get all users from a company
370
- * @returns any Return a list of users from a company
371
- * @throws ApiError
372
- */
373
- public getCompaniesUsers(): CancelablePromise<Array<any>> {
374
- return this.httpRequest.request({
375
- method: 'GET',
376
- url: '/companies/{id}/users',
377
- errors: {
378
- 400: `Return an error if provided ID is not a valid UUID`,
379
- 404: `Return an error if the company is not found`,
380
- },
381
- });
382
- }
383
- /**
384
- * Add a user to a company
385
- * @param requestBody
386
- * @returns any Add a user to a company
387
- * @throws ApiError
388
- */
389
- public postCompaniesUsers(
390
- requestBody: any,
391
- ): CancelablePromise<any> {
392
- return this.httpRequest.request({
393
- method: 'POST',
394
- url: '/companies/{id}/users',
395
- body: requestBody,
396
- mediaType: 'application/json',
397
- errors: {
398
- 400: `Return an error if provided ID is not a valid UUID`,
399
- 404: `Return an error if the company is not found`,
400
- },
401
- });
402
- }
403
- /**
404
- * Remove a user from a company
405
- * @param userId
406
- * @returns void
407
- * @throws ApiError
408
- */
409
- public deleteCompanies1(
410
- userId: string,
411
- ): CancelablePromise<void> {
412
- return this.httpRequest.request({
413
- method: 'DELETE',
414
- url: '/companies/{id}/{userId}',
415
- path: {
416
- 'userId': userId,
417
- },
418
- errors: {
419
- 400: `Return an error if provided ID is not a valid UUID`,
420
- 404: `Return an error if the company is not found`,
421
- },
422
- });
423
- }
424
- /**
425
- * @param requestBody
426
- * @returns any
427
- * @throws ApiError
428
- */
429
- public postEmailsSend(
430
- requestBody: {
431
- from: string;
432
- to: string;
433
- subject: string;
434
- body: string;
435
- data: Record<string, any>;
436
- templateUUID: string;
437
- },
438
- ): CancelablePromise<any> {
439
- return this.httpRequest.request({
440
- method: 'POST',
441
- url: '/emails/send',
442
- body: requestBody,
443
- mediaType: 'application/json',
444
- });
445
- }
446
- /**
447
- * @param requestBody
448
- * @returns any
449
- * @throws ApiError
450
- */
451
- public postTemplates(
452
- requestBody: {
453
- name: string;
454
- },
455
- ): CancelablePromise<any> {
456
- return this.httpRequest.request({
457
- method: 'POST',
458
- url: '/templates',
459
- body: requestBody,
460
- mediaType: 'application/json',
461
- });
462
- }
463
- /**
464
- * @returns any
465
- * @throws ApiError
466
- */
467
- public getTemplates(): CancelablePromise<any> {
468
- return this.httpRequest.request({
469
- method: 'GET',
470
- url: '/templates',
471
- });
472
- }
473
- /**
474
- * @param id
475
- * @returns any
476
- * @throws ApiError
477
- */
478
- public getTemplates1(
479
- id: string,
480
- ): CancelablePromise<any> {
481
- return this.httpRequest.request({
482
- method: 'GET',
483
- url: '/templates/{id}',
484
- path: {
485
- 'id': id,
486
- },
487
- });
488
- }
489
- /**
490
- * @returns any
491
- * @throws ApiError
492
- */
493
- public getSubscriptions(): CancelablePromise<any> {
494
- return this.httpRequest.request({
495
- method: 'GET',
496
- url: '/subscriptions',
497
- });
498
- }
499
- /**
500
- * @param requestBody
501
- * @returns any
502
- * @throws ApiError
503
- */
504
- public postSubscriptions(
505
- requestBody: any,
506
- ): CancelablePromise<any> {
507
- return this.httpRequest.request({
508
- method: 'POST',
509
- url: '/subscriptions',
510
- body: requestBody,
511
- mediaType: 'application/json',
512
- });
513
- }
514
- /**
515
- * @param id
516
- * @returns void
517
- * @throws ApiError
518
- */
519
- public deleteSubscriptions(
520
- id: string,
521
- ): CancelablePromise<void> {
522
- return this.httpRequest.request({
523
- method: 'DELETE',
524
- url: '/subscriptions/{id}',
525
- path: {
526
- 'id': id,
527
- },
528
- });
529
- }
530
- /**
531
- * @param requestBody
532
- * @returns any
533
- * @throws ApiError
534
- */
535
- public postSubscriptionsNewsletter(
536
- requestBody: any,
537
- ): CancelablePromise<any> {
538
- return this.httpRequest.request({
539
- method: 'POST',
540
- url: '/subscriptions/newsletter',
541
- body: requestBody,
542
- mediaType: 'application/json',
543
- });
544
- }
545
- }