Skip to content

Commit

Permalink
feat: add post status enum
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Apr 1, 2024
1 parent 969d1f0 commit a89ec62
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 8 deletions.
6 changes: 6 additions & 0 deletions libs/zhi-blog-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zhi-blog-api

## 1.62.0

### Minor Changes

- feat: add post status enum

## 1.61.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-blog-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-blog-api",
"version": "1.61.0",
"version": "1.62.0",
"type": "module",
"description": "a common blog interface",
"main": "./dist/index.js",
Expand Down
26 changes: 20 additions & 6 deletions libs/zhi-blog-api/src/lib/enums/postStatusEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,34 @@

/**
* 文章状态枚举
*
* @link https://codex.wordpress.org/Post_Status_Transitions
*/
enum PostStatusEnum {
/**
* 已发布
* 无先前状态
*/
PostStatusEnum_New = "new",
/**
* 待审核
*/
PostStatusEnum_Pending = "pending",
/**
* 自动草稿
*/
PostStatusEnum_AutoDraft = "auto-draft",
/**
* 定时发布
*/
PostStatusEnum_Publish = "publish",
PostStatusEnum_Future = "future",
/**
* 草稿
* 私密
*/
PostStatusEnum_Draft = "draft",
PostStatusEnum_Private = "private",
/**
* 继承
* 垃圾箱
*/
PostStatusEnum_Inherit = "inherit",
PostStatusEnum_Trash = "trash",
}

export default PostStatusEnum
7 changes: 7 additions & 0 deletions libs/zhi-siyuan-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zhi-siyuan-api

## 2.20.6

### Patch Changes

- Updated dependencies
- zhi-blog-api@1.62.0

## 2.20.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-siyuan-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-siyuan-api",
"version": "2.20.5",
"version": "2.20.6",
"type": "module",
"description": "a siyuan-note api including both kernel and client",
"main": "./dist/index.js",
Expand Down

0 comments on commit a89ec62

Please sign in to comment.