@wix/auto_sdk_blog_draft-posts 1.0.128 → 1.0.129
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/build/cjs/index.d.ts +10 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +17 -10
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +7 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +10 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +17 -10
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +7 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +10 -0
- package/build/internal/cjs/index.typings.d.ts +22 -9
- package/build/internal/cjs/meta.d.ts +12 -7
- package/build/internal/es/index.d.mts +10 -0
- package/build/internal/es/index.typings.d.mts +22 -9
- package/build/internal/es/meta.d.mts +12 -7
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -11,6 +11,12 @@ interface CreateDraftPostSignature {
|
|
|
11
11
|
* which is returned with an empty `title`. An untitled draft post can't be published or scheduled,
|
|
12
12
|
* so creating it with `publish` set to `true` fails with the `POST_TITLE_REQUIRED` application error.
|
|
13
13
|
*
|
|
14
|
+
* The response includes `richContent` only when `fieldsets` contains `RICH_CONTENT`. The content is saved either way,
|
|
15
|
+
* so a response without `richContent` doesn't mean the content wasn't saved.
|
|
16
|
+
*
|
|
17
|
+
* Each successful call creates a new draft post, even when a draft post with the same title and content already exists.
|
|
18
|
+
* To read a draft post that you created, call Get Draft Post with its `id` instead of creating it again.
|
|
19
|
+
*
|
|
14
20
|
* For 3rd-party apps, `memberId` is a required field.
|
|
15
21
|
*
|
|
16
22
|
* In `categoryIds`, only categories that already exist will be added to the draft post. Including
|
|
@@ -73,6 +79,10 @@ interface UpdateDraftPostSignature {
|
|
|
73
79
|
/**
|
|
74
80
|
* Updates a draft post.
|
|
75
81
|
*
|
|
82
|
+
* If the post is already published, the default `UPDATE` action changes only the draft post. The published post
|
|
83
|
+
* stays as it was until the draft post is published. To apply the changes to the published post, set `action` to
|
|
84
|
+
* `UPDATE_PUBLISH`, which updates and publishes in one call, or call Publish Draft Post afterward.
|
|
85
|
+
*
|
|
76
86
|
* An empty or whitespace-only `title` clears the title. Fails with the `POST_TITLE_REQUIRED` application error
|
|
77
87
|
* when `action` is `UPDATE_PUBLISH`, `UPDATE_SCHEDULE` or `UPDATE_PUBLICATION` and the draft post has no title,
|
|
78
88
|
* or when the update clears the title of a scheduled draft post.
|