@vendasta/social-posts 5.20.1 → 5.20.2
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.api.service.mjs +50 -0
- package/esm2020/lib/_internal/enums/chat-bot.enum.mjs +12 -0
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/chat-bot.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
- package/esm2020/lib/_internal/objects/chat-bot.mjs +146 -0
- package/esm2020/lib/_internal/objects/index.mjs +3 -1
- package/fesm2015/vendasta-social-posts.mjs +260 -31
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +260 -31
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/chat-bot.api.service.d.ts +18 -0
- package/lib/_internal/enums/chat-bot.enum.d.ts +4 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
- package/lib/_internal/interfaces/chat-bot.interface.d.ts +23 -0
- package/lib/_internal/interfaces/index.d.ts +2 -0
- package/lib/_internal/objects/annotations.d.ts +9 -0
- package/lib/_internal/objects/chat-bot.d.ts +43 -0
- package/lib/_internal/objects/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse } from './objects/';
|
|
2
|
+
import { EndChatRequestInterface, SendMessageRequestInterface, StartChatRequestInterface } from './interfaces/';
|
|
3
|
+
import { HttpClient, HttpResponse } 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 ChatBotApiService {
|
|
8
|
+
private http;
|
|
9
|
+
private hostService;
|
|
10
|
+
private _host;
|
|
11
|
+
constructor(http: HttpClient, hostService: HostService);
|
|
12
|
+
private apiOptions;
|
|
13
|
+
startChat(r: StartChatRequest | StartChatRequestInterface): Observable<StartChatResponse>;
|
|
14
|
+
sendMessage(r: SendMessageRequest | SendMessageRequestInterface): Observable<SendMessageResponse>;
|
|
15
|
+
endChat(r: EndChatRequest | EndChatRequestInterface): Observable<HttpResponse<null>>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatBotApiService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChatBotApiService>;
|
|
18
|
+
}
|
|
@@ -2,3 +2,4 @@ export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength,
|
|
|
2
2
|
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
|
+
export { ActionType, } from './chat-bot.enum';
|
package/lib/_internal/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './enums';
|
|
2
2
|
export * from './objects';
|
|
3
3
|
export * from './interfaces';
|
|
4
|
+
export { ChatBotApiService } from './chat-bot.api.service';
|
|
4
5
|
export { CommonAiInstructionsApiService } from './common-ai-instructions.api.service';
|
|
5
6
|
export { ContentGenerationApiService } from './content-generation.api.service';
|
|
6
7
|
export { HashTagsApiService } from './hash-tags.api.service';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as e from '../enums';
|
|
2
|
+
export interface ActionInterface {
|
|
3
|
+
actionType?: e.ActionType;
|
|
4
|
+
actionPayload?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface EndChatRequestInterface {
|
|
7
|
+
threadId?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SendMessageRequestInterface {
|
|
10
|
+
messageContent?: string;
|
|
11
|
+
threadId?: string;
|
|
12
|
+
actions?: ActionInterface[];
|
|
13
|
+
}
|
|
14
|
+
export interface SendMessageResponseInterface {
|
|
15
|
+
messageResponse?: string;
|
|
16
|
+
threadId?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface StartChatRequestInterface {
|
|
19
|
+
}
|
|
20
|
+
export interface StartChatResponseInterface {
|
|
21
|
+
assistantId?: string;
|
|
22
|
+
threadId?: string;
|
|
23
|
+
}
|
|
@@ -6,7 +6,9 @@ export { PixabayImageInterface, } from './pixabay-image.interface';
|
|
|
6
6
|
export { FacebookPostStatsInterface, SocialPostStatsInterface, TwitterPostStatsInterface, } from './social-post-stats.interface';
|
|
7
7
|
export { TenorGifMediaMapEntryInterface, TenorGifInterface, TenorMediaObjectInterface, } from './tenor-gif.interface';
|
|
8
8
|
export { CreateMultilocationPostRequestInterface, CreateMultilocationPostResponseInterface, CreatePostTemplateRequestInterface, CreatePostTemplateResponseInterface, DateRangeFilterInterface, DeleteHashtagsRequestInterface, DeleteMultilocationPostRequestInterface, DeletePostTemplateRequestInterface, DeleteSocialPostRequestInterface, EditMultilocationPostRequestInterface, EditMultilocationPostResponseInterface, PartnerListScheduledSocialPostsRequestFiltersInterface, GenerateCSVForPerformanceStatsRequestInterface, GenerateCSVForPerformanceStatsResponseInterface, GetGeneratedCSVForPerformanceStatsRequestInterface, GetGeneratedCSVForPerformanceStatsResponseInterface, GetMultiSocialPostStatsRequestInterface, GetMultiSocialPostStatsResponseInterface, GetMultiSocialPostsRequestInterface, GetMultiSocialPostsResponseInterface, GetMultilocationPostRequestInterface, GetMultilocationPostResponseInterface, GetPostTemplateRequestInterface, GetPostTemplateResponseInterface, GetScheduledPostCountRequestInterface, GetScheduledPostCountResponseInterface, GetTenorAnonymousIdRequestInterface, GetTenorAnonymousIdResponseInterface, ListMultilocationPostsForBrandRequestInterface, ListMultilocationPostsForBrandResponseInterface, ListPixabayImagesRequestInterface, ListPixabayImagesResponseInterface, ListPostTemplatesRequestInterface, ListPostTemplatesResponseInterface, ListSocialPostsRequestInterface, ListSocialPostsResponseInterface, ListTenorGifsRequestInterface, ListTenorGifsResponseInterface, PartnerListScheduledPostsResponseInterface, PartnerListScheduledSocialPostsRequestInterface, PostDataInterface, RemoveFromMultilocationPostRequestInterface, ReplaceHashtagsRequestInterface, SchedulePostRequestInterface, SchedulePostResponseInterface, ScheduleToAllPagesRequestInterface, ScheduleToAllPagesResponseInterface, SearchHashtagRequestInterface, SearchHashtagResponseInterface, SuggestMessageRequestInterface, SuggestMessageResponseInterface, UpdatePostTemplateRequestInterface, } from './api.interface';
|
|
9
|
+
export { AccessInterface, } from './annotations.interface';
|
|
9
10
|
export { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, TikTokCustomizationV2Interface, YoutubeCustomizationV2Interface, } from './social-post-v2.interface';
|
|
10
11
|
export { MediaInterface, } from './linkedin-v2.interface';
|
|
11
12
|
export { AncestryInterface, CollectionInterface, ImageInterface, LinksInterface, PhotoInterface, SocialInterface, SourceInterface, SubAncestryInterface, TagsInterface, UrlsInterface, UserInterface, UserLinkInterface, } from './unsplash-image.interface';
|
|
12
13
|
export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, GeneratePostsRequestInterface, GeneratePostsResponseInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, ListUnsplashImagesRequestInterface, ListUnsplashImagesResponseInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, GeneratePostsResponsePostInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, UploadToStorageRequestInterface, UploadToStorageResponseInterface, } from './api-v2.interface';
|
|
14
|
+
export { ActionInterface, EndChatRequestInterface, SendMessageRequestInterface, SendMessageResponseInterface, StartChatRequestInterface, StartChatResponseInterface, } from './chat-bot.interface';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
|
+
export declare class Access implements i.AccessInterface {
|
|
4
|
+
scope: string[];
|
|
5
|
+
public: boolean;
|
|
6
|
+
static fromProto(proto: any): Access;
|
|
7
|
+
constructor(kwargs?: i.AccessInterface);
|
|
8
|
+
toApiJson(): object;
|
|
9
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 Action implements i.ActionInterface {
|
|
5
|
+
actionType: e.ActionType;
|
|
6
|
+
actionPayload: string;
|
|
7
|
+
static fromProto(proto: any): Action;
|
|
8
|
+
constructor(kwargs?: i.ActionInterface);
|
|
9
|
+
toApiJson(): object;
|
|
10
|
+
}
|
|
11
|
+
export declare class EndChatRequest implements i.EndChatRequestInterface {
|
|
12
|
+
threadId: string;
|
|
13
|
+
static fromProto(proto: any): EndChatRequest;
|
|
14
|
+
constructor(kwargs?: i.EndChatRequestInterface);
|
|
15
|
+
toApiJson(): object;
|
|
16
|
+
}
|
|
17
|
+
export declare class SendMessageRequest implements i.SendMessageRequestInterface {
|
|
18
|
+
messageContent: string;
|
|
19
|
+
threadId: string;
|
|
20
|
+
actions: Action[];
|
|
21
|
+
static fromProto(proto: any): SendMessageRequest;
|
|
22
|
+
constructor(kwargs?: i.SendMessageRequestInterface);
|
|
23
|
+
toApiJson(): object;
|
|
24
|
+
}
|
|
25
|
+
export declare class SendMessageResponse implements i.SendMessageResponseInterface {
|
|
26
|
+
messageResponse: string;
|
|
27
|
+
threadId: string;
|
|
28
|
+
static fromProto(proto: any): SendMessageResponse;
|
|
29
|
+
constructor(kwargs?: i.SendMessageResponseInterface);
|
|
30
|
+
toApiJson(): object;
|
|
31
|
+
}
|
|
32
|
+
export declare class StartChatRequest implements i.StartChatRequestInterface {
|
|
33
|
+
static fromProto(proto: any): StartChatRequest;
|
|
34
|
+
constructor(kwargs?: i.StartChatRequestInterface);
|
|
35
|
+
toApiJson(): object;
|
|
36
|
+
}
|
|
37
|
+
export declare class StartChatResponse implements i.StartChatResponseInterface {
|
|
38
|
+
assistantId: string;
|
|
39
|
+
threadId: string;
|
|
40
|
+
static fromProto(proto: any): StartChatResponse;
|
|
41
|
+
constructor(kwargs?: i.StartChatResponseInterface);
|
|
42
|
+
toApiJson(): object;
|
|
43
|
+
}
|
|
@@ -6,7 +6,9 @@ export { PixabayImage, } from './pixabay-image';
|
|
|
6
6
|
export { FacebookPostStats, SocialPostStats, TwitterPostStats, } from './social-post-stats';
|
|
7
7
|
export { TenorGifMediaMapEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
|
|
8
8
|
export { CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, PartnerListScheduledSocialPostsRequestFilters, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PostData, RemoveFromMultilocationPostRequest, ReplaceHashtagsRequest, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SuggestMessageRequest, SuggestMessageResponse, UpdatePostTemplateRequest, } from './api';
|
|
9
|
+
export { Access, } from './annotations';
|
|
9
10
|
export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, TikTokCustomizationV2, YoutubeCustomizationV2, } from './social-post-v2';
|
|
10
11
|
export { Media, } from './linkedin-v2';
|
|
11
12
|
export { Ancestry, Collection, Image, Links, Photo, Social, Source, SubAncestry, Tags, Urls, User, UserLink, } from './unsplash-image';
|
|
12
13
|
export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, DeletePostRequest, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, GeneratePostsResponsePost, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, } from './api-v2';
|
|
14
|
+
export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse, } from './chat-bot';
|