@vendasta/social-posts 5.9.1 → 5.9.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.
@@ -867,7 +867,7 @@ function enumStringToValue$5(enumRef, value) {
867
867
  }
868
868
  return enumRef[value];
869
869
  }
870
- class Link {
870
+ class FacebookPostStats {
871
871
  constructor(kwargs) {
872
872
  if (!kwargs) {
873
873
  return;
@@ -875,34 +875,52 @@ class Link {
875
875
  Object.assign(this, kwargs);
876
876
  }
877
877
  static fromProto(proto) {
878
- let m = new Link();
878
+ let m = new FacebookPostStats();
879
879
  m = Object.assign(m, proto);
880
+ if (proto.commentCount) {
881
+ m.commentCount = parseInt(proto.commentCount, 10);
882
+ }
883
+ if (proto.shareCount) {
884
+ m.shareCount = parseInt(proto.shareCount, 10);
885
+ }
886
+ if (proto.likeCount) {
887
+ m.likeCount = parseInt(proto.likeCount, 10);
888
+ }
889
+ if (proto.reactions) {
890
+ m.reactions = parseInt(proto.reactions, 10);
891
+ }
892
+ if (proto.peopleReached) {
893
+ m.peopleReached = parseInt(proto.peopleReached, 10);
894
+ }
880
895
  return m;
881
896
  }
882
897
  toApiJson() {
883
898
  const toReturn = {};
884
- if (typeof this.name !== 'undefined') {
885
- toReturn['name'] = this.name;
899
+ if (typeof this.commentCount !== 'undefined') {
900
+ toReturn['commentCount'] = this.commentCount;
886
901
  }
887
- if (typeof this.picture !== 'undefined') {
888
- toReturn['picture'] = this.picture;
902
+ if (typeof this.shareCount !== 'undefined') {
903
+ toReturn['shareCount'] = this.shareCount;
889
904
  }
890
- if (typeof this.description !== 'undefined') {
891
- toReturn['description'] = this.description;
905
+ if (typeof this.likeCount !== 'undefined') {
906
+ toReturn['likeCount'] = this.likeCount;
892
907
  }
893
- if (typeof this.title !== 'undefined') {
894
- toReturn['title'] = this.title;
908
+ if (typeof this.hasLike !== 'undefined') {
909
+ toReturn['hasLike'] = this.hasLike;
895
910
  }
896
- if (typeof this.url !== 'undefined') {
897
- toReturn['url'] = this.url;
911
+ if (typeof this.canLike !== 'undefined') {
912
+ toReturn['canLike'] = this.canLike;
898
913
  }
899
- if (typeof this.shortcode !== 'undefined') {
900
- toReturn['shortcode'] = this.shortcode;
914
+ if (typeof this.reactions !== 'undefined') {
915
+ toReturn['reactions'] = this.reactions;
916
+ }
917
+ if (typeof this.peopleReached !== 'undefined') {
918
+ toReturn['peopleReached'] = this.peopleReached;
901
919
  }
902
920
  return toReturn;
903
921
  }
904
922
  }
905
- class Metadata {
923
+ class SocialPostStats {
906
924
  constructor(kwargs) {
907
925
  if (!kwargs) {
908
926
  return;
@@ -910,22 +928,31 @@ class Metadata {
910
928
  Object.assign(this, kwargs);
911
929
  }
912
930
  static fromProto(proto) {
913
- let m = new Metadata();
931
+ let m = new SocialPostStats();
914
932
  m = Object.assign(m, proto);
933
+ if (proto.facebookPostStats) {
934
+ m.facebookPostStats = FacebookPostStats.fromProto(proto.facebookPostStats);
935
+ }
936
+ if (proto.twitterPostStats) {
937
+ m.twitterPostStats = TwitterPostStats.fromProto(proto.twitterPostStats);
938
+ }
915
939
  return m;
916
940
  }
917
941
  toApiJson() {
918
942
  const toReturn = {};
919
- if (typeof this.name !== 'undefined') {
920
- toReturn['name'] = this.name;
943
+ if (typeof this.internalPostId !== 'undefined') {
944
+ toReturn['internalPostId'] = this.internalPostId;
921
945
  }
922
- if (typeof this.value !== 'undefined') {
923
- toReturn['value'] = this.value;
946
+ if (typeof this.facebookPostStats !== 'undefined' && this.facebookPostStats !== null) {
947
+ toReturn['facebookPostStats'] = 'toApiJson' in this.facebookPostStats ? this.facebookPostStats.toApiJson() : this.facebookPostStats;
948
+ }
949
+ if (typeof this.twitterPostStats !== 'undefined' && this.twitterPostStats !== null) {
950
+ toReturn['twitterPostStats'] = 'toApiJson' in this.twitterPostStats ? this.twitterPostStats.toApiJson() : this.twitterPostStats;
924
951
  }
925
952
  return toReturn;
926
953
  }
927
954
  }
928
- class PostAction {
955
+ class TwitterPostStats {
929
956
  constructor(kwargs) {
930
957
  if (!kwargs) {
931
958
  return;
@@ -933,22 +960,41 @@ class PostAction {
933
960
  Object.assign(this, kwargs);
934
961
  }
935
962
  static fromProto(proto) {
936
- let m = new PostAction();
963
+ let m = new TwitterPostStats();
937
964
  m = Object.assign(m, proto);
965
+ if (proto.favourites) {
966
+ m.favourites = parseInt(proto.favourites, 10);
967
+ }
968
+ if (proto.retweets) {
969
+ m.retweets = parseInt(proto.retweets, 10);
970
+ }
938
971
  return m;
939
972
  }
940
973
  toApiJson() {
941
974
  const toReturn = {};
942
- if (typeof this.type !== 'undefined') {
943
- toReturn['type'] = this.type;
975
+ if (typeof this.favourites !== 'undefined') {
976
+ toReturn['favourites'] = this.favourites;
944
977
  }
945
- if (typeof this.linkUrl !== 'undefined') {
946
- toReturn['linkUrl'] = this.linkUrl;
978
+ if (typeof this.hasFavourited !== 'undefined') {
979
+ toReturn['hasFavourited'] = this.hasFavourited;
980
+ }
981
+ if (typeof this.retweets !== 'undefined') {
982
+ toReturn['retweets'] = this.retweets;
983
+ }
984
+ if (typeof this.hasRetweeted !== 'undefined') {
985
+ toReturn['hasRetweeted'] = this.hasRetweeted;
947
986
  }
948
987
  return toReturn;
949
988
  }
950
989
  }
951
- class PostContent {
990
+
991
+ function enumStringToValue$4(enumRef, value) {
992
+ if (typeof value === 'number') {
993
+ return value;
994
+ }
995
+ return enumRef[value];
996
+ }
997
+ class TenorGifMediaEntry {
952
998
  constructor(kwargs) {
953
999
  if (!kwargs) {
954
1000
  return;
@@ -956,31 +1002,25 @@ class PostContent {
956
1002
  Object.assign(this, kwargs);
957
1003
  }
958
1004
  static fromProto(proto) {
959
- let m = new PostContent();
1005
+ let m = new TenorGifMediaEntry();
960
1006
  m = Object.assign(m, proto);
961
- if (proto.media) {
962
- m.media = proto.media.map(PostMedia.fromProto);
963
- }
964
- if (proto.link) {
965
- m.link = proto.link.map(Link.fromProto);
1007
+ if (proto.value) {
1008
+ m.value = TenorMediaObject.fromProto(proto.value);
966
1009
  }
967
1010
  return m;
968
1011
  }
969
1012
  toApiJson() {
970
1013
  const toReturn = {};
971
- if (typeof this.postText !== 'undefined') {
972
- toReturn['postText'] = this.postText;
973
- }
974
- if (typeof this.media !== 'undefined' && this.media !== null) {
975
- toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
1014
+ if (typeof this.key !== 'undefined') {
1015
+ toReturn['key'] = this.key;
976
1016
  }
977
- if (typeof this.link !== 'undefined' && this.link !== null) {
978
- toReturn['link'] = 'toApiJson' in this.link ? this.link.toApiJson() : this.link;
1017
+ if (typeof this.value !== 'undefined' && this.value !== null) {
1018
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
979
1019
  }
980
1020
  return toReturn;
981
1021
  }
982
1022
  }
983
- class PostCustomization {
1023
+ class TenorGif {
984
1024
  constructor(kwargs) {
985
1025
  if (!kwargs) {
986
1026
  return;
@@ -988,28 +1028,37 @@ class PostCustomization {
988
1028
  Object.assign(this, kwargs);
989
1029
  }
990
1030
  static fromProto(proto) {
991
- let m = new PostCustomization();
1031
+ let m = new TenorGif();
992
1032
  m = Object.assign(m, proto);
993
- if (proto.event) {
994
- m.event = PostEvent.fromProto(proto.event);
995
- }
996
- if (proto.action) {
997
- m.action = PostAction.fromProto(proto.action);
1033
+ if (proto.media) {
1034
+ m.media = Object.keys(proto.media).reduce((obj, k) => { obj[k] = TenorMediaObject.fromProto(proto.media[k]); return obj; }, {});
998
1035
  }
999
1036
  return m;
1000
1037
  }
1001
1038
  toApiJson() {
1002
1039
  const toReturn = {};
1003
- if (typeof this.event !== 'undefined' && this.event !== null) {
1004
- toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
1040
+ if (typeof this.media !== 'undefined' && this.media !== null) {
1041
+ toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
1005
1042
  }
1006
- if (typeof this.action !== 'undefined' && this.action !== null) {
1007
- toReturn['action'] = 'toApiJson' in this.action ? this.action.toApiJson() : this.action;
1043
+ if (typeof this.tags !== 'undefined') {
1044
+ toReturn['tags'] = this.tags;
1045
+ }
1046
+ if (typeof this.hasAudio !== 'undefined') {
1047
+ toReturn['hasAudio'] = this.hasAudio;
1048
+ }
1049
+ if (typeof this.title !== 'undefined') {
1050
+ toReturn['title'] = this.title;
1051
+ }
1052
+ if (typeof this.id !== 'undefined') {
1053
+ toReturn['id'] = this.id;
1054
+ }
1055
+ if (typeof this.created !== 'undefined') {
1056
+ toReturn['created'] = this.created;
1008
1057
  }
1009
1058
  return toReturn;
1010
1059
  }
1011
1060
  }
1012
- class PostEvent {
1061
+ class TenorMediaObject {
1013
1062
  constructor(kwargs) {
1014
1063
  if (!kwargs) {
1015
1064
  return;
@@ -1017,31 +1066,41 @@ class PostEvent {
1017
1066
  Object.assign(this, kwargs);
1018
1067
  }
1019
1068
  static fromProto(proto) {
1020
- let m = new PostEvent();
1069
+ let m = new TenorMediaObject();
1021
1070
  m = Object.assign(m, proto);
1022
- if (proto.start) {
1023
- m.start = new Date(proto.start);
1071
+ if (proto.dimensions) {
1072
+ m.dimensions = proto.dimensions.map((i) => parseInt(i, 10));
1024
1073
  }
1025
- if (proto.end) {
1026
- m.end = new Date(proto.end);
1074
+ if (proto.size) {
1075
+ m.size = parseInt(proto.size, 10);
1027
1076
  }
1028
1077
  return m;
1029
1078
  }
1030
1079
  toApiJson() {
1031
1080
  const toReturn = {};
1032
- if (typeof this.title !== 'undefined') {
1033
- toReturn['title'] = this.title;
1081
+ if (typeof this.preview !== 'undefined') {
1082
+ toReturn['preview'] = this.preview;
1034
1083
  }
1035
- if (typeof this.start !== 'undefined' && this.start !== null) {
1036
- toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
1084
+ if (typeof this.url !== 'undefined') {
1085
+ toReturn['url'] = this.url;
1037
1086
  }
1038
- if (typeof this.end !== 'undefined' && this.end !== null) {
1039
- toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
1087
+ if (typeof this.dimensions !== 'undefined') {
1088
+ toReturn['dimensions'] = this.dimensions;
1089
+ }
1090
+ if (typeof this.size !== 'undefined') {
1091
+ toReturn['size'] = this.size;
1040
1092
  }
1041
1093
  return toReturn;
1042
1094
  }
1043
1095
  }
1044
- class PostMedia {
1096
+
1097
+ function enumStringToValue$3(enumRef, value) {
1098
+ if (typeof value === 'number') {
1099
+ return value;
1100
+ }
1101
+ return enumRef[value];
1102
+ }
1103
+ class CreateMultilocationPostRequest {
1045
1104
  constructor(kwargs) {
1046
1105
  if (!kwargs) {
1047
1106
  return;
@@ -1049,34 +1108,43 @@ class PostMedia {
1049
1108
  Object.assign(this, kwargs);
1050
1109
  }
1051
1110
  static fromProto(proto) {
1052
- let m = new PostMedia();
1111
+ let m = new CreateMultilocationPostRequest();
1053
1112
  m = Object.assign(m, proto);
1054
- if (proto.metadata) {
1055
- m.metadata = proto.metadata.map(Metadata.fromProto);
1113
+ if (proto.scheduledDate) {
1114
+ m.scheduledDate = new Date(proto.scheduledDate);
1115
+ }
1116
+ if (proto.locations) {
1117
+ m.locations = proto.locations.map(Location.fromProto);
1056
1118
  }
1057
1119
  return m;
1058
1120
  }
1059
1121
  toApiJson() {
1060
1122
  const toReturn = {};
1061
- if (typeof this.mediaId !== 'undefined') {
1062
- toReturn['mediaId'] = this.mediaId;
1123
+ if (typeof this.brandId !== 'undefined') {
1124
+ toReturn['brandId'] = this.brandId;
1063
1125
  }
1064
- if (typeof this.mediaUrl !== 'undefined') {
1065
- toReturn['mediaUrl'] = this.mediaUrl;
1126
+ if (typeof this.text !== 'undefined') {
1127
+ toReturn['text'] = this.text;
1066
1128
  }
1067
- if (typeof this.mediaType !== 'undefined') {
1068
- toReturn['mediaType'] = this.mediaType;
1129
+ if (typeof this.media !== 'undefined') {
1130
+ toReturn['media'] = this.media;
1069
1131
  }
1070
- if (typeof this.containerId !== 'undefined') {
1071
- toReturn['containerId'] = this.containerId;
1132
+ if (typeof this.scheduledDate !== 'undefined' && this.scheduledDate !== null) {
1133
+ toReturn['scheduledDate'] = 'toApiJson' in this.scheduledDate ? this.scheduledDate.toApiJson() : this.scheduledDate;
1072
1134
  }
1073
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1074
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1135
+ if (typeof this.locations !== 'undefined' && this.locations !== null) {
1136
+ toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
1137
+ }
1138
+ if (typeof this.gifs !== 'undefined') {
1139
+ toReturn['gifs'] = this.gifs;
1140
+ }
1141
+ if (typeof this.videos !== 'undefined') {
1142
+ toReturn['videos'] = this.videos;
1075
1143
  }
1076
1144
  return toReturn;
1077
1145
  }
1078
1146
  }
1079
- class SocialPost {
1147
+ class CreateMultilocationPostResponse {
1080
1148
  constructor(kwargs) {
1081
1149
  if (!kwargs) {
1082
1150
  return;
@@ -1084,56 +1152,99 @@ class SocialPost {
1084
1152
  Object.assign(this, kwargs);
1085
1153
  }
1086
1154
  static fromProto(proto) {
1087
- let m = new SocialPost();
1155
+ let m = new CreateMultilocationPostResponse();
1088
1156
  m = Object.assign(m, proto);
1089
- if (proto.postContent) {
1090
- m.postContent = PostContent.fromProto(proto.postContent);
1091
- }
1092
- if (proto.scheduled) {
1093
- m.scheduled = new Date(proto.scheduled);
1094
- }
1095
- if (proto.customization) {
1096
- m.customization = PostCustomization.fromProto(proto.customization);
1157
+ if (proto.post) {
1158
+ m.post = MultilocationPost.fromProto(proto.post);
1097
1159
  }
1098
- if (proto.postType) {
1099
- m.postType = enumStringToValue$5(PostType$1, proto.postType);
1160
+ if (proto.errors) {
1161
+ m.errors = proto.errors.map(MultilocationPostError.fromProto);
1100
1162
  }
1101
1163
  return m;
1102
1164
  }
1103
1165
  toApiJson() {
1104
1166
  const toReturn = {};
1105
- if (typeof this.businessId !== 'undefined') {
1106
- toReturn['businessId'] = this.businessId;
1167
+ if (typeof this.post !== 'undefined' && this.post !== null) {
1168
+ toReturn['post'] = 'toApiJson' in this.post ? this.post.toApiJson() : this.post;
1107
1169
  }
1108
- if (typeof this.socialServiceId !== 'undefined') {
1109
- toReturn['socialServiceId'] = this.socialServiceId;
1170
+ if (typeof this.errors !== 'undefined' && this.errors !== null) {
1171
+ toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
1110
1172
  }
1111
- if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
1112
- toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
1173
+ return toReturn;
1174
+ }
1175
+ }
1176
+ class CreatePostTemplateRequest {
1177
+ constructor(kwargs) {
1178
+ if (!kwargs) {
1179
+ return;
1113
1180
  }
1114
- if (typeof this.scheduled !== 'undefined' && this.scheduled !== null) {
1115
- toReturn['scheduled'] = 'toApiJson' in this.scheduled ? this.scheduled.toApiJson() : this.scheduled;
1181
+ Object.assign(this, kwargs);
1182
+ }
1183
+ static fromProto(proto) {
1184
+ let m = new CreatePostTemplateRequest();
1185
+ m = Object.assign(m, proto);
1186
+ if (proto.postDateTime) {
1187
+ m.postDateTime = new Date(proto.postDateTime);
1116
1188
  }
1117
- if (typeof this.customization !== 'undefined' && this.customization !== null) {
1118
- toReturn['customization'] = 'toApiJson' in this.customization ? this.customization.toApiJson() : this.customization;
1189
+ if (proto.mediaEntries) {
1190
+ m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
1191
+ }
1192
+ if (proto.metaData) {
1193
+ m.metaData = proto.metaData.map(MetaData.fromProto);
1194
+ }
1195
+ if (proto.postType) {
1196
+ m.postType = enumStringToValue$3(PostType$1, proto.postType);
1197
+ }
1198
+ return m;
1199
+ }
1200
+ toApiJson() {
1201
+ const toReturn = {};
1202
+ if (typeof this.accountGroupId !== 'undefined') {
1203
+ toReturn['accountGroupId'] = this.accountGroupId;
1204
+ }
1205
+ if (typeof this.title !== 'undefined') {
1206
+ toReturn['title'] = this.title;
1207
+ }
1208
+ if (typeof this.postText !== 'undefined') {
1209
+ toReturn['postText'] = this.postText;
1210
+ }
1211
+ if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
1212
+ toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
1213
+ }
1214
+ if (typeof this.gmbPostCustomization !== 'undefined') {
1215
+ toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
1216
+ }
1217
+ if (typeof this.imageUrl !== 'undefined') {
1218
+ toReturn['imageUrl'] = this.imageUrl;
1219
+ }
1220
+ if (typeof this.imagePath !== 'undefined') {
1221
+ toReturn['imagePath'] = this.imagePath;
1222
+ }
1223
+ if (typeof this.imageSize !== 'undefined') {
1224
+ toReturn['imageSize'] = this.imageSize;
1225
+ }
1226
+ if (typeof this.previews !== 'undefined') {
1227
+ toReturn['previews'] = this.previews;
1228
+ }
1229
+ if (typeof this.options !== 'undefined') {
1230
+ toReturn['options'] = this.options;
1231
+ }
1232
+ if (typeof this.videoUrl !== 'undefined') {
1233
+ toReturn['videoUrl'] = this.videoUrl;
1234
+ }
1235
+ if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
1236
+ toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
1237
+ }
1238
+ if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
1239
+ toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
1119
1240
  }
1120
1241
  if (typeof this.postType !== 'undefined') {
1121
1242
  toReturn['postType'] = this.postType;
1122
1243
  }
1123
- if (typeof this.internalPostId !== 'undefined') {
1124
- toReturn['internalPostId'] = this.internalPostId;
1125
- }
1126
1244
  return toReturn;
1127
1245
  }
1128
1246
  }
1129
-
1130
- function enumStringToValue$4(enumRef, value) {
1131
- if (typeof value === 'number') {
1132
- return value;
1133
- }
1134
- return enumRef[value];
1135
- }
1136
- class FacebookPostStats {
1247
+ class CreatePostTemplateResponse {
1137
1248
  constructor(kwargs) {
1138
1249
  if (!kwargs) {
1139
1250
  return;
@@ -1141,52 +1252,19 @@ class FacebookPostStats {
1141
1252
  Object.assign(this, kwargs);
1142
1253
  }
1143
1254
  static fromProto(proto) {
1144
- let m = new FacebookPostStats();
1255
+ let m = new CreatePostTemplateResponse();
1145
1256
  m = Object.assign(m, proto);
1146
- if (proto.commentCount) {
1147
- m.commentCount = parseInt(proto.commentCount, 10);
1148
- }
1149
- if (proto.shareCount) {
1150
- m.shareCount = parseInt(proto.shareCount, 10);
1151
- }
1152
- if (proto.likeCount) {
1153
- m.likeCount = parseInt(proto.likeCount, 10);
1154
- }
1155
- if (proto.reactions) {
1156
- m.reactions = parseInt(proto.reactions, 10);
1157
- }
1158
- if (proto.peopleReached) {
1159
- m.peopleReached = parseInt(proto.peopleReached, 10);
1160
- }
1161
1257
  return m;
1162
1258
  }
1163
1259
  toApiJson() {
1164
1260
  const toReturn = {};
1165
- if (typeof this.commentCount !== 'undefined') {
1166
- toReturn['commentCount'] = this.commentCount;
1167
- }
1168
- if (typeof this.shareCount !== 'undefined') {
1169
- toReturn['shareCount'] = this.shareCount;
1170
- }
1171
- if (typeof this.likeCount !== 'undefined') {
1172
- toReturn['likeCount'] = this.likeCount;
1173
- }
1174
- if (typeof this.hasLike !== 'undefined') {
1175
- toReturn['hasLike'] = this.hasLike;
1176
- }
1177
- if (typeof this.canLike !== 'undefined') {
1178
- toReturn['canLike'] = this.canLike;
1179
- }
1180
- if (typeof this.reactions !== 'undefined') {
1181
- toReturn['reactions'] = this.reactions;
1182
- }
1183
- if (typeof this.peopleReached !== 'undefined') {
1184
- toReturn['peopleReached'] = this.peopleReached;
1261
+ if (typeof this.templateId !== 'undefined') {
1262
+ toReturn['templateId'] = this.templateId;
1185
1263
  }
1186
1264
  return toReturn;
1187
1265
  }
1188
1266
  }
1189
- class SocialPostStats {
1267
+ class DateRangeFilter {
1190
1268
  constructor(kwargs) {
1191
1269
  if (!kwargs) {
1192
1270
  return;
@@ -1194,31 +1272,28 @@ class SocialPostStats {
1194
1272
  Object.assign(this, kwargs);
1195
1273
  }
1196
1274
  static fromProto(proto) {
1197
- let m = new SocialPostStats();
1275
+ let m = new DateRangeFilter();
1198
1276
  m = Object.assign(m, proto);
1199
- if (proto.facebookPostStats) {
1200
- m.facebookPostStats = FacebookPostStats.fromProto(proto.facebookPostStats);
1277
+ if (proto.beginRange) {
1278
+ m.beginRange = new Date(proto.beginRange);
1201
1279
  }
1202
- if (proto.twitterPostStats) {
1203
- m.twitterPostStats = TwitterPostStats.fromProto(proto.twitterPostStats);
1280
+ if (proto.endRange) {
1281
+ m.endRange = new Date(proto.endRange);
1204
1282
  }
1205
1283
  return m;
1206
1284
  }
1207
1285
  toApiJson() {
1208
1286
  const toReturn = {};
1209
- if (typeof this.internalPostId !== 'undefined') {
1210
- toReturn['internalPostId'] = this.internalPostId;
1211
- }
1212
- if (typeof this.facebookPostStats !== 'undefined' && this.facebookPostStats !== null) {
1213
- toReturn['facebookPostStats'] = 'toApiJson' in this.facebookPostStats ? this.facebookPostStats.toApiJson() : this.facebookPostStats;
1287
+ if (typeof this.beginRange !== 'undefined' && this.beginRange !== null) {
1288
+ toReturn['beginRange'] = 'toApiJson' in this.beginRange ? this.beginRange.toApiJson() : this.beginRange;
1214
1289
  }
1215
- if (typeof this.twitterPostStats !== 'undefined' && this.twitterPostStats !== null) {
1216
- toReturn['twitterPostStats'] = 'toApiJson' in this.twitterPostStats ? this.twitterPostStats.toApiJson() : this.twitterPostStats;
1290
+ if (typeof this.endRange !== 'undefined' && this.endRange !== null) {
1291
+ toReturn['endRange'] = 'toApiJson' in this.endRange ? this.endRange.toApiJson() : this.endRange;
1217
1292
  }
1218
1293
  return toReturn;
1219
1294
  }
1220
1295
  }
1221
- class TwitterPostStats {
1296
+ class DeleteHashtagsRequest {
1222
1297
  constructor(kwargs) {
1223
1298
  if (!kwargs) {
1224
1299
  return;
@@ -1226,41 +1301,25 @@ class TwitterPostStats {
1226
1301
  Object.assign(this, kwargs);
1227
1302
  }
1228
1303
  static fromProto(proto) {
1229
- let m = new TwitterPostStats();
1304
+ let m = new DeleteHashtagsRequest();
1230
1305
  m = Object.assign(m, proto);
1231
- if (proto.favourites) {
1232
- m.favourites = parseInt(proto.favourites, 10);
1233
- }
1234
- if (proto.retweets) {
1235
- m.retweets = parseInt(proto.retweets, 10);
1236
- }
1237
1306
  return m;
1238
1307
  }
1239
1308
  toApiJson() {
1240
1309
  const toReturn = {};
1241
- if (typeof this.favourites !== 'undefined') {
1242
- toReturn['favourites'] = this.favourites;
1243
- }
1244
- if (typeof this.hasFavourited !== 'undefined') {
1245
- toReturn['hasFavourited'] = this.hasFavourited;
1310
+ if (typeof this.keyword !== 'undefined') {
1311
+ toReturn['keyword'] = this.keyword;
1246
1312
  }
1247
- if (typeof this.retweets !== 'undefined') {
1248
- toReturn['retweets'] = this.retweets;
1313
+ if (typeof this.businessId !== 'undefined') {
1314
+ toReturn['businessId'] = this.businessId;
1249
1315
  }
1250
- if (typeof this.hasRetweeted !== 'undefined') {
1251
- toReturn['hasRetweeted'] = this.hasRetweeted;
1316
+ if (typeof this.partnerId !== 'undefined') {
1317
+ toReturn['partnerId'] = this.partnerId;
1252
1318
  }
1253
1319
  return toReturn;
1254
1320
  }
1255
1321
  }
1256
-
1257
- function enumStringToValue$3(enumRef, value) {
1258
- if (typeof value === 'number') {
1259
- return value;
1260
- }
1261
- return enumRef[value];
1262
- }
1263
- class TenorGifMediaEntry {
1322
+ class DeleteMultilocationPostRequest {
1264
1323
  constructor(kwargs) {
1265
1324
  if (!kwargs) {
1266
1325
  return;
@@ -1268,25 +1327,22 @@ class TenorGifMediaEntry {
1268
1327
  Object.assign(this, kwargs);
1269
1328
  }
1270
1329
  static fromProto(proto) {
1271
- let m = new TenorGifMediaEntry();
1330
+ let m = new DeleteMultilocationPostRequest();
1272
1331
  m = Object.assign(m, proto);
1273
- if (proto.value) {
1274
- m.value = TenorMediaObject.fromProto(proto.value);
1275
- }
1276
1332
  return m;
1277
1333
  }
1278
1334
  toApiJson() {
1279
1335
  const toReturn = {};
1280
- if (typeof this.key !== 'undefined') {
1281
- toReturn['key'] = this.key;
1336
+ if (typeof this.brandId !== 'undefined') {
1337
+ toReturn['brandId'] = this.brandId;
1282
1338
  }
1283
- if (typeof this.value !== 'undefined' && this.value !== null) {
1284
- toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
1339
+ if (typeof this.multilocationId !== 'undefined') {
1340
+ toReturn['multilocationId'] = this.multilocationId;
1285
1341
  }
1286
1342
  return toReturn;
1287
1343
  }
1288
1344
  }
1289
- class TenorGif {
1345
+ class DeletePostTemplateRequest {
1290
1346
  constructor(kwargs) {
1291
1347
  if (!kwargs) {
1292
1348
  return;
@@ -1294,37 +1350,22 @@ class TenorGif {
1294
1350
  Object.assign(this, kwargs);
1295
1351
  }
1296
1352
  static fromProto(proto) {
1297
- let m = new TenorGif();
1353
+ let m = new DeletePostTemplateRequest();
1298
1354
  m = Object.assign(m, proto);
1299
- if (proto.media) {
1300
- m.media = Object.keys(proto.media).reduce((obj, k) => { obj[k] = TenorMediaObject.fromProto(proto.media[k]); return obj; }, {});
1301
- }
1302
1355
  return m;
1303
1356
  }
1304
1357
  toApiJson() {
1305
1358
  const toReturn = {};
1306
- if (typeof this.media !== 'undefined' && this.media !== null) {
1307
- toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
1308
- }
1309
- if (typeof this.tags !== 'undefined') {
1310
- toReturn['tags'] = this.tags;
1311
- }
1312
- if (typeof this.hasAudio !== 'undefined') {
1313
- toReturn['hasAudio'] = this.hasAudio;
1314
- }
1315
- if (typeof this.title !== 'undefined') {
1316
- toReturn['title'] = this.title;
1317
- }
1318
- if (typeof this.id !== 'undefined') {
1319
- toReturn['id'] = this.id;
1359
+ if (typeof this.accountGroupId !== 'undefined') {
1360
+ toReturn['accountGroupId'] = this.accountGroupId;
1320
1361
  }
1321
- if (typeof this.created !== 'undefined') {
1322
- toReturn['created'] = this.created;
1362
+ if (typeof this.templateId !== 'undefined') {
1363
+ toReturn['templateId'] = this.templateId;
1323
1364
  }
1324
1365
  return toReturn;
1325
1366
  }
1326
1367
  }
1327
- class TenorMediaObject {
1368
+ class DeleteSocialPostRequest {
1328
1369
  constructor(kwargs) {
1329
1370
  if (!kwargs) {
1330
1371
  return;
@@ -1332,41 +1373,22 @@ class TenorMediaObject {
1332
1373
  Object.assign(this, kwargs);
1333
1374
  }
1334
1375
  static fromProto(proto) {
1335
- let m = new TenorMediaObject();
1376
+ let m = new DeleteSocialPostRequest();
1336
1377
  m = Object.assign(m, proto);
1337
- if (proto.dimensions) {
1338
- m.dimensions = proto.dimensions.map((i) => parseInt(i, 10));
1339
- }
1340
- if (proto.size) {
1341
- m.size = parseInt(proto.size, 10);
1342
- }
1343
1378
  return m;
1344
1379
  }
1345
1380
  toApiJson() {
1346
1381
  const toReturn = {};
1347
- if (typeof this.preview !== 'undefined') {
1348
- toReturn['preview'] = this.preview;
1349
- }
1350
- if (typeof this.url !== 'undefined') {
1351
- toReturn['url'] = this.url;
1352
- }
1353
- if (typeof this.dimensions !== 'undefined') {
1354
- toReturn['dimensions'] = this.dimensions;
1382
+ if (typeof this.businessId !== 'undefined') {
1383
+ toReturn['businessId'] = this.businessId;
1355
1384
  }
1356
- if (typeof this.size !== 'undefined') {
1357
- toReturn['size'] = this.size;
1385
+ if (typeof this.socialPostId !== 'undefined') {
1386
+ toReturn['socialPostId'] = this.socialPostId;
1358
1387
  }
1359
1388
  return toReturn;
1360
1389
  }
1361
1390
  }
1362
-
1363
- function enumStringToValue$2(enumRef, value) {
1364
- if (typeof value === 'number') {
1365
- return value;
1366
- }
1367
- return enumRef[value];
1368
- }
1369
- class CreateMultilocationPostRequest {
1391
+ class EditMultilocationPostRequest {
1370
1392
  constructor(kwargs) {
1371
1393
  if (!kwargs) {
1372
1394
  return;
@@ -1374,11 +1396,14 @@ class CreateMultilocationPostRequest {
1374
1396
  Object.assign(this, kwargs);
1375
1397
  }
1376
1398
  static fromProto(proto) {
1377
- let m = new CreateMultilocationPostRequest();
1399
+ let m = new EditMultilocationPostRequest();
1378
1400
  m = Object.assign(m, proto);
1379
1401
  if (proto.scheduledDate) {
1380
1402
  m.scheduledDate = new Date(proto.scheduledDate);
1381
1403
  }
1404
+ if (proto.fieldMask) {
1405
+ m.fieldMask = FieldMask.fromProto(proto.fieldMask);
1406
+ }
1382
1407
  if (proto.locations) {
1383
1408
  m.locations = proto.locations.map(Location.fromProto);
1384
1409
  }
@@ -1389,6 +1414,9 @@ class CreateMultilocationPostRequest {
1389
1414
  if (typeof this.brandId !== 'undefined') {
1390
1415
  toReturn['brandId'] = this.brandId;
1391
1416
  }
1417
+ if (typeof this.multilocationId !== 'undefined') {
1418
+ toReturn['multilocationId'] = this.multilocationId;
1419
+ }
1392
1420
  if (typeof this.text !== 'undefined') {
1393
1421
  toReturn['text'] = this.text;
1394
1422
  }
@@ -1398,8 +1426,8 @@ class CreateMultilocationPostRequest {
1398
1426
  if (typeof this.scheduledDate !== 'undefined' && this.scheduledDate !== null) {
1399
1427
  toReturn['scheduledDate'] = 'toApiJson' in this.scheduledDate ? this.scheduledDate.toApiJson() : this.scheduledDate;
1400
1428
  }
1401
- if (typeof this.locations !== 'undefined' && this.locations !== null) {
1402
- toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
1429
+ if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
1430
+ toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
1403
1431
  }
1404
1432
  if (typeof this.gifs !== 'undefined') {
1405
1433
  toReturn['gifs'] = this.gifs;
@@ -1407,10 +1435,13 @@ class CreateMultilocationPostRequest {
1407
1435
  if (typeof this.videos !== 'undefined') {
1408
1436
  toReturn['videos'] = this.videos;
1409
1437
  }
1410
- return toReturn;
1411
- }
1438
+ if (typeof this.locations !== 'undefined' && this.locations !== null) {
1439
+ toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
1440
+ }
1441
+ return toReturn;
1442
+ }
1412
1443
  }
1413
- class CreateMultilocationPostResponse {
1444
+ class EditMultilocationPostResponse {
1414
1445
  constructor(kwargs) {
1415
1446
  if (!kwargs) {
1416
1447
  return;
@@ -1418,7 +1449,7 @@ class CreateMultilocationPostResponse {
1418
1449
  Object.assign(this, kwargs);
1419
1450
  }
1420
1451
  static fromProto(proto) {
1421
- let m = new CreateMultilocationPostResponse();
1452
+ let m = new EditMultilocationPostResponse();
1422
1453
  m = Object.assign(m, proto);
1423
1454
  if (proto.post) {
1424
1455
  m.post = MultilocationPost.fromProto(proto.post);
@@ -1439,7 +1470,7 @@ class CreateMultilocationPostResponse {
1439
1470
  return toReturn;
1440
1471
  }
1441
1472
  }
1442
- class CreatePostTemplateRequest {
1473
+ class PartnerListScheduledSocialPostsRequestFilters {
1443
1474
  constructor(kwargs) {
1444
1475
  if (!kwargs) {
1445
1476
  return;
@@ -1447,70 +1478,54 @@ class CreatePostTemplateRequest {
1447
1478
  Object.assign(this, kwargs);
1448
1479
  }
1449
1480
  static fromProto(proto) {
1450
- let m = new CreatePostTemplateRequest();
1481
+ let m = new PartnerListScheduledSocialPostsRequestFilters();
1451
1482
  m = Object.assign(m, proto);
1452
- if (proto.postDateTime) {
1453
- m.postDateTime = new Date(proto.postDateTime);
1454
- }
1455
- if (proto.mediaEntries) {
1456
- m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
1457
- }
1458
- if (proto.metaData) {
1459
- m.metaData = proto.metaData.map(MetaData.fromProto);
1460
- }
1461
- if (proto.postType) {
1462
- m.postType = enumStringToValue$2(PostType$1, proto.postType);
1483
+ if (proto.dateRange) {
1484
+ m.dateRange = DateRangeFilter.fromProto(proto.dateRange);
1463
1485
  }
1464
1486
  return m;
1465
1487
  }
1466
1488
  toApiJson() {
1467
1489
  const toReturn = {};
1468
- if (typeof this.accountGroupId !== 'undefined') {
1469
- toReturn['accountGroupId'] = this.accountGroupId;
1470
- }
1471
- if (typeof this.title !== 'undefined') {
1472
- toReturn['title'] = this.title;
1473
- }
1474
- if (typeof this.postText !== 'undefined') {
1475
- toReturn['postText'] = this.postText;
1476
- }
1477
- if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
1478
- toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
1479
- }
1480
- if (typeof this.gmbPostCustomization !== 'undefined') {
1481
- toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
1482
- }
1483
- if (typeof this.imageUrl !== 'undefined') {
1484
- toReturn['imageUrl'] = this.imageUrl;
1485
- }
1486
- if (typeof this.imagePath !== 'undefined') {
1487
- toReturn['imagePath'] = this.imagePath;
1488
- }
1489
- if (typeof this.imageSize !== 'undefined') {
1490
- toReturn['imageSize'] = this.imageSize;
1490
+ if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
1491
+ toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
1491
1492
  }
1492
- if (typeof this.previews !== 'undefined') {
1493
- toReturn['previews'] = this.previews;
1493
+ if (typeof this.partnerId !== 'undefined') {
1494
+ toReturn['partnerId'] = this.partnerId;
1494
1495
  }
1495
- if (typeof this.options !== 'undefined') {
1496
- toReturn['options'] = this.options;
1496
+ return toReturn;
1497
+ }
1498
+ }
1499
+ class GenerateCSVForPerformanceStatsRequest {
1500
+ constructor(kwargs) {
1501
+ if (!kwargs) {
1502
+ return;
1497
1503
  }
1498
- if (typeof this.videoUrl !== 'undefined') {
1499
- toReturn['videoUrl'] = this.videoUrl;
1504
+ Object.assign(this, kwargs);
1505
+ }
1506
+ static fromProto(proto) {
1507
+ let m = new GenerateCSVForPerformanceStatsRequest();
1508
+ m = Object.assign(m, proto);
1509
+ if (proto.postData) {
1510
+ m.postData = proto.postData.map(PostData.fromProto);
1500
1511
  }
1501
- if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
1502
- toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
1512
+ return m;
1513
+ }
1514
+ toApiJson() {
1515
+ const toReturn = {};
1516
+ if (typeof this.businessId !== 'undefined') {
1517
+ toReturn['businessId'] = this.businessId;
1503
1518
  }
1504
- if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
1505
- toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
1519
+ if (typeof this.postData !== 'undefined' && this.postData !== null) {
1520
+ toReturn['postData'] = 'toApiJson' in this.postData ? this.postData.toApiJson() : this.postData;
1506
1521
  }
1507
- if (typeof this.postType !== 'undefined') {
1508
- toReturn['postType'] = this.postType;
1522
+ if (typeof this.includeHeaders !== 'undefined') {
1523
+ toReturn['includeHeaders'] = this.includeHeaders;
1509
1524
  }
1510
1525
  return toReturn;
1511
1526
  }
1512
1527
  }
1513
- class CreatePostTemplateResponse {
1528
+ class GenerateCSVForPerformanceStatsResponse {
1514
1529
  constructor(kwargs) {
1515
1530
  if (!kwargs) {
1516
1531
  return;
@@ -1518,19 +1533,19 @@ class CreatePostTemplateResponse {
1518
1533
  Object.assign(this, kwargs);
1519
1534
  }
1520
1535
  static fromProto(proto) {
1521
- let m = new CreatePostTemplateResponse();
1536
+ let m = new GenerateCSVForPerformanceStatsResponse();
1522
1537
  m = Object.assign(m, proto);
1523
1538
  return m;
1524
1539
  }
1525
1540
  toApiJson() {
1526
1541
  const toReturn = {};
1527
- if (typeof this.templateId !== 'undefined') {
1528
- toReturn['templateId'] = this.templateId;
1542
+ if (typeof this.generatedId !== 'undefined') {
1543
+ toReturn['generatedId'] = this.generatedId;
1529
1544
  }
1530
1545
  return toReturn;
1531
1546
  }
1532
1547
  }
1533
- class DateRangeFilter {
1548
+ class GetGeneratedCSVForPerformanceStatsRequest {
1534
1549
  constructor(kwargs) {
1535
1550
  if (!kwargs) {
1536
1551
  return;
@@ -1538,28 +1553,39 @@ class DateRangeFilter {
1538
1553
  Object.assign(this, kwargs);
1539
1554
  }
1540
1555
  static fromProto(proto) {
1541
- let m = new DateRangeFilter();
1556
+ let m = new GetGeneratedCSVForPerformanceStatsRequest();
1542
1557
  m = Object.assign(m, proto);
1543
- if (proto.beginRange) {
1544
- m.beginRange = new Date(proto.beginRange);
1558
+ return m;
1559
+ }
1560
+ toApiJson() {
1561
+ const toReturn = {};
1562
+ if (typeof this.generatedId !== 'undefined') {
1563
+ toReturn['generatedId'] = this.generatedId;
1545
1564
  }
1546
- if (proto.endRange) {
1547
- m.endRange = new Date(proto.endRange);
1565
+ return toReturn;
1566
+ }
1567
+ }
1568
+ class GetGeneratedCSVForPerformanceStatsResponse {
1569
+ constructor(kwargs) {
1570
+ if (!kwargs) {
1571
+ return;
1548
1572
  }
1573
+ Object.assign(this, kwargs);
1574
+ }
1575
+ static fromProto(proto) {
1576
+ let m = new GetGeneratedCSVForPerformanceStatsResponse();
1577
+ m = Object.assign(m, proto);
1549
1578
  return m;
1550
1579
  }
1551
1580
  toApiJson() {
1552
1581
  const toReturn = {};
1553
- if (typeof this.beginRange !== 'undefined' && this.beginRange !== null) {
1554
- toReturn['beginRange'] = 'toApiJson' in this.beginRange ? this.beginRange.toApiJson() : this.beginRange;
1555
- }
1556
- if (typeof this.endRange !== 'undefined' && this.endRange !== null) {
1557
- toReturn['endRange'] = 'toApiJson' in this.endRange ? this.endRange.toApiJson() : this.endRange;
1582
+ if (typeof this.url !== 'undefined') {
1583
+ toReturn['url'] = this.url;
1558
1584
  }
1559
1585
  return toReturn;
1560
1586
  }
1561
1587
  }
1562
- class DeleteHashtagsRequest {
1588
+ class GetMultiSocialPostStatsRequest {
1563
1589
  constructor(kwargs) {
1564
1590
  if (!kwargs) {
1565
1591
  return;
@@ -1567,14 +1593,14 @@ class DeleteHashtagsRequest {
1567
1593
  Object.assign(this, kwargs);
1568
1594
  }
1569
1595
  static fromProto(proto) {
1570
- let m = new DeleteHashtagsRequest();
1596
+ let m = new GetMultiSocialPostStatsRequest();
1571
1597
  m = Object.assign(m, proto);
1572
1598
  return m;
1573
1599
  }
1574
1600
  toApiJson() {
1575
1601
  const toReturn = {};
1576
- if (typeof this.keyword !== 'undefined') {
1577
- toReturn['keyword'] = this.keyword;
1602
+ if (typeof this.internalPostIds !== 'undefined') {
1603
+ toReturn['internalPostIds'] = this.internalPostIds;
1578
1604
  }
1579
1605
  if (typeof this.businessId !== 'undefined') {
1580
1606
  toReturn['businessId'] = this.businessId;
@@ -1585,7 +1611,7 @@ class DeleteHashtagsRequest {
1585
1611
  return toReturn;
1586
1612
  }
1587
1613
  }
1588
- class DeleteMultilocationPostRequest {
1614
+ class GetMultiSocialPostStatsResponse {
1589
1615
  constructor(kwargs) {
1590
1616
  if (!kwargs) {
1591
1617
  return;
@@ -1593,22 +1619,22 @@ class DeleteMultilocationPostRequest {
1593
1619
  Object.assign(this, kwargs);
1594
1620
  }
1595
1621
  static fromProto(proto) {
1596
- let m = new DeleteMultilocationPostRequest();
1622
+ let m = new GetMultiSocialPostStatsResponse();
1597
1623
  m = Object.assign(m, proto);
1624
+ if (proto.socialPostStats) {
1625
+ m.socialPostStats = proto.socialPostStats.map(SocialPostStats.fromProto);
1626
+ }
1598
1627
  return m;
1599
1628
  }
1600
1629
  toApiJson() {
1601
1630
  const toReturn = {};
1602
- if (typeof this.brandId !== 'undefined') {
1603
- toReturn['brandId'] = this.brandId;
1604
- }
1605
- if (typeof this.multilocationId !== 'undefined') {
1606
- toReturn['multilocationId'] = this.multilocationId;
1631
+ if (typeof this.socialPostStats !== 'undefined' && this.socialPostStats !== null) {
1632
+ toReturn['socialPostStats'] = 'toApiJson' in this.socialPostStats ? this.socialPostStats.toApiJson() : this.socialPostStats;
1607
1633
  }
1608
1634
  return toReturn;
1609
1635
  }
1610
1636
  }
1611
- class DeletePostTemplateRequest {
1637
+ class GetMultiSocialPostsRequest {
1612
1638
  constructor(kwargs) {
1613
1639
  if (!kwargs) {
1614
1640
  return;
@@ -1616,22 +1642,22 @@ class DeletePostTemplateRequest {
1616
1642
  Object.assign(this, kwargs);
1617
1643
  }
1618
1644
  static fromProto(proto) {
1619
- let m = new DeletePostTemplateRequest();
1645
+ let m = new GetMultiSocialPostsRequest();
1620
1646
  m = Object.assign(m, proto);
1621
1647
  return m;
1622
1648
  }
1623
1649
  toApiJson() {
1624
1650
  const toReturn = {};
1625
- if (typeof this.accountGroupId !== 'undefined') {
1626
- toReturn['accountGroupId'] = this.accountGroupId;
1651
+ if (typeof this.businessId !== 'undefined') {
1652
+ toReturn['businessId'] = this.businessId;
1627
1653
  }
1628
- if (typeof this.templateId !== 'undefined') {
1629
- toReturn['templateId'] = this.templateId;
1654
+ if (typeof this.internalPostIds !== 'undefined') {
1655
+ toReturn['internalPostIds'] = this.internalPostIds;
1630
1656
  }
1631
1657
  return toReturn;
1632
1658
  }
1633
1659
  }
1634
- class DeleteSocialPostRequest {
1660
+ class GetMultiSocialPostsResponse {
1635
1661
  constructor(kwargs) {
1636
1662
  if (!kwargs) {
1637
1663
  return;
@@ -1639,22 +1665,22 @@ class DeleteSocialPostRequest {
1639
1665
  Object.assign(this, kwargs);
1640
1666
  }
1641
1667
  static fromProto(proto) {
1642
- let m = new DeleteSocialPostRequest();
1668
+ let m = new GetMultiSocialPostsResponse();
1643
1669
  m = Object.assign(m, proto);
1670
+ if (proto.socialPosts) {
1671
+ m.socialPosts = proto.socialPosts.map(SocialPost$1.fromProto);
1672
+ }
1644
1673
  return m;
1645
1674
  }
1646
1675
  toApiJson() {
1647
1676
  const toReturn = {};
1648
- if (typeof this.businessId !== 'undefined') {
1649
- toReturn['businessId'] = this.businessId;
1650
- }
1651
- if (typeof this.socialPostId !== 'undefined') {
1652
- toReturn['socialPostId'] = this.socialPostId;
1677
+ if (typeof this.socialPosts !== 'undefined' && this.socialPosts !== null) {
1678
+ toReturn['socialPosts'] = 'toApiJson' in this.socialPosts ? this.socialPosts.toApiJson() : this.socialPosts;
1653
1679
  }
1654
1680
  return toReturn;
1655
1681
  }
1656
1682
  }
1657
- class EditMultilocationPostRequest {
1683
+ class GetMultilocationPostRequest {
1658
1684
  constructor(kwargs) {
1659
1685
  if (!kwargs) {
1660
1686
  return;
@@ -1662,17 +1688,8 @@ class EditMultilocationPostRequest {
1662
1688
  Object.assign(this, kwargs);
1663
1689
  }
1664
1690
  static fromProto(proto) {
1665
- let m = new EditMultilocationPostRequest();
1691
+ let m = new GetMultilocationPostRequest();
1666
1692
  m = Object.assign(m, proto);
1667
- if (proto.scheduledDate) {
1668
- m.scheduledDate = new Date(proto.scheduledDate);
1669
- }
1670
- if (proto.fieldMask) {
1671
- m.fieldMask = FieldMask.fromProto(proto.fieldMask);
1672
- }
1673
- if (proto.locations) {
1674
- m.locations = proto.locations.map(Location.fromProto);
1675
- }
1676
1693
  return m;
1677
1694
  }
1678
1695
  toApiJson() {
@@ -1683,31 +1700,10 @@ class EditMultilocationPostRequest {
1683
1700
  if (typeof this.multilocationId !== 'undefined') {
1684
1701
  toReturn['multilocationId'] = this.multilocationId;
1685
1702
  }
1686
- if (typeof this.text !== 'undefined') {
1687
- toReturn['text'] = this.text;
1688
- }
1689
- if (typeof this.media !== 'undefined') {
1690
- toReturn['media'] = this.media;
1691
- }
1692
- if (typeof this.scheduledDate !== 'undefined' && this.scheduledDate !== null) {
1693
- toReturn['scheduledDate'] = 'toApiJson' in this.scheduledDate ? this.scheduledDate.toApiJson() : this.scheduledDate;
1694
- }
1695
- if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
1696
- toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
1697
- }
1698
- if (typeof this.gifs !== 'undefined') {
1699
- toReturn['gifs'] = this.gifs;
1700
- }
1701
- if (typeof this.videos !== 'undefined') {
1702
- toReturn['videos'] = this.videos;
1703
- }
1704
- if (typeof this.locations !== 'undefined' && this.locations !== null) {
1705
- toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
1706
- }
1707
1703
  return toReturn;
1708
1704
  }
1709
1705
  }
1710
- class EditMultilocationPostResponse {
1706
+ class GetMultilocationPostResponse {
1711
1707
  constructor(kwargs) {
1712
1708
  if (!kwargs) {
1713
1709
  return;
@@ -1715,28 +1711,22 @@ class EditMultilocationPostResponse {
1715
1711
  Object.assign(this, kwargs);
1716
1712
  }
1717
1713
  static fromProto(proto) {
1718
- let m = new EditMultilocationPostResponse();
1714
+ let m = new GetMultilocationPostResponse();
1719
1715
  m = Object.assign(m, proto);
1720
- if (proto.post) {
1721
- m.post = MultilocationPost.fromProto(proto.post);
1722
- }
1723
- if (proto.errors) {
1724
- m.errors = proto.errors.map(MultilocationPostError.fromProto);
1716
+ if (proto.multilocationPost) {
1717
+ m.multilocationPost = MultilocationPost.fromProto(proto.multilocationPost);
1725
1718
  }
1726
1719
  return m;
1727
1720
  }
1728
1721
  toApiJson() {
1729
1722
  const toReturn = {};
1730
- if (typeof this.post !== 'undefined' && this.post !== null) {
1731
- toReturn['post'] = 'toApiJson' in this.post ? this.post.toApiJson() : this.post;
1732
- }
1733
- if (typeof this.errors !== 'undefined' && this.errors !== null) {
1734
- toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
1723
+ if (typeof this.multilocationPost !== 'undefined' && this.multilocationPost !== null) {
1724
+ toReturn['multilocationPost'] = 'toApiJson' in this.multilocationPost ? this.multilocationPost.toApiJson() : this.multilocationPost;
1735
1725
  }
1736
1726
  return toReturn;
1737
1727
  }
1738
1728
  }
1739
- class PartnerListScheduledSocialPostsRequestFilters {
1729
+ class GetPostTemplateRequest {
1740
1730
  constructor(kwargs) {
1741
1731
  if (!kwargs) {
1742
1732
  return;
@@ -1744,25 +1734,22 @@ class PartnerListScheduledSocialPostsRequestFilters {
1744
1734
  Object.assign(this, kwargs);
1745
1735
  }
1746
1736
  static fromProto(proto) {
1747
- let m = new PartnerListScheduledSocialPostsRequestFilters();
1737
+ let m = new GetPostTemplateRequest();
1748
1738
  m = Object.assign(m, proto);
1749
- if (proto.dateRange) {
1750
- m.dateRange = DateRangeFilter.fromProto(proto.dateRange);
1751
- }
1752
1739
  return m;
1753
1740
  }
1754
1741
  toApiJson() {
1755
1742
  const toReturn = {};
1756
- if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
1757
- toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
1743
+ if (typeof this.accountGroupId !== 'undefined') {
1744
+ toReturn['accountGroupId'] = this.accountGroupId;
1758
1745
  }
1759
- if (typeof this.partnerId !== 'undefined') {
1760
- toReturn['partnerId'] = this.partnerId;
1746
+ if (typeof this.templateId !== 'undefined') {
1747
+ toReturn['templateId'] = this.templateId;
1761
1748
  }
1762
1749
  return toReturn;
1763
1750
  }
1764
1751
  }
1765
- class GenerateCSVForPerformanceStatsRequest {
1752
+ class GetPostTemplateResponse {
1766
1753
  constructor(kwargs) {
1767
1754
  if (!kwargs) {
1768
1755
  return;
@@ -1770,270 +1757,17 @@ class GenerateCSVForPerformanceStatsRequest {
1770
1757
  Object.assign(this, kwargs);
1771
1758
  }
1772
1759
  static fromProto(proto) {
1773
- let m = new GenerateCSVForPerformanceStatsRequest();
1760
+ let m = new GetPostTemplateResponse();
1774
1761
  m = Object.assign(m, proto);
1775
- if (proto.postData) {
1776
- m.postData = proto.postData.map(PostData.fromProto);
1762
+ if (proto.postTemplate) {
1763
+ m.postTemplate = PostTemplate.fromProto(proto.postTemplate);
1777
1764
  }
1778
1765
  return m;
1779
1766
  }
1780
1767
  toApiJson() {
1781
1768
  const toReturn = {};
1782
- if (typeof this.businessId !== 'undefined') {
1783
- toReturn['businessId'] = this.businessId;
1784
- }
1785
- if (typeof this.postData !== 'undefined' && this.postData !== null) {
1786
- toReturn['postData'] = 'toApiJson' in this.postData ? this.postData.toApiJson() : this.postData;
1787
- }
1788
- if (typeof this.includeHeaders !== 'undefined') {
1789
- toReturn['includeHeaders'] = this.includeHeaders;
1790
- }
1791
- return toReturn;
1792
- }
1793
- }
1794
- class GenerateCSVForPerformanceStatsResponse {
1795
- constructor(kwargs) {
1796
- if (!kwargs) {
1797
- return;
1798
- }
1799
- Object.assign(this, kwargs);
1800
- }
1801
- static fromProto(proto) {
1802
- let m = new GenerateCSVForPerformanceStatsResponse();
1803
- m = Object.assign(m, proto);
1804
- return m;
1805
- }
1806
- toApiJson() {
1807
- const toReturn = {};
1808
- if (typeof this.generatedId !== 'undefined') {
1809
- toReturn['generatedId'] = this.generatedId;
1810
- }
1811
- return toReturn;
1812
- }
1813
- }
1814
- class GetGeneratedCSVForPerformanceStatsRequest {
1815
- constructor(kwargs) {
1816
- if (!kwargs) {
1817
- return;
1818
- }
1819
- Object.assign(this, kwargs);
1820
- }
1821
- static fromProto(proto) {
1822
- let m = new GetGeneratedCSVForPerformanceStatsRequest();
1823
- m = Object.assign(m, proto);
1824
- return m;
1825
- }
1826
- toApiJson() {
1827
- const toReturn = {};
1828
- if (typeof this.generatedId !== 'undefined') {
1829
- toReturn['generatedId'] = this.generatedId;
1830
- }
1831
- return toReturn;
1832
- }
1833
- }
1834
- class GetGeneratedCSVForPerformanceStatsResponse {
1835
- constructor(kwargs) {
1836
- if (!kwargs) {
1837
- return;
1838
- }
1839
- Object.assign(this, kwargs);
1840
- }
1841
- static fromProto(proto) {
1842
- let m = new GetGeneratedCSVForPerformanceStatsResponse();
1843
- m = Object.assign(m, proto);
1844
- return m;
1845
- }
1846
- toApiJson() {
1847
- const toReturn = {};
1848
- if (typeof this.url !== 'undefined') {
1849
- toReturn['url'] = this.url;
1850
- }
1851
- return toReturn;
1852
- }
1853
- }
1854
- class GetMultiSocialPostStatsRequest {
1855
- constructor(kwargs) {
1856
- if (!kwargs) {
1857
- return;
1858
- }
1859
- Object.assign(this, kwargs);
1860
- }
1861
- static fromProto(proto) {
1862
- let m = new GetMultiSocialPostStatsRequest();
1863
- m = Object.assign(m, proto);
1864
- return m;
1865
- }
1866
- toApiJson() {
1867
- const toReturn = {};
1868
- if (typeof this.internalPostIds !== 'undefined') {
1869
- toReturn['internalPostIds'] = this.internalPostIds;
1870
- }
1871
- if (typeof this.businessId !== 'undefined') {
1872
- toReturn['businessId'] = this.businessId;
1873
- }
1874
- if (typeof this.partnerId !== 'undefined') {
1875
- toReturn['partnerId'] = this.partnerId;
1876
- }
1877
- return toReturn;
1878
- }
1879
- }
1880
- class GetMultiSocialPostStatsResponse {
1881
- constructor(kwargs) {
1882
- if (!kwargs) {
1883
- return;
1884
- }
1885
- Object.assign(this, kwargs);
1886
- }
1887
- static fromProto(proto) {
1888
- let m = new GetMultiSocialPostStatsResponse();
1889
- m = Object.assign(m, proto);
1890
- if (proto.socialPostStats) {
1891
- m.socialPostStats = proto.socialPostStats.map(SocialPostStats.fromProto);
1892
- }
1893
- return m;
1894
- }
1895
- toApiJson() {
1896
- const toReturn = {};
1897
- if (typeof this.socialPostStats !== 'undefined' && this.socialPostStats !== null) {
1898
- toReturn['socialPostStats'] = 'toApiJson' in this.socialPostStats ? this.socialPostStats.toApiJson() : this.socialPostStats;
1899
- }
1900
- return toReturn;
1901
- }
1902
- }
1903
- class GetMultiSocialPostsRequest {
1904
- constructor(kwargs) {
1905
- if (!kwargs) {
1906
- return;
1907
- }
1908
- Object.assign(this, kwargs);
1909
- }
1910
- static fromProto(proto) {
1911
- let m = new GetMultiSocialPostsRequest();
1912
- m = Object.assign(m, proto);
1913
- return m;
1914
- }
1915
- toApiJson() {
1916
- const toReturn = {};
1917
- if (typeof this.businessId !== 'undefined') {
1918
- toReturn['businessId'] = this.businessId;
1919
- }
1920
- if (typeof this.internalPostIds !== 'undefined') {
1921
- toReturn['internalPostIds'] = this.internalPostIds;
1922
- }
1923
- return toReturn;
1924
- }
1925
- }
1926
- class GetMultiSocialPostsResponse {
1927
- constructor(kwargs) {
1928
- if (!kwargs) {
1929
- return;
1930
- }
1931
- Object.assign(this, kwargs);
1932
- }
1933
- static fromProto(proto) {
1934
- let m = new GetMultiSocialPostsResponse();
1935
- m = Object.assign(m, proto);
1936
- if (proto.socialPosts) {
1937
- m.socialPosts = proto.socialPosts.map(SocialPost.fromProto);
1938
- }
1939
- return m;
1940
- }
1941
- toApiJson() {
1942
- const toReturn = {};
1943
- if (typeof this.socialPosts !== 'undefined' && this.socialPosts !== null) {
1944
- toReturn['socialPosts'] = 'toApiJson' in this.socialPosts ? this.socialPosts.toApiJson() : this.socialPosts;
1945
- }
1946
- return toReturn;
1947
- }
1948
- }
1949
- class GetMultilocationPostRequest {
1950
- constructor(kwargs) {
1951
- if (!kwargs) {
1952
- return;
1953
- }
1954
- Object.assign(this, kwargs);
1955
- }
1956
- static fromProto(proto) {
1957
- let m = new GetMultilocationPostRequest();
1958
- m = Object.assign(m, proto);
1959
- return m;
1960
- }
1961
- toApiJson() {
1962
- const toReturn = {};
1963
- if (typeof this.brandId !== 'undefined') {
1964
- toReturn['brandId'] = this.brandId;
1965
- }
1966
- if (typeof this.multilocationId !== 'undefined') {
1967
- toReturn['multilocationId'] = this.multilocationId;
1968
- }
1969
- return toReturn;
1970
- }
1971
- }
1972
- class GetMultilocationPostResponse {
1973
- constructor(kwargs) {
1974
- if (!kwargs) {
1975
- return;
1976
- }
1977
- Object.assign(this, kwargs);
1978
- }
1979
- static fromProto(proto) {
1980
- let m = new GetMultilocationPostResponse();
1981
- m = Object.assign(m, proto);
1982
- if (proto.multilocationPost) {
1983
- m.multilocationPost = MultilocationPost.fromProto(proto.multilocationPost);
1984
- }
1985
- return m;
1986
- }
1987
- toApiJson() {
1988
- const toReturn = {};
1989
- if (typeof this.multilocationPost !== 'undefined' && this.multilocationPost !== null) {
1990
- toReturn['multilocationPost'] = 'toApiJson' in this.multilocationPost ? this.multilocationPost.toApiJson() : this.multilocationPost;
1991
- }
1992
- return toReturn;
1993
- }
1994
- }
1995
- class GetPostTemplateRequest {
1996
- constructor(kwargs) {
1997
- if (!kwargs) {
1998
- return;
1999
- }
2000
- Object.assign(this, kwargs);
2001
- }
2002
- static fromProto(proto) {
2003
- let m = new GetPostTemplateRequest();
2004
- m = Object.assign(m, proto);
2005
- return m;
2006
- }
2007
- toApiJson() {
2008
- const toReturn = {};
2009
- if (typeof this.accountGroupId !== 'undefined') {
2010
- toReturn['accountGroupId'] = this.accountGroupId;
2011
- }
2012
- if (typeof this.templateId !== 'undefined') {
2013
- toReturn['templateId'] = this.templateId;
2014
- }
2015
- return toReturn;
2016
- }
2017
- }
2018
- class GetPostTemplateResponse {
2019
- constructor(kwargs) {
2020
- if (!kwargs) {
2021
- return;
2022
- }
2023
- Object.assign(this, kwargs);
2024
- }
2025
- static fromProto(proto) {
2026
- let m = new GetPostTemplateResponse();
2027
- m = Object.assign(m, proto);
2028
- if (proto.postTemplate) {
2029
- m.postTemplate = PostTemplate.fromProto(proto.postTemplate);
2030
- }
2031
- return m;
2032
- }
2033
- toApiJson() {
2034
- const toReturn = {};
2035
- if (typeof this.postTemplate !== 'undefined' && this.postTemplate !== null) {
2036
- toReturn['postTemplate'] = 'toApiJson' in this.postTemplate ? this.postTemplate.toApiJson() : this.postTemplate;
1769
+ if (typeof this.postTemplate !== 'undefined' && this.postTemplate !== null) {
1770
+ toReturn['postTemplate'] = 'toApiJson' in this.postTemplate ? this.postTemplate.toApiJson() : this.postTemplate;
2037
1771
  }
2038
1772
  return toReturn;
2039
1773
  }
@@ -2179,7 +1913,7 @@ class ListMultilocationPostsForBrandResponse {
2179
1913
  m.multilocationPosts = proto.multilocationPosts.map(MultilocationPost.fromProto);
2180
1914
  }
2181
1915
  if (proto.failedSocialPosts) {
2182
- m.failedSocialPosts = proto.failedSocialPosts.map(SocialPost.fromProto);
1916
+ m.failedSocialPosts = proto.failedSocialPosts.map(SocialPost$1.fromProto);
2183
1917
  }
2184
1918
  return m;
2185
1919
  }
@@ -2383,7 +2117,7 @@ class ListSocialPostsResponse {
2383
2117
  let m = new ListSocialPostsResponse();
2384
2118
  m = Object.assign(m, proto);
2385
2119
  if (proto.socialPosts) {
2386
- m.socialPosts = proto.socialPosts.map(SocialPost.fromProto);
2120
+ m.socialPosts = proto.socialPosts.map(SocialPost$1.fromProto);
2387
2121
  }
2388
2122
  return m;
2389
2123
  }
@@ -2482,7 +2216,7 @@ class PartnerListScheduledPostsResponse {
2482
2216
  let m = new PartnerListScheduledPostsResponse();
2483
2217
  m = Object.assign(m, proto);
2484
2218
  if (proto.socialPosts) {
2485
- m.socialPosts = proto.socialPosts.map(SocialPost.fromProto);
2219
+ m.socialPosts = proto.socialPosts.map(SocialPost$1.fromProto);
2486
2220
  }
2487
2221
  return m;
2488
2222
  }
@@ -2650,7 +2384,7 @@ class RemoveFromMultilocationPostRequest {
2650
2384
  let m = new RemoveFromMultilocationPostRequest();
2651
2385
  m = Object.assign(m, proto);
2652
2386
  if (proto.reason) {
2653
- m.reason = enumStringToValue$2(RemoveReason, proto.reason);
2387
+ m.reason = enumStringToValue$3(RemoveReason, proto.reason);
2654
2388
  }
2655
2389
  if (proto.locations) {
2656
2390
  m.locations = proto.locations.map(Location.fromProto);
@@ -2691,16 +2425,314 @@ class ReplaceHashtagsRequest {
2691
2425
  if (typeof this.keyword !== 'undefined') {
2692
2426
  toReturn['keyword'] = this.keyword;
2693
2427
  }
2694
- if (typeof this.businessId !== 'undefined') {
2695
- toReturn['businessId'] = this.businessId;
2428
+ if (typeof this.businessId !== 'undefined') {
2429
+ toReturn['businessId'] = this.businessId;
2430
+ }
2431
+ if (typeof this.partnerId !== 'undefined') {
2432
+ toReturn['partnerId'] = this.partnerId;
2433
+ }
2434
+ return toReturn;
2435
+ }
2436
+ }
2437
+ class SchedulePostRequest {
2438
+ constructor(kwargs) {
2439
+ if (!kwargs) {
2440
+ return;
2441
+ }
2442
+ Object.assign(this, kwargs);
2443
+ }
2444
+ static fromProto(proto) {
2445
+ let m = new SchedulePostRequest();
2446
+ m = Object.assign(m, proto);
2447
+ if (proto.socialPost) {
2448
+ m.socialPost = SocialPostData.fromProto(proto.socialPost);
2449
+ }
2450
+ return m;
2451
+ }
2452
+ toApiJson() {
2453
+ const toReturn = {};
2454
+ if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
2455
+ toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
2456
+ }
2457
+ if (typeof this.socialServiceIds !== 'undefined') {
2458
+ toReturn['socialServiceIds'] = this.socialServiceIds;
2459
+ }
2460
+ if (typeof this.partnerId !== 'undefined') {
2461
+ toReturn['partnerId'] = this.partnerId;
2462
+ }
2463
+ if (typeof this.businessId !== 'undefined') {
2464
+ toReturn['businessId'] = this.businessId;
2465
+ }
2466
+ return toReturn;
2467
+ }
2468
+ }
2469
+ class SchedulePostResponse {
2470
+ constructor(kwargs) {
2471
+ if (!kwargs) {
2472
+ return;
2473
+ }
2474
+ Object.assign(this, kwargs);
2475
+ }
2476
+ static fromProto(proto) {
2477
+ let m = new SchedulePostResponse();
2478
+ m = Object.assign(m, proto);
2479
+ if (proto.statuses) {
2480
+ m.statuses = proto.statuses.map(SchedulePostStatus.fromProto);
2481
+ }
2482
+ return m;
2483
+ }
2484
+ toApiJson() {
2485
+ const toReturn = {};
2486
+ if (typeof this.statuses !== 'undefined' && this.statuses !== null) {
2487
+ toReturn['statuses'] = 'toApiJson' in this.statuses ? this.statuses.toApiJson() : this.statuses;
2488
+ }
2489
+ return toReturn;
2490
+ }
2491
+ }
2492
+ class ScheduleToAllPagesRequest {
2493
+ constructor(kwargs) {
2494
+ if (!kwargs) {
2495
+ return;
2496
+ }
2497
+ Object.assign(this, kwargs);
2498
+ }
2499
+ static fromProto(proto) {
2500
+ let m = new ScheduleToAllPagesRequest();
2501
+ m = Object.assign(m, proto);
2502
+ if (proto.socialPost) {
2503
+ m.socialPost = SocialPostData.fromProto(proto.socialPost);
2504
+ }
2505
+ return m;
2506
+ }
2507
+ toApiJson() {
2508
+ const toReturn = {};
2509
+ if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
2510
+ toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
2511
+ }
2512
+ if (typeof this.partnerId !== 'undefined') {
2513
+ toReturn['partnerId'] = this.partnerId;
2514
+ }
2515
+ if (typeof this.businessId !== 'undefined') {
2516
+ toReturn['businessId'] = this.businessId;
2517
+ }
2518
+ return toReturn;
2519
+ }
2520
+ }
2521
+ class ScheduleToAllPagesResponse {
2522
+ constructor(kwargs) {
2523
+ if (!kwargs) {
2524
+ return;
2525
+ }
2526
+ Object.assign(this, kwargs);
2527
+ }
2528
+ static fromProto(proto) {
2529
+ let m = new ScheduleToAllPagesResponse();
2530
+ m = Object.assign(m, proto);
2531
+ if (proto.statuses) {
2532
+ m.statuses = proto.statuses.map(SchedulePostStatus.fromProto);
2533
+ }
2534
+ return m;
2535
+ }
2536
+ toApiJson() {
2537
+ const toReturn = {};
2538
+ if (typeof this.statuses !== 'undefined' && this.statuses !== null) {
2539
+ toReturn['statuses'] = 'toApiJson' in this.statuses ? this.statuses.toApiJson() : this.statuses;
2540
+ }
2541
+ return toReturn;
2542
+ }
2543
+ }
2544
+ class SearchHashtagRequest {
2545
+ constructor(kwargs) {
2546
+ if (!kwargs) {
2547
+ return;
2548
+ }
2549
+ Object.assign(this, kwargs);
2550
+ }
2551
+ static fromProto(proto) {
2552
+ let m = new SearchHashtagRequest();
2553
+ m = Object.assign(m, proto);
2554
+ if (proto.limit) {
2555
+ m.limit = parseInt(proto.limit, 10);
2556
+ }
2557
+ return m;
2558
+ }
2559
+ toApiJson() {
2560
+ const toReturn = {};
2561
+ if (typeof this.searchTerm !== 'undefined') {
2562
+ toReturn['searchTerm'] = this.searchTerm;
2563
+ }
2564
+ if (typeof this.limit !== 'undefined') {
2565
+ toReturn['limit'] = this.limit;
2566
+ }
2567
+ if (typeof this.businessId !== 'undefined') {
2568
+ toReturn['businessId'] = this.businessId;
2569
+ }
2570
+ if (typeof this.partnerId !== 'undefined') {
2571
+ toReturn['partnerId'] = this.partnerId;
2572
+ }
2573
+ return toReturn;
2574
+ }
2575
+ }
2576
+ class SearchHashtagResponse {
2577
+ constructor(kwargs) {
2578
+ if (!kwargs) {
2579
+ return;
2580
+ }
2581
+ Object.assign(this, kwargs);
2582
+ }
2583
+ static fromProto(proto) {
2584
+ let m = new SearchHashtagResponse();
2585
+ m = Object.assign(m, proto);
2586
+ if (proto.hashtags) {
2587
+ m.hashtags = proto.hashtags.map(Hashtag.fromProto);
2588
+ }
2589
+ return m;
2590
+ }
2591
+ toApiJson() {
2592
+ const toReturn = {};
2593
+ if (typeof this.hashtags !== 'undefined' && this.hashtags !== null) {
2594
+ toReturn['hashtags'] = 'toApiJson' in this.hashtags ? this.hashtags.toApiJson() : this.hashtags;
2595
+ }
2596
+ return toReturn;
2597
+ }
2598
+ }
2599
+ class SuggestMessageRequest {
2600
+ constructor(kwargs) {
2601
+ if (!kwargs) {
2602
+ return;
2603
+ }
2604
+ Object.assign(this, kwargs);
2605
+ }
2606
+ static fromProto(proto) {
2607
+ let m = new SuggestMessageRequest();
2608
+ m = Object.assign(m, proto);
2609
+ if (proto.length) {
2610
+ m.length = enumStringToValue$3(MessageLength, proto.length);
2611
+ }
2612
+ if (proto.type) {
2613
+ m.type = enumStringToValue$3(TemplateType, proto.type);
2614
+ }
2615
+ return m;
2616
+ }
2617
+ toApiJson() {
2618
+ const toReturn = {};
2619
+ if (typeof this.prompt !== 'undefined') {
2620
+ toReturn['prompt'] = this.prompt;
2621
+ }
2622
+ if (typeof this.businessId !== 'undefined') {
2623
+ toReturn['businessId'] = this.businessId;
2624
+ }
2625
+ if (typeof this.length !== 'undefined') {
2626
+ toReturn['length'] = this.length;
2627
+ }
2628
+ if (typeof this.type !== 'undefined') {
2629
+ toReturn['type'] = this.type;
2630
+ }
2631
+ return toReturn;
2632
+ }
2633
+ }
2634
+ class SuggestMessageResponse {
2635
+ constructor(kwargs) {
2636
+ if (!kwargs) {
2637
+ return;
2638
+ }
2639
+ Object.assign(this, kwargs);
2640
+ }
2641
+ static fromProto(proto) {
2642
+ let m = new SuggestMessageResponse();
2643
+ m = Object.assign(m, proto);
2644
+ return m;
2645
+ }
2646
+ toApiJson() {
2647
+ const toReturn = {};
2648
+ if (typeof this.message !== 'undefined') {
2649
+ toReturn['message'] = this.message;
2650
+ }
2651
+ return toReturn;
2652
+ }
2653
+ }
2654
+ class UpdatePostTemplateRequest {
2655
+ constructor(kwargs) {
2656
+ if (!kwargs) {
2657
+ return;
2658
+ }
2659
+ Object.assign(this, kwargs);
2660
+ }
2661
+ static fromProto(proto) {
2662
+ let m = new UpdatePostTemplateRequest();
2663
+ m = Object.assign(m, proto);
2664
+ if (proto.postDateTime) {
2665
+ m.postDateTime = new Date(proto.postDateTime);
2666
+ }
2667
+ if (proto.mediaEntries) {
2668
+ m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
2669
+ }
2670
+ if (proto.metaData) {
2671
+ m.metaData = proto.metaData.map(MetaData.fromProto);
2672
+ }
2673
+ if (proto.postType) {
2674
+ m.postType = enumStringToValue$3(PostType$1, proto.postType);
2675
+ }
2676
+ return m;
2677
+ }
2678
+ toApiJson() {
2679
+ const toReturn = {};
2680
+ if (typeof this.accountGroupId !== 'undefined') {
2681
+ toReturn['accountGroupId'] = this.accountGroupId;
2682
+ }
2683
+ if (typeof this.templateId !== 'undefined') {
2684
+ toReturn['templateId'] = this.templateId;
2685
+ }
2686
+ if (typeof this.title !== 'undefined') {
2687
+ toReturn['title'] = this.title;
2688
+ }
2689
+ if (typeof this.postText !== 'undefined') {
2690
+ toReturn['postText'] = this.postText;
2691
+ }
2692
+ if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
2693
+ toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
2694
+ }
2695
+ if (typeof this.gmbPostCustomization !== 'undefined') {
2696
+ toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
2697
+ }
2698
+ if (typeof this.imageUrl !== 'undefined') {
2699
+ toReturn['imageUrl'] = this.imageUrl;
2700
+ }
2701
+ if (typeof this.imagePath !== 'undefined') {
2702
+ toReturn['imagePath'] = this.imagePath;
2703
+ }
2704
+ if (typeof this.imageSize !== 'undefined') {
2705
+ toReturn['imageSize'] = this.imageSize;
2706
+ }
2707
+ if (typeof this.previews !== 'undefined') {
2708
+ toReturn['previews'] = this.previews;
2709
+ }
2710
+ if (typeof this.options !== 'undefined') {
2711
+ toReturn['options'] = this.options;
2712
+ }
2713
+ if (typeof this.videoUrl !== 'undefined') {
2714
+ toReturn['videoUrl'] = this.videoUrl;
2715
+ }
2716
+ if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
2717
+ toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
2696
2718
  }
2697
- if (typeof this.partnerId !== 'undefined') {
2698
- toReturn['partnerId'] = this.partnerId;
2719
+ if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
2720
+ toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
2721
+ }
2722
+ if (typeof this.postType !== 'undefined') {
2723
+ toReturn['postType'] = this.postType;
2699
2724
  }
2700
2725
  return toReturn;
2701
2726
  }
2702
2727
  }
2703
- class SchedulePostRequest {
2728
+
2729
+ function enumStringToValue$2(enumRef, value) {
2730
+ if (typeof value === 'number') {
2731
+ return value;
2732
+ }
2733
+ return enumRef[value];
2734
+ }
2735
+ class Link {
2704
2736
  constructor(kwargs) {
2705
2737
  if (!kwargs) {
2706
2738
  return;
@@ -2708,54 +2740,34 @@ class SchedulePostRequest {
2708
2740
  Object.assign(this, kwargs);
2709
2741
  }
2710
2742
  static fromProto(proto) {
2711
- let m = new SchedulePostRequest();
2743
+ let m = new Link();
2712
2744
  m = Object.assign(m, proto);
2713
- if (proto.socialPost) {
2714
- m.socialPost = SocialPostData.fromProto(proto.socialPost);
2715
- }
2716
2745
  return m;
2717
2746
  }
2718
2747
  toApiJson() {
2719
2748
  const toReturn = {};
2720
- if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
2721
- toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
2722
- }
2723
- if (typeof this.socialServiceIds !== 'undefined') {
2724
- toReturn['socialServiceIds'] = this.socialServiceIds;
2749
+ if (typeof this.name !== 'undefined') {
2750
+ toReturn['name'] = this.name;
2725
2751
  }
2726
- if (typeof this.partnerId !== 'undefined') {
2727
- toReturn['partnerId'] = this.partnerId;
2752
+ if (typeof this.picture !== 'undefined') {
2753
+ toReturn['picture'] = this.picture;
2728
2754
  }
2729
- if (typeof this.businessId !== 'undefined') {
2730
- toReturn['businessId'] = this.businessId;
2755
+ if (typeof this.description !== 'undefined') {
2756
+ toReturn['description'] = this.description;
2731
2757
  }
2732
- return toReturn;
2733
- }
2734
- }
2735
- class SchedulePostResponse {
2736
- constructor(kwargs) {
2737
- if (!kwargs) {
2738
- return;
2758
+ if (typeof this.title !== 'undefined') {
2759
+ toReturn['title'] = this.title;
2739
2760
  }
2740
- Object.assign(this, kwargs);
2741
- }
2742
- static fromProto(proto) {
2743
- let m = new SchedulePostResponse();
2744
- m = Object.assign(m, proto);
2745
- if (proto.statuses) {
2746
- m.statuses = proto.statuses.map(SchedulePostStatus.fromProto);
2761
+ if (typeof this.url !== 'undefined') {
2762
+ toReturn['url'] = this.url;
2747
2763
  }
2748
- return m;
2749
- }
2750
- toApiJson() {
2751
- const toReturn = {};
2752
- if (typeof this.statuses !== 'undefined' && this.statuses !== null) {
2753
- toReturn['statuses'] = 'toApiJson' in this.statuses ? this.statuses.toApiJson() : this.statuses;
2764
+ if (typeof this.shortcode !== 'undefined') {
2765
+ toReturn['shortcode'] = this.shortcode;
2754
2766
  }
2755
2767
  return toReturn;
2756
2768
  }
2757
2769
  }
2758
- class ScheduleToAllPagesRequest {
2770
+ class Metadata {
2759
2771
  constructor(kwargs) {
2760
2772
  if (!kwargs) {
2761
2773
  return;
@@ -2763,28 +2775,22 @@ class ScheduleToAllPagesRequest {
2763
2775
  Object.assign(this, kwargs);
2764
2776
  }
2765
2777
  static fromProto(proto) {
2766
- let m = new ScheduleToAllPagesRequest();
2778
+ let m = new Metadata();
2767
2779
  m = Object.assign(m, proto);
2768
- if (proto.socialPost) {
2769
- m.socialPost = SocialPostData.fromProto(proto.socialPost);
2770
- }
2771
2780
  return m;
2772
2781
  }
2773
2782
  toApiJson() {
2774
2783
  const toReturn = {};
2775
- if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
2776
- toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
2777
- }
2778
- if (typeof this.partnerId !== 'undefined') {
2779
- toReturn['partnerId'] = this.partnerId;
2784
+ if (typeof this.name !== 'undefined') {
2785
+ toReturn['name'] = this.name;
2780
2786
  }
2781
- if (typeof this.businessId !== 'undefined') {
2782
- toReturn['businessId'] = this.businessId;
2787
+ if (typeof this.value !== 'undefined') {
2788
+ toReturn['value'] = this.value;
2783
2789
  }
2784
2790
  return toReturn;
2785
2791
  }
2786
2792
  }
2787
- class ScheduleToAllPagesResponse {
2793
+ class PostAction {
2788
2794
  constructor(kwargs) {
2789
2795
  if (!kwargs) {
2790
2796
  return;
@@ -2792,22 +2798,22 @@ class ScheduleToAllPagesResponse {
2792
2798
  Object.assign(this, kwargs);
2793
2799
  }
2794
2800
  static fromProto(proto) {
2795
- let m = new ScheduleToAllPagesResponse();
2801
+ let m = new PostAction();
2796
2802
  m = Object.assign(m, proto);
2797
- if (proto.statuses) {
2798
- m.statuses = proto.statuses.map(SchedulePostStatus.fromProto);
2799
- }
2800
2803
  return m;
2801
2804
  }
2802
2805
  toApiJson() {
2803
2806
  const toReturn = {};
2804
- if (typeof this.statuses !== 'undefined' && this.statuses !== null) {
2805
- toReturn['statuses'] = 'toApiJson' in this.statuses ? this.statuses.toApiJson() : this.statuses;
2807
+ if (typeof this.type !== 'undefined') {
2808
+ toReturn['type'] = this.type;
2809
+ }
2810
+ if (typeof this.linkUrl !== 'undefined') {
2811
+ toReturn['linkUrl'] = this.linkUrl;
2806
2812
  }
2807
2813
  return toReturn;
2808
2814
  }
2809
2815
  }
2810
- class SearchHashtagRequest {
2816
+ class PostContent {
2811
2817
  constructor(kwargs) {
2812
2818
  if (!kwargs) {
2813
2819
  return;
@@ -2815,31 +2821,31 @@ class SearchHashtagRequest {
2815
2821
  Object.assign(this, kwargs);
2816
2822
  }
2817
2823
  static fromProto(proto) {
2818
- let m = new SearchHashtagRequest();
2824
+ let m = new PostContent();
2819
2825
  m = Object.assign(m, proto);
2820
- if (proto.limit) {
2821
- m.limit = parseInt(proto.limit, 10);
2826
+ if (proto.media) {
2827
+ m.media = proto.media.map(PostMedia.fromProto);
2828
+ }
2829
+ if (proto.link) {
2830
+ m.link = proto.link.map(Link.fromProto);
2822
2831
  }
2823
2832
  return m;
2824
2833
  }
2825
2834
  toApiJson() {
2826
2835
  const toReturn = {};
2827
- if (typeof this.searchTerm !== 'undefined') {
2828
- toReturn['searchTerm'] = this.searchTerm;
2829
- }
2830
- if (typeof this.limit !== 'undefined') {
2831
- toReturn['limit'] = this.limit;
2836
+ if (typeof this.postText !== 'undefined') {
2837
+ toReturn['postText'] = this.postText;
2832
2838
  }
2833
- if (typeof this.businessId !== 'undefined') {
2834
- toReturn['businessId'] = this.businessId;
2839
+ if (typeof this.media !== 'undefined' && this.media !== null) {
2840
+ toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
2835
2841
  }
2836
- if (typeof this.partnerId !== 'undefined') {
2837
- toReturn['partnerId'] = this.partnerId;
2842
+ if (typeof this.link !== 'undefined' && this.link !== null) {
2843
+ toReturn['link'] = 'toApiJson' in this.link ? this.link.toApiJson() : this.link;
2838
2844
  }
2839
2845
  return toReturn;
2840
2846
  }
2841
2847
  }
2842
- class SearchHashtagResponse {
2848
+ class PostCustomization {
2843
2849
  constructor(kwargs) {
2844
2850
  if (!kwargs) {
2845
2851
  return;
@@ -2847,22 +2853,28 @@ class SearchHashtagResponse {
2847
2853
  Object.assign(this, kwargs);
2848
2854
  }
2849
2855
  static fromProto(proto) {
2850
- let m = new SearchHashtagResponse();
2856
+ let m = new PostCustomization();
2851
2857
  m = Object.assign(m, proto);
2852
- if (proto.hashtags) {
2853
- m.hashtags = proto.hashtags.map(Hashtag.fromProto);
2858
+ if (proto.event) {
2859
+ m.event = PostEvent.fromProto(proto.event);
2860
+ }
2861
+ if (proto.action) {
2862
+ m.action = PostAction.fromProto(proto.action);
2854
2863
  }
2855
2864
  return m;
2856
2865
  }
2857
2866
  toApiJson() {
2858
2867
  const toReturn = {};
2859
- if (typeof this.hashtags !== 'undefined' && this.hashtags !== null) {
2860
- toReturn['hashtags'] = 'toApiJson' in this.hashtags ? this.hashtags.toApiJson() : this.hashtags;
2868
+ if (typeof this.event !== 'undefined' && this.event !== null) {
2869
+ toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
2870
+ }
2871
+ if (typeof this.action !== 'undefined' && this.action !== null) {
2872
+ toReturn['action'] = 'toApiJson' in this.action ? this.action.toApiJson() : this.action;
2861
2873
  }
2862
2874
  return toReturn;
2863
2875
  }
2864
2876
  }
2865
- class SuggestMessageRequest {
2877
+ class PostEvent {
2866
2878
  constructor(kwargs) {
2867
2879
  if (!kwargs) {
2868
2880
  return;
@@ -2870,34 +2882,31 @@ class SuggestMessageRequest {
2870
2882
  Object.assign(this, kwargs);
2871
2883
  }
2872
2884
  static fromProto(proto) {
2873
- let m = new SuggestMessageRequest();
2885
+ let m = new PostEvent();
2874
2886
  m = Object.assign(m, proto);
2875
- if (proto.length) {
2876
- m.length = enumStringToValue$2(MessageLength, proto.length);
2887
+ if (proto.start) {
2888
+ m.start = new Date(proto.start);
2877
2889
  }
2878
- if (proto.type) {
2879
- m.type = enumStringToValue$2(TemplateType, proto.type);
2890
+ if (proto.end) {
2891
+ m.end = new Date(proto.end);
2880
2892
  }
2881
2893
  return m;
2882
2894
  }
2883
2895
  toApiJson() {
2884
2896
  const toReturn = {};
2885
- if (typeof this.prompt !== 'undefined') {
2886
- toReturn['prompt'] = this.prompt;
2887
- }
2888
- if (typeof this.businessId !== 'undefined') {
2889
- toReturn['businessId'] = this.businessId;
2897
+ if (typeof this.title !== 'undefined') {
2898
+ toReturn['title'] = this.title;
2890
2899
  }
2891
- if (typeof this.length !== 'undefined') {
2892
- toReturn['length'] = this.length;
2900
+ if (typeof this.start !== 'undefined' && this.start !== null) {
2901
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
2893
2902
  }
2894
- if (typeof this.type !== 'undefined') {
2895
- toReturn['type'] = this.type;
2903
+ if (typeof this.end !== 'undefined' && this.end !== null) {
2904
+ toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
2896
2905
  }
2897
2906
  return toReturn;
2898
2907
  }
2899
2908
  }
2900
- class SuggestMessageResponse {
2909
+ class PostMedia {
2901
2910
  constructor(kwargs) {
2902
2911
  if (!kwargs) {
2903
2912
  return;
@@ -2905,19 +2914,34 @@ class SuggestMessageResponse {
2905
2914
  Object.assign(this, kwargs);
2906
2915
  }
2907
2916
  static fromProto(proto) {
2908
- let m = new SuggestMessageResponse();
2917
+ let m = new PostMedia();
2909
2918
  m = Object.assign(m, proto);
2919
+ if (proto.metadata) {
2920
+ m.metadata = proto.metadata.map(Metadata.fromProto);
2921
+ }
2910
2922
  return m;
2911
2923
  }
2912
2924
  toApiJson() {
2913
2925
  const toReturn = {};
2914
- if (typeof this.message !== 'undefined') {
2915
- toReturn['message'] = this.message;
2926
+ if (typeof this.mediaId !== 'undefined') {
2927
+ toReturn['mediaId'] = this.mediaId;
2928
+ }
2929
+ if (typeof this.mediaUrl !== 'undefined') {
2930
+ toReturn['mediaUrl'] = this.mediaUrl;
2931
+ }
2932
+ if (typeof this.mediaType !== 'undefined') {
2933
+ toReturn['mediaType'] = this.mediaType;
2934
+ }
2935
+ if (typeof this.containerId !== 'undefined') {
2936
+ toReturn['containerId'] = this.containerId;
2937
+ }
2938
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
2939
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
2916
2940
  }
2917
2941
  return toReturn;
2918
2942
  }
2919
2943
  }
2920
- class UpdatePostTemplateRequest {
2944
+ class SocialPost {
2921
2945
  constructor(kwargs) {
2922
2946
  if (!kwargs) {
2923
2947
  return;
@@ -2925,16 +2949,16 @@ class UpdatePostTemplateRequest {
2925
2949
  Object.assign(this, kwargs);
2926
2950
  }
2927
2951
  static fromProto(proto) {
2928
- let m = new UpdatePostTemplateRequest();
2952
+ let m = new SocialPost();
2929
2953
  m = Object.assign(m, proto);
2930
- if (proto.postDateTime) {
2931
- m.postDateTime = new Date(proto.postDateTime);
2954
+ if (proto.postContent) {
2955
+ m.postContent = PostContent.fromProto(proto.postContent);
2932
2956
  }
2933
- if (proto.mediaEntries) {
2934
- m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
2957
+ if (proto.scheduled) {
2958
+ m.scheduled = new Date(proto.scheduled);
2935
2959
  }
2936
- if (proto.metaData) {
2937
- m.metaData = proto.metaData.map(MetaData.fromProto);
2960
+ if (proto.customization) {
2961
+ m.customization = PostCustomization.fromProto(proto.customization);
2938
2962
  }
2939
2963
  if (proto.postType) {
2940
2964
  m.postType = enumStringToValue$2(PostType$1, proto.postType);
@@ -2943,51 +2967,27 @@ class UpdatePostTemplateRequest {
2943
2967
  }
2944
2968
  toApiJson() {
2945
2969
  const toReturn = {};
2946
- if (typeof this.accountGroupId !== 'undefined') {
2947
- toReturn['accountGroupId'] = this.accountGroupId;
2948
- }
2949
- if (typeof this.templateId !== 'undefined') {
2950
- toReturn['templateId'] = this.templateId;
2951
- }
2952
- if (typeof this.title !== 'undefined') {
2953
- toReturn['title'] = this.title;
2954
- }
2955
- if (typeof this.postText !== 'undefined') {
2956
- toReturn['postText'] = this.postText;
2957
- }
2958
- if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
2959
- toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
2960
- }
2961
- if (typeof this.gmbPostCustomization !== 'undefined') {
2962
- toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
2963
- }
2964
- if (typeof this.imageUrl !== 'undefined') {
2965
- toReturn['imageUrl'] = this.imageUrl;
2966
- }
2967
- if (typeof this.imagePath !== 'undefined') {
2968
- toReturn['imagePath'] = this.imagePath;
2969
- }
2970
- if (typeof this.imageSize !== 'undefined') {
2971
- toReturn['imageSize'] = this.imageSize;
2972
- }
2973
- if (typeof this.previews !== 'undefined') {
2974
- toReturn['previews'] = this.previews;
2970
+ if (typeof this.businessId !== 'undefined') {
2971
+ toReturn['businessId'] = this.businessId;
2975
2972
  }
2976
- if (typeof this.options !== 'undefined') {
2977
- toReturn['options'] = this.options;
2973
+ if (typeof this.socialServiceId !== 'undefined') {
2974
+ toReturn['socialServiceId'] = this.socialServiceId;
2978
2975
  }
2979
- if (typeof this.videoUrl !== 'undefined') {
2980
- toReturn['videoUrl'] = this.videoUrl;
2976
+ if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
2977
+ toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
2981
2978
  }
2982
- if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
2983
- toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
2979
+ if (typeof this.scheduled !== 'undefined' && this.scheduled !== null) {
2980
+ toReturn['scheduled'] = 'toApiJson' in this.scheduled ? this.scheduled.toApiJson() : this.scheduled;
2984
2981
  }
2985
- if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
2986
- toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
2982
+ if (typeof this.customization !== 'undefined' && this.customization !== null) {
2983
+ toReturn['customization'] = 'toApiJson' in this.customization ? this.customization.toApiJson() : this.customization;
2987
2984
  }
2988
2985
  if (typeof this.postType !== 'undefined') {
2989
2986
  toReturn['postType'] = this.postType;
2990
2987
  }
2988
+ if (typeof this.internalPostId !== 'undefined') {
2989
+ toReturn['internalPostId'] = this.internalPostId;
2990
+ }
2991
2991
  return toReturn;
2992
2992
  }
2993
2993
  }