@vendasta/social-posts 5.38.0 → 5.39.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 (27) hide show
  1. package/esm2020/lib/_internal/campaign.api.service.mjs +11 -2
  2. package/esm2020/lib/_internal/enums/api-v2.enum.mjs +29 -26
  3. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  4. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/campaign.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/objects/api-v2.mjs +8 -2
  9. package/esm2020/lib/_internal/objects/campaign.mjs +80 -1
  10. package/esm2020/lib/_internal/objects/index.mjs +2 -2
  11. package/esm2020/lib/_internal/objects/social-post-v2.mjs +4 -1
  12. package/fesm2015/vendasta-social-posts.mjs +135 -36
  13. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  14. package/fesm2020/vendasta-social-posts.mjs +135 -36
  15. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  16. package/lib/_internal/campaign.api.service.d.ts +4 -2
  17. package/lib/_internal/enums/api-v2.enum.d.ts +26 -23
  18. package/lib/_internal/enums/index.d.ts +1 -1
  19. package/lib/_internal/interfaces/api-v2.interface.d.ts +3 -1
  20. package/lib/_internal/interfaces/campaign.interface.d.ts +14 -0
  21. package/lib/_internal/interfaces/index.d.ts +1 -1
  22. package/lib/_internal/interfaces/social-post-v2.interface.d.ts +1 -0
  23. package/lib/_internal/objects/api-v2.d.ts +3 -1
  24. package/lib/_internal/objects/campaign.d.ts +23 -0
  25. package/lib/_internal/objects/index.d.ts +1 -1
  26. package/lib/_internal/objects/social-post-v2.d.ts +1 -0
  27. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { CreateCampaignRequest, CreateCampaignResponse, DeleteCampaignRequest, GetCampaignRequest, GetCampaignResponse, UpdateCampaignRequest } from './objects/';
2
- import { CreateCampaignRequestInterface, DeleteCampaignRequestInterface, GetCampaignRequestInterface, UpdateCampaignRequestInterface } from './interfaces/';
1
+ import { CreateCampaignRequest, CreateCampaignResponse, DeleteCampaignRequest, GetCampaignRequest, GetCampaignResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, UpdateCampaignIdRequest, UpdateCampaignRequest } from './objects/';
2
+ import { CreateCampaignRequestInterface, DeleteCampaignRequestInterface, GetCampaignRequestInterface, GetMultiCampaignsRequestInterface, UpdateCampaignIdRequestInterface, UpdateCampaignRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -12,6 +12,8 @@ export declare class CampaignApiService {
12
12
  get(r: GetCampaignRequest | GetCampaignRequestInterface): Observable<GetCampaignResponse>;
13
13
  update(r: UpdateCampaignRequest | UpdateCampaignRequestInterface): Observable<HttpResponse<null>>;
14
14
  delete(r: DeleteCampaignRequest | DeleteCampaignRequestInterface): Observable<HttpResponse<null>>;
15
+ getMulti(r: GetMultiCampaignsRequest | GetMultiCampaignsRequestInterface): Observable<GetMultiCampaignsResponse>;
16
+ updateCampaignId(r: UpdateCampaignIdRequest | UpdateCampaignIdRequestInterface): Observable<HttpResponse<null>>;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<CampaignApiService, never>;
16
18
  static ɵprov: i0.ɵɵInjectableDeclaration<CampaignApiService>;
17
19
  }
@@ -10,30 +10,33 @@ export declare enum GenerateType {
10
10
  BLOG = 2
11
11
  }
12
12
  export declare enum Network {
13
- FACEBOOK = 0,
14
- INSTAGRAM = 1,
15
- LINKEDIN = 2,
16
- TWITTER = 3,
17
- GMB = 4,
18
- TIKOTOK = 5,
19
- YOUTUBE = 6,
20
- CUSTOM_FEED = 7,
21
- WORDPRESS = 8
13
+ INVALID_NETWORK = 0,
14
+ FACEBOOK = 1,
15
+ INSTAGRAM = 2,
16
+ LINKEDIN = 3,
17
+ TWITTER = 4,
18
+ GMB = 5,
19
+ TIKTOK = 6,
20
+ YOUTUBE = 7,
21
+ CUSTOM_FEED = 8,
22
+ WORDPRESS = 9
22
23
  }
23
- export declare enum PostType {
24
- DRAFT = 0,
25
- SCHEDULED = 1,
26
- PUBLISHED = 2
24
+ export declare enum PostCategory {
25
+ INVALID_CATEGORY = 0,
26
+ DRAFT = 1,
27
+ SCHEDULED = 2,
28
+ PUBLISHED = 3
27
29
  }
28
30
  export declare enum Tone {
29
- DEFAULT = 0,
30
- FRIENDLY = 1,
31
- LUXURIOUS = 2,
32
- PROFESSIONAL = 3,
33
- RELAXED = 4,
34
- BOLD = 5,
35
- ADVENTUROUS = 6,
36
- WITTY = 7,
37
- PERSUASIVE = 8,
38
- EMPATHETIC = 9
31
+ INVALID_TONE = 0,
32
+ DEFAULT = 1,
33
+ FRIENDLY = 2,
34
+ LUXURIOUS = 3,
35
+ PROFESSIONAL = 4,
36
+ RELAXED = 5,
37
+ BOLD = 6,
38
+ ADVENTUROUS = 7,
39
+ WITTY = 8,
40
+ PERSUASIVE = 9,
41
+ EMPATHETIC = 10
39
42
  }
@@ -2,6 +2,6 @@ export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength,
2
2
  export { RemoveReason, } from './multilocation-post.enum';
3
3
  export { PostStatusV2, PostTypeV2, YoutubeCustomizationV2PrivacyStatusV2, } from './social-post-v2.enum';
4
4
  export { MediaType, } from './linkedin-v2.enum';
5
- export { ContentLength, GenerateType, Network, Tone, } from './api-v2.enum';
5
+ export { ContentLength, GenerateType, Network, PostCategory, Tone, } from './api-v2.enum';
6
6
  export { ActionType, } from './chat-bot.enum';
7
7
  export { Role, } from './chat-bot-v2.enum';
@@ -11,7 +11,7 @@ export interface AiInstructionsInterface {
11
11
  }
12
12
  export interface BlogPostCampaignInterface {
13
13
  blogPostId?: string;
14
- blogPostType?: e.PostType;
14
+ blogPostType?: e.PostCategory;
15
15
  }
16
16
  export interface CreateCommonAiInstructionsRequestInterface {
17
17
  businessId?: string;
@@ -66,6 +66,7 @@ export interface GenerateBlogPostCampaignRequestInterface {
66
66
  businessId?: string;
67
67
  networkType?: e.Network[];
68
68
  blogCampaign?: BlogPostCampaignInterface;
69
+ partnerId?: string;
69
70
  }
70
71
  export interface GenerateBlogPostCampaignResponseInterface {
71
72
  posts?: PostsInterface[];
@@ -83,6 +84,7 @@ export interface GeneratePostCampaignRequestInterface {
83
84
  businessId?: string;
84
85
  networkType?: e.Network[];
85
86
  postGeneration?: PostsGenerationInterface;
87
+ partnerId?: string;
86
88
  }
87
89
  export interface GeneratePostCampaignResponseInterface {
88
90
  postList?: PostListInterface;
@@ -1,3 +1,4 @@
1
+ import * as e from '../enums';
1
2
  export interface CampaignInterface {
2
3
  campaignName?: string;
3
4
  businessId?: string;
@@ -23,6 +24,19 @@ export interface GetCampaignRequestInterface {
23
24
  export interface GetCampaignResponseInterface {
24
25
  campaign?: CampaignInterface;
25
26
  }
27
+ export interface GetMultiCampaignsRequestInterface {
28
+ businessId?: string;
29
+ campaignId?: string[];
30
+ }
31
+ export interface GetMultiCampaignsResponseInterface {
32
+ campaigns?: CampaignInterface[];
33
+ }
34
+ export interface UpdateCampaignIdRequestInterface {
35
+ campaignId?: string;
36
+ businessId?: string;
37
+ blogPostId?: string;
38
+ type?: e.PostCategory;
39
+ }
26
40
  export interface UpdateCampaignRequestInterface {
27
41
  campaignId?: string;
28
42
  name?: string;
@@ -15,4 +15,4 @@ export { ActionInterface, EndChatRequestInterface, SendMessageRequestInterface,
15
15
  export { ChatMessageInterface, SendMessageV2RequestInterface, SendMessageV2ResponseInterface, } from './chat-bot-v2.interface';
16
16
  export { BlogConnectionInterface, CreateBlogConnectionRequestInterface, CreateBlogConnectionResponseInterface, DeleteBlogConnectionRequestInterface, GetBlogConnectionRequestInterface, GetBlogConnectionResponseInterface, ListBlogConnectionRequestInterface, ListBlogConnectionResponseInterface, UpdateBlogConnectionRequestInterface, } from './blog-connection.interface';
17
17
  export { AuthorInterface, AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogPostInterface, BlogVideoInterface, CategoryInterface, CategoryRequestInterface, CategoryResponseInterface, DeleteBlogPostRequestInterface, GetMultiBlogPostsRequestInterface, GetMultiBlogPostsResponseInterface, MediaPropertyInterface, PublishPostRequestInterface, PublishPostResponseInterface, RepostBlogPostRequestInterface, StatusRequestInterface, StatusResponseInterface, UpdateBlogPostRequestInterface, } from './wordpress-plugin.interface';
18
- export { CampaignInterface, CreateCampaignRequestInterface, CreateCampaignResponseInterface, DeleteCampaignRequestInterface, GetCampaignRequestInterface, GetCampaignResponseInterface, UpdateCampaignRequestInterface, } from './campaign.interface';
18
+ export { CampaignInterface, CreateCampaignRequestInterface, CreateCampaignResponseInterface, DeleteCampaignRequestInterface, GetCampaignRequestInterface, GetCampaignResponseInterface, GetMultiCampaignsRequestInterface, GetMultiCampaignsResponseInterface, UpdateCampaignIdRequestInterface, UpdateCampaignRequestInterface, } from './campaign.interface';
@@ -54,6 +54,7 @@ export interface SocialPostV2Interface {
54
54
  userId?: string;
55
55
  shareId?: string;
56
56
  tiktokCustomization?: TikTokCustomizationV2Interface;
57
+ campaignId?: string;
57
58
  }
58
59
  export interface TikTokCustomizationV2Interface {
59
60
  allowComment?: boolean;
@@ -16,7 +16,7 @@ export declare class AiInstructions implements i.AiInstructionsInterface {
16
16
  }
17
17
  export declare class BlogPostCampaign implements i.BlogPostCampaignInterface {
18
18
  blogPostId: string;
19
- blogPostType: e.PostType;
19
+ blogPostType: e.PostCategory;
20
20
  static fromProto(proto: any): BlogPostCampaign;
21
21
  constructor(kwargs?: i.BlogPostCampaignInterface);
22
22
  toApiJson(): object;
@@ -98,6 +98,7 @@ export declare class GenerateBlogPostCampaignRequest implements i.GenerateBlogPo
98
98
  businessId: string;
99
99
  networkType: e.Network[];
100
100
  blogCampaign: BlogPostCampaign;
101
+ partnerId: string;
101
102
  static fromProto(proto: any): GenerateBlogPostCampaignRequest;
102
103
  constructor(kwargs?: i.GenerateBlogPostCampaignRequestInterface);
103
104
  toApiJson(): object;
@@ -127,6 +128,7 @@ export declare class GeneratePostCampaignRequest implements i.GeneratePostCampai
127
128
  businessId: string;
128
129
  networkType: e.Network[];
129
130
  postGeneration: PostsGeneration;
131
+ partnerId: string;
130
132
  static fromProto(proto: any): GeneratePostCampaignRequest;
131
133
  constructor(kwargs?: i.GeneratePostCampaignRequestInterface);
132
134
  toApiJson(): object;
@@ -1,4 +1,5 @@
1
1
  import * as i from '../interfaces';
2
+ import * as e from '../enums';
2
3
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
4
  export declare class Campaign implements i.CampaignInterface {
4
5
  campaignName: string;
@@ -43,6 +44,28 @@ export declare class GetCampaignResponse implements i.GetCampaignResponseInterfa
43
44
  constructor(kwargs?: i.GetCampaignResponseInterface);
44
45
  toApiJson(): object;
45
46
  }
47
+ export declare class GetMultiCampaignsRequest implements i.GetMultiCampaignsRequestInterface {
48
+ businessId: string;
49
+ campaignId: string[];
50
+ static fromProto(proto: any): GetMultiCampaignsRequest;
51
+ constructor(kwargs?: i.GetMultiCampaignsRequestInterface);
52
+ toApiJson(): object;
53
+ }
54
+ export declare class GetMultiCampaignsResponse implements i.GetMultiCampaignsResponseInterface {
55
+ campaigns: Campaign[];
56
+ static fromProto(proto: any): GetMultiCampaignsResponse;
57
+ constructor(kwargs?: i.GetMultiCampaignsResponseInterface);
58
+ toApiJson(): object;
59
+ }
60
+ export declare class UpdateCampaignIdRequest implements i.UpdateCampaignIdRequestInterface {
61
+ campaignId: string;
62
+ businessId: string;
63
+ blogPostId: string;
64
+ type: e.PostCategory;
65
+ static fromProto(proto: any): UpdateCampaignIdRequest;
66
+ constructor(kwargs?: i.UpdateCampaignIdRequestInterface);
67
+ toApiJson(): object;
68
+ }
46
69
  export declare class UpdateCampaignRequest implements i.UpdateCampaignRequestInterface {
47
70
  campaignId: string;
48
71
  name: string;
@@ -15,4 +15,4 @@ export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartC
15
15
  export { ChatMessage, SendMessageV2Request, SendMessageV2Response, } from './chat-bot-v2';
16
16
  export { BlogConnection, CreateBlogConnectionRequest, CreateBlogConnectionResponse, DeleteBlogConnectionRequest, GetBlogConnectionRequest, GetBlogConnectionResponse, ListBlogConnectionRequest, ListBlogConnectionResponse, UpdateBlogConnectionRequest, } from './blog-connection';
17
17
  export { Author, AuthorsRequest, AuthorsResponse, BlogImage, BlogPost, BlogVideo, Category, CategoryRequest, CategoryResponse, DeleteBlogPostRequest, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, MediaProperty, PublishPostRequest, PublishPostResponse, RepostBlogPostRequest, StatusRequest, StatusResponse, UpdateBlogPostRequest, } from './wordpress-plugin';
18
- export { Campaign, CreateCampaignRequest, CreateCampaignResponse, DeleteCampaignRequest, GetCampaignRequest, GetCampaignResponse, UpdateCampaignRequest, } from './campaign';
18
+ export { Campaign, CreateCampaignRequest, CreateCampaignResponse, DeleteCampaignRequest, GetCampaignRequest, GetCampaignResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, UpdateCampaignIdRequest, UpdateCampaignRequest, } from './campaign';
@@ -77,6 +77,7 @@ export declare class SocialPostV2 implements i.SocialPostV2Interface {
77
77
  userId: string;
78
78
  shareId: string;
79
79
  tiktokCustomization: TikTokCustomizationV2;
80
+ campaignId: string;
80
81
  static fromProto(proto: any): SocialPostV2;
81
82
  constructor(kwargs?: i.SocialPostV2Interface);
82
83
  toApiJson(): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.38.0",
3
+ "version": "5.39.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"