@vendasta/social-posts 5.14.1 → 5.15.1
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/social-posts.enum.mjs +2 -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/objects/api-v2.mjs +24 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/social-post-v2.mjs +7 -1
- package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +6 -2
- package/esm2020/lib/social-post-v2.service.mjs +6 -2
- package/fesm2015/vendasta-social-posts.mjs +39 -1
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +39 -1
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/social-posts.enum.d.ts +2 -1
- 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 +2 -0
- package/lib/_internal/objects/api-v2.d.ts +7 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/social-post-v2.d.ts +2 -0
- package/lib/_internal/social-posts-v2.api.service.d.ts +4 -3
- package/lib/social-post-v2.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -34,6 +34,10 @@ export interface MediaUploadRequestInterface {
|
|
|
34
34
|
export interface MediaUploadResponseInterface {
|
|
35
35
|
uploadUrns?: string[];
|
|
36
36
|
}
|
|
37
|
+
export interface RepostSocialPostRequestInterface {
|
|
38
|
+
socialPostId?: string;
|
|
39
|
+
accountGroupId?: string;
|
|
40
|
+
}
|
|
37
41
|
export interface SocialPostOutputInterface {
|
|
38
42
|
internalPostId?: string;
|
|
39
43
|
socialPost?: SocialPostV2Interface;
|
|
@@ -8,4 +8,4 @@ export { TenorGifMediaMapEntryInterface, TenorGifInterface, TenorMediaObjectInte
|
|
|
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 { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, } from './social-post-v2.interface';
|
|
10
10
|
export { MediaInterface, } from './linkedin-v2.interface';
|
|
11
|
-
export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, } from './api-v2.interface';
|
|
11
|
+
export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, } from './api-v2.interface';
|
|
@@ -60,6 +60,13 @@ export declare class MediaUploadResponse implements i.MediaUploadResponseInterfa
|
|
|
60
60
|
constructor(kwargs?: i.MediaUploadResponseInterface);
|
|
61
61
|
toApiJson(): object;
|
|
62
62
|
}
|
|
63
|
+
export declare class RepostSocialPostRequest implements i.RepostSocialPostRequestInterface {
|
|
64
|
+
socialPostId: string;
|
|
65
|
+
accountGroupId: string;
|
|
66
|
+
static fromProto(proto: any): RepostSocialPostRequest;
|
|
67
|
+
constructor(kwargs?: i.RepostSocialPostRequestInterface);
|
|
68
|
+
toApiJson(): object;
|
|
69
|
+
}
|
|
63
70
|
export declare class SocialPostOutput implements i.SocialPostOutputInterface {
|
|
64
71
|
internalPostId: string;
|
|
65
72
|
socialPost: SocialPostV2;
|
|
@@ -8,4 +8,4 @@ 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
9
|
export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, } from './social-post-v2';
|
|
10
10
|
export { Media, } from './linkedin-v2';
|
|
11
|
-
export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageBlob, ImageCreated, ImageUrl, MediaUploadRequest, MediaUploadResponse, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, } from './api-v2';
|
|
11
|
+
export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageBlob, ImageCreated, ImageUrl, MediaUploadRequest, MediaUploadResponse, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, } from './api-v2';
|
|
@@ -71,6 +71,8 @@ export declare class SocialPostV2 implements i.SocialPostV2Interface {
|
|
|
71
71
|
internalPostId: string;
|
|
72
72
|
metadata: MetadataV2[];
|
|
73
73
|
partnerId: string;
|
|
74
|
+
brandId: string;
|
|
75
|
+
multilocationPostId: string;
|
|
74
76
|
static fromProto(proto: any): SocialPostV2;
|
|
75
77
|
constructor(kwargs?: i.SocialPostV2Interface);
|
|
76
78
|
toApiJson(): object;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreateImageRequest, CreateImageResponse, ImageBlob, ImageUrl, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse } from './objects/';
|
|
2
|
-
import { CreateImageRequestInterface, ImageUrlInterface, SocialPostRequestInterface, UpdateSocialPostRequestInterface } from './interfaces/';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
1
|
+
import { CreateImageRequest, CreateImageResponse, ImageBlob, ImageUrl, RepostSocialPostRequest, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse } from './objects/';
|
|
2
|
+
import { CreateImageRequestInterface, ImageUrlInterface, RepostSocialPostRequestInterface, SocialPostRequestInterface, UpdateSocialPostRequestInterface } from './interfaces/';
|
|
3
|
+
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { HostService } from '../_generated/host.service';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -15,6 +15,7 @@ export declare class SocialPostsV2ApiService {
|
|
|
15
15
|
createImages(r: CreateImageRequest | CreateImageRequestInterface): Observable<CreateImageResponse>;
|
|
16
16
|
getImageByUrl(r: ImageUrl | ImageUrlInterface): Observable<ImageBlob>;
|
|
17
17
|
generateVariations(r: ImageUrl | ImageUrlInterface): Observable<CreateImageResponse>;
|
|
18
|
+
repostSocialPost(r: RepostSocialPostRequest | RepostSocialPostRequestInterface): Observable<HttpResponse<null>>;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsV2ApiService, never>;
|
|
19
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsV2ApiService>;
|
|
20
21
|
}
|
|
@@ -2,6 +2,7 @@ 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
4
|
import { SocialPostRequestInterface } from './_internal/interfaces';
|
|
5
|
+
import { HttpResponse } from "@angular/common/http";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class SocialPostsV2Service {
|
|
7
8
|
private socialpostV2ApiService;
|
|
@@ -10,6 +11,7 @@ export declare class SocialPostsV2Service {
|
|
|
10
11
|
createImage(businessId: string, prompt: string, imageAmount?: number, size?: string): Observable<CreateImageResponse>;
|
|
11
12
|
getImageByUrl(url: string): Observable<ImageBlob>;
|
|
12
13
|
generateVariations(url: string): Observable<CreateImageResponse>;
|
|
14
|
+
repostSocialPost(socialPostId: string, businessId: string): Observable<HttpResponse<null>>;
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsV2Service, never>;
|
|
14
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsV2Service>;
|
|
15
17
|
}
|