@vendasta/social-posts 5.15.4 → 5.16.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 +3 -3
- package/esm2020/lib/_internal/enums/social-post-v2.enum.mjs +8 -1
- package/esm2020/lib/_internal/enums/social-posts.enum.mjs +8 -1
- package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
- 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/api-v2.mjs +13 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/social-post-v2.mjs +30 -1
- package/esm2020/lib/_internal/objects/social-posts.mjs +13 -1
- package/esm2020/lib/social-post-v2.service.mjs +4 -5
- package/fesm2015/vendasta-social-posts.mjs +70 -4
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +70 -4
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +2 -2
- package/lib/_internal/enums/social-post-v2.enum.d.ts +6 -0
- package/lib/_internal/enums/social-posts.enum.d.ts +6 -0
- package/lib/_internal/interfaces/api-v2.interface.d.ts +4 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/social-post-v2.interface.d.ts +4 -0
- package/lib/_internal/interfaces/social-posts.interface.d.ts +2 -0
- package/lib/_internal/objects/api-v2.d.ts +4 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/social-post-v2.d.ts +7 -0
- package/lib/_internal/objects/social-posts.d.ts +2 -0
- package/lib/social-post-v2.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength, PostType, PostingStatus, SocialPostService, TemplateType, } from './social-posts.enum';
|
|
1
|
+
export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength, PostType, PostingStatus, YoutubeCustomizationPrivacyStatus, SocialPostService, TemplateType, } from './social-posts.enum';
|
|
2
2
|
export { RemoveReason, } from './multilocation-post.enum';
|
|
3
|
-
export { PostStatusV2, PostTypeV2, } from './social-post-v2.enum';
|
|
3
|
+
export { PostStatusV2, PostTypeV2, YoutubeCustomizationV2PrivacyStatusV2, } from './social-post-v2.enum';
|
|
4
4
|
export { MediaType, } from './linkedin-v2.enum';
|
|
@@ -11,3 +11,9 @@ export declare enum PostTypeV2 {
|
|
|
11
11
|
POST_TYPE_MULTI_MEDIA = 4,
|
|
12
12
|
POST_TYPE_TEXT = 5
|
|
13
13
|
}
|
|
14
|
+
export declare enum YoutubeCustomizationV2PrivacyStatusV2 {
|
|
15
|
+
YOUTUBE_PRIVACY_STATUS_INVALID = 0,
|
|
16
|
+
YOUTUBE_PRIVACY_STATUS_PUBLIC = 1,
|
|
17
|
+
YOUTUBE_PRIVACY_STATUS_PRIVATE = 2,
|
|
18
|
+
YOUTUBE_PRIVACY_STATUS_UNLISTED = 3
|
|
19
|
+
}
|
|
@@ -30,6 +30,12 @@ export declare enum PostingStatus {
|
|
|
30
30
|
POSTING_FAILED = 1,
|
|
31
31
|
POSTING_COMPLETED = 2
|
|
32
32
|
}
|
|
33
|
+
export declare enum YoutubeCustomizationPrivacyStatus {
|
|
34
|
+
YOUTUBE_PRIVACY_STATUS_INVALID = 0,
|
|
35
|
+
YOUTUBE_PRIVACY_STATUS_PUBLIC = 1,
|
|
36
|
+
YOUTUBE_PRIVACY_STATUS_PRIVATE = 2,
|
|
37
|
+
YOUTUBE_PRIVACY_STATUS_UNLISTED = 3
|
|
38
|
+
}
|
|
33
39
|
export declare enum SocialPostService {
|
|
34
40
|
TWITTER = 0,
|
|
35
41
|
FACEBOOK = 1,
|
|
@@ -8,6 +8,9 @@ export interface CreateImageRequestInterface {
|
|
|
8
8
|
size?: string;
|
|
9
9
|
responseFormat?: string;
|
|
10
10
|
metadata?: MetadataV2Interface[];
|
|
11
|
+
model?: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
quality?: string;
|
|
11
14
|
}
|
|
12
15
|
export interface CreateImageResponseInterface {
|
|
13
16
|
createdId?: number;
|
|
@@ -23,6 +26,7 @@ export interface ImageBlobInterface {
|
|
|
23
26
|
export interface ImageCreatedInterface {
|
|
24
27
|
url?: string;
|
|
25
28
|
b64Json?: string;
|
|
29
|
+
revisedPrompt?: string;
|
|
26
30
|
}
|
|
27
31
|
export interface ImageUrlInterface {
|
|
28
32
|
url?: string;
|
|
@@ -6,6 +6,6 @@ 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 { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, } from './social-post-v2.interface';
|
|
9
|
+
export { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, YoutubeCustomizationV2Interface, } from './social-post-v2.interface';
|
|
10
10
|
export { MediaInterface, } from './linkedin-v2.interface';
|
|
11
11
|
export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, } from './api-v2.interface';
|
|
@@ -50,4 +50,8 @@ export interface SocialPostV2Interface {
|
|
|
50
50
|
partnerId?: string;
|
|
51
51
|
brandId?: string;
|
|
52
52
|
multilocationPostId?: string;
|
|
53
|
+
youtubeCustomization?: YoutubeCustomizationV2Interface;
|
|
54
|
+
}
|
|
55
|
+
export interface YoutubeCustomizationV2Interface {
|
|
56
|
+
privacyStatus?: e.YoutubeCustomizationV2PrivacyStatusV2;
|
|
53
57
|
}
|
|
@@ -80,6 +80,7 @@ export interface SocialPostInterface {
|
|
|
80
80
|
mediaEntries?: MediaEntryInterface[];
|
|
81
81
|
metaData?: MetaDataInterface[];
|
|
82
82
|
title?: string;
|
|
83
|
+
youtubeCustomization?: YoutubeCustomizationInterface;
|
|
83
84
|
}
|
|
84
85
|
export interface SocialPostDataInterface {
|
|
85
86
|
postText?: string;
|
|
@@ -88,4 +89,5 @@ export interface SocialPostDataInterface {
|
|
|
88
89
|
}
|
|
89
90
|
export interface YoutubeCustomizationInterface {
|
|
90
91
|
title?: string;
|
|
92
|
+
privacyStatus?: e.YoutubeCustomizationPrivacyStatus;
|
|
91
93
|
}
|
|
@@ -10,6 +10,9 @@ export declare class CreateImageRequest implements i.CreateImageRequestInterface
|
|
|
10
10
|
size: string;
|
|
11
11
|
responseFormat: string;
|
|
12
12
|
metadata: MetadataV2[];
|
|
13
|
+
model: string;
|
|
14
|
+
style: string;
|
|
15
|
+
quality: string;
|
|
13
16
|
static fromProto(proto: any): CreateImageRequest;
|
|
14
17
|
constructor(kwargs?: i.CreateImageRequestInterface);
|
|
15
18
|
toApiJson(): object;
|
|
@@ -37,6 +40,7 @@ export declare class ImageBlob implements i.ImageBlobInterface {
|
|
|
37
40
|
export declare class ImageCreated implements i.ImageCreatedInterface {
|
|
38
41
|
url: string;
|
|
39
42
|
b64Json: string;
|
|
43
|
+
revisedPrompt: string;
|
|
40
44
|
static fromProto(proto: any): ImageCreated;
|
|
41
45
|
constructor(kwargs?: i.ImageCreatedInterface);
|
|
42
46
|
toApiJson(): object;
|
|
@@ -6,6 +6,6 @@ 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 { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, } from './social-post-v2';
|
|
9
|
+
export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, YoutubeCustomizationV2, } from './social-post-v2';
|
|
10
10
|
export { Media, } from './linkedin-v2';
|
|
11
11
|
export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageBlob, ImageCreated, ImageUrl, MediaUploadRequest, MediaUploadResponse, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, } from './api-v2';
|
|
@@ -73,7 +73,14 @@ export declare class SocialPostV2 implements i.SocialPostV2Interface {
|
|
|
73
73
|
partnerId: string;
|
|
74
74
|
brandId: string;
|
|
75
75
|
multilocationPostId: string;
|
|
76
|
+
youtubeCustomization: YoutubeCustomizationV2;
|
|
76
77
|
static fromProto(proto: any): SocialPostV2;
|
|
77
78
|
constructor(kwargs?: i.SocialPostV2Interface);
|
|
78
79
|
toApiJson(): object;
|
|
79
80
|
}
|
|
81
|
+
export declare class YoutubeCustomizationV2 implements i.YoutubeCustomizationV2Interface {
|
|
82
|
+
privacyStatus: e.YoutubeCustomizationV2PrivacyStatusV2;
|
|
83
|
+
static fromProto(proto: any): YoutubeCustomizationV2;
|
|
84
|
+
constructor(kwargs?: i.YoutubeCustomizationV2Interface);
|
|
85
|
+
toApiJson(): object;
|
|
86
|
+
}
|
|
@@ -103,6 +103,7 @@ export declare class SocialPost implements i.SocialPostInterface {
|
|
|
103
103
|
mediaEntries: MediaEntry[];
|
|
104
104
|
metaData: MetaData[];
|
|
105
105
|
title: string;
|
|
106
|
+
youtubeCustomization: YoutubeCustomization;
|
|
106
107
|
static fromProto(proto: any): SocialPost;
|
|
107
108
|
constructor(kwargs?: i.SocialPostInterface);
|
|
108
109
|
toApiJson(): object;
|
|
@@ -117,6 +118,7 @@ export declare class SocialPostData implements i.SocialPostDataInterface {
|
|
|
117
118
|
}
|
|
118
119
|
export declare class YoutubeCustomization implements i.YoutubeCustomizationInterface {
|
|
119
120
|
title: string;
|
|
121
|
+
privacyStatus: e.YoutubeCustomizationPrivacyStatus;
|
|
120
122
|
static fromProto(proto: any): YoutubeCustomization;
|
|
121
123
|
constructor(kwargs?: i.YoutubeCustomizationInterface);
|
|
122
124
|
toApiJson(): object;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { CreateImageResponse, ImageBlob, SocialPostResponse } from './_internal/objects/api-v2';
|
|
3
3
|
import { SocialPostsV2ApiService } from './_internal/social-posts-v2.api.service';
|
|
4
|
-
import {
|
|
4
|
+
import { CreateImageRequestInterface, SocialPostRequestInterface } from './_internal/interfaces';
|
|
5
5
|
import { HttpResponse } from "@angular/common/http";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SocialPostsV2Service {
|
|
8
8
|
private socialpostV2ApiService;
|
|
9
9
|
constructor(socialpostV2ApiService: SocialPostsV2ApiService);
|
|
10
10
|
scheduleSocialPostV2(socialPost: SocialPostRequestInterface): Observable<SocialPostResponse>;
|
|
11
|
-
createImage(
|
|
11
|
+
createImage(image: CreateImageRequestInterface): Observable<CreateImageResponse>;
|
|
12
12
|
getImageByUrl(url: string): Observable<ImageBlob>;
|
|
13
13
|
generateVariations(url: string): Observable<CreateImageResponse>;
|
|
14
14
|
repostSocialPost(socialPostId: string, businessId: string): Observable<HttpResponse<null>>;
|