mirror of https://github.com/waku-org/js-waku.git
Merge pull request #1952 from waku-org/fix/missing-history-error-values
fix: Added missing values for HistoryError to be sync with nwaku
This commit is contained in:
commit
4607d9ea86
|
@ -376,12 +376,16 @@ export interface HistoryResponse {
|
||||||
export namespace HistoryResponse {
|
export namespace HistoryResponse {
|
||||||
export enum HistoryError {
|
export enum HistoryError {
|
||||||
NONE = 'NONE',
|
NONE = 'NONE',
|
||||||
INVALID_CURSOR = 'INVALID_CURSOR'
|
INVALID_CURSOR = 'INVALID_CURSOR',
|
||||||
|
TOO_MANY_RESULTS = 'TOO_MANY_RESULTS',
|
||||||
|
SERVICE_UNAVAILABLE = 'SERVICE_UNAVAILABLE'
|
||||||
}
|
}
|
||||||
|
|
||||||
enum __HistoryErrorValues {
|
enum __HistoryErrorValues {
|
||||||
NONE = 0,
|
NONE = 0,
|
||||||
INVALID_CURSOR = 1
|
INVALID_CURSOR = 1,
|
||||||
|
TOO_MANY_RESULTS = 429,
|
||||||
|
SERVICE_UNAVAILABLE = 503
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace HistoryError {
|
export namespace HistoryError {
|
||||||
|
|
|
@ -42,6 +42,8 @@ message HistoryResponse {
|
||||||
enum HistoryError {
|
enum HistoryError {
|
||||||
NONE = 0;
|
NONE = 0;
|
||||||
INVALID_CURSOR = 1;
|
INVALID_CURSOR = 1;
|
||||||
|
TOO_MANY_RESULTS = 429;
|
||||||
|
SERVICE_UNAVAILABLE = 503;
|
||||||
}
|
}
|
||||||
HistoryError error = 4;
|
HistoryError error = 4;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue