@vendasta/social-posts 5.45.4 → 5.45.6
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.
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/enums/multilocation-post.enum.mjs +9 -1
- package/esm2020/lib/_internal/enums/social-post-v2.enum.mjs +3 -1
- package/esm2020/lib/_internal/enums/social-posts.enum.mjs +3 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/multilocation-post.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +29 -2
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/esm2020/lib/_internal/objects/multilocation-post.mjs +36 -1
- package/esm2020/lib/multilocation-posts.service.mjs +7 -5
- package/fesm2015/vendasta-social-posts.mjs +81 -5
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +81 -5
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/enums/multilocation-post.enum.d.ts +7 -0
- package/lib/_internal/enums/social-post-v2.enum.d.ts +3 -1
- package/lib/_internal/enums/social-posts.enum.d.ts +3 -1
- package/lib/_internal/interfaces/api.interface.d.ts +7 -1
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/multilocation-post.interface.d.ts +6 -0
- package/lib/_internal/objects/api.d.ts +7 -1
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/multilocation-post.d.ts +9 -0
- package/lib/multilocation-posts.service.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CallToActionCallToActionType, SocialPostDeletionStatus, MLPostState, MessageLength, PostType, PostingStatus, YoutubeCustomizationPrivacyStatus, SocialPostService, TemplateType, } from './social-posts.enum';
|
|
2
|
-
export { RemoveReason, } from './multilocation-post.enum';
|
|
2
|
+
export { CustomizationStatus, RemoveReason, } from './multilocation-post.enum';
|
|
3
3
|
export { BulkPostStatus, } from './api.enum';
|
|
4
4
|
export { PostStatusV2, PostTypeV2, YoutubeCustomizationV2PrivacyStatusV2, } from './social-post-v2.enum';
|
|
5
5
|
export { MediaType, } from './linkedin-v2.enum';
|
|
@@ -10,7 +10,9 @@ export declare enum PostTypeV2 {
|
|
|
10
10
|
POST_TYPE_GIF = 3,
|
|
11
11
|
POST_TYPE_MULTI_MEDIA = 4,
|
|
12
12
|
POST_TYPE_TEXT = 5,
|
|
13
|
-
POST_TYPE_STORIES = 6
|
|
13
|
+
POST_TYPE_STORIES = 6,
|
|
14
|
+
POST_TYPE_IMAGE_STORY = 7,
|
|
15
|
+
POST_TYPE_VIDEO_STORY = 8
|
|
14
16
|
}
|
|
15
17
|
export declare enum YoutubeCustomizationV2PrivacyStatusV2 {
|
|
16
18
|
YOUTUBE_PRIVACY_STATUS_INVALID = 0,
|
|
@@ -30,7 +30,9 @@ export declare enum PostType {
|
|
|
30
30
|
POST_TYPE_REEL = 4,
|
|
31
31
|
POST_TYPE_CAROUSEL = 5,
|
|
32
32
|
POST_TYPE_STORIES = 6,
|
|
33
|
-
POST_TYPE_TEXT = 7
|
|
33
|
+
POST_TYPE_TEXT = 7,
|
|
34
|
+
POST_TYPE_IMAGE_STORY = 8,
|
|
35
|
+
POST_TYPE_VIDEO_STORY = 9
|
|
34
36
|
}
|
|
35
37
|
export declare enum PostingStatus {
|
|
36
38
|
POSTING_IN_PROGRESS = 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldMaskInterface } from './field-mask.interface';
|
|
2
2
|
import { HashtagInterface } from './hashtag.interface';
|
|
3
|
-
import { LocationInterface, BulkUploadMultilocationInterface, MultilocationPostErrorInterface, PostCustomizationInterface, MultilocationPostInterface, MultilocationServicesInterface } from './multilocation-post.interface';
|
|
3
|
+
import { LocationInterface, BulkUploadMultilocationInterface, MultilocationPostErrorInterface, PostCustomizationInterface, PostCustomizationByLocationInterface, MultilocationPostInterface, MultilocationServicesInterface } from './multilocation-post.interface';
|
|
4
4
|
import { MediaEntryInterface, MetaDataInterface, SSIDPostTypeInterface, MLPostCategoryInterface, YoutubeCustomizationInterface, SocialPostInterface, PostTemplateInterface, SocialPostDataInterface, SchedulePostStatusInterface } from './social-posts.interface';
|
|
5
5
|
import { PexelsImageInterface } from './pexels-image.interface';
|
|
6
6
|
import { PixabayImageInterface } from './pixabay-image.interface';
|
|
@@ -11,6 +11,7 @@ export interface BulkCreateMultilocationPostRequestInterface {
|
|
|
11
11
|
brandId?: string;
|
|
12
12
|
locations?: LocationInterface[];
|
|
13
13
|
request?: BulkUploadMultilocationInterface[];
|
|
14
|
+
mlPosts?: CreateMultilocationPostRequestInterface[];
|
|
14
15
|
}
|
|
15
16
|
export interface BulkCreateMultilocationPostResponseInterface {
|
|
16
17
|
status?: e.BulkPostStatus;
|
|
@@ -31,6 +32,9 @@ export interface CreateMultilocationPostRequestInterface {
|
|
|
31
32
|
linkShortCode?: string;
|
|
32
33
|
postTypes?: SSIDPostTypeInterface[];
|
|
33
34
|
postCategory?: MLPostCategoryInterface;
|
|
35
|
+
postCustomizationByLocation?: PostCustomizationByLocationInterface;
|
|
36
|
+
partnerId?: string;
|
|
37
|
+
multilocationId?: string;
|
|
34
38
|
}
|
|
35
39
|
export interface CreateMultilocationPostResponseInterface {
|
|
36
40
|
post?: MultilocationPostInterface;
|
|
@@ -96,6 +100,8 @@ export interface EditMultilocationPostRequestInterface {
|
|
|
96
100
|
newServices?: MultilocationServicesInterface[];
|
|
97
101
|
deletedServices?: MultilocationServicesInterface[];
|
|
98
102
|
postCategory?: MLPostCategoryInterface;
|
|
103
|
+
postCustomizationByLocation?: PostCustomizationByLocationInterface;
|
|
104
|
+
partnerId?: string;
|
|
99
105
|
}
|
|
100
106
|
export interface EditMultilocationPostResponseInterface {
|
|
101
107
|
post?: MultilocationPostInterface;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
2
2
|
export { HashtagInterface, } from './hashtag.interface';
|
|
3
3
|
export { AuthorInterface, BlogPostCustomizationInterface, CallToActionInterface, CategoryInterface, ErrorInterface, EventInterface, MLPostCategoryInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialCampaignInterface, SocialPostInterface, SocialPostDataInterface, TikTokCustomizationInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
|
|
4
|
-
export { BulkUploadMultilocationInterface, LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, MultilocationServicesInterface, PostActionInterface, PostCustomizationInterface, PostEventInterface, } from './multilocation-post.interface';
|
|
4
|
+
export { BulkUploadMultilocationInterface, LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, MultilocationServicesInterface, PostActionInterface, PostCustomizationInterface, PostCustomizationByLocationInterface, PostEventInterface, } from './multilocation-post.interface';
|
|
5
5
|
export { PixabayImageInterface, } from './pixabay-image.interface';
|
|
6
6
|
export { FacebookPostStatsInterface, SocialPostStatsInterface, TwitterPostStatsInterface, } from './social-post-stats.interface';
|
|
7
7
|
export { TenorGifMediaMapEntryInterface, TenorGifInterface, TenorMediaObjectInterface, } from './tenor-gif.interface';
|
|
@@ -15,5 +15,5 @@ export { AiInstructionsInterface, BlogPostCampaignInterface, CreateCommonAiInstr
|
|
|
15
15
|
export { ActionInterface, EndChatRequestInterface, SendMessageRequestInterface, SendMessageResponseInterface, StartChatRequestInterface, StartChatResponseInterface, } from './chat-bot.interface';
|
|
16
16
|
export { ChatMessageInterface, SendMessageV2RequestInterface, SendMessageV2ResponseInterface, } from './chat-bot-v2.interface';
|
|
17
17
|
export { BlogConnectionInterface, CreateBlogConnectionRequestInterface, CreateBlogConnectionResponseInterface, DeleteBlogConnectionRequestInterface, GetBlogConnectionRequestInterface, GetBlogConnectionResponseInterface, ListBlogConnectionRequestInterface, ListBlogConnectionResponseInterface, UpdateBlogConnectionRequestInterface, } from './blog-connection.interface';
|
|
18
|
-
export { AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogPostInterface, BlogVideoInterface, CategoryRequestInterface, CategoryResponseInterface, DeleteBlogPostRequestInterface, GetMultiBlogPostsRequestInterface, GetMultiBlogPostsResponseInterface, MediaPropertyInterface, PublishPostRequestInterface, PublishPostResponseInterface, RepostBlogPostRequestInterface, StatusRequestInterface, StatusResponseInterface, UpdateBlogPostRequestInterface, } from './wordpress-plugin.interface';
|
|
18
|
+
export { AuthorInterface as WordpressAuthorInterface, AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogPostInterface, BlogVideoInterface, CategoryInterface as WordpressCategoryInterface, CategoryRequestInterface, CategoryResponseInterface, DeleteBlogPostRequestInterface, GetMultiBlogPostsRequestInterface, GetMultiBlogPostsResponseInterface, MediaPropertyInterface, PublishPostRequestInterface, PublishPostResponseInterface, RepostBlogPostRequestInterface, StatusRequestInterface, StatusResponseInterface, UpdateBlogPostRequestInterface, } from './wordpress-plugin.interface';
|
|
19
19
|
export { CampaignInterface, CreateCampaignRequestInterface, CreateCampaignResponseInterface, DeleteCampaignRequestInterface, GetCampaignRequestInterface, GetCampaignResponseInterface, GetMultiCampaignsRequestInterface, GetMultiCampaignsResponseInterface, UpdateCampaignIdRequestInterface, UpdateCampaignRequestInterface, } from './campaign.interface';
|
|
@@ -39,6 +39,8 @@ export interface MultilocationPostInterface {
|
|
|
39
39
|
postTypes?: SSIDPostTypeInterface[];
|
|
40
40
|
postCategory?: MLPostCategoryInterface;
|
|
41
41
|
postState?: e.MLPostState;
|
|
42
|
+
postCustomizationByLocation?: PostCustomizationByLocationInterface;
|
|
43
|
+
partnerId?: string;
|
|
42
44
|
}
|
|
43
45
|
export interface MultilocationPostErrorInterface {
|
|
44
46
|
socialServiceId?: string;
|
|
@@ -57,6 +59,10 @@ export interface PostCustomizationInterface {
|
|
|
57
59
|
event?: PostEventInterface;
|
|
58
60
|
action?: PostActionInterface;
|
|
59
61
|
}
|
|
62
|
+
export interface PostCustomizationByLocationInterface {
|
|
63
|
+
isCustomizedByLocation?: boolean;
|
|
64
|
+
customizationStatus?: e.CustomizationStatus;
|
|
65
|
+
}
|
|
60
66
|
export interface PostEventInterface {
|
|
61
67
|
title?: string;
|
|
62
68
|
start?: Date;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
2
|
import { FieldMask } from './field-mask';
|
|
3
3
|
import { Hashtag } from './hashtag';
|
|
4
|
-
import { Location, BulkUploadMultilocation, MultilocationPostError, PostCustomization, MultilocationPost, MultilocationServices } from './multilocation-post';
|
|
4
|
+
import { Location, BulkUploadMultilocation, MultilocationPostError, PostCustomization, PostCustomizationByLocation, MultilocationPost, MultilocationServices } from './multilocation-post';
|
|
5
5
|
import { MediaEntry, MetaData, SSIDPostType, MLPostCategory, YoutubeCustomization, SocialPost, PostTemplate, SocialPostData, SchedulePostStatus } from './social-posts';
|
|
6
6
|
import { PexelsImage } from './pexels-image';
|
|
7
7
|
import { PixabayImage } from './pixabay-image';
|
|
@@ -13,6 +13,7 @@ export declare class BulkCreateMultilocationPostRequest implements i.BulkCreateM
|
|
|
13
13
|
brandId: string;
|
|
14
14
|
locations: Location[];
|
|
15
15
|
request: BulkUploadMultilocation[];
|
|
16
|
+
mlPosts: CreateMultilocationPostRequest[];
|
|
16
17
|
static fromProto(proto: any): BulkCreateMultilocationPostRequest;
|
|
17
18
|
constructor(kwargs?: i.BulkCreateMultilocationPostRequestInterface);
|
|
18
19
|
toApiJson(): object;
|
|
@@ -39,6 +40,9 @@ export declare class CreateMultilocationPostRequest implements i.CreateMultiloca
|
|
|
39
40
|
linkShortCode: string;
|
|
40
41
|
postTypes: SSIDPostType[];
|
|
41
42
|
postCategory: MLPostCategory;
|
|
43
|
+
postCustomizationByLocation: PostCustomizationByLocation;
|
|
44
|
+
partnerId: string;
|
|
45
|
+
multilocationId: string;
|
|
42
46
|
static fromProto(proto: any): CreateMultilocationPostRequest;
|
|
43
47
|
constructor(kwargs?: i.CreateMultilocationPostRequestInterface);
|
|
44
48
|
toApiJson(): object;
|
|
@@ -131,6 +135,8 @@ export declare class EditMultilocationPostRequest implements i.EditMultilocation
|
|
|
131
135
|
newServices: MultilocationServices[];
|
|
132
136
|
deletedServices: MultilocationServices[];
|
|
133
137
|
postCategory: MLPostCategory;
|
|
138
|
+
postCustomizationByLocation: PostCustomizationByLocation;
|
|
139
|
+
partnerId: string;
|
|
134
140
|
static fromProto(proto: any): EditMultilocationPostRequest;
|
|
135
141
|
constructor(kwargs?: i.EditMultilocationPostRequestInterface);
|
|
136
142
|
toApiJson(): object;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { FieldMask, } from './field-mask';
|
|
2
2
|
export { Hashtag, } from './hashtag';
|
|
3
3
|
export { Author, BlogPostCustomization, CallToAction, Category, Error, Event, MLPostCategory, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialCampaign, SocialPost, SocialPostData, TikTokCustomization, YoutubeCustomization, } from './social-posts';
|
|
4
|
-
export { BulkUploadMultilocation, Location, MultilocationPost, MultilocationPostError, MultilocationServices, PostAction, PostCustomization, PostEvent, } from './multilocation-post';
|
|
4
|
+
export { BulkUploadMultilocation, Location, MultilocationPost, MultilocationPostError, MultilocationServices, PostAction, PostCustomization, PostCustomizationByLocation, PostEvent, } from './multilocation-post';
|
|
5
5
|
export { PixabayImage, } from './pixabay-image';
|
|
6
6
|
export { FacebookPostStats, SocialPostStats, TwitterPostStats, } from './social-post-stats';
|
|
7
7
|
export { TenorGifMediaMapEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
|
|
@@ -15,5 +15,5 @@ export { AiInstructions, BlogPostCampaign, CreateCommonAiInstructionsRequest, Cr
|
|
|
15
15
|
export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse, } from './chat-bot';
|
|
16
16
|
export { ChatMessage, SendMessageV2Request, SendMessageV2Response, } from './chat-bot-v2';
|
|
17
17
|
export { BlogConnection, CreateBlogConnectionRequest, CreateBlogConnectionResponse, DeleteBlogConnectionRequest, GetBlogConnectionRequest, GetBlogConnectionResponse, ListBlogConnectionRequest, ListBlogConnectionResponse, UpdateBlogConnectionRequest, } from './blog-connection';
|
|
18
|
-
export { AuthorsRequest, AuthorsResponse, BlogImage, BlogPost, BlogVideo, CategoryRequest, CategoryResponse, DeleteBlogPostRequest, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, MediaProperty, PublishPostRequest, PublishPostResponse, RepostBlogPostRequest, StatusRequest, StatusResponse, UpdateBlogPostRequest, } from './wordpress-plugin';
|
|
18
|
+
export { Author as WordpressAuthor, AuthorsRequest, AuthorsResponse, BlogImage, BlogPost, BlogVideo, Category as WordpressCategory, CategoryRequest, CategoryResponse, DeleteBlogPostRequest, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, MediaProperty, PublishPostRequest, PublishPostResponse, RepostBlogPostRequest, StatusRequest, StatusResponse, UpdateBlogPostRequest, } from './wordpress-plugin';
|
|
19
19
|
export { Campaign, CreateCampaignRequest, CreateCampaignResponse, DeleteCampaignRequest, GetCampaignRequest, GetCampaignResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, UpdateCampaignIdRequest, UpdateCampaignRequest, } from './campaign';
|
|
@@ -47,6 +47,8 @@ export declare class MultilocationPost implements i.MultilocationPostInterface {
|
|
|
47
47
|
postTypes: SSIDPostType[];
|
|
48
48
|
postCategory: MLPostCategory;
|
|
49
49
|
postState: e.MLPostState;
|
|
50
|
+
postCustomizationByLocation: PostCustomizationByLocation;
|
|
51
|
+
partnerId: string;
|
|
50
52
|
static fromProto(proto: any): MultilocationPost;
|
|
51
53
|
constructor(kwargs?: i.MultilocationPostInterface);
|
|
52
54
|
toApiJson(): object;
|
|
@@ -80,6 +82,13 @@ export declare class PostCustomization implements i.PostCustomizationInterface {
|
|
|
80
82
|
constructor(kwargs?: i.PostCustomizationInterface);
|
|
81
83
|
toApiJson(): object;
|
|
82
84
|
}
|
|
85
|
+
export declare class PostCustomizationByLocation implements i.PostCustomizationByLocationInterface {
|
|
86
|
+
isCustomizedByLocation: boolean;
|
|
87
|
+
customizationStatus: e.CustomizationStatus;
|
|
88
|
+
static fromProto(proto: any): PostCustomizationByLocation;
|
|
89
|
+
constructor(kwargs?: i.PostCustomizationByLocationInterface);
|
|
90
|
+
toApiJson(): object;
|
|
91
|
+
}
|
|
83
92
|
export declare class PostEvent implements i.PostEventInterface {
|
|
84
93
|
title: string;
|
|
85
94
|
start: Date;
|
|
@@ -5,13 +5,13 @@ import { MultilocationPostApiService } from './_internal/multilocation-post.api.
|
|
|
5
5
|
import { FieldMask } from './_internal/objects/field-mask';
|
|
6
6
|
import { Location, MultilocationServices, PostCustomization } from './_internal/objects/multilocation-post';
|
|
7
7
|
import { RemoveReason } from './_internal/enums/multilocation-post.enum';
|
|
8
|
-
import { MediaEntry, MetaData, MLPostCategory, SSIDPostType } from "./_internal";
|
|
8
|
+
import { MediaEntry, MetaData, MLPostCategory, PostCustomizationByLocationInterface, SSIDPostType } from "./_internal";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class MultilocationPostsService {
|
|
11
11
|
private multilocationApiService;
|
|
12
12
|
constructor(multilocationApiService: MultilocationPostApiService);
|
|
13
|
-
createMultilocationPost(brandId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], mediaEntries?: MediaEntry[], postCustomization?: PostCustomization, linkShortCode?: string, metadata?: MetaData[], postTypes?: SSIDPostType[], postCategory?: MLPostCategory): Observable<CreateMultilocationPostResponse>;
|
|
14
|
-
editMultilocationPost(brandId: string, multilocationId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], fieldMask: FieldMask, mediaEntries?: MediaEntry[], postCustomization?: PostCustomization, linkShortCode?: string, metadata?: MetaData[], postTypes?: SSIDPostType[], postCategory?: MLPostCategory, newServices?: MultilocationServices[], deletedServices?: MultilocationServices[]): Observable<EditMultilocationPostResponse>;
|
|
13
|
+
createMultilocationPost(brandId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], mediaEntries?: MediaEntry[], postCustomization?: PostCustomization, linkShortCode?: string, metadata?: MetaData[], postTypes?: SSIDPostType[], postCategory?: MLPostCategory, postCustomizationByLocation?: PostCustomizationByLocationInterface): Observable<CreateMultilocationPostResponse>;
|
|
14
|
+
editMultilocationPost(brandId: string, multilocationId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], fieldMask: FieldMask, mediaEntries?: MediaEntry[], postCustomization?: PostCustomization, linkShortCode?: string, metadata?: MetaData[], postTypes?: SSIDPostType[], postCategory?: MLPostCategory, newServices?: MultilocationServices[], deletedServices?: MultilocationServices[], postCustomizationByLocation?: PostCustomizationByLocationInterface): Observable<EditMultilocationPostResponse>;
|
|
15
15
|
removeFromMultilocationPost(reason: RemoveReason, brandId: string, multilocationId: string, locations: Location[]): Observable<HttpResponse<null>>;
|
|
16
16
|
listMultilocationPostsForBrand(brandId: string, startDate: Date, endDate: Date, cursor: string, pageSize: number): Observable<ListMultilocationPostsForBrandResponse>;
|
|
17
17
|
deleteMultilocationPost(brandId: string, multilocationId: string): Observable<HttpResponse<null>>;
|