-
-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove Uuid and RoleName from @standardnotes/common in favo…
…ur of @standardnotes/domain-core value objects
- Loading branch information
Karol Sójko
committed
Jan 19, 2023
1 parent
b9081a1
commit 08df068
Showing
108 changed files
with
319 additions
and
374 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file renamed
BIN
+43.6 KB
...core-npm-1.11.0-f473ba8bc0-cf4c9b7534.zip → ...core-npm-1.11.1-c16df67772-98af016a83.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
packages/api/src/Domain/Request/Subscription/SubscriptionInviteAcceptRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
|
||
export type SubscriptionInviteAcceptRequestParams = { | ||
inviteUuid: Uuid | ||
inviteUuid: string | ||
[additionalParam: string]: unknown | ||
} |
4 changes: 1 addition & 3 deletions
4
packages/api/src/Domain/Request/Subscription/SubscriptionInviteCancelRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
|
||
import { ApiEndpointParam } from '../ApiEndpointParam' | ||
import { ApiVersion } from '../../Api/ApiVersion' | ||
|
||
export type SubscriptionInviteCancelRequestParams = { | ||
[ApiEndpointParam.ApiVersion]: ApiVersion.v0 | ||
inviteUuid: Uuid | ||
inviteUuid: string | ||
[additionalParam: string]: unknown | ||
} |
4 changes: 1 addition & 3 deletions
4
packages/api/src/Domain/Request/Subscription/SubscriptionInviteDeclineRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
|
||
import { ApiEndpointParam } from '../ApiEndpointParam' | ||
import { ApiVersion } from '../../Api/ApiVersion' | ||
|
||
export type SubscriptionInviteDeclineRequestParams = { | ||
[ApiEndpointParam.ApiVersion]: ApiVersion.v0 | ||
inviteUuid: Uuid | ||
inviteUuid: string | ||
[additionalParam: string]: unknown | ||
} |
4 changes: 1 addition & 3 deletions
4
packages/api/src/Domain/Request/User/UserDeletionRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
|
||
export type UserDeletionRequestParams = { | ||
userUuid: Uuid | ||
userUuid: string | ||
[additionalParam: string]: unknown | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/api/src/Domain/Request/UserRequest/UserRequestRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { UserRequestType, Uuid } from '@standardnotes/common' | ||
import { UserRequestType } from '@standardnotes/common' | ||
|
||
export type UserRequestRequestParams = { | ||
userUuid: Uuid | ||
userUuid: string | ||
requestType: UserRequestType | ||
[additionalParam: string]: unknown | ||
} |
6 changes: 2 additions & 4 deletions
6
packages/api/src/Domain/Request/Workspace/WorkspaceInvitationAcceptingRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/api/src/Domain/Request/Workspace/WorkspaceInvitationRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
packages/api/src/Domain/Request/Workspace/WorkspaceKeyshareInitiatingRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
|
||
export type WorkspaceKeyshareInitiatingRequestParams = { | ||
userUuid: Uuid | ||
workspaceUuid: Uuid | ||
userUuid: string | ||
workspaceUuid: string | ||
encryptedWorkspaceKey: string | ||
[additionalParam: string]: unknown | ||
} |
4 changes: 1 addition & 3 deletions
4
packages/api/src/Domain/Request/Workspace/WorkspaceUserListRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
|
||
export type WorkspaceUserListRequestParams = { | ||
workspaceUuid: Uuid | ||
workspaceUuid: string | ||
[additionalParam: string]: unknown | ||
} |
4 changes: 1 addition & 3 deletions
4
packages/api/src/Domain/Response/Subscription/SubscriptionInviteResponseBody.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/api/src/Domain/Response/User/UserRegistrationResponseBody.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
import { KeyParamsData, SessionBody } from '@standardnotes/responses' | ||
|
||
export type UserRegistrationResponseBody = { | ||
session: SessionBody | ||
key_params: KeyParamsData | ||
user: { | ||
uuid: Uuid | ||
uuid: string | ||
email: string | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/encryption/src/Domain/Types/ItemAuthenticatedData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { ProtocolVersion, Uuid } from '@standardnotes/common' | ||
import { ProtocolVersion } from '@standardnotes/common' | ||
|
||
export type ItemAuthenticatedData = { | ||
u: Uuid | ||
u: string | ||
v: ProtocolVersion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
|
||
import { PermissionName } from './PermissionName' | ||
|
||
export type Permission = { | ||
uuid: Uuid | ||
uuid: string | ||
name: PermissionName | ||
} |
Oops, something went wrong.