@vendasta/social-posts 5.3.0 → 5.4.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.
@@ -1,2 +1,2 @@
1
- export { CallToActionCallToActionType, SocialPostDeletionStatus, PostingStatus, SocialPostService, } from './social-posts.enum';
1
+ export { CallToActionCallToActionType, SocialPostDeletionStatus, PostLength, PostType, PostingStatus, SocialPostService, } from './social-posts.enum';
2
2
  export { RemoveReason, } from './multilocation-post.enum';
@@ -12,6 +12,18 @@ export declare enum SocialPostDeletionStatus {
12
12
  FAILED = 1,
13
13
  IN_PROGRESS = 2
14
14
  }
15
+ export declare enum PostLength {
16
+ SHORT_FORM = 0,
17
+ LONG_FORM = 1
18
+ }
19
+ export declare enum PostType {
20
+ POST_TYPE_INVALID = 0,
21
+ POST_TYPE_IMAGE = 1,
22
+ POST_TYPE_VIDEO = 2,
23
+ POST_TYPE_GIF = 3,
24
+ POST_TYPE_REEL = 4,
25
+ POST_TYPE_CAROUSEL = 5
26
+ }
15
27
  export declare enum PostingStatus {
16
28
  POSTING_IN_PROGRESS = 0,
17
29
  POSTING_FAILED = 1,
@@ -259,6 +259,14 @@ export interface SearchHashtagRequestInterface {
259
259
  export interface SearchHashtagResponseInterface {
260
260
  hashtags?: HashtagInterface[];
261
261
  }
262
+ export interface SuggestMessageRequestInterface {
263
+ prompt?: string;
264
+ businessId?: string;
265
+ length?: e.PostLength;
266
+ }
267
+ export interface SuggestMessageResponseInterface {
268
+ message?: string;
269
+ }
262
270
  export interface UpdatePostTemplateRequestInterface {
263
271
  accountGroupId?: string;
264
272
  templateId?: string;
@@ -1,4 +1,4 @@
1
- export { CallToActionInterface, ErrorInterface, EventInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, } from './social-posts.interface';
1
+ export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, } from './social-posts.interface';
2
2
  export { PixabayImageInterface, } from './pixabay-image.interface';
3
3
  export { FacebookPostStatsInterface, SocialPostStatsInterface, TwitterPostStatsInterface, } from './social-post-stats.interface';
4
4
  export { PostTemplateInterface, } from './post-templates.interface';
@@ -6,4 +6,4 @@ export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorIn
6
6
  export { FieldMaskInterface, } from './field-mask.interface';
7
7
  export { TenorGifMediaEntryInterface, TenorGifInterface, TenorMediaObjectInterface, } from './tenor-gif.interface';
8
8
  export { HashtagInterface, } from './hashtag.interface';
9
- 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, UpdatePostTemplateRequestInterface, } from './api.interface';
9
+ 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';
@@ -12,6 +12,17 @@ export interface EventInterface {
12
12
  startDatetime?: Date;
13
13
  endDatetime?: Date;
14
14
  }
15
+ export interface MediaEntryInterface {
16
+ mediaEntryId?: string;
17
+ mediaUrl?: string;
18
+ mediaType?: string;
19
+ containerId?: string;
20
+ metaData?: MetaDataInterface[];
21
+ }
22
+ export interface MetaDataInterface {
23
+ propertyName?: string;
24
+ propertyValue?: string;
25
+ }
15
26
  export interface SchedulePostStatusInterface {
16
27
  socialPostId?: string;
17
28
  socialServiceId?: string;
@@ -45,6 +56,9 @@ export interface SocialPostInterface {
45
56
  linkPreviewImageUrl?: string;
46
57
  brandId?: string;
47
58
  multilocationPostId?: string;
59
+ postType?: e.PostType;
60
+ mediaEntries?: MediaEntryInterface[];
61
+ metaData?: MetaDataInterface[];
48
62
  }
49
63
  export interface SocialPostDataInterface {
50
64
  postText?: string;
@@ -408,6 +408,20 @@ export declare class SearchHashtagResponse implements i.SearchHashtagResponseInt
408
408
  constructor(kwargs?: i.SearchHashtagResponseInterface);
409
409
  toApiJson(): object;
410
410
  }
411
+ export declare class SuggestMessageRequest implements i.SuggestMessageRequestInterface {
412
+ prompt: string;
413
+ businessId: string;
414
+ length: e.PostLength;
415
+ static fromProto(proto: any): SuggestMessageRequest;
416
+ constructor(kwargs?: i.SuggestMessageRequestInterface);
417
+ toApiJson(): object;
418
+ }
419
+ export declare class SuggestMessageResponse implements i.SuggestMessageResponseInterface {
420
+ message: string;
421
+ static fromProto(proto: any): SuggestMessageResponse;
422
+ constructor(kwargs?: i.SuggestMessageResponseInterface);
423
+ toApiJson(): object;
424
+ }
411
425
  export declare class UpdatePostTemplateRequest implements i.UpdatePostTemplateRequestInterface {
412
426
  accountGroupId: string;
413
427
  templateId: string;
@@ -1,4 +1,4 @@
1
- export { CallToAction, Error, Event, SchedulePostStatus, SocialPost, SocialPostData, } from './social-posts';
1
+ export { CallToAction, Error, Event, MediaEntry, MetaData, SchedulePostStatus, SocialPost, SocialPostData, } from './social-posts';
2
2
  export { PixabayImage, } from './pixabay-image';
3
3
  export { FacebookPostStats, SocialPostStats, TwitterPostStats, } from './social-post-stats';
4
4
  export { PostTemplate, } from './post-templates';
@@ -6,4 +6,4 @@ export { Location, MultilocationPost, MultilocationPostError, } from './multiloc
6
6
  export { FieldMask, } from './field-mask';
7
7
  export { TenorGifMediaEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
8
8
  export { Hashtag, } from './hashtag';
9
- 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, UpdatePostTemplateRequest, } from './api';
9
+ 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';
@@ -23,6 +23,23 @@ export declare class Event implements i.EventInterface {
23
23
  constructor(kwargs?: i.EventInterface);
24
24
  toApiJson(): object;
25
25
  }
26
+ export declare class MediaEntry implements i.MediaEntryInterface {
27
+ mediaEntryId: string;
28
+ mediaUrl: string;
29
+ mediaType: string;
30
+ containerId: string;
31
+ metaData: MetaData[];
32
+ static fromProto(proto: any): MediaEntry;
33
+ constructor(kwargs?: i.MediaEntryInterface);
34
+ toApiJson(): object;
35
+ }
36
+ export declare class MetaData implements i.MetaDataInterface {
37
+ propertyName: string;
38
+ propertyValue: string;
39
+ static fromProto(proto: any): MetaData;
40
+ constructor(kwargs?: i.MetaDataInterface);
41
+ toApiJson(): object;
42
+ }
26
43
  export declare class SchedulePostStatus implements i.SchedulePostStatusInterface {
27
44
  socialPostId: string;
28
45
  socialServiceId: string;
@@ -59,6 +76,9 @@ export declare class SocialPost implements i.SocialPostInterface {
59
76
  linkPreviewImageUrl: string;
60
77
  brandId: string;
61
78
  multilocationPostId: string;
79
+ postType: e.PostType;
80
+ mediaEntries: MediaEntry[];
81
+ metaData: MetaData[];
62
82
  static fromProto(proto: any): SocialPost;
63
83
  constructor(kwargs?: i.SocialPostInterface);
64
84
  toApiJson(): object;
@@ -1,5 +1,5 @@
1
- import { DeleteSocialPostRequest, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, ListSocialPostsRequest, ListSocialPostsResponse, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse } from './objects/';
2
- import { DeleteSocialPostRequestInterface, GetMultiSocialPostStatsRequestInterface, GetMultiSocialPostsRequestInterface, GetScheduledPostCountRequestInterface, ListSocialPostsRequestInterface, SchedulePostRequestInterface, ScheduleToAllPagesRequestInterface } from './interfaces/';
1
+ import { DeleteSocialPostRequest, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, ListSocialPostsRequest, ListSocialPostsResponse, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SuggestMessageRequest, SuggestMessageResponse } from './objects/';
2
+ import { DeleteSocialPostRequestInterface, GetMultiSocialPostStatsRequestInterface, GetMultiSocialPostsRequestInterface, GetScheduledPostCountRequestInterface, ListSocialPostsRequestInterface, SchedulePostRequestInterface, ScheduleToAllPagesRequestInterface, SuggestMessageRequestInterface } from './interfaces/';
3
3
  import { HttpClient, HttpResponse } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
@@ -17,6 +17,7 @@ export declare class SocialPostsApiService {
17
17
  getMultiSocialPosts(r: GetMultiSocialPostsRequest | GetMultiSocialPostsRequestInterface): Observable<GetMultiSocialPostsResponse>;
18
18
  getMultiSocialPostStats(r: GetMultiSocialPostStatsRequest | GetMultiSocialPostStatsRequestInterface): Observable<GetMultiSocialPostStatsResponse>;
19
19
  getScheduledPostCount(r: GetScheduledPostCountRequest | GetScheduledPostCountRequestInterface): Observable<GetScheduledPostCountResponse>;
20
+ suggestMessage(r: SuggestMessageRequest | SuggestMessageRequestInterface): Observable<SuggestMessageResponse>;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsApiService, never>;
21
22
  static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsApiService>;
22
23
  }
package/lib/index.d.ts CHANGED
@@ -5,4 +5,4 @@ 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, } from './_internal';
8
+ export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest, PostPerformanceApiService, PostLength, } from './_internal';
@@ -1,6 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ListSocialPostsResponse, GetMultiSocialPostsResponse, GetScheduledPostCountResponse } from './_internal/objects/api';
2
+ import { ListSocialPostsResponse, GetMultiSocialPostsResponse, GetScheduledPostCountResponse, SuggestMessageResponse } from './_internal/objects/api';
3
3
  import { SocialPostsApiService } from './_internal/social-posts.api.service';
4
+ import { PostLength } from "./_internal";
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class SocialPostsService {
6
7
  private socialPostsApiService;
@@ -8,6 +9,7 @@ export declare class SocialPostsService {
8
9
  list(start: Date, end: Date, socialServiceIds: string[], businessId: string, partnerId: string, cursor: string, tags: string[], pageSize: number): Observable<ListSocialPostsResponse>;
9
10
  getMultiSocialPosts(businessId: string, internalPostIds: string[]): Observable<GetMultiSocialPostsResponse>;
10
11
  getScheduledPostCount(partnerId: string, businessId: string, socialServiceIds: string[]): Observable<GetScheduledPostCountResponse>;
12
+ suggestMessage(businessId: string, prompt: string, postLength: PostLength): Observable<SuggestMessageResponse>;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsService, never>;
12
14
  static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsService>;
13
15
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.3.0",
3
+ "version": "5.4.1",
4
4
  "peerDependencies": {
5
- "@angular/common": "^13.0.0",
6
- "@angular/core": "^13.0.0"
5
+ "@angular/common": "^14.0.2",
6
+ "@angular/core": "^14.0.2"
7
7
  },
8
8
  "author": "Vendasta R&D",
9
9
  "description": "SDK to interact with the social-posts service",