@carbonorm/carbonnode 1.2.6 → 1.2.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.
|
@@ -27,9 +27,11 @@ export type tC6Tables = {
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
export type tWsLiveUpdate = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
[key: string]: {
|
|
31
|
+
PUT: Function;
|
|
32
|
+
POST: Function;
|
|
33
|
+
DELETE: Function;
|
|
34
|
+
};
|
|
33
35
|
};
|
|
34
36
|
export interface C6RestfulModel<RestShortTableNames extends string = string> {
|
|
35
37
|
TABLE_NAME: RestShortTableNames;
|
package/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
export interface stringMap {
|
|
3
2
|
[key: string]: string;
|
|
4
3
|
}
|
|
@@ -30,7 +29,7 @@ export interface iConstraint {
|
|
|
30
29
|
|
|
31
30
|
export type tC6Tables = { [key: string]: (C6RestfulModel & { [key: string]: any }) }
|
|
32
31
|
|
|
33
|
-
export type tWsLiveUpdate = { PUT: Function, POST: Function, DELETE: Function };
|
|
32
|
+
export type tWsLiveUpdate = { [key: string]: { PUT: Function, POST: Function, DELETE: Function } };
|
|
34
33
|
|
|
35
34
|
export interface C6RestfulModel<RestShortTableNames extends string = string> {
|
|
36
35
|
TABLE_NAME: RestShortTableNames,
|
|
@@ -38,7 +37,7 @@ export interface C6RestfulModel<RestShortTableNames extends string = string> {
|
|
|
38
37
|
PRIMARY_SHORT: string[],
|
|
39
38
|
COLUMNS: stringMap,
|
|
40
39
|
REGEX_VALIDATION: RegExpMap,
|
|
41
|
-
TYPE_VALIDATION: {[key: string]: iTypeValidation},
|
|
42
|
-
TABLE_REFERENCES: {[columnName: string]: iConstraint[]},
|
|
43
|
-
TABLE_REFERENCED_BY: {[columnName: string]: iConstraint[]},
|
|
40
|
+
TYPE_VALIDATION: { [key: string]: iTypeValidation },
|
|
41
|
+
TABLE_REFERENCES: { [columnName: string]: iConstraint[] },
|
|
42
|
+
TABLE_REFERENCED_BY: { [columnName: string]: iConstraint[] },
|
|
44
43
|
}
|