@docbox-nz/hapi-gateway 0.2.0 → 0.3.0
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/.github/workflows/build.yml +30 -0
- package/.github/workflows/release.yml +37 -0
- package/.oxfmtrc.json +8 -0
- package/.oxlintrc.json +11 -0
- package/.zed/settings.json +10 -0
- package/README.md +32 -38
- package/cspell.json +1 -4
- package/dist/index.node.cjs +15031 -21882
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.esm.js +15024 -21880
- package/dist/index.node.esm.js.map +1 -1
- package/package.json +44 -55
- package/rolldown.config.js +19 -0
- package/src/index.ts +257 -257
- package/tsconfig.json +15 -15
- package/.eslintignore +0 -6
- package/.eslintrc +0 -131
- package/.prettierignore +0 -11
- package/.prettierrc +0 -6
- package/dist/api/adminService.d.ts +0 -16
- package/dist/api/boxService.d.ts +0 -43
- package/dist/api/client.d.ts +0 -45
- package/dist/api/docboxFile.d.ts +0 -15
- package/dist/api/fileService.d.ts +0 -251
- package/dist/api/folderService.d.ts +0 -45
- package/dist/api/linkService.d.ts +0 -115
- package/dist/api/taskService.d.ts +0 -23
- package/dist/api/utils.d.ts +0 -1
- package/dist/error.d.ts +0 -11
- package/dist/index.browser.cjs +0 -988
- package/dist/index.browser.cjs.map +0 -1
- package/dist/index.browser.esm.js +0 -984
- package/dist/index.browser.esm.js.map +0 -1
- package/dist/index.browser.js +0 -4390
- package/dist/index.browser.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.node.js +0 -20809
- package/dist/index.node.js.map +0 -1
- package/dist/options.d.ts +0 -85
- package/dist/types/box.d.ts +0 -59
- package/dist/types/file.d.ts +0 -371
- package/dist/types/folder.d.ts +0 -153
- package/dist/types/index.d.ts +0 -22
- package/dist/types/link.d.ts +0 -136
- package/dist/types/search.d.ts +0 -177
- package/dist/types/shared.d.ts +0 -94
- package/dist/types/user.d.ts +0 -20
- package/rollup.config.js +0 -36
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocboxTask, DocumentBoxScope } from '../types';
|
|
2
|
-
import { DocboxClient } from './client';
|
|
3
|
-
export declare class TaskService {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: DocboxClient);
|
|
6
|
-
/**
|
|
7
|
-
* Get the current status of a specific task
|
|
8
|
-
*
|
|
9
|
-
* @param scope
|
|
10
|
-
* @param task_id
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
get(scope: DocumentBoxScope, task_id: string, abort?: AbortController): Promise<DocboxTask>;
|
|
14
|
-
/**
|
|
15
|
-
* Polls for the completion of a task
|
|
16
|
-
*
|
|
17
|
-
* @param scope
|
|
18
|
-
* @param task_id
|
|
19
|
-
* @param abort
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
finished<T>(scope: DocumentBoxScope, task_id: string, interval?: number, abort?: AbortController): Promise<T>;
|
|
23
|
-
}
|
package/dist/api/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sleep(timeout: number): Promise<unknown>;
|
package/dist/error.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create an axios response error interceptor to strip the
|
|
3
|
-
* sensitive internal docbox URL from error responses
|
|
4
|
-
*
|
|
5
|
-
* Also lifts the docbox error messages out of the response
|
|
6
|
-
* body onto the returned error for better HAPI error reporting
|
|
7
|
-
*
|
|
8
|
-
* @param docboxURL URL of the docbox server
|
|
9
|
-
* @returns The request handler
|
|
10
|
-
*/
|
|
11
|
-
export declare function createHandleAxiosError(docboxURL: string): (error: any) => any;
|