@vendasta/social-posts 5.3.0 → 5.5.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.
@@ -1,2 +1,2 @@
1
- export { CallToActionCallToActionType, SocialPostDeletionStatus, PostingStatus, SocialPostService, } from './social-posts.enum';
1
+ export { CallToActionCallToActionType, SocialPostDeletionStatus, PostLength, PostingStatus, SocialPostService, } from './social-posts.enum';
2
2
  export { RemoveReason, } from './multilocation-post.enum';
@@ -12,6 +12,10 @@ 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
+ }
15
19
  export declare enum PostingStatus {
16
20
  POSTING_IN_PROGRESS = 0,
17
21
  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;
@@ -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';
@@ -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;
@@ -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';
@@ -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.5.0",
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",