@vendasta/social-posts 5.29.0 → 5.31.0

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.
@@ -14,4 +14,4 @@ export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, Cr
14
14
  export { ActionInterface, EndChatRequestInterface, SendMessageRequestInterface, SendMessageResponseInterface, StartChatRequestInterface, StartChatResponseInterface, } from './chat-bot.interface';
15
15
  export { ChatMessageInterface, SendMessageV2RequestInterface, SendMessageV2ResponseInterface, } from './chat-bot-v2.interface';
16
16
  export { BlogConnectionInterface, CreateBlogConnectionRequestInterface, CreateBlogConnectionResponseInterface, DeleteBlogConnectionRequestInterface, GetBlogConnectionRequestInterface, GetBlogConnectionResponseInterface, ListBlogConnectionRequestInterface, ListBlogConnectionResponseInterface, UpdateBlogConnectionRequestInterface, } from './blog-connection.interface';
17
- export { AuthorInterface, AuthorsRequestInterface, AuthorsResponseInterface, CategoryInterface, CategoryRequestInterface, CategoryResponseInterface, StatusRequestInterface, StatusResponseInterface, } from './wordpress-plugin.interface';
17
+ export { AuthorInterface, AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogVideoInterface, CategoryInterface, CategoryRequestInterface, CategoryResponseInterface, PublishPostRequestInterface, PublishPostResponseInterface, StatusRequestInterface, StatusResponseInterface, } from './wordpress-plugin.interface';
@@ -9,6 +9,14 @@ export interface AuthorsRequestInterface {
9
9
  export interface AuthorsResponseInterface {
10
10
  authors?: AuthorInterface[];
11
11
  }
12
+ export interface BlogImageInterface {
13
+ path?: string;
14
+ publicUrl?: string;
15
+ }
16
+ export interface BlogVideoInterface {
17
+ path?: string;
18
+ publicUrl?: string;
19
+ }
12
20
  export interface CategoryInterface {
13
21
  id?: number;
14
22
  name?: string;
@@ -20,6 +28,26 @@ export interface CategoryRequestInterface {
20
28
  export interface CategoryResponseInterface {
21
29
  categories?: CategoryInterface[];
22
30
  }
31
+ export interface PublishPostRequestInterface {
32
+ businessId?: string;
33
+ socialServiceId?: string;
34
+ title?: string;
35
+ content?: string;
36
+ images?: BlogImageInterface[];
37
+ videos?: BlogVideoInterface[];
38
+ siteType?: string;
39
+ author?: AuthorInterface;
40
+ categories?: CategoryInterface[];
41
+ tags?: string[];
42
+ postTags?: string[];
43
+ postDateTime?: Date;
44
+ userId?: string;
45
+ userName?: string;
46
+ partnerId?: string;
47
+ }
48
+ export interface PublishPostResponseInterface {
49
+ internalPostId?: string;
50
+ }
23
51
  export interface StatusRequestInterface {
24
52
  businessId?: string;
25
53
  apiKey?: string;
@@ -14,4 +14,4 @@ export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstru
14
14
  export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse, } from './chat-bot';
15
15
  export { ChatMessage, SendMessageV2Request, SendMessageV2Response, } from './chat-bot-v2';
16
16
  export { BlogConnection, CreateBlogConnectionRequest, CreateBlogConnectionResponse, DeleteBlogConnectionRequest, GetBlogConnectionRequest, GetBlogConnectionResponse, ListBlogConnectionRequest, ListBlogConnectionResponse, UpdateBlogConnectionRequest, } from './blog-connection';
17
- export { Author, AuthorsRequest, AuthorsResponse, Category, CategoryRequest, CategoryResponse, StatusRequest, StatusResponse, } from './wordpress-plugin';
17
+ export { Author, AuthorsRequest, AuthorsResponse, BlogImage, BlogVideo, Category, CategoryRequest, CategoryResponse, PublishPostRequest, PublishPostResponse, StatusRequest, StatusResponse, } from './wordpress-plugin';
@@ -20,6 +20,20 @@ export declare class AuthorsResponse implements i.AuthorsResponseInterface {
20
20
  constructor(kwargs?: i.AuthorsResponseInterface);
21
21
  toApiJson(): object;
22
22
  }
23
+ export declare class BlogImage implements i.BlogImageInterface {
24
+ path: string;
25
+ publicUrl: string;
26
+ static fromProto(proto: any): BlogImage;
27
+ constructor(kwargs?: i.BlogImageInterface);
28
+ toApiJson(): object;
29
+ }
30
+ export declare class BlogVideo implements i.BlogVideoInterface {
31
+ path: string;
32
+ publicUrl: string;
33
+ static fromProto(proto: any): BlogVideo;
34
+ constructor(kwargs?: i.BlogVideoInterface);
35
+ toApiJson(): object;
36
+ }
23
37
  export declare class Category implements i.CategoryInterface {
24
38
  id: number;
25
39
  name: string;
@@ -40,6 +54,32 @@ export declare class CategoryResponse implements i.CategoryResponseInterface {
40
54
  constructor(kwargs?: i.CategoryResponseInterface);
41
55
  toApiJson(): object;
42
56
  }
57
+ export declare class PublishPostRequest implements i.PublishPostRequestInterface {
58
+ businessId: string;
59
+ socialServiceId: string;
60
+ title: string;
61
+ content: string;
62
+ images: BlogImage[];
63
+ videos: BlogVideo[];
64
+ siteType: string;
65
+ author: Author;
66
+ categories: Category[];
67
+ tags: string[];
68
+ postTags: string[];
69
+ postDateTime: Date;
70
+ userId: string;
71
+ userName: string;
72
+ partnerId: string;
73
+ static fromProto(proto: any): PublishPostRequest;
74
+ constructor(kwargs?: i.PublishPostRequestInterface);
75
+ toApiJson(): object;
76
+ }
77
+ export declare class PublishPostResponse implements i.PublishPostResponseInterface {
78
+ internalPostId: string;
79
+ static fromProto(proto: any): PublishPostResponse;
80
+ constructor(kwargs?: i.PublishPostResponseInterface);
81
+ toApiJson(): object;
82
+ }
43
83
  export declare class StatusRequest implements i.StatusRequestInterface {
44
84
  businessId: string;
45
85
  apiKey: string;
@@ -1,5 +1,5 @@
1
- import { AuthorsRequest, AuthorsResponse, CategoryRequest, CategoryResponse, StatusRequest, StatusResponse } from './objects/';
2
- import { AuthorsRequestInterface, CategoryRequestInterface, StatusRequestInterface } from './interfaces/';
1
+ import { AuthorsRequest, AuthorsResponse, CategoryRequest, CategoryResponse, PublishPostRequest, PublishPostResponse, StatusRequest, StatusResponse } from './objects/';
2
+ import { AuthorsRequestInterface, CategoryRequestInterface, PublishPostRequestInterface, StatusRequestInterface } from './interfaces/';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
@@ -13,6 +13,7 @@ export declare class WordpressPluginApiService {
13
13
  status(r: StatusRequest | StatusRequestInterface): Observable<StatusResponse>;
14
14
  getAuthors(r: AuthorsRequest | AuthorsRequestInterface): Observable<AuthorsResponse>;
15
15
  getCategories(r: CategoryRequest | CategoryRequestInterface): Observable<CategoryResponse>;
16
+ publishPost(r: PublishPostRequest | PublishPostRequestInterface): Observable<PublishPostResponse>;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<WordpressPluginApiService, never>;
17
18
  static ɵprov: i0.ɵɵInjectableDeclaration<WordpressPluginApiService>;
18
19
  }
@@ -1,11 +1,13 @@
1
1
  import { Observable } from 'rxjs';
2
- import { CategoryRequestInterface, CategoryResponse, StatusRequestInterface, StatusResponse, WordpressPluginApiService } from './_internal';
2
+ import { CategoryRequestInterface, CategoryResponse, StatusRequestInterface, StatusResponse, PublishPostRequestInterface, WordpressPluginApiService, PublishPostResponse, AuthorsRequestInterface, AuthorsResponse } from './_internal';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class WordpressPluginService {
5
5
  private wordpressPluginApiService;
6
6
  constructor(wordpressPluginApiService: WordpressPluginApiService);
7
7
  status(statusRequestInterface: StatusRequestInterface): Observable<StatusResponse>;
8
8
  getCategories(categoryRequestInterface: CategoryRequestInterface): Observable<CategoryResponse>;
9
+ publishPost(PublishPostRequestInterface: PublishPostRequestInterface): Observable<PublishPostResponse>;
10
+ getAuthors(authorsRequestInterface: AuthorsRequestInterface): Observable<AuthorsResponse>;
9
11
  static ɵfac: i0.ɵɵFactoryDeclaration<WordpressPluginService, never>;
10
12
  static ɵprov: i0.ɵɵInjectableDeclaration<WordpressPluginService>;
11
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.29.0",
3
+ "version": "5.31.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"