@teemill/projects 1.24.0 → 1.25.0
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/README.md +2 -2
- package/api.ts +522 -4
- package/base.ts +3 -3
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +320 -4
- package/dist/api.js +317 -4
- package/dist/base.d.ts +3 -3
- package/dist/base.js +3 -3
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +320 -4
- package/dist/esm/api.js +316 -3
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +3 -3
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +3 -3
- package/dist/esm/configuration.d.ts +3 -3
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/index.ts +3 -3
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Projects API
|
|
5
|
-
* Manage
|
|
5
|
+
* Manage PodOS Projects
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
-
*
|
|
7
|
+
* The version of the OpenAPI document: 1.25.0
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -132,6 +132,27 @@ export interface CreateProjectRequest {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @export
|
|
138
|
+
* @interface CreateTaskRequest
|
|
139
|
+
*/
|
|
140
|
+
export interface CreateTaskRequest {
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof CreateTaskRequest
|
|
145
|
+
*/
|
|
146
|
+
'content': string;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {TaskStatus}
|
|
150
|
+
* @memberof CreateTaskRequest
|
|
151
|
+
*/
|
|
152
|
+
'status': TaskStatus;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
135
156
|
/**
|
|
136
157
|
*
|
|
137
158
|
* @export
|
|
@@ -233,6 +254,19 @@ export interface LegacyProjectLogo {
|
|
|
233
254
|
*/
|
|
234
255
|
'backgroundColor': string;
|
|
235
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @export
|
|
260
|
+
* @interface ListTasksResponse
|
|
261
|
+
*/
|
|
262
|
+
export interface ListTasksResponse {
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {Array<Task>}
|
|
266
|
+
* @memberof ListTasksResponse
|
|
267
|
+
*/
|
|
268
|
+
'tasks': Array<Task>;
|
|
269
|
+
}
|
|
236
270
|
/**
|
|
237
271
|
*
|
|
238
272
|
* @export
|
|
@@ -287,7 +321,7 @@ export interface Project {
|
|
|
287
321
|
* @type {string}
|
|
288
322
|
* @memberof Project
|
|
289
323
|
*/
|
|
290
|
-
'publicKey'
|
|
324
|
+
'publicKey'?: string;
|
|
291
325
|
}
|
|
292
326
|
/**
|
|
293
327
|
*
|
|
@@ -523,6 +557,55 @@ export interface ProjectsResponse {
|
|
|
523
557
|
*/
|
|
524
558
|
'projects': Array<Project>;
|
|
525
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @export
|
|
563
|
+
* @interface Task
|
|
564
|
+
*/
|
|
565
|
+
export interface Task {
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @type {string}
|
|
569
|
+
* @memberof Task
|
|
570
|
+
*/
|
|
571
|
+
'id': string;
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @type {string}
|
|
575
|
+
* @memberof Task
|
|
576
|
+
*/
|
|
577
|
+
'content': string;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {TaskStatus}
|
|
581
|
+
* @memberof Task
|
|
582
|
+
*/
|
|
583
|
+
'status': TaskStatus;
|
|
584
|
+
/**
|
|
585
|
+
* The position of the task in its status group
|
|
586
|
+
* @type {number}
|
|
587
|
+
* @memberof Task
|
|
588
|
+
*/
|
|
589
|
+
'sortOrder': number;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @export
|
|
596
|
+
* @enum {string}
|
|
597
|
+
*/
|
|
598
|
+
|
|
599
|
+
export const TaskStatus = {
|
|
600
|
+
Nice: 'nice',
|
|
601
|
+
Need: 'need',
|
|
602
|
+
Doing: 'doing',
|
|
603
|
+
Done: 'done'
|
|
604
|
+
} as const;
|
|
605
|
+
|
|
606
|
+
export type TaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
|
|
607
|
+
|
|
608
|
+
|
|
526
609
|
/**
|
|
527
610
|
*
|
|
528
611
|
* @export
|
|
@@ -624,6 +707,33 @@ export interface UpdateProjectRequest {
|
|
|
624
707
|
*/
|
|
625
708
|
'logos'?: Array<ProjectLogo>;
|
|
626
709
|
}
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @export
|
|
713
|
+
* @interface UpdateTaskRequest
|
|
714
|
+
*/
|
|
715
|
+
export interface UpdateTaskRequest {
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @type {string}
|
|
719
|
+
* @memberof UpdateTaskRequest
|
|
720
|
+
*/
|
|
721
|
+
'content'?: string;
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @type {TaskStatus}
|
|
725
|
+
* @memberof UpdateTaskRequest
|
|
726
|
+
*/
|
|
727
|
+
'status'?: TaskStatus;
|
|
728
|
+
/**
|
|
729
|
+
* The position of the task in its status group
|
|
730
|
+
* @type {number}
|
|
731
|
+
* @memberof UpdateTaskRequest
|
|
732
|
+
*/
|
|
733
|
+
'sortOrder'?: number;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
|
|
627
737
|
|
|
628
738
|
/**
|
|
629
739
|
* ProjectsApi - axios parameter creator
|
|
@@ -762,6 +872,51 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
762
872
|
options: localVarRequestOptions,
|
|
763
873
|
};
|
|
764
874
|
},
|
|
875
|
+
/**
|
|
876
|
+
* Create a new task in the workflow
|
|
877
|
+
* @summary Create Task
|
|
878
|
+
* @param {string} project Projects unique identifier
|
|
879
|
+
* @param {CreateTaskRequest} [createTaskRequest] Create a new task in the workflow
|
|
880
|
+
* @param {*} [options] Override http request option.
|
|
881
|
+
* @throws {RequiredError}
|
|
882
|
+
*/
|
|
883
|
+
createTask: async (project: string, createTaskRequest?: CreateTaskRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
884
|
+
// verify required parameter 'project' is not null or undefined
|
|
885
|
+
assertParamExists('createTask', 'project', project)
|
|
886
|
+
const localVarPath = `/v1/projects/{project}/tasks`
|
|
887
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
890
|
+
let baseOptions;
|
|
891
|
+
if (configuration) {
|
|
892
|
+
baseOptions = configuration.baseOptions;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
896
|
+
const localVarHeaderParameter = {} as any;
|
|
897
|
+
const localVarQueryParameter = {} as any;
|
|
898
|
+
|
|
899
|
+
// authentication session-oauth required
|
|
900
|
+
// oauth required
|
|
901
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
902
|
+
|
|
903
|
+
// authentication api-key required
|
|
904
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
909
|
+
|
|
910
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
911
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
912
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
913
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createTaskRequest, localVarRequestOptions, configuration)
|
|
914
|
+
|
|
915
|
+
return {
|
|
916
|
+
url: toPathString(localVarUrlObj),
|
|
917
|
+
options: localVarRequestOptions,
|
|
918
|
+
};
|
|
919
|
+
},
|
|
765
920
|
/**
|
|
766
921
|
* Delete an auth token for the project
|
|
767
922
|
* @summary Delete auth token
|
|
@@ -884,6 +1039,51 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
884
1039
|
|
|
885
1040
|
|
|
886
1041
|
|
|
1042
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1043
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1044
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1045
|
+
|
|
1046
|
+
return {
|
|
1047
|
+
url: toPathString(localVarUrlObj),
|
|
1048
|
+
options: localVarRequestOptions,
|
|
1049
|
+
};
|
|
1050
|
+
},
|
|
1051
|
+
/**
|
|
1052
|
+
* Delete a task in the workflow
|
|
1053
|
+
* @summary Delete Task
|
|
1054
|
+
* @param {string} project Projects unique identifier
|
|
1055
|
+
* @param {string} id The unique id of the task
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
deleteTask: async (project: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1060
|
+
// verify required parameter 'project' is not null or undefined
|
|
1061
|
+
assertParamExists('deleteTask', 'project', project)
|
|
1062
|
+
// verify required parameter 'id' is not null or undefined
|
|
1063
|
+
assertParamExists('deleteTask', 'id', id)
|
|
1064
|
+
const localVarPath = `/v1/projects/{project}/tasks/{id}`
|
|
1065
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1066
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1067
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1068
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1069
|
+
let baseOptions;
|
|
1070
|
+
if (configuration) {
|
|
1071
|
+
baseOptions = configuration.baseOptions;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1075
|
+
const localVarHeaderParameter = {} as any;
|
|
1076
|
+
const localVarQueryParameter = {} as any;
|
|
1077
|
+
|
|
1078
|
+
// authentication session-oauth required
|
|
1079
|
+
// oauth required
|
|
1080
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1081
|
+
|
|
1082
|
+
// authentication api-key required
|
|
1083
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
887
1087
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
888
1088
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
889
1089
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1448,6 +1648,47 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
1448
1648
|
options: localVarRequestOptions,
|
|
1449
1649
|
};
|
|
1450
1650
|
},
|
|
1651
|
+
/**
|
|
1652
|
+
* List the tasks in the workflow
|
|
1653
|
+
* @summary List Tasks
|
|
1654
|
+
* @param {string} project Projects unique identifier
|
|
1655
|
+
* @param {*} [options] Override http request option.
|
|
1656
|
+
* @throws {RequiredError}
|
|
1657
|
+
*/
|
|
1658
|
+
listTasks: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1659
|
+
// verify required parameter 'project' is not null or undefined
|
|
1660
|
+
assertParamExists('listTasks', 'project', project)
|
|
1661
|
+
const localVarPath = `/v1/projects/{project}/tasks`
|
|
1662
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
1663
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1664
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1665
|
+
let baseOptions;
|
|
1666
|
+
if (configuration) {
|
|
1667
|
+
baseOptions = configuration.baseOptions;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1671
|
+
const localVarHeaderParameter = {} as any;
|
|
1672
|
+
const localVarQueryParameter = {} as any;
|
|
1673
|
+
|
|
1674
|
+
// authentication session-oauth required
|
|
1675
|
+
// oauth required
|
|
1676
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1677
|
+
|
|
1678
|
+
// authentication api-key required
|
|
1679
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1684
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1685
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1686
|
+
|
|
1687
|
+
return {
|
|
1688
|
+
url: toPathString(localVarUrlObj),
|
|
1689
|
+
options: localVarRequestOptions,
|
|
1690
|
+
};
|
|
1691
|
+
},
|
|
1451
1692
|
/**
|
|
1452
1693
|
* Setup an integration on the project
|
|
1453
1694
|
* @summary Setup integration
|
|
@@ -1637,6 +1878,55 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
1637
1878
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1638
1879
|
localVarRequestOptions.data = serializeDataIfNeeded(updateProjectRequest, localVarRequestOptions, configuration)
|
|
1639
1880
|
|
|
1881
|
+
return {
|
|
1882
|
+
url: toPathString(localVarUrlObj),
|
|
1883
|
+
options: localVarRequestOptions,
|
|
1884
|
+
};
|
|
1885
|
+
},
|
|
1886
|
+
/**
|
|
1887
|
+
* Update a task in the workflow
|
|
1888
|
+
* @summary Update Task
|
|
1889
|
+
* @param {string} project Projects unique identifier
|
|
1890
|
+
* @param {string} id The unique id of the task
|
|
1891
|
+
* @param {UpdateTaskRequest} [updateTaskRequest] Update a task in the workflow
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
updateTask: async (project: string, id: string, updateTaskRequest?: UpdateTaskRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1896
|
+
// verify required parameter 'project' is not null or undefined
|
|
1897
|
+
assertParamExists('updateTask', 'project', project)
|
|
1898
|
+
// verify required parameter 'id' is not null or undefined
|
|
1899
|
+
assertParamExists('updateTask', 'id', id)
|
|
1900
|
+
const localVarPath = `/v1/projects/{project}/tasks/{id}`
|
|
1901
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1902
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1903
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1904
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1905
|
+
let baseOptions;
|
|
1906
|
+
if (configuration) {
|
|
1907
|
+
baseOptions = configuration.baseOptions;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
1911
|
+
const localVarHeaderParameter = {} as any;
|
|
1912
|
+
const localVarQueryParameter = {} as any;
|
|
1913
|
+
|
|
1914
|
+
// authentication session-oauth required
|
|
1915
|
+
// oauth required
|
|
1916
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1917
|
+
|
|
1918
|
+
// authentication api-key required
|
|
1919
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1924
|
+
|
|
1925
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1926
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1927
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1928
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateTaskRequest, localVarRequestOptions, configuration)
|
|
1929
|
+
|
|
1640
1930
|
return {
|
|
1641
1931
|
url: toPathString(localVarUrlObj),
|
|
1642
1932
|
options: localVarRequestOptions,
|
|
@@ -1692,6 +1982,20 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
1692
1982
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.createProject']?.[localVarOperationServerIndex]?.url;
|
|
1693
1983
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1694
1984
|
},
|
|
1985
|
+
/**
|
|
1986
|
+
* Create a new task in the workflow
|
|
1987
|
+
* @summary Create Task
|
|
1988
|
+
* @param {string} project Projects unique identifier
|
|
1989
|
+
* @param {CreateTaskRequest} [createTaskRequest] Create a new task in the workflow
|
|
1990
|
+
* @param {*} [options] Override http request option.
|
|
1991
|
+
* @throws {RequiredError}
|
|
1992
|
+
*/
|
|
1993
|
+
async createTask(project: string, createTaskRequest?: CreateTaskRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>> {
|
|
1994
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTask(project, createTaskRequest, options);
|
|
1995
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1996
|
+
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.createTask']?.[localVarOperationServerIndex]?.url;
|
|
1997
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1998
|
+
},
|
|
1695
1999
|
/**
|
|
1696
2000
|
* Delete an auth token for the project
|
|
1697
2001
|
* @summary Delete auth token
|
|
@@ -1733,6 +2037,20 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
1733
2037
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.deleteProject']?.[localVarOperationServerIndex]?.url;
|
|
1734
2038
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1735
2039
|
},
|
|
2040
|
+
/**
|
|
2041
|
+
* Delete a task in the workflow
|
|
2042
|
+
* @summary Delete Task
|
|
2043
|
+
* @param {string} project Projects unique identifier
|
|
2044
|
+
* @param {string} id The unique id of the task
|
|
2045
|
+
* @param {*} [options] Override http request option.
|
|
2046
|
+
* @throws {RequiredError}
|
|
2047
|
+
*/
|
|
2048
|
+
async deleteTask(project: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2049
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTask(project, id, options);
|
|
2050
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2051
|
+
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.deleteTask']?.[localVarOperationServerIndex]?.url;
|
|
2052
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2053
|
+
},
|
|
1736
2054
|
/**
|
|
1737
2055
|
* Delete a project user by ID
|
|
1738
2056
|
* @summary Delete a user by ID
|
|
@@ -1902,6 +2220,19 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
1902
2220
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.installTemplate']?.[localVarOperationServerIndex]?.url;
|
|
1903
2221
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1904
2222
|
},
|
|
2223
|
+
/**
|
|
2224
|
+
* List the tasks in the workflow
|
|
2225
|
+
* @summary List Tasks
|
|
2226
|
+
* @param {string} project Projects unique identifier
|
|
2227
|
+
* @param {*} [options] Override http request option.
|
|
2228
|
+
* @throws {RequiredError}
|
|
2229
|
+
*/
|
|
2230
|
+
async listTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponse>> {
|
|
2231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTasks(project, options);
|
|
2232
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2233
|
+
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.listTasks']?.[localVarOperationServerIndex]?.url;
|
|
2234
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2235
|
+
},
|
|
1905
2236
|
/**
|
|
1906
2237
|
* Setup an integration on the project
|
|
1907
2238
|
* @summary Setup integration
|
|
@@ -1960,6 +2291,21 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
1960
2291
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.updateProject']?.[localVarOperationServerIndex]?.url;
|
|
1961
2292
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1962
2293
|
},
|
|
2294
|
+
/**
|
|
2295
|
+
* Update a task in the workflow
|
|
2296
|
+
* @summary Update Task
|
|
2297
|
+
* @param {string} project Projects unique identifier
|
|
2298
|
+
* @param {string} id The unique id of the task
|
|
2299
|
+
* @param {UpdateTaskRequest} [updateTaskRequest] Update a task in the workflow
|
|
2300
|
+
* @param {*} [options] Override http request option.
|
|
2301
|
+
* @throws {RequiredError}
|
|
2302
|
+
*/
|
|
2303
|
+
async updateTask(project: string, id: string, updateTaskRequest?: UpdateTaskRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>> {
|
|
2304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTask(project, id, updateTaskRequest, options);
|
|
2305
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2306
|
+
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.updateTask']?.[localVarOperationServerIndex]?.url;
|
|
2307
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2308
|
+
},
|
|
1963
2309
|
}
|
|
1964
2310
|
};
|
|
1965
2311
|
|
|
@@ -2000,6 +2346,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
2000
2346
|
createProject(requestParameters: ProjectsApiCreateProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<Project> {
|
|
2001
2347
|
return localVarFp.createProject(requestParameters.createProjectRequest, options).then((request) => request(axios, basePath));
|
|
2002
2348
|
},
|
|
2349
|
+
/**
|
|
2350
|
+
* Create a new task in the workflow
|
|
2351
|
+
* @summary Create Task
|
|
2352
|
+
* @param {ProjectsApiCreateTaskRequest} requestParameters Request parameters.
|
|
2353
|
+
* @param {*} [options] Override http request option.
|
|
2354
|
+
* @throws {RequiredError}
|
|
2355
|
+
*/
|
|
2356
|
+
createTask(requestParameters: ProjectsApiCreateTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task> {
|
|
2357
|
+
return localVarFp.createTask(requestParameters.project, requestParameters.createTaskRequest, options).then((request) => request(axios, basePath));
|
|
2358
|
+
},
|
|
2003
2359
|
/**
|
|
2004
2360
|
* Delete an auth token for the project
|
|
2005
2361
|
* @summary Delete auth token
|
|
@@ -2030,6 +2386,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
2030
2386
|
deleteProject(requestParameters: ProjectsApiDeleteProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2031
2387
|
return localVarFp.deleteProject(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2032
2388
|
},
|
|
2389
|
+
/**
|
|
2390
|
+
* Delete a task in the workflow
|
|
2391
|
+
* @summary Delete Task
|
|
2392
|
+
* @param {ProjectsApiDeleteTaskRequest} requestParameters Request parameters.
|
|
2393
|
+
* @param {*} [options] Override http request option.
|
|
2394
|
+
* @throws {RequiredError}
|
|
2395
|
+
*/
|
|
2396
|
+
deleteTask(requestParameters: ProjectsApiDeleteTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2397
|
+
return localVarFp.deleteTask(requestParameters.project, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2398
|
+
},
|
|
2033
2399
|
/**
|
|
2034
2400
|
* Delete a project user by ID
|
|
2035
2401
|
* @summary Delete a user by ID
|
|
@@ -2150,6 +2516,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
2150
2516
|
installTemplate(requestParameters: ProjectsApiInstallTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationsResponse> {
|
|
2151
2517
|
return localVarFp.installTemplate(requestParameters.project, requestParameters.template, requestParameters.installTemplateRequest, options).then((request) => request(axios, basePath));
|
|
2152
2518
|
},
|
|
2519
|
+
/**
|
|
2520
|
+
* List the tasks in the workflow
|
|
2521
|
+
* @summary List Tasks
|
|
2522
|
+
* @param {ProjectsApiListTasksRequest} requestParameters Request parameters.
|
|
2523
|
+
* @param {*} [options] Override http request option.
|
|
2524
|
+
* @throws {RequiredError}
|
|
2525
|
+
*/
|
|
2526
|
+
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTasksResponse> {
|
|
2527
|
+
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2528
|
+
},
|
|
2153
2529
|
/**
|
|
2154
2530
|
* Setup an integration on the project
|
|
2155
2531
|
* @summary Setup integration
|
|
@@ -2190,6 +2566,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
2190
2566
|
updateProject(requestParameters: ProjectsApiUpdateProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<Project> {
|
|
2191
2567
|
return localVarFp.updateProject(requestParameters.project, requestParameters.updateProjectRequest, options).then((request) => request(axios, basePath));
|
|
2192
2568
|
},
|
|
2569
|
+
/**
|
|
2570
|
+
* Update a task in the workflow
|
|
2571
|
+
* @summary Update Task
|
|
2572
|
+
* @param {ProjectsApiUpdateTaskRequest} requestParameters Request parameters.
|
|
2573
|
+
* @param {*} [options] Override http request option.
|
|
2574
|
+
* @throws {RequiredError}
|
|
2575
|
+
*/
|
|
2576
|
+
updateTask(requestParameters: ProjectsApiUpdateTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task> {
|
|
2577
|
+
return localVarFp.updateTask(requestParameters.project, requestParameters.id, requestParameters.updateTaskRequest, options).then((request) => request(axios, basePath));
|
|
2578
|
+
},
|
|
2193
2579
|
};
|
|
2194
2580
|
};
|
|
2195
2581
|
|
|
@@ -2242,6 +2628,27 @@ export interface ProjectsApiCreateProjectRequest {
|
|
|
2242
2628
|
readonly createProjectRequest: CreateProjectRequest
|
|
2243
2629
|
}
|
|
2244
2630
|
|
|
2631
|
+
/**
|
|
2632
|
+
* Request parameters for createTask operation in ProjectsApi.
|
|
2633
|
+
* @export
|
|
2634
|
+
* @interface ProjectsApiCreateTaskRequest
|
|
2635
|
+
*/
|
|
2636
|
+
export interface ProjectsApiCreateTaskRequest {
|
|
2637
|
+
/**
|
|
2638
|
+
* Projects unique identifier
|
|
2639
|
+
* @type {string}
|
|
2640
|
+
* @memberof ProjectsApiCreateTask
|
|
2641
|
+
*/
|
|
2642
|
+
readonly project: string
|
|
2643
|
+
|
|
2644
|
+
/**
|
|
2645
|
+
* Create a new task in the workflow
|
|
2646
|
+
* @type {CreateTaskRequest}
|
|
2647
|
+
* @memberof ProjectsApiCreateTask
|
|
2648
|
+
*/
|
|
2649
|
+
readonly createTaskRequest?: CreateTaskRequest
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2245
2652
|
/**
|
|
2246
2653
|
* Request parameters for deleteAuth operation in ProjectsApi.
|
|
2247
2654
|
* @export
|
|
@@ -2298,6 +2705,27 @@ export interface ProjectsApiDeleteProjectRequest {
|
|
|
2298
2705
|
readonly project: string
|
|
2299
2706
|
}
|
|
2300
2707
|
|
|
2708
|
+
/**
|
|
2709
|
+
* Request parameters for deleteTask operation in ProjectsApi.
|
|
2710
|
+
* @export
|
|
2711
|
+
* @interface ProjectsApiDeleteTaskRequest
|
|
2712
|
+
*/
|
|
2713
|
+
export interface ProjectsApiDeleteTaskRequest {
|
|
2714
|
+
/**
|
|
2715
|
+
* Projects unique identifier
|
|
2716
|
+
* @type {string}
|
|
2717
|
+
* @memberof ProjectsApiDeleteTask
|
|
2718
|
+
*/
|
|
2719
|
+
readonly project: string
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* The unique id of the task
|
|
2723
|
+
* @type {string}
|
|
2724
|
+
* @memberof ProjectsApiDeleteTask
|
|
2725
|
+
*/
|
|
2726
|
+
readonly id: string
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2301
2729
|
/**
|
|
2302
2730
|
* Request parameters for deleteUser operation in ProjectsApi.
|
|
2303
2731
|
* @export
|
|
@@ -2557,6 +2985,20 @@ export interface ProjectsApiInstallTemplateRequest {
|
|
|
2557
2985
|
readonly installTemplateRequest: InstallTemplateRequest
|
|
2558
2986
|
}
|
|
2559
2987
|
|
|
2988
|
+
/**
|
|
2989
|
+
* Request parameters for listTasks operation in ProjectsApi.
|
|
2990
|
+
* @export
|
|
2991
|
+
* @interface ProjectsApiListTasksRequest
|
|
2992
|
+
*/
|
|
2993
|
+
export interface ProjectsApiListTasksRequest {
|
|
2994
|
+
/**
|
|
2995
|
+
* Projects unique identifier
|
|
2996
|
+
* @type {string}
|
|
2997
|
+
* @memberof ProjectsApiListTasks
|
|
2998
|
+
*/
|
|
2999
|
+
readonly project: string
|
|
3000
|
+
}
|
|
3001
|
+
|
|
2560
3002
|
/**
|
|
2561
3003
|
* Request parameters for setupIntegration operation in ProjectsApi.
|
|
2562
3004
|
* @export
|
|
@@ -2655,6 +3097,34 @@ export interface ProjectsApiUpdateProjectRequest {
|
|
|
2655
3097
|
readonly updateProjectRequest: UpdateProjectRequest
|
|
2656
3098
|
}
|
|
2657
3099
|
|
|
3100
|
+
/**
|
|
3101
|
+
* Request parameters for updateTask operation in ProjectsApi.
|
|
3102
|
+
* @export
|
|
3103
|
+
* @interface ProjectsApiUpdateTaskRequest
|
|
3104
|
+
*/
|
|
3105
|
+
export interface ProjectsApiUpdateTaskRequest {
|
|
3106
|
+
/**
|
|
3107
|
+
* Projects unique identifier
|
|
3108
|
+
* @type {string}
|
|
3109
|
+
* @memberof ProjectsApiUpdateTask
|
|
3110
|
+
*/
|
|
3111
|
+
readonly project: string
|
|
3112
|
+
|
|
3113
|
+
/**
|
|
3114
|
+
* The unique id of the task
|
|
3115
|
+
* @type {string}
|
|
3116
|
+
* @memberof ProjectsApiUpdateTask
|
|
3117
|
+
*/
|
|
3118
|
+
readonly id: string
|
|
3119
|
+
|
|
3120
|
+
/**
|
|
3121
|
+
* Update a task in the workflow
|
|
3122
|
+
* @type {UpdateTaskRequest}
|
|
3123
|
+
* @memberof ProjectsApiUpdateTask
|
|
3124
|
+
*/
|
|
3125
|
+
readonly updateTaskRequest?: UpdateTaskRequest
|
|
3126
|
+
}
|
|
3127
|
+
|
|
2658
3128
|
/**
|
|
2659
3129
|
* ProjectsApi - object-oriented interface
|
|
2660
3130
|
* @export
|
|
@@ -2698,6 +3168,18 @@ export class ProjectsApi extends BaseAPI {
|
|
|
2698
3168
|
return ProjectsApiFp(this.configuration).createProject(requestParameters.createProjectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2699
3169
|
}
|
|
2700
3170
|
|
|
3171
|
+
/**
|
|
3172
|
+
* Create a new task in the workflow
|
|
3173
|
+
* @summary Create Task
|
|
3174
|
+
* @param {ProjectsApiCreateTaskRequest} requestParameters Request parameters.
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
* @memberof ProjectsApi
|
|
3178
|
+
*/
|
|
3179
|
+
public createTask(requestParameters: ProjectsApiCreateTaskRequest, options?: RawAxiosRequestConfig) {
|
|
3180
|
+
return ProjectsApiFp(this.configuration).createTask(requestParameters.project, requestParameters.createTaskRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3181
|
+
}
|
|
3182
|
+
|
|
2701
3183
|
/**
|
|
2702
3184
|
* Delete an auth token for the project
|
|
2703
3185
|
* @summary Delete auth token
|
|
@@ -2734,6 +3216,18 @@ export class ProjectsApi extends BaseAPI {
|
|
|
2734
3216
|
return ProjectsApiFp(this.configuration).deleteProject(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2735
3217
|
}
|
|
2736
3218
|
|
|
3219
|
+
/**
|
|
3220
|
+
* Delete a task in the workflow
|
|
3221
|
+
* @summary Delete Task
|
|
3222
|
+
* @param {ProjectsApiDeleteTaskRequest} requestParameters Request parameters.
|
|
3223
|
+
* @param {*} [options] Override http request option.
|
|
3224
|
+
* @throws {RequiredError}
|
|
3225
|
+
* @memberof ProjectsApi
|
|
3226
|
+
*/
|
|
3227
|
+
public deleteTask(requestParameters: ProjectsApiDeleteTaskRequest, options?: RawAxiosRequestConfig) {
|
|
3228
|
+
return ProjectsApiFp(this.configuration).deleteTask(requestParameters.project, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3229
|
+
}
|
|
3230
|
+
|
|
2737
3231
|
/**
|
|
2738
3232
|
* Delete a project user by ID
|
|
2739
3233
|
* @summary Delete a user by ID
|
|
@@ -2878,6 +3372,18 @@ export class ProjectsApi extends BaseAPI {
|
|
|
2878
3372
|
return ProjectsApiFp(this.configuration).installTemplate(requestParameters.project, requestParameters.template, requestParameters.installTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2879
3373
|
}
|
|
2880
3374
|
|
|
3375
|
+
/**
|
|
3376
|
+
* List the tasks in the workflow
|
|
3377
|
+
* @summary List Tasks
|
|
3378
|
+
* @param {ProjectsApiListTasksRequest} requestParameters Request parameters.
|
|
3379
|
+
* @param {*} [options] Override http request option.
|
|
3380
|
+
* @throws {RequiredError}
|
|
3381
|
+
* @memberof ProjectsApi
|
|
3382
|
+
*/
|
|
3383
|
+
public listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig) {
|
|
3384
|
+
return ProjectsApiFp(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
3385
|
+
}
|
|
3386
|
+
|
|
2881
3387
|
/**
|
|
2882
3388
|
* Setup an integration on the project
|
|
2883
3389
|
* @summary Setup integration
|
|
@@ -2925,6 +3431,18 @@ export class ProjectsApi extends BaseAPI {
|
|
|
2925
3431
|
public updateProject(requestParameters: ProjectsApiUpdateProjectRequest, options?: RawAxiosRequestConfig) {
|
|
2926
3432
|
return ProjectsApiFp(this.configuration).updateProject(requestParameters.project, requestParameters.updateProjectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2927
3433
|
}
|
|
3434
|
+
|
|
3435
|
+
/**
|
|
3436
|
+
* Update a task in the workflow
|
|
3437
|
+
* @summary Update Task
|
|
3438
|
+
* @param {ProjectsApiUpdateTaskRequest} requestParameters Request parameters.
|
|
3439
|
+
* @param {*} [options] Override http request option.
|
|
3440
|
+
* @throws {RequiredError}
|
|
3441
|
+
* @memberof ProjectsApi
|
|
3442
|
+
*/
|
|
3443
|
+
public updateTask(requestParameters: ProjectsApiUpdateTaskRequest, options?: RawAxiosRequestConfig) {
|
|
3444
|
+
return ProjectsApiFp(this.configuration).updateTask(requestParameters.project, requestParameters.id, requestParameters.updateTaskRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3445
|
+
}
|
|
2928
3446
|
}
|
|
2929
3447
|
|
|
2930
3448
|
|