@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.
- package/dist/web/index.d.ts +2 -0
- package/dist/web/index.js +2 -0
- package/dist/web/index.jsx +2 -0
- package/package.json +1 -1
package/dist/web/index.d.ts
CHANGED
|
@@ -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
|
package/dist/web/index.jsx
CHANGED
|
@@ -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
|