@cparra/apexdocs 3.12.0 → 3.12.1

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/README.md CHANGED
@@ -124,6 +124,8 @@ apexdocs changelog --previousVersionDir force-app-previous --currentVersionDir f
124
124
  | `--linkingStrategy` | N/A | The strategy to use when linking to other classes. Possible values are `relative`, `no-link`, and `none` | `relative` | No |
125
125
  | `--customObjectsGroupName` | N/A | The name under which custom objects will be grouped in the Reference Guide | `Custom Objects` | No |
126
126
  | `--triggersGroupName` | N/A | The name under which triggers will be grouped in the Reference Guide | `Triggers` | No |
127
+ | `--includeFieldSecurityMetadata` | N/A | Whether to include the compliance category and security classification for fields in the generated files. | `false` | No |
128
+ | `--includeInlineHelpTextMetadata` | N/A | Whether to include the inline help text for fields in the generated files. | `false` | No |
127
129
 
128
130
  ##### Linking Strategy
129
131
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var logger$1 = require('../logger-DZpyHcLp.js');
4
+ var logger$1 = require('../logger-dCI_xpGU.js');
5
5
  var module$1 = require('module');
6
6
  var cosmiconfig = require('cosmiconfig');
7
7
  var E = require('fp-ts/Either');
@@ -122,6 +122,10 @@ const markdownOptions = {
122
122
  type: "boolean",
123
123
  describe: "Whether to include the compliance category and security classification for fields in the generated files.",
124
124
  default: logger$1.markdownDefaults.includeFieldSecurityMetadata
125
+ },
126
+ includeInlineHelpTextMetadata: {
127
+ type: "boolean",
128
+ describe: "Whether to include the inline help text for fields in the generated files."
125
129
  }
126
130
  };
127
131
 
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ type CliConfigurableMarkdownConfig = {
33
33
  linkingStrategy: LinkingStrategy;
34
34
  referenceGuideTitle: string;
35
35
  includeFieldSecurityMetadata: boolean;
36
+ includeInlineHelpTextMetadata: boolean;
36
37
  };
37
38
 
38
39
  type UserDefinedMarkdownConfig = {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var logger = require('./logger-DZpyHcLp.js');
3
+ var logger = require('./logger-dCI_xpGU.js');
4
4
  var E = require('fp-ts/Either');
5
5
  require('fp-ts/function');
6
6
  require('fp-ts/TaskEither');
@@ -714,8 +714,9 @@ function fieldMetadataToRenderable(field, config, headingLevel) {
714
714
  apiName: getApiName(field.name, config),
715
715
  fieldType: field.type,
716
716
  required: field.required,
717
- complianceCategory: renderComplianceCategory(field.complianceCategory, config),
718
- securityClassification: renderComplianceCategory(field.securityClassification, config),
717
+ complianceGroup: renderComplianceGroup(field.complianceGroup, config),
718
+ securityClassification: renderComplianceGroup(field.securityClassification, config),
719
+ inlineHelpText: renderInlineHelpText(field.inlineHelpText, config),
719
720
  pickListValues: field.pickListValues ? {
720
721
  headingLevel: headingLevel + 1,
721
722
  heading: "Possible values are",
@@ -744,9 +745,16 @@ function getApiName(currentName, config) {
744
745
  }
745
746
  return currentName;
746
747
  }
747
- function renderComplianceCategory(complianceCategory, config) {
748
+ function renderComplianceGroup(complianceGroup, config) {
748
749
  if (config.includeFieldSecurityMetadata) {
749
- return complianceCategory;
750
+ return complianceGroup;
751
+ } else {
752
+ return null;
753
+ }
754
+ }
755
+ function renderInlineHelpText(inlineHelpText, config) {
756
+ if (config.includeInlineHelpTextMetadata) {
757
+ return inlineHelpText;
750
758
  } else {
751
759
  return null;
752
760
  }
@@ -1537,7 +1545,8 @@ const markdownDefaults = __spreadProps$i(__spreadValues$i({}, markdownAndChangel
1537
1545
  linkingStrategy: "relative",
1538
1546
  referenceGuideTitle: "Reference Guide",
1539
1547
  excludeTags: [],
1540
- includeFieldSecurityMetadata: false
1548
+ includeFieldSecurityMetadata: false,
1549
+ includeInlineHelpTextMetadata: false
1541
1550
  });
1542
1551
  const openApiDefaults = __spreadProps$i(__spreadValues$i({}, commonDefaults), {
1543
1552
  fileName: "openapi",
@@ -1576,9 +1585,14 @@ const customObjectTemplate = `
1576
1585
  {{{renderContent description}}}
1577
1586
  {{/if}}
1578
1587
 
1579
- {{#if complianceCategory}}
1580
- **Compliance Category**
1581
- {{complianceCategory}}
1588
+ {{#if inlineHelpText}}
1589
+ **Inline Help Text**
1590
+ {{inlineHelpText}}
1591
+ {{/if}}
1592
+
1593
+ {{#if complianceGroup}}
1594
+ **Compliance Group**
1595
+ {{complianceGroup}}
1582
1596
  {{/if}}
1583
1597
 
1584
1598
  {{#if securityClassification}}
@@ -2183,7 +2197,8 @@ function convertInlineFieldsToCustomFieldMetadata(inlineField, parentName) {
2183
2197
  const type = inlineField.type ? inlineField.type : null;
2184
2198
  const required = inlineField.required ? inlineField.required : false;
2185
2199
  const securityClassification = inlineField.securityClassification ? inlineField.securityClassification : null;
2186
- const complianceCategory = inlineField.complianceCategory ? inlineField.complianceCategory : null;
2200
+ const complianceGroup = inlineField.complianceGroup ? inlineField.complianceGroup : null;
2201
+ const inlineHelpText = inlineField.inlineHelpText ? inlineField.inlineHelpText : null;
2187
2202
  return {
2188
2203
  type_name: "customfield",
2189
2204
  description,
@@ -2193,7 +2208,8 @@ function convertInlineFieldsToCustomFieldMetadata(inlineField, parentName) {
2193
2208
  type,
2194
2209
  required,
2195
2210
  securityClassification,
2196
- complianceCategory,
2211
+ complianceGroup,
2212
+ inlineHelpText,
2197
2213
  pickListValues: getPickListValues(inlineField)
2198
2214
  };
2199
2215
  }
@@ -2267,7 +2283,8 @@ function toCustomFieldMetadata(parserResult) {
2267
2283
  description: null,
2268
2284
  required: false,
2269
2285
  securityClassification: null,
2270
- complianceCategory: null
2286
+ complianceGroup: null,
2287
+ inlineHelpText: null
2271
2288
  };
2272
2289
  return __spreadProps$c(__spreadValues$c(__spreadValues$c({}, defaultValues), customField), {
2273
2290
  type_name: "customfield",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cparra/apexdocs",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "description": "Library with CLI capabilities to generate documentation for Salesforce Apex classes.",
5
5
  "keywords": [
6
6
  "apex",