@carbonorm/carbonnode 1.2.12 → 1.2.13
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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
iC6RestfulModel,
|
|
3
2
|
C6Constants,
|
|
4
3
|
iC6Object,
|
|
5
|
-
|
|
4
|
+
iC6RestfulModel,
|
|
5
|
+
tC6Tables,
|
|
6
6
|
} from "@carbonorm/carbonnode";
|
|
7
7
|
|
|
8
|
-
export const RestTablePrefix = {{{PREFIX}}};
|
|
8
|
+
export const RestTablePrefix = '{{{PREFIX}}}';
|
|
9
9
|
|
|
10
10
|
export type RestTableNames = {{{RestTableNames}}};
|
|
11
11
|
|
|
@@ -84,7 +84,7 @@ export const TABLES: tC6Tables = {
|
|
|
84
84
|
{{/TABLES}}
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
export const C6 :
|
|
87
|
+
export const C6 : iC6Object = {
|
|
88
88
|
...C6Constants,
|
|
89
89
|
PREFIX: RestTablePrefix,
|
|
90
90
|
TABLES: TABLES,
|
|
@@ -8,10 +8,11 @@ import {
|
|
|
8
8
|
iDeleteC6RestResponse,
|
|
9
9
|
iGetC6RestResponse,
|
|
10
10
|
iPutC6RestResponse,
|
|
11
|
-
removeInvalidKeys
|
|
11
|
+
removeInvalidKeys,
|
|
12
|
+
iAPI,
|
|
13
|
+
Modify
|
|
12
14
|
} from "@carbonorm/carbonnode";
|
|
13
15
|
import {AxiosResponse} from "axios";
|
|
14
|
-
import {iAPI, Modify} from "restRequest";
|
|
15
16
|
import {deleteRestfulObjectArrays, updateRestfulObjectArrays} from "@carbonorm/carbonreact";
|
|
16
17
|
import {C6, i{{TABLE_NAME_SHORT_PASCAL_CASE}}, {{TABLE_NAME_SHORT}}, RestTableNames} from "./C6";
|
|
17
18
|
|
|
@@ -107,7 +107,6 @@ function capitalizeFirstLetter(string) {
|
|
|
107
107
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
108
108
|
}
|
|
109
109
|
function determineTypeScriptType(mysqlType) {
|
|
110
|
-
console.log(mysqlType);
|
|
111
110
|
switch (mysqlType.toLowerCase()) {
|
|
112
111
|
case 'varchar':
|
|
113
112
|
case 'text':
|