@umbraco/playwright-testhelpers 15.0.2 → 15.0.4
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/dist/lib/helpers/ContentRenderUiHelper.d.ts +1 -0
- package/dist/lib/helpers/ContentRenderUiHelper.js +3 -0
- package/dist/lib/helpers/ContentRenderUiHelper.js.map +1 -1
- package/dist/lib/helpers/DataTypeApiHelper.d.ts +11 -1
- package/dist/lib/helpers/DataTypeApiHelper.js +96 -2
- package/dist/lib/helpers/DataTypeApiHelper.js.map +1 -1
- package/dist/lib/helpers/DataTypeUiHelper.d.ts +15 -2
- package/dist/lib/helpers/DataTypeUiHelper.js +46 -5
- package/dist/lib/helpers/DataTypeUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentApiHelper.d.ts +4 -0
- package/dist/lib/helpers/DocumentApiHelper.js +24 -0
- package/dist/lib/helpers/DocumentApiHelper.js.map +1 -1
- package/dist/lib/helpers/TemplateApiHelper.d.ts +1 -0
- package/dist/lib/helpers/TemplateApiHelper.js +11 -0
- package/dist/lib/helpers/TemplateApiHelper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -6,4 +6,5 @@ export declare class ContentRenderUiHelper extends UiBaseLocators {
|
|
|
6
6
|
navigateToRenderedContentPage(contentURL: string): Promise<void>;
|
|
7
7
|
doesContentRenderValueContainText(text: string, isEqual?: boolean): Promise<void>;
|
|
8
8
|
doesContentRenderValueHaveImage(src: string, width: number, height: number): Promise<void>;
|
|
9
|
+
doesContentRenderValueHaveLink(linkSrc: string): Promise<void>;
|
|
9
10
|
}
|
|
@@ -25,6 +25,9 @@ class ContentRenderUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
25
25
|
const imageSrc = src + '?width=' + width.toString() + '&height=' + height.toString();
|
|
26
26
|
return await (0, test_1.expect)(this.contentRenderValue.locator('img')).toHaveAttribute('src', imageSrc);
|
|
27
27
|
}
|
|
28
|
+
async doesContentRenderValueHaveLink(linkSrc) {
|
|
29
|
+
return await (0, test_1.expect)(this.contentRenderValue.locator('a')).toHaveAttribute('href', linkSrc);
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
exports.ContentRenderUiHelper = ContentRenderUiHelper;
|
|
30
33
|
//# sourceMappingURL=ContentRenderUiHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentRenderUiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/ContentRenderUiHelper.ts"],"names":[],"mappings":";;;AAAA,2CAAuD;AACvD,qDAAgD;AAChD,yDAAmD;AAEnD,MAAa,qBAAsB,SAAQ,+BAAc;IACtC,kBAAkB,CAAU;IAE7C,YAAY,IAAU;QACpB,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,OAAO,CAAC,oCAAoC,CAAC,CAAC;IAC/E,CAAC;IAED,KAAK,CAAC,6BAA6B,CAAC,UAAkB;QACpD,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,8BAAa,CAAC,WAAW,CAAC,OAAO,GAAG,UAAU,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,iCAAiC,CAAC,IAAY,EAAE,UAAmB,KAAK;QAC5E,IAAI,OAAO,EAAE;YACX,OAAO,MAAM,IAAA,aAAM,EAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SAC/D;aAAM;YACL,OAAO,MAAM,IAAA,aAAM,EAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SAClE;IACH,CAAC;IAED,KAAK,CAAC,+BAA+B,CAAC,GAAW,EAAE,KAAa,EAAE,MAAc;QAC9E,MAAM,QAAQ,GAAG,GAAG,GAAG,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,QAAQ,E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AAO,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC/F,CAAC;IAED,KAAK,CAAC,8BAA8B,CAAC,OAAe;QAClD,OAAO,MAAM,IAAA,aAAM,EAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;CACF;AA5BD,sDA4BC","sourcesContent":["import {Page, Locator, expect} from \"@playwright/test\";\nimport {UiBaseLocators} from \"./UiBaseLocators\";\nimport {umbracoConfig} from \"../../umbraco.config\";\n\nexport class ContentRenderUiHelper extends UiBaseLocators {\n private readonly contentRenderValue: Locator;\n\n constructor(page: Page) {\n super(page);\n this.contentRenderValue = page.locator('[data-mark=\"content-render-value\"]');\n }\n\n async navigateToRenderedContentPage(contentURL: string) {\n await this.page.goto(umbracoConfig.environment.baseUrl + contentURL);\n }\n\n async doesContentRenderValueContainText(text: string, isEqual: boolean = false) {\n if (isEqual) {\n return await expect(this.contentRenderValue).toHaveText(text);\n } else {\n return await expect(this.contentRenderValue).toContainText(text);\n }\n }\n\n async doesContentRenderValueHaveImage(src: string, width: number, height: number) {\n const imageSrc = src + '?width=' + width.toString() + '&height=' + height.toString();\n return await expect(this.contentRenderValue.locator('img')).toHaveAttribute('src', imageSrc);\n }\n\n async doesContentRenderValueHaveLink(linkSrc: string) {\n return await expect(this.contentRenderValue.locator('a')).toHaveAttribute('href', linkSrc);\n }\n}"]}
|
|
@@ -108,6 +108,16 @@ export declare class DataTypeApiHelper {
|
|
|
108
108
|
createListViewContentDataType(name?: string): Promise<string | undefined>;
|
|
109
109
|
createListViewContentDataTypeWithAllPermissions(name?: string): Promise<string | undefined>;
|
|
110
110
|
updateListViewMediaDataType(alias: string, newValue: any): Promise<import("playwright-core").APIResponse>;
|
|
111
|
+
createDefaultTiptapDataType(name: string): Promise<string | undefined>;
|
|
111
112
|
createApprovedColorDataTypeWithOneItem(name: string, itemLabel: string, itemValue: string): Promise<string | undefined>;
|
|
112
|
-
|
|
113
|
+
getTiptapExtensionsCount(tipTapName: string): Promise<any>;
|
|
114
|
+
getTiptapToolbarGroupInRowCount(tipTapName: string, rowIndex?: number): Promise<any>;
|
|
115
|
+
getTiptapToolbarGroupValueInRow(tipTapName: string, groupIndex: number, rowIndex?: number): Promise<any>;
|
|
116
|
+
getTiptapToolbarRowCount(tipTapName: string): Promise<any>;
|
|
117
|
+
createDefaultTinyMCEDataType(name: string): Promise<string | undefined>;
|
|
118
|
+
getTinyMCEToolbarItemsCount(tinyMCEName: string): Promise<any>;
|
|
119
|
+
doesTinyMCEToolbarItemsMatchCount(tinyMCEName: string, count: number): Promise<boolean>;
|
|
120
|
+
doesTinyMCEToolbarHaveItems(tinyMCEName: string, items: string[]): Promise<boolean>;
|
|
121
|
+
createTiptapDataTypeWithTwoToolbarRows(name: string): Promise<string | undefined>;
|
|
122
|
+
createTinyMCEDataTypeWithStylesheet(name: string, stylesheetPath: string): Promise<string | undefined>;
|
|
113
123
|
}
|
|
@@ -902,6 +902,13 @@ class DataTypeApiHelper {
|
|
|
902
902
|
}
|
|
903
903
|
return await this.update(listViewMediaData.id, listViewMediaData);
|
|
904
904
|
}
|
|
905
|
+
async createDefaultTiptapDataType(name) {
|
|
906
|
+
await this.ensureNameNotExists(name);
|
|
907
|
+
const dataType = new json_models_builders_1.TiptapDataTypeBuilder()
|
|
908
|
+
.withName(name)
|
|
909
|
+
.build();
|
|
910
|
+
return await this.save(dataType);
|
|
911
|
+
}
|
|
905
912
|
async createApprovedColorDataTypeWithOneItem(name, itemLabel, itemValue) {
|
|
906
913
|
await this.ensureNameNotExists(name);
|
|
907
914
|
const dataType = new json_models_builders_1.ApprovedColorDataTypeBuilder()
|
|
@@ -914,9 +921,96 @@ class DataTypeApiHelper {
|
|
|
914
921
|
.build();
|
|
915
922
|
return await this.save(dataType);
|
|
916
923
|
}
|
|
917
|
-
async
|
|
924
|
+
async getTiptapExtensionsCount(tipTapName) {
|
|
925
|
+
const tipTapData = await this.getByName(tipTapName);
|
|
926
|
+
const extensionsValue = tipTapData.values.find(value => value.alias === 'extensions');
|
|
927
|
+
return extensionsValue?.value.length;
|
|
928
|
+
}
|
|
929
|
+
async getTiptapToolbarGroupInRowCount(tipTapName, rowIndex = 0) {
|
|
930
|
+
const tipTapData = await this.getByName(tipTapName);
|
|
931
|
+
const toolbarValue = tipTapData.values.find(value => value.alias === 'toolbar');
|
|
932
|
+
return toolbarValue?.value[rowIndex].length;
|
|
933
|
+
}
|
|
934
|
+
async getTiptapToolbarGroupValueInRow(tipTapName, groupIndex, rowIndex = 0) {
|
|
935
|
+
const tipTapData = await this.getByName(tipTapName);
|
|
936
|
+
const toolbarValue = tipTapData.values.find(value => value.alias === 'toolbar');
|
|
937
|
+
return toolbarValue?.value[rowIndex][groupIndex];
|
|
938
|
+
}
|
|
939
|
+
async getTiptapToolbarRowCount(tipTapName) {
|
|
940
|
+
const tipTapData = await this.getByName(tipTapName);
|
|
941
|
+
const toolbarValue = tipTapData.values.find(value => value.alias === 'toolbar');
|
|
942
|
+
return toolbarValue?.value.length;
|
|
943
|
+
}
|
|
944
|
+
async createDefaultTinyMCEDataType(name) {
|
|
945
|
+
await this.ensureNameNotExists(name);
|
|
946
|
+
const dataType = new json_models_builders_1.TinyMCEDataTypeBuilder()
|
|
947
|
+
.withName(name)
|
|
948
|
+
.addToolbar()
|
|
949
|
+
.withStyles(true)
|
|
950
|
+
.withBold(true)
|
|
951
|
+
.withItalic(true)
|
|
952
|
+
.withAlignLeft(true)
|
|
953
|
+
.withAlignCenter(true)
|
|
954
|
+
.withAlignRight(true)
|
|
955
|
+
.withBulList(true)
|
|
956
|
+
.withNumList(true)
|
|
957
|
+
.withOutdent(true)
|
|
958
|
+
.withIndent(true)
|
|
959
|
+
.withSourceCode(true)
|
|
960
|
+
.withLink(true)
|
|
961
|
+
.withUmbEmbedDialog(true)
|
|
962
|
+
.withUmbMediaPicker(true)
|
|
963
|
+
.done()
|
|
964
|
+
.withEditorMode('Classic')
|
|
965
|
+
.withMaxImageSize(500)
|
|
966
|
+
.build();
|
|
967
|
+
return await this.save(dataType);
|
|
968
|
+
}
|
|
969
|
+
async getTinyMCEToolbarItemsCount(tinyMCEName) {
|
|
970
|
+
const tinyMCEData = await this.getByName(tinyMCEName);
|
|
971
|
+
const toolbarValue = tinyMCEData.values.find(value => value.alias === 'toolbar');
|
|
972
|
+
return toolbarValue?.value.length;
|
|
973
|
+
}
|
|
974
|
+
async doesTinyMCEToolbarItemsMatchCount(tinyMCEName, count) {
|
|
975
|
+
const tinyMCEData = await this.getByName(tinyMCEName);
|
|
976
|
+
const toolbarValue = tinyMCEData.values.find(value => value.alias === 'toolbar');
|
|
977
|
+
return toolbarValue?.value.length === count;
|
|
978
|
+
}
|
|
979
|
+
async doesTinyMCEToolbarHaveItems(tinyMCEName, items) {
|
|
980
|
+
const tinyMCEData = await this.getByName(tinyMCEName);
|
|
981
|
+
const toolbarValue = tinyMCEData.values.find(value => value.alias === 'toolbar');
|
|
982
|
+
if (!toolbarValue || toolbarValue.value.length === 0) {
|
|
983
|
+
return false;
|
|
984
|
+
}
|
|
985
|
+
return items.every(item => toolbarValue.value.includes(item));
|
|
986
|
+
}
|
|
987
|
+
async createTiptapDataTypeWithTwoToolbarRows(name) {
|
|
988
|
+
await this.ensureNameNotExists(name);
|
|
989
|
+
const dataType = new json_models_builders_1.TiptapDataTypeBuilder()
|
|
990
|
+
.withName(name)
|
|
991
|
+
.addToolbarRow()
|
|
992
|
+
.addToolbarGroup()
|
|
993
|
+
.withHeading1(true)
|
|
994
|
+
.withHeading2(true)
|
|
995
|
+
.withHeading3(true)
|
|
996
|
+
.done()
|
|
997
|
+
.addToolbarGroup()
|
|
998
|
+
.withBold(true)
|
|
999
|
+
.withItalic(true)
|
|
1000
|
+
.done()
|
|
1001
|
+
.done()
|
|
1002
|
+
.addToolbarRow()
|
|
1003
|
+
.addToolbarGroup()
|
|
1004
|
+
.withBlockquote(true)
|
|
1005
|
+
.withBulletList(true)
|
|
1006
|
+
.done()
|
|
1007
|
+
.done()
|
|
1008
|
+
.build();
|
|
1009
|
+
return await this.save(dataType);
|
|
1010
|
+
}
|
|
1011
|
+
async createTinyMCEDataTypeWithStylesheet(name, stylesheetPath) {
|
|
918
1012
|
await this.ensureNameNotExists(name);
|
|
919
|
-
const dataType = new json_models_builders_1.
|
|
1013
|
+
const dataType = new json_models_builders_1.TinyMCEDataTypeBuilder()
|
|
920
1014
|
.withName(name)
|
|
921
1015
|
.addStylesheet(stylesheetPath)
|
|
922
1016
|
.addToolbar()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTypeApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/DataTypeApiHelper.ts"],"names":[],"mappings":";;;AACA,wEAuBuC;AAEvC,MAAa,iBAAiB;IAC5B,GAAG,CAAY;IAEf,YAAY,GAAe;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,uCAAuC,GAAG,EAAE,CAAC,CAAC;QACrG,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,WAAmB,EAAE,aAAqB,EAAE,MAA2C,EAAE,QAAiB,EAAE,EAAW;QAChJ,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,IAAI;YACZ,aAAa,EAAE,WAAW;YAC1B,eAAe,EAAE,aAAa;YAC9B,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC,CAAC,CAAC,IAAI;SAC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CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;CACF;AAxnCD,8CAwnCC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\nimport {\n CheckboxListDataTypeBuilder,\n DatePickerDataTypeBuilder,\n BlockListDataTypeBuilder,\n DropdownDataTypeBuilder,\n ContentPickerDataTypeBuilder,\n BlockGridDataTypeBuilder,\n ImageCropperDataTypeBuilder,\n AliasHelper,\n MediaPickerDataTypeBuilder,\n RadioboxDataTypeBuilder,\n TextAreaDataTypeBuilder,\n TextStringDataTypeBuilder,\n TrueFalseDataTypeBuilder,\n EmailAddressDataTypeBuilder,\n CodeEditorDataTypeBuilder,\n MarkdownEditorDataTypeBuilder,\n DecimalDataTypeBuilder,\n MultipleTextStringDataTypeBuilder,\n SliderDataTypeBuilder,\n ListViewDataTypeBuilder,\n ApprovedColorDataTypeBuilder,\n RichTextEditorDataTypeBuilder\n} from \"@umbraco/json-models-builders\";\n\nexport class DataTypeApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async get(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n return await response.json();\n }\n\n async create(name: string, editorAlias: string, editorUiAlias: string, values: { alias: string; value: string; }[], parentId?: string, id?: string) {\n const dataType = {\n \"name\": name,\n \"editorAlias\": editorAlias,\n \"editorUiAlias\": editorUiAlias,\n \"values\": values,\n \"id\": id,\n \"parent\": parentId ? {\"id\": parentId} : null\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type', dataType);\n // Returns the id of the created dataType\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n async update(id: string, dataType) {\n const updateDataType = {\n \"name\": dataType.name,\n \"editorAlias\": dataType.editorAlias,\n \"editorUiAlias\": dataType.editorUiAlias,\n \"values\": dataType.values,\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id, updateDataType);\n }\n\n async delete(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n }\n\n async getAllAtRoot() {\n return await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/root?skip=0&take=10000&foldersOnly=false');\n }\n\n async doesExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n return response.status() === 200;\n }\n\n async getItems(ids: string[]) {\n let idArray = 'id=' + ids[0];\n let i: number;\n\n for (i = 1; i < ids.length; ++i) {\n idArray += '&id=' + ids[i];\n }\n\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/item?' + idArray);\n return await response.json();\n }\n\n async getByName(name: string) {\n const rootDataTypes = await this.getAllAtRoot();\n const jsonDataTypes = await rootDataTypes.json();\n\n for (const dataType of jsonDataTypes.items) {\n if (dataType.name === name) {\n return this.get(dataType.id);\n } else if (dataType.isContainer || dataType.hasChildren) {\n const result = await this.recurseChildren(name, dataType.id, false);\n if (result) {\n return result;\n }\n }\n }\n return false;\n }\n\n async ensureNameNotExists(name: string) {\n const rootDataTypes = await this.getAllAtRoot();\n const jsonDataTypes = await rootDataTypes.json();\n\n for (const dataType of jsonDataTypes.items) {\n if (dataType.name === name) {\n if (dataType.isFolder) {\n return await this.recurseDeleteChildren(dataType);\n }\n return await this.delete(dataType.id);\n } else if (dataType.hasChildren) {\n await this.recurseChildren(name, dataType.id, true);\n\n }\n }\n return null;\n }\n\n async doesNameExist(name: string) {\n return await this.getByName(name);\n }\n\n async moveToFolder(dataTypeId: string, folderId: string) {\n const folderIdBody = {\n \"target\": {id: folderId}\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + dataTypeId + '/move', folderIdBody);\n }\n\n async copyToFolder(dataTypeId: string, folderId: string) {\n const folderIdBody = {\n \"target\": {id: folderId}\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + dataTypeId + '/copy', folderIdBody);\n // Returns the id of the copied dataType\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n // FOLDER\n async getFolder(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n return await response.json();\n }\n\n async createFolder(name: string, parentId?: string, id?: string) {\n const folderData = {\n \"name\": name,\n \"id\": id,\n \"parent\": parentId ? {\"id\": parentId} : null\n };\n\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder', folderData);\n // Returns the id of the created dataTypeFolder\n return response.headers().location.split(\"v1/data-type/folder/\").pop();\n }\n\n async renameFolder(id: string, name: string) {\n const folderData = {\n \"name\": name,\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id, folderData);\n }\n\n async deleteFolder(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n }\n\n async doesFolderExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n return response.status() === 200;\n }\n\n async getChildren(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/children?parentId=' + id + '&skip=0&take=100&foldersOnly=false');\n const items = await response.json();\n return items.items;\n }\n\n private async recurseDeleteChildren(dataFolder) {\n if (!dataFolder.hasChildren) {\n return await this.deleteFolder(dataFolder.id);\n }\n const items = await this.getChildren(dataFolder.id);\n\n for (const child of items) {\n if (child.hasChildren) {\n await this.recurseDeleteChildren(child);\n } else if (child.isFolder) {\n await this.deleteFolder(child.id);\n } else {\n await this.delete(child.id);\n }\n }\n return await this.deleteFolder(dataFolder.id);\n }\n\n private async recurseChildren(name: string, id: string, toDelete: boolean) {\n const items = await this.getChildren(id);\n\n for (const child of items) {\n if (child.name === name) {\n if (!toDelete) {\n if (child.isFolder) {\n return await this.getFolder(child.id);\n }\n return await this.get(child.id);\n }\n if (child.isFolder) {\n return await this.recurseDeleteChildren(child);\n }\n return await this.delete(child.id);\n } else if (child.hasChildren) {\n return await this.recurseChildren(name, child.id, toDelete);\n }\n }\n return false;\n }\n\n async save(dataType) {\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type', dataType)\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n async createDateTypeDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DatePickerDataTypeBuilder()\n .withName(name)\n .build();\n return await this.save(dataType);\n }\n\n async createCheckboxListDataType(name: string, options: string[]) {\n await this.ensureNameNotExists(name);\n\n const dataType = new CheckboxListDataTypeBuilder()\n .withName(name)\n .withItems(options)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithStartNode(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withStartNodeId(startNodeId)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithShowOpenButton(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withShowOpenButton(true)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithIgnoreUserStartNodes(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withStartNodeId(startNodeId)\n .withIgnoreUserStartNodes(true)\n .build();\n return await this.save(dataType);\n }\n \n async createDatePickerDataType(name: string, dateFormat: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DatePickerDataTypeBuilder()\n .withName(name)\n .withFormat(dateFormat)\n .build();\n return await this.save(dataType);\n }\n\n async createDropdownDataType(name: string, isMultiple: boolean, options: string[]) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DropdownDataTypeBuilder()\n .withName(name)\n .withMultiple(isMultiple)\n .withItems(options)\n .build();\n return await this.save(dataType);\n }\n\n // BlockListEditor\n async createEmptyBlockListDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithABlock(name: string, contentElementTypeId: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithContentAndSettingsElementType(name: string, contentElementTypeId: string, settingsElementTypeId: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withSettingsElementTypeKey(settingsElementTypeId)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithMinAndMaxAmount(name: string, minAmount: number = 0, maxAmount: number = 0) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withMinValue(minAmount)\n .withMaxValue(maxAmount)\n .build();\n \n return await this.save(blockList);\n }\n\n async createBlockListDataTypeWithSingleBlockMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withSingleBlockMode(enabled)\n .build();\n\n return await this.save(blockList);\n }\n\n async createBlockListDataTypeWithLiveEditingMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withLiveEditing(enabled)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithInlineEditingMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withInlineEditingAsDefault(enabled)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithPropertyEditorWidth(name: string, width: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withMaxPropertyWidth(width)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListWithBlockWithEditorAppearance(name: string, elementTypeId: string, label: string = '', overlaySize: string = 'small') {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withLabel(label)\n .withEditorSize(overlaySize)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n\n async createBlockListWithBlockWithCatalogueAppearance(name: string, elementTypeId: string, backgroundColor: string = '', iconColor: string = '', customStylesheet: string = '') {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withBackgroundColor(backgroundColor)\n .withIconColor(iconColor)\n .withStylesheet(customStylesheet)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListWithBlockWithHideContentEditor(name: string, elementTypeId: string, hideContentEditor: boolean) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withHideContentEditor(hideContentEditor)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n\n async isSingleBlockModeEnabledForBlockList(blockListName: string, enabled: boolean) {\n const blockList = await this.getByName(blockListName);\n const singleBlockModeValue = blockList.values.find(value => value.alias === 'useSingleBlockMode');\n return singleBlockModeValue?.value === enabled;\n }\n\n async isInlineEditingModeEnabledForBlockList(blockListName: string, enabled: boolean) {\n const blockList = await this.getByName(blockListName);\n const inlineEditingModeValue = blockList.values.find(value => value.alias === 'useInlineEditingAsDefault');\n return inlineEditingModeValue?.value === enabled;\n }\n \n // Block Grid\n async createEmptyBlockGrid(blockGridName: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithABlock(blockGridName: string, contentElementTypeId: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithABlockInAGroup(blockGridName: string, contentElementTypeId: string, groupName: string ) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlockGroup()\n .withName(groupName)\n .done()\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withGroupName(groupName)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithMinAndMaxAmount(blockGridName: string, minAmount: number = 0, maxAmount: number = 0) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withMinValue(minAmount)\n .withMaxValue(maxAmount)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLiveEditingMode(blockGridName: string, enabled: boolean) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withLiveEditing(enabled)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithPropertyEditorWidth(blockGridName: string, width: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withMaxPropertyWidth(width)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithCreateButtonLabel(blockGridName: string, label: string = '') {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withCreateLabel(label)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithGridColumns(blockGridName: string, columns: number = 12) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withGridColumns(columns)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLayoutStylesheet(blockGridName: string, stylesheet: string[] = ['']) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withLayoutStylesheet(stylesheet)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithAnAreaInABlock(blockGridName: string, contentElementTypeId: string, areaAlias: string = 'area', createButtonLabel :string = '', columnSpan: number = 6, rowSpan: number = 1, minAllowed: number = 0, maxAllowed: number = 2) {\n await this.ensureNameNotExists(blockGridName);\n \n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .addArea()\n .withAlias(areaAlias)\n .withCreateLabel(createButtonLabel)\n .withColumnSpan(columnSpan)\n .withRowSpan(rowSpan)\n .withMinAllowed(minAllowed)\n .withMaxAllowed(maxAllowed)\n .done()\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithAdvancedSettingsInBlock(blockGridName: string, contentElementTypeId: string, customViewPath: string = '', customStylesheetPath: string = '', overlaySize: string = 'small', inlineEditing: boolean = false, hideContentEditor: boolean = false) {\n await this.ensureNameNotExists(blockGridName);\n const encodedViewPath = await this.api.stylesheet.encodeStylesheetPath(customViewPath);\n const encodedStylesheetPath = await this.api.stylesheet.encodeStylesheetPath(customStylesheetPath);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withView(encodedViewPath)\n .withStylesheet(encodedStylesheetPath)\n .withEditorSize(overlaySize)\n .withInlineEditing(inlineEditing)\n .withHideContentEditor(hideContentEditor)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithCatalogueAppearanceInBlock(blockGridName: string, contentElementTypeId: string, backgroundColor: string = '', iconColor: string = '', thumbnail: string = '') {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withBackgroundColor(backgroundColor)\n .withIconColor(iconColor)\n .withThumbnail(thumbnail)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithContentAndSettingsElementType(blockGridName: string, contentElementTypeId: string, settingsElementTypeId: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withSettingsElementTypeKey(settingsElementTypeId)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLabel(blockGridName: string, contentElementTypeId: string, label: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withLabel(label)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithPermissions(blockGridName: string, contentElementTypeId: string, toAllowInRoot: boolean = false, toAllowInAreas: boolean = false) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withAllowAtRoot(toAllowInRoot)\n .withAllowInAreas(toAllowInAreas)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithSizeOptions(blockGridName: string, contentElementTypeId: string, columnSpans: number = 0, minRowSpan: number = 0, maxRowSpan: number = 12) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .addColumnSpanOptions(columnSpans)\n .withMinRowSpan(minRowSpan)\n .withMaxRowSpan(maxRowSpan)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async doesBlockEditorContainBlocksWithContentTypeIds(blockEditorName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockEditorName);\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const contentElementTypeKeys = blocksValue.value.map(block => block.contentElementTypeKey);\n return elementTypeIds.every(id => contentElementTypeKeys.includes(id));\n }\n\n async doesBlockEditorContainBlocksWithSettingsTypeIds(blockEditorName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockEditorName);\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const settingsElementTypeKeys = blocksValue.value.map(block => block.settingsElementTypeKey);\n return elementTypeIds.every(id => settingsElementTypeKeys.includes(id));\n }\n\n async isLiveEditingModeEnabledForBlockEditor(blockEditorName: string, enabled: boolean) {\n const blockEditor = await this.getByName(blockEditorName);\n const liveEditingModeValue = blockEditor.values.find(value => value.alias === 'useLiveEditing');\n return liveEditingModeValue?.value === enabled;\n }\n\n async doesMaxPropertyContainWidthForBlockEditor(blockEditorName: string, width: string) {\n const blockEditor = await this.getByName(blockEditorName);\n const maxPropertyWidthValue = blockEditor.values.find(value => value.alias === 'maxPropertyWidth');\n return maxPropertyWidthValue?.value === width;\n }\n\n async doesBlockEditorBlockContainLabel(blockName: string, elementTypeKey: string, label: string) {\n const block = await this.getBlockWithContentElementTypeId(blockName, elementTypeKey);\n return block.label === label;\n }\n\n async doesBlockGridGroupContainCorrectBlocks(blockGridName: string, groupName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockGridName);\n // We need to get the GroupKey, so we can use it to find the blocks that use the Key.\n const blockGroupsValue = blockEditor.values.find(value => value.alias === 'blockGroups');\n if (!blockGroupsValue || blockGroupsValue.value.length === 0) {\n return false;\n }\n\n const blockGroupKey = blockGroupsValue.value.find(blockGroup => blockGroup.name === groupName).key;\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const blocksWithGroupKey = blocksValue.value.filter(block => block.groupKey === blockGroupKey);\n return elementTypeIds.every(id =>\n blocksWithGroupKey.some(block => block.contentElementTypeKey === id)\n );\n }\n\n async doesBlockGridContainCreateButtonLabel(blockGridName: string, label: string) {\n const blockEditor = await this.getByName(blockGridName);\n const createLabelValue = blockEditor.values.find(value => value.alias === 'createLabel');\n return createLabelValue?.value === label;\n }\n\n async doesBlockGridContainGridColumns(blockGridName: string, columns: number) {\n const blockEditor = await this.getByName(blockGridName);\n const gridColumnsValue = blockEditor.values.find(value => value.alias === 'gridColumns');\n return gridColumnsValue?.value === columns;\n }\n\n async doesBlockEditorBlockHaveAllowInRootEnabled(blockGridName: string, elementTypeKey: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.allowAtRoot;\n }\n\n async doesBlockEditorBlockHaveAllowInAreasEnabled(blockGridName: string, elementTypeKey: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.allowInAreas;\n }\n\n async doesBlockEditorBlockContainColumnSpanOptions(blockGridName: string, elementTypeKey: string, expectedColumnSpans: number[]) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n\n // If the block does not have any columnSpanOptions, and we are not expecting any, return true\n if (block.columnSpanOptions.length === 0 && expectedColumnSpans.length === 0) {\n return true;\n }\n\n const columnSpans = block.columnSpanOptions.map(option => option.columnSpan);\n return expectedColumnSpans.every(span => columnSpans.includes(span)) && columnSpans.every(span => expectedColumnSpans.includes(span));\n }\n\n async doesBlockEditorBlockContainRowSpanOptions(blockGridName: string, elementTypeKey: string, minRowSpan: number, maxRowSpan: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.rowMinSpan === minRowSpan && block.rowMaxSpan === maxRowSpan;\n }\n\n async doesBlockEditorBlockContainAreaGridColumns(blockGridName: string, elementTypeKey: string, areaGridColumns: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areaGridColumns === areaGridColumns;\n }\n\n async doesBlockEditorBlockContainAreaWithAlias(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area') {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.alias === areaAlias);\n }\n \n async doesBlockEditorBlockContainAreaCount(blockGridName: string, elementTypeKey: string, areaCount: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.length === areaCount;\n }\n\n async doesBlockEditorBlockContainAreaWithCreateButtonLabel(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', createButtonLabel: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.createLabel === createButtonLabel && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainAreaWithMinAllowed(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', minAllowed: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.minAllowed === minAllowed && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainAreaWithMaxAllowed(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', maxAllowed: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.maxAllowed === maxAllowed && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainStylesheet(blockGridName: string, elementTypeKey: string, stylesheetPath: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n const encodedSecondStylesheetPath = await this.api.stylesheet.encodeStylesheetPath(stylesheetPath);\n return block.stylesheet[0] === encodedSecondStylesheetPath;\n }\n\n async doesBlockEditorBlockContainOverlaySize(blockGridName: string, elementTypeKey: string, overlaySize: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.editorSize === overlaySize;\n }\n\n async doesBlockEditorBlockContainInlineEditing(blockGridName: string, elementTypeKey: string, inlineEditing: boolean) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.inlineEditing === inlineEditing;\n }\n\n async doesBlockEditorBlockContainHideContentEditor(blockGridName: string, elementTypeKey: string, hideContentEditor: boolean) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.hideContentEditor === hideContentEditor;\n }\n\n async doesBlockEditorBlockContainBackgroundColor(blockGridName: string, elementTypeKey: string, backgroundColor: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.backgroundColor === backgroundColor;\n }\n\n async doesBlockEditorBlockContainIconColor(blockGridName: string, elementTypeKey: string, iconColor: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.iconColor === iconColor;\n }\n\n async doesBlockEditorBlockContainThumbnail(blockGridName: string, elementTypeKey: string, thumbnail: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.thumbnail === thumbnail;\n }\n \n async getBlockWithContentElementTypeId(blockGridName: string, contentElementTypeKey: string) {\n const blockEditor = await this.getByName(blockGridName);\n const blocks = blockEditor.values.find(value => value.alias === 'blocks');\n return blocks.value.find(block => block.contentElementTypeKey === contentElementTypeKey);\n }\n\n async createImageCropperDataTypeWithOneCrop(name: string, cropLabel: string, cropWidth: number, cropHeight: number) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ImageCropperDataTypeBuilder()\n .withName(name)\n .addCrop()\n .withLabel(cropLabel)\n .withAlias(AliasHelper.toAlias(cropLabel))\n .withHeight(cropHeight)\n .withWidth(cropWidth)\n .done()\n .build();\n\n return await this.save(dataType);\n }\n\n async createMediaPickerDataTypeWithStartNodeId(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new MediaPickerDataTypeBuilder()\n .withName(name)\n .withStartNodeId(startNodeId)\n .withIgnoreUserStartNodes(false)\n .build();\n\n return await this.save(dataType);\n }\n\n async createRadioboxDataType(name: string, options: string[]) {\n await this.ensureNameNotExists(name);\n\n const dataType = new RadioboxDataTypeBuilder()\n .withName(name)\n .withItems(options)\n .build();\n \n return await this.save(dataType);\n }\n\n async createImageMediaPickerDataType(name: string, minValue = 0, maxValue = 1, enableLocalFocalPoint = false, ignoreUserStartNodes = false) {\n await this.ensureNameNotExists(name);\n const mediaType = await this.api.mediaType.getByName('Image');\n\n const dataType = new MediaPickerDataTypeBuilder()\n .withName(name)\n .withFilter(mediaType.id)\n .withMultiple(false)\n .withMinValue(minValue)\n .withMaxValue(maxValue)\n .withEnableLocalFocalPoint(enableLocalFocalPoint)\n .withIgnoreUserStartNodes(ignoreUserStartNodes)\n .build();\n\n return await this.save(dataType);\n }\n\n async createImageMediaPickerDataTypeWithStartNodeId(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n const mediaType = await this.api.mediaType.getByName('Image');\n\n const dataType = new MediaPickerDataTypeBuilder()\n .withName(name)\n .withFilter(mediaType.id)\n .withStartNodeId(startNodeId)\n .build();\n\n return await this.save(dataType);\n }\n \n async createImageMediaPickerDataTypeWithCrop(name: string, label: string, width: number, height: number) {\n await this.ensureNameNotExists(name);\n const mediaType = await this.api.mediaType.getByName('Image');\n\n const dataType = new MediaPickerDataTypeBuilder()\n .withName(name)\n .withFilter(mediaType.id)\n .addCrop()\n .withLabel(label)\n .withAlias(AliasHelper.toAlias(label))\n .withHeight(height)\n .withWidth(width)\n .done()\n .build();\n\n return await this.save(dataType);\n }\n\n async createTextareaDataType(name: string, maxChars: number = 0, rows: number = 0, minHeight: number = 0, maxHeight: number = 0) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TextAreaDataTypeBuilder()\n .withName(name)\n .withMaxChars(maxChars)\n .withRows(rows)\n .withMinHeight(minHeight)\n .withMaxHeight(maxHeight)\n .build();\n\n return await this.save(dataType);\n }\n\n async createTextstringDataType(name: string, maxChars: number = 0) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TextStringDataTypeBuilder()\n .withName(name)\n .withMaxChars(maxChars)\n .build();\n\n return await this.save(dataType);\n }\n \n async createTrueFalseDataTypeWithInitialState(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TrueFalseDataTypeBuilder()\n .withName(name)\n .withIsDefault(true)\n .build();\n\n return await this.save(dataType);\n }\n\n async createTrueFalseDataTypeWithLabelOn(name: string, labelOn: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TrueFalseDataTypeBuilder()\n .withName(name)\n .withShowLabels(true)\n .withLabelOn(labelOn)\n .build();\n\n return await this.save(dataType);\n }\n\n async createTrueFalseDataTypeWithLabelOff(name: string, labelOff: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TrueFalseDataTypeBuilder()\n .withName(name)\n .withShowLabels(true)\n .withLabelOff(labelOff)\n .build();\n\n return await this.save(dataType);\n }\n\n async createEmailAddressDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new EmailAddressDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createCodeEditorDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new CodeEditorDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createMarkdownEditorDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new MarkdownEditorDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createDecimalDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DecimalDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createMultipleTextStringDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new MultipleTextStringDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createSliderDataTyper(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new SliderDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n // List View - Content data type\n async createListViewContentDataType(name: string = 'List View - Content Test') {\n await this.ensureNameNotExists(name);\n\n const dataType = new ListViewDataTypeBuilder()\n .withName(name)\n .withPageSize(100)\n .addLayout()\n .withName('List')\n .withIcon('icon-list')\n .withCollectionView('Umb.CollectionView.Document.Table')\n .done()\n .addLayout()\n .withName('Grid')\n .withIcon('icon-grid')\n .withCollectionView('Umb.CollectionView.Document.Grid')\n .done()\n .addColumnDisplayedProperty()\n .withAlias('updateDate')\n .withHeader('Last edited')\n .done()\n .addColumnDisplayedProperty()\n .withAlias('creator')\n .withHeader('Updated by')\n .done()\n .build();\n return await this.save(dataType);\n }\n\n async createListViewContentDataTypeWithAllPermissions(name: string = 'List View - Content Test') {\n await this.ensureNameNotExists(name);\n\n const dataType = new ListViewDataTypeBuilder()\n .withName(name)\n .withPageSize(100)\n .addLayout()\n .withName('List')\n .withIcon('icon-list')\n .withCollectionView('Umb.CollectionView.Document.Table')\n .done()\n .addLayout()\n .withName('Grid')\n .withIcon('icon-grid')\n .withCollectionView('Umb.CollectionView.Document.Grid')\n .done()\n .addColumnDisplayedProperty()\n .withAlias('updateDate')\n .withHeader('Last edited')\n .done()\n .addColumnDisplayedProperty()\n .withAlias('creator')\n .withHeader('Updated by')\n .done()\n .addBulkActionPermissions()\n .withAllowBulkCopy(true)\n .withAllowBulkDelete(true)\n .withAllowBulkMove(true)\n .withAllowBulkPublish(true)\n .withAllowBulkUnPublish(true)\n .done()\n .build();\n return await this.save(dataType);\n }\n \n // List View - Media data type\n async updateListViewMediaDataType(alias: string, newValue: any) {\n const listViewMediaData = await this.getByName('List View - Media');\n const valueData = listViewMediaData.values.find(value => value.alias === alias);\n if (valueData) {\n valueData.value = newValue;\n } else {\n listViewMediaData.values.push({\n \"alias\": alias,\n \"value\": newValue\n });\n }\n return await this.update(listViewMediaData.id, listViewMediaData);\n }\n\n async createApprovedColorDataTypeWithOneItem(name: string, itemLabel: string, itemValue: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ApprovedColorDataTypeBuilder()\n .withName(name)\n .withUseLabel(true)\n .addItem()\n .withLabel(itemLabel)\n .withValue(itemValue)\n .done()\n .build();\n\n return await this.save(dataType);\n }\n \n async createRichTextEditorDataTypeWithStylesheet(name: string, stylesheetPath: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new RichTextEditorDataTypeBuilder()\n .withName(name)\n .addStylesheet(stylesheetPath)\n .addToolbar()\n .withBold(true)\n .withItalic(true)\n .done()\n .build();\n\n return await this.save(dataType);\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"DataTypeApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/DataTypeApiHelper.ts"],"names":[],"mappings":";;;AACA,wEAwBuC;AAEvC,MAAa,iBAAiB;IAC5B,GAAG,CAAY;IAEf,YAAY,GAAe;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,uCAAuC,GAAG,EAAE,CAAC,CAAC;QACrG,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,WAAmB,EAAE,aAAqB,EAAE,MAA2C,EAAE,QAAiB,EAAE,EAAW;QAChJ,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,IAAI;YACZ,aAAa,EAAE,WAAW;YAC1B,eAAe,EAAE,aAAa;YAC9B,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC,CAAC,CAAC,I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AM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEnC,CAAC;IACD,KAAK,CAAC,mCAAmC,CAAC,IAAY,EAAE,cAAsB;QAC5E,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAErC,MAAM,QAAQ,GAAG,IAAI,6CAAsB,EAAE;aAC1C,QAAQ,CAAC,IAAI,CAAC;aACd,aAAa,CAAC,cAAc,CAAC;aAC7B,UAAU,EAAE;aACV,QAAQ,CAAC,IAAI,CAAC;aACd,UAAU,CAAC,IAAI,CAAC;aAChB,IAAI,EAAE;aACR,KAAK,EAAE,CAAC;QAEX,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;CACF;AAtuCD,8CAsuCC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\nimport {\n CheckboxListDataTypeBuilder,\n DatePickerDataTypeBuilder,\n BlockListDataTypeBuilder,\n DropdownDataTypeBuilder,\n ContentPickerDataTypeBuilder,\n BlockGridDataTypeBuilder,\n ImageCropperDataTypeBuilder,\n AliasHelper,\n MediaPickerDataTypeBuilder,\n RadioboxDataTypeBuilder,\n TextAreaDataTypeBuilder,\n TextStringDataTypeBuilder,\n TrueFalseDataTypeBuilder,\n EmailAddressDataTypeBuilder,\n CodeEditorDataTypeBuilder,\n MarkdownEditorDataTypeBuilder,\n DecimalDataTypeBuilder,\n MultipleTextStringDataTypeBuilder,\n SliderDataTypeBuilder,\n ListViewDataTypeBuilder,\n TiptapDataTypeBuilder,\n TinyMCEDataTypeBuilder,\n ApprovedColorDataTypeBuilder\n} from \"@umbraco/json-models-builders\";\n\nexport class DataTypeApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async get(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n return await response.json();\n }\n\n async create(name: string, editorAlias: string, editorUiAlias: string, values: { alias: string; value: string; }[], parentId?: string, id?: string) {\n const dataType = {\n \"name\": name,\n \"editorAlias\": editorAlias,\n \"editorUiAlias\": editorUiAlias,\n \"values\": values,\n \"id\": id,\n \"parent\": parentId ? {\"id\": parentId} : null\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type', dataType);\n // Returns the id of the created dataType\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n async update(id: string, dataType) {\n const updateDataType = {\n \"name\": dataType.name,\n \"editorAlias\": dataType.editorAlias,\n \"editorUiAlias\": dataType.editorUiAlias,\n \"values\": dataType.values,\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id, updateDataType);\n }\n\n async delete(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n }\n\n async getAllAtRoot() {\n return await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/root?skip=0&take=10000&foldersOnly=false');\n }\n\n async doesExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n return response.status() === 200;\n }\n\n async getItems(ids: string[]) {\n let idArray = 'id=' + ids[0];\n let i: number;\n\n for (i = 1; i < ids.length; ++i) {\n idArray += '&id=' + ids[i];\n }\n\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/item?' + idArray);\n return await response.json();\n }\n\n async getByName(name: string) {\n const rootDataTypes = await this.getAllAtRoot();\n const jsonDataTypes = await rootDataTypes.json();\n\n for (const dataType of jsonDataTypes.items) {\n if (dataType.name === name) {\n return this.get(dataType.id);\n } else if (dataType.isContainer || dataType.hasChildren) {\n const result = await this.recurseChildren(name, dataType.id, false);\n if (result) {\n return result;\n }\n }\n }\n return false;\n }\n\n async ensureNameNotExists(name: string) {\n const rootDataTypes = await this.getAllAtRoot();\n const jsonDataTypes = await rootDataTypes.json();\n\n for (const dataType of jsonDataTypes.items) {\n if (dataType.name === name) {\n if (dataType.isFolder) {\n return await this.recurseDeleteChildren(dataType);\n }\n return await this.delete(dataType.id);\n } else if (dataType.hasChildren) {\n await this.recurseChildren(name, dataType.id, true);\n\n }\n }\n return null;\n }\n\n async doesNameExist(name: string) {\n return await this.getByName(name);\n }\n\n async moveToFolder(dataTypeId: string, folderId: string) {\n const folderIdBody = {\n \"target\": {id: folderId}\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + dataTypeId + '/move', folderIdBody);\n }\n\n async copyToFolder(dataTypeId: string, folderId: string) {\n const folderIdBody = {\n \"target\": {id: folderId}\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + dataTypeId + '/copy', folderIdBody);\n // Returns the id of the copied dataType\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n // FOLDER\n async getFolder(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n return await response.json();\n }\n\n async createFolder(name: string, parentId?: string, id?: string) {\n const folderData = {\n \"name\": name,\n \"id\": id,\n \"parent\": parentId ? {\"id\": parentId} : null\n };\n\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder', folderData);\n // Returns the id of the created dataTypeFolder\n return response.headers().location.split(\"v1/data-type/folder/\").pop();\n }\n\n async renameFolder(id: string, name: string) {\n const folderData = {\n \"name\": name,\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id, folderData);\n }\n\n async deleteFolder(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n }\n\n async doesFolderExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n return response.status() === 200;\n }\n\n async getChildren(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/children?parentId=' + id + '&skip=0&take=100&foldersOnly=false');\n const items = await response.json();\n return items.items;\n }\n\n private async recurseDeleteChildren(dataFolder) {\n if (!dataFolder.hasChildren) {\n return await this.deleteFolder(dataFolder.id);\n }\n const items = await this.getChildren(dataFolder.id);\n\n for (const child of items) {\n if (child.hasChildren) {\n await this.recurseDeleteChildren(child);\n } else if (child.isFolder) {\n await this.deleteFolder(child.id);\n } else {\n await this.delete(child.id);\n }\n }\n return await this.deleteFolder(dataFolder.id);\n }\n\n private async recurseChildren(name: string, id: string, toDelete: boolean) {\n const items = await this.getChildren(id);\n\n for (const child of items) {\n if (child.name === name) {\n if (!toDelete) {\n if (child.isFolder) {\n return await this.getFolder(child.id);\n }\n return await this.get(child.id);\n }\n if (child.isFolder) {\n return await this.recurseDeleteChildren(child);\n }\n return await this.delete(child.id);\n } else if (child.hasChildren) {\n return await this.recurseChildren(name, child.id, toDelete);\n }\n }\n return false;\n }\n\n async save(dataType) {\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type', dataType)\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n async createDateTypeDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DatePickerDataTypeBuilder()\n .withName(name)\n .build();\n return await this.save(dataType);\n }\n\n async createCheckboxListDataType(name: string, options: string[]) {\n await this.ensureNameNotExists(name);\n\n const dataType = new CheckboxListDataTypeBuilder()\n .withName(name)\n .withItems(options)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithStartNode(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withStartNodeId(startNodeId)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithShowOpenButton(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withShowOpenButton(true)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithIgnoreUserStartNodes(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withStartNodeId(startNodeId)\n .withIgnoreUserStartNodes(true)\n .build();\n return await this.save(dataType);\n }\n \n async createDatePickerDataType(name: string, dateFormat: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DatePickerDataTypeBuilder()\n .withName(name)\n .withFormat(dateFormat)\n .build();\n return await this.save(dataType);\n }\n\n async createDropdownDataType(name: string, isMultiple: boolean, options: string[]) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DropdownDataTypeBuilder()\n .withName(name)\n .withMultiple(isMultiple)\n .withItems(options)\n .build();\n return await this.save(dataType);\n }\n\n // BlockListEditor\n async createEmptyBlockListDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithABlock(name: string, contentElementTypeId: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithContentAndSettingsElementType(name: string, contentElementTypeId: string, settingsElementTypeId: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withSettingsElementTypeKey(settingsElementTypeId)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithMinAndMaxAmount(name: string, minAmount: number = 0, maxAmount: number = 0) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withMinValue(minAmount)\n .withMaxValue(maxAmount)\n .build();\n \n return await this.save(blockList);\n }\n\n async createBlockListDataTypeWithSingleBlockMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withSingleBlockMode(enabled)\n .build();\n\n return await this.save(blockList);\n }\n\n async createBlockListDataTypeWithLiveEditingMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withLiveEditing(enabled)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithInlineEditingMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withInlineEditingAsDefault(enabled)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithPropertyEditorWidth(name: string, width: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withMaxPropertyWidth(width)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListWithBlockWithEditorAppearance(name: string, elementTypeId: string, label: string = '', overlaySize: string = 'small') {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withLabel(label)\n .withEditorSize(overlaySize)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n\n async createBlockListWithBlockWithCatalogueAppearance(name: string, elementTypeId: string, backgroundColor: string = '', iconColor: string = '', customStylesheet: string = '') {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withBackgroundColor(backgroundColor)\n .withIconColor(iconColor)\n .withStylesheet(customStylesheet)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListWithBlockWithHideContentEditor(name: string, elementTypeId: string, hideContentEditor: boolean) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withHideContentEditor(hideContentEditor)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n\n async isSingleBlockModeEnabledForBlockList(blockListName: string, enabled: boolean) {\n const blockList = await this.getByName(blockListName);\n const singleBlockModeValue = blockList.values.find(value => value.alias === 'useSingleBlockMode');\n return singleBlockModeValue?.value === enabled;\n }\n\n async isInlineEditingModeEnabledForBlockList(blockListName: string, enabled: boolean) {\n const blockList = await this.getByName(blockListName);\n const inlineEditingModeValue = blockList.values.find(value => value.alias === 'useInlineEditingAsDefault');\n return inlineEditingModeValue?.value === enabled;\n }\n \n // Block Grid\n async createEmptyBlockGrid(blockGridName: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithABlock(blockGridName: string, contentElementTypeId: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithABlockInAGroup(blockGridName: string, contentElementTypeId: string, groupName: string ) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlockGroup()\n .withName(groupName)\n .done()\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withGroupName(groupName)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithMinAndMaxAmount(blockGridName: string, minAmount: number = 0, maxAmount: number = 0) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withMinValue(minAmount)\n .withMaxValue(maxAmount)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLiveEditingMode(blockGridName: string, enabled: boolean) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withLiveEditing(enabled)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithPropertyEditorWidth(blockGridName: string, width: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withMaxPropertyWidth(width)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithCreateButtonLabel(blockGridName: string, label: string = '') {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withCreateLabel(label)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithGridColumns(blockGridName: string, columns: number = 12) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withGridColumns(columns)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLayoutStylesheet(blockGridName: string, stylesheet: string[] = ['']) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withLayoutStylesheet(stylesheet)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithAnAreaInABlock(blockGridName: string, contentElementTypeId: string, areaAlias: string = 'area', createButtonLabel :string = '', columnSpan: number = 6, rowSpan: number = 1, minAllowed: number = 0, maxAllowed: number = 2) {\n await this.ensureNameNotExists(blockGridName);\n \n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .addArea()\n .withAlias(areaAlias)\n .withCreateLabel(createButtonLabel)\n .withColumnSpan(columnSpan)\n .withRowSpan(rowSpan)\n .withMinAllowed(minAllowed)\n .withMaxAllowed(maxAllowed)\n .done()\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithAdvancedSettingsInBlock(blockGridName: string, contentElementTypeId: string, customViewPath: string = '', customStylesheetPath: string = '', overlaySize: string = 'small', inlineEditing: boolean = false, hideContentEditor: boolean = false) {\n await this.ensureNameNotExists(blockGridName);\n const encodedViewPath = await this.api.stylesheet.encodeStylesheetPath(customViewPath);\n const encodedStylesheetPath = await this.api.stylesheet.encodeStylesheetPath(customStylesheetPath);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withView(encodedViewPath)\n .withStylesheet(encodedStylesheetPath)\n .withEditorSize(overlaySize)\n .withInlineEditing(inlineEditing)\n .withHideContentEditor(hideContentEditor)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithCatalogueAppearanceInBlock(blockGridName: string, contentElementTypeId: string, backgroundColor: string = '', iconColor: string = '', thumbnail: string = '') {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withBackgroundColor(backgroundColor)\n .withIconColor(iconColor)\n .withThumbnail(thumbnail)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithContentAndSettingsElementType(blockGridName: string, contentElementTypeId: string, settingsElementTypeId: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withSettingsElementTypeKey(settingsElementTypeId)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLabel(blockGridName: string, contentElementTypeId: string, label: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withLabel(label)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithPermissions(blockGridName: string, contentElementTypeId: string, toAllowInRoot: boolean = false, toAllowInAreas: boolean = false) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withAllowAtRoot(toAllowInRoot)\n .withAllowInAreas(toAllowInAreas)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithSizeOptions(blockGridName: string, contentElementTypeId: string, columnSpans: number = 0, minRowSpan: number = 0, maxRowSpan: number = 12) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .addColumnSpanOptions(columnSpans)\n .withMinRowSpan(minRowSpan)\n .withMaxRowSpan(maxRowSpan)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async doesBlockEditorContainBlocksWithContentTypeIds(blockEditorName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockEditorName);\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const contentElementTypeKeys = blocksValue.value.map(block => block.contentElementTypeKey);\n return elementTypeIds.every(id => contentElementTypeKeys.includes(id));\n }\n\n async doesBlockEditorContainBlocksWithSettingsTypeIds(blockEditorName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockEditorName);\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const settingsElementTypeKeys = blocksValue.value.map(block => block.settingsElementTypeKey);\n return elementTypeIds.every(id => settingsElementTypeKeys.includes(id));\n }\n\n async isLiveEditingModeEnabledForBlockEditor(blockEditorName: string, enabled: boolean) {\n const blockEditor = await this.getByName(blockEditorName);\n const liveEditingModeValue = blockEditor.values.find(value => value.alias === 'useLiveEditing');\n return liveEditingModeValue?.value === enabled;\n }\n\n async doesMaxPropertyContainWidthForBlockEditor(blockEditorName: string, width: string) {\n const blockEditor = await this.getByName(blockEditorName);\n const maxPropertyWidthValue = blockEditor.values.find(value => value.alias === 'maxPropertyWidth');\n return maxPropertyWidthValue?.value === width;\n }\n\n async doesBlockEditorBlockContainLabel(blockName: string, elementTypeKey: string, label: string) {\n const block = await this.getBlockWithContentElementTypeId(blockName, elementTypeKey);\n return block.label === label;\n }\n\n async doesBlockGridGroupContainCorrectBlocks(blockGridName: string, groupName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockGridName);\n // We need to get the GroupKey, so we can use it to find the blocks that use the Key.\n const blockGroupsValue = blockEditor.values.find(value => value.alias === 'blockGroups');\n if (!blockGroupsValue || blockGroupsValue.value.length === 0) {\n return false;\n }\n\n const blockGroupKey = blockGroupsValue.value.find(blockGroup => blockGroup.name === groupName).key;\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const blocksWithGroupKey = blocksValue.value.filter(block => block.groupKey === blockGroupKey);\n return elementTypeIds.every(id =>\n blocksWithGroupKey.some(block => block.contentElementTypeKey === id)\n );\n }\n\n async doesBlockGridContainCreateButtonLabel(blockGridName: string, label: string) {\n const blockEditor = await this.getByName(blockGridName);\n const createLabelValue = blockEditor.values.find(value => value.alias === 'createLabel');\n return createLabelValue?.value === label;\n }\n\n async doesBlockGridContainGridColumns(blockGridName: string, columns: number) {\n const blockEditor = await this.getByName(blockGridName);\n const gridColumnsValue = blockEditor.values.find(value => value.alias === 'gridColumns');\n return gridColumnsValue?.value === columns;\n }\n\n async doesBlockEditorBlockHaveAllowInRootEnabled(blockGridName: string, elementTypeKey: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.allowAtRoot;\n }\n\n async doesBlockEditorBlockHaveAllowInAreasEnabled(blockGridName: string, elementTypeKey: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.allowInAreas;\n }\n\n async doesBlockEditorBlockContainColumnSpanOptions(blockGridName: string, elementTypeKey: string, expectedColumnSpans: number[]) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n\n // If the block does not have any columnSpanOptions, and we are not expecting any, return true\n if (block.columnSpanOptions.length === 0 && expectedColumnSpans.length === 0) {\n return true;\n }\n\n const columnSpans = block.columnSpanOptions.map(option => option.columnSpan);\n return expectedColumnSpans.every(span => columnSpans.includes(span)) && columnSpans.every(span => expectedColumnSpans.includes(span));\n }\n\n async doesBlockEditorBlockContainRowSpanOptions(blockGridName: string, elementTypeKey: string, minRowSpan: number, maxRowSpan: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.rowMinSpan === minRowSpan && block.rowMaxSpan === maxRowSpan;\n }\n\n async doesBlockEditorBlockContainAreaGridColumns(blockGridName: string, elementTypeKey: string, areaGridColumns: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areaGridColumns === areaGridColumns;\n }\n\n async doesBlockEditorBlockContainAreaWithAlias(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area') {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.alias === areaAlias);\n }\n \n async doesBlockEditorBlockContainAreaCount(blockGridName: string, elementTypeKey: string, areaCount: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.length === areaCount;\n }\n\n async doesBlockEditorBlockContainAreaWithCreateButtonLabel(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', createButtonLabel: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.createLabel === createButtonLabel && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainAreaWithMinAllowed(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', minAllowed: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.minAllowed === minAllowed && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainAreaWithMaxAllowed(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', maxAllowed: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.maxAllowed === maxAllowed && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainStylesheet(blockGridName: string, elementTypeKey: string, stylesheetPath: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n const encodedSecondStylesheetPath = await this.api.stylesheet.encodeStylesheetPath(stylesheetPath);\n return block.stylesheet[0] === encodedSecondStylesheetPath;\n }\n\n async doesBlockEditorBlockContainOverlaySize(blockGridName: string, elementTypeKey: string, overlaySize: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.editorSize === overlaySize;\n }\n\n async doesBlockEditorBlockContainInlineEditing(blockGridName: string, elementTypeKey: string, inlineEditing: boolean) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.inlineEditing === inlineEditing;\n }\n\n async doesBlockEditorBlockContainHideContentEditor(blockGridName: string, elementTypeKey: string, hideContentEditor: boolean) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.hideContentEditor === hideContentEditor;\n }\n\n async doesBlockEditorBlockContainBackgroundColor(blockGridName: string, elementTypeKey: string, backgroundColor: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.backgroundColor === backgroundColor;\n }\n\n async doesBlockEditorBlockContainIconColor(blockGridName: string, elementTypeKey: string, iconColor: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.iconColor === iconColor;\n }\n\n async doesBlockEditorBlockContainThumbnail(blockGridName: string, elementTypeKey: string, thumbnail: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.thumbnail === thumbnail;\n }\n \n async getBlockWithContentElementTypeId(blockGridName: string, contentElementTypeKey: string) {\n const blockEditor = await this.getByName(blockGridName);\n const blocks = blockEditor.values.find(value => value.alias === 'blocks');\n return blocks.value.find(block => block.contentElementTypeKey === contentElementTypeKey);\n }\n\n async createImageCropperDataTypeWithOneCrop(name: string, cropLabel: string, cropWidth: number, cropHeight: number) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ImageCropperDataTypeBuilder()\n .withName(name)\n .addCrop()\n .withLabel(cropLabel)\n .withAlias(AliasHelper.toAlias(cropLabel))\n .withHeight(cropHeight)\n .withWidth(cropWidth)\n .done()\n .build();\n\n return await this.save(dataType);\n }\n\n async createMediaPickerDataTypeWithStartNodeId(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new MediaPickerDataTypeBuilder()\n .withName(name)\n .withStartNodeId(startNodeId)\n .withIgnoreUserStartNodes(false)\n .build();\n\n return await this.save(dataType);\n }\n\n async createRadioboxDataType(name: string, options: string[]) {\n await this.ensureNameNotExists(name);\n\n const dataType = new RadioboxDataTypeBuilder()\n .withName(name)\n .withItems(options)\n .build();\n \n return await this.save(dataType);\n }\n\n async createImageMediaPickerDataType(name: string, minValue = 0, maxValue = 1, enableLocalFocalPoint = false, ignoreUserStartNodes = false) {\n await this.ensureNameNotExists(name);\n const mediaType = await this.api.mediaType.getByName('Image');\n\n const dataType = new MediaPickerDataTypeBuilder()\n .withName(name)\n .withFilter(mediaType.id)\n .withMultiple(false)\n .withMinValue(minValue)\n .withMaxValue(maxValue)\n .withEnableLocalFocalPoint(enableLocalFocalPoint)\n .withIgnoreUserStartNodes(ignoreUserStartNodes)\n .build();\n\n return await this.save(dataType);\n }\n\n async createImageMediaPickerDataTypeWithStartNodeId(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n const mediaType = await this.api.mediaType.getByName('Image');\n\n const dataType = new MediaPickerDataTypeBuilder()\n .withName(name)\n .withFilter(mediaType.id)\n .withStartNodeId(startNodeId)\n .build();\n\n return await this.save(dataType);\n }\n \n async createImageMediaPickerDataTypeWithCrop(name: string, label: string, width: number, height: number) {\n await this.ensureNameNotExists(name);\n const mediaType = await this.api.mediaType.getByName('Image');\n\n const dataType = new MediaPickerDataTypeBuilder()\n .withName(name)\n .withFilter(mediaType.id)\n .addCrop()\n .withLabel(label)\n .withAlias(AliasHelper.toAlias(label))\n .withHeight(height)\n .withWidth(width)\n .done()\n .build();\n\n return await this.save(dataType);\n }\n\n async createTextareaDataType(name: string, maxChars: number = 0, rows: number = 0, minHeight: number = 0, maxHeight: number = 0) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TextAreaDataTypeBuilder()\n .withName(name)\n .withMaxChars(maxChars)\n .withRows(rows)\n .withMinHeight(minHeight)\n .withMaxHeight(maxHeight)\n .build();\n\n return await this.save(dataType);\n }\n\n async createTextstringDataType(name: string, maxChars: number = 0) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TextStringDataTypeBuilder()\n .withName(name)\n .withMaxChars(maxChars)\n .build();\n\n return await this.save(dataType);\n }\n \n async createTrueFalseDataTypeWithInitialState(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TrueFalseDataTypeBuilder()\n .withName(name)\n .withIsDefault(true)\n .build();\n\n return await this.save(dataType);\n }\n\n async createTrueFalseDataTypeWithLabelOn(name: string, labelOn: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TrueFalseDataTypeBuilder()\n .withName(name)\n .withShowLabels(true)\n .withLabelOn(labelOn)\n .build();\n\n return await this.save(dataType);\n }\n\n async createTrueFalseDataTypeWithLabelOff(name: string, labelOff: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TrueFalseDataTypeBuilder()\n .withName(name)\n .withShowLabels(true)\n .withLabelOff(labelOff)\n .build();\n\n return await this.save(dataType);\n }\n\n async createEmailAddressDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new EmailAddressDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createCodeEditorDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new CodeEditorDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createMarkdownEditorDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new MarkdownEditorDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createDecimalDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DecimalDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createMultipleTextStringDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new MultipleTextStringDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n async createSliderDataTyper(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new SliderDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(dataType);\n }\n\n // List View - Content data type\n async createListViewContentDataType(name: string = 'List View - Content Test') {\n await this.ensureNameNotExists(name);\n\n const dataType = new ListViewDataTypeBuilder()\n .withName(name)\n .withPageSize(100)\n .addLayout()\n .withName('List')\n .withIcon('icon-list')\n .withCollectionView('Umb.CollectionView.Document.Table')\n .done()\n .addLayout()\n .withName('Grid')\n .withIcon('icon-grid')\n .withCollectionView('Umb.CollectionView.Document.Grid')\n .done()\n .addColumnDisplayedProperty()\n .withAlias('updateDate')\n .withHeader('Last edited')\n .done()\n .addColumnDisplayedProperty()\n .withAlias('creator')\n .withHeader('Updated by')\n .done()\n .build();\n return await this.save(dataType);\n }\n\n async createListViewContentDataTypeWithAllPermissions(name: string = 'List View - Content Test') {\n await this.ensureNameNotExists(name);\n\n const dataType = new ListViewDataTypeBuilder()\n .withName(name)\n .withPageSize(100)\n .addLayout()\n .withName('List')\n .withIcon('icon-list')\n .withCollectionView('Umb.CollectionView.Document.Table')\n .done()\n .addLayout()\n .withName('Grid')\n .withIcon('icon-grid')\n .withCollectionView('Umb.CollectionView.Document.Grid')\n .done()\n .addColumnDisplayedProperty()\n .withAlias('updateDate')\n .withHeader('Last edited')\n .done()\n .addColumnDisplayedProperty()\n .withAlias('creator')\n .withHeader('Updated by')\n .done()\n .addBulkActionPermissions()\n .withAllowBulkCopy(true)\n .withAllowBulkDelete(true)\n .withAllowBulkMove(true)\n .withAllowBulkPublish(true)\n .withAllowBulkUnPublish(true)\n .done()\n .build();\n return await this.save(dataType);\n }\n \n // List View - Media data type\n async updateListViewMediaDataType(alias: string, newValue: any) {\n const listViewMediaData = await this.getByName('List View - Media');\n const valueData = listViewMediaData.values.find(value => value.alias === alias);\n if (valueData) {\n valueData.value = newValue;\n } else {\n listViewMediaData.values.push({\n \"alias\": alias,\n \"value\": newValue\n });\n }\n return await this.update(listViewMediaData.id, listViewMediaData);\n }\n\n async createDefaultTiptapDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TiptapDataTypeBuilder()\n .withName(name)\n .build();\n \n return await this.save(dataType);\n }\n\n async createApprovedColorDataTypeWithOneItem(name: string, itemLabel: string, itemValue: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ApprovedColorDataTypeBuilder()\n .withName(name)\n .withUseLabel(true)\n .addItem()\n .withLabel(itemLabel)\n .withValue(itemValue)\n .done()\n .build();\n\n return await this.save(dataType);\n }\n\n async getTiptapExtensionsCount(tipTapName: string) {\n const tipTapData = await this.getByName(tipTapName);\n const extensionsValue = tipTapData.values.find(value => value.alias === 'extensions');\n return extensionsValue?.value.length;\n }\n\n async getTiptapToolbarGroupInRowCount(tipTapName: string, rowIndex: number = 0) {\n const tipTapData = await this.getByName(tipTapName);\n const toolbarValue = tipTapData.values.find(value => value.alias === 'toolbar');\n return toolbarValue?.value[rowIndex].length;\n }\n\n async getTiptapToolbarGroupValueInRow(tipTapName: string, groupIndex: number, rowIndex: number = 0) {\n const tipTapData = await this.getByName(tipTapName);\n const toolbarValue = tipTapData.values.find(value => value.alias === 'toolbar');\n return toolbarValue?.value[rowIndex][groupIndex];\n }\n\n async getTiptapToolbarRowCount(tipTapName: string) {\n const tipTapData = await this.getByName(tipTapName);\n const toolbarValue = tipTapData.values.find(value => value.alias === 'toolbar');\n return toolbarValue?.value.length;\n }\n\n async createDefaultTinyMCEDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TinyMCEDataTypeBuilder()\n .withName(name)\n .addToolbar()\n .withStyles(true)\n .withBold(true)\n .withItalic(true)\n .withAlignLeft(true)\n .withAlignCenter(true)\n .withAlignRight(true)\n .withBulList(true)\n .withNumList(true)\n .withOutdent(true)\n .withIndent(true)\n .withSourceCode(true)\n .withLink(true)\n .withUmbEmbedDialog(true)\n .withUmbMediaPicker(true)\n .done()\n .withEditorMode('Classic')\n .withMaxImageSize(500)\n .build();\n\n return await this.save(dataType);\n }\n\n async getTinyMCEToolbarItemsCount(tinyMCEName: string) {\n const tinyMCEData = await this.getByName(tinyMCEName);\n const toolbarValue = tinyMCEData.values.find(value => value.alias === 'toolbar');\n return toolbarValue?.value.length;\n }\n\n async doesTinyMCEToolbarItemsMatchCount(tinyMCEName: string, count: number) {\n const tinyMCEData = await this.getByName(tinyMCEName);\n const toolbarValue = tinyMCEData.values.find(value => value.alias === 'toolbar');\n return toolbarValue?.value.length === count;\n }\n\n async doesTinyMCEToolbarHaveItems(tinyMCEName: string, items: string[]) {\n const tinyMCEData = await this.getByName(tinyMCEName);\n const toolbarValue = tinyMCEData.values.find(value => value.alias === 'toolbar');\n if (!toolbarValue || toolbarValue.value.length === 0) {\n return false;\n }\n return items.every(item => toolbarValue.value.includes(item));\n }\n\n async createTiptapDataTypeWithTwoToolbarRows(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TiptapDataTypeBuilder()\n .withName(name)\n .addToolbarRow()\n .addToolbarGroup()\n .withHeading1(true)\n .withHeading2(true)\n .withHeading3(true)\n .done()\n .addToolbarGroup()\n .withBold(true)\n .withItalic(true)\n .done()\n .done()\n .addToolbarRow()\n .addToolbarGroup()\n .withBlockquote(true)\n .withBulletList(true)\n .done()\n .done()\n .build();\n \n return await this.save(dataType);\n \n }\n async createTinyMCEDataTypeWithStylesheet(name: string, stylesheetPath: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new TinyMCEDataTypeBuilder()\n .withName(name)\n .addStylesheet(stylesheetPath)\n .addToolbar()\n .withBold(true)\n .withItalic(true)\n .done()\n .build();\n\n return await this.save(dataType);\n }\n}"]}
|
|
@@ -121,6 +121,11 @@ export declare class DataTypeUiHelper extends UiBaseLocators {
|
|
|
121
121
|
private readonly allowInAreasBtn;
|
|
122
122
|
private readonly chooseThumbnailAlias;
|
|
123
123
|
private readonly expandChildItemsForMediaBtn;
|
|
124
|
+
private readonly tiptapToolbarConfiguration;
|
|
125
|
+
private readonly addGroupToolbarBtn;
|
|
126
|
+
private readonly addRowToolbarBtn;
|
|
127
|
+
private readonly tiptapExtensionsConfiguration;
|
|
128
|
+
private readonly propertyEditor;
|
|
124
129
|
private readonly selectIconBtn;
|
|
125
130
|
constructor(page: Page);
|
|
126
131
|
clickActionsMenuForDataType(name: string): Promise<void>;
|
|
@@ -141,7 +146,7 @@ export declare class DataTypeUiHelper extends UiBaseLocators {
|
|
|
141
146
|
addMediaStartNode(mediaName: string): Promise<void>;
|
|
142
147
|
addContentStartNode(contentName: string): Promise<void>;
|
|
143
148
|
clickSelectAPropertyEditorButton(): Promise<void>;
|
|
144
|
-
selectAPropertyEditor(propertyName: string): Promise<void>;
|
|
149
|
+
selectAPropertyEditor(propertyName: string, filterKeyword?: string): Promise<void>;
|
|
145
150
|
clickIncludeLabelsSlider(): Promise<void>;
|
|
146
151
|
removeColorByValue(value: string): Promise<void>;
|
|
147
152
|
addColor(value: string): Promise<void>;
|
|
@@ -192,7 +197,7 @@ export declare class DataTypeUiHelper extends UiBaseLocators {
|
|
|
192
197
|
removeAcceptedType(mediaTypeName: string): Promise<void>;
|
|
193
198
|
removeMediaStartNode(mediaName: string): Promise<void>;
|
|
194
199
|
clickChooseStartNodeButton(): Promise<void>;
|
|
195
|
-
|
|
200
|
+
clickToolbarOptionByValue(values: any): Promise<void>;
|
|
196
201
|
addStylesheet(stylesheetName: string): Promise<void>;
|
|
197
202
|
enterDimensionsValue(width: string, height: string): Promise<void>;
|
|
198
203
|
enterMaximumSizeForImages(value: string): Promise<void>;
|
|
@@ -263,4 +268,12 @@ export declare class DataTypeUiHelper extends UiBaseLocators {
|
|
|
263
268
|
goToBlockAdvancedTab(): Promise<void>;
|
|
264
269
|
getLinkWithName(name: string): Promise<Locator>;
|
|
265
270
|
getAddButtonInGroupWithName(name: string): Promise<Locator>;
|
|
271
|
+
deleteToolbarGroup(groupIndex: number, rowIndex?: number): Promise<void>;
|
|
272
|
+
deleteToolbarRow(rowIndex: number): Promise<void>;
|
|
273
|
+
clickAddRowToolbarButton(): Promise<void>;
|
|
274
|
+
clickAddGroupToolbarButton(): Promise<void>;
|
|
275
|
+
clickExtensionItemWithName(name: string): Promise<void>;
|
|
276
|
+
doesPropertyEditorHaveAlias(alias: string): Promise<void>;
|
|
277
|
+
doesPropertyEditorHaveName(name: string): Promise<void>;
|
|
278
|
+
doesPropertyEditorHaveSchemaAlias(schemaAlias: string): Promise<void>;
|
|
266
279
|
}
|