mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[MIGRATION] - Fixed lint errors for empty function
This commit is contained in:
@@ -63,7 +63,7 @@ export class AlfrescoApi implements Emitter, AlfrescoApiType {
|
||||
|
||||
setConfig(config: AlfrescoApiConfig) {
|
||||
if (!config) {
|
||||
config = {};
|
||||
config = { /* empty */ };
|
||||
}
|
||||
|
||||
this.storage = Storage.getInstance();
|
||||
@@ -198,14 +198,14 @@ export class AlfrescoApi implements Emitter, AlfrescoApiType {
|
||||
|
||||
/**@private? */
|
||||
errorListeners() {
|
||||
this.contentClient.off('error', () => {});
|
||||
this.authClient.off('error', () => {});
|
||||
this.contentPrivateClient.off('error', () => {});
|
||||
this.processClient.off('error', () => {});
|
||||
this.searchClient.off('error', () => {});
|
||||
this.discoveryClient.off('error', () => {});
|
||||
this.gsClient.off('error', () => {});
|
||||
this.hxiConnectorClient.off('error', () => {});
|
||||
this.contentClient.off('error', () => { /* empty */ });
|
||||
this.authClient.off('error', () => { /* empty */ });
|
||||
this.contentPrivateClient.off('error', () => { /* empty */ });
|
||||
this.processClient.off('error', () => { /* empty */ });
|
||||
this.searchClient.off('error', () => { /* empty */ });
|
||||
this.discoveryClient.off('error', () => { /* empty */ });
|
||||
this.gsClient.off('error', () => { /* empty */ });
|
||||
this.hxiConnectorClient.off('error', () => { /* empty */ });
|
||||
|
||||
this.contentClient.on('error', (error: any) => {
|
||||
this.errorHandler(error);
|
||||
@@ -408,7 +408,7 @@ export class AlfrescoApi implements Emitter, AlfrescoApiType {
|
||||
const contentPromise = this.contentAuth.logout();
|
||||
contentPromise.then(
|
||||
() => (this.config.ticket = undefined),
|
||||
() => {}
|
||||
() => { /* empty */ }
|
||||
);
|
||||
return contentPromise;
|
||||
}
|
||||
|
@@ -91,7 +91,7 @@ export class AlfrescoApiClient implements ee.Emitter, LegacyHttpClient {
|
||||
/**
|
||||
* The default HTTP headers to be included for all API calls.
|
||||
*/
|
||||
defaultHeaders = {};
|
||||
defaultHeaders = { /* empty */ };
|
||||
|
||||
/**
|
||||
* The default HTTP timeout for all API calls.
|
||||
@@ -318,7 +318,7 @@ export class AlfrescoApiClient implements ee.Emitter, LegacyHttpClient {
|
||||
|
||||
return {
|
||||
apiClientEmitter,
|
||||
eventEmitter: ee({})
|
||||
eventEmitter: ee({ /* empty */ })
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -36,7 +36,7 @@ export class AlfrescoApiConfig {
|
||||
withCredentials?: boolean = false;
|
||||
oauthInit?: boolean = true;
|
||||
|
||||
constructor(input: any = { oauth2: {} }) {
|
||||
constructor(input: any = { oauth2: { /* empty */ } }) {
|
||||
Object.assign(this, input);
|
||||
|
||||
this.hostEcm = input.hostEcm ? input.hostEcm : 'http://127.0.0.1:8080';
|
||||
|
@@ -151,7 +151,7 @@ export class AdminEndpointsApi extends BaseApi {
|
||||
*
|
||||
* @param basicAuthId basicAuthId
|
||||
* @param tenantId tenantId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
removeBasicAuthConfiguration(basicAuthId: number, tenantId: number): Promise<void> {
|
||||
throwIfNotDefined(basicAuthId, 'basicAuthId');
|
||||
@@ -177,7 +177,7 @@ export class AdminEndpointsApi extends BaseApi {
|
||||
*
|
||||
* @param endpointConfigurationId endpointConfigurationId
|
||||
* @param tenantId tenantId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
removeEndpointConfiguration(endpointConfigurationId: number, tenantId: number): Promise<void> {
|
||||
throwIfNotDefined(endpointConfigurationId, 'endpointConfigurationId');
|
||||
|
@@ -33,7 +33,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
* Activate a group
|
||||
*
|
||||
* @param groupId groupId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
activate(groupId: number): Promise<any> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
@@ -52,7 +52,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
* Add users to a group
|
||||
*
|
||||
* @param groupId groupId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
addAllUsersToGroup(groupId: number): Promise<any> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
@@ -72,7 +72,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
*
|
||||
* @param groupId groupId
|
||||
* @param addGroupCapabilitiesRepresentation addGroupCapabilitiesRepresentation
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
addGroupCapabilities(groupId: number, addGroupCapabilitiesRepresentation: AddGroupCapabilitiesRepresentation): Promise<any> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
@@ -94,7 +94,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
*
|
||||
* @param groupId groupId
|
||||
* @param userId userId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
addGroupMember(groupId: number, userId: number): Promise<any> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
@@ -117,7 +117,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
* @param groupId groupId
|
||||
* @param relatedGroupId relatedGroupId
|
||||
* @param type type
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
addRelatedGroup(groupId: number, relatedGroupId: number, type: string): Promise<any> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
@@ -161,7 +161,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
*
|
||||
* @param groupId groupId
|
||||
* @param groupCapabilityId groupCapabilityId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteGroupCapability(groupId: number, groupCapabilityId: number): Promise<void> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
@@ -183,7 +183,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
*
|
||||
* @param groupId groupId
|
||||
* @param userId userId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteGroupMember(groupId: number, userId: number): Promise<void> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
@@ -204,7 +204,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
* Delete a group
|
||||
*
|
||||
* @param groupId groupId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteGroup(groupId: number): Promise<void> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
@@ -224,7 +224,7 @@ export class AdminGroupsApi extends BaseApi {
|
||||
*
|
||||
* @param groupId groupId
|
||||
* @param relatedGroupId relatedGroupId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteRelatedGroup(groupId: number, relatedGroupId: number): Promise<void> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
|
@@ -43,7 +43,7 @@ export class AdminTenantsApi extends BaseApi {
|
||||
* Delete a tenant
|
||||
*
|
||||
* @param tenantId tenantId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteTenant(tenantId: number): Promise<void> {
|
||||
throwIfNotDefined(tenantId, 'tenantId');
|
||||
@@ -82,7 +82,7 @@ export class AdminTenantsApi extends BaseApi {
|
||||
* Get a tenant's logo
|
||||
*
|
||||
* @param tenantId tenantId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
getTenantLogo(tenantId: number): Promise<any> {
|
||||
throwIfNotDefined(tenantId, 'tenantId');
|
||||
|
@@ -46,7 +46,7 @@ export class AdminUsersApi extends BaseApi {
|
||||
* Bulk update a list of users
|
||||
*
|
||||
* @param update update
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
bulkUpdateUsers(update: BulkUserUpdateRepresentation): Promise<any> {
|
||||
throwIfNotDefined(update, 'update');
|
||||
@@ -112,7 +112,7 @@ export class AdminUsersApi extends BaseApi {
|
||||
*
|
||||
* @param userId userId
|
||||
* @param userRepresentation userRepresentation
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
updateUserDetails(userId: number, userRepresentation: UserRepresentation): Promise<any> {
|
||||
throwIfNotDefined(userId, 'userId');
|
||||
|
@@ -32,7 +32,7 @@ export class AppDefinitionsApi extends BaseApi {
|
||||
* deleteAppDefinition
|
||||
*
|
||||
* @param appDefinitionId appDefinitionId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteAppDefinition(appDefinitionId: number): Promise<void> {
|
||||
throwIfNotDefined(appDefinitionId, 'appDefinitionId');
|
||||
@@ -53,7 +53,7 @@ export class AppDefinitionsApi extends BaseApi {
|
||||
* This will return a zip file containing the app definition model and all related models (process definitions and forms).
|
||||
*
|
||||
* @param modelId modelId from a runtime app or the id of an app definition model
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
exportAppDefinition(modelId: number): Promise<any> {
|
||||
throwIfNotDefined(modelId, 'modelId');
|
||||
|
@@ -73,7 +73,7 @@ export class ChecklistsApi extends BaseApi {
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @param orderRepresentation orderRepresentation
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
orderChecklist(taskId: string, orderRepresentation: ChecklistOrderRepresentation): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
|
@@ -43,7 +43,7 @@ export class ContentApi extends BaseApi {
|
||||
throwIfNotDefined(processInstanceId, 'processInstanceId');
|
||||
throwIfNotDefined(relatedContent, 'relatedContent');
|
||||
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
processInstanceId
|
||||
@@ -158,7 +158,7 @@ export class ContentApi extends BaseApi {
|
||||
* Remove a local content representation
|
||||
*
|
||||
* @param contentId contentId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteContent(contentId: number): Promise<void> {
|
||||
throwIfNotDefined(contentId, 'contentId');
|
||||
@@ -207,7 +207,7 @@ export class ContentApi extends BaseApi {
|
||||
*
|
||||
* @param contentId contentId
|
||||
* @param renditionType renditionType
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
getRawContent(contentId: number, renditionType?: string): Promise<any> {
|
||||
throwIfNotDefined(contentId, 'contentId');
|
||||
@@ -251,7 +251,7 @@ export class ContentApi extends BaseApi {
|
||||
): Promise<ResultListDataRepresentationRelatedContentRepresentation> {
|
||||
throwIfNotDefined(processInstanceId, 'processInstanceId');
|
||||
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
processInstanceId
|
||||
|
@@ -27,7 +27,7 @@ export class IDMSyncApi extends BaseApi {
|
||||
* Get log file for a sync log entry
|
||||
*
|
||||
* @param syncLogEntryId syncLogEntryId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
getLogFile(syncLogEntryId: number): Promise<any> {
|
||||
throwIfNotDefined(syncLogEntryId, 'syncLogEntryId');
|
||||
|
@@ -32,7 +32,7 @@ export class IntegrationAlfrescoCloudApi extends BaseApi {
|
||||
* Returns Alfresco OAuth HTML Page
|
||||
*
|
||||
* @param code code
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
confirmAuthorisation(code: string): Promise<any> {
|
||||
throwIfNotDefined(code, 'code');
|
||||
|
@@ -27,7 +27,7 @@ export class IntegrationBoxApi extends BaseApi {
|
||||
* Box Authorization
|
||||
* Returns Box OAuth HTML Page
|
||||
*
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
confirmAuthorisation(): Promise<any> {
|
||||
return this.get({
|
||||
@@ -41,7 +41,7 @@ export class IntegrationBoxApi extends BaseApi {
|
||||
*
|
||||
* @param userId userId
|
||||
* @param credentials credentials
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
createRepositoryAccount(userId: number, credentials: UserAccountCredentialsRepresentation): Promise<any> {
|
||||
throwIfNotDefined(userId, 'userId');
|
||||
@@ -62,7 +62,7 @@ export class IntegrationBoxApi extends BaseApi {
|
||||
* Delete account information
|
||||
*
|
||||
* @param userId userId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteRepositoryAccount(userId: number): Promise<void> {
|
||||
throwIfNotDefined(userId, 'userId');
|
||||
@@ -101,7 +101,7 @@ export class IntegrationBoxApi extends BaseApi {
|
||||
* @return Promise<ResultListDataRepresentationBoxContent>
|
||||
*/
|
||||
getFiles(opts?: { filter?: string; parent?: string }): Promise<ResultListDataRepresentationBoxContent> {
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
return this.get({
|
||||
path: '/api/enterprise/integration/box/files',
|
||||
@@ -114,7 +114,7 @@ export class IntegrationBoxApi extends BaseApi {
|
||||
* Get account information
|
||||
*
|
||||
* @param userId userId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
getRepositoryAccount(userId: number): Promise<any> {
|
||||
throwIfNotDefined(userId, 'userId');
|
||||
@@ -135,7 +135,7 @@ export class IntegrationBoxApi extends BaseApi {
|
||||
*
|
||||
* @param userId userId
|
||||
* @param credentials credentials
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
updateRepositoryAccount(userId: number, credentials: UserAccountCredentialsRepresentation): Promise<any> {
|
||||
throwIfNotDefined(userId, 'userId');
|
||||
|
@@ -26,7 +26,7 @@ export class IntegrationDriveApi extends BaseApi {
|
||||
* Drive Authorization
|
||||
* Returns Drive OAuth HTML Page
|
||||
*
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
confirmAuthorisation(): Promise<any> {
|
||||
return this.get({
|
||||
|
@@ -53,7 +53,7 @@ export class ModelsApi extends BaseApi {
|
||||
* @param opts Optional parameters
|
||||
* @param opts.cascade cascade
|
||||
* @param opts.deleteRuntimeApp deleteRuntimeApp
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteModel(modelId: number, opts?: { cascade?: boolean; deleteRuntimeApp?: boolean }): Promise<any> {
|
||||
throwIfNotDefined(modelId, 'modelId');
|
||||
|
@@ -27,7 +27,7 @@ export class ModelsBpmnApi extends BaseApi {
|
||||
*
|
||||
* @param processModelId processModelId
|
||||
* @param processModelHistoryId processModelHistoryId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
getHistoricProcessModelBpmn20Xml(processModelId: number, processModelHistoryId: number): Promise<any> {
|
||||
throwIfNotDefined(processModelId, 'processModelId');
|
||||
@@ -51,7 +51,7 @@ export class ModelsBpmnApi extends BaseApi {
|
||||
* Export a process definition as BPMN 2.0 XML
|
||||
*
|
||||
* @param processModelId processModelId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
getProcessModelBpmn20Xml(processModelId: number): Promise<any> {
|
||||
throwIfNotDefined(processModelId, 'processModelId');
|
||||
|
@@ -58,7 +58,7 @@ export class ProcessDefinitionsApi extends BaseApi {
|
||||
* @param processDefinitionId Process definition ID
|
||||
* @param family Identity type
|
||||
* @param identityId User or group ID
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteIdentityLink(processDefinitionId: string, family: string, identityId: string): Promise<void> {
|
||||
throwIfNotDefined(processDefinitionId, 'processDefinitionId');
|
||||
|
@@ -50,7 +50,7 @@ export class ProcessInstanceVariablesApi extends BaseApi {
|
||||
*
|
||||
* @param processInstanceId processInstanceId
|
||||
* @param variableName variableName
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteProcessInstanceVariable(processInstanceId: string, variableName: string): Promise<void> {
|
||||
throwIfNotDefined(processInstanceId, 'processInstanceId');
|
||||
|
@@ -85,7 +85,7 @@ export class ProcessInstancesApi extends BaseApi {
|
||||
* @param family family
|
||||
* @param identityId identityId
|
||||
* @param type type
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteIdentityLink(processInstanceId: string, family: string, identityId: string, type: string): Promise<void> {
|
||||
throwIfNotDefined(processInstanceId, 'processInstanceId');
|
||||
@@ -112,7 +112,7 @@ export class ProcessInstancesApi extends BaseApi {
|
||||
* If the process instance has not yet been completed, it will be cancelled. If it has already finished or been cancelled then the process instance will be removed and will no longer appear in queries.
|
||||
*
|
||||
* @param processInstanceId processInstanceId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteProcessInstance(processInstanceId: string): Promise<void> {
|
||||
throwIfNotDefined(processInstanceId, 'processInstanceId');
|
||||
|
@@ -33,7 +33,7 @@ export class RuntimeAppDefinitionsApi extends BaseApi {
|
||||
* Deploying an app allows the user to see it on his/her landing page. Apps must be published before they can be deployed.
|
||||
*
|
||||
* @param saveObject saveObject
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deployAppDefinitions(saveObject: RuntimeAppDefinitionSaveRepresentation): Promise<any> {
|
||||
throwIfNotDefined(saveObject, 'saveObject');
|
||||
|
@@ -28,7 +28,7 @@ export class RuntimeAppDeploymentsApi extends BaseApi {
|
||||
* Remove an app deployment
|
||||
*
|
||||
* @param appDeploymentId appDeploymentId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteAppDeployment(appDeploymentId: number): Promise<any> {
|
||||
throwIfNotDefined(appDeploymentId, 'appDeploymentId');
|
||||
@@ -47,7 +47,7 @@ export class RuntimeAppDeploymentsApi extends BaseApi {
|
||||
* Export the app archive for a deployment
|
||||
*
|
||||
* @param deploymentId deploymentId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
exportAppDefinition(deploymentId: string): Promise<any> {
|
||||
throwIfNotDefined(deploymentId, 'deploymentId');
|
||||
|
@@ -51,7 +51,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @param formIdentifier formIdentifier
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
attachForm(taskId: string, formIdentifier: FormIdentifierRepresentation): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -74,7 +74,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
* To claim a task (in case the task is assigned to a group)
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
claimTask(taskId: string): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -95,7 +95,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
* Use this endpoint to complete a standalone task or task without a form
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
completeTask(taskId: string): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -115,7 +115,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @param userIdentifier userIdentifier
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
delegateTask(taskId: string, userIdentifier: UserIdentifierRepresentation): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -137,7 +137,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @param groupId groupId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
involveGroup(taskId: string, groupId: string): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -159,7 +159,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @param userIdentifier userIdentifier
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
involveUser(taskId: string, userIdentifier: UserIdentifierRepresentation): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -180,7 +180,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
* Remove a form from a task
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
removeForm(taskId: string): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -200,7 +200,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @param identifier identifier
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
removeInvolvedUser(taskId: string, identifier: string | UserIdentifierRepresentation): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -231,7 +231,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
*
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
resolveTask(taskId: string): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -252,7 +252,7 @@ export class TaskActionsApi extends BaseApi {
|
||||
* To unclaim a task (in case the task was assigned to a group)
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
unclaimTask(taskId: string): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
|
@@ -34,7 +34,7 @@ export class TaskFormsApi extends BaseApi {
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @param completeTaskFormRepresentation completeTaskFormRepresentation
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
completeTaskForm(taskId: string, completeTaskFormRepresentation: CompleteFormRepresentation): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -154,7 +154,7 @@ export class TaskFormsApi extends BaseApi {
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @param saveTaskFormRepresentation saveTaskFormRepresentation
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
saveTaskForm(taskId: string, saveTaskFormRepresentation: SaveFormRepresentation): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
|
@@ -50,7 +50,7 @@ export class TaskVariablesApi extends BaseApi {
|
||||
* Create or update variables
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteAllLocalTaskVariables(taskId: string): Promise<void> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -71,7 +71,7 @@ export class TaskVariablesApi extends BaseApi {
|
||||
* @param taskId taskId
|
||||
* @param variableName variableName
|
||||
* @param opts Optional parameters
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteVariable(taskId: string, variableName: string, opts?: ScopeQuery): Promise<void> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
|
@@ -79,7 +79,7 @@ export class TasksApi extends BaseApi {
|
||||
* @param family family
|
||||
* @param identityId identityId
|
||||
* @param type type
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteIdentityLink(taskId: string, family: string, identityId: string, type: string): Promise<any> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
@@ -104,7 +104,7 @@ export class TasksApi extends BaseApi {
|
||||
* Delete a task
|
||||
*
|
||||
* @param taskId taskId
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteTask(taskId: string): Promise<void> {
|
||||
throwIfNotDefined(taskId, 'taskId');
|
||||
|
@@ -67,7 +67,7 @@ export class UserFiltersApi extends BaseApi {
|
||||
* Delete a process instance filter
|
||||
*
|
||||
* @param userFilterId userFilterId
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteUserProcessInstanceFilter(userFilterId: number): Promise<void> {
|
||||
throwIfNotDefined(userFilterId, 'userFilterId');
|
||||
@@ -86,7 +86,7 @@ export class UserFiltersApi extends BaseApi {
|
||||
* Delete a task filter
|
||||
*
|
||||
* @param userFilterId userFilterId
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteUserTaskFilter(userFilterId: number): Promise<void> {
|
||||
throwIfNotDefined(userFilterId, 'userFilterId');
|
||||
@@ -175,7 +175,7 @@ export class UserFiltersApi extends BaseApi {
|
||||
* Re-order the list of user process instance filters
|
||||
*
|
||||
* @param filterOrderRepresentation filterOrderRepresentation
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
orderUserProcessInstanceFilters(filterOrderRepresentation: UserFilterOrderRepresentation): Promise<any> {
|
||||
throwIfNotDefined(filterOrderRepresentation, 'filterOrderRepresentation');
|
||||
@@ -190,7 +190,7 @@ export class UserFiltersApi extends BaseApi {
|
||||
* Re-order the list of user task filters
|
||||
*
|
||||
* @param filterOrderRepresentation filterOrderRepresentation
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
orderUserTaskFilters(filterOrderRepresentation: UserFilterOrderRepresentation): Promise<any> {
|
||||
throwIfNotDefined(filterOrderRepresentation, 'filterOrderRepresentation');
|
||||
|
@@ -29,7 +29,7 @@ export class UserProfileApi extends BaseApi {
|
||||
* Change user password
|
||||
*
|
||||
* @param changePasswordRepresentation changePasswordRepresentation
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
changePassword(changePasswordRepresentation: ChangePasswordRepresentation): Promise<any> {
|
||||
throwIfNotDefined(changePasswordRepresentation, 'changePasswordRepresentation');
|
||||
|
@@ -44,7 +44,7 @@ export class UsersApi extends BaseApi {
|
||||
*
|
||||
* @param userId userId
|
||||
* @param actionRequest actionRequest
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
executeAction(userId: number, actionRequest: UserActionRepresentation): Promise<any> {
|
||||
throwIfNotDefined(userId, 'userId');
|
||||
@@ -65,7 +65,7 @@ export class UsersApi extends BaseApi {
|
||||
* Stream user profile picture
|
||||
*
|
||||
* @param userId userId
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
getUserProfilePictureUrl(userId: string): string {
|
||||
return this.apiClient.basePath + '/app/rest/users/' + userId + '/picture';
|
||||
@@ -100,7 +100,7 @@ export class UsersApi extends BaseApi {
|
||||
* @returns Promise<ResultListDataRepresentationLightUserRepresentation>
|
||||
*/
|
||||
getUsers(opts?: GetUsersQuery): Promise<ResultListDataRepresentationLightUserRepresentation> {
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const queryParams = {
|
||||
filter: opts['filter'],
|
||||
@@ -123,7 +123,7 @@ export class UsersApi extends BaseApi {
|
||||
* Request a password reset
|
||||
*
|
||||
* @param resetPassword resetPassword
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
requestPasswordReset(resetPassword: ResetPasswordRepresentation): Promise<any> {
|
||||
throwIfNotDefined(resetPassword, 'resetPassword');
|
||||
|
@@ -60,7 +60,7 @@ export class AuthenticationApi extends BaseApi {
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions.
|
||||
*
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteTicket(): Promise<void> {
|
||||
return this.delete({
|
||||
|
@@ -26,7 +26,7 @@ export interface UploadFileOpts extends CreateNodeOpts {
|
||||
export class UploadApi extends NodesApi {
|
||||
uploadFile(fileDefinition: any, relativePath?: string, rootFolderId?: string, nodeBody?: NodeBodyCreate, opts?: UploadFileOpts): Promise<NodeEntry | any> {
|
||||
rootFolderId = rootFolderId || '-root-';
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const nodeBodyRequired = {
|
||||
name: fileDefinition.name,
|
||||
@@ -36,7 +36,7 @@ export class UploadApi extends NodesApi {
|
||||
|
||||
nodeBody = Object.assign(nodeBodyRequired, nodeBody);
|
||||
|
||||
let formParam = Object.assign({}, nodeBody.properties || {});
|
||||
let formParam = Object.assign({ /* empty */ }, nodeBody.properties || { /* empty */ });
|
||||
formParam.filedata = fileDefinition;
|
||||
formParam.relativePath = relativePath;
|
||||
if (opts.name) {
|
||||
|
@@ -62,10 +62,10 @@ export class WebscriptApi extends BaseApi {
|
||||
return this.apiClient.callApi(
|
||||
'/' + servicePath + '/' + scriptPath,
|
||||
httpMethod,
|
||||
{},
|
||||
{ /* empty */ },
|
||||
scriptArgs,
|
||||
{},
|
||||
{},
|
||||
{ /* empty */ },
|
||||
{ /* empty */ },
|
||||
postBody,
|
||||
contentTypes,
|
||||
accepts,
|
||||
|
@@ -87,7 +87,7 @@ export class ActionsApi extends BaseApi {
|
||||
* @returns Promise<ActionDefinitionList>
|
||||
*/
|
||||
listActions(opts?: { orderBy?: string[] } & ContentPagingQuery & ContentFieldsQuery): Promise<ActionDefinitionList> {
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const queryParams = {
|
||||
skipCount: opts?.skipCount,
|
||||
@@ -126,7 +126,7 @@ export class ActionsApi extends BaseApi {
|
||||
*/
|
||||
nodeActions(nodeId: string, opts?: { orderBy?: string[] } & ContentPagingQuery & ContentFieldsQuery): Promise<ActionDefinitionList> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId
|
||||
|
@@ -46,7 +46,7 @@ export class ActivitiesApi extends BaseApi {
|
||||
ContentFieldsQuery
|
||||
): Promise<ActivityPaging> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
personId
|
||||
|
@@ -42,7 +42,7 @@ export class AuditApi extends BaseApi {
|
||||
* @param where Audit entries to permanently delete for an audit application, given an inclusive time period or range of ids. For example:
|
||||
* - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')
|
||||
* - where=(id BETWEEN ('1234', '4321')
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteAuditEntriesForAuditApp(auditApplicationId: string, where: string): Promise<void> {
|
||||
throwIfNotDefined(auditApplicationId, 'auditApplicationId');
|
||||
@@ -71,7 +71,7 @@ export class AuditApi extends BaseApi {
|
||||
*
|
||||
* @param auditApplicationId The identifier of an audit application.
|
||||
* @param auditEntryId The identifier of an audit entry.
|
||||
* @return Promise<{}>
|
||||
* @return Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteAuditEntry(auditApplicationId: string, auditEntryId: string): Promise<void> {
|
||||
throwIfNotDefined(auditApplicationId, 'auditApplicationId');
|
||||
@@ -228,7 +228,7 @@ export class AuditApi extends BaseApi {
|
||||
ContentIncludeQuery
|
||||
): Promise<AuditEntryPaging> {
|
||||
throwIfNotDefined(auditApplicationId, 'auditApplicationId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
auditApplicationId
|
||||
@@ -286,7 +286,7 @@ export class AuditApi extends BaseApi {
|
||||
ContentFieldsQuery
|
||||
): Promise<AuditEntryPaging> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId
|
||||
|
@@ -127,7 +127,7 @@ export class CategoriesApi extends BaseApi {
|
||||
* You must have admin rights to delete a category.
|
||||
*
|
||||
* @param categoryId The identifier of a category.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteCategory(categoryId: string): Promise<void> {
|
||||
throwIfNotDefined(categoryId, 'categoryId');
|
||||
@@ -147,7 +147,7 @@ export class CategoriesApi extends BaseApi {
|
||||
*
|
||||
* @param nodeId The identifier of a node.
|
||||
* @param categoryId The identifier of a category.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
unlinkNodeFromCategory(nodeId: string, categoryId: string): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
|
@@ -61,7 +61,7 @@ export class CommentsApi extends BaseApi {
|
||||
*
|
||||
* @param nodeId The identifier of a node.
|
||||
* @param commentId The identifier of a comment.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteComment(nodeId: string, commentId: string): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
|
@@ -38,7 +38,7 @@ export class DownloadsApi extends BaseApi {
|
||||
* The cancel operation is done asynchronously.
|
||||
*
|
||||
* @param downloadId The identifier of a download node.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
cancelDownload(downloadId: string): Promise<any> {
|
||||
throwIfNotDefined(downloadId, 'downloadId');
|
||||
|
@@ -109,7 +109,7 @@ export class FavoritesApi extends BaseApi {
|
||||
*
|
||||
* @param personId The identifier of a person.
|
||||
* @param favoriteId The identifier of a favorite.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteFavorite(personId: string, favoriteId: string): Promise<void> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
@@ -136,7 +136,7 @@ export class FavoritesApi extends BaseApi {
|
||||
*
|
||||
* @param personId The identifier of a person.
|
||||
* @param siteId The identifier of a site.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteSiteFavorite(personId: string, siteId: string): Promise<void> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
@@ -286,7 +286,7 @@ export class FavoritesApi extends BaseApi {
|
||||
ContentFieldsQuery
|
||||
): Promise<FavoritePaging> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
personId
|
||||
|
@@ -147,7 +147,7 @@ export class GroupsApi extends BaseApi {
|
||||
*/
|
||||
deleteGroup(groupId: string, opts?: DeleteGroupOpts): Promise<void> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const cascadeDelete = opts['cascade'] ? opts['cascade'] : false;
|
||||
|
||||
@@ -177,7 +177,7 @@ export class GroupsApi extends BaseApi {
|
||||
*
|
||||
* @param groupId The identifier of a group.
|
||||
* @param groupMemberId The identifier of a person or group.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteGroupMembership(groupId: string, groupMemberId: string): Promise<void> {
|
||||
throwIfNotDefined(groupId, 'groupId');
|
||||
|
@@ -198,7 +198,7 @@ export class NodesApi extends BaseApi {
|
||||
fields: buildCollectionParam(opts?.fields, 'csv')
|
||||
};
|
||||
|
||||
formParams = formParams || {};
|
||||
formParams = formParams || { /* empty */ };
|
||||
|
||||
let contentTypes;
|
||||
let returnType;
|
||||
@@ -297,7 +297,7 @@ export class NodesApi extends BaseApi {
|
||||
* @param targetId The identifier of a target node.
|
||||
* @param opts Optional parameters
|
||||
* @param opts.assocType Only delete associations of this type.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteAssociation(nodeId: string, targetId: string, opts?: { assocType?: string }): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
@@ -338,7 +338,7 @@ export class NodesApi extends BaseApi {
|
||||
* @param opts Optional parameters
|
||||
* @param opts.permanent If **true** then the node is deleted permanently, without moving to the trashcan.
|
||||
* Only the owner of the node or an admin can permanently delete the node. (default to false)
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteNode(nodeId: string, opts?: { permanent?: boolean }): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
@@ -393,7 +393,7 @@ export class NodesApi extends BaseApi {
|
||||
* @param childId The identifier of a child node.
|
||||
* @param opts Optional parameters
|
||||
* @param opts.assocType Only delete associations of this type.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteSecondaryChildAssociation(nodeId: string, childId: string, opts?: { assocType?: string }): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
@@ -476,7 +476,7 @@ export class NodesApi extends BaseApi {
|
||||
): Promise<Blob> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId
|
||||
@@ -486,7 +486,7 @@ export class NodesApi extends BaseApi {
|
||||
attachment: opts?.attachment ?? null
|
||||
};
|
||||
|
||||
const headerParams = {};
|
||||
const headerParams = { /* empty */ };
|
||||
|
||||
if (opts?.ifModifiedSince) {
|
||||
Object.defineProperty(headerParams, 'If-Modified-Since', { value: opts?.ifModifiedSince });
|
||||
@@ -622,7 +622,7 @@ export class NodesApi extends BaseApi {
|
||||
ContentPagingQuery
|
||||
): Promise<NodeAssociationPaging> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId
|
||||
@@ -671,7 +671,7 @@ export class NodesApi extends BaseApi {
|
||||
ContentPagingQuery
|
||||
): Promise<NodeChildAssociationPaging> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId
|
||||
@@ -712,7 +712,7 @@ export class NodesApi extends BaseApi {
|
||||
} & NodesIncludeQuery
|
||||
): Promise<NodeAssociationPaging> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId
|
||||
@@ -753,7 +753,7 @@ export class NodesApi extends BaseApi {
|
||||
ContentPagingQuery
|
||||
): Promise<NodeAssociationPaging> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId
|
||||
@@ -937,7 +937,7 @@ export class NodesApi extends BaseApi {
|
||||
): Promise<NodeEntry> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
throwIfNotDefined(contentBodyUpdate, 'contentBodyUpdate');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId
|
||||
|
@@ -60,7 +60,7 @@ export class PeopleApi extends BaseApi {
|
||||
* You can use the -me- string in place of <personId> to specify the currently authenticated user.
|
||||
*
|
||||
* @param personId The identifier of a person.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteAvatarImage(personId: string): Promise<void> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
@@ -212,7 +212,7 @@ export class PeopleApi extends BaseApi {
|
||||
*
|
||||
* @param personId The identifier of a person.
|
||||
* @param clientBody The client name to send email with app-specific url.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
requestPasswordReset(personId: string, clientBody: ClientBody): Promise<any> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
@@ -237,7 +237,7 @@ export class PeopleApi extends BaseApi {
|
||||
*
|
||||
* @param personId The identifier of a person.
|
||||
* @param passwordResetBody The reset password details
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
resetPassword(personId: string, passwordResetBody: PasswordResetBody): Promise<any> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
@@ -270,7 +270,7 @@ export class PeopleApi extends BaseApi {
|
||||
*
|
||||
* @param personId The identifier of a person.
|
||||
* @param contentBodyUpdate The binary content
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
updateAvatarImage(personId: string, contentBodyUpdate: string): Promise<any> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
|
@@ -76,7 +76,7 @@ export class PreferencesApi extends BaseApi {
|
||||
};
|
||||
|
||||
const queryParams = {
|
||||
...(opts || {}),
|
||||
...(opts || { /* empty */ }),
|
||||
fields: buildCollectionParam(opts?.fields, 'csv')
|
||||
};
|
||||
|
||||
|
@@ -129,7 +129,7 @@ export class QueriesApi extends BaseApi {
|
||||
*/
|
||||
findPeople(term: string, opts?: FindQuery): Promise<PersonPaging> {
|
||||
throwIfNotDefined(term, 'term');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const queryParams = {
|
||||
term,
|
||||
|
@@ -70,7 +70,7 @@ export class RatingsApi extends BaseApi {
|
||||
*
|
||||
* @param nodeId The identifier of a node.
|
||||
* @param ratingId The identifier of a rating.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteRating(nodeId: string, ratingId: string): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
|
@@ -30,7 +30,7 @@ export class RenditionsApi extends BaseApi {
|
||||
*
|
||||
* @param nodeId The identifier of a node.
|
||||
* @param renditionBodyCreate The rendition \"id\".
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
createRendition(nodeId: string, renditionBodyCreate: RenditionBodyCreate): Promise<any> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
|
@@ -61,7 +61,7 @@ export class SharedlinksApi extends BaseApi {
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions.
|
||||
*
|
||||
* @param sharedId The identifier of a shared link to a file.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteSharedLink(sharedId: string): Promise<void> {
|
||||
throwIfNotDefined(sharedId, 'sharedId');
|
||||
@@ -83,7 +83,7 @@ export class SharedlinksApi extends BaseApi {
|
||||
*
|
||||
* @param sharedId The identifier of a shared link to a file.
|
||||
* @param sharedLinkBodyEmail The shared link email to send.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
emailSharedLink(sharedId: string, sharedLinkBodyEmail: SharedLinkBodyEmail): Promise<any> {
|
||||
throwIfNotDefined(sharedId, 'sharedId');
|
||||
|
@@ -52,7 +52,7 @@ export class SitesApi extends BaseApi {
|
||||
* @param inviteeId The invitee username.
|
||||
* @param opts Optional parameters
|
||||
* @param opts.siteMembershipApprovalBody Accepting a request to join, optionally, allows assignment of a role to the user.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
approveSiteMembershipRequest(siteId: string, inviteeId: string, opts?: { siteMembershipApprovalBody?: any }): Promise<any> {
|
||||
throwIfNotDefined(siteId, 'siteId');
|
||||
@@ -93,7 +93,7 @@ export class SitesApi extends BaseApi {
|
||||
opts?: { skipConfiguration?: boolean; skipAddToFavorites?: boolean; fields?: string[] }
|
||||
): Promise<SiteEntry> {
|
||||
throwIfNotDefined(siteBodyCreate, 'siteBodyCreate');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const queryParams = {
|
||||
skipConfiguration: opts?.skipConfiguration,
|
||||
@@ -182,7 +182,7 @@ export class SitesApi extends BaseApi {
|
||||
* @param siteId The identifier of a site.
|
||||
* @param opts Optional parameters
|
||||
* @param opts.permanent Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan. (default to false)
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteSite(siteId: string, opts?: { permanent?: boolean }): Promise<void> {
|
||||
throwIfNotDefined(siteId, 'siteId');
|
||||
@@ -208,7 +208,7 @@ export class SitesApi extends BaseApi {
|
||||
*
|
||||
* @param siteId The identifier of a site.
|
||||
* @param personId The identifier of a person.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteSiteMembership(siteId: string, personId: string): Promise<void> {
|
||||
throwIfNotDefined(siteId, 'siteId');
|
||||
@@ -233,7 +233,7 @@ export class SitesApi extends BaseApi {
|
||||
*
|
||||
* @param personId The identifier of a person.
|
||||
* @param siteId The identifier of a site.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteSiteMembershipForPerson(personId: string, siteId: string): Promise<void> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
@@ -258,7 +258,7 @@ export class SitesApi extends BaseApi {
|
||||
*
|
||||
* @param personId The identifier of a person.
|
||||
* @param siteId The identifier of a site.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteSiteMembershipRequestForPerson(personId: string, siteId: string): Promise<void> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
@@ -542,7 +542,7 @@ export class SitesApi extends BaseApi {
|
||||
listSiteMemberships(siteId: string, opts?: { where?: string } & ContentPagingQuery & ContentFieldsQuery): Promise<SiteMemberPaging> {
|
||||
throwIfNotDefined(siteId, 'siteId');
|
||||
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
siteId
|
||||
@@ -602,7 +602,7 @@ export class SitesApi extends BaseApi {
|
||||
opts?: { where?: string; orderBy?: string[]; relations?: string[] } & ContentPagingQuery & ContentFieldsQuery
|
||||
): Promise<SiteRolePaging> {
|
||||
throwIfNotDefined(personId, 'personId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
personId
|
||||
@@ -700,7 +700,7 @@ export class SitesApi extends BaseApi {
|
||||
* @param inviteeId The invitee username.
|
||||
* @param opts Optional parameters
|
||||
* @param opts.siteMembershipRejectionBody Rejecting a request to join, optionally, allows the inclusion of comment.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
rejectSiteMembershipRequest(siteId: string, inviteeId: string, opts?: { siteMembershipRejectionBody?: any }): Promise<any> {
|
||||
throwIfNotDefined(siteId, 'siteId');
|
||||
@@ -739,7 +739,7 @@ export class SitesApi extends BaseApi {
|
||||
throwIfNotDefined(siteId, 'siteId');
|
||||
throwIfNotDefined(siteBodyUpdate, 'siteBodyUpdate');
|
||||
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
siteId
|
||||
@@ -994,7 +994,7 @@ export class SitesApi extends BaseApi {
|
||||
*
|
||||
* @param siteId The identifier of a site.
|
||||
* @param groupId The authorityId of a group.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteSiteGroupMembership(siteId: string, groupId: string): Promise<void> {
|
||||
throwIfNotDefined(siteId, 'siteId');
|
||||
|
@@ -61,7 +61,7 @@ export class TagsApi extends BaseApi {
|
||||
*
|
||||
* @param nodeId The identifier of a node.
|
||||
* @param tagId The identifier of a tag.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteTagFromNode(nodeId: string, tagId: string): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
@@ -113,9 +113,9 @@ export class TagsApi extends BaseApi {
|
||||
* @returns Promise<TagPaging>
|
||||
*/
|
||||
listTags(opts?: { tag?: string; matching?: boolean } & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<TagPaging> {
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {};
|
||||
const pathParams = { /* empty */ };
|
||||
|
||||
let where: string;
|
||||
if (opts?.tag) {
|
||||
@@ -198,7 +198,7 @@ export class TagsApi extends BaseApi {
|
||||
* Deletes a tag by **tagId**. This will cause the tag to be removed from all nodes.
|
||||
*
|
||||
* @param tagId The identifier of a tag.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteTag(tagId: string): Promise<void> {
|
||||
throwIfNotDefined(tagId, 'tagId');
|
||||
|
@@ -38,7 +38,7 @@ export class TrashcanApi extends BaseApi {
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions.
|
||||
*
|
||||
* @param nodeId The identifier of a node.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteDeletedNode(nodeId: string): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
@@ -112,7 +112,7 @@ export class TrashcanApi extends BaseApi {
|
||||
): Promise<Blob> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
throwIfNotDefined(renditionId, 'renditionId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId,
|
||||
@@ -271,7 +271,7 @@ export class TrashcanApi extends BaseApi {
|
||||
*/
|
||||
listDeletedNodes(opts?: ContentPagingQuery & ContentIncludeQuery): Promise<DeletedNodesPaging> {
|
||||
const queryParams = {
|
||||
...(opts || {}),
|
||||
...(opts || { /* empty */ }),
|
||||
include: buildCollectionParam(opts?.include, 'csv')
|
||||
};
|
||||
|
||||
|
@@ -35,7 +35,7 @@ export class VersionsApi extends BaseApi {
|
||||
* @param nodeId The identifier of a node.
|
||||
* @param versionId The identifier of a version, ie. version label, within the version history of a node.
|
||||
* @param renditionBodyCreate The rendition \"id\".
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
createVersionRendition(nodeId: string, versionId: string, renditionBodyCreate: RenditionBodyCreate): Promise<any> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
@@ -73,7 +73,7 @@ export class VersionsApi extends BaseApi {
|
||||
*
|
||||
* @param nodeId The identifier of a node.
|
||||
* @param versionId The identifier of a version, ie. version label, within the version history of a node.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteVersion(nodeId: string, versionId: string): Promise<void> {
|
||||
throwIfNotDefined(nodeId, 'nodeId');
|
||||
@@ -242,7 +242,7 @@ export class VersionsApi extends BaseApi {
|
||||
throwIfNotDefined(versionId, 'versionId');
|
||||
throwIfNotDefined(renditionId, 'renditionId');
|
||||
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
nodeId,
|
||||
|
@@ -129,7 +129,7 @@ export class ClassificationGuidesApi extends BaseApi {
|
||||
* Delete a classification guide
|
||||
*
|
||||
* @param classificationGuideId The identifier for the classification guide
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteClassificationGuide(classificationGuideId: string): Promise<void> {
|
||||
throwIfNotDefined(classificationGuideId, 'classificationGuideId');
|
||||
@@ -148,7 +148,7 @@ export class ClassificationGuidesApi extends BaseApi {
|
||||
* Delete a topic
|
||||
*
|
||||
* @param topicId The identifier for the topic
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteTopic(topicId: string): Promise<void> {
|
||||
throwIfNotDefined(topicId, 'topicId');
|
||||
@@ -176,7 +176,7 @@ export class ClassificationGuidesApi extends BaseApi {
|
||||
* @returns Promise<ClassificationGuidePaging>
|
||||
*/
|
||||
listClassificationGuides(opts?: { orderBy?: string[]; where?: string } & GsPagingQuery & GsIncludeQuery): Promise<ClassificationGuidePaging> {
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const queryParams = {
|
||||
include: buildCollectionParam(opts?.include, 'csv'),
|
||||
@@ -218,7 +218,7 @@ export class ClassificationGuidesApi extends BaseApi {
|
||||
GsIncludeQuery
|
||||
): Promise<SubtopicPaging> {
|
||||
throwIfNotDefined(topicId, 'topicId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
topicId
|
||||
@@ -267,7 +267,7 @@ export class ClassificationGuidesApi extends BaseApi {
|
||||
GsIncludeQuery
|
||||
): Promise<TopicPaging> {
|
||||
throwIfNotDefined(classificationGuideId, 'classificationGuideId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
classificationGuideId
|
||||
|
@@ -49,7 +49,7 @@ export class ClassificationReasonsApi extends BaseApi {
|
||||
* There must be at least one classification reason.
|
||||
*
|
||||
* @param classificationReasonId The identifier for the classification reason
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteClassificationReason(classificationReasonId: string): Promise<void> {
|
||||
throwIfNotDefined(classificationReasonId, 'classificationReasonId');
|
||||
|
@@ -44,7 +44,7 @@ export class DeclassificationExemptionsApi extends BaseApi {
|
||||
* You can't delete a classification exemption that is being used to classify content.
|
||||
*
|
||||
* @param declassificationExemptionId The identifier for the declassification exemption
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteDeclassificationExemption(declassificationExemptionId: string): Promise<void> {
|
||||
throwIfNotDefined(declassificationExemptionId, 'declassificationExemptionId');
|
||||
|
@@ -21,4 +21,4 @@ import { PathElement } from '../../content-rest-api';
|
||||
* An ordered list of ancestors starting with the classification guide and ending with the parent of this topic.
|
||||
* This field is only returned when requested.
|
||||
*/
|
||||
export interface Path extends Array<PathElement> {}
|
||||
export interface Path extends Array<PathElement> { /* empty */ }
|
||||
|
@@ -17,4 +17,4 @@
|
||||
|
||||
import { SecurityMark } from './securityMark';
|
||||
|
||||
export interface SecurityMarks extends Array<SecurityMark> {}
|
||||
export interface SecurityMarks extends Array<SecurityMark> { /* empty */ }
|
||||
|
@@ -17,4 +17,4 @@
|
||||
|
||||
import { SecurityMarkBody } from './securityMarkBody';
|
||||
|
||||
export interface SecurityMarksBody extends Array<SecurityMarkBody> {}
|
||||
export interface SecurityMarksBody extends Array<SecurityMarkBody> { /* empty */ }
|
||||
|
@@ -49,7 +49,7 @@ export class GsSitesApi extends BaseApi {
|
||||
/**
|
||||
* Delete the Records Management (RM) site
|
||||
*
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteRMSite(): Promise<void> {
|
||||
return this.delete({
|
||||
|
@@ -73,7 +73,7 @@ export class RecordCategoriesApi extends BaseApi {
|
||||
* Delete a record category
|
||||
*
|
||||
* @param recordCategoryId The identifier of a record category.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteRecordCategory(recordCategoryId: string): Promise<void> {
|
||||
throwIfNotDefined(recordCategoryId, 'recordCategoryId');
|
||||
|
@@ -63,7 +63,7 @@ export class RecordFoldersApi extends BaseApi {
|
||||
* Deleted file plan components cannot be recovered, they are deleted permanently.
|
||||
*
|
||||
* @param recordFolderId The identifier of a record folder.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteRecordFolder(recordFolderId: string): Promise<void> {
|
||||
throwIfNotDefined(recordFolderId, 'recordFolderId');
|
||||
|
@@ -60,7 +60,7 @@ export class RecordsApi extends BaseApi {
|
||||
* Delete a record. Deleted file plan components cannot be recovered, they are deleted permanently.
|
||||
*
|
||||
* @param recordId The identifier of a record.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteRecord(recordId: string): Promise<void> {
|
||||
throwIfNotDefined(recordId, 'recordId');
|
||||
@@ -154,7 +154,7 @@ export class RecordsApi extends BaseApi {
|
||||
* the attachment will be returned in the response. (default to true)
|
||||
* @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.
|
||||
* Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
getRecordContent(
|
||||
recordId: string,
|
||||
|
@@ -72,7 +72,7 @@ export class TransferContainersApi extends BaseApi {
|
||||
opts?: RecordsSourceQuery & RecordsIncludeQuery & RecordsPagingQuery
|
||||
): Promise<TransferContainerAssociationPaging> {
|
||||
throwIfNotDefined(transferContainerId, 'transferContainerId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
transferContainerId
|
||||
@@ -109,7 +109,7 @@ export class TransferContainersApi extends BaseApi {
|
||||
): Promise<TransferContainerEntry> {
|
||||
throwIfNotDefined(transferContainerId, 'transferContainerId');
|
||||
throwIfNotDefined(nodeBodyUpdate, 'nodeBodyUpdate');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
transferContainerId
|
||||
|
@@ -73,7 +73,7 @@ export class UnfiledRecordFoldersApi extends BaseApi {
|
||||
* Delete an unfiled record folder. Deleted file plan components cannot be recovered, they are deleted permanently.
|
||||
*
|
||||
* @param unfiledRecordFolderId The identifier of an unfiled record folder.
|
||||
* @returns Promise<{}>
|
||||
* @returns Promise<{ /* empty */ }>
|
||||
*/
|
||||
deleteUnfiledRecordFolder(unfiledRecordFolderId: string): Promise<void> {
|
||||
throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');
|
||||
@@ -150,7 +150,7 @@ export class UnfiledRecordFoldersApi extends BaseApi {
|
||||
RecordsSourceQuery
|
||||
): Promise<UnfiledRecordFolderAssociationPaging> {
|
||||
throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');
|
||||
opts = opts || {};
|
||||
opts = opts || { /* empty */ };
|
||||
|
||||
const pathParams = {
|
||||
unfiledRecordFolderId
|
||||
|
@@ -20,4 +20,4 @@ import { RequestFacetQueriesInner } from './requestFacetQueriesInner';
|
||||
/**
|
||||
* Facet queries to include
|
||||
*/
|
||||
export interface RequestFacetQueries extends Array<RequestFacetQueriesInner> {}
|
||||
export interface RequestFacetQueries extends Array<RequestFacetQueriesInner> { /* empty */ }
|
||||
|
@@ -21,4 +21,4 @@ You can use this parameter to restrict the fields returned within a response if,
|
||||
The list applies to a returned individual entity or entries within a collection.
|
||||
If the **include** parameter is used as well then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
||||
*/
|
||||
export interface RequestFields extends Array<string> {}
|
||||
export interface RequestFields extends Array<string> { /* empty */ }
|
||||
|
@@ -20,4 +20,4 @@ import { RequestFilterQueriesInner } from './requestFilterQueriesInner';
|
||||
/**
|
||||
* Filter Queries. Constraints that apply to the results set but do not affect the score of each entry.
|
||||
*/
|
||||
export interface RequestFilterQueries extends Array<RequestFilterQueriesInner> {}
|
||||
export interface RequestFilterQueries extends Array<RequestFilterQueriesInner> { /* empty */ }
|
||||
|
@@ -24,4 +24,4 @@
|
||||
* allowableOperations
|
||||
* association
|
||||
*/
|
||||
export interface RequestInclude extends Array<string> {}
|
||||
export interface RequestInclude extends Array<string> { /* empty */ }
|
||||
|
@@ -20,4 +20,4 @@ import { RequestSortDefinitionInner } from './requestSortDefinitionInner';
|
||||
/**
|
||||
* How to sort the rows? An array of sort specifications. The array order defines the ordering precedence.
|
||||
*/
|
||||
export interface RequestSortDefinition extends Array<RequestSortDefinitionInner> {}
|
||||
export interface RequestSortDefinition extends Array<RequestSortDefinitionInner> { /* empty */ }
|
||||
|
@@ -24,4 +24,4 @@ import { RequestTemplatesInner } from './requestTemplatesInner';
|
||||
* to generate
|
||||
* cm:name:example cm:name:example
|
||||
*/
|
||||
export interface RequestTemplates extends Array<RequestTemplatesInner> {}
|
||||
export interface RequestTemplates extends Array<RequestTemplatesInner> { /* empty */ }
|
||||
|
@@ -65,7 +65,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
authentications: Authentication = {
|
||||
oauth2: { accessToken: '' },
|
||||
type: 'oauth2',
|
||||
basicAuth: {}
|
||||
basicAuth: { /* empty */ }
|
||||
};
|
||||
|
||||
iFrameHashListener: any;
|
||||
@@ -152,15 +152,15 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
}
|
||||
|
||||
getProfile(): Promise<Userinfo> {
|
||||
const postBody = {};
|
||||
const pathParams = {};
|
||||
const queryParams = {};
|
||||
const postBody = { /* empty */ };
|
||||
const pathParams = { /* empty */ };
|
||||
const queryParams = { /* empty */ };
|
||||
|
||||
const headerParams = {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
};
|
||||
|
||||
const formParams = {};
|
||||
const formParams = { /* empty */ };
|
||||
|
||||
const contentTypes = ['application/x-www-form-urlencoded'];
|
||||
const accepts = ['application/json'];
|
||||
@@ -465,7 +465,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
}
|
||||
|
||||
parseQueryString(queryString: string): any {
|
||||
const data: { [key: string]: any } = {};
|
||||
const data: { [key: string]: any } = { /* empty */ };
|
||||
let pairs: string[];
|
||||
let pair: string;
|
||||
let separatorIndex: number;
|
||||
@@ -588,7 +588,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
const contentTypes = ['application/x-www-form-urlencoded'];
|
||||
const accepts = ['application/json'];
|
||||
|
||||
const promise = this.callCustomApi(this.discovery.tokenEndpoint, 'POST', {}, {}, headerParams, formParams, {}, contentTypes, accepts).then(
|
||||
const promise = this.callCustomApi(this.discovery.tokenEndpoint, 'POST', { /* empty */ }, { /* empty */ }, headerParams, formParams, { /* empty */ }, contentTypes, accepts).then(
|
||||
(data: any) => {
|
||||
this.saveUsername(username);
|
||||
this.silentRefresh();
|
||||
@@ -641,7 +641,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
const accepts = ['application/json'];
|
||||
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
this.callCustomApi(this.discovery.tokenEndpoint, 'POST', {}, {}, headerParams, formParams, {}, contentTypes, accepts).then(
|
||||
this.callCustomApi(this.discovery.tokenEndpoint, 'POST', { /* empty */ }, { /* empty */ }, headerParams, formParams, { /* empty */ }, contentTypes, accepts).then(
|
||||
(data: any) => {
|
||||
this.setToken(data.access_token, data.refresh_token);
|
||||
resolve(data);
|
||||
|
@@ -101,7 +101,7 @@ export class ProcessAuth extends AlfrescoApiClient {
|
||||
const accepts = ['application/json'];
|
||||
|
||||
const promise: any = new Promise<string>((resolve, reject) => {
|
||||
this.callApi('/app/authentication', 'POST', {}, {}, headerParams, formParams, {}, contentTypes, accepts).then(
|
||||
this.callApi('/app/authentication', 'POST', { /* empty */ }, { /* empty */ }, headerParams, formParams, { /* empty */ }, contentTypes, accepts).then(
|
||||
() => {
|
||||
this.saveUsername(username);
|
||||
const ticket = this.basicAuth(this.authentications.basicAuth.username, this.authentications.basicAuth.password);
|
||||
@@ -140,7 +140,7 @@ export class ProcessAuth extends AlfrescoApiClient {
|
||||
const accepts = ['application/json'];
|
||||
|
||||
const promise: any = new Promise<void>((resolve, reject) => {
|
||||
this.callApi('/app/logout', 'GET', {}, {}, {}, {}, {}, contentTypes, accepts).then(
|
||||
this.callApi('/app/logout', 'GET', { /* empty */ }, { /* empty */ }, { /* empty */ }, { /* empty */ }, { /* empty */ }, contentTypes, accepts).then(
|
||||
() => {
|
||||
this.invalidateSession();
|
||||
promise.emit('logout');
|
||||
|
@@ -88,7 +88,7 @@ export class SuperagentHttpClient implements HttpClient {
|
||||
}
|
||||
|
||||
if (response?.text) {
|
||||
error = error || {};
|
||||
error = error || { /* empty */ };
|
||||
reject(Object.assign(error, { message: response.text }));
|
||||
} else {
|
||||
// eslint-disable-next-line prefer-promise-reject-errors
|
||||
@@ -102,7 +102,7 @@ export class SuperagentHttpClient implements HttpClient {
|
||||
securityOptions.authentications.cookie = response.header['set-cookie'][0];
|
||||
}
|
||||
}
|
||||
let data = {};
|
||||
let data = { /* empty */ };
|
||||
if (response.type === 'text/html') {
|
||||
data = SuperagentHttpClient.deserialize(response);
|
||||
} else {
|
||||
@@ -140,7 +140,7 @@ export class SuperagentHttpClient implements HttpClient {
|
||||
) {
|
||||
const request = superagent(httpMethod, url);
|
||||
|
||||
const { isBpmRequest, authentications, defaultHeaders = {}, enableCsrf, withCredentials = false } = securityOptions;
|
||||
const { isBpmRequest, authentications, defaultHeaders = { /* empty */ }, enableCsrf, withCredentials = false } = securityOptions;
|
||||
|
||||
// apply authentications
|
||||
this.applyAuthToRequest(request, authentications);
|
||||
@@ -337,7 +337,7 @@ export class SuperagentHttpClient implements HttpClient {
|
||||
* @returns normalized parameters.
|
||||
*/
|
||||
private static normalizeParams(params: { [key: string]: any }): { [key: string]: any } {
|
||||
const newParams: { [key: string]: any } = {};
|
||||
const newParams: { [key: string]: any } = { /* empty */ };
|
||||
|
||||
for (const key in params) {
|
||||
if (Object.prototype.hasOwnProperty.call(params, key) && params[key] !== undefined && params[key] !== null) {
|
||||
|
@@ -22,7 +22,7 @@ import { BpmAuthMock, EcmAuthMock, OAuthMock } from './mockObjects';
|
||||
describe('Basic configuration test', () => {
|
||||
describe('config parameter ', () => {
|
||||
it('Should basePath have a default value', () => {
|
||||
const alfrescoJsApi = new AlfrescoApi({});
|
||||
const alfrescoJsApi = new AlfrescoApi({ /* empty */ });
|
||||
|
||||
assert.equal(alfrescoJsApi.contentClient.basePath, 'http://127.0.0.1:8080/alfresco/api/-default-/public/alfresco/versions/1');
|
||||
});
|
||||
|
@@ -29,7 +29,7 @@ describe('Bpm Auth test', () => {
|
||||
});
|
||||
|
||||
it('should remember username on login', () => {
|
||||
const auth = new ProcessAuth({});
|
||||
const auth = new ProcessAuth({ /* empty */ });
|
||||
auth.login('johndoe', 'password');
|
||||
assert.equal(auth.authentications.basicAuth.username, 'johndoe');
|
||||
});
|
||||
@@ -140,7 +140,7 @@ describe('Bpm Auth test', () => {
|
||||
});
|
||||
|
||||
processAuth.login('wrong', 'name').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error) => {
|
||||
assert.equal(error.status, 401);
|
||||
done();
|
||||
@@ -159,7 +159,7 @@ describe('Bpm Auth test', () => {
|
||||
|
||||
const loginPromise = processAuth.login('wrong', 'name');
|
||||
|
||||
loginPromise.catch(() => {});
|
||||
loginPromise.catch(() => { /* empty */ });
|
||||
loginPromise.on('unauthorized', () => {
|
||||
done();
|
||||
});
|
||||
@@ -174,7 +174,7 @@ describe('Bpm Auth test', () => {
|
||||
});
|
||||
|
||||
const loginPromise = processAuth.login('wrong', 'name');
|
||||
loginPromise.catch(() => {});
|
||||
loginPromise.catch(() => { /* empty */ });
|
||||
loginPromise.on('forbidden', () => {
|
||||
done();
|
||||
});
|
||||
@@ -190,7 +190,7 @@ describe('Bpm Auth test', () => {
|
||||
|
||||
const loginPromise = processAuth.login('admin', 'admin');
|
||||
|
||||
loginPromise.catch(() => {});
|
||||
loginPromise.catch(() => { /* empty */ });
|
||||
loginPromise.on('success', () => {
|
||||
done();
|
||||
});
|
||||
|
@@ -52,7 +52,7 @@ describe('Categories', () => {
|
||||
it('should return 404 while getting subcategories for not existing category', (done) => {
|
||||
categoriesMock.get404SubcategoryNotExist('notExistingId');
|
||||
categoriesApi.getSubcategories('notExistingId').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
@@ -72,7 +72,7 @@ describe('Categories', () => {
|
||||
it('should return 404 while getting category with categoryId when category not exists', (done) => {
|
||||
categoriesMock.get404CategoryNotExist('notExistingId');
|
||||
categoriesApi.getCategory('notExistingId').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
@@ -92,7 +92,7 @@ describe('Categories', () => {
|
||||
it('should return 403 while getting categories linked to node with nodeId if user has no rights to get from node', (done) => {
|
||||
categoriesMock.get403NodeCategoryLinksPermissionDenied('testNode');
|
||||
categoriesApi.getCategoryLinksForNode('testNode').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 403);
|
||||
done();
|
||||
@@ -103,7 +103,7 @@ describe('Categories', () => {
|
||||
it('should return 404 while getting categories linked to node with nodeId if node does not exist', (done) => {
|
||||
categoriesMock.get404NodeNotExist('testNode');
|
||||
categoriesApi.getCategoryLinksForNode('testNode').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
@@ -121,7 +121,7 @@ describe('Categories', () => {
|
||||
it('should return 404 while unlinking category if category with categoryId or node with nodeId does not exist', (done) => {
|
||||
categoriesMock.get404CategoryUnlinkNotFound('testNode', 'testId1');
|
||||
categoriesApi.unlinkNodeFromCategory('testNode', 'testId1').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
@@ -132,7 +132,7 @@ describe('Categories', () => {
|
||||
it('should return 403 while unlinking category if user has no rights to unlink', (done) => {
|
||||
categoriesMock.get403CategoryUnlinkPermissionDenied('testNode', 'testId1');
|
||||
categoriesApi.unlinkNodeFromCategory('testNode', 'testId1').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 403);
|
||||
done();
|
||||
@@ -152,7 +152,7 @@ describe('Categories', () => {
|
||||
it('should return 404 while updating category if category with categoryId does not exist', (done) => {
|
||||
categoriesMock.get404CategoryUpdateNotFound('testId1');
|
||||
categoriesApi.updateCategory('testId1', { name: 'testName1' }).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
@@ -163,7 +163,7 @@ describe('Categories', () => {
|
||||
it('should return 403 while updating category if user has no rights to update', (done) => {
|
||||
categoriesMock.get403CategoryUpdatePermissionDenied('testId1');
|
||||
categoriesApi.updateCategory('testId1', { name: 'testName1' }).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 403);
|
||||
done();
|
||||
@@ -183,7 +183,7 @@ describe('Categories', () => {
|
||||
it('should return 409 while creating subcategory if subcategory already exists', (done) => {
|
||||
categoriesMock.get409CategoryCreateAlreadyExists('testId1');
|
||||
categoriesApi.createSubcategories('testId1', [{ name: 'testName10' }]).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 409);
|
||||
done();
|
||||
@@ -194,7 +194,7 @@ describe('Categories', () => {
|
||||
it('should return 403 while creating category if user has no rights to create', (done) => {
|
||||
categoriesMock.get403CategoryCreatedPermissionDenied('testId1');
|
||||
categoriesApi.createSubcategories('testId1', [{ name: 'testName10' }]).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 403);
|
||||
done();
|
||||
@@ -231,7 +231,7 @@ describe('Categories', () => {
|
||||
it('should return 404 while linking category if node with nodeId or category with categoryId does not exist', (done) => {
|
||||
categoriesMock.get404CategoryLinkNotFound('testNode');
|
||||
categoriesApi.linkNodeToCategory('testNode', [{ categoryId: 'testId1' }]).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
@@ -242,7 +242,7 @@ describe('Categories', () => {
|
||||
it('should return 403 while linking category if user has no rights to link', (done) => {
|
||||
categoriesMock.get403CategoryLinkPermissionDenied('testNode');
|
||||
categoriesApi.linkNodeToCategory('testNode', [{ categoryId: 'testId1' }]).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 403);
|
||||
done();
|
||||
@@ -253,7 +253,7 @@ describe('Categories', () => {
|
||||
it('should return 405 while linking category if node of this type cannot be assigned to category', (done) => {
|
||||
categoriesMock.get405CategoryLinkCannotAssign('testNode');
|
||||
categoriesApi.linkNodeToCategory('testNode', [{ categoryId: 'testId1' }]).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: { status: number }) => {
|
||||
assert.equal(error.status, 405);
|
||||
done();
|
||||
|
@@ -58,7 +58,7 @@ describe('Node', () => {
|
||||
nodeMock.get404ChildrenNotExist();
|
||||
|
||||
nodesApi.listNodeChildren('b4cff62a-664d-4d45-9302-98723eac1319').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
@@ -102,7 +102,7 @@ describe('Node', () => {
|
||||
nodeMock.get404DeleteNotFound();
|
||||
|
||||
nodesApi.deleteNode('80a94ac8-test-47ad-864e-5d939424c47c').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
@@ -114,7 +114,7 @@ describe('Node', () => {
|
||||
nodeMock.get403DeletePermissionDenied();
|
||||
|
||||
nodesApi.deleteNode('80a94ac8-3ece-47ad-864e-5d939424c47c').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
() => {
|
||||
done();
|
||||
}
|
||||
@@ -142,7 +142,7 @@ describe('Node', () => {
|
||||
nodeMock.get404DeleteNotFound();
|
||||
|
||||
nodesApi.deleteNodes(['80a94ac8-3ece-47ad-864e-5d939424c47c', '80a94ac8-test-47ad-864e-5d939424c47c']).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error) => {
|
||||
assert.equal(error.status, 404);
|
||||
done();
|
||||
|
@@ -56,7 +56,7 @@ describe('Queries', () => {
|
||||
nodesMock.get401Response();
|
||||
|
||||
queriesApi.findNodes(searchTerm).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
() => {
|
||||
done();
|
||||
}
|
||||
|
@@ -59,7 +59,7 @@ describe('Tags', () => {
|
||||
tagMock.get401Response();
|
||||
|
||||
tagsApi.listTags().then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
() => {
|
||||
done();
|
||||
}
|
||||
|
@@ -80,7 +80,7 @@ describe('WebScript', () => {
|
||||
|
||||
const webscriptPromise: any = webscriptApi.executeWebScript('GET', scriptPath, null, contextRoot, servicePath);
|
||||
|
||||
webscriptPromise.catch(() => {});
|
||||
webscriptPromise.catch(() => { /* empty */ });
|
||||
webscriptPromise.on('success', () => {
|
||||
done();
|
||||
});
|
||||
@@ -91,7 +91,7 @@ describe('WebScript', () => {
|
||||
|
||||
const webscriptPromise: any = webscriptApi.executeWebScript('GET', scriptPath, null, contextRoot, servicePath);
|
||||
|
||||
webscriptPromise.catch(() => {});
|
||||
webscriptPromise.catch(() => { /* empty */ });
|
||||
webscriptPromise.on('error', () => {
|
||||
done();
|
||||
});
|
||||
@@ -102,7 +102,7 @@ describe('WebScript', () => {
|
||||
|
||||
const webscriptPromise: any = webscriptApi.executeWebScript('GET', scriptPath, null, contextRoot, servicePath);
|
||||
|
||||
webscriptPromise.catch(() => {});
|
||||
webscriptPromise.catch(() => { /* empty */ });
|
||||
webscriptPromise.on('unauthorized', () => {
|
||||
done();
|
||||
});
|
||||
|
@@ -43,13 +43,13 @@ describe('Ecm Auth test', () => {
|
||||
});
|
||||
|
||||
it('should remember username on login', () => {
|
||||
const auth = new ContentAuth({}, alfrescoJsApi);
|
||||
const auth = new ContentAuth({ /* empty */ }, alfrescoJsApi);
|
||||
auth.login('johndoe', 'password');
|
||||
assert.equal(auth.authentications.basicAuth.username, 'johndoe');
|
||||
});
|
||||
|
||||
it('should forget username on logout', (done) => {
|
||||
const auth = new ContentAuth({}, alfrescoJsApi);
|
||||
const auth = new ContentAuth({ /* empty */ }, alfrescoJsApi);
|
||||
|
||||
authEcmMock.get201Response();
|
||||
|
||||
@@ -120,7 +120,7 @@ describe('Ecm Auth test', () => {
|
||||
authEcmMock.get403Response();
|
||||
|
||||
contentAuth.login('wrong', 'name').then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error: any) => {
|
||||
assert.equal(error.status, 403);
|
||||
done();
|
||||
@@ -132,7 +132,7 @@ describe('Ecm Auth test', () => {
|
||||
authEcmMock.get400Response();
|
||||
|
||||
contentAuth.login(null, null).then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error) => {
|
||||
assert.equal(error.status, 400);
|
||||
done();
|
||||
@@ -145,7 +145,7 @@ describe('Ecm Auth test', () => {
|
||||
authEcmMock.get401Response();
|
||||
|
||||
const loginPromise: any = contentAuth.login('wrong', 'name');
|
||||
loginPromise.catch(() => {});
|
||||
loginPromise.catch(() => { /* empty */ });
|
||||
|
||||
loginPromise.on('unauthorized', () => {
|
||||
done();
|
||||
@@ -157,7 +157,7 @@ describe('Ecm Auth test', () => {
|
||||
|
||||
const loginPromise: any = contentAuth.login('wrong', 'name');
|
||||
|
||||
loginPromise.catch(() => {});
|
||||
loginPromise.catch(() => { /* empty */ });
|
||||
|
||||
loginPromise.on('forbidden', () => {
|
||||
done();
|
||||
@@ -169,7 +169,7 @@ describe('Ecm Auth test', () => {
|
||||
|
||||
const loginPromise: any = contentAuth.login('admin', 'admin');
|
||||
|
||||
loginPromise.catch(() => {});
|
||||
loginPromise.catch(() => { /* empty */ });
|
||||
|
||||
loginPromise.on('success', () => {
|
||||
done();
|
||||
@@ -224,7 +224,7 @@ describe('Ecm Auth test', () => {
|
||||
it('Logout should be rejected if the Ticket is already expired', (done) => {
|
||||
authEcmMock.get404ResponseLogout();
|
||||
contentAuth.logout().then(
|
||||
() => {},
|
||||
() => { /* empty */ },
|
||||
(error) => {
|
||||
assert.equal(error.error.toString(), 'Error: Not Found');
|
||||
done();
|
||||
|
@@ -24,7 +24,7 @@ const adminUser = {
|
||||
aspectNames: ['cm:ownable'],
|
||||
firstName: 'Administrator',
|
||||
emailNotificationsEnabled: true,
|
||||
company: {},
|
||||
company: { /* empty */ },
|
||||
id: 'admin',
|
||||
enabled: true,
|
||||
email: 'admin@alfresco.com',
|
||||
|
@@ -27,7 +27,7 @@ export class PeopleMock extends BaseMock {
|
||||
firstName: 'chewbacca',
|
||||
lastName: 'Chewbe',
|
||||
emailNotificationsEnabled: true,
|
||||
company: {},
|
||||
company: { /* empty */ },
|
||||
id: 'chewbe',
|
||||
enabled: true,
|
||||
email: 'chewbe@millenniumfalcon.com'
|
||||
@@ -54,7 +54,7 @@ export class PeopleMock extends BaseMock {
|
||||
lastName: '3PhtPlBO',
|
||||
jobTitle: 'N/A',
|
||||
emailNotificationsEnabled: true,
|
||||
company: {},
|
||||
company: { /* empty */ },
|
||||
id: '0jl2FBTc',
|
||||
enabled: true,
|
||||
email: 'owAwLISy'
|
||||
@@ -66,7 +66,7 @@ export class PeopleMock extends BaseMock {
|
||||
lastName: '748zEwJV',
|
||||
jobTitle: 'N/A',
|
||||
emailNotificationsEnabled: true,
|
||||
company: {},
|
||||
company: { /* empty */ },
|
||||
id: '0kd3jA3b',
|
||||
enabled: true,
|
||||
email: 'm1ooPRIu'
|
||||
@@ -78,7 +78,7 @@ export class PeopleMock extends BaseMock {
|
||||
lastName: 'GZK6IenG',
|
||||
jobTitle: 'N/A',
|
||||
emailNotificationsEnabled: true,
|
||||
company: {},
|
||||
company: { /* empty */ },
|
||||
id: '1BJSWj5u',
|
||||
enabled: true,
|
||||
email: 'UtKzKjje'
|
||||
@@ -90,7 +90,7 @@ export class PeopleMock extends BaseMock {
|
||||
lastName: 'OiLjkq9z',
|
||||
jobTitle: 'N/A',
|
||||
emailNotificationsEnabled: true,
|
||||
company: {},
|
||||
company: { /* empty */ },
|
||||
id: '1pvBqbmT',
|
||||
enabled: true,
|
||||
email: '72GemSCB'
|
||||
@@ -102,7 +102,7 @@ export class PeopleMock extends BaseMock {
|
||||
lastName: 'IHb5JiaR',
|
||||
jobTitle: 'N/A',
|
||||
emailNotificationsEnabled: true,
|
||||
company: {},
|
||||
company: { /* empty */ },
|
||||
id: '2fOamhbL',
|
||||
enabled: true,
|
||||
email: 'hhhQHpmZ'
|
||||
|
@@ -38,7 +38,7 @@ export class BpmAuthMock extends BaseMock {
|
||||
}
|
||||
|
||||
get200ResponseLogout(): void {
|
||||
nock(this.host, { encodedQueryParams: true }).get('/activiti-app/app/logout', {}).reply(200);
|
||||
nock(this.host, { encodedQueryParams: true }).get('/activiti-app/app/logout', { /* empty */ }).reply(200);
|
||||
}
|
||||
|
||||
get401Response(): void {
|
||||
|
@@ -151,8 +151,8 @@ export class ProcessMock extends BaseMock {
|
||||
javascriptEvents: [],
|
||||
className: '',
|
||||
style: '',
|
||||
customFieldTemplates: {},
|
||||
metadata: {},
|
||||
customFieldTemplates: { /* empty */ },
|
||||
metadata: { /* empty */ },
|
||||
variables: [],
|
||||
gridsterForm: false
|
||||
});
|
||||
|
@@ -43,7 +43,7 @@ const formValues = [
|
||||
export class TasksMock extends BaseMock {
|
||||
get200Response(): void {
|
||||
nock(this.host, { encodedQueryParams: true })
|
||||
.post('/activiti-app/api/enterprise/tasks/query', {})
|
||||
.post('/activiti-app/api/enterprise/tasks/query', { /* empty */ })
|
||||
.reply(200, {
|
||||
size: 2,
|
||||
total: 2,
|
||||
@@ -166,7 +166,7 @@ export class TasksMock extends BaseMock {
|
||||
}
|
||||
|
||||
get400TaskFilter(): void {
|
||||
nock(this.host, { encodedQueryParams: true }).post('/activiti-app/api/enterprise/tasks/filter', {}).reply(400, {
|
||||
nock(this.host, { encodedQueryParams: true }).post('/activiti-app/api/enterprise/tasks/filter', { /* empty */ }).reply(400, {
|
||||
message: 'A valid filterId or filter params must be provided',
|
||||
messageKey: 'GENERAL.ERROR.BAD-REQUEST'
|
||||
});
|
||||
@@ -1025,8 +1025,8 @@ export class TasksMock extends BaseMock {
|
||||
javascriptEvents: [],
|
||||
className: '',
|
||||
style: '',
|
||||
customFieldTemplates: {},
|
||||
metadata: {},
|
||||
customFieldTemplates: { /* empty */ },
|
||||
metadata: { /* empty */ },
|
||||
variables: [],
|
||||
gridsterForm: false
|
||||
});
|
||||
|
@@ -31,8 +31,8 @@ describe('Oauth2 test', () => {
|
||||
beforeEach(() => {
|
||||
const hostOauth2 = 'https://myOauthUrl:30081';
|
||||
const mockStorage = {
|
||||
getItem: () => {},
|
||||
setItem: () => {}
|
||||
getItem: () => { /* empty */ },
|
||||
setItem: () => { /* empty */ }
|
||||
};
|
||||
|
||||
oauth2Mock = new OAuthMock(hostOauth2);
|
||||
|
@@ -65,7 +65,7 @@ describe('Activiti Process Api', () => {
|
||||
it('get activiti Process list', (done) => {
|
||||
processMock.get200Response();
|
||||
|
||||
processInstancesApi.getProcessInstances({}).then((data) => {
|
||||
processInstancesApi.getProcessInstances({ /* empty */ }).then((data) => {
|
||||
assert.equal(data.data[0].name, 'Process Test Api - July 26th 2016');
|
||||
assert.equal(data.data[1].name, 'Process Test Api - July 26th 2016');
|
||||
done();
|
||||
|
@@ -130,7 +130,7 @@ describe('Activiti Process Instance Variables Api', () => {
|
||||
const variableName = 'var1';
|
||||
variablesMock.addUpdateProcessInstanceVariable200Response(processInstanceId, variableName);
|
||||
|
||||
processInstanceVariablesApi.updateProcessInstanceVariable(processInstanceId, variableName, {}).then(() => {
|
||||
processInstanceVariablesApi.updateProcessInstanceVariable(processInstanceId, variableName, { /* empty */ }).then(() => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
@@ -140,7 +140,7 @@ describe('Activiti Process Instance Variables Api', () => {
|
||||
const variableName = 'var1';
|
||||
variablesMock.addUpdateProcessInstanceVariable500Response(processInstanceId, variableName);
|
||||
|
||||
processInstanceVariablesApi.updateProcessInstanceVariable(processInstanceId, variableName, {}).then(NOOP, (error) => {
|
||||
processInstanceVariablesApi.updateProcessInstanceVariable(processInstanceId, variableName, { /* empty */ }).then(NOOP, (error) => {
|
||||
assert.equal(error.status, 500);
|
||||
assert.equal(error.message, '{"messageKey":"UNKNOWN","message":"Unknown error"}');
|
||||
done();
|
||||
|
@@ -24,9 +24,9 @@ describe('SuperagentHttpClient', () => {
|
||||
const client = new SuperagentHttpClient();
|
||||
|
||||
it('should create a request with response type blob', () => {
|
||||
const queryParams = {};
|
||||
const headerParams = {};
|
||||
const formParams = {};
|
||||
const queryParams = { /* empty */ };
|
||||
const headerParams = { /* empty */ };
|
||||
const formParams = { /* empty */ };
|
||||
|
||||
const contentTypes = 'application/json';
|
||||
const accepts = 'application/json';
|
||||
@@ -43,7 +43,7 @@ describe('SuperagentHttpClient', () => {
|
||||
},
|
||||
type: 'basic'
|
||||
},
|
||||
defaultHeaders: {}
|
||||
defaultHeaders: { /* empty */ }
|
||||
};
|
||||
|
||||
const response: any = client['buildRequest'](
|
||||
|
@@ -100,7 +100,7 @@ describe('Upload', () => {
|
||||
|
||||
const uploadPromise: any = uploadApi.uploadFile(file);
|
||||
|
||||
uploadPromise.catch(() => {});
|
||||
uploadPromise.catch(() => { /* empty */ });
|
||||
uploadPromise.on('success', () => {
|
||||
done();
|
||||
});
|
||||
@@ -112,7 +112,7 @@ describe('Upload', () => {
|
||||
const file = createTestFileStream('testFile.txt');
|
||||
|
||||
const uploadPromise: any = uploadApi.uploadFile(file);
|
||||
uploadPromise.catch(() => {});
|
||||
uploadPromise.catch(() => { /* empty */ });
|
||||
uploadPromise.on('error', () => {
|
||||
done();
|
||||
});
|
||||
@@ -125,7 +125,7 @@ describe('Upload', () => {
|
||||
|
||||
const uploadPromise: any = uploadApi.uploadFile(file);
|
||||
|
||||
uploadPromise.catch(() => {});
|
||||
uploadPromise.catch(() => { /* empty */ });
|
||||
uploadPromise.on('unauthorized', () => {
|
||||
done();
|
||||
});
|
||||
@@ -185,7 +185,7 @@ describe('Upload', () => {
|
||||
uploadMock.get201CreationFile();
|
||||
|
||||
const uploadPromise: any = uploadApi.uploadFile(file);
|
||||
uploadPromise.catch(() => {});
|
||||
uploadPromise.catch(() => { /* empty */ });
|
||||
uploadPromise.once('success', () => {
|
||||
errorOneOk = true;
|
||||
resolve('Resolving');
|
||||
@@ -196,7 +196,7 @@ describe('Upload', () => {
|
||||
uploadMock.get201CreationFile();
|
||||
|
||||
const uploadPromise: any = uploadApi.uploadFile(fileTwo);
|
||||
uploadPromise.catch(() => {});
|
||||
uploadPromise.catch(() => { /* empty */ });
|
||||
uploadPromise.once('success', () => {
|
||||
errorTwoOk = true;
|
||||
resolve('Resolving');
|
||||
@@ -221,7 +221,7 @@ describe('Upload', () => {
|
||||
uploadMock.get201CreationFile();
|
||||
|
||||
const uploadPromiseOne: any = uploadApi.uploadFile(file);
|
||||
uploadPromiseOne.catch(() => {});
|
||||
uploadPromiseOne.catch(() => { /* empty */ });
|
||||
uploadPromiseOne.once('success', () => {
|
||||
successOneOk = true;
|
||||
resolve('Resolving');
|
||||
@@ -232,7 +232,7 @@ describe('Upload', () => {
|
||||
uploadMock.get201CreationFile();
|
||||
|
||||
const uploadPromiseTwo: any = uploadApi.uploadFile(fileTwo);
|
||||
uploadPromiseTwo.catch(() => {});
|
||||
uploadPromiseTwo.catch(() => { /* empty */ });
|
||||
uploadPromiseTwo.once('success', () => {
|
||||
successTwoOk = true;
|
||||
resolve('Resolving');
|
||||
@@ -303,11 +303,11 @@ describe('Upload', () => {
|
||||
|
||||
uploadMock.get401Response();
|
||||
|
||||
let promiseProgressOne = {};
|
||||
let promiseProgressTwo = {};
|
||||
let promiseProgressOne = { /* empty */ };
|
||||
let promiseProgressTwo = { /* empty */ };
|
||||
|
||||
const uploadPromise: any = uploadApi.uploadFile(file);
|
||||
uploadPromise.catch(() => {});
|
||||
uploadPromise.catch(() => { /* empty */ });
|
||||
|
||||
uploadPromise
|
||||
.once('error', () => {
|
||||
|
Reference in New Issue
Block a user