@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.
- package/dist/index.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
- package/src/client.ts +701 -692
- package/src/dashboard-apps.ts +350 -350
- package/src/dto/cms-app-settings.ts +91 -91
- package/src/enums.ts +298 -298
- package/src/free-tier.ts +56 -56
- package/src/index.ts +35 -35
- package/src/opening-hours/constants.ts +48 -48
- package/src/opening-hours/convert.ts +276 -276
- package/src/opening-hours/format.ts +99 -99
- package/src/opening-hours/index.ts +9 -9
- package/src/opening-hours/is-open-now.ts +38 -38
- package/src/opening-hours/resolve.ts +71 -71
- package/src/opening-hours/time.ts +74 -74
- package/src/opening-hours/timezone.ts +34 -34
- package/src/opening-hours/types.ts +53 -53
- package/src/opening-hours/validate.ts +182 -182
- package/src/roi/calculations.ts +732 -732
- package/src/roi/index.ts +1 -1
- package/src/types/app-preload.types.ts +10 -0
- package/src/types/asset-bookings.types.ts +19 -19
- package/src/types/asset-interventions.types.ts +24 -24
- package/src/types/assets.types.ts +68 -68
- package/src/types/auth.types.ts +37 -37
- package/src/types/blog-posts.types.ts +19 -19
- package/src/types/calendar-pdf.types.ts +24 -24
- package/src/types/calendo-events.types.ts +64 -64
- package/src/types/challenges.types.ts +30 -30
- package/src/types/chatbot.types.ts +82 -82
- package/src/types/cities.types.ts +27 -27
- package/src/types/city-groups.types.ts +46 -46
- package/src/types/cms.types.ts +87 -87
- package/src/types/field-reports.types.ts +66 -66
- package/src/types/free-tier.types.ts +54 -54
- package/src/types/index.ts +33 -32
- package/src/types/iot.types.ts +31 -31
- package/src/types/maintenance.types.ts +44 -44
- package/src/types/mapso.types.ts +146 -146
- package/src/types/notifications.types.ts +68 -68
- package/src/types/onboarding.types.ts +117 -117
- package/src/types/operational-zones.types.ts +70 -70
- package/src/types/pagination.types.ts +33 -33
- package/src/types/providers.types.ts +29 -29
- package/src/types/quiz-questions.types.ts +59 -59
- package/src/types/recycling-points.types.ts +47 -47
- package/src/types/roi.types.ts +60 -60
- package/src/types/surveys.types.ts +103 -103
- package/src/types/tickets.types.ts +65 -65
- package/src/types/users.types.ts +30 -30
- package/src/types/waste-collection-places-query.types.ts +4 -4
- package/src/types/waste-collection-places.types.ts +33 -33
- package/src/types/waste-types.types.ts +21 -21
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
/** Ressources soumises à un quota numérique en offre gratuite. */
|
|
2
|
-
export type FreeTierResource =
|
|
3
|
-
| 'cmsApps'
|
|
4
|
-
| 'cmsPages'
|
|
5
|
-
| 'blogPosts'
|
|
6
|
-
| 'cmsMedia'
|
|
7
|
-
| 'wasteTypes'
|
|
8
|
-
| 'collectionPlaces'
|
|
9
|
-
| 'printCalendarTemplates';
|
|
10
|
-
|
|
11
|
-
/** Fonctionnalités désactivées en offre gratuite (feature gate). */
|
|
12
|
-
export type FreeTierFeature =
|
|
13
|
-
| 'challenges'
|
|
14
|
-
| 'roi'
|
|
15
|
-
| 'notifications'
|
|
16
|
-
| 'recyclingPoints'
|
|
17
|
-
| 'assets'
|
|
18
|
-
| 'nativeStorePublication'
|
|
19
|
-
| 'inviteMembers';
|
|
20
|
-
|
|
21
|
-
export type FreeTierErrorCode = 'FREE_TIER_LIMIT' | 'FREE_TIER_FEATURE';
|
|
22
|
-
|
|
23
|
-
export type FreeTierUsageItem = {
|
|
24
|
-
resource: FreeTierResource;
|
|
25
|
-
used: number;
|
|
26
|
-
/** `null` = illimité (compte payant). */
|
|
27
|
-
limit: number | null;
|
|
28
|
-
canCreate: boolean;
|
|
29
|
-
/** Octets utilisés (cmsMedia uniquement). */
|
|
30
|
-
usedBytes?: number;
|
|
31
|
-
/** Limite en octets (cmsMedia uniquement). */
|
|
32
|
-
limitBytes?: number | null;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type FreeTierFeatureItem = {
|
|
36
|
-
feature: FreeTierFeature;
|
|
37
|
-
enabled: boolean;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export type FreeTierUsageSnapshot = {
|
|
41
|
-
cityGroupId: string;
|
|
42
|
-
freeTier: boolean;
|
|
43
|
-
resources: FreeTierUsageItem[];
|
|
44
|
-
features: FreeTierFeatureItem[];
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export type FreeTierErrorPayload = {
|
|
48
|
-
code: FreeTierErrorCode;
|
|
49
|
-
resource?: FreeTierResource;
|
|
50
|
-
feature?: FreeTierFeature;
|
|
51
|
-
used?: number;
|
|
52
|
-
limit?: number;
|
|
53
|
-
message: string;
|
|
54
|
-
};
|
|
1
|
+
/** Ressources soumises à un quota numérique en offre gratuite. */
|
|
2
|
+
export type FreeTierResource =
|
|
3
|
+
| 'cmsApps'
|
|
4
|
+
| 'cmsPages'
|
|
5
|
+
| 'blogPosts'
|
|
6
|
+
| 'cmsMedia'
|
|
7
|
+
| 'wasteTypes'
|
|
8
|
+
| 'collectionPlaces'
|
|
9
|
+
| 'printCalendarTemplates';
|
|
10
|
+
|
|
11
|
+
/** Fonctionnalités désactivées en offre gratuite (feature gate). */
|
|
12
|
+
export type FreeTierFeature =
|
|
13
|
+
| 'challenges'
|
|
14
|
+
| 'roi'
|
|
15
|
+
| 'notifications'
|
|
16
|
+
| 'recyclingPoints'
|
|
17
|
+
| 'assets'
|
|
18
|
+
| 'nativeStorePublication'
|
|
19
|
+
| 'inviteMembers';
|
|
20
|
+
|
|
21
|
+
export type FreeTierErrorCode = 'FREE_TIER_LIMIT' | 'FREE_TIER_FEATURE';
|
|
22
|
+
|
|
23
|
+
export type FreeTierUsageItem = {
|
|
24
|
+
resource: FreeTierResource;
|
|
25
|
+
used: number;
|
|
26
|
+
/** `null` = illimité (compte payant). */
|
|
27
|
+
limit: number | null;
|
|
28
|
+
canCreate: boolean;
|
|
29
|
+
/** Octets utilisés (cmsMedia uniquement). */
|
|
30
|
+
usedBytes?: number;
|
|
31
|
+
/** Limite en octets (cmsMedia uniquement). */
|
|
32
|
+
limitBytes?: number | null;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type FreeTierFeatureItem = {
|
|
36
|
+
feature: FreeTierFeature;
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type FreeTierUsageSnapshot = {
|
|
41
|
+
cityGroupId: string;
|
|
42
|
+
freeTier: boolean;
|
|
43
|
+
resources: FreeTierUsageItem[];
|
|
44
|
+
features: FreeTierFeatureItem[];
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type FreeTierErrorPayload = {
|
|
48
|
+
code: FreeTierErrorCode;
|
|
49
|
+
resource?: FreeTierResource;
|
|
50
|
+
feature?: FreeTierFeature;
|
|
51
|
+
used?: number;
|
|
52
|
+
limit?: number;
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
package/src/types/index.ts
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
export * from './pagination.types';
|
|
2
|
-
export * from './auth.types';
|
|
3
|
-
export * from './users.types';
|
|
4
|
-
export * from './cities.types';
|
|
5
|
-
export * from './city-groups.types';
|
|
6
|
-
export * from './waste-types.types';
|
|
7
|
-
export * from './waste-collection-places.types';
|
|
8
|
-
export * from './waste-collection-places-query.types';
|
|
9
|
-
export * from './recycling-points.types';
|
|
10
|
-
export * from './quiz-questions.types';
|
|
11
|
-
export * from './cms.types';
|
|
12
|
-
export * from './assets.types';
|
|
13
|
-
export * from './asset-bookings.types';
|
|
14
|
-
export * from './asset-interventions.types';
|
|
15
|
-
export * from './challenges.types';
|
|
16
|
-
export * from './blog-posts.types';
|
|
17
|
-
export * from './notifications.types';
|
|
18
|
-
export * from './providers.types';
|
|
19
|
-
export * from './surveys.types';
|
|
20
|
-
export * from './tickets.types';
|
|
21
|
-
export * from './field-reports.types';
|
|
22
|
-
export * from './calendo-events.types';
|
|
23
|
-
|
|
24
|
-
export * from './mapso.types';
|
|
25
|
-
export * from './operational-zones.types';
|
|
26
|
-
export * from './maintenance.types';
|
|
27
|
-
export * from './iot.types';
|
|
28
|
-
export * from './chatbot.types';
|
|
29
|
-
export * from './roi.types';
|
|
30
|
-
export * from './calendar-pdf.types';
|
|
31
|
-
export * from './onboarding.types';
|
|
32
|
-
export * from './free-tier.types';
|
|
1
|
+
export * from './pagination.types';
|
|
2
|
+
export * from './auth.types';
|
|
3
|
+
export * from './users.types';
|
|
4
|
+
export * from './cities.types';
|
|
5
|
+
export * from './city-groups.types';
|
|
6
|
+
export * from './waste-types.types';
|
|
7
|
+
export * from './waste-collection-places.types';
|
|
8
|
+
export * from './waste-collection-places-query.types';
|
|
9
|
+
export * from './recycling-points.types';
|
|
10
|
+
export * from './quiz-questions.types';
|
|
11
|
+
export * from './cms.types';
|
|
12
|
+
export * from './assets.types';
|
|
13
|
+
export * from './asset-bookings.types';
|
|
14
|
+
export * from './asset-interventions.types';
|
|
15
|
+
export * from './challenges.types';
|
|
16
|
+
export * from './blog-posts.types';
|
|
17
|
+
export * from './notifications.types';
|
|
18
|
+
export * from './providers.types';
|
|
19
|
+
export * from './surveys.types';
|
|
20
|
+
export * from './tickets.types';
|
|
21
|
+
export * from './field-reports.types';
|
|
22
|
+
export * from './calendo-events.types';
|
|
23
|
+
|
|
24
|
+
export * from './mapso.types';
|
|
25
|
+
export * from './operational-zones.types';
|
|
26
|
+
export * from './maintenance.types';
|
|
27
|
+
export * from './iot.types';
|
|
28
|
+
export * from './chatbot.types';
|
|
29
|
+
export * from './roi.types';
|
|
30
|
+
export * from './calendar-pdf.types';
|
|
31
|
+
export * from './onboarding.types';
|
|
32
|
+
export * from './free-tier.types';
|
|
33
|
+
export * from './app-preload.types';
|
package/src/types/iot.types.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export interface CreateIotDeviceRequest {
|
|
2
|
-
name: string;
|
|
3
|
-
deviceId: string;
|
|
4
|
-
assetId?: string;
|
|
5
|
-
clientCert: string;
|
|
6
|
-
clientKey: string;
|
|
7
|
-
enabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface UpdateIotDeviceRequest {
|
|
11
|
-
name?: string;
|
|
12
|
-
deviceId?: string;
|
|
13
|
-
assetId?: string;
|
|
14
|
-
clientCert?: string;
|
|
15
|
-
clientKey?: string;
|
|
16
|
-
enabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface IotWebhookPayloadRequest {
|
|
20
|
-
deviceId: string;
|
|
21
|
-
eventType: 'position' | 'consumption' | 'alert';
|
|
22
|
-
latitude?: number;
|
|
23
|
-
longitude?: number;
|
|
24
|
-
value?: number;
|
|
25
|
-
unit?: string;
|
|
26
|
-
periodStart?: string;
|
|
27
|
-
periodEnd?: string;
|
|
28
|
-
title?: string;
|
|
29
|
-
description?: string;
|
|
30
|
-
metadata?: Record<string, unknown>;
|
|
31
|
-
}
|
|
1
|
+
export interface CreateIotDeviceRequest {
|
|
2
|
+
name: string;
|
|
3
|
+
deviceId: string;
|
|
4
|
+
assetId?: string;
|
|
5
|
+
clientCert: string;
|
|
6
|
+
clientKey: string;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface UpdateIotDeviceRequest {
|
|
11
|
+
name?: string;
|
|
12
|
+
deviceId?: string;
|
|
13
|
+
assetId?: string;
|
|
14
|
+
clientCert?: string;
|
|
15
|
+
clientKey?: string;
|
|
16
|
+
enabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IotWebhookPayloadRequest {
|
|
20
|
+
deviceId: string;
|
|
21
|
+
eventType: 'position' | 'consumption' | 'alert';
|
|
22
|
+
latitude?: number;
|
|
23
|
+
longitude?: number;
|
|
24
|
+
value?: number;
|
|
25
|
+
unit?: string;
|
|
26
|
+
periodStart?: string;
|
|
27
|
+
periodEnd?: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
metadata?: Record<string, unknown>;
|
|
31
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export interface CreateMaintenanceTypeRequest {
|
|
2
|
-
name: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
downtimeHours: number;
|
|
5
|
-
recommendedFrequency?: number;
|
|
6
|
-
estimatedCost?: number;
|
|
7
|
-
instructions?: string;
|
|
8
|
-
isActive?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface UpdateMaintenanceTypeRequest {
|
|
12
|
-
name?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
downtimeHours?: number;
|
|
15
|
-
recommendedFrequency?: number;
|
|
16
|
-
estimatedCost?: number;
|
|
17
|
-
instructions?: string;
|
|
18
|
-
isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface MaintenanceProgramItemRequest {
|
|
22
|
-
maintenanceTypeId: string;
|
|
23
|
-
frequencyDays: number;
|
|
24
|
-
order?: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface CreateMaintenanceProgramRequest {
|
|
28
|
-
name: string;
|
|
29
|
-
description?: string;
|
|
30
|
-
items: MaintenanceProgramItemRequest[];
|
|
31
|
-
isActive?: boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface UpdateMaintenanceProgramRequest {
|
|
35
|
-
name?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
items?: MaintenanceProgramItemRequest[];
|
|
38
|
-
isActive?: boolean;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface AssignProgramRequest {
|
|
42
|
-
programId: string;
|
|
43
|
-
startDate: string;
|
|
44
|
-
}
|
|
1
|
+
export interface CreateMaintenanceTypeRequest {
|
|
2
|
+
name: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
downtimeHours: number;
|
|
5
|
+
recommendedFrequency?: number;
|
|
6
|
+
estimatedCost?: number;
|
|
7
|
+
instructions?: string;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface UpdateMaintenanceTypeRequest {
|
|
12
|
+
name?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
downtimeHours?: number;
|
|
15
|
+
recommendedFrequency?: number;
|
|
16
|
+
estimatedCost?: number;
|
|
17
|
+
instructions?: string;
|
|
18
|
+
isActive?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface MaintenanceProgramItemRequest {
|
|
22
|
+
maintenanceTypeId: string;
|
|
23
|
+
frequencyDays: number;
|
|
24
|
+
order?: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface CreateMaintenanceProgramRequest {
|
|
28
|
+
name: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
items: MaintenanceProgramItemRequest[];
|
|
31
|
+
isActive?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface UpdateMaintenanceProgramRequest {
|
|
35
|
+
name?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
items?: MaintenanceProgramItemRequest[];
|
|
38
|
+
isActive?: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface AssignProgramRequest {
|
|
42
|
+
programId: string;
|
|
43
|
+
startDate: string;
|
|
44
|
+
}
|
package/src/types/mapso.types.ts
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
MapEventStatus,
|
|
3
|
-
MapEventType,
|
|
4
|
-
MapPoiCategory,
|
|
5
|
-
MapPoiStatus,
|
|
6
|
-
MapZoneType,
|
|
7
|
-
} from '../enums';
|
|
8
|
-
|
|
9
|
-
export interface CreateMapEventRequest {
|
|
10
|
-
title: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
type?: MapEventType;
|
|
13
|
-
status?: MapEventStatus;
|
|
14
|
-
startDate?: string;
|
|
15
|
-
endDate?: string;
|
|
16
|
-
centerLatitude?: number;
|
|
17
|
-
centerLongitude?: number;
|
|
18
|
-
defaultZoom?: number;
|
|
19
|
-
perimeterGeoJson?: Record<string, unknown> | null;
|
|
20
|
-
cityId?: string;
|
|
21
|
-
cityGroupId?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface UpdateMapEventRequest {
|
|
25
|
-
title?: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
type?: MapEventType;
|
|
28
|
-
status?: MapEventStatus;
|
|
29
|
-
startDate?: string | null;
|
|
30
|
-
endDate?: string | null;
|
|
31
|
-
centerLatitude?: number | null;
|
|
32
|
-
centerLongitude?: number | null;
|
|
33
|
-
defaultZoom?: number | null;
|
|
34
|
-
perimeterGeoJson?: Record<string, unknown> | null;
|
|
35
|
-
cityId?: string | null;
|
|
36
|
-
cityGroupId?: string | null;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface CreateMapPoiRequest {
|
|
40
|
-
name: string;
|
|
41
|
-
description?: string;
|
|
42
|
-
category: MapPoiCategory;
|
|
43
|
-
status?: MapPoiStatus;
|
|
44
|
-
latitude: number;
|
|
45
|
-
longitude: number;
|
|
46
|
-
openingHours?: string;
|
|
47
|
-
tags?: string[];
|
|
48
|
-
sortOrder?: number;
|
|
49
|
-
dateFrom?: string;
|
|
50
|
-
dateTo?: string;
|
|
51
|
-
streetIds?: string[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface UpdateMapPoiRequest {
|
|
55
|
-
name?: string;
|
|
56
|
-
description?: string;
|
|
57
|
-
category?: MapPoiCategory;
|
|
58
|
-
status?: MapPoiStatus;
|
|
59
|
-
latitude?: number;
|
|
60
|
-
longitude?: number;
|
|
61
|
-
openingHours?: string | null;
|
|
62
|
-
tags?: string[];
|
|
63
|
-
sortOrder?: number;
|
|
64
|
-
dateFrom?: string | null;
|
|
65
|
-
dateTo?: string | null;
|
|
66
|
-
streetIds?: string[];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface CreateMapZoneRequest {
|
|
70
|
-
name: string;
|
|
71
|
-
type: MapZoneType;
|
|
72
|
-
geoJson: Record<string, unknown>;
|
|
73
|
-
color?: string;
|
|
74
|
-
description?: string;
|
|
75
|
-
dateFrom?: string;
|
|
76
|
-
dateTo?: string;
|
|
77
|
-
streetIds?: string[];
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface UpdateMapZoneRequest {
|
|
81
|
-
name?: string;
|
|
82
|
-
type?: MapZoneType;
|
|
83
|
-
geoJson?: Record<string, unknown>;
|
|
84
|
-
color?: string;
|
|
85
|
-
description?: string;
|
|
86
|
-
dateFrom?: string | null;
|
|
87
|
-
dateTo?: string | null;
|
|
88
|
-
streetIds?: string[];
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface MapZoneSummary {
|
|
92
|
-
id: string;
|
|
93
|
-
mapEventId: string;
|
|
94
|
-
name: string;
|
|
95
|
-
type: MapZoneType;
|
|
96
|
-
geoJson: Record<string, unknown>;
|
|
97
|
-
color?: string | null;
|
|
98
|
-
description?: string | null;
|
|
99
|
-
dateFrom?: string | null;
|
|
100
|
-
dateTo?: string | null;
|
|
101
|
-
streets?: Array<{ street: { id: string; name: string } }>;
|
|
102
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface MapPoiSummary {
|
|
107
|
-
id: string;
|
|
108
|
-
mapEventId: string;
|
|
109
|
-
name: string;
|
|
110
|
-
description?: string | null;
|
|
111
|
-
category: MapPoiCategory;
|
|
112
|
-
status: MapPoiStatus;
|
|
113
|
-
latitude: number;
|
|
114
|
-
longitude: number;
|
|
115
|
-
openingHours?: string | null;
|
|
116
|
-
tags: string[];
|
|
117
|
-
dateFrom?: string | null;
|
|
118
|
-
dateTo?: string | null;
|
|
119
|
-
streets?: Array<{ street: { id: string; name: string } }>;
|
|
120
|
-
sortOrder: number;
|
|
121
|
-
createdAt: string;
|
|
122
|
-
updatedAt: string;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface MapEventSummary {
|
|
126
|
-
id: string;
|
|
127
|
-
title: string;
|
|
128
|
-
description?: string | null;
|
|
129
|
-
type: MapEventType;
|
|
130
|
-
status: MapEventStatus;
|
|
131
|
-
startDate?: string | null;
|
|
132
|
-
endDate?: string | null;
|
|
133
|
-
centerLatitude?: number | null;
|
|
134
|
-
centerLongitude?: number | null;
|
|
135
|
-
defaultZoom?: number | null;
|
|
136
|
-
perimeterGeoJson?: Record<string, unknown> | null;
|
|
137
|
-
cityId?: string | null;
|
|
138
|
-
cityGroupId?: string | null;
|
|
139
|
-
city?: { id: string; name: string } | null;
|
|
140
|
-
cityGroup?: { id: string; name: string } | null;
|
|
141
|
-
pois?: MapPoiSummary[];
|
|
142
|
-
zones?: MapZoneSummary[];
|
|
143
|
-
_count?: { pois: number; zones?: number };
|
|
144
|
-
createdAt: string;
|
|
145
|
-
updatedAt: string;
|
|
146
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
MapEventStatus,
|
|
3
|
+
MapEventType,
|
|
4
|
+
MapPoiCategory,
|
|
5
|
+
MapPoiStatus,
|
|
6
|
+
MapZoneType,
|
|
7
|
+
} from '../enums';
|
|
8
|
+
|
|
9
|
+
export interface CreateMapEventRequest {
|
|
10
|
+
title: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
type?: MapEventType;
|
|
13
|
+
status?: MapEventStatus;
|
|
14
|
+
startDate?: string;
|
|
15
|
+
endDate?: string;
|
|
16
|
+
centerLatitude?: number;
|
|
17
|
+
centerLongitude?: number;
|
|
18
|
+
defaultZoom?: number;
|
|
19
|
+
perimeterGeoJson?: Record<string, unknown> | null;
|
|
20
|
+
cityId?: string;
|
|
21
|
+
cityGroupId?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface UpdateMapEventRequest {
|
|
25
|
+
title?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
type?: MapEventType;
|
|
28
|
+
status?: MapEventStatus;
|
|
29
|
+
startDate?: string | null;
|
|
30
|
+
endDate?: string | null;
|
|
31
|
+
centerLatitude?: number | null;
|
|
32
|
+
centerLongitude?: number | null;
|
|
33
|
+
defaultZoom?: number | null;
|
|
34
|
+
perimeterGeoJson?: Record<string, unknown> | null;
|
|
35
|
+
cityId?: string | null;
|
|
36
|
+
cityGroupId?: string | null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CreateMapPoiRequest {
|
|
40
|
+
name: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
category: MapPoiCategory;
|
|
43
|
+
status?: MapPoiStatus;
|
|
44
|
+
latitude: number;
|
|
45
|
+
longitude: number;
|
|
46
|
+
openingHours?: string;
|
|
47
|
+
tags?: string[];
|
|
48
|
+
sortOrder?: number;
|
|
49
|
+
dateFrom?: string;
|
|
50
|
+
dateTo?: string;
|
|
51
|
+
streetIds?: string[];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface UpdateMapPoiRequest {
|
|
55
|
+
name?: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
category?: MapPoiCategory;
|
|
58
|
+
status?: MapPoiStatus;
|
|
59
|
+
latitude?: number;
|
|
60
|
+
longitude?: number;
|
|
61
|
+
openingHours?: string | null;
|
|
62
|
+
tags?: string[];
|
|
63
|
+
sortOrder?: number;
|
|
64
|
+
dateFrom?: string | null;
|
|
65
|
+
dateTo?: string | null;
|
|
66
|
+
streetIds?: string[];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface CreateMapZoneRequest {
|
|
70
|
+
name: string;
|
|
71
|
+
type: MapZoneType;
|
|
72
|
+
geoJson: Record<string, unknown>;
|
|
73
|
+
color?: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
dateFrom?: string;
|
|
76
|
+
dateTo?: string;
|
|
77
|
+
streetIds?: string[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface UpdateMapZoneRequest {
|
|
81
|
+
name?: string;
|
|
82
|
+
type?: MapZoneType;
|
|
83
|
+
geoJson?: Record<string, unknown>;
|
|
84
|
+
color?: string;
|
|
85
|
+
description?: string;
|
|
86
|
+
dateFrom?: string | null;
|
|
87
|
+
dateTo?: string | null;
|
|
88
|
+
streetIds?: string[];
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface MapZoneSummary {
|
|
92
|
+
id: string;
|
|
93
|
+
mapEventId: string;
|
|
94
|
+
name: string;
|
|
95
|
+
type: MapZoneType;
|
|
96
|
+
geoJson: Record<string, unknown>;
|
|
97
|
+
color?: string | null;
|
|
98
|
+
description?: string | null;
|
|
99
|
+
dateFrom?: string | null;
|
|
100
|
+
dateTo?: string | null;
|
|
101
|
+
streets?: Array<{ street: { id: string; name: string } }>;
|
|
102
|
+
createdAt: string;
|
|
103
|
+
updatedAt: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface MapPoiSummary {
|
|
107
|
+
id: string;
|
|
108
|
+
mapEventId: string;
|
|
109
|
+
name: string;
|
|
110
|
+
description?: string | null;
|
|
111
|
+
category: MapPoiCategory;
|
|
112
|
+
status: MapPoiStatus;
|
|
113
|
+
latitude: number;
|
|
114
|
+
longitude: number;
|
|
115
|
+
openingHours?: string | null;
|
|
116
|
+
tags: string[];
|
|
117
|
+
dateFrom?: string | null;
|
|
118
|
+
dateTo?: string | null;
|
|
119
|
+
streets?: Array<{ street: { id: string; name: string } }>;
|
|
120
|
+
sortOrder: number;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
updatedAt: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface MapEventSummary {
|
|
126
|
+
id: string;
|
|
127
|
+
title: string;
|
|
128
|
+
description?: string | null;
|
|
129
|
+
type: MapEventType;
|
|
130
|
+
status: MapEventStatus;
|
|
131
|
+
startDate?: string | null;
|
|
132
|
+
endDate?: string | null;
|
|
133
|
+
centerLatitude?: number | null;
|
|
134
|
+
centerLongitude?: number | null;
|
|
135
|
+
defaultZoom?: number | null;
|
|
136
|
+
perimeterGeoJson?: Record<string, unknown> | null;
|
|
137
|
+
cityId?: string | null;
|
|
138
|
+
cityGroupId?: string | null;
|
|
139
|
+
city?: { id: string; name: string } | null;
|
|
140
|
+
cityGroup?: { id: string; name: string } | null;
|
|
141
|
+
pois?: MapPoiSummary[];
|
|
142
|
+
zones?: MapZoneSummary[];
|
|
143
|
+
_count?: { pois: number; zones?: number };
|
|
144
|
+
createdAt: string;
|
|
145
|
+
updatedAt: string;
|
|
146
|
+
}
|