@vendasta/social-posts 5.14.0 → 5.15.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.
@@ -122,6 +122,7 @@ var SocialPostService;
122
122
  SocialPostService[SocialPostService["GOOGLE_MY_BUSINESS"] = 4] = "GOOGLE_MY_BUSINESS";
123
123
  SocialPostService[SocialPostService["UNKNOWN"] = 5] = "UNKNOWN";
124
124
  SocialPostService[SocialPostService["INSTAGRAM"] = 6] = "INSTAGRAM";
125
+ SocialPostService[SocialPostService["CURATED_CONTENT"] = 7] = "CURATED_CONTENT";
125
126
  })(SocialPostService || (SocialPostService = {}));
126
127
  var TemplateType;
127
128
  (function (TemplateType) {
@@ -3165,6 +3166,12 @@ class SocialPostV2 {
3165
3166
  if (typeof this.partnerId !== 'undefined') {
3166
3167
  toReturn['partnerId'] = this.partnerId;
3167
3168
  }
3169
+ if (typeof this.brandId !== 'undefined') {
3170
+ toReturn['brandId'] = this.brandId;
3171
+ }
3172
+ if (typeof this.multilocationPostId !== 'undefined') {
3173
+ toReturn['multilocationPostId'] = this.multilocationPostId;
3174
+ }
3168
3175
  return toReturn;
3169
3176
  }
3170
3177
  }
@@ -3404,6 +3411,29 @@ class MediaUploadResponse {
3404
3411
  return toReturn;
3405
3412
  }
3406
3413
  }
3414
+ class RepostSocialPostRequest {
3415
+ static fromProto(proto) {
3416
+ let m = new RepostSocialPostRequest();
3417
+ m = Object.assign(m, proto);
3418
+ return m;
3419
+ }
3420
+ constructor(kwargs) {
3421
+ if (!kwargs) {
3422
+ return;
3423
+ }
3424
+ Object.assign(this, kwargs);
3425
+ }
3426
+ toApiJson() {
3427
+ const toReturn = {};
3428
+ if (typeof this.socialPostId !== 'undefined') {
3429
+ toReturn['socialPostId'] = this.socialPostId;
3430
+ }
3431
+ if (typeof this.accountGroupId !== 'undefined') {
3432
+ toReturn['accountGroupId'] = this.accountGroupId;
3433
+ }
3434
+ return toReturn;
3435
+ }
3436
+ }
3407
3437
  class SocialPostOutput {
3408
3438
  static fromProto(proto) {
3409
3439
  let m = new SocialPostOutput();
@@ -4004,6 +4034,10 @@ class SocialPostsV2ApiService {
4004
4034
  return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GenerateVariations", request.toApiJson(), this.apiOptions())
4005
4035
  .pipe(map(resp => CreateImageResponse.fromProto(resp)));
4006
4036
  }
4037
+ repostSocialPost(r) {
4038
+ const request = (r.toApiJson) ? r : new RepostSocialPostRequest(r);
4039
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/RepostSocialPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
4040
+ }
4007
4041
  }
4008
4042
  SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SocialPostsV2ApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
4009
4043
  SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
@@ -4124,7 +4158,7 @@ class MultilocationPostsService {
4124
4158
  constructor(multilocationApiService) {
4125
4159
  this.multilocationApiService = multilocationApiService;
4126
4160
  }
4127
- createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, metadata) {
4161
+ createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata) {
4128
4162
  const req = new CreateMultilocationPostRequest({
4129
4163
  brandId: brandId,
4130
4164
  text: text,
@@ -4134,11 +4168,13 @@ class MultilocationPostsService {
4134
4168
  scheduledDate: scheduledDate,
4135
4169
  locations: locations,
4136
4170
  mediaEntries: mediaEntries,
4137
- metaData: metadata
4171
+ metaData: metadata,
4172
+ customization: postCustomization,
4173
+ linkShortCode: linkShortCode,
4138
4174
  });
4139
4175
  return this.multilocationApiService.createMultilocationPost(req);
4140
4176
  }
4141
- editMultilocationPost(brandId, multilocationId, text, media, gifs, videos, scheduledDate, locations, fieldMask, mediaEntries, metadata) {
4177
+ editMultilocationPost(brandId, multilocationId, text, media, gifs, videos, scheduledDate, locations, fieldMask, mediaEntries, postCustomization, linkShortCode, metadata) {
4142
4178
  const req = new EditMultilocationPostRequest({
4143
4179
  brandId: brandId,
4144
4180
  multilocationId: multilocationId,
@@ -4150,6 +4186,8 @@ class MultilocationPostsService {
4150
4186
  locations: locations,
4151
4187
  fieldMask: fieldMask,
4152
4188
  mediaEntries: mediaEntries,
4189
+ customization: postCustomization,
4190
+ linkShortCode: linkShortCode,
4153
4191
  metaData: metadata
4154
4192
  });
4155
4193
  return this.multilocationApiService.editMultilocationPost(req);
@@ -4330,5 +4368,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
4330
4368
  * Generated bundle index. Do not edit.
4331
4369
  */
4332
4370
 
4333
- export { CallToAction, CallToActionCallToActionType, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, ImageBlob, ImageCreated, ImageUrl, LinkV2, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SuggestMessageRequest, SuggestMessageResponse, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse };
4371
+ export { CallToAction, CallToActionCallToActionType, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, ImageBlob, ImageCreated, ImageUrl, LinkV2, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SuggestMessageRequest, SuggestMessageResponse, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse };
4334
4372
  //# sourceMappingURL=vendasta-social-posts.mjs.map