@breign/client 1.0.189 → 1.0.191

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AcceptTicketProposalRequestUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketStatusUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
13
+ import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
14
14
  export interface AcceptTicketProposalRequest {
15
15
  proposalId: string;
16
16
  acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
@@ -39,10 +39,18 @@ export interface DeleteTicketArtifactRequest {
39
39
  ticketId: string;
40
40
  artifactId: string;
41
41
  }
42
+ export interface GetAgentsAtWorkRequest {
43
+ organizationId: string;
44
+ limit?: number;
45
+ }
42
46
  export interface GetProjectBoardRequest {
43
47
  projectId: string;
44
48
  doneLimit?: number;
45
49
  }
50
+ export interface GetProjectThreadsRequest {
51
+ projectId: string;
52
+ doneLimit?: number;
53
+ }
46
54
  export interface GetTicketRequest {
47
55
  ticketId: string;
48
56
  }
@@ -113,6 +121,11 @@ export interface UpdateTicketArtifactContentRequest {
113
121
  artifactId: string;
114
122
  saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio;
115
123
  }
124
+ export interface WriteTicketAgentSessionMessageRequest {
125
+ ticketId: string;
126
+ agentId: string;
127
+ ticketSessionMessageRequestUio: TicketSessionMessageRequestUio;
128
+ }
116
129
  /**
117
130
  *
118
131
  */
@@ -187,6 +200,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
187
200
  * Remove an artifact from a ticket
188
201
  */
189
202
  deleteTicketArtifact(ticketId: string, artifactId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
203
+ /**
204
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
205
+ * List the agents at work on the caller\'s tickets
206
+ */
207
+ getAgentsAtWorkRaw(requestParameters: GetAgentsAtWorkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentAtWorkUio>>>;
208
+ /**
209
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
210
+ * List the agents at work on the caller\'s tickets
211
+ */
212
+ getAgentsAtWork(organizationId: string, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentAtWorkUio>>;
190
213
  /**
191
214
  * Tickets par colonne. Les colonnes ouvertes sont complètes ; done ne contient que les tickets terminés les plus récents, son total compte tous les terminés.
192
215
  * Get the board of a project
@@ -197,6 +220,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
197
220
  * Get the board of a project
198
221
  */
199
222
  getProjectBoard(projectId: string, doneLimit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketBoardUio>;
223
+ /**
224
+ * Vue « Fils » : tous les tickets ouverts et les terminés les plus récents, chacun avec les sessions de travail de ses agents. L\'arbre des sous-tickets, les filtres et la recherche se font côté client.
225
+ * Get the threads of a project
226
+ */
227
+ getProjectThreadsRaw(requestParameters: GetProjectThreadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketThreadsUio>>;
228
+ /**
229
+ * Vue « Fils » : tous les tickets ouverts et les terminés les plus récents, chacun avec les sessions de travail de ses agents. L\'arbre des sous-tickets, les filtres et la recherche se font côté client.
230
+ * Get the threads of a project
231
+ */
232
+ getProjectThreads(projectId: string, doneLimit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketThreadsUio>;
200
233
  /**
201
234
  * Ticket avec ses assignés et leurs états.
202
235
  * Get a ticket
@@ -357,4 +390,14 @@ export declare class TicketsApi extends runtime.BaseAPI {
357
390
  * Replace the text of an artifact in place
358
391
  */
359
392
  updateTicketArtifactContent(ticketId: string, artifactId: string, saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketArtifactUio>;
393
+ /**
394
+ * Le message rejoint la session de travail de l\'agent au prochain réveil, qui est mis en file (après le tour en cours ou la réponse à une question en attente). Le fil du ticket garde la trace de l\'envoi, sans le texte.
395
+ * Write to an agent in its work session on a ticket
396
+ */
397
+ writeTicketAgentSessionMessageRaw(requestParameters: WriteTicketAgentSessionMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketEventUio>>;
398
+ /**
399
+ * Le message rejoint la session de travail de l\'agent au prochain réveil, qui est mis en file (après le tour en cours ou la réponse à une question en attente). Le fil du ticket garde la trace de l\'envoi, sans le texte.
400
+ * Write to an agent in its work session on a ticket
401
+ */
402
+ writeTicketAgentSessionMessage(ticketId: string, agentId: string, ticketSessionMessageRequestUio: TicketSessionMessageRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketEventUio>;
360
403
  }
@@ -286,6 +286,38 @@ class TicketsApi extends runtime.BaseAPI {
286
286
  async deleteTicketArtifact(ticketId, artifactId, initOverrides) {
287
287
  await this.deleteTicketArtifactRaw({ ticketId: ticketId, artifactId: artifactId }, initOverrides);
288
288
  }
289
+ /**
290
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
291
+ * List the agents at work on the caller\'s tickets
292
+ */
293
+ async getAgentsAtWorkRaw(requestParameters, initOverrides) {
294
+ if (requestParameters['organizationId'] == null) {
295
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAgentsAtWork().');
296
+ }
297
+ const queryParameters = {};
298
+ if (requestParameters['limit'] != null) {
299
+ queryParameters['limit'] = requestParameters['limit'];
300
+ }
301
+ const headerParameters = {};
302
+ if (this.configuration && this.configuration.apiKey) {
303
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
304
+ }
305
+ const response = await this.request({
306
+ path: `/organizations/{organizationId}/agents-at-work`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
307
+ method: 'GET',
308
+ headers: headerParameters,
309
+ query: queryParameters,
310
+ }, initOverrides);
311
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentAtWorkUioFromJSON));
312
+ }
313
+ /**
314
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
315
+ * List the agents at work on the caller\'s tickets
316
+ */
317
+ async getAgentsAtWork(organizationId, limit, initOverrides) {
318
+ const response = await this.getAgentsAtWorkRaw({ organizationId: organizationId, limit: limit }, initOverrides);
319
+ return await response.value();
320
+ }
289
321
  /**
290
322
  * Tickets par colonne. Les colonnes ouvertes sont complètes ; done ne contient que les tickets terminés les plus récents, son total compte tous les terminés.
291
323
  * Get the board of a project
@@ -318,6 +350,38 @@ class TicketsApi extends runtime.BaseAPI {
318
350
  const response = await this.getProjectBoardRaw({ projectId: projectId, doneLimit: doneLimit }, initOverrides);
319
351
  return await response.value();
320
352
  }
353
+ /**
354
+ * Vue « Fils » : tous les tickets ouverts et les terminés les plus récents, chacun avec les sessions de travail de ses agents. L\'arbre des sous-tickets, les filtres et la recherche se font côté client.
355
+ * Get the threads of a project
356
+ */
357
+ async getProjectThreadsRaw(requestParameters, initOverrides) {
358
+ if (requestParameters['projectId'] == null) {
359
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProjectThreads().');
360
+ }
361
+ const queryParameters = {};
362
+ if (requestParameters['doneLimit'] != null) {
363
+ queryParameters['doneLimit'] = requestParameters['doneLimit'];
364
+ }
365
+ const headerParameters = {};
366
+ if (this.configuration && this.configuration.apiKey) {
367
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
368
+ }
369
+ const response = await this.request({
370
+ path: `/projects/{projectId}/threads`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
371
+ method: 'GET',
372
+ headers: headerParameters,
373
+ query: queryParameters,
374
+ }, initOverrides);
375
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketThreadsUioFromJSON)(jsonValue));
376
+ }
377
+ /**
378
+ * Vue « Fils » : tous les tickets ouverts et les terminés les plus récents, chacun avec les sessions de travail de ses agents. L\'arbre des sous-tickets, les filtres et la recherche se font côté client.
379
+ * Get the threads of a project
380
+ */
381
+ async getProjectThreads(projectId, doneLimit, initOverrides) {
382
+ const response = await this.getProjectThreadsRaw({ projectId: projectId, doneLimit: doneLimit }, initOverrides);
383
+ return await response.value();
384
+ }
321
385
  /**
322
386
  * Ticket avec ses assignés et leurs états.
323
387
  * Get a ticket
@@ -858,5 +922,42 @@ class TicketsApi extends runtime.BaseAPI {
858
922
  const response = await this.updateTicketArtifactContentRaw({ ticketId: ticketId, artifactId: artifactId, saveTicketArtifactVersionRequestUio: saveTicketArtifactVersionRequestUio }, initOverrides);
859
923
  return await response.value();
860
924
  }
925
+ /**
926
+ * Le message rejoint la session de travail de l\'agent au prochain réveil, qui est mis en file (après le tour en cours ou la réponse à une question en attente). Le fil du ticket garde la trace de l\'envoi, sans le texte.
927
+ * Write to an agent in its work session on a ticket
928
+ */
929
+ async writeTicketAgentSessionMessageRaw(requestParameters, initOverrides) {
930
+ if (requestParameters['ticketId'] == null) {
931
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling writeTicketAgentSessionMessage().');
932
+ }
933
+ if (requestParameters['agentId'] == null) {
934
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling writeTicketAgentSessionMessage().');
935
+ }
936
+ if (requestParameters['ticketSessionMessageRequestUio'] == null) {
937
+ throw new runtime.RequiredError('ticketSessionMessageRequestUio', 'Required parameter "ticketSessionMessageRequestUio" was null or undefined when calling writeTicketAgentSessionMessage().');
938
+ }
939
+ const queryParameters = {};
940
+ const headerParameters = {};
941
+ headerParameters['Content-Type'] = 'application/json';
942
+ if (this.configuration && this.configuration.apiKey) {
943
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
944
+ }
945
+ const response = await this.request({
946
+ path: `/tickets/{ticketId}/agents/{agentId}/session/messages`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
947
+ method: 'POST',
948
+ headers: headerParameters,
949
+ query: queryParameters,
950
+ body: (0, index_1.TicketSessionMessageRequestUioToJSON)(requestParameters['ticketSessionMessageRequestUio']),
951
+ }, initOverrides);
952
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketEventUioFromJSON)(jsonValue));
953
+ }
954
+ /**
955
+ * Le message rejoint la session de travail de l\'agent au prochain réveil, qui est mis en file (après le tour en cours ou la réponse à une question en attente). Le fil du ticket garde la trace de l\'envoi, sans le texte.
956
+ * Write to an agent in its work session on a ticket
957
+ */
958
+ async writeTicketAgentSessionMessage(ticketId, agentId, ticketSessionMessageRequestUio, initOverrides) {
959
+ const response = await this.writeTicketAgentSessionMessageRaw({ ticketId: ticketId, agentId: agentId, ticketSessionMessageRequestUio: ticketSessionMessageRequestUio }, initOverrides);
960
+ return await response.value();
961
+ }
861
962
  }
862
963
  exports.TicketsApi = TicketsApi;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AgentAtWorkProjectUio
16
+ */
17
+ export interface AgentAtWorkProjectUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentAtWorkProjectUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AgentAtWorkProjectUio
28
+ */
29
+ key: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AgentAtWorkProjectUio
34
+ */
35
+ name: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AgentAtWorkProjectUio interface.
39
+ */
40
+ export declare function instanceOfAgentAtWorkProjectUio(value: object): value is AgentAtWorkProjectUio;
41
+ export declare function AgentAtWorkProjectUioFromJSON(json: any): AgentAtWorkProjectUio;
42
+ export declare function AgentAtWorkProjectUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAtWorkProjectUio;
43
+ export declare function AgentAtWorkProjectUioToJSON(json: any): AgentAtWorkProjectUio;
44
+ export declare function AgentAtWorkProjectUioToJSONTyped(value?: AgentAtWorkProjectUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentAtWorkProjectUio = instanceOfAgentAtWorkProjectUio;
17
+ exports.AgentAtWorkProjectUioFromJSON = AgentAtWorkProjectUioFromJSON;
18
+ exports.AgentAtWorkProjectUioFromJSONTyped = AgentAtWorkProjectUioFromJSONTyped;
19
+ exports.AgentAtWorkProjectUioToJSON = AgentAtWorkProjectUioToJSON;
20
+ exports.AgentAtWorkProjectUioToJSONTyped = AgentAtWorkProjectUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentAtWorkProjectUio interface.
23
+ */
24
+ function instanceOfAgentAtWorkProjectUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('key' in value) || value['key'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AgentAtWorkProjectUioFromJSON(json) {
34
+ return AgentAtWorkProjectUioFromJSONTyped(json, false);
35
+ }
36
+ function AgentAtWorkProjectUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'key': json['key'],
43
+ 'name': json['name'],
44
+ };
45
+ }
46
+ function AgentAtWorkProjectUioToJSON(json) {
47
+ return AgentAtWorkProjectUioToJSONTyped(json, false);
48
+ }
49
+ function AgentAtWorkProjectUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'key': value['key'],
56
+ 'name': value['name'],
57
+ };
58
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TicketParentRefUio } from './TicketParentRefUio';
13
+ import type { AgentAtWorkProjectUio } from './AgentAtWorkProjectUio';
14
+ import type { TicketAssigneeStateUio } from './TicketAssigneeStateUio';
15
+ /**
16
+ * Un agent assigné à un ticket ouvert qui concerne l'utilisateur (créateur, assigné ou relecteur), et qui travaille, attend une réponse ou est bloqué.
17
+ * @export
18
+ * @interface AgentAtWorkUio
19
+ */
20
+ export interface AgentAtWorkUio {
21
+ /**
22
+ *
23
+ * @type {TicketParentRefUio}
24
+ * @memberof AgentAtWorkUio
25
+ */
26
+ ticket: TicketParentRefUio;
27
+ /**
28
+ *
29
+ * @type {AgentAtWorkProjectUio}
30
+ * @memberof AgentAtWorkUio
31
+ */
32
+ project: AgentAtWorkProjectUio;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof AgentAtWorkUio
37
+ */
38
+ agentId: string;
39
+ /**
40
+ *
41
+ * @type {TicketAssigneeStateUio}
42
+ * @memberof AgentAtWorkUio
43
+ */
44
+ state: TicketAssigneeStateUio;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof AgentAtWorkUio
49
+ */
50
+ stateNote: string | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof AgentAtWorkUio
55
+ */
56
+ updatedAt: string;
57
+ }
58
+ /**
59
+ * Check if a given object implements the AgentAtWorkUio interface.
60
+ */
61
+ export declare function instanceOfAgentAtWorkUio(value: object): value is AgentAtWorkUio;
62
+ export declare function AgentAtWorkUioFromJSON(json: any): AgentAtWorkUio;
63
+ export declare function AgentAtWorkUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAtWorkUio;
64
+ export declare function AgentAtWorkUioToJSON(json: any): AgentAtWorkUio;
65
+ export declare function AgentAtWorkUioToJSONTyped(value?: AgentAtWorkUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentAtWorkUio = instanceOfAgentAtWorkUio;
17
+ exports.AgentAtWorkUioFromJSON = AgentAtWorkUioFromJSON;
18
+ exports.AgentAtWorkUioFromJSONTyped = AgentAtWorkUioFromJSONTyped;
19
+ exports.AgentAtWorkUioToJSON = AgentAtWorkUioToJSON;
20
+ exports.AgentAtWorkUioToJSONTyped = AgentAtWorkUioToJSONTyped;
21
+ const TicketParentRefUio_1 = require("./TicketParentRefUio");
22
+ const AgentAtWorkProjectUio_1 = require("./AgentAtWorkProjectUio");
23
+ const TicketAssigneeStateUio_1 = require("./TicketAssigneeStateUio");
24
+ /**
25
+ * Check if a given object implements the AgentAtWorkUio interface.
26
+ */
27
+ function instanceOfAgentAtWorkUio(value) {
28
+ if (!('ticket' in value) || value['ticket'] === undefined)
29
+ return false;
30
+ if (!('project' in value) || value['project'] === undefined)
31
+ return false;
32
+ if (!('agentId' in value) || value['agentId'] === undefined)
33
+ return false;
34
+ if (!('state' in value) || value['state'] === undefined)
35
+ return false;
36
+ if (!('stateNote' in value) || value['stateNote'] === undefined)
37
+ return false;
38
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AgentAtWorkUioFromJSON(json) {
43
+ return AgentAtWorkUioFromJSONTyped(json, false);
44
+ }
45
+ function AgentAtWorkUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'ticket': (0, TicketParentRefUio_1.TicketParentRefUioFromJSON)(json['ticket']),
51
+ 'project': (0, AgentAtWorkProjectUio_1.AgentAtWorkProjectUioFromJSON)(json['project']),
52
+ 'agentId': json['agentId'],
53
+ 'state': (0, TicketAssigneeStateUio_1.TicketAssigneeStateUioFromJSON)(json['state']),
54
+ 'stateNote': json['stateNote'],
55
+ 'updatedAt': json['updatedAt'],
56
+ };
57
+ }
58
+ function AgentAtWorkUioToJSON(json) {
59
+ return AgentAtWorkUioToJSONTyped(json, false);
60
+ }
61
+ function AgentAtWorkUioToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'ticket': (0, TicketParentRefUio_1.TicketParentRefUioToJSON)(value['ticket']),
67
+ 'project': (0, AgentAtWorkProjectUio_1.AgentAtWorkProjectUioToJSON)(value['project']),
68
+ 'agentId': value['agentId'],
69
+ 'state': (0, TicketAssigneeStateUio_1.TicketAssigneeStateUioToJSON)(value['state']),
70
+ 'stateNote': value['stateNote'],
71
+ 'updatedAt': value['updatedAt'],
72
+ };
73
+ }
@@ -39,6 +39,12 @@ export interface ProjectAttentionUio {
39
39
  * @memberof ProjectAttentionUio
40
40
  */
41
41
  goAheads: number;
42
+ /**
43
+ * Demandes d'approbation posées par un agent
44
+ * @type {number}
45
+ * @memberof ProjectAttentionUio
46
+ */
47
+ approvals: number;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the ProjectAttentionUio interface.
@@ -30,6 +30,8 @@ function instanceOfProjectAttentionUio(value) {
30
30
  return false;
31
31
  if (!('goAheads' in value) || value['goAheads'] === undefined)
32
32
  return false;
33
+ if (!('approvals' in value) || value['approvals'] === undefined)
34
+ return false;
33
35
  return true;
34
36
  }
35
37
  function ProjectAttentionUioFromJSON(json) {
@@ -44,6 +46,7 @@ function ProjectAttentionUioFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'proposals': json['proposals'],
45
47
  'reviews': json['reviews'],
46
48
  'goAheads': json['goAheads'],
49
+ 'approvals': json['approvals'],
47
50
  };
48
51
  }
49
52
  function ProjectAttentionUioToJSON(json) {
@@ -58,5 +61,6 @@ function ProjectAttentionUioToJSONTyped(value, ignoreDiscriminator = false) {
58
61
  'proposals': value['proposals'],
59
62
  'reviews': value['reviews'],
60
63
  'goAheads': value['goAheads'],
64
+ 'approvals': value['approvals'],
61
65
  };
62
66
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TicketSessionMessageRequestUio
16
+ */
17
+ export interface TicketSessionMessageRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TicketSessionMessageRequestUio
22
+ */
23
+ body: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the TicketSessionMessageRequestUio interface.
27
+ */
28
+ export declare function instanceOfTicketSessionMessageRequestUio(value: object): value is TicketSessionMessageRequestUio;
29
+ export declare function TicketSessionMessageRequestUioFromJSON(json: any): TicketSessionMessageRequestUio;
30
+ export declare function TicketSessionMessageRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketSessionMessageRequestUio;
31
+ export declare function TicketSessionMessageRequestUioToJSON(json: any): TicketSessionMessageRequestUio;
32
+ export declare function TicketSessionMessageRequestUioToJSONTyped(value?: TicketSessionMessageRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfTicketSessionMessageRequestUio = instanceOfTicketSessionMessageRequestUio;
17
+ exports.TicketSessionMessageRequestUioFromJSON = TicketSessionMessageRequestUioFromJSON;
18
+ exports.TicketSessionMessageRequestUioFromJSONTyped = TicketSessionMessageRequestUioFromJSONTyped;
19
+ exports.TicketSessionMessageRequestUioToJSON = TicketSessionMessageRequestUioToJSON;
20
+ exports.TicketSessionMessageRequestUioToJSONTyped = TicketSessionMessageRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TicketSessionMessageRequestUio interface.
23
+ */
24
+ function instanceOfTicketSessionMessageRequestUio(value) {
25
+ if (!('body' in value) || value['body'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function TicketSessionMessageRequestUioFromJSON(json) {
30
+ return TicketSessionMessageRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function TicketSessionMessageRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'body': json['body'],
38
+ };
39
+ }
40
+ function TicketSessionMessageRequestUioToJSON(json) {
41
+ return TicketSessionMessageRequestUioToJSONTyped(json, false);
42
+ }
43
+ function TicketSessionMessageRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'body': value['body'],
49
+ };
50
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TicketAgentRunStatusUio } from './TicketAgentRunStatusUio';
13
+ /**
14
+ * Une session de travail d'agent, sous-fil d'un ticket dans la vue « Fils ». Le statut vient des réveils et des questions en attente, sans relire la conversation.
15
+ * @export
16
+ * @interface TicketThreadSessionUio
17
+ */
18
+ export interface TicketThreadSessionUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof TicketThreadSessionUio
23
+ */
24
+ agentId: string;
25
+ /**
26
+ *
27
+ * @type {TicketAgentRunStatusUio}
28
+ * @memberof TicketThreadSessionUio
29
+ */
30
+ status: TicketAgentRunStatusUio;
31
+ /**
32
+ * null tant que l'agent n'a pas commencé (premier réveil en attente)
33
+ * @type {string}
34
+ * @memberof TicketThreadSessionUio
35
+ */
36
+ conversationId: string | null;
37
+ /**
38
+ * Étapes terminées du plan publié
39
+ * @type {number}
40
+ * @memberof TicketThreadSessionUio
41
+ */
42
+ planDone: number;
43
+ /**
44
+ * Étapes du plan publié ; 0 sans plan
45
+ * @type {number}
46
+ * @memberof TicketThreadSessionUio
47
+ */
48
+ planTotal: number;
49
+ /**
50
+ * Étape en cours du plan
51
+ * @type {string}
52
+ * @memberof TicketThreadSessionUio
53
+ */
54
+ currentStep: string | null;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof TicketThreadSessionUio
59
+ */
60
+ lastRunAt: string | null;
61
+ }
62
+ /**
63
+ * Check if a given object implements the TicketThreadSessionUio interface.
64
+ */
65
+ export declare function instanceOfTicketThreadSessionUio(value: object): value is TicketThreadSessionUio;
66
+ export declare function TicketThreadSessionUioFromJSON(json: any): TicketThreadSessionUio;
67
+ export declare function TicketThreadSessionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketThreadSessionUio;
68
+ export declare function TicketThreadSessionUioToJSON(json: any): TicketThreadSessionUio;
69
+ export declare function TicketThreadSessionUioToJSONTyped(value?: TicketThreadSessionUio | null, ignoreDiscriminator?: boolean): any;