frappe-react-sdk 1.2.3 → 1.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.
@@ -88,10 +88,10 @@ export declare const getDocListQueryString: (args?: GetDocListArgs) => string;
88
88
  *
89
89
  * @typeParam T - The type definition of the document object
90
90
  */
91
- export declare const useFrappeGetDocList: <T = any>(doctype: string, args?: GetDocListArgs<T> | undefined, swrKey?: Key, options?: SWRConfiguration) => {
92
- data: Pick<FrappeDoc<T>, "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "parent" | "parentfield" | "parenttype" | "name" | keyof T>[] | undefined;
91
+ export declare const useFrappeGetDocList: <T = any, K = FrappeDoc<T>>(doctype: string, args?: GetDocListArgs<K> | undefined, swrKey?: Key, options?: SWRConfiguration) => {
92
+ data: T[] | undefined;
93
93
  error: Error | undefined;
94
- mutate: import("swr/_internal").KeyedMutator<Pick<FrappeDoc<T>, "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "parent" | "parentfield" | "parenttype" | "name" | keyof T>[]>;
94
+ mutate: import("swr/_internal").KeyedMutator<T[]>;
95
95
  isValidating: boolean;
96
96
  isLoading: boolean;
97
97
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frappe-react-sdk",
3
3
  "description": "React hooks for Frappe Framework",
4
- "version": "1.2.3",
4
+ "version": "1.2.5",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "The Commit Company",
@@ -89,7 +89,7 @@
89
89
  }
90
90
  },
91
91
  "dependencies": {
92
- "frappe-js-sdk": "^1.3.2",
92
+ "frappe-js-sdk": "^1.3.4",
93
93
  "socket.io-client": "^4.5.1",
94
94
  "swr": "^2.2.0"
95
95
  }