@finueva/drive 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/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", "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;
@@ -14,6 +14,7 @@ declare const DRIVE_API_ERROR_MESSAGES: Readonly<{
14
14
  readonly precondition_failed: "The request precondition failed.";
15
15
  readonly idempotency_conflict: "The idempotency key conflicts with an earlier request.";
16
16
  readonly quota_exceeded: "The workspace storage quota would be exceeded.";
17
+ readonly upload_recovery_required: "The upload requires recovery before it can continue.";
17
18
  readonly service_unavailable: "The service is temporarily unavailable.";
18
19
  readonly internal_error: "The request could not be completed.";
19
20
  }>;
package/dist/core.js CHANGED
@@ -10,6 +10,7 @@ const DRIVE_API_ERROR_CODES = Object.freeze([
10
10
  "precondition_failed",
11
11
  "idempotency_conflict",
12
12
  "quota_exceeded",
13
+ "upload_recovery_required",
13
14
  "service_unavailable",
14
15
  "internal_error"
15
16
  ]);
@@ -24,6 +25,7 @@ const DRIVE_API_ERROR_MESSAGES = Object.freeze({
24
25
  precondition_failed: "The request precondition failed.",
25
26
  idempotency_conflict: "The idempotency key conflicts with an earlier request.",
26
27
  quota_exceeded: "The workspace storage quota would be exceeded.",
28
+ upload_recovery_required: "The upload requires recovery before it can continue.",
27
29
  service_unavailable: "The service is temporarily unavailable.",
28
30
  internal_error: "The request could not be completed."
29
31
  });
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 { A as ProtectionClassification, B as UploadFileProgressCallback, C as ListFolderChildrenInput, D as PermissionGrantee, E as PermissionGrant, F as UpdateItemPermissionInput, H as UploadPartResult, I as UploadConfirmedPart, L as UploadFileInput, M as ReadyUpload, N as RecordUploadPartInput, O as PermissionMutation, P as RevokeItemPermissionInput, R as UploadFilePhase, S as GetUploadStatusInput, T as PermissionAction, U as UploadSession, V as UploadPartDescriptor, W as UploadStatus, _ as EffectivePermissionAction, a as CreateUploadInput, b as FolderPage, c as DriveClient, d as DriveCredentialProvider, f as DriveOperationResult, i as CreateItemPermissionInput, j as ReadEffectiveItemPermissionsInput, l as DriveClientConfig, m as DriveResponseValidators, n as CompleteUploadInput, o as CreateUploadPartDescriptorInput, p as DriveOperations, r as CreateFolderInput, s as CurrentWorkspace, t as AbortUploadInput, w as ListItemPermissionsInput, x as GetCurrentWorkspaceInput, y as FolderItem, z as UploadFileProgress } 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 CreateFolderInput, type CreateItemPermissionInput, type CreateUploadInput, type CreateUploadPartDescriptorInput, type CurrentWorkspace, DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, 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 GetUploadStatusInput, type ListFolderChildrenInput, type ListItemPermissionsInput, type PermissionAction, type PermissionGrant, type PermissionGrantee, type PermissionMutation, type ProtectionClassification, type ReadEffectiveItemPermissionsInput, type ReadyUpload, type RecordUploadPartInput, type RevokeItemPermissionInput, type UpdateItemPermissionInput, type UploadConfirmedPart, type UploadFileInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadPartDescriptor, type UploadPartResult, type UploadSession, type UploadStatus, createDriveClient };