mcdev
Version:
Accenture Salesforce Marketing Cloud DevTools
1,048 lines (1,043 loc) • 25.5 kB
JavaScript
// asset types https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/base-asset-types.htm
export default {
bodyIteratorField: 'items',
dependencies: ['folder-asset', 'folder-asset-shared', 'folder-cloudpages'],
dependencyGraph: { asset: ['views.html.template.r__asset_key'] },
folderType: 'asset',
hasExtended: false,
idField: 'id',
keyIsFixed: false,
keyField: 'customerKey',
nameField: 'name',
folderIdField: 'category.id',
createdDateField: 'createdDate',
createdNameField: 'createdBy.name',
lastmodDateField: 'modifiedDate',
lastmodNameField: 'modifiedBy.name',
restPagination: true,
maxKeyLength: 36, // confirmed max length
type: 'asset',
typeDescription: 'Assets from Content Builder grouped into subtypes.',
typeRetrieveByDefault: [
'asset',
'code',
'coderesource',
'textfile',
'block',
'message',
'template',
'other',
],
typeCdpByDefault: true,
typeName: 'Asset-[Subtype]',
stringifyFieldsBeforeTemplate: ['memberId', 'enterpriseId'],
allowMatchingByName: true,
fields: {
activeDate: {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
allowedBlocks: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
assetType: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'assetType.displayName': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'assetType.id': {
isCreateable: true,
isUpdateable: true,
retrieving: false,
template: false,
},
'assetType.name': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
availableViews: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
modelVersion: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
blocks: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
businessUnitAvailability: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: false,
},
'businessUnitAvailability.%': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: false,
},
'businessUnitAvailability.%.view': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: false,
},
'businessUnitAvailability.%.update': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: false,
},
'businessUnitAvailability.%.delete': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: false,
},
'businessUnitAvailability.%.memberId': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: false,
},
'businessUnitAvailability.%.transferOwnership': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: false,
},
category: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'category.id': {
isCreateable: true,
isUpdateable: true,
retrieving: false,
template: true,
},
'category.name': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'category.parentId': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
channels: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
content: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'content.url': {
isCreateable: false,
isUpdateable: true,
retrieving: true,
template: true,
},
contentType: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'createdBy.email': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'createdBy.id': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
'createdBy.name': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'createdBy.userId': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
createdDate: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
customerKey: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
customFields: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'data.campaigns': {
skipValidation: true,
},
'data.approvals': {
skipValidation: true,
},
'data.email': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'data.email.attributes': {
skipValidation: true,
},
'data.email.legacy': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
'data.email.options': {
skipValidation: true,
},
'data.portfolio': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
'data.site': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'data.site.content': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'data.site.content.url': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
description: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
design: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
enterpriseId: {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
file: {
isCreateable: true,
isUpdateable: true,
retrieving: false,
template: false,
},
'fileProperties.fileName': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'fileProperties.extension': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'fileProperties.externalUrl': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'fileProperties.fileSize': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'fileProperties.fileCreatedDate': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'fileProperties.width': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'fileProperties.height': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'fileProperties.publishedURL': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
id: {
isCreateable: false,
isUpdateable: true,
retrieving: true,
template: false,
},
legacyData: {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
locked: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
maxBlocks: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
memberId: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: true,
},
meta: {
skipValidation: true,
},
minBlocks: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
'modifiedBy.email': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'modifiedBy.id': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
'modifiedBy.name': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'modifiedBy.userId': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
modifiedDate: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
name: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
objectID: {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
owner: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'owner.email': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'owner.id': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
'owner.name': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'owner.userId': {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
sharingProperties: {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'sharingProperties.localAssets': {
skipValidation: true,
},
'sharingProperties.sharedWith': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'sharingProperties.sharedFrom': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'sharingProperties.sharedFromMID': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
'sharingProperties.sharingType': {
isCreateable: false,
isUpdateable: false,
retrieving: true,
template: false,
},
slots: {
skipValidation: true,
},
'status.id': {
isCreateable: true,
isUpdateable: true,
retrieving: false,
template: true,
},
'status.name': {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
superContent: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
tags: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
template: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
thumbnail: {
isCreateable: false,
isUpdateable: false,
retrieving: false,
template: false,
},
version: {
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
},
views: {
skipValidation: true,
},
r__folder_Path: { skipValidation: true },
},
subTypes: [
'archive',
'asset',
'audio',
'block',
'cloudpage',
'code',
'coderesource',
'document',
'image',
'message',
'other',
'rawimage',
'template',
'textfile',
'video',
],
crosslinkedSubTypes: ['asset', 'code', 'textfile', 'block', 'other'],
selflinkedSubTypes: ['asset', 'code', 'textfile', 'block', 'other', 'template'],
binarySubtypes: ['archive', 'audio', 'document', 'image', 'rawimage', 'video'],
extendedSubTypes: {
archive: [
'7z',
'arj',
'bz2',
'cab',
'gz',
'gzip',
'iso',
'lha',
'sit',
'tgz',
'jar',
'rar',
'tar',
'zip',
'gpg',
'archive',
],
asset: ['webpage', 'webtemplate', 'jsonmessage', 'icemailformblock', 'asset'],
audio: [
'aac',
'm4a',
'au',
'aif',
'aiff',
'aifc',
'mp3',
'wav',
'wma',
'midi',
'oga',
'ogg',
'ra',
'vox',
'voc',
'audio',
],
block: [
'freeformblock',
'textblock',
'htmlblock',
'textplusimageblock',
'imageblock',
'abtestblock',
'dynamicblock',
'stylingblock',
'einsteincontentblock',
'socialshareblock',
'socialfollowblock',
'buttonblock',
'layoutblock',
'block',
],
cloudpage: ['cloudpages', 'landingpage', 'microsite', 'interactivecontent'],
code: [
'htm',
'html',
'xhtml',
'xht',
'css',
'less',
'sass',
'js',
'json',
'atom',
'rss',
'xml',
'xsl',
'xslt',
'md',
'markdown',
'as',
'fla',
'eml',
'code',
],
coderesource: [
'jscoderesource',
'csscoderesource',
'jsoncoderesource',
'rsscoderesource',
'textcoderesource',
'xmlcoderesource',
],
document: [
'indd',
'indt',
'incx',
'wwcx',
'doc',
'docx',
'dot',
'dotx',
'mdb',
'mpp',
'ics',
'xls',
'xlsx',
'xlk',
'xlsm',
'xlt',
'xltm',
'csv',
'tsv',
'tab',
'pps',
'ppsx',
'ppt',
'pptx',
'pot',
'thmx',
'pdf',
'ps',
'qxd',
'rtf',
'sxc',
'sxi',
'sxw',
'odt',
'ods',
'ots',
'odp',
'otp',
'epub',
'dvi',
'key',
'keynote',
'pez',
'document',
],
image: [
'ai',
'psd',
'pdd',
'eps',
'gif',
'jpe',
'jpeg',
'jpg',
'jp2',
'jpx',
'pict',
'pct',
'png',
'tif',
'tiff',
'tga',
'bmp',
'wmf',
'vsd',
'pnm',
'pgm',
'pbm',
'ppm',
'svg',
'image',
],
message: ['templatebasedemail', 'htmlemail', 'textonlyemail', 'message'],
other: [
'smartcaptureblock',
'smartcaptureformfieldblock',
'smartcapturesubmitoptionsblock',
'slotpropertiesblock',
'externalcontentblock',
'codesnippetblock',
'rssfeedblock',
'formstylingblock',
'referenceblock',
'imagecarouselblock',
'customblock',
'liveimageblock',
'livesettingblock',
'contentmap',
],
rawimage: [
'3fr',
'ari',
'arw',
'bay',
'cap',
'crw',
'cr2',
'dcr',
'dcs',
'dng',
'drf',
'eip',
'erf',
'fff',
'iiq',
'k25',
'kdc',
'mef',
'mos',
'mrw',
'nef',
'nrw',
'orf',
'pef',
'ptx',
'pxn',
'raf',
'raw',
'rw2',
'rwl',
'rwz',
'srf',
'sr2',
'srw',
'x3f',
'rawimage',
],
template: ['defaulttemplate', 'template'],
textfile: ['text', 'txt', 'textfile'],
video: [
'3gp',
'3gpp',
'3g2',
'3gp2',
'asf',
'avi',
'm2ts',
'mts',
'dif',
'dv',
'mkv',
'mpg',
'f4v',
'flv',
'mjpg',
'mjpeg',
'mxf',
'mpeg',
'mp4',
'm4v',
'mp4v',
'mov',
'swf',
'wmv',
'rm',
'ogv',
'video',
],
},
typeMapping: {
asset: 1,
file: 2, // not inherited on Asset Types
block: 3,
template: 4,
message: 5,
custom: 6, // not inherited on Asset Types
default: 7, // not inherited on Asset Types
image: 8,
rawimage: 9,
video: 10,
document: 11,
audio: 12,
archive: 13,
code: 14,
textfile: 15,
ai: 16,
psd: 17,
pdd: 18,
eps: 19,
gif: 20,
jpe: 21,
jpeg: 22,
jpg: 23,
jp2: 24,
jpx: 25,
pict: 26,
pct: 27,
png: 28,
tif: 29,
tiff: 30,
tga: 31,
bmp: 32,
wmf: 33,
vsd: 34,
pnm: 35,
pgm: 36,
pbm: 37,
ppm: 38,
svg: 39,
'3fr': 40,
ari: 41,
arw: 42,
bay: 43,
cap: 44,
crw: 45,
cr2: 46,
dcr: 47,
dcs: 48,
dng: 49,
drf: 50,
eip: 51,
erf: 52,
fff: 53,
iiq: 54,
k25: 55,
kdc: 56,
mef: 57,
mos: 58,
mrw: 59,
nef: 60,
nrw: 61,
orf: 62,
pef: 63,
ptx: 64,
pxn: 65,
raf: 66,
raw: 67,
rw2: 68,
rwl: 69,
rwz: 70,
srf: 71,
sr2: 72,
srw: 73,
x3f: 74,
'3gp': 75,
'3gpp': 76,
'3g2': 77,
'3gp2': 78,
asf: 79,
avi: 80,
m2ts: 81,
mts: 82,
dif: 83,
dv: 84,
mkv: 85,
mpg: 86,
f4v: 87,
flv: 88,
mjpg: 89,
mjpeg: 90,
mxf: 91,
mpeg: 92,
mp4: 93,
m4v: 94,
mp4v: 95,
mov: 96,
swf: 97,
wmv: 98,
rm: 99,
ogv: 100,
indd: 101,
indt: 102,
incx: 103,
wwcx: 104,
doc: 105,
docx: 106,
dot: 107,
dotx: 108,
mdb: 109,
mpp: 110,
ics: 111,
xls: 112,
xlsx: 113,
xlk: 114,
xlsm: 115,
xlt: 116,
xltm: 117,
csv: 118,
tsv: 119,
tab: 120,
pps: 121,
ppsx: 122,
ppt: 123,
pptx: 124,
pot: 125,
thmx: 126,
pdf: 127,
ps: 128,
qxd: 129,
rtf: 130,
sxc: 131,
sxi: 132,
sxw: 133,
odt: 134,
ods: 135,
ots: 136,
odp: 137,
otp: 138,
epub: 139,
dvi: 140,
key: 141,
keynote: 142,
pez: 143,
aac: 144,
m4a: 145,
au: 146,
aif: 147,
aiff: 148,
aifc: 149,
mp3: 150,
wav: 151,
wma: 152,
midi: 153,
oga: 154,
ogg: 155,
ra: 156,
vox: 157,
voc: 158,
'7z': 159,
arj: 160,
bz2: 161,
cab: 162,
gz: 163,
gzip: 164,
iso: 165,
lha: 166,
sit: 167,
tgz: 168,
jar: 169,
rar: 170,
tar: 171,
zip: 172,
gpg: 173,
htm: 174,
html: 175,
xhtml: 176,
xht: 177,
css: 178,
less: 179,
sass: 180,
js: 181,
json: 182,
atom: 183,
rss: 184,
xml: 185,
xsl: 186,
xslt: 187,
md: 188,
markdown: 189,
as: 190,
fla: 191,
eml: 192,
text: 193,
txt: 194,
freeformblock: 195,
textblock: 196,
htmlblock: 197,
textplusimageblock: 198,
imageblock: 199,
abtestblock: 200,
dynamicblock: 201,
stylingblock: 202,
einsteincontentblock: 203,
webpage: 205,
webtemplate: 206,
templatebasedemail: 207,
htmlemail: 208,
textonlyemail: 209,
socialshareblock: 210,
socialfollowblock: 211,
buttonblock: 212,
layoutblock: 213,
defaulttemplate: 214,
smartcaptureblock: 215,
smartcaptureformfieldblock: 216,
smartcapturesubmitoptionsblock: 217,
slotpropertiesblock: 218,
externalcontentblock: 219,
codesnippetblock: 220,
rssfeedblock: 221,
formstylingblock: 222,
referenceblock: 223,
imagecarouselblock: 224,
customblock: 225,
liveimageblock: 226,
livesettingblock: 227,
contentmap: 228,
jsonmessage: 230,
icemailformblock: 232,
coderesource: 239,
jscoderesource: 240,
csscoderesource: 241,
jsoncoderesource: 242,
rsscoderesource: 243,
textcoderesource: 244,
xmlcoderesource: 245,
cloudpages: 246,
landingpage: 247,
microsite: 248,
interactivecontent: 249,
},
};