@carbonorm/carbonnode 3.4.8 → 3.4.11
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/api/restOrm.d.ts +9 -53
- package/dist/api/types/ormInterfaces.d.ts +1 -1
- package/dist/api/utils/cacheManager.d.ts +1 -1
- package/dist/index.cjs.js +49 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +49 -22
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/api/executors/HttpExecutor.ts +2 -2
- package/src/api/orm/builders/ConditionBuilder.ts +31 -9
- package/src/api/restOrm.ts +10 -12
- package/src/api/types/ormInterfaces.ts +11 -12
- package/src/api/utils/cacheManager.ts +1 -1
|
@@ -136,18 +136,16 @@ export type DetermineResponseDataType<
|
|
|
136
136
|
Method extends iRestMethods,
|
|
137
137
|
RestTableInterface extends { [key: string]: any },
|
|
138
138
|
ResponseDataOverrides = {}
|
|
139
|
-
> =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
? iDeleteC6RestResponse<RestTableInterface>
|
|
150
|
-
: never);
|
|
139
|
+
> = null |
|
|
140
|
+
(Method extends 'POST'
|
|
141
|
+
? iPostC6RestResponse<RestTableInterface>
|
|
142
|
+
: Method extends 'GET'
|
|
143
|
+
? iGetC6RestResponse<RestTableInterface, ResponseDataOverrides>
|
|
144
|
+
: Method extends 'PUT'
|
|
145
|
+
? iPutC6RestResponse<RestTableInterface>
|
|
146
|
+
: Method extends 'DELETE'
|
|
147
|
+
? iDeleteC6RestResponse<RestTableInterface>
|
|
148
|
+
: never);
|
|
151
149
|
|
|
152
150
|
export interface iRest<
|
|
153
151
|
RestShortTableName extends string = any,
|
|
@@ -258,6 +256,7 @@ export interface iC6Object<
|
|
|
258
256
|
};
|
|
259
257
|
PREFIX: string;
|
|
260
258
|
IMPORT: (tableName: string) => Promise<iDynamicApiImport>;
|
|
259
|
+
|
|
261
260
|
[key: string]: any;
|
|
262
261
|
}
|
|
263
262
|
|
|
@@ -25,7 +25,7 @@ export function clearCache(props?: iClearCache) {
|
|
|
25
25
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export function checkCache<ResponseDataType = any, RestShortTableNames = string>(cacheResult: iCacheAPI<ResponseDataType>, requestMethod: string, tableName: RestShortTableNames | RestShortTableNames[], request: any): false |
|
|
28
|
+
export function checkCache<ResponseDataType = any, RestShortTableNames = string>(cacheResult: iCacheAPI<ResponseDataType>, requestMethod: string, tableName: RestShortTableNames | RestShortTableNames[], request: any): false | AxiosPromise<ResponseDataType> {
|
|
29
29
|
|
|
30
30
|
if (undefined === cacheResult) {
|
|
31
31
|
|