@vendasta/social-posts 5.2.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.
Files changed (39) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +4 -4
  2. package/esm2020/lib/_internal/hash-tags.api.service.mjs +4 -4
  3. package/esm2020/lib/_internal/index.mjs +2 -1
  4. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  6. package/esm2020/lib/_internal/multilocation-post.api.service.mjs +4 -4
  7. package/esm2020/lib/_internal/objects/api.mjs +240 -1
  8. package/esm2020/lib/_internal/objects/index.mjs +2 -2
  9. package/esm2020/lib/_internal/partner-social-posts.api.service.mjs +4 -4
  10. package/esm2020/lib/_internal/pixabay-images.api.service.mjs +4 -4
  11. package/esm2020/lib/_internal/post-performance.api.service.mjs +46 -0
  12. package/esm2020/lib/_internal/post-templates.api.service.mjs +4 -4
  13. package/esm2020/lib/_internal/social-posts.api.service.mjs +10 -5
  14. package/esm2020/lib/_internal/tenor-gifs.api.service.mjs +4 -4
  15. package/esm2020/lib/hashtag.service.mjs +4 -4
  16. package/esm2020/lib/index.mjs +3 -2
  17. package/esm2020/lib/multilocation-posts.service.mjs +4 -4
  18. package/esm2020/lib/pixabay-image.service.mjs +4 -4
  19. package/esm2020/lib/post-performance.service.mjs +26 -0
  20. package/esm2020/lib/post-templates.service.mjs +4 -4
  21. package/esm2020/lib/social-posts.service.mjs +9 -5
  22. package/esm2020/lib/tenor-gifs.service.mjs +4 -4
  23. package/esm2020/public_api.mjs +1 -4
  24. package/fesm2015/vendasta-social-posts.mjs +344 -47
  25. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  26. package/fesm2020/vendasta-social-posts.mjs +344 -47
  27. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  28. package/{vendasta-social-posts.d.ts → index.d.ts} +0 -0
  29. package/lib/_internal/index.d.ts +1 -0
  30. package/lib/_internal/interfaces/api.interface.d.ts +39 -0
  31. package/lib/_internal/interfaces/index.d.ts +1 -1
  32. package/lib/_internal/objects/api.d.ts +60 -0
  33. package/lib/_internal/objects/index.d.ts +1 -1
  34. package/lib/_internal/post-performance.api.service.d.ts +17 -0
  35. package/lib/_internal/social-posts.api.service.d.ts +3 -2
  36. package/lib/index.d.ts +2 -1
  37. package/lib/post-performance.service.d.ts +11 -0
  38. package/lib/social-posts.service.d.ts +2 -1
  39. package/package.json +5 -5
File without changes
@@ -5,6 +5,7 @@ export { HashTagsApiService } from './hash-tags.api.service';
5
5
  export { MultilocationPostApiService } from './multilocation-post.api.service';
6
6
  export { PartnerSocialPostsApiService } from './partner-social-posts.api.service';
7
7
  export { PixabayImagesApiService } from './pixabay-images.api.service';
8
+ export { PostPerformanceApiService } from './post-performance.api.service';
8
9
  export { PostTemplatesApiService } from './post-templates.api.service';
9
10
  export { SocialPostsApiService } from './social-posts.api.service';
10
11
  export { TenorGifsApiService } from './tenor-gifs.api.service';
@@ -76,6 +76,20 @@ export interface PartnerListScheduledSocialPostsRequestFiltersInterface {
76
76
  dateRange?: DateRangeFilterInterface;
77
77
  partnerId?: string;
78
78
  }
79
+ export interface GenerateCSVForPerformanceStatsRequestInterface {
80
+ businessId?: string;
81
+ postData?: PostDataInterface[];
82
+ includeHeaders?: string[];
83
+ }
84
+ export interface GenerateCSVForPerformanceStatsResponseInterface {
85
+ generatedId?: string;
86
+ }
87
+ export interface GetGeneratedCSVForPerformanceStatsRequestInterface {
88
+ generatedId?: string;
89
+ }
90
+ export interface GetGeneratedCSVForPerformanceStatsResponseInterface {
91
+ url?: string;
92
+ }
79
93
  export interface GetMultiSocialPostStatsRequestInterface {
80
94
  internalPostIds?: string[];
81
95
  businessId?: string;
@@ -190,6 +204,24 @@ export interface PartnerListScheduledSocialPostsRequestInterface {
190
204
  filters?: PartnerListScheduledSocialPostsRequestFiltersInterface;
191
205
  pageSize?: number;
192
206
  }
207
+ export interface PostDataInterface {
208
+ postId?: string;
209
+ reach?: number;
210
+ engagement?: number;
211
+ views?: number;
212
+ clicks?: number;
213
+ comments?: number;
214
+ shares?: number;
215
+ reactions?: number;
216
+ saves?: number;
217
+ likes?: number;
218
+ videoViews?: number;
219
+ retweets?: number;
220
+ favourites?: number;
221
+ impressions?: number;
222
+ commentsCount?: number;
223
+ likeCount?: number;
224
+ }
193
225
  export interface RemoveFromMultilocationPostRequestInterface {
194
226
  reason?: e.RemoveReason;
195
227
  brandId?: string;
@@ -227,6 +259,13 @@ export interface SearchHashtagRequestInterface {
227
259
  export interface SearchHashtagResponseInterface {
228
260
  hashtags?: HashtagInterface[];
229
261
  }
262
+ export interface SuggestMessageRequestInterface {
263
+ prompt?: string;
264
+ businessId?: string;
265
+ }
266
+ export interface SuggestMessageResponseInterface {
267
+ message?: string;
268
+ }
230
269
  export interface UpdatePostTemplateRequestInterface {
231
270
  accountGroupId?: string;
232
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, GetMultiSocialPostStatsRequestInterface, GetMultiSocialPostStatsResponseInterface, GetMultiSocialPostsRequestInterface, GetMultiSocialPostsResponseInterface, GetMultilocationPostRequestInterface, GetMultilocationPostResponseInterface, GetPostTemplateRequestInterface, GetPostTemplateResponseInterface, GetScheduledPostCountRequestInterface, GetScheduledPostCountResponseInterface, GetTenorAnonymousIdRequestInterface, GetTenorAnonymousIdResponseInterface, ListMultilocationPostsForBrandRequestInterface, ListMultilocationPostsForBrandResponseInterface, ListPixabayImagesRequestInterface, ListPixabayImagesResponseInterface, ListPostTemplatesRequestInterface, ListPostTemplatesResponseInterface, ListSocialPostsRequestInterface, ListSocialPostsResponseInterface, ListTenorGifsRequestInterface, ListTenorGifsResponseInterface, PartnerListScheduledPostsResponseInterface, PartnerListScheduledSocialPostsRequestInterface, 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';
@@ -114,6 +114,32 @@ export declare class PartnerListScheduledSocialPostsRequestFilters implements i.
114
114
  constructor(kwargs?: i.PartnerListScheduledSocialPostsRequestFiltersInterface);
115
115
  toApiJson(): object;
116
116
  }
117
+ export declare class GenerateCSVForPerformanceStatsRequest implements i.GenerateCSVForPerformanceStatsRequestInterface {
118
+ businessId: string;
119
+ postData: PostData[];
120
+ includeHeaders: string[];
121
+ static fromProto(proto: any): GenerateCSVForPerformanceStatsRequest;
122
+ constructor(kwargs?: i.GenerateCSVForPerformanceStatsRequestInterface);
123
+ toApiJson(): object;
124
+ }
125
+ export declare class GenerateCSVForPerformanceStatsResponse implements i.GenerateCSVForPerformanceStatsResponseInterface {
126
+ generatedId: string;
127
+ static fromProto(proto: any): GenerateCSVForPerformanceStatsResponse;
128
+ constructor(kwargs?: i.GenerateCSVForPerformanceStatsResponseInterface);
129
+ toApiJson(): object;
130
+ }
131
+ export declare class GetGeneratedCSVForPerformanceStatsRequest implements i.GetGeneratedCSVForPerformanceStatsRequestInterface {
132
+ generatedId: string;
133
+ static fromProto(proto: any): GetGeneratedCSVForPerformanceStatsRequest;
134
+ constructor(kwargs?: i.GetGeneratedCSVForPerformanceStatsRequestInterface);
135
+ toApiJson(): object;
136
+ }
137
+ export declare class GetGeneratedCSVForPerformanceStatsResponse implements i.GetGeneratedCSVForPerformanceStatsResponseInterface {
138
+ url: string;
139
+ static fromProto(proto: any): GetGeneratedCSVForPerformanceStatsResponse;
140
+ constructor(kwargs?: i.GetGeneratedCSVForPerformanceStatsResponseInterface);
141
+ toApiJson(): object;
142
+ }
117
143
  export declare class GetMultiSocialPostStatsRequest implements i.GetMultiSocialPostStatsRequestInterface {
118
144
  internalPostIds: string[];
119
145
  businessId: string;
@@ -300,6 +326,27 @@ export declare class PartnerListScheduledSocialPostsRequest implements i.Partner
300
326
  constructor(kwargs?: i.PartnerListScheduledSocialPostsRequestInterface);
301
327
  toApiJson(): object;
302
328
  }
329
+ export declare class PostData implements i.PostDataInterface {
330
+ postId: string;
331
+ reach: number;
332
+ engagement: number;
333
+ views: number;
334
+ clicks: number;
335
+ comments: number;
336
+ shares: number;
337
+ reactions: number;
338
+ saves: number;
339
+ likes: number;
340
+ videoViews: number;
341
+ retweets: number;
342
+ favourites: number;
343
+ impressions: number;
344
+ commentsCount: number;
345
+ likeCount: number;
346
+ static fromProto(proto: any): PostData;
347
+ constructor(kwargs?: i.PostDataInterface);
348
+ toApiJson(): object;
349
+ }
303
350
  export declare class RemoveFromMultilocationPostRequest implements i.RemoveFromMultilocationPostRequestInterface {
304
351
  reason: e.RemoveReason;
305
352
  brandId: string;
@@ -361,6 +408,19 @@ export declare class SearchHashtagResponse implements i.SearchHashtagResponseInt
361
408
  constructor(kwargs?: i.SearchHashtagResponseInterface);
362
409
  toApiJson(): object;
363
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
+ }
364
424
  export declare class UpdatePostTemplateRequest implements i.UpdatePostTemplateRequestInterface {
365
425
  accountGroupId: string;
366
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, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, 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';
@@ -0,0 +1,17 @@
1
+ import { GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse } from './objects/';
2
+ import { GenerateCSVForPerformanceStatsRequestInterface, GetGeneratedCSVForPerformanceStatsRequestInterface } from './interfaces/';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { HostService } from '../_generated/host.service';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class PostPerformanceApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ generateCsvForPerformanceStats(r: GenerateCSVForPerformanceStatsRequest | GenerateCSVForPerformanceStatsRequestInterface): Observable<GenerateCSVForPerformanceStatsResponse>;
14
+ getGeneratedCsvForPerformanceStats(r: GetGeneratedCSVForPerformanceStatsRequest | GetGeneratedCSVForPerformanceStatsRequestInterface): Observable<GetGeneratedCSVForPerformanceStatsResponse>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostPerformanceApiService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<PostPerformanceApiService>;
17
+ }
@@ -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
@@ -4,4 +4,5 @@ export { MultilocationPostsService } from './multilocation-posts.service';
4
4
  export { TenorGifsService } from './tenor-gifs.service';
5
5
  export { PixabayImageService } from './pixabay-image.service';
6
6
  export { HashTagsService } from './hashtag.service';
7
- export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest } from './_internal';
7
+ export { PostPerformanceService } from './post-performance.service';
8
+ export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest, PostPerformanceApiService, } from './_internal';
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import { PostData } from './_internal/objects/api';
3
+ import { PostPerformanceApiService } from './_internal/post-performance.api.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PostPerformanceService {
6
+ private postPerformanceApiService;
7
+ constructor(postPerformanceApiService: PostPerformanceApiService);
8
+ generateCSV(businessId: string, postData: PostData[], includeHeaders: string[]): Observable<string>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostPerformanceService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<PostPerformanceService>;
11
+ }
@@ -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,13 +1,13 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.2.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",
10
- "typings": "vendasta-social-posts.d.ts",
10
+ "typings": "index.d.ts",
11
11
  "license": "ISC",
12
12
  "main": "index.js",
13
13
  "module": "fesm2015/vendasta-social-posts.mjs",
@@ -20,7 +20,7 @@
20
20
  "default": "./package.json"
21
21
  },
22
22
  ".": {
23
- "types": "./vendasta-social-posts.d.ts",
23
+ "types": "./index.d.ts",
24
24
  "esm2020": "./esm2020/vendasta-social-posts.mjs",
25
25
  "es2020": "./fesm2020/vendasta-social-posts.mjs",
26
26
  "es2015": "./fesm2015/vendasta-social-posts.mjs",