@breign/client 1.0.165 → 1.0.167

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.
Files changed (130) hide show
  1. package/dist/apis/InboxApi.d.ts +61 -0
  2. package/dist/apis/InboxApi.js +156 -0
  3. package/dist/apis/ProjectsApi.d.ts +113 -0
  4. package/dist/apis/ProjectsApi.js +278 -0
  5. package/dist/apis/TicketsApi.d.ts +301 -0
  6. package/dist/apis/TicketsApi.js +719 -0
  7. package/dist/apis/index.d.ts +3 -0
  8. package/dist/apis/index.js +3 -0
  9. package/dist/models/AcceptTicketProposalRequestUio.d.ts +72 -0
  10. package/dist/models/AcceptTicketProposalRequestUio.js +64 -0
  11. package/dist/models/ActorRefUio.d.ts +39 -0
  12. package/dist/models/ActorRefUio.js +55 -0
  13. package/dist/models/ActorTypeUio.d.ts +26 -0
  14. package/dist/models/ActorTypeUio.js +52 -0
  15. package/dist/models/AgentTicketActivityUio.d.ts +69 -0
  16. package/dist/models/AgentTicketActivityUio.js +75 -0
  17. package/dist/models/AgentTicketCreationUio.d.ts +25 -0
  18. package/dist/models/AgentTicketCreationUio.js +51 -0
  19. package/dist/models/ChatMessageUio.d.ts +7 -0
  20. package/dist/models/ChatMessageUio.js +3 -0
  21. package/dist/models/ConversationTicketProposalUio.d.ts +71 -0
  22. package/dist/models/ConversationTicketProposalUio.js +77 -0
  23. package/dist/models/CreateProjectRequestUio.d.ts +70 -0
  24. package/dist/models/CreateProjectRequestUio.js +66 -0
  25. package/dist/models/CreateTicketArtifactRequestUio.d.ts +44 -0
  26. package/dist/models/CreateTicketArtifactRequestUio.js +56 -0
  27. package/dist/models/CreateTicketArtifactResponseUio.d.ts +40 -0
  28. package/dist/models/CreateTicketArtifactResponseUio.js +56 -0
  29. package/dist/models/CreateTicketEventRequestUio.d.ts +38 -0
  30. package/dist/models/CreateTicketEventRequestUio.js +52 -0
  31. package/dist/models/CreateTicketRequestUio.d.ts +85 -0
  32. package/dist/models/CreateTicketRequestUio.js +71 -0
  33. package/dist/models/InboxCountUio.d.ts +38 -0
  34. package/dist/models/InboxCountUio.js +54 -0
  35. package/dist/models/InboxItemKindUio.d.ts +28 -0
  36. package/dist/models/InboxItemKindUio.js +54 -0
  37. package/dist/models/InboxItemProjectUio.d.ts +44 -0
  38. package/dist/models/InboxItemProjectUio.js +58 -0
  39. package/dist/models/InboxItemStatusUio.d.ts +25 -0
  40. package/dist/models/InboxItemStatusUio.js +51 -0
  41. package/dist/models/InboxItemTicketUio.d.ts +44 -0
  42. package/dist/models/InboxItemTicketUio.js +58 -0
  43. package/dist/models/InboxItemUio.d.ts +107 -0
  44. package/dist/models/InboxItemUio.js +99 -0
  45. package/dist/models/InboxTabUio.d.ts +26 -0
  46. package/dist/models/InboxTabUio.js +52 -0
  47. package/dist/models/MemberRefUio.d.ts +39 -0
  48. package/dist/models/MemberRefUio.js +55 -0
  49. package/dist/models/MemberTypeUio.d.ts +25 -0
  50. package/dist/models/MemberTypeUio.js +51 -0
  51. package/dist/models/ProjectActivityUio.d.ts +51 -0
  52. package/dist/models/ProjectActivityUio.js +63 -0
  53. package/dist/models/ProjectAttentionUio.d.ts +50 -0
  54. package/dist/models/ProjectAttentionUio.js +62 -0
  55. package/dist/models/ProjectCountsUio.d.ts +68 -0
  56. package/dist/models/ProjectCountsUio.js +74 -0
  57. package/dist/models/ProjectMemberRoleUio.d.ts +25 -0
  58. package/dist/models/ProjectMemberRoleUio.js +51 -0
  59. package/dist/models/ProjectMemberUio.d.ts +53 -0
  60. package/dist/models/ProjectMemberUio.js +63 -0
  61. package/dist/models/ProjectOverviewUio.d.ts +68 -0
  62. package/dist/models/ProjectOverviewUio.js +76 -0
  63. package/dist/models/ProjectSettingsUio.d.ts +46 -0
  64. package/dist/models/ProjectSettingsUio.js +58 -0
  65. package/dist/models/ProjectSummaryUio.d.ts +128 -0
  66. package/dist/models/ProjectSummaryUio.js +116 -0
  67. package/dist/models/ProjectUio.d.ts +100 -0
  68. package/dist/models/ProjectUio.js +96 -0
  69. package/dist/models/SetProjectMembersRequestUio.d.ts +33 -0
  70. package/dist/models/SetProjectMembersRequestUio.js +51 -0
  71. package/dist/models/SetTicketAssigneesRequestUio.d.ts +40 -0
  72. package/dist/models/SetTicketAssigneesRequestUio.js +54 -0
  73. package/dist/models/TicketAgentExecutionPendingQuestionUio.d.ts +38 -0
  74. package/dist/models/TicketAgentExecutionPendingQuestionUio.js +54 -0
  75. package/dist/models/TicketAgentExecutionUio.d.ts +90 -0
  76. package/dist/models/TicketAgentExecutionUio.js +88 -0
  77. package/dist/models/TicketAgentPlanUio.d.ts +39 -0
  78. package/dist/models/TicketAgentPlanUio.js +55 -0
  79. package/dist/models/TicketAgentRunStatusUio.d.ts +28 -0
  80. package/dist/models/TicketAgentRunStatusUio.js +54 -0
  81. package/dist/models/TicketArtifactDownloadUrlUio.d.ts +32 -0
  82. package/dist/models/TicketArtifactDownloadUrlUio.js +50 -0
  83. package/dist/models/TicketArtifactSourceUio.d.ts +25 -0
  84. package/dist/models/TicketArtifactSourceUio.js +51 -0
  85. package/dist/models/TicketArtifactStatusUio.d.ts +25 -0
  86. package/dist/models/TicketArtifactStatusUio.js +51 -0
  87. package/dist/models/TicketArtifactUio.d.ts +83 -0
  88. package/dist/models/TicketArtifactUio.js +85 -0
  89. package/dist/models/TicketAssigneeInputUio.d.ts +39 -0
  90. package/dist/models/TicketAssigneeInputUio.js +55 -0
  91. package/dist/models/TicketAssigneeStateUio.d.ts +29 -0
  92. package/dist/models/TicketAssigneeStateUio.js +55 -0
  93. package/dist/models/TicketAssigneeUio.d.ts +58 -0
  94. package/dist/models/TicketAssigneeUio.js +68 -0
  95. package/dist/models/TicketBoardColumnUio.d.ts +46 -0
  96. package/dist/models/TicketBoardColumnUio.js +60 -0
  97. package/dist/models/TicketBoardUio.d.ts +33 -0
  98. package/dist/models/TicketBoardUio.js +51 -0
  99. package/dist/models/TicketEventKindUio.d.ts +27 -0
  100. package/dist/models/TicketEventKindUio.js +53 -0
  101. package/dist/models/TicketEventUio.d.ts +78 -0
  102. package/dist/models/TicketEventUio.js +80 -0
  103. package/dist/models/TicketPlanStepStatusUio.d.ts +26 -0
  104. package/dist/models/TicketPlanStepStatusUio.js +52 -0
  105. package/dist/models/TicketPlanStepUio.d.ts +39 -0
  106. package/dist/models/TicketPlanStepUio.js +55 -0
  107. package/dist/models/TicketPriorityUio.d.ts +26 -0
  108. package/dist/models/TicketPriorityUio.js +52 -0
  109. package/dist/models/TicketProposalPayloadUio.d.ts +72 -0
  110. package/dist/models/TicketProposalPayloadUio.js +78 -0
  111. package/dist/models/TicketProposalStatusUio.d.ts +27 -0
  112. package/dist/models/TicketProposalStatusUio.js +53 -0
  113. package/dist/models/TicketReviewDecisionUio.d.ts +25 -0
  114. package/dist/models/TicketReviewDecisionUio.js +51 -0
  115. package/dist/models/TicketReviewRequestUio.d.ts +39 -0
  116. package/dist/models/TicketReviewRequestUio.js +53 -0
  117. package/dist/models/TicketStartModeUio.d.ts +25 -0
  118. package/dist/models/TicketStartModeUio.js +51 -0
  119. package/dist/models/TicketStatusUio.d.ts +28 -0
  120. package/dist/models/TicketStatusUio.js +54 -0
  121. package/dist/models/TicketUio.d.ts +163 -0
  122. package/dist/models/TicketUio.js +139 -0
  123. package/dist/models/UpdateProjectRequestUio.d.ts +63 -0
  124. package/dist/models/UpdateProjectRequestUio.js +59 -0
  125. package/dist/models/UpdateTicketRequestUio.d.ts +77 -0
  126. package/dist/models/UpdateTicketRequestUio.js +65 -0
  127. package/dist/models/index.d.ts +58 -0
  128. package/dist/models/index.js +58 -0
  129. package/dist/openapi.json +8282 -5479
  130. package/package.json +1 -1
@@ -0,0 +1,719 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.TicketsApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class TicketsApi extends runtime.BaseAPI {
56
+ /**
57
+ * Crée le ticket proposé par l\'agent, avec les corrections éventuelles. projectId est obligatoire si l\'agent n\'en a pas proposé.
58
+ * Accept a ticket proposal
59
+ */
60
+ async acceptTicketProposalRaw(requestParameters, initOverrides) {
61
+ if (requestParameters['proposalId'] == null) {
62
+ throw new runtime.RequiredError('proposalId', 'Required parameter "proposalId" was null or undefined when calling acceptTicketProposal().');
63
+ }
64
+ if (requestParameters['acceptTicketProposalRequestUio'] == null) {
65
+ throw new runtime.RequiredError('acceptTicketProposalRequestUio', 'Required parameter "acceptTicketProposalRequestUio" was null or undefined when calling acceptTicketProposal().');
66
+ }
67
+ const queryParameters = {};
68
+ const headerParameters = {};
69
+ headerParameters['Content-Type'] = 'application/json';
70
+ if (this.configuration && this.configuration.apiKey) {
71
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
72
+ }
73
+ const response = await this.request({
74
+ path: `/ticket-proposals/{proposalId}/accept`.replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters['proposalId']))),
75
+ method: 'POST',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ body: (0, index_1.AcceptTicketProposalRequestUioToJSON)(requestParameters['acceptTicketProposalRequestUio']),
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
81
+ }
82
+ /**
83
+ * Crée le ticket proposé par l\'agent, avec les corrections éventuelles. projectId est obligatoire si l\'agent n\'en a pas proposé.
84
+ * Accept a ticket proposal
85
+ */
86
+ async acceptTicketProposal(proposalId, acceptTicketProposalRequestUio, initOverrides) {
87
+ const response = await this.acceptTicketProposalRaw({ proposalId: proposalId, acceptTicketProposalRequestUio: acceptTicketProposalRequestUio }, initOverrides);
88
+ return await response.value();
89
+ }
90
+ /**
91
+ * Annule un ticket créé sans confirmation : le ticket est supprimé tant que personne n\'y a travaillé.
92
+ * Cancel a ticket created directly by an agent
93
+ */
94
+ async cancelTicketProposalRaw(requestParameters, initOverrides) {
95
+ if (requestParameters['proposalId'] == null) {
96
+ throw new runtime.RequiredError('proposalId', 'Required parameter "proposalId" was null or undefined when calling cancelTicketProposal().');
97
+ }
98
+ const queryParameters = {};
99
+ const headerParameters = {};
100
+ if (this.configuration && this.configuration.apiKey) {
101
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
102
+ }
103
+ const response = await this.request({
104
+ path: `/ticket-proposals/{proposalId}/cancel`.replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters['proposalId']))),
105
+ method: 'POST',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ }, initOverrides);
109
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConversationTicketProposalUioFromJSON)(jsonValue));
110
+ }
111
+ /**
112
+ * Annule un ticket créé sans confirmation : le ticket est supprimé tant que personne n\'y a travaillé.
113
+ * Cancel a ticket created directly by an agent
114
+ */
115
+ async cancelTicketProposal(proposalId, initOverrides) {
116
+ const response = await this.cancelTicketProposalRaw({ proposalId: proposalId }, initOverrides);
117
+ return await response.value();
118
+ }
119
+ /**
120
+ * Crée un ticket dans le projet ; son numéro suit la séquence du projet.
121
+ * Create a ticket
122
+ */
123
+ async createTicketRaw(requestParameters, initOverrides) {
124
+ if (requestParameters['projectId'] == null) {
125
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createTicket().');
126
+ }
127
+ if (requestParameters['createTicketRequestUio'] == null) {
128
+ throw new runtime.RequiredError('createTicketRequestUio', 'Required parameter "createTicketRequestUio" was null or undefined when calling createTicket().');
129
+ }
130
+ const queryParameters = {};
131
+ const headerParameters = {};
132
+ headerParameters['Content-Type'] = 'application/json';
133
+ if (this.configuration && this.configuration.apiKey) {
134
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
135
+ }
136
+ const response = await this.request({
137
+ path: `/projects/{projectId}/tickets`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
138
+ method: 'POST',
139
+ headers: headerParameters,
140
+ query: queryParameters,
141
+ body: (0, index_1.CreateTicketRequestUioToJSON)(requestParameters['createTicketRequestUio']),
142
+ }, initOverrides);
143
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
144
+ }
145
+ /**
146
+ * Crée un ticket dans le projet ; son numéro suit la séquence du projet.
147
+ * Create a ticket
148
+ */
149
+ async createTicket(projectId, createTicketRequestUio, initOverrides) {
150
+ const response = await this.createTicketRaw({ projectId: projectId, createTicketRequestUio: createTicketRequestUio }, initOverrides);
151
+ return await response.value();
152
+ }
153
+ /**
154
+ * Déclare un fichier et renvoie l\'URL présignée où le téléverser.
155
+ * Attach a file to a ticket
156
+ */
157
+ async createTicketArtifactRaw(requestParameters, initOverrides) {
158
+ if (requestParameters['ticketId'] == null) {
159
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling createTicketArtifact().');
160
+ }
161
+ if (requestParameters['createTicketArtifactRequestUio'] == null) {
162
+ throw new runtime.RequiredError('createTicketArtifactRequestUio', 'Required parameter "createTicketArtifactRequestUio" was null or undefined when calling createTicketArtifact().');
163
+ }
164
+ const queryParameters = {};
165
+ const headerParameters = {};
166
+ headerParameters['Content-Type'] = 'application/json';
167
+ if (this.configuration && this.configuration.apiKey) {
168
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
169
+ }
170
+ const response = await this.request({
171
+ path: `/tickets/{ticketId}/artifacts`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
172
+ method: 'POST',
173
+ headers: headerParameters,
174
+ query: queryParameters,
175
+ body: (0, index_1.CreateTicketArtifactRequestUioToJSON)(requestParameters['createTicketArtifactRequestUio']),
176
+ }, initOverrides);
177
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateTicketArtifactResponseUioFromJSON)(jsonValue));
178
+ }
179
+ /**
180
+ * Déclare un fichier et renvoie l\'URL présignée où le téléverser.
181
+ * Attach a file to a ticket
182
+ */
183
+ async createTicketArtifact(ticketId, createTicketArtifactRequestUio, initOverrides) {
184
+ const response = await this.createTicketArtifactRaw({ ticketId: ticketId, createTicketArtifactRequestUio: createTicketArtifactRequestUio }, initOverrides);
185
+ return await response.value();
186
+ }
187
+ /**
188
+ * Ajoute un commentaire ; chaque @mention crée un élément dans l\'onglet Mentions du destinataire.
189
+ * Comment on a ticket
190
+ */
191
+ async createTicketCommentRaw(requestParameters, initOverrides) {
192
+ if (requestParameters['ticketId'] == null) {
193
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling createTicketComment().');
194
+ }
195
+ if (requestParameters['createTicketEventRequestUio'] == null) {
196
+ throw new runtime.RequiredError('createTicketEventRequestUio', 'Required parameter "createTicketEventRequestUio" was null or undefined when calling createTicketComment().');
197
+ }
198
+ const queryParameters = {};
199
+ const headerParameters = {};
200
+ headerParameters['Content-Type'] = 'application/json';
201
+ if (this.configuration && this.configuration.apiKey) {
202
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
203
+ }
204
+ const response = await this.request({
205
+ path: `/tickets/{ticketId}/events`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
206
+ method: 'POST',
207
+ headers: headerParameters,
208
+ query: queryParameters,
209
+ body: (0, index_1.CreateTicketEventRequestUioToJSON)(requestParameters['createTicketEventRequestUio']),
210
+ }, initOverrides);
211
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketEventUioFromJSON)(jsonValue));
212
+ }
213
+ /**
214
+ * Ajoute un commentaire ; chaque @mention crée un élément dans l\'onglet Mentions du destinataire.
215
+ * Comment on a ticket
216
+ */
217
+ async createTicketComment(ticketId, createTicketEventRequestUio, initOverrides) {
218
+ const response = await this.createTicketCommentRaw({ ticketId: ticketId, createTicketEventRequestUio: createTicketEventRequestUio }, initOverrides);
219
+ return await response.value();
220
+ }
221
+ /**
222
+ * Retire l\'artefact et supprime le fichier téléversé.
223
+ * Remove an artifact from a ticket
224
+ */
225
+ async deleteTicketArtifactRaw(requestParameters, initOverrides) {
226
+ if (requestParameters['ticketId'] == null) {
227
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling deleteTicketArtifact().');
228
+ }
229
+ if (requestParameters['artifactId'] == null) {
230
+ throw new runtime.RequiredError('artifactId', 'Required parameter "artifactId" was null or undefined when calling deleteTicketArtifact().');
231
+ }
232
+ const queryParameters = {};
233
+ const headerParameters = {};
234
+ if (this.configuration && this.configuration.apiKey) {
235
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
236
+ }
237
+ const response = await this.request({
238
+ path: `/tickets/{ticketId}/artifacts/{artifactId}`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"artifactId"}}`, encodeURIComponent(String(requestParameters['artifactId']))),
239
+ method: 'DELETE',
240
+ headers: headerParameters,
241
+ query: queryParameters,
242
+ }, initOverrides);
243
+ return new runtime.VoidApiResponse(response);
244
+ }
245
+ /**
246
+ * Retire l\'artefact et supprime le fichier téléversé.
247
+ * Remove an artifact from a ticket
248
+ */
249
+ async deleteTicketArtifact(ticketId, artifactId, initOverrides) {
250
+ await this.deleteTicketArtifactRaw({ ticketId: ticketId, artifactId: artifactId }, initOverrides);
251
+ }
252
+ /**
253
+ * 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.
254
+ * Get the board of a project
255
+ */
256
+ async getProjectBoardRaw(requestParameters, initOverrides) {
257
+ if (requestParameters['projectId'] == null) {
258
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProjectBoard().');
259
+ }
260
+ const queryParameters = {};
261
+ if (requestParameters['doneLimit'] != null) {
262
+ queryParameters['doneLimit'] = requestParameters['doneLimit'];
263
+ }
264
+ const headerParameters = {};
265
+ if (this.configuration && this.configuration.apiKey) {
266
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
267
+ }
268
+ const response = await this.request({
269
+ path: `/projects/{projectId}/board`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
270
+ method: 'GET',
271
+ headers: headerParameters,
272
+ query: queryParameters,
273
+ }, initOverrides);
274
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketBoardUioFromJSON)(jsonValue));
275
+ }
276
+ /**
277
+ * 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.
278
+ * Get the board of a project
279
+ */
280
+ async getProjectBoard(projectId, doneLimit, initOverrides) {
281
+ const response = await this.getProjectBoardRaw({ projectId: projectId, doneLimit: doneLimit }, initOverrides);
282
+ return await response.value();
283
+ }
284
+ /**
285
+ * Ticket avec ses assignés et leurs états.
286
+ * Get a ticket
287
+ */
288
+ async getTicketRaw(requestParameters, initOverrides) {
289
+ if (requestParameters['ticketId'] == null) {
290
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling getTicket().');
291
+ }
292
+ const queryParameters = {};
293
+ const headerParameters = {};
294
+ if (this.configuration && this.configuration.apiKey) {
295
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
296
+ }
297
+ const response = await this.request({
298
+ path: `/tickets/{ticketId}`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
299
+ method: 'GET',
300
+ headers: headerParameters,
301
+ query: queryParameters,
302
+ }, initOverrides);
303
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
304
+ }
305
+ /**
306
+ * Ticket avec ses assignés et leurs états.
307
+ * Get a ticket
308
+ */
309
+ async getTicket(ticketId, initOverrides) {
310
+ const response = await this.getTicketRaw({ ticketId: ticketId }, initOverrides);
311
+ return await response.value();
312
+ }
313
+ /**
314
+ * Pour chaque agent assigné : réveil en attente, exécution en cours, question en attente, plan publié et occupation du contexte de sa session de travail.
315
+ * Get what the assigned agents are doing on a ticket
316
+ */
317
+ async getTicketAgentExecutionRaw(requestParameters, initOverrides) {
318
+ if (requestParameters['ticketId'] == null) {
319
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling getTicketAgentExecution().');
320
+ }
321
+ const queryParameters = {};
322
+ const headerParameters = {};
323
+ if (this.configuration && this.configuration.apiKey) {
324
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
325
+ }
326
+ const response = await this.request({
327
+ path: `/tickets/{ticketId}/agents/execution`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
328
+ method: 'GET',
329
+ headers: headerParameters,
330
+ query: queryParameters,
331
+ }, initOverrides);
332
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TicketAgentExecutionUioFromJSON));
333
+ }
334
+ /**
335
+ * Pour chaque agent assigné : réveil en attente, exécution en cours, question en attente, plan publié et occupation du contexte de sa session de travail.
336
+ * Get what the assigned agents are doing on a ticket
337
+ */
338
+ async getTicketAgentExecution(ticketId, initOverrides) {
339
+ const response = await this.getTicketAgentExecutionRaw({ ticketId: ticketId }, initOverrides);
340
+ return await response.value();
341
+ }
342
+ /**
343
+ * URL présignée de téléchargement, valable quelques minutes.
344
+ * Get a download URL for an artifact
345
+ */
346
+ async getTicketArtifactDownloadUrlRaw(requestParameters, initOverrides) {
347
+ if (requestParameters['ticketId'] == null) {
348
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling getTicketArtifactDownloadUrl().');
349
+ }
350
+ if (requestParameters['artifactId'] == null) {
351
+ throw new runtime.RequiredError('artifactId', 'Required parameter "artifactId" was null or undefined when calling getTicketArtifactDownloadUrl().');
352
+ }
353
+ const queryParameters = {};
354
+ const headerParameters = {};
355
+ if (this.configuration && this.configuration.apiKey) {
356
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
357
+ }
358
+ const response = await this.request({
359
+ path: `/tickets/{ticketId}/artifacts/{artifactId}/download-url`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"artifactId"}}`, encodeURIComponent(String(requestParameters['artifactId']))),
360
+ method: 'GET',
361
+ headers: headerParameters,
362
+ query: queryParameters,
363
+ }, initOverrides);
364
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketArtifactDownloadUrlUioFromJSON)(jsonValue));
365
+ }
366
+ /**
367
+ * URL présignée de téléchargement, valable quelques minutes.
368
+ * Get a download URL for an artifact
369
+ */
370
+ async getTicketArtifactDownloadUrl(ticketId, artifactId, initOverrides) {
371
+ const response = await this.getTicketArtifactDownloadUrlRaw({ ticketId: ticketId, artifactId: artifactId }, initOverrides);
372
+ return await response.value();
373
+ }
374
+ /**
375
+ * Ticket désigné par sa clé (BRN-142) dans une organisation.
376
+ * Get a ticket by its key
377
+ */
378
+ async getTicketByKeyRaw(requestParameters, initOverrides) {
379
+ if (requestParameters['organizationId'] == null) {
380
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getTicketByKey().');
381
+ }
382
+ if (requestParameters['ticketKey'] == null) {
383
+ throw new runtime.RequiredError('ticketKey', 'Required parameter "ticketKey" was null or undefined when calling getTicketByKey().');
384
+ }
385
+ const queryParameters = {};
386
+ const headerParameters = {};
387
+ if (this.configuration && this.configuration.apiKey) {
388
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
389
+ }
390
+ const response = await this.request({
391
+ path: `/organizations/{organizationId}/tickets/{ticketKey}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"ticketKey"}}`, encodeURIComponent(String(requestParameters['ticketKey']))),
392
+ method: 'GET',
393
+ headers: headerParameters,
394
+ query: queryParameters,
395
+ }, initOverrides);
396
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
397
+ }
398
+ /**
399
+ * Ticket désigné par sa clé (BRN-142) dans une organisation.
400
+ * Get a ticket by its key
401
+ */
402
+ async getTicketByKey(organizationId, ticketKey, initOverrides) {
403
+ const response = await this.getTicketByKeyRaw({ organizationId: organizationId, ticketKey: ticketKey }, initOverrides);
404
+ return await response.value();
405
+ }
406
+ /**
407
+ * Feu vert à un assigné en attente (held) : il passe à assigned et peut commencer.
408
+ * Give the go-ahead to an assignee
409
+ */
410
+ async giveTicketGoAheadRaw(requestParameters, initOverrides) {
411
+ if (requestParameters['ticketId'] == null) {
412
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling giveTicketGoAhead().');
413
+ }
414
+ if (requestParameters['assigneeType'] == null) {
415
+ throw new runtime.RequiredError('assigneeType', 'Required parameter "assigneeType" was null or undefined when calling giveTicketGoAhead().');
416
+ }
417
+ if (requestParameters['assigneeId'] == null) {
418
+ throw new runtime.RequiredError('assigneeId', 'Required parameter "assigneeId" was null or undefined when calling giveTicketGoAhead().');
419
+ }
420
+ const queryParameters = {};
421
+ const headerParameters = {};
422
+ if (this.configuration && this.configuration.apiKey) {
423
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
424
+ }
425
+ const response = await this.request({
426
+ path: `/tickets/{ticketId}/assignees/{assigneeType}/{assigneeId}/go-ahead`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"assigneeType"}}`, encodeURIComponent(String(requestParameters['assigneeType']))).replace(`{${"assigneeId"}}`, encodeURIComponent(String(requestParameters['assigneeId']))),
427
+ method: 'POST',
428
+ headers: headerParameters,
429
+ query: queryParameters,
430
+ }, initOverrides);
431
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
432
+ }
433
+ /**
434
+ * Feu vert à un assigné en attente (held) : il passe à assigned et peut commencer.
435
+ * Give the go-ahead to an assignee
436
+ */
437
+ async giveTicketGoAhead(ticketId, assigneeType, assigneeId, initOverrides) {
438
+ const response = await this.giveTicketGoAheadRaw({ ticketId: ticketId, assigneeType: assigneeType, assigneeId: assigneeId }, initOverrides);
439
+ return await response.value();
440
+ }
441
+ /**
442
+ * 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.
443
+ * List the tickets of a project
444
+ */
445
+ async listProjectTicketsRaw(requestParameters, initOverrides) {
446
+ if (requestParameters['projectId'] == null) {
447
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listProjectTickets().');
448
+ }
449
+ const queryParameters = {};
450
+ if (requestParameters['status'] != null) {
451
+ queryParameters['status'] = requestParameters['status'];
452
+ }
453
+ if (requestParameters['mine'] != null) {
454
+ queryParameters['mine'] = requestParameters['mine'];
455
+ }
456
+ if (requestParameters['attention'] != null) {
457
+ queryParameters['attention'] = requestParameters['attention'];
458
+ }
459
+ if (requestParameters['agentsWorking'] != null) {
460
+ queryParameters['agentsWorking'] = requestParameters['agentsWorking'];
461
+ }
462
+ if (requestParameters['search'] != null) {
463
+ queryParameters['search'] = requestParameters['search'];
464
+ }
465
+ if (requestParameters['page'] != null) {
466
+ queryParameters['page'] = requestParameters['page'];
467
+ }
468
+ if (requestParameters['limit'] != null) {
469
+ queryParameters['limit'] = requestParameters['limit'];
470
+ }
471
+ const headerParameters = {};
472
+ if (this.configuration && this.configuration.apiKey) {
473
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
474
+ }
475
+ const response = await this.request({
476
+ path: `/projects/{projectId}/tickets`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
477
+ method: 'GET',
478
+ headers: headerParameters,
479
+ query: queryParameters,
480
+ }, initOverrides);
481
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TicketUioFromJSON));
482
+ }
483
+ /**
484
+ * 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.
485
+ * List the tickets of a project
486
+ */
487
+ async listProjectTickets(projectId, status, mine, attention, agentsWorking, search, page, limit, initOverrides) {
488
+ const response = await this.listProjectTicketsRaw({ projectId: projectId, status: status, mine: mine, attention: attention, agentsWorking: agentsWorking, search: search, page: page, limit: limit }, initOverrides);
489
+ return await response.value();
490
+ }
491
+ /**
492
+ * Artefacts joints au ticket, les plus récents d\'abord.
493
+ * List the artifacts of a ticket
494
+ */
495
+ async listTicketArtifactsRaw(requestParameters, initOverrides) {
496
+ if (requestParameters['ticketId'] == null) {
497
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling listTicketArtifacts().');
498
+ }
499
+ const queryParameters = {};
500
+ const headerParameters = {};
501
+ if (this.configuration && this.configuration.apiKey) {
502
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
503
+ }
504
+ const response = await this.request({
505
+ path: `/tickets/{ticketId}/artifacts`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
506
+ method: 'GET',
507
+ headers: headerParameters,
508
+ query: queryParameters,
509
+ }, initOverrides);
510
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TicketArtifactUioFromJSON));
511
+ }
512
+ /**
513
+ * Artefacts joints au ticket, les plus récents d\'abord.
514
+ * List the artifacts of a ticket
515
+ */
516
+ async listTicketArtifacts(ticketId, initOverrides) {
517
+ const response = await this.listTicketArtifactsRaw({ ticketId: ticketId }, initOverrides);
518
+ return await response.value();
519
+ }
520
+ /**
521
+ * Fil du ticket, du plus ancien au plus récent : commentaires, rapports, questions et événements.
522
+ * List the activity of a ticket
523
+ */
524
+ async listTicketEventsRaw(requestParameters, initOverrides) {
525
+ if (requestParameters['ticketId'] == null) {
526
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling listTicketEvents().');
527
+ }
528
+ const queryParameters = {};
529
+ if (requestParameters['page'] != null) {
530
+ queryParameters['page'] = requestParameters['page'];
531
+ }
532
+ if (requestParameters['limit'] != null) {
533
+ queryParameters['limit'] = requestParameters['limit'];
534
+ }
535
+ const headerParameters = {};
536
+ if (this.configuration && this.configuration.apiKey) {
537
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
538
+ }
539
+ const response = await this.request({
540
+ path: `/tickets/{ticketId}/events`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
541
+ method: 'GET',
542
+ headers: headerParameters,
543
+ query: queryParameters,
544
+ }, initOverrides);
545
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TicketEventUioFromJSON));
546
+ }
547
+ /**
548
+ * Fil du ticket, du plus ancien au plus récent : commentaires, rapports, questions et événements.
549
+ * List the activity of a ticket
550
+ */
551
+ async listTicketEvents(ticketId, page, limit, initOverrides) {
552
+ const response = await this.listTicketEventsRaw({ ticketId: ticketId, page: page, limit: limit }, initOverrides);
553
+ return await response.value();
554
+ }
555
+ /**
556
+ * Confirme le téléversement : l\'artefact passe à ready.
557
+ * Mark an artifact as uploaded
558
+ */
559
+ async markTicketArtifactUploadedRaw(requestParameters, initOverrides) {
560
+ if (requestParameters['ticketId'] == null) {
561
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling markTicketArtifactUploaded().');
562
+ }
563
+ if (requestParameters['artifactId'] == null) {
564
+ throw new runtime.RequiredError('artifactId', 'Required parameter "artifactId" was null or undefined when calling markTicketArtifactUploaded().');
565
+ }
566
+ const queryParameters = {};
567
+ const headerParameters = {};
568
+ if (this.configuration && this.configuration.apiKey) {
569
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
570
+ }
571
+ const response = await this.request({
572
+ path: `/tickets/{ticketId}/artifacts/{artifactId}/uploaded`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"artifactId"}}`, encodeURIComponent(String(requestParameters['artifactId']))),
573
+ method: 'POST',
574
+ headers: headerParameters,
575
+ query: queryParameters,
576
+ }, initOverrides);
577
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketArtifactUioFromJSON)(jsonValue));
578
+ }
579
+ /**
580
+ * Confirme le téléversement : l\'artefact passe à ready.
581
+ * Mark an artifact as uploaded
582
+ */
583
+ async markTicketArtifactUploaded(ticketId, artifactId, initOverrides) {
584
+ const response = await this.markTicketArtifactUploadedRaw({ ticketId: ticketId, artifactId: artifactId }, initOverrides);
585
+ return await response.value();
586
+ }
587
+ /**
588
+ * Écarte la proposition ; aucun ticket n\'est créé.
589
+ * Reject a ticket proposal
590
+ */
591
+ async rejectTicketProposalRaw(requestParameters, initOverrides) {
592
+ if (requestParameters['proposalId'] == null) {
593
+ throw new runtime.RequiredError('proposalId', 'Required parameter "proposalId" was null or undefined when calling rejectTicketProposal().');
594
+ }
595
+ const queryParameters = {};
596
+ const headerParameters = {};
597
+ if (this.configuration && this.configuration.apiKey) {
598
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
599
+ }
600
+ const response = await this.request({
601
+ path: `/ticket-proposals/{proposalId}/reject`.replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters['proposalId']))),
602
+ method: 'POST',
603
+ headers: headerParameters,
604
+ query: queryParameters,
605
+ }, initOverrides);
606
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConversationTicketProposalUioFromJSON)(jsonValue));
607
+ }
608
+ /**
609
+ * Écarte la proposition ; aucun ticket n\'est créé.
610
+ * Reject a ticket proposal
611
+ */
612
+ async rejectTicketProposal(proposalId, initOverrides) {
613
+ const response = await this.rejectTicketProposalRaw({ proposalId: proposalId }, initOverrides);
614
+ return await response.value();
615
+ }
616
+ /**
617
+ * Décision du relecteur : approve passe le ticket à done ; changes le renvoie à doing avec le commentaire.
618
+ * Review a ticket
619
+ */
620
+ async reviewTicketRaw(requestParameters, initOverrides) {
621
+ if (requestParameters['ticketId'] == null) {
622
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling reviewTicket().');
623
+ }
624
+ if (requestParameters['ticketReviewRequestUio'] == null) {
625
+ throw new runtime.RequiredError('ticketReviewRequestUio', 'Required parameter "ticketReviewRequestUio" was null or undefined when calling reviewTicket().');
626
+ }
627
+ const queryParameters = {};
628
+ const headerParameters = {};
629
+ headerParameters['Content-Type'] = 'application/json';
630
+ if (this.configuration && this.configuration.apiKey) {
631
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
632
+ }
633
+ const response = await this.request({
634
+ path: `/tickets/{ticketId}/review`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
635
+ method: 'POST',
636
+ headers: headerParameters,
637
+ query: queryParameters,
638
+ body: (0, index_1.TicketReviewRequestUioToJSON)(requestParameters['ticketReviewRequestUio']),
639
+ }, initOverrides);
640
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
641
+ }
642
+ /**
643
+ * Décision du relecteur : approve passe le ticket à done ; changes le renvoie à doing avec le commentaire.
644
+ * Review a ticket
645
+ */
646
+ async reviewTicket(ticketId, ticketReviewRequestUio, initOverrides) {
647
+ const response = await this.reviewTicketRaw({ ticketId: ticketId, ticketReviewRequestUio: ticketReviewRequestUio }, initOverrides);
648
+ return await response.value();
649
+ }
650
+ /**
651
+ * Remplace les assignés. Les nouveaux agents démarrent selon startMode (réglage du projet par défaut) ; en hold, un feu vert est demandé.
652
+ * Replace the assignees of a ticket
653
+ */
654
+ async setTicketAssigneesRaw(requestParameters, initOverrides) {
655
+ if (requestParameters['ticketId'] == null) {
656
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling setTicketAssignees().');
657
+ }
658
+ if (requestParameters['setTicketAssigneesRequestUio'] == null) {
659
+ throw new runtime.RequiredError('setTicketAssigneesRequestUio', 'Required parameter "setTicketAssigneesRequestUio" was null or undefined when calling setTicketAssignees().');
660
+ }
661
+ const queryParameters = {};
662
+ const headerParameters = {};
663
+ headerParameters['Content-Type'] = 'application/json';
664
+ if (this.configuration && this.configuration.apiKey) {
665
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
666
+ }
667
+ const response = await this.request({
668
+ path: `/tickets/{ticketId}/assignees`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
669
+ method: 'PUT',
670
+ headers: headerParameters,
671
+ query: queryParameters,
672
+ body: (0, index_1.SetTicketAssigneesRequestUioToJSON)(requestParameters['setTicketAssigneesRequestUio']),
673
+ }, initOverrides);
674
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
675
+ }
676
+ /**
677
+ * Remplace les assignés. Les nouveaux agents démarrent selon startMode (réglage du projet par défaut) ; en hold, un feu vert est demandé.
678
+ * Replace the assignees of a ticket
679
+ */
680
+ async setTicketAssignees(ticketId, setTicketAssigneesRequestUio, initOverrides) {
681
+ const response = await this.setTicketAssigneesRaw({ ticketId: ticketId, setTicketAssigneesRequestUio: setTicketAssigneesRequestUio }, initOverrides);
682
+ return await response.value();
683
+ }
684
+ /**
685
+ * Mise à jour partielle. Passer à done alors qu\'un relecteur est défini et n\'a pas approuvé est refusé (409).
686
+ * Update a ticket
687
+ */
688
+ async updateTicketRaw(requestParameters, initOverrides) {
689
+ if (requestParameters['ticketId'] == null) {
690
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling updateTicket().');
691
+ }
692
+ if (requestParameters['updateTicketRequestUio'] == null) {
693
+ throw new runtime.RequiredError('updateTicketRequestUio', 'Required parameter "updateTicketRequestUio" was null or undefined when calling updateTicket().');
694
+ }
695
+ const queryParameters = {};
696
+ const headerParameters = {};
697
+ headerParameters['Content-Type'] = 'application/json';
698
+ if (this.configuration && this.configuration.apiKey) {
699
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
700
+ }
701
+ const response = await this.request({
702
+ path: `/tickets/{ticketId}`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
703
+ method: 'PATCH',
704
+ headers: headerParameters,
705
+ query: queryParameters,
706
+ body: (0, index_1.UpdateTicketRequestUioToJSON)(requestParameters['updateTicketRequestUio']),
707
+ }, initOverrides);
708
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
709
+ }
710
+ /**
711
+ * Mise à jour partielle. Passer à done alors qu\'un relecteur est défini et n\'a pas approuvé est refusé (409).
712
+ * Update a ticket
713
+ */
714
+ async updateTicket(ticketId, updateTicketRequestUio, initOverrides) {
715
+ const response = await this.updateTicketRaw({ ticketId: ticketId, updateTicketRequestUio: updateTicketRequestUio }, initOverrides);
716
+ return await response.value();
717
+ }
718
+ }
719
+ exports.TicketsApi = TicketsApi;