@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 +2 -0
- package/dist/cli/generate.js +5 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{logger-DZpyHcLp.js → logger-dCI_xpGU.js} +28 -11
- package/package.json +1 -1
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
|
|
package/dist/cli/generate.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var logger$1 = require('../logger-
|
|
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
package/dist/index.js
CHANGED
|
@@ -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
|
-
|
|
718
|
-
securityClassification:
|
|
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
|
|
748
|
+
function renderComplianceGroup(complianceGroup, config) {
|
|
748
749
|
if (config.includeFieldSecurityMetadata) {
|
|
749
|
-
return
|
|
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
|
|
1580
|
-
**
|
|
1581
|
-
{{
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
2286
|
+
complianceGroup: null,
|
|
2287
|
+
inlineHelpText: null
|
|
2271
2288
|
};
|
|
2272
2289
|
return __spreadProps$c(__spreadValues$c(__spreadValues$c({}, defaultValues), customField), {
|
|
2273
2290
|
type_name: "customfield",
|