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
|
@@ -45,14 +45,14 @@ export namespace Util {
|
|
|
45
45
|
* @param {Mcdevrc} properties local mcdev config
|
|
46
46
|
* @returns {boolean} found market or not
|
|
47
47
|
*/
|
|
48
|
-
function checkMarket(market: string, properties:
|
|
48
|
+
function checkMarket(market: string, properties: Mcdevrc): boolean;
|
|
49
49
|
/**
|
|
50
50
|
* ensure provided MarketList exists and it's content including markets and BUs checks out
|
|
51
51
|
*
|
|
52
52
|
* @param {string} mlName name of marketList
|
|
53
53
|
* @param {Mcdevrc} properties General configuration to be used in retrieve
|
|
54
54
|
*/
|
|
55
|
-
function verifyMarketList(mlName: string, properties:
|
|
55
|
+
function verifyMarketList(mlName: string, properties: Mcdevrc): void;
|
|
56
56
|
/**
|
|
57
57
|
* used to ensure the program tells surrounding software that an unrecoverable error occured
|
|
58
58
|
*
|
|
@@ -91,7 +91,7 @@ export namespace Util {
|
|
|
91
91
|
* @param {boolean} [handleOutside] if the API reponse is irregular this allows you to handle it outside of this generic method
|
|
92
92
|
* @returns {boolean} bu found or not
|
|
93
93
|
*/
|
|
94
|
-
function _isValidBU(properties:
|
|
94
|
+
function _isValidBU(properties: Mcdevrc, businessUnit: string, handleOutside?: boolean): boolean;
|
|
95
95
|
/**
|
|
96
96
|
* helper that deals with extracting type and subtype
|
|
97
97
|
*
|
|
@@ -108,15 +108,13 @@ export namespace Util {
|
|
|
108
108
|
* @returns {string[]} type choices
|
|
109
109
|
*/
|
|
110
110
|
function getRetrieveTypeChoices(): string[];
|
|
111
|
-
function _createNewLoggerTransport(noLogFile?: boolean):
|
|
111
|
+
function _createNewLoggerTransport(noLogFile?: boolean): object;
|
|
112
112
|
let loggerTransports: any;
|
|
113
113
|
let logger: Logger;
|
|
114
114
|
function startLogger(restart?: boolean, noLogFile?: boolean): void;
|
|
115
115
|
function metadataLogger(level: string, type: string, method: string, payload: any, source?: string): void;
|
|
116
|
-
function replaceByObject(str:
|
|
117
|
-
|
|
118
|
-
}): any;
|
|
119
|
-
function inverseGet(objs: any, val: string | number): string;
|
|
116
|
+
function replaceByObject(str: string | object, obj: TemplateMap): string | object;
|
|
117
|
+
function inverseGet(objs: object, val: string | number): string;
|
|
120
118
|
/**
|
|
121
119
|
*helper for Mcdev.fixKeys. Retrieve dependent metadata
|
|
122
120
|
*
|
|
@@ -140,7 +138,7 @@ export namespace Util {
|
|
|
140
138
|
* @param {object} obj some parent object
|
|
141
139
|
* @returns {any} value of obj.path
|
|
142
140
|
*/
|
|
143
|
-
function resolveObjPath(path: string, obj:
|
|
141
|
+
function resolveObjPath(path: string, obj: object): any;
|
|
144
142
|
/**
|
|
145
143
|
* helper to run other commands as if run manually by user
|
|
146
144
|
*
|
|
@@ -158,7 +156,7 @@ export namespace Util {
|
|
|
158
156
|
* @param {string} searchValue the value which is being looked for
|
|
159
157
|
* @returns {MetadataTypeItem} metadata to be used in building template
|
|
160
158
|
*/
|
|
161
|
-
function templateSearchResult(results:
|
|
159
|
+
function templateSearchResult(results: MetadataTypeItem[], keyToSearch: string, searchValue: string): MetadataTypeItem;
|
|
162
160
|
/**
|
|
163
161
|
* configures what is displayed in the console
|
|
164
162
|
*
|
|
@@ -227,7 +225,7 @@ export namespace Util {
|
|
|
227
225
|
* @param {boolean} [isId] optional flag to indicate if key is an id
|
|
228
226
|
* @returns {string} string to be appended to log message
|
|
229
227
|
*/
|
|
230
|
-
function getKeysString(keyArr: string | string
|
|
228
|
+
function getKeysString(keyArr: string[] | string, isId?: boolean): string;
|
|
231
229
|
/**
|
|
232
230
|
* pause execution of code; useful when multiple server calls are dependent on each other and might not be executed right away
|
|
233
231
|
*
|
|
@@ -269,7 +267,7 @@ export namespace Util {
|
|
|
269
267
|
* @param {object} [filters] only used in recursive calls
|
|
270
268
|
* @returns {boolean} true if no LIKE filter is defined or if all filters match
|
|
271
269
|
*/
|
|
272
|
-
function fieldsLike(metadata:
|
|
270
|
+
function fieldsLike(metadata: MetadataTypeItem, filters?: object): boolean;
|
|
273
271
|
/**
|
|
274
272
|
* helper used by SOAP methods to ensure the type always uses an upper-cased first letter
|
|
275
273
|
*
|
|
@@ -285,9 +283,7 @@ export namespace Util {
|
|
|
285
283
|
* @param {boolean} [returnEmpty] returns array with null element if false/not set; Retriever needs this to be false; Deployer needs it to be true
|
|
286
284
|
* @returns {TypeKeyCombo} -
|
|
287
285
|
*/
|
|
288
|
-
function createTypeKeyCombo(typeArr: string[], keyArr: string[], returnEmpty?: boolean):
|
|
289
|
-
[x: string]: string[];
|
|
290
|
-
};
|
|
286
|
+
function createTypeKeyCombo(typeArr: string[], keyArr: string[], returnEmpty?: boolean): TypeKeyCombo;
|
|
291
287
|
/**
|
|
292
288
|
* async version of Array.find()
|
|
293
289
|
* returns the first element in the provided array that satisfies the provided testin function
|
|
@@ -296,27 +292,27 @@ export namespace Util {
|
|
|
296
292
|
* @param {Function} asyncCallback callback
|
|
297
293
|
* @returns {Promise.<any | undefined>} first element that passed the test
|
|
298
294
|
*/
|
|
299
|
-
function findAsync(arr: any[], asyncCallback: Function): Promise<any>;
|
|
295
|
+
function findAsync(arr: any[], asyncCallback: Function): Promise<any | undefined>;
|
|
300
296
|
}
|
|
301
|
-
export type AuthObject = import(
|
|
302
|
-
export type BuObject = import(
|
|
303
|
-
export type Cache = import(
|
|
304
|
-
export type CodeExtract = import(
|
|
305
|
-
export type CodeExtractItem = import(
|
|
306
|
-
export type DeltaPkgItem = import(
|
|
307
|
-
export type McdevLogger = import(
|
|
308
|
-
export type Logger = import(
|
|
309
|
-
export type Mcdevrc = import(
|
|
310
|
-
export type MetadataTypeItem = import(
|
|
311
|
-
export type MetadataTypeItemDiff = import(
|
|
312
|
-
export type MetadataTypeItemObj = import(
|
|
313
|
-
export type MetadataTypeMap = import(
|
|
314
|
-
export type MetadataTypeMapObj = import(
|
|
315
|
-
export type MultiMetadataTypeList = import(
|
|
316
|
-
export type MultiMetadataTypeMap = import(
|
|
317
|
-
export type SkipInteraction = import(
|
|
318
|
-
export type SoapRequestParams = import(
|
|
319
|
-
export type TemplateMap = import(
|
|
320
|
-
export type TypeKeyCombo = import(
|
|
321
|
-
export type SDKError = import(
|
|
297
|
+
export type AuthObject = import("../../types/mcdev.d.js").AuthObject;
|
|
298
|
+
export type BuObject = import("../../types/mcdev.d.js").BuObject;
|
|
299
|
+
export type Cache = import("../../types/mcdev.d.js").Cache;
|
|
300
|
+
export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract;
|
|
301
|
+
export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem;
|
|
302
|
+
export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem;
|
|
303
|
+
export type McdevLogger = import("../../types/mcdev.d.js").McdevLogger;
|
|
304
|
+
export type Logger = import("../../types/mcdev.d.js").Logger;
|
|
305
|
+
export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc;
|
|
306
|
+
export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem;
|
|
307
|
+
export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff;
|
|
308
|
+
export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj;
|
|
309
|
+
export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap;
|
|
310
|
+
export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj;
|
|
311
|
+
export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList;
|
|
312
|
+
export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap;
|
|
313
|
+
export type SkipInteraction = import("../../types/mcdev.d.js").SkipInteraction;
|
|
314
|
+
export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams;
|
|
315
|
+
export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap;
|
|
316
|
+
export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo;
|
|
317
|
+
export type SDKError = import("../../types/mcdev.d.js").SDKError;
|
|
322
318
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../lib/util/util.js"],"names":[],"mappings":";;;;;;;;yBAkDe,eAAe;;;;IAK1B;;;;;;OAMG;IACH
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../lib/util/util.js"],"names":[],"mappings":";;;;;;;;yBAkDe,eAAe;;;;IAK1B;;;;;;OAMG;IACH,sCAJW;YAAQ,MAAM,GAAC,GAAC;KAAC,iBACjB,MAAM,EAAE,GACN;YAAQ,MAAM,GAAC,GAAC;KAAC,CAY7B;IACD;;;;;;OAMG;IACH,iCAJW,MAAM,EAAE,UACR,MAAM,GACJ,OAAO,CAInB;IACD;;;;;;OAMG;IACH,sCAJW,MAAM,EAAE,UACR,MAAM,GACJ,MAAM,CAIlB;IACD;;;;;;OAMG;IACH,6BAJW,MAAM,cACN,OAAO,GACL,OAAO,CAcnB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,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;8BACrD,OAAO,wBAAwB,EAAE,eAAe;gCAChD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2BAC5C,OAAO,wBAAwB,EAAE,YAAY;uBAC7C,OAAO,wBAAwB,EAAE,QAAQ"}
|
|
@@ -33,7 +33,7 @@ export type BuObject = {
|
|
|
33
33
|
export type TemplateMap = {
|
|
34
34
|
[x: string]: string;
|
|
35
35
|
};
|
|
36
|
-
export type SupportedMetadataTypes =
|
|
36
|
+
export type SupportedMetadataTypes = "asset" | "asset-archive" | "asset-asset" | "asset-audio" | "asset-block" | "asset-code" | "asset-document" | "asset-image" | "asset-message" | "asset-other" | "asset-rawimage" | "asset-template" | "asset-textfile" | "asset-video" | "attributeGroup" | "attributeSet" | "automation" | "campaign" | "contentArea" | "dataExtension" | "dataExtensionField" | "dataExtensionTemplate" | "dataExtract" | "dataExtractType" | "discovery" | "deliveryProfile" | "email" | "emailSend" | "event" | "fileLocation" | "fileTransfer" | "filter" | "folder" | "importFile" | "journey" | "list" | "mobileCode" | "mobileKeyword" | "mobileMessage" | "query" | "role" | "script" | "sendClassification" | "senderProfile" | "transactionalEmail" | "transactionalPush" | "transactionalSMS" | "triggeredSend" | "user" | "verification";
|
|
37
37
|
/**
|
|
38
38
|
* object-key=SupportedMetadataTypes, value=array of external keys
|
|
39
39
|
*/
|
|
@@ -117,7 +117,7 @@ export type CodeExtract = {
|
|
|
117
117
|
/**
|
|
118
118
|
* optional for binary files
|
|
119
119
|
*/
|
|
120
|
-
encoding?:
|
|
120
|
+
encoding?: "base64";
|
|
121
121
|
};
|
|
122
122
|
export type QueryItem = {
|
|
123
123
|
/**
|
|
@@ -155,7 +155,7 @@ export type QueryItem = {
|
|
|
155
155
|
/**
|
|
156
156
|
* defines how the query writes into the target data extension
|
|
157
157
|
*/
|
|
158
|
-
targetUpdateTypeName:
|
|
158
|
+
targetUpdateTypeName: "Overwrite" | "Update" | "Append";
|
|
159
159
|
/**
|
|
160
160
|
* 0|1|2, mapped to targetUpdateTypeName via this.definition.targetUpdateTypeMapping
|
|
161
161
|
*/
|
|
@@ -231,7 +231,7 @@ export type AssetItem = {
|
|
|
231
231
|
export type AssetMap = {
|
|
232
232
|
[x: string]: AssetItem;
|
|
233
233
|
};
|
|
234
|
-
export type AssetSubType =
|
|
234
|
+
export type AssetSubType = "archive" | "asset" | "audio" | "block" | "code" | "document" | "image" | "message" | "other" | "rawimage" | "template" | "textfile" | "video";
|
|
235
235
|
export type DataExtensionFieldItem = {
|
|
236
236
|
/**
|
|
237
237
|
* id
|
|
@@ -278,7 +278,7 @@ export type DataExtensionFieldItem = {
|
|
|
278
278
|
/**
|
|
279
279
|
* can only be set on create
|
|
280
280
|
*/
|
|
281
|
-
FieldType:
|
|
281
|
+
FieldType: "Text" | "Number" | "Date" | "Boolean" | "Decimal" | "EmailAddress" | "Phone" | "Locale";
|
|
282
282
|
/**
|
|
283
283
|
* field length
|
|
284
284
|
*/
|
|
@@ -339,7 +339,7 @@ export type DataExtensionItem = {
|
|
|
339
339
|
/**
|
|
340
340
|
* retrieved from associated folder
|
|
341
341
|
*/
|
|
342
|
-
r__folder_ContentType:
|
|
342
|
+
r__folder_ContentType: "dataextension" | "salesforcedataextension" | "synchronizeddataextension" | "shared_dataextension" | "shared_salesforcedataextension";
|
|
343
343
|
/**
|
|
344
344
|
* folder path in which this DE is saved
|
|
345
345
|
*/
|
|
@@ -369,7 +369,7 @@ export type DataExtensionItem = {
|
|
|
369
369
|
/**
|
|
370
370
|
* readable name of retention policy
|
|
371
371
|
*/
|
|
372
|
-
c__retentionPolicy?:
|
|
372
|
+
c__retentionPolicy?: "none" | "allRecordsAndDataextension" | "allRecords" | "individialRecords";
|
|
373
373
|
/**
|
|
374
374
|
* number of days/weeks/months/years before retention kicks in
|
|
375
375
|
*/
|
|
@@ -402,7 +402,7 @@ export type UserDocument = {
|
|
|
402
402
|
/**
|
|
403
403
|
* -
|
|
404
404
|
*/
|
|
405
|
-
TYPE:
|
|
405
|
+
TYPE: "User" | "Installed Package" | "Inactivated User";
|
|
406
406
|
/**
|
|
407
407
|
* equal to UserID; optional in update/create calls
|
|
408
408
|
*/
|
|
@@ -491,11 +491,11 @@ export type UserDocument = {
|
|
|
491
491
|
/**
|
|
492
492
|
* -
|
|
493
493
|
*/
|
|
494
|
-
c__type:
|
|
494
|
+
c__type: "User" | "Installed Package";
|
|
495
495
|
/**
|
|
496
496
|
* (API only)
|
|
497
497
|
*/
|
|
498
|
-
IsLocked?: boolean
|
|
498
|
+
IsLocked?: boolean;
|
|
499
499
|
/**
|
|
500
500
|
* used to unlock a user that has IsLocked === true
|
|
501
501
|
*/
|
|
@@ -522,12 +522,12 @@ export type UserDocument = {
|
|
|
522
522
|
/**
|
|
523
523
|
* fr-CA, en-US, ...
|
|
524
524
|
*/
|
|
525
|
-
c__LocaleCode:
|
|
525
|
+
c__LocaleCode: "en-US" | "fr-CA" | "fr-FR" | "de-DE" | "it-IT" | "ja-JP" | "pt-BR" | "es-419" | "es-ES";
|
|
526
526
|
/**
|
|
527
527
|
* (API only)
|
|
528
528
|
*/
|
|
529
529
|
Locale?: {
|
|
530
|
-
LocaleCode?:
|
|
530
|
+
LocaleCode?: "en-US" | "fr-CA" | "fr-FR" | "de-DE" | "it-IT" | "ja-JP" | "pt-BR" | "es-419" | "es-ES";
|
|
531
531
|
};
|
|
532
532
|
/**
|
|
533
533
|
* -
|
|
@@ -548,7 +548,45 @@ export type UserDocumentDiff = {
|
|
|
548
548
|
export type UserDocumentMap = {
|
|
549
549
|
[x: string]: UserDocument;
|
|
550
550
|
};
|
|
551
|
-
export type
|
|
551
|
+
export type UserDocumentDocumentHelper = {
|
|
552
|
+
/**
|
|
553
|
+
* docs: user.ActiveFlag === true ? '✓' : '-'
|
|
554
|
+
*/
|
|
555
|
+
ActiveFlagDocs: string;
|
|
556
|
+
/**
|
|
557
|
+
* docs: user.IsAPIUser === true ? '✓' : '-'
|
|
558
|
+
*/
|
|
559
|
+
IsAPIUserDocs: string;
|
|
560
|
+
/**
|
|
561
|
+
* docs: user.MustChangePassword === true ? '✓' : '-'
|
|
562
|
+
*/
|
|
563
|
+
MustChangePasswordDocs: string;
|
|
564
|
+
/**
|
|
565
|
+
* docs: default MID; BUName after we resolved it
|
|
566
|
+
*/
|
|
567
|
+
DefaultBusinessUnitDocs: string;
|
|
568
|
+
/**
|
|
569
|
+
* docs: list of roles as concatenated string
|
|
570
|
+
*/
|
|
571
|
+
RolesDocs: string;
|
|
572
|
+
/**
|
|
573
|
+
* docs: list of associated BUs as concatenated string
|
|
574
|
+
*/
|
|
575
|
+
AssociatedBusDocs: string;
|
|
576
|
+
/**
|
|
577
|
+
* docs: user name who last modified this user
|
|
578
|
+
*/
|
|
579
|
+
ModifiedBy: string | number;
|
|
580
|
+
/**
|
|
581
|
+
* docs: name of timezone
|
|
582
|
+
*/
|
|
583
|
+
TimeZoneName: string;
|
|
584
|
+
/**
|
|
585
|
+
* docs: if the user cannot login
|
|
586
|
+
*/
|
|
587
|
+
IsLockedDocs: string;
|
|
588
|
+
};
|
|
589
|
+
export type UserDocumentDocument = UserDocument & UserDocumentDocumentHelper;
|
|
552
590
|
export type AccountUserConfiguration = {
|
|
553
591
|
/**
|
|
554
592
|
* wrapper
|
|
@@ -699,12 +737,12 @@ export type AutomationScheduleSoap = {
|
|
|
699
737
|
*/
|
|
700
738
|
Recurrence: {
|
|
701
739
|
$?: object;
|
|
702
|
-
YearlyRecurrencePatternType?:
|
|
703
|
-
MonthlyRecurrencePatternType?:
|
|
704
|
-
WeeklyRecurrencePatternType?:
|
|
705
|
-
DailyRecurrencePatternType?:
|
|
706
|
-
MinutelyRecurrencePatternType?:
|
|
707
|
-
HourlyRecurrencePatternType?:
|
|
740
|
+
YearlyRecurrencePatternType?: "ByYear";
|
|
741
|
+
MonthlyRecurrencePatternType?: "ByMonth";
|
|
742
|
+
WeeklyRecurrencePatternType?: "ByWeek";
|
|
743
|
+
DailyRecurrencePatternType?: "ByDay";
|
|
744
|
+
MinutelyRecurrencePatternType?: "Interval";
|
|
745
|
+
HourlyRecurrencePatternType?: "Interval";
|
|
708
746
|
YearInterval?: number;
|
|
709
747
|
MonthInterval?: number;
|
|
710
748
|
WeekInterval?: number;
|
|
@@ -742,7 +780,7 @@ export type AutomationScheduleSoap = {
|
|
|
742
780
|
/**
|
|
743
781
|
* set to 'EndOn' if AutomationSchedule.icalRecur contains 'UNTIL'; otherwise to 'EndAfter'
|
|
744
782
|
*/
|
|
745
|
-
RecurrenceRangeType:
|
|
783
|
+
RecurrenceRangeType: "EndOn" | "EndAfter";
|
|
746
784
|
/**
|
|
747
785
|
* only exists if RecurrenceRangeType=='EndAfter'
|
|
748
786
|
*/
|
|
@@ -792,11 +830,11 @@ export type AutomationItem = {
|
|
|
792
830
|
/**
|
|
793
831
|
* Starting Source = Schedule / File Drop
|
|
794
832
|
*/
|
|
795
|
-
type?:
|
|
833
|
+
type?: "scheduled" | "triggered";
|
|
796
834
|
/**
|
|
797
835
|
* automation status
|
|
798
836
|
*/
|
|
799
|
-
status?:
|
|
837
|
+
status?: "Scheduled" | "Running" | "Ready" | "Building" | "PausedSchedule" | "InactiveTrigger";
|
|
800
838
|
/**
|
|
801
839
|
* automation status
|
|
802
840
|
*/
|
|
@@ -850,7 +888,7 @@ export type VerificationItem = {
|
|
|
850
888
|
/**
|
|
851
889
|
* key
|
|
852
890
|
*/
|
|
853
|
-
verificationType:
|
|
891
|
+
verificationType: "IsEqualTo" | "IsLessThan" | "IsGreaterThan" | "IsOutsideRange" | "IsInsideRange" | "IsNotEqualTo" | "IsNotLessThan" | "IsNotGreaterThan" | "IsNotOutsideRange" | "IsNotInsideRange";
|
|
854
892
|
/**
|
|
855
893
|
* used for all verificationTypes; lower value for IsOutsideRange, IsInsideRange, IsNotOutsideRange, IsNotInsideRange
|
|
856
894
|
*/
|
|
@@ -943,7 +981,7 @@ export type McdevDeltaPkgItem = {
|
|
|
943
981
|
/**
|
|
944
982
|
* what git recognized as an action
|
|
945
983
|
*/
|
|
946
|
-
gitAction:
|
|
984
|
+
gitAction: "move" | "add/update" | "delete";
|
|
947
985
|
/**
|
|
948
986
|
* mcdev credential name
|
|
949
987
|
*/
|
|
@@ -953,27 +991,10 @@ export type McdevDeltaPkgItem = {
|
|
|
953
991
|
*/
|
|
954
992
|
_businessUnit: string;
|
|
955
993
|
};
|
|
956
|
-
export type DeltaPkgItem = import(
|
|
957
|
-
export type
|
|
958
|
-
export type
|
|
959
|
-
export type SDKsoap = any;
|
|
960
|
-
export type RestError = any;
|
|
961
|
-
export type SOAPError = any;
|
|
994
|
+
export type DeltaPkgItem = import("simple-git").DiffResultTextFile & McdevDeltaPkgItem;
|
|
995
|
+
export type RestError = import("sfmc-sdk/util").RestError;
|
|
996
|
+
export type SOAPError = import("sfmc-sdk/util").SOAPError;
|
|
962
997
|
export type SDKError = SOAPError & RestError;
|
|
963
|
-
export type SDK = {
|
|
964
|
-
/**
|
|
965
|
-
* SDKauth
|
|
966
|
-
*/
|
|
967
|
-
auth: any;
|
|
968
|
-
/**
|
|
969
|
-
* SDKrest
|
|
970
|
-
*/
|
|
971
|
-
rest: any;
|
|
972
|
-
/**
|
|
973
|
-
* SDKsoap
|
|
974
|
-
*/
|
|
975
|
-
soap: any;
|
|
976
|
-
};
|
|
977
998
|
/**
|
|
978
999
|
* signals what to insert automatically for things usually asked via wizard
|
|
979
1000
|
*/
|
|
@@ -1068,7 +1089,7 @@ export type SoapFilterSimple = {
|
|
|
1068
1089
|
/**
|
|
1069
1090
|
* various options
|
|
1070
1091
|
*/
|
|
1071
|
-
simpleOperator:
|
|
1092
|
+
simpleOperator: "equals" | "notEquals" | "isNull" | "isNotNull" | "greaterThan" | "lessThan" | "greaterThanOrEqual" | "lessThanOrEqual" | "between" | "IN" | "in" | "like";
|
|
1072
1093
|
/**
|
|
1073
1094
|
* field value
|
|
1074
1095
|
*/
|
|
@@ -1082,7 +1103,7 @@ export type SoapFilterComplex = {
|
|
|
1082
1103
|
/**
|
|
1083
1104
|
* various options
|
|
1084
1105
|
*/
|
|
1085
|
-
logicalOperator:
|
|
1106
|
+
logicalOperator: "AND" | "OR";
|
|
1086
1107
|
/**
|
|
1087
1108
|
* string for simple or a new filter-object for complex; omit for isNull and isNotNull
|
|
1088
1109
|
*/
|
|
@@ -1144,7 +1165,7 @@ export type AssetRequestParams = {
|
|
|
1144
1165
|
*/
|
|
1145
1166
|
sort?: {
|
|
1146
1167
|
property: string;
|
|
1147
|
-
direction:
|
|
1168
|
+
direction: "ASC" | "DESC";
|
|
1148
1169
|
}[];
|
|
1149
1170
|
/**
|
|
1150
1171
|
* simple or complex filter
|
|
@@ -1159,7 +1180,7 @@ export type AssetFilter = {
|
|
|
1159
1180
|
/**
|
|
1160
1181
|
* various options
|
|
1161
1182
|
*/
|
|
1162
|
-
logicalOperator:
|
|
1183
|
+
logicalOperator: "AND" | "OR";
|
|
1163
1184
|
/**
|
|
1164
1185
|
* string for simple or a new filter-object for complex; omit for isNull and isNotNull
|
|
1165
1186
|
*/
|
|
@@ -1173,7 +1194,7 @@ export type AssetFilterSimple = {
|
|
|
1173
1194
|
/**
|
|
1174
1195
|
* various options
|
|
1175
1196
|
*/
|
|
1176
|
-
simpleOperator:
|
|
1197
|
+
simpleOperator: "equal" | "notEquals" | "isNull" | "isNotNull" | "greaterThan" | "lessThan" | "greaterThanOrEqual" | "lessThanOrEqual" | "between" | "IN" | "in" | "like";
|
|
1177
1198
|
/**
|
|
1178
1199
|
* field value
|
|
1179
1200
|
*/
|
|
@@ -1221,7 +1242,7 @@ export type Mcdevrc = {
|
|
|
1221
1242
|
*/
|
|
1222
1243
|
version: string;
|
|
1223
1244
|
};
|
|
1224
|
-
export type LoggerLevel =
|
|
1245
|
+
export type LoggerLevel = "error" | "verbose" | "info" | "debug";
|
|
1225
1246
|
export type McdevLogger = {
|
|
1226
1247
|
/**
|
|
1227
1248
|
* (msg) print info message
|
|
@@ -1236,7 +1257,7 @@ export type McdevLogger = {
|
|
|
1236
1257
|
*/
|
|
1237
1258
|
errorStack: Function;
|
|
1238
1259
|
};
|
|
1239
|
-
export type Logger = import(
|
|
1260
|
+
export type Logger = import("winston").Logger & McdevLogger;
|
|
1240
1261
|
export type AssetItemSimple = {
|
|
1241
1262
|
id: number;
|
|
1242
1263
|
key: string;
|
|
@@ -1248,7 +1269,7 @@ export type AssetItemSimpleMap = {
|
|
|
1248
1269
|
export type AssetItemIdSimpleMap = {
|
|
1249
1270
|
[x: number]: AssetItemSimple;
|
|
1250
1271
|
};
|
|
1251
|
-
export type ContentBlockConversionTypes =
|
|
1272
|
+
export type ContentBlockConversionTypes = "id" | "key" | "name";
|
|
1252
1273
|
export type ExplainType = {
|
|
1253
1274
|
/**
|
|
1254
1275
|
* readable name of type
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcdev.d.d.ts","sourceRoot":"","sources":["../../types/mcdev.d.js"],"names":[],"mappings":";;;;;;eAEc,MAAM;;;;mBACN,MAAM;;;;aACN,MAAM;;;;UACN,MAAM;;;;UACN,MAAM;;;;mBACN,MAAM;;;;iBACN,MAAM
|
|
1
|
+
{"version":3,"file":"mcdev.d.d.ts","sourceRoot":"","sources":["../../types/mcdev.d.js"],"names":[],"mappings":";;;;;;eAEc,MAAM;;;;mBACN,MAAM;;;;aACN,MAAM;;;;UACN,MAAM;;;;UACN,MAAM;;;;mBACN,MAAM;;;;iBACN,MAAM;;0BAGP;QAAQ,MAAM,GAAE,MAAM;CAAC;qCACvB,OAAO,GAAC,eAAe,GAAC,aAAa,GAAC,aAAa,GAAC,aAAa,GAAC,YAAY,GAAC,gBAAgB,GAAC,aAAa,GAAC,eAAe,GAAC,aAAa,GA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GAAC,SAAS,GAAC,MAAM,GAAC,OAAO;;;;;YAE/B,WAAW;;;;;;;;;;qBAGZ,OAAO,SAAS,EAAE,MAAM,GAAG,WAAW;8BAGtC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC;iCACvC;QAAQ,MAAM,GAAE,eAAe;CAAC;mCAChC;QAAQ,MAAM,GAAE,eAAe;CAAC;0CAChC,IAAI,GAAC,KAAK,GAAC,MAAM;;;;;UAIhB,MAAM;;;;aACN,MAAM;;;;iBACN,MAAM;;;;uBACN,OAAO,GAAG,MAAM,EAAE;;;;cAE7B;QAA6B,QAAQ,EAA1B,OAAO;QACW,MAAM,EAAxB,OAAO;QACW,MAAM,EAAxB,OAAO;QACW,MAAM,EAAxB,OAAO;QACW,SAAS,EAA3B,OAAO;QACW,aAAa,EAA/B,OAAO;QACW,kBAAkB,EAApC,OAAO;KACpB"}
|
package/eslint.config.js
CHANGED
package/lib/Deployer.js
CHANGED
|
@@ -253,7 +253,7 @@ class Deployer {
|
|
|
253
253
|
* @returns {Promise.<MultiMetadataTypeMap>} Promise of all deployed metadata
|
|
254
254
|
*/
|
|
255
255
|
async _deploy(types, keyArr) {
|
|
256
|
-
const typeArr =
|
|
256
|
+
const typeArr = types ? (Array.isArray(types) ? types : Object.keys(types)) : undefined;
|
|
257
257
|
const typeKeyCombo = Array.isArray(types)
|
|
258
258
|
? Util.createTypeKeyCombo(typeArr, keyArr, true)
|
|
259
259
|
: types;
|
package/lib/Retriever.js
CHANGED
|
@@ -63,7 +63,10 @@ class Retriever {
|
|
|
63
63
|
/** @type {TypeKeyCombo} */
|
|
64
64
|
const typeKeyMap =
|
|
65
65
|
!namesOrKeys || Array.isArray(namesOrKeys)
|
|
66
|
-
? Util.createTypeKeyCombo(
|
|
66
|
+
? Util.createTypeKeyCombo(
|
|
67
|
+
metadataTypes,
|
|
68
|
+
Array.isArray(namesOrKeys) ? namesOrKeys : undefined
|
|
69
|
+
)
|
|
67
70
|
: namesOrKeys;
|
|
68
71
|
// ensure we know which real dependencies we have to ensure we cache those completely
|
|
69
72
|
const dependencies = this._getTypeDependencies(metadataTypes);
|