@vendasta/social-posts 5.44.0 → 5.45.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/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/pexels-image.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/api.mjs +63 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/esm2020/lib/_internal/objects/pexels-image.mjs +54 -0
- package/esm2020/lib/_internal/pexels-images.api.service.mjs +40 -0
- package/esm2020/lib/multilocation-posts.service.mjs +5 -3
- package/fesm2015/vendasta-social-posts.mjs +166 -16
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +166 -16
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +10 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/interfaces/pexels-image.interface.d.ts +9 -0
- package/lib/_internal/objects/api.d.ts +16 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/lib/_internal/objects/pexels-image.d.ts +14 -0
- package/lib/_internal/pexels-images.api.service.d.ts +13 -0
- package/lib/multilocation-posts.service.d.ts +2 -2
- package/package.json +1 -1
package/lib/_internal/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { HashTagsApiService } from './hash-tags.api.service';
|
|
|
13
13
|
export { LinkedinApiService } from './linkedin.api.service';
|
|
14
14
|
export { MultilocationPostApiService } from './multilocation-post.api.service';
|
|
15
15
|
export { PartnerSocialPostsApiService } from './partner-social-posts.api.service';
|
|
16
|
+
export { PexelsImagesApiService } from './pexels-images.api.service';
|
|
16
17
|
export { PixabayImagesApiService } from './pixabay-images.api.service';
|
|
17
18
|
export { PostPerformanceApiService } from './post-performance.api.service';
|
|
18
19
|
export { PostTemplatesApiService } from './post-templates.api.service';
|
|
@@ -2,6 +2,7 @@ import { FieldMaskInterface } from './field-mask.interface';
|
|
|
2
2
|
import { HashtagInterface } from './hashtag.interface';
|
|
3
3
|
import { LocationInterface, BulkUploadMultilocationInterface, MultilocationPostErrorInterface, PostCustomizationInterface, MultilocationPostInterface, MultilocationServicesInterface } from './multilocation-post.interface';
|
|
4
4
|
import { MediaEntryInterface, MetaDataInterface, SSIDPostTypeInterface, MLPostCategoryInterface, YoutubeCustomizationInterface, SocialPostInterface, PostTemplateInterface, SocialPostDataInterface, SchedulePostStatusInterface } from './social-posts.interface';
|
|
5
|
+
import { PexelsImageInterface } from './pexels-image.interface';
|
|
5
6
|
import { PixabayImageInterface } from './pixabay-image.interface';
|
|
6
7
|
import { SocialPostStatsInterface } from './social-post-stats.interface';
|
|
7
8
|
import { TenorGifInterface } from './tenor-gif.interface';
|
|
@@ -174,6 +175,15 @@ export interface ListMultilocationPostsForBrandResponseInterface {
|
|
|
174
175
|
hasMore?: boolean;
|
|
175
176
|
failedSocialPosts?: SocialPostInterface[];
|
|
176
177
|
}
|
|
178
|
+
export interface ListPexelsImagesRequestInterface {
|
|
179
|
+
query?: string;
|
|
180
|
+
pageNumber?: number;
|
|
181
|
+
pageSize?: number;
|
|
182
|
+
}
|
|
183
|
+
export interface ListPexelsImagesResponseInterface {
|
|
184
|
+
totalHits?: number;
|
|
185
|
+
pexelsImages?: PexelsImageInterface[];
|
|
186
|
+
}
|
|
177
187
|
export interface ListPixabayImagesRequestInterface {
|
|
178
188
|
query?: string;
|
|
179
189
|
cursor?: string;
|
|
@@ -5,7 +5,8 @@ export { BulkUploadMultilocationInterface, LocationInterface, MultilocationPostI
|
|
|
5
5
|
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
|
-
export {
|
|
8
|
+
export { PexelsImageInterface, } from './pexels-image.interface';
|
|
9
|
+
export { BulkCreateMultilocationPostRequestInterface, BulkCreateMultilocationPostResponseInterface, 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, ListPexelsImagesRequestInterface, ListPexelsImagesResponseInterface, 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
10
|
export { AccessInterface, MCPOptionsInterface, } from './annotations.interface';
|
|
10
11
|
export { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, TikTokCustomizationV2Interface, YoutubeCustomizationV2Interface, } from './social-post-v2.interface';
|
|
11
12
|
export { MediaInterface, } from './linkedin-v2.interface';
|
|
@@ -3,6 +3,7 @@ import { FieldMask } from './field-mask';
|
|
|
3
3
|
import { Hashtag } from './hashtag';
|
|
4
4
|
import { Location, BulkUploadMultilocation, MultilocationPostError, PostCustomization, MultilocationPost, MultilocationServices } from './multilocation-post';
|
|
5
5
|
import { MediaEntry, MetaData, SSIDPostType, MLPostCategory, YoutubeCustomization, SocialPost, PostTemplate, SocialPostData, SchedulePostStatus } from './social-posts';
|
|
6
|
+
import { PexelsImage } from './pexels-image';
|
|
6
7
|
import { PixabayImage } from './pixabay-image';
|
|
7
8
|
import { SocialPostStats } from './social-post-stats';
|
|
8
9
|
import { TenorGif } from './tenor-gif';
|
|
@@ -272,6 +273,21 @@ export declare class ListMultilocationPostsForBrandResponse implements i.ListMul
|
|
|
272
273
|
constructor(kwargs?: i.ListMultilocationPostsForBrandResponseInterface);
|
|
273
274
|
toApiJson(): object;
|
|
274
275
|
}
|
|
276
|
+
export declare class ListPexelsImagesRequest implements i.ListPexelsImagesRequestInterface {
|
|
277
|
+
query: string;
|
|
278
|
+
pageNumber: number;
|
|
279
|
+
pageSize: number;
|
|
280
|
+
static fromProto(proto: any): ListPexelsImagesRequest;
|
|
281
|
+
constructor(kwargs?: i.ListPexelsImagesRequestInterface);
|
|
282
|
+
toApiJson(): object;
|
|
283
|
+
}
|
|
284
|
+
export declare class ListPexelsImagesResponse implements i.ListPexelsImagesResponseInterface {
|
|
285
|
+
totalHits: number;
|
|
286
|
+
pexelsImages: PexelsImage[];
|
|
287
|
+
static fromProto(proto: any): ListPexelsImagesResponse;
|
|
288
|
+
constructor(kwargs?: i.ListPexelsImagesResponseInterface);
|
|
289
|
+
toApiJson(): object;
|
|
290
|
+
}
|
|
275
291
|
export declare class ListPixabayImagesRequest implements i.ListPixabayImagesRequestInterface {
|
|
276
292
|
query: string;
|
|
277
293
|
cursor: string;
|
|
@@ -5,7 +5,8 @@ export { BulkUploadMultilocation, Location, MultilocationPost, MultilocationPost
|
|
|
5
5
|
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
|
-
export {
|
|
8
|
+
export { PexelsImage, } from './pexels-image';
|
|
9
|
+
export { BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, 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, ListPexelsImagesRequest, ListPexelsImagesResponse, 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
10
|
export { Access, MCPOptions, } from './annotations';
|
|
10
11
|
export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, TikTokCustomizationV2, YoutubeCustomizationV2, } from './social-post-v2';
|
|
11
12
|
export { Media, } from './linkedin-v2';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
|
+
export declare class PexelsImage implements i.PexelsImageInterface {
|
|
4
|
+
imageId: number;
|
|
5
|
+
imagePreviewUrl: string;
|
|
6
|
+
pexelsPageUrl: string;
|
|
7
|
+
photographerName: string;
|
|
8
|
+
photographerUrl: string;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
static fromProto(proto: any): PexelsImage;
|
|
12
|
+
constructor(kwargs?: i.PexelsImageInterface);
|
|
13
|
+
toApiJson(): object;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ListPexelsImagesRequest, ListPexelsImagesResponse } from './objects/';
|
|
2
|
+
import { ListPexelsImagesRequestInterface } from './interfaces/';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PexelsImagesApiService {
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
8
|
+
private _host;
|
|
9
|
+
private apiOptions;
|
|
10
|
+
listPexelsImages(r: ListPexelsImagesRequest | ListPexelsImagesRequestInterface): Observable<ListPexelsImagesResponse>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PexelsImagesApiService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PexelsImagesApiService>;
|
|
13
|
+
}
|
|
@@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { CreateMultilocationPostResponse, EditMultilocationPostResponse, GetMultilocationPostResponse, ListMultilocationPostsForBrandResponse, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse } 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, PostCustomization } from './_internal/objects/multilocation-post';
|
|
6
|
+
import { Location, MultilocationServices, PostCustomization } from './_internal/objects/multilocation-post';
|
|
7
7
|
import { RemoveReason } from './_internal/enums/multilocation-post.enum';
|
|
8
8
|
import { MediaEntry, MetaData, MLPostCategory, SSIDPostType } from "./_internal";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
@@ -11,7 +11,7 @@ export declare class MultilocationPostsService {
|
|
|
11
11
|
private multilocationApiService;
|
|
12
12
|
constructor(multilocationApiService: MultilocationPostApiService);
|
|
13
13
|
createMultilocationPost(brandId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], mediaEntries?: MediaEntry[], postCustomization?: PostCustomization, linkShortCode?: string, metadata?: MetaData[], postTypes?: SSIDPostType[], postCategory?: MLPostCategory): 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[], postTypes?: SSIDPostType[], postCategory?: MLPostCategory): Observable<EditMultilocationPostResponse>;
|
|
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[], postTypes?: SSIDPostType[], postCategory?: MLPostCategory, newServices?: MultilocationServices[], deletedServices?: MultilocationServices[]): 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>>;
|