@cparra/apexdocs 2.22.0 → 2.23.0
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/.eslintrc.js +12 -12
- package/.github/workflows/close_stale.yml +22 -22
- package/.prettierrc.js +7 -7
- package/LICENSE +21 -21
- package/README.md +718 -682
- package/apexdocs.config.ts +13 -11
- package/docs/README.md +1 -1
- package/docs/restapi.json +589 -589
- package/docs/types/Classes/nspc.ChildClass.md +21 -18
- package/docs/types/Main/nspc.SampleClass.md +13 -13
- package/examples/force-app/main/default/classes/AnotherInterface.cls +16 -16
- package/examples/force-app/main/default/classes/ChildClass.cls +42 -41
- package/examples/force-app/main/default/classes/EscapedAnnotations.cls +5 -5
- package/examples/force-app/main/default/classes/GrandparentClass.cls +4 -4
- package/examples/force-app/main/default/classes/GroupedClass.cls +8 -8
- package/examples/force-app/main/default/classes/MemberGrouping.cls +17 -17
- package/examples/force-app/main/default/classes/ParentClass.cls +16 -16
- package/examples/force-app/main/default/classes/SampleClass.cls +166 -166
- package/examples/force-app/main/default/classes/SampleClass.cls-meta.xml +5 -5
- package/examples/force-app/main/default/classes/SampleClassWithoutModifier.cls +9 -9
- package/examples/force-app/main/default/classes/SampleInterface.cls +16 -16
- package/examples/force-app/main/default/restapi/SampleRestResource.cls +195 -195
- package/examples/force-app/main/default/restapi/SampleRestResourceToSkip.cls +35 -35
- package/examples/force-app/main/default/restapi/SampleRestResourceWithInnerClass.cls +24 -24
- package/examples/force-app/main/default/restapi/SampleRestResourceWithoutApexDocs.cls +15 -15
- package/examples/force-app/main/default/restapi/references/Reference1.cls +9 -9
- package/examples/force-app/main/default/restapi/references/Reference2.cls +9 -9
- package/examples/force-app/main/default/restapi/references/Reference3.cls +3 -3
- package/examples/force-app/main/default/restapi/references/Reference4.cls +3 -3
- package/examples/force-app/main/default/restapi/references/Reference5.cls +3 -3
- package/examples/force-app/main/default/restapi/references/Reference6.cls +6 -6
- package/examples/force-app/main/default/restapi/references/Reference7.cls +3 -3
- package/examples/includes/header.md +3 -3
- package/jest.config.js +5 -5
- package/lib/application/Apexdocs.d.ts +13 -13
- package/lib/application/Apexdocs.js +76 -76
- package/lib/cli/generate.d.ts +2 -2
- package/lib/cli/generate.js +130 -122
- package/lib/cli/generate.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +17 -17
- package/lib/model/apex-bundle.d.ts +6 -6
- package/lib/model/apex-bundle.js +10 -10
- package/lib/model/apex-type-wrappers/ClassMirrorWrapper.d.ts +7 -7
- package/lib/model/apex-type-wrappers/ClassMirrorWrapper.js +13 -13
- package/lib/model/apex-type-wrappers/MethodMirrorWrapper.d.ts +7 -7
- package/lib/model/apex-type-wrappers/MethodMirrorWrapper.js +11 -11
- package/lib/model/inheritance.d.ts +8 -8
- package/lib/model/inheritance.js +2 -2
- package/lib/model/manifest-diff.d.ts +27 -27
- package/lib/model/manifest-diff.js +68 -68
- package/lib/model/manifest.d.ts +22 -22
- package/lib/model/manifest.js +46 -46
- package/lib/model/markdown-file.d.ts +16 -16
- package/lib/model/markdown-file.js +106 -106
- package/lib/model/markdown-generation-util/doc-comment-annotation-util.d.ts +8 -8
- package/lib/model/markdown-generation-util/doc-comment-annotation-util.js +43 -43
- package/lib/model/markdown-generation-util/field-declaration-util.d.ts +3 -3
- package/lib/model/markdown-generation-util/field-declaration-util.js +54 -62
- package/lib/model/markdown-generation-util/field-declaration-util.js.map +1 -1
- package/lib/model/markdown-generation-util/index.d.ts +3 -3
- package/lib/model/markdown-generation-util/index.js +19 -19
- package/lib/model/markdown-generation-util/method-declaration-util.d.ts +4 -4
- package/lib/model/markdown-generation-util/method-declaration-util.js +114 -114
- package/lib/model/markdown-generation-util/type-declaration-util.d.ts +3 -3
- package/lib/model/markdown-generation-util/type-declaration-util.js +81 -81
- package/lib/model/markdown-home-file.d.ts +11 -11
- package/lib/model/markdown-home-file.js +53 -53
- package/lib/model/markdown-type-file.d.ts +26 -26
- package/lib/model/markdown-type-file.js +133 -141
- package/lib/model/markdown-type-file.js.map +1 -1
- package/lib/model/openapi/apex-doc-types.d.ts +19 -19
- package/lib/model/openapi/apex-doc-types.js +4 -4
- package/lib/model/openapi/open-api-types.d.ts +93 -93
- package/lib/model/openapi/open-api-types.js +2 -2
- package/lib/model/openapi/open-api.d.ts +16 -16
- package/lib/model/openapi/open-api.js +33 -33
- package/lib/model/openapi/openapi-type-file.d.ts +7 -7
- package/lib/model/openapi/openapi-type-file.js +16 -16
- package/lib/model/outputFile.d.ts +10 -10
- package/lib/model/outputFile.js +28 -28
- package/lib/model/types-repository.d.ts +16 -16
- package/lib/model/types-repository.js +53 -53
- package/lib/service/apex-file-reader.d.ts +14 -14
- package/lib/service/apex-file-reader.js +45 -45
- package/lib/service/file-system.d.ts +14 -14
- package/lib/service/file-system.js +24 -24
- package/lib/service/file-writer.d.ts +6 -6
- package/lib/service/file-writer.js +33 -33
- package/lib/service/manifest-factory.d.ts +10 -10
- package/lib/service/manifest-factory.js +13 -13
- package/lib/service/metadata-processor.d.ts +3 -3
- package/lib/service/metadata-processor.js +16 -16
- package/lib/service/parser.d.ts +21 -21
- package/lib/service/parser.js +134 -134
- package/lib/service/state.d.ts +9 -9
- package/lib/service/state.js +19 -19
- package/lib/service/walkers/class-walker.d.ts +4 -4
- package/lib/service/walkers/class-walker.js +32 -32
- package/lib/service/walkers/class-walker.js.map +1 -1
- package/lib/service/walkers/enum-walker.d.ts +4 -4
- package/lib/service/walkers/enum-walker.js +10 -10
- package/lib/service/walkers/enum-walker.js.map +1 -1
- package/lib/service/walkers/interface-walker.d.ts +4 -4
- package/lib/service/walkers/interface-walker.js +14 -14
- package/lib/service/walkers/interface-walker.js.map +1 -1
- package/lib/service/walkers/walker-factory.d.ts +5 -5
- package/lib/service/walkers/walker-factory.js +20 -20
- package/lib/service/walkers/walker.d.ts +19 -16
- package/lib/service/walkers/walker.js +16 -9
- package/lib/service/walkers/walker.js.map +1 -1
- package/lib/settings.d.ts +64 -53
- package/lib/settings.js +88 -78
- package/lib/settings.js.map +1 -1
- package/lib/test-helpers/AnnotationBuilder.d.ts +12 -12
- package/lib/test-helpers/AnnotationBuilder.js +30 -30
- package/lib/test-helpers/ClassMirrorBuilder.d.ts +18 -18
- package/lib/test-helpers/ClassMirrorBuilder.js +53 -53
- package/lib/test-helpers/DocCommentAnnotationBuilder.d.ts +8 -8
- package/lib/test-helpers/DocCommentAnnotationBuilder.js +25 -25
- package/lib/test-helpers/DocCommentBuilder.d.ts +12 -12
- package/lib/test-helpers/DocCommentBuilder.js +37 -37
- package/lib/test-helpers/FieldMirrorBuilder.d.ts +18 -18
- package/lib/test-helpers/FieldMirrorBuilder.js +53 -53
- package/lib/test-helpers/MethodMirrorBuilder.d.ts +10 -10
- package/lib/test-helpers/MethodMirrorBuilder.js +36 -36
- package/lib/test-helpers/SettingsBuilder.d.ts +8 -8
- package/lib/test-helpers/SettingsBuilder.js +26 -26
- package/lib/transpiler/factory.d.ts +6 -6
- package/lib/transpiler/factory.js +31 -31
- package/lib/transpiler/file-container.d.ts +6 -6
- package/lib/transpiler/file-container.js +15 -15
- package/lib/transpiler/generator-choices.d.ts +1 -1
- package/lib/transpiler/generator-choices.js +2 -2
- package/lib/transpiler/markdown/class-file-generatorHelper.d.ts +8 -8
- package/lib/transpiler/markdown/class-file-generatorHelper.js +55 -55
- package/lib/transpiler/markdown/class-file-generatorHelper.js.map +1 -1
- package/lib/transpiler/markdown/docsify/docsify-docs-processor.d.ts +6 -6
- package/lib/transpiler/markdown/docsify/docsify-docs-processor.js +12 -12
- package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.d.ts +11 -10
- package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.js +50 -27
- package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.js.map +1 -1
- package/lib/transpiler/markdown/markdown-transpiler-base.d.ts +11 -11
- package/lib/transpiler/markdown/markdown-transpiler-base.js +23 -23
- package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.d.ts +6 -6
- package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js +13 -13
- package/lib/transpiler/openapi/open-api-docs-processor.d.ts +13 -13
- package/lib/transpiler/openapi/open-api-docs-processor.js +74 -74
- package/lib/transpiler/openapi/parsers/Builder.d.ts +16 -16
- package/lib/transpiler/openapi/parsers/Builder.js +29 -29
- package/lib/transpiler/openapi/parsers/MethodParser.d.ts +20 -20
- package/lib/transpiler/openapi/parsers/MethodParser.js +166 -166
- package/lib/transpiler/openapi/parsers/ParameterObjectBuilder.d.ts +7 -7
- package/lib/transpiler/openapi/parsers/ParameterObjectBuilder.js +10 -10
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.d.ts +39 -39
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.js +225 -225
- package/lib/transpiler/openapi/parsers/RequestBodyBuilder.d.ts +10 -10
- package/lib/transpiler/openapi/parsers/RequestBodyBuilder.js +19 -19
- package/lib/transpiler/openapi/parsers/ResponsesBuilder.d.ts +7 -7
- package/lib/transpiler/openapi/parsers/ResponsesBuilder.js +21 -21
- package/lib/transpiler/processor-type-transpiler.d.ts +10 -10
- package/lib/transpiler/processor-type-transpiler.js +8 -8
- package/lib/transpiler/transpiler.d.ts +5 -5
- package/lib/transpiler/transpiler.js +26 -26
- package/lib/util/error-logger.d.ts +8 -8
- package/lib/util/error-logger.js +89 -89
- package/lib/util/logger.d.ts +21 -21
- package/lib/util/logger.js +57 -57
- package/lib/util/string-utils.d.ts +2 -2
- package/lib/util/string-utils.js +14 -14
- package/package.json +78 -78
- package/src/cli/generate.ts +8 -0
- package/src/model/markdown-generation-util/field-declaration-util.ts +3 -9
- package/src/model/markdown-type-file.ts +4 -10
- package/src/service/walkers/class-walker.ts +6 -7
- package/src/service/walkers/enum-walker.ts +0 -1
- package/src/service/walkers/interface-walker.ts +1 -1
- package/src/service/walkers/walker.ts +8 -1
- package/src/settings.ts +21 -0
- package/src/transpiler/markdown/class-file-generatorHelper.ts +2 -2
- package/src/transpiler/markdown/jekyll/jekyll-docsProcessor.ts +26 -3
- package/tsconfig.json +20 -20
- package/tslint.json +5 -5
- package/ROADMAP.md +0 -16
package/lib/settings.d.ts
CHANGED
|
@@ -1,53 +1,64 @@
|
|
|
1
|
-
import { GeneratorChoices } from './transpiler/generator-choices';
|
|
2
|
-
export type OnBeforeFileWrite = (file: TargetFile) => TargetFile;
|
|
3
|
-
export type TargetFile = {
|
|
4
|
-
name: string;
|
|
5
|
-
extension: string;
|
|
6
|
-
dir: OutputDir;
|
|
7
|
-
};
|
|
8
|
-
export type OutputDir = {
|
|
9
|
-
baseDir: string;
|
|
10
|
-
fileDir: string;
|
|
11
|
-
};
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import { GeneratorChoices } from './transpiler/generator-choices';
|
|
2
|
+
export type OnBeforeFileWrite = (file: TargetFile) => TargetFile;
|
|
3
|
+
export type TargetFile = {
|
|
4
|
+
name: string;
|
|
5
|
+
extension: string;
|
|
6
|
+
dir: OutputDir;
|
|
7
|
+
};
|
|
8
|
+
export type OutputDir = {
|
|
9
|
+
baseDir: string;
|
|
10
|
+
fileDir: string;
|
|
11
|
+
};
|
|
12
|
+
export type TargetType = {
|
|
13
|
+
name: string;
|
|
14
|
+
typeName: 'class' | 'interface' | 'enum';
|
|
15
|
+
accessModifier: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
group?: string;
|
|
18
|
+
};
|
|
19
|
+
export interface SettingsConfig {
|
|
20
|
+
sourceDirectory: string;
|
|
21
|
+
recursive: boolean;
|
|
22
|
+
scope: string[];
|
|
23
|
+
outputDir: string;
|
|
24
|
+
targetGenerator: GeneratorChoices;
|
|
25
|
+
indexOnly: boolean;
|
|
26
|
+
defaultGroupName: string;
|
|
27
|
+
sanitizeHtml: boolean;
|
|
28
|
+
openApiTitle?: string;
|
|
29
|
+
title: string;
|
|
30
|
+
namespace?: string;
|
|
31
|
+
openApiFileName: string;
|
|
32
|
+
includeMetadata: boolean;
|
|
33
|
+
rootDir?: string;
|
|
34
|
+
sortMembersAlphabetically?: boolean;
|
|
35
|
+
onAfterProcess?: (files: TargetFile[]) => void;
|
|
36
|
+
onBeforeFileWrite?: (file: TargetFile) => TargetFile;
|
|
37
|
+
frontMatterHeader?: (file: TargetType) => string[];
|
|
38
|
+
}
|
|
39
|
+
export declare class Settings {
|
|
40
|
+
config: SettingsConfig;
|
|
41
|
+
private static instance;
|
|
42
|
+
private constructor();
|
|
43
|
+
static build(config: SettingsConfig): void;
|
|
44
|
+
static getInstance(): Settings;
|
|
45
|
+
get sourceDirectory(): string;
|
|
46
|
+
get recursive(): boolean;
|
|
47
|
+
get scope(): string[];
|
|
48
|
+
get outputDir(): string;
|
|
49
|
+
get targetGenerator(): GeneratorChoices;
|
|
50
|
+
get indexOnly(): boolean;
|
|
51
|
+
get sanitizeHtml(): boolean;
|
|
52
|
+
getDefaultGroupName(): string;
|
|
53
|
+
getOpenApiTitle(): string | undefined;
|
|
54
|
+
getTitle(): string;
|
|
55
|
+
getNamespace(): string | undefined;
|
|
56
|
+
getNamespacePrefix(): string;
|
|
57
|
+
openApiFileName(): string;
|
|
58
|
+
includeMetadata(): boolean;
|
|
59
|
+
sortMembersAlphabetically(): boolean;
|
|
60
|
+
getRootDir(): string | undefined;
|
|
61
|
+
onAfterProcess(files: TargetFile[]): void;
|
|
62
|
+
onBeforeFileWrite(file: TargetFile): TargetFile;
|
|
63
|
+
frontMatterHeader(file: TargetType): string[];
|
|
64
|
+
}
|
package/lib/settings.js
CHANGED
|
@@ -1,79 +1,89 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Settings = void 0;
|
|
4
|
-
class Settings {
|
|
5
|
-
constructor(config) {
|
|
6
|
-
this.config = config;
|
|
7
|
-
}
|
|
8
|
-
static build(config) {
|
|
9
|
-
Settings.instance = new Settings(config);
|
|
10
|
-
}
|
|
11
|
-
static getInstance() {
|
|
12
|
-
if (!Settings.instance) {
|
|
13
|
-
throw new Error('Settings has not been initialized');
|
|
14
|
-
}
|
|
15
|
-
return Settings.instance;
|
|
16
|
-
}
|
|
17
|
-
get sourceDirectory() {
|
|
18
|
-
return this.config.sourceDirectory;
|
|
19
|
-
}
|
|
20
|
-
get recursive() {
|
|
21
|
-
return this.config.recursive;
|
|
22
|
-
}
|
|
23
|
-
get scope() {
|
|
24
|
-
return this.config.scope;
|
|
25
|
-
}
|
|
26
|
-
get outputDir() {
|
|
27
|
-
return this.config.outputDir;
|
|
28
|
-
}
|
|
29
|
-
get targetGenerator() {
|
|
30
|
-
return this.config.targetGenerator;
|
|
31
|
-
}
|
|
32
|
-
get indexOnly() {
|
|
33
|
-
return this.config.indexOnly;
|
|
34
|
-
}
|
|
35
|
-
get sanitizeHtml() {
|
|
36
|
-
return this.config.sanitizeHtml;
|
|
37
|
-
}
|
|
38
|
-
getDefaultGroupName() {
|
|
39
|
-
return this.config.defaultGroupName;
|
|
40
|
-
}
|
|
41
|
-
getOpenApiTitle() {
|
|
42
|
-
var _a;
|
|
43
|
-
return (_a = this.config.openApiTitle) !== null && _a !== void 0 ? _a : this.config.title;
|
|
44
|
-
}
|
|
45
|
-
getTitle() {
|
|
46
|
-
return this.config.title;
|
|
47
|
-
}
|
|
48
|
-
getNamespace() {
|
|
49
|
-
return this.config.namespace;
|
|
50
|
-
}
|
|
51
|
-
getNamespacePrefix() {
|
|
52
|
-
if (!this.config.namespace) {
|
|
53
|
-
return '';
|
|
54
|
-
}
|
|
55
|
-
return `${this.config.namespace}.`;
|
|
56
|
-
}
|
|
57
|
-
openApiFileName() {
|
|
58
|
-
return this.config.openApiFileName;
|
|
59
|
-
}
|
|
60
|
-
includeMetadata() {
|
|
61
|
-
return this.config.includeMetadata;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Settings = void 0;
|
|
4
|
+
class Settings {
|
|
5
|
+
constructor(config) {
|
|
6
|
+
this.config = config;
|
|
7
|
+
}
|
|
8
|
+
static build(config) {
|
|
9
|
+
Settings.instance = new Settings(config);
|
|
10
|
+
}
|
|
11
|
+
static getInstance() {
|
|
12
|
+
if (!Settings.instance) {
|
|
13
|
+
throw new Error('Settings has not been initialized');
|
|
14
|
+
}
|
|
15
|
+
return Settings.instance;
|
|
16
|
+
}
|
|
17
|
+
get sourceDirectory() {
|
|
18
|
+
return this.config.sourceDirectory;
|
|
19
|
+
}
|
|
20
|
+
get recursive() {
|
|
21
|
+
return this.config.recursive;
|
|
22
|
+
}
|
|
23
|
+
get scope() {
|
|
24
|
+
return this.config.scope;
|
|
25
|
+
}
|
|
26
|
+
get outputDir() {
|
|
27
|
+
return this.config.outputDir;
|
|
28
|
+
}
|
|
29
|
+
get targetGenerator() {
|
|
30
|
+
return this.config.targetGenerator;
|
|
31
|
+
}
|
|
32
|
+
get indexOnly() {
|
|
33
|
+
return this.config.indexOnly;
|
|
34
|
+
}
|
|
35
|
+
get sanitizeHtml() {
|
|
36
|
+
return this.config.sanitizeHtml;
|
|
37
|
+
}
|
|
38
|
+
getDefaultGroupName() {
|
|
39
|
+
return this.config.defaultGroupName;
|
|
40
|
+
}
|
|
41
|
+
getOpenApiTitle() {
|
|
42
|
+
var _a;
|
|
43
|
+
return (_a = this.config.openApiTitle) !== null && _a !== void 0 ? _a : this.config.title;
|
|
44
|
+
}
|
|
45
|
+
getTitle() {
|
|
46
|
+
return this.config.title;
|
|
47
|
+
}
|
|
48
|
+
getNamespace() {
|
|
49
|
+
return this.config.namespace;
|
|
50
|
+
}
|
|
51
|
+
getNamespacePrefix() {
|
|
52
|
+
if (!this.config.namespace) {
|
|
53
|
+
return '';
|
|
54
|
+
}
|
|
55
|
+
return `${this.config.namespace}.`;
|
|
56
|
+
}
|
|
57
|
+
openApiFileName() {
|
|
58
|
+
return this.config.openApiFileName;
|
|
59
|
+
}
|
|
60
|
+
includeMetadata() {
|
|
61
|
+
return this.config.includeMetadata;
|
|
62
|
+
}
|
|
63
|
+
sortMembersAlphabetically() {
|
|
64
|
+
var _a;
|
|
65
|
+
return (_a = this.config.sortMembersAlphabetically) !== null && _a !== void 0 ? _a : false;
|
|
66
|
+
}
|
|
67
|
+
getRootDir() {
|
|
68
|
+
return this.config.rootDir;
|
|
69
|
+
}
|
|
70
|
+
onAfterProcess(files) {
|
|
71
|
+
if (this.config.onAfterProcess) {
|
|
72
|
+
this.config.onAfterProcess(files);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
onBeforeFileWrite(file) {
|
|
76
|
+
if (this.config.onBeforeFileWrite) {
|
|
77
|
+
return this.config.onBeforeFileWrite(file);
|
|
78
|
+
}
|
|
79
|
+
return file;
|
|
80
|
+
}
|
|
81
|
+
frontMatterHeader(file) {
|
|
82
|
+
if (this.config.frontMatterHeader) {
|
|
83
|
+
return this.config.frontMatterHeader(file);
|
|
84
|
+
}
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.Settings = Settings;
|
|
79
89
|
//# sourceMappingURL=settings.js.map
|
package/lib/settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":";;;AA4CA,MAAa,QAAQ;IAGnB,YAA2B,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;IAAG,CAAC;IAE9C,MAAM,CAAC,KAAK,CAAC,MAAsB;QACxC,QAAQ,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;IAEM,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;SACtD;QACD,OAAO,QAAQ,CAAC,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;IACrC,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAC3B,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAED,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;IACrC,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAED,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;IAClC,CAAC;IAEM,mBAAmB;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;IACtC,CAAC;IAEM,eAAe;;QACpB,OAAO,MAAA,IAAI,CAAC,MAAM,CAAC,YAAY,mCAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IACvD,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAC3B,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAEM,kBAAkB;QACvB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;YAC1B,OAAO,EAAE,CAAC;SACX;QACD,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC;IACrC,CAAC;IAEM,eAAe;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;IACrC,CAAC;IAEM,eAAe;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;IACrC,CAAC;IAEM,yBAAyB;;QAC9B,OAAO,MAAA,IAAI,CAAC,MAAM,CAAC,yBAAyB,mCAAI,KAAK,CAAC;IACxD,CAAC;IAEM,UAAU;QACf,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC7B,CAAC;IAEM,cAAc,CAAC,KAAmB;QACvC,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE;YAC9B,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;SACnC;IACH,CAAC;IAEM,iBAAiB,CAAC,IAAgB;QACvC,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE;YACjC,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,iBAAiB,CAAC,IAAgB;QACvC,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE;YACjC,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;SAC5C;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAtGD,4BAsGC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Annotation, AnnotationElementValue } from '@cparra/apex-reflection';
|
|
2
|
-
/**
|
|
3
|
-
* Builder class to create Annotation objects.
|
|
4
|
-
* For testing purposes only.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AnnotationBuilder {
|
|
7
|
-
private name;
|
|
8
|
-
private elementValues;
|
|
9
|
-
withName(name: string): AnnotationBuilder;
|
|
10
|
-
addElementValue(elementValue: AnnotationElementValue): AnnotationBuilder;
|
|
11
|
-
build(): Annotation;
|
|
12
|
-
}
|
|
1
|
+
import { Annotation, AnnotationElementValue } from '@cparra/apex-reflection';
|
|
2
|
+
/**
|
|
3
|
+
* Builder class to create Annotation objects.
|
|
4
|
+
* For testing purposes only.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnnotationBuilder {
|
|
7
|
+
private name;
|
|
8
|
+
private elementValues;
|
|
9
|
+
withName(name: string): AnnotationBuilder;
|
|
10
|
+
addElementValue(elementValue: AnnotationElementValue): AnnotationBuilder;
|
|
11
|
+
build(): Annotation;
|
|
12
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnnotationBuilder = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Builder class to create Annotation objects.
|
|
6
|
-
* For testing purposes only.
|
|
7
|
-
*/
|
|
8
|
-
class AnnotationBuilder {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.name = 'restresource';
|
|
11
|
-
this.elementValues = [];
|
|
12
|
-
}
|
|
13
|
-
withName(name) {
|
|
14
|
-
this.name = name;
|
|
15
|
-
return this;
|
|
16
|
-
}
|
|
17
|
-
addElementValue(elementValue) {
|
|
18
|
-
this.elementValues.push(elementValue);
|
|
19
|
-
return this;
|
|
20
|
-
}
|
|
21
|
-
build() {
|
|
22
|
-
return {
|
|
23
|
-
rawDeclaration: '',
|
|
24
|
-
name: this.name,
|
|
25
|
-
type: this.name,
|
|
26
|
-
elementValues: this.elementValues,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.AnnotationBuilder = AnnotationBuilder;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnnotationBuilder = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Builder class to create Annotation objects.
|
|
6
|
+
* For testing purposes only.
|
|
7
|
+
*/
|
|
8
|
+
class AnnotationBuilder {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.name = 'restresource';
|
|
11
|
+
this.elementValues = [];
|
|
12
|
+
}
|
|
13
|
+
withName(name) {
|
|
14
|
+
this.name = name;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
addElementValue(elementValue) {
|
|
18
|
+
this.elementValues.push(elementValue);
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
build() {
|
|
22
|
+
return {
|
|
23
|
+
rawDeclaration: '',
|
|
24
|
+
name: this.name,
|
|
25
|
+
type: this.name,
|
|
26
|
+
elementValues: this.elementValues,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AnnotationBuilder = AnnotationBuilder;
|
|
31
31
|
//# sourceMappingURL=AnnotationBuilder.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Annotation, ClassMirror, DocComment, FieldMirror, MethodMirror } from '@cparra/apex-reflection';
|
|
2
|
-
/**
|
|
3
|
-
* Builder class to create ClassMirror objects.
|
|
4
|
-
* For testing purposes only.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ClassMirrorBuilder {
|
|
7
|
-
private name;
|
|
8
|
-
private annotations;
|
|
9
|
-
private docComment?;
|
|
10
|
-
private methods;
|
|
11
|
-
private fields;
|
|
12
|
-
withName(name: string): ClassMirrorBuilder;
|
|
13
|
-
addAnnotation(annotation: Annotation): ClassMirrorBuilder;
|
|
14
|
-
withDocComment(docComment: DocComment): ClassMirrorBuilder;
|
|
15
|
-
addMethod(method: MethodMirror): ClassMirrorBuilder;
|
|
16
|
-
addFiled(field: FieldMirror): ClassMirrorBuilder;
|
|
17
|
-
build(): ClassMirror;
|
|
18
|
-
}
|
|
1
|
+
import { Annotation, ClassMirror, DocComment, FieldMirror, MethodMirror } from '@cparra/apex-reflection';
|
|
2
|
+
/**
|
|
3
|
+
* Builder class to create ClassMirror objects.
|
|
4
|
+
* For testing purposes only.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ClassMirrorBuilder {
|
|
7
|
+
private name;
|
|
8
|
+
private annotations;
|
|
9
|
+
private docComment?;
|
|
10
|
+
private methods;
|
|
11
|
+
private fields;
|
|
12
|
+
withName(name: string): ClassMirrorBuilder;
|
|
13
|
+
addAnnotation(annotation: Annotation): ClassMirrorBuilder;
|
|
14
|
+
withDocComment(docComment: DocComment): ClassMirrorBuilder;
|
|
15
|
+
addMethod(method: MethodMirror): ClassMirrorBuilder;
|
|
16
|
+
addFiled(field: FieldMirror): ClassMirrorBuilder;
|
|
17
|
+
build(): ClassMirror;
|
|
18
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClassMirrorBuilder = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Builder class to create ClassMirror objects.
|
|
6
|
-
* For testing purposes only.
|
|
7
|
-
*/
|
|
8
|
-
class ClassMirrorBuilder {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.name = 'SampleClass';
|
|
11
|
-
this.annotations = [];
|
|
12
|
-
this.methods = [];
|
|
13
|
-
this.fields = [];
|
|
14
|
-
}
|
|
15
|
-
withName(name) {
|
|
16
|
-
this.name = name;
|
|
17
|
-
return this;
|
|
18
|
-
}
|
|
19
|
-
addAnnotation(annotation) {
|
|
20
|
-
this.annotations.push(annotation);
|
|
21
|
-
return this;
|
|
22
|
-
}
|
|
23
|
-
withDocComment(docComment) {
|
|
24
|
-
this.docComment = docComment;
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
addMethod(method) {
|
|
28
|
-
this.methods.push(method);
|
|
29
|
-
return this;
|
|
30
|
-
}
|
|
31
|
-
addFiled(field) {
|
|
32
|
-
this.fields.push(field);
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
build() {
|
|
36
|
-
return {
|
|
37
|
-
annotations: this.annotations,
|
|
38
|
-
name: this.name,
|
|
39
|
-
type_name: 'class',
|
|
40
|
-
methods: this.methods,
|
|
41
|
-
implemented_interfaces: [],
|
|
42
|
-
properties: [],
|
|
43
|
-
fields: this.fields,
|
|
44
|
-
constructors: [],
|
|
45
|
-
enums: [],
|
|
46
|
-
interfaces: [],
|
|
47
|
-
classes: [],
|
|
48
|
-
access_modifier: 'public',
|
|
49
|
-
docComment: this.docComment,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.ClassMirrorBuilder = ClassMirrorBuilder;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClassMirrorBuilder = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Builder class to create ClassMirror objects.
|
|
6
|
+
* For testing purposes only.
|
|
7
|
+
*/
|
|
8
|
+
class ClassMirrorBuilder {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.name = 'SampleClass';
|
|
11
|
+
this.annotations = [];
|
|
12
|
+
this.methods = [];
|
|
13
|
+
this.fields = [];
|
|
14
|
+
}
|
|
15
|
+
withName(name) {
|
|
16
|
+
this.name = name;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
addAnnotation(annotation) {
|
|
20
|
+
this.annotations.push(annotation);
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
withDocComment(docComment) {
|
|
24
|
+
this.docComment = docComment;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
addMethod(method) {
|
|
28
|
+
this.methods.push(method);
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
addFiled(field) {
|
|
32
|
+
this.fields.push(field);
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
build() {
|
|
36
|
+
return {
|
|
37
|
+
annotations: this.annotations,
|
|
38
|
+
name: this.name,
|
|
39
|
+
type_name: 'class',
|
|
40
|
+
methods: this.methods,
|
|
41
|
+
implemented_interfaces: [],
|
|
42
|
+
properties: [],
|
|
43
|
+
fields: this.fields,
|
|
44
|
+
constructors: [],
|
|
45
|
+
enums: [],
|
|
46
|
+
interfaces: [],
|
|
47
|
+
classes: [],
|
|
48
|
+
access_modifier: 'public',
|
|
49
|
+
docComment: this.docComment,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.ClassMirrorBuilder = ClassMirrorBuilder;
|
|
54
54
|
//# sourceMappingURL=ClassMirrorBuilder.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DocCommentAnnotation } from '@cparra/apex-reflection';
|
|
2
|
-
export declare class DocCommentAnnotationBuilder {
|
|
3
|
-
private name;
|
|
4
|
-
private bodyLines;
|
|
5
|
-
withName(name: string): DocCommentAnnotationBuilder;
|
|
6
|
-
withBodyLines(bodyLines: string[]): DocCommentAnnotationBuilder;
|
|
7
|
-
build(): DocCommentAnnotation;
|
|
8
|
-
}
|
|
1
|
+
import { DocCommentAnnotation } from '@cparra/apex-reflection';
|
|
2
|
+
export declare class DocCommentAnnotationBuilder {
|
|
3
|
+
private name;
|
|
4
|
+
private bodyLines;
|
|
5
|
+
withName(name: string): DocCommentAnnotationBuilder;
|
|
6
|
+
withBodyLines(bodyLines: string[]): DocCommentAnnotationBuilder;
|
|
7
|
+
build(): DocCommentAnnotation;
|
|
8
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DocCommentAnnotationBuilder = void 0;
|
|
4
|
-
class DocCommentAnnotationBuilder {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.name = '';
|
|
7
|
-
this.bodyLines = [];
|
|
8
|
-
}
|
|
9
|
-
withName(name) {
|
|
10
|
-
this.name = name;
|
|
11
|
-
return this;
|
|
12
|
-
}
|
|
13
|
-
withBodyLines(bodyLines) {
|
|
14
|
-
this.bodyLines = bodyLines;
|
|
15
|
-
return this;
|
|
16
|
-
}
|
|
17
|
-
build() {
|
|
18
|
-
return {
|
|
19
|
-
name: this.name,
|
|
20
|
-
body: '',
|
|
21
|
-
bodyLines: this.bodyLines,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.DocCommentAnnotationBuilder = DocCommentAnnotationBuilder;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocCommentAnnotationBuilder = void 0;
|
|
4
|
+
class DocCommentAnnotationBuilder {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = '';
|
|
7
|
+
this.bodyLines = [];
|
|
8
|
+
}
|
|
9
|
+
withName(name) {
|
|
10
|
+
this.name = name;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
withBodyLines(bodyLines) {
|
|
14
|
+
this.bodyLines = bodyLines;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
build() {
|
|
18
|
+
return {
|
|
19
|
+
name: this.name,
|
|
20
|
+
body: '',
|
|
21
|
+
bodyLines: this.bodyLines,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.DocCommentAnnotationBuilder = DocCommentAnnotationBuilder;
|
|
26
26
|
//# sourceMappingURL=DocCommentAnnotationBuilder.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DocComment, DocCommentAnnotation } from '@cparra/apex-reflection';
|
|
2
|
-
/**
|
|
3
|
-
* Builder class to create DocComment objects.
|
|
4
|
-
* For testing purposes only.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DocCommentBuilder {
|
|
7
|
-
private description?;
|
|
8
|
-
private annotations;
|
|
9
|
-
addAnnotation(annotation: DocCommentAnnotation): DocCommentBuilder;
|
|
10
|
-
withDescription(description: string): DocCommentBuilder;
|
|
11
|
-
build(): DocComment;
|
|
12
|
-
}
|
|
1
|
+
import { DocComment, DocCommentAnnotation } from '@cparra/apex-reflection';
|
|
2
|
+
/**
|
|
3
|
+
* Builder class to create DocComment objects.
|
|
4
|
+
* For testing purposes only.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DocCommentBuilder {
|
|
7
|
+
private description?;
|
|
8
|
+
private annotations;
|
|
9
|
+
addAnnotation(annotation: DocCommentAnnotation): DocCommentBuilder;
|
|
10
|
+
withDescription(description: string): DocCommentBuilder;
|
|
11
|
+
build(): DocComment;
|
|
12
|
+
}
|