mcdev 7.0.3 → 7.1.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/.github/ISSUE_TEMPLATE/bug.yml +2 -0
- package/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md +1 -0
- package/.github/workflows/code-test.yml +48 -0
- package/.husky/post-checkout +1 -1
- package/.husky/post-merge +7 -1
- package/.husky/pre-commit +3 -1
- package/@types/lib/Builder.d.ts +13 -13
- package/@types/lib/Builder.d.ts.map +1 -1
- package/@types/lib/Deployer.d.ts +19 -16
- package/@types/lib/Deployer.d.ts.map +1 -1
- package/@types/lib/Retriever.d.ts +15 -15
- package/@types/lib/Retriever.d.ts.map +1 -1
- package/@types/lib/cli.d.ts +1 -1
- package/@types/lib/cli.d.ts.map +1 -1
- package/@types/lib/index.d.ts +102 -51
- package/@types/lib/index.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Asset.d.ts +71 -59
- package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
- package/@types/lib/metadataTypes/AttributeGroup.d.ts +6 -8
- package/@types/lib/metadataTypes/AttributeGroup.d.ts.map +1 -1
- package/@types/lib/metadataTypes/AttributeSet.d.ts +10 -21
- package/@types/lib/metadataTypes/AttributeSet.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Automation.d.ts +47 -49
- package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Campaign.d.ts +12 -18
- package/@types/lib/metadataTypes/Campaign.d.ts.map +1 -1
- package/@types/lib/metadataTypes/ContentArea.d.ts +13 -31
- package/@types/lib/metadataTypes/ContentArea.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtension.d.ts +28 -33
- package/@types/lib/metadataTypes/DataExtension.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtensionField.d.ts +15 -22
- package/@types/lib/metadataTypes/DataExtensionField.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtensionTemplate.d.ts +12 -11
- package/@types/lib/metadataTypes/DataExtensionTemplate.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtract.d.ts +13 -28
- package/@types/lib/metadataTypes/DataExtract.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtractType.d.ts +11 -10
- package/@types/lib/metadataTypes/DataExtractType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DeliveryProfile.d.ts +11 -10
- package/@types/lib/metadataTypes/DeliveryProfile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Discovery.d.ts +11 -10
- package/@types/lib/metadataTypes/Discovery.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Email.d.ts +14 -34
- package/@types/lib/metadataTypes/Email.d.ts.map +1 -1
- package/@types/lib/metadataTypes/EmailSend.d.ts +18 -10
- package/@types/lib/metadataTypes/EmailSend.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Event.d.ts +22 -16
- package/@types/lib/metadataTypes/Event.d.ts.map +1 -1
- package/@types/lib/metadataTypes/FileLocation.d.ts +11 -10
- package/@types/lib/metadataTypes/FileLocation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/FileTransfer.d.ts +12 -18
- package/@types/lib/metadataTypes/FileTransfer.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Filter.d.ts +11 -10
- package/@types/lib/metadataTypes/Filter.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Folder.d.ts +49 -35
- package/@types/lib/metadataTypes/Folder.d.ts.map +1 -1
- package/@types/lib/metadataTypes/ImportFile.d.ts +16 -15
- package/@types/lib/metadataTypes/ImportFile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Journey.d.ts +55 -35
- package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
- package/@types/lib/metadataTypes/List.d.ts +13 -12
- package/@types/lib/metadataTypes/List.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MetadataType.d.ts +73 -26
- package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileCode.d.ts +12 -20
- package/@types/lib/metadataTypes/MobileCode.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileKeyword.d.ts +23 -14
- package/@types/lib/metadataTypes/MobileKeyword.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileMessage.d.ts +18 -42
- package/@types/lib/metadataTypes/MobileMessage.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Query.d.ts +15 -12
- package/@types/lib/metadataTypes/Query.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Role.d.ts +12 -11
- package/@types/lib/metadataTypes/Role.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Script.d.ts +18 -25
- package/@types/lib/metadataTypes/Script.d.ts.map +1 -1
- package/@types/lib/metadataTypes/SendClassification.d.ts +13 -10
- package/@types/lib/metadataTypes/SendClassification.d.ts.map +1 -1
- package/@types/lib/metadataTypes/SenderProfile.d.ts +12 -25
- package/@types/lib/metadataTypes/SenderProfile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TransactionalEmail.d.ts +18 -12
- package/@types/lib/metadataTypes/TransactionalEmail.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TransactionalMessage.d.ts +12 -32
- package/@types/lib/metadataTypes/TransactionalMessage.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TransactionalPush.d.ts +15 -21
- package/@types/lib/metadataTypes/TransactionalPush.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TransactionalSMS.d.ts +16 -18
- package/@types/lib/metadataTypes/TransactionalSMS.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TriggeredSend.d.ts +19 -24
- package/@types/lib/metadataTypes/TriggeredSend.d.ts.map +1 -1
- package/@types/lib/metadataTypes/User.d.ts +23 -40
- package/@types/lib/metadataTypes/User.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Verification.d.ts +16 -13
- package/@types/lib/metadataTypes/Verification.d.ts.map +1 -1
- package/@types/lib/metadataTypes/definitions/Asset.definition.d.ts +24 -14
- package/@types/lib/metadataTypes/definitions/AttributeGroup.definition.d.ts +3 -0
- package/@types/lib/metadataTypes/definitions/AttributeSet.definition.d.ts +5 -0
- package/@types/lib/metadataTypes/definitions/Automation.definition.d.ts +16 -0
- package/@types/lib/metadataTypes/definitions/Campaign.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/ContentArea.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DataExtension.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DataExtensionField.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DataExtensionTemplate.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DataExtract.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DataExtractType.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DeliveryProfile.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/Discovery.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/Email.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/EmailSend.definition.d.ts +8 -0
- package/@types/lib/metadataTypes/definitions/Event.definition.d.ts +10 -1
- package/@types/lib/metadataTypes/definitions/FileLocation.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/FileTransfer.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/Filter.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/Folder.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/ImportFile.definition.d.ts +5 -0
- package/@types/lib/metadataTypes/definitions/Journey.definition.d.ts +13 -0
- package/@types/lib/metadataTypes/definitions/List.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/MobileCode.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/MobileKeyword.definition.d.ts +9 -0
- package/@types/lib/metadataTypes/definitions/MobileMessage.definition.d.ts +4 -0
- package/@types/lib/metadataTypes/definitions/Query.definition.d.ts +3 -0
- package/@types/lib/metadataTypes/definitions/Role.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/Script.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/SendClassification.definition.d.ts +3 -0
- package/@types/lib/metadataTypes/definitions/SenderProfile.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/TransactionalEmail.definition.d.ts +6 -0
- package/@types/lib/metadataTypes/definitions/TransactionalMessage.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/TransactionalPush.definition.d.ts +3 -0
- package/@types/lib/metadataTypes/definitions/TransactionalSMS.definition.d.ts +4 -0
- package/@types/lib/metadataTypes/definitions/TriggeredSend.definition.d.ts +6 -0
- package/@types/lib/metadataTypes/definitions/User.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/Verification.definition.d.ts +3 -0
- package/@types/lib/util/auth.d.ts +19 -18
- package/@types/lib/util/auth.d.ts.map +1 -1
- package/@types/lib/util/businessUnit.d.ts +17 -17
- package/@types/lib/util/businessUnit.d.ts.map +1 -1
- package/@types/lib/util/cache.d.ts +34 -32
- package/@types/lib/util/cache.d.ts.map +1 -1
- package/@types/lib/util/cli.d.ts +30 -33
- package/@types/lib/util/cli.d.ts.map +1 -1
- package/@types/lib/util/config.d.ts +20 -20
- package/@types/lib/util/config.d.ts.map +1 -1
- package/@types/lib/util/devops.d.ts +21 -21
- package/@types/lib/util/devops.d.ts.map +1 -1
- package/@types/lib/util/file.d.ts +179 -18
- package/@types/lib/util/file.d.ts.map +1 -1
- package/@types/lib/util/init.config.d.ts +19 -19
- package/@types/lib/util/init.config.d.ts.map +1 -1
- package/@types/lib/util/init.d.ts +20 -20
- package/@types/lib/util/init.d.ts.map +1 -1
- package/@types/lib/util/init.git.d.ts +2 -2
- package/@types/lib/util/init.git.d.ts.map +1 -1
- package/@types/lib/util/init.npm.d.ts +2 -2
- package/@types/lib/util/init.npm.d.ts.map +1 -1
- package/@types/lib/util/replaceContentBlockReference.d.ts +55 -32
- package/@types/lib/util/replaceContentBlockReference.d.ts.map +1 -1
- package/@types/lib/util/util.d.ts +64 -39
- package/@types/lib/util/util.d.ts.map +1 -1
- package/@types/types/mcdev.d.d.ts +160 -52
- package/@types/types/mcdev.d.d.ts.map +1 -1
- package/boilerplate/files/.vscode/settings.json +1 -0
- package/boilerplate/forcedUpdates.json +4 -0
- package/boilerplate/gitignore-template +0 -1
- package/eslint.config.js +0 -1
- package/lib/Builder.js +13 -8
- package/lib/Deployer.js +13 -8
- package/lib/Retriever.js +4 -1
- package/lib/cli.js +384 -288
- package/lib/index.js +620 -241
- package/lib/metadataTypes/Asset.js +455 -209
- package/lib/metadataTypes/Automation.js +34 -0
- package/lib/metadataTypes/DataExtension.js +36 -31
- package/lib/metadataTypes/DataExtensionField.js +2 -3
- package/lib/metadataTypes/Event.js +227 -37
- package/lib/metadataTypes/Folder.js +64 -49
- package/lib/metadataTypes/Journey.js +340 -58
- package/lib/metadataTypes/MetadataType.js +272 -61
- package/lib/metadataTypes/MobileKeyword.js +12 -1
- package/lib/metadataTypes/Role.js +9 -7
- package/lib/metadataTypes/Script.js +4 -3
- package/lib/metadataTypes/SenderProfile.js +18 -5
- package/lib/metadataTypes/TransactionalEmail.js +2 -2
- package/lib/metadataTypes/TriggeredSend.js +21 -5
- package/lib/metadataTypes/User.js +31 -27
- package/lib/metadataTypes/definitions/Asset.definition.js +10 -2
- package/lib/metadataTypes/definitions/AttributeGroup.definition.js +1 -0
- package/lib/metadataTypes/definitions/AttributeSet.definition.js +11 -0
- package/lib/metadataTypes/definitions/Automation.definition.js +9 -0
- package/lib/metadataTypes/definitions/Campaign.definition.js +1 -0
- package/lib/metadataTypes/definitions/ContentArea.definition.js +1 -0
- package/lib/metadataTypes/definitions/DataExtension.definition.js +1 -0
- package/lib/metadataTypes/definitions/DataExtensionField.definition.js +1 -0
- package/lib/metadataTypes/definitions/DataExtensionTemplate.definition.js +1 -0
- package/lib/metadataTypes/definitions/DataExtract.definition.js +2 -1
- package/lib/metadataTypes/definitions/DataExtractType.definition.js +1 -0
- package/lib/metadataTypes/definitions/DeliveryProfile.definition.js +1 -0
- package/lib/metadataTypes/definitions/Discovery.definition.js +1 -0
- package/lib/metadataTypes/definitions/Email.definition.js +1 -0
- package/lib/metadataTypes/definitions/EmailSend.definition.js +8 -0
- package/lib/metadataTypes/definitions/Event.definition.js +9 -8
- package/lib/metadataTypes/definitions/FileLocation.definition.js +1 -0
- package/lib/metadataTypes/definitions/FileTransfer.definition.js +4 -0
- package/lib/metadataTypes/definitions/Filter.definition.js +1 -0
- package/lib/metadataTypes/definitions/Folder.definition.js +10 -8
- package/lib/metadataTypes/definitions/ImportFile.definition.js +8 -1
- package/lib/metadataTypes/definitions/Journey.definition.js +28 -0
- package/lib/metadataTypes/definitions/List.definition.js +1 -0
- package/lib/metadataTypes/definitions/MobileCode.definition.js +1 -0
- package/lib/metadataTypes/definitions/MobileKeyword.definition.js +7 -0
- package/lib/metadataTypes/definitions/MobileMessage.definition.js +9 -0
- package/lib/metadataTypes/definitions/Query.definition.js +3 -0
- package/lib/metadataTypes/definitions/Role.definition.js +1 -0
- package/lib/metadataTypes/definitions/Script.definition.js +1 -0
- package/lib/metadataTypes/definitions/SendClassification.definition.js +4 -0
- package/lib/metadataTypes/definitions/SenderProfile.definition.js +1 -0
- package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +7 -0
- package/lib/metadataTypes/definitions/TransactionalMessage.definition.js +1 -0
- package/lib/metadataTypes/definitions/TransactionalPush.definition.js +3 -0
- package/lib/metadataTypes/definitions/TransactionalSMS.definition.js +4 -0
- package/lib/metadataTypes/definitions/TriggeredSend.definition.js +10 -3
- package/lib/metadataTypes/definitions/User.definition.js +3 -0
- package/lib/metadataTypes/definitions/Verification.definition.js +1 -0
- package/lib/util/auth.js +0 -1
- package/lib/util/cache.js +35 -0
- package/lib/util/cli.js +96 -140
- package/lib/util/config.js +11 -19
- package/lib/util/devops.js +42 -43
- package/lib/util/file.js +7 -10
- package/lib/util/init.config.js +6 -10
- package/lib/util/init.git.js +43 -57
- package/lib/util/init.js +35 -59
- package/lib/util/replaceContentBlockReference.js +110 -61
- package/lib/util/util.js +90 -4
- package/package.json +22 -19
- package/test/general.test.js +1144 -172
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/event/testExisting_event.event-meta.json +201 -0
- package/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withExistingDE.event-meta.json +233 -0
- package/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withSchema.event-meta.json +194 -0
- package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD.mobileKeyword-meta.json +1 -0
- package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD_BLOCKED.mobileKeyword-meta.json +1 -0
- package/test/resourceFactory.js +43 -11
- package/test/resources/1111111/dataFolder/retrieve-ContentTypeINshared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +364 -0
- package/test/resources/9999999/asset/{block-1157-retrieve-expected.html → build-asset_htmlblock-expected.html} +1 -1
- package/test/resources/9999999/asset/build-asset_htmlblock-expected.json +29 -0
- package/test/resources/9999999/asset/build-templatebasedemail-expected.json +65 -0
- package/test/resources/9999999/asset/resolveId-1295064-noPath-expected.json +3 -3
- package/test/resources/9999999/asset/resolveId-1295064-withPath-expected.json +3 -3
- package/test/resources/9999999/asset/retrieve-templatebasedemail-expected.json +65 -0
- package/test/resources/9999999/asset/template-emailTemplate-expected.json +20 -0
- package/test/resources/9999999/asset/template-templatebasedemail-expected.json +65 -0
- package/test/resources/9999999/asset/template-testExisting_asset_htmlblock-expected.json +29 -0
- package/test/resources/9999999/asset/testExisting_asset_htmlblock-retrieve-expected.html +23 -0
- package/test/resources/9999999/asset/{block-1157-retrieve-expected.json → testExisting_asset_htmlblock-retrieve-expected.json} +3 -3
- package/test/resources/9999999/asset/testExisting_asset_message-html-rcb-key-expected.html +6 -6
- package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-id-expected.amp +1 -1
- package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-key-expected.amp +4 -4
- package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-name-expected.amp +1 -1
- package/test/resources/9999999/asset/testExisting_asset_message-text-rcb-key-expected.amp +4 -4
- package/test/resources/9999999/asset/v1/content/assets/1295064/get-response.json +4 -4
- package/test/resources/9999999/asset/v1/content/assets/1295065/get-response.json +60 -0
- package/test/resources/9999999/asset/v1/content/assets/1295066/get-response.json +60 -0
- package/test/resources/9999999/asset/v1/content/assets/5289/get-response.json +75 -0
- package/test/resources/9999999/asset/v1/content/assets/808714/get-response.json +3 -3
- package/test/resources/9999999/asset/v1/content/assets/950143/get-response.json +97 -0
- package/test/resources/9999999/asset/v1/content/assets/get-response-customerKey=testExisting_asset.json +1 -1
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN195,196,197,198,199,200,201,202,203,210,211,212,213,3.json +78 -2
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN205,206,230,232,1,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,14,193,194,15,195,196,197,198,199,200,201,202,203,210,211,212,213,3,207,208,209,5,214,4,215,216.json +370 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN205,206,230,232,1,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,14,193,194,15,195,196,197,198,199,200,201,202,203,210,211,212,213,3,215,216,217,218,219,220,221,222.json +243 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN205,206,230,232,1,207,208,209,5.json +229 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN205,206,230,232,1.json +98 -1
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN217,218,219,220,221,222,223,224,225,226,227,228.json +7 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN223,224,225,226,227,228,214,4.json +35 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN223,224,225,226,227,228.json +7 -0
- package/test/resources/9999999/asset/v1/content/assets/query/{post-response-customerKey=mcdev-issue-1157.json → post-response-customerKey=testExisting_asset_htmlblock.json} +2 -2
- package/test/resources/9999999/automation/v1/queries/get-response-Name=testExisting_query.json +24 -0
- package/test/resources/9999999/automation/v1/scripts/get-response-name=testExisting_script.json +17 -0
- package/test/resources/9999999/automation/v1/scripts/get-response.json +2 -2
- package/test/resources/9999999/dataExtension/retrieve-CustomerKey=testNew_event_withSchema-response.xml +50 -0
- package/test/resources/9999999/dataExtension/retrieve-createdViaEvent-response.xml +50 -0
- package/test/resources/9999999/dataExtension/retrieve-response.xml +48 -0
- package/test/resources/9999999/dataExtension/retrieve_event_withSchema-expected.json +219 -0
- package/test/resources/9999999/dataExtension/update-afterCreatedViaEvent-response.xml +55 -0
- package/test/resources/9999999/dataExtension/update-callout-afterCreatedViaEvent-expected.xml +1 -0
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_event_withSchema-response.xml +461 -0
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKeyINtestExisting_dataExtension,testNew_dataExtension-response.xml +133 -0
- package/test/resources/9999999/dataExtensionField/retrieve-response.xml +870 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=asset-shared-QAA-response.xml +70 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=asset-shared-response.xml +70 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=journey-response.xml +48 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,automatio,dataexten,hidden,journey,list,mysubs,publicati,queryacti,salesforc,shared_da,shared_da,shared_sa,ssjsactiv,synchroni,triggered,triggered,useriniti-response.xml +519 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,dataexten,salesforc,shared_da,shared_da,shared_sa,synchroni,automatio,useriniti,journey,mysubs,list,publicati,queryacti,ssjsactiv,triggered,triggered-response.xml +519 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,journey-response.xml +92 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +115 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,ssjsactivity-response.xml +92 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared-QAA-response.xml +70 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset-shared,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +431 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINautomations,queryactivity-response.xml +70 -0
- package/test/resources/9999999/dataFolder/{retrieve-response.xml → retrieve-ContentTypeINdataextension,hidden,queryactivity,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml} +32 -119
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINdataextension,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +117 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINhidden,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +46 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINshared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +251 -0
- package/test/resources/9999999/dataFolder/retrieve-response-.xml +519 -0
- package/test/resources/9999999/event/build-expected.json +227 -0
- package/test/resources/9999999/event/get-expected.json +234 -0
- package/test/resources/9999999/event/post_withExistingDE-callout-expected.json +20 -0
- package/test/resources/9999999/event/post_withExistingDE-expected.json +23 -0
- package/test/resources/9999999/event/post_withSchema-callout-expected.json +199 -0
- package/test/resources/9999999/event/post_withSchema-expected.json +234 -0
- package/test/resources/9999999/event/put-callout-expected.json +204 -0
- package/test/resources/9999999/event/put-expected.json +233 -0
- package/test/resources/9999999/event/template-expected.json +227 -0
- package/test/resources/9999999/interaction/v1/eventDefinitions/get-response.json +252 -2
- package/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/delete-response.txt +0 -0
- package/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/put-response.json +242 -0
- package/test/resources/9999999/interaction/v1/eventDefinitions/post_withExistingDE-response.json +28 -0
- package/test/resources/9999999/interaction/v1/eventDefinitions/post_withSchema-response.json +243 -0
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response.txt +1 -0
- package/test/resources/9999999/interaction/v1/interactions/3c3f4112-9b43-43ca-8a89-aa0375b2c1a2/get-response.json +4 -4
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Quicksend/get-response.json +4 -4
- package/test/resources/9999999/interaction/v1/interactions/publishAsync/3c3f4112-9b43-43ca-8a89-aa0375b2c1a2/post-response.json +4 -0
- package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-failed.json +34 -0
- package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-success.json +5 -0
- package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-successWarnings.json +36 -0
- package/test/resources/9999999/journey/build-expected.json +5 -5
- package/test/resources/9999999/journey/get-multistep-expected.json +1 -1
- package/test/resources/9999999/journey/get-quicksend-expected.json +5 -5
- package/test/resources/9999999/journey/get-quicksend-rcb-id-expected.json +1 -1
- package/test/resources/9999999/journey/get-quicksend-rcb-key-expected.json +7 -7
- package/test/resources/9999999/journey/get-quicksend-rcb-name-expected.json +1 -1
- package/test/resources/9999999/journey/post-expected.json +1 -1
- package/test/resources/9999999/journey/publish-callout-expected.json +1 -0
- package/test/resources/9999999/journey/put-expected.json +1 -1
- package/test/resources/9999999/journey/template-expected.json +5 -5
- package/test/resources/9999999/mobileKeyword/build-expected.json +1 -0
- package/test/resources/9999999/mobileKeyword/get-expected.json +1 -0
- package/test/resources/9999999/mobileKeyword/post-create-expected.json +1 -0
- package/test/resources/9999999/mobileKeyword/template-expected.json +1 -0
- package/test/resources/{1111111/accountUser/retrieve-CustomerKey=testExisting_userANDActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml → 9999999/queryDefinition/retrieve-CustomerKey=badANDStatus=Active-response.xml} +10 -11
- package/test/resources/9999999/script/get_ampincluded-rcb-key-expected.html +2 -2
- package/test/resources/9999999/script/get_ampscript-expected.html +1 -0
- package/test/resources/9999999/script/get_ampscript-rcb-id-expected.html +1 -0
- package/test/resources/9999999/script/get_ampscript-rcb-key-expected.html +3 -2
- package/test/resources/9999999/script/get_ampscript-rcb-name-expected.html +3 -0
- package/test/resources/9999999/script/get_mixed-expected.html +2 -2
- package/test/resources/9999999/script/get_mixed-rcb-key-expected.html +2 -2
- package/test/resources/9999999/senderProfile/get-rcb-key-expected.json +4 -4
- package/test/resources/9999999/senderProfile/retrieve-response.xml +1 -1
- package/test/resources/9999999/triggeredSend/get-rcb-key-expected.json +4 -4
- package/test/resources/9999999/triggeredSendDefinition/retrieve-TriggeredSendStatusINNew,Active,Inactive,Moved,Canceled-response.xml +1 -1
- package/test/type.asset.test.js +189 -42
- package/test/type.automation.test.js +135 -59
- package/test/type.dataExtension.test.js +4 -4
- package/test/type.dataExtract.test.js +4 -4
- package/test/type.emailSend.test.js +3 -3
- package/test/type.event.test.js +286 -7
- package/test/type.journey.test.js +335 -9
- package/test/type.query.test.js +33 -29
- package/test/type.script.test.js +61 -11
- package/test/type.senderProfile.test.js +36 -3
- package/test/type.transactionalEmail.test.js +3 -3
- package/test/type.triggeredSend.test.js +75 -6
- package/test/type.user.test.js +1 -1
- package/test/utils.js +31 -9
- package/tsconfig.json +6 -1
- package/{jsconfig.json → tsconfig.npmScripts.json} +1 -1
- package/tsconfig.precommit.json +26 -0
- package/types/mcdev.d.js +39 -14
- /package/test/resources/1111111/accountUser/{retrieve-ActiveFlag=falseANDCustomerKey=testExisting_userANDEmaillike@-response.xml → retrieve-ActiveFlag=falseANDCustomerKey=testExisting_userANDEmaillike@-QAA-response.xml} +0 -0
- /package/test/resources/1111111/accountUser/{retrieve-ActiveFlag=falseANDEmaillike@-response.xml → retrieve-ActiveFlag=falseANDEmaillike@-QAA-response.xml} +0 -0
- /package/test/resources/1111111/accountUser/{retrieve-ActiveFlag=trueANDCustomerKey=testExisting_userANDEmaillike@-response.xml → retrieve-ActiveFlag=trueANDCustomerKey=testExisting_userANDEmaillike@-QAA-response.xml} +0 -0
- /package/test/resources/1111111/accountUser/{retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml → retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-QAA-response.xml} +0 -0
- /package/test/resources/1111111/accountUser/{retrieve-ActiveFlag=trueANDEmaillike@-response.xml → retrieve-ActiveFlag=trueANDEmaillike@-QAA-response.xml} +0 -0
- /package/test/resources/1111111/businessUnit/{retrieve-ID=1111111-response.xml → retrieve-ID=1111111-QAA-response.xml} +0 -0
- /package/test/resources/1111111/dataFolder/{retrieve-ContentType=synchronizeddataextensionORContentType=shared_salesforcedataextensionORContentType=shared_dataextensionORContentType=shared_dataORContentType=salesforcedataextensionORContentType=dataextensionORContentType=hidden-response.xml → retrieve-ContentTypeINdataextension,hidden,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml} +0 -0
- /package/test/resources/1111111/dataFolder/{retrieve-response.xml → retrieve-response-.xml} +0 -0
- /package/test/resources/9999999/dataFolder/{retrieve-ContentType=asset-sharedORContentType=asset-response.xml → retrieve-ContentTypeINasset,asset-shared-response.xml} +0 -0
- /package/test/resources/9999999/dataFolder/{retrieve-ContentType=contextual_suppression_listORContentType=publicationORContentType=suppression_listORContentType=mysubsORContentType=list-response.xml → retrieve-ContentTypeINcontextual_suppression_list,list,mysubs,publication,suppression_list-response.xml} +0 -0
- /package/test/resources/9999999/dataFolder/{retrieve-ContentType=synchronizeddataextensionORContentType=shared_salesforcedataextensionORContentType=shared_dataextensionORContentType=shared_dataORContentType=salesforcedataextensionORContentType=dataextensionORContentType=hidden-response.xml → retrieve-ContentTypeINdataextension,hidden,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml} +0 -0
- /package/test/resources/9999999/dataFolder/{retrieve-ContentType=triggered_send_journeybuilderORContentType=triggered_sendORContentType=hidden-response.xml → retrieve-ContentTypeINhidden,triggered_send,triggered_send_journeybuilder-response.xml} +0 -0
package/@types/lib/util/cli.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export default Cli;
|
|
2
|
-
export type AuthObject = import(
|
|
3
|
-
export type BuObject = import(
|
|
4
|
-
export type Cache = import(
|
|
5
|
-
export type CodeExtract = import(
|
|
6
|
-
export type CodeExtractItem = import(
|
|
7
|
-
export type DeltaPkgItem = import(
|
|
8
|
-
export type Mcdevrc = import(
|
|
9
|
-
export type MetadataTypeItem = import(
|
|
10
|
-
export type MetadataTypeItemDiff = import(
|
|
11
|
-
export type MetadataTypeItemObj = import(
|
|
12
|
-
export type MetadataTypeMap = import(
|
|
13
|
-
export type MetadataTypeMapObj = import(
|
|
14
|
-
export type MultiMetadataTypeList = import(
|
|
15
|
-
export type MultiMetadataTypeMap = import(
|
|
16
|
-
export type SoapRequestParams = import(
|
|
17
|
-
export type TemplateMap = import(
|
|
18
|
-
export type TypeKeyCombo = import(
|
|
19
|
-
export type ExplainType = import(
|
|
2
|
+
export type AuthObject = import("../../types/mcdev.d.js").AuthObject;
|
|
3
|
+
export type BuObject = import("../../types/mcdev.d.js").BuObject;
|
|
4
|
+
export type Cache = import("../../types/mcdev.d.js").Cache;
|
|
5
|
+
export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract;
|
|
6
|
+
export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem;
|
|
7
|
+
export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem;
|
|
8
|
+
export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc;
|
|
9
|
+
export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem;
|
|
10
|
+
export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff;
|
|
11
|
+
export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj;
|
|
12
|
+
export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap;
|
|
13
|
+
export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj;
|
|
14
|
+
export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList;
|
|
15
|
+
export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap;
|
|
16
|
+
export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams;
|
|
17
|
+
export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap;
|
|
18
|
+
export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo;
|
|
19
|
+
export type ExplainType = import("../../types/mcdev.d.js").ExplainType;
|
|
20
20
|
declare namespace Cli {
|
|
21
21
|
/**
|
|
22
22
|
* used when initially setting up a project.
|
|
@@ -31,7 +31,7 @@ declare namespace Cli {
|
|
|
31
31
|
* @param {Mcdevrc} properties config file's json
|
|
32
32
|
* @returns {Promise.<boolean | string>} status
|
|
33
33
|
*/
|
|
34
|
-
function addExtraCredential(properties:
|
|
34
|
+
function addExtraCredential(properties: Mcdevrc): Promise<boolean | string>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @param {string[]} dependentTypes types that depent on type
|
|
@@ -44,7 +44,7 @@ declare namespace Cli {
|
|
|
44
44
|
* @param {Mcdevrc} properties config file's json
|
|
45
45
|
* @returns {void}
|
|
46
46
|
*/
|
|
47
|
-
function logExistingCredentials(properties:
|
|
47
|
+
function logExistingCredentials(properties: Mcdevrc): void;
|
|
48
48
|
/**
|
|
49
49
|
* Extends template file for properties.json
|
|
50
50
|
* update credentials
|
|
@@ -54,7 +54,7 @@ declare namespace Cli {
|
|
|
54
54
|
* @param {boolean} [refreshBUs] if this was triggered by mcdev join, do not refresh BUs
|
|
55
55
|
* @returns {Promise.<string | boolean>} success of update
|
|
56
56
|
*/
|
|
57
|
-
function updateCredential(properties:
|
|
57
|
+
function updateCredential(properties: Mcdevrc, credName: string, refreshBUs?: boolean): Promise<string | boolean>;
|
|
58
58
|
/**
|
|
59
59
|
* Returns Object with parameters required for accessing API
|
|
60
60
|
*
|
|
@@ -64,7 +64,7 @@ declare namespace Cli {
|
|
|
64
64
|
* @param {boolean} [allowAll] Offer ALL as option in BU selection
|
|
65
65
|
* @returns {Promise.<BuObject>} credential to be used for Business Unit
|
|
66
66
|
*/
|
|
67
|
-
function getCredentialObject(properties:
|
|
67
|
+
function getCredentialObject(properties: Mcdevrc, target: string, isCredentialOnly?: boolean | string, allowAll?: boolean): Promise<BuObject>;
|
|
68
68
|
/**
|
|
69
69
|
* helps select the right credential in case of bad initial input
|
|
70
70
|
*
|
|
@@ -74,7 +74,7 @@ declare namespace Cli {
|
|
|
74
74
|
* @param {boolean} [allowAll] Offer ALL as option in BU selection
|
|
75
75
|
* @returns {Promise.<{businessUnit:string, credential:string}>} selected credential/BU combo
|
|
76
76
|
*/
|
|
77
|
-
function _selectBU(properties:
|
|
77
|
+
function _selectBU(properties: Mcdevrc, credential?: string, isCredentialOnly?: boolean, allowAll?: boolean): Promise<{
|
|
78
78
|
businessUnit: string;
|
|
79
79
|
credential: string;
|
|
80
80
|
}>;
|
|
@@ -86,7 +86,7 @@ declare namespace Cli {
|
|
|
86
86
|
* @param {boolean} [refreshBUs] if this was triggered by mcdev join, do not refresh BUs
|
|
87
87
|
* @returns {Promise.<boolean | string>} success of refresh or credential name
|
|
88
88
|
*/
|
|
89
|
-
function _setCredential(properties:
|
|
89
|
+
function _setCredential(properties: Mcdevrc, credName?: string, refreshBUs?: boolean): Promise<boolean | string>;
|
|
90
90
|
/**
|
|
91
91
|
* helper for {@link Cli.addExtraCredential}
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ declare namespace Cli {
|
|
|
94
94
|
* @param {string} [credName] name of credential that needs updating
|
|
95
95
|
* @returns {Promise.<object>} credential info
|
|
96
96
|
*/
|
|
97
|
-
function _askCredentials(properties:
|
|
97
|
+
function _askCredentials(properties: Mcdevrc, credName?: string): Promise<object>;
|
|
98
98
|
/**
|
|
99
99
|
* allows updating the metadata types that shall be retrieved
|
|
100
100
|
*
|
|
@@ -102,24 +102,21 @@ declare namespace Cli {
|
|
|
102
102
|
* @param {string[]} [setTypesArr] skip user prompt and overwrite with this list if given
|
|
103
103
|
* @returns {Promise.<void>} -
|
|
104
104
|
*/
|
|
105
|
-
function selectTypes(properties:
|
|
105
|
+
function selectTypes(properties: Mcdevrc, setTypesArr?: string[]): Promise<void>;
|
|
106
106
|
/**
|
|
107
107
|
* helper for {@link Cli.selectTypes} that converts subtypes back to main type if all and only defaults were selected
|
|
108
108
|
* this keeps the config automatically upgradable when we add new subtypes or change what is selected by default
|
|
109
109
|
*
|
|
110
|
-
* @param {
|
|
111
|
-
* @param {string[]} responses.selectedTypes what types the user selected
|
|
110
|
+
* @param {string[]} selectedTypes what types the user selected
|
|
112
111
|
* @param {string} type metadata type
|
|
113
|
-
* @returns {
|
|
112
|
+
* @returns {string[]} filtered selectedTypes
|
|
114
113
|
*/
|
|
115
|
-
function _summarizeSubtypes(
|
|
116
|
-
selectedTypes: string[];
|
|
117
|
-
}, type: string): void;
|
|
114
|
+
function _summarizeSubtypes(selectedTypes: string[], type: string): string[];
|
|
118
115
|
/**
|
|
119
116
|
* shows metadata type descriptions
|
|
120
117
|
*
|
|
121
118
|
* @returns {ExplainType[]} list of supported types with their apiNames
|
|
122
119
|
*/
|
|
123
|
-
function explainTypes():
|
|
120
|
+
function explainTypes(): ExplainType[];
|
|
124
121
|
}
|
|
125
122
|
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../lib/util/cli.js"],"names":[],"mappings":";yBAca,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;oBACzC,OAAO,wBAAwB,EAAE,KAAK;0BACtC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;2BAChD,OAAO,wBAAwB,EAAE,YAAY;sBAC7C,OAAO,wBAAwB,EAAE,OAAO;+BACxC,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;oCACnD,OAAO,wBAAwB,EAAE,qBAAqB;mCACtD,OAAO,wBAAwB,EAAE,oBAAoB;gCACrD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2BAC5C,OAAO,wBAAwB,EAAE,YAAY;0BAC7C,OAAO,wBAAwB,EAAE,WAAW;;IAQrD;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../lib/util/cli.js"],"names":[],"mappings":";yBAca,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;oBACzC,OAAO,wBAAwB,EAAE,KAAK;0BACtC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;2BAChD,OAAO,wBAAwB,EAAE,YAAY;sBAC7C,OAAO,wBAAwB,EAAE,OAAO;+BACxC,OAAO,wBAAwB,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E5B;IACD;;;;;;OAMG;IACH,iCAJW,OAAO,gBACP,MAAM,EAAE,GACN,OAAO,CAAE,IAAI,CAAC,CAgG1B;IACD;;;;;;;OAOG;IACH,2CAJW,MAAM,EAAE,QACR,MAAM,GACJ,MAAM,EAAE,CAqBpB;IAED;;;;OAIG;IACH,yBAFa,WAAW,EAAE,CA0GzB"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export default config;
|
|
2
|
-
export type AuthObject = import(
|
|
3
|
-
export type BuObject = import(
|
|
4
|
-
export type Cache = import(
|
|
5
|
-
export type CodeExtract = import(
|
|
6
|
-
export type CodeExtractItem = import(
|
|
7
|
-
export type DeltaPkgItem = import(
|
|
8
|
-
export type Mcdevrc = import(
|
|
9
|
-
export type MetadataTypeItem = import(
|
|
10
|
-
export type MetadataTypeItemDiff = import(
|
|
11
|
-
export type MetadataTypeItemObj = import(
|
|
12
|
-
export type MetadataTypeMap = import(
|
|
13
|
-
export type MetadataTypeMapObj = import(
|
|
14
|
-
export type MultiMetadataTypeList = import(
|
|
15
|
-
export type MultiMetadataTypeMap = import(
|
|
16
|
-
export type SoapRequestParams = import(
|
|
17
|
-
export type TemplateMap = import(
|
|
18
|
-
export type TypeKeyCombo = import(
|
|
2
|
+
export type AuthObject = import("../../types/mcdev.d.js").AuthObject;
|
|
3
|
+
export type BuObject = import("../../types/mcdev.d.js").BuObject;
|
|
4
|
+
export type Cache = import("../../types/mcdev.d.js").Cache;
|
|
5
|
+
export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract;
|
|
6
|
+
export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem;
|
|
7
|
+
export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem;
|
|
8
|
+
export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc;
|
|
9
|
+
export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem;
|
|
10
|
+
export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff;
|
|
11
|
+
export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj;
|
|
12
|
+
export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap;
|
|
13
|
+
export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj;
|
|
14
|
+
export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList;
|
|
15
|
+
export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap;
|
|
16
|
+
export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams;
|
|
17
|
+
export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap;
|
|
18
|
+
export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo;
|
|
19
19
|
declare namespace config {
|
|
20
20
|
let properties: any;
|
|
21
21
|
/**
|
|
@@ -25,7 +25,7 @@ declare namespace config {
|
|
|
25
25
|
* @param {boolean} [isInit] don't tell the user to run init
|
|
26
26
|
* @returns {Promise.<Mcdevrc>} central properties object
|
|
27
27
|
*/
|
|
28
|
-
function getProperties(silent?: boolean, isInit?: boolean): Promise<
|
|
28
|
+
function getProperties(silent?: boolean, isInit?: boolean): Promise<Mcdevrc>;
|
|
29
29
|
/**
|
|
30
30
|
* check if the config file is correctly formatted and has values
|
|
31
31
|
*
|
|
@@ -33,13 +33,13 @@ declare namespace config {
|
|
|
33
33
|
* @param {boolean} [silent] set to true for internal use w/o cli output
|
|
34
34
|
* @returns {Promise.<boolean | string[]>} file structure ok OR list of fields to be fixed
|
|
35
35
|
*/
|
|
36
|
-
function checkProperties(properties:
|
|
36
|
+
function checkProperties(properties: Mcdevrc, silent?: boolean): Promise<boolean | string[]>;
|
|
37
37
|
/**
|
|
38
38
|
* defines how the properties.json should look like
|
|
39
39
|
* used for creating a template and for checking if variables are set
|
|
40
40
|
*
|
|
41
41
|
* @returns {Promise.<Mcdevrc>} default properties
|
|
42
42
|
*/
|
|
43
|
-
function getDefaultProperties(): Promise<
|
|
43
|
+
function getDefaultProperties(): Promise<Mcdevrc>;
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../lib/util/config.js"],"names":[],"mappings":";yBASa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;oBACzC,OAAO,wBAAwB,EAAE,KAAK;0BACtC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;2BAChD,OAAO,wBAAwB,EAAE,YAAY;sBAC7C,OAAO,wBAAwB,EAAE,OAAO;+BACxC,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;oCACnD,OAAO,wBAAwB,EAAE,qBAAqB;mCACtD,OAAO,wBAAwB,EAAE,oBAAoB;gCACrD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2BAC5C,OAAO,wBAAwB,EAAE,YAAY;;;IAStD;;;;;;OAMG;IACH,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../lib/util/config.js"],"names":[],"mappings":";yBASa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;oBACzC,OAAO,wBAAwB,EAAE,KAAK;0BACtC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;2BAChD,OAAO,wBAAwB,EAAE,YAAY;sBAC7C,OAAO,wBAAwB,EAAE,OAAO;+BACxC,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;oCACnD,OAAO,wBAAwB,EAAE,qBAAqB;mCACtD,OAAO,wBAAwB,EAAE,oBAAoB;gCACrD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2BAC5C,OAAO,wBAAwB,EAAE,YAAY;;;IAStD;;;;;;OAMG;IACH,gCAJW,OAAO,WACP,OAAO,GACL,OAAO,CAAE,OAAO,CAAC,CA2D7B;IACD;;;;;;OAMG;IACH,qCAJW,OAAO,WACP,OAAO,GACL,OAAO,CAAE,OAAO,GAAG,MAAM,EAAE,CAAC,CA6LxC;IACD;;;;;OAKG;IACH,iCAFa,OAAO,CAAE,OAAO,CAAC,CAe7B"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export default DevOps;
|
|
2
|
-
export type AuthObject = import(
|
|
3
|
-
export type BuObject = import(
|
|
4
|
-
export type Cache = import(
|
|
5
|
-
export type CodeExtract = import(
|
|
6
|
-
export type CodeExtractItem = import(
|
|
7
|
-
export type DeltaPkgItem = import(
|
|
8
|
-
export type Mcdevrc = import(
|
|
9
|
-
export type MetadataTypeItem = import(
|
|
10
|
-
export type MetadataTypeItemDiff = import(
|
|
11
|
-
export type MetadataTypeItemObj = import(
|
|
12
|
-
export type MetadataTypeMap = import(
|
|
13
|
-
export type MetadataTypeMapObj = import(
|
|
14
|
-
export type MultiMetadataTypeList = import(
|
|
15
|
-
export type MultiMetadataTypeMap = import(
|
|
16
|
-
export type SoapRequestParams = import(
|
|
17
|
-
export type TemplateMap = import(
|
|
18
|
-
export type TypeKeyCombo = import(
|
|
2
|
+
export type AuthObject = import("../../types/mcdev.d.js").AuthObject;
|
|
3
|
+
export type BuObject = import("../../types/mcdev.d.js").BuObject;
|
|
4
|
+
export type Cache = import("../../types/mcdev.d.js").Cache;
|
|
5
|
+
export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract;
|
|
6
|
+
export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem;
|
|
7
|
+
export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem;
|
|
8
|
+
export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc;
|
|
9
|
+
export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem;
|
|
10
|
+
export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff;
|
|
11
|
+
export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj;
|
|
12
|
+
export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap;
|
|
13
|
+
export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj;
|
|
14
|
+
export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList;
|
|
15
|
+
export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap;
|
|
16
|
+
export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams;
|
|
17
|
+
export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap;
|
|
18
|
+
export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo;
|
|
19
19
|
declare namespace DevOps {
|
|
20
20
|
/**
|
|
21
21
|
* Extracts the delta between a commit and the current state for deployment.
|
|
@@ -28,7 +28,7 @@ declare namespace DevOps {
|
|
|
28
28
|
* @param {number} [commitHistory] cli option to override default commit history value in config
|
|
29
29
|
* @returns {Promise.<DeltaPkgItem[]>} -
|
|
30
30
|
*/
|
|
31
|
-
function getDeltaList(properties:
|
|
31
|
+
function getDeltaList(properties: Mcdevrc, range?: string, saveToDeployDir?: boolean, filterPathsCSV?: string, commitHistory?: number): Promise<DeltaPkgItem[]>;
|
|
32
32
|
/**
|
|
33
33
|
* wrapper around DevOps.getDeltaList, Builder.buildTemplate and M
|
|
34
34
|
*
|
|
@@ -38,7 +38,7 @@ declare namespace DevOps {
|
|
|
38
38
|
* @param {number} [commitHistory] cli option to override default commit history value in config
|
|
39
39
|
* @returns {Promise.<DeltaPkgItem[]>} -
|
|
40
40
|
*/
|
|
41
|
-
function buildDeltaDefinitions(properties:
|
|
41
|
+
function buildDeltaDefinitions(properties: Mcdevrc, range: string, diffArr?: DeltaPkgItem[], commitHistory?: number): Promise<DeltaPkgItem[]>;
|
|
42
42
|
/**
|
|
43
43
|
* create markdown file for deployment listing
|
|
44
44
|
*
|
|
@@ -46,7 +46,7 @@ declare namespace DevOps {
|
|
|
46
46
|
* @param {object} jsonReport -
|
|
47
47
|
* @returns {void}
|
|
48
48
|
*/
|
|
49
|
-
function document(directory: string, jsonReport:
|
|
49
|
+
function document(directory: string, jsonReport: object): void;
|
|
50
50
|
/**
|
|
51
51
|
* should return only the json for all but asset, query and script that are saved as multiple files
|
|
52
52
|
* additionally, the documentation for dataExtension and automation should be returned
|
|
@@ -57,6 +57,6 @@ declare namespace DevOps {
|
|
|
57
57
|
* @param {string[]} keyArr customerkey of the metadata
|
|
58
58
|
* @returns {Promise.<string[]>} list of all files that need to be committed in a flat array ['path/file1.ext', 'path/file2.ext']
|
|
59
59
|
*/
|
|
60
|
-
function getFilesToCommit(properties:
|
|
60
|
+
function getFilesToCommit(properties: Mcdevrc, buObject: BuObject, metadataType: string, keyArr: string[]): Promise<string[]>;
|
|
61
61
|
}
|
|
62
62
|
//# sourceMappingURL=devops.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devops.d.ts","sourceRoot":"","sources":["../../../lib/util/devops.js"],"names":[],"mappings":";yBAYa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;oBACzC,OAAO,wBAAwB,EAAE,KAAK;0BACtC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;2BAChD,OAAO,wBAAwB,EAAE,YAAY;sBAC7C,OAAO,wBAAwB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,2CANW,OAAO,SACP,MAAM,YACN,YAAY,EAAE,kBACd,MAAM,GACJ,OAAO,CAAE,YAAY,EAAE,CAAC,CA6KpC;IAED;;;;;;OAMG;IACH,6BAJW,MAAM,cACN,MAAM,GACJ,IAAI,CA4BhB;IACD;;;;;;;;;OASG;IACH,sCANW,OAAO,YACP,QAAQ,gBACR,MAAM,UACN,MAAM,EAAE,GACN,OAAO,CAAE,MAAM,EAAE,CAAC,CAM9B"}
|
|
@@ -1,20 +1,181 @@
|
|
|
1
1
|
export default FileFs;
|
|
2
|
-
export type AuthObject = import(
|
|
3
|
-
export type BuObject = import(
|
|
4
|
-
export type Cache = import(
|
|
5
|
-
export type CodeExtract = import(
|
|
6
|
-
export type CodeExtractItem = import(
|
|
7
|
-
export type DeltaPkgItem = import(
|
|
8
|
-
export type Mcdevrc = import(
|
|
9
|
-
export type MetadataTypeItem = import(
|
|
10
|
-
export type MetadataTypeItemDiff = import(
|
|
11
|
-
export type MetadataTypeItemObj = import(
|
|
12
|
-
export type MetadataTypeMap = import(
|
|
13
|
-
export type MetadataTypeMapObj = import(
|
|
14
|
-
export type MultiMetadataTypeList = import(
|
|
15
|
-
export type MultiMetadataTypeMap = import(
|
|
16
|
-
export type SoapRequestParams = import(
|
|
17
|
-
export type TemplateMap = import(
|
|
18
|
-
export type TypeKeyCombo = import(
|
|
19
|
-
declare const FileFs:
|
|
2
|
+
export type AuthObject = import("../../types/mcdev.d.js").AuthObject;
|
|
3
|
+
export type BuObject = import("../../types/mcdev.d.js").BuObject;
|
|
4
|
+
export type Cache = import("../../types/mcdev.d.js").Cache;
|
|
5
|
+
export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract;
|
|
6
|
+
export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem;
|
|
7
|
+
export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem;
|
|
8
|
+
export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc;
|
|
9
|
+
export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem;
|
|
10
|
+
export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff;
|
|
11
|
+
export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj;
|
|
12
|
+
export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap;
|
|
13
|
+
export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj;
|
|
14
|
+
export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList;
|
|
15
|
+
export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap;
|
|
16
|
+
export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams;
|
|
17
|
+
export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap;
|
|
18
|
+
export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo;
|
|
19
|
+
declare const FileFs: typeof fs & {
|
|
20
|
+
prettierConfig: any;
|
|
21
|
+
prettierConfigFileType: any;
|
|
22
|
+
/**
|
|
23
|
+
* copies a file from one path to another
|
|
24
|
+
*
|
|
25
|
+
* @param {string} from - full filepath including name of existing file
|
|
26
|
+
* @param {string} to - full filepath including name where file should go
|
|
27
|
+
* @returns {Promise.<{status:'ok'|'skipped'|'failed', statusMessage:string, file:string}>} - results object
|
|
28
|
+
*/
|
|
29
|
+
copyFileSimple(from: string, to: string): Promise<{
|
|
30
|
+
status: "ok" | "skipped" | "failed";
|
|
31
|
+
statusMessage: string;
|
|
32
|
+
file: string;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* makes sure Windows accepts path names
|
|
36
|
+
*
|
|
37
|
+
* @param {string} path - filename or path
|
|
38
|
+
* @returns {string} - corrected string
|
|
39
|
+
*/
|
|
40
|
+
filterIllegalPathChars(path: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* makes sure Windows accepts file names
|
|
43
|
+
*
|
|
44
|
+
* @param {string} filename - filename or path
|
|
45
|
+
* @returns {string} - corrected string
|
|
46
|
+
*/
|
|
47
|
+
filterIllegalFilenames(filename: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* makes sure Windows accepts file names
|
|
50
|
+
*
|
|
51
|
+
* @param {string} filename - filename or path
|
|
52
|
+
* @returns {string} - corrected string
|
|
53
|
+
*/
|
|
54
|
+
reverseFilterIllegalFilenames(filename: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Takes various types of path strings and formats into a platform specific path
|
|
57
|
+
*
|
|
58
|
+
* @param {string|string[]} denormalizedPath directory the file will be written to
|
|
59
|
+
* @returns {string} Path strings
|
|
60
|
+
*/
|
|
61
|
+
normalizePath: (denormalizedPath: string | string[]) => string;
|
|
62
|
+
/**
|
|
63
|
+
* Saves json content to a file in the local file system. Will create the parent directory if it does not exist
|
|
64
|
+
*
|
|
65
|
+
* @param {string|string[]} directory directory the file will be written to
|
|
66
|
+
* @param {string} filename name of the file without '.json' ending
|
|
67
|
+
* @param {object} content filecontent
|
|
68
|
+
* @returns {Promise} Promise
|
|
69
|
+
*/
|
|
70
|
+
writeJSONToFile: (directory: string | string[], filename: string, content: object) => Promise<any>;
|
|
71
|
+
/**
|
|
72
|
+
* Saves beautified files in the local file system. Will create the parent directory if it does not exist
|
|
73
|
+
* ! Important: run 'await File.initPrettier()' in your MetadataType.retrieve() once before hitting this
|
|
74
|
+
*
|
|
75
|
+
* @param {string|string[]} directory directory the file will be written to
|
|
76
|
+
* @param {string} filename name of the file without suffix
|
|
77
|
+
* @param {string} filetype filetype ie. JSON or SSJS
|
|
78
|
+
* @param {string} content filecontent
|
|
79
|
+
* @param {TemplateMap} [templateVariables] templating variables to be replaced in the metadata
|
|
80
|
+
* @returns {Promise.<boolean>} Promise
|
|
81
|
+
*/
|
|
82
|
+
writePrettyToFile: (directory: string | string[], filename: string, filetype: string, content: string, templateVariables?: TemplateMap) => Promise<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* helper that applies beautyAmp onto given stringified content; strongly typed for strings only
|
|
85
|
+
*
|
|
86
|
+
* @param {string} content code
|
|
87
|
+
* @param {boolean} [formatHTML] applies formatting to html and ampscript if true
|
|
88
|
+
* @returns {Promise.<string>} formatted code
|
|
89
|
+
*/
|
|
90
|
+
beautify_beautyAmp_beautify: (content: string, formatHTML?: boolean) => Promise<string>;
|
|
91
|
+
/**
|
|
92
|
+
* helper for {@link File.writePrettyToFile}, applying beautyAmp onto given stringified content
|
|
93
|
+
*
|
|
94
|
+
* @param {string} content filecontent
|
|
95
|
+
* @param {boolean} formatHTML should we format HTML or not via prettier included in beautyAmp
|
|
96
|
+
* @returns {Promise.<string>} original string on error; formatted string on success
|
|
97
|
+
*/
|
|
98
|
+
beautify_beautyAmp: (content: string, formatHTML?: boolean) => Promise<string>;
|
|
99
|
+
/**
|
|
100
|
+
* helper for {@link File.writePrettyToFile}, applying prettier onto given stringified content
|
|
101
|
+
* ! Important: run 'await File.initPrettier()' in your MetadataType.retrieve() once before hitting this
|
|
102
|
+
*
|
|
103
|
+
* @param {string|string[]} directory directory the file will be written to
|
|
104
|
+
* @param {string} filename name of the file without suffix
|
|
105
|
+
* @param {string} filetype filetype ie. JSON or SSJS
|
|
106
|
+
* @param {string} content filecontent
|
|
107
|
+
* @returns {Promise.<string>} original string on error; formatted string on success
|
|
108
|
+
*/
|
|
109
|
+
_beautify_prettier: (directory: string | string[], filename: string, filetype: string, content: string) => Promise<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Saves text content to a file in the local file system. Will create the parent directory if it does not exist
|
|
112
|
+
*
|
|
113
|
+
* @param {string|string[]} directory directory the file will be written to
|
|
114
|
+
* @param {string} filename name of the file without '.json' ending
|
|
115
|
+
* @param {string} filetype filetype suffix
|
|
116
|
+
* @param {string} content filecontent
|
|
117
|
+
* @param {object} [encoding] added for certain file types (like images)
|
|
118
|
+
* @returns {Promise.<boolean>} Promise
|
|
119
|
+
*/
|
|
120
|
+
writeToFile: (directory: string | string[], filename: string, filetype: string, content: string, encoding?: object) => Promise<boolean>;
|
|
121
|
+
/**
|
|
122
|
+
* Saves json content to a file in the local file system. Will create the parent directory if it does not exist
|
|
123
|
+
*
|
|
124
|
+
* @param {string | string[]} directory directory where the file is stored
|
|
125
|
+
* @param {string} filename name of the file without '.json' ending
|
|
126
|
+
* @param {boolean} cleanPath filters illegal chars if true
|
|
127
|
+
* @returns {Promise.<object | object | void>} Promise or JSON object depending on if async or not; void on error
|
|
128
|
+
*/
|
|
129
|
+
readJSONFile: (directory: string | string[], filename: string, cleanPath: boolean) => Promise<object | object | void>;
|
|
130
|
+
/**
|
|
131
|
+
* reads file from local file system.
|
|
132
|
+
*
|
|
133
|
+
* @param {string | string[]} directory directory where the file is stored
|
|
134
|
+
* @param {string} filename name of the file without '.json' ending
|
|
135
|
+
* @param {string} filetype filetype suffix
|
|
136
|
+
* @param {string} [encoding] read file with encoding (defaults to utf-8)
|
|
137
|
+
* @returns {Promise.<string>} file contents; void on error
|
|
138
|
+
*/
|
|
139
|
+
readFilteredFilename: (directory: string | string[], filename: string, filetype: string, encoding?: string) => Promise<string>;
|
|
140
|
+
/**
|
|
141
|
+
* reads directories to a specific depth returning an array
|
|
142
|
+
* of file paths to be iterated over
|
|
143
|
+
*
|
|
144
|
+
* @example ['deploy/mcdev/bu1']
|
|
145
|
+
* @param {string} directory directory to checkin
|
|
146
|
+
* @param {number} depth how many levels to check (1 base)
|
|
147
|
+
* @param {boolean} [includeStem] include the parent directory in the response
|
|
148
|
+
* @param {number} [_stemLength] set recursively for subfolders. do not set manually!
|
|
149
|
+
* @returns {Promise.<string[]>} array of fully defined file paths
|
|
150
|
+
*/
|
|
151
|
+
readDirectories: (directory: string, depth: number, includeStem?: boolean, _stemLength?: number) => Promise<string[]>;
|
|
152
|
+
/**
|
|
153
|
+
* reads directories to a specific depth returning an array
|
|
154
|
+
* of file paths to be iterated over using sync api (required in constructors)
|
|
155
|
+
* TODO - merge with readDirectories. so far the logic is really different
|
|
156
|
+
*
|
|
157
|
+
* @example ['deploy/mcdev/bu1']
|
|
158
|
+
* @param {string} directory directory to checkin
|
|
159
|
+
* @param {number} [depth] how many levels to check (1 base)
|
|
160
|
+
* @param {boolean} [includeStem] include the parent directory in the response
|
|
161
|
+
* @param {number} [_stemLength] set recursively for subfolders. do not set manually!
|
|
162
|
+
* @returns {string[] | void} array of fully defined file paths; void on error
|
|
163
|
+
*/
|
|
164
|
+
readDirectoriesSync: (directory: string, depth?: number, includeStem?: boolean, _stemLength?: number) => string[] | void;
|
|
165
|
+
/**
|
|
166
|
+
* helper that splits the config back into auth & config parts to save them separately
|
|
167
|
+
*
|
|
168
|
+
* @param {Mcdevrc} properties central properties object
|
|
169
|
+
* @returns {Promise.<void>} -
|
|
170
|
+
*/
|
|
171
|
+
saveConfigFile(properties: Mcdevrc): Promise<void>;
|
|
172
|
+
/**
|
|
173
|
+
* Initalises Prettier formatting lib async.
|
|
174
|
+
*
|
|
175
|
+
* @param {string} [filetype] filetype ie. JSON or SSJS
|
|
176
|
+
* @returns {Promise.<boolean>} success of config load
|
|
177
|
+
*/
|
|
178
|
+
initPrettier(filetype?: string): Promise<boolean>;
|
|
179
|
+
};
|
|
180
|
+
import fs from 'fs-extra';
|
|
20
181
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../lib/util/file.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../lib/util/file.js"],"names":[],"mappings":";yBAUa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;oBACzC,OAAO,wBAAwB,EAAE,KAAK;0BACtC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;2BAChD,OAAO,wBAAwB,EAAE,YAAY;sBAC7C,OAAO,wBAAwB,EAAE,OAAO;+BACxC,OAAO,wBAAwB,EAAE,gBAAg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AM,EAAE,YACf,MAAM,YACN,MAAM,WACN,MAAM,aACN,MAAM,KACJ,OAAO,CAAE,OAAO,CAAC;IAoB9B;;;;;;;OAOG;8BAJQ,MAAM,GAAG,MAAM,EAAE,YACjB,MAAM,aACN,OAAO,KACL,OAAO,CAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAyB7C;;;;;;;;OAQG;sCALQ,MAAM,GAAG,MAAM,EAAE,YACjB,MAAM,YACN,MAAM,aACN,MAAM,KACJ,OAAO,CAAE,MAAM,CAAC;IAa7B;;;;;;;;;;OAUG;iCALQ,MAAM,SACN,MAAM,gBACN,OAAO,gBACP,MAAM,KACJ,OAAO,CAAE,MAAM,EAAE,CAAC;IA6C/B;;;;;;;;;;;OAWG;qCALQ,MAAM,UACN,MAAM,gBACN,OAAO,gBACP,MAAM,KACJ,MAAM,EAAE,GAAG,IAAI;IA2C5B;;;;;OAKG;+BAFQ,OAAO,GACL,OAAO,CAAE,IAAI,CAAC;IAS3B;;;;;OAKG;4BAFQ,MAAM,GACJ,OAAO,CAAE,OAAO,CAAC;EAgCK;eA7jBxB,UAAU"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export default Init;
|
|
2
|
-
export type AuthObject = import(
|
|
3
|
-
export type BuObject = import(
|
|
4
|
-
export type Cache = import(
|
|
5
|
-
export type CodeExtract = import(
|
|
6
|
-
export type CodeExtractItem = import(
|
|
7
|
-
export type DeltaPkgItem = import(
|
|
8
|
-
export type Mcdevrc = import(
|
|
9
|
-
export type MetadataTypeItem = import(
|
|
10
|
-
export type MetadataTypeItemDiff = import(
|
|
11
|
-
export type MetadataTypeItemObj = import(
|
|
12
|
-
export type MetadataTypeMap = import(
|
|
13
|
-
export type MetadataTypeMapObj = import(
|
|
14
|
-
export type MultiMetadataTypeList = import(
|
|
15
|
-
export type MultiMetadataTypeMap = import(
|
|
16
|
-
export type SoapRequestParams = import(
|
|
17
|
-
export type TemplateMap = import(
|
|
18
|
-
export type TypeKeyCombo = import(
|
|
2
|
+
export type AuthObject = import("../../types/mcdev.d.js").AuthObject;
|
|
3
|
+
export type BuObject = import("../../types/mcdev.d.js").BuObject;
|
|
4
|
+
export type Cache = import("../../types/mcdev.d.js").Cache;
|
|
5
|
+
export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract;
|
|
6
|
+
export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem;
|
|
7
|
+
export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem;
|
|
8
|
+
export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc;
|
|
9
|
+
export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem;
|
|
10
|
+
export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff;
|
|
11
|
+
export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj;
|
|
12
|
+
export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap;
|
|
13
|
+
export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj;
|
|
14
|
+
export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList;
|
|
15
|
+
export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap;
|
|
16
|
+
export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams;
|
|
17
|
+
export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap;
|
|
18
|
+
export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo;
|
|
19
19
|
declare namespace Init {
|
|
20
20
|
/**
|
|
21
21
|
* helper method for this.upgradeProject that upgrades project config if needed
|
|
@@ -23,7 +23,7 @@ declare namespace Init {
|
|
|
23
23
|
* @param {Mcdevrc} properties config file's json
|
|
24
24
|
* @returns {Promise.<boolean>} returns true if worked without errors
|
|
25
25
|
*/
|
|
26
|
-
function fixMcdevConfig(properties:
|
|
26
|
+
function fixMcdevConfig(properties: Mcdevrc): Promise<boolean>;
|
|
27
27
|
/**
|
|
28
28
|
* handles creation/update of all config file from the boilerplate
|
|
29
29
|
*
|
|
@@ -39,7 +39,7 @@ declare namespace Init {
|
|
|
39
39
|
* @param {string} fieldName dot-concatenated object-path that needs adding
|
|
40
40
|
* @returns {void}
|
|
41
41
|
*/
|
|
42
|
-
function _updateLeaf(propertiersCur:
|
|
42
|
+
function _updateLeaf(propertiersCur: object, defaultPropsCur: object, fieldName: string): void;
|
|
43
43
|
/**
|
|
44
44
|
* returns list of files that need to be updated
|
|
45
45
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.config.d.ts","sourceRoot":"","sources":["../../../lib/util/init.config.js"],"names":[],"mappings":";yBAaa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;oBACzC,OAAO,wBAAwB,EAAE,KAAK;0BACtC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;2BAChD,OAAO,wBAAwB,EAAE,YAAY;sBAC7C,OAAO,wBAAwB,EAAE,OAAO;+BACxC,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;oCACnD,OAAO,wBAAwB,EAAE,qBAAqB;mCACtD,OAAO,wBAAwB,EAAE,oBAAoB;gCACrD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2BAC5C,OAAO,wBAAwB,EAAE,YAAY;;IAQtD;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"init.config.d.ts","sourceRoot":"","sources":["../../../lib/util/init.config.js"],"names":[],"mappings":";yBAaa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;oBACzC,OAAO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