diff --git a/__tests__/unit/lib/service/subCustomObjectHandler.test.js b/__tests__/unit/lib/service/subCustomObjectHandler.test.js index 19ce674c..06e9743e 100644 --- a/__tests__/unit/lib/service/subCustomObjectHandler.test.js +++ b/__tests__/unit/lib/service/subCustomObjectHandler.test.js @@ -11,6 +11,11 @@ const testContext = { 'force-app/main/default/objects/Account/fields/awesome.field-meta.xml', new Set(['Account.awesome']), ], + [ + 'indexes', + 'force-app/main/default/objects/Account/indexes/awesome.index-meta.xml', + new Set(['Account.awesome']), + ], [ 'rules', 'force-app/main/default/territory2Models/EU/rules/Location.territory2Rule-meta.xml', diff --git a/src/metadata/a48.json b/src/metadata/a48.json index f8cf89f4..08e6ed0b 100644 --- a/src/metadata/a48.json +++ b/src/metadata/a48.json @@ -185,6 +185,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v46.json b/src/metadata/v46.json index 38b0ed4a..4e5b4aa7 100644 --- a/src/metadata/v46.json +++ b/src/metadata/v46.json @@ -178,6 +178,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v47.json b/src/metadata/v47.json index 104a293e..4270d9c8 100644 --- a/src/metadata/v47.json +++ b/src/metadata/v47.json @@ -185,6 +185,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v49.json b/src/metadata/v49.json index b8a6c7ed..4dd4f4ab 100644 --- a/src/metadata/v49.json +++ b/src/metadata/v49.json @@ -185,6 +185,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v50.json b/src/metadata/v50.json index b8a6c7ed..4dd4f4ab 100644 --- a/src/metadata/v50.json +++ b/src/metadata/v50.json @@ -185,6 +185,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v51.json b/src/metadata/v51.json index aa8bd28c..71e20d25 100644 --- a/src/metadata/v51.json +++ b/src/metadata/v51.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v52.json b/src/metadata/v52.json index ed39ddb5..88660a41 100644 --- a/src/metadata/v52.json +++ b/src/metadata/v52.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v53.json b/src/metadata/v53.json index ed39ddb5..88660a41 100644 --- a/src/metadata/v53.json +++ b/src/metadata/v53.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v54.json b/src/metadata/v54.json index ed39ddb5..88660a41 100644 --- a/src/metadata/v54.json +++ b/src/metadata/v54.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v55.json b/src/metadata/v55.json index 585f30d5..e26cd922 100644 --- a/src/metadata/v55.json +++ b/src/metadata/v55.json @@ -199,6 +199,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/service/typeHandlerFactory.js b/src/service/typeHandlerFactory.js index 27b1f58e..4264b9c0 100644 --- a/src/service/typeHandlerFactory.js +++ b/src/service/typeHandlerFactory.js @@ -23,6 +23,7 @@ const classes = { experiences: InResource, fieldSets: SubCustomObject, fields: SubCustomObject, + indexes: SubCustomObject, labels: InFile, listViews: SubCustomObject, lwc: InResource, diff --git a/src/utils/metadataConstants.js b/src/utils/metadataConstants.js index 3144e531..c001e79b 100644 --- a/src/utils/metadataConstants.js +++ b/src/utils/metadataConstants.js @@ -15,6 +15,7 @@ const SUB_OBJECT_TYPES = [ 'compactLayouts', 'fieldSets', 'fields', + 'indexes', 'listViews', 'recordTypes', 'rules',