@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.
- package/dist/cocolight-api-client.browser.js +1 -1
- package/dist/cocolight-api-client.cjs +1 -1
- package/dist/cocolight-api-client.mjs.js +1 -1
- package/dist/cocolight-api-client.vite.mjs.js +1 -1
- package/dist/cocolight-api-client.vite.mjs.js.map +1 -1
- package/package.json +1 -1
- package/src/endpoints.module.ts +18 -18
- package/src/types/entities.ts +6 -0
- package/src/types/index.ts +1 -0
- package/types/endpoints.module.d.ts +9 -0
- package/types/types/entities.d.ts +5 -0
- package/types/types/index.d.ts +1 -1
package/src/types/entities.ts
CHANGED
|
@@ -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.
|
package/src/types/index.ts
CHANGED
|
@@ -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.
|
package/types/types/index.d.ts
CHANGED
|
@@ -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";
|