adminforth 1.3.5 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -690,13 +690,13 @@ export type AfterDataSourceResponseFunction = (params: {resource: AdminForthReso
690
690
  * Modify record to change how data is saved to database.
691
691
  * Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.
692
692
  */
693
- export type BeforeSaveFunction = (params: {resource: AdminForthResource, primaryKey: any, adminUser: AdminUser, record: any}) => Promise<{ok: boolean, error?: string}>;
693
+ export type BeforeSaveFunction = (params: {resource: AdminForthResource, recordId: any, adminUser: AdminUser, record: any}) => Promise<{ok: boolean, error?: string}>;
694
694
 
695
695
  /**
696
696
  * Modify record to change how data is saved to database.
697
697
  * Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.
698
698
  */
699
- export type AfterSaveFunction = (params: {resource: AdminForthResource, primaryKey: any, adminUser: AdminUser, record: any}) => Promise<{ok: boolean, error?: string}>;
699
+ export type AfterSaveFunction = (params: {resource: AdminForthResource, recordId: any, adminUser: AdminUser, record: any}) => Promise<{ok: boolean, error?: string}>;
700
700
 
701
701
  /**
702
702
  * Allow to get user data before login confirmation, will triger when user try to login.