@vendasta/social-posts 5.9.0 → 5.9.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/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/objects/api-v2.mjs +41 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/social-post-v2.mjs +4 -1
- package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +7 -2
- package/esm2020/lib/social-post-v2.service.mjs +6 -2
- package/esm2020/public_api.mjs +1 -1
- package/fesm2015/vendasta-social-posts.mjs +52 -0
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +52 -0
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/interfaces/api-v2.interface.d.ts +6 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/social-post-v2.interface.d.ts +1 -0
- package/lib/_internal/objects/api-v2.d.ts +12 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/social-post-v2.d.ts +1 -0
- package/lib/_internal/social-posts-v2.api.service.d.ts +3 -2
- package/lib/social-post-v2.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -15,10 +15,16 @@ export interface DeletePostRequestInterface {
|
|
|
15
15
|
accessToken?: string;
|
|
16
16
|
postId?: string;
|
|
17
17
|
}
|
|
18
|
+
export interface ImageBlobInterface {
|
|
19
|
+
blob?: string;
|
|
20
|
+
}
|
|
18
21
|
export interface ImageCreatedInterface {
|
|
19
22
|
url?: string;
|
|
20
23
|
b64Json?: string;
|
|
21
24
|
}
|
|
25
|
+
export interface ImageUrlInterface {
|
|
26
|
+
url?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface MediaUploadRequestInterface {
|
|
23
29
|
accessToken?: string;
|
|
24
30
|
owner?: string;
|
|
@@ -8,4 +8,4 @@ export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterf
|
|
|
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
9
|
export { LinkInterface, MetadataInterface, PostActionInterface, PostContentInterface, PostCustomizationInterface, PostEventInterface, PostMediaInterface, SocialPostInterface as SocialPostInterfaceV2, } from './social-post-v2.interface';
|
|
10
10
|
export { MediaInterface, } from './linkedin-v2.interface';
|
|
11
|
-
export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageCreatedInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, } from './api-v2.interface';
|
|
11
|
+
export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, } from './api-v2.interface';
|
|
@@ -26,6 +26,12 @@ export declare class DeletePostRequest implements i.DeletePostRequestInterface {
|
|
|
26
26
|
constructor(kwargs?: i.DeletePostRequestInterface);
|
|
27
27
|
toApiJson(): object;
|
|
28
28
|
}
|
|
29
|
+
export declare class ImageBlob implements i.ImageBlobInterface {
|
|
30
|
+
blob: string;
|
|
31
|
+
static fromProto(proto: any): ImageBlob;
|
|
32
|
+
constructor(kwargs?: i.ImageBlobInterface);
|
|
33
|
+
toApiJson(): object;
|
|
34
|
+
}
|
|
29
35
|
export declare class ImageCreated implements i.ImageCreatedInterface {
|
|
30
36
|
url: string;
|
|
31
37
|
b64Json: string;
|
|
@@ -33,6 +39,12 @@ export declare class ImageCreated implements i.ImageCreatedInterface {
|
|
|
33
39
|
constructor(kwargs?: i.ImageCreatedInterface);
|
|
34
40
|
toApiJson(): object;
|
|
35
41
|
}
|
|
42
|
+
export declare class ImageUrl implements i.ImageUrlInterface {
|
|
43
|
+
url: string;
|
|
44
|
+
static fromProto(proto: any): ImageUrl;
|
|
45
|
+
constructor(kwargs?: i.ImageUrlInterface);
|
|
46
|
+
toApiJson(): object;
|
|
47
|
+
}
|
|
36
48
|
export declare class MediaUploadRequest implements i.MediaUploadRequestInterface {
|
|
37
49
|
accessToken: string;
|
|
38
50
|
owner: string;
|
|
@@ -8,4 +8,4 @@ export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, Schedul
|
|
|
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
9
|
export { Link, Metadata, PostAction, PostContent, PostCustomization, PostEvent, PostMedia, SocialPost as SocialPostV2, } from './social-post-v2';
|
|
10
10
|
export { Media, } from './linkedin-v2';
|
|
11
|
-
export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageCreated, MediaUploadRequest, MediaUploadResponse, SocialPostOutput, SocialPostRequest, SocialPostResponse, } from './api-v2';
|
|
11
|
+
export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageBlob, ImageCreated, ImageUrl, MediaUploadRequest, MediaUploadResponse, SocialPostOutput, SocialPostRequest, SocialPostResponse, } from './api-v2';
|
|
@@ -66,6 +66,7 @@ export declare class SocialPost implements i.SocialPostInterface {
|
|
|
66
66
|
scheduled: Date;
|
|
67
67
|
customization: PostCustomization;
|
|
68
68
|
postType: e.PostType;
|
|
69
|
+
internalPostId: string;
|
|
69
70
|
static fromProto(proto: any): SocialPost;
|
|
70
71
|
constructor(kwargs?: i.SocialPostInterface);
|
|
71
72
|
toApiJson(): object;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateImageRequest, CreateImageResponse, SocialPostRequest, SocialPostResponse } from './objects/';
|
|
2
|
-
import { CreateImageRequestInterface, SocialPostRequestInterface } from './interfaces/';
|
|
1
|
+
import { CreateImageRequest, CreateImageResponse, ImageBlob, ImageUrl, SocialPostRequest, SocialPostResponse } from './objects/';
|
|
2
|
+
import { CreateImageRequestInterface, ImageUrlInterface, SocialPostRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpClient } from '@angular/common/http';
|
|
4
4
|
import { HostService } from '../_generated/host.service';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
@@ -12,6 +12,7 @@ export declare class SocialPostsV2ApiService {
|
|
|
12
12
|
private apiOptions;
|
|
13
13
|
scheduleSocialPosts(r: SocialPostRequest | SocialPostRequestInterface): Observable<SocialPostResponse>;
|
|
14
14
|
createImages(r: CreateImageRequest | CreateImageRequestInterface): Observable<CreateImageResponse>;
|
|
15
|
+
getImageByUrl(r: ImageUrl | ImageUrlInterface): Observable<ImageBlob>;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsV2ApiService, never>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsV2ApiService>;
|
|
17
18
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { CreateImageResponse } from './_internal/objects/api-v2';
|
|
2
|
+
import { CreateImageResponse, ImageBlob } from './_internal/objects/api-v2';
|
|
3
3
|
import { SocialPostsV2ApiService } from './_internal/social-posts-v2.api.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SocialPostsV2Service {
|
|
6
6
|
private socialpostV2ApiService;
|
|
7
7
|
constructor(socialpostV2ApiService: SocialPostsV2ApiService);
|
|
8
8
|
createImage(businessId: string, prompt: string, imageAmount?: number, size?: string): Observable<CreateImageResponse>;
|
|
9
|
+
getImageByUrl(url: string): Observable<ImageBlob>;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsV2Service, never>;
|
|
10
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsV2Service>;
|
|
11
12
|
}
|