[ADF-] update library to use new js-api 3.0.0 (#4097)

This commit is contained in:
Eugenio Romano
2019-01-06 23:57:01 +01:00
committed by Eugenio Romano
parent 2acd1b4e26
commit 3ef7d3b7ea
430 changed files with 1966 additions and 2149 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { CommentRepresentation, LightUserRepresentation } from 'alfresco-js-api';
import { CommentRepresentation, LightUserRepresentation } from '@alfresco/js-api';
/**
* @deprecated

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { AssocChildBody, AssocTargetBody } from 'alfresco-js-api';
import { AssocChildBody, AssociationBody } from '@alfresco/js-api';
export interface FileUploadProgress {
loaded: number;
@@ -23,7 +23,7 @@ export interface FileUploadProgress {
percent: number;
}
export interface FileUploadOptions {
export class FileUploadOptions {
comment?: string;
newVersion?: boolean;
majorVersion?: boolean;
@@ -33,7 +33,7 @@ export interface FileUploadOptions {
properties?: any;
association?: any;
secondaryChildren?: AssocChildBody[];
targets?: AssocTargetBody[];
targets?: AssociationBody[];
}
export enum FileUploadStatus {

View File

@@ -15,17 +15,13 @@
* limitations under the License.
*/
import { Pagination } from 'alfresco-js-api';
import { Pagination } from '@alfresco/js-api';
export class PaginationModel implements Pagination {
count?: number;
hasMoreItems?: boolean;
export class PaginationModel extends Pagination {
merge?: boolean;
totalItems?: number;
skipCount?: number;
maxItems?: number;
constructor(obj?: any) {
super(obj);
if (obj) {
this.count = obj.count;
this.hasMoreItems = obj.hasMoreItems ? obj.hasMoreItems : false;

View File

@@ -19,24 +19,24 @@
* This object represent the process service user.*
*/
import { LightUserRepresentation } from 'alfresco-js-api';
import { LightUserRepresentation } from '@alfresco/js-api';
export class UserProcessModel implements LightUserRepresentation {
id?: number;
email?: string;
firstName?: string;
lastName?: string;
pictureId?: number = null;
pictureId?: number;
externalId?: string;
constructor(obj?: any) {
if (obj) {
this.id = obj.id;
this.email = obj.email || null;
this.firstName = obj.firstName || null;
this.lastName = obj.lastName || null;
this.pictureId = obj.pictureId || null;
this.externalId = obj.externalId || null;
constructor(input?: any) {
if (input) {
this.id = input.id;
this.email = input.email || null;
this.firstName = input.firstName || null;
this.lastName = input.lastName || null;
this.pictureId = input.pictureId || null;
this.externalId = input.externalId || null;
}
}