@pylo/node 0.0.6 → 0.0.7
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/cli.js +4 -2
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -281,8 +281,9 @@ function generateCreateInputType(entity) {
|
|
|
281
281
|
}
|
|
282
282
|
for (const rel of entity.relations) {
|
|
283
283
|
for (const suffix of rel.suffixes) {
|
|
284
|
+
const valueType = rel.type === "hasMany" ? "Record<string, unknown>[]" : "Record<string, unknown>";
|
|
284
285
|
lines.push(
|
|
285
|
-
`${rel.fieldName}${suffix}?:
|
|
286
|
+
`${rel.fieldName}${suffix}?: ${valueType};`
|
|
286
287
|
);
|
|
287
288
|
}
|
|
288
289
|
}
|
|
@@ -304,8 +305,9 @@ function generateUpdateInputType(entity) {
|
|
|
304
305
|
}
|
|
305
306
|
for (const rel of entity.relations) {
|
|
306
307
|
for (const suffix of rel.suffixes) {
|
|
308
|
+
const valueType = rel.type === "hasMany" ? "Record<string, unknown>[]" : "Record<string, unknown>";
|
|
307
309
|
lines.push(
|
|
308
|
-
`${rel.fieldName}${suffix}?:
|
|
310
|
+
`${rel.fieldName}${suffix}?: ${valueType};`
|
|
309
311
|
);
|
|
310
312
|
}
|
|
311
313
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pylo/node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Server-side Pylo SDK with API key authentication",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/node": "^22.15.21",
|
|
29
29
|
"tsup": "^8.5.1",
|
|
30
30
|
"typescript": "^5.9.3",
|
|
31
|
-
"@pylo/core": "0.0.
|
|
31
|
+
"@pylo/core": "0.0.9",
|
|
32
32
|
"@pylo/auth": "0.0.4"
|
|
33
33
|
},
|
|
34
34
|
"license": "ISC",
|