@communecter/cocolight-api-client 1.0.192 → 1.0.194
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.vite.mjs.js +1 -1
- package/dist/cocolight-api-client.vite.mjs.js.map +1 -1
- package/package.json +1 -1
- package/types/api/BaseEntity.d.ts +4 -1
- package/types/api/EndpointApi.d.ts +10 -1
- package/types/api/EndpointApi.types.d.ts +186 -0
- package/types/api/Event.d.ts +6 -1
- package/types/api/Organization.d.ts +14 -1
- package/types/api/Project.d.ts +6 -1
- package/types/endpoints.module.d.ts +36 -6
package/package.json
CHANGED
|
@@ -72,12 +72,15 @@ type ParentLike = BaseEntity<any> & {
|
|
|
72
72
|
*
|
|
73
73
|
* - `default` → `/co2/search/globalautocomplete`
|
|
74
74
|
* - `navigator-tl` → `/costum/navigator/gettl`
|
|
75
|
+
* - `navigator-tl-ressource` → `/costum/navigator/getsressourcetl` (annuaire de ressources tiers-lieux :
|
|
76
|
+
* même payload que gettl, réponse = answers BRUTES + porteur résolu/address/geo + documents ;
|
|
77
|
+
* schéma 200 permissif — cf. NAVIGATOR_GET_RESSOURCE_TL)
|
|
75
78
|
* - `admin` → `/co2/search/globalautocompleteadmin/type/{type}/id/{id}/canSee/true`
|
|
76
79
|
* (SearchNew::searchAdmin — réservé aux admins de l'entité porteuse : `fields` = projection
|
|
77
80
|
* EXACTE, `preferences` NON strippé → badge/filtre `toBeValidated`, tri serveur via `sort`.
|
|
78
81
|
* pathParams {type,id} posés automatiquement depuis l'entité appelante — cf. searchCostum.)
|
|
79
82
|
*/
|
|
80
|
-
export type SearchCostumVariant = "default" | "navigator-tl" | "admin";
|
|
83
|
+
export type SearchCostumVariant = "default" | "navigator-tl" | "navigator-tl-ressource" | "admin";
|
|
81
84
|
/**
|
|
82
85
|
* Types de coercion backend supportés par `UPDATE_PATH_VALUE.setType`.
|
|
83
86
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type ApiClient from "../ApiClient.js";
|
|
2
|
-
import type { DocumentListData, PersonRegisterData, AuthenticateUrlData, RefreshTokenUrlData, PasswordRecoveryData, PasswordResetData, ServerExchangeTokenData, ChangePasswordData, DeleteAccountData, UpdateSettingsData, UpdateBlockDescriptionData, UpdateBlockInfoData, UpdateBlockSocialData, UpdateBlockLocalityData, UpdateBlockSlugData, CheckData, ProfilImageData, ProfilBannerData, GetElementsAboutData, MulticonnectData, RelaunchInvitationData, ContactSendData, GetNewsData, GetNewsByIdData, AddNewsData, AddImageNewsData, AddFileNewsData, DeleteNewsData, UpdateNewsData, ShareNewsData, GetCommentsData, AddCommentsData, DeleteCommentsData, UpdateCommentsData, SearchTagsData, ShowVoteData, GlobalAutocompleteData, CityAutocompleteData, CityAutocompleteByCountryData, SuggestionInputData, GetProjectsNoAdminData, GetProjectsAdminData, GetPoisNoAdminData, GetPoisAdminData, GlobalAutocompleteAdminCostumData, GetOrganizationsNoAdminData, GetOrganizationsAdminData, GetUserEligiblePlacesData, GetMembersNoAdminData, GetMembersAdminData, GetFriendsAdminData, GetSubscriptionsData, GetSubscriptionsAdminData, GetSubscribersData, GetSubscribersAdminData, GetContributorsNoAdminData, GetContributorsAdminData, GetBadgesData, GetBadgesFiltersData, ConnectData, CreateInvitationLinkData, ConnectByRefData, DisconnectData, GetElementsKeyData, GetFavorisData, DeleteFavorisData, AddFavorisData, AddOrganizationData, AddProjectData, AddPoiData, AddEventData, DeleteElementData, AddImageElementData, LinkValidateData, SearchMemberAutocompleteData, GetNotificationsData, GetNotificationsCountData, NotificationUpdateData, MarkNotificationAsReadData, ActivitypubSearchData, ActivitypubLinkData, ActivitypubGetCommunityData, GetBadgeData, AddBadgesData, AssignBadgesData, GetEventsData, SearchEventsCostumData, ShareEventsData, InviteMembersData, FollowData, GetCostumJsonData, GlobalAutocompleteCostumData, NavigatorGettlData, CostumEventRequestActorsData, CostumEventRequestSubeventsData, CostumEventRequestElementEventData, CostumEventRequestCategoriesData, CostumEventRequestDatesData, CostumEventRequestEventData, CostumEventRequestLinkTlToEventData, CostumEventRequestLoadContextTagData, GetGalleryData, GetAttendeesNoAdminData, GetAttendeesAdminData, CoformAnswersSearchData, CoformAnswersByIdData, GetCoformByIdData, CoformUploadAnswerFileData, DeleteCoformAnswerFileData, CoformGetAnswerFilesData, GetCoformCatalogsData, SaveCoformAnswerData, GetCoformAnswerHistoryData, GetCoformMultievalDataData, GetCoformCommontableContributorsData, AddVoteData, AddReportAbuseData, UpdatePathValueData, DeleteDocumentByContextData, DeleteDocumentByIdData, DemoteAdminData, CostumFilterCoformData, CostumFilterCoformByPathData, GetCountriesData, SearchZonesData, CoformAnswersByFormsData, CostumToolsCatalogData, CostumToolUsersData, CostumCommunInfoData, CostumSaveToolEnrichmentData, CostumCommunListData, GenerateAnswerFromFormData, GenerateProjectFromAnswerData, GenerateMilestoneFromDepenseData, FundingEnvelopeData, CoremuOperationData, CostumProjectActionRequestNewData, CostumProjectActionRequestSetStatusData, CostumProjectActionRequestSetDateData, CostumProjectActionRequestSetContributorsData, CostumProjectActionRequestCancelData, CostumProjectActionRequestArchiveData, LinkDiscourseAccountData, UnlinkDiscourseAccountData, DiscourseProfileData, DiscourseCheckEmailData, DiscourseDismissLinkData, LinkMediawikiAccountData, UnlinkMediawikiAccountData, GetMediawikiContributionsData, AddClassifiedData, PersonActivateData, PersonValidateInvitationData, ValidateInvitationByMailData, ImportPreviewData, ExportElementsData, ImportElementsData, GeocodageData, ValidateGroupData, SetSourceData, TransferSourceCheckData, TransferSourceApplyData, TransferSourceRollbackData, TransferSourceHistoryData, ModerateData, NewsModerateData, CommentModerateData, UploadDocumentData, ZoneGetShapeData, ZoneGetZonirisData, CostumListValuesData, CostumResolvedData, DirectoryProposalData, DirectoryProposalCountData, DirectoryProposalNewCounterData } from "./EndpointApi.types.js";
|
|
2
|
+
import type { DocumentListData, PersonRegisterData, AuthenticateUrlData, RefreshTokenUrlData, PasswordRecoveryData, PasswordResetData, ServerExchangeTokenData, ChangePasswordData, DeleteAccountData, UpdateSettingsData, UpdateBlockDescriptionData, UpdateBlockInfoData, UpdateBlockSocialData, UpdateBlockLocalityData, UpdateBlockSlugData, CheckData, ProfilImageData, ProfilBannerData, GetElementsAboutData, MulticonnectData, RelaunchInvitationData, ContactSendData, GetNewsData, GetNewsByIdData, AddNewsData, AddImageNewsData, AddFileNewsData, DeleteNewsData, UpdateNewsData, ShareNewsData, GetCommentsData, AddCommentsData, DeleteCommentsData, UpdateCommentsData, SearchTagsData, ShowVoteData, GlobalAutocompleteData, CityAutocompleteData, CityAutocompleteByCountryData, SuggestionInputData, GetProjectsNoAdminData, GetProjectsAdminData, GetPoisNoAdminData, GetPoisAdminData, GlobalAutocompleteAdminCostumData, GetOrganizationsNoAdminData, GetOrganizationsAdminData, GetUserEligiblePlacesData, GetMembersNoAdminData, GetMembersAdminData, GetFriendsAdminData, GetSubscriptionsData, GetSubscriptionsAdminData, GetSubscribersData, GetSubscribersAdminData, GetContributorsNoAdminData, GetContributorsAdminData, GetBadgesData, GetBadgesFiltersData, ConnectData, CreateInvitationLinkData, ConnectByRefData, DisconnectData, GetElementsKeyData, GetFavorisData, DeleteFavorisData, AddFavorisData, AddOrganizationData, AddProjectData, AddPoiData, AddEventData, DeleteElementData, AddImageElementData, LinkValidateData, SearchMemberAutocompleteData, GetNotificationsData, GetNotificationsCountData, NotificationUpdateData, MarkNotificationAsReadData, ActivitypubSearchData, ActivitypubLinkData, ActivitypubGetCommunityData, GetBadgeData, AddBadgesData, AssignBadgesData, GetEventsData, SearchEventsCostumData, ShareEventsData, InviteMembersData, FollowData, GetCostumJsonData, GlobalAutocompleteCostumData, NavigatorGettlData, NavigatorGetRessourceTlData, CostumEventRequestActorsData, CostumEventRequestSubeventsData, CostumEventRequestElementEventData, CostumEventRequestCategoriesData, CostumEventRequestDatesData, CostumEventRequestEventData, CostumEventRequestLinkTlToEventData, CostumEventRequestLoadContextTagData, GetGalleryData, GetAttendeesNoAdminData, GetAttendeesAdminData, CoformAnswersSearchData, CoformAnswersByIdData, GetCoformByIdData, CoformUploadAnswerFileData, DeleteCoformAnswerFileData, CoformGetAnswerFilesData, GetCoformCatalogsData, SaveCoformAnswerData, GetCoformAnswerHistoryData, GetCoformMultievalDataData, GetCoformCommontableContributorsData, AddVoteData, AddReportAbuseData, UpdatePathValueData, DeleteDocumentByContextData, DeleteDocumentByIdData, DemoteAdminData, CostumFilterCoformData, CostumFilterCoformByPathData, GetCountriesData, SearchZonesData, CoformAnswersByFormsData, CostumToolsCatalogData, CostumToolUsersData, CostumCommunInfoData, CostumSaveToolEnrichmentData, CostumCommunListData, GenerateAnswerFromFormData, GenerateProjectFromAnswerData, GenerateMilestoneFromDepenseData, FundingEnvelopeData, CoremuOperationData, CostumProjectActionRequestNewData, CostumProjectActionRequestSetStatusData, CostumProjectActionRequestSetDateData, CostumProjectActionRequestSetContributorsData, CostumProjectActionRequestCancelData, CostumProjectActionRequestArchiveData, LinkDiscourseAccountData, UnlinkDiscourseAccountData, DiscourseProfileData, DiscourseCheckEmailData, DiscourseDismissLinkData, LinkMediawikiAccountData, UnlinkMediawikiAccountData, GetMediawikiContributionsData, AddClassifiedData, PersonActivateData, PersonValidateInvitationData, ValidateInvitationByMailData, ImportPreviewData, ExportElementsData, ImportElementsData, GeocodageData, ValidateGroupData, SetSourceData, TransferSourceCheckData, TransferSourceApplyData, TransferSourceRollbackData, TransferSourceHistoryData, ModerateData, NewsModerateData, CommentModerateData, UploadDocumentData, ZoneGetShapeData, ZoneGetZonirisData, CostumListValuesData, CostumResolvedData, DirectoryProposalData, DirectoryProposalCountData, DirectoryProposalNewCounterData } from "./EndpointApi.types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Classe EndpointApi générée automatiquement depuis endpoints-copie.json
|
|
5
5
|
*/
|
|
@@ -967,6 +967,15 @@ export declare class EndpointApi {
|
|
|
967
967
|
* @throws {Error} - En cas d'erreur inattendue.
|
|
968
968
|
*/
|
|
969
969
|
navigatorGettl(data: NavigatorGettlData): Promise<any>;
|
|
970
|
+
/**
|
|
971
|
+
* Annuaire de ressources tiers-lieux (navigator/getsressourcetl) : Recherche globale via navigator/getsressourcetl — payload identique à NAVIGATOR_GETTL / GLOBAL_AUTOCOMPLETE_COSTUM (drop-in de SearchNew::globalAutoComplete), suivi du post-traitement serveur Navigator::getRessourceTL : tiers-lieu porteur résolu via l input `finder` (address/geo/geoPosition remontés à la racine, finder.<parentId>.img), garde `filters[address.level1]` sur ce porteur (retirée du payload avant la recherche ; sans porteur → exclu), `documents` (photos) par réponse. `answers` reste un blob BRUT keyé par étape (PAS re-keyé par formId comme gettl). `fields` doit contenir `answers` ET `form` : sans `answers` projeté aucun porteur n est résolu (et la garde address.level1 exclut alors TOUT) ; sans `form`, le serveur se rabat sur les 3 chemins finder et seul le 1er (salles) résout (BUG-L-265).
|
|
972
|
+
* Constant : NAVIGATOR_GET_RESSOURCE_TL
|
|
973
|
+
* @param data - Données envoyées à l'API
|
|
974
|
+
* @returns Les données de réponse.
|
|
975
|
+
* @throws {ApiResponseError} - En cas d'erreur détectée dans la réponse.
|
|
976
|
+
* @throws {Error} - En cas d'erreur inattendue.
|
|
977
|
+
*/
|
|
978
|
+
navigatorGetRessourceTl(data: NavigatorGetRessourceTlData): Promise<any>;
|
|
970
979
|
/**
|
|
971
980
|
* Récupérer les acteurs d'événement : Récupérer les acteurs (organizers, attendees, creators, animators) d'une entité événement.
|
|
972
981
|
* Constant : COSTUM_EVENT_REQUEST_ACTORS
|
|
@@ -2102,6 +2102,10 @@ export interface GetMembersNoAdminData {
|
|
|
2102
2102
|
* Flag pour ne pas filtrer sur une clé de source spécifique
|
|
2103
2103
|
*/
|
|
2104
2104
|
notSourceKey: true;
|
|
2105
|
+
/**
|
|
2106
|
+
* Liste des champs à retourner
|
|
2107
|
+
*/
|
|
2108
|
+
fields?: string[];
|
|
2105
2109
|
filters: {
|
|
2106
2110
|
[k: string]: unknown;
|
|
2107
2111
|
};
|
|
@@ -2180,6 +2184,10 @@ export interface GetMembersAdminData {
|
|
|
2180
2184
|
* Flag pour ne pas filtrer sur une clé de source spécifique
|
|
2181
2185
|
*/
|
|
2182
2186
|
notSourceKey: true;
|
|
2187
|
+
/**
|
|
2188
|
+
* Liste des champs à retourner
|
|
2189
|
+
*/
|
|
2190
|
+
fields?: string[];
|
|
2183
2191
|
filters: {
|
|
2184
2192
|
[k: string]: unknown;
|
|
2185
2193
|
};
|
|
@@ -2624,6 +2632,10 @@ export interface GetContributorsNoAdminData {
|
|
|
2624
2632
|
* Flag pour ne pas filtrer sur une clé de source spécifique
|
|
2625
2633
|
*/
|
|
2626
2634
|
notSourceKey: true;
|
|
2635
|
+
/**
|
|
2636
|
+
* Liste des champs à retourner
|
|
2637
|
+
*/
|
|
2638
|
+
fields?: string[];
|
|
2627
2639
|
filters: {
|
|
2628
2640
|
[k: string]: unknown;
|
|
2629
2641
|
};
|
|
@@ -2702,6 +2714,10 @@ export interface GetContributorsAdminData {
|
|
|
2702
2714
|
* Flag pour ne pas filtrer sur une clé de source spécifique
|
|
2703
2715
|
*/
|
|
2704
2716
|
notSourceKey: true;
|
|
2717
|
+
/**
|
|
2718
|
+
* Liste des champs à retourner
|
|
2719
|
+
*/
|
|
2720
|
+
fields?: string[];
|
|
2705
2721
|
filters: {
|
|
2706
2722
|
[k: string]: unknown;
|
|
2707
2723
|
};
|
|
@@ -4988,6 +5004,168 @@ export interface NavigatorGettlData {
|
|
|
4988
5004
|
};
|
|
4989
5005
|
[k: string]: unknown;
|
|
4990
5006
|
}
|
|
5007
|
+
export interface NavigatorGetRessourceTlData {
|
|
5008
|
+
/**
|
|
5009
|
+
* Nom ou mot-clé de la recherche
|
|
5010
|
+
*/
|
|
5011
|
+
name?: string;
|
|
5012
|
+
/**
|
|
5013
|
+
* Localités ciblées. Trois formes acceptées : object keyé (forme historique), array d'objets (forme alternative consommée par `foreach`), ou chaîne vide (placeholder = pas de filtre).
|
|
5014
|
+
*/
|
|
5015
|
+
locality?: {
|
|
5016
|
+
/**
|
|
5017
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
5018
|
+
* via the `patternProperty` "^[^\s]+$".
|
|
5019
|
+
*/
|
|
5020
|
+
[k: string]: {
|
|
5021
|
+
/**
|
|
5022
|
+
* Identifiant de la localité
|
|
5023
|
+
*/
|
|
5024
|
+
id: string;
|
|
5025
|
+
/**
|
|
5026
|
+
* Type de localité
|
|
5027
|
+
*/
|
|
5028
|
+
type: "cities" | "cp" | "country" | "level1" | "level2" | "level3" | "level4" | "level5";
|
|
5029
|
+
postalCode?: string;
|
|
5030
|
+
countryCode?: string;
|
|
5031
|
+
name?: string;
|
|
5032
|
+
level?: string | number;
|
|
5033
|
+
};
|
|
5034
|
+
} | {
|
|
5035
|
+
id: string;
|
|
5036
|
+
type: "cities" | "cp" | "country" | "level1" | "level2" | "level3" | "level4" | "level5";
|
|
5037
|
+
postalCode?: string;
|
|
5038
|
+
countryCode?: string;
|
|
5039
|
+
name?: string;
|
|
5040
|
+
level?: string | number;
|
|
5041
|
+
}[] | "";
|
|
5042
|
+
/**
|
|
5043
|
+
* Types d'entités à inclure dans la recherche
|
|
5044
|
+
*/
|
|
5045
|
+
searchType: ("NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative" | "organizations" | "projects" | "events" | "citoyens" | "poi" | "news" | "answers" | "forms" | "classifieds")[];
|
|
5046
|
+
/**
|
|
5047
|
+
* Balises (tags) à utiliser pour filtrer la recherche
|
|
5048
|
+
*/
|
|
5049
|
+
searchTags?: string[];
|
|
5050
|
+
/**
|
|
5051
|
+
* Liste fixe des types à compter dans les résultats
|
|
5052
|
+
*/
|
|
5053
|
+
countType: ("NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative" | "organizations" | "projects" | "events" | "citoyens" | "poi" | "news" | "answers" | "forms" | "classifieds")[];
|
|
5054
|
+
/**
|
|
5055
|
+
* Sélecteur des champs où chercher le terme `name`. Trois formes acceptées : `"ALL"` (cherche dans name/title/slug/tags/source.keys/sigle/description), chaîne CSV (`"name,slug,tags"`), ou tableau de chemins (`["name", "address.addressLocality"]`).
|
|
5056
|
+
*/
|
|
5057
|
+
searchBy?: string | [string, ...string[]];
|
|
5058
|
+
/**
|
|
5059
|
+
* Index de départ global pour la pagination
|
|
5060
|
+
*/
|
|
5061
|
+
indexMin: number;
|
|
5062
|
+
/**
|
|
5063
|
+
* Index de fin global pour la pagination
|
|
5064
|
+
*/
|
|
5065
|
+
indexMax?: number;
|
|
5066
|
+
/**
|
|
5067
|
+
* Nombre d’éléments à récupérer (limite de pagination)
|
|
5068
|
+
*/
|
|
5069
|
+
indexStep: number;
|
|
5070
|
+
/**
|
|
5071
|
+
* Configuration des plages de résultats pour chaque type de recherche
|
|
5072
|
+
*/
|
|
5073
|
+
ranges?: {
|
|
5074
|
+
/**
|
|
5075
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
5076
|
+
* via the `patternProperty` "^[^\s]+$".
|
|
5077
|
+
*/
|
|
5078
|
+
[k: string]: {
|
|
5079
|
+
/**
|
|
5080
|
+
* Index de départ pour la pagination
|
|
5081
|
+
*/
|
|
5082
|
+
indexMin: number;
|
|
5083
|
+
/**
|
|
5084
|
+
* Index de fin pour la pagination
|
|
5085
|
+
*/
|
|
5086
|
+
indexMax: number;
|
|
5087
|
+
};
|
|
5088
|
+
};
|
|
5089
|
+
/**
|
|
5090
|
+
* Type initial de la recherche, vide par défaut
|
|
5091
|
+
*/
|
|
5092
|
+
initType: "";
|
|
5093
|
+
/**
|
|
5094
|
+
* Indique si les types doivent être comptés dans les résultats
|
|
5095
|
+
*/
|
|
5096
|
+
count: true;
|
|
5097
|
+
/**
|
|
5098
|
+
* Filtres additionnels appliqués à la recherche (objet ou chaîne vide)
|
|
5099
|
+
*/
|
|
5100
|
+
filters?: {
|
|
5101
|
+
[k: string]: unknown;
|
|
5102
|
+
} | "";
|
|
5103
|
+
/**
|
|
5104
|
+
* Liste des champs à retourner
|
|
5105
|
+
*/
|
|
5106
|
+
fields?: string[];
|
|
5107
|
+
/**
|
|
5108
|
+
* Champ de tri (clé = champ, valeur = 1 ou -1)
|
|
5109
|
+
*/
|
|
5110
|
+
sortBy?: {
|
|
5111
|
+
[k: string]: 1 | -1;
|
|
5112
|
+
};
|
|
5113
|
+
/**
|
|
5114
|
+
* Indique si la recherche doit s'étendre au Fediverse (toujours désactivé)
|
|
5115
|
+
*/
|
|
5116
|
+
fediverse: boolean;
|
|
5117
|
+
/**
|
|
5118
|
+
* Indique si la recherche est effectuée à partir d'une carte (toujours désactivé)
|
|
5119
|
+
*/
|
|
5120
|
+
mapUsed?: true;
|
|
5121
|
+
/**
|
|
5122
|
+
* Indique si on doit exclure les éléments avec une source
|
|
5123
|
+
*/
|
|
5124
|
+
notSourceKey?: true;
|
|
5125
|
+
/**
|
|
5126
|
+
* ID du contexte de recherche (actuellement vide)
|
|
5127
|
+
*/
|
|
5128
|
+
contextId?: string;
|
|
5129
|
+
/**
|
|
5130
|
+
* Type de contexte de recherche (actuellement vide)
|
|
5131
|
+
*/
|
|
5132
|
+
contextType?: "projects" | "organizations";
|
|
5133
|
+
/**
|
|
5134
|
+
* Slug du costume utilisé pour la recherche
|
|
5135
|
+
*/
|
|
5136
|
+
costumSlug: string;
|
|
5137
|
+
/**
|
|
5138
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
5139
|
+
*/
|
|
5140
|
+
costumId?: string;
|
|
5141
|
+
/**
|
|
5142
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
5143
|
+
*/
|
|
5144
|
+
costumType?: "projects" | "organizations";
|
|
5145
|
+
/**
|
|
5146
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
5147
|
+
*/
|
|
5148
|
+
mode?: string;
|
|
5149
|
+
/**
|
|
5150
|
+
* Clés de source pour la recherche
|
|
5151
|
+
*/
|
|
5152
|
+
sourceKey?: string[];
|
|
5153
|
+
/**
|
|
5154
|
+
* Indique si le mode d'édition du costume est activé (toujours désactivé)
|
|
5155
|
+
*/
|
|
5156
|
+
costumEditMode: boolean;
|
|
5157
|
+
options?: {
|
|
5158
|
+
tags?: {
|
|
5159
|
+
/**
|
|
5160
|
+
* Verbe d'action pour le filtre de recherche
|
|
5161
|
+
*/
|
|
5162
|
+
verb?: string;
|
|
5163
|
+
[k: string]: unknown;
|
|
5164
|
+
};
|
|
5165
|
+
[k: string]: unknown;
|
|
5166
|
+
};
|
|
5167
|
+
[k: string]: unknown;
|
|
5168
|
+
}
|
|
4991
5169
|
export interface CostumEventRequestActorsData {
|
|
4992
5170
|
/**
|
|
4993
5171
|
* Types de liens à inclure (ex: organizer, attendees, creator, animator)
|
|
@@ -5529,6 +5707,10 @@ export interface GetAttendeesNoAdminData {
|
|
|
5529
5707
|
* Flag pour ne pas filtrer sur une clé de source spécifique
|
|
5530
5708
|
*/
|
|
5531
5709
|
notSourceKey: true;
|
|
5710
|
+
/**
|
|
5711
|
+
* Liste des champs à retourner
|
|
5712
|
+
*/
|
|
5713
|
+
fields?: string[];
|
|
5532
5714
|
filters: {
|
|
5533
5715
|
[k: string]: unknown;
|
|
5534
5716
|
};
|
|
@@ -5602,6 +5784,10 @@ export interface GetAttendeesAdminData {
|
|
|
5602
5784
|
* Flag pour ne pas filtrer sur une clé de source spécifique
|
|
5603
5785
|
*/
|
|
5604
5786
|
notSourceKey: true;
|
|
5787
|
+
/**
|
|
5788
|
+
* Liste des champs à retourner
|
|
5789
|
+
*/
|
|
5790
|
+
fields?: string[];
|
|
5605
5791
|
filters: {
|
|
5606
5792
|
[k: string]: unknown;
|
|
5607
5793
|
};
|
package/types/api/Event.d.ts
CHANGED
|
@@ -51,7 +51,12 @@ export declare class Event extends BaseEntity<EventItemNormalized> {
|
|
|
51
51
|
/**
|
|
52
52
|
* Récupérer les participants d'un événement.
|
|
53
53
|
* Constant : GET_ATTENDEES_NO_ADMIN
|
|
54
|
-
* @param data - Paramètres (partiels) de recherche/pagination
|
|
54
|
+
* @param data - Paramètres (partiels) de recherche/pagination (`name`, `indexStep`,
|
|
55
|
+
* `filters` complémentaires, `fields`…). Les `filters` fournis sont fusionnés avec le filtre
|
|
56
|
+
* de lien construit par le SDK, ce dernier restant prioritaire : l'appelant peut restreindre
|
|
57
|
+
* la liste (un champ de profil, par exemple) mais pas en changer la sémantique « participants ».
|
|
58
|
+
* `fields` AJOUTE des champs à la projection par défaut de la recherche (elle n'est pas remplacée) ;
|
|
59
|
+
* sans objet sur le chemin admin, où les documents reviennent complets (il y est retiré).
|
|
55
60
|
* @param options - Options supplémentaires.
|
|
56
61
|
* @param options.toBeValidated - Indique si les participants doivent être validés.
|
|
57
62
|
* @param options.isAdmin - Indique si l'utilisateur est admin.
|
|
@@ -177,7 +177,13 @@ export declare class Organization extends BaseEntity<OrganizationItemNormalized>
|
|
|
177
177
|
/**
|
|
178
178
|
* Récupérer les membres de l'organisation.
|
|
179
179
|
* Constant : GET_MEMBERS_ADMIN / GET_MEMBERS_NO_ADMIN
|
|
180
|
-
* @param data - Paramètres (partiels) de recherche/pagination
|
|
180
|
+
* @param data - Paramètres (partiels) de recherche/pagination (`name`, `indexStep`,
|
|
181
|
+
* `filters` complémentaires, `fields`…). Les `filters` fournis sont fusionnés avec le filtre
|
|
182
|
+
* membership construit par le SDK, ce dernier restant prioritaire : l'appelant peut
|
|
183
|
+
* restreindre la liste (un champ de profil, par exemple) mais pas en changer la sémantique.
|
|
184
|
+
* `fields` AJOUTE des champs à la projection par défaut de la recherche (elle n'est pas
|
|
185
|
+
* remplacée) : utile pour lire sur la liste un champ de profil qu'elle ne ramène pas. Sans objet
|
|
186
|
+
* sur le chemin admin, où les documents reviennent complets (il y est retiré).
|
|
181
187
|
* @param options - Options supplémentaires.
|
|
182
188
|
* @param options.toBeValidated - Indique si les membres doivent être validés.
|
|
183
189
|
* @param options.isAdmin - Indique si l'utilisateur est admin.
|
|
@@ -217,6 +223,13 @@ export declare class Organization extends BaseEntity<OrganizationItemNormalized>
|
|
|
217
223
|
*
|
|
218
224
|
* // Restreindre la recherche : uniquement les organisations
|
|
219
225
|
* const onlyOrgas = await organization.getMembers({}, { searchType: "organizations" });
|
|
226
|
+
*
|
|
227
|
+
* // Restreindre par un champ du profil des membres (filtre serveur, fusionné au membership)
|
|
228
|
+
* // et ramener ce champ + les contacts sur la liste (projection additive)
|
|
229
|
+
* const coordinateurs = await organization.getMembers(
|
|
230
|
+
* { filters: { territoires: "Arrageois" }, fields: ["territoires", "telephone"] },
|
|
231
|
+
* { roles: ["Coordonnateur(trice)"] }
|
|
232
|
+
* );
|
|
220
233
|
*/
|
|
221
234
|
getMembers(data?: Partial<GetMembersAdminData | GetMembersNoAdminData>, options?: {
|
|
222
235
|
toBeValidated?: boolean;
|
package/types/api/Project.d.ts
CHANGED
|
@@ -91,7 +91,12 @@ export declare class Project extends BaseEntity<ProjectItemNormalized> {
|
|
|
91
91
|
/**
|
|
92
92
|
* Récupérer les contributeurs d'un projet.
|
|
93
93
|
* Constant : GET_CONTRIBUTORS_ADMIN / GET_CONTRIBUTORS_NO_ADMIN
|
|
94
|
-
* @param data - Paramètres (partiels) de recherche/pagination
|
|
94
|
+
* @param data - Paramètres (partiels) de recherche/pagination (`name`, `indexStep`,
|
|
95
|
+
* `filters` complémentaires, `fields`…). Les `filters` fournis sont fusionnés avec le filtre
|
|
96
|
+
* de lien construit par le SDK, ce dernier restant prioritaire : l'appelant peut restreindre
|
|
97
|
+
* la liste (un champ de profil, par exemple) mais pas en changer la sémantique « contributeurs ».
|
|
98
|
+
* `fields` AJOUTE des champs à la projection par défaut de la recherche (elle n'est pas remplacée) ;
|
|
99
|
+
* sans objet sur le chemin admin, où les documents reviennent complets (il y est retiré).
|
|
95
100
|
* @param options - Options supplémentaires.
|
|
96
101
|
* @param options.toBeValidated - Indique si les contributeurs doivent être validés.
|
|
97
102
|
* @param options.isAdmin - Indique si l'utilisateur est admin.
|
|
@@ -15793,6 +15793,12 @@ declare const endpoints: {
|
|
|
15793
15793
|
default: boolean;
|
|
15794
15794
|
type: string;
|
|
15795
15795
|
};
|
|
15796
|
+
fields: {
|
|
15797
|
+
items: {
|
|
15798
|
+
type: string;
|
|
15799
|
+
};
|
|
15800
|
+
type: string;
|
|
15801
|
+
};
|
|
15796
15802
|
filters: {
|
|
15797
15803
|
additionalProperties: boolean;
|
|
15798
15804
|
allOf: {
|
|
@@ -16086,7 +16092,6 @@ declare const endpoints: {
|
|
|
16086
16092
|
scopeValue?: undefined;
|
|
16087
16093
|
sourceKey?: undefined;
|
|
16088
16094
|
costumEditMode?: undefined;
|
|
16089
|
-
fields?: undefined;
|
|
16090
16095
|
mapUsed?: undefined;
|
|
16091
16096
|
options?: undefined;
|
|
16092
16097
|
sort?: undefined;
|
|
@@ -16283,6 +16288,12 @@ declare const endpoints: {
|
|
|
16283
16288
|
default: boolean;
|
|
16284
16289
|
type: string;
|
|
16285
16290
|
};
|
|
16291
|
+
fields: {
|
|
16292
|
+
items: {
|
|
16293
|
+
type: string;
|
|
16294
|
+
};
|
|
16295
|
+
type: string;
|
|
16296
|
+
};
|
|
16286
16297
|
filters: {
|
|
16287
16298
|
additionalProperties: boolean;
|
|
16288
16299
|
allOf: {
|
|
@@ -16615,7 +16626,6 @@ declare const endpoints: {
|
|
|
16615
16626
|
scopeValue?: undefined;
|
|
16616
16627
|
sourceKey?: undefined;
|
|
16617
16628
|
costumEditMode?: undefined;
|
|
16618
|
-
fields?: undefined;
|
|
16619
16629
|
mapUsed?: undefined;
|
|
16620
16630
|
options?: undefined;
|
|
16621
16631
|
sort?: undefined;
|
|
@@ -19151,6 +19161,12 @@ declare const endpoints: {
|
|
|
19151
19161
|
default: boolean;
|
|
19152
19162
|
type: string;
|
|
19153
19163
|
};
|
|
19164
|
+
fields: {
|
|
19165
|
+
items: {
|
|
19166
|
+
type: string;
|
|
19167
|
+
};
|
|
19168
|
+
type: string;
|
|
19169
|
+
};
|
|
19154
19170
|
filters: {
|
|
19155
19171
|
additionalProperties: boolean;
|
|
19156
19172
|
allOf: {
|
|
@@ -19444,7 +19460,6 @@ declare const endpoints: {
|
|
|
19444
19460
|
scopeValue?: undefined;
|
|
19445
19461
|
sourceKey?: undefined;
|
|
19446
19462
|
costumEditMode?: undefined;
|
|
19447
|
-
fields?: undefined;
|
|
19448
19463
|
mapUsed?: undefined;
|
|
19449
19464
|
options?: undefined;
|
|
19450
19465
|
sort?: undefined;
|
|
@@ -19641,6 +19656,12 @@ declare const endpoints: {
|
|
|
19641
19656
|
default: boolean;
|
|
19642
19657
|
type: string;
|
|
19643
19658
|
};
|
|
19659
|
+
fields: {
|
|
19660
|
+
items: {
|
|
19661
|
+
type: string;
|
|
19662
|
+
};
|
|
19663
|
+
type: string;
|
|
19664
|
+
};
|
|
19644
19665
|
filters: {
|
|
19645
19666
|
additionalProperties: boolean;
|
|
19646
19667
|
allOf: {
|
|
@@ -19973,7 +19994,6 @@ declare const endpoints: {
|
|
|
19973
19994
|
scopeValue?: undefined;
|
|
19974
19995
|
sourceKey?: undefined;
|
|
19975
19996
|
costumEditMode?: undefined;
|
|
19976
|
-
fields?: undefined;
|
|
19977
19997
|
mapUsed?: undefined;
|
|
19978
19998
|
options?: undefined;
|
|
19979
19999
|
sort?: undefined;
|
|
@@ -31612,6 +31632,12 @@ declare const endpoints: {
|
|
|
31612
31632
|
default: boolean;
|
|
31613
31633
|
type: string;
|
|
31614
31634
|
};
|
|
31635
|
+
fields: {
|
|
31636
|
+
items: {
|
|
31637
|
+
type: string;
|
|
31638
|
+
};
|
|
31639
|
+
type: string;
|
|
31640
|
+
};
|
|
31615
31641
|
filters: {
|
|
31616
31642
|
additionalProperties: boolean;
|
|
31617
31643
|
allOf: {
|
|
@@ -31905,7 +31931,6 @@ declare const endpoints: {
|
|
|
31905
31931
|
scopeValue?: undefined;
|
|
31906
31932
|
sourceKey?: undefined;
|
|
31907
31933
|
costumEditMode?: undefined;
|
|
31908
|
-
fields?: undefined;
|
|
31909
31934
|
mapUsed?: undefined;
|
|
31910
31935
|
options?: undefined;
|
|
31911
31936
|
sort?: undefined;
|
|
@@ -32103,6 +32128,12 @@ declare const endpoints: {
|
|
|
32103
32128
|
default: boolean;
|
|
32104
32129
|
type: string;
|
|
32105
32130
|
};
|
|
32131
|
+
fields: {
|
|
32132
|
+
items: {
|
|
32133
|
+
type: string;
|
|
32134
|
+
};
|
|
32135
|
+
type: string;
|
|
32136
|
+
};
|
|
32106
32137
|
filters: {
|
|
32107
32138
|
additionalProperties: boolean;
|
|
32108
32139
|
allOf: {
|
|
@@ -32435,7 +32466,6 @@ declare const endpoints: {
|
|
|
32435
32466
|
scopeValue?: undefined;
|
|
32436
32467
|
sourceKey?: undefined;
|
|
32437
32468
|
costumEditMode?: undefined;
|
|
32438
|
-
fields?: undefined;
|
|
32439
32469
|
mapUsed?: undefined;
|
|
32440
32470
|
options?: undefined;
|
|
32441
32471
|
sort?: undefined;
|