diff --git a/.eslintrc.json b/.eslintrc.json index 9ed3ff94f..bc3ea5f3e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -17,7 +17,7 @@ "SharedArrayBuffer": "readonly" }, "parserOptions": { - "ecmaVersion": 2020, + "ecmaVersion": 2022, "sourceType": "module" }, "root": true, diff --git a/docs/dist/documentation.md b/docs/dist/documentation.md index ac42e2b67..1d766dc1b 100644 --- a/docs/dist/documentation.md +++ b/docs/dist/documentation.md @@ -101,6 +101,9 @@ Provides default functionality that can be overwritten by child metadata type cl
SetDefinitionMetadataType

SetDefinition MetadataType

+
TransactionalMessageMetadataType
+

TransactionalMessage MetadataType

+
TransactionalSMSMetadataType

TransactionalSMS MetadataType

@@ -4357,35 +4360,28 @@ Retrieves Metadata of schema set definitions for caching. **Kind**: static method of [SetDefinition](#SetDefinition) **Returns**: Promise.<TYPE.MetadataTypeMapObj> - Promise - + -## TransactionalSMS ⇐ [MetadataType](#MetadataType) -TransactionalSMS MetadataType +## TransactionalMessage ⇐ [MetadataType](#MetadataType) +TransactionalMessage MetadataType **Kind**: global class **Extends**: [MetadataType](#MetadataType) -* [TransactionalSMS](#TransactionalSMS) ⇐ [MetadataType](#MetadataType) - * [.retrieve(retrieveDir, [_], [__], [___], [key])](#TransactionalSMS.retrieve) ⇒ Promise.<TYPE.MetadataTypeMapObj> - * [.retrieveForCache()](#TransactionalSMS.retrieveForCache) ⇒ Promise.<TYPE.MetadataTypeMapObj> - * [.update(metadata)](#TransactionalSMS.update) ⇒ Promise - * [.create(metadata)](#TransactionalSMS.create) ⇒ Promise - * [.deleteByKey(buObject, key)](#TransactionalSMS.deleteByKey) ⇒ Promise.<boolean> - * [.postDeleteTasks(buObject, customerKey)](#TransactionalSMS.postDeleteTasks) ⇒ void - * [.preDeployTasks(metadata, dir)](#TransactionalSMS.preDeployTasks) ⇒ TYPE.MetadataTypeItem - * [._mergeCode(metadata, deployDir, [templateName])](#TransactionalSMS._mergeCode) ⇒ Promise.<string> - * [.postRetrieveTasks(metadata)](#TransactionalSMS.postRetrieveTasks) ⇒ TYPE.CodeExtractItem - * [.prepExtractedCode(metadataScript)](#TransactionalSMS.prepExtractedCode) ⇒ Object - * [._isHTML(code)](#TransactionalSMS._isHTML) ⇒ boolean - * [.getFilesToCommit(keyArr)](#TransactionalSMS.getFilesToCommit) ⇒ Array.<string> +* [TransactionalMessage](#TransactionalMessage) ⇐ [MetadataType](#MetadataType) + * [.retrieve(retrieveDir, [_], [__], [___], [key])](#TransactionalMessage.retrieve) ⇒ Promise.<TYPE.MetadataTypeMapObj> + * [.retrieveForCache()](#TransactionalMessage.retrieveForCache) ⇒ Promise.<TYPE.MetadataTypeMapObj> + * [.update(metadata)](#TransactionalMessage.update) ⇒ Promise + * [.create(metadata)](#TransactionalMessage.create) ⇒ Promise + * [.deleteByKey(buObject, key)](#TransactionalMessage.deleteByKey) ⇒ Promise.<boolean> - + -### TransactionalSMS.retrieve(retrieveDir, [_], [__], [___], [key]) ⇒ Promise.<TYPE.MetadataTypeMapObj> +### TransactionalMessage.retrieve(retrieveDir, [_], [__], [___], [key]) ⇒ Promise.<TYPE.MetadataTypeMapObj> Retrieves Metadata of Mobile Keywords Endpoint /legacy/v1/beta/mobile/code/ return all Mobile Codes with all details. -**Kind**: static method of [TransactionalSMS](#TransactionalSMS) +**Kind**: static method of [TransactionalMessage](#TransactionalMessage) **Returns**: Promise.<TYPE.MetadataTypeMapObj> - Promise of metadata | Param | Type | Description | @@ -4396,43 +4392,43 @@ Endpoint /legacy/v1/beta/mobile/code/ return all Mobile Codes with all details. | [___] | void | unused parameter | | [key] | string | customer key of single item to retrieve | - + -### TransactionalSMS.retrieveForCache() ⇒ Promise.<TYPE.MetadataTypeMapObj> +### TransactionalMessage.retrieveForCache() ⇒ Promise.<TYPE.MetadataTypeMapObj> Retrieves event definition metadata for caching -**Kind**: static method of [TransactionalSMS](#TransactionalSMS) +**Kind**: static method of [TransactionalMessage](#TransactionalMessage) **Returns**: Promise.<TYPE.MetadataTypeMapObj> - Promise of metadata - + -### TransactionalSMS.update(metadata) ⇒ Promise +### TransactionalMessage.update(metadata) ⇒ Promise Updates a single item -**Kind**: static method of [TransactionalSMS](#TransactionalSMS) +**Kind**: static method of [TransactionalMessage](#TransactionalMessage) **Returns**: Promise - Promise | Param | Type | Description | | --- | --- | --- | | metadata | TYPE.MetadataTypeItem | a single item | - + -### TransactionalSMS.create(metadata) ⇒ Promise +### TransactionalMessage.create(metadata) ⇒ Promise Creates a single item -**Kind**: static method of [TransactionalSMS](#TransactionalSMS) +**Kind**: static method of [TransactionalMessage](#TransactionalMessage) **Returns**: Promise - Promise | Param | Type | Description | | --- | --- | --- | | metadata | TYPE.MetadataTypeItem | a single item | - + -### TransactionalSMS.deleteByKey(buObject, key) ⇒ Promise.<boolean> +### TransactionalMessage.deleteByKey(buObject, key) ⇒ Promise.<boolean> Delete a metadata item from the specified business unit -**Kind**: static method of [TransactionalSMS](#TransactionalSMS) +**Kind**: static method of [TransactionalMessage](#TransactionalMessage) **Returns**: Promise.<boolean> - deletion success status | Param | Type | Description | @@ -4440,6 +4436,23 @@ Delete a metadata item from the specified business unit | buObject | TYPE.BuObject | references credentials | | key | string | Identifier of item | + + +## TransactionalSMS ⇐ [MetadataType](#MetadataType) +TransactionalSMS MetadataType + +**Kind**: global class +**Extends**: [MetadataType](#MetadataType) + +* [TransactionalSMS](#TransactionalSMS) ⇐ [MetadataType](#MetadataType) + * [.postDeleteTasks(buObject, customerKey)](#TransactionalSMS.postDeleteTasks) ⇒ void + * [.preDeployTasks(metadata, dir)](#TransactionalSMS.preDeployTasks) ⇒ TYPE.MetadataTypeItem + * [._mergeCode(metadata, deployDir, [templateName])](#TransactionalSMS._mergeCode) ⇒ Promise.<string> + * [.postRetrieveTasks(metadata)](#TransactionalSMS.postRetrieveTasks) ⇒ TYPE.CodeExtractItem + * [.prepExtractedCode(metadataScript)](#TransactionalSMS.prepExtractedCode) ⇒ Object + * [._isHTML(code)](#TransactionalSMS._isHTML) ⇒ boolean + * [.getFilesToCommit(keyArr)](#TransactionalSMS.getFilesToCommit) ⇒ Array.<string> + ### TransactionalSMS.postDeleteTasks(buObject, customerKey) ⇒ void