@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.
- package/esm2020/lib/_internal/enums/index.mjs +4 -2
- package/esm2020/lib/_internal/enums/linkedin-v2.enum.mjs +15 -0
- package/esm2020/lib/_internal/enums/social-post-v2.enum.mjs +16 -0
- package/esm2020/lib/_internal/enums/social-posts.enum.mjs +10 -1
- package/esm2020/lib/_internal/index.mjs +3 -1
- package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/linkedin-v2.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/social-post-v2.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
- package/esm2020/lib/_internal/linkedin.api.service.mjs +45 -0
- package/esm2020/lib/_internal/objects/api-v2.mjs +243 -0
- package/esm2020/lib/_internal/objects/api.mjs +39 -3
- package/esm2020/lib/_internal/objects/index.mjs +8 -6
- package/esm2020/lib/_internal/objects/linkedin-v2.mjs +34 -0
- package/esm2020/lib/_internal/objects/social-post-v2.mjs +264 -0
- package/esm2020/lib/_internal/objects/social-posts.mjs +163 -1
- package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +46 -0
- package/esm2020/lib/post-templates.service.mjs +12 -5
- package/fesm2015/vendasta-social-posts.mjs +1655 -884
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +1655 -884
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +3 -1
- package/lib/_internal/enums/linkedin-v2.enum.d.ts +7 -0
- package/lib/_internal/enums/social-post-v2.enum.d.ts +8 -0
- package/lib/_internal/enums/social-posts.enum.d.ts +8 -0
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/interfaces/api-v2.interface.d.ts +40 -0
- package/lib/_internal/interfaces/api.interface.d.ts +8 -2
- package/lib/_internal/interfaces/index.d.ts +7 -5
- package/lib/_internal/interfaces/linkedin-v2.interface.d.ts +5 -0
- package/lib/_internal/interfaces/social-post-v2.interface.d.ts +46 -0
- package/lib/_internal/interfaces/social-posts.interface.d.ts +33 -0
- package/lib/_internal/linkedin.api.service.d.ts +17 -0
- package/lib/_internal/objects/api-v2.d.ts +69 -0
- package/lib/_internal/objects/api.d.ts +8 -2
- package/lib/_internal/objects/index.d.ts +7 -5
- package/lib/_internal/objects/linkedin-v2.d.ts +10 -0
- package/lib/_internal/objects/social-post-v2.d.ts +72 -0
- package/lib/_internal/objects/social-posts.d.ts +42 -0
- package/lib/_internal/social-posts-v2.api.service.d.ts +17 -0
- package/lib/post-templates.service.d.ts +3 -2
- package/package.json +1 -1
- package/esm2020/lib/_internal/interfaces/post-templates.interface.mjs +0 -8
- package/esm2020/lib/_internal/objects/post-templates.mjs +0 -75
- package/lib/_internal/interfaces/post-templates.interface.d.ts +0 -16
- 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
|
+
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$
|
|
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$
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
|
453
|
-
(function (
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
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
|
-
|
|
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$
|
|
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
|
|
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
|
|
382
|
+
let m = new MediaEntry();
|
|
556
383
|
m = Object.assign(m, proto);
|
|
557
|
-
if (proto.
|
|
558
|
-
m.
|
|
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.
|
|
565
|
-
toReturn['
|
|
391
|
+
if (typeof this.mediaEntryId !== 'undefined') {
|
|
392
|
+
toReturn['mediaEntryId'] = this.mediaEntryId;
|
|
566
393
|
}
|
|
567
|
-
if (typeof this.
|
|
568
|
-
toReturn['
|
|
394
|
+
if (typeof this.mediaUrl !== 'undefined') {
|
|
395
|
+
toReturn['mediaUrl'] = this.mediaUrl;
|
|
569
396
|
}
|
|
570
|
-
if (typeof this.
|
|
571
|
-
toReturn['
|
|
397
|
+
if (typeof this.mediaType !== 'undefined') {
|
|
398
|
+
toReturn['mediaType'] = this.mediaType;
|
|
572
399
|
}
|
|
573
|
-
if (typeof this.
|
|
574
|
-
toReturn['
|
|
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
|
|
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
|
|
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$
|
|
564
|
+
m.deletionStatus = enumStringToValue$7(SocialPostDeletionStatus, proto.deletionStatus);
|
|
594
565
|
}
|
|
595
566
|
if (proto.service) {
|
|
596
|
-
m.service = enumStringToValue$
|
|
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$
|
|
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$
|
|
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
|
|
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
|
|
734
|
+
let m = new PixabayImage();
|
|
746
735
|
m = Object.assign(m, proto);
|
|
747
|
-
if (proto.
|
|
748
|
-
m.
|
|
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.
|
|
754
|
-
m.
|
|
739
|
+
if (proto.previewWidth) {
|
|
740
|
+
m.previewWidth = parseInt(proto.previewWidth, 10);
|
|
755
741
|
}
|
|
756
|
-
if (proto.
|
|
757
|
-
m.
|
|
742
|
+
if (proto.previewHeight) {
|
|
743
|
+
m.previewHeight = parseInt(proto.previewHeight, 10);
|
|
758
744
|
}
|
|
759
|
-
if (proto.
|
|
760
|
-
m.
|
|
745
|
+
if (proto.webformatWidth) {
|
|
746
|
+
m.webformatWidth = parseInt(proto.webformatWidth, 10);
|
|
761
747
|
}
|
|
762
|
-
|
|
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 (
|
|
770
|
-
|
|
751
|
+
if (proto.imageWidth) {
|
|
752
|
+
m.imageWidth = parseInt(proto.imageWidth, 10);
|
|
771
753
|
}
|
|
772
|
-
if (
|
|
773
|
-
|
|
754
|
+
if (proto.imageHeight) {
|
|
755
|
+
m.imageHeight = parseInt(proto.imageHeight, 10);
|
|
774
756
|
}
|
|
775
|
-
if (
|
|
776
|
-
|
|
757
|
+
if (proto.imageSize) {
|
|
758
|
+
m.imageSize = parseInt(proto.imageSize, 10);
|
|
777
759
|
}
|
|
778
|
-
if (
|
|
779
|
-
|
|
760
|
+
if (proto.views) {
|
|
761
|
+
m.views = parseInt(proto.views, 10);
|
|
780
762
|
}
|
|
781
|
-
if (
|
|
782
|
-
|
|
763
|
+
if (proto.downloads) {
|
|
764
|
+
m.downloads = parseInt(proto.downloads, 10);
|
|
783
765
|
}
|
|
784
|
-
if (
|
|
785
|
-
|
|
766
|
+
if (proto.favorites) {
|
|
767
|
+
m.favorites = parseInt(proto.favorites, 10);
|
|
786
768
|
}
|
|
787
|
-
|
|
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
|
-
|
|
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.
|
|
804
|
-
m.
|
|
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.
|
|
811
|
-
toReturn['
|
|
782
|
+
if (typeof this.id !== 'undefined') {
|
|
783
|
+
toReturn['id'] = this.id;
|
|
812
784
|
}
|
|
813
|
-
if (typeof this.
|
|
814
|
-
toReturn['
|
|
785
|
+
if (typeof this.pageUrl !== 'undefined') {
|
|
786
|
+
toReturn['pageUrl'] = this.pageUrl;
|
|
815
787
|
}
|
|
816
|
-
if (typeof this.
|
|
817
|
-
toReturn['
|
|
788
|
+
if (typeof this.type !== 'undefined') {
|
|
789
|
+
toReturn['type'] = this.type;
|
|
818
790
|
}
|
|
819
|
-
|
|
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
|
-
|
|
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 (
|
|
836
|
-
|
|
797
|
+
if (typeof this.previewWidth !== 'undefined') {
|
|
798
|
+
toReturn['previewWidth'] = this.previewWidth;
|
|
837
799
|
}
|
|
838
|
-
|
|
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.
|
|
846
|
-
toReturn['
|
|
803
|
+
if (typeof this.webformatUrl !== 'undefined') {
|
|
804
|
+
toReturn['webformatUrl'] = this.webformatUrl;
|
|
847
805
|
}
|
|
848
|
-
if (typeof this.
|
|
849
|
-
toReturn['
|
|
806
|
+
if (typeof this.webformatWidth !== 'undefined') {
|
|
807
|
+
toReturn['webformatWidth'] = this.webformatWidth;
|
|
850
808
|
}
|
|
851
|
-
if (typeof this.
|
|
852
|
-
toReturn['
|
|
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$
|
|
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
|
|
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
|
|
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.
|
|
882
|
-
toReturn['
|
|
878
|
+
if (typeof this.name !== 'undefined') {
|
|
879
|
+
toReturn['name'] = this.name;
|
|
883
880
|
}
|
|
884
|
-
if (typeof this.
|
|
885
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
908
|
-
toReturn['
|
|
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.
|
|
923
|
-
toReturn['
|
|
916
|
+
if (typeof this.value !== 'undefined') {
|
|
917
|
+
toReturn['value'] = this.value;
|
|
924
918
|
}
|
|
925
919
|
return toReturn;
|
|
926
920
|
}
|
|
927
921
|
}
|
|
928
|
-
class
|
|
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
|
|
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.
|
|
949
|
-
toReturn['
|
|
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.
|
|
958
|
-
toReturn['
|
|
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
|
|
953
|
+
let m = new PostContent();
|
|
979
954
|
m = Object.assign(m, proto);
|
|
980
|
-
if (proto.
|
|
981
|
-
m.
|
|
955
|
+
if (proto.media) {
|
|
956
|
+
m.media = proto.media.map(PostMedia.fromProto);
|
|
982
957
|
}
|
|
983
|
-
if (proto.
|
|
984
|
-
m.
|
|
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.
|
|
991
|
-
toReturn['
|
|
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.
|
|
1006
|
-
toReturn['
|
|
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.
|
|
1009
|
-
toReturn['
|
|
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
|
|
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
|
|
985
|
+
let m = new PostCustomization();
|
|
1023
986
|
m = Object.assign(m, proto);
|
|
1024
|
-
if (proto.
|
|
1025
|
-
m.
|
|
987
|
+
if (proto.event) {
|
|
988
|
+
m.event = PostEvent.fromProto(proto.event);
|
|
1026
989
|
}
|
|
1027
|
-
if (proto.
|
|
1028
|
-
m.
|
|
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.
|
|
1035
|
-
toReturn['
|
|
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.
|
|
1038
|
-
toReturn['
|
|
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
|
|
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
|
|
1014
|
+
let m = new PostEvent();
|
|
1052
1015
|
m = Object.assign(m, proto);
|
|
1053
|
-
if (proto.
|
|
1054
|
-
m.
|
|
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.
|
|
1067
|
-
toReturn['
|
|
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.
|
|
1091
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1111
|
-
toReturn['
|
|
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
|
|
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
|
|
1081
|
+
let m = new SocialPost();
|
|
1125
1082
|
m = Object.assign(m, proto);
|
|
1126
|
-
if (proto.
|
|
1127
|
-
m.
|
|
1083
|
+
if (proto.postContent) {
|
|
1084
|
+
m.postContent = PostContent.fromProto(proto.postContent);
|
|
1128
1085
|
}
|
|
1129
|
-
if (proto.
|
|
1130
|
-
m.
|
|
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.
|
|
1137
|
-
toReturn['
|
|
1099
|
+
if (typeof this.businessId !== 'undefined') {
|
|
1100
|
+
toReturn['businessId'] = this.businessId;
|
|
1138
1101
|
}
|
|
1139
|
-
if (typeof this.
|
|
1140
|
-
toReturn['
|
|
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
|
-
|
|
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
|
|
1135
|
+
let m = new FacebookPostStats();
|
|
1154
1136
|
m = Object.assign(m, proto);
|
|
1155
|
-
|
|
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 (
|
|
1163
|
-
|
|
1140
|
+
if (proto.shareCount) {
|
|
1141
|
+
m.shareCount = parseInt(proto.shareCount, 10);
|
|
1164
1142
|
}
|
|
1165
|
-
if (
|
|
1166
|
-
|
|
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
|
|
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
|
|
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.
|
|
1186
|
-
toReturn['
|
|
1200
|
+
if (typeof this.internalPostId !== 'undefined') {
|
|
1201
|
+
toReturn['internalPostId'] = this.internalPostId;
|
|
1187
1202
|
}
|
|
1188
|
-
if (typeof this.
|
|
1189
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1209
|
-
toReturn['
|
|
1232
|
+
if (typeof this.favourites !== 'undefined') {
|
|
1233
|
+
toReturn['favourites'] = this.favourites;
|
|
1210
1234
|
}
|
|
1211
|
-
if (typeof this.
|
|
1212
|
-
toReturn['
|
|
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
|
-
|
|
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
|
|
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.
|
|
1232
|
-
toReturn['
|
|
1271
|
+
if (typeof this.key !== 'undefined') {
|
|
1272
|
+
toReturn['key'] = this.key;
|
|
1233
1273
|
}
|
|
1234
|
-
if (typeof this.
|
|
1235
|
-
toReturn['
|
|
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
|
|
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
|
|
1288
|
+
let m = new TenorGif();
|
|
1249
1289
|
m = Object.assign(m, proto);
|
|
1250
|
-
if (proto.
|
|
1251
|
-
m.
|
|
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.
|
|
1264
|
-
toReturn['
|
|
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.
|
|
1276
|
-
toReturn['
|
|
1300
|
+
if (typeof this.tags !== 'undefined') {
|
|
1301
|
+
toReturn['tags'] = this.tags;
|
|
1277
1302
|
}
|
|
1278
|
-
if (typeof this.
|
|
1279
|
-
toReturn['
|
|
1303
|
+
if (typeof this.hasAudio !== 'undefined') {
|
|
1304
|
+
toReturn['hasAudio'] = this.hasAudio;
|
|
1280
1305
|
}
|
|
1281
|
-
if (typeof this.
|
|
1282
|
-
toReturn['
|
|
1306
|
+
if (typeof this.title !== 'undefined') {
|
|
1307
|
+
toReturn['title'] = this.title;
|
|
1283
1308
|
}
|
|
1284
|
-
if (typeof this.
|
|
1285
|
-
toReturn['
|
|
1309
|
+
if (typeof this.id !== 'undefined') {
|
|
1310
|
+
toReturn['id'] = this.id;
|
|
1286
1311
|
}
|
|
1287
|
-
if (typeof this.
|
|
1288
|
-
toReturn['
|
|
1312
|
+
if (typeof this.created !== 'undefined') {
|
|
1313
|
+
toReturn['created'] = this.created;
|
|
1289
1314
|
}
|
|
1290
1315
|
return toReturn;
|
|
1291
1316
|
}
|
|
1292
1317
|
}
|
|
1293
|
-
class
|
|
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
|
|
1326
|
+
let m = new TenorMediaObject();
|
|
1302
1327
|
m = Object.assign(m, proto);
|
|
1303
|
-
if (proto.
|
|
1304
|
-
m.
|
|
1328
|
+
if (proto.dimensions) {
|
|
1329
|
+
m.dimensions = proto.dimensions.map((i) => parseInt(i, 10));
|
|
1305
1330
|
}
|
|
1306
|
-
if (proto.
|
|
1307
|
-
m.
|
|
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.
|
|
1314
|
-
toReturn['
|
|
1338
|
+
if (typeof this.preview !== 'undefined') {
|
|
1339
|
+
toReturn['preview'] = this.preview;
|
|
1315
1340
|
}
|
|
1316
|
-
if (typeof this.
|
|
1317
|
-
toReturn['
|
|
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
|
-
|
|
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
|
|
1368
|
+
let m = new CreateMultilocationPostRequest();
|
|
1331
1369
|
m = Object.assign(m, proto);
|
|
1332
|
-
if (proto.
|
|
1333
|
-
m.
|
|
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.
|
|
1340
|
-
toReturn['
|
|
1380
|
+
if (typeof this.brandId !== 'undefined') {
|
|
1381
|
+
toReturn['brandId'] = this.brandId;
|
|
1341
1382
|
}
|
|
1342
|
-
if (typeof this.
|
|
1343
|
-
toReturn['
|
|
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
|
|
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
|
|
1412
|
+
let m = new CreateMultilocationPostResponse();
|
|
1357
1413
|
m = Object.assign(m, proto);
|
|
1358
|
-
if (proto.
|
|
1359
|
-
m.
|
|
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.
|
|
1366
|
-
toReturn['
|
|
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.
|
|
1372
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1392
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1412
|
-
toReturn['
|
|
1518
|
+
if (typeof this.templateId !== 'undefined') {
|
|
1519
|
+
toReturn['templateId'] = this.templateId;
|
|
1413
1520
|
}
|
|
1414
1521
|
return toReturn;
|
|
1415
1522
|
}
|
|
1416
1523
|
}
|
|
1417
|
-
class
|
|
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
|
|
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.
|
|
1432
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1452
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1481
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1501
|
-
toReturn['
|
|
1616
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
1617
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
1502
1618
|
}
|
|
1503
|
-
if (typeof this.
|
|
1504
|
-
toReturn['
|
|
1619
|
+
if (typeof this.templateId !== 'undefined') {
|
|
1620
|
+
toReturn['templateId'] = this.templateId;
|
|
1505
1621
|
}
|
|
1506
1622
|
return toReturn;
|
|
1507
1623
|
}
|
|
1508
1624
|
}
|
|
1509
|
-
class
|
|
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
|
|
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.
|
|
1527
|
-
toReturn['
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1709
|
+
let m = new EditMultilocationPostResponse();
|
|
1564
1710
|
m = Object.assign(m, proto);
|
|
1565
|
-
if (proto.
|
|
1566
|
-
m.
|
|
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.
|
|
1573
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1593
|
-
toReturn['
|
|
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.
|
|
1596
|
-
toReturn['
|
|
1750
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
1751
|
+
toReturn['partnerId'] = this.partnerId;
|
|
1597
1752
|
}
|
|
1598
1753
|
return toReturn;
|
|
1599
1754
|
}
|
|
1600
1755
|
}
|
|
1601
|
-
class
|
|
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
|
|
1764
|
+
let m = new GenerateCSVForPerformanceStatsRequest();
|
|
1610
1765
|
m = Object.assign(m, proto);
|
|
1611
|
-
if (proto.
|
|
1612
|
-
m.
|
|
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.
|
|
1619
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1639
|
-
toReturn['
|
|
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
|
|
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
|
|
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.
|
|
1668
|
-
toReturn['
|
|
1819
|
+
if (typeof this.generatedId !== 'undefined') {
|
|
1820
|
+
toReturn['generatedId'] = this.generatedId;
|
|
1669
1821
|
}
|
|
1670
1822
|
return toReturn;
|
|
1671
1823
|
}
|
|
1672
1824
|
}
|
|
1673
|
-
class
|
|
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
|
|
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
|
|
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.
|
|
1705
|
-
toReturn['
|
|
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
|
|
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
|
|
1879
|
+
let m = new GetMultiSocialPostStatsResponse();
|
|
1719
1880
|
m = Object.assign(m, proto);
|
|
1720
|
-
if (proto.
|
|
1721
|
-
m.
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
|
|
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
|
}
|
|
@@ -2680,7 +3380,299 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2680
3380
|
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
2681
3381
|
|
|
2682
3382
|
// *********************************
|
|
2683
|
-
class PostTemplatesApiService {
|
|
3383
|
+
class PostTemplatesApiService {
|
|
3384
|
+
constructor(http, hostService) {
|
|
3385
|
+
this.http = http;
|
|
3386
|
+
this.hostService = hostService;
|
|
3387
|
+
this._host = this.hostService.hostWithScheme;
|
|
3388
|
+
}
|
|
3389
|
+
apiOptions() {
|
|
3390
|
+
return {
|
|
3391
|
+
headers: new HttpHeaders({
|
|
3392
|
+
'Content-Type': 'application/json'
|
|
3393
|
+
}),
|
|
3394
|
+
withCredentials: true
|
|
3395
|
+
};
|
|
3396
|
+
}
|
|
3397
|
+
updatePostTemplate(r) {
|
|
3398
|
+
const request = (r.toApiJson) ? r : new UpdatePostTemplateRequest(r);
|
|
3399
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/UpdatePostTemplate", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3400
|
+
}
|
|
3401
|
+
createPostTemplate(r) {
|
|
3402
|
+
const request = (r.toApiJson) ? r : new CreatePostTemplateRequest(r);
|
|
3403
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/CreatePostTemplate", request.toApiJson(), this.apiOptions())
|
|
3404
|
+
.pipe(map(resp => CreatePostTemplateResponse.fromProto(resp)));
|
|
3405
|
+
}
|
|
3406
|
+
getPostTemplate(r) {
|
|
3407
|
+
const request = (r.toApiJson) ? r : new GetPostTemplateRequest(r);
|
|
3408
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/GetPostTemplate", request.toApiJson(), this.apiOptions())
|
|
3409
|
+
.pipe(map(resp => GetPostTemplateResponse.fromProto(resp)));
|
|
3410
|
+
}
|
|
3411
|
+
listPostTemplates(r) {
|
|
3412
|
+
const request = (r.toApiJson) ? r : new ListPostTemplatesRequest(r);
|
|
3413
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/ListPostTemplates", request.toApiJson(), this.apiOptions())
|
|
3414
|
+
.pipe(map(resp => ListPostTemplatesResponse.fromProto(resp)));
|
|
3415
|
+
}
|
|
3416
|
+
deletePostTemplate(r) {
|
|
3417
|
+
const request = (r.toApiJson) ? r : new DeletePostTemplateRequest(r);
|
|
3418
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3419
|
+
}
|
|
3420
|
+
}
|
|
3421
|
+
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 });
|
|
3422
|
+
PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
|
|
3423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, decorators: [{
|
|
3424
|
+
type: Injectable,
|
|
3425
|
+
args: [{ providedIn: 'root' }]
|
|
3426
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3427
|
+
|
|
3428
|
+
// *********************************
|
|
3429
|
+
class HashTagsApiService {
|
|
3430
|
+
constructor(http, hostService) {
|
|
3431
|
+
this.http = http;
|
|
3432
|
+
this.hostService = hostService;
|
|
3433
|
+
this._host = this.hostService.hostWithScheme;
|
|
3434
|
+
}
|
|
3435
|
+
apiOptions() {
|
|
3436
|
+
return {
|
|
3437
|
+
headers: new HttpHeaders({
|
|
3438
|
+
'Content-Type': 'application/json'
|
|
3439
|
+
}),
|
|
3440
|
+
withCredentials: true
|
|
3441
|
+
};
|
|
3442
|
+
}
|
|
3443
|
+
replaceHashtags(r) {
|
|
3444
|
+
const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
|
|
3445
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3446
|
+
}
|
|
3447
|
+
deleteHashtags(r) {
|
|
3448
|
+
const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
|
|
3449
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3450
|
+
}
|
|
3451
|
+
searchHashtag(r) {
|
|
3452
|
+
const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
|
|
3453
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
|
|
3454
|
+
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
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 });
|
|
3458
|
+
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
3459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
3460
|
+
type: Injectable,
|
|
3461
|
+
args: [{ providedIn: 'root' }]
|
|
3462
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3463
|
+
|
|
3464
|
+
// *********************************
|
|
3465
|
+
class LinkedinApiService {
|
|
3466
|
+
constructor(http, hostService) {
|
|
3467
|
+
this.http = http;
|
|
3468
|
+
this.hostService = hostService;
|
|
3469
|
+
this._host = this.hostService.hostWithScheme;
|
|
3470
|
+
}
|
|
3471
|
+
apiOptions() {
|
|
3472
|
+
return {
|
|
3473
|
+
headers: new HttpHeaders({
|
|
3474
|
+
'Content-Type': 'application/json'
|
|
3475
|
+
}),
|
|
3476
|
+
withCredentials: true
|
|
3477
|
+
};
|
|
3478
|
+
}
|
|
3479
|
+
deletePost(r) {
|
|
3480
|
+
const request = (r.toApiJson) ? r : new DeletePostRequest(r);
|
|
3481
|
+
return this.http.post(this._host + "/socialposts.v2.Linkedin/DeletePost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3482
|
+
}
|
|
3483
|
+
uploadMedia(r) {
|
|
3484
|
+
const request = (r.toApiJson) ? r : new MediaUploadRequest(r);
|
|
3485
|
+
return this.http.post(this._host + "/socialposts.v2.Linkedin/UploadMedia", request.toApiJson(), this.apiOptions())
|
|
3486
|
+
.pipe(map(resp => MediaUploadResponse.fromProto(resp)));
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3489
|
+
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 });
|
|
3490
|
+
LinkedinApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, providedIn: 'root' });
|
|
3491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, decorators: [{
|
|
3492
|
+
type: Injectable,
|
|
3493
|
+
args: [{ providedIn: 'root' }]
|
|
3494
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3495
|
+
|
|
3496
|
+
// *********************************
|
|
3497
|
+
class MultilocationPostApiService {
|
|
3498
|
+
constructor(http, hostService) {
|
|
3499
|
+
this.http = http;
|
|
3500
|
+
this.hostService = hostService;
|
|
3501
|
+
this._host = this.hostService.hostWithScheme;
|
|
3502
|
+
}
|
|
3503
|
+
apiOptions() {
|
|
3504
|
+
return {
|
|
3505
|
+
headers: new HttpHeaders({
|
|
3506
|
+
'Content-Type': 'application/json'
|
|
3507
|
+
}),
|
|
3508
|
+
withCredentials: true
|
|
3509
|
+
};
|
|
3510
|
+
}
|
|
3511
|
+
createMultilocationPost(r) {
|
|
3512
|
+
const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
|
|
3513
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
3514
|
+
.pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
|
|
3515
|
+
}
|
|
3516
|
+
editMultilocationPost(r) {
|
|
3517
|
+
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
3518
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
3519
|
+
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
3520
|
+
}
|
|
3521
|
+
removeFromMultilocationPost(r) {
|
|
3522
|
+
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
3523
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3524
|
+
}
|
|
3525
|
+
listMultilocationPostsForBrand(r) {
|
|
3526
|
+
const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
|
|
3527
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
|
|
3528
|
+
.pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
|
|
3529
|
+
}
|
|
3530
|
+
deleteMultilocationPost(r) {
|
|
3531
|
+
const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
|
|
3532
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3533
|
+
}
|
|
3534
|
+
getMultilocationPost(r) {
|
|
3535
|
+
const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
|
|
3536
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
3537
|
+
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
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 });
|
|
3541
|
+
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
3542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
3543
|
+
type: Injectable,
|
|
3544
|
+
args: [{ providedIn: 'root' }]
|
|
3545
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3546
|
+
|
|
3547
|
+
// *********************************
|
|
3548
|
+
class PartnerSocialPostsApiService {
|
|
3549
|
+
constructor(http, hostService) {
|
|
3550
|
+
this.http = http;
|
|
3551
|
+
this.hostService = hostService;
|
|
3552
|
+
this._host = this.hostService.hostWithScheme;
|
|
3553
|
+
}
|
|
3554
|
+
apiOptions() {
|
|
3555
|
+
return {
|
|
3556
|
+
headers: new HttpHeaders({
|
|
3557
|
+
'Content-Type': 'application/json'
|
|
3558
|
+
}),
|
|
3559
|
+
withCredentials: true
|
|
3560
|
+
};
|
|
3561
|
+
}
|
|
3562
|
+
listScheduled(r) {
|
|
3563
|
+
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3564
|
+
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
|
|
3565
|
+
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3566
|
+
}
|
|
3567
|
+
listScheduledByCreated(r) {
|
|
3568
|
+
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3569
|
+
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
|
|
3570
|
+
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
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 });
|
|
3574
|
+
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
3576
|
+
type: Injectable,
|
|
3577
|
+
args: [{ providedIn: 'root' }]
|
|
3578
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3579
|
+
|
|
3580
|
+
// *********************************
|
|
3581
|
+
class PixabayImagesApiService {
|
|
3582
|
+
constructor(http, hostService) {
|
|
3583
|
+
this.http = http;
|
|
3584
|
+
this.hostService = hostService;
|
|
3585
|
+
this._host = this.hostService.hostWithScheme;
|
|
3586
|
+
}
|
|
3587
|
+
apiOptions() {
|
|
3588
|
+
return {
|
|
3589
|
+
headers: new HttpHeaders({
|
|
3590
|
+
'Content-Type': 'application/json'
|
|
3591
|
+
}),
|
|
3592
|
+
withCredentials: true
|
|
3593
|
+
};
|
|
3594
|
+
}
|
|
3595
|
+
listPixabayImages(r) {
|
|
3596
|
+
const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
|
|
3597
|
+
return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
|
|
3598
|
+
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
3599
|
+
}
|
|
3600
|
+
}
|
|
3601
|
+
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 });
|
|
3602
|
+
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
3603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
3604
|
+
type: Injectable,
|
|
3605
|
+
args: [{ providedIn: 'root' }]
|
|
3606
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3607
|
+
|
|
3608
|
+
// *********************************
|
|
3609
|
+
class PostPerformanceApiService {
|
|
3610
|
+
constructor(http, hostService) {
|
|
3611
|
+
this.http = http;
|
|
3612
|
+
this.hostService = hostService;
|
|
3613
|
+
this._host = this.hostService.hostWithScheme;
|
|
3614
|
+
}
|
|
3615
|
+
apiOptions() {
|
|
3616
|
+
return {
|
|
3617
|
+
headers: new HttpHeaders({
|
|
3618
|
+
'Content-Type': 'application/json'
|
|
3619
|
+
}),
|
|
3620
|
+
withCredentials: true
|
|
3621
|
+
};
|
|
3622
|
+
}
|
|
3623
|
+
generateCsvForPerformanceStats(r) {
|
|
3624
|
+
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3625
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3626
|
+
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3627
|
+
}
|
|
3628
|
+
getGeneratedCsvForPerformanceStats(r) {
|
|
3629
|
+
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3630
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3631
|
+
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3632
|
+
}
|
|
3633
|
+
}
|
|
3634
|
+
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 });
|
|
3635
|
+
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3637
|
+
type: Injectable,
|
|
3638
|
+
args: [{ providedIn: 'root' }]
|
|
3639
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3640
|
+
|
|
3641
|
+
// *********************************
|
|
3642
|
+
class SocialPostsV2ApiService {
|
|
3643
|
+
constructor(http, hostService) {
|
|
3644
|
+
this.http = http;
|
|
3645
|
+
this.hostService = hostService;
|
|
3646
|
+
this._host = this.hostService.hostWithScheme;
|
|
3647
|
+
}
|
|
3648
|
+
apiOptions() {
|
|
3649
|
+
return {
|
|
3650
|
+
headers: new HttpHeaders({
|
|
3651
|
+
'Content-Type': 'application/json'
|
|
3652
|
+
}),
|
|
3653
|
+
withCredentials: true
|
|
3654
|
+
};
|
|
3655
|
+
}
|
|
3656
|
+
scheduleSocialPosts(r) {
|
|
3657
|
+
const request = (r.toApiJson) ? r : new SocialPostRequest(r);
|
|
3658
|
+
return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/ScheduleSocialPosts", request.toApiJson(), this.apiOptions())
|
|
3659
|
+
.pipe(map(resp => SocialPostResponse.fromProto(resp)));
|
|
3660
|
+
}
|
|
3661
|
+
createImages(r) {
|
|
3662
|
+
const request = (r.toApiJson) ? r : new CreateImageRequest(r);
|
|
3663
|
+
return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/CreateImages", request.toApiJson(), this.apiOptions())
|
|
3664
|
+
.pipe(map(resp => CreateImageResponse.fromProto(resp)));
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
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 });
|
|
3668
|
+
SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
|
|
3669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsV2ApiService, decorators: [{
|
|
3670
|
+
type: Injectable,
|
|
3671
|
+
args: [{ providedIn: 'root' }]
|
|
3672
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3673
|
+
|
|
3674
|
+
// *********************************
|
|
3675
|
+
class TenorGifsApiService {
|
|
2684
3676
|
constructor(http, hostService) {
|
|
2685
3677
|
this.http = http;
|
|
2686
3678
|
this.hostService = hostService;
|
|
@@ -2694,42 +3686,31 @@ class PostTemplatesApiService {
|
|
|
2694
3686
|
withCredentials: true
|
|
2695
3687
|
};
|
|
2696
3688
|
}
|
|
2697
|
-
|
|
2698
|
-
const request = (r.toApiJson) ? r : new
|
|
2699
|
-
return this.http.post(this._host + "/socialposts.v1.
|
|
2700
|
-
|
|
2701
|
-
createPostTemplate(r) {
|
|
2702
|
-
const request = (r.toApiJson) ? r : new CreatePostTemplateRequest(r);
|
|
2703
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/CreatePostTemplate", request.toApiJson(), this.apiOptions())
|
|
2704
|
-
.pipe(map(resp => CreatePostTemplateResponse.fromProto(resp)));
|
|
2705
|
-
}
|
|
2706
|
-
getPostTemplate(r) {
|
|
2707
|
-
const request = (r.toApiJson) ? r : new GetPostTemplateRequest(r);
|
|
2708
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/GetPostTemplate", request.toApiJson(), this.apiOptions())
|
|
2709
|
-
.pipe(map(resp => GetPostTemplateResponse.fromProto(resp)));
|
|
2710
|
-
}
|
|
2711
|
-
listPostTemplates(r) {
|
|
2712
|
-
const request = (r.toApiJson) ? r : new ListPostTemplatesRequest(r);
|
|
2713
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/ListPostTemplates", request.toApiJson(), this.apiOptions())
|
|
2714
|
-
.pipe(map(resp => ListPostTemplatesResponse.fromProto(resp)));
|
|
3689
|
+
getTenorAnonymousId(r) {
|
|
3690
|
+
const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
|
|
3691
|
+
return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
|
|
3692
|
+
.pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
|
|
2715
3693
|
}
|
|
2716
|
-
|
|
2717
|
-
const request = (r.toApiJson) ? r : new
|
|
2718
|
-
return this.http.post(this._host + "/socialposts.v1.
|
|
3694
|
+
listTenorGifs(r) {
|
|
3695
|
+
const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
|
|
3696
|
+
return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
|
|
3697
|
+
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
2719
3698
|
}
|
|
2720
3699
|
}
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type:
|
|
3700
|
+
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 });
|
|
3701
|
+
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
3702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
2724
3703
|
type: Injectable,
|
|
2725
3704
|
args: [{ providedIn: 'root' }]
|
|
2726
3705
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2727
3706
|
|
|
3707
|
+
// *********************************
|
|
3708
|
+
|
|
2728
3709
|
class PostTemplatesService {
|
|
2729
3710
|
constructor(socialPostsApiService) {
|
|
2730
3711
|
this.socialPostsApiService = socialPostsApiService;
|
|
2731
3712
|
}
|
|
2732
|
-
updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl) {
|
|
3713
|
+
updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
|
|
2733
3714
|
const req = new UpdatePostTemplateRequest({
|
|
2734
3715
|
accountGroupId: accountGroupId,
|
|
2735
3716
|
templateId: templateId,
|
|
@@ -2742,11 +3723,14 @@ class PostTemplatesService {
|
|
|
2742
3723
|
imageSize: imageSize,
|
|
2743
3724
|
previews: previews,
|
|
2744
3725
|
options: options,
|
|
2745
|
-
videoUrl: videoUrl
|
|
3726
|
+
videoUrl: videoUrl,
|
|
3727
|
+
postType: postType || PostType$1.POST_TYPE_INVALID,
|
|
3728
|
+
mediaEntries: mediaEntries,
|
|
3729
|
+
metaData: metadata,
|
|
2746
3730
|
});
|
|
2747
3731
|
return this.socialPostsApiService.updatePostTemplate(req);
|
|
2748
3732
|
}
|
|
2749
|
-
createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl) {
|
|
3733
|
+
createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
|
|
2750
3734
|
const req = new CreatePostTemplateRequest({
|
|
2751
3735
|
accountGroupId: accountGroupId,
|
|
2752
3736
|
title: title,
|
|
@@ -2758,7 +3742,10 @@ class PostTemplatesService {
|
|
|
2758
3742
|
imageSize: imageSize,
|
|
2759
3743
|
previews: previews,
|
|
2760
3744
|
options: options,
|
|
2761
|
-
videoUrl: videoUrl
|
|
3745
|
+
videoUrl: videoUrl,
|
|
3746
|
+
postType: postType || PostType$1.POST_TYPE_INVALID,
|
|
3747
|
+
mediaEntries: mediaEntries,
|
|
3748
|
+
metaData: metadata,
|
|
2762
3749
|
});
|
|
2763
3750
|
return this.socialPostsApiService.createPostTemplate(req);
|
|
2764
3751
|
}
|
|
@@ -2792,57 +3779,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2792
3779
|
args: [{ providedIn: 'root' }]
|
|
2793
3780
|
}], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
|
|
2794
3781
|
|
|
2795
|
-
// *********************************
|
|
2796
|
-
class MultilocationPostApiService {
|
|
2797
|
-
constructor(http, hostService) {
|
|
2798
|
-
this.http = http;
|
|
2799
|
-
this.hostService = hostService;
|
|
2800
|
-
this._host = this.hostService.hostWithScheme;
|
|
2801
|
-
}
|
|
2802
|
-
apiOptions() {
|
|
2803
|
-
return {
|
|
2804
|
-
headers: new HttpHeaders({
|
|
2805
|
-
'Content-Type': 'application/json'
|
|
2806
|
-
}),
|
|
2807
|
-
withCredentials: true
|
|
2808
|
-
};
|
|
2809
|
-
}
|
|
2810
|
-
createMultilocationPost(r) {
|
|
2811
|
-
const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
|
|
2812
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2813
|
-
.pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
|
|
2814
|
-
}
|
|
2815
|
-
editMultilocationPost(r) {
|
|
2816
|
-
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
2817
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2818
|
-
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
2819
|
-
}
|
|
2820
|
-
removeFromMultilocationPost(r) {
|
|
2821
|
-
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
2822
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2823
|
-
}
|
|
2824
|
-
listMultilocationPostsForBrand(r) {
|
|
2825
|
-
const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
|
|
2826
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
|
|
2827
|
-
.pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
|
|
2828
|
-
}
|
|
2829
|
-
deleteMultilocationPost(r) {
|
|
2830
|
-
const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
|
|
2831
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2832
|
-
}
|
|
2833
|
-
getMultilocationPost(r) {
|
|
2834
|
-
const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
|
|
2835
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2836
|
-
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
2839
|
-
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 });
|
|
2840
|
-
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
2841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
2842
|
-
type: Injectable,
|
|
2843
|
-
args: [{ providedIn: 'root' }]
|
|
2844
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2845
|
-
|
|
2846
3782
|
class MultilocationPostsService {
|
|
2847
3783
|
constructor(multilocationApiService) {
|
|
2848
3784
|
this.multilocationApiService = multilocationApiService;
|
|
@@ -2914,39 +3850,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2914
3850
|
args: [{ providedIn: 'root' }]
|
|
2915
3851
|
}], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
|
|
2916
3852
|
|
|
2917
|
-
// *********************************
|
|
2918
|
-
class TenorGifsApiService {
|
|
2919
|
-
constructor(http, hostService) {
|
|
2920
|
-
this.http = http;
|
|
2921
|
-
this.hostService = hostService;
|
|
2922
|
-
this._host = this.hostService.hostWithScheme;
|
|
2923
|
-
}
|
|
2924
|
-
apiOptions() {
|
|
2925
|
-
return {
|
|
2926
|
-
headers: new HttpHeaders({
|
|
2927
|
-
'Content-Type': 'application/json'
|
|
2928
|
-
}),
|
|
2929
|
-
withCredentials: true
|
|
2930
|
-
};
|
|
2931
|
-
}
|
|
2932
|
-
getTenorAnonymousId(r) {
|
|
2933
|
-
const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
|
|
2934
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
|
|
2935
|
-
.pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
|
|
2936
|
-
}
|
|
2937
|
-
listTenorGifs(r) {
|
|
2938
|
-
const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
|
|
2939
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
|
|
2940
|
-
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
2941
|
-
}
|
|
2942
|
-
}
|
|
2943
|
-
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 });
|
|
2944
|
-
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
2945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
2946
|
-
type: Injectable,
|
|
2947
|
-
args: [{ providedIn: 'root' }]
|
|
2948
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2949
|
-
|
|
2950
3853
|
class TenorGifsService {
|
|
2951
3854
|
constructor(tenorGifsApiService) {
|
|
2952
3855
|
this.tenorGifsApiService = tenorGifsApiService;
|
|
@@ -2976,34 +3879,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2976
3879
|
args: [{ providedIn: 'root' }]
|
|
2977
3880
|
}], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
|
|
2978
3881
|
|
|
2979
|
-
// *********************************
|
|
2980
|
-
class PixabayImagesApiService {
|
|
2981
|
-
constructor(http, hostService) {
|
|
2982
|
-
this.http = http;
|
|
2983
|
-
this.hostService = hostService;
|
|
2984
|
-
this._host = this.hostService.hostWithScheme;
|
|
2985
|
-
}
|
|
2986
|
-
apiOptions() {
|
|
2987
|
-
return {
|
|
2988
|
-
headers: new HttpHeaders({
|
|
2989
|
-
'Content-Type': 'application/json'
|
|
2990
|
-
}),
|
|
2991
|
-
withCredentials: true
|
|
2992
|
-
};
|
|
2993
|
-
}
|
|
2994
|
-
listPixabayImages(r) {
|
|
2995
|
-
const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
|
|
2996
|
-
return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
|
|
2997
|
-
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
2998
|
-
}
|
|
2999
|
-
}
|
|
3000
|
-
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 });
|
|
3001
|
-
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
3002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
3003
|
-
type: Injectable,
|
|
3004
|
-
args: [{ providedIn: 'root' }]
|
|
3005
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3006
|
-
|
|
3007
3882
|
class PixabayImageService {
|
|
3008
3883
|
constructor(pixabayApiService) {
|
|
3009
3884
|
this.pixabayApiService = pixabayApiService;
|
|
@@ -3022,42 +3897,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3022
3897
|
args: [{ providedIn: 'root' }]
|
|
3023
3898
|
}], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
|
|
3024
3899
|
|
|
3025
|
-
// *********************************
|
|
3026
|
-
class HashTagsApiService {
|
|
3027
|
-
constructor(http, hostService) {
|
|
3028
|
-
this.http = http;
|
|
3029
|
-
this.hostService = hostService;
|
|
3030
|
-
this._host = this.hostService.hostWithScheme;
|
|
3031
|
-
}
|
|
3032
|
-
apiOptions() {
|
|
3033
|
-
return {
|
|
3034
|
-
headers: new HttpHeaders({
|
|
3035
|
-
'Content-Type': 'application/json'
|
|
3036
|
-
}),
|
|
3037
|
-
withCredentials: true
|
|
3038
|
-
};
|
|
3039
|
-
}
|
|
3040
|
-
replaceHashtags(r) {
|
|
3041
|
-
const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
|
|
3042
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3043
|
-
}
|
|
3044
|
-
deleteHashtags(r) {
|
|
3045
|
-
const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
|
|
3046
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3047
|
-
}
|
|
3048
|
-
searchHashtag(r) {
|
|
3049
|
-
const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
|
|
3050
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
|
|
3051
|
-
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
3052
|
-
}
|
|
3053
|
-
}
|
|
3054
|
-
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 });
|
|
3055
|
-
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
3056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
3057
|
-
type: Injectable,
|
|
3058
|
-
args: [{ providedIn: 'root' }]
|
|
3059
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3060
|
-
|
|
3061
3900
|
class HashTagsService {
|
|
3062
3901
|
constructor(hashTagsApiService) {
|
|
3063
3902
|
this.hashTagsApiService = hashTagsApiService;
|
|
@@ -3095,39 +3934,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3095
3934
|
args: [{ providedIn: 'root' }]
|
|
3096
3935
|
}], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
|
|
3097
3936
|
|
|
3098
|
-
// *********************************
|
|
3099
|
-
class PostPerformanceApiService {
|
|
3100
|
-
constructor(http, hostService) {
|
|
3101
|
-
this.http = http;
|
|
3102
|
-
this.hostService = hostService;
|
|
3103
|
-
this._host = this.hostService.hostWithScheme;
|
|
3104
|
-
}
|
|
3105
|
-
apiOptions() {
|
|
3106
|
-
return {
|
|
3107
|
-
headers: new HttpHeaders({
|
|
3108
|
-
'Content-Type': 'application/json'
|
|
3109
|
-
}),
|
|
3110
|
-
withCredentials: true
|
|
3111
|
-
};
|
|
3112
|
-
}
|
|
3113
|
-
generateCsvForPerformanceStats(r) {
|
|
3114
|
-
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3115
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3116
|
-
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3117
|
-
}
|
|
3118
|
-
getGeneratedCsvForPerformanceStats(r) {
|
|
3119
|
-
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3120
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3121
|
-
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3122
|
-
}
|
|
3123
|
-
}
|
|
3124
|
-
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 });
|
|
3125
|
-
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3127
|
-
type: Injectable,
|
|
3128
|
-
args: [{ providedIn: 'root' }]
|
|
3129
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3130
|
-
|
|
3131
3937
|
class PostPerformanceService {
|
|
3132
3938
|
constructor(postPerformanceApiService) {
|
|
3133
3939
|
this.postPerformanceApiService = postPerformanceApiService;
|
|
@@ -3148,41 +3954,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3148
3954
|
args: [{ providedIn: 'root' }]
|
|
3149
3955
|
}], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
|
|
3150
3956
|
|
|
3151
|
-
// *********************************
|
|
3152
|
-
class PartnerSocialPostsApiService {
|
|
3153
|
-
constructor(http, hostService) {
|
|
3154
|
-
this.http = http;
|
|
3155
|
-
this.hostService = hostService;
|
|
3156
|
-
this._host = this.hostService.hostWithScheme;
|
|
3157
|
-
}
|
|
3158
|
-
apiOptions() {
|
|
3159
|
-
return {
|
|
3160
|
-
headers: new HttpHeaders({
|
|
3161
|
-
'Content-Type': 'application/json'
|
|
3162
|
-
}),
|
|
3163
|
-
withCredentials: true
|
|
3164
|
-
};
|
|
3165
|
-
}
|
|
3166
|
-
listScheduled(r) {
|
|
3167
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3168
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
|
|
3169
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3170
|
-
}
|
|
3171
|
-
listScheduledByCreated(r) {
|
|
3172
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3173
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
|
|
3174
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3175
|
-
}
|
|
3176
|
-
}
|
|
3177
|
-
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 });
|
|
3178
|
-
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
3180
|
-
type: Injectable,
|
|
3181
|
-
args: [{ providedIn: 'root' }]
|
|
3182
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3183
|
-
|
|
3184
|
-
// *********************************
|
|
3185
|
-
|
|
3186
3957
|
/**
|
|
3187
3958
|
* Generated bundle index. Do not edit.
|
|
3188
3959
|
*/
|