@webiny/api-file-manager-ddb 5.23.0 → 5.24.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/filesEntity.d.ts +3 -2
- package/definitions/settingsEntity.d.ts +3 -2
- package/definitions/systemEntity.d.ts +3 -2
- package/definitions/table.d.ts +3 -2
- package/operations/files/FilesStorageOperations.js +1 -1
- package/operations/files/index.d.ts +2 -2
- package/operations/settings/SettingsStorageOperations.d.ts +2 -2
- package/operations/settings/index.d.ts +2 -4
- package/operations/system/SystemStorageOperations.d.ts +2 -2
- package/operations/system/index.d.ts +2 -4
- package/package.json +7 -7
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Entity, Table } from "dynamodb-toolbox";
|
|
2
2
|
import { FileManagerContext } from "@webiny/api-file-manager/types";
|
|
3
|
-
|
|
3
|
+
export interface FilesEntityParams {
|
|
4
4
|
context: FileManagerContext;
|
|
5
5
|
table: Table;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
|
+
declare const _default: (params: FilesEntityParams) => Entity<any>;
|
|
7
8
|
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Entity, Table } from "dynamodb-toolbox";
|
|
2
2
|
import { FileManagerContext } from "@webiny/api-file-manager/types";
|
|
3
|
-
|
|
3
|
+
export interface SettingsEntityParams {
|
|
4
4
|
context: FileManagerContext;
|
|
5
5
|
table: Table;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
|
+
declare const _default: (params: SettingsEntityParams) => Entity<any>;
|
|
7
8
|
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Entity, Table } from "dynamodb-toolbox";
|
|
2
2
|
import { FileManagerContext } from "@webiny/api-file-manager/types";
|
|
3
|
-
|
|
3
|
+
export interface SystemEntityParams {
|
|
4
4
|
context: FileManagerContext;
|
|
5
5
|
table: Table;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
|
+
declare const _default: (params: SystemEntityParams) => Entity<any>;
|
|
7
8
|
export default _default;
|
package/definitions/table.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Table } from "dynamodb-toolbox";
|
|
2
2
|
import { FileManagerContext } from "@webiny/api-file-manager/types";
|
|
3
|
-
|
|
3
|
+
export interface TableParams {
|
|
4
4
|
context: FileManagerContext;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
declare const _default: (params: TableParams) => Table;
|
|
6
7
|
export default _default;
|
|
@@ -246,7 +246,7 @@ class FilesStorageOperations {
|
|
|
246
246
|
sort,
|
|
247
247
|
fields
|
|
248
248
|
});
|
|
249
|
-
const start = (0, _cursor.decodeCursor)(after) || 0;
|
|
249
|
+
const start = parseInt((0, _cursor.decodeCursor)(after)) || 0;
|
|
250
250
|
const hasMoreItems = totalCount > start + limit;
|
|
251
251
|
const end = limit > totalCount + start + limit ? undefined : start + limit;
|
|
252
252
|
const files = sortedFiles.slice(start, end);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FilesStorageOperationsProviderPlugin,
|
|
1
|
+
import { FilesStorageOperationsProviderPlugin, FilesStorageOperationsProviderPluginParams } from "@webiny/api-file-manager/plugins/definitions/FilesStorageOperationsProviderPlugin";
|
|
2
2
|
import { FilesStorageOperations } from "./FilesStorageOperations";
|
|
3
3
|
export declare class FilesStorageOperationsProviderDdb extends FilesStorageOperationsProviderPlugin {
|
|
4
4
|
name: string;
|
|
5
|
-
provide({ context }:
|
|
5
|
+
provide({ context }: FilesStorageOperationsProviderPluginParams): Promise<FilesStorageOperations>;
|
|
6
6
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FileManagerContext, FileManagerSettings, FileManagerSettingsStorageOperations, FileManagerSettingsStorageOperationsCreateParams, FileManagerSettingsStorageOperationsUpdateParams } from "@webiny/api-file-manager/types";
|
|
2
|
-
interface
|
|
2
|
+
interface SettingsStorageOperationsConstructorParams {
|
|
3
3
|
context: FileManagerContext;
|
|
4
4
|
}
|
|
5
5
|
export declare class SettingsStorageOperations implements FileManagerSettingsStorageOperations {
|
|
6
6
|
private readonly _context;
|
|
7
7
|
private readonly _entity;
|
|
8
8
|
private get partitionKey();
|
|
9
|
-
constructor({ context }:
|
|
9
|
+
constructor({ context }: SettingsStorageOperationsConstructorParams);
|
|
10
10
|
get(): Promise<FileManagerSettings>;
|
|
11
11
|
create({ data }: FileManagerSettingsStorageOperationsCreateParams): Promise<FileManagerSettings>;
|
|
12
12
|
update({ data }: FileManagerSettingsStorageOperationsUpdateParams): Promise<FileManagerSettings>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { SettingsStorageOperations } from "./SettingsStorageOperations";
|
|
2
|
-
import { SettingsStorageOperationsProviderPlugin } from "@webiny/api-file-manager/plugins/definitions/SettingsStorageOperationsProviderPlugin";
|
|
2
|
+
import { SettingsStorageOperationsProviderPlugin, SettingsStorageOperationsProviderPluginParams } from "@webiny/api-file-manager/plugins/definitions/SettingsStorageOperationsProviderPlugin";
|
|
3
3
|
export declare class SettingsStorageOperationsProviderDdbPlugin extends SettingsStorageOperationsProviderPlugin {
|
|
4
4
|
name: string;
|
|
5
|
-
provide({ context }:
|
|
6
|
-
context: any;
|
|
7
|
-
}): Promise<SettingsStorageOperations>;
|
|
5
|
+
provide({ context }: SettingsStorageOperationsProviderPluginParams): Promise<SettingsStorageOperations>;
|
|
8
6
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FileManagerContext, FileManagerSystem, FileManagerSystemStorageOperations, FileManagerSystemStorageOperationsCreateParams, FileManagerSystemStorageOperationsUpdateParams } from "@webiny/api-file-manager/types";
|
|
2
|
-
interface
|
|
2
|
+
interface SystemStorageOperationsConstructorParams {
|
|
3
3
|
context: FileManagerContext;
|
|
4
4
|
}
|
|
5
5
|
export declare class SystemStorageOperations implements FileManagerSystemStorageOperations {
|
|
6
6
|
private readonly _context;
|
|
7
7
|
private readonly _entity;
|
|
8
8
|
private get partitionKey();
|
|
9
|
-
constructor({ context }:
|
|
9
|
+
constructor({ context }: SystemStorageOperationsConstructorParams);
|
|
10
10
|
get(): Promise<FileManagerSystem | null>;
|
|
11
11
|
create(params: FileManagerSystemStorageOperationsCreateParams): Promise<FileManagerSystem>;
|
|
12
12
|
update(params: FileManagerSystemStorageOperationsUpdateParams): Promise<FileManagerSystem>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { SystemStorageOperations } from "./SystemStorageOperations";
|
|
2
|
-
import { SystemStorageOperationsProviderPlugin } from "@webiny/api-file-manager/plugins/definitions/SystemStorageOperationsProviderPlugin";
|
|
2
|
+
import { SystemStorageOperationsProviderPlugin, SystemStorageOperationsProviderPluginParams } from "@webiny/api-file-manager/plugins/definitions/SystemStorageOperationsProviderPlugin";
|
|
3
3
|
export declare class SystemStorageOperationsProviderDdbPlugin extends SystemStorageOperationsProviderPlugin {
|
|
4
4
|
name: string;
|
|
5
|
-
provide({ context }:
|
|
6
|
-
context: any;
|
|
7
|
-
}): Promise<SystemStorageOperations>;
|
|
5
|
+
provide({ context }: SystemStorageOperationsProviderPluginParams): Promise<SystemStorageOperations>;
|
|
8
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-file-manager-ddb",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.24.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@webiny/api-file-manager",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime": "7.16.7",
|
|
25
|
-
"@webiny/api-file-manager": "5.
|
|
26
|
-
"@webiny/db-dynamodb": "5.
|
|
27
|
-
"@webiny/error": "5.
|
|
28
|
-
"@webiny/project-utils": "5.
|
|
25
|
+
"@webiny/api-file-manager": "5.24.0-beta.0",
|
|
26
|
+
"@webiny/db-dynamodb": "5.24.0-beta.0",
|
|
27
|
+
"@webiny/error": "5.24.0-beta.0",
|
|
28
|
+
"@webiny/project-utils": "5.24.0-beta.0",
|
|
29
29
|
"aws-sdk": "2.1066.0",
|
|
30
30
|
"dynamodb-toolbox": "0.3.5"
|
|
31
31
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
37
37
|
"@babel/preset-env": "^7.16.4",
|
|
38
38
|
"@babel/preset-typescript": "^7.16.0",
|
|
39
|
-
"@webiny/cli": "^5.
|
|
39
|
+
"@webiny/cli": "^5.24.0-beta.0",
|
|
40
40
|
"jest": "^26.6.3",
|
|
41
41
|
"jest-dynalite": "^3.2.0",
|
|
42
42
|
"jsonpack": "^1.1.5",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "05b90b92bbaf2ef3adf275d008c4641580cf5f42"
|
|
67
67
|
}
|