@wasto/sdk 1.0.3 → 1.0.4

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 (56) hide show
  1. package/dist/index.d.mts +17 -1
  2. package/dist/index.d.ts +17 -1
  3. package/dist/index.js +7 -0
  4. package/dist/index.mjs +7 -0
  5. package/package.json +1 -1
  6. package/src/client.ts +701 -692
  7. package/src/dashboard-apps.ts +350 -350
  8. package/src/dto/cms-app-settings.ts +91 -91
  9. package/src/enums.ts +298 -298
  10. package/src/free-tier.ts +56 -56
  11. package/src/index.ts +35 -35
  12. package/src/opening-hours/constants.ts +48 -48
  13. package/src/opening-hours/convert.ts +276 -276
  14. package/src/opening-hours/format.ts +99 -99
  15. package/src/opening-hours/index.ts +9 -9
  16. package/src/opening-hours/is-open-now.ts +38 -38
  17. package/src/opening-hours/resolve.ts +71 -71
  18. package/src/opening-hours/time.ts +74 -74
  19. package/src/opening-hours/timezone.ts +34 -34
  20. package/src/opening-hours/types.ts +53 -53
  21. package/src/opening-hours/validate.ts +182 -182
  22. package/src/roi/calculations.ts +732 -732
  23. package/src/roi/index.ts +1 -1
  24. package/src/types/app-preload.types.ts +10 -0
  25. package/src/types/asset-bookings.types.ts +19 -19
  26. package/src/types/asset-interventions.types.ts +24 -24
  27. package/src/types/assets.types.ts +68 -68
  28. package/src/types/auth.types.ts +37 -37
  29. package/src/types/blog-posts.types.ts +19 -19
  30. package/src/types/calendar-pdf.types.ts +24 -24
  31. package/src/types/calendo-events.types.ts +64 -64
  32. package/src/types/challenges.types.ts +30 -30
  33. package/src/types/chatbot.types.ts +82 -82
  34. package/src/types/cities.types.ts +27 -27
  35. package/src/types/city-groups.types.ts +46 -46
  36. package/src/types/cms.types.ts +87 -87
  37. package/src/types/field-reports.types.ts +66 -66
  38. package/src/types/free-tier.types.ts +54 -54
  39. package/src/types/index.ts +33 -32
  40. package/src/types/iot.types.ts +31 -31
  41. package/src/types/maintenance.types.ts +44 -44
  42. package/src/types/mapso.types.ts +146 -146
  43. package/src/types/notifications.types.ts +68 -68
  44. package/src/types/onboarding.types.ts +117 -117
  45. package/src/types/operational-zones.types.ts +70 -70
  46. package/src/types/pagination.types.ts +33 -33
  47. package/src/types/providers.types.ts +29 -29
  48. package/src/types/quiz-questions.types.ts +59 -59
  49. package/src/types/recycling-points.types.ts +47 -47
  50. package/src/types/roi.types.ts +60 -60
  51. package/src/types/surveys.types.ts +103 -103
  52. package/src/types/tickets.types.ts +65 -65
  53. package/src/types/users.types.ts +30 -30
  54. package/src/types/waste-collection-places-query.types.ts +4 -4
  55. package/src/types/waste-collection-places.types.ts +33 -33
  56. package/src/types/waste-types.types.ts +21 -21
@@ -1,30 +1,30 @@
1
- import type { UserRole } from '../enums';
2
-
3
- export interface CreateUserRequest {
4
- email: string;
5
- password: string;
6
- firstName?: string;
7
- lastName?: string;
8
- role?: UserRole;
9
- cityId?: string;
10
- cityGroupId?: string;
11
- }
12
-
13
- export interface InviteUserRequest {
14
- email: string;
15
- firstName?: string;
16
- lastName?: string;
17
- role?: UserRole;
18
- cityId?: string;
19
- cityGroupId?: string;
20
- }
21
-
22
- export interface UpdateUserRequest {
23
- email?: string;
24
- password?: string;
25
- firstName?: string;
26
- lastName?: string;
27
- role?: UserRole;
28
- cityId?: string;
29
- cityGroupId?: string;
30
- }
1
+ import type { UserRole } from '../enums';
2
+
3
+ export interface CreateUserRequest {
4
+ email: string;
5
+ password: string;
6
+ firstName?: string;
7
+ lastName?: string;
8
+ role?: UserRole;
9
+ cityId?: string;
10
+ cityGroupId?: string;
11
+ }
12
+
13
+ export interface InviteUserRequest {
14
+ email: string;
15
+ firstName?: string;
16
+ lastName?: string;
17
+ role?: UserRole;
18
+ cityId?: string;
19
+ cityGroupId?: string;
20
+ }
21
+
22
+ export interface UpdateUserRequest {
23
+ email?: string;
24
+ password?: string;
25
+ firstName?: string;
26
+ lastName?: string;
27
+ role?: UserRole;
28
+ cityId?: string;
29
+ cityGroupId?: string;
30
+ }
@@ -1,4 +1,4 @@
1
- export interface LocateWasteCollectionPlacesQuery {
2
- lat: number;
3
- lon: number;
4
- }
1
+ export interface LocateWasteCollectionPlacesQuery {
2
+ lat: number;
3
+ lon: number;
4
+ }
@@ -1,33 +1,33 @@
1
- export interface CreateAttachedLocationRequest {
2
- name: string;
3
- reference?: string;
4
- latitude?: number;
5
- longitude?: number;
6
- /** Optional link to a city street (secteur / calendrier). */
7
- streetId?: string;
8
- }
9
-
10
- export interface CreateWasteCollectionDayRequest {
11
- wasteTypeId: string;
12
- name: string;
13
- description?: string;
14
- biweekly?: boolean;
15
- startDate?: string;
16
- }
17
-
18
- export interface CreateWasteCollectionExceptionRequest {
19
- wasteTypeId: string;
20
- dateFrom: string;
21
- dateTo: string;
22
- name: string;
23
- description?: string;
24
- }
25
-
26
- export interface CreateWasteCollectionPlaceRequest {
27
- cityId: string;
28
- name: string;
29
- reference?: string;
30
- attachedLocations?: CreateAttachedLocationRequest[];
31
- wasteCollectionDays?: CreateWasteCollectionDayRequest[];
32
- wasteCollectionExceptions?: CreateWasteCollectionExceptionRequest[];
33
- }
1
+ export interface CreateAttachedLocationRequest {
2
+ name: string;
3
+ reference?: string;
4
+ latitude?: number;
5
+ longitude?: number;
6
+ /** Optional link to a city street (secteur / calendrier). */
7
+ streetId?: string;
8
+ }
9
+
10
+ export interface CreateWasteCollectionDayRequest {
11
+ wasteTypeId: string;
12
+ name: string;
13
+ description?: string;
14
+ biweekly?: boolean;
15
+ startDate?: string;
16
+ }
17
+
18
+ export interface CreateWasteCollectionExceptionRequest {
19
+ wasteTypeId: string;
20
+ dateFrom: string;
21
+ dateTo: string;
22
+ name: string;
23
+ description?: string;
24
+ }
25
+
26
+ export interface CreateWasteCollectionPlaceRequest {
27
+ cityId: string;
28
+ name: string;
29
+ reference?: string;
30
+ attachedLocations?: CreateAttachedLocationRequest[];
31
+ wasteCollectionDays?: CreateWasteCollectionDayRequest[];
32
+ wasteCollectionExceptions?: CreateWasteCollectionExceptionRequest[];
33
+ }
@@ -1,21 +1,21 @@
1
- export interface CreateWasteTypeDetailRequest {
2
- material: string;
3
- description?: string;
4
- instructions?: string;
5
- imageUrl?: string;
6
- imageBase64?: string;
7
- }
8
-
9
- export interface CreateWasteTypeRequest {
10
- name: string;
11
- description?: string;
12
- instructions?: string;
13
- color?: string;
14
- colorLight?: string;
15
- icon?: string;
16
- imageUrl?: string;
17
- imageBase64?: string;
18
- details?: CreateWasteTypeDetailRequest[];
19
- rules?: string[];
20
- cityIds?: string[];
21
- }
1
+ export interface CreateWasteTypeDetailRequest {
2
+ material: string;
3
+ description?: string;
4
+ instructions?: string;
5
+ imageUrl?: string;
6
+ imageBase64?: string;
7
+ }
8
+
9
+ export interface CreateWasteTypeRequest {
10
+ name: string;
11
+ description?: string;
12
+ instructions?: string;
13
+ color?: string;
14
+ colorLight?: string;
15
+ icon?: string;
16
+ imageUrl?: string;
17
+ imageBase64?: string;
18
+ details?: CreateWasteTypeDetailRequest[];
19
+ rules?: string[];
20
+ cityIds?: string[];
21
+ }