@vendasta/social-posts 5.40.0 → 5.41.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.
@@ -0,0 +1,4 @@
1
+ export declare enum BulkPostStatus {
2
+ SUCCESS = 0,
3
+ FAILURE = 1
4
+ }
@@ -1,5 +1,6 @@
1
1
  export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength, PostType, PostingStatus, YoutubeCustomizationPrivacyStatus, SocialPostService, TemplateType, } from './social-posts.enum';
2
2
  export { RemoveReason, } from './multilocation-post.enum';
3
+ export { BulkPostStatus, } from './api.enum';
3
4
  export { PostStatusV2, PostTypeV2, YoutubeCustomizationV2PrivacyStatusV2, } from './social-post-v2.enum';
4
5
  export { MediaType, } from './linkedin-v2.enum';
5
6
  export { ContentLength, GenerateType, Network, PostCategory, Tone, } from './api-v2.enum';
@@ -1,11 +1,20 @@
1
1
  import { FieldMaskInterface } from './field-mask.interface';
2
2
  import { HashtagInterface } from './hashtag.interface';
3
- import { LocationInterface, PostCustomizationInterface, MultilocationPostInterface, MultilocationPostErrorInterface } from './multilocation-post.interface';
3
+ import { LocationInterface, BulkUploadMultilocationInterface, MultilocationPostErrorInterface, PostCustomizationInterface, MultilocationPostInterface } from './multilocation-post.interface';
4
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';
8
8
  import * as e from '../enums';
9
+ export interface BulkCreateMultilocationPostRequestInterface {
10
+ brandId?: string;
11
+ locations?: LocationInterface[];
12
+ request?: BulkUploadMultilocationInterface[];
13
+ }
14
+ export interface BulkCreateMultilocationPostResponseInterface {
15
+ status?: e.BulkPostStatus;
16
+ error?: MultilocationPostErrorInterface[];
17
+ }
9
18
  export interface CreateMultilocationPostRequestInterface {
10
19
  brandId?: string;
11
20
  text?: string;
@@ -1,11 +1,11 @@
1
1
  export { FieldMaskInterface, } from './field-mask.interface';
2
2
  export { HashtagInterface, } from './hashtag.interface';
3
3
  export { BlogPostCustomizationInterface, CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialCampaignInterface, SocialPostInterface, SocialPostDataInterface, TikTokCustomizationInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
4
- export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, PostActionInterface, PostCustomizationInterface, PostEventInterface, } from './multilocation-post.interface';
4
+ export { BulkUploadMultilocationInterface, 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';
7
7
  export { TenorGifMediaMapEntryInterface, TenorGifInterface, TenorMediaObjectInterface, } from './tenor-gif.interface';
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';
8
+ export { BulkCreateMultilocationPostRequestInterface, BulkCreateMultilocationPostResponseInterface, 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 { AccessInterface, } from './annotations.interface';
10
10
  export { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, TikTokCustomizationV2Interface, YoutubeCustomizationV2Interface, } from './social-post-v2.interface';
11
11
  export { MediaInterface, } from './linkedin-v2.interface';
@@ -1,4 +1,18 @@
1
1
  import { MediaEntryInterface, MetaDataInterface, SSIDPostTypeInterface } from './social-posts.interface';
2
+ export interface BulkUploadMultilocationInterface {
3
+ text?: string;
4
+ media?: string[];
5
+ scheduledDate?: Date;
6
+ gifs?: string[];
7
+ videos?: string[];
8
+ mediaEntries?: MediaEntryInterface[];
9
+ metaData?: MetaDataInterface[];
10
+ tags?: string[];
11
+ customization?: PostCustomizationInterface;
12
+ linkShortCode?: string;
13
+ postTypes?: SSIDPostTypeInterface[];
14
+ multilocationId?: string;
15
+ }
2
16
  export interface LocationInterface {
3
17
  socialServiceIds?: string[];
4
18
  accountGroupId?: string;
@@ -1,5 +1,5 @@
1
- import { CreateMultilocationPostRequest, CreateMultilocationPostResponse, DeleteMultilocationPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, RemoveFromMultilocationPostRequest } from './objects/';
2
- import { CreateMultilocationPostRequestInterface, DeleteMultilocationPostRequestInterface, EditMultilocationPostRequestInterface, GetMultilocationPostRequestInterface, ListMultilocationPostsForBrandRequestInterface, RemoveFromMultilocationPostRequestInterface } from './interfaces/';
1
+ import { BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, DeleteMultilocationPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, RemoveFromMultilocationPostRequest } from './objects/';
2
+ import { BulkCreateMultilocationPostRequestInterface, CreateMultilocationPostRequestInterface, DeleteMultilocationPostRequestInterface, EditMultilocationPostRequestInterface, GetMultilocationPostRequestInterface, ListMultilocationPostsForBrandRequestInterface, RemoveFromMultilocationPostRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -14,6 +14,7 @@ export declare class MultilocationPostApiService {
14
14
  listMultilocationPostsForBrand(r: ListMultilocationPostsForBrandRequest | ListMultilocationPostsForBrandRequestInterface): Observable<ListMultilocationPostsForBrandResponse>;
15
15
  deleteMultilocationPost(r: DeleteMultilocationPostRequest | DeleteMultilocationPostRequestInterface): Observable<HttpResponse<null>>;
16
16
  getMultilocationPost(r: GetMultilocationPostRequest | GetMultilocationPostRequestInterface): Observable<GetMultilocationPostResponse>;
17
+ bulkCreateMultilocationPost(r: BulkCreateMultilocationPostRequest | BulkCreateMultilocationPostRequestInterface): Observable<BulkCreateMultilocationPostResponse>;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MultilocationPostApiService, never>;
18
19
  static ɵprov: i0.ɵɵInjectableDeclaration<MultilocationPostApiService>;
19
20
  }
@@ -1,13 +1,28 @@
1
1
  import * as i from '../interfaces';
2
2
  import { FieldMask } from './field-mask';
3
3
  import { Hashtag } from './hashtag';
4
- import { Location, PostCustomization, MultilocationPost, MultilocationPostError } from './multilocation-post';
4
+ import { Location, BulkUploadMultilocation, MultilocationPostError, PostCustomization, MultilocationPost } from './multilocation-post';
5
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';
9
9
  import * as e from '../enums';
10
10
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
11
+ export declare class BulkCreateMultilocationPostRequest implements i.BulkCreateMultilocationPostRequestInterface {
12
+ brandId: string;
13
+ locations: Location[];
14
+ request: BulkUploadMultilocation[];
15
+ static fromProto(proto: any): BulkCreateMultilocationPostRequest;
16
+ constructor(kwargs?: i.BulkCreateMultilocationPostRequestInterface);
17
+ toApiJson(): object;
18
+ }
19
+ export declare class BulkCreateMultilocationPostResponse implements i.BulkCreateMultilocationPostResponseInterface {
20
+ status: e.BulkPostStatus;
21
+ error: MultilocationPostError[];
22
+ static fromProto(proto: any): BulkCreateMultilocationPostResponse;
23
+ constructor(kwargs?: i.BulkCreateMultilocationPostResponseInterface);
24
+ toApiJson(): object;
25
+ }
11
26
  export declare class CreateMultilocationPostRequest implements i.CreateMultilocationPostRequestInterface {
12
27
  brandId: string;
13
28
  text: string;
@@ -1,11 +1,11 @@
1
1
  export { FieldMask, } from './field-mask';
2
2
  export { Hashtag, } from './hashtag';
3
3
  export { BlogPostCustomization, CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialCampaign, SocialPost, SocialPostData, TikTokCustomization, YoutubeCustomization, } from './social-posts';
4
- export { Location, MultilocationPost, MultilocationPostError, PostAction, PostCustomization, PostEvent, } from './multilocation-post';
4
+ export { BulkUploadMultilocation, 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';
7
7
  export { TenorGifMediaMapEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
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';
8
+ export { BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, 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 { Access, } from './annotations';
10
10
  export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, TikTokCustomizationV2, YoutubeCustomizationV2, } from './social-post-v2';
11
11
  export { Media, } from './linkedin-v2';
@@ -1,6 +1,23 @@
1
1
  import * as i from '../interfaces';
2
2
  import { MediaEntry, MetaData, SSIDPostType } from './social-posts';
3
3
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class BulkUploadMultilocation implements i.BulkUploadMultilocationInterface {
5
+ text: string;
6
+ media: string[];
7
+ scheduledDate: Date;
8
+ gifs: string[];
9
+ videos: string[];
10
+ mediaEntries: MediaEntry[];
11
+ metaData: MetaData[];
12
+ tags: string[];
13
+ customization: PostCustomization;
14
+ linkShortCode: string;
15
+ postTypes: SSIDPostType[];
16
+ multilocationId: string;
17
+ static fromProto(proto: any): BulkUploadMultilocation;
18
+ constructor(kwargs?: i.BulkUploadMultilocationInterface);
19
+ toApiJson(): object;
20
+ }
4
21
  export declare class Location implements i.LocationInterface {
5
22
  socialServiceIds: string[];
6
23
  accountGroupId: string;
@@ -1,6 +1,6 @@
1
1
  import { HttpResponse } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { CreateMultilocationPostResponse, EditMultilocationPostResponse, GetMultilocationPostResponse, ListMultilocationPostsForBrandResponse } from './_internal/objects/api';
3
+ import { CreateMultilocationPostResponse, EditMultilocationPostResponse, GetMultilocationPostResponse, ListMultilocationPostsForBrandResponse, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse } from './_internal/objects/api';
4
4
  import { MultilocationPostApiService } from './_internal/multilocation-post.api.service';
5
5
  import { FieldMask } from './_internal/objects/field-mask';
6
6
  import { Location, PostCustomization } from './_internal/objects/multilocation-post';
@@ -16,6 +16,7 @@ export declare class MultilocationPostsService {
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>>;
18
18
  getMultilocationPost(brandId: string, multilocationId: string): Observable<GetMultilocationPostResponse>;
19
+ bulkCreateMultilocationPost(BulkCreateMultilocationPostRequest: BulkCreateMultilocationPostRequest): Observable<BulkCreateMultilocationPostResponse>;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MultilocationPostsService, never>;
20
21
  static ɵprov: i0.ɵɵInjectableDeclaration<MultilocationPostsService>;
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.40.0",
3
+ "version": "5.41.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"