@breign/client 1.0.179 → 1.0.181
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.
- package/dist/apis/ScheduledTasksApi.d.ts +39 -1
- package/dist/apis/ScheduledTasksApi.js +94 -0
- package/dist/apis/SupportApi.d.ts +59 -0
- package/dist/apis/SupportApi.js +154 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AutomationDayCountUio.d.ts +44 -0
- package/dist/models/AutomationDayCountUio.js +58 -0
- package/dist/models/AutomationLastRunUio.d.ts +51 -0
- package/dist/models/AutomationLastRunUio.js +63 -0
- package/dist/models/AutomationListUio.d.ts +46 -0
- package/dist/models/AutomationListUio.js +60 -0
- package/dist/models/AutomationRunDeliveryUio.d.ts +60 -0
- package/dist/models/AutomationRunDeliveryUio.js +72 -0
- package/dist/models/AutomationRunListUio.d.ts +39 -0
- package/dist/models/AutomationRunListUio.js +55 -0
- package/dist/models/AutomationRunOutcomeUio.d.ts +26 -0
- package/dist/models/AutomationRunOutcomeUio.js +52 -0
- package/dist/models/AutomationRunSourceUio.d.ts +108 -0
- package/dist/models/AutomationRunSourceUio.js +82 -0
- package/dist/models/AutomationRunUio.d.ts +126 -0
- package/dist/models/AutomationRunUio.js +114 -0
- package/dist/models/AutomationStatsUio.d.ts +62 -0
- package/dist/models/AutomationStatsUio.js +70 -0
- package/dist/models/AutomationSummaryUio.d.ts +137 -0
- package/dist/models/AutomationSummaryUio.js +126 -0
- package/dist/models/AutomationTriggerKindUio.d.ts +26 -0
- package/dist/models/AutomationTriggerKindUio.js +52 -0
- package/dist/models/SupportRequestAcceptedUio.d.ts +38 -0
- package/dist/models/SupportRequestAcceptedUio.js +54 -0
- package/dist/models/SupportRequestAttachmentUio.d.ts +44 -0
- package/dist/models/SupportRequestAttachmentUio.js +58 -0
- package/dist/models/SupportRequestCreateUio.d.ts +85 -0
- package/dist/models/SupportRequestCreateUio.js +90 -0
- package/dist/models/SupportSettingsUio.d.ts +44 -0
- package/dist/models/SupportSettingsUio.js +58 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/openapi.json +754 -36
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ScheduledTaskCreateUio, ScheduledTaskListUio, ScheduledTaskManualRunResponseUio, ScheduledTaskRunListUio, ScheduledTaskRunTriggerUio, ScheduledTaskRunUio, ScheduledTaskStatusResponseUio, ScheduledTaskStatusToggleUio, ScheduledTaskUio, WebhookEndpointUio, WebhookEndpointUpdateUio, WebhookEventListUio, WebhookTestRequestUio, WebhookTestResponseUio } from '../models/index';
|
|
13
|
+
import type { AutomationListUio, AutomationRunListUio, AutomationRunOutcomeUio, AutomationTriggerKindUio, ScheduledTaskCreateUio, ScheduledTaskListUio, ScheduledTaskManualRunResponseUio, ScheduledTaskRunListUio, ScheduledTaskRunTriggerUio, ScheduledTaskRunUio, ScheduledTaskStatusResponseUio, ScheduledTaskStatusToggleUio, ScheduledTaskUio, WebhookEndpointUio, WebhookEndpointUpdateUio, WebhookEventListUio, WebhookTestRequestUio, WebhookTestResponseUio } from '../models/index';
|
|
14
14
|
export interface CreateScheduledTaskRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
scheduledTaskCreateUio: ScheduledTaskCreateUio;
|
|
@@ -42,6 +42,24 @@ export interface ListAgentScheduledTaskRunsRequest {
|
|
|
42
42
|
from: Date;
|
|
43
43
|
to: Date;
|
|
44
44
|
}
|
|
45
|
+
export interface ListOrganizationAutomationRunsRequest {
|
|
46
|
+
organizationId: string;
|
|
47
|
+
agentId?: string;
|
|
48
|
+
taskId?: string;
|
|
49
|
+
trigger?: AutomationTriggerKindUio;
|
|
50
|
+
status?: AutomationRunOutcomeUio;
|
|
51
|
+
before?: Date;
|
|
52
|
+
limit?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface ListOrganizationAutomationsRequest {
|
|
55
|
+
organizationId: string;
|
|
56
|
+
agentId?: string;
|
|
57
|
+
trigger?: AutomationTriggerKindUio;
|
|
58
|
+
status?: string;
|
|
59
|
+
q?: string;
|
|
60
|
+
limit?: number;
|
|
61
|
+
offset?: number;
|
|
62
|
+
}
|
|
45
63
|
export interface ListScheduledTaskRunsRequest {
|
|
46
64
|
agentId: string;
|
|
47
65
|
taskId: string;
|
|
@@ -152,6 +170,26 @@ export declare class ScheduledTasksApi extends runtime.BaseAPI {
|
|
|
152
170
|
* List all runs for an agent\'s scheduled tasks within a date range
|
|
153
171
|
*/
|
|
154
172
|
listAgentScheduledTaskRuns(agentId: string, from: Date, to: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskRunListUio>;
|
|
173
|
+
/**
|
|
174
|
+
* Most recent first. Every member of the organization can read them.
|
|
175
|
+
* The runs of the automations of the organization, or of one of its agents
|
|
176
|
+
*/
|
|
177
|
+
listOrganizationAutomationRunsRaw(requestParameters: ListOrganizationAutomationRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutomationRunListUio>>;
|
|
178
|
+
/**
|
|
179
|
+
* Most recent first. Every member of the organization can read them.
|
|
180
|
+
* The runs of the automations of the organization, or of one of its agents
|
|
181
|
+
*/
|
|
182
|
+
listOrganizationAutomationRuns(organizationId: string, agentId?: string, taskId?: string, trigger?: AutomationTriggerKindUio, status?: AutomationRunOutcomeUio, before?: Date, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutomationRunListUio>;
|
|
183
|
+
/**
|
|
184
|
+
* Every member of the organization can read them, as they can read its agents.
|
|
185
|
+
* The automations of the organization, or of one of its agents
|
|
186
|
+
*/
|
|
187
|
+
listOrganizationAutomationsRaw(requestParameters: ListOrganizationAutomationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutomationListUio>>;
|
|
188
|
+
/**
|
|
189
|
+
* Every member of the organization can read them, as they can read its agents.
|
|
190
|
+
* The automations of the organization, or of one of its agents
|
|
191
|
+
*/
|
|
192
|
+
listOrganizationAutomations(organizationId: string, agentId?: string, trigger?: AutomationTriggerKindUio, status?: string, q?: string, limit?: number, offset?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutomationListUio>;
|
|
155
193
|
/**
|
|
156
194
|
* List runs for a scheduled task
|
|
157
195
|
*/
|
|
@@ -279,6 +279,100 @@ class ScheduledTasksApi extends runtime.BaseAPI {
|
|
|
279
279
|
const response = await this.listAgentScheduledTaskRunsRaw({ agentId: agentId, from: from, to: to }, initOverrides);
|
|
280
280
|
return await response.value();
|
|
281
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* Most recent first. Every member of the organization can read them.
|
|
284
|
+
* The runs of the automations of the organization, or of one of its agents
|
|
285
|
+
*/
|
|
286
|
+
async listOrganizationAutomationRunsRaw(requestParameters, initOverrides) {
|
|
287
|
+
if (requestParameters['organizationId'] == null) {
|
|
288
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationAutomationRuns().');
|
|
289
|
+
}
|
|
290
|
+
const queryParameters = {};
|
|
291
|
+
if (requestParameters['agentId'] != null) {
|
|
292
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
293
|
+
}
|
|
294
|
+
if (requestParameters['taskId'] != null) {
|
|
295
|
+
queryParameters['taskId'] = requestParameters['taskId'];
|
|
296
|
+
}
|
|
297
|
+
if (requestParameters['trigger'] != null) {
|
|
298
|
+
queryParameters['trigger'] = requestParameters['trigger'];
|
|
299
|
+
}
|
|
300
|
+
if (requestParameters['status'] != null) {
|
|
301
|
+
queryParameters['status'] = requestParameters['status'];
|
|
302
|
+
}
|
|
303
|
+
if (requestParameters['before'] != null) {
|
|
304
|
+
queryParameters['before'] = requestParameters['before'].toISOString();
|
|
305
|
+
}
|
|
306
|
+
if (requestParameters['limit'] != null) {
|
|
307
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
308
|
+
}
|
|
309
|
+
const headerParameters = {};
|
|
310
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
311
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
312
|
+
}
|
|
313
|
+
const response = await this.request({
|
|
314
|
+
path: `/organizations/{organizationId}/automation-runs`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
315
|
+
method: 'GET',
|
|
316
|
+
headers: headerParameters,
|
|
317
|
+
query: queryParameters,
|
|
318
|
+
}, initOverrides);
|
|
319
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AutomationRunListUioFromJSON)(jsonValue));
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Most recent first. Every member of the organization can read them.
|
|
323
|
+
* The runs of the automations of the organization, or of one of its agents
|
|
324
|
+
*/
|
|
325
|
+
async listOrganizationAutomationRuns(organizationId, agentId, taskId, trigger, status, before, limit, initOverrides) {
|
|
326
|
+
const response = await this.listOrganizationAutomationRunsRaw({ organizationId: organizationId, agentId: agentId, taskId: taskId, trigger: trigger, status: status, before: before, limit: limit }, initOverrides);
|
|
327
|
+
return await response.value();
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Every member of the organization can read them, as they can read its agents.
|
|
331
|
+
* The automations of the organization, or of one of its agents
|
|
332
|
+
*/
|
|
333
|
+
async listOrganizationAutomationsRaw(requestParameters, initOverrides) {
|
|
334
|
+
if (requestParameters['organizationId'] == null) {
|
|
335
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationAutomations().');
|
|
336
|
+
}
|
|
337
|
+
const queryParameters = {};
|
|
338
|
+
if (requestParameters['agentId'] != null) {
|
|
339
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
340
|
+
}
|
|
341
|
+
if (requestParameters['trigger'] != null) {
|
|
342
|
+
queryParameters['trigger'] = requestParameters['trigger'];
|
|
343
|
+
}
|
|
344
|
+
if (requestParameters['status'] != null) {
|
|
345
|
+
queryParameters['status'] = requestParameters['status'];
|
|
346
|
+
}
|
|
347
|
+
if (requestParameters['q'] != null) {
|
|
348
|
+
queryParameters['q'] = requestParameters['q'];
|
|
349
|
+
}
|
|
350
|
+
if (requestParameters['limit'] != null) {
|
|
351
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
352
|
+
}
|
|
353
|
+
if (requestParameters['offset'] != null) {
|
|
354
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
355
|
+
}
|
|
356
|
+
const headerParameters = {};
|
|
357
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
358
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
359
|
+
}
|
|
360
|
+
const response = await this.request({
|
|
361
|
+
path: `/organizations/{organizationId}/automations`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
362
|
+
method: 'GET',
|
|
363
|
+
headers: headerParameters,
|
|
364
|
+
query: queryParameters,
|
|
365
|
+
}, initOverrides);
|
|
366
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AutomationListUioFromJSON)(jsonValue));
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Every member of the organization can read them, as they can read its agents.
|
|
370
|
+
* The automations of the organization, or of one of its agents
|
|
371
|
+
*/
|
|
372
|
+
async listOrganizationAutomations(organizationId, agentId, trigger, status, q, limit, offset, initOverrides) {
|
|
373
|
+
const response = await this.listOrganizationAutomationsRaw({ organizationId: organizationId, agentId: agentId, trigger: trigger, status: status, q: q, limit: limit, offset: offset }, initOverrides);
|
|
374
|
+
return await response.value();
|
|
375
|
+
}
|
|
282
376
|
/**
|
|
283
377
|
* List runs for a scheduled task
|
|
284
378
|
*/
|
|
@@ -0,0 +1,59 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { SupportRequestAcceptedUio, SupportRequestCreateUio, SupportSettingsUio } from '../models/index';
|
|
14
|
+
export interface CreateOrganizationSupportRequestRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
supportRequestCreateUio: SupportRequestCreateUio;
|
|
17
|
+
}
|
|
18
|
+
export interface GetOrganizationSupportSettingsRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateOrganizationSupportSettingsRequest {
|
|
22
|
+
organizationId: string;
|
|
23
|
+
supportSettingsUio: SupportSettingsUio;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class SupportApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
31
|
+
* Send a support request from the support page form
|
|
32
|
+
*/
|
|
33
|
+
createOrganizationSupportRequestRaw(requestParameters: CreateOrganizationSupportRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportRequestAcceptedUio>>;
|
|
34
|
+
/**
|
|
35
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
36
|
+
* Send a support request from the support page form
|
|
37
|
+
*/
|
|
38
|
+
createOrganizationSupportRequest(organizationId: string, supportRequestCreateUio: SupportRequestCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportRequestAcceptedUio>;
|
|
39
|
+
/**
|
|
40
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
41
|
+
* Get the support page settings of an organization
|
|
42
|
+
*/
|
|
43
|
+
getOrganizationSupportSettingsRaw(requestParameters: GetOrganizationSupportSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportSettingsUio>>;
|
|
44
|
+
/**
|
|
45
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
46
|
+
* Get the support page settings of an organization
|
|
47
|
+
*/
|
|
48
|
+
getOrganizationSupportSettings(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportSettingsUio>;
|
|
49
|
+
/**
|
|
50
|
+
* Réservé aux superadmins.
|
|
51
|
+
* Update the support page settings of an organization
|
|
52
|
+
*/
|
|
53
|
+
updateOrganizationSupportSettingsRaw(requestParameters: UpdateOrganizationSupportSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportSettingsUio>>;
|
|
54
|
+
/**
|
|
55
|
+
* Réservé aux superadmins.
|
|
56
|
+
* Update the support page settings of an organization
|
|
57
|
+
*/
|
|
58
|
+
updateOrganizationSupportSettings(organizationId: string, supportSettingsUio: SupportSettingsUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportSettingsUio>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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.SupportApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class SupportApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
58
|
+
* Send a support request from the support page form
|
|
59
|
+
*/
|
|
60
|
+
async createOrganizationSupportRequestRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createOrganizationSupportRequest().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['supportRequestCreateUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('supportRequestCreateUio', 'Required parameter "supportRequestCreateUio" was null or undefined when calling createOrganizationSupportRequest().');
|
|
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: `/organizations/{organizationId}/support-requests`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.SupportRequestCreateUioToJSON)(requestParameters['supportRequestCreateUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportRequestAcceptedUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
84
|
+
* Send a support request from the support page form
|
|
85
|
+
*/
|
|
86
|
+
async createOrganizationSupportRequest(organizationId, supportRequestCreateUio, initOverrides) {
|
|
87
|
+
const response = await this.createOrganizationSupportRequestRaw({ organizationId: organizationId, supportRequestCreateUio: supportRequestCreateUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
92
|
+
* Get the support page settings of an organization
|
|
93
|
+
*/
|
|
94
|
+
async getOrganizationSupportSettingsRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['organizationId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationSupportSettings().');
|
|
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: `/organizations/{organizationId}/support-settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportSettingsUioFromJSON)(jsonValue));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
113
|
+
* Get the support page settings of an organization
|
|
114
|
+
*/
|
|
115
|
+
async getOrganizationSupportSettings(organizationId, initOverrides) {
|
|
116
|
+
const response = await this.getOrganizationSupportSettingsRaw({ organizationId: organizationId }, initOverrides);
|
|
117
|
+
return await response.value();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Réservé aux superadmins.
|
|
121
|
+
* Update the support page settings of an organization
|
|
122
|
+
*/
|
|
123
|
+
async updateOrganizationSupportSettingsRaw(requestParameters, initOverrides) {
|
|
124
|
+
if (requestParameters['organizationId'] == null) {
|
|
125
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateOrganizationSupportSettings().');
|
|
126
|
+
}
|
|
127
|
+
if (requestParameters['supportSettingsUio'] == null) {
|
|
128
|
+
throw new runtime.RequiredError('supportSettingsUio', 'Required parameter "supportSettingsUio" was null or undefined when calling updateOrganizationSupportSettings().');
|
|
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: `/organizations/{organizationId}/support-settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
138
|
+
method: 'PUT',
|
|
139
|
+
headers: headerParameters,
|
|
140
|
+
query: queryParameters,
|
|
141
|
+
body: (0, index_1.SupportSettingsUioToJSON)(requestParameters['supportSettingsUio']),
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportSettingsUioFromJSON)(jsonValue));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Réservé aux superadmins.
|
|
147
|
+
* Update the support page settings of an organization
|
|
148
|
+
*/
|
|
149
|
+
async updateOrganizationSupportSettings(organizationId, supportSettingsUio, initOverrides) {
|
|
150
|
+
const response = await this.updateOrganizationSupportSettingsRaw({ organizationId: organizationId, supportSettingsUio: supportSettingsUio }, initOverrides);
|
|
151
|
+
return await response.value();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.SupportApi = SupportApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './PromptsApi';
|
|
|
27
27
|
export * from './RemotesApi';
|
|
28
28
|
export * from './ScheduledTasksApi';
|
|
29
29
|
export * from './SkillsApi';
|
|
30
|
+
export * from './SupportApi';
|
|
30
31
|
export * from './TicketsApi';
|
|
31
32
|
export * from './ToolsApi';
|
|
32
33
|
export * from './UsersApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./PromptsApi"), exports);
|
|
|
45
45
|
__exportStar(require("./RemotesApi"), exports);
|
|
46
46
|
__exportStar(require("./ScheduledTasksApi"), exports);
|
|
47
47
|
__exportStar(require("./SkillsApi"), exports);
|
|
48
|
+
__exportStar(require("./SupportApi"), exports);
|
|
48
49
|
__exportStar(require("./TicketsApi"), exports);
|
|
49
50
|
__exportStar(require("./ToolsApi"), exports);
|
|
50
51
|
__exportStar(require("./UsersApi"), exports);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AutomationDayCountUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AutomationDayCountUio {
|
|
18
|
+
/**
|
|
19
|
+
* UTC day, YYYY-MM-DD.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AutomationDayCountUio
|
|
22
|
+
*/
|
|
23
|
+
date: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AutomationDayCountUio
|
|
28
|
+
*/
|
|
29
|
+
success: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AutomationDayCountUio
|
|
34
|
+
*/
|
|
35
|
+
error: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AutomationDayCountUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAutomationDayCountUio(value: object): value is AutomationDayCountUio;
|
|
41
|
+
export declare function AutomationDayCountUioFromJSON(json: any): AutomationDayCountUio;
|
|
42
|
+
export declare function AutomationDayCountUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDayCountUio;
|
|
43
|
+
export declare function AutomationDayCountUioToJSON(json: any): AutomationDayCountUio;
|
|
44
|
+
export declare function AutomationDayCountUioToJSONTyped(value?: AutomationDayCountUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationDayCountUio = instanceOfAutomationDayCountUio;
|
|
17
|
+
exports.AutomationDayCountUioFromJSON = AutomationDayCountUioFromJSON;
|
|
18
|
+
exports.AutomationDayCountUioFromJSONTyped = AutomationDayCountUioFromJSONTyped;
|
|
19
|
+
exports.AutomationDayCountUioToJSON = AutomationDayCountUioToJSON;
|
|
20
|
+
exports.AutomationDayCountUioToJSONTyped = AutomationDayCountUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AutomationDayCountUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAutomationDayCountUio(value) {
|
|
25
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AutomationDayCountUioFromJSON(json) {
|
|
34
|
+
return AutomationDayCountUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AutomationDayCountUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'date': json['date'],
|
|
42
|
+
'success': json['success'],
|
|
43
|
+
'error': json['error'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AutomationDayCountUioToJSON(json) {
|
|
47
|
+
return AutomationDayCountUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AutomationDayCountUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'date': value['date'],
|
|
55
|
+
'success': value['success'],
|
|
56
|
+
'error': value['error'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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 { AutomationRunOutcomeUio } from './AutomationRunOutcomeUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AutomationLastRunUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AutomationLastRunUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AutomationLastRunUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AutomationRunOutcomeUio}
|
|
28
|
+
* @memberof AutomationLastRunUio
|
|
29
|
+
*/
|
|
30
|
+
status: AutomationRunOutcomeUio;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof AutomationLastRunUio
|
|
35
|
+
*/
|
|
36
|
+
triggeredAt: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof AutomationLastRunUio
|
|
41
|
+
*/
|
|
42
|
+
finishedAt: Date | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AutomationLastRunUio interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAutomationLastRunUio(value: object): value is AutomationLastRunUio;
|
|
48
|
+
export declare function AutomationLastRunUioFromJSON(json: any): AutomationLastRunUio;
|
|
49
|
+
export declare function AutomationLastRunUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationLastRunUio;
|
|
50
|
+
export declare function AutomationLastRunUioToJSON(json: any): AutomationLastRunUio;
|
|
51
|
+
export declare function AutomationLastRunUioToJSONTyped(value?: AutomationLastRunUio | 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.instanceOfAutomationLastRunUio = instanceOfAutomationLastRunUio;
|
|
17
|
+
exports.AutomationLastRunUioFromJSON = AutomationLastRunUioFromJSON;
|
|
18
|
+
exports.AutomationLastRunUioFromJSONTyped = AutomationLastRunUioFromJSONTyped;
|
|
19
|
+
exports.AutomationLastRunUioToJSON = AutomationLastRunUioToJSON;
|
|
20
|
+
exports.AutomationLastRunUioToJSONTyped = AutomationLastRunUioToJSONTyped;
|
|
21
|
+
const AutomationRunOutcomeUio_1 = require("./AutomationRunOutcomeUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AutomationLastRunUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAutomationLastRunUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('triggeredAt' in value) || value['triggeredAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AutomationLastRunUioFromJSON(json) {
|
|
37
|
+
return AutomationLastRunUioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AutomationLastRunUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'status': (0, AutomationRunOutcomeUio_1.AutomationRunOutcomeUioFromJSON)(json['status']),
|
|
46
|
+
'triggeredAt': (new Date(json['triggeredAt'])),
|
|
47
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AutomationLastRunUioToJSON(json) {
|
|
51
|
+
return AutomationLastRunUioToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AutomationLastRunUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'status': (0, AutomationRunOutcomeUio_1.AutomationRunOutcomeUioToJSON)(value['status']),
|
|
60
|
+
'triggeredAt': ((value['triggeredAt']).toISOString()),
|
|
61
|
+
'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { AutomationStatsUio } from './AutomationStatsUio';
|
|
13
|
+
import type { AutomationSummaryUio } from './AutomationSummaryUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AutomationListUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AutomationListUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<AutomationSummaryUio>}
|
|
23
|
+
* @memberof AutomationListUio
|
|
24
|
+
*/
|
|
25
|
+
items: Array<AutomationSummaryUio>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof AutomationListUio
|
|
30
|
+
*/
|
|
31
|
+
total: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {AutomationStatsUio}
|
|
35
|
+
* @memberof AutomationListUio
|
|
36
|
+
*/
|
|
37
|
+
stats: AutomationStatsUio;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AutomationListUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAutomationListUio(value: object): value is AutomationListUio;
|
|
43
|
+
export declare function AutomationListUioFromJSON(json: any): AutomationListUio;
|
|
44
|
+
export declare function AutomationListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationListUio;
|
|
45
|
+
export declare function AutomationListUioToJSON(json: any): AutomationListUio;
|
|
46
|
+
export declare function AutomationListUioToJSONTyped(value?: AutomationListUio | null, ignoreDiscriminator?: boolean): any;
|