@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@communecter/cocolight-api-client",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "Client Axios simplifié pour l'API cocolight",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,7 +52,7 @@ export interface EventItemJson {
52
52
  _id: IdObject;
53
53
  collection: "events";
54
54
  name: string;
55
- type?: EventType;
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?: EventType;
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;