mcdev
Version:
Accenture Salesforce Marketing Cloud DevTools
347 lines (346 loc) • 9.78 kB
JavaScript
export default {
bodyIteratorField: 'items',
dependencies: ['fileLocation', 'dataExtension', 'list', 'mobileKeyword'],
dependencyGraph: {
// fileLocation cannot be deployed
// fileLocation: ['source.r__fileLocation_name'],
dataExtension: ['destination.r__dataExtension_key', 'source.r__dataExtension_key'],
list: ['destination.r__list_PathName'],
mobileKeyword: ['destination.r__mobileKeyword_key'],
},
destinationObjectTypeMapping: {
unknown: 783,
DataExtension: 310,
List: 13,
SMS: 584,
Push: 613,
WhatsApp: 2600,
},
hasExtended: true,
idField: 'importDefinitionId',
keyIsFixed: false,
keyField: 'customerKey',
nameField: 'name',
createdDateField: 'createdDate',
createdNameField: null,
lastmodDateField: 'modifiedDate',
lastmodNameField: null,
restPagination: true,
restPageSize: 100,
restConcurrentLimit: 2,
subscriberImportTypeMapping: {
DataExtension: 255,
Email: 0,
},
maxKeyLength: 36, // confirmed max length
type: 'importFile',
typeDescription: 'Reads files in FTP directory for further processing.',
typeRetrieveByDefault: true,
typeCdpByDefault: true,
typeName: 'Automation: Import File Activity',
updateTypeMapping: {
Add: 1,
AddUpdate: 0,
Overwrite: 4,
Update: 2,
},
blankFileProcessingTypeMapping: {
Fail: 0,
Process: 1,
Skip: 2,
},
fields: {
allowErrors: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
blankFileProcessingType: {
// only visible if retrieved with ID
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
createdDate: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
customerKey: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
dateFormatLocale: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
deleteFile: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
description: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
destinationId: {
isCreateable: true,
isUpdateable: true,
retrieving: false,
template: false,
},
destinationName: {
// only visible if retrieved with ID
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
destinationObjectId: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
destinationObjectTypeId: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
encodingName: {
// only visible if retrieved with ID
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
fieldMappingType: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
fieldMappings: {
skipValidation: true,
},
fileNamingPattern: {
// for FTP-import: pattern to look for; for DE-import: "_CustomObject"
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
fileSpec: {
// same as fileNamingPattern
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
fileTransferLocationId: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
fileTransferLocationName: {
// only visible if retrieved with ID
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
fileTransferLocationTypeId: {
isCreateable: true,
isUpdateable: true,
retrieving: false,
template: false,
},
fileType: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
filter: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
hasColumnHeader: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
importDefinitionId: {
isCreateable: false,
isUpdateable: true,
retrieving: false,
template: false,
},
isOrderedImport: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
isSequential: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
maxFileAgeHours: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
maxFileAgeScheduleOffsetHours: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
maxImportFrequencyHours: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
modifiedDate: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
name: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
},
notificationEmailAddress: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
otherDelimiter: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
sendEmailNotification: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
standardQuotedStrings: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
subscriberImportTypeId: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
updateTypeId: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
sourceCustomObjectId: {
// for FTP-import: empty string; for DE-import: dataExtension id
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
sourceDataExtensionName: {
// for FTP-import: empty string; for DE-import: dataExtension name
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
c__dataAction: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
'destination.r__mobileKeyword_key': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
'source.r__dataExtension_key': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
'destination.r__dataExtension_key': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
'source.c__type': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
'destination.c__type': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
'destination.r__list_PathName': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
'source.r__fileLocation_name': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
c__subscriberImportType: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
c__blankFileProcessing: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
},
};