@vendasta/social-posts 5.28.0 → 5.30.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.
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/wordpress-plugin.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/wordpress-plugin.mjs +288 -1
- package/esm2020/lib/_internal/wordpress-plugin.api.service.mjs +17 -2
- package/esm2020/lib/wordpress-plugin.service.mjs +7 -1
- package/fesm2015/vendasta-social-posts.mjs +309 -1
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +309 -1
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/wordpress-plugin.interface.d.ts +50 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/wordpress-plugin.d.ts +80 -0
- package/lib/_internal/wordpress-plugin.api.service.d.ts +5 -2
- package/lib/wordpress-plugin.service.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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 { StatusRequestInterface, StatusResponseInterface, } from './wordpress-plugin.interface';
|
|
17
|
+
export { AuthorInterface, AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogVideoInterface, CategoryInterface, CategoryRequestInterface, CategoryResponseInterface, PublishPostRequestInterface, PublishPostResponseInterface, StatusRequestInterface, StatusResponseInterface, } from './wordpress-plugin.interface';
|
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
export interface AuthorInterface {
|
|
2
|
+
id?: number;
|
|
3
|
+
name?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface AuthorsRequestInterface {
|
|
6
|
+
businessId?: string;
|
|
7
|
+
socialServiceId?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface AuthorsResponseInterface {
|
|
10
|
+
authors?: AuthorInterface[];
|
|
11
|
+
}
|
|
12
|
+
export interface BlogImageInterface {
|
|
13
|
+
path?: string;
|
|
14
|
+
publicUrl?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface BlogVideoInterface {
|
|
17
|
+
path?: string;
|
|
18
|
+
publicUrl?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CategoryInterface {
|
|
21
|
+
id?: number;
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CategoryRequestInterface {
|
|
25
|
+
socialServiceId?: string;
|
|
26
|
+
businessId?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface CategoryResponseInterface {
|
|
29
|
+
categories?: CategoryInterface[];
|
|
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
|
+
}
|
|
1
51
|
export interface StatusRequestInterface {
|
|
2
52
|
businessId?: string;
|
|
3
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 { StatusRequest, StatusResponse, } from './wordpress-plugin';
|
|
17
|
+
export { Author, AuthorsRequest, AuthorsResponse, BlogImage, BlogVideo, Category, CategoryRequest, CategoryResponse, PublishPostRequest, PublishPostResponse, StatusRequest, StatusResponse, } from './wordpress-plugin';
|
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
2
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
|
+
export declare class Author implements i.AuthorInterface {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
static fromProto(proto: any): Author;
|
|
7
|
+
constructor(kwargs?: i.AuthorInterface);
|
|
8
|
+
toApiJson(): object;
|
|
9
|
+
}
|
|
10
|
+
export declare class AuthorsRequest implements i.AuthorsRequestInterface {
|
|
11
|
+
businessId: string;
|
|
12
|
+
socialServiceId: string;
|
|
13
|
+
static fromProto(proto: any): AuthorsRequest;
|
|
14
|
+
constructor(kwargs?: i.AuthorsRequestInterface);
|
|
15
|
+
toApiJson(): object;
|
|
16
|
+
}
|
|
17
|
+
export declare class AuthorsResponse implements i.AuthorsResponseInterface {
|
|
18
|
+
authors: Author[];
|
|
19
|
+
static fromProto(proto: any): AuthorsResponse;
|
|
20
|
+
constructor(kwargs?: i.AuthorsResponseInterface);
|
|
21
|
+
toApiJson(): object;
|
|
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
|
+
}
|
|
37
|
+
export declare class Category implements i.CategoryInterface {
|
|
38
|
+
id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
static fromProto(proto: any): Category;
|
|
41
|
+
constructor(kwargs?: i.CategoryInterface);
|
|
42
|
+
toApiJson(): object;
|
|
43
|
+
}
|
|
44
|
+
export declare class CategoryRequest implements i.CategoryRequestInterface {
|
|
45
|
+
socialServiceId: string;
|
|
46
|
+
businessId: string;
|
|
47
|
+
static fromProto(proto: any): CategoryRequest;
|
|
48
|
+
constructor(kwargs?: i.CategoryRequestInterface);
|
|
49
|
+
toApiJson(): object;
|
|
50
|
+
}
|
|
51
|
+
export declare class CategoryResponse implements i.CategoryResponseInterface {
|
|
52
|
+
categories: Category[];
|
|
53
|
+
static fromProto(proto: any): CategoryResponse;
|
|
54
|
+
constructor(kwargs?: i.CategoryResponseInterface);
|
|
55
|
+
toApiJson(): object;
|
|
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
|
+
}
|
|
3
83
|
export declare class StatusRequest implements i.StatusRequestInterface {
|
|
4
84
|
businessId: string;
|
|
5
85
|
apiKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StatusRequest, StatusResponse } from './objects/';
|
|
2
|
-
import { 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';
|
|
@@ -11,6 +11,9 @@ export declare class WordpressPluginApiService {
|
|
|
11
11
|
constructor(http: HttpClient, hostService: HostService);
|
|
12
12
|
private apiOptions;
|
|
13
13
|
status(r: StatusRequest | StatusRequestInterface): Observable<StatusResponse>;
|
|
14
|
+
getAuthors(r: AuthorsRequest | AuthorsRequestInterface): Observable<AuthorsResponse>;
|
|
15
|
+
getCategories(r: CategoryRequest | CategoryRequestInterface): Observable<CategoryResponse>;
|
|
16
|
+
publishPost(r: PublishPostRequest | PublishPostRequestInterface): Observable<PublishPostResponse>;
|
|
14
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<WordpressPluginApiService, never>;
|
|
15
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<WordpressPluginApiService>;
|
|
16
19
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { StatusRequestInterface, StatusResponse, WordpressPluginApiService } from './_internal';
|
|
2
|
+
import { CategoryRequestInterface, CategoryResponse, StatusRequestInterface, StatusResponse, PublishPostRequestInterface, WordpressPluginApiService, PublishPostResponse } 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
|
+
getCategories(categoryRequestInterface: CategoryRequestInterface): Observable<CategoryResponse>;
|
|
9
|
+
publishPost(PublishPostRequestInterface: PublishPostRequestInterface): Observable<PublishPostResponse>;
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<WordpressPluginService, never>;
|
|
9
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<WordpressPluginService>;
|
|
10
12
|
}
|