Skip to content

Commit

Permalink
feat: include ref/aff params in register request
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Nov 17, 2024
1 parent 4f02ae2 commit 24b9dd6
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 14 deletions.
12 changes: 9 additions & 3 deletions dist/browser/api/v3/register.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/browser/api/v3/register.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions dist/node/api/v3/register.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/node/api/v3/register.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/types/api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ export declare class API {
password: string;
salt: string;
authVersion: import("..").AuthVersion;
refId?: string | undefined;
affId?: string | undefined;
}) => Promise<void>;
confirmationSend: (params_0: {
email: string;
Expand Down
10 changes: 8 additions & 2 deletions dist/types/api/v3/register.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,25 @@ export declare class Register {
* email: string
* password: string
* salt: string
* authVersion: AuthVersion
* authVersion: AuthVersion,
* refId?: string,
* affId?: string
* }} param0
* @param {string} param0.email
* @param {string} param0.password
* @param {string} param0.salt
* @param {AuthVersion} param0.authVersion
* @param {string} param0.refId
* @param {string} param0.affId
* @returns {Promise<void>}
*/
fetch({ email, password, salt, authVersion }: {
fetch({ email, password, salt, authVersion, refId, affId }: {
email: string;
password: string;
salt: string;
authVersion: AuthVersion;
refId?: string;
affId?: string;
}): Promise<void>;
}
export default Register;
2 changes: 2 additions & 0 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ export declare class FilenSDK {
password: string;
salt: string;
authVersion: AuthVersion;
refId?: string | undefined;
affId?: string | undefined;
}) => Promise<void>;
confirmationSend: (params_0: {
email: string;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@filen/sdk",
"version": "0.1.176",
"version": "0.1.177",
"description": "Filen SDK",
"main": "dist/node/index.js",
"browser": "dist/browser/index.js",
Expand Down
16 changes: 13 additions & 3 deletions src/api/v3/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,32 @@ export class Register {
* email: string
* password: string
* salt: string
* authVersion: AuthVersion
* authVersion: AuthVersion,
* refId?: string,
* affId?: string
* }} param0
* @param {string} param0.email
* @param {string} param0.password
* @param {string} param0.salt
* @param {AuthVersion} param0.authVersion
* @param {string} param0.refId
* @param {string} param0.affId
* @returns {Promise<void>}
*/
public async fetch({
email,
password,
salt,
authVersion
authVersion,
refId,
affId
}: {
email: string
password: string
salt: string
authVersion: AuthVersion
refId?: string
affId?: string
}): Promise<void> {
await this.apiClient.request({
method: "POST",
Expand All @@ -60,7 +68,9 @@ export class Register {
email,
password,
salt,
authVersion
authVersion,
refId,
affId
}
})
}
Expand Down

0 comments on commit 24b9dd6

Please sign in to comment.