-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for post update events (#127)
* Add docs for post update events * Add note for post updates
- Loading branch information
1 parent
0372eb4
commit 514564d
Showing
5 changed files
with
79 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Post Update | ||
|
||
هر تغییری در پستهای منتشر شده یا در جریان رخ بدهد با این event به شما اطلاع داده میشود. | ||
|
||
توجه کنید که نرخ آپدیتهای رو پست زیاد است و با توجه به این که تمام فیلدهای پست به شما داده نمیشود، | ||
ممکن است از دید شما، آپدیتهایی تکراری به شما داده شود. | ||
|
||
|
||
برای اطلاعات در مورد پست میتوانید به | ||
[این صفحه](/misc/post.md) | ||
مراجعه کنید. | ||
|
||
| پارامتر | نوع | توضیحات | | ||
|:-------:|:-------------:|----------------| | ||
| `type` | Enum[string] | نوع تغییر آگهی | | ||
| `post` | [Post](#post) | اطلاعات پست | | ||
|
||
|
||
## Type | ||
توجه کنید ممکن است در آینده به این مقادیر اضافه شود. | ||
- `PUBLISH` | ||
- `RETIRE` | ||
- `ARCHIVE` | ||
- `ONGOING` | ||
|
||
در صورتی که رویداد از نوع | ||
`RETIRE` | ||
یا | ||
`ARCHIVE` | ||
باشد، تنها توکن آگهی به شما داده میشود. | ||
|
||
## Post | ||
|
||
اطلاعات پست مشابه اطلاعات موجود در جواب | ||
[/finder/post/{post-token}](/finder/get_post.md#پاسخ) | ||
است. | ||
|
||
| پارامتر | نوع | توضیحات | | ||
|:--------------------:|:--------:|-------------------------------------| | ||
| `token` | string | توکن آگهی | | ||
| `category` | string | دستهبندی آگهی | | ||
| `city` | string | شهر | | ||
| `district` | string | محله | | ||
| `chat_enabled` | boolean | آیا چت دیوار برای این آگهی فعال است | | ||
| `first_published_at` | datetime | زمان اولین انتشار این آگهی | | ||
| `data` | Object | سایر فیلدهای آگهی | | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# آگهیهای دیوار | ||
|
||
|
||
## وضعیتهای آگهی | ||
|
||
<img src="/img/post-states.svg" alt="یک نمودار جریان که چرخه حیات فرآیند ارسال پست را نشان میدهد. حالتها شامل Submit، Under Review، Published، Retired، Archived، Needs Edit و Waiting for Payment هستند. پیکانها انتقال بین حالتها را نشان میدهند، مانند Submit که به Under Review میرود، Published، رد شدن که نیاز به Needs Edit دارد، و Retired که منجر به Archived میشود."> | ||
|
||
## اگهی منتشر شده و در جریان | ||
تمامی آگهیهایی که در لیستینگ دیوار مشاهده میشوند آگهی منتشر شده هستند. | ||
آگهیهایی که کاربران در پنل مدیریت آگهی در دیوار من مشاهده میکنند آگهیهای در جریان هستند. آگهیهای در جریان، میتوانند منتشر شده باشند. |