@messaia/cdk 20.2.3 → 20.2.5
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/fesm2022/messaia-cdk.mjs +8 -4
- package/fesm2022/messaia-cdk.mjs.map +1 -1
- package/index.d.ts +6 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5994,18 +5994,22 @@ declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TServic
|
|
|
5994
5994
|
* @param errorCallback - A function to be called if an error occurs during loading.
|
|
5995
5995
|
* This function will receive the error as an argument.
|
|
5996
5996
|
* @param headers - Optional HTTP headers to include in the request.
|
|
5997
|
+
* @param handleError - Indicates whether to automatically handle and parse errors (default: true).
|
|
5998
|
+
* @param observeResponse - If true, the full HTTP response will be observed instead of just the body (default: false).
|
|
5997
5999
|
*/
|
|
5998
6000
|
loadItem(successCallback?: (item: {
|
|
5999
6001
|
entity: TEntity;
|
|
6000
6002
|
permissions: Permission;
|
|
6001
|
-
}) => void, errorCallback?: (error: any) => void, headers?: Record<string, string
|
|
6003
|
+
}) => void, errorCallback?: (error: any) => void, headers?: Record<string, string>, handleError?: boolean, observeResponse?: boolean): void;
|
|
6002
6004
|
/**
|
|
6003
6005
|
* Loads an item by ID asynchronously.
|
|
6004
6006
|
*
|
|
6005
6007
|
* @param headers - Optional HTTP headers to include in the request.
|
|
6008
|
+
* @param handleError - Indicates whether to automatically handle and parse errors (default: true).
|
|
6009
|
+
* @param observeResponse - If true, the full HTTP response will be observed instead of just the body (default: false).
|
|
6006
6010
|
* @returns An Observable of the loaded entity.
|
|
6007
6011
|
*/
|
|
6008
|
-
loadItemAsync(headers?: Record<string, string
|
|
6012
|
+
loadItemAsync(headers?: Record<string, string>, handleError?: boolean, observeResponse?: boolean): Observable<{
|
|
6009
6013
|
entity: TEntity;
|
|
6010
6014
|
permissions: Permission;
|
|
6011
6015
|
}>;
|