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
Show file tree
Hide file tree
Changes from all commits
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .beautyamp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"ampscript": {
"capitalizeAndOrNot": true,
"capitalizeIfFor": true,
"capitalizeSet": true,
"capitalizeVar": true,
"maxParametersPerLine": 4
},
"editor": {
"insertSpaces": true,
"tabSize": 4
}
}
8 changes: 7 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"root": true,
"settings": {
"jsdoc": {
"mode": "jsdoc",
"mode": "typescript",
"preferredTypes": {
"array": "Array",
"array.<>": "[]",
Expand All @@ -33,6 +33,10 @@
"object.<>": "Object.<>",
"object<>": "Object.<>",
"Object<>": "Object.<>",
"set": "Set",
"set.<>": "Set.<>",
"set<>": "Set.<>",
"Set<>": "Set.<>",
"promise": "Promise",
"promise.<>": "Promise.<>",
"promise<>": "Promise.<>",
Expand Down Expand Up @@ -84,6 +88,8 @@
],
"jsdoc/require-param-type": "error",
"jsdoc/tag-lines": ["warn", "any", { "startLines": 1 }],
"jsdoc/no-undefined-types": "error",
"valid-jsdoc": "off",
"spaced-comment": ["warn", "always", { "block": { "exceptions": ["*"], "balanced": true } }]
},
"overrides": [
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ body:
label: Version
description: What version of our software are you running? (mcdev --version)
options:
- 7.0.0
- 6.0.2
- 6.0.1
- 6.0.0
Expand Down
8 changes: 7 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE/pr_template_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

## Checklist

### Before merge

- [ ] Wiki updated with info in ticket listed under **Documentation**
- [ ] ran `npm audit fix`
- [ ] ran `npm run lint:fix`
- [ ] ran `npm run version:major/minor/patch`
- [ ] updated [bug template](/.github/ISSUE_TEMPLATE/bug.yml) to include the new version
- [ ] updated [.mcdevrc](/test/mockRoot/.mcdevrc.json) for tests to the new version
- [ ] (after merge) moved version tag to merge commit & pushed to remote

### After merge

- [ ] merged all dependabot PRs to main branch
- [ ] moved version tag to merge commit & pushed to remote
- [ ] closed GitHub milestone
- [ ] created [new GitHub Release](https://github.com/Accenture/sfmc-devtools/releases/new)

Expand Down
54 changes: 51 additions & 3 deletions .github/workflows/code-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
branches: [main, develop, hotfix]

jobs:
testAndCoverage:
name: lint & test
lintandTest18:
name: lint & test w/ node v18
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -24,7 +24,55 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18.18.2
registry-url: https://registry.npmjs.org/

- run: npm ci --ignore-scripts

- run: npm run lint

# Assuming code passes, run tests
- name: Run mcdev-tests
run: npm run test
lintandTest19:
name: lint & test w/ node v19
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 19
registry-url: https://registry.npmjs.org/

- run: npm ci --ignore-scripts

- run: npm run lint

# Assuming code passes, run tests
- name: Run mcdev-tests
run: npm run test
lintandTest20:
name: lint & test w/ node v20
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- run: npm ci --ignore-scripts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage-develop-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: ./package.json

- run: npm ci --ignore-scripts

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage-main-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: ./package.json

- run: npm ci --ignore-scripts

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: ./package.json

- run: npm ci --ignore-scripts

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: ./package.json

- run: npm ci
- run: npm test

Expand All @@ -25,7 +26,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: ./package.json
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
Expand Down
2 changes: 0 additions & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
INPUT_FILE=$1
START_LINE=`head -n1 $INPUT_FILE`
PATTERN="^(#[[:digit:]]|Merge|Revert)"
Expand Down
3 changes: 0 additions & 3 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# ### git commit message template ###
git config commit.template .git/templatemessage
TICKETID=`git rev-parse --abbrev-ref HEAD | LC_ALL=en_US.utf8 grep -oP '^((feature|bug|bugfix|fix|hotfix|task|chore)\/)?\K\d{1,7}' || true`
Expand Down
9 changes: 2 additions & 7 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#!/bin/sh
# ### run npm install ###
. "$(dirname "$0")/_/husky.sh"


echo "[POST-MERGE] 📦 Checking for changes to dependencies"

IFS=$'\n'
# extract all paths to package-lock.json files
# extract all paths to package-lock.json files
PACKAGE_LOCK_REGEX="(^package-lock\.json)"
PACKAGES=$(git diff --name-only HEAD^1 HEAD | grep -E $PACKAGE_LOCK_REGEX || true)

Expand All @@ -19,4 +14,4 @@ if [[ ${PACKAGES[@]} ]]; then
npm run lint:fix
else
echo "📦 All packages up-to-date. No need to run npm install."
fi
fi
10 changes: 5 additions & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run docs
git update-index --add docs/dist/documentation.md
# run lint-staged hooks
npx --no lint-staged

# update typescript type declarations
npx tsc
git add @types
8 changes: 0 additions & 8 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@
"options": {
"tabWidth": 2
}
},
{
"files": "*.sql",
"options": {
"formatter": "sql-formatter",
"language": "tsql",
"keywordCase": "upper"
}
}
]
}
2 changes: 2 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// Formatting & colors
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"xnerd.ampscript-language",
"FiB.beautyAmp",

// mcdev tests
"hbenl.vscode-mocha-test-adapter",
Expand Down
18 changes: 15 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
},
"editor.formatOnSave": true,
"files.associations": {
"*.ssjs": "javascript"
"*.ssjs": "javascript",
"*.html": "ampscript"
},
"files.eol": "\n",
"js/ts.implicitProjectConfig.checkJs": true,
"javascript.validate.enable": false,
"javascript.validate.enable": true,
"markdown.extension.italic.indicator": "_",
"markdown.extension.list.indentationSize": "adaptive",
"markdown.extension.toc.levels": "2..6",
Expand All @@ -19,7 +20,7 @@
"sql-formatter.indent": " ",
"sql-formatter.uppercase": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "FiB.beautyAmp"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand Down Expand Up @@ -56,5 +57,16 @@
"label": "Created By Me",
"query": "author:${user} state:open repo:${owner}/${repository} sort:created-desc"
}
],
"vsicons.associations.files": [
{
"icon": "apex",
"languages": [
{ "ids": "ampscript", "defaultExtension": "amp" },
{ "ids": "AMPscript", "defaultExtension": "amp" }
],
"light": true,
"format": "FileFormat.svg"
}
]
}
97 changes: 97 additions & 0 deletions @types/lib/Builder.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
export default Builder;
export type BuObject = import('../types/mcdev.d.js').BuObject;
export type CodeExtract = import('../types/mcdev.d.js').CodeExtract;
export type CodeExtractItem = import('../types/mcdev.d.js').CodeExtractItem;
export type Mcdevrc = import('../types/mcdev.d.js').Mcdevrc;
export type MetadataTypeItem = import('../types/mcdev.d.js').MetadataTypeItem;
export type MetadataTypeItemDiff = import('../types/mcdev.d.js').MetadataTypeItemDiff;
export type MetadataTypeItemObj = import('../types/mcdev.d.js').MetadataTypeItemObj;
export type MetadataTypeMap = import('../types/mcdev.d.js').MetadataTypeMap;
export type MetadataTypeMapObj = import('../types/mcdev.d.js').MetadataTypeMapObj;
export type MultiMetadataTypeList = import('../types/mcdev.d.js').MultiMetadataTypeList;
export type SoapRequestParams = import('../types/mcdev.d.js').SoapRequestParams;
export type TemplateMap = import('../types/mcdev.d.js').TemplateMap;
/**
* @typedef {import('../types/mcdev.d.js').BuObject} BuObject
* @typedef {import('../types/mcdev.d.js').CodeExtract} CodeExtract
* @typedef {import('../types/mcdev.d.js').CodeExtractItem} CodeExtractItem
* @typedef {import('../types/mcdev.d.js').Mcdevrc} Mcdevrc
* @typedef {import('../types/mcdev.d.js').MetadataTypeItem} MetadataTypeItem
* @typedef {import('../types/mcdev.d.js').MetadataTypeItemDiff} MetadataTypeItemDiff
* @typedef {import('../types/mcdev.d.js').MetadataTypeItemObj} MetadataTypeItemObj
* @typedef {import('../types/mcdev.d.js').MetadataTypeMap} MetadataTypeMap
* @typedef {import('../types/mcdev.d.js').MetadataTypeMapObj} MetadataTypeMapObj
* @typedef {import('../types/mcdev.d.js').MultiMetadataTypeList} MultiMetadataTypeList
* @typedef {import('../types/mcdev.d.js').SoapRequestParams} SoapRequestParams
* @typedef {import('../types/mcdev.d.js').TemplateMap} TemplateMap
*/
/**
* Builds metadata from a template using market specific customisation
*/
declare class Builder {
/**
* Build a template based on a list of metadata files in the retrieve folder.
*
* @param {string} businessUnit references credentials from properties.json
* @param {string} selectedType supported metadata type
* @param {string[]} keyArr customerkey of the metadata
* @param {string} market market localizations
* @returns {Promise.<MultiMetadataTypeList>} -
*/
static buildTemplate(businessUnit: string, selectedType: string, keyArr: string[], market: string): Promise<MultiMetadataTypeList>;
/**
* Build a specific metadata file based on a template.
*
* @param {string} businessUnit references credentials from properties.json
* @param {string} selectedType supported metadata type
* @param {string[]} nameArr name of the metadata
* @param {string} market market localizations
* @returns {Promise.<MultiMetadataTypeList>} -
*/
static buildDefinition(businessUnit: string, selectedType: string, nameArr: string[], market: string): Promise<MultiMetadataTypeList>;
/**
* Build a specific metadata file based on a template using a list of bu-market combos
*
* @param {string} listName name of list of BU-market combos
* @param {string} type supported metadata type
* @param {string[]} nameArr name of the metadata
* @returns {Promise.<object>} -
*/
static buildDefinitionBulk(listName: string, type: string, nameArr: string[]): Promise<object>;
/**
* Creates a Builder, uses v2 auth if v2AuthOptions are passed.
*
* @param {Mcdevrc} properties properties for auth
saved
* @param {BuObject} buObject properties for auth
*/
constructor(properties: Mcdevrc, buObject: BuObject);
properties: import("../types/mcdev.d.js").Mcdevrc;
templateDir: string;
retrieveDir: any;
buObject: import("../types/mcdev.d.js").BuObject;
targetDir: string[];
/**
* @type {MultiMetadataTypeList}
*/
metadata: MultiMetadataTypeList;
/**
* Builds a specific metadata file by name
*
* @param {string} metadataType metadata type to build
* @param {string[]} nameArr name of metadata to build
* @param {TemplateMap} templateVariables variables to be replaced in the metadata
* @returns {Promise.<MultiMetadataTypeList>} Promise
*/
_buildDefinition(metadataType: string, nameArr: string[], templateVariables: TemplateMap): Promise<MultiMetadataTypeList>;
/**
* Build a template based on a list of metadata files in the retrieve folder.
*
* @param {string} metadataType metadata type to create a template of
* @param {string[]} keyArr customerkey of metadata to create a template of
* @param {TemplateMap} templateVariables variables to be replaced in the metadata
* @returns {Promise.<MultiMetadataTypeList>} Promise
*/
_buildTemplate(metadataType: string, keyArr: string[], templateVariables: TemplateMap): Promise<MultiMetadataTypeList>;
}
//# sourceMappingURL=Builder.d.ts.map
1 change: 1 addition & 0 deletions @types/lib/Builder.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading