@vendasta/social-posts 5.20.7 → 5.22.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/blog-connection.api.service.mjs +41 -0
- package/esm2020/lib/_internal/chat-bot-v2.api.service.mjs +41 -0
- package/esm2020/lib/_internal/enums/chat-bot-v2.enum.mjs +13 -0
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/index.mjs +3 -1
- package/esm2020/lib/_internal/interfaces/blog-connection.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/chat-bot-v2.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/blog-connection.mjs +65 -0
- package/esm2020/lib/_internal/objects/chat-bot-v2.mjs +92 -0
- package/esm2020/lib/_internal/objects/index.mjs +3 -1
- package/esm2020/lib/blog-connection.service.mjs +19 -0
- package/esm2020/lib/chat-bot-v2.service.mjs +26 -0
- package/esm2020/lib/index.mjs +3 -1
- package/fesm2015/vendasta-social-posts.mjs +306 -34
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +306 -34
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/blog-connection.api.service.d.ts +16 -0
- package/lib/_internal/chat-bot-v2.api.service.d.ts +16 -0
- package/lib/_internal/enums/chat-bot-v2.enum.d.ts +5 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/interfaces/blog-connection.interface.d.ts +12 -0
- package/lib/_internal/interfaces/chat-bot-v2.interface.d.ts +16 -0
- package/lib/_internal/interfaces/index.d.ts +2 -0
- package/lib/_internal/objects/blog-connection.d.ts +20 -0
- package/lib/_internal/objects/chat-bot-v2.d.ts +27 -0
- package/lib/_internal/objects/index.d.ts +2 -0
- package/lib/blog-connection.service.d.ts +10 -0
- package/lib/chat-bot-v2.service.d.ts +10 -0
- package/lib/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreateBlogConnectionRequest, CreateBlogConnectionResponse } from './objects/';
|
|
2
|
+
import { CreateBlogConnectionRequestInterface } from './interfaces/';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { HostService } from '../_generated/host.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class BlogConnectionApiService {
|
|
8
|
+
private http;
|
|
9
|
+
private hostService;
|
|
10
|
+
private _host;
|
|
11
|
+
constructor(http: HttpClient, hostService: HostService);
|
|
12
|
+
private apiOptions;
|
|
13
|
+
create(r: CreateBlogConnectionRequest | CreateBlogConnectionRequestInterface): Observable<CreateBlogConnectionResponse>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlogConnectionApiService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BlogConnectionApiService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SendMessageV2Request, SendMessageV2Response } from './objects/';
|
|
2
|
+
import { SendMessageV2RequestInterface } from './interfaces/';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { HostService } from '../_generated/host.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ChatBotV2ApiService {
|
|
8
|
+
private http;
|
|
9
|
+
private hostService;
|
|
10
|
+
private _host;
|
|
11
|
+
constructor(http: HttpClient, hostService: HostService);
|
|
12
|
+
private apiOptions;
|
|
13
|
+
sendMessageV2(r: SendMessageV2Request | SendMessageV2RequestInterface): Observable<SendMessageV2Response>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatBotV2ApiService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChatBotV2ApiService>;
|
|
16
|
+
}
|
|
@@ -3,3 +3,4 @@ export { RemoveReason, } from './multilocation-post.enum';
|
|
|
3
3
|
export { PostStatusV2, PostTypeV2, YoutubeCustomizationV2PrivacyStatusV2, } from './social-post-v2.enum';
|
|
4
4
|
export { MediaType, } from './linkedin-v2.enum';
|
|
5
5
|
export { ActionType, } from './chat-bot.enum';
|
|
6
|
+
export { Role, } from './chat-bot-v2.enum';
|
package/lib/_internal/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './enums';
|
|
2
2
|
export * from './objects';
|
|
3
3
|
export * from './interfaces';
|
|
4
|
+
export { BlogConnectionApiService } from './blog-connection.api.service';
|
|
4
5
|
export { ChatBotApiService } from './chat-bot.api.service';
|
|
6
|
+
export { ChatBotV2ApiService } from './chat-bot-v2.api.service';
|
|
5
7
|
export { CommonAiInstructionsApiService } from './common-ai-instructions.api.service';
|
|
6
8
|
export { ContentGenerationApiService } from './content-generation.api.service';
|
|
7
9
|
export { CuratedContentApiService } from './curated-content.api.service';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface CreateBlogConnectionRequestInterface {
|
|
2
|
+
name?: string;
|
|
3
|
+
businessId?: string;
|
|
4
|
+
partnerId?: string;
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
logo?: string;
|
|
7
|
+
pluginStatus?: boolean;
|
|
8
|
+
version?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateBlogConnectionResponseInterface {
|
|
11
|
+
socialServiceId?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as e from '../enums';
|
|
2
|
+
export interface ChatMessageInterface {
|
|
3
|
+
role?: e.Role;
|
|
4
|
+
content?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SendMessageV2RequestInterface {
|
|
7
|
+
businessId?: string;
|
|
8
|
+
partnerId?: string;
|
|
9
|
+
marketId?: string;
|
|
10
|
+
customInstructions?: string;
|
|
11
|
+
messages?: ChatMessageInterface[];
|
|
12
|
+
brandId?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SendMessageV2ResponseInterface {
|
|
15
|
+
messageResponse?: string;
|
|
16
|
+
}
|
|
@@ -12,3 +12,5 @@ export { MediaInterface, } from './linkedin-v2.interface';
|
|
|
12
12
|
export { AncestryInterface, CollectionInterface, ImageInterface, LinksInterface, PhotoInterface, SocialInterface, SourceInterface, SubAncestryInterface, TagsInterface, UrlsInterface, UserInterface, UserLinkInterface, } from './unsplash-image.interface';
|
|
13
13
|
export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, CuratedContentPostInterface, DeletePostRequestInterface, GeneratePostsRequestInterface, GeneratePostsResponseInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, ListCuratedContentRequestInterface, ListCuratedContentResponseInterface, ListUnsplashImagesRequestInterface, ListUnsplashImagesResponseInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, GeneratePostsResponsePostInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, UploadToStorageRequestInterface, UploadToStorageResponseInterface, UploadedMediaInterface, } from './api-v2.interface';
|
|
14
14
|
export { ActionInterface, EndChatRequestInterface, SendMessageRequestInterface, SendMessageResponseInterface, StartChatRequestInterface, StartChatResponseInterface, } from './chat-bot.interface';
|
|
15
|
+
export { ChatMessageInterface, SendMessageV2RequestInterface, SendMessageV2ResponseInterface, } from './chat-bot-v2.interface';
|
|
16
|
+
export { CreateBlogConnectionRequestInterface, CreateBlogConnectionResponseInterface, } from './blog-connection.interface';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
|
+
export declare class CreateBlogConnectionRequest implements i.CreateBlogConnectionRequestInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
businessId: string;
|
|
6
|
+
partnerId: string;
|
|
7
|
+
apiKey: string;
|
|
8
|
+
logo: string;
|
|
9
|
+
pluginStatus: boolean;
|
|
10
|
+
version: string;
|
|
11
|
+
static fromProto(proto: any): CreateBlogConnectionRequest;
|
|
12
|
+
constructor(kwargs?: i.CreateBlogConnectionRequestInterface);
|
|
13
|
+
toApiJson(): object;
|
|
14
|
+
}
|
|
15
|
+
export declare class CreateBlogConnectionResponse implements i.CreateBlogConnectionResponseInterface {
|
|
16
|
+
socialServiceId: string;
|
|
17
|
+
static fromProto(proto: any): CreateBlogConnectionResponse;
|
|
18
|
+
constructor(kwargs?: i.CreateBlogConnectionResponseInterface);
|
|
19
|
+
toApiJson(): object;
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import * as e from '../enums';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class ChatMessage implements i.ChatMessageInterface {
|
|
5
|
+
role: e.Role;
|
|
6
|
+
content: string;
|
|
7
|
+
static fromProto(proto: any): ChatMessage;
|
|
8
|
+
constructor(kwargs?: i.ChatMessageInterface);
|
|
9
|
+
toApiJson(): object;
|
|
10
|
+
}
|
|
11
|
+
export declare class SendMessageV2Request implements i.SendMessageV2RequestInterface {
|
|
12
|
+
businessId: string;
|
|
13
|
+
partnerId: string;
|
|
14
|
+
marketId: string;
|
|
15
|
+
customInstructions: string;
|
|
16
|
+
messages: ChatMessage[];
|
|
17
|
+
brandId: string;
|
|
18
|
+
static fromProto(proto: any): SendMessageV2Request;
|
|
19
|
+
constructor(kwargs?: i.SendMessageV2RequestInterface);
|
|
20
|
+
toApiJson(): object;
|
|
21
|
+
}
|
|
22
|
+
export declare class SendMessageV2Response implements i.SendMessageV2ResponseInterface {
|
|
23
|
+
messageResponse: string;
|
|
24
|
+
static fromProto(proto: any): SendMessageV2Response;
|
|
25
|
+
constructor(kwargs?: i.SendMessageV2ResponseInterface);
|
|
26
|
+
toApiJson(): object;
|
|
27
|
+
}
|
|
@@ -12,3 +12,5 @@ export { Media, } from './linkedin-v2';
|
|
|
12
12
|
export { Ancestry, Collection, Image, Links, Photo, Social, Source, SubAncestry, Tags, Urls, User, UserLink, } from './unsplash-image';
|
|
13
13
|
export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CuratedContentPost, DeletePostRequest, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, ListCuratedContentRequest, ListCuratedContentResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, GeneratePostsResponsePost, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, } from './api-v2';
|
|
14
14
|
export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse, } from './chat-bot';
|
|
15
|
+
export { ChatMessage, SendMessageV2Request, SendMessageV2Response, } from './chat-bot-v2';
|
|
16
|
+
export { CreateBlogConnectionRequest, CreateBlogConnectionResponse, } from './blog-connection';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { BlogConnectionApiService, CreateBlogConnectionRequestInterface, CreateBlogConnectionResponse } from './_internal';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BlogConnectionService {
|
|
5
|
+
private blogConnectionApiService;
|
|
6
|
+
constructor(blogConnectionApiService: BlogConnectionApiService);
|
|
7
|
+
create(createBlogConnectionRequest: CreateBlogConnectionRequestInterface): Observable<CreateBlogConnectionResponse>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlogConnectionService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BlogConnectionService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ChatBotV2ApiService, ChatMessage, SendMessageV2Response } from './_internal';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChatBotV2Service {
|
|
5
|
+
private chatBotV2ApiService;
|
|
6
|
+
constructor(chatBotV2ApiService: ChatBotV2ApiService);
|
|
7
|
+
sendMessageV2(businessId: string, partnerId: string, marketId: string, customInstructions: string, messages: ChatMessage[]): Observable<SendMessageV2Response>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatBotV2Service, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChatBotV2Service>;
|
|
10
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -14,3 +14,5 @@ export * from './_internal/objects';
|
|
|
14
14
|
export { SocialPostsV2Service } from './social-post-v2.service';
|
|
15
15
|
export { UnsplashImageService } from './unsplash-image.service';
|
|
16
16
|
export { ChatBotService } from './chat-bot.service';
|
|
17
|
+
export { ChatBotV2Service } from './chat-bot-v2.service';
|
|
18
|
+
export { BlogConnectionService } from './blog-connection.service';
|