@salesforce/plugin-custom-metadata 2.0.0 → 2.0.2
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/lib/commands/force/cmdt/create.js.map +1 -1
- package/lib/commands/force/cmdt/field/create.js.map +1 -1
- package/lib/commands/force/cmdt/generate.js +1 -3
- package/lib/commands/force/cmdt/generate.js.map +1 -1
- package/lib/commands/force/cmdt/record/create.js.map +1 -1
- package/lib/lib/helpers/createUtil.d.ts +0 -27
- package/lib/lib/helpers/createUtil.js +41 -40
- package/lib/lib/helpers/createUtil.js.map +1 -1
- package/lib/lib/helpers/fileWriter.js +2 -0
- package/lib/lib/helpers/fileWriter.js.map +1 -1
- package/lib/lib/helpers/metadataUtil.js +25 -31
- package/lib/lib/helpers/metadataUtil.js.map +1 -1
- package/lib/lib/helpers/validationUtil.js +1 -3
- package/lib/lib/helpers/validationUtil.js.map +1 -1
- package/lib/lib/templates/templates.js +1 -0
- package/lib/lib/templates/templates.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +19 -21
- package/CHANGELOG.md +0 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/force/cmdt/create.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAA4C;AAC5C,gEAA6D;AAC7D,wEAAsG;AACtG,gEAA6D;AAE7D,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,YAAY,CAAC,CAAC;AAQ3F,MAAqB,MAAO,SAAQ,qBAAW;IAyD7C,8DAA8D;IACvD,KAAK,CAAC,GAAG;;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAkB,CAAC,CAAC,u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,CAAC,UAAU,CAAC,mCAAmC,CAAC;KAC1E,CAAC;IACF,aAAa,EAAE,eAAK,CAAC,MAAM,CAAC;QAC1B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC;QAChE,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,kCAAkC,CAAC;QACxE,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,CAAC;KACP,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;QACxD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KACjE,CAAC;IACF,SAAS,EAAE,eAAK,CAAC,SAAS,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,gCAAgC,CAAC;QAClE,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,oCAAoC,CAAC;QAC1E,OAAO,EAAE,EAAE;KACZ,CAAC;CACH,CAAC;AAEe,sBAAe,GAAG,IAAI,CAAC"}
|
|
@@ -196,9 +196,7 @@ Generate.requiresUsername = true;
|
|
|
196
196
|
Generate.requiresProject = true;
|
|
197
197
|
const getSoqlQuery = (describeResult) => {
|
|
198
198
|
const fieldNames = describeResult.fields
|
|
199
|
-
.map((field) =>
|
|
200
|
-
return field.fullName;
|
|
201
|
-
})
|
|
199
|
+
.map((field) => field.fullName)
|
|
202
200
|
.join(',');
|
|
203
201
|
// Added Name hardcoded as Name field is not retrieved as part of object describe.
|
|
204
202
|
return `SELECT Name, ${fieldNames} FROM ${describeResult.fullName}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../src/commands/force/cmdt/generate.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,6BAA6B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
|
-
/**
|
|
63
|
-
* Get the number type based on the scale.
|
|
64
|
-
* If the scale === 0, it is an int, otherwise it is a double.
|
|
65
|
-
*
|
|
66
|
-
* @param type Number or Percent
|
|
67
|
-
* @param scale 0 or another number
|
|
68
|
-
* @return {string} int or double
|
|
69
|
-
*/
|
|
70
|
-
private getNumberType;
|
|
71
|
-
/**
|
|
72
|
-
* Template for a single customMetadata record value. This is used by helper.getRecordTemplate.
|
|
73
|
-
*
|
|
74
|
-
* @param fieldName Field API Name (i.e, Foo__c)
|
|
75
|
-
* @param val Value of the field
|
|
76
|
-
* @param type Field type (i.e. boolean, dateTime, date, string, double)
|
|
77
|
-
* @return {string} String representation of XML
|
|
78
|
-
*/
|
|
79
|
-
private getFieldTemplate;
|
|
80
|
-
/**
|
|
81
|
-
* Template to compile entire customMetadata record
|
|
82
|
-
*
|
|
83
|
-
* @param label Name of the record
|
|
84
|
-
* @param protection Is the record protected?
|
|
85
|
-
* @param values Template string representation of values
|
|
86
|
-
* @return {string} String representation of XML
|
|
87
|
-
*/
|
|
88
|
-
private getRecordTemplate;
|
|
89
62
|
}
|
|
@@ -37,7 +37,7 @@ class CreateUtil {
|
|
|
37
37
|
*/
|
|
38
38
|
async createRecord(createConfig) {
|
|
39
39
|
const outputFilePath = path.join(createConfig.outputdir, `${createConfig.typename}.${createConfig.recordname}.md-meta.xml`);
|
|
40
|
-
const newRecordContent =
|
|
40
|
+
const newRecordContent = getRecordTemplate(createConfig.label, createConfig.protected, this.buildCustomFieldXml(createConfig.fileData, createConfig.varargs, createConfig.ignorefields));
|
|
41
41
|
return fs.promises.writeFile(outputFilePath, newRecordContent);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
@@ -46,6 +46,7 @@ class CreateUtil {
|
|
|
46
46
|
* @param fileNames filenames in that folder that should be read
|
|
47
47
|
* @returns CustomField[]
|
|
48
48
|
*/
|
|
49
|
+
// eslint-disable-next-line class-methods-use-this
|
|
49
50
|
async getFileData(fieldDirPath, fileNames) {
|
|
50
51
|
const parser = new fast_xml_parser_1.XMLParser();
|
|
51
52
|
return Promise.all(fileNames
|
|
@@ -60,6 +61,7 @@ class CreateUtil {
|
|
|
60
61
|
*
|
|
61
62
|
* @param typename Name of file
|
|
62
63
|
*/
|
|
64
|
+
// eslint-disable-next-line class-methods-use-this
|
|
63
65
|
appendDirectorySuffix(typename) {
|
|
64
66
|
return typename.endsWith('__mdt') ? typename : `${typename}__mdt`;
|
|
65
67
|
}
|
|
@@ -70,11 +72,12 @@ class CreateUtil {
|
|
|
70
72
|
* @param fieldName Name of the field
|
|
71
73
|
* @return {string} Type used by a custom metadata record
|
|
72
74
|
*/
|
|
75
|
+
// eslint-disable-next-line class-methods-use-this
|
|
73
76
|
getFieldPrimitiveType(fileData = [], fieldName) {
|
|
74
77
|
var _a;
|
|
75
78
|
const matchingFile = fileData.find((file) => file.fullName === fieldName);
|
|
76
79
|
return matchingFile && ['Number', 'Percent'].includes(matchingFile.type)
|
|
77
|
-
?
|
|
80
|
+
? getNumberType(matchingFile.type, matchingFile.scale)
|
|
78
81
|
: (_a = fieldTypeMap[matchingFile === null || matchingFile === void 0 ? void 0 : matchingFile.type]) !== null && _a !== void 0 ? _a : 'string';
|
|
79
82
|
}
|
|
80
83
|
/**
|
|
@@ -84,6 +87,7 @@ class CreateUtil {
|
|
|
84
87
|
* @param fieldName Name of the field
|
|
85
88
|
* @return {string} Data Type of the field.
|
|
86
89
|
*/
|
|
90
|
+
// eslint-disable-next-line class-methods-use-this
|
|
87
91
|
getFieldDataType(fileData = [], fieldName = '') {
|
|
88
92
|
var _a;
|
|
89
93
|
return (_a = fileData.find((file) => file.fullName === fieldName)) === null || _a === void 0 ? void 0 : _a.type;
|
|
@@ -96,6 +100,7 @@ class CreateUtil {
|
|
|
96
100
|
* @param nameField name of the column that is going to be used for the name of the metadata record
|
|
97
101
|
* @return [] Array of field names
|
|
98
102
|
*/
|
|
103
|
+
// eslint-disable-next-line class-methods-use-this
|
|
99
104
|
getFieldNames(fileData, nameField) {
|
|
100
105
|
return [...fileData.map((file) => file.fullName), nameField];
|
|
101
106
|
}
|
|
@@ -115,55 +120,51 @@ class CreateUtil {
|
|
|
115
120
|
const dataType = this.getFieldDataType(fileData, fieldName);
|
|
116
121
|
// Added functionality to handle the igonre fields scenario.
|
|
117
122
|
if (templates.canConvert(dataType) || !ignoreFields) {
|
|
118
|
-
ret +=
|
|
123
|
+
ret += getFieldTemplate(fieldName, cliParams[fieldName], type);
|
|
119
124
|
}
|
|
120
125
|
}
|
|
121
126
|
return ret;
|
|
122
127
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
128
|
+
}
|
|
129
|
+
exports.CreateUtil = CreateUtil;
|
|
130
|
+
/**
|
|
131
|
+
* Get the number type based on the scale.
|
|
132
|
+
* If the scale === 0, it is an int, otherwise it is a double.
|
|
133
|
+
*
|
|
134
|
+
* @param type Number or Percent
|
|
135
|
+
* @param scale 0 or another number
|
|
136
|
+
* @return {string} int or double
|
|
137
|
+
*/
|
|
138
|
+
const getNumberType = (type, scale) => ['Number', 'Percent'].includes(type) && scale === 0 ? 'int' : 'double';
|
|
139
|
+
/**
|
|
140
|
+
* Template for a single customMetadata record value. This is used by helper.getRecordTemplate.
|
|
141
|
+
*
|
|
142
|
+
* @param fieldName Field API Name (i.e, Foo__c)
|
|
143
|
+
* @param val Value of the field
|
|
144
|
+
* @param type Field type (i.e. boolean, dateTime, date, string, double)
|
|
145
|
+
* @return {string} String representation of XML
|
|
146
|
+
*/
|
|
147
|
+
const getFieldTemplate = (fieldName, val, type) => {
|
|
148
|
+
const cleanValue = String(val).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
149
|
+
const value = val === null || val === '' ? '<value xsi:nil="true"/>' : `<value xsi:type="xsd:${type}">${cleanValue}</value>`;
|
|
150
|
+
return `
|
|
146
151
|
<values>
|
|
147
152
|
<field>${fieldName}</field>
|
|
148
153
|
${value}
|
|
149
154
|
</values>`;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return `
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Template to compile entire customMetadata record
|
|
158
|
+
*
|
|
159
|
+
* @param label Name of the record
|
|
160
|
+
* @param protection Is the record protected?
|
|
161
|
+
* @param values Template string representation of values
|
|
162
|
+
* @return {string} String representation of XML
|
|
163
|
+
*/
|
|
164
|
+
const getRecordTemplate = (label, protection, values) => `
|
|
161
165
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
162
166
|
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
163
167
|
<label>${label}</label>
|
|
164
168
|
<protected>${protection}</protected>${values}
|
|
165
169
|
</CustomMetadata>`.trim();
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
exports.CreateUtil = CreateUtil;
|
|
169
170
|
//# sourceMappingURL=createUtil.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUtil.js","sourceRoot":"","sources":["../../../src/lib/helpers/createUtil.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,6BAA6B;AAE7B,qDAA4C;AAE5C,sDAAmD;AAMnD,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,SAAS;IACnB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,KA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F;QAED,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAzHD,gCAyHC;AAED;;;;;;;GAOG;AACH,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,KAAa,EAAoB,EAAE,CACtE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,gBAAgB,GAAG,CAAC,SAAiB,EAAE,GAAW,EAAE,IAAY,EAAU,EAAE;IAChF,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAClG,MAAM,KAAK,GACT,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,wBAAwB,IAAI,KAAK,UAAU,UAAU,CAAC;IAEjH,OAAO;;iBAEQ,SAAS;UAChB,KAAK;cACD,CAAC;AACf,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAE,UAAmB,EAAE,MAAc,EAAU,EAAE,CACvF;;;aAGW,KAAK;iBACD,UAAU,eAAe,MAAM;kBAC9B,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -17,6 +17,7 @@ class FileWriter {
|
|
|
17
17
|
* @param devname
|
|
18
18
|
* @param objectXML
|
|
19
19
|
*/
|
|
20
|
+
// eslint-disable-next-line class-methods-use-this
|
|
20
21
|
async writeTypeFile(corefs = fs, dir, devName, objectXML) {
|
|
21
22
|
let apiName = devName;
|
|
22
23
|
// replace __c with __mdt
|
|
@@ -42,6 +43,7 @@ class FileWriter {
|
|
|
42
43
|
* @param fieldXML
|
|
43
44
|
*/
|
|
44
45
|
// /fields/{fieldAPI}.field-meta.xml
|
|
46
|
+
// eslint-disable-next-line class-methods-use-this
|
|
45
47
|
async writeFieldFile(corefs = fs, dir, fieldName, fieldXML) {
|
|
46
48
|
// appending __c if its not already there
|
|
47
49
|
if (fieldName.endsWith('__c') === false) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileWriter.js","sourceRoot":"","sources":["../../../src/lib/helpers/fileWriter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,6BAA6B;AAQ7B,MAAa,UAAU;IACrB;;;;;;OAMG;
|
|
1
|
+
{"version":3,"file":"fileWriter.js","sourceRoot":"","sources":["../../../src/lib/helpers/fileWriter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,6BAA6B;AAQ7B,MAAa,UAAU;IACrB;;;;;;OAMG;IACH,kDAAkD;IAC3C,KAAK,CAAC,aAAa,CAAC,MAAM,GAAG,EAAE,EAAE,GAAW,EAAE,OAAe,EAAE,SAAiB;QACrF,IAAI,OAAO,GAAG,OAAO,CAAC;QAEtB,yBAAyB;QACzB,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SAC3C;QAED,8CAA8C;QAC9C,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC9B,OAAO,IAAI,OAAO,CAAC;SACpB;QAED,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,IAAA,2BAAmB,EAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,GAAG,OAAO,kBAAkB,CAAC;QAC9C,MAAM,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CA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AAG,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAAvE,QAAA,mBAAmB,uBAAoD"}
|
|
@@ -14,9 +14,7 @@ exports.cleanQueryResponse = exports.describeObjFields = exports.validCustomSett
|
|
|
14
14
|
* @param fieldName API name of the field to query
|
|
15
15
|
* @returns Promise - Promise - record in JSON format
|
|
16
16
|
*/
|
|
17
|
-
const describeField = (objDescribe, fieldName) =>
|
|
18
|
-
return (0, exports.describeObjFields)(objDescribe).find((field) => field.fullName === fieldName);
|
|
19
|
-
};
|
|
17
|
+
const describeField = (objDescribe, fieldName) => (0, exports.describeObjFields)(objDescribe).find((field) => field.fullName === fieldName);
|
|
20
18
|
exports.describeField = describeField;
|
|
21
19
|
/**
|
|
22
20
|
* Returns true if the object name you specify is a list type custom setting
|
|
@@ -32,34 +30,30 @@ exports.validCustomSettingType = validCustomSettingType;
|
|
|
32
30
|
* @param objDescribe object describe JSON
|
|
33
31
|
* @returns Promise - Promise - record in JSON format
|
|
34
32
|
*/
|
|
35
|
-
const describeObjFields = (objDescribe) =>
|
|
36
|
-
return objDescribe.fields;
|
|
37
|
-
};
|
|
33
|
+
const describeObjFields = (objDescribe) => objDescribe.fields;
|
|
38
34
|
exports.describeObjFields = describeObjFields;
|
|
39
|
-
const cleanQueryResponse = (sObjectRecord, objectDescribe) =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}));
|
|
63
|
-
};
|
|
35
|
+
const cleanQueryResponse = (sObjectRecord, objectDescribe) => Object.fromEntries(Object.entries(sObjectRecord)
|
|
36
|
+
.filter(([fieldName]) => fieldName !== 'attributes' && fieldName !== 'Name')
|
|
37
|
+
.flatMap(([fieldName, value]) => {
|
|
38
|
+
const fieldDescribe = (0, exports.describeField)(objectDescribe, fieldName);
|
|
39
|
+
// everything but location returns as is
|
|
40
|
+
if (fieldDescribe.type !== 'Location') {
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
42
|
+
return [[fieldName, value]];
|
|
43
|
+
}
|
|
44
|
+
const fieldValue = JSON.stringify(value);
|
|
45
|
+
if (fieldValue.includes('latitude') || fieldValue.includes('longitude')) {
|
|
46
|
+
return [
|
|
47
|
+
[`Lat_${fieldName}`, fieldValue.slice(fieldValue.indexOf(':') + 1, fieldValue.indexOf(','))],
|
|
48
|
+
[`Long_${fieldName}`, fieldValue.slice(fieldValue.lastIndexOf(':') + 1, fieldValue.indexOf('}'))],
|
|
49
|
+
];
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return [
|
|
53
|
+
[`Lat_${fieldName}`, ''],
|
|
54
|
+
[`Long_${fieldName}`, ''],
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
}));
|
|
64
58
|
exports.cleanQueryResponse = cleanQueryResponse;
|
|
65
59
|
//# sourceMappingURL=metadataUtil.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadataUtil.js","sourceRoot":"","sources":["../../../src/lib/helpers/metadataUtil.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH;;;;;;GAMG;AACI,MAAM,aAAa,GAAG,CAAC,WAAyB,EAAE,SAAiB,EAAe,EAAE
|
|
1
|
+
{"version":3,"file":"metadataUtil.js","sourceRoot":"","sources":["../../../src/lib/helpers/metadataUtil.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH;;;;;;GAMG;AACI,MAAM,aAAa,GAAG,CAAC,WAAyB,EAAE,SAAiB,EAAe,EAAE,CAAC,IAAA,yBAAiB,EAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,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C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;YAC5F,CAAC,QAAQ,SAAS,EAAE,EAAE,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;SAClG,CAAC;KACH;SAAM;QACL,OAAO;YACL,CAAC,OAAO,SAAS,EAAE,EAAE,EAAE,CAAC;YACxB,CAAC,QAAQ,SAAS,EAAE,EAAE,EAAE,CAAC;SAC1B,CAAC;KACH;AACH,CAAC,CAAC,CACL,CAAC;AAvBS,QAAA,kBAAkB,sBAuB3B"}
|
|
@@ -46,9 +46,7 @@ const validateMetadataTypeName = (typeName) => {
|
|
|
46
46
|
return trimmedValue;
|
|
47
47
|
};
|
|
48
48
|
exports.validateMetadataTypeName = validateMetadataTypeName;
|
|
49
|
-
const isValidMetadataRecordName = (recordName) =>
|
|
50
|
-
return recordName.length <= 40 && /^[a-zA-Z][a-zA-Z0-9]*(_[a-zA-Z0-9]+)*$/.test(recordName);
|
|
51
|
-
};
|
|
49
|
+
const isValidMetadataRecordName = (recordName) => recordName.length <= 40 && /^[a-zA-Z][a-zA-Z0-9]*(_[a-zA-Z0-9]+)*$/.test(recordName);
|
|
52
50
|
exports.isValidMetadataRecordName = isValidMetadataRecordName;
|
|
53
51
|
/**
|
|
54
52
|
* Returns true if the fieldname is a valid metadata record name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationUtil.js","sourceRoot":"","sources":["../../../src/lib/helpers/validationUtil.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAAqD;AACrD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,oCAAoC,EAAE,YAAY,EAAE;IACjF,sBAAsB;IACtB,oBAAoB;IACpB,0BAA0B;CAC3B,CAAC,CAAC;AAEH;;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AAC,MAAM,IAAI,EAAE,IAAI,wCAAwC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAAlJ,QAAA,yBAAyB,6BAAyH;AAC/J;;;;GAIG;AACI,MAAM,0BAA0B,GAAG,CAAC,QAAgB,EAAU,EAAE;IACrE,sFAAsF;IACtF,IAAI,CAAC,IAAA,iCAAyB,EAAC,QAAQ,CAAC,EAAE;QACxC,MAAM,IAAI,cAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;KAChF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AANW,QAAA,0BAA0B,8BAMrC;AAEF;;;;GAIG;AACI,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAE,OAAe,EAAU,EAAE;IAC7E,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE;QACpB,MAAM,IAAI,cAAO,CAAC,OAAO,CAAC,CAAC;KAC5B;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AALW,QAAA,qBAAqB,yBAKhC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.Templates = void 0;
|
|
10
|
+
/* eslint-disable class-methods-use-this */
|
|
10
11
|
const core_1 = require("@salesforce/core");
|
|
11
12
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
12
13
|
const messages = core_1.Messages.load('@salesforce/plugin-custom-metadata', 'template', ['errorNotAValidType']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../src/lib/templates/templates.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAAqD;AACrD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,oCAAoC,EAAE,UAAU,EAAE,C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I,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,IAAI,gBAAgB,CAAC;YAC/B,UAAU,IAAI,mBAAmB,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,KAAK,iBAAiB,CAAC;YACpF,UAAU,IAAI,4BAA4B,CAAC;YAC3C,UAAU,IAAI,iBAAiB,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,MAAM,IAAI,KAAK,aAAa,CAAC;YAC7F,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;gBACvD,UAAU,IAAI,iBAAiB,CAAC;gBAChC,UAAU,IAAI,qBAAqB,KAAK,CAAC,QAAQ,eAAe,CAAC;gBACjE,UAAU,IAAI,oBAAoB,KAAK,CAAC,OAAO,IAAI,KAAK,cAAc,CAAC;gBACvE,UAAU,IAAI,kBAAkB,KAAK,CAAC,KAAK,YAAY,CAAC;gBACxD,UAAU,IAAI,kBAAkB,CAAC;YACnC,CAAC,CAAC,CAAC;YACH,UAAU,IAAI,6BAA6B,CAAC;YAC5C,UAAU,IAAI,iBAAiB,CAAC;SACjC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AApOD,8BAoOC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.0.0","commands":{"force:cmdt:create":{"id":"force:cmdt:create","description":"creates a new custom metadata type in the current project","strict":true,"usage":"<%= command.id %> -n <string> [-l <string>] [-p <string>] [-v PackageProtected|Protected|Public] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Create a custom metadata type with developer name 'MyCustomType'; this name will also be used as the label:"," $ sfdx force:cmdt:create --typename MyCustomType","Create a protected custom metadata type with a specific label:"," $ sfdx force:cmdt:create --typename MyCustomType --label \"Custom Type\" --plurallabel \"Custom Types\" --visibility Protected"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"typename":{"name":"typename","type":"option","char":"n","description":"unique object name for the custom metadata type","required":true,"multiple":false},"label":{"name":"label","type":"option","char":"l","description":"label for the custom metadata type","multiple":false},"plurallabel":{"name":"plurallabel","type":"option","char":"p","description":"plural version of the label value; if blank, uses label","multiple":false},"visibility":{"name":"visibility","type":"option","char":"v","description":"visibility of the custom metadata type","helpValue":"(PackageProtected|Protected|Public)","multiple":false,"options":["PackageProtected","Protected","Public"],"default":"Public"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store the newly-created custom metadata type files","multiple":false,"default":""}},"args":[{"name":"file"}],"longDescription":"Creates a new custom metadata type in the current project.","flagsConfig":{"typename":{"kind":"string","char":"n","description":"unique object name for the custom metadata type","longDescription":"The unique name of the object in the API. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.","required":true,"input":[],"multiple":false,"type":"option"},"label":{"kind":"string","char":"l","description":"label for the custom metadata type","longDescription":"A label for the custom metadata type.","input":[],"multiple":false,"type":"option"},"plurallabel":{"kind":"string","char":"p","description":"plural version of the label value; if blank, uses label","longDescription":"The plural version of the label value. If this flag is missing or blank, the singular label is used as the plural label.","input":[],"multiple":false,"type":"option"},"visibility":{"kind":"enum","helpValue":"(PackageProtected|Protected|Public)","char":"v","description":"visibility of the custom metadata type","longDescription":"The visibility of the custom metadata type.","options":["PackageProtected","Protected","Public"],"default":"Public","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store the newly-created custom metadata type files","longDescription":"The directory to store the newly-created custom metadata type files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":"","input":[],"multiple":false,"type":"option"}},"requiresProject":true},"force:cmdt:generate":{"id":"force:cmdt:generate","description":"generates a custom metadata type and all its records for the provided sObject","strict":true,"usage":"<%= command.id %> -n <string> -s <string> [-l <string>] [-p <string>] [-v PackageProtected|Protected|Public] [-i] [-d <directory>] [-r <directory>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Generate a custom metadata type from an sObject in the default target org:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname MySourceObject__c","Generate a custom metadata type from an sObject in the specified target org; ignore unsupported field types instead of converting them to text:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname MySourceObject__c --ignoreunsupported --targetusername 'alias or user email of the org containing the source type'","Generate a protected custom metadata type from an sObject in the default target org:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname SourceCustomObject__c --visibility Protected","Generate a protected custom metadata type with a specific label from an sObject in the default target org:"," $ sfdx force:cmdt:generate --devname MyCMDT --label \"My CMDT\" --plurallabel \"My CMDTs\" --sobjectname SourceCustomSetting__c --visibility Protected","Generate a custom metadata type from an sObject in the default target org; put the resulting type metadata file in the specified directory:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname SourceCustomSetting__c --typeoutputdir 'path/to/my/cmdt/directory'","Generate a custom metadata type from an sObject in the default target org; put the resulting record metadata file(s) in the specified directory:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname SourceCustomSetting__c --recordsoutputdir 'path/to/my/cmdt/record/directory'"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"devname":{"name":"devname","type":"option","char":"n","description":"name of the custom metadata type","required":true,"multiple":false},"label":{"name":"label","type":"option","char":"l","description":"label for the custom metadata type","multiple":false},"plurallabel":{"name":"plurallabel","type":"option","char":"p","description":"plural version of the label value; if blank, uses label","multiple":false},"visibility":{"name":"visibility","type":"option","char":"v","description":"visibility of the custom metadata type","helpValue":"(PackageProtected|Protected|Public)","multiple":false,"options":["PackageProtected","Protected","Public"],"default":"Public"},"sobjectname":{"name":"sobjectname","type":"option","char":"s","description":"API name of the sObject source for custom metadata generation","required":true,"multiple":false},"ignoreunsupported":{"name":"ignoreunsupported","type":"boolean","char":"i","description":"ignore unsupported field types","allowNo":false},"typeoutputdir":{"name":"typeoutputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata type files","multiple":false,"default":"force-app/main/default/objects"},"recordsoutputdir":{"name":"recordsoutputdir","type":"option","char":"r","description":"directory to store newly-created custom metadata record files","multiple":false,"default":"force-app/main/default/customMetadata"}},"args":[{"name":"file"}],"longDescription":"Generates a custom metadata type and all its records for the provided sObject.","flagsConfig":{"devname":{"kind":"string","char":"n","required":true,"description":"name of the custom metadata type","longDescription":"The name of the custom metadata type.","input":[],"multiple":false,"type":"option"},"label":{"kind":"string","char":"l","description":"label for the custom metadata type","longDescription":"The label for the custom metadata type.","input":[],"multiple":false,"type":"option"},"plurallabel":{"kind":"string","char":"p","description":"plural version of the label value; if blank, uses label","longDescription":"The plural version of the label value. If this flag is missing or blank, the singular label is used as the plural label.","input":[],"multiple":false,"type":"option"},"visibility":{"kind":"enum","helpValue":"(PackageProtected|Protected|Public)","char":"v","description":"visibility of the custom metadata type","longDescription":"The visibility of the custom metadata type.","options":["PackageProtected","Protected","Public"],"default":"Public","input":[],"multiple":false,"type":"option"},"sobjectname":{"kind":"string","char":"s","required":true,"description":"API name of the sObject source for custom metadata generation","longDescription":"The API name of the sObject source for custom metadata generation.","input":[],"multiple":false,"type":"option"},"ignoreunsupported":{"kind":"boolean","char":"i","description":"ignore unsupported field types","longDescription":"Ignore unsupported field types (these fields will not be created). The default is to create Text fields and convert the source value to text.","allowNo":false,"type":"boolean"},"typeoutputdir":{"kind":"directory","char":"d","description":"directory to store newly-created custom metadata type files","longDescription":"The directory to store newly-created custom metadata type files.","default":"force-app/main/default/objects","input":[],"multiple":false,"type":"option"},"recordsoutputdir":{"kind":"directory","char":"r","description":"directory to store newly-created custom metadata record files","longDescription":"The directory to store newly-created custom metadata record files.","default":"force-app/main/default/customMetadata","input":[],"multiple":false,"type":"option"}},"requiresUsername":true,"requiresProject":true},"force:cmdt:field:create":{"id":"force:cmdt:field:create","description":"generate a custom metadata field based on the field type provided","strict":true,"usage":"<%= command.id %> -n <string> -f Checkbox|Date|DateTime|Email|Number|Percent|Phone|Picklist|Text|TextArea|LongTextArea|Url [-p <array>] [-s <number>] [-l <string>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Create a metadata file for a custom checkbox field:"," $ sfdx force:cmdt:field:create --fieldname MyField --fieldtype Checkbox","Create a metadata file for a custom picklist field:"," $ sfdx force:cmdt:field:create --fieldname MyField --fieldtype Picklist --picklistvalues \"A,B,C\"","Create a metadata file for a custom number field:"," $ sfdx force:cmdt:field:create --fieldname MyField --fieldtype Number --decimalplaces 2"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"fieldname":{"name":"fieldname","type":"option","char":"n","description":"unique name for the field","required":true,"multiple":false},"fieldtype":{"name":"fieldtype","type":"option","char":"f","description":"type of field","required":true,"helpValue":"(Checkbox|Date|DateTime|Email|Number|Percent|Phone|Picklist|Text|TextArea|LongTextArea|Url)","multiple":false,"options":["Checkbox","Date","DateTime","Email","Number","Percent","Phone","Picklist","Text","TextArea","LongTextArea","Url"]},"picklistvalues":{"name":"picklistvalues","type":"option","char":"p","description":"comma-separated list of picklist values; required for Picklist fields","multiple":false},"decimalplaces":{"name":"decimalplaces","type":"option","char":"s","description":"number of decimal places to use for Number or Percent fields","multiple":false,"default":0},"label":{"name":"label","type":"option","char":"l","description":"label for the field","multiple":false},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created field definition files","multiple":false,"default":""}},"args":[{"name":"file"}],"longDescription":"Generate a custom metadata field based on the field type provided.","flagsConfig":{"fieldname":{"kind":"string","char":"n","required":true,"description":"unique name for the field","longDescription":"The unique name for the field.","input":[],"multiple":false,"type":"option"},"fieldtype":{"kind":"enum","helpValue":"(Checkbox|Date|DateTime|Email|Number|Percent|Phone|Picklist|Text|TextArea|LongTextArea|Url)","char":"f","required":true,"description":"type of field","longDescription":"The unique name for the field.","options":["Checkbox","Date","DateTime","Email","Number","Percent","Phone","Picklist","Text","TextArea","LongTextArea","Url"],"input":[],"multiple":false,"type":"option"},"picklistvalues":{"kind":"array","char":"p","description":"comma-separated list of picklist values; required for Picklist fields","longDescription":"A comma-separated list of picklist values. These values are required when creating a Picklist field.","input":[],"multiple":false,"type":"option"},"decimalplaces":{"kind":"number","char":"s","description":"number of decimal places to use for Number or Percent fields","longDescription":"The number of decimal places to use for Number or Percent fields. The value must be greater than or equal to zero.","default":0,"min":0,"input":[],"multiple":false,"type":"option"},"label":{"kind":"string","char":"l","description":"label for the field","longDescription":"The label for the field.","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store newly-created field definition files","longDescription":"The directory to store the newly-created field definition files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":"","input":[],"multiple":false,"type":"option"}},"requiresProject":true},"force:cmdt:record:create":{"id":"force:cmdt:record:create","description":"create a new record for a given custom metadata type in the current project","strict":true,"usage":"<%= command.id %> [name=value...] -t <string> -n <string> [-l <string>] [-p <string>] [-i <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Create a record metadata file for custom metadata type 'MyCMT' with values specified for two custom fields:"," $ sfdx force:cmdt:record:create --typename MyCMT__mdt --recordname MyRecord My_Custom_Field_1=Foo My_Custom_Field_2=Bar","Create a protected record metadata file for custom metadata type 'MyCMT' with a specific label and values specified for two custom fields:"," $ sfdx force:cmdt:record:create --typename MyCMT__mdt --recordname MyRecord --label \"My Record\" --protected true My_Custom_Field_1=Foo My_Custom_Field_2=Bar"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"typename":{"name":"typename","type":"option","char":"t","description":"API name of the custom metadata type to create a record for","required":true,"multiple":false},"recordname":{"name":"recordname","type":"option","char":"n","description":"name for the new record","required":true,"multiple":false},"label":{"name":"label","type":"option","char":"l","description":"label for the new record","multiple":false},"protected":{"name":"protected","type":"option","char":"p","description":"protect the record when it is in a managed package","multiple":false,"options":["true","false"],"default":"false"},"inputdir":{"name":"inputdir","type":"option","char":"i","description":"directory to pull the custom metadata type definition from","multiple":false,"default":"force-app/main/default/objects"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata record files","multiple":false,"default":"force-app/main/default/customMetadata"}},"args":[],"longDescription":"Create a new record for a given custom metadata type in the current project.","flagsConfig":{"typename":{"kind":"string","char":"t","description":"API name of the custom metadata type to create a record for","longDescription":"The API name of the custom metadata type to create a record for.","required":true,"input":[],"multiple":false,"type":"option"},"recordname":{"kind":"string","char":"n","description":"name for the new record","longDescription":"The name for the new record.","required":true,"input":[],"multiple":false,"type":"option"},"label":{"kind":"string","char":"l","description":"label for the new record","longDescription":"The label for the new record.","input":[],"multiple":false,"type":"option"},"protected":{"kind":"string","char":"p","description":"protect the record when it is in a managed package","longDescription":"Protect the record when it is in a managed package. Protected records can only be accessed by code in the same managed package namespace.","options":["true","false"],"default":"false","input":[],"multiple":false,"type":"option"},"inputdir":{"kind":"directory","char":"i","description":"directory to pull the custom metadata type definition from","longDescription":"The directory to pull the custom metadata type definition from.","default":"force-app/main/default/objects","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store newly-created custom metadata record files","longDescription":"The directory to store newly-created custom metadata record files.","default":"force-app/main/default/customMetadata","input":[],"multiple":false,"type":"option"}},"varargs":{"required":false},"requiresProject":true},"force:cmdt:record:insert":{"id":"force:cmdt:record:insert","description":"create new custom metadata type records from a CSV file","strict":true,"usage":"<%= command.id %> -f <string> -t <string> [-i <directory>] [-d <directory>] [-n <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Create record metadata files for type 'My_CMDT_Name' (from your local project) based on values in a CSV file, using 'Name' as the column that specifies the record name:"," $ sfdx force:cmdt:record:insert --filepath path/to/my.csv --typename My_CMDT_Name","Create record metadata files for type 'My_CMDT_Name' (from the specified directory) based on values in a CSV file, using 'PrimaryKey' as the column that specifies the record name:"," $ sfdx force:cmdt:record:insert --filepath path/to/my.csv --typename My_CMDT_Name --inputdir \"path/to/my/cmdt/directory\" --namecolumn \"PrimaryKey\""],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"filepath":{"name":"filepath","type":"option","char":"f","description":"path to the CSV file","required":true,"multiple":false},"typename":{"name":"typename","type":"option","char":"t","description":"API name of the custom metadata type","required":true,"multiple":false},"inputdir":{"name":"inputdir","type":"option","char":"i","description":"directory to pull the custom metadata type definition from","multiple":false,"default":"force-app/main/default/objects"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata record files","multiple":false,"default":"force-app/main/default/customMetadata"},"namecolumn":{"name":"namecolumn","type":"option","char":"n","description":"column that is used to determine the name of the record","multiple":false,"default":"Name"}},"args":[],"longDescription":"Create new custom metadata type records from a CSV file.","flagsConfig":{"filepath":{"kind":"string","char":"f","description":"path to the CSV file","longDescription":"The path to the CSV file.","required":true,"input":[],"multiple":false,"type":"option"},"typename":{"kind":"string","char":"t","description":"API name of the custom metadata type","longDescription":"The API Name of the custom metadata type. The '__mdt' suffix will be appended to the end of the name if it is omitted.","required":true,"input":[],"multiple":false,"type":"option"},"inputdir":{"kind":"directory","char":"i","description":"directory to pull the custom metadata type definition from","longDescription":"The directory to pull the custom metadata type definition from.","default":"force-app/main/default/objects","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store newly-created custom metadata record files","longDescription":"The directory to store newly-created custom metadata record files.","default":"force-app/main/default/customMetadata","input":[],"multiple":false,"type":"option"},"namecolumn":{"kind":"string","char":"n","description":"column that is used to determine the name of the record","longDescription":"The column that is used to determine the name of the record.","default":"Name","input":[],"multiple":false,"type":"option"}},"requiresProject":true}}}
|
|
1
|
+
{"version":"2.0.2","commands":{"force:cmdt:create":{"id":"force:cmdt:create","description":"creates a new custom metadata type in the current project","strict":true,"usage":"<%= command.id %> -n <string> [-l <string>] [-p <string>] [-v PackageProtected|Protected|Public] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Create a custom metadata type with developer name 'MyCustomType'; this name will also be used as the label:"," $ sfdx force:cmdt:create --typename MyCustomType","Create a protected custom metadata type with a specific label:"," $ sfdx force:cmdt:create --typename MyCustomType --label \"Custom Type\" --plurallabel \"Custom Types\" --visibility Protected"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"typename":{"name":"typename","type":"option","char":"n","description":"unique object name for the custom metadata type","required":true,"multiple":false},"label":{"name":"label","type":"option","char":"l","description":"label for the custom metadata type","multiple":false},"plurallabel":{"name":"plurallabel","type":"option","char":"p","description":"plural version of the label value; if blank, uses label","multiple":false},"visibility":{"name":"visibility","type":"option","char":"v","description":"visibility of the custom metadata type","helpValue":"(PackageProtected|Protected|Public)","multiple":false,"options":["PackageProtected","Protected","Public"],"default":"Public"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store the newly-created custom metadata type files","multiple":false,"default":""}},"args":[{"name":"file"}],"longDescription":"Creates a new custom metadata type in the current project.","flagsConfig":{"typename":{"kind":"string","char":"n","description":"unique object name for the custom metadata type","longDescription":"The unique name of the object in the API. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.","required":true,"input":[],"multiple":false,"type":"option"},"label":{"kind":"string","char":"l","description":"label for the custom metadata type","longDescription":"A label for the custom metadata type.","input":[],"multiple":false,"type":"option"},"plurallabel":{"kind":"string","char":"p","description":"plural version of the label value; if blank, uses label","longDescription":"The plural version of the label value. If this flag is missing or blank, the singular label is used as the plural label.","input":[],"multiple":false,"type":"option"},"visibility":{"kind":"enum","helpValue":"(PackageProtected|Protected|Public)","char":"v","description":"visibility of the custom metadata type","longDescription":"The visibility of the custom metadata type.","options":["PackageProtected","Protected","Public"],"default":"Public","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store the newly-created custom metadata type files","longDescription":"The directory to store the newly-created custom metadata type files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":"","input":[],"multiple":false,"type":"option"}},"requiresProject":true},"force:cmdt:generate":{"id":"force:cmdt:generate","description":"generates a custom metadata type and all its records for the provided sObject","strict":true,"usage":"<%= command.id %> -n <string> -s <string> [-l <string>] [-p <string>] [-v PackageProtected|Protected|Public] [-i] [-d <directory>] [-r <directory>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Generate a custom metadata type from an sObject in the default target org:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname MySourceObject__c","Generate a custom metadata type from an sObject in the specified target org; ignore unsupported field types instead of converting them to text:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname MySourceObject__c --ignoreunsupported --targetusername 'alias or user email of the org containing the source type'","Generate a protected custom metadata type from an sObject in the default target org:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname SourceCustomObject__c --visibility Protected","Generate a protected custom metadata type with a specific label from an sObject in the default target org:"," $ sfdx force:cmdt:generate --devname MyCMDT --label \"My CMDT\" --plurallabel \"My CMDTs\" --sobjectname SourceCustomSetting__c --visibility Protected","Generate a custom metadata type from an sObject in the default target org; put the resulting type metadata file in the specified directory:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname SourceCustomSetting__c --typeoutputdir 'path/to/my/cmdt/directory'","Generate a custom metadata type from an sObject in the default target org; put the resulting record metadata file(s) in the specified directory:"," $ sfdx force:cmdt:generate --devname MyCMDT --sobjectname SourceCustomSetting__c --recordsoutputdir 'path/to/my/cmdt/record/directory'"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"devname":{"name":"devname","type":"option","char":"n","description":"name of the custom metadata type","required":true,"multiple":false},"label":{"name":"label","type":"option","char":"l","description":"label for the custom metadata type","multiple":false},"plurallabel":{"name":"plurallabel","type":"option","char":"p","description":"plural version of the label value; if blank, uses label","multiple":false},"visibility":{"name":"visibility","type":"option","char":"v","description":"visibility of the custom metadata type","helpValue":"(PackageProtected|Protected|Public)","multiple":false,"options":["PackageProtected","Protected","Public"],"default":"Public"},"sobjectname":{"name":"sobjectname","type":"option","char":"s","description":"API name of the sObject source for custom metadata generation","required":true,"multiple":false},"ignoreunsupported":{"name":"ignoreunsupported","type":"boolean","char":"i","description":"ignore unsupported field types","allowNo":false},"typeoutputdir":{"name":"typeoutputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata type files","multiple":false,"default":"force-app/main/default/objects"},"recordsoutputdir":{"name":"recordsoutputdir","type":"option","char":"r","description":"directory to store newly-created custom metadata record files","multiple":false,"default":"force-app/main/default/customMetadata"}},"args":[{"name":"file"}],"longDescription":"Generates a custom metadata type and all its records for the provided sObject.","flagsConfig":{"devname":{"kind":"string","char":"n","required":true,"description":"name of the custom metadata type","longDescription":"The name of the custom metadata type.","input":[],"multiple":false,"type":"option"},"label":{"kind":"string","char":"l","description":"label for the custom metadata type","longDescription":"The label for the custom metadata type.","input":[],"multiple":false,"type":"option"},"plurallabel":{"kind":"string","char":"p","description":"plural version of the label value; if blank, uses label","longDescription":"The plural version of the label value. If this flag is missing or blank, the singular label is used as the plural label.","input":[],"multiple":false,"type":"option"},"visibility":{"kind":"enum","helpValue":"(PackageProtected|Protected|Public)","char":"v","description":"visibility of the custom metadata type","longDescription":"The visibility of the custom metadata type.","options":["PackageProtected","Protected","Public"],"default":"Public","input":[],"multiple":false,"type":"option"},"sobjectname":{"kind":"string","char":"s","required":true,"description":"API name of the sObject source for custom metadata generation","longDescription":"The API name of the sObject source for custom metadata generation.","input":[],"multiple":false,"type":"option"},"ignoreunsupported":{"kind":"boolean","char":"i","description":"ignore unsupported field types","longDescription":"Ignore unsupported field types (these fields will not be created). The default is to create Text fields and convert the source value to text.","allowNo":false,"type":"boolean"},"typeoutputdir":{"kind":"directory","char":"d","description":"directory to store newly-created custom metadata type files","longDescription":"The directory to store newly-created custom metadata type files.","default":"force-app/main/default/objects","input":[],"multiple":false,"type":"option"},"recordsoutputdir":{"kind":"directory","char":"r","description":"directory to store newly-created custom metadata record files","longDescription":"The directory to store newly-created custom metadata record files.","default":"force-app/main/default/customMetadata","input":[],"multiple":false,"type":"option"}},"requiresUsername":true,"requiresProject":true},"force:cmdt:field:create":{"id":"force:cmdt:field:create","description":"generate a custom metadata field based on the field type provided","strict":true,"usage":"<%= command.id %> -n <string> -f Checkbox|Date|DateTime|Email|Number|Percent|Phone|Picklist|Text|TextArea|LongTextArea|Url [-p <array>] [-s <number>] [-l <string>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Create a metadata file for a custom checkbox field:"," $ sfdx force:cmdt:field:create --fieldname MyField --fieldtype Checkbox","Create a metadata file for a custom picklist field:"," $ sfdx force:cmdt:field:create --fieldname MyField --fieldtype Picklist --picklistvalues \"A,B,C\"","Create a metadata file for a custom number field:"," $ sfdx force:cmdt:field:create --fieldname MyField --fieldtype Number --decimalplaces 2"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"fieldname":{"name":"fieldname","type":"option","char":"n","description":"unique name for the field","required":true,"multiple":false},"fieldtype":{"name":"fieldtype","type":"option","char":"f","description":"type of field","required":true,"helpValue":"(Checkbox|Date|DateTime|Email|Number|Percent|Phone|Picklist|Text|TextArea|LongTextArea|Url)","multiple":false,"options":["Checkbox","Date","DateTime","Email","Number","Percent","Phone","Picklist","Text","TextArea","LongTextArea","Url"]},"picklistvalues":{"name":"picklistvalues","type":"option","char":"p","description":"comma-separated list of picklist values; required for Picklist fields","multiple":false},"decimalplaces":{"name":"decimalplaces","type":"option","char":"s","description":"number of decimal places to use for Number or Percent fields","multiple":false,"default":0},"label":{"name":"label","type":"option","char":"l","description":"label for the field","multiple":false},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created field definition files","multiple":false,"default":""}},"args":[{"name":"file"}],"longDescription":"Generate a custom metadata field based on the field type provided.","flagsConfig":{"fieldname":{"kind":"string","char":"n","required":true,"description":"unique name for the field","longDescription":"The unique name for the field.","input":[],"multiple":false,"type":"option"},"fieldtype":{"kind":"enum","helpValue":"(Checkbox|Date|DateTime|Email|Number|Percent|Phone|Picklist|Text|TextArea|LongTextArea|Url)","char":"f","required":true,"description":"type of field","longDescription":"The unique name for the field.","options":["Checkbox","Date","DateTime","Email","Number","Percent","Phone","Picklist","Text","TextArea","LongTextArea","Url"],"input":[],"multiple":false,"type":"option"},"picklistvalues":{"kind":"array","char":"p","description":"comma-separated list of picklist values; required for Picklist fields","longDescription":"A comma-separated list of picklist values. These values are required when creating a Picklist field.","input":[],"multiple":false,"type":"option"},"decimalplaces":{"kind":"number","char":"s","description":"number of decimal places to use for Number or Percent fields","longDescription":"The number of decimal places to use for Number or Percent fields. The value must be greater than or equal to zero.","default":0,"min":0,"input":[],"multiple":false,"type":"option"},"label":{"kind":"string","char":"l","description":"label for the field","longDescription":"The label for the field.","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store newly-created field definition files","longDescription":"The directory to store the newly-created field definition files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":"","input":[],"multiple":false,"type":"option"}},"requiresProject":true},"force:cmdt:record:create":{"id":"force:cmdt:record:create","description":"create a new record for a given custom metadata type in the current project","strict":true,"usage":"<%= command.id %> [name=value...] -t <string> -n <string> [-l <string>] [-p <string>] [-i <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Create a record metadata file for custom metadata type 'MyCMT' with values specified for two custom fields:"," $ sfdx force:cmdt:record:create --typename MyCMT__mdt --recordname MyRecord My_Custom_Field_1=Foo My_Custom_Field_2=Bar","Create a protected record metadata file for custom metadata type 'MyCMT' with a specific label and values specified for two custom fields:"," $ sfdx force:cmdt:record:create --typename MyCMT__mdt --recordname MyRecord --label \"My Record\" --protected true My_Custom_Field_1=Foo My_Custom_Field_2=Bar"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"typename":{"name":"typename","type":"option","char":"t","description":"API name of the custom metadata type to create a record for","required":true,"multiple":false},"recordname":{"name":"recordname","type":"option","char":"n","description":"name for the new record","required":true,"multiple":false},"label":{"name":"label","type":"option","char":"l","description":"label for the new record","multiple":false},"protected":{"name":"protected","type":"option","char":"p","description":"protect the record when it is in a managed package","multiple":false,"options":["true","false"],"default":"false"},"inputdir":{"name":"inputdir","type":"option","char":"i","description":"directory to pull the custom metadata type definition from","multiple":false,"default":"force-app/main/default/objects"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata record files","multiple":false,"default":"force-app/main/default/customMetadata"}},"args":[],"longDescription":"Create a new record for a given custom metadata type in the current project.","flagsConfig":{"typename":{"kind":"string","char":"t","description":"API name of the custom metadata type to create a record for","longDescription":"The API name of the custom metadata type to create a record for.","required":true,"input":[],"multiple":false,"type":"option"},"recordname":{"kind":"string","char":"n","description":"name for the new record","longDescription":"The name for the new record.","required":true,"input":[],"multiple":false,"type":"option"},"label":{"kind":"string","char":"l","description":"label for the new record","longDescription":"The label for the new record.","input":[],"multiple":false,"type":"option"},"protected":{"kind":"string","char":"p","description":"protect the record when it is in a managed package","longDescription":"Protect the record when it is in a managed package. Protected records can only be accessed by code in the same managed package namespace.","options":["true","false"],"default":"false","input":[],"multiple":false,"type":"option"},"inputdir":{"kind":"directory","char":"i","description":"directory to pull the custom metadata type definition from","longDescription":"The directory to pull the custom metadata type definition from.","default":"force-app/main/default/objects","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store newly-created custom metadata record files","longDescription":"The directory to store newly-created custom metadata record files.","default":"force-app/main/default/customMetadata","input":[],"multiple":false,"type":"option"}},"varargs":{"required":false},"requiresProject":true},"force:cmdt:record:insert":{"id":"force:cmdt:record:insert","description":"create new custom metadata type records from a CSV file","strict":true,"usage":"<%= command.id %> -f <string> -t <string> [-i <directory>] [-d <directory>] [-n <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-custom-metadata","pluginAlias":"@salesforce/plugin-custom-metadata","pluginType":"core","aliases":[],"examples":["Create record metadata files for type 'My_CMDT_Name' (from your local project) based on values in a CSV file, using 'Name' as the column that specifies the record name:"," $ sfdx force:cmdt:record:insert --filepath path/to/my.csv --typename My_CMDT_Name","Create record metadata files for type 'My_CMDT_Name' (from the specified directory) based on values in a CSV file, using 'PrimaryKey' as the column that specifies the record name:"," $ sfdx force:cmdt:record:insert --filepath path/to/my.csv --typename My_CMDT_Name --inputdir \"path/to/my/cmdt/directory\" --namecolumn \"PrimaryKey\""],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"filepath":{"name":"filepath","type":"option","char":"f","description":"path to the CSV file","required":true,"multiple":false},"typename":{"name":"typename","type":"option","char":"t","description":"API name of the custom metadata type","required":true,"multiple":false},"inputdir":{"name":"inputdir","type":"option","char":"i","description":"directory to pull the custom metadata type definition from","multiple":false,"default":"force-app/main/default/objects"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata record files","multiple":false,"default":"force-app/main/default/customMetadata"},"namecolumn":{"name":"namecolumn","type":"option","char":"n","description":"column that is used to determine the name of the record","multiple":false,"default":"Name"}},"args":[],"longDescription":"Create new custom metadata type records from a CSV file.","flagsConfig":{"filepath":{"kind":"string","char":"f","description":"path to the CSV file","longDescription":"The path to the CSV file.","required":true,"input":[],"multiple":false,"type":"option"},"typename":{"kind":"string","char":"t","description":"API name of the custom metadata type","longDescription":"The API Name of the custom metadata type. The '__mdt' suffix will be appended to the end of the name if it is omitted.","required":true,"input":[],"multiple":false,"type":"option"},"inputdir":{"kind":"directory","char":"i","description":"directory to pull the custom metadata type definition from","longDescription":"The directory to pull the custom metadata type definition from.","default":"force-app/main/default/objects","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store newly-created custom metadata record files","longDescription":"The directory to store newly-created custom metadata record files.","default":"force-app/main/default/customMetadata","input":[],"multiple":false,"type":"option"},"namecolumn":{"kind":"string","char":"n","description":"column that is used to determine the name of the record","longDescription":"The column that is used to determine the name of the record.","default":"Name","input":[],"multiple":false,"type":"option"}},"requiresProject":true}}}
|
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": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Carolyn Grabill",
|
|
@@ -42,47 +42,45 @@
|
|
|
42
42
|
],
|
|
43
43
|
"bugs": "https://github.com/salesforcecli/plugin-custom-metadata/issues",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@oclif/core": "^1.
|
|
45
|
+
"@oclif/core": "^1.16.4",
|
|
46
46
|
"@salesforce/command": "^5.1.2",
|
|
47
47
|
"@salesforce/core": "^3.19.0",
|
|
48
48
|
"@salesforce/ts-types": "^1.5.20",
|
|
49
|
-
"fast-xml-parser": "^4.0.
|
|
49
|
+
"fast-xml-parser": "^4.0.11",
|
|
50
50
|
"tslib": "^2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@oclif/plugin-command-snapshot": "^3.
|
|
53
|
+
"@oclif/plugin-command-snapshot": "^3.2.4",
|
|
54
54
|
"@salesforce/cli-plugins-testkit": "^1.5.35",
|
|
55
55
|
"@salesforce/dev-config": "^3.0.1",
|
|
56
|
-
"@salesforce/dev-scripts": "^
|
|
56
|
+
"@salesforce/dev-scripts": "^3.1.0",
|
|
57
57
|
"@salesforce/plugin-command-reference": "^1.3.17",
|
|
58
58
|
"@salesforce/prettier-config": "^0.0.2",
|
|
59
|
-
"@salesforce/ts-sinon": "^1.
|
|
59
|
+
"@salesforce/ts-sinon": "^1.4.0",
|
|
60
60
|
"@semantic-release/git": "^9.0.0",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
62
|
-
"@typescript-eslint/parser": "^
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^5.39.0",
|
|
62
|
+
"@typescript-eslint/parser": "^5.33.0",
|
|
63
63
|
"bluebird": "3.7.2",
|
|
64
64
|
"chai": "^4.2.0",
|
|
65
|
-
"
|
|
66
|
-
"eslint": "^
|
|
67
|
-
"eslint-config-
|
|
68
|
-
"eslint-config-salesforce": "^0.1.6",
|
|
65
|
+
"eslint": "^8.21.0",
|
|
66
|
+
"eslint-config-prettier": "^8.5.0",
|
|
67
|
+
"eslint-config-salesforce": "^1.1.0",
|
|
69
68
|
"eslint-config-salesforce-license": "^0.1.6",
|
|
70
|
-
"eslint-config-salesforce-typescript": "^
|
|
69
|
+
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
71
70
|
"eslint-plugin-header": "^3.1.1",
|
|
72
71
|
"eslint-plugin-import": "^2.26.0",
|
|
73
|
-
"eslint-plugin-jsdoc": "^39.3.
|
|
74
|
-
"eslint-plugin-prettier": "^3.4.1",
|
|
72
|
+
"eslint-plugin-jsdoc": "^39.3.6",
|
|
75
73
|
"husky": "^7.0.4",
|
|
76
74
|
"jsforce": "2.0.0-beta.10",
|
|
77
75
|
"mocha": "^9.1.3",
|
|
78
76
|
"nyc": "^15.1.0",
|
|
79
|
-
"oclif": "^3.
|
|
80
|
-
"prettier": "^2.
|
|
77
|
+
"oclif": "^3.2.12",
|
|
78
|
+
"prettier": "^2.7.1",
|
|
81
79
|
"pretty-quick": "^3.1.0",
|
|
82
80
|
"shx": "0.2.2",
|
|
83
81
|
"sinon": "10.0.0",
|
|
84
82
|
"ts-node": "^10.0.0",
|
|
85
|
-
"typescript": "^4.
|
|
83
|
+
"typescript": "^4.8.4"
|
|
86
84
|
},
|
|
87
85
|
"engines": {
|
|
88
86
|
"node": ">=14.0.0"
|
|
@@ -138,17 +136,17 @@
|
|
|
138
136
|
"prepare": "sf-install",
|
|
139
137
|
"pretest": "sf-compile-test",
|
|
140
138
|
"test": "sf-test",
|
|
141
|
-
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
142
139
|
"test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
|
|
143
140
|
"test:deprecation-policy": "./bin/dev snapshot:compare",
|
|
144
141
|
"test:json-schema": "./bin/dev schema:compare",
|
|
142
|
+
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
145
143
|
"version": "oclif readme"
|
|
146
144
|
},
|
|
147
145
|
"publishConfig": {
|
|
148
146
|
"access": "public"
|
|
149
147
|
},
|
|
150
148
|
"sfdx": {
|
|
151
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-custom-metadata/2.0.
|
|
152
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-custom-metadata/2.0.
|
|
149
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-custom-metadata/2.0.2.crt",
|
|
150
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-custom-metadata/2.0.2.sig"
|
|
153
151
|
}
|
|
154
152
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
## [2.0.0](https://github.com/salesforcecli/plugin-custom-metadata/compare/v1.0.12...v2.0.0) (2022-06-03)
|
|
6
|
-
|
|
7
|
-
### Features
|
|
8
|
-
|
|
9
|
-
- bin/dev ([99555d1](https://github.com/salesforcecli/plugin-custom-metadata/commit/99555d1009d4e4abb2959abe60bf308a7293829b))
|
|
10
|
-
- bump deps ([d33c882](https://github.com/salesforcecli/plugin-custom-metadata/commit/d33c882817d296a7e039a78641553bcb00685727))
|
|
11
|
-
- interfaces for command return types ([68dd30b](https://github.com/salesforcecli/plugin-custom-metadata/commit/68dd30bff5052ed3bd9910a329c20f230b4227d1))
|
|
12
|
-
|
|
13
|
-
### Bug Fixes
|
|
14
|
-
|
|
15
|
-
- error name ([84dffb3](https://github.com/salesforcecli/plugin-custom-metadata/commit/84dffb35e722ce677aadf5cc5126d8f5814f00bc))
|
|
16
|
-
- trailing slashes bug on field writers ([5166a84](https://github.com/salesforcecli/plugin-custom-metadata/commit/5166a84f104dc818c6acd571b14f7097fae2c06d))
|
|
17
|
-
|
|
18
|
-
### [1.0.12](https://github.com/salesforcecli/plugin-custom-metadata/compare/v1.0.11...v1.0.12) (2021-04-06)
|
|
19
|
-
|
|
20
|
-
### Bug Fixes
|
|
21
|
-
|
|
22
|
-
- leif .yml merge [skip-validate-pr] ([9177fdc](https://github.com/salesforcecli/plugin-custom-metadata/commit/9177fdc23b42f6cd1c96ee1d34cf74093994c407))
|
|
23
|
-
|
|
24
|
-
### [1.0.11](https://github.com/salesforcecli/plugin-custom-metadata/compare/v1.0.10...v1.0.11) (2020-12-10)
|
|
25
|
-
|
|
26
|
-
### [1.0.10](https://github.com/salesforcecli/plugin-custom-metadata/compare/v1.0.8...v1.0.10) (2020-08-27)
|
|
27
|
-
|
|
28
|
-
### Features
|
|
29
|
-
|
|
30
|
-
- use npm-release-management-orb ([7154761](https://github.com/salesforcecli/plugin-custom-metadata/commit/7154761d3f0cfedc223f3a38cb7c8970f616bf22))
|
|
31
|
-
|
|
32
|
-
# 1.0.0 (2020-06-02)
|
|
33
|
-
|
|
34
|
-
### Features
|
|
35
|
-
|
|
36
|
-
- initial release ([e7f004d](https://github.com/salesforcecli/plugin-custom-metadata/commit/e7f004dffa0bc7e9a29002f7d9383712a4787d17))
|
|
37
|
-
|
|
38
|
-
### Reverts
|
|
39
|
-
|
|
40
|
-
- Revert "add in testing for metadata call" ([cb981e7](https://github.com/salesforcecli/plugin-custom-metadata/commit/cb981e70b646d65eb2b037751f7631d0f11e2498))
|
|
41
|
-
- Revert "fix tslint" ([f180242](https://github.com/salesforcecli/plugin-custom-metadata/commit/f1802429bdf16e67dd69d94b586bc6dbf85873b7))
|