@d-zero/backlog-projects 0.3.1 → 0.3.3
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/dist/assign.d.ts
CHANGED
package/dist/assign.js
CHANGED
|
@@ -2,6 +2,11 @@ import { NotionDB } from '@d-zero/notion';
|
|
|
2
2
|
import { skipHolydayPeriod } from '@d-zero/shared/skip-holyday-period';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import { PROJECT_COMMON_TASK_LIST_NOTION_URL } from './define.js';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param backlog
|
|
8
|
+
* @param params
|
|
9
|
+
*/
|
|
5
10
|
export async function assign(backlog, params) {
|
|
6
11
|
if (!process.env.NOTION_TOKEN) {
|
|
7
12
|
throw new Error('NOTION_TOKEN is not defined. Please set it in .env file');
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
* Extracts the project ID from a Backlog URL.
|
|
3
3
|
*
|
|
4
4
|
* Ex:
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
5
|
+
* - https://xxx.backlog.jp/projects/API_TEST
|
|
6
|
+
* - https://xxx.backlog.jp/add/API_TEST
|
|
7
|
+
* - https://xxx.backlog.jp/find/API_TEST?projectId=123
|
|
8
|
+
* - https://xxx.backlog.jp/board/API_TEST
|
|
9
|
+
* - https://xxx.backlog.jp/gantt/API_TEST
|
|
10
|
+
* - https://xxx.backlog.jp/wiki/API_TEST/Home
|
|
11
|
+
* - https://xxx.backlog.jp/file/API_TEST
|
|
12
|
+
* - https://xxx.backlog.jp/git/API_TEST
|
|
13
|
+
* - https://xxx.backlog.jp/EditProject.action?project.id=123
|
|
15
14
|
* @param url
|
|
16
15
|
* @returns
|
|
17
16
|
*/
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
* Extracts the project ID from a Backlog URL.
|
|
3
3
|
*
|
|
4
4
|
* Ex:
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
5
|
+
* - https://xxx.backlog.jp/projects/API_TEST
|
|
6
|
+
* - https://xxx.backlog.jp/add/API_TEST
|
|
7
|
+
* - https://xxx.backlog.jp/find/API_TEST?projectId=123
|
|
8
|
+
* - https://xxx.backlog.jp/board/API_TEST
|
|
9
|
+
* - https://xxx.backlog.jp/gantt/API_TEST
|
|
10
|
+
* - https://xxx.backlog.jp/wiki/API_TEST/Home
|
|
11
|
+
* - https://xxx.backlog.jp/file/API_TEST
|
|
12
|
+
* - https://xxx.backlog.jp/git/API_TEST
|
|
13
|
+
* - https://xxx.backlog.jp/EditProject.action?project.id=123
|
|
15
14
|
* @param url
|
|
16
15
|
* @returns
|
|
17
16
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/backlog-projects",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "A manipulating Backlog projects library",
|
|
5
5
|
"author": "D-ZERO",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,16 +25,17 @@
|
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "tsc",
|
|
28
|
+
"watch": "tsc --watch",
|
|
28
29
|
"clean": "tsc --build --clean"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@d-zero/notion": "1.0.
|
|
32
|
-
"@d-zero/shared": "0.
|
|
32
|
+
"@d-zero/notion": "1.0.5",
|
|
33
|
+
"@d-zero/shared": "0.7.0",
|
|
33
34
|
"backlog-js": "0.13.3",
|
|
34
35
|
"dayjs": "1.11.13",
|
|
35
|
-
"dotenv": "16.4.
|
|
36
|
+
"dotenv": "16.4.7",
|
|
36
37
|
"enquirer": "2.4.1",
|
|
37
38
|
"minimist": "1.2.8"
|
|
38
39
|
},
|
|
39
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "e4fd17857e31022d121527b00fd7f009dbdb2142"
|
|
40
41
|
}
|