Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v7.0.0 #1193

Merged
merged 468 commits into from
Jun 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
468 commits
Select commit Hold shift + click to select a range
7181eba
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld Apr 20, 2024
c116a84
#1281: add new global option --errorLog
JoernBerkefeld Apr 23, 2024
66a2008
Merge pull request #1282 from Accenture/task/1281-hide-errorlog-file-…
JoernBerkefeld Apr 23, 2024
8db5135
#1275: add --metadata for deploy-method
JoernBerkefeld Apr 23, 2024
31136bc
#0: add new types
JoernBerkefeld Apr 23, 2024
8fb1c67
#1275: upgrade retriever to use new central createTypeKeyCombo method
JoernBerkefeld Apr 23, 2024
633afcb
#1275: add tests for retrieve --metadata
JoernBerkefeld Apr 23, 2024
96a4dbd
#1275: add a retrieve test for multiple types & keys without --metadata
JoernBerkefeld Apr 23, 2024
02435a8
#60: ensure downloading senderProfile filtered by key is properly logged
JoernBerkefeld Apr 23, 2024
e67e606
#1275: ensure Deployer and Retriever class get a slightly different n…
JoernBerkefeld Apr 23, 2024
5ee307d
#0: ensure we don't try to deploy types that have nothing to deploy
JoernBerkefeld Apr 24, 2024
f9a4527
#1275: add deploy tests and rework retrieve tests with/out --metadata
JoernBerkefeld Apr 24, 2024
f2d71d9
#1275: actually add --metadata option to deploy method
JoernBerkefeld Apr 24, 2024
ecceb81
#1275: cleanup
JoernBerkefeld Apr 24, 2024
229851b
#1275: ensure we require a key if we deploy with ---fromRetrieve and …
JoernBerkefeld Apr 24, 2024
dfd81bf
#1275: simplify logic
JoernBerkefeld Apr 24, 2024
467b903
Merge pull request #1283 from Accenture/feature/1275-add-metadata-opt…
JoernBerkefeld Apr 24, 2024
5384295
#1284: fix script.definition file
JoernBerkefeld Apr 24, 2024
cca38a1
#1284: add proper typing for explainTypes
JoernBerkefeld Apr 24, 2024
04cec1b
Merge pull request #1285 from Accenture/bug/1284-explaintypes-json-re…
JoernBerkefeld Apr 24, 2024
5dde228
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld Apr 24, 2024
5c69451
#1289: auto-exclude dataExtension _MobileAddressApplication during re…
JoernBerkefeld May 3, 2024
a0c5996
Merge pull request #1290 from Accenture/task/1289-auto-filter-dataext…
JoernBerkefeld May 3, 2024
ad874d6
#1292: add c__retentionPolicy and c__retainUntil
JoernBerkefeld May 3, 2024
ce3d85a
#1292: add c__dataRetentionPeriodUnitOfMeasure
JoernBerkefeld May 3, 2024
53209d8
#1292: updated dataExtension tests for new retention policy handling
JoernBerkefeld May 3, 2024
201e897
#1292: fix eventDefinition test cases on Windows machines
JoernBerkefeld May 3, 2024
848015c
#1292: fix case in path of eventDefinition test response
JoernBerkefeld May 3, 2024
8c0a2f5
Delete test/resources/9999999/interaction/v1/EventDefinitions/get-res…
JoernBerkefeld May 3, 2024
cd46d35
#1292: fix weird git behavior by removing & re-adding this
JoernBerkefeld May 3, 2024
648d31b
Revert "#1292: fix weird git behavior by removing & re-adding this"
JoernBerkefeld May 3, 2024
b41128c
Merge pull request #1295 from Accenture/feature/1292-enhance-readabil…
JoernBerkefeld May 3, 2024
8641d83
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld May 3, 2024
de04373
#62: add test for retrieve quicksend journey
JoernBerkefeld May 4, 2024
b58668a
#62: add message priority mapping
JoernBerkefeld May 4, 2024
33b0200
#62: added test for basic multi-step journey
JoernBerkefeld May 4, 2024
3936c08
#62: added decision split to multistep journey test
JoernBerkefeld May 4, 2024
5e4e99b
#62: added retrieve test for transactional email journey
JoernBerkefeld May 5, 2024
a82ed1d
#62: add journey tests for retrieve without key and for retrieve with id
JoernBerkefeld May 5, 2024
8f34313
#62: fix journey deletion test
JoernBerkefeld May 5, 2024
336bc38
#62: fix templating test for journeys
JoernBerkefeld May 5, 2024
f701d5d
#1302: define max key length for deliveryProfile, SendClassification …
JoernBerkefeld May 6, 2024
1673197
#1302, #1298: --addKeySuffix logic for fixKeys and deploy
JoernBerkefeld May 6, 2024
69b6734
#1302: rename new option to --keySuffix
JoernBerkefeld May 6, 2024
84dabf9
#1302: add aliases to deploy+fixKeys options
JoernBerkefeld May 6, 2024
1223306
#1302: add missing reset
JoernBerkefeld May 6, 2024
5cd6396
#1302: add tests for deploy --keySuffix and fixKeys --keySuffix
JoernBerkefeld May 6, 2024
a283839
#1302: fix dependent tests
JoernBerkefeld May 6, 2024
fd951ea
Merge pull request #1303 from Accenture/feature/1302-automatically-ad…
JoernBerkefeld May 6, 2024
3394066
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld May 6, 2024
47f09eb
#1301: add deploy option --noMidSuffix
JoernBerkefeld May 7, 2024
4069ded
#1302: allow --keySuffix to be used for CREATE and without --changeKe…
JoernBerkefeld May 7, 2024
ae01fc2
#0: shorten descriptions of deploy options
JoernBerkefeld May 7, 2024
de99de8
#905: allow testing for details of outgoing calls
JoernBerkefeld May 7, 2024
9a77946
#1302: test for --keySuffix on CREATE
JoernBerkefeld May 7, 2024
6027f17
#1301: add tests for --noMidSuffix
JoernBerkefeld May 7, 2024
4845319
#1301: improve test reset logic
JoernBerkefeld May 7, 2024
4ccc3b1
#905: reset request log before each test
JoernBerkefeld May 7, 2024
1b54ebf
#1302: enhance fixKeys test cases with checks on callout payload
JoernBerkefeld May 7, 2024
69f8990
#905: revert previous attempt and falling back to axios-mock internal…
JoernBerkefeld May 7, 2024
fe5b975
Merge pull request #1308 from Accenture/feature/1301-no-owner-check-f…
JoernBerkefeld May 8, 2024
9169c1d
#1306: remove empty entry from explainTypes json response
JoernBerkefeld May 8, 2024
aa4bc9a
Merge pull request #1309 from Accenture/bug/1306-filter-empty-shell-i…
JoernBerkefeld May 8, 2024
5471525
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld May 13, 2024
cbc1ad9
#62: convert triggeredSend Priority (number) to c__priority (enum)
JoernBerkefeld May 13, 2024
861877f
#62: fixed test that confirms you cannot use changeKeyValue/changeKey…
JoernBerkefeld May 13, 2024
466a38d
#1314: make sure we always cache all email-templates if template-base…
JoernBerkefeld May 13, 2024
7fb672b
#1314: ensure selected subtypes actually exist
JoernBerkefeld May 13, 2024
f5b415f
#1314: enable more on point REST test responses
JoernBerkefeld May 13, 2024
06daff7
#1314: test for resolving templates and better mock api responses
JoernBerkefeld May 13, 2024
76e8860
Merge pull request #1315 from Accenture/feature/1314-resolve-email-te…
JoernBerkefeld May 13, 2024
da527a5
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld May 13, 2024
53996d6
#1316: define keyIsFixed
JoernBerkefeld May 14, 2024
fee3e04
#1316: enable --metadata and multi-type for fixKeys
JoernBerkefeld May 14, 2024
7a2a3de
#1316: make sure we dont try to fix keys of filtered items
JoernBerkefeld May 14, 2024
e4a7167
#1316: adapt test cases for new return value of fixKeys
JoernBerkefeld May 14, 2024
ab981e6
#1316: make sure types that are not supported on the BU dont cause er…
JoernBerkefeld May 14, 2024
7c5f55e
#1316: refactoring
JoernBerkefeld May 14, 2024
8dcb490
#1316: ensure re-download question is suppressed if all types get fixed
JoernBerkefeld May 14, 2024
16fb9ee
Merge pull request #1317 from Accenture/feature/1316-add-multi-type-s…
JoernBerkefeld May 14, 2024
e4c73ae
#1318: ensure we update existing folders if IsActive, IsEditable or A…
JoernBerkefeld May 14, 2024
edcdffe
#1318: removed "Description" from auto-generated folders to avoid acc…
JoernBerkefeld May 14, 2024
fd9a363
Merge pull request #1319 from Accenture/feature/1318-auto-enable-allo…
JoernBerkefeld May 14, 2024
269ccdd
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld May 14, 2024
f6d212d
#0: allow retrieving automations by objectid
JoernBerkefeld May 15, 2024
719e763
#0: retrieve & delete asset by id/name/key
JoernBerkefeld May 15, 2024
65f927f
#0: regression fix for f6d212d41213205996ad4e4f360ca1a85ca5547f
JoernBerkefeld May 15, 2024
46d64e1
#1320: ensure we can create folders but dont override the description…
JoernBerkefeld May 15, 2024
52a00fb
#1320: allow creating folders for journey-triggeredSends
JoernBerkefeld May 15, 2024
25765ea
#1320: add support for creating automation folders
JoernBerkefeld May 15, 2024
0cdabf6
#1320: add support for creating journey folders
JoernBerkefeld May 15, 2024
4ec3377
#1320: fine-tuning for REST payload
JoernBerkefeld May 15, 2024
a01ecb7
#1320: code comments
JoernBerkefeld May 15, 2024
961ae8e
Merge pull request #1321 from Accenture/feature/1320-support-creating…
JoernBerkefeld May 15, 2024
13a4d1d
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld May 15, 2024
bffeecb
#62: reworked event processing based on SalesforceObjectTriggerV2
JoernBerkefeld May 15, 2024
de374c7
#62: remove redundant triggeredSend info
JoernBerkefeld May 15, 2024
2e9b905
Merge pull request #1268 from Accenture/feature/62-triggeredsendemail…
JoernBerkefeld May 15, 2024
29c52b6
Bump chai from 5.1.0 to 5.1.1
dependabot[bot] May 15, 2024
ac7fab7
Merge pull request #1311 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld May 15, 2024
59dbde3
Bump eslint-plugin-jsdoc from 48.2.3 to 48.2.4
dependabot[bot] May 15, 2024
838edf9
Merge pull request #1312 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld May 15, 2024
55419e9
Bump @types/node from 20.12.7 to 20.12.12
dependabot[bot] May 15, 2024
28e6049
Merge pull request #1322 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld May 15, 2024
1ff858a
#62: small fixes
JoernBerkefeld May 15, 2024
5453e88
#62: fix when redundant triggeredSend is removed
JoernBerkefeld May 15, 2024
499d8cd
Merge branch 'develop' into feature/62-triggeredsendemailsend-do-not-…
JoernBerkefeld May 15, 2024
11bbb35
#62: regression fix for 5453e883f7faf66f85a934297443ede0690fd5fb
JoernBerkefeld May 15, 2024
65257cb
Merge pull request #1326 from Accenture/feature/62-triggeredsendemail…
JoernBerkefeld May 15, 2024
92926ac
#1325: upgrade buildDefinition to accept --metadata
JoernBerkefeld May 15, 2024
16d14d6
#1325: upgrade buildTemplate to accept --metadata
JoernBerkefeld May 15, 2024
e73f3f3
#0: add deprecation notice to retrieveAsTemplate
JoernBerkefeld May 15, 2024
af1b42a
#0: update copyright notice in yargs help to 2024
JoernBerkefeld May 15, 2024
8391f47
#1325: adapt test cases to changed parameter type
JoernBerkefeld May 15, 2024
9724aa8
#1296: handle unknown keys gracefully in buildTemplate
JoernBerkefeld May 15, 2024
c482414
#1296: handle unknown keys gracefully in buildDefinition
JoernBerkefeld May 15, 2024
b039032
#1325: add test case for multi-type buildTemplate/buildDefinition
JoernBerkefeld May 15, 2024
56e3141
Merge pull request #1327 from Accenture/feature/1325-add-multi-type-s…
JoernBerkefeld May 15, 2024
1a149f3
#1324: fix buildTemplate for asset-message and asset-template, webpage
JoernBerkefeld May 16, 2024
1114c4c
#798: ensure MID can be templated in memberId field of assets without…
JoernBerkefeld May 16, 2024
22f06c8
#1324: handle template-source-not-found more gracefully for asset
JoernBerkefeld May 16, 2024
ee20625
#1324: handle template more gracefully for asset
JoernBerkefeld May 16, 2024
40a77a4
#1324: fix buildDefinition for types with their own subfolder per item
JoernBerkefeld May 16, 2024
976758a
#1324: add templating test for assets: templatebased-emails
JoernBerkefeld May 16, 2024
94317a3
#1324: fix returned path for asset getFilesToCommit
JoernBerkefeld May 16, 2024
a3e87f5
Merge pull request #1328 from Accenture/bug/1324-buildtemplate-for-as…
JoernBerkefeld May 16, 2024
b5fefcc
#1329: add new command <build> that chains buildTemplate and buildDef…
JoernBerkefeld May 16, 2024
a0b2bab
#1329: add test case for new method <build>
JoernBerkefeld May 16, 2024
6218746
#1329: add --metadata support to buildDefinitionBulk
JoernBerkefeld May 16, 2024
730b4bc
#1329: add --bulk mode to <build>
JoernBerkefeld May 16, 2024
90133ad
#1329: add test case for build --bulk
JoernBerkefeld May 16, 2024
2928af9
#1329: add test case for buildTemplate + buildDefinitionBulk
JoernBerkefeld May 16, 2024
190cf68
#1329: fix build --bulk parameter called via CLI
JoernBerkefeld May 16, 2024
81ba6af
Merge pull request #1330 from Accenture/feature/1329-add-new-method-t…
JoernBerkefeld May 16, 2024
fd29b95
#58: normalize cross-type references with r__ for query
JoernBerkefeld May 17, 2024
0604d22
#58: normalize cross-type references with r__ for attributeGroup
JoernBerkefeld May 17, 2024
761add0
#58: normalize cross-type references with r__ for automation
JoernBerkefeld May 17, 2024
8237eb7
#58: normalize cross-type references with r__ for asset
JoernBerkefeld May 17, 2024
915fb73
#58: normalize cross-type references with r__ for journey
JoernBerkefeld May 17, 2024
e5ee9c3
#58: normalize cross-type references with r__ for emailSend
JoernBerkefeld May 17, 2024
4661aa1
#58: normalize cross-type references with r__ for transactionalSMS
JoernBerkefeld May 17, 2024
75a60c1
#58: normalize cross-type references with r__ for transactionalPush
JoernBerkefeld May 17, 2024
94e1cb1
#58: normalize cross-type references with r__ for mobileMessage
JoernBerkefeld May 17, 2024
a76e055
#58: normalize cross-type references with r__ for importFile
JoernBerkefeld May 21, 2024
c1cfaa1
#58: simplify relation attributes to r__TYPE_key and r__TYPE_name and…
JoernBerkefeld May 21, 2024
0b51d56
#58: add missing field definitions
JoernBerkefeld May 21, 2024
a0b49b4
Merge pull request #1333 from Accenture/task/58-rewrite-dependency-va…
JoernBerkefeld May 21, 2024
3e6bf1c
---
dependabot[bot] May 21, 2024
ad939ba
Merge pull request #1338 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld May 21, 2024
9d25e90
---
dependabot[bot] May 21, 2024
9ab6876
Merge pull request #1337 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld May 21, 2024
125dc4a
#0: upgrade minimum node requirement to 18.18.2 to fix an incompatibl…
JoernBerkefeld May 22, 2024
99b85d7
#1248: bump beauty-amp-core2 from 0.4.6 to 0.4.9
JoernBerkefeld May 22, 2024
e30c4ef
#0: improve Downloaded info log for assets
JoernBerkefeld May 22, 2024
b85c2af
#1248: switch html formatting from prettier to beautyAmp extension
JoernBerkefeld May 22, 2024
e589ac5
#1248: adding FiB.beautyAmp to recommended contributor extensions to …
JoernBerkefeld May 22, 2024
ce37d9b
#1248: fix test cases for beauty-amp-core2 0.4.9
JoernBerkefeld May 22, 2024
4fe52ba
#1248: associating html with ampscript to make writing asset-test cas…
JoernBerkefeld May 22, 2024
85a484b
#1248: enhance asset test case to cover ampscript print tags not gett…
JoernBerkefeld May 22, 2024
08a35f7
#1248: configure ampscript file icon for contributors
JoernBerkefeld May 22, 2024
e2876a2
#1248: correct casing of file association for ampscript in boilerplat…
JoernBerkefeld May 22, 2024
49382d6
Merge pull request #1341 from Accenture/bug/1248-max-line-width-break…
JoernBerkefeld May 22, 2024
ab22482
#1332: do not refreshBU on mcdev join
JoernBerkefeld May 22, 2024
12508ff
Merge pull request #1342 from Accenture/bug/1332-mcdev-join-should-no…
JoernBerkefeld May 22, 2024
52a502c
#1110: add typescript as dev dependency to create d.ts file for vsce
JoernBerkefeld May 23, 2024
9477949
#1110: configure that executing tsc should only emit types
JoernBerkefeld May 23, 2024
0f66d70
#1110: auto-create typescript types on commit
JoernBerkefeld May 23, 2024
4725796
#1110: add reference to d.ts file
JoernBerkefeld May 23, 2024
7dd682c
#1110: define types location in package.json > exports
JoernBerkefeld May 23, 2024
740d7a7
#1110: seems to be not relevant for typescript
JoernBerkefeld May 23, 2024
f09203c
#1334: ensure that event is not a permitted type in fixKeys
JoernBerkefeld May 23, 2024
6c7dce2
#1334: add test for event and fixKeys
JoernBerkefeld May 23, 2024
5b5d773
Merge pull request #1345 from Accenture/task/1334-exclude-event-from-…
JoernBerkefeld May 23, 2024
b0ef75e
Merge branch 'main' into develop
JoernBerkefeld May 23, 2024
5fade72
Merge branch 'develop' into feature/1270-add-method-replacereference-…
JoernBerkefeld May 23, 2024
1987f5a
#1270: extract preheader code into html file to make parsing easier
JoernBerkefeld May 23, 2024
4fbfd39
Merge branch 'develop' into task/1110-add-typescript-support-via-auto…
JoernBerkefeld May 24, 2024
390266d
#1270: ensure typing is offered for deeper classes as well
JoernBerkefeld May 24, 2024
0976359
Merge pull request #1344 from Accenture/task/1110-add-typescript-supp…
JoernBerkefeld May 27, 2024
d1e4aa7
Merge branch 'develop' into feature/1270-add-method-replacereference-…
JoernBerkefeld May 27, 2024
c3f400c
Bump eslint-plugin-jsdoc from 48.2.5 to 48.2.6
dependabot[bot] May 27, 2024
f66dcf2
Merge pull request #1347 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld May 28, 2024
e3d46f3
Bump lint-staged from 15.2.2 to 15.2.5
dependabot[bot] May 28, 2024
04a7ff4
Merge pull request #1348 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld May 28, 2024
544d03c
---
dependabot[bot] May 28, 2024
66bac4f
#0: eslint --fix for unicorn:prefer-string-raw
JoernBerkefeld May 28, 2024
995316d
#0: streamline and make more reliable lint & lint:fix
JoernBerkefeld May 28, 2024
bb9de89
#0: manual eslint fixes for unicorn/prefer-structured-clone
JoernBerkefeld May 28, 2024
0b20427
#0: manual eslint fixes for unicorn/prefer-structured-clone
JoernBerkefeld May 28, 2024
074b833
Merge pull request #1336 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld May 28, 2024
50e48d8
#1350: switch from fixed node-version to whatever is set in package.j…
JoernBerkefeld May 29, 2024
cce7d51
#1350: make sure we test with minimal node version (18.18.2 at the mo…
JoernBerkefeld May 29, 2024
bb41725
#1350: also add a test run in node v19
JoernBerkefeld May 29, 2024
db9fe27
#1350: replace chai-files > file with await fs.fileRead() to workarou…
JoernBerkefeld May 29, 2024
ec7dffa
#1350: fix ...to.not.exit tests
JoernBerkefeld May 29, 2024
c8f40d0
#1350: replace fs....Sync() methods with async versions to workaround…
JoernBerkefeld May 31, 2024
8d7bd42
Merge pull request #1351 from Accenture/task/1350-upgrade-workflows-t…
JoernBerkefeld May 31, 2024
1c7d051
Merge branch 'develop' into feature/1270-add-method-replacereference-…
JoernBerkefeld May 31, 2024
8d20e89
#1270: refactoring to allow saving without additional processing
JoernBerkefeld Jun 2, 2024
5699437
#1270: baseline solution code for replacing content block references
JoernBerkefeld Jun 2, 2024
b06cb02
#1270: rcb for script
JoernBerkefeld Jun 2, 2024
29a6be3
#1270: save-guard development version of rcb base code
JoernBerkefeld Jun 2, 2024
da71779
#1270: refactoring to have less code in type specific method
JoernBerkefeld Jun 2, 2024
07bf392
#1270: rcb for triggeredSend
JoernBerkefeld Jun 2, 2024
b3cd1ca
#1270: find/replace contentBlockById(...) with id passed in without q…
JoernBerkefeld Jun 2, 2024
733eaa2
#1270: refactoring & improved error handling
JoernBerkefeld Jun 2, 2024
7986062
#1270: rcb for senderProfile
JoernBerkefeld Jun 2, 2024
fe12c3d
#1270: improve error handling
JoernBerkefeld Jun 2, 2024
fab55ec
#0: chores
JoernBerkefeld Jun 2, 2024
25fcca2
#1270: rcb support for journey
JoernBerkefeld Jun 2, 2024
473c970
#1270: improve error handling
JoernBerkefeld Jun 2, 2024
88660ea
#1270: async fix
JoernBerkefeld Jun 2, 2024
2ce42c9
#1270: rcb support for asset
JoernBerkefeld Jun 2, 2024
2488fd6
#1270: tests fixed for preheader extraction / 1987f5a2f8547ca6efe20dd…
JoernBerkefeld Jun 2, 2024
744b0fc
#1270: ensure Asset.retrieve() returns the extended json and not just…
JoernBerkefeld Jun 2, 2024
e67fb49
#1270: prevent saving in loop for type asset as thats done in Asset.r…
JoernBerkefeld Jun 2, 2024
7e73522
#1270: include shared assets in assetCacheMap for reference replacements
JoernBerkefeld Jun 2, 2024
0f86f2f
#1270: handle folder-not-found situation
JoernBerkefeld Jun 2, 2024
56f9252
#1238: improve readability of resolveId reponse; include ContentBlock…
JoernBerkefeld Jun 2, 2024
db51b07
#1270: fix end-of-file line break regression
JoernBerkefeld Jun 2, 2024
50f7dff
#0: disable error code debugging message
JoernBerkefeld Jun 2, 2024
b2f3685
#1270: add skipRetrieve, skipDeploy and refresh options to replaceCon…
JoernBerkefeld Jun 2, 2024
c2a4efb
#1270: improve log output
JoernBerkefeld Jun 2, 2024
3d77472
Bump eslint-plugin-jsdoc from 48.2.6 to 48.2.7
dependabot[bot] Jun 3, 2024
1bc6fc0
Merge pull request #1355 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld Jun 4, 2024
6ab5503
Bump prettier from 3.2.5 to 3.3.0
dependabot[bot] Jun 4, 2024
bef1914
Merge pull request #1354 from Accenture/dependabot/npm_and_yarn/devel…
JoernBerkefeld Jun 4, 2024
40899c7
#1270: extract text-version of html email into external file and chan…
JoernBerkefeld Jun 5, 2024
d02f08e
#1270: fox Prototype-polluting assignment warning
JoernBerkefeld Jun 6, 2024
2cebec1
#1270: fix ts warning
JoernBerkefeld Jun 6, 2024
cc1d882
#1270: improve typing
JoernBerkefeld Jun 6, 2024
0120428
#1270: add test case for rcb script
JoernBerkefeld Jun 6, 2024
e84be64
#1270: fix existing script tests for changes introduced by rcb
JoernBerkefeld Jun 6, 2024
5aa5cfe
Merge branch 'develop' into feature/1270-add-method-replacereference-…
JoernBerkefeld Jun 6, 2024
998c4fc
#1270: add tests for rcb asset
JoernBerkefeld Jun 6, 2024
671ab19
#1270: add tests for rcb senderProfile
JoernBerkefeld Jun 6, 2024
031cdc5
#0: fix bad folder id for dataExtension test data
JoernBerkefeld Jun 6, 2024
d008674
#1270: clarify that buildTemplate and buildDefinition can be used wit…
JoernBerkefeld Jun 6, 2024
8cd93ed
#1270: add tests for rcb triggeredSend
JoernBerkefeld Jun 6, 2024
448865a
#1270: add tests for rcb journey
JoernBerkefeld Jun 6, 2024
229e1db
#1270: add test for multi-type rcb run
JoernBerkefeld Jun 7, 2024
6d137df
#1270: allow running rcb without --metadata option
JoernBerkefeld Jun 7, 2024
8b38051
#1270: add no-type-specified test for rcb
JoernBerkefeld Jun 7, 2024
9b49442
#1270 code comments
JoernBerkefeld Jun 7, 2024
dd97295
#1270: fix rcb tests for assets
JoernBerkefeld Jun 7, 2024
c59b169
Merge pull request #1353 from Accenture/feature/1270-add-method-repla…
JoernBerkefeld Jun 7, 2024
f9dd76f
#0: npm audit fix bumped follow-redirects from 1.15.4 to 1.15.6
JoernBerkefeld Jun 7, 2024
e952477
7.0.0
JoernBerkefeld Jun 7, 2024
2aa7736
#0: prep for 7.0.0 release
JoernBerkefeld Jun 7, 2024
5733acc
#0: improve release template
JoernBerkefeld Jun 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#1270: add tests for rcb triggeredSend
JoernBerkefeld committed Jun 6, 2024
commit 8cd93ed585974169abebc3eb30579ac03e2188a0
29 changes: 29 additions & 0 deletions test/resources/9999999/triggeredSend/get-rcb-id-expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"AllowedSlots": 0,
"AutoAddSubscribers": false,
"AutoUpdateSubscribers": false,
"BatchInterval": 0,
"BccEmail": "",
"CreatedDate": "2018-06-25T05:58:00",
"CustomerKey": "testExisting_triggeredSend_rcb",
"Description": "Unsubscribe_Email",
"DynamicEmailSubject": "%%= ContentBlockById(1295064) =%%",
"EmailSubject": "%%= ContentBlockById(1295064) =%%",
"FromAddress": "%%= ContentBlockById(1295064) =%%",
"FromName": "%%= ContentBlockById(1295064) =%%",
"IsMultipart": false,
"IsWrapped": true,
"Keyword": "",
"ModifiedDate": "2018-06-25T05:58:00",
"Name": "testExisting_triggeredSend_rcb",
"NewSlotTrigger": 0,
"c__priority": "Medium",
"SuppressTracking": false,
"TriggeredSendStatus": "New",
"TriggeredSendType": "Continuous",
"r__asset_key": "testExisting_asset_message",
"r__asset_name_readOnly": "testExisting_asset_message",
"r__folder_Path": "Triggered Sends",
"r__sendClassification_key": "testExisting_sendClassification",
"r__senderProfile_key": "testExisting_senderProfile_rcb"
}
29 changes: 29 additions & 0 deletions test/resources/9999999/triggeredSend/get-rcb-key-expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"AllowedSlots": 0,
"AutoAddSubscribers": false,
"AutoUpdateSubscribers": false,
"BatchInterval": 0,
"BccEmail": "",
"CreatedDate": "2018-06-25T05:58:00",
"CustomerKey": "testExisting_triggeredSend_rcb",
"Description": "Unsubscribe_Email",
"DynamicEmailSubject": "%%= ContentBlockByKey(\"mcdev-issue-1157\") =%%",
"EmailSubject": "%%= ContentBlockByKey(\"mcdev-issue-1157\") =%%",
"FromAddress": "%%= ContentBlockByKey(\"mcdev-issue-1157\") =%%",
"FromName": "%%= ContentBlockByKey(\"mcdev-issue-1157\") =%%",
"IsMultipart": false,
"IsWrapped": true,
"Keyword": "",
"ModifiedDate": "2018-06-25T05:58:00",
"Name": "testExisting_triggeredSend_rcb",
"NewSlotTrigger": 0,
"c__priority": "Medium",
"SuppressTracking": false,
"TriggeredSendStatus": "New",
"TriggeredSendType": "Continuous",
"r__asset_key": "testExisting_asset_message",
"r__asset_name_readOnly": "testExisting_asset_message",
"r__folder_Path": "Triggered Sends",
"r__sendClassification_key": "testExisting_sendClassification",
"r__senderProfile_key": "testExisting_senderProfile_rcb"
}
29 changes: 29 additions & 0 deletions test/resources/9999999/triggeredSend/get-rcb-name-expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"AllowedSlots": 0,
"AutoAddSubscribers": false,
"AutoUpdateSubscribers": false,
"BatchInterval": 0,
"BccEmail": "",
"CreatedDate": "2018-06-25T05:58:00",
"CustomerKey": "testExisting_triggeredSend_rcb",
"Description": "Unsubscribe_Email",
"DynamicEmailSubject": "%%= ContentBlockByName(\"Content Builder\\dont strip non ssjs content\") =%%",
"EmailSubject": "%%= ContentBlockByName(\"Content Builder\\dont strip non ssjs content\") =%%",
"FromAddress": "%%= ContentBlockByName(\"Content Builder\\dont strip non ssjs content\") =%%",
"FromName": "%%= ContentBlockByName(\"Content Builder\\dont strip non ssjs content\") =%%",
"IsMultipart": false,
"IsWrapped": true,
"Keyword": "",
"ModifiedDate": "2018-06-25T05:58:00",
"Name": "testExisting_triggeredSend_rcb",
"NewSlotTrigger": 0,
"c__priority": "Medium",
"SuppressTracking": false,
"TriggeredSendStatus": "New",
"TriggeredSendType": "Continuous",
"r__asset_key": "testExisting_asset_message",
"r__asset_name_readOnly": "testExisting_asset_message",
"r__folder_Path": "Triggered Sends",
"r__sendClassification_key": "testExisting_sendClassification",
"r__senderProfile_key": "testExisting_senderProfile_rcb"
}
Original file line number Diff line number Diff line change
@@ -68,6 +68,53 @@
<NewSlotTrigger>0</NewSlotTrigger>
<Priority>4</Priority>
</Results>
<Results xsi:type="TriggeredSendDefinition">
<PartnerKey xsi:nil="true" />
<PartnerProperties>
<Name>TestEmailAddr</Name>
<Value />
</PartnerProperties>
<CreatedDate>2018-06-25T05:58:00</CreatedDate>
<ModifiedDate>2018-06-25T05:58:00</ModifiedDate>
<ObjectID>b3150cf0-6e78-e811-80d4-1402ec721c9d</ObjectID>
<CustomerKey>testExisting_triggeredSend_rcb</CustomerKey>
<IsPlatformObject>false</IsPlatformObject>
<Name>testExisting_triggeredSend_rcb</Name>
<Description>Unsubscribe_Email</Description>
<Keyword />
<CategoryID>89348</CategoryID>
<SendClassification>
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<CustomerKey>testExisting_sendClassification</CustomerKey>
</SendClassification>
<SenderProfile>
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<CustomerKey>testExisting_senderProfile_rcb</CustomerKey>
</SenderProfile>
<FromName>%%= ContentBlockByName("Content Builder\dont strip non ssjs content") =%%</FromName>
<FromAddress>%%= ContentBlockByKey("mcdev-issue-1157") =%%</FromAddress>
<SuppressTracking>false</SuppressTracking>
<TriggeredSendType>Continuous</TriggeredSendType>
<TriggeredSendStatus>New</TriggeredSendStatus>
<Email>
<PartnerKey xsi:nil="true" />
<ID>531213</ID>
<ObjectID xsi:nil="true" />
</Email>
<AutoAddSubscribers>false</AutoAddSubscribers>
<AutoUpdateSubscribers>false</AutoUpdateSubscribers>
<BatchInterval>0</BatchInterval>
<BccEmail />
<EmailSubject>%%= ContentBlockById(1295064) =%%</EmailSubject>
<DynamicEmailSubject>%%= ContentBlockById(1295064) =%%</DynamicEmailSubject>
<IsMultipart>false</IsMultipart>
<IsWrapped>true</IsWrapped>
<AllowedSlots>0</AllowedSlots>
<NewSlotTrigger>0</NewSlotTrigger>
<Priority>4</Priority>
</Results>
</RetrieveResponseMsg>
</soap:Body>
</soap:Envelope>
115 changes: 112 additions & 3 deletions test/type.triggeredSend.test.js
Original file line number Diff line number Diff line change
@@ -26,8 +26,8 @@ describe('type: triggeredSend', () => {
const result = cache.getCache();
assert.equal(
result.triggeredSend ? Object.keys(result.triggeredSend).length : 0,
1,
'only one triggeredSend expected'
2,
'only 2 triggeredSend expected'
);
assert.deepEqual(
await testUtils.getActualJson('testExisting_triggeredSend', 'triggeredSend'),
@@ -57,7 +57,7 @@ describe('type: triggeredSend', () => {
const result = cache.getCache();
assert.equal(
result.triggeredSend ? Object.keys(result.triggeredSend).length : 0,
2,
3,
'two triggeredSends expected'
);
// confirm created item
@@ -156,4 +156,113 @@ describe('type: triggeredSend', () => {
describe('Pause ================', () => {
it('Should pause a triggeredSend by key');
});

describe('ReplaceContentBlockByX ================', () => {
it('Should replace references with ContentBlockByName w/o deploy', async () => {
handler.setOptions({ skipDeploy: true });

// WHEN
const replace = await handler.replaceCbReference(
'testInstance/testBU',
{
triggeredSend: null,
},
'name'
);
// THEN
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
// retrieve result
assert.deepEqual(
replace['testInstance/testBU'].triggeredSend,
['testExisting_triggeredSend_rcb'],
'should have found the right triggeredSends that need updating'
);

// check if conversions happened
// check if conversions happened
assert.deepEqual(
await testUtils.getActualJson('testExisting_triggeredSend_rcb', 'triggeredSend'),
await testUtils.getExpectedJson('9999999', 'triggeredSend', 'get-rcb-name'),
'returned JSON was not equal expected'
);

assert.equal(
testUtils.getAPIHistoryLength(),
24,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
});

it('Should replace references with ContentBlockById w/o deploy', async () => {
handler.setOptions({ skipDeploy: true });

// WHEN
const replace = await handler.replaceCbReference(
'testInstance/testBU',
{
triggeredSend: null,
},
'id'
);
// THEN
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
// retrieve result
assert.deepEqual(
replace['testInstance/testBU'].triggeredSend,
['testExisting_triggeredSend_rcb'],
'should have found the right triggeredSends that need updating'
);

// check if conversions happened
// check if conversions happened
assert.deepEqual(
await testUtils.getActualJson('testExisting_triggeredSend_rcb', 'triggeredSend'),
await testUtils.getExpectedJson('9999999', 'triggeredSend', 'get-rcb-id'),
'returned JSON was not equal expected'
);

assert.equal(
testUtils.getAPIHistoryLength(),
24,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
});

it('Should replace references with ContentBlockByKey w/o deploy', async () => {
handler.setOptions({ skipDeploy: true });

// WHEN
const replace = await handler.replaceCbReference(
'testInstance/testBU',
{
triggeredSend: null,
},
'key'
);
// THEN
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
// retrieve result
assert.deepEqual(
replace['testInstance/testBU'].triggeredSend,
['testExisting_triggeredSend_rcb'],
'should have found the right assets that need updating'
);

// check if conversions happened
assert.deepEqual(
await testUtils.getActualJson('testExisting_triggeredSend_rcb', 'triggeredSend'),
await testUtils.getExpectedJson('9999999', 'triggeredSend', 'get-rcb-key'),
'returned JSON was not equal expected'
);

assert.equal(
testUtils.getAPIHistoryLength(),
24,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
});
});
});