@vendasta/social-posts 5.5.0 → 5.7.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 (49) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +4 -2
  2. package/esm2020/lib/_internal/enums/linkedin-v2.enum.mjs +15 -0
  3. package/esm2020/lib/_internal/enums/social-post-v2.enum.mjs +16 -0
  4. package/esm2020/lib/_internal/enums/social-posts.enum.mjs +10 -1
  5. package/esm2020/lib/_internal/index.mjs +3 -1
  6. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +2 -0
  7. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/linkedin-v2.interface.mjs +8 -0
  10. package/esm2020/lib/_internal/interfaces/social-post-v2.interface.mjs +8 -0
  11. package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
  12. package/esm2020/lib/_internal/linkedin.api.service.mjs +45 -0
  13. package/esm2020/lib/_internal/objects/api-v2.mjs +243 -0
  14. package/esm2020/lib/_internal/objects/api.mjs +39 -3
  15. package/esm2020/lib/_internal/objects/index.mjs +8 -6
  16. package/esm2020/lib/_internal/objects/linkedin-v2.mjs +34 -0
  17. package/esm2020/lib/_internal/objects/social-post-v2.mjs +264 -0
  18. package/esm2020/lib/_internal/objects/social-posts.mjs +163 -1
  19. package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +46 -0
  20. package/esm2020/lib/post-templates.service.mjs +12 -5
  21. package/fesm2015/vendasta-social-posts.mjs +1655 -884
  22. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  23. package/fesm2020/vendasta-social-posts.mjs +1655 -884
  24. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  25. package/lib/_internal/enums/index.d.ts +3 -1
  26. package/lib/_internal/enums/linkedin-v2.enum.d.ts +7 -0
  27. package/lib/_internal/enums/social-post-v2.enum.d.ts +8 -0
  28. package/lib/_internal/enums/social-posts.enum.d.ts +8 -0
  29. package/lib/_internal/index.d.ts +2 -0
  30. package/lib/_internal/interfaces/api-v2.interface.d.ts +40 -0
  31. package/lib/_internal/interfaces/api.interface.d.ts +8 -2
  32. package/lib/_internal/interfaces/index.d.ts +7 -5
  33. package/lib/_internal/interfaces/linkedin-v2.interface.d.ts +5 -0
  34. package/lib/_internal/interfaces/social-post-v2.interface.d.ts +46 -0
  35. package/lib/_internal/interfaces/social-posts.interface.d.ts +33 -0
  36. package/lib/_internal/linkedin.api.service.d.ts +17 -0
  37. package/lib/_internal/objects/api-v2.d.ts +69 -0
  38. package/lib/_internal/objects/api.d.ts +8 -2
  39. package/lib/_internal/objects/index.d.ts +7 -5
  40. package/lib/_internal/objects/linkedin-v2.d.ts +10 -0
  41. package/lib/_internal/objects/social-post-v2.d.ts +72 -0
  42. package/lib/_internal/objects/social-posts.d.ts +42 -0
  43. package/lib/_internal/social-posts-v2.api.service.d.ts +17 -0
  44. package/lib/post-templates.service.d.ts +3 -2
  45. package/package.json +1 -1
  46. package/esm2020/lib/_internal/interfaces/post-templates.interface.mjs +0 -8
  47. package/esm2020/lib/_internal/objects/post-templates.mjs +0 -75
  48. package/lib/_internal/interfaces/post-templates.interface.d.ts +0 -16
  49. package/lib/_internal/objects/post-templates.d.ts +0 -21
@@ -1,2 +1,4 @@
1
- export { CallToActionCallToActionType, SocialPostDeletionStatus, PostLength, PostingStatus, SocialPostService, } from './social-posts.enum';
2
1
  export { RemoveReason, } from './multilocation-post.enum';
2
+ export { CallToActionCallToActionType, SocialPostDeletionStatus, PostLength, PostType, PostingStatus, SocialPostService, } from './social-posts.enum';
3
+ export { PostType as PostTypeEnum, } from './social-post-v2.enum';
4
+ export { MediaType, } from './linkedin-v2.enum';
@@ -0,0 +1,7 @@
1
+ export declare enum MediaType {
2
+ MEDIA_TYPE_INVALID = 0,
3
+ MEDIA_TYPE_IMAGE = 1,
4
+ MEDIA_TYPE_VIDEO = 2,
5
+ MEDIA_TYPE_GIF = 3,
6
+ MEDIA_TYPE_CAROUSEL = 4
7
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum PostType {
2
+ POST_TYPE_INVALID = 0,
3
+ POST_TYPE_IMAGE = 1,
4
+ POST_TYPE_VIDEO = 2,
5
+ POST_TYPE_GIF = 3,
6
+ POST_TYPE_MULTI_MEDIA = 4,
7
+ POST_TYPE_TEXT = 5
8
+ }
@@ -16,6 +16,14 @@ export declare enum PostLength {
16
16
  SHORT_FORM = 0,
17
17
  LONG_FORM = 1
18
18
  }
19
+ export declare enum PostType {
20
+ POST_TYPE_INVALID = 0,
21
+ POST_TYPE_IMAGE = 1,
22
+ POST_TYPE_VIDEO = 2,
23
+ POST_TYPE_GIF = 3,
24
+ POST_TYPE_REEL = 4,
25
+ POST_TYPE_CAROUSEL = 5
26
+ }
19
27
  export declare enum PostingStatus {
20
28
  POSTING_IN_PROGRESS = 0,
21
29
  POSTING_FAILED = 1,
@@ -2,10 +2,12 @@ export * from './enums';
2
2
  export * from './objects';
3
3
  export * from './interfaces';
4
4
  export { HashTagsApiService } from './hash-tags.api.service';
5
+ export { LinkedinApiService } from './linkedin.api.service';
5
6
  export { MultilocationPostApiService } from './multilocation-post.api.service';
6
7
  export { PartnerSocialPostsApiService } from './partner-social-posts.api.service';
7
8
  export { PixabayImagesApiService } from './pixabay-images.api.service';
8
9
  export { PostPerformanceApiService } from './post-performance.api.service';
9
10
  export { PostTemplatesApiService } from './post-templates.api.service';
10
11
  export { SocialPostsApiService } from './social-posts.api.service';
12
+ export { SocialPostsV2ApiService } from './social-posts-v2.api.service';
11
13
  export { TenorGifsApiService } from './tenor-gifs.api.service';
@@ -0,0 +1,40 @@
1
+ import { MediaInterface } from './linkedin-v2.interface';
2
+ import { SocialPostInterface, MetadataInterface } from './social-post-v2.interface';
3
+ export interface CreateImageRequestInterface {
4
+ businessId?: string;
5
+ prompt?: string;
6
+ imageAmount?: number;
7
+ size?: string;
8
+ responseFormat?: string;
9
+ }
10
+ export interface CreateImageResponseInterface {
11
+ createdId?: number;
12
+ generatedImages?: ImageCreatedInterface[];
13
+ }
14
+ export interface DeletePostRequestInterface {
15
+ accessToken?: string;
16
+ postId?: string;
17
+ }
18
+ export interface ImageCreatedInterface {
19
+ url?: string;
20
+ b64Json?: string;
21
+ }
22
+ export interface MediaUploadRequestInterface {
23
+ accessToken?: string;
24
+ owner?: string;
25
+ media?: MediaInterface[];
26
+ }
27
+ export interface MediaUploadResponseInterface {
28
+ uploadUrn?: string[];
29
+ }
30
+ export interface SocialPostOutputInterface {
31
+ internalPostId?: string;
32
+ socialPost?: SocialPostInterface;
33
+ metadata?: MetadataInterface[];
34
+ }
35
+ export interface SocialPostRequestInterface {
36
+ socialPost?: SocialPostInterface[];
37
+ }
38
+ export interface SocialPostResponseInterface {
39
+ socialPost?: SocialPostOutputInterface[];
40
+ }
@@ -1,9 +1,9 @@
1
1
  import { FieldMaskInterface } from './field-mask.interface';
2
2
  import { HashtagInterface } from './hashtag.interface';
3
3
  import { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface } from './multilocation-post.interface';
4
+ import { MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SocialPostDataInterface, SchedulePostStatusInterface } from './social-posts.interface';
4
5
  import { PixabayImageInterface } from './pixabay-image.interface';
5
- import { PostTemplateInterface } from './post-templates.interface';
6
- import { SocialPostInterface, SocialPostDataInterface, SchedulePostStatusInterface } from './social-posts.interface';
6
+ import { SocialPostInterface } from './social-post-v2.interface';
7
7
  import { SocialPostStatsInterface } from './social-post-stats.interface';
8
8
  import { TenorGifInterface } from './tenor-gif.interface';
9
9
  import * as e from '../enums';
@@ -32,6 +32,9 @@ export interface CreatePostTemplateRequestInterface {
32
32
  previews?: string;
33
33
  options?: string[];
34
34
  videoUrl?: string;
35
+ mediaEntries?: MediaEntryInterface[];
36
+ metaData?: MetaDataInterface[];
37
+ postType?: e.PostType;
35
38
  }
36
39
  export interface CreatePostTemplateResponseInterface {
37
40
  templateId?: string;
@@ -280,4 +283,7 @@ export interface UpdatePostTemplateRequestInterface {
280
283
  previews?: string;
281
284
  options?: string[];
282
285
  videoUrl?: string;
286
+ mediaEntries?: MediaEntryInterface[];
287
+ metaData?: MetaDataInterface[];
288
+ postType?: e.PostType;
283
289
  }
@@ -1,9 +1,11 @@
1
- export { CallToActionInterface, ErrorInterface, EventInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, } from './social-posts.interface';
1
+ export { FieldMaskInterface, } from './field-mask.interface';
2
+ export { HashtagInterface, } from './hashtag.interface';
3
+ export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, } from './multilocation-post.interface';
2
4
  export { PixabayImageInterface, } from './pixabay-image.interface';
3
5
  export { FacebookPostStatsInterface, SocialPostStatsInterface, TwitterPostStatsInterface, } from './social-post-stats.interface';
4
- export { PostTemplateInterface, } from './post-templates.interface';
5
- export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, } from './multilocation-post.interface';
6
- export { FieldMaskInterface, } from './field-mask.interface';
7
6
  export { TenorGifMediaEntryInterface, TenorGifInterface, TenorMediaObjectInterface, } from './tenor-gif.interface';
8
- export { HashtagInterface, } from './hashtag.interface';
7
+ export { CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, } from './social-posts.interface';
9
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
+ export { LinkInterface, MetadataInterface, PostActionInterface, PostContentInterface, PostCustomizationInterface, PostEventInterface, PostMediaInterface, SocialPostInterface as SocialPostInterfaceV2, } from './social-post-v2.interface';
10
+ export { MediaInterface, } from './linkedin-v2.interface';
11
+ export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageCreatedInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, } from './api-v2.interface';
@@ -0,0 +1,5 @@
1
+ import * as e from '../enums';
2
+ export interface MediaInterface {
3
+ url?: string;
4
+ mediaType?: e.MediaType;
5
+ }
@@ -0,0 +1,46 @@
1
+ import * as e from '../enums';
2
+ export interface LinkInterface {
3
+ name?: string;
4
+ picture?: string;
5
+ description?: string;
6
+ title?: string;
7
+ url?: string;
8
+ shortcode?: string;
9
+ }
10
+ export interface MetadataInterface {
11
+ name?: string;
12
+ value?: string;
13
+ }
14
+ export interface PostActionInterface {
15
+ type?: string;
16
+ linkUrl?: string;
17
+ }
18
+ export interface PostContentInterface {
19
+ postText?: string;
20
+ media?: PostMediaInterface[];
21
+ link?: LinkInterface[];
22
+ }
23
+ export interface PostCustomizationInterface {
24
+ event?: PostEventInterface;
25
+ action?: PostActionInterface;
26
+ }
27
+ export interface PostEventInterface {
28
+ title?: string;
29
+ start?: Date;
30
+ end?: Date;
31
+ }
32
+ export interface PostMediaInterface {
33
+ mediaId?: string;
34
+ mediaUrl?: string;
35
+ mediaType?: string;
36
+ containerId?: string;
37
+ metadata?: MetadataInterface[];
38
+ }
39
+ export interface SocialPostInterface {
40
+ businessId?: string;
41
+ socialServiceId?: string;
42
+ postContent?: PostContentInterface;
43
+ scheduled?: Date;
44
+ customization?: PostCustomizationInterface;
45
+ postType?: e.PostType;
46
+ }
@@ -12,6 +12,36 @@ export interface EventInterface {
12
12
  startDatetime?: Date;
13
13
  endDatetime?: Date;
14
14
  }
15
+ export interface MediaEntryInterface {
16
+ mediaEntryId?: string;
17
+ mediaUrl?: string;
18
+ mediaType?: string;
19
+ containerId?: string;
20
+ metaData?: MetaDataInterface[];
21
+ }
22
+ export interface MetaDataInterface {
23
+ propertyName?: string;
24
+ propertyValue?: string;
25
+ }
26
+ export interface PostTemplateInterface {
27
+ accountGroupId?: string;
28
+ templateId?: string;
29
+ title?: string;
30
+ created?: Date;
31
+ updated?: Date;
32
+ postText?: string;
33
+ postDateTime?: Date;
34
+ gmbPostCustomization?: string;
35
+ imageUrl?: string;
36
+ imagePath?: string;
37
+ imageSize?: string;
38
+ previews?: string;
39
+ options?: string[];
40
+ videoUrl?: string;
41
+ mediaEntries?: MediaEntryInterface[];
42
+ metaData?: MetaDataInterface[];
43
+ postType?: e.PostType;
44
+ }
15
45
  export interface SchedulePostStatusInterface {
16
46
  socialPostId?: string;
17
47
  socialServiceId?: string;
@@ -45,6 +75,9 @@ export interface SocialPostInterface {
45
75
  linkPreviewImageUrl?: string;
46
76
  brandId?: string;
47
77
  multilocationPostId?: string;
78
+ postType?: e.PostType;
79
+ mediaEntries?: MediaEntryInterface[];
80
+ metaData?: MetaDataInterface[];
48
81
  }
49
82
  export interface SocialPostDataInterface {
50
83
  postText?: string;
@@ -0,0 +1,17 @@
1
+ import { DeletePostRequest, MediaUploadRequest, MediaUploadResponse } from './objects/';
2
+ import { DeletePostRequestInterface, MediaUploadRequestInterface } from './interfaces/';
3
+ import { HttpClient, HttpResponse } from '@angular/common/http';
4
+ import { HostService } from '../_generated/host.service';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class LinkedinApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ deletePost(r: DeletePostRequest | DeletePostRequestInterface): Observable<HttpResponse<null>>;
14
+ uploadMedia(r: MediaUploadRequest | MediaUploadRequestInterface): Observable<MediaUploadResponse>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<LinkedinApiService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<LinkedinApiService>;
17
+ }
@@ -0,0 +1,69 @@
1
+ import * as i from '../interfaces';
2
+ import { Media } from './linkedin-v2';
3
+ import { SocialPost, Metadata } from './social-post-v2';
4
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class CreateImageRequest implements i.CreateImageRequestInterface {
6
+ businessId: string;
7
+ prompt: string;
8
+ imageAmount: number;
9
+ size: string;
10
+ responseFormat: string;
11
+ static fromProto(proto: any): CreateImageRequest;
12
+ constructor(kwargs?: i.CreateImageRequestInterface);
13
+ toApiJson(): object;
14
+ }
15
+ export declare class CreateImageResponse implements i.CreateImageResponseInterface {
16
+ createdId: number;
17
+ generatedImages: ImageCreated[];
18
+ static fromProto(proto: any): CreateImageResponse;
19
+ constructor(kwargs?: i.CreateImageResponseInterface);
20
+ toApiJson(): object;
21
+ }
22
+ export declare class DeletePostRequest implements i.DeletePostRequestInterface {
23
+ accessToken: string;
24
+ postId: string;
25
+ static fromProto(proto: any): DeletePostRequest;
26
+ constructor(kwargs?: i.DeletePostRequestInterface);
27
+ toApiJson(): object;
28
+ }
29
+ export declare class ImageCreated implements i.ImageCreatedInterface {
30
+ url: string;
31
+ b64Json: string;
32
+ static fromProto(proto: any): ImageCreated;
33
+ constructor(kwargs?: i.ImageCreatedInterface);
34
+ toApiJson(): object;
35
+ }
36
+ export declare class MediaUploadRequest implements i.MediaUploadRequestInterface {
37
+ accessToken: string;
38
+ owner: string;
39
+ media: Media[];
40
+ static fromProto(proto: any): MediaUploadRequest;
41
+ constructor(kwargs?: i.MediaUploadRequestInterface);
42
+ toApiJson(): object;
43
+ }
44
+ export declare class MediaUploadResponse implements i.MediaUploadResponseInterface {
45
+ uploadUrn: string[];
46
+ static fromProto(proto: any): MediaUploadResponse;
47
+ constructor(kwargs?: i.MediaUploadResponseInterface);
48
+ toApiJson(): object;
49
+ }
50
+ export declare class SocialPostOutput implements i.SocialPostOutputInterface {
51
+ internalPostId: string;
52
+ socialPost: SocialPost;
53
+ metadata: Metadata[];
54
+ static fromProto(proto: any): SocialPostOutput;
55
+ constructor(kwargs?: i.SocialPostOutputInterface);
56
+ toApiJson(): object;
57
+ }
58
+ export declare class SocialPostRequest implements i.SocialPostRequestInterface {
59
+ socialPost: SocialPost[];
60
+ static fromProto(proto: any): SocialPostRequest;
61
+ constructor(kwargs?: i.SocialPostRequestInterface);
62
+ toApiJson(): object;
63
+ }
64
+ export declare class SocialPostResponse implements i.SocialPostResponseInterface {
65
+ socialPost: SocialPostOutput[];
66
+ static fromProto(proto: any): SocialPostResponse;
67
+ constructor(kwargs?: i.SocialPostResponseInterface);
68
+ toApiJson(): object;
69
+ }
@@ -2,9 +2,9 @@ import * as i from '../interfaces';
2
2
  import { FieldMask } from './field-mask';
3
3
  import { Hashtag } from './hashtag';
4
4
  import { Location, MultilocationPost, MultilocationPostError } from './multilocation-post';
5
+ import { MediaEntry, MetaData, PostTemplate, SocialPostData, SchedulePostStatus } from './social-posts';
5
6
  import { PixabayImage } from './pixabay-image';
6
- import { PostTemplate } from './post-templates';
7
- import { SocialPost, SocialPostData, SchedulePostStatus } 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';
@@ -40,6 +40,9 @@ export declare class CreatePostTemplateRequest implements i.CreatePostTemplateRe
40
40
  previews: string;
41
41
  options: string[];
42
42
  videoUrl: string;
43
+ mediaEntries: MediaEntry[];
44
+ metaData: MetaData[];
45
+ postType: e.PostType;
43
46
  static fromProto(proto: any): CreatePostTemplateRequest;
44
47
  constructor(kwargs?: i.CreatePostTemplateRequestInterface);
45
48
  toApiJson(): object;
@@ -435,6 +438,9 @@ export declare class UpdatePostTemplateRequest implements i.UpdatePostTemplateRe
435
438
  previews: string;
436
439
  options: string[];
437
440
  videoUrl: string;
441
+ mediaEntries: MediaEntry[];
442
+ metaData: MetaData[];
443
+ postType: e.PostType;
438
444
  static fromProto(proto: any): UpdatePostTemplateRequest;
439
445
  constructor(kwargs?: i.UpdatePostTemplateRequestInterface);
440
446
  toApiJson(): object;
@@ -1,9 +1,11 @@
1
- export { CallToAction, Error, Event, SchedulePostStatus, SocialPost, SocialPostData, } from './social-posts';
1
+ export { FieldMask, } from './field-mask';
2
+ export { Hashtag, } from './hashtag';
3
+ export { Location, MultilocationPost, MultilocationPostError, } from './multilocation-post';
2
4
  export { PixabayImage, } from './pixabay-image';
3
5
  export { FacebookPostStats, SocialPostStats, TwitterPostStats, } from './social-post-stats';
4
- export { PostTemplate, } from './post-templates';
5
- export { Location, MultilocationPost, MultilocationPostError, } from './multilocation-post';
6
- export { FieldMask, } from './field-mask';
7
6
  export { TenorGifMediaEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
8
- export { Hashtag, } from './hashtag';
7
+ export { CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SchedulePostStatus, SocialPost, SocialPostData, } from './social-posts';
9
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
+ export { Link, Metadata, PostAction, PostContent, PostCustomization, PostEvent, PostMedia, SocialPost as SocialPostV2, } from './social-post-v2';
10
+ export { Media, } from './linkedin-v2';
11
+ export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageCreated, MediaUploadRequest, MediaUploadResponse, SocialPostOutput, SocialPostRequest, SocialPostResponse, } from './api-v2';
@@ -0,0 +1,10 @@
1
+ import * as i from '../interfaces';
2
+ import * as e from '../enums';
3
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class Media implements i.MediaInterface {
5
+ url: string;
6
+ mediaType: e.MediaType;
7
+ static fromProto(proto: any): Media;
8
+ constructor(kwargs?: i.MediaInterface);
9
+ toApiJson(): object;
10
+ }
@@ -0,0 +1,72 @@
1
+ import * as i from '../interfaces';
2
+ import * as e from '../enums';
3
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class Link implements i.LinkInterface {
5
+ name: string;
6
+ picture: string;
7
+ description: string;
8
+ title: string;
9
+ url: string;
10
+ shortcode: string;
11
+ static fromProto(proto: any): Link;
12
+ constructor(kwargs?: i.LinkInterface);
13
+ toApiJson(): object;
14
+ }
15
+ export declare class Metadata implements i.MetadataInterface {
16
+ name: string;
17
+ value: string;
18
+ static fromProto(proto: any): Metadata;
19
+ constructor(kwargs?: i.MetadataInterface);
20
+ toApiJson(): object;
21
+ }
22
+ export declare class PostAction implements i.PostActionInterface {
23
+ type: string;
24
+ linkUrl: string;
25
+ static fromProto(proto: any): PostAction;
26
+ constructor(kwargs?: i.PostActionInterface);
27
+ toApiJson(): object;
28
+ }
29
+ export declare class PostContent implements i.PostContentInterface {
30
+ postText: string;
31
+ media: PostMedia[];
32
+ link: Link[];
33
+ static fromProto(proto: any): PostContent;
34
+ constructor(kwargs?: i.PostContentInterface);
35
+ toApiJson(): object;
36
+ }
37
+ export declare class PostCustomization implements i.PostCustomizationInterface {
38
+ event: PostEvent;
39
+ action: PostAction;
40
+ static fromProto(proto: any): PostCustomization;
41
+ constructor(kwargs?: i.PostCustomizationInterface);
42
+ toApiJson(): object;
43
+ }
44
+ export declare class PostEvent implements i.PostEventInterface {
45
+ title: string;
46
+ start: Date;
47
+ end: Date;
48
+ static fromProto(proto: any): PostEvent;
49
+ constructor(kwargs?: i.PostEventInterface);
50
+ toApiJson(): object;
51
+ }
52
+ export declare class PostMedia implements i.PostMediaInterface {
53
+ mediaId: string;
54
+ mediaUrl: string;
55
+ mediaType: string;
56
+ containerId: string;
57
+ metadata: Metadata[];
58
+ static fromProto(proto: any): PostMedia;
59
+ constructor(kwargs?: i.PostMediaInterface);
60
+ toApiJson(): object;
61
+ }
62
+ export declare class SocialPost implements i.SocialPostInterface {
63
+ businessId: string;
64
+ socialServiceId: string;
65
+ postContent: PostContent;
66
+ scheduled: Date;
67
+ customization: PostCustomization;
68
+ postType: e.PostType;
69
+ static fromProto(proto: any): SocialPost;
70
+ constructor(kwargs?: i.SocialPostInterface);
71
+ toApiJson(): object;
72
+ }
@@ -23,6 +23,45 @@ export declare class Event implements i.EventInterface {
23
23
  constructor(kwargs?: i.EventInterface);
24
24
  toApiJson(): object;
25
25
  }
26
+ export declare class MediaEntry implements i.MediaEntryInterface {
27
+ mediaEntryId: string;
28
+ mediaUrl: string;
29
+ mediaType: string;
30
+ containerId: string;
31
+ metaData: MetaData[];
32
+ static fromProto(proto: any): MediaEntry;
33
+ constructor(kwargs?: i.MediaEntryInterface);
34
+ toApiJson(): object;
35
+ }
36
+ export declare class MetaData implements i.MetaDataInterface {
37
+ propertyName: string;
38
+ propertyValue: string;
39
+ static fromProto(proto: any): MetaData;
40
+ constructor(kwargs?: i.MetaDataInterface);
41
+ toApiJson(): object;
42
+ }
43
+ export declare class PostTemplate implements i.PostTemplateInterface {
44
+ accountGroupId: string;
45
+ templateId: string;
46
+ title: string;
47
+ created: Date;
48
+ updated: Date;
49
+ postText: string;
50
+ postDateTime: Date;
51
+ gmbPostCustomization: string;
52
+ imageUrl: string;
53
+ imagePath: string;
54
+ imageSize: string;
55
+ previews: string;
56
+ options: string[];
57
+ videoUrl: string;
58
+ mediaEntries: MediaEntry[];
59
+ metaData: MetaData[];
60
+ postType: e.PostType;
61
+ static fromProto(proto: any): PostTemplate;
62
+ constructor(kwargs?: i.PostTemplateInterface);
63
+ toApiJson(): object;
64
+ }
26
65
  export declare class SchedulePostStatus implements i.SchedulePostStatusInterface {
27
66
  socialPostId: string;
28
67
  socialServiceId: string;
@@ -59,6 +98,9 @@ export declare class SocialPost implements i.SocialPostInterface {
59
98
  linkPreviewImageUrl: string;
60
99
  brandId: string;
61
100
  multilocationPostId: string;
101
+ postType: e.PostType;
102
+ mediaEntries: MediaEntry[];
103
+ metaData: MetaData[];
62
104
  static fromProto(proto: any): SocialPost;
63
105
  constructor(kwargs?: i.SocialPostInterface);
64
106
  toApiJson(): object;
@@ -0,0 +1,17 @@
1
+ import { CreateImageRequest, CreateImageResponse, SocialPostRequest, SocialPostResponse } from './objects/';
2
+ import { CreateImageRequestInterface, SocialPostRequestInterface } from './interfaces/';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { HostService } from '../_generated/host.service';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SocialPostsV2ApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ scheduleSocialPosts(r: SocialPostRequest | SocialPostRequestInterface): Observable<SocialPostResponse>;
14
+ createImages(r: CreateImageRequest | CreateImageRequestInterface): Observable<CreateImageResponse>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsV2ApiService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsV2ApiService>;
17
+ }
@@ -2,12 +2,13 @@ import { HttpResponse } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { CreatePostTemplateResponse, GetPostTemplateResponse, ListPostTemplatesResponse } from './_internal/objects/api';
4
4
  import { PostTemplatesApiService } from './_internal/post-templates.api.service';
5
+ import { MediaEntry, MetaData, PostType } from "./_internal";
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class PostTemplatesService {
7
8
  private socialPostsApiService;
8
9
  constructor(socialPostsApiService: PostTemplatesApiService);
9
- updatePostTemplate(accountGroupId: string, templateId: string, title: string, postText: string, postDateTime: Date, gmbPostCustomization: string, imageUrl: string, imagePath: string, imageSize: string, previews: string, options: string[], videoUrl: string): Observable<HttpResponse<null>>;
10
- createPostTemplate(accountGroupId: string, title: string, postText: string, postDateTime: Date, gmbPostCustomization: string, imageUrl: string, imagePath: string, imageSize: string, previews: string, options: string[], videoUrl: string): Observable<CreatePostTemplateResponse>;
10
+ updatePostTemplate(accountGroupId: string, templateId: string, title: string, postText: string, postDateTime: Date, gmbPostCustomization: string, imageUrl: string, imagePath: string, imageSize: string, previews: string, options: string[], videoUrl: string, postType?: PostType, mediaEntries?: MediaEntry[], metadata?: MetaData[]): Observable<HttpResponse<null>>;
11
+ createPostTemplate(accountGroupId: string, title: string, postText: string, postDateTime: Date, gmbPostCustomization: string, imageUrl: string, imagePath: string, imageSize: string, previews: string, options: string[], videoUrl: string, postType?: PostType, mediaEntries?: MediaEntry[], metadata?: MetaData[]): Observable<CreatePostTemplateResponse>;
11
12
  getPostTemplate(accountGroupId: string, templateId: string): Observable<GetPostTemplateResponse>;
12
13
  listPostTemplates(accountGroupId: string, cursor: string, pageSize: number): Observable<ListPostTemplatesResponse>;
13
14
  deletePostTemplate(accountGroupId: string, templateId: string): Observable<HttpResponse<null>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.5.0",
3
+ "version": "5.7.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.2",
6
6
  "@angular/core": "^14.0.2"
@@ -1,8 +0,0 @@
1
- // *********************************
2
- // Code generated by sdkgen
3
- // DO NOT EDIT!.
4
- //
5
- // Interfaces.
6
- // *********************************
7
- export {};
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdC10ZW1wbGF0ZXMuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc29jaWFsX3Bvc3RzX3Nkay9zcmMvbGliL19pbnRlcm5hbC9pbnRlcmZhY2VzL3Bvc3QtdGVtcGxhdGVzLmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQ0FBb0M7QUFDcEMsMkJBQTJCO0FBQzNCLGdCQUFnQjtBQUNoQixFQUFFO0FBQ0YsY0FBYztBQUNkLG9DQUFvQyIsInNvdXJjZXNDb250ZW50IjpbIi8vICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxuLy8gQ29kZSBnZW5lcmF0ZWQgYnkgc2RrZ2VuXG4vLyBETyBOT1QgRURJVCEuXG4vL1xuLy8gSW50ZXJmYWNlcy5cbi8vICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxuXG5pbXBvcnQgKiBhcyBlIGZyb20gJy4uL2VudW1zJztcblxuZXhwb3J0IGludGVyZmFjZSBQb3N0VGVtcGxhdGVJbnRlcmZhY2Uge1xuICAgIGFjY291bnRHcm91cElkPzogc3RyaW5nO1xuICAgIHRlbXBsYXRlSWQ/OiBzdHJpbmc7XG4gICAgdGl0bGU/OiBzdHJpbmc7XG4gICAgY3JlYXRlZD86IERhdGU7XG4gICAgdXBkYXRlZD86IERhdGU7XG4gICAgcG9zdFRleHQ/OiBzdHJpbmc7XG4gICAgcG9zdERhdGVUaW1lPzogRGF0ZTtcbiAgICBnbWJQb3N0Q3VzdG9taXphdGlvbj86IHN0cmluZztcbiAgICBpbWFnZVVybD86IHN0cmluZztcbiAgICBpbWFnZVBhdGg/OiBzdHJpbmc7XG4gICAgaW1hZ2VTaXplPzogc3RyaW5nO1xuICAgIHByZXZpZXdzPzogc3RyaW5nO1xuICAgIG9wdGlvbnM/OiBzdHJpbmdbXTtcbiAgICB2aWRlb1VybD86IHN0cmluZztcbn1cblxuIl19