mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-4117] Added possibility to create multiple categories (#8382)
* [ACS-4117] added possibility to create multiple subcategories * [ACS-4117] renamed api function to follow updated code * [ACS-4117] js-api update * [ACS-4117] package-lock * [ACS-4117] rebase * [ACS-4117] empty commit
This commit is contained in:
committed by
GitHub
parent
7c988fe4d3
commit
0089f188a4
2
lib/cli/package-lock.json
generated
2
lib/cli/package-lock.json
generated
@@ -5,7 +5,7 @@
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"@alfresco/js-api": {
|
||||
"version": "5.5.0-741",
|
||||
"version": "5.5.0-754",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-5.5.0-741.tgz",
|
||||
"integrity": "sha512-ABqr6zYO2jsh4pei7HEQkxVKSkGcMXEQScrdevX0/QoybVTuAyBQ+HvKf/cs36aECjHEkNqY3wN0Cjtqu/nOag==",
|
||||
"requires": {
|
||||
|
@@ -20,7 +20,7 @@
|
||||
"dist": "rm -rf ../../dist/libs/cli && npm run build && cp -R ./bin ../../dist/libs/cli && cp -R ./resources ../../dist/libs/cli && cp -R ./templates ../../dist/libs/cli && cp ./package.json ../../dist/libs/cli"
|
||||
},
|
||||
"dependencies": {
|
||||
"@alfresco/js-api": "5.5.0-741",
|
||||
"@alfresco/js-api": "5.5.0-754",
|
||||
"commander": "6.2.1",
|
||||
"ejs": "^2.6.1",
|
||||
"license-checker": "^25.0.1",
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"@angular/platform-browser": ">=14.1.3",
|
||||
"@angular/platform-browser-dynamic": ">=14.1.3",
|
||||
"@angular/router": ">=14.1.3",
|
||||
"@alfresco/js-api": "5.5.0-741",
|
||||
"@alfresco/js-api": "5.5.0-754",
|
||||
"@ngx-translate/core": ">=14.0.0",
|
||||
"moment": ">=2.22.2",
|
||||
"@alfresco/adf-core": "6.0.0-A.3"
|
||||
|
@@ -62,8 +62,8 @@ describe('CategoryService', () => {
|
||||
}));
|
||||
|
||||
it('should create subcategory', fakeAsync(() => {
|
||||
const createSpy = spyOn(categoryService.categoriesApi, 'createSubcategory').and.returnValue(Promise.resolve(fakeCategoryEntry));
|
||||
categoryService.createSubcategory(fakeParentCategoryId, fakeCategoryEntry.entry).subscribe(() => {
|
||||
const createSpy = spyOn(categoryService.categoriesApi, 'createSubcategories').and.returnValue(Promise.resolve(fakeCategoryEntry));
|
||||
categoryService.createSubcategories(fakeParentCategoryId, [fakeCategoryEntry.entry]).subscribe(() => {
|
||||
expect(createSpy).toHaveBeenCalledOnceWith(fakeParentCategoryId, [fakeCategoryEntry.entry], {});
|
||||
});
|
||||
}));
|
||||
|
@@ -58,14 +58,14 @@ export class CategoryService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates subcategory under category with provided categoryId
|
||||
* Creates subcategories under category with provided categoryId
|
||||
*
|
||||
* @param parentCategoryId The identifier of a parent category.
|
||||
* @param payload Created category body
|
||||
* @return Observable<CategoryEntry>
|
||||
* @param payload List of categories to be created.
|
||||
* @return Observable<CategoryPaging | CategoryEntry>
|
||||
*/
|
||||
createSubcategory(parentCategoryId: string, payload: CategoryBody): Observable<CategoryEntry> {
|
||||
return from(this.categoriesApi.createSubcategory(parentCategoryId, [payload], {}));
|
||||
createSubcategories(parentCategoryId: string, payload: CategoryBody[]): Observable<CategoryPaging | CategoryEntry> {
|
||||
return from(this.categoriesApi.createSubcategories(parentCategoryId, payload, {}));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -44,7 +44,7 @@
|
||||
"@angular/router": ">=14.1.3",
|
||||
"@mat-datetimepicker/core": "^9.0.68",
|
||||
"@mat-datetimepicker/moment": "^9.0.68",
|
||||
"@alfresco/js-api": "5.5.0-741",
|
||||
"@alfresco/js-api": "5.5.0-754",
|
||||
"@alfresco/adf-extensions": "6.0.0-A.3",
|
||||
"@ngx-translate/core": ">=14.0.0",
|
||||
"minimatch-browser": ">=1.0.0",
|
||||
|
@@ -14,7 +14,7 @@
|
||||
"peerDependencies": {
|
||||
"@angular/common": ">=14.1.3",
|
||||
"@angular/core": ">=14.1.3",
|
||||
"@alfresco/js-api": "5.5.0-741"
|
||||
"@alfresco/js-api": "5.5.0-754"
|
||||
},
|
||||
"keywords": [
|
||||
"extensions",
|
||||
|
@@ -23,7 +23,7 @@
|
||||
"@angular/platform-browser": ">=14.1.3",
|
||||
"@angular/platform-browser-dynamic": ">=14.1.3",
|
||||
"@angular/router": ">=14.1.3",
|
||||
"@alfresco/js-api": "5.5.0-741",
|
||||
"@alfresco/js-api": "5.5.0-754",
|
||||
"@alfresco/adf-core": "6.0.0-A.3",
|
||||
"@alfresco/adf-content-services": "6.0.0-A.3",
|
||||
"@apollo/client": "^3.7.2",
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"@angular/platform-browser": ">=14.1.3",
|
||||
"@angular/platform-browser-dynamic": ">=14.1.3",
|
||||
"@angular/router": ">=14.1.3",
|
||||
"@alfresco/js-api": "5.5.0-741",
|
||||
"@alfresco/js-api": "5.5.0-754",
|
||||
"@alfresco/adf-core": "6.0.0-A.3",
|
||||
"@alfresco/adf-content-services": "6.0.0-A.3",
|
||||
"@ngx-translate/core": ">=14.0.0",
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@alfresco/js-api": "5.5.0-741"
|
||||
"@alfresco/js-api": "5.5.0-754"
|
||||
},
|
||||
"keywords": [
|
||||
"testing",
|
||||
|
Reference in New Issue
Block a user