@vendasta/social-posts 5.7.0 → 5.9.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/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/enums/social-posts.enum.mjs +12 -6
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +9 -3
- package/esm2020/lib/index.mjs +3 -2
- package/esm2020/lib/social-post-v2.service.mjs +21 -0
- package/esm2020/lib/social-posts.service.mjs +3 -3
- package/fesm2015/vendasta-social-posts.mjs +794 -766
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +794 -766
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/enums/social-posts.enum.d.ts +6 -1
- package/lib/_internal/interfaces/api.interface.d.ts +2 -1
- package/lib/_internal/objects/api.d.ts +3 -2
- package/lib/index.d.ts +2 -1
- package/lib/social-post-v2.service.d.ts +11 -0
- package/lib/social-posts.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { RemoveReason, } from './multilocation-post.enum';
|
|
2
|
-
export { CallToActionCallToActionType, SocialPostDeletionStatus,
|
|
2
|
+
export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength, PostType, PostingStatus, SocialPostService, TemplateType, } from './social-posts.enum';
|
|
3
3
|
export { PostType as PostTypeEnum, } from './social-post-v2.enum';
|
|
4
4
|
export { MediaType, } from './linkedin-v2.enum';
|
|
@@ -12,7 +12,7 @@ export declare enum SocialPostDeletionStatus {
|
|
|
12
12
|
FAILED = 1,
|
|
13
13
|
IN_PROGRESS = 2
|
|
14
14
|
}
|
|
15
|
-
export declare enum
|
|
15
|
+
export declare enum MessageLength {
|
|
16
16
|
SHORT_FORM = 0,
|
|
17
17
|
LONG_FORM = 1
|
|
18
18
|
}
|
|
@@ -38,3 +38,8 @@ export declare enum SocialPostService {
|
|
|
38
38
|
UNKNOWN = 5,
|
|
39
39
|
INSTAGRAM = 6
|
|
40
40
|
}
|
|
41
|
+
export declare enum TemplateType {
|
|
42
|
+
TEMPLATE_UNSET = 0,
|
|
43
|
+
TEMPLATE_CUSTOM = 1,
|
|
44
|
+
TEMPLATE_SOCIAL_POST = 2
|
|
45
|
+
}
|
|
@@ -265,7 +265,8 @@ export interface SearchHashtagResponseInterface {
|
|
|
265
265
|
export interface SuggestMessageRequestInterface {
|
|
266
266
|
prompt?: string;
|
|
267
267
|
businessId?: string;
|
|
268
|
-
length?: e.
|
|
268
|
+
length?: e.MessageLength;
|
|
269
|
+
type?: e.TemplateType;
|
|
269
270
|
}
|
|
270
271
|
export interface SuggestMessageResponseInterface {
|
|
271
272
|
message?: string;
|
|
@@ -4,7 +4,7 @@ import { Hashtag } from './hashtag';
|
|
|
4
4
|
import { Location, MultilocationPost, MultilocationPostError } from './multilocation-post';
|
|
5
5
|
import { MediaEntry, MetaData, PostTemplate, SocialPostData, SchedulePostStatus } from './social-posts';
|
|
6
6
|
import { PixabayImage } from './pixabay-image';
|
|
7
|
-
import { SocialPost } from './social-
|
|
7
|
+
import { SocialPost } from './social-posts';
|
|
8
8
|
import { SocialPostStats } from './social-post-stats';
|
|
9
9
|
import { TenorGif } from './tenor-gif';
|
|
10
10
|
import * as e from '../enums';
|
|
@@ -414,7 +414,8 @@ export declare class SearchHashtagResponse implements i.SearchHashtagResponseInt
|
|
|
414
414
|
export declare class SuggestMessageRequest implements i.SuggestMessageRequestInterface {
|
|
415
415
|
prompt: string;
|
|
416
416
|
businessId: string;
|
|
417
|
-
length: e.
|
|
417
|
+
length: e.MessageLength;
|
|
418
|
+
type: e.TemplateType;
|
|
418
419
|
static fromProto(proto: any): SuggestMessageRequest;
|
|
419
420
|
constructor(kwargs?: i.SuggestMessageRequestInterface);
|
|
420
421
|
toApiJson(): object;
|
package/lib/index.d.ts
CHANGED
|
@@ -5,4 +5,5 @@ export { TenorGifsService } from './tenor-gifs.service';
|
|
|
5
5
|
export { PixabayImageService } from './pixabay-image.service';
|
|
6
6
|
export { HashTagsService } from './hashtag.service';
|
|
7
7
|
export { PostPerformanceService } from './post-performance.service';
|
|
8
|
-
export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest, PostPerformanceApiService,
|
|
8
|
+
export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest, PostPerformanceApiService, MessageLength, TemplateType } from './_internal';
|
|
9
|
+
export { SocialPostsV2Service } from './social-post-v2.service';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CreateImageResponse } from './_internal/objects/api-v2';
|
|
3
|
+
import { SocialPostsV2ApiService } from './_internal/social-posts-v2.api.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SocialPostsV2Service {
|
|
6
|
+
private socialpostV2ApiService;
|
|
7
|
+
constructor(socialpostV2ApiService: SocialPostsV2ApiService);
|
|
8
|
+
createImage(businessId: string, prompt: string, imageAmount?: number, size?: string): Observable<CreateImageResponse>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsV2Service, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsV2Service>;
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ListSocialPostsResponse, GetMultiSocialPostsResponse, GetScheduledPostCountResponse, SuggestMessageResponse } from './_internal/objects/api';
|
|
3
3
|
import { SocialPostsApiService } from './_internal/social-posts.api.service';
|
|
4
|
-
import {
|
|
4
|
+
import { MessageLength, TemplateType } from "./_internal";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SocialPostsService {
|
|
7
7
|
private socialPostsApiService;
|
|
@@ -9,7 +9,7 @@ export declare class SocialPostsService {
|
|
|
9
9
|
list(start: Date, end: Date, socialServiceIds: string[], businessId: string, partnerId: string, cursor: string, tags: string[], pageSize: number): Observable<ListSocialPostsResponse>;
|
|
10
10
|
getMultiSocialPosts(businessId: string, internalPostIds: string[]): Observable<GetMultiSocialPostsResponse>;
|
|
11
11
|
getScheduledPostCount(partnerId: string, businessId: string, socialServiceIds: string[]): Observable<GetScheduledPostCountResponse>;
|
|
12
|
-
suggestMessage(businessId: string, prompt: string, postLength:
|
|
12
|
+
suggestMessage(businessId: string, prompt: string, postLength: MessageLength, templateType: TemplateType): Observable<SuggestMessageResponse>;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsService, never>;
|
|
14
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsService>;
|
|
15
15
|
}
|