@breign/client 1.0.187 → 1.0.189

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.
@@ -71,6 +71,7 @@ export interface ListProjectTicketsRequest {
71
71
  mine?: boolean;
72
72
  attention?: boolean;
73
73
  agentsWorking?: boolean;
74
+ parentTicketId?: string;
74
75
  search?: string;
75
76
  page?: number;
76
77
  limit?: number;
@@ -265,7 +266,7 @@ export declare class TicketsApi extends runtime.BaseAPI {
265
266
  * 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
267
  * List the tickets of a project
267
268
  */
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>>;
269
+ 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
270
  /**
270
271
  * Artefacts joints au ticket, les plus récents d\'abord.
271
272
  * List the artifacts of a ticket
@@ -525,6 +525,9 @@ class TicketsApi extends runtime.BaseAPI {
525
525
  if (requestParameters['agentsWorking'] != null) {
526
526
  queryParameters['agentsWorking'] = requestParameters['agentsWorking'];
527
527
  }
528
+ if (requestParameters['parentTicketId'] != null) {
529
+ queryParameters['parentTicketId'] = requestParameters['parentTicketId'];
530
+ }
528
531
  if (requestParameters['search'] != null) {
529
532
  queryParameters['search'] = requestParameters['search'];
530
533
  }
@@ -550,8 +553,8 @@ class TicketsApi extends runtime.BaseAPI {
550
553
  * 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
554
  * List the tickets of a project
552
555
  */
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);
556
+ async listProjectTickets(projectId, status, mine, attention, agentsWorking, parentTicketId, search, page, limit, initOverrides) {
557
+ 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
558
  return await response.value();
556
559
  }
557
560
  /**
@@ -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
  }
@@ -53,6 +53,12 @@ export interface FileCreationResponseUio {
53
53
  * @memberof FileCreationResponseUio
54
54
  */
55
55
  ocr?: boolean;
56
+ /**
57
+ * Path of the document where it comes from, if given at creation.
58
+ * @type {string}
59
+ * @memberof FileCreationResponseUio
60
+ */
61
+ sourcePath?: string;
56
62
  /**
57
63
  *
58
64
  * @type {string}
@@ -59,6 +59,7 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
60
60
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
61
61
  'ocr': json['ocr'] == null ? undefined : json['ocr'],
62
+ 'sourcePath': json['sourcePath'] == null ? undefined : json['sourcePath'],
62
63
  'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
63
64
  'hash': json['hash'] == null ? undefined : json['hash'],
64
65
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
@@ -91,6 +92,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
91
92
  'knowledgeType': value['knowledgeType'],
92
93
  'isFAQ': value['isFAQ'],
93
94
  'ocr': value['ocr'],
95
+ 'sourcePath': value['sourcePath'],
94
96
  'uploadId': value['uploadId'],
95
97
  'hash': value['hash'],
96
98
  'contentType': value['contentType'],
@@ -52,6 +52,12 @@ export interface FileUio {
52
52
  * @memberof FileUio
53
53
  */
54
54
  ocr?: boolean;
55
+ /**
56
+ * Path of the document where it comes from, if given at creation.
57
+ * @type {string}
58
+ * @memberof FileUio
59
+ */
60
+ sourcePath?: string;
55
61
  /**
56
62
  *
57
63
  * @type {string}
@@ -50,6 +50,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
51
51
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
52
52
  'ocr': json['ocr'] == null ? undefined : json['ocr'],
53
+ 'sourcePath': json['sourcePath'] == null ? undefined : json['sourcePath'],
53
54
  'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
54
55
  'hash': json['hash'] == null ? undefined : json['hash'],
55
56
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
@@ -80,6 +81,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
80
81
  'knowledgeType': value['knowledgeType'],
81
82
  'isFAQ': value['isFAQ'],
82
83
  'ocr': value['ocr'],
84
+ 'sourcePath': value['sourcePath'],
83
85
  'uploadId': value['uploadId'],
84
86
  'hash': value['hash'],
85
87
  'contentType': value['contentType'],
@@ -52,6 +52,12 @@ export interface FileWithDownloadUrlUio {
52
52
  * @memberof FileWithDownloadUrlUio
53
53
  */
54
54
  ocr?: boolean;
55
+ /**
56
+ * Path of the document where it comes from, if given at creation.
57
+ * @type {string}
58
+ * @memberof FileWithDownloadUrlUio
59
+ */
60
+ sourcePath?: string;
55
61
  /**
56
62
  *
57
63
  * @type {string}
@@ -52,6 +52,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
53
53
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
54
54
  'ocr': json['ocr'] == null ? undefined : json['ocr'],
55
+ 'sourcePath': json['sourcePath'] == null ? undefined : json['sourcePath'],
55
56
  'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
56
57
  'hash': json['hash'] == null ? undefined : json['hash'],
57
58
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
@@ -83,6 +84,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
83
84
  'knowledgeType': value['knowledgeType'],
84
85
  'isFAQ': value['isFAQ'],
85
86
  'ocr': value['ocr'],
87
+ 'sourcePath': value['sourcePath'],
86
88
  'uploadId': value['uploadId'],
87
89
  'hash': value['hash'],
88
90
  'contentType': value['contentType'],
@@ -63,6 +63,13 @@ export interface KnowledgeFileCreationRequestUio {
63
63
  * @memberof KnowledgeFileCreationRequestUio
64
64
  */
65
65
  ocr?: boolean;
66
+ /**
67
+ * Path of the document where it comes from (e.g. its folder in the source drive). Shown to the agent next to the file name when it searches.
68
+ *
69
+ * @type {string}
70
+ * @memberof KnowledgeFileCreationRequestUio
71
+ */
72
+ sourcePath?: string;
66
73
  }
67
74
  /**
68
75
  * Check if a given object implements the KnowledgeFileCreationRequestUio interface.
@@ -44,6 +44,7 @@ function KnowledgeFileCreationRequestUioFromJSONTyped(json, ignoreDiscriminator)
44
44
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
45
45
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
46
46
  'ocr': json['ocr'] == null ? undefined : json['ocr'],
47
+ 'sourcePath': json['sourcePath'] == null ? undefined : json['sourcePath'],
47
48
  };
48
49
  }
49
50
  function KnowledgeFileCreationRequestUioToJSON(json) {
@@ -62,5 +63,6 @@ function KnowledgeFileCreationRequestUioToJSONTyped(value, ignoreDiscriminator =
62
63
  'isActive': value['isActive'],
63
64
  'isFAQ': value['isFAQ'],
64
65
  'ocr': value['ocr'],
66
+ 'sourcePath': value['sourcePath'],
65
67
  };
66
68
  }
@@ -52,6 +52,12 @@ export interface KnowledgeFileUio {
52
52
  * @memberof KnowledgeFileUio
53
53
  */
54
54
  ocr?: boolean;
55
+ /**
56
+ * Path of the document where it comes from, if given at creation.
57
+ * @type {string}
58
+ * @memberof KnowledgeFileUio
59
+ */
60
+ sourcePath?: string;
55
61
  /**
56
62
  *
57
63
  * @type {string}
@@ -50,6 +50,7 @@ function KnowledgeFileUioFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
51
51
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
52
52
  'ocr': json['ocr'] == null ? undefined : json['ocr'],
53
+ 'sourcePath': json['sourcePath'] == null ? undefined : json['sourcePath'],
53
54
  'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
54
55
  'hash': json['hash'] == null ? undefined : json['hash'],
55
56
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
@@ -80,6 +81,7 @@ function KnowledgeFileUioToJSONTyped(value, ignoreDiscriminator = false) {
80
81
  'knowledgeType': value['knowledgeType'],
81
82
  'isFAQ': value['isFAQ'],
82
83
  'ocr': value['ocr'],
84
+ 'sourcePath': value['sourcePath'],
83
85
  'uploadId': value['uploadId'],
84
86
  'hash': value['hash'],
85
87
  'contentType': value['contentType'],
@@ -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
  }
@@ -13,6 +13,7 @@ import type { ActorRefUio } from './ActorRefUio';
13
13
  import type { TicketActiveAgentUio } from './TicketActiveAgentUio';
14
14
  import type { TicketPriorityUio } from './TicketPriorityUio';
15
15
  import type { MemberRefUio } from './MemberRefUio';
16
+ import type { TicketParentRefUio } from './TicketParentRefUio';
16
17
  import type { TicketAssigneeUio } from './TicketAssigneeUio';
17
18
  import type { TicketStatusUio } from './TicketStatusUio';
18
19
  /**
@@ -105,6 +106,30 @@ export interface TicketUio {
105
106
  * @memberof TicketUio
106
107
  */
107
108
  sourceConversationId: string | null;
109
+ /**
110
+ * Ticket parent, dans le même projet ; le ticket est alors un sous-ticket
111
+ * @type {string}
112
+ * @memberof TicketUio
113
+ */
114
+ parentTicketId: string | null;
115
+ /**
116
+ *
117
+ * @type {TicketParentRefUio}
118
+ * @memberof TicketUio
119
+ */
120
+ parent: TicketParentRefUio | null;
121
+ /**
122
+ * Nombre de sous-tickets directs
123
+ * @type {number}
124
+ * @memberof TicketUio
125
+ */
126
+ childCount: number;
127
+ /**
128
+ * Nombre de sous-tickets directs pas encore terminés
129
+ * @type {number}
130
+ * @memberof TicketUio
131
+ */
132
+ openChildCount: number;
108
133
  /**
109
134
  * Ordre dans la colonne, croissant
110
135
  * @type {number}
@@ -147,6 +172,12 @@ export interface TicketUio {
147
172
  * @memberof TicketUio
148
173
  */
149
174
  doneAt: string | null;
175
+ /**
176
+ * Dernier commentaire, changement de statut ou d'assignation
177
+ * @type {string}
178
+ * @memberof TicketUio
179
+ */
180
+ lastActivityAt: string;
150
181
  /**
151
182
  *
152
183
  * @type {string}
@@ -22,6 +22,7 @@ const ActorRefUio_1 = require("./ActorRefUio");
22
22
  const TicketActiveAgentUio_1 = require("./TicketActiveAgentUio");
23
23
  const TicketPriorityUio_1 = require("./TicketPriorityUio");
24
24
  const MemberRefUio_1 = require("./MemberRefUio");
25
+ const TicketParentRefUio_1 = require("./TicketParentRefUio");
25
26
  const TicketAssigneeUio_1 = require("./TicketAssigneeUio");
26
27
  const TicketStatusUio_1 = require("./TicketStatusUio");
27
28
  /**
@@ -56,6 +57,14 @@ function instanceOfTicketUio(value) {
56
57
  return false;
57
58
  if (!('sourceConversationId' in value) || value['sourceConversationId'] === undefined)
58
59
  return false;
60
+ if (!('parentTicketId' in value) || value['parentTicketId'] === undefined)
61
+ return false;
62
+ if (!('parent' in value) || value['parent'] === undefined)
63
+ return false;
64
+ if (!('childCount' in value) || value['childCount'] === undefined)
65
+ return false;
66
+ if (!('openChildCount' in value) || value['openChildCount'] === undefined)
67
+ return false;
59
68
  if (!('position' in value) || value['position'] === undefined)
60
69
  return false;
61
70
  if (!('assignees' in value) || value['assignees'] === undefined)
@@ -68,6 +77,8 @@ function instanceOfTicketUio(value) {
68
77
  return false;
69
78
  if (!('doneAt' in value) || value['doneAt'] === undefined)
70
79
  return false;
80
+ if (!('lastActivityAt' in value) || value['lastActivityAt'] === undefined)
81
+ return false;
71
82
  if (!('createdAt' in value) || value['createdAt'] === undefined)
72
83
  return false;
73
84
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -96,6 +107,10 @@ function TicketUioFromJSONTyped(json, ignoreDiscriminator) {
96
107
  'reviewer': (0, MemberRefUio_1.MemberRefUioFromJSON)(json['reviewer']),
97
108
  'createdBy': (0, ActorRefUio_1.ActorRefUioFromJSON)(json['createdBy']),
98
109
  'sourceConversationId': json['sourceConversationId'],
110
+ 'parentTicketId': json['parentTicketId'],
111
+ 'parent': (0, TicketParentRefUio_1.TicketParentRefUioFromJSON)(json['parent']),
112
+ 'childCount': json['childCount'],
113
+ 'openChildCount': json['openChildCount'],
99
114
  'position': json['position'],
100
115
  'assignees': (json['assignees'].map(TicketAssigneeUio_1.TicketAssigneeUioFromJSON)),
101
116
  'commentCount': json['commentCount'],
@@ -103,6 +118,7 @@ function TicketUioFromJSONTyped(json, ignoreDiscriminator) {
103
118
  'pendingHumanActions': json['pendingHumanActions'],
104
119
  'activeAgents': json['activeAgents'] == null ? undefined : (json['activeAgents'].map(TicketActiveAgentUio_1.TicketActiveAgentUioFromJSON)),
105
120
  'doneAt': json['doneAt'],
121
+ 'lastActivityAt': json['lastActivityAt'],
106
122
  'createdAt': json['createdAt'],
107
123
  'updatedAt': json['updatedAt'],
108
124
  };
@@ -129,6 +145,10 @@ function TicketUioToJSONTyped(value, ignoreDiscriminator = false) {
129
145
  'reviewer': (0, MemberRefUio_1.MemberRefUioToJSON)(value['reviewer']),
130
146
  'createdBy': (0, ActorRefUio_1.ActorRefUioToJSON)(value['createdBy']),
131
147
  'sourceConversationId': value['sourceConversationId'],
148
+ 'parentTicketId': value['parentTicketId'],
149
+ 'parent': (0, TicketParentRefUio_1.TicketParentRefUioToJSON)(value['parent']),
150
+ 'childCount': value['childCount'],
151
+ 'openChildCount': value['openChildCount'],
132
152
  'position': value['position'],
133
153
  'assignees': (value['assignees'].map(TicketAssigneeUio_1.TicketAssigneeUioToJSON)),
134
154
  'commentCount': value['commentCount'],
@@ -136,6 +156,7 @@ function TicketUioToJSONTyped(value, ignoreDiscriminator = false) {
136
156
  'pendingHumanActions': value['pendingHumanActions'],
137
157
  'activeAgents': value['activeAgents'] == null ? undefined : (value['activeAgents'].map(TicketActiveAgentUio_1.TicketActiveAgentUioToJSON)),
138
158
  'doneAt': value['doneAt'],
159
+ 'lastActivityAt': value['lastActivityAt'],
139
160
  'createdAt': value['createdAt'],
140
161
  'updatedAt': value['updatedAt'],
141
162
  };
@@ -66,6 +66,12 @@ export interface UpdateTicketRequestUio {
66
66
  * @memberof UpdateTicketRequestUio
67
67
  */
68
68
  position?: number;
69
+ /**
70
+ * Ticket parent, dans le même projet ; null détache le ticket de son parent
71
+ * @type {string}
72
+ * @memberof UpdateTicketRequestUio
73
+ */
74
+ parentTicketId?: string | null;
69
75
  }
70
76
  /**
71
77
  * Check if a given object implements the UpdateTicketRequestUio interface.
@@ -43,6 +43,7 @@ function UpdateTicketRequestUioFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'dueDate': json['dueDate'] == null ? undefined : json['dueDate'],
44
44
  'reviewer': json['reviewer'] == null ? undefined : (0, MemberRefUio_1.MemberRefUioFromJSON)(json['reviewer']),
45
45
  'position': json['position'] == null ? undefined : json['position'],
46
+ 'parentTicketId': json['parentTicketId'] == null ? undefined : json['parentTicketId'],
46
47
  };
47
48
  }
48
49
  function UpdateTicketRequestUioToJSON(json) {
@@ -61,5 +62,6 @@ function UpdateTicketRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
61
62
  'dueDate': value['dueDate'],
62
63
  'reviewer': (0, MemberRefUio_1.MemberRefUioToJSON)(value['reviewer']),
63
64
  'position': value['position'],
65
+ 'parentTicketId': value['parentTicketId'],
64
66
  };
65
67
  }
@@ -641,6 +641,7 @@ export * from './TicketBoardUio';
641
641
  export * from './TicketEventKindUio';
642
642
  export * from './TicketEventUio';
643
643
  export * from './TicketModelUsageUio';
644
+ export * from './TicketParentRefUio';
644
645
  export * from './TicketPlanStepStatusUio';
645
646
  export * from './TicketPlanStepUio';
646
647
  export * from './TicketPriorityUio';
@@ -659,6 +659,7 @@ __exportStar(require("./TicketBoardUio"), exports);
659
659
  __exportStar(require("./TicketEventKindUio"), exports);
660
660
  __exportStar(require("./TicketEventUio"), exports);
661
661
  __exportStar(require("./TicketModelUsageUio"), exports);
662
+ __exportStar(require("./TicketParentRefUio"), exports);
662
663
  __exportStar(require("./TicketPlanStepStatusUio"), exports);
663
664
  __exportStar(require("./TicketPlanStepUio"), exports);
664
665
  __exportStar(require("./TicketPriorityUio"), exports);
package/dist/openapi.json CHANGED
@@ -18238,6 +18238,14 @@
18238
18238
  "schema" : {
18239
18239
  "type" : "boolean"
18240
18240
  }
18241
+ }, {
18242
+ "description" : "Seulement les sous-tickets directs de ce ticket ; none pour les tickets sans parent",
18243
+ "in" : "query",
18244
+ "name" : "parentTicketId",
18245
+ "required" : false,
18246
+ "schema" : {
18247
+ "type" : "string"
18248
+ }
18241
18249
  }, {
18242
18250
  "description" : "Recherche dans le titre et la clé",
18243
18251
  "in" : "query",
@@ -24436,6 +24444,10 @@
24436
24444
  "ocr" : {
24437
24445
  "type" : "boolean"
24438
24446
  },
24447
+ "sourcePath" : {
24448
+ "description" : "Path of the document where it comes from, if given at creation.",
24449
+ "type" : "string"
24450
+ },
24439
24451
  "uploadId" : {
24440
24452
  "type" : "string"
24441
24453
  },
@@ -29394,6 +29406,11 @@
29394
29406
  "ocr" : {
29395
29407
  "description" : "Run the OCR pre-pass before parsing the document",
29396
29408
  "type" : "boolean"
29409
+ },
29410
+ "sourcePath" : {
29411
+ "description" : "Path of the document where it comes from (e.g. its folder in the source drive). Shown to the agent next to the file name when it searches.\n",
29412
+ "maxLength" : 512,
29413
+ "type" : "string"
29397
29414
  }
29398
29415
  },
29399
29416
  "required" : [ "ext", "size" ],
@@ -32878,6 +32895,26 @@
32878
32895
  "nullable" : true,
32879
32896
  "type" : "string"
32880
32897
  },
32898
+ "parentTicketId" : {
32899
+ "description" : "Ticket parent, dans le même projet ; le ticket est alors un sous-ticket",
32900
+ "format" : "uuid",
32901
+ "nullable" : true,
32902
+ "type" : "string"
32903
+ },
32904
+ "parent" : {
32905
+ "allOf" : [ {
32906
+ "$ref" : "#/components/schemas/TicketParentRef"
32907
+ } ],
32908
+ "nullable" : true
32909
+ },
32910
+ "childCount" : {
32911
+ "description" : "Nombre de sous-tickets directs",
32912
+ "type" : "integer"
32913
+ },
32914
+ "openChildCount" : {
32915
+ "description" : "Nombre de sous-tickets directs pas encore terminés",
32916
+ "type" : "integer"
32917
+ },
32881
32918
  "position" : {
32882
32919
  "description" : "Ordre dans la colonne, croissant",
32883
32920
  "type" : "number"
@@ -32909,6 +32946,10 @@
32909
32946
  "nullable" : true,
32910
32947
  "type" : "string"
32911
32948
  },
32949
+ "lastActivityAt" : {
32950
+ "description" : "Dernier commentaire, changement de statut ou d'assignation",
32951
+ "type" : "string"
32952
+ },
32912
32953
  "createdAt" : {
32913
32954
  "type" : "string"
32914
32955
  },
@@ -32916,7 +32957,27 @@
32916
32957
  "type" : "string"
32917
32958
  }
32918
32959
  },
32919
- "required" : [ "artifactCount", "assignees", "commentCount", "createdAt", "createdBy", "description", "doneAt", "dueDate", "id", "key", "labels", "number", "organizationId", "pendingHumanActions", "position", "priority", "projectId", "reviewer", "sourceConversationId", "status", "title", "updatedAt" ],
32960
+ "required" : [ "artifactCount", "assignees", "childCount", "commentCount", "createdAt", "createdBy", "description", "doneAt", "dueDate", "id", "key", "labels", "lastActivityAt", "number", "openChildCount", "organizationId", "parent", "parentTicketId", "pendingHumanActions", "position", "priority", "projectId", "reviewer", "sourceConversationId", "status", "title", "updatedAt" ],
32961
+ "type" : "object"
32962
+ },
32963
+ "TicketParentRef" : {
32964
+ "description" : "Le ticket parent d'un sous-ticket, de quoi l'afficher sans le recharger.",
32965
+ "properties" : {
32966
+ "id" : {
32967
+ "format" : "uuid",
32968
+ "type" : "string"
32969
+ },
32970
+ "key" : {
32971
+ "type" : "string"
32972
+ },
32973
+ "title" : {
32974
+ "type" : "string"
32975
+ },
32976
+ "status" : {
32977
+ "$ref" : "#/components/schemas/TicketStatus"
32978
+ }
32979
+ },
32980
+ "required" : [ "id", "key", "status", "title" ],
32920
32981
  "type" : "object"
32921
32982
  },
32922
32983
  "TicketAssignee" : {
@@ -32998,6 +33059,11 @@
32998
33059
  },
32999
33060
  "startMode" : {
33000
33061
  "$ref" : "#/components/schemas/TicketStartMode"
33062
+ },
33063
+ "parentTicketId" : {
33064
+ "description" : "Ticket parent, dans le même projet",
33065
+ "format" : "uuid",
33066
+ "type" : "string"
33001
33067
  }
33002
33068
  },
33003
33069
  "required" : [ "title" ],
@@ -33050,6 +33116,12 @@
33050
33116
  },
33051
33117
  "position" : {
33052
33118
  "type" : "number"
33119
+ },
33120
+ "parentTicketId" : {
33121
+ "description" : "Ticket parent, dans le même projet ; null détache le ticket de son parent",
33122
+ "format" : "uuid",
33123
+ "nullable" : true,
33124
+ "type" : "string"
33053
33125
  }
33054
33126
  },
33055
33127
  "type" : "object"
@@ -34901,6 +34973,12 @@
34901
34973
  "type" : "string"
34902
34974
  },
34903
34975
  "type" : "array"
34976
+ },
34977
+ "parentTicketId" : {
34978
+ "description" : "Ticket parent du futur ticket",
34979
+ "format" : "uuid",
34980
+ "nullable" : true,
34981
+ "type" : "string"
34904
34982
  }
34905
34983
  },
34906
34984
  "required" : [ "assignees", "description", "priority", "reviewer", "startMode", "title", "workspacePaths" ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.187",
3
+ "version": "1.0.189",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",