diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index d2069b610..d00126c3f 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -39,6 +39,7 @@ body: label: Version description: What version of our software are you running? (mcdev --version) options: + - 7.0.4 - 7.0.3 - 7.0.2 - 7.0.1 diff --git a/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md b/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md index 40ad2755c..45f59fff4 100644 --- a/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md +++ b/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md @@ -6,6 +6,7 @@ - [ ] Wiki updated with info in ticket listed under **Documentation** - [ ] ran `npm audit fix` +- [ ] ran `npm run lint-ts` - [ ] ran `npm run lint:fix` - [ ] ran `npm run version:major/minor/patch` - [ ] updated [bug template](/.github/ISSUE_TEMPLATE/bug.yml) to include the new version diff --git a/.github/workflows/code-test.yml b/.github/workflows/code-test.yml index 6d3f12a62..bd779eb9b 100644 --- a/.github/workflows/code-test.yml +++ b/.github/workflows/code-test.yml @@ -79,6 +79,54 @@ jobs: - run: npm run lint + # Assuming code passes, run tests + - name: Run mcdev-tests + run: npm run test + lintandTest21: + name: lint & test w/ node v21 + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 21 + registry-url: https://registry.npmjs.org/ + + - run: npm ci --ignore-scripts + + - run: npm run lint + + # Assuming code passes, run tests + - name: Run mcdev-tests + run: npm run test + lintandTest22: + name: lint & test w/ node v22 + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + registry-url: https://registry.npmjs.org/ + + - run: npm ci --ignore-scripts + + - run: npm run lint + # Assuming code passes, run tests - name: Run mcdev-tests run: npm run test diff --git a/.husky/pre-commit b/.husky/pre-commit index e29747d13..32298b867 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,5 +2,5 @@ npx --no lint-staged # update typescript type declarations -npx tsc +npx tsc -p tsconfig.precommit.json git add @types diff --git a/@types/lib/Builder.d.ts b/@types/lib/Builder.d.ts index 7a8594777..594294536 100644 --- a/@types/lib/Builder.d.ts +++ b/@types/lib/Builder.d.ts @@ -1,16 +1,16 @@ export default Builder; -export type BuObject = import('../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../types/mcdev.d.js').CodeExtractItem; -export type Mcdevrc = import('../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../types/mcdev.d.js').MultiMetadataTypeList; -export type SoapRequestParams = import('../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../types/mcdev.d.js").CodeExtractItem; +export type Mcdevrc = import("../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../types/mcdev.d.js").MultiMetadataTypeList; +export type SoapRequestParams = import("../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../types/mcdev.d.js').CodeExtract} CodeExtract @@ -68,7 +68,7 @@ saved constructor(properties: Mcdevrc, buObject: BuObject); properties: import("../types/mcdev.d.js").Mcdevrc; templateDir: string; - retrieveDir: any; + retrieveDir: string; buObject: import("../types/mcdev.d.js").BuObject; targetDir: string[]; /** diff --git a/@types/lib/Builder.d.ts.map b/@types/lib/Builder.d.ts.map index b1dc6192d..1328ff00d 100644 --- a/@types/lib/Builder.d.ts.map +++ b/@types/lib/Builder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Builder.d.ts","sourceRoot":"","sources":["../../lib/Builder.js"],"names":[],"mappings":";uBAUa,OAAO,qBAAqB,EAAE,QAAQ;0BACtC,OAAO,qBAAqB,EAAE,WAAW;8BACzC,OAAO,qBAAqB,EAAE,eAAe;sBAC7C,OAAO,qBAAqB,EAAE,OAAO;+BACrC,OAAO,qBAAqB,EAAE,gBAAgB;mCAC9C,OAAO,qBAAqB,EAAE,oBAAoB;kCAClD,OAAO,qBAAqB,EAAE,mBAAmB;8BACjD,OAAO,qBAAqB,EAAE,eAAe;iCAC7C,OAAO,qBAAqB,EAAE,kBAAkB;oCAChD,OAAO,qBAAqB,EAAE,qBAAqB;gCACnD,OAAO,qBAAqB,EAAE,iBAAiB;0BAC/C,OAAO,qBAAqB,EAAE,WAAW;AAZtD;;;;;;;;;;;;;GAaG;AAEH;;GAEG;AACH;IAsEI;;;;;;;;OAQG;IACH,mCANW,MAAM,gBACN,MAAM,UACN,MAAM,EAAE,UACR,MAAM,GACJ,QAAS,qBAAqB,CAAC,CAuB3C;IAoCD;;;;;;;;OAQG;IACH,qCANW,MAAM,gBACN,MAAM,WACN,MAAM,EAAE,UACR,MAAM,GACJ,QAAS,qBAAqB,CAAC,CAuB3C;IACD;;;;;;;OAOG;IACH,qCALW,MAAM,QACN,MAAM,WACN,MAAM,EAAE,GACN,QAAS,MAAM,CAAC,CAoD5B;IAhOD;;;;;;OAMG;IACH,wBAJW,OAAO,YAEP,QAAQ,EAyBlB;IAtBG,kDAA4B;IAC5B,oBAAkD;IAClD,iBAIE;IACF,iDAAwB;IAMxB,oBAGC;IAED;;OAEG;IACH,UAFU,qBAAqB,CAEb;IAGtB;;;;;;;OAOG;IACH,+BALW,MAAM,WACN,MAAM,EAAE,qBACR,WAAW,GACT,QAAS,qBAAqB,CAAC,CA8B3C;IAgCD;;;;;;;OAOG;IACH,6BALW,MAAM,UACN,MAAM,EAAE,qBACR,WAAW,GACT,QAAS,qBAAqB,CAAC,CA4B3C;CA2FJ"} \ No newline at end of file +{"version":3,"file":"Builder.d.ts","sourceRoot":"","sources":["../../lib/Builder.js"],"names":[],"mappings":";uBAUa,OAAO,qBAAqB,EAAE,QAAQ;0BACtC,OAAO,qBAAqB,EAAE,WAAW;8BACzC,OAAO,qBAAqB,EAAE,eAAe;sBAC7C,OAAO,qBAAqB,EAAE,OAAO;+BACrC,OAAO,qBAAqB,EAAE,gBAAgB;mCAC9C,OAAO,qBAAqB,EAAE,oBAAoB;kCAClD,OAAO,qBAAqB,EAAE,mBAAmB;8BACjD,OAAO,qBAAqB,EAAE,eAAe;iCAC7C,OAAO,qBAAqB,EAAE,kBAAkB;oCAChD,OAAO,qBAAqB,EAAE,qBAAqB;gCACnD,OAAO,qBAAqB,EAAE,iBAAiB;0BAC/C,OAAO,qBAAqB,EAAE,WAAW;AAZtD;;;;;;;;;;;;;GAaG;AAEH;;GAEG;AACH;IAsEI;;;;;;;;OAQG;IACH,mCANW,MAAM,gBACN,MAAM,UACN,MAAM,EAAE,UACR,MAAM,GACJ,OAAO,CAAE,qBAAqB,CAAC,CAuB3C;IAoCD;;;;;;;;OAQG;IACH,qCANW,MAAM,gBACN,MAAM,WACN,MAAM,EAAE,UACR,MAAM,GACJ,OAAO,CAAE,qBAAqB,CAAC,CAuB3C;IACD;;;;;;;OAOG;IACH,qCALW,MAAM,QACN,MAAM,WACN,MAAM,EAAE,GACN,OAAO,CAAE,MAAM,CAAC,CAoD5B;IAhOD;;;;;;OAMG;IACH,wBAJW,OAAO,YAEP,QAAQ,EAyBlB;IAtBG,kDAA4B;IAC5B,oBAAkD;IAClD,oBAIE;IACF,iDAAwB;IAMxB,oBAGC;IAED;;OAEG;IACH,UAFU,qBAAqB,CAEb;IAGtB;;;;;;;OAOG;IACH,+BALW,MAAM,WACN,MAAM,EAAE,qBACR,WAAW,GACT,OAAO,CAAE,qBAAqB,CAAC,CA8B3C;IAgCD;;;;;;;OAOG;IACH,6BALW,MAAM,UACN,MAAM,EAAE,qBACR,WAAW,GACT,OAAO,CAAE,qBAAqB,CAAC,CA4B3C;CA2FJ"} \ No newline at end of file diff --git a/@types/lib/Deployer.d.ts b/@types/lib/Deployer.d.ts index 666919799..cb1630a97 100644 --- a/@types/lib/Deployer.d.ts +++ b/@types/lib/Deployer.d.ts @@ -1,18 +1,18 @@ export default Deployer; -export type BuObject = import('../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../types/mcdev.d.js').CodeExtractItem; -export type Mcdevrc = import('../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../types/mcdev.d.js').MultiMetadataTypeList; -export type SoapRequestParams = import('../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../types/mcdev.d.js').TemplateMap; -export type MultiMetadataTypeMap = import('../types/mcdev.d.js').MultiMetadataTypeMap; -export type TypeKeyCombo = import('../types/mcdev.d.js').TypeKeyCombo; +export type BuObject = import("../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../types/mcdev.d.js").CodeExtractItem; +export type Mcdevrc = import("../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../types/mcdev.d.js").MultiMetadataTypeList; +export type SoapRequestParams = import("../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../types/mcdev.d.js").TemplateMap; +export type MultiMetadataTypeMap = import("../types/mcdev.d.js").MultiMetadataTypeMap; +export type TypeKeyCombo = import("../types/mcdev.d.js").TypeKeyCombo; /** * @typedef {import('../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../types/mcdev.d.js').CodeExtract} CodeExtract @@ -83,8 +83,8 @@ declare class Deployer { constructor(properties: Mcdevrc, buObject: BuObject); buObject: import("../types/mcdev.d.js").BuObject; properties: import("../types/mcdev.d.js").Mcdevrc; - deployDir: any; - retrieveDir: any; + deployDir: string; + retrieveDir: string; /** * Deploy all metadata that is located in the deployDir * diff --git a/@types/lib/Deployer.d.ts.map b/@types/lib/Deployer.d.ts.map index 72306bcfb..bcd78a0bd 100644 --- a/@types/lib/Deployer.d.ts.map +++ b/@types/lib/Deployer.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Deployer.d.ts","sourceRoot":"","sources":["../../lib/Deployer.js"],"names":[],"mappings":";uBAYa,OAAO,qBAAqB,EAAE,QAAQ;0BACtC,OAAO,qBAAqB,EAAE,WAAW;8BACzC,OA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G;IACH,gBAJW,MAAM,EAAE,GAAG,YAAY,WACvB,MAAM,EAAE,GACN,OAAO,CAAE,oBAAoB,CAAC,CAwG1C;IAhGO,mCAAmC;IACnC,UADW,oBAAoB,CACuC;CAyPjF"} \ No newline at end of file diff --git a/@types/lib/Retriever.d.ts b/@types/lib/Retriever.d.ts index a7e016fc6..e7b6ab8e2 100644 --- a/@types/lib/Retriever.d.ts +++ b/@types/lib/Retriever.d.ts @@ -1,18 +1,18 @@ export default Retriever; -export type BuObject = import('../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../types/mcdev.d.js').CodeExtractItem; -export type Mcdevrc = import('../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../types/mcdev.d.js').TypeKeyCombo; +export type BuObject = import("../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../types/mcdev.d.js").CodeExtractItem; +export type Mcdevrc = import("../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../types/mcdev.d.js").TypeKeyCombo; /** * @typedef {import('../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../types/mcdev.d.js').CodeExtract} CodeExtract @@ -44,7 +44,7 @@ declare class Retriever { properties: import("../types/mcdev.d.js").Mcdevrc; retrieveDir: string; templateDir: string; - savePath: any; + savePath: string; /** * Retrieve metadata of specified types into local file system and Retriever.metadata * diff --git a/@types/lib/Retriever.d.ts.map b/@types/lib/Retriever.d.ts.map index 562e1b7c8..d346a8d0c 100644 --- a/@types/lib/Retriever.d.ts.map +++ b/@types/lib/Retriever.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Retriever.d.ts","sourceRoot":"","sources":["../../lib/Retriever.js"],"names":[],"mappings":";uBAUa,OAAO,qBAAqB,EAAE,QAAQ;0BACtC,OAAO,qBAAqB,EAAE,WAAW;8BACzC,OAAO,qBAAqB,EAAE,eAAe;sBAC7C,OAAO,qBAAqB,EAAE,OAAO;+BACrC,OAAO,qBAAqB,EAAE,gBAAgB;mCAC9C,OAAO,qBAAqB,EAAE,oBAAoB;kCAClD,OAAO,qBAAqB,EAAE,mBAAmB;8BACjD,OAAO,qBAAqB,EAAE,eAAe;iCAC7C,OAAO,qBAAqB,EAAE,kBAAkB;oCAChD,OAAO,qBAAqB,EAAE,qBAAqB;mCACnD,OAAO,qBAAqB,EAAE,oBAAoB;gCAClD,OAAO,qBAAqB,EAAE,iBAAiB;0BAC/C,OAAO,qBAAqB,EAAE,WAAW;2BACzC,OAAO,qBAAqB,EAAE,YAAY;AAdvD;;;;;;;;;;;;;;;GAeG;AAEH;;GAEG;AACH;IACI;;;;;OAKG;IACH,wBAHW,OAAO,YACP,QAAQ,EAYlB;IATG,iDAAwB;IACxB,kDAA4B;IAC5B,oBAAkD;IAClD,oBAAkD;IAClD,cAIE;IAGN;;;;;;;;OAQG;IACH,wBANW,MAAM,EAAE,gBACR,MAAM,EAAE,GAAG,YAAY,sBACvB,WAAW,kBACX,OAAO,GACL,QAAS,qBAAqB,CAAC,CA4I3C;IAED;;;;;OAKG;IACH,oCAHW,MAAM,EAAE,GACN,MAAM,EAAE,CAepB;CACJ"} \ No newline at end of file +{"version":3,"file":"Retriever.d.ts","sourceRoot":"","sources":["../../lib/Retriever.js"],"names":[],"mappings":";uBAUa,OAAO,qBAAqB,EAAE,QAAQ;0BACtC,OAAO,qBAAqB,EAAE,WAAW;8BACzC,OAAO,qBAAqB,EAAE,eAAe;sBAC7C,OAAO,qBAAqB,EAAE,OAAO;+BACrC,OAAO,qBAAqB,EAAE,gBAAgB;mCAC9C,OAAO,qBAAqB,EAAE,oBAAoB;kCAClD,OAAO,qBAAqB,EAAE,mBAAmB;8BACjD,OAAO,qBAAqB,EAAE,eAAe;iCAC7C,OAAO,qBAAqB,EAAE,kBAAkB;oCAChD,OAAO,qBAAqB,EAAE,qBAAqB;mCACnD,OAAO,qBAAqB,EAAE,oBAAoB;gCAClD,OAAO,qBAAqB,EAAE,iBAAiB;0BAC/C,OAAO,qBAAqB,EAAE,WAAW;2BACzC,OAAO,qBAAqB,EAAE,YAAY;AAdvD;;;;;;;;;;;;;;;GAeG;AAEH;;GAEG;AACH;IACI;;;;;OAKG;IACH,wBAHW,OAAO,YACP,QAAQ,EAYlB;IATG,iDAAwB;IACxB,kDAA4B;IAC5B,oBAAkD;IAClD,oBAAkD;IAClD,iBAIE;IAGN;;;;;;;;OAQG;IACH,wBANW,MAAM,EAAE,gBACR,MAAM,EAAE,GAAG,YAAY,sBACvB,WAAW,kBACX,OAAO,GACL,OAAO,CAAE,qBAAqB,CAAC,CA+I3C;IAED;;;;;OAKG;IACH,oCAHW,MAAM,EAAE,GACN,MAAM,EAAE,CAepB;CACJ"} \ No newline at end of file diff --git a/@types/lib/cli.d.ts b/@types/lib/cli.d.ts index 1efa6f4b0..ee415fc4c 100644 --- a/@types/lib/cli.d.ts +++ b/@types/lib/cli.d.ts @@ -1,3 +1,3 @@ #!/usr/bin/env node -export type TypeKeyCombo = import('../types/mcdev.d.js').TypeKeyCombo; +export type TypeKeyCombo = import("../types/mcdev.d.js").TypeKeyCombo; //# sourceMappingURL=cli.d.ts.map \ No newline at end of file diff --git a/@types/lib/cli.d.ts.map b/@types/lib/cli.d.ts.map index 3f71c0106..9c83ac86b 100644 --- a/@types/lib/cli.d.ts.map +++ b/@types/lib/cli.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../lib/cli.js"],"names":[],"mappings":";2BAaa,OAAO,qBAAqB,EAAE,YAAY"} \ No newline at end of file +{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../lib/cli.js"],"names":[],"mappings":";2BAea,OAAO,qBAAqB,EAAE,YAAY"} \ No newline at end of file diff --git a/@types/lib/index.d.ts b/@types/lib/index.d.ts index 4b611f1f1..5d6715e7e 100644 --- a/@types/lib/index.d.ts +++ b/@types/lib/index.d.ts @@ -1,22 +1,22 @@ export default Mcdev; -export type BuObject = import('../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../types/mcdev.d.js').MultiMetadataTypeMap; -export type SkipInteraction = import('../types/mcdev.d.js').SkipInteraction; -export type SoapRequestParams = import('../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../types/mcdev.d.js').TypeKeyCombo; -export type ExplainType = import('../types/mcdev.d.js').ExplainType; -export type ContentBlockConversionTypes = import('../types/mcdev.d.js').ContentBlockConversionTypes; +export type BuObject = import("../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../types/mcdev.d.js").MultiMetadataTypeMap; +export type SkipInteraction = import("../types/mcdev.d.js").SkipInteraction; +export type SoapRequestParams = import("../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../types/mcdev.d.js").TypeKeyCombo; +export type ExplainType = import("../types/mcdev.d.js").ExplainType; +export type ContentBlockConversionTypes = import("../types/mcdev.d.js").ContentBlockConversionTypes; /** * @typedef {import('../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../types/mcdev.d.js').CodeExtract} CodeExtract @@ -105,7 +105,7 @@ declare class Mcdev { /** * helper to show an off-the-logs message to users */ - static "__#7@#welcomeMessage"(): void; + static "__#8@#welcomeMessage"(): void; /** * Retrieve all metadata from the specified business unit into the local file system. * @@ -126,7 +126,7 @@ declare class Mcdev { * @param {boolean} [changelogOnly] skip saving, only create json in memory * @returns {Promise.} ensure that BUs are worked on sequentially */ - static "__#7@#retrieveBU"(cred: string, bu: string, selectedTypesArr?: string[] | TypeKeyCombo, keys?: string[], changelogOnly?: boolean): Promise; + static "__#8@#retrieveBU"(cred: string, bu: string, selectedTypesArr?: string[] | TypeKeyCombo, keys?: string[], changelogOnly?: boolean): Promise; /** * Deploys all metadata located in the 'deploy' directory to the specified business unit * @@ -170,11 +170,11 @@ declare class Mcdev { * deletes metadata from MC instance by key * * @param {string} businessUnit references credentials from properties.json - * @param {string} type supported metadata type - * @param {string} customerKey Identifier of metadata + * @param {string | TypeKeyCombo} selectedTypes supported metadata type (single) or complex object + * @param {string[] | string} [keyArr] Identifier of metadata * @returns {Promise.} true if successful, false otherwise */ - static deleteByKey(businessUnit: string, type: string, customerKey: string): Promise; + static deleteByKey(businessUnit: string, selectedTypes: string | TypeKeyCombo, keyArr?: string[] | string): Promise; /** * get name & key for provided id * @@ -300,23 +300,23 @@ declare class Mcdev { * Updates the key to match the name field * * @param {string} businessUnit name of BU - * @param {TypeKeyCombo|undefined} selectedTypesArr limit retrieval to given metadata type - * @param {ContentBlockConversionTypes} to what to replace with - * @param {ContentBlockConversionTypes[]} [fromList] what to replace + * @param {TypeKeyCombo | undefined} selectedTypesObj limit retrieval to given metadata type + * @param {string} to what to replace with + * @param {string[]} [fromList] what to replace * @returns {Promise.>} key1: business unit name, key2:type value: list of fixed item keys */ - static replaceCbReference(businessUnit: string, selectedTypesArr: TypeKeyCombo | undefined, to: ContentBlockConversionTypes, fromList?: ContentBlockConversionTypes[]): Promise<{ + static replaceCbReference(businessUnit: string, selectedTypesObj: TypeKeyCombo | undefined, to: string, fromList?: string[]): Promise<{ [x: string]: object; }>; /** * Updates the key to match the name field * * @param {string} businessUnit name of BU - * @param {string[] | TypeKeyCombo} selectedTypesArr limit retrieval to given metadata type + * @param {string[] | TypeKeyCombo} selectedTypes limit retrieval to given metadata type * @param {string[]} [keys] customerkey of the metadata * @returns {Promise.>} key1: business unit name, key2:type value: list of fixed item keys */ - static fixKeys(businessUnit: string, selectedTypesArr: string[] | TypeKeyCombo, keys?: string[]): Promise<{ + static fixKeys(businessUnit: string, selectedTypes: string[] | TypeKeyCombo, keys?: string[]): Promise<{ [x: string]: object; }>; /** @@ -328,7 +328,7 @@ declare class Mcdev { * @param {string[]} [keys] customerkey of the metadata * @returns {Promise.>} key: business unit name, value: list of affected item keys */ - static "__#7@#runMethod"(methodName: 'execute' | 'pause' | 'fixKeys' | 'replaceCbReference', businessUnit: string, selectedType?: string, keys?: string[]): Promise<{ + static "__#8@#runMethod"(methodName: "execute" | "pause" | "fixKeys" | "replaceCbReference", businessUnit: string, selectedType?: string, keys?: string[]): Promise<{ [x: string]: string[]; }>; /** @@ -341,7 +341,7 @@ declare class Mcdev { * @param {string[]} [keyArr] customerkey of the metadata * @returns {Promise.} list of keys that were affected */ - static "__#7@#runOnBU"(methodName: 'execute' | 'pause' | 'fixKeys' | 'replaceCbReference', cred: string, bu: string, type?: string, keyArr?: string[]): Promise; + static "__#8@#runOnBU"(methodName: "execute" | "pause" | "fixKeys" | "replaceCbReference", cred: string, bu: string, type?: string, keyArr?: string[]): Promise; /** * helper for Mcdev.#runOnBU * @@ -349,7 +349,7 @@ declare class Mcdev { * @param {BuObject} buObject properties for auth * @returns {Promise.} keyArr */ - static "__#7@#retrieveKeysWithLike"(selectedType: string, buObject: BuObject): Promise; + static "__#8@#retrieveKeysWithLike"(selectedType: string, buObject: BuObject): Promise; /** * Updates the key to match the name field * @@ -359,7 +359,7 @@ declare class Mcdev { * @param {string[]} [keyArr] customerkey of the metadata * @returns {Promise.} list of keys that were affected */ - static "__#7@#fixKeys"(cred: string, bu: string, type: string, keyArr?: string[]): Promise; + static "__#8@#fixKeys"(cred: string, bu: string, type: string, keyArr?: string[]): Promise; /** * Updates the key to match the name field * @@ -369,7 +369,7 @@ declare class Mcdev { * @param {string[]} [keyArr] customerkey of the metadata * @returns {Promise.} list of keys that were affected */ - static "__#7@#replaceCbReference"(cred: string, bu: string, type: string, keyArr?: string[]): Promise; + static "__#8@#replaceCbReference"(cred: string, bu: string, type: string, keyArr?: string[]): Promise; /** * helper to convert CSVs into an array. if only one value was given, it's also returned as an array * diff --git a/@types/lib/index.d.ts.map b/@types/lib/index.d.ts.map index bf62130dd..b10b67230 100644 --- a/@types/lib/index.d.ts.map +++ b/@types/lib/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";uBAoBa,OAAO,qBAAqB,EAAE,QAAQ;0BACtC,OAAO,qBAAqB,EAAE,WAAW;8BACzC,OAAO,qBAAqB,EAAE,eAAe;2BAC7C,OAAO,qBAAqB,EAAE,YAAY;sBAC1C,OAAO,qBAAqB,EAAE,OAAO;+BACrC,OAAO,qBAAqB,EAAE,gBAAgB;mCAC9C,OAAO,qBAAqB,EAAE,oBAAoB;kCAClD,OAAO,qBAAqB,EAAE,mBAAmB;8BACjD,OAAO,qBAAqB,EAAE,eAAe;iCAC7C,OAAO,qBAAqB,EAAE,kBAAkB;oCAChD,OAAO,qBAAqB,EAAE,qBAAqB;mCACnD,OAAO,qBAAqB,EAAE,oBAAoB;8BAClD,OAAO,qBAAqB,EAAE,eAAe;gCAC7C,OAAO,qBAAqB,EAAE,iBAAiB;0BAC/C,OAAO,qBAAqB,EAAE,WAAW;2BACzC,OAAO,qBAAqB,EAAE,YAAY;0BAC1C,OAAO,qBAAqB,EAAE,WAAW;0CACzC,OAAO,qBAAqB,EAAE,2BAA2B;AAlBtE;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;GAEG;AACH;IACI;;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C,SAAS,uBACzB,MAAM,EAAE,cACR,OAAO,GACL,YAAY,CA2ExB;CACJ"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";uBAoBa,OAAO,qBAAqB,EAAE,QAAQ;0BACtC,OAAO,qBAAqB,EAAE,WAAW;8BACzC,OAAO,qBAAqB,EAAE,eAAe;2BAC7C,OAAO,qBAAqB,EAAE,YAAY;sBAC1C,OAAO,qBAAqB,EAAE,OAAO;+BACrC,OAAO,qBAAqB,EAAE,gBAAgB;mCAC9C,OAAO,qBAAqB,EAAE,oBAAoB;kCAClD,OAAO,qBAAqB,EAAE,mBAAmB;8BACjD,OAAO,qBAAqB,EAAE,eAAe;iCAC7C,OAAO,qBAAqB,EAAE,kBAAkB;oCAChD,OAAO,qBAAqB,EAAE,qBAAqB;mCACnD,OAAO,qBAAqB,EAAE,oBAAoB;8BAClD,OAAO,qBAAqB,EAAE,eAAe;gCAC7C,OAAO,qBAAqB,EAAE,iBAAiB;0BAC/C,OAAO,qBAAqB,EAAE,WAAW;2BACzC,OAAO,qBAAqB,EAAE,YAAY;0BAC1C,OAAO,qBAAqB,EAAE,WAAW;0CACzC,OAAO,qBAAqB,EAAE,2BAA2B;AAlBtE;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;GAEG;AACH;IACI;;OAEG;IACH,kBAFa,MAAM,CAKlB;IACD;;;;;OAKG;IACH,4CAHW,eAAe,GACb,IAAI,CAIhB;IACD;;;;;;;;OAQG;IACH,6BALG;QAAuB,MAAM,GAArB,OAAO;QACQ,OAAO,GAAtB,OAAO;QACQ,KAAK,GAApB,OAAO;KACf,GAAU,IAAI,CAIhB;IACD;;;;;OAKG;IACH,wBAHW,MAAM,GACJ,IAAI,CA6ChB;IACD;;;;;;;;;;OAUG;IACH,4BAPG;QAAsB,KAAK,GAAnB,MAAM;QAEQ,MAAM,GAApB,MAAM;QACQ,aAAa,GAA3B,MAAM;QACgB,OAAO,GAA7B,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metadataTypes/Asset.d.ts b/@types/lib/metadataTypes/Asset.d.ts index 40ab4c289..3d6407e67 100644 --- a/@types/lib/metadataTypes/Asset.d.ts +++ b/@types/lib/metadataTypes/Asset.d.ts @@ -1,16 +1,16 @@ export default Asset; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type AssetSubType = import('../../types/mcdev.d.js').AssetSubType; -export type AssetMap = import('../../types/mcdev.d.js').AssetMap; -export type AssetItem = import('../../types/mcdev.d.js').AssetItem; -export type AssetRequestParams = import('../../types/mcdev.d.js').AssetRequestParams; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type AssetSubType = import("../../types/mcdev.d.js").AssetSubType; +export type AssetMap = import("../../types/mcdev.d.js").AssetMap; +export type AssetItem = import("../../types/mcdev.d.js").AssetItem; +export type AssetRequestParams = import("../../types/mcdev.d.js").AssetRequestParams; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -158,18 +158,6 @@ declare class Asset extends MetadataType { * @returns {CodeExtractItem} metadata */ static postRetrieveTasks(metadata: AssetItem): CodeExtractItem; - /** - * Gets executed after deployment of metadata type - * - * @param {MetadataTypeMap} metadata metadata mapped by their keyField - * @param {MetadataTypeMap} _ originalMetadata to be updated (contains additioanl fields) - * @param {{created: number, updated: number}} createdUpdated counter representing successful creates/updates - * @returns {Promise.} - - */ - static postDeployTasks(metadata: MetadataTypeMap, _: MetadataTypeMap, createdUpdated: { - created: number; - updated: number; - }): Promise; /** * helper for {@link Asset.postDeployTasks}. triggers a refresh of active triggerredSendDefinitions associated with the updated asset-message items. Gets executed if refresh option has been set. * @@ -192,7 +180,7 @@ declare class Asset extends MetadataType { * @param {string} extendedSubType webpage, htmlblock, etc * @returns {string} subType: block, message, other, etc */ - static "__#2@#getMainSubtype"(extendedSubType: string): string; + static "__#3@#getMainSubtype"(extendedSubType: string): string; /** * helper to find a new unique name during asset creation * @@ -249,7 +237,7 @@ declare class Asset extends MetadataType { * @param {'definition'|'template'} mode defines what we use this helper for * @returns {Promise.} list of extracted files with path-parts provided as an array */ - static _buildForNested(templateDir: string, targetDir: string | string[], metadata: AssetItem, templateVariables: TemplateMap, templateName: string, mode: 'definition' | 'template'): Promise; + static _buildForNested(templateDir: string, targetDir: string | string[], metadata: AssetItem, templateVariables: TemplateMap, templateName: string, mode: "definition" | "template"): Promise; /** * helper for {@link Asset.preDeployTasks} that loads extracted code content back into JSON * @@ -357,7 +345,7 @@ declare class Asset extends MetadataType { * @param {string} buName owner business unit name * @returns {Promise.} path to the asset's code */ - static "__#2@#getPath"(subType: string, item: object, buName: string): Promise; + static "__#3@#getPath"(subType: string, item: object, buName: string): Promise; /** * helper for {@link Asset.resolveId} that loads the JSON file for the asset * @@ -365,7 +353,7 @@ declare class Asset extends MetadataType { * @param {object} item api response for metadata * @returns {Promise.} JS object of the asset we loaded from disk */ - static "__#2@#getJson"(subType: string, item: object): Promise; + static "__#3@#getJson"(subType: string, item: object): Promise; /** * * @param {MetadataTypeItem} item single metadata item @@ -491,15 +479,7 @@ declare namespace Asset { contentType: { isCreateable: boolean; isUpdateable: boolean; - retrieving: boolean; /** - * Helper for writing Metadata to disk, used for Retrieve and deploy - * - * @param {MetadataTypeMap} results metadata results from deploy - * @param {string} retrieveDir directory where metadata should be stored after deploy/retrieve - * @param {string} [overrideType] for use when there is a subtype (such as folder-queries) - * @param {TemplateMap} [templateVariables] variables to be replaced in the metadata - * @returns {Promise.} Promise of saved metadata - */ + retrieving: boolean; template: boolean; }; 'createdBy.email': { @@ -647,12 +627,7 @@ declare namespace Asset { template: boolean; }; legacyData: { - isCreateable: boolean; /** - * helper for {@link Asset.retrieve} + {@link Asset.retrieveAsTemplate} - * - * @private - * @returns {string[]} AssetSubType array - */ + isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; template: boolean; diff --git a/@types/lib/metadataTypes/Asset.d.ts.map b/@types/lib/metadataTypes/Asset.d.ts.map index 45c06be0c..feb090dac 100644 --- a/@types/lib/metadataTypes/Asset.d.ts.map +++ b/@types/lib/metadataTypes/Asset.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Asset.js"],"names":[],"mappings":";uBAaa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;8BACrD,OAAO,wBAAwB,EAAE,eAAe;gCAChD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2BAG5C,OAAO,wBAAwB,EAAE,YAAY;uBAC7C,OAAO,wBAAwB,EAAE,QAAQ;wBACzC,OAAO,wBAAwB,EAAE,SAAS;iCAC1C,OAAO,wBAAwB,EAAE,kBAAkB;AAdhE;;;;;;;;;GASG;AACH;;;;;GAKG;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAhvEwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/AttributeGroup.d.ts b/@types/lib/metadataTypes/AttributeGroup.d.ts index 248239a72..4f9523695 100644 --- a/@types/lib/metadataTypes/AttributeGroup.d.ts +++ b/@types/lib/metadataTypes/AttributeGroup.d.ts @@ -1,6 +1,6 @@ export default AttributeGroup; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; /** * @typedef {import('../../types/mcdev.d.js').MetadataTypeItem} MetadataTypeItem * @typedef {import('../../types/mcdev.d.js').MetadataTypeMapObj} MetadataTypeMapObj @@ -157,12 +157,7 @@ declare namespace AttributeGroup { isUpdateable: boolean; retrieving: boolean; template: boolean; - }; /** - * prepares for deployment - * - * @param {MetadataTypeItem} metadata a single item - * @returns {MetadataTypeItem} Promise - */ + }; containsSchemaAttributes: { isCreateable: boolean; isUpdateable: boolean; diff --git a/@types/lib/metadataTypes/AttributeGroup.d.ts.map b/@types/lib/metadataTypes/AttributeGroup.d.ts.map index 7f497fb46..0ebe358d7 100644 --- a/@types/lib/metadataTypes/AttributeGroup.d.ts.map +++ b/@types/lib/metadataTypes/AttributeGroup.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"AttributeGroup.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/AttributeGroup.js"],"names":[],"mappings":";+BAOa,OAAO,wBAAwB,EAAE,gBAAgB;iCACjD,OAAO,wBAAwB,EAAE,kBAAkB;AAFhE;;;GAGG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CASxC;IACD;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CA6D5B;CAOJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eANG;;;;;eAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAhHkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"AttributeGroup.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/AttributeGroup.js"],"names":[],"mappings":";+BAOa,OAAO,wBAAwB,EAAE,gBAAgB;iCACjD,OAAO,wBAAwB,EAAE,kBAAkB;AAFhE;;;GAGG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CASxC;IACD;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CA6D5B;CAOJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAjHwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/AttributeSet.d.ts b/@types/lib/metadataTypes/AttributeSet.d.ts index 1cd8fc8c5..8a30e9503 100644 --- a/@types/lib/metadataTypes/AttributeSet.d.ts +++ b/@types/lib/metadataTypes/AttributeSet.d.ts @@ -1,7 +1,7 @@ export default AttributeSet; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; /** * @typedef {import('../../types/mcdev.d.js').MetadataTypeItem} MetadataTypeItem * @typedef {import('../../types/mcdev.d.js').MetadataTypeMap} MetadataTypeMap @@ -104,11 +104,7 @@ declare namespace AttributeSet { isUpdateable: any; retrieving: boolean; template: any; - }; /** - * Retrieves Metadata of schema set definitions for caching. - * - * @returns {Promise.} Promise - */ + }; canModify: { isCreateable: any; isUpdateable: any; @@ -326,13 +322,7 @@ declare namespace AttributeSet { template: boolean; }; 'localizedDescription.value': { - isCreateable: boolean; /** - * Builds map of metadata entries mapped to their keyfields - * - * @param {object} body json of response body - * @param {string} [singleRetrieve] key of single item to filter by - * @returns {MetadataTypeMap} keyField => metadata map - */ + isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; template: boolean; @@ -359,12 +349,6 @@ declare namespace AttributeSet { isCreateable: any; isUpdateable: any; retrieving: boolean; - /** - * manages post retrieve steps - * - * @param {MetadataTypeItem} metadata a single metadata - * @returns {MetadataTypeItem} metadata - */ template: any; }; 'nonStandardAttributeGroupReferences[].definitionKey': { diff --git a/@types/lib/metadataTypes/AttributeSet.d.ts.map b/@types/lib/metadataTypes/AttributeSet.d.ts.map index b456d1dd1..ba7003df1 100644 --- a/@types/lib/metadataTypes/AttributeSet.d.ts.map +++ b/@types/lib/metadataTypes/AttributeSet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"AttributeSet.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/AttributeSet.js"],"names":[],"mappings":";+BAQa,OAAO,wBAAwB,EAAE,gBAAgB;8BACjD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;AAHhE;;;;GAIG;AAEH;;;;GAIG;AACH;IACI,mCAA8B;IAC9B;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAaxC;IACD;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;IACD;;;;;;;OAOG;IACH;YAJmB,MAAM,GAAE,MAAM;yBACtB,MAAM,GACJ,QAAS,MAAM,EAAE,CAAC,CAiG9B;IAoBD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAwK5B;IAED;;;;OAIG;IACH,qCAFa,MAAM,EAAE,CAgBpB;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eArUG;;;;eAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3WwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Automation.d.ts b/@types/lib/metadataTypes/Automation.d.ts index 1f9c0e50d..b637c145c 100644 --- a/@types/lib/metadataTypes/Automation.d.ts +++ b/@types/lib/metadataTypes/Automation.d.ts @@ -1,21 +1,21 @@ export default Automation; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SDKError = import('../../types/mcdev.d.js').SDKError; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type AutomationItem = import('../../types/mcdev.d.js').AutomationItem; -export type AutomationItemObj = import('../../types/mcdev.d.js').AutomationItemObj; -export type AutomationMap = import('../../types/mcdev.d.js').AutomationMap; -export type AutomationMapObj = import('../../types/mcdev.d.js').AutomationMapObj; -export type AutomationSchedule = import('../../types/mcdev.d.js').AutomationSchedule; -export type AutomationScheduleSoap = import('../../types/mcdev.d.js').AutomationScheduleSoap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SDKError = import("../../types/mcdev.d.js").SDKError; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type AutomationItem = import("../../types/mcdev.d.js").AutomationItem; +export type AutomationItemObj = import("../../types/mcdev.d.js").AutomationItemObj; +export type AutomationMap = import("../../types/mcdev.d.js").AutomationMap; +export type AutomationMapObj = import("../../types/mcdev.d.js").AutomationMapObj; +export type AutomationSchedule = import("../../types/mcdev.d.js").AutomationSchedule; +export type AutomationScheduleSoap = import("../../types/mcdev.d.js").AutomationScheduleSoap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -58,13 +58,21 @@ declare class Automation extends MetadataType { * @returns {Promise.} Promise of metadata */ static retrieve(retrieveDir?: string, _?: void | string[], __?: void | string[], key?: string): Promise; + /** + * helper for {@link this.retrieveRESTcollection} + * + * @param {SDKError} ex exception + * @param {string} id id or key of item + * @returns {Promise.} can return retry-result + */ + static handleRESTErrors(ex: SDKError, id: string): Promise; /** * helper for {@link Automation.retrieve} to get Automation Notifications * * @param {MetadataTypeMap} metadataMap keyField => metadata map * @returns {Promise.} Promise of automation legacy api response */ - static "__#3@#getAutomationNotificationsREST"(metadataMap: MetadataTypeMap): Promise; + static "__#4@#getAutomationNotificationsREST"(metadataMap: MetadataTypeMap): Promise; /** * Retrieves Metadata of Automation * @@ -92,7 +100,7 @@ declare class Automation extends MetadataType { * @param {AutomationItem} metadata a single automation * @returns {boolean} true if the automation schedule is valid */ - static "__#3@#isValidSchedule"(metadata: AutomationItem): boolean; + static "__#4@#isValidSchedule"(metadata: AutomationItem): boolean; /** * manages post retrieve steps * @@ -107,7 +115,7 @@ declare class Automation extends MetadataType { * @param {string} key key of the metadata * @returns {Promise.<{key:string, response:object}>} metadata key and API response */ - static "__#3@#executeItem"(metadataMap: AutomationMap, key: string): Promise<{ + static "__#4@#executeItem"(metadataMap: AutomationMap, key: string): Promise<{ key: string; response: object; }>; @@ -117,7 +125,7 @@ declare class Automation extends MetadataType { * @param {AutomationItem} metadataEntry metadata object * @returns {Promise.<{key:string, response:object}>} metadata key and API response */ - static "__#3@#runOnce"(metadataEntry: AutomationItem): Promise<{ + static "__#4@#runOnce"(metadataEntry: AutomationItem): Promise<{ key: string; response: object; }>; @@ -127,7 +135,7 @@ declare class Automation extends MetadataType { * @param {AutomationItem} metadata automation metadata * @returns {Promise.<{key:string, response:object}>} metadata key and API response */ - static "__#3@#pauseItem"(metadata: AutomationItem): Promise<{ + static "__#4@#pauseItem"(metadata: AutomationItem): Promise<{ key: string; response: object; }>; @@ -160,7 +168,7 @@ declare class Automation extends MetadataType { * * @param {AutomationItem} metadata metadata mapped by their keyField */ - static "__#3@#preDeploySchedule"(metadata: AutomationItem): void; + static "__#4@#preDeploySchedule"(metadata: AutomationItem): void; /** * Gets executed before deploying metadata * @@ -198,7 +206,7 @@ declare class Automation extends MetadataType { * @param {string} key current customer key * @returns {Promise.} - */ - static "__#3@#updateNotificationInfoREST"(metadataMap: AutomationMap, key: string): Promise; + static "__#4@#updateNotificationInfoREST"(metadataMap: AutomationMap, key: string): Promise; /** * helper for {@link Automation.postDeployTasks} * @@ -208,7 +216,7 @@ declare class Automation extends MetadataType { * @param {string} [oldKey] old customer key before fixKey / changeKeyValue / changeKeyField * @returns {Promise.<{key:string, response:object}>} metadata key and API response */ - static "__#3@#scheduleAutomation"(metadataMap: AutomationMap, originalMetadataMap: AutomationMap, key: string, oldKey?: string): Promise<{ + static "__#4@#scheduleAutomation"(metadataMap: AutomationMap, originalMetadataMap: AutomationMap, key: string, oldKey?: string): Promise<{ key: string; response: object; }>; @@ -265,7 +273,7 @@ declare class Automation extends MetadataType { * @param {string} key customer key * @returns {Promise.} objectId or enpty string */ - static "__#3@#getObjectIdForSingleRetrieve"(key: string): Promise; + static "__#4@#getObjectIdForSingleRetrieve"(key: string): Promise; /** * clean up after deleting a metadata item * @@ -312,14 +320,7 @@ declare namespace Automation { keyField: string; nameField: string; folderIdField: string; - createdDateField: string; /** - * @typedef {import('../../types/mcdev.d.js').AutomationItem} AutomationItem - * @typedef {import('../../types/mcdev.d.js').AutomationItemObj} AutomationItemObj - * @typedef {import('../../types/mcdev.d.js').AutomationMap} AutomationMap - * @typedef {import('../../types/mcdev.d.js').AutomationMapObj} AutomationMapObj - * @typedef {import('../../types/mcdev.d.js').AutomationSchedule} AutomationSchedule - * @typedef {import('../../types/mcdev.d.js').AutomationScheduleSoap} AutomationScheduleSoap - */ + createdDateField: string; createdNameField: string; lastmodDateField: string; lastmodNameField: string; @@ -335,11 +336,6 @@ declare namespace Automation { statusMapping: { AwaitingTrigger: number; Building: number; - /** - * Automation MetadataType - * - * @augments MetadataType - */ BuildingError: number; Error: number; InactiveTrigger: number; @@ -364,7 +360,7 @@ declare namespace Automation { 'Canada Central Standard Time': number; 'Cape Verde Standard Time': number; 'Caucasus Standard Time': number; - 'Cen. Australia Standard Time': number; /** @type {SoapRequestParams} */ + 'Cen. Australia Standard Time': number; 'Central America Standard Time': number; 'Central Asia Standard Time': number; 'Central Brazilian Standard Time': number; @@ -669,7 +665,6 @@ declare namespace Automation { isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; - /** @type {AutomationMap} */ template: boolean; }; 'notifications[].channelType': { @@ -713,14 +708,6 @@ declare namespace Automation { }; 'schedule.occurrences': { isCreateable: boolean; - /** - * Retrieve a specific Automation Definition by Name - * - * @param {string} templateDir Directory where retrieved metadata directory will be saved - * @param {string} name name of the metadata file - * @param {TemplateMap} templateVariables variables to be replaced in the metadata - * @returns {Promise.} Promise of metadata - */ isUpdateable: boolean; retrieving: boolean; template: boolean; diff --git a/@types/lib/metadataTypes/Automation.d.ts.map b/@types/lib/metadataTypes/Automation.d.ts.map index 15441d370..f561f82f1 100644 --- a/@types/lib/metadataTypes/Automation.d.ts.map +++ b/@types/lib/metadataTypes/Automation.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Automation.js"],"names":[],"mappings":";uBAUa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;uBACnD,OAAO,wBAAwB,EAAE,QAAQ;gCACzC,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;6BAG5C,OAAO,wBAAwB,EAAE,cAAc;gCAC/C,OAAO,wBAAwB,EAAE,iBAAiB;4BAClD,OAAO,wBAAwB,EAAE,aAAa;+BAC9C,OAAO,wBAAwB,EAAE,gBAAgB;iCACjD,OAAO,wBAAwB,EAAE,kBAAkB;qCACnD,OAAO,wBAAwB,EAAE,sBAAsB;AAnBpE;;;;;;;;;;;;GAYG;AACH;;;;;;;GAOG;AAEH;;;;GAIG;AACH;IACI,+BAAgC;IAChC,0BAAqB;IACrB,0CAAyC;IACzC,4BAA4B;IAC5B,2BADW,aAAa,CACE;IAC1B;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAyNpC,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA8BhC;;;;;;;mBAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAzTkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Automation.js"],"names":[],"mappings":";uBAUa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;uBACnD,OAAO,wBAAwB,EAAE,QAAQ;gCACzC,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;6BAG5C,OAAO,wBAAwB,EAAE,cAAc;gCAC/C,OAAO,wBAAwB,EAAE,iBAAiB;4BAClD,OAAO,wBAAwB,EAAE,aAAa;+BAC9C,OAAO,wBAAwB,EAAE,gBAAgB;iCACjD,OAAO,wBAAwB,EAAE,kBAAkB;qCACnD,OAAO,wBAAwB,EAAE,sBAAsB;AAnBpE;;;;;;;;;;;;GAYG;AACH;;;;;;;GAOG;AAEH;;;;GAIG;AACH;IACI,+BAAgC;IAChC,0BAAqB;IACrB,0CAAyC;IACzC,4BAA4B;IAC5B,2BADW,aAAa,CACE;IAC1B;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAplDwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Campaign.d.ts b/@types/lib/metadataTypes/Campaign.d.ts index c4e99860f..0080d9bda 100644 --- a/@types/lib/metadataTypes/Campaign.d.ts +++ b/@types/lib/metadataTypes/Campaign.d.ts @@ -1,14 +1,14 @@ export default Campaign; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -129,14 +129,7 @@ declare namespace Campaign { templating: boolean; }; externalKey: { - isCreateable: boolean; /** - * Parses campaign asset response body and returns metadata entries mapped to their id - * - * @param {string} retrieveDir folder where to save - * @param {string} campaignId of camapaign to retrieve - * @param {string} name of camapaign for saving - * @returns {Promise.} Campaign Asset Object - */ + isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; templating: boolean; diff --git a/@types/lib/metadataTypes/Campaign.d.ts.map b/@types/lib/metadataTypes/Campaign.d.ts.map index 0e72af56a..61e843c41 100644 --- a/@types/lib/metadataTypes/Campaign.d.ts.map +++ b/@types/lib/metadataTypes/Campaign.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Campaign.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Campaign.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAqBxC;IACD;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,iCALW,MAAM,cACN,MAAM,QACN,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAaxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCApBG;;;;;;;mBAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBApEkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Campaign.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Campaign.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAqBxC;IACD;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,iCALW,MAAM,cACN,MAAM,QACN,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAaxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAjFwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/ContentArea.d.ts b/@types/lib/metadataTypes/ContentArea.d.ts index e468f6fb9..f1aaf32a5 100644 --- a/@types/lib/metadataTypes/ContentArea.d.ts +++ b/@types/lib/metadataTypes/ContentArea.d.ts @@ -1,14 +1,14 @@ export default ContentArea; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -51,18 +51,7 @@ declare namespace ContentArea { dependencies: string[]; hasExtended: boolean; idField: string; - keepId: boolean; /** - * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject - * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract - * @typedef {import('../../types/mcdev.d.js').CodeExtractItem} CodeExtractItem - * @typedef {import('../../types/mcdev.d.js').MetadataTypeItem} MetadataTypeItem - * @typedef {import('../../types/mcdev.d.js').MetadataTypeItemDiff} MetadataTypeItemDiff - * @typedef {import('../../types/mcdev.d.js').MetadataTypeItemObj} MetadataTypeItemObj - * @typedef {import('../../types/mcdev.d.js').MetadataTypeMap} MetadataTypeMap - * @typedef {import('../../types/mcdev.d.js').MetadataTypeMapObj} MetadataTypeMapObj - * @typedef {import('../../types/mcdev.d.js').SoapRequestParams} SoapRequestParams - * @typedef {import('../../types/mcdev.d.js').TemplateMap} TemplateMap - */ + keepId: boolean; keyIsFixed: boolean; keyField: string; nameField: string; @@ -87,15 +76,7 @@ declare namespace ContentArea { }; BorderWidth: { isCreateable: boolean; - isUpdateable: boolean; /** - * Retrieves SOAP based metadata of metadata type into local filesystem. executes callback with retrieved metadata - * - * @param {string} retrieveDir Directory where retrieved metadata directory will be saved - * @param {void | string[]} [_] unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.} Promise of metadata - */ + isUpdateable: boolean; retrieving: boolean; templating: boolean; }; diff --git a/@types/lib/metadataTypes/ContentArea.d.ts.map b/@types/lib/metadataTypes/ContentArea.d.ts.map index f1c414998..1ba53ceda 100644 --- a/@types/lib/metadataTypes/ContentArea.d.ts.map +++ b/@types/lib/metadataTypes/ContentArea.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ContentArea.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/ContentArea.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAmBxC;IA2BD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAkB5B;CACJ;;;;;;;yBA/FD;;;;;;;;;;;WAWG;;;;;;;;;;;;;;;;;;;;;;;;;uCAQC;;;;;;;;mBAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA/BkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"ContentArea.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/ContentArea.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAmBxC;IA2BD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAkB5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAnGwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/DataExtension.d.ts b/@types/lib/metadataTypes/DataExtension.d.ts index 8a4f82716..5f437bb69 100644 --- a/@types/lib/metadataTypes/DataExtension.d.ts +++ b/@types/lib/metadataTypes/DataExtension.d.ts @@ -1,14 +1,14 @@ export default DataExtension; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type DataExtensionFieldItem = import('../../types/mcdev.d.js').DataExtensionFieldItem; -export type DataExtensionFieldMap = import('../../types/mcdev.d.js').DataExtensionFieldMap; -export type DataExtensionItem = import('../../types/mcdev.d.js').DataExtensionItem; -export type DataExtensionMap = import('../../types/mcdev.d.js').DataExtensionMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type DataExtensionFieldItem = import("../../types/mcdev.d.js").DataExtensionFieldItem; +export type DataExtensionFieldMap = import("../../types/mcdev.d.js").DataExtensionFieldMap; +export type DataExtensionItem = import("../../types/mcdev.d.js").DataExtensionItem; +export type DataExtensionMap = import("../../types/mcdev.d.js").DataExtensionMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').MetadataTypeItem} MetadataTypeItem @@ -45,7 +45,7 @@ declare class DataExtension extends MetadataType { * @param {object} res - * @returns {boolean} true: keep, false: discard */ - static "__#4@#filterUpsertResults"(res: object): boolean; + static "__#5@#filterUpsertResults"(res: object): boolean; /** * Create a single dataExtension. Also creates their columns in 'dataExtension.columns' * @@ -61,14 +61,15 @@ declare class DataExtension extends MetadataType { * @param {DataExtensionItem} metadata single metadata entry * @returns {void} */ - static "__#4@#cleanupRetentionPolicyFields"(metadata: DataExtensionItem): void; + static "__#5@#cleanupRetentionPolicyFields"(metadata: DataExtensionItem): void; /** * Updates a single dataExtension. Also updates their columns in 'dataExtension.columns' * * @param {DataExtensionItem} metadata single metadata entry + * @param {boolean} [handleOutside] if the API reponse is irregular this allows you to handle it outside of this generic method * @returns {Promise} Promise */ - static update(metadata: DataExtensionItem): Promise; + static update(metadata: DataExtensionItem, handleOutside?: boolean): Promise; /** * Gets executed after deployment of metadata type * @@ -91,7 +92,7 @@ declare class DataExtension extends MetadataType { * @param {{created: number, updated: number}} createdUpdated counter representing successful creates/updates * @returns {Promise.} - */ - static "__#4@#fixShared"(upsertedMetadata: DataExtensionMap, originalMetadata: DataExtensionMap, createdUpdated: { + static "__#5@#fixShared"(upsertedMetadata: DataExtensionMap, originalMetadata: DataExtensionMap, createdUpdated: { created: number; updated: number; }): Promise; @@ -100,7 +101,7 @@ declare class DataExtension extends MetadataType { * * @returns {Promise.} list of selected BU names */ - static "__#4@#fixShared_getBUs"(): Promise; + static "__#5@#fixShared_getBUs"(): Promise; /** * helper for {@link DataExtension.#fixShared} * @@ -110,7 +111,7 @@ declare class DataExtension extends MetadataType { * @param {Object.} sharedDataExtensionMap ID-Key relationship of shared data extensions * @returns {Promise.} updated shared DE keys on BU */ - static "__#4@#fixShared_onBU"(childBuName: string, buObjectParent: BuObject, clientParent: object, sharedDataExtensionMap: { + static "__#5@#fixShared_onBU"(childBuName: string, buObjectParent: BuObject, clientParent: object, sharedDataExtensionMap: { [x: string]: string; }): Promise; /** @@ -125,7 +126,7 @@ declare class DataExtension extends MetadataType { * @param {object} clientParent SDK for parent BU * @returns {Promise.} flag that signals if the fix was successful */ - static "__#4@#fixShared_item"(deId: string, deKey: string, buObjectChildBu: BuObject, clientChildBu: object, buObjectParent: BuObject, clientParent: object): Promise; + static "__#5@#fixShared_item"(deId: string, deKey: string, buObjectChildBu: BuObject, clientChildBu: object, buObjectParent: BuObject, clientParent: object): Promise; /** * add a new field to the shared DE to trigger an update to the data model * helper for {@link DataExtension.#fixShared_item} @@ -136,7 +137,7 @@ declare class DataExtension extends MetadataType { * @param {string} deId dataExtension ObjectID * @returns {Promise.} randomSuffix */ - static "__#4@#fixShared_item_addField"(buObjectChildBu: BuObject, clientChildBu: object, deKey: string, deId: string): Promise; + static "__#5@#fixShared_item_addField"(buObjectChildBu: BuObject, clientChildBu: object, deKey: string, deId: string): Promise; /** * get ID of the field added by {@link DataExtension.#fixShared_item_addField} on the shared DE via parent BU * helper for {@link DataExtension.#fixShared_item} @@ -147,7 +148,7 @@ declare class DataExtension extends MetadataType { * @param {string} deKey dataExtension key * @returns {Promise.} fieldObjectID */ - static "__#4@#fixShared_item_getFieldId"(randomSuffix: string, buObjectParent: BuObject, clientParent: object, deKey: string): Promise; + static "__#5@#fixShared_item_getFieldId"(randomSuffix: string, buObjectParent: BuObject, clientParent: object, deKey: string): Promise; /** * delete the field added by {@link DataExtension.#fixShared_item_addField} * helper for {@link DataExtension.#fixShared_item} @@ -159,7 +160,7 @@ declare class DataExtension extends MetadataType { * @param {string} fieldObjectID field ObjectID * @returns {Promise} - */ - static "__#4@#fixShared_item_deleteField"(randomSuffix: string, buObjectChildBu: BuObject, clientChildBu: object, deKey: string, fieldObjectID: string): Promise; + static "__#5@#fixShared_item_deleteField"(randomSuffix: string, buObjectChildBu: BuObject, clientChildBu: object, deKey: string, fieldObjectID: string): Promise; /** * Retrieves dataExtension metadata. Afterwards starts retrieval of dataExtensionColumn metadata retrieval * @@ -189,7 +190,7 @@ declare class DataExtension extends MetadataType { * @param {string[]} [additionalFields] Returns specified fields even if their retrieve definition is not set to true * @returns {Promise.} - */ - static "__#4@#attachFields"(metadata: DataExtensionMap, fieldOptions?: SoapRequestParams, additionalFields?: string[]): Promise; + static "__#5@#attachFields"(metadata: DataExtensionMap, fieldOptions?: SoapRequestParams, additionalFields?: string[]): Promise; /** * Retrieves dataExtension metadata. Afterwards starts retrieval of dataExtensionColumn metadata retrieval * @@ -452,16 +453,7 @@ declare namespace DataExtension { }; Name: { isCreateable: boolean; - isUpdateable: boolean; /** - * helper for {@link MetadataType.upsert} - * - * @param {MetadataTypeMap} metadataMap list of metadata - * @param {string} metadataKey key of item we are looking at - * @param {boolean} hasError error flag from previous code - * @param {MetadataTypeItemDiff[]} metadataToUpdate list of items to update - * @param {MetadataTypeItem[]} metadataToCreate list of items to create - * @returns {Promise.<'create'|'update'|'skip'>} action to take - */ + isUpdateable: boolean; retrieving: boolean; template: boolean; }; diff --git a/@types/lib/metadataTypes/DataExtension.d.ts.map b/@types/lib/metadataTypes/DataExtension.d.ts.map index c0bc8d072..954f599bb 100644 --- a/@types/lib/metadataTypes/DataExtension.d.ts.map +++ b/@types/lib/metadataTypes/DataExtension.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DataExtension.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtension.js"],"names":[],"mappings":";uBAea,OAAO,wBAAwB,EAAE,QAAQ;+BACzC,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;8BACrD,OAAO,wBAAwB,EAAE,eAAe;gCAChD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;qCAG5C,OAAO,wBAAwB,EAAE,sBAAsB;oCACvD,OAAO,wBAAwB,EAAE,qBAAqB;gCACtD,OAAO,wBAAwB,EAAE,iBAAiB;+BAClD,OAAO,wBAAwB,EAAE,gBAAgB;AAZ9D;;;;;;;GAOG;AACH;;;;;GAKG;AAEH;;;;GAIG;AACH;IACI,oCAAoC;IACpC,kBADW,qBAAqB,CACf;IACjB;;;;;;OAMG;IACH,2BAHW,gBAAgB,gBAoG1B;IAyED;;;;;OAKG;IACH,wCAHW,MAAM,GACJ,OAAO,CA0BnB;IAED;;;;;OAKG;IACH,wBAHW,iBAAiB,gBAK3B;IAED;;;;;;;OAOG;IACH,sDAHW,iBAAiB,GACf,IAAI,CAahB;IACD;;;;;OAKG;IACH,wBAHW,iBAAiB,gBAK3B;IACD;;;;;;;OAOG;IACH,yCALW,gBAAgB,oBAChB,gBAAgB,kBAChB;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,GAChC,QAAS,IAAI,CAAC,CA2E1B;IAED;;;;;;;;;OASG;IACH,2CALW,gBAAgB,oBAChB,gBAAgB,kBA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;;OAKG;IACH,mCAHW,iBAAiB,GACf,QAAS,iBAAiB,CAAC,CAoFvC;IAED;;;;;;;OAOG;IACH,+BAUC;IACD;;;;;;;OAOG;IACH,0CAsBC;IACD;;;;;OAKG;IACH,0CAHW,gBAAgB,GACd,QAAS,IAAI,CAAC,CAI1B;IAED;;;;;OAKG;IACH,gCAHW,iBAAiB,GACf,QAAS,iBAAiB,CAAC,CAgIvC;IAED;;;;;;;;OAQG;IACH,gCA2CC;IAED;;;;;;;;;OASG;IACH,8BAwCC;IAED;;;;;;;;;;;OAWG;IACH,yBAgCC;IACD;;;;;OAKG;IACH,8BAHW,gBAAgB,GACd,QAAS,GAAG,CAAC,CA0EzB;IAYD;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,QAAS,IAAI,CAAC,CAM1B;IAED;;;;OAIG;IACH,2BAFa,QAAS;QAAC,QAAQ,EAAE,gBAAgB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIhE;IACD;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,QAAS;QAAC,QAAQ,EAAE,iBAAiB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAgDjE;IA4DD;;;;;;;OAOG;IACH,4BAWC;CA4BJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAl8CG;;;;;;;;;mBASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBArJkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"DataExtension.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtension.js"],"names":[],"mappings":";uBAea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HW,iBAAiB,GACf,OAAO,CAAE,iBAAiB,CAAC,CAgIvC;IAED;;;;;;;;OAQG;IACH,gCA2CC;IAED;;;;;;;;;OASG;IACH,8BAwCC;IAED;;;;;;;;;;;OAWG;IACH,yBAgCC;IACD;;;;;OAKG;IACH,8BAHW,gBAAgB,GACd,OAAO,CAAE,GAAG,CAAC,CA0EzB;IAYD;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,OAAO,CAAE,IAAI,CAAC,CAM1B;IAED;;;;OAIG;IACH,2BAFa,OAAO,CAAE;QAAC,QAAQ,EAAE,gBAAgB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIhE;IACD;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,OAAO,CAAE;QAAC,QAAQ,EAAE,iBAAiB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAgDjE;IA4DD;;;;;;;OAOG;IACH,4BAWC;CA4BJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA9kDwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/DataExtensionField.d.ts b/@types/lib/metadataTypes/DataExtensionField.d.ts index a982012ec..f16141bb6 100644 --- a/@types/lib/metadataTypes/DataExtensionField.d.ts +++ b/@types/lib/metadataTypes/DataExtensionField.d.ts @@ -1,16 +1,16 @@ export default DataExtensionField; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type DataExtensionFieldMap = import('../../types/mcdev.d.js').DataExtensionFieldMap; -export type DataExtensionFieldItem = import('../../types/mcdev.d.js').DataExtensionFieldItem; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type DataExtensionFieldMap = import("../../types/mcdev.d.js").DataExtensionFieldMap; +export type DataExtensionFieldItem = import("../../types/mcdev.d.js").DataExtensionFieldItem; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -189,12 +189,6 @@ declare namespace DataExtensionField { }; ModifiedDate: { isCreateable: boolean; - /** - * helper for DataExtension.retrieveFieldsForSingleDe that sorts the fields into an array - * - * @param {DataExtensionFieldMap} fieldsObj customerKey-based list of fields for one dataExtension - * @returns {DataExtensionFieldItem[]} sorted array of field objects - */ isUpdateable: boolean; retrieving: boolean; template: boolean; diff --git a/@types/lib/metadataTypes/DataExtensionField.d.ts.map b/@types/lib/metadataTypes/DataExtensionField.d.ts.map index 97c603163..cca220b03 100644 --- a/@types/lib/metadataTypes/DataExtensionField.d.ts.map +++ b/@types/lib/metadataTypes/DataExtensionField.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DataExtensionField.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtensionField.js"],"names":[],"mappings":";uBAMa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;oCAG5C,OAAO,wBAAwB,EAAE,qBAAqB;qCACtD,OAAO,wBAAwB,EAAE,sBAAsB;AAdpE;;;;;;;;;;;GAWG;AACH;;;GAGG;AACH;;;;GAIG;AACH;IACI,6BAAwB;IACxB;;;;;;OAMG;IACH,6BAJW,MAAM,qBACN,MAAM,EAAE,GACN,QAAS;QAAC,QAAQ,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIrE;IACD;;;;;;OAMG;IACH,0CAJW,iBAAiB,qBACjB,MAAM,EAAE,GACN,QAAS;QAAC,QAAQ,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIrE;IACD;;;;;OAKG;IACH,uCAHW,qBAAqB,GACnB,sBAAsB,EAAE,CASpC;IAED;;;;;;OAMG;IACH,uBAJW,sBAAsB,KACtB,sBAAsB,GACpB,MAAM,CAIlB;IACD;;;;;OAKG;IACH,qCAHW,sBAAsB,GACpB,sBAAsB,CAelC;IACD;;;;;;;OAOG;IACH,mDAJW,sBAAsB,EAAE,SACxB,MAAM,GACJ;YAAiB,MAAM,GAAE,sBAAsB;MAAE,CAoK7D;IAYD;;;;;;OAMG;IACH,oCAJW,MAAM,YACN,MAAM,GACJ,QAAS,OAAO,CAAC,CAuD7B;IACD;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,QAAS,IAAI,CAAC,CAO1B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA5SG;;;;;mBAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAnDkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"DataExtensionField.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtensionField.js"],"names":[],"mappings":";uBAMa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;oCAG5C,OAAO,wBAAwB,EAAE,qBAAqB;qCACtD,OAAO,wBAAwB,EAAE,sBAAsB;AAdpE;;;;;;;;;;;GAWG;AACH;;;GAGG;AACH;;;;GAIG;AACH;IACI,6BAAwB;IACxB;;;;;;OAMG;IACH,6BAJW,MAAM,qBACN,MAAM,EAAE,GACN,OAAO,CAAE;QAAC,QAAQ,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIrE;IACD;;;;;;OAMG;IACH,0CAJW,iBAAiB,qBACjB,MAAM,EAAE,GACN,OAAO,CAAE;QAAC,QAAQ,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIrE;IACD;;;;;OAKG;IACH,uCAHW,qBAAqB,GACnB,sBAAsB,EAAE,CASpC;IAED;;;;;;OAMG;IACH,uBAJW,sBAAsB,KACtB,sBAAsB,GACpB,MAAM,CAIlB;IACD;;;;;OAKG;IACH,qCAHW,sBAAsB,GACpB,sBAAsB,CAelC;IACD;;;;;;;OAOG;IACH,mDAJW,sBAAsB,EAAE,SACxB,MAAM,GACJ,OAAO,CAAE;YAAQ,MAAM,GAAE,sBAAsB;KAAC,CAAC,CAoK7D;IAYD;;;;;;OAMG;IACH,oCAJW,MAAM,YACN,MAAM,GACJ,OAAO,CAAE,OAAO,CAAC,CAsD7B;IACD;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,OAAO,CAAE,IAAI,CAAC,CAO1B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAzVwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/DataExtensionTemplate.d.ts b/@types/lib/metadataTypes/DataExtensionTemplate.d.ts index c4ee4e6c1..17f658a92 100644 --- a/@types/lib/metadataTypes/DataExtensionTemplate.d.ts +++ b/@types/lib/metadataTypes/DataExtensionTemplate.d.ts @@ -1,14 +1,14 @@ export default DataExtensionTemplate; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -93,7 +93,7 @@ declare namespace DataExtensionTemplate { Description: { isCreateable: boolean; isUpdateable: boolean; - retrieving: boolean; /** @type {SoapRequestParams} */ + retrieving: boolean; template: boolean; }; PartnerKey: { diff --git a/@types/lib/metadataTypes/DataExtensionTemplate.d.ts.map b/@types/lib/metadataTypes/DataExtensionTemplate.d.ts.map index 461558b45..67345f77b 100644 --- a/@types/lib/metadataTypes/DataExtensionTemplate.d.ts.map +++ b/@types/lib/metadataTypes/DataExtensionTemplate.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DataExtensionTemplate.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtensionTemplate.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAexC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAbO,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA/Bf,mBAAmB"} \ No newline at end of file +{"version":3,"file":"DataExtensionTemplate.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtensionTemplate.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAexC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA5CwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/DataExtract.d.ts b/@types/lib/metadataTypes/DataExtract.d.ts index 9c11fbea1..b7038c9b9 100644 --- a/@types/lib/metadataTypes/DataExtract.d.ts +++ b/@types/lib/metadataTypes/DataExtract.d.ts @@ -1,14 +1,14 @@ export default DataExtract; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -124,16 +124,7 @@ declare namespace DataExtract { }; dataExtractDefinitionId: { isCreateable: boolean; - isUpdateable: boolean; /** - * Retrieves Metadata of Data Extract Activity. - * Endpoint /automation/v1/dataextracts/ returns all Data Extracts - * - * @param {string} retrieveDir Directory where retrieved metadata directory will be saved - * @param {void | string[]} [_] unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.} Promise of metadata - */ + isUpdateable: boolean; retrieving: boolean; template: boolean; }; @@ -168,14 +159,7 @@ declare namespace DataExtract { isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; - template: boolean; /** - * Retrieve a specific dataExtract Definition by Name - * - * @param {string} templateDir Directory where retrieved metadata directory will be saved - * @param {string} name name of the metadata file - * @param {TemplateMap} templateVariables variables to be replaced in the metadata - * @returns {Promise.} Promise of metadata - */ + template: boolean; }; key: { isCreateable: boolean; diff --git a/@types/lib/metadataTypes/DataExtract.d.ts.map b/@types/lib/metadataTypes/DataExtract.d.ts.map index 91d719413..571ee183c 100644 --- a/@types/lib/metadataTypes/DataExtract.d.ts.map +++ b/@types/lib/metadataTypes/DataExtract.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DataExtract.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtract.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAIxC;IACD;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,QAAS,mBAAmB,CAAC,CA4CzC;IAED;;;;;OAKG;IACH,2BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,2BAHW,gBAAgB,gBAQ1B;IAED;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,gBAAgB,CAW5B;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAiB5B;IACD;;;;;;OAMG;IACH,6CASC;CAiBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAxKG;;;;;;;;;mBASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAaH;;;;;;;mBAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBArDkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"DataExtract.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtract.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IACD;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,OAAO,CAAE,mBAAmB,CAAC,CA4CzC;IAED;;;;;OAKG;IACH,2BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,2BAHW,gBAAgB,gBAQ1B;IAED;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,gBAAgB,CAW5B;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAiB5B;IACD;;;;;;OAMG;IACH,6CASC;CAiBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAhMwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/DataExtractType.d.ts b/@types/lib/metadataTypes/DataExtractType.d.ts index 177c95050..95d9e0bc0 100644 --- a/@types/lib/metadataTypes/DataExtractType.d.ts +++ b/@types/lib/metadataTypes/DataExtractType.d.ts @@ -1,14 +1,14 @@ export default DataExtractType; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/DataExtractType.d.ts.map b/@types/lib/metadataTypes/DataExtractType.d.ts.map index 602531a83..b14aa2612 100644 --- a/@types/lib/metadataTypes/DataExtractType.d.ts.map +++ b/@types/lib/metadataTypes/DataExtractType.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DataExtractType.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtractType.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAIxC;IACD;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3CwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"DataExtractType.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DataExtractType.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IACD;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3CwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/DeliveryProfile.d.ts b/@types/lib/metadataTypes/DeliveryProfile.d.ts index 7b9c5df7a..36c5d4bc5 100644 --- a/@types/lib/metadataTypes/DeliveryProfile.d.ts +++ b/@types/lib/metadataTypes/DeliveryProfile.d.ts @@ -1,14 +1,14 @@ export default DeliveryProfile; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/DeliveryProfile.d.ts.map b/@types/lib/metadataTypes/DeliveryProfile.d.ts.map index bcc190c61..2c979d7be 100644 --- a/@types/lib/metadataTypes/DeliveryProfile.d.ts.map +++ b/@types/lib/metadataTypes/DeliveryProfile.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DeliveryProfile.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DeliveryProfile.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CASxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAtCwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"DeliveryProfile.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/DeliveryProfile.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CASxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAtCwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Discovery.d.ts b/@types/lib/metadataTypes/Discovery.d.ts index 9a693da59..cbce10e3f 100644 --- a/@types/lib/metadataTypes/Discovery.d.ts +++ b/@types/lib/metadataTypes/Discovery.d.ts @@ -1,14 +1,14 @@ export default Discovery; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/Discovery.d.ts.map b/@types/lib/metadataTypes/Discovery.d.ts.map index 8f3389628..3a6d2840c 100644 --- a/@types/lib/metadataTypes/Discovery.d.ts.map +++ b/@types/lib/metadataTypes/Discovery.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Discovery.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Discovery.js"],"names":[],"mappings":";uBAMa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AACH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CA0BxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAxDwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Discovery.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Discovery.js"],"names":[],"mappings":";uBAMa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AACH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CA0BxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAxDwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Email.d.ts b/@types/lib/metadataTypes/Email.d.ts index cb1e39d3f..df4212535 100644 --- a/@types/lib/metadataTypes/Email.d.ts +++ b/@types/lib/metadataTypes/Email.d.ts @@ -1,14 +1,14 @@ export default Email; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -75,22 +75,9 @@ declare namespace Email { templating: boolean; }; 'Client.ID': { - /** - * Email MetadataType - * - * @augments MetadataType - */ isCreateable: boolean; isUpdateable: boolean; - retrieving: boolean; /** - * Retrieves SOAP based metadata of metadata type into local filesystem. executes callback with retrieved metadata - * - * @param {string} retrieveDir Directory where retrieved metadata directory will be saved - * @param {void | string[]} [_] unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.} Promise of metadata - */ + retrieving: boolean; templating: boolean; }; 'Client.PartnerClientKey': { @@ -109,7 +96,7 @@ declare namespace Email { isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; - templating: boolean; /** @type {SoapRequestParams} */ + templating: boolean; }; 'ContentAreas.CategoryID': { isCreateable: boolean; @@ -128,15 +115,7 @@ declare namespace Email { isUpdateable: boolean; retrieving: boolean; templating: boolean; - }; /** - * Helper for writing Metadata to disk, used for Retrieve and deploy - * - * @param {MetadataTypeMap} results metadata results from deploy - * @param {string} retrieveDir directory where metadata should be stored after deploy/retrieve - * @param {string} [overrideType] for use when there is a subtype (such as folder-queries) - * @param {TemplateMap} [templateVariables] variables to be replaced in the metadata - * @returns {Promise.} Promise of saved metadata - */ + }; 'ContentAreas.ID': { isCreateable: boolean; isUpdateable: boolean; diff --git a/@types/lib/metadataTypes/Email.d.ts.map b/@types/lib/metadataTypes/Email.d.ts.map index e8f112815..25f967301 100644 --- a/@types/lib/metadataTypes/Email.d.ts.map +++ b/@types/lib/metadataTypes/Email.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Email.js"],"names":[],"mappings":";uBAMa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAgBxC;IAmBD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAkB5B;CACJ;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAvFwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/EmailSend.d.ts b/@types/lib/metadataTypes/EmailSend.d.ts index 32feb1088..9ea8cef02 100644 --- a/@types/lib/metadataTypes/EmailSend.d.ts +++ b/@types/lib/metadataTypes/EmailSend.d.ts @@ -1,14 +1,14 @@ export default EmailSend; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/EmailSend.d.ts.map b/@types/lib/metadataTypes/EmailSend.d.ts.map index 6557e2933..15d9b9029 100644 --- a/@types/lib/metadataTypes/EmailSend.d.ts.map +++ b/@types/lib/metadataTypes/EmailSend.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"EmailSend.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/EmailSend.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAmCxC;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAYD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CAuJtC;IAED;;;;;OAKG;IACH,mCAHW,gBA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GAIG;AACH;IACI;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAmCxC;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAYD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,OAAO,CAAE,gBAAgB,CAAC,CAuJtC;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAsJ5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAzZwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Event.d.ts b/@types/lib/metadataTypes/Event.d.ts index 2921ff8e9..41c3e88e3 100644 --- a/@types/lib/metadataTypes/Event.d.ts +++ b/@types/lib/metadataTypes/Event.d.ts @@ -1,14 +1,14 @@ export default Event; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -27,6 +27,7 @@ export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; * @augments MetadataType */ declare class Event extends MetadataType { + static reCacheDataExtensions: any[]; /** * Retrieves Metadata of Event Definition. * Endpoint /interaction/v1/eventDefinitions return all Event Definitions with all details. @@ -105,11 +106,7 @@ declare namespace Event { validTypes: string[]; fields: { 'arguments.audienceCount': { - isCreateable: boolean; /** - * Event MetadataType - * - * @augments MetadataType - */ + isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; template: boolean; @@ -279,6 +276,12 @@ declare namespace Event { retrieving: boolean; template: boolean; }; + 'configurationArguments.unconfigured': { + isCreateable: boolean; + isUpdateable: boolean; + retrieving: boolean; + template: boolean; + }; createdBy: { isCreateable: boolean; isUpdateable: boolean; @@ -945,7 +948,7 @@ declare namespace Event { retrieving: boolean; template: boolean; }; - r__dataExtension_CustomerKey: { + r__dataExtension_key: { isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; diff --git a/@types/lib/metadataTypes/Event.d.ts.map b/@types/lib/metadataTypes/Event.d.ts.map index efc085497..2f5e25d93 100644 --- a/@types/lib/metadataTypes/Event.d.ts.map +++ b/@types/lib/metadataTypes/Event.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Event.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;;OAUG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAwBxC;IAED;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAtBsB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Event.js"],"names":[],"mappings":";uBASa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI,oCAAkC;IAClC;;;;;;;;;;OAUG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAwBxC;IAED;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,OAAO,CAAE,mBAAmB,CAAC,CAiDzC;IA6BD;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,6BAHW,gBAAgB,gBAU1B;IAED;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,gBAAgB,CAY5B;IAuLD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAwB5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAvZwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/FileLocation.d.ts b/@types/lib/metadataTypes/FileLocation.d.ts index 014ca98eb..7723622ed 100644 --- a/@types/lib/metadataTypes/FileLocation.d.ts +++ b/@types/lib/metadataTypes/FileLocation.d.ts @@ -1,14 +1,14 @@ export default FtpLocation; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/FileLocation.d.ts.map b/@types/lib/metadataTypes/FileLocation.d.ts.map index 81d9a7114..1eebd2660 100644 --- a/@types/lib/metadataTypes/FileLocation.d.ts.map +++ b/@types/lib/metadataTypes/FileLocation.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FileLocation.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/FileLocation.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3CwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"FileLocation.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/FileLocation.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3CwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/FileTransfer.d.ts b/@types/lib/metadataTypes/FileTransfer.d.ts index ec22b2f6b..660ad4700 100644 --- a/@types/lib/metadataTypes/FileTransfer.d.ts +++ b/@types/lib/metadataTypes/FileTransfer.d.ts @@ -1,14 +1,14 @@ export default FileTransfer; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -160,14 +160,7 @@ declare namespace FileTransfer { isFileSpecLocalized: { isCreateable: boolean; isUpdateable: boolean; - retrieving: boolean; /** - * Retrieve a specific File Transfer Definition by Name - * - * @param {string} templateDir Directory where retrieved metadata directory will be saved - * @param {string} name name of the metadata file - * @param {TemplateMap} templateVariables variables to be replaced in the metadata - * @returns {Promise.} Promise - */ + retrieving: boolean; template: boolean; }; isPgp: { diff --git a/@types/lib/metadataTypes/FileTransfer.d.ts.map b/@types/lib/metadataTypes/FileTransfer.d.ts.map index 0c76e3a12..4803d1cc8 100644 --- a/@types/lib/metadataTypes/FileTransfer.d.ts.map +++ b/@types/lib/metadataTypes/FileTransfer.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FileTransfer.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/FileTransfer.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAIxC;IACD;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,QAAS,mBAAmB,CAAC,CA4CzC;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,gCAHW,gBAAgB,gBAkB1B;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAkB5B;IAED;;;;;;OAMG;IACH,6CASC;CAiBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAxJG;;;;;;;mBAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBArDkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"FileTransfer.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/FileTransfer.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IACD;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,OAAO,CAAE,mBAAmB,CAAC,CA4CzC;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,gCAHW,gBAAgB,gBAkB1B;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAkB5B;IAED;;;;;;OAMG;IACH,6CASC;CAiBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAtMwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Filter.d.ts b/@types/lib/metadataTypes/Filter.d.ts index 45c957990..61787382e 100644 --- a/@types/lib/metadataTypes/Filter.d.ts +++ b/@types/lib/metadataTypes/Filter.d.ts @@ -1,14 +1,14 @@ export default Filter; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/Filter.d.ts.map b/@types/lib/metadataTypes/Filter.d.ts.map index f95679c57..58100f166 100644 --- a/@types/lib/metadataTypes/Filter.d.ts.map +++ b/@types/lib/metadataTypes/Filter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Filter.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;;;OAWG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAIxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBApCwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Filter.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;;;OAWG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBApCwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Folder.d.ts b/@types/lib/metadataTypes/Folder.d.ts index 4423614e4..4c9a1ba92 100644 --- a/@types/lib/metadataTypes/Folder.d.ts +++ b/@types/lib/metadataTypes/Folder.d.ts @@ -1,14 +1,14 @@ export default Folder; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/Folder.d.ts.map b/@types/lib/metadataTypes/Folder.d.ts.map index 35c94f036..68fc1199c 100644 --- a/@types/lib/metadataTypes/Folder.d.ts.map +++ b/@types/lib/metadataTypes/Folder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Folder.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Folder.js"],"names":[],"mappings":";uBASa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,qBACN,MAAM,EAAE,eACR,MAAM,EAAE,QACR,MAAM,gBA8HhB;IAED;;;;;;OAMG;IACH,4BAJW,IAAI,GAAG,MAAM,EAAE,eACf,MAAM,EAAE,gBAKlB;IAED;;;;;;;OAOG;IACH,wBAHW,eAAe,GACb,QAAS,MAAM,CAAC,CA8J5B;IAED;;;;;OAKG;IACH,6BAHW,gBAAgB,gBA4D1B;IAED;;;;;OAKG;IACH,6BAHW,gBAAgB,gBAyB1B;IAED;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CAgDtC;IAED;;;;;;OAMG;IACH,0BAJW,MAAM,gBACN,OAAO,GACL,QAAS,eAAe,CAAC,CAkErC;IAED;;;;;;;OAOG;IACH,yCALW,MAAM,EAAE,qBACR,OAAO,oBACP,MAAM,EAAE,GACN,QAAS,MAAM,CAAC,CA+B5B;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAI5B;IACD;;;;;;;OAOG;IACH,4BALW,eAAe,eACf,MAAM,OACN,MAAM,GAAG,MAAM,GACb,QAAS,MAAM,CAAC,CAuD5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3pBwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Folder.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Folder.js"],"names":[],"mappings":";uBASa,OAAO,wBAAwB,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3pBwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/ImportFile.d.ts b/@types/lib/metadataTypes/ImportFile.d.ts index f213f4c1c..6a7fe106e 100644 --- a/@types/lib/metadataTypes/ImportFile.d.ts +++ b/@types/lib/metadataTypes/ImportFile.d.ts @@ -1,14 +1,14 @@ export default ImportFile; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -131,11 +131,7 @@ declare namespace ImportFile { AddUpdate: number; Overwrite: number; Update: number; - }; /** - * ImportFile MetadataType - * - * @augments MetadataType - */ + }; blankFileProcessingTypeMapping: { Fail: number; Process: number; diff --git a/@types/lib/metadataTypes/ImportFile.d.ts.map b/@types/lib/metadataTypes/ImportFile.d.ts.map index 5e111daee..03a23f7d2 100644 --- a/@types/lib/metadataTypes/ImportFile.d.ts.map +++ b/@types/lib/metadataTypes/ImportFile.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ImportFile.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/ImportFile.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;;OAUG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAiDxC;IAED;;;;;;;OAOG;IACH,4BALW,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,QAAS,mBAAmB,CAAC,CAuCzC;IACD;;;;;;OAMG;IACH,6CAeC;IAED;;;;;OAKG;IACH,0BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,0BAHW,gBAAgB,gBAQ1B;IAgCD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CAuHtC;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAkH5B;CAiBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA7cD;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAtBsB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"ImportFile.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/ImportFile.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;;OAUG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAiDxC;IAED;;;;;;;OAOG;IACH,4BALW,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,OAAO,CAAE,mBAAmB,CAAC,CAuCzC;IACD;;;;;;OAMG;IACH,6CAeC;IAED;;;;;OAKG;IACH,0BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,0BAHW,gBAAgB,gBAQ1B;IAgCD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,OAAO,CAAE,gBAAgB,CAAC,CAuHtC;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAkH5B;CAiBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA/dwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Journey.d.ts b/@types/lib/metadataTypes/Journey.d.ts index 1482861ca..37ab50f70 100644 --- a/@types/lib/metadataTypes/Journey.d.ts +++ b/@types/lib/metadataTypes/Journey.d.ts @@ -1,14 +1,14 @@ export default Journey; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -115,15 +115,7 @@ declare namespace Journey { lastmodNameField: any; restPagination: boolean; restPageSize: number; - type: string; /** - * Retrieves Metadata of Journey - * - * @param {string} retrieveDir Directory where retrieved metadata directory will be saved - * @param {void | string[]} [_] unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.} Promise - */ + type: string; typeDescription: string; typeRetrieveByDefault: boolean; typeName: string; @@ -453,14 +445,7 @@ declare namespace Journey { isUpdateable: boolean; retrieving: boolean; template: boolean; - }; /** - * Deploys metadata - merely kept here to be able to print {@link Util.logBeta} once per deploy - * - * @param {MetadataTypeMap} metadata metadata mapped by their keyField - * @param {string} deployDir directory where deploy metadata are saved - * @param {string} retrieveDir directory where metadata after deploy should be saved - * @returns {Promise.} Promise of keyField => metadata map - */ + }; 'triggers[].metaData': { isCreateable: boolean; isUpdateable: boolean; @@ -533,11 +518,7 @@ declare namespace Journey { r__folder_Path: { isCreateable: boolean; isUpdateable: boolean; - retrieving: boolean; /** - * helper for Journey's {@link Journey.saveResults}. Gets executed after retreive of metadata type and - * - * @param {MetadataTypeMap} metadataMap key=customer key, value=metadata - */ + retrieving: boolean; template: boolean; }; }; diff --git a/@types/lib/metadataTypes/Journey.d.ts.map b/@types/lib/metadataTypes/Journey.d.ts.map index 86a926efb..15ab8e35c 100644 --- a/@types/lib/metadataTypes/Journey.d.ts.map +++ b/@types/lib/metadataTypes/Journey.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Journey.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Journey.js"],"names":[],"mappings":";uBAUa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;;;;;GAQG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CA8HxC;IA6ED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAS1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1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yBA/wCwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/List.d.ts b/@types/lib/metadataTypes/List.d.ts index cc1375a9e..b6b8b56db 100644 --- a/@types/lib/metadataTypes/List.d.ts +++ b/@types/lib/metadataTypes/List.d.ts @@ -1,14 +1,14 @@ export default List; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -68,7 +68,7 @@ declare class List extends MetadataType { static parseMetadata(metadata: MetadataTypeItem, parseForCache?: boolean): MetadataTypeItem; } declare namespace List { - let client: any; + let client: import("sfmc-sdk").default; let buObject: import("../../types/mcdev.d.js").BuObject; let definition: { bodyIteratorField: string; @@ -122,7 +122,7 @@ declare namespace List { template: boolean; }; CreatedDate: { - isCreateable: boolean; /** @type {SoapRequestParams} */ + isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; template: boolean; diff --git a/@types/lib/metadataTypes/List.d.ts.map b/@types/lib/metadataTypes/List.d.ts.map index 014d034ea..b26354f71 100644 --- a/@types/lib/metadataTypes/List.d.ts.map +++ b/@types/lib/metadataTypes/List.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/List.js"],"names":[],"mappings":";uBASa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAyBxC;IACD;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CA2BxC;IAED;;;;;;OAMG;IACH,sCAqEC;IAYD;;;;;OAKG;IACH,+BAHW,gBAAgB,GACd,gBAAgB,CAI5B;IACD;;;;;;OAMG;IACH,+BAJW,gBAAgB,kBAChB,OAAO,GACL,gBAAgB,CAsB5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCApLO,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAnCf,mBAAmB"} \ No newline at end of file +{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/List.js"],"names":[],"mappings":";uBASa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAyBxC;IACD;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CA2BxC;IAED;;;;;;OAMG;IACH,sCAqEC;IAYD;;;;;OAKG;IACH,+BAHW,gBAAgB,GACd,gBAAgB,CAI5B;IACD;;;;;;OAMG;IACH,+BAJW,gBAAgB,kBAChB,OAAO,GACL,gBAAgB,CAsB5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAvNwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/MetadataType.d.ts b/@types/lib/metadataTypes/MetadataType.d.ts index 79d282d6e..5d7646193 100644 --- a/@types/lib/metadataTypes/MetadataType.d.ts +++ b/@types/lib/metadataTypes/MetadataType.d.ts @@ -1,19 +1,19 @@ export default MetadataType; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type SDK = import('../../types/mcdev.d.js').SDK; -export type SDKError = import('../../types/mcdev.d.js').SDKError; -export type SOAPError = import('../../types/mcdev.d.js').SOAPError; -export type RestError = import('../../types/mcdev.d.js').RestError; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type SDK = import("sfmc-sdk").default; +export type SDKError = import("../../types/mcdev.d.js").SDKError; +export type SOAPError = import("../../types/mcdev.d.js").SOAPError; +export type RestError = import("../../types/mcdev.d.js").RestError; /** * MetadataType class that gets extended by their specific metadata type class. * Provides default functionality that can be overwritten by child metadata type classes @@ -52,12 +52,12 @@ declare class MetadataType { * @param {MetadataTypeMap} upsertResults metadata mapped by their keyField as returned by update/create * @param {MetadataTypeMap} originalMetadata metadata to be updated (contains additioanl fields) * @param {{created: number, updated: number}} createdUpdated counter representing successful creates/updates - * @returns {void} + * @returns {Promise.} - */ static postDeployTasks(upsertResults: MetadataTypeMap, originalMetadata: MetadataTypeMap, createdUpdated: { created: number; updated: number; - }): void; + }): Promise; /** * helper for {@link MetadataType.createREST} * @@ -261,7 +261,7 @@ declare class MetadataType { * @param {MetadataTypeItem[]} metadataToCreate list of items to create * @returns {Promise.<'create' | 'update' | 'skip'>} action to take */ - static createOrUpdate(metadataMap: MetadataTypeMap, metadataKey: string, hasError: boolean, metadataToUpdate: MetadataTypeItemDiff[], metadataToCreate: MetadataTypeItem[]): Promise<'create' | 'update' | 'skip'>; + static createOrUpdate(metadataMap: MetadataTypeMap, metadataKey: string, hasError: boolean, metadataToUpdate: MetadataTypeItemDiff[], metadataToCreate: MetadataTypeItem[]): Promise<"create" | "update" | "skip">; /** * Creates a single metadata entry via REST * @@ -287,7 +287,7 @@ declare class MetadataType { * @param {'patch'|'post'|'put'} [httpMethod] defaults to 'patch'; some update requests require PUT instead of PATCH * @returns {Promise. | null} Promise of API response or null in case of an error */ - static updateREST(metadataEntry: MetadataTypeItem, uri: string, httpMethod?: 'patch' | 'post' | 'put'): Promise | null; + static updateREST(metadataEntry: MetadataTypeItem, uri: string, httpMethod?: "patch" | "post" | "put"): Promise | null; /** * helper for {@link MetadataType.updateREST} and {@link MetadataType.updateSOAP} that removes old files after the key was changed * @@ -311,14 +311,14 @@ declare class MetadataType { * @param {MetadataTypeItem} [metadataEntry] single metadata entry * @param {boolean} [handleOutside] if the API reponse is irregular this allows you to handle it outside of this generic method */ - static _handleSOAPErrors(ex: any, msg: 'creating' | 'updating' | 'retrieving' | 'executing' | 'pausing', metadataEntry?: MetadataTypeItem, handleOutside?: boolean): void; + static _handleSOAPErrors(ex: SOAPError, msg: "creating" | "updating" | "retrieving" | "executing" | "pausing", metadataEntry?: MetadataTypeItem, handleOutside?: boolean): void; /** * helper for {@link MetadataType._handleSOAPErrors} * * @param {SOAPError} ex error that occured * @returns {string} error message */ - static getSOAPErrorMsg(ex: any): string; + static getSOAPErrorMsg(ex: SOAPError): string; /** * Retrieves SOAP via generic fuel-soap wrapper based metadata of metadata type into local filesystem. executes callback with retrieved metadata * @@ -360,7 +360,7 @@ declare class MetadataType { * @param {string} id id or key of item * @returns {Promise.} - */ - static handleRESTErrors(ex: any, id: string): Promise; + static handleRESTErrors(ex: RestError, id: string): Promise; /** * Used to execute a query/automation etc. * @@ -410,7 +410,7 @@ declare class MetadataType { * @param {string} origin string of parent object, required when using arrays as these are parsed slightly differently. * @returns {void} */ - static deleteFieldByDefinition(metadataEntry: MetadataTypeItem, fieldPath: string, definitionProperty: 'isCreateable' | 'isUpdateable' | 'retrieving' | 'template', origin: string): void; + static deleteFieldByDefinition(metadataEntry: MetadataTypeItem, fieldPath: string, definitionProperty: "isCreateable" | "isUpdateable" | "retrieving" | "template", origin: string): void; /** * Remove fields from metadata entry that are not createable * diff --git a/@types/lib/metadataTypes/MetadataType.d.ts.map b/@types/lib/metadataTypes/MetadataType.d.ts.map index 4b72fe82f..a47319429 100644 --- a/@types/lib/metadataTypes/MetadataType.d.ts.map +++ b/@types/lib/metadataTypes/MetadataType.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"MetadataType.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/MetadataType.js"],"names":[],"mappings":";uBAiBa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;sBA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G;IACH,yBAHW,MAAM,GACJ,MAAM,EAAE,CAkCpB;IAED;;;;;;OAMG;IACH,2BAJW,eAAe,aACf,OAAO,GACL,IAAI,CAMhB;IAED;;;;;OAKG;IACH,qBAHW,MAAM,GACJ,QAAS;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAA;KAAC,CAAC,CAK/C;IAED;;;;;OAKG;IACH,gCAHW,MAAM,GACJ,QAAS,OAAO,CAAC,CAK7B;IACD;;;;;;OAMG;IACH,oCAJW,MAAM,yBACN,MAAM,EAAE,GACN,QAAS,IAAI,CAAC,CAe1B;IAED;;;;;;;OAOG;IACH,oCALW,MAAM,qBACN,MAAM,kBACN,OAAO,GACL,QAAS,OAAO,CAAC,CA6B7B;IACD;;;;;;;OAOG;IACH,4BALW,MAAM,OACN,MAAM,kBACN,OAAO,GACL,QAAS,OAAO,CAAC,CAoB7B;IACD;;;;;;;OAOG;IACH,sCALW,MAAM,gBACN,OAAO,eACP,MAAM,GACJ,QAAS,MAAM,CAAC,CAgB5B;IACD;;;;;;OAMG;IACH,gCAHW,MAAM,EAAE,GACN,QAAS,MAAM,EAAE,CAAC,CAa9B;IAED;;;;OAIG;IACH,qCAHW,eAAe,GACb,MAAM,EAAE,CAwDpB;IACD;;;;;;;OAOG;IACH,4BALW,MAAM,gBACN,gBAAgB,gBAChB,MAAM,GACJ,MAAM,CAelB;CACJ;;;;;;;;;;;;gBAaS,GAAG;oBAIH,OAAO;iBAIP,MAAM;kBAIN,QAAQ"} \ No newline at end of file +{"version":3,"file":"MetadataType.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/MetadataType.js"],"names":[],"mappings":";uBAiBa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;sBAChD,OAAO,wBAAwB,EAAE,OAAO;+BACxC,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,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K,GACH,OAAO,CAAE,MAAM,CAAC,CAK5B;IACD;;;;;;;;;;OAUG;IACH,oCANW,MAAM,aACN,MAAM,GAAG,MAAM,EAAE,gBACjB,MAAM,aACN,WAAW,GACT,OAAO,CAAE,kBAAkB,CAAC,CA4FxC;IACD;;;;;OAKG;IACH,yBAHW,MAAM,GACJ,MAAM,EAAE,CAkCpB;IAED;;;;;;OAMG;IACH,2BAJW,eAAe,aACf,OAAO,GACL,IAAI,CAMhB;IAED;;;;;OAKG;IACH,qBAHW,MAAM,GACJ,OAAO,CAAE;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAA;KAAC,CAAC,CAK/C;IAED;;;;;OAKG;IACH,gCAHW,MAAM,GACJ,OAAO,CAAE,OAAO,CAAC,CAK7B;IACD;;;;;;OAMG;IACH,oCAJW,MAAM,yBACN,MAAM,EAAE,GACN,OAAO,CAAE,IAAI,CAAC,CAe1B;IAED;;;;;;;OAOG;IACH,oCALW,MAAM,qBACN,MAAM,kBACN,OAAO,GACL,OAAO,CAAE,OAAO,CAAC,CA4B7B;IACD;;;;;;;OAOG;IACH,4BALW,MAAM,OACN,MAAM,kBACN,OAAO,GACL,OAAO,CAAE,OAAO,CAAC,CAoB7B;IACD;;;;;;;OAOG;IACH,sCALW,MAAM,gBACN,OAAO,eACP,MAAM,GACJ,OAAO,CAAE,MAAM,CAAC,CAgB5B;IACD;;;;;;OAMG;IACH,gCAHW,MAAM,EAAE,GACN,OAAO,CAAE,MAAM,EAAE,CAAC,CAa9B;IAED;;;;OAIG;IACH,qCAHW,eAAe,GACb,MAAM,EAAE,CAwDpB;IACD;;;;;;;OAOG;IACH,4BALW,MAAM,gBACN,gBAAgB,gBAChB,MAAM,GACJ,MAAM,CAelB;CACJ;;;;;;;;;;;;gBAaS,GAAG;oBAIH,OAAO;iBAIP,MAAM;kBAIN,QAAQ"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/MobileCode.d.ts b/@types/lib/metadataTypes/MobileCode.d.ts index aa0ed40a3..5264af9b3 100644 --- a/@types/lib/metadataTypes/MobileCode.d.ts +++ b/@types/lib/metadataTypes/MobileCode.d.ts @@ -1,14 +1,14 @@ export default MobileCode; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -81,16 +81,7 @@ declare namespace MobileCode { isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; - template: boolean; /** - * Retrieves Metadata of Mobile Keywords - * Endpoint /legacy/v1/beta/mobile/code/ return all Mobile Codes with all details. - * - * @param {string} retrieveDir Directory where retrieved metadata directory will be saved - * @param {void | string[]} [_] unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.} Promise of metadata - */ + template: boolean; }; startDate: { isCreateable: boolean; diff --git a/@types/lib/metadataTypes/MobileCode.d.ts.map b/@types/lib/metadataTypes/MobileCode.d.ts.map index ed8d7d8ae..458835e93 100644 --- a/@types/lib/metadataTypes/MobileCode.d.ts.map +++ b/@types/lib/metadataTypes/MobileCode.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"MobileCode.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/MobileCode.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CASxC;IAED;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA3BG;;;;;;;;;mBASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA9BkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"MobileCode.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/MobileCode.js"],"names":[],"mappings":";uBAKa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CASxC;IAED;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAhDwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/MobileKeyword.d.ts b/@types/lib/metadataTypes/MobileKeyword.d.ts index 247c80407..00b3e0169 100644 --- a/@types/lib/metadataTypes/MobileKeyword.d.ts +++ b/@types/lib/metadataTypes/MobileKeyword.d.ts @@ -1,14 +1,14 @@ export default MobileKeyword; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -43,13 +43,13 @@ declare class MobileKeyword extends MetadataType { * * @param {MetadataTypeItem} metadata single item */ - static "__#5@#createCustomKeyField"(metadata: MetadataTypeItem): void; + static "__#6@#createCustomKeyField"(metadata: MetadataTypeItem): void; /** * helper for {@link MobileKeyword.preDeployTasks} and {@link MobileKeyword.createOrUpdate} to ensure we have code & keyword properly set * * @param {MetadataTypeItem} metadata single item */ - static "__#5@#setCodeAndKeyword"(metadata: MetadataTypeItem): void; + static "__#6@#setCodeAndKeyword"(metadata: MetadataTypeItem): void; /** * Retrieves event definition metadata for caching * @@ -74,7 +74,7 @@ declare class MobileKeyword extends MetadataType { * @param {string} key customer key of single item to retrieve / name of the metadata file * @returns {Array} key, queryParams */ - static "__#5@#getRetrieveKeyAndUrl"(key: string): any[]; + static "__#6@#getRetrieveKeyAndUrl"(key: string): any[]; /** * Creates a single item * @@ -118,7 +118,7 @@ declare class MobileKeyword extends MetadataType { * @param {'definition'|'template'} mode defines what we use this helper for * @returns {Promise.} list of extracted files with path-parts provided as an array */ - static _buildForNested(templateDir: string, targetDir: string | string[], metadata: MetadataTypeItem, templateVariables: TemplateMap, templateName: string, mode: 'definition' | 'template'): Promise; + static _buildForNested(templateDir: string, targetDir: string | string[], metadata: MetadataTypeItem, templateVariables: TemplateMap, templateName: string, mode: "definition" | "template"): Promise; /** * helper for {@link MetadataType.createREST} * diff --git a/@types/lib/metadataTypes/MobileKeyword.d.ts.map b/@types/lib/metadataTypes/MobileKeyword.d.ts.map index dd1e21465..6458efb0e 100644 --- a/@types/lib/metadataTypes/MobileKeyword.d.ts.map +++ b/@types/lib/metadataTypes/MobileKeyword.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"MobileKeyword.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/MobileKeyword.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAljBwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"MobileKeyword.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/MobileKeyword.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAwBxC;IAoDD;;;;OAIG;IACH,8CAFW,gBAAgB,QAI1B;IAED;;;;OAIG;IACH,2CAFW,gBAAgB,QAY1B;IAiCD;;;;;;;OAOG;IACH,4BALW,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAljBwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/MobileMessage.d.ts b/@types/lib/metadataTypes/MobileMessage.d.ts index 8f44d733d..84e93c58f 100644 --- a/@types/lib/metadataTypes/MobileMessage.d.ts +++ b/@types/lib/metadataTypes/MobileMessage.d.ts @@ -1,14 +1,14 @@ export default MobileMessage; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -114,7 +114,7 @@ declare class MobileMessage extends MetadataType { * @param {'definition'|'template'} mode defines what we use this helper for * @returns {Promise.} list of extracted files with path-parts provided as an array */ - static _buildForNested(templateDir: string, targetDir: string | string[], metadata: MetadataTypeItem, templateVariables: TemplateMap, templateName: string, mode: 'definition' | 'template'): Promise; + static _buildForNested(templateDir: string, targetDir: string | string[], metadata: MetadataTypeItem, templateVariables: TemplateMap, templateName: string, mode: "definition" | "template"): Promise; } declare namespace MobileMessage { let definition: { @@ -150,24 +150,11 @@ declare namespace MobileMessage { skipValidation: boolean; }; campaigns: { - /** - * MobileMessage MetadataType - * - * @augments MetadataType - */ skipValidation: boolean; }; 'campaigns[]': { skipValidation: boolean; - }; /** - * Retrieves Metadata of Mobile Keywords - * - * @param {string} retrieveDir Directory where retrieved metadata directory will be saved - * @param {void | string[]} [_] unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.} Promise of metadata - */ + }; r__mobileCode_key: { isCreateable: boolean; isUpdateable: boolean; @@ -301,12 +288,7 @@ declare namespace MobileMessage { template: boolean; }; 'code.sendableCountries[].vendor': { - isCreateable: boolean; /** - * helper for {@link MobileMessage.postRetrieveTasks} and {@link MobileMessage._buildForNested} - * - * @param {string} code the code of the file - * @returns {{fileExt:string,code:string}} returns found extension and file content - */ + isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; template: boolean; @@ -598,17 +580,7 @@ declare namespace MobileMessage { isUpdatable: boolean; retrieving: boolean; template: boolean; - }; /** - * helper for {@link MetadataType.buildDefinition} - * handles extracted code if any are found for complex types - * - * @param {string} templateDir Directory where metadata templates are stored - * @param {string|string[]} targetDir (List of) Directory where built definitions will be saved - * @param {MetadataTypeItem} metadata main JSON file that was read from file system - * @param {TemplateMap} templateVariables variables to be replaced in the metadata - * @param {string} templateName name of the template to be built - * @returns {Promise.} list of extracted files with path-parts provided as an array - */ + }; mtSendDate: { isCreatable: boolean; isUpdatable: boolean; diff --git a/@types/lib/metadataTypes/MobileMessage.d.ts.map b/@types/lib/metadataTypes/MobileMessage.d.ts.map index 9f36eec1d..edfd61ad5 100644 --- a/@types/lib/metadataTypes/MobileMessage.d.ts.map +++ b/@types/lib/metadataTypes/MobileMessage.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"MobileMessage.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/MobileMessage.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CA2BxC;IAED;;;;;;;OAOG;IACH,4BALW,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAS1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IACD;;;;;;;OAOG;IACH,4BALW,gBAAgB,aAChB,MAAM,iBACN,MAAM,GACJ,QAAS,MAAM,CAAC,CAoB5B;IACD;;;;;OAKG;IACH,+BAHW,MAAM,GACJ;QAAC,OAAO,EAAC,MAAM,CAAC;QAAA,IAAI,EAAC,MAAM,CAAA;KAAC,CAMxC;IAwBD;;;;;OAKG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAxWkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"MobileMessage.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/MobileMessage.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CA2BxC;IAED;;;;;;;OAOG;IACH,4BALW,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAS1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IACD;;;;;;;OAOG;IACH,4BALW,gBAAgB,aAChB,MAAM,iBACN,MAAM,GACJ,OAAO,CAAE,MAAM,CAAC,CAoB5B;IACD;;;;;OAKG;IACH,+BAHW,MAAM,GACJ;QAAC,OAAO,EAAC,MAAM,CAAC;QAAA,IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBApewB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Query.d.ts b/@types/lib/metadataTypes/Query.d.ts index 22aefe238..ae2c1fa70 100644 --- a/@types/lib/metadataTypes/Query.d.ts +++ b/@types/lib/metadataTypes/Query.d.ts @@ -1,16 +1,16 @@ export default Query; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type QueryItem = import('../../types/mcdev.d.js').QueryItem; -export type QueryMap = import('../../types/mcdev.d.js').QueryMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type QueryItem = import("../../types/mcdev.d.js").QueryItem; +export type QueryMap = import("../../types/mcdev.d.js").QueryMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/Query.d.ts.map b/@types/lib/metadataTypes/Query.d.ts.map index 6f5934b0d..171fbc6f1 100644 --- a/@types/lib/metadataTypes/Query.d.ts.map +++ b/@types/lib/metadataTypes/Query.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Query.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;wBAI5C,OAAO,wBAAwB,EAAE,SAAS;uBAC1C,OAAO,wBAAwB,EAAE,QAAQ;AAftD;;;;;;;;;;;GAWG;AAEH;;;GAGG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS;QAAC,QAAQ,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAsBxD;IA6BD;;;;;;OAMG;IACH,6CAiBC;IAED;;;;OAIG;IACH,2BAFa,QAAS;QAAC,QAAQ,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIxD;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,QAAS;QAAC,QAAQ,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CASrD;IAED;;;;;OAKG;IACH,mCAHW,SAAS,GACP,eAAe,CAwD3B;IAED;;;;;OAKG;IACH,qBAHW,SAAS,gBAMnB;IAED;;;;;OAKG;IACH,qBAHW,SAAS,gBAMnB;IAED;;;;;;OAMG;IACH,gCAJW,SAAS,aACT,MAAM,GACJ,QAAS,SAAS,CAAC,CAgC/B;IAwBD;;;;;;;;;;OAUG;IACH,6CAPW,MAAM,aACN,MAAM,GAAC,MAAM,EAAE,YACf,SAAS,qBACT,WAAW,gBACX,MAAM,GACJ,QAAS,MAAM,EAAE,EAAE,CAAC,CAiBhC;IACD;;;;;;;;;;;OAWG;IACH,2CAPW,MAAM,aACN,MAAM,GAAC,MAAM,EAAE,YACf,SAAS,qBACT,WAAW,gBACX,MAAM,GACJ,QAAS,MAAM,EAAE,EAAE,CAAC,CAiBhC;IACD;;;;;;;;;;;;OAYG;IACH,+BAkDC;IAoDD;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,QAAS,IAAI,CAAC,CAM1B;IACD;;;;OAIG;IACH,sCAFW,eAAe,iBAOzB;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3dwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Query.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BA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AAW,gBACX,MAAM,GACJ,OAAO,CAAE,MAAM,EAAE,EAAE,CAAC,CAiBhC;IACD;;;;;;;;;;;OAWG;IACH,2CAPW,MAAM,aACN,MAAM,GAAC,MAAM,EAAE,YACf,SAAS,qBACT,WAAW,gBACX,MAAM,GACJ,OAAO,CAAE,MAAM,EAAE,EAAE,CAAC,CAiBhC;IACD;;;;;;;;;;;;OAYG;IACH,+BAkDC;IAoDD;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,OAAO,CAAE,IAAI,CAAC,CAM1B;IACD;;;;OAIG;IACH,sCAFW,eAAe,iBAOzB;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3dwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Role.d.ts b/@types/lib/metadataTypes/Role.d.ts index 5f954947e..ebd99afe4 100644 --- a/@types/lib/metadataTypes/Role.d.ts +++ b/@types/lib/metadataTypes/Role.d.ts @@ -1,15 +1,15 @@ export default Role; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type SoapSDKFilterSimple = import('../../types/mcdev.d.js').SoapSDKFilterSimple; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type SoapSDKFilterSimple = import("../../types/mcdev.d.js").SoapSDKFilterSimple; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/Role.d.ts.map b/@types/lib/metadataTypes/Role.d.ts.map index 96e4cbf20..f32d5ead9 100644 --- a/@types/lib/metadataTypes/Role.d.ts.map +++ b/@types/lib/metadataTypes/Role.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Role.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;kCAClD,OAAO,wBAAwB,EAAE,mBAAmB;0BACpD,OAAO,wBAAwB,EAAE,WAAW;AAXzD;;;;;;;;;;;;GAYG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,QACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAsFxC;IACD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,gBAAgB,CAS5B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,2BAHW,eAAe,GACb,QAAS,IAAI,CAAC,CA0G1B;IAED;;;;;;;;;;OAUG;IACH,4BAPW,MAAM,WACN,MAAM,eACN,MAAM,cACN,MAAM,GAEJ,IAAI,CAyDhB;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA7UwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Role.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;kCAClD,OAAO,wBAAwB,EAAE,mBAAmB;0BACpD,OAAO,wBAAwB,EAAE,WAAW;AAXzD;;;;;;;;;;;;GAYG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,QACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAsFxC;IACD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,gBAAgB,CAS5B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,2BAHW,eAAe,GACb,OAAO,CAAE,IAAI,CAAC,CA4G1B;IAED;;;;;;;;;;OAUG;IACH,4BAPW,MAAM,WACN,MAAM,eACN,MAAM,cACN,MAAM,GAEJ,IAAI,CAyDhB;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA/UwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Script.d.ts b/@types/lib/metadataTypes/Script.d.ts index 0134ba379..73410afd9 100644 --- a/@types/lib/metadataTypes/Script.d.ts +++ b/@types/lib/metadataTypes/Script.d.ts @@ -1,17 +1,17 @@ export default Script; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type ContentBlockConversionTypes = import('../../types/mcdev.d.js').ContentBlockConversionTypes; -export type ScriptItem = import('../../types/mcdev.d.js').ScriptItem; -export type ScriptMap = import('../../types/mcdev.d.js').ScriptMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type ContentBlockConversionTypes = import("../../types/mcdev.d.js").ContentBlockConversionTypes; +export type ScriptItem = import("../../types/mcdev.d.js").ScriptItem; +export type ScriptMap = import("../../types/mcdev.d.js").ScriptMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -138,7 +138,7 @@ declare class Script extends MetadataType { * @param {'definition'|'template'} mode defines what we use this helper for * @returns {Promise.} list of extracted files with path-parts provided as an array */ - static _buildForNested(templateDir: string, targetDir: string | string[], metadata: ScriptItem, templateVariables: TemplateMap, templateName: string, mode: 'definition' | 'template'): Promise; + static _buildForNested(templateDir: string, targetDir: string | string[], metadata: ScriptItem, templateVariables: TemplateMap, templateName: string, mode: "definition" | "template"): Promise; /** * manages post retrieve steps * @@ -234,16 +234,7 @@ declare namespace Script { }; folderLocationText: { isCreateable: boolean; - isUpdateable: boolean; /** - * Retrieves Metadata of Script - * Endpoint /automation/v1/scripts/ return all Scripts with all details. - * - * @param {string} [retrieveDir] Directory where retrieved metadata directory will be saved - * @param {void | string[]} [_] unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.<{metadata: ScriptMap, type: string}>} Promise - */ + isUpdateable: boolean; retrieving: boolean; template: boolean; }; diff --git a/@types/lib/metadataTypes/Script.d.ts.map b/@types/lib/metadataTypes/Script.d.ts.map index 3aff47cf8..9010c31fd 100644 --- a/@types/lib/metadataTypes/Script.d.ts.map +++ b/@types/lib/metadataTypes/Script.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Script.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Script.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;0CAC5C,OAAO,wBAAwB,EAAE,2BAA2B;yBAI5D,OAAO,wBAAwB,EAAE,UAAU;wBAC3C,OAAO,wBAAwB,EAAE,SAAS;AAhBvD;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS;QAAC,QAAQ,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAKzD;IACD;;;;OAIG;IACH,2BAFa,QAAS;QAAC,QAAQ,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIzD;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,QAAS;QAAC,QAAQ,EAAE,UAAU,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAS1D;IAED;;;;;OAKG;IACH,sBAH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;;;;;;;;;;;;;;;;;;;;;;;;;;yBAvCkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Script.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Script.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;0CAC5C,OAAO,wBAAwB,EAAE,2BAA2B;yBAI5D,OAAO,wBAAwB,EAAE,UAAU;wBAC3C,OAAO,wBAAwB,EAAE,SAAS;AAhBvD;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;;OASG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE;QAAC,QAAQ,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAKzD;IACD;;;;OAIG;IACH,2BAFa,OAAO,CAAE;QAAC,QAAQ,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAIzD;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,OAAO,CAAE;QAAC,QAAQ,EAAE,UAAU,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAS1D;IAED;;;;;OAKG;IACH,sBAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,sBAHW,gBAAgB,gBAK1B;IAED;;;;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 No newline at end of file diff --git a/@types/lib/metadataTypes/SendClassification.d.ts b/@types/lib/metadataTypes/SendClassification.d.ts index de1cad697..acae219e6 100644 --- a/@types/lib/metadataTypes/SendClassification.d.ts +++ b/@types/lib/metadataTypes/SendClassification.d.ts @@ -1,14 +1,14 @@ export default SendClassification; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract diff --git a/@types/lib/metadataTypes/SendClassification.d.ts.map b/@types/lib/metadataTypes/SendClassification.d.ts.map index ecd666f65..e3ebd3026 100644 --- a/@types/lib/metadataTypes/SendClassification.d.ts.map +++ b/@types/lib/metadataTypes/SendClassification.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SendClassification.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/SendClassification.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAexC;IACD;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAWD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CA4BtC;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAiC5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAnJwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"SendClassification.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/SendClassification.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAexC;IACD;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAWD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,OAAO,CAAE,gBAAgB,CAAC,CA4BtC;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAiC5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAnJwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/SenderProfile.d.ts b/@types/lib/metadataTypes/SenderProfile.d.ts index f8d075f0c..067966397 100644 --- a/@types/lib/metadataTypes/SenderProfile.d.ts +++ b/@types/lib/metadataTypes/SenderProfile.d.ts @@ -1,14 +1,14 @@ export default SenderProfile; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -103,15 +103,7 @@ declare namespace SenderProfile { isUpdateable: boolean; retrieving: boolean; template: boolean; - }; /** - * Retrieves SOAP based metadata of metadata type into local filesystem. executes callback with retrieved metadata - * - * @param {string} [retrieveDir] Directory where retrieved metadata directory will be saved - * @param {void | string[]} [_] unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.} Promise of metadata - */ + }; CustomerKey: { isCreateable: boolean; isUpdateable: boolean; diff --git a/@types/lib/metadataTypes/SenderProfile.d.ts.map b/@types/lib/metadataTypes/SenderProfile.d.ts.map index af881d057..f9226d2a9 100644 --- a/@types/lib/metadataTypes/SenderProfile.d.ts.map +++ b/@types/lib/metadataTypes/SenderProfile.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SenderProfile.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/SenderProfile.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAexC;IACD;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAYD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CAyBtC;IACD;;;;OAIG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CA4DtC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAnJG;;;;;;;;eAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA/BkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"SenderProfile.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/SenderProfile.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAexC;IACD;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAED;;;;;OAKG;IACH,4BAHW,gBAAgB,gBAK1B;IAYD;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,OAAO,CAAE,gBAAgB,CAAC,CAyBtC;IACD;;;;OAIG;IACH,gCAHW,gBAAgB,GACd,OAAO,CAAE,gBAAgB,CAAC,CA6DtC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA3KwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/TransactionalEmail.d.ts b/@types/lib/metadataTypes/TransactionalEmail.d.ts index ead20ba8c..2bddbcd60 100644 --- a/@types/lib/metadataTypes/TransactionalEmail.d.ts +++ b/@types/lib/metadataTypes/TransactionalEmail.d.ts @@ -1,14 +1,14 @@ export default TransactionalEmail; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -48,9 +48,9 @@ declare class TransactionalEmail extends TransactionalMessage { /** * Gets executed after deployment of metadata type * - * @returns {void} + * @returns {Promise.} - */ - static postDeployTasks(): void; + static postDeployTasks(): Promise; /** * manages post retrieve steps * diff --git a/@types/lib/metadataTypes/TransactionalEmail.d.ts.map b/@types/lib/metadataTypes/TransactionalEmail.d.ts.map index be34aa627..0def10a6e 100644 --- a/@types/lib/metadataTypes/TransactionalEmail.d.ts.map +++ b/@types/lib/metadataTypes/TransactionalEmail.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TransactionalEmail.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/TransactionalEmail.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI,uBAAyB;IACzB,oBAAoB;IACpB,kCAA2B;IAqB3B;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CAyCtC;IACD;;;;;;OAMG;IACH,0BAJW,gBAAgB,eAChB,MAAM,GACJ,QAAS,IAAI,CAAC,CAe1B;IACD;;;;OAIG;IACH,0BAFa,IAAI,CAWhB;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAmF5B;CA2BJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCApPgC,2BAA2B"} \ No newline at end of file +{"version":3,"file":"TransactionalEmail.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/TransactionalEmail.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI,uBAAyB;IACzB,oBAAoB;IACpB,kCAA2B;IAqB3B;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,OAAO,CAAE,gBAAgB,CAAC,CAyCtC;IACD;;;;;;OAMG;IACH,0BAJW,gBAAgB,eAChB,MAAM,GACJ,OAAO,CAAE,IAAI,CAAC,CAe1B;IACD;;;;OAIG;IACH,0BAFa,OAAO,CAAE,IAAI,CAAC,CAW1B;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAmF5B;CA2BJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCApPgC,2BAA2B"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/TransactionalMessage.d.ts b/@types/lib/metadataTypes/TransactionalMessage.d.ts index 64bbe07f4..c6aec81a9 100644 --- a/@types/lib/metadataTypes/TransactionalMessage.d.ts +++ b/@types/lib/metadataTypes/TransactionalMessage.d.ts @@ -1,14 +1,14 @@ export default TransactionalMessage; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -67,23 +67,6 @@ declare namespace TransactionalMessage { bodyIteratorField: string; dependencies: any[]; hasExtended: boolean; - /** - * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject - * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract - * @typedef {import('../../types/mcdev.d.js').CodeExtractItem} CodeExtractItem - * @typedef {import('../../types/mcdev.d.js').MetadataTypeItem} MetadataTypeItem - * @typedef {import('../../types/mcdev.d.js').MetadataTypeItemDiff} MetadataTypeItemDiff - * @typedef {import('../../types/mcdev.d.js').MetadataTypeItemObj} MetadataTypeItemObj - * @typedef {import('../../types/mcdev.d.js').MetadataTypeMap} MetadataTypeMap - * @typedef {import('../../types/mcdev.d.js').MetadataTypeMapObj} MetadataTypeMapObj - * @typedef {import('../../types/mcdev.d.js').SoapRequestParams} SoapRequestParams - * @typedef {import('../../types/mcdev.d.js').TemplateMap} TemplateMap - */ - /** - * TransactionalMessage MetadataType - * - * @augments MetadataType - */ idField: string; keyIsFixed: boolean; keyField: string; @@ -110,11 +93,7 @@ declare namespace TransactionalMessage { isUpdateable: boolean; retrieving: boolean; template: boolean; - }; /** - * TransactionalMessage MetadataType - * - * @augments MetadataType - */ + }; description: { isCreateable: boolean; isUpdateable: boolean; diff --git a/@types/lib/metadataTypes/TransactionalMessage.d.ts.map b/@types/lib/metadataTypes/TransactionalMessage.d.ts.map index 0ca9b53ba..c841c97d1 100644 --- a/@types/lib/metadataTypes/TransactionalMessage.d.ts.map +++ b/@types/lib/metadataTypes/TransactionalMessage.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TransactionalMessage.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/TransactionalMessage.js"],"names":[],"mappings":";uBAMa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IAEI,oBAAe;IACf;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CA2CxC;IAED;;;;;;;OAOG;IACH,4BALW,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAOxC;IACD;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAQ1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;CAcJ;;;;;;QA1HD;;;;;;;;;;;WAWG;QAEH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;eAJH;;;;eAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBApBsB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"TransactionalMessage.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/TransactionalMessage.js"],"names":[],"mappings":";uBAMa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IAEI,oBAAe;IACf;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CA2CxC;IAED;;;;;;;OAOG;IACH,4BALW,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAOxC;IACD;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAQ1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;CAcJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA7HwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/TransactionalPush.d.ts b/@types/lib/metadataTypes/TransactionalPush.d.ts index 9d430b781..0c151d082 100644 --- a/@types/lib/metadataTypes/TransactionalPush.d.ts +++ b/@types/lib/metadataTypes/TransactionalPush.d.ts @@ -1,14 +1,14 @@ export default TransactionalPush; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -74,11 +74,7 @@ declare namespace TransactionalPush { isUpdateable: boolean; retrieving: boolean; template: boolean; - }; /** - * TransactionalPush TransactionalMessage - * - * @augments TransactionalMessage - */ + }; description: { isCreateable: boolean; isUpdateable: boolean; @@ -119,12 +115,7 @@ declare namespace TransactionalPush { isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; - template: boolean; /** - * manages post retrieve steps - * - * @param {MetadataTypeItem} metadata a single item - * @returns {MetadataTypeItem} a single item - */ + template: boolean; }; r__asset_key: { isCreateable: boolean; diff --git a/@types/lib/metadataTypes/TransactionalPush.d.ts.map b/@types/lib/metadataTypes/TransactionalPush.d.ts.map index 31d4b8252..3b4f55771 100644 --- a/@types/lib/metadataTypes/TransactionalPush.d.ts.map +++ b/@types/lib/metadataTypes/TransactionalPush.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TransactionalPush.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/TransactionalPush.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI,uBAAwB;IAExB;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CAqBtC;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CA4B5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAnED;;;;eAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA8BC;;;;;mBAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAxD0B,2BAA2B"} \ No newline at end of file +{"version":3,"file":"TransactionalPush.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/TransactionalPush.js"],"names":[],"mappings":";uBAOa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI,uBAAwB;IAExB;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,OAAO,CAAE,gBAAgB,CAAC,CAqBtC;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CA4B5B;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCApFgC,2BAA2B"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/TransactionalSMS.d.ts b/@types/lib/metadataTypes/TransactionalSMS.d.ts index c4efb093b..166e3f4a5 100644 --- a/@types/lib/metadataTypes/TransactionalSMS.d.ts +++ b/@types/lib/metadataTypes/TransactionalSMS.d.ts @@ -1,14 +1,14 @@ export default TransactionalSMS; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -73,7 +73,7 @@ declare class TransactionalSMS extends TransactionalMessage { * @param {'definition'|'template'} mode defines what we use this helper for * @returns {Promise.} list of extracted files with path-parts provided as an array */ - static _buildForNested(templateDir: string, targetDir: string | string[], metadata: MetadataTypeItem, templateVariables: TemplateMap, templateName: string, mode: 'definition' | 'template'): Promise; + static _buildForNested(templateDir: string, targetDir: string | string[], metadata: MetadataTypeItem, templateVariables: TemplateMap, templateName: string, mode: "definition" | "template"): Promise; /** * very simplified test for HTML code in our SMS * @@ -137,13 +137,7 @@ declare namespace TransactionalSMS { isUpdateable: boolean; retrieving: boolean; template: boolean; - }; /** - * prepares for deployment - * - * @param {MetadataTypeItem} metadata a single item - * @param {string} deployDir directory of deploy files - * @returns {Promise.} Promise - */ + }; createdDate: { isCreateable: boolean; isUpdateable: boolean; diff --git a/@types/lib/metadataTypes/TransactionalSMS.d.ts.map b/@types/lib/metadataTypes/TransactionalSMS.d.ts.map index d7fbb11a9..f18437ee3 100644 --- a/@types/lib/metadataTypes/TransactionalSMS.d.ts.map +++ b/@types/lib/metadataTypes/TransactionalSMS.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TransactionalSMS.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/TransactionalSMS.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI,uBAAuB;IACvB;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,QAAS,IAAI,CAAC,CAM1B;IAqDD;;;;;;;OAOG;IACH,4BALW,gBAAgB,aAChB,MAAM,iBACN,MAAM,GACJ,QAAS,MAAM,CAAC,CAmB5B;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,QAAS,eAAe,CAAC,CAqErC;IACD;;;;;OAKG;IACH,yCAHW,MAAM,GACJ,QAAS;QAAC,OAAO,EAAC,MAAM,CAAC;QAAA,IAAI,EAAC,MAAM,CAAA;KAAC,CAAC,CAOlD;IAyDD;;;;;;;;;;;OAWG;IACH,oCARW,MAAM,aACN,MAAM,GAAC,MAAM,EAAE,YACf,gBAAgB,qBAChB,WAAW,gBACX,MAAM,QACN,YAAY,GAAC,UAAU,GACrB,QAAS,MAAM,EAAE,EAAE,CAAC,CAqDhC;IACD;;;;;OAKG;IACH,qBAHW,MAAM,GACJ,OAAO,CAInB;CAsBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAzTG;;;;;;eAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA3C0B,2BAA2B"} \ No newline at end of file +{"version":3,"file":"TransactionalSMS.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/TransactionalSMS.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;AAVzD;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH;IACI,uBAAuB;IACvB;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,OAAO,CAAE,IAAI,CAAC,CAM1B;IAqDD;;;;;;;OAOG;IACH,4BALW,gBAAgB,aAChB,MAAM,iBACN,MAAM,GACJ,OAAO,CAAE,MAAM,CAAC,CAmB5B;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,OAAO,CAAE,eAAe,CAAC,CAqErC;IACD;;;;;OAKG;IACH,yCAHW,MAAM,GACJ,OAAO,CAAE;QAAC,OAAO,EAAC,MAAM,CAAC;QAAA,IAAI,EAAC,MAAM,CAAA;KAAC,CAAC,CAOlD;IAyDD;;;;;;;;;;;OAWG;IACH,oCARW,MAAM,aACN,MAAM,GAAC,MAAM,EAAE,YACf,gBAAgB,qBAChB,WAAW,gBACX,MAAM,QACN,YAAY,GAAC,UAAU,GACrB,OAAO,CAAE,MAAM,EAAE,EAAE,CAAC,CAqDhC;IACD;;;;;OAKG;IACH,qBAHW,MAAM,GACJ,OAAO,CAInB;CAsBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA9VgC,2BAA2B"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/TriggeredSend.d.ts b/@types/lib/metadataTypes/TriggeredSend.d.ts index cc4d10f36..27028f745 100644 --- a/@types/lib/metadataTypes/TriggeredSend.d.ts +++ b/@types/lib/metadataTypes/TriggeredSend.d.ts @@ -1,14 +1,14 @@ export default TriggeredSend; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -157,7 +157,7 @@ declare namespace TriggeredSend { }; BccEmail: { isCreateable: boolean; - isUpdateable: boolean; /** @type {SoapRequestParams} */ + isUpdateable: boolean; retrieving: boolean; templating: boolean; }; @@ -226,12 +226,7 @@ declare namespace TriggeredSend { isUpdateable: boolean; retrieving: boolean; templating: boolean; - }; /** - * parses retrieved Metadata before saving - * - * @param {MetadataTypeItem} metadata a single item - * @returns {MetadataTypeItem | void} Array with one metadata object and one sql string - */ + }; DisableOnEmailBuildError: { isCreateable: boolean; isUpdateable: boolean; @@ -656,7 +651,7 @@ declare namespace TriggeredSend { skipValidation: boolean; }; c__priority: { - skipValidation: boolean; /** @type {SoapRequestParams} */ + skipValidation: boolean; }; r__sendClassification_key: { skipValidation: boolean; diff --git a/@types/lib/metadataTypes/TriggeredSend.d.ts.map b/@types/lib/metadataTypes/TriggeredSend.d.ts.map index dd77f9dce..5e92c5bb2 100644 --- a/@types/lib/metadataTypes/TriggeredSend.d.ts.map +++ b/@types/lib/metadataTypes/TriggeredSend.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TriggeredSend.d.ts","sourceRoot":"","sources":["../../../lib/metadata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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA1iBwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/User.d.ts b/@types/lib/metadataTypes/User.d.ts index dccb76fc7..c7368e37a 100644 --- a/@types/lib/metadataTypes/User.d.ts +++ b/@types/lib/metadataTypes/User.d.ts @@ -1,19 +1,19 @@ export default User; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type UserDocument = import('../../types/mcdev.d.js').UserDocument; -export type UserDocumentDocument = import('../../types/mcdev.d.js').UserDocumentDocument; -export type UserDocumentDiff = import('../../types/mcdev.d.js').UserDocumentDiff; -export type UserDocumentMap = import('../../types/mcdev.d.js').UserDocumentMap; -export type AccountUserConfiguration = import('../../types/mcdev.d.js').AccountUserConfiguration; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type UserDocument = import("../../types/mcdev.d.js").UserDocument; +export type UserDocumentDocument = import("../../types/mcdev.d.js").UserDocumentDocument; +export type UserDocumentDiff = import("../../types/mcdev.d.js").UserDocumentDiff; +export type UserDocumentMap = import("../../types/mcdev.d.js").UserDocumentMap; +export type AccountUserConfiguration = import("../../types/mcdev.d.js").AccountUserConfiguration; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -87,7 +87,7 @@ declare class User extends MetadataType { * @param {UserDocument[]} metadataToCreate list of items to create * @returns {Promise.<'create'|'update'|'skip'>} action to take */ - static createOrUpdate(metadata: MetadataTypeMap, metadataKey: string, hasError: boolean, metadataToUpdate: UserDocumentDiff[], metadataToCreate: UserDocument[]): Promise<'create' | 'update' | 'skip'>; + static createOrUpdate(metadata: MetadataTypeMap, metadataKey: string, hasError: boolean, metadataToUpdate: UserDocumentDiff[], metadataToCreate: UserDocument[]): Promise<"create" | "update" | "skip">; /** * * @private @@ -182,7 +182,7 @@ declare class User extends MetadataType { * @param {string} interval defaults to 'days' * @returns {string} time difference */ - static "__#6@#timeSinceDate"(dateStr: string, interval?: string): string; + static "__#7@#timeSinceDate"(dateStr: string, interval?: string): string; /** * helper to print bu names * @@ -225,10 +225,10 @@ declare class User extends MetadataType { /** * manages post retrieve steps * - * @param {MetadataTypeItem} metadata a single item + * @param {UserDocument} metadata a single item * @returns {MetadataTypeItem | void} a single item */ - static postRetrieveTasks(metadata: MetadataTypeItem): MetadataTypeItem | void; + static postRetrieveTasks(metadata: UserDocument): MetadataTypeItem | void; } declare namespace User { let userIdBuMap: {}; @@ -278,15 +278,7 @@ declare namespace User { isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; - template: boolean; /** - * Retrieves SOAP based metadata of metadata type into local filesystem. executes callback with retrieved metadata - * - * @param {string} retrieveDir Directory where retrieved metadata directory will be saved - * @param {void | string[]} _ unused parameter - * @param {void | string[]} [__] unused parameter - * @param {string} [key] customer key of single item to retrieve - * @returns {Promise.} Promise of metadata - */ + template: boolean; }; ChallengeAnswer: { isCreateable: boolean; @@ -321,12 +313,7 @@ declare namespace User { CorrelationID: { isCreateable: boolean; isUpdateable: boolean; - retrieving: boolean; /** - * Create a single item. - * - * @param {MetadataTypeItem} metadata single metadata entry - * @returns {Promise} Promise - */ + retrieving: boolean; template: boolean; }; CreatedDate: { @@ -342,12 +329,7 @@ declare namespace User { template: boolean; }; DefaultApplication: { - isCreateable: boolean; /** - * Updates a single item. - * - * @param {MetadataTypeItem} metadata single metadata entry - * @returns {Promise} Promise - */ + isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; template: boolean; diff --git a/@types/lib/metadataTypes/User.d.ts.map b/@types/lib/metadataTypes/User.d.ts.map index c1e343c67..bb2d3a875 100644 --- a/@types/lib/metadataTypes/User.d.ts.map +++ b/@types/lib/metadataTypes/User.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/User.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2B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,CAAC,CA4IxC;IAED;;;;;;;;;OASG;IACH,8CAqEC;IAED;;;;;OAKG;IACH,sCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAqDlB;IACD;;;;;;OAMG;IACH,0BAGC;IAED;;;;OAIG;IACH,2BAOC;IACD;;;;;;;OAOG;IACH,iCAmBC;IACD;;;;;OAKG;IACH,2BAHW,eAAe,GACb,QAAS,IAAI,CAAC,CAsI1B;IACD;;;;;;;OAOG;IACH,8BAeC;IAED;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,GAAG,IAAI,CAoEnC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAzoCG;;;;;;;;mBAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAiBH;;;;;mBAKG;;;;;;;;;;;;;;;;uCASH;;;;;mBAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA7EkB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/User.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO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M,CAyBlB;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IACD;;;;;;;OAOG;IACH,yBA+BC;IAED;;;;;;;;OAQG;IACH,iCANW,MAAM,kBACN,iBAAiB,mBACjB,MAAM,qBACN,MAAM,EAAE,GACN,OAAO,CAAE,kBAAkB,CAAC,CA6IxC;IAED;;;;;;;;;OASG;IACH,8CAqEC;IAED;;;;;OAKG;IACH,sCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAqDlB;IACD;;;;;;OAMG;IACH,0BAGC;IAED;;;;OAIG;IACH,2BAOC;IACD;;;;;;;OAOG;IACH,iCAmBC;IACD;;;;;OAKG;IACH,2BAHW,eAAe,GACb,OAAO,CAAE,IAAI,CAAC,CA0I1B;IACD;;;;;;;OAOG;IACH,8BAeC;IAED;;;;;OAKG;IACH,mCAHW,YAAY,GACV,gBAAgB,GAAG,IAAI,CAoEnC;CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA9qCwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/Verification.d.ts b/@types/lib/metadataTypes/Verification.d.ts index 8b7d5ba96..53f3ed774 100644 --- a/@types/lib/metadataTypes/Verification.d.ts +++ b/@types/lib/metadataTypes/Verification.d.ts @@ -1,16 +1,16 @@ export default Verification; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type RestError = import('../../types/mcdev.d.js').RestError; -export type VerificationItem = import('../../types/mcdev.d.js').VerificationItem; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type RestError = import("../../types/mcdev.d.js").RestError; +export type VerificationItem = import("../../types/mcdev.d.js").VerificationItem; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -50,7 +50,7 @@ declare class Verification extends MetadataType { * @param {string} id id or key of item * @returns {null} - */ - static handleRESTErrors(ex: any, id: string): null; + static handleRESTErrors(ex: RestError, id: string): null; /** * Retrieves Metadata of Data Extract Activity for caching * diff --git a/@types/lib/metadataTypes/Verification.d.ts.map b/@types/lib/metadataTypes/Verification.d.ts.map index f666fa919..c1f324589 100644 --- a/@types/lib/metadataTypes/Verification.d.ts.map +++ b/@types/lib/metadataTypes/Verification.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Verification.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Verification.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;wBAC5C,OAAO,wBAAwB,EAAE,SAAS;+BAI1C,OAAO,wBAAwB,EAAE,gBAAgB;AAf9D;;;;;;;;;;;;GAYG;AAEH;;GAEG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,QAAS,kBAAkB,CAAC,CAsExC;IACD;;;;;;OAMG;IACH,qCAHW,MAAM,GACJ,IAAI,CAehB;IAED;;;;OAIG;IACH,2BAFa,QAAS,kBAAkB,CAAC,CAIxC;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IAED;;;;;;;OAOG;IACH,sCALW,gBAAgB,eAChB,MAAM,8BACN,gBAAgB,GACd,QAAS,IAAI,CAAC,CAuB1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAQ1B;IAED;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,QAAS,gBAAgB,CAAC,CAWtC;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAiB5B;CAUJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA9OwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Verification.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Verification.js"],"names":[],"mappings":";uBAQa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;wBAC5C,OAAO,wBAAwB,EAAE,SAAS;+BAI1C,OAAO,wBAAwB,EAAE,gBAAgB;AAf9D;;;;;;;;;;;;GAYG;AAEH;;GAEG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,8BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAsExC;IACD;;;;;;OAMG;IACH,4BAJW,SAAS,MACT,MAAM,GACJ,IAAI,CAehB;IAED;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAK1B;IAED;;;;;;;OAOG;IACH,sCALW,gBAAgB,eAChB,MAAM,8BACN,gBAAgB,GACd,OAAO,CAAE,IAAI,CAAC,CAuB1B;IAED;;;;;OAKG;IACH,wBAHW,gBAAgB,gBAQ1B;IAED;;;;;OAKG;IACH,gCAHW,gBAAgB,GACd,OAAO,CAAE,gBAAgB,CAAC,CAWtC;IACD;;;;;OAKG;IACH,mCAHW,gBAAgB,GACd,gBAAgB,CAiB5B;CAUJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA9OwB,mBAAmB"} \ No newline at end of file diff --git a/@types/lib/metadataTypes/definitions/Event.definition.d.ts b/@types/lib/metadataTypes/definitions/Event.definition.d.ts index a50b3719d..f8d9967dc 100644 --- a/@types/lib/metadataTypes/definitions/Event.definition.d.ts +++ b/@types/lib/metadataTypes/definitions/Event.definition.d.ts @@ -189,6 +189,12 @@ declare namespace _default { retrieving: boolean; template: boolean; }; + 'configurationArguments.unconfigured': { + isCreateable: boolean; + isUpdateable: boolean; + retrieving: boolean; + template: boolean; + }; createdBy: { isCreateable: boolean; isUpdateable: boolean; @@ -855,7 +861,7 @@ declare namespace _default { retrieving: boolean; template: boolean; }; - r__dataExtension_CustomerKey: { + r__dataExtension_key: { isCreateable: boolean; isUpdateable: boolean; retrieving: boolean; diff --git a/@types/lib/util/auth.d.ts b/@types/lib/util/auth.d.ts index 6df674726..fdb865b75 100644 --- a/@types/lib/util/auth.d.ts +++ b/@types/lib/util/auth.d.ts @@ -1,20 +1,20 @@ export default Auth; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; declare namespace Auth { /** * For each business unit, set up base credentials to be used. @@ -23,14 +23,14 @@ declare namespace Auth { * @param {string} credential of the instance * @returns {Promise.} - */ - function saveCredential(authObject: import("../../types/mcdev.d.js").AuthObject, credential: string): Promise; + function saveCredential(authObject: AuthObject, credential: string): Promise; /** * Returns an SDK instance to be used for API calls * * @param {BuObject} buObject information about current context * @returns {SDK} auth object */ - function getSDK(buObject: import("../../types/mcdev.d.js").BuObject): SDK; + function getSDK(buObject: BuObject): SDK; /** * helper to clear all auth sessions * @@ -38,4 +38,5 @@ declare namespace Auth { */ function clearSessions(): void; } +import SDK from 'sfmc-sdk'; //# sourceMappingURL=auth.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/auth.d.ts.map b/@types/lib/util/auth.d.ts.map index ff10bbd26..c7508aa1e 100644 --- a/@types/lib/util/auth.d.ts.map +++ b/@types/lib/util/auth.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../lib/util/auth.js"],"names":[],"mappings":";yBAMa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,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;;IAYtD;;;;;;OAMG;IACH,oHA8BC;IACD;;;;;OAKG;IACH,0EAkBC;IACD;;;;OAIG;IACH,+BAGC"} \ No newline at end of file +{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../lib/util/auth.js"],"names":[],"mappings":";yBAMa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,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;;IAYtD;;;;;;OAMG;IACH,oCAJW,UAAU,cACV,MAAM,GACJ,OAAO,CAAE,IAAI,CAAC,CA+B1B;IACD;;;;;OAKG;IACH,0BAHW,QAAQ,GACN,GAAG,CAoBf;IACD;;;;OAIG;IACH,0BAFa,IAAI,CAKhB;;gBArGW,UAAU"} \ No newline at end of file diff --git a/@types/lib/util/businessUnit.d.ts b/@types/lib/util/businessUnit.d.ts index b87dd89c4..1cdb535ff 100644 --- a/@types/lib/util/businessUnit.d.ts +++ b/@types/lib/util/businessUnit.d.ts @@ -1,21 +1,21 @@ export default BusinessUnit; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; declare namespace BusinessUnit { - function refreshBUProperties(properties: import("../../types/mcdev.d.js").Mcdevrc, credentialsName: string): Promise; + function refreshBUProperties(properties: Mcdevrc, credentialsName: string): Promise; } //# sourceMappingURL=businessUnit.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/businessUnit.d.ts.map b/@types/lib/util/businessUnit.d.ts.map index 2a1a47b63..95e117c39 100644 --- a/@types/lib/util/businessUnit.d.ts.map +++ b/@types/lib/util/businessUnit.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"businessUnit.d.ts","sourceRoot":"","sources":["../../../lib/util/businessUnit.js"],"names":[],"mappings":";yBAOa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,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;;IAcjC,8HAqFpB"} \ No newline at end of file +{"version":3,"file":"businessUnit.d.ts","sourceRoot":"","sources":["../../../lib/util/businessUnit.js"],"names":[],"mappings":";yBAOa,OAAO,wBAAwB,EAAE,UAAU;uBAC3C,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,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;;IAcjC,yCAJV,OAAO,mBACP,MAAM,GACJ,OAAO,CAAE,OAAO,CAAC,CAuF7B"} \ No newline at end of file diff --git a/@types/lib/util/cache.d.ts b/@types/lib/util/cache.d.ts index a55e75ece..98e49e2b3 100644 --- a/@types/lib/util/cache.d.ts +++ b/@types/lib/util/cache.d.ts @@ -1,18 +1,10 @@ declare namespace _default { - function initCache(buObject: import("../../types/mcdev.d.js").BuObject): void; - function getCache(): { - [x: string]: { - [x: string]: any; - }; - }; + function initCache(buObject: BuObject): void; + function getCache(): MultiMetadataTypeMap; function clearCache(mid?: number): void; - function getByKey(type: string, key: string): any; - function setMetadata(type: string, metadataMap: { - [x: string]: any; - }): void; - function mergeMetadata(type: string, metadataMap: { - [x: string]: any; - }, overrideMID?: number): void; + function getByKey(type: string, key: string): MetadataTypeItem; + function setMetadata(type: string, metadataMap: MetadataTypeMap): void; + function mergeMetadata(type: string, metadataMap: MetadataTypeMap, overrideMID?: number): void; /** * standardized method for getting data from cache. * @@ -32,7 +24,7 @@ declare namespace _default { * @param {'ObjectID'|'ID'|'CustomerKey'} searchField ObjectID:string(uuid), ID:numeric, CustomerKey:string(name + folder ID) * @returns {string} unique folderPath/ListName combo of list */ - function getListPathName(searchValue: string, searchField: "ID" | "CustomerKey" | "ObjectID"): string; + function getListPathName(searchValue: string, searchField: "ObjectID" | "ID" | "CustomerKey"): string; /** * standardized method for getting data from cache - adapted for special case of lists * ! keeping this in util/cache.js rather than in metadataTypes/List.js to avoid potential circular dependencies @@ -41,24 +33,24 @@ declare namespace _default { * @param {'ObjectID'|'ID'|'CustomerKey'|'ListName'} returnField ObjectID:string(uuid), ID:numeric, CustomerKey:string(name + folder ID) * @returns {string} unique ObjectId of list */ - function getListObjectId(listPathName: string, returnField: "ID" | "CustomerKey" | "ObjectID" | "ListName"): string; + function getListObjectId(listPathName: string, returnField: "ObjectID" | "ID" | "CustomerKey" | "ListName"): string; } export default _default; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; //# sourceMappingURL=cache.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/cache.d.ts.map b/@types/lib/util/cache.d.ts.map index e606d6810..0740fa1e2 100644 --- a/@types/lib/util/cache.d.ts.map +++ b/@types/lib/util/cache.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../lib/util/cache.js"],"names":[],"mappings":";IAkCe,8EAWV;IAMS;;;;MAA2B;IASzB,wCAG4D;IAU9D,kDAAmD;IAQhD;;aAEZ;IASc;;mCAUd;IACD;;;;;;;;;OASG;IACH,8JAgCC;IACD;;;;;;;OAOG;IACH,sGA4BC;IACD;;;;;;;OAOG;IACH,oHAyBC;;;yBArNQ,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"} \ No newline at end of file +{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../lib/util/cache.js"],"names":[],"mappings":";IAkCe,6BAHA,QAAQ,GACN,IAAI,CAahB;IAMS,qBAFG,oBAAoB,CAEI;IASzB,0BAHD,MAAM,GACJ,IAAI,CAKuD;IAU9D,wBAJC,MAAM,OACN,MAAM,GACJ,gBAAgB,CAEgC;IAQhD,2BAJF,MAAM,eACN,eAAe,GACb,IAAI,CAIhB;IASc,6BALJ,MAAM,eACN,eAAe,gBACf,MAAM,GACJ,IAAI,CAYhB;IACD;;;;;;;;;OASG;IACH,sCAPW,MAAM,eACN,MAAM,GAAC,MAAM,GAAC,OAAO,eACrB,MAAM,eACN,MAAM,gBACN,MAAM,GACJ,MAAM,CAkClB;IACD;;;;;;;OAOG;IACH,sCAJW,MAAM,eACN,UAAU,GAAC,IAAI,GAAC,aAAa,GAC3B,MAAM,CA8BlB;IACD;;;;;;;OAOG;IACH,uCAJW,MAAM,eACN,UAAU,GAAC,IAAI,GAAC,aAAa,GAAC,UAAU,GACtC,MAAM,CA2BlB;;;yBArNQ,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"} \ No newline at end of file diff --git a/@types/lib/util/cli.d.ts b/@types/lib/util/cli.d.ts index de84d451a..a3d5d9088 100644 --- a/@types/lib/util/cli.d.ts +++ b/@types/lib/util/cli.d.ts @@ -1,22 +1,22 @@ export default Cli; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; -export type ExplainType = import('../../types/mcdev.d.js').ExplainType; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; +export type ExplainType = import("../../types/mcdev.d.js").ExplainType; declare namespace Cli { /** * used when initially setting up a project. @@ -31,7 +31,7 @@ declare namespace Cli { * @param {Mcdevrc} properties config file's json * @returns {Promise.} status */ - function addExtraCredential(properties: import("../../types/mcdev.d.js").Mcdevrc): Promise; + function addExtraCredential(properties: Mcdevrc): Promise; /** * * @param {string[]} dependentTypes types that depent on type @@ -44,7 +44,7 @@ declare namespace Cli { * @param {Mcdevrc} properties config file's json * @returns {void} */ - function logExistingCredentials(properties: import("../../types/mcdev.d.js").Mcdevrc): void; + function logExistingCredentials(properties: Mcdevrc): void; /** * Extends template file for properties.json * update credentials @@ -54,7 +54,7 @@ declare namespace Cli { * @param {boolean} [refreshBUs] if this was triggered by mcdev join, do not refresh BUs * @returns {Promise.} success of update */ - function updateCredential(properties: import("../../types/mcdev.d.js").Mcdevrc, credName: string, refreshBUs?: boolean): Promise; + function updateCredential(properties: Mcdevrc, credName: string, refreshBUs?: boolean): Promise; /** * Returns Object with parameters required for accessing API * @@ -64,7 +64,7 @@ declare namespace Cli { * @param {boolean} [allowAll] Offer ALL as option in BU selection * @returns {Promise.} credential to be used for Business Unit */ - function getCredentialObject(properties: import("../../types/mcdev.d.js").Mcdevrc, target: string, isCredentialOnly?: string | boolean, allowAll?: boolean): Promise; + function getCredentialObject(properties: Mcdevrc, target: string, isCredentialOnly?: boolean | string, allowAll?: boolean): Promise; /** * helps select the right credential in case of bad initial input * @@ -74,7 +74,7 @@ declare namespace Cli { * @param {boolean} [allowAll] Offer ALL as option in BU selection * @returns {Promise.<{businessUnit:string, credential:string}>} selected credential/BU combo */ - function _selectBU(properties: import("../../types/mcdev.d.js").Mcdevrc, credential?: string, isCredentialOnly?: boolean, allowAll?: boolean): Promise<{ + function _selectBU(properties: Mcdevrc, credential?: string, isCredentialOnly?: boolean, allowAll?: boolean): Promise<{ businessUnit: string; credential: string; }>; @@ -86,7 +86,7 @@ declare namespace Cli { * @param {boolean} [refreshBUs] if this was triggered by mcdev join, do not refresh BUs * @returns {Promise.} success of refresh or credential name */ - function _setCredential(properties: import("../../types/mcdev.d.js").Mcdevrc, credName?: string, refreshBUs?: boolean): Promise; + function _setCredential(properties: Mcdevrc, credName?: string, refreshBUs?: boolean): Promise; /** * helper for {@link Cli.addExtraCredential} * @@ -94,7 +94,7 @@ declare namespace Cli { * @param {string} [credName] name of credential that needs updating * @returns {Promise.} credential info */ - function _askCredentials(properties: import("../../types/mcdev.d.js").Mcdevrc, credName?: string): Promise; + function _askCredentials(properties: Mcdevrc, credName?: string): Promise; /** * allows updating the metadata types that shall be retrieved * @@ -102,7 +102,7 @@ declare namespace Cli { * @param {string[]} [setTypesArr] skip user prompt and overwrite with this list if given * @returns {Promise.} - */ - function selectTypes(properties: import("../../types/mcdev.d.js").Mcdevrc, setTypesArr?: string[]): Promise; + function selectTypes(properties: Mcdevrc, setTypesArr?: string[]): Promise; /** * helper for {@link Cli.selectTypes} that converts subtypes back to main type if all and only defaults were selected * this keeps the config automatically upgradable when we add new subtypes or change what is selected by default @@ -120,6 +120,6 @@ declare namespace Cli { * * @returns {ExplainType[]} list of supported types with their apiNames */ - function explainTypes(): import("../../types/mcdev.d.js").ExplainType[]; + function explainTypes(): ExplainType[]; } //# sourceMappingURL=cli.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/cli.d.ts.map b/@types/lib/util/cli.d.ts.map index f33c2f71a..6835a3a15 100644 --- a/@types/lib/util/cli.d.ts.map +++ b/@types/lib/util/cli.d.ts.map @@ -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,sDAQC;IACD;;;;;OAKG;IACH,6GAgBC;IAED;;;;OAIG;IACH,2EAgCC;IACD;;;;;OAKG;IACH,4FAOC;IACD;;;;;;;;OAQG;IACH,mJAQC;IACD;;;;;;;;OAQG;IACH,gNAqEC;IACD;;;;;;;;OAQG;IACH;;;OAsEC;IACD;;;;;;;OAOG;IACH,kJA4DC;IAED;;;;;;OAMG;IACH,gHAmFC;IACD;;;;;;OAMG;IACH,kHAuGC;IACD;;;;;;;;OAQG;IACH;;2BAsBC;IAED;;;;OAIG;IACH,wEAwGC"} \ No newline at end of file +{"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,4BAFa,OAAO,CAAE,MAAM,GAAG,OAAO,CAAC,CAUtC;IACD;;;;;OAKG;IACH,wCAHW,OAAO,GACL,OAAO,CAAE,OAAO,GAAG,MAAM,CAAC,CAkBtC;IAED;;;;OAIG;IACH,+CAHW,MAAM,EAAE,GACN,OAAO,CAAE,OAAO,CAAC,CAkC7B;IACD;;;;;OAKG;IACH,4CAHW,OAAO,GACL,IAAI,CAShB;IACD;;;;;;;;OAQG;IACH,sCALW,OAAO,YACP,MAAM,eACN,OAAO,GACL,OAAO,CAAE,MAAM,GAAG,OAAO,CAAC,CAUtC;IACD;;;;;;;;OAQG;IACH,yCANW,OAAO,UACP,MAAM,qBACN,OAAO,GAAG,MAAM,aAChB,OAAO,GACL,OAAO,CAAE,QAAQ,CAAC,CAuE9B;IACD;;;;;;;;OAQG;IACH,+BANW,OAAO,eACP,MAAM,qBACN,OAAO,aACP,OAAO,GACL,OAAO,CAAE;QAAC,YAAY,EAAC,MAAM,CAAC;QAAC,UAAU,EAAC,MAAM,CAAA;KAAC,CAAC,CAwE9D;IACD;;;;;;;OAOG;IACH,oCALW,OAAO,aACP,MAAM,eACN,OAAO,GACL,OAAO,CAAE,OAAO,GAAG,MAAM,CAAC,CA8DtC;IAED;;;;;;OAMG;IACH,qCAJW,OAAO,aACP,MAAM,GACJ,OAAO,CAAE,MAAM,CAAC,CAqF5B;IACD;;;;;;OAMG;IACH,iCAJW,OAAO,gBACP,MAAM,EAAE,GACN,OAAO,CAAE,IAAI,CAAC,CAwG1B;IACD;;;;;;;;OAQG;IACH,uCAJG;QAA4B,aAAa,EAAjC,MAAM,EAAE;KAChB,QAAQ,MAAM,GACJ,IAAI,CAwBhB;IAED;;;;OAIG;IACH,yBAFa,WAAW,EAAE,CA0GzB"} \ No newline at end of file diff --git a/@types/lib/util/config.d.ts b/@types/lib/util/config.d.ts index 0780f909a..628ca2eb8 100644 --- a/@types/lib/util/config.d.ts +++ b/@types/lib/util/config.d.ts @@ -1,21 +1,21 @@ export default config; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; declare namespace config { let properties: any; /** @@ -25,7 +25,7 @@ declare namespace config { * @param {boolean} [isInit] don't tell the user to run init * @returns {Promise.} central properties object */ - function getProperties(silent?: boolean, isInit?: boolean): Promise; + function getProperties(silent?: boolean, isInit?: boolean): Promise; /** * check if the config file is correctly formatted and has values * @@ -33,13 +33,13 @@ declare namespace config { * @param {boolean} [silent] set to true for internal use w/o cli output * @returns {Promise.} file structure ok OR list of fields to be fixed */ - function checkProperties(properties: import("../../types/mcdev.d.js").Mcdevrc, silent?: boolean): Promise; + function checkProperties(properties: Mcdevrc, silent?: boolean): Promise; /** * defines how the properties.json should look like * used for creating a template and for checking if variables are set * * @returns {Promise.} default properties */ - function getDefaultProperties(): Promise; + function getDefaultProperties(): Promise; } //# sourceMappingURL=config.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/config.d.ts.map b/@types/lib/util/config.d.ts.map index a0fdc2465..e33afa154 100644 --- a/@types/lib/util/config.d.ts.map +++ b/@types/lib/util/config.d.ts.map @@ -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,8GAyDC;IACD;;;;;;OAMG;IACH,8HAmMC;IACD;;;;;OAKG;IACH,mFAaC"} \ No newline at end of file +{"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,CAqMxC;IACD;;;;;OAKG;IACH,iCAFa,OAAO,CAAE,OAAO,CAAC,CAe7B"} \ No newline at end of file diff --git a/@types/lib/util/devops.d.ts b/@types/lib/util/devops.d.ts index de4d798a8..e6b63bd17 100644 --- a/@types/lib/util/devops.d.ts +++ b/@types/lib/util/devops.d.ts @@ -1,21 +1,21 @@ export default DevOps; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; declare namespace DevOps { /** * Extracts the delta between a commit and the current state for deployment. @@ -28,7 +28,7 @@ declare namespace DevOps { * @param {number} [commitHistory] cli option to override default commit history value in config * @returns {Promise.} - */ - function getDeltaList(properties: import("../../types/mcdev.d.js").Mcdevrc, range?: string, saveToDeployDir?: boolean, filterPathsCSV?: string, commitHistory?: number): Promise; + function getDeltaList(properties: Mcdevrc, range?: string, saveToDeployDir?: boolean, filterPathsCSV?: string, commitHistory?: number): Promise; /** * wrapper around DevOps.getDeltaList, Builder.buildTemplate and M * @@ -38,7 +38,7 @@ declare namespace DevOps { * @param {number} [commitHistory] cli option to override default commit history value in config * @returns {Promise.} - */ - function buildDeltaDefinitions(properties: import("../../types/mcdev.d.js").Mcdevrc, range: string, diffArr?: import("../../types/mcdev.d.js").DeltaPkgItem[], commitHistory?: number): Promise; + function buildDeltaDefinitions(properties: Mcdevrc, range: string, diffArr?: DeltaPkgItem[], commitHistory?: number): Promise; /** * create markdown file for deployment listing * @@ -46,7 +46,7 @@ declare namespace DevOps { * @param {object} jsonReport - * @returns {void} */ - function document(directory: string, jsonReport: any): void; + function document(directory: string, jsonReport: object): void; /** * should return only the json for all but asset, query and script that are saved as multiple files * additionally, the documentation for dataExtension and automation should be returned @@ -57,6 +57,6 @@ declare namespace DevOps { * @param {string[]} keyArr customerkey of the metadata * @returns {Promise.} list of all files that need to be committed in a flat array ['path/file1.ext', 'path/file2.ext'] */ - function getFilesToCommit(properties: import("../../types/mcdev.d.js").Mcdevrc, buObject: import("../../types/mcdev.d.js").BuObject, metadataType: string, keyArr: string[]): Promise; + function getFilesToCommit(properties: Mcdevrc, buObject: BuObject, metadataType: string, keyArr: string[]): Promise; } //# sourceMappingURL=devops.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/devops.d.ts.map b/@types/lib/util/devops.d.ts.map index 2a04c0836..6d6c423d7 100644 --- a/@types/lib/util/devops.d.ts.map +++ b/@types/lib/util/devops.d.ts.map @@ -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,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;;IAOtD;;;;;;;;;;OAUG;IACH,kOAqTC;IACD;;;;;;;;OAQG;IACH,iPA+KC;IAED;;;;;;OAMG;IACH,4DA2BC;IACD;;;;;;;;;OASG;IACH,gMAIC"} \ No newline at end of file +{"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,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;;IAOtD;;;;;;;;;;OAUG;IACH,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"} \ No newline at end of file diff --git a/@types/lib/util/file.d.ts b/@types/lib/util/file.d.ts index 452f27ee0..7ab089311 100644 --- a/@types/lib/util/file.d.ts +++ b/@types/lib/util/file.d.ts @@ -1,20 +1,181 @@ export default FileFs; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; -declare const FileFs: any; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; +declare const FileFs: typeof fs & { + prettierConfig: any; + prettierConfigFileType: any; + /** + * copies a file from one path to another + * + * @param {string} from - full filepath including name of existing file + * @param {string} to - full filepath including name where file should go + * @returns {Promise.<{status:'ok'|'skipped'|'failed', statusMessage:string, file:string}>} - results object + */ + copyFileSimple(from: string, to: string): Promise<{ + status: "ok" | "skipped" | "failed"; + statusMessage: string; + file: string; + }>; + /** + * makes sure Windows accepts path names + * + * @param {string} path - filename or path + * @returns {string} - corrected string + */ + filterIllegalPathChars(path: string): string; + /** + * makes sure Windows accepts file names + * + * @param {string} filename - filename or path + * @returns {string} - corrected string + */ + filterIllegalFilenames(filename: string): string; + /** + * makes sure Windows accepts file names + * + * @param {string} filename - filename or path + * @returns {string} - corrected string + */ + reverseFilterIllegalFilenames(filename: string): string; + /** + * Takes various types of path strings and formats into a platform specific path + * + * @param {string|string[]} denormalizedPath directory the file will be written to + * @returns {string} Path strings + */ + normalizePath: (denormalizedPath: string | string[]) => string; + /** + * Saves json content to a file in the local file system. Will create the parent directory if it does not exist + * + * @param {string|string[]} directory directory the file will be written to + * @param {string} filename name of the file without '.json' ending + * @param {object} content filecontent + * @returns {Promise} Promise + */ + writeJSONToFile: (directory: string | string[], filename: string, content: object) => Promise; + /** + * Saves beautified files in the local file system. Will create the parent directory if it does not exist + * ! Important: run 'await File.initPrettier()' in your MetadataType.retrieve() once before hitting this + * + * @param {string|string[]} directory directory the file will be written to + * @param {string} filename name of the file without suffix + * @param {string} filetype filetype ie. JSON or SSJS + * @param {string} content filecontent + * @param {TemplateMap} [templateVariables] templating variables to be replaced in the metadata + * @returns {Promise.} Promise + */ + writePrettyToFile: (directory: string | string[], filename: string, filetype: string, content: string, templateVariables?: TemplateMap) => Promise; + /** + * helper that applies beautyAmp onto given stringified content; strongly typed for strings only + * + * @param {string} content code + * @param {boolean} [formatHTML] applies formatting to html and ampscript if true + * @returns {Promise.} formatted code + */ + beautify_beautyAmp_beautify: (content: string, formatHTML?: boolean) => Promise; + /** + * helper for {@link File.writePrettyToFile}, applying beautyAmp onto given stringified content + * + * @param {string} content filecontent + * @param {boolean} formatHTML should we format HTML or not via prettier included in beautyAmp + * @returns {Promise.} original string on error; formatted string on success + */ + beautify_beautyAmp: (content: string, formatHTML?: boolean) => Promise; + /** + * helper for {@link File.writePrettyToFile}, applying prettier onto given stringified content + * ! Important: run 'await File.initPrettier()' in your MetadataType.retrieve() once before hitting this + * + * @param {string|string[]} directory directory the file will be written to + * @param {string} filename name of the file without suffix + * @param {string} filetype filetype ie. JSON or SSJS + * @param {string} content filecontent + * @returns {Promise.} original string on error; formatted string on success + */ + _beautify_prettier: (directory: string | string[], filename: string, filetype: string, content: string) => Promise; + /** + * Saves text content to a file in the local file system. Will create the parent directory if it does not exist + * + * @param {string|string[]} directory directory the file will be written to + * @param {string} filename name of the file without '.json' ending + * @param {string} filetype filetype suffix + * @param {string} content filecontent + * @param {object} [encoding] added for certain file types (like images) + * @returns {Promise.} Promise + */ + writeToFile: (directory: string | string[], filename: string, filetype: string, content: string, encoding?: object) => Promise; + /** + * Saves json content to a file in the local file system. Will create the parent directory if it does not exist + * + * @param {string | string[]} directory directory where the file is stored + * @param {string} filename name of the file without '.json' ending + * @param {boolean} cleanPath filters illegal chars if true + * @returns {Promise.} Promise or JSON object depending on if async or not; void on error + */ + readJSONFile: (directory: string | string[], filename: string, cleanPath: boolean) => Promise; + /** + * reads file from local file system. + * + * @param {string | string[]} directory directory where the file is stored + * @param {string} filename name of the file without '.json' ending + * @param {string} filetype filetype suffix + * @param {string} [encoding] read file with encoding (defaults to utf-8) + * @returns {Promise.} file contents; void on error + */ + readFilteredFilename: (directory: string | string[], filename: string, filetype: string, encoding?: string) => Promise; + /** + * reads directories to a specific depth returning an array + * of file paths to be iterated over + * + * @example ['deploy/mcdev/bu1'] + * @param {string} directory directory to checkin + * @param {number} depth how many levels to check (1 base) + * @param {boolean} [includeStem] include the parent directory in the response + * @param {number} [_stemLength] set recursively for subfolders. do not set manually! + * @returns {Promise.} array of fully defined file paths + */ + readDirectories: (directory: string, depth: number, includeStem?: boolean, _stemLength?: number) => Promise; + /** + * reads directories to a specific depth returning an array + * of file paths to be iterated over using sync api (required in constructors) + * TODO - merge with readDirectories. so far the logic is really different + * + * @example ['deploy/mcdev/bu1'] + * @param {string} directory directory to checkin + * @param {number} [depth] how many levels to check (1 base) + * @param {boolean} [includeStem] include the parent directory in the response + * @param {number} [_stemLength] set recursively for subfolders. do not set manually! + * @returns {string[] | void} array of fully defined file paths; void on error + */ + readDirectoriesSync: (directory: string, depth?: number, includeStem?: boolean, _stemLength?: number) => string[] | void; + /** + * helper that splits the config back into auth & config parts to save them separately + * + * @param {Mcdevrc} properties central properties object + * @returns {Promise.} - + */ + saveConfigFile(properties: Mcdevrc): Promise; + /** + * Initalises Prettier formatting lib async. + * + * @param {string} [filetype] filetype ie. JSON or SSJS + * @returns {Promise.} success of config load + */ + initPrettier(filetype?: string): Promise; +}; +import fs from 'fs-extra'; //# sourceMappingURL=file.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/file.d.ts.map b/@types/lib/util/file.d.ts.map index ba210cfc4..12417b07b 100644 --- a/@types/lib/util/file.d.ts.map +++ b/@types/lib/util/file.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../lib/util/file.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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,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"} \ No newline at end of file diff --git a/@types/lib/util/init.config.d.ts b/@types/lib/util/init.config.d.ts index 91d35b78f..5f54ad0ca 100644 --- a/@types/lib/util/init.config.d.ts +++ b/@types/lib/util/init.config.d.ts @@ -1,21 +1,21 @@ export default Init; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; declare namespace Init { /** * helper method for this.upgradeProject that upgrades project config if needed @@ -23,7 +23,7 @@ declare namespace Init { * @param {Mcdevrc} properties config file's json * @returns {Promise.} returns true if worked without errors */ - function fixMcdevConfig(properties: import("../../types/mcdev.d.js").Mcdevrc): Promise; + function fixMcdevConfig(properties: Mcdevrc): Promise; /** * handles creation/update of all config file from the boilerplate * @@ -39,7 +39,7 @@ declare namespace Init { * @param {string} fieldName dot-concatenated object-path that needs adding * @returns {void} */ - function _updateLeaf(propertiersCur: any, defaultPropsCur: any, fieldName: string): void; + function _updateLeaf(propertiersCur: object, defaultPropsCur: object, fieldName: string): void; /** * returns list of files that need to be updated * diff --git a/@types/lib/util/init.config.d.ts.map b/@types/lib/util/init.config.d.ts.map index 9d8e6ce26..9e0d295dd 100644 --- a/@types/lib/util/init.config.d.ts.map +++ b/@types/lib/util/init.config.d.ts.map @@ -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,gGA0LC;IAED;;;;;OAKG;IACH,8EAiEC;IACD;;;;;;;OAOG;IACH,yFAgBC;IACD;;;;;OAKG;IACH;;;OA6BC;IACD;;;;;;;OAOG;IACH;;;0DAoFC;IACD;;;;;OAKG;IACH;;;yBAYC;IACD;;;;OAIG;IACH,6CAuBC"} \ No newline at end of file +{"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,oCAHW,OAAO,GACL,OAAO,CAAE,OAAO,CAAC,CA4L7B;IAED;;;;;OAKG;IACH,oDAHW,MAAM,GACJ,OAAO,CAAE,OAAO,CAAC,CAmE7B;IACD;;;;;;;OAOG;IACH,qCALW,MAAM,mBACN,MAAM,aACN,MAAM,GACJ,IAAI,CAkBhB;IACD;;;;;OAKG;IACH,8CAHW,MAAM,GACJ,OAAO,CAAE;QAAC,OAAO,EAAC,MAAM,EAAE,CAAC;QAAA,OAAO,EAAC,MAAM,EAAE,CAAA;KAAC,CAAC,CA+BzD;IACD;;;;;;;OAOG;IACH,2CALW,MAAM,EAAE,kBACR;QAAC,OAAO,EAAC,MAAM,EAAE,CAAC;QAAA,OAAO,EAAC,MAAM,EAAE,CAAA;KAAC,2BACnC,MAAM,GACJ,OAAO,CAAE,OAAO,CAAC,CAsF7B;IACD;;;;;OAKG;IACH,+CAHW;QAAC,OAAO,EAAC,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"} \ No newline at end of file diff --git a/@types/lib/util/init.d.ts b/@types/lib/util/init.d.ts index a70bc34ca..4bdb7cb27 100644 --- a/@types/lib/util/init.d.ts +++ b/@types/lib/util/init.d.ts @@ -1,21 +1,21 @@ export default Init; -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; declare namespace Init { /** * Creates template file for properties.json @@ -25,7 +25,7 @@ declare namespace Init { * @param {boolean} [refreshBUs] if this was triggered by mcdev join, do not refresh BUs * @returns {Promise.} - */ - function initProject(properties: import("../../types/mcdev.d.js").Mcdevrc, credentialName?: string, refreshBUs?: boolean): Promise; + function initProject(properties: Mcdevrc, credentialName?: string, refreshBUs?: boolean): Promise; /** * Creates template file for properties.json * @@ -52,7 +52,7 @@ declare namespace Init { * @param {string} [repoName] if git URL was provided earlier, the repo name was extracted to use it for npm init * @returns {Promise.} success flag */ - function upgradeProject(properties: import("../../types/mcdev.d.js").Mcdevrc, initial?: boolean, repoName?: string): Promise; + function upgradeProject(properties: Mcdevrc, initial?: boolean, repoName?: string): Promise; /** * check if git repo is being saved on a cloud service and warn the user * @@ -67,6 +67,6 @@ declare namespace Init { * @param {Mcdevrc} properties javascript object in .mcdevrc.json * @returns {string[]} list of credential names */ - function _getMissingCredentials(properties: import("../../types/mcdev.d.js").Mcdevrc): string[]; + function _getMissingCredentials(properties: Mcdevrc): string[]; } //# sourceMappingURL=init.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/init.d.ts.map b/@types/lib/util/init.d.ts.map index c965f02c3..6ec701e57 100644 --- a/@types/lib/util/init.d.ts.map +++ b/@types/lib/util/init.d.ts.map @@ -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,yIAyKC;IAED;;;;OAIG;IACH,sCAyEC;IACD;;OAEG;IACH,uCAwDC;IACD;;;;;;OAMG;IACH,uEAgCC;IACD;;;;;;;OAOG;IACH,sIAqCC;IACD;;;;;OAKG;IACH,gDAgDC;IAED;;;;;;OAMG;IACH,gGAuBC"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/@types/lib/util/init.git.d.ts b/@types/lib/util/init.git.d.ts index 12db60e37..7c6728907 100644 --- a/@types/lib/util/init.git.d.ts +++ b/@types/lib/util/init.git.d.ts @@ -33,8 +33,8 @@ declare namespace Init { * @returns {Promise.<{'user.name': string, 'user.email': string}>} user.name and user.email */ function _getGitConfigUser(): Promise<{ - 'user.name': string; - 'user.email': string; + "user.name": string; + "user.email": string; }>; } //# sourceMappingURL=init.git.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/init.git.d.ts.map b/@types/lib/util/init.git.d.ts.map index e0cd8dc04..040c3c5d7 100644 --- a/@types/lib/util/init.git.d.ts.map +++ b/@types/lib/util/init.git.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"init.git.d.ts","sourceRoot":"","sources":["../../../lib/util/init.git.js"],"names":[],"mappings":";;IAcI;;;;OAIG;IACH;;;OAyDC;IACD;;;;OAIG;IACH,kCAwCC;IACD;;;;OAIG;IACH,0CAgDC;IACD;;;;OAIG;IACH,+CAkEC;IACD;;;;OAIG;IACH;;;OAKC"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/@types/lib/util/init.npm.d.ts b/@types/lib/util/init.npm.d.ts index 02d10378f..b41200708 100644 --- a/@types/lib/util/init.npm.d.ts +++ b/@types/lib/util/init.npm.d.ts @@ -15,8 +15,8 @@ declare namespace Init { * @param {object} [currentContent] what was read from existing package.json file * @returns {Promise.<{script: object, author: string, license: string}>} extended currentContent */ - function _getDefaultPackageJson(currentContent?: any): Promise<{ - script: any; + function _getDefaultPackageJson(currentContent?: object): Promise<{ + script: object; author: string; license: string; }>; diff --git a/@types/lib/util/init.npm.d.ts.map b/@types/lib/util/init.npm.d.ts.map index 884df83c9..20ec3f51b 100644 --- a/@types/lib/util/init.npm.d.ts.map +++ b/@types/lib/util/init.npm.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"init.npm.d.ts","sourceRoot":"","sources":["../../../lib/util/init.npm.js"],"names":[],"mappings":";;IAcI;;;;;;;OAOG;IACH,kEA0GC;IACD;;;;;OAKG;IACH;;;;OA4BC"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/@types/lib/util/replaceContentBlockReference.d.ts b/@types/lib/util/replaceContentBlockReference.d.ts index c1bbb3657..ba029c8e4 100644 --- a/@types/lib/util/replaceContentBlockReference.d.ts +++ b/@types/lib/util/replaceContentBlockReference.d.ts @@ -36,7 +36,7 @@ export default class ReplaceContentBlockReference { name: AssetItemSimpleMap; }; /** @type {Object.} */ - static "__#1@#regexBy": { + static "__#2@#regexBy": { [x: string]: { id: RegExp[]; key: RegExp[]; @@ -61,7 +61,7 @@ export default class ReplaceContentBlockReference { * @param {boolean} [isSsjs] replaces backslashes with double backslashes in name if true * @returns {AssetItemSimple} asset object */ - static "__#1@#getAssetBy"(from: ContentBlockConversionTypes, identifier: string | number, parentName: string, isSsjs?: boolean): AssetItemSimple; + static "__#2@#getAssetBy"(from: ContentBlockConversionTypes, identifier: string | number, parentName: string, isSsjs?: boolean): AssetItemSimple; /** * * @param {AssetItemSimple} asset asset object @@ -69,7 +69,7 @@ export default class ReplaceContentBlockReference { * @param {boolean} [isSsjs] replaces backslashes with double backslashes in name if true * @returns {string} replaced string */ - static "__#1@#replaceWith"(asset: AssetItemSimple, to: ContentBlockConversionTypes, isSsjs?: boolean): string; + static "__#2@#replaceWith"(asset: AssetItemSimple, to: ContentBlockConversionTypes, isSsjs?: boolean): string; /** * * @param {Mcdevrc} properties properties for auth @@ -78,29 +78,29 @@ saved */ static createCacheMap(properties: Mcdevrc, buObject: BuObject): Promise; } -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type McdevLogger = import('../../types/mcdev.d.js').McdevLogger; -export type Logger = import('../../types/mcdev.d.js').Logger; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SkipInteraction = import('../../types/mcdev.d.js').SkipInteraction; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; -export type SDKError = import('../../types/mcdev.d.js').SDKError; -export type AssetItemSimple = import('../../types/mcdev.d.js').AssetItemSimple; -export type AssetItemSimpleMap = import('../../types/mcdev.d.js').AssetItemSimpleMap; -export type AssetItemIdSimpleMap = import('../../types/mcdev.d.js').AssetItemIdSimpleMap; -export type ContentBlockConversionTypes = import('../../types/mcdev.d.js').ContentBlockConversionTypes; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type McdevLogger = import("../../types/mcdev.d.js").McdevLogger; +export type Logger = import("../../types/mcdev.d.js").Logger; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SkipInteraction = import("../../types/mcdev.d.js").SkipInteraction; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; +export type SDKError = import("../../types/mcdev.d.js").SDKError; +export type AssetItemSimple = import("../../types/mcdev.d.js").AssetItemSimple; +export type AssetItemSimpleMap = import("../../types/mcdev.d.js").AssetItemSimpleMap; +export type AssetItemIdSimpleMap = import("../../types/mcdev.d.js").AssetItemIdSimpleMap; +export type ContentBlockConversionTypes = import("../../types/mcdev.d.js").ContentBlockConversionTypes; //# sourceMappingURL=replaceContentBlockReference.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/replaceContentBlockReference.d.ts.map b/@types/lib/util/replaceContentBlockReference.d.ts.map index efe75848e..1fc937d43 100644 --- a/@types/lib/util/replaceContentBlockReference.d.ts.map +++ b/@types/lib/util/replaceContentBlockReference.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"replaceContentBlockReference.d.ts","sourceRoot":"","sources":["../../../lib/util/replaceContentBlockReference.js"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;GAEG;AACH;IACI,4FAA4F;IA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AAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2BAC5C,OAAO,wBAAwB,EAAE,YAAY;uBAC7C,OAAO,wBAAwB,EAAE,QAAQ;8BACzC,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;mCACnD,OAAO,wBAAwB,EAAE,oBAAoB;0CACrD,OAAO,wBAAwB,EAAE,2BAA2B"} \ No newline at end of file +{"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,wBADW;YAAQ,MAAM,GAAE;YAAC,EAAE,EAAE,MAAM,EAAE,CAAC;YAAC,GAAG,EAAE,MAAM,EAAE,CAAC;YAAC,IAAI,EAAE,MAAM,EAAE,CAAA;SAAC;KAAC,CAkCvE;IAEF;;;;;;;;OAQG;IACH,6BANW,MAAM,cACN,MAAM,aACN,2BAA2B,EAAE,OAC7B,2BAA2B,GACzB,MAAM,CAmDlB;IACD;;;;;;;OAOG;IACH,gCANW,2BAA2B,cAC3B,MAAM,GAAC,MAAM,cACb,MAAM,WACN,OAAO,GACL,eAAe,CAyB3B;IAED;;;;;;OAMG;IACH,kCALW,eAAe,MACf,2BAA2B,WAC3B,OAAO,GACL,MAAM,CAclB;IAED;;;;;OAKG;IACH,kCAJW,OAAO,YAEP,QAAQ,iBA8ElB;CACJ;yBA7QY,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;0BAC7C,OAAO,wBAAwB,EAAE,WAAW;qBAC5C,OAAO,wBAAwB,EAAE,MAAM;sBACvC,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;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;8BACzC,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;mCACnD,OAAO,wBAAwB,EAAE,oBAAoB;0CACrD,OAAO,wBAAwB,EAAE,2BAA2B"} \ No newline at end of file diff --git a/@types/lib/util/util.d.ts b/@types/lib/util/util.d.ts index 7547afe41..0df2c995f 100644 --- a/@types/lib/util/util.d.ts +++ b/@types/lib/util/util.d.ts @@ -45,14 +45,14 @@ export namespace Util { * @param {Mcdevrc} properties local mcdev config * @returns {boolean} found market or not */ - function checkMarket(market: string, properties: import("../../types/mcdev.d.js").Mcdevrc): boolean; + function checkMarket(market: string, properties: Mcdevrc): boolean; /** * ensure provided MarketList exists and it's content including markets and BUs checks out * * @param {string} mlName name of marketList * @param {Mcdevrc} properties General configuration to be used in retrieve */ - function verifyMarketList(mlName: string, properties: import("../../types/mcdev.d.js").Mcdevrc): void; + function verifyMarketList(mlName: string, properties: Mcdevrc): void; /** * used to ensure the program tells surrounding software that an unrecoverable error occured * @@ -91,7 +91,7 @@ export namespace Util { * @param {boolean} [handleOutside] if the API reponse is irregular this allows you to handle it outside of this generic method * @returns {boolean} bu found or not */ - function _isValidBU(properties: import("../../types/mcdev.d.js").Mcdevrc, businessUnit: string, handleOutside?: boolean): boolean; + function _isValidBU(properties: Mcdevrc, businessUnit: string, handleOutside?: boolean): boolean; /** * helper that deals with extracting type and subtype * @@ -108,15 +108,13 @@ export namespace Util { * @returns {string[]} type choices */ function getRetrieveTypeChoices(): string[]; - function _createNewLoggerTransport(noLogFile?: boolean): any; + function _createNewLoggerTransport(noLogFile?: boolean): object; let loggerTransports: any; let logger: Logger; function startLogger(restart?: boolean, noLogFile?: boolean): void; function metadataLogger(level: string, type: string, method: string, payload: any, source?: string): void; - function replaceByObject(str: any, obj: { - [x: string]: string; - }): any; - function inverseGet(objs: any, val: string | number): string; + function replaceByObject(str: string | object, obj: TemplateMap): string | object; + function inverseGet(objs: object, val: string | number): string; /** *helper for Mcdev.fixKeys. Retrieve dependent metadata * @@ -140,7 +138,7 @@ export namespace Util { * @param {object} obj some parent object * @returns {any} value of obj.path */ - function resolveObjPath(path: string, obj: any): any; + function resolveObjPath(path: string, obj: object): any; /** * helper to run other commands as if run manually by user * @@ -158,7 +156,7 @@ export namespace Util { * @param {string} searchValue the value which is being looked for * @returns {MetadataTypeItem} metadata to be used in building template */ - function templateSearchResult(results: any[], keyToSearch: string, searchValue: string): any; + function templateSearchResult(results: MetadataTypeItem[], keyToSearch: string, searchValue: string): MetadataTypeItem; /** * configures what is displayed in the console * @@ -227,7 +225,7 @@ export namespace Util { * @param {boolean} [isId] optional flag to indicate if key is an id * @returns {string} string to be appended to log message */ - function getKeysString(keyArr: string | string[], isId?: boolean): string; + function getKeysString(keyArr: string[] | string, isId?: boolean): string; /** * pause execution of code; useful when multiple server calls are dependent on each other and might not be executed right away * @@ -269,7 +267,7 @@ export namespace Util { * @param {object} [filters] only used in recursive calls * @returns {boolean} true if no LIKE filter is defined or if all filters match */ - function fieldsLike(metadata: any, filters?: any): boolean; + function fieldsLike(metadata: MetadataTypeItem, filters?: object): boolean; /** * helper used by SOAP methods to ensure the type always uses an upper-cased first letter * @@ -285,9 +283,7 @@ export namespace Util { * @param {boolean} [returnEmpty] returns array with null element if false/not set; Retriever needs this to be false; Deployer needs it to be true * @returns {TypeKeyCombo} - */ - function createTypeKeyCombo(typeArr: string[], keyArr: string[], returnEmpty?: boolean): { - [x: string]: string[]; - }; + function createTypeKeyCombo(typeArr: string[], keyArr: string[], returnEmpty?: boolean): TypeKeyCombo; /** * async version of Array.find() * returns the first element in the provided array that satisfies the provided testin function @@ -296,27 +292,27 @@ export namespace Util { * @param {Function} asyncCallback callback * @returns {Promise.} first element that passed the test */ - function findAsync(arr: any[], asyncCallback: Function): Promise; + function findAsync(arr: any[], asyncCallback: Function): Promise; } -export type AuthObject = import('../../types/mcdev.d.js').AuthObject; -export type BuObject = import('../../types/mcdev.d.js').BuObject; -export type Cache = import('../../types/mcdev.d.js').Cache; -export type CodeExtract = import('../../types/mcdev.d.js').CodeExtract; -export type CodeExtractItem = import('../../types/mcdev.d.js').CodeExtractItem; -export type DeltaPkgItem = import('../../types/mcdev.d.js').DeltaPkgItem; -export type McdevLogger = import('../../types/mcdev.d.js').McdevLogger; -export type Logger = import('../../types/mcdev.d.js').Logger; -export type Mcdevrc = import('../../types/mcdev.d.js').Mcdevrc; -export type MetadataTypeItem = import('../../types/mcdev.d.js').MetadataTypeItem; -export type MetadataTypeItemDiff = import('../../types/mcdev.d.js').MetadataTypeItemDiff; -export type MetadataTypeItemObj = import('../../types/mcdev.d.js').MetadataTypeItemObj; -export type MetadataTypeMap = import('../../types/mcdev.d.js').MetadataTypeMap; -export type MetadataTypeMapObj = import('../../types/mcdev.d.js').MetadataTypeMapObj; -export type MultiMetadataTypeList = import('../../types/mcdev.d.js').MultiMetadataTypeList; -export type MultiMetadataTypeMap = import('../../types/mcdev.d.js').MultiMetadataTypeMap; -export type SkipInteraction = import('../../types/mcdev.d.js').SkipInteraction; -export type SoapRequestParams = import('../../types/mcdev.d.js').SoapRequestParams; -export type TemplateMap = import('../../types/mcdev.d.js').TemplateMap; -export type TypeKeyCombo = import('../../types/mcdev.d.js').TypeKeyCombo; -export type SDKError = import('../../types/mcdev.d.js').SDKError; +export type AuthObject = import("../../types/mcdev.d.js").AuthObject; +export type BuObject = import("../../types/mcdev.d.js").BuObject; +export type Cache = import("../../types/mcdev.d.js").Cache; +export type CodeExtract = import("../../types/mcdev.d.js").CodeExtract; +export type CodeExtractItem = import("../../types/mcdev.d.js").CodeExtractItem; +export type DeltaPkgItem = import("../../types/mcdev.d.js").DeltaPkgItem; +export type McdevLogger = import("../../types/mcdev.d.js").McdevLogger; +export type Logger = import("../../types/mcdev.d.js").Logger; +export type Mcdevrc = import("../../types/mcdev.d.js").Mcdevrc; +export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem; +export type MetadataTypeItemDiff = import("../../types/mcdev.d.js").MetadataTypeItemDiff; +export type MetadataTypeItemObj = import("../../types/mcdev.d.js").MetadataTypeItemObj; +export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap; +export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj; +export type MultiMetadataTypeList = import("../../types/mcdev.d.js").MultiMetadataTypeList; +export type MultiMetadataTypeMap = import("../../types/mcdev.d.js").MultiMetadataTypeMap; +export type SkipInteraction = import("../../types/mcdev.d.js").SkipInteraction; +export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestParams; +export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; +export type TypeKeyCombo = import("../../types/mcdev.d.js").TypeKeyCombo; +export type SDKError = import("../../types/mcdev.d.js").SDKError; //# sourceMappingURL=util.d.ts.map \ No newline at end of file diff --git a/@types/lib/util/util.d.ts.map b/@types/lib/util/util.d.ts.map index 6278ed58c..a4ae50ad9 100644 --- a/@types/lib/util/util.d.ts.map +++ b/@types/lib/util/util.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../lib/util/util.js"],"names":[],"mappings":";;;;;;;;yBAkDe,eAAe;;;;IAK1B;;;;;;OAMG;IACH;;;;MAUC;IACD;;;;;;OAMG;IACH,oEAEC;IACD;;;;;;OAMG;IACH,wEAEC;IACD;;;;;;OAMG;IACH,oGAYC;IAED;;;;;OAKG;IACH,sGAqCC;IACD;;;;OAIG;IACH,kCAGC;IACD;;;;;;OAMG;IACH,yCAEC;IACD;;;;;;OAMG;IACH,0CAEC;IAED;;;;;;OAMG;IACH,8EAkBC;IAED;;;;;;;OAOG;IACH,kIAcC;IAED;;;;;OAKG;IACH;;;MASC;IAED;;;;OAIG;IACH,4CAyBC;IAO0B,6DAmE1B;;gBAMS,MAAM;IAUH,mEA8EZ;IAWe,0GAef;IASgB;;YAyBhB;IASW,6DAOX;IAED;;;;;OAKG;IACH,2DAiBC;IAED;;;;;OAKG;IACH;;MAqFC;IAED;;;;;;OAMG;IACH,qDAEC;IACD;;;;;;;OAOG;IACH,qFAqBC;IACD;;;;;;;OAOG;IACH,6FAYC;IACD;;;;;;;;OAQG;IACH;;;;aAyBC;IACD;;;;OAIG;IACH,qCAIC;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+BD;;;;;OAKG;IACH,yCAEC;IACD;;;;;OAKG;IACH,iDAQC;IACD;;;;;;OAMG;IACH,0EAcC;IACD;;;;;OAKG;IACH,0CAIC;IACD;;;;;;;;;;;;;;;;;OAiBG;IACH,uCA0BC;IACD;;;;;;OAMG;IACH,iEAaC;IACD;;;;;;OAMG;IACH,2DA6BC;IACD;;;;;OAKG;IACH,oDAEC;IACD;;;;;;;OAOG;IACH;;MAaC;IACD;;;;;;;OAOG;IACH,sEAMC;;yBAj9BQ,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;0BAC7C,OAAO,wBAAwB,EAAE,WAAW;qBAC5C,OAAO,wBAAwB,EAAE,MAAM;sBACvC,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;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"} \ No newline at end of file +{"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;IAED;;;;;OAKG;IACH,kCAHW,MAAM,cACN,OAAO,QAuCjB;IACD;;;;OAIG;IACH,6BAFa,IAAI,CAKhB;IACD;;;;;;OAMG;IACH,2BAHW,GAAC,GACC,OAAO,CAInB;IACD;;;;;;OAMG;IACH,4BAHW,GAAC,GACC,OAAO,CAInB;IAED;;;;;;OAMG;IACH,oCAJW,MAA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eAAe;gCAChD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;2BAC5C,OAAO,wBAAwB,EAAE,YAAY;uBAC7C,OAAO,wBAAwB,EAAE,QAAQ"} \ No newline at end of file diff --git a/@types/types/mcdev.d.d.ts b/@types/types/mcdev.d.d.ts index 2953fa67b..ef30cebf8 100644 --- a/@types/types/mcdev.d.d.ts +++ b/@types/types/mcdev.d.d.ts @@ -33,7 +33,7 @@ export type BuObject = { export type TemplateMap = { [x: string]: string; }; -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'; +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"; /** * object-key=SupportedMetadataTypes, value=array of external keys */ @@ -117,7 +117,7 @@ export type CodeExtract = { /** * optional for binary files */ - encoding?: 'base64'; + encoding?: "base64"; }; export type QueryItem = { /** @@ -155,7 +155,7 @@ export type QueryItem = { /** * defines how the query writes into the target data extension */ - targetUpdateTypeName: 'Overwrite' | 'Update' | 'Append'; + targetUpdateTypeName: "Overwrite" | "Update" | "Append"; /** * 0|1|2, mapped to targetUpdateTypeName via this.definition.targetUpdateTypeMapping */ @@ -231,7 +231,7 @@ export type AssetItem = { export type AssetMap = { [x: string]: AssetItem; }; -export type AssetSubType = 'archive' | 'asset' | 'audio' | 'block' | 'code' | 'document' | 'image' | 'message' | 'other' | 'rawimage' | 'template' | 'textfile' | 'video'; +export type AssetSubType = "archive" | "asset" | "audio" | "block" | "code" | "document" | "image" | "message" | "other" | "rawimage" | "template" | "textfile" | "video"; export type DataExtensionFieldItem = { /** * id @@ -278,7 +278,7 @@ export type DataExtensionFieldItem = { /** * can only be set on create */ - FieldType: 'Text' | 'Number' | 'Date' | 'Boolean' | 'Decimal' | 'EmailAddress' | 'Phone' | 'Locale'; + FieldType: "Text" | "Number" | "Date" | "Boolean" | "Decimal" | "EmailAddress" | "Phone" | "Locale"; /** * field length */ @@ -339,7 +339,7 @@ export type DataExtensionItem = { /** * retrieved from associated folder */ - r__folder_ContentType: 'dataextension' | 'salesforcedataextension' | 'synchronizeddataextension' | 'shared_dataextension' | 'shared_salesforcedataextension'; + r__folder_ContentType: "dataextension" | "salesforcedataextension" | "synchronizeddataextension" | "shared_dataextension" | "shared_salesforcedataextension"; /** * folder path in which this DE is saved */ @@ -369,7 +369,7 @@ export type DataExtensionItem = { /** * readable name of retention policy */ - c__retentionPolicy?: 'none' | 'allRecordsAndDataextension' | 'allRecords' | 'individialRecords'; + c__retentionPolicy?: "none" | "allRecordsAndDataextension" | "allRecords" | "individialRecords"; /** * number of days/weeks/months/years before retention kicks in */ @@ -402,7 +402,7 @@ export type UserDocument = { /** * - */ - TYPE: 'User' | 'Installed Package' | 'Inactivated User'; + TYPE: "User" | "Installed Package" | "Inactivated User"; /** * equal to UserID; optional in update/create calls */ @@ -491,11 +491,11 @@ export type UserDocument = { /** * - */ - c__type: 'User' | 'Installed Package'; + c__type: "User" | "Installed Package"; /** * (API only) */ - IsLocked?: boolean | string; + IsLocked?: boolean; /** * used to unlock a user that has IsLocked === true */ @@ -522,12 +522,12 @@ export type UserDocument = { /** * fr-CA, en-US, ... */ - c__LocaleCode: 'en-US' | 'fr-CA' | 'fr-FR' | 'de-DE' | 'it-IT' | 'ja-JP' | 'pt-BR' | 'es-419' | 'es-ES'; + c__LocaleCode: "en-US" | "fr-CA" | "fr-FR" | "de-DE" | "it-IT" | "ja-JP" | "pt-BR" | "es-419" | "es-ES"; /** * (API only) */ Locale?: { - LocaleCode?: 'en-US' | 'fr-CA' | 'fr-FR' | 'de-DE' | 'it-IT' | 'ja-JP' | 'pt-BR' | 'es-419' | 'es-ES'; + LocaleCode?: "en-US" | "fr-CA" | "fr-FR" | "de-DE" | "it-IT" | "ja-JP" | "pt-BR" | "es-419" | "es-ES"; }; /** * - @@ -548,7 +548,45 @@ export type UserDocumentDiff = { export type UserDocumentMap = { [x: string]: UserDocument; }; -export type UserDocumentDocument = UserDocument & object; +export type UserDocumentDocumentHelper = { + /** + * docs: user.ActiveFlag === true ? '✓' : '-' + */ + ActiveFlagDocs: string; + /** + * docs: user.IsAPIUser === true ? '✓' : '-' + */ + IsAPIUserDocs: string; + /** + * docs: user.MustChangePassword === true ? '✓' : '-' + */ + MustChangePasswordDocs: string; + /** + * docs: default MID; BUName after we resolved it + */ + DefaultBusinessUnitDocs: string; + /** + * docs: list of roles as concatenated string + */ + RolesDocs: string; + /** + * docs: list of associated BUs as concatenated string + */ + AssociatedBusDocs: string; + /** + * docs: user name who last modified this user + */ + ModifiedBy: string | number; + /** + * docs: name of timezone + */ + TimeZoneName: string; + /** + * docs: if the user cannot login + */ + IsLockedDocs: string; +}; +export type UserDocumentDocument = UserDocument & UserDocumentDocumentHelper; export type AccountUserConfiguration = { /** * wrapper @@ -699,12 +737,12 @@ export type AutomationScheduleSoap = { */ Recurrence: { $?: object; - YearlyRecurrencePatternType?: 'ByYear'; - MonthlyRecurrencePatternType?: 'ByMonth'; - WeeklyRecurrencePatternType?: 'ByWeek'; - DailyRecurrencePatternType?: 'ByDay'; - MinutelyRecurrencePatternType?: 'Interval'; - HourlyRecurrencePatternType?: 'Interval'; + YearlyRecurrencePatternType?: "ByYear"; + MonthlyRecurrencePatternType?: "ByMonth"; + WeeklyRecurrencePatternType?: "ByWeek"; + DailyRecurrencePatternType?: "ByDay"; + MinutelyRecurrencePatternType?: "Interval"; + HourlyRecurrencePatternType?: "Interval"; YearInterval?: number; MonthInterval?: number; WeekInterval?: number; @@ -742,7 +780,7 @@ export type AutomationScheduleSoap = { /** * set to 'EndOn' if AutomationSchedule.icalRecur contains 'UNTIL'; otherwise to 'EndAfter' */ - RecurrenceRangeType: 'EndOn' | 'EndAfter'; + RecurrenceRangeType: "EndOn" | "EndAfter"; /** * only exists if RecurrenceRangeType=='EndAfter' */ @@ -792,11 +830,11 @@ export type AutomationItem = { /** * Starting Source = Schedule / File Drop */ - type?: 'scheduled' | 'triggered'; + type?: "scheduled" | "triggered"; /** * automation status */ - status?: 'Scheduled' | 'Running' | 'Ready' | 'Building' | 'PausedSchedule' | 'InactiveTrigger'; + status?: "Scheduled" | "Running" | "Ready" | "Building" | "PausedSchedule" | "InactiveTrigger"; /** * automation status */ @@ -850,7 +888,7 @@ export type VerificationItem = { /** * key */ - verificationType: 'IsEqualTo' | 'IsLessThan' | 'IsGreaterThan' | 'IsOutsideRange' | 'IsInsideRange' | 'IsNotEqualTo' | 'IsNotLessThan' | 'IsNotGreaterThan' | 'IsNotOutsideRange' | 'IsNotInsideRange'; + verificationType: "IsEqualTo" | "IsLessThan" | "IsGreaterThan" | "IsOutsideRange" | "IsInsideRange" | "IsNotEqualTo" | "IsNotLessThan" | "IsNotGreaterThan" | "IsNotOutsideRange" | "IsNotInsideRange"; /** * used for all verificationTypes; lower value for IsOutsideRange, IsInsideRange, IsNotOutsideRange, IsNotInsideRange */ @@ -943,7 +981,7 @@ export type McdevDeltaPkgItem = { /** * what git recognized as an action */ - gitAction: 'move' | 'add/update' | 'delete'; + gitAction: "move" | "add/update" | "delete"; /** * mcdev credential name */ @@ -953,27 +991,10 @@ export type McdevDeltaPkgItem = { */ _businessUnit: string; }; -export type DeltaPkgItem = import('simple-git').DiffResultTextFile & McdevDeltaPkgItem; -export type SDKauth = any; -export type SDKrest = any; -export type SDKsoap = any; -export type RestError = any; -export type SOAPError = any; +export type DeltaPkgItem = import("simple-git").DiffResultTextFile & McdevDeltaPkgItem; +export type RestError = import("sfmc-sdk/util").RestError; +export type SOAPError = import("sfmc-sdk/util").SOAPError; export type SDKError = SOAPError & RestError; -export type SDK = { - /** - * SDKauth - */ - auth: any; - /** - * SDKrest - */ - rest: any; - /** - * SDKsoap - */ - soap: any; -}; /** * signals what to insert automatically for things usually asked via wizard */ @@ -1068,7 +1089,7 @@ export type SoapFilterSimple = { /** * various options */ - simpleOperator: 'equals' | 'notEquals' | 'isNull' | 'isNotNull' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'between' | 'IN' | 'in' | 'like'; + simpleOperator: "equals" | "notEquals" | "isNull" | "isNotNull" | "greaterThan" | "lessThan" | "greaterThanOrEqual" | "lessThanOrEqual" | "between" | "IN" | "in" | "like"; /** * field value */ @@ -1082,7 +1103,7 @@ export type SoapFilterComplex = { /** * various options */ - logicalOperator: 'AND' | 'OR'; + logicalOperator: "AND" | "OR"; /** * string for simple or a new filter-object for complex; omit for isNull and isNotNull */ @@ -1144,7 +1165,7 @@ export type AssetRequestParams = { */ sort?: { property: string; - direction: 'ASC' | 'DESC'; + direction: "ASC" | "DESC"; }[]; /** * simple or complex filter @@ -1159,7 +1180,7 @@ export type AssetFilter = { /** * various options */ - logicalOperator: 'AND' | 'OR'; + logicalOperator: "AND" | "OR"; /** * string for simple or a new filter-object for complex; omit for isNull and isNotNull */ @@ -1173,7 +1194,7 @@ export type AssetFilterSimple = { /** * various options */ - simpleOperator: 'equal' | 'notEquals' | 'isNull' | 'isNotNull' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'between' | 'IN' | 'in' | 'like'; + simpleOperator: "equal" | "notEquals" | "isNull" | "isNotNull" | "greaterThan" | "lessThan" | "greaterThanOrEqual" | "lessThanOrEqual" | "between" | "IN" | "in" | "like"; /** * field value */ @@ -1221,7 +1242,7 @@ export type Mcdevrc = { */ version: string; }; -export type LoggerLevel = 'error' | 'verbose' | 'info' | 'debug'; +export type LoggerLevel = "error" | "verbose" | "info" | "debug"; export type McdevLogger = { /** * (msg) print info message @@ -1236,7 +1257,7 @@ export type McdevLogger = { */ errorStack: Function; }; -export type Logger = import('winston').Logger & McdevLogger; +export type Logger = import("winston").Logger & McdevLogger; export type AssetItemSimple = { id: number; key: string; @@ -1248,7 +1269,7 @@ export type AssetItemSimpleMap = { export type AssetItemIdSimpleMap = { [x: number]: AssetItemSimple; }; -export type ContentBlockConversionTypes = 'id' | 'key' | 'name'; +export type ContentBlockConversionTypes = "id" | "key" | "name"; export type ExplainType = { /** * readable name of type diff --git a/@types/types/mcdev.d.d.ts.map b/@types/types/mcdev.d.d.ts.map index 52b39c973..4de71401e 100644 --- a/@types/types/mcdev.d.d.ts.map +++ b/@types/types/mcdev.d.d.ts.map @@ -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;;;QAGC,MAAM,GAAE,MAAM;;qCACtB,OAAO,GAAC,eA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GAAC,MAAM;;;;WACnI,MAAM,GAAG,MAAM,GAAG,OAAO,QAAQ;;;;;;iBAKjC,MAAM;;;;aACN,MAAM;;;;iBAEjB;QAA+B,aAAa,EAAjC,MAAM;QACc,MAAM,EAA1B,MAAM;QACc,IAAI,EAAxB,MAAM;QACc,QAAQ,EAA5B,MAAM;QACc,QAAQ,EAA5B,MAAM;QACc,cAAc,EAAlC,MAAM;KACjB;;;;aAAW;YAAQ,MAAM,GAAE,MAAM;KAAC;;;;gBACvB,MAAM;;;;mBAEjB;QAAmC,QAAQ,EAAhC,MAAM,EAAE;QACgB,kBAAkB,EAA1C,MAAM,EAAE;KACnB;;;;aAAW,MAAM;;0BAIP,OAAO,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"} \ No newline at end of file diff --git a/eslint.config.js b/eslint.config.js index f7290b8a1..16a720a4b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -109,7 +109,6 @@ export default [ ], 'jsdoc/no-undefined-types': 'error', - 'valid-jsdoc': 'off', 'spaced-comment': [ 'warn', diff --git a/lib/Deployer.js b/lib/Deployer.js index db5d27de0..9c323f9c9 100644 --- a/lib/Deployer.js +++ b/lib/Deployer.js @@ -253,7 +253,7 @@ class Deployer { * @returns {Promise.} Promise of all deployed metadata */ async _deploy(types, keyArr) { - const typeArr = !types || Array.isArray(types) ? types : Object.keys(types); + const typeArr = types ? (Array.isArray(types) ? types : Object.keys(types)) : undefined; const typeKeyCombo = Array.isArray(types) ? Util.createTypeKeyCombo(typeArr, keyArr, true) : types; diff --git a/lib/Retriever.js b/lib/Retriever.js index 64b674826..482e4bf71 100644 --- a/lib/Retriever.js +++ b/lib/Retriever.js @@ -63,7 +63,10 @@ class Retriever { /** @type {TypeKeyCombo} */ const typeKeyMap = !namesOrKeys || Array.isArray(namesOrKeys) - ? Util.createTypeKeyCombo(metadataTypes, namesOrKeys) + ? Util.createTypeKeyCombo( + metadataTypes, + Array.isArray(namesOrKeys) ? namesOrKeys : undefined + ) : namesOrKeys; // ensure we know which real dependencies we have to ensure we cache those completely const dependencies = this._getTypeDependencies(metadataTypes); diff --git a/lib/cli.js b/lib/cli.js index a6e38b75d..2fb95861f 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -10,18 +10,18 @@ import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; import Mcdev from './index.js'; +// use this instead of setting "true" directly to more easily find deprecated commands in this file +const isDeprecated = true; /** * @typedef {import('../types/mcdev.d.js').TypeKeyCombo} TypeKeyCombo */ yargs(hideBin(process.argv)) .scriptName('mcdev') .usage('$0 [options]') - // @ts-expect-error - .command({ - command: 'retrieve [BU] [TYPE] [KEY]', - aliases: ['r'], - desc: 'retrieves metadata of a business unit', - builder: (yargs) => { + .command( + ['retrieve [BU] [TYPE] [KEY]', 'r'], + 'retrieves metadata of a business unit', + (yargs) => yargs .positional('BU', { type: 'string', @@ -48,9 +48,8 @@ yargs(hideBin(process.argv)) group: 'Options for retrieve:', describe: 'filter metadata components (can include % as wildcard or _ for a single character)', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata); if ('undefined' === typeof typeKeyCombo) { @@ -58,14 +57,12 @@ yargs(hideBin(process.argv)) } else { Mcdev.retrieve(argv.BU, typeKeyCombo); } - }, - }) - // @ts-expect-error - .command({ - command: 'deploy [BU] [TYPE] [KEY]', - aliases: ['d'], - desc: 'deploys local metadata to a business unit', - builder: (yargs) => { + } + ) + .command( + ['deploy [BU] [TYPE] [KEY]', 'd'], + 'deploys local metadata to a business unit', + (yargs) => yargs .positional('BU', { type: 'string', @@ -144,9 +141,8 @@ yargs(hideBin(process.argv)) group: 'Options for deploy:', describe: "ensure that updates to shared DataExtensions become visible in child BU's data designer (SF Known issue W-11031095)", - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata); @@ -155,69 +151,55 @@ yargs(hideBin(process.argv)) } else { Mcdev.deploy(argv.BU, typeKeyCombo); } - }, - }) - // @ts-expect-error - .command({ - command: 'init [credentialsName]', - desc: `creates '${Util.configFileName}' in your root or adds additional credentials to the existing one`, - builder: (yargs) => { + } + ) + .command( + ['init [credentialsName]'], + `creates '${Util.configFileName}' in your root or adds additional credentials to the existing one`, + (yargs) => yargs.positional('credentialsName', { type: 'string', describe: 'name of your installed package', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); Mcdev.initProject(argv.credentialsName); - }, - }) - // @ts-expect-error - .command({ - command: 'join', - desc: `clones an existing project from git`, - handler: (argv) => { - Mcdev.setOptions(argv); - Mcdev.joinProject(); - }, - }) - // @ts-expect-error - .command({ - command: 'reloadBUs [credentialsName]', - aliases: ['rb', 'refreshBUs'], - desc: 'loads the list of available BUs from the server and saves it to your config', - builder: (yargs) => { + } + ) + .command(['join'], `clones an existing project from git`, {}, (argv) => { + Mcdev.setOptions(argv); + Mcdev.joinProject(); + }) + .command( + ['reloadBUs [credentialsName]', 'rb', 'refreshBUs'], + 'loads the list of available BUs from the server and saves it to your config', + (yargs) => yargs.positional('credentialsName', { type: 'string', describe: 'name of your installed package', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); Mcdev.findBUs(argv.credentialsName); - }, - }) - // @ts-expect-error - .command({ - command: 'badKeys [BU]', - desc: 'lists metadata with random API names in specified Business Unit directory', - builder: (yargs) => { + } + ) + .command( + ['badKeys [BU]'], + 'lists metadata with random API names in specified Business Unit directory', + (yargs) => yargs.positional('BU', { type: 'string', describe: 'the business unit to deploy to', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); Mcdev.badKeys(argv.BU); - }, - }) - // @ts-expect-error - .command({ - command: 'document ', - aliases: ['doc'], - desc: 'Creates Markdown or HTML documentation for the selected type', - builder: (yargs) => { + } + ) + .command( + ['document ', 'doc'], + 'Creates Markdown or HTML documentation for the selected type', + (yargs) => yargs .positional('BU', { type: 'string', @@ -228,19 +210,16 @@ yargs(hideBin(process.argv)) type: 'string', describe: 'metadata type to generate docs for; currently supported: dataExtension, role', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); Mcdev.document(argv.BU, argv.TYPE); - }, - }) - // @ts-expect-error - .command({ - command: 'delete [TYPE] [KEY]', - aliases: ['del'], - desc: 'deletes metadata of selected type and external key', - builder: (yargs) => { + } + ) + .command( + ['delete [TYPE] [KEY]', 'del'], + 'deletes metadata of selected type and external key', + (yargs) => yargs .positional('BU', { type: 'string', @@ -258,30 +237,25 @@ yargs(hideBin(process.argv)) .option('metadata', { type: 'string', alias: 'm', - group: 'Options for retrieve:', - describe: - 'type or type:key or type:i:id or type:n:name to retrieve; if not provided, all metadata will be retrieved', - }); - }, - handler: (argv) => { + group: 'Options for delete:', + describe: 'type or type:key or type:i:id or type:n:name to delete', + }), + (argv) => { Mcdev.setOptions(argv); - const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata, ['key', 'id'], true); + const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata, ['key', 'id']); if ('undefined' === typeof typeKeyCombo) { if (argv.TYPE && argv.KEY) { - Mcdev.deleteByKey(argv.BU, argv.TYPE, argv.KEY); + Mcdev.deleteByKey(argv.BU, argv.TYPE, csvToArray(argv.KEY)); } } else { - const type = Object.keys(typeKeyCombo)[0]; - Mcdev.deleteByKey(argv.BU, type, typeKeyCombo[type][0]); + Mcdev.deleteByKey(argv.BU, typeKeyCombo, null); } - }, - }) - // @ts-expect-error - .command({ - command: 'resolveId ', - aliases: ['rid'], - desc: 'resolves metadata key by ID', - builder: (yargs) => { + } + ) + .command( + ['resolveId ', 'rid'], + 'resolves metadata key by ID', + (yargs) => yargs .positional('BU', { type: 'string', @@ -300,20 +274,17 @@ yargs(hideBin(process.argv)) type: 'boolean', group: 'Options for resolveId:', describe: 'optionaly return info in json format', - }); - // TODO: add option --metadata - }, - handler: (argv) => { + }), + // TODO: add option --metadata + (argv) => { Mcdev.setOptions(argv); Mcdev.resolveId(argv.BU, argv.TYPE, argv.ID); - }, - }) - // @ts-expect-error - .command({ - command: 'retrieveAsTemplate ', - aliases: ['rt'], - desc: '[DEPRECATED] Retrieves a specific metadata file by name from the server for templating', - builder: (yargs) => { + } + ) + .command( + ['retrieveAsTemplate ', 'rt'], + '[DEPRECATED] Retrieves a specific metadata file by name from the server for templating', + (yargs) => yargs .positional('BU', { type: 'string', @@ -331,19 +302,19 @@ yargs(hideBin(process.argv)) .positional('MARKET', { type: 'string', describe: 'market used for reverse building template', - }); - }, - handler: (argv) => { + }), + + (argv) => { Mcdev.setOptions(argv); Mcdev.retrieveAsTemplate(argv.BU, argv.TYPE, csvToArray(argv.NAME), argv.MARKET); }, - deprecated: true, - }) - // @ts-expect-error - .command({ - command: 'build', - desc: 'runs buildTemplate followed by buildDefinition', - builder: (yargs) => { + [], + isDeprecated + ) + .command( + ['build'], + 'runs buildTemplate followed by buildDefinition', + (yargs) => yargs .option('metadata', { type: 'string', @@ -386,9 +357,8 @@ yargs(hideBin(process.argv)) describe: 'if defined, the marketTo parameter has to be a marketList and buildDefinitionBulk is executed', demandOption: true, - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata); if ('undefined' !== typeof typeKeyCombo) { @@ -401,14 +371,12 @@ yargs(hideBin(process.argv)) argv.bulk ); } - }, - }) - // @ts-expect-error - .command({ - command: 'buildTemplate [TYPE] [KEY] [MARKET]', - aliases: ['bt'], - desc: 'builds a template out of a specific metadata file already in your retrieve folder', - builder: (yargs) => { + } + ) + .command( + ['buildTemplate [TYPE] [KEY] [MARKET]', 'bt'], + 'builds a template out of a specific metadata file already in your retrieve folder', + (yargs) => yargs .positional('BU', { type: 'string', @@ -437,9 +405,8 @@ yargs(hideBin(process.argv)) type: 'string', group: 'Options for buildTemplate:', describe: 'market used for reverse building template', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata); if ('undefined' === typeof typeKeyCombo) { @@ -452,14 +419,12 @@ yargs(hideBin(process.argv)) } else { Mcdev.buildTemplate(argv.BU, typeKeyCombo, null, argv.MARKET || argv.market); } - }, - }) - // @ts-expect-error - .command({ - command: 'buildDefinition [TYPE] [FILENAME] [MARKET]', - aliases: ['bd'], - desc: 'builds metadata definition based on template', - builder: (yargs) => { + } + ) + .command( + ['buildDefinition [TYPE] [FILENAME] [MARKET]', 'bd'], + 'builds metadata definition based on template', + (yargs) => yargs .positional('BU', { type: 'string', @@ -487,9 +452,8 @@ yargs(hideBin(process.argv)) type: 'string', group: 'Options for buildDefinition:', describe: 'market used for building deployable definition', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata); if ('undefined' === typeof typeKeyCombo) { @@ -502,14 +466,12 @@ yargs(hideBin(process.argv)) } else { Mcdev.buildDefinition(argv.BU, typeKeyCombo, null, argv.MARKET || argv.market); } - }, - }) - // @ts-expect-error - .command({ - command: 'buildDefinitionBulk [TYPE] [FILENAME]', - aliases: ['bdb'], - desc: 'builds metadata definition based on template en bulk', - builder: (yargs) => { + } + ) + .command( + ['buildDefinitionBulk [TYPE] [FILENAME]', 'bdb'], + 'builds metadata definition based on template en bulk', + (yargs) => yargs .positional('LISTNAME', { type: 'string', @@ -528,9 +490,8 @@ yargs(hideBin(process.argv)) alias: 'm', group: 'Options for buildDefinitionBulk:', describe: 'type:templateName combos to build template for', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata); if ('undefined' === typeof typeKeyCombo) { @@ -538,41 +499,35 @@ yargs(hideBin(process.argv)) } else { Mcdev.buildDefinitionBulk(argv.LISTNAME, typeKeyCombo); } - }, - }) - // @ts-expect-error - .command({ - command: 'selectTypes', - aliases: ['st'], - desc: 'lets you choose what metadata types to retrieve', - handler: (argv) => { + } + ) + .command( + ['selectTypes', 'st'], + 'lets you choose what metadata types to retrieve', + {}, + (argv) => { Mcdev.setOptions(argv); Mcdev.selectTypes(); - }, - }) - // @ts-expect-error - .command({ - command: 'explainTypes', - aliases: ['et'], - desc: 'explains metadata types that can be retrieved', - builder: (yargs) => { + } + ) + .command( + ['explainTypes', 'et'], + 'explains metadata types that can be retrieved', + (yargs) => yargs.option('json', { type: 'boolean', group: 'Options for explainTypes:', describe: 'optionaly return info in json format', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); Mcdev.explainTypes(); - }, - }) - // @ts-expect-error - .command({ - command: 'createDeltaPkg [range]', - aliases: ['cdp'], - desc: 'Copies commit-based file delta into deploy folder', - builder: (yargs) => { + } + ) + .command( + ['createDeltaPkg [range]', 'cdp'], + 'Copies commit-based file delta into deploy folder', + (yargs) => yargs .positional('range', { type: 'string', @@ -588,20 +543,16 @@ yargs(hideBin(process.argv)) type: 'number', group: 'Options for createDeltaPkg:', describe: 'Number of commits to look back for changes (supersedes config)', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); - // @ts-expect-error - us passing in argv directly here is a bit lazy and ts warns us about it... Mcdev.createDeltaPkg(argv); - }, - }) - // @ts-expect-error - .command({ - command: 'getFilesToCommit ', - aliases: ['fc'], - desc: 'returns a list of relative paths to files one needs to include in a commit', - builder: (yargs) => { + } + ) + .command( + ['getFilesToCommit ', 'fc'], + 'returns a list of relative paths to files one needs to include in a commit', + (yargs) => yargs .positional('BU', { type: 'string', @@ -615,20 +566,17 @@ yargs(hideBin(process.argv)) .positional('KEY', { type: 'string', describe: 'key(s) of the metadata component(s)', - }); - // TODO: add option --metadata - }, - handler: (argv) => { + }), + // TODO: add option --metadata + (argv) => { Mcdev.setOptions(argv); Mcdev.getFilesToCommit(argv.BU, argv.TYPE, csvToArray(argv.KEY)); - }, - }) - // @ts-expect-error - .command({ - command: 'refresh [TYPE] [KEY]', - aliases: ['re'], - desc: 'ensures that updates are properly published', - builder: (yargs) => { + } + ) + .command( + ['refresh [TYPE] [KEY]', 're'], + 'ensures that updates are properly published', + (yargs) => yargs .positional('BU', { type: 'string', @@ -641,20 +589,17 @@ yargs(hideBin(process.argv)) .positional('KEY', { type: 'string', describe: 'key(s) of the metadata component(s)', - }); - // TODO: add option --metadata - }, - handler: (argv) => { + }), + // TODO: add option --metadata + (argv) => { Mcdev.setOptions(argv); Mcdev.refresh(argv.BU, argv.TYPE, csvToArray(argv.KEY)); - }, - }) - // @ts-expect-error - .command({ - command: 'execute [KEY]', - aliases: ['exec', 'start'], - desc: 'executes the entity (query/journey/automation etc.)', - builder: (yargs) => { + } + ) + .command( + ['execute [KEY]', 'exec', 'start'], + 'executes the entity (query/journey/automation etc.)', + (yargs) => yargs .positional('BU', { type: 'string', @@ -679,21 +624,18 @@ yargs(hideBin(process.argv)) group: 'Options for execute:', describe: 'optionally start existing schedule instead of running item once immediately (only works for automations)', - }); - // TODO: add option --metadata - }, - handler: (argv) => { + }), + // TODO: add option --metadata + (argv) => { Mcdev.setOptions(argv); // ! do not allow multiple types to be passed in here via csvToArray Mcdev.execute(argv.BU, argv.TYPE, csvToArray(argv.KEY)); - }, - }) - // @ts-expect-error - .command({ - command: 'schedule [KEY]', - aliases: ['sched'], - desc: 'starts the predefined schedule of the item (shortcut for running execute --schedule)', - builder: (yargs) => { + } + ) + .command( + ['schedule [KEY]', 'sched'], + 'starts the predefined schedule of the item (shortcut for running execute --schedule)', + (yargs) => yargs .positional('BU', { type: 'string', @@ -712,21 +654,18 @@ yargs(hideBin(process.argv)) group: 'Options for execute:', describe: 'filter metadata components (can include % as wildcard or _ for a single character)', - }); - // TODO: add option --metadata - }, - handler: (argv) => { + }), + // TODO: add option --metadata + (argv) => { Mcdev.setOptions(argv); // ! do not allow multiple types to be passed in here via csvToArray Mcdev.schedule(argv.BU, argv.TYPE, csvToArray(argv.KEY)); - }, - }) - // @ts-expect-error - .command({ - command: 'pause [KEY]', - aliases: ['p', 'stop'], - desc: 'pauses the entity (automation etc.)', - builder: (yargs) => { + } + ) + .command( + ['pause [KEY]', 'p', 'stop'], + 'pauses the entity (automation etc.)', + (yargs) => yargs .positional('BU', { type: 'string', @@ -745,21 +684,18 @@ yargs(hideBin(process.argv)) group: 'Options for pause:', describe: 'filter metadata components (can include % as wildcard or _ for a single character)', - }); - // TODO: add option --metadata - }, - handler: (argv) => { + }), + // TODO: add option --metadata + (argv) => { Mcdev.setOptions(argv); // ! do not allow multiple types to be passed in here via csvToArray Mcdev.pause(argv.BU, argv.TYPE, csvToArray(argv.KEY)); - }, - }) - // @ts-expect-error - .command({ - command: 'fixKeys [TYPE] [KEY]', - aliases: ['fx'], - desc: 'changes the key of the items to match the name', - builder: (yargs) => { + } + ) + .command( + ['fixKeys [TYPE] [KEY]', 'fx'], + 'changes the key of the items to match the name', + (yargs) => yargs .positional('BU', { type: 'string', @@ -805,9 +741,8 @@ yargs(hideBin(process.argv)) group: 'Options for fixKeys:', describe: 'optionally start existing schedule instead of running item once immediately (only works for automations)', - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata); if ('undefined' === typeof typeKeyCombo) { @@ -815,14 +750,12 @@ yargs(hideBin(process.argv)) } else { Mcdev.fixKeys(argv.BU, typeKeyCombo); } - }, - }) - // @ts-expect-error - .command({ - command: 'replaceContentBlock', - aliases: ['rcb'], - desc: 'Replaces ContentBlockById, ContentBlockByKey or ContentBlockByName functions with each other in AMPscript', - builder: (yargs) => { + } + ) + .command( + ['replaceContentBlock', 'rcb'], + 'Replaces ContentBlockById, ContentBlockByKey or ContentBlockByName functions with each other in AMPscript', + (yargs) => yargs .option('bu', { type: 'string', @@ -882,24 +815,22 @@ yargs(hideBin(process.argv)) } } return true; - }); - }, - handler: (argv) => { + }), + (argv) => { Mcdev.setOptions(argv); const typeKeyCombo = Mcdev.metadataToTypeKey(argv.metadata); Mcdev.replaceCbReference(argv.bu, typeKeyCombo, argv.to, argv.from); - }, - }) - // @ts-expect-error - .command({ - command: 'upgrade', - aliases: ['up'], - desc: 'Add NPM dependencies and IDE configuration files to your project', - handler: (argv) => { + } + ) + .command( + ['upgrade', 'up'], + 'Add NPM dependencies and IDE configuration files to your project', + {}, + (argv) => { Mcdev.setOptions(argv); Mcdev.upgrade(); - }, - }) + } + ) .option('verbose', { type: 'boolean', description: 'Run with verbose CLI output', diff --git a/lib/index.js b/lib/index.js index 1c5fcd938..c5478eee6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -557,39 +557,74 @@ class Mcdev { * deletes metadata from MC instance by key * * @param {string} businessUnit references credentials from properties.json - * @param {string} type supported metadata type - * @param {string} customerKey Identifier of metadata + * @param {string | TypeKeyCombo} selectedTypes supported metadata type (single) or complex object + * @param {string[] | string} [keyArr] Identifier of metadata * @returns {Promise.} true if successful, false otherwise */ - static async deleteByKey(businessUnit, type, customerKey) { + static async deleteByKey(businessUnit, selectedTypes, keyArr) { Util.startLogger(); Util.logger.info('mcdev:: delete'); - if (!Util._isValidType(type)) { - return; + /** @typedef {string[]} */ + let selectedTypesArr; + /** @typedef {TypeKeyCombo} */ + let selectedTypesObj; + if ('string' === typeof keyArr) { + keyArr = [keyArr]; + } + if ('string' === typeof selectedTypes) { + selectedTypesArr = [selectedTypes]; + } else { + selectedTypesObj = selectedTypes; + // reset keys array because it will be overriden by values from selectedTypesObj + keyArr = null; + } + // check if types are valid + for (const selectedType of selectedTypesArr || Object.keys(selectedTypesObj)) { + if (!Util._isValidType(selectedType)) { + return; + } } const properties = await config.getProperties(); if (!(await config.checkProperties(properties))) { return null; } const buObject = await Cli.getCredentialObject(properties, businessUnit); - if (buObject !== null) { - try { - MetadataTypeInfo[type].client = auth.getSDK(buObject); - } catch (ex) { - Util.logger.error(ex.message); + if (!buObject) { + return; + } + let client; + try { + client = auth.getSDK(buObject); + } catch (ex) { + Util.logger.error(ex.message); + return; + } + let status = true; + for (const type of selectedTypesArr || Object.keys(selectedTypesObj)) { + keyArr = selectedTypesArr ? keyArr : selectedTypesObj[type]; + if (!keyArr) { + Util.logger.error(`No keys set for ${type}`); return; } - Util.logger.info( - Util.getGrayMsg(` - Deleting ${type} ${customerKey} on BU ${businessUnit}`) - ); - try { - MetadataTypeInfo[type].properties = properties; - MetadataTypeInfo[type].buObject = buObject; - return await MetadataTypeInfo[type].deleteByKey(customerKey); - } catch (ex) { - Util.logger.errorStack(ex, ` - Deleting ${type} failed`); + for (const key of keyArr) { + MetadataTypeInfo[type].client = client; + + Util.logger.info( + Util.getGrayMsg(` - Deleting ${type} ${key} on BU ${businessUnit}`) + ); + try { + MetadataTypeInfo[type].properties = properties; + MetadataTypeInfo[type].buObject = buObject; + const result = await MetadataTypeInfo[type].deleteByKey(key); + status &&= result; + } catch (ex) { + Util.logger.errorStack(ex, ` - Deleting ${type} failed`); + status = false; + } } } + + return status; } /** * get name & key for provided id @@ -1010,13 +1045,12 @@ class Mcdev { * Updates the key to match the name field * * @param {string} businessUnit name of BU - * @param {TypeKeyCombo|undefined} selectedTypesArr limit retrieval to given metadata type - * @param {ContentBlockConversionTypes} to what to replace with - * @param {ContentBlockConversionTypes[]} [fromList] what to replace + * @param {TypeKeyCombo | undefined} selectedTypesObj limit retrieval to given metadata type + * @param {string} to what to replace with + * @param {string[]} [fromList] what to replace * @returns {Promise.>} key1: business unit name, key2:type value: list of fixed item keys */ - static async replaceCbReference(businessUnit, selectedTypesArr, to, fromList) { - /** @type {ContentBlockConversionTypes[]} */ + static async replaceCbReference(businessUnit, selectedTypesObj, to, fromList) { const allowedFromTo = ['key', 'name', 'id']; if (!allowedFromTo.includes(to)) { Util.logger.error( @@ -1053,9 +1087,11 @@ class Mcdev { if (!Util._isValidBU(properties, businessUnit)) { return; } - if (selectedTypesArr) { + /** @typedef {string[]} */ + let selectedTypesArr; + if (selectedTypesObj) { // check if types are valid - for (const selectedType of Object.keys(selectedTypesArr)) { + for (const selectedType of Object.keys(selectedTypesObj)) { if (!Util._isValidType(selectedType)) { return; } @@ -1081,19 +1117,19 @@ class Mcdev { selectedTypesArr ) ? selectedTypesArr - : Object.keys(selectedTypesArr) + : Object.keys(selectedTypesObj) ).join(', ')}` ); const response = {}; for (const selectedType of Array.isArray(selectedTypesArr) ? selectedTypesArr - : Object.keys(selectedTypesArr)) { + : Object.keys(selectedTypesObj)) { const temp = await this.#runMethod( 'replaceCbReference', businessUnit, selectedType, - Array.isArray(selectedTypesArr) ? null : selectedTypesArr[selectedType] + Array.isArray(selectedTypesArr) ? null : selectedTypesObj[selectedType] ); response[businessUnit] ||= {}; response[businessUnit][selectedType] = temp[businessUnit]; @@ -1106,22 +1142,31 @@ class Mcdev { * Updates the key to match the name field * * @param {string} businessUnit name of BU - * @param {string[] | TypeKeyCombo} selectedTypesArr limit retrieval to given metadata type + * @param {string[] | TypeKeyCombo} selectedTypes limit retrieval to given metadata type * @param {string[]} [keys] customerkey of the metadata * @returns {Promise.>} key1: business unit name, key2:type value: list of fixed item keys */ - static async fixKeys(businessUnit, selectedTypesArr, keys) { + static async fixKeys(businessUnit, selectedTypes, keys) { const properties = await config.getProperties(); let reRetrieveAll = false; - if (selectedTypesArr) { + /** @typedef {string[]} */ + let selectedTypesArr; + /** @typedef {TypeKeyCombo} */ + let selectedTypesObj; + if (selectedTypes) { // check if types are valid - for (const selectedType of Array.isArray(selectedTypesArr) - ? selectedTypesArr - : Object.keys(selectedTypesArr)) { + for (const selectedType of Array.isArray(selectedTypes) + ? selectedTypes + : Object.keys(selectedTypes)) { if (!Util._isValidType(selectedType)) { return; } } + if (Array.isArray(selectedTypes)) { + selectedTypesArr = selectedTypes; + } else { + selectedTypesObj = selectedTypes; + } } else { // do it for all standard retrieve types selectedTypesArr = []; @@ -1139,7 +1184,9 @@ class Mcdev { ) ) ); - Util.logger.info(`:: Fixing keys for ${selectedTypesArr.join(', ')}`); + Util.logger.info( + `:: Fixing keys for ${selectedTypesArr ? selectedTypesArr.join(', ') : Object.keys(selectedTypesObj).join(', ')}` + ); reRetrieveAll = true; this.setOptions({ skipInteraction: { fixKeysReretrieve: false }, @@ -1147,17 +1194,15 @@ class Mcdev { } const response = {}; - for (const selectedType of Array.isArray(selectedTypesArr) - ? selectedTypesArr - : Object.keys(selectedTypesArr)) { + for (const selectedType of selectedTypesArr || Object.keys(selectedTypesObj)) { if (selectedType === 'event') { Util.logger.warn( `Type 'event' is not supported for fixKeys for compatibility reasons. Draft Journeys would otherwise be broken after the key change. If you do need to update an event key, use deploy --changeKeyValue or --changeKeyField instead.` ); - if (Array.isArray(selectedTypesArr)) { - selectedTypesArr = selectedTypesArr.filter((type) => type !== 'event'); + if (Array.isArray(selectedTypes)) { + selectedTypes = selectedTypes.filter((type) => type !== 'event'); } else { - delete selectedTypesArr.event; + delete selectedTypes.event; } continue; } @@ -1165,13 +1210,14 @@ class Mcdev { 'fixKeys', businessUnit, selectedType, - Array.isArray(selectedTypesArr) ? keys : selectedTypesArr[selectedType] + selectedTypesArr ? keys : selectedTypesObj[selectedType] ); response[businessUnit] ||= {}; response[businessUnit][selectedType] = temp[businessUnit]; } if (reRetrieveAll) { + // only done if selectedTypesArr is set as fallback Util.logger.info( `Retrieving latest versions of ${selectedTypesArr.join(', ')} from server` ); diff --git a/lib/metadataTypes/Asset.js b/lib/metadataTypes/Asset.js index 8681d8226..1935834b1 100644 --- a/lib/metadataTypes/Asset.js +++ b/lib/metadataTypes/Asset.js @@ -2217,6 +2217,7 @@ class Asset extends MetadataType { if (!changes) { const ex = new Error('No changes made to the code.'); + // @ts-expect-error TODO: create custom Error object ex.code = 200; throw ex; } diff --git a/lib/metadataTypes/DataExtension.js b/lib/metadataTypes/DataExtension.js index 0a963e40e..145a69df3 100644 --- a/lib/metadataTypes/DataExtension.js +++ b/lib/metadataTypes/DataExtension.js @@ -278,10 +278,11 @@ class DataExtension extends MetadataType { * Updates a single dataExtension. Also updates their columns in 'dataExtension.columns' * * @param {DataExtensionItem} metadata single metadata entry + * @param {boolean} [handleOutside] if the API reponse is irregular this allows you to handle it outside of this generic method * @returns {Promise} Promise */ - static async update(metadata) { - return super.updateSOAP(metadata); + static async update(metadata, handleOutside) { + return super.updateSOAP(metadata, handleOutside); } /** * Gets executed after deployment of metadata type @@ -678,7 +679,6 @@ class DataExtension extends MetadataType { ], }, }; - // @ts-expect-error SFMC-SDK typing error await this.client.soap.update(Util.capitalizeFirstLetter(soapType), payload, null); return randomSuffix; } diff --git a/lib/metadataTypes/DataExtensionField.js b/lib/metadataTypes/DataExtensionField.js index efef3e5b5..94c646e8c 100644 --- a/lib/metadataTypes/DataExtensionField.js +++ b/lib/metadataTypes/DataExtensionField.js @@ -315,7 +315,6 @@ class DataExtensionField extends MetadataType { }; try { // ! we really do need to delete from DataExtension not DataExtensionField here! - // @ts-expect-error wrong jsdoc for 2nd parameter in SFMC-SDK this.client.soap.delete('DataExtension', keyObj, null); if (!fieldId) { diff --git a/lib/metadataTypes/Event.js b/lib/metadataTypes/Event.js index 8d167c3bd..58fdc2726 100644 --- a/lib/metadataTypes/Event.js +++ b/lib/metadataTypes/Event.js @@ -4,6 +4,7 @@ import MetadataType from './MetadataType.js'; import { Util } from '../util/util.js'; import File from '../util/file.js'; import cache from '../util/cache.js'; +import deepEqual from 'deep-equal'; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject @@ -24,6 +25,7 @@ import cache from '../util/cache.js'; * @augments MetadataType */ class Event extends MetadataType { + static reCacheDataExtensions = []; /** * Retrieves Metadata of Event Definition. * Endpoint /interaction/v1/eventDefinitions return all Event Definitions with all details. @@ -92,30 +94,26 @@ class Event extends MetadataType { ); } else if (event?.length === 1) { const originalKey = event[0][this.definition.keyField]; - const eventDef = JSON.parse( - Util.replaceByObject( - JSON.stringify(this.postRetrieveTasks(event[0])), - templateVariables - ) + const metadataItemTemplated = Util.replaceByObject( + this.postRetrieveTasks(event[0]), + templateVariables ); - if (!eventDef.dataExtensionId) { + + if (!metadataItemTemplated.r__dataExtension_key) { throw new Error( - `Event.postRetrieveTasks:: ` + - `No Data Extension found for ` + - `event: ${eventDef.name}. ` + - `This cannot be templated` + `Event.postRetrieveTasks:: No Data Extension found for ${this.definition.type}: ${metadataItemTemplated.name}. This cannot be templated.` ); } // remove all fields listed in Definition for templating - this.keepTemplateFields(eventDef); + this.keepTemplateFields(metadataItemTemplated); await File.writeJSONToFile( [templateDir, this.definition.type].join('/'), originalKey + '.' + this.definition.type + '-meta', - JSON.parse(Util.replaceByObject(JSON.stringify(eventDef), templateVariables)) + metadataItemTemplated ); - Util.logger.info(`- templated ${this.definition.type}: ${name}`); - return { metadata: eventDef, type: this.definition.type }; + Util.logger.info(` - templated ${this.definition.type}: ${name}`); + return { metadata: metadataItemTemplated, type: this.definition.type }; } else { throw new Error( `Encountered unknown error when retrieveing ${ @@ -175,7 +173,8 @@ class Event extends MetadataType { static async update(metadataEntry) { return super.updateREST( metadataEntry, - '/interaction/v1/eventDefinitions/' + metadataEntry.id, + '/interaction/v1/eventDefinitions/key:' + + encodeURIComponent(metadataEntry[this.definition.keyField]), 'put' ); } @@ -187,25 +186,8 @@ class Event extends MetadataType { * @returns {MetadataTypeItem} parsed version */ static preDeployTasks(metadata) { - if (metadata.r__dataExtension_key) { - metadata.dataExtensionId = cache.searchForField( - 'dataExtension', - metadata.r__dataExtension_key, - 'CustomerKey', - 'ObjectID' - ); - metadata.dataExtensionName = cache.searchForField( - 'dataExtension', - metadata.r__dataExtension_key, - 'CustomerKey', - 'Name' - ); - metadata.arguments.dataExtensionId = metadata.dataExtensionId; - if (metadata.schema) { - metadata.schema.id = metadata.dataExtensionId; - metadata.schema.name = metadata.dataExtensionName; - } - } + // Note: lots has to be done in createOrUpdate based on what action is required + metadata.arguments ||= {}; metadata.arguments.eventDefinitionKey = metadata.eventDefinitionKey; // standard values @@ -214,6 +196,187 @@ class Event extends MetadataType { metadata.mode = 'Production'; // potentially needs to be set to "1" instead return metadata; } + /** + * helper for {@link MetadataType.upsert} + * + * @param {MetadataTypeMap} metadataMap list of metadata + * @param {string} metadataKey key of item we are looking at + * @param {boolean} hasError error flag from previous code + * @param {MetadataTypeItemDiff[]} metadataToUpdate list of items to update + * @param {MetadataTypeItem[]} metadataToCreate list of items to create + * @returns {Promise.<'create'|'update'|'skip'>} action to take + */ + static async createOrUpdate( + metadataMap, + metadataKey, + hasError, + metadataToUpdate, + metadataToCreate + ) { + const createOrUpdateAction = await super.createOrUpdate( + metadataMap, + metadataKey, + hasError, + metadataToUpdate, + metadataToCreate + ); + const metadataItem = metadataMap[metadataKey]; + if (createOrUpdateAction === 'update') { + if (metadataItem.r__dataExtension_key) { + metadataItem.dataExtensionId = cache.searchForField( + 'dataExtension', + metadataItem.r__dataExtension_key, + 'CustomerKey', + 'ObjectID' + ); + metadataItem.dataExtensionName = cache.searchForField( + 'dataExtension', + metadataItem.r__dataExtension_key, + 'CustomerKey', + 'Name' + ); + metadataItem.arguments.dataExtensionId = metadataItem.dataExtensionId; + if (metadataItem.schema) { + metadataItem.schema.id = metadataItem.dataExtensionId; + metadataItem.schema.name = metadataItem.dataExtensionName; + } + } + if (metadataItem.schema?.fields?.length) { + const normalizedKey = File.reverseFilterIllegalFilenames( + metadataMap[metadataKey][this.definition.keyField] + ); + const cachedVersion = cache.getByKey(this.definition.type, normalizedKey); + if (cachedVersion?.schema?.fields?.length) { + const cacheClone = structuredClone(cachedVersion); + cacheClone.schema.fields = cacheClone.schema.fields.map((field) => { + delete field.isDevicePreference; + return field; + }); + if (!deepEqual(metadataItem?.schema?.fields, cacheClone?.schema?.fields)) { + Util.logger.warn( + ` - ${this.definition.type} ${metadataItem[this.definition.keyField]}: schema fields differ from server version. Resetting as this will not be reflected on dataExtension.` + ); + metadataItem.schema.fields = cacheClone.schema.fields; + } + } + } + } else if (createOrUpdateAction === 'create') { + try { + if (metadataItem.r__dataExtension_key) { + metadataItem.dataExtensionId = cache.searchForField( + 'dataExtension', + metadataItem.r__dataExtension_key, + 'CustomerKey', + 'ObjectID' + ); + metadataItem.dataExtensionName = cache.searchForField( + 'dataExtension', + metadataItem.r__dataExtension_key, + 'CustomerKey', + 'Name' + ); + if (metadataItem.schema) { + delete metadataItem.schema; + Util.logger.info( + ` - ${this.definition.type} ${metadataItem[this.definition.keyField]}: dataExtension ${metadataItem.r__dataExtension_key} found, ignoring schema-section in ${this.definition.type} json` + ); + } + } + } catch { + // no action + } + if (metadataItem.schema) { + if (metadataItem.r__dataExtension_key) { + metadataItem.schema.name = metadataItem.r__dataExtension_key; + } + Util.logger.warn( + `Data Extension ${metadataItem.schema.name || metadataItem[this.definition.keyField]} not found on BU. Creating it automatically based on schema-definition.` + ); + // we want the event api to create the DE for us based on the schema + this.reCacheDataExtensions.push({ + eventKey: metadataItem[this.definition.keyField], + deKey: metadataItem.schema.name || metadataItem[this.definition.keyField], + }); + } + } + return createOrUpdateAction; + } + /** + * Gets executed after deployment of metadata type + * + * @param {MetadataTypeMap} upsertResults metadata mapped by their keyField as returned by update/create + * @param {MetadataTypeMap} originalMetadata metadata to be updated (contains additioanl fields) + * @param {{created: number, updated: number}} createdUpdated counter representing successful creates/updates + * @returns {Promise.} - + */ + static async postDeployTasks(upsertResults, originalMetadata, createdUpdated) { + // CREATE ONLY - if dataExtensions were auto- + if (this.reCacheDataExtensions.length && createdUpdated.created > 0) { + Util.logger.warn(' - Re-caching dependent Metadata: dataExtension'); + const deRetrieve = await DataExtension.retrieveForCache(); + cache.setMetadata('dataExtension', deRetrieve.metadata); + const reDownloadDeKeys = []; + // try to update key & name of the auto-generated dataExtension + for (const { eventKey, deKey } of this.reCacheDataExtensions) { + if (!upsertResults[eventKey]) { + continue; + } + const eventItem = upsertResults[eventKey]; + const newDeKey = cache.searchForField( + 'dataExtension', + eventItem.dataExtensionId, + 'ObjectID', + 'CustomerKey' + ); + // get dataExtension from cache which conveniently already has the ObjectID set + const deObj = cache.getByKey('dataExtension', newDeKey); + const oldName = deObj[DataExtension.definition.nameField]; + // prepare a clone of the DE to update name & key to match the event + const clone = structuredClone(deObj); + clone[DataExtension.definition.keyField] = deKey; + clone[DataExtension.definition.nameField] = deKey; + try { + // update DE on server + await DataExtension.update(clone, true); + Util.logger.info( + ` - changed dataExtension ${newDeKey} (${oldName}) key/name to ${deKey}` + ); + // update cache + deObj[DataExtension.definition.keyField] = deKey; + deObj[DataExtension.definition.nameField] = deKey; + + reDownloadDeKeys.push(deObj[DataExtension.definition.keyField]); + } catch { + // fallback, set DE key to value of DE name + const clone = structuredClone(deObj); + clone[DataExtension.definition.keyField] = oldName; + try { + // update DE on server + await DataExtension.update(clone, true); + Util.logger.info( + ` - changed dataExtension ${newDeKey} (${oldName}) key to ${oldName}` + ); + // update cache + deObj[DataExtension.definition.keyField] = + deObj[DataExtension.definition.nameField]; + + reDownloadDeKeys.push(deObj[DataExtension.definition.keyField]); + } catch { + Util.logger.debug( + ` - failed to change dataExtension ${newDeKey} (${oldName}) key/name` + ); + } + } + } + this.reCacheDataExtensions.length = 0; + + // ensure we have downloaded auto-created DEs + if (reDownloadDeKeys.length) { + const retriever = new Retriever(this.properties, this.buObject); + await retriever.retrieve(['dataExtension'], reDownloadDeKeys); + } + } + } /** * parses retrieved Metadata before saving @@ -234,7 +397,6 @@ class Event extends MetadataType { delete metadata.arguments.dataExtensionId; if (metadata.schema) { delete metadata.schema.id; - delete metadata.schema.name; } } catch (ex) { Util.logger.verbose( @@ -249,6 +411,8 @@ class Event extends MetadataType { // Assign definition to static attributes import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js'; +import DataExtension from './DataExtension.js'; +import Retriever from './../Retriever.js'; Event.definition = MetadataTypeDefinitions.event; export default Event; diff --git a/lib/metadataTypes/Folder.js b/lib/metadataTypes/Folder.js index a18179d43..9ea69db18 100644 --- a/lib/metadataTypes/Folder.js +++ b/lib/metadataTypes/Folder.js @@ -361,7 +361,7 @@ class Folder extends MetadataType { const response = await super.createREST(restPayload, '/email/v1/category', true); if (response?.objectId) { // convert the response to the same format as the SOAP response - metadataEntry.ID = response.objectId; + metadataEntry.ID = response.categoryId; // the following is a bit of a hack to make the response look like the SOAP response; not sure if we actually need that anywhere like this --> future developers feel free to double check const returnObject = { Results: [ diff --git a/lib/metadataTypes/Journey.js b/lib/metadataTypes/Journey.js index 8a26bf68c..0007378aa 100644 --- a/lib/metadataTypes/Journey.js +++ b/lib/metadataTypes/Journey.js @@ -49,7 +49,11 @@ class Journey extends MetadataType { let singleKey = ''; let mode = 'key'; if (key) { - if (key.startsWith('id:') || key.startsWith('%23')) { + if (key.startsWith('%23')) { + // correct the format + key = 'id:' + key.slice(3); + } + if (key.startsWith('id:')) { // ! allow selecting journeys by ID because that's what users see in the URL // if the key started with %23 assume an ID was copied from the URL but the user forgot to prefix it with id: @@ -59,6 +63,8 @@ class Journey extends MetadataType { // in the journey URL the Id is prefixed with an HTML-encoded "#" which could accidentally be copied by users // despite the slicing above, this still needs testing here because users might have prefixed the ID with id: but did not know to remove the #23 singleKey = singleKey.slice(3); + // correct the format to ensure we show sth readable in the "Downloaded" log + key = 'id:' + singleKey; } if (singleKey.includes('/')) { // in the journey URL the version is appended after the ID, separated by a forward-slash. Needs to be removed from the ID for the retrieve as we always aim to retrieve the latest version only @@ -89,7 +95,7 @@ class Journey extends MetadataType { const results = this.definition.restPagination ? await this.client.rest.getBulk(uri, this.definition.restPageSize || 500) : await this.client.rest.get(uri); - // const results = this.parseResponseBody(response); + if (results.items?.length) { // empty results will come back without "items" defined Util.logger.info( @@ -1182,6 +1188,7 @@ class Journey extends MetadataType { const activities = item.activities.filter((activity) => activity.type === 'EMAILV2'); if (!activities) { const ex = new Error('No changes made to the code.'); + // @ts-expect-error custom error object ex.code = 200; throw ex; } @@ -1278,6 +1285,7 @@ class Journey extends MetadataType { if (!changes) { const ex = new Error('No changes made to the code.'); + // @ts-expect-error custom error object ex.code = 200; throw ex; } diff --git a/lib/metadataTypes/MetadataType.js b/lib/metadataTypes/MetadataType.js index 8bc3b934e..851801cf3 100644 --- a/lib/metadataTypes/MetadataType.js +++ b/lib/metadataTypes/MetadataType.js @@ -26,7 +26,7 @@ import Mustache from 'mustache'; * @typedef {import('../../types/mcdev.d.js').MetadataTypeMapObj} MetadataTypeMapObj * @typedef {import('../../types/mcdev.d.js').SoapRequestParams} SoapRequestParams * @typedef {import('../../types/mcdev.d.js').TemplateMap} TemplateMap - * @typedef {import('../../types/mcdev.d.js').SDK} SDK + * @typedef {import('sfmc-sdk').default} SDK * @typedef {import('../../types/mcdev.d.js').SDKError} SDKError * @typedef {import('../../types/mcdev.d.js').SOAPError} SOAPError * @typedef {import('../../types/mcdev.d.js').RestError} RestError @@ -148,9 +148,9 @@ class MetadataType { * @param {MetadataTypeMap} upsertResults metadata mapped by their keyField as returned by update/create * @param {MetadataTypeMap} originalMetadata metadata to be updated (contains additioanl fields) * @param {{created: number, updated: number}} createdUpdated counter representing successful creates/updates - * @returns {void} + * @returns {Promise.} - */ - static postDeployTasks(upsertResults, originalMetadata, createdUpdated) {} + static async postDeployTasks(upsertResults, originalMetadata, createdUpdated) {} /** * helper for {@link MetadataType.createREST} @@ -2229,7 +2229,6 @@ class MetadataType { metadata[overrideKeyField || this.definition.keyField] = customerKey; const soapType = this.definition.soapType || this.definition.type; try { - // @ts-expect-error - wrong jsdoc in SFMC-SDK await this.client.soap.delete(Util.capitalizeFirstLetter(soapType), metadata, null); if (!handleOutside) { Util.logger.info(` - deleted ${this.definition.type}: ${customerKey}`); diff --git a/lib/metadataTypes/Role.js b/lib/metadataTypes/Role.js index ec13757ad..336868471 100644 --- a/lib/metadataTypes/Role.js +++ b/lib/metadataTypes/Role.js @@ -169,13 +169,15 @@ class Role extends MetadataType { } if (!metadata) { try { - metadata = await this.readBUMetadataForType( - File.normalizePath([ - this.properties.directories.retrieve, - this.buObject.credential, - Util.parentBuName, - ]), - true + metadata = ( + await this.readBUMetadataForType( + File.normalizePath([ + this.properties.directories.retrieve, + this.buObject.credential, + Util.parentBuName, + ]), + true + ) ).role; } catch (ex) { Util.logger.error(ex.message); diff --git a/lib/metadataTypes/SenderProfile.js b/lib/metadataTypes/SenderProfile.js index 477d67174..f8784a7b4 100644 --- a/lib/metadataTypes/SenderProfile.js +++ b/lib/metadataTypes/SenderProfile.js @@ -161,6 +161,7 @@ class SenderProfile extends MetadataType { if (!changes) { const ex = new Error('No changes made to the code.'); + // @ts-expect-error custom error object ex.code = 200; throw ex; } diff --git a/lib/metadataTypes/TransactionalEmail.js b/lib/metadataTypes/TransactionalEmail.js index 43920b28b..53920071d 100644 --- a/lib/metadataTypes/TransactionalEmail.js +++ b/lib/metadataTypes/TransactionalEmail.js @@ -117,9 +117,9 @@ class TransactionalEmail extends TransactionalMessage { /** * Gets executed after deployment of metadata type * - * @returns {void} + * @returns {Promise.} - */ - static postDeployTasks() { + static async postDeployTasks() { if (this._createdJourneyKeys?.length) { Util.logger.warn( `Please download related journeys via: mcdev r ${this.buObject.credential}/${ diff --git a/lib/metadataTypes/TriggeredSend.js b/lib/metadataTypes/TriggeredSend.js index e09cc6816..8cc9d1768 100644 --- a/lib/metadataTypes/TriggeredSend.js +++ b/lib/metadataTypes/TriggeredSend.js @@ -544,6 +544,7 @@ class TriggeredSend extends MetadataType { if (!changes) { const ex = new Error('No changes made to the code.'); + // @ts-expect-error custom error object ex.code = 200; throw ex; } diff --git a/lib/metadataTypes/User.js b/lib/metadataTypes/User.js index 4cbd47d3e..c4343fb75 100644 --- a/lib/metadataTypes/User.js +++ b/lib/metadataTypes/User.js @@ -340,7 +340,6 @@ class User extends MetadataType { if (configs.length > 0) { Util.logger.info('Deploying: BU assignment changes'); // run update - // @ts-expect-error bad jsodc in SFMC-SDK const buResponse = await this.client.soap.configure('AccountUser', configs); // process response if (buResponse.OverallStatus === 'OK') { @@ -745,6 +744,7 @@ class User extends MetadataType { installedPackage: 0, }; for (const id in savedMetadata) { + /** @typedef {UserDocument} */ const item = savedMetadata[id]; if (item.c__type === 'Installed Package') { counter.installedPackage++; @@ -974,13 +974,15 @@ class User extends MetadataType { if (!metadata) { // load users from disk if document was called directly and not part of a retrieve try { - metadata = await this.readBUMetadataForType( - File.normalizePath([ - this.properties.directories.retrieve, - this.buObject.credential, - Util.parentBuName, - ]), - true + metadata = ( + await this.readBUMetadataForType( + File.normalizePath([ + this.properties.directories.retrieve, + this.buObject.credential, + Util.parentBuName, + ]), + true + ) ).user; } catch (ex) { Util.logger.error(ex.message); @@ -1015,7 +1017,9 @@ class User extends MetadataType { } const defaultBUName = this._getBuName(user.DefaultBusinessUnit); const LastSuccessfulLogin = user.LastSuccessfulLogin.split('.')[0]; + users.push({ + ...user, // keep that here to satisfy the type TYPE: user.c__type, UserID: user.UserID, AccountUserID: user.c__AccountUserID, @@ -1023,13 +1027,13 @@ class User extends MetadataType { Name: user.Name, Email: user.Email, NotificationEmailAddress: user.NotificationEmailAddress, - ActiveFlag: user.ActiveFlag === true ? '✓' : '-', - IsLocked: user.IsLocked === true ? '✓' : '-', - IsAPIUser: user.IsAPIUser === true ? '✓' : '-', - MustChangePassword: user.MustChangePassword === true ? '✓' : '-', - DefaultBusinessUnit: defaultBUName, - AssociatedBus: associatedBus, - Roles: roles, + ActiveFlagDocs: user.ActiveFlag === true ? '✓' : '-', + IsLockedDocs: user.IsLocked === true ? '✓' : '-', + IsAPIUserDocs: user.IsAPIUser === true ? '✓' : '-', + MustChangePasswordDocs: user.MustChangePassword === true ? '✓' : '-', + DefaultBusinessUnitDocs: defaultBUName, + AssociatedBusDocs: associatedBus, + RolesDocs: roles, LastSuccessfulLogin: user.LastSuccessfulLogin ? // on create & update, LastSuccessfulLogin often gets overwritten with the current date LastSuccessfulLogin === user.CreatedDate.split('.')[0] || @@ -1041,39 +1045,39 @@ class User extends MetadataType { ModifiedDate: user.ModifiedDate ? user.ModifiedDate.split('T').join(' ') : 'n/a', ModifiedBy: user.Client.ModifiedBy || 'n/a', TimeZoneName: user.c__TimeZoneName.slice(1, 10), - LocaleCode: user.c__LocaleCode, + c__LocaleCode: user.c__LocaleCode, }); } users.sort((a, b) => (a.Name < b.Name ? -1 : a.Name > b.Name ? 1 : 0)); const columnsToPrint = [ ['Name', 'Name'], ['Last successful Login', 'LastSuccessfulLogin'], - ['Active', 'ActiveFlag'], - ['Access Locked out', 'IsLocked'], - ['API User', 'IsAPIUser'], - ['Must change PW', 'MustChangePassword'], - ['Default BU', 'DefaultBusinessUnit'], - ['BU Access', 'AssociatedBus'], - ['Roles', 'Roles'], + ['Active', 'ActiveFlagDocs'], + ['Access Locked out', 'IsLockedDocs'], + ['API User', 'IsAPIUserDocs'], + ['Must change PW', 'MustChangePasswordDocs'], + ['Default BU', 'DefaultBusinessUnitDocs'], + ['BU Access', 'AssociatedBusDocs'], + ['Roles', 'RolesDocs'], ['Login', 'UserID'], ['ID', 'AccountUserID'], ['Key', 'CustomerKey'], ['E-Mail', 'Email'], ['Notification E-Mail', 'NotificationEmailAddress'], ['Timezone', 'TimeZoneName'], - ['SFMC Locale', 'LocaleCode'], + ['SFMC Locale', 'c__LocaleCode'], ['Modified Date', 'ModifiedDate'], ['Modified By', 'ModifiedBy'], ['Created Date', 'CreatedDate'], ]; let output = `# User Overview - ${this.buObject.credential}`; output += this._generateDocMd( - users.filter((user) => user.TYPE === 'User' && user.ActiveFlag === '✓'), + users.filter((user) => user.TYPE === 'User' && user.ActiveFlagDocs === '✓'), 'User', columnsToPrint ); output += this._generateDocMd( - users.filter((user) => user.TYPE === 'User' && user.ActiveFlag === '-'), + users.filter((user) => user.TYPE === 'User' && user.ActiveFlagDocs === '-'), 'Inactivated User', columnsToPrint ); @@ -1124,7 +1128,7 @@ class User extends MetadataType { /** * manages post retrieve steps * - * @param {MetadataTypeItem} metadata a single item + * @param {UserDocument} metadata a single item * @returns {MetadataTypeItem | void} a single item */ static postRetrieveTasks(metadata) { diff --git a/lib/metadataTypes/definitions/Event.definition.js b/lib/metadataTypes/definitions/Event.definition.js index 65f93e775..ca2618862 100644 --- a/lib/metadataTypes/definitions/Event.definition.js +++ b/lib/metadataTypes/definitions/Event.definition.js @@ -279,12 +279,12 @@ export default { // retrieving: false, // template: false, // }, - // 'configurationArguments.unconfigured': { - // isCreateable: false, - // isUpdateable: false, - // retrieving: false, - // template: false, - // }, + 'configurationArguments.unconfigured': { + isCreateable: false, + isUpdateable: false, + retrieving: false, + template: false, + }, // 'configurationArguments.version': { // isCreateable: false, // isUpdateable: false, @@ -928,7 +928,7 @@ export default { template: false, }, 'schema.name': { - isCreateable: false, + isCreateable: true, isUpdateable: true, retrieving: false, template: false, @@ -963,7 +963,7 @@ export default { retrieving: true, template: true, }, - r__dataExtension_CustomerKey: { + r__dataExtension_key: { isCreateable: false, isUpdateable: false, retrieving: true, diff --git a/lib/util/auth.js b/lib/util/auth.js index 347a1d6c8..e87404e38 100644 --- a/lib/util/auth.js +++ b/lib/util/auth.js @@ -42,7 +42,6 @@ const Auth = { const sdk = setupSDK(credential, authObject); try { // check credentials to allow clear log output and stop execution - // @ts-expect-error - params are optional but jsdoc in SFMC-SDK says otherwise const test = await sdk.auth.getAccessToken(); if (test.error) { throw new Error(test.error_description); diff --git a/lib/util/cli.js b/lib/util/cli.js index 1a9f89f69..6b9e66caf 100644 --- a/lib/util/cli.js +++ b/lib/util/cli.js @@ -557,7 +557,6 @@ const Cli = { return 0; }); // add end-of-list marker - // @ts-expect-error type checking this push() makes things very complicated... typeChoices.push(new inquirer.Separator(' ==== ')); responses = await inquirer.prompt([ { diff --git a/lib/util/devops.js b/lib/util/devops.js index 8d47450e3..a0100ceb5 100644 --- a/lib/util/devops.js +++ b/lib/util/devops.js @@ -74,7 +74,6 @@ const DevOps = { name: commit.date + ' / ' + commit.message + ' / ' + commit.author_name, value: commit.hash, })); - // @ts-expect-error type checking this push() makes things very complicated... display.push(new inquirer.Separator(' ==== ')); const responses = await inquirer.prompt([ @@ -99,6 +98,7 @@ const DevOps = { /** * @type {DeltaPkgItem[]} */ + // @ts-expect-error TODO LATER const delta = (await git.diffSummary([range])).files // populate additional info for all changed files .map((/** @type {DeltaPkgItem} */ file) => { @@ -317,7 +317,7 @@ const DevOps = { const copied = delta .filter((file) => !file.file.endsWith('.md')) // filter documentation files .map((file) => - File.copyFile( + File.copyFileSimple( file.file, path .normalize(file.file) @@ -561,7 +561,6 @@ const DevOps = { for (let i = 1; i < tabled.length; i++) { for (let field of tabled[i]) { if (field !== '') { - // @ts-expect-error bad typing in jsonToTable field = field === true ? '✓' : field === false ? '✗' : field; output += `| ${field} `; } diff --git a/lib/util/file.js b/lib/util/file.js index a16e54326..bb90253a7 100644 --- a/lib/util/file.js +++ b/lib/util/file.js @@ -1,6 +1,4 @@ -/* eslint-disable no-control-regex */ 'use strict'; - import fs from 'fs-extra'; import path from 'node:path'; @@ -50,7 +48,7 @@ const File = { * @param {string} to - full filepath including name where file should go * @returns {Promise.<{status:'ok'|'skipped'|'failed', statusMessage:string, file:string}>} - results object */ - async copyFile(from, to) { + async copyFileSimple(from, to) { try { await fs.copy(from, to); return { status: 'ok', statusMessage: null, file: from }; @@ -321,6 +319,7 @@ const File = { // save prettier errror into log file // Note: we have to filter color codes from prettier's error message before saving it to file + /* eslint-disable no-control-regex */ this.writeToFile( directory, filename + '.error', @@ -331,6 +330,7 @@ const File = { '' )}` ); + /* eslint-enable no-control-regex */ formatted = content; } @@ -371,7 +371,7 @@ const File = { * @param {string | string[]} directory directory where the file is stored * @param {string} filename name of the file without '.json' ending * @param {boolean} cleanPath filters illegal chars if true - * @returns {Promise. | object | void} Promise or JSON object depending on if async or not; void on error + * @returns {Promise.} Promise or JSON object depending on if async or not; void on error */ readJSONFile: async function (directory, filename, cleanPath) { try { @@ -409,11 +409,8 @@ const File = { try { directory = this.filterIllegalPathChars(this.normalizePath(directory)); filename = this.filterIllegalFilenames(filename); - // @ts-expect-error - somehow, the declared type does not allow for encoding to be passed in as a string, despite that working and being stated in the docs. - return await fs.readFile( - path.join(directory, filename + '.' + filetype), - encoding || 'utf8' - ); + // @ts-expect-error somehow, the typing for fs-extra is not correct + return fs.readFile(path.join(directory, filename + '.' + filetype), encoding || 'utf8'); } catch (ex) { Util.logger.debug('File.readFilteredFilename:: error | ' + ex.message); } @@ -574,6 +571,6 @@ const File = { } }, }; -const FileFs = { ...fs, ...File }; +const FileFs = Object.assign(fs, File); export default FileFs; diff --git a/lib/util/replaceContentBlockReference.js b/lib/util/replaceContentBlockReference.js index 8ce9f30e7..9153441ad 100644 --- a/lib/util/replaceContentBlockReference.js +++ b/lib/util/replaceContentBlockReference.js @@ -93,6 +93,7 @@ export default class ReplaceContentBlockReference { static replaceReference(str, parentName, fromList, to) { if (!str) { const ex = new Error('No string provided'); + // @ts-expect-error custom error object ex.code = 200; throw ex; } @@ -133,6 +134,7 @@ export default class ReplaceContentBlockReference { } if (!changes) { const ex = new Error('No changes made to the code.'); + // @ts-expect-error custom error object ex.code = 200; throw ex; } @@ -158,7 +160,7 @@ export default class ReplaceContentBlockReference { break; } case 'name': { - if (isSsjs) { + if (isSsjs && typeof identifier === 'string') { identifier = identifier.replaceAll('\\\\', '\\'); } reference = ReplaceContentBlockReference.assetCacheMap.name[identifier]; diff --git a/package-lock.json b/package-lock.json index 5f578c061..e1b5cda4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mcdev", - "version": "7.0.3", + "version": "7.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mcdev", - "version": "7.0.3", + "version": "7.0.4", "license": "MIT", "dependencies": { "beauty-amp-core2": "0.4.9", @@ -23,7 +23,7 @@ "prettier": "3.3.2", "prettier-plugin-sql": "0.18.0", "semver": "7.6.0", - "sfmc-sdk": "2.0.1", + "sfmc-sdk": "2.1.1", "simple-git": "3.25.0", "toposort": "2.0.2", "update-notifier": "7.0.0", @@ -35,8 +35,10 @@ }, "devDependencies": { "@eslint/js": "9.6.0", - "@types/mocha": "10.0.6", + "@types/fs-extra": "11.0.4", + "@types/mocha": "10.0.7", "@types/node": "20.14.9", + "@types/yargs": "17.0.32", "assert": "2.1.0", "axios-mock-adapter": "1.22.0", "c8": "10.0.0", @@ -45,19 +47,19 @@ "eslint": "9.6.0", "eslint-config-prettier": "9.1.0", "eslint-config-ssjs": "2.0.0", - "eslint-plugin-jsdoc": "48.2.7", + "eslint-plugin-jsdoc": "48.5.2", "eslint-plugin-mocha": "10.4.3", "eslint-plugin-prettier": "5.1.2", - "eslint-plugin-unicorn": "53.0.0", + "eslint-plugin-unicorn": "54.0.0", "fast-xml-parser": "4.4.0", - "globals": "15.6.0", + "globals": "15.8.0", "husky": "9.0.11", "lint-staged": "15.2.7", - "mocha": "10.4.0", + "mocha": "10.6.0", "mock-fs": "5.2.0", "npm-run-all": "4.1.5", "prettier-eslint": "16.3.0", - "typescript": "5.4.5" + "typescript": "5.5.3" }, "engines": { "node": ">=18.18.2" @@ -755,6 +757,16 @@ "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", "dev": true }, + "node_modules/@types/fs-extra": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", + "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", + "dev": true, + "dependencies": { + "@types/jsonfile": "*", + "@types/node": "*" + } + }, "node_modules/@types/http-cache-semantics": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz", @@ -772,10 +784,19 @@ "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "dev": true }, + "node_modules/@types/jsonfile": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.4.tgz", + "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/mocha": { - "version": "10.0.6", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.6.tgz", - "integrity": "sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==", + "version": "10.0.7", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.7.tgz", + "integrity": "sha512-GN8yJ1mNTcFcah/wKEFIJckJx9iJLoMSzWcfRRuxz/Jk+U6KQNnml+etbtxFK8lPjzOw3zp4Ha/kjSst9fsHYw==", "dev": true }, "node_modules/@types/node": { @@ -798,6 +819,21 @@ "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.5.tgz", "integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==" }, + "node_modules/@types/yargs": { + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, "node_modules/@typescript-eslint/scope-manager": { "version": "6.21.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", @@ -964,9 +1000,9 @@ } }, "node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", "dev": true, "engines": { "node": ">=6" @@ -1123,11 +1159,11 @@ } }, "node_modules/axios": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz", - "integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", + "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", "dependencies": { - "follow-redirects": "^1.15.4", + "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } @@ -2024,9 +2060,9 @@ } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", "dependencies": { "ms": "2.1.2" }, @@ -2138,9 +2174,9 @@ } }, "node_modules/diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", + "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "dev": true, "engines": { "node": ">=0.3.1" @@ -2317,6 +2353,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-module-lexer": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.5.4.tgz", + "integrity": "sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==", + "dev": true + }, "node_modules/es-to-primitive": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", @@ -2444,19 +2486,21 @@ } }, "node_modules/eslint-plugin-jsdoc": { - "version": "48.2.7", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-48.2.7.tgz", - "integrity": "sha512-fYj3roTnkFL9OFFTB129rico8lerC5G8Vp2ZW9SjO9RNWG0exVvI+i/Y8Bpm1ufjR0uvT38xtoab/U0Hp8Ybog==", + "version": "48.5.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-48.5.2.tgz", + "integrity": "sha512-VXBJFviQz30rynlOEQ+dNWLmeopjoAgutUVrWOZwm6Ki4EVDm4XkyIqAV/Zhf7FcDr0AG0aGmRn5FxxCtAF0tA==", "dev": true, "dependencies": { "@es-joy/jsdoccomment": "~0.43.1", "are-docs-informative": "^0.0.2", "comment-parser": "1.4.1", - "debug": "^4.3.4", + "debug": "^4.3.5", "escape-string-regexp": "^4.0.0", "esquery": "^1.5.0", + "parse-imports": "^2.1.0", "semver": "^7.6.2", - "spdx-expression-parse": "^4.0.0" + "spdx-expression-parse": "^4.0.0", + "synckit": "^0.9.0" }, "engines": { "node": ">=18" @@ -2487,6 +2531,22 @@ "spdx-license-ids": "^3.0.0" } }, + "node_modules/eslint-plugin-jsdoc/node_modules/synckit": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.0.tgz", + "integrity": "sha512-7RnqIMq572L8PeEzKeBINYEJDDxpcH8JEgLwUqBd3TkofhFRbkq4QLR0u+36avGAhCRbk2nnmjcW9SE531hPDg==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/eslint-plugin-mocha": { "version": "10.4.3", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.4.3.tgz", @@ -2550,9 +2610,9 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "53.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-53.0.0.tgz", - "integrity": "sha512-kuTcNo9IwwUCfyHGwQFOK/HjJAYzbODHN3wP0PgqbW+jbXqpNWxNVpVhj2tO9SixBwuAdmal8rVcWKBxwFnGuw==", + "version": "54.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-54.0.0.tgz", + "integrity": "sha512-XxYLRiYtAWiAjPv6z4JREby1TAE2byBC7wlh0V4vWDCpccOSU1KovWV//jqPXF6bq3WKxqX9rdjoRQ1EhdmNdQ==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.24.5", @@ -2935,7 +2995,6 @@ "version": "4.4.0", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.0.tgz", "integrity": "sha512-kLY3jFlwIYwBNDojclKsNAC12sfD6NwW74QB2CoNGPvtVxjliYehVunB3HYyNi+n4Tt1dAcgwYvmKF/Z18flqg==", - "dev": true, "funding": [ { "type": "github", @@ -3358,9 +3417,9 @@ } }, "node_modules/globals": { - "version": "15.6.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.6.0.tgz", - "integrity": "sha512-UzcJi88Hw//CurUIRa9Jxb0vgOCcuD/MNjwmXp633cyaRKkCWACkoqHCtfZv43b1kqXGg/fpOa8bwgacCeXsVg==", + "version": "15.8.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.8.0.tgz", + "integrity": "sha512-VZAJ4cewHTExBWDHR6yptdIBlx9YSSZuwojj9Nt5mBRXQzrKakDsVKQ1J63sklLvzAJm0X5+RpO4i3Y2hcOnFw==", "dev": true, "engines": { "node": ">=18" @@ -5281,31 +5340,31 @@ } }, "node_modules/mocha": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.4.0.tgz", - "integrity": "sha512-eqhGB8JKapEYcC4ytX/xrzKforgEc3j1pGlAXVy3eRwrtAy5/nIfT1SvgGzfN0XZZxeLq0aQWkOUAmqIJiv+bA==", - "dev": true, - "dependencies": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "8.1.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.6.0.tgz", + "integrity": "sha512-hxjt4+EEB0SA0ZDygSS015t65lJw/I2yRCS3Ae+SJ5FrbzrXgfYwJr96f0OvIXdj7h4lv/vLCrH3rkiuizFSvw==", + "dev": true, + "dependencies": { + "ansi-colors": "^4.1.3", + "browser-stdout": "^1.3.1", + "chokidar": "^3.5.3", + "debug": "^4.3.5", + "diff": "^5.2.0", + "escape-string-regexp": "^4.0.0", + "find-up": "^5.0.0", + "glob": "^8.1.0", + "he": "^1.2.0", + "js-yaml": "^4.1.0", + "log-symbols": "^4.1.0", + "minimatch": "^5.1.6", + "ms": "^2.1.3", + "serialize-javascript": "^6.0.2", + "strip-json-comments": "^3.1.1", + "supports-color": "^8.1.1", + "workerpool": "^6.5.1", + "yargs": "^16.2.0", + "yargs-parser": "^20.2.9", + "yargs-unparser": "^2.0.0" }, "bin": { "_mocha": "bin/_mocha", @@ -5344,9 +5403,9 @@ } }, "node_modules/mocha/node_modules/minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -5395,9 +5454,9 @@ } }, "node_modules/mocha/node_modules/yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, "engines": { "node": ">=10" @@ -5913,6 +5972,19 @@ "node": ">=6" } }, + "node_modules/parse-imports": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/parse-imports/-/parse-imports-2.1.1.tgz", + "integrity": "sha512-TDT4HqzUiTMO1wJRwg/t/hYk8Wdp3iF/ToMIlAoVQfL1Xs/sTxq1dKWSMjMbQmIarfWKymOyly40+zmPHXMqCA==", + "dev": true, + "dependencies": { + "es-module-lexer": "^1.5.3", + "slashes": "^3.0.12" + }, + "engines": { + "node": ">= 18" + } + }, "node_modules/parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", @@ -6808,9 +6880,9 @@ } }, "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, "dependencies": { "randombytes": "^2.1.0" @@ -6845,54 +6917,19 @@ } }, "node_modules/sfmc-sdk": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/sfmc-sdk/-/sfmc-sdk-2.0.1.tgz", - "integrity": "sha512-lWX6D3X84asvlxUEX4REyuiq0mL25naE3TSANHGq9/xgmRniF3He5cDcHtmRqFRkD4Da6U7xmV8YHVbBE1rXYQ==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/sfmc-sdk/-/sfmc-sdk-2.1.1.tgz", + "integrity": "sha512-mlkQ+KL4jpiWuRu42s4sB0VJtvJHGpEKG/BCsBY/qN0aUI+Kn2rzrzlQq14dcgosEMbhTBeby2xwSJx48AbwDQ==", "dependencies": { - "axios": "^1.5.0", - "fast-xml-parser": "4.2.7", - "p-limit": "4.0.0" + "axios": "^1.7.2", + "fast-xml-parser": "4.4.0", + "p-limit": "5.0.0" }, "engines": { "node": ">=18", "npm": ">=9" } }, - "node_modules/sfmc-sdk/node_modules/fast-xml-parser": { - "version": "4.2.7", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.7.tgz", - "integrity": "sha512-J8r6BriSLO1uj2miOk1NW0YVm8AGOOu3Si2HQp/cSmo6EA4m3fcwu2WKjJ4RK9wMLBtg69y1kS8baDiQBR41Ig==", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/sfmc-sdk/node_modules/p-limit": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", - "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", - "dependencies": { - "yocto-queue": "^1.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -6952,22 +6989,6 @@ "url": "https://github.com/steveukx/git-js?sponsor=1" } }, - "node_modules/simple-git/node_modules/debug": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", - "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, "node_modules/simple-swizzle": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", @@ -6990,6 +7011,12 @@ "node": ">=8" } }, + "node_modules/slashes": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/slashes/-/slashes-3.0.12.tgz", + "integrity": "sha512-Q9VME8WyGkc7pJf6QEkj3wE+2CnvZMI+XJhwdTPR8Z/kWQRXi7boAWLDibRPyHRTUTPx5FaU7MsyrjI3yLB4HA==", + "dev": true + }, "node_modules/slice-ansi": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", @@ -7489,9 +7516,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -7868,9 +7895,9 @@ } }, "node_modules/workerpool": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", - "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", + "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", "dev": true }, "node_modules/wrap-ansi": { diff --git a/package.json b/package.json index acacaf2d2..c32ecf599 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcdev", - "version": "7.0.3", + "version": "7.0.4", "description": "Accenture Salesforce Marketing Cloud DevTools", "author": "Accenture: joern.berkefeld, douglas.midgley, robert.zimmermann, maciej.barnas", "license": "MIT", @@ -54,7 +54,7 @@ "debug": "node --nolazy --inspect-brk=9229 lib/cli.js", "lint:fix": "eslint --fix lib/**/*.js types/*.js test/**/*.js", "lint": "eslint lib/**/*.js types/*.js test/**/*.js", - "lint-ts": "tsc -p jsconfig.json --maxNodeModuleJsDepth 1 --noEmit", + "lint-ts": "tsc -p tsconfig.npmScripts.json", "prepare": "husky || true", "lint-and-test": "run-s lint test", "test": "mocha --reporter-option maxDiffSize=25000", @@ -78,7 +78,7 @@ "prettier": "3.3.2", "prettier-plugin-sql": "0.18.0", "semver": "7.6.0", - "sfmc-sdk": "2.0.1", + "sfmc-sdk": "2.1.1", "simple-git": "3.25.0", "toposort": "2.0.2", "update-notifier": "7.0.0", @@ -87,8 +87,10 @@ }, "devDependencies": { "@eslint/js": "9.6.0", - "@types/mocha": "10.0.6", + "@types/fs-extra": "11.0.4", + "@types/mocha": "10.0.7", "@types/node": "20.14.9", + "@types/yargs": "17.0.32", "assert": "2.1.0", "axios-mock-adapter": "1.22.0", "c8": "10.0.0", @@ -97,19 +99,19 @@ "eslint": "9.6.0", "eslint-config-prettier": "9.1.0", "eslint-config-ssjs": "2.0.0", - "eslint-plugin-jsdoc": "48.2.7", + "eslint-plugin-jsdoc": "48.5.2", "eslint-plugin-mocha": "10.4.3", "eslint-plugin-prettier": "5.1.2", - "eslint-plugin-unicorn": "53.0.0", + "eslint-plugin-unicorn": "54.0.0", "fast-xml-parser": "4.4.0", - "globals": "15.6.0", + "globals": "15.8.0", "husky": "9.0.11", "lint-staged": "15.2.7", - "mocha": "10.4.0", + "mocha": "10.6.0", "mock-fs": "5.2.0", "npm-run-all": "4.1.5", "prettier-eslint": "16.3.0", - "typescript": "5.4.5" + "typescript": "5.5.3" }, "optionalDependencies": { "fsevents": "*" diff --git a/test/general.test.js b/test/general.test.js index 9b099c2a9..34a3c571b 100644 --- a/test/general.test.js +++ b/test/general.test.js @@ -461,8 +461,8 @@ describe('GENERAL', () => { ); assert.equal( Object.keys(result[buName]['dataExtension']).length, - 5, - 'retrieve should have returned 5 dataExtension' + 7, + 'retrieve should have returned 7 dataExtension' ); assert.equal( Object.keys(result[buName]['dataExtract']).length, @@ -1191,6 +1191,24 @@ describe('GENERAL', () => { ); }); }); + + describe('Delete --metadata ~~~', () => { + it('Should delete the item', async () => { + const argvMetadata = [ + 'asset:testExisting_asset', + 'automation:testExisting_automation', + 'journey:testExisting_journey_Quicksend/1', + 'journey:testExisting_journey_Multistep/1', + ]; + const typeKeyCombo = handler.metadataToTypeKey(argvMetadata); + // WHEN + const isDeleted = await handler.deleteByKey('testInstance/testBU', typeKeyCombo); + // THEN + assert.equal(process.exitCode, 0, 'deleteByKey should not have thrown an error'); + assert.equal(isDeleted, true, 'deleteByKey should have returned true'); + return; + }); + }); }); describe('without --metadata ================', () => { diff --git a/test/mockRoot/.mcdevrc.json b/test/mockRoot/.mcdevrc.json index 8d5f6f305..5890deff0 100644 --- a/test/mockRoot/.mcdevrc.json +++ b/test/mockRoot/.mcdevrc.json @@ -100,5 +100,5 @@ "verification" ] }, - "version": "7.0.3" + "version": "7.0.4" } diff --git a/test/mockRoot/deploy/testInstance/testBU/event/testExisting_event.event-meta.json b/test/mockRoot/deploy/testInstance/testBU/event/testExisting_event.event-meta.json new file mode 100644 index 000000000..992b65256 --- /dev/null +++ b/test/mockRoot/deploy/testInstance/testBU/event/testExisting_event.event-meta.json @@ -0,0 +1,201 @@ +{ + "type": "APIEvent", + "name": "testExisting_event", + "description": "updated on deploy", + "mode": "Production", + "eventDefinitionKey": "testExisting_event", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": 18, + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "defaultValue": "GetDate()", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "AddedField", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "isVisibleInPicker": true, + "r__dataExtension_key": "testExisting_event - 2024-07-05T080154625" +} diff --git a/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withExistingDE.event-meta.json b/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withExistingDE.event-meta.json new file mode 100644 index 000000000..2c5bddd7a --- /dev/null +++ b/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withExistingDE.event-meta.json @@ -0,0 +1,232 @@ +{ + "type": "APIEvent", + "name": "testNew_event_withExistingDE", + "description": "created on deploy", + "createdDate": "0001-01-01T00:00:00", + "createdBy": 0, + "modifiedDate": "0001-01-01T00:00:00", + "modifiedBy": 0, + "eventDefinitionKey": "testNew_event_withExistingDE", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "arguments": { + "serializedObjectType": 11 + }, + "metaData": {}, + "interactionCount": 0, + "isVisibleInPicker": true, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000", + "r__dataExtension_key": "testExisting_event - 2024-07-05T080154625" +} diff --git a/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withSchema.event-meta.json b/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withSchema.event-meta.json new file mode 100644 index 000000000..5fec35901 --- /dev/null +++ b/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withSchema.event-meta.json @@ -0,0 +1,193 @@ +{ + "type": "APIEvent", + "name": "testNew_event_withSchema", + "description": "created on deploy", + "mode": "Production", + "eventDefinitionKey": "testNew_event_withSchema", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": 18, + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "defaultValue": "GetDate()", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "isVisibleInPicker": true +} diff --git a/test/resources/9999999/dataExtension/retrieve-CustomerKey=testNew_event_withSchema-response.xml b/test/resources/9999999/dataExtension/retrieve-CustomerKey=testNew_event_withSchema-response.xml new file mode 100644 index 000000000..de023bf46 --- /dev/null +++ b/test/resources/9999999/dataExtension/retrieve-CustomerKey=testNew_event_withSchema-response.xml @@ -0,0 +1,50 @@ + + + + RetrieveResponse + urn:uuid:c198cc12-c34c-4d1d-90b0-5b785a342efc + urn:uuid:a0506b59-1847-4405-8231-6a15e26bbcc9 + http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous + + + 2022-04-21T19:21:50Z + 2022-04-21T19:26:50Z + + + + + + OK + d175de6e-c8e4-4f5d-9c1d-ad64426ff4b7 + + + 2024-07-05T08:01:54.803 + 2024-07-05T08:01:58.923 + 4342972c-a43c-ef11-a5c8-5cba2c702db8 + testNew_event_withSchema + testNew_event_withSchema + + true + false + + + + ContactId + + + _SubscriberKey + + false + false + false + + 2 + + + + diff --git a/test/resources/9999999/dataExtension/retrieve-createdViaEvent-response.xml b/test/resources/9999999/dataExtension/retrieve-createdViaEvent-response.xml new file mode 100644 index 000000000..46c69fe82 --- /dev/null +++ b/test/resources/9999999/dataExtension/retrieve-createdViaEvent-response.xml @@ -0,0 +1,50 @@ + + + + RetrieveResponse + urn:uuid:c198cc12-c34c-4d1d-90b0-5b785a342efc + urn:uuid:a0506b59-1847-4405-8231-6a15e26bbcc9 + http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous + + + 2022-04-21T19:21:50Z + 2022-04-21T19:26:50Z + + + + + + OK + d175de6e-c8e4-4f5d-9c1d-ad64426ff4b7 + + + 2024-07-05T08:01:54.803 + 2024-07-05T08:01:58.923 + 4342972c-a43c-ef11-a5c8-5cba2c702db8 + 0A1730F7-D7E3-4F30-8279-575BDB38D24D + testNew_event_withSchema - 2024-07-08T014814443 + + true + false + + + + ContactId + + + _SubscriberKey + + false + false + false + + 2 + + + + diff --git a/test/resources/9999999/dataExtension/retrieve-response.xml b/test/resources/9999999/dataExtension/retrieve-response.xml index 8e1c6d51e..69cc69e41 100644 --- a/test/resources/9999999/dataExtension/retrieve-response.xml +++ b/test/resources/9999999/dataExtension/retrieve-response.xml @@ -142,6 +142,54 @@ 2 + + + 2024-07-05T08:01:54.803 + 2024-07-05T08:01:58.923 + f2cc2b21-d73a-ef11-a5c8-5cba2c702db8 + testExisting_event - 2024-07-05T080154625 + testExisting_event - 2024-07-05T080154625 + + true + false + + + + ContactId + + + _SubscriberKey + + false + false + false + + 2 + + + + 2024-07-05T08:01:54.803 + 2024-07-05T08:01:58.923 + 4342972c-a43c-ef11-a5c8-5cba2c702db8 + testNew_event_withSchema - 2024-07-08T014814443 + testNew_event_withSchema - 2024-07-08T014814443 + + true + false + + + + ContactId + + + _SubscriberKey + + false + false + false + + 2 + diff --git a/test/resources/9999999/dataExtension/retrieve_event_withSchema-expected.json b/test/resources/9999999/dataExtension/retrieve_event_withSchema-expected.json new file mode 100644 index 000000000..00350d1a1 --- /dev/null +++ b/test/resources/9999999/dataExtension/retrieve_event_withSchema-expected.json @@ -0,0 +1,219 @@ +{ + "CustomerKey": "testNew_event_withSchema", + "Name": "testNew_event_withSchema", + "Description": "", + "IsSendable": true, + "IsTestable": false, + "SendableDataExtensionField": { + "Name": "ContactId" + }, + "SendableSubscriberField": { + "Name": "Subscriber Key" + }, + "Fields": [ + { + "Name": "ContactId", + "DefaultValue": "", + "MaxLength": 18, + "IsRequired": true, + "IsPrimaryKey": true, + "FieldType": "Text" + }, + { + "Name": "Type", + "DefaultValue": "", + "MaxLength": 50, + "IsRequired": true, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "Status", + "DefaultValue": "", + "MaxLength": 50, + "IsRequired": true, + "IsPrimaryKey": true, + "FieldType": "Text" + }, + { + "Name": "Respondent", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "FirstName", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "LastName", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "PreferredLanguage", + "DefaultValue": "", + "MaxLength": 50, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "TouchPoint", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "Datestamp", + "DefaultValue": "GetDate()", + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Date" + }, + { + "Name": "StartDate", + "DefaultValue": "", + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Date" + }, + { + "Name": "EndDate", + "DefaultValue": "", + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Date" + }, + { + "Name": "BroadcastedNotificationDate", + "DefaultValue": "", + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Date" + }, + { + "Name": "FirstReminderDate", + "DefaultValue": "", + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Date" + }, + { + "Name": "SecondReminderDate", + "DefaultValue": "", + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Date" + }, + { + "Name": "Title", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "DisplayName", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "Text", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "Description", + "DefaultValue": "", + "MaxLength": 4000, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "Channel", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "FirstReminderChannel", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "SecondReminderChannel", + "DefaultValue": "", + "MaxLength": 256, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "Email", + "DefaultValue": "", + "MaxLength": 254, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "EmailAddress" + }, + { + "Name": "ArticleOrTaskID", + "DefaultValue": "", + "MaxLength": 18, + "IsRequired": true, + "IsPrimaryKey": true, + "FieldType": "Text" + }, + { + "Name": "Points", + "DefaultValue": "", + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Number" + }, + { + "Name": "TaskType", + "DefaultValue": "", + "MaxLength": 255, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + }, + { + "Name": "TaskArea", + "DefaultValue": "", + "MaxLength": 255, + "IsRequired": false, + "IsPrimaryKey": false, + "FieldType": "Text" + } + ], + "r__folder_ContentType": "dataextension", + "r__folder_Path": "Data Extensions", + "c__retentionPolicy": "none" +} diff --git a/test/resources/9999999/dataExtension/update-afterCreatedViaEvent-response.xml b/test/resources/9999999/dataExtension/update-afterCreatedViaEvent-response.xml new file mode 100644 index 000000000..f342e1357 --- /dev/null +++ b/test/resources/9999999/dataExtension/update-afterCreatedViaEvent-response.xml @@ -0,0 +1,55 @@ + + + + UpdateResponse + urn:uuid:994e213d-1125-450d-b187-32e3870147d1 + urn:uuid:f1fc86ef-c0c8-4c17-a901-a15fc2631f76 + http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous + + + 2022-04-26T20:49:03Z + 2022-04-26T20:54:03Z + + + + + + + OK + Data Extension updated. + 0 + + + 2024-07-05T08:01:54.803 + 2024-07-05T08:01:58.923 + 4342972c-a43c-ef11-a5c8-5cba2c702db8 + testNew_event_withSchema + testNew_event_withSchema + + true + false + + + + ContactId + + + _SubscriberKey + + false + false + false + + 2 + + + dbfedcb6-a809-4101-b314-a7b920c9fb1e + OK + + + diff --git a/test/resources/9999999/dataExtension/update-callout-afterCreatedViaEvent-expected.xml b/test/resources/9999999/dataExtension/update-callout-afterCreatedViaEvent-expected.xml new file mode 100644 index 000000000..b9ba22225 --- /dev/null +++ b/test/resources/9999999/dataExtension/update-callout-afterCreatedViaEvent-expected.xml @@ -0,0 +1 @@ +4342972c-a43c-ef11-a5c8-5cba2c702db8testNew_event_withSchematestNew_event_withSchematruefalseContactId_SubscriberKey2
9999999
\ No newline at end of file diff --git a/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_event_withSchema-response.xml b/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_event_withSchema-response.xml new file mode 100644 index 000000000..9f1ab63ce --- /dev/null +++ b/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_event_withSchema-response.xml @@ -0,0 +1,461 @@ + + + + RetrieveResponse + urn:uuid:6d2f81c8-80ab-44d5-8664-206753e7ac8d + urn:uuid:a7354389-079e-4844-93b5-af6b7bf1d535 + http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous + + + 2022-04-21T19:21:52Z + 2022-04-21T19:26:52Z + + + + + + OK + cfe51e71-6a2b-4cb4-aecd-3777076d63bc + + + eb18160e-ec0f-46ca-b59a-1287dbeb7172 + [testNew_event_withSchema].[DisplayName] + DisplayName + + 256 + false + 15 + false + Text + + + + testNew_event_withSchema + + + + + ae0a3a3e-e81a-4b13-9a70-12ff6903c901 + [testNew_event_withSchema].[PreferredLanguage] + PreferredLanguage + + 50 + false + 6 + false + Text + + + + testNew_event_withSchema + + + + + 3d39db8b-b561-4227-9051-1c201c79033e + [testNew_event_withSchema].[FirstReminderDate] + FirstReminderDate + + false + 12 + false + Date + + + + testNew_event_withSchema + + + + + 4eadce50-f552-41e5-8318-2fd367f043b9 + [testNew_event_withSchema].[Description] + Description + + 4000 + false + 17 + false + Text + + + + testNew_event_withSchema + + + + + d2826773-6965-4e78-9a05-3008ea45a104 + [testNew_event_withSchema].[EndDate] + EndDate + + false + 10 + false + Date + + + + testNew_event_withSchema + + + + + 3bb8fa91-5881-4ca1-ac09-30604ba0b9be + [testNew_event_withSchema].[TaskArea] + TaskArea + + 255 + false + 25 + false + Text + + + + testNew_event_withSchema + + + + + 721b938f-67ab-4d82-bb1c-33add4ec1533 + [testNew_event_withSchema].[ContactId] + ContactId + + 18 + true + 0 + true + Text + + + + testNew_event_withSchema + + + + + 5ccee5f6-f282-4741-899d-400b05c57425 + [testNew_event_withSchema].[FirstName] + FirstName + + 256 + false + 4 + false + Text + + + + testNew_event_withSchema + + + + + d0ec626c-7cba-492b-abd0-48484e0c18bb + [testNew_event_withSchema].[Type] + Type + + 50 + true + 1 + false + Text + + + + testNew_event_withSchema + + + + + 0d49e8cf-cce9-4323-9b17-52f2366f9fc2 + [testNew_event_withSchema].[Datestamp] + Datestamp + GetDate() + false + 8 + false + Date + + + + testNew_event_withSchema + + + + + c44861f7-bac3-4b32-a5f8-744f67a66aaa + [testNew_event_withSchema].[Email] + Email + + 254 + false + 21 + false + EmailAddress + + + + testNew_event_withSchema + + + + + c78d6054-5ce0-4438-a7ad-76b375224033 + [testNew_event_withSchema].[Status] + Status + + 50 + true + 2 + true + Text + + + + testNew_event_withSchema + + + + + 541b063f-7c25-45b2-af53-7fdafbe0ee12 + [testNew_event_withSchema].[BroadcastedNotificationDate] + BroadcastedNotificationDate + + false + 11 + false + Date + + + + testNew_event_withSchema + + + + + ff54519e-931b-432f-9083-861213fa9460 + [testNew_event_withSchema].[TouchPoint] + TouchPoint + + 256 + false + 7 + false + Text + + + + testNew_event_withSchema + + + + + f0a58625-0b62-496f-bea9-9d2722e50864 + [testNew_event_withSchema].[Points] + Points + + false + 23 + false + Number + + + + testNew_event_withSchema + + + + + 43f69e09-9f47-477f-95b6-a9b9b8111f5e + [testNew_event_withSchema].[Title] + Title + + 256 + false + 14 + false + Text + + + + testNew_event_withSchema + + + + + e9cd8c9f-39b0-4c93-8fce-aa3f0ca0d310 + [testNew_event_withSchema].[SecondReminderDate] + SecondReminderDate + + false + 13 + false + Date + + + + testNew_event_withSchema + + + + + 403e68ee-f203-42e1-ac48-af18def0cccd + [testNew_event_withSchema].[TaskType] + TaskType + + 255 + false + 24 + false + Text + + + + testNew_event_withSchema + + + + + 555ad728-f99a-4e13-a992-b70b1ffe36a2 + [testNew_event_withSchema].[Respondent] + Respondent + + 256 + false + 3 + false + Text + + + + testNew_event_withSchema + + + + + 95948e52-e8d0-4908-98a9-cc34cd84233e + [testNew_event_withSchema].[LastName] + LastName + + 256 + false + 5 + false + Text + + + + testNew_event_withSchema + + + + + 7976b904-1ed5-46f0-a524-cd1a787bfb5e + [testNew_event_withSchema].[FirstReminderChannel] + FirstReminderChannel + + 256 + false + 19 + false + Text + + + + testNew_event_withSchema + + + + + ed225fdd-1aff-401d-906e-cd59b4d86fe2 + [testNew_event_withSchema].[SecondReminderChannel] + SecondReminderChannel + + 256 + false + 20 + false + Text + + + + testNew_event_withSchema + + + + + 30222d00-35c5-46e8-ab41-d3febd909eed + [testNew_event_withSchema].[ArticleOrTaskID] + ArticleOrTaskID + + 18 + true + 22 + true + Text + + + + testNew_event_withSchema + + + + + 8c79306f-4f3a-4925-bd48-e6c6905c157c + [testNew_event_withSchema].[StartDate] + StartDate + + false + 9 + false + Date + + + + testNew_event_withSchema + + + + + 1892b0ee-26ea-4280-8bca-e8cc5d3f9658 + [testNew_event_withSchema].[Channel] + Channel + + 256 + false + 18 + false + Text + + + + testNew_event_withSchema + + + + + bf50095e-54ba-42c7-9baf-f91618738d85 + [testNew_event_withSchema].[Text] + Text + + 256 + false + 16 + false + Text + + + + testNew_event_withSchema + + + + + diff --git a/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKeyINtestExisting_dataExtension,testNew_dataExtension-response.xml b/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKeyINtestExisting_dataExtension,testNew_dataExtension-response.xml new file mode 100644 index 000000000..c927c2258 --- /dev/null +++ b/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKeyINtestExisting_dataExtension,testNew_dataExtension-response.xml @@ -0,0 +1,133 @@ + + + + RetrieveResponse + urn:uuid:6d2f81c8-80ab-44d5-8664-206753e7ac8d + urn:uuid:a7354389-079e-4844-93b5-af6b7bf1d535 + http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous + + + 2022-04-21T19:21:52Z + 2022-04-21T19:26:52Z + + + + + + OK + cfe51e71-6a2b-4cb4-aecd-3777076d63bc + + + 8018397d-880d-4f88-940e-3b4eca098a0c + [testExisting_dataExtension].[ContactKey] + ContactKey + 0 + + 50 + true + 3 + true + Text + + + + testExisting_dataExtension + + + + + bea0e308-5d45-4181-a673-da9972a7c674 + [testExisting_dataExtension].[LastName] + LastName + 0 + + 50 + false + 1 + false + Text + + + + testExisting_dataExtension + + + + + 2557b461-a699-4744-950d-e80a19afc2dc + [testExisting_dataExtension].[EmailAddress] + EmailAddress + 0 + + 254 + true + 2 + false + EmailAddress + + + + testExisting_dataExtension + + + + + 42760528-a8c5-44dd-8c1d-ff34e5daee54 + [testExisting_dataExtension].[FirstName] + FirstName + 0 + + 50 + false + 0 + false + Text + + + + testExisting_dataExtension + + + + + 7b7ef009-4b85-455b-9bdf-b7bef93791d7 + [testExisting_dataExtension].[numberField] + numberField + 0 + + true + 5 + false + Number + + + + testExisting_dataExtension + + + + + c5d553cc-2c2a-464d-953d-6901be040f20 + [testExisting_dataExtension].[decimalField] + decimalField + 3 + + 6 + true + 4 + false + Decimal + + + + testExisting_dataExtension + + + + + diff --git a/test/resources/9999999/dataExtensionField/retrieve-response.xml b/test/resources/9999999/dataExtensionField/retrieve-response.xml index 9b80cbfb2..f1a2268c3 100644 --- a/test/resources/9999999/dataExtensionField/retrieve-response.xml +++ b/test/resources/9999999/dataExtensionField/retrieve-response.xml @@ -200,6 +200,876 @@ testExisting_journey_Quicksend + + + eb18160e-ec0f-46ca-b59a-1287dbeb7172 + [testExisting_event - 2024-07-05T080154625].[DisplayName] + DisplayName + + 256 + false + 15 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + ae0a3a3e-e81a-4b13-9a70-12ff6903c901 + [testExisting_event - 2024-07-05T080154625].[PreferredLanguage] + PreferredLanguage + + 50 + false + 6 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 3d39db8b-b561-4227-9051-1c201c79033e + [testExisting_event - 2024-07-05T080154625].[FirstReminderDate] + FirstReminderDate + + false + 12 + false + Date + + + + testExisting_event - 2024-07-05T080154625 + + + + + 4eadce50-f552-41e5-8318-2fd367f043b9 + [testExisting_event - 2024-07-05T080154625].[Description] + Description + + 4000 + false + 17 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + d2826773-6965-4e78-9a05-3008ea45a104 + [testExisting_event - 2024-07-05T080154625].[EndDate] + EndDate + + false + 10 + false + Date + + + + testExisting_event - 2024-07-05T080154625 + + + + + 3bb8fa91-5881-4ca1-ac09-30604ba0b9be + [testExisting_event - 2024-07-05T080154625].[TaskArea] + TaskArea + + 255 + false + 25 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 721b938f-67ab-4d82-bb1c-33add4ec1533 + [testExisting_event - 2024-07-05T080154625].[ContactId] + ContactId + + 18 + true + 0 + true + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 5ccee5f6-f282-4741-899d-400b05c57425 + [testExisting_event - 2024-07-05T080154625].[FirstName] + FirstName + + 256 + false + 4 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + d0ec626c-7cba-492b-abd0-48484e0c18bb + [testExisting_event - 2024-07-05T080154625].[Type] + Type + + 50 + true + 1 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 0d49e8cf-cce9-4323-9b17-52f2366f9fc2 + [testExisting_event - 2024-07-05T080154625].[Datestamp] + Datestamp + GetDate() + false + 8 + false + Date + + + + testExisting_event - 2024-07-05T080154625 + + + + + c44861f7-bac3-4b32-a5f8-744f67a66aaa + [testExisting_event - 2024-07-05T080154625].[Email] + Email + + 254 + false + 21 + false + EmailAddress + + + + testExisting_event - 2024-07-05T080154625 + + + + + c78d6054-5ce0-4438-a7ad-76b375224033 + [testExisting_event - 2024-07-05T080154625].[Status] + Status + + 50 + true + 2 + true + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 541b063f-7c25-45b2-af53-7fdafbe0ee12 + [testExisting_event - 2024-07-05T080154625].[BroadcastedNotificationDate] + BroadcastedNotificationDate + + false + 11 + false + Date + + + + testExisting_event - 2024-07-05T080154625 + + + + + ff54519e-931b-432f-9083-861213fa9460 + [testExisting_event - 2024-07-05T080154625].[TouchPoint] + TouchPoint + + 256 + false + 7 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + f0a58625-0b62-496f-bea9-9d2722e50864 + [testExisting_event - 2024-07-05T080154625].[Points] + Points + + false + 23 + false + Number + + + + testExisting_event - 2024-07-05T080154625 + + + + + 43f69e09-9f47-477f-95b6-a9b9b8111f5e + [testExisting_event - 2024-07-05T080154625].[Title] + Title + + 256 + false + 14 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + e9cd8c9f-39b0-4c93-8fce-aa3f0ca0d310 + [testExisting_event - 2024-07-05T080154625].[SecondReminderDate] + SecondReminderDate + + false + 13 + false + Date + + + + testExisting_event - 2024-07-05T080154625 + + + + + 403e68ee-f203-42e1-ac48-af18def0cccd + [testExisting_event - 2024-07-05T080154625].[TaskType] + TaskType + + 255 + false + 24 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 555ad728-f99a-4e13-a992-b70b1ffe36a2 + [testExisting_event - 2024-07-05T080154625].[Respondent] + Respondent + + 256 + false + 3 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 95948e52-e8d0-4908-98a9-cc34cd84233e + [testExisting_event - 2024-07-05T080154625].[LastName] + LastName + + 256 + false + 5 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 7976b904-1ed5-46f0-a524-cd1a787bfb5e + [testExisting_event - 2024-07-05T080154625].[FirstReminderChannel] + FirstReminderChannel + + 256 + false + 19 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + ed225fdd-1aff-401d-906e-cd59b4d86fe2 + [testExisting_event - 2024-07-05T080154625].[SecondReminderChannel] + SecondReminderChannel + + 256 + false + 20 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 30222d00-35c5-46e8-ab41-d3febd909eed + [testExisting_event - 2024-07-05T080154625].[ArticleOrTaskID] + ArticleOrTaskID + + 18 + true + 22 + true + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + 8c79306f-4f3a-4925-bd48-e6c6905c157c + [testExisting_event - 2024-07-05T080154625].[StartDate] + StartDate + + false + 9 + false + Date + + + + testExisting_event - 2024-07-05T080154625 + + + + + 1892b0ee-26ea-4280-8bca-e8cc5d3f9658 + [testExisting_event - 2024-07-05T080154625].[Channel] + Channel + + 256 + false + 18 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + bf50095e-54ba-42c7-9baf-f91618738d85 + [testExisting_event - 2024-07-05T080154625].[Text] + Text + + 256 + false + 16 + false + Text + + + + testExisting_event - 2024-07-05T080154625 + + + + + eb18160e-ec0f-46ca-b59a-1287dbeb7172 + [testNew_event_withSchema - 2024-07-08T014814443].[DisplayName] + DisplayName + + 256 + false + 15 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + ae0a3a3e-e81a-4b13-9a70-12ff6903c901 + [testNew_event_withSchema - 2024-07-08T014814443].[PreferredLanguage] + PreferredLanguage + + 50 + false + 6 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 3d39db8b-b561-4227-9051-1c201c79033e + [testNew_event_withSchema - 2024-07-08T014814443].[FirstReminderDate] + FirstReminderDate + + false + 12 + false + Date + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 4eadce50-f552-41e5-8318-2fd367f043b9 + [testNew_event_withSchema - 2024-07-08T014814443].[Description] + Description + + 4000 + false + 17 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + d2826773-6965-4e78-9a05-3008ea45a104 + [testNew_event_withSchema - 2024-07-08T014814443].[EndDate] + EndDate + + false + 10 + false + Date + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 3bb8fa91-5881-4ca1-ac09-30604ba0b9be + [testNew_event_withSchema - 2024-07-08T014814443].[TaskArea] + TaskArea + + 255 + false + 25 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 721b938f-67ab-4d82-bb1c-33add4ec1533 + [testNew_event_withSchema - 2024-07-08T014814443].[ContactId] + ContactId + + 18 + true + 0 + true + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 5ccee5f6-f282-4741-899d-400b05c57425 + [testNew_event_withSchema - 2024-07-08T014814443].[FirstName] + FirstName + + 256 + false + 4 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + d0ec626c-7cba-492b-abd0-48484e0c18bb + [testNew_event_withSchema - 2024-07-08T014814443].[Type] + Type + + 50 + true + 1 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 0d49e8cf-cce9-4323-9b17-52f2366f9fc2 + [testNew_event_withSchema - 2024-07-08T014814443].[Datestamp] + Datestamp + GetDate() + false + 8 + false + Date + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + c44861f7-bac3-4b32-a5f8-744f67a66aaa + [testNew_event_withSchema - 2024-07-08T014814443].[Email] + Email + + 254 + false + 21 + false + EmailAddress + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + c78d6054-5ce0-4438-a7ad-76b375224033 + [testNew_event_withSchema - 2024-07-08T014814443].[Status] + Status + + 50 + true + 2 + true + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 541b063f-7c25-45b2-af53-7fdafbe0ee12 + [testNew_event_withSchema - 2024-07-08T014814443].[BroadcastedNotificationDate] + BroadcastedNotificationDate + + false + 11 + false + Date + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + ff54519e-931b-432f-9083-861213fa9460 + [testNew_event_withSchema - 2024-07-08T014814443].[TouchPoint] + TouchPoint + + 256 + false + 7 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + f0a58625-0b62-496f-bea9-9d2722e50864 + [testNew_event_withSchema - 2024-07-08T014814443].[Points] + Points + + false + 23 + false + Number + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 43f69e09-9f47-477f-95b6-a9b9b8111f5e + [testNew_event_withSchema - 2024-07-08T014814443].[Title] + Title + + 256 + false + 14 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + e9cd8c9f-39b0-4c93-8fce-aa3f0ca0d310 + [testNew_event_withSchema - 2024-07-08T014814443].[SecondReminderDate] + SecondReminderDate + + false + 13 + false + Date + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 403e68ee-f203-42e1-ac48-af18def0cccd + [testNew_event_withSchema - 2024-07-08T014814443].[TaskType] + TaskType + + 255 + false + 24 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 555ad728-f99a-4e13-a992-b70b1ffe36a2 + [testNew_event_withSchema - 2024-07-08T014814443].[Respondent] + Respondent + + 256 + false + 3 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 95948e52-e8d0-4908-98a9-cc34cd84233e + [testNew_event_withSchema - 2024-07-08T014814443].[LastName] + LastName + + 256 + false + 5 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 7976b904-1ed5-46f0-a524-cd1a787bfb5e + [testNew_event_withSchema - 2024-07-08T014814443].[FirstReminderChannel] + FirstReminderChannel + + 256 + false + 19 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + ed225fdd-1aff-401d-906e-cd59b4d86fe2 + [testNew_event_withSchema - 2024-07-08T014814443].[SecondReminderChannel] + SecondReminderChannel + + 256 + false + 20 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 30222d00-35c5-46e8-ab41-d3febd909eed + [testNew_event_withSchema - 2024-07-08T014814443].[ArticleOrTaskID] + ArticleOrTaskID + + 18 + true + 22 + true + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 8c79306f-4f3a-4925-bd48-e6c6905c157c + [testNew_event_withSchema - 2024-07-08T014814443].[StartDate] + StartDate + + false + 9 + false + Date + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + 1892b0ee-26ea-4280-8bca-e8cc5d3f9658 + [testNew_event_withSchema - 2024-07-08T014814443].[Channel] + Channel + + 256 + false + 18 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + + + + bf50095e-54ba-42c7-9baf-f91618738d85 + [testNew_event_withSchema - 2024-07-08T014814443].[Text] + Text + + 256 + false + 16 + false + Text + + + + testNew_event_withSchema - 2024-07-08T014814443 + + diff --git a/test/resources/9999999/event/build-expected.json b/test/resources/9999999/event/build-expected.json new file mode 100644 index 000000000..e54d7af29 --- /dev/null +++ b/test/resources/9999999/event/build-expected.json @@ -0,0 +1,228 @@ +{ + "type": "APIEvent", + "name": "testTemplated_event", + "description": "", + "eventDefinitionKey": "testTemplated_event", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "sourceApplicationExtensionId": "00000000-0000-0000-0000-000000000000", + "filterDefinitionTemplate": "", + "iconUrl": "", + "arguments": { "serializedObjectType": 11, "criteria": "" }, + "metaData": { "scheduleState": "No Schedule" }, + "isVisibleInPicker": true, + "isPlatformObject": false, + "category": "Event", + "automationId": "00000000-0000-0000-0000-000000000000", + "disableDEDataLogging": false, + "r__dataExtension_key": "testTemplated_event - 2024-07-05T080154625" +} diff --git a/test/resources/9999999/event/get-expected.json b/test/resources/9999999/event/get-expected.json new file mode 100644 index 000000000..13bc7239f --- /dev/null +++ b/test/resources/9999999/event/get-expected.json @@ -0,0 +1,235 @@ +{ + "type": "APIEvent", + "name": "testExisting_event", + "description": "", + "createdDate": "2024-07-05T06:12:24.227", + "createdBy": 700304523, + "modifiedDate": "2024-07-05T08:01:55.4", + "modifiedBy": 700304523, + "eventDefinitionKey": "testExisting_event", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "sourceApplicationExtensionId": "00000000-0000-0000-0000-000000000000", + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "filterDefinitionTemplate": "", + "iconUrl": "", + "arguments": { "serializedObjectType": 11, "criteria": "" }, + "metaData": { "scheduleState": "No Schedule" }, + "interactionCount": 0, + "isVisibleInPicker": true, + "isPlatformObject": false, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000", + "disableDEDataLogging": false, + "r__dataExtension_key": "testExisting_event - 2024-07-05T080154625" +} diff --git a/test/resources/9999999/event/post_withExistingDE-callout-expected.json b/test/resources/9999999/event/post_withExistingDE-callout-expected.json new file mode 100644 index 000000000..d30fa72f7 --- /dev/null +++ b/test/resources/9999999/event/post_withExistingDE-callout-expected.json @@ -0,0 +1,17 @@ +{ + "type": "APIEvent", + "name": "testNew_event_withExistingDE", + "description": "created on deploy", + "eventDefinitionKey": "testNew_event_withExistingDE", + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "arguments": { + "serializedObjectType": 11, + "eventDefinitionKey": "testNew_event_withExistingDE" + }, + "metaData": {}, + "isVisibleInPicker": true, + "category": "Event", + "automationId": "00000000-0000-0000-0000-000000000000", + "mode": "Production", + "dataExtensionId": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8" +} diff --git a/test/resources/9999999/event/post_withExistingDE-expected.json b/test/resources/9999999/event/post_withExistingDE-expected.json new file mode 100644 index 000000000..7f9700933 --- /dev/null +++ b/test/resources/9999999/event/post_withExistingDE-expected.json @@ -0,0 +1,21 @@ +{ + "type": "APIEvent", + "name": "testNew_event_withExistingDE", + "description": "created on deploy", + "createdDate": "0001-01-01T00:00:00", + "createdBy": 0, + "modifiedDate": "0001-01-01T00:00:00", + "modifiedBy": 0, + "eventDefinitionKey": "testNew_event_withExistingDE", + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "arguments": { + "serializedObjectType": 11 + }, + "metaData": {}, + "interactionCount": 0, + "isVisibleInPicker": true, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000", + "r__dataExtension_key": "testExisting_event - 2024-07-05T080154625" +} diff --git a/test/resources/9999999/event/post_withSchema-callout-expected.json b/test/resources/9999999/event/post_withSchema-callout-expected.json new file mode 100644 index 000000000..f4de65b39 --- /dev/null +++ b/test/resources/9999999/event/post_withSchema-callout-expected.json @@ -0,0 +1,196 @@ +{ + "type": "APIEvent", + "name": "testNew_event_withSchema", + "description": "created on deploy", + "mode": "Production", + "eventDefinitionKey": "testNew_event_withSchema", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": 18, + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "defaultValue": "GetDate()", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "isVisibleInPicker": true, + "arguments": { + "eventDefinitionKey": "testNew_event_withSchema" + } +} diff --git a/test/resources/9999999/event/post_withSchema-expected.json b/test/resources/9999999/event/post_withSchema-expected.json new file mode 100644 index 000000000..5c843e21e --- /dev/null +++ b/test/resources/9999999/event/post_withSchema-expected.json @@ -0,0 +1,232 @@ +{ + "type": "APIEvent", + "name": "testNew_event_withSchema", + "description": "created on deploy", + "createdDate": "0001-01-01T00:00:00", + "createdBy": 0, + "modifiedDate": "0001-01-01T00:00:00", + "modifiedBy": 0, + "eventDefinitionKey": "testNew_event_withSchema", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "arguments": { + "serializedObjectType": 11 + }, + "metaData": {}, + "interactionCount": 0, + "isVisibleInPicker": true, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000", + "r__dataExtension_key": "testNew_event_withSchema" +} diff --git a/test/resources/9999999/event/put-callout-expected.json b/test/resources/9999999/event/put-callout-expected.json new file mode 100644 index 000000000..d1bb47dcb --- /dev/null +++ b/test/resources/9999999/event/put-callout-expected.json @@ -0,0 +1,202 @@ +{ + "type": "APIEvent", + "name": "testExisting_event", + "description": "updated on deploy", + "mode": "Production", + "eventDefinitionKey": "testExisting_event", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "defaultValue": "GetDate()", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey", + "id": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8", + "name": "testExisting_event - 2024-07-05T080154625" + }, + "isVisibleInPicker": true, + "arguments": { + "eventDefinitionKey": "testExisting_event", + "dataExtensionId": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8" + }, + "isPlatformObject": false, + "id": "d8d57832-ce9c-4bf6-8c24-3044ece5dffd", + "dataExtensionId": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8" +} diff --git a/test/resources/9999999/event/put-expected.json b/test/resources/9999999/event/put-expected.json new file mode 100644 index 000000000..458223607 --- /dev/null +++ b/test/resources/9999999/event/put-expected.json @@ -0,0 +1,233 @@ +{ + "type": "APIEvent", + "name": "testExisting_event", + "description": "updated on deploy", + "createdDate": "0001-01-01T00:00:00", + "createdBy": 0, + "modifiedDate": "0001-01-01T00:00:00", + "modifiedBy": 0, + "eventDefinitionKey": "testExisting_event", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "arguments": { + "serializedObjectType": 11 + }, + "metaData": {}, + "interactionCount": 0, + "isVisibleInPicker": true, + "isPlatformObject": false, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000", + "r__dataExtension_key": "testExisting_event - 2024-07-05T080154625" +} diff --git a/test/resources/9999999/event/template-expected.json b/test/resources/9999999/event/template-expected.json new file mode 100644 index 000000000..6267f6b1c --- /dev/null +++ b/test/resources/9999999/event/template-expected.json @@ -0,0 +1,228 @@ +{ + "type": "APIEvent", + "name": "{{{prefix}}}event", + "description": "", + "eventDefinitionKey": "{{{prefix}}}event", + "schema": { + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey" + }, + "sourceApplicationExtensionId": "00000000-0000-0000-0000-000000000000", + "filterDefinitionTemplate": "", + "iconUrl": "", + "arguments": { "serializedObjectType": 11, "criteria": "" }, + "metaData": { "scheduleState": "No Schedule" }, + "isVisibleInPicker": true, + "isPlatformObject": false, + "category": "Event", + "automationId": "00000000-0000-0000-0000-000000000000", + "disableDEDataLogging": false, + "r__dataExtension_key": "{{{prefix}}}event - 2024-07-05T080154625" +} diff --git a/test/resources/9999999/interaction/v1/eventDefinitions/get-response.json b/test/resources/9999999/interaction/v1/eventDefinitions/get-response.json index eee23eeca..58df58392 100644 --- a/test/resources/9999999/interaction/v1/eventDefinitions/get-response.json +++ b/test/resources/9999999/interaction/v1/eventDefinitions/get-response.json @@ -1,5 +1,5 @@ { - "count": 1, + "count": 4, "page": 1, "pageSize": 50, "links": {}, @@ -15,7 +15,8 @@ "modifiedBy": 7586085, "mode": "Production", "eventDefinitionKey": "APIEvent-60130566-e2fe-eb29-4140-15c27093a80b", - "dataExtensionName": "Contact_Data", + "dataExtensionId": "1c8064d5-6502-ef11-a5c8-5cba2c702db8", + "dataExtensionName": "testExisting_journey_Quicksend", "sourceApplicationExtensionId": "7db1f972-f8b7-49b6-91b5-fa218e13953d", "filterDefinitionTemplate": "", "iconUrl": "/events/images/icon_journeyBuilder-event-api-blue.svg", @@ -119,6 +120,255 @@ "publishedInteractionCount": 0, "automationId": "a3c606a8-19d7-4866-8804-5f43dc4502ea", "disableDEDataLogging": false + }, + { + "id": "d8d57832-ce9c-4bf6-8c24-3044ece5dffd", + "type": "APIEvent", + "name": "testExisting_event", + "description": "", + "createdDate": "2024-07-05T06:12:24.227", + "createdBy": 700304523, + "modifiedDate": "2024-07-05T08:01:55.4", + "modifiedBy": 700304523, + "mode": "Production", + "eventDefinitionKey": "testExisting_event", + "dataExtensionId": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8", + "dataExtensionName": "testExisting_event - 2024-07-05T080154625", + "schema": { + "id": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8", + "name": "testExisting_event - 2024-07-05T080154625", + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey", + "isPlatformObject": false + }, + "sourceApplicationExtensionId": "00000000-0000-0000-0000-000000000000", + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "filterDefinitionTemplate": "", + "iconUrl": "", + "arguments": { + "serializedObjectType": 11, + "eventDefinitionKey": "testExisting_event", + "eventDefinitionId": "d8d57832-ce9c-4bf6-8c24-3044ece5dffd", + "dataExtensionId": "00000000-0000-0000-0000-000000000000", + "criteria": "" + }, + "metaData": { + "scheduleState": "No Schedule" + }, + "interactionCount": 0, + "isVisibleInPicker": true, + "isPlatformObject": false, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000", + "disableDEDataLogging": false } ] } diff --git a/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/delete-response.txt b/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/delete-response.txt new file mode 100644 index 000000000..e69de29bb diff --git a/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/put-response.json b/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/put-response.json new file mode 100644 index 000000000..668eda9ea --- /dev/null +++ b/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/put-response.json @@ -0,0 +1,241 @@ +{ + "id": "d8d57832-ce9c-4bf6-8c24-3044ece5dffd", + "type": "APIEvent", + "name": "testExisting_event", + "description": "updated on deploy", + "createdDate": "0001-01-01T00:00:00", + "createdBy": 0, + "modifiedDate": "0001-01-01T00:00:00", + "modifiedBy": 0, + "mode": "Production", + "eventDefinitionKey": "testExisting_event", + "dataExtensionId": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8", + "schema": { + "id": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8", + "name": "testExisting_event - 2024-07-05T080154625", + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey", + "isPlatformObject": false + }, + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "arguments": { + "serializedObjectType": 11, + "eventDefinitionKey": "testExisting_event", + "dataExtensionId": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8", + "eventDefinitionId": "d8d57832-ce9c-4bf6-8c24-3044ece5dffd" + }, + "metaData": {}, + "interactionCount": 0, + "isVisibleInPicker": true, + "isPlatformObject": false, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000" +} diff --git a/test/resources/9999999/interaction/v1/eventDefinitions/post_withExistingDE-response.json b/test/resources/9999999/interaction/v1/eventDefinitions/post_withExistingDE-response.json new file mode 100644 index 000000000..5b2f38d4e --- /dev/null +++ b/test/resources/9999999/interaction/v1/eventDefinitions/post_withExistingDE-response.json @@ -0,0 +1,26 @@ +{ + "id": "21ab68de-2e2f-40b2-b455-c977cbdd4335", + "type": "APIEvent", + "name": "testNew_event_withExistingDE", + "description": "created on deploy", + "createdDate": "0001-01-01T00:00:00", + "createdBy": 0, + "modifiedDate": "0001-01-01T00:00:00", + "modifiedBy": 0, + "mode": "Production", + "eventDefinitionKey": "testNew_event_withExistingDE", + "dataExtensionId": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8", + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "arguments": { + "serializedObjectType": 11, + "eventDefinitionKey": "testNew_event_withExistingDE", + "eventDefinitionId": "21ab68de-2e2f-40b2-b455-c977cbdd4335", + "dataExtensionId": "f2cc2b21-d73a-ef11-a5c8-5cba2c702db8" + }, + "metaData": {}, + "interactionCount": 0, + "isVisibleInPicker": true, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000" +} diff --git a/test/resources/9999999/interaction/v1/eventDefinitions/post_withSchema-response.json b/test/resources/9999999/interaction/v1/eventDefinitions/post_withSchema-response.json new file mode 100644 index 000000000..7b46ece4a --- /dev/null +++ b/test/resources/9999999/interaction/v1/eventDefinitions/post_withSchema-response.json @@ -0,0 +1,241 @@ +{ + "id": "b9cb2b05-738d-4f49-b53d-28e3bbe52d12", + "type": "APIEvent", + "name": "testNew_event_withSchema", + "description": "created on deploy", + "createdDate": "0001-01-01T00:00:00", + "createdBy": 0, + "modifiedDate": "0001-01-01T00:00:00", + "modifiedBy": 0, + "mode": "Production", + "eventDefinitionKey": "testNew_event_withSchema", + "dataExtensionId": "4342972c-a43c-ef11-a5c8-5cba2c702db8", + "dataExtensionName": "testNew_event_withSchema - 2024-07-08T014814443", + "schema": { + "id": "4342972c-a43c-ef11-a5c8-5cba2c702db8", + "name": "testNew_event_withSchema - 2024-07-08T014814443", + "fields": [ + { + "name": "ContactId", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Type", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Status", + "dataType": "Text", + "maxLength": "50", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Respondent", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "LastName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "PreferredLanguage", + "dataType": "Text", + "maxLength": "50", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TouchPoint", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Datestamp", + "dataType": "Date", + "isNullable": true, + "defaultValue": "GetDate()", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "StartDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "EndDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "BroadcastedNotificationDate", + "dataType": "Date", + "isNullable": true, + "defaultValue": "", + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderDate", + "dataType": "Date", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Title", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "DisplayName", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Text", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Description", + "dataType": "Text", + "maxLength": "4000", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Channel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "FirstReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "SecondReminderChannel", + "dataType": "Text", + "maxLength": "256", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "Email", + "dataType": "Email", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "ArticleOrTaskID", + "dataType": "Text", + "maxLength": "18", + "isNullable": false, + "isPrimaryKey": true, + "isDevicePreference": false + }, + { + "name": "Points", + "dataType": "Number", + "maxLength": "", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskType", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + }, + { + "name": "TaskArea", + "dataType": "Text", + "maxLength": "255", + "isNullable": true, + "isPrimaryKey": false, + "isDevicePreference": false + } + ], + "sendableCustomObjectField": "ContactId", + "sendableSubscriberField": "_SubscriberKey", + "isPlatformObject": false + }, + "filterDefinitionId": "00000000-0000-0000-0000-000000000000", + "arguments": { + "serializedObjectType": 11, + "eventDefinitionKey": "testNew_event_withSchema", + "eventDefinitionId": "b9cb2b05-738d-4f49-b53d-28e3bbe52d12", + "dataExtensionId": "00000000-0000-0000-0000-000000000000" + }, + "metaData": {}, + "interactionCount": 0, + "isVisibleInPicker": true, + "category": "Event", + "publishedInteractionCount": 0, + "automationId": "00000000-0000-0000-0000-000000000000" +} diff --git a/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response.txt b/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response.txt new file mode 100644 index 000000000..9d53d75c0 --- /dev/null +++ b/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response.txt @@ -0,0 +1 @@ +0175b971-71a3-4d8e-98ac-48121f3fbf4f \ No newline at end of file diff --git a/test/type.asset.test.js b/test/type.asset.test.js index 5266c1f04..ced2bb21a 100644 --- a/test/type.asset.test.js +++ b/test/type.asset.test.js @@ -492,7 +492,6 @@ describe('type: asset', () => { assert.equal(process.exitCode, 0, 'resolveId should not have thrown an error'); assert.deepEqual( resolveIdJson, - // @ts-expect-error bad typing of assert.deepEqual await testUtils.getExpectedJson('9999999', 'asset', 'resolveId-1295064-noPath'), 'returned response was not equal expected' ); @@ -521,7 +520,6 @@ describe('type: asset', () => { assert.equal(process.exitCode, 0, 'resolveId should not have thrown an error'); assert.deepEqual( resolveIdJson, - // @ts-expect-error bad typing of assert.deepEqual await testUtils.getExpectedJson('9999999', 'asset', 'resolveId-1295064-withPath'), 'returned response was not equal expected' ); @@ -536,7 +534,6 @@ describe('type: asset', () => { // IMPORTANT: this will throw a false "TEST-ERROR" but our testing framework currently needs to not find the file to throw a 404 assert.deepEqual( resolveIdJson, - // @ts-expect-error bad typing of assert.deepEqual await testUtils.getExpectedJson('9999999', 'asset', 'resolveId-1234-notFound'), 'returned response was not equal expected' ); diff --git a/test/type.automation.test.js b/test/type.automation.test.js index 610d9908a..c56e4b117 100644 --- a/test/type.automation.test.js +++ b/test/type.automation.test.js @@ -162,7 +162,7 @@ describe('type: automation', () => { 'five cached automation expected' ); - // const scheduleCalloutList = testUtils.getSoapCallout('Schedule'); + // const scheduleCalloutList = testUtils.getSoapCallouts('Schedule'); // const objectIds = { // testNew_automation: 'a8afb0e2-b00a-4c88-ad2e-1f7f8788c560', // testExisting_automation: '08afb0e2-b00a-4c88-ad2e-1f7f8788c560', diff --git a/test/type.dataExtension.test.js b/test/type.dataExtension.test.js index 805c9a83a..a0622d740 100644 --- a/test/type.dataExtension.test.js +++ b/test/type.dataExtension.test.js @@ -27,8 +27,8 @@ describe('type: dataExtension', () => { const result = cache.getCache(); assert.equal( result.dataExtension ? Object.keys(result.dataExtension).length : 0, - 5, - 'only 5 dataExtension expected' + 7, + 'only 7 dataExtension expected' ); assert.deepEqual( await testUtils.getActualJson('testExisting_dataExtension', 'dataExtension'), @@ -116,8 +116,8 @@ describe('type: dataExtension', () => { const result = cache.getCache(); assert.equal( result.dataExtension ? Object.keys(result.dataExtension).length : 0, - 7, - '7 dataExtensions expected' + 9, + '9 dataExtensions expected' ); // insert assert.deepEqual( diff --git a/test/type.event.test.js b/test/type.event.test.js index 11731911d..ee6b48eda 100644 --- a/test/type.event.test.js +++ b/test/type.event.test.js @@ -1,13 +1,12 @@ import * as chai from 'chai'; const assert = chai.assert; -// const expect = chai.expect; +const expect = chai.expect; import chaiFiles from 'chai-files'; -// import cache from '../lib/util/cache.js'; +import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); -// const file = chaiFiles.file; describe('type: event', () => { beforeEach(() => { @@ -18,12 +17,192 @@ describe('type: event', () => { testUtils.mockReset(); }); - describe('Retrieve ================', () => {}); + describe('Retrieve ================', () => { + it('Should retrieve a event', async () => { + // WHEN + await handler.retrieve('testInstance/testBU', ['event']); + // THEN + assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error'); + // get results from cache + const result = cache.getCache(); + assert.equal( + result.event ? Object.keys(result.event).length : 0, + 4, + 'only 4 event expected' + ); + assert.deepEqual( + await testUtils.getActualJson('testExisting_event', 'event'), + await testUtils.getExpectedJson('9999999', 'event', 'get'), + 'returned JSON was not equal expected' + ); + assert.equal( + testUtils.getAPIHistoryLength(), + 4, + 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' + ); + return; + }); + }); describe('Deploy ================', () => { beforeEach(() => { testUtils.mockSetup(true); }); + + it('Should create an event & dataExtension via schema', async () => { + // prepare + await testUtils.copyFile( + 'interaction/v1/eventDefinitions/post_withSchema-response.json', + 'interaction/v1/eventDefinitions/post-response.json' + ); + await testUtils.copyFile( + 'dataExtension/retrieve-createdViaEvent-response.xml', + 'dataExtension/retrieve-response.xml' + ); + await testUtils.copyFile( + 'dataExtension/update-afterCreatedViaEvent-response.xml', + 'dataExtension/update-response.xml' + ); + + await handler.deploy('testInstance/testBU', ['event'], ['testNew_event_withSchema']); + // THEN + assert.equal(process.exitCode, 0, 'deploy should not have thrown an error'); + // get results from cache + const result = cache.getCache(); + assert.equal( + result.event ? Object.keys(result.event).length : 0, + 5, + '5 events expected' + ); + // get callouts + const createCallout = testUtils.getRestCallout( + 'post', + '/interaction/v1/eventDefinitions/' + ); + // confirm created item + assert.deepEqual( + createCallout, + await testUtils.getExpectedJson('9999999', 'event', 'post_withSchema-callout'), + 'create-payload JSON was not equal expected' + ); + assert.deepEqual( + await testUtils.getActualJson('testNew_event_withSchema', 'event'), + await testUtils.getExpectedJson('9999999', 'event', 'post_withSchema'), + 'returned new-JSON was not equal expected for insert event' + ); + // confirm we changed the dataExtension key correctly + const updateCalloutDE = testUtils.getSoapCallouts('Update', 'DataExtension'); + expect(updateCalloutDE[0]).to.equal( + await testUtils.getExpectedFile( + '9999999', + 'dataExtension', + 'update-callout-afterCreatedViaEvent', + 'xml' + ) + ); + + // confirm created dataExtension + assert.deepEqual( + await testUtils.getActualJson('testNew_event_withSchema', 'dataExtension'), + await testUtils.getExpectedJson( + '9999999', + 'dataExtension', + 'retrieve_event_withSchema' + ), + + 'returned metadata was not equal expected' + ); + + // check number of API calls + assert.equal( + testUtils.getAPIHistoryLength(), + 14, + 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' + ); + return; + }); + + it('Should create an event with pre-Existing dataExtension', async () => { + // prepare + await testUtils.copyFile( + 'interaction/v1/eventDefinitions/post_withExistingDE-response.json', + 'interaction/v1/eventDefinitions/post-response.json' + ); + + await handler.deploy( + 'testInstance/testBU', + ['event'], + ['testNew_event_withExistingDE'] + ); + // THEN + assert.equal(process.exitCode, 0, 'deploy should not have thrown an error'); + // get results from cache + const result = cache.getCache(); + assert.equal( + result.event ? Object.keys(result.event).length : 0, + 5, + '5 events expected' + ); + // get callouts + const createCallout = testUtils.getRestCallout( + 'post', + '/interaction/v1/eventDefinitions/' + ); + // confirm created item + assert.deepEqual( + createCallout, + await testUtils.getExpectedJson('9999999', 'event', 'post_withExistingDE-callout'), + 'create-payload JSON was not equal expected' + ); + assert.deepEqual( + await testUtils.getActualJson('testNew_event_withExistingDE', 'event'), + await testUtils.getExpectedJson('9999999', 'event', 'post_withExistingDE'), + 'returned new-JSON was not equal expected for insert event' + ); + // check number of API calls + assert.equal( + testUtils.getAPIHistoryLength(), + 5, + 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' + ); + return; + }); + + it('Should update an event', async () => { + await handler.deploy('testInstance/testBU', ['event'], ['testExisting_event']); + // THEN + assert.equal(process.exitCode, 0, 'deploy should not have thrown an error'); + // get results from cache + const result = cache.getCache(); + assert.equal( + result.event ? Object.keys(result.event).length : 0, + 4, + '4 events expected' + ); + // get callouts + const updateCallout = testUtils.getRestCallout( + 'put', + '/interaction/v1/eventDefinitions/%' + ); + // confirm updated item + assert.deepEqual( + updateCallout, + await testUtils.getExpectedJson('9999999', 'event', 'put-callout'), + 'update-payload JSON was not equal expected' + ); + assert.deepEqual( + await testUtils.getActualJson('testExisting_event', 'event'), + await testUtils.getExpectedJson('9999999', 'event', 'put'), + 'returned existing-JSON was not equal expected for update event' + ); + // check number of API calls + assert.equal( + testUtils.getAPIHistoryLength(), + 5, + 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' + ); + return; + }); }); describe('FixKeys ================', () => { @@ -54,9 +233,111 @@ describe('type: event', () => { }); }); - describe('Templating ================', () => {}); + describe('Templating ================', () => { + it('Should create a event template via retrieveAsTemplate and build it', async () => { + // GIVEN there is a template + const result = await handler.retrieveAsTemplate( + 'testInstance/testBU', + 'event', + ['testExisting_event'], + 'testSourceMarket' + ); + // WHEN + assert.equal(process.exitCode, 0, 'retrieveAsTemplate should not have thrown an error'); + assert.equal( + result.event ? Object.keys(result.event).length : 0, + 1, + 'only one event expected' + ); + assert.deepEqual( + await testUtils.getActualTemplateJson('testExisting_event', 'event'), + await testUtils.getExpectedJson('9999999', 'event', 'template'), + 'returned template JSON of retrieveAsTemplate was not equal expected' + ); + // THEN + await handler.buildDefinition( + 'testInstance/testBU', + 'event', + ['testExisting_event'], + 'testTargetMarket' + ); + assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error'); + + assert.deepEqual( + await testUtils.getActualDeployJson('testTemplated_event', 'event'), + await testUtils.getExpectedJson('9999999', 'event', 'build'), + 'returned deployment JSON was not equal expected' + ); - describe('Delete ================', () => {}); + assert.equal( + testUtils.getAPIHistoryLength(), + 4, + 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' + ); + return; + }); + + it('Should create a event template via buildTemplate and build it', async () => { + // download first before we test buildTemplate + await handler.retrieve('testInstance/testBU', ['event']); + // GIVEN there is a template + const result = await handler.buildTemplate( + 'testInstance/testBU', + 'event', + ['testExisting_event'], + 'testSourceMarket' + ); + // WHEN + assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error'); + + assert.equal( + result.event ? Object.keys(result.event).length : 0, + 1, + 'only one event expected' + ); + assert.deepEqual( + await testUtils.getActualTemplateJson('testExisting_event', 'event'), + await testUtils.getExpectedJson('9999999', 'event', 'template'), + 'returned template JSON of buildTemplate was not equal expected' + ); + // THEN + await handler.buildDefinition( + 'testInstance/testBU', + 'event', + ['testExisting_event'], + 'testTargetMarket' + ); + assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error'); + + assert.deepEqual( + await testUtils.getActualDeployJson('testTemplated_event', 'event'), + await testUtils.getExpectedJson('9999999', 'event', 'build'), + 'returned deployment JSON was not equal expected' + ); + + assert.equal( + testUtils.getAPIHistoryLength(), + 4, + 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' + ); + return; + }); + }); + + describe('Delete ================', () => { + it('Should delete the item', async () => { + // WHEN + const isDeleted = await handler.deleteByKey( + 'testInstance/testBU', + 'event', + 'testExisting_event' + ); + // THEN + assert.equal(process.exitCode, 0, 'deleteByKey should not have thrown an error'); + assert.equal(isDeleted, true, 'deleteByKey should have returned true'); + return; + }); + }); describe('CI/CD ================', () => {}); }); diff --git a/test/type.journey.test.js b/test/type.journey.test.js index ef459b0bd..de62e25a1 100644 --- a/test/type.journey.test.js +++ b/test/type.journey.test.js @@ -278,6 +278,19 @@ describe('type: journey', () => { assert.equal(isDeleted, true, 'should have deleted the item'); return; }); + + it('Should delete 2 items with version', async () => { + // WHEN + const isDeleted = await handler.deleteByKey('testInstance/testBU', 'journey', [ + 'testExisting_journey_Quicksend/1', + 'testExisting_journey_Multistep/1', + ]); + // THEN + assert.equal(process.exitCode, 0, 'delete should not have thrown an error'); + + assert.equal(isDeleted, true, 'should have deleted the item'); + return; + }); }); describe('ReplaceContentBlockByX ================', () => { diff --git a/test/type.user.test.js b/test/type.user.test.js index 784a58dad..f88042ca8 100644 --- a/test/type.user.test.js +++ b/test/type.user.test.js @@ -55,7 +55,7 @@ describe('type: user', () => { await File.readFile(`./docs/user/testInstance.users.md`, { encoding: 'utf8', }) - ).replaceAll(regexFindDaysSinceLogin, [expectedDaysSinceLogin[0]]); + ).replaceAll(regexFindDaysSinceLogin, expectedDaysSinceLogin[0]); expect(actualFile).to.equal(expectedFile); assert.equal( diff --git a/test/utils.js b/test/utils.js index 9b8ebc2e1..a735415b9 100644 --- a/test/utils.js +++ b/test/utils.js @@ -16,6 +16,17 @@ let apimock; import { handleSOAPRequest, handleRESTRequest, soapUrl, restUrl } from './resourceFactory.js'; const authResources = File.readJsonSync(path.join(__dirname, './resources/auth.json')); +/** + * gets file from Retrieve folder + * + * @param {string} from source path (starting in bu folder) + * @param {string} to target path (starting in bu folder) + * @param {string} [mid] used when we need to test on ParentBU + * @returns {Promise.<{status:'ok'|'skipped'|'failed', statusMessage:string, file:string}>} - + */ +export async function copyFile(from, to, mid = '9999999') { + return File.copyFileSimple(`./test/resources/${mid}/${from}`, `./test/resources/${mid}/${to}`); +} /** * gets file from Retrieve folder * @@ -168,7 +179,6 @@ export function mockSetup(isDeploy) { skipInteraction: undefined, }); } - // @ts-expect-error somehow, MockAdapter does not expect type AxiosInstance apimock = new MockAdapter(axiosInstance, { onNoMatch: 'throwException' }); // set access_token to mid to allow for autorouting of mock to correct resources apimock.onPost(authResources.success.url).reply((config) => { @@ -280,7 +290,7 @@ export function getRestCallout(method, url) { * @param {string} [objectType] optionall filter requests by object * @returns {object[]} json payload of the requests */ -export function getSoapCallout(requestAction, objectType) { +export function getSoapCallouts(requestAction, objectType) { const method = 'post'; const url = '/Service.asmx'; const subset = apimock.history[method]; @@ -290,10 +300,12 @@ export function getSoapCallout(requestAction, objectType) { // find soap requestst of the correct request type .filter((item) => item.headers.SOAPAction === requestAction) // find soap requestst of the correct request type - .filter( - (item) => - !objectType || - item.data.split('')[1].split('')[0] === objectType + .filter((item) => + !objectType || item.data.includes('')[1].split('')[0] === objectType + : item.data.includes('')[0] === objectType + : false ) .map((item) => item.data); return myCallout; diff --git a/tsconfig.json b/tsconfig.json index 427a15e78..8fe20b6a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,12 @@ { // Change this to match your project - "include": ["lib/**/*"], + "include": ["lib/**/*.js", "types/**/*.js", "test/**/*.js"], "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", + "checkJs": true, + "skipLibCheck": true, + "target": "es2022", // Tells TypeScript to read JS files, as // normally they are ignored as source files "allowJs": true, diff --git a/jsconfig.json b/tsconfig.npmScripts.json similarity index 90% rename from jsconfig.json rename to tsconfig.npmScripts.json index 1add30d47..46d653137 100644 --- a/jsconfig.json +++ b/tsconfig.npmScripts.json @@ -2,7 +2,7 @@ "include": ["lib/**/*.js", "types/**/*.js", "test/**/*.js"], "exclude": ["node_modules"], "compilerOptions": { - "module": "NodeNext", + "module": "nodenext", "moduleResolution": "nodenext", "target": "es2022", "checkJs": true, diff --git a/tsconfig.precommit.json b/tsconfig.precommit.json new file mode 100644 index 000000000..56a2805ee --- /dev/null +++ b/tsconfig.precommit.json @@ -0,0 +1,26 @@ +{ + // Change this to match your project + "include": ["lib/**/*.js"], + "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", + "target": "es2022", + "checkJs": true, + "skipLibCheck": true, + // Tells TypeScript to read JS files, as + // normally they are ignored as source files + "allowJs": true, + // Generate d.ts files + "declaration": true, + // This compiler run should + // only output d.ts files + "emitDeclarationOnly": true, + // Types should go into this directory. + // Removing this would place the .d.ts files + // next to the .js files + "outDir": "@types", + // go to js file when using IDE functions like + // "Go to Definition" in VSCode + "declarationMap": true + } +} diff --git a/types/mcdev.d.js b/types/mcdev.d.js index 2423c69bd..94d86b88a 100644 --- a/types/mcdev.d.js +++ b/types/mcdev.d.js @@ -156,7 +156,7 @@ * @property {number} [Client.ID] EID e.g:7281698 * @property {number} [Client.ModifiedBy] AccountUserID of user who last modified this user * @property {'User'|'Installed Package'} c__type - - * @property {boolean|string} [IsLocked] (API only) + * @property {boolean} [IsLocked] (API only) * @property {boolean} [Unlock] used to unlock a user that has IsLocked === true * @property {boolean} c__IsLocked_readOnly copy of IsLocked * @property {string} c__TimeZoneName name of timezone @@ -175,11 +175,17 @@ * @typedef {Object.} UserDocumentMap key=customer key */ /** - * @typedef {UserDocument & object} UserDocumentDocument - * @property {boolean | string} ActiveFlag user.ActiveFlag === true ? '✓' : '-' - * @property {boolean | string} IsAPIUser user.IsAPIUser === true ? '✓' : '-' - * @property {boolean | string} MustChangePassword user.MustChangePassword === true ? '✓' : '-' - * @property {number | string} DefaultBusinessUnit default MID; BUName after we resolved it + * @typedef {object} UserDocumentDocumentHelper + * @property {string} ActiveFlagDocs docs: user.ActiveFlag === true ? '✓' : '-' + * @property {string} IsAPIUserDocs docs: user.IsAPIUser === true ? '✓' : '-' + * @property {string} MustChangePasswordDocs docs: user.MustChangePassword === true ? '✓' : '-' + * @property {string} DefaultBusinessUnitDocs docs: default MID; BUName after we resolved it + * @property {string} RolesDocs docs: list of roles as concatenated string + * @property {string} AssociatedBusDocs docs: list of associated BUs as concatenated string + * @property {string | number} ModifiedBy docs: user name who last modified this user + * @property {string} TimeZoneName docs: name of timezone + * @property {string} IsLockedDocs docs: if the user cannot login + * @typedef {UserDocument & UserDocumentDocumentHelper} UserDocumentDocument */ /** * @typedef {object} AccountUserConfiguration @@ -326,16 +332,9 @@ * @typedef {import('simple-git').DiffResultTextFile & McdevDeltaPkgItem} DeltaPkgItem */ /** - * @typedef {import('sfmc-sdk/auth').default} SDKauth - * @typedef {import('sfmc-sdk/rest').default} SDKrest - * @typedef {import('sfmc-sdk/soap').default} SDKsoap * @typedef {import('sfmc-sdk/util').RestError} RestError * @typedef {import('sfmc-sdk/util').SOAPError} SOAPError * @typedef {SOAPError & RestError} SDKError - * @typedef {object} SDK - * @property {SDKauth} auth SDKauth - * @property {SDKrest} rest SDKrest - * @property {SDKsoap} soap SDKsoap */ /**