@carbonorm/carbonnode 3.3.5 → 3.3.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.
|
@@ -139,8 +139,8 @@ export type tColumns<TableName extends string, T extends {
|
|
|
139
139
|
export type tPrimaryKeys<TableName extends string, PK extends string> = `${TableName}.${PK}`;
|
|
140
140
|
export type C6RestfulModel<RestShortTableName extends string, RestTableInterface extends Record<string, any> = any, PrimaryKey extends keyof RestTableInterface & string = keyof RestTableInterface & string> = {
|
|
141
141
|
TABLE_NAME: RestShortTableName;
|
|
142
|
-
PRIMARY: tPrimaryKeys<RestShortTableName, PrimaryKey
|
|
143
|
-
PRIMARY_SHORT: PrimaryKey
|
|
142
|
+
PRIMARY: Array<tPrimaryKeys<RestShortTableName, PrimaryKey>>;
|
|
143
|
+
PRIMARY_SHORT: Array<PrimaryKey>;
|
|
144
144
|
COLUMNS: tColumns<RestShortTableName, RestTableInterface>;
|
|
145
145
|
TYPE_VALIDATION: {
|
|
146
146
|
[key: string]: iTypeValidation;
|
package/package.json
CHANGED
|
@@ -182,8 +182,8 @@ export type C6RestfulModel<
|
|
|
182
182
|
PrimaryKey extends keyof RestTableInterface & string = keyof RestTableInterface & string
|
|
183
183
|
> = {
|
|
184
184
|
TABLE_NAME: RestShortTableName;
|
|
185
|
-
PRIMARY: tPrimaryKeys<RestShortTableName, PrimaryKey
|
|
186
|
-
PRIMARY_SHORT: PrimaryKey
|
|
185
|
+
PRIMARY: Array<tPrimaryKeys<RestShortTableName, PrimaryKey>>;
|
|
186
|
+
PRIMARY_SHORT: Array<PrimaryKey>;
|
|
187
187
|
COLUMNS: tColumns<RestShortTableName, RestTableInterface>;
|
|
188
188
|
TYPE_VALIDATION: { [key: string]: iTypeValidation };
|
|
189
189
|
REGEX_VALIDATION: RegExpMap;
|