@communecter/cocolight-api-client 1.0.125 → 1.0.127

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.
@@ -5043,9 +5043,9 @@ export interface CostumProjectActionRequestNewData {
5043
5043
  */
5044
5044
  name: string;
5045
5045
  /**
5046
- * Statut de l'action
5046
+ * Statut de l'action. Sert aussi de trigger côté backend : 'done' ajoute startDate/endDate auto, 'tracking' active le mode tracking, 'discuter'/'next'/'totest' ajoutent un tag.
5047
5047
  */
5048
- status: string;
5048
+ status: "todo" | "done" | "tracking" | "discuter" | "next" | "totest" | "disabled" | "closed";
5049
5049
  /**
5050
5050
  * ID du projet parent
5051
5051
  */
@@ -5055,13 +5055,74 @@ export interface CostumProjectActionRequestNewData {
5055
5055
  */
5056
5056
  parentType: "projects";
5057
5057
  /**
5058
- * Montant financé
5058
+ * Montant financé (default: 1)
5059
5059
  */
5060
- credits: number;
5060
+ credits?: number;
5061
5061
  /**
5062
- * ID du jalon associé
5062
+ * Jalon associé à l'action
5063
5063
  */
5064
- "milestone[milestoneId]": string;
5064
+ milestone?: {
5065
+ /**
5066
+ * ID du jalon associé
5067
+ */
5068
+ milestoneId: string;
5069
+ /**
5070
+ * Date de début du jalon (ISO 8601, convertie en MongoDate UTC côté backend)
5071
+ */
5072
+ startDate?: string;
5073
+ /**
5074
+ * Date de fin du jalon (ISO 8601, convertie en MongoDate UTC côté backend)
5075
+ */
5076
+ endDate?: string;
5077
+ };
5078
+ /**
5079
+ * Date et heure de début (ISO 8601 avec offset)
5080
+ */
5081
+ startDate?: string;
5082
+ /**
5083
+ * Date et heure de fin (ISO 8601 avec offset)
5084
+ */
5085
+ endDate?: string;
5086
+ /**
5087
+ * Temps passé en minutes (utilisé pour calculer endDate quand status=done)
5088
+ */
5089
+ timeSpent?: number;
5090
+ /**
5091
+ * Nombre minimum de contributeurs
5092
+ */
5093
+ min?: number;
5094
+ /**
5095
+ * Nombre maximum de contributeurs (doit être >= min côté backend)
5096
+ */
5097
+ max?: number;
5098
+ /**
5099
+ * Niveau d'importance de l'action
5100
+ */
5101
+ importance?: string;
5102
+ /**
5103
+ * ID de la room parente. Si absent, auto-créée par Room::getOrCreateActionRoom côté backend
5104
+ */
5105
+ idParentRoom?: string;
5106
+ /**
5107
+ * Si true, ajoute l'auteur courant comme contributor admin. ATTENTION : écrasé si 'mentions' est aussi fourni.
5108
+ */
5109
+ is_contributor?: boolean;
5110
+ /**
5111
+ * userId à assigner comme contributor admin. ATTENTION : écrasé si 'mentions' est aussi fourni.
5112
+ */
5113
+ assign?: string;
5114
+ /**
5115
+ * URLs externes associées à l'action (tableau de strings, ou "" pour vider). Passthrough côté backend.
5116
+ */
5117
+ urls?: string[] | "";
5118
+ /**
5119
+ * Liste des contributeurs assignés à l'action par username. Résolu côté backend en links.contributors.{userId}. ATTENTION : ÉCRASE 'assign' et 'is_contributor' si fournis ensemble.
5120
+ */
5121
+ mentions?: string[];
5122
+ /**
5123
+ * Liste des tags associés à l'action. BUG CONNU BACKEND : les tags sont dupliqués dans la réponse (array_merge avec soi-même côté PHP).
5124
+ */
5125
+ tags?: string[];
5065
5126
  [k: string]: unknown;
5066
5127
  }
5067
5128
  export interface LinkDiscourseAccountData {
@@ -8,6 +8,11 @@ type ObjectID = InstanceType<ObjectIDCtor>;
8
8
  export interface AnswerLinksBlock {
9
9
  answered: string[];
10
10
  }
11
+ export interface AnswerProjectRef {
12
+ id?: string;
13
+ type?: string;
14
+ name?: string;
15
+ }
11
16
  export interface AnswerItemJson {
12
17
  _id: IdObject;
13
18
  collection: "answers";
@@ -21,10 +26,11 @@ export interface AnswerItemJson {
21
26
  form?: string;
22
27
  modified?: DateValue;
23
28
  voteCount?: Record<string, number>;
24
- vote: Record<string, {
29
+ vote?: Record<string, {
25
30
  status: string;
26
31
  date: DateValue;
27
32
  }>;
33
+ project?: AnswerProjectRef;
28
34
  [key: string]: unknown;
29
35
  }
30
36
  export interface AnswerItemNormalized {
@@ -41,10 +47,11 @@ export interface AnswerItemNormalized {
41
47
  form?: string;
42
48
  modified?: Date;
43
49
  voteCount?: Record<string, number>;
44
- vote: Record<string, {
50
+ vote?: Record<string, {
45
51
  status: string;
46
52
  date: Date;
47
53
  }>;
54
+ project?: AnswerProjectRef;
48
55
  [key: string]: unknown;
49
56
  }
50
57
  export {};
@@ -38,6 +38,7 @@ export interface ProjectItemJson {
38
38
  socialNetwork?: SocialNetwork;
39
39
  email?: string;
40
40
  url?: string;
41
+ answer?: string;
41
42
  [key: string]: unknown;
42
43
  }
43
44
  export interface ProjectItemNormalized {
@@ -66,6 +67,7 @@ export interface ProjectItemNormalized {
66
67
  socialNetwork?: SocialNetwork;
67
68
  email?: string;
68
69
  url?: string;
70
+ answer?: string;
69
71
  [key: string]: unknown;
70
72
  }
71
73
  export {};