[ACS-5839] migrate to latest JS-API types (#8859)

* [ci:force] migrate Minimal Node to Node

* [ci:force] remove js-api wrappers and use real types

* [ci:force] remove js-api wrappers and use real types

* [ci:force] fix linting errors

* [ci:force] fix linting errors

* [ci:force] security fixes

* [ci:force] sonarcloud bug fixes

* [ci:force] dead code elimination, sonar suggested fixes
This commit is contained in:
Denys Vuika
2023-08-29 20:56:40 +01:00
committed by GitHub
parent a5b05b3e5f
commit 3b4ce3b857
51 changed files with 1337 additions and 1984 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { AssocChildBody, AssociationBody } from '@alfresco/js-api';
import { ChildAssociationBody, AssociationBody } from '@alfresco/js-api';
export interface FileUploadProgress {
loaded: number;
@@ -63,7 +63,7 @@ export class FileUploadOptions {
* You can optionally specify an array of **secondaryChildren** to create one or more secondary child associations,
* such that the newly created node acts as a parent node.
*/
secondaryChildren?: AssocChildBody[];
secondaryChildren?: ChildAssociationBody[];
/**
* You can optionally specify an array of **targets** to create one or more peer associations such that the newly created node acts as a source node.
*/
@@ -112,9 +112,13 @@ export class FileModel {
percent: 0
};
this.options = Object.assign({}, {
newVersion: false
}, options);
this.options = Object.assign(
{},
{
newVersion: false
},
options
);
}
get extension(): string {