@bikefinder/api-client 0.3.0 → 0.4.0
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/README.md +3 -1
- package/dist/admin/generated/index.d.ts +1 -1
- package/dist/admin/generated/index.d.ts.map +1 -1
- package/dist/admin/generated/sdk.gen.d.ts +132 -18
- package/dist/admin/generated/sdk.gen.d.ts.map +1 -1
- package/dist/admin/generated/sdk.gen.js +264 -150
- package/dist/admin/generated/sdk.gen.js.map +1 -1
- package/dist/admin/generated/types.gen.d.ts +791 -385
- package/dist/admin/generated/types.gen.d.ts.map +1 -1
- package/dist/admin/generated/zod.gen.d.ts +957 -988
- package/dist/admin/generated/zod.gen.d.ts.map +1 -1
- package/dist/admin/generated/zod.gen.js +239 -292
- package/dist/admin/generated/zod.gen.js.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +80 -45
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +192 -157
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +887 -453
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.d.ts +468 -286
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +188 -201
- package/dist/generated/zod.gen.js.map +1 -1
- package/dist/realtime/api-stream-error.d.ts +2 -1
- package/dist/realtime/api-stream-error.d.ts.map +1 -1
- package/dist/realtime/api-stream-error.js +8 -1
- package/dist/realtime/api-stream-error.js.map +1 -1
- package/dist/realtime/watch.d.ts.map +1 -1
- package/dist/realtime/watch.js +1 -1
- package/dist/realtime/watch.js.map +1 -1
- package/dist/transport.js +10 -1
- package/dist/transport.js.map +1 -1
- package/package.json +1 -1
- package/src/admin/generated/index.ts +1 -7
- package/src/admin/generated/sdk.gen.ts +440 -326
- package/src/admin/generated/types.gen.ts +860 -464
- package/src/admin/generated/zod.gen.ts +259 -318
- package/src/generated/index.ts +6 -2
- package/src/generated/sdk.gen.ts +408 -373
- package/src/generated/types.gen.ts +956 -516
- package/src/generated/zod.gen.ts +217 -231
- package/src/realtime/api-stream-error.ts +12 -1
- package/src/realtime/watch.ts +6 -1
- package/src/transport.ts +10 -1
|
@@ -223,31 +223,32 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
223
223
|
BikeFinderAdminSdk.__registry.set(this, args?.key);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Get the signed-in operator and capabilities
|
|
228
|
+
*/
|
|
229
|
+
public adminGetSession<ThrowOnError extends boolean = false>(
|
|
230
|
+
options?: Options<AdminGetSessionData, ThrowOnError>,
|
|
228
231
|
): RequestResult<
|
|
229
|
-
|
|
230
|
-
|
|
232
|
+
AdminGetSessionResponses,
|
|
233
|
+
AdminGetSessionErrors,
|
|
231
234
|
ThrowOnError
|
|
232
235
|
> {
|
|
233
|
-
return (options
|
|
234
|
-
|
|
235
|
-
|
|
236
|
+
return (options?.client ?? this.client).get<
|
|
237
|
+
AdminGetSessionResponses,
|
|
238
|
+
AdminGetSessionErrors,
|
|
236
239
|
ThrowOnError
|
|
237
240
|
>({
|
|
238
|
-
...formDataBodySerializer,
|
|
239
241
|
responseTransformer: async (data) =>
|
|
240
|
-
await
|
|
242
|
+
await zAdminGetSessionResponse.parseAsync(data),
|
|
241
243
|
security: [{ scheme: "bearer", type: "http" }],
|
|
242
|
-
url: "/v1/admin/
|
|
244
|
+
url: "/v1/admin/session",
|
|
243
245
|
...options,
|
|
244
|
-
headers: {
|
|
245
|
-
"Content-Type": null,
|
|
246
|
-
...options.headers,
|
|
247
|
-
},
|
|
248
246
|
});
|
|
249
247
|
}
|
|
250
248
|
|
|
249
|
+
/**
|
|
250
|
+
* Inspect a tracker and selected public domains
|
|
251
|
+
*/
|
|
251
252
|
public adminGetTracker<ThrowOnError extends boolean = false>(
|
|
252
253
|
options: Options<AdminGetTrackerData, ThrowOnError>,
|
|
253
254
|
): RequestResult<
|
|
@@ -268,6 +269,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
268
269
|
});
|
|
269
270
|
}
|
|
270
271
|
|
|
272
|
+
/**
|
|
273
|
+
* Find trackers by an exact identifier
|
|
274
|
+
*/
|
|
271
275
|
public adminSearchTrackers<ThrowOnError extends boolean = false>(
|
|
272
276
|
options: Options<AdminSearchTrackersData, ThrowOnError>,
|
|
273
277
|
): RequestResult<
|
|
@@ -288,158 +292,206 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
288
292
|
});
|
|
289
293
|
}
|
|
290
294
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
295
|
+
/**
|
|
296
|
+
* Inspect a page of stored tracker history
|
|
297
|
+
*/
|
|
298
|
+
public adminListTrackerHistory<ThrowOnError extends boolean = false>(
|
|
299
|
+
options: Options<AdminListTrackerHistoryData, ThrowOnError>,
|
|
300
|
+
): RequestResult<
|
|
301
|
+
AdminListTrackerHistoryResponses,
|
|
302
|
+
AdminListTrackerHistoryErrors,
|
|
303
|
+
ThrowOnError
|
|
304
|
+
> {
|
|
294
305
|
return (options.client ?? this.client).get<
|
|
295
|
-
|
|
296
|
-
|
|
306
|
+
AdminListTrackerHistoryResponses,
|
|
307
|
+
AdminListTrackerHistoryErrors,
|
|
297
308
|
ThrowOnError
|
|
298
309
|
>({
|
|
299
310
|
responseTransformer: async (data) =>
|
|
300
|
-
await
|
|
311
|
+
await zAdminListTrackerHistoryResponse.parseAsync(data),
|
|
301
312
|
security: [{ scheme: "bearer", type: "http" }],
|
|
302
|
-
url: "/v1/admin/
|
|
313
|
+
url: "/v1/admin/trackers/{trackerId}/history/{collection}",
|
|
303
314
|
...options,
|
|
304
315
|
});
|
|
305
316
|
}
|
|
306
317
|
|
|
307
|
-
|
|
308
|
-
|
|
318
|
+
/**
|
|
319
|
+
* Inspect selected private operational domains
|
|
320
|
+
*/
|
|
321
|
+
public adminGetTrackerOperationalState<ThrowOnError extends boolean = false>(
|
|
322
|
+
options: Options<AdminGetTrackerOperationalStateData, ThrowOnError>,
|
|
309
323
|
): RequestResult<
|
|
310
|
-
|
|
311
|
-
|
|
324
|
+
AdminGetTrackerOperationalStateResponses,
|
|
325
|
+
AdminGetTrackerOperationalStateErrors,
|
|
312
326
|
ThrowOnError
|
|
313
327
|
> {
|
|
314
328
|
return (options.client ?? this.client).get<
|
|
315
|
-
|
|
316
|
-
|
|
329
|
+
AdminGetTrackerOperationalStateResponses,
|
|
330
|
+
AdminGetTrackerOperationalStateErrors,
|
|
317
331
|
ThrowOnError
|
|
318
332
|
>({
|
|
319
333
|
responseTransformer: async (data) =>
|
|
320
|
-
await
|
|
334
|
+
await zAdminGetTrackerOperationalStateResponse.parseAsync(data),
|
|
321
335
|
security: [{ scheme: "bearer", type: "http" }],
|
|
322
|
-
url: "/v1/admin/
|
|
336
|
+
url: "/v1/admin/trackers/{trackerId}/operational-state",
|
|
323
337
|
...options,
|
|
324
338
|
});
|
|
325
339
|
}
|
|
326
340
|
|
|
327
|
-
|
|
328
|
-
|
|
341
|
+
/**
|
|
342
|
+
* Request a tracker mode change
|
|
343
|
+
*/
|
|
344
|
+
public adminRequestTrackerMode<ThrowOnError extends boolean = false>(
|
|
345
|
+
options: Options<AdminRequestTrackerModeData, ThrowOnError>,
|
|
329
346
|
): RequestResult<
|
|
330
|
-
|
|
331
|
-
|
|
347
|
+
AdminRequestTrackerModeResponses,
|
|
348
|
+
AdminRequestTrackerModeErrors,
|
|
332
349
|
ThrowOnError
|
|
333
350
|
> {
|
|
334
|
-
return (options.client ?? this.client).
|
|
335
|
-
|
|
336
|
-
|
|
351
|
+
return (options.client ?? this.client).post<
|
|
352
|
+
AdminRequestTrackerModeResponses,
|
|
353
|
+
AdminRequestTrackerModeErrors,
|
|
337
354
|
ThrowOnError
|
|
338
355
|
>({
|
|
339
356
|
responseTransformer: async (data) =>
|
|
340
|
-
await
|
|
357
|
+
await zAdminRequestTrackerModeResponse.parseAsync(data),
|
|
341
358
|
security: [{ scheme: "bearer", type: "http" }],
|
|
342
|
-
url: "/v1/admin/
|
|
359
|
+
url: "/v1/admin/trackers/{trackerId}/mode-requests",
|
|
343
360
|
...options,
|
|
361
|
+
headers: {
|
|
362
|
+
"Content-Type": "application/json",
|
|
363
|
+
...options.headers,
|
|
364
|
+
},
|
|
344
365
|
});
|
|
345
366
|
}
|
|
346
367
|
|
|
347
|
-
|
|
348
|
-
|
|
368
|
+
/**
|
|
369
|
+
* Replace or clear the pending tracker command using its expected value
|
|
370
|
+
*/
|
|
371
|
+
public adminRequestTrackerCommand<ThrowOnError extends boolean = false>(
|
|
372
|
+
options: Options<AdminRequestTrackerCommandData, ThrowOnError>,
|
|
349
373
|
): RequestResult<
|
|
350
|
-
|
|
351
|
-
|
|
374
|
+
AdminRequestTrackerCommandResponses,
|
|
375
|
+
AdminRequestTrackerCommandErrors,
|
|
352
376
|
ThrowOnError
|
|
353
377
|
> {
|
|
354
|
-
return (options.client ?? this.client).
|
|
355
|
-
|
|
356
|
-
|
|
378
|
+
return (options.client ?? this.client).put<
|
|
379
|
+
AdminRequestTrackerCommandResponses,
|
|
380
|
+
AdminRequestTrackerCommandErrors,
|
|
357
381
|
ThrowOnError
|
|
358
382
|
>({
|
|
359
383
|
responseTransformer: async (data) =>
|
|
360
|
-
await
|
|
384
|
+
await zAdminRequestTrackerCommandResponse.parseAsync(data),
|
|
361
385
|
security: [{ scheme: "bearer", type: "http" }],
|
|
362
|
-
url: "/v1/admin/
|
|
386
|
+
url: "/v1/admin/trackers/{trackerId}/pending-command",
|
|
363
387
|
...options,
|
|
388
|
+
headers: {
|
|
389
|
+
"Content-Type": "application/json",
|
|
390
|
+
...options.headers,
|
|
391
|
+
},
|
|
364
392
|
});
|
|
365
393
|
}
|
|
366
394
|
|
|
367
|
-
|
|
368
|
-
|
|
395
|
+
/**
|
|
396
|
+
* Update tracker configuration
|
|
397
|
+
*/
|
|
398
|
+
public adminUpdateTrackerConfiguration<ThrowOnError extends boolean = false>(
|
|
399
|
+
options: Options<AdminUpdateTrackerConfigurationData, ThrowOnError>,
|
|
369
400
|
): RequestResult<
|
|
370
|
-
|
|
371
|
-
|
|
401
|
+
AdminUpdateTrackerConfigurationResponses,
|
|
402
|
+
AdminUpdateTrackerConfigurationErrors,
|
|
372
403
|
ThrowOnError
|
|
373
404
|
> {
|
|
374
|
-
return (options
|
|
375
|
-
|
|
376
|
-
|
|
405
|
+
return (options.client ?? this.client).patch<
|
|
406
|
+
AdminUpdateTrackerConfigurationResponses,
|
|
407
|
+
AdminUpdateTrackerConfigurationErrors,
|
|
377
408
|
ThrowOnError
|
|
378
409
|
>({
|
|
379
410
|
responseTransformer: async (data) =>
|
|
380
|
-
await
|
|
411
|
+
await zAdminUpdateTrackerConfigurationResponse.parseAsync(data),
|
|
381
412
|
security: [{ scheme: "bearer", type: "http" }],
|
|
382
|
-
url: "/v1/admin/
|
|
413
|
+
url: "/v1/admin/trackers/{trackerId}/configuration",
|
|
383
414
|
...options,
|
|
415
|
+
headers: {
|
|
416
|
+
"Content-Type": "application/json",
|
|
417
|
+
...options.headers,
|
|
418
|
+
},
|
|
384
419
|
});
|
|
385
420
|
}
|
|
386
421
|
|
|
387
|
-
|
|
388
|
-
|
|
422
|
+
/**
|
|
423
|
+
* Update tracker bike details
|
|
424
|
+
*/
|
|
425
|
+
public adminUpdateTrackerBike<ThrowOnError extends boolean = false>(
|
|
426
|
+
options: Options<AdminUpdateTrackerBikeData, ThrowOnError>,
|
|
389
427
|
): RequestResult<
|
|
390
|
-
|
|
391
|
-
|
|
428
|
+
AdminUpdateTrackerBikeResponses,
|
|
429
|
+
AdminUpdateTrackerBikeErrors,
|
|
392
430
|
ThrowOnError
|
|
393
431
|
> {
|
|
394
|
-
return (options.client ?? this.client).
|
|
395
|
-
|
|
396
|
-
|
|
432
|
+
return (options.client ?? this.client).patch<
|
|
433
|
+
AdminUpdateTrackerBikeResponses,
|
|
434
|
+
AdminUpdateTrackerBikeErrors,
|
|
397
435
|
ThrowOnError
|
|
398
436
|
>({
|
|
399
437
|
responseTransformer: async (data) =>
|
|
400
|
-
await
|
|
438
|
+
await zAdminUpdateTrackerBikeResponse.parseAsync(data),
|
|
401
439
|
security: [{ scheme: "bearer", type: "http" }],
|
|
402
|
-
url: "/v1/admin/
|
|
440
|
+
url: "/v1/admin/trackers/{trackerId}/bike",
|
|
403
441
|
...options,
|
|
442
|
+
headers: {
|
|
443
|
+
"Content-Type": "application/json",
|
|
444
|
+
...options.headers,
|
|
445
|
+
},
|
|
404
446
|
});
|
|
405
447
|
}
|
|
406
448
|
|
|
407
|
-
|
|
408
|
-
|
|
449
|
+
/**
|
|
450
|
+
* Request tracker cleanup
|
|
451
|
+
*/
|
|
452
|
+
public adminCleanTracker<ThrowOnError extends boolean = false>(
|
|
453
|
+
options: Options<AdminCleanTrackerData, ThrowOnError>,
|
|
409
454
|
): RequestResult<
|
|
410
|
-
|
|
411
|
-
|
|
455
|
+
AdminCleanTrackerResponses,
|
|
456
|
+
AdminCleanTrackerErrors,
|
|
412
457
|
ThrowOnError
|
|
413
458
|
> {
|
|
414
|
-
return (options.client ?? this.client).
|
|
415
|
-
|
|
416
|
-
|
|
459
|
+
return (options.client ?? this.client).post<
|
|
460
|
+
AdminCleanTrackerResponses,
|
|
461
|
+
AdminCleanTrackerErrors,
|
|
417
462
|
ThrowOnError
|
|
418
463
|
>({
|
|
419
464
|
responseTransformer: async (data) =>
|
|
420
|
-
await
|
|
465
|
+
await zAdminCleanTrackerResponse.parseAsync(data),
|
|
421
466
|
security: [{ scheme: "bearer", type: "http" }],
|
|
422
|
-
url: "/v1/admin/
|
|
467
|
+
url: "/v1/admin/trackers/{trackerId}/cleanup-requests",
|
|
423
468
|
...options,
|
|
469
|
+
headers: {
|
|
470
|
+
"Content-Type": "application/json",
|
|
471
|
+
...options.headers,
|
|
472
|
+
},
|
|
424
473
|
});
|
|
425
474
|
}
|
|
426
475
|
|
|
427
|
-
|
|
428
|
-
|
|
476
|
+
/**
|
|
477
|
+
* Change tracker denylist status using its expected value
|
|
478
|
+
*/
|
|
479
|
+
public adminSetTrackerDenylist<ThrowOnError extends boolean = false>(
|
|
480
|
+
options: Options<AdminSetTrackerDenylistData, ThrowOnError>,
|
|
429
481
|
): RequestResult<
|
|
430
|
-
|
|
431
|
-
|
|
482
|
+
AdminSetTrackerDenylistResponses,
|
|
483
|
+
AdminSetTrackerDenylistErrors,
|
|
432
484
|
ThrowOnError
|
|
433
485
|
> {
|
|
434
|
-
return (options.client ?? this.client).
|
|
435
|
-
|
|
436
|
-
|
|
486
|
+
return (options.client ?? this.client).put<
|
|
487
|
+
AdminSetTrackerDenylistResponses,
|
|
488
|
+
AdminSetTrackerDenylistErrors,
|
|
437
489
|
ThrowOnError
|
|
438
490
|
>({
|
|
439
491
|
responseTransformer: async (data) =>
|
|
440
|
-
await
|
|
492
|
+
await zAdminSetTrackerDenylistResponse.parseAsync(data),
|
|
441
493
|
security: [{ scheme: "bearer", type: "http" }],
|
|
442
|
-
url: "/v1/admin/
|
|
494
|
+
url: "/v1/admin/trackers/{trackerId}/denylist",
|
|
443
495
|
...options,
|
|
444
496
|
headers: {
|
|
445
497
|
"Content-Type": "application/json",
|
|
@@ -448,22 +500,25 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
448
500
|
});
|
|
449
501
|
}
|
|
450
502
|
|
|
451
|
-
|
|
452
|
-
|
|
503
|
+
/**
|
|
504
|
+
* Request a notification to tracker members
|
|
505
|
+
*/
|
|
506
|
+
public adminNotifyTracker<ThrowOnError extends boolean = false>(
|
|
507
|
+
options: Options<AdminNotifyTrackerData, ThrowOnError>,
|
|
453
508
|
): RequestResult<
|
|
454
|
-
|
|
455
|
-
|
|
509
|
+
AdminNotifyTrackerResponses,
|
|
510
|
+
AdminNotifyTrackerErrors,
|
|
456
511
|
ThrowOnError
|
|
457
512
|
> {
|
|
458
|
-
return (options.client ?? this.client).
|
|
459
|
-
|
|
460
|
-
|
|
513
|
+
return (options.client ?? this.client).post<
|
|
514
|
+
AdminNotifyTrackerResponses,
|
|
515
|
+
AdminNotifyTrackerErrors,
|
|
461
516
|
ThrowOnError
|
|
462
517
|
>({
|
|
463
518
|
responseTransformer: async (data) =>
|
|
464
|
-
await
|
|
519
|
+
await zAdminNotifyTrackerResponse.parseAsync(data),
|
|
465
520
|
security: [{ scheme: "bearer", type: "http" }],
|
|
466
|
-
url: "/v1/admin/
|
|
521
|
+
url: "/v1/admin/trackers/{trackerId}/notification-requests",
|
|
467
522
|
...options,
|
|
468
523
|
headers: {
|
|
469
524
|
"Content-Type": "application/json",
|
|
@@ -472,82 +527,98 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
472
527
|
});
|
|
473
528
|
}
|
|
474
529
|
|
|
475
|
-
|
|
476
|
-
|
|
530
|
+
/**
|
|
531
|
+
* Add a tracker member
|
|
532
|
+
*/
|
|
533
|
+
public adminAddTrackerMember<ThrowOnError extends boolean = false>(
|
|
534
|
+
options: Options<AdminAddTrackerMemberData, ThrowOnError>,
|
|
477
535
|
): RequestResult<
|
|
478
|
-
|
|
479
|
-
|
|
536
|
+
AdminAddTrackerMemberResponses,
|
|
537
|
+
AdminAddTrackerMemberErrors,
|
|
480
538
|
ThrowOnError
|
|
481
539
|
> {
|
|
482
|
-
return (options.client ?? this.client).
|
|
483
|
-
|
|
484
|
-
|
|
540
|
+
return (options.client ?? this.client).post<
|
|
541
|
+
AdminAddTrackerMemberResponses,
|
|
542
|
+
AdminAddTrackerMemberErrors,
|
|
485
543
|
ThrowOnError
|
|
486
544
|
>({
|
|
487
545
|
responseTransformer: async (data) =>
|
|
488
|
-
await
|
|
546
|
+
await zAdminAddTrackerMemberResponse.parseAsync(data),
|
|
489
547
|
security: [{ scheme: "bearer", type: "http" }],
|
|
490
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
548
|
+
url: "/v1/admin/trackers/{trackerId}/members",
|
|
491
549
|
...options,
|
|
550
|
+
headers: {
|
|
551
|
+
"Content-Type": "application/json",
|
|
552
|
+
...options.headers,
|
|
553
|
+
},
|
|
492
554
|
});
|
|
493
555
|
}
|
|
494
556
|
|
|
495
|
-
|
|
496
|
-
|
|
557
|
+
/**
|
|
558
|
+
* Remove a tracker member
|
|
559
|
+
*/
|
|
560
|
+
public adminRemoveTrackerMember<ThrowOnError extends boolean = false>(
|
|
561
|
+
options: Options<AdminRemoveTrackerMemberData, ThrowOnError>,
|
|
497
562
|
): RequestResult<
|
|
498
|
-
|
|
499
|
-
|
|
563
|
+
AdminRemoveTrackerMemberResponses,
|
|
564
|
+
AdminRemoveTrackerMemberErrors,
|
|
500
565
|
ThrowOnError
|
|
501
566
|
> {
|
|
502
|
-
return (options.client ?? this.client).
|
|
503
|
-
|
|
504
|
-
|
|
567
|
+
return (options.client ?? this.client).delete<
|
|
568
|
+
AdminRemoveTrackerMemberResponses,
|
|
569
|
+
AdminRemoveTrackerMemberErrors,
|
|
505
570
|
ThrowOnError
|
|
506
571
|
>({
|
|
507
572
|
responseTransformer: async (data) =>
|
|
508
|
-
await
|
|
573
|
+
await zAdminRemoveTrackerMemberResponse.parseAsync(data),
|
|
509
574
|
security: [{ scheme: "bearer", type: "http" }],
|
|
510
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
575
|
+
url: "/v1/admin/trackers/{trackerId}/members/{uid}",
|
|
511
576
|
...options,
|
|
512
577
|
});
|
|
513
578
|
}
|
|
514
579
|
|
|
515
|
-
|
|
516
|
-
|
|
580
|
+
/**
|
|
581
|
+
* Remove the current tracker subscription link
|
|
582
|
+
*/
|
|
583
|
+
public adminUnlinkTrackerSubscription<ThrowOnError extends boolean = false>(
|
|
584
|
+
options: Options<AdminUnlinkTrackerSubscriptionData, ThrowOnError>,
|
|
517
585
|
): RequestResult<
|
|
518
|
-
|
|
519
|
-
|
|
586
|
+
AdminUnlinkTrackerSubscriptionResponses,
|
|
587
|
+
AdminUnlinkTrackerSubscriptionErrors,
|
|
520
588
|
ThrowOnError
|
|
521
589
|
> {
|
|
522
|
-
return (options
|
|
523
|
-
|
|
524
|
-
|
|
590
|
+
return (options.client ?? this.client).delete<
|
|
591
|
+
AdminUnlinkTrackerSubscriptionResponses,
|
|
592
|
+
AdminUnlinkTrackerSubscriptionErrors,
|
|
525
593
|
ThrowOnError
|
|
526
594
|
>({
|
|
527
595
|
responseTransformer: async (data) =>
|
|
528
|
-
await
|
|
596
|
+
await zAdminUnlinkTrackerSubscriptionResponse.parseAsync(data),
|
|
529
597
|
security: [{ scheme: "bearer", type: "http" }],
|
|
530
|
-
url: "/v1/admin/
|
|
598
|
+
url: "/v1/admin/trackers/{trackerId}/subscription",
|
|
531
599
|
...options,
|
|
532
600
|
});
|
|
533
601
|
}
|
|
534
602
|
|
|
535
|
-
|
|
536
|
-
|
|
603
|
+
/**
|
|
604
|
+
* Link a subscription to a tracker
|
|
605
|
+
*/
|
|
606
|
+
public adminLinkTrackerSubscription<ThrowOnError extends boolean = false>(
|
|
607
|
+
options: Options<AdminLinkTrackerSubscriptionData, ThrowOnError>,
|
|
537
608
|
): RequestResult<
|
|
538
|
-
|
|
539
|
-
|
|
609
|
+
AdminLinkTrackerSubscriptionResponses,
|
|
610
|
+
AdminLinkTrackerSubscriptionErrors,
|
|
540
611
|
ThrowOnError
|
|
541
612
|
> {
|
|
542
|
-
return (options.client ?? this.client).
|
|
543
|
-
|
|
544
|
-
|
|
613
|
+
return (options.client ?? this.client).put<
|
|
614
|
+
AdminLinkTrackerSubscriptionResponses,
|
|
615
|
+
AdminLinkTrackerSubscriptionErrors,
|
|
545
616
|
ThrowOnError
|
|
546
617
|
>({
|
|
547
618
|
responseTransformer: async (data) =>
|
|
548
|
-
await
|
|
619
|
+
await zAdminLinkTrackerSubscriptionResponse.parseAsync(data),
|
|
549
620
|
security: [{ scheme: "bearer", type: "http" }],
|
|
550
|
-
url: "/v1/admin/
|
|
621
|
+
url: "/v1/admin/trackers/{trackerId}/subscription",
|
|
551
622
|
...options,
|
|
552
623
|
headers: {
|
|
553
624
|
"Content-Type": "application/json",
|
|
@@ -556,22 +627,25 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
556
627
|
});
|
|
557
628
|
}
|
|
558
629
|
|
|
559
|
-
|
|
560
|
-
|
|
630
|
+
/**
|
|
631
|
+
* Request insurance synchronization for a tracker
|
|
632
|
+
*/
|
|
633
|
+
public adminRequestTrackerInsurance<ThrowOnError extends boolean = false>(
|
|
634
|
+
options: Options<AdminRequestTrackerInsuranceData, ThrowOnError>,
|
|
561
635
|
): RequestResult<
|
|
562
|
-
|
|
563
|
-
|
|
636
|
+
AdminRequestTrackerInsuranceResponses,
|
|
637
|
+
AdminRequestTrackerInsuranceErrors,
|
|
564
638
|
ThrowOnError
|
|
565
639
|
> {
|
|
566
640
|
return (options.client ?? this.client).post<
|
|
567
|
-
|
|
568
|
-
|
|
641
|
+
AdminRequestTrackerInsuranceResponses,
|
|
642
|
+
AdminRequestTrackerInsuranceErrors,
|
|
569
643
|
ThrowOnError
|
|
570
644
|
>({
|
|
571
645
|
responseTransformer: async (data) =>
|
|
572
|
-
await
|
|
646
|
+
await zAdminRequestTrackerInsuranceResponse.parseAsync(data),
|
|
573
647
|
security: [{ scheme: "bearer", type: "http" }],
|
|
574
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
648
|
+
url: "/v1/admin/trackers/{trackerId}/insurance-requests",
|
|
575
649
|
...options,
|
|
576
650
|
headers: {
|
|
577
651
|
"Content-Type": "application/json",
|
|
@@ -580,114 +654,124 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
580
654
|
});
|
|
581
655
|
}
|
|
582
656
|
|
|
583
|
-
|
|
584
|
-
|
|
657
|
+
/**
|
|
658
|
+
* Request tracker subscription reconciliation
|
|
659
|
+
*/
|
|
660
|
+
public adminReconcileTrackerSubscription<
|
|
661
|
+
ThrowOnError extends boolean = false,
|
|
662
|
+
>(
|
|
663
|
+
options: Options<AdminReconcileTrackerSubscriptionData, ThrowOnError>,
|
|
585
664
|
): RequestResult<
|
|
586
|
-
|
|
587
|
-
|
|
665
|
+
AdminReconcileTrackerSubscriptionResponses,
|
|
666
|
+
AdminReconcileTrackerSubscriptionErrors,
|
|
588
667
|
ThrowOnError
|
|
589
668
|
> {
|
|
590
|
-
return (options.client ?? this.client).
|
|
591
|
-
|
|
592
|
-
|
|
669
|
+
return (options.client ?? this.client).post<
|
|
670
|
+
AdminReconcileTrackerSubscriptionResponses,
|
|
671
|
+
AdminReconcileTrackerSubscriptionErrors,
|
|
593
672
|
ThrowOnError
|
|
594
673
|
>({
|
|
595
674
|
responseTransformer: async (data) =>
|
|
596
|
-
await
|
|
675
|
+
await zAdminReconcileTrackerSubscriptionResponse.parseAsync(data),
|
|
597
676
|
security: [{ scheme: "bearer", type: "http" }],
|
|
598
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
677
|
+
url: "/v1/admin/trackers/{trackerId}/subscription/reconciliation-requests",
|
|
599
678
|
...options,
|
|
679
|
+
headers: {
|
|
680
|
+
"Content-Type": "application/json",
|
|
681
|
+
...options.headers,
|
|
682
|
+
},
|
|
600
683
|
});
|
|
601
684
|
}
|
|
602
685
|
|
|
603
|
-
|
|
604
|
-
|
|
686
|
+
/**
|
|
687
|
+
* Upload a tracker photo
|
|
688
|
+
*/
|
|
689
|
+
public adminUploadTrackerPhoto<ThrowOnError extends boolean = false>(
|
|
690
|
+
options: Options<AdminUploadTrackerPhotoData, ThrowOnError>,
|
|
605
691
|
): RequestResult<
|
|
606
|
-
|
|
607
|
-
|
|
692
|
+
AdminUploadTrackerPhotoResponses,
|
|
693
|
+
AdminUploadTrackerPhotoErrors,
|
|
608
694
|
ThrowOnError
|
|
609
695
|
> {
|
|
610
|
-
return (options.client ?? this.client).
|
|
611
|
-
|
|
612
|
-
|
|
696
|
+
return (options.client ?? this.client).post<
|
|
697
|
+
AdminUploadTrackerPhotoResponses,
|
|
698
|
+
AdminUploadTrackerPhotoErrors,
|
|
613
699
|
ThrowOnError
|
|
614
700
|
>({
|
|
701
|
+
...formDataBodySerializer,
|
|
615
702
|
responseTransformer: async (data) =>
|
|
616
|
-
await
|
|
703
|
+
await zAdminUploadTrackerPhotoResponse.parseAsync(data),
|
|
617
704
|
security: [{ scheme: "bearer", type: "http" }],
|
|
618
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
705
|
+
url: "/v1/admin/trackers/{trackerId}/photos",
|
|
619
706
|
...options,
|
|
620
707
|
headers: {
|
|
621
|
-
"Content-Type":
|
|
708
|
+
"Content-Type": null,
|
|
622
709
|
...options.headers,
|
|
623
710
|
},
|
|
624
711
|
});
|
|
625
712
|
}
|
|
626
713
|
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
714
|
+
/**
|
|
715
|
+
* Subscribe to a live tracker inspection
|
|
716
|
+
*/
|
|
717
|
+
public adminSubscribeTracker<ThrowOnError extends boolean = false>(
|
|
718
|
+
options: Options<
|
|
719
|
+
AdminSubscribeTrackerData,
|
|
720
|
+
ThrowOnError,
|
|
721
|
+
AdminSubscribeTrackerResponse
|
|
722
|
+
>,
|
|
723
|
+
): Promise<ServerSentEventsResult<AdminSubscribeTrackerResponses>> {
|
|
724
|
+
return (options.client ?? this.client).sse.get<
|
|
725
|
+
AdminSubscribeTrackerResponses,
|
|
726
|
+
AdminSubscribeTrackerErrors,
|
|
637
727
|
ThrowOnError
|
|
638
728
|
>({
|
|
639
729
|
responseTransformer: async (data) =>
|
|
640
|
-
await
|
|
730
|
+
await zAdminSubscribeTrackerResponse.parseAsync(data),
|
|
641
731
|
security: [{ scheme: "bearer", type: "http" }],
|
|
642
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
732
|
+
url: "/v1/admin/trackers/{trackerId}/stream",
|
|
643
733
|
...options,
|
|
644
|
-
headers: {
|
|
645
|
-
"Content-Type": "application/json",
|
|
646
|
-
...options.headers,
|
|
647
|
-
},
|
|
648
734
|
});
|
|
649
735
|
}
|
|
650
736
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
AdminUpdateTrackerConfigurationErrors,
|
|
737
|
+
/**
|
|
738
|
+
* Inspect a user account
|
|
739
|
+
*/
|
|
740
|
+
public adminGetUser<ThrowOnError extends boolean = false>(
|
|
741
|
+
options: Options<AdminGetUserData, ThrowOnError>,
|
|
742
|
+
): RequestResult<AdminGetUserResponses, AdminGetUserErrors, ThrowOnError> {
|
|
743
|
+
return (options.client ?? this.client).get<
|
|
744
|
+
AdminGetUserResponses,
|
|
745
|
+
AdminGetUserErrors,
|
|
661
746
|
ThrowOnError
|
|
662
747
|
>({
|
|
663
748
|
responseTransformer: async (data) =>
|
|
664
|
-
await
|
|
749
|
+
await zAdminGetUserResponse.parseAsync(data),
|
|
665
750
|
security: [{ scheme: "bearer", type: "http" }],
|
|
666
|
-
url: "/v1/admin/
|
|
751
|
+
url: "/v1/admin/users/{uid}",
|
|
667
752
|
...options,
|
|
668
|
-
headers: {
|
|
669
|
-
"Content-Type": "application/json",
|
|
670
|
-
...options.headers,
|
|
671
|
-
},
|
|
672
753
|
});
|
|
673
754
|
}
|
|
674
755
|
|
|
675
|
-
|
|
676
|
-
|
|
756
|
+
/**
|
|
757
|
+
* Find user accounts by email or identifiers
|
|
758
|
+
*/
|
|
759
|
+
public adminLookupUsers<ThrowOnError extends boolean = false>(
|
|
760
|
+
options: Options<AdminLookupUsersData, ThrowOnError>,
|
|
677
761
|
): RequestResult<
|
|
678
|
-
|
|
679
|
-
|
|
762
|
+
AdminLookupUsersResponses,
|
|
763
|
+
AdminLookupUsersErrors,
|
|
680
764
|
ThrowOnError
|
|
681
765
|
> {
|
|
682
|
-
return (options.client ?? this.client).
|
|
683
|
-
|
|
684
|
-
|
|
766
|
+
return (options.client ?? this.client).post<
|
|
767
|
+
AdminLookupUsersResponses,
|
|
768
|
+
AdminLookupUsersErrors,
|
|
685
769
|
ThrowOnError
|
|
686
770
|
>({
|
|
687
771
|
responseTransformer: async (data) =>
|
|
688
|
-
await
|
|
772
|
+
await zAdminLookupUsersResponse.parseAsync(data),
|
|
689
773
|
security: [{ scheme: "bearer", type: "http" }],
|
|
690
|
-
url: "/v1/admin/
|
|
774
|
+
url: "/v1/admin/users/lookup",
|
|
691
775
|
...options,
|
|
692
776
|
headers: {
|
|
693
777
|
"Content-Type": "application/json",
|
|
@@ -696,22 +780,25 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
696
780
|
});
|
|
697
781
|
}
|
|
698
782
|
|
|
699
|
-
|
|
700
|
-
|
|
783
|
+
/**
|
|
784
|
+
* Request insurance synchronization for a user
|
|
785
|
+
*/
|
|
786
|
+
public adminRequestUserInsurance<ThrowOnError extends boolean = false>(
|
|
787
|
+
options: Options<AdminRequestUserInsuranceData, ThrowOnError>,
|
|
701
788
|
): RequestResult<
|
|
702
|
-
|
|
703
|
-
|
|
789
|
+
AdminRequestUserInsuranceResponses,
|
|
790
|
+
AdminRequestUserInsuranceErrors,
|
|
704
791
|
ThrowOnError
|
|
705
792
|
> {
|
|
706
793
|
return (options.client ?? this.client).post<
|
|
707
|
-
|
|
708
|
-
|
|
794
|
+
AdminRequestUserInsuranceResponses,
|
|
795
|
+
AdminRequestUserInsuranceErrors,
|
|
709
796
|
ThrowOnError
|
|
710
797
|
>({
|
|
711
798
|
responseTransformer: async (data) =>
|
|
712
|
-
await
|
|
799
|
+
await zAdminRequestUserInsuranceResponse.parseAsync(data),
|
|
713
800
|
security: [{ scheme: "bearer", type: "http" }],
|
|
714
|
-
url: "/v1/admin/
|
|
801
|
+
url: "/v1/admin/users/{uid}/insurance-requests",
|
|
715
802
|
...options,
|
|
716
803
|
headers: {
|
|
717
804
|
"Content-Type": "application/json",
|
|
@@ -720,22 +807,25 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
720
807
|
});
|
|
721
808
|
}
|
|
722
809
|
|
|
723
|
-
|
|
724
|
-
|
|
810
|
+
/**
|
|
811
|
+
* Link a user's sole available subscription and inactive tracker
|
|
812
|
+
*/
|
|
813
|
+
public adminLinkSingleSubscription<ThrowOnError extends boolean = false>(
|
|
814
|
+
options: Options<AdminLinkSingleSubscriptionData, ThrowOnError>,
|
|
725
815
|
): RequestResult<
|
|
726
|
-
|
|
727
|
-
|
|
816
|
+
AdminLinkSingleSubscriptionResponses,
|
|
817
|
+
AdminLinkSingleSubscriptionErrors,
|
|
728
818
|
ThrowOnError
|
|
729
819
|
> {
|
|
730
|
-
return (options.client ?? this.client).
|
|
731
|
-
|
|
732
|
-
|
|
820
|
+
return (options.client ?? this.client).post<
|
|
821
|
+
AdminLinkSingleSubscriptionResponses,
|
|
822
|
+
AdminLinkSingleSubscriptionErrors,
|
|
733
823
|
ThrowOnError
|
|
734
824
|
>({
|
|
735
825
|
responseTransformer: async (data) =>
|
|
736
|
-
await
|
|
826
|
+
await zAdminLinkSingleSubscriptionResponse.parseAsync(data),
|
|
737
827
|
security: [{ scheme: "bearer", type: "http" }],
|
|
738
|
-
url: "/v1/admin/
|
|
828
|
+
url: "/v1/admin/users/{uid}/subscription-link-requests",
|
|
739
829
|
...options,
|
|
740
830
|
headers: {
|
|
741
831
|
"Content-Type": "application/json",
|
|
@@ -744,74 +834,78 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
744
834
|
});
|
|
745
835
|
}
|
|
746
836
|
|
|
747
|
-
|
|
748
|
-
|
|
837
|
+
/**
|
|
838
|
+
* Inspect a subscription
|
|
839
|
+
*/
|
|
840
|
+
public adminGetSubscription<ThrowOnError extends boolean = false>(
|
|
841
|
+
options: Options<AdminGetSubscriptionData, ThrowOnError>,
|
|
749
842
|
): RequestResult<
|
|
750
|
-
|
|
751
|
-
|
|
843
|
+
AdminGetSubscriptionResponses,
|
|
844
|
+
AdminGetSubscriptionErrors,
|
|
752
845
|
ThrowOnError
|
|
753
846
|
> {
|
|
754
|
-
return (options.client ?? this.client).
|
|
755
|
-
|
|
756
|
-
|
|
847
|
+
return (options.client ?? this.client).get<
|
|
848
|
+
AdminGetSubscriptionResponses,
|
|
849
|
+
AdminGetSubscriptionErrors,
|
|
757
850
|
ThrowOnError
|
|
758
851
|
>({
|
|
759
852
|
responseTransformer: async (data) =>
|
|
760
|
-
await
|
|
853
|
+
await zAdminGetSubscriptionResponse.parseAsync(data),
|
|
761
854
|
security: [{ scheme: "bearer", type: "http" }],
|
|
762
|
-
url: "/v1/admin/
|
|
855
|
+
url: "/v1/admin/subscriptions/{subscriptionId}",
|
|
763
856
|
...options,
|
|
764
|
-
headers: {
|
|
765
|
-
"Content-Type": "application/json",
|
|
766
|
-
...options.headers,
|
|
767
|
-
},
|
|
768
857
|
});
|
|
769
858
|
}
|
|
770
859
|
|
|
771
|
-
|
|
772
|
-
|
|
860
|
+
/**
|
|
861
|
+
* Find subscriptions by an exact identifier
|
|
862
|
+
*/
|
|
863
|
+
public adminSearchSubscriptions<ThrowOnError extends boolean = false>(
|
|
864
|
+
options: Options<AdminSearchSubscriptionsData, ThrowOnError>,
|
|
773
865
|
): RequestResult<
|
|
774
|
-
|
|
775
|
-
|
|
866
|
+
AdminSearchSubscriptionsResponses,
|
|
867
|
+
AdminSearchSubscriptionsErrors,
|
|
776
868
|
ThrowOnError
|
|
777
869
|
> {
|
|
778
|
-
return (options.client ?? this.client).
|
|
779
|
-
|
|
780
|
-
|
|
870
|
+
return (options.client ?? this.client).get<
|
|
871
|
+
AdminSearchSubscriptionsResponses,
|
|
872
|
+
AdminSearchSubscriptionsErrors,
|
|
781
873
|
ThrowOnError
|
|
782
874
|
>({
|
|
783
875
|
responseTransformer: async (data) =>
|
|
784
|
-
await
|
|
876
|
+
await zAdminSearchSubscriptionsResponse.parseAsync(data),
|
|
785
877
|
security: [{ scheme: "bearer", type: "http" }],
|
|
786
|
-
url: "/v1/admin/
|
|
878
|
+
url: "/v1/admin/subscriptions",
|
|
787
879
|
...options,
|
|
788
880
|
});
|
|
789
881
|
}
|
|
790
882
|
|
|
791
|
-
|
|
792
|
-
|
|
883
|
+
/**
|
|
884
|
+
* Inspect insurance records for a subscription
|
|
885
|
+
*/
|
|
886
|
+
public adminListInsurance<ThrowOnError extends boolean = false>(
|
|
887
|
+
options: Options<AdminListInsuranceData, ThrowOnError>,
|
|
793
888
|
): RequestResult<
|
|
794
|
-
|
|
795
|
-
|
|
889
|
+
AdminListInsuranceResponses,
|
|
890
|
+
AdminListInsuranceErrors,
|
|
796
891
|
ThrowOnError
|
|
797
892
|
> {
|
|
798
|
-
return (options.client ?? this.client).
|
|
799
|
-
|
|
800
|
-
|
|
893
|
+
return (options.client ?? this.client).get<
|
|
894
|
+
AdminListInsuranceResponses,
|
|
895
|
+
AdminListInsuranceErrors,
|
|
801
896
|
ThrowOnError
|
|
802
897
|
>({
|
|
803
898
|
responseTransformer: async (data) =>
|
|
804
|
-
await
|
|
899
|
+
await zAdminListInsuranceResponse.parseAsync(data),
|
|
805
900
|
security: [{ scheme: "bearer", type: "http" }],
|
|
806
|
-
url: "/v1/admin/
|
|
901
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/insurance/{provider}",
|
|
807
902
|
...options,
|
|
808
|
-
headers: {
|
|
809
|
-
"Content-Type": "application/json",
|
|
810
|
-
...options.headers,
|
|
811
|
-
},
|
|
812
903
|
});
|
|
813
904
|
}
|
|
814
905
|
|
|
906
|
+
/**
|
|
907
|
+
* Request insurance synchronization for a subscription
|
|
908
|
+
*/
|
|
815
909
|
public adminRequestSubscriptionInsurance<
|
|
816
910
|
ThrowOnError extends boolean = false,
|
|
817
911
|
>(
|
|
@@ -829,7 +923,7 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
829
923
|
responseTransformer: async (data) =>
|
|
830
924
|
await zAdminRequestSubscriptionInsuranceResponse.parseAsync(data),
|
|
831
925
|
security: [{ scheme: "bearer", type: "http" }],
|
|
832
|
-
url: "/v1/admin/subscriptions/{subscriptionId}/insurance",
|
|
926
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/insurance-requests",
|
|
833
927
|
...options,
|
|
834
928
|
headers: {
|
|
835
929
|
"Content-Type": "application/json",
|
|
@@ -838,22 +932,25 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
838
932
|
});
|
|
839
933
|
}
|
|
840
934
|
|
|
841
|
-
|
|
842
|
-
|
|
935
|
+
/**
|
|
936
|
+
* Request a refresh from the billing provider
|
|
937
|
+
*/
|
|
938
|
+
public adminRefreshSubscription<ThrowOnError extends boolean = false>(
|
|
939
|
+
options: Options<AdminRefreshSubscriptionData, ThrowOnError>,
|
|
843
940
|
): RequestResult<
|
|
844
|
-
|
|
845
|
-
|
|
941
|
+
AdminRefreshSubscriptionResponses,
|
|
942
|
+
AdminRefreshSubscriptionErrors,
|
|
846
943
|
ThrowOnError
|
|
847
944
|
> {
|
|
848
945
|
return (options.client ?? this.client).post<
|
|
849
|
-
|
|
850
|
-
|
|
946
|
+
AdminRefreshSubscriptionResponses,
|
|
947
|
+
AdminRefreshSubscriptionErrors,
|
|
851
948
|
ThrowOnError
|
|
852
949
|
>({
|
|
853
950
|
responseTransformer: async (data) =>
|
|
854
|
-
await
|
|
951
|
+
await zAdminRefreshSubscriptionResponse.parseAsync(data),
|
|
855
952
|
security: [{ scheme: "bearer", type: "http" }],
|
|
856
|
-
url: "/v1/admin/
|
|
953
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/refresh-requests",
|
|
857
954
|
...options,
|
|
858
955
|
headers: {
|
|
859
956
|
"Content-Type": "application/json",
|
|
@@ -862,72 +959,94 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
862
959
|
});
|
|
863
960
|
}
|
|
864
961
|
|
|
865
|
-
|
|
866
|
-
|
|
962
|
+
/**
|
|
963
|
+
* List the operator's favorite trackers
|
|
964
|
+
*/
|
|
965
|
+
public adminListFavorites<ThrowOnError extends boolean = false>(
|
|
966
|
+
options?: Options<AdminListFavoritesData, ThrowOnError>,
|
|
867
967
|
): RequestResult<
|
|
868
|
-
|
|
869
|
-
|
|
968
|
+
AdminListFavoritesResponses,
|
|
969
|
+
AdminListFavoritesErrors,
|
|
870
970
|
ThrowOnError
|
|
871
971
|
> {
|
|
872
|
-
return (options
|
|
873
|
-
|
|
874
|
-
|
|
972
|
+
return (options?.client ?? this.client).get<
|
|
973
|
+
AdminListFavoritesResponses,
|
|
974
|
+
AdminListFavoritesErrors,
|
|
875
975
|
ThrowOnError
|
|
876
976
|
>({
|
|
877
977
|
responseTransformer: async (data) =>
|
|
878
|
-
await
|
|
978
|
+
await zAdminListFavoritesResponse.parseAsync(data),
|
|
879
979
|
security: [{ scheme: "bearer", type: "http" }],
|
|
880
|
-
url: "/v1/admin/
|
|
980
|
+
url: "/v1/admin/favorites",
|
|
881
981
|
...options,
|
|
882
|
-
headers: {
|
|
883
|
-
"Content-Type": "application/json",
|
|
884
|
-
...options.headers,
|
|
885
|
-
},
|
|
886
982
|
});
|
|
887
983
|
}
|
|
888
984
|
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
985
|
+
/**
|
|
986
|
+
* Remove a favorite tracker
|
|
987
|
+
*/
|
|
988
|
+
public adminDeleteFavorite<ThrowOnError extends boolean = false>(
|
|
989
|
+
options: Options<AdminDeleteFavoriteData, ThrowOnError>,
|
|
893
990
|
): RequestResult<
|
|
894
|
-
|
|
895
|
-
|
|
991
|
+
AdminDeleteFavoriteResponses,
|
|
992
|
+
AdminDeleteFavoriteErrors,
|
|
896
993
|
ThrowOnError
|
|
897
994
|
> {
|
|
898
|
-
return (options.client ?? this.client).
|
|
899
|
-
|
|
900
|
-
|
|
995
|
+
return (options.client ?? this.client).delete<
|
|
996
|
+
AdminDeleteFavoriteResponses,
|
|
997
|
+
AdminDeleteFavoriteErrors,
|
|
901
998
|
ThrowOnError
|
|
902
999
|
>({
|
|
903
1000
|
responseTransformer: async (data) =>
|
|
904
|
-
await
|
|
1001
|
+
await zAdminDeleteFavoriteResponse.parseAsync(data),
|
|
905
1002
|
security: [{ scheme: "bearer", type: "http" }],
|
|
906
|
-
url: "/v1/admin/
|
|
1003
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
907
1004
|
...options,
|
|
908
|
-
headers: {
|
|
909
|
-
"Content-Type": "application/json",
|
|
910
|
-
...options.headers,
|
|
911
|
-
},
|
|
912
1005
|
});
|
|
913
1006
|
}
|
|
914
1007
|
|
|
915
|
-
|
|
916
|
-
|
|
1008
|
+
/**
|
|
1009
|
+
* Get a favorite tracker
|
|
1010
|
+
*/
|
|
1011
|
+
public adminGetFavorite<ThrowOnError extends boolean = false>(
|
|
1012
|
+
options: Options<AdminGetFavoriteData, ThrowOnError>,
|
|
917
1013
|
): RequestResult<
|
|
918
|
-
|
|
919
|
-
|
|
1014
|
+
AdminGetFavoriteResponses,
|
|
1015
|
+
AdminGetFavoriteErrors,
|
|
920
1016
|
ThrowOnError
|
|
921
1017
|
> {
|
|
922
|
-
return (options.client ?? this.client).
|
|
923
|
-
|
|
924
|
-
|
|
1018
|
+
return (options.client ?? this.client).get<
|
|
1019
|
+
AdminGetFavoriteResponses,
|
|
1020
|
+
AdminGetFavoriteErrors,
|
|
925
1021
|
ThrowOnError
|
|
926
1022
|
>({
|
|
927
1023
|
responseTransformer: async (data) =>
|
|
928
|
-
await
|
|
1024
|
+
await zAdminGetFavoriteResponse.parseAsync(data),
|
|
1025
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1026
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
1027
|
+
...options,
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* Update a favorite tracker comment
|
|
1033
|
+
*/
|
|
1034
|
+
public adminUpdateFavoriteComment<ThrowOnError extends boolean = false>(
|
|
1035
|
+
options: Options<AdminUpdateFavoriteCommentData, ThrowOnError>,
|
|
1036
|
+
): RequestResult<
|
|
1037
|
+
AdminUpdateFavoriteCommentResponses,
|
|
1038
|
+
AdminUpdateFavoriteCommentErrors,
|
|
1039
|
+
ThrowOnError
|
|
1040
|
+
> {
|
|
1041
|
+
return (options.client ?? this.client).patch<
|
|
1042
|
+
AdminUpdateFavoriteCommentResponses,
|
|
1043
|
+
AdminUpdateFavoriteCommentErrors,
|
|
1044
|
+
ThrowOnError
|
|
1045
|
+
>({
|
|
1046
|
+
responseTransformer: async (data) =>
|
|
1047
|
+
await zAdminUpdateFavoriteCommentResponse.parseAsync(data),
|
|
929
1048
|
security: [{ scheme: "bearer", type: "http" }],
|
|
930
|
-
url: "/v1/admin/
|
|
1049
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
931
1050
|
...options,
|
|
932
1051
|
headers: {
|
|
933
1052
|
"Content-Type": "application/json",
|
|
@@ -936,22 +1055,25 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
936
1055
|
});
|
|
937
1056
|
}
|
|
938
1057
|
|
|
939
|
-
|
|
940
|
-
|
|
1058
|
+
/**
|
|
1059
|
+
* Save a favorite tracker
|
|
1060
|
+
*/
|
|
1061
|
+
public adminPutFavorite<ThrowOnError extends boolean = false>(
|
|
1062
|
+
options: Options<AdminPutFavoriteData, ThrowOnError>,
|
|
941
1063
|
): RequestResult<
|
|
942
|
-
|
|
943
|
-
|
|
1064
|
+
AdminPutFavoriteResponses,
|
|
1065
|
+
AdminPutFavoriteErrors,
|
|
944
1066
|
ThrowOnError
|
|
945
1067
|
> {
|
|
946
|
-
return (options.client ?? this.client).
|
|
947
|
-
|
|
948
|
-
|
|
1068
|
+
return (options.client ?? this.client).put<
|
|
1069
|
+
AdminPutFavoriteResponses,
|
|
1070
|
+
AdminPutFavoriteErrors,
|
|
949
1071
|
ThrowOnError
|
|
950
1072
|
>({
|
|
951
1073
|
responseTransformer: async (data) =>
|
|
952
|
-
await
|
|
1074
|
+
await zAdminPutFavoriteResponse.parseAsync(data),
|
|
953
1075
|
security: [{ scheme: "bearer", type: "http" }],
|
|
954
|
-
url: "/v1/admin/
|
|
1076
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
955
1077
|
...options,
|
|
956
1078
|
headers: {
|
|
957
1079
|
"Content-Type": "application/json",
|
|
@@ -960,6 +1082,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
960
1082
|
});
|
|
961
1083
|
}
|
|
962
1084
|
|
|
1085
|
+
/**
|
|
1086
|
+
* Create a business subscription
|
|
1087
|
+
*/
|
|
963
1088
|
public adminCreateB2bSubscription<ThrowOnError extends boolean = false>(
|
|
964
1089
|
options: Options<AdminCreateB2bSubscriptionData, ThrowOnError>,
|
|
965
1090
|
): RequestResult<
|
|
@@ -984,6 +1109,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
984
1109
|
});
|
|
985
1110
|
}
|
|
986
1111
|
|
|
1112
|
+
/**
|
|
1113
|
+
* Request cancellation of a business subscription
|
|
1114
|
+
*/
|
|
987
1115
|
public adminCancelB2bSubscription<ThrowOnError extends boolean = false>(
|
|
988
1116
|
options: Options<AdminCancelB2bSubscriptionData, ThrowOnError>,
|
|
989
1117
|
): RequestResult<
|
|
@@ -999,11 +1127,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
999
1127
|
responseTransformer: async (data) =>
|
|
1000
1128
|
await zAdminCancelB2bSubscriptionResponse.parseAsync(data),
|
|
1001
1129
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1002
|
-
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/
|
|
1130
|
+
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/cancellation-requests",
|
|
1003
1131
|
...options,
|
|
1004
1132
|
});
|
|
1005
1133
|
}
|
|
1006
1134
|
|
|
1135
|
+
/**
|
|
1136
|
+
* Request insurance synchronization for a business subscription
|
|
1137
|
+
*/
|
|
1007
1138
|
public adminSyncB2bInsurance<ThrowOnError extends boolean = false>(
|
|
1008
1139
|
options: Options<AdminSyncB2bInsuranceData, ThrowOnError>,
|
|
1009
1140
|
): RequestResult<
|
|
@@ -1019,11 +1150,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
1019
1150
|
responseTransformer: async (data) =>
|
|
1020
1151
|
await zAdminSyncB2bInsuranceResponse.parseAsync(data),
|
|
1021
1152
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1022
|
-
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance
|
|
1153
|
+
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance-sync-requests",
|
|
1023
1154
|
...options,
|
|
1024
1155
|
});
|
|
1025
1156
|
}
|
|
1026
1157
|
|
|
1158
|
+
/**
|
|
1159
|
+
* Request insurance synchronization for business subscriptions
|
|
1160
|
+
*/
|
|
1027
1161
|
public adminSyncAllB2bInsurance<ThrowOnError extends boolean = false>(
|
|
1028
1162
|
options?: Options<AdminSyncAllB2bInsuranceData, ThrowOnError>,
|
|
1029
1163
|
): RequestResult<
|
|
@@ -1039,27 +1173,7 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
1039
1173
|
responseTransformer: async (data) =>
|
|
1040
1174
|
await zAdminSyncAllB2bInsuranceResponse.parseAsync(data),
|
|
1041
1175
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1042
|
-
url: "/v1/admin/b2b/subscriptions/insurance
|
|
1043
|
-
...options,
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
public adminSubscribeTracker<ThrowOnError extends boolean = false>(
|
|
1048
|
-
options: Options<
|
|
1049
|
-
AdminSubscribeTrackerData,
|
|
1050
|
-
ThrowOnError,
|
|
1051
|
-
AdminSubscribeTrackerResponse
|
|
1052
|
-
>,
|
|
1053
|
-
): Promise<ServerSentEventsResult<AdminSubscribeTrackerResponses>> {
|
|
1054
|
-
return (options.client ?? this.client).sse.get<
|
|
1055
|
-
AdminSubscribeTrackerResponses,
|
|
1056
|
-
AdminSubscribeTrackerErrors,
|
|
1057
|
-
ThrowOnError
|
|
1058
|
-
>({
|
|
1059
|
-
responseTransformer: async (data) =>
|
|
1060
|
-
await zAdminSubscribeTrackerResponse.parseAsync(data),
|
|
1061
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1062
|
-
url: "/v1/admin/trackers/{trackerId}/stream",
|
|
1176
|
+
url: "/v1/admin/b2b/subscriptions/insurance-sync-requests",
|
|
1063
1177
|
...options,
|
|
1064
1178
|
});
|
|
1065
1179
|
}
|