Skip to content

Commit

Permalink
Merge pull request #208 from nightly-labs/templates
Browse files Browse the repository at this point in the history
mail templates
  • Loading branch information
dzlk17 authored Sep 24, 2024
2 parents 647ccd0 + bdcfc8a commit 647459a
Show file tree
Hide file tree
Showing 37 changed files with 11,198 additions and 9,267 deletions.
2 changes: 1 addition & 1 deletion sdk/bindings/HttpLeaveTeamRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpLeaveTeamRequest { teamId: string, }
export interface HttpLeaveTeamRequest { teamId: string, device: string, browser: string, }
2 changes: 1 addition & 1 deletion sdk/bindings/HttpRegisterWithPasskeyStartRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpRegisterWithPasskeyStartRequest { email: string, }
export interface HttpRegisterWithPasskeyStartRequest { email: string, device: string, browser: string, }
2 changes: 1 addition & 1 deletion sdk/bindings/HttpRegisterWithPasswordStartRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpRegisterWithPasswordStartRequest { email: string, }
export interface HttpRegisterWithPasswordStartRequest { email: string, device: string, browser: string, }
2 changes: 1 addition & 1 deletion sdk/bindings/HttpResetPasskeyStartRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpResetPasskeyStartRequest { email: string, }
export interface HttpResetPasskeyStartRequest { email: string, device: string, browser: string, }
2 changes: 1 addition & 1 deletion sdk/bindings/HttpResetPasswordStartRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpResetPasswordStartRequest { email: string, }
export interface HttpResetPasswordStartRequest { email: string, device: string, browser: string, }
4 changes: 3 additions & 1 deletion sdk/packages/analytics/src/test_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export async function createUser(

const registerPayload = {
email,
password
password,
device: 'device',
browser: 'browser'
} as HttpRegisterWithPasswordStartRequest

await cloudClient.registerWithPasswordStart(registerPayload)
Expand Down
2 changes: 1 addition & 1 deletion sdk/packages/cloud/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nightlylabs/nightly-cloud",
"version": "0.0.24",
"version": "0.0.26",
"type": "module",
"exports": {
".": {
Expand Down
22 changes: 17 additions & 5 deletions sdk/packages/cloud/src/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ describe.concurrent(

const registerPayload = {
email,
password: 'Password123'
password: 'Password123',
device: 'device',
browser: 'browser'
} as HttpRegisterWithPasswordStartRequest

await cloudClient.registerWithPasswordStart(registerPayload)
Expand All @@ -42,7 +44,9 @@ describe.concurrent(

const registerPayload = {
email,
password
password,
device: 'device',
browser: 'browser'
} as HttpRegisterWithPasswordStartRequest

await cloudClient.registerWithPasswordStart(registerPayload)
Expand Down Expand Up @@ -79,7 +83,9 @@ describe.concurrent(

const registerPayload = {
email,
password
password,
device: 'device',
browser: 'browser'
} as HttpRegisterWithPasswordStartRequest

await cloudClient.registerWithPasswordStart(registerPayload)
Expand Down Expand Up @@ -131,7 +137,11 @@ describe.concurrent(

// Send reset password request
const newPassword = 'NewPassword123124123'
await cloudClient.resetPasswordStart({ email })
await cloudClient.resetPasswordStart({
email,
device: 'device',
browser: 'browser'
})

const authCode = await cloudClient.verifyCode({
email,
Expand Down Expand Up @@ -437,7 +447,9 @@ describe.concurrent(
expect(Object.keys(secondResponse.userPrivileges)).toHaveLength(1)

const leavePayload = {
teamId: teamId
teamId: teamId,
device: 'device',
browser: 'browser'
} as HttpLeaveTeamRequest

// Remove user from team
Expand Down
4 changes: 3 additions & 1 deletion sdk/packages/cloud/src/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export async function createUser(

const registerPayload = {
email,
password
password,
device: 'device',
browser: 'browser'
} as HttpRegisterWithPasswordStartRequest

await cloudClient.registerWithPasswordStart(registerPayload)
Expand Down
Loading

0 comments on commit 647459a

Please sign in to comment.