@wix/auto_sdk_blog_draft-posts 1.0.8 → 1.0.10
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/src/blog-v3-draft-draft-posts.http.d.ts +33 -29
- package/build/cjs/src/blog-v3-draft-draft-posts.http.js +33 -29
- package/build/cjs/src/blog-v3-draft-draft-posts.http.js.map +1 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.public.d.ts +32 -22
- package/build/cjs/src/blog-v3-draft-draft-posts.public.js.map +1 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.types.d.ts +66 -7
- package/build/cjs/src/blog-v3-draft-draft-posts.types.js.map +1 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.d.ts +121 -56
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.js +32 -22
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.http.d.ts +33 -29
- package/build/es/src/blog-v3-draft-draft-posts.http.js +33 -29
- package/build/es/src/blog-v3-draft-draft-posts.http.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.public.d.ts +32 -22
- package/build/es/src/blog-v3-draft-draft-posts.public.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.types.d.ts +66 -7
- package/build/es/src/blog-v3-draft-draft-posts.types.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.universal.d.ts +121 -56
- package/build/es/src/blog-v3-draft-draft-posts.universal.js +32 -22
- package/build/es/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.d.ts +33 -29
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.js +33 -29
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.d.ts +32 -22
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.d.ts +66 -7
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.d.ts +121 -56
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js +32 -22
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.http.d.ts +33 -29
- package/build/internal/es/src/blog-v3-draft-draft-posts.http.js +33 -29
- package/build/internal/es/src/blog-v3-draft-draft-posts.http.js.map +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.public.d.ts +32 -22
- package/build/internal/es/src/blog-v3-draft-draft-posts.public.js.map +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.types.d.ts +66 -7
- package/build/internal/es/src/blog-v3-draft-draft-posts.types.js.map +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.d.ts +121 -56
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js +32 -22
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -481,17 +481,32 @@ export interface ButtonData {
|
|
|
481
481
|
link?: Link;
|
|
482
482
|
}
|
|
483
483
|
export interface Border {
|
|
484
|
-
/**
|
|
484
|
+
/**
|
|
485
|
+
* Deprecated: Use `borderWidth` in `styles` instead.
|
|
486
|
+
* @deprecated
|
|
487
|
+
*/
|
|
485
488
|
width?: number | null;
|
|
486
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* Deprecated: Use `borderRadius` in `styles` instead.
|
|
491
|
+
* @deprecated
|
|
492
|
+
*/
|
|
487
493
|
radius?: number | null;
|
|
488
494
|
}
|
|
489
495
|
export interface Colors {
|
|
490
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* Deprecated: Use `textColor` in `styles` instead.
|
|
498
|
+
* @deprecated
|
|
499
|
+
*/
|
|
491
500
|
text?: string | null;
|
|
492
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* Deprecated: Use `borderColor` in `styles` instead.
|
|
503
|
+
* @deprecated
|
|
504
|
+
*/
|
|
493
505
|
border?: string | null;
|
|
494
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* Deprecated: Use `backgroundColor` in `styles` instead.
|
|
508
|
+
* @deprecated
|
|
509
|
+
*/
|
|
495
510
|
background?: string | null;
|
|
496
511
|
}
|
|
497
512
|
export interface PluginContainerData {
|
|
@@ -568,10 +583,54 @@ export declare enum ButtonDataType {
|
|
|
568
583
|
ACTION = "ACTION"
|
|
569
584
|
}
|
|
570
585
|
export interface Styles {
|
|
571
|
-
/**
|
|
586
|
+
/**
|
|
587
|
+
* Deprecated: Use `borderWidth` and `borderRadius` instead.
|
|
588
|
+
* @deprecated
|
|
589
|
+
*/
|
|
572
590
|
border?: Border;
|
|
573
|
-
/**
|
|
591
|
+
/**
|
|
592
|
+
* Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.
|
|
593
|
+
* @deprecated
|
|
594
|
+
*/
|
|
574
595
|
colors?: Colors;
|
|
596
|
+
/** Border width in pixels. */
|
|
597
|
+
borderWidth?: number | null;
|
|
598
|
+
/** Border width in pixels (hover state). */
|
|
599
|
+
borderWidthHover?: number | null;
|
|
600
|
+
/** Border radius in pixels. */
|
|
601
|
+
borderRadius?: number | null;
|
|
602
|
+
/**
|
|
603
|
+
* Border color as a hexadecimal value.
|
|
604
|
+
* @format COLOR_HEX
|
|
605
|
+
*/
|
|
606
|
+
borderColor?: string | null;
|
|
607
|
+
/**
|
|
608
|
+
* Border color as a hexadecimal value (hover state).
|
|
609
|
+
* @format COLOR_HEX
|
|
610
|
+
*/
|
|
611
|
+
borderColorHover?: string | null;
|
|
612
|
+
/**
|
|
613
|
+
* Text color as a hexadecimal value.
|
|
614
|
+
* @format COLOR_HEX
|
|
615
|
+
*/
|
|
616
|
+
textColor?: string | null;
|
|
617
|
+
/**
|
|
618
|
+
* Text color as a hexadecimal value (hover state).
|
|
619
|
+
* @format COLOR_HEX
|
|
620
|
+
*/
|
|
621
|
+
textColorHover?: string | null;
|
|
622
|
+
/**
|
|
623
|
+
* Background color as a hexadecimal value.
|
|
624
|
+
* @format COLOR_HEX
|
|
625
|
+
*/
|
|
626
|
+
backgroundColor?: string | null;
|
|
627
|
+
/**
|
|
628
|
+
* Background color as a hexadecimal value (hover state).
|
|
629
|
+
* @format COLOR_HEX
|
|
630
|
+
*/
|
|
631
|
+
backgroundColorHover?: string | null;
|
|
632
|
+
/** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
|
|
633
|
+
buttonSize?: string | null;
|
|
575
634
|
}
|
|
576
635
|
export interface Link extends LinkDataOneOf {
|
|
577
636
|
/** The absolute URL for the linked document. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-v3-draft-draft-posts.types.js","sourceRoot":"","sources":["../../../src/blog-v3-draft-draft-posts.types.ts"],"names":[],"mappings":";;;AAsOA,IAAY,MAwEX;AAxED,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,uBAAuB;IACvB,yBAAe,CAAA;IACf,8BAA8B;IAC9B,2CAAiC,CAAA;IACjC,0BAA0B;IAC1B,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,yCAA+B,CAAA;IAC/B,eAAe;IACf,2BAAiB,CAAA;IACjB,uBAAuB;IACvB,qCAA2B,CAAA;IAC3B,gCAAgC;IAChC,qCAA2B,CAAA;IAC3B,mBAAmB;IACnB,uCAA6B,CAAA;IAC7B,uBAAuB;IACvB,6CAAmC,CAAA;IACnC,qBAAqB;IACrB,qCAA2B,CAAA;IAC3B,4BAA4B;IAC5B,iCAAuB,CAAA;IACvB,6BAA6B;IAC7B,mCAAyB,CAAA;IACzB,qBAAqB;IACrB,yCAA+B,CAAA;IAC/B,iCAAiC;IACjC,uDAA6C,CAAA;IAC7C,sBAAsB;IACtB,iCAAuB,CAA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e,CAAA;IACf,2BAAe,CAAA;IACf,iDAAqC,CAAA;IACrC,6DAAiD,CAAA;IACjD,2DAA+C,CAAA;IAC/C,qCAAyB,CAAA;IACzB,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,uCAA2B,CAAA;AAC7B,CAAC,EAnCW,QAAQ,wBAAR,QAAQ,QAmCnB;
|
|
1
|
+
{"version":3,"file":"blog-v3-draft-draft-posts.types.js","sourceRoot":"","sources":["../../../src/blog-v3-draft-draft-posts.types.ts"],"names":[],"mappings":";;;AAsOA,IAAY,MAwEX;AAxED,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,uBAAuB;IACvB,yBAAe,CAAA;IACf,8BAA8B;IAC9B,2CAAiC,CAAA;IACjC,0BAA0B;IAC1B,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,yCAA+B,CAAA;IAC/B,eAAe;IACf,2BAAiB,CAAA;IACjB,uBAAuB;IACvB,qCAA2B,CAAA;IAC3B,gCAAgC;IAChC,qCAA2B,CAAA;IAC3B,mBAAmB;IACnB,uCAA6B,CAAA;IAC7B,uBAAuB;IACvB,6CAAmC,CAAA;IACnC,qBAAqB;IACrB,qCAA2B,CAAA;IAC3B,4BAA4B;IAC5B,iCAAuB,CAAA;IACvB,6BAA6B;IAC7B,mCAAyB,CAAA;IACzB,qBAAqB;IACrB,yCAA+B,CAAA;IAC/B,iCAAiC;IACjC,uDAA6C,CAAA;IAC7C,sBAAsB;IACtB,iCAAuB,CAAA;IACvB,oBAAoB;IACpB,6BAAmB,CAAA;IACnB,2BAA2B;IAC3B,2CAAiC,CAAA;IACjC,oBAAoB;IACpB,2BAAiB,CAAA;IACjB,mBAAmB;IACnB,6BAAmB,CAAA;IACnB,wBAAwB;IACxB,6CAAmC,CAAA;IACnC,qBAAqB;IACrB,qCAA2B,CAAA;IAC3B,sBAAsB;IACtB,iCAAuB,CAAA;IACvB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-32,7 +32,7 @@ export interface DraftPost {
|
|
|
32
32
|
*/
|
|
33
33
|
memberId?: string | null;
|
|
34
34
|
/**
|
|
35
|
-
* Hashtags in the
|
|
35
|
+
* Hashtags in the post.
|
|
36
36
|
* @maxSize 100
|
|
37
37
|
* @maxLength 100
|
|
38
38
|
*/
|
|
@@ -59,7 +59,7 @@ export interface DraftPost {
|
|
|
59
59
|
*/
|
|
60
60
|
relatedPostIds?: string[];
|
|
61
61
|
/**
|
|
62
|
-
* Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan.
|
|
62
|
+
* Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan. See the Pricing Plans API for more info.
|
|
63
63
|
* @maxSize 100
|
|
64
64
|
* @format GUID
|
|
65
65
|
*/
|
|
@@ -79,7 +79,13 @@ export interface DraftPost {
|
|
|
79
79
|
* @format LANGUAGE_TAG
|
|
80
80
|
*/
|
|
81
81
|
language?: string | null;
|
|
82
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* Draft Post rich content.
|
|
84
|
+
*
|
|
85
|
+
* <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.gallery.video.audio.divider.linkButton.html.giphy.codeBlock.file.hashtag.lineSpacing.indent.link.textColor.textHighlight.heading.verticalEmbed.table.collapsibleList.poll" exampleid="72c23a25-524f-4f70-a260-4a2777b6f5d5">
|
|
86
|
+
* <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
|
|
87
|
+
* </widget>
|
|
88
|
+
*/
|
|
83
89
|
richContent?: RichContent;
|
|
84
90
|
/**
|
|
85
91
|
* Status of the draft post.
|
|
@@ -433,17 +439,32 @@ export interface ButtonData {
|
|
|
433
439
|
link?: Link;
|
|
434
440
|
}
|
|
435
441
|
export interface Border {
|
|
436
|
-
/**
|
|
442
|
+
/**
|
|
443
|
+
* Deprecated: Use `borderWidth` in `styles` instead.
|
|
444
|
+
* @deprecated
|
|
445
|
+
*/
|
|
437
446
|
width?: number | null;
|
|
438
|
-
/**
|
|
447
|
+
/**
|
|
448
|
+
* Deprecated: Use `borderRadius` in `styles` instead.
|
|
449
|
+
* @deprecated
|
|
450
|
+
*/
|
|
439
451
|
radius?: number | null;
|
|
440
452
|
}
|
|
441
453
|
export interface Colors {
|
|
442
|
-
/**
|
|
454
|
+
/**
|
|
455
|
+
* Deprecated: Use `textColor` in `styles` instead.
|
|
456
|
+
* @deprecated
|
|
457
|
+
*/
|
|
443
458
|
text?: string | null;
|
|
444
|
-
/**
|
|
459
|
+
/**
|
|
460
|
+
* Deprecated: Use `borderColor` in `styles` instead.
|
|
461
|
+
* @deprecated
|
|
462
|
+
*/
|
|
445
463
|
border?: string | null;
|
|
446
|
-
/**
|
|
464
|
+
/**
|
|
465
|
+
* Deprecated: Use `backgroundColor` in `styles` instead.
|
|
466
|
+
* @deprecated
|
|
467
|
+
*/
|
|
447
468
|
background?: string | null;
|
|
448
469
|
}
|
|
449
470
|
export interface PluginContainerData {
|
|
@@ -520,10 +541,54 @@ export declare enum ButtonDataType {
|
|
|
520
541
|
ACTION = "ACTION"
|
|
521
542
|
}
|
|
522
543
|
export interface Styles {
|
|
523
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* Deprecated: Use `borderWidth` and `borderRadius` instead.
|
|
546
|
+
* @deprecated
|
|
547
|
+
*/
|
|
524
548
|
border?: Border;
|
|
525
|
-
/**
|
|
549
|
+
/**
|
|
550
|
+
* Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.
|
|
551
|
+
* @deprecated
|
|
552
|
+
*/
|
|
526
553
|
colors?: Colors;
|
|
554
|
+
/** Border width in pixels. */
|
|
555
|
+
borderWidth?: number | null;
|
|
556
|
+
/** Border width in pixels (hover state). */
|
|
557
|
+
borderWidthHover?: number | null;
|
|
558
|
+
/** Border radius in pixels. */
|
|
559
|
+
borderRadius?: number | null;
|
|
560
|
+
/**
|
|
561
|
+
* Border color as a hexadecimal value.
|
|
562
|
+
* @format COLOR_HEX
|
|
563
|
+
*/
|
|
564
|
+
borderColor?: string | null;
|
|
565
|
+
/**
|
|
566
|
+
* Border color as a hexadecimal value (hover state).
|
|
567
|
+
* @format COLOR_HEX
|
|
568
|
+
*/
|
|
569
|
+
borderColorHover?: string | null;
|
|
570
|
+
/**
|
|
571
|
+
* Text color as a hexadecimal value.
|
|
572
|
+
* @format COLOR_HEX
|
|
573
|
+
*/
|
|
574
|
+
textColor?: string | null;
|
|
575
|
+
/**
|
|
576
|
+
* Text color as a hexadecimal value (hover state).
|
|
577
|
+
* @format COLOR_HEX
|
|
578
|
+
*/
|
|
579
|
+
textColorHover?: string | null;
|
|
580
|
+
/**
|
|
581
|
+
* Background color as a hexadecimal value.
|
|
582
|
+
* @format COLOR_HEX
|
|
583
|
+
*/
|
|
584
|
+
backgroundColor?: string | null;
|
|
585
|
+
/**
|
|
586
|
+
* Background color as a hexadecimal value (hover state).
|
|
587
|
+
* @format COLOR_HEX
|
|
588
|
+
*/
|
|
589
|
+
backgroundColorHover?: string | null;
|
|
590
|
+
/** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
|
|
591
|
+
buttonSize?: string | null;
|
|
527
592
|
}
|
|
528
593
|
export interface Link extends LinkDataOneOf {
|
|
529
594
|
/** The absolute URL for the linked document. */
|
|
@@ -531,7 +596,7 @@ export interface Link extends LinkDataOneOf {
|
|
|
531
596
|
/** The target node's ID. Used for linking to another node in this object. */
|
|
532
597
|
anchor?: string;
|
|
533
598
|
/**
|
|
534
|
-
*
|
|
599
|
+
* he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
|
|
535
600
|
* `SELF` - Default. Opens the linked document in the same frame as the link.
|
|
536
601
|
* `BLANK` - Opens the linked document in a new browser tab or window.
|
|
537
602
|
* `PARENT` - Opens the linked document in the link's parent frame.
|
|
@@ -567,7 +632,7 @@ export interface Rel {
|
|
|
567
632
|
sponsored?: boolean | null;
|
|
568
633
|
/** Indicates that this link is user-generated content and isn't necessarily trusted or endorsed by the page’s author. For example, a link in a fourm post. Defaults to `false`. */
|
|
569
634
|
ugc?: boolean | null;
|
|
570
|
-
/** Indicates that this link
|
|
635
|
+
/** Indicates that this link protect referral information from being passed to the target website. */
|
|
571
636
|
noreferrer?: boolean | null;
|
|
572
637
|
}
|
|
573
638
|
export interface CodeBlockData {
|
|
@@ -2122,14 +2187,6 @@ export interface BulkUpdateDraftPostsRequest {
|
|
|
2122
2187
|
/**
|
|
2123
2188
|
* Action to perform on the posts.
|
|
2124
2189
|
*
|
|
2125
|
-
* - `UPDATE`: Update the draft post.
|
|
2126
|
-
* - `UPDATE_PUBLISH`: Update and publish the draft post.
|
|
2127
|
-
* - `UPDATE_SCHEDULE`: Update the draft post and schedule a publish date.
|
|
2128
|
-
* - `UPDATE_REVERT_TO_DRAFT`: Update the post and revert it to a draft post.
|
|
2129
|
-
* - `UPDATE_CANCEL_SCHEDULE`: Update the draft post and cancel the scheduled publish date.
|
|
2130
|
-
* - `UPDATE_REJECT`: Update and reject the draft post.
|
|
2131
|
-
* - `UPDATE_PUBLICATION`: Update a published post. This creates and updates a draft version of the post. The original post is still published.
|
|
2132
|
-
*
|
|
2133
2190
|
* Default: `UPDATE`
|
|
2134
2191
|
*/
|
|
2135
2192
|
action?: Action;
|
|
@@ -2146,7 +2203,7 @@ export interface BulkUpdateDraftPostsRequest {
|
|
|
2146
2203
|
fieldsets?: Field[];
|
|
2147
2204
|
}
|
|
2148
2205
|
export interface MaskedDraftPosts {
|
|
2149
|
-
/** Draft post
|
|
2206
|
+
/** Draft post */
|
|
2150
2207
|
draftPost?: DraftPost;
|
|
2151
2208
|
/** Field mask of fields to update. */
|
|
2152
2209
|
fieldMask?: string[];
|
|
@@ -2278,7 +2335,7 @@ export interface UpdateDraftPostContentRequest extends UpdateDraftPostContentReq
|
|
|
2278
2335
|
* @maxLength 400000
|
|
2279
2336
|
*/
|
|
2280
2337
|
content?: string;
|
|
2281
|
-
/** Draft
|
|
2338
|
+
/** Draft Post rich content. */
|
|
2282
2339
|
richContent?: RichContent;
|
|
2283
2340
|
/**
|
|
2284
2341
|
* Draft post ID.
|
|
@@ -2302,7 +2359,7 @@ export interface UpdateDraftPostContentRequestDraftContentOneOf {
|
|
|
2302
2359
|
* @maxLength 400000
|
|
2303
2360
|
*/
|
|
2304
2361
|
content?: string;
|
|
2305
|
-
/** Draft
|
|
2362
|
+
/** Draft Post rich content. */
|
|
2306
2363
|
richContent?: RichContent;
|
|
2307
2364
|
}
|
|
2308
2365
|
export interface UpdateDraftPostContentResponse {
|
|
@@ -3429,7 +3486,13 @@ export declare function onDraftUpdated(handler: (event: DraftUpdatedEnvelope) =>
|
|
|
3429
3486
|
/**
|
|
3430
3487
|
* Creates a draft post.
|
|
3431
3488
|
*
|
|
3432
|
-
*
|
|
3489
|
+
* For 3rd-party apps, `memberId` is a required field.
|
|
3490
|
+
*
|
|
3491
|
+
* In `categoryIds`, only categories that already exist will be added to the draft post. Including
|
|
3492
|
+
* `categoryIds` that do not exist will not return an error, but they will not be added to the `categoryIds` array.
|
|
3493
|
+
* If some of the categories exist, those will be added while those that do not exist will not be added to `categoryIds`.
|
|
3494
|
+
* You can check which categories are available with
|
|
3495
|
+
* List Categories ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/list-categories) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/category/list-categories)).
|
|
3433
3496
|
* @param draftPost - Draft post to create.
|
|
3434
3497
|
* @public
|
|
3435
3498
|
* @requiredField draftPost
|
|
@@ -3507,14 +3570,6 @@ export interface BulkUpdateDraftPostsOptions {
|
|
|
3507
3570
|
/**
|
|
3508
3571
|
* Action to perform on the posts.
|
|
3509
3572
|
*
|
|
3510
|
-
* - `UPDATE`: Update the draft post.
|
|
3511
|
-
* - `UPDATE_PUBLISH`: Update and publish the draft post.
|
|
3512
|
-
* - `UPDATE_SCHEDULE`: Update the draft post and schedule a publish date.
|
|
3513
|
-
* - `UPDATE_REVERT_TO_DRAFT`: Update the post and revert it to a draft post.
|
|
3514
|
-
* - `UPDATE_CANCEL_SCHEDULE`: Update the draft post and cancel the scheduled publish date.
|
|
3515
|
-
* - `UPDATE_REJECT`: Update and reject the draft post.
|
|
3516
|
-
* - `UPDATE_PUBLICATION`: Update a published post. This creates and updates a draft version of the post. The original post is still published.
|
|
3517
|
-
*
|
|
3518
3573
|
* Default: `UPDATE`
|
|
3519
3574
|
*/
|
|
3520
3575
|
action?: Action;
|
|
@@ -3533,7 +3588,7 @@ export interface BulkUpdateDraftPostsOptions {
|
|
|
3533
3588
|
/**
|
|
3534
3589
|
* Retrieves a list of up to 100 deleted draft posts.
|
|
3535
3590
|
*
|
|
3536
|
-
* List
|
|
3591
|
+
* List Draft Posts runs with these defaults, which you can override:
|
|
3537
3592
|
* - `editedDate` is sorted in descending order. In this case,`editedDate` implies the date the post was deleted.
|
|
3538
3593
|
* - `paging.limit` is `50`.
|
|
3539
3594
|
* - `paging.offset` is `0`.
|
|
@@ -3578,9 +3633,7 @@ export interface ListDeletedDraftPostsOptions {
|
|
|
3578
3633
|
draftPostIds?: string[];
|
|
3579
3634
|
}
|
|
3580
3635
|
/**
|
|
3581
|
-
*
|
|
3582
|
-
*
|
|
3583
|
-
* Uses the provided `draftPostId` to retrieve a draft post.
|
|
3636
|
+
* Retrieves a draft post by the provided ID.
|
|
3584
3637
|
* @param draftPostId - Draft post ID.
|
|
3585
3638
|
* @public
|
|
3586
3639
|
* @requiredField draftPostId
|
|
@@ -3650,7 +3703,7 @@ export interface UpdateDraftPost {
|
|
|
3650
3703
|
*/
|
|
3651
3704
|
memberId?: string | null;
|
|
3652
3705
|
/**
|
|
3653
|
-
* Hashtags in the
|
|
3706
|
+
* Hashtags in the post.
|
|
3654
3707
|
* @maxSize 100
|
|
3655
3708
|
* @maxLength 100
|
|
3656
3709
|
*/
|
|
@@ -3677,7 +3730,7 @@ export interface UpdateDraftPost {
|
|
|
3677
3730
|
*/
|
|
3678
3731
|
relatedPostIds?: string[];
|
|
3679
3732
|
/**
|
|
3680
|
-
* Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan.
|
|
3733
|
+
* Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan. See the Pricing Plans API for more info.
|
|
3681
3734
|
* @maxSize 100
|
|
3682
3735
|
* @format GUID
|
|
3683
3736
|
*/
|
|
@@ -3697,7 +3750,13 @@ export interface UpdateDraftPost {
|
|
|
3697
3750
|
* @format LANGUAGE_TAG
|
|
3698
3751
|
*/
|
|
3699
3752
|
language?: string | null;
|
|
3700
|
-
/**
|
|
3753
|
+
/**
|
|
3754
|
+
* Draft Post rich content.
|
|
3755
|
+
*
|
|
3756
|
+
* <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.gallery.video.audio.divider.linkButton.html.giphy.codeBlock.file.hashtag.lineSpacing.indent.link.textColor.textHighlight.heading.verticalEmbed.table.collapsibleList.poll" exampleid="72c23a25-524f-4f70-a260-4a2777b6f5d5">
|
|
3757
|
+
* <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
|
|
3758
|
+
* </widget>
|
|
3759
|
+
*/
|
|
3701
3760
|
richContent?: RichContent;
|
|
3702
3761
|
/**
|
|
3703
3762
|
* Status of the draft post.
|
|
@@ -3763,10 +3822,10 @@ export interface UpdateDraftPostOptions {
|
|
|
3763
3822
|
fieldsets?: Field[];
|
|
3764
3823
|
}
|
|
3765
3824
|
/**
|
|
3766
|
-
* Moves a draft post
|
|
3767
|
-
* A published post can also be deleted by
|
|
3825
|
+
* Moves a draft post to the trash bin.
|
|
3826
|
+
* A published post can also be deleted by the `post.id`. See the Posts API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/posts/) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object)) for more information about posts.
|
|
3768
3827
|
*
|
|
3769
|
-
*
|
|
3828
|
+
* To permanently delete a post bypassing the trash bin, set the `permanent` field value to `true`. The post can't be restored after this.
|
|
3770
3829
|
* @param draftPostId - Draft post ID.
|
|
3771
3830
|
* @public
|
|
3772
3831
|
* @requiredField draftPostId
|
|
@@ -3787,9 +3846,9 @@ export interface DeleteDraftPostOptions {
|
|
|
3787
3846
|
permanent?: boolean;
|
|
3788
3847
|
}
|
|
3789
3848
|
/**
|
|
3790
|
-
* Permanently deletes a draft post
|
|
3849
|
+
* Permanently deletes a draft post that is currently in the trash bin.
|
|
3791
3850
|
*
|
|
3792
|
-
*
|
|
3851
|
+
* This action is permanent and can't be reversed.
|
|
3793
3852
|
* @param draftPostId - Draft post ID.
|
|
3794
3853
|
* @public
|
|
3795
3854
|
* @requiredField draftPostId
|
|
@@ -3865,9 +3924,7 @@ export interface ListDraftPostsOptions {
|
|
|
3865
3924
|
fieldsets?: Field[];
|
|
3866
3925
|
}
|
|
3867
3926
|
/**
|
|
3868
|
-
*
|
|
3869
|
-
*
|
|
3870
|
-
* Uses the provided `draftPostId` to retrieve a previously deleted draft post from the trash bin.
|
|
3927
|
+
* Retrieves a deleted draft post from the trash bin by the provided ID.
|
|
3871
3928
|
* @param draftPostId - Draft post ID.
|
|
3872
3929
|
* @public
|
|
3873
3930
|
* @requiredField draftPostId
|
|
@@ -3880,8 +3937,6 @@ export interface ListDraftPostsOptions {
|
|
|
3880
3937
|
export declare function getDeletedDraftPost(draftPostId: string): Promise<GetDeletedDraftPostResponse & GetDeletedDraftPostResponseNonNullableFields>;
|
|
3881
3938
|
/**
|
|
3882
3939
|
* Restores a deleted draft post from the trash bin by the provided ID.
|
|
3883
|
-
*
|
|
3884
|
-
* Uses the `draftPostId` to restore a deleted draft post from the trash bin.
|
|
3885
3940
|
* @param draftPostId - Draft post ID.
|
|
3886
3941
|
* @public
|
|
3887
3942
|
* @requiredField draftPostId
|
|
@@ -3893,12 +3948,20 @@ export declare function getDeletedDraftPost(draftPostId: string): Promise<GetDel
|
|
|
3893
3948
|
*/
|
|
3894
3949
|
export declare function restoreFromTrashBin(draftPostId: string): Promise<RestoreFromTrashBinResponse & RestoreFromTrashBinResponseNonNullableFields>;
|
|
3895
3950
|
/**
|
|
3896
|
-
*
|
|
3951
|
+
* Creates a query to retrieve a list of up to 100 draft posts.
|
|
3897
3952
|
*
|
|
3898
|
-
*
|
|
3899
|
-
*
|
|
3900
|
-
*
|
|
3901
|
-
*
|
|
3953
|
+
*
|
|
3954
|
+
* The `queryDraftPosts()` function builds a query to retrieve a list of up to 100 draft posts, and returns a `DraftPostsQueryBuilder` object.
|
|
3955
|
+
*
|
|
3956
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
3957
|
+
*
|
|
3958
|
+
* You can refine the query by chaining `DraftPostsQueryBuilder` functions onto the query. `DraftPostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryDraftPosts()` returns.
|
|
3959
|
+
*
|
|
3960
|
+
* `queryDraftPosts()` runs with these `DraftPostsQueryBuilder` defaults that can be overridden:
|
|
3961
|
+
* - `limit(50)`
|
|
3962
|
+
* - `ascending('_id')`
|
|
3963
|
+
*
|
|
3964
|
+
* The following `DraftPostsQueryBuilder` functions are supported for `queryDraftPosts()`. For a full description of the Draft Posts object, see the object returned for the `items` property in `DraftPostsQueryResult`.
|
|
3902
3965
|
* @public
|
|
3903
3966
|
* @param options - Options for querying draft posts.
|
|
3904
3967
|
* @permissionScope Manage Blog
|
|
@@ -3972,9 +4035,11 @@ export interface DraftPostsQueryBuilder {
|
|
|
3972
4035
|
find: () => Promise<DraftPostsQueryResult>;
|
|
3973
4036
|
}
|
|
3974
4037
|
/**
|
|
3975
|
-
* Publishes a
|
|
4038
|
+
* Publishes a draft post by ID. This creates a new post ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/posts/) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object))
|
|
4039
|
+
* with the data from the draft post.
|
|
3976
4040
|
*
|
|
3977
|
-
* If the
|
|
4041
|
+
* If the draft post was already published, the published post will be updated with the latest values
|
|
4042
|
+
* from the draft post.
|
|
3978
4043
|
* @param draftPostId - Draft post ID.
|
|
3979
4044
|
* @public
|
|
3980
4045
|
* @requiredField draftPostId
|
|
@@ -514,7 +514,13 @@ var SortOrder;
|
|
|
514
514
|
/**
|
|
515
515
|
* Creates a draft post.
|
|
516
516
|
*
|
|
517
|
-
*
|
|
517
|
+
* For 3rd-party apps, `memberId` is a required field.
|
|
518
|
+
*
|
|
519
|
+
* In `categoryIds`, only categories that already exist will be added to the draft post. Including
|
|
520
|
+
* `categoryIds` that do not exist will not return an error, but they will not be added to the `categoryIds` array.
|
|
521
|
+
* If some of the categories exist, those will be added while those that do not exist will not be added to `categoryIds`.
|
|
522
|
+
* You can check which categories are available with
|
|
523
|
+
* List Categories ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/list-categories) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/category/list-categories)).
|
|
518
524
|
* @param draftPost - Draft post to create.
|
|
519
525
|
* @public
|
|
520
526
|
* @requiredField draftPost
|
|
@@ -794,7 +800,7 @@ exports.bulkUpdateDraftPosts = bulkUpdateDraftPosts;
|
|
|
794
800
|
/**
|
|
795
801
|
* Retrieves a list of up to 100 deleted draft posts.
|
|
796
802
|
*
|
|
797
|
-
* List
|
|
803
|
+
* List Draft Posts runs with these defaults, which you can override:
|
|
798
804
|
* - `editedDate` is sorted in descending order. In this case,`editedDate` implies the date the post was deleted.
|
|
799
805
|
* - `paging.limit` is `50`.
|
|
800
806
|
* - `paging.offset` is `0`.
|
|
@@ -865,9 +871,7 @@ async function listDeletedDraftPosts(options) {
|
|
|
865
871
|
}
|
|
866
872
|
exports.listDeletedDraftPosts = listDeletedDraftPosts;
|
|
867
873
|
/**
|
|
868
|
-
*
|
|
869
|
-
*
|
|
870
|
-
* Uses the provided `draftPostId` to retrieve a draft post.
|
|
874
|
+
* Retrieves a draft post by the provided ID.
|
|
871
875
|
* @param draftPostId - Draft post ID.
|
|
872
876
|
* @public
|
|
873
877
|
* @requiredField draftPostId
|
|
@@ -1025,10 +1029,10 @@ async function updateDraftPost(_id, draftPost, options) {
|
|
|
1025
1029
|
}
|
|
1026
1030
|
exports.updateDraftPost = updateDraftPost;
|
|
1027
1031
|
/**
|
|
1028
|
-
* Moves a draft post
|
|
1029
|
-
* A published post can also be deleted by
|
|
1032
|
+
* Moves a draft post to the trash bin.
|
|
1033
|
+
* A published post can also be deleted by the `post.id`. See the Posts API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/posts/) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object)) for more information about posts.
|
|
1030
1034
|
*
|
|
1031
|
-
*
|
|
1035
|
+
* To permanently delete a post bypassing the trash bin, set the `permanent` field value to `true`. The post can't be restored after this.
|
|
1032
1036
|
* @param draftPostId - Draft post ID.
|
|
1033
1037
|
* @public
|
|
1034
1038
|
* @requiredField draftPostId
|
|
@@ -1067,9 +1071,9 @@ async function deleteDraftPost(draftPostId, options) {
|
|
|
1067
1071
|
}
|
|
1068
1072
|
exports.deleteDraftPost = deleteDraftPost;
|
|
1069
1073
|
/**
|
|
1070
|
-
* Permanently deletes a draft post
|
|
1074
|
+
* Permanently deletes a draft post that is currently in the trash bin.
|
|
1071
1075
|
*
|
|
1072
|
-
*
|
|
1076
|
+
* This action is permanent and can't be reversed.
|
|
1073
1077
|
* @param draftPostId - Draft post ID.
|
|
1074
1078
|
* @public
|
|
1075
1079
|
* @requiredField draftPostId
|
|
@@ -1240,9 +1244,7 @@ async function listDraftPosts(options) {
|
|
|
1240
1244
|
}
|
|
1241
1245
|
exports.listDraftPosts = listDraftPosts;
|
|
1242
1246
|
/**
|
|
1243
|
-
*
|
|
1244
|
-
*
|
|
1245
|
-
* Uses the provided `draftPostId` to retrieve a previously deleted draft post from the trash bin.
|
|
1247
|
+
* Retrieves a deleted draft post from the trash bin by the provided ID.
|
|
1246
1248
|
* @param draftPostId - Draft post ID.
|
|
1247
1249
|
* @public
|
|
1248
1250
|
* @requiredField draftPostId
|
|
@@ -1302,8 +1304,6 @@ async function getDeletedDraftPost(draftPostId) {
|
|
|
1302
1304
|
exports.getDeletedDraftPost = getDeletedDraftPost;
|
|
1303
1305
|
/**
|
|
1304
1306
|
* Restores a deleted draft post from the trash bin by the provided ID.
|
|
1305
|
-
*
|
|
1306
|
-
* Uses the `draftPostId` to restore a deleted draft post from the trash bin.
|
|
1307
1307
|
* @param draftPostId - Draft post ID.
|
|
1308
1308
|
* @public
|
|
1309
1309
|
* @requiredField draftPostId
|
|
@@ -1362,12 +1362,20 @@ async function restoreFromTrashBin(draftPostId) {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
exports.restoreFromTrashBin = restoreFromTrashBin;
|
|
1364
1364
|
/**
|
|
1365
|
-
*
|
|
1365
|
+
* Creates a query to retrieve a list of up to 100 draft posts.
|
|
1366
1366
|
*
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1369
|
-
*
|
|
1370
|
-
*
|
|
1367
|
+
*
|
|
1368
|
+
* The `queryDraftPosts()` function builds a query to retrieve a list of up to 100 draft posts, and returns a `DraftPostsQueryBuilder` object.
|
|
1369
|
+
*
|
|
1370
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
1371
|
+
*
|
|
1372
|
+
* You can refine the query by chaining `DraftPostsQueryBuilder` functions onto the query. `DraftPostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryDraftPosts()` returns.
|
|
1373
|
+
*
|
|
1374
|
+
* `queryDraftPosts()` runs with these `DraftPostsQueryBuilder` defaults that can be overridden:
|
|
1375
|
+
* - `limit(50)`
|
|
1376
|
+
* - `ascending('_id')`
|
|
1377
|
+
*
|
|
1378
|
+
* The following `DraftPostsQueryBuilder` functions are supported for `queryDraftPosts()`. For a full description of the Draft Posts object, see the object returned for the `items` property in `DraftPostsQueryResult`.
|
|
1371
1379
|
* @public
|
|
1372
1380
|
* @param options - Options for querying draft posts.
|
|
1373
1381
|
* @permissionScope Manage Blog
|
|
@@ -1448,9 +1456,11 @@ function queryDraftPosts(options) {
|
|
|
1448
1456
|
}
|
|
1449
1457
|
exports.queryDraftPosts = queryDraftPosts;
|
|
1450
1458
|
/**
|
|
1451
|
-
* Publishes a
|
|
1459
|
+
* Publishes a draft post by ID. This creates a new post ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/posts/) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object))
|
|
1460
|
+
* with the data from the draft post.
|
|
1452
1461
|
*
|
|
1453
|
-
* If the
|
|
1462
|
+
* If the draft post was already published, the published post will be updated with the latest values
|
|
1463
|
+
* from the draft post.
|
|
1454
1464
|
* @param draftPostId - Draft post ID.
|
|
1455
1465
|
* @public
|
|
1456
1466
|
* @requiredField draftPostId
|