Skip to content

Commit

Permalink
Release: v0.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectmak committed Feb 18, 2021
1 parent 56602fa commit e32a4f8
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 15 deletions.
14 changes: 14 additions & 0 deletions changelogs/v0.0.19.md
Original file line number Diff line number Diff line change
@@ -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.
49 changes: 49 additions & 0 deletions etc/sdk.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -522,6 +570,7 @@ export class UserStorage {
createFolder(request: CreateFolderRequest): Promise<void>;
getFilesSharedByMe(offset?: string): Promise<GetFilesSharedByMeResponse>;
getFilesSharedWithMe(offset?: string): Promise<GetFilesSharedWithMeResponse>;
getNotifications(seek?: string, limit?: number): Promise<GetNotificationsResponse>;
getRecentlySharedWith(offset?: string): Promise<GetRecentlySharedWithResponse>;
initListener(): Promise<void>;
initMailbox(): Promise<void>;
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "0.0.18",
"version": "0.0.19",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
4 changes: 2 additions & 2 deletions packages/mailbox/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
}
8 changes: 4 additions & 4 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/users/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit e32a4f8

Please sign in to comment.