@viridial/shared 1.0.22 → 1.0.24
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/api/property.service.d.ts +5 -0
- package/dist/api/property.service.d.ts.map +1 -1
- package/dist/api/property.service.js +7 -0
- package/dist/constants/api.constants.d.ts +1 -0
- package/dist/constants/api.constants.d.ts.map +1 -1
- package/dist/constants/api.constants.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/types/property-feature.types.d.ts +17 -0
- package/dist/types/property-feature.types.d.ts.map +1 -0
- package/dist/types/property-feature.types.js +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Property, PropertyCreate, PropertyUpdate, PropertySearchParams } from '../types/property.types';
|
|
2
|
+
import type { PropertyFeature } from '../types/property-feature.types';
|
|
2
3
|
/**
|
|
3
4
|
* Service de gestion des propriétés
|
|
4
5
|
*/
|
|
@@ -27,5 +28,9 @@ export declare const propertyService: {
|
|
|
27
28
|
* Rechercher des propriétés
|
|
28
29
|
*/
|
|
29
30
|
search(params: PropertySearchParams): Promise<Property[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Récupérer les features d'une propriété
|
|
33
|
+
*/
|
|
34
|
+
getPropertyFeatures(id: number): Promise<PropertyFeature[]>;
|
|
30
35
|
};
|
|
31
36
|
//# sourceMappingURL=property.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAC7G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEtE;;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;IAK/D;;OAEG;4BAC2B,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CAIlE,CAAA"}
|
|
@@ -44,5 +44,12 @@ export const propertyService = {
|
|
|
44
44
|
async search(params) {
|
|
45
45
|
const response = await httpClient.get(API_ENDPOINTS.PROPERTIES.SEARCH, { params });
|
|
46
46
|
return response.data || [];
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Récupérer les features d'une propriété
|
|
50
|
+
*/
|
|
51
|
+
async getPropertyFeatures(id) {
|
|
52
|
+
const response = await httpClient.get(API_ENDPOINTS.PROPERTIES.FEATURES(id));
|
|
53
|
+
return response.data || [];
|
|
47
54
|
}
|
|
48
55
|
};
|
|
@@ -14,6 +14,7 @@ export declare const API_ENDPOINTS: {
|
|
|
14
14
|
readonly BASE: "/api/properties";
|
|
15
15
|
readonly SEARCH: "/api/properties/search";
|
|
16
16
|
readonly BY_ID: (id: number) => string;
|
|
17
|
+
readonly FEATURES: (id: number) => string;
|
|
17
18
|
};
|
|
18
19
|
readonly USERS: {
|
|
19
20
|
readonly BASE: "/api/identity/users";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.constants.d.ts","sourceRoot":"","sources":["../../constants/api.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;6BAcV,MAAM;;;;
|
|
1
|
+
{"version":3,"file":"api.constants.d.ts","sourceRoot":"","sources":["../../constants/api.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;6BAcV,MAAM;gCACH,MAAM;;;;6BAKT,MAAM;;;;gCAIH,MAAM;;;;6BAKT,MAAM;sCACG,MAAM;;sCAEN,MAAM;;;;;;6BAOf,MAAM;;gCAEH,MAAM;;CAEf,CAAA;AAEV;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,SAAS,CAAA"}
|
|
@@ -15,7 +15,8 @@ export const API_ENDPOINTS = {
|
|
|
15
15
|
PROPERTIES: {
|
|
16
16
|
BASE: '/api/properties',
|
|
17
17
|
SEARCH: '/api/properties/search',
|
|
18
|
-
BY_ID: (id) => `/api/properties/${id}
|
|
18
|
+
BY_ID: (id) => `/api/properties/${id}`,
|
|
19
|
+
FEATURES: (id) => `/api/properties/${id}/features`
|
|
19
20
|
},
|
|
20
21
|
// Users
|
|
21
22
|
USERS: {
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { useUser } from './composables/useUser';
|
|
|
15
15
|
export type * from './types/api.types';
|
|
16
16
|
export type * from './types/auth.types';
|
|
17
17
|
export type * from './types/property.types';
|
|
18
|
+
export type * from './types/property-feature.types';
|
|
18
19
|
export type * from './types/user.types';
|
|
19
20
|
export type * from './types/document.types';
|
|
20
21
|
export { PropertyType, PropertyStatus } from './types/property.types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,EA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E,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,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,gCAAgC,CAAA;AACnD,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,wBAAwB,CAAA;AAG3C,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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types pour les PropertyFeatures
|
|
3
|
+
*/
|
|
4
|
+
export interface PropertyFeature {
|
|
5
|
+
id: number;
|
|
6
|
+
propertyId?: number;
|
|
7
|
+
property?: {
|
|
8
|
+
id: number;
|
|
9
|
+
};
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
active: boolean;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=property-feature.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-feature.types.d.ts","sourceRoot":"","sources":["../../types/property-feature.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB"}
|