From dd85af449f4ad66ae6f011936cabb3d775e7e30e Mon Sep 17 00:00:00 2001 From: Dwynr Date: Sun, 12 May 2024 04:37:57 +0200 Subject: [PATCH] fix: event timestamp fetching, types --- dist/browser/api/v3/user/events.js.map | 2 +- dist/browser/user/index.js | 4 +--- dist/browser/user/index.js.map | 2 +- dist/node/api/v3/user/events.js.map | 2 +- dist/node/user/index.js | 4 +--- dist/node/user/index.js.map | 2 +- dist/types/api/v3/user/events.d.ts | 5 +---- package.json | 2 +- src/api/v3/user/events.ts | 6 +----- src/user/index.ts | 5 +---- 10 files changed, 10 insertions(+), 24 deletions(-) diff --git a/dist/browser/api/v3/user/events.js.map b/dist/browser/api/v3/user/events.js.map index 30066f0c..e742f329 100644 --- a/dist/browser/api/v3/user/events.js.map +++ b/dist/browser/api/v3/user/events.js.map @@ -1 +1 @@ -{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../../src/api/v3/user/events.ts"],"names":[],"mappings":"AAqQA;;;;;;;GAOG;AACH,MAAM,OAAO,UAAU;IACL,SAAS,CAAW;IAErC;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,KAAK,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,MAAM,EAA6C;QACtF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAqB;YACjE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,iBAAiB;YAC3B,IAAI,EAAE;gBACL,MAAM;gBACN,SAAS,EAAE,aAAa;aACxB;SACD,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAC,MAAM,CAAA;IACvB,CAAC;CACD;AAED,eAAe,UAAU,CAAA"} \ No newline at end of file +{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../../src/api/v3/user/events.ts"],"names":[],"mappings":"AAiQA;;;;;;;GAOG;AACH,MAAM,OAAO,UAAU;IACL,SAAS,CAAW;IAErC;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,KAAK,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,MAAM,EAA6C;QACtF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAqB;YACjE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,iBAAiB;YAC3B,IAAI,EAAE;gBACL,MAAM;gBACN,SAAS,EAAE,aAAa;aACxB;SACD,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAC,MAAM,CAAA;IACvB,CAAC;CACD;AAED,eAAe,UAAU,CAAA"} \ No newline at end of file diff --git a/dist/browser/user/index.js b/dist/browser/user/index.js index 3256e808..5d9658d7 100644 --- a/dist/browser/user/index.js +++ b/dist/browser/user/index.js @@ -302,9 +302,7 @@ export class User { .v3() .user() .events({ - lastTimestamp: params && params.timestamp - ? parseInt(Math.floor(params.timestamp / 1000).toString()) - : Math.floor(Date.now() / 1000) + 60, + lastTimestamp: params && params.timestamp ? params.timestamp : Math.floor(Date.now() / 1000) + 60, filter: params && params.filter ? params.filter : "all" }); return await Promise.all(result.map(event => this.crypto.decrypt().event({ event }))); diff --git a/dist/browser/user/index.js.map b/dist/browser/user/index.js.map index 67cfd1df..cae70003 100644 --- a/dist/browser/user/index.js.map +++ b/dist/browser/user/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":"AAkBA;;;;;;;GAOG;AACH,MAAM,OAAO,IAAI;IACC,GAAG,CAAK;IACR,SAAS,CAAgB;IACzB,MAAM,CAAQ;IAE/B;;;;;;;OAOG;IACH,YAAmB,MAAkB;QACpC,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;QACrB,IAAI,CAAC,S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AAE,CAAC,CAAA;IAClD,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,aAAa,CAAC,EAAE,OAAO,EAAwB;QAC3D,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAA;IACrE,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,EAAkB;QAC1C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAClD,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,uBAAuB,CAAC,EAAE,SAAS,EAAyB;QACxE,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;IAC/D,CAAC;CACD;AAED,eAAe,IAAI,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":"AAkBA;;;;;;;GAOG;AACH,MAAM,OAAO,IAAI;IACC,GAAG,CAAK;IACR,SAAS,CAAgB;IACzB,MAAM,CAAQ;IAE/B;;;;;;;OAOG;IACH,YAAmB,MAAkB;QACpC,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;QACrB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;IAC5B,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,IAAI;QAChB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAA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,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAClD,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,uBAAuB,CAAC,EAAE,SAAS,EAAyB;QACxE,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;IAC/D,CAAC;CACD;AAED,eAAe,IAAI,CAAA"} \ No newline at end of file diff --git a/dist/node/api/v3/user/events.js.map b/dist/node/api/v3/user/events.js.map index 9f5011c6..9a98d341 100644 --- a/dist/node/api/v3/user/events.js.map +++ b/dist/node/api/v3/user/events.js.map @@ -1 +1 @@ -{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../../src/api/v3/user/events.ts"],"names":[],"mappings":";;;AAqQA;;;;;;;GAOG;AACH,MAAa,UAAU;IAGtB;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,KAAK,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,MAAM,EAA6C;QACtF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAqB;YACjE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,iBAAiB;YAC3B,IAAI,EAAE;gBACL,MAAM;gBACN,SAAS,EAAE,aAAa;aACxB;SACD,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAC,MAAM,CAAA;IACvB,CAAC;CACD;AA1CD,gCA0CC;AAED,kBAAe,UAAU,CAAA"} \ No newline at end of file +{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../../src/api/v3/user/events.ts"],"names":[],"mappings":";;;AAiQA;;;;;;;GAOG;AACH,MAAa,UAAU;IAGtB;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,KAAK,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,MAAM,EAA6C;QACtF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAqB;YACjE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,iBAAiB;YAC3B,IAAI,EAAE;gBACL,MAAM;gBACN,SAAS,EAAE,aAAa;aACxB;SACD,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAC,MAAM,CAAA;IACvB,CAAC;CACD;AA1CD,gCA0CC;AAED,kBAAe,UAAU,CAAA"} \ No newline at end of file diff --git a/dist/node/user/index.js b/dist/node/user/index.js index e471f090..fc4ce602 100644 --- a/dist/node/user/index.js +++ b/dist/node/user/index.js @@ -302,9 +302,7 @@ class User { .v3() .user() .events({ - lastTimestamp: params && params.timestamp - ? parseInt(Math.floor(params.timestamp / 1000).toString()) - : Math.floor(Date.now() / 1000) + 60, + lastTimestamp: params && params.timestamp ? params.timestamp : Math.floor(Date.now() / 1000) + 60, filter: params && params.filter ? params.filter : "all" }); return await Promise.all(result.map(event => this.crypto.decrypt().event({ event }))); diff --git a/dist/node/user/index.js.map b/dist/node/user/index.js.map index 4c816ca0..8f857e26 100644 --- a/dist/node/user/index.js.map +++ b/dist/node/user/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":";;;AAkBA;;;;;;;GAOG;AACH,MAAa,IAAI;IAKhB;;;;;;;OAOG;IACH,YAAmB,MAAkB;QACpC,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;QACrB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;IAC5B,CAAC;IAED;;;;;;;O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CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAA;IACrE,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,EAAkB;QAC1C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAClD,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,uBAAuB,CAAC,EAAE,SAAS,EAAyB;QACxE,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;IAC/D,CAAC;CACD;AA9fD,oBA8fC;AAED,kBAAe,IAAI,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":";;;AAkBA;;;;;;;GAOG;AACH,MAAa,IAAI;IAKhB;;;;;;;OAOG;IACH,YAAmB,MAAkB;QACpC,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;QACrB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;IAC5B,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,IAAI;QAChB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAA;IAC9D,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,UAAU;QACtB,OAAO,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,UAAU,CAA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ACxE,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;IAC/D,CAAC;CACD;AA3fD,oBA2fC;AAED,kBAAe,IAAI,CAAA"} \ No newline at end of file diff --git a/dist/types/api/v3/user/events.d.ts b/dist/types/api/v3/user/events.d.ts index de09faf9..a15b7c61 100644 --- a/dist/types/api/v3/user/events.d.ts +++ b/dist/types/api/v3/user/events.d.ts @@ -188,14 +188,11 @@ export type UserEvent = UserEventBase & ({ } | { type: "failedLogin"; info: UserEventInfoBase; -} | { - type: "failedLogin"; - info: UserEventInfoBase; } | { type: "deleteFolderPermanently"; info: UserEventInfoBase & { name: string; - nameDecrypted: FolderMetadata | null; + nameDecrypted: FolderMetadata; }; } | { type: "deleteFilePermanently"; diff --git a/package.json b/package.json index 0cbbfc4f..fe1533d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@filen/sdk", - "version": "0.1.74", + "version": "0.1.75", "description": "Filen SDK", "main": "dist/node/index.js", "browser": "dist/browser/index.js", diff --git a/src/api/v3/user/events.ts b/src/api/v3/user/events.ts index 0d2d4237..24241fab 100644 --- a/src/api/v3/user/events.ts +++ b/src/api/v3/user/events.ts @@ -227,15 +227,11 @@ export type UserEvent = UserEventBase & type: "failedLogin" info: UserEventInfoBase } - | { - type: "failedLogin" - info: UserEventInfoBase - } | { type: "deleteFolderPermanently" info: UserEventInfoBase & { name: string - nameDecrypted: FolderMetadata | null + nameDecrypted: FolderMetadata } } | { diff --git a/src/user/index.ts b/src/user/index.ts index 78c34cca..4fe0d378 100644 --- a/src/user/index.ts +++ b/src/user/index.ts @@ -369,10 +369,7 @@ export class User { .v3() .user() .events({ - lastTimestamp: - params && params.timestamp - ? parseInt(Math.floor(params.timestamp / 1000).toString()) - : Math.floor(Date.now() / 1000) + 60, + lastTimestamp: params && params.timestamp ? params.timestamp : Math.floor(Date.now() / 1000) + 60, filter: params && params.filter ? params.filter : "all" })