@salesforce/plugin-custom-metadata 2.0.8 → 2.0.11
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/LICENSE.txt +1 -1
- package/README.md +0 -1
- package/lib/commands/generate/cmdt/field.d.ts +23 -0
- package/lib/commands/generate/cmdt/field.js +100 -0
- package/lib/commands/generate/cmdt/field.js.map +1 -0
- package/lib/commands/generate/cmdt/fromorg.d.ts +26 -0
- package/lib/commands/generate/cmdt/fromorg.js +184 -0
- package/lib/commands/generate/cmdt/fromorg.js.map +1 -0
- package/lib/commands/generate/cmdt/object.d.ts +23 -0
- package/lib/commands/generate/cmdt/object.js +79 -0
- package/lib/commands/generate/cmdt/object.js.map +1 -0
- package/lib/commands/generate/cmdt/record.d.ts +29 -0
- package/lib/commands/generate/cmdt/record.js +111 -0
- package/lib/commands/generate/cmdt/record.js.map +1 -0
- package/lib/commands/generate/cmdt/records.d.ts +18 -0
- package/lib/commands/generate/cmdt/records.js +105 -0
- package/lib/commands/generate/cmdt/records.js.map +1 -0
- package/lib/shared/helpers/createUtil.d.ts +51 -0
- package/lib/shared/helpers/createUtil.js +168 -0
- package/lib/shared/helpers/createUtil.js.map +1 -0
- package/lib/shared/helpers/fileWriter.d.ts +24 -0
- package/lib/shared/helpers/fileWriter.js +59 -0
- package/lib/shared/helpers/fileWriter.js.map +1 -0
- package/lib/{lib → shared}/helpers/metadataUtil.d.ts +1 -1
- package/lib/{lib → shared}/helpers/metadataUtil.js +1 -1
- package/lib/shared/helpers/metadataUtil.js.map +1 -0
- package/lib/{lib → shared}/helpers/validationUtil.d.ts +0 -0
- package/lib/{lib → shared}/helpers/validationUtil.js +0 -0
- package/lib/shared/helpers/validationUtil.js.map +1 -0
- package/lib/{lib → shared}/interfaces/createConfig.d.ts +3 -2
- package/lib/{lib → shared}/interfaces/createConfig.js +0 -0
- package/lib/shared/interfaces/createConfig.js.map +1 -0
- package/lib/shared/templates/templates.d.ts +20 -0
- package/lib/shared/templates/templates.js +208 -0
- package/lib/shared/templates/templates.js.map +1 -0
- package/messages/field.md +79 -0
- package/messages/fromorg.md +87 -0
- package/messages/object.md +73 -0
- package/messages/record.md +53 -0
- package/messages/records.md +49 -0
- package/messages/template.md +3 -0
- package/messages/validation.md +11 -0
- package/oclif.manifest.json +1 -1
- package/package.json +21 -20
- package/lib/commands/force/cmdt/create.d.ts +0 -25
- package/lib/commands/force/cmdt/create.js +0 -94
- package/lib/commands/force/cmdt/create.js.map +0 -1
- package/lib/commands/force/cmdt/field/create.d.ts +0 -25
- package/lib/commands/force/cmdt/field/create.js +0 -113
- package/lib/commands/force/cmdt/field/create.js.map +0 -1
- package/lib/commands/force/cmdt/generate.d.ts +0 -27
- package/lib/commands/force/cmdt/generate.js +0 -219
- package/lib/commands/force/cmdt/generate.js.map +0 -1
- package/lib/commands/force/cmdt/record/create.d.ts +0 -32
- package/lib/commands/force/cmdt/record/create.js +0 -140
- package/lib/commands/force/cmdt/record/create.js.map +0 -1
- package/lib/commands/force/cmdt/record/insert.d.ts +0 -16
- package/lib/commands/force/cmdt/record/insert.js +0 -110
- package/lib/commands/force/cmdt/record/insert.js.map +0 -1
- package/lib/lib/helpers/createUtil.d.ts +0 -62
- package/lib/lib/helpers/createUtil.js +0 -170
- package/lib/lib/helpers/createUtil.js.map +0 -1
- package/lib/lib/helpers/fileWriter.d.ts +0 -27
- package/lib/lib/helpers/fileWriter.js +0 -63
- package/lib/lib/helpers/fileWriter.js.map +0 -1
- package/lib/lib/helpers/metadataUtil.js.map +0 -1
- package/lib/lib/helpers/validationUtil.js.map +0 -1
- package/lib/lib/interfaces/createConfig.js.map +0 -1
- package/lib/lib/templates/templates.d.ts +0 -37
- package/lib/lib/templates/templates.js +0 -221
- package/lib/lib/templates/templates.js.map +0 -1
- package/messages/createField.json +0 -24
- package/messages/createRecord.json +0 -32
- package/messages/createType.json +0 -33
- package/messages/generate.json +0 -40
- package/messages/insertRecord.json +0 -26
- package/messages/template.json +0 -3
- package/messages/validation.json +0 -5
package/messages/createType.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"commandDescription": "creates a new custom metadata type in the current project",
|
|
3
|
-
"commandLongDescription": "Creates a new custom metadata type in the current project.",
|
|
4
|
-
|
|
5
|
-
"exampleCaption1": "Create a custom metadata type with developer name 'MyCustomType'; this name will also be used as the label:",
|
|
6
|
-
"exampleCaption2": "Create a protected custom metadata type with a specific label:",
|
|
7
|
-
|
|
8
|
-
"nameFlagDescription": "unique object name for the custom metadata type",
|
|
9
|
-
"nameFlagLongDescription": "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.",
|
|
10
|
-
|
|
11
|
-
"labelFlagDescription": "label for the custom metadata type",
|
|
12
|
-
"labelFlagLongDescription": "A label for the custom metadata type.",
|
|
13
|
-
"labelFlagExample": "Custom Type",
|
|
14
|
-
|
|
15
|
-
"plurallabelFlagDescription": "plural version of the label value; if blank, uses label",
|
|
16
|
-
"plurallabelFlagLongDescription": "The plural version of the label value. If this flag is missing or blank, the singular label is used as the plural label.",
|
|
17
|
-
"plurallabelFlagExample": "Custom Types",
|
|
18
|
-
|
|
19
|
-
"visibilityFlagDescription": "visibility of the custom metadata type",
|
|
20
|
-
"visibilityFlagLongDescription": "The visibility of the custom metadata type.",
|
|
21
|
-
|
|
22
|
-
"outputDirectoryFlagDescription": "directory to store the newly-created custom metadata type files",
|
|
23
|
-
"outputDirectoryFlagLongDescription": "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.",
|
|
24
|
-
|
|
25
|
-
"successResponse" : "Created custom metadata type with object name '%s', label '%s', plural label '%s', and visibility '%s' at '%s'.",
|
|
26
|
-
"errorNoOrgResults": "No results found for the organization '%s'.",
|
|
27
|
-
"errorNotValidAPIName" :"'%s' is not a valid API name for a custom metadata type. Metadata names can contain only underscores and alphanumeric characters, must begin with a letter, cannot end with an underscore, and cannot contain two consecutive underscore characters.",
|
|
28
|
-
"errorNotValidLabelName" : "'%s' is too long to be a label. The maximum length of the label is 40 characters.",
|
|
29
|
-
"errorNotValidPluralLabelName" : "'%s' is too long to be a plural label. The maximum length of the plural label is 40 characters.",
|
|
30
|
-
"targetDirectory" : "target dir = %s",
|
|
31
|
-
"fileCreated": " created %s",
|
|
32
|
-
"fileUpdate":" updated %s"
|
|
33
|
-
}
|
package/messages/generate.json
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"commandDescription": "generates a custom metadata type and all its records for the provided sObject",
|
|
3
|
-
"commandLongDescription": "Generates a custom metadata type and all its records for the provided sObject.",
|
|
4
|
-
"exampleCaption1": "Generate a custom metadata type from an sObject in the default target org:",
|
|
5
|
-
"exampleCaption2": "Generate a custom metadata type from an sObject in the specified target org; ignore unsupported field types instead of converting them to text:",
|
|
6
|
-
"exampleCaption3": "Generate a protected custom metadata type from an sObject in the default target org:",
|
|
7
|
-
"exampleCaption4": "Generate a protected custom metadata type with a specific label from an sObject in the default target org:",
|
|
8
|
-
"exampleCaption5": "Generate a custom metadata type from an sObject in the default target org; put the resulting type metadata file in the specified directory:",
|
|
9
|
-
"exampleCaption6": "Generate a custom metadata type from an sObject in the default target org; put the resulting record metadata file(s) in the specified directory:",
|
|
10
|
-
"visibilityFlagDescription": "visibility of the custom metadata type",
|
|
11
|
-
"visibilityFlagLongDescription": "The visibility of the custom metadata type.",
|
|
12
|
-
"devnameFlagDescription": "name of the custom metadata type",
|
|
13
|
-
"devnameFlagLongDescription": "The name of the custom metadata type.",
|
|
14
|
-
"labelFlagDescription": "label for the custom metadata type",
|
|
15
|
-
"labelFlagLongDescription": "The label for the custom metadata type.",
|
|
16
|
-
"labelFlagExample": "My CMDT",
|
|
17
|
-
"plurallabelFlagDescription": "plural version of the label value; if blank, uses label",
|
|
18
|
-
"plurallabelFlagLongDescription": "The plural version of the label value. If this flag is missing or blank, the singular label is used as the plural label.",
|
|
19
|
-
"plurallabelFlagExample": "My CMDTs",
|
|
20
|
-
"sobjectnameFlagDescription": "API name of the sObject source for custom metadata generation",
|
|
21
|
-
"sobjectnameFlagLongDescription": "The API name of the sObject source for custom metadata generation.",
|
|
22
|
-
"targetusernameFlagExample": "alias or user email of the org containing the source type",
|
|
23
|
-
"ignoreUnsupportedFlagDescription": "ignore unsupported field types",
|
|
24
|
-
"ignoreUnsupportedFlagLongDescription": "Ignore unsupported field types (these fields will not be created). The default is to create Text fields and convert the source value to text.",
|
|
25
|
-
"typeoutputdirFlagDescription": "directory to store newly-created custom metadata type files",
|
|
26
|
-
"typeoutputdirFlagLongDescription": "The directory to store newly-created custom metadata type files.",
|
|
27
|
-
"typeoutputdirFlagExample": "path/to/my/cmdt/directory",
|
|
28
|
-
"recordsoutputdirFlagDescription": "directory to store newly-created custom metadata record files",
|
|
29
|
-
"recordsoutputdirFlagLongDescription": "The directory to store newly-created custom metadata record files.",
|
|
30
|
-
"recordsoutputdirFlagExample": "path/to/my/cmdt/record/directory",
|
|
31
|
-
"loglevelFlagDescription": "logging level for this command invocation",
|
|
32
|
-
"loglevelFlagLongDescription": "The logging level for this command invocation.",
|
|
33
|
-
"typenameFlagError": "Not a valid custom metadata type name",
|
|
34
|
-
"sobjectnameNoResultError": "No sObject with name %s found in the org.",
|
|
35
|
-
"sourceusernameError": "No user found with the provided username or alias",
|
|
36
|
-
"sourceuserAuthenticationError": "Issue with authenticating to source org with targetusername provided: %s More info: %s.",
|
|
37
|
-
"generateError": "Failed to generate custom metadata. Reason: %s.",
|
|
38
|
-
"customSettingTypeError": "Cannot generate custom metadata for the custom setting %s. Check type and visibility.",
|
|
39
|
-
"queryError": "Cannot query records on %s. Failed with following error: %s."
|
|
40
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"commandDescription": "create new custom metadata type records from a CSV file",
|
|
3
|
-
"commandLongDescription": "Create new custom metadata type records from a CSV file.",
|
|
4
|
-
|
|
5
|
-
"exampleCaption1": "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:",
|
|
6
|
-
"exampleCaption2": "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:",
|
|
7
|
-
|
|
8
|
-
"filepathFlagDescription": "path to the CSV file",
|
|
9
|
-
"filepathFlagLongDescription": "The path to the CSV file.",
|
|
10
|
-
|
|
11
|
-
"inputDirectoryFlagDescription": "directory to pull the custom metadata type definition from",
|
|
12
|
-
"inputDirectoryFlagLongDescription": "The directory to pull the custom metadata type definition from.",
|
|
13
|
-
"inputDirectoryFlagExample": "path/to/my/cmdt/directory",
|
|
14
|
-
|
|
15
|
-
"outputDirectoryFlagDescription": "directory to store newly-created custom metadata record files",
|
|
16
|
-
"outputDirectoryFlagLongDescription": "The directory to store newly-created custom metadata record files.",
|
|
17
|
-
|
|
18
|
-
"typenameFlagDescription": "API name of the custom metadata type",
|
|
19
|
-
"typenameFlagLongDescription": "The API Name of the custom metadata type. The '__mdt' suffix will be appended to the end of the name if it is omitted.",
|
|
20
|
-
|
|
21
|
-
"namecolumnFlagDescription": "column that is used to determine the name of the record",
|
|
22
|
-
"namecolumnFlagLongDescription": "The column that is used to determine the name of the record.",
|
|
23
|
-
|
|
24
|
-
"successResponse": "Created custom metadata type records from '%s' at '%s'.",
|
|
25
|
-
"fieldNotFoundError": "The column %s is not found on the custom metadata type %s."
|
|
26
|
-
}
|
package/messages/template.json
DELETED
package/messages/validation.json
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"sobjectnameFlagError": "Not a valid custom setting/custom object name: %s",
|
|
3
|
-
"invalidCMDTApiName": "'%s' is not a valid API name for a custom metadata type. Metadata names can contain only underscores and alphanumeric characters, must begin with a letter, cannot end with an underscore, and cannot contain two consecutive underscore characters.",
|
|
4
|
-
"notAValidRecordNameError": "'%s' is not a valid record name for a custom metadata record. Record names can only contain alphanumeric characters, must begin with a letter, cannot end with an underscore, and cannot contain two consecutive underscore characters."
|
|
5
|
-
}
|