@vendasta/social-posts 5.13.0 → 5.14.1

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
- export { RemoveReason, } from './multilocation-post.enum';
2
1
  export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength, PostType, PostingStatus, SocialPostService, TemplateType, } from './social-posts.enum';
2
+ export { RemoveReason, } from './multilocation-post.enum';
3
3
  export { PostStatusV2, PostTypeV2, } from './social-post-v2.enum';
4
4
  export { MediaType, } from './linkedin-v2.enum';
@@ -1,6 +1,6 @@
1
1
  import { FieldMaskInterface } from './field-mask.interface';
2
2
  import { HashtagInterface } from './hashtag.interface';
3
- import { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface } from './multilocation-post.interface';
3
+ import { LocationInterface, PostCustomizationInterface, MultilocationPostInterface, MultilocationPostErrorInterface } from './multilocation-post.interface';
4
4
  import { MediaEntryInterface, MetaDataInterface, 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';
@@ -14,6 +14,11 @@ export interface CreateMultilocationPostRequestInterface {
14
14
  locations?: LocationInterface[];
15
15
  gifs?: string[];
16
16
  videos?: string[];
17
+ mediaEntries?: MediaEntryInterface[];
18
+ metaData?: MetaDataInterface[];
19
+ tags?: string[];
20
+ customization?: PostCustomizationInterface;
21
+ linkShortCode?: string;
17
22
  }
18
23
  export interface CreateMultilocationPostResponseInterface {
19
24
  post?: MultilocationPostInterface;
@@ -69,6 +74,11 @@ export interface EditMultilocationPostRequestInterface {
69
74
  gifs?: string[];
70
75
  videos?: string[];
71
76
  locations?: LocationInterface[];
77
+ mediaEntries?: MediaEntryInterface[];
78
+ metaData?: MetaDataInterface[];
79
+ tags?: string[];
80
+ customization?: PostCustomizationInterface;
81
+ linkShortCode?: string;
72
82
  }
73
83
  export interface EditMultilocationPostResponseInterface {
74
84
  post?: MultilocationPostInterface;
@@ -1,10 +1,10 @@
1
1
  export { FieldMaskInterface, } from './field-mask.interface';
2
2
  export { HashtagInterface, } from './hashtag.interface';
3
- export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, } from './multilocation-post.interface';
3
+ export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, } from './social-posts.interface';
4
+ export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, PostActionInterface, PostCustomizationInterface, PostEventInterface, } from './multilocation-post.interface';
4
5
  export { PixabayImageInterface, } from './pixabay-image.interface';
5
6
  export { FacebookPostStatsInterface, SocialPostStatsInterface, TwitterPostStatsInterface, } from './social-post-stats.interface';
6
- export { TenorGifMediaEntryInterface, TenorGifInterface, TenorMediaObjectInterface, } from './tenor-gif.interface';
7
- export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, } from './social-posts.interface';
7
+ export { TenorGifMediaMapEntryInterface, TenorGifInterface, TenorMediaObjectInterface, } from './tenor-gif.interface';
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 { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, } from './social-post-v2.interface';
10
10
  export { MediaInterface, } from './linkedin-v2.interface';
@@ -1,3 +1,4 @@
1
+ import { MediaEntryInterface, MetaDataInterface } from './social-posts.interface';
1
2
  export interface LocationInterface {
2
3
  socialServiceIds?: string[];
3
4
  accountGroupId?: string;
@@ -13,9 +14,27 @@ export interface MultilocationPostInterface {
13
14
  deletedLocations?: LocationInterface[];
14
15
  originalGifs?: string[];
15
16
  originalVideos?: string[];
17
+ mediaEntries?: MediaEntryInterface[];
18
+ metaData?: MetaDataInterface[];
19
+ tags?: string[];
20
+ customization?: PostCustomizationInterface;
21
+ linkShortCode?: string;
16
22
  }
17
23
  export interface MultilocationPostErrorInterface {
18
24
  socialServiceId?: string;
19
25
  accountGroupId?: string;
20
26
  errorReason?: string;
21
27
  }
28
+ export interface PostActionInterface {
29
+ type?: string;
30
+ linkUrl?: string;
31
+ }
32
+ export interface PostCustomizationInterface {
33
+ event?: PostEventInterface;
34
+ action?: PostActionInterface;
35
+ }
36
+ export interface PostEventInterface {
37
+ title?: string;
38
+ start?: Date;
39
+ end?: Date;
40
+ }
@@ -1,9 +1,9 @@
1
- export interface TenorGifMediaEntryInterface {
1
+ export interface TenorGifMediaMapEntryInterface {
2
2
  key?: string;
3
3
  value?: TenorMediaObjectInterface;
4
4
  }
5
5
  export interface TenorGifInterface {
6
- media?: {
6
+ mediaMap?: {
7
7
  [key: string]: TenorMediaObjectInterface;
8
8
  };
9
9
  tags?: string[];
@@ -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, MultilocationPost, MultilocationPostError } from './multilocation-post';
4
+ import { Location, PostCustomization, MultilocationPost, MultilocationPostError } from './multilocation-post';
5
5
  import { MediaEntry, MetaData, SocialPost, PostTemplate, SocialPostData, SchedulePostStatus } from './social-posts';
6
6
  import { PixabayImage } from './pixabay-image';
7
7
  import { SocialPostStats } from './social-post-stats';
@@ -16,6 +16,11 @@ export declare class CreateMultilocationPostRequest implements i.CreateMultiloca
16
16
  locations: Location[];
17
17
  gifs: string[];
18
18
  videos: string[];
19
+ mediaEntries: MediaEntry[];
20
+ metaData: MetaData[];
21
+ tags: string[];
22
+ customization: PostCustomization;
23
+ linkShortCode: string;
19
24
  static fromProto(proto: any): CreateMultilocationPostRequest;
20
25
  constructor(kwargs?: i.CreateMultilocationPostRequestInterface);
21
26
  toApiJson(): object;
@@ -98,6 +103,11 @@ export declare class EditMultilocationPostRequest implements i.EditMultilocation
98
103
  gifs: string[];
99
104
  videos: string[];
100
105
  locations: Location[];
106
+ mediaEntries: MediaEntry[];
107
+ metaData: MetaData[];
108
+ tags: string[];
109
+ customization: PostCustomization;
110
+ linkShortCode: string;
101
111
  static fromProto(proto: any): EditMultilocationPostRequest;
102
112
  constructor(kwargs?: i.EditMultilocationPostRequestInterface);
103
113
  toApiJson(): object;
@@ -1,10 +1,10 @@
1
1
  export { FieldMask, } from './field-mask';
2
2
  export { Hashtag, } from './hashtag';
3
- export { Location, MultilocationPost, MultilocationPostError, } from './multilocation-post';
3
+ export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SchedulePostStatus, SocialPost, SocialPostData, } from './social-posts';
4
+ export { Location, MultilocationPost, MultilocationPostError, PostAction, PostCustomization, PostEvent, } from './multilocation-post';
4
5
  export { PixabayImage, } from './pixabay-image';
5
6
  export { FacebookPostStats, SocialPostStats, TwitterPostStats, } from './social-post-stats';
6
- export { TenorGifMediaEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
7
- export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SchedulePostStatus, SocialPost, SocialPostData, } from './social-posts';
7
+ export { TenorGifMediaMapEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
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 { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, } from './social-post-v2';
10
10
  export { Media, } from './linkedin-v2';
@@ -1,4 +1,5 @@
1
1
  import * as i from '../interfaces';
2
+ import { MediaEntry, MetaData } from './social-posts';
2
3
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
4
  export declare class Location implements i.LocationInterface {
4
5
  socialServiceIds: string[];
@@ -18,6 +19,11 @@ export declare class MultilocationPost implements i.MultilocationPostInterface {
18
19
  deletedLocations: Location[];
19
20
  originalGifs: string[];
20
21
  originalVideos: string[];
22
+ mediaEntries: MediaEntry[];
23
+ metaData: MetaData[];
24
+ tags: string[];
25
+ customization: PostCustomization;
26
+ linkShortCode: string;
21
27
  static fromProto(proto: any): MultilocationPost;
22
28
  constructor(kwargs?: i.MultilocationPostInterface);
23
29
  toApiJson(): object;
@@ -30,3 +36,25 @@ export declare class MultilocationPostError implements i.MultilocationPostErrorI
30
36
  constructor(kwargs?: i.MultilocationPostErrorInterface);
31
37
  toApiJson(): object;
32
38
  }
39
+ export declare class PostAction implements i.PostActionInterface {
40
+ type: string;
41
+ linkUrl: string;
42
+ static fromProto(proto: any): PostAction;
43
+ constructor(kwargs?: i.PostActionInterface);
44
+ toApiJson(): object;
45
+ }
46
+ export declare class PostCustomization implements i.PostCustomizationInterface {
47
+ event: PostEvent;
48
+ action: PostAction;
49
+ static fromProto(proto: any): PostCustomization;
50
+ constructor(kwargs?: i.PostCustomizationInterface);
51
+ toApiJson(): object;
52
+ }
53
+ export declare class PostEvent implements i.PostEventInterface {
54
+ title: string;
55
+ start: Date;
56
+ end: Date;
57
+ static fromProto(proto: any): PostEvent;
58
+ constructor(kwargs?: i.PostEventInterface);
59
+ toApiJson(): object;
60
+ }
@@ -1,14 +1,14 @@
1
1
  import * as i from '../interfaces';
2
2
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
- export declare class TenorGifMediaEntry implements i.TenorGifMediaEntryInterface {
3
+ export declare class TenorGifMediaMapEntry implements i.TenorGifMediaMapEntryInterface {
4
4
  key: string;
5
5
  value: TenorMediaObject;
6
- static fromProto(proto: any): TenorGifMediaEntry;
7
- constructor(kwargs?: i.TenorGifMediaEntryInterface);
6
+ static fromProto(proto: any): TenorGifMediaMapEntry;
7
+ constructor(kwargs?: i.TenorGifMediaMapEntryInterface);
8
8
  toApiJson(): object;
9
9
  }
10
10
  export declare class TenorGif implements i.TenorGifInterface {
11
- media: {
11
+ mediaMap: {
12
12
  [key: string]: TenorMediaObject;
13
13
  };
14
14
  tags: string[];
package/lib/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { TenorGifsService } from './tenor-gifs.service';
5
5
  export { PixabayImageService } from './pixabay-image.service';
6
6
  export { HashTagsService } from './hashtag.service';
7
7
  export { PostPerformanceService } from './post-performance.service';
8
- export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest, PostPerformanceApiService, MessageLength, TemplateType, } from './_internal';
8
+ export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest, PostPerformanceApiService, MessageLength, TemplateType, MediaEntry, MetaData, PostCustomization, } from './_internal';
9
9
  export * from './_internal/interfaces';
10
10
  export * from './_internal/enums';
11
11
  export * from './_internal/objects';
@@ -3,14 +3,15 @@ import { Observable } from 'rxjs';
3
3
  import { CreateMultilocationPostResponse, EditMultilocationPostResponse, GetMultilocationPostResponse, ListMultilocationPostsForBrandResponse } from './_internal/objects/api';
4
4
  import { MultilocationPostApiService } from './_internal/multilocation-post.api.service';
5
5
  import { FieldMask } from './_internal/objects/field-mask';
6
- import { Location } from './_internal/objects/multilocation-post';
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
9
  import * as i0 from "@angular/core";
9
10
  export declare class MultilocationPostsService {
10
11
  private multilocationApiService;
11
12
  constructor(multilocationApiService: MultilocationPostApiService);
12
- createMultilocationPost(brandId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[]): Observable<CreateMultilocationPostResponse>;
13
- editMultilocationPost(brandId: string, multilocationId: string, text: string, media: string[], gifs: string[], videos: string[], scheduledDate: Date, locations: Location[], fieldMask: FieldMask): 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[]): 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>;
14
15
  removeFromMultilocationPost(reason: RemoveReason, brandId: string, multilocationId: string, locations: Location[]): Observable<HttpResponse<null>>;
15
16
  listMultilocationPostsForBrand(brandId: string, startDate: Date, endDate: Date, cursor: string, pageSize: number): Observable<ListMultilocationPostsForBrandResponse>;
16
17
  deleteMultilocationPost(brandId: string, multilocationId: string): Observable<HttpResponse<null>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.13.0",
3
+ "version": "5.14.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"