mcdev 7.0.3 → 7.0.4
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 +1 -0
- package/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md +1 -0
- package/.github/workflows/code-test.yml +48 -0
- package/.husky/pre-commit +1 -1
- package/@types/lib/Builder.d.ts +13 -13
- package/@types/lib/Builder.d.ts.map +1 -1
- package/@types/lib/Deployer.d.ts +16 -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 +34 -34
- package/@types/lib/index.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Asset.d.ts +18 -43
- package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
- package/@types/lib/metadataTypes/AttributeGroup.d.ts +3 -8
- package/@types/lib/metadataTypes/AttributeGroup.d.ts.map +1 -1
- package/@types/lib/metadataTypes/AttributeSet.d.ts +5 -21
- package/@types/lib/metadataTypes/AttributeSet.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Automation.d.ts +36 -49
- package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Campaign.d.ts +11 -18
- package/@types/lib/metadataTypes/Campaign.d.ts.map +1 -1
- package/@types/lib/metadataTypes/ContentArea.d.ts +12 -31
- package/@types/lib/metadataTypes/ContentArea.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtension.d.ts +23 -31
- package/@types/lib/metadataTypes/DataExtension.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtensionField.d.ts +12 -18
- package/@types/lib/metadataTypes/DataExtensionField.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtensionTemplate.d.ts +11 -11
- package/@types/lib/metadataTypes/DataExtensionTemplate.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtract.d.ts +12 -28
- package/@types/lib/metadataTypes/DataExtract.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtractType.d.ts +10 -10
- package/@types/lib/metadataTypes/DataExtractType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DeliveryProfile.d.ts +10 -10
- package/@types/lib/metadataTypes/DeliveryProfile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Discovery.d.ts +10 -10
- package/@types/lib/metadataTypes/Discovery.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Email.d.ts +13 -34
- package/@types/lib/metadataTypes/Email.d.ts.map +1 -1
- package/@types/lib/metadataTypes/EmailSend.d.ts +10 -10
- package/@types/lib/metadataTypes/EmailSend.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Event.d.ts +19 -16
- package/@types/lib/metadataTypes/Event.d.ts.map +1 -1
- package/@types/lib/metadataTypes/FileLocation.d.ts +10 -10
- package/@types/lib/metadataTypes/FileLocation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/FileTransfer.d.ts +11 -18
- package/@types/lib/metadataTypes/FileTransfer.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Filter.d.ts +10 -10
- package/@types/lib/metadataTypes/Filter.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Folder.d.ts +10 -10
- package/@types/lib/metadataTypes/Folder.d.ts.map +1 -1
- package/@types/lib/metadataTypes/ImportFile.d.ts +11 -15
- package/@types/lib/metadataTypes/ImportFile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Journey.d.ts +13 -32
- package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
- package/@types/lib/metadataTypes/List.d.ts +12 -12
- package/@types/lib/metadataTypes/List.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MetadataType.d.ts +23 -23
- package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileCode.d.ts +11 -20
- package/@types/lib/metadataTypes/MobileCode.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileKeyword.d.ts +14 -14
- package/@types/lib/metadataTypes/MobileKeyword.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileMessage.d.ts +14 -42
- package/@types/lib/metadataTypes/MobileMessage.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Query.d.ts +12 -12
- package/@types/lib/metadataTypes/Query.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Role.d.ts +11 -11
- package/@types/lib/metadataTypes/Role.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Script.d.ts +15 -24
- package/@types/lib/metadataTypes/Script.d.ts.map +1 -1
- package/@types/lib/metadataTypes/SendClassification.d.ts +10 -10
- package/@types/lib/metadataTypes/SendClassification.d.ts.map +1 -1
- package/@types/lib/metadataTypes/SenderProfile.d.ts +11 -19
- package/@types/lib/metadataTypes/SenderProfile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TransactionalEmail.d.ts +12 -12
- package/@types/lib/metadataTypes/TransactionalEmail.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TransactionalMessage.d.ts +11 -32
- package/@types/lib/metadataTypes/TransactionalMessage.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TransactionalPush.d.ts +12 -21
- package/@types/lib/metadataTypes/TransactionalPush.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TransactionalSMS.d.ts +12 -18
- package/@types/lib/metadataTypes/TransactionalSMS.d.ts.map +1 -1
- package/@types/lib/metadataTypes/TriggeredSend.d.ts +13 -18
- package/@types/lib/metadataTypes/TriggeredSend.d.ts.map +1 -1
- package/@types/lib/metadataTypes/User.d.ts +22 -40
- package/@types/lib/metadataTypes/User.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Verification.d.ts +13 -13
- package/@types/lib/metadataTypes/Verification.d.ts.map +1 -1
- package/@types/lib/metadataTypes/definitions/Event.definition.d.ts +7 -1
- 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 +24 -32
- package/@types/lib/util/cache.d.ts.map +1 -1
- package/@types/lib/util/cli.d.ts +27 -27
- 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 +28 -28
- package/@types/lib/util/replaceContentBlockReference.d.ts.map +1 -1
- package/@types/lib/util/util.d.ts +33 -37
- package/@types/lib/util/util.d.ts.map +1 -1
- package/@types/types/mcdev.d.d.ts +73 -52
- package/@types/types/mcdev.d.d.ts.map +1 -1
- package/eslint.config.js +0 -1
- package/lib/Deployer.js +1 -1
- package/lib/Retriever.js +4 -1
- package/lib/cli.js +209 -278
- package/lib/index.js +89 -43
- package/lib/metadataTypes/Asset.js +1 -0
- package/lib/metadataTypes/DataExtension.js +3 -3
- package/lib/metadataTypes/DataExtensionField.js +0 -1
- package/lib/metadataTypes/Event.js +199 -35
- package/lib/metadataTypes/Folder.js +1 -1
- package/lib/metadataTypes/Journey.js +10 -2
- package/lib/metadataTypes/MetadataType.js +3 -4
- package/lib/metadataTypes/Role.js +9 -7
- package/lib/metadataTypes/SenderProfile.js +1 -0
- package/lib/metadataTypes/TransactionalEmail.js +2 -2
- package/lib/metadataTypes/TriggeredSend.js +1 -0
- package/lib/metadataTypes/User.js +31 -27
- package/lib/metadataTypes/definitions/Event.definition.js +8 -8
- package/lib/util/auth.js +0 -1
- package/lib/util/cli.js +0 -1
- package/lib/util/devops.js +2 -3
- package/lib/util/file.js +7 -10
- package/lib/util/replaceContentBlockReference.js +3 -1
- package/package.json +11 -9
- package/test/general.test.js +20 -2
- 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 +232 -0
- package/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withSchema.event-meta.json +193 -0
- 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/event/build-expected.json +228 -0
- package/test/resources/9999999/event/get-expected.json +235 -0
- package/test/resources/9999999/event/post_withExistingDE-callout-expected.json +17 -0
- package/test/resources/9999999/event/post_withExistingDE-expected.json +21 -0
- package/test/resources/9999999/event/post_withSchema-callout-expected.json +196 -0
- package/test/resources/9999999/event/post_withSchema-expected.json +232 -0
- package/test/resources/9999999/event/put-callout-expected.json +202 -0
- package/test/resources/9999999/event/put-expected.json +233 -0
- package/test/resources/9999999/event/template-expected.json +228 -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 +241 -0
- package/test/resources/9999999/interaction/v1/eventDefinitions/post_withExistingDE-response.json +26 -0
- package/test/resources/9999999/interaction/v1/eventDefinitions/post_withSchema-response.json +241 -0
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response.txt +1 -0
- package/test/type.asset.test.js +0 -3
- package/test/type.automation.test.js +1 -1
- package/test/type.dataExtension.test.js +4 -4
- package/test/type.event.test.js +287 -6
- package/test/type.journey.test.js +13 -0
- package/test/type.user.test.js +1 -1
- package/test/utils.js +18 -6
- package/tsconfig.json +6 -1
- package/{jsconfig.json → tsconfig.npmScripts.json} +1 -1
- package/tsconfig.precommit.json +26 -0
- package/types/mcdev.d.js +12 -13
|
@@ -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,K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,kCAPW,OAAO,UACP,MAAM,oBACN,OAAO,mBACP,MAAM,kBACN,MAAM,GACJ,OAAO,CAAE,YAAY,EAAE,CAAC,CAuTpC;IACD;;;;;;;;OAQG;IACH,2CANW,OAAO,SACP,MAAM,YACN,YAAY,EAAE,kBACd,MAAM,GACJ,OAAO,CAAE,YAAY,EAAE,CAAC,CAiLpC;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,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AM,GAAC,MAAM,EAAE,YACf,MAAM,YACN,MAAM,WACN,MAAM,KACJ,OAAO,CAAE,MAAM,CAAC;IAgG7B;;;;;;;;;OASG;6BANQ,MAAM,GAAC,MAAM,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","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C,MAAM,EAAE,CAAC;QAAA,OAAO,EAAC,MAAM,EAAE,CAAA;KAAC,GACjC,OAAO,CAAE,OAAO,CAAC,CAc7B;IACD;;;;OAIG;IACH,4BAFa,OAAO,CAAE,OAAO,CAAC,CAyB7B"}
|
|
@@ -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
|
* Creates template file for properties.json
|
|
@@ -25,7 +25,7 @@ declare namespace Init {
|
|
|
25
25
|
* @param {boolean} [refreshBUs] if this was triggered by mcdev join, do not refresh BUs
|
|
26
26
|
* @returns {Promise.<void>} -
|
|
27
27
|
*/
|
|
28
|
-
function initProject(properties:
|
|
28
|
+
function initProject(properties: Mcdevrc, credentialName?: string, refreshBUs?: boolean): Promise<void>;
|
|
29
29
|
/**
|
|
30
30
|
* Creates template file for properties.json
|
|
31
31
|
*
|
|
@@ -52,7 +52,7 @@ declare namespace Init {
|
|
|
52
52
|
* @param {string} [repoName] if git URL was provided earlier, the repo name was extracted to use it for npm init
|
|
53
53
|
* @returns {Promise.<boolean>} success flag
|
|
54
54
|
*/
|
|
55
|
-
function upgradeProject(properties:
|
|
55
|
+
function upgradeProject(properties: Mcdevrc, initial?: boolean, repoName?: string): Promise<boolean>;
|
|
56
56
|
/**
|
|
57
57
|
* check if git repo is being saved on a cloud service and warn the user
|
|
58
58
|
*
|
|
@@ -67,6 +67,6 @@ declare namespace Init {
|
|
|
67
67
|
* @param {Mcdevrc} properties javascript object in .mcdevrc.json
|
|
68
68
|
* @returns {string[]} list of credential names
|
|
69
69
|
*/
|
|
70
|
-
function _getMissingCredentials(properties:
|
|
70
|
+
function _getMissingCredentials(properties: Mcdevrc): string[];
|
|
71
71
|
}
|
|
72
72
|
//# sourceMappingURL=init.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../lib/util/init.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;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../lib/util/init.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;;;;;;;OAOG;IACH,iCALW,OAAO,mBACP,MAAM,eACN,OAAO,GACL,OAAO,CAAE,IAAI,CAAC,CA2K1B;IAED;;;;OAIG;IACH,wBAFa,OAAO,CAAE,IAAI,CAAC,CA2E1B;IACD;;OAEG;IACH,uCAwDC;IACD;;;;;;OAMG;IACH,6BAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAAE,IAAI,CAAC,CAkC1B;IACD;;;;;;;OAOG;IACH,oCALW,OAAO,YACP,OAAO,aACP,MAAM,GACJ,OAAO,CAAE,OAAO,CAAC,CAuC7B;IACD;;;;;OAKG;IACH,+BAFa,OAAO,CAAE,OAAO,CAAC,CAkD7B;IAED;;;;;;OAMG;IACH,4CAHW,OAAO,GACL,MAAM,EAAE,CAyBpB"}
|
|
@@ -33,8 +33,8 @@ declare namespace Init {
|
|
|
33
33
|
* @returns {Promise.<{'user.name': string, 'user.email': string}>} user.name and user.email
|
|
34
34
|
*/
|
|
35
35
|
function _getGitConfigUser(): Promise<{
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
"user.name": string;
|
|
37
|
+
"user.email": string;
|
|
38
38
|
}>;
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=init.git.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.git.d.ts","sourceRoot":"","sources":["../../../lib/util/init.git.js"],"names":[],"mappings":";;IAcI;;;;OAIG;IACH
|
|
1
|
+
{"version":3,"file":"init.git.d.ts","sourceRoot":"","sources":["../../../lib/util/init.git.js"],"names":[],"mappings":";;IAcI;;;;OAIG;IACH,wBAFa,OAAO,CAAE;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC,CA2DxD;IACD;;;;OAIG;IACH,oBAFa,OAAO,CAAE,IAAI,CAAC,CA0C1B;IACD;;;;OAIG;IACH,0BAFa,OAAO,CAAE,MAAM,CAAC,CAkD5B;IACD;;;;OAIG;IACH,iCAFa,OAAO,CAAE,IAAI,CAAC,CAoE1B;IACD;;;;OAIG;IACH,8BAFa,OAAO,CAAE;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAC,CAAC,CAOjE"}
|
|
@@ -15,8 +15,8 @@ declare namespace Init {
|
|
|
15
15
|
* @param {object} [currentContent] what was read from existing package.json file
|
|
16
16
|
* @returns {Promise.<{script: object, author: string, license: string}>} extended currentContent
|
|
17
17
|
*/
|
|
18
|
-
function _getDefaultPackageJson(currentContent?:
|
|
19
|
-
script:
|
|
18
|
+
function _getDefaultPackageJson(currentContent?: object): Promise<{
|
|
19
|
+
script: object;
|
|
20
20
|
author: string;
|
|
21
21
|
license: string;
|
|
22
22
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.npm.d.ts","sourceRoot":"","sources":["../../../lib/util/init.npm.js"],"names":[],"mappings":";;IAcI;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"init.npm.d.ts","sourceRoot":"","sources":["../../../lib/util/init.npm.js"],"names":[],"mappings":";;IAcI;;;;;;;OAOG;IACH,wCAHW,MAAM,GACJ,OAAO,CAAE,OAAO,CAAC,CA4G7B;IACD;;;;;OAKG;IACH,iDAHW,MAAM,GACJ,OAAO,CAAE;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC,CA8BvE"}
|
|
@@ -36,7 +36,7 @@ export default class ReplaceContentBlockReference {
|
|
|
36
36
|
name: AssetItemSimpleMap;
|
|
37
37
|
};
|
|
38
38
|
/** @type {Object.<string, {id: RegExp[], key: RegExp[], name: RegExp[]}>} */
|
|
39
|
-
static "__#
|
|
39
|
+
static "__#2@#regexBy": {
|
|
40
40
|
[x: string]: {
|
|
41
41
|
id: RegExp[];
|
|
42
42
|
key: RegExp[];
|
|
@@ -61,7 +61,7 @@ export default class ReplaceContentBlockReference {
|
|
|
61
61
|
* @param {boolean} [isSsjs] replaces backslashes with double backslashes in name if true
|
|
62
62
|
* @returns {AssetItemSimple} asset object
|
|
63
63
|
*/
|
|
64
|
-
static "__#
|
|
64
|
+
static "__#2@#getAssetBy"(from: ContentBlockConversionTypes, identifier: string | number, parentName: string, isSsjs?: boolean): AssetItemSimple;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @param {AssetItemSimple} asset asset object
|
|
@@ -69,7 +69,7 @@ export default class ReplaceContentBlockReference {
|
|
|
69
69
|
* @param {boolean} [isSsjs] replaces backslashes with double backslashes in name if true
|
|
70
70
|
* @returns {string} replaced string
|
|
71
71
|
*/
|
|
72
|
-
static "__#
|
|
72
|
+
static "__#2@#replaceWith"(asset: AssetItemSimple, to: ContentBlockConversionTypes, isSsjs?: boolean): string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @param {Mcdevrc} properties properties for auth
|
|
@@ -78,29 +78,29 @@ saved
|
|
|
78
78
|
*/
|
|
79
79
|
static createCacheMap(properties: Mcdevrc, buObject: BuObject): Promise<void>;
|
|
80
80
|
}
|
|
81
|
-
export type AuthObject = import(
|
|
82
|
-
export type BuObject = import(
|
|
83
|
-
export type Cache = import(
|
|
84
|
-
export type CodeExtract = import(
|
|
85
|
-
export type CodeExtractItem = import(
|
|
86
|
-
export type DeltaPkgItem = import(
|
|
87
|
-
export type McdevLogger = import(
|
|
88
|
-
export type Logger = import(
|
|
89
|
-
export type Mcdevrc = import(
|
|
90
|
-
export type MetadataTypeItem = import(
|
|
91
|
-
export type MetadataTypeItemDiff = import(
|
|
92
|
-
export type MetadataTypeItemObj = import(
|
|
93
|
-
export type MetadataTypeMap = import(
|
|
94
|
-
export type MetadataTypeMapObj = import(
|
|
95
|
-
export type MultiMetadataTypeList = import(
|
|
96
|
-
export type MultiMetadataTypeMap = import(
|
|
97
|
-
export type SkipInteraction = import(
|
|
98
|
-
export type SoapRequestParams = import(
|
|
99
|
-
export type TemplateMap = import(
|
|
100
|
-
export type TypeKeyCombo = import(
|
|
101
|
-
export type SDKError = import(
|
|
102
|
-
export type AssetItemSimple = import(
|
|
103
|
-
export type AssetItemSimpleMap = import(
|
|
104
|
-
export type AssetItemIdSimpleMap = import(
|
|
105
|
-
export type ContentBlockConversionTypes = import(
|
|
81
|
+
export type AuthObject = import("../../types/mcdev.d.js").AuthObject;
|
|
82
|
+
export type BuObject = import("../../types/mcdev.d.js").BuObject;
|
|
83
|
+
export type Cache = import("../../types/mcdev.d.js").Cache;
|
|
84
|
+
export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract;
|
|
85
|
+
export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem;
|
|
86
|
+
export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem;
|
|
87
|
+
export type McdevLogger = import("../../types/mcdev.d.js").McdevLogger;
|
|
88
|
+
export type Logger = import("../../types/mcdev.d.js").Logger;
|
|
89
|
+
export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc;
|
|
90
|
+
export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem;
|
|
91
|
+
export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff;
|
|
92
|
+
export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj;
|
|
93
|
+
export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap;
|
|
94
|
+
export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj;
|
|
95
|
+
export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList;
|
|
96
|
+
export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap;
|
|
97
|
+
export type SkipInteraction = import("../../types/mcdev.d.js").SkipInteraction;
|
|
98
|
+
export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams;
|
|
99
|
+
export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap;
|
|
100
|
+
export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo;
|
|
101
|
+
export type SDKError = import("../../types/mcdev.d.js").SDKError;
|
|
102
|
+
export type AssetItemSimple = import("../../types/mcdev.d.js").AssetItemSimple;
|
|
103
|
+
export type AssetItemSimpleMap = import("../../types/mcdev.d.js").AssetItemSimpleMap;
|
|
104
|
+
export type AssetItemIdSimpleMap = import("../../types/mcdev.d.js").AssetItemIdSimpleMap;
|
|
105
|
+
export type ContentBlockConversionTypes = import("../../types/mcdev.d.js").ContentBlockConversionTypes;
|
|
106
106
|
//# sourceMappingURL=replaceContentBlockReference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replaceContentBlockReference.d.ts","sourceRoot":"","sources":["../../../lib/util/replaceContentBlockReference.js"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;GAEG;AACH;IACI,4FAA4F;IAC5F,sBADW;QAAC,EAAE,EAAE,oBAAoB,CAAC;QAAC,GAAG,EAAE,kBAAkB,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAC,CAKtF;IACF,6EAA6E;IAC7E;
|
|
1
|
+
{"version":3,"file":"replaceContentBlockReference.d.ts","sourceRoot":"","sources":["../../../lib/util/replaceContentBlockReference.js"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;GAEG;AACH;IACI,4FAA4F;IAC5F,sBADW;QAAC,EAAE,EAAE,oBAAoB,CAAC;QAAC,GA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