@communecter/cocolight-api-client 1.0.85 → 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/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/api/EndpointApi.ts +1 -1
- package/src/api/EndpointApi.types.ts +1 -1
- package/src/endpoints.module.ts +122 -156
- package/src/types/entities.ts +6 -0
- package/src/types/index.ts +1 -0
- package/types/api/EndpointApi.d.ts +1 -1
- package/types/api/EndpointApi.types.d.ts +1 -1
- package/types/endpoints.module.d.ts +44 -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
|
@@ -357,7 +357,7 @@ export declare class EndpointApi {
|
|
|
357
357
|
*/
|
|
358
358
|
searchTags(data: SearchTagsData): Promise<any>;
|
|
359
359
|
/**
|
|
360
|
-
* Afficher les votes d'une
|
|
360
|
+
* Afficher les votes d'une actualité/commentaire : Récupère la liste des votes (like, love, etc.) sur une actualité/commentaire.
|
|
361
361
|
* Constant : SHOW_VOTE
|
|
362
362
|
* @param data - Données envoyées à l'API
|
|
363
363
|
* @returns Les données de réponse.
|
|
@@ -6352,6 +6352,50 @@ declare const endpoints: {
|
|
|
6352
6352
|
pathParams?: undefined;
|
|
6353
6353
|
params?: undefined;
|
|
6354
6354
|
functionCocostum?: undefined;
|
|
6355
|
+
} | {
|
|
6356
|
+
auth: string;
|
|
6357
|
+
constant: string;
|
|
6358
|
+
contentType: string;
|
|
6359
|
+
method: string;
|
|
6360
|
+
path: string;
|
|
6361
|
+
pathParams: {
|
|
6362
|
+
additionalProperties: boolean;
|
|
6363
|
+
properties: {
|
|
6364
|
+
id: {
|
|
6365
|
+
pattern: string;
|
|
6366
|
+
type: string;
|
|
6367
|
+
};
|
|
6368
|
+
type: {
|
|
6369
|
+
default: string;
|
|
6370
|
+
enum: string[];
|
|
6371
|
+
type: string;
|
|
6372
|
+
};
|
|
6373
|
+
isLive?: undefined;
|
|
6374
|
+
q?: undefined;
|
|
6375
|
+
slug?: undefined;
|
|
6376
|
+
index?: undefined;
|
|
6377
|
+
folder?: undefined;
|
|
6378
|
+
ownerId?: undefined;
|
|
6379
|
+
address?: undefined;
|
|
6380
|
+
userId?: undefined;
|
|
6381
|
+
docType?: undefined;
|
|
6382
|
+
contextId?: undefined;
|
|
6383
|
+
contextType?: undefined;
|
|
6384
|
+
};
|
|
6385
|
+
required: string[];
|
|
6386
|
+
type: string;
|
|
6387
|
+
else?: undefined;
|
|
6388
|
+
if?: undefined;
|
|
6389
|
+
then?: undefined;
|
|
6390
|
+
allOf?: undefined;
|
|
6391
|
+
slug?: undefined;
|
|
6392
|
+
};
|
|
6393
|
+
generateModule?: undefined;
|
|
6394
|
+
onlyAuthNone?: undefined;
|
|
6395
|
+
request?: undefined;
|
|
6396
|
+
postActions?: undefined;
|
|
6397
|
+
params?: undefined;
|
|
6398
|
+
functionCocostum?: undefined;
|
|
6355
6399
|
} | {
|
|
6356
6400
|
auth: string;
|
|
6357
6401
|
constant: string;
|
|
@@ -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";
|