@communecter/cocolight-api-client 1.0.88 → 1.0.90

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.
@@ -7,11 +7,16 @@ export interface EventLinksBlock {
7
7
  organizer?: Record<string, LinkOrganizerRef>;
8
8
  [k: string]: unknown;
9
9
  }
10
+ /**
11
+ * Types d'événements supportés
12
+ */
13
+ export declare const EVENT_TYPES: readonly ["workshop", "competition", "concert", "contest", "conference", "debate", "exhibition", "festival", "crowdfunding", "fair", "course", "protest", "market", "film", "getTogether", "meeting", "spectacle", "internship", "stand", "others"];
14
+ export type EventType = (typeof EVENT_TYPES)[number];
10
15
  export interface EventItemJson {
11
16
  _id: IdObject;
12
17
  collection: "events";
13
18
  name: string;
14
- type: string;
19
+ type: EventType;
15
20
  startDate: DateValue;
16
21
  endDate: DateValue;
17
22
  created?: DateValue;
@@ -40,7 +45,7 @@ export interface EventItemNormalized {
40
45
  _id: ObjectID;
41
46
  collection: "events";
42
47
  name: string;
43
- type: string;
48
+ type: EventType;
44
49
  startDate: Date;
45
50
  endDate: Date;
46
51
  created?: Date;
@@ -9,6 +9,11 @@ export interface OrganizationLinksBlock {
9
9
  events?: Record<string, LinkEventsRef>;
10
10
  [k: string]: unknown;
11
11
  }
12
+ /**
13
+ * Types d'organisations supportés
14
+ */
15
+ export declare const ORGANIZATION_TYPES: readonly ["NGO", "LocalBusiness", "Group", "GovernmentOrganization", "Cooperative"];
16
+ export type OrganizationType = (typeof ORGANIZATION_TYPES)[number];
12
17
  export interface OrganizationItemJson {
13
18
  _id: IdObject;
14
19
  collection: "organizations";
@@ -20,7 +25,7 @@ export interface OrganizationItemJson {
20
25
  description?: string;
21
26
  shortDescription?: string;
22
27
  slug?: string;
23
- type?: "NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative";
28
+ type?: OrganizationType;
24
29
  address?: PostalAddress;
25
30
  geo?: GeoCoordinates;
26
31
  geoPosition?: GeoPosition;
@@ -47,7 +52,7 @@ export interface OrganizationItemNormalized {
47
52
  description?: string;
48
53
  shortDescription?: string;
49
54
  slug?: string;
50
- type?: "NGO" | "LocalBusiness" | "Group" | "GovernmentOrganization" | "Cooperative";
55
+ type?: OrganizationType;
51
56
  address?: PostalAddress;
52
57
  geo?: GeoCoordinates;
53
58
  geoPosition?: GeoPosition;
@@ -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;
package/types/index.d.ts CHANGED
@@ -54,6 +54,9 @@ export type { Comment } from "./api/Comment.js";
54
54
  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
+ export { ORGANIZATION_TYPES } from "./api/serverDataType/Organization.js";
58
+ export { PROJECT_AVANCEMENTS } from "./api/serverDataType/Project.js";
59
+ export { EVENT_TYPES } from "./api/serverDataType/Event.js";
57
60
  export type * from "./api/serverDataType/Project.js";
58
61
  export type * from "./api/serverDataType/Event.js";
59
62
  export type * from "./api/serverDataType/News.js";