@webiny/api-file-manager-ddb 0.0.0-ee-vpcs.549378cf03

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.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/definitions/filesEntity.d.ts +8 -0
  4. package/definitions/filesEntity.js +76 -0
  5. package/definitions/filesEntity.js.map +1 -0
  6. package/definitions/settingsEntity.d.ts +8 -0
  7. package/definitions/settingsEntity.js +52 -0
  8. package/definitions/settingsEntity.js.map +1 -0
  9. package/definitions/systemEntity.d.ts +8 -0
  10. package/definitions/systemEntity.js +43 -0
  11. package/definitions/systemEntity.js.map +1 -0
  12. package/definitions/table.d.ts +7 -0
  13. package/definitions/table.js +24 -0
  14. package/definitions/table.js.map +1 -0
  15. package/index.d.ts +5 -0
  16. package/index.js +16 -0
  17. package/index.js.map +1 -0
  18. package/operations/files/FilesStorageOperations.d.ts +22 -0
  19. package/operations/files/FilesStorageOperations.js +358 -0
  20. package/operations/files/FilesStorageOperations.js.map +1 -0
  21. package/operations/files/fields.d.ts +3 -0
  22. package/operations/files/fields.js +42 -0
  23. package/operations/files/fields.js.map +1 -0
  24. package/operations/files/index.d.ts +6 -0
  25. package/operations/files/index.js +35 -0
  26. package/operations/files/index.js.map +1 -0
  27. package/operations/settings/SettingsStorageOperations.d.ts +15 -0
  28. package/operations/settings/SettingsStorageOperations.js +118 -0
  29. package/operations/settings/SettingsStorageOperations.js.map +1 -0
  30. package/operations/settings/index.d.ts +6 -0
  31. package/operations/settings/index.js +32 -0
  32. package/operations/settings/index.js.map +1 -0
  33. package/operations/system/SystemStorageOperations.d.ts +14 -0
  34. package/operations/system/SystemStorageOperations.js +106 -0
  35. package/operations/system/SystemStorageOperations.js.map +1 -0
  36. package/operations/system/index.d.ts +6 -0
  37. package/operations/system/index.js +32 -0
  38. package/operations/system/index.js.map +1 -0
  39. package/operations/utils.d.ts +4 -0
  40. package/operations/utils.js +36 -0
  41. package/operations/utils.js.map +1 -0
  42. package/package.json +67 -0
  43. package/plugins/FileAttributePlugin.d.ts +4 -0
  44. package/plugins/FileAttributePlugin.js +23 -0
  45. package/plugins/FileAttributePlugin.js.map +1 -0
  46. package/plugins/FileDynamoDbFieldPlugin.d.ts +4 -0
  47. package/plugins/FileDynamoDbFieldPlugin.js +17 -0
  48. package/plugins/FileDynamoDbFieldPlugin.js.map +1 -0
  49. package/plugins/SettingsAttributePlugin.d.ts +4 -0
  50. package/plugins/SettingsAttributePlugin.js +23 -0
  51. package/plugins/SettingsAttributePlugin.js.map +1 -0
  52. package/plugins/SystemAttributePlugin.d.ts +4 -0
  53. package/plugins/SystemAttributePlugin.js +23 -0
  54. package/plugins/SystemAttributePlugin.js.map +1 -0
  55. package/types.d.ts +0 -0
  56. package/types.js +1 -0
  57. package/types.js.map +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Webiny
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @webiny/api-file-manager-ddb
2
+
3
+ [![](https://img.shields.io/npm/dw/@webiny/api-file-manager-ddb.svg)](https://www.npmjs.com/package/@webiny/api-file-manager-ddb)
4
+ [![](https://img.shields.io/npm/v/@webiny/api-file-manager-ddb.svg)](https://www.npmjs.com/package/@webiny/api-file-manager-ddb)
5
+ [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
6
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
7
+
8
+ ## Install
9
+
10
+ ```
11
+ npm install --save @webiny/api-file-manager-ddb
12
+ ```
13
+
14
+ Or if you prefer yarn:
15
+
16
+ ```
17
+ yarn add @webiny/api-file-manager-ddb
18
+ ```
19
+
20
+
21
+ ## Testing
22
+ To run the tests only for this package you must filter it with keywords.
23
+
24
+ ### Env variables
25
+
26
+
27
+ ### Command
28
+ ````
29
+ yarn test packages/api-file-manager --keyword=fm:ddb --keyword=fm:base
30
+ ````
@@ -0,0 +1,8 @@
1
+ import { Entity, Table } from "dynamodb-toolbox";
2
+ import { FileManagerContext } from "@webiny/api-file-manager/types";
3
+ export interface FilesEntityParams {
4
+ context: FileManagerContext;
5
+ table: Table;
6
+ }
7
+ declare const _default: (params: FilesEntityParams) => Entity<any>;
8
+ export default _default;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+
12
+ var _dynamodbToolbox = require("dynamodb-toolbox");
13
+
14
+ var _attributes = require("@webiny/db-dynamodb/utils/attributes");
15
+
16
+ var _default = params => {
17
+ const {
18
+ context,
19
+ table
20
+ } = params;
21
+ const entityName = "Files";
22
+ const attributes = (0, _attributes.getExtraAttributes)(context, entityName);
23
+ return new _dynamodbToolbox.Entity({
24
+ name: entityName,
25
+ table,
26
+ attributes: (0, _objectSpread2.default)({
27
+ PK: {
28
+ partitionKey: true
29
+ },
30
+ SK: {
31
+ sortKey: true
32
+ },
33
+ TYPE: {
34
+ type: "string"
35
+ },
36
+ id: {
37
+ type: "string"
38
+ },
39
+ key: {
40
+ type: "string"
41
+ },
42
+ size: {
43
+ type: "number"
44
+ },
45
+ type: {
46
+ type: "string"
47
+ },
48
+ name: {
49
+ type: "string"
50
+ },
51
+ meta: {
52
+ type: "map"
53
+ },
54
+ tags: {
55
+ type: "list"
56
+ },
57
+ createdOn: {
58
+ type: "string"
59
+ },
60
+ createdBy: {
61
+ type: "map"
62
+ },
63
+ tenant: {
64
+ type: "string"
65
+ },
66
+ locale: {
67
+ type: "string"
68
+ },
69
+ webinyVersion: {
70
+ type: "string"
71
+ }
72
+ }, attributes)
73
+ });
74
+ };
75
+
76
+ exports.default = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["params","context","table","entityName","attributes","getExtraAttributes","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","id","key","size","meta","tags","createdOn","createdBy","tenant","locale","webinyVersion"],"sources":["filesEntity.ts"],"sourcesContent":["import { Entity, Table } from \"dynamodb-toolbox\";\nimport { FileManagerContext } from \"@webiny/api-file-manager/types\";\nimport { getExtraAttributes } from \"@webiny/db-dynamodb/utils/attributes\";\n\nexport interface FilesEntityParams {\n context: FileManagerContext;\n table: Table;\n}\nexport default (params: FilesEntityParams): Entity<any> => {\n const { context, table } = params;\n const entityName = \"Files\";\n const attributes = getExtraAttributes(context, entityName);\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n TYPE: {\n type: \"string\"\n },\n id: {\n type: \"string\"\n },\n key: {\n type: \"string\"\n },\n size: {\n type: \"number\"\n },\n type: {\n type: \"string\"\n },\n name: {\n type: \"string\"\n },\n meta: {\n type: \"map\"\n },\n tags: {\n type: \"list\"\n },\n createdOn: {\n type: \"string\"\n },\n createdBy: {\n type: \"map\"\n },\n tenant: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n webinyVersion: {\n type: \"string\"\n },\n ...attributes\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AAEA;;eAMgBA,MAAD,IAA4C;EACvD,MAAM;IAAEC,OAAF;IAAWC;EAAX,IAAqBF,MAA3B;EACA,MAAMG,UAAU,GAAG,OAAnB;EACA,MAAMC,UAAU,GAAG,IAAAC,8BAAA,EAAmBJ,OAAnB,EAA4BE,UAA5B,CAAnB;EACA,OAAO,IAAIG,uBAAJ,CAAW;IACdC,IAAI,EAAEJ,UADQ;IAEdD,KAFc;IAGdE,UAAU;MACNI,EAAE,EAAE;QACAC,YAAY,EAAE;MADd,CADE;MAINC,EAAE,EAAE;QACAC,OAAO,EAAE;MADT,CAJE;MAONC,IAAI,EAAE;QACFC,IAAI,EAAE;MADJ,CAPA;MAUNC,EAAE,EAAE;QACAD,IAAI,EAAE;MADN,CAVE;MAaNE,GAAG,EAAE;QACDF,IAAI,EAAE;MADL,CAbC;MAgBNG,IAAI,EAAE;QACFH,IAAI,EAAE;MADJ,CAhBA;MAmBNA,IAAI,EAAE;QACFA,IAAI,EAAE;MADJ,CAnBA;MAsBNN,IAAI,EAAE;QACFM,IAAI,EAAE;MADJ,CAtBA;MAyBNI,IAAI,EAAE;QACFJ,IAAI,EAAE;MADJ,CAzBA;MA4BNK,IAAI,EAAE;QACFL,IAAI,EAAE;MADJ,CA5BA;MA+BNM,SAAS,EAAE;QACPN,IAAI,EAAE;MADC,CA/BL;MAkCNO,SAAS,EAAE;QACPP,IAAI,EAAE;MADC,CAlCL;MAqCNQ,MAAM,EAAE;QACJR,IAAI,EAAE;MADF,CArCF;MAwCNS,MAAM,EAAE;QACJT,IAAI,EAAE;MADF,CAxCF;MA2CNU,aAAa,EAAE;QACXV,IAAI,EAAE;MADK;IA3CT,GA8CHT,UA9CG;EAHI,CAAX,CAAP;AAoDH,C"}
@@ -0,0 +1,8 @@
1
+ import { Entity, Table } from "dynamodb-toolbox";
2
+ import { FileManagerContext } from "@webiny/api-file-manager/types";
3
+ export interface SettingsEntityParams {
4
+ context: FileManagerContext;
5
+ table: Table;
6
+ }
7
+ declare const _default: (params: SettingsEntityParams) => Entity<any>;
8
+ export default _default;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+
12
+ var _dynamodbToolbox = require("dynamodb-toolbox");
13
+
14
+ var _attributes = require("@webiny/db-dynamodb/utils/attributes");
15
+
16
+ var _default = params => {
17
+ const {
18
+ context,
19
+ table
20
+ } = params;
21
+ const entityName = "Settings";
22
+ const attributes = (0, _attributes.getExtraAttributes)(context, entityName);
23
+ return new _dynamodbToolbox.Entity({
24
+ name: entityName,
25
+ table,
26
+ attributes: (0, _objectSpread2.default)({
27
+ PK: {
28
+ partitionKey: true
29
+ },
30
+ SK: {
31
+ sortKey: true
32
+ },
33
+ TYPE: {
34
+ type: "string"
35
+ },
36
+ key: {
37
+ type: "string"
38
+ },
39
+ uploadMinFileSize: {
40
+ type: "number"
41
+ },
42
+ uploadMaxFileSize: {
43
+ type: "number"
44
+ },
45
+ srcPrefix: {
46
+ type: "string"
47
+ }
48
+ }, attributes)
49
+ });
50
+ };
51
+
52
+ exports.default = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["params","context","table","entityName","attributes","getExtraAttributes","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","key","uploadMinFileSize","uploadMaxFileSize","srcPrefix"],"sources":["settingsEntity.ts"],"sourcesContent":["import { Entity, Table } from \"dynamodb-toolbox\";\nimport { FileManagerContext } from \"@webiny/api-file-manager/types\";\nimport { getExtraAttributes } from \"@webiny/db-dynamodb/utils/attributes\";\n\nexport interface SettingsEntityParams {\n context: FileManagerContext;\n table: Table;\n}\nexport default (params: SettingsEntityParams): Entity<any> => {\n const { context, table } = params;\n const entityName = \"Settings\";\n const attributes = getExtraAttributes(context, entityName);\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n TYPE: {\n type: \"string\"\n },\n key: {\n type: \"string\"\n },\n uploadMinFileSize: {\n type: \"number\"\n },\n uploadMaxFileSize: {\n type: \"number\"\n },\n srcPrefix: {\n type: \"string\"\n },\n ...attributes\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AAEA;;eAMgBA,MAAD,IAA+C;EAC1D,MAAM;IAAEC,OAAF;IAAWC;EAAX,IAAqBF,MAA3B;EACA,MAAMG,UAAU,GAAG,UAAnB;EACA,MAAMC,UAAU,GAAG,IAAAC,8BAAA,EAAmBJ,OAAnB,EAA4BE,UAA5B,CAAnB;EACA,OAAO,IAAIG,uBAAJ,CAAW;IACdC,IAAI,EAAEJ,UADQ;IAEdD,KAFc;IAGdE,UAAU;MACNI,EAAE,EAAE;QACAC,YAAY,EAAE;MADd,CADE;MAINC,EAAE,EAAE;QACAC,OAAO,EAAE;MADT,CAJE;MAONC,IAAI,EAAE;QACFC,IAAI,EAAE;MADJ,CAPA;MAUNC,GAAG,EAAE;QACDD,IAAI,EAAE;MADL,CAVC;MAaNE,iBAAiB,EAAE;QACfF,IAAI,EAAE;MADS,CAbb;MAgBNG,iBAAiB,EAAE;QACfH,IAAI,EAAE;MADS,CAhBb;MAmBNI,SAAS,EAAE;QACPJ,IAAI,EAAE;MADC;IAnBL,GAsBHT,UAtBG;EAHI,CAAX,CAAP;AA4BH,C"}
@@ -0,0 +1,8 @@
1
+ import { Entity, Table } from "dynamodb-toolbox";
2
+ import { FileManagerContext } from "@webiny/api-file-manager/types";
3
+ export interface SystemEntityParams {
4
+ context: FileManagerContext;
5
+ table: Table;
6
+ }
7
+ declare const _default: (params: SystemEntityParams) => Entity<any>;
8
+ export default _default;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+
12
+ var _dynamodbToolbox = require("dynamodb-toolbox");
13
+
14
+ var _attributes = require("@webiny/db-dynamodb/utils/attributes");
15
+
16
+ var _default = params => {
17
+ const {
18
+ context,
19
+ table
20
+ } = params;
21
+ const entityName = "System";
22
+ const attributes = (0, _attributes.getExtraAttributes)(context, entityName);
23
+ return new _dynamodbToolbox.Entity({
24
+ name: entityName,
25
+ table,
26
+ attributes: (0, _objectSpread2.default)({
27
+ PK: {
28
+ partitionKey: true
29
+ },
30
+ SK: {
31
+ sortKey: true
32
+ },
33
+ version: {
34
+ type: "string"
35
+ },
36
+ tenant: {
37
+ type: "string"
38
+ }
39
+ }, attributes)
40
+ });
41
+ };
42
+
43
+ exports.default = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["params","context","table","entityName","attributes","getExtraAttributes","Entity","name","PK","partitionKey","SK","sortKey","version","type","tenant"],"sources":["systemEntity.ts"],"sourcesContent":["import { Entity, Table } from \"dynamodb-toolbox\";\nimport { FileManagerContext } from \"@webiny/api-file-manager/types\";\nimport { getExtraAttributes } from \"@webiny/db-dynamodb/utils/attributes\";\n\nexport interface SystemEntityParams {\n context: FileManagerContext;\n table: Table;\n}\nexport default (params: SystemEntityParams): Entity<any> => {\n const { context, table } = params;\n const entityName = \"System\";\n const attributes = getExtraAttributes(context, entityName);\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n version: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n },\n ...attributes\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AAEA;;eAMgBA,MAAD,IAA6C;EACxD,MAAM;IAAEC,OAAF;IAAWC;EAAX,IAAqBF,MAA3B;EACA,MAAMG,UAAU,GAAG,QAAnB;EACA,MAAMC,UAAU,GAAG,IAAAC,8BAAA,EAAmBJ,OAAnB,EAA4BE,UAA5B,CAAnB;EACA,OAAO,IAAIG,uBAAJ,CAAW;IACdC,IAAI,EAAEJ,UADQ;IAEdD,KAFc;IAGdE,UAAU;MACNI,EAAE,EAAE;QACAC,YAAY,EAAE;MADd,CADE;MAINC,EAAE,EAAE;QACAC,OAAO,EAAE;MADT,CAJE;MAONC,OAAO,EAAE;QACLC,IAAI,EAAE;MADD,CAPH;MAUNC,MAAM,EAAE;QACJD,IAAI,EAAE;MADF;IAVF,GAaHT,UAbG;EAHI,CAAX,CAAP;AAmBH,C"}
@@ -0,0 +1,7 @@
1
+ import { Table } from "dynamodb-toolbox";
2
+ import { FileManagerContext } from "@webiny/api-file-manager/types";
3
+ export interface TableParams {
4
+ context: FileManagerContext;
5
+ }
6
+ declare const _default: (params: TableParams) => Table;
7
+ export default _default;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _dynamodbToolbox = require("dynamodb-toolbox");
9
+
10
+ var _utils = require("../operations/utils");
11
+
12
+ var _default = params => {
13
+ const {
14
+ context
15
+ } = params;
16
+ return new _dynamodbToolbox.Table({
17
+ name: process.env.DB_TABLE_FILE_MANGER || process.env.DB_TABLE || (0, _utils.getTable)(context),
18
+ partitionKey: "PK",
19
+ sortKey: "SK",
20
+ DocumentClient: (0, _utils.getDocumentClient)(context)
21
+ });
22
+ };
23
+
24
+ exports.default = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["params","context","Table","name","process","env","DB_TABLE_FILE_MANGER","DB_TABLE","getTable","partitionKey","sortKey","DocumentClient","getDocumentClient"],"sources":["table.ts"],"sourcesContent":["import { Table } from \"dynamodb-toolbox\";\nimport { getDocumentClient, getTable } from \"~/operations/utils\";\nimport { FileManagerContext } from \"@webiny/api-file-manager/types\";\n\nexport interface TableParams {\n context: FileManagerContext;\n}\nexport default (params: TableParams): Table => {\n const { context } = params;\n return new Table({\n name: process.env.DB_TABLE_FILE_MANGER || process.env.DB_TABLE || getTable(context),\n partitionKey: \"PK\",\n sortKey: \"SK\",\n DocumentClient: getDocumentClient(context)\n });\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;eAMgBA,MAAD,IAAgC;EAC3C,MAAM;IAAEC;EAAF,IAAcD,MAApB;EACA,OAAO,IAAIE,sBAAJ,CAAU;IACbC,IAAI,EAAEC,OAAO,CAACC,GAAR,CAAYC,oBAAZ,IAAoCF,OAAO,CAACC,GAAR,CAAYE,QAAhD,IAA4D,IAAAC,eAAA,EAASP,OAAT,CADrD;IAEbQ,YAAY,EAAE,IAFD;IAGbC,OAAO,EAAE,IAHI;IAIbC,cAAc,EAAE,IAAAC,wBAAA,EAAkBX,OAAlB;EAJH,CAAV,CAAP;AAMH,C"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { FilesStorageOperationsProviderDdb } from "./operations/files";
2
+ import { SettingsStorageOperationsProviderDdbPlugin } from "./operations/settings";
3
+ import { SystemStorageOperationsProviderDdbPlugin } from "./operations/system";
4
+ declare const _default: () => (FilesStorageOperationsProviderDdb | SettingsStorageOperationsProviderDdbPlugin | SystemStorageOperationsProviderDdbPlugin)[];
5
+ export default _default;
package/index.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _files = require("./operations/files");
9
+
10
+ var _settings = require("./operations/settings");
11
+
12
+ var _system = require("./operations/system");
13
+
14
+ var _default = () => [new _files.FilesStorageOperationsProviderDdb(), new _settings.SettingsStorageOperationsProviderDdbPlugin(), new _system.SystemStorageOperationsProviderDdbPlugin()];
15
+
16
+ exports.default = _default;
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FilesStorageOperationsProviderDdb","SettingsStorageOperationsProviderDdbPlugin","SystemStorageOperationsProviderDdbPlugin"],"sources":["index.ts"],"sourcesContent":["import { FilesStorageOperationsProviderDdb } from \"./operations/files\";\nimport { SettingsStorageOperationsProviderDdbPlugin } from \"./operations/settings\";\nimport { SystemStorageOperationsProviderDdbPlugin } from \"./operations/system\";\n\nexport default () => [\n new FilesStorageOperationsProviderDdb(),\n new SettingsStorageOperationsProviderDdbPlugin(),\n new SystemStorageOperationsProviderDdbPlugin()\n];\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;eAEe,MAAM,CACjB,IAAIA,wCAAJ,EADiB,EAEjB,IAAIC,oDAAJ,EAFiB,EAGjB,IAAIC,gDAAJ,EAHiB,C"}
@@ -0,0 +1,22 @@
1
+ import { File, FileManagerContext, FileManagerFilesStorageOperations, FileManagerFilesStorageOperationsCreateBatchParams, FileManagerFilesStorageOperationsCreateParams, FileManagerFilesStorageOperationsDeleteParams, FileManagerFilesStorageOperationsGetParams, FileManagerFilesStorageOperationsListParams, FileManagerFilesStorageOperationsListResponse, FileManagerFilesStorageOperationsTagsParams, FileManagerFilesStorageOperationsTagsResponse, FileManagerFilesStorageOperationsUpdateParams } from "@webiny/api-file-manager/types";
2
+ interface ConstructorParams {
3
+ context: FileManagerContext;
4
+ }
5
+ export declare class FilesStorageOperations implements FileManagerFilesStorageOperations {
6
+ private readonly _context;
7
+ private readonly table;
8
+ private readonly entity;
9
+ private get context();
10
+ constructor({ context }: ConstructorParams);
11
+ get(params: FileManagerFilesStorageOperationsGetParams): Promise<File | null>;
12
+ create(params: FileManagerFilesStorageOperationsCreateParams): Promise<File>;
13
+ update(params: FileManagerFilesStorageOperationsUpdateParams): Promise<File>;
14
+ delete(params: FileManagerFilesStorageOperationsDeleteParams): Promise<void>;
15
+ createBatch(params: FileManagerFilesStorageOperationsCreateBatchParams): Promise<File[]>;
16
+ list(params: FileManagerFilesStorageOperationsListParams): Promise<FileManagerFilesStorageOperationsListResponse>;
17
+ tags(params: FileManagerFilesStorageOperationsTagsParams): Promise<FileManagerFilesStorageOperationsTagsResponse>;
18
+ private createQueryAllOptions;
19
+ private createPartitionKey;
20
+ private createSortKey;
21
+ }
22
+ export {};