@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
|
}
|
|
@@ -4284,7 +4329,7 @@ class MultilocationPostsService {
|
|
|
4284
4329
|
constructor(multilocationApiService) {
|
|
4285
4330
|
this.multilocationApiService = multilocationApiService;
|
|
4286
4331
|
}
|
|
4287
|
-
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) {
|
|
4288
4333
|
const req = new CreateMultilocationPostRequest({
|
|
4289
4334
|
brandId: brandId,
|
|
4290
4335
|
text: text,
|
|
@@ -4297,10 +4342,11 @@ class MultilocationPostsService {
|
|
|
4297
4342
|
metaData: metadata,
|
|
4298
4343
|
customization: postCustomization,
|
|
4299
4344
|
linkShortCode: linkShortCode,
|
|
4345
|
+
postTypes: postTypes
|
|
4300
4346
|
});
|
|
4301
4347
|
return this.multilocationApiService.createMultilocationPost(req);
|
|
4302
4348
|
}
|
|
4303
|
-
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) {
|
|
4304
4350
|
const req = new EditMultilocationPostRequest({
|
|
4305
4351
|
brandId: brandId,
|
|
4306
4352
|
multilocationId: multilocationId,
|
|
@@ -4314,7 +4360,8 @@ class MultilocationPostsService {
|
|
|
4314
4360
|
mediaEntries: mediaEntries,
|
|
4315
4361
|
customization: postCustomization,
|
|
4316
4362
|
linkShortCode: linkShortCode,
|
|
4317
|
-
metaData: metadata
|
|
4363
|
+
metaData: metadata,
|
|
4364
|
+
postTypes: postTypes
|
|
4318
4365
|
});
|
|
4319
4366
|
return this.multilocationApiService.editMultilocationPost(req);
|
|
4320
4367
|
}
|
|
@@ -4497,5 +4544,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
4497
4544
|
* Generated bundle index. Do not edit.
|
|
4498
4545
|
*/
|
|
4499
4546
|
|
|
4500
|
-
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 };
|
|
4501
4548
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|