@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.
Files changed (48) hide show
  1. package/.github/workflows/build.yml +30 -0
  2. package/.github/workflows/release.yml +37 -0
  3. package/.oxfmtrc.json +8 -0
  4. package/.oxlintrc.json +11 -0
  5. package/.zed/settings.json +10 -0
  6. package/README.md +32 -38
  7. package/cspell.json +1 -4
  8. package/dist/index.node.cjs +15031 -21882
  9. package/dist/index.node.cjs.map +1 -1
  10. package/dist/index.node.esm.js +15024 -21880
  11. package/dist/index.node.esm.js.map +1 -1
  12. package/package.json +44 -55
  13. package/rolldown.config.js +19 -0
  14. package/src/index.ts +257 -257
  15. package/tsconfig.json +15 -15
  16. package/.eslintignore +0 -6
  17. package/.eslintrc +0 -131
  18. package/.prettierignore +0 -11
  19. package/.prettierrc +0 -6
  20. package/dist/api/adminService.d.ts +0 -16
  21. package/dist/api/boxService.d.ts +0 -43
  22. package/dist/api/client.d.ts +0 -45
  23. package/dist/api/docboxFile.d.ts +0 -15
  24. package/dist/api/fileService.d.ts +0 -251
  25. package/dist/api/folderService.d.ts +0 -45
  26. package/dist/api/linkService.d.ts +0 -115
  27. package/dist/api/taskService.d.ts +0 -23
  28. package/dist/api/utils.d.ts +0 -1
  29. package/dist/error.d.ts +0 -11
  30. package/dist/index.browser.cjs +0 -988
  31. package/dist/index.browser.cjs.map +0 -1
  32. package/dist/index.browser.esm.js +0 -984
  33. package/dist/index.browser.esm.js.map +0 -1
  34. package/dist/index.browser.js +0 -4390
  35. package/dist/index.browser.js.map +0 -1
  36. package/dist/index.d.ts +0 -4
  37. package/dist/index.node.js +0 -20809
  38. package/dist/index.node.js.map +0 -1
  39. package/dist/options.d.ts +0 -85
  40. package/dist/types/box.d.ts +0 -59
  41. package/dist/types/file.d.ts +0 -371
  42. package/dist/types/folder.d.ts +0 -153
  43. package/dist/types/index.d.ts +0 -22
  44. package/dist/types/link.d.ts +0 -136
  45. package/dist/types/search.d.ts +0 -177
  46. package/dist/types/shared.d.ts +0 -94
  47. package/dist/types/user.d.ts +0 -20
  48. 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
- }
@@ -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;