@pinia-orm/axios-edge
Advanced tools
Comparing version 1.9.0-28583603.744fcaf to 1.9.0-28585808.424bf4d
import { AxiosRequestConfig, AxiosResponse, AxiosInstance } from 'axios'; | ||
import { Element, Model, Repository, Collection, PiniaOrmPlugin } from 'pinia-orm'; | ||
import { Element, Model, Repository, Collection, Constructor, PiniaOrmPlugin } from 'pinia-orm'; | ||
@@ -17,3 +17,8 @@ type PersistMethods = 'save' | 'insert'; | ||
persistOptions?: PersistOptions; | ||
delete?: string | number | ((model: Model) => boolean); | ||
/** | ||
* This tells the api to delete the record from the store after the call is finished. | ||
* | ||
* It needs the `primaryKey` value (ID) of the entity as argument. | ||
*/ | ||
delete?: string | number; | ||
actions?: { | ||
@@ -160,3 +165,3 @@ [name: string]: any; | ||
declare function useAxiosRepo<M extends Model>(model: M): AxiosRepository<Model>; | ||
declare function useAxiosRepo<M extends Model>(model: Constructor<M>): AxiosRepository<Model>; | ||
@@ -163,0 +168,0 @@ declare function createPiniaOrmAxios(axiosConfig?: GlobalConfig): PiniaOrmPlugin; |
{ | ||
"name": "@pinia-orm/axios-edge", | ||
"version": "1.9.0-28583603.744fcaf", | ||
"version": "1.9.0-28585808.424bf4d", | ||
"description": "Axios plugin for pinia-orm", | ||
@@ -46,3 +46,3 @@ "bugs": { | ||
"axios": ">=1.6.8", | ||
"pinia-orm": "npm:pinia-orm-edge@1.9.0-28583603.744fcaf", | ||
"pinia-orm": "npm:pinia-orm-edge@1.9.0-28585808.424bf4d", | ||
"pinia": ">=2.1.7" | ||
@@ -59,3 +59,3 @@ }, | ||
"pinia": "^2.1.7", | ||
"pinia-orm": "npm:pinia-orm-edge@1.9.0-28583603.744fcaf", | ||
"pinia-orm": "npm:pinia-orm-edge@1.9.0-28585808.424bf4d", | ||
"size-limit": "^11.1.2", | ||
@@ -62,0 +62,0 @@ "typescript": "^5.4.5", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43118
726