@communecter/cocolight-api-client 1.0.86 → 1.0.88

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.
@@ -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";
@@ -1669,6 +1669,15 @@ declare const endpoints: {
1669
1669
  format: string;
1670
1670
  type: string;
1671
1671
  };
1672
+ emailNullable: {
1673
+ anyOf: ({
1674
+ format: string;
1675
+ type: string;
1676
+ } | {
1677
+ const: string;
1678
+ type: string;
1679
+ })[];
1680
+ };
1672
1681
  name: {
1673
1682
  type: string;
1674
1683
  };
@@ -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";