ampscript-data 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/functions/content.js
CHANGED
|
@@ -183,8 +183,10 @@ export const CONTENT_FUNCTIONS = [
|
|
|
183
183
|
supportedInCloudPage: true,
|
|
184
184
|
supportedInEmail: true,
|
|
185
185
|
mcnSince: 68,
|
|
186
|
-
handlebarsEquivalent:
|
|
187
|
-
|
|
186
|
+
handlebarsEquivalent: 'impressionRegion',
|
|
187
|
+
handlebarsExact: false,
|
|
188
|
+
mcnNotes:
|
|
189
|
+
'In Handlebars, the block helper impressionRegion replaces this function together with EndImpressionRegion: the region name goes on the opening tag and the closing tag ends the region.',
|
|
188
190
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-content/mc-ampscript-reference-content-begin-impression-region.html',
|
|
189
191
|
guideUrl: 'https://ampscript.guide/beginimpressionregion/',
|
|
190
192
|
sfmcGuideUrl: 'https://sfmc.guide/engagement/ampscript/functions/beginimpressionregion/',
|
|
@@ -316,7 +318,8 @@ export const CONTENT_FUNCTIONS = [
|
|
|
316
318
|
supportedInCloudPage: true,
|
|
317
319
|
supportedInEmail: true,
|
|
318
320
|
mcnSince: 68,
|
|
319
|
-
handlebarsEquivalent:
|
|
321
|
+
handlebarsEquivalent: 'buildRowSetFromString',
|
|
322
|
+
handlebarsExact: true,
|
|
320
323
|
mcnNotes: null,
|
|
321
324
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-content/mc-ampscript-reference-content-build-rowset-from-string.html',
|
|
322
325
|
guideUrl: 'https://ampscript.guide/buildrowsetfromstring/',
|
|
@@ -351,7 +354,8 @@ export const CONTENT_FUNCTIONS = [
|
|
|
351
354
|
supportedInCloudPage: true,
|
|
352
355
|
supportedInEmail: true,
|
|
353
356
|
mcnSince: 68,
|
|
354
|
-
handlebarsEquivalent:
|
|
357
|
+
handlebarsEquivalent: 'buildRowSetFromXml',
|
|
358
|
+
handlebarsExact: false,
|
|
355
359
|
mcnNotes: null,
|
|
356
360
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-content/mc-ampscript-reference-content-build-rowset-from-xml.html',
|
|
357
361
|
guideUrl: 'https://ampscript.guide/buildrowsetfromxml/',
|
|
@@ -809,8 +813,10 @@ export const CONTENT_FUNCTIONS = [
|
|
|
809
813
|
supportedInCloudPage: true,
|
|
810
814
|
supportedInEmail: true,
|
|
811
815
|
mcnSince: 68,
|
|
812
|
-
handlebarsEquivalent:
|
|
813
|
-
|
|
816
|
+
handlebarsEquivalent: 'impressionRegion',
|
|
817
|
+
handlebarsExact: false,
|
|
818
|
+
mcnNotes:
|
|
819
|
+
'In Handlebars, the closing tag of the impressionRegion block helper ends its region; there is no argument for ending every open region at once.',
|
|
814
820
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-content/mc-ampscript-reference-content-end-impression-region.html',
|
|
815
821
|
guideUrl: 'https://ampscript.guide/endimpressionregion/',
|
|
816
822
|
sfmcGuideUrl: 'https://sfmc.guide/engagement/ampscript/functions/endimpressionregion/',
|
|
@@ -9,7 +9,8 @@ export const DATA_EXTENSION_FUNCTIONS = [
|
|
|
9
9
|
supportedInCloudPage: true,
|
|
10
10
|
supportedInEmail: true,
|
|
11
11
|
mcnSince: 68,
|
|
12
|
-
handlebarsEquivalent:
|
|
12
|
+
handlebarsEquivalent: 'claimRow',
|
|
13
|
+
handlebarsExact: false,
|
|
13
14
|
mcnNotes: null,
|
|
14
15
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-data-extension/mc-ampscript-reference-data-extension-claim-row.html',
|
|
15
16
|
guideUrl: 'https://ampscript.guide/claimrow/',
|
|
@@ -80,8 +81,10 @@ export const DATA_EXTENSION_FUNCTIONS = [
|
|
|
80
81
|
supportedInCloudPage: true,
|
|
81
82
|
supportedInEmail: true,
|
|
82
83
|
mcnSince: 68,
|
|
83
|
-
handlebarsEquivalent:
|
|
84
|
-
|
|
84
|
+
handlebarsEquivalent: 'claimRow',
|
|
85
|
+
handlebarsExact: false,
|
|
86
|
+
mcnNotes:
|
|
87
|
+
'Handlebars has no one-call counterpart: claimRow takes named arguments and returns the whole row, so read the wanted column from that row and wrap the call in fallback to supply a default when no row is left.',
|
|
85
88
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-data-extension/mc-ampscript-reference-data-extension-claim-row-value.html',
|
|
86
89
|
guideUrl: 'https://ampscript.guide/claimrowvalue/',
|
|
87
90
|
sfmcGuideUrl: 'https://sfmc.guide/engagement/ampscript/functions/claimrowvalue/',
|
|
@@ -140,7 +140,8 @@ export const DATE_TIME_FUNCTIONS = [
|
|
|
140
140
|
supportedInCloudPage: true,
|
|
141
141
|
supportedInEmail: true,
|
|
142
142
|
mcnSince: 68,
|
|
143
|
-
handlebarsEquivalent:
|
|
143
|
+
handlebarsEquivalent: 'datePart',
|
|
144
|
+
handlebarsExact: true,
|
|
144
145
|
mcnNotes: null,
|
|
145
146
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-date-part.html',
|
|
146
147
|
guideUrl: 'https://ampscript.guide/datepart/',
|
|
@@ -9,7 +9,8 @@ export const ENCRYPTION_ENCODING_FUNCTIONS = [
|
|
|
9
9
|
supportedInCloudPage: true,
|
|
10
10
|
supportedInEmail: true,
|
|
11
11
|
mcnSince: 68,
|
|
12
|
-
handlebarsEquivalent:
|
|
12
|
+
handlebarsEquivalent: 'base64Decode',
|
|
13
|
+
handlebarsExact: false,
|
|
13
14
|
mcnNotes: null,
|
|
14
15
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-base64-decode.html',
|
|
15
16
|
guideUrl: 'https://ampscript.guide/base64decode/',
|
|
@@ -57,7 +58,8 @@ export const ENCRYPTION_ENCODING_FUNCTIONS = [
|
|
|
57
58
|
supportedInCloudPage: true,
|
|
58
59
|
supportedInEmail: true,
|
|
59
60
|
mcnSince: 68,
|
|
60
|
-
handlebarsEquivalent:
|
|
61
|
+
handlebarsEquivalent: 'base64Encode',
|
|
62
|
+
handlebarsExact: false,
|
|
61
63
|
mcnNotes: null,
|
|
62
64
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-base64-encode.html',
|
|
63
65
|
guideUrl: 'https://ampscript.guide/base64encode/',
|
|
@@ -300,7 +302,8 @@ export const ENCRYPTION_ENCODING_FUNCTIONS = [
|
|
|
300
302
|
supportedInCloudPage: true,
|
|
301
303
|
supportedInEmail: true,
|
|
302
304
|
mcnSince: 68,
|
|
303
|
-
handlebarsEquivalent:
|
|
305
|
+
handlebarsEquivalent: 'md5',
|
|
306
|
+
handlebarsExact: false,
|
|
304
307
|
mcnNotes: null,
|
|
305
308
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-encryption/mc-ampscript-reference-encryption-md5.html',
|
|
306
309
|
guideUrl: 'https://ampscript.guide/md5/',
|
|
@@ -341,7 +344,8 @@ export const ENCRYPTION_ENCODING_FUNCTIONS = [
|
|
|
341
344
|
supportedInCloudPage: true,
|
|
342
345
|
supportedInEmail: true,
|
|
343
346
|
mcnSince: 68,
|
|
344
|
-
handlebarsEquivalent:
|
|
347
|
+
handlebarsEquivalent: 'sha1',
|
|
348
|
+
handlebarsExact: false,
|
|
345
349
|
mcnNotes: null,
|
|
346
350
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-encryption/mc-ampscript-reference-encryption-sha1.html',
|
|
347
351
|
guideUrl: 'https://ampscript.guide/sha1/',
|
|
@@ -382,7 +386,8 @@ export const ENCRYPTION_ENCODING_FUNCTIONS = [
|
|
|
382
386
|
supportedInCloudPage: true,
|
|
383
387
|
supportedInEmail: true,
|
|
384
388
|
mcnSince: 68,
|
|
385
|
-
handlebarsEquivalent:
|
|
389
|
+
handlebarsEquivalent: 'sha256',
|
|
390
|
+
handlebarsExact: false,
|
|
386
391
|
mcnNotes: null,
|
|
387
392
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-encryption/mc-ampscript-reference-encryption-sha256.html',
|
|
388
393
|
guideUrl: 'https://ampscript.guide/sha256/',
|
|
@@ -423,7 +428,8 @@ export const ENCRYPTION_ENCODING_FUNCTIONS = [
|
|
|
423
428
|
supportedInCloudPage: true,
|
|
424
429
|
supportedInEmail: true,
|
|
425
430
|
mcnSince: 68,
|
|
426
|
-
handlebarsEquivalent:
|
|
431
|
+
handlebarsEquivalent: 'sha512',
|
|
432
|
+
handlebarsExact: false,
|
|
427
433
|
mcnNotes: null,
|
|
428
434
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-encryption/mc-ampscript-reference-encryption-sha512.html',
|
|
429
435
|
guideUrl: 'https://ampscript.guide/sha512/',
|
|
@@ -464,7 +470,8 @@ export const ENCRYPTION_ENCODING_FUNCTIONS = [
|
|
|
464
470
|
supportedInCloudPage: true,
|
|
465
471
|
supportedInEmail: true,
|
|
466
472
|
mcnSince: 68,
|
|
467
|
-
handlebarsEquivalent:
|
|
473
|
+
handlebarsEquivalent: 'stringToHex',
|
|
474
|
+
handlebarsExact: false,
|
|
468
475
|
mcnNotes: null,
|
|
469
476
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-to-hex.html',
|
|
470
477
|
guideUrl: 'https://ampscript.guide/stringtohex/',
|
|
@@ -504,8 +511,10 @@ export const ENCRYPTION_ENCODING_FUNCTIONS = [
|
|
|
504
511
|
supportedInCloudPage: true,
|
|
505
512
|
supportedInEmail: true,
|
|
506
513
|
mcnSince: 68,
|
|
507
|
-
handlebarsEquivalent:
|
|
508
|
-
|
|
514
|
+
handlebarsEquivalent: 'encodeURIComponent',
|
|
515
|
+
handlebarsExact: false,
|
|
516
|
+
mcnNotes:
|
|
517
|
+
'In Handlebars, encodeURIComponent encodes only what follows the address, such as a query string, which is what this function does by default; use encodeURI to encode a whole string. Neither helper takes the two switches of this function.',
|
|
509
518
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-url-encode.html',
|
|
510
519
|
guideUrl: 'https://ampscript.guide/urlencode/',
|
|
511
520
|
minArgs: 1,
|
package/src/functions/string.js
CHANGED
|
@@ -209,7 +209,8 @@ export const STRING_FUNCTIONS = [
|
|
|
209
209
|
supportedInCloudPage: true,
|
|
210
210
|
supportedInEmail: true,
|
|
211
211
|
mcnSince: 68,
|
|
212
|
-
handlebarsEquivalent:
|
|
212
|
+
handlebarsEquivalent: 'regExMatch',
|
|
213
|
+
handlebarsExact: false,
|
|
213
214
|
mcnNotes:
|
|
214
215
|
'MC Next uses a different regex engine that excludes .NET-only constructs. Options must be literal comma-separated text and can only be IgnoreCase, Multiline, Singleline, IgnorePatternWhitespace, or ExplicitCapture.',
|
|
215
216
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-regex-match.html',
|
package/src/functions/utility.js
CHANGED
|
@@ -245,7 +245,8 @@ export const UTILITY_FUNCTIONS = [
|
|
|
245
245
|
supportedInCloudPage: true,
|
|
246
246
|
supportedInEmail: true,
|
|
247
247
|
mcnSince: 68,
|
|
248
|
-
handlebarsEquivalent:
|
|
248
|
+
handlebarsEquivalent: 'domain',
|
|
249
|
+
handlebarsExact: true,
|
|
249
250
|
mcnNotes: null,
|
|
250
251
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-domain.html',
|
|
251
252
|
guideUrl: 'https://ampscript.guide/domain/',
|
|
@@ -462,7 +463,8 @@ export const UTILITY_FUNCTIONS = [
|
|
|
462
463
|
supportedInCloudPage: true,
|
|
463
464
|
supportedInEmail: true,
|
|
464
465
|
mcnSince: 68,
|
|
465
|
-
handlebarsEquivalent:
|
|
466
|
+
handlebarsEquivalent: 'guid',
|
|
467
|
+
handlebarsExact: true,
|
|
466
468
|
mcnNotes: null,
|
|
467
469
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-guid.html',
|
|
468
470
|
guideUrl: 'https://ampscript.guide/guid/',
|
|
@@ -560,7 +562,8 @@ export const UTILITY_FUNCTIONS = [
|
|
|
560
562
|
supportedInCloudPage: true,
|
|
561
563
|
supportedInEmail: true,
|
|
562
564
|
mcnSince: 68,
|
|
563
|
-
handlebarsEquivalent:
|
|
565
|
+
handlebarsEquivalent: 'isEmailAddress',
|
|
566
|
+
handlebarsExact: true,
|
|
564
567
|
mcnNotes: null,
|
|
565
568
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-is-email-address.html',
|
|
566
569
|
guideUrl: 'https://ampscript.guide/isemailaddress/',
|
|
@@ -628,8 +631,8 @@ export const UTILITY_FUNCTIONS = [
|
|
|
628
631
|
supportedInCloudPage: true,
|
|
629
632
|
supportedInEmail: true,
|
|
630
633
|
mcnSince: 68,
|
|
631
|
-
handlebarsEquivalent: '
|
|
632
|
-
handlebarsExact:
|
|
634
|
+
handlebarsEquivalent: 'isNullDefault',
|
|
635
|
+
handlebarsExact: true,
|
|
633
636
|
mcnNotes: null,
|
|
634
637
|
docUrl: 'https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-sites/mc-ampscript-reference-sites-is-null-default.html',
|
|
635
638
|
guideUrl: 'https://ampscript.guide/isnulldefault/',
|