@littlebigbrain/client 0.4.3 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/client.d.ts +39 -1
- package/dist/client.js +92 -5
- package/dist/namespaces.d.ts +8 -0
- package/dist/namespaces.js +21 -4
- package/dist/schema.d.ts +1022 -206
- package/dist/transport.d.ts +2 -0
- package/dist/transport.js +4 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/transport.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export declare class LbbError extends Error {
|
|
|
30
30
|
readonly param?: string | null;
|
|
31
31
|
readonly requestId?: string | null;
|
|
32
32
|
readonly docUrl?: string | null;
|
|
33
|
+
readonly retryable?: boolean;
|
|
34
|
+
readonly retryAfterSeconds?: number;
|
|
33
35
|
constructor(status: number, body: string, error?: LbbErrorPayload | undefined);
|
|
34
36
|
}
|
|
35
37
|
export type QueryValue = string | number | boolean | undefined;
|
package/dist/transport.js
CHANGED
|
@@ -8,6 +8,8 @@ export class LbbError extends Error {
|
|
|
8
8
|
param;
|
|
9
9
|
requestId;
|
|
10
10
|
docUrl;
|
|
11
|
+
retryable;
|
|
12
|
+
retryAfterSeconds;
|
|
11
13
|
constructor(status, body, error) {
|
|
12
14
|
super(error?.message ?? `Little Big Brain ${status}: ${body}`);
|
|
13
15
|
this.status = status;
|
|
@@ -19,6 +21,8 @@ export class LbbError extends Error {
|
|
|
19
21
|
this.param = error?.param;
|
|
20
22
|
this.requestId = error?.request_id;
|
|
21
23
|
this.docUrl = error?.doc_url;
|
|
24
|
+
this.retryable = error?.retryable;
|
|
25
|
+
this.retryAfterSeconds = error?.retry_after_seconds;
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
export function sleep(ms) {
|
package/dist/types.d.ts
CHANGED