Skip to content

Commit 7bd47da

Browse files
Add output support for compliance category and security classification
1 parent 9b363ee commit 7bd47da

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<fullName>Social_Security_Number__c</fullName>
4+
<externalId>false</externalId>
5+
<label>Social Security Number</label>
6+
<description>Used to store the U.S. social security number in 9 digit format.</description>
7+
<length>9</length>
8+
<trackTrending>false</trackTrending>
9+
<type>Text</type>
10+
<complianceCategory>PII</complianceCategory>
11+
<securityClassification>Internal</securityClassification>
12+
</CustomField>

src/core/markdown/adapters/type-to-renderable.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ function fieldMetadataToRenderable(
357357
apiName: getApiName(field.name, config),
358358
fieldType: field.type,
359359
required: field.required,
360+
complianceCategory: field.complianceCategory,
361+
securityClassification: field.securityClassification,
360362
pickListValues: field.pickListValues
361363
? {
362364
headingLevel: headingLevel + 1,

src/core/markdown/templates/custom-object-template.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ export const customObjectTemplate = `
2424
{{{renderContent description}}}
2525
{{/if}}
2626
27+
{{#if complianceCategory}}
28+
**Compliance Category**
29+
{{complianceCategory}}
30+
{{/if}}
31+
32+
{{#if securityClassification}}
33+
**Security Classification**
34+
{{securityClassification}}
35+
{{/if}}
36+
2737
**API Name**
2838
2939
\`{{{apiName}}}\`

src/core/renderables/types.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ export type RenderableCustomField = {
202202
type: 'field';
203203
fieldType?: string | null;
204204
required: boolean;
205+
complianceCategory: string | null;
206+
securityClassification: string | null;
205207
};
206208

207209
export type RenderableCustomMetadata = {

0 commit comments

Comments
 (0)