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.
- package/LICENSE +21 -0
- package/README.md +113 -0
- package/dist/cli/cli.d.ts +61 -0
- package/dist/cli/cli.js +131 -0
- package/dist/cli/index.d.ts +5 -0
- package/dist/cli/index.js +4 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +13 -0
- package/dist/ports/file/file-port.d.ts +89 -0
- package/dist/ports/file/file-port.js +155 -0
- package/dist/ports/file/index.d.ts +1 -0
- package/dist/ports/file/index.js +1 -0
- package/dist/ports/http/http-port.d.ts +107 -0
- package/dist/ports/http/http-port.js +238 -0
- package/dist/ports/http/index.d.ts +1 -0
- package/dist/ports/http/index.js +1 -0
- package/dist/services/auth/auth-service.d.ts +79 -0
- package/dist/services/auth/auth-service.js +158 -0
- package/dist/services/auth/index.d.ts +1 -0
- package/dist/services/auth/index.js +1 -0
- package/dist/services/confluence/confluence-service.d.ts +152 -0
- package/dist/services/confluence/confluence-service.js +510 -0
- package/dist/services/confluence/index.d.ts +1 -0
- package/dist/services/confluence/index.js +1 -0
- package/dist/services/diff/diff-service.d.ts +84 -0
- package/dist/services/diff/diff-service.js +881 -0
- package/dist/services/diff/index.d.ts +1 -0
- package/dist/services/diff/index.js +1 -0
- package/dist/services/fetch/fetch-service.d.ts +112 -0
- package/dist/services/fetch/fetch-service.js +302 -0
- package/dist/services/fetch/index.d.ts +1 -0
- package/dist/services/fetch/index.js +1 -0
- package/dist/services/jira/index.d.ts +1 -0
- package/dist/services/jira/index.js +1 -0
- package/dist/services/jira/jira-service.d.ts +100 -0
- package/dist/services/jira/jira-service.js +354 -0
- package/dist/services/output/index.d.ts +4 -0
- package/dist/services/output/index.js +4 -0
- package/dist/services/output/output-service.d.ts +67 -0
- package/dist/services/output/output-service.js +228 -0
- package/dist/services/storage/index.d.ts +6 -0
- package/dist/services/storage/index.js +6 -0
- package/dist/services/storage/storage-service.d.ts +77 -0
- package/dist/services/storage/storage-service.js +738 -0
- package/dist/services/text-converter/index.d.ts +1 -0
- package/dist/services/text-converter/index.js +1 -0
- package/dist/services/text-converter/text-converter.d.ts +35 -0
- package/dist/services/text-converter/text-converter.js +681 -0
- package/dist/services/url-parser/index.d.ts +1 -0
- package/dist/services/url-parser/index.js +1 -0
- package/dist/services/url-parser/url-parser.d.ts +43 -0
- package/dist/services/url-parser/url-parser.js +283 -0
- package/dist/types/auth.d.ts +25 -0
- package/dist/types/auth.js +1 -0
- package/dist/types/confluence.d.ts +68 -0
- package/dist/types/confluence.js +1 -0
- package/dist/types/diff.d.ts +77 -0
- package/dist/types/diff.js +7 -0
- package/dist/types/fetch.d.ts +65 -0
- package/dist/types/fetch.js +1 -0
- package/dist/types/file.d.ts +22 -0
- package/dist/types/file.js +1 -0
- package/dist/types/http.d.ts +45 -0
- package/dist/types/http.js +1 -0
- package/dist/types/jira.d.ts +90 -0
- package/dist/types/jira.js +1 -0
- package/dist/types/output.d.ts +55 -0
- package/dist/types/output.js +7 -0
- package/dist/types/result.d.ts +104 -0
- package/dist/types/result.js +119 -0
- package/dist/types/storage.d.ts +209 -0
- package/dist/types/storage.js +6 -0
- package/dist/types/url-parser.d.ts +46 -0
- package/dist/types/url-parser.js +1 -0
- 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 {};
|