Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update mapeo/schema #803

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@
"@fastify/type-provider-typebox": "^4.0.0",
"@hyperswarm/secret-stream": "^6.1.2",
"@mapeo/crypto": "1.0.0-alpha.10",
"@mapeo/schema": "^3.0.0-next.23",
"@mapeo/schema": "^3.0.0-next.24",
"@mapeo/sqlite-indexer": "1.0.0-alpha.9",
"@sinclair/typebox": "^0.29.6",
"b4a": "^1.6.3",
1 change: 1 addition & 0 deletions proto/rpc.proto
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ message DeviceInfo {
mobile = 1;
tablet = 2;
desktop = 3;
selfHostedServer = 4;
}
string name = 1;
optional DeviceType deviceType = 2;
1 change: 1 addition & 0 deletions src/generated/rpc.d.ts
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ export declare const DeviceInfo_DeviceType: {
readonly mobile: "mobile";
readonly tablet: "tablet";
readonly desktop: "desktop";
readonly selfHostedServer: "selfHostedServer";
readonly UNRECOGNIZED: "UNRECOGNIZED";
};
export type DeviceInfo_DeviceType = typeof DeviceInfo_DeviceType[keyof typeof DeviceInfo_DeviceType];
6 changes: 6 additions & 0 deletions src/generated/rpc.js
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ export var DeviceInfo_DeviceType = {
mobile: "mobile",
tablet: "tablet",
desktop: "desktop",
selfHostedServer: "selfHostedServer",
UNRECOGNIZED: "UNRECOGNIZED",
};
export function deviceInfo_DeviceTypeFromJSON(object) {
@@ -64,6 +65,9 @@ export function deviceInfo_DeviceTypeFromJSON(object) {
case 3:
case "desktop":
return DeviceInfo_DeviceType.desktop;
case 4:
case "selfHostedServer":
return DeviceInfo_DeviceType.selfHostedServer;
case -1:
case "UNRECOGNIZED":
default:
@@ -80,6 +84,8 @@ export function deviceInfo_DeviceTypeToNumber(object) {
return 2;
case DeviceInfo_DeviceType.desktop:
return 3;
case DeviceInfo_DeviceType.selfHostedServer:
return 4;
case DeviceInfo_DeviceType.UNRECOGNIZED:
default:
return -1;
6 changes: 6 additions & 0 deletions src/generated/rpc.ts
Original file line number Diff line number Diff line change
@@ -83,6 +83,7 @@ export const DeviceInfo_DeviceType = {
mobile: "mobile",
tablet: "tablet",
desktop: "desktop",
selfHostedServer: "selfHostedServer",
UNRECOGNIZED: "UNRECOGNIZED",
} as const;

@@ -102,6 +103,9 @@ export function deviceInfo_DeviceTypeFromJSON(object: any): DeviceInfo_DeviceTyp
case 3:
case "desktop":
return DeviceInfo_DeviceType.desktop;
case 4:
case "selfHostedServer":
return DeviceInfo_DeviceType.selfHostedServer;
case -1:
case "UNRECOGNIZED":
default:
@@ -119,6 +123,8 @@ export function deviceInfo_DeviceTypeToNumber(object: DeviceInfo_DeviceType): nu
return 2;
case DeviceInfo_DeviceType.desktop:
return 3;
case DeviceInfo_DeviceType.selfHostedServer:
return 4;
case DeviceInfo_DeviceType.UNRECOGNIZED:
default:
return -1;
Loading