Skip to content

Commit

Permalink
Fix: bumpversion
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectmak committed Jan 11, 2021
1 parent 57020bd commit 68128cb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 31 deletions.
56 changes: 26 additions & 30 deletions etc/sdk.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
```ts

import { Buckets } from '@textile/hub';
import { IGunChainReference } from 'gun/types/chain';
import { UserAuth } from '@textile/hub';

// @public (undocumented)
Expand Down Expand Up @@ -70,13 +69,6 @@ export class BrowserStorage {
remove(key: string): Promise<void>;
}

// @public
export interface BucketMetadata {
dbId: string;
encryptionKey: Uint8Array;
slug: string;
}

// @public (undocumented)
export interface CreateFolderRequest {
bucket: string;
Expand All @@ -86,24 +78,48 @@ export interface CreateFolderRequest {
// @public
export interface DirectoryEntry {
// (undocumented)
cid: string;
backupCount: number;
// (undocumented)
created: Date;
// (undocumented)
fileExtension: string;
// (undocumented)
ipfsHash: string;
// (undocumented)
isBackupInProgress: boolean;
// (undocumented)
isDir: boolean;
// (undocumented)
isLocallyAvailable: boolean;
// (undocumented)
isRestoreInProgress: boolean;
// (undocumented)
items?: DirectoryEntry[];
// (undocumented)
members: FileMember[];
// (undocumented)
name: string;
// (undocumented)
path: string;
// (undocumented)
size: number;
sizeInBytes: number;
// (undocumented)
updated: Date;
}

// @public (undocumented)
export class DirEntryNotFoundError extends Error {
constructor(filePath: string, bucket: string);
}

// @public
export interface FileMember {
// (undocumented)
address?: string;
// (undocumented)
publicKey: string;
}

// @public
export class FileStorage {
constructor(filename: string);
Expand All @@ -115,16 +131,6 @@ export class FileStorage {
remove(key: string): Promise<void>;
}

// @public
export class GunsdbMetadataStore implements UserMetadataStore {
createBucket(bucketSlug: string, dbId: string): Promise<BucketMetadata>;
findBucket(bucketSlug: string, dbId: string): Promise<BucketMetadata | undefined>;
// Warning: (ae-forgotten-export) The symbol "GunChainReference" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "GunDataState" needs to be exported by the entry point index.d.ts
static fromIdentity(identity: Identity, gunOrServer?: GunChainReference<GunDataState> | string): Promise<GunsdbMetadataStore>;
listBuckets(): Promise<BucketMetadata[]>;
}

// Warning: (ae-internal-missing-underscore) The name "HubAuthResponse" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
Expand All @@ -137,7 +143,6 @@ export interface HubAuthResponse {

// @public
export interface Identity {
privKey: Uint8Array;
public: Public;
sign(data: Uint8Array): Promise<Uint8Array>;
}
Expand Down Expand Up @@ -221,13 +226,6 @@ export class UnauthenticatedError extends Error {
constructor();
}

// @public
export interface UserMetadataStore {
createBucket: (bucketSlug: string, dbId: string) => Promise<BucketMetadata>;
findBucket: (bucketSlug: string, dbId: string) => Promise<BucketMetadata | undefined>;
listBuckets: () => Promise<BucketMetadata[]>;
}

// @public
export class Users {
constructor(config: UsersConfig, storage?: IdentityStorage);
Expand Down Expand Up @@ -264,8 +262,6 @@ export class UserStorage {
export interface UserStorageConfig {
bucketsInit?: (auth: UserAuth) => Buckets;
// (undocumented)
metadataStoreInit?: (identity: Identity) => Promise<UserMetadataStore>;
// (undocumented)
textileHubAddress?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"serve:docs": "npm run docs && cd website && npm run start",
"build:docs": "npm run docs && cd website && npm install && npm run build",
"bootstrap": "lerna bootstrap",
"bumpversion": "npm run build:docs && lerna version --no-push --no-git-tag-version",
"bumpversion": "npm run build && npm run build:docs && lerna version --no-push --no-git-tag-version",
"publish": "lerna publish",
"publish:from": "lerna publish from-package",
"clean": "lerna clean && lerna run clean",
Expand Down

0 comments on commit 68128cb

Please sign in to comment.