@communecter/cocolight-api-client 1.0.89 → 1.0.91
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/serverDataType/Event.ts +2 -2
- package/src/api/serverDataType/Project.ts +20 -0
- package/src/endpoints.module.ts +221 -210
- package/src/index.ts +1 -0
- package/types/api/serverDataType/Event.d.ts +2 -2
- package/types/api/serverDataType/Project.d.ts +7 -0
- package/types/endpoints.module.d.ts +21 -4
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ export interface EventItemJson {
|
|
|
52
52
|
_id: IdObject;
|
|
53
53
|
collection: "events";
|
|
54
54
|
name: string;
|
|
55
|
-
type
|
|
55
|
+
type: EventType;
|
|
56
56
|
startDate: DateValue;
|
|
57
57
|
endDate: DateValue;
|
|
58
58
|
created?: DateValue;
|
|
@@ -82,7 +82,7 @@ export interface EventItemNormalized {
|
|
|
82
82
|
_id: ObjectID;
|
|
83
83
|
collection: "events";
|
|
84
84
|
name: string;
|
|
85
|
-
type
|
|
85
|
+
type: EventType;
|
|
86
86
|
startDate: Date;
|
|
87
87
|
endDate: Date;
|
|
88
88
|
created?: Date;
|
|
@@ -21,6 +21,24 @@ export interface ProjectLinksBlock {
|
|
|
21
21
|
[k: string]: unknown;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Types d'avancement supportés
|
|
26
|
+
*/
|
|
27
|
+
export const PROJECT_AVANCEMENTS = [
|
|
28
|
+
"abandoned",
|
|
29
|
+
"concept",
|
|
30
|
+
"development",
|
|
31
|
+
"production",
|
|
32
|
+
"started",
|
|
33
|
+
"testing",
|
|
34
|
+
"idea",
|
|
35
|
+
"mature",
|
|
36
|
+
"qa",
|
|
37
|
+
"finished"
|
|
38
|
+
] as const;
|
|
39
|
+
|
|
40
|
+
export type ProjectAvancement = (typeof PROJECT_AVANCEMENTS)[number];
|
|
41
|
+
|
|
24
42
|
export interface ProjectItemJson {
|
|
25
43
|
_id: IdObject;
|
|
26
44
|
collection: "projects";
|
|
@@ -31,6 +49,7 @@ export interface ProjectItemJson {
|
|
|
31
49
|
parent?: ParentsMap;
|
|
32
50
|
description?: string;
|
|
33
51
|
shortDescription?: string;
|
|
52
|
+
avancement?: ProjectAvancement,
|
|
34
53
|
slug?: string;
|
|
35
54
|
address?: PostalAddress;
|
|
36
55
|
geo?: GeoCoordinates;
|
|
@@ -56,6 +75,7 @@ export interface ProjectItemNormalized {
|
|
|
56
75
|
parent?: ParentsMap;
|
|
57
76
|
description?: string;
|
|
58
77
|
shortDescription?: string;
|
|
78
|
+
avancement?: ProjectAvancement,
|
|
59
79
|
slug?: string;
|
|
60
80
|
address?: PostalAddress;
|
|
61
81
|
geo?: GeoCoordinates;
|