@viridial/shared 1.0.66 → 1.0.67
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.
|
@@ -11,6 +11,10 @@ export declare const organizationReviewService: {
|
|
|
11
11
|
postalCode?: string;
|
|
12
12
|
minRating?: number;
|
|
13
13
|
}): Promise<OrganizationWithReviews[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Obtenir une agence spécifique avec ses statistiques d'avis
|
|
16
|
+
*/
|
|
17
|
+
getOrganizationWithReviewsById(organizationId: number): Promise<OrganizationWithReviews | null>;
|
|
14
18
|
/**
|
|
15
19
|
* Obtenir les avis approuvés d'une agence
|
|
16
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-review.service.d.ts","sourceRoot":"","sources":["../../api/organization-review.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,oCAAoC,CAAA;AAE3C,eAAO,MAAM,yBAAyB;IACpC;;OAEG;iCACgC;QACjC,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAYtC;;OAEG;uCAEe,MAAM,SAChB,MAAM,SACN,MAAM,GACX,OAAO,CAAC;QAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IASxF;;OAEG;mCACkC,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAO9E;;OAEG;iCACgC,MAAM,UAAU,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQzG;;OAEG;4BAC2B,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrD,CAAA"}
|
|
1
|
+
{"version":3,"file":"organization-review.service.d.ts","sourceRoot":"","sources":["../../api/organization-review.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,oCAAoC,CAAA;AAE3C,eAAO,MAAM,yBAAyB;IACpC;;OAEG;iCACgC;QACjC,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAYtC;;OAEG;mDACkD,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC;IAcrG;;OAEG;uCAEe,MAAM,SAChB,MAAM,SACN,MAAM,GACX,OAAO,CAAC;QAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IASxF;;OAEG;mCACkC,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAO9E;;OAEG;iCACgC,MAAM,UAAU,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQzG;;OAEG;4BAC2B,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrD,CAAA"}
|
|
@@ -17,6 +17,21 @@ export const organizationReviewService = {
|
|
|
17
17
|
const response = await httpClient.get(`/api/public/organizations/search${queryParams.toString() ? `?${queryParams.toString()}` : ''}`);
|
|
18
18
|
return response.data;
|
|
19
19
|
},
|
|
20
|
+
/**
|
|
21
|
+
* Obtenir une agence spécifique avec ses statistiques d'avis
|
|
22
|
+
*/
|
|
23
|
+
async getOrganizationWithReviewsById(organizationId) {
|
|
24
|
+
try {
|
|
25
|
+
const response = await httpClient.get(`/api/public/organizations/${organizationId}`);
|
|
26
|
+
return response.data;
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
if (error.status === 404) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
throw error;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
20
35
|
/**
|
|
21
36
|
* Obtenir les avis approuvés d'une agence
|
|
22
37
|
*/
|