@vendasta/social-posts 5.10.0 → 5.11.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,4 +1,4 @@
1
1
  export { RemoveReason, } from './multilocation-post.enum';
2
2
  export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength, PostType, PostingStatus, SocialPostService, TemplateType, } from './social-posts.enum';
3
- export { PostType as PostTypeV2, } from './social-post-v2.enum';
3
+ export { PostStatus, PostType as PostTypeV2, } from './social-post-v2.enum';
4
4
  export { MediaType, } from './linkedin-v2.enum';
@@ -1,3 +1,8 @@
1
+ export declare enum PostStatus {
2
+ POST_STATUS_INVALID = 0,
3
+ POST_STATUS_SUCCESS = 1,
4
+ POST_STATUS_ERROR = 2
5
+ }
1
6
  export declare enum PostType {
2
7
  POST_TYPE_INVALID = 0,
3
8
  POST_TYPE_IMAGE = 1,
@@ -1,5 +1,6 @@
1
1
  import { MediaInterface } from './linkedin-v2.interface';
2
2
  import { SocialPostInterface, MetadataInterface } from './social-post-v2.interface';
3
+ import * as e from '../enums';
3
4
  export interface CreateImageRequestInterface {
4
5
  businessId?: string;
5
6
  prompt?: string;
@@ -37,6 +38,8 @@ export interface SocialPostOutputInterface {
37
38
  internalPostId?: string;
38
39
  socialPost?: SocialPostInterface;
39
40
  metadata?: MetadataInterface[];
41
+ status?: e.PostStatus;
42
+ statusMessage?: string;
40
43
  }
41
44
  export interface SocialPostRequestInterface {
42
45
  socialPost?: SocialPostInterface[];
@@ -44,3 +47,20 @@ export interface SocialPostRequestInterface {
44
47
  export interface SocialPostResponseInterface {
45
48
  socialPost?: SocialPostOutputInterface[];
46
49
  }
50
+ export interface UpdateSocialPostRequestInterface {
51
+ socialPost?: SocialPostInterface;
52
+ isError?: boolean;
53
+ errors?: string;
54
+ errorCategory?: string;
55
+ postId?: string;
56
+ metadata?: MetadataInterface[];
57
+ permalink?: string;
58
+ }
59
+ export interface UpdateSocialPostResponseInterface {
60
+ socialPost?: SocialPostInterface;
61
+ isError?: boolean;
62
+ errors?: string;
63
+ errorCategory?: string;
64
+ postId?: string;
65
+ metadata?: MetadataInterface[];
66
+ }
@@ -8,4 +8,4 @@ export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterf
8
8
  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';
9
9
  export { LinkInterface, MetadataInterface, PostActionInterface, PostContentInterface, PostCustomizationInterface, PostEventInterface, PostMediaInterface, SocialPostInterface as SocialPostInterfaceV2, } from './social-post-v2.interface';
10
10
  export { MediaInterface, } from './linkedin-v2.interface';
11
- export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, } from './api-v2.interface';
11
+ export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, } from './api-v2.interface';
@@ -19,6 +19,8 @@ export interface PostContentInterface {
19
19
  postText?: string;
20
20
  media?: PostMediaInterface[];
21
21
  link?: LinkInterface[];
22
+ description?: string;
23
+ title?: string;
22
24
  }
23
25
  export interface PostCustomizationInterface {
24
26
  event?: PostEventInterface;
@@ -1,6 +1,7 @@
1
1
  import * as i from '../interfaces';
2
2
  import { Media } from './linkedin-v2';
3
3
  import { SocialPost, Metadata } from './social-post-v2';
4
+ import * as e from '../enums';
4
5
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
6
  export declare class CreateImageRequest implements i.CreateImageRequestInterface {
6
7
  businessId: string;
@@ -63,6 +64,8 @@ export declare class SocialPostOutput implements i.SocialPostOutputInterface {
63
64
  internalPostId: string;
64
65
  socialPost: SocialPost;
65
66
  metadata: Metadata[];
67
+ status: e.PostStatus;
68
+ statusMessage: string;
66
69
  static fromProto(proto: any): SocialPostOutput;
67
70
  constructor(kwargs?: i.SocialPostOutputInterface);
68
71
  toApiJson(): object;
@@ -79,3 +82,26 @@ export declare class SocialPostResponse implements i.SocialPostResponseInterface
79
82
  constructor(kwargs?: i.SocialPostResponseInterface);
80
83
  toApiJson(): object;
81
84
  }
85
+ export declare class UpdateSocialPostRequest implements i.UpdateSocialPostRequestInterface {
86
+ socialPost: SocialPost;
87
+ isError: boolean;
88
+ errors: string;
89
+ errorCategory: string;
90
+ postId: string;
91
+ metadata: Metadata[];
92
+ permalink: string;
93
+ static fromProto(proto: any): UpdateSocialPostRequest;
94
+ constructor(kwargs?: i.UpdateSocialPostRequestInterface);
95
+ toApiJson(): object;
96
+ }
97
+ export declare class UpdateSocialPostResponse implements i.UpdateSocialPostResponseInterface {
98
+ socialPost: SocialPost;
99
+ isError: boolean;
100
+ errors: string;
101
+ errorCategory: string;
102
+ postId: string;
103
+ metadata: Metadata[];
104
+ static fromProto(proto: any): UpdateSocialPostResponse;
105
+ constructor(kwargs?: i.UpdateSocialPostResponseInterface);
106
+ toApiJson(): object;
107
+ }
@@ -4,7 +4,7 @@ import { Hashtag } from './hashtag';
4
4
  import { Location, MultilocationPost, MultilocationPostError } from './multilocation-post';
5
5
  import { MediaEntry, MetaData, PostTemplate, SocialPostData, SchedulePostStatus } from './social-posts';
6
6
  import { PixabayImage } from './pixabay-image';
7
- import { SocialPost } from './social-posts';
7
+ import { SocialPost } from './social-post-v2';
8
8
  import { SocialPostStats } from './social-post-stats';
9
9
  import { TenorGif } from './tenor-gif';
10
10
  import * as e from '../enums';
@@ -8,4 +8,4 @@ export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, Schedul
8
8
  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';
9
9
  export { Link, Metadata, PostAction, PostContent, PostCustomization, PostEvent, PostMedia, SocialPost as SocialPostV2, } from './social-post-v2';
10
10
  export { Media, } from './linkedin-v2';
11
- export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageBlob, ImageCreated, ImageUrl, MediaUploadRequest, MediaUploadResponse, SocialPostOutput, SocialPostRequest, SocialPostResponse, } from './api-v2';
11
+ export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageBlob, ImageCreated, ImageUrl, MediaUploadRequest, MediaUploadResponse, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, } from './api-v2';
@@ -30,6 +30,8 @@ export declare class PostContent implements i.PostContentInterface {
30
30
  postText: string;
31
31
  media: PostMedia[];
32
32
  link: Link[];
33
+ description: string;
34
+ title: string;
33
35
  static fromProto(proto: any): PostContent;
34
36
  constructor(kwargs?: i.PostContentInterface);
35
37
  toApiJson(): object;
@@ -1,5 +1,5 @@
1
- import { CreateImageRequest, CreateImageResponse, ImageBlob, ImageUrl, SocialPostRequest, SocialPostResponse } from './objects/';
2
- import { CreateImageRequestInterface, ImageUrlInterface, SocialPostRequestInterface } from './interfaces/';
1
+ import { CreateImageRequest, CreateImageResponse, ImageBlob, ImageUrl, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse } from './objects/';
2
+ import { CreateImageRequestInterface, ImageUrlInterface, SocialPostRequestInterface, UpdateSocialPostRequestInterface } from './interfaces/';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
@@ -11,6 +11,7 @@ export declare class SocialPostsV2ApiService {
11
11
  constructor(http: HttpClient, hostService: HostService);
12
12
  private apiOptions;
13
13
  scheduleSocialPosts(r: SocialPostRequest | SocialPostRequestInterface): Observable<SocialPostResponse>;
14
+ updateSocialPosts(r: UpdateSocialPostRequest | UpdateSocialPostRequestInterface): Observable<UpdateSocialPostResponse>;
14
15
  createImages(r: CreateImageRequest | CreateImageRequestInterface): Observable<CreateImageResponse>;
15
16
  getImageByUrl(r: ImageUrl | ImageUrlInterface): Observable<ImageBlob>;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsV2ApiService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.10.0",
3
+ "version": "5.11.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"