@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
|
@@ -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.
|
|
@@ -3798,7 +3798,11 @@ declare enum Field {
|
|
|
3798
3798
|
* @internal
|
|
3799
3799
|
*/
|
|
3800
3800
|
INTERNAL_ID = "INTERNAL_ID",
|
|
3801
|
-
/**
|
|
3801
|
+
/**
|
|
3802
|
+
* Includes content field.
|
|
3803
|
+
* Reserved for internal use. Use `RICH_CONTENT` instead.
|
|
3804
|
+
* @internal
|
|
3805
|
+
*/
|
|
3802
3806
|
CONTENT = "CONTENT",
|
|
3803
3807
|
/** Includes rich content field. */
|
|
3804
3808
|
RICH_CONTENT = "RICH_CONTENT",
|
|
@@ -3811,7 +3815,7 @@ declare enum Field {
|
|
|
3811
3815
|
GENERATED_EXCERPT = "GENERATED_EXCERPT"
|
|
3812
3816
|
}
|
|
3813
3817
|
/** @enumType */
|
|
3814
|
-
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | '
|
|
3818
|
+
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | 'RICH_CONTENT' | 'GENERATED_EXCERPT';
|
|
3815
3819
|
interface CreateDraftPostResponse {
|
|
3816
3820
|
/** Created draft post info. */
|
|
3817
3821
|
draftPost?: DraftPost;
|
|
@@ -3915,9 +3919,12 @@ interface MaskedDraftPosts {
|
|
|
3915
3919
|
fieldMask?: string[];
|
|
3916
3920
|
}
|
|
3917
3921
|
declare enum Action {
|
|
3918
|
-
/** Update the draft post. */
|
|
3922
|
+
/** Update the draft post. If the post is already published, the published post isn't changed. */
|
|
3919
3923
|
UPDATE = "UPDATE",
|
|
3920
|
-
/**
|
|
3924
|
+
/**
|
|
3925
|
+
* Update and publish a draft post. If the post is already published, the published post is updated
|
|
3926
|
+
* with the draft post's values in the same call.
|
|
3927
|
+
*/
|
|
3921
3928
|
UPDATE_PUBLISH = "UPDATE_PUBLISH",
|
|
3922
3929
|
/** Update the draft post and schedule a publish date. */
|
|
3923
3930
|
UPDATE_SCHEDULE = "UPDATE_SCHEDULE",
|
|
@@ -3927,7 +3934,7 @@ declare enum Action {
|
|
|
3927
3934
|
UPDATE_CANCEL_SCHEDULE = "UPDATE_CANCEL_SCHEDULE",
|
|
3928
3935
|
/** Update and reject draft post. */
|
|
3929
3936
|
UPDATE_REJECT = "UPDATE_REJECT",
|
|
3930
|
-
/** Update a post that's already been published.
|
|
3937
|
+
/** Update a post that's already been published. The changes are saved to the draft post and applied to the published post. */
|
|
3931
3938
|
UPDATE_PUBLICATION = "UPDATE_PUBLICATION"
|
|
3932
3939
|
}
|
|
3933
3940
|
/** @enumType */
|
|
@@ -4562,7 +4569,6 @@ interface TranslateDraftRequest {
|
|
|
4562
4569
|
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
4563
4570
|
*
|
|
4564
4571
|
* - `URL`: Returns the draft post's preview URL.
|
|
4565
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
4566
4572
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4567
4573
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4568
4574
|
*
|
|
@@ -4625,7 +4631,6 @@ interface UpdateDraftPostLanguageRequest {
|
|
|
4625
4631
|
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
4626
4632
|
*
|
|
4627
4633
|
* - `URL`: Returns the draft post's preview URL.
|
|
4628
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
4629
4634
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4630
4635
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4631
4636
|
*
|
|
@@ -4772,6 +4777,12 @@ declare function onDraftUpdated(handler: (event: DraftUpdatedEnvelope) => void |
|
|
|
4772
4777
|
* which is returned with an empty `title`. An untitled draft post can't be published or scheduled,
|
|
4773
4778
|
* so creating it with `publish` set to `true` fails with the `POST_TITLE_REQUIRED` application error.
|
|
4774
4779
|
*
|
|
4780
|
+
* The response includes `richContent` only when `fieldsets` contains `RICH_CONTENT`. The content is saved either way,
|
|
4781
|
+
* so a response without `richContent` doesn't mean the content wasn't saved.
|
|
4782
|
+
*
|
|
4783
|
+
* Each successful call creates a new draft post, even when a draft post with the same title and content already exists.
|
|
4784
|
+
* To read a draft post that you created, call Get Draft Post with its `id` instead of creating it again.
|
|
4785
|
+
*
|
|
4775
4786
|
* For 3rd-party apps, `memberId` is a required field.
|
|
4776
4787
|
*
|
|
4777
4788
|
* In `categoryIds`, only categories that already exist will be added to the draft post. Including
|
|
@@ -4937,6 +4948,10 @@ interface GetDraftPostOptions {
|
|
|
4937
4948
|
/**
|
|
4938
4949
|
* Updates a draft post.
|
|
4939
4950
|
*
|
|
4951
|
+
* If the post is already published, the default `UPDATE` action changes only the draft post. The published post
|
|
4952
|
+
* stays as it was until the draft post is published. To apply the changes to the published post, set `action` to
|
|
4953
|
+
* `UPDATE_PUBLISH`, which updates and publishes in one call, or call Publish Draft Post afterward.
|
|
4954
|
+
*
|
|
4940
4955
|
* An empty or whitespace-only `title` clears the title. Fails with the `POST_TITLE_REQUIRED` application error
|
|
4941
4956
|
* when `action` is `UPDATE_PUBLISH`, `UPDATE_SCHEDULE` or `UPDATE_PUBLICATION` and the draft post has no title,
|
|
4942
4957
|
* or when the update clears the title of a scheduled draft post.
|
|
@@ -5575,7 +5590,6 @@ interface TranslateDraftOptions {
|
|
|
5575
5590
|
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
5576
5591
|
*
|
|
5577
5592
|
* - `URL`: Returns the draft post's preview URL.
|
|
5578
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
5579
5593
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
5580
5594
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
5581
5595
|
*
|
|
@@ -5613,7 +5627,6 @@ interface UpdateDraftPostLanguageOptions {
|
|
|
5613
5627
|
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
5614
5628
|
*
|
|
5615
5629
|
* - `URL`: Returns the draft post's preview URL.
|
|
5616
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
5617
5630
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
5618
5631
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
5619
5632
|
*
|
|
@@ -3958,7 +3958,11 @@ declare enum Field {
|
|
|
3958
3958
|
* @internal
|
|
3959
3959
|
*/
|
|
3960
3960
|
INTERNAL_ID = "INTERNAL_ID",
|
|
3961
|
-
/**
|
|
3961
|
+
/**
|
|
3962
|
+
* Includes content field.
|
|
3963
|
+
* Reserved for internal use. Use `RICH_CONTENT` instead.
|
|
3964
|
+
* @internal
|
|
3965
|
+
*/
|
|
3962
3966
|
CONTENT = "CONTENT",
|
|
3963
3967
|
/** Includes rich content field. */
|
|
3964
3968
|
RICH_CONTENT = "RICH_CONTENT",
|
|
@@ -3971,7 +3975,7 @@ declare enum Field {
|
|
|
3971
3975
|
GENERATED_EXCERPT = "GENERATED_EXCERPT"
|
|
3972
3976
|
}
|
|
3973
3977
|
/** @enumType */
|
|
3974
|
-
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | '
|
|
3978
|
+
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | 'RICH_CONTENT' | 'GENERATED_EXCERPT';
|
|
3975
3979
|
interface CreateDraftPostResponse {
|
|
3976
3980
|
/** Created draft post info. */
|
|
3977
3981
|
draftPost?: DraftPost;
|
|
@@ -4075,9 +4079,12 @@ interface MaskedDraftPosts {
|
|
|
4075
4079
|
fieldMask?: string[];
|
|
4076
4080
|
}
|
|
4077
4081
|
declare enum Action {
|
|
4078
|
-
/** Update the draft post. */
|
|
4082
|
+
/** Update the draft post. If the post is already published, the published post isn't changed. */
|
|
4079
4083
|
UPDATE = "UPDATE",
|
|
4080
|
-
/**
|
|
4084
|
+
/**
|
|
4085
|
+
* Update and publish a draft post. If the post is already published, the published post is updated
|
|
4086
|
+
* with the draft post's values in the same call.
|
|
4087
|
+
*/
|
|
4081
4088
|
UPDATE_PUBLISH = "UPDATE_PUBLISH",
|
|
4082
4089
|
/** Update the draft post and schedule a publish date. */
|
|
4083
4090
|
UPDATE_SCHEDULE = "UPDATE_SCHEDULE",
|
|
@@ -4087,7 +4094,7 @@ declare enum Action {
|
|
|
4087
4094
|
UPDATE_CANCEL_SCHEDULE = "UPDATE_CANCEL_SCHEDULE",
|
|
4088
4095
|
/** Update and reject draft post. */
|
|
4089
4096
|
UPDATE_REJECT = "UPDATE_REJECT",
|
|
4090
|
-
/** Update a post that's already been published.
|
|
4097
|
+
/** Update a post that's already been published. The changes are saved to the draft post and applied to the published post. */
|
|
4091
4098
|
UPDATE_PUBLICATION = "UPDATE_PUBLICATION"
|
|
4092
4099
|
}
|
|
4093
4100
|
/** @enumType */
|
|
@@ -4722,7 +4729,6 @@ interface TranslateDraftRequest {
|
|
|
4722
4729
|
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
4723
4730
|
*
|
|
4724
4731
|
* - `URL`: Returns the draft post's preview URL.
|
|
4725
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
4726
4732
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4727
4733
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4728
4734
|
*
|
|
@@ -4785,7 +4791,6 @@ interface UpdateDraftPostLanguageRequest {
|
|
|
4785
4791
|
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
4786
4792
|
*
|
|
4787
4793
|
* - `URL`: Returns the draft post's preview URL.
|
|
4788
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
4789
4794
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4790
4795
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4791
4796
|
*
|
|
@@ -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.
|
|
@@ -3798,7 +3798,11 @@ declare enum Field {
|
|
|
3798
3798
|
* @internal
|
|
3799
3799
|
*/
|
|
3800
3800
|
INTERNAL_ID = "INTERNAL_ID",
|
|
3801
|
-
/**
|
|
3801
|
+
/**
|
|
3802
|
+
* Includes content field.
|
|
3803
|
+
* Reserved for internal use. Use `RICH_CONTENT` instead.
|
|
3804
|
+
* @internal
|
|
3805
|
+
*/
|
|
3802
3806
|
CONTENT = "CONTENT",
|
|
3803
3807
|
/** Includes rich content field. */
|
|
3804
3808
|
RICH_CONTENT = "RICH_CONTENT",
|
|
@@ -3811,7 +3815,7 @@ declare enum Field {
|
|
|
3811
3815
|
GENERATED_EXCERPT = "GENERATED_EXCERPT"
|
|
3812
3816
|
}
|
|
3813
3817
|
/** @enumType */
|
|
3814
|
-
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | '
|
|
3818
|
+
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | 'RICH_CONTENT' | 'GENERATED_EXCERPT';
|
|
3815
3819
|
interface CreateDraftPostResponse {
|
|
3816
3820
|
/** Created draft post info. */
|
|
3817
3821
|
draftPost?: DraftPost;
|
|
@@ -3915,9 +3919,12 @@ interface MaskedDraftPosts {
|
|
|
3915
3919
|
fieldMask?: string[];
|
|
3916
3920
|
}
|
|
3917
3921
|
declare enum Action {
|
|
3918
|
-
/** Update the draft post. */
|
|
3922
|
+
/** Update the draft post. If the post is already published, the published post isn't changed. */
|
|
3919
3923
|
UPDATE = "UPDATE",
|
|
3920
|
-
/**
|
|
3924
|
+
/**
|
|
3925
|
+
* Update and publish a draft post. If the post is already published, the published post is updated
|
|
3926
|
+
* with the draft post's values in the same call.
|
|
3927
|
+
*/
|
|
3921
3928
|
UPDATE_PUBLISH = "UPDATE_PUBLISH",
|
|
3922
3929
|
/** Update the draft post and schedule a publish date. */
|
|
3923
3930
|
UPDATE_SCHEDULE = "UPDATE_SCHEDULE",
|
|
@@ -3927,7 +3934,7 @@ declare enum Action {
|
|
|
3927
3934
|
UPDATE_CANCEL_SCHEDULE = "UPDATE_CANCEL_SCHEDULE",
|
|
3928
3935
|
/** Update and reject draft post. */
|
|
3929
3936
|
UPDATE_REJECT = "UPDATE_REJECT",
|
|
3930
|
-
/** Update a post that's already been published.
|
|
3937
|
+
/** Update a post that's already been published. The changes are saved to the draft post and applied to the published post. */
|
|
3931
3938
|
UPDATE_PUBLICATION = "UPDATE_PUBLICATION"
|
|
3932
3939
|
}
|
|
3933
3940
|
/** @enumType */
|
|
@@ -4562,7 +4569,6 @@ interface TranslateDraftRequest {
|
|
|
4562
4569
|
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
4563
4570
|
*
|
|
4564
4571
|
* - `URL`: Returns the draft post's preview URL.
|
|
4565
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
4566
4572
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4567
4573
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4568
4574
|
*
|
|
@@ -4625,7 +4631,6 @@ interface UpdateDraftPostLanguageRequest {
|
|
|
4625
4631
|
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
4626
4632
|
*
|
|
4627
4633
|
* - `URL`: Returns the draft post's preview URL.
|
|
4628
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
4629
4634
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4630
4635
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4631
4636
|
*
|
|
@@ -4772,6 +4777,12 @@ declare function onDraftUpdated(handler: (event: DraftUpdatedEnvelope) => void |
|
|
|
4772
4777
|
* which is returned with an empty `title`. An untitled draft post can't be published or scheduled,
|
|
4773
4778
|
* so creating it with `publish` set to `true` fails with the `POST_TITLE_REQUIRED` application error.
|
|
4774
4779
|
*
|
|
4780
|
+
* The response includes `richContent` only when `fieldsets` contains `RICH_CONTENT`. The content is saved either way,
|
|
4781
|
+
* so a response without `richContent` doesn't mean the content wasn't saved.
|
|
4782
|
+
*
|
|
4783
|
+
* Each successful call creates a new draft post, even when a draft post with the same title and content already exists.
|
|
4784
|
+
* To read a draft post that you created, call Get Draft Post with its `id` instead of creating it again.
|
|
4785
|
+
*
|
|
4775
4786
|
* For 3rd-party apps, `memberId` is a required field.
|
|
4776
4787
|
*
|
|
4777
4788
|
* In `categoryIds`, only categories that already exist will be added to the draft post. Including
|
|
@@ -4937,6 +4948,10 @@ interface GetDraftPostOptions {
|
|
|
4937
4948
|
/**
|
|
4938
4949
|
* Updates a draft post.
|
|
4939
4950
|
*
|
|
4951
|
+
* If the post is already published, the default `UPDATE` action changes only the draft post. The published post
|
|
4952
|
+
* stays as it was until the draft post is published. To apply the changes to the published post, set `action` to
|
|
4953
|
+
* `UPDATE_PUBLISH`, which updates and publishes in one call, or call Publish Draft Post afterward.
|
|
4954
|
+
*
|
|
4940
4955
|
* An empty or whitespace-only `title` clears the title. Fails with the `POST_TITLE_REQUIRED` application error
|
|
4941
4956
|
* when `action` is `UPDATE_PUBLISH`, `UPDATE_SCHEDULE` or `UPDATE_PUBLICATION` and the draft post has no title,
|
|
4942
4957
|
* or when the update clears the title of a scheduled draft post.
|
|
@@ -5575,7 +5590,6 @@ interface TranslateDraftOptions {
|
|
|
5575
5590
|
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
5576
5591
|
*
|
|
5577
5592
|
* - `URL`: Returns the draft post's preview URL.
|
|
5578
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
5579
5593
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
5580
5594
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
5581
5595
|
*
|
|
@@ -5613,7 +5627,6 @@ interface UpdateDraftPostLanguageOptions {
|
|
|
5613
5627
|
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
5614
5628
|
*
|
|
5615
5629
|
* - `URL`: Returns the draft post's preview URL.
|
|
5616
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
5617
5630
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
5618
5631
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
5619
5632
|
*
|
|
@@ -3958,7 +3958,11 @@ declare enum Field {
|
|
|
3958
3958
|
* @internal
|
|
3959
3959
|
*/
|
|
3960
3960
|
INTERNAL_ID = "INTERNAL_ID",
|
|
3961
|
-
/**
|
|
3961
|
+
/**
|
|
3962
|
+
* Includes content field.
|
|
3963
|
+
* Reserved for internal use. Use `RICH_CONTENT` instead.
|
|
3964
|
+
* @internal
|
|
3965
|
+
*/
|
|
3962
3966
|
CONTENT = "CONTENT",
|
|
3963
3967
|
/** Includes rich content field. */
|
|
3964
3968
|
RICH_CONTENT = "RICH_CONTENT",
|
|
@@ -3971,7 +3975,7 @@ declare enum Field {
|
|
|
3971
3975
|
GENERATED_EXCERPT = "GENERATED_EXCERPT"
|
|
3972
3976
|
}
|
|
3973
3977
|
/** @enumType */
|
|
3974
|
-
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | '
|
|
3978
|
+
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | 'RICH_CONTENT' | 'GENERATED_EXCERPT';
|
|
3975
3979
|
interface CreateDraftPostResponse {
|
|
3976
3980
|
/** Created draft post info. */
|
|
3977
3981
|
draftPost?: DraftPost;
|
|
@@ -4075,9 +4079,12 @@ interface MaskedDraftPosts {
|
|
|
4075
4079
|
fieldMask?: string[];
|
|
4076
4080
|
}
|
|
4077
4081
|
declare enum Action {
|
|
4078
|
-
/** Update the draft post. */
|
|
4082
|
+
/** Update the draft post. If the post is already published, the published post isn't changed. */
|
|
4079
4083
|
UPDATE = "UPDATE",
|
|
4080
|
-
/**
|
|
4084
|
+
/**
|
|
4085
|
+
* Update and publish a draft post. If the post is already published, the published post is updated
|
|
4086
|
+
* with the draft post's values in the same call.
|
|
4087
|
+
*/
|
|
4081
4088
|
UPDATE_PUBLISH = "UPDATE_PUBLISH",
|
|
4082
4089
|
/** Update the draft post and schedule a publish date. */
|
|
4083
4090
|
UPDATE_SCHEDULE = "UPDATE_SCHEDULE",
|
|
@@ -4087,7 +4094,7 @@ declare enum Action {
|
|
|
4087
4094
|
UPDATE_CANCEL_SCHEDULE = "UPDATE_CANCEL_SCHEDULE",
|
|
4088
4095
|
/** Update and reject draft post. */
|
|
4089
4096
|
UPDATE_REJECT = "UPDATE_REJECT",
|
|
4090
|
-
/** Update a post that's already been published.
|
|
4097
|
+
/** Update a post that's already been published. The changes are saved to the draft post and applied to the published post. */
|
|
4091
4098
|
UPDATE_PUBLICATION = "UPDATE_PUBLICATION"
|
|
4092
4099
|
}
|
|
4093
4100
|
/** @enumType */
|
|
@@ -4722,7 +4729,6 @@ interface TranslateDraftRequest {
|
|
|
4722
4729
|
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
4723
4730
|
*
|
|
4724
4731
|
* - `URL`: Returns the draft post's preview URL.
|
|
4725
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
4726
4732
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4727
4733
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4728
4734
|
*
|
|
@@ -4785,7 +4791,6 @@ interface UpdateDraftPostLanguageRequest {
|
|
|
4785
4791
|
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
4786
4792
|
*
|
|
4787
4793
|
* - `URL`: Returns the draft post's preview URL.
|
|
4788
|
-
* - `CONTENT`: Returns the draft post's content.
|
|
4789
4794
|
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4790
4795
|
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4791
4796
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_blog_draft-posts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.129",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.blog.v3.draft"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "70fc763d9eb6e3e556110f5a9b1daba4b50cbb366beed0d1cce068f7"
|
|
54
54
|
}
|