@panneau/data 4.0.17 → 4.0.21

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -15
  2. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -363,11 +363,11 @@ declare class Base {
363
363
  routes: {};
364
364
  generateUrl: any;
365
365
  };
366
- requestGet(path: any, query?: any, opts?: any): any;
367
- requestPost(path: any, data: any, opts?: any): any;
368
- requestPut(path: any, data: any, opts?: any): any;
369
- requestPatch(path: any, data: any, opts?: any): any;
370
- requestDelete(path: any): any;
366
+ requestGet(path: any, query?: any, opts?: any): Promise<unknown>;
367
+ requestPost(path: any, data: any, opts?: any): Promise<unknown>;
368
+ requestPut(path: any, data: any, opts?: any): Promise<unknown>;
369
+ requestPatch(path: any, data: any, opts?: any): Promise<unknown>;
370
+ requestDelete(path: any): Promise<unknown>;
371
371
  route(route: any, params: any): any;
372
372
  getFullUrl(path: any): any;
373
373
  onError(err: any): any;
@@ -396,16 +396,16 @@ declare class AccountApi {
396
396
  }
397
397
 
398
398
  declare class MediasApi extends Base {
399
- find(id: any): any;
400
- get(query?: {}, page?: number, count?: number): any;
401
- getTrashed(query?: {}, page?: number, count?: number): any;
402
- getTags(query?: {}, count?: number): any;
403
- create(data: any): any;
404
- update(id: any, data: any): any;
405
- trash(id: any): any;
406
- restore(id: any): any;
407
- delete(id: any): any;
408
- replace(id: any, data: any): any;
399
+ find(id: any): Promise<unknown>;
400
+ get(query?: {}, page?: number, count?: number): Promise<unknown>;
401
+ getTrashed(query?: {}, page?: number, count?: number): Promise<unknown>;
402
+ getTags(query?: {}, count?: number): Promise<unknown>;
403
+ create(data: any): Promise<unknown>;
404
+ update(id: any, data: any): Promise<unknown>;
405
+ trash(id: any): Promise<unknown>;
406
+ restore(id: any): Promise<unknown>;
407
+ delete(id: any): Promise<unknown>;
408
+ replace(id: any, data: any): Promise<unknown>;
409
409
  }
410
410
 
411
411
  declare class ResourcesApi {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/data",
3
- "version": "4.0.17",
3
+ "version": "4.0.21",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -51,18 +51,18 @@
51
51
  "build": "../../scripts/prepare-package.sh --types"
52
52
  },
53
53
  "devDependencies": {
54
- "react": "^19.0.0",
54
+ "react": "^19.2.0",
55
55
  "react-dom": "^19.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "react": "^19.0.0",
58
+ "react": "^19.2.0",
59
59
  "react-dom": "^19.0.0"
60
60
  },
61
61
  "dependencies": {
62
- "@babel/runtime": "^7.12.5",
62
+ "@babel/runtime": "^7.28.6",
63
63
  "@folklore/fetch": "^0.1.21",
64
64
  "@folklore/routes": "^0.2.44",
65
- "@panneau/core": "^4.0.17",
65
+ "@panneau/core": "^4.0.21",
66
66
  "@tanstack/react-query": "^5.29.2",
67
67
  "lodash": "^4.17.21",
68
68
  "query-string": "^9.0.0"
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "6ce18f54c1985d76683f6853907a981e9fd08331"
73
+ "gitHead": "e04f9673f8d9ee36c6afae307f37fa0ce825e562"
74
74
  }