Skip to content

Commit

Permalink
update mapeo/schema, add deviceType.selfHostedServer to proto/rpc.p…
Browse files Browse the repository at this point in the history
…roto
  • Loading branch information
Tomás Ciccola committed Sep 2, 2024
1 parent 854aa91 commit 4bf9ec5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
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
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions proto/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ message DeviceInfo {
mobile = 1;
tablet = 2;
desktop = 3;
selfHostedServer = 4;
}
string name = 1;
optional DeviceType deviceType = 2;
Expand Down
1 change: 1 addition & 0 deletions src/generated/rpc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
6 changes: 6 additions & 0 deletions src/generated/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export var DeviceInfo_DeviceType = {
mobile: "mobile",
tablet: "tablet",
desktop: "desktop",
selfHostedServer: "selfHostedServer",
UNRECOGNIZED: "UNRECOGNIZED",
};
export function deviceInfo_DeviceTypeFromJSON(object) {
Expand All @@ -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:
Expand All @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/generated/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const DeviceInfo_DeviceType = {
mobile: "mobile",
tablet: "tablet",
desktop: "desktop",
selfHostedServer: "selfHostedServer",
UNRECOGNIZED: "UNRECOGNIZED",
} as const;

Expand All @@ -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:
Expand All @@ -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;
Expand Down

0 comments on commit 4bf9ec5

Please sign in to comment.