@vendasta/social-posts 5.14.0 → 5.15.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/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/index.mjs +2 -2
- package/esm2020/lib/multilocation-posts.service.mjs +8 -4
- package/fesm2015/vendasta-social-posts.mjs +42 -4
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +42 -4
- 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/index.d.ts +1 -1
- package/lib/multilocation-posts.service.d.ts +3 -3
- 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
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ 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, MessageLength, TemplateType, MediaEntry, MetaData, } from './_internal';
|
|
8
|
+
export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest, PostPerformanceApiService, MessageLength, TemplateType, MediaEntry, MetaData, PostCustomization, } from './_internal';
|
|
9
9
|
export * from './_internal/interfaces';
|
|
10
10
|
export * from './_internal/enums';
|
|
11
11
|
export * from './_internal/objects';
|
|
@@ -3,15 +3,15 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { CreateMultilocationPostResponse, EditMultilocationPostResponse, GetMultilocationPostResponse, ListMultilocationPostsForBrandResponse } from './_internal/objects/api';
|
|
4
4
|
import { MultilocationPostApiService } from './_internal/multilocation-post.api.service';
|
|
5
5
|
import { FieldMask } from './_internal/objects/field-mask';
|
|
6
|
-
import { Location } from './_internal/objects/multilocation-post';
|
|
6
|
+
import { Location, PostCustomization } from './_internal/objects/multilocation-post';
|
|
7
7
|
import { RemoveReason } from './_internal/enums/multilocation-post.enum';
|
|
8
8
|
import { MediaEntry, MetaData } from "./_internal";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class MultilocationPostsService {
|
|
11
11
|
private multilocationApiService;
|
|
12
12
|
constructor(multilocationApiService: MultilocationPostApiService);
|
|
13
|
-
createMultilocationPost(brandId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], mediaEntries
|
|
14
|
-
editMultilocationPost(brandId: string, multilocationId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], fieldMask: FieldMask, mediaEntries
|
|
13
|
+
createMultilocationPost(brandId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], mediaEntries?: MediaEntry[], postCustomization?: PostCustomization, linkShortCode?: string, metadata?: MetaData[]): Observable<CreateMultilocationPostResponse>;
|
|
14
|
+
editMultilocationPost(brandId: string, multilocationId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], fieldMask: FieldMask, mediaEntries?: MediaEntry[], postCustomization?: PostCustomization, linkShortCode?: string, metadata?: MetaData[]): Observable<EditMultilocationPostResponse>;
|
|
15
15
|
removeFromMultilocationPost(reason: RemoveReason, brandId: string, multilocationId: string, locations: Location[]): Observable<HttpResponse<null>>;
|
|
16
16
|
listMultilocationPostsForBrand(brandId: string, startDate: Date, endDate: Date, cursor: string, pageSize: number): Observable<ListMultilocationPostsForBrandResponse>;
|
|
17
17
|
deleteMultilocationPost(brandId: string, multilocationId: string): Observable<HttpResponse<null>>;
|