@messaia/cdk 20.2.2 → 20.2.3
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 +32 -11
- package/fesm2022/messaia-cdk.mjs.map +1 -1
- package/index.d.ts +10 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5989,18 +5989,23 @@ declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TServic
|
|
|
5989
5989
|
* Loads an item by ID.
|
|
5990
5990
|
* This method fetches the item if the component is in edit mode and the service endpoint is defined.
|
|
5991
5991
|
*
|
|
5992
|
-
* @param
|
|
5993
|
-
*
|
|
5992
|
+
* @param successCallback - A function to be called after the item has been successfully loaded.
|
|
5993
|
+
* This function will receive the loaded item as an argument.
|
|
5994
|
+
* @param errorCallback - A function to be called if an error occurs during loading.
|
|
5995
|
+
* This function will receive the error as an argument.
|
|
5996
|
+
* @param headers - Optional HTTP headers to include in the request.
|
|
5994
5997
|
*/
|
|
5995
|
-
loadItem(
|
|
5998
|
+
loadItem(successCallback?: (item: {
|
|
5996
5999
|
entity: TEntity;
|
|
5997
6000
|
permissions: Permission;
|
|
5998
|
-
}) => void): void;
|
|
6001
|
+
}) => void, errorCallback?: (error: any) => void, headers?: Record<string, string>): void;
|
|
5999
6002
|
/**
|
|
6000
6003
|
* Loads an item by ID asynchronously.
|
|
6004
|
+
*
|
|
6005
|
+
* @param headers - Optional HTTP headers to include in the request.
|
|
6001
6006
|
* @returns An Observable of the loaded entity.
|
|
6002
6007
|
*/
|
|
6003
|
-
loadItemAsync(): Observable<{
|
|
6008
|
+
loadItemAsync(headers?: Record<string, string>): Observable<{
|
|
6004
6009
|
entity: TEntity;
|
|
6005
6010
|
permissions: Permission;
|
|
6006
6011
|
}>;
|