@bikefinder/staff-sdk 0.9.0 → 0.10.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-HF2DYHDY.js → chunk-OMGUXPBA.js} +5 -9
- package/dist/index.d.ts +2179 -147
- package/dist/index.js +1 -1
- package/dist/schemas.d.ts +2179 -147
- package/dist/schemas.js +1 -1
- package/package.json +1 -1
|
@@ -15160,7 +15160,7 @@ var favoriteContract = {
|
|
|
15160
15160
|
import { oc as oc17 } from "@orpc/contract";
|
|
15161
15161
|
import { z as z27 } from "zod";
|
|
15162
15162
|
var firmwareCatalogFamily = z27.enum(["gen2-lte", "gen2-battery"]);
|
|
15163
|
-
var firmwareCatalogCapability = "firmware-catalog-
|
|
15163
|
+
var firmwareCatalogCapability = "firmware-catalog-v2";
|
|
15164
15164
|
var maximumFirmwareUploadBytes = 1024 * 1024;
|
|
15165
15165
|
var catalogFirmwareVersion = z27.string().max(15).regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?$/).refine(
|
|
15166
15166
|
(value) => value.split(".").every((part) => Number(part) <= 255),
|
|
@@ -15172,8 +15172,6 @@ var firmwareCatalogUploadInput = z27.strictObject({
|
|
|
15172
15172
|
family: firmwareCatalogFamily,
|
|
15173
15173
|
version: catalogFirmwareVersion,
|
|
15174
15174
|
notes: z27.string().trim().min(1).max(2e3),
|
|
15175
|
-
sourceRevision: z27.string().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/).nullable(),
|
|
15176
|
-
buildFingerprint: digest.nullable(),
|
|
15177
15175
|
size: z27.int().min(1).max(maximumFirmwareUploadBytes),
|
|
15178
15176
|
sha256: digest
|
|
15179
15177
|
});
|
|
@@ -15188,14 +15186,12 @@ var firmwareCatalogRelease = z27.object({
|
|
|
15188
15186
|
size: z27.int().positive(),
|
|
15189
15187
|
sha256: digest,
|
|
15190
15188
|
notes: z27.string(),
|
|
15191
|
-
sourceRevision: z27.string().nullable(),
|
|
15192
|
-
buildFingerprint: z27.string().nullable(),
|
|
15193
15189
|
downloadUrl: z27.url({ protocol: /^https$/ }),
|
|
15194
15190
|
availableForUpdates: z27.boolean()
|
|
15195
15191
|
});
|
|
15196
15192
|
var firmwareCatalogInput = z27.strictObject({ id: catalogId });
|
|
15197
15193
|
var firmwareCatalogContract = {
|
|
15198
|
-
list: oc17.meta({ operation: "read" }).errors(
|
|
15194
|
+
list: oc17.meta({ operation: "read" }).errors(firmwareErrors).input(
|
|
15199
15195
|
z27.strictObject({
|
|
15200
15196
|
family: firmwareCatalogFamily,
|
|
15201
15197
|
limit: z27.int().min(1).max(100).default(25),
|
|
@@ -15207,9 +15203,9 @@ var firmwareCatalogContract = {
|
|
|
15207
15203
|
nextAfter: z27.string().nullable()
|
|
15208
15204
|
})
|
|
15209
15205
|
),
|
|
15210
|
-
get: oc17.meta({ operation: "read" }).errors(
|
|
15211
|
-
publish: oc17.errors(
|
|
15212
|
-
enable: oc17.errors(
|
|
15206
|
+
get: oc17.meta({ operation: "read" }).errors(firmwareErrors).input(firmwareCatalogInput).output(firmwareCatalogRelease),
|
|
15207
|
+
publish: oc17.errors(firmwareErrors).input(firmwareCatalogPublishInput).output(firmwareCatalogRelease),
|
|
15208
|
+
enable: oc17.errors(firmwareErrors).input(firmwareCatalogInput.extend({ revision: digest })).output(firmwareCatalogRelease)
|
|
15213
15209
|
};
|
|
15214
15210
|
|
|
15215
15211
|
// ../staff-contracts/src/gcp/maintenance.ts
|