@vendasta/social-posts 5.20.0 → 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/interfaces/social-post-v2.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/social-posts.interface.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 +4 -2
- package/esm2020/lib/_internal/objects/social-post-v2.mjs +5 -5
- package/esm2020/lib/_internal/objects/social-posts.mjs +39 -1
- package/fesm2015/vendasta-social-posts.mjs +302 -35
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +302 -35
- 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 +3 -1
- package/lib/_internal/interfaces/social-post-v2.interface.d.ts +1 -1
- package/lib/_internal/interfaces/social-posts.interface.d.ts +7 -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 +3 -1
- package/lib/_internal/objects/social-post-v2.d.ts +1 -1
- package/lib/_internal/objects/social-posts.d.ts +10 -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
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
2
2
|
export { HashtagInterface, } from './hashtag.interface';
|
|
3
|
-
export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
|
|
3
|
+
export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, TikTokCustomizationInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
|
|
4
4
|
export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, PostActionInterface, PostCustomizationInterface, PostEventInterface, } from './multilocation-post.interface';
|
|
5
5
|
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';
|
|
@@ -53,7 +53,7 @@ export interface SocialPostV2Interface {
|
|
|
53
53
|
youtubeCustomization?: YoutubeCustomizationV2Interface;
|
|
54
54
|
userId?: string;
|
|
55
55
|
shareId?: string;
|
|
56
|
-
|
|
56
|
+
tiktokCustomization?: TikTokCustomizationV2Interface;
|
|
57
57
|
}
|
|
58
58
|
export interface TikTokCustomizationV2Interface {
|
|
59
59
|
allowComment?: boolean;
|
|
@@ -42,6 +42,7 @@ export interface PostTemplateInterface {
|
|
|
42
42
|
metaData?: MetaDataInterface[];
|
|
43
43
|
postType?: e.PostType;
|
|
44
44
|
youtubeCustomization?: YoutubeCustomizationInterface;
|
|
45
|
+
tiktokCustomization?: TikTokCustomizationInterface;
|
|
45
46
|
}
|
|
46
47
|
export interface SSIDPostTypeInterface {
|
|
47
48
|
socialServiceId?: string;
|
|
@@ -85,12 +86,18 @@ export interface SocialPostInterface {
|
|
|
85
86
|
metaData?: MetaDataInterface[];
|
|
86
87
|
title?: string;
|
|
87
88
|
youtubeCustomization?: YoutubeCustomizationInterface;
|
|
89
|
+
tiktokCustomization?: TikTokCustomizationInterface;
|
|
88
90
|
}
|
|
89
91
|
export interface SocialPostDataInterface {
|
|
90
92
|
postText?: string;
|
|
91
93
|
imageUrl?: string;
|
|
92
94
|
scheduleFor?: Date;
|
|
93
95
|
}
|
|
96
|
+
export interface TikTokCustomizationInterface {
|
|
97
|
+
allowComment?: boolean;
|
|
98
|
+
allowDuet?: boolean;
|
|
99
|
+
allowStitch?: boolean;
|
|
100
|
+
}
|
|
94
101
|
export interface YoutubeCustomizationInterface {
|
|
95
102
|
title?: string;
|
|
96
103
|
privacyStatus?: e.YoutubeCustomizationPrivacyStatus;
|
|
@@ -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
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export { FieldMask, } from './field-mask';
|
|
2
2
|
export { Hashtag, } from './hashtag';
|
|
3
|
-
export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialPost, SocialPostData, YoutubeCustomization, } from './social-posts';
|
|
3
|
+
export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialPost, SocialPostData, TikTokCustomization, YoutubeCustomization, } from './social-posts';
|
|
4
4
|
export { Location, MultilocationPost, MultilocationPostError, PostAction, PostCustomization, PostEvent, } from './multilocation-post';
|
|
5
5
|
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';
|
|
@@ -76,7 +76,7 @@ export declare class SocialPostV2 implements i.SocialPostV2Interface {
|
|
|
76
76
|
youtubeCustomization: YoutubeCustomizationV2;
|
|
77
77
|
userId: string;
|
|
78
78
|
shareId: string;
|
|
79
|
-
|
|
79
|
+
tiktokCustomization: TikTokCustomizationV2;
|
|
80
80
|
static fromProto(proto: any): SocialPostV2;
|
|
81
81
|
constructor(kwargs?: i.SocialPostV2Interface);
|
|
82
82
|
toApiJson(): object;
|
|
@@ -59,6 +59,7 @@ export declare class PostTemplate implements i.PostTemplateInterface {
|
|
|
59
59
|
metaData: MetaData[];
|
|
60
60
|
postType: e.PostType;
|
|
61
61
|
youtubeCustomization: YoutubeCustomization;
|
|
62
|
+
tiktokCustomization: TikTokCustomization;
|
|
62
63
|
static fromProto(proto: any): PostTemplate;
|
|
63
64
|
constructor(kwargs?: i.PostTemplateInterface);
|
|
64
65
|
toApiJson(): object;
|
|
@@ -111,6 +112,7 @@ export declare class SocialPost implements i.SocialPostInterface {
|
|
|
111
112
|
metaData: MetaData[];
|
|
112
113
|
title: string;
|
|
113
114
|
youtubeCustomization: YoutubeCustomization;
|
|
115
|
+
tiktokCustomization: TikTokCustomization;
|
|
114
116
|
static fromProto(proto: any): SocialPost;
|
|
115
117
|
constructor(kwargs?: i.SocialPostInterface);
|
|
116
118
|
toApiJson(): object;
|
|
@@ -123,6 +125,14 @@ export declare class SocialPostData implements i.SocialPostDataInterface {
|
|
|
123
125
|
constructor(kwargs?: i.SocialPostDataInterface);
|
|
124
126
|
toApiJson(): object;
|
|
125
127
|
}
|
|
128
|
+
export declare class TikTokCustomization implements i.TikTokCustomizationInterface {
|
|
129
|
+
allowComment: boolean;
|
|
130
|
+
allowDuet: boolean;
|
|
131
|
+
allowStitch: boolean;
|
|
132
|
+
static fromProto(proto: any): TikTokCustomization;
|
|
133
|
+
constructor(kwargs?: i.TikTokCustomizationInterface);
|
|
134
|
+
toApiJson(): object;
|
|
135
|
+
}
|
|
126
136
|
export declare class YoutubeCustomization implements i.YoutubeCustomizationInterface {
|
|
127
137
|
title: string;
|
|
128
138
|
privacyStatus: e.YoutubeCustomizationPrivacyStatus;
|