From e32a4f89c81ded0310edc28e06dd5764b484d482 Mon Sep 17 00:00:00 2001 From: Perfect Makanju Date: Thu, 18 Feb 2021 14:58:52 +0100 Subject: [PATCH] Release: v0.0.19 --- changelogs/v0.0.19.md | 14 ++++++++++ etc/sdk.api.md | 49 +++++++++++++++++++++++++++++++++++ lerna.json | 2 +- packages/mailbox/package.json | 4 +-- packages/sdk/package.json | 10 +++---- packages/storage/package.json | 8 +++--- packages/users/package.json | 2 +- packages/utils/package.json | 4 +-- 8 files changed, 78 insertions(+), 15 deletions(-) create mode 100644 changelogs/v0.0.19.md diff --git a/changelogs/v0.0.19.md b/changelogs/v0.0.19.md new file mode 100644 index 0000000..6135a95 --- /dev/null +++ b/changelogs/v0.0.19.md @@ -0,0 +1,14 @@ +# CHANGELOG + +## v0.0.19 + +This release contains sharing new methods on the `UserStorage` class. + +### Features +- Implementation of `UserStorage.getNotifications`. This returns a list of notifications + for a user. Currently, invitations to access a file can be gotten from the mailbox. + +### Fixes +- `UserStorage.getFilesRecentlySharedWith()` was renamed to `UserStorage.getRecentlySharedWith()`. +- Stub implementations of `User.Storage.getRecentlySharedWith()` and `UserStorage.getFilesSharedByMe()` have been +replaced with their actual implementation. diff --git a/etc/sdk.api.md b/etc/sdk.api.md index 6b35e5a..cffdd5a 100644 --- a/etc/sdk.api.md +++ b/etc/sdk.api.md @@ -212,6 +212,16 @@ export interface GetFilesSharedWithMeResponse { nextOffset?: string; } +// @public (undocumented) +export interface GetNotificationsResponse { + // (undocumented) + lastSeenAt: number; + // (undocumented) + nextOffset: string; + // (undocumented) + notifications: Notification_2[]; +} + // @public (undocumented) export interface GetRecentlySharedWithResponse { // (undocumented) @@ -314,6 +324,44 @@ export interface MakeFilePublicRequest { path: string; } +// @public (undocumented) +interface Notification_2 { + // (undocumented) + body: Uint8Array; + // (undocumented) + createdAt: number; + // (undocumented) + decryptedBody: Uint8Array; + // (undocumented) + from: string; + // (undocumented) + id: string; + // (undocumented) + readAt?: number; + // (undocumented) + relatedObject?: Invitation; + // (undocumented) + to: string; + // (undocumented) + type: NotificationType; +} + +export { Notification_2 as Notification } + +// @public (undocumented) +export enum NotificationType { + // (undocumented) + INVITATION = 1, + // (undocumented) + INVITATION_REPLY = 3, + // (undocumented) + REVOKED_INVITATION = 4, + // (undocumented) + UNKNOWN = 0, + // (undocumented) + USAGEALERT = 2 +} + // @public (undocumented) export interface OpenFileRequest { // (undocumented) @@ -522,6 +570,7 @@ export class UserStorage { createFolder(request: CreateFolderRequest): Promise; getFilesSharedByMe(offset?: string): Promise; getFilesSharedWithMe(offset?: string): Promise; + getNotifications(seek?: string, limit?: number): Promise; getRecentlySharedWith(offset?: string): Promise; initListener(): Promise; initMailbox(): Promise; diff --git a/lerna.json b/lerna.json index dcefe51..23efe71 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "packages/*" ], - "version": "0.0.18", + "version": "0.0.19", "npmClient": "yarn", "useWorkspaces": true, "command": { diff --git a/packages/mailbox/package.json b/packages/mailbox/package.json index f6ec547..25f8575 100644 --- a/packages/mailbox/package.json +++ b/packages/mailbox/package.json @@ -1,6 +1,6 @@ { "name": "@spacehq/mailbox", - "version": "0.0.18", + "version": "0.0.19", "description": "Space Mailbox implementation", "main": "dist/index", "types": "dist/index", @@ -37,7 +37,7 @@ "dependencies": { "@improbable-eng/grpc-web": "^0.14.0", "@spacehq/users": "^0.0.13", - "@spacehq/utils": "^0.0.18", + "@spacehq/utils": "^0.0.19", "@textile/crypto": "^2.0.0", "@types/lodash": "^4.14.165", "axios": "^0.21.1", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index c1c9ce1..387f47d 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@spacehq/sdk", - "version": "0.0.18", + "version": "0.0.19", "description": "Space SDK Library", "main": "dist/index", "types": "dist/index", @@ -33,9 +33,9 @@ "typescript": "^3.9.3" }, "dependencies": { - "@spacehq/storage": "^0.0.18", - "@spacehq/users": "^0.0.18", - "@spacehq/mailbox": "^0.0.18", - "@spacehq/utils": "^0.0.18" + "@spacehq/mailbox": "^0.0.19", + "@spacehq/storage": "^0.0.19", + "@spacehq/users": "^0.0.19", + "@spacehq/utils": "^0.0.19" } } diff --git a/packages/storage/package.json b/packages/storage/package.json index 028b50f..4679b95 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@spacehq/storage", - "version": "0.0.18", + "version": "0.0.19", "description": "Space storage implementation", "main": "dist/index", "types": "dist/index", @@ -42,9 +42,9 @@ }, "dependencies": { "@improbable-eng/grpc-web": "^0.13.0", - "@spacehq/mailbox": "^0.0.18", - "@spacehq/users": "^0.0.18", - "@spacehq/utils": "^0.0.18", + "@spacehq/mailbox": "^0.0.19", + "@spacehq/users": "^0.0.19", + "@spacehq/utils": "^0.0.19", "@textile/crypto": "^2.0.0", "@textile/hub": "^4.1.0", "@textile/threads-id": "^0.4.0", diff --git a/packages/users/package.json b/packages/users/package.json index 7082389..af41444 100644 --- a/packages/users/package.json +++ b/packages/users/package.json @@ -1,6 +1,6 @@ { "name": "@spacehq/users", - "version": "0.0.18", + "version": "0.0.19", "description": "Space users implementation", "main": "dist/index", "types": "dist/index", diff --git a/packages/utils/package.json b/packages/utils/package.json index ab38fb2..b71ee66 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@spacehq/utils", - "version": "0.0.18", + "version": "0.0.19", "description": "Space Common Utils", "main": "dist/index", "types": "dist/index", @@ -36,7 +36,7 @@ }, "dependencies": { "@improbable-eng/grpc-web": "^0.14.0", - "@spacehq/users": "^0.0.18", + "@spacehq/users": "^0.0.19", "@textile/crypto": "^2.0.0", "@types/lodash": "^4.14.165", "axios": "^0.21.1",