@webiny/api-headless-cms-ddb 0.0.0-unstable.99666aeb00 → 0.0.0-unstable.a9593f74dd

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 (122) hide show
  1. package/definitions/entry.d.ts +2 -2
  2. package/definitions/entry.js +64 -15
  3. package/definitions/entry.js.map +1 -1
  4. package/definitions/group.d.ts +2 -2
  5. package/definitions/group.js +9 -8
  6. package/definitions/group.js.map +1 -1
  7. package/definitions/model.d.ts +2 -2
  8. package/definitions/model.js +9 -8
  9. package/definitions/model.js.map +1 -1
  10. package/definitions/system.d.ts +2 -2
  11. package/definitions/system.js +9 -8
  12. package/definitions/system.js.map +1 -1
  13. package/definitions/table.d.ts +4 -4
  14. package/definitions/table.js +8 -4
  15. package/definitions/table.js.map +1 -1
  16. package/dynamoDb/index.js +3 -1
  17. package/dynamoDb/index.js.map +1 -1
  18. package/dynamoDb/path/locationFolderId.js +4 -2
  19. package/dynamoDb/path/locationFolderId.js.map +1 -1
  20. package/dynamoDb/path/plainObject.js +3 -1
  21. package/dynamoDb/path/plainObject.js.map +1 -1
  22. package/dynamoDb/storage/date.js +3 -1
  23. package/dynamoDb/storage/date.js.map +1 -1
  24. package/dynamoDb/storage/longText.js +3 -1
  25. package/dynamoDb/storage/longText.js.map +1 -1
  26. package/dynamoDb/storage/richText.js +4 -3
  27. package/dynamoDb/storage/richText.js.map +1 -1
  28. package/dynamoDb/transformValue/datetime.js +3 -1
  29. package/dynamoDb/transformValue/datetime.js.map +1 -1
  30. package/index.js +3 -11
  31. package/index.js.map +1 -1
  32. package/operations/entry/dataLoader/DataLoaderCache.js +7 -9
  33. package/operations/entry/dataLoader/DataLoaderCache.js.map +1 -1
  34. package/operations/entry/dataLoader/constants.js +3 -1
  35. package/operations/entry/dataLoader/constants.js.map +1 -1
  36. package/operations/entry/dataLoader/createBatchScheduleFn.js +3 -1
  37. package/operations/entry/dataLoader/createBatchScheduleFn.js.map +1 -1
  38. package/operations/entry/dataLoader/getAllEntryRevisions.js +3 -1
  39. package/operations/entry/dataLoader/getAllEntryRevisions.js.map +1 -1
  40. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +3 -4
  41. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js.map +1 -1
  42. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +3 -4
  43. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js.map +1 -1
  44. package/operations/entry/dataLoader/getRevisionById.js +3 -4
  45. package/operations/entry/dataLoader/getRevisionById.js.map +1 -1
  46. package/operations/entry/dataLoader/index.js +3 -1
  47. package/operations/entry/dataLoader/index.js.map +1 -1
  48. package/operations/entry/dataLoader/types.d.ts +1 -1
  49. package/operations/entry/dataLoader/types.js +3 -1
  50. package/operations/entry/dataLoader/types.js.map +1 -1
  51. package/operations/entry/dataLoaders.d.ts +1 -1
  52. package/operations/entry/dataLoaders.js +15 -14
  53. package/operations/entry/dataLoaders.js.map +1 -1
  54. package/operations/entry/filtering/createExpressions.js +3 -1
  55. package/operations/entry/filtering/createExpressions.js.map +1 -1
  56. package/operations/entry/filtering/createFields.js +12 -9
  57. package/operations/entry/filtering/createFields.js.map +1 -1
  58. package/operations/entry/filtering/extractSort.js +3 -1
  59. package/operations/entry/filtering/extractSort.js.map +1 -1
  60. package/operations/entry/filtering/filter.js +24 -9
  61. package/operations/entry/filtering/filter.js.map +1 -1
  62. package/operations/entry/filtering/fullTextSearch.js +3 -1
  63. package/operations/entry/filtering/fullTextSearch.js.map +1 -1
  64. package/operations/entry/filtering/getValue.js +6 -3
  65. package/operations/entry/filtering/getValue.js.map +1 -1
  66. package/operations/entry/filtering/index.js +3 -1
  67. package/operations/entry/filtering/index.js.map +1 -1
  68. package/operations/entry/filtering/mapPlugins.js +3 -1
  69. package/operations/entry/filtering/mapPlugins.js.map +1 -1
  70. package/operations/entry/filtering/plugins/defaultFilterCreate.js +3 -1
  71. package/operations/entry/filtering/plugins/defaultFilterCreate.js.map +1 -1
  72. package/operations/entry/filtering/plugins/index.js +3 -1
  73. package/operations/entry/filtering/plugins/index.js.map +1 -1
  74. package/operations/entry/filtering/plugins/objectFilterCreate.js +3 -1
  75. package/operations/entry/filtering/plugins/objectFilterCreate.js.map +1 -1
  76. package/operations/entry/filtering/plugins/refFilterCreate.js +3 -1
  77. package/operations/entry/filtering/plugins/refFilterCreate.js.map +1 -1
  78. package/operations/entry/filtering/sort.js +3 -1
  79. package/operations/entry/filtering/sort.js.map +1 -1
  80. package/operations/entry/filtering/systemFields.js +28 -32
  81. package/operations/entry/filtering/systemFields.js.map +1 -1
  82. package/operations/entry/filtering/transform.js +3 -1
  83. package/operations/entry/filtering/transform.js.map +1 -1
  84. package/operations/entry/filtering/types.js +3 -1
  85. package/operations/entry/filtering/values.js +3 -1
  86. package/operations/entry/filtering/values.js.map +1 -1
  87. package/operations/entry/filtering/where.js +3 -1
  88. package/operations/entry/filtering/where.js.map +1 -1
  89. package/operations/entry/index.d.ts +1 -1
  90. package/operations/entry/index.js +248 -60
  91. package/operations/entry/index.js.map +1 -1
  92. package/operations/entry/keys.js +3 -1
  93. package/operations/entry/keys.js.map +1 -1
  94. package/operations/group/index.d.ts +1 -1
  95. package/operations/group/index.js +33 -21
  96. package/operations/group/index.js.map +1 -1
  97. package/operations/model/index.d.ts +1 -1
  98. package/operations/model/index.js +26 -13
  99. package/operations/model/index.js.map +1 -1
  100. package/operations/system/index.d.ts +1 -1
  101. package/operations/system/index.js +19 -7
  102. package/operations/system/index.js.map +1 -1
  103. package/package.json +15 -16
  104. package/plugins/CmsEntryFieldFilterPathPlugin.js +8 -3
  105. package/plugins/CmsEntryFieldFilterPathPlugin.js.map +1 -1
  106. package/plugins/CmsEntryFieldFilterPlugin.js +9 -6
  107. package/plugins/CmsEntryFieldFilterPlugin.js.map +1 -1
  108. package/plugins/CmsEntryFieldSortingPlugin.js +4 -5
  109. package/plugins/CmsEntryFieldSortingPlugin.js.map +1 -1
  110. package/plugins/CmsFieldFilterValueTransformPlugin.js +3 -4
  111. package/plugins/CmsFieldFilterValueTransformPlugin.js.map +1 -1
  112. package/plugins/index.js +3 -1
  113. package/plugins/index.js.map +1 -1
  114. package/types.d.ts +8 -10
  115. package/types.js +6 -5
  116. package/types.js.map +1 -1
  117. package/definitions/settings.d.ts +0 -9
  118. package/definitions/settings.js +0 -53
  119. package/definitions/settings.js.map +0 -1
  120. package/operations/settings/index.d.ts +0 -7
  121. package/operations/settings/index.js +0 -111
  122. package/operations/settings/index.js.map +0 -1
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.createSettingsEntity = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
- var _dynamodbToolbox = require("dynamodb-toolbox");
10
- const createSettingsEntity = params => {
11
- const {
12
- entityName,
13
- table,
14
- attributes
15
- } = params;
16
- return new _dynamodbToolbox.Entity({
17
- name: entityName,
18
- table,
19
- attributes: (0, _objectSpread2.default)({
20
- PK: {
21
- partitionKey: true
22
- },
23
- SK: {
24
- sortKey: true
25
- },
26
- TYPE: {
27
- type: "string"
28
- },
29
- key: {
30
- type: "string"
31
- },
32
- uploadMinFileSize: {
33
- type: "number"
34
- },
35
- uploadMaxFileSize: {
36
- type: "number"
37
- },
38
- srcPrefix: {
39
- type: "string"
40
- },
41
- contentModelLastChange: {
42
- type: "string"
43
- },
44
- tenant: {
45
- type: "string"
46
- },
47
- locale: {
48
- type: "string"
49
- }
50
- }, attributes || {})
51
- });
52
- };
53
- exports.createSettingsEntity = createSettingsEntity;
@@ -1 +0,0 @@
1
- {"version":3,"names":["createSettingsEntity","params","entityName","table","attributes","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","key","uploadMinFileSize","uploadMaxFileSize","srcPrefix","contentModelLastChange","tenant","locale"],"sources":["settings.ts"],"sourcesContent":["import { Entity, Table } from \"dynamodb-toolbox\";\nimport { Attributes } from \"~/types\";\n\ninterface Params {\n table: Table;\n entityName: string;\n attributes: Attributes;\n}\n\nexport const createSettingsEntity = (params: Params): Entity<any> => {\n const { entityName, table, attributes } = params;\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 contentModelLastChange: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;;;AAAA;AASO,MAAMA,oBAAoB,GAAIC,MAAc,IAAkB;EACjE,MAAM;IAAEC,UAAU;IAAEC,KAAK;IAAEC;EAAW,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,uBAAM,CAAC;IACdC,IAAI,EAAEJ,UAAU;IAChBC,KAAK;IACLC,UAAU;MACNG,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE;MACV,CAAC;MACDC,GAAG,EAAE;QACDD,IAAI,EAAE;MACV,CAAC;MACDE,iBAAiB,EAAE;QACfF,IAAI,EAAE;MACV,CAAC;MACDG,iBAAiB,EAAE;QACfH,IAAI,EAAE;MACV,CAAC;MACDI,SAAS,EAAE;QACPJ,IAAI,EAAE;MACV,CAAC;MACDK,sBAAsB,EAAE;QACpBL,IAAI,EAAE;MACV,CAAC;MACDM,MAAM,EAAE;QACJN,IAAI,EAAE;MACV,CAAC;MACDO,MAAM,EAAE;QACJP,IAAI,EAAE;MACV;IAAC,GACGR,UAAU,IAAI,CAAC,CAAC;EAE5B,CAAC,CAAC;AACN,CAAC;AAAC"}
@@ -1,7 +0,0 @@
1
- import { CmsSettingsStorageOperations } from "@webiny/api-headless-cms/types";
2
- import { Entity } from "dynamodb-toolbox";
3
- interface CreateSettingsStorageOperationsParams {
4
- entity: Entity<any>;
5
- }
6
- export declare const createSettingsStorageOperations: (params: CreateSettingsStorageOperationsParams) => CmsSettingsStorageOperations;
7
- export {};
@@ -1,111 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.createSettingsStorageOperations = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
- var _get = require("@webiny/db-dynamodb/utils/get");
10
- var _error = _interopRequireDefault(require("@webiny/error"));
11
- var _cleanup = require("@webiny/db-dynamodb/utils/cleanup");
12
- const convertToDbData = settings => {
13
- return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, settings), {}, {
14
- contentModelLastChange: settings.contentModelLastChange.toISOString()
15
- });
16
- };
17
- const convertFromDbData = settings => {
18
- if (!settings) {
19
- return null;
20
- }
21
- let contentModelLastChange;
22
- try {
23
- contentModelLastChange = new Date(settings.contentModelLastChange);
24
- } catch {
25
- contentModelLastChange = new Date();
26
- }
27
- return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, settings), {}, {
28
- contentModelLastChange
29
- });
30
- };
31
- const createPartitionKey = ({
32
- tenant,
33
- locale
34
- }) => {
35
- return `T#${tenant}#L#${locale}#CMS#SETTINGS`;
36
- };
37
- const createSortKey = () => {
38
- return "settings";
39
- };
40
- const createKeys = params => {
41
- return {
42
- PK: createPartitionKey(params),
43
- SK: createSortKey()
44
- };
45
- };
46
- const createSettingsStorageOperations = params => {
47
- const {
48
- entity
49
- } = params;
50
- const create = async params => {
51
- const {
52
- settings
53
- } = params;
54
- const keys = createKeys(settings);
55
- const dbSettings = convertToDbData(settings);
56
- try {
57
- await entity.put((0, _objectSpread2.default)((0, _objectSpread2.default)({}, dbSettings), keys));
58
- return settings;
59
- } catch (ex) {
60
- throw new _error.default(ex.message || "Could not create settings.", ex.code || "CREATE_SETTINGS_ERROR", {
61
- error: ex,
62
- settings,
63
- dbSettings,
64
- keys
65
- });
66
- }
67
- };
68
- const update = async params => {
69
- const {
70
- settings
71
- } = params;
72
- const keys = createKeys(settings);
73
- const dbSettings = convertToDbData(settings);
74
- try {
75
- await entity.put((0, _objectSpread2.default)((0, _objectSpread2.default)({}, dbSettings), keys));
76
- return settings;
77
- } catch (ex) {
78
- throw new _error.default(ex.message || "Could not update settings.", ex.code || "UPDATE_SETTINGS_ERROR", {
79
- error: ex,
80
- settings,
81
- dbSettings,
82
- keys
83
- });
84
- }
85
- };
86
- const get = async params => {
87
- const keys = createKeys(params);
88
- try {
89
- const record = await (0, _get.get)({
90
- entity,
91
- keys
92
- });
93
- if (!record) {
94
- return null;
95
- }
96
- const settings = (0, _cleanup.cleanupItem)(entity, record);
97
- return convertFromDbData(settings);
98
- } catch (ex) {
99
- throw new _error.default(ex.message || "Could not get settings.", ex.code || "GET_SETTINGS_ERROR", {
100
- error: ex,
101
- keys
102
- });
103
- }
104
- };
105
- return {
106
- create,
107
- get,
108
- update
109
- };
110
- };
111
- exports.createSettingsStorageOperations = createSettingsStorageOperations;
@@ -1 +0,0 @@
1
- {"version":3,"names":["convertToDbData","settings","contentModelLastChange","toISOString","convertFromDbData","Date","createPartitionKey","tenant","locale","createSortKey","createKeys","params","PK","SK","createSettingsStorageOperations","entity","create","keys","dbSettings","put","ex","WebinyError","message","code","error","update","get","record","getRecord","cleanupItem"],"sources":["index.ts"],"sourcesContent":["import {\n CmsSettings,\n CmsSettingsStorageOperations,\n CmsSettingsStorageOperationsCreateParams,\n CmsSettingsStorageOperationsGetParams,\n CmsSettingsStorageOperationsUpdateParams\n} from \"@webiny/api-headless-cms/types\";\nimport { Entity } from \"dynamodb-toolbox\";\nimport { get as getRecord } from \"@webiny/db-dynamodb/utils/get\";\nimport WebinyError from \"@webiny/error\";\nimport { cleanupItem } from \"@webiny/db-dynamodb/utils/cleanup\";\n\ninterface CmsSettingsDb extends Omit<CmsSettings, \"contentModelLastChange\"> {\n contentModelLastChange: string;\n}\n\nconst convertToDbData = (settings: CmsSettings): CmsSettingsDb => {\n return {\n ...settings,\n contentModelLastChange: settings.contentModelLastChange.toISOString()\n };\n};\n\nconst convertFromDbData = (settings?: CmsSettingsDb): CmsSettings | null => {\n if (!settings) {\n return null;\n }\n let contentModelLastChange;\n try {\n contentModelLastChange = new Date(settings.contentModelLastChange);\n } catch {\n contentModelLastChange = new Date();\n }\n return {\n ...settings,\n contentModelLastChange\n };\n};\n\ninterface PartitionKeyParams {\n tenant: string;\n locale: string;\n}\n\nconst createPartitionKey = ({ tenant, locale }: PartitionKeyParams): string => {\n return `T#${tenant}#L#${locale}#CMS#SETTINGS`;\n};\n\nconst createSortKey = (): string => {\n return \"settings\";\n};\n\ninterface Keys {\n PK: string;\n SK: string;\n}\nconst createKeys = (params: PartitionKeyParams): Keys => {\n return {\n PK: createPartitionKey(params),\n SK: createSortKey()\n };\n};\n\ninterface CreateSettingsStorageOperationsParams {\n entity: Entity<any>;\n}\n\nexport const createSettingsStorageOperations = (\n params: CreateSettingsStorageOperationsParams\n): CmsSettingsStorageOperations => {\n const { entity } = params;\n\n const create = async (params: CmsSettingsStorageOperationsCreateParams) => {\n const { settings } = params;\n const keys = createKeys(settings);\n\n const dbSettings: CmsSettingsDb = convertToDbData(settings);\n\n try {\n await entity.put({\n ...dbSettings,\n ...keys\n });\n return settings;\n } catch (ex) {\n throw new WebinyError(\n ex.message || \"Could not create settings.\",\n ex.code || \"CREATE_SETTINGS_ERROR\",\n {\n error: ex,\n settings,\n dbSettings,\n keys\n }\n );\n }\n };\n\n const update = async (params: CmsSettingsStorageOperationsUpdateParams) => {\n const { settings } = params;\n\n const keys = createKeys(settings);\n\n const dbSettings: CmsSettingsDb = convertToDbData(settings);\n\n try {\n await entity.put({\n ...dbSettings,\n ...keys\n });\n return settings;\n } catch (ex) {\n throw new WebinyError(\n ex.message || \"Could not update settings.\",\n ex.code || \"UPDATE_SETTINGS_ERROR\",\n {\n error: ex,\n settings,\n dbSettings,\n keys\n }\n );\n }\n };\n\n const get = async (params: CmsSettingsStorageOperationsGetParams) => {\n const keys = createKeys(params);\n try {\n const record = await getRecord<CmsSettingsDb>({\n entity,\n keys\n });\n if (!record) {\n return null;\n }\n const settings = cleanupItem(entity, record) as CmsSettingsDb;\n return convertFromDbData(settings);\n } catch (ex) {\n throw new WebinyError(\n ex.message || \"Could not get settings.\",\n ex.code || \"GET_SETTINGS_ERROR\",\n {\n error: ex,\n keys\n }\n );\n }\n };\n\n return {\n create,\n get,\n update\n };\n};\n"],"mappings":";;;;;;;;AAQA;AACA;AACA;AAMA,MAAMA,eAAe,GAAIC,QAAqB,IAAoB;EAC9D,mEACOA,QAAQ;IACXC,sBAAsB,EAAED,QAAQ,CAACC,sBAAsB,CAACC,WAAW;EAAE;AAE7E,CAAC;AAED,MAAMC,iBAAiB,GAAIH,QAAwB,IAAyB;EACxE,IAAI,CAACA,QAAQ,EAAE;IACX,OAAO,IAAI;EACf;EACA,IAAIC,sBAAsB;EAC1B,IAAI;IACAA,sBAAsB,GAAG,IAAIG,IAAI,CAACJ,QAAQ,CAACC,sBAAsB,CAAC;EACtE,CAAC,CAAC,MAAM;IACJA,sBAAsB,GAAG,IAAIG,IAAI,EAAE;EACvC;EACA,mEACOJ,QAAQ;IACXC;EAAsB;AAE9B,CAAC;AAOD,MAAMI,kBAAkB,GAAG,CAAC;EAAEC,MAAM;EAAEC;AAA2B,CAAC,KAAa;EAC3E,OAAQ,KAAID,MAAO,MAAKC,MAAO,eAAc;AACjD,CAAC;AAED,MAAMC,aAAa,GAAG,MAAc;EAChC,OAAO,UAAU;AACrB,CAAC;AAMD,MAAMC,UAAU,GAAIC,MAA0B,IAAW;EACrD,OAAO;IACHC,EAAE,EAAEN,kBAAkB,CAACK,MAAM,CAAC;IAC9BE,EAAE,E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