@salesforce/plugin-custom-metadata 1.0.11 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -7
- package/LICENSE.txt +2 -2
- package/README.md +153 -149
- package/lib/commands/force/cmdt/create.d.ts +12 -6
- package/lib/commands/force/cmdt/create.js +80 -82
- package/lib/commands/force/cmdt/create.js.map +1 -1
- package/lib/commands/force/cmdt/field/create.d.ts +10 -5
- package/lib/commands/force/cmdt/field/create.js +98 -90
- package/lib/commands/force/cmdt/field/create.js.map +1 -1
- package/lib/commands/force/cmdt/generate.d.ts +12 -8
- package/lib/commands/force/cmdt/generate.js +199 -257
- package/lib/commands/force/cmdt/generate.js.map +1 -1
- package/lib/commands/force/cmdt/record/create.d.ts +20 -9
- package/lib/commands/force/cmdt/record/create.js +123 -125
- package/lib/commands/force/cmdt/record/create.js.map +1 -1
- package/lib/commands/force/cmdt/record/insert.d.ts +7 -7
- package/lib/commands/force/cmdt/record/insert.js +97 -109
- package/lib/commands/force/cmdt/record/insert.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/lib/helpers/createUtil.d.ts +10 -6
- package/lib/lib/helpers/createUtil.js +50 -98
- package/lib/lib/helpers/createUtil.js.map +1 -1
- package/lib/lib/helpers/fileWriter.d.ts +13 -11
- package/lib/lib/helpers/fileWriter.js +19 -27
- package/lib/lib/helpers/fileWriter.js.map +1 -1
- package/lib/lib/helpers/metadataUtil.d.ts +25 -51
- package/lib/lib/helpers/metadataUtil.js +58 -127
- package/lib/lib/helpers/metadataUtil.js.map +1 -1
- package/lib/lib/helpers/validationUtil.d.ts +25 -26
- package/lib/lib/helpers/validationUtil.js +69 -43
- package/lib/lib/helpers/validationUtil.js.map +1 -1
- package/lib/lib/interfaces/createConfig.d.ts +3 -2
- package/lib/lib/interfaces/createConfig.js +3 -3
- package/lib/lib/templates/templates.d.ts +10 -99
- package/lib/lib/templates/templates.js +52 -40
- package/lib/lib/templates/templates.js.map +1 -1
- package/messages/createField.json +22 -31
- package/messages/generate.json +38 -51
- package/messages/template.json +2 -2
- package/messages/validation.json +5 -0
- package/oclif.manifest.json +1 -1
- package/package.json +57 -46
- package/lib/lib/interfaces/customField.d.ts +0 -7
- package/lib/lib/interfaces/customField.js +0 -9
- package/lib/lib/interfaces/customField.js.map +0 -1
- package/lib/lib/interfaces/errorMessage.d.ts +0 -4
- package/lib/lib/interfaces/errorMessage.js +0 -9
- package/lib/lib/interfaces/errorMessage.js.map +0 -1
- package/lib/lib/interfaces/record.d.ts +0 -3
- package/lib/lib/interfaces/record.js +0 -9
- package/lib/lib/interfaces/record.js.map +0 -1
- package/lib/lib/interfaces/saveResults.d.ts +0 -5
- package/lib/lib/interfaces/saveResults.js +0 -9
- package/lib/lib/interfaces/saveResults.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-custom-metadata",
|
|
3
3
|
"description": "Tools for working with custom metadata types and their records.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Carolyn Grabill",
|
|
@@ -42,42 +42,50 @@
|
|
|
42
42
|
],
|
|
43
43
|
"bugs": "https://github.com/salesforcecli/plugin-custom-metadata/issues",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@oclif/
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@salesforce/
|
|
49
|
-
"
|
|
50
|
-
"tslib": "^2
|
|
45
|
+
"@oclif/core": "^1.9.0",
|
|
46
|
+
"@salesforce/command": "^5.1.2",
|
|
47
|
+
"@salesforce/core": "^3.19.0",
|
|
48
|
+
"@salesforce/ts-types": "^1.5.20",
|
|
49
|
+
"fast-xml-parser": "^4.0.7",
|
|
50
|
+
"tslib": "^2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@oclif/
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@salesforce/
|
|
58
|
-
"@salesforce/
|
|
59
|
-
"@salesforce/
|
|
60
|
-
"@salesforce/ts-sinon": "^1.1.2",
|
|
53
|
+
"@oclif/plugin-command-snapshot": "^3.1.3",
|
|
54
|
+
"@salesforce/cli-plugins-testkit": "^1.5.35",
|
|
55
|
+
"@salesforce/dev-config": "^3.0.1",
|
|
56
|
+
"@salesforce/dev-scripts": "^2.0.2",
|
|
57
|
+
"@salesforce/plugin-command-reference": "^1.3.17",
|
|
58
|
+
"@salesforce/prettier-config": "^0.0.2",
|
|
59
|
+
"@salesforce/ts-sinon": "^1.3.21",
|
|
61
60
|
"@semantic-release/git": "^9.0.0",
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"
|
|
65
|
-
"@types/node": "^14.0.9",
|
|
66
|
-
"@types/xml2js": "^0.4.5",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
|
62
|
+
"@typescript-eslint/parser": "^4.2.0",
|
|
63
|
+
"bluebird": "3.7.2",
|
|
67
64
|
"chai": "^4.2.0",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
65
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
66
|
+
"eslint": "^7.27.0",
|
|
67
|
+
"eslint-config-prettier": "^6.15.0",
|
|
68
|
+
"eslint-config-salesforce": "^0.1.6",
|
|
69
|
+
"eslint-config-salesforce-license": "^0.1.6",
|
|
70
|
+
"eslint-config-salesforce-typescript": "^0.2.8",
|
|
71
|
+
"eslint-plugin-header": "^3.1.1",
|
|
72
|
+
"eslint-plugin-import": "^2.26.0",
|
|
73
|
+
"eslint-plugin-jsdoc": "^39.3.2",
|
|
74
|
+
"eslint-plugin-prettier": "^3.4.1",
|
|
75
|
+
"husky": "^7.0.4",
|
|
76
|
+
"jsforce": "2.0.0-beta.10",
|
|
77
|
+
"mocha": "^9.1.3",
|
|
71
78
|
"nyc": "^15.1.0",
|
|
72
|
-
"
|
|
79
|
+
"oclif": "^3.0.1",
|
|
80
|
+
"prettier": "^2.6.2",
|
|
81
|
+
"pretty-quick": "^3.1.0",
|
|
73
82
|
"shx": "0.2.2",
|
|
74
|
-
"sinon": "
|
|
75
|
-
"ts-node": "^
|
|
76
|
-
"typescript": "^3.
|
|
77
|
-
"xml2js": "^0.4.23"
|
|
83
|
+
"sinon": "10.0.0",
|
|
84
|
+
"ts-node": "^10.0.0",
|
|
85
|
+
"typescript": "^4.3.2"
|
|
78
86
|
},
|
|
79
87
|
"engines": {
|
|
80
|
-
"node": ">=
|
|
88
|
+
"node": ">=14.0.0"
|
|
81
89
|
},
|
|
82
90
|
"files": [
|
|
83
91
|
"/csvtojson",
|
|
@@ -116,28 +124,31 @@
|
|
|
116
124
|
},
|
|
117
125
|
"repository": "github:salesforcecli/plugin-custom-metadata",
|
|
118
126
|
"scripts": {
|
|
127
|
+
"build": "sf-build",
|
|
128
|
+
"clean": "sf-clean",
|
|
129
|
+
"clean-all": "sf-clean all",
|
|
119
130
|
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
120
|
-
"compile": "
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"test
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
"compile": "sf-compile",
|
|
132
|
+
"docs": "sf-docs",
|
|
133
|
+
"format": "sf-format",
|
|
134
|
+
"lint": "sf-lint",
|
|
135
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
136
|
+
"posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema",
|
|
137
|
+
"prepack": "sf-prepack",
|
|
138
|
+
"prepare": "sf-install",
|
|
139
|
+
"pretest": "sf-compile-test",
|
|
140
|
+
"test": "sf-test",
|
|
141
|
+
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
142
|
+
"test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
|
|
143
|
+
"test:deprecation-policy": "./bin/dev snapshot:compare",
|
|
144
|
+
"test:json-schema": "./bin/dev schema:compare",
|
|
145
|
+
"version": "oclif readme"
|
|
135
146
|
},
|
|
136
147
|
"publishConfig": {
|
|
137
148
|
"access": "public"
|
|
138
149
|
},
|
|
139
150
|
"sfdx": {
|
|
140
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/
|
|
141
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/
|
|
151
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-custom-metadata/2.0.0.crt",
|
|
152
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-custom-metadata/2.0.0.sig"
|
|
142
153
|
}
|
|
143
154
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2018-2020, salesforce.com, inc.
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
//# sourceMappingURL=customField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customField.js","sourceRoot":"","sources":["../../../src/lib/interfaces/customField.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2018-2020, salesforce.com, inc.
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
//# sourceMappingURL=errorMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorMessage.js","sourceRoot":"","sources":["../../../src/lib/interfaces/errorMessage.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2018-2020, salesforce.com, inc.
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
//# sourceMappingURL=record.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../../src/lib/interfaces/record.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2018-2020, salesforce.com, inc.
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
//# sourceMappingURL=saveResults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saveResults.js","sourceRoot":"","sources":["../../../src/lib/interfaces/saveResults.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|