atl-fetch 1.0.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.
Files changed (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +113 -0
  3. package/dist/cli/cli.d.ts +61 -0
  4. package/dist/cli/cli.js +131 -0
  5. package/dist/cli/index.d.ts +5 -0
  6. package/dist/cli/index.js +4 -0
  7. package/dist/index.d.ts +8 -0
  8. package/dist/index.js +13 -0
  9. package/dist/ports/file/file-port.d.ts +89 -0
  10. package/dist/ports/file/file-port.js +155 -0
  11. package/dist/ports/file/index.d.ts +1 -0
  12. package/dist/ports/file/index.js +1 -0
  13. package/dist/ports/http/http-port.d.ts +107 -0
  14. package/dist/ports/http/http-port.js +238 -0
  15. package/dist/ports/http/index.d.ts +1 -0
  16. package/dist/ports/http/index.js +1 -0
  17. package/dist/services/auth/auth-service.d.ts +79 -0
  18. package/dist/services/auth/auth-service.js +158 -0
  19. package/dist/services/auth/index.d.ts +1 -0
  20. package/dist/services/auth/index.js +1 -0
  21. package/dist/services/confluence/confluence-service.d.ts +152 -0
  22. package/dist/services/confluence/confluence-service.js +510 -0
  23. package/dist/services/confluence/index.d.ts +1 -0
  24. package/dist/services/confluence/index.js +1 -0
  25. package/dist/services/diff/diff-service.d.ts +84 -0
  26. package/dist/services/diff/diff-service.js +881 -0
  27. package/dist/services/diff/index.d.ts +1 -0
  28. package/dist/services/diff/index.js +1 -0
  29. package/dist/services/fetch/fetch-service.d.ts +112 -0
  30. package/dist/services/fetch/fetch-service.js +302 -0
  31. package/dist/services/fetch/index.d.ts +1 -0
  32. package/dist/services/fetch/index.js +1 -0
  33. package/dist/services/jira/index.d.ts +1 -0
  34. package/dist/services/jira/index.js +1 -0
  35. package/dist/services/jira/jira-service.d.ts +100 -0
  36. package/dist/services/jira/jira-service.js +354 -0
  37. package/dist/services/output/index.d.ts +4 -0
  38. package/dist/services/output/index.js +4 -0
  39. package/dist/services/output/output-service.d.ts +67 -0
  40. package/dist/services/output/output-service.js +228 -0
  41. package/dist/services/storage/index.d.ts +6 -0
  42. package/dist/services/storage/index.js +6 -0
  43. package/dist/services/storage/storage-service.d.ts +77 -0
  44. package/dist/services/storage/storage-service.js +738 -0
  45. package/dist/services/text-converter/index.d.ts +1 -0
  46. package/dist/services/text-converter/index.js +1 -0
  47. package/dist/services/text-converter/text-converter.d.ts +35 -0
  48. package/dist/services/text-converter/text-converter.js +681 -0
  49. package/dist/services/url-parser/index.d.ts +1 -0
  50. package/dist/services/url-parser/index.js +1 -0
  51. package/dist/services/url-parser/url-parser.d.ts +43 -0
  52. package/dist/services/url-parser/url-parser.js +283 -0
  53. package/dist/types/auth.d.ts +25 -0
  54. package/dist/types/auth.js +1 -0
  55. package/dist/types/confluence.d.ts +68 -0
  56. package/dist/types/confluence.js +1 -0
  57. package/dist/types/diff.d.ts +77 -0
  58. package/dist/types/diff.js +7 -0
  59. package/dist/types/fetch.d.ts +65 -0
  60. package/dist/types/fetch.js +1 -0
  61. package/dist/types/file.d.ts +22 -0
  62. package/dist/types/file.js +1 -0
  63. package/dist/types/http.d.ts +45 -0
  64. package/dist/types/http.js +1 -0
  65. package/dist/types/jira.d.ts +90 -0
  66. package/dist/types/jira.js +1 -0
  67. package/dist/types/output.d.ts +55 -0
  68. package/dist/types/output.js +7 -0
  69. package/dist/types/result.d.ts +104 -0
  70. package/dist/types/result.js +119 -0
  71. package/dist/types/storage.d.ts +209 -0
  72. package/dist/types/storage.js +6 -0
  73. package/dist/types/url-parser.d.ts +46 -0
  74. package/dist/types/url-parser.js +1 -0
  75. package/package.json +106 -0
@@ -0,0 +1 @@
1
+ export { convertAdfToPlainText, convertStorageFormatToMarkdown, convertStorageFormatToPlainText, } from './text-converter.js';
@@ -0,0 +1 @@
1
+ export { convertAdfToPlainText, convertStorageFormatToMarkdown, convertStorageFormatToPlainText, } from './text-converter.js';
@@ -0,0 +1,35 @@
1
+ /**
2
+ * テキスト変換サービス
3
+ *
4
+ * Jira の ADF(Atlassian Document Format)と Confluence の Storage Format を
5
+ * プレーンテキストに変換する機能を提供する。
6
+ * また、Confluence の Storage Format を Markdown に変換する機能も提供する。
7
+ */
8
+ /**
9
+ * 添付ファイルパスのマッピング型
10
+ * filename -> savedPath
11
+ */
12
+ type AttachmentPathMapping = Record<string, string>;
13
+ /**
14
+ * ADF(Atlassian Document Format)をプレーンテキストに変換する
15
+ *
16
+ * @param adf ADF ドキュメント(オブジェクトまたは JSON 文字列)
17
+ * @returns プレーンテキスト
18
+ */
19
+ export declare const convertAdfToPlainText: (adf: unknown) => string;
20
+ /**
21
+ * Confluence の Storage Format(XHTML)をプレーンテキストに変換する
22
+ *
23
+ * @param storageFormat Storage Format 文字列
24
+ * @returns プレーンテキスト
25
+ */
26
+ export declare const convertStorageFormatToPlainText: (storageFormat: string | null | undefined) => string;
27
+ /**
28
+ * Confluence Storage Format(XHTML)を Markdown に変換する
29
+ *
30
+ * @param storageFormat Storage Format 文字列(HTML/XHTML)
31
+ * @param attachmentPaths 添付ファイル名 → ローカルパスのマッピング
32
+ * @returns Markdown 文字列
33
+ */
34
+ export declare const convertStorageFormatToMarkdown: (storageFormat: string | null | undefined, attachmentPaths?: AttachmentPathMapping) => string;
35
+ export {};