@communecter/cocolight-api-client 1.0.86 → 1.0.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@communecter/cocolight-api-client",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "Client Axios simplifié pour l'API cocolight",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,6 +15,12 @@ import type { User } from "../api/User.js";
15
15
  */
16
16
  export type EntityTypes = User | Organization | Project | Event | Poi | Badge | News | Comment | Answer;
17
17
 
18
+ /**
19
+ * Type union représentant les entités pouvant être retournées par une recherche.
20
+ * Inclut les utilisateurs, organisations, projets, événements et points d'intérêt.
21
+ */
22
+ export type SearchEntity = User | Organization | Project | Event | Poi;
23
+
18
24
  /**
19
25
  * Type pour récupérer une entité existante via l'API publique.
20
26
  * Nécessite soit un id, soit un slug.
@@ -8,6 +8,7 @@ export type {
8
8
 
9
9
  export type {
10
10
  EntityTypes,
11
+ SearchEntity,
11
12
  TransformsMap,
12
13
  TransformFunction,
13
14
  } from "./entities.js";
@@ -11,6 +11,11 @@ import type { User } from "../api/User.js";
11
11
  * Union type for all possible entity types
12
12
  */
13
13
  export type EntityTypes = User | Organization | Project | Event | Poi | Badge | News | Comment | Answer;
14
+ /**
15
+ * Type union représentant les entités pouvant être retournées par une recherche.
16
+ * Inclut les utilisateurs, organisations, projets, événements et points d'intérêt.
17
+ */
18
+ export type SearchEntity = User | Organization | Project | Event | Poi;
14
19
  /**
15
20
  * Type pour récupérer une entité existante via l'API publique.
16
21
  * Nécessite soit un id, soit un slug.
@@ -1,5 +1,5 @@
1
1
  export type { CollectionKey, EntityTag } from "../api/EntityRegistry.js";
2
- export type { EntityTypes, TransformsMap, TransformFunction, } from "./entities.js";
2
+ export type { EntityTypes, SearchEntity, TransformsMap, TransformFunction, } from "./entities.js";
3
3
  export type { SocialNetworkPayload, } from "./payloads.js";
4
4
  export type { UserTransforms, OrganizationTransforms, ProjectTransforms, EventTransforms } from "./transforms.js";
5
5
  export type { BaseApiResponse, ApiDataResponse, ApiErrorResponse, PaginatedApiResponse, GetElementsKeyResponse, ApiResponse } from "./api-responses.js";