@alfresco/aca-playwright-shared 5.1.1-10706961491
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api-client-factory.d.ts +63 -0
- package/api/categories-api.d.ts +32 -0
- package/api/favorites-api.d.ts +41 -0
- package/api/file-actions.d.ts +41 -0
- package/api/index.d.ts +37 -0
- package/api/node-content-tree.d.ts +32 -0
- package/api/nodes-api.d.ts +73 -0
- package/api/people-api-models.d.ts +42 -0
- package/api/queries-api.d.ts +32 -0
- package/api/rules-api.d.ts +79 -0
- package/api/search-api.d.ts +33 -0
- package/api/shared-links-api.d.ts +36 -0
- package/api/sites-api.d.ts +44 -0
- package/api/tags-api.d.ts +32 -0
- package/api/trashcan-api.d.ts +31 -0
- package/base-config/global-variables.d.ts +34 -0
- package/base-config/global.setup.d.ts +27 -0
- package/base-config/index.d.ts +26 -0
- package/base-config/playwright.config.d.ts +25 -0
- package/base-config/report-portal.config.d.ts +40 -0
- package/esm2020/alfresco-aca-playwright-shared.mjs +5 -0
- package/esm2020/api/api-client-factory.mjs +111 -0
- package/esm2020/api/categories-api.mjs +65 -0
- package/esm2020/api/favorites-api.mjs +129 -0
- package/esm2020/api/file-actions.mjs +166 -0
- package/esm2020/api/index.mjs +38 -0
- package/esm2020/api/node-content-tree.mjs +67 -0
- package/esm2020/api/nodes-api.mjs +427 -0
- package/esm2020/api/people-api-models.mjs +34 -0
- package/esm2020/api/queries-api.mjs +69 -0
- package/esm2020/api/rules-api.mjs +251 -0
- package/esm2020/api/search-api.mjs +74 -0
- package/esm2020/api/shared-links-api.mjs +136 -0
- package/esm2020/api/sites-api.mjs +155 -0
- package/esm2020/api/tags-api.mjs +61 -0
- package/esm2020/api/trashcan-api.mjs +54 -0
- package/esm2020/base-config/global-variables.mjs +36 -0
- package/esm2020/base-config/global.setup.mjs +66 -0
- package/esm2020/base-config/index.mjs +27 -0
- package/esm2020/base-config/playwright.config.mjs +78 -0
- package/esm2020/base-config/report-portal.config.mjs +48 -0
- package/esm2020/fixtures/index.mjs +25 -0
- package/esm2020/fixtures/page-initialization.mjs +83 -0
- package/esm2020/models/custom-config.mjs +25 -0
- package/esm2020/models/index.mjs +26 -0
- package/esm2020/models/user-model.mjs +55 -0
- package/esm2020/page-objects/components/aca-header.component.mjs +77 -0
- package/esm2020/page-objects/components/actions-dropdown.component.mjs +99 -0
- package/esm2020/page-objects/components/adf-info-drawer.component.mjs +83 -0
- package/esm2020/page-objects/components/base.component.mjs +69 -0
- package/esm2020/page-objects/components/breadcrumb/breadcrumb.component.mjs +46 -0
- package/esm2020/page-objects/components/conditions.component.mjs +75 -0
- package/esm2020/page-objects/components/dataTable/data-table.component.mjs +327 -0
- package/esm2020/page-objects/components/dataTable/index.mjs +27 -0
- package/esm2020/page-objects/components/dataTable/mat-menu.component.mjs +66 -0
- package/esm2020/page-objects/components/dataTable/toolbar.component.mjs +39 -0
- package/esm2020/page-objects/components/datetime-picker/datetime-picker.component.mjs +52 -0
- package/esm2020/page-objects/components/dialogs/adf-confirm-dialog.component.mjs +35 -0
- package/esm2020/page-objects/components/dialogs/adf-folder-dialog.component.mjs +56 -0
- package/esm2020/page-objects/components/dialogs/adf-library-dialog.component.mjs +63 -0
- package/esm2020/page-objects/components/dialogs/content-node-selector-dialog.mjs +67 -0
- package/esm2020/page-objects/components/dialogs/create-from-template-dialog-component.mjs +54 -0
- package/esm2020/page-objects/components/dialogs/delete-trash-dialog.component.mjs +53 -0
- package/esm2020/page-objects/components/dialogs/edit-dialog.component.mjs +38 -0
- package/esm2020/page-objects/components/dialogs/index.mjs +39 -0
- package/esm2020/page-objects/components/dialogs/link-rules.component.mjs +57 -0
- package/esm2020/page-objects/components/dialogs/manage-versions-dialog.component.mjs +35 -0
- package/esm2020/page-objects/components/dialogs/password-overlay-dialog.component.mjs +70 -0
- package/esm2020/page-objects/components/dialogs/share-dialog.component.mjs +84 -0
- package/esm2020/page-objects/components/dialogs/upload-dialog.component.mjs +35 -0
- package/esm2020/page-objects/components/dialogs/upload-new-version-dialog.component.mjs +37 -0
- package/esm2020/page-objects/components/dialogs/viewer-overlay-dialog.component.mjs +55 -0
- package/esm2020/page-objects/components/error.component.mjs +33 -0
- package/esm2020/page-objects/components/index.mjs +50 -0
- package/esm2020/page-objects/components/manageRules/index.mjs +26 -0
- package/esm2020/page-objects/components/manageRules/manage-rules-dialog.component.mjs +63 -0
- package/esm2020/page-objects/components/manageRules/manage-rules.component.mjs +69 -0
- package/esm2020/page-objects/components/pagination.component.mjs +173 -0
- package/esm2020/page-objects/components/search/search-filters/search-filters-categories.component.mjs +32 -0
- package/esm2020/page-objects/components/search/search-filters/search-filters-date.component.mjs +114 -0
- package/esm2020/page-objects/components/search/search-filters/search-filters-location.component.mjs +39 -0
- package/esm2020/page-objects/components/search/search-filters/search-filters-logic.component.mjs +35 -0
- package/esm2020/page-objects/components/search/search-filters/search-filters-properties.component.mjs +82 -0
- package/esm2020/page-objects/components/search/search-filters/search-filters-tags.component.mjs +39 -0
- package/esm2020/page-objects/components/search/search-filters.component.mjs +44 -0
- package/esm2020/page-objects/components/search/search-input.component.mjs +47 -0
- package/esm2020/page-objects/components/search/search-overlay.components.mjs +82 -0
- package/esm2020/page-objects/components/search/search-sorting-picker.components.mjs +71 -0
- package/esm2020/page-objects/components/sidenav.component.mjs +86 -0
- package/esm2020/page-objects/components/snackBar/snack-bar.component.mjs +53 -0
- package/esm2020/page-objects/components/spinner.component.mjs +40 -0
- package/esm2020/page-objects/components/viewer.component.mjs +92 -0
- package/esm2020/page-objects/index.mjs +26 -0
- package/esm2020/page-objects/pages/base.page.mjs +80 -0
- package/esm2020/page-objects/pages/favorites-libraries.page.mjs +42 -0
- package/esm2020/page-objects/pages/favorites.page.mjs +48 -0
- package/esm2020/page-objects/pages/index.mjs +35 -0
- package/esm2020/page-objects/pages/login.page.mjs +61 -0
- package/esm2020/page-objects/pages/my-libraries.page.mjs +53 -0
- package/esm2020/page-objects/pages/nodes.page.mjs +39 -0
- package/esm2020/page-objects/pages/personal-files.page.mjs +84 -0
- package/esm2020/page-objects/pages/recent-files.page.mjs +44 -0
- package/esm2020/page-objects/pages/search.page.mjs +78 -0
- package/esm2020/page-objects/pages/shared.page.mjs +44 -0
- package/esm2020/page-objects/pages/trash.page.mjs +44 -0
- package/esm2020/page-objects/playwright-base.mjs +31 -0
- package/esm2020/public-api.mjs +31 -0
- package/esm2020/resources/index.mjs +26 -0
- package/esm2020/resources/test-data/index.mjs +26 -0
- package/esm2020/resources/test-data/test-data-files-folders.mjs +53 -0
- package/esm2020/resources/test-data/test-data-permissions.mjs +331 -0
- package/esm2020/resources/test-files/index.mjs +78 -0
- package/esm2020/utils/api.mjs +43 -0
- package/esm2020/utils/config.mjs +70 -0
- package/esm2020/utils/error-strings.mjs +39 -0
- package/esm2020/utils/exclude-tests.mjs +35 -0
- package/esm2020/utils/index.mjs +34 -0
- package/esm2020/utils/library-errors.mjs +29 -0
- package/esm2020/utils/logger.mjs +69 -0
- package/esm2020/utils/paths.mjs +32 -0
- package/esm2020/utils/state-helper.mjs +29 -0
- package/esm2020/utils/timeouts.mjs +39 -0
- package/esm2020/utils/utils.mjs +144 -0
- package/fesm2015/alfresco-aca-playwright-shared.mjs +6251 -0
- package/fesm2015/alfresco-aca-playwright-shared.mjs.map +1 -0
- package/fesm2020/alfresco-aca-playwright-shared.mjs +6895 -0
- package/fesm2020/alfresco-aca-playwright-shared.mjs.map +1 -0
- package/fixtures/index.d.ts +24 -0
- package/fixtures/page-initialization.d.ts +47 -0
- package/index.d.ts +5 -0
- package/models/custom-config.d.ts +27 -0
- package/models/index.d.ts +25 -0
- package/models/user-model.d.ts +37 -0
- package/package.json +35 -0
- package/page-objects/components/aca-header.component.d.ts +53 -0
- package/page-objects/components/actions-dropdown.component.d.ts +71 -0
- package/page-objects/components/adf-info-drawer.component.d.ts +64 -0
- package/page-objects/components/base.component.d.ts +46 -0
- package/page-objects/components/breadcrumb/breadcrumb.component.d.ts +34 -0
- package/page-objects/components/conditions.component.d.ts +46 -0
- package/page-objects/components/dataTable/data-table.component.d.ts +185 -0
- package/page-objects/components/dataTable/index.d.ts +26 -0
- package/page-objects/components/dataTable/mat-menu.component.d.ts +41 -0
- package/page-objects/components/dataTable/toolbar.component.d.ts +33 -0
- package/page-objects/components/datetime-picker/datetime-picker.component.d.ts +36 -0
- package/page-objects/components/dialogs/adf-confirm-dialog.component.d.ts +33 -0
- package/page-objects/components/dialogs/adf-folder-dialog.component.d.ts +45 -0
- package/page-objects/components/dialogs/adf-library-dialog.component.d.ts +45 -0
- package/page-objects/components/dialogs/content-node-selector-dialog.d.ts +42 -0
- package/page-objects/components/dialogs/create-from-template-dialog-component.d.ts +39 -0
- package/page-objects/components/dialogs/delete-trash-dialog.component.d.ts +39 -0
- package/page-objects/components/dialogs/edit-dialog.component.d.ts +36 -0
- package/page-objects/components/dialogs/index.d.ts +38 -0
- package/page-objects/components/dialogs/link-rules.component.d.ts +40 -0
- package/page-objects/components/dialogs/manage-versions-dialog.component.d.ts +30 -0
- package/page-objects/components/dialogs/password-overlay-dialog.component.d.ts +42 -0
- package/page-objects/components/dialogs/share-dialog.component.d.ts +54 -0
- package/page-objects/components/dialogs/upload-dialog.component.d.ts +33 -0
- package/page-objects/components/dialogs/upload-new-version-dialog.component.d.ts +35 -0
- package/page-objects/components/dialogs/viewer-overlay-dialog.component.d.ts +43 -0
- package/page-objects/components/error.component.d.ts +31 -0
- package/page-objects/components/index.d.ts +49 -0
- package/page-objects/components/manageRules/index.d.ts +25 -0
- package/page-objects/components/manageRules/manage-rules-dialog.component.d.ts +51 -0
- package/page-objects/components/manageRules/manage-rules.component.d.ts +46 -0
- package/page-objects/components/pagination.component.d.ts +70 -0
- package/page-objects/components/search/search-filters/search-filters-categories.component.d.ts +30 -0
- package/page-objects/components/search/search-filters/search-filters-date.component.d.ts +73 -0
- package/page-objects/components/search/search-filters/search-filters-location.component.d.ts +32 -0
- package/page-objects/components/search/search-filters/search-filters-logic.component.d.ts +33 -0
- package/page-objects/components/search/search-filters/search-filters-properties.component.d.ts +42 -0
- package/page-objects/components/search/search-filters/search-filters-tags.component.d.ts +32 -0
- package/page-objects/components/search/search-filters.component.d.ts +42 -0
- package/page-objects/components/search/search-input.component.d.ts +40 -0
- package/page-objects/components/search/search-overlay.components.d.ts +45 -0
- package/page-objects/components/search/search-sorting-picker.components.d.ts +41 -0
- package/page-objects/components/sidenav.component.d.ts +45 -0
- package/page-objects/components/snackBar/snack-bar.component.d.ts +37 -0
- package/page-objects/components/spinner.component.d.ts +30 -0
- package/page-objects/components/viewer.component.d.ts +49 -0
- package/page-objects/index.d.ts +25 -0
- package/page-objects/pages/base.page.d.ts +52 -0
- package/page-objects/pages/favorites-libraries.page.d.ts +40 -0
- package/page-objects/pages/favorites.page.d.ts +44 -0
- package/page-objects/pages/index.d.ts +34 -0
- package/page-objects/pages/login.page.d.ts +48 -0
- package/page-objects/pages/my-libraries.page.d.ts +45 -0
- package/page-objects/pages/nodes.page.d.ts +37 -0
- package/page-objects/pages/personal-files.page.d.ts +57 -0
- package/page-objects/pages/recent-files.page.d.ts +42 -0
- package/page-objects/pages/search.page.d.ts +54 -0
- package/page-objects/pages/shared.page.d.ts +42 -0
- package/page-objects/pages/trash.page.d.ts +42 -0
- package/page-objects/playwright-base.d.ts +30 -0
- package/public-api.d.ts +30 -0
- package/resources/index.d.ts +25 -0
- package/resources/test-data/index.d.ts +25 -0
- package/resources/test-data/test-data-files-folders.d.ts +41 -0
- package/resources/test-data/test-data-permissions.d.ts +216 -0
- package/resources/test-files/index.d.ts +76 -0
- package/utils/api.d.ts +26 -0
- package/utils/config.d.ts +69 -0
- package/utils/error-strings.d.ts +38 -0
- package/utils/exclude-tests.d.ts +24 -0
- package/utils/index.d.ts +33 -0
- package/utils/library-errors.d.ts +28 -0
- package/utils/logger.d.ts +54 -0
- package/utils/paths.d.ts +30 -0
- package/utils/state-helper.d.ts +27 -0
- package/utils/timeouts.d.ts +38 -0
- package/utils/utils.d.ts +62 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { AdminTenantsApi, AdminUsersApi, AlfrescoApi, ContentClient, GroupsApi, NodesApi, PeopleApi, QueriesApi, SearchApi, SecurityGroupsApi, SecurityMarksApi, SitesApi, UploadApi, SharedlinksApi, FavoritesApi, TrashcanApi, PersonEntry, CommentsApi, CategoriesApi, TagsApi } from '@alfresco/js-api';
|
|
25
|
+
import { PersonModel } from './people-api-models';
|
|
26
|
+
export interface AcaBackend {
|
|
27
|
+
sites: SitesApi;
|
|
28
|
+
upload: UploadApi;
|
|
29
|
+
nodes: NodesApi;
|
|
30
|
+
share: SharedlinksApi;
|
|
31
|
+
favorites: FavoritesApi;
|
|
32
|
+
trashCan: TrashcanApi;
|
|
33
|
+
tearDown(): Promise<any>;
|
|
34
|
+
}
|
|
35
|
+
export declare class ApiClientFactory {
|
|
36
|
+
alfrescoApi: AlfrescoApi;
|
|
37
|
+
sites: SitesApi;
|
|
38
|
+
upload: UploadApi;
|
|
39
|
+
nodes: NodesApi;
|
|
40
|
+
people: PeopleApi;
|
|
41
|
+
adminUsers: AdminUsersApi;
|
|
42
|
+
adminTenant: AdminTenantsApi;
|
|
43
|
+
groups: GroupsApi;
|
|
44
|
+
queries: QueriesApi;
|
|
45
|
+
search: SearchApi;
|
|
46
|
+
securityGroupsApi: SecurityGroupsApi;
|
|
47
|
+
securityMarksApi: SecurityMarksApi;
|
|
48
|
+
contentClient: ContentClient;
|
|
49
|
+
share: SharedlinksApi;
|
|
50
|
+
favorites: FavoritesApi;
|
|
51
|
+
trashCan: TrashcanApi;
|
|
52
|
+
commentsApi: CommentsApi;
|
|
53
|
+
queriesApi: QueriesApi;
|
|
54
|
+
categoriesApi: CategoriesApi;
|
|
55
|
+
tagsApi: TagsApi;
|
|
56
|
+
constructor();
|
|
57
|
+
setUpAcaBackend(userName: string, password?: string): Promise<AcaBackend>;
|
|
58
|
+
tearDown(): Promise<ApiClientFactory>;
|
|
59
|
+
login(userName: string, password?: string): Promise<void>;
|
|
60
|
+
loginUser(user: PersonModel): Promise<void>;
|
|
61
|
+
createUser(user: PersonModel): Promise<PersonEntry>;
|
|
62
|
+
changePassword(username: string, newPassword: string): Promise<PersonEntry>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { CategoryEntry, CategoryBody, CategoryQuery, CategoryPaging, CategoryLinkBody } from '@alfresco/js-api';
|
|
25
|
+
export declare class CategoriesApi {
|
|
26
|
+
private apiService;
|
|
27
|
+
constructor();
|
|
28
|
+
static initialize(userName: string, password?: string): Promise<CategoriesApi>;
|
|
29
|
+
createCategory(categoryId: string, categoryBodyCreate: CategoryBody[], opts?: CategoryQuery): Promise<CategoryPaging | CategoryEntry>;
|
|
30
|
+
deleteCategory(categoryId: string): Promise<void>;
|
|
31
|
+
linkNodeToCategory(nodeId: string, categoryLinkBodyCreate: CategoryLinkBody[], opts?: CategoryQuery): Promise<CategoryPaging | CategoryEntry>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { FavoriteEntry } from '@alfresco/js-api';
|
|
25
|
+
export declare class FavoritesPageApi {
|
|
26
|
+
private apiService;
|
|
27
|
+
constructor();
|
|
28
|
+
static initialize(userName: string, password?: string): Promise<FavoritesPageApi>;
|
|
29
|
+
addFavoriteById(nodeType: 'file' | 'folder' | 'site', id: string): Promise<FavoriteEntry>;
|
|
30
|
+
addFavoritesByIds(nodeType: 'file' | 'folder' | 'site', ids: string[]): Promise<FavoriteEntry[]>;
|
|
31
|
+
private getFavorites;
|
|
32
|
+
isFavorite(username: string, nodeId: string): Promise<boolean>;
|
|
33
|
+
isFavoriteWithRetry(username: string, nodeId: string, data: {
|
|
34
|
+
expect: boolean;
|
|
35
|
+
}): Promise<boolean>;
|
|
36
|
+
getFavoritesTotalItems(username: string): Promise<number>;
|
|
37
|
+
waitForApi(username: string, data: {
|
|
38
|
+
expect: number;
|
|
39
|
+
}): Promise<any>;
|
|
40
|
+
removeFavoritesByIds(username: string, ids: string[]): Promise<void>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { NodeEntry } from '@alfresco/js-api';
|
|
25
|
+
export declare class FileActionsApi {
|
|
26
|
+
private apiService;
|
|
27
|
+
constructor();
|
|
28
|
+
static initialize(userName: string, password?: string): Promise<FileActionsApi>;
|
|
29
|
+
uploadFile(fileLocation: string, fileName: string, parentFolderId: string): Promise<NodeEntry>;
|
|
30
|
+
uploadFileWithRename(fileLocation: string, newName: string, parentId?: string, title?: string, description?: string): Promise<NodeEntry>;
|
|
31
|
+
lockNodes(nodeIds: string[], lockType?: string): Promise<void>;
|
|
32
|
+
getNodeById(id: string): Promise<NodeEntry | null>;
|
|
33
|
+
getNodeProperty(nodeId: string, property: string): Promise<string>;
|
|
34
|
+
private getLockType;
|
|
35
|
+
isFileLockedWriteWithRetry(nodeId: string, expect: boolean): Promise<boolean>;
|
|
36
|
+
private queryNodesNames;
|
|
37
|
+
waitForNodes(searchTerm: string, data: {
|
|
38
|
+
expect: number;
|
|
39
|
+
}): Promise<void>;
|
|
40
|
+
updateNodeContent(nodeId: string, content: string, majorVersion?: boolean, comment?: string, newName?: string): Promise<NodeEntry>;
|
|
41
|
+
}
|
package/api/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
export * from './rules-api';
|
|
25
|
+
export * from './api-client-factory';
|
|
26
|
+
export * from './file-actions';
|
|
27
|
+
export * from './shared-links-api';
|
|
28
|
+
export * from './favorites-api';
|
|
29
|
+
export * from './people-api-models';
|
|
30
|
+
export * from './nodes-api';
|
|
31
|
+
export * from './sites-api';
|
|
32
|
+
export * from './node-content-tree';
|
|
33
|
+
export * from './search-api';
|
|
34
|
+
export * from './trashcan-api';
|
|
35
|
+
export * from './queries-api';
|
|
36
|
+
export * from './categories-api';
|
|
37
|
+
export * from './tags-api';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { NodeBodyCreate } from '@alfresco/js-api';
|
|
25
|
+
export interface NodeContentTree {
|
|
26
|
+
name?: string;
|
|
27
|
+
files?: string[];
|
|
28
|
+
folders?: (string | NodeContentTree)[];
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function flattenNodeContentTree(content: NodeContentTree, relativePath?: string): NodeBodyCreate[];
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { NodeEntry, NodePaging } from '@alfresco/js-api';
|
|
25
|
+
import { NodeContentTree } from './node-content-tree';
|
|
26
|
+
export declare class NodesApi {
|
|
27
|
+
private apiService;
|
|
28
|
+
constructor();
|
|
29
|
+
static initialize(userName: string, password?: string): Promise<NodesApi>;
|
|
30
|
+
createFolder(name: string, parentId?: string, title?: string, description?: string, author?: string, aspectNames?: string[]): Promise<NodeEntry | null>;
|
|
31
|
+
createFile(name: string, parentId?: string, title?: string, description?: string, author?: string, majorVersion?: boolean, aspectNames?: string[]): Promise<NodeEntry>;
|
|
32
|
+
createFiles(names: string[], relativePath?: string): Promise<NodePaging>;
|
|
33
|
+
createFolders(names: string[], relativePath?: string): Promise<NodePaging>;
|
|
34
|
+
deleteDeletedNode(name: string): Promise<void>;
|
|
35
|
+
private createNode;
|
|
36
|
+
renameNode(nodeId: string, newName: string): Promise<NodeEntry | null>;
|
|
37
|
+
/**
|
|
38
|
+
* Delete multiple nodes.
|
|
39
|
+
* @param nodeIds The list of node IDs to delete.
|
|
40
|
+
* @param permanent Delete permanently, without moving to the trashcan? (default: true)
|
|
41
|
+
*/
|
|
42
|
+
deleteNodes(nodeIds: string[], permanent?: boolean): Promise<any>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete all nodes of the currently logged in user
|
|
45
|
+
* @param userNodeId The id of User node, all child nodes of "userNodeId" will be gathered as a list and deleted ( e.g.: "-my-" - User Homes folder)
|
|
46
|
+
*/
|
|
47
|
+
deleteCurrentUserNodes(): Promise<void>;
|
|
48
|
+
lockNodes(nodeIds: string[], lockType?: string): Promise<void>;
|
|
49
|
+
unlockNodes(nodeIds: string[]): Promise<void>;
|
|
50
|
+
createContent(content: NodeContentTree, relativePath?: string): Promise<NodePaging>;
|
|
51
|
+
getNodeById(id: string): Promise<NodeEntry | null>;
|
|
52
|
+
getNodeIdFromParent(name: string, parentId: string): Promise<string>;
|
|
53
|
+
private getNodeChildren;
|
|
54
|
+
deleteNodeById(id: string, permanent?: boolean): Promise<void>;
|
|
55
|
+
cleanupNodeTemplatesItems(nodeNames: string[]): Promise<void>;
|
|
56
|
+
cleanupSpaceTemplatesItems(nodeNames: string[]): Promise<void>;
|
|
57
|
+
getNodeTemplatesFolderId(): Promise<string>;
|
|
58
|
+
getSpaceTemplatesFolderId(): Promise<string>;
|
|
59
|
+
private getDataDictionaryId;
|
|
60
|
+
setGranularPermission(nodeId: string, inheritPermissions: boolean, username: string, role: string): Promise<NodeEntry | null>;
|
|
61
|
+
removeUserAccessOnNodeTemplate(nodeName: string): Promise<NodeEntry>;
|
|
62
|
+
removeUserAccessOnSpaceTemplate(nodeName: string): Promise<NodeEntry>;
|
|
63
|
+
setInheritPermissions(nodeId: string, inheritPermissions: boolean): Promise<NodeEntry | null>;
|
|
64
|
+
private addAspects;
|
|
65
|
+
createFileLink(originalNodeId: string, destinationId: string): Promise<NodeEntry | null>;
|
|
66
|
+
createFolderLink(originalNodeId: string, destinationId: string): Promise<NodeEntry | null>;
|
|
67
|
+
createLinkToFileName(originalFileName: string, originalFileParentId: string, destinationParentId?: string): Promise<NodeEntry>;
|
|
68
|
+
createLinkToFolderName(originalFolderName: string, originalFolderParentId: string, destinationParentId?: string): Promise<NodeEntry>;
|
|
69
|
+
getNodeProperty(nodeId: string, property: string): Promise<string>;
|
|
70
|
+
isFileShared(nodeId: string): Promise<boolean>;
|
|
71
|
+
private getLockType;
|
|
72
|
+
isFileLockedWrite(nodeId: string): Promise<boolean>;
|
|
73
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
export interface PersonModel {
|
|
25
|
+
username?: string;
|
|
26
|
+
password?: string;
|
|
27
|
+
firstName?: string;
|
|
28
|
+
lastName?: string;
|
|
29
|
+
email?: string;
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
properties?: any;
|
|
32
|
+
}
|
|
33
|
+
export declare class Person {
|
|
34
|
+
id: string;
|
|
35
|
+
password: string;
|
|
36
|
+
firstName: string;
|
|
37
|
+
lastName: string;
|
|
38
|
+
email: string;
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
properties: any;
|
|
41
|
+
constructor(user: PersonModel);
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
export declare class QueriesApi {
|
|
25
|
+
private apiService;
|
|
26
|
+
constructor();
|
|
27
|
+
static initialize(userName: string, password?: string): Promise<QueriesApi>;
|
|
28
|
+
waitForSites(searchTerm: string, data: {
|
|
29
|
+
expect: number;
|
|
30
|
+
}): Promise<number>;
|
|
31
|
+
private findSitesTotalItems;
|
|
32
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { AcaFolderRulesModule } from '@alfresco/aca-content/folder-rules';
|
|
25
|
+
export declare class RulesApi {
|
|
26
|
+
private apiService;
|
|
27
|
+
constructor();
|
|
28
|
+
static initialize(userName: string, password?: string): Promise<RulesApi>;
|
|
29
|
+
private callApi;
|
|
30
|
+
createRule(nodeId: string, rule: Partial<Rule>, ruleSetId?: string): Promise<Rule>;
|
|
31
|
+
createRandomRule(folderId: string, ruleName: string): Promise<Rule>;
|
|
32
|
+
createRandomRuleWithMultipleConditions(folderId: string, ruleName: string, numOfConditions: number): Promise<Rule>;
|
|
33
|
+
createRandomRuleWithMultipleActions(folderId: string, ruleName: string, numOfActions: number): Promise<Rule>;
|
|
34
|
+
createRandomComplexRule(folderId: string, ruleName: string, numOfConditions: number, numOfActions: number, ruleDescription?: string): Promise<Rule>;
|
|
35
|
+
createRuleWithRandomAspects(folderId: string, ruleName: string): Promise<Rule>;
|
|
36
|
+
createRuleWithDestinationFolder(folderId: string, ruleName: string, actionType: 'move' | 'copy' | 'import', destinationFolderId: string): Promise<Rule>;
|
|
37
|
+
}
|
|
38
|
+
type RuleTrigger = 'inbound' | 'update' | 'outbound';
|
|
39
|
+
export interface Rule {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
isEnabled: boolean;
|
|
44
|
+
isInheritable: boolean;
|
|
45
|
+
isAsynchronous: boolean;
|
|
46
|
+
errorScript: string;
|
|
47
|
+
isShared: boolean;
|
|
48
|
+
triggers: RuleTrigger[];
|
|
49
|
+
conditions: AcaFolderRulesModule;
|
|
50
|
+
actions: RuleAction[];
|
|
51
|
+
}
|
|
52
|
+
export interface RuleAction {
|
|
53
|
+
actionDefinitionId: string;
|
|
54
|
+
params?: {
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export declare class ActionTypes {
|
|
59
|
+
key: string;
|
|
60
|
+
value: RuleAction;
|
|
61
|
+
static readonly ADDFEATURES: ActionTypes;
|
|
62
|
+
static readonly CHECKIN: ActionTypes;
|
|
63
|
+
static readonly SPECIALISETYPE: ActionTypes;
|
|
64
|
+
static readonly RECORDABLEVERSION: ActionTypes;
|
|
65
|
+
static readonly SETPROPERTYVALUE: ActionTypes;
|
|
66
|
+
static readonly actions: RuleAction[];
|
|
67
|
+
constructor(key: string, value: RuleAction);
|
|
68
|
+
}
|
|
69
|
+
export declare class ConditionsTypes {
|
|
70
|
+
key: string;
|
|
71
|
+
value: AcaFolderRulesModule;
|
|
72
|
+
static readonly MIMETYPE: ConditionsTypes;
|
|
73
|
+
static readonly CMNAME: ConditionsTypes;
|
|
74
|
+
static readonly SIZE: ConditionsTypes;
|
|
75
|
+
static readonly TAG: ConditionsTypes;
|
|
76
|
+
static readonly conditions: AcaFolderRulesModule[];
|
|
77
|
+
constructor(key: string, value: AcaFolderRulesModule);
|
|
78
|
+
}
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
export declare class SearchPageApi {
|
|
25
|
+
private apiService;
|
|
26
|
+
constructor();
|
|
27
|
+
static initialize(userName: string, password?: string): Promise<SearchPageApi>;
|
|
28
|
+
private querySearchFiles;
|
|
29
|
+
getTotalItems(username: string): Promise<number>;
|
|
30
|
+
waitForApi(username: string, data: {
|
|
31
|
+
expect: number;
|
|
32
|
+
}): Promise<any>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { SharedLinkEntry } from '@alfresco/js-api';
|
|
25
|
+
export declare class SharedLinksApi {
|
|
26
|
+
private apiService;
|
|
27
|
+
constructor();
|
|
28
|
+
static initialize(userName: string, password?: string): Promise<SharedLinksApi>;
|
|
29
|
+
shareFileById(id: string, expireDate?: Date): Promise<SharedLinkEntry | null>;
|
|
30
|
+
shareFilesByIds(ids: string[], expireDate?: Date): Promise<SharedLinkEntry[]>;
|
|
31
|
+
private getSharedLinks;
|
|
32
|
+
waitForFilesToBeShared(filesIds: string[]): Promise<void>;
|
|
33
|
+
private getSharedIdOfNode;
|
|
34
|
+
unshareFileById(fileId: string): Promise<void>;
|
|
35
|
+
waitForFilesToNotBeShared(filesIds: string[]): Promise<any>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { SiteEntry, SiteMemberEntry, SiteMembershipRequestEntry } from '@alfresco/js-api';
|
|
25
|
+
export declare class SitesApi {
|
|
26
|
+
private apiService;
|
|
27
|
+
constructor();
|
|
28
|
+
static initialize(userName: string, password?: string): Promise<SitesApi>;
|
|
29
|
+
createSite(title: string, visibility?: string, description?: string, siteId?: string): Promise<SiteEntry | null>;
|
|
30
|
+
getDocLibId(siteId: string): Promise<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Delete multiple sites/libraries.
|
|
33
|
+
* @param siteIds The list of the site/library IDs to delete.
|
|
34
|
+
* @param permanent Delete permanently, without moving to the trashcan? (default: true)
|
|
35
|
+
*/
|
|
36
|
+
deleteSites(siteIds: string[], permanent?: boolean): Promise<void>;
|
|
37
|
+
updateSiteMember(siteId: string, userId: string, role: string): Promise<SiteMemberEntry>;
|
|
38
|
+
addSiteMember(siteId: string, userId: string, role: string): Promise<SiteMemberEntry>;
|
|
39
|
+
createSiteMembershipRequestForPerson(personId: string, siteId: string): Promise<SiteMembershipRequestEntry>;
|
|
40
|
+
approveSiteMembershipRequest(siteId: string, inviteeId: string): Promise<SiteMemberEntry>;
|
|
41
|
+
hasMembershipRequest(personId: string, siteId: string): Promise<boolean>;
|
|
42
|
+
deleteSiteMember(siteId: string, userId: string): Promise<void>;
|
|
43
|
+
getSite(siteId: string): Promise<SiteEntry>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { TagBody, TagEntry } from '@alfresco/js-api';
|
|
25
|
+
export declare class TagsApi {
|
|
26
|
+
private apiService;
|
|
27
|
+
constructor();
|
|
28
|
+
static initialize(userName: string, password?: string): Promise<TagsApi>;
|
|
29
|
+
createTags(tags: TagBody[]): Promise<TagEntry[]>;
|
|
30
|
+
assignTagToNode(nodeId: string, tag: TagBody): Promise<TagEntry>;
|
|
31
|
+
deleteTag(tagId: string): Promise<void>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
export declare class TrashcanApi {
|
|
25
|
+
private apiService;
|
|
26
|
+
static initialize(userName: string, password?: string): Promise<TrashcanApi>;
|
|
27
|
+
/**
|
|
28
|
+
* Empties the trashcan. Uses multiple batches 1000 nodes each.
|
|
29
|
+
*/
|
|
30
|
+
emptyTrashcan(): Promise<void>;
|
|
31
|
+
}
|