@vendasta/social-posts 5.4.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,
@@ -262,6 +262,7 @@ export interface SearchHashtagResponseInterface {
262
262
  export interface SuggestMessageRequestInterface {
263
263
  prompt?: string;
264
264
  businessId?: string;
265
+ length?: e.PostLength;
265
266
  }
266
267
  export interface SuggestMessageResponseInterface {
267
268
  message?: 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';
@@ -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;
@@ -411,6 +411,7 @@ export declare class SearchHashtagResponse implements i.SearchHashtagResponseInt
411
411
  export declare class SuggestMessageRequest implements i.SuggestMessageRequestInterface {
412
412
  prompt: string;
413
413
  businessId: string;
414
+ length: e.PostLength;
414
415
  static fromProto(proto: any): SuggestMessageRequest;
415
416
  constructor(kwargs?: i.SuggestMessageRequestInterface);
416
417
  toApiJson(): object;
@@ -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';
@@ -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;
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
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,7 +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>;
11
- suggestMessage(businessId: string, prompt: string): Observable<SuggestMessageResponse>;
12
+ suggestMessage(businessId: string, prompt: string, postLength: PostLength): Observable<SuggestMessageResponse>;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsService, never>;
13
14
  static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsService>;
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.2",
6
6
  "@angular/core": "^14.0.2"