@vendasta/social-posts 5.4.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.
@@ -421,6 +421,11 @@ var SocialPostDeletionStatus;
421
421
  SocialPostDeletionStatus[SocialPostDeletionStatus["FAILED"] = 1] = "FAILED";
422
422
  SocialPostDeletionStatus[SocialPostDeletionStatus["IN_PROGRESS"] = 2] = "IN_PROGRESS";
423
423
  })(SocialPostDeletionStatus || (SocialPostDeletionStatus = {}));
424
+ var PostLength;
425
+ (function (PostLength) {
426
+ PostLength[PostLength["SHORT_FORM"] = 0] = "SHORT_FORM";
427
+ PostLength[PostLength["LONG_FORM"] = 1] = "LONG_FORM";
428
+ })(PostLength || (PostLength = {}));
424
429
  var PostingStatus;
425
430
  (function (PostingStatus) {
426
431
  PostingStatus[PostingStatus["POSTING_IN_PROGRESS"] = 0] = "POSTING_IN_PROGRESS";
@@ -2450,6 +2455,9 @@ class SuggestMessageRequest {
2450
2455
  static fromProto(proto) {
2451
2456
  let m = new SuggestMessageRequest();
2452
2457
  m = Object.assign(m, proto);
2458
+ if (proto.length) {
2459
+ m.length = enumStringToValue(PostLength, proto.length);
2460
+ }
2453
2461
  return m;
2454
2462
  }
2455
2463
  toApiJson() {
@@ -2460,6 +2468,9 @@ class SuggestMessageRequest {
2460
2468
  if (typeof this.businessId !== 'undefined') {
2461
2469
  toReturn['businessId'] = this.businessId;
2462
2470
  }
2471
+ if (typeof this.length !== 'undefined') {
2472
+ toReturn['length'] = this.length;
2473
+ }
2463
2474
  return toReturn;
2464
2475
  }
2465
2476
  }
@@ -2656,8 +2667,8 @@ class SocialPostsService {
2656
2667
  const req = new GetScheduledPostCountRequest({ partnerId: partnerId, businessId: businessId, socialServiceIds: socialServiceIds });
2657
2668
  return this.socialPostsApiService.getScheduledPostCount(req);
2658
2669
  }
2659
- suggestMessage(businessId, prompt) {
2660
- const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt });
2670
+ suggestMessage(businessId, prompt, postLength) {
2671
+ const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt, length: postLength });
2661
2672
  return this.socialPostsApiService.suggestMessage(req);
2662
2673
  }
2663
2674
  }
@@ -3176,5 +3187,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
3176
3187
  * Generated bundle index. Do not edit.
3177
3188
  */
3178
3189
 
3179
- export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, HashTagsService, ListMultilocationPostsForBrandRequest, Location, MultilocationPost, MultilocationPostApiService, MultilocationPostsService, PixabayImageService, PostPerformanceApiService, PostPerformanceService, PostTemplatesService, PostingStatus, RemoveReason, SocialPostsService, TenorGifsService };
3190
+ export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, HashTagsService, ListMultilocationPostsForBrandRequest, Location, MultilocationPost, MultilocationPostApiService, MultilocationPostsService, PixabayImageService, PostLength, PostPerformanceApiService, PostPerformanceService, PostTemplatesService, PostingStatus, RemoveReason, SocialPostsService, TenorGifsService };
3180
3191
  //# sourceMappingURL=vendasta-social-posts.mjs.map