@cparra/apexdocs 2.24.0 → 2.25.0-alpha.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/ci.yaml +22 -0
- package/.github/workflows/close_stale.yml +22 -22
- package/.prettierrc.js +7 -7
- package/LICENSE +21 -21
- package/README.md +742 -718
- package/apexdocs.config.ts +13 -13
- package/docs/{README.md → __old/README.md} +1 -1
- package/docs/{restapi.json → __old/restapi.json} +589 -589
- package/docs/{types → __old/types}/Classes/nspc.ChildClass.md +97 -97
- package/docs/{types → __old/types}/Main/nspc.SampleClass.md +189 -189
- package/examples/force-app/main/default/classes/AnotherInterface.cls +16 -16
- package/examples/force-app/main/default/classes/ChildClass.cls +42 -42
- 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/examples/plain-markdown/.forceignore +12 -0
- package/examples/plain-markdown/README.md +301 -0
- package/examples/plain-markdown/config/project-scratch-def.json +5 -0
- package/examples/plain-markdown/force-app/classes/BaseClass.cls +3 -0
- package/examples/plain-markdown/force-app/classes/ParentInterface.cls +3 -0
- package/examples/plain-markdown/force-app/classes/ReferencedEnum.cls +3 -0
- package/examples/plain-markdown/force-app/classes/SampleClass.cls +35 -0
- package/examples/plain-markdown/force-app/classes/SampleEnum.cls +30 -0
- package/examples/plain-markdown/force-app/classes/SampleException.cls +1 -0
- package/examples/plain-markdown/force-app/classes/SampleInterface.cls +46 -0
- package/examples/plain-markdown/package-lock.json +665 -0
- package/examples/plain-markdown/package.json +24 -0
- package/examples/plain-markdown/sfdx-project.json +12 -0
- package/examples/plain-markdown/template.md +3 -0
- package/jest.config.js +5 -5
- package/lib/adapters/apex-types.d.ts +5 -0
- package/lib/adapters/apex-types.js +34 -0
- package/lib/adapters/apex-types.js.map +1 -0
- package/lib/adapters/documentables.d.ts +6 -0
- package/lib/adapters/documentables.js +41 -0
- package/lib/adapters/documentables.js.map +1 -0
- package/lib/adapters/fields-and-properties.d.ts +3 -0
- package/lib/adapters/fields-and-properties.js +10 -0
- package/lib/adapters/fields-and-properties.js.map +1 -0
- package/lib/adapters/methods-and-constructors.d.ts +4 -0
- package/lib/adapters/methods-and-constructors.js +49 -0
- package/lib/adapters/methods-and-constructors.js.map +1 -0
- package/lib/adapters/references.d.ts +5 -0
- package/lib/adapters/references.js +82 -0
- package/lib/adapters/references.js.map +1 -0
- package/lib/adapters/type-utils.d.ts +2 -0
- package/lib/adapters/type-utils.js +8 -0
- package/lib/adapters/type-utils.js.map +1 -0
- package/lib/application/Apexdocs.d.ts +13 -13
- package/lib/application/Apexdocs.js +79 -76
- package/lib/application/Apexdocs.js.map +1 -1
- package/lib/cli/generate.d.ts +2 -2
- package/lib/cli/generate.js +156 -130
- 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.d.ts +22 -22
- package/lib/model/manifest.js +46 -46
- package/lib/model/manifest.js.map +1 -1
- package/lib/model/markdown-file.d.ts +16 -16
- package/lib/model/markdown-file.js +109 -106
- package/lib/model/markdown-file.js.map +1 -1
- 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 +46 -43
- package/lib/model/markdown-generation-util/doc-comment-annotation-util.js.map +1 -1
- package/lib/model/markdown-generation-util/field-declaration-util.d.ts +3 -3
- package/lib/model/markdown-generation-util/field-declaration-util.js +54 -54
- 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 +56 -53
- package/lib/model/markdown-home-file.js.map +1 -1
- package/lib/model/markdown-type-file.d.ts +26 -26
- package/lib/model/markdown-type-file.js +136 -133
- 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 +48 -45
- package/lib/service/apex-file-reader.js.map +1 -1
- package/lib/service/file-system.d.ts +14 -14
- package/lib/service/file-system.js +47 -24
- package/lib/service/file-system.js.map +1 -1
- package/lib/service/file-writer.d.ts +6 -6
- package/lib/service/file-writer.js +56 -33
- package/lib/service/file-writer.js.map +1 -1
- package/lib/service/manifest-factory.d.ts +10 -10
- package/lib/service/manifest-factory.js +16 -13
- package/lib/service/manifest-factory.js.map +1 -1
- 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 +137 -134
- package/lib/service/parser.js.map +1 -1
- 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/enum-walker.d.ts +4 -4
- package/lib/service/walkers/enum-walker.js +10 -10
- package/lib/service/walkers/interface-walker.d.ts +4 -4
- package/lib/service/walkers/interface-walker.js +14 -14
- 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 -19
- package/lib/service/walkers/walker.js +16 -16
- package/lib/settings.d.ts +70 -64
- package/lib/settings.js +99 -88
- package/lib/settings.js.map +1 -1
- package/lib/templating/compile.d.ts +7 -0
- package/lib/templating/compile.js +98 -0
- package/lib/templating/compile.js.map +1 -0
- package/lib/templating/helpers.d.ts +2 -0
- package/lib/templating/helpers.js +18 -0
- package/lib/templating/helpers.js.map +1 -0
- 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/InterfaceMirrorBuilder.d.ts +16 -0
- package/lib/test-helpers/InterfaceMirrorBuilder.js +43 -0
- package/lib/test-helpers/InterfaceMirrorBuilder.js.map +1 -0
- package/lib/test-helpers/MethodMirrorBuilder.d.ts +29 -10
- package/lib/test-helpers/MethodMirrorBuilder.js +71 -36
- package/lib/test-helpers/MethodMirrorBuilder.js.map +1 -1
- 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 +34 -31
- package/lib/transpiler/factory.js.map +1 -1
- 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 +11 -8
- package/lib/transpiler/markdown/class-file-generatorHelper.js +74 -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 -11
- package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.js +50 -50
- package/lib/transpiler/markdown/markdown-transpiler-base.d.ts +11 -11
- package/lib/transpiler/markdown/markdown-transpiler-base.js +26 -23
- package/lib/transpiler/markdown/markdown-transpiler-base.js.map +1 -1
- package/lib/transpiler/markdown/plain-markdown/class-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/class-template.js +36 -0
- package/lib/transpiler/markdown/plain-markdown/class-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.js +39 -0
- package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.js +25 -0
- package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/enum-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/enum-template.js +15 -0
- package/lib/transpiler/markdown/plain-markdown/enum-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.js +24 -0
- package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/interface-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/interface-template.js +20 -0
- package/lib/transpiler/markdown/plain-markdown/interface-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/methods-partial-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/methods-partial-template.js +49 -0
- package/lib/transpiler/markdown/plain-markdown/methods-partial-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.d.ts +13 -6
- package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js +121 -13
- package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js.map +1 -1
- package/lib/transpiler/markdown/plain-markdown/type-level-apex-doc-partial-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/type-level-apex-doc-partial-template.js +31 -0
- package/lib/transpiler/markdown/plain-markdown/type-level-apex-doc-partial-template.js.map +1 -0
- package/lib/transpiler/openapi/open-api-docs-processor.d.ts +13 -13
- package/lib/transpiler/openapi/open-api-docs-processor.js +77 -74
- package/lib/transpiler/openapi/open-api-docs-processor.js.map +1 -1
- package/lib/transpiler/openapi/parsers/Builder.d.ts +16 -16
- package/lib/transpiler/openapi/parsers/Builder.js +29 -29
- package/lib/transpiler/openapi/parsers/Builder.js.map +1 -1
- package/lib/transpiler/openapi/parsers/MethodParser.d.ts +20 -20
- package/lib/transpiler/openapi/parsers/MethodParser.js +189 -166
- package/lib/transpiler/openapi/parsers/MethodParser.js.map +1 -1
- 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 +248 -225
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.js.map +1 -1
- 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 +29 -26
- package/lib/transpiler/transpiler.js.map +1 -1
- package/lib/util/error-logger.d.ts +8 -8
- package/lib/util/error-logger.js +89 -89
- package/lib/util/error-logger.js.map +1 -1
- package/lib/util/logger.d.ts +21 -21
- package/lib/util/logger.js +60 -57
- package/lib/util/logger.js.map +1 -1
- package/lib/util/string-utils.d.ts +2 -2
- package/lib/util/string-utils.js +14 -14
- package/package.json +79 -78
- package/src/adapters/__tests__/interface-adapter.spec.ts +76 -0
- package/src/adapters/__tests__/references.spec.ts +115 -0
- package/src/adapters/apex-types.ts +67 -0
- package/src/adapters/documentables.ts +58 -0
- package/src/adapters/fields-and-properties.ts +14 -0
- package/src/adapters/methods-and-constructors.ts +78 -0
- package/src/adapters/references.ts +113 -0
- package/src/adapters/type-utils.ts +5 -0
- package/src/adapters/types.d.ts +8 -0
- package/src/cli/generate.ts +3 -0
- package/src/model/__tests__/manifest.spec.ts +1 -0
- package/src/model/manifest.ts +3 -3
- package/src/model/markdown-file.ts +1 -1
- package/src/model/openapi/open-api-types.ts +2 -2
- package/src/service/__tests__/apex-file-reader.spec.ts +4 -4
- package/src/service/__tests__/manifest-factory.spec.ts +1 -2
- package/src/settings.ts +15 -0
- package/src/templating/__tests__/compile.spec.ts +741 -0
- package/src/templating/compile.ts +187 -0
- package/src/templating/helpers.ts +14 -0
- package/src/templating/types.d.ts +104 -0
- package/src/test-helpers/FieldMirrorBuilder.ts +1 -1
- package/src/test-helpers/InterfaceMirrorBuilder.ts +44 -0
- package/src/test-helpers/MethodMirrorBuilder.ts +46 -6
- package/src/transpiler/markdown/class-file-generatorHelper.ts +22 -2
- package/src/transpiler/markdown/plain-markdown/class-template.ts +32 -0
- package/src/transpiler/markdown/plain-markdown/constructors-partial-template.ts +35 -0
- package/src/transpiler/markdown/plain-markdown/documentable-partial-template.ts +21 -0
- package/src/transpiler/markdown/plain-markdown/enum-template.ts +11 -0
- package/src/transpiler/markdown/plain-markdown/fieldsPartialTemplate.ts +20 -0
- package/src/transpiler/markdown/plain-markdown/interface-template.ts +16 -0
- package/src/transpiler/markdown/plain-markdown/methods-partial-template.ts +45 -0
- package/src/transpiler/markdown/plain-markdown/plain-docsProcessor.ts +122 -0
- package/src/transpiler/markdown/plain-markdown/type-level-apex-doc-partial-template.ts +27 -0
- package/src/transpiler/openapi/parsers/Builder.ts +1 -1
- package/src/transpiler/openapi/parsers/MethodParser.ts +1 -1
- package/src/transpiler/openapi/parsers/ReferenceBuilder.ts +1 -1
- package/src/util/error-logger.ts +4 -4
- package/src/util/logger.ts +3 -3
- package/tsconfig.json +21 -20
- package/tslint.json +5 -5
- package/lib/model/manifest-diff.d.ts +0 -27
- package/lib/model/manifest-diff.js +0 -69
- package/lib/model/manifest-diff.js.map +0 -1
- package/src/model/__tests__/manifest-diff.spec.ts +0 -139
- package/src/model/manifest-diff.ts +0 -94
- /package/docs/{index.html → __old/index.html} +0 -0
- /package/docs/{types → __old/types}/Classes/nspc.AnotherInterface.md +0 -0
- /package/docs/{types → __old/types}/Main/nspc.GroupedClass.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.EscapedAnnotations.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.GrandparentClass.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.InterfaceWithInheritance.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.MemberGrouping.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.ParentClass.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference1.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference2.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference3.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference4.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference5.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference6.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference7.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.SampleClassWithoutModifier.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.SampleRestResource.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.SampleRestResourceWithInnerClass.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.SampleRestResourceWithoutApexDocs.md +0 -0
- /package/docs/{types → __old/types}/README.md +0 -0
- /package/docs/{types → __old/types}/Sample-Interfaces/nspc.SampleInterface.md +0 -0
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FieldMirrorBuilder = void 0;
|
|
4
|
-
class FieldMirrorBuilder {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.docComment = undefined;
|
|
7
|
-
this.accessModifier = 'public';
|
|
8
|
-
this.name = 'fieldName';
|
|
9
|
-
this.memberModifiers = [];
|
|
10
|
-
this.type = {
|
|
11
|
-
type: 'String',
|
|
12
|
-
rawDeclaration: 'String',
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
withAccessModifier(accessModifier) {
|
|
16
|
-
this.accessModifier = accessModifier;
|
|
17
|
-
return this;
|
|
18
|
-
}
|
|
19
|
-
withName(name) {
|
|
20
|
-
this.name = name;
|
|
21
|
-
return this;
|
|
22
|
-
}
|
|
23
|
-
withType(type) {
|
|
24
|
-
this.type = {
|
|
25
|
-
rawDeclaration: type,
|
|
26
|
-
type: type,
|
|
27
|
-
};
|
|
28
|
-
return this;
|
|
29
|
-
}
|
|
30
|
-
withReferencedType(type) {
|
|
31
|
-
this.type = type;
|
|
32
|
-
return this;
|
|
33
|
-
}
|
|
34
|
-
addMemberModifier(memberModifier) {
|
|
35
|
-
this.memberModifiers.push(memberModifier);
|
|
36
|
-
return this;
|
|
37
|
-
}
|
|
38
|
-
withDocComment(docComment) {
|
|
39
|
-
this.docComment = docComment;
|
|
40
|
-
return this;
|
|
41
|
-
}
|
|
42
|
-
build() {
|
|
43
|
-
return {
|
|
44
|
-
access_modifier: this.accessModifier,
|
|
45
|
-
annotations: [],
|
|
46
|
-
name: this.name,
|
|
47
|
-
memberModifiers: this.memberModifiers,
|
|
48
|
-
typeReference: this.type,
|
|
49
|
-
docComment: this.docComment,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.FieldMirrorBuilder = FieldMirrorBuilder;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldMirrorBuilder = void 0;
|
|
4
|
+
class FieldMirrorBuilder {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.docComment = undefined;
|
|
7
|
+
this.accessModifier = 'public';
|
|
8
|
+
this.name = 'fieldName';
|
|
9
|
+
this.memberModifiers = [];
|
|
10
|
+
this.type = {
|
|
11
|
+
type: 'String',
|
|
12
|
+
rawDeclaration: 'String',
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
withAccessModifier(accessModifier) {
|
|
16
|
+
this.accessModifier = accessModifier;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
withName(name) {
|
|
20
|
+
this.name = name;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
withType(type) {
|
|
24
|
+
this.type = {
|
|
25
|
+
rawDeclaration: type,
|
|
26
|
+
type: type,
|
|
27
|
+
};
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
withReferencedType(type) {
|
|
31
|
+
this.type = type;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
addMemberModifier(memberModifier) {
|
|
35
|
+
this.memberModifiers.push(memberModifier);
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
withDocComment(docComment) {
|
|
39
|
+
this.docComment = docComment;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
build() {
|
|
43
|
+
return {
|
|
44
|
+
access_modifier: this.accessModifier,
|
|
45
|
+
annotations: [],
|
|
46
|
+
name: this.name,
|
|
47
|
+
memberModifiers: this.memberModifiers,
|
|
48
|
+
typeReference: this.type,
|
|
49
|
+
docComment: this.docComment,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.FieldMirrorBuilder = FieldMirrorBuilder;
|
|
54
54
|
//# sourceMappingURL=FieldMirrorBuilder.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Annotation, DocComment, InterfaceMirror, MethodMirror } from '@cparra/apex-reflection';
|
|
2
|
+
/**
|
|
3
|
+
* Builder class to create Interface objects.
|
|
4
|
+
* For testing purposes only.
|
|
5
|
+
*/
|
|
6
|
+
export declare class InterfaceMirrorBuilder {
|
|
7
|
+
private name;
|
|
8
|
+
private annotations;
|
|
9
|
+
private docComment?;
|
|
10
|
+
private methods;
|
|
11
|
+
withName(name: string): InterfaceMirrorBuilder;
|
|
12
|
+
addAnnotation(annotation: Annotation): InterfaceMirrorBuilder;
|
|
13
|
+
withDocComment(docComment: DocComment): InterfaceMirrorBuilder;
|
|
14
|
+
addMethod(method: MethodMirror): InterfaceMirrorBuilder;
|
|
15
|
+
build(): InterfaceMirror;
|
|
16
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InterfaceMirrorBuilder = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Builder class to create Interface objects.
|
|
6
|
+
* For testing purposes only.
|
|
7
|
+
*/
|
|
8
|
+
class InterfaceMirrorBuilder {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.name = 'SampleClass';
|
|
11
|
+
this.annotations = [];
|
|
12
|
+
this.methods = [];
|
|
13
|
+
}
|
|
14
|
+
withName(name) {
|
|
15
|
+
this.name = name;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
addAnnotation(annotation) {
|
|
19
|
+
this.annotations.push(annotation);
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
withDocComment(docComment) {
|
|
23
|
+
this.docComment = docComment;
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
addMethod(method) {
|
|
27
|
+
this.methods.push(method);
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
build() {
|
|
31
|
+
return {
|
|
32
|
+
annotations: this.annotations,
|
|
33
|
+
name: this.name,
|
|
34
|
+
type_name: 'interface',
|
|
35
|
+
methods: this.methods,
|
|
36
|
+
access_modifier: 'public',
|
|
37
|
+
docComment: this.docComment,
|
|
38
|
+
extended_interfaces: [],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.InterfaceMirrorBuilder = InterfaceMirrorBuilder;
|
|
43
|
+
//# sourceMappingURL=InterfaceMirrorBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InterfaceMirrorBuilder.js","sourceRoot":"","sources":["../../src/test-helpers/InterfaceMirrorBuilder.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,sBAAsB;IAAnC;QACU,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAiB,EAAE,CAAC;QAE/B,YAAO,GAAmB,EAAE,CAAC;IAiCvC,CAAC;IA/BC,QAAQ,CAAC,IAAY;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,aAAa,CAAC,UAAsB;QAClC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,cAAc,CAAC,UAAsB;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,MAAoB;QAC5B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,eAAe,EAAE,QAAQ;YACzB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,mBAAmB,EAAE,EAAE;SACxB,CAAC;IACJ,CAAC;CACF;AArCD,wDAqCC"}
|
|
@@ -1,10 +1,29 @@
|
|
|
1
|
-
import { Annotation, DocComment, MethodMirror } from '@cparra/apex-reflection';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
private
|
|
5
|
-
private
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { Annotation, DocComment, MethodMirror, ParameterMirror } from '@cparra/apex-reflection';
|
|
2
|
+
type Parameter = ParameterMirror;
|
|
3
|
+
export declare class MethodMirrorBuilder {
|
|
4
|
+
private name;
|
|
5
|
+
private annotations;
|
|
6
|
+
private docComment?;
|
|
7
|
+
private typeReference;
|
|
8
|
+
private parameters;
|
|
9
|
+
withName(name: string): MethodMirrorBuilder;
|
|
10
|
+
addAnnotation(annotation: Annotation): MethodMirrorBuilder;
|
|
11
|
+
withDocComment(docComment: DocComment): MethodMirrorBuilder;
|
|
12
|
+
withTypeReference(param: {
|
|
13
|
+
type: string;
|
|
14
|
+
rawDeclaration: string;
|
|
15
|
+
}): this;
|
|
16
|
+
addParameter(parameter: Parameter): MethodMirrorBuilder;
|
|
17
|
+
build(): MethodMirror;
|
|
18
|
+
}
|
|
19
|
+
export declare class ParameterBuilder {
|
|
20
|
+
private name;
|
|
21
|
+
private typeReference;
|
|
22
|
+
withName(name: string): ParameterBuilder;
|
|
23
|
+
withTypeReference(param: {
|
|
24
|
+
type: string;
|
|
25
|
+
rawDeclaration: string;
|
|
26
|
+
}): this;
|
|
27
|
+
build(): Parameter;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -1,37 +1,72 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MethodMirrorBuilder = void 0;
|
|
4
|
-
class MethodMirrorBuilder {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.name = 'sampleMethod';
|
|
7
|
-
this.annotations = [];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ParameterBuilder = exports.MethodMirrorBuilder = void 0;
|
|
4
|
+
class MethodMirrorBuilder {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'sampleMethod';
|
|
7
|
+
this.annotations = [];
|
|
8
|
+
this.typeReference = {
|
|
9
|
+
type: 'void',
|
|
10
|
+
rawDeclaration: 'void',
|
|
11
|
+
};
|
|
12
|
+
this.parameters = [];
|
|
13
|
+
}
|
|
14
|
+
withName(name) {
|
|
15
|
+
this.name = name;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
addAnnotation(annotation) {
|
|
19
|
+
this.annotations.push(annotation);
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
withDocComment(docComment) {
|
|
23
|
+
this.docComment = docComment;
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
withTypeReference(param) {
|
|
27
|
+
this.typeReference = param;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
addParameter(parameter) {
|
|
31
|
+
this.parameters.push(parameter);
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
build() {
|
|
35
|
+
return {
|
|
36
|
+
access_modifier: 'public',
|
|
37
|
+
annotations: this.annotations,
|
|
38
|
+
name: this.name,
|
|
39
|
+
memberModifiers: [],
|
|
40
|
+
typeReference: this.typeReference,
|
|
41
|
+
parameters: this.parameters,
|
|
42
|
+
docComment: this.docComment,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.MethodMirrorBuilder = MethodMirrorBuilder;
|
|
47
|
+
class ParameterBuilder {
|
|
48
|
+
constructor() {
|
|
49
|
+
this.name = 'param';
|
|
50
|
+
this.typeReference = {
|
|
51
|
+
type: 'String',
|
|
52
|
+
rawDeclaration: 'String',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
withName(name) {
|
|
56
|
+
this.name = name;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
withTypeReference(param) {
|
|
60
|
+
this.typeReference = param;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
build() {
|
|
64
|
+
return {
|
|
65
|
+
memberModifiers: [],
|
|
66
|
+
name: this.name,
|
|
67
|
+
typeReference: this.typeReference,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.ParameterBuilder = ParameterBuilder;
|
|
37
72
|
//# sourceMappingURL=MethodMirrorBuilder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MethodMirrorBuilder.js","sourceRoot":"","sources":["../../src/test-helpers/MethodMirrorBuilder.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"MethodMirrorBuilder.js","sourceRoot":"","sources":["../../src/test-helpers/MethodMirrorBuilder.ts"],"names":[],"mappings":";;;AAIA,MAAa,mBAAmB;IAAhC;QACU,SAAI,GAAG,cAAc,CAAC;QACtB,gBAAW,GAAiB,EAAE,CAAC;QAE/B,kBAAa,GAA6C;YAChE,IAAI,EAAE,MAAM;YACZ,cAAc,EAAE,MAAM;SACvB,CAAC;QACM,eAAU,GAAgB,EAAE,CAAC;IAsCvC,CAAC;IApCC,QAAQ,CAAC,IAAY;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,aAAa,CAAC,UAAsB;QAClC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,cAAc,CAAC,UAAsB;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,iBAAiB,CAAC,KAA+C;QAC/D,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAAoB;QAC/B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,OAAO;YACL,eAAe,EAAE,QAAQ;YACzB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,eAAe,EAAE,EAAE;YACnB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC;IACJ,CAAC;CACF;AA9CD,kDA8CC;AAED,MAAa,gBAAgB;IAA7B;QACU,SAAI,GAAG,OAAO,CAAC;QACf,kBAAa,GAA6C;YAChE,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE,QAAQ;SACzB,CAAC;IAmBJ,CAAC;IAjBC,QAAQ,CAAC,IAAY;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,iBAAiB,CAAC,KAA+C;QAC/D,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,OAAO;YACL,eAAe,EAAE,EAAE;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;CACF;AAxBD,4CAwBC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SettingsConfig } from '../settings';
|
|
2
|
-
/**
|
|
3
|
-
* Builder class to create SettingsConfig objects.
|
|
4
|
-
* For testing purposes only.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SettingsBuilder {
|
|
7
|
-
build(): SettingsConfig;
|
|
8
|
-
}
|
|
1
|
+
import { SettingsConfig } from '../settings';
|
|
2
|
+
/**
|
|
3
|
+
* Builder class to create SettingsConfig objects.
|
|
4
|
+
* For testing purposes only.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SettingsBuilder {
|
|
7
|
+
build(): SettingsConfig;
|
|
8
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsBuilder = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Builder class to create SettingsConfig objects.
|
|
6
|
-
* For testing purposes only.
|
|
7
|
-
*/
|
|
8
|
-
class SettingsBuilder {
|
|
9
|
-
build() {
|
|
10
|
-
return {
|
|
11
|
-
sourceDirectory: './',
|
|
12
|
-
recursive: true,
|
|
13
|
-
scope: [],
|
|
14
|
-
outputDir: './',
|
|
15
|
-
targetGenerator: 'openapi',
|
|
16
|
-
indexOnly: false,
|
|
17
|
-
defaultGroupName: 'Misc',
|
|
18
|
-
sanitizeHtml: true,
|
|
19
|
-
openApiTitle: 'Apex API',
|
|
20
|
-
openApiFileName: 'openapi',
|
|
21
|
-
title: 'Classes',
|
|
22
|
-
includeMetadata: false,
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.SettingsBuilder = SettingsBuilder;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SettingsBuilder = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Builder class to create SettingsConfig objects.
|
|
6
|
+
* For testing purposes only.
|
|
7
|
+
*/
|
|
8
|
+
class SettingsBuilder {
|
|
9
|
+
build() {
|
|
10
|
+
return {
|
|
11
|
+
sourceDirectory: './',
|
|
12
|
+
recursive: true,
|
|
13
|
+
scope: [],
|
|
14
|
+
outputDir: './',
|
|
15
|
+
targetGenerator: 'openapi',
|
|
16
|
+
indexOnly: false,
|
|
17
|
+
defaultGroupName: 'Misc',
|
|
18
|
+
sanitizeHtml: true,
|
|
19
|
+
openApiTitle: 'Apex API',
|
|
20
|
+
openApiFileName: 'openapi',
|
|
21
|
+
title: 'Classes',
|
|
22
|
+
includeMetadata: false,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.SettingsBuilder = SettingsBuilder;
|
|
27
27
|
//# sourceMappingURL=SettingsBuilder.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ProcessorTypeTranspiler from './processor-type-transpiler';
|
|
2
|
-
import { GeneratorChoices } from './generator-choices';
|
|
3
|
-
export declare class TypeTranspilerFactory {
|
|
4
|
-
private static typeTranspilerCache?;
|
|
5
|
-
static get(generator: GeneratorChoices): ProcessorTypeTranspiler;
|
|
6
|
-
}
|
|
1
|
+
import ProcessorTypeTranspiler from './processor-type-transpiler';
|
|
2
|
+
import { GeneratorChoices } from './generator-choices';
|
|
3
|
+
export declare class TypeTranspilerFactory {
|
|
4
|
+
private static typeTranspilerCache?;
|
|
5
|
+
static get(generator: GeneratorChoices): ProcessorTypeTranspiler;
|
|
6
|
+
}
|
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
case '
|
|
18
|
-
this.typeTranspilerCache = new
|
|
19
|
-
return this.typeTranspilerCache;
|
|
20
|
-
case '
|
|
21
|
-
this.typeTranspilerCache = new
|
|
22
|
-
return this.typeTranspilerCache;
|
|
23
|
-
case '
|
|
24
|
-
this.typeTranspilerCache = new
|
|
25
|
-
return this.typeTranspilerCache;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TypeTranspilerFactory = void 0;
|
|
7
|
+
const jekyll_docsProcessor_1 = require("./markdown/jekyll/jekyll-docsProcessor");
|
|
8
|
+
const docsify_docs_processor_1 = __importDefault(require("./markdown/docsify/docsify-docs-processor"));
|
|
9
|
+
const plain_docsProcessor_1 = require("./markdown/plain-markdown/plain-docsProcessor");
|
|
10
|
+
const open_api_docs_processor_1 = require("./openapi/open-api-docs-processor");
|
|
11
|
+
class TypeTranspilerFactory {
|
|
12
|
+
static get(generator) {
|
|
13
|
+
if (this.typeTranspilerCache) {
|
|
14
|
+
return this.typeTranspilerCache;
|
|
15
|
+
}
|
|
16
|
+
switch (generator) {
|
|
17
|
+
case 'jekyll':
|
|
18
|
+
this.typeTranspilerCache = new jekyll_docsProcessor_1.JekyllDocsProcessor();
|
|
19
|
+
return this.typeTranspilerCache;
|
|
20
|
+
case 'docsify':
|
|
21
|
+
this.typeTranspilerCache = new docsify_docs_processor_1.default();
|
|
22
|
+
return this.typeTranspilerCache;
|
|
23
|
+
case 'plain-markdown':
|
|
24
|
+
this.typeTranspilerCache = new plain_docsProcessor_1.PlainMarkdownDocsProcessor();
|
|
25
|
+
return this.typeTranspilerCache;
|
|
26
|
+
case 'openapi':
|
|
27
|
+
this.typeTranspilerCache = new open_api_docs_processor_1.OpenApiDocsProcessor();
|
|
28
|
+
return this.typeTranspilerCache;
|
|
29
|
+
default:
|
|
30
|
+
throw Error('Invalid target generator');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.TypeTranspilerFactory = TypeTranspilerFactory;
|
|
32
35
|
//# sourceMappingURL=factory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/transpiler/factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/transpiler/factory.ts"],"names":[],"mappings":";;;;;;AAEA,iFAA6E;AAC7E,uGAA6E;AAC7E,uFAA2F;AAC3F,+EAAyE;AAEzE,MAAa,qBAAqB;IAGzB,MAAM,CAAC,GAAG,CAAC,SAA2B;QAC3C,IAAI,IAAI,CAAC,mBAAmB,EAAE;YAC5B,OAAO,IAAI,CAAC,mBAAmB,CAAC;SACjC;QAED,QAAQ,SAAS,EAAE;YACjB,KAAK,QAAQ;gBACX,IAAI,CAAC,mBAAmB,GAAG,IAAI,0CAAmB,EAAE,CAAC;gBACrD,OAAO,IAAI,CAAC,mBAAmB,CAAC;YAClC,KAAK,SAAS;gBACZ,IAAI,CAAC,mBAAmB,GAAG,IAAI,gCAAoB,EAAE,CAAC;gBACtD,OAAO,IAAI,CAAC,mBAAmB,CAAC;YAClC,KAAK,gBAAgB;gBACnB,IAAI,CAAC,mBAAmB,GAAG,IAAI,gDAA0B,EAAE,CAAC;gBAC5D,OAAO,IAAI,CAAC,mBAAmB,CAAC;YAClC,KAAK,SAAS;gBACZ,IAAI,CAAC,mBAAmB,GAAG,IAAI,8CAAoB,EAAE,CAAC;gBACtD,OAAO,IAAI,CAAC,mBAAmB,CAAC;YAClC;gBACE,MAAM,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC3C;IACH,CAAC;CACF;AAzBD,sDAyBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OutputFile } from '../model/outputFile';
|
|
2
|
-
export declare class FileContainer {
|
|
3
|
-
_files: OutputFile[];
|
|
4
|
-
files(): OutputFile[];
|
|
5
|
-
pushFile(file: OutputFile): void;
|
|
6
|
-
}
|
|
1
|
+
import { OutputFile } from '../model/outputFile';
|
|
2
|
+
export declare class FileContainer {
|
|
3
|
+
_files: OutputFile[];
|
|
4
|
+
files(): OutputFile[];
|
|
5
|
+
pushFile(file: OutputFile): void;
|
|
6
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileContainer = void 0;
|
|
4
|
-
class FileContainer {
|
|
5
|
-
constructor() {
|
|
6
|
-
this._files = [];
|
|
7
|
-
}
|
|
8
|
-
files() {
|
|
9
|
-
return this._files;
|
|
10
|
-
}
|
|
11
|
-
pushFile(file) {
|
|
12
|
-
this._files.push(file);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.FileContainer = FileContainer;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileContainer = void 0;
|
|
4
|
+
class FileContainer {
|
|
5
|
+
constructor() {
|
|
6
|
+
this._files = [];
|
|
7
|
+
}
|
|
8
|
+
files() {
|
|
9
|
+
return this._files;
|
|
10
|
+
}
|
|
11
|
+
pushFile(file) {
|
|
12
|
+
this._files.push(file);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.FileContainer = FileContainer;
|
|
16
16
|
//# sourceMappingURL=file-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type GeneratorChoices = 'jekyll' | 'docsify' | 'plain-markdown' | 'openapi';
|
|
1
|
+
export type GeneratorChoices = 'jekyll' | 'docsify' | 'plain-markdown' | 'openapi';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=generator-choices.js.map
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Type } from '@cparra/apex-reflection';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
static
|
|
5
|
-
static
|
|
6
|
-
private static
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { Type } from '@cparra/apex-reflection';
|
|
2
|
+
import { StringOrLink } from '../../templating/types';
|
|
3
|
+
export default class ClassFileGeneratorHelper {
|
|
4
|
+
static getSanitizedGroup(classModel: Type): string;
|
|
5
|
+
static getFileLink(classModel: Type): string;
|
|
6
|
+
private static getFileLinkTuple;
|
|
7
|
+
static getFileLinkByTypeName(typeName: string): string;
|
|
8
|
+
static getRenderableLinkByTypeName(typeName: string): StringOrLink;
|
|
9
|
+
private static getDirectoryRoot;
|
|
10
|
+
private static getClassGroup;
|
|
11
|
+
}
|