@webiny/api-file-manager-ddb 5.35.0 → 5.35.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-file-manager-ddb",
3
- "version": "5.35.0",
3
+ "version": "5.35.1",
4
4
  "main": "index.js",
5
5
  "keywords": [
6
6
  "@webiny/api-file-manager",
@@ -22,27 +22,27 @@
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
24
  "@babel/runtime": "7.20.13",
25
- "@webiny/api-file-manager": "5.35.0",
26
- "@webiny/db-dynamodb": "5.35.0",
27
- "@webiny/error": "5.35.0",
28
- "@webiny/plugins": "5.35.0",
29
- "@webiny/project-utils": "5.35.0",
25
+ "@webiny/api-file-manager": "^5.35.1",
26
+ "@webiny/db-dynamodb": "^5.35.1",
27
+ "@webiny/error": "^5.35.1",
28
+ "@webiny/plugins": "^5.35.1",
29
+ "@webiny/project-utils": "^5.35.1",
30
30
  "aws-sdk": "2.1310.0",
31
31
  "dynamodb-toolbox": "0.3.5"
32
32
  },
33
33
  "devDependencies": {
34
- "@babel/cli": "^7.19.3",
35
- "@babel/core": "^7.19.3",
36
- "@babel/plugin-proposal-object-rest-spread": "^7.16.0",
37
- "@babel/plugin-transform-runtime": "^7.16.4",
38
- "@babel/preset-env": "^7.19.4",
39
- "@babel/preset-typescript": "^7.18.6",
40
- "@webiny/cli": "^5.35.0",
41
- "jest": "^28.1.0",
42
- "jest-dynalite": "^3.2.0",
43
- "jsonpack": "^1.1.5",
44
- "rimraf": "^3.0.2",
45
- "ttypescript": "^1.5.12",
34
+ "@babel/cli": "7.20.7",
35
+ "@babel/core": "7.20.12",
36
+ "@babel/plugin-proposal-object-rest-spread": "7.20.7",
37
+ "@babel/plugin-transform-runtime": "7.19.6",
38
+ "@babel/preset-env": "7.20.2",
39
+ "@babel/preset-typescript": "7.18.6",
40
+ "@webiny/cli": "^5.35.1",
41
+ "jest": "28.1.3",
42
+ "jest-dynalite": "3.6.1",
43
+ "jsonpack": "1.1.5",
44
+ "rimraf": "3.0.2",
45
+ "ttypescript": "1.5.15",
46
46
  "typescript": "4.7.4"
47
47
  },
48
48
  "publishConfig": {
@@ -64,5 +64,5 @@
64
64
  ]
65
65
  }
66
66
  },
67
- "gitHead": "948cd1e05978e0ed25137ace7dd6c15ed0bf2cca"
67
+ "gitHead": "d6a257ebbb9e7aeccfaa33a7f83301cf1919b082"
68
68
  }
@@ -1,8 +0,0 @@
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;
@@ -1,76 +0,0 @@
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;
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
1
- import { FilesStorageOperationsProviderPlugin, FilesStorageOperationsProviderPluginParams } from "@webiny/api-file-manager/plugins/definitions/FilesStorageOperationsProviderPlugin";
2
- import { FilesStorageOperations } from "./FilesStorageOperations";
3
- export declare class FilesStorageOperationsProviderDdb extends FilesStorageOperationsProviderPlugin {
4
- name: string;
5
- provide({ context }: FilesStorageOperationsProviderPluginParams): Promise<FilesStorageOperations>;
6
- }
@@ -1,35 +0,0 @@
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.FilesStorageOperationsProviderDdb = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _FilesStorageOperationsProviderPlugin = require("@webiny/api-file-manager/plugins/definitions/FilesStorageOperationsProviderPlugin");
13
-
14
- var _FilesStorageOperations = require("./FilesStorageOperations");
15
-
16
- var _fields = _interopRequireDefault(require("./fields"));
17
-
18
- class FilesStorageOperationsProviderDdb extends _FilesStorageOperationsProviderPlugin.FilesStorageOperationsProviderPlugin {
19
- constructor(...args) {
20
- super(...args);
21
- (0, _defineProperty2.default)(this, "name", "fm.storageOperationsProvider.files.ddb");
22
- }
23
-
24
- async provide({
25
- context
26
- }) {
27
- context.plugins.register((0, _fields.default)());
28
- return new _FilesStorageOperations.FilesStorageOperations({
29
- context
30
- });
31
- }
32
-
33
- }
34
-
35
- exports.FilesStorageOperationsProviderDdb = FilesStorageOperationsProviderDdb;
@@ -1 +0,0 @@
1
- {"version":3,"names":["FilesStorageOperationsProviderDdb","FilesStorageOperationsProviderPlugin","provide","context","plugins","register","fields","FilesStorageOperations"],"sources":["index.ts"],"sourcesContent":["import {\n FilesStorageOperationsProviderPlugin,\n FilesStorageOperationsProviderPluginParams\n} from \"@webiny/api-file-manager/plugins/definitions/FilesStorageOperationsProviderPlugin\";\nimport { FilesStorageOperations } from \"./FilesStorageOperations\";\nimport fields from \"./fields\";\n\nexport class FilesStorageOperationsProviderDdb extends FilesStorageOperationsProviderPlugin {\n public override name = \"fm.storageOperationsProvider.files.ddb\";\n async provide({ context }: FilesStorageOperationsProviderPluginParams) {\n context.plugins.register(fields());\n return new FilesStorageOperations({\n context\n });\n }\n}\n"],"mappings":";;;;;;;;;;;AAAA;;AAIA;;AACA;;AAEO,MAAMA,iCAAN,SAAgDC,0EAAhD,CAAqF;EAAA;IAAA;IAAA,4CACjE,wCADiE;EAAA;;EAE3E,MAAPC,OAAO,CAAC;IAAEC;EAAF,CAAD,EAA0D;IACnEA,OAAO,CAACC,OAAR,CAAgBC,QAAhB,CAAyB,IAAAC,eAAA,GAAzB;IACA,OAAO,IAAIC,8CAAJ,CAA2B;MAC9BJ;IAD8B,CAA3B,CAAP;EAGH;;AAPuF"}
@@ -1,6 +0,0 @@
1
- import { SettingsStorageOperations } from "./SettingsStorageOperations";
2
- import { SettingsStorageOperationsProviderPlugin, SettingsStorageOperationsProviderPluginParams } from "@webiny/api-file-manager/plugins/definitions/SettingsStorageOperationsProviderPlugin";
3
- export declare class SettingsStorageOperationsProviderDdbPlugin extends SettingsStorageOperationsProviderPlugin {
4
- name: string;
5
- provide({ context }: SettingsStorageOperationsProviderPluginParams): Promise<SettingsStorageOperations>;
6
- }
@@ -1,32 +0,0 @@
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.SettingsStorageOperationsProviderDdbPlugin = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _SettingsStorageOperations = require("./SettingsStorageOperations");
13
-
14
- var _SettingsStorageOperationsProviderPlugin = require("@webiny/api-file-manager/plugins/definitions/SettingsStorageOperationsProviderPlugin");
15
-
16
- class SettingsStorageOperationsProviderDdbPlugin extends _SettingsStorageOperationsProviderPlugin.SettingsStorageOperationsProviderPlugin {
17
- constructor(...args) {
18
- super(...args);
19
- (0, _defineProperty2.default)(this, "name", "fm.storageOperationsProvider.settings.ddb");
20
- }
21
-
22
- async provide({
23
- context
24
- }) {
25
- return new _SettingsStorageOperations.SettingsStorageOperations({
26
- context
27
- });
28
- }
29
-
30
- }
31
-
32
- exports.SettingsStorageOperationsProviderDdbPlugin = SettingsStorageOperationsProviderDdbPlugin;
@@ -1 +0,0 @@
1
- {"version":3,"names":["SettingsStorageOperationsProviderDdbPlugin","SettingsStorageOperationsProviderPlugin","provide","context","SettingsStorageOperations"],"sources":["index.ts"],"sourcesContent":["import { SettingsStorageOperations } from \"./SettingsStorageOperations\";\nimport {\n SettingsStorageOperationsProviderPlugin,\n SettingsStorageOperationsProviderPluginParams\n} from \"@webiny/api-file-manager/plugins/definitions/SettingsStorageOperationsProviderPlugin\";\n\nexport class SettingsStorageOperationsProviderDdbPlugin extends SettingsStorageOperationsProviderPlugin {\n public override name = \"fm.storageOperationsProvider.settings.ddb\";\n\n public async provide({ context }: SettingsStorageOperationsProviderPluginParams) {\n return new SettingsStorageOperations({\n context\n });\n }\n}\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAKO,MAAMA,0CAAN,SAAyDC,gFAAzD,CAAiG;EAAA;IAAA;IAAA,4CAC7E,2CAD6E;EAAA;;EAGhF,MAAPC,OAAO,CAAC;IAAEC;EAAF,CAAD,EAA6D;IAC7E,OAAO,IAAIC,oDAAJ,CAA8B;MACjCD;IADiC,CAA9B,CAAP;EAGH;;AAPmG"}
@@ -1,6 +0,0 @@
1
- import { SystemStorageOperations } from "./SystemStorageOperations";
2
- import { SystemStorageOperationsProviderPlugin, SystemStorageOperationsProviderPluginParams } from "@webiny/api-file-manager/plugins/definitions/SystemStorageOperationsProviderPlugin";
3
- export declare class SystemStorageOperationsProviderDdbPlugin extends SystemStorageOperationsProviderPlugin {
4
- name: string;
5
- provide({ context }: SystemStorageOperationsProviderPluginParams): Promise<SystemStorageOperations>;
6
- }
@@ -1,32 +0,0 @@
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.SystemStorageOperationsProviderDdbPlugin = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _SystemStorageOperations = require("./SystemStorageOperations");
13
-
14
- var _SystemStorageOperationsProviderPlugin = require("@webiny/api-file-manager/plugins/definitions/SystemStorageOperationsProviderPlugin");
15
-
16
- class SystemStorageOperationsProviderDdbPlugin extends _SystemStorageOperationsProviderPlugin.SystemStorageOperationsProviderPlugin {
17
- constructor(...args) {
18
- super(...args);
19
- (0, _defineProperty2.default)(this, "name", "fm.storageOperationsProvider.system.ddb");
20
- }
21
-
22
- async provide({
23
- context
24
- }) {
25
- return new _SystemStorageOperations.SystemStorageOperations({
26
- context
27
- });
28
- }
29
-
30
- }
31
-
32
- exports.SystemStorageOperationsProviderDdbPlugin = SystemStorageOperationsProviderDdbPlugin;
@@ -1 +0,0 @@
1
- {"version":3,"names":["SystemStorageOperationsProviderDdbPlugin","SystemStorageOperationsProviderPlugin","provide","context","SystemStorageOperations"],"sources":["index.ts"],"sourcesContent":["import { SystemStorageOperations } from \"./SystemStorageOperations\";\nimport {\n SystemStorageOperationsProviderPlugin,\n SystemStorageOperationsProviderPluginParams\n} from \"@webiny/api-file-manager/plugins/definitions/SystemStorageOperationsProviderPlugin\";\n\nexport class SystemStorageOperationsProviderDdbPlugin extends SystemStorageOperationsProviderPlugin {\n public override name = \"fm.storageOperationsProvider.system.ddb\";\n public async provide({ context }: SystemStorageOperationsProviderPluginParams) {\n return new SystemStorageOperations({\n context\n });\n }\n}\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAKO,MAAMA,wCAAN,SAAuDC,4EAAvD,CAA6F;EAAA;IAAA;IAAA,4CACzE,yCADyE;EAAA;;EAE5E,MAAPC,OAAO,CAAC;IAAEC;EAAF,CAAD,EAA2D;IAC3E,OAAO,IAAIC,gDAAJ,CAA4B;MAC/BD;IAD+B,CAA5B,CAAP;EAGH;;AAN+F"}