@cparra/apexdocs 2.16.0 → 2.16.2
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/docs/types/Classes/nspc.ChildClass.md +5 -5
- package/docs/types/Main/nspc.SampleClass.md +6 -5
- package/docs/types/Misc-Group/nspc.AtFutureRecipes.md +4 -4
- package/docs/types/Misc-Group/nspc.InterfaceWithInheritance.md +2 -2
- package/docs/types/Misc-Group/nspc.ParentClass.md +2 -2
- package/docs/types/Misc-Group/nspc.SampleClassWithoutModifier.md +1 -1
- package/docs/types/Misc-Group/nspc.SampleRestResource.md +3 -3
- package/docs/types/Misc-Group/nspc.SampleRestResourceWithInnerClass.md +1 -1
- package/docs/types/Misc-Group/nspc.SampleRestResourceWithoutApexDocs.md +2 -2
- package/docs/types/Sample-Interfaces/nspc.SampleInterface.md +2 -2
- package/examples/force-app/main/default/classes/SampleClass.cls +5 -0
- package/lib/model/markdown-generation-util/method-declaration-util.js +1 -1
- package/lib/model/markdown-generation-util/method-declaration-util.js.map +1 -1
- package/package.json +2 -2
- package/src/model/markdown-generation-util/method-declaration-util.ts +3 -1
|
@@ -47,8 +47,8 @@ This is a protected string, use carefully.
|
|
|
47
47
|
|
|
48
48
|
---
|
|
49
49
|
## Methods
|
|
50
|
-
### `public doSomething()`
|
|
51
|
-
### `public override overridableMethodOverridden()`
|
|
50
|
+
### `public void doSomething()`
|
|
51
|
+
### `public override String overridableMethodOverridden()`
|
|
52
52
|
|
|
53
53
|
This method was overridden.
|
|
54
54
|
|
|
@@ -58,11 +58,11 @@ This method was overridden.
|
|
|
58
58
|
|---|---|
|
|
59
59
|
|String|A String.|
|
|
60
60
|
|
|
61
|
-
### `public execute()`
|
|
61
|
+
### `public void execute()`
|
|
62
62
|
|
|
63
63
|
Executes the command.
|
|
64
64
|
|
|
65
|
-
### `public getValue()`
|
|
65
|
+
### `public String getValue()`
|
|
66
66
|
|
|
67
67
|
Returns a value based on the executed command.
|
|
68
68
|
|
|
@@ -72,7 +72,7 @@ Returns a value based on the executed command.
|
|
|
72
72
|
|---|---|
|
|
73
73
|
|String|The value|
|
|
74
74
|
|
|
75
|
-
### `public overridableMethod()`
|
|
75
|
+
### `public String overridableMethod()`
|
|
76
76
|
|
|
77
77
|
*Inherited*
|
|
78
78
|
|
|
@@ -97,7 +97,7 @@ This is a String property.
|
|
|
97
97
|
---
|
|
98
98
|
## Methods
|
|
99
99
|
### A method group
|
|
100
|
-
##### `public static sampleMethod(String argument1, String argument2)`
|
|
100
|
+
##### `public static String sampleMethod(String argument1, String argument2)`
|
|
101
101
|
|
|
102
102
|
`NAMESPACEACCESSIBLE`
|
|
103
103
|
|
|
@@ -123,16 +123,17 @@ System.debug(result);
|
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
##### `public static anotherSampleMethod(String arg1)`
|
|
126
|
+
##### `public static String anotherSampleMethod(String arg1)`
|
|
127
127
|
|
|
128
128
|
Something here
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
**Arg1** The arg1 description
|
|
132
132
|
|
|
133
|
+
##### `public static Map<Id,List<String>> yetAnotherSampleMethod(String arg1)`
|
|
133
134
|
---
|
|
134
135
|
### Other
|
|
135
|
-
##### `public static call()`
|
|
136
|
+
##### `public static void call()`
|
|
136
137
|
|
|
137
138
|
Calls the method. This methods allows you to call it.
|
|
138
139
|
|
|
@@ -160,7 +161,7 @@ Description of the inner property.
|
|
|
160
161
|
|
|
161
162
|
---
|
|
162
163
|
#### Methods
|
|
163
|
-
##### `public innerMethod()`
|
|
164
|
+
##### `public void innerMethod()`
|
|
164
165
|
|
|
165
166
|
Executes from the inner class.
|
|
166
167
|
|
|
@@ -179,7 +180,7 @@ Description of the inner property.
|
|
|
179
180
|
|
|
180
181
|
---
|
|
181
182
|
#### Methods
|
|
182
|
-
##### `public innerMethod()`
|
|
183
|
+
##### `public void innerMethod()`
|
|
183
184
|
|
|
184
185
|
Executes from the inner class.
|
|
185
186
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# nspc.AtFutureRecipes
|
|
2
|
-
|
|
3
|
-
Demonstrates the @future syntax and usage
|
|
4
|
-
|
|
1
|
+
# nspc.AtFutureRecipes
|
|
2
|
+
|
|
3
|
+
Demonstrates the @future syntax and usage
|
|
4
|
+
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
,
|
|
7
7
|
[nspc.AnotherInterface](types/Classes/nspc.AnotherInterface.md)
|
|
8
8
|
## Methods
|
|
9
|
-
### `global execute()`
|
|
9
|
+
### `global void execute()`
|
|
10
10
|
|
|
11
11
|
*Inherited*
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
Executes the command.
|
|
15
15
|
|
|
16
|
-
### `global getValue()`
|
|
16
|
+
### `global String getValue()`
|
|
17
17
|
|
|
18
18
|
*Inherited*
|
|
19
19
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Account related operations
|
|
6
6
|
|
|
7
7
|
## Methods
|
|
8
|
-
### `global static doDelete()`
|
|
8
|
+
### `global static void doDelete()`
|
|
9
9
|
|
|
10
10
|
`HTTPDELETE`
|
|
11
11
|
|
|
@@ -32,7 +32,7 @@ Sample HTTP Delete method with references to other types.
|
|
|
32
32
|
|
|
33
33
|
**Http Response** statusCode: 307 schema: Reference7[untypedObject:Reference2]
|
|
34
34
|
|
|
35
|
-
### `global static doGet()`
|
|
35
|
+
### `global static Account doGet()`
|
|
36
36
|
|
|
37
37
|
`HTTPGET`
|
|
38
38
|
|
|
@@ -65,7 +65,7 @@ This is a sample HTTP Get method
|
|
|
65
65
|
|
|
66
66
|
**Http Response** statusCode: 100 schema: type: object properties: anotherObject: description: An object inside of an object type: object properties: message: type: string somethingElse: type: number
|
|
67
67
|
|
|
68
|
-
### `global static doPost(String name, String phone, String website)`
|
|
68
|
+
### `global static String doPost(String name, String phone, String website)`
|
|
69
69
|
|
|
70
70
|
`HTTPPOST`
|
|
71
71
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
Order related operations
|
|
6
6
|
|
|
7
7
|
## Methods
|
|
8
|
-
### `global static doGet(String param1, Reference1 param2)`
|
|
8
|
+
### `global static String doGet(String param1, Reference1 param2)`
|
|
9
9
|
|
|
10
10
|
`HTTPGET`
|
|
11
|
-
### `global static doPatch(String param1, Reference1 param2)`
|
|
11
|
+
### `global static String doPatch(String param1, Reference1 param2)`
|
|
12
12
|
|
|
13
13
|
`HTTPPATCH`
|
|
14
14
|
---
|
|
@@ -6,11 +6,11 @@ This is an interface description.
|
|
|
6
6
|
**Group** Sample Interfaces
|
|
7
7
|
|
|
8
8
|
## Methods
|
|
9
|
-
### `global execute()`
|
|
9
|
+
### `global void execute()`
|
|
10
10
|
|
|
11
11
|
Executes the command.
|
|
12
12
|
|
|
13
|
-
### `global getValue()`
|
|
13
|
+
### `global String getValue()`
|
|
14
14
|
|
|
15
15
|
Returns a value based on the executed command.
|
|
16
16
|
|
|
@@ -94,6 +94,11 @@ public with sharing class SampleClass {
|
|
|
94
94
|
System.debug('something');
|
|
95
95
|
return '';
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
public static Map<Id, List<String>> yetAnotherSampleMethod(String arg1) {
|
|
99
|
+
System.debug('something');
|
|
100
|
+
return new Map<Id, List<String>>();
|
|
101
|
+
}
|
|
97
102
|
// @end-group
|
|
98
103
|
|
|
99
104
|
|
|
@@ -6,7 +6,7 @@ function declareMethod(markdownFile, methods, startingHeadingLevel, className =
|
|
|
6
6
|
methods.forEach((currentMethod) => {
|
|
7
7
|
var _a, _b;
|
|
8
8
|
const signatureName = isMethod(currentMethod)
|
|
9
|
-
? `${currentMethod.name}`
|
|
9
|
+
? `${currentMethod.typeReference.rawDeclaration} ${currentMethod.name}`
|
|
10
10
|
: className;
|
|
11
11
|
markdownFile.addTitle(`\`${buildSignature(currentMethod.access_modifier, signatureName, currentMethod)}\``, startingHeadingLevel + 2);
|
|
12
12
|
// Inheritance tag
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-declaration-util.js","sourceRoot":"","sources":["../../../src/model/markdown-generation-util/method-declaration-util.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAG/E,SAAgB,aAAa,CAC3B,YAA0B,EAC1B,OAA4D,EAC5D,oBAA4B,EAC5B,SAAS,GAAG,EAAE;IAEd,OAAO,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;;QAChC,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC;YAC3C,CAAC,CAAC,GAAI,aAA6C,CAAC,
|
|
1
|
+
{"version":3,"file":"method-declaration-util.js","sourceRoot":"","sources":["../../../src/model/markdown-generation-util/method-declaration-util.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAG/E,SAAgB,aAAa,CAC3B,YAA0B,EAC1B,OAA4D,EAC5D,oBAA4B,EAC5B,SAAS,GAAG,EAAE;IAEd,OAAO,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;;QAChC,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC;YAC3C,CAAC,CAAC,GAAI,aAA6C,CAAC,aAAa,CAAC,cAAc,IAC3E,aAA6C,CAAC,IACjD,EAAE;YACJ,CAAC,CAAC,SAAS,CAAC;QACd,YAAY,CAAC,QAAQ,CACnB,KAAK,cAAc,CAAC,aAAa,CAAC,eAAe,EAAE,aAAa,EAAE,aAAa,CAAC,IAAI,EACpF,oBAAoB,GAAG,CAAC,CACzB,CAAC;QAEF,kBAAkB;QAClB,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE;YAC3B,MAAM,cAAc,GAAG,aAA4C,CAAC;YACpE,IAAI,cAAc,CAAC,SAAS,EAAE;gBAC5B,YAAY,CAAC,YAAY,EAAE,CAAC;gBAC5B,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;gBACpC,YAAY,CAAC,YAAY,EAAE,CAAC;aAC7B;SACF;QAED,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAA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O,CAAC,CAAC,IAAI,EAAE,EAAE;QACvE,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IACH,YAAY,CAAC,YAAY,EAAE,CAAC;IAC5B,YAAY,CAAC,YAAY,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,QAAQ,CACf,MAAwE;IAExE,OAAQ,MAAsC,CAAC,aAAa,KAAK,SAAS,CAAC;AAC7E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cparra/apexdocs",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.2",
|
|
4
4
|
"description": "Library with CLI capabilities to generate documentation for Salesforce Apex classes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@cparra/apex-reflection": "2.4.
|
|
69
|
+
"@cparra/apex-reflection": "2.4.1",
|
|
70
70
|
"chalk": "^4.1.2",
|
|
71
71
|
"fast-xml-parser": "^4.0.1",
|
|
72
72
|
"js-yaml": "^4.1.0",
|
|
@@ -12,7 +12,9 @@ export function declareMethod(
|
|
|
12
12
|
): void {
|
|
13
13
|
methods.forEach((currentMethod) => {
|
|
14
14
|
const signatureName = isMethod(currentMethod)
|
|
15
|
-
? `${(currentMethod as MethodMirrorWithInheritance).
|
|
15
|
+
? `${(currentMethod as MethodMirrorWithInheritance).typeReference.rawDeclaration} ${
|
|
16
|
+
(currentMethod as MethodMirrorWithInheritance).name
|
|
17
|
+
}`
|
|
16
18
|
: className;
|
|
17
19
|
markdownFile.addTitle(
|
|
18
20
|
`\`${buildSignature(currentMethod.access_modifier, signatureName, currentMethod)}\``,
|