@viridial/shared 1.0.15 → 1.0.17

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 +1 @@
1
- {"version":3,"file":"property.service.d.ts","sourceRoot":"","sources":["../../api/property.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE7G;;GAEG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;oBACmB,oBAAoB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAKhE;;OAEG;gBACe,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAK5C;;OAEG;iBACgB,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKrD;;OAEG;eACc,MAAM,QAAQ,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKjE;;OAEG;eACc,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC;;OAEG;mBACkB,oBAAoB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAIhE,CAAA"}
1
+ {"version":3,"file":"property.service.d.ts","sourceRoot":"","sources":["../../api/property.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE7G;;GAEG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;oBACmB,oBAAoB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAKhE;;OAEG;gBACe,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAK5C;;OAEG;iBACgB,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKrD;;OAEG;eACc,MAAM,QAAQ,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKjE;;OAEG;eACc,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC;;OAEG;mBACkB,oBAAoB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAIhE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { httpClient } from './http.client';
2
+ import { API_ENDPOINTS } from '../constants/api.constants';
2
3
  /**
3
4
  * Service de gestion des propriétés
4
5
  */
@@ -7,41 +8,41 @@ export const propertyService = {
7
8
  * Récupérer toutes les propriétés
8
9
  */
9
10
  async getAll(params) {
10
- const response = await httpClient.get('/property-service/api/properties', { params });
11
+ const response = await httpClient.get(API_ENDPOINTS.PROPERTIES.BASE, { params });
11
12
  return response.data || [];
12
13
  },
13
14
  /**
14
15
  * Récupérer une propriété par ID
15
16
  */
16
17
  async getById(id) {
17
- const response = await httpClient.get(`/property-service/api/properties/${id}`);
18
+ const response = await httpClient.get(API_ENDPOINTS.PROPERTIES.BY_ID(id));
18
19
  return response.data;
19
20
  },
20
21
  /**
21
22
  * Créer une propriété
22
23
  */
23
24
  async create(data) {
24
- const response = await httpClient.post('/property-service/api/properties', data);
25
+ const response = await httpClient.post(API_ENDPOINTS.PROPERTIES.BASE, data);
25
26
  return response.data;
26
27
  },
27
28
  /**
28
29
  * Mettre à jour une propriété
29
30
  */
30
31
  async update(id, data) {
31
- const response = await httpClient.put(`/property-service/api/properties/${id}`, data);
32
+ const response = await httpClient.put(API_ENDPOINTS.PROPERTIES.BY_ID(id), data);
32
33
  return response.data;
33
34
  },
34
35
  /**
35
36
  * Supprimer une propriété
36
37
  */
37
38
  async delete(id) {
38
- await httpClient.delete(`/property-service/api/properties/${id}`);
39
+ await httpClient.delete(API_ENDPOINTS.PROPERTIES.BY_ID(id));
39
40
  },
40
41
  /**
41
42
  * Rechercher des propriétés
42
43
  */
43
44
  async search(params) {
44
- const response = await httpClient.get('/property-service/api/properties/search', { params });
45
+ const response = await httpClient.get(API_ENDPOINTS.PROPERTIES.SEARCH, { params });
45
46
  return response.data || [];
46
47
  }
47
48
  };
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export type * from './types/api.types';
15
15
  export type * from './types/auth.types';
16
16
  export type * from './types/property.types';
17
17
  export type * from './types/user.types';
18
+ export { PropertyType, PropertyStatus } from './types/property.types';
18
19
  export { tokenUtils } from './utils/token.utils';
19
20
  export { API_ENDPOINTS, API_BASE_URL } from './constants/api.constants';
20
21
  export { UserStatus, UserRole } from './types/user.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,IAAI,EACJ,UAAU,EACV,UAAU,EACV,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAG/C,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,wBAAwB,CAAA;AAC3C,mBAAmB,oBAAoB,CAAA;AAGvC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGhD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAGvE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,IAAI,EACJ,UAAU,EACV,UAAU,EACV,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAG/C,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,wBAAwB,CAAA;AAC3C,mBAAmB,oBAAoB,CAAA;AAGvC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAGrE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGhD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAGvE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA"}
package/dist/index.js CHANGED
@@ -13,6 +13,8 @@ export { useUserStore } from './stores/user.store';
13
13
  // Composables
14
14
  export { useAuth } from './composables/useAuth';
15
15
  export { useUser } from './composables/useUser';
16
+ // Enums from property.types (exported as values, not types)
17
+ export { PropertyType, PropertyStatus } from './types/property.types';
16
18
  // Utils
17
19
  export { tokenUtils } from './utils/token.utils';
18
20
  // Constants
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viridial/shared",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "type": "module",
5
5
  "description": "Shared modules for Real Estate frontend applications - Vue 3, TypeScript, Pinia, Axios",
6
6
  "main": "./dist/index.js",