@lowdefy/build 0.0.0-experimental-20240115131502 → 0.0.0-experimental-20241107140648
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/dist/build/addDefaultPages/404.js +1 -1
- package/dist/build/addDefaultPages/addDefaultPages.js +1 -1
- package/dist/build/addKeys.js +1 -1
- package/dist/build/buildApi/buildApi.js +34 -0
- package/dist/build/buildApi/buildEndpoint.js +34 -0
- package/dist/build/buildApi/buildRoutine/buildControl.js +33 -0
- package/dist/build/buildApi/buildRoutine/buildRoutine.js +35 -0
- package/dist/build/buildApi/buildRoutine/buildStep.js +27 -0
- package/dist/build/buildApi/buildRoutine/controlTypes.js +208 -0
- package/dist/build/buildApi/buildRoutine/countControl.js +18 -0
- package/dist/build/buildApi/buildRoutine/countOperators.js +0 -0
- package/dist/build/buildApi/buildRoutine/countStepTypes.js +18 -0
- package/dist/build/buildApi/buildRoutine/setStepId.js +20 -0
- package/dist/build/buildApi/buildRoutine/validateStep.js +46 -0
- package/dist/build/buildApi/validateEndpoint.js +22 -0
- package/dist/build/buildApp.js +1 -1
- package/dist/build/buildAuth/buildAuth.js +1 -1
- package/dist/build/buildAuth/buildAuthPlugins.js +1 -1
- package/dist/build/buildAuth/buildPageAuth.js +1 -1
- package/dist/build/buildAuth/getPageRoles.js +1 -1
- package/dist/build/buildAuth/getProtectedPages.js +1 -1
- package/dist/build/buildAuth/validateAuthConfig.js +1 -1
- package/dist/build/buildConnections.js +1 -1
- package/dist/build/buildImports/buildIconImports.js +1 -1
- package/dist/build/buildImports/buildImports.js +1 -1
- package/dist/build/buildImports/buildImportsDev.js +1 -1
- package/dist/build/buildImports/buildImportsProd.js +1 -1
- package/dist/build/buildImports/buildStyleImports.js +1 -1
- package/dist/build/buildImports/defaultIconsDev.js +1 -1
- package/dist/build/buildImports/defaultIconsProd.js +1 -1
- package/dist/build/buildJs/buildJs.js +43 -0
- package/dist/build/buildJs/generateJsFile.js +30 -0
- package/dist/build/buildJs/jsMapParser.js +46 -0
- package/dist/build/buildJs/writeJs.js +26 -0
- package/dist/build/buildMenu.js +1 -1
- package/dist/build/buildPages/buildBlock/buildBlock.js +1 -1
- package/dist/build/buildPages/buildBlock/buildEvents.js +1 -1
- package/dist/build/buildPages/buildBlock/buildRequests.js +1 -1
- package/dist/build/buildPages/buildBlock/buildSubBlocks.js +1 -1
- package/dist/build/buildPages/buildBlock/countBlockOperators.js +1 -1
- package/dist/build/buildPages/buildBlock/countBlockTypes.js +1 -1
- package/dist/build/buildPages/buildBlock/moveSkeletonBlocksToArea.js +1 -1
- package/dist/build/buildPages/buildBlock/moveSubBlocksToArea.js +1 -1
- package/dist/build/buildPages/buildBlock/setBlockId.js +1 -1
- package/dist/build/buildPages/buildBlock/validateBlock.js +1 -1
- package/dist/build/buildPages/buildPage.js +1 -1
- package/dist/build/buildPages/buildPages.js +1 -1
- package/dist/build/buildPages/buildTestPage.js +1 -1
- package/dist/build/buildRefs/buildRefs.js +1 -1
- package/dist/build/buildRefs/evaluateBuildOperators.js +1 -1
- package/dist/build/buildRefs/getConfigFile.js +1 -1
- package/dist/build/buildRefs/getKey.js +1 -1
- package/dist/build/buildRefs/getRefContent.js +1 -1
- package/dist/build/buildRefs/getRefPath.js +1 -1
- package/dist/build/buildRefs/getRefsFromFile.js +1 -1
- package/dist/build/buildRefs/getUserJavascriptFunction.js +1 -1
- package/dist/build/buildRefs/makeRefDefinition.js +1 -1
- package/dist/build/buildRefs/parseNunjucks.js +1 -1
- package/dist/build/buildRefs/parseRefContent.js +1 -1
- package/dist/build/buildRefs/populateRefs.js +1 -1
- package/dist/build/buildRefs/recursiveBuild.js +1 -1
- package/dist/build/buildRefs/runRefResolver.js +1 -1
- package/dist/build/buildRefs/runTransformer.js +1 -1
- package/dist/build/buildTypes.js +2 -1
- package/dist/build/cleanBuildDirectory.js +1 -1
- package/dist/build/copyPublicFolder.js +1 -1
- package/dist/build/testSchema.js +1 -1
- package/dist/build/updateServerPackageJson.js +1 -1
- package/dist/build/validateConfig.js +1 -1
- package/dist/build/writeApi.js +30 -0
- package/dist/build/writeApp.js +1 -1
- package/dist/build/writeAuth.js +1 -1
- package/dist/build/writeConfig.js +1 -1
- package/dist/build/writeConnections.js +1 -1
- package/dist/build/writeGlobal.js +1 -1
- package/dist/build/writeMaps.js +1 -1
- package/dist/build/writeMenus.js +1 -1
- package/dist/build/writePages.js +1 -1
- package/dist/build/writePluginImports/generateImportFile.js +1 -1
- package/dist/build/writePluginImports/writeActionImports.js +1 -1
- package/dist/build/writePluginImports/writeAuthImports.js +1 -1
- package/dist/build/writePluginImports/writeBlockImports.js +1 -1
- package/dist/build/writePluginImports/writeConnectionImports.js +1 -1
- package/dist/build/writePluginImports/writeIconImports.js +1 -1
- package/dist/build/writePluginImports/writeOperatorImports.js +1 -1
- package/dist/build/writePluginImports/writePluginImports.js +1 -1
- package/dist/build/writePluginImports/writeStyleImports.js +1 -1
- package/dist/build/writeRequests.js +1 -1
- package/dist/build/writeTypes.js +1 -1
- package/dist/createContext.js +3 -1
- package/dist/defaultTypesMap.js +458 -377
- package/dist/index.js +23 -3
- package/dist/lowdefySchema.js +47 -0
- package/dist/scripts/generateDefaultTypes.js +1 -1
- package/dist/scripts/run.js +1 -1
- package/dist/test/buildRefs/testBuildRefsAsyncFunction.js +1 -1
- package/dist/test/buildRefs/testBuildRefsErrorResolver.js +1 -1
- package/dist/test/buildRefs/testBuildRefsNullResolver.js +1 -1
- package/dist/test/buildRefs/testBuildRefsParsingResolver.js +1 -1
- package/dist/test/buildRefs/testBuildRefsResolver.js +1 -1
- package/dist/test/buildRefs/testBuildRefsTransform.js +1 -1
- package/dist/test/buildRefs/testBuildRefsTransformIdentity.js +1 -1
- package/dist/test/testContext.js +4 -2
- package/dist/utils/countOperators.js +1 -1
- package/dist/utils/createCheckDuplicateId.js +1 -1
- package/dist/utils/createCounter.js +1 -1
- package/dist/utils/createPluginTypesMap.js +1 -1
- package/dist/utils/formatErrorMessage.js +1 -1
- package/dist/utils/makeId.js +1 -1
- package/dist/utils/readConfigFile.js +1 -1
- package/dist/utils/writeBuildArtifact.js +1 -1
- package/package.json +38 -38
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-console */ /*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -19,7 +19,9 @@ import addKeys from './build/addKeys.js';
|
|
|
19
19
|
import buildApp from './build/buildApp.js';
|
|
20
20
|
import buildAuth from './build/buildAuth/buildAuth.js';
|
|
21
21
|
import buildConnections from './build/buildConnections.js';
|
|
22
|
+
import buildApi from './build/buildApi/buildApi.js';
|
|
22
23
|
import buildImports from './build/buildImports/buildImports.js';
|
|
24
|
+
import buildJs from './build/buildJs/buildJs.js';
|
|
23
25
|
import buildMenu from './build/buildMenu.js';
|
|
24
26
|
import buildPages from './build/buildPages/buildPages.js';
|
|
25
27
|
import buildRefs from './build/buildRefs/buildRefs.js';
|
|
@@ -27,17 +29,19 @@ import buildTypes from './build/buildTypes.js';
|
|
|
27
29
|
import cleanBuildDirectory from './build/cleanBuildDirectory.js';
|
|
28
30
|
import copyPublicFolder from './build/copyPublicFolder.js';
|
|
29
31
|
import testSchema from './build/testSchema.js';
|
|
30
|
-
import validateConfig from './build/validateConfig.js';
|
|
31
32
|
import updateServerPackageJson from './build/updateServerPackageJson.js';
|
|
33
|
+
import validateConfig from './build/validateConfig.js';
|
|
32
34
|
import writeApp from './build/writeApp.js';
|
|
33
35
|
import writeAuth from './build/writeAuth.js';
|
|
34
|
-
import writePluginImports from './build/writePluginImports/writePluginImports.js';
|
|
35
36
|
import writeConfig from './build/writeConfig.js';
|
|
36
37
|
import writeConnections from './build/writeConnections.js';
|
|
38
|
+
import writeApi from './build/writeApi.js';
|
|
37
39
|
import writeGlobal from './build/writeGlobal.js';
|
|
40
|
+
import writeJs from './build/buildJs/writeJs.js';
|
|
38
41
|
import writeMaps from './build/writeMaps.js';
|
|
39
42
|
import writeMenus from './build/writeMenus.js';
|
|
40
43
|
import writePages from './build/writePages.js';
|
|
44
|
+
import writePluginImports from './build/writePluginImports/writePluginImports.js';
|
|
41
45
|
import writeRequests from './build/writeRequests.js';
|
|
42
46
|
import writeTypes from './build/writeTypes.js';
|
|
43
47
|
async function build(options) {
|
|
@@ -69,6 +73,10 @@ async function build(options) {
|
|
|
69
73
|
components,
|
|
70
74
|
context
|
|
71
75
|
});
|
|
76
|
+
buildApi({
|
|
77
|
+
components,
|
|
78
|
+
context
|
|
79
|
+
});
|
|
72
80
|
buildPages({
|
|
73
81
|
components,
|
|
74
82
|
context
|
|
@@ -77,6 +85,10 @@ async function build(options) {
|
|
|
77
85
|
components,
|
|
78
86
|
context
|
|
79
87
|
});
|
|
88
|
+
buildJs({
|
|
89
|
+
components,
|
|
90
|
+
context
|
|
91
|
+
});
|
|
80
92
|
addKeys({
|
|
81
93
|
components,
|
|
82
94
|
context
|
|
@@ -104,6 +116,10 @@ async function build(options) {
|
|
|
104
116
|
components,
|
|
105
117
|
context
|
|
106
118
|
});
|
|
119
|
+
await writeApi({
|
|
120
|
+
components,
|
|
121
|
+
context
|
|
122
|
+
});
|
|
107
123
|
await writeRequests({
|
|
108
124
|
components,
|
|
109
125
|
context
|
|
@@ -136,6 +152,10 @@ async function build(options) {
|
|
|
136
152
|
components,
|
|
137
153
|
context
|
|
138
154
|
});
|
|
155
|
+
await writeJs({
|
|
156
|
+
components,
|
|
157
|
+
context
|
|
158
|
+
});
|
|
139
159
|
await updateServerPackageJson({
|
|
140
160
|
components,
|
|
141
161
|
context
|
package/dist/lowdefySchema.js
CHANGED
|
@@ -488,6 +488,44 @@ export default {
|
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
|
+
endpoint: {
|
|
492
|
+
type: 'object',
|
|
493
|
+
additionalProperties: false,
|
|
494
|
+
required: [
|
|
495
|
+
'id',
|
|
496
|
+
'type'
|
|
497
|
+
],
|
|
498
|
+
properties: {
|
|
499
|
+
id: {
|
|
500
|
+
type: 'string',
|
|
501
|
+
errorMessage: {
|
|
502
|
+
type: 'Api endpoint "id" should be a string.'
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
type: {
|
|
506
|
+
type: 'string',
|
|
507
|
+
errorMessage: {
|
|
508
|
+
type: 'Api endpoint "type" should be a string.'
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
routine: {
|
|
512
|
+
anyOf: [
|
|
513
|
+
{
|
|
514
|
+
type: 'array',
|
|
515
|
+
errorMessage: {
|
|
516
|
+
type: 'Api endpoint "routine" should be an array or object.'
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
type: 'object',
|
|
521
|
+
errorMessage: {
|
|
522
|
+
type: 'Api endpoint "routine" should be an array or object.'
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
]
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
},
|
|
491
529
|
connection: {
|
|
492
530
|
type: 'object',
|
|
493
531
|
additionalProperties: false,
|
|
@@ -845,6 +883,15 @@ export default {
|
|
|
845
883
|
type: 'App "connections" should be an array.'
|
|
846
884
|
}
|
|
847
885
|
},
|
|
886
|
+
api: {
|
|
887
|
+
type: 'array',
|
|
888
|
+
items: {
|
|
889
|
+
$ref: '#/definitions/endpoint'
|
|
890
|
+
},
|
|
891
|
+
errorMessage: {
|
|
892
|
+
type: 'App "api" should be an array.'
|
|
893
|
+
}
|
|
894
|
+
},
|
|
848
895
|
menus: {
|
|
849
896
|
type: 'array',
|
|
850
897
|
items: {
|
package/dist/scripts/run.js
CHANGED
package/dist/test/testContext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -40,6 +40,7 @@ function testContext({ writeBuildArtifact, configDirectory, readConfigFile, logg
|
|
|
40
40
|
blocks: createCounter(),
|
|
41
41
|
connections: createCounter(),
|
|
42
42
|
requests: createCounter(),
|
|
43
|
+
controls: createCounter(),
|
|
43
44
|
operators: {
|
|
44
45
|
client: createCounter(),
|
|
45
46
|
server: createCounter()
|
|
@@ -48,7 +49,8 @@ function testContext({ writeBuildArtifact, configDirectory, readConfigFile, logg
|
|
|
48
49
|
writeBuildArtifact: writeBuildArtifact || (()=>{}),
|
|
49
50
|
readConfigFile: readConfigFile || (()=>{}),
|
|
50
51
|
refMap: {},
|
|
51
|
-
keyMap: {}
|
|
52
|
+
keyMap: {},
|
|
53
|
+
jsMap: {}
|
|
52
54
|
};
|
|
53
55
|
context.logger = {
|
|
54
56
|
...defaultLogger,
|
package/dist/utils/makeId.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/build",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20241107140648",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"dist/*"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@lowdefy/ajv": "0.0.0-experimental-
|
|
48
|
-
"@lowdefy/blocks-basic": "0.0.0-experimental-
|
|
49
|
-
"@lowdefy/blocks-loaders": "0.0.0-experimental-
|
|
50
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
51
|
-
"@lowdefy/node-utils": "0.0.0-experimental-
|
|
52
|
-
"@lowdefy/nunjucks": "0.0.0-experimental-
|
|
53
|
-
"@lowdefy/operators": "0.0.0-experimental-
|
|
54
|
-
"@lowdefy/operators-js": "0.0.0-experimental-
|
|
47
|
+
"@lowdefy/ajv": "0.0.0-experimental-20241107140648",
|
|
48
|
+
"@lowdefy/blocks-basic": "0.0.0-experimental-20241107140648",
|
|
49
|
+
"@lowdefy/blocks-loaders": "0.0.0-experimental-20241107140648",
|
|
50
|
+
"@lowdefy/helpers": "0.0.0-experimental-20241107140648",
|
|
51
|
+
"@lowdefy/node-utils": "0.0.0-experimental-20241107140648",
|
|
52
|
+
"@lowdefy/nunjucks": "0.0.0-experimental-20241107140648",
|
|
53
|
+
"@lowdefy/operators": "0.0.0-experimental-20241107140648",
|
|
54
|
+
"@lowdefy/operators-js": "0.0.0-experimental-20241107140648",
|
|
55
55
|
"ajv": "8.12.0",
|
|
56
56
|
"json5": "2.2.3",
|
|
57
57
|
"yaml": "2.3.4",
|
|
@@ -59,35 +59,35 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@jest/globals": "28.1.3",
|
|
62
|
-
"@lowdefy/actions-core": "0.0.0-experimental-
|
|
63
|
-
"@lowdefy/actions-pdf-make": "0.0.0-experimental-
|
|
64
|
-
"@lowdefy/blocks-aggrid": "0.0.0-experimental-
|
|
65
|
-
"@lowdefy/blocks-algolia": "0.0.0-experimental-
|
|
66
|
-
"@lowdefy/blocks-antd": "0.0.0-experimental-
|
|
67
|
-
"@lowdefy/blocks-color-selectors": "0.0.0-experimental-
|
|
68
|
-
"@lowdefy/blocks-echarts": "0.0.0-experimental-
|
|
69
|
-
"@lowdefy/blocks-google-maps": "0.0.0-experimental-
|
|
70
|
-
"@lowdefy/blocks-markdown": "0.0.0-experimental-
|
|
71
|
-
"@lowdefy/blocks-qr": "0.0.0-experimental-
|
|
72
|
-
"@lowdefy/connection-axios-http": "0.0.0-experimental-
|
|
73
|
-
"@lowdefy/connection-elasticsearch": "0.0.0-experimental-
|
|
74
|
-
"@lowdefy/connection-google-sheets": "0.0.0-experimental-
|
|
75
|
-
"@lowdefy/connection-knex": "0.0.0-experimental-
|
|
76
|
-
"@lowdefy/connection-mongodb": "0.0.0-experimental-
|
|
77
|
-
"@lowdefy/connection-redis": "0.0.0-experimental-
|
|
78
|
-
"@lowdefy/connection-sendgrid": "0.0.0-experimental-
|
|
79
|
-
"@lowdefy/connection-stripe": "0.0.0-experimental-
|
|
80
|
-
"@lowdefy/operators-change-case": "0.0.0-experimental-
|
|
81
|
-
"@lowdefy/operators-diff": "0.0.0-experimental-
|
|
82
|
-
"@lowdefy/operators-moment": "0.0.0-experimental-
|
|
83
|
-
"@lowdefy/operators-mql": "0.0.0-experimental-
|
|
84
|
-
"@lowdefy/operators-nunjucks": "0.0.0-experimental-
|
|
85
|
-
"@lowdefy/operators-uuid": "0.0.0-experimental-
|
|
86
|
-
"@lowdefy/operators-yaml": "0.0.0-experimental-
|
|
87
|
-
"@lowdefy/plugin-auth0": "0.0.0-experimental-
|
|
88
|
-
"@lowdefy/plugin-aws": "0.0.0-experimental-
|
|
89
|
-
"@lowdefy/plugin-csv": "0.0.0-experimental-
|
|
90
|
-
"@lowdefy/plugin-next-auth": "0.0.0-experimental-
|
|
62
|
+
"@lowdefy/actions-core": "0.0.0-experimental-20241107140648",
|
|
63
|
+
"@lowdefy/actions-pdf-make": "0.0.0-experimental-20241107140648",
|
|
64
|
+
"@lowdefy/blocks-aggrid": "0.0.0-experimental-20241107140648",
|
|
65
|
+
"@lowdefy/blocks-algolia": "0.0.0-experimental-20241107140648",
|
|
66
|
+
"@lowdefy/blocks-antd": "0.0.0-experimental-20241107140648",
|
|
67
|
+
"@lowdefy/blocks-color-selectors": "0.0.0-experimental-20241107140648",
|
|
68
|
+
"@lowdefy/blocks-echarts": "0.0.0-experimental-20241107140648",
|
|
69
|
+
"@lowdefy/blocks-google-maps": "0.0.0-experimental-20241107140648",
|
|
70
|
+
"@lowdefy/blocks-markdown": "0.0.0-experimental-20241107140648",
|
|
71
|
+
"@lowdefy/blocks-qr": "0.0.0-experimental-20241107140648",
|
|
72
|
+
"@lowdefy/connection-axios-http": "0.0.0-experimental-20241107140648",
|
|
73
|
+
"@lowdefy/connection-elasticsearch": "0.0.0-experimental-20241107140648",
|
|
74
|
+
"@lowdefy/connection-google-sheets": "0.0.0-experimental-20241107140648",
|
|
75
|
+
"@lowdefy/connection-knex": "0.0.0-experimental-20241107140648",
|
|
76
|
+
"@lowdefy/connection-mongodb": "0.0.0-experimental-20241107140648",
|
|
77
|
+
"@lowdefy/connection-redis": "0.0.0-experimental-20241107140648",
|
|
78
|
+
"@lowdefy/connection-sendgrid": "0.0.0-experimental-20241107140648",
|
|
79
|
+
"@lowdefy/connection-stripe": "0.0.0-experimental-20241107140648",
|
|
80
|
+
"@lowdefy/operators-change-case": "0.0.0-experimental-20241107140648",
|
|
81
|
+
"@lowdefy/operators-diff": "0.0.0-experimental-20241107140648",
|
|
82
|
+
"@lowdefy/operators-moment": "0.0.0-experimental-20241107140648",
|
|
83
|
+
"@lowdefy/operators-mql": "0.0.0-experimental-20241107140648",
|
|
84
|
+
"@lowdefy/operators-nunjucks": "0.0.0-experimental-20241107140648",
|
|
85
|
+
"@lowdefy/operators-uuid": "0.0.0-experimental-20241107140648",
|
|
86
|
+
"@lowdefy/operators-yaml": "0.0.0-experimental-20241107140648",
|
|
87
|
+
"@lowdefy/plugin-auth0": "0.0.0-experimental-20241107140648",
|
|
88
|
+
"@lowdefy/plugin-aws": "0.0.0-experimental-20241107140648",
|
|
89
|
+
"@lowdefy/plugin-csv": "0.0.0-experimental-20241107140648",
|
|
90
|
+
"@lowdefy/plugin-next-auth": "0.0.0-experimental-20241107140648",
|
|
91
91
|
"@swc/cli": "0.1.63",
|
|
92
92
|
"@swc/core": "1.3.99",
|
|
93
93
|
"@swc/jest": "0.2.29",
|