@vendasta/social-posts 5.16.1 → 5.16.2
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/social-posts.enum.mjs +2 -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/interfaces/social-posts.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +14 -2
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/multilocation-post.mjs +8 -2
- package/esm2020/lib/_internal/objects/social-posts.mjs +27 -1
- package/esm2020/lib/multilocation-posts.service.mjs +6 -4
- package/fesm2015/vendasta-social-posts.mjs +51 -4
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +51 -4
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/social-posts.enum.d.ts +2 -1
- package/lib/_internal/interfaces/api.interface.d.ts +3 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/multilocation-post.interface.d.ts +2 -1
- package/lib/_internal/interfaces/social-posts.interface.d.ts +4 -0
- package/lib/_internal/objects/api.d.ts +3 -1
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/multilocation-post.d.ts +2 -1
- package/lib/_internal/objects/social-posts.d.ts +7 -0
- package/lib/multilocation-posts.service.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldMaskInterface } from './field-mask.interface';
|
|
2
2
|
import { HashtagInterface } from './hashtag.interface';
|
|
3
3
|
import { LocationInterface, PostCustomizationInterface, MultilocationPostInterface, MultilocationPostErrorInterface } from './multilocation-post.interface';
|
|
4
|
-
import { MediaEntryInterface, MetaDataInterface, YoutubeCustomizationInterface, SocialPostInterface, PostTemplateInterface, SocialPostDataInterface, SchedulePostStatusInterface } from './social-posts.interface';
|
|
4
|
+
import { MediaEntryInterface, MetaDataInterface, SSIDPostTypeInterface, YoutubeCustomizationInterface, SocialPostInterface, PostTemplateInterface, SocialPostDataInterface, SchedulePostStatusInterface } from './social-posts.interface';
|
|
5
5
|
import { PixabayImageInterface } from './pixabay-image.interface';
|
|
6
6
|
import { SocialPostStatsInterface } from './social-post-stats.interface';
|
|
7
7
|
import { TenorGifInterface } from './tenor-gif.interface';
|
|
@@ -19,6 +19,7 @@ export interface CreateMultilocationPostRequestInterface {
|
|
|
19
19
|
tags?: string[];
|
|
20
20
|
customization?: PostCustomizationInterface;
|
|
21
21
|
linkShortCode?: string;
|
|
22
|
+
postTypes?: SSIDPostTypeInterface[];
|
|
22
23
|
}
|
|
23
24
|
export interface CreateMultilocationPostResponseInterface {
|
|
24
25
|
post?: MultilocationPostInterface;
|
|
@@ -80,6 +81,7 @@ export interface EditMultilocationPostRequestInterface {
|
|
|
80
81
|
tags?: string[];
|
|
81
82
|
customization?: PostCustomizationInterface;
|
|
82
83
|
linkShortCode?: string;
|
|
84
|
+
postTypes?: SSIDPostTypeInterface[];
|
|
83
85
|
}
|
|
84
86
|
export interface EditMultilocationPostResponseInterface {
|
|
85
87
|
post?: MultilocationPostInterface;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
2
2
|
export { HashtagInterface, } from './hashtag.interface';
|
|
3
|
-
export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
|
|
3
|
+
export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
|
|
4
4
|
export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, PostActionInterface, PostCustomizationInterface, PostEventInterface, } from './multilocation-post.interface';
|
|
5
5
|
export { PixabayImageInterface, } from './pixabay-image.interface';
|
|
6
6
|
export { FacebookPostStatsInterface, SocialPostStatsInterface, TwitterPostStatsInterface, } from './social-post-stats.interface';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MediaEntryInterface, MetaDataInterface } from './social-posts.interface';
|
|
1
|
+
import { MediaEntryInterface, MetaDataInterface, SSIDPostTypeInterface } from './social-posts.interface';
|
|
2
2
|
export interface LocationInterface {
|
|
3
3
|
socialServiceIds?: string[];
|
|
4
4
|
accountGroupId?: string;
|
|
@@ -19,6 +19,7 @@ export interface MultilocationPostInterface {
|
|
|
19
19
|
tags?: string[];
|
|
20
20
|
customization?: PostCustomizationInterface;
|
|
21
21
|
linkShortCode?: string;
|
|
22
|
+
postTypes?: SSIDPostTypeInterface[];
|
|
22
23
|
}
|
|
23
24
|
export interface MultilocationPostErrorInterface {
|
|
24
25
|
socialServiceId?: string;
|
|
@@ -43,6 +43,10 @@ export interface PostTemplateInterface {
|
|
|
43
43
|
postType?: e.PostType;
|
|
44
44
|
youtubeCustomization?: YoutubeCustomizationInterface;
|
|
45
45
|
}
|
|
46
|
+
export interface SSIDPostTypeInterface {
|
|
47
|
+
socialServiceId?: string;
|
|
48
|
+
postType?: e.PostType;
|
|
49
|
+
}
|
|
46
50
|
export interface SchedulePostStatusInterface {
|
|
47
51
|
socialPostId?: string;
|
|
48
52
|
socialServiceId?: string;
|
|
@@ -2,7 +2,7 @@ import * as i from '../interfaces';
|
|
|
2
2
|
import { FieldMask } from './field-mask';
|
|
3
3
|
import { Hashtag } from './hashtag';
|
|
4
4
|
import { Location, PostCustomization, MultilocationPost, MultilocationPostError } from './multilocation-post';
|
|
5
|
-
import { MediaEntry, MetaData, YoutubeCustomization, SocialPost, PostTemplate, SocialPostData, SchedulePostStatus } from './social-posts';
|
|
5
|
+
import { MediaEntry, MetaData, SSIDPostType, YoutubeCustomization, SocialPost, PostTemplate, SocialPostData, SchedulePostStatus } from './social-posts';
|
|
6
6
|
import { PixabayImage } from './pixabay-image';
|
|
7
7
|
import { SocialPostStats } from './social-post-stats';
|
|
8
8
|
import { TenorGif } from './tenor-gif';
|
|
@@ -21,6 +21,7 @@ export declare class CreateMultilocationPostRequest implements i.CreateMultiloca
|
|
|
21
21
|
tags: string[];
|
|
22
22
|
customization: PostCustomization;
|
|
23
23
|
linkShortCode: string;
|
|
24
|
+
postTypes: SSIDPostType[];
|
|
24
25
|
static fromProto(proto: any): CreateMultilocationPostRequest;
|
|
25
26
|
constructor(kwargs?: i.CreateMultilocationPostRequestInterface);
|
|
26
27
|
toApiJson(): object;
|
|
@@ -109,6 +110,7 @@ export declare class EditMultilocationPostRequest implements i.EditMultilocation
|
|
|
109
110
|
tags: string[];
|
|
110
111
|
customization: PostCustomization;
|
|
111
112
|
linkShortCode: string;
|
|
113
|
+
postTypes: SSIDPostType[];
|
|
112
114
|
static fromProto(proto: any): EditMultilocationPostRequest;
|
|
113
115
|
constructor(kwargs?: i.EditMultilocationPostRequestInterface);
|
|
114
116
|
toApiJson(): object;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FieldMask, } from './field-mask';
|
|
2
2
|
export { Hashtag, } from './hashtag';
|
|
3
|
-
export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SchedulePostStatus, SocialPost, SocialPostData, YoutubeCustomization, } from './social-posts';
|
|
3
|
+
export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialPost, SocialPostData, YoutubeCustomization, } from './social-posts';
|
|
4
4
|
export { Location, MultilocationPost, MultilocationPostError, PostAction, PostCustomization, PostEvent, } from './multilocation-post';
|
|
5
5
|
export { PixabayImage, } from './pixabay-image';
|
|
6
6
|
export { FacebookPostStats, SocialPostStats, TwitterPostStats, } from './social-post-stats';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
-
import { MediaEntry, MetaData } from './social-posts';
|
|
2
|
+
import { MediaEntry, MetaData, SSIDPostType } from './social-posts';
|
|
3
3
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
4
|
export declare class Location implements i.LocationInterface {
|
|
5
5
|
socialServiceIds: string[];
|
|
@@ -24,6 +24,7 @@ export declare class MultilocationPost implements i.MultilocationPostInterface {
|
|
|
24
24
|
tags: string[];
|
|
25
25
|
customization: PostCustomization;
|
|
26
26
|
linkShortCode: string;
|
|
27
|
+
postTypes: SSIDPostType[];
|
|
27
28
|
static fromProto(proto: any): MultilocationPost;
|
|
28
29
|
constructor(kwargs?: i.MultilocationPostInterface);
|
|
29
30
|
toApiJson(): object;
|
|
@@ -63,6 +63,13 @@ export declare class PostTemplate implements i.PostTemplateInterface {
|
|
|
63
63
|
constructor(kwargs?: i.PostTemplateInterface);
|
|
64
64
|
toApiJson(): object;
|
|
65
65
|
}
|
|
66
|
+
export declare class SSIDPostType implements i.SSIDPostTypeInterface {
|
|
67
|
+
socialServiceId: string;
|
|
68
|
+
postType: e.PostType;
|
|
69
|
+
static fromProto(proto: any): SSIDPostType;
|
|
70
|
+
constructor(kwargs?: i.SSIDPostTypeInterface);
|
|
71
|
+
toApiJson(): object;
|
|
72
|
+
}
|
|
66
73
|
export declare class SchedulePostStatus implements i.SchedulePostStatusInterface {
|
|
67
74
|
socialPostId: string;
|
|
68
75
|
socialServiceId: string;
|
|
@@ -5,13 +5,13 @@ import { MultilocationPostApiService } from './_internal/multilocation-post.api.
|
|
|
5
5
|
import { FieldMask } from './_internal/objects/field-mask';
|
|
6
6
|
import { Location, PostCustomization } from './_internal/objects/multilocation-post';
|
|
7
7
|
import { RemoveReason } from './_internal/enums/multilocation-post.enum';
|
|
8
|
-
import { MediaEntry, MetaData } from "./_internal";
|
|
8
|
+
import { MediaEntry, MetaData, 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[]): 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[]): 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[]): 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[]): 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>>;
|