@naiv/codegen-axios-client 0.0.4 → 0.0.6
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-from-table.js +2 -1
- package/package.json +2 -2
package/dist/build-from-table.js
CHANGED
|
@@ -136,7 +136,8 @@ function buildColumnRelation(type, column, table, source) {
|
|
|
136
136
|
throw new Error(`Column "${type.subtype}" on table "${type.type}" not found on relation "${table.name}.${column.column_name}"`);
|
|
137
137
|
}
|
|
138
138
|
return [
|
|
139
|
-
`${column.column_name}${is_required ? '' : '?'}: ${mapSQLTypeToJSType(foreign_column.type)}
|
|
139
|
+
`${column.column_name}${is_required ? '' : '?'}: ${mapSQLTypeToJSType(foreign_column.type)};`,
|
|
140
|
+
`otm_${column.column_name}?: ${foreign_table.name};`
|
|
140
141
|
];
|
|
141
142
|
}
|
|
142
143
|
function buildColumn(column, table, source) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naiv/codegen-axios-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"typescript": "^5.6.3"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@naiv/core": "^0.0.
|
|
31
|
+
"@naiv/core": "^0.0.11",
|
|
32
32
|
"arg": "^5.0.2",
|
|
33
33
|
"lodash": "^4.17.21"
|
|
34
34
|
}
|