@finueva/drive 0.2.0 → 0.5.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/dist/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region src/core.d.ts
2
- declare const DRIVE_API_ERROR_CODES: readonly ["authentication_required", "identity_authority_unavailable", "permission_denied", "resource_not_found", "invalid_request", "invalid_pagination_cursor", "invalid_idempotency_key", "precondition_failed", "idempotency_conflict", "quota_exceeded", "service_unavailable", "internal_error"];
2
+ declare const DRIVE_API_ERROR_CODES: readonly ["authentication_required", "identity_authority_unavailable", "permission_denied", "resource_not_found", "invalid_request", "invalid_pagination_cursor", "invalid_idempotency_key", "precondition_failed", "range_not_satisfiable", "idempotency_conflict", "quota_exceeded", "upload_recovery_required", "service_unavailable", "internal_error"];
3
3
  type DriveApiErrorCode = (typeof DRIVE_API_ERROR_CODES)[number];
4
4
  type DriveSdkErrorCode = "invalid_input" | "credential_unavailable" | "network_error" | "timeout" | "aborted" | "invalid_response";
5
5
  type DriveErrorCode = DriveApiErrorCode | DriveSdkErrorCode;
@@ -12,8 +12,10 @@ declare const DRIVE_API_ERROR_MESSAGES: Readonly<{
12
12
  readonly invalid_pagination_cursor: "The pagination cursor is invalid.";
13
13
  readonly invalid_idempotency_key: "The idempotency key is invalid.";
14
14
  readonly precondition_failed: "The request precondition failed.";
15
+ readonly range_not_satisfiable: "The requested byte range is not satisfiable.";
15
16
  readonly idempotency_conflict: "The idempotency key conflicts with an earlier request.";
16
17
  readonly quota_exceeded: "The workspace storage quota would be exceeded.";
18
+ readonly upload_recovery_required: "The upload requires recovery before it can continue.";
17
19
  readonly service_unavailable: "The service is temporarily unavailable.";
18
20
  readonly internal_error: "The request could not be completed.";
19
21
  }>;
package/dist/core.js CHANGED
@@ -8,8 +8,10 @@ const DRIVE_API_ERROR_CODES = Object.freeze([
8
8
  "invalid_pagination_cursor",
9
9
  "invalid_idempotency_key",
10
10
  "precondition_failed",
11
+ "range_not_satisfiable",
11
12
  "idempotency_conflict",
12
13
  "quota_exceeded",
14
+ "upload_recovery_required",
13
15
  "service_unavailable",
14
16
  "internal_error"
15
17
  ]);
@@ -22,8 +24,10 @@ const DRIVE_API_ERROR_MESSAGES = Object.freeze({
22
24
  invalid_pagination_cursor: "The pagination cursor is invalid.",
23
25
  invalid_idempotency_key: "The idempotency key is invalid.",
24
26
  precondition_failed: "The request precondition failed.",
27
+ range_not_satisfiable: "The requested byte range is not satisfiable.",
25
28
  idempotency_conflict: "The idempotency key conflicts with an earlier request.",
26
29
  quota_exceeded: "The workspace storage quota would be exceeded.",
30
+ upload_recovery_required: "The upload requires recovery before it can continue.",
27
31
  service_unavailable: "The service is temporarily unavailable.",
28
32
  internal_error: "The request could not be completed."
29
33
  });
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as UploadQuotaReservation, C as PermissionGrantee, D as ReservedUploadQuota, E as ReadEffectiveItemPermissionsInput, O as RevokeItemPermissionInput, S as PermissionGrant, _ as FolderPage, a as CreateUploadInput, b as ListItemPermissionsInput, c as DriveClientConfig, d as DriveOperationResult, f as DriveResponseValidators, g as FolderItem, i as CreateItemPermissionInput, k as UpdateItemPermissionInput, m as EffectivePermissionAction, n as AbortedUploadQuota, o as CurrentWorkspace, r as CreateFolderInput, s as DriveClient, t as AbortUploadInput, u as DriveCredentialProvider, v as GetCurrentWorkspaceInput, w as PermissionMutation, x as PermissionAction, y as ListFolderChildrenInput } from "./contract.js";
1
+ import { $ as UpdateItemInput, A as ListItemVersionsInput, B as PermissionGrant, C as FolderPage, D as GetUploadStatusInput, E as GetItemVersionInput, F as ManagedItemVersionPage, G as ReadEffectiveItemPermissionsInput, H as PermissionMutation, I as ManagedItemVersionResource, J as RestoreItemInput, K as ReadyUpload, L as ManagedItemVersionRestoreResult, M as ManagedDownloadRestorePending, N as ManagedItemMetadata, O as ListFolderChildrenInput, P as ManagedItemVersion, Q as TrashItemInput, R as ManagedLifecycleItem, S as FolderItem, T as GetItemInput, V as PermissionGrantee, W as ProtectionClassification, X as RevokeItemPermissionInput, Y as RestoreItemVersionInput, Z as SearchWorkspaceItemsInput, _ as DriveResponseValidators, a as CreateItemPermissionInput, at as UploadFileProgressCallback, b as EffectivePermissionAction, c as CurrentWorkspace, ct as UploadSession, d as DriveClient, dt as WorkspaceItemSearchPage, et as UpdateItemPermissionInput, f as DriveClientConfig, g as DriveOperations, h as DriveOperationResult, i as CreateFolderInput, it as UploadFileProgress, j as ManagedDownloadDescriptor, k as ListItemPermissionsInput, l as DeleteItemInput, lt as UploadStatus, m as DriveCredentialProvider, n as CompleteUploadInput, nt as UploadFileInput, o as CreateUploadInput, ot as UploadPartDescriptor, q as RecordUploadPartInput, r as CreateDownloadInput, rt as UploadFilePhase, s as CreateUploadPartDescriptorInput, st as UploadPartResult, t as AbortUploadInput, tt as UploadConfirmedPart, u as DownloadItemResult, ut as WorkspaceItemSearchItem, w as GetCurrentWorkspaceInput, z as PermissionAction } from "./contract.js";
2
2
  import { createDriveClient } from "./client.js";
3
3
  import { DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, DriveApiErrorCode, DriveError, DriveErrorCode, DriveSdkErrorCode } from "./core.js";
4
- export { type AbortUploadInput, type AbortedUploadQuota, type CreateFolderInput, type CreateItemPermissionInput, type CreateUploadInput, type CurrentWorkspace, DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, type DriveApiErrorCode, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, DriveError, type DriveErrorCode, type DriveOperationResult, type DriveResponseValidators, type DriveSdkErrorCode, type EffectivePermissionAction, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type ListFolderChildrenInput, type ListItemPermissionsInput, type PermissionAction, type PermissionGrant, type PermissionGrantee, type PermissionMutation, type ReadEffectiveItemPermissionsInput, type ReservedUploadQuota, type RevokeItemPermissionInput, type UpdateItemPermissionInput, type UploadQuotaReservation, createDriveClient };
4
+ export { type AbortUploadInput, type CompleteUploadInput, type CreateDownloadInput, type CreateFolderInput, type CreateItemPermissionInput, type CreateUploadInput, type CreateUploadPartDescriptorInput, type CurrentWorkspace, DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, type DeleteItemInput, type DownloadItemResult, type DriveApiErrorCode, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, DriveError, type DriveErrorCode, type DriveOperationResult, type DriveOperations, type DriveResponseValidators, type DriveSdkErrorCode, type EffectivePermissionAction, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetUploadStatusInput, type ListFolderChildrenInput, type ListItemPermissionsInput, type ListItemVersionsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type PermissionAction, type PermissionGrant, type PermissionGrantee, type PermissionMutation, type ProtectionClassification, type ReadEffectiveItemPermissionsInput, type ReadyUpload, type RecordUploadPartInput, type RestoreItemInput, type RestoreItemVersionInput, type RevokeItemPermissionInput, type SearchWorkspaceItemsInput, type TrashItemInput, type UpdateItemInput, type UpdateItemPermissionInput, type UploadConfirmedPart, type UploadFileInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadPartDescriptor, type UploadPartResult, type UploadSession, type UploadStatus, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, createDriveClient };