From cb812e556a71682843072c8d7f76fecfaa501f5b Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Wed, 14 Dec 2022 20:29:54 -0600 Subject: Deleted unused API models --- .../TrackerMap/client/apis/DevicesApi.kt | 1 - .../TrackerMap/client/apis/ReportsApi.kt | 3 - .../TrackerMap/client/models/Attribute.kt | 35 ------------ .../TrackerMap/client/models/Calendar.kt | 34 ----------- .../TrackerMap/client/models/DeviceAccumulators.kt | 31 ----------- .../trackermap/TrackerMap/client/models/Driver.kt | 33 ----------- .../trackermap/TrackerMap/client/models/Group.kt | 33 ----------- .../TrackerMap/client/models/Maintenance.kt | 37 ------------ .../TrackerMap/client/models/Notification.kt | 41 -------------- .../TrackerMap/client/models/Permission.kt | 48 ---------------- .../TrackerMap/client/models/ReportSummary.kt | 42 -------------- .../TrackerMap/client/models/ReportTrips.kt | 65 ---------------------- .../TrackerMap/client/models/Statistics.kt | 37 ------------ 13 files changed, 440 deletions(-) delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Attribute.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Calendar.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/DeviceAccumulators.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Driver.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Group.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Maintenance.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Notification.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportSummary.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/ReportTrips.kt delete mode 100644 shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Statistics.kt (limited to 'shared') 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 = 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 = 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 = 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 = 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 = 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 -- cgit v1.2.3