diff --git a/lib/process-services-cloud/src/lib/common/index.ts b/lib/process-services-cloud/src/lib/common/index.ts new file mode 100644 index 0000000000..a7e30cc675 --- /dev/null +++ b/lib/process-services-cloud/src/lib/common/index.ts @@ -0,0 +1,18 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './public-api'; diff --git a/lib/process-services-cloud/src/lib/common/interface/environment.interface.ts b/lib/process-services-cloud/src/lib/common/interface/environment.interface.ts new file mode 100644 index 0000000000..16ccb343b4 --- /dev/null +++ b/lib/process-services-cloud/src/lib/common/interface/environment.interface.ts @@ -0,0 +1,21 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export interface Environment { + id: string; + name: string; +} diff --git a/lib/process-services-cloud/src/lib/common/interface/index.ts b/lib/process-services-cloud/src/lib/common/interface/index.ts new file mode 100644 index 0000000000..a7e30cc675 --- /dev/null +++ b/lib/process-services-cloud/src/lib/common/interface/index.ts @@ -0,0 +1,18 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './public-api'; diff --git a/lib/process-services-cloud/src/lib/common/interface/public-api.ts b/lib/process-services-cloud/src/lib/common/interface/public-api.ts new file mode 100644 index 0000000000..300a896f68 --- /dev/null +++ b/lib/process-services-cloud/src/lib/common/interface/public-api.ts @@ -0,0 +1,18 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './environment.interface'; diff --git a/lib/process-services-cloud/src/lib/common/public-api.ts b/lib/process-services-cloud/src/lib/common/public-api.ts new file mode 100644 index 0000000000..b4c2a300e2 --- /dev/null +++ b/lib/process-services-cloud/src/lib/common/public-api.ts @@ -0,0 +1,18 @@ +/*! + * @license + * Copyright 2019 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './interface/index'; diff --git a/lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter-cloud.component.ts b/lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter-cloud.component.ts index 2fa9e123b4..481ee6e4d0 100644 --- a/lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter-cloud.component.ts @@ -30,6 +30,7 @@ import { ProcessFilterDialogCloudComponent } from './process-filter-dialog-cloud import { ProcessCloudService } from '../../services/process-cloud.service'; import { DateCloudFilterType, DateRangeFilter } from '../../../models/date-cloud-filter.model'; import { IdentityUserModel } from '../../../people/models/identity-user.model'; +import { Environment } from '../../../common/interface/environment.interface'; export const PROCESS_FILTER_ACTION_SAVE = 'save'; export const PROCESS_FILTER_ACTION_SAVE_AS = 'saveAs'; @@ -80,7 +81,7 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges, OnDes actions = DEFAULT_ACTIONS; @Input() - environmentList: any[] = []; + environmentList: Environment[] = []; /** Toggles editing of process filter actions. */ @Input() diff --git a/lib/process-services-cloud/src/lib/task/task-filters/components/edit-task-filters/base-edit-task-filter-cloud.component.ts b/lib/process-services-cloud/src/lib/task/task-filters/components/edit-task-filters/base-edit-task-filter-cloud.component.ts index 2705b7b46b..65785ae9c3 100644 --- a/lib/process-services-cloud/src/lib/task/task-filters/components/edit-task-filters/base-edit-task-filter-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/task/task-filters/components/edit-task-filters/base-edit-task-filter-cloud.component.ts @@ -31,6 +31,7 @@ import { MatDialog } from '@angular/material/dialog'; import { IdentityUserModel } from '../../../../people/models/identity-user.model'; import { IdentityGroupModel } from '../../../../group/models/identity-group.model'; import { MatSelectChange } from '@angular/material/select'; +import { Environment } from '../../../../common/interface/environment.interface'; /* eslint-disable @typescript-eslint/naming-convention */ @@ -71,7 +72,7 @@ export abstract class BaseEditTaskFilterCloudComponent implements OnInit, OnC environmentId: string; @Input() - environmentList: any[] = []; + environmentList: Environment[] = []; /** processInstanceId of the task filter. */ @Input() diff --git a/lib/process-services-cloud/src/public-api.ts b/lib/process-services-cloud/src/public-api.ts index c2bdeebda9..950750b0de 100644 --- a/lib/process-services-cloud/src/public-api.ts +++ b/lib/process-services-cloud/src/public-api.ts @@ -26,6 +26,7 @@ export * from './lib/services/public-api'; export * from './lib/rich-text-editor/public-api'; export * from './lib/types'; +export * from './lib/common/index'; export * from './lib/pipes/process-name-cloud.pipe'; export * from './lib/pipes/process-services-cloud-pipe.module'; export * from './lib/models/process-definition-cloud.model';