@vendasta/social-posts 5.4.1 → 5.6.1
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 +3 -2
- package/esm2020/lib/_internal/enums/linkedin.enum.mjs +15 -0
- package/esm2020/lib/_internal/index.mjs +2 -1
- 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.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
- package/esm2020/lib/_internal/linkedin.api.service.mjs +41 -0
- package/esm2020/lib/_internal/objects/api.mjs +88 -3
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/esm2020/lib/_internal/objects/linkedin.mjs +34 -0
- package/esm2020/lib/_internal/objects/social-posts.mjs +87 -1
- package/esm2020/lib/post-templates.service.mjs +12 -5
- package/fesm2015/vendasta-social-posts.mjs +627 -449
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +692 -514
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +2 -1
- package/lib/_internal/enums/linkedin.enum.d.ts +7 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +16 -2
- package/lib/_internal/interfaces/index.d.ts +3 -3
- package/lib/_internal/interfaces/linkedin.interface.d.ts +5 -0
- package/lib/_internal/interfaces/social-posts.interface.d.ts +19 -0
- package/lib/_internal/linkedin.api.service.d.ts +16 -0
- package/lib/_internal/objects/api.d.ts +22 -2
- package/lib/_internal/objects/index.d.ts +3 -3
- package/lib/_internal/objects/linkedin.d.ts +10 -0
- package/lib/_internal/objects/social-posts.d.ts +22 -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
|
@@ -186,218 +186,32 @@ 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
|
-
}
|
|
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 = {}));
|
|
326
200
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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
|
-
}
|
|
201
|
+
// *********************************
|
|
202
|
+
// Code generated by sdkgen
|
|
203
|
+
// DO NOT EDIT!.
|
|
204
|
+
//
|
|
205
|
+
// Enums.
|
|
206
|
+
// *********************************
|
|
207
|
+
var MediaType;
|
|
208
|
+
(function (MediaType) {
|
|
209
|
+
MediaType[MediaType["MEDIA_TYPE_INVALID"] = 0] = "MEDIA_TYPE_INVALID";
|
|
210
|
+
MediaType[MediaType["MEDIA_TYPE_IMAGE"] = 1] = "MEDIA_TYPE_IMAGE";
|
|
211
|
+
MediaType[MediaType["MEDIA_TYPE_VIDEO"] = 2] = "MEDIA_TYPE_VIDEO";
|
|
212
|
+
MediaType[MediaType["MEDIA_TYPE_GIF"] = 3] = "MEDIA_TYPE_GIF";
|
|
213
|
+
MediaType[MediaType["MEDIA_TYPE_CAROUSEL"] = 4] = "MEDIA_TYPE_CAROUSEL";
|
|
214
|
+
})(MediaType || (MediaType = {}));
|
|
401
215
|
|
|
402
216
|
// *********************************
|
|
403
217
|
// Code generated by sdkgen
|
|
@@ -453,20 +267,41 @@ var SocialPostService;
|
|
|
453
267
|
})(SocialPostService || (SocialPostService = {}));
|
|
454
268
|
|
|
455
269
|
// *********************************
|
|
456
|
-
// Code generated by sdkgen
|
|
457
|
-
// DO NOT EDIT!.
|
|
458
|
-
//
|
|
459
|
-
// Enums.
|
|
460
|
-
// *********************************
|
|
461
|
-
var RemoveReason;
|
|
462
|
-
(function (RemoveReason) {
|
|
463
|
-
RemoveReason[RemoveReason["REMOVE_REASON_EDIT"] = 0] = "REMOVE_REASON_EDIT";
|
|
464
|
-
RemoveReason[RemoveReason["REMOVE_REASON_DELETE"] = 1] = "REMOVE_REASON_DELETE";
|
|
465
|
-
})(RemoveReason || (RemoveReason = {}));
|
|
466
270
|
|
|
467
|
-
|
|
271
|
+
function enumStringToValue$5(enumRef, value) {
|
|
272
|
+
if (typeof value === 'number') {
|
|
273
|
+
return value;
|
|
274
|
+
}
|
|
275
|
+
return enumRef[value];
|
|
276
|
+
}
|
|
277
|
+
class Media {
|
|
278
|
+
constructor(kwargs) {
|
|
279
|
+
if (!kwargs) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
Object.assign(this, kwargs);
|
|
283
|
+
}
|
|
284
|
+
static fromProto(proto) {
|
|
285
|
+
let m = new Media();
|
|
286
|
+
m = Object.assign(m, proto);
|
|
287
|
+
if (proto.mediaType) {
|
|
288
|
+
m.mediaType = enumStringToValue$5(MediaType, proto.mediaType);
|
|
289
|
+
}
|
|
290
|
+
return m;
|
|
291
|
+
}
|
|
292
|
+
toApiJson() {
|
|
293
|
+
const toReturn = {};
|
|
294
|
+
if (typeof this.url !== 'undefined') {
|
|
295
|
+
toReturn['url'] = this.url;
|
|
296
|
+
}
|
|
297
|
+
if (typeof this.mediaType !== 'undefined') {
|
|
298
|
+
toReturn['mediaType'] = this.mediaType;
|
|
299
|
+
}
|
|
300
|
+
return toReturn;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
468
303
|
|
|
469
|
-
function enumStringToValue$
|
|
304
|
+
function enumStringToValue$4(enumRef, value) {
|
|
470
305
|
if (typeof value === 'number') {
|
|
471
306
|
return value;
|
|
472
307
|
}
|
|
@@ -483,7 +318,7 @@ class CallToAction {
|
|
|
483
318
|
let m = new CallToAction();
|
|
484
319
|
m = Object.assign(m, proto);
|
|
485
320
|
if (proto.actionType) {
|
|
486
|
-
m.actionType = enumStringToValue$
|
|
321
|
+
m.actionType = enumStringToValue$4(CallToActionCallToActionType, proto.actionType);
|
|
487
322
|
}
|
|
488
323
|
return m;
|
|
489
324
|
}
|
|
@@ -611,6 +446,92 @@ class MetaData {
|
|
|
611
446
|
return toReturn;
|
|
612
447
|
}
|
|
613
448
|
}
|
|
449
|
+
class PostTemplate {
|
|
450
|
+
constructor(kwargs) {
|
|
451
|
+
if (!kwargs) {
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
Object.assign(this, kwargs);
|
|
455
|
+
}
|
|
456
|
+
static fromProto(proto) {
|
|
457
|
+
let m = new PostTemplate();
|
|
458
|
+
m = Object.assign(m, proto);
|
|
459
|
+
if (proto.created) {
|
|
460
|
+
m.created = new Date(proto.created);
|
|
461
|
+
}
|
|
462
|
+
if (proto.updated) {
|
|
463
|
+
m.updated = new Date(proto.updated);
|
|
464
|
+
}
|
|
465
|
+
if (proto.postDateTime) {
|
|
466
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
467
|
+
}
|
|
468
|
+
if (proto.mediaEntries) {
|
|
469
|
+
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
470
|
+
}
|
|
471
|
+
if (proto.metaData) {
|
|
472
|
+
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
473
|
+
}
|
|
474
|
+
if (proto.postType) {
|
|
475
|
+
m.postType = enumStringToValue$4(PostType, proto.postType);
|
|
476
|
+
}
|
|
477
|
+
return m;
|
|
478
|
+
}
|
|
479
|
+
toApiJson() {
|
|
480
|
+
const toReturn = {};
|
|
481
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
482
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
483
|
+
}
|
|
484
|
+
if (typeof this.templateId !== 'undefined') {
|
|
485
|
+
toReturn['templateId'] = this.templateId;
|
|
486
|
+
}
|
|
487
|
+
if (typeof this.title !== 'undefined') {
|
|
488
|
+
toReturn['title'] = this.title;
|
|
489
|
+
}
|
|
490
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
491
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
492
|
+
}
|
|
493
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
494
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
495
|
+
}
|
|
496
|
+
if (typeof this.postText !== 'undefined') {
|
|
497
|
+
toReturn['postText'] = this.postText;
|
|
498
|
+
}
|
|
499
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
500
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
501
|
+
}
|
|
502
|
+
if (typeof this.gmbPostCustomization !== 'undefined') {
|
|
503
|
+
toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
|
|
504
|
+
}
|
|
505
|
+
if (typeof this.imageUrl !== 'undefined') {
|
|
506
|
+
toReturn['imageUrl'] = this.imageUrl;
|
|
507
|
+
}
|
|
508
|
+
if (typeof this.imagePath !== 'undefined') {
|
|
509
|
+
toReturn['imagePath'] = this.imagePath;
|
|
510
|
+
}
|
|
511
|
+
if (typeof this.imageSize !== 'undefined') {
|
|
512
|
+
toReturn['imageSize'] = this.imageSize;
|
|
513
|
+
}
|
|
514
|
+
if (typeof this.previews !== 'undefined') {
|
|
515
|
+
toReturn['previews'] = this.previews;
|
|
516
|
+
}
|
|
517
|
+
if (typeof this.options !== 'undefined') {
|
|
518
|
+
toReturn['options'] = this.options;
|
|
519
|
+
}
|
|
520
|
+
if (typeof this.videoUrl !== 'undefined') {
|
|
521
|
+
toReturn['videoUrl'] = this.videoUrl;
|
|
522
|
+
}
|
|
523
|
+
if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
|
|
524
|
+
toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
|
|
525
|
+
}
|
|
526
|
+
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
527
|
+
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
528
|
+
}
|
|
529
|
+
if (typeof this.postType !== 'undefined') {
|
|
530
|
+
toReturn['postType'] = this.postType;
|
|
531
|
+
}
|
|
532
|
+
return toReturn;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
614
535
|
class SchedulePostStatus {
|
|
615
536
|
constructor(kwargs) {
|
|
616
537
|
if (!kwargs) {
|
|
@@ -657,10 +578,10 @@ class SocialPost {
|
|
|
657
578
|
m.posted = new Date(proto.posted);
|
|
658
579
|
}
|
|
659
580
|
if (proto.deletionStatus) {
|
|
660
|
-
m.deletionStatus = enumStringToValue$
|
|
581
|
+
m.deletionStatus = enumStringToValue$4(SocialPostDeletionStatus, proto.deletionStatus);
|
|
661
582
|
}
|
|
662
583
|
if (proto.service) {
|
|
663
|
-
m.service = enumStringToValue$
|
|
584
|
+
m.service = enumStringToValue$4(SocialPostService, proto.service);
|
|
664
585
|
}
|
|
665
586
|
if (proto.created) {
|
|
666
587
|
m.created = new Date(proto.created);
|
|
@@ -669,7 +590,7 @@ class SocialPost {
|
|
|
669
590
|
m.scheduled = new Date(proto.scheduled);
|
|
670
591
|
}
|
|
671
592
|
if (proto.status) {
|
|
672
|
-
m.status = enumStringToValue$
|
|
593
|
+
m.status = enumStringToValue$4(PostingStatus, proto.status);
|
|
673
594
|
}
|
|
674
595
|
if (proto.event) {
|
|
675
596
|
m.event = Event.fromProto(proto.event);
|
|
@@ -681,7 +602,7 @@ class SocialPost {
|
|
|
681
602
|
m.error = Error.fromProto(proto.error);
|
|
682
603
|
}
|
|
683
604
|
if (proto.postType) {
|
|
684
|
-
m.postType = enumStringToValue$
|
|
605
|
+
m.postType = enumStringToValue$4(PostType, proto.postType);
|
|
685
606
|
}
|
|
686
607
|
if (proto.mediaEntries) {
|
|
687
608
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -813,6 +734,144 @@ class SocialPostData {
|
|
|
813
734
|
}
|
|
814
735
|
}
|
|
815
736
|
|
|
737
|
+
function enumStringToValue$3(enumRef, value) {
|
|
738
|
+
if (typeof value === 'number') {
|
|
739
|
+
return value;
|
|
740
|
+
}
|
|
741
|
+
return enumRef[value];
|
|
742
|
+
}
|
|
743
|
+
class PixabayImage {
|
|
744
|
+
constructor(kwargs) {
|
|
745
|
+
if (!kwargs) {
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
Object.assign(this, kwargs);
|
|
749
|
+
}
|
|
750
|
+
static fromProto(proto) {
|
|
751
|
+
let m = new PixabayImage();
|
|
752
|
+
m = Object.assign(m, proto);
|
|
753
|
+
if (proto.id) {
|
|
754
|
+
m.id = parseInt(proto.id, 10);
|
|
755
|
+
}
|
|
756
|
+
if (proto.previewWidth) {
|
|
757
|
+
m.previewWidth = parseInt(proto.previewWidth, 10);
|
|
758
|
+
}
|
|
759
|
+
if (proto.previewHeight) {
|
|
760
|
+
m.previewHeight = parseInt(proto.previewHeight, 10);
|
|
761
|
+
}
|
|
762
|
+
if (proto.webformatWidth) {
|
|
763
|
+
m.webformatWidth = parseInt(proto.webformatWidth, 10);
|
|
764
|
+
}
|
|
765
|
+
if (proto.webformatHeight) {
|
|
766
|
+
m.webformatHeight = parseInt(proto.webformatHeight, 10);
|
|
767
|
+
}
|
|
768
|
+
if (proto.imageWidth) {
|
|
769
|
+
m.imageWidth = parseInt(proto.imageWidth, 10);
|
|
770
|
+
}
|
|
771
|
+
if (proto.imageHeight) {
|
|
772
|
+
m.imageHeight = parseInt(proto.imageHeight, 10);
|
|
773
|
+
}
|
|
774
|
+
if (proto.imageSize) {
|
|
775
|
+
m.imageSize = parseInt(proto.imageSize, 10);
|
|
776
|
+
}
|
|
777
|
+
if (proto.views) {
|
|
778
|
+
m.views = parseInt(proto.views, 10);
|
|
779
|
+
}
|
|
780
|
+
if (proto.downloads) {
|
|
781
|
+
m.downloads = parseInt(proto.downloads, 10);
|
|
782
|
+
}
|
|
783
|
+
if (proto.favorites) {
|
|
784
|
+
m.favorites = parseInt(proto.favorites, 10);
|
|
785
|
+
}
|
|
786
|
+
if (proto.likes) {
|
|
787
|
+
m.likes = parseInt(proto.likes, 10);
|
|
788
|
+
}
|
|
789
|
+
if (proto.comments) {
|
|
790
|
+
m.comments = parseInt(proto.comments, 10);
|
|
791
|
+
}
|
|
792
|
+
if (proto.userId) {
|
|
793
|
+
m.userId = parseInt(proto.userId, 10);
|
|
794
|
+
}
|
|
795
|
+
return m;
|
|
796
|
+
}
|
|
797
|
+
toApiJson() {
|
|
798
|
+
const toReturn = {};
|
|
799
|
+
if (typeof this.id !== 'undefined') {
|
|
800
|
+
toReturn['id'] = this.id;
|
|
801
|
+
}
|
|
802
|
+
if (typeof this.pageUrl !== 'undefined') {
|
|
803
|
+
toReturn['pageUrl'] = this.pageUrl;
|
|
804
|
+
}
|
|
805
|
+
if (typeof this.type !== 'undefined') {
|
|
806
|
+
toReturn['type'] = this.type;
|
|
807
|
+
}
|
|
808
|
+
if (typeof this.tags !== 'undefined') {
|
|
809
|
+
toReturn['tags'] = this.tags;
|
|
810
|
+
}
|
|
811
|
+
if (typeof this.previewUrl !== 'undefined') {
|
|
812
|
+
toReturn['previewUrl'] = this.previewUrl;
|
|
813
|
+
}
|
|
814
|
+
if (typeof this.previewWidth !== 'undefined') {
|
|
815
|
+
toReturn['previewWidth'] = this.previewWidth;
|
|
816
|
+
}
|
|
817
|
+
if (typeof this.previewHeight !== 'undefined') {
|
|
818
|
+
toReturn['previewHeight'] = this.previewHeight;
|
|
819
|
+
}
|
|
820
|
+
if (typeof this.webformatUrl !== 'undefined') {
|
|
821
|
+
toReturn['webformatUrl'] = this.webformatUrl;
|
|
822
|
+
}
|
|
823
|
+
if (typeof this.webformatWidth !== 'undefined') {
|
|
824
|
+
toReturn['webformatWidth'] = this.webformatWidth;
|
|
825
|
+
}
|
|
826
|
+
if (typeof this.webformatHeight !== 'undefined') {
|
|
827
|
+
toReturn['webformatHeight'] = this.webformatHeight;
|
|
828
|
+
}
|
|
829
|
+
if (typeof this.largeImageUrl !== 'undefined') {
|
|
830
|
+
toReturn['largeImageUrl'] = this.largeImageUrl;
|
|
831
|
+
}
|
|
832
|
+
if (typeof this.fullHdUrl !== 'undefined') {
|
|
833
|
+
toReturn['fullHdUrl'] = this.fullHdUrl;
|
|
834
|
+
}
|
|
835
|
+
if (typeof this.imageUrl !== 'undefined') {
|
|
836
|
+
toReturn['imageUrl'] = this.imageUrl;
|
|
837
|
+
}
|
|
838
|
+
if (typeof this.imageWidth !== 'undefined') {
|
|
839
|
+
toReturn['imageWidth'] = this.imageWidth;
|
|
840
|
+
}
|
|
841
|
+
if (typeof this.imageHeight !== 'undefined') {
|
|
842
|
+
toReturn['imageHeight'] = this.imageHeight;
|
|
843
|
+
}
|
|
844
|
+
if (typeof this.imageSize !== 'undefined') {
|
|
845
|
+
toReturn['imageSize'] = this.imageSize;
|
|
846
|
+
}
|
|
847
|
+
if (typeof this.views !== 'undefined') {
|
|
848
|
+
toReturn['views'] = this.views;
|
|
849
|
+
}
|
|
850
|
+
if (typeof this.downloads !== 'undefined') {
|
|
851
|
+
toReturn['downloads'] = this.downloads;
|
|
852
|
+
}
|
|
853
|
+
if (typeof this.favorites !== 'undefined') {
|
|
854
|
+
toReturn['favorites'] = this.favorites;
|
|
855
|
+
}
|
|
856
|
+
if (typeof this.likes !== 'undefined') {
|
|
857
|
+
toReturn['likes'] = this.likes;
|
|
858
|
+
}
|
|
859
|
+
if (typeof this.comments !== 'undefined') {
|
|
860
|
+
toReturn['comments'] = this.comments;
|
|
861
|
+
}
|
|
862
|
+
if (typeof this.userId !== 'undefined') {
|
|
863
|
+
toReturn['userId'] = this.userId;
|
|
864
|
+
}
|
|
865
|
+
if (typeof this.user !== 'undefined') {
|
|
866
|
+
toReturn['user'] = this.user;
|
|
867
|
+
}
|
|
868
|
+
if (typeof this.userImageUrl !== 'undefined') {
|
|
869
|
+
toReturn['userImageUrl'] = this.userImageUrl;
|
|
870
|
+
}
|
|
871
|
+
return toReturn;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
816
875
|
function enumStringToValue$2(enumRef, value) {
|
|
817
876
|
if (typeof value === 'number') {
|
|
818
877
|
return value;
|
|
@@ -1138,6 +1197,15 @@ class CreatePostTemplateRequest {
|
|
|
1138
1197
|
if (proto.postDateTime) {
|
|
1139
1198
|
m.postDateTime = new Date(proto.postDateTime);
|
|
1140
1199
|
}
|
|
1200
|
+
if (proto.mediaEntries) {
|
|
1201
|
+
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
1202
|
+
}
|
|
1203
|
+
if (proto.metaData) {
|
|
1204
|
+
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
1205
|
+
}
|
|
1206
|
+
if (proto.postType) {
|
|
1207
|
+
m.postType = enumStringToValue(PostType, proto.postType);
|
|
1208
|
+
}
|
|
1141
1209
|
return m;
|
|
1142
1210
|
}
|
|
1143
1211
|
toApiJson() {
|
|
@@ -1175,6 +1243,15 @@ class CreatePostTemplateRequest {
|
|
|
1175
1243
|
if (typeof this.videoUrl !== 'undefined') {
|
|
1176
1244
|
toReturn['videoUrl'] = this.videoUrl;
|
|
1177
1245
|
}
|
|
1246
|
+
if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
|
|
1247
|
+
toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
|
|
1248
|
+
}
|
|
1249
|
+
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
1250
|
+
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
1251
|
+
}
|
|
1252
|
+
if (typeof this.postType !== 'undefined') {
|
|
1253
|
+
toReturn['postType'] = this.postType;
|
|
1254
|
+
}
|
|
1178
1255
|
return toReturn;
|
|
1179
1256
|
}
|
|
1180
1257
|
}
|
|
@@ -2139,6 +2216,55 @@ class ListTenorGifsResponse {
|
|
|
2139
2216
|
return toReturn;
|
|
2140
2217
|
}
|
|
2141
2218
|
}
|
|
2219
|
+
class MediaUploadRequest {
|
|
2220
|
+
constructor(kwargs) {
|
|
2221
|
+
if (!kwargs) {
|
|
2222
|
+
return;
|
|
2223
|
+
}
|
|
2224
|
+
Object.assign(this, kwargs);
|
|
2225
|
+
}
|
|
2226
|
+
static fromProto(proto) {
|
|
2227
|
+
let m = new MediaUploadRequest();
|
|
2228
|
+
m = Object.assign(m, proto);
|
|
2229
|
+
if (proto.media) {
|
|
2230
|
+
m.media = proto.media.map(Media.fromProto);
|
|
2231
|
+
}
|
|
2232
|
+
return m;
|
|
2233
|
+
}
|
|
2234
|
+
toApiJson() {
|
|
2235
|
+
const toReturn = {};
|
|
2236
|
+
if (typeof this.accessToken !== 'undefined') {
|
|
2237
|
+
toReturn['accessToken'] = this.accessToken;
|
|
2238
|
+
}
|
|
2239
|
+
if (typeof this.owner !== 'undefined') {
|
|
2240
|
+
toReturn['owner'] = this.owner;
|
|
2241
|
+
}
|
|
2242
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
2243
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
2244
|
+
}
|
|
2245
|
+
return toReturn;
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
class MediaUploadResponse {
|
|
2249
|
+
constructor(kwargs) {
|
|
2250
|
+
if (!kwargs) {
|
|
2251
|
+
return;
|
|
2252
|
+
}
|
|
2253
|
+
Object.assign(this, kwargs);
|
|
2254
|
+
}
|
|
2255
|
+
static fromProto(proto) {
|
|
2256
|
+
let m = new MediaUploadResponse();
|
|
2257
|
+
m = Object.assign(m, proto);
|
|
2258
|
+
return m;
|
|
2259
|
+
}
|
|
2260
|
+
toApiJson() {
|
|
2261
|
+
const toReturn = {};
|
|
2262
|
+
if (typeof this.uploadUrn !== 'undefined') {
|
|
2263
|
+
toReturn['uploadUrn'] = this.uploadUrn;
|
|
2264
|
+
}
|
|
2265
|
+
return toReturn;
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2142
2268
|
class PartnerListScheduledPostsResponse {
|
|
2143
2269
|
constructor(kwargs) {
|
|
2144
2270
|
if (!kwargs) {
|
|
@@ -2592,6 +2718,15 @@ class UpdatePostTemplateRequest {
|
|
|
2592
2718
|
if (proto.postDateTime) {
|
|
2593
2719
|
m.postDateTime = new Date(proto.postDateTime);
|
|
2594
2720
|
}
|
|
2721
|
+
if (proto.mediaEntries) {
|
|
2722
|
+
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
2723
|
+
}
|
|
2724
|
+
if (proto.metaData) {
|
|
2725
|
+
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
2726
|
+
}
|
|
2727
|
+
if (proto.postType) {
|
|
2728
|
+
m.postType = enumStringToValue(PostType, proto.postType);
|
|
2729
|
+
}
|
|
2595
2730
|
return m;
|
|
2596
2731
|
}
|
|
2597
2732
|
toApiJson() {
|
|
@@ -2632,6 +2767,15 @@ class UpdatePostTemplateRequest {
|
|
|
2632
2767
|
if (typeof this.videoUrl !== 'undefined') {
|
|
2633
2768
|
toReturn['videoUrl'] = this.videoUrl;
|
|
2634
2769
|
}
|
|
2770
|
+
if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
|
|
2771
|
+
toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
|
|
2772
|
+
}
|
|
2773
|
+
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
2774
|
+
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
2775
|
+
}
|
|
2776
|
+
if (typeof this.postType !== 'undefined') {
|
|
2777
|
+
toReturn['postType'] = this.postType;
|
|
2778
|
+
}
|
|
2635
2779
|
return toReturn;
|
|
2636
2780
|
}
|
|
2637
2781
|
}
|
|
@@ -2763,7 +2907,216 @@ SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", v
|
|
|
2763
2907
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, decorators: [{
|
|
2764
2908
|
type: Injectable,
|
|
2765
2909
|
args: [{ providedIn: 'root' }]
|
|
2766
|
-
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
2910
|
+
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
2911
|
+
|
|
2912
|
+
// *********************************
|
|
2913
|
+
class HashTagsApiService {
|
|
2914
|
+
constructor(http, hostService) {
|
|
2915
|
+
this.http = http;
|
|
2916
|
+
this.hostService = hostService;
|
|
2917
|
+
this._host = this.hostService.hostWithScheme;
|
|
2918
|
+
}
|
|
2919
|
+
apiOptions() {
|
|
2920
|
+
return {
|
|
2921
|
+
headers: new HttpHeaders({
|
|
2922
|
+
'Content-Type': 'application/json'
|
|
2923
|
+
}),
|
|
2924
|
+
withCredentials: true
|
|
2925
|
+
};
|
|
2926
|
+
}
|
|
2927
|
+
replaceHashtags(r) {
|
|
2928
|
+
const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
|
|
2929
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2930
|
+
}
|
|
2931
|
+
deleteHashtags(r) {
|
|
2932
|
+
const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
|
|
2933
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2934
|
+
}
|
|
2935
|
+
searchHashtag(r) {
|
|
2936
|
+
const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
|
|
2937
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
|
|
2938
|
+
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
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 });
|
|
2942
|
+
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
2943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
2944
|
+
type: Injectable,
|
|
2945
|
+
args: [{ providedIn: 'root' }]
|
|
2946
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2947
|
+
|
|
2948
|
+
// *********************************
|
|
2949
|
+
class LinkedinApiService {
|
|
2950
|
+
constructor(http, hostService) {
|
|
2951
|
+
this.http = http;
|
|
2952
|
+
this.hostService = hostService;
|
|
2953
|
+
this._host = this.hostService.hostWithScheme;
|
|
2954
|
+
}
|
|
2955
|
+
apiOptions() {
|
|
2956
|
+
return {
|
|
2957
|
+
headers: new HttpHeaders({
|
|
2958
|
+
'Content-Type': 'application/json'
|
|
2959
|
+
}),
|
|
2960
|
+
withCredentials: true
|
|
2961
|
+
};
|
|
2962
|
+
}
|
|
2963
|
+
uploadMedia(r) {
|
|
2964
|
+
const request = (r.toApiJson) ? r : new MediaUploadRequest(r);
|
|
2965
|
+
return this.http.post(this._host + "/socialposts.v1.Linkedin/UploadMedia", request.toApiJson(), this.apiOptions())
|
|
2966
|
+
.pipe(map(resp => MediaUploadResponse.fromProto(resp)));
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
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 });
|
|
2970
|
+
LinkedinApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, providedIn: 'root' });
|
|
2971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, decorators: [{
|
|
2972
|
+
type: Injectable,
|
|
2973
|
+
args: [{ providedIn: 'root' }]
|
|
2974
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2975
|
+
|
|
2976
|
+
// *********************************
|
|
2977
|
+
class MultilocationPostApiService {
|
|
2978
|
+
constructor(http, hostService) {
|
|
2979
|
+
this.http = http;
|
|
2980
|
+
this.hostService = hostService;
|
|
2981
|
+
this._host = this.hostService.hostWithScheme;
|
|
2982
|
+
}
|
|
2983
|
+
apiOptions() {
|
|
2984
|
+
return {
|
|
2985
|
+
headers: new HttpHeaders({
|
|
2986
|
+
'Content-Type': 'application/json'
|
|
2987
|
+
}),
|
|
2988
|
+
withCredentials: true
|
|
2989
|
+
};
|
|
2990
|
+
}
|
|
2991
|
+
createMultilocationPost(r) {
|
|
2992
|
+
const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
|
|
2993
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2994
|
+
.pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
|
|
2995
|
+
}
|
|
2996
|
+
editMultilocationPost(r) {
|
|
2997
|
+
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
2998
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2999
|
+
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
3000
|
+
}
|
|
3001
|
+
removeFromMultilocationPost(r) {
|
|
3002
|
+
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
3003
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3004
|
+
}
|
|
3005
|
+
listMultilocationPostsForBrand(r) {
|
|
3006
|
+
const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
|
|
3007
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
|
|
3008
|
+
.pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
|
|
3009
|
+
}
|
|
3010
|
+
deleteMultilocationPost(r) {
|
|
3011
|
+
const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
|
|
3012
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3013
|
+
}
|
|
3014
|
+
getMultilocationPost(r) {
|
|
3015
|
+
const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
|
|
3016
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
3017
|
+
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
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 });
|
|
3021
|
+
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
3022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
3023
|
+
type: Injectable,
|
|
3024
|
+
args: [{ providedIn: 'root' }]
|
|
3025
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3026
|
+
|
|
3027
|
+
// *********************************
|
|
3028
|
+
class PartnerSocialPostsApiService {
|
|
3029
|
+
constructor(http, hostService) {
|
|
3030
|
+
this.http = http;
|
|
3031
|
+
this.hostService = hostService;
|
|
3032
|
+
this._host = this.hostService.hostWithScheme;
|
|
3033
|
+
}
|
|
3034
|
+
apiOptions() {
|
|
3035
|
+
return {
|
|
3036
|
+
headers: new HttpHeaders({
|
|
3037
|
+
'Content-Type': 'application/json'
|
|
3038
|
+
}),
|
|
3039
|
+
withCredentials: true
|
|
3040
|
+
};
|
|
3041
|
+
}
|
|
3042
|
+
listScheduled(r) {
|
|
3043
|
+
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3044
|
+
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
|
|
3045
|
+
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3046
|
+
}
|
|
3047
|
+
listScheduledByCreated(r) {
|
|
3048
|
+
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3049
|
+
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
|
|
3050
|
+
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
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 });
|
|
3054
|
+
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
3056
|
+
type: Injectable,
|
|
3057
|
+
args: [{ providedIn: 'root' }]
|
|
3058
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3059
|
+
|
|
3060
|
+
// *********************************
|
|
3061
|
+
class PixabayImagesApiService {
|
|
3062
|
+
constructor(http, hostService) {
|
|
3063
|
+
this.http = http;
|
|
3064
|
+
this.hostService = hostService;
|
|
3065
|
+
this._host = this.hostService.hostWithScheme;
|
|
3066
|
+
}
|
|
3067
|
+
apiOptions() {
|
|
3068
|
+
return {
|
|
3069
|
+
headers: new HttpHeaders({
|
|
3070
|
+
'Content-Type': 'application/json'
|
|
3071
|
+
}),
|
|
3072
|
+
withCredentials: true
|
|
3073
|
+
};
|
|
3074
|
+
}
|
|
3075
|
+
listPixabayImages(r) {
|
|
3076
|
+
const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
|
|
3077
|
+
return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
|
|
3078
|
+
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
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 });
|
|
3082
|
+
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
3083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
3084
|
+
type: Injectable,
|
|
3085
|
+
args: [{ providedIn: 'root' }]
|
|
3086
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3087
|
+
|
|
3088
|
+
// *********************************
|
|
3089
|
+
class PostPerformanceApiService {
|
|
3090
|
+
constructor(http, hostService) {
|
|
3091
|
+
this.http = http;
|
|
3092
|
+
this.hostService = hostService;
|
|
3093
|
+
this._host = this.hostService.hostWithScheme;
|
|
3094
|
+
}
|
|
3095
|
+
apiOptions() {
|
|
3096
|
+
return {
|
|
3097
|
+
headers: new HttpHeaders({
|
|
3098
|
+
'Content-Type': 'application/json'
|
|
3099
|
+
}),
|
|
3100
|
+
withCredentials: true
|
|
3101
|
+
};
|
|
3102
|
+
}
|
|
3103
|
+
generateCsvForPerformanceStats(r) {
|
|
3104
|
+
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3105
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3106
|
+
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3107
|
+
}
|
|
3108
|
+
getGeneratedCsvForPerformanceStats(r) {
|
|
3109
|
+
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3110
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3111
|
+
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
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 });
|
|
3115
|
+
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3117
|
+
type: Injectable,
|
|
3118
|
+
args: [{ providedIn: 'root' }]
|
|
3119
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2767
3120
|
|
|
2768
3121
|
// *********************************
|
|
2769
3122
|
class PostTemplatesApiService {
|
|
@@ -2811,11 +3164,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2811
3164
|
args: [{ providedIn: 'root' }]
|
|
2812
3165
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2813
3166
|
|
|
3167
|
+
// *********************************
|
|
3168
|
+
class TenorGifsApiService {
|
|
3169
|
+
constructor(http, hostService) {
|
|
3170
|
+
this.http = http;
|
|
3171
|
+
this.hostService = hostService;
|
|
3172
|
+
this._host = this.hostService.hostWithScheme;
|
|
3173
|
+
}
|
|
3174
|
+
apiOptions() {
|
|
3175
|
+
return {
|
|
3176
|
+
headers: new HttpHeaders({
|
|
3177
|
+
'Content-Type': 'application/json'
|
|
3178
|
+
}),
|
|
3179
|
+
withCredentials: true
|
|
3180
|
+
};
|
|
3181
|
+
}
|
|
3182
|
+
getTenorAnonymousId(r) {
|
|
3183
|
+
const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
|
|
3184
|
+
return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
|
|
3185
|
+
.pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
|
|
3186
|
+
}
|
|
3187
|
+
listTenorGifs(r) {
|
|
3188
|
+
const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
|
|
3189
|
+
return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
|
|
3190
|
+
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
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 });
|
|
3194
|
+
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
3195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
3196
|
+
type: Injectable,
|
|
3197
|
+
args: [{ providedIn: 'root' }]
|
|
3198
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3199
|
+
|
|
3200
|
+
// *********************************
|
|
3201
|
+
|
|
2814
3202
|
class PostTemplatesService {
|
|
2815
3203
|
constructor(socialPostsApiService) {
|
|
2816
3204
|
this.socialPostsApiService = socialPostsApiService;
|
|
2817
3205
|
}
|
|
2818
|
-
updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl) {
|
|
3206
|
+
updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
|
|
2819
3207
|
const req = new UpdatePostTemplateRequest({
|
|
2820
3208
|
accountGroupId: accountGroupId,
|
|
2821
3209
|
templateId: templateId,
|
|
@@ -2828,11 +3216,14 @@ class PostTemplatesService {
|
|
|
2828
3216
|
imageSize: imageSize,
|
|
2829
3217
|
previews: previews,
|
|
2830
3218
|
options: options,
|
|
2831
|
-
videoUrl: videoUrl
|
|
3219
|
+
videoUrl: videoUrl,
|
|
3220
|
+
postType: postType || PostType.POST_TYPE_INVALID,
|
|
3221
|
+
mediaEntries: mediaEntries,
|
|
3222
|
+
metaData: metadata,
|
|
2832
3223
|
});
|
|
2833
3224
|
return this.socialPostsApiService.updatePostTemplate(req);
|
|
2834
3225
|
}
|
|
2835
|
-
createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl) {
|
|
3226
|
+
createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
|
|
2836
3227
|
const req = new CreatePostTemplateRequest({
|
|
2837
3228
|
accountGroupId: accountGroupId,
|
|
2838
3229
|
title: title,
|
|
@@ -2844,7 +3235,10 @@ class PostTemplatesService {
|
|
|
2844
3235
|
imageSize: imageSize,
|
|
2845
3236
|
previews: previews,
|
|
2846
3237
|
options: options,
|
|
2847
|
-
videoUrl: videoUrl
|
|
3238
|
+
videoUrl: videoUrl,
|
|
3239
|
+
postType: postType || PostType.POST_TYPE_INVALID,
|
|
3240
|
+
mediaEntries: mediaEntries,
|
|
3241
|
+
metaData: metadata,
|
|
2848
3242
|
});
|
|
2849
3243
|
return this.socialPostsApiService.createPostTemplate(req);
|
|
2850
3244
|
}
|
|
@@ -2878,57 +3272,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2878
3272
|
args: [{ providedIn: 'root' }]
|
|
2879
3273
|
}], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
|
|
2880
3274
|
|
|
2881
|
-
// *********************************
|
|
2882
|
-
class MultilocationPostApiService {
|
|
2883
|
-
constructor(http, hostService) {
|
|
2884
|
-
this.http = http;
|
|
2885
|
-
this.hostService = hostService;
|
|
2886
|
-
this._host = this.hostService.hostWithScheme;
|
|
2887
|
-
}
|
|
2888
|
-
apiOptions() {
|
|
2889
|
-
return {
|
|
2890
|
-
headers: new HttpHeaders({
|
|
2891
|
-
'Content-Type': 'application/json'
|
|
2892
|
-
}),
|
|
2893
|
-
withCredentials: true
|
|
2894
|
-
};
|
|
2895
|
-
}
|
|
2896
|
-
createMultilocationPost(r) {
|
|
2897
|
-
const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
|
|
2898
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2899
|
-
.pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
|
|
2900
|
-
}
|
|
2901
|
-
editMultilocationPost(r) {
|
|
2902
|
-
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
2903
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2904
|
-
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
2905
|
-
}
|
|
2906
|
-
removeFromMultilocationPost(r) {
|
|
2907
|
-
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
2908
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2909
|
-
}
|
|
2910
|
-
listMultilocationPostsForBrand(r) {
|
|
2911
|
-
const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
|
|
2912
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
|
|
2913
|
-
.pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
|
|
2914
|
-
}
|
|
2915
|
-
deleteMultilocationPost(r) {
|
|
2916
|
-
const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
|
|
2917
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2918
|
-
}
|
|
2919
|
-
getMultilocationPost(r) {
|
|
2920
|
-
const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
|
|
2921
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2922
|
-
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
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 });
|
|
2926
|
-
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
2927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
2928
|
-
type: Injectable,
|
|
2929
|
-
args: [{ providedIn: 'root' }]
|
|
2930
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2931
|
-
|
|
2932
3275
|
class MultilocationPostsService {
|
|
2933
3276
|
constructor(multilocationApiService) {
|
|
2934
3277
|
this.multilocationApiService = multilocationApiService;
|
|
@@ -3000,39 +3343,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3000
3343
|
args: [{ providedIn: 'root' }]
|
|
3001
3344
|
}], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
|
|
3002
3345
|
|
|
3003
|
-
// *********************************
|
|
3004
|
-
class TenorGifsApiService {
|
|
3005
|
-
constructor(http, hostService) {
|
|
3006
|
-
this.http = http;
|
|
3007
|
-
this.hostService = hostService;
|
|
3008
|
-
this._host = this.hostService.hostWithScheme;
|
|
3009
|
-
}
|
|
3010
|
-
apiOptions() {
|
|
3011
|
-
return {
|
|
3012
|
-
headers: new HttpHeaders({
|
|
3013
|
-
'Content-Type': 'application/json'
|
|
3014
|
-
}),
|
|
3015
|
-
withCredentials: true
|
|
3016
|
-
};
|
|
3017
|
-
}
|
|
3018
|
-
getTenorAnonymousId(r) {
|
|
3019
|
-
const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
|
|
3020
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
|
|
3021
|
-
.pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
|
|
3022
|
-
}
|
|
3023
|
-
listTenorGifs(r) {
|
|
3024
|
-
const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
|
|
3025
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
|
|
3026
|
-
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
3027
|
-
}
|
|
3028
|
-
}
|
|
3029
|
-
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 });
|
|
3030
|
-
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
3031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
3032
|
-
type: Injectable,
|
|
3033
|
-
args: [{ providedIn: 'root' }]
|
|
3034
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3035
|
-
|
|
3036
3346
|
class TenorGifsService {
|
|
3037
3347
|
constructor(tenorGifsApiService) {
|
|
3038
3348
|
this.tenorGifsApiService = tenorGifsApiService;
|
|
@@ -3062,34 +3372,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3062
3372
|
args: [{ providedIn: 'root' }]
|
|
3063
3373
|
}], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
|
|
3064
3374
|
|
|
3065
|
-
// *********************************
|
|
3066
|
-
class PixabayImagesApiService {
|
|
3067
|
-
constructor(http, hostService) {
|
|
3068
|
-
this.http = http;
|
|
3069
|
-
this.hostService = hostService;
|
|
3070
|
-
this._host = this.hostService.hostWithScheme;
|
|
3071
|
-
}
|
|
3072
|
-
apiOptions() {
|
|
3073
|
-
return {
|
|
3074
|
-
headers: new HttpHeaders({
|
|
3075
|
-
'Content-Type': 'application/json'
|
|
3076
|
-
}),
|
|
3077
|
-
withCredentials: true
|
|
3078
|
-
};
|
|
3079
|
-
}
|
|
3080
|
-
listPixabayImages(r) {
|
|
3081
|
-
const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
|
|
3082
|
-
return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
|
|
3083
|
-
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3086
|
-
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 });
|
|
3087
|
-
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
3088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
3089
|
-
type: Injectable,
|
|
3090
|
-
args: [{ providedIn: 'root' }]
|
|
3091
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3092
|
-
|
|
3093
3375
|
class PixabayImageService {
|
|
3094
3376
|
constructor(pixabayApiService) {
|
|
3095
3377
|
this.pixabayApiService = pixabayApiService;
|
|
@@ -3108,42 +3390,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3108
3390
|
args: [{ providedIn: 'root' }]
|
|
3109
3391
|
}], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
|
|
3110
3392
|
|
|
3111
|
-
// *********************************
|
|
3112
|
-
class HashTagsApiService {
|
|
3113
|
-
constructor(http, hostService) {
|
|
3114
|
-
this.http = http;
|
|
3115
|
-
this.hostService = hostService;
|
|
3116
|
-
this._host = this.hostService.hostWithScheme;
|
|
3117
|
-
}
|
|
3118
|
-
apiOptions() {
|
|
3119
|
-
return {
|
|
3120
|
-
headers: new HttpHeaders({
|
|
3121
|
-
'Content-Type': 'application/json'
|
|
3122
|
-
}),
|
|
3123
|
-
withCredentials: true
|
|
3124
|
-
};
|
|
3125
|
-
}
|
|
3126
|
-
replaceHashtags(r) {
|
|
3127
|
-
const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
|
|
3128
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3129
|
-
}
|
|
3130
|
-
deleteHashtags(r) {
|
|
3131
|
-
const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
|
|
3132
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3133
|
-
}
|
|
3134
|
-
searchHashtag(r) {
|
|
3135
|
-
const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
|
|
3136
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
|
|
3137
|
-
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
3138
|
-
}
|
|
3139
|
-
}
|
|
3140
|
-
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 });
|
|
3141
|
-
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
3142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
3143
|
-
type: Injectable,
|
|
3144
|
-
args: [{ providedIn: 'root' }]
|
|
3145
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3146
|
-
|
|
3147
3393
|
class HashTagsService {
|
|
3148
3394
|
constructor(hashTagsApiService) {
|
|
3149
3395
|
this.hashTagsApiService = hashTagsApiService;
|
|
@@ -3181,39 +3427,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3181
3427
|
args: [{ providedIn: 'root' }]
|
|
3182
3428
|
}], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
|
|
3183
3429
|
|
|
3184
|
-
// *********************************
|
|
3185
|
-
class PostPerformanceApiService {
|
|
3186
|
-
constructor(http, hostService) {
|
|
3187
|
-
this.http = http;
|
|
3188
|
-
this.hostService = hostService;
|
|
3189
|
-
this._host = this.hostService.hostWithScheme;
|
|
3190
|
-
}
|
|
3191
|
-
apiOptions() {
|
|
3192
|
-
return {
|
|
3193
|
-
headers: new HttpHeaders({
|
|
3194
|
-
'Content-Type': 'application/json'
|
|
3195
|
-
}),
|
|
3196
|
-
withCredentials: true
|
|
3197
|
-
};
|
|
3198
|
-
}
|
|
3199
|
-
generateCsvForPerformanceStats(r) {
|
|
3200
|
-
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3201
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3202
|
-
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3203
|
-
}
|
|
3204
|
-
getGeneratedCsvForPerformanceStats(r) {
|
|
3205
|
-
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3206
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3207
|
-
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3208
|
-
}
|
|
3209
|
-
}
|
|
3210
|
-
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 });
|
|
3211
|
-
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3213
|
-
type: Injectable,
|
|
3214
|
-
args: [{ providedIn: 'root' }]
|
|
3215
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3216
|
-
|
|
3217
3430
|
class PostPerformanceService {
|
|
3218
3431
|
constructor(postPerformanceApiService) {
|
|
3219
3432
|
this.postPerformanceApiService = postPerformanceApiService;
|
|
@@ -3234,41 +3447,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3234
3447
|
args: [{ providedIn: 'root' }]
|
|
3235
3448
|
}], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
|
|
3236
3449
|
|
|
3237
|
-
// *********************************
|
|
3238
|
-
class PartnerSocialPostsApiService {
|
|
3239
|
-
constructor(http, hostService) {
|
|
3240
|
-
this.http = http;
|
|
3241
|
-
this.hostService = hostService;
|
|
3242
|
-
this._host = this.hostService.hostWithScheme;
|
|
3243
|
-
}
|
|
3244
|
-
apiOptions() {
|
|
3245
|
-
return {
|
|
3246
|
-
headers: new HttpHeaders({
|
|
3247
|
-
'Content-Type': 'application/json'
|
|
3248
|
-
}),
|
|
3249
|
-
withCredentials: true
|
|
3250
|
-
};
|
|
3251
|
-
}
|
|
3252
|
-
listScheduled(r) {
|
|
3253
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3254
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
|
|
3255
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3256
|
-
}
|
|
3257
|
-
listScheduledByCreated(r) {
|
|
3258
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3259
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
|
|
3260
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3261
|
-
}
|
|
3262
|
-
}
|
|
3263
|
-
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 });
|
|
3264
|
-
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
3266
|
-
type: Injectable,
|
|
3267
|
-
args: [{ providedIn: 'root' }]
|
|
3268
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3269
|
-
|
|
3270
|
-
// *********************************
|
|
3271
|
-
|
|
3272
3450
|
/**
|
|
3273
3451
|
* Generated bundle index. Do not edit.
|
|
3274
3452
|
*/
|