@bikefinder/sdk 0.41.0 → 0.42.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/dist/{chunk-QUD2B2SW.js → chunk-QSBZXWZK.js} +2 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +1 -1
- package/dist/schemas.d.ts +15 -1
- package/dist/schemas.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// ../common-contracts/src/shared.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
var apiContractVersion = "
|
|
3
|
+
var apiContractVersion = "6";
|
|
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."
|
|
@@ -564,7 +564,7 @@ var trackerLookupContract = oc8.meta({ operation: "read" }).errors(apiErrors).in
|
|
|
564
564
|
// ../common-contracts/src/position-history.ts
|
|
565
565
|
import { oc as oc9 } from "@orpc/contract";
|
|
566
566
|
import { z as z11 } from "zod";
|
|
567
|
-
var positionSources = ["gnss", "wifi", "cellular"];
|
|
567
|
+
var positionSources = ["gnss", "wifi", "cellular", "ble", "crowd"];
|
|
568
568
|
var positionSource = z11.enum(positionSources);
|
|
569
569
|
var cursor = z11.string().max(66e3).regex(/^[A-Za-z0-9_-]+$/);
|
|
570
570
|
var positionHistoryInput = z11.strictObject({
|
package/dist/index.d.ts
CHANGED
|
@@ -15608,7 +15608,7 @@ export type SubscriptionAllocationInput = z.infer<typeof subscriptionAllocationI
|
|
|
15608
15608
|
export type Subscription = z.infer<typeof subscription>;
|
|
15609
15609
|
export type SubscriptionPage = z.infer<typeof subscriptionPage>;
|
|
15610
15610
|
/** Bump for incompatible public HTTP or realtime contract changes. */
|
|
15611
|
-
export declare const apiContractVersion = "
|
|
15611
|
+
export declare const apiContractVersion = "6";
|
|
15612
15612
|
declare const trackerInput: z.ZodObject<{
|
|
15613
15613
|
deviceId: z.ZodString;
|
|
15614
15614
|
}, z.core.$strict>;
|
|
@@ -24719,12 +24719,16 @@ export type TrackerMovementAlertsInput = z.infer<typeof trackerMovementAlertsInp
|
|
|
24719
24719
|
export declare const positionSources: readonly [
|
|
24720
24720
|
"gnss",
|
|
24721
24721
|
"wifi",
|
|
24722
|
-
"cellular"
|
|
24722
|
+
"cellular",
|
|
24723
|
+
"ble",
|
|
24724
|
+
"crowd"
|
|
24723
24725
|
];
|
|
24724
24726
|
declare const positionSource: z.ZodEnum<{
|
|
24725
24727
|
gnss: "gnss";
|
|
24726
24728
|
wifi: "wifi";
|
|
24727
24729
|
cellular: "cellular";
|
|
24730
|
+
ble: "ble";
|
|
24731
|
+
crowd: "crowd";
|
|
24728
24732
|
}>;
|
|
24729
24733
|
declare const positionHistoryInput: z.ZodObject<{
|
|
24730
24734
|
deviceId: z.ZodString;
|
|
@@ -24734,6 +24738,8 @@ declare const positionHistoryInput: z.ZodObject<{
|
|
|
24734
24738
|
gnss: "gnss";
|
|
24735
24739
|
wifi: "wifi";
|
|
24736
24740
|
cellular: "cellular";
|
|
24741
|
+
ble: "ble";
|
|
24742
|
+
crowd: "crowd";
|
|
24737
24743
|
}>>>;
|
|
24738
24744
|
limit: z.ZodDefault<z.ZodInt>;
|
|
24739
24745
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -24744,6 +24750,8 @@ declare const positionHistoryItem: z.ZodObject<{
|
|
|
24744
24750
|
gnss: "gnss";
|
|
24745
24751
|
wifi: "wifi";
|
|
24746
24752
|
cellular: "cellular";
|
|
24753
|
+
ble: "ble";
|
|
24754
|
+
crowd: "crowd";
|
|
24747
24755
|
}>;
|
|
24748
24756
|
measuredAt: z.ZodISODateTime;
|
|
24749
24757
|
receivedAt: z.ZodISODateTime;
|
|
@@ -24761,6 +24769,8 @@ declare const positionHistoryPage: z.ZodObject<{
|
|
|
24761
24769
|
gnss: "gnss";
|
|
24762
24770
|
wifi: "wifi";
|
|
24763
24771
|
cellular: "cellular";
|
|
24772
|
+
ble: "ble";
|
|
24773
|
+
crowd: "crowd";
|
|
24764
24774
|
}>;
|
|
24765
24775
|
measuredAt: z.ZodISODateTime;
|
|
24766
24776
|
receivedAt: z.ZodISODateTime;
|
|
@@ -56234,6 +56244,8 @@ declare const trackerContract: {
|
|
|
56234
56244
|
gnss: "gnss";
|
|
56235
56245
|
wifi: "wifi";
|
|
56236
56246
|
cellular: "cellular";
|
|
56247
|
+
ble: "ble";
|
|
56248
|
+
crowd: "crowd";
|
|
56237
56249
|
}>>>;
|
|
56238
56250
|
limit: z.ZodDefault<z.ZodInt>;
|
|
56239
56251
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -56244,6 +56256,8 @@ declare const trackerContract: {
|
|
|
56244
56256
|
gnss: "gnss";
|
|
56245
56257
|
wifi: "wifi";
|
|
56246
56258
|
cellular: "cellular";
|
|
56259
|
+
ble: "ble";
|
|
56260
|
+
crowd: "crowd";
|
|
56247
56261
|
}>;
|
|
56248
56262
|
measuredAt: z.ZodISODateTime;
|
|
56249
56263
|
receivedAt: z.ZodISODateTime;
|
package/dist/index.js
CHANGED
package/dist/schemas.d.ts
CHANGED
|
@@ -24940,12 +24940,16 @@ export type TrackerMovementAlertsInput = z.infer<typeof trackerMovementAlertsInp
|
|
|
24940
24940
|
export declare const positionSources: readonly [
|
|
24941
24941
|
"gnss",
|
|
24942
24942
|
"wifi",
|
|
24943
|
-
"cellular"
|
|
24943
|
+
"cellular",
|
|
24944
|
+
"ble",
|
|
24945
|
+
"crowd"
|
|
24944
24946
|
];
|
|
24945
24947
|
declare const positionSource: z.ZodEnum<{
|
|
24946
24948
|
gnss: "gnss";
|
|
24947
24949
|
wifi: "wifi";
|
|
24948
24950
|
cellular: "cellular";
|
|
24951
|
+
ble: "ble";
|
|
24952
|
+
crowd: "crowd";
|
|
24949
24953
|
}>;
|
|
24950
24954
|
declare const positionHistoryInput: z.ZodObject<{
|
|
24951
24955
|
deviceId: z.ZodString;
|
|
@@ -24955,6 +24959,8 @@ declare const positionHistoryInput: z.ZodObject<{
|
|
|
24955
24959
|
gnss: "gnss";
|
|
24956
24960
|
wifi: "wifi";
|
|
24957
24961
|
cellular: "cellular";
|
|
24962
|
+
ble: "ble";
|
|
24963
|
+
crowd: "crowd";
|
|
24958
24964
|
}>>>;
|
|
24959
24965
|
limit: z.ZodDefault<z.ZodInt>;
|
|
24960
24966
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -24965,6 +24971,8 @@ declare const positionHistoryItem: z.ZodObject<{
|
|
|
24965
24971
|
gnss: "gnss";
|
|
24966
24972
|
wifi: "wifi";
|
|
24967
24973
|
cellular: "cellular";
|
|
24974
|
+
ble: "ble";
|
|
24975
|
+
crowd: "crowd";
|
|
24968
24976
|
}>;
|
|
24969
24977
|
measuredAt: z.ZodISODateTime;
|
|
24970
24978
|
receivedAt: z.ZodISODateTime;
|
|
@@ -24982,6 +24990,8 @@ declare const positionHistoryPage: z.ZodObject<{
|
|
|
24982
24990
|
gnss: "gnss";
|
|
24983
24991
|
wifi: "wifi";
|
|
24984
24992
|
cellular: "cellular";
|
|
24993
|
+
ble: "ble";
|
|
24994
|
+
crowd: "crowd";
|
|
24985
24995
|
}>;
|
|
24986
24996
|
measuredAt: z.ZodISODateTime;
|
|
24987
24997
|
receivedAt: z.ZodISODateTime;
|
|
@@ -56455,6 +56465,8 @@ declare const trackerContract: {
|
|
|
56455
56465
|
gnss: "gnss";
|
|
56456
56466
|
wifi: "wifi";
|
|
56457
56467
|
cellular: "cellular";
|
|
56468
|
+
ble: "ble";
|
|
56469
|
+
crowd: "crowd";
|
|
56458
56470
|
}>>>;
|
|
56459
56471
|
limit: z.ZodDefault<z.ZodInt>;
|
|
56460
56472
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -56465,6 +56477,8 @@ declare const trackerContract: {
|
|
|
56465
56477
|
gnss: "gnss";
|
|
56466
56478
|
wifi: "wifi";
|
|
56467
56479
|
cellular: "cellular";
|
|
56480
|
+
ble: "ble";
|
|
56481
|
+
crowd: "crowd";
|
|
56468
56482
|
}>;
|
|
56469
56483
|
measuredAt: z.ZodISODateTime;
|
|
56470
56484
|
receivedAt: z.ZodISODateTime;
|
package/dist/schemas.js
CHANGED