@carbonorm/carbonnode 3.3.0 → 3.3.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.
|
@@ -154,7 +154,7 @@ export type C6RestfulModel<RestShortTableName extends string, RestTableInterface
|
|
|
154
154
|
[columnName: string]: iConstraint[];
|
|
155
155
|
};
|
|
156
156
|
} & {
|
|
157
|
-
[K in keyof RestTableInterface as Uppercase<string & K>]: string
|
|
157
|
+
[K in keyof RestTableInterface as Uppercase<string & K>]: NonNullable<string>;
|
|
158
158
|
};
|
|
159
159
|
export type iRestReactiveLifecycle<G extends OrmGenerics> = {
|
|
160
160
|
beforeProcessing?: {
|
package/package.json
CHANGED
|
@@ -32,12 +32,6 @@ export interface i{{TABLE_NAME_SHORT_PASCAL_CASE}} {
|
|
|
32
32
|
{{/each}}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
interface iDefine{{TABLE_NAME_SHORT_PASCAL_CASE}} {
|
|
36
|
-
{{#each COLUMNS_UPPERCASE}}
|
|
37
|
-
'{{@key}}': string;
|
|
38
|
-
{{/each}}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
35
|
export type {{TABLE_NAME_SHORT_PASCAL_CASE}}PrimaryKeys = {{#if PRIMARY_SHORT.length}}
|
|
42
36
|
{{#each PRIMARY_SHORT}}
|
|
43
37
|
'{{this}}'{{#unless @last}} |{{/unless}}
|
|
@@ -52,7 +46,7 @@ export const {{TABLE_NAME_SHORT}}:
|
|
|
52
46
|
i{{TABLE_NAME_SHORT_PASCAL_CASE}},
|
|
53
47
|
{{TABLE_NAME_SHORT_PASCAL_CASE}}PrimaryKeys
|
|
54
48
|
>
|
|
55
|
-
&
|
|
49
|
+
& { [K in keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}} as Uppercase<string & K>]: string } = {
|
|
56
50
|
TABLE_NAME: '{{TABLE_NAME}}',
|
|
57
51
|
{{#each COLUMNS_UPPERCASE}}
|
|
58
52
|
{{@key}}: '{{this}}',
|
|
@@ -191,7 +191,7 @@ export type C6RestfulModel<
|
|
|
191
191
|
TABLE_REFERENCES: { [columnName: string]: iConstraint[] };
|
|
192
192
|
TABLE_REFERENCED_BY: { [columnName: string]: iConstraint[] };
|
|
193
193
|
} & {
|
|
194
|
-
[K in keyof RestTableInterface as Uppercase<string & K>]: string
|
|
194
|
+
[K in keyof RestTableInterface as Uppercase<string & K>]: NonNullable<string>;
|
|
195
195
|
};
|
|
196
196
|
|
|
197
197
|
|