@webiny/api-headless-cms-ddb 0.0.0-unstable.e3f4727c56 → 0.0.0-unstable.e53eceafb5

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 (161) hide show
  1. package/definitions/entry.d.ts +4 -3
  2. package/definitions/entry.js +108 -16
  3. package/definitions/entry.js.map +1 -1
  4. package/definitions/group.d.ts +4 -3
  5. package/definitions/group.js +8 -12
  6. package/definitions/group.js.map +1 -1
  7. package/definitions/model.d.ts +4 -3
  8. package/definitions/model.js +25 -12
  9. package/definitions/model.js.map +1 -1
  10. package/definitions/system.d.ts +4 -3
  11. package/definitions/system.js +8 -12
  12. package/definitions/system.js.map +1 -1
  13. package/definitions/table.d.ts +5 -5
  14. package/definitions/table.js +7 -6
  15. package/definitions/table.js.map +1 -1
  16. package/dynamoDb/index.js +4 -9
  17. package/dynamoDb/index.js.map +1 -1
  18. package/dynamoDb/path/locationFolderId.d.ts +2 -0
  19. package/dynamoDb/path/locationFolderId.js +43 -0
  20. package/dynamoDb/path/locationFolderId.js.map +1 -0
  21. package/dynamoDb/path/plainObject.js +3 -8
  22. package/dynamoDb/path/plainObject.js.map +1 -1
  23. package/dynamoDb/storage/longText.js +4 -18
  24. package/dynamoDb/storage/longText.js.map +1 -1
  25. package/dynamoDb/storage/richText.js +23 -75
  26. package/dynamoDb/storage/richText.js.map +1 -1
  27. package/dynamoDb/transformValue/datetime.d.ts +1 -1
  28. package/dynamoDb/transformValue/datetime.js +3 -8
  29. package/dynamoDb/transformValue/datetime.js.map +1 -1
  30. package/index.d.ts +1 -1
  31. package/index.js +15 -44
  32. package/index.js.map +1 -1
  33. package/operations/entry/dataLoader/DataLoaderCache.d.ts +17 -0
  34. package/operations/entry/dataLoader/DataLoaderCache.js +41 -0
  35. package/operations/entry/dataLoader/DataLoaderCache.js.map +1 -0
  36. package/operations/entry/dataLoader/constants.d.ts +1 -0
  37. package/operations/entry/dataLoader/constants.js +10 -0
  38. package/operations/entry/dataLoader/constants.js.map +1 -0
  39. package/operations/entry/dataLoader/createBatchScheduleFn.d.ts +8 -0
  40. package/operations/entry/dataLoader/createBatchScheduleFn.js +25 -0
  41. package/operations/entry/dataLoader/createBatchScheduleFn.js.map +1 -0
  42. package/operations/entry/dataLoader/getAllEntryRevisions.d.ts +4 -0
  43. package/operations/entry/dataLoader/getAllEntryRevisions.js +45 -0
  44. package/operations/entry/dataLoader/getAllEntryRevisions.js.map +1 -0
  45. package/operations/entry/dataLoader/getLatestRevisionByEntryId.d.ts +4 -0
  46. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +56 -0
  47. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js.map +1 -0
  48. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.d.ts +4 -0
  49. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +56 -0
  50. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js.map +1 -0
  51. package/operations/entry/dataLoader/getRevisionById.d.ts +4 -0
  52. package/operations/entry/dataLoader/getRevisionById.js +62 -0
  53. package/operations/entry/dataLoader/getRevisionById.js.map +1 -0
  54. package/operations/entry/dataLoader/index.d.ts +8 -0
  55. package/operations/entry/dataLoader/index.js +40 -0
  56. package/operations/entry/dataLoader/index.js.map +1 -0
  57. package/operations/entry/dataLoader/types.d.ts +6 -0
  58. package/operations/entry/dataLoader/types.js +7 -0
  59. package/operations/entry/dataLoader/types.js.map +1 -0
  60. package/operations/entry/dataLoaders.d.ts +12 -27
  61. package/operations/entry/dataLoaders.js +55 -260
  62. package/operations/entry/dataLoaders.js.map +1 -1
  63. package/operations/entry/filtering/createExpressions.d.ts +4 -4
  64. package/operations/entry/filtering/createExpressions.js +4 -39
  65. package/operations/entry/filtering/createExpressions.js.map +1 -1
  66. package/operations/entry/filtering/createFields.d.ts +6 -4
  67. package/operations/entry/filtering/createFields.js +76 -91
  68. package/operations/entry/filtering/createFields.js.map +1 -1
  69. package/operations/entry/filtering/extractSort.d.ts +3 -3
  70. package/operations/entry/filtering/extractSort.js +2 -10
  71. package/operations/entry/filtering/extractSort.js.map +1 -1
  72. package/operations/entry/filtering/filter.d.ts +3 -3
  73. package/operations/entry/filtering/filter.js +24 -44
  74. package/operations/entry/filtering/filter.js.map +1 -1
  75. package/operations/entry/filtering/fullTextSearch.d.ts +3 -3
  76. package/operations/entry/filtering/fullTextSearch.js +2 -12
  77. package/operations/entry/filtering/fullTextSearch.js.map +1 -1
  78. package/operations/entry/filtering/getValue.js +5 -20
  79. package/operations/entry/filtering/getValue.js.map +1 -1
  80. package/operations/entry/filtering/index.js +2 -2
  81. package/operations/entry/filtering/index.js.map +1 -1
  82. package/operations/entry/filtering/mapPlugins.d.ts +2 -2
  83. package/operations/entry/filtering/mapPlugins.js +2 -8
  84. package/operations/entry/filtering/mapPlugins.js.map +1 -1
  85. package/operations/entry/filtering/plugins/defaultFilterCreate.d.ts +1 -1
  86. package/operations/entry/filtering/plugins/defaultFilterCreate.js +5 -8
  87. package/operations/entry/filtering/plugins/defaultFilterCreate.js.map +1 -1
  88. package/operations/entry/filtering/plugins/index.d.ts +1 -1
  89. package/operations/entry/filtering/plugins/index.js +4 -6
  90. package/operations/entry/filtering/plugins/index.js.map +1 -1
  91. package/operations/entry/filtering/plugins/objectFilterCreate.d.ts +1 -1
  92. package/operations/entry/filtering/plugins/objectFilterCreate.js +5 -22
  93. package/operations/entry/filtering/plugins/objectFilterCreate.js.map +1 -1
  94. package/operations/entry/filtering/plugins/refFilterCreate.d.ts +2 -1
  95. package/operations/entry/filtering/plugins/refFilterCreate.js +11 -20
  96. package/operations/entry/filtering/plugins/refFilterCreate.js.map +1 -1
  97. package/operations/entry/filtering/plugins/searchableJsonFilterCreate.d.ts +2 -0
  98. package/operations/entry/filtering/plugins/searchableJsonFilterCreate.js +65 -0
  99. package/operations/entry/filtering/plugins/searchableJsonFilterCreate.js.map +1 -0
  100. package/operations/entry/filtering/sort.d.ts +3 -3
  101. package/operations/entry/filtering/sort.js +4 -17
  102. package/operations/entry/filtering/sort.js.map +1 -1
  103. package/operations/entry/filtering/systemFields.d.ts +2 -2
  104. package/operations/entry/filtering/systemFields.js +48 -30
  105. package/operations/entry/filtering/systemFields.js.map +1 -1
  106. package/operations/entry/filtering/transform.d.ts +1 -1
  107. package/operations/entry/filtering/transform.js +2 -3
  108. package/operations/entry/filtering/transform.js.map +1 -1
  109. package/operations/entry/filtering/types.d.ts +2 -2
  110. package/operations/entry/filtering/types.js +3 -1
  111. package/operations/entry/filtering/types.js.map +1 -1
  112. package/operations/entry/filtering/values.d.ts +1 -1
  113. package/operations/entry/filtering/values.js +2 -6
  114. package/operations/entry/filtering/values.js.map +1 -1
  115. package/operations/entry/filtering/where.js +5 -8
  116. package/operations/entry/filtering/where.js.map +1 -1
  117. package/operations/entry/index.d.ts +3 -3
  118. package/operations/entry/index.js +705 -273
  119. package/operations/entry/index.js.map +1 -1
  120. package/operations/entry/keys.js +2 -18
  121. package/operations/entry/keys.js.map +1 -1
  122. package/operations/group/index.d.ts +3 -3
  123. package/operations/group/index.js +33 -51
  124. package/operations/group/index.js.map +1 -1
  125. package/operations/model/index.d.ts +2 -2
  126. package/operations/model/index.js +25 -37
  127. package/operations/model/index.js.map +1 -1
  128. package/operations/system/index.d.ts +2 -2
  129. package/operations/system/index.js +18 -23
  130. package/operations/system/index.js.map +1 -1
  131. package/package.json +21 -26
  132. package/plugins/CmsEntryFieldFilterPathPlugin.d.ts +3 -2
  133. package/plugins/CmsEntryFieldFilterPathPlugin.js +11 -18
  134. package/plugins/CmsEntryFieldFilterPathPlugin.js.map +1 -1
  135. package/plugins/CmsEntryFieldFilterPlugin.d.ts +10 -10
  136. package/plugins/CmsEntryFieldFilterPlugin.js +8 -12
  137. package/plugins/CmsEntryFieldFilterPlugin.js.map +1 -1
  138. package/plugins/CmsEntryFieldSortingPlugin.d.ts +2 -2
  139. package/plugins/CmsEntryFieldSortingPlugin.js +3 -14
  140. package/plugins/CmsEntryFieldSortingPlugin.js.map +1 -1
  141. package/plugins/CmsFieldFilterValueTransformPlugin.d.ts +11 -0
  142. package/plugins/CmsFieldFilterValueTransformPlugin.js +23 -0
  143. package/plugins/CmsFieldFilterValueTransformPlugin.js.map +1 -0
  144. package/plugins/index.d.ts +1 -0
  145. package/plugins/index.js +14 -7
  146. package/plugins/index.js.map +1 -1
  147. package/types.d.ts +20 -13
  148. package/types.js +5 -6
  149. package/types.js.map +1 -1
  150. package/definitions/settings.d.ts +0 -9
  151. package/definitions/settings.js +0 -58
  152. package/definitions/settings.js.map +0 -1
  153. package/dynamoDb/storage/date.d.ts +0 -3
  154. package/dynamoDb/storage/date.js +0 -109
  155. package/dynamoDb/storage/date.js.map +0 -1
  156. package/operations/entry/systemFields.d.ts +0 -2
  157. package/operations/entry/systemFields.js +0 -74
  158. package/operations/entry/systemFields.js.map +0 -1
  159. package/operations/settings/index.d.ts +0 -7
  160. package/operations/settings/index.js +0 -135
  161. package/operations/settings/index.js.map +0 -1
@@ -1,7 +1,8 @@
1
- import { Entity, Table } from "dynamodb-toolbox";
2
- import { Attributes } from "../types";
1
+ import type { Table } from "@webiny/db-dynamodb/toolbox";
2
+ import { Entity } from "@webiny/db-dynamodb/toolbox";
3
+ import type { Attributes } from "../types";
3
4
  interface Params {
4
- table: Table;
5
+ table: Table<string, string, string>;
5
6
  entityName: string;
6
7
  attributes: Attributes;
7
8
  }
@@ -1,26 +1,20 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.createEntryEntity = void 0;
9
-
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
-
12
- var _dynamodbToolbox = require("dynamodb-toolbox");
13
-
7
+ var _toolbox = require("@webiny/db-dynamodb/toolbox");
14
8
  const createEntryEntity = params => {
15
9
  const {
16
10
  table,
17
11
  entityName,
18
12
  attributes
19
13
  } = params;
20
- return new _dynamodbToolbox.Entity({
14
+ return new _toolbox.Entity({
21
15
  name: entityName,
22
16
  table,
23
- attributes: (0, _objectSpread2.default)({
17
+ attributes: {
24
18
  PK: {
25
19
  type: "string",
26
20
  partitionKey: true
@@ -53,27 +47,114 @@ const createEntryEntity = params => {
53
47
  id: {
54
48
  type: "string"
55
49
  },
56
- createdBy: {
50
+ modelId: {
51
+ type: "string"
52
+ },
53
+ locale: {
54
+ type: "string"
55
+ },
56
+ /**
57
+ * Revision-level meta fields. 👇
58
+ */
59
+ revisionCreatedOn: {
60
+ type: "string"
61
+ },
62
+ revisionModifiedOn: {
63
+ type: "string"
64
+ },
65
+ revisionSavedOn: {
66
+ type: "string"
67
+ },
68
+ revisionDeletedOn: {
69
+ type: "string"
70
+ },
71
+ revisionRestoredOn: {
72
+ type: "string"
73
+ },
74
+ revisionFirstPublishedOn: {
75
+ type: "string"
76
+ },
77
+ revisionLastPublishedOn: {
78
+ type: "string"
79
+ },
80
+ revisionCreatedBy: {
57
81
  type: "map"
58
82
  },
59
- ownedBy: {
83
+ revisionModifiedBy: {
60
84
  type: "map"
61
85
  },
86
+ revisionSavedBy: {
87
+ type: "map"
88
+ },
89
+ revisionDeletedBy: {
90
+ type: "map"
91
+ },
92
+ revisionRestoredBy: {
93
+ type: "map"
94
+ },
95
+ revisionFirstPublishedBy: {
96
+ type: "map"
97
+ },
98
+ revisionLastPublishedBy: {
99
+ type: "map"
100
+ },
101
+ /**
102
+ * Entry-level meta fields. 👇
103
+ */
62
104
  createdOn: {
63
105
  type: "string"
64
106
  },
107
+ modifiedOn: {
108
+ type: "string"
109
+ },
65
110
  savedOn: {
66
111
  type: "string"
67
112
  },
68
- modelId: {
113
+ deletedOn: {
69
114
  type: "string"
70
115
  },
71
- locale: {
116
+ restoredOn: {
117
+ type: "string"
118
+ },
119
+ firstPublishedOn: {
120
+ type: "string"
121
+ },
122
+ lastPublishedOn: {
72
123
  type: "string"
73
124
  },
125
+ createdBy: {
126
+ type: "map"
127
+ },
128
+ modifiedBy: {
129
+ type: "map"
130
+ },
131
+ savedBy: {
132
+ type: "map"
133
+ },
134
+ deletedBy: {
135
+ type: "map"
136
+ },
137
+ restoredBy: {
138
+ type: "map"
139
+ },
140
+ firstPublishedBy: {
141
+ type: "map"
142
+ },
143
+ lastPublishedBy: {
144
+ type: "map"
145
+ },
146
+ /**
147
+ * Deprecated fields. 👇
148
+ */
149
+ ownedBy: {
150
+ type: "map"
151
+ },
74
152
  publishedOn: {
75
153
  type: "string"
76
154
  },
155
+ /**
156
+ * The rest. 👇
157
+ */
77
158
  version: {
78
159
  type: "number"
79
160
  },
@@ -83,14 +164,25 @@ const createEntryEntity = params => {
83
164
  status: {
84
165
  type: "string"
85
166
  },
167
+ location: {
168
+ type: "map"
169
+ },
170
+ wbyDeleted: {
171
+ type: "boolean"
172
+ },
173
+ binOriginalFolderId: {
174
+ type: "string"
175
+ },
86
176
  values: {
87
177
  type: "map"
88
178
  },
89
179
  meta: {
90
180
  type: "map"
91
- }
92
- }, attributes || {})
181
+ },
182
+ ...(attributes || {})
183
+ }
93
184
  });
94
185
  };
186
+ exports.createEntryEntity = createEntryEntity;
95
187
 
96
- exports.createEntryEntity = createEntryEntity;
188
+ //# sourceMappingURL=entry.js.map
@@ -1 +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"}
1
+ {"version":3,"names":["_toolbox","require","createEntryEntity","params","table","entityName","attributes","Entity","name","PK","type","partitionKey","SK","sortKey","GSI1_PK","GSI1_SK","TYPE","__type","webinyVersion","tenant","entryId","id","modelId","locale","revisionCreatedOn","revisionModifiedOn","revisionSavedOn","revisionDeletedOn","revisionRestoredOn","revisionFirstPublishedOn","revisionLastPublishedOn","revisionCreatedBy","revisionModifiedBy","revisionSavedBy","revisionDeletedBy","revisionRestoredBy","revisionFirstPublishedBy","revisionLastPublishedBy","createdOn","modifiedOn","savedOn","deletedOn","restoredOn","firstPublishedOn","lastPublishedOn","createdBy","modifiedBy","savedBy","deletedBy","restoredBy","firstPublishedBy","lastPublishedBy","ownedBy","publishedOn","version","locked","status","location","wbyDeleted","binOriginalFolderId","values","meta","exports"],"sources":["entry.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\ninterface Params {\n table: Table<string, string, string>;\n entityName: string;\n attributes: Attributes;\n}\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 modelId: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n\n /**\n * Revision-level meta fields. 👇\n */\n revisionCreatedOn: { type: \"string\" },\n revisionModifiedOn: { type: \"string\" },\n revisionSavedOn: { type: \"string\" },\n revisionDeletedOn: { type: \"string\" },\n revisionRestoredOn: { type: \"string\" },\n revisionFirstPublishedOn: { type: \"string\" },\n revisionLastPublishedOn: { type: \"string\" },\n revisionCreatedBy: { type: \"map\" },\n revisionModifiedBy: { type: \"map\" },\n revisionSavedBy: { type: \"map\" },\n revisionDeletedBy: { type: \"map\" },\n revisionRestoredBy: { type: \"map\" },\n revisionFirstPublishedBy: { type: \"map\" },\n revisionLastPublishedBy: { type: \"map\" },\n\n /**\n * Entry-level meta fields. 👇\n */\n createdOn: { type: \"string\" },\n modifiedOn: { type: \"string\" },\n savedOn: { type: \"string\" },\n deletedOn: { type: \"string\" },\n restoredOn: { type: \"string\" },\n firstPublishedOn: { type: \"string\" },\n lastPublishedOn: { type: \"string\" },\n createdBy: { type: \"map\" },\n modifiedBy: { type: \"map\" },\n savedBy: { type: \"map\" },\n deletedBy: { type: \"map\" },\n restoredBy: { type: \"map\" },\n firstPublishedBy: { type: \"map\" },\n lastPublishedBy: { type: \"map\" },\n\n /**\n * Deprecated fields. 👇\n */\n ownedBy: {\n type: \"map\"\n },\n publishedOn: {\n type: \"string\"\n },\n\n /**\n * The rest. 👇\n */\n version: {\n type: \"number\"\n },\n locked: {\n type: \"boolean\"\n },\n status: {\n type: \"string\"\n },\n location: {\n type: \"map\"\n },\n wbyDeleted: {\n type: \"boolean\"\n },\n binOriginalFolderId: {\n type: \"string\"\n },\n values: {\n type: \"map\"\n },\n meta: {\n type: \"map\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":"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","ignoreList":[]}
@@ -1,7 +1,8 @@
1
- import { Entity, Table } from "dynamodb-toolbox";
2
- import { Attributes } from "../types";
1
+ import type { Table } from "@webiny/db-dynamodb/toolbox";
2
+ import { Entity } from "@webiny/db-dynamodb/toolbox";
3
+ import type { Attributes } from "../types";
3
4
  interface Params {
4
- table: Table;
5
+ table: Table<string, string, string>;
5
6
  entityName: string;
6
7
  attributes: Attributes;
7
8
  }
@@ -1,26 +1,20 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.createGroupEntity = void 0;
9
-
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
-
12
- var _dynamodbToolbox = require("dynamodb-toolbox");
13
-
7
+ var _toolbox = require("@webiny/db-dynamodb/toolbox");
14
8
  const createGroupEntity = params => {
15
9
  const {
16
10
  table,
17
11
  attributes,
18
12
  entityName
19
13
  } = params;
20
- return new _dynamodbToolbox.Entity({
14
+ return new _toolbox.Entity({
21
15
  name: entityName,
22
16
  table,
23
- attributes: (0, _objectSpread2.default)({
17
+ attributes: {
24
18
  PK: {
25
19
  partitionKey: true
26
20
  },
@@ -62,9 +56,11 @@ const createGroupEntity = params => {
62
56
  },
63
57
  tenant: {
64
58
  type: "string"
65
- }
66
- }, attributes || {})
59
+ },
60
+ ...(attributes || {})
61
+ }
67
62
  });
68
63
  };
64
+ exports.createGroupEntity = createGroupEntity;
69
65
 
70
- exports.createGroupEntity = createGroupEntity;
66
+ //# sourceMappingURL=group.js.map
@@ -1 +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"}
1
+ {"version":3,"names":["_toolbox","require","createGroupEntity","params","table","attributes","entityName","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","webinyVersion","id","slug","locale","description","icon","createdBy","createdOn","savedOn","tenant","exports"],"sources":["group.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\ninterface Params {\n table: Table<string, string, string>;\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":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAQO,MAAMC,iBAAiB,GAAIC,MAAc,IAAkB;EAC9D,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEF,UAAU;IAChBF,KAAK;IACLC,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE;MACV,CAAC;MACDC,aAAa,EAAE;QACXD,IAAI,EAAE;MACV,CAAC;MACDE,EAAE,EAAE;QACAF,IAAI,EAAE;MACV,CAAC;MACDN,IAAI,EAAE;QACFM,IAAI,EAAE;MACV,CAAC;MACDG,IAAI,EAAE;QACFH,IAAI,EAAE;MACV,CAAC;MACDI,MAAM,EAAE;QACJJ,IAAI,EAAE;MACV,CAAC;MACDK,WAAW,EAAE;QACTL,IAAI,EAAE;MACV,CAAC;MACDM,IAAI,EAAE;QACFN,IAAI,EAAE;MACV,CAAC;MAEDO,SAAS,EAAE;QACPP,IAAI,EAAE;MACV,CAAC;MACDQ,SAAS,EAAE;QACPR,IAAI,EAAE;MACV,CAAC;MACDS,OAAO,EAAE;QACLT,IAAI,EAAE;MACV,CAAC;MACDU,MAAM,EAAE;QACJV,IAAI,EAAE;MACV,CAAC;MACD,IAAIT,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAACoB,OAAA,CAAAvB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -1,7 +1,8 @@
1
- import { Entity, Table } from "dynamodb-toolbox";
2
- import { Attributes } from "../types";
1
+ import type { Table } from "@webiny/db-dynamodb/toolbox";
2
+ import { Entity } from "@webiny/db-dynamodb/toolbox";
3
+ import type { Attributes } from "../types";
3
4
  interface Params {
4
- table: Table;
5
+ table: Table<string, string, string>;
5
6
  entityName: string;
6
7
  attributes: Attributes;
7
8
  }
@@ -1,26 +1,20 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.createModelEntity = void 0;
9
-
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
-
12
- var _dynamodbToolbox = require("dynamodb-toolbox");
13
-
7
+ var _toolbox = require("@webiny/db-dynamodb/toolbox");
14
8
  const createModelEntity = params => {
15
9
  const {
16
10
  table,
17
11
  attributes,
18
12
  entityName
19
13
  } = params;
20
- return new _dynamodbToolbox.Entity({
14
+ return new _toolbox.Entity({
21
15
  name: entityName,
22
16
  table,
23
- attributes: (0, _objectSpread2.default)({
17
+ attributes: {
24
18
  PK: {
25
19
  partitionKey: true
26
20
  },
@@ -43,6 +37,14 @@ const createModelEntity = params => {
43
37
  type: "string",
44
38
  required: true
45
39
  },
40
+ singularApiName: {
41
+ type: "string",
42
+ required: true
43
+ },
44
+ pluralApiName: {
45
+ type: "string",
46
+ required: true
47
+ },
46
48
  locale: {
47
49
  type: "string",
48
50
  required: true
@@ -51,6 +53,9 @@ const createModelEntity = params => {
51
53
  type: "map",
52
54
  required: true
53
55
  },
56
+ icon: {
57
+ type: "string"
58
+ },
54
59
  description: {
55
60
  type: "string"
56
61
  },
@@ -86,12 +91,20 @@ const createModelEntity = params => {
86
91
  titleFieldId: {
87
92
  type: "string"
88
93
  },
94
+ descriptionFieldId: {
95
+ type: "string"
96
+ },
97
+ imageFieldId: {
98
+ type: "string"
99
+ },
89
100
  tenant: {
90
101
  type: "string",
91
102
  required: true
92
- }
93
- }, attributes || {})
103
+ },
104
+ ...(attributes || {})
105
+ }
94
106
  });
95
107
  };
108
+ exports.createModelEntity = createModelEntity;
96
109
 
97
- exports.createModelEntity = createModelEntity;
110
+ //# sourceMappingURL=model.js.map
@@ -1 +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"}
1
+ {"version":3,"names":["_toolbox","require","createModelEntity","params","table","attributes","entityName","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","required","webinyVersion","modelId","singularApiName","pluralApiName","locale","group","icon","description","createdOn","savedOn","createdBy","fields","layout","tags","default","lockedFields","titleFieldId","descriptionFieldId","imageFieldId","tenant","exports"],"sources":["model.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\ninterface Params {\n table: Table<string, string, string>;\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 singularApiName: {\n type: \"string\",\n required: true\n },\n pluralApiName: {\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 icon: {\n type: \"string\"\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 descriptionFieldId: {\n type: \"string\"\n },\n imageFieldId: {\n type: \"string\"\n },\n tenant: {\n type: \"string\",\n required: true\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,iBAAiB,GAAIC,MAAc,IAAkB;EAC9D,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEF,UAAU;IAChBF,KAAK;IACLC,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDC,aAAa,EAAE;QACXF,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDP,IAAI,EAAE;QACFM,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDE,OAAO,EAAE;QACLH,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDG,eAAe,EAAE;QACbJ,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDI,aAAa,EAAE;QACXL,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDK,MAAM,EAAE;QACJN,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDM,KAAK,EAAE;QACHP,IAAI,EAAE,KAAK;QACXC,QAAQ,EAAE;MACd,CAAC;MACDO,IAAI,EAAE;QACFR,IAAI,EAAE;MACV,CAAC;MACDS,WAAW,EAAE;QACTT,IAAI,EAAE;MACV,CAAC;MACDU,SAAS,EAAE;QACPV,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDU,OAAO,EAAE;QACLX,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACDW,SAAS,EAAE;QACPZ,IAAI,EAAE,KAAK;QACXC,QAAQ,EAAE;MACd,CAAC;MACDY,MAAM,EAAE;QACJb,IAAI,EAAE,MAAM;QACZC,QAAQ,EAAE;MACd,CAAC;MACDa,MAAM,EAAE;QACJd,IAAI,EAAE,MAAM;QACZC,QAAQ,EAAE;MACd,CAAC;MACDc,IAAI,EAAE;QACFf,IAAI,EAAE,MAAM;QACZC,QAAQ,EAAE,KAAK;QACfe,OAAO,EAAE;MACb,CAAC;MACDC,YAAY,EAAE;QACVjB,IAAI,EAAE,MAAM;QACZC,QAAQ,EAAE;MACd,CAAC;MACDiB,YAAY,EAAE;QACVlB,IAAI,EAAE;MACV,CAAC;MACDmB,kBAAkB,EAAE;QAChBnB,IAAI,EAAE;MACV,CAAC;MACDoB,YAAY,EAAE;QACVpB,IAAI,EAAE;MACV,CAAC;MACDqB,MAAM,EAAE;QACJrB,IAAI,EAAE,QAAQ;QACdC,QAAQ,EAAE;MACd,CAAC;MACD,IAAIV,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAAC+B,OAAA,CAAAlC,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -1,7 +1,8 @@
1
- import { Entity, Table } from "dynamodb-toolbox";
2
- import { Attributes } from "../types";
1
+ import type { Table } from "@webiny/db-dynamodb/toolbox";
2
+ import { Entity } from "@webiny/db-dynamodb/toolbox";
3
+ import type { Attributes } from "../types";
3
4
  interface Params {
4
- table: Table;
5
+ table: Table<string, string, string>;
5
6
  entityName: string;
6
7
  attributes: Attributes;
7
8
  }
@@ -1,26 +1,20 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.createSystemEntity = void 0;
9
-
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
-
12
- var _dynamodbToolbox = require("dynamodb-toolbox");
13
-
7
+ var _toolbox = require("@webiny/db-dynamodb/toolbox");
14
8
  const createSystemEntity = params => {
15
9
  const {
16
10
  entityName,
17
11
  attributes,
18
12
  table
19
13
  } = params;
20
- return new _dynamodbToolbox.Entity({
14
+ return new _toolbox.Entity({
21
15
  name: entityName,
22
16
  table,
23
- attributes: (0, _objectSpread2.default)({
17
+ attributes: {
24
18
  PK: {
25
19
  partitionKey: true
26
20
  },
@@ -38,9 +32,11 @@ const createSystemEntity = params => {
38
32
  },
39
33
  readAPIKey: {
40
34
  type: "string"
41
- }
42
- }, attributes || {})
35
+ },
36
+ ...(attributes || {})
37
+ }
43
38
  });
44
39
  };
40
+ exports.createSystemEntity = createSystemEntity;
45
41
 
46
- exports.createSystemEntity = createSystemEntity;
42
+ //# sourceMappingURL=system.js.map
@@ -1 +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"}
1
+ {"version":3,"names":["_toolbox","require","createSystemEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","version","type","locale","tenant","readAPIKey","exports"],"sources":["system.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\ninterface Params {\n table: Table<string, string, string>;\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":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,kBAAkB,GAAIC,MAAc,IAAkB;EAC/D,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEJ,UAAU;IAChBE,KAAK;IACLD,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,OAAO,EAAE;QACLC,IAAI,EAAE;MACV,CAAC;MACDC,MAAM,EAAE;QACJD,IAAI,EAAE;MACV,CAAC;MACDE,MAAM,EAAE;QACJF,IAAI,EAAE;MACV,CAAC;MACDG,UAAU,EAAE;QACRH,IAAI,EAAE;MACV,CAAC;MACD,IAAIT,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAACa,OAAA,CAAAhB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1,9 +1,9 @@
1
- import { TableModifier } from "../types";
2
- import { DocumentClient } from "aws-sdk/clients/dynamodb";
3
- import { Table } from "dynamodb-toolbox";
1
+ import type { TableModifier } from "../types";
2
+ import type { DynamoDBDocument } from "@webiny/aws-sdk/client-dynamodb";
3
+ import { Table } from "@webiny/db-dynamodb/toolbox";
4
4
  interface Params {
5
5
  table?: TableModifier;
6
- documentClient: DocumentClient;
6
+ documentClient: DynamoDBDocument;
7
7
  }
8
- export declare const createTable: ({ table, documentClient }: Params) => Table;
8
+ export declare const createTable: ({ table, documentClient }: Params) => Table<string, string, string>;
9
9
  export {};
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.createTable = void 0;
7
-
8
- var _dynamodbToolbox = require("dynamodb-toolbox");
9
-
7
+ var _toolbox = require("@webiny/db-dynamodb/toolbox");
10
8
  const createTable = ({
11
9
  table,
12
10
  documentClient
@@ -21,10 +19,13 @@ const createTable = ({
21
19
  partitionKey: "GSI1_PK",
22
20
  sortKey: "GSI1_SK"
23
21
  }
24
- }
22
+ },
23
+ autoExecute: true,
24
+ autoParse: true
25
25
  };
26
26
  const config = typeof table === "function" ? table(tableConfig) : tableConfig;
27
- return new _dynamodbToolbox.Table(config);
27
+ return new _toolbox.Table(config);
28
28
  };
29
+ exports.createTable = createTable;
29
30
 
30
- exports.createTable = createTable;
31
+ //# sourceMappingURL=table.js.map
@@ -1 +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"}
1
+ {"version":3,"names":["_toolbox","require","createTable","table","documentClient","tableConfig","name","process","env","DB_TABLE_HEADLESS_CMS","DB_TABLE","partitionKey","sortKey","DocumentClient","indexes","GSI1","autoExecute","autoParse","config","Table","exports"],"sources":["table.ts"],"sourcesContent":["import type { TableModifier } from \"~/types\";\nimport type { DynamoDBDocument } from \"@webiny/aws-sdk/client-dynamodb\";\nimport { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport type { TableConstructor } from \"@webiny/db-dynamodb/toolbox\";\n\ninterface Params {\n table?: TableModifier;\n documentClient: DynamoDBDocument;\n}\nexport const createTable = ({ table, documentClient }: Params): Table<string, string, string> => {\n const tableConfig: TableConstructor<string, string, string> = {\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 autoExecute: true,\n autoParse: true\n };\n\n const config = typeof table === \"function\" ? table(tableConfig) : tableConfig;\n\n return new Table(config);\n};\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AAOO,MAAMC,WAAW,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAuB,CAAC,KAAoC;EAC7F,MAAMC,WAAqD,GAAG;IAC1DC,IAAI,EAAEC,OAAO,CAACC,GAAG,CAACC,qBAAqB,IAAKF,OAAO,CAACC,GAAG,CAACE,QAAmB;IAC3EC,YAAY,EAAE,IAAI;IAClBC,OAAO,EAAE,IAAI;IACbC,cAAc,EAAET,cAAc;IAC9BU,OAAO,EAAE;MACLC,IAAI,EAAE;QACFJ,YAAY,EAAE,SAAS;QACvBC,OAAO,EAAE;MACb;IACJ,CAAC;IACDI,WAAW,EAAE,IAAI;IACjBC,SAAS,EAAE;EACf,CAAC;EAED,MAAMC,MAAM,GAAG,OAAOf,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACE,WAAW,CAAC,GAAGA,WAAW;EAE7E,OAAO,IAAIc,cAAK,CAACD,MAAM,CAAC;AAC5B,CAAC;AAACE,OAAA,CAAAlB,WAAA,GAAAA,WAAA","ignoreList":[]}
package/dynamoDb/index.js CHANGED
@@ -4,17 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _richText = require("./storage/richText");
9
-
10
8
  var _longText = require("./storage/longText");
11
-
12
- var _date = require("./storage/date");
13
-
14
9
  var _plainObject = require("./path/plainObject");
15
-
16
10
  var _datetime = require("./transformValue/datetime");
11
+ var _locationFolderId = require("./path/locationFolderId");
12
+ var _default = () => [(0, _richText.createRichTextStorageTransformPlugin)(), (0, _longText.createLongTextStorageTransformPlugin)(), (0, _plainObject.createPlainObjectPathPlugin)(), (0, _locationFolderId.createLocationFolderIdPathPlugin)(), (0, _datetime.createDatetimeTransformValuePlugin)()];
13
+ exports.default = _default;
17
14
 
18
- var _default = () => [(0, _richText.createRichTextStorageTransformPlugin)(), (0, _longText.createLongTextStorageTransformPlugin)(), (0, _date.createDateStorageTransformPlugin)(), (0, _plainObject.createPlainObjectPathPlugin)(), (0, _datetime.createDatetimeTransformValuePlugin)()];
19
-
20
- exports.default = _default;
15
+ //# sourceMappingURL=index.js.map
@@ -1 +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"}
1
+ {"version":3,"names":["_richText","require","_longText","_plainObject","_datetime","_locationFolderId","_default","createRichTextStorageTransformPlugin","createLongTextStorageTransformPlugin","createPlainObjectPathPlugin","createLocationFolderIdPathPlugin","createDatetimeTransformValuePlugin","exports","default"],"sources":["index.ts"],"sourcesContent":["import { createRichTextStorageTransformPlugin } from \"./storage/richText\";\nimport { createLongTextStorageTransformPlugin } from \"./storage/longText\";\nimport { createPlainObjectPathPlugin } from \"./path/plainObject\";\nimport { createDatetimeTransformValuePlugin } from \"./transformValue/datetime\";\nimport { createLocationFolderIdPathPlugin } from \"~/dynamoDb/path/locationFolderId\";\n\nexport default () => [\n createRichTextStorageTransformPlugin(),\n createLongTextStorageTransformPlugin(),\n createPlainObjectPathPlugin(),\n createLocationFolderIdPathPlugin(),\n createDatetimeTransformValuePlugin()\n];\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAAoF,IAAAK,QAAA,GAErEA,CAAA,KAAM,CACjB,IAAAC,8CAAoC,EAAC,CAAC,EACtC,IAAAC,8CAAoC,EAAC,CAAC,EACtC,IAAAC,wCAA2B,EAAC,CAAC,EAC7B,IAAAC,kDAAgC,EAAC,CAAC,EAClC,IAAAC,4CAAkC,EAAC,CAAC,CACvC;AAAAC,OAAA,CAAAC,OAAA,GAAAP,QAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import { CmsEntryFieldFilterPathPlugin } from "../../plugins/CmsEntryFieldFilterPathPlugin";
2
+ export declare const createLocationFolderIdPathPlugin: () => CmsEntryFieldFilterPathPlugin;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.createLocationFolderIdPathPlugin = void 0;
8
+ var _error = _interopRequireDefault(require("@webiny/error"));
9
+ var _CmsEntryFieldFilterPathPlugin = require("../../plugins/CmsEntryFieldFilterPathPlugin");
10
+ /**
11
+ * File is @internal
12
+ */
13
+
14
+ const createPath = ({
15
+ field
16
+ }) => {
17
+ const {
18
+ path
19
+ } = field.settings || {};
20
+ if (!path) {
21
+ throw new _error.default("Missing path settings value.", "FIELD_SETTINGS_ERROR", {
22
+ field
23
+ });
24
+ }
25
+ return path;
26
+ };
27
+ const createLocationFolderIdPathPlugin = () => {
28
+ return new _CmsEntryFieldFilterPathPlugin.CmsEntryFieldFilterPathPlugin({
29
+ fieldType: "text",
30
+ path: createPath,
31
+ canUse: (field, parents) => {
32
+ if (field.fieldId !== "folderId") {
33
+ return false;
34
+ } else if (!parents?.length) {
35
+ return false;
36
+ }
37
+ return parents[0] === "wbyAco_location";
38
+ }
39
+ });
40
+ };
41
+ exports.createLocationFolderIdPathPlugin = createLocationFolderIdPathPlugin;
42
+
43
+ //# sourceMappingURL=locationFolderId.js.map