diff --git a/dist/browser/api/v3/register.js b/dist/browser/api/v3/register.js index a51a717a..6e83f5ea 100644 --- a/dist/browser/api/v3/register.js +++ b/dist/browser/api/v3/register.js @@ -29,15 +29,19 @@ 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} */ - async fetch({ email, password, salt, authVersion }) { + async fetch({ email, password, salt, authVersion, refId, affId }) { await this.apiClient.request({ method: "POST", endpoint: "/v3/register", @@ -45,7 +49,9 @@ export class Register { email, password, salt, - authVersion + authVersion, + refId, + affId } }); } diff --git a/dist/browser/api/v3/register.js.map b/dist/browser/api/v3/register.js.map index 85799e27..02241a80 100644 --- a/dist/browser/api/v3/register.js.map +++ b/dist/browser/api/v3/register.js.map @@ -1 +1 @@ -{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../src/api/v3/register.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,MAAM,OAAO,QAAQ;IACH,SAAS,CAAW;IAErC;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACI,KAAK,CAAC,KAAK,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,EAMX;QACA,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,cAAc;YACxB,IAAI,EAAE;gBACL,KAAK;gBACL,QAAQ;gBACR,IAAI;gBACJ,WAAW;aACX;SACD,CAAC,CAAA;IACH,CAAC;CACD;AAED,eAAe,QAAQ,CAAA"} \ No newline at end of file +{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../src/api/v3/register.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,MAAM,OAAO,QAAQ;IACH,SAAS,CAAW;IAErC;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,KAAK,CAAC,KAAK,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,KAAK,EACL,KAAK,EAQL;QACA,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,cAAc;YACxB,IAAI,EAAE;gBACL,KAAK;gBACL,QAAQ;gBACR,IAAI;gBACJ,WAAW;gBACX,KAAK;gBACL,KAAK;aACL;SACD,CAAC,CAAA;IACH,CAAC;CACD;AAED,eAAe,QAAQ,CAAA"} \ No newline at end of file diff --git a/dist/node/api/v3/register.js b/dist/node/api/v3/register.js index 1cbb21a0..a1a2634f 100644 --- a/dist/node/api/v3/register.js +++ b/dist/node/api/v3/register.js @@ -31,15 +31,19 @@ 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} */ - async fetch({ email, password, salt, authVersion }) { + async fetch({ email, password, salt, authVersion, refId, affId }) { await this.apiClient.request({ method: "POST", endpoint: "/v3/register", @@ -47,7 +51,9 @@ class Register { email, password, salt, - authVersion + authVersion, + refId, + affId } }); } diff --git a/dist/node/api/v3/register.js.map b/dist/node/api/v3/register.js.map index d73cf011..bcaab09a 100644 --- a/dist/node/api/v3/register.js.map +++ b/dist/node/api/v3/register.js.map @@ -1 +1 @@ -{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../src/api/v3/register.ts"],"names":[],"mappings":";;;AAGA;;;;;;;GAOG;AACH,MAAa,QAAQ;IAGpB;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACI,KAAK,CAAC,KAAK,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,EAMX;QACA,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,cAAc;YACxB,IAAI,EAAE;gBACL,KAAK;gBACL,QAAQ;gBACR,IAAI;gBACJ,WAAW;aACX;SACD,CAAC,CAAA;IACH,CAAC;CACD;AAvDD,4BAuDC;AAED,kBAAe,QAAQ,CAAA"} \ No newline at end of file +{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../src/api/v3/register.ts"],"names":[],"mappings":";;;AAGA;;;;;;;GAOG;AACH,MAAa,QAAQ;IAGpB;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,KAAK,CAAC,KAAK,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,KAAK,EACL,KAAK,EAQL;QACA,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,cAAc;YACxB,IAAI,EAAE;gBACL,KAAK;gBACL,QAAQ;gBACR,IAAI;gBACJ,WAAW;gBACX,KAAK;gBACL,KAAK;aACL;SACD,CAAC,CAAA;IACH,CAAC;CACD;AAjED,4BAiEC;AAED,kBAAe,QAAQ,CAAA"} \ No newline at end of file diff --git a/dist/types/api/index.d.ts b/dist/types/api/index.d.ts index 4d1adc78..59c0ac0c 100644 --- a/dist/types/api/index.d.ts +++ b/dist/types/api/index.d.ts @@ -155,6 +155,8 @@ export declare class API { password: string; salt: string; authVersion: import("..").AuthVersion; + refId?: string | undefined; + affId?: string | undefined; }) => Promise; confirmationSend: (params_0: { email: string; diff --git a/dist/types/api/v3/register.d.ts b/dist/types/api/v3/register.d.ts index 0b28e15d..b4158069 100644 --- a/dist/types/api/v3/register.d.ts +++ b/dist/types/api/v3/register.d.ts @@ -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} */ - 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; } export default Register; diff --git a/dist/types/index.d.ts b/dist/types/index.d.ts index faa660bd..369496d8 100644 --- a/dist/types/index.d.ts +++ b/dist/types/index.d.ts @@ -253,6 +253,8 @@ export declare class FilenSDK { password: string; salt: string; authVersion: AuthVersion; + refId?: string | undefined; + affId?: string | undefined; }) => Promise; confirmationSend: (params_0: { email: string; diff --git a/package.json b/package.json index 32eef2c3..91ed8bbf 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/api/v3/register.ts b/src/api/v3/register.ts index eb84fe11..86da9e89 100644 --- a/src/api/v3/register.ts +++ b/src/api/v3/register.ts @@ -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} */ public async fetch({ email, password, salt, - authVersion + authVersion, + refId, + affId }: { email: string password: string salt: string authVersion: AuthVersion + refId?: string + affId?: string }): Promise { await this.apiClient.request({ method: "POST", @@ -60,7 +68,9 @@ export class Register { email, password, salt, - authVersion + authVersion, + refId, + affId } }) }