@salesforce/plugin-custom-metadata 1.0.12 → 1.1.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +37 -37
  3. package/lib/commands/force/cmdt/create.d.ts +4 -4
  4. package/lib/commands/force/cmdt/create.js +84 -80
  5. package/lib/commands/force/cmdt/create.js.map +1 -1
  6. package/lib/commands/force/cmdt/field/create.d.ts +3 -3
  7. package/lib/commands/force/cmdt/field/create.js +102 -89
  8. package/lib/commands/force/cmdt/field/create.js.map +1 -1
  9. package/lib/commands/force/cmdt/generate.d.ts +6 -6
  10. package/lib/commands/force/cmdt/generate.js +256 -243
  11. package/lib/commands/force/cmdt/generate.js.map +1 -1
  12. package/lib/commands/force/cmdt/record/create.d.ts +6 -6
  13. package/lib/commands/force/cmdt/record/create.js +130 -124
  14. package/lib/commands/force/cmdt/record/create.js.map +1 -1
  15. package/lib/commands/force/cmdt/record/insert.d.ts +5 -5
  16. package/lib/commands/force/cmdt/record/insert.js +105 -105
  17. package/lib/commands/force/cmdt/record/insert.js.map +1 -1
  18. package/lib/index.js +3 -3
  19. package/lib/lib/helpers/createUtil.js +14 -10
  20. package/lib/lib/helpers/createUtil.js.map +1 -1
  21. package/lib/lib/helpers/fileWriter.d.ts +2 -0
  22. package/lib/lib/helpers/fileWriter.js +5 -3
  23. package/lib/lib/helpers/fileWriter.js.map +1 -1
  24. package/lib/lib/helpers/metadataUtil.d.ts +2 -2
  25. package/lib/lib/helpers/metadataUtil.js +22 -15
  26. package/lib/lib/helpers/metadataUtil.js.map +1 -1
  27. package/lib/lib/helpers/validationUtil.js +9 -6
  28. package/lib/lib/helpers/validationUtil.js.map +1 -1
  29. package/lib/lib/interfaces/createConfig.js +3 -3
  30. package/lib/lib/interfaces/customField.js +3 -3
  31. package/lib/lib/interfaces/errorMessage.js +3 -3
  32. package/lib/lib/interfaces/record.js +3 -3
  33. package/lib/lib/interfaces/saveResults.js +3 -3
  34. package/lib/lib/templates/templates.d.ts +2 -0
  35. package/lib/lib/templates/templates.js +64 -23
  36. package/lib/lib/templates/templates.js.map +1 -1
  37. package/oclif.manifest.json +1 -1
  38. package/package.json +19 -19
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2018-2020, salesforce.com, inc.
3
+ * Copyright (c) 2020, salesforce.com, inc.
4
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
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.Templates = void 0;
@@ -11,12 +11,14 @@ const core_1 = require("@salesforce/core");
11
11
  class Templates {
12
12
  /**
13
13
  * Using the given data and visibility, creates the body of a type metadata file
14
+ *
14
15
  * @param data
15
16
  * @param visibility
16
17
  */
17
18
  createObjectXML(data, visibility) {
18
19
  let returnValue = '<?xml version="1.0" encoding="UTF-8"?>\n';
19
- returnValue += '<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">\n';
20
+ returnValue +=
21
+ '<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">\n';
20
22
  returnValue += `\t<label>${data.label}</label>\n`;
21
23
  returnValue += `\t<pluralLabel>${data.pluralLabel}</pluralLabel>\n`;
22
24
  returnValue += `\t<visibility>${visibility}</visibility>\n`;
@@ -25,12 +27,14 @@ class Templates {
25
27
  }
26
28
  /**
27
29
  * Using the given data and defaultToString, creates the body for a field file.
30
+ *
28
31
  * @param data Record details
29
32
  * @param defaultToString If the defaultToString set type to Text for unsupported field types
30
33
  */
31
34
  createFieldXML(data, defaultToString) {
32
35
  let returnValue = '<?xml version="1.0" encoding="UTF-8"?>\n';
33
- returnValue += '<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">\n';
36
+ returnValue +=
37
+ '<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">\n';
34
38
  returnValue += this.getFullName(data);
35
39
  returnValue += this.getDescription(data);
36
40
  returnValue += this.getExternalId(data);
@@ -73,13 +77,16 @@ class Templates {
73
77
  return { fullName, type, label };
74
78
  case 'Picklist':
75
79
  return {
76
- fullName, type, label, valueSet: {
80
+ fullName,
81
+ type,
82
+ label,
83
+ valueSet: {
77
84
  restricted: 'true',
78
85
  valueSetDefinition: {
79
86
  sorted: 'false',
80
- value: this.createPicklistValues(picklistValues)
81
- }
82
- }
87
+ value: this.createPicklistValues(picklistValues),
88
+ },
89
+ },
83
90
  };
84
91
  case 'Text':
85
92
  return { fullName, type, label, unique: 'false', length: '100' };
@@ -94,7 +101,20 @@ class Templates {
94
101
  }
95
102
  }
96
103
  canConvert(type) {
97
- const metadataFieldTypes = ['Checkbox', 'Date', 'DateTime', 'Email', 'Number', 'Percent', 'Phone', 'Picklist', 'Text', 'TextArea', 'LongTextArea', 'Url'];
104
+ const metadataFieldTypes = [
105
+ 'Checkbox',
106
+ 'Date',
107
+ 'DateTime',
108
+ 'Email',
109
+ 'Number',
110
+ 'Percent',
111
+ 'Phone',
112
+ 'Picklist',
113
+ 'Text',
114
+ 'TextArea',
115
+ 'LongTextArea',
116
+ 'Url',
117
+ ];
98
118
  return metadataFieldTypes.includes(type);
99
119
  }
100
120
  getType(data, defaultToMetadataType) {
@@ -113,7 +133,9 @@ class Templates {
113
133
  }
114
134
  }
115
135
  getConvertType(data) {
116
- if (data.type === 'Html' || data.type === 'MultiselectPicklist' || (data.type === 'Text' && data.length === undefined)) {
136
+ if (data.type === 'Html' ||
137
+ data.type === 'MultiselectPicklist' ||
138
+ (data.type === 'Text' && data.length === undefined)) {
117
139
  return 'LongTextArea';
118
140
  }
119
141
  else {
@@ -121,20 +143,28 @@ class Templates {
121
143
  }
122
144
  }
123
145
  getFullName(data) {
124
- const name = data.fullName.endsWith('__c') ? data.fullName : data.fullName + '__c';
146
+ const name = data.fullName.endsWith('__c')
147
+ ? data.fullName
148
+ : data.fullName + '__c';
125
149
  return `\t<fullName>${name}</fullName>\n`;
126
150
  }
127
151
  getDescription(data) {
128
- return data.description ? `\t<description>${data.description}</description>\n` : '';
152
+ return data.description
153
+ ? `\t<description>${data.description}</description>\n`
154
+ : '';
129
155
  }
130
156
  getExternalId(data) {
131
- return data.externalId ? `\t<externalId>${data.externalId}</externalId>\n` : '';
157
+ return data.externalId
158
+ ? `\t<externalId>${data.externalId}</externalId>\n`
159
+ : '';
132
160
  }
133
161
  getFieldManageability(data) {
134
162
  return `\t<fieldManageability>${data.fieldManageability || 'DeveloperControlled'}</fieldManageability>\n`;
135
163
  }
136
164
  getInlineHelpText(data) {
137
- return data.inlineHelpText ? `\t<inlineHelpText>${data.inlineHelpText}</inlineHelpText>\n` : '';
165
+ return data.inlineHelpText
166
+ ? `\t<inlineHelpText>${data.inlineHelpText}</inlineHelpText>\n`
167
+ : '';
138
168
  }
139
169
  getLabel(data) {
140
170
  return `\t<label>${data.label}</label>\n`;
@@ -146,12 +176,15 @@ class Templates {
146
176
  return data.precision ? `\t<precision>${data.precision}</precision>\n` : '';
147
177
  }
148
178
  getScaleTag(data) {
149
- return typeof data.scale !== 'undefined' ? `\t<scale>${data.scale}</scale>\n` : '';
179
+ return typeof data.scale !== 'undefined'
180
+ ? `\t<scale>${data.scale}</scale>\n`
181
+ : '';
150
182
  }
151
183
  getLengthTag(data) {
152
184
  // If field type is multiselect or
153
185
  // data type is text with no length attribute then it is formula field then set the length to 32768 as we are setting the type LongTextArea
154
- if (data.type === 'MultiselectPicklist' || (data.type === 'Text' && data.length === undefined)) {
186
+ if (data.type === 'MultiselectPicklist' ||
187
+ (data.type === 'Text' && data.length === undefined)) {
155
188
  return '\t<length>32768</length>\n';
156
189
  }
157
190
  if (data.length) {
@@ -160,22 +193,30 @@ class Templates {
160
193
  // For fields that are being translated from Custom objects that do not have a matching type they are
161
194
  // being defaulted to a Text field. They need to have a minimum length to them
162
195
  // e.g. Field types that are getting converted: Currency, Location, MasterDetail, Lookup
163
- return !this.canConvert(data.type) && this.getConvertType(data) === 'Text' ? '\t<length>100</length>\n' : '';
196
+ return !this.canConvert(data.type) && this.getConvertType(data) === 'Text'
197
+ ? '\t<length>100</length>\n'
198
+ : '';
164
199
  }
165
200
  getVisibleLines(data) {
166
201
  if (data.type === 'Text' && data.length === undefined) {
167
202
  return '\t<visibleLines>3</visibleLines>\n';
168
203
  }
169
- return data.visibleLines ? `\t<visibleLines>${data.visibleLines}</visibleLines>\n` : '';
204
+ return data.visibleLines
205
+ ? `\t<visibleLines>${data.visibleLines}</visibleLines>\n`
206
+ : '';
170
207
  }
171
208
  getDefaultValue(data) {
172
209
  if (data.type === 'Currency') {
173
- return data.defaultValue ? `\t<defaultValue>'${data.defaultValue}'</defaultValue>\n` : '';
210
+ return data.defaultValue
211
+ ? `\t<defaultValue>'${data.defaultValue}'</defaultValue>\n`
212
+ : '';
174
213
  }
175
214
  else if (data.type === 'Checkbox' && data.defaultValue === undefined) {
176
215
  return '\t<defaultValue>false</defaultValue>\n';
177
216
  }
178
- return data.defaultValue ? `\t<defaultValue>${data.defaultValue}</defaultValue>\n` : '';
217
+ return data.defaultValue
218
+ ? `\t<defaultValue>${data.defaultValue}</defaultValue>\n`
219
+ : '';
179
220
  }
180
221
  getValueSet(data) {
181
222
  let fieldValue = '';
@@ -184,7 +225,7 @@ class Templates {
184
225
  fieldValue += `\t\t<restricted>${data.valueSet.restricted || false}</restricted>\n`;
185
226
  fieldValue += '\t\t<valueSetDefinition>\n';
186
227
  fieldValue += `\t\t\t<sorted>${data.valueSet.valueSetDefinition.sorted || false}</sorted>\n`;
187
- data.valueSet.valueSetDefinition.value.forEach(value => {
228
+ data.valueSet.valueSetDefinition.value.forEach((value) => {
188
229
  fieldValue += '\t\t\t<value>\n';
189
230
  fieldValue += `\t\t\t\t<fullName>${value.fullName}</fullName>\n`;
190
231
  fieldValue += `\t\t\t\t<default>${value.default || false}</default>\n`;
@@ -198,7 +239,7 @@ class Templates {
198
239
  }
199
240
  createPicklistValues(values) {
200
241
  const picklistValues = [];
201
- values.forEach(value => {
242
+ values.forEach((value) => {
202
243
  picklistValues.push({ fullName: value, label: value });
203
244
  });
204
245
  return picklistValues;
@@ -1 +1 @@
1
- {"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../src/lib/templates/templates.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAA6C;AAE7C,MAAa,SAAS;IAElB;;;;OAIG;IACI,eAAe,CAAC,IAAI,EAAE,UAAU;QACnC,IAAI,WAAW,GAAG,0CAA0C,CAAC;QAC7D,WAAW,IAAI,kEAAkE,CAAC;QAClF,WAAW,IAAI,YAAY,IAAI,CAAC,KAAK,YAAY,CAAC;QAClD,WAAW,IAAI,kBAAkB,IAAI,CAAC,WAAW,kBAAkB,CAAC;QACpE,WAAW,IAAI,iBAAiB,UAAU,iBAAiB,CAAC;QAC5D,WAAW,IAAI,mBAAmB,CAAC;QACnC,OAAO,WAAW,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,IAAI,EAAE,eAAwB;QAChD,IAAI,WAAW,GAAG,0CAA0C,CAAC;QAC7D,WAAW,IAAI,iEAAiE,CAAC;QACjF,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACtC,WAAW,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QACzC,WAAW,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACxC,WAAW,IAAI,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAChD,WAAW,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC5C,WAAW,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACnC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,CAA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AAC,MAAgB;QAC3C,MAAM,cAAc,GAAG,EAAE,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACvB,cAAc,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QACH,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AAnRD,8BAmRC"}
@@ -1 +1 @@
1
- {"version":"1.0.12","commands":{"force:cmdt:create":{"id":"force:cmdt:create","description":"creates a new custom metadata type in the current project","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","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)","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},"label":{"name":"label","type":"option","char":"l","description":"label for the custom metadata type"},"plurallabel":{"name":"plurallabel","type":"option","char":"p","description":"plural version of the label value; if blank, uses label"},"visibility":{"name":"visibility","type":"option","char":"v","description":"visibility of the custom metadata type","helpValue":"(PackageProtected|Protected|Public)","options":["PackageProtected","Protected","Public"],"default":"Public"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store the newly-created custom metadata type files"}},"args":[{"name":"file"}]},"force:cmdt:generate":{"id":"force:cmdt:generate","description":"generates a custom metadata type and all its records for the provided sObject","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","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)","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"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"devname":{"name":"devname","type":"option","char":"n","description":"name of the custom metadata type","required":true},"label":{"name":"label","type":"option","char":"l","description":"label for the custom metadata type"},"plurallabel":{"name":"plurallabel","type":"option","char":"p","description":"plural version of the label value; if blank, uses label"},"visibility":{"name":"visibility","type":"option","char":"v","description":"visibility of the custom metadata type","helpValue":"(PackageProtected|Protected|Public)","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},"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","default":"force-app/main/default/objects/"},"recordsoutputdir":{"name":"recordsoutputdir","type":"option","char":"r","description":"directory to store newly-created custom metadata record files","default":"force-app/main/default/customMetadata/"}},"args":[{"name":"file"}]},"force:cmdt:field:create":{"id":"force:cmdt:field:create","description":"generate a custom metadata field based on the field type provided","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","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)","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},"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)","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"},"decimalplaces":{"name":"decimalplaces","type":"option","char":"s","description":"number of decimal places to use for Number or Percent fields","default":0},"label":{"name":"label","type":"option","char":"l","description":"label for the field"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created field definition files"}},"args":[{"name":"file"}]},"force:cmdt:record:create":{"id":"force:cmdt:record:create","description":"create a new record for a given custom metadata type in the current project","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","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)","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},"recordname":{"name":"recordname","type":"option","char":"n","description":"name for the new record","required":true},"label":{"name":"label","type":"option","char":"l","description":"label for the new record"},"protected":{"name":"protected","type":"option","char":"p","description":"protect the record when it is in a managed package","options":["true","false"],"default":"false"},"inputdir":{"name":"inputdir","type":"option","char":"i","description":"directory to pull the custom metadata type definition from","default":"force-app/main/default/objects"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata record files","default":"force-app/main/default/customMetadata"}},"args":[]},"force:cmdt:record:insert":{"id":"force:cmdt:record:insert","description":"create new custom metadata type records from a CSV file","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","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)","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},"typename":{"name":"typename","type":"option","char":"t","description":"API name of the custom metadata type","required":true},"inputdir":{"name":"inputdir","type":"option","char":"i","description":"directory to pull the custom metadata type definition from","default":"force-app/main/default/objects"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata record files","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","default":"Name"}},"args":[]}}}
1
+ {"version":"1.1.0","commands":{"force:cmdt:create":{"id":"force:cmdt:create","description":"creates a new custom metadata type in the current project","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","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)","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},"label":{"name":"label","type":"option","char":"l","description":"label for the custom metadata type"},"plurallabel":{"name":"plurallabel","type":"option","char":"p","description":"plural version of the label value; if blank, uses label"},"visibility":{"name":"visibility","type":"option","char":"v","description":"visibility of the custom metadata type","helpValue":"(PackageProtected|Protected|Public)","options":["PackageProtected","Protected","Public"],"default":"Public"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store the newly-created custom metadata type files"}},"args":[{"name":"file"}]},"force:cmdt:generate":{"id":"force:cmdt:generate","description":"generates a custom metadata type and all its records for the provided sObject","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","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)","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"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"devname":{"name":"devname","type":"option","char":"n","description":"name of the custom metadata type","required":true},"label":{"name":"label","type":"option","char":"l","description":"label for the custom metadata type"},"plurallabel":{"name":"plurallabel","type":"option","char":"p","description":"plural version of the label value; if blank, uses label"},"visibility":{"name":"visibility","type":"option","char":"v","description":"visibility of the custom metadata type","helpValue":"(PackageProtected|Protected|Public)","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},"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","default":"force-app/main/default/objects/"},"recordsoutputdir":{"name":"recordsoutputdir","type":"option","char":"r","description":"directory to store newly-created custom metadata record files","default":"force-app/main/default/customMetadata/"}},"args":[{"name":"file"}]},"force:cmdt:field:create":{"id":"force:cmdt:field:create","description":"generate a custom metadata field based on the field type provided","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","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)","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},"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)","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"},"decimalplaces":{"name":"decimalplaces","type":"option","char":"s","description":"number of decimal places to use for Number or Percent fields","default":0},"label":{"name":"label","type":"option","char":"l","description":"label for the field"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created field definition files"}},"args":[{"name":"file"}]},"force:cmdt:record:create":{"id":"force:cmdt:record:create","description":"create a new record for a given custom metadata type in the current project","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","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)","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},"recordname":{"name":"recordname","type":"option","char":"n","description":"name for the new record","required":true},"label":{"name":"label","type":"option","char":"l","description":"label for the new record"},"protected":{"name":"protected","type":"option","char":"p","description":"protect the record when it is in a managed package","options":["true","false"],"default":"false"},"inputdir":{"name":"inputdir","type":"option","char":"i","description":"directory to pull the custom metadata type definition from","default":"force-app/main/default/objects"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata record files","default":"force-app/main/default/customMetadata"}},"args":[]},"force:cmdt:record:insert":{"id":"force:cmdt:record:insert","description":"create new custom metadata type records from a CSV file","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","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)","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},"typename":{"name":"typename","type":"option","char":"t","description":"API name of the custom metadata type","required":true},"inputdir":{"name":"inputdir","type":"option","char":"i","description":"directory to pull the custom metadata type definition from","default":"force-app/main/default/objects"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store newly-created custom metadata record files","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","default":"Name"}},"args":[]}}}
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": "1.0.12",
4
+ "version": "1.1.0",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Carolyn Grabill",
@@ -42,38 +42,38 @@
42
42
  ],
43
43
  "bugs": "https://github.com/salesforcecli/plugin-custom-metadata/issues",
44
44
  "dependencies": {
45
- "@oclif/command": "^1.6.1",
46
- "@oclif/config": "^1.15.1",
47
- "@oclif/errors": "^1.2.2",
48
- "@salesforce/command": "^3.0.0",
45
+ "@oclif/config": "^1.18.1",
46
+ "@salesforce/command": "^4.2.0",
47
+ "@salesforce/core": "^2.31.0",
49
48
  "@salesforce/ts-types": "^1.2.2",
50
- "tslib": "^2.0.0"
49
+ "tslib": "^2"
51
50
  },
52
51
  "devDependencies": {
53
- "@oclif/dev-cli": "^1.22.2",
54
- "@oclif/plugin-command-snapshot": "^1.0.0",
55
- "@oclif/plugin-help": "^3.0.1",
56
- "@oclif/test": "^1.2.6",
57
- "@salesforce/dev-config": "^1.5.0",
58
- "@salesforce/dev-scripts": "0.6.1",
59
- "@salesforce/plugin-command-reference": "^1.1.0",
52
+ "@oclif/dev-cli": "^1.26.6",
53
+ "@oclif/plugin-command-snapshot": "^2.2.2",
54
+ "@oclif/plugin-help": "^3.2.10",
55
+ "@oclif/test": "^1.2.8",
56
+ "@salesforce/dev-config": "^2.1.2",
57
+ "@salesforce/dev-scripts": "1.0.2",
58
+ "@salesforce/plugin-command-reference": "^1.3.17",
60
59
  "@salesforce/ts-sinon": "^1.1.2",
61
60
  "@semantic-release/git": "^9.0.0",
62
61
  "@types/chai": "^4.2.11",
63
- "@types/jsforce": "1.9.18",
62
+ "@types/jsforce": "1.9.35",
64
63
  "@types/mocha": "^7.0.2",
65
64
  "@types/node": "^14.0.9",
66
65
  "@types/xml2js": "^0.4.5",
66
+ "bluebird": "3.7.2",
67
67
  "chai": "^4.2.0",
68
68
  "globby": "^11.0.1",
69
69
  "husky": "^4.2.5",
70
- "mocha": "^7.2.0",
70
+ "mocha": "^9.1.3",
71
71
  "nyc": "^15.1.0",
72
72
  "semantic-release": "^17.0.8",
73
73
  "shx": "0.2.2",
74
74
  "sinon": "9.0.2",
75
75
  "ts-node": "^8.10.2",
76
- "typescript": "^3.9.3",
76
+ "typescript": "^4.3.2",
77
77
  "xml2js": "^0.4.23"
78
78
  },
79
79
  "engines": {
@@ -120,7 +120,7 @@
120
120
  "compile": "tsc -b",
121
121
  "build": "yarn run clean:lib && yarn compile",
122
122
  "postpack": "rm -f oclif.manifest.json",
123
- "posttest": "tsc -p test --noEmit && tslint -p test -t stylish && yarn test:deprecation-policy && yarn test:command-reference",
123
+ "posttest": "yarn test:deprecation-policy && yarn test:command-reference",
124
124
  "prepack": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme",
125
125
  "test": "nyc mocha --forbid-only \"test/**/*.test.ts\"",
126
126
  "version": "oclif-dev readme && git add README.md",
@@ -137,7 +137,7 @@
137
137
  "access": "public"
138
138
  },
139
139
  "sfdx": {
140
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/sfdx-cli-03032020.crt",
141
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/signatures/salesforce-plugin-custom-metadata-1.0.12.sig"
140
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-custom-metadata/1.1.0.crt",
141
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-custom-metadata/1.1.0.sig"
142
142
  }
143
143
  }