-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NAS-132607 / 25.04 / Adapting to new API (#11143)
- Loading branch information
Showing
149 changed files
with
1,122 additions
and
631 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export enum ApiErrorName { | ||
NotAuthenticated = 'ENOTAUTHENTICATED', | ||
NoAccess = 'EACCES', | ||
NoMemory = 'ENOMEM', | ||
AlreadyExists = 'EEXIST', | ||
Again = 'EAGAIN', | ||
Validation = 'EINVAL', | ||
} | ||
|
||
export const apiErrorNames = new Map<ApiErrorName, string>([ | ||
[ApiErrorName.NotAuthenticated, 'Not Authenticated'], | ||
[ApiErrorName.NoAccess, 'Access Error'], | ||
[ApiErrorName.NoMemory, 'No Memory'], | ||
[ApiErrorName.AlreadyExists, 'Already Exists'], | ||
[ApiErrorName.Again, 'Try Again'], | ||
[ApiErrorName.Validation, 'Validation Error'], | ||
]); | ||
|
||
export enum JsonRpcErrorCode { | ||
InvalidRequest = -32600, | ||
MethodNotFound = -32601, | ||
InvalidParams = -32602, | ||
InternalError = -32603, | ||
TooManyConcurrentCalls = -32000, | ||
CallError = -32001, | ||
} | ||
|
||
export enum CollectionChangeType { | ||
Changed = 'changed', | ||
Added = 'added', | ||
Removed = 'removed', | ||
} | ||
|
||
export enum ShellMessageType { | ||
Connected = 'connected', | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export enum ResponseErrorType { | ||
export enum JobExceptionType { | ||
Validation = 'VALIDATION', | ||
} |
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
Oops, something went wrong.