-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update ts definition generator
- Loading branch information
Showing
29 changed files
with
12,178 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* eslint-disable */ | ||
|
||
export const protobufPackage = "slash.api.v2"; | ||
|
||
export enum RowStatus { | ||
ROW_STATUS_UNSPECIFIED = 0, | ||
NORMAL = 1, | ||
ARCHIVED = 2, | ||
UNRECOGNIZED = -1, | ||
} | ||
|
||
export function rowStatusFromJSON(object: any): RowStatus { | ||
switch (object) { | ||
case 0: | ||
case "ROW_STATUS_UNSPECIFIED": | ||
return RowStatus.ROW_STATUS_UNSPECIFIED; | ||
case 1: | ||
case "NORMAL": | ||
return RowStatus.NORMAL; | ||
case 2: | ||
case "ARCHIVED": | ||
return RowStatus.ARCHIVED; | ||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return RowStatus.UNRECOGNIZED; | ||
} | ||
} | ||
|
||
export function rowStatusToJSON(object: RowStatus): string { | ||
switch (object) { | ||
case RowStatus.ROW_STATUS_UNSPECIFIED: | ||
return "ROW_STATUS_UNSPECIFIED"; | ||
case RowStatus.NORMAL: | ||
return "NORMAL"; | ||
case RowStatus.ARCHIVED: | ||
return "ARCHIVED"; | ||
case RowStatus.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} |
Oops, something went wrong.