@webiny/api-headless-cms-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 (132) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +25 -0
  3. package/definitions/entry.d.ts +9 -0
  4. package/definitions/entry.js +96 -0
  5. package/definitions/entry.js.map +1 -0
  6. package/definitions/group.d.ts +9 -0
  7. package/definitions/group.js +70 -0
  8. package/definitions/group.js.map +1 -0
  9. package/definitions/model.d.ts +9 -0
  10. package/definitions/model.js +97 -0
  11. package/definitions/model.js.map +1 -0
  12. package/definitions/settings.d.ts +9 -0
  13. package/definitions/settings.js +58 -0
  14. package/definitions/settings.js.map +1 -0
  15. package/definitions/system.d.ts +9 -0
  16. package/definitions/system.js +46 -0
  17. package/definitions/system.js.map +1 -0
  18. package/definitions/table.d.ts +9 -0
  19. package/definitions/table.js +30 -0
  20. package/definitions/table.js.map +1 -0
  21. package/dynamoDb/index.d.ts +2 -0
  22. package/dynamoDb/index.js +20 -0
  23. package/dynamoDb/index.js.map +1 -0
  24. package/dynamoDb/path/plainObject.d.ts +2 -0
  25. package/dynamoDb/path/plainObject.js +40 -0
  26. package/dynamoDb/path/plainObject.js.map +1 -0
  27. package/dynamoDb/storage/date.d.ts +3 -0
  28. package/dynamoDb/storage/date.js +109 -0
  29. package/dynamoDb/storage/date.js.map +1 -0
  30. package/dynamoDb/storage/longText.d.ts +10 -0
  31. package/dynamoDb/storage/longText.js +108 -0
  32. package/dynamoDb/storage/longText.js.map +1 -0
  33. package/dynamoDb/storage/richText.d.ts +2 -0
  34. package/dynamoDb/storage/richText.js +113 -0
  35. package/dynamoDb/storage/richText.js.map +1 -0
  36. package/dynamoDb/transformValue/datetime.d.ts +5 -0
  37. package/dynamoDb/transformValue/datetime.js +52 -0
  38. package/dynamoDb/transformValue/datetime.js.map +1 -0
  39. package/index.d.ts +3 -0
  40. package/index.js +150 -0
  41. package/index.js.map +1 -0
  42. package/operations/entry/dataLoaders.d.ts +42 -0
  43. package/operations/entry/dataLoaders.js +321 -0
  44. package/operations/entry/dataLoaders.js.map +1 -0
  45. package/operations/entry/filtering/createExpressions.d.ts +26 -0
  46. package/operations/entry/filtering/createExpressions.js +217 -0
  47. package/operations/entry/filtering/createExpressions.js.map +1 -0
  48. package/operations/entry/filtering/createFields.d.ts +14 -0
  49. package/operations/entry/filtering/createFields.js +123 -0
  50. package/operations/entry/filtering/createFields.js.map +1 -0
  51. package/operations/entry/filtering/extractSort.d.ts +13 -0
  52. package/operations/entry/filtering/extractSort.js +55 -0
  53. package/operations/entry/filtering/extractSort.js.map +1 -0
  54. package/operations/entry/filtering/filter.d.ts +15 -0
  55. package/operations/entry/filtering/filter.js +178 -0
  56. package/operations/entry/filtering/filter.js.map +1 -0
  57. package/operations/entry/filtering/fullTextSearch.d.ts +14 -0
  58. package/operations/entry/filtering/fullTextSearch.js +60 -0
  59. package/operations/entry/filtering/fullTextSearch.js.map +1 -0
  60. package/operations/entry/filtering/getValue.d.ts +5 -0
  61. package/operations/entry/filtering/getValue.js +81 -0
  62. package/operations/entry/filtering/getValue.js.map +1 -0
  63. package/operations/entry/filtering/index.d.ts +2 -0
  64. package/operations/entry/filtering/index.js +21 -0
  65. package/operations/entry/filtering/index.js.map +1 -0
  66. package/operations/entry/filtering/mapPlugins.d.ts +8 -0
  67. package/operations/entry/filtering/mapPlugins.js +39 -0
  68. package/operations/entry/filtering/mapPlugins.js.map +1 -0
  69. package/operations/entry/filtering/plugins/defaultFilterCreate.d.ts +2 -0
  70. package/operations/entry/filtering/plugins/defaultFilterCreate.js +48 -0
  71. package/operations/entry/filtering/plugins/defaultFilterCreate.js.map +1 -0
  72. package/operations/entry/filtering/plugins/index.d.ts +1 -0
  73. package/operations/entry/filtering/plugins/index.js +18 -0
  74. package/operations/entry/filtering/plugins/index.js.map +1 -0
  75. package/operations/entry/filtering/plugins/objectFilterCreate.d.ts +2 -0
  76. package/operations/entry/filtering/plugins/objectFilterCreate.js +107 -0
  77. package/operations/entry/filtering/plugins/objectFilterCreate.js.map +1 -0
  78. package/operations/entry/filtering/plugins/refFilterCreate.d.ts +2 -0
  79. package/operations/entry/filtering/plugins/refFilterCreate.js +89 -0
  80. package/operations/entry/filtering/plugins/refFilterCreate.js.map +1 -0
  81. package/operations/entry/filtering/sort.d.ts +9 -0
  82. package/operations/entry/filtering/sort.js +80 -0
  83. package/operations/entry/filtering/sort.js.map +1 -0
  84. package/operations/entry/filtering/systemFields.d.ts +4 -0
  85. package/operations/entry/filtering/systemFields.js +72 -0
  86. package/operations/entry/filtering/systemFields.js.map +1 -0
  87. package/operations/entry/filtering/transform.d.ts +6 -0
  88. package/operations/entry/filtering/transform.js +19 -0
  89. package/operations/entry/filtering/transform.js.map +1 -0
  90. package/operations/entry/filtering/types.d.ts +40 -0
  91. package/operations/entry/filtering/types.js +5 -0
  92. package/operations/entry/filtering/types.js.map +1 -0
  93. package/operations/entry/filtering/values.d.ts +2 -0
  94. package/operations/entry/filtering/values.js +28 -0
  95. package/operations/entry/filtering/values.js.map +1 -0
  96. package/operations/entry/filtering/where.d.ts +5 -0
  97. package/operations/entry/filtering/where.js +38 -0
  98. package/operations/entry/filtering/where.js.map +1 -0
  99. package/operations/entry/index.d.ts +8 -0
  100. package/operations/entry/index.js +872 -0
  101. package/operations/entry/index.js.map +1 -0
  102. package/operations/entry/keys.d.ts +25 -0
  103. package/operations/entry/keys.js +73 -0
  104. package/operations/entry/keys.js.map +1 -0
  105. package/operations/entry/systemFields.d.ts +2 -0
  106. package/operations/entry/systemFields.js +74 -0
  107. package/operations/entry/systemFields.js.map +1 -0
  108. package/operations/group/index.d.ts +9 -0
  109. package/operations/group/index.js +192 -0
  110. package/operations/group/index.js.map +1 -0
  111. package/operations/model/index.d.ts +7 -0
  112. package/operations/model/index.js +162 -0
  113. package/operations/model/index.js.map +1 -0
  114. package/operations/settings/index.d.ts +7 -0
  115. package/operations/settings/index.js +135 -0
  116. package/operations/settings/index.js.map +1 -0
  117. package/operations/system/index.d.ts +7 -0
  118. package/operations/system/index.js +99 -0
  119. package/operations/system/index.js.map +1 -0
  120. package/package.json +60 -0
  121. package/plugins/CmsEntryFieldFilterPathPlugin.d.ts +22 -0
  122. package/plugins/CmsEntryFieldFilterPathPlugin.js +55 -0
  123. package/plugins/CmsEntryFieldFilterPathPlugin.js.map +1 -0
  124. package/plugins/CmsEntryFieldFilterPlugin.d.ts +43 -0
  125. package/plugins/CmsEntryFieldFilterPlugin.js +31 -0
  126. package/plugins/CmsEntryFieldFilterPlugin.js.map +1 -0
  127. package/plugins/index.d.ts +1 -0
  128. package/plugins/index.js +18 -0
  129. package/plugins/index.js.map +1 -0
  130. package/types.d.ts +53 -0
  131. package/types.js +16 -0
  132. 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,25 @@
1
+ # @webiny/api-headless-cms-ddb
2
+
3
+ [![](https://img.shields.io/npm/dw/@webiny/api-headless-cms-ddb.svg)](https://www.npmjs.com/package/@webiny/api-headless-cms-ddb)
4
+ [![](https://img.shields.io/npm/v/@webiny/api-headless-cms-ddb.svg)](https://www.npmjs.com/package/@webiny/api-headless-cms-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-headless-cms-ddb
12
+ ```
13
+
14
+ Or if you prefer yarn:
15
+
16
+ ```
17
+ yarn add @webiny/api-headless-cms-ddb
18
+ ```
19
+
20
+ ## Testing
21
+ To run the tests only for this package you must filter it with keywords.
22
+ ### Command
23
+ ````
24
+ yarn test packages/api-headless-cms --keyword=cms:ddb --keyword=cms:base
25
+ ````
@@ -0,0 +1,9 @@
1
+ import { Entity, Table } from "dynamodb-toolbox";
2
+ import { Attributes } from "../types";
3
+ interface Params {
4
+ table: Table;
5
+ entityName: string;
6
+ attributes: Attributes;
7
+ }
8
+ export declare const createEntryEntity: (params: Params) => Entity<any>;
9
+ export {};
@@ -0,0 +1,96 @@
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.createEntryEntity = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+
12
+ var _dynamodbToolbox = require("dynamodb-toolbox");
13
+
14
+ const createEntryEntity = params => {
15
+ const {
16
+ table,
17
+ entityName,
18
+ attributes
19
+ } = params;
20
+ return new _dynamodbToolbox.Entity({
21
+ name: entityName,
22
+ table,
23
+ attributes: (0, _objectSpread2.default)({
24
+ PK: {
25
+ type: "string",
26
+ partitionKey: true
27
+ },
28
+ SK: {
29
+ type: "string",
30
+ sortKey: true
31
+ },
32
+ GSI1_PK: {
33
+ type: "string"
34
+ },
35
+ GSI1_SK: {
36
+ type: "string"
37
+ },
38
+ TYPE: {
39
+ type: "string"
40
+ },
41
+ __type: {
42
+ type: "string"
43
+ },
44
+ webinyVersion: {
45
+ type: "string"
46
+ },
47
+ tenant: {
48
+ type: "string"
49
+ },
50
+ entryId: {
51
+ type: "string"
52
+ },
53
+ id: {
54
+ type: "string"
55
+ },
56
+ createdBy: {
57
+ type: "map"
58
+ },
59
+ ownedBy: {
60
+ type: "map"
61
+ },
62
+ createdOn: {
63
+ type: "string"
64
+ },
65
+ savedOn: {
66
+ type: "string"
67
+ },
68
+ modelId: {
69
+ type: "string"
70
+ },
71
+ locale: {
72
+ type: "string"
73
+ },
74
+ publishedOn: {
75
+ type: "string"
76
+ },
77
+ version: {
78
+ type: "number"
79
+ },
80
+ locked: {
81
+ type: "boolean"
82
+ },
83
+ status: {
84
+ type: "string"
85
+ },
86
+ values: {
87
+ type: "map"
88
+ },
89
+ meta: {
90
+ type: "map"
91
+ }
92
+ }, attributes || {})
93
+ });
94
+ };
95
+
96
+ exports.createEntryEntity = createEntryEntity;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEntryEntity","params","table","entityName","attributes","Entity","name","PK","type","partitionKey","SK","sortKey","GSI1_PK","GSI1_SK","TYPE","__type","webinyVersion","tenant","entryId","id","createdBy","ownedBy","createdOn","savedOn","modelId","locale","publishedOn","version","locked","status","values","meta"],"sources":["entry.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}\nexport const createEntryEntity = (params: Params): Entity<any> => {\n const { table, entityName, attributes } = params;\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n type: \"string\",\n partitionKey: true\n },\n SK: {\n type: \"string\",\n sortKey: true\n },\n GSI1_PK: {\n type: \"string\"\n },\n GSI1_SK: {\n type: \"string\"\n },\n TYPE: {\n type: \"string\"\n },\n __type: {\n type: \"string\"\n },\n webinyVersion: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n },\n entryId: {\n type: \"string\"\n },\n id: {\n type: \"string\"\n },\n createdBy: {\n type: \"map\"\n },\n ownedBy: {\n type: \"map\"\n },\n createdOn: {\n type: \"string\"\n },\n savedOn: {\n type: \"string\"\n },\n modelId: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n publishedOn: {\n type: \"string\"\n },\n version: {\n type: \"number\"\n },\n locked: {\n type: \"boolean\"\n },\n status: {\n type: \"string\"\n },\n values: {\n type: \"map\"\n },\n meta: {\n type: \"map\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AAQO,MAAMA,iBAAiB,GAAIC,MAAD,IAAiC;EAC9D,MAAM;IAAEC,KAAF;IAASC,UAAT;IAAqBC;EAArB,IAAoCH,MAA1C;EACA,OAAO,IAAII,uBAAJ,CAAW;IACdC,IAAI,EAAEH,UADQ;IAEdD,KAFc;IAGdE,UAAU;MACNG,EAAE,EAAE;QACAC,IAAI,EAAE,QADN;QAEAC,YAAY,EAAE;MAFd,CADE;MAKNC,EAAE,EAAE;QACAF,IAAI,EAAE,QADN;QAEAG,OAAO,EAAE;MAFT,CALE;MASNC,OAAO,EAAE;QACLJ,IAAI,EAAE;MADD,CATH;MAYNK,OAAO,EAAE;QACLL,IAAI,EAAE;MADD,CAZH;MAeNM,IAAI,EAAE;QACFN,IAAI,EAAE;MADJ,CAfA;MAkBNO,MAAM,EAAE;QACJP,IAAI,EAAE;MADF,CAlBF;MAqBNQ,aAAa,EAAE;QACXR,IAAI,EAAE;MADK,CArBT;MAwBNS,MAAM,EAAE;QACJT,IAAI,EAAE;MADF,CAxBF;MA2BNU,OAAO,EAAE;QACLV,IAAI,EAAE;MADD,CA3BH;MA8BNW,EAAE,EAAE;QACAX,IAAI,EAAE;MADN,CA9BE;MAiCNY,SAAS,EAAE;QACPZ,IAAI,EAAE;MADC,CAjCL;MAoCNa,OAAO,EAAE;QACLb,IAAI,EAAE;MADD,CApCH;MAuCNc,SAAS,EAAE;QACPd,IAAI,EAAE;MADC,CAvCL;MA0CNe,OAAO,EAAE;QACLf,IAAI,EAAE;MADD,CA1CH;MA6CNgB,OAAO,EAAE;QACLhB,IAAI,EAAE;MADD,CA7CH;MAgDNiB,MAAM,EAAE;QACJjB,IAAI,EAAE;MADF,CAhDF;MAmDNkB,WAAW,EAAE;QACTlB,IAAI,EAAE;MADG,CAnDP;MAsDNmB,OAAO,EAAE;QACLnB,IAAI,EAAE;MADD,CAtDH;MAyDNoB,MAAM,EAAE;QACJpB,IAAI,EAAE;MADF,CAzDF;MA4DNqB,MAAM,EAAE;QACJrB,IAAI,EAAE;MADF,CA5DF;MA+DNsB,MAAM,EAAE;QACJtB,IAAI,EAAE;MADF,CA/DF;MAkENuB,IAAI,EAAE;QACFvB,IAAI,EAAE;MADJ;IAlEA,GAqEFJ,UAAU,IAAI,EArEZ;EAHI,CAAX,CAAP;AA2EH,CA7EM"}
@@ -0,0 +1,9 @@
1
+ import { Entity, Table } from "dynamodb-toolbox";
2
+ import { Attributes } from "../types";
3
+ interface Params {
4
+ table: Table;
5
+ entityName: string;
6
+ attributes: Attributes;
7
+ }
8
+ export declare const createGroupEntity: (params: Params) => Entity<any>;
9
+ export {};
@@ -0,0 +1,70 @@
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.createGroupEntity = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+
12
+ var _dynamodbToolbox = require("dynamodb-toolbox");
13
+
14
+ const createGroupEntity = params => {
15
+ const {
16
+ table,
17
+ attributes,
18
+ entityName
19
+ } = params;
20
+ return new _dynamodbToolbox.Entity({
21
+ name: entityName,
22
+ table,
23
+ attributes: (0, _objectSpread2.default)({
24
+ PK: {
25
+ partitionKey: true
26
+ },
27
+ SK: {
28
+ sortKey: true
29
+ },
30
+ TYPE: {
31
+ type: "string"
32
+ },
33
+ webinyVersion: {
34
+ type: "string"
35
+ },
36
+ id: {
37
+ type: "string"
38
+ },
39
+ name: {
40
+ type: "string"
41
+ },
42
+ slug: {
43
+ type: "string"
44
+ },
45
+ locale: {
46
+ type: "string"
47
+ },
48
+ description: {
49
+ type: "string"
50
+ },
51
+ icon: {
52
+ type: "string"
53
+ },
54
+ createdBy: {
55
+ type: "map"
56
+ },
57
+ createdOn: {
58
+ type: "string"
59
+ },
60
+ savedOn: {
61
+ type: "string"
62
+ },
63
+ tenant: {
64
+ type: "string"
65
+ }
66
+ }, attributes || {})
67
+ });
68
+ };
69
+
70
+ exports.createGroupEntity = createGroupEntity;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createGroupEntity","params","table","attributes","entityName","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","webinyVersion","id","slug","locale","description","icon","createdBy","createdOn","savedOn","tenant"],"sources":["group.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}\nexport const createGroupEntity = (params: Params): Entity<any> => {\n const { table, attributes, entityName } = 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 webinyVersion: {\n type: \"string\"\n },\n id: {\n type: \"string\"\n },\n name: {\n type: \"string\"\n },\n slug: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n icon: {\n type: \"string\"\n },\n\n createdBy: {\n type: \"map\"\n },\n createdOn: {\n type: \"string\"\n },\n savedOn: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AAQO,MAAMA,iBAAiB,GAAIC,MAAD,IAAiC;EAC9D,MAAM;IAAEC,KAAF;IAASC,UAAT;IAAqBC;EAArB,IAAoCH,MAA1C;EACA,OAAO,IAAII,uBAAJ,CAAW;IACdC,IAAI,EAAEF,UADQ;IAEdF,KAFc;IAGdC,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,aAAa,EAAE;QACXD,IAAI,EAAE;MADK,CAVT;MAaNE,EAAE,EAAE;QACAF,IAAI,EAAE;MADN,CAbE;MAgBNN,IAAI,EAAE;QACFM,IAAI,EAAE;MADJ,CAhBA;MAmBNG,IAAI,EAAE;QACFH,IAAI,EAAE;MADJ,CAnBA;MAsBNI,MAAM,EAAE;QACJJ,IAAI,EAAE;MADF,CAtBF;MAyBNK,WAAW,EAAE;QACTL,IAAI,EAAE;MADG,CAzBP;MA4BNM,IAAI,EAAE;QACFN,IAAI,EAAE;MADJ,CA5BA;MAgCNO,SAAS,EAAE;QACPP,IAAI,EAAE;MADC,CAhCL;MAmCNQ,SAAS,EAAE;QACPR,IAAI,EAAE;MADC,CAnCL;MAsCNS,OAAO,EAAE;QACLT,IAAI,EAAE;MADD,CAtCH;MAyCNU,MAAM,EAAE;QACJV,IAAI,EAAE;MADF;IAzCF,GA4CFT,UAAU,IAAI,EA5CZ;EAHI,CAAX,CAAP;AAkDH,CApDM"}
@@ -0,0 +1,9 @@
1
+ import { Entity, Table } from "dynamodb-toolbox";
2
+ import { Attributes } from "../types";
3
+ interface Params {
4
+ table: Table;
5
+ entityName: string;
6
+ attributes: Attributes;
7
+ }
8
+ export declare const createModelEntity: (params: Params) => Entity<any>;
9
+ export {};
@@ -0,0 +1,97 @@
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.createModelEntity = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+
12
+ var _dynamodbToolbox = require("dynamodb-toolbox");
13
+
14
+ const createModelEntity = params => {
15
+ const {
16
+ table,
17
+ attributes,
18
+ entityName
19
+ } = params;
20
+ return new _dynamodbToolbox.Entity({
21
+ name: entityName,
22
+ table,
23
+ attributes: (0, _objectSpread2.default)({
24
+ PK: {
25
+ partitionKey: true
26
+ },
27
+ SK: {
28
+ sortKey: true
29
+ },
30
+ TYPE: {
31
+ type: "string",
32
+ required: true
33
+ },
34
+ webinyVersion: {
35
+ type: "string",
36
+ required: true
37
+ },
38
+ name: {
39
+ type: "string",
40
+ required: true
41
+ },
42
+ modelId: {
43
+ type: "string",
44
+ required: true
45
+ },
46
+ locale: {
47
+ type: "string",
48
+ required: true
49
+ },
50
+ group: {
51
+ type: "map",
52
+ required: true
53
+ },
54
+ description: {
55
+ type: "string"
56
+ },
57
+ createdOn: {
58
+ type: "string",
59
+ required: true
60
+ },
61
+ savedOn: {
62
+ type: "string",
63
+ required: true
64
+ },
65
+ createdBy: {
66
+ type: "map",
67
+ required: true
68
+ },
69
+ fields: {
70
+ type: "list",
71
+ required: true
72
+ },
73
+ layout: {
74
+ type: "list",
75
+ required: true
76
+ },
77
+ tags: {
78
+ type: "list",
79
+ required: false,
80
+ default: []
81
+ },
82
+ lockedFields: {
83
+ type: "list",
84
+ required: true
85
+ },
86
+ titleFieldId: {
87
+ type: "string"
88
+ },
89
+ tenant: {
90
+ type: "string",
91
+ required: true
92
+ }
93
+ }, attributes || {})
94
+ });
95
+ };
96
+
97
+ exports.createModelEntity = createModelEntity;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createModelEntity","params","table","attributes","entityName","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","required","webinyVersion","modelId","locale","group","description","createdOn","savedOn","createdBy","fields","layout","tags","default","lockedFields","titleFieldId","tenant"],"sources":["model.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 createModelEntity = (params: Params): Entity<any> => {\n const { table, attributes, entityName } = 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 required: true\n },\n webinyVersion: {\n type: \"string\",\n required: true\n },\n name: {\n type: \"string\",\n required: true\n },\n modelId: {\n type: \"string\",\n required: true\n },\n locale: {\n type: \"string\",\n required: true\n },\n group: {\n type: \"map\",\n required: true\n },\n description: {\n type: \"string\"\n },\n createdOn: {\n type: \"string\",\n required: true\n },\n savedOn: {\n type: \"string\",\n required: true\n },\n createdBy: {\n type: \"map\",\n required: true\n },\n fields: {\n type: \"list\",\n required: true\n },\n layout: {\n type: \"list\",\n required: true\n },\n tags: {\n type: \"list\",\n required: false,\n default: []\n },\n lockedFields: {\n type: \"list\",\n required: true\n },\n titleFieldId: {\n type: \"string\"\n },\n tenant: {\n type: \"string\",\n required: true\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AASO,MAAMA,iBAAiB,GAAIC,MAAD,IAAiC;EAC9D,MAAM;IAAEC,KAAF;IAASC,UAAT;IAAqBC;EAArB,IAAoCH,MAA1C;EACA,OAAO,IAAII,uBAAJ,CAAW;IACdC,IAAI,EAAEF,UADQ;IAEdF,KAFc;IAGdC,UAAU;MACNI,EAAE,EAAE;QACAC,YAAY,EAAE;MADd,CADE;MAINC,EAAE,EAAE;QACAC,OAAO,EAAE;MADT,CAJE;MAONC,IAAI,EAAE;QACFC,IAAI,EAAE,QADJ;QAEFC,QAAQ,EAAE;MAFR,CAPA;MAWNC,aAAa,EAAE;QACXF,IAAI,EAAE,QADK;QAEXC,QAAQ,EAAE;MAFC,CAXT;MAeNP,IAAI,EAAE;QACFM,IAAI,EAAE,QADJ;QAEFC,QAAQ,EAAE;MAFR,CAfA;MAmBNE,OAAO,EAAE;QACLH,IAAI,EAAE,QADD;QAELC,QAAQ,EAAE;MAFL,CAnBH;MAuBNG,MAAM,EAAE;QACJJ,IAAI,EAAE,QADF;QAEJC,QAAQ,EAAE;MAFN,CAvBF;MA2BNI,KAAK,EAAE;QACHL,IAAI,EAAE,KADH;QAEHC,QAAQ,EAAE;MAFP,CA3BD;MA+BNK,WAAW,EAAE;QACTN,IAAI,EAAE;MADG,CA/BP;MAkCNO,SAAS,EAAE;QACPP,IAAI,EAAE,QADC;QAEPC,QAAQ,EAAE;MAFH,CAlCL;MAsCNO,OAAO,EAAE;QACLR,IAAI,EAAE,QADD;QAELC,QAAQ,EAAE;MAFL,CAtCH;MA0CNQ,SAAS,EAAE;QACPT,IAAI,EAAE,KADC;QAEPC,QAAQ,EAAE;MAFH,CA1CL;MA8CNS,MAAM,EAAE;QACJV,IAAI,EAAE,MADF;QAEJC,QAAQ,EAAE;MAFN,CA9CF;MAkDNU,MAAM,EAAE;QACJX,IAAI,EAAE,MADF;QAEJC,QAAQ,EAAE;MAFN,CAlDF;MAsDNW,IAAI,EAAE;QACFZ,IAAI,EAAE,MADJ;QAEFC,QAAQ,EAAE,KAFR;QAGFY,OAAO,EAAE;MAHP,CAtDA;MA2DNC,YAAY,EAAE;QACVd,IAAI,EAAE,MADI;QAEVC,QAAQ,EAAE;MAFA,CA3DR;MA+DNc,YAAY,EAAE;QACVf,IAAI,EAAE;MADI,CA/DR;MAkENgB,MAAM,EAAE;QACJhB,IAAI,EAAE,QADF;QAEJC,QAAQ,EAAE;MAFN;IAlEF,GAsEFV,UAAU,IAAI,EAtEZ;EAHI,CAAX,CAAP;AA4EH,CA9EM"}
@@ -0,0 +1,9 @@
1
+ import { Entity, Table } from "dynamodb-toolbox";
2
+ import { Attributes } from "../types";
3
+ interface Params {
4
+ table: Table;
5
+ entityName: string;
6
+ attributes: Attributes;
7
+ }
8
+ export declare const createSettingsEntity: (params: Params) => Entity<any>;
9
+ export {};
@@ -0,0 +1,58 @@
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.createSettingsEntity = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+
12
+ var _dynamodbToolbox = require("dynamodb-toolbox");
13
+
14
+ const createSettingsEntity = params => {
15
+ const {
16
+ entityName,
17
+ table,
18
+ attributes
19
+ } = params;
20
+ return new _dynamodbToolbox.Entity({
21
+ name: entityName,
22
+ table,
23
+ attributes: (0, _objectSpread2.default)({
24
+ PK: {
25
+ partitionKey: true
26
+ },
27
+ SK: {
28
+ sortKey: true
29
+ },
30
+ TYPE: {
31
+ type: "string"
32
+ },
33
+ key: {
34
+ type: "string"
35
+ },
36
+ uploadMinFileSize: {
37
+ type: "number"
38
+ },
39
+ uploadMaxFileSize: {
40
+ type: "number"
41
+ },
42
+ srcPrefix: {
43
+ type: "string"
44
+ },
45
+ contentModelLastChange: {
46
+ type: "string"
47
+ },
48
+ tenant: {
49
+ type: "string"
50
+ },
51
+ locale: {
52
+ type: "string"
53
+ }
54
+ }, attributes || {})
55
+ });
56
+ };
57
+
58
+ exports.createSettingsEntity = createSettingsEntity;
@@ -0,0 +1 @@
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,MAAD,IAAiC;EACjE,MAAM;IAAEC,UAAF;IAAcC,KAAd;IAAqBC;EAArB,IAAoCH,MAA1C;EACA,OAAO,IAAII,uBAAJ,CAAW;IACdC,IAAI,EAAEJ,UADQ;IAEdC,KAFc;IAGdC,UAAU;MACNG,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,CAnBL;MAsBNK,sBAAsB,EAAE;QACpBL,IAAI,EAAE;MADc,CAtBlB;MAyBNM,MAAM,EAAE;QACJN,IAAI,EAAE;MADF,CAzBF;MA4BNO,MAAM,EAAE;QACJP,IAAI,EAAE;MADF;IA5BF,GA+BFR,UAAU,IAAI,EA/BZ;EAHI,CAAX,CAAP;AAqCH,CAvCM"}
@@ -0,0 +1,9 @@
1
+ import { Entity, Table } from "dynamodb-toolbox";
2
+ import { Attributes } from "../types";
3
+ interface Params {
4
+ table: Table;
5
+ entityName: string;
6
+ attributes: Attributes;
7
+ }
8
+ export declare const createSystemEntity: (params: Params) => Entity<any>;
9
+ export {};
@@ -0,0 +1,46 @@
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.createSystemEntity = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
+
12
+ var _dynamodbToolbox = require("dynamodb-toolbox");
13
+
14
+ const createSystemEntity = params => {
15
+ const {
16
+ entityName,
17
+ attributes,
18
+ table
19
+ } = params;
20
+ return new _dynamodbToolbox.Entity({
21
+ name: entityName,
22
+ table,
23
+ attributes: (0, _objectSpread2.default)({
24
+ PK: {
25
+ partitionKey: true
26
+ },
27
+ SK: {
28
+ sortKey: true
29
+ },
30
+ version: {
31
+ type: "string"
32
+ },
33
+ locale: {
34
+ type: "string"
35
+ },
36
+ tenant: {
37
+ type: "string"
38
+ },
39
+ readAPIKey: {
40
+ type: "string"
41
+ }
42
+ }, attributes || {})
43
+ });
44
+ };
45
+
46
+ exports.createSystemEntity = createSystemEntity;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createSystemEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","version","type","locale","tenant","readAPIKey"],"sources":["system.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 createSystemEntity = (params: Params): Entity<any> => {\n const { entityName, attributes, table } = 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 version: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n },\n readAPIKey: {\n type: \"string\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AASO,MAAMA,kBAAkB,GAAIC,MAAD,IAAiC;EAC/D,MAAM;IAAEC,UAAF;IAAcC,UAAd;IAA0BC;EAA1B,IAAoCH,MAA1C;EACA,OAAO,IAAII,uBAAJ,CAAW;IACdC,IAAI,EAAEJ,UADQ;IAEdE,KAFc;IAGdD,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,CAVF;MAaNE,MAAM,EAAE;QACJF,IAAI,EAAE;MADF,CAbF;MAgBNG,UAAU,EAAE;QACRH,IAAI,EAAE;MADE;IAhBN,GAmBFT,UAAU,IAAI,EAnBZ;EAHI,CAAX,CAAP;AAyBH,CA3BM"}
@@ -0,0 +1,9 @@
1
+ import { TableModifier } from "../types";
2
+ import { DocumentClient } from "aws-sdk/clients/dynamodb";
3
+ import { Table } from "dynamodb-toolbox";
4
+ interface Params {
5
+ table?: TableModifier;
6
+ documentClient: DocumentClient;
7
+ }
8
+ export declare const createTable: ({ table, documentClient }: Params) => Table;
9
+ export {};
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createTable = void 0;
7
+
8
+ var _dynamodbToolbox = require("dynamodb-toolbox");
9
+
10
+ const createTable = ({
11
+ table,
12
+ documentClient
13
+ }) => {
14
+ const tableConfig = {
15
+ name: process.env.DB_TABLE_HEADLESS_CMS || process.env.DB_TABLE,
16
+ partitionKey: "PK",
17
+ sortKey: "SK",
18
+ DocumentClient: documentClient,
19
+ indexes: {
20
+ GSI1: {
21
+ partitionKey: "GSI1_PK",
22
+ sortKey: "GSI1_SK"
23
+ }
24
+ }
25
+ };
26
+ const config = typeof table === "function" ? table(tableConfig) : tableConfig;
27
+ return new _dynamodbToolbox.Table(config);
28
+ };
29
+
30
+ exports.createTable = createTable;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createTable","table","documentClient","tableConfig","name","process","env","DB_TABLE_HEADLESS_CMS","DB_TABLE","partitionKey","sortKey","DocumentClient","indexes","GSI1","config","Table"],"sources":["table.ts"],"sourcesContent":["import { TableModifier } from \"~/types\";\nimport { DocumentClient } from \"aws-sdk/clients/dynamodb\";\nimport { Table } from \"dynamodb-toolbox\";\nimport { TableConstructor } from \"dynamodb-toolbox/dist/classes/Table\";\n\ninterface Params {\n table?: TableModifier;\n documentClient: DocumentClient;\n}\nexport const createTable = ({ table, documentClient }: Params): Table => {\n const tableConfig: TableConstructor = {\n name: process.env.DB_TABLE_HEADLESS_CMS || (process.env.DB_TABLE as string),\n partitionKey: \"PK\",\n sortKey: \"SK\",\n DocumentClient: documentClient,\n indexes: {\n GSI1: {\n partitionKey: \"GSI1_PK\",\n sortKey: \"GSI1_SK\"\n }\n }\n };\n\n const config = typeof table === \"function\" ? table(tableConfig) : tableConfig;\n\n return new Table(config);\n};\n"],"mappings":";;;;;;;AAEA;;AAOO,MAAMA,WAAW,GAAG,CAAC;EAAEC,KAAF;EAASC;AAAT,CAAD,KAA8C;EACrE,MAAMC,WAA6B,GAAG;IAClCC,IAAI,EAAEC,OAAO,CAACC,GAAR,CAAYC,qBAAZ,IAAsCF,OAAO,CAACC,GAAR,CAAYE,QADtB;IAElCC,YAAY,EAAE,IAFoB;IAGlCC,OAAO,EAAE,IAHyB;IAIlCC,cAAc,EAAET,cAJkB;IAKlCU,OAAO,EAAE;MACLC,IAAI,EAAE;QACFJ,YAAY,EAAE,SADZ;QAEFC,OAAO,EAAE;MAFP;IADD;EALyB,CAAtC;EAaA,MAAMI,MAAM,GAAG,OAAOb,KAAP,KAAiB,UAAjB,GAA8BA,KAAK,CAACE,WAAD,CAAnC,GAAmDA,WAAlE;EAEA,OAAO,IAAIY,sBAAJ,CAAUD,MAAV,CAAP;AACH,CAjBM"}
@@ -0,0 +1,2 @@
1
+ declare const _default: () => (import("@webiny/api-headless-cms").StorageTransformPlugin<any, any, import("@webiny/api-headless-cms/types").CmsModelField> | import("..").CmsEntryFieldFilterPathPlugin | import("../types").CmsFieldFilterValueTransformPlugin)[];
2
+ export default _default;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _richText = require("./storage/richText");
9
+
10
+ var _longText = require("./storage/longText");
11
+
12
+ var _date = require("./storage/date");
13
+
14
+ var _plainObject = require("./path/plainObject");
15
+
16
+ var _datetime = require("./transformValue/datetime");
17
+
18
+ var _default = () => [(0, _richText.createRichTextStorageTransformPlugin)(), (0, _longText.createLongTextStorageTransformPlugin)(), (0, _date.createDateStorageTransformPlugin)(), (0, _plainObject.createPlainObjectPathPlugin)(), (0, _datetime.createDatetimeTransformValuePlugin)()];
19
+
20
+ exports.default = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createRichTextStorageTransformPlugin","createLongTextStorageTransformPlugin","createDateStorageTransformPlugin","createPlainObjectPathPlugin","createDatetimeTransformValuePlugin"],"sources":["index.ts"],"sourcesContent":["import { createRichTextStorageTransformPlugin } from \"./storage/richText\";\nimport { createLongTextStorageTransformPlugin } from \"./storage/longText\";\nimport { createDateStorageTransformPlugin } from \"./storage/date\";\nimport { createPlainObjectPathPlugin } from \"./path/plainObject\";\nimport { createDatetimeTransformValuePlugin } from \"./transformValue/datetime\";\n\nexport default () => [\n createRichTextStorageTransformPlugin(),\n createLongTextStorageTransformPlugin(),\n createDateStorageTransformPlugin(),\n createPlainObjectPathPlugin(),\n createDatetimeTransformValuePlugin()\n];\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;eAEe,MAAM,CACjB,IAAAA,8CAAA,GADiB,EAEjB,IAAAC,8CAAA,GAFiB,EAGjB,IAAAC,sCAAA,GAHiB,EAIjB,IAAAC,wCAAA,GAJiB,EAKjB,IAAAC,4CAAA,GALiB,C"}
@@ -0,0 +1,2 @@
1
+ import { CmsEntryFieldFilterPathPlugin } from "../../plugins/CmsEntryFieldFilterPathPlugin";
2
+ export declare const createPlainObjectPathPlugin: () => CmsEntryFieldFilterPathPlugin;
@@ -0,0 +1,40 @@
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.createPlainObjectPathPlugin = void 0;
9
+
10
+ var _error = _interopRequireDefault(require("@webiny/error"));
11
+
12
+ var _CmsEntryFieldFilterPathPlugin = require("../../plugins/CmsEntryFieldFilterPathPlugin");
13
+
14
+ /**
15
+ * File is @internal
16
+ */
17
+ const createPath = ({
18
+ field
19
+ }) => {
20
+ const {
21
+ path
22
+ } = field.settings || {};
23
+
24
+ if (!path) {
25
+ throw new _error.default("Missing path settings value.", "FIELD_SETTINGS_ERROR", {
26
+ field
27
+ });
28
+ }
29
+
30
+ return path;
31
+ };
32
+
33
+ const createPlainObjectPathPlugin = () => {
34
+ return new _CmsEntryFieldFilterPathPlugin.CmsEntryFieldFilterPathPlugin({
35
+ fieldType: "plainObject",
36
+ path: createPath
37
+ });
38
+ };
39
+
40
+ exports.createPlainObjectPathPlugin = createPlainObjectPathPlugin;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createPath","field","path","settings","WebinyError","createPlainObjectPathPlugin","CmsEntryFieldFilterPathPlugin","fieldType"],"sources":["plainObject.ts"],"sourcesContent":["/**\n * File is @internal\n */\nimport WebinyError from \"@webiny/error\";\nimport {\n CmsEntryFieldFilterPathPlugin,\n CreatePathCallable\n} from \"~/plugins/CmsEntryFieldFilterPathPlugin\";\n\nconst createPath: CreatePathCallable = ({ field }) => {\n const { path } = field.settings || {};\n if (!path) {\n throw new WebinyError(\"Missing path settings value.\", \"FIELD_SETTINGS_ERROR\", {\n field\n });\n }\n return path;\n};\n\nexport const createPlainObjectPathPlugin = (): CmsEntryFieldFilterPathPlugin => {\n return new CmsEntryFieldFilterPathPlugin({\n fieldType: \"plainObject\",\n path: createPath\n });\n};\n"],"mappings":";;;;;;;;;AAGA;;AACA;;AAJA;AACA;AACA;AAOA,MAAMA,UAA8B,GAAG,CAAC;EAAEC;AAAF,CAAD,KAAe;EAClD,MAAM;IAAEC;EAAF,IAAWD,KAAK,CAACE,QAAN,IAAkB,EAAnC;;EACA,IAAI,CAACD,IAAL,EAAW;IACP,MAAM,IAAIE,cAAJ,CAAgB,8BAAhB,EAAgD,sBAAhD,EAAwE;MAC1EH;IAD0E,CAAxE,CAAN;EAGH;;EACD,OAAOC,IAAP;AACH,CARD;;AAUO,MAAMG,2BAA2B,GAAG,MAAqC;EAC5E,OAAO,IAAIC,4DAAJ,CAAkC;IACrCC,SAAS,EAAE,aAD0B;IAErCL,IAAI,EAAEF;EAF+B,CAAlC,CAAP;AAIH,CALM"}
@@ -0,0 +1,3 @@
1
+ import { StorageTransformPlugin } from "@webiny/api-headless-cms";
2
+ import { CmsModelField } from "@webiny/api-headless-cms/types";
3
+ export declare const createDateStorageTransformPlugin: () => StorageTransformPlugin<any, any, CmsModelField>;