@reor/tripper-api-client 0.0.1 → 0.0.3

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.
@@ -1,2 +1,2 @@
1
- export { createLocation, get, getLocationsWithinBoundingBox, type Options } from './sdk.gen';
2
- export type { ClientOptions, CreateLocationData, CreateLocationError, CreateLocationErrors, CreateLocationRequest, CreateLocationResponse, CreateLocationResponses, GetData, GetLocationsWithinBoundingBoxData, GetLocationsWithinBoundingBoxError, GetLocationsWithinBoundingBoxErrors, GetLocationsWithinBoundingBoxResponse, GetLocationsWithinBoundingBoxResponses, GetResponse, GetResponses, JsonElement, LocationResponse, ProblemDetails } from './types.gen';
1
+ export { createLocation, createLocationType, deleteLocationType, get, getLocationsWithinBoundingBox, getLocationTypeById, getLocationTypes, getRouteById, getRoutesWithinBoundingBox, getRouteTrack, type Options, updateLocationTypeIcon, updateLocationTypeName, uploadRoute } from './sdk.gen';
2
+ export type { ClientOptions, CreateLocationData, CreateLocationError, CreateLocationErrors, CreateLocationRequest, CreateLocationResponse, CreateLocationResponses, CreateLocationTypeData, CreateLocationTypeError, CreateLocationTypeErrors, CreateLocationTypeRequest, CreateLocationTypeResponse, CreateLocationTypeResponses, DeleteLocationTypeData, DeleteLocationTypeError, DeleteLocationTypeErrors, DeleteLocationTypeResponse, DeleteLocationTypeResponses, GetData, GetLocationsWithinBoundingBoxData, GetLocationsWithinBoundingBoxError, GetLocationsWithinBoundingBoxErrors, GetLocationsWithinBoundingBoxResponse, GetLocationsWithinBoundingBoxResponses, GetLocationTypeByIdData, GetLocationTypeByIdErrors, GetLocationTypeByIdResponse, GetLocationTypeByIdResponses, GetLocationTypesData, GetLocationTypesErrors, GetLocationTypesResponse, GetLocationTypesResponses, GetResponse, GetResponses, GetRouteByIdData, GetRouteByIdErrors, GetRouteByIdResponse, GetRouteByIdResponses, GetRoutesWithinBoundingBoxData, GetRoutesWithinBoundingBoxError, GetRoutesWithinBoundingBoxErrors, GetRoutesWithinBoundingBoxResponse, GetRoutesWithinBoundingBoxResponses, GetRouteTrackData, GetRouteTrackErrors, GetRouteTrackResponse, GetRouteTrackResponses, IFormFile, JsonElement, LocationResponse, LocationTypeResponse, LocationTypeSummaryResponse, ProblemDetails, RouteDetailsResponse, RouteSummaryResponse, RouteTrackResponse, RouteUploadRequest, UpdateLocationTypeIconData, UpdateLocationTypeIconError, UpdateLocationTypeIconErrors, UpdateLocationTypeIconRequest, UpdateLocationTypeIconResponse, UpdateLocationTypeIconResponses, UpdateLocationTypeNameData, UpdateLocationTypeNameError, UpdateLocationTypeNameErrors, UpdateLocationTypeNameRequest, UpdateLocationTypeNameResponse, UpdateLocationTypeNameResponses, UploadRouteData, UploadRouteError, UploadRouteErrors, UploadRouteResponse, UploadRouteResponses } from './types.gen';
@@ -1,8 +1,18 @@
1
1
  "use strict";
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.getLocationsWithinBoundingBox = exports.get = exports.createLocation = void 0;
4
+ exports.uploadRoute = exports.updateLocationTypeName = exports.updateLocationTypeIcon = exports.getRouteTrack = exports.getRoutesWithinBoundingBox = exports.getRouteById = exports.getLocationTypes = exports.getLocationTypeById = exports.getLocationsWithinBoundingBox = exports.get = exports.deleteLocationType = exports.createLocationType = exports.createLocation = void 0;
5
5
  var sdk_gen_1 = require("./sdk.gen");
6
6
  Object.defineProperty(exports, "createLocation", { enumerable: true, get: function () { return sdk_gen_1.createLocation; } });
7
+ Object.defineProperty(exports, "createLocationType", { enumerable: true, get: function () { return sdk_gen_1.createLocationType; } });
8
+ Object.defineProperty(exports, "deleteLocationType", { enumerable: true, get: function () { return sdk_gen_1.deleteLocationType; } });
7
9
  Object.defineProperty(exports, "get", { enumerable: true, get: function () { return sdk_gen_1.get; } });
8
10
  Object.defineProperty(exports, "getLocationsWithinBoundingBox", { enumerable: true, get: function () { return sdk_gen_1.getLocationsWithinBoundingBox; } });
11
+ Object.defineProperty(exports, "getLocationTypeById", { enumerable: true, get: function () { return sdk_gen_1.getLocationTypeById; } });
12
+ Object.defineProperty(exports, "getLocationTypes", { enumerable: true, get: function () { return sdk_gen_1.getLocationTypes; } });
13
+ Object.defineProperty(exports, "getRouteById", { enumerable: true, get: function () { return sdk_gen_1.getRouteById; } });
14
+ Object.defineProperty(exports, "getRoutesWithinBoundingBox", { enumerable: true, get: function () { return sdk_gen_1.getRoutesWithinBoundingBox; } });
15
+ Object.defineProperty(exports, "getRouteTrack", { enumerable: true, get: function () { return sdk_gen_1.getRouteTrack; } });
16
+ Object.defineProperty(exports, "updateLocationTypeIcon", { enumerable: true, get: function () { return sdk_gen_1.updateLocationTypeIcon; } });
17
+ Object.defineProperty(exports, "updateLocationTypeName", { enumerable: true, get: function () { return sdk_gen_1.updateLocationTypeName; } });
18
+ Object.defineProperty(exports, "uploadRoute", { enumerable: true, get: function () { return sdk_gen_1.uploadRoute; } });
@@ -1,5 +1,5 @@
1
- import type { Client, Options as Options2, TDataShape } from './client';
2
- import type { CreateLocationData, CreateLocationErrors, CreateLocationResponses, GetData, GetLocationsWithinBoundingBoxData, GetLocationsWithinBoundingBoxErrors, GetLocationsWithinBoundingBoxResponses, GetResponses } from './types.gen';
1
+ import { type Client, type Options as Options2, type TDataShape } from './client';
2
+ import type { CreateLocationData, CreateLocationErrors, CreateLocationResponses, CreateLocationTypeData, CreateLocationTypeErrors, CreateLocationTypeResponses, DeleteLocationTypeData, DeleteLocationTypeErrors, DeleteLocationTypeResponses, GetData, GetLocationsWithinBoundingBoxData, GetLocationsWithinBoundingBoxErrors, GetLocationsWithinBoundingBoxResponses, GetLocationTypeByIdData, GetLocationTypeByIdErrors, GetLocationTypeByIdResponses, GetLocationTypesData, GetLocationTypesErrors, GetLocationTypesResponses, GetResponses, GetRouteByIdData, GetRouteByIdErrors, GetRouteByIdResponses, GetRoutesWithinBoundingBoxData, GetRoutesWithinBoundingBoxErrors, GetRoutesWithinBoundingBoxResponses, GetRouteTrackData, GetRouteTrackErrors, GetRouteTrackResponses, UpdateLocationTypeIconData, UpdateLocationTypeIconErrors, UpdateLocationTypeIconResponses, UpdateLocationTypeNameData, UpdateLocationTypeNameErrors, UpdateLocationTypeNameResponses, UploadRouteData, UploadRouteErrors, UploadRouteResponses } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -26,3 +26,63 @@ export declare const getLocationsWithinBoundingBox: <ThrowOnError extends boolea
26
26
  * Creates a location owned by the authenticated user from a GeoJSON geometry.
27
27
  */
28
28
  export declare const createLocation: <ThrowOnError extends boolean = false>(options: Options<CreateLocationData, ThrowOnError>) => import("./client").RequestResult<CreateLocationResponses, CreateLocationErrors, ThrowOnError, "fields">;
29
+ /**
30
+ * Get all location types
31
+ *
32
+ * Returns the id and name of every location type.
33
+ */
34
+ export declare const getLocationTypes: <ThrowOnError extends boolean = false>(options?: Options<GetLocationTypesData, ThrowOnError>) => import("./client").RequestResult<GetLocationTypesResponses, GetLocationTypesErrors, ThrowOnError, "fields">;
35
+ /**
36
+ * Create a location type
37
+ *
38
+ * Creates a location type with a name and an icon identifier (e.g. "house" or "boat").
39
+ */
40
+ export declare const createLocationType: <ThrowOnError extends boolean = false>(options: Options<CreateLocationTypeData, ThrowOnError>) => import("./client").RequestResult<CreateLocationTypeResponses, CreateLocationTypeErrors, ThrowOnError, "fields">;
41
+ /**
42
+ * Delete a location type
43
+ *
44
+ * Deletes the specified location type.
45
+ */
46
+ export declare const deleteLocationType: <ThrowOnError extends boolean = false>(options: Options<DeleteLocationTypeData, ThrowOnError>) => import("./client").RequestResult<DeleteLocationTypeResponses, DeleteLocationTypeErrors, ThrowOnError, "fields">;
47
+ /**
48
+ * Get a location type
49
+ *
50
+ * Returns all details of the specified location type.
51
+ */
52
+ export declare const getLocationTypeById: <ThrowOnError extends boolean = false>(options: Options<GetLocationTypeByIdData, ThrowOnError>) => import("./client").RequestResult<GetLocationTypeByIdResponses, GetLocationTypeByIdErrors, ThrowOnError, "fields">;
53
+ /**
54
+ * Change the name of a location type
55
+ *
56
+ * Changes the name of the specified location type.
57
+ */
58
+ export declare const updateLocationTypeName: <ThrowOnError extends boolean = false>(options: Options<UpdateLocationTypeNameData, ThrowOnError>) => import("./client").RequestResult<UpdateLocationTypeNameResponses, UpdateLocationTypeNameErrors, ThrowOnError, "fields">;
59
+ /**
60
+ * Change the icon of a location type
61
+ *
62
+ * Changes the icon identifier (e.g. "house" or "boat") of the specified location type.
63
+ */
64
+ export declare const updateLocationTypeIcon: <ThrowOnError extends boolean = false>(options: Options<UpdateLocationTypeIconData, ThrowOnError>) => import("./client").RequestResult<UpdateLocationTypeIconResponses, UpdateLocationTypeIconErrors, ThrowOnError, "fields">;
65
+ /**
66
+ * Get routes within a bounding box
67
+ *
68
+ * Returns routes owned by the authenticated user that intersect the supplied WGS84 bounding box.
69
+ */
70
+ export declare const getRoutesWithinBoundingBox: <ThrowOnError extends boolean = false>(options: Options<GetRoutesWithinBoundingBoxData, ThrowOnError>) => import("./client").RequestResult<GetRoutesWithinBoundingBoxResponses, GetRoutesWithinBoundingBoxErrors, ThrowOnError, "fields">;
71
+ /**
72
+ * Upload a route file
73
+ *
74
+ * Parses and stores a route file (GPX only for now) owned by the authenticated user.
75
+ */
76
+ export declare const uploadRoute: <ThrowOnError extends boolean = false>(options: Options<UploadRouteData, ThrowOnError>) => import("./client").RequestResult<UploadRouteResponses, UploadRouteErrors, ThrowOnError, "fields">;
77
+ /**
78
+ * Get route details
79
+ *
80
+ * Returns the details and calculated metrics of a route owned by the authenticated user, excluding track points.
81
+ */
82
+ export declare const getRouteById: <ThrowOnError extends boolean = false>(options: Options<GetRouteByIdData, ThrowOnError>) => import("./client").RequestResult<GetRouteByIdResponses, GetRouteByIdErrors, ThrowOnError, "fields">;
83
+ /**
84
+ * Get a route's track
85
+ *
86
+ * Returns the id, name, GeoJSON track, and point count of a route owned by the authenticated user.
87
+ */
88
+ export declare const getRouteTrack: <ThrowOnError extends boolean = false>(options: Options<GetRouteTrackData, ThrowOnError>) => import("./client").RequestResult<GetRouteTrackResponses, GetRouteTrackErrors, ThrowOnError, "fields">;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.createLocation = exports.getLocationsWithinBoundingBox = exports.get = void 0;
4
+ exports.getRouteTrack = exports.getRouteById = exports.uploadRoute = exports.getRoutesWithinBoundingBox = exports.updateLocationTypeIcon = exports.updateLocationTypeName = exports.getLocationTypeById = exports.deleteLocationType = exports.createLocationType = exports.getLocationTypes = exports.createLocation = exports.getLocationsWithinBoundingBox = exports.get = void 0;
5
+ const client_1 = require("./client");
5
6
  const client_gen_1 = require("./client.gen");
6
7
  const get = (options) => (options?.client ?? client_gen_1.client).get({
7
8
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -35,3 +36,130 @@ const createLocation = (options) => (options.client ?? client_gen_1.client).post
35
36
  }
36
37
  });
37
38
  exports.createLocation = createLocation;
39
+ /**
40
+ * Get all location types
41
+ *
42
+ * Returns the id and name of every location type.
43
+ */
44
+ const getLocationTypes = (options) => (options?.client ?? client_gen_1.client).get({
45
+ security: [{ scheme: 'bearer', type: 'http' }],
46
+ url: '/location-type',
47
+ ...options
48
+ });
49
+ exports.getLocationTypes = getLocationTypes;
50
+ /**
51
+ * Create a location type
52
+ *
53
+ * Creates a location type with a name and an icon identifier (e.g. "house" or "boat").
54
+ */
55
+ const createLocationType = (options) => (options.client ?? client_gen_1.client).post({
56
+ security: [{ scheme: 'bearer', type: 'http' }],
57
+ url: '/location-type',
58
+ ...options,
59
+ headers: {
60
+ 'Content-Type': 'application/json',
61
+ ...options.headers
62
+ }
63
+ });
64
+ exports.createLocationType = createLocationType;
65
+ /**
66
+ * Delete a location type
67
+ *
68
+ * Deletes the specified location type.
69
+ */
70
+ const deleteLocationType = (options) => (options.client ?? client_gen_1.client).delete({
71
+ security: [{ scheme: 'bearer', type: 'http' }],
72
+ url: '/location-type/{id}',
73
+ ...options
74
+ });
75
+ exports.deleteLocationType = deleteLocationType;
76
+ /**
77
+ * Get a location type
78
+ *
79
+ * Returns all details of the specified location type.
80
+ */
81
+ const getLocationTypeById = (options) => (options.client ?? client_gen_1.client).get({
82
+ security: [{ scheme: 'bearer', type: 'http' }],
83
+ url: '/location-type/{id}',
84
+ ...options
85
+ });
86
+ exports.getLocationTypeById = getLocationTypeById;
87
+ /**
88
+ * Change the name of a location type
89
+ *
90
+ * Changes the name of the specified location type.
91
+ */
92
+ const updateLocationTypeName = (options) => (options.client ?? client_gen_1.client).patch({
93
+ security: [{ scheme: 'bearer', type: 'http' }],
94
+ url: '/location-type/{id}/name',
95
+ ...options,
96
+ headers: {
97
+ 'Content-Type': 'application/json',
98
+ ...options.headers
99
+ }
100
+ });
101
+ exports.updateLocationTypeName = updateLocationTypeName;
102
+ /**
103
+ * Change the icon of a location type
104
+ *
105
+ * Changes the icon identifier (e.g. "house" or "boat") of the specified location type.
106
+ */
107
+ const updateLocationTypeIcon = (options) => (options.client ?? client_gen_1.client).patch({
108
+ security: [{ scheme: 'bearer', type: 'http' }],
109
+ url: '/location-type/{id}/icon',
110
+ ...options,
111
+ headers: {
112
+ 'Content-Type': 'application/json',
113
+ ...options.headers
114
+ }
115
+ });
116
+ exports.updateLocationTypeIcon = updateLocationTypeIcon;
117
+ /**
118
+ * Get routes within a bounding box
119
+ *
120
+ * Returns routes owned by the authenticated user that intersect the supplied WGS84 bounding box.
121
+ */
122
+ const getRoutesWithinBoundingBox = (options) => (options.client ?? client_gen_1.client).get({
123
+ security: [{ scheme: 'bearer', type: 'http' }],
124
+ url: '/route',
125
+ ...options
126
+ });
127
+ exports.getRoutesWithinBoundingBox = getRoutesWithinBoundingBox;
128
+ /**
129
+ * Upload a route file
130
+ *
131
+ * Parses and stores a route file (GPX only for now) owned by the authenticated user.
132
+ */
133
+ const uploadRoute = (options) => (options.client ?? client_gen_1.client).post({
134
+ ...client_1.formDataBodySerializer,
135
+ security: [{ scheme: 'bearer', type: 'http' }],
136
+ url: '/upload/route',
137
+ ...options,
138
+ headers: {
139
+ 'Content-Type': null,
140
+ ...options.headers
141
+ }
142
+ });
143
+ exports.uploadRoute = uploadRoute;
144
+ /**
145
+ * Get route details
146
+ *
147
+ * Returns the details and calculated metrics of a route owned by the authenticated user, excluding track points.
148
+ */
149
+ const getRouteById = (options) => (options.client ?? client_gen_1.client).get({
150
+ security: [{ scheme: 'bearer', type: 'http' }],
151
+ url: '/route/{id}',
152
+ ...options
153
+ });
154
+ exports.getRouteById = getRouteById;
155
+ /**
156
+ * Get a route's track
157
+ *
158
+ * Returns the id, name, GeoJSON track, and point count of a route owned by the authenticated user.
159
+ */
160
+ const getRouteTrack = (options) => (options.client ?? client_gen_1.client).get({
161
+ security: [{ scheme: 'bearer', type: 'http' }],
162
+ url: '/route/{id}/track',
163
+ ...options
164
+ });
165
+ exports.getRouteTrack = getRouteTrack;
@@ -6,6 +6,11 @@ export type CreateLocationRequest = {
6
6
  geometry: JsonElement;
7
7
  parentLocationId?: null | string;
8
8
  };
9
+ export type CreateLocationTypeRequest = {
10
+ name: string;
11
+ icon: string;
12
+ };
13
+ export type IFormFile = Blob | File;
9
14
  export type JsonElement = unknown;
10
15
  export type LocationResponse = {
11
16
  id: string;
@@ -15,6 +20,18 @@ export type LocationResponse = {
15
20
  createdAt: string;
16
21
  updatedAt: string;
17
22
  };
23
+ export type LocationTypeResponse = {
24
+ id: string;
25
+ name: string;
26
+ icon: string;
27
+ createdAt: string;
28
+ updatedAt: string;
29
+ };
30
+ export type LocationTypeSummaryResponse = {
31
+ id: string;
32
+ name: string;
33
+ icon: string;
34
+ };
18
35
  export type ProblemDetails = {
19
36
  type?: null | string;
20
37
  title?: null | string;
@@ -22,6 +39,40 @@ export type ProblemDetails = {
22
39
  detail?: null | string;
23
40
  instance?: null | string;
24
41
  };
42
+ export type RouteDetailsResponse = {
43
+ id: string;
44
+ name: string;
45
+ originalFileName: string;
46
+ originalFileSourceFormat: string;
47
+ totalDistanceMeters: number | string;
48
+ totalDisplacementMeters: number | string;
49
+ totalDurationSeconds: number | string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ };
53
+ export type RouteSummaryResponse = {
54
+ id: string;
55
+ name: string;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ };
59
+ export type RouteTrackResponse = {
60
+ id: string;
61
+ name: string;
62
+ geometry: JsonElement;
63
+ pointCount: number | string;
64
+ };
65
+ export type RouteUploadRequest = {
66
+ file?: IFormFile;
67
+ name?: string;
68
+ extension?: null | string;
69
+ };
70
+ export type UpdateLocationTypeIconRequest = {
71
+ icon: string;
72
+ };
73
+ export type UpdateLocationTypeNameRequest = {
74
+ name: string;
75
+ };
25
76
  export type GetData = {
26
77
  body?: never;
27
78
  path?: never;
@@ -92,3 +143,280 @@ export type CreateLocationResponses = {
92
143
  201: LocationResponse;
93
144
  };
94
145
  export type CreateLocationResponse = CreateLocationResponses[keyof CreateLocationResponses];
146
+ export type GetLocationTypesData = {
147
+ body?: never;
148
+ path?: never;
149
+ query?: never;
150
+ url: '/location-type';
151
+ };
152
+ export type GetLocationTypesErrors = {
153
+ /**
154
+ * Unauthorized
155
+ */
156
+ 401: unknown;
157
+ };
158
+ export type GetLocationTypesResponses = {
159
+ /**
160
+ * OK
161
+ */
162
+ 200: Array<LocationTypeSummaryResponse>;
163
+ };
164
+ export type GetLocationTypesResponse = GetLocationTypesResponses[keyof GetLocationTypesResponses];
165
+ export type CreateLocationTypeData = {
166
+ body: CreateLocationTypeRequest;
167
+ path?: never;
168
+ query?: never;
169
+ url: '/location-type';
170
+ };
171
+ export type CreateLocationTypeErrors = {
172
+ /**
173
+ * Bad Request
174
+ */
175
+ 400: ProblemDetails;
176
+ /**
177
+ * Unauthorized
178
+ */
179
+ 401: unknown;
180
+ /**
181
+ * Service Unavailable
182
+ */
183
+ 503: ProblemDetails;
184
+ };
185
+ export type CreateLocationTypeError = CreateLocationTypeErrors[keyof CreateLocationTypeErrors];
186
+ export type CreateLocationTypeResponses = {
187
+ /**
188
+ * Created
189
+ */
190
+ 201: LocationTypeResponse;
191
+ };
192
+ export type CreateLocationTypeResponse = CreateLocationTypeResponses[keyof CreateLocationTypeResponses];
193
+ export type DeleteLocationTypeData = {
194
+ body?: never;
195
+ path: {
196
+ id: string;
197
+ };
198
+ query?: never;
199
+ url: '/location-type/{id}';
200
+ };
201
+ export type DeleteLocationTypeErrors = {
202
+ /**
203
+ * Unauthorized
204
+ */
205
+ 401: unknown;
206
+ /**
207
+ * Not Found
208
+ */
209
+ 404: unknown;
210
+ /**
211
+ * Service Unavailable
212
+ */
213
+ 503: ProblemDetails;
214
+ };
215
+ export type DeleteLocationTypeError = DeleteLocationTypeErrors[keyof DeleteLocationTypeErrors];
216
+ export type DeleteLocationTypeResponses = {
217
+ /**
218
+ * No Content
219
+ */
220
+ 204: void;
221
+ };
222
+ export type DeleteLocationTypeResponse = DeleteLocationTypeResponses[keyof DeleteLocationTypeResponses];
223
+ export type GetLocationTypeByIdData = {
224
+ body?: never;
225
+ path: {
226
+ id: string;
227
+ };
228
+ query?: never;
229
+ url: '/location-type/{id}';
230
+ };
231
+ export type GetLocationTypeByIdErrors = {
232
+ /**
233
+ * Unauthorized
234
+ */
235
+ 401: unknown;
236
+ /**
237
+ * Not Found
238
+ */
239
+ 404: unknown;
240
+ };
241
+ export type GetLocationTypeByIdResponses = {
242
+ /**
243
+ * OK
244
+ */
245
+ 200: LocationTypeResponse;
246
+ };
247
+ export type GetLocationTypeByIdResponse = GetLocationTypeByIdResponses[keyof GetLocationTypeByIdResponses];
248
+ export type UpdateLocationTypeNameData = {
249
+ body: UpdateLocationTypeNameRequest;
250
+ path: {
251
+ id: string;
252
+ };
253
+ query?: never;
254
+ url: '/location-type/{id}/name';
255
+ };
256
+ export type UpdateLocationTypeNameErrors = {
257
+ /**
258
+ * Bad Request
259
+ */
260
+ 400: ProblemDetails;
261
+ /**
262
+ * Unauthorized
263
+ */
264
+ 401: unknown;
265
+ /**
266
+ * Not Found
267
+ */
268
+ 404: unknown;
269
+ /**
270
+ * Service Unavailable
271
+ */
272
+ 503: ProblemDetails;
273
+ };
274
+ export type UpdateLocationTypeNameError = UpdateLocationTypeNameErrors[keyof UpdateLocationTypeNameErrors];
275
+ export type UpdateLocationTypeNameResponses = {
276
+ /**
277
+ * OK
278
+ */
279
+ 200: LocationTypeResponse;
280
+ };
281
+ export type UpdateLocationTypeNameResponse = UpdateLocationTypeNameResponses[keyof UpdateLocationTypeNameResponses];
282
+ export type UpdateLocationTypeIconData = {
283
+ body: UpdateLocationTypeIconRequest;
284
+ path: {
285
+ id: string;
286
+ };
287
+ query?: never;
288
+ url: '/location-type/{id}/icon';
289
+ };
290
+ export type UpdateLocationTypeIconErrors = {
291
+ /**
292
+ * Bad Request
293
+ */
294
+ 400: ProblemDetails;
295
+ /**
296
+ * Unauthorized
297
+ */
298
+ 401: unknown;
299
+ /**
300
+ * Not Found
301
+ */
302
+ 404: unknown;
303
+ /**
304
+ * Service Unavailable
305
+ */
306
+ 503: ProblemDetails;
307
+ };
308
+ export type UpdateLocationTypeIconError = UpdateLocationTypeIconErrors[keyof UpdateLocationTypeIconErrors];
309
+ export type UpdateLocationTypeIconResponses = {
310
+ /**
311
+ * OK
312
+ */
313
+ 200: LocationTypeResponse;
314
+ };
315
+ export type UpdateLocationTypeIconResponse = UpdateLocationTypeIconResponses[keyof UpdateLocationTypeIconResponses];
316
+ export type GetRoutesWithinBoundingBoxData = {
317
+ body?: never;
318
+ path?: never;
319
+ query: {
320
+ minLongitude: number | string;
321
+ minLatitude: number | string;
322
+ maxLongitude: number | string;
323
+ maxLatitude: number | string;
324
+ };
325
+ url: '/route';
326
+ };
327
+ export type GetRoutesWithinBoundingBoxErrors = {
328
+ /**
329
+ * Bad Request
330
+ */
331
+ 400: ProblemDetails;
332
+ /**
333
+ * Unauthorized
334
+ */
335
+ 401: unknown;
336
+ };
337
+ export type GetRoutesWithinBoundingBoxError = GetRoutesWithinBoundingBoxErrors[keyof GetRoutesWithinBoundingBoxErrors];
338
+ export type GetRoutesWithinBoundingBoxResponses = {
339
+ /**
340
+ * OK
341
+ */
342
+ 200: Array<RouteSummaryResponse>;
343
+ };
344
+ export type GetRoutesWithinBoundingBoxResponse = GetRoutesWithinBoundingBoxResponses[keyof GetRoutesWithinBoundingBoxResponses];
345
+ export type UploadRouteData = {
346
+ body: RouteUploadRequest;
347
+ path?: never;
348
+ query?: never;
349
+ url: '/upload/route';
350
+ };
351
+ export type UploadRouteErrors = {
352
+ /**
353
+ * Bad Request
354
+ */
355
+ 400: ProblemDetails;
356
+ /**
357
+ * Unauthorized
358
+ */
359
+ 401: unknown;
360
+ /**
361
+ * Service Unavailable
362
+ */
363
+ 503: ProblemDetails;
364
+ };
365
+ export type UploadRouteError = UploadRouteErrors[keyof UploadRouteErrors];
366
+ export type UploadRouteResponses = {
367
+ /**
368
+ * Created
369
+ */
370
+ 201: RouteSummaryResponse;
371
+ };
372
+ export type UploadRouteResponse = UploadRouteResponses[keyof UploadRouteResponses];
373
+ export type GetRouteByIdData = {
374
+ body?: never;
375
+ path: {
376
+ id: string;
377
+ };
378
+ query?: never;
379
+ url: '/route/{id}';
380
+ };
381
+ export type GetRouteByIdErrors = {
382
+ /**
383
+ * Unauthorized
384
+ */
385
+ 401: unknown;
386
+ /**
387
+ * Not Found
388
+ */
389
+ 404: unknown;
390
+ };
391
+ export type GetRouteByIdResponses = {
392
+ /**
393
+ * OK
394
+ */
395
+ 200: RouteDetailsResponse;
396
+ };
397
+ export type GetRouteByIdResponse = GetRouteByIdResponses[keyof GetRouteByIdResponses];
398
+ export type GetRouteTrackData = {
399
+ body?: never;
400
+ path: {
401
+ id: string;
402
+ };
403
+ query?: never;
404
+ url: '/route/{id}/track';
405
+ };
406
+ export type GetRouteTrackErrors = {
407
+ /**
408
+ * Unauthorized
409
+ */
410
+ 401: unknown;
411
+ /**
412
+ * Not Found
413
+ */
414
+ 404: unknown;
415
+ };
416
+ export type GetRouteTrackResponses = {
417
+ /**
418
+ * OK
419
+ */
420
+ 200: RouteTrackResponse;
421
+ };
422
+ export type GetRouteTrackResponse = GetRouteTrackResponses[keyof GetRouteTrackResponses];
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@reor/tripper-api-client",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Generated TypeScript client for the Tripper API",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/reorsoftware/Reor.Software.Tripper"
8
+ },
5
9
  "main": "dist/index.js",
6
10
  "types": "dist/index.d.ts",
7
11
  "files": [