@vendasta/social-posts 5.20.6 → 5.21.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/chat-bot-v2.api.service.mjs +40 -0
- package/esm2020/lib/_internal/chat-bot.api.service.mjs +7 -8
- package/esm2020/lib/_internal/common-ai-instructions.api.service.mjs +7 -8
- package/esm2020/lib/_internal/content-generation.api.service.mjs +7 -8
- package/esm2020/lib/_internal/curated-content.api.service.mjs +7 -8
- 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/hash-tags.api.service.mjs +7 -8
- package/esm2020/lib/_internal/index.mjs +2 -1
- 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/linkedin.api.service.mjs +7 -8
- package/esm2020/lib/_internal/multilocation-post.api.service.mjs +7 -8
- package/esm2020/lib/_internal/objects/chat-bot-v2.mjs +89 -0
- package/esm2020/lib/_internal/objects/index.mjs +2 -1
- package/esm2020/lib/_internal/partner-social-posts.api.service.mjs +7 -8
- package/esm2020/lib/_internal/pixabay-images.api.service.mjs +7 -8
- package/esm2020/lib/_internal/post-performance.api.service.mjs +7 -8
- package/esm2020/lib/_internal/post-templates.api.service.mjs +7 -8
- package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +7 -8
- package/esm2020/lib/_internal/social-posts.api.service.mjs +7 -8
- package/esm2020/lib/_internal/tenor-gifs.api.service.mjs +7 -8
- package/esm2020/lib/_internal/unsplash.api.service.mjs +7 -8
- package/esm2020/lib/chat-bot-v2.service.mjs +26 -0
- package/esm2020/lib/chat-bot.service.mjs +5 -3
- package/esm2020/lib/index.mjs +2 -1
- package/fesm2015/vendasta-social-posts.mjs +271 -114
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +271 -114
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/chat-bot-v2.api.service.d.ts +13 -0
- package/lib/_internal/chat-bot.api.service.d.ts +3 -5
- package/lib/_internal/common-ai-instructions.api.service.d.ts +2 -5
- package/lib/_internal/content-generation.api.service.d.ts +2 -5
- package/lib/_internal/curated-content.api.service.d.ts +2 -5
- package/lib/_internal/enums/chat-bot-v2.enum.d.ts +5 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/hash-tags.api.service.d.ts +3 -5
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/chat-bot-v2.interface.d.ts +15 -0
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/linkedin.api.service.d.ts +3 -5
- package/lib/_internal/multilocation-post.api.service.d.ts +3 -5
- package/lib/_internal/objects/chat-bot-v2.d.ts +26 -0
- package/lib/_internal/objects/index.d.ts +1 -0
- package/lib/_internal/partner-social-posts.api.service.d.ts +2 -5
- package/lib/_internal/pixabay-images.api.service.d.ts +2 -5
- package/lib/_internal/post-performance.api.service.d.ts +2 -5
- package/lib/_internal/post-templates.api.service.d.ts +3 -5
- package/lib/_internal/social-posts-v2.api.service.d.ts +3 -5
- package/lib/_internal/social-posts.api.service.d.ts +3 -5
- package/lib/_internal/tenor-gifs.api.service.d.ts +2 -5
- package/lib/_internal/unsplash.api.service.d.ts +2 -5
- package/lib/chat-bot-v2.service.d.ts +10 -0
- package/lib/chat-bot.service.d.ts +2 -2
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SendMessageV2Request, SendMessageV2Response } from './objects/';
|
|
2
|
+
import { SendMessageV2RequestInterface } from './interfaces/';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ChatBotV2ApiService {
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
8
|
+
private _host;
|
|
9
|
+
private apiOptions;
|
|
10
|
+
sendMessageV2(r: SendMessageV2Request | SendMessageV2RequestInterface): Observable<SendMessageV2Response>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatBotV2ApiService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChatBotV2ApiService>;
|
|
13
|
+
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse } from './objects/';
|
|
2
2
|
import { EndChatRequestInterface, SendMessageRequestInterface, StartChatRequestInterface } from './interfaces/';
|
|
3
|
-
import {
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class ChatBotApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
7
|
+
private readonly hostService;
|
|
8
|
+
private readonly http;
|
|
10
9
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
10
|
private apiOptions;
|
|
13
11
|
startChat(r: StartChatRequest | StartChatRequestInterface): Observable<StartChatResponse>;
|
|
14
12
|
sendMessage(r: SendMessageRequest | SendMessageRequestInterface): Observable<SendMessageResponse>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse } from './objects/';
|
|
2
2
|
import { CreateCommonAiInstructionsRequestInterface, GetCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class CommonAiInstructionsApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
10
8
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
9
|
private apiOptions;
|
|
13
10
|
createCommonAiInstructions(r: CreateCommonAiInstructionsRequest | CreateCommonAiInstructionsRequestInterface): Observable<CreateCommonAiInstructionsResponse>;
|
|
14
11
|
updateCommonAiInstructions(r: UpdateCommonAiInstructionsRequest | UpdateCommonAiInstructionsRequestInterface): Observable<UpdateCommonAiInstructionsResponse>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { GeneratePostsRequest, GeneratePostsResponse } from './objects/';
|
|
2
2
|
import { GeneratePostsRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class ContentGenerationApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
10
8
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
9
|
private apiOptions;
|
|
13
10
|
generatePosts(r: GeneratePostsRequest | GeneratePostsRequestInterface): Observable<GeneratePostsResponse>;
|
|
14
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContentGenerationApiService, never>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { ListCuratedContentRequest, ListCuratedContentResponse } from './objects/';
|
|
2
2
|
import { ListCuratedContentRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class CuratedContentApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
10
8
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
9
|
private apiOptions;
|
|
13
10
|
list(r: ListCuratedContentRequest | ListCuratedContentRequestInterface): Observable<ListCuratedContentResponse>;
|
|
14
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CuratedContentApiService, never>;
|
|
@@ -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';
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { DeleteHashtagsRequest, ReplaceHashtagsRequest, SearchHashtagRequest, SearchHashtagResponse } from './objects/';
|
|
2
2
|
import { DeleteHashtagsRequestInterface, ReplaceHashtagsRequestInterface, SearchHashtagRequestInterface } from './interfaces/';
|
|
3
|
-
import {
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class HashTagsApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
7
|
+
private readonly hostService;
|
|
8
|
+
private readonly http;
|
|
10
9
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
10
|
private apiOptions;
|
|
13
11
|
replaceHashtags(r: ReplaceHashtagsRequest | ReplaceHashtagsRequestInterface): Observable<HttpResponse<null>>;
|
|
14
12
|
deleteHashtags(r: DeleteHashtagsRequest | DeleteHashtagsRequestInterface): Observable<HttpResponse<null>>;
|
package/lib/_internal/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './enums';
|
|
|
2
2
|
export * from './objects';
|
|
3
3
|
export * from './interfaces';
|
|
4
4
|
export { ChatBotApiService } from './chat-bot.api.service';
|
|
5
|
+
export { ChatBotV2ApiService } from './chat-bot-v2.api.service';
|
|
5
6
|
export { CommonAiInstructionsApiService } from './common-ai-instructions.api.service';
|
|
6
7
|
export { ContentGenerationApiService } from './content-generation.api.service';
|
|
7
8
|
export { CuratedContentApiService } from './curated-content.api.service';
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
13
|
+
export interface SendMessageV2ResponseInterface {
|
|
14
|
+
messageResponse?: string;
|
|
15
|
+
}
|
|
@@ -12,3 +12,4 @@ 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';
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { DeletePostRequest, MediaUploadRequest, MediaUploadResponse } from './objects/';
|
|
2
2
|
import { DeletePostRequestInterface, MediaUploadRequestInterface } from './interfaces/';
|
|
3
|
-
import {
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class LinkedinApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
7
|
+
private readonly hostService;
|
|
8
|
+
private readonly http;
|
|
10
9
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
10
|
private apiOptions;
|
|
13
11
|
deletePost(r: DeletePostRequest | DeletePostRequestInterface): Observable<HttpResponse<null>>;
|
|
14
12
|
uploadMedia(r: MediaUploadRequest | MediaUploadRequestInterface): Observable<MediaUploadResponse>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { CreateMultilocationPostRequest, CreateMultilocationPostResponse, DeleteMultilocationPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, RemoveFromMultilocationPostRequest } from './objects/';
|
|
2
2
|
import { CreateMultilocationPostRequestInterface, DeleteMultilocationPostRequestInterface, EditMultilocationPostRequestInterface, GetMultilocationPostRequestInterface, ListMultilocationPostsForBrandRequestInterface, RemoveFromMultilocationPostRequestInterface } from './interfaces/';
|
|
3
|
-
import {
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class MultilocationPostApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
7
|
+
private readonly hostService;
|
|
8
|
+
private readonly http;
|
|
10
9
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
10
|
private apiOptions;
|
|
13
11
|
createMultilocationPost(r: CreateMultilocationPostRequest | CreateMultilocationPostRequestInterface): Observable<CreateMultilocationPostResponse>;
|
|
14
12
|
editMultilocationPost(r: EditMultilocationPostRequest | EditMultilocationPostRequestInterface): Observable<EditMultilocationPostResponse>;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
static fromProto(proto: any): SendMessageV2Request;
|
|
18
|
+
constructor(kwargs?: i.SendMessageV2RequestInterface);
|
|
19
|
+
toApiJson(): object;
|
|
20
|
+
}
|
|
21
|
+
export declare class SendMessageV2Response implements i.SendMessageV2ResponseInterface {
|
|
22
|
+
messageResponse: string;
|
|
23
|
+
static fromProto(proto: any): SendMessageV2Response;
|
|
24
|
+
constructor(kwargs?: i.SendMessageV2ResponseInterface);
|
|
25
|
+
toApiJson(): object;
|
|
26
|
+
}
|
|
@@ -12,3 +12,4 @@ 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';
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest } from './objects/';
|
|
2
2
|
import { PartnerListScheduledSocialPostsRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class PartnerSocialPostsApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
10
8
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
9
|
private apiOptions;
|
|
13
10
|
listScheduled(r: PartnerListScheduledSocialPostsRequest | PartnerListScheduledSocialPostsRequestInterface): Observable<PartnerListScheduledPostsResponse>;
|
|
14
11
|
listScheduledByCreated(r: PartnerListScheduledSocialPostsRequest | PartnerListScheduledSocialPostsRequestInterface): Observable<PartnerListScheduledPostsResponse>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { ListPixabayImagesRequest, ListPixabayImagesResponse } from './objects/';
|
|
2
2
|
import { ListPixabayImagesRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class PixabayImagesApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
10
8
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
9
|
private apiOptions;
|
|
13
10
|
listPixabayImages(r: ListPixabayImagesRequest | ListPixabayImagesRequestInterface): Observable<ListPixabayImagesResponse>;
|
|
14
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<PixabayImagesApiService, never>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse } from './objects/';
|
|
2
2
|
import { GenerateCSVForPerformanceStatsRequestInterface, GetGeneratedCSVForPerformanceStatsRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class PostPerformanceApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
10
8
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
9
|
private apiOptions;
|
|
13
10
|
generateCsvForPerformanceStats(r: GenerateCSVForPerformanceStatsRequest | GenerateCSVForPerformanceStatsRequestInterface): Observable<GenerateCSVForPerformanceStatsResponse>;
|
|
14
11
|
getGeneratedCsvForPerformanceStats(r: GetGeneratedCSVForPerformanceStatsRequest | GetGeneratedCSVForPerformanceStatsRequestInterface): Observable<GetGeneratedCSVForPerformanceStatsResponse>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { CreatePostTemplateRequest, CreatePostTemplateResponse, DeletePostTemplateRequest, GetPostTemplateRequest, GetPostTemplateResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, UpdatePostTemplateRequest } from './objects/';
|
|
2
2
|
import { CreatePostTemplateRequestInterface, DeletePostTemplateRequestInterface, GetPostTemplateRequestInterface, ListPostTemplatesRequestInterface, UpdatePostTemplateRequestInterface } from './interfaces/';
|
|
3
|
-
import {
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class PostTemplatesApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
7
|
+
private readonly hostService;
|
|
8
|
+
private readonly http;
|
|
10
9
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
10
|
private apiOptions;
|
|
13
11
|
updatePostTemplate(r: UpdatePostTemplateRequest | UpdatePostTemplateRequestInterface): Observable<HttpResponse<null>>;
|
|
14
12
|
createPostTemplate(r: CreatePostTemplateRequest | CreatePostTemplateRequestInterface): Observable<CreatePostTemplateResponse>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { CreateImageRequest, CreateImageResponse, ImageBlob, ImageUrl, RepostSocialPostRequest, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse } from './objects/';
|
|
2
2
|
import { CreateImageRequestInterface, ImageUrlInterface, RepostSocialPostRequestInterface, SocialPostRequestInterface, UpdateSocialPostRequestInterface } from './interfaces/';
|
|
3
|
-
import {
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class SocialPostsV2ApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
7
|
+
private readonly hostService;
|
|
8
|
+
private readonly http;
|
|
10
9
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
10
|
private apiOptions;
|
|
13
11
|
scheduleSocialPosts(r: SocialPostRequest | SocialPostRequestInterface): Observable<SocialPostResponse>;
|
|
14
12
|
updateSocialPosts(r: UpdateSocialPostRequest | UpdateSocialPostRequestInterface): Observable<UpdateSocialPostResponse>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { DeleteSocialPostRequest, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, ListSocialPostsRequest, ListSocialPostsResponse, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SuggestMessageRequest, SuggestMessageResponse } from './objects/';
|
|
2
2
|
import { DeleteSocialPostRequestInterface, GetMultiSocialPostStatsRequestInterface, GetMultiSocialPostsRequestInterface, GetScheduledPostCountRequestInterface, ListSocialPostsRequestInterface, SchedulePostRequestInterface, ScheduleToAllPagesRequestInterface, SuggestMessageRequestInterface } from './interfaces/';
|
|
3
|
-
import {
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class SocialPostsApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
7
|
+
private readonly hostService;
|
|
8
|
+
private readonly http;
|
|
10
9
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
10
|
private apiOptions;
|
|
13
11
|
list(r: ListSocialPostsRequest | ListSocialPostsRequestInterface): Observable<ListSocialPostsResponse>;
|
|
14
12
|
deleteSocialPost(r: DeleteSocialPostRequest | DeleteSocialPostRequestInterface): Observable<HttpResponse<null>>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, ListTenorGifsRequest, ListTenorGifsResponse } from './objects/';
|
|
2
2
|
import { GetTenorAnonymousIdRequestInterface, ListTenorGifsRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class TenorGifsApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
10
8
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
9
|
private apiOptions;
|
|
13
10
|
getTenorAnonymousId(r: GetTenorAnonymousIdRequest | GetTenorAnonymousIdRequestInterface): Observable<GetTenorAnonymousIdResponse>;
|
|
14
11
|
listTenorGifs(r: ListTenorGifsRequest | ListTenorGifsRequestInterface): Observable<ListTenorGifsResponse>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { ListUnsplashImagesRequest, ListUnsplashImagesResponse, UploadToStorageRequest, UploadToStorageResponse } from './objects/';
|
|
2
2
|
import { ListUnsplashImagesRequestInterface, UploadToStorageRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { HostService } from '../_generated/host.service';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class UnsplashApiService {
|
|
8
|
-
private
|
|
9
|
-
private
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
10
8
|
private _host;
|
|
11
|
-
constructor(http: HttpClient, hostService: HostService);
|
|
12
9
|
private apiOptions;
|
|
13
10
|
listUnsplashImages(r: ListUnsplashImagesRequest | ListUnsplashImagesRequestInterface): Observable<ListUnsplashImagesResponse>;
|
|
14
11
|
uploadToStorage(r: UploadToStorageRequest | UploadToStorageRequestInterface): Observable<UploadToStorageResponse>;
|
|
@@ -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
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpResponse } from "@angular/common/http";
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ChatBotApiService } from './_internal/chat-bot.api.service';
|
|
4
|
-
import { ActionInterface, SendMessageResponse, StartChatResponse } from './_internal';
|
|
4
|
+
import { ActionInterface, SendMessageResponse, StartChatRequest, StartChatRequestInterface, StartChatResponse } from './_internal';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ChatBotService {
|
|
7
7
|
private chatBotApiService;
|
|
8
8
|
constructor(chatBotApiService: ChatBotApiService);
|
|
9
|
-
startChat(): Observable<StartChatResponse>;
|
|
9
|
+
startChat(req: StartChatRequest | StartChatRequestInterface): Observable<StartChatResponse>;
|
|
10
10
|
sendMessage(messageContent: string, threadId: string, actions?: ActionInterface[]): Observable<SendMessageResponse>;
|
|
11
11
|
endChat(threadId: string): Observable<HttpResponse<null>>;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatBotService, never>;
|
package/lib/index.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ 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';
|