@lowdefy/build 4.0.0-alpha.21 → 4.0.0-alpha.24

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.
@@ -83,6 +83,37 @@ export default {
83
83
  }
84
84
  }
85
85
  },
86
+ adapter: {
87
+ type: 'object',
88
+ required: [
89
+ 'id',
90
+ 'type'
91
+ ],
92
+ properties: {
93
+ id: {
94
+ type: 'string',
95
+ errorMessage: {
96
+ type: 'Auth adapter "id" should be a string.'
97
+ }
98
+ },
99
+ type: {
100
+ type: 'string',
101
+ errorMessage: {
102
+ type: 'Auth adapter "type" should be a string.'
103
+ }
104
+ },
105
+ properties: {
106
+ type: 'object'
107
+ }
108
+ },
109
+ errorMessage: {
110
+ type: 'Auth adapter should be an object.',
111
+ required: {
112
+ id: 'Auth adapter should have required property "id".',
113
+ type: 'Auth adapter should have required property "type".'
114
+ }
115
+ }
116
+ },
86
117
  callbacks: {
87
118
  type: 'array',
88
119
  items: {
@@ -48,6 +48,7 @@ async function generateDefaultTypesMap() {
48
48
  const defaultTypesMap = {
49
49
  actions: {},
50
50
  auth: {
51
+ adapters: {},
51
52
  callbacks: {},
52
53
  events: {},
53
54
  providers: {}
@@ -29,6 +29,7 @@ function testContext({ writeBuildArtifact , configDirectory , readConfigFile , l
29
29
  typeCounters: {
30
30
  actions: createCounter(),
31
31
  auth: {
32
+ adapters: createCounter(),
32
33
  callbacks: createCounter(),
33
34
  events: createCounter(),
34
35
  providers: createCounter()
@@ -32,6 +32,13 @@ function createPluginTypesMap({ packageName , packageTypes , typePrefix ='' , ty
32
32
  typePrefix,
33
33
  version
34
34
  });
35
+ createTypeDefinitions({
36
+ typeNames: type.isObject(packageTypes.auth) ? packageTypes.auth.adapters : [],
37
+ store: typesMap.auth.adapters,
38
+ packageName,
39
+ typePrefix,
40
+ version
41
+ });
35
42
  createTypeDefinitions({
36
43
  typeNames: type.isObject(packageTypes.auth) ? packageTypes.auth.callbacks : [],
37
44
  store: typesMap.auth.callbacks,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/build",
3
- "version": "4.0.0-alpha.21",
3
+ "version": "4.0.0-alpha.24",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -52,14 +52,14 @@
52
52
  "test": "yarn node --experimental-vm-modules $(yarn bin jest)"
53
53
  },
54
54
  "dependencies": {
55
- "@lowdefy/ajv": "4.0.0-alpha.21",
56
- "@lowdefy/blocks-basic": "4.0.0-alpha.21",
57
- "@lowdefy/blocks-loaders": "4.0.0-alpha.21",
58
- "@lowdefy/helpers": "4.0.0-alpha.21",
59
- "@lowdefy/node-utils": "4.0.0-alpha.21",
60
- "@lowdefy/nunjucks": "4.0.0-alpha.21",
61
- "@lowdefy/operators": "4.0.0-alpha.21",
62
- "@lowdefy/operators-js": "4.0.0-alpha.21",
55
+ "@lowdefy/ajv": "4.0.0-alpha.24",
56
+ "@lowdefy/blocks-basic": "4.0.0-alpha.24",
57
+ "@lowdefy/blocks-loaders": "4.0.0-alpha.24",
58
+ "@lowdefy/helpers": "4.0.0-alpha.24",
59
+ "@lowdefy/node-utils": "4.0.0-alpha.24",
60
+ "@lowdefy/nunjucks": "4.0.0-alpha.24",
61
+ "@lowdefy/operators": "4.0.0-alpha.24",
62
+ "@lowdefy/operators-js": "4.0.0-alpha.24",
63
63
  "ajv": "8.11.0",
64
64
  "json5": "2.2.1",
65
65
  "uuid": "8.3.2",
@@ -68,28 +68,28 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@jest/globals": "28.1.0",
71
- "@lowdefy/actions-core": "4.0.0-alpha.21",
72
- "@lowdefy/blocks-aggrid": "4.0.0-alpha.21",
73
- "@lowdefy/blocks-antd": "4.0.0-alpha.21",
74
- "@lowdefy/blocks-color-selectors": "4.0.0-alpha.21",
75
- "@lowdefy/blocks-echarts": "4.0.0-alpha.21",
76
- "@lowdefy/blocks-google-maps": "4.0.0-alpha.21",
77
- "@lowdefy/blocks-markdown": "4.0.0-alpha.21",
78
- "@lowdefy/connection-axios-http": "4.0.0-alpha.21",
79
- "@lowdefy/connection-elasticsearch": "4.0.0-alpha.21",
80
- "@lowdefy/connection-google-sheets": "4.0.0-alpha.21",
81
- "@lowdefy/connection-knex": "4.0.0-alpha.21",
82
- "@lowdefy/connection-mongodb": "4.0.0-alpha.21",
83
- "@lowdefy/connection-redis": "4.0.0-alpha.21",
84
- "@lowdefy/connection-sendgrid": "4.0.0-alpha.21",
85
- "@lowdefy/connection-stripe": "4.0.0-alpha.21",
86
- "@lowdefy/operators-change-case": "4.0.0-alpha.21",
87
- "@lowdefy/operators-diff": "4.0.0-alpha.21",
88
- "@lowdefy/operators-mql": "4.0.0-alpha.21",
89
- "@lowdefy/operators-nunjucks": "4.0.0-alpha.21",
90
- "@lowdefy/operators-uuid": "4.0.0-alpha.21",
91
- "@lowdefy/operators-yaml": "4.0.0-alpha.21",
92
- "@lowdefy/plugin-next-auth": "4.0.0-alpha.21",
71
+ "@lowdefy/actions-core": "4.0.0-alpha.24",
72
+ "@lowdefy/blocks-aggrid": "4.0.0-alpha.24",
73
+ "@lowdefy/blocks-antd": "4.0.0-alpha.24",
74
+ "@lowdefy/blocks-color-selectors": "4.0.0-alpha.24",
75
+ "@lowdefy/blocks-echarts": "4.0.0-alpha.24",
76
+ "@lowdefy/blocks-google-maps": "4.0.0-alpha.24",
77
+ "@lowdefy/blocks-markdown": "4.0.0-alpha.24",
78
+ "@lowdefy/connection-axios-http": "4.0.0-alpha.24",
79
+ "@lowdefy/connection-elasticsearch": "4.0.0-alpha.24",
80
+ "@lowdefy/connection-google-sheets": "4.0.0-alpha.24",
81
+ "@lowdefy/connection-knex": "4.0.0-alpha.24",
82
+ "@lowdefy/connection-mongodb": "4.0.0-alpha.24",
83
+ "@lowdefy/connection-redis": "4.0.0-alpha.24",
84
+ "@lowdefy/connection-sendgrid": "4.0.0-alpha.24",
85
+ "@lowdefy/connection-stripe": "4.0.0-alpha.24",
86
+ "@lowdefy/operators-change-case": "4.0.0-alpha.24",
87
+ "@lowdefy/operators-diff": "4.0.0-alpha.24",
88
+ "@lowdefy/operators-mql": "4.0.0-alpha.24",
89
+ "@lowdefy/operators-nunjucks": "4.0.0-alpha.24",
90
+ "@lowdefy/operators-uuid": "4.0.0-alpha.24",
91
+ "@lowdefy/operators-yaml": "4.0.0-alpha.24",
92
+ "@lowdefy/plugin-next-auth": "4.0.0-alpha.24",
93
93
  "@swc/cli": "0.1.57",
94
94
  "@swc/core": "1.2.194",
95
95
  "@swc/jest": "0.2.21",
@@ -98,5 +98,5 @@
98
98
  "publishConfig": {
99
99
  "access": "public"
100
100
  },
101
- "gitHead": "748794b56e36b9b63b8942a235b16e98c00e4e83"
101
+ "gitHead": "7ae69eeb9a93964e2fb0bf08b7a21bee2636a630"
102
102
  }