🚀New lib version v0.2.0 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
48
dist/services/GroupContactService.d.ts
vendored
Normal file
48
dist/services/GroupContactService.d.ts
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import type { CreateGroupContact } from '../models/CreateGroupContact';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseGroupContact } from '../models/ResponseGroupContact';
|
||||
import type { UpdateGroupContact } from '../models/UpdateGroupContact';
|
||||
export declare class GroupContactService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all contacts. <br> This includes the contact's associated groups.
|
||||
* @returns ResponseGroupContact
|
||||
* @throws ApiError
|
||||
*/
|
||||
static groupContactControllerGetAll(): Promise<Array<ResponseGroupContact>>;
|
||||
/**
|
||||
* Post
|
||||
* Create a new contact.
|
||||
* @param requestBody CreateGroupContact
|
||||
* @returns ResponseGroupContact
|
||||
* @throws ApiError
|
||||
*/
|
||||
static groupContactControllerPost(requestBody?: CreateGroupContact): Promise<ResponseGroupContact>;
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the contact whose id got provided. <br> This includes the contact's associated groups.
|
||||
* @param id
|
||||
* @returns ResponseGroupContact
|
||||
* @throws ApiError
|
||||
*/
|
||||
static groupContactControllerGetOne(id: number): Promise<ResponseGroupContact>;
|
||||
/**
|
||||
* Put
|
||||
* Update the contact whose id you provided. <br> Please remember that ids can't be changed.
|
||||
* @param id
|
||||
* @param requestBody UpdateGroupContact
|
||||
* @returns ResponseGroupContact
|
||||
* @throws ApiError
|
||||
*/
|
||||
static groupContactControllerPut(id: number, requestBody?: UpdateGroupContact): Promise<ResponseGroupContact>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete the contact whose id you provided. <br> If no contact with this id exists it will just return 204(no content). <br> This won't delete any groups associated with the contact.
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseGroupContact
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static groupContactControllerRemove(id: number, force?: boolean): Promise<ResponseGroupContact | ResponseEmpty>;
|
||||
}
|
||||
84
dist/services/GroupContactService.js
vendored
Normal file
84
dist/services/GroupContactService.js
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.GroupContactService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class GroupContactService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all contacts. <br> This includes the contact's associated groups.
|
||||
* @returns ResponseGroupContact
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async groupContactControllerGetAll() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/contacts`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post
|
||||
* Create a new contact.
|
||||
* @param requestBody CreateGroupContact
|
||||
* @returns ResponseGroupContact
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async groupContactControllerPost(requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/contacts`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the contact whose id got provided. <br> This includes the contact's associated groups.
|
||||
* @param id
|
||||
* @returns ResponseGroupContact
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async groupContactControllerGetOne(id) {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/contacts/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Put
|
||||
* Update the contact whose id you provided. <br> Please remember that ids can't be changed.
|
||||
* @param id
|
||||
* @param requestBody UpdateGroupContact
|
||||
* @returns ResponseGroupContact
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async groupContactControllerPut(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'PUT',
|
||||
path: `/api/contacts/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Delete the contact whose id you provided. <br> If no contact with this id exists it will just return 204(no content). <br> This won't delete any groups associated with the contact.
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseGroupContact
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async groupContactControllerRemove(id, force) {
|
||||
const result = await request_1.request({
|
||||
method: 'DELETE',
|
||||
path: `/api/contacts/${id}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.GroupContactService = GroupContactService;
|
||||
2
dist/services/RunnerOrganisationService.d.ts
vendored
2
dist/services/RunnerOrganisationService.d.ts
vendored
@@ -37,7 +37,7 @@ export declare class RunnerOrganisationService {
|
||||
static runnerOrganisationControllerPut(id: number, requestBody?: UpdateRunnerOrganisation): Promise<ResponseRunnerOrganisation>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete the organsisation whose id you provided. <br> If the organisation still has runners and/or teams associated this will fail. <br> To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while). <br> If no organisation with this id exists it will just return 204(no content).
|
||||
* Delete the organsisation whose id you provided. <br> If the organisation still has runners and/or teams associated this will fail. <br> To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while). <br> This won't delete the associated contact. <br> If no organisation with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseRunnerOrganisation
|
||||
|
||||
2
dist/services/RunnerOrganisationService.js
vendored
2
dist/services/RunnerOrganisationService.js
vendored
@@ -63,7 +63,7 @@ class RunnerOrganisationService {
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Delete the organsisation whose id you provided. <br> If the organisation still has runners and/or teams associated this will fail. <br> To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while). <br> If no organisation with this id exists it will just return 204(no content).
|
||||
* Delete the organsisation whose id you provided. <br> If the organisation still has runners and/or teams associated this will fail. <br> To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while). <br> This won't delete the associated contact. <br> If no organisation with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseRunnerOrganisation
|
||||
|
||||
2
dist/services/RunnerTeamService.d.ts
vendored
2
dist/services/RunnerTeamService.d.ts
vendored
@@ -37,7 +37,7 @@ export declare class RunnerTeamService {
|
||||
static runnerTeamControllerPut(id: number, requestBody?: UpdateRunnerTeam): Promise<ResponseRunnerTeam>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete the team whose id you provided. <br> If the team still has runners associated this will fail. <br> To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while). <br> If no team with this id exists it will just return 204(no content).
|
||||
* Delete the team whose id you provided. <br> If the team still has runners associated this will fail. <br> To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while). <br> This won't delete the associated contact.<br> If no team with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseRunnerTeam
|
||||
|
||||
2
dist/services/RunnerTeamService.js
vendored
2
dist/services/RunnerTeamService.js
vendored
@@ -63,7 +63,7 @@ class RunnerTeamService {
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Delete the team whose id you provided. <br> If the team still has runners associated this will fail. <br> To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while). <br> If no team with this id exists it will just return 204(no content).
|
||||
* Delete the team whose id you provided. <br> If the team still has runners associated this will fail. <br> To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while). <br> This won't delete the associated contact.<br> If no team with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseRunnerTeam
|
||||
|
||||
Reference in New Issue
Block a user