@nanas-home/hub-common 0.37.875 → 0.37.881

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.
@@ -728,7 +728,9 @@ declare class PetApiService {
728
728
  constructor(log: LogService, config: CommonConfigService);
729
729
  load: () => Promise<ResultWithValue<Array<PetDto>>>;
730
730
  loadFromUuid: (uuid: string) => Promise<ResultWithValue<PetDto>>;
731
+ create: (body: PetCreateDto) => Promise<ResultWithValue<PetDto>>;
731
732
  update: (petUuid: string, profile: PetUpdateDto) => Promise<ResultWithValue<PetDto>>;
733
+ del: (item: Pick<PetDto, "uuid">) => Promise<Result>;
732
734
  }
733
735
 
734
736
  declare class ProfileApiService {
package/dist/web/index.js CHANGED
@@ -658,7 +658,9 @@ var PetApiService = class {
658
658
  }
659
659
  load = () => this._baseApi.get(this._routeObj.getAll, addAccessTokenToHeaders);
660
660
  loadFromUuid = (uuid) => this._baseApi.get(this._routeObj.getById.replace(apiRouteParam.petUuid, uuid), addAccessTokenToHeaders);
661
+ create = (body) => this._baseApi.post(this._routeObj.create, body, addAccessTokenToHeaders);
661
662
  update = (petUuid, profile) => this._baseApi.put(this._routeObj.update.replace(apiRouteParam.petUuid, petUuid), profile, addAccessTokenToHeaders);
663
+ del = (item) => this._baseApi.delete(this._routeObj.delete.replace(apiRouteParam.petUuid, item.uuid), addAccessTokenToHeaders);
662
664
  };
663
665
 
664
666
  // src/services/api/client/profileApiService.ts
@@ -808,7 +808,9 @@ var PetApiService = class {
808
808
  }
809
809
  load = () => this._baseApi.get(this._routeObj.getAll, addAccessTokenToHeaders);
810
810
  loadFromUuid = (uuid) => this._baseApi.get(this._routeObj.getById.replace(apiRouteParam.petUuid, uuid), addAccessTokenToHeaders);
811
+ create = (body) => this._baseApi.post(this._routeObj.create, body, addAccessTokenToHeaders);
811
812
  update = (petUuid, profile) => this._baseApi.put(this._routeObj.update.replace(apiRouteParam.petUuid, petUuid), profile, addAccessTokenToHeaders);
813
+ del = (item) => this._baseApi.delete(this._routeObj.delete.replace(apiRouteParam.petUuid, item.uuid), addAccessTokenToHeaders);
812
814
  };
813
815
 
814
816
  // src/services/api/client/profileApiService.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanas-home/hub-common",
3
- "version": "0.37.875",
3
+ "version": "0.37.881",
4
4
  "description": "Nana's Hub common library",
5
5
  "license": "MIT",
6
6
  "author": "Kurt Lourens",