@breign/client 1.0.165 → 1.0.166
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/InboxApi.d.ts +61 -0
- package/dist/apis/InboxApi.js +156 -0
- package/dist/apis/ProjectsApi.d.ts +113 -0
- package/dist/apis/ProjectsApi.js +278 -0
- package/dist/apis/TicketsApi.d.ts +288 -0
- package/dist/apis/TicketsApi.js +690 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/models/AcceptTicketProposalRequestUio.d.ts +72 -0
- package/dist/models/AcceptTicketProposalRequestUio.js +64 -0
- package/dist/models/ActorRefUio.d.ts +39 -0
- package/dist/models/ActorRefUio.js +55 -0
- package/dist/models/ActorTypeUio.d.ts +26 -0
- package/dist/models/ActorTypeUio.js +52 -0
- package/dist/models/AgentTicketActivityUio.d.ts +69 -0
- package/dist/models/AgentTicketActivityUio.js +75 -0
- package/dist/models/AgentTicketCreationUio.d.ts +25 -0
- package/dist/models/AgentTicketCreationUio.js +51 -0
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ConversationTicketProposalUio.d.ts +71 -0
- package/dist/models/ConversationTicketProposalUio.js +77 -0
- package/dist/models/CreateProjectRequestUio.d.ts +70 -0
- package/dist/models/CreateProjectRequestUio.js +66 -0
- package/dist/models/CreateTicketArtifactRequestUio.d.ts +44 -0
- package/dist/models/CreateTicketArtifactRequestUio.js +56 -0
- package/dist/models/CreateTicketArtifactResponseUio.d.ts +40 -0
- package/dist/models/CreateTicketArtifactResponseUio.js +56 -0
- package/dist/models/CreateTicketEventRequestUio.d.ts +38 -0
- package/dist/models/CreateTicketEventRequestUio.js +52 -0
- package/dist/models/CreateTicketRequestUio.d.ts +85 -0
- package/dist/models/CreateTicketRequestUio.js +71 -0
- package/dist/models/InboxCountUio.d.ts +38 -0
- package/dist/models/InboxCountUio.js +54 -0
- package/dist/models/InboxItemKindUio.d.ts +28 -0
- package/dist/models/InboxItemKindUio.js +54 -0
- package/dist/models/InboxItemProjectUio.d.ts +44 -0
- package/dist/models/InboxItemProjectUio.js +58 -0
- package/dist/models/InboxItemStatusUio.d.ts +25 -0
- package/dist/models/InboxItemStatusUio.js +51 -0
- package/dist/models/InboxItemTicketUio.d.ts +44 -0
- package/dist/models/InboxItemTicketUio.js +58 -0
- package/dist/models/InboxItemUio.d.ts +107 -0
- package/dist/models/InboxItemUio.js +99 -0
- package/dist/models/InboxTabUio.d.ts +26 -0
- package/dist/models/InboxTabUio.js +52 -0
- package/dist/models/MemberRefUio.d.ts +39 -0
- package/dist/models/MemberRefUio.js +55 -0
- package/dist/models/MemberTypeUio.d.ts +25 -0
- package/dist/models/MemberTypeUio.js +51 -0
- package/dist/models/ProjectActivityUio.d.ts +51 -0
- package/dist/models/ProjectActivityUio.js +63 -0
- package/dist/models/ProjectAttentionUio.d.ts +50 -0
- package/dist/models/ProjectAttentionUio.js +62 -0
- package/dist/models/ProjectCountsUio.d.ts +68 -0
- package/dist/models/ProjectCountsUio.js +74 -0
- package/dist/models/ProjectMemberRoleUio.d.ts +25 -0
- package/dist/models/ProjectMemberRoleUio.js +51 -0
- package/dist/models/ProjectMemberUio.d.ts +53 -0
- package/dist/models/ProjectMemberUio.js +63 -0
- package/dist/models/ProjectOverviewUio.d.ts +68 -0
- package/dist/models/ProjectOverviewUio.js +76 -0
- package/dist/models/ProjectSettingsUio.d.ts +40 -0
- package/dist/models/ProjectSettingsUio.js +56 -0
- package/dist/models/ProjectSummaryUio.d.ts +128 -0
- package/dist/models/ProjectSummaryUio.js +116 -0
- package/dist/models/ProjectUio.d.ts +100 -0
- package/dist/models/ProjectUio.js +96 -0
- package/dist/models/SetProjectMembersRequestUio.d.ts +33 -0
- package/dist/models/SetProjectMembersRequestUio.js +51 -0
- package/dist/models/SetTicketAssigneesRequestUio.d.ts +40 -0
- package/dist/models/SetTicketAssigneesRequestUio.js +54 -0
- package/dist/models/TicketArtifactDownloadUrlUio.d.ts +32 -0
- package/dist/models/TicketArtifactDownloadUrlUio.js +50 -0
- package/dist/models/TicketArtifactSourceUio.d.ts +25 -0
- package/dist/models/TicketArtifactSourceUio.js +51 -0
- package/dist/models/TicketArtifactStatusUio.d.ts +25 -0
- package/dist/models/TicketArtifactStatusUio.js +51 -0
- package/dist/models/TicketArtifactUio.d.ts +83 -0
- package/dist/models/TicketArtifactUio.js +85 -0
- package/dist/models/TicketAssigneeInputUio.d.ts +39 -0
- package/dist/models/TicketAssigneeInputUio.js +55 -0
- package/dist/models/TicketAssigneeStateUio.d.ts +29 -0
- package/dist/models/TicketAssigneeStateUio.js +55 -0
- package/dist/models/TicketAssigneeUio.d.ts +58 -0
- package/dist/models/TicketAssigneeUio.js +68 -0
- package/dist/models/TicketBoardColumnUio.d.ts +46 -0
- package/dist/models/TicketBoardColumnUio.js +60 -0
- package/dist/models/TicketBoardUio.d.ts +33 -0
- package/dist/models/TicketBoardUio.js +51 -0
- package/dist/models/TicketEventKindUio.d.ts +27 -0
- package/dist/models/TicketEventKindUio.js +53 -0
- package/dist/models/TicketEventUio.d.ts +78 -0
- package/dist/models/TicketEventUio.js +80 -0
- package/dist/models/TicketPriorityUio.d.ts +26 -0
- package/dist/models/TicketPriorityUio.js +52 -0
- package/dist/models/TicketProposalPayloadUio.d.ts +72 -0
- package/dist/models/TicketProposalPayloadUio.js +78 -0
- package/dist/models/TicketProposalStatusUio.d.ts +27 -0
- package/dist/models/TicketProposalStatusUio.js +53 -0
- package/dist/models/TicketReviewDecisionUio.d.ts +25 -0
- package/dist/models/TicketReviewDecisionUio.js +51 -0
- package/dist/models/TicketReviewRequestUio.d.ts +39 -0
- package/dist/models/TicketReviewRequestUio.js +53 -0
- package/dist/models/TicketStartModeUio.d.ts +25 -0
- package/dist/models/TicketStartModeUio.js +51 -0
- package/dist/models/TicketStatusUio.d.ts +28 -0
- package/dist/models/TicketStatusUio.js +54 -0
- package/dist/models/TicketUio.d.ts +163 -0
- package/dist/models/TicketUio.js +139 -0
- package/dist/models/UpdateProjectRequestUio.d.ts +63 -0
- package/dist/models/UpdateProjectRequestUio.js +59 -0
- package/dist/models/UpdateTicketRequestUio.d.ts +77 -0
- package/dist/models/UpdateTicketRequestUio.js +65 -0
- package/dist/models/index.d.ts +52 -0
- package/dist/models/index.js +52 -0
- package/dist/openapi.json +5020 -2364
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
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 { InboxCountUio, InboxItemUio, InboxTabUio } from '../models/index';
|
|
14
|
+
export interface GetInboxCountRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ListInboxRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
tab?: InboxTabUio;
|
|
20
|
+
projectId?: string;
|
|
21
|
+
page?: number;
|
|
22
|
+
limit?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface ResolveInboxItemRequest {
|
|
25
|
+
itemId: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class InboxApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Compteurs pour le badge de navigation.
|
|
33
|
+
* Count the pending inbox items
|
|
34
|
+
*/
|
|
35
|
+
getInboxCountRaw(requestParameters: GetInboxCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InboxCountUio>>;
|
|
36
|
+
/**
|
|
37
|
+
* Compteurs pour le badge de navigation.
|
|
38
|
+
* Count the pending inbox items
|
|
39
|
+
*/
|
|
40
|
+
getInboxCount(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InboxCountUio>;
|
|
41
|
+
/**
|
|
42
|
+
* todo : actions en attente (questions, propositions, relectures, feux verts), les plus anciennes d\'abord ; mentions : mentions non traitées ; done : éléments traités, les plus récents d\'abord.
|
|
43
|
+
* List the inbox of the current user
|
|
44
|
+
*/
|
|
45
|
+
listInboxRaw(requestParameters: ListInboxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<InboxItemUio>>>;
|
|
46
|
+
/**
|
|
47
|
+
* todo : actions en attente (questions, propositions, relectures, feux verts), les plus anciennes d\'abord ; mentions : mentions non traitées ; done : éléments traités, les plus récents d\'abord.
|
|
48
|
+
* List the inbox of the current user
|
|
49
|
+
*/
|
|
50
|
+
listInbox(organizationId: string, tab?: InboxTabUio, projectId?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<InboxItemUio>>;
|
|
51
|
+
/**
|
|
52
|
+
* Marque une mention comme traitée. Les autres éléments se résolvent par leur action (répondre, accepter, relire, donner le feu vert).
|
|
53
|
+
* Mark an inbox item as handled
|
|
54
|
+
*/
|
|
55
|
+
resolveInboxItemRaw(requestParameters: ResolveInboxItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InboxItemUio>>;
|
|
56
|
+
/**
|
|
57
|
+
* Marque une mention comme traitée. Les autres éléments se résolvent par leur action (répondre, accepter, relire, donner le feu vert).
|
|
58
|
+
* Mark an inbox item as handled
|
|
59
|
+
*/
|
|
60
|
+
resolveInboxItem(itemId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InboxItemUio>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
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.InboxApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class InboxApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Compteurs pour le badge de navigation.
|
|
58
|
+
* Count the pending inbox items
|
|
59
|
+
*/
|
|
60
|
+
async getInboxCountRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getInboxCount().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
67
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
68
|
+
}
|
|
69
|
+
const response = await this.request({
|
|
70
|
+
path: `/organizations/{organizationId}/inbox/count`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
71
|
+
method: 'GET',
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters,
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InboxCountUioFromJSON)(jsonValue));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Compteurs pour le badge de navigation.
|
|
79
|
+
* Count the pending inbox items
|
|
80
|
+
*/
|
|
81
|
+
async getInboxCount(organizationId, initOverrides) {
|
|
82
|
+
const response = await this.getInboxCountRaw({ organizationId: organizationId }, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* todo : actions en attente (questions, propositions, relectures, feux verts), les plus anciennes d\'abord ; mentions : mentions non traitées ; done : éléments traités, les plus récents d\'abord.
|
|
87
|
+
* List the inbox of the current user
|
|
88
|
+
*/
|
|
89
|
+
async listInboxRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['organizationId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listInbox().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
if (requestParameters['tab'] != null) {
|
|
95
|
+
queryParameters['tab'] = requestParameters['tab'];
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['projectId'] != null) {
|
|
98
|
+
queryParameters['projectId'] = requestParameters['projectId'];
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters['page'] != null) {
|
|
101
|
+
queryParameters['page'] = requestParameters['page'];
|
|
102
|
+
}
|
|
103
|
+
if (requestParameters['limit'] != null) {
|
|
104
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
105
|
+
}
|
|
106
|
+
const headerParameters = {};
|
|
107
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
108
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
109
|
+
}
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: `/organizations/{organizationId}/inbox`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides);
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.InboxItemUioFromJSON));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* todo : actions en attente (questions, propositions, relectures, feux verts), les plus anciennes d\'abord ; mentions : mentions non traitées ; done : éléments traités, les plus récents d\'abord.
|
|
120
|
+
* List the inbox of the current user
|
|
121
|
+
*/
|
|
122
|
+
async listInbox(organizationId, tab, projectId, page, limit, initOverrides) {
|
|
123
|
+
const response = await this.listInboxRaw({ organizationId: organizationId, tab: tab, projectId: projectId, page: page, limit: limit }, initOverrides);
|
|
124
|
+
return await response.value();
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Marque une mention comme traitée. Les autres éléments se résolvent par leur action (répondre, accepter, relire, donner le feu vert).
|
|
128
|
+
* Mark an inbox item as handled
|
|
129
|
+
*/
|
|
130
|
+
async resolveInboxItemRaw(requestParameters, initOverrides) {
|
|
131
|
+
if (requestParameters['itemId'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('itemId', 'Required parameter "itemId" was null or undefined when calling resolveInboxItem().');
|
|
133
|
+
}
|
|
134
|
+
const queryParameters = {};
|
|
135
|
+
const headerParameters = {};
|
|
136
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
137
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
138
|
+
}
|
|
139
|
+
const response = await this.request({
|
|
140
|
+
path: `/inbox-items/{itemId}/resolve`.replace(`{${"itemId"}}`, encodeURIComponent(String(requestParameters['itemId']))),
|
|
141
|
+
method: 'POST',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
}, initOverrides);
|
|
145
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InboxItemUioFromJSON)(jsonValue));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Marque une mention comme traitée. Les autres éléments se résolvent par leur action (répondre, accepter, relire, donner le feu vert).
|
|
149
|
+
* Mark an inbox item as handled
|
|
150
|
+
*/
|
|
151
|
+
async resolveInboxItem(itemId, initOverrides) {
|
|
152
|
+
const response = await this.resolveInboxItemRaw({ itemId: itemId }, initOverrides);
|
|
153
|
+
return await response.value();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.InboxApi = InboxApi;
|
|
@@ -0,0 +1,113 @@
|
|
|
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 { CreateProjectRequestUio, ProjectMemberUio, ProjectOverviewUio, ProjectSummaryUio, ProjectUio, SetProjectMembersRequestUio, UpdateProjectRequestUio } from '../models/index';
|
|
14
|
+
export interface CreateProjectRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
createProjectRequestUio: CreateProjectRequestUio;
|
|
17
|
+
}
|
|
18
|
+
export interface GetProjectRequest {
|
|
19
|
+
projectId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetProjectOverviewRequest {
|
|
22
|
+
projectId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ListProjectMembersRequest {
|
|
25
|
+
projectId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ListProjectsRequest {
|
|
28
|
+
organizationId: string;
|
|
29
|
+
includeArchived?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface SetProjectMembersRequest {
|
|
32
|
+
projectId: string;
|
|
33
|
+
setProjectMembersRequestUio: SetProjectMembersRequestUio;
|
|
34
|
+
}
|
|
35
|
+
export interface UpdateProjectRequest {
|
|
36
|
+
projectId: string;
|
|
37
|
+
updateProjectRequestUio: UpdateProjectRequestUio;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export declare class ProjectsApi extends runtime.BaseAPI {
|
|
43
|
+
/**
|
|
44
|
+
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation.
|
|
45
|
+
* Create a project
|
|
46
|
+
*/
|
|
47
|
+
createProjectRaw(requestParameters: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUio>>;
|
|
48
|
+
/**
|
|
49
|
+
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation.
|
|
50
|
+
* Create a project
|
|
51
|
+
*/
|
|
52
|
+
createProject(organizationId: string, createProjectRequestUio: CreateProjectRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUio>;
|
|
53
|
+
/**
|
|
54
|
+
* Projet et ses réglages.
|
|
55
|
+
* Get a project
|
|
56
|
+
*/
|
|
57
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUio>>;
|
|
58
|
+
/**
|
|
59
|
+
* Projet et ses réglages.
|
|
60
|
+
* Get a project
|
|
61
|
+
*/
|
|
62
|
+
getProject(projectId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUio>;
|
|
63
|
+
/**
|
|
64
|
+
* Accueil du projet : compteurs par colonne (terminés à part), actions de l\'utilisateur courant, activité des agents et derniers événements.
|
|
65
|
+
* Get the home of a project
|
|
66
|
+
*/
|
|
67
|
+
getProjectOverviewRaw(requestParameters: GetProjectOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectOverviewUio>>;
|
|
68
|
+
/**
|
|
69
|
+
* Accueil du projet : compteurs par colonne (terminés à part), actions de l\'utilisateur courant, activité des agents et derniers événements.
|
|
70
|
+
* Get the home of a project
|
|
71
|
+
*/
|
|
72
|
+
getProjectOverview(projectId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectOverviewUio>;
|
|
73
|
+
/**
|
|
74
|
+
* Humains et agents membres du projet.
|
|
75
|
+
* List the members of a project
|
|
76
|
+
*/
|
|
77
|
+
listProjectMembersRaw(requestParameters: ListProjectMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectMemberUio>>>;
|
|
78
|
+
/**
|
|
79
|
+
* Humains et agents membres du projet.
|
|
80
|
+
* List the members of a project
|
|
81
|
+
*/
|
|
82
|
+
listProjectMembers(projectId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectMemberUio>>;
|
|
83
|
+
/**
|
|
84
|
+
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent.
|
|
85
|
+
* List the projects of an organization
|
|
86
|
+
*/
|
|
87
|
+
listProjectsRaw(requestParameters: ListProjectsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectSummaryUio>>>;
|
|
88
|
+
/**
|
|
89
|
+
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent.
|
|
90
|
+
* List the projects of an organization
|
|
91
|
+
*/
|
|
92
|
+
listProjects(organizationId: string, includeArchived?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectSummaryUio>>;
|
|
93
|
+
/**
|
|
94
|
+
* Remplace la liste des membres ; il doit rester au moins un owner humain.
|
|
95
|
+
* Replace the members of a project
|
|
96
|
+
*/
|
|
97
|
+
setProjectMembersRaw(requestParameters: SetProjectMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectMemberUio>>>;
|
|
98
|
+
/**
|
|
99
|
+
* Remplace la liste des membres ; il doit rester au moins un owner humain.
|
|
100
|
+
* Replace the members of a project
|
|
101
|
+
*/
|
|
102
|
+
setProjectMembers(projectId: string, setProjectMembersRequestUio: SetProjectMembersRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectMemberUio>>;
|
|
103
|
+
/**
|
|
104
|
+
* Mise à jour partielle ; archived à vrai archive le projet.
|
|
105
|
+
* Update a project
|
|
106
|
+
*/
|
|
107
|
+
updateProjectRaw(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUio>>;
|
|
108
|
+
/**
|
|
109
|
+
* Mise à jour partielle ; archived à vrai archive le projet.
|
|
110
|
+
* Update a project
|
|
111
|
+
*/
|
|
112
|
+
updateProject(projectId: string, updateProjectRequestUio: UpdateProjectRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUio>;
|
|
113
|
+
}
|
|
@@ -0,0 +1,278 @@
|
|
|
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.ProjectsApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class ProjectsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation.
|
|
58
|
+
* Create a project
|
|
59
|
+
*/
|
|
60
|
+
async createProjectRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createProject().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['createProjectRequestUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('createProjectRequestUio', 'Required parameter "createProjectRequestUio" was null or undefined when calling createProject().');
|
|
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}/projects`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.CreateProjectRequestUioToJSON)(requestParameters['createProjectRequestUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation.
|
|
84
|
+
* Create a project
|
|
85
|
+
*/
|
|
86
|
+
async createProject(organizationId, createProjectRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.createProjectRaw({ organizationId: organizationId, createProjectRequestUio: createProjectRequestUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Projet et ses réglages.
|
|
92
|
+
* Get a project
|
|
93
|
+
*/
|
|
94
|
+
async getProjectRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['projectId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProject().');
|
|
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: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectUioFromJSON)(jsonValue));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Projet et ses réglages.
|
|
113
|
+
* Get a project
|
|
114
|
+
*/
|
|
115
|
+
async getProject(projectId, initOverrides) {
|
|
116
|
+
const response = await this.getProjectRaw({ projectId: projectId }, initOverrides);
|
|
117
|
+
return await response.value();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Accueil du projet : compteurs par colonne (terminés à part), actions de l\'utilisateur courant, activité des agents et derniers événements.
|
|
121
|
+
* Get the home of a project
|
|
122
|
+
*/
|
|
123
|
+
async getProjectOverviewRaw(requestParameters, initOverrides) {
|
|
124
|
+
if (requestParameters['projectId'] == null) {
|
|
125
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProjectOverview().');
|
|
126
|
+
}
|
|
127
|
+
const queryParameters = {};
|
|
128
|
+
const headerParameters = {};
|
|
129
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
130
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
131
|
+
}
|
|
132
|
+
const response = await this.request({
|
|
133
|
+
path: `/projects/{projectId}/overview`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
134
|
+
method: 'GET',
|
|
135
|
+
headers: headerParameters,
|
|
136
|
+
query: queryParameters,
|
|
137
|
+
}, initOverrides);
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectOverviewUioFromJSON)(jsonValue));
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Accueil du projet : compteurs par colonne (terminés à part), actions de l\'utilisateur courant, activité des agents et derniers événements.
|
|
142
|
+
* Get the home of a project
|
|
143
|
+
*/
|
|
144
|
+
async getProjectOverview(projectId, initOverrides) {
|
|
145
|
+
const response = await this.getProjectOverviewRaw({ projectId: projectId }, initOverrides);
|
|
146
|
+
return await response.value();
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Humains et agents membres du projet.
|
|
150
|
+
* List the members of a project
|
|
151
|
+
*/
|
|
152
|
+
async listProjectMembersRaw(requestParameters, initOverrides) {
|
|
153
|
+
if (requestParameters['projectId'] == null) {
|
|
154
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listProjectMembers().');
|
|
155
|
+
}
|
|
156
|
+
const queryParameters = {};
|
|
157
|
+
const headerParameters = {};
|
|
158
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
159
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
160
|
+
}
|
|
161
|
+
const response = await this.request({
|
|
162
|
+
path: `/projects/{projectId}/members`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
163
|
+
method: 'GET',
|
|
164
|
+
headers: headerParameters,
|
|
165
|
+
query: queryParameters,
|
|
166
|
+
}, initOverrides);
|
|
167
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProjectMemberUioFromJSON));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Humains et agents membres du projet.
|
|
171
|
+
* List the members of a project
|
|
172
|
+
*/
|
|
173
|
+
async listProjectMembers(projectId, initOverrides) {
|
|
174
|
+
const response = await this.listProjectMembersRaw({ projectId: projectId }, initOverrides);
|
|
175
|
+
return await response.value();
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent.
|
|
179
|
+
* List the projects of an organization
|
|
180
|
+
*/
|
|
181
|
+
async listProjectsRaw(requestParameters, initOverrides) {
|
|
182
|
+
if (requestParameters['organizationId'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listProjects().');
|
|
184
|
+
}
|
|
185
|
+
const queryParameters = {};
|
|
186
|
+
if (requestParameters['includeArchived'] != null) {
|
|
187
|
+
queryParameters['includeArchived'] = requestParameters['includeArchived'];
|
|
188
|
+
}
|
|
189
|
+
const headerParameters = {};
|
|
190
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
191
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
192
|
+
}
|
|
193
|
+
const response = await this.request({
|
|
194
|
+
path: `/organizations/{organizationId}/projects`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
195
|
+
method: 'GET',
|
|
196
|
+
headers: headerParameters,
|
|
197
|
+
query: queryParameters,
|
|
198
|
+
}, initOverrides);
|
|
199
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProjectSummaryUioFromJSON));
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent.
|
|
203
|
+
* List the projects of an organization
|
|
204
|
+
*/
|
|
205
|
+
async listProjects(organizationId, includeArchived, initOverrides) {
|
|
206
|
+
const response = await this.listProjectsRaw({ organizationId: organizationId, includeArchived: includeArchived }, initOverrides);
|
|
207
|
+
return await response.value();
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Remplace la liste des membres ; il doit rester au moins un owner humain.
|
|
211
|
+
* Replace the members of a project
|
|
212
|
+
*/
|
|
213
|
+
async setProjectMembersRaw(requestParameters, initOverrides) {
|
|
214
|
+
if (requestParameters['projectId'] == null) {
|
|
215
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling setProjectMembers().');
|
|
216
|
+
}
|
|
217
|
+
if (requestParameters['setProjectMembersRequestUio'] == null) {
|
|
218
|
+
throw new runtime.RequiredError('setProjectMembersRequestUio', 'Required parameter "setProjectMembersRequestUio" was null or undefined when calling setProjectMembers().');
|
|
219
|
+
}
|
|
220
|
+
const queryParameters = {};
|
|
221
|
+
const headerParameters = {};
|
|
222
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
223
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
224
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
225
|
+
}
|
|
226
|
+
const response = await this.request({
|
|
227
|
+
path: `/projects/{projectId}/members`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
228
|
+
method: 'PUT',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
body: (0, index_1.SetProjectMembersRequestUioToJSON)(requestParameters['setProjectMembersRequestUio']),
|
|
232
|
+
}, initOverrides);
|
|
233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProjectMemberUioFromJSON));
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Remplace la liste des membres ; il doit rester au moins un owner humain.
|
|
237
|
+
* Replace the members of a project
|
|
238
|
+
*/
|
|
239
|
+
async setProjectMembers(projectId, setProjectMembersRequestUio, initOverrides) {
|
|
240
|
+
const response = await this.setProjectMembersRaw({ projectId: projectId, setProjectMembersRequestUio: setProjectMembersRequestUio }, initOverrides);
|
|
241
|
+
return await response.value();
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Mise à jour partielle ; archived à vrai archive le projet.
|
|
245
|
+
* Update a project
|
|
246
|
+
*/
|
|
247
|
+
async updateProjectRaw(requestParameters, initOverrides) {
|
|
248
|
+
if (requestParameters['projectId'] == null) {
|
|
249
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateProject().');
|
|
250
|
+
}
|
|
251
|
+
if (requestParameters['updateProjectRequestUio'] == null) {
|
|
252
|
+
throw new runtime.RequiredError('updateProjectRequestUio', 'Required parameter "updateProjectRequestUio" was null or undefined when calling updateProject().');
|
|
253
|
+
}
|
|
254
|
+
const queryParameters = {};
|
|
255
|
+
const headerParameters = {};
|
|
256
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
257
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
258
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
259
|
+
}
|
|
260
|
+
const response = await this.request({
|
|
261
|
+
path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
262
|
+
method: 'PATCH',
|
|
263
|
+
headers: headerParameters,
|
|
264
|
+
query: queryParameters,
|
|
265
|
+
body: (0, index_1.UpdateProjectRequestUioToJSON)(requestParameters['updateProjectRequestUio']),
|
|
266
|
+
}, initOverrides);
|
|
267
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectUioFromJSON)(jsonValue));
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Mise à jour partielle ; archived à vrai archive le projet.
|
|
271
|
+
* Update a project
|
|
272
|
+
*/
|
|
273
|
+
async updateProject(projectId, updateProjectRequestUio, initOverrides) {
|
|
274
|
+
const response = await this.updateProjectRaw({ projectId: projectId, updateProjectRequestUio: updateProjectRequestUio }, initOverrides);
|
|
275
|
+
return await response.value();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
exports.ProjectsApi = ProjectsApi;
|