@communecter/cocolight-api-client 1.0.121 → 1.0.123
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/203.cocolight-api-client.cjs +1 -0
- package/dist/278.cocolight-api-client.browser.js +1 -0
- package/dist/278.cocolight-api-client.cjs +1 -0
- package/dist/278.cocolight-api-client.mjs.js +1 -0
- package/dist/401.cocolight-api-client.mjs.js +1 -1
- package/dist/407.cocolight-api-client.browser.js +1 -0
- package/dist/407.cocolight-api-client.mjs.js +1 -0
- package/dist/499.cocolight-api-client.browser.js +1 -0
- package/dist/499.cocolight-api-client.cjs +1 -0
- package/dist/499.cocolight-api-client.mjs.js +1 -0
- package/dist/556.cocolight-api-client.browser.js +1 -0
- package/dist/556.cocolight-api-client.cjs +1 -0
- package/dist/556.cocolight-api-client.mjs.js +1 -0
- package/dist/588.cocolight-api-client.mjs.js +1 -1
- package/dist/593.cocolight-api-client.mjs.js +1 -1
- package/dist/839.cocolight-api-client.mjs.js +1 -1
- package/dist/85.cocolight-api-client.browser.js +1 -0
- package/dist/85.cocolight-api-client.cjs +1 -0
- package/dist/85.cocolight-api-client.mjs.js +1 -0
- package/dist/906.cocolight-api-client.browser.js +1 -0
- package/dist/906.cocolight-api-client.cjs +1 -0
- package/dist/906.cocolight-api-client.mjs.js +1 -0
- 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 +21 -2
- package/src/api/BaseEntity.ts +145 -4
- package/src/api/EndpointApi.ts +125 -1
- package/src/api/EndpointApi.types.ts +210 -1
- package/src/api/EntityRegistry.ts +11 -3
- package/src/api/Form.ts +60 -0
- package/src/api/User.ts +2 -0
- package/src/api/UserApi.ts +3 -2
- package/src/api/serverDataType/Form.ts +56 -0
- package/src/endpoints.module.ts +1 -1
- package/src/index.ts +3 -1
- package/src/types/entities.ts +3 -2
- package/types/Api.d.ts +7 -0
- package/types/api/BaseEntity.d.ts +99 -3
- package/types/api/EndpointApi.d.ts +77 -1
- package/types/api/EndpointApi.types.d.ts +194 -1
- package/types/api/EntityRegistry.d.ts +1 -1
- package/types/api/Form.d.ts +23 -0
- package/types/api/Organization.d.ts +1 -1
- package/types/api/User.d.ts +1 -0
- package/types/api/serverDataType/Form.d.ts +51 -0
- package/types/endpoints.module.d.ts +2994 -168
- package/types/index.d.ts +3 -1
- package/types/types/entities.d.ts +3 -2
package/types/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export type { Badge } from "./api/Badge.js";
|
|
|
54
54
|
export type { News } from "./api/News.js";
|
|
55
55
|
export type { Comment } from "./api/Comment.js";
|
|
56
56
|
export type { Answer } from "./api/Answer.js";
|
|
57
|
+
export type { Form } from "./api/Form.js";
|
|
57
58
|
export type * from "./api/serverDataType/User.js";
|
|
58
59
|
export type * from "./api/serverDataType/Organization.js";
|
|
59
60
|
export { ORGANIZATION_TYPES } from "./api/serverDataType/Organization.js";
|
|
@@ -66,9 +67,10 @@ export type * from "./api/serverDataType/Poi.js";
|
|
|
66
67
|
export type * from "./api/serverDataType/News.js";
|
|
67
68
|
export type * from "./api/serverDataType/Comment.js";
|
|
68
69
|
export type * from "./api/serverDataType/Answer.js";
|
|
70
|
+
export type * from "./api/serverDataType/Form.js";
|
|
69
71
|
export type * from "./api/serverDataType/common.js";
|
|
70
72
|
export type * from "./api/serverDataType/Country.js";
|
|
71
73
|
export type * from "./api/serverDataType/Zone.js";
|
|
72
|
-
export type { PaginatorPage, PaginatorState } from "./api/BaseEntity.js";
|
|
74
|
+
export type { PaginatorPage, PaginatorState, FundingEnvelopeResult } from "./api/BaseEntity.js";
|
|
73
75
|
export type * from "./types/index.js";
|
|
74
76
|
export type * from "./api/EndpointApi.types.js";
|
|
@@ -2,6 +2,7 @@ import type { Answer } from "../api/Answer.js";
|
|
|
2
2
|
import type { Badge } from "../api/Badge.js";
|
|
3
3
|
import type { Comment } from "../api/Comment.js";
|
|
4
4
|
import type { Event } from "../api/Event.js";
|
|
5
|
+
import type { Form } from "../api/Form.js";
|
|
5
6
|
import type { News } from "../api/News.js";
|
|
6
7
|
import type { Organization } from "../api/Organization.js";
|
|
7
8
|
import type { Poi } from "../api/Poi.js";
|
|
@@ -10,7 +11,7 @@ import type { User } from "../api/User.js";
|
|
|
10
11
|
/**
|
|
11
12
|
* Union type for all possible entity types
|
|
12
13
|
*/
|
|
13
|
-
export type EntityTypes = User | Organization | Project | Event | Poi | Badge | News | Comment | Answer;
|
|
14
|
+
export type EntityTypes = User | Organization | Project | Event | Poi | Badge | News | Comment | Answer | Form;
|
|
14
15
|
/**
|
|
15
16
|
* Type union représentant les entités pouvant être retournées par une recherche.
|
|
16
17
|
* Inclut les utilisateurs, organisations, projets, événements et points d'intérêt.
|
|
@@ -33,7 +34,7 @@ export type EntityData = {
|
|
|
33
34
|
/**
|
|
34
35
|
* Types de collection possibles
|
|
35
36
|
*/
|
|
36
|
-
export type CollectionType = "citoyens" | "organizations" | "projects" | "events" | "poi" | "news" | "badges" | "comments" | "answers";
|
|
37
|
+
export type CollectionType = "citoyens" | "organizations" | "projects" | "events" | "poi" | "news" | "badges" | "comments" | "answers" | "forms";
|
|
37
38
|
/**
|
|
38
39
|
* Types pour les références entre entités
|
|
39
40
|
*/
|