@vendasta/social-posts 5.16.0 → 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.
Files changed (27) hide show
  1. package/esm2020/lib/_internal/enums/social-post-v2.enum.mjs +2 -1
  2. package/esm2020/lib/_internal/enums/social-posts.enum.mjs +2 -1
  3. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/multilocation-post.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/objects/api.mjs +14 -2
  8. package/esm2020/lib/_internal/objects/index.mjs +2 -2
  9. package/esm2020/lib/_internal/objects/multilocation-post.mjs +8 -2
  10. package/esm2020/lib/_internal/objects/social-posts.mjs +27 -1
  11. package/esm2020/lib/multilocation-posts.service.mjs +6 -4
  12. package/fesm2015/vendasta-social-posts.mjs +52 -4
  13. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  14. package/fesm2020/vendasta-social-posts.mjs +52 -4
  15. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  16. package/lib/_internal/enums/social-post-v2.enum.d.ts +2 -1
  17. package/lib/_internal/enums/social-posts.enum.d.ts +2 -1
  18. package/lib/_internal/interfaces/api.interface.d.ts +3 -1
  19. package/lib/_internal/interfaces/index.d.ts +1 -1
  20. package/lib/_internal/interfaces/multilocation-post.interface.d.ts +2 -1
  21. package/lib/_internal/interfaces/social-posts.interface.d.ts +4 -0
  22. package/lib/_internal/objects/api.d.ts +3 -1
  23. package/lib/_internal/objects/index.d.ts +1 -1
  24. package/lib/_internal/objects/multilocation-post.d.ts +2 -1
  25. package/lib/_internal/objects/social-posts.d.ts +7 -0
  26. package/lib/multilocation-posts.service.d.ts +3 -3
  27. package/package.json +1 -1
@@ -107,6 +107,7 @@ var PostType;
107
107
  PostType[PostType["POST_TYPE_REEL"] = 4] = "POST_TYPE_REEL";
108
108
  PostType[PostType["POST_TYPE_CAROUSEL"] = 5] = "POST_TYPE_CAROUSEL";
109
109
  PostType[PostType["POST_TYPE_STORIES"] = 6] = "POST_TYPE_STORIES";
110
+ PostType[PostType["POST_TYPE_TEXT"] = 7] = "POST_TYPE_TEXT";
110
111
  })(PostType || (PostType = {}));
111
112
  var PostingStatus;
112
113
  (function (PostingStatus) {
@@ -172,6 +173,7 @@ var PostTypeV2;
172
173
  PostTypeV2[PostTypeV2["POST_TYPE_GIF"] = 3] = "POST_TYPE_GIF";
173
174
  PostTypeV2[PostTypeV2["POST_TYPE_MULTI_MEDIA"] = 4] = "POST_TYPE_MULTI_MEDIA";
174
175
  PostTypeV2[PostTypeV2["POST_TYPE_TEXT"] = 5] = "POST_TYPE_TEXT";
176
+ PostTypeV2[PostTypeV2["POST_TYPE_STORIES"] = 6] = "POST_TYPE_STORIES";
175
177
  })(PostTypeV2 || (PostTypeV2 = {}));
176
178
  var YoutubeCustomizationV2PrivacyStatusV2;
177
179
  (function (YoutubeCustomizationV2PrivacyStatusV2) {
@@ -435,6 +437,32 @@ class PostTemplate {
435
437
  return toReturn;
436
438
  }
437
439
  }
440
+ class SSIDPostType {
441
+ static fromProto(proto) {
442
+ let m = new SSIDPostType();
443
+ m = Object.assign(m, proto);
444
+ if (proto.postType) {
445
+ m.postType = enumStringToValue$8(PostType, proto.postType);
446
+ }
447
+ return m;
448
+ }
449
+ constructor(kwargs) {
450
+ if (!kwargs) {
451
+ return;
452
+ }
453
+ Object.assign(this, kwargs);
454
+ }
455
+ toApiJson() {
456
+ const toReturn = {};
457
+ if (typeof this.socialServiceId !== 'undefined') {
458
+ toReturn['socialServiceId'] = this.socialServiceId;
459
+ }
460
+ if (typeof this.postType !== 'undefined') {
461
+ toReturn['postType'] = this.postType;
462
+ }
463
+ return toReturn;
464
+ }
465
+ }
438
466
  class SchedulePostStatus {
439
467
  static fromProto(proto) {
440
468
  let m = new SchedulePostStatus();
@@ -726,6 +754,9 @@ class MultilocationPost {
726
754
  if (proto.customization) {
727
755
  m.customization = PostCustomization.fromProto(proto.customization);
728
756
  }
757
+ if (proto.postTypes) {
758
+ m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
759
+ }
729
760
  return m;
730
761
  }
731
762
  constructor(kwargs) {
@@ -781,6 +812,9 @@ class MultilocationPost {
781
812
  if (typeof this.linkShortCode !== 'undefined') {
782
813
  toReturn['linkShortCode'] = this.linkShortCode;
783
814
  }
815
+ if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
816
+ toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
817
+ }
784
818
  return toReturn;
785
819
  }
786
820
  }
@@ -1291,6 +1325,9 @@ class CreateMultilocationPostRequest {
1291
1325
  if (proto.customization) {
1292
1326
  m.customization = PostCustomization.fromProto(proto.customization);
1293
1327
  }
1328
+ if (proto.postTypes) {
1329
+ m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
1330
+ }
1294
1331
  return m;
1295
1332
  }
1296
1333
  constructor(kwargs) {
@@ -1337,6 +1374,9 @@ class CreateMultilocationPostRequest {
1337
1374
  if (typeof this.linkShortCode !== 'undefined') {
1338
1375
  toReturn['linkShortCode'] = this.linkShortCode;
1339
1376
  }
1377
+ if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
1378
+ toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
1379
+ }
1340
1380
  return toReturn;
1341
1381
  }
1342
1382
  }
@@ -1612,6 +1652,9 @@ class EditMultilocationPostRequest {
1612
1652
  if (proto.customization) {
1613
1653
  m.customization = PostCustomization.fromProto(proto.customization);
1614
1654
  }
1655
+ if (proto.postTypes) {
1656
+ m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
1657
+ }
1615
1658
  return m;
1616
1659
  }
1617
1660
  constructor(kwargs) {
@@ -1664,6 +1707,9 @@ class EditMultilocationPostRequest {
1664
1707
  if (typeof this.linkShortCode !== 'undefined') {
1665
1708
  toReturn['linkShortCode'] = this.linkShortCode;
1666
1709
  }
1710
+ if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
1711
+ toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
1712
+ }
1667
1713
  return toReturn;
1668
1714
  }
1669
1715
  }
@@ -4283,7 +4329,7 @@ class MultilocationPostsService {
4283
4329
  constructor(multilocationApiService) {
4284
4330
  this.multilocationApiService = multilocationApiService;
4285
4331
  }
4286
- createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata) {
4332
+ createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata, postTypes) {
4287
4333
  const req = new CreateMultilocationPostRequest({
4288
4334
  brandId: brandId,
4289
4335
  text: text,
@@ -4296,10 +4342,11 @@ class MultilocationPostsService {
4296
4342
  metaData: metadata,
4297
4343
  customization: postCustomization,
4298
4344
  linkShortCode: linkShortCode,
4345
+ postTypes: postTypes
4299
4346
  });
4300
4347
  return this.multilocationApiService.createMultilocationPost(req);
4301
4348
  }
4302
- editMultilocationPost(brandId, multilocationId, text, media, gifs, videos, scheduledDate, locations, fieldMask, mediaEntries, postCustomization, linkShortCode, metadata) {
4349
+ editMultilocationPost(brandId, multilocationId, text, media, gifs, videos, scheduledDate, locations, fieldMask, mediaEntries, postCustomization, linkShortCode, metadata, postTypes) {
4303
4350
  const req = new EditMultilocationPostRequest({
4304
4351
  brandId: brandId,
4305
4352
  multilocationId: multilocationId,
@@ -4313,7 +4360,8 @@ class MultilocationPostsService {
4313
4360
  mediaEntries: mediaEntries,
4314
4361
  customization: postCustomization,
4315
4362
  linkShortCode: linkShortCode,
4316
- metaData: metadata
4363
+ metaData: metadata,
4364
+ postTypes: postTypes
4317
4365
  });
4318
4366
  return this.multilocationApiService.editMultilocationPost(req);
4319
4367
  }
@@ -4496,5 +4544,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
4496
4544
  * Generated bundle index. Do not edit.
4497
4545
  */
4498
4546
 
4499
- 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, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
4547
+ 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, SSIDPostType, 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, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
4500
4548
  //# sourceMappingURL=vendasta-social-posts.mjs.map