import { SetConfig } from '../../helpers/config'; import { Config } from '../../interfaces/config.interface'; import { GetApplication, GetApplicationList, UpdateApplicationUserPayload, UpdateApplication, SearchApplication, GetApplicationRight, CreateAPIKeyPayload, CreateAPIKey, GetAPIKeyListUserPayload, GetAPIKeyList, GetAPIKeyInfoUserPayload, GetAPIKeyInfo, UpdateAPIKey, UpdateAPIKeyUserPayload, GetCollabortorListUserPayload, GetCollabortorList, GetCollaboratorInfoUserPayload, GetCollaboratorInfoOrgPayload, SetCollaboratorUserPayloadForUser, SetCollaboratorUserPayloadForOrg, GetCollaboratorInfoUser, GetCollaboratorInfoOrg, GetApplicationListUserPayload } from '../../interfaces/application.interface'; /** * @classdesc The Application class is a child class of the SetConfig class. The Application class has a constructor that takes * in a applicationID and a config object. The Application class has a bunch of methods that make API calls to the Identity Server. * @extends SetConfig */ export declare class Application extends SetConfig { private APPLICATION_ID; private API; /** * The constructor function is a special function that is called when an object is created from a * class * @param {string} applicationID - The ID of the application you want to use. * @param {Config} config - This is the configuration object that is passed to the constructor of the base class. */ constructor(applicationID: string, config: Config); /** * It returns the application information. * @returns {Output-GetApplication} * The response from the API. */ getApplicationInfo(): Promise; /** * It returns the list of applications that have been created by both user and organization (Default returns ). * @param {Input-GetApplicationList} [payload] - Input-GetApplicationList * @returns {Output-GetApplicationList} * The response from the API. */ getApplicationList(payload?: GetApplicationListUserPayload): Promise; /** * It updates the application information. * @param {Input-UpdateApplication} payload - Input-UpdateApplication * @returns {Output-UpdateApplication} * The response from the API. */ updateApplication(payload: UpdateApplicationUserPayload): Promise; /** * It deletes the application. * @returns {Output-EmptyPayload} * The response from the API. */ deleteApplication(): Promise; /** * It restores the application. * @returns {Output-EmptyPayload} * The response from the API. */ restoreApplication(): Promise; /** * It purges the application. * @returns {Output-EmptyPayload} * The response from the API. */ purgeApplication(): Promise; /** * It searches the application. * @returns {Output-SearchApplication} * The response from the API. */ searchApplication(): Promise; /** * It returns the application rights. * @returns {Output-GetApplicationRight} * The response from the API. */ getApplicationRight(): Promise; /** * It creates an API key for the application. * @param {Input-CreateAPIKeyForApplication} payload - Input-CreateAPIKeyForApplication * @returns {Output-CreateAPIKey} * The response from the API. */ createAPIKey(payload: CreateAPIKeyPayload): Promise; /** * It returns the list of API keys for the application. * @param {Input-GetAPIKeyList} [payload] - Input-GetAPIKeyList * @returns {Output-GetAPIKeyList} * The response from the API. */ getAPIKeyList(payload?: GetAPIKeyListUserPayload): Promise; /** * It returns the API key information for the application. * @param {Input-GetAPIKeyInfo} payload - Input-GetAPIKeyInfo * @returns {Output-GetAPIKeyInfo} * The response from the API. */ getAPIKeyInfo(payload: GetAPIKeyInfoUserPayload): Promise; /** * It returns the information of the api key that has been created by the user. * @param {Input-UpdateAPIKeyOfApplication} payload - Input-UpdateAPIKeyOfApplication * @returns {Output-UpdateAPIKey} * The response from the API. */ updateAPIKey(payload: UpdateAPIKeyUserPayload): Promise; /** * It returns rights of the collaborator (member) of the application. * @param {Input-GetCollaboratorInfoOfUser} payload - Input-GetCollaboratorInfoOfUser * @returns {Output-GetCollaboratorInfoOfUser} * The response from the API. */ getCollaboratorInfoOfUser(payload: GetCollaboratorInfoUserPayload): Promise; /** * It returns rights of the collaborator (member) of the application. * @param {Input-GetCollaboratorInfoOfOrg} payload - Input-GetCollaboratorInfoOfOrg * @returns {Output-GetCollaboratorInfoOfOrg} * The response from the API. */ getCollaboratorInfoOfOrg(payload: GetCollaboratorInfoOrgPayload): Promise; /** * It sets the rights of a collaborator (member) on the application. * @param {Input-SetCollaboratorOfUser} payload - Input-SetCollaboratorOfUser * @returns {Output-EmptyPayload} * The response from the API. */ setCollaboratorOfUser(payload: SetCollaboratorUserPayloadForUser): Promise; /** * It sets the rights of a collaborator (member) on the application. * @param {Input-SetCollaboratorOfOrg} payload - Input-SetCollaboratorOfOrg * @returns {Output-EmptyPayload} * The response from the API. */ setCollaboratorOfOrg(payload: SetCollaboratorUserPayloadForOrg): Promise; /** * It returns the list of collaborators (members) of the application. * @param {Input-GetCollabortorList} [payload] - Input-GetCollabortorList * @returns {Output-GetCollabortorList} * The response from the API. */ getCollaboratorList(payload?: GetCollabortorListUserPayload): Promise; }