@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/src/index.ts CHANGED
@@ -78,6 +78,7 @@ export type * from "./api/serverDataType/Organization.js";
78
78
 
79
79
  // Export des constantes de types d'entités
80
80
  export { ORGANIZATION_TYPES } from "./api/serverDataType/Organization.js";
81
+ export { PROJECT_AVANCEMENTS } from "./api/serverDataType/Project.js";
81
82
  export { EVENT_TYPES } from "./api/serverDataType/Event.js";
82
83
  export type * from "./api/serverDataType/Project.js";
83
84
  export type * from "./api/serverDataType/Event.js";
@@ -16,7 +16,7 @@ export interface EventItemJson {
16
16
  _id: IdObject;
17
17
  collection: "events";
18
18
  name: string;
19
- type?: EventType;
19
+ type: EventType;
20
20
  startDate: DateValue;
21
21
  endDate: DateValue;
22
22
  created?: DateValue;
@@ -45,7 +45,7 @@ export interface EventItemNormalized {
45
45
  _id: ObjectID;
46
46
  collection: "events";
47
47
  name: string;
48
- type?: EventType;
48
+ type: EventType;
49
49
  startDate: Date;
50
50
  endDate: Date;
51
51
  created?: Date;
@@ -8,6 +8,11 @@ export interface ProjectLinksBlock {
8
8
  events?: Record<string, LinkEventsRef>;
9
9
  [k: string]: unknown;
10
10
  }
11
+ /**
12
+ * Types d'avancement supportés
13
+ */
14
+ export declare const PROJECT_AVANCEMENTS: readonly ["abandoned", "concept", "development", "production", "started", "testing", "idea", "mature", "qa", "finished"];
15
+ export type ProjectAvancement = (typeof PROJECT_AVANCEMENTS)[number];
11
16
  export interface ProjectItemJson {
12
17
  _id: IdObject;
13
18
  collection: "projects";
@@ -18,6 +23,7 @@ export interface ProjectItemJson {
18
23
  parent?: ParentsMap;
19
24
  description?: string;
20
25
  shortDescription?: string;
26
+ avancement?: ProjectAvancement;
21
27
  slug?: string;
22
28
  address?: PostalAddress;
23
29
  geo?: GeoCoordinates;
@@ -42,6 +48,7 @@ export interface ProjectItemNormalized {
42
48
  parent?: ParentsMap;
43
49
  description?: string;
44
50
  shortDescription?: string;
51
+ avancement?: ProjectAvancement;
45
52
  slug?: string;
46
53
  address?: PostalAddress;
47
54
  geo?: GeoCoordinates;
@@ -1790,8 +1790,13 @@ declare const endpoints: {
1790
1790
  })[];
1791
1791
  properties: {
1792
1792
  birthDate: {
1793
- format: string;
1794
- type: string;
1793
+ anyOf: ({
1794
+ const: string;
1795
+ type: string;
1796
+ } | {
1797
+ format: string;
1798
+ type: string;
1799
+ })[];
1795
1800
  };
1796
1801
  block: {
1797
1802
  const: string;
@@ -1802,7 +1807,13 @@ declare const endpoints: {
1802
1807
  $ref: string;
1803
1808
  };
1804
1809
  fixe: {
1805
- type: string;
1810
+ anyOf: ({
1811
+ type: string;
1812
+ const?: undefined;
1813
+ } | {
1814
+ const: string;
1815
+ type: string;
1816
+ })[];
1806
1817
  };
1807
1818
  id: {
1808
1819
  default: string;
@@ -1810,7 +1821,13 @@ declare const endpoints: {
1810
1821
  type: string;
1811
1822
  };
1812
1823
  mobile: {
1813
- type: string;
1824
+ anyOf: ({
1825
+ type: string;
1826
+ const?: undefined;
1827
+ } | {
1828
+ const: string;
1829
+ type: string;
1830
+ })[];
1814
1831
  };
1815
1832
  name: {
1816
1833
  $ref: string;
package/types/index.d.ts CHANGED
@@ -55,6 +55,7 @@ export type { Answer } from "./api/Answer.js";
55
55
  export type * from "./api/serverDataType/User.js";
56
56
  export type * from "./api/serverDataType/Organization.js";
57
57
  export { ORGANIZATION_TYPES } from "./api/serverDataType/Organization.js";
58
+ export { PROJECT_AVANCEMENTS } from "./api/serverDataType/Project.js";
58
59
  export { EVENT_TYPES } from "./api/serverDataType/Event.js";
59
60
  export type * from "./api/serverDataType/Project.js";
60
61
  export type * from "./api/serverDataType/Event.js";