@cparra/apexdocs 2.25.0-alpha.2 → 2.25.0-alpha.4

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.
Files changed (355) hide show
  1. package/README.md +37 -0
  2. package/dist/cli/generate.js +291 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +1 -0
  5. package/examples/plain-markdown/docs/Miscellaneous/ns.SampleException.md +18 -0
  6. package/examples/plain-markdown/docs/Miscellaneous/ns.SampleInterface.md +6 -2
  7. package/examples/plain-markdown/docs/Miscellaneous/ns.Url.md +320 -0
  8. package/examples/plain-markdown/docs/Sample-Enums/ns.SampleEnum.md +3 -1
  9. package/examples/plain-markdown/docs/SampleGroup/ns.SampleClass.md +1 -1
  10. package/examples/plain-markdown/docs/index.md +84 -0
  11. package/examples/plain-markdown/force-app/classes/SampleException.cls +16 -0
  12. package/examples/plain-markdown/force-app/classes/Url.cls +194 -0
  13. package/examples/plain-markdown/package.json +2 -1
  14. package/jest.config.js +1 -1
  15. package/package.json +11 -13
  16. package/src/__spec__/core/generating-class-docs.spec.ts +57 -37
  17. package/src/__spec__/core/generating-enum-docs.spec.ts +25 -22
  18. package/src/__spec__/core/generating-interface-docs.spec.ts +33 -30
  19. package/src/__spec__/core/generating-reference-guide.spec.ts +8 -7
  20. package/src/__spec__/core/test-helpers.ts +9 -0
  21. package/src/application/Apexdocs.ts +34 -5
  22. package/src/application/{flows → generators}/generate-markdown-files.ts +19 -13
  23. package/src/cli/args.ts +138 -0
  24. package/src/cli/generate.ts +12 -138
  25. package/src/core/adapters/__tests__/documentables.spec.ts +109 -0
  26. package/src/{adapters → core/adapters}/__tests__/interface-adapter.spec.ts +13 -11
  27. package/src/{adapters → core/adapters}/__tests__/references.spec.ts +23 -2
  28. package/src/{adapters → core/adapters}/apex-types.ts +18 -15
  29. package/src/{adapters → core/adapters}/documentables.ts +54 -12
  30. package/src/{adapters → core/adapters}/fields-and-properties.ts +17 -10
  31. package/src/{adapters/references.ts → core/adapters/inline.ts} +43 -13
  32. package/src/{adapters → core/adapters}/methods-and-constructors.ts +21 -9
  33. package/src/core/adapters/type-utils.ts +13 -0
  34. package/src/core/{renderable → adapters}/types.d.ts +42 -4
  35. package/src/core/generate-docs.ts +55 -19
  36. package/src/core/template.ts +15 -9
  37. package/src/core/templates/reference-guide.ts +1 -1
  38. package/src/model/__tests__/manifest.spec.ts +1 -1
  39. package/src/model/markdown-generation-util/field-declaration-util.ts +1 -1
  40. package/src/model/markdown-generation-util/method-declaration-util.ts +1 -1
  41. package/src/model/markdown-type-file.ts +5 -1
  42. package/src/service/__tests__/apex-file-reader.spec.ts +1 -0
  43. package/src/service/apex-file-reader.ts +2 -6
  44. package/src/service/manifest-factory.ts +2 -2
  45. package/src/service/parser.ts +1 -1
  46. package/src/settings.ts +6 -10
  47. package/src/test-helpers/SettingsBuilder.ts +1 -2
  48. package/src/transpiler/factory.ts +2 -4
  49. package/src/transpiler/markdown/class-file-generatorHelper.ts +1 -18
  50. package/src/transpiler/markdown/plain-markdown/constructors-partial-template.ts +2 -2
  51. package/src/transpiler/markdown/plain-markdown/documentable-partial-template.ts +6 -4
  52. package/src/transpiler/markdown/plain-markdown/fieldsPartialTemplate.ts +1 -1
  53. package/src/transpiler/markdown/plain-markdown/methods-partial-template.ts +2 -2
  54. package/src/util/fp.ts +3 -0
  55. package/tsconfig.json +1 -1
  56. package/docs/.nojekyll +0 -0
  57. package/docs/__old/README.md +0 -1
  58. package/docs/__old/index.html +0 -22
  59. package/docs/__old/restapi.json +0 -589
  60. package/docs/__old/types/Classes/nspc.AnotherInterface.md +0 -22
  61. package/docs/__old/types/Classes/nspc.ChildClass.md +0 -97
  62. package/docs/__old/types/Main/nspc.GroupedClass.md +0 -10
  63. package/docs/__old/types/Main/nspc.SampleClass.md +0 -189
  64. package/docs/__old/types/Misc-Group/nspc.EscapedAnnotations.md +0 -4
  65. package/docs/__old/types/Misc-Group/nspc.GrandparentClass.md +0 -13
  66. package/docs/__old/types/Misc-Group/nspc.InterfaceWithInheritance.md +0 -29
  67. package/docs/__old/types/Misc-Group/nspc.MemberGrouping.md +0 -13
  68. package/docs/__old/types/Misc-Group/nspc.ParentClass.md +0 -37
  69. package/docs/__old/types/Misc-Group/nspc.Reference1.md +0 -18
  70. package/docs/__old/types/Misc-Group/nspc.Reference2.md +0 -12
  71. package/docs/__old/types/Misc-Group/nspc.Reference3.md +0 -7
  72. package/docs/__old/types/Misc-Group/nspc.Reference4.md +0 -7
  73. package/docs/__old/types/Misc-Group/nspc.Reference5.md +0 -7
  74. package/docs/__old/types/Misc-Group/nspc.Reference6.md +0 -9
  75. package/docs/__old/types/Misc-Group/nspc.Reference7.md +0 -7
  76. package/docs/__old/types/Misc-Group/nspc.SampleClassWithoutModifier.md +0 -11
  77. package/docs/__old/types/Misc-Group/nspc.SampleRestResource.md +0 -104
  78. package/docs/__old/types/Misc-Group/nspc.SampleRestResourceWithInnerClass.md +0 -33
  79. package/docs/__old/types/Misc-Group/nspc.SampleRestResourceWithoutApexDocs.md +0 -14
  80. package/docs/__old/types/README.md +0 -97
  81. package/docs/__old/types/Sample-Interfaces/nspc.SampleInterface.md +0 -23
  82. package/examples/includes/header.md +0 -3
  83. package/lib/__spec__/core/expect-extensions.d.ts +0 -3
  84. package/lib/__spec__/core/expect-extensions.js +0 -54
  85. package/lib/__spec__/core/expect-extensions.js.map +0 -1
  86. package/lib/__spec__/core/generating-class-docs.spec.d.ts +0 -1
  87. package/lib/__spec__/core/generating-class-docs.spec.js +0 -427
  88. package/lib/__spec__/core/generating-class-docs.spec.js.map +0 -1
  89. package/lib/__spec__/core/generating-enum-docs.spec.d.ts +0 -1
  90. package/lib/__spec__/core/generating-enum-docs.spec.js +0 -303
  91. package/lib/__spec__/core/generating-enum-docs.spec.js.map +0 -1
  92. package/lib/__spec__/core/generating-interface-docs.spec.d.ts +0 -1
  93. package/lib/__spec__/core/generating-interface-docs.spec.js +0 -361
  94. package/lib/__spec__/core/generating-interface-docs.spec.js.map +0 -1
  95. package/lib/__spec__/core/generating-reference-guide.spec.d.ts +0 -1
  96. package/lib/__spec__/core/generating-reference-guide.spec.js +0 -161
  97. package/lib/__spec__/core/generating-reference-guide.spec.js.map +0 -1
  98. package/lib/adapters/apex-types.d.ts +0 -5
  99. package/lib/adapters/apex-types.js +0 -109
  100. package/lib/adapters/apex-types.js.map +0 -1
  101. package/lib/adapters/documentables.d.ts +0 -7
  102. package/lib/adapters/documentables.js +0 -56
  103. package/lib/adapters/documentables.js.map +0 -1
  104. package/lib/adapters/fields-and-properties.d.ts +0 -4
  105. package/lib/adapters/fields-and-properties.js +0 -31
  106. package/lib/adapters/fields-and-properties.js.map +0 -1
  107. package/lib/adapters/methods-and-constructors.d.ts +0 -5
  108. package/lib/adapters/methods-and-constructors.js +0 -91
  109. package/lib/adapters/methods-and-constructors.js.map +0 -1
  110. package/lib/adapters/references.d.ts +0 -5
  111. package/lib/adapters/references.js +0 -82
  112. package/lib/adapters/references.js.map +0 -1
  113. package/lib/adapters/type-utils.d.ts +0 -2
  114. package/lib/adapters/type-utils.js +0 -7
  115. package/lib/adapters/type-utils.js.map +0 -1
  116. package/lib/application/Apexdocs.d.ts +0 -13
  117. package/lib/application/Apexdocs.js +0 -86
  118. package/lib/application/Apexdocs.js.map +0 -1
  119. package/lib/application/flows/generate-markdown-files.d.ts +0 -3
  120. package/lib/application/flows/generate-markdown-files.js +0 -57
  121. package/lib/application/flows/generate-markdown-files.js.map +0 -1
  122. package/lib/cli/generate.d.ts +0 -2
  123. package/lib/cli/generate.js +0 -157
  124. package/lib/cli/generate.js.map +0 -1
  125. package/lib/core/__test__/inheritance-chain.test.d.ts +0 -1
  126. package/lib/core/__test__/inheritance-chain.test.js +0 -42
  127. package/lib/core/__test__/inheritance-chain.test.js.map +0 -1
  128. package/lib/core/generate-docs.d.ts +0 -24
  129. package/lib/core/generate-docs.js +0 -267
  130. package/lib/core/generate-docs.js.map +0 -1
  131. package/lib/core/inheritance-chain.d.ts +0 -2
  132. package/lib/core/inheritance-chain.js +0 -35
  133. package/lib/core/inheritance-chain.js.map +0 -1
  134. package/lib/core/template.d.ts +0 -10
  135. package/lib/core/template.js +0 -92
  136. package/lib/core/template.js.map +0 -1
  137. package/lib/core/templates/reference-guide.d.ts +0 -1
  138. package/lib/core/templates/reference-guide.js +0 -18
  139. package/lib/core/templates/reference-guide.js.map +0 -1
  140. package/lib/index.d.ts +0 -2
  141. package/lib/index.js +0 -29
  142. package/lib/index.js.map +0 -1
  143. package/lib/model/apex-bundle.d.ts +0 -6
  144. package/lib/model/apex-bundle.js +0 -11
  145. package/lib/model/apex-bundle.js.map +0 -1
  146. package/lib/model/apex-type-wrappers/ClassMirrorWrapper.d.ts +0 -7
  147. package/lib/model/apex-type-wrappers/ClassMirrorWrapper.js +0 -14
  148. package/lib/model/apex-type-wrappers/ClassMirrorWrapper.js.map +0 -1
  149. package/lib/model/apex-type-wrappers/MethodMirrorWrapper.d.ts +0 -7
  150. package/lib/model/apex-type-wrappers/MethodMirrorWrapper.js +0 -12
  151. package/lib/model/apex-type-wrappers/MethodMirrorWrapper.js.map +0 -1
  152. package/lib/model/inheritance.d.ts +0 -11
  153. package/lib/model/inheritance.js +0 -3
  154. package/lib/model/inheritance.js.map +0 -1
  155. package/lib/model/manifest.d.ts +0 -22
  156. package/lib/model/manifest.js +0 -53
  157. package/lib/model/manifest.js.map +0 -1
  158. package/lib/model/markdown-file.d.ts +0 -16
  159. package/lib/model/markdown-file.js +0 -111
  160. package/lib/model/markdown-file.js.map +0 -1
  161. package/lib/model/markdown-generation-util/doc-comment-annotation-util.d.ts +0 -8
  162. package/lib/model/markdown-generation-util/doc-comment-annotation-util.js +0 -46
  163. package/lib/model/markdown-generation-util/doc-comment-annotation-util.js.map +0 -1
  164. package/lib/model/markdown-generation-util/field-declaration-util.d.ts +0 -3
  165. package/lib/model/markdown-generation-util/field-declaration-util.js +0 -54
  166. package/lib/model/markdown-generation-util/field-declaration-util.js.map +0 -1
  167. package/lib/model/markdown-generation-util/index.d.ts +0 -3
  168. package/lib/model/markdown-generation-util/index.js +0 -20
  169. package/lib/model/markdown-generation-util/index.js.map +0 -1
  170. package/lib/model/markdown-generation-util/method-declaration-util.d.ts +0 -4
  171. package/lib/model/markdown-generation-util/method-declaration-util.js +0 -114
  172. package/lib/model/markdown-generation-util/method-declaration-util.js.map +0 -1
  173. package/lib/model/markdown-generation-util/type-declaration-util.d.ts +0 -3
  174. package/lib/model/markdown-generation-util/type-declaration-util.js +0 -81
  175. package/lib/model/markdown-generation-util/type-declaration-util.js.map +0 -1
  176. package/lib/model/markdown-home-file.d.ts +0 -11
  177. package/lib/model/markdown-home-file.js +0 -57
  178. package/lib/model/markdown-home-file.js.map +0 -1
  179. package/lib/model/markdown-type-file.d.ts +0 -26
  180. package/lib/model/markdown-type-file.js +0 -137
  181. package/lib/model/markdown-type-file.js.map +0 -1
  182. package/lib/model/openapi/apex-doc-types.d.ts +0 -19
  183. package/lib/model/openapi/apex-doc-types.js +0 -5
  184. package/lib/model/openapi/apex-doc-types.js.map +0 -1
  185. package/lib/model/openapi/open-api-types.d.ts +0 -93
  186. package/lib/model/openapi/open-api-types.js +0 -3
  187. package/lib/model/openapi/open-api-types.js.map +0 -1
  188. package/lib/model/openapi/open-api.d.ts +0 -16
  189. package/lib/model/openapi/open-api.js +0 -34
  190. package/lib/model/openapi/open-api.js.map +0 -1
  191. package/lib/model/openapi/openapi-type-file.d.ts +0 -7
  192. package/lib/model/openapi/openapi-type-file.js +0 -17
  193. package/lib/model/openapi/openapi-type-file.js.map +0 -1
  194. package/lib/model/outputFile.d.ts +0 -10
  195. package/lib/model/outputFile.js +0 -22
  196. package/lib/model/outputFile.js.map +0 -1
  197. package/lib/model/types-repository.d.ts +0 -16
  198. package/lib/model/types-repository.js +0 -54
  199. package/lib/model/types-repository.js.map +0 -1
  200. package/lib/service/apex-file-reader.d.ts +0 -14
  201. package/lib/service/apex-file-reader.js +0 -49
  202. package/lib/service/apex-file-reader.js.map +0 -1
  203. package/lib/service/file-system.d.ts +0 -14
  204. package/lib/service/file-system.js +0 -48
  205. package/lib/service/file-system.js.map +0 -1
  206. package/lib/service/file-writer.d.ts +0 -6
  207. package/lib/service/file-writer.js +0 -57
  208. package/lib/service/file-writer.js.map +0 -1
  209. package/lib/service/manifest-factory.d.ts +0 -10
  210. package/lib/service/manifest-factory.js +0 -16
  211. package/lib/service/manifest-factory.js.map +0 -1
  212. package/lib/service/metadata-processor.d.ts +0 -3
  213. package/lib/service/metadata-processor.js +0 -17
  214. package/lib/service/metadata-processor.js.map +0 -1
  215. package/lib/service/parser.d.ts +0 -21
  216. package/lib/service/parser.js +0 -138
  217. package/lib/service/parser.js.map +0 -1
  218. package/lib/service/state.d.ts +0 -9
  219. package/lib/service/state.js +0 -20
  220. package/lib/service/state.js.map +0 -1
  221. package/lib/service/walkers/class-walker.d.ts +0 -4
  222. package/lib/service/walkers/class-walker.js +0 -33
  223. package/lib/service/walkers/class-walker.js.map +0 -1
  224. package/lib/service/walkers/enum-walker.d.ts +0 -4
  225. package/lib/service/walkers/enum-walker.js +0 -11
  226. package/lib/service/walkers/enum-walker.js.map +0 -1
  227. package/lib/service/walkers/interface-walker.d.ts +0 -4
  228. package/lib/service/walkers/interface-walker.js +0 -15
  229. package/lib/service/walkers/interface-walker.js.map +0 -1
  230. package/lib/service/walkers/walker-factory.d.ts +0 -5
  231. package/lib/service/walkers/walker-factory.js +0 -21
  232. package/lib/service/walkers/walker-factory.js.map +0 -1
  233. package/lib/service/walkers/walker.d.ts +0 -19
  234. package/lib/service/walkers/walker.js +0 -17
  235. package/lib/service/walkers/walker.js.map +0 -1
  236. package/lib/settings.d.ts +0 -64
  237. package/lib/settings.js +0 -89
  238. package/lib/settings.js.map +0 -1
  239. package/lib/test-helpers/AnnotationBuilder.d.ts +0 -12
  240. package/lib/test-helpers/AnnotationBuilder.js +0 -31
  241. package/lib/test-helpers/AnnotationBuilder.js.map +0 -1
  242. package/lib/test-helpers/ClassMirrorBuilder.d.ts +0 -22
  243. package/lib/test-helpers/ClassMirrorBuilder.js +0 -64
  244. package/lib/test-helpers/ClassMirrorBuilder.js.map +0 -1
  245. package/lib/test-helpers/DocCommentAnnotationBuilder.d.ts +0 -8
  246. package/lib/test-helpers/DocCommentAnnotationBuilder.js +0 -26
  247. package/lib/test-helpers/DocCommentAnnotationBuilder.js.map +0 -1
  248. package/lib/test-helpers/DocCommentBuilder.d.ts +0 -12
  249. package/lib/test-helpers/DocCommentBuilder.js +0 -38
  250. package/lib/test-helpers/DocCommentBuilder.js.map +0 -1
  251. package/lib/test-helpers/FieldMirrorBuilder.d.ts +0 -18
  252. package/lib/test-helpers/FieldMirrorBuilder.js +0 -54
  253. package/lib/test-helpers/FieldMirrorBuilder.js.map +0 -1
  254. package/lib/test-helpers/InterfaceMirrorBuilder.d.ts +0 -16
  255. package/lib/test-helpers/InterfaceMirrorBuilder.js +0 -43
  256. package/lib/test-helpers/InterfaceMirrorBuilder.js.map +0 -1
  257. package/lib/test-helpers/MethodMirrorBuilder.d.ts +0 -29
  258. package/lib/test-helpers/MethodMirrorBuilder.js +0 -72
  259. package/lib/test-helpers/MethodMirrorBuilder.js.map +0 -1
  260. package/lib/test-helpers/SettingsBuilder.d.ts +0 -8
  261. package/lib/test-helpers/SettingsBuilder.js +0 -27
  262. package/lib/test-helpers/SettingsBuilder.js.map +0 -1
  263. package/lib/transpiler/factory.d.ts +0 -6
  264. package/lib/transpiler/factory.js +0 -35
  265. package/lib/transpiler/factory.js.map +0 -1
  266. package/lib/transpiler/file-container.d.ts +0 -6
  267. package/lib/transpiler/file-container.js +0 -16
  268. package/lib/transpiler/file-container.js.map +0 -1
  269. package/lib/transpiler/generator-choices.d.ts +0 -1
  270. package/lib/transpiler/generator-choices.js +0 -3
  271. package/lib/transpiler/generator-choices.js.map +0 -1
  272. package/lib/transpiler/markdown/class-file-generatorHelper.d.ts +0 -11
  273. package/lib/transpiler/markdown/class-file-generatorHelper.js +0 -75
  274. package/lib/transpiler/markdown/class-file-generatorHelper.js.map +0 -1
  275. package/lib/transpiler/markdown/docsify/docsify-docs-processor.d.ts +0 -6
  276. package/lib/transpiler/markdown/docsify/docsify-docs-processor.js +0 -13
  277. package/lib/transpiler/markdown/docsify/docsify-docs-processor.js.map +0 -1
  278. package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.d.ts +0 -11
  279. package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.js +0 -51
  280. package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.js.map +0 -1
  281. package/lib/transpiler/markdown/markdown-transpiler-base.d.ts +0 -11
  282. package/lib/transpiler/markdown/markdown-transpiler-base.js +0 -27
  283. package/lib/transpiler/markdown/markdown-transpiler-base.js.map +0 -1
  284. package/lib/transpiler/markdown/plain-markdown/class-template.d.ts +0 -1
  285. package/lib/transpiler/markdown/plain-markdown/class-template.js +0 -77
  286. package/lib/transpiler/markdown/plain-markdown/class-template.js.map +0 -1
  287. package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.d.ts +0 -1
  288. package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.js +0 -36
  289. package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.js.map +0 -1
  290. package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.d.ts +0 -1
  291. package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.js +0 -28
  292. package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.js.map +0 -1
  293. package/lib/transpiler/markdown/plain-markdown/enum-template.d.ts +0 -1
  294. package/lib/transpiler/markdown/plain-markdown/enum-template.js +0 -16
  295. package/lib/transpiler/markdown/plain-markdown/enum-template.js.map +0 -1
  296. package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.d.ts +0 -1
  297. package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.js +0 -27
  298. package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.js.map +0 -1
  299. package/lib/transpiler/markdown/plain-markdown/grouped-members-partial-template.d.ts +0 -1
  300. package/lib/transpiler/markdown/plain-markdown/grouped-members-partial-template.js +0 -10
  301. package/lib/transpiler/markdown/plain-markdown/grouped-members-partial-template.js.map +0 -1
  302. package/lib/transpiler/markdown/plain-markdown/interface-template.d.ts +0 -1
  303. package/lib/transpiler/markdown/plain-markdown/interface-template.js +0 -20
  304. package/lib/transpiler/markdown/plain-markdown/interface-template.js.map +0 -1
  305. package/lib/transpiler/markdown/plain-markdown/methods-partial-template.d.ts +0 -1
  306. package/lib/transpiler/markdown/plain-markdown/methods-partial-template.js +0 -47
  307. package/lib/transpiler/markdown/plain-markdown/methods-partial-template.js.map +0 -1
  308. package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.d.ts +0 -9
  309. package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js +0 -42
  310. package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js.map +0 -1
  311. package/lib/transpiler/markdown/plain-markdown/type-doc-partial.d.ts +0 -1
  312. package/lib/transpiler/markdown/plain-markdown/type-doc-partial.js +0 -31
  313. package/lib/transpiler/markdown/plain-markdown/type-doc-partial.js.map +0 -1
  314. package/lib/transpiler/openapi/open-api-docs-processor.d.ts +0 -13
  315. package/lib/transpiler/openapi/open-api-docs-processor.js +0 -78
  316. package/lib/transpiler/openapi/open-api-docs-processor.js.map +0 -1
  317. package/lib/transpiler/openapi/parsers/Builder.d.ts +0 -16
  318. package/lib/transpiler/openapi/parsers/Builder.js +0 -30
  319. package/lib/transpiler/openapi/parsers/Builder.js.map +0 -1
  320. package/lib/transpiler/openapi/parsers/MethodParser.d.ts +0 -20
  321. package/lib/transpiler/openapi/parsers/MethodParser.js +0 -190
  322. package/lib/transpiler/openapi/parsers/MethodParser.js.map +0 -1
  323. package/lib/transpiler/openapi/parsers/ParameterObjectBuilder.d.ts +0 -7
  324. package/lib/transpiler/openapi/parsers/ParameterObjectBuilder.js +0 -11
  325. package/lib/transpiler/openapi/parsers/ParameterObjectBuilder.js.map +0 -1
  326. package/lib/transpiler/openapi/parsers/ReferenceBuilder.d.ts +0 -39
  327. package/lib/transpiler/openapi/parsers/ReferenceBuilder.js +0 -250
  328. package/lib/transpiler/openapi/parsers/ReferenceBuilder.js.map +0 -1
  329. package/lib/transpiler/openapi/parsers/RequestBodyBuilder.d.ts +0 -10
  330. package/lib/transpiler/openapi/parsers/RequestBodyBuilder.js +0 -20
  331. package/lib/transpiler/openapi/parsers/RequestBodyBuilder.js.map +0 -1
  332. package/lib/transpiler/openapi/parsers/ResponsesBuilder.d.ts +0 -7
  333. package/lib/transpiler/openapi/parsers/ResponsesBuilder.js +0 -22
  334. package/lib/transpiler/openapi/parsers/ResponsesBuilder.js.map +0 -1
  335. package/lib/transpiler/processor-type-transpiler.d.ts +0 -10
  336. package/lib/transpiler/processor-type-transpiler.js +0 -9
  337. package/lib/transpiler/processor-type-transpiler.js.map +0 -1
  338. package/lib/transpiler/transpiler.d.ts +0 -5
  339. package/lib/transpiler/transpiler.js +0 -30
  340. package/lib/transpiler/transpiler.js.map +0 -1
  341. package/lib/util/error-logger.d.ts +0 -8
  342. package/lib/util/error-logger.js +0 -90
  343. package/lib/util/error-logger.js.map +0 -1
  344. package/lib/util/logger.d.ts +0 -21
  345. package/lib/util/logger.js +0 -61
  346. package/lib/util/logger.js.map +0 -1
  347. package/lib/util/string-utils.d.ts +0 -2
  348. package/lib/util/string-utils.js +0 -15
  349. package/lib/util/string-utils.js.map +0 -1
  350. package/src/adapters/type-utils.ts +0 -5
  351. package/src/adapters/types.d.ts +0 -8
  352. package/src/model/inheritance.ts +0 -8
  353. package/src/transpiler/markdown/plain-markdown/plain-docsProcessor.ts +0 -42
  354. /package/src/{model → core}/apex-bundle.ts +0 -0
  355. /package/src/{model → core}/manifest.ts +0 -0
@@ -0,0 +1,320 @@
1
+ # Url Class
2
+
3
+ Represents a uniform resource locator (URL) and provides access to parts of the URL.
4
+
5
+ Enables access to the base URL used to access your Salesforce org.
6
+
7
+ ## Usage
8
+
9
+ Use the methods of the `System.URL` class to create links to objects in your organization. Such objects can be files, images,
10
+
11
+ logos, or records that you want to include in external emails, in activities, or in Chatter posts. For example, you can create
12
+
13
+ a link to a file uploaded as an attachment to a Chatter post by concatenating the Salesforce base URL with the file ID:
14
+
15
+ ```apex
16
+ // Get a file uploaded through Chatter.
17
+ ContentDocument doc = [SELECT Id FROM ContentDocument
18
+ WHERE Title = 'myfile'];
19
+ // Create a link to the file.
20
+ String fullFileURL = URL.getOrgDomainURL().toExternalForm() +
21
+ '/' + doc.id;
22
+ system.debug(fullFileURL);
23
+ ```
24
+
25
+ The following example creates a link to a Salesforce record. The full URL is created by concatenating the Salesforce base
26
+
27
+ URL with the record ID.
28
+
29
+ ```ape
30
+ Account acct = [SELECT Id FROM Account WHERE Name = 'Acme' LIMIT 1];
31
+ String fullRecordURL = URL.getOrgDomainURL().toExternalForm() + '/' + acct.Id;
32
+ ```
33
+
34
+ ## Example
35
+
36
+ In this example, the base URL and the full request URL of the current Salesforce server instance are retrieved. Next, a URL
37
+
38
+ pointing to a specific account object is created. Finally, components of the base and full URL are obtained. This example
39
+
40
+ prints out all the results to the debug log output.
41
+
42
+ ```apex
43
+ // Create a new account called Acme that we will create a link for later.
44
+ Account myAccount = new Account(Name='Acme');
45
+ insert myAccount;
46
+ // Get the base URL.
47
+ String sfdcBaseURL = URL.getOrgDomainURL().toExternalForm();
48
+ System.debug('Base URL: ' + sfdcBaseURL );
49
+ // Get the URL for the current request.
50
+ String currentRequestURL = URL.getCurrentRequestUrl().toExternalForm();
51
+ System.debug('Current request URL: ' + currentRequestURL);
52
+ // Create the account URL from the base URL.
53
+ String accountURL = URL.getOrgDomainURL().toExternalForm() +
54
+ '/' + myAccount.Id;
55
+ System.debug('URL of a particular account: ' + accountURL);
56
+ // Get some parts of the base URL.
57
+ System.debug('Host: ' + URL.getOrgDomainURL().getHost());
58
+ System.debug('Protocol: ' + URL.getOrgDomainURL().getProtocol());
59
+ // Get the query string of the current request.
60
+ System.debug('Query: ' + URL.getCurrentRequestUrl().getQuery());
61
+ ```
62
+
63
+ ## Version Behavior Changes
64
+
65
+ In API version 41.0 and later, Apex URL objects are represented by the java.net.URI type, not the java.net.URL type.
66
+
67
+ The API version in which the URL object was instantiated determines the behavior of subsequent method calls to the
68
+
69
+ specific instance. Salesforce strongly encourages you to use API 41.0 and later versions for fully RFC-compliant URL
70
+
71
+ parsing that includes proper handling of edge cases of complex URL structures. API 41.0 and later versions also enforce
72
+
73
+ that inputs are valid, RFC-compliant URL or URI strings.
74
+
75
+ * [URL Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_url.htm#apex_System_URL_constructors)
76
+
77
+ * [URL Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_url.htm#apex_System_URL_methods)
78
+
79
+ **See Also**
80
+
81
+ * [URL Class](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_url.htm)
82
+
83
+ ## Namespace
84
+ ns
85
+
86
+ ## Constructors
87
+ ### `Url(spec)`
88
+
89
+ Creates a new instance of the URL class using the specified string representation of the URL.
90
+
91
+ #### Signature
92
+ ```apex
93
+ global Url(String spec)
94
+ ```
95
+
96
+ #### Parameters
97
+ | Name | Type | Description |
98
+ |------|------|-------------|
99
+ | spec | String | The string to parse as a URL. |
100
+
101
+ ---
102
+
103
+ ### `Url(context, spec)`
104
+
105
+ Creates a new instance of the URL class by parsing the specified spec within the specified context.
106
+
107
+ **Usage**
108
+
109
+ The new URL is created from the given context URL and the spec argument as described in RFC2396 "Uniform Resource Identifiers : Generic * Syntax" :
110
+
111
+ ```xml
112
+ <scheme>://<authority><path>?<query>#<fragment>
113
+ ```
114
+
115
+ For more information about the arguments of this constructor, see the corresponding URL(java.net.URL, java.lang.String) constructor for Java.
116
+
117
+ #### Signature
118
+ ```apex
119
+ global Url(Url context, String spec)
120
+ ```
121
+
122
+ #### Parameters
123
+ | Name | Type | Description |
124
+ |------|------|-------------|
125
+ | context | [ns.Url](./ns.Url.md) | The context in which to parse the specification. |
126
+ | spec | String | The string to parse as a URL. |
127
+
128
+ ---
129
+
130
+ ### `Url(protocol, host, file)`
131
+
132
+ Creates a new instance of the URL class using the specified protocol, host, and file on the host. The default port for the specified protocol is used.
133
+
134
+ #### Signature
135
+ ```apex
136
+ global Url(String protocol, String host, String file)
137
+ ```
138
+
139
+ #### Parameters
140
+ | Name | Type | Description |
141
+ |------|------|-------------|
142
+ | protocol | String | The protocol name for this URL. |
143
+ | host | String | The host name for this URL. |
144
+ | file | String | The file name for this URL. |
145
+
146
+ ---
147
+
148
+ ### `Url(protocol, host, port, file)`
149
+
150
+ Creates a new instance of the URL class using the specified protocol, host, port number, and file on the host.
151
+
152
+ #### Signature
153
+ ```apex
154
+ global Url(String protocol, String host, Integer port, String file)
155
+ ```
156
+
157
+ #### Parameters
158
+ | Name | Type | Description |
159
+ |------|------|-------------|
160
+ | protocol | String | The protocol name for this URL. |
161
+ | host | String | The host name for this URL. |
162
+ | port | Integer | The port number for this URL. |
163
+ | file | String | The file name for this URL. |
164
+
165
+ ## Methods
166
+ ### `getAuthority()`
167
+
168
+ Returns the authority portion of the current URL.
169
+
170
+ #### Signature
171
+ ```apex
172
+ global String getAuthority()
173
+ ```
174
+
175
+ #### Return Type
176
+ **String**
177
+
178
+ The authority portion of the current URL.
179
+
180
+ ---
181
+
182
+ ### `getCurrentRequestUrl()`
183
+
184
+ Returns the URL of an entire request on a Salesforce instance.
185
+
186
+ **Usage**
187
+
188
+ An example of a URL for an entire request is https://yourInstance.salesforce.com/apex/myVfPage.apexp.
189
+
190
+ #### Signature
191
+ ```apex
192
+ global static Url getCurrentRequestUrl()
193
+ ```
194
+
195
+ #### Return Type
196
+ **[ns.Url](./ns.Url.md)**
197
+
198
+ The URL of the entire request.
199
+
200
+ ---
201
+
202
+ ### `getDefPort()`
203
+
204
+ Returns the default port number of the protocol associated with the current URL.
205
+
206
+ **Usage**
207
+
208
+ Returns -1 if the URL scheme or the stream protocol handler for the URL doesn&#x27;t define a default port number.
209
+
210
+ #### Signature
211
+ ```apex
212
+ global Integer getDefPort()
213
+ ```
214
+
215
+ #### Return Type
216
+ **Integer**
217
+
218
+ The default port number of the protocol associated with the current URL.
219
+
220
+ ---
221
+
222
+ ### `getFile()`
223
+
224
+ Returns the file name of the current URL.
225
+
226
+ #### Signature
227
+ ```apex
228
+ global String getFile()
229
+ ```
230
+
231
+ #### Return Type
232
+ **String**
233
+
234
+ The file name of the current URL.
235
+
236
+ ---
237
+
238
+ ### `getFileFieldURL(entityId, fieldName)`
239
+
240
+ Returns the download URL for a file attachment.
241
+
242
+ #### Signature
243
+ ```apex
244
+ global static String getFileFieldURL(String entityId, String fieldName)
245
+ ```
246
+
247
+ #### Parameters
248
+ | Name | Type | Description |
249
+ |------|------|-------------|
250
+ | entityId | String | Specifies the ID of the entity that holds the file data. |
251
+ | fieldName | String | Specifies the API name of a file field component, such as `AttachmentBody` . |
252
+
253
+ #### Return Type
254
+ **String**
255
+
256
+ The download URL for the file attachment.
257
+
258
+ #### Example
259
+ ```apex
260
+ String fileURL =
261
+ URL.getFileFieldURL(
262
+ '087000000000123' ,
263
+ 'AttachmentBody');
264
+ ```
265
+
266
+ ---
267
+
268
+ ### `getHost()`
269
+
270
+ Returns the host name of the current URL.
271
+
272
+ #### Signature
273
+ ```apex
274
+ global String getHost()
275
+ ```
276
+
277
+ #### Return Type
278
+ **String**
279
+
280
+ The host name of the current URL.
281
+
282
+ ---
283
+
284
+ ### `getOrgDomainUrl()`
285
+
286
+ Returns the canonical URL for your org. For example, https://MyDomainName.my.salesforce.com.
287
+
288
+ **Usage**
289
+
290
+ Use getOrgDomainUrl() to interact with Salesforce REST and SOAP APIs in Apex code. Get endpoints for User Interface API calls, for creating and customizing picklist value sets and custom fields, and more.
291
+
292
+ `getOrgDomainUrl()` can access the domain URL only for the org in which the Apex code is running.
293
+
294
+ You don&#x27;t need a RemoteSiteSetting for your org to interact with the Salesforce APIs using domain URLs retrieved with this method.
295
+
296
+ **See Also**
297
+
298
+ * [Lightning Aura Components Developer Guide: Making API Calls from Apex](https://developer.salesforce.com/docs/atlas.en-us.250.0.lightning.meta/lightning/apex_api_calls.htm)
299
+
300
+ #### Signature
301
+ ```apex
302
+ global static Url getOrgDomainUrl()
303
+ ```
304
+
305
+ #### Return Type
306
+ **[ns.Url](./ns.Url.md)**
307
+
308
+ getOrgDomainUrl() always returns the login URL for your org, regardless of context. Use that URL when making API calls to your org.
309
+
310
+ #### Example
311
+ ```apex
312
+ // This example uses the Salesforce REST API to get organization limit values. For information on limits, see Limits in the REST API Developer Guide.
313
+ Http h = new Http();
314
+ HttpRequest req = new HttpRequest();
315
+ req.setEndpoint(Url.getOrgDomainUrl().toExternalForm()
316
+ + '/services/data/v44.0/limits');
317
+ req.setMethod('GET');
318
+ req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
319
+ HttpResponse res = h.send(req);
320
+ ```
@@ -6,7 +6,9 @@ This is a sample enum. This references [ns.ReferencedEnum](../Miscellaneous/ns.R
6
6
 
7
7
  This description has several lines
8
8
 
9
- **Some Custom** Test. I can also have a [ns.ReferencedEnum](../Miscellaneous/ns.ReferencedEnum.md) here.
9
+ **Some Custom**
10
+
11
+ Test. I can also have a [ns.ReferencedEnum](../Miscellaneous/ns.ReferencedEnum.md) here.
10
12
 
11
13
  And it can be multiline.
12
14
 
@@ -31,7 +31,7 @@ This is a sample field.
31
31
 
32
32
  ##### Signature
33
33
  ```apex
34
- private name
34
+ private final name
35
35
  ```
36
36
 
37
37
  ##### Type
@@ -12,10 +12,94 @@
12
12
 
13
13
  ### [ns.SampleException](./Miscellaneous/ns.SampleException.md)
14
14
 
15
+ This is a sample exception.
16
+
15
17
  ### [ns.SampleInterface](./Miscellaneous/ns.SampleInterface.md)
16
18
 
17
19
  This is a sample interface
18
20
 
21
+ ### [ns.Url](./Miscellaneous/ns.Url.md)
22
+
23
+ Represents a uniform resource locator (URL) and provides access to parts of the URL.
24
+
25
+ Enables access to the base URL used to access your Salesforce org.
26
+
27
+ ## Usage
28
+
29
+ Use the methods of the `System.URL` class to create links to objects in your organization. Such objects can be files, images,
30
+
31
+ logos, or records that you want to include in external emails, in activities, or in Chatter posts. For example, you can create
32
+
33
+ a link to a file uploaded as an attachment to a Chatter post by concatenating the Salesforce base URL with the file ID:
34
+
35
+ ```apex
36
+ // Get a file uploaded through Chatter.
37
+ ContentDocument doc = [SELECT Id FROM ContentDocument
38
+ WHERE Title = 'myfile'];
39
+ // Create a link to the file.
40
+ String fullFileURL = URL.getOrgDomainURL().toExternalForm() +
41
+ '/' + doc.id;
42
+ system.debug(fullFileURL);
43
+ ```
44
+
45
+ The following example creates a link to a Salesforce record. The full URL is created by concatenating the Salesforce base
46
+
47
+ URL with the record ID.
48
+
49
+ ```ape
50
+ Account acct = [SELECT Id FROM Account WHERE Name = 'Acme' LIMIT 1];
51
+ String fullRecordURL = URL.getOrgDomainURL().toExternalForm() + '/' + acct.Id;
52
+ ```
53
+
54
+ ## Example
55
+
56
+ In this example, the base URL and the full request URL of the current Salesforce server instance are retrieved. Next, a URL
57
+
58
+ pointing to a specific account object is created. Finally, components of the base and full URL are obtained. This example
59
+
60
+ prints out all the results to the debug log output.
61
+
62
+ ```apex
63
+ // Create a new account called Acme that we will create a link for later.
64
+ Account myAccount = new Account(Name='Acme');
65
+ insert myAccount;
66
+ // Get the base URL.
67
+ String sfdcBaseURL = URL.getOrgDomainURL().toExternalForm();
68
+ System.debug('Base URL: ' + sfdcBaseURL );
69
+ // Get the URL for the current request.
70
+ String currentRequestURL = URL.getCurrentRequestUrl().toExternalForm();
71
+ System.debug('Current request URL: ' + currentRequestURL);
72
+ // Create the account URL from the base URL.
73
+ String accountURL = URL.getOrgDomainURL().toExternalForm() +
74
+ '/' + myAccount.Id;
75
+ System.debug('URL of a particular account: ' + accountURL);
76
+ // Get some parts of the base URL.
77
+ System.debug('Host: ' + URL.getOrgDomainURL().getHost());
78
+ System.debug('Protocol: ' + URL.getOrgDomainURL().getProtocol());
79
+ // Get the query string of the current request.
80
+ System.debug('Query: ' + URL.getCurrentRequestUrl().getQuery());
81
+ ```
82
+
83
+ ## Version Behavior Changes
84
+
85
+ In API version 41.0 and later, Apex URL objects are represented by the java.net.URI type, not the java.net.URL type.
86
+
87
+ The API version in which the URL object was instantiated determines the behavior of subsequent method calls to the
88
+
89
+ specific instance. Salesforce strongly encourages you to use API 41.0 and later versions for fully RFC-compliant URL
90
+
91
+ parsing that includes proper handling of edge cases of complex URL structures. API 41.0 and later versions also enforce
92
+
93
+ that inputs are valid, RFC-compliant URL or URI strings.
94
+
95
+ * [URL Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_url.htm#apex_System_URL_constructors)
96
+
97
+ * [URL Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_url.htm#apex_System_URL_methods)
98
+
99
+ **See Also**
100
+
101
+ * [URL Class](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_url.htm)
102
+
19
103
  ## Sample Enums
20
104
 
21
105
  ### [ns.SampleEnum](./Sample-Enums/ns.SampleEnum.md)
@@ -1 +1,17 @@
1
+ /**
2
+ * @description This is a sample exception.
3
+ * @usage
4
+ *
5
+ * You can use the exception the following way.
6
+ * You can also take a look at {@link SampleClass} to see how it is used.
7
+ * This is a dangerous HTML tag: <script>alert('Hello');</script>
8
+ *
9
+ * ```
10
+ * try {
11
+ * throw new SampleException();
12
+ * } catch (SampleException e) {
13
+ * System.debug('Caught exception');
14
+ * }
15
+ * ```
16
+ */
1
17
  public class SampleException extends Exception {}
@@ -0,0 +1,194 @@
1
+ /**
2
+ * @description Represents a uniform resource locator (URL) and provides access to parts of the URL.
3
+ * Enables access to the base URL used to access your Salesforce org.
4
+ *
5
+ * ## Usage
6
+ * Use the methods of the `System.URL` class to create links to objects in your organization. Such objects can be files, images,
7
+ * logos, or records that you want to include in external emails, in activities, or in Chatter posts. For example, you can create
8
+ * a link to a file uploaded as an attachment to a Chatter post by concatenating the Salesforce base URL with the file ID:
9
+ *
10
+ * ```apex
11
+ * // Get a file uploaded through Chatter.
12
+ * ContentDocument doc = [SELECT Id FROM ContentDocument
13
+ * WHERE Title = 'myfile'];
14
+ * // Create a link to the file.
15
+ * String fullFileURL = URL.getOrgDomainURL().toExternalForm() +
16
+ * '/' + doc.id;
17
+ * system.debug(fullFileURL);
18
+ * ```
19
+ *
20
+ * The following example creates a link to a Salesforce record. The full URL is created by concatenating the Salesforce base
21
+ * URL with the record ID.
22
+ *
23
+ * ```ape
24
+ * Account acct = [SELECT Id FROM Account WHERE Name = 'Acme' LIMIT 1];
25
+ * String fullRecordURL = URL.getOrgDomainURL().toExternalForm() + '/' + acct.Id;
26
+ * ```
27
+ *
28
+ * ## Example
29
+ * In this example, the base URL and the full request URL of the current Salesforce server instance are retrieved. Next, a URL
30
+ * pointing to a specific account object is created. Finally, components of the base and full URL are obtained. This example
31
+ * prints out all the results to the debug log output.
32
+ *
33
+ * ```apex
34
+ * // Create a new account called Acme that we will create a link for later.
35
+ * Account myAccount = new Account(Name='Acme');
36
+ * insert myAccount;
37
+ *
38
+ * // Get the base URL.
39
+ * String sfdcBaseURL = URL.getOrgDomainURL().toExternalForm();
40
+ * System.debug('Base URL: ' + sfdcBaseURL );
41
+ *
42
+ * // Get the URL for the current request.
43
+ * String currentRequestURL = URL.getCurrentRequestUrl().toExternalForm();
44
+ * System.debug('Current request URL: ' + currentRequestURL);
45
+ *
46
+ * // Create the account URL from the base URL.
47
+ * String accountURL = URL.getOrgDomainURL().toExternalForm() +
48
+ * '/' + myAccount.Id;
49
+ * System.debug('URL of a particular account: ' + accountURL);
50
+ *
51
+ * // Get some parts of the base URL.
52
+ * System.debug('Host: ' + URL.getOrgDomainURL().getHost());
53
+ * System.debug('Protocol: ' + URL.getOrgDomainURL().getProtocol());
54
+ *
55
+ * // Get the query string of the current request.
56
+ * System.debug('Query: ' + URL.getCurrentRequestUrl().getQuery());
57
+ * ```
58
+ *
59
+ * ## Version Behavior Changes
60
+ * In API version 41.0 and later, Apex URL objects are represented by the java.net.URI type, not the java.net.URL type.
61
+ * The API version in which the URL object was instantiated determines the behavior of subsequent method calls to the
62
+ * specific instance. Salesforce strongly encourages you to use API 41.0 and later versions for fully RFC-compliant URL
63
+ * parsing that includes proper handling of edge cases of complex URL structures. API 41.0 and later versions also enforce
64
+ * that inputs are valid, RFC-compliant URL or URI strings.
65
+ *
66
+ * * [URL Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_url.htm#apex_System_URL_constructors)
67
+ * * [URL Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_url.htm#apex_System_URL_methods)
68
+ *
69
+ * **See Also**
70
+ * * [URL Class](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_url.htm)
71
+ */
72
+ global class Url {
73
+ /**
74
+ * @description Creates a new instance of the URL class using the specified string representation of the URL.
75
+ * @param spec The string to parse as a URL.
76
+ */
77
+ global Url(String spec) { }
78
+
79
+ /**
80
+ * @description Creates a new instance of the URL class by parsing the specified spec within the specified context.
81
+ * @param context The context in which to parse the specification.
82
+ * @param spec The string to parse as a URL.
83
+ *
84
+ * @usage
85
+ * The new URL is created from the given context URL and the spec argument as described in RFC2396 "Uniform Resource Identifiers : Generic * Syntax" :
86
+ * ```xml
87
+ * <scheme>://<authority><path>?<query>#<fragment>
88
+ * ```
89
+ *
90
+ * For more information about the arguments of this constructor, see the corresponding URL(java.net.URL, java.lang.String) constructor for Java.
91
+ */
92
+ global Url(Url context, String spec) { }
93
+
94
+ /**
95
+ * @description Creates a new instance of the URL class using the specified protocol, host, and file on the host. The default port for the specified protocol is used.
96
+ * @param protocol The protocol name for this URL.
97
+ * @param host The host name for this URL.
98
+ * @param file The file name for this URL.
99
+ */
100
+ global Url(String protocol, String host, String file) {}
101
+
102
+ /**
103
+ * @description Creates a new instance of the URL class using the specified protocol, host, port number, and file on the host.
104
+ * @param protocol The protocol name for this URL.
105
+ * @param host The host name for this URL.
106
+ * @param port The port number for this URL.
107
+ * @param file The file name for this URL.
108
+ */
109
+ global Url(String protocol, String host, Integer port, String file) {}
110
+
111
+ /**
112
+ * @description Returns the authority portion of the current URL.
113
+ * @return The authority portion of the current URL.
114
+ */
115
+ global String getAuthority() {
116
+ return null;
117
+ }
118
+
119
+ /**
120
+ * @description Returns the URL of an entire request on a Salesforce instance.
121
+ * @return The URL of the entire request.
122
+ * @usage An example of a URL for an entire request is https://yourInstance.salesforce.com/apex/myVfPage.apexp.
123
+ */
124
+ global static Url getCurrentRequestUrl() {
125
+ return null;
126
+ }
127
+
128
+ /**
129
+ * @description Returns the default port number of the protocol associated with the current URL.
130
+ * @return The default port number of the protocol associated with the current URL.
131
+ * @usage Returns -1 if the URL scheme or the stream protocol handler for the URL doesn't define a default port number.
132
+ */
133
+ global Integer getDefPort() {
134
+ return null;
135
+ }
136
+
137
+ /**
138
+ * @description Returns the file name of the current URL.
139
+ * @return The file name of the current URL.
140
+ */
141
+ global String getFile() {
142
+ return null;
143
+ }
144
+
145
+ /**
146
+ * @description Returns the download URL for a file attachment.
147
+ * @param entityId Specifies the ID of the entity that holds the file data.
148
+ * @param fieldName Specifies the API name of a file field component, such as `AttachmentBody`.
149
+ * @return The download URL for the file attachment.
150
+ * @example
151
+ * String fileURL =
152
+ * URL.getFileFieldURL(
153
+ * '087000000000123' ,
154
+ * 'AttachmentBody');
155
+ */
156
+ global static String getFileFieldURL(String entityId, String fieldName) {
157
+ return null;
158
+ }
159
+
160
+ /**
161
+ * @description Returns the host name of the current URL.
162
+ * @return The host name of the current URL.
163
+ */
164
+ global String getHost() {
165
+ return null;
166
+ }
167
+
168
+ /**
169
+ * @description Returns the canonical URL for your org. For example, https://MyDomainName.my.salesforce.com.
170
+ * @return getOrgDomainUrl() always returns the login URL for your org, regardless of context. Use that URL when making API calls to your org.
171
+ * @usage
172
+ * Use getOrgDomainUrl() to interact with Salesforce REST and SOAP APIs in Apex code. Get endpoints for User Interface API calls, for creating and customizing picklist value sets and custom fields, and more.
173
+ *
174
+ * `getOrgDomainUrl()` can access the domain URL only for the org in which the Apex code is running.
175
+ *
176
+ * You don't need a RemoteSiteSetting for your org to interact with the Salesforce APIs using domain URLs retrieved with this method.
177
+ *
178
+ * @example
179
+ * // This example uses the Salesforce REST API to get organization limit values. For information on limits, see Limits in the REST API Developer Guide.
180
+ * Http h = new Http();
181
+ * HttpRequest req = new HttpRequest();
182
+ * req.setEndpoint(Url.getOrgDomainUrl().toExternalForm()
183
+ * + '/services/data/v44.0/limits');
184
+ * req.setMethod('GET');
185
+ * req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
186
+ * HttpResponse res = h.send(req);
187
+ *
188
+ * @see-also
189
+ * * [Lightning Aura Components Developer Guide: Making API Calls from Apex](https://developer.salesforce.com/docs/atlas.en-us.250.0.lightning.meta/lightning/apex_api_calls.htm)
190
+ */
191
+ global static Url getOrgDomainUrl() {
192
+ return null;
193
+ }
194
+ }
@@ -15,6 +15,7 @@
15
15
  "sourceDir": "force-app",
16
16
  "targetGenerator": "plain-markdown",
17
17
  "scope": ["global", "public", "protected", "private", "namespaceaccessible"],
18
- "namespace": "ns"
18
+ "namespace": "ns",
19
+ "sanitizeHtml": true
19
20
  }
20
21
  }
package/jest.config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  preset: 'ts-jest',
3
3
  testEnvironment: 'node',
4
- modulePathIgnorePatterns: ['<rootDir>/lib/'],
4
+ modulePathIgnorePatterns: ['<rootDir>/dist/'],
5
5
  moduleNameMapper: {
6
6
  '^chalk$': '<rootDir>/__mocks__/chalk.js',
7
7
  '^log-update$': '<rootDir>/__mocks__/log-update.js',