@vendasta/social-posts 5.9.2 → 5.9.4
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/index.mjs +2 -2
- package/esm2020/lib/_internal/interfaces/social-post-v2.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +2 -1
- package/esm2020/lib/_internal/objects/social-post-v2.mjs +7 -1
- package/esm2020/lib/social-post-v2.service.mjs +4 -1
- package/fesm2015/vendasta-social-posts.mjs +9 -0
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +9 -0
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/social-post-v2.interface.d.ts +1 -0
- package/lib/_internal/objects/social-post-v2.d.ts +1 -0
- package/lib/social-post-v2.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2963,6 +2963,9 @@ class SocialPost {
|
|
|
2963
2963
|
if (proto.postType) {
|
|
2964
2964
|
m.postType = enumStringToValue$2(PostType$1, proto.postType);
|
|
2965
2965
|
}
|
|
2966
|
+
if (proto.metadata) {
|
|
2967
|
+
m.metadata = proto.metadata.map(Metadata.fromProto);
|
|
2968
|
+
}
|
|
2966
2969
|
return m;
|
|
2967
2970
|
}
|
|
2968
2971
|
toApiJson() {
|
|
@@ -2988,6 +2991,9 @@ class SocialPost {
|
|
|
2988
2991
|
if (typeof this.internalPostId !== 'undefined') {
|
|
2989
2992
|
toReturn['internalPostId'] = this.internalPostId;
|
|
2990
2993
|
}
|
|
2994
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
2995
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
2996
|
+
}
|
|
2991
2997
|
return toReturn;
|
|
2992
2998
|
}
|
|
2993
2999
|
}
|
|
@@ -4018,6 +4024,9 @@ class SocialPostsV2Service {
|
|
|
4018
4024
|
constructor(socialpostV2ApiService) {
|
|
4019
4025
|
this.socialpostV2ApiService = socialpostV2ApiService;
|
|
4020
4026
|
}
|
|
4027
|
+
scheduleSocialPostV2(socialPost) {
|
|
4028
|
+
return this.socialpostV2ApiService.scheduleSocialPosts(socialPost);
|
|
4029
|
+
}
|
|
4021
4030
|
createImage(businessId, prompt, imageAmount = 3, size = '1024x1024') {
|
|
4022
4031
|
const req = new CreateImageRequest({ businessId: businessId, prompt: prompt, imageAmount: imageAmount, size: size, responseFormat: 'url' });
|
|
4023
4032
|
return this.socialpostV2ApiService.createImages(req);
|