-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #918 from Accenture/task/354-es6Module
Task/354 es6 module
- Loading branch information
Showing
121 changed files
with
2,061 additions
and
11,964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"include": ["lib/**/*.js", "types/**/*.js"] | ||
"include": ["lib/**/*.js", "types/**/*.js", "test/**/*.js"], | ||
"compilerOptions": { | ||
"module": "es6", | ||
"target": "esnext" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,78 @@ | ||
'use strict'; | ||
|
||
import asset from './metadataTypes/definitions/Asset.definition.js'; | ||
import attributeGroup from './metadataTypes/definitions/AttributeGroup.definition.js'; | ||
import attributeSet from './metadataTypes/definitions/AttributeSet.definition.js'; | ||
import automation from './metadataTypes/definitions/Automation.definition.js'; | ||
import campaign from './metadataTypes/definitions/Campaign.definition.js'; | ||
import contentArea from './metadataTypes/definitions/ContentArea.definition.js'; | ||
import dataExtension from './metadataTypes/definitions/DataExtension.definition.js'; | ||
import dataExtensionField from './metadataTypes/definitions/DataExtensionField.definition.js'; | ||
import dataExtensionTemplate from './metadataTypes/definitions/DataExtensionTemplate.definition.js'; | ||
import dataExtract from './metadataTypes/definitions/DataExtract.definition.js'; | ||
import dataExtractType from './metadataTypes/definitions/DataExtractType.definition.js'; | ||
import discovery from './metadataTypes/definitions/Discovery.definition.js'; | ||
import email from './metadataTypes/definitions/Email.definition.js'; | ||
import emailSend from './metadataTypes/definitions/EmailSend.definition.js'; | ||
import event from './metadataTypes/definitions/Event.definition.js'; | ||
import fileLocation from './metadataTypes/definitions/FileLocation.definition.js'; | ||
import fileTransfer from './metadataTypes/definitions/FileTransfer.definition.js'; | ||
import filter from './metadataTypes/definitions/Filter.definition.js'; | ||
import folder from './metadataTypes/definitions/Folder.definition.js'; | ||
import importFile from './metadataTypes/definitions/ImportFile.definition.js'; | ||
import journey from './metadataTypes/definitions/Journey.definition.js'; | ||
import list from './metadataTypes/definitions/List.definition.js'; | ||
import mobileCode from './metadataTypes/definitions/MobileCode.definition.js'; | ||
import mobileKeyword from './metadataTypes/definitions/MobileKeyword.definition.js'; | ||
import mobileMessage from './metadataTypes/definitions/MobileMessage.definition.js'; | ||
import query from './metadataTypes/definitions/Query.definition.js'; | ||
import role from './metadataTypes/definitions/Role.definition.js'; | ||
import script from './metadataTypes/definitions/Script.definition.js'; | ||
import sendClassification from './metadataTypes/definitions/SendClassification.definition.js'; | ||
import transactionalEmail from './metadataTypes/definitions/TransactionalEmail.definition.js'; | ||
import transactionalPush from './metadataTypes/definitions/TransactionalPush.definition.js'; | ||
import transactionalSMS from './metadataTypes/definitions/TransactionalSMS.definition.js'; | ||
import triggeredSend from './metadataTypes/definitions/TriggeredSend.definition.js'; | ||
import user from './metadataTypes/definitions/User.definition.js'; | ||
import verification from './metadataTypes/definitions/Verification.definition.js'; | ||
|
||
/** | ||
* Provides access to all metadataType classes | ||
*/ | ||
const MetadataTypeDefinitions = { | ||
asset: require('./metadataTypes/definitions/Asset.definition'), | ||
attributeGroup: require('./metadataTypes/definitions/AttributeGroup.definition'), | ||
attributeSet: require('./metadataTypes/definitions/AttributeSet.definition'), | ||
automation: require('./metadataTypes/definitions/Automation.definition'), | ||
campaign: require('./metadataTypes/definitions/Campaign.definition'), | ||
contentArea: require('./metadataTypes/definitions/ContentArea.definition'), | ||
dataExtension: require('./metadataTypes/definitions/DataExtension.definition'), | ||
dataExtensionField: require('./metadataTypes/definitions/DataExtensionField.definition'), | ||
dataExtensionTemplate: require('./metadataTypes/definitions/DataExtensionTemplate.definition'), | ||
dataExtract: require('./metadataTypes/definitions/DataExtract.definition'), | ||
dataExtractType: require('./metadataTypes/definitions/DataExtractType.definition'), | ||
discovery: require('./metadataTypes/definitions/Discovery.definition'), | ||
email: require('./metadataTypes/definitions/Email.definition'), | ||
emailSend: require('./metadataTypes/definitions/EmailSend.definition'), | ||
event: require('./metadataTypes/definitions/Event.definition'), | ||
fileLocation: require('./metadataTypes/definitions/FileLocation.definition'), | ||
fileTransfer: require('./metadataTypes/definitions/FileTransfer.definition'), | ||
filter: require('./metadataTypes/definitions/Filter.definition'), | ||
folder: require('./metadataTypes/definitions/Folder.definition'), | ||
importFile: require('./metadataTypes/definitions/ImportFile.definition'), | ||
journey: require('./metadataTypes/definitions/Journey.definition'), | ||
list: require('./metadataTypes/definitions/List.definition'), | ||
mobileCode: require('./metadataTypes/definitions/MobileCode.definition'), | ||
mobileKeyword: require('./metadataTypes/definitions/MobileKeyword.definition'), | ||
mobileMessage: require('./metadataTypes/definitions/MobileMessage.definition'), | ||
query: require('./metadataTypes/definitions/Query.definition'), | ||
role: require('./metadataTypes/definitions/Role.definition'), | ||
script: require('./metadataTypes/definitions/Script.definition'), | ||
sendClassification: require('./metadataTypes/definitions/SendClassification.definition'), | ||
transactionalEmail: require('./metadataTypes/definitions/TransactionalEmail.definition'), | ||
transactionalPush: require('./metadataTypes/definitions/TransactionalPush.definition'), | ||
transactionalSMS: require('./metadataTypes/definitions/TransactionalSMS.definition'), | ||
triggeredSend: require('./metadataTypes/definitions/TriggeredSend.definition'), | ||
user: require('./metadataTypes/definitions/User.definition'), | ||
verification: require('./metadataTypes/definitions/Verification.definition'), | ||
export default { | ||
asset, | ||
attributeGroup, | ||
attributeSet, | ||
automation, | ||
campaign, | ||
contentArea, | ||
dataExtension, | ||
dataExtensionField, | ||
dataExtensionTemplate, | ||
dataExtract, | ||
dataExtractType, | ||
discovery, | ||
email, | ||
emailSend, | ||
event, | ||
fileLocation, | ||
fileTransfer, | ||
filter, | ||
folder, | ||
importFile, | ||
journey, | ||
list, | ||
mobileCode, | ||
mobileKeyword, | ||
mobileMessage, | ||
query, | ||
role, | ||
script, | ||
sendClassification, | ||
transactionalEmail, | ||
transactionalPush, | ||
transactionalSMS, | ||
triggeredSend, | ||
user, | ||
verification, | ||
}; | ||
|
||
module.exports = MetadataTypeDefinitions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,80 @@ | ||
'use strict'; | ||
|
||
import asset from './metadataTypes/Asset.js'; | ||
import attributeGroup from './metadataTypes/AttributeGroup.js'; | ||
import attributeSet from './metadataTypes/AttributeSet.js'; | ||
import automation from './metadataTypes/Automation.js'; | ||
import campaign from './metadataTypes/Campaign.js'; | ||
import contentArea from './metadataTypes/ContentArea.js'; | ||
import dataExtension from './metadataTypes/DataExtension.js'; | ||
import dataExtensionField from './metadataTypes/DataExtensionField.js'; | ||
import dataExtensionTemplate from './metadataTypes/DataExtensionTemplate.js'; | ||
import dataExtract from './metadataTypes/DataExtract.js'; | ||
import dataExtractType from './metadataTypes/DataExtractType.js'; | ||
import discovery from './metadataTypes/Discovery.js'; | ||
import email from './metadataTypes/Email.js'; | ||
import emailSend from './metadataTypes/EmailSend.js'; | ||
import event from './metadataTypes/Event.js'; | ||
import fileLocation from './metadataTypes/FileLocation.js'; | ||
import fileTransfer from './metadataTypes/FileTransfer.js'; | ||
import filter from './metadataTypes/Filter.js'; | ||
import folder from './metadataTypes/Folder.js'; | ||
import importFile from './metadataTypes/ImportFile.js'; | ||
import journey from './metadataTypes/Journey.js'; | ||
import list from './metadataTypes/List.js'; | ||
import mobileCode from './metadataTypes/MobileCode.js'; | ||
import mobileKeyword from './metadataTypes/MobileKeyword.js'; | ||
import mobileMessage from './metadataTypes/MobileMessage.js'; | ||
import query from './metadataTypes/Query.js'; | ||
import role from './metadataTypes/Role.js'; | ||
import script from './metadataTypes/Script.js'; | ||
import sendClassification from './metadataTypes/SendClassification.js'; | ||
import transactionalEmail from './metadataTypes/TransactionalEmail.js'; | ||
import transactionalPush from './metadataTypes/TransactionalPush.js'; | ||
import transactionalSMS from './metadataTypes/TransactionalSMS.js'; | ||
import triggeredSend from './metadataTypes/TriggeredSend.js'; | ||
import user from './metadataTypes/User.js'; | ||
import verification from './metadataTypes/Verification.js'; | ||
|
||
/** | ||
* Provides access to all metadataType classes | ||
*/ | ||
const MetadataTypeInfo = { | ||
asset: require('./metadataTypes/Asset'), | ||
attributeGroup: require('./metadataTypes/AttributeGroup'), | ||
attributeSet: require('./metadataTypes/AttributeSet'), | ||
automation: require('./metadataTypes/Automation'), | ||
campaign: require('./metadataTypes/Campaign'), | ||
contentArea: require('./metadataTypes/ContentArea'), | ||
dataExtension: require('./metadataTypes/DataExtension'), | ||
dataExtensionField: require('./metadataTypes/DataExtensionField'), | ||
dataExtensionTemplate: require('./metadataTypes/DataExtensionTemplate'), | ||
dataExtract: require('./metadataTypes/DataExtract'), | ||
dataExtractType: require('./metadataTypes/DataExtractType'), | ||
discovery: require('./metadataTypes/Discovery'), | ||
email: require('./metadataTypes/Email'), | ||
emailSend: require('./metadataTypes/EmailSend'), | ||
event: require('./metadataTypes/Event'), | ||
fileLocation: require('./metadataTypes/FileLocation'), | ||
fileTransfer: require('./metadataTypes/FileTransfer'), | ||
filter: require('./metadataTypes/Filter'), | ||
folder: require('./metadataTypes/Folder'), | ||
importFile: require('./metadataTypes/ImportFile'), | ||
journey: require('./metadataTypes/Journey'), | ||
list: require('./metadataTypes/List'), | ||
mobileCode: require('./metadataTypes/MobileCode'), | ||
mobileKeyword: require('./metadataTypes/MobileKeyword'), | ||
mobileMessage: require('./metadataTypes/MobileMessage'), | ||
query: require('./metadataTypes/Query'), | ||
role: require('./metadataTypes/Role'), | ||
script: require('./metadataTypes/Script'), | ||
sendClassification: require('./metadataTypes/SendClassification'), | ||
transactionalEmail: require('./metadataTypes/TransactionalEmail'), | ||
transactionalPush: require('./metadataTypes/TransactionalPush'), | ||
transactionalSMS: require('./metadataTypes/TransactionalSMS'), | ||
triggeredSend: require('./metadataTypes/TriggeredSend'), | ||
user: require('./metadataTypes/User'), | ||
verification: require('./metadataTypes/Verification'), | ||
asset, | ||
attributeGroup, | ||
attributeSet, | ||
automation, | ||
campaign, | ||
contentArea, | ||
dataExtension, | ||
dataExtensionField, | ||
dataExtensionTemplate, | ||
dataExtract, | ||
dataExtractType, | ||
discovery, | ||
email, | ||
emailSend, | ||
event, | ||
fileLocation, | ||
fileTransfer, | ||
filter, | ||
folder, | ||
importFile, | ||
journey, | ||
list, | ||
mobileCode, | ||
mobileKeyword, | ||
mobileMessage, | ||
query, | ||
role, | ||
script, | ||
sendClassification, | ||
transactionalEmail, | ||
transactionalPush, | ||
transactionalSMS, | ||
triggeredSend, | ||
user, | ||
verification, | ||
}; | ||
|
||
module.exports = MetadataTypeInfo; | ||
export default MetadataTypeInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.