@communecter/cocolight-api-client 1.0.130 → 1.0.132
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 +3 -3
- 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.ts +4 -4
- package/src/ApiClient.ts +3 -1
- package/src/api/Action.ts +535 -4
- package/src/api/Answer.ts +4 -1
- package/src/api/Badge.ts +5 -0
- package/src/api/BaseEntity.ts +118 -7
- package/src/api/Classified.ts +4 -0
- package/src/api/Comment.ts +3 -0
- package/src/api/EndpointApi.ts +96 -1
- package/src/api/EndpointApi.types.ts +448 -44
- package/src/api/Event.ts +5 -0
- package/src/api/Form.ts +64 -2
- package/src/api/News.ts +3 -0
- package/src/api/Organization.ts +47 -3
- package/src/api/Poi.ts +4 -0
- package/src/api/Project.ts +61 -0
- package/src/api/User.ts +10 -0
- package/src/api/serverDataType/Answer.ts +25 -0
- package/src/api/serverDataType/Form.ts +84 -4
- package/src/api/serverDataType/Organization.ts +13 -0
- package/src/api/serverDataType/Project.ts +15 -0
- package/src/endpoints.module.ts +1252 -268
- package/types/api/Action.d.ts +276 -2
- package/types/api/Answer.d.ts +1 -0
- package/types/api/Badge.d.ts +1 -0
- package/types/api/BaseEntity.d.ts +62 -0
- package/types/api/Classified.d.ts +1 -0
- package/types/api/Comment.d.ts +1 -0
- package/types/api/EndpointApi.d.ts +60 -1
- package/types/api/EndpointApi.types.d.ts +397 -41
- package/types/api/Event.d.ts +1 -0
- package/types/api/Form.d.ts +34 -0
- package/types/api/News.d.ts +1 -0
- package/types/api/Organization.d.ts +20 -1
- package/types/api/Poi.d.ts +1 -0
- package/types/api/Project.d.ts +29 -0
- package/types/api/User.d.ts +7 -0
- package/types/api/serverDataType/Answer.d.ts +22 -0
- package/types/api/serverDataType/Form.d.ts +89 -4
- package/types/api/serverDataType/Organization.d.ts +13 -0
- package/types/api/serverDataType/Project.d.ts +15 -0
- package/types/endpoints.module.d.ts +2825 -1491
|
@@ -917,9 +917,9 @@ export interface GlobalAutocompleteData {
|
|
|
917
917
|
*/
|
|
918
918
|
countType: ("NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative" | "projects" | "citoyens" | "poi" | "answers" | "forms")[];
|
|
919
919
|
/**
|
|
920
|
-
*
|
|
920
|
+
* 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"]`).
|
|
921
921
|
*/
|
|
922
|
-
searchBy?:
|
|
922
|
+
searchBy?: string | [string, ...string[]];
|
|
923
923
|
/**
|
|
924
924
|
* Index de départ global pour la pagination (toujours 0)
|
|
925
925
|
*/
|
|
@@ -1036,9 +1036,9 @@ export interface GetProjectsNoAdminData {
|
|
|
1036
1036
|
*/
|
|
1037
1037
|
searchType: "projects"[];
|
|
1038
1038
|
/**
|
|
1039
|
-
*
|
|
1039
|
+
* 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"]`).
|
|
1040
1040
|
*/
|
|
1041
|
-
searchBy?:
|
|
1041
|
+
searchBy?: string | [string, ...string[]];
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Index de départ global pour la pagination
|
|
1044
1044
|
*/
|
|
@@ -1114,9 +1114,9 @@ export interface GetProjectsAdminData {
|
|
|
1114
1114
|
*/
|
|
1115
1115
|
searchType: "projects"[];
|
|
1116
1116
|
/**
|
|
1117
|
-
*
|
|
1117
|
+
* 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"]`).
|
|
1118
1118
|
*/
|
|
1119
|
-
searchBy?:
|
|
1119
|
+
searchBy?: string | [string, ...string[]];
|
|
1120
1120
|
/**
|
|
1121
1121
|
* Index de départ global pour la pagination
|
|
1122
1122
|
*/
|
|
@@ -1203,9 +1203,9 @@ export interface GetPoisNoAdminData {
|
|
|
1203
1203
|
*/
|
|
1204
1204
|
searchType: "poi"[];
|
|
1205
1205
|
/**
|
|
1206
|
-
*
|
|
1206
|
+
* 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"]`).
|
|
1207
1207
|
*/
|
|
1208
|
-
searchBy?:
|
|
1208
|
+
searchBy?: string | [string, ...string[]];
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Index de départ global pour la pagination
|
|
1211
1211
|
*/
|
|
@@ -1282,9 +1282,9 @@ export interface GetPoisAdminData {
|
|
|
1282
1282
|
*/
|
|
1283
1283
|
searchType: "poi"[];
|
|
1284
1284
|
/**
|
|
1285
|
-
*
|
|
1285
|
+
* 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"]`).
|
|
1286
1286
|
*/
|
|
1287
|
-
searchBy?:
|
|
1287
|
+
searchBy?: string | [string, ...string[]];
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Index de départ global pour la pagination
|
|
1290
1290
|
*/
|
|
@@ -1403,9 +1403,9 @@ export interface GetOrganizationsNoAdminData {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
};
|
|
1405
1405
|
/**
|
|
1406
|
-
*
|
|
1406
|
+
* 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"]`).
|
|
1407
1407
|
*/
|
|
1408
|
-
searchBy?:
|
|
1408
|
+
searchBy?: string | [string, ...string[]];
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Type initial de la recherche, vide par défaut
|
|
1411
1411
|
*/
|
|
@@ -1474,9 +1474,9 @@ export interface GetOrganizationsAdminData {
|
|
|
1474
1474
|
};
|
|
1475
1475
|
};
|
|
1476
1476
|
/**
|
|
1477
|
-
*
|
|
1477
|
+
* 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"]`).
|
|
1478
1478
|
*/
|
|
1479
|
-
searchBy?:
|
|
1479
|
+
searchBy?: string | [string, ...string[]];
|
|
1480
1480
|
/**
|
|
1481
1481
|
* Type initial de la recherche, vide par défaut
|
|
1482
1482
|
*/
|
|
@@ -1532,9 +1532,9 @@ export interface GetMembersNoAdminData {
|
|
|
1532
1532
|
...("citoyens" | "NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative")[]
|
|
1533
1533
|
];
|
|
1534
1534
|
/**
|
|
1535
|
-
*
|
|
1535
|
+
* 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"]`).
|
|
1536
1536
|
*/
|
|
1537
|
-
searchBy?:
|
|
1537
|
+
searchBy?: string | [string, ...string[]];
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Index de départ global pour la pagination
|
|
1540
1540
|
*/
|
|
@@ -1610,9 +1610,9 @@ export interface GetMembersAdminData {
|
|
|
1610
1610
|
...("citoyens" | "NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative")[]
|
|
1611
1611
|
];
|
|
1612
1612
|
/**
|
|
1613
|
-
*
|
|
1613
|
+
* 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"]`).
|
|
1614
1614
|
*/
|
|
1615
|
-
searchBy?:
|
|
1615
|
+
searchBy?: string | [string, ...string[]];
|
|
1616
1616
|
/**
|
|
1617
1617
|
* Index de départ global pour la pagination
|
|
1618
1618
|
*/
|
|
@@ -1766,9 +1766,9 @@ export interface GetSubscriptionsData {
|
|
|
1766
1766
|
*/
|
|
1767
1767
|
searchType: ("citoyens" | "NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative" | "projects")[];
|
|
1768
1768
|
/**
|
|
1769
|
-
*
|
|
1769
|
+
* 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"]`).
|
|
1770
1770
|
*/
|
|
1771
|
-
searchBy?:
|
|
1771
|
+
searchBy?: string | [string, ...string[]];
|
|
1772
1772
|
/**
|
|
1773
1773
|
* Index de départ global pour la pagination
|
|
1774
1774
|
*/
|
|
@@ -1839,9 +1839,9 @@ export interface GetSubscriptionsAdminData {
|
|
|
1839
1839
|
*/
|
|
1840
1840
|
searchType: ("citoyens" | "NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative" | "projects")[];
|
|
1841
1841
|
/**
|
|
1842
|
-
*
|
|
1842
|
+
* 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"]`).
|
|
1843
1843
|
*/
|
|
1844
|
-
searchBy?:
|
|
1844
|
+
searchBy?: string | [string, ...string[]];
|
|
1845
1845
|
/**
|
|
1846
1846
|
* Index de départ global pour la pagination
|
|
1847
1847
|
*/
|
|
@@ -1919,9 +1919,9 @@ export interface GetSubscribersData {
|
|
|
1919
1919
|
*/
|
|
1920
1920
|
searchType: "citoyens"[];
|
|
1921
1921
|
/**
|
|
1922
|
-
*
|
|
1922
|
+
* 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"]`).
|
|
1923
1923
|
*/
|
|
1924
|
-
searchBy?:
|
|
1924
|
+
searchBy?: string | [string, ...string[]];
|
|
1925
1925
|
/**
|
|
1926
1926
|
* Index de départ global pour la pagination
|
|
1927
1927
|
*/
|
|
@@ -2054,9 +2054,9 @@ export interface GetContributorsNoAdminData {
|
|
|
2054
2054
|
...("citoyens" | "NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative")[]
|
|
2055
2055
|
];
|
|
2056
2056
|
/**
|
|
2057
|
-
*
|
|
2057
|
+
* 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"]`).
|
|
2058
2058
|
*/
|
|
2059
|
-
searchBy?:
|
|
2059
|
+
searchBy?: string | [string, ...string[]];
|
|
2060
2060
|
/**
|
|
2061
2061
|
* Index de départ global pour la pagination
|
|
2062
2062
|
*/
|
|
@@ -2132,9 +2132,9 @@ export interface GetContributorsAdminData {
|
|
|
2132
2132
|
...("citoyens" | "NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative")[]
|
|
2133
2133
|
];
|
|
2134
2134
|
/**
|
|
2135
|
-
*
|
|
2135
|
+
* 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"]`).
|
|
2136
2136
|
*/
|
|
2137
|
-
searchBy?:
|
|
2137
|
+
searchBy?: string | [string, ...string[]];
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Index de départ global pour la pagination
|
|
2140
2140
|
*/
|
|
@@ -2212,9 +2212,9 @@ export interface GetBadgesData {
|
|
|
2212
2212
|
*/
|
|
2213
2213
|
searchType: "badges"[];
|
|
2214
2214
|
/**
|
|
2215
|
-
*
|
|
2215
|
+
* 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"]`).
|
|
2216
2216
|
*/
|
|
2217
|
-
searchBy?:
|
|
2217
|
+
searchBy?: string | [string, ...string[]];
|
|
2218
2218
|
/**
|
|
2219
2219
|
* Index de départ global pour la pagination (toujours 0)
|
|
2220
2220
|
*/
|
|
@@ -3872,7 +3872,7 @@ export interface GlobalAutocompleteCostumData {
|
|
|
3872
3872
|
*/
|
|
3873
3873
|
name?: string;
|
|
3874
3874
|
/**
|
|
3875
|
-
*
|
|
3875
|
+
* 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).
|
|
3876
3876
|
*/
|
|
3877
3877
|
locality?: {
|
|
3878
3878
|
/**
|
|
@@ -3885,11 +3885,184 @@ export interface GlobalAutocompleteCostumData {
|
|
|
3885
3885
|
*/
|
|
3886
3886
|
id: string;
|
|
3887
3887
|
/**
|
|
3888
|
-
* Type de
|
|
3888
|
+
* Type de localité
|
|
3889
3889
|
*/
|
|
3890
|
-
type: "cities" | "level1" | "level2" | "level3" | "level4" | "level5";
|
|
3890
|
+
type: "cities" | "cp" | "country" | "level1" | "level2" | "level3" | "level4" | "level5";
|
|
3891
|
+
postalCode?: string;
|
|
3892
|
+
countryCode?: string;
|
|
3893
|
+
name?: string;
|
|
3894
|
+
level?: string | number;
|
|
3895
|
+
};
|
|
3896
|
+
} | {
|
|
3897
|
+
id: string;
|
|
3898
|
+
type: "cities" | "cp" | "country" | "level1" | "level2" | "level3" | "level4" | "level5";
|
|
3899
|
+
postalCode?: string;
|
|
3900
|
+
countryCode?: string;
|
|
3901
|
+
name?: string;
|
|
3902
|
+
level?: string | number;
|
|
3903
|
+
}[] | "";
|
|
3904
|
+
/**
|
|
3905
|
+
* Types d'entités à inclure dans la recherche
|
|
3906
|
+
*/
|
|
3907
|
+
searchType: ("NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative" | "organizations" | "projects" | "events" | "citoyens" | "poi" | "answers" | "forms" | "classifieds")[];
|
|
3908
|
+
/**
|
|
3909
|
+
* Balises (tags) à utiliser pour filtrer la recherche
|
|
3910
|
+
*/
|
|
3911
|
+
searchTags?: string[];
|
|
3912
|
+
/**
|
|
3913
|
+
* Liste fixe des types à compter dans les résultats
|
|
3914
|
+
*/
|
|
3915
|
+
countType: ("NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative" | "organizations" | "projects" | "events" | "citoyens" | "poi" | "answers" | "forms" | "classifieds")[];
|
|
3916
|
+
/**
|
|
3917
|
+
* 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"]`).
|
|
3918
|
+
*/
|
|
3919
|
+
searchBy?: string | [string, ...string[]];
|
|
3920
|
+
/**
|
|
3921
|
+
* Index de départ global pour la pagination
|
|
3922
|
+
*/
|
|
3923
|
+
indexMin: number;
|
|
3924
|
+
/**
|
|
3925
|
+
* Index de fin global pour la pagination
|
|
3926
|
+
*/
|
|
3927
|
+
indexMax?: number;
|
|
3928
|
+
/**
|
|
3929
|
+
* Nombre d’éléments à récupérer (limite de pagination)
|
|
3930
|
+
*/
|
|
3931
|
+
indexStep: number;
|
|
3932
|
+
/**
|
|
3933
|
+
* Configuration des plages de résultats pour chaque type de recherche
|
|
3934
|
+
*/
|
|
3935
|
+
ranges?: {
|
|
3936
|
+
/**
|
|
3937
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
3938
|
+
* via the `patternProperty` "^[^\s]+$".
|
|
3939
|
+
*/
|
|
3940
|
+
[k: string]: {
|
|
3941
|
+
/**
|
|
3942
|
+
* Index de départ pour la pagination
|
|
3943
|
+
*/
|
|
3944
|
+
indexMin: number;
|
|
3945
|
+
/**
|
|
3946
|
+
* Index de fin pour la pagination
|
|
3947
|
+
*/
|
|
3948
|
+
indexMax: number;
|
|
3891
3949
|
};
|
|
3892
3950
|
};
|
|
3951
|
+
/**
|
|
3952
|
+
* Type initial de la recherche, vide par défaut
|
|
3953
|
+
*/
|
|
3954
|
+
initType: "";
|
|
3955
|
+
/**
|
|
3956
|
+
* Indique si les types doivent être comptés dans les résultats
|
|
3957
|
+
*/
|
|
3958
|
+
count: true;
|
|
3959
|
+
/**
|
|
3960
|
+
* Filtres additionnels appliqués à la recherche (objet ou chaîne vide)
|
|
3961
|
+
*/
|
|
3962
|
+
filters?: {
|
|
3963
|
+
[k: string]: unknown;
|
|
3964
|
+
} | "";
|
|
3965
|
+
/**
|
|
3966
|
+
* Liste des champs à retourner
|
|
3967
|
+
*/
|
|
3968
|
+
fields?: string[];
|
|
3969
|
+
/**
|
|
3970
|
+
* Champ de tri (clé = champ, valeur = 1 ou -1)
|
|
3971
|
+
*/
|
|
3972
|
+
sortBy?: {
|
|
3973
|
+
[k: string]: 1 | -1;
|
|
3974
|
+
};
|
|
3975
|
+
/**
|
|
3976
|
+
* Indique si la recherche doit s'étendre au Fediverse (toujours désactivé)
|
|
3977
|
+
*/
|
|
3978
|
+
fediverse: boolean;
|
|
3979
|
+
/**
|
|
3980
|
+
* Indique si la recherche est effectuée à partir d'une carte (toujours désactivé)
|
|
3981
|
+
*/
|
|
3982
|
+
mapUsed?: true;
|
|
3983
|
+
/**
|
|
3984
|
+
* Indique si on doit exclure les éléments avec une source
|
|
3985
|
+
*/
|
|
3986
|
+
notSourceKey?: true;
|
|
3987
|
+
/**
|
|
3988
|
+
* ID du contexte de recherche (actuellement vide)
|
|
3989
|
+
*/
|
|
3990
|
+
contextId?: string;
|
|
3991
|
+
/**
|
|
3992
|
+
* Type de contexte de recherche (actuellement vide)
|
|
3993
|
+
*/
|
|
3994
|
+
contextType?: "projects" | "organizations";
|
|
3995
|
+
/**
|
|
3996
|
+
* Slug du costume utilisé pour la recherche
|
|
3997
|
+
*/
|
|
3998
|
+
costumSlug: string;
|
|
3999
|
+
/**
|
|
4000
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4001
|
+
*/
|
|
4002
|
+
costumId?: string;
|
|
4003
|
+
/**
|
|
4004
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4005
|
+
*/
|
|
4006
|
+
costumType?: "projects" | "organizations";
|
|
4007
|
+
/**
|
|
4008
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4009
|
+
*/
|
|
4010
|
+
mode?: string;
|
|
4011
|
+
/**
|
|
4012
|
+
* Clés de source pour la recherche
|
|
4013
|
+
*/
|
|
4014
|
+
sourceKey?: string[];
|
|
4015
|
+
/**
|
|
4016
|
+
* Indique si le mode d'édition du costume est activé (toujours désactivé)
|
|
4017
|
+
*/
|
|
4018
|
+
costumEditMode: boolean;
|
|
4019
|
+
options?: {
|
|
4020
|
+
tags?: {
|
|
4021
|
+
/**
|
|
4022
|
+
* Verbe d'action pour le filtre de recherche
|
|
4023
|
+
*/
|
|
4024
|
+
verb?: string;
|
|
4025
|
+
[k: string]: unknown;
|
|
4026
|
+
};
|
|
4027
|
+
[k: string]: unknown;
|
|
4028
|
+
};
|
|
4029
|
+
[k: string]: unknown;
|
|
4030
|
+
}
|
|
4031
|
+
export interface NavigatorGettlData {
|
|
4032
|
+
/**
|
|
4033
|
+
* Nom ou mot-clé de la recherche
|
|
4034
|
+
*/
|
|
4035
|
+
name?: string;
|
|
4036
|
+
/**
|
|
4037
|
+
* 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).
|
|
4038
|
+
*/
|
|
4039
|
+
locality?: {
|
|
4040
|
+
/**
|
|
4041
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
4042
|
+
* via the `patternProperty` "^[^\s]+$".
|
|
4043
|
+
*/
|
|
4044
|
+
[k: string]: {
|
|
4045
|
+
/**
|
|
4046
|
+
* Identifiant de la localité
|
|
4047
|
+
*/
|
|
4048
|
+
id: string;
|
|
4049
|
+
/**
|
|
4050
|
+
* Type de localité
|
|
4051
|
+
*/
|
|
4052
|
+
type: "cities" | "cp" | "country" | "level1" | "level2" | "level3" | "level4" | "level5";
|
|
4053
|
+
postalCode?: string;
|
|
4054
|
+
countryCode?: string;
|
|
4055
|
+
name?: string;
|
|
4056
|
+
level?: string | number;
|
|
4057
|
+
};
|
|
4058
|
+
} | {
|
|
4059
|
+
id: string;
|
|
4060
|
+
type: "cities" | "cp" | "country" | "level1" | "level2" | "level3" | "level4" | "level5";
|
|
4061
|
+
postalCode?: string;
|
|
4062
|
+
countryCode?: string;
|
|
4063
|
+
name?: string;
|
|
4064
|
+
level?: string | number;
|
|
4065
|
+
}[] | "";
|
|
3893
4066
|
/**
|
|
3894
4067
|
* Types d'entités à inclure dans la recherche
|
|
3895
4068
|
*/
|
|
@@ -3903,9 +4076,9 @@ export interface GlobalAutocompleteCostumData {
|
|
|
3903
4076
|
*/
|
|
3904
4077
|
countType: ("NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative" | "organizations" | "projects" | "events" | "citoyens" | "poi" | "answers" | "forms" | "classifieds")[];
|
|
3905
4078
|
/**
|
|
3906
|
-
*
|
|
4079
|
+
* 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"]`).
|
|
3907
4080
|
*/
|
|
3908
|
-
searchBy?:
|
|
4081
|
+
searchBy?: string | [string, ...string[]];
|
|
3909
4082
|
/**
|
|
3910
4083
|
* Index de départ global pour la pagination
|
|
3911
4084
|
*/
|
|
@@ -3985,6 +4158,18 @@ export interface GlobalAutocompleteCostumData {
|
|
|
3985
4158
|
* Slug du costume utilisé pour la recherche
|
|
3986
4159
|
*/
|
|
3987
4160
|
costumSlug: string;
|
|
4161
|
+
/**
|
|
4162
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4163
|
+
*/
|
|
4164
|
+
costumId?: string;
|
|
4165
|
+
/**
|
|
4166
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4167
|
+
*/
|
|
4168
|
+
costumType?: "projects" | "organizations";
|
|
4169
|
+
/**
|
|
4170
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4171
|
+
*/
|
|
4172
|
+
mode?: string;
|
|
3988
4173
|
/**
|
|
3989
4174
|
* Clés de source pour la recherche
|
|
3990
4175
|
*/
|
|
@@ -4026,6 +4211,18 @@ export interface CostumEventRequestActorsData {
|
|
|
4026
4211
|
* Slug du costume utilisé pour la recherche
|
|
4027
4212
|
*/
|
|
4028
4213
|
costumSlug?: string;
|
|
4214
|
+
/**
|
|
4215
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4216
|
+
*/
|
|
4217
|
+
costumId?: string;
|
|
4218
|
+
/**
|
|
4219
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4220
|
+
*/
|
|
4221
|
+
costumType?: "projects" | "organizations";
|
|
4222
|
+
/**
|
|
4223
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4224
|
+
*/
|
|
4225
|
+
mode?: string;
|
|
4029
4226
|
/**
|
|
4030
4227
|
* Clés de source pour la recherche
|
|
4031
4228
|
*/
|
|
@@ -4097,6 +4294,18 @@ export interface CostumEventRequestSubeventsData {
|
|
|
4097
4294
|
* Slug du costume utilisé pour la recherche
|
|
4098
4295
|
*/
|
|
4099
4296
|
costumSlug?: string;
|
|
4297
|
+
/**
|
|
4298
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4299
|
+
*/
|
|
4300
|
+
costumId?: string;
|
|
4301
|
+
/**
|
|
4302
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4303
|
+
*/
|
|
4304
|
+
costumType?: "projects" | "organizations";
|
|
4305
|
+
/**
|
|
4306
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4307
|
+
*/
|
|
4308
|
+
mode?: string;
|
|
4100
4309
|
/**
|
|
4101
4310
|
* Clés de source pour la recherche
|
|
4102
4311
|
*/
|
|
@@ -4131,6 +4340,18 @@ export interface CostumEventRequestElementEventData {
|
|
|
4131
4340
|
* Slug du costume utilisé pour la recherche
|
|
4132
4341
|
*/
|
|
4133
4342
|
costumSlug?: string;
|
|
4343
|
+
/**
|
|
4344
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4345
|
+
*/
|
|
4346
|
+
costumId?: string;
|
|
4347
|
+
/**
|
|
4348
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4349
|
+
*/
|
|
4350
|
+
costumType?: "projects" | "organizations";
|
|
4351
|
+
/**
|
|
4352
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4353
|
+
*/
|
|
4354
|
+
mode?: string;
|
|
4134
4355
|
/**
|
|
4135
4356
|
* Clés de source pour la recherche
|
|
4136
4357
|
*/
|
|
@@ -4165,6 +4386,18 @@ export interface CostumEventRequestCategoriesData {
|
|
|
4165
4386
|
* Slug du costume utilisé pour la recherche
|
|
4166
4387
|
*/
|
|
4167
4388
|
costumSlug?: string;
|
|
4389
|
+
/**
|
|
4390
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4391
|
+
*/
|
|
4392
|
+
costumId?: string;
|
|
4393
|
+
/**
|
|
4394
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4395
|
+
*/
|
|
4396
|
+
costumType?: "projects" | "organizations";
|
|
4397
|
+
/**
|
|
4398
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4399
|
+
*/
|
|
4400
|
+
mode?: string;
|
|
4168
4401
|
/**
|
|
4169
4402
|
* Clés de source pour la recherche
|
|
4170
4403
|
*/
|
|
@@ -4217,6 +4450,18 @@ export interface CostumEventRequestDatesData {
|
|
|
4217
4450
|
* Slug du costume utilisé pour la recherche
|
|
4218
4451
|
*/
|
|
4219
4452
|
costumSlug?: string;
|
|
4453
|
+
/**
|
|
4454
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4455
|
+
*/
|
|
4456
|
+
costumId?: string;
|
|
4457
|
+
/**
|
|
4458
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4459
|
+
*/
|
|
4460
|
+
costumType?: "projects" | "organizations";
|
|
4461
|
+
/**
|
|
4462
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4463
|
+
*/
|
|
4464
|
+
mode?: string;
|
|
4220
4465
|
/**
|
|
4221
4466
|
* Clés de source pour la recherche
|
|
4222
4467
|
*/
|
|
@@ -4251,6 +4496,18 @@ export interface CostumEventRequestEventData {
|
|
|
4251
4496
|
* Slug du costume utilisé pour la recherche
|
|
4252
4497
|
*/
|
|
4253
4498
|
costumSlug?: string;
|
|
4499
|
+
/**
|
|
4500
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4501
|
+
*/
|
|
4502
|
+
costumId?: string;
|
|
4503
|
+
/**
|
|
4504
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4505
|
+
*/
|
|
4506
|
+
costumType?: "projects" | "organizations";
|
|
4507
|
+
/**
|
|
4508
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4509
|
+
*/
|
|
4510
|
+
mode?: string;
|
|
4254
4511
|
/**
|
|
4255
4512
|
* Clés de source pour la recherche
|
|
4256
4513
|
*/
|
|
@@ -4293,6 +4550,18 @@ export interface CostumEventRequestLinkTlToEventData {
|
|
|
4293
4550
|
* Slug du costume utilisé pour la recherche
|
|
4294
4551
|
*/
|
|
4295
4552
|
costumSlug?: string;
|
|
4553
|
+
/**
|
|
4554
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4555
|
+
*/
|
|
4556
|
+
costumId?: string;
|
|
4557
|
+
/**
|
|
4558
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4559
|
+
*/
|
|
4560
|
+
costumType?: "projects" | "organizations";
|
|
4561
|
+
/**
|
|
4562
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4563
|
+
*/
|
|
4564
|
+
mode?: string;
|
|
4296
4565
|
/**
|
|
4297
4566
|
* Clés de source pour la recherche
|
|
4298
4567
|
*/
|
|
@@ -4335,6 +4604,18 @@ export interface CostumEventRequestLoadContextTagData {
|
|
|
4335
4604
|
* Slug du costume utilisé pour la recherche
|
|
4336
4605
|
*/
|
|
4337
4606
|
costumSlug?: string;
|
|
4607
|
+
/**
|
|
4608
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4609
|
+
*/
|
|
4610
|
+
costumId?: string;
|
|
4611
|
+
/**
|
|
4612
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4613
|
+
*/
|
|
4614
|
+
costumType?: "projects" | "organizations";
|
|
4615
|
+
/**
|
|
4616
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4617
|
+
*/
|
|
4618
|
+
mode?: string;
|
|
4338
4619
|
/**
|
|
4339
4620
|
* Clés de source pour la recherche
|
|
4340
4621
|
*/
|
|
@@ -4392,9 +4673,9 @@ export interface GetAttendeesNoAdminData {
|
|
|
4392
4673
|
*/
|
|
4393
4674
|
searchType: "citoyens"[];
|
|
4394
4675
|
/**
|
|
4395
|
-
*
|
|
4676
|
+
* 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"]`).
|
|
4396
4677
|
*/
|
|
4397
|
-
searchBy?:
|
|
4678
|
+
searchBy?: string | [string, ...string[]];
|
|
4398
4679
|
/**
|
|
4399
4680
|
* Index de départ global pour la pagination
|
|
4400
4681
|
*/
|
|
@@ -4465,9 +4746,9 @@ export interface GetAttendeesAdminData {
|
|
|
4465
4746
|
*/
|
|
4466
4747
|
searchType: "citoyens"[];
|
|
4467
4748
|
/**
|
|
4468
|
-
*
|
|
4749
|
+
* 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"]`).
|
|
4469
4750
|
*/
|
|
4470
|
-
searchBy?:
|
|
4751
|
+
searchBy?: string | [string, ...string[]];
|
|
4471
4752
|
/**
|
|
4472
4753
|
* Index de départ global pour la pagination
|
|
4473
4754
|
*/
|
|
@@ -4572,9 +4853,9 @@ export interface CoformAnswersSearchData {
|
|
|
4572
4853
|
*/
|
|
4573
4854
|
countType: "answers"[];
|
|
4574
4855
|
/**
|
|
4575
|
-
*
|
|
4856
|
+
* 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"]`).
|
|
4576
4857
|
*/
|
|
4577
|
-
searchBy?:
|
|
4858
|
+
searchBy?: string | [string, ...string[]];
|
|
4578
4859
|
/**
|
|
4579
4860
|
* Index de départ global pour la pagination
|
|
4580
4861
|
*/
|
|
@@ -4654,6 +4935,18 @@ export interface CoformAnswersSearchData {
|
|
|
4654
4935
|
* Slug du costume utilisé pour la recherche
|
|
4655
4936
|
*/
|
|
4656
4937
|
costumSlug?: string;
|
|
4938
|
+
/**
|
|
4939
|
+
* Alias historique de `contextId` — id du contexte costum. Le backend lit l'un OU l'autre (`isset($post['contextId']) ? ... : $post['costumId']`).
|
|
4940
|
+
*/
|
|
4941
|
+
costumId?: string;
|
|
4942
|
+
/**
|
|
4943
|
+
* Alias historique de `contextType` — type du contexte costum.
|
|
4944
|
+
*/
|
|
4945
|
+
costumType?: "projects" | "organizations";
|
|
4946
|
+
/**
|
|
4947
|
+
* Mode d'affichage / comportement côté backend. Valeurs observées : `table` (charge `creatorData`), `mapWithDirectory`. String libre.
|
|
4948
|
+
*/
|
|
4949
|
+
mode?: string;
|
|
4657
4950
|
/**
|
|
4658
4951
|
* Clés de source pour la recherche
|
|
4659
4952
|
*/
|
|
@@ -5145,6 +5438,69 @@ export interface CostumProjectActionRequestNewData {
|
|
|
5145
5438
|
tags?: string[];
|
|
5146
5439
|
[k: string]: unknown;
|
|
5147
5440
|
}
|
|
5441
|
+
export interface CostumProjectActionRequestSetStatusData {
|
|
5442
|
+
/**
|
|
5443
|
+
* ID de l'action
|
|
5444
|
+
*/
|
|
5445
|
+
id: string;
|
|
5446
|
+
/**
|
|
5447
|
+
* Nouveau statut. Triggers backend : 'done' set endDate=now, 'tracking' set startDate=now+tracking:true, 'discuter'/'next'/'totest' ajoutent un tag et forcent status='todo', 'todo' unset startDate/endDate, 'closed' purge les tags discuter/totest/next, 'disabled' unset tracking.
|
|
5448
|
+
*/
|
|
5449
|
+
status: "todo" | "done" | "tracking" | "discuter" | "next" | "totest" | "disabled" | "closed";
|
|
5450
|
+
/**
|
|
5451
|
+
* Optionnel : userId qui effectue le changement (utilisé pour updateStatus[].author et notification RC). Par défaut session userId.
|
|
5452
|
+
*/
|
|
5453
|
+
user?: string;
|
|
5454
|
+
[k: string]: unknown;
|
|
5455
|
+
}
|
|
5456
|
+
export interface CostumProjectActionRequestSetDateData {
|
|
5457
|
+
/**
|
|
5458
|
+
* ID de l'action
|
|
5459
|
+
*/
|
|
5460
|
+
id: string;
|
|
5461
|
+
/**
|
|
5462
|
+
* Date de début ISO 8601, ou chaîne vide pour effacer ($unset)
|
|
5463
|
+
*/
|
|
5464
|
+
startDate?: string;
|
|
5465
|
+
/**
|
|
5466
|
+
* Date de fin ISO 8601, ou chaîne vide pour effacer ($unset)
|
|
5467
|
+
*/
|
|
5468
|
+
endDate?: string;
|
|
5469
|
+
[k: string]: unknown;
|
|
5470
|
+
}
|
|
5471
|
+
export interface CostumProjectActionRequestSetContributorsData {
|
|
5472
|
+
/**
|
|
5473
|
+
* ID de l'action (côté backend lu via $_POST['action'], pas 'id')
|
|
5474
|
+
*/
|
|
5475
|
+
action: string;
|
|
5476
|
+
/**
|
|
5477
|
+
* Mode A : remplace la liste complète des contributeurs par cet array de userIds.
|
|
5478
|
+
*/
|
|
5479
|
+
contributors?: string[];
|
|
5480
|
+
/**
|
|
5481
|
+
* Mode B/C : userId à ajouter (participate=1) ou retirer (participate=0).
|
|
5482
|
+
*/
|
|
5483
|
+
contributor?: string;
|
|
5484
|
+
/**
|
|
5485
|
+
* Mode B/C : 1=join, 0=quit. Couplé avec `contributor`.
|
|
5486
|
+
*/
|
|
5487
|
+
participate?: 0 | 1;
|
|
5488
|
+
[k: string]: unknown;
|
|
5489
|
+
}
|
|
5490
|
+
export interface CostumProjectActionRequestCancelData {
|
|
5491
|
+
/**
|
|
5492
|
+
* ID de l'action à annuler
|
|
5493
|
+
*/
|
|
5494
|
+
id: string;
|
|
5495
|
+
[k: string]: unknown;
|
|
5496
|
+
}
|
|
5497
|
+
export interface CostumProjectActionRequestArchiveData {
|
|
5498
|
+
/**
|
|
5499
|
+
* ID de l'action à archiver
|
|
5500
|
+
*/
|
|
5501
|
+
id: string;
|
|
5502
|
+
[k: string]: unknown;
|
|
5503
|
+
}
|
|
5148
5504
|
export interface LinkDiscourseAccountData {
|
|
5149
5505
|
/**
|
|
5150
5506
|
* Nom d'utilisateur du compte Discourse
|