@breign/client 1.0.188 → 1.0.190

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, 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;
@@ -43,6 +43,10 @@ export interface GetProjectBoardRequest {
43
43
  projectId: string;
44
44
  doneLimit?: number;
45
45
  }
46
+ export interface GetProjectThreadsRequest {
47
+ projectId: string;
48
+ doneLimit?: number;
49
+ }
46
50
  export interface GetTicketRequest {
47
51
  ticketId: string;
48
52
  }
@@ -71,6 +75,7 @@ export interface ListProjectTicketsRequest {
71
75
  mine?: boolean;
72
76
  attention?: boolean;
73
77
  agentsWorking?: boolean;
78
+ parentTicketId?: string;
74
79
  search?: string;
75
80
  page?: number;
76
81
  limit?: number;
@@ -112,6 +117,11 @@ export interface UpdateTicketArtifactContentRequest {
112
117
  artifactId: string;
113
118
  saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio;
114
119
  }
120
+ export interface WriteTicketAgentSessionMessageRequest {
121
+ ticketId: string;
122
+ agentId: string;
123
+ ticketSessionMessageRequestUio: TicketSessionMessageRequestUio;
124
+ }
115
125
  /**
116
126
  *
117
127
  */
@@ -196,6 +206,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
196
206
  * Get the board of a project
197
207
  */
198
208
  getProjectBoard(projectId: string, doneLimit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketBoardUio>;
209
+ /**
210
+ * 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.
211
+ * Get the threads of a project
212
+ */
213
+ getProjectThreadsRaw(requestParameters: GetProjectThreadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketThreadsUio>>;
214
+ /**
215
+ * 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.
216
+ * Get the threads of a project
217
+ */
218
+ getProjectThreads(projectId: string, doneLimit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketThreadsUio>;
199
219
  /**
200
220
  * Ticket avec ses assignés et leurs états.
201
221
  * Get a ticket
@@ -265,7 +285,7 @@ export declare class TicketsApi extends runtime.BaseAPI {
265
285
  * Liste paginée. Filtrée sur done, elle est triée du plus récemment terminé au plus ancien ; sinon de la plus récente activité à la plus ancienne.
266
286
  * List the tickets of a project
267
287
  */
268
- listProjectTickets(projectId: string, status?: Array<TicketStatusUio>, mine?: boolean, attention?: boolean, agentsWorking?: boolean, search?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TicketUio>>;
288
+ listProjectTickets(projectId: string, status?: Array<TicketStatusUio>, mine?: boolean, attention?: boolean, agentsWorking?: boolean, parentTicketId?: string, search?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TicketUio>>;
269
289
  /**
270
290
  * Artefacts joints au ticket, les plus récents d\'abord.
271
291
  * List the artifacts of a ticket
@@ -356,4 +376,14 @@ export declare class TicketsApi extends runtime.BaseAPI {
356
376
  * Replace the text of an artifact in place
357
377
  */
358
378
  updateTicketArtifactContent(ticketId: string, artifactId: string, saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketArtifactUio>;
379
+ /**
380
+ * 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.
381
+ * Write to an agent in its work session on a ticket
382
+ */
383
+ writeTicketAgentSessionMessageRaw(requestParameters: WriteTicketAgentSessionMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketEventUio>>;
384
+ /**
385
+ * 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.
386
+ * Write to an agent in its work session on a ticket
387
+ */
388
+ writeTicketAgentSessionMessage(ticketId: string, agentId: string, ticketSessionMessageRequestUio: TicketSessionMessageRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketEventUio>;
359
389
  }
@@ -318,6 +318,38 @@ class TicketsApi extends runtime.BaseAPI {
318
318
  const response = await this.getProjectBoardRaw({ projectId: projectId, doneLimit: doneLimit }, initOverrides);
319
319
  return await response.value();
320
320
  }
321
+ /**
322
+ * 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.
323
+ * Get the threads of a project
324
+ */
325
+ async getProjectThreadsRaw(requestParameters, initOverrides) {
326
+ if (requestParameters['projectId'] == null) {
327
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProjectThreads().');
328
+ }
329
+ const queryParameters = {};
330
+ if (requestParameters['doneLimit'] != null) {
331
+ queryParameters['doneLimit'] = requestParameters['doneLimit'];
332
+ }
333
+ const headerParameters = {};
334
+ if (this.configuration && this.configuration.apiKey) {
335
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
336
+ }
337
+ const response = await this.request({
338
+ path: `/projects/{projectId}/threads`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
339
+ method: 'GET',
340
+ headers: headerParameters,
341
+ query: queryParameters,
342
+ }, initOverrides);
343
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketThreadsUioFromJSON)(jsonValue));
344
+ }
345
+ /**
346
+ * 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.
347
+ * Get the threads of a project
348
+ */
349
+ async getProjectThreads(projectId, doneLimit, initOverrides) {
350
+ const response = await this.getProjectThreadsRaw({ projectId: projectId, doneLimit: doneLimit }, initOverrides);
351
+ return await response.value();
352
+ }
321
353
  /**
322
354
  * Ticket avec ses assignés et leurs états.
323
355
  * Get a ticket
@@ -525,6 +557,9 @@ class TicketsApi extends runtime.BaseAPI {
525
557
  if (requestParameters['agentsWorking'] != null) {
526
558
  queryParameters['agentsWorking'] = requestParameters['agentsWorking'];
527
559
  }
560
+ if (requestParameters['parentTicketId'] != null) {
561
+ queryParameters['parentTicketId'] = requestParameters['parentTicketId'];
562
+ }
528
563
  if (requestParameters['search'] != null) {
529
564
  queryParameters['search'] = requestParameters['search'];
530
565
  }
@@ -550,8 +585,8 @@ class TicketsApi extends runtime.BaseAPI {
550
585
  * Liste paginée. Filtrée sur done, elle est triée du plus récemment terminé au plus ancien ; sinon de la plus récente activité à la plus ancienne.
551
586
  * List the tickets of a project
552
587
  */
553
- async listProjectTickets(projectId, status, mine, attention, agentsWorking, search, page, limit, initOverrides) {
554
- const response = await this.listProjectTicketsRaw({ projectId: projectId, status: status, mine: mine, attention: attention, agentsWorking: agentsWorking, search: search, page: page, limit: limit }, initOverrides);
588
+ async listProjectTickets(projectId, status, mine, attention, agentsWorking, parentTicketId, search, page, limit, initOverrides) {
589
+ const response = await this.listProjectTicketsRaw({ projectId: projectId, status: status, mine: mine, attention: attention, agentsWorking: agentsWorking, parentTicketId: parentTicketId, search: search, page: page, limit: limit }, initOverrides);
555
590
  return await response.value();
556
591
  }
557
592
  /**
@@ -855,5 +890,42 @@ class TicketsApi extends runtime.BaseAPI {
855
890
  const response = await this.updateTicketArtifactContentRaw({ ticketId: ticketId, artifactId: artifactId, saveTicketArtifactVersionRequestUio: saveTicketArtifactVersionRequestUio }, initOverrides);
856
891
  return await response.value();
857
892
  }
893
+ /**
894
+ * 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.
895
+ * Write to an agent in its work session on a ticket
896
+ */
897
+ async writeTicketAgentSessionMessageRaw(requestParameters, initOverrides) {
898
+ if (requestParameters['ticketId'] == null) {
899
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling writeTicketAgentSessionMessage().');
900
+ }
901
+ if (requestParameters['agentId'] == null) {
902
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling writeTicketAgentSessionMessage().');
903
+ }
904
+ if (requestParameters['ticketSessionMessageRequestUio'] == null) {
905
+ throw new runtime.RequiredError('ticketSessionMessageRequestUio', 'Required parameter "ticketSessionMessageRequestUio" was null or undefined when calling writeTicketAgentSessionMessage().');
906
+ }
907
+ const queryParameters = {};
908
+ const headerParameters = {};
909
+ headerParameters['Content-Type'] = 'application/json';
910
+ if (this.configuration && this.configuration.apiKey) {
911
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
912
+ }
913
+ const response = await this.request({
914
+ path: `/tickets/{ticketId}/agents/{agentId}/session/messages`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
915
+ method: 'POST',
916
+ headers: headerParameters,
917
+ query: queryParameters,
918
+ body: (0, index_1.TicketSessionMessageRequestUioToJSON)(requestParameters['ticketSessionMessageRequestUio']),
919
+ }, initOverrides);
920
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketEventUioFromJSON)(jsonValue));
921
+ }
922
+ /**
923
+ * 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.
924
+ * Write to an agent in its work session on a ticket
925
+ */
926
+ async writeTicketAgentSessionMessage(ticketId, agentId, ticketSessionMessageRequestUio, initOverrides) {
927
+ const response = await this.writeTicketAgentSessionMessageRaw({ ticketId: ticketId, agentId: agentId, ticketSessionMessageRequestUio: ticketSessionMessageRequestUio }, initOverrides);
928
+ return await response.value();
929
+ }
858
930
  }
859
931
  exports.TicketsApi = TicketsApi;
@@ -74,6 +74,12 @@ export interface CreateTicketRequestUio {
74
74
  * @memberof CreateTicketRequestUio
75
75
  */
76
76
  startMode?: TicketStartModeUio;
77
+ /**
78
+ * Ticket parent, dans le même projet
79
+ * @type {string}
80
+ * @memberof CreateTicketRequestUio
81
+ */
82
+ parentTicketId?: string;
77
83
  }
78
84
  /**
79
85
  * Check if a given object implements the CreateTicketRequestUio interface.
@@ -48,6 +48,7 @@ function CreateTicketRequestUioFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'assignees': json['assignees'] == null ? undefined : (json['assignees'].map(TicketAssigneeInputUio_1.TicketAssigneeInputUioFromJSON)),
49
49
  'reviewer': json['reviewer'] == null ? undefined : (0, MemberRefUio_1.MemberRefUioFromJSON)(json['reviewer']),
50
50
  'startMode': json['startMode'] == null ? undefined : (0, TicketStartModeUio_1.TicketStartModeUioFromJSON)(json['startMode']),
51
+ 'parentTicketId': json['parentTicketId'] == null ? undefined : json['parentTicketId'],
51
52
  };
52
53
  }
53
54
  function CreateTicketRequestUioToJSON(json) {
@@ -67,5 +68,6 @@ function CreateTicketRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
67
68
  'assignees': value['assignees'] == null ? undefined : (value['assignees'].map(TicketAssigneeInputUio_1.TicketAssigneeInputUioToJSON)),
68
69
  'reviewer': (0, MemberRefUio_1.MemberRefUioToJSON)(value['reviewer']),
69
70
  'startMode': (0, TicketStartModeUio_1.TicketStartModeUioToJSON)(value['startMode']),
71
+ 'parentTicketId': value['parentTicketId'],
70
72
  };
71
73
  }
@@ -0,0 +1,51 @@
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 { TicketStatusUio } from './TicketStatusUio';
13
+ /**
14
+ * Le ticket parent d'un sous-ticket, de quoi l'afficher sans le recharger.
15
+ * @export
16
+ * @interface TicketParentRefUio
17
+ */
18
+ export interface TicketParentRefUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof TicketParentRefUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof TicketParentRefUio
29
+ */
30
+ key: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof TicketParentRefUio
35
+ */
36
+ title: string;
37
+ /**
38
+ *
39
+ * @type {TicketStatusUio}
40
+ * @memberof TicketParentRefUio
41
+ */
42
+ status: TicketStatusUio;
43
+ }
44
+ /**
45
+ * Check if a given object implements the TicketParentRefUio interface.
46
+ */
47
+ export declare function instanceOfTicketParentRefUio(value: object): value is TicketParentRefUio;
48
+ export declare function TicketParentRefUioFromJSON(json: any): TicketParentRefUio;
49
+ export declare function TicketParentRefUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketParentRefUio;
50
+ export declare function TicketParentRefUioToJSON(json: any): TicketParentRefUio;
51
+ export declare function TicketParentRefUioToJSONTyped(value?: TicketParentRefUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfTicketParentRefUio = instanceOfTicketParentRefUio;
17
+ exports.TicketParentRefUioFromJSON = TicketParentRefUioFromJSON;
18
+ exports.TicketParentRefUioFromJSONTyped = TicketParentRefUioFromJSONTyped;
19
+ exports.TicketParentRefUioToJSON = TicketParentRefUioToJSON;
20
+ exports.TicketParentRefUioToJSONTyped = TicketParentRefUioToJSONTyped;
21
+ const TicketStatusUio_1 = require("./TicketStatusUio");
22
+ /**
23
+ * Check if a given object implements the TicketParentRefUio interface.
24
+ */
25
+ function instanceOfTicketParentRefUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('key' in value) || value['key'] === undefined)
29
+ return false;
30
+ if (!('title' in value) || value['title'] === undefined)
31
+ return false;
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function TicketParentRefUioFromJSON(json) {
37
+ return TicketParentRefUioFromJSONTyped(json, false);
38
+ }
39
+ function TicketParentRefUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'key': json['key'],
46
+ 'title': json['title'],
47
+ 'status': (0, TicketStatusUio_1.TicketStatusUioFromJSON)(json['status']),
48
+ };
49
+ }
50
+ function TicketParentRefUioToJSON(json) {
51
+ return TicketParentRefUioToJSONTyped(json, false);
52
+ }
53
+ function TicketParentRefUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'key': value['key'],
60
+ 'title': value['title'],
61
+ 'status': (0, TicketStatusUio_1.TicketStatusUioToJSON)(value['status']),
62
+ };
63
+ }
@@ -61,6 +61,12 @@ export interface TicketProposalPayloadUio {
61
61
  * @memberof TicketProposalPayloadUio
62
62
  */
63
63
  workspacePaths: Array<string>;
64
+ /**
65
+ * Ticket parent du futur ticket
66
+ * @type {string}
67
+ * @memberof TicketProposalPayloadUio
68
+ */
69
+ parentTicketId?: string | null;
64
70
  }
65
71
  /**
66
72
  * Check if a given object implements the TicketProposalPayloadUio interface.
@@ -57,6 +57,7 @@ function TicketProposalPayloadUioFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'priority': (0, TicketPriorityUio_1.TicketPriorityUioFromJSON)(json['priority']),
58
58
  'startMode': (0, TicketStartModeUio_1.TicketStartModeUioFromJSON)(json['startMode']),
59
59
  'workspacePaths': json['workspacePaths'],
60
+ 'parentTicketId': json['parentTicketId'] == null ? undefined : json['parentTicketId'],
60
61
  };
61
62
  }
62
63
  function TicketProposalPayloadUioToJSON(json) {
@@ -74,5 +75,6 @@ function TicketProposalPayloadUioToJSONTyped(value, ignoreDiscriminator = false)
74
75
  'priority': (0, TicketPriorityUio_1.TicketPriorityUioToJSON)(value['priority']),
75
76
  'startMode': (0, TicketStartModeUio_1.TicketStartModeUioToJSON)(value['startMode']),
76
77
  'workspacePaths': value['workspacePaths'],
78
+ 'parentTicketId': value['parentTicketId'],
77
79
  };
78
80
  }
@@ -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;
@@ -0,0 +1,75 @@
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.instanceOfTicketThreadSessionUio = instanceOfTicketThreadSessionUio;
17
+ exports.TicketThreadSessionUioFromJSON = TicketThreadSessionUioFromJSON;
18
+ exports.TicketThreadSessionUioFromJSONTyped = TicketThreadSessionUioFromJSONTyped;
19
+ exports.TicketThreadSessionUioToJSON = TicketThreadSessionUioToJSON;
20
+ exports.TicketThreadSessionUioToJSONTyped = TicketThreadSessionUioToJSONTyped;
21
+ const TicketAgentRunStatusUio_1 = require("./TicketAgentRunStatusUio");
22
+ /**
23
+ * Check if a given object implements the TicketThreadSessionUio interface.
24
+ */
25
+ function instanceOfTicketThreadSessionUio(value) {
26
+ if (!('agentId' in value) || value['agentId'] === undefined)
27
+ return false;
28
+ if (!('status' in value) || value['status'] === undefined)
29
+ return false;
30
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
31
+ return false;
32
+ if (!('planDone' in value) || value['planDone'] === undefined)
33
+ return false;
34
+ if (!('planTotal' in value) || value['planTotal'] === undefined)
35
+ return false;
36
+ if (!('currentStep' in value) || value['currentStep'] === undefined)
37
+ return false;
38
+ if (!('lastRunAt' in value) || value['lastRunAt'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function TicketThreadSessionUioFromJSON(json) {
43
+ return TicketThreadSessionUioFromJSONTyped(json, false);
44
+ }
45
+ function TicketThreadSessionUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'agentId': json['agentId'],
51
+ 'status': (0, TicketAgentRunStatusUio_1.TicketAgentRunStatusUioFromJSON)(json['status']),
52
+ 'conversationId': json['conversationId'],
53
+ 'planDone': json['planDone'],
54
+ 'planTotal': json['planTotal'],
55
+ 'currentStep': json['currentStep'],
56
+ 'lastRunAt': json['lastRunAt'],
57
+ };
58
+ }
59
+ function TicketThreadSessionUioToJSON(json) {
60
+ return TicketThreadSessionUioToJSONTyped(json, false);
61
+ }
62
+ function TicketThreadSessionUioToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'agentId': value['agentId'],
68
+ 'status': (0, TicketAgentRunStatusUio_1.TicketAgentRunStatusUioToJSON)(value['status']),
69
+ 'conversationId': value['conversationId'],
70
+ 'planDone': value['planDone'],
71
+ 'planTotal': value['planTotal'],
72
+ 'currentStep': value['currentStep'],
73
+ 'lastRunAt': value['lastRunAt'],
74
+ };
75
+ }