@budibase/pro 3.18.0 → 3.18.2
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.
|
@@ -4,9 +4,9 @@ import { TableSchemaFromAI } from "../types";
|
|
|
4
4
|
export declare const generationStructure: z.ZodObject<{
|
|
5
5
|
tables: z.ZodArray<z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
|
-
schema: z.ZodArray<z.ZodUnion<[z.ZodObject<
|
|
7
|
+
schema: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
8
8
|
name: z.ZodString;
|
|
9
|
-
}
|
|
9
|
+
} & {
|
|
10
10
|
type: z.ZodEnum<[FieldType.STRING, FieldType.NUMBER, FieldType.BOOLEAN, FieldType.LONGFORM]>;
|
|
11
11
|
constraints: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
12
12
|
presence: z.ZodBoolean;
|
|
@@ -15,7 +15,7 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
15
15
|
}, {
|
|
16
16
|
presence: boolean;
|
|
17
17
|
}>>>;
|
|
18
|
-
}
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
name: string;
|
|
20
20
|
type: FieldType.STRING | FieldType.LONGFORM | FieldType.NUMBER | FieldType.BOOLEAN;
|
|
21
21
|
constraints?: {
|
|
@@ -27,16 +27,16 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
27
27
|
constraints?: {
|
|
28
28
|
presence: boolean;
|
|
29
29
|
} | null | undefined;
|
|
30
|
-
}>, z.ZodObject<
|
|
30
|
+
}>, z.ZodObject<{
|
|
31
31
|
name: z.ZodString;
|
|
32
|
-
}
|
|
32
|
+
} & {
|
|
33
33
|
type: z.ZodLiteral<FieldType.LINK>;
|
|
34
34
|
tableId: z.ZodString;
|
|
35
35
|
reverseFieldName: z.ZodString;
|
|
36
36
|
relationshipId: z.ZodString;
|
|
37
|
-
}
|
|
37
|
+
} & {
|
|
38
38
|
relationshipType: z.ZodEnum<[RelationshipType.MANY_TO_ONE]>;
|
|
39
|
-
}
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
name: string;
|
|
41
41
|
type: FieldType.LINK;
|
|
42
42
|
tableId: string;
|
|
@@ -50,16 +50,16 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
50
50
|
reverseFieldName: string;
|
|
51
51
|
relationshipId: string;
|
|
52
52
|
relationshipType: RelationshipType.MANY_TO_ONE;
|
|
53
|
-
}>, z.ZodObject<
|
|
53
|
+
}>, z.ZodObject<{
|
|
54
54
|
name: z.ZodString;
|
|
55
|
-
}
|
|
55
|
+
} & {
|
|
56
56
|
type: z.ZodLiteral<FieldType.LINK>;
|
|
57
57
|
tableId: z.ZodString;
|
|
58
58
|
reverseFieldName: z.ZodString;
|
|
59
59
|
relationshipId: z.ZodString;
|
|
60
|
-
}
|
|
60
|
+
} & {
|
|
61
61
|
relationshipType: z.ZodEnum<[RelationshipType.ONE_TO_MANY]>;
|
|
62
|
-
}
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
63
|
name: string;
|
|
64
64
|
type: FieldType.LINK;
|
|
65
65
|
tableId: string;
|
|
@@ -73,16 +73,16 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
73
73
|
reverseFieldName: string;
|
|
74
74
|
relationshipId: string;
|
|
75
75
|
relationshipType: RelationshipType.ONE_TO_MANY;
|
|
76
|
-
}>, z.ZodObject<
|
|
76
|
+
}>, z.ZodObject<{
|
|
77
77
|
name: z.ZodString;
|
|
78
|
-
}
|
|
78
|
+
} & {
|
|
79
79
|
type: z.ZodLiteral<FieldType.LINK>;
|
|
80
80
|
tableId: z.ZodString;
|
|
81
81
|
reverseFieldName: z.ZodString;
|
|
82
82
|
relationshipId: z.ZodString;
|
|
83
|
-
}
|
|
83
|
+
} & {
|
|
84
84
|
relationshipType: z.ZodEnum<[RelationshipType.MANY_TO_MANY]>;
|
|
85
|
-
}
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
name: string;
|
|
87
87
|
type: FieldType.LINK;
|
|
88
88
|
tableId: string;
|
|
@@ -96,9 +96,9 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
96
96
|
reverseFieldName: string;
|
|
97
97
|
relationshipId: string;
|
|
98
98
|
relationshipType: RelationshipType.MANY_TO_MANY;
|
|
99
|
-
}>, z.ZodObject<
|
|
99
|
+
}>, z.ZodObject<{
|
|
100
100
|
name: z.ZodString;
|
|
101
|
-
}
|
|
101
|
+
} & {
|
|
102
102
|
type: z.ZodLiteral<FieldType.OPTIONS>;
|
|
103
103
|
constraints: z.ZodObject<{
|
|
104
104
|
inclusion: z.ZodArray<z.ZodString, "many">;
|
|
@@ -110,7 +110,7 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
110
110
|
presence: boolean;
|
|
111
111
|
inclusion: string[];
|
|
112
112
|
}>;
|
|
113
|
-
}
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
114
|
name: string;
|
|
115
115
|
type: FieldType.OPTIONS;
|
|
116
116
|
constraints: {
|
|
@@ -124,9 +124,9 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
124
124
|
presence: boolean;
|
|
125
125
|
inclusion: string[];
|
|
126
126
|
};
|
|
127
|
-
}>, z.ZodObject<
|
|
127
|
+
}>, z.ZodObject<{
|
|
128
128
|
name: z.ZodString;
|
|
129
|
-
}
|
|
129
|
+
} & {
|
|
130
130
|
type: z.ZodLiteral<FieldType.ARRAY>;
|
|
131
131
|
constraints: z.ZodObject<{
|
|
132
132
|
inclusion: z.ZodArray<z.ZodString, "many">;
|
|
@@ -141,7 +141,7 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
141
141
|
presence: boolean;
|
|
142
142
|
inclusion: string[];
|
|
143
143
|
}>;
|
|
144
|
-
}
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
145
|
name: string;
|
|
146
146
|
type: FieldType.ARRAY;
|
|
147
147
|
constraints: {
|
|
@@ -157,13 +157,13 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
157
157
|
presence: boolean;
|
|
158
158
|
inclusion: string[];
|
|
159
159
|
};
|
|
160
|
-
}>, z.ZodObject<
|
|
160
|
+
}>, z.ZodObject<{
|
|
161
161
|
name: z.ZodString;
|
|
162
|
-
}
|
|
162
|
+
} & {
|
|
163
163
|
type: z.ZodLiteral<FieldType.FORMULA>;
|
|
164
164
|
formula: z.ZodString;
|
|
165
165
|
responseType: z.ZodEnum<[FieldType.STRING, FieldType.NUMBER, FieldType.BOOLEAN, FieldType.DATETIME]>;
|
|
166
|
-
}
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
167
|
name: string;
|
|
168
168
|
type: FieldType.FORMULA;
|
|
169
169
|
formula: string;
|
|
@@ -173,12 +173,12 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
173
173
|
type: FieldType.FORMULA;
|
|
174
174
|
formula: string;
|
|
175
175
|
responseType: FieldType.STRING | FieldType.NUMBER | FieldType.BOOLEAN | FieldType.DATETIME;
|
|
176
|
-
}>, z.ZodObject<
|
|
176
|
+
}>, z.ZodObject<{
|
|
177
177
|
name: z.ZodString;
|
|
178
|
-
}
|
|
178
|
+
} & {
|
|
179
179
|
type: z.ZodLiteral<FieldType.DATETIME>;
|
|
180
180
|
ignoreTimezones: z.ZodBoolean;
|
|
181
|
-
}
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
182
|
name: string;
|
|
183
183
|
type: FieldType.DATETIME;
|
|
184
184
|
ignoreTimezones: boolean;
|
|
@@ -186,13 +186,13 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
186
186
|
name: string;
|
|
187
187
|
type: FieldType.DATETIME;
|
|
188
188
|
ignoreTimezones: boolean;
|
|
189
|
-
}>, z.ZodObject<
|
|
189
|
+
}>, z.ZodObject<{
|
|
190
190
|
name: z.ZodString;
|
|
191
|
-
}
|
|
191
|
+
} & {
|
|
192
192
|
type: z.ZodLiteral<FieldType.DATETIME>;
|
|
193
193
|
ignoreTimezones: z.ZodBoolean;
|
|
194
194
|
timeOnly: z.ZodLiteral<true>;
|
|
195
|
-
}
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
196
|
name: string;
|
|
197
197
|
type: FieldType.DATETIME;
|
|
198
198
|
ignoreTimezones: boolean;
|
|
@@ -202,13 +202,13 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
202
202
|
type: FieldType.DATETIME;
|
|
203
203
|
ignoreTimezones: boolean;
|
|
204
204
|
timeOnly: true;
|
|
205
|
-
}>, z.ZodObject<
|
|
205
|
+
}>, z.ZodObject<{
|
|
206
206
|
name: z.ZodString;
|
|
207
|
-
}
|
|
207
|
+
} & {
|
|
208
208
|
type: z.ZodLiteral<FieldType.DATETIME>;
|
|
209
209
|
ignoreTimezones: z.ZodBoolean;
|
|
210
210
|
dateOnly: z.ZodLiteral<true>;
|
|
211
|
-
}
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
212
|
name: string;
|
|
213
213
|
type: FieldType.DATETIME;
|
|
214
214
|
ignoreTimezones: boolean;
|
|
@@ -218,12 +218,12 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
218
218
|
type: FieldType.DATETIME;
|
|
219
219
|
ignoreTimezones: boolean;
|
|
220
220
|
dateOnly: true;
|
|
221
|
-
}>, z.ZodObject<
|
|
221
|
+
}>, z.ZodObject<{
|
|
222
222
|
name: z.ZodString;
|
|
223
|
-
}
|
|
223
|
+
} & {
|
|
224
224
|
type: z.ZodLiteral<FieldType.ATTACHMENT_SINGLE>;
|
|
225
225
|
subtype: z.ZodLiteral<AttachmentSubType>;
|
|
226
|
-
}
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
227
|
name: string;
|
|
228
228
|
type: FieldType.ATTACHMENT_SINGLE;
|
|
229
229
|
subtype: AttachmentSubType;
|
|
@@ -231,22 +231,22 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
231
231
|
name: string;
|
|
232
232
|
type: FieldType.ATTACHMENT_SINGLE;
|
|
233
233
|
subtype: AttachmentSubType;
|
|
234
|
-
}>, z.ZodObject<
|
|
234
|
+
}>, z.ZodObject<{
|
|
235
235
|
name: z.ZodString;
|
|
236
|
-
}
|
|
236
|
+
} & {
|
|
237
237
|
type: z.ZodLiteral<FieldType.ATTACHMENT_SINGLE>;
|
|
238
|
-
}
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
239
|
name: string;
|
|
240
240
|
type: FieldType.ATTACHMENT_SINGLE;
|
|
241
241
|
}, {
|
|
242
242
|
name: string;
|
|
243
243
|
type: FieldType.ATTACHMENT_SINGLE;
|
|
244
|
-
}>, z.ZodObject<
|
|
244
|
+
}>, z.ZodObject<{
|
|
245
245
|
name: z.ZodString;
|
|
246
|
-
}
|
|
246
|
+
} & {
|
|
247
247
|
type: z.ZodLiteral<FieldType.ATTACHMENTS>;
|
|
248
248
|
subtype: z.ZodLiteral<AttachmentSubType>;
|
|
249
|
-
}
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
250
|
name: string;
|
|
251
251
|
type: FieldType.ATTACHMENTS;
|
|
252
252
|
subtype: AttachmentSubType;
|
|
@@ -254,11 +254,11 @@ export declare const generationStructure: z.ZodObject<{
|
|
|
254
254
|
name: string;
|
|
255
255
|
type: FieldType.ATTACHMENTS;
|
|
256
256
|
subtype: AttachmentSubType;
|
|
257
|
-
}>, z.ZodObject<
|
|
257
|
+
}>, z.ZodObject<{
|
|
258
258
|
name: z.ZodString;
|
|
259
|
-
}
|
|
259
|
+
} & {
|
|
260
260
|
type: z.ZodLiteral<FieldType.ATTACHMENTS>;
|
|
261
|
-
}
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
name: string;
|
|
263
263
|
type: FieldType.ATTACHMENTS;
|
|
264
264
|
}, {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"dist"
|
|
5
5
|
],
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
|
-
"version": "3.18.
|
|
7
|
+
"version": "3.18.2",
|
|
8
8
|
"description": "Budibase Pro (Backend)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
@@ -32,23 +32,21 @@
|
|
|
32
32
|
"zod": "^3.23.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@types/jest": "29.5.5",
|
|
36
35
|
"@types/jsonwebtoken": "9.0.3",
|
|
37
36
|
"@types/koa": "2.13.4",
|
|
38
37
|
"@types/koa__router": "12.0.4",
|
|
39
38
|
"@types/lodash": "4.14.200",
|
|
40
39
|
"@types/node-fetch": "2.6.4",
|
|
41
|
-
"jest": "29.7.0",
|
|
42
40
|
"rimraf": "3.0.2",
|
|
43
41
|
"timekeeper": "^2.2.0",
|
|
44
|
-
"ts-jest": "29.1.1",
|
|
45
42
|
"ts-node": "10.8.1",
|
|
46
43
|
"tsconfig-paths": "^4.2.0"
|
|
47
44
|
},
|
|
48
45
|
"scripts": {
|
|
49
46
|
"setup": "yarn && yarn build",
|
|
50
47
|
"prebuild": "rimraf dist",
|
|
51
|
-
"build": "node ../../scripts/build.js &&
|
|
48
|
+
"build": "node ../../scripts/build.js && yarn build:types",
|
|
49
|
+
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --paths null",
|
|
52
50
|
"check:types": "tsc -p tsconfig.build.json --noEmit --paths null",
|
|
53
51
|
"test": "jest --runInBand",
|
|
54
52
|
"test:watch": "jest --watch --runInBand",
|
|
@@ -72,5 +70,5 @@
|
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
},
|
|
75
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "43d59f5579dd910575d8aebefb40fae25570c05d"
|
|
76
74
|
}
|