@reviza/api-client 1.0.0-SNAPSHOT-e2dc8703 → 1.0.0-SNAPSHOT-b9ac5218

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.
@@ -1,3 +1,6 @@
1
+ export type IdData = {
2
+ id: number;
3
+ };
1
4
  export type RevizaResponseData<TData> = {
2
5
  message: string | null;
3
6
  readonly data: TData;
@@ -1,5 +1,5 @@
1
1
  import { LoginPayload, LoginData, RegistrationTokenData, RegisterPayload, ForgotPasswordPayload, PasswordPayload, InvitationPayload } from "../App/Data/Auth";
2
- import { RevizaResponseData } from "../App/Data";
2
+ import { RevizaResponseData, IdData } from "../App/Data";
3
3
  import { DataCollection } from "../Spatie/LaravelData";
4
4
  import { CategoryData, CategoryCreatePayload, CategoryUpdatePayload, CategoryTreeData } from "../App/Data/Category";
5
5
  import { ConfigData } from "../App/Data/Config";
@@ -270,7 +270,7 @@ export declare const FacilityPictureController: {
270
270
  export declare namespace FacilityPictureController {
271
271
  namespace store {
272
272
  type Request = PicturePayload;
273
- type Response = RevizaResponseData<undefined | null>;
273
+ type Response = RevizaResponseData<IdData>;
274
274
  }
275
275
  namespace show {
276
276
  type Request = object;
package/dist/index.d.ts CHANGED
@@ -98,7 +98,7 @@ export declare function createRevizaApi(http?: AxiosInstance): {
98
98
  };
99
99
  facilityPictures: {
100
100
  show(category: number, facility: number, picture: number, config?: AxiosRequestConfig): Promise<FacilityPictureController.show.Response>;
101
- store(category: number, facility: number, data: FacilityController.store.Request, config?: AxiosRequestConfig): Promise<FacilityPictureController.store.Response>;
101
+ store(category: number, facility: number, data: FacilityPictureController.store.Request, config?: AxiosRequestConfig): Promise<FacilityPictureController.store.Response>;
102
102
  destroy(category: number, facility: number, picture: number, config?: AxiosRequestConfig): Promise<FacilityPictureController.destroy.Response>;
103
103
  };
104
104
  relatedFacilities: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reviza/api-client",
3
- "version": "1.0.0-SNAPSHOT-e2dc8703",
3
+ "version": "1.0.0-SNAPSHOT-b9ac5218",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",