[ACS-5281] Changed editable state of metadata content based on change o… (#3400)

* ACS-5281 Changed editable state of metadata content based on change of file lock state

* ACS-5281 Updated versions

* ACS-5281 Reverted change

* ACS-5281 Upgrade version

* ACS-5281 Small correction

* ACS-5281 Fixed e2e
This commit is contained in:
AleksanderSklorz
2023-08-27 10:00:35 +02:00
committed by GitHub
parent bc9c58176f
commit aec6852672
45 changed files with 455 additions and 364 deletions

View File

@@ -25,9 +25,9 @@
import { RepoApi } from '../repo-api';
import { Logger } from '@alfresco/adf-testing';
import {
SiteBody,
SiteMemberRoleBody,
SiteMemberBody,
SiteBodyCreate,
SiteMembershipBodyUpdate,
SiteMembershipBodyCreate,
SiteEntry,
SiteMembershipRequestEntry,
SitesApi as AdfSiteApi,
@@ -69,7 +69,7 @@ export class SitesApi extends RepoApi {
visibility: visibility || SITE_VISIBILITY.PUBLIC,
description: description,
id: siteId || title
} as SiteBody;
} as SiteBodyCreate;
try {
await this.apiAuth();
@@ -136,7 +136,7 @@ export class SitesApi extends RepoApi {
async updateSiteMember(siteId: string, userId: string, role: string) {
const siteRole = {
role: role
} as SiteMemberRoleBody;
} as SiteMembershipBodyUpdate;
try {
await this.apiAuth();
@@ -151,7 +151,7 @@ export class SitesApi extends RepoApi {
const memberBody = {
id: userId,
role: role
} as SiteMemberBody;
} as SiteMembershipBodyCreate;
try {
await this.apiAuth();

View File

@@ -23,7 +23,7 @@
*/
import { RepoApi } from '../repo-api';
import { UploadApi as AdfUploadApi } from '@alfresco/js-api';
import { NodeBodyCreate, UploadApi as AdfUploadApi } from '@alfresco/js-api';
import { browser } from 'protractor';
import * as fs from 'fs';
@@ -66,7 +66,7 @@ export class UploadApi extends RepoApi {
try {
await this.apiAuth();
return await this.upload.uploadFile(file, '', parentId, nodeProps, opts);
return await this.upload.uploadFile(file, '', parentId, nodeProps as NodeBodyCreate, opts);
} catch (error) {
this.handleError(`${this.constructor.name} ${this.uploadFileWithRename.name}`, error);
}