@vendasta/social-posts 5.46.0 → 5.47.0

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.
Files changed (37) hide show
  1. package/esm2020/lib/_internal/enums/engagement.enum.mjs +13 -0
  2. package/esm2020/lib/_internal/enums/index.mjs +3 -1
  3. package/esm2020/lib/_internal/enums/stock-image.enum.mjs +12 -0
  4. package/esm2020/lib/_internal/image-library.api.service.mjs +40 -0
  5. package/esm2020/lib/_internal/index.mjs +3 -1
  6. package/esm2020/lib/_internal/interfaces/engagement.interface.mjs +2 -0
  7. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/social-post-stats.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/stock-image.interface.mjs +8 -0
  10. package/esm2020/lib/_internal/multilocation-post.api.service.mjs +2 -3
  11. package/esm2020/lib/_internal/objects/engagement.mjs +221 -0
  12. package/esm2020/lib/_internal/objects/index.mjs +5 -3
  13. package/esm2020/lib/_internal/objects/social-post-stats.mjs +7 -1
  14. package/esm2020/lib/_internal/objects/stock-image.mjs +110 -0
  15. package/esm2020/lib/_internal/social-post-engagements.api.service.mjs +40 -0
  16. package/esm2020/lib/multilocation-posts.service.mjs +1 -1
  17. package/fesm2015/vendasta-social-posts.mjs +452 -28
  18. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  19. package/fesm2020/vendasta-social-posts.mjs +452 -28
  20. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  21. package/lib/_internal/enums/engagement.enum.d.ts +5 -0
  22. package/lib/_internal/enums/index.d.ts +2 -0
  23. package/lib/_internal/enums/stock-image.enum.d.ts +4 -0
  24. package/lib/_internal/image-library.api.service.d.ts +13 -0
  25. package/lib/_internal/index.d.ts +2 -0
  26. package/lib/_internal/interfaces/engagement.interface.d.ts +37 -0
  27. package/lib/_internal/interfaces/index.d.ts +4 -2
  28. package/lib/_internal/interfaces/social-post-stats.interface.d.ts +1 -0
  29. package/lib/_internal/interfaces/stock-image.interface.d.ts +21 -0
  30. package/lib/_internal/multilocation-post.api.service.d.ts +1 -1
  31. package/lib/_internal/objects/engagement.d.ts +60 -0
  32. package/lib/_internal/objects/index.d.ts +4 -2
  33. package/lib/_internal/objects/social-post-stats.d.ts +1 -0
  34. package/lib/_internal/objects/stock-image.d.ts +32 -0
  35. package/lib/_internal/social-post-engagements.api.service.d.ts +13 -0
  36. package/lib/multilocation-posts.service.d.ts +1 -1
  37. package/package.json +1 -1
@@ -4,7 +4,7 @@ import { of } from 'rxjs';
4
4
  import { HttpClient, HttpHeaders } from '@angular/common/http';
5
5
  import { map } from 'rxjs/operators';
6
6
 
7
- function enumStringToValue$i(enumRef, value) {
7
+ function enumStringToValue$k(enumRef, value) {
8
8
  if (typeof value === 'number') {
9
9
  return value;
10
10
  }
@@ -31,7 +31,7 @@ class FieldMask {
31
31
  }
32
32
  }
33
33
 
34
- function enumStringToValue$h(enumRef, value) {
34
+ function enumStringToValue$j(enumRef, value) {
35
35
  if (typeof value === 'number') {
36
36
  return value;
37
37
  }
@@ -171,6 +171,31 @@ var RemoveReason;
171
171
  RemoveReason[RemoveReason["REMOVE_REASON_DELETE"] = 1] = "REMOVE_REASON_DELETE";
172
172
  })(RemoveReason || (RemoveReason = {}));
173
173
 
174
+ // *********************************
175
+ // Code generated by sdkgen
176
+ // DO NOT EDIT!.
177
+ //
178
+ // Enums.
179
+ // *********************************
180
+ var SortBySortDirection;
181
+ (function (SortBySortDirection) {
182
+ SortBySortDirection[SortBySortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
183
+ SortBySortDirection[SortBySortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
184
+ SortBySortDirection[SortBySortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
185
+ })(SortBySortDirection || (SortBySortDirection = {}));
186
+
187
+ // *********************************
188
+ // Code generated by sdkgen
189
+ // DO NOT EDIT!.
190
+ //
191
+ // Enums.
192
+ // *********************************
193
+ var ImageSource;
194
+ (function (ImageSource) {
195
+ ImageSource[ImageSource["PEXELS"] = 0] = "PEXELS";
196
+ ImageSource[ImageSource["PIXABAY"] = 1] = "PIXABAY";
197
+ })(ImageSource || (ImageSource = {}));
198
+
174
199
  // *********************************
175
200
  // Code generated by sdkgen
176
201
  // DO NOT EDIT!.
@@ -316,7 +341,7 @@ var Role;
316
341
  // Enums Index.
317
342
  // *********************************
318
343
 
319
- function enumStringToValue$g(enumRef, value) {
344
+ function enumStringToValue$i(enumRef, value) {
320
345
  if (typeof value === 'number') {
321
346
  return value;
322
347
  }
@@ -388,7 +413,7 @@ class CallToAction {
388
413
  let m = new CallToAction();
389
414
  m = Object.assign(m, proto);
390
415
  if (proto.actionType) {
391
- m.actionType = enumStringToValue$g(CallToActionCallToActionType, proto.actionType);
416
+ m.actionType = enumStringToValue$i(CallToActionCallToActionType, proto.actionType);
392
417
  }
393
418
  return m;
394
419
  }
@@ -626,7 +651,7 @@ class PostTemplate {
626
651
  m.metaData = proto.metaData.map(MetaData.fromProto);
627
652
  }
628
653
  if (proto.postType) {
629
- m.postType = enumStringToValue$g(PostType, proto.postType);
654
+ m.postType = enumStringToValue$i(PostType, proto.postType);
630
655
  }
631
656
  if (proto.youtubeCustomization) {
632
657
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -709,7 +734,7 @@ class SSIDPostType {
709
734
  let m = new SSIDPostType();
710
735
  m = Object.assign(m, proto);
711
736
  if (proto.postType) {
712
- m.postType = enumStringToValue$g(PostType, proto.postType);
737
+ m.postType = enumStringToValue$i(PostType, proto.postType);
713
738
  }
714
739
  return m;
715
740
  }
@@ -793,10 +818,10 @@ class SocialPost {
793
818
  m.posted = new Date(proto.posted);
794
819
  }
795
820
  if (proto.deletionStatus) {
796
- m.deletionStatus = enumStringToValue$g(SocialPostDeletionStatus, proto.deletionStatus);
821
+ m.deletionStatus = enumStringToValue$i(SocialPostDeletionStatus, proto.deletionStatus);
797
822
  }
798
823
  if (proto.service) {
799
- m.service = enumStringToValue$g(SocialPostService, proto.service);
824
+ m.service = enumStringToValue$i(SocialPostService, proto.service);
800
825
  }
801
826
  if (proto.created) {
802
827
  m.created = new Date(proto.created);
@@ -805,7 +830,7 @@ class SocialPost {
805
830
  m.scheduled = new Date(proto.scheduled);
806
831
  }
807
832
  if (proto.status) {
808
- m.status = enumStringToValue$g(PostingStatus, proto.status);
833
+ m.status = enumStringToValue$i(PostingStatus, proto.status);
809
834
  }
810
835
  if (proto.event) {
811
836
  m.event = Event.fromProto(proto.event);
@@ -817,7 +842,7 @@ class SocialPost {
817
842
  m.error = Error.fromProto(proto.error);
818
843
  }
819
844
  if (proto.postType) {
820
- m.postType = enumStringToValue$g(PostType, proto.postType);
845
+ m.postType = enumStringToValue$i(PostType, proto.postType);
821
846
  }
822
847
  if (proto.mediaEntries) {
823
848
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -1018,7 +1043,7 @@ class YoutubeCustomization {
1018
1043
  let m = new YoutubeCustomization();
1019
1044
  m = Object.assign(m, proto);
1020
1045
  if (proto.privacyStatus) {
1021
- m.privacyStatus = enumStringToValue$g(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
1046
+ m.privacyStatus = enumStringToValue$i(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
1022
1047
  }
1023
1048
  return m;
1024
1049
  }
@@ -1040,7 +1065,7 @@ class YoutubeCustomization {
1040
1065
  }
1041
1066
  }
1042
1067
 
1043
- function enumStringToValue$f(enumRef, value) {
1068
+ function enumStringToValue$h(enumRef, value) {
1044
1069
  if (typeof value === 'number') {
1045
1070
  return value;
1046
1071
  }
@@ -1181,7 +1206,7 @@ class MultilocationPost {
1181
1206
  m.postCategory = MLPostCategory.fromProto(proto.postCategory);
1182
1207
  }
1183
1208
  if (proto.postState) {
1184
- m.postState = enumStringToValue$f(MLPostState, proto.postState);
1209
+ m.postState = enumStringToValue$h(MLPostState, proto.postState);
1185
1210
  }
1186
1211
  if (proto.postCustomizationByLocation) {
1187
1212
  m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
@@ -1365,7 +1390,7 @@ class PostCustomizationByLocation {
1365
1390
  let m = new PostCustomizationByLocation();
1366
1391
  m = Object.assign(m, proto);
1367
1392
  if (proto.customizationStatus) {
1368
- m.customizationStatus = enumStringToValue$f(CustomizationStatus, proto.customizationStatus);
1393
+ m.customizationStatus = enumStringToValue$h(CustomizationStatus, proto.customizationStatus);
1369
1394
  }
1370
1395
  return m;
1371
1396
  }
@@ -1419,7 +1444,7 @@ class PostEvent {
1419
1444
  }
1420
1445
  }
1421
1446
 
1422
- function enumStringToValue$e(enumRef, value) {
1447
+ function enumStringToValue$g(enumRef, value) {
1423
1448
  if (typeof value === 'number') {
1424
1449
  return value;
1425
1450
  }
@@ -1473,7 +1498,7 @@ class PexelsImage {
1473
1498
  }
1474
1499
  }
1475
1500
 
1476
- function enumStringToValue$d(enumRef, value) {
1501
+ function enumStringToValue$f(enumRef, value) {
1477
1502
  if (typeof value === 'number') {
1478
1503
  return value;
1479
1504
  }
@@ -1614,7 +1639,7 @@ class PixabayImage {
1614
1639
  }
1615
1640
  }
1616
1641
 
1617
- function enumStringToValue$c(enumRef, value) {
1642
+ function enumStringToValue$e(enumRef, value) {
1618
1643
  if (typeof value === 'number') {
1619
1644
  return value;
1620
1645
  }
@@ -1918,6 +1943,9 @@ class YoutubePostStats {
1918
1943
  if (proto.videoViews) {
1919
1944
  m.videoViews = parseInt(proto.videoViews, 10);
1920
1945
  }
1946
+ if (proto.dislikeCount) {
1947
+ m.dislikeCount = parseInt(proto.dislikeCount, 10);
1948
+ }
1921
1949
  return m;
1922
1950
  }
1923
1951
  constructor(kwargs) {
@@ -1943,11 +1971,14 @@ class YoutubePostStats {
1943
1971
  if (typeof this.videoViews !== 'undefined') {
1944
1972
  toReturn['videoViews'] = this.videoViews;
1945
1973
  }
1974
+ if (typeof this.dislikeCount !== 'undefined') {
1975
+ toReturn['dislikeCount'] = this.dislikeCount;
1976
+ }
1946
1977
  return toReturn;
1947
1978
  }
1948
1979
  }
1949
1980
 
1950
- function enumStringToValue$b(enumRef, value) {
1981
+ function enumStringToValue$d(enumRef, value) {
1951
1982
  if (typeof value === 'number') {
1952
1983
  return value;
1953
1984
  }
@@ -2053,7 +2084,7 @@ class TenorMediaObject {
2053
2084
  }
2054
2085
  }
2055
2086
 
2056
- function enumStringToValue$a(enumRef, value) {
2087
+ function enumStringToValue$c(enumRef, value) {
2057
2088
  if (typeof value === 'number') {
2058
2089
  return value;
2059
2090
  }
@@ -2102,7 +2133,7 @@ class BulkCreateMultilocationPostResponse {
2102
2133
  let m = new BulkCreateMultilocationPostResponse();
2103
2134
  m = Object.assign(m, proto);
2104
2135
  if (proto.status) {
2105
- m.status = enumStringToValue$a(BulkPostStatus, proto.status);
2136
+ m.status = enumStringToValue$c(BulkPostStatus, proto.status);
2106
2137
  }
2107
2138
  if (proto.error) {
2108
2139
  m.error = proto.error.map(MultilocationPostError.fromProto);
@@ -2261,7 +2292,7 @@ class CreatePostTemplateRequest {
2261
2292
  m.metaData = proto.metaData.map(MetaData.fromProto);
2262
2293
  }
2263
2294
  if (proto.postType) {
2264
- m.postType = enumStringToValue$a(PostType, proto.postType);
2295
+ m.postType = enumStringToValue$c(PostType, proto.postType);
2265
2296
  }
2266
2297
  if (proto.youtubeCustomization) {
2267
2298
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -3666,7 +3697,7 @@ class RemoveFromMultilocationPostRequest {
3666
3697
  let m = new RemoveFromMultilocationPostRequest();
3667
3698
  m = Object.assign(m, proto);
3668
3699
  if (proto.reason) {
3669
- m.reason = enumStringToValue$a(RemoveReason, proto.reason);
3700
+ m.reason = enumStringToValue$c(RemoveReason, proto.reason);
3670
3701
  }
3671
3702
  if (proto.locations) {
3672
3703
  m.locations = proto.locations.map(Location.fromProto);
@@ -3889,10 +3920,10 @@ class SuggestMessageRequest {
3889
3920
  let m = new SuggestMessageRequest();
3890
3921
  m = Object.assign(m, proto);
3891
3922
  if (proto.length) {
3892
- m.length = enumStringToValue$a(MessageLength, proto.length);
3923
+ m.length = enumStringToValue$c(MessageLength, proto.length);
3893
3924
  }
3894
3925
  if (proto.type) {
3895
- m.type = enumStringToValue$a(TemplateType, proto.type);
3926
+ m.type = enumStringToValue$c(TemplateType, proto.type);
3896
3927
  }
3897
3928
  if (proto.metadata) {
3898
3929
  m.metadata = proto.metadata.map(MetaData.fromProto);
@@ -3959,7 +3990,7 @@ class UpdatePostTemplateRequest {
3959
3990
  m.metaData = proto.metaData.map(MetaData.fromProto);
3960
3991
  }
3961
3992
  if (proto.postType) {
3962
- m.postType = enumStringToValue$a(PostType, proto.postType);
3993
+ m.postType = enumStringToValue$c(PostType, proto.postType);
3963
3994
  }
3964
3995
  if (proto.youtubeCustomization) {
3965
3996
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -4026,6 +4057,334 @@ class UpdatePostTemplateRequest {
4026
4057
  }
4027
4058
  }
4028
4059
 
4060
+ function enumStringToValue$b(enumRef, value) {
4061
+ if (typeof value === 'number') {
4062
+ return value;
4063
+ }
4064
+ return enumRef[value];
4065
+ }
4066
+ class DateRange {
4067
+ static fromProto(proto) {
4068
+ let m = new DateRange();
4069
+ m = Object.assign(m, proto);
4070
+ if (proto.start) {
4071
+ m.start = new Date(proto.start);
4072
+ }
4073
+ if (proto.end) {
4074
+ m.end = new Date(proto.end);
4075
+ }
4076
+ return m;
4077
+ }
4078
+ constructor(kwargs) {
4079
+ if (!kwargs) {
4080
+ return;
4081
+ }
4082
+ Object.assign(this, kwargs);
4083
+ }
4084
+ toApiJson() {
4085
+ const toReturn = {};
4086
+ if (typeof this.start !== 'undefined' && this.start !== null) {
4087
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
4088
+ }
4089
+ if (typeof this.end !== 'undefined' && this.end !== null) {
4090
+ toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
4091
+ }
4092
+ return toReturn;
4093
+ }
4094
+ }
4095
+ class EngagementParameter {
4096
+ static fromProto(proto) {
4097
+ let m = new EngagementParameter();
4098
+ m = Object.assign(m, proto);
4099
+ return m;
4100
+ }
4101
+ constructor(kwargs) {
4102
+ if (!kwargs) {
4103
+ return;
4104
+ }
4105
+ Object.assign(this, kwargs);
4106
+ }
4107
+ toApiJson() {
4108
+ const toReturn = {};
4109
+ if (typeof this.engagementParameter !== 'undefined') {
4110
+ toReturn['engagementParameter'] = this.engagementParameter;
4111
+ }
4112
+ if (typeof this.value !== 'undefined') {
4113
+ toReturn['value'] = this.value;
4114
+ }
4115
+ return toReturn;
4116
+ }
4117
+ }
4118
+ class ListSocialPostEngagementsRequest {
4119
+ static fromProto(proto) {
4120
+ let m = new ListSocialPostEngagementsRequest();
4121
+ m = Object.assign(m, proto);
4122
+ if (proto.dateRange) {
4123
+ m.dateRange = DateRange.fromProto(proto.dateRange);
4124
+ }
4125
+ if (proto.sortBy) {
4126
+ m.sortBy = proto.sortBy.map(SortBy.fromProto);
4127
+ }
4128
+ if (proto.limit) {
4129
+ m.limit = parseInt(proto.limit, 10);
4130
+ }
4131
+ return m;
4132
+ }
4133
+ constructor(kwargs) {
4134
+ if (!kwargs) {
4135
+ return;
4136
+ }
4137
+ Object.assign(this, kwargs);
4138
+ }
4139
+ toApiJson() {
4140
+ const toReturn = {};
4141
+ if (typeof this.accountGroupId !== 'undefined') {
4142
+ toReturn['accountGroupId'] = this.accountGroupId;
4143
+ }
4144
+ if (typeof this.networks !== 'undefined') {
4145
+ toReturn['networks'] = this.networks;
4146
+ }
4147
+ if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
4148
+ toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
4149
+ }
4150
+ if (typeof this.sortBy !== 'undefined' && this.sortBy !== null) {
4151
+ toReturn['sortBy'] = 'toApiJson' in this.sortBy ? this.sortBy.toApiJson() : this.sortBy;
4152
+ }
4153
+ if (typeof this.limit !== 'undefined') {
4154
+ toReturn['limit'] = this.limit;
4155
+ }
4156
+ if (typeof this.isPostDataNeeded !== 'undefined') {
4157
+ toReturn['isPostDataNeeded'] = this.isPostDataNeeded;
4158
+ }
4159
+ if (typeof this.cursor !== 'undefined') {
4160
+ toReturn['cursor'] = this.cursor;
4161
+ }
4162
+ return toReturn;
4163
+ }
4164
+ }
4165
+ class ListSocialPostEngagementsResponse {
4166
+ static fromProto(proto) {
4167
+ let m = new ListSocialPostEngagementsResponse();
4168
+ m = Object.assign(m, proto);
4169
+ if (proto.socialPostEngagements) {
4170
+ m.socialPostEngagements = proto.socialPostEngagements.map(SocialPostEngagement.fromProto);
4171
+ }
4172
+ return m;
4173
+ }
4174
+ constructor(kwargs) {
4175
+ if (!kwargs) {
4176
+ return;
4177
+ }
4178
+ Object.assign(this, kwargs);
4179
+ }
4180
+ toApiJson() {
4181
+ const toReturn = {};
4182
+ if (typeof this.socialPostEngagements !== 'undefined' && this.socialPostEngagements !== null) {
4183
+ toReturn['socialPostEngagements'] = 'toApiJson' in this.socialPostEngagements ? this.socialPostEngagements.toApiJson() : this.socialPostEngagements;
4184
+ }
4185
+ if (typeof this.cursor !== 'undefined') {
4186
+ toReturn['cursor'] = this.cursor;
4187
+ }
4188
+ return toReturn;
4189
+ }
4190
+ }
4191
+ class SocialEngagement {
4192
+ static fromProto(proto) {
4193
+ let m = new SocialEngagement();
4194
+ m = Object.assign(m, proto);
4195
+ if (proto.engagementParameters) {
4196
+ m.engagementParameters = proto.engagementParameters.map(EngagementParameter.fromProto);
4197
+ }
4198
+ return m;
4199
+ }
4200
+ constructor(kwargs) {
4201
+ if (!kwargs) {
4202
+ return;
4203
+ }
4204
+ Object.assign(this, kwargs);
4205
+ }
4206
+ toApiJson() {
4207
+ const toReturn = {};
4208
+ if (typeof this.calculatedEngagementRate !== 'undefined') {
4209
+ toReturn['calculatedEngagementRate'] = this.calculatedEngagementRate;
4210
+ }
4211
+ if (typeof this.engagementParameters !== 'undefined' && this.engagementParameters !== null) {
4212
+ toReturn['engagementParameters'] = 'toApiJson' in this.engagementParameters ? this.engagementParameters.toApiJson() : this.engagementParameters;
4213
+ }
4214
+ return toReturn;
4215
+ }
4216
+ }
4217
+ class SocialPostEngagement {
4218
+ static fromProto(proto) {
4219
+ let m = new SocialPostEngagement();
4220
+ m = Object.assign(m, proto);
4221
+ if (proto.socialPost) {
4222
+ m.socialPost = SocialPost.fromProto(proto.socialPost);
4223
+ }
4224
+ if (proto.socialEngagement) {
4225
+ m.socialEngagement = SocialEngagement.fromProto(proto.socialEngagement);
4226
+ }
4227
+ return m;
4228
+ }
4229
+ constructor(kwargs) {
4230
+ if (!kwargs) {
4231
+ return;
4232
+ }
4233
+ Object.assign(this, kwargs);
4234
+ }
4235
+ toApiJson() {
4236
+ const toReturn = {};
4237
+ if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
4238
+ toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
4239
+ }
4240
+ if (typeof this.socialEngagement !== 'undefined' && this.socialEngagement !== null) {
4241
+ toReturn['socialEngagement'] = 'toApiJson' in this.socialEngagement ? this.socialEngagement.toApiJson() : this.socialEngagement;
4242
+ }
4243
+ if (typeof this.network !== 'undefined') {
4244
+ toReturn['network'] = this.network;
4245
+ }
4246
+ if (typeof this.errorMessage !== 'undefined') {
4247
+ toReturn['errorMessage'] = this.errorMessage;
4248
+ }
4249
+ return toReturn;
4250
+ }
4251
+ }
4252
+ class SortBy {
4253
+ static fromProto(proto) {
4254
+ let m = new SortBy();
4255
+ m = Object.assign(m, proto);
4256
+ if (proto.sortDirection) {
4257
+ m.sortDirection = enumStringToValue$b(SortBySortDirection, proto.sortDirection);
4258
+ }
4259
+ return m;
4260
+ }
4261
+ constructor(kwargs) {
4262
+ if (!kwargs) {
4263
+ return;
4264
+ }
4265
+ Object.assign(this, kwargs);
4266
+ }
4267
+ toApiJson() {
4268
+ const toReturn = {};
4269
+ if (typeof this.field !== 'undefined') {
4270
+ toReturn['field'] = this.field;
4271
+ }
4272
+ if (typeof this.sortDirection !== 'undefined') {
4273
+ toReturn['sortDirection'] = this.sortDirection;
4274
+ }
4275
+ return toReturn;
4276
+ }
4277
+ }
4278
+
4279
+ function enumStringToValue$a(enumRef, value) {
4280
+ if (typeof value === 'number') {
4281
+ return value;
4282
+ }
4283
+ return enumRef[value];
4284
+ }
4285
+ class ListStockImagesRequest {
4286
+ static fromProto(proto) {
4287
+ let m = new ListStockImagesRequest();
4288
+ m = Object.assign(m, proto);
4289
+ if (proto.imageSource) {
4290
+ m.imageSource = enumStringToValue$a(ImageSource, proto.imageSource);
4291
+ }
4292
+ return m;
4293
+ }
4294
+ constructor(kwargs) {
4295
+ if (!kwargs) {
4296
+ return;
4297
+ }
4298
+ Object.assign(this, kwargs);
4299
+ }
4300
+ toApiJson() {
4301
+ const toReturn = {};
4302
+ if (typeof this.namespaceId !== 'undefined') {
4303
+ toReturn['namespaceId'] = this.namespaceId;
4304
+ }
4305
+ if (typeof this.keywords !== 'undefined') {
4306
+ toReturn['keywords'] = this.keywords;
4307
+ }
4308
+ if (typeof this.imageCount !== 'undefined') {
4309
+ toReturn['imageCount'] = this.imageCount;
4310
+ }
4311
+ if (typeof this.imageSource !== 'undefined') {
4312
+ toReturn['imageSource'] = this.imageSource;
4313
+ }
4314
+ if (typeof this.orientation !== 'undefined') {
4315
+ toReturn['orientation'] = this.orientation;
4316
+ }
4317
+ if (typeof this.size !== 'undefined') {
4318
+ toReturn['size'] = this.size;
4319
+ }
4320
+ if (typeof this.page !== 'undefined') {
4321
+ toReturn['page'] = this.page;
4322
+ }
4323
+ if (typeof this.perPage !== 'undefined') {
4324
+ toReturn['perPage'] = this.perPage;
4325
+ }
4326
+ return toReturn;
4327
+ }
4328
+ }
4329
+ class ListStockImagesResponse {
4330
+ static fromProto(proto) {
4331
+ let m = new ListStockImagesResponse();
4332
+ m = Object.assign(m, proto);
4333
+ if (proto.images) {
4334
+ m.images = proto.images.map(StockImage.fromProto);
4335
+ }
4336
+ return m;
4337
+ }
4338
+ constructor(kwargs) {
4339
+ if (!kwargs) {
4340
+ return;
4341
+ }
4342
+ Object.assign(this, kwargs);
4343
+ }
4344
+ toApiJson() {
4345
+ const toReturn = {};
4346
+ if (typeof this.images !== 'undefined' && this.images !== null) {
4347
+ toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;
4348
+ }
4349
+ return toReturn;
4350
+ }
4351
+ }
4352
+ class StockImage {
4353
+ static fromProto(proto) {
4354
+ let m = new StockImage();
4355
+ m = Object.assign(m, proto);
4356
+ if (proto.source) {
4357
+ m.source = enumStringToValue$a(ImageSource, proto.source);
4358
+ }
4359
+ return m;
4360
+ }
4361
+ constructor(kwargs) {
4362
+ if (!kwargs) {
4363
+ return;
4364
+ }
4365
+ Object.assign(this, kwargs);
4366
+ }
4367
+ toApiJson() {
4368
+ const toReturn = {};
4369
+ if (typeof this.publicUrl !== 'undefined') {
4370
+ toReturn['publicUrl'] = this.publicUrl;
4371
+ }
4372
+ if (typeof this.storageUrl !== 'undefined') {
4373
+ toReturn['storageUrl'] = this.storageUrl;
4374
+ }
4375
+ if (typeof this.source !== 'undefined') {
4376
+ toReturn['source'] = this.source;
4377
+ }
4378
+ if (typeof this.photographerName !== 'undefined') {
4379
+ toReturn['photographerName'] = this.photographerName;
4380
+ }
4381
+ if (typeof this.photographerUrl !== 'undefined') {
4382
+ toReturn['photographerUrl'] = this.photographerUrl;
4383
+ }
4384
+ return toReturn;
4385
+ }
4386
+ }
4387
+
4029
4388
  function enumStringToValue$9(enumRef, value) {
4030
4389
  if (typeof value === 'number') {
4031
4390
  return value;
@@ -8766,6 +9125,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8766
9125
  args: [{ providedIn: 'root' }]
8767
9126
  }] });
8768
9127
 
9128
+ // *********************************
9129
+ // Code generated by sdkgen
9130
+ // DO NOT EDIT!.
9131
+ //
9132
+ // API Service.
9133
+ // *********************************
9134
+ class ImageLibraryApiService {
9135
+ constructor() {
9136
+ this.hostService = inject(HostService);
9137
+ this.http = inject(HttpClient);
9138
+ this._host = this.hostService.hostWithScheme;
9139
+ }
9140
+ apiOptions() {
9141
+ return {
9142
+ headers: new HttpHeaders({
9143
+ 'Content-Type': 'application/json'
9144
+ }),
9145
+ withCredentials: true
9146
+ };
9147
+ }
9148
+ listStockImages(r) {
9149
+ const request = (r.toApiJson) ? r : new ListStockImagesRequest(r);
9150
+ return this.http.post(this._host + "/socialposts.v1.ImageLibrary/ListStockImages", request.toApiJson(), this.apiOptions())
9151
+ .pipe(map(resp => ListStockImagesResponse.fromProto(resp)));
9152
+ }
9153
+ }
9154
+ ImageLibraryApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageLibraryApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9155
+ ImageLibraryApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageLibraryApiService, providedIn: 'root' });
9156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageLibraryApiService, decorators: [{
9157
+ type: Injectable,
9158
+ args: [{ providedIn: 'root' }]
9159
+ }] });
9160
+
8769
9161
  // *********************************
8770
9162
  // Code generated by sdkgen
8771
9163
  // DO NOT EDIT!.
@@ -8835,8 +9227,7 @@ class MultilocationPostApiService {
8835
9227
  }
8836
9228
  editMultilocationPostV2(r) {
8837
9229
  const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
8838
- return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPostV2", request.toApiJson(), this.apiOptions())
8839
- .pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
9230
+ return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPostV2", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
8840
9231
  }
8841
9232
  removeFromMultilocationPost(r) {
8842
9233
  const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
@@ -9011,6 +9402,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
9011
9402
  args: [{ providedIn: 'root' }]
9012
9403
  }] });
9013
9404
 
9405
+ // *********************************
9406
+ // Code generated by sdkgen
9407
+ // DO NOT EDIT!.
9408
+ //
9409
+ // API Service.
9410
+ // *********************************
9411
+ class SocialPostEngagementsApiService {
9412
+ constructor() {
9413
+ this.hostService = inject(HostService);
9414
+ this.http = inject(HttpClient);
9415
+ this._host = this.hostService.hostWithScheme;
9416
+ }
9417
+ apiOptions() {
9418
+ return {
9419
+ headers: new HttpHeaders({
9420
+ 'Content-Type': 'application/json'
9421
+ }),
9422
+ withCredentials: true
9423
+ };
9424
+ }
9425
+ listSocialPostEngagements(r) {
9426
+ const request = (r.toApiJson) ? r : new ListSocialPostEngagementsRequest(r);
9427
+ return this.http.post(this._host + "/socialposts.v1.SocialPostEngagements/ListSocialPostEngagements", request.toApiJson(), this.apiOptions())
9428
+ .pipe(map(resp => ListSocialPostEngagementsResponse.fromProto(resp)));
9429
+ }
9430
+ }
9431
+ SocialPostEngagementsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostEngagementsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9432
+ SocialPostEngagementsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostEngagementsApiService, providedIn: 'root' });
9433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostEngagementsApiService, decorators: [{
9434
+ type: Injectable,
9435
+ args: [{ providedIn: 'root' }]
9436
+ }] });
9437
+
9014
9438
  // *********************************
9015
9439
  // Code generated by sdkgen
9016
9440
  // DO NOT EDIT!.
@@ -9798,5 +10222,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
9798
10222
  * Generated bundle index. Do not edit.
9799
10223
  */
9800
10224
 
9801
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, Author as WordpressAuthor, Category as WordpressCategory, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats };
10225
+ export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRange, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, EngagementParameter, Error, Event, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageSource, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListStockImagesRequest, ListStockImagesResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialEngagement, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostEngagement, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, SortBy, SortBySortDirection, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, StockImage, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats };
9802
10226
  //# sourceMappingURL=vendasta-social-posts.mjs.map