@vendasta/social-posts 5.3.0 → 5.4.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.
@@ -259,6 +259,13 @@ 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
+ }
266
+ export interface SuggestMessageResponseInterface {
267
+ message?: string;
268
+ }
262
269
  export interface UpdatePostTemplateRequestInterface {
263
270
  accountGroupId?: string;
264
271
  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,19 @@ 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
+ static fromProto(proto: any): SuggestMessageRequest;
415
+ constructor(kwargs?: i.SuggestMessageRequestInterface);
416
+ toApiJson(): object;
417
+ }
418
+ export declare class SuggestMessageResponse implements i.SuggestMessageResponseInterface {
419
+ message: string;
420
+ static fromProto(proto: any): SuggestMessageResponse;
421
+ constructor(kwargs?: i.SuggestMessageResponseInterface);
422
+ toApiJson(): object;
423
+ }
411
424
  export declare class UpdatePostTemplateRequest implements i.UpdatePostTemplateRequestInterface {
412
425
  accountGroupId: string;
413
426
  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
  }
@@ -1,5 +1,5 @@
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
4
  import * as i0 from "@angular/core";
5
5
  export declare class SocialPostsService {
@@ -8,6 +8,7 @@ export declare class SocialPostsService {
8
8
  list(start: Date, end: Date, socialServiceIds: string[], businessId: string, partnerId: string, cursor: string, tags: string[], pageSize: number): Observable<ListSocialPostsResponse>;
9
9
  getMultiSocialPosts(businessId: string, internalPostIds: string[]): Observable<GetMultiSocialPostsResponse>;
10
10
  getScheduledPostCount(partnerId: string, businessId: string, socialServiceIds: string[]): Observable<GetScheduledPostCountResponse>;
11
+ suggestMessage(businessId: string, prompt: string): Observable<SuggestMessageResponse>;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsService, never>;
12
13
  static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsService>;
13
14
  }
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.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",