🚀New lib version [CI SKIP]
This commit is contained in:
24
dist/services/ImportService.js
vendored
24
dist/services/ImportService.js
vendored
@@ -8,11 +8,11 @@ class ImportService {
|
||||
* Create new runners from json and insert them into the provided group. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
|
||||
* @param group
|
||||
* @param requestBody ImportRunner
|
||||
* @returns ResponseRunner
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async importControllerPostJson(group, requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/runners/import`,
|
||||
query: {
|
||||
@@ -27,11 +27,11 @@ class ImportService {
|
||||
* Create new runners from json and insert them into the provided org. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
|
||||
* @param id
|
||||
* @param requestBody ImportRunner
|
||||
* @returns ResponseRunner
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async importControllerPostOrgsJson(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/organizations/${id}/import`,
|
||||
body: requestBody,
|
||||
@@ -43,11 +43,11 @@ class ImportService {
|
||||
* Create new runners from json and insert them into the provided team
|
||||
* @param id
|
||||
* @param requestBody ImportRunner
|
||||
* @returns ResponseRunner
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async importControllerPostTeamsJson(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/teams/${id}/import`,
|
||||
body: requestBody,
|
||||
@@ -58,11 +58,11 @@ class ImportService {
|
||||
* Post csv
|
||||
* Create new runners from csv and insert them into the provided group. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
|
||||
* @param group
|
||||
* @returns ResponseRunner
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async importControllerPostCsv(group) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/runners/import/csv`,
|
||||
query: {
|
||||
@@ -75,11 +75,11 @@ class ImportService {
|
||||
* Post orgs csv
|
||||
* Create new runners from csv and insert them into the provided org. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
|
||||
* @param id
|
||||
* @returns ResponseRunner
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async importControllerPostOrgsCsv(id) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/organizations/${id}/import/csv`,
|
||||
});
|
||||
@@ -89,11 +89,11 @@ class ImportService {
|
||||
* Post teams csv
|
||||
* Create new runners from csv and insert them into the provided team
|
||||
* @param id
|
||||
* @returns ResponseRunner
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async importControllerPostTeamsCsv(id) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/teams/${id}/import/csv`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user