@vendasta/social-posts 5.9.2 → 5.9.3
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/fesm2015/vendasta-social-posts.mjs +6 -0
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +6 -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/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
|
}
|