Skip to content

Commit

Permalink
#354: fix line after
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Midgley committed Jun 3, 2023
1 parent 7394f16 commit a39e5ab
Show file tree
Hide file tree
Showing 11 changed files with 117 additions and 50 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@
"extends": ["plugin:mocha/recommended"],
"plugins": ["mocha"],
"rules": {
"mocha/no-mocha-arrows": "off",
"mocha/no-pending-tests": "error"
"mocha/no-mocha-arrows": "off"
}
}
]
Expand Down
72 changes: 36 additions & 36 deletions docs/dist/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,11 @@ Returns metadata of a business unit that is saved locally
**Kind**: static method of [<code>Deployer</code>](#Deployer)
**Returns**: <code>TYPE.MultiMetadataTypeMap</code> - Metadata of BU in local directory

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| deployDir | <code>string</code> | | root directory of metadata. |
| [typeArr] | <code>Array.&lt;string&gt;</code> | | limit deployment to given metadata type |
| [listBadKeys] | <code>boolean</code> | <code>false</code> | do not print errors, used for badKeys() |
| Param | Type | Description |
| --- | --- | --- |
| deployDir | <code>string</code> | root directory of metadata. |
| [typeArr] | <code>Array.&lt;string&gt;</code> | limit deployment to given metadata type |
| [listBadKeys] | <code>boolean</code> | do not print errors, used for badKeys() |

<a name="Deployer.createFolderDefinitions"></a>

Expand Down Expand Up @@ -2740,10 +2740,10 @@ Returns file contents mapped to their filename without '.json' ending
**Kind**: static method of [<code>Folder</code>](#Folder)
**Returns**: <code>TYPE.MetadataTypeMap</code> - fileName => fileContent map

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| dir | <code>string</code> | | directory that contains '.json' files to be read |
| [listBadKeys] | <code>boolean</code> | <code>false</code> | do not print errors, used for badKeys() |
| Param | Type | Description |
| --- | --- | --- |
| dir | <code>string</code> | directory that contains '.json' files to be read |
| [listBadKeys] | <code>boolean</code> | do not print errors, used for badKeys() |

<a name="Folder.retrieveHelper"></a>

Expand Down Expand Up @@ -3230,10 +3230,10 @@ Returns file contents mapped to their filename without '.json' ending
**Kind**: static method of [<code>MetadataType</code>](#MetadataType)
**Returns**: <code>TYPE.MetadataTypeMap</code> - fileName => fileContent map

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| dir | <code>string</code> | | directory that contains '.json' files to be read |
| [listBadKeys] | <code>boolean</code> | <code>false</code> | do not print errors, used for badKeys() |
| Param | Type | Description |
| --- | --- | --- |
| dir | <code>string</code> | directory that contains '.json' files to be read |
| [listBadKeys] | <code>boolean</code> | do not print errors, used for badKeys() |

<a name="MetadataType.getFieldNamesToRetrieve"></a>

Expand Down Expand Up @@ -3583,7 +3583,7 @@ Updates a single metadata entry via REST
| --- | --- | --- | --- |
| metadataEntry | <code>TYPE.MetadataTypeItem</code> | | a single metadata Entry |
| uri | <code>string</code> | | rest endpoint for PATCH |
| [httpMethod] | <code>&#x27;patch&#x27;</code> \| <code>&#x27;post&#x27;</code> \| <code>&#x27;put&#x27;</code> | <code>&#x27;patch&#x27;</code> | defaults to 'patch'; some update requests require PUT instead of PATCH |
| [httpMethod] | <code>&#x27;patch&#x27;</code> \| <code>&#x27;post&#x27;</code> \| <code>&#x27;put&#x27;</code> | <code>patch</code> | defaults to 'patch'; some update requests require PUT instead of PATCH |

<a name="MetadataType.updateSOAP"></a>

Expand Down Expand Up @@ -3762,10 +3762,10 @@ checks if the current metadata entry should be saved on retrieve or not
**Kind**: static method of [<code>MetadataType</code>](#MetadataType)
**Returns**: <code>boolean</code> - true: skip saving == filtered; false: continue with saving

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| metadataEntry | <code>TYPE.MetadataTypeItem</code> | | metadata entry |
| [include] | <code>boolean</code> | <code>false</code> | true: use definition.include / options.include; false=exclude: use definition.filter / options.exclude |
| Param | Type | Description |
| --- | --- | --- |
| metadataEntry | <code>TYPE.MetadataTypeItem</code> | metadata entry |
| [include] | <code>boolean</code> | true: use definition.include / options.include; false=exclude: use definition.filter / options.exclude |

<a name="MetadataType.isFilteredFolder"></a>

Expand All @@ -3775,10 +3775,10 @@ optionally filter by what folder something is in
**Kind**: static method of [<code>MetadataType</code>](#MetadataType)
**Returns**: <code>boolean</code> - true: filtered == do NOT save; false: not filtered == do save

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| metadataEntry | <code>object</code> | | metadata entry |
| [include] | <code>boolean</code> | <code>false</code> | true: use definition.include / options.include; false=exclude: use definition.filter / options.exclude |
| Param | Type | Description |
| --- | --- | --- |
| metadataEntry | <code>object</code> | metadata entry |
| [include] | <code>boolean</code> | true: use definition.include / options.include; false=exclude: use definition.filter / options.exclude |

<a name="MetadataType.saveResults"></a>

Expand Down Expand Up @@ -3988,11 +3988,11 @@ Returns metadata of a business unit that is saved locally
**Kind**: static method of [<code>MetadataType</code>](#MetadataType)
**Returns**: <code>object</code> - Metadata of BU in local directory

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| readDir | <code>string</code> | | root directory of metadata. |
| [listBadKeys] | <code>boolean</code> | <code>false</code> | do not print errors, used for badKeys() |
| [buMetadata] | <code>object</code> | | Metadata of BU in local directory |
| Param | Type | Description |
| --- | --- | --- |
| readDir | <code>string</code> | root directory of metadata. |
| [listBadKeys] | <code>boolean</code> | do not print errors, used for badKeys() |
| [buMetadata] | <code>object</code> | Metadata of BU in local directory |

<a name="MetadataType.getFilesToCommit"></a>

Expand Down Expand Up @@ -6377,12 +6377,12 @@ reads file from local file system.
**Kind**: static method of [<code>File</code>](#File)
**Returns**: <code>Promise.&lt;string&gt;</code> \| <code>void</code> - file contents; void on error

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| directory | <code>string</code> \| <code>Array.&lt;string&gt;</code> | | directory where the file is stored |
| filename | <code>string</code> | | name of the file without '.json' ending |
| filetype | <code>string</code> | | filetype suffix |
| [encoding] | <code>string</code> | <code>&quot;&#x27;utf8&#x27;&quot;</code> | read file with encoding (defaults to utf-8) |
| Param | Type | Description |
| --- | --- | --- |
| directory | <code>string</code> \| <code>Array.&lt;string&gt;</code> | directory where the file is stored |
| filename | <code>string</code> | name of the file without '.json' ending |
| filetype | <code>string</code> | filetype suffix |
| [encoding] | <code>string</code> | read file with encoding (defaults to utf-8) |

<a name="File.readDirectories"></a>

Expand Down Expand Up @@ -6445,9 +6445,9 @@ Initalises Prettier formatting lib async.
**Kind**: static method of [<code>File</code>](#File)
**Returns**: <code>Promise.&lt;boolean&gt;</code> - success of config load

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [filetype] | <code>string</code> | <code>&quot;&#x27;html&#x27;&quot;</code> | filetype ie. JSON or SSJS |
| Param | Type | Description |
| --- | --- | --- |
| [filetype] | <code>string</code> | filetype ie. JSON or SSJS |

<a name="Init"></a>

Expand Down
2 changes: 1 addition & 1 deletion lib/Deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class Deployer {
*
* @param {string} deployDir root directory of metadata.
* @param {string[]} [typeArr] limit deployment to given metadata type
* @param {boolean} [listBadKeys=false] do not print errors, used for badKeys()
* @param {boolean} [listBadKeys] do not print errors, used for badKeys()
* @returns {TYPE.MultiMetadataTypeMap} Metadata of BU in local directory
*/
static readBUMetadata(deployDir, typeArr, listBadKeys) {
Expand Down
3 changes: 3 additions & 0 deletions lib/Retriever.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import auth from './util/auth.js';
class Retriever {
/**
* Creates a Retriever, uses v2 auth if v2AuthOptions are passed.
*
* @param {TYPE.Mcdevrc} properties General configuration to be used in retrieve
* @param {TYPE.BuObject} buObject properties for auth
*/
Expand All @@ -30,6 +31,7 @@ class Retriever {

/**
* Retrieve metadata of specified types into local file system and Retriever.metadata
*
* @param {TYPE.SupportedMetadataTypes[]} metadataTypes list of metadata types to retrieve; can include subtypes!
* @param {string[]|TYPE.TypeKeyCombo} [namesOrKeys] name of Metadata to retrieveAsTemplate or list of keys for normal retrieval
* @param {TYPE.TemplateMap} [templateVariables] Object of values which can be replaced (in case of templating)
Expand Down Expand Up @@ -188,6 +190,7 @@ class Retriever {

/**
* helper for {@link retrieve} to get all dependencies of the given types
*
* @param {TYPE.SupportedMetadataTypes[]} metadataTypes list of metadata types to retrieve; can include subtypes!
* @returns {TYPE.SupportedMetadataTypes[]} unique list dependent metadata types
*/
Expand Down
Loading

0 comments on commit a39e5ab

Please sign in to comment.