@devopness/sdk-js
Version:
Devopness API JS/TS SDK - Painless essential DevOps to everyone
54 lines (53 loc) • 2.11 kB
TypeScript
/**
* devopness API
* Devopness API - Painless essential DevOps to everyone
*
* The version of the OpenAPI document: latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiBaseService } from "../../../services/ApiBaseService";
import { ApiResponse } from "../../../common/ApiResponse";
import { SocialAccount } from '../../generated/models';
import { SocialAccountCreate } from '../../generated/models';
import { SocialAccountRelation } from '../../generated/models';
import { SocialAccountStatus } from '../../generated/models';
/**
* SocialAccountsApiService - Auto-generated
*/
export declare class SocialAccountsApiService extends ApiBaseService {
/**
*
* @summary Add a social account
* @param {SocialAccountCreate} socialAccountCreate A JSON object containing the resource data
*/
addSocialAccount(socialAccountCreate: SocialAccountCreate): Promise<ApiResponse<SocialAccount>>;
/**
*
* @summary Delete a given social account
* @param {number} socialAccountId The ID of the social account.
*/
deleteSocialAccount(socialAccountId: number): Promise<ApiResponse<void>>;
/**
*
* @summary Get a social account by provider name
* @param {string} socialAccountProvider The social account provider name.
*/
getSocialAccount(socialAccountProvider: string): Promise<ApiResponse<SocialAccount>>;
/**
*
* @summary Get status of a social account
* @param {string} socialAccountProvider The social account provider name.
*/
getSocialAccountStatus(socialAccountProvider: string): Promise<ApiResponse<SocialAccountStatus>>;
/**
*
* @summary Return a list of all social accounts of the current user
* @param {number} [page] Number of the page to be retrieved
* @param {number} [perPage] Number of items returned per page
*/
listSocialAccounts(page?: number, perPage?: number): Promise<ApiResponse<Array<SocialAccountRelation>>>;
}