aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src/commonMain')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt1
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt3
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Attribute.kt35
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Calendar.kt34
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/DeviceAccumulators.kt31
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Driver.kt33
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Group.kt33
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Maintenance.kt37
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Notification.kt41
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt48
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportSummary.kt42
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportTrips.kt65
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Statistics.kt37
13 files changed, 0 insertions, 440 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt
index 619853c..307ffc8 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/DevicesApi.kt
@@ -13,7 +13,6 @@ package mx.trackermap.TrackerMap.client.apis
import mx.trackermap.TrackerMap.Injectable
import mx.trackermap.TrackerMap.client.models.Device
-import mx.trackermap.TrackerMap.client.models.DeviceAccumulators
import mx.trackermap.TrackerMap.client.infrastructure.*
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt
index ec92526..fdfcedb 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/apis/ReportsApi.kt
@@ -12,13 +12,10 @@
package mx.trackermap.TrackerMap.client.apis
import io.ktor.content.*
-import kotlinx.datetime.LocalDateTime
import mx.trackermap.TrackerMap.Injectable
import mx.trackermap.TrackerMap.client.models.Event
import mx.trackermap.TrackerMap.client.models.Position
import mx.trackermap.TrackerMap.client.models.Stop
-import mx.trackermap.TrackerMap.client.models.ReportSummary
-import mx.trackermap.TrackerMap.client.models.ReportTrips
import mx.trackermap.TrackerMap.client.infrastructure.*
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Attribute.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Attribute.kt
deleted file mode 100644
index 7c139b5..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Attribute.kt
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-
-
-/**
- *
- * @param id
- * @param description
- * @param attribute
- * @param expression
- * @param type String|Number|Boolean
- */
-@Serializable
-data class Attribute (
-
- val id: Int? = null,
- val description: String? = null,
- val attribute: String? = null,
- val expression: String? = null,
- /* String|Number|Boolean */
- val type: String? = null
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Calendar.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Calendar.kt
deleted file mode 100644
index 6501ff4..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Calendar.kt
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-import kotlinx.serialization.json.JsonPrimitive
-
-
-/**
- *
- * @param id
- * @param name
- * @param `data` base64 encoded in iCalendar format
- * @param attributes
- */
-@Serializable
-data class Calendar (
-
- val id: Int? = null,
- val name: String? = null,
- /* base64 encoded in iCalendar format */
- val `data`: String? = null,
- val attributes: Map<String, JsonPrimitive> = mapOf()
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/DeviceAccumulators.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/DeviceAccumulators.kt
deleted file mode 100644
index 87cb0a7..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/DeviceAccumulators.kt
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-
-
-/**
- *
- * @param deviceId
- * @param totalDistance in meters
- * @param hours
- */
-@Serializable
-data class DeviceAccumulators (
-
- val deviceId: Int? = null,
- /* in meters */
- val totalDistance: Double? = null,
- val hours: Long? = null
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Driver.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Driver.kt
deleted file mode 100644
index 309e4b9..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Driver.kt
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-import kotlinx.serialization.json.JsonPrimitive
-
-
-/**
- *
- * @param id
- * @param name
- * @param uniqueId
- * @param attributes
- */
-@Serializable
-data class Driver (
-
- val id: Int? = null,
- val name: String? = null,
- val uniqueId: String? = null,
- val attributes: Map<String, JsonPrimitive> = mapOf()
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Group.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Group.kt
deleted file mode 100644
index 6ab32cd..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Group.kt
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-import kotlinx.serialization.json.JsonPrimitive
-
-
-/**
- *
- * @param id
- * @param name
- * @param groupId
- * @param attributes
- */
-@Serializable
-data class Group (
-
- val id: Int? = null,
- val name: String? = null,
- val groupId: Int? = null,
- val attributes: Map<String, JsonPrimitive> = mapOf()
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Maintenance.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Maintenance.kt
deleted file mode 100644
index 1979e1a..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Maintenance.kt
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-import kotlinx.serialization.json.JsonPrimitive
-
-
-/**
- *
- * @param id
- * @param name
- * @param type
- * @param start
- * @param period
- * @param attributes
- */
-@Serializable
-data class Maintenance (
-
- val id: Int? = null,
- val name: String? = null,
- val type: String? = null,
- val start: Double? = null,
- val period: Double? = null,
- val attributes: Map<String, JsonPrimitive> = mapOf()
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Notification.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Notification.kt
deleted file mode 100644
index eb35ecd..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Notification.kt
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-import kotlinx.serialization.json.JsonPrimitive
-
-
-/**
- *
- * @param id
- * @param type
- * @param always
- * @param web
- * @param mail
- * @param sms
- * @param calendarId
- * @param attributes
- */
-@Serializable
-data class Notification (
-
- val id: Int? = null,
- val type: String? = null,
- val always: Boolean? = null,
- val web: Boolean? = null,
- val mail: Boolean? = null,
- val sms: Boolean? = null,
- val calendarId: Int? = null,
- val attributes: Map<String, JsonPrimitive> = mapOf()
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt
deleted file mode 100644
index 0d1be29..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-
-
-/**
- * This is a permission map that contain two object indexes. It is used to link/unlink objects. Order is important. Example: { deviceId:8, geofenceId: 16 }
- * @param userId User Id, can be only first parameter
- * @param deviceId Device Id, can be first parameter or second only in combination with userId
- * @param groupId Group Id, can be first parameter or second only in combination with userId
- * @param geofenceId Geofence Id, can be second parameter only
- * @param calendarId Calendar Id, can be second parameter only and only in combination with userId
- * @param attributeId Computed Attribute Id, can be second parameter only
- * @param driverId Driver Id, can be second parameter only
- * @param managedUserId User Id, can be second parameter only and only in combination with userId
- */
-@Serializable
-data class Permission (
-
- /* User Id, can be only first parameter */
- val userId: Int? = null,
- /* Device Id, can be first parameter or second only in combination with userId */
- val deviceId: Int? = null,
- /* Group Id, can be first parameter or second only in combination with userId */
- val groupId: Int? = null,
- /* Geofence Id, can be second parameter only */
- val geofenceId: Int? = null,
- /* Calendar Id, can be second parameter only and only in combination with userId */
- val calendarId: Int? = null,
- /* Computed Attribute Id, can be second parameter only */
- val attributeId: Int? = null,
- /* Driver Id, can be second parameter only */
- val driverId: Int? = null,
- /* User Id, can be second parameter only and only in combination with userId */
- val managedUserId: Int? = null
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportSummary.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportSummary.kt
deleted file mode 100644
index 25f5b9d..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportSummary.kt
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-
-
-/**
- *
- * @param deviceId
- * @param deviceName
- * @param maxSpeed in knots
- * @param averageSpeed in knots
- * @param distance in meters
- * @param spentFuel in liters
- * @param engineHours
- */
-@Serializable
-data class ReportSummary (
-
- val deviceId: Int? = null,
- val deviceName: String? = null,
- /* in knots */
- val maxSpeed: Double? = null,
- /* in knots */
- val averageSpeed: Double? = null,
- /* in meters */
- val distance: Double? = null,
- /* in liters */
- val spentFuel: Double? = null,
- val engineHours: Double? = null
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportTrips.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportTrips.kt
deleted file mode 100644
index 666b2ad..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportTrips.kt
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.datetime.LocalDateTime
-import kotlinx.serialization.Serializable
-
-
-/**
- *
- * @param deviceId
- * @param deviceName
- * @param maxSpeed in knots
- * @param averageSpeed in knots
- * @param distance in meters
- * @param spentFuel in liters
- * @param duration
- * @param startTime in IS0 8601 format. eg. `1963-11-22T18:30:00Z`
- * @param startAddress
- * @param startLat
- * @param startLon
- * @param endTime in IS0 8601 format. eg. `1963-11-22T18:30:00Z`
- * @param endAddress
- * @param endLat
- * @param endLon
- * @param driverUniqueId
- * @param driverName
- */
-@Serializable
-data class ReportTrips (
-
- val deviceId: Int? = null,
- val deviceName: String? = null,
- /* in knots */
- val maxSpeed: Double? = null,
- /* in knots */
- val averageSpeed: Double? = null,
- /* in meters */
- val distance: Double? = null,
- /* in liters */
- val spentFuel: Double? = null,
- val duration: Int? = null,
- /* in IS0 8601 format. eg. `1963-11-22T18:30:00Z` */
- val startTime: String? = null,
- val startAddress: String? = null,
- val startLat: Double? = null,
- val startLon: Double? = null,
- /* in IS0 8601 format. eg. `1963-11-22T18:30:00Z` */
- val endTime: String? = null,
- val endAddress: String? = null,
- val endLat: Double? = null,
- val endLon: Double? = null,
- val driverUniqueId: Int? = null,
- val driverName: String? = null
-) {
-} \ No newline at end of file
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Statistics.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Statistics.kt
deleted file mode 100644
index 4ad71ce..0000000
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Statistics.kt
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Traccar
- * Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
- *
- * OpenAPI spec version: 4.14
- * Contact: support@traccar.org
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-package mx.trackermap.TrackerMap.client.models
-
-import kotlinx.serialization.Serializable
-
-
-/**
- *
- * @param captureTime in IS0 8601 format. eg. `1963-11-22T18:30:00Z`
- * @param activeUsers
- * @param activeDevices
- * @param requests
- * @param messagesReceived
- * @param messagesStored
- */
-@Serializable
-data class Statistics (
-
- /* in IS0 8601 format. eg. `1963-11-22T18:30:00Z` */
- val captureTime: String? = null,
- val activeUsers: Int? = null,
- val activeDevices: Int? = null,
- val requests: Int? = null,
- val messagesReceived: Int? = null,
- val messagesStored: Int? = null
-) {
-} \ No newline at end of file