@vendasta/social-posts 5.16.1 → 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.
- package/esm2020/lib/_internal/enums/social-posts.enum.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/multilocation-post.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +14 -2
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/multilocation-post.mjs +8 -2
- package/esm2020/lib/_internal/objects/social-posts.mjs +27 -1
- package/esm2020/lib/multilocation-posts.service.mjs +6 -4
- package/fesm2015/vendasta-social-posts.mjs +51 -4
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +51 -4
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/social-posts.enum.d.ts +2 -1
- package/lib/_internal/interfaces/api.interface.d.ts +3 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/multilocation-post.interface.d.ts +2 -1
- package/lib/_internal/interfaces/social-posts.interface.d.ts +4 -0
- package/lib/_internal/objects/api.d.ts +3 -1
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/multilocation-post.d.ts +2 -1
- package/lib/_internal/objects/social-posts.d.ts +7 -0
- package/lib/multilocation-posts.service.d.ts +3 -3
- 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) {
|
|
@@ -436,6 +437,32 @@ class PostTemplate {
|
|
|
436
437
|
return toReturn;
|
|
437
438
|
}
|
|
438
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
|
+
}
|
|
439
466
|
class SchedulePostStatus {
|
|
440
467
|
static fromProto(proto) {
|
|
441
468
|
let m = new SchedulePostStatus();
|
|
@@ -727,6 +754,9 @@ class MultilocationPost {
|
|
|
727
754
|
if (proto.customization) {
|
|
728
755
|
m.customization = PostCustomization.fromProto(proto.customization);
|
|
729
756
|
}
|
|
757
|
+
if (proto.postTypes) {
|
|
758
|
+
m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
|
|
759
|
+
}
|
|
730
760
|
return m;
|
|
731
761
|
}
|
|
732
762
|
constructor(kwargs) {
|
|
@@ -782,6 +812,9 @@ class MultilocationPost {
|
|
|
782
812
|
if (typeof this.linkShortCode !== 'undefined') {
|
|
783
813
|
toReturn['linkShortCode'] = this.linkShortCode;
|
|
784
814
|
}
|
|
815
|
+
if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
|
|
816
|
+
toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
|
|
817
|
+
}
|
|
785
818
|
return toReturn;
|
|
786
819
|
}
|
|
787
820
|
}
|
|
@@ -1292,6 +1325,9 @@ class CreateMultilocationPostRequest {
|
|
|
1292
1325
|
if (proto.customization) {
|
|
1293
1326
|
m.customization = PostCustomization.fromProto(proto.customization);
|
|
1294
1327
|
}
|
|
1328
|
+
if (proto.postTypes) {
|
|
1329
|
+
m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
|
|
1330
|
+
}
|
|
1295
1331
|
return m;
|
|
1296
1332
|
}
|
|
1297
1333
|
constructor(kwargs) {
|
|
@@ -1338,6 +1374,9 @@ class CreateMultilocationPostRequest {
|
|
|
1338
1374
|
if (typeof this.linkShortCode !== 'undefined') {
|
|
1339
1375
|
toReturn['linkShortCode'] = this.linkShortCode;
|
|
1340
1376
|
}
|
|
1377
|
+
if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
|
|
1378
|
+
toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
|
|
1379
|
+
}
|
|
1341
1380
|
return toReturn;
|
|
1342
1381
|
}
|
|
1343
1382
|
}
|
|
@@ -1613,6 +1652,9 @@ class EditMultilocationPostRequest {
|
|
|
1613
1652
|
if (proto.customization) {
|
|
1614
1653
|
m.customization = PostCustomization.fromProto(proto.customization);
|
|
1615
1654
|
}
|
|
1655
|
+
if (proto.postTypes) {
|
|
1656
|
+
m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
|
|
1657
|
+
}
|
|
1616
1658
|
return m;
|
|
1617
1659
|
}
|
|
1618
1660
|
constructor(kwargs) {
|
|
@@ -1665,6 +1707,9 @@ class EditMultilocationPostRequest {
|
|
|
1665
1707
|
if (typeof this.linkShortCode !== 'undefined') {
|
|
1666
1708
|
toReturn['linkShortCode'] = this.linkShortCode;
|
|
1667
1709
|
}
|
|
1710
|
+
if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
|
|
1711
|
+
toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
|
|
1712
|
+
}
|
|
1668
1713
|
return toReturn;
|
|
1669
1714
|
}
|
|
1670
1715
|
}
|
|
@@ -4283,7 +4328,7 @@ class MultilocationPostsService {
|
|
|
4283
4328
|
constructor(multilocationApiService) {
|
|
4284
4329
|
this.multilocationApiService = multilocationApiService;
|
|
4285
4330
|
}
|
|
4286
|
-
createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata) {
|
|
4331
|
+
createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata, postTypes) {
|
|
4287
4332
|
const req = new CreateMultilocationPostRequest({
|
|
4288
4333
|
brandId: brandId,
|
|
4289
4334
|
text: text,
|
|
@@ -4296,10 +4341,11 @@ class MultilocationPostsService {
|
|
|
4296
4341
|
metaData: metadata,
|
|
4297
4342
|
customization: postCustomization,
|
|
4298
4343
|
linkShortCode: linkShortCode,
|
|
4344
|
+
postTypes: postTypes
|
|
4299
4345
|
});
|
|
4300
4346
|
return this.multilocationApiService.createMultilocationPost(req);
|
|
4301
4347
|
}
|
|
4302
|
-
editMultilocationPost(brandId, multilocationId, text, media, gifs, videos, scheduledDate, locations, fieldMask, mediaEntries, postCustomization, linkShortCode, metadata) {
|
|
4348
|
+
editMultilocationPost(brandId, multilocationId, text, media, gifs, videos, scheduledDate, locations, fieldMask, mediaEntries, postCustomization, linkShortCode, metadata, postTypes) {
|
|
4303
4349
|
const req = new EditMultilocationPostRequest({
|
|
4304
4350
|
brandId: brandId,
|
|
4305
4351
|
multilocationId: multilocationId,
|
|
@@ -4313,7 +4359,8 @@ class MultilocationPostsService {
|
|
|
4313
4359
|
mediaEntries: mediaEntries,
|
|
4314
4360
|
customization: postCustomization,
|
|
4315
4361
|
linkShortCode: linkShortCode,
|
|
4316
|
-
metaData: metadata
|
|
4362
|
+
metaData: metadata,
|
|
4363
|
+
postTypes: postTypes
|
|
4317
4364
|
});
|
|
4318
4365
|
return this.multilocationApiService.editMultilocationPost(req);
|
|
4319
4366
|
}
|
|
@@ -4496,5 +4543,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
4496
4543
|
* Generated bundle index. Do not edit.
|
|
4497
4544
|
*/
|
|
4498
4545
|
|
|
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 };
|
|
4546
|
+
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
4547
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|