@vendasta/social-posts 5.9.4 → 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.
Files changed (53) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +4 -4
  2. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  3. package/esm2020/lib/_internal/enums/social-post-v2.enum.mjs +7 -1
  4. package/esm2020/lib/_internal/hash-tags.api.service.mjs +4 -4
  5. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/social-post-v2.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/linkedin.api.service.mjs +4 -4
  9. package/esm2020/lib/_internal/multilocation-post.api.service.mjs +4 -4
  10. package/esm2020/lib/_internal/objects/api-v2.mjs +149 -54
  11. package/esm2020/lib/_internal/objects/api.mjs +294 -295
  12. package/esm2020/lib/_internal/objects/field-mask.mjs +6 -6
  13. package/esm2020/lib/_internal/objects/hashtag.mjs +7 -7
  14. package/esm2020/lib/_internal/objects/index.mjs +2 -2
  15. package/esm2020/lib/_internal/objects/linkedin-v2.mjs +7 -7
  16. package/esm2020/lib/_internal/objects/multilocation-post.mjs +17 -17
  17. package/esm2020/lib/_internal/objects/pixabay-image.mjs +7 -7
  18. package/esm2020/lib/_internal/objects/social-post-stats.mjs +19 -19
  19. package/esm2020/lib/_internal/objects/social-post-v2.mjs +52 -46
  20. package/esm2020/lib/_internal/objects/social-posts.mjs +53 -53
  21. package/esm2020/lib/_internal/objects/tenor-gif.mjs +19 -19
  22. package/esm2020/lib/_internal/partner-social-posts.api.service.mjs +4 -4
  23. package/esm2020/lib/_internal/pixabay-images.api.service.mjs +4 -4
  24. package/esm2020/lib/_internal/post-performance.api.service.mjs +4 -4
  25. package/esm2020/lib/_internal/post-templates.api.service.mjs +4 -4
  26. package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +10 -5
  27. package/esm2020/lib/_internal/social-posts.api.service.mjs +4 -4
  28. package/esm2020/lib/_internal/tenor-gifs.api.service.mjs +4 -4
  29. package/esm2020/lib/hashtag.service.mjs +4 -4
  30. package/esm2020/lib/multilocation-posts.service.mjs +4 -4
  31. package/esm2020/lib/pixabay-image.service.mjs +4 -4
  32. package/esm2020/lib/post-performance.service.mjs +4 -4
  33. package/esm2020/lib/post-templates.service.mjs +4 -4
  34. package/esm2020/lib/social-post-v2.service.mjs +4 -4
  35. package/esm2020/lib/social-posts.service.mjs +4 -4
  36. package/esm2020/lib/tenor-gifs.service.mjs +4 -4
  37. package/fesm2015/vendasta-social-posts.mjs +1380 -1269
  38. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  39. package/fesm2020/vendasta-social-posts.mjs +1380 -1269
  40. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  41. package/lib/_internal/enums/index.d.ts +1 -1
  42. package/lib/_internal/enums/social-post-v2.enum.d.ts +5 -0
  43. package/lib/_internal/interfaces/api-v2.interface.d.ts +20 -0
  44. package/lib/_internal/interfaces/index.d.ts +1 -1
  45. package/lib/_internal/interfaces/social-post-v2.interface.d.ts +2 -0
  46. package/lib/_internal/objects/api-v2.d.ts +26 -0
  47. package/lib/_internal/objects/api.d.ts +1 -1
  48. package/lib/_internal/objects/index.d.ts +1 -1
  49. package/lib/_internal/objects/social-post-v2.d.ts +2 -0
  50. package/lib/_internal/social-posts-v2.api.service.d.ts +3 -2
  51. package/lib/social-post-v2.service.d.ts +3 -2
  52. package/package.json +3 -3
  53. package/src/README.md +0 -1
@@ -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>;
@@ -1,11 +1,12 @@
1
1
  import { Observable } from 'rxjs';
2
- import { CreateImageResponse, ImageBlob, SocialPostRequest, SocialPostResponse } from './_internal/objects/api-v2';
2
+ import { CreateImageResponse, ImageBlob, SocialPostResponse } from './_internal/objects/api-v2';
3
3
  import { SocialPostsV2ApiService } from './_internal/social-posts-v2.api.service';
4
+ import { SocialPostRequestInterface } from './_internal/interfaces';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class SocialPostsV2Service {
6
7
  private socialpostV2ApiService;
7
8
  constructor(socialpostV2ApiService: SocialPostsV2ApiService);
8
- scheduleSocialPostV2(socialPost: SocialPostRequest): Observable<SocialPostResponse>;
9
+ scheduleSocialPostV2(socialPost: SocialPostRequestInterface): Observable<SocialPostResponse>;
9
10
  createImage(businessId: string, prompt: string, imageAmount?: number, size?: string): Observable<CreateImageResponse>;
10
11
  getImageByUrl(url: string): Observable<ImageBlob>;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsV2Service, never>;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.9.4",
3
+ "version": "5.11.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^14.0.2",
6
- "@angular/core": "^14.0.2"
5
+ "@angular/common": "^15.1.0",
6
+ "@angular/core": "^15.1.0"
7
7
  },
8
8
  "author": "Vendasta R&D",
9
9
  "description": "SDK to interact with the social-posts service",
package/src/README.md DELETED
@@ -1 +0,0 @@
1
- # social-posts SDK