@webiny/api-file-manager-ddb 0.0.0-mt-3 → 0.0.0-unstable.2af142b57e

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 (50) hide show
  1. package/definitions/filesEntity.d.ts +3 -2
  2. package/definitions/filesEntity.js +3 -13
  3. package/definitions/filesEntity.js.map +1 -0
  4. package/definitions/settingsEntity.d.ts +3 -2
  5. package/definitions/settingsEntity.js +3 -13
  6. package/definitions/settingsEntity.js.map +1 -0
  7. package/definitions/systemEntity.d.ts +3 -2
  8. package/definitions/systemEntity.js +6 -13
  9. package/definitions/systemEntity.js.map +1 -0
  10. package/definitions/table.d.ts +3 -2
  11. package/definitions/table.js +1 -9
  12. package/definitions/table.js.map +1 -0
  13. package/index.js +0 -5
  14. package/index.js.map +1 -0
  15. package/operations/files/FilesStorageOperations.js +28 -65
  16. package/operations/files/FilesStorageOperations.js.map +1 -0
  17. package/operations/files/fields.js +0 -3
  18. package/operations/files/fields.js.map +1 -0
  19. package/operations/files/index.d.ts +2 -2
  20. package/operations/files/index.js +1 -10
  21. package/operations/files/index.js.map +1 -0
  22. package/operations/settings/SettingsStorageOperations.d.ts +3 -3
  23. package/operations/settings/SettingsStorageOperations.js +4 -27
  24. package/operations/settings/SettingsStorageOperations.js.map +1 -0
  25. package/operations/settings/index.d.ts +2 -4
  26. package/operations/settings/index.js +1 -9
  27. package/operations/settings/index.js.map +1 -0
  28. package/operations/system/SystemStorageOperations.d.ts +2 -2
  29. package/operations/system/SystemStorageOperations.js +5 -29
  30. package/operations/system/SystemStorageOperations.js.map +1 -0
  31. package/operations/system/index.d.ts +2 -4
  32. package/operations/system/index.js +1 -9
  33. package/operations/system/index.js.map +1 -0
  34. package/operations/utils.js +1 -11
  35. package/operations/utils.js.map +1 -0
  36. package/package.json +18 -18
  37. package/plugins/FileAttributePlugin.d.ts +2 -2
  38. package/plugins/FileAttributePlugin.js +3 -13
  39. package/plugins/FileAttributePlugin.js.map +1 -0
  40. package/plugins/FileDynamoDbFieldPlugin.js +1 -6
  41. package/plugins/FileDynamoDbFieldPlugin.js.map +1 -0
  42. package/plugins/SettingsAttributePlugin.d.ts +2 -2
  43. package/plugins/SettingsAttributePlugin.js +3 -13
  44. package/plugins/SettingsAttributePlugin.js.map +1 -0
  45. package/plugins/SystemAttributePlugin.d.ts +2 -2
  46. package/plugins/SystemAttributePlugin.js +3 -13
  47. package/plugins/SystemAttributePlugin.js.map +1 -0
  48. package/types.js.map +1 -0
  49. package/operations/configurations.d.ts +0 -14
  50. package/operations/configurations.js +0 -22
@@ -1,4 +1,4 @@
1
- import { AttributePlugin, Params } from "@webiny/db-dynamodb/plugins/definitions/AttributePlugin";
1
+ import { AttributePlugin, AttributePluginParams } from "@webiny/db-dynamodb/plugins/definitions/AttributePlugin";
2
2
  export declare class SystemAttributePlugin extends AttributePlugin {
3
- constructor(params: Omit<Params, "entity">);
3
+ constructor(params: Omit<AttributePluginParams, "entity">);
4
4
  }
@@ -1,27 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.SystemAttributePlugin = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
8
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
12
9
  var _AttributePlugin = require("@webiny/db-dynamodb/plugins/definitions/AttributePlugin");
13
-
14
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
15
-
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17
-
18
10
  class SystemAttributePlugin extends _AttributePlugin.AttributePlugin {
19
11
  constructor(params) {
20
- super(_objectSpread(_objectSpread({}, params), {}, {
12
+ super((0, _objectSpread2.default)((0, _objectSpread2.default)({}, params), {}, {
21
13
  entity: "System"
22
14
  }));
23
15
  }
24
-
25
16
  }
26
-
27
17
  exports.SystemAttributePlugin = SystemAttributePlugin;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SystemAttributePlugin","AttributePlugin","constructor","params","entity"],"sources":["SystemAttributePlugin.ts"],"sourcesContent":["import {\n AttributePlugin,\n AttributePluginParams\n} from \"@webiny/db-dynamodb/plugins/definitions/AttributePlugin\";\n\nexport class SystemAttributePlugin extends AttributePlugin {\n public constructor(params: Omit<AttributePluginParams, \"entity\">) {\n super({\n ...params,\n entity: \"System\"\n });\n }\n}\n"],"mappings":";;;;;;;;AAAA;AAKO,MAAMA,qBAAqB,SAASC,gCAAe,CAAC;EAChDC,WAAW,CAACC,MAA6C,EAAE;IAC9D,KAAK,6DACEA,MAAM;MACTC,MAAM,EAAE;IAAQ,GAClB;EACN;AACJ;AAAC"}
package/types.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":[""],"mappings":""}
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- db: () => {
3
- table: string;
4
- keys: {
5
- primary: boolean;
6
- unique: boolean;
7
- name: string;
8
- fields: {
9
- name: string;
10
- }[];
11
- }[];
12
- };
13
- };
14
- export default _default;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = {
8
- db: () => ({
9
- table: process.env.DB_TABLE_FILE_MANGER || process.env.DB_TABLE,
10
- keys: [{
11
- primary: true,
12
- unique: true,
13
- name: "primary",
14
- fields: [{
15
- name: "PK"
16
- }, {
17
- name: "SK"
18
- }]
19
- }]
20
- })
21
- };
22
- exports.default = _default;