Skip to content

Commit

Permalink
#556: switch to ecmaVersion 2022 to allow static class properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Nov 24, 2022
1 parent 7d522a0 commit 174e45a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": 2022,
"sourceType": "module"
},
"root": true,
Expand Down
75 changes: 44 additions & 31 deletions docs/dist/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ Provides default functionality that can be overwritten by child metadata type cl
<dt><a href="#SetDefinition">SetDefinition</a> ⇐ <code><a href="#MetadataType">MetadataType</a></code></dt>
<dd><p>SetDefinition MetadataType</p>
</dd>
<dt><a href="#TransactionalMessage">TransactionalMessage</a> ⇐ <code><a href="#MetadataType">MetadataType</a></code></dt>
<dd><p>TransactionalMessage MetadataType</p>
</dd>
<dt><a href="#TransactionalSMS">TransactionalSMS</a> ⇐ <code><a href="#MetadataType">MetadataType</a></code></dt>
<dd><p>TransactionalSMS MetadataType</p>
</dd>
Expand Down Expand Up @@ -4357,35 +4360,28 @@ Retrieves Metadata of schema set definitions for caching.

**Kind**: static method of [<code>SetDefinition</code>](#SetDefinition)
**Returns**: <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code> - Promise
<a name="TransactionalSMS"></a>
<a name="TransactionalMessage"></a>

## TransactionalSMS[<code>MetadataType</code>](#MetadataType)
TransactionalSMS MetadataType
## TransactionalMessage[<code>MetadataType</code>](#MetadataType)
TransactionalMessage MetadataType

**Kind**: global class
**Extends**: [<code>MetadataType</code>](#MetadataType)

* [TransactionalSMS](#TransactionalSMS)[<code>MetadataType</code>](#MetadataType)
* [.retrieve(retrieveDir, [_], [__], [___], [key])](#TransactionalSMS.retrieve) ⇒ <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code>
* [.retrieveForCache()](#TransactionalSMS.retrieveForCache) ⇒ <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code>
* [.update(metadata)](#TransactionalSMS.update) ⇒ <code>Promise</code>
* [.create(metadata)](#TransactionalSMS.create) ⇒ <code>Promise</code>
* [.deleteByKey(buObject, key)](#TransactionalSMS.deleteByKey) ⇒ <code>Promise.&lt;boolean&gt;</code>
* [.postDeleteTasks(buObject, customerKey)](#TransactionalSMS.postDeleteTasks) ⇒ <code>void</code>
* [.preDeployTasks(metadata, dir)](#TransactionalSMS.preDeployTasks) ⇒ <code>TYPE.MetadataTypeItem</code>
* [._mergeCode(metadata, deployDir, [templateName])](#TransactionalSMS._mergeCode) ⇒ <code>Promise.&lt;string&gt;</code>
* [.postRetrieveTasks(metadata)](#TransactionalSMS.postRetrieveTasks) ⇒ <code>TYPE.CodeExtractItem</code>
* [.prepExtractedCode(metadataScript)](#TransactionalSMS.prepExtractedCode) ⇒ <code>Object</code>
* [._isHTML(code)](#TransactionalSMS._isHTML) ⇒ <code>boolean</code>
* [.getFilesToCommit(keyArr)](#TransactionalSMS.getFilesToCommit) ⇒ <code>Array.&lt;string&gt;</code>
* [TransactionalMessage](#TransactionalMessage)[<code>MetadataType</code>](#MetadataType)
* [.retrieve(retrieveDir, [_], [__], [___], [key])](#TransactionalMessage.retrieve) ⇒ <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code>
* [.retrieveForCache()](#TransactionalMessage.retrieveForCache) ⇒ <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code>
* [.update(metadata)](#TransactionalMessage.update) ⇒ <code>Promise</code>
* [.create(metadata)](#TransactionalMessage.create) ⇒ <code>Promise</code>
* [.deleteByKey(buObject, key)](#TransactionalMessage.deleteByKey) ⇒ <code>Promise.&lt;boolean&gt;</code>

<a name="TransactionalSMS.retrieve"></a>
<a name="TransactionalMessage.retrieve"></a>

### TransactionalSMS.retrieve(retrieveDir, [_], [__], [___], [key]) ⇒ <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code>
### TransactionalMessage.retrieve(retrieveDir, [_], [__], [___], [key]) ⇒ <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code>
Retrieves Metadata of Mobile Keywords
Endpoint /legacy/v1/beta/mobile/code/ return all Mobile Codes with all details.

**Kind**: static method of [<code>TransactionalSMS</code>](#TransactionalSMS)
**Kind**: static method of [<code>TransactionalMessage</code>](#TransactionalMessage)
**Returns**: <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code> - Promise of metadata

| Param | Type | Description |
Expand All @@ -4396,50 +4392,67 @@ Endpoint /legacy/v1/beta/mobile/code/ return all Mobile Codes with all details.
| [___] | <code>void</code> | unused parameter |
| [key] | <code>string</code> | customer key of single item to retrieve |

<a name="TransactionalSMS.retrieveForCache"></a>
<a name="TransactionalMessage.retrieveForCache"></a>

### TransactionalSMS.retrieveForCache() ⇒ <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code>
### TransactionalMessage.retrieveForCache() ⇒ <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code>
Retrieves event definition metadata for caching

**Kind**: static method of [<code>TransactionalSMS</code>](#TransactionalSMS)
**Kind**: static method of [<code>TransactionalMessage</code>](#TransactionalMessage)
**Returns**: <code>Promise.&lt;TYPE.MetadataTypeMapObj&gt;</code> - Promise of metadata
<a name="TransactionalSMS.update"></a>
<a name="TransactionalMessage.update"></a>

### TransactionalSMS.update(metadata) ⇒ <code>Promise</code>
### TransactionalMessage.update(metadata) ⇒ <code>Promise</code>
Updates a single item

**Kind**: static method of [<code>TransactionalSMS</code>](#TransactionalSMS)
**Kind**: static method of [<code>TransactionalMessage</code>](#TransactionalMessage)
**Returns**: <code>Promise</code> - Promise

| Param | Type | Description |
| --- | --- | --- |
| metadata | <code>TYPE.MetadataTypeItem</code> | a single item |

<a name="TransactionalSMS.create"></a>
<a name="TransactionalMessage.create"></a>

### TransactionalSMS.create(metadata) ⇒ <code>Promise</code>
### TransactionalMessage.create(metadata) ⇒ <code>Promise</code>
Creates a single item

**Kind**: static method of [<code>TransactionalSMS</code>](#TransactionalSMS)
**Kind**: static method of [<code>TransactionalMessage</code>](#TransactionalMessage)
**Returns**: <code>Promise</code> - Promise

| Param | Type | Description |
| --- | --- | --- |
| metadata | <code>TYPE.MetadataTypeItem</code> | a single item |

<a name="TransactionalSMS.deleteByKey"></a>
<a name="TransactionalMessage.deleteByKey"></a>

### TransactionalSMS.deleteByKey(buObject, key) ⇒ <code>Promise.&lt;boolean&gt;</code>
### TransactionalMessage.deleteByKey(buObject, key) ⇒ <code>Promise.&lt;boolean&gt;</code>
Delete a metadata item from the specified business unit

**Kind**: static method of [<code>TransactionalSMS</code>](#TransactionalSMS)
**Kind**: static method of [<code>TransactionalMessage</code>](#TransactionalMessage)
**Returns**: <code>Promise.&lt;boolean&gt;</code> - deletion success status

| Param | Type | Description |
| --- | --- | --- |
| buObject | <code>TYPE.BuObject</code> | references credentials |
| key | <code>string</code> | Identifier of item |

<a name="TransactionalSMS"></a>

## TransactionalSMS ⇐ [<code>MetadataType</code>](#MetadataType)
TransactionalSMS MetadataType

**Kind**: global class
**Extends**: [<code>MetadataType</code>](#MetadataType)

* [TransactionalSMS](#TransactionalSMS)[<code>MetadataType</code>](#MetadataType)
* [.postDeleteTasks(buObject, customerKey)](#TransactionalSMS.postDeleteTasks) ⇒ <code>void</code>
* [.preDeployTasks(metadata, dir)](#TransactionalSMS.preDeployTasks) ⇒ <code>TYPE.MetadataTypeItem</code>
* [._mergeCode(metadata, deployDir, [templateName])](#TransactionalSMS._mergeCode) ⇒ <code>Promise.&lt;string&gt;</code>
* [.postRetrieveTasks(metadata)](#TransactionalSMS.postRetrieveTasks) ⇒ <code>TYPE.CodeExtractItem</code>
* [.prepExtractedCode(metadataScript)](#TransactionalSMS.prepExtractedCode) ⇒ <code>Object</code>
* [._isHTML(code)](#TransactionalSMS._isHTML) ⇒ <code>boolean</code>
* [.getFilesToCommit(keyArr)](#TransactionalSMS.getFilesToCommit) ⇒ <code>Array.&lt;string&gt;</code>

<a name="TransactionalSMS.postDeleteTasks"></a>

### TransactionalSMS.postDeleteTasks(buObject, customerKey) ⇒ <code>void</code>
Expand Down

0 comments on commit 174e45a

Please sign in to comment.