@bikefinder/sdk 0.42.0 → 0.44.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.
@@ -1,6 +1,6 @@
1
1
  // ../common-contracts/src/shared.ts
2
2
  import { z } from "zod";
3
- var apiContractVersion = "6";
3
+ var apiContractVersion = "8";
4
4
  var documentId = z.string().min(1).max(128).refine(
5
5
  (value) => value.trim().length > 0 && ![".", ".."].includes(value) && !/[\\/\p{Cc}]/u.test(value) && !value.startsWith("__"),
6
6
  "Invalid document ID."
@@ -293,8 +293,7 @@ var tracker = z4.object({
293
293
  identity: trackerSummary.shape.identity,
294
294
  preferences: z4.object({ movementAlerts: z4.boolean() }),
295
295
  capabilities: z4.object({
296
- firmwareUpdates: z4.boolean(),
297
- factoryResetReports: z4.boolean()
296
+ firmwareUpdates: z4.boolean()
298
297
  })
299
298
  });
300
299
  var customerTrackerDetails = tracker.omit({ members: true }).extend({
@@ -593,7 +592,7 @@ var positionHistoryPage = z11.object({
593
592
  });
594
593
  var positionHistoryContract = oc9.meta({ operation: "read" }).errors(apiErrors).input(positionHistoryInput).output(positionHistoryPage);
595
594
 
596
- // ../customer-contracts/src/gcp/firmware.ts
595
+ // ../customer-contracts/src/firmware.ts
597
596
  import { oc as oc10 } from "@orpc/contract";
598
597
  import { z as z12 } from "zod";
599
598
  var firmwareAvailability = z12.object({
@@ -678,11 +677,6 @@ var bluetoothCredentials = z13.object({
678
677
  pin: bluetoothPin,
679
678
  crowdKey: z13.int().min(0).max(16777215).nullable()
680
679
  });
681
- var factoryResetReport = z13.strictObject({
682
- deviceId: documentId,
683
- requestId,
684
- trackerCreatedAt: z13.iso.datetime()
685
- });
686
680
  var batteryObservation = z13.strictObject({
687
681
  deviceId: documentId,
688
682
  observedAt: z13.iso.datetime(),
@@ -708,7 +702,6 @@ var locationObservation = z13.strictObject({
708
702
  var bluetoothContract = {
709
703
  reportLocation: oc11.errors(apiErrors).input(locationObservation).output(z13.object({ observationId: documentId })),
710
704
  credentials: oc11.meta({ operation: "read" }).errors(apiErrors).input(trackerInput).output(bluetoothCredentials),
711
- reportFactoryReset: oc11.errors(apiErrors).input(factoryResetReport).output(z13.void()),
712
705
  reportBattery: oc11.errors(apiErrors).input(batteryObservation).output(z13.void())
713
706
  };
714
707
 
@@ -961,7 +954,6 @@ export {
961
954
  gen1FirmwareContract,
962
955
  bluetoothPin,
963
956
  bluetoothCredentials,
964
- factoryResetReport,
965
957
  batteryObservation,
966
958
  locationObservation,
967
959
  bluetoothContract,