@vendasta/social-posts 5.5.0 → 5.7.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 (49) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +4 -2
  2. package/esm2020/lib/_internal/enums/linkedin-v2.enum.mjs +15 -0
  3. package/esm2020/lib/_internal/enums/social-post-v2.enum.mjs +16 -0
  4. package/esm2020/lib/_internal/enums/social-posts.enum.mjs +10 -1
  5. package/esm2020/lib/_internal/index.mjs +3 -1
  6. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +2 -0
  7. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/linkedin-v2.interface.mjs +8 -0
  10. package/esm2020/lib/_internal/interfaces/social-post-v2.interface.mjs +8 -0
  11. package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
  12. package/esm2020/lib/_internal/linkedin.api.service.mjs +45 -0
  13. package/esm2020/lib/_internal/objects/api-v2.mjs +243 -0
  14. package/esm2020/lib/_internal/objects/api.mjs +39 -3
  15. package/esm2020/lib/_internal/objects/index.mjs +8 -6
  16. package/esm2020/lib/_internal/objects/linkedin-v2.mjs +34 -0
  17. package/esm2020/lib/_internal/objects/social-post-v2.mjs +264 -0
  18. package/esm2020/lib/_internal/objects/social-posts.mjs +163 -1
  19. package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +46 -0
  20. package/esm2020/lib/post-templates.service.mjs +12 -5
  21. package/fesm2015/vendasta-social-posts.mjs +1655 -884
  22. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  23. package/fesm2020/vendasta-social-posts.mjs +1655 -884
  24. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  25. package/lib/_internal/enums/index.d.ts +3 -1
  26. package/lib/_internal/enums/linkedin-v2.enum.d.ts +7 -0
  27. package/lib/_internal/enums/social-post-v2.enum.d.ts +8 -0
  28. package/lib/_internal/enums/social-posts.enum.d.ts +8 -0
  29. package/lib/_internal/index.d.ts +2 -0
  30. package/lib/_internal/interfaces/api-v2.interface.d.ts +40 -0
  31. package/lib/_internal/interfaces/api.interface.d.ts +8 -2
  32. package/lib/_internal/interfaces/index.d.ts +7 -5
  33. package/lib/_internal/interfaces/linkedin-v2.interface.d.ts +5 -0
  34. package/lib/_internal/interfaces/social-post-v2.interface.d.ts +46 -0
  35. package/lib/_internal/interfaces/social-posts.interface.d.ts +33 -0
  36. package/lib/_internal/linkedin.api.service.d.ts +17 -0
  37. package/lib/_internal/objects/api-v2.d.ts +69 -0
  38. package/lib/_internal/objects/api.d.ts +8 -2
  39. package/lib/_internal/objects/index.d.ts +7 -5
  40. package/lib/_internal/objects/linkedin-v2.d.ts +10 -0
  41. package/lib/_internal/objects/social-post-v2.d.ts +72 -0
  42. package/lib/_internal/objects/social-posts.d.ts +42 -0
  43. package/lib/_internal/social-posts-v2.api.service.d.ts +17 -0
  44. package/lib/post-templates.service.d.ts +3 -2
  45. package/package.json +1 -1
  46. package/esm2020/lib/_internal/interfaces/post-templates.interface.mjs +0 -8
  47. package/esm2020/lib/_internal/objects/post-templates.mjs +0 -75
  48. package/lib/_internal/interfaces/post-templates.interface.d.ts +0 -16
  49. package/lib/_internal/objects/post-templates.d.ts +0 -21
@@ -5,7 +5,7 @@ import * as i1 from '@angular/common/http';
5
5
  import { HttpHeaders } from '@angular/common/http';
6
6
  import { map } from 'rxjs/operators';
7
7
 
8
- function enumStringToValue$8(enumRef, value) {
8
+ function enumStringToValue$a(enumRef, value) {
9
9
  if (typeof value === 'number') {
10
10
  return value;
11
11
  }
@@ -32,7 +32,7 @@ class FieldMask {
32
32
  }
33
33
  }
34
34
 
35
- function enumStringToValue$7(enumRef, value) {
35
+ function enumStringToValue$9(enumRef, value) {
36
36
  if (typeof value === 'number') {
37
37
  return value;
38
38
  }
@@ -71,7 +71,7 @@ class Hashtag {
71
71
  }
72
72
  }
73
73
 
74
- function enumStringToValue$6(enumRef, value) {
74
+ function enumStringToValue$8(enumRef, value) {
75
75
  if (typeof value === 'number') {
76
76
  return value;
77
77
  }
@@ -186,218 +186,17 @@ class MultilocationPostError {
186
186
  }
187
187
  }
188
188
 
189
- function enumStringToValue$5(enumRef, value) {
190
- if (typeof value === 'number') {
191
- return value;
192
- }
193
- return enumRef[value];
194
- }
195
- class PixabayImage {
196
- constructor(kwargs) {
197
- if (!kwargs) {
198
- return;
199
- }
200
- Object.assign(this, kwargs);
201
- }
202
- static fromProto(proto) {
203
- let m = new PixabayImage();
204
- m = Object.assign(m, proto);
205
- if (proto.id) {
206
- m.id = parseInt(proto.id, 10);
207
- }
208
- if (proto.previewWidth) {
209
- m.previewWidth = parseInt(proto.previewWidth, 10);
210
- }
211
- if (proto.previewHeight) {
212
- m.previewHeight = parseInt(proto.previewHeight, 10);
213
- }
214
- if (proto.webformatWidth) {
215
- m.webformatWidth = parseInt(proto.webformatWidth, 10);
216
- }
217
- if (proto.webformatHeight) {
218
- m.webformatHeight = parseInt(proto.webformatHeight, 10);
219
- }
220
- if (proto.imageWidth) {
221
- m.imageWidth = parseInt(proto.imageWidth, 10);
222
- }
223
- if (proto.imageHeight) {
224
- m.imageHeight = parseInt(proto.imageHeight, 10);
225
- }
226
- if (proto.imageSize) {
227
- m.imageSize = parseInt(proto.imageSize, 10);
228
- }
229
- if (proto.views) {
230
- m.views = parseInt(proto.views, 10);
231
- }
232
- if (proto.downloads) {
233
- m.downloads = parseInt(proto.downloads, 10);
234
- }
235
- if (proto.favorites) {
236
- m.favorites = parseInt(proto.favorites, 10);
237
- }
238
- if (proto.likes) {
239
- m.likes = parseInt(proto.likes, 10);
240
- }
241
- if (proto.comments) {
242
- m.comments = parseInt(proto.comments, 10);
243
- }
244
- if (proto.userId) {
245
- m.userId = parseInt(proto.userId, 10);
246
- }
247
- return m;
248
- }
249
- toApiJson() {
250
- const toReturn = {};
251
- if (typeof this.id !== 'undefined') {
252
- toReturn['id'] = this.id;
253
- }
254
- if (typeof this.pageUrl !== 'undefined') {
255
- toReturn['pageUrl'] = this.pageUrl;
256
- }
257
- if (typeof this.type !== 'undefined') {
258
- toReturn['type'] = this.type;
259
- }
260
- if (typeof this.tags !== 'undefined') {
261
- toReturn['tags'] = this.tags;
262
- }
263
- if (typeof this.previewUrl !== 'undefined') {
264
- toReturn['previewUrl'] = this.previewUrl;
265
- }
266
- if (typeof this.previewWidth !== 'undefined') {
267
- toReturn['previewWidth'] = this.previewWidth;
268
- }
269
- if (typeof this.previewHeight !== 'undefined') {
270
- toReturn['previewHeight'] = this.previewHeight;
271
- }
272
- if (typeof this.webformatUrl !== 'undefined') {
273
- toReturn['webformatUrl'] = this.webformatUrl;
274
- }
275
- if (typeof this.webformatWidth !== 'undefined') {
276
- toReturn['webformatWidth'] = this.webformatWidth;
277
- }
278
- if (typeof this.webformatHeight !== 'undefined') {
279
- toReturn['webformatHeight'] = this.webformatHeight;
280
- }
281
- if (typeof this.largeImageUrl !== 'undefined') {
282
- toReturn['largeImageUrl'] = this.largeImageUrl;
283
- }
284
- if (typeof this.fullHdUrl !== 'undefined') {
285
- toReturn['fullHdUrl'] = this.fullHdUrl;
286
- }
287
- if (typeof this.imageUrl !== 'undefined') {
288
- toReturn['imageUrl'] = this.imageUrl;
289
- }
290
- if (typeof this.imageWidth !== 'undefined') {
291
- toReturn['imageWidth'] = this.imageWidth;
292
- }
293
- if (typeof this.imageHeight !== 'undefined') {
294
- toReturn['imageHeight'] = this.imageHeight;
295
- }
296
- if (typeof this.imageSize !== 'undefined') {
297
- toReturn['imageSize'] = this.imageSize;
298
- }
299
- if (typeof this.views !== 'undefined') {
300
- toReturn['views'] = this.views;
301
- }
302
- if (typeof this.downloads !== 'undefined') {
303
- toReturn['downloads'] = this.downloads;
304
- }
305
- if (typeof this.favorites !== 'undefined') {
306
- toReturn['favorites'] = this.favorites;
307
- }
308
- if (typeof this.likes !== 'undefined') {
309
- toReturn['likes'] = this.likes;
310
- }
311
- if (typeof this.comments !== 'undefined') {
312
- toReturn['comments'] = this.comments;
313
- }
314
- if (typeof this.userId !== 'undefined') {
315
- toReturn['userId'] = this.userId;
316
- }
317
- if (typeof this.user !== 'undefined') {
318
- toReturn['user'] = this.user;
319
- }
320
- if (typeof this.userImageUrl !== 'undefined') {
321
- toReturn['userImageUrl'] = this.userImageUrl;
322
- }
323
- return toReturn;
324
- }
325
- }
326
-
327
- function enumStringToValue$4(enumRef, value) {
328
- if (typeof value === 'number') {
329
- return value;
330
- }
331
- return enumRef[value];
332
- }
333
- class PostTemplate {
334
- constructor(kwargs) {
335
- if (!kwargs) {
336
- return;
337
- }
338
- Object.assign(this, kwargs);
339
- }
340
- static fromProto(proto) {
341
- let m = new PostTemplate();
342
- m = Object.assign(m, proto);
343
- if (proto.created) {
344
- m.created = new Date(proto.created);
345
- }
346
- if (proto.updated) {
347
- m.updated = new Date(proto.updated);
348
- }
349
- if (proto.postDateTime) {
350
- m.postDateTime = new Date(proto.postDateTime);
351
- }
352
- return m;
353
- }
354
- toApiJson() {
355
- const toReturn = {};
356
- if (typeof this.accountGroupId !== 'undefined') {
357
- toReturn['accountGroupId'] = this.accountGroupId;
358
- }
359
- if (typeof this.templateId !== 'undefined') {
360
- toReturn['templateId'] = this.templateId;
361
- }
362
- if (typeof this.title !== 'undefined') {
363
- toReturn['title'] = this.title;
364
- }
365
- if (typeof this.created !== 'undefined' && this.created !== null) {
366
- toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
367
- }
368
- if (typeof this.updated !== 'undefined' && this.updated !== null) {
369
- toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
370
- }
371
- if (typeof this.postText !== 'undefined') {
372
- toReturn['postText'] = this.postText;
373
- }
374
- if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
375
- toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
376
- }
377
- if (typeof this.gmbPostCustomization !== 'undefined') {
378
- toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
379
- }
380
- if (typeof this.imageUrl !== 'undefined') {
381
- toReturn['imageUrl'] = this.imageUrl;
382
- }
383
- if (typeof this.imagePath !== 'undefined') {
384
- toReturn['imagePath'] = this.imagePath;
385
- }
386
- if (typeof this.imageSize !== 'undefined') {
387
- toReturn['imageSize'] = this.imageSize;
388
- }
389
- if (typeof this.previews !== 'undefined') {
390
- toReturn['previews'] = this.previews;
391
- }
392
- if (typeof this.options !== 'undefined') {
393
- toReturn['options'] = this.options;
394
- }
395
- if (typeof this.videoUrl !== 'undefined') {
396
- toReturn['videoUrl'] = this.videoUrl;
397
- }
398
- return toReturn;
399
- }
400
- }
189
+ // *********************************
190
+ // Code generated by sdkgen
191
+ // DO NOT EDIT!.
192
+ //
193
+ // Enums.
194
+ // *********************************
195
+ var RemoveReason;
196
+ (function (RemoveReason) {
197
+ RemoveReason[RemoveReason["REMOVE_REASON_EDIT"] = 0] = "REMOVE_REASON_EDIT";
198
+ RemoveReason[RemoveReason["REMOVE_REASON_DELETE"] = 1] = "REMOVE_REASON_DELETE";
199
+ })(RemoveReason || (RemoveReason = {}));
401
200
 
402
201
  // *********************************
403
202
  // Code generated by sdkgen
@@ -426,6 +225,15 @@ var PostLength;
426
225
  PostLength[PostLength["SHORT_FORM"] = 0] = "SHORT_FORM";
427
226
  PostLength[PostLength["LONG_FORM"] = 1] = "LONG_FORM";
428
227
  })(PostLength || (PostLength = {}));
228
+ var PostType$1;
229
+ (function (PostType) {
230
+ PostType[PostType["POST_TYPE_INVALID"] = 0] = "POST_TYPE_INVALID";
231
+ PostType[PostType["POST_TYPE_IMAGE"] = 1] = "POST_TYPE_IMAGE";
232
+ PostType[PostType["POST_TYPE_VIDEO"] = 2] = "POST_TYPE_VIDEO";
233
+ PostType[PostType["POST_TYPE_GIF"] = 3] = "POST_TYPE_GIF";
234
+ PostType[PostType["POST_TYPE_REEL"] = 4] = "POST_TYPE_REEL";
235
+ PostType[PostType["POST_TYPE_CAROUSEL"] = 5] = "POST_TYPE_CAROUSEL";
236
+ })(PostType$1 || (PostType$1 = {}));
429
237
  var PostingStatus;
430
238
  (function (PostingStatus) {
431
239
  PostingStatus[PostingStatus["POSTING_IN_PROGRESS"] = 0] = "POSTING_IN_PROGRESS";
@@ -449,15 +257,34 @@ var SocialPostService;
449
257
  //
450
258
  // Enums.
451
259
  // *********************************
452
- var RemoveReason;
453
- (function (RemoveReason) {
454
- RemoveReason[RemoveReason["REMOVE_REASON_EDIT"] = 0] = "REMOVE_REASON_EDIT";
455
- RemoveReason[RemoveReason["REMOVE_REASON_DELETE"] = 1] = "REMOVE_REASON_DELETE";
456
- })(RemoveReason || (RemoveReason = {}));
260
+ var PostType;
261
+ (function (PostType) {
262
+ PostType[PostType["POST_TYPE_INVALID"] = 0] = "POST_TYPE_INVALID";
263
+ PostType[PostType["POST_TYPE_IMAGE"] = 1] = "POST_TYPE_IMAGE";
264
+ PostType[PostType["POST_TYPE_VIDEO"] = 2] = "POST_TYPE_VIDEO";
265
+ PostType[PostType["POST_TYPE_GIF"] = 3] = "POST_TYPE_GIF";
266
+ PostType[PostType["POST_TYPE_MULTI_MEDIA"] = 4] = "POST_TYPE_MULTI_MEDIA";
267
+ PostType[PostType["POST_TYPE_TEXT"] = 5] = "POST_TYPE_TEXT";
268
+ })(PostType || (PostType = {}));
457
269
 
458
270
  // *********************************
271
+ // Code generated by sdkgen
272
+ // DO NOT EDIT!.
273
+ //
274
+ // Enums.
275
+ // *********************************
276
+ var MediaType;
277
+ (function (MediaType) {
278
+ MediaType[MediaType["MEDIA_TYPE_INVALID"] = 0] = "MEDIA_TYPE_INVALID";
279
+ MediaType[MediaType["MEDIA_TYPE_IMAGE"] = 1] = "MEDIA_TYPE_IMAGE";
280
+ MediaType[MediaType["MEDIA_TYPE_VIDEO"] = 2] = "MEDIA_TYPE_VIDEO";
281
+ MediaType[MediaType["MEDIA_TYPE_GIF"] = 3] = "MEDIA_TYPE_GIF";
282
+ MediaType[MediaType["MEDIA_TYPE_CAROUSEL"] = 4] = "MEDIA_TYPE_CAROUSEL";
283
+ })(MediaType || (MediaType = {}));
459
284
 
460
- function enumStringToValue$3(enumRef, value) {
285
+ // *********************************
286
+
287
+ function enumStringToValue$7(enumRef, value) {
461
288
  if (typeof value === 'number') {
462
289
  return value;
463
290
  }
@@ -474,7 +301,7 @@ class CallToAction {
474
301
  let m = new CallToAction();
475
302
  m = Object.assign(m, proto);
476
303
  if (proto.actionType) {
477
- m.actionType = enumStringToValue$3(CallToActionCallToActionType, proto.actionType);
304
+ m.actionType = enumStringToValue$7(CallToActionCallToActionType, proto.actionType);
478
305
  }
479
306
  return m;
480
307
  }
@@ -544,7 +371,7 @@ class Event {
544
371
  return toReturn;
545
372
  }
546
373
  }
547
- class SchedulePostStatus {
374
+ class MediaEntry {
548
375
  constructor(kwargs) {
549
376
  if (!kwargs) {
550
377
  return;
@@ -552,31 +379,34 @@ class SchedulePostStatus {
552
379
  Object.assign(this, kwargs);
553
380
  }
554
381
  static fromProto(proto) {
555
- let m = new SchedulePostStatus();
382
+ let m = new MediaEntry();
556
383
  m = Object.assign(m, proto);
557
- if (proto.error) {
558
- m.error = Error.fromProto(proto.error);
384
+ if (proto.metaData) {
385
+ m.metaData = proto.metaData.map(MetaData.fromProto);
559
386
  }
560
387
  return m;
561
388
  }
562
389
  toApiJson() {
563
390
  const toReturn = {};
564
- if (typeof this.socialPostId !== 'undefined') {
565
- toReturn['socialPostId'] = this.socialPostId;
391
+ if (typeof this.mediaEntryId !== 'undefined') {
392
+ toReturn['mediaEntryId'] = this.mediaEntryId;
566
393
  }
567
- if (typeof this.socialServiceId !== 'undefined') {
568
- toReturn['socialServiceId'] = this.socialServiceId;
394
+ if (typeof this.mediaUrl !== 'undefined') {
395
+ toReturn['mediaUrl'] = this.mediaUrl;
569
396
  }
570
- if (typeof this.socialServiceLabel !== 'undefined') {
571
- toReturn['socialServiceLabel'] = this.socialServiceLabel;
397
+ if (typeof this.mediaType !== 'undefined') {
398
+ toReturn['mediaType'] = this.mediaType;
572
399
  }
573
- if (typeof this.error !== 'undefined' && this.error !== null) {
574
- toReturn['error'] = 'toApiJson' in this.error ? this.error.toApiJson() : this.error;
400
+ if (typeof this.containerId !== 'undefined') {
401
+ toReturn['containerId'] = this.containerId;
402
+ }
403
+ if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
404
+ toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
575
405
  }
576
406
  return toReturn;
577
407
  }
578
408
  }
579
- class SocialPost {
409
+ class MetaData {
580
410
  constructor(kwargs) {
581
411
  if (!kwargs) {
582
412
  return;
@@ -584,16 +414,157 @@ class SocialPost {
584
414
  Object.assign(this, kwargs);
585
415
  }
586
416
  static fromProto(proto) {
587
- let m = new SocialPost();
417
+ let m = new MetaData();
418
+ m = Object.assign(m, proto);
419
+ return m;
420
+ }
421
+ toApiJson() {
422
+ const toReturn = {};
423
+ if (typeof this.propertyName !== 'undefined') {
424
+ toReturn['propertyName'] = this.propertyName;
425
+ }
426
+ if (typeof this.propertyValue !== 'undefined') {
427
+ toReturn['propertyValue'] = this.propertyValue;
428
+ }
429
+ return toReturn;
430
+ }
431
+ }
432
+ class PostTemplate {
433
+ constructor(kwargs) {
434
+ if (!kwargs) {
435
+ return;
436
+ }
437
+ Object.assign(this, kwargs);
438
+ }
439
+ static fromProto(proto) {
440
+ let m = new PostTemplate();
441
+ m = Object.assign(m, proto);
442
+ if (proto.created) {
443
+ m.created = new Date(proto.created);
444
+ }
445
+ if (proto.updated) {
446
+ m.updated = new Date(proto.updated);
447
+ }
448
+ if (proto.postDateTime) {
449
+ m.postDateTime = new Date(proto.postDateTime);
450
+ }
451
+ if (proto.mediaEntries) {
452
+ m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
453
+ }
454
+ if (proto.metaData) {
455
+ m.metaData = proto.metaData.map(MetaData.fromProto);
456
+ }
457
+ if (proto.postType) {
458
+ m.postType = enumStringToValue$7(PostType$1, proto.postType);
459
+ }
460
+ return m;
461
+ }
462
+ toApiJson() {
463
+ const toReturn = {};
464
+ if (typeof this.accountGroupId !== 'undefined') {
465
+ toReturn['accountGroupId'] = this.accountGroupId;
466
+ }
467
+ if (typeof this.templateId !== 'undefined') {
468
+ toReturn['templateId'] = this.templateId;
469
+ }
470
+ if (typeof this.title !== 'undefined') {
471
+ toReturn['title'] = this.title;
472
+ }
473
+ if (typeof this.created !== 'undefined' && this.created !== null) {
474
+ toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
475
+ }
476
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
477
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
478
+ }
479
+ if (typeof this.postText !== 'undefined') {
480
+ toReturn['postText'] = this.postText;
481
+ }
482
+ if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
483
+ toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
484
+ }
485
+ if (typeof this.gmbPostCustomization !== 'undefined') {
486
+ toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
487
+ }
488
+ if (typeof this.imageUrl !== 'undefined') {
489
+ toReturn['imageUrl'] = this.imageUrl;
490
+ }
491
+ if (typeof this.imagePath !== 'undefined') {
492
+ toReturn['imagePath'] = this.imagePath;
493
+ }
494
+ if (typeof this.imageSize !== 'undefined') {
495
+ toReturn['imageSize'] = this.imageSize;
496
+ }
497
+ if (typeof this.previews !== 'undefined') {
498
+ toReturn['previews'] = this.previews;
499
+ }
500
+ if (typeof this.options !== 'undefined') {
501
+ toReturn['options'] = this.options;
502
+ }
503
+ if (typeof this.videoUrl !== 'undefined') {
504
+ toReturn['videoUrl'] = this.videoUrl;
505
+ }
506
+ if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
507
+ toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
508
+ }
509
+ if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
510
+ toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
511
+ }
512
+ if (typeof this.postType !== 'undefined') {
513
+ toReturn['postType'] = this.postType;
514
+ }
515
+ return toReturn;
516
+ }
517
+ }
518
+ class SchedulePostStatus {
519
+ constructor(kwargs) {
520
+ if (!kwargs) {
521
+ return;
522
+ }
523
+ Object.assign(this, kwargs);
524
+ }
525
+ static fromProto(proto) {
526
+ let m = new SchedulePostStatus();
527
+ m = Object.assign(m, proto);
528
+ if (proto.error) {
529
+ m.error = Error.fromProto(proto.error);
530
+ }
531
+ return m;
532
+ }
533
+ toApiJson() {
534
+ const toReturn = {};
535
+ if (typeof this.socialPostId !== 'undefined') {
536
+ toReturn['socialPostId'] = this.socialPostId;
537
+ }
538
+ if (typeof this.socialServiceId !== 'undefined') {
539
+ toReturn['socialServiceId'] = this.socialServiceId;
540
+ }
541
+ if (typeof this.socialServiceLabel !== 'undefined') {
542
+ toReturn['socialServiceLabel'] = this.socialServiceLabel;
543
+ }
544
+ if (typeof this.error !== 'undefined' && this.error !== null) {
545
+ toReturn['error'] = 'toApiJson' in this.error ? this.error.toApiJson() : this.error;
546
+ }
547
+ return toReturn;
548
+ }
549
+ }
550
+ class SocialPost$1 {
551
+ constructor(kwargs) {
552
+ if (!kwargs) {
553
+ return;
554
+ }
555
+ Object.assign(this, kwargs);
556
+ }
557
+ static fromProto(proto) {
558
+ let m = new SocialPost$1();
588
559
  m = Object.assign(m, proto);
589
560
  if (proto.posted) {
590
561
  m.posted = new Date(proto.posted);
591
562
  }
592
563
  if (proto.deletionStatus) {
593
- m.deletionStatus = enumStringToValue$3(SocialPostDeletionStatus, proto.deletionStatus);
564
+ m.deletionStatus = enumStringToValue$7(SocialPostDeletionStatus, proto.deletionStatus);
594
565
  }
595
566
  if (proto.service) {
596
- m.service = enumStringToValue$3(SocialPostService, proto.service);
567
+ m.service = enumStringToValue$7(SocialPostService, proto.service);
597
568
  }
598
569
  if (proto.created) {
599
570
  m.created = new Date(proto.created);
@@ -602,7 +573,7 @@ class SocialPost {
602
573
  m.scheduled = new Date(proto.scheduled);
603
574
  }
604
575
  if (proto.status) {
605
- m.status = enumStringToValue$3(PostingStatus, proto.status);
576
+ m.status = enumStringToValue$7(PostingStatus, proto.status);
606
577
  }
607
578
  if (proto.event) {
608
579
  m.event = Event.fromProto(proto.event);
@@ -613,6 +584,15 @@ class SocialPost {
613
584
  if (proto.error) {
614
585
  m.error = Error.fromProto(proto.error);
615
586
  }
587
+ if (proto.postType) {
588
+ m.postType = enumStringToValue$7(PostType$1, proto.postType);
589
+ }
590
+ if (proto.mediaEntries) {
591
+ m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
592
+ }
593
+ if (proto.metaData) {
594
+ m.metaData = proto.metaData.map(MetaData.fromProto);
595
+ }
616
596
  return m;
617
597
  }
618
598
  toApiJson() {
@@ -695,6 +675,15 @@ class SocialPost {
695
675
  if (typeof this.multilocationPostId !== 'undefined') {
696
676
  toReturn['multilocationPostId'] = this.multilocationPostId;
697
677
  }
678
+ if (typeof this.postType !== 'undefined') {
679
+ toReturn['postType'] = this.postType;
680
+ }
681
+ if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
682
+ toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
683
+ }
684
+ if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
685
+ toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
686
+ }
698
687
  return toReturn;
699
688
  }
700
689
  }
@@ -728,13 +717,13 @@ class SocialPostData {
728
717
  }
729
718
  }
730
719
 
731
- function enumStringToValue$2(enumRef, value) {
720
+ function enumStringToValue$6(enumRef, value) {
732
721
  if (typeof value === 'number') {
733
722
  return value;
734
723
  }
735
724
  return enumRef[value];
736
725
  }
737
- class FacebookPostStats {
726
+ class PixabayImage {
738
727
  constructor(kwargs) {
739
728
  if (!kwargs) {
740
729
  return;
@@ -742,126 +731,137 @@ class FacebookPostStats {
742
731
  Object.assign(this, kwargs);
743
732
  }
744
733
  static fromProto(proto) {
745
- let m = new FacebookPostStats();
734
+ let m = new PixabayImage();
746
735
  m = Object.assign(m, proto);
747
- if (proto.commentCount) {
748
- m.commentCount = parseInt(proto.commentCount, 10);
749
- }
750
- if (proto.shareCount) {
751
- m.shareCount = parseInt(proto.shareCount, 10);
736
+ if (proto.id) {
737
+ m.id = parseInt(proto.id, 10);
752
738
  }
753
- if (proto.likeCount) {
754
- m.likeCount = parseInt(proto.likeCount, 10);
739
+ if (proto.previewWidth) {
740
+ m.previewWidth = parseInt(proto.previewWidth, 10);
755
741
  }
756
- if (proto.reactions) {
757
- m.reactions = parseInt(proto.reactions, 10);
742
+ if (proto.previewHeight) {
743
+ m.previewHeight = parseInt(proto.previewHeight, 10);
758
744
  }
759
- if (proto.peopleReached) {
760
- m.peopleReached = parseInt(proto.peopleReached, 10);
745
+ if (proto.webformatWidth) {
746
+ m.webformatWidth = parseInt(proto.webformatWidth, 10);
761
747
  }
762
- return m;
763
- }
764
- toApiJson() {
765
- const toReturn = {};
766
- if (typeof this.commentCount !== 'undefined') {
767
- toReturn['commentCount'] = this.commentCount;
748
+ if (proto.webformatHeight) {
749
+ m.webformatHeight = parseInt(proto.webformatHeight, 10);
768
750
  }
769
- if (typeof this.shareCount !== 'undefined') {
770
- toReturn['shareCount'] = this.shareCount;
751
+ if (proto.imageWidth) {
752
+ m.imageWidth = parseInt(proto.imageWidth, 10);
771
753
  }
772
- if (typeof this.likeCount !== 'undefined') {
773
- toReturn['likeCount'] = this.likeCount;
754
+ if (proto.imageHeight) {
755
+ m.imageHeight = parseInt(proto.imageHeight, 10);
774
756
  }
775
- if (typeof this.hasLike !== 'undefined') {
776
- toReturn['hasLike'] = this.hasLike;
757
+ if (proto.imageSize) {
758
+ m.imageSize = parseInt(proto.imageSize, 10);
777
759
  }
778
- if (typeof this.canLike !== 'undefined') {
779
- toReturn['canLike'] = this.canLike;
760
+ if (proto.views) {
761
+ m.views = parseInt(proto.views, 10);
780
762
  }
781
- if (typeof this.reactions !== 'undefined') {
782
- toReturn['reactions'] = this.reactions;
763
+ if (proto.downloads) {
764
+ m.downloads = parseInt(proto.downloads, 10);
783
765
  }
784
- if (typeof this.peopleReached !== 'undefined') {
785
- toReturn['peopleReached'] = this.peopleReached;
766
+ if (proto.favorites) {
767
+ m.favorites = parseInt(proto.favorites, 10);
786
768
  }
787
- return toReturn;
788
- }
789
- }
790
- class SocialPostStats {
791
- constructor(kwargs) {
792
- if (!kwargs) {
793
- return;
769
+ if (proto.likes) {
770
+ m.likes = parseInt(proto.likes, 10);
794
771
  }
795
- Object.assign(this, kwargs);
796
- }
797
- static fromProto(proto) {
798
- let m = new SocialPostStats();
799
- m = Object.assign(m, proto);
800
- if (proto.facebookPostStats) {
801
- m.facebookPostStats = FacebookPostStats.fromProto(proto.facebookPostStats);
772
+ if (proto.comments) {
773
+ m.comments = parseInt(proto.comments, 10);
802
774
  }
803
- if (proto.twitterPostStats) {
804
- m.twitterPostStats = TwitterPostStats.fromProto(proto.twitterPostStats);
775
+ if (proto.userId) {
776
+ m.userId = parseInt(proto.userId, 10);
805
777
  }
806
778
  return m;
807
779
  }
808
780
  toApiJson() {
809
781
  const toReturn = {};
810
- if (typeof this.internalPostId !== 'undefined') {
811
- toReturn['internalPostId'] = this.internalPostId;
782
+ if (typeof this.id !== 'undefined') {
783
+ toReturn['id'] = this.id;
812
784
  }
813
- if (typeof this.facebookPostStats !== 'undefined' && this.facebookPostStats !== null) {
814
- toReturn['facebookPostStats'] = 'toApiJson' in this.facebookPostStats ? this.facebookPostStats.toApiJson() : this.facebookPostStats;
785
+ if (typeof this.pageUrl !== 'undefined') {
786
+ toReturn['pageUrl'] = this.pageUrl;
815
787
  }
816
- if (typeof this.twitterPostStats !== 'undefined' && this.twitterPostStats !== null) {
817
- toReturn['twitterPostStats'] = 'toApiJson' in this.twitterPostStats ? this.twitterPostStats.toApiJson() : this.twitterPostStats;
788
+ if (typeof this.type !== 'undefined') {
789
+ toReturn['type'] = this.type;
818
790
  }
819
- return toReturn;
820
- }
821
- }
822
- class TwitterPostStats {
823
- constructor(kwargs) {
824
- if (!kwargs) {
825
- return;
791
+ if (typeof this.tags !== 'undefined') {
792
+ toReturn['tags'] = this.tags;
826
793
  }
827
- Object.assign(this, kwargs);
828
- }
829
- static fromProto(proto) {
830
- let m = new TwitterPostStats();
831
- m = Object.assign(m, proto);
832
- if (proto.favourites) {
833
- m.favourites = parseInt(proto.favourites, 10);
794
+ if (typeof this.previewUrl !== 'undefined') {
795
+ toReturn['previewUrl'] = this.previewUrl;
834
796
  }
835
- if (proto.retweets) {
836
- m.retweets = parseInt(proto.retweets, 10);
797
+ if (typeof this.previewWidth !== 'undefined') {
798
+ toReturn['previewWidth'] = this.previewWidth;
837
799
  }
838
- return m;
839
- }
840
- toApiJson() {
841
- const toReturn = {};
842
- if (typeof this.favourites !== 'undefined') {
843
- toReturn['favourites'] = this.favourites;
800
+ if (typeof this.previewHeight !== 'undefined') {
801
+ toReturn['previewHeight'] = this.previewHeight;
844
802
  }
845
- if (typeof this.hasFavourited !== 'undefined') {
846
- toReturn['hasFavourited'] = this.hasFavourited;
803
+ if (typeof this.webformatUrl !== 'undefined') {
804
+ toReturn['webformatUrl'] = this.webformatUrl;
847
805
  }
848
- if (typeof this.retweets !== 'undefined') {
849
- toReturn['retweets'] = this.retweets;
806
+ if (typeof this.webformatWidth !== 'undefined') {
807
+ toReturn['webformatWidth'] = this.webformatWidth;
850
808
  }
851
- if (typeof this.hasRetweeted !== 'undefined') {
852
- toReturn['hasRetweeted'] = this.hasRetweeted;
809
+ if (typeof this.webformatHeight !== 'undefined') {
810
+ toReturn['webformatHeight'] = this.webformatHeight;
811
+ }
812
+ if (typeof this.largeImageUrl !== 'undefined') {
813
+ toReturn['largeImageUrl'] = this.largeImageUrl;
814
+ }
815
+ if (typeof this.fullHdUrl !== 'undefined') {
816
+ toReturn['fullHdUrl'] = this.fullHdUrl;
817
+ }
818
+ if (typeof this.imageUrl !== 'undefined') {
819
+ toReturn['imageUrl'] = this.imageUrl;
820
+ }
821
+ if (typeof this.imageWidth !== 'undefined') {
822
+ toReturn['imageWidth'] = this.imageWidth;
823
+ }
824
+ if (typeof this.imageHeight !== 'undefined') {
825
+ toReturn['imageHeight'] = this.imageHeight;
826
+ }
827
+ if (typeof this.imageSize !== 'undefined') {
828
+ toReturn['imageSize'] = this.imageSize;
829
+ }
830
+ if (typeof this.views !== 'undefined') {
831
+ toReturn['views'] = this.views;
832
+ }
833
+ if (typeof this.downloads !== 'undefined') {
834
+ toReturn['downloads'] = this.downloads;
835
+ }
836
+ if (typeof this.favorites !== 'undefined') {
837
+ toReturn['favorites'] = this.favorites;
838
+ }
839
+ if (typeof this.likes !== 'undefined') {
840
+ toReturn['likes'] = this.likes;
841
+ }
842
+ if (typeof this.comments !== 'undefined') {
843
+ toReturn['comments'] = this.comments;
844
+ }
845
+ if (typeof this.userId !== 'undefined') {
846
+ toReturn['userId'] = this.userId;
847
+ }
848
+ if (typeof this.user !== 'undefined') {
849
+ toReturn['user'] = this.user;
850
+ }
851
+ if (typeof this.userImageUrl !== 'undefined') {
852
+ toReturn['userImageUrl'] = this.userImageUrl;
853
853
  }
854
854
  return toReturn;
855
855
  }
856
856
  }
857
857
 
858
- function enumStringToValue$1(enumRef, value) {
858
+ function enumStringToValue$5(enumRef, value) {
859
859
  if (typeof value === 'number') {
860
860
  return value;
861
861
  }
862
862
  return enumRef[value];
863
863
  }
864
- class TenorGifMediaEntry {
864
+ class Link {
865
865
  constructor(kwargs) {
866
866
  if (!kwargs) {
867
867
  return;
@@ -869,25 +869,34 @@ class TenorGifMediaEntry {
869
869
  Object.assign(this, kwargs);
870
870
  }
871
871
  static fromProto(proto) {
872
- let m = new TenorGifMediaEntry();
872
+ let m = new Link();
873
873
  m = Object.assign(m, proto);
874
- if (proto.value) {
875
- m.value = TenorMediaObject.fromProto(proto.value);
876
- }
877
874
  return m;
878
875
  }
879
876
  toApiJson() {
880
877
  const toReturn = {};
881
- if (typeof this.key !== 'undefined') {
882
- toReturn['key'] = this.key;
878
+ if (typeof this.name !== 'undefined') {
879
+ toReturn['name'] = this.name;
883
880
  }
884
- if (typeof this.value !== 'undefined' && this.value !== null) {
885
- toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
881
+ if (typeof this.picture !== 'undefined') {
882
+ toReturn['picture'] = this.picture;
883
+ }
884
+ if (typeof this.description !== 'undefined') {
885
+ toReturn['description'] = this.description;
886
+ }
887
+ if (typeof this.title !== 'undefined') {
888
+ toReturn['title'] = this.title;
889
+ }
890
+ if (typeof this.url !== 'undefined') {
891
+ toReturn['url'] = this.url;
892
+ }
893
+ if (typeof this.shortcode !== 'undefined') {
894
+ toReturn['shortcode'] = this.shortcode;
886
895
  }
887
896
  return toReturn;
888
897
  }
889
898
  }
890
- class TenorGif {
899
+ class Metadata {
891
900
  constructor(kwargs) {
892
901
  if (!kwargs) {
893
902
  return;
@@ -895,37 +904,22 @@ class TenorGif {
895
904
  Object.assign(this, kwargs);
896
905
  }
897
906
  static fromProto(proto) {
898
- let m = new TenorGif();
907
+ let m = new Metadata();
899
908
  m = Object.assign(m, proto);
900
- if (proto.media) {
901
- m.media = Object.keys(proto.media).reduce((obj, k) => { obj[k] = TenorMediaObject.fromProto(proto.media[k]); return obj; }, {});
902
- }
903
909
  return m;
904
910
  }
905
911
  toApiJson() {
906
912
  const toReturn = {};
907
- if (typeof this.media !== 'undefined' && this.media !== null) {
908
- toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
909
- }
910
- if (typeof this.tags !== 'undefined') {
911
- toReturn['tags'] = this.tags;
912
- }
913
- if (typeof this.hasAudio !== 'undefined') {
914
- toReturn['hasAudio'] = this.hasAudio;
915
- }
916
- if (typeof this.title !== 'undefined') {
917
- toReturn['title'] = this.title;
918
- }
919
- if (typeof this.id !== 'undefined') {
920
- toReturn['id'] = this.id;
913
+ if (typeof this.name !== 'undefined') {
914
+ toReturn['name'] = this.name;
921
915
  }
922
- if (typeof this.created !== 'undefined') {
923
- toReturn['created'] = this.created;
916
+ if (typeof this.value !== 'undefined') {
917
+ toReturn['value'] = this.value;
924
918
  }
925
919
  return toReturn;
926
920
  }
927
921
  }
928
- class TenorMediaObject {
922
+ class PostAction {
929
923
  constructor(kwargs) {
930
924
  if (!kwargs) {
931
925
  return;
@@ -933,41 +927,22 @@ class TenorMediaObject {
933
927
  Object.assign(this, kwargs);
934
928
  }
935
929
  static fromProto(proto) {
936
- let m = new TenorMediaObject();
930
+ let m = new PostAction();
937
931
  m = Object.assign(m, proto);
938
- if (proto.dimensions) {
939
- m.dimensions = proto.dimensions.map((i) => parseInt(i, 10));
940
- }
941
- if (proto.size) {
942
- m.size = parseInt(proto.size, 10);
943
- }
944
932
  return m;
945
933
  }
946
934
  toApiJson() {
947
935
  const toReturn = {};
948
- if (typeof this.preview !== 'undefined') {
949
- toReturn['preview'] = this.preview;
950
- }
951
- if (typeof this.url !== 'undefined') {
952
- toReturn['url'] = this.url;
953
- }
954
- if (typeof this.dimensions !== 'undefined') {
955
- toReturn['dimensions'] = this.dimensions;
936
+ if (typeof this.type !== 'undefined') {
937
+ toReturn['type'] = this.type;
956
938
  }
957
- if (typeof this.size !== 'undefined') {
958
- toReturn['size'] = this.size;
939
+ if (typeof this.linkUrl !== 'undefined') {
940
+ toReturn['linkUrl'] = this.linkUrl;
959
941
  }
960
942
  return toReturn;
961
943
  }
962
944
  }
963
-
964
- function enumStringToValue(enumRef, value) {
965
- if (typeof value === 'number') {
966
- return value;
967
- }
968
- return enumRef[value];
969
- }
970
- class CreateMultilocationPostRequest {
945
+ class PostContent {
971
946
  constructor(kwargs) {
972
947
  if (!kwargs) {
973
948
  return;
@@ -975,43 +950,31 @@ class CreateMultilocationPostRequest {
975
950
  Object.assign(this, kwargs);
976
951
  }
977
952
  static fromProto(proto) {
978
- let m = new CreateMultilocationPostRequest();
953
+ let m = new PostContent();
979
954
  m = Object.assign(m, proto);
980
- if (proto.scheduledDate) {
981
- m.scheduledDate = new Date(proto.scheduledDate);
955
+ if (proto.media) {
956
+ m.media = proto.media.map(PostMedia.fromProto);
982
957
  }
983
- if (proto.locations) {
984
- m.locations = proto.locations.map(Location.fromProto);
958
+ if (proto.link) {
959
+ m.link = proto.link.map(Link.fromProto);
985
960
  }
986
961
  return m;
987
962
  }
988
963
  toApiJson() {
989
964
  const toReturn = {};
990
- if (typeof this.brandId !== 'undefined') {
991
- toReturn['brandId'] = this.brandId;
992
- }
993
- if (typeof this.text !== 'undefined') {
994
- toReturn['text'] = this.text;
995
- }
996
- if (typeof this.media !== 'undefined') {
997
- toReturn['media'] = this.media;
998
- }
999
- if (typeof this.scheduledDate !== 'undefined' && this.scheduledDate !== null) {
1000
- toReturn['scheduledDate'] = 'toApiJson' in this.scheduledDate ? this.scheduledDate.toApiJson() : this.scheduledDate;
1001
- }
1002
- if (typeof this.locations !== 'undefined' && this.locations !== null) {
1003
- toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
965
+ if (typeof this.postText !== 'undefined') {
966
+ toReturn['postText'] = this.postText;
1004
967
  }
1005
- if (typeof this.gifs !== 'undefined') {
1006
- toReturn['gifs'] = this.gifs;
968
+ if (typeof this.media !== 'undefined' && this.media !== null) {
969
+ toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
1007
970
  }
1008
- if (typeof this.videos !== 'undefined') {
1009
- toReturn['videos'] = this.videos;
971
+ if (typeof this.link !== 'undefined' && this.link !== null) {
972
+ toReturn['link'] = 'toApiJson' in this.link ? this.link.toApiJson() : this.link;
1010
973
  }
1011
974
  return toReturn;
1012
975
  }
1013
976
  }
1014
- class CreateMultilocationPostResponse {
977
+ class PostCustomization {
1015
978
  constructor(kwargs) {
1016
979
  if (!kwargs) {
1017
980
  return;
@@ -1019,28 +982,28 @@ class CreateMultilocationPostResponse {
1019
982
  Object.assign(this, kwargs);
1020
983
  }
1021
984
  static fromProto(proto) {
1022
- let m = new CreateMultilocationPostResponse();
985
+ let m = new PostCustomization();
1023
986
  m = Object.assign(m, proto);
1024
- if (proto.post) {
1025
- m.post = MultilocationPost.fromProto(proto.post);
987
+ if (proto.event) {
988
+ m.event = PostEvent.fromProto(proto.event);
1026
989
  }
1027
- if (proto.errors) {
1028
- m.errors = proto.errors.map(MultilocationPostError.fromProto);
990
+ if (proto.action) {
991
+ m.action = PostAction.fromProto(proto.action);
1029
992
  }
1030
993
  return m;
1031
994
  }
1032
995
  toApiJson() {
1033
996
  const toReturn = {};
1034
- if (typeof this.post !== 'undefined' && this.post !== null) {
1035
- toReturn['post'] = 'toApiJson' in this.post ? this.post.toApiJson() : this.post;
997
+ if (typeof this.event !== 'undefined' && this.event !== null) {
998
+ toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
1036
999
  }
1037
- if (typeof this.errors !== 'undefined' && this.errors !== null) {
1038
- toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
1000
+ if (typeof this.action !== 'undefined' && this.action !== null) {
1001
+ toReturn['action'] = 'toApiJson' in this.action ? this.action.toApiJson() : this.action;
1039
1002
  }
1040
1003
  return toReturn;
1041
1004
  }
1042
1005
  }
1043
- class CreatePostTemplateRequest {
1006
+ class PostEvent {
1044
1007
  constructor(kwargs) {
1045
1008
  if (!kwargs) {
1046
1009
  return;
@@ -1048,52 +1011,31 @@ class CreatePostTemplateRequest {
1048
1011
  Object.assign(this, kwargs);
1049
1012
  }
1050
1013
  static fromProto(proto) {
1051
- let m = new CreatePostTemplateRequest();
1014
+ let m = new PostEvent();
1052
1015
  m = Object.assign(m, proto);
1053
- if (proto.postDateTime) {
1054
- m.postDateTime = new Date(proto.postDateTime);
1016
+ if (proto.start) {
1017
+ m.start = new Date(proto.start);
1018
+ }
1019
+ if (proto.end) {
1020
+ m.end = new Date(proto.end);
1055
1021
  }
1056
1022
  return m;
1057
1023
  }
1058
1024
  toApiJson() {
1059
1025
  const toReturn = {};
1060
- if (typeof this.accountGroupId !== 'undefined') {
1061
- toReturn['accountGroupId'] = this.accountGroupId;
1062
- }
1063
1026
  if (typeof this.title !== 'undefined') {
1064
1027
  toReturn['title'] = this.title;
1065
1028
  }
1066
- if (typeof this.postText !== 'undefined') {
1067
- toReturn['postText'] = this.postText;
1068
- }
1069
- if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
1070
- toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
1071
- }
1072
- if (typeof this.gmbPostCustomization !== 'undefined') {
1073
- toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
1074
- }
1075
- if (typeof this.imageUrl !== 'undefined') {
1076
- toReturn['imageUrl'] = this.imageUrl;
1077
- }
1078
- if (typeof this.imagePath !== 'undefined') {
1079
- toReturn['imagePath'] = this.imagePath;
1080
- }
1081
- if (typeof this.imageSize !== 'undefined') {
1082
- toReturn['imageSize'] = this.imageSize;
1083
- }
1084
- if (typeof this.previews !== 'undefined') {
1085
- toReturn['previews'] = this.previews;
1086
- }
1087
- if (typeof this.options !== 'undefined') {
1088
- toReturn['options'] = this.options;
1029
+ if (typeof this.start !== 'undefined' && this.start !== null) {
1030
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
1089
1031
  }
1090
- if (typeof this.videoUrl !== 'undefined') {
1091
- toReturn['videoUrl'] = this.videoUrl;
1032
+ if (typeof this.end !== 'undefined' && this.end !== null) {
1033
+ toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
1092
1034
  }
1093
1035
  return toReturn;
1094
1036
  }
1095
1037
  }
1096
- class CreatePostTemplateResponse {
1038
+ class PostMedia {
1097
1039
  constructor(kwargs) {
1098
1040
  if (!kwargs) {
1099
1041
  return;
@@ -1101,19 +1043,34 @@ class CreatePostTemplateResponse {
1101
1043
  Object.assign(this, kwargs);
1102
1044
  }
1103
1045
  static fromProto(proto) {
1104
- let m = new CreatePostTemplateResponse();
1046
+ let m = new PostMedia();
1105
1047
  m = Object.assign(m, proto);
1048
+ if (proto.metadata) {
1049
+ m.metadata = proto.metadata.map(Metadata.fromProto);
1050
+ }
1106
1051
  return m;
1107
1052
  }
1108
1053
  toApiJson() {
1109
1054
  const toReturn = {};
1110
- if (typeof this.templateId !== 'undefined') {
1111
- toReturn['templateId'] = this.templateId;
1055
+ if (typeof this.mediaId !== 'undefined') {
1056
+ toReturn['mediaId'] = this.mediaId;
1057
+ }
1058
+ if (typeof this.mediaUrl !== 'undefined') {
1059
+ toReturn['mediaUrl'] = this.mediaUrl;
1060
+ }
1061
+ if (typeof this.mediaType !== 'undefined') {
1062
+ toReturn['mediaType'] = this.mediaType;
1063
+ }
1064
+ if (typeof this.containerId !== 'undefined') {
1065
+ toReturn['containerId'] = this.containerId;
1066
+ }
1067
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1068
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1112
1069
  }
1113
1070
  return toReturn;
1114
1071
  }
1115
1072
  }
1116
- class DateRangeFilter {
1073
+ class SocialPost {
1117
1074
  constructor(kwargs) {
1118
1075
  if (!kwargs) {
1119
1076
  return;
@@ -1121,28 +1078,53 @@ class DateRangeFilter {
1121
1078
  Object.assign(this, kwargs);
1122
1079
  }
1123
1080
  static fromProto(proto) {
1124
- let m = new DateRangeFilter();
1081
+ let m = new SocialPost();
1125
1082
  m = Object.assign(m, proto);
1126
- if (proto.beginRange) {
1127
- m.beginRange = new Date(proto.beginRange);
1083
+ if (proto.postContent) {
1084
+ m.postContent = PostContent.fromProto(proto.postContent);
1128
1085
  }
1129
- if (proto.endRange) {
1130
- m.endRange = new Date(proto.endRange);
1086
+ if (proto.scheduled) {
1087
+ m.scheduled = new Date(proto.scheduled);
1088
+ }
1089
+ if (proto.customization) {
1090
+ m.customization = PostCustomization.fromProto(proto.customization);
1091
+ }
1092
+ if (proto.postType) {
1093
+ m.postType = enumStringToValue$5(PostType$1, proto.postType);
1131
1094
  }
1132
1095
  return m;
1133
1096
  }
1134
1097
  toApiJson() {
1135
1098
  const toReturn = {};
1136
- if (typeof this.beginRange !== 'undefined' && this.beginRange !== null) {
1137
- toReturn['beginRange'] = 'toApiJson' in this.beginRange ? this.beginRange.toApiJson() : this.beginRange;
1099
+ if (typeof this.businessId !== 'undefined') {
1100
+ toReturn['businessId'] = this.businessId;
1138
1101
  }
1139
- if (typeof this.endRange !== 'undefined' && this.endRange !== null) {
1140
- toReturn['endRange'] = 'toApiJson' in this.endRange ? this.endRange.toApiJson() : this.endRange;
1102
+ if (typeof this.socialServiceId !== 'undefined') {
1103
+ toReturn['socialServiceId'] = this.socialServiceId;
1104
+ }
1105
+ if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
1106
+ toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
1107
+ }
1108
+ if (typeof this.scheduled !== 'undefined' && this.scheduled !== null) {
1109
+ toReturn['scheduled'] = 'toApiJson' in this.scheduled ? this.scheduled.toApiJson() : this.scheduled;
1110
+ }
1111
+ if (typeof this.customization !== 'undefined' && this.customization !== null) {
1112
+ toReturn['customization'] = 'toApiJson' in this.customization ? this.customization.toApiJson() : this.customization;
1113
+ }
1114
+ if (typeof this.postType !== 'undefined') {
1115
+ toReturn['postType'] = this.postType;
1141
1116
  }
1142
1117
  return toReturn;
1143
1118
  }
1144
1119
  }
1145
- class DeleteHashtagsRequest {
1120
+
1121
+ function enumStringToValue$4(enumRef, value) {
1122
+ if (typeof value === 'number') {
1123
+ return value;
1124
+ }
1125
+ return enumRef[value];
1126
+ }
1127
+ class FacebookPostStats {
1146
1128
  constructor(kwargs) {
1147
1129
  if (!kwargs) {
1148
1130
  return;
@@ -1150,25 +1132,52 @@ class DeleteHashtagsRequest {
1150
1132
  Object.assign(this, kwargs);
1151
1133
  }
1152
1134
  static fromProto(proto) {
1153
- let m = new DeleteHashtagsRequest();
1135
+ let m = new FacebookPostStats();
1154
1136
  m = Object.assign(m, proto);
1155
- return m;
1156
- }
1157
- toApiJson() {
1158
- const toReturn = {};
1159
- if (typeof this.keyword !== 'undefined') {
1160
- toReturn['keyword'] = this.keyword;
1137
+ if (proto.commentCount) {
1138
+ m.commentCount = parseInt(proto.commentCount, 10);
1161
1139
  }
1162
- if (typeof this.businessId !== 'undefined') {
1163
- toReturn['businessId'] = this.businessId;
1140
+ if (proto.shareCount) {
1141
+ m.shareCount = parseInt(proto.shareCount, 10);
1164
1142
  }
1165
- if (typeof this.partnerId !== 'undefined') {
1166
- toReturn['partnerId'] = this.partnerId;
1143
+ if (proto.likeCount) {
1144
+ m.likeCount = parseInt(proto.likeCount, 10);
1145
+ }
1146
+ if (proto.reactions) {
1147
+ m.reactions = parseInt(proto.reactions, 10);
1148
+ }
1149
+ if (proto.peopleReached) {
1150
+ m.peopleReached = parseInt(proto.peopleReached, 10);
1151
+ }
1152
+ return m;
1153
+ }
1154
+ toApiJson() {
1155
+ const toReturn = {};
1156
+ if (typeof this.commentCount !== 'undefined') {
1157
+ toReturn['commentCount'] = this.commentCount;
1158
+ }
1159
+ if (typeof this.shareCount !== 'undefined') {
1160
+ toReturn['shareCount'] = this.shareCount;
1161
+ }
1162
+ if (typeof this.likeCount !== 'undefined') {
1163
+ toReturn['likeCount'] = this.likeCount;
1164
+ }
1165
+ if (typeof this.hasLike !== 'undefined') {
1166
+ toReturn['hasLike'] = this.hasLike;
1167
+ }
1168
+ if (typeof this.canLike !== 'undefined') {
1169
+ toReturn['canLike'] = this.canLike;
1170
+ }
1171
+ if (typeof this.reactions !== 'undefined') {
1172
+ toReturn['reactions'] = this.reactions;
1173
+ }
1174
+ if (typeof this.peopleReached !== 'undefined') {
1175
+ toReturn['peopleReached'] = this.peopleReached;
1167
1176
  }
1168
1177
  return toReturn;
1169
1178
  }
1170
1179
  }
1171
- class DeleteMultilocationPostRequest {
1180
+ class SocialPostStats {
1172
1181
  constructor(kwargs) {
1173
1182
  if (!kwargs) {
1174
1183
  return;
@@ -1176,22 +1185,31 @@ class DeleteMultilocationPostRequest {
1176
1185
  Object.assign(this, kwargs);
1177
1186
  }
1178
1187
  static fromProto(proto) {
1179
- let m = new DeleteMultilocationPostRequest();
1188
+ let m = new SocialPostStats();
1180
1189
  m = Object.assign(m, proto);
1190
+ if (proto.facebookPostStats) {
1191
+ m.facebookPostStats = FacebookPostStats.fromProto(proto.facebookPostStats);
1192
+ }
1193
+ if (proto.twitterPostStats) {
1194
+ m.twitterPostStats = TwitterPostStats.fromProto(proto.twitterPostStats);
1195
+ }
1181
1196
  return m;
1182
1197
  }
1183
1198
  toApiJson() {
1184
1199
  const toReturn = {};
1185
- if (typeof this.brandId !== 'undefined') {
1186
- toReturn['brandId'] = this.brandId;
1200
+ if (typeof this.internalPostId !== 'undefined') {
1201
+ toReturn['internalPostId'] = this.internalPostId;
1187
1202
  }
1188
- if (typeof this.multilocationId !== 'undefined') {
1189
- toReturn['multilocationId'] = this.multilocationId;
1203
+ if (typeof this.facebookPostStats !== 'undefined' && this.facebookPostStats !== null) {
1204
+ toReturn['facebookPostStats'] = 'toApiJson' in this.facebookPostStats ? this.facebookPostStats.toApiJson() : this.facebookPostStats;
1205
+ }
1206
+ if (typeof this.twitterPostStats !== 'undefined' && this.twitterPostStats !== null) {
1207
+ toReturn['twitterPostStats'] = 'toApiJson' in this.twitterPostStats ? this.twitterPostStats.toApiJson() : this.twitterPostStats;
1190
1208
  }
1191
1209
  return toReturn;
1192
1210
  }
1193
1211
  }
1194
- class DeletePostTemplateRequest {
1212
+ class TwitterPostStats {
1195
1213
  constructor(kwargs) {
1196
1214
  if (!kwargs) {
1197
1215
  return;
@@ -1199,22 +1217,41 @@ class DeletePostTemplateRequest {
1199
1217
  Object.assign(this, kwargs);
1200
1218
  }
1201
1219
  static fromProto(proto) {
1202
- let m = new DeletePostTemplateRequest();
1220
+ let m = new TwitterPostStats();
1203
1221
  m = Object.assign(m, proto);
1222
+ if (proto.favourites) {
1223
+ m.favourites = parseInt(proto.favourites, 10);
1224
+ }
1225
+ if (proto.retweets) {
1226
+ m.retweets = parseInt(proto.retweets, 10);
1227
+ }
1204
1228
  return m;
1205
1229
  }
1206
1230
  toApiJson() {
1207
1231
  const toReturn = {};
1208
- if (typeof this.accountGroupId !== 'undefined') {
1209
- toReturn['accountGroupId'] = this.accountGroupId;
1232
+ if (typeof this.favourites !== 'undefined') {
1233
+ toReturn['favourites'] = this.favourites;
1210
1234
  }
1211
- if (typeof this.templateId !== 'undefined') {
1212
- toReturn['templateId'] = this.templateId;
1235
+ if (typeof this.hasFavourited !== 'undefined') {
1236
+ toReturn['hasFavourited'] = this.hasFavourited;
1237
+ }
1238
+ if (typeof this.retweets !== 'undefined') {
1239
+ toReturn['retweets'] = this.retweets;
1240
+ }
1241
+ if (typeof this.hasRetweeted !== 'undefined') {
1242
+ toReturn['hasRetweeted'] = this.hasRetweeted;
1213
1243
  }
1214
1244
  return toReturn;
1215
1245
  }
1216
1246
  }
1217
- class DeleteSocialPostRequest {
1247
+
1248
+ function enumStringToValue$3(enumRef, value) {
1249
+ if (typeof value === 'number') {
1250
+ return value;
1251
+ }
1252
+ return enumRef[value];
1253
+ }
1254
+ class TenorGifMediaEntry {
1218
1255
  constructor(kwargs) {
1219
1256
  if (!kwargs) {
1220
1257
  return;
@@ -1222,22 +1259,25 @@ class DeleteSocialPostRequest {
1222
1259
  Object.assign(this, kwargs);
1223
1260
  }
1224
1261
  static fromProto(proto) {
1225
- let m = new DeleteSocialPostRequest();
1262
+ let m = new TenorGifMediaEntry();
1226
1263
  m = Object.assign(m, proto);
1264
+ if (proto.value) {
1265
+ m.value = TenorMediaObject.fromProto(proto.value);
1266
+ }
1227
1267
  return m;
1228
1268
  }
1229
1269
  toApiJson() {
1230
1270
  const toReturn = {};
1231
- if (typeof this.businessId !== 'undefined') {
1232
- toReturn['businessId'] = this.businessId;
1271
+ if (typeof this.key !== 'undefined') {
1272
+ toReturn['key'] = this.key;
1233
1273
  }
1234
- if (typeof this.socialPostId !== 'undefined') {
1235
- toReturn['socialPostId'] = this.socialPostId;
1274
+ if (typeof this.value !== 'undefined' && this.value !== null) {
1275
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
1236
1276
  }
1237
1277
  return toReturn;
1238
1278
  }
1239
1279
  }
1240
- class EditMultilocationPostRequest {
1280
+ class TenorGif {
1241
1281
  constructor(kwargs) {
1242
1282
  if (!kwargs) {
1243
1283
  return;
@@ -1245,52 +1285,37 @@ class EditMultilocationPostRequest {
1245
1285
  Object.assign(this, kwargs);
1246
1286
  }
1247
1287
  static fromProto(proto) {
1248
- let m = new EditMultilocationPostRequest();
1288
+ let m = new TenorGif();
1249
1289
  m = Object.assign(m, proto);
1250
- if (proto.scheduledDate) {
1251
- m.scheduledDate = new Date(proto.scheduledDate);
1252
- }
1253
- if (proto.fieldMask) {
1254
- m.fieldMask = FieldMask.fromProto(proto.fieldMask);
1255
- }
1256
- if (proto.locations) {
1257
- m.locations = proto.locations.map(Location.fromProto);
1290
+ if (proto.media) {
1291
+ m.media = Object.keys(proto.media).reduce((obj, k) => { obj[k] = TenorMediaObject.fromProto(proto.media[k]); return obj; }, {});
1258
1292
  }
1259
1293
  return m;
1260
1294
  }
1261
1295
  toApiJson() {
1262
1296
  const toReturn = {};
1263
- if (typeof this.brandId !== 'undefined') {
1264
- toReturn['brandId'] = this.brandId;
1265
- }
1266
- if (typeof this.multilocationId !== 'undefined') {
1267
- toReturn['multilocationId'] = this.multilocationId;
1268
- }
1269
- if (typeof this.text !== 'undefined') {
1270
- toReturn['text'] = this.text;
1271
- }
1272
- if (typeof this.media !== 'undefined') {
1273
- toReturn['media'] = this.media;
1297
+ if (typeof this.media !== 'undefined' && this.media !== null) {
1298
+ toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
1274
1299
  }
1275
- if (typeof this.scheduledDate !== 'undefined' && this.scheduledDate !== null) {
1276
- toReturn['scheduledDate'] = 'toApiJson' in this.scheduledDate ? this.scheduledDate.toApiJson() : this.scheduledDate;
1300
+ if (typeof this.tags !== 'undefined') {
1301
+ toReturn['tags'] = this.tags;
1277
1302
  }
1278
- if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
1279
- toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
1303
+ if (typeof this.hasAudio !== 'undefined') {
1304
+ toReturn['hasAudio'] = this.hasAudio;
1280
1305
  }
1281
- if (typeof this.gifs !== 'undefined') {
1282
- toReturn['gifs'] = this.gifs;
1306
+ if (typeof this.title !== 'undefined') {
1307
+ toReturn['title'] = this.title;
1283
1308
  }
1284
- if (typeof this.videos !== 'undefined') {
1285
- toReturn['videos'] = this.videos;
1309
+ if (typeof this.id !== 'undefined') {
1310
+ toReturn['id'] = this.id;
1286
1311
  }
1287
- if (typeof this.locations !== 'undefined' && this.locations !== null) {
1288
- toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
1312
+ if (typeof this.created !== 'undefined') {
1313
+ toReturn['created'] = this.created;
1289
1314
  }
1290
1315
  return toReturn;
1291
1316
  }
1292
1317
  }
1293
- class EditMultilocationPostResponse {
1318
+ class TenorMediaObject {
1294
1319
  constructor(kwargs) {
1295
1320
  if (!kwargs) {
1296
1321
  return;
@@ -1298,28 +1323,41 @@ class EditMultilocationPostResponse {
1298
1323
  Object.assign(this, kwargs);
1299
1324
  }
1300
1325
  static fromProto(proto) {
1301
- let m = new EditMultilocationPostResponse();
1326
+ let m = new TenorMediaObject();
1302
1327
  m = Object.assign(m, proto);
1303
- if (proto.post) {
1304
- m.post = MultilocationPost.fromProto(proto.post);
1328
+ if (proto.dimensions) {
1329
+ m.dimensions = proto.dimensions.map((i) => parseInt(i, 10));
1305
1330
  }
1306
- if (proto.errors) {
1307
- m.errors = proto.errors.map(MultilocationPostError.fromProto);
1331
+ if (proto.size) {
1332
+ m.size = parseInt(proto.size, 10);
1308
1333
  }
1309
1334
  return m;
1310
1335
  }
1311
1336
  toApiJson() {
1312
1337
  const toReturn = {};
1313
- if (typeof this.post !== 'undefined' && this.post !== null) {
1314
- toReturn['post'] = 'toApiJson' in this.post ? this.post.toApiJson() : this.post;
1338
+ if (typeof this.preview !== 'undefined') {
1339
+ toReturn['preview'] = this.preview;
1315
1340
  }
1316
- if (typeof this.errors !== 'undefined' && this.errors !== null) {
1317
- toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
1341
+ if (typeof this.url !== 'undefined') {
1342
+ toReturn['url'] = this.url;
1343
+ }
1344
+ if (typeof this.dimensions !== 'undefined') {
1345
+ toReturn['dimensions'] = this.dimensions;
1346
+ }
1347
+ if (typeof this.size !== 'undefined') {
1348
+ toReturn['size'] = this.size;
1318
1349
  }
1319
1350
  return toReturn;
1320
1351
  }
1321
1352
  }
1322
- class PartnerListScheduledSocialPostsRequestFilters {
1353
+
1354
+ function enumStringToValue$2(enumRef, value) {
1355
+ if (typeof value === 'number') {
1356
+ return value;
1357
+ }
1358
+ return enumRef[value];
1359
+ }
1360
+ class CreateMultilocationPostRequest {
1323
1361
  constructor(kwargs) {
1324
1362
  if (!kwargs) {
1325
1363
  return;
@@ -1327,25 +1365,43 @@ class PartnerListScheduledSocialPostsRequestFilters {
1327
1365
  Object.assign(this, kwargs);
1328
1366
  }
1329
1367
  static fromProto(proto) {
1330
- let m = new PartnerListScheduledSocialPostsRequestFilters();
1368
+ let m = new CreateMultilocationPostRequest();
1331
1369
  m = Object.assign(m, proto);
1332
- if (proto.dateRange) {
1333
- m.dateRange = DateRangeFilter.fromProto(proto.dateRange);
1370
+ if (proto.scheduledDate) {
1371
+ m.scheduledDate = new Date(proto.scheduledDate);
1372
+ }
1373
+ if (proto.locations) {
1374
+ m.locations = proto.locations.map(Location.fromProto);
1334
1375
  }
1335
1376
  return m;
1336
1377
  }
1337
1378
  toApiJson() {
1338
1379
  const toReturn = {};
1339
- if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
1340
- toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
1380
+ if (typeof this.brandId !== 'undefined') {
1381
+ toReturn['brandId'] = this.brandId;
1341
1382
  }
1342
- if (typeof this.partnerId !== 'undefined') {
1343
- toReturn['partnerId'] = this.partnerId;
1383
+ if (typeof this.text !== 'undefined') {
1384
+ toReturn['text'] = this.text;
1385
+ }
1386
+ if (typeof this.media !== 'undefined') {
1387
+ toReturn['media'] = this.media;
1388
+ }
1389
+ if (typeof this.scheduledDate !== 'undefined' && this.scheduledDate !== null) {
1390
+ toReturn['scheduledDate'] = 'toApiJson' in this.scheduledDate ? this.scheduledDate.toApiJson() : this.scheduledDate;
1391
+ }
1392
+ if (typeof this.locations !== 'undefined' && this.locations !== null) {
1393
+ toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
1394
+ }
1395
+ if (typeof this.gifs !== 'undefined') {
1396
+ toReturn['gifs'] = this.gifs;
1397
+ }
1398
+ if (typeof this.videos !== 'undefined') {
1399
+ toReturn['videos'] = this.videos;
1344
1400
  }
1345
1401
  return toReturn;
1346
1402
  }
1347
1403
  }
1348
- class GenerateCSVForPerformanceStatsRequest {
1404
+ class CreateMultilocationPostResponse {
1349
1405
  constructor(kwargs) {
1350
1406
  if (!kwargs) {
1351
1407
  return;
@@ -1353,28 +1409,28 @@ class GenerateCSVForPerformanceStatsRequest {
1353
1409
  Object.assign(this, kwargs);
1354
1410
  }
1355
1411
  static fromProto(proto) {
1356
- let m = new GenerateCSVForPerformanceStatsRequest();
1412
+ let m = new CreateMultilocationPostResponse();
1357
1413
  m = Object.assign(m, proto);
1358
- if (proto.postData) {
1359
- m.postData = proto.postData.map(PostData.fromProto);
1414
+ if (proto.post) {
1415
+ m.post = MultilocationPost.fromProto(proto.post);
1416
+ }
1417
+ if (proto.errors) {
1418
+ m.errors = proto.errors.map(MultilocationPostError.fromProto);
1360
1419
  }
1361
1420
  return m;
1362
1421
  }
1363
1422
  toApiJson() {
1364
1423
  const toReturn = {};
1365
- if (typeof this.businessId !== 'undefined') {
1366
- toReturn['businessId'] = this.businessId;
1367
- }
1368
- if (typeof this.postData !== 'undefined' && this.postData !== null) {
1369
- toReturn['postData'] = 'toApiJson' in this.postData ? this.postData.toApiJson() : this.postData;
1424
+ if (typeof this.post !== 'undefined' && this.post !== null) {
1425
+ toReturn['post'] = 'toApiJson' in this.post ? this.post.toApiJson() : this.post;
1370
1426
  }
1371
- if (typeof this.includeHeaders !== 'undefined') {
1372
- toReturn['includeHeaders'] = this.includeHeaders;
1427
+ if (typeof this.errors !== 'undefined' && this.errors !== null) {
1428
+ toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
1373
1429
  }
1374
1430
  return toReturn;
1375
1431
  }
1376
1432
  }
1377
- class GenerateCSVForPerformanceStatsResponse {
1433
+ class CreatePostTemplateRequest {
1378
1434
  constructor(kwargs) {
1379
1435
  if (!kwargs) {
1380
1436
  return;
@@ -1382,19 +1438,70 @@ class GenerateCSVForPerformanceStatsResponse {
1382
1438
  Object.assign(this, kwargs);
1383
1439
  }
1384
1440
  static fromProto(proto) {
1385
- let m = new GenerateCSVForPerformanceStatsResponse();
1441
+ let m = new CreatePostTemplateRequest();
1386
1442
  m = Object.assign(m, proto);
1443
+ if (proto.postDateTime) {
1444
+ m.postDateTime = new Date(proto.postDateTime);
1445
+ }
1446
+ if (proto.mediaEntries) {
1447
+ m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
1448
+ }
1449
+ if (proto.metaData) {
1450
+ m.metaData = proto.metaData.map(MetaData.fromProto);
1451
+ }
1452
+ if (proto.postType) {
1453
+ m.postType = enumStringToValue$2(PostType$1, proto.postType);
1454
+ }
1387
1455
  return m;
1388
1456
  }
1389
1457
  toApiJson() {
1390
1458
  const toReturn = {};
1391
- if (typeof this.generatedId !== 'undefined') {
1392
- toReturn['generatedId'] = this.generatedId;
1459
+ if (typeof this.accountGroupId !== 'undefined') {
1460
+ toReturn['accountGroupId'] = this.accountGroupId;
1461
+ }
1462
+ if (typeof this.title !== 'undefined') {
1463
+ toReturn['title'] = this.title;
1464
+ }
1465
+ if (typeof this.postText !== 'undefined') {
1466
+ toReturn['postText'] = this.postText;
1467
+ }
1468
+ if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
1469
+ toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
1470
+ }
1471
+ if (typeof this.gmbPostCustomization !== 'undefined') {
1472
+ toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
1473
+ }
1474
+ if (typeof this.imageUrl !== 'undefined') {
1475
+ toReturn['imageUrl'] = this.imageUrl;
1476
+ }
1477
+ if (typeof this.imagePath !== 'undefined') {
1478
+ toReturn['imagePath'] = this.imagePath;
1479
+ }
1480
+ if (typeof this.imageSize !== 'undefined') {
1481
+ toReturn['imageSize'] = this.imageSize;
1482
+ }
1483
+ if (typeof this.previews !== 'undefined') {
1484
+ toReturn['previews'] = this.previews;
1485
+ }
1486
+ if (typeof this.options !== 'undefined') {
1487
+ toReturn['options'] = this.options;
1488
+ }
1489
+ if (typeof this.videoUrl !== 'undefined') {
1490
+ toReturn['videoUrl'] = this.videoUrl;
1491
+ }
1492
+ if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
1493
+ toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
1494
+ }
1495
+ if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
1496
+ toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
1497
+ }
1498
+ if (typeof this.postType !== 'undefined') {
1499
+ toReturn['postType'] = this.postType;
1393
1500
  }
1394
1501
  return toReturn;
1395
1502
  }
1396
1503
  }
1397
- class GetGeneratedCSVForPerformanceStatsRequest {
1504
+ class CreatePostTemplateResponse {
1398
1505
  constructor(kwargs) {
1399
1506
  if (!kwargs) {
1400
1507
  return;
@@ -1402,19 +1509,19 @@ class GetGeneratedCSVForPerformanceStatsRequest {
1402
1509
  Object.assign(this, kwargs);
1403
1510
  }
1404
1511
  static fromProto(proto) {
1405
- let m = new GetGeneratedCSVForPerformanceStatsRequest();
1512
+ let m = new CreatePostTemplateResponse();
1406
1513
  m = Object.assign(m, proto);
1407
1514
  return m;
1408
1515
  }
1409
1516
  toApiJson() {
1410
1517
  const toReturn = {};
1411
- if (typeof this.generatedId !== 'undefined') {
1412
- toReturn['generatedId'] = this.generatedId;
1518
+ if (typeof this.templateId !== 'undefined') {
1519
+ toReturn['templateId'] = this.templateId;
1413
1520
  }
1414
1521
  return toReturn;
1415
1522
  }
1416
1523
  }
1417
- class GetGeneratedCSVForPerformanceStatsResponse {
1524
+ class DateRangeFilter {
1418
1525
  constructor(kwargs) {
1419
1526
  if (!kwargs) {
1420
1527
  return;
@@ -1422,19 +1529,28 @@ class GetGeneratedCSVForPerformanceStatsResponse {
1422
1529
  Object.assign(this, kwargs);
1423
1530
  }
1424
1531
  static fromProto(proto) {
1425
- let m = new GetGeneratedCSVForPerformanceStatsResponse();
1532
+ let m = new DateRangeFilter();
1426
1533
  m = Object.assign(m, proto);
1534
+ if (proto.beginRange) {
1535
+ m.beginRange = new Date(proto.beginRange);
1536
+ }
1537
+ if (proto.endRange) {
1538
+ m.endRange = new Date(proto.endRange);
1539
+ }
1427
1540
  return m;
1428
1541
  }
1429
1542
  toApiJson() {
1430
1543
  const toReturn = {};
1431
- if (typeof this.url !== 'undefined') {
1432
- toReturn['url'] = this.url;
1544
+ if (typeof this.beginRange !== 'undefined' && this.beginRange !== null) {
1545
+ toReturn['beginRange'] = 'toApiJson' in this.beginRange ? this.beginRange.toApiJson() : this.beginRange;
1546
+ }
1547
+ if (typeof this.endRange !== 'undefined' && this.endRange !== null) {
1548
+ toReturn['endRange'] = 'toApiJson' in this.endRange ? this.endRange.toApiJson() : this.endRange;
1433
1549
  }
1434
1550
  return toReturn;
1435
1551
  }
1436
1552
  }
1437
- class GetMultiSocialPostStatsRequest {
1553
+ class DeleteHashtagsRequest {
1438
1554
  constructor(kwargs) {
1439
1555
  if (!kwargs) {
1440
1556
  return;
@@ -1442,14 +1558,14 @@ class GetMultiSocialPostStatsRequest {
1442
1558
  Object.assign(this, kwargs);
1443
1559
  }
1444
1560
  static fromProto(proto) {
1445
- let m = new GetMultiSocialPostStatsRequest();
1561
+ let m = new DeleteHashtagsRequest();
1446
1562
  m = Object.assign(m, proto);
1447
1563
  return m;
1448
1564
  }
1449
1565
  toApiJson() {
1450
1566
  const toReturn = {};
1451
- if (typeof this.internalPostIds !== 'undefined') {
1452
- toReturn['internalPostIds'] = this.internalPostIds;
1567
+ if (typeof this.keyword !== 'undefined') {
1568
+ toReturn['keyword'] = this.keyword;
1453
1569
  }
1454
1570
  if (typeof this.businessId !== 'undefined') {
1455
1571
  toReturn['businessId'] = this.businessId;
@@ -1460,7 +1576,7 @@ class GetMultiSocialPostStatsRequest {
1460
1576
  return toReturn;
1461
1577
  }
1462
1578
  }
1463
- class GetMultiSocialPostStatsResponse {
1579
+ class DeleteMultilocationPostRequest {
1464
1580
  constructor(kwargs) {
1465
1581
  if (!kwargs) {
1466
1582
  return;
@@ -1468,22 +1584,22 @@ class GetMultiSocialPostStatsResponse {
1468
1584
  Object.assign(this, kwargs);
1469
1585
  }
1470
1586
  static fromProto(proto) {
1471
- let m = new GetMultiSocialPostStatsResponse();
1587
+ let m = new DeleteMultilocationPostRequest();
1472
1588
  m = Object.assign(m, proto);
1473
- if (proto.socialPostStats) {
1474
- m.socialPostStats = proto.socialPostStats.map(SocialPostStats.fromProto);
1475
- }
1476
1589
  return m;
1477
1590
  }
1478
1591
  toApiJson() {
1479
1592
  const toReturn = {};
1480
- if (typeof this.socialPostStats !== 'undefined' && this.socialPostStats !== null) {
1481
- toReturn['socialPostStats'] = 'toApiJson' in this.socialPostStats ? this.socialPostStats.toApiJson() : this.socialPostStats;
1593
+ if (typeof this.brandId !== 'undefined') {
1594
+ toReturn['brandId'] = this.brandId;
1595
+ }
1596
+ if (typeof this.multilocationId !== 'undefined') {
1597
+ toReturn['multilocationId'] = this.multilocationId;
1482
1598
  }
1483
1599
  return toReturn;
1484
1600
  }
1485
1601
  }
1486
- class GetMultiSocialPostsRequest {
1602
+ class DeletePostTemplateRequest {
1487
1603
  constructor(kwargs) {
1488
1604
  if (!kwargs) {
1489
1605
  return;
@@ -1491,22 +1607,22 @@ class GetMultiSocialPostsRequest {
1491
1607
  Object.assign(this, kwargs);
1492
1608
  }
1493
1609
  static fromProto(proto) {
1494
- let m = new GetMultiSocialPostsRequest();
1610
+ let m = new DeletePostTemplateRequest();
1495
1611
  m = Object.assign(m, proto);
1496
1612
  return m;
1497
1613
  }
1498
1614
  toApiJson() {
1499
1615
  const toReturn = {};
1500
- if (typeof this.businessId !== 'undefined') {
1501
- toReturn['businessId'] = this.businessId;
1616
+ if (typeof this.accountGroupId !== 'undefined') {
1617
+ toReturn['accountGroupId'] = this.accountGroupId;
1502
1618
  }
1503
- if (typeof this.internalPostIds !== 'undefined') {
1504
- toReturn['internalPostIds'] = this.internalPostIds;
1619
+ if (typeof this.templateId !== 'undefined') {
1620
+ toReturn['templateId'] = this.templateId;
1505
1621
  }
1506
1622
  return toReturn;
1507
1623
  }
1508
1624
  }
1509
- class GetMultiSocialPostsResponse {
1625
+ class DeleteSocialPostRequest {
1510
1626
  constructor(kwargs) {
1511
1627
  if (!kwargs) {
1512
1628
  return;
@@ -1514,22 +1630,22 @@ class GetMultiSocialPostsResponse {
1514
1630
  Object.assign(this, kwargs);
1515
1631
  }
1516
1632
  static fromProto(proto) {
1517
- let m = new GetMultiSocialPostsResponse();
1633
+ let m = new DeleteSocialPostRequest();
1518
1634
  m = Object.assign(m, proto);
1519
- if (proto.socialPosts) {
1520
- m.socialPosts = proto.socialPosts.map(SocialPost.fromProto);
1521
- }
1522
1635
  return m;
1523
1636
  }
1524
1637
  toApiJson() {
1525
1638
  const toReturn = {};
1526
- if (typeof this.socialPosts !== 'undefined' && this.socialPosts !== null) {
1527
- toReturn['socialPosts'] = 'toApiJson' in this.socialPosts ? this.socialPosts.toApiJson() : this.socialPosts;
1639
+ if (typeof this.businessId !== 'undefined') {
1640
+ toReturn['businessId'] = this.businessId;
1641
+ }
1642
+ if (typeof this.socialPostId !== 'undefined') {
1643
+ toReturn['socialPostId'] = this.socialPostId;
1528
1644
  }
1529
1645
  return toReturn;
1530
1646
  }
1531
1647
  }
1532
- class GetMultilocationPostRequest {
1648
+ class EditMultilocationPostRequest {
1533
1649
  constructor(kwargs) {
1534
1650
  if (!kwargs) {
1535
1651
  return;
@@ -1537,8 +1653,17 @@ class GetMultilocationPostRequest {
1537
1653
  Object.assign(this, kwargs);
1538
1654
  }
1539
1655
  static fromProto(proto) {
1540
- let m = new GetMultilocationPostRequest();
1656
+ let m = new EditMultilocationPostRequest();
1541
1657
  m = Object.assign(m, proto);
1658
+ if (proto.scheduledDate) {
1659
+ m.scheduledDate = new Date(proto.scheduledDate);
1660
+ }
1661
+ if (proto.fieldMask) {
1662
+ m.fieldMask = FieldMask.fromProto(proto.fieldMask);
1663
+ }
1664
+ if (proto.locations) {
1665
+ m.locations = proto.locations.map(Location.fromProto);
1666
+ }
1542
1667
  return m;
1543
1668
  }
1544
1669
  toApiJson() {
@@ -1549,10 +1674,31 @@ class GetMultilocationPostRequest {
1549
1674
  if (typeof this.multilocationId !== 'undefined') {
1550
1675
  toReturn['multilocationId'] = this.multilocationId;
1551
1676
  }
1677
+ if (typeof this.text !== 'undefined') {
1678
+ toReturn['text'] = this.text;
1679
+ }
1680
+ if (typeof this.media !== 'undefined') {
1681
+ toReturn['media'] = this.media;
1682
+ }
1683
+ if (typeof this.scheduledDate !== 'undefined' && this.scheduledDate !== null) {
1684
+ toReturn['scheduledDate'] = 'toApiJson' in this.scheduledDate ? this.scheduledDate.toApiJson() : this.scheduledDate;
1685
+ }
1686
+ if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
1687
+ toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
1688
+ }
1689
+ if (typeof this.gifs !== 'undefined') {
1690
+ toReturn['gifs'] = this.gifs;
1691
+ }
1692
+ if (typeof this.videos !== 'undefined') {
1693
+ toReturn['videos'] = this.videos;
1694
+ }
1695
+ if (typeof this.locations !== 'undefined' && this.locations !== null) {
1696
+ toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
1697
+ }
1552
1698
  return toReturn;
1553
1699
  }
1554
1700
  }
1555
- class GetMultilocationPostResponse {
1701
+ class EditMultilocationPostResponse {
1556
1702
  constructor(kwargs) {
1557
1703
  if (!kwargs) {
1558
1704
  return;
@@ -1560,22 +1706,28 @@ class GetMultilocationPostResponse {
1560
1706
  Object.assign(this, kwargs);
1561
1707
  }
1562
1708
  static fromProto(proto) {
1563
- let m = new GetMultilocationPostResponse();
1709
+ let m = new EditMultilocationPostResponse();
1564
1710
  m = Object.assign(m, proto);
1565
- if (proto.multilocationPost) {
1566
- m.multilocationPost = MultilocationPost.fromProto(proto.multilocationPost);
1711
+ if (proto.post) {
1712
+ m.post = MultilocationPost.fromProto(proto.post);
1713
+ }
1714
+ if (proto.errors) {
1715
+ m.errors = proto.errors.map(MultilocationPostError.fromProto);
1567
1716
  }
1568
1717
  return m;
1569
1718
  }
1570
1719
  toApiJson() {
1571
1720
  const toReturn = {};
1572
- if (typeof this.multilocationPost !== 'undefined' && this.multilocationPost !== null) {
1573
- toReturn['multilocationPost'] = 'toApiJson' in this.multilocationPost ? this.multilocationPost.toApiJson() : this.multilocationPost;
1721
+ if (typeof this.post !== 'undefined' && this.post !== null) {
1722
+ toReturn['post'] = 'toApiJson' in this.post ? this.post.toApiJson() : this.post;
1723
+ }
1724
+ if (typeof this.errors !== 'undefined' && this.errors !== null) {
1725
+ toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
1574
1726
  }
1575
1727
  return toReturn;
1576
1728
  }
1577
1729
  }
1578
- class GetPostTemplateRequest {
1730
+ class PartnerListScheduledSocialPostsRequestFilters {
1579
1731
  constructor(kwargs) {
1580
1732
  if (!kwargs) {
1581
1733
  return;
@@ -1583,22 +1735,25 @@ class GetPostTemplateRequest {
1583
1735
  Object.assign(this, kwargs);
1584
1736
  }
1585
1737
  static fromProto(proto) {
1586
- let m = new GetPostTemplateRequest();
1738
+ let m = new PartnerListScheduledSocialPostsRequestFilters();
1587
1739
  m = Object.assign(m, proto);
1740
+ if (proto.dateRange) {
1741
+ m.dateRange = DateRangeFilter.fromProto(proto.dateRange);
1742
+ }
1588
1743
  return m;
1589
1744
  }
1590
1745
  toApiJson() {
1591
1746
  const toReturn = {};
1592
- if (typeof this.accountGroupId !== 'undefined') {
1593
- toReturn['accountGroupId'] = this.accountGroupId;
1747
+ if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
1748
+ toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
1594
1749
  }
1595
- if (typeof this.templateId !== 'undefined') {
1596
- toReturn['templateId'] = this.templateId;
1750
+ if (typeof this.partnerId !== 'undefined') {
1751
+ toReturn['partnerId'] = this.partnerId;
1597
1752
  }
1598
1753
  return toReturn;
1599
1754
  }
1600
1755
  }
1601
- class GetPostTemplateResponse {
1756
+ class GenerateCSVForPerformanceStatsRequest {
1602
1757
  constructor(kwargs) {
1603
1758
  if (!kwargs) {
1604
1759
  return;
@@ -1606,22 +1761,28 @@ class GetPostTemplateResponse {
1606
1761
  Object.assign(this, kwargs);
1607
1762
  }
1608
1763
  static fromProto(proto) {
1609
- let m = new GetPostTemplateResponse();
1764
+ let m = new GenerateCSVForPerformanceStatsRequest();
1610
1765
  m = Object.assign(m, proto);
1611
- if (proto.postTemplate) {
1612
- m.postTemplate = PostTemplate.fromProto(proto.postTemplate);
1766
+ if (proto.postData) {
1767
+ m.postData = proto.postData.map(PostData.fromProto);
1613
1768
  }
1614
1769
  return m;
1615
1770
  }
1616
1771
  toApiJson() {
1617
1772
  const toReturn = {};
1618
- if (typeof this.postTemplate !== 'undefined' && this.postTemplate !== null) {
1619
- toReturn['postTemplate'] = 'toApiJson' in this.postTemplate ? this.postTemplate.toApiJson() : this.postTemplate;
1773
+ if (typeof this.businessId !== 'undefined') {
1774
+ toReturn['businessId'] = this.businessId;
1775
+ }
1776
+ if (typeof this.postData !== 'undefined' && this.postData !== null) {
1777
+ toReturn['postData'] = 'toApiJson' in this.postData ? this.postData.toApiJson() : this.postData;
1778
+ }
1779
+ if (typeof this.includeHeaders !== 'undefined') {
1780
+ toReturn['includeHeaders'] = this.includeHeaders;
1620
1781
  }
1621
1782
  return toReturn;
1622
1783
  }
1623
1784
  }
1624
- class GetScheduledPostCountRequest {
1785
+ class GenerateCSVForPerformanceStatsResponse {
1625
1786
  constructor(kwargs) {
1626
1787
  if (!kwargs) {
1627
1788
  return;
@@ -1629,25 +1790,19 @@ class GetScheduledPostCountRequest {
1629
1790
  Object.assign(this, kwargs);
1630
1791
  }
1631
1792
  static fromProto(proto) {
1632
- let m = new GetScheduledPostCountRequest();
1793
+ let m = new GenerateCSVForPerformanceStatsResponse();
1633
1794
  m = Object.assign(m, proto);
1634
1795
  return m;
1635
1796
  }
1636
1797
  toApiJson() {
1637
1798
  const toReturn = {};
1638
- if (typeof this.partnerId !== 'undefined') {
1639
- toReturn['partnerId'] = this.partnerId;
1640
- }
1641
- if (typeof this.businessId !== 'undefined') {
1642
- toReturn['businessId'] = this.businessId;
1643
- }
1644
- if (typeof this.socialServiceIds !== 'undefined') {
1645
- toReturn['socialServiceIds'] = this.socialServiceIds;
1799
+ if (typeof this.generatedId !== 'undefined') {
1800
+ toReturn['generatedId'] = this.generatedId;
1646
1801
  }
1647
1802
  return toReturn;
1648
1803
  }
1649
1804
  }
1650
- class GetScheduledPostCountResponse {
1805
+ class GetGeneratedCSVForPerformanceStatsRequest {
1651
1806
  constructor(kwargs) {
1652
1807
  if (!kwargs) {
1653
1808
  return;
@@ -1655,39 +1810,39 @@ class GetScheduledPostCountResponse {
1655
1810
  Object.assign(this, kwargs);
1656
1811
  }
1657
1812
  static fromProto(proto) {
1658
- let m = new GetScheduledPostCountResponse();
1813
+ let m = new GetGeneratedCSVForPerformanceStatsRequest();
1659
1814
  m = Object.assign(m, proto);
1660
- if (proto.count) {
1661
- m.count = parseInt(proto.count, 10);
1662
- }
1663
1815
  return m;
1664
1816
  }
1665
1817
  toApiJson() {
1666
1818
  const toReturn = {};
1667
- if (typeof this.count !== 'undefined') {
1668
- toReturn['count'] = this.count;
1819
+ if (typeof this.generatedId !== 'undefined') {
1820
+ toReturn['generatedId'] = this.generatedId;
1669
1821
  }
1670
1822
  return toReturn;
1671
1823
  }
1672
1824
  }
1673
- class GetTenorAnonymousIdRequest {
1674
- static fromProto(proto) {
1675
- let m = new GetTenorAnonymousIdRequest();
1676
- m = Object.assign(m, proto);
1677
- return m;
1678
- }
1825
+ class GetGeneratedCSVForPerformanceStatsResponse {
1679
1826
  constructor(kwargs) {
1680
1827
  if (!kwargs) {
1681
1828
  return;
1682
1829
  }
1683
1830
  Object.assign(this, kwargs);
1684
1831
  }
1832
+ static fromProto(proto) {
1833
+ let m = new GetGeneratedCSVForPerformanceStatsResponse();
1834
+ m = Object.assign(m, proto);
1835
+ return m;
1836
+ }
1685
1837
  toApiJson() {
1686
1838
  const toReturn = {};
1839
+ if (typeof this.url !== 'undefined') {
1840
+ toReturn['url'] = this.url;
1841
+ }
1687
1842
  return toReturn;
1688
1843
  }
1689
1844
  }
1690
- class GetTenorAnonymousIdResponse {
1845
+ class GetMultiSocialPostStatsRequest {
1691
1846
  constructor(kwargs) {
1692
1847
  if (!kwargs) {
1693
1848
  return;
@@ -1695,19 +1850,25 @@ class GetTenorAnonymousIdResponse {
1695
1850
  Object.assign(this, kwargs);
1696
1851
  }
1697
1852
  static fromProto(proto) {
1698
- let m = new GetTenorAnonymousIdResponse();
1853
+ let m = new GetMultiSocialPostStatsRequest();
1699
1854
  m = Object.assign(m, proto);
1700
1855
  return m;
1701
1856
  }
1702
1857
  toApiJson() {
1703
1858
  const toReturn = {};
1704
- if (typeof this.anonymousId !== 'undefined') {
1705
- toReturn['anonymousId'] = this.anonymousId;
1859
+ if (typeof this.internalPostIds !== 'undefined') {
1860
+ toReturn['internalPostIds'] = this.internalPostIds;
1861
+ }
1862
+ if (typeof this.businessId !== 'undefined') {
1863
+ toReturn['businessId'] = this.businessId;
1864
+ }
1865
+ if (typeof this.partnerId !== 'undefined') {
1866
+ toReturn['partnerId'] = this.partnerId;
1706
1867
  }
1707
1868
  return toReturn;
1708
1869
  }
1709
1870
  }
1710
- class ListMultilocationPostsForBrandRequest {
1871
+ class GetMultiSocialPostStatsResponse {
1711
1872
  constructor(kwargs) {
1712
1873
  if (!kwargs) {
1713
1874
  return;
@@ -1715,13 +1876,260 @@ class ListMultilocationPostsForBrandRequest {
1715
1876
  Object.assign(this, kwargs);
1716
1877
  }
1717
1878
  static fromProto(proto) {
1718
- let m = new ListMultilocationPostsForBrandRequest();
1879
+ let m = new GetMultiSocialPostStatsResponse();
1719
1880
  m = Object.assign(m, proto);
1720
- if (proto.startDate) {
1721
- m.startDate = new Date(proto.startDate);
1722
- }
1723
- if (proto.endDate) {
1724
- m.endDate = new Date(proto.endDate);
1881
+ if (proto.socialPostStats) {
1882
+ m.socialPostStats = proto.socialPostStats.map(SocialPostStats.fromProto);
1883
+ }
1884
+ return m;
1885
+ }
1886
+ toApiJson() {
1887
+ const toReturn = {};
1888
+ if (typeof this.socialPostStats !== 'undefined' && this.socialPostStats !== null) {
1889
+ toReturn['socialPostStats'] = 'toApiJson' in this.socialPostStats ? this.socialPostStats.toApiJson() : this.socialPostStats;
1890
+ }
1891
+ return toReturn;
1892
+ }
1893
+ }
1894
+ class GetMultiSocialPostsRequest {
1895
+ constructor(kwargs) {
1896
+ if (!kwargs) {
1897
+ return;
1898
+ }
1899
+ Object.assign(this, kwargs);
1900
+ }
1901
+ static fromProto(proto) {
1902
+ let m = new GetMultiSocialPostsRequest();
1903
+ m = Object.assign(m, proto);
1904
+ return m;
1905
+ }
1906
+ toApiJson() {
1907
+ const toReturn = {};
1908
+ if (typeof this.businessId !== 'undefined') {
1909
+ toReturn['businessId'] = this.businessId;
1910
+ }
1911
+ if (typeof this.internalPostIds !== 'undefined') {
1912
+ toReturn['internalPostIds'] = this.internalPostIds;
1913
+ }
1914
+ return toReturn;
1915
+ }
1916
+ }
1917
+ class GetMultiSocialPostsResponse {
1918
+ constructor(kwargs) {
1919
+ if (!kwargs) {
1920
+ return;
1921
+ }
1922
+ Object.assign(this, kwargs);
1923
+ }
1924
+ static fromProto(proto) {
1925
+ let m = new GetMultiSocialPostsResponse();
1926
+ m = Object.assign(m, proto);
1927
+ if (proto.socialPosts) {
1928
+ m.socialPosts = proto.socialPosts.map(SocialPost.fromProto);
1929
+ }
1930
+ return m;
1931
+ }
1932
+ toApiJson() {
1933
+ const toReturn = {};
1934
+ if (typeof this.socialPosts !== 'undefined' && this.socialPosts !== null) {
1935
+ toReturn['socialPosts'] = 'toApiJson' in this.socialPosts ? this.socialPosts.toApiJson() : this.socialPosts;
1936
+ }
1937
+ return toReturn;
1938
+ }
1939
+ }
1940
+ class GetMultilocationPostRequest {
1941
+ constructor(kwargs) {
1942
+ if (!kwargs) {
1943
+ return;
1944
+ }
1945
+ Object.assign(this, kwargs);
1946
+ }
1947
+ static fromProto(proto) {
1948
+ let m = new GetMultilocationPostRequest();
1949
+ m = Object.assign(m, proto);
1950
+ return m;
1951
+ }
1952
+ toApiJson() {
1953
+ const toReturn = {};
1954
+ if (typeof this.brandId !== 'undefined') {
1955
+ toReturn['brandId'] = this.brandId;
1956
+ }
1957
+ if (typeof this.multilocationId !== 'undefined') {
1958
+ toReturn['multilocationId'] = this.multilocationId;
1959
+ }
1960
+ return toReturn;
1961
+ }
1962
+ }
1963
+ class GetMultilocationPostResponse {
1964
+ constructor(kwargs) {
1965
+ if (!kwargs) {
1966
+ return;
1967
+ }
1968
+ Object.assign(this, kwargs);
1969
+ }
1970
+ static fromProto(proto) {
1971
+ let m = new GetMultilocationPostResponse();
1972
+ m = Object.assign(m, proto);
1973
+ if (proto.multilocationPost) {
1974
+ m.multilocationPost = MultilocationPost.fromProto(proto.multilocationPost);
1975
+ }
1976
+ return m;
1977
+ }
1978
+ toApiJson() {
1979
+ const toReturn = {};
1980
+ if (typeof this.multilocationPost !== 'undefined' && this.multilocationPost !== null) {
1981
+ toReturn['multilocationPost'] = 'toApiJson' in this.multilocationPost ? this.multilocationPost.toApiJson() : this.multilocationPost;
1982
+ }
1983
+ return toReturn;
1984
+ }
1985
+ }
1986
+ class GetPostTemplateRequest {
1987
+ constructor(kwargs) {
1988
+ if (!kwargs) {
1989
+ return;
1990
+ }
1991
+ Object.assign(this, kwargs);
1992
+ }
1993
+ static fromProto(proto) {
1994
+ let m = new GetPostTemplateRequest();
1995
+ m = Object.assign(m, proto);
1996
+ return m;
1997
+ }
1998
+ toApiJson() {
1999
+ const toReturn = {};
2000
+ if (typeof this.accountGroupId !== 'undefined') {
2001
+ toReturn['accountGroupId'] = this.accountGroupId;
2002
+ }
2003
+ if (typeof this.templateId !== 'undefined') {
2004
+ toReturn['templateId'] = this.templateId;
2005
+ }
2006
+ return toReturn;
2007
+ }
2008
+ }
2009
+ class GetPostTemplateResponse {
2010
+ constructor(kwargs) {
2011
+ if (!kwargs) {
2012
+ return;
2013
+ }
2014
+ Object.assign(this, kwargs);
2015
+ }
2016
+ static fromProto(proto) {
2017
+ let m = new GetPostTemplateResponse();
2018
+ m = Object.assign(m, proto);
2019
+ if (proto.postTemplate) {
2020
+ m.postTemplate = PostTemplate.fromProto(proto.postTemplate);
2021
+ }
2022
+ return m;
2023
+ }
2024
+ toApiJson() {
2025
+ const toReturn = {};
2026
+ if (typeof this.postTemplate !== 'undefined' && this.postTemplate !== null) {
2027
+ toReturn['postTemplate'] = 'toApiJson' in this.postTemplate ? this.postTemplate.toApiJson() : this.postTemplate;
2028
+ }
2029
+ return toReturn;
2030
+ }
2031
+ }
2032
+ class GetScheduledPostCountRequest {
2033
+ constructor(kwargs) {
2034
+ if (!kwargs) {
2035
+ return;
2036
+ }
2037
+ Object.assign(this, kwargs);
2038
+ }
2039
+ static fromProto(proto) {
2040
+ let m = new GetScheduledPostCountRequest();
2041
+ m = Object.assign(m, proto);
2042
+ return m;
2043
+ }
2044
+ toApiJson() {
2045
+ const toReturn = {};
2046
+ if (typeof this.partnerId !== 'undefined') {
2047
+ toReturn['partnerId'] = this.partnerId;
2048
+ }
2049
+ if (typeof this.businessId !== 'undefined') {
2050
+ toReturn['businessId'] = this.businessId;
2051
+ }
2052
+ if (typeof this.socialServiceIds !== 'undefined') {
2053
+ toReturn['socialServiceIds'] = this.socialServiceIds;
2054
+ }
2055
+ return toReturn;
2056
+ }
2057
+ }
2058
+ class GetScheduledPostCountResponse {
2059
+ constructor(kwargs) {
2060
+ if (!kwargs) {
2061
+ return;
2062
+ }
2063
+ Object.assign(this, kwargs);
2064
+ }
2065
+ static fromProto(proto) {
2066
+ let m = new GetScheduledPostCountResponse();
2067
+ m = Object.assign(m, proto);
2068
+ if (proto.count) {
2069
+ m.count = parseInt(proto.count, 10);
2070
+ }
2071
+ return m;
2072
+ }
2073
+ toApiJson() {
2074
+ const toReturn = {};
2075
+ if (typeof this.count !== 'undefined') {
2076
+ toReturn['count'] = this.count;
2077
+ }
2078
+ return toReturn;
2079
+ }
2080
+ }
2081
+ class GetTenorAnonymousIdRequest {
2082
+ static fromProto(proto) {
2083
+ let m = new GetTenorAnonymousIdRequest();
2084
+ m = Object.assign(m, proto);
2085
+ return m;
2086
+ }
2087
+ constructor(kwargs) {
2088
+ if (!kwargs) {
2089
+ return;
2090
+ }
2091
+ Object.assign(this, kwargs);
2092
+ }
2093
+ toApiJson() {
2094
+ const toReturn = {};
2095
+ return toReturn;
2096
+ }
2097
+ }
2098
+ class GetTenorAnonymousIdResponse {
2099
+ constructor(kwargs) {
2100
+ if (!kwargs) {
2101
+ return;
2102
+ }
2103
+ Object.assign(this, kwargs);
2104
+ }
2105
+ static fromProto(proto) {
2106
+ let m = new GetTenorAnonymousIdResponse();
2107
+ m = Object.assign(m, proto);
2108
+ return m;
2109
+ }
2110
+ toApiJson() {
2111
+ const toReturn = {};
2112
+ if (typeof this.anonymousId !== 'undefined') {
2113
+ toReturn['anonymousId'] = this.anonymousId;
2114
+ }
2115
+ return toReturn;
2116
+ }
2117
+ }
2118
+ class ListMultilocationPostsForBrandRequest {
2119
+ constructor(kwargs) {
2120
+ if (!kwargs) {
2121
+ return;
2122
+ }
2123
+ Object.assign(this, kwargs);
2124
+ }
2125
+ static fromProto(proto) {
2126
+ let m = new ListMultilocationPostsForBrandRequest();
2127
+ m = Object.assign(m, proto);
2128
+ if (proto.startDate) {
2129
+ m.startDate = new Date(proto.startDate);
2130
+ }
2131
+ if (proto.endDate) {
2132
+ m.endDate = new Date(proto.endDate);
1725
2133
  }
1726
2134
  if (proto.pageSize) {
1727
2135
  m.pageSize = parseInt(proto.pageSize, 10);
@@ -2233,7 +2641,7 @@ class RemoveFromMultilocationPostRequest {
2233
2641
  let m = new RemoveFromMultilocationPostRequest();
2234
2642
  m = Object.assign(m, proto);
2235
2643
  if (proto.reason) {
2236
- m.reason = enumStringToValue(RemoveReason, proto.reason);
2644
+ m.reason = enumStringToValue$2(RemoveReason, proto.reason);
2237
2645
  }
2238
2646
  if (proto.locations) {
2239
2647
  m.locations = proto.locations.map(Location.fromProto);
@@ -2456,7 +2864,7 @@ class SuggestMessageRequest {
2456
2864
  let m = new SuggestMessageRequest();
2457
2865
  m = Object.assign(m, proto);
2458
2866
  if (proto.length) {
2459
- m.length = enumStringToValue(PostLength, proto.length);
2867
+ m.length = enumStringToValue$2(PostLength, proto.length);
2460
2868
  }
2461
2869
  return m;
2462
2870
  }
@@ -2507,6 +2915,15 @@ class UpdatePostTemplateRequest {
2507
2915
  if (proto.postDateTime) {
2508
2916
  m.postDateTime = new Date(proto.postDateTime);
2509
2917
  }
2918
+ if (proto.mediaEntries) {
2919
+ m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
2920
+ }
2921
+ if (proto.metaData) {
2922
+ m.metaData = proto.metaData.map(MetaData.fromProto);
2923
+ }
2924
+ if (proto.postType) {
2925
+ m.postType = enumStringToValue$2(PostType$1, proto.postType);
2926
+ }
2510
2927
  return m;
2511
2928
  }
2512
2929
  toApiJson() {
@@ -2547,6 +2964,289 @@ class UpdatePostTemplateRequest {
2547
2964
  if (typeof this.videoUrl !== 'undefined') {
2548
2965
  toReturn['videoUrl'] = this.videoUrl;
2549
2966
  }
2967
+ if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
2968
+ toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
2969
+ }
2970
+ if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
2971
+ toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
2972
+ }
2973
+ if (typeof this.postType !== 'undefined') {
2974
+ toReturn['postType'] = this.postType;
2975
+ }
2976
+ return toReturn;
2977
+ }
2978
+ }
2979
+
2980
+ function enumStringToValue$1(enumRef, value) {
2981
+ if (typeof value === 'number') {
2982
+ return value;
2983
+ }
2984
+ return enumRef[value];
2985
+ }
2986
+ class Media {
2987
+ constructor(kwargs) {
2988
+ if (!kwargs) {
2989
+ return;
2990
+ }
2991
+ Object.assign(this, kwargs);
2992
+ }
2993
+ static fromProto(proto) {
2994
+ let m = new Media();
2995
+ m = Object.assign(m, proto);
2996
+ if (proto.mediaType) {
2997
+ m.mediaType = enumStringToValue$1(MediaType, proto.mediaType);
2998
+ }
2999
+ return m;
3000
+ }
3001
+ toApiJson() {
3002
+ const toReturn = {};
3003
+ if (typeof this.url !== 'undefined') {
3004
+ toReturn['url'] = this.url;
3005
+ }
3006
+ if (typeof this.mediaType !== 'undefined') {
3007
+ toReturn['mediaType'] = this.mediaType;
3008
+ }
3009
+ return toReturn;
3010
+ }
3011
+ }
3012
+
3013
+ function enumStringToValue(enumRef, value) {
3014
+ if (typeof value === 'number') {
3015
+ return value;
3016
+ }
3017
+ return enumRef[value];
3018
+ }
3019
+ class CreateImageRequest {
3020
+ constructor(kwargs) {
3021
+ if (!kwargs) {
3022
+ return;
3023
+ }
3024
+ Object.assign(this, kwargs);
3025
+ }
3026
+ static fromProto(proto) {
3027
+ let m = new CreateImageRequest();
3028
+ m = Object.assign(m, proto);
3029
+ return m;
3030
+ }
3031
+ toApiJson() {
3032
+ const toReturn = {};
3033
+ if (typeof this.businessId !== 'undefined') {
3034
+ toReturn['businessId'] = this.businessId;
3035
+ }
3036
+ if (typeof this.prompt !== 'undefined') {
3037
+ toReturn['prompt'] = this.prompt;
3038
+ }
3039
+ if (typeof this.imageAmount !== 'undefined') {
3040
+ toReturn['imageAmount'] = this.imageAmount;
3041
+ }
3042
+ if (typeof this.size !== 'undefined') {
3043
+ toReturn['size'] = this.size;
3044
+ }
3045
+ if (typeof this.responseFormat !== 'undefined') {
3046
+ toReturn['responseFormat'] = this.responseFormat;
3047
+ }
3048
+ return toReturn;
3049
+ }
3050
+ }
3051
+ class CreateImageResponse {
3052
+ constructor(kwargs) {
3053
+ if (!kwargs) {
3054
+ return;
3055
+ }
3056
+ Object.assign(this, kwargs);
3057
+ }
3058
+ static fromProto(proto) {
3059
+ let m = new CreateImageResponse();
3060
+ m = Object.assign(m, proto);
3061
+ if (proto.createdId) {
3062
+ m.createdId = parseInt(proto.createdId, 10);
3063
+ }
3064
+ if (proto.generatedImages) {
3065
+ m.generatedImages = proto.generatedImages.map(ImageCreated.fromProto);
3066
+ }
3067
+ return m;
3068
+ }
3069
+ toApiJson() {
3070
+ const toReturn = {};
3071
+ if (typeof this.createdId !== 'undefined') {
3072
+ toReturn['createdId'] = this.createdId;
3073
+ }
3074
+ if (typeof this.generatedImages !== 'undefined' && this.generatedImages !== null) {
3075
+ toReturn['generatedImages'] = 'toApiJson' in this.generatedImages ? this.generatedImages.toApiJson() : this.generatedImages;
3076
+ }
3077
+ return toReturn;
3078
+ }
3079
+ }
3080
+ class DeletePostRequest {
3081
+ constructor(kwargs) {
3082
+ if (!kwargs) {
3083
+ return;
3084
+ }
3085
+ Object.assign(this, kwargs);
3086
+ }
3087
+ static fromProto(proto) {
3088
+ let m = new DeletePostRequest();
3089
+ m = Object.assign(m, proto);
3090
+ return m;
3091
+ }
3092
+ toApiJson() {
3093
+ const toReturn = {};
3094
+ if (typeof this.accessToken !== 'undefined') {
3095
+ toReturn['accessToken'] = this.accessToken;
3096
+ }
3097
+ if (typeof this.postId !== 'undefined') {
3098
+ toReturn['postId'] = this.postId;
3099
+ }
3100
+ return toReturn;
3101
+ }
3102
+ }
3103
+ class ImageCreated {
3104
+ constructor(kwargs) {
3105
+ if (!kwargs) {
3106
+ return;
3107
+ }
3108
+ Object.assign(this, kwargs);
3109
+ }
3110
+ static fromProto(proto) {
3111
+ let m = new ImageCreated();
3112
+ m = Object.assign(m, proto);
3113
+ return m;
3114
+ }
3115
+ toApiJson() {
3116
+ const toReturn = {};
3117
+ if (typeof this.url !== 'undefined') {
3118
+ toReturn['url'] = this.url;
3119
+ }
3120
+ if (typeof this.b64Json !== 'undefined') {
3121
+ toReturn['b64Json'] = this.b64Json;
3122
+ }
3123
+ return toReturn;
3124
+ }
3125
+ }
3126
+ class MediaUploadRequest {
3127
+ constructor(kwargs) {
3128
+ if (!kwargs) {
3129
+ return;
3130
+ }
3131
+ Object.assign(this, kwargs);
3132
+ }
3133
+ static fromProto(proto) {
3134
+ let m = new MediaUploadRequest();
3135
+ m = Object.assign(m, proto);
3136
+ if (proto.media) {
3137
+ m.media = proto.media.map(Media.fromProto);
3138
+ }
3139
+ return m;
3140
+ }
3141
+ toApiJson() {
3142
+ const toReturn = {};
3143
+ if (typeof this.accessToken !== 'undefined') {
3144
+ toReturn['accessToken'] = this.accessToken;
3145
+ }
3146
+ if (typeof this.owner !== 'undefined') {
3147
+ toReturn['owner'] = this.owner;
3148
+ }
3149
+ if (typeof this.media !== 'undefined' && this.media !== null) {
3150
+ toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
3151
+ }
3152
+ return toReturn;
3153
+ }
3154
+ }
3155
+ class MediaUploadResponse {
3156
+ constructor(kwargs) {
3157
+ if (!kwargs) {
3158
+ return;
3159
+ }
3160
+ Object.assign(this, kwargs);
3161
+ }
3162
+ static fromProto(proto) {
3163
+ let m = new MediaUploadResponse();
3164
+ m = Object.assign(m, proto);
3165
+ return m;
3166
+ }
3167
+ toApiJson() {
3168
+ const toReturn = {};
3169
+ if (typeof this.uploadUrn !== 'undefined') {
3170
+ toReturn['uploadUrn'] = this.uploadUrn;
3171
+ }
3172
+ return toReturn;
3173
+ }
3174
+ }
3175
+ class SocialPostOutput {
3176
+ constructor(kwargs) {
3177
+ if (!kwargs) {
3178
+ return;
3179
+ }
3180
+ Object.assign(this, kwargs);
3181
+ }
3182
+ static fromProto(proto) {
3183
+ let m = new SocialPostOutput();
3184
+ m = Object.assign(m, proto);
3185
+ if (proto.socialPost) {
3186
+ m.socialPost = SocialPost.fromProto(proto.socialPost);
3187
+ }
3188
+ if (proto.metadata) {
3189
+ m.metadata = proto.metadata.map(Metadata.fromProto);
3190
+ }
3191
+ return m;
3192
+ }
3193
+ toApiJson() {
3194
+ const toReturn = {};
3195
+ if (typeof this.internalPostId !== 'undefined') {
3196
+ toReturn['internalPostId'] = this.internalPostId;
3197
+ }
3198
+ if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
3199
+ toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
3200
+ }
3201
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
3202
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
3203
+ }
3204
+ return toReturn;
3205
+ }
3206
+ }
3207
+ class SocialPostRequest {
3208
+ constructor(kwargs) {
3209
+ if (!kwargs) {
3210
+ return;
3211
+ }
3212
+ Object.assign(this, kwargs);
3213
+ }
3214
+ static fromProto(proto) {
3215
+ let m = new SocialPostRequest();
3216
+ m = Object.assign(m, proto);
3217
+ if (proto.socialPost) {
3218
+ m.socialPost = proto.socialPost.map(SocialPost.fromProto);
3219
+ }
3220
+ return m;
3221
+ }
3222
+ toApiJson() {
3223
+ const toReturn = {};
3224
+ if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
3225
+ toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
3226
+ }
3227
+ return toReturn;
3228
+ }
3229
+ }
3230
+ class SocialPostResponse {
3231
+ constructor(kwargs) {
3232
+ if (!kwargs) {
3233
+ return;
3234
+ }
3235
+ Object.assign(this, kwargs);
3236
+ }
3237
+ static fromProto(proto) {
3238
+ let m = new SocialPostResponse();
3239
+ m = Object.assign(m, proto);
3240
+ if (proto.socialPost) {
3241
+ m.socialPost = proto.socialPost.map(SocialPostOutput.fromProto);
3242
+ }
3243
+ return m;
3244
+ }
3245
+ toApiJson() {
3246
+ const toReturn = {};
3247
+ if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
3248
+ toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
3249
+ }
2550
3250
  return toReturn;
2551
3251
  }
2552
3252
  }
@@ -2681,7 +3381,299 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
2681
3381
  }], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
2682
3382
 
2683
3383
  // *********************************
2684
- class PostTemplatesApiService {
3384
+ class HashTagsApiService {
3385
+ constructor(http, hostService) {
3386
+ this.http = http;
3387
+ this.hostService = hostService;
3388
+ this._host = this.hostService.hostWithScheme;
3389
+ }
3390
+ apiOptions() {
3391
+ return {
3392
+ headers: new HttpHeaders({
3393
+ 'Content-Type': 'application/json'
3394
+ }),
3395
+ withCredentials: true
3396
+ };
3397
+ }
3398
+ replaceHashtags(r) {
3399
+ const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
3400
+ return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3401
+ }
3402
+ deleteHashtags(r) {
3403
+ const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
3404
+ return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3405
+ }
3406
+ searchHashtag(r) {
3407
+ const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
3408
+ return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
3409
+ .pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
3410
+ }
3411
+ }
3412
+ HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3413
+ HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
3414
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
3415
+ type: Injectable,
3416
+ args: [{ providedIn: 'root' }]
3417
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3418
+
3419
+ // *********************************
3420
+ class LinkedinApiService {
3421
+ constructor(http, hostService) {
3422
+ this.http = http;
3423
+ this.hostService = hostService;
3424
+ this._host = this.hostService.hostWithScheme;
3425
+ }
3426
+ apiOptions() {
3427
+ return {
3428
+ headers: new HttpHeaders({
3429
+ 'Content-Type': 'application/json'
3430
+ }),
3431
+ withCredentials: true
3432
+ };
3433
+ }
3434
+ deletePost(r) {
3435
+ const request = (r.toApiJson) ? r : new DeletePostRequest(r);
3436
+ return this.http.post(this._host + "/socialposts.v2.Linkedin/DeletePost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3437
+ }
3438
+ uploadMedia(r) {
3439
+ const request = (r.toApiJson) ? r : new MediaUploadRequest(r);
3440
+ return this.http.post(this._host + "/socialposts.v2.Linkedin/UploadMedia", request.toApiJson(), this.apiOptions())
3441
+ .pipe(map(resp => MediaUploadResponse.fromProto(resp)));
3442
+ }
3443
+ }
3444
+ LinkedinApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3445
+ LinkedinApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, providedIn: 'root' });
3446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, decorators: [{
3447
+ type: Injectable,
3448
+ args: [{ providedIn: 'root' }]
3449
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3450
+
3451
+ // *********************************
3452
+ class MultilocationPostApiService {
3453
+ constructor(http, hostService) {
3454
+ this.http = http;
3455
+ this.hostService = hostService;
3456
+ this._host = this.hostService.hostWithScheme;
3457
+ }
3458
+ apiOptions() {
3459
+ return {
3460
+ headers: new HttpHeaders({
3461
+ 'Content-Type': 'application/json'
3462
+ }),
3463
+ withCredentials: true
3464
+ };
3465
+ }
3466
+ createMultilocationPost(r) {
3467
+ const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
3468
+ return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
3469
+ .pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
3470
+ }
3471
+ editMultilocationPost(r) {
3472
+ const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
3473
+ return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
3474
+ .pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
3475
+ }
3476
+ removeFromMultilocationPost(r) {
3477
+ const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
3478
+ return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3479
+ }
3480
+ listMultilocationPostsForBrand(r) {
3481
+ const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
3482
+ return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
3483
+ .pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
3484
+ }
3485
+ deleteMultilocationPost(r) {
3486
+ const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
3487
+ return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3488
+ }
3489
+ getMultilocationPost(r) {
3490
+ const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
3491
+ return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
3492
+ .pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
3493
+ }
3494
+ }
3495
+ MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3496
+ MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
3497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
3498
+ type: Injectable,
3499
+ args: [{ providedIn: 'root' }]
3500
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3501
+
3502
+ // *********************************
3503
+ class PartnerSocialPostsApiService {
3504
+ constructor(http, hostService) {
3505
+ this.http = http;
3506
+ this.hostService = hostService;
3507
+ this._host = this.hostService.hostWithScheme;
3508
+ }
3509
+ apiOptions() {
3510
+ return {
3511
+ headers: new HttpHeaders({
3512
+ 'Content-Type': 'application/json'
3513
+ }),
3514
+ withCredentials: true
3515
+ };
3516
+ }
3517
+ listScheduled(r) {
3518
+ const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
3519
+ return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
3520
+ .pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
3521
+ }
3522
+ listScheduledByCreated(r) {
3523
+ const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
3524
+ return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
3525
+ .pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
3526
+ }
3527
+ }
3528
+ PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3529
+ PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
3530
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
3531
+ type: Injectable,
3532
+ args: [{ providedIn: 'root' }]
3533
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3534
+
3535
+ // *********************************
3536
+ class PixabayImagesApiService {
3537
+ constructor(http, hostService) {
3538
+ this.http = http;
3539
+ this.hostService = hostService;
3540
+ this._host = this.hostService.hostWithScheme;
3541
+ }
3542
+ apiOptions() {
3543
+ return {
3544
+ headers: new HttpHeaders({
3545
+ 'Content-Type': 'application/json'
3546
+ }),
3547
+ withCredentials: true
3548
+ };
3549
+ }
3550
+ listPixabayImages(r) {
3551
+ const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
3552
+ return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
3553
+ .pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
3554
+ }
3555
+ }
3556
+ PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3557
+ PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
3558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
3559
+ type: Injectable,
3560
+ args: [{ providedIn: 'root' }]
3561
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3562
+
3563
+ // *********************************
3564
+ class PostPerformanceApiService {
3565
+ constructor(http, hostService) {
3566
+ this.http = http;
3567
+ this.hostService = hostService;
3568
+ this._host = this.hostService.hostWithScheme;
3569
+ }
3570
+ apiOptions() {
3571
+ return {
3572
+ headers: new HttpHeaders({
3573
+ 'Content-Type': 'application/json'
3574
+ }),
3575
+ withCredentials: true
3576
+ };
3577
+ }
3578
+ generateCsvForPerformanceStats(r) {
3579
+ const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
3580
+ return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
3581
+ .pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
3582
+ }
3583
+ getGeneratedCsvForPerformanceStats(r) {
3584
+ const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
3585
+ return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
3586
+ .pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
3587
+ }
3588
+ }
3589
+ PostPerformanceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3590
+ PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
3591
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
3592
+ type: Injectable,
3593
+ args: [{ providedIn: 'root' }]
3594
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3595
+
3596
+ // *********************************
3597
+ class PostTemplatesApiService {
3598
+ constructor(http, hostService) {
3599
+ this.http = http;
3600
+ this.hostService = hostService;
3601
+ this._host = this.hostService.hostWithScheme;
3602
+ }
3603
+ apiOptions() {
3604
+ return {
3605
+ headers: new HttpHeaders({
3606
+ 'Content-Type': 'application/json'
3607
+ }),
3608
+ withCredentials: true
3609
+ };
3610
+ }
3611
+ updatePostTemplate(r) {
3612
+ const request = (r.toApiJson) ? r : new UpdatePostTemplateRequest(r);
3613
+ return this.http.post(this._host + "/socialposts.v1.PostTemplates/UpdatePostTemplate", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3614
+ }
3615
+ createPostTemplate(r) {
3616
+ const request = (r.toApiJson) ? r : new CreatePostTemplateRequest(r);
3617
+ return this.http.post(this._host + "/socialposts.v1.PostTemplates/CreatePostTemplate", request.toApiJson(), this.apiOptions())
3618
+ .pipe(map(resp => CreatePostTemplateResponse.fromProto(resp)));
3619
+ }
3620
+ getPostTemplate(r) {
3621
+ const request = (r.toApiJson) ? r : new GetPostTemplateRequest(r);
3622
+ return this.http.post(this._host + "/socialposts.v1.PostTemplates/GetPostTemplate", request.toApiJson(), this.apiOptions())
3623
+ .pipe(map(resp => GetPostTemplateResponse.fromProto(resp)));
3624
+ }
3625
+ listPostTemplates(r) {
3626
+ const request = (r.toApiJson) ? r : new ListPostTemplatesRequest(r);
3627
+ return this.http.post(this._host + "/socialposts.v1.PostTemplates/ListPostTemplates", request.toApiJson(), this.apiOptions())
3628
+ .pipe(map(resp => ListPostTemplatesResponse.fromProto(resp)));
3629
+ }
3630
+ deletePostTemplate(r) {
3631
+ const request = (r.toApiJson) ? r : new DeletePostTemplateRequest(r);
3632
+ return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3633
+ }
3634
+ }
3635
+ PostTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3636
+ PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
3637
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, decorators: [{
3638
+ type: Injectable,
3639
+ args: [{ providedIn: 'root' }]
3640
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3641
+
3642
+ // *********************************
3643
+ class SocialPostsV2ApiService {
3644
+ constructor(http, hostService) {
3645
+ this.http = http;
3646
+ this.hostService = hostService;
3647
+ this._host = this.hostService.hostWithScheme;
3648
+ }
3649
+ apiOptions() {
3650
+ return {
3651
+ headers: new HttpHeaders({
3652
+ 'Content-Type': 'application/json'
3653
+ }),
3654
+ withCredentials: true
3655
+ };
3656
+ }
3657
+ scheduleSocialPosts(r) {
3658
+ const request = (r.toApiJson) ? r : new SocialPostRequest(r);
3659
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/ScheduleSocialPosts", request.toApiJson(), this.apiOptions())
3660
+ .pipe(map(resp => SocialPostResponse.fromProto(resp)));
3661
+ }
3662
+ createImages(r) {
3663
+ const request = (r.toApiJson) ? r : new CreateImageRequest(r);
3664
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/CreateImages", request.toApiJson(), this.apiOptions())
3665
+ .pipe(map(resp => CreateImageResponse.fromProto(resp)));
3666
+ }
3667
+ }
3668
+ SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsV2ApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3669
+ SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
3670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsV2ApiService, decorators: [{
3671
+ type: Injectable,
3672
+ args: [{ providedIn: 'root' }]
3673
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3674
+
3675
+ // *********************************
3676
+ class TenorGifsApiService {
2685
3677
  constructor(http, hostService) {
2686
3678
  this.http = http;
2687
3679
  this.hostService = hostService;
@@ -2695,42 +3687,31 @@ class PostTemplatesApiService {
2695
3687
  withCredentials: true
2696
3688
  };
2697
3689
  }
2698
- updatePostTemplate(r) {
2699
- const request = (r.toApiJson) ? r : new UpdatePostTemplateRequest(r);
2700
- return this.http.post(this._host + "/socialposts.v1.PostTemplates/UpdatePostTemplate", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2701
- }
2702
- createPostTemplate(r) {
2703
- const request = (r.toApiJson) ? r : new CreatePostTemplateRequest(r);
2704
- return this.http.post(this._host + "/socialposts.v1.PostTemplates/CreatePostTemplate", request.toApiJson(), this.apiOptions())
2705
- .pipe(map(resp => CreatePostTemplateResponse.fromProto(resp)));
2706
- }
2707
- getPostTemplate(r) {
2708
- const request = (r.toApiJson) ? r : new GetPostTemplateRequest(r);
2709
- return this.http.post(this._host + "/socialposts.v1.PostTemplates/GetPostTemplate", request.toApiJson(), this.apiOptions())
2710
- .pipe(map(resp => GetPostTemplateResponse.fromProto(resp)));
2711
- }
2712
- listPostTemplates(r) {
2713
- const request = (r.toApiJson) ? r : new ListPostTemplatesRequest(r);
2714
- return this.http.post(this._host + "/socialposts.v1.PostTemplates/ListPostTemplates", request.toApiJson(), this.apiOptions())
2715
- .pipe(map(resp => ListPostTemplatesResponse.fromProto(resp)));
3690
+ getTenorAnonymousId(r) {
3691
+ const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
3692
+ return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
3693
+ .pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
2716
3694
  }
2717
- deletePostTemplate(r) {
2718
- const request = (r.toApiJson) ? r : new DeletePostTemplateRequest(r);
2719
- return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3695
+ listTenorGifs(r) {
3696
+ const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
3697
+ return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
3698
+ .pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
2720
3699
  }
2721
3700
  }
2722
- PostTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2723
- PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
2724
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, decorators: [{
3701
+ TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3702
+ TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
3703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
2725
3704
  type: Injectable,
2726
3705
  args: [{ providedIn: 'root' }]
2727
3706
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2728
3707
 
3708
+ // *********************************
3709
+
2729
3710
  class PostTemplatesService {
2730
3711
  constructor(socialPostsApiService) {
2731
3712
  this.socialPostsApiService = socialPostsApiService;
2732
3713
  }
2733
- updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl) {
3714
+ updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
2734
3715
  const req = new UpdatePostTemplateRequest({
2735
3716
  accountGroupId: accountGroupId,
2736
3717
  templateId: templateId,
@@ -2743,11 +3724,14 @@ class PostTemplatesService {
2743
3724
  imageSize: imageSize,
2744
3725
  previews: previews,
2745
3726
  options: options,
2746
- videoUrl: videoUrl
3727
+ videoUrl: videoUrl,
3728
+ postType: postType || PostType$1.POST_TYPE_INVALID,
3729
+ mediaEntries: mediaEntries,
3730
+ metaData: metadata,
2747
3731
  });
2748
3732
  return this.socialPostsApiService.updatePostTemplate(req);
2749
3733
  }
2750
- createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl) {
3734
+ createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
2751
3735
  const req = new CreatePostTemplateRequest({
2752
3736
  accountGroupId: accountGroupId,
2753
3737
  title: title,
@@ -2759,7 +3743,10 @@ class PostTemplatesService {
2759
3743
  imageSize: imageSize,
2760
3744
  previews: previews,
2761
3745
  options: options,
2762
- videoUrl: videoUrl
3746
+ videoUrl: videoUrl,
3747
+ postType: postType || PostType$1.POST_TYPE_INVALID,
3748
+ mediaEntries: mediaEntries,
3749
+ metaData: metadata,
2763
3750
  });
2764
3751
  return this.socialPostsApiService.createPostTemplate(req);
2765
3752
  }
@@ -2793,57 +3780,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
2793
3780
  args: [{ providedIn: 'root' }]
2794
3781
  }], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
2795
3782
 
2796
- // *********************************
2797
- class MultilocationPostApiService {
2798
- constructor(http, hostService) {
2799
- this.http = http;
2800
- this.hostService = hostService;
2801
- this._host = this.hostService.hostWithScheme;
2802
- }
2803
- apiOptions() {
2804
- return {
2805
- headers: new HttpHeaders({
2806
- 'Content-Type': 'application/json'
2807
- }),
2808
- withCredentials: true
2809
- };
2810
- }
2811
- createMultilocationPost(r) {
2812
- const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
2813
- return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
2814
- .pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
2815
- }
2816
- editMultilocationPost(r) {
2817
- const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
2818
- return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
2819
- .pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
2820
- }
2821
- removeFromMultilocationPost(r) {
2822
- const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
2823
- return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2824
- }
2825
- listMultilocationPostsForBrand(r) {
2826
- const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
2827
- return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
2828
- .pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
2829
- }
2830
- deleteMultilocationPost(r) {
2831
- const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
2832
- return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2833
- }
2834
- getMultilocationPost(r) {
2835
- const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
2836
- return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
2837
- .pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
2838
- }
2839
- }
2840
- MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2841
- MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
2842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
2843
- type: Injectable,
2844
- args: [{ providedIn: 'root' }]
2845
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2846
-
2847
3783
  class MultilocationPostsService {
2848
3784
  constructor(multilocationApiService) {
2849
3785
  this.multilocationApiService = multilocationApiService;
@@ -2915,39 +3851,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
2915
3851
  args: [{ providedIn: 'root' }]
2916
3852
  }], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
2917
3853
 
2918
- // *********************************
2919
- class TenorGifsApiService {
2920
- constructor(http, hostService) {
2921
- this.http = http;
2922
- this.hostService = hostService;
2923
- this._host = this.hostService.hostWithScheme;
2924
- }
2925
- apiOptions() {
2926
- return {
2927
- headers: new HttpHeaders({
2928
- 'Content-Type': 'application/json'
2929
- }),
2930
- withCredentials: true
2931
- };
2932
- }
2933
- getTenorAnonymousId(r) {
2934
- const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
2935
- return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
2936
- .pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
2937
- }
2938
- listTenorGifs(r) {
2939
- const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
2940
- return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
2941
- .pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
2942
- }
2943
- }
2944
- TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2945
- TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
2946
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
2947
- type: Injectable,
2948
- args: [{ providedIn: 'root' }]
2949
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2950
-
2951
3854
  class TenorGifsService {
2952
3855
  constructor(tenorGifsApiService) {
2953
3856
  this.tenorGifsApiService = tenorGifsApiService;
@@ -2977,34 +3880,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
2977
3880
  args: [{ providedIn: 'root' }]
2978
3881
  }], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
2979
3882
 
2980
- // *********************************
2981
- class PixabayImagesApiService {
2982
- constructor(http, hostService) {
2983
- this.http = http;
2984
- this.hostService = hostService;
2985
- this._host = this.hostService.hostWithScheme;
2986
- }
2987
- apiOptions() {
2988
- return {
2989
- headers: new HttpHeaders({
2990
- 'Content-Type': 'application/json'
2991
- }),
2992
- withCredentials: true
2993
- };
2994
- }
2995
- listPixabayImages(r) {
2996
- const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
2997
- return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
2998
- .pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
2999
- }
3000
- }
3001
- PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3002
- PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
3003
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
3004
- type: Injectable,
3005
- args: [{ providedIn: 'root' }]
3006
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3007
-
3008
3883
  class PixabayImageService {
3009
3884
  constructor(pixabayApiService) {
3010
3885
  this.pixabayApiService = pixabayApiService;
@@ -3023,42 +3898,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
3023
3898
  args: [{ providedIn: 'root' }]
3024
3899
  }], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
3025
3900
 
3026
- // *********************************
3027
- class HashTagsApiService {
3028
- constructor(http, hostService) {
3029
- this.http = http;
3030
- this.hostService = hostService;
3031
- this._host = this.hostService.hostWithScheme;
3032
- }
3033
- apiOptions() {
3034
- return {
3035
- headers: new HttpHeaders({
3036
- 'Content-Type': 'application/json'
3037
- }),
3038
- withCredentials: true
3039
- };
3040
- }
3041
- replaceHashtags(r) {
3042
- const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
3043
- return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3044
- }
3045
- deleteHashtags(r) {
3046
- const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
3047
- return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3048
- }
3049
- searchHashtag(r) {
3050
- const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
3051
- return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
3052
- .pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
3053
- }
3054
- }
3055
- HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3056
- HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
3057
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
3058
- type: Injectable,
3059
- args: [{ providedIn: 'root' }]
3060
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3061
-
3062
3901
  class HashTagsService {
3063
3902
  constructor(hashTagsApiService) {
3064
3903
  this.hashTagsApiService = hashTagsApiService;
@@ -3096,39 +3935,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
3096
3935
  args: [{ providedIn: 'root' }]
3097
3936
  }], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
3098
3937
 
3099
- // *********************************
3100
- class PostPerformanceApiService {
3101
- constructor(http, hostService) {
3102
- this.http = http;
3103
- this.hostService = hostService;
3104
- this._host = this.hostService.hostWithScheme;
3105
- }
3106
- apiOptions() {
3107
- return {
3108
- headers: new HttpHeaders({
3109
- 'Content-Type': 'application/json'
3110
- }),
3111
- withCredentials: true
3112
- };
3113
- }
3114
- generateCsvForPerformanceStats(r) {
3115
- const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
3116
- return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
3117
- .pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
3118
- }
3119
- getGeneratedCsvForPerformanceStats(r) {
3120
- const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
3121
- return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
3122
- .pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
3123
- }
3124
- }
3125
- PostPerformanceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3126
- PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
3127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
3128
- type: Injectable,
3129
- args: [{ providedIn: 'root' }]
3130
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3131
-
3132
3938
  class PostPerformanceService {
3133
3939
  constructor(postPerformanceApiService) {
3134
3940
  this.postPerformanceApiService = postPerformanceApiService;
@@ -3149,41 +3955,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
3149
3955
  args: [{ providedIn: 'root' }]
3150
3956
  }], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
3151
3957
 
3152
- // *********************************
3153
- class PartnerSocialPostsApiService {
3154
- constructor(http, hostService) {
3155
- this.http = http;
3156
- this.hostService = hostService;
3157
- this._host = this.hostService.hostWithScheme;
3158
- }
3159
- apiOptions() {
3160
- return {
3161
- headers: new HttpHeaders({
3162
- 'Content-Type': 'application/json'
3163
- }),
3164
- withCredentials: true
3165
- };
3166
- }
3167
- listScheduled(r) {
3168
- const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
3169
- return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
3170
- .pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
3171
- }
3172
- listScheduledByCreated(r) {
3173
- const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
3174
- return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
3175
- .pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
3176
- }
3177
- }
3178
- PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3179
- PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
3180
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
3181
- type: Injectable,
3182
- args: [{ providedIn: 'root' }]
3183
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3184
-
3185
- // *********************************
3186
-
3187
3958
  /**
3188
3959
  * Generated bundle index. Do not edit.
3189
3960
  */