@webiny/api-form-builder-so-ddb 5.37.8 → 5.38.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/form.js +4 -2
- package/definitions/form.js.map +1 -1
- package/definitions/settings.js +3 -1
- package/definitions/submission.js +3 -1
- package/definitions/system.js +3 -1
- package/definitions/table.js +3 -1
- package/index.js +3 -1
- package/operations/form/fields.js +3 -1
- package/operations/form/index.js +3 -1
- package/operations/settings/index.js +3 -1
- package/operations/submission/fields.js +3 -1
- package/operations/submission/index.js +3 -1
- package/operations/system/index.js +3 -1
- package/package.json +10 -10
- package/plugins/FormDynamoDbFieldPlugin.js +3 -1
- package/plugins/FormSubmissionDynamoDbFieldPlugin.js +3 -1
- package/plugins/index.js +3 -1
- package/types.js +3 -1
package/definitions/form.js
CHANGED
|
@@ -80,7 +80,7 @@ const createFormEntity = params => {
|
|
|
80
80
|
fields: {
|
|
81
81
|
type: "list"
|
|
82
82
|
},
|
|
83
|
-
|
|
83
|
+
steps: {
|
|
84
84
|
type: "list"
|
|
85
85
|
},
|
|
86
86
|
stats: {
|
|
@@ -98,4 +98,6 @@ const createFormEntity = params => {
|
|
|
98
98
|
}, attributes || {})
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
|
-
exports.createFormEntity = createFormEntity;
|
|
101
|
+
exports.createFormEntity = createFormEntity;
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=form.js.map
|
package/definitions/form.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_dynamodbToolbox","require","createFormEntity","params","table","entityName","attributes","Entity","name","_objectSpread2","default","PK","partitionKey","SK","sortKey","GSI1_PK","type","GSI1_SK","TYPE","id","formId","tenant","locale","createdBy","ownedBy","savedOn","createdOn","slug","version","locked","published","publishedOn","status","fields","
|
|
1
|
+
{"version":3,"names":["_dynamodbToolbox","require","createFormEntity","params","table","entityName","attributes","Entity","name","_objectSpread2","default","PK","partitionKey","SK","sortKey","GSI1_PK","type","GSI1_SK","TYPE","id","formId","tenant","locale","createdBy","ownedBy","savedOn","createdOn","slug","version","locked","published","publishedOn","status","fields","steps","stats","settings","triggers","webinyVersion","exports"],"sources":["form.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 createFormEntity = (params: Params): Entity<any> => {\n const { table, entityName, attributes } = params;\n return new Entity({\n table,\n name: entityName,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\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 id: {\n type: \"string\"\n },\n formId: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n createdBy: {\n type: \"map\"\n },\n ownedBy: {\n type: \"map\"\n },\n savedOn: {\n type: \"string\"\n },\n createdOn: {\n type: \"string\"\n },\n name: {\n type: \"string\"\n },\n slug: {\n type: \"string\"\n },\n version: {\n type: \"number\"\n },\n locked: {\n type: \"boolean\"\n },\n published: {\n type: \"boolean\"\n },\n publishedOn: {\n type: \"string\"\n },\n status: {\n type: \"string\"\n },\n fields: {\n type: \"list\"\n },\n steps: {\n type: \"list\"\n },\n stats: {\n type: \"map\"\n },\n settings: {\n type: \"map\"\n },\n triggers: {\n type: \"map\"\n },\n webinyVersion: {\n type: \"string\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AASO,MAAMC,gBAAgB,GAAIC,MAAc,IAAkB;EAC7D,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,uBAAM,CAAC;IACdH,KAAK;IACLI,IAAI,EAAEH,UAAU;IAChBC,UAAU,MAAAG,cA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QACXtB,IAAI,EAAE;MACV;IAAC,GACGV,UAAU,IAAI,CAAC,CAAC;EAE5B,CAAC,CAAC;AACN,CAAC;AAACiC,OAAA,CAAArC,gBAAA,GAAAA,gBAAA"}
|
package/definitions/settings.js
CHANGED
package/definitions/system.js
CHANGED
package/definitions/table.js
CHANGED
package/index.js
CHANGED
|
@@ -128,4 +128,6 @@ const createFormBuilderStorageOperations = params => {
|
|
|
128
128
|
plugins
|
|
129
129
|
}));
|
|
130
130
|
};
|
|
131
|
-
exports.createFormBuilderStorageOperations = createFormBuilderStorageOperations;
|
|
131
|
+
exports.createFormBuilderStorageOperations = createFormBuilderStorageOperations;
|
|
132
|
+
|
|
133
|
+
//# sourceMappingURL=index.js.map
|
package/operations/form/index.js
CHANGED
|
@@ -652,4 +652,6 @@ const createFormStorageOperations = params => {
|
|
|
652
652
|
createFormPartitionKey
|
|
653
653
|
};
|
|
654
654
|
};
|
|
655
|
-
exports.createFormStorageOperations = createFormStorageOperations;
|
|
655
|
+
exports.createFormStorageOperations = createFormStorageOperations;
|
|
656
|
+
|
|
657
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -96,4 +96,6 @@ const createSettingsStorageOperations = params => {
|
|
|
96
96
|
createSettingsSortKey
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
exports.createSettingsStorageOperations = createSettingsStorageOperations;
|
|
99
|
+
exports.createSettingsStorageOperations = createSettingsStorageOperations;
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -206,4 +206,6 @@ const createSubmissionStorageOperations = params => {
|
|
|
206
206
|
createSubmissionSortKey
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
exports.createSubmissionStorageOperations = createSubmissionStorageOperations;
|
|
209
|
+
exports.createSubmissionStorageOperations = createSubmissionStorageOperations;
|
|
210
|
+
|
|
211
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -81,4 +81,6 @@ const createSystemStorageOperations = params => {
|
|
|
81
81
|
createSystemSortKey
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
-
exports.createSystemStorageOperations = createSystemStorageOperations;
|
|
84
|
+
exports.createSystemStorageOperations = createSystemStorageOperations;
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-form-builder-so-ddb",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.38.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@webiny/api-form-builder",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime": "7.22.6",
|
|
25
|
-
"@webiny/api-form-builder": "5.
|
|
26
|
-
"@webiny/db-dynamodb": "5.
|
|
27
|
-
"@webiny/error": "5.
|
|
28
|
-
"@webiny/plugins": "5.
|
|
29
|
-
"@webiny/utils": "5.
|
|
25
|
+
"@webiny/api-form-builder": "5.38.0-beta.0",
|
|
26
|
+
"@webiny/db-dynamodb": "5.38.0-beta.0",
|
|
27
|
+
"@webiny/error": "5.38.0-beta.0",
|
|
28
|
+
"@webiny/plugins": "5.38.0-beta.0",
|
|
29
|
+
"@webiny/utils": "5.38.0-beta.0",
|
|
30
30
|
"dynamodb-toolbox": "0.3.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"@babel/core": "7.22.8",
|
|
35
35
|
"@babel/preset-env": "7.22.7",
|
|
36
36
|
"@babel/preset-typescript": "7.22.5",
|
|
37
|
-
"@webiny/cli": "5.
|
|
38
|
-
"@webiny/handler-db": "5.
|
|
39
|
-
"@webiny/project-utils": "5.
|
|
37
|
+
"@webiny/cli": "5.38.0-beta.0",
|
|
38
|
+
"@webiny/handler-db": "5.38.0-beta.0",
|
|
39
|
+
"@webiny/project-utils": "5.38.0-beta.0",
|
|
40
40
|
"csvtojson": "2.0.10",
|
|
41
41
|
"jest": "29.5.0",
|
|
42
42
|
"jest-dynalite": "3.6.1",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"build": "yarn webiny run build",
|
|
53
53
|
"watch": "yarn webiny run watch"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "5746389d4988626b50e2523ccfa0a9a5e398e0ed"
|
|
56
56
|
}
|
|
@@ -9,4 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _FieldPlugin = require("@webiny/db-dynamodb/plugins/definitions/FieldPlugin");
|
|
10
10
|
class FormDynamoDbFieldPlugin extends _FieldPlugin.FieldPlugin {}
|
|
11
11
|
exports.FormDynamoDbFieldPlugin = FormDynamoDbFieldPlugin;
|
|
12
|
-
(0, _defineProperty2.default)(FormDynamoDbFieldPlugin, "type", "formBuilder.dynamodb.field.form");
|
|
12
|
+
(0, _defineProperty2.default)(FormDynamoDbFieldPlugin, "type", "formBuilder.dynamodb.field.form");
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=FormDynamoDbFieldPlugin.js.map
|
|
@@ -9,4 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _FieldPlugin = require("@webiny/db-dynamodb/plugins/definitions/FieldPlugin");
|
|
10
10
|
class FormSubmissionDynamoDbFieldPlugin extends _FieldPlugin.FieldPlugin {}
|
|
11
11
|
exports.FormSubmissionDynamoDbFieldPlugin = FormSubmissionDynamoDbFieldPlugin;
|
|
12
|
-
(0, _defineProperty2.default)(FormSubmissionDynamoDbFieldPlugin, "type", "formBuilder.dynamodb.field.formSubmission");
|
|
12
|
+
(0, _defineProperty2.default)(FormSubmissionDynamoDbFieldPlugin, "type", "formBuilder.dynamodb.field.formSubmission");
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=FormSubmissionDynamoDbFieldPlugin.js.map
|
package/plugins/index.js
CHANGED