mcdev 7.0.1 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
- package/.github/workflows/coverage-base-update.yml +2 -2
- package/.github/workflows/coverage.yml +1 -1
- package/@types/lib/index.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Asset.d.ts +11 -10
- package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Automation.d.ts +0 -6
- package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtension.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Folder.d.ts +1 -0
- package/@types/lib/metadataTypes/Folder.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Journey.d.ts +14 -8
- package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MetadataType.d.ts +2 -2
- package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/definitions/Folder.definition.d.ts +1 -0
- package/@types/lib/util/init.config.d.ts +20 -4
- package/@types/lib/util/init.config.d.ts.map +1 -1
- package/@types/lib/util/init.npm.d.ts.map +1 -1
- package/@types/lib/util/replaceContentBlockReference.d.ts +7 -6
- package/@types/lib/util/replaceContentBlockReference.d.ts.map +1 -1
- package/boilerplate/files/eslint.config.js +82 -0
- package/boilerplate/forcedUpdates.json +5 -0
- package/boilerplate/npm-dependencies.json +2 -0
- package/eslint.config.js +143 -0
- package/lib/index.js +5 -2
- package/lib/metadataTypes/Asset.js +11 -5
- package/lib/metadataTypes/Automation.js +27 -46
- package/lib/metadataTypes/DataExtension.js +9 -7
- package/lib/metadataTypes/Folder.js +33 -20
- package/lib/metadataTypes/Journey.js +2 -5
- package/lib/metadataTypes/MetadataType.js +6 -1
- package/lib/metadataTypes/definitions/Automation.definition.js +1 -0
- package/lib/metadataTypes/definitions/Folder.definition.js +2 -0
- package/lib/util/init.config.js +79 -32
- package/lib/util/init.npm.js +8 -0
- package/lib/util/replaceContentBlockReference.js +2 -2
- package/package.json +8 -6
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/resources/9999999/automation/create-callout-expected.json +66 -0
- package/test/resources/9999999/automation/update-callout-expected.json +68 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +7 -7
- package/test/type.automation.test.js +46 -0
- package/test/utils.js +28 -3
- package/.eslintignore +0 -3
- package/.eslintrc.json +0 -116
- package/boilerplate/files/.eslintignore +0 -5
- package/boilerplate/files/.eslintrc +0 -37
package/.eslintrc.json
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"es6": true,
|
|
4
|
-
"node": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"eslint:recommended",
|
|
8
|
-
"ssjs",
|
|
9
|
-
"plugin:jsdoc/recommended",
|
|
10
|
-
"plugin:prettier/recommended",
|
|
11
|
-
"plugin:unicorn/recommended"
|
|
12
|
-
],
|
|
13
|
-
"plugins": ["prettier"],
|
|
14
|
-
"globals": {
|
|
15
|
-
"Atomics": "readonly",
|
|
16
|
-
"SharedArrayBuffer": "readonly"
|
|
17
|
-
},
|
|
18
|
-
"parserOptions": {
|
|
19
|
-
"ecmaVersion": 2022,
|
|
20
|
-
"sourceType": "module"
|
|
21
|
-
},
|
|
22
|
-
"root": true,
|
|
23
|
-
"settings": {
|
|
24
|
-
"jsdoc": {
|
|
25
|
-
"mode": "typescript",
|
|
26
|
-
"preferredTypes": {
|
|
27
|
-
"array": "Array",
|
|
28
|
-
"array.<>": "[]",
|
|
29
|
-
"Array.<>": "[]",
|
|
30
|
-
"array<>": "[]",
|
|
31
|
-
"Array<>": "[]",
|
|
32
|
-
"Object": "object",
|
|
33
|
-
"object.<>": "Object.<>",
|
|
34
|
-
"object<>": "Object.<>",
|
|
35
|
-
"Object<>": "Object.<>",
|
|
36
|
-
"set": "Set",
|
|
37
|
-
"set.<>": "Set.<>",
|
|
38
|
-
"set<>": "Set.<>",
|
|
39
|
-
"Set<>": "Set.<>",
|
|
40
|
-
"promise": "Promise",
|
|
41
|
-
"promise.<>": "Promise.<>",
|
|
42
|
-
"promise<>": "Promise.<>",
|
|
43
|
-
"Promise<>": "Promise.<>"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"rules": {
|
|
48
|
-
"logical-assignment-operators": ["error", "always"],
|
|
49
|
-
"unicorn/better-regex": "off",
|
|
50
|
-
"unicorn/catch-error-name": [
|
|
51
|
-
"error",
|
|
52
|
-
{
|
|
53
|
-
"name": "ex"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"unicorn/explicit-length-check": "off",
|
|
57
|
-
"unicorn/no-null": "off",
|
|
58
|
-
"unicorn/prefer-module": "off",
|
|
59
|
-
"unicorn/prevent-abbreviations": "off",
|
|
60
|
-
"unicorn/filename-case": "off",
|
|
61
|
-
"unicorn/no-array-callback-reference": "off",
|
|
62
|
-
"unicorn/no-array-reduce": "off",
|
|
63
|
-
"unicorn/no-await-expression-member": "off",
|
|
64
|
-
"unicorn/no-hex-escape": "off",
|
|
65
|
-
"unicorn/no-nested-ternary": "off",
|
|
66
|
-
"unicorn/no-static-only-class": "off",
|
|
67
|
-
"unicorn/no-unused-properties": "warn",
|
|
68
|
-
"unicorn/numeric-separators-style": "off",
|
|
69
|
-
"unicorn/prefer-array-some": "off",
|
|
70
|
-
"unicorn/prefer-set-has": "off",
|
|
71
|
-
"unicorn/prefer-spread": "off",
|
|
72
|
-
"unicorn/prefer-string-replace-all": "error",
|
|
73
|
-
"arrow-body-style": ["error", "as-needed"],
|
|
74
|
-
"curly": "error",
|
|
75
|
-
"no-console": "error",
|
|
76
|
-
"jsdoc/check-line-alignment": 2,
|
|
77
|
-
"jsdoc/require-jsdoc": [
|
|
78
|
-
"warn",
|
|
79
|
-
{
|
|
80
|
-
"require": {
|
|
81
|
-
"FunctionDeclaration": true,
|
|
82
|
-
"MethodDefinition": true,
|
|
83
|
-
"ClassDeclaration": true,
|
|
84
|
-
"ArrowFunctionExpression": false,
|
|
85
|
-
"FunctionExpression": true
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"jsdoc/require-param-type": "error",
|
|
90
|
-
"jsdoc/tag-lines": ["warn", "any", { "startLines": 1 }],
|
|
91
|
-
"jsdoc/no-undefined-types": "error",
|
|
92
|
-
"valid-jsdoc": "off",
|
|
93
|
-
"spaced-comment": ["warn", "always", { "block": { "exceptions": ["*"], "balanced": true } }]
|
|
94
|
-
},
|
|
95
|
-
"overrides": [
|
|
96
|
-
{
|
|
97
|
-
"files": ["*.js"],
|
|
98
|
-
"rules": {
|
|
99
|
-
"no-var": "error",
|
|
100
|
-
"prefer-const": "error",
|
|
101
|
-
"prettier/prettier": "warn",
|
|
102
|
-
"prefer-arrow-callback": "warn"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"files": ["test/*.js"],
|
|
107
|
-
|
|
108
|
-
"extends": ["plugin:mocha/recommended"],
|
|
109
|
-
"plugins": ["mocha"],
|
|
110
|
-
"rules": {
|
|
111
|
-
"mocha/no-mocha-arrows": "off",
|
|
112
|
-
"mocha/no-pending-tests": "off"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["eslint:recommended", "prettier", "ssjs"],
|
|
3
|
-
"plugins": ["jsdoc", "prettier"],
|
|
4
|
-
"rules": {
|
|
5
|
-
"padded-blocks": "off",
|
|
6
|
-
"prefer-rest-params": "off",
|
|
7
|
-
"prefer-spread": "off",
|
|
8
|
-
"require-jsdoc": [
|
|
9
|
-
"warn",
|
|
10
|
-
{
|
|
11
|
-
"require": {
|
|
12
|
-
"FunctionDeclaration": true,
|
|
13
|
-
"MethodDefinition": true,
|
|
14
|
-
"ClassDeclaration": true,
|
|
15
|
-
"ArrowFunctionExpression": false,
|
|
16
|
-
"FunctionExpression": true
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"valid-jsdoc": "warn",
|
|
21
|
-
"spaced-comment": ["warn", "always", { "block": { "exceptions": ["*"], "balanced": true } }]
|
|
22
|
-
},
|
|
23
|
-
"overrides": [
|
|
24
|
-
{
|
|
25
|
-
"files": ["*.js"],
|
|
26
|
-
"env": { "es6": true },
|
|
27
|
-
"parserOptions": {
|
|
28
|
-
"ecmaVersion": 2018
|
|
29
|
-
},
|
|
30
|
-
"rules": {
|
|
31
|
-
"no-var": "error",
|
|
32
|
-
"prefer-const": "error",
|
|
33
|
-
"prettier/prettier": "warn"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|