@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
|
}
|
|
@@ -558,55 +393,141 @@ class MediaEntry {
|
|
|
558
393
|
if (!kwargs) {
|
|
559
394
|
return;
|
|
560
395
|
}
|
|
561
|
-
Object.assign(this, kwargs);
|
|
562
|
-
}
|
|
563
|
-
static fromProto(proto) {
|
|
564
|
-
let m = new MediaEntry();
|
|
565
|
-
m = Object.assign(m, proto);
|
|
566
|
-
if (proto.metaData) {
|
|
567
|
-
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
396
|
+
Object.assign(this, kwargs);
|
|
397
|
+
}
|
|
398
|
+
static fromProto(proto) {
|
|
399
|
+
let m = new MediaEntry();
|
|
400
|
+
m = Object.assign(m, proto);
|
|
401
|
+
if (proto.metaData) {
|
|
402
|
+
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
403
|
+
}
|
|
404
|
+
return m;
|
|
405
|
+
}
|
|
406
|
+
toApiJson() {
|
|
407
|
+
const toReturn = {};
|
|
408
|
+
if (typeof this.mediaEntryId !== 'undefined') {
|
|
409
|
+
toReturn['mediaEntryId'] = this.mediaEntryId;
|
|
410
|
+
}
|
|
411
|
+
if (typeof this.mediaUrl !== 'undefined') {
|
|
412
|
+
toReturn['mediaUrl'] = this.mediaUrl;
|
|
413
|
+
}
|
|
414
|
+
if (typeof this.mediaType !== 'undefined') {
|
|
415
|
+
toReturn['mediaType'] = this.mediaType;
|
|
416
|
+
}
|
|
417
|
+
if (typeof this.containerId !== 'undefined') {
|
|
418
|
+
toReturn['containerId'] = this.containerId;
|
|
419
|
+
}
|
|
420
|
+
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
421
|
+
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
422
|
+
}
|
|
423
|
+
return toReturn;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
class MetaData {
|
|
427
|
+
constructor(kwargs) {
|
|
428
|
+
if (!kwargs) {
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
Object.assign(this, kwargs);
|
|
432
|
+
}
|
|
433
|
+
static fromProto(proto) {
|
|
434
|
+
let m = new MetaData();
|
|
435
|
+
m = Object.assign(m, proto);
|
|
436
|
+
return m;
|
|
437
|
+
}
|
|
438
|
+
toApiJson() {
|
|
439
|
+
const toReturn = {};
|
|
440
|
+
if (typeof this.propertyName !== 'undefined') {
|
|
441
|
+
toReturn['propertyName'] = this.propertyName;
|
|
442
|
+
}
|
|
443
|
+
if (typeof this.propertyValue !== 'undefined') {
|
|
444
|
+
toReturn['propertyValue'] = this.propertyValue;
|
|
445
|
+
}
|
|
446
|
+
return toReturn;
|
|
447
|
+
}
|
|
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;
|
|
568
510
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
toApiJson() {
|
|
572
|
-
const toReturn = {};
|
|
573
|
-
if (typeof this.mediaEntryId !== 'undefined') {
|
|
574
|
-
toReturn['mediaEntryId'] = this.mediaEntryId;
|
|
511
|
+
if (typeof this.imageSize !== 'undefined') {
|
|
512
|
+
toReturn['imageSize'] = this.imageSize;
|
|
575
513
|
}
|
|
576
|
-
if (typeof this.
|
|
577
|
-
toReturn['
|
|
514
|
+
if (typeof this.previews !== 'undefined') {
|
|
515
|
+
toReturn['previews'] = this.previews;
|
|
578
516
|
}
|
|
579
|
-
if (typeof this.
|
|
580
|
-
toReturn['
|
|
517
|
+
if (typeof this.options !== 'undefined') {
|
|
518
|
+
toReturn['options'] = this.options;
|
|
581
519
|
}
|
|
582
|
-
if (typeof this.
|
|
583
|
-
toReturn['
|
|
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;
|
|
584
525
|
}
|
|
585
526
|
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
586
527
|
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
587
528
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
}
|
|
591
|
-
class MetaData {
|
|
592
|
-
constructor(kwargs) {
|
|
593
|
-
if (!kwargs) {
|
|
594
|
-
return;
|
|
595
|
-
}
|
|
596
|
-
Object.assign(this, kwargs);
|
|
597
|
-
}
|
|
598
|
-
static fromProto(proto) {
|
|
599
|
-
let m = new MetaData();
|
|
600
|
-
m = Object.assign(m, proto);
|
|
601
|
-
return m;
|
|
602
|
-
}
|
|
603
|
-
toApiJson() {
|
|
604
|
-
const toReturn = {};
|
|
605
|
-
if (typeof this.propertyName !== 'undefined') {
|
|
606
|
-
toReturn['propertyName'] = this.propertyName;
|
|
607
|
-
}
|
|
608
|
-
if (typeof this.propertyValue !== 'undefined') {
|
|
609
|
-
toReturn['propertyValue'] = this.propertyValue;
|
|
529
|
+
if (typeof this.postType !== 'undefined') {
|
|
530
|
+
toReturn['postType'] = this.postType;
|
|
610
531
|
}
|
|
611
532
|
return toReturn;
|
|
612
533
|
}
|
|
@@ -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
|
}
|
|
@@ -2765,7 +2909,262 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2765
2909
|
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
2766
2910
|
|
|
2767
2911
|
// *********************************
|
|
2768
|
-
class PostTemplatesApiService {
|
|
2912
|
+
class PostTemplatesApiService {
|
|
2913
|
+
constructor(http, hostService) {
|
|
2914
|
+
this.http = http;
|
|
2915
|
+
this.hostService = hostService;
|
|
2916
|
+
this._host = this.hostService.hostWithScheme;
|
|
2917
|
+
}
|
|
2918
|
+
apiOptions() {
|
|
2919
|
+
return {
|
|
2920
|
+
headers: new HttpHeaders({
|
|
2921
|
+
'Content-Type': 'application/json'
|
|
2922
|
+
}),
|
|
2923
|
+
withCredentials: true
|
|
2924
|
+
};
|
|
2925
|
+
}
|
|
2926
|
+
updatePostTemplate(r) {
|
|
2927
|
+
const request = (r.toApiJson) ? r : new UpdatePostTemplateRequest(r);
|
|
2928
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/UpdatePostTemplate", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2929
|
+
}
|
|
2930
|
+
createPostTemplate(r) {
|
|
2931
|
+
const request = (r.toApiJson) ? r : new CreatePostTemplateRequest(r);
|
|
2932
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/CreatePostTemplate", request.toApiJson(), this.apiOptions())
|
|
2933
|
+
.pipe(map(resp => CreatePostTemplateResponse.fromProto(resp)));
|
|
2934
|
+
}
|
|
2935
|
+
getPostTemplate(r) {
|
|
2936
|
+
const request = (r.toApiJson) ? r : new GetPostTemplateRequest(r);
|
|
2937
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/GetPostTemplate", request.toApiJson(), this.apiOptions())
|
|
2938
|
+
.pipe(map(resp => GetPostTemplateResponse.fromProto(resp)));
|
|
2939
|
+
}
|
|
2940
|
+
listPostTemplates(r) {
|
|
2941
|
+
const request = (r.toApiJson) ? r : new ListPostTemplatesRequest(r);
|
|
2942
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/ListPostTemplates", request.toApiJson(), this.apiOptions())
|
|
2943
|
+
.pipe(map(resp => ListPostTemplatesResponse.fromProto(resp)));
|
|
2944
|
+
}
|
|
2945
|
+
deletePostTemplate(r) {
|
|
2946
|
+
const request = (r.toApiJson) ? r : new DeletePostTemplateRequest(r);
|
|
2947
|
+
return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
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 });
|
|
2951
|
+
PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
|
|
2952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, decorators: [{
|
|
2953
|
+
type: Injectable,
|
|
2954
|
+
args: [{ providedIn: 'root' }]
|
|
2955
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2956
|
+
|
|
2957
|
+
// *********************************
|
|
2958
|
+
class HashTagsApiService {
|
|
2959
|
+
constructor(http, hostService) {
|
|
2960
|
+
this.http = http;
|
|
2961
|
+
this.hostService = hostService;
|
|
2962
|
+
this._host = this.hostService.hostWithScheme;
|
|
2963
|
+
}
|
|
2964
|
+
apiOptions() {
|
|
2965
|
+
return {
|
|
2966
|
+
headers: new HttpHeaders({
|
|
2967
|
+
'Content-Type': 'application/json'
|
|
2968
|
+
}),
|
|
2969
|
+
withCredentials: true
|
|
2970
|
+
};
|
|
2971
|
+
}
|
|
2972
|
+
replaceHashtags(r) {
|
|
2973
|
+
const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
|
|
2974
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2975
|
+
}
|
|
2976
|
+
deleteHashtags(r) {
|
|
2977
|
+
const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
|
|
2978
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2979
|
+
}
|
|
2980
|
+
searchHashtag(r) {
|
|
2981
|
+
const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
|
|
2982
|
+
return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
|
|
2983
|
+
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
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 });
|
|
2987
|
+
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
2988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
2989
|
+
type: Injectable,
|
|
2990
|
+
args: [{ providedIn: 'root' }]
|
|
2991
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2992
|
+
|
|
2993
|
+
// *********************************
|
|
2994
|
+
class LinkedinApiService {
|
|
2995
|
+
constructor(http, hostService) {
|
|
2996
|
+
this.http = http;
|
|
2997
|
+
this.hostService = hostService;
|
|
2998
|
+
this._host = this.hostService.hostWithScheme;
|
|
2999
|
+
}
|
|
3000
|
+
apiOptions() {
|
|
3001
|
+
return {
|
|
3002
|
+
headers: new HttpHeaders({
|
|
3003
|
+
'Content-Type': 'application/json'
|
|
3004
|
+
}),
|
|
3005
|
+
withCredentials: true
|
|
3006
|
+
};
|
|
3007
|
+
}
|
|
3008
|
+
uploadMedia(r) {
|
|
3009
|
+
const request = (r.toApiJson) ? r : new MediaUploadRequest(r);
|
|
3010
|
+
return this.http.post(this._host + "/socialposts.v1.Linkedin/UploadMedia", request.toApiJson(), this.apiOptions())
|
|
3011
|
+
.pipe(map(resp => MediaUploadResponse.fromProto(resp)));
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
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 });
|
|
3015
|
+
LinkedinApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, providedIn: 'root' });
|
|
3016
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkedinApiService, decorators: [{
|
|
3017
|
+
type: Injectable,
|
|
3018
|
+
args: [{ providedIn: 'root' }]
|
|
3019
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3020
|
+
|
|
3021
|
+
// *********************************
|
|
3022
|
+
class MultilocationPostApiService {
|
|
3023
|
+
constructor(http, hostService) {
|
|
3024
|
+
this.http = http;
|
|
3025
|
+
this.hostService = hostService;
|
|
3026
|
+
this._host = this.hostService.hostWithScheme;
|
|
3027
|
+
}
|
|
3028
|
+
apiOptions() {
|
|
3029
|
+
return {
|
|
3030
|
+
headers: new HttpHeaders({
|
|
3031
|
+
'Content-Type': 'application/json'
|
|
3032
|
+
}),
|
|
3033
|
+
withCredentials: true
|
|
3034
|
+
};
|
|
3035
|
+
}
|
|
3036
|
+
createMultilocationPost(r) {
|
|
3037
|
+
const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
|
|
3038
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
3039
|
+
.pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
|
|
3040
|
+
}
|
|
3041
|
+
editMultilocationPost(r) {
|
|
3042
|
+
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
3043
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
3044
|
+
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
3045
|
+
}
|
|
3046
|
+
removeFromMultilocationPost(r) {
|
|
3047
|
+
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
3048
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3049
|
+
}
|
|
3050
|
+
listMultilocationPostsForBrand(r) {
|
|
3051
|
+
const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
|
|
3052
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
|
|
3053
|
+
.pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
|
|
3054
|
+
}
|
|
3055
|
+
deleteMultilocationPost(r) {
|
|
3056
|
+
const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
|
|
3057
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3058
|
+
}
|
|
3059
|
+
getMultilocationPost(r) {
|
|
3060
|
+
const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
|
|
3061
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
3062
|
+
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
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 });
|
|
3066
|
+
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
3067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
3068
|
+
type: Injectable,
|
|
3069
|
+
args: [{ providedIn: 'root' }]
|
|
3070
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3071
|
+
|
|
3072
|
+
// *********************************
|
|
3073
|
+
class PartnerSocialPostsApiService {
|
|
3074
|
+
constructor(http, hostService) {
|
|
3075
|
+
this.http = http;
|
|
3076
|
+
this.hostService = hostService;
|
|
3077
|
+
this._host = this.hostService.hostWithScheme;
|
|
3078
|
+
}
|
|
3079
|
+
apiOptions() {
|
|
3080
|
+
return {
|
|
3081
|
+
headers: new HttpHeaders({
|
|
3082
|
+
'Content-Type': 'application/json'
|
|
3083
|
+
}),
|
|
3084
|
+
withCredentials: true
|
|
3085
|
+
};
|
|
3086
|
+
}
|
|
3087
|
+
listScheduled(r) {
|
|
3088
|
+
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3089
|
+
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
|
|
3090
|
+
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3091
|
+
}
|
|
3092
|
+
listScheduledByCreated(r) {
|
|
3093
|
+
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3094
|
+
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
|
|
3095
|
+
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
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 });
|
|
3099
|
+
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
3101
|
+
type: Injectable,
|
|
3102
|
+
args: [{ providedIn: 'root' }]
|
|
3103
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3104
|
+
|
|
3105
|
+
// *********************************
|
|
3106
|
+
class PixabayImagesApiService {
|
|
3107
|
+
constructor(http, hostService) {
|
|
3108
|
+
this.http = http;
|
|
3109
|
+
this.hostService = hostService;
|
|
3110
|
+
this._host = this.hostService.hostWithScheme;
|
|
3111
|
+
}
|
|
3112
|
+
apiOptions() {
|
|
3113
|
+
return {
|
|
3114
|
+
headers: new HttpHeaders({
|
|
3115
|
+
'Content-Type': 'application/json'
|
|
3116
|
+
}),
|
|
3117
|
+
withCredentials: true
|
|
3118
|
+
};
|
|
3119
|
+
}
|
|
3120
|
+
listPixabayImages(r) {
|
|
3121
|
+
const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
|
|
3122
|
+
return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
|
|
3123
|
+
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
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 });
|
|
3127
|
+
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
3128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
3129
|
+
type: Injectable,
|
|
3130
|
+
args: [{ providedIn: 'root' }]
|
|
3131
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3132
|
+
|
|
3133
|
+
// *********************************
|
|
3134
|
+
class PostPerformanceApiService {
|
|
3135
|
+
constructor(http, hostService) {
|
|
3136
|
+
this.http = http;
|
|
3137
|
+
this.hostService = hostService;
|
|
3138
|
+
this._host = this.hostService.hostWithScheme;
|
|
3139
|
+
}
|
|
3140
|
+
apiOptions() {
|
|
3141
|
+
return {
|
|
3142
|
+
headers: new HttpHeaders({
|
|
3143
|
+
'Content-Type': 'application/json'
|
|
3144
|
+
}),
|
|
3145
|
+
withCredentials: true
|
|
3146
|
+
};
|
|
3147
|
+
}
|
|
3148
|
+
generateCsvForPerformanceStats(r) {
|
|
3149
|
+
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3150
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3151
|
+
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3152
|
+
}
|
|
3153
|
+
getGeneratedCsvForPerformanceStats(r) {
|
|
3154
|
+
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3155
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3156
|
+
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
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 });
|
|
3160
|
+
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3162
|
+
type: Injectable,
|
|
3163
|
+
args: [{ providedIn: 'root' }]
|
|
3164
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3165
|
+
|
|
3166
|
+
// *********************************
|
|
3167
|
+
class TenorGifsApiService {
|
|
2769
3168
|
constructor(http, hostService) {
|
|
2770
3169
|
this.http = http;
|
|
2771
3170
|
this.hostService = hostService;
|
|
@@ -2779,42 +3178,31 @@ class PostTemplatesApiService {
|
|
|
2779
3178
|
withCredentials: true
|
|
2780
3179
|
};
|
|
2781
3180
|
}
|
|
2782
|
-
|
|
2783
|
-
const request = (r.toApiJson) ? r : new
|
|
2784
|
-
return this.http.post(this._host + "/socialposts.v1.
|
|
2785
|
-
|
|
2786
|
-
createPostTemplate(r) {
|
|
2787
|
-
const request = (r.toApiJson) ? r : new CreatePostTemplateRequest(r);
|
|
2788
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/CreatePostTemplate", request.toApiJson(), this.apiOptions())
|
|
2789
|
-
.pipe(map(resp => CreatePostTemplateResponse.fromProto(resp)));
|
|
2790
|
-
}
|
|
2791
|
-
getPostTemplate(r) {
|
|
2792
|
-
const request = (r.toApiJson) ? r : new GetPostTemplateRequest(r);
|
|
2793
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/GetPostTemplate", request.toApiJson(), this.apiOptions())
|
|
2794
|
-
.pipe(map(resp => GetPostTemplateResponse.fromProto(resp)));
|
|
2795
|
-
}
|
|
2796
|
-
listPostTemplates(r) {
|
|
2797
|
-
const request = (r.toApiJson) ? r : new ListPostTemplatesRequest(r);
|
|
2798
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/ListPostTemplates", request.toApiJson(), this.apiOptions())
|
|
2799
|
-
.pipe(map(resp => ListPostTemplatesResponse.fromProto(resp)));
|
|
3181
|
+
getTenorAnonymousId(r) {
|
|
3182
|
+
const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
|
|
3183
|
+
return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
|
|
3184
|
+
.pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
|
|
2800
3185
|
}
|
|
2801
|
-
|
|
2802
|
-
const request = (r.toApiJson) ? r : new
|
|
2803
|
-
return this.http.post(this._host + "/socialposts.v1.
|
|
3186
|
+
listTenorGifs(r) {
|
|
3187
|
+
const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
|
|
3188
|
+
return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
|
|
3189
|
+
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
2804
3190
|
}
|
|
2805
3191
|
}
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type:
|
|
3192
|
+
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 });
|
|
3193
|
+
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
3194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
2809
3195
|
type: Injectable,
|
|
2810
3196
|
args: [{ providedIn: 'root' }]
|
|
2811
3197
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2812
3198
|
|
|
3199
|
+
// *********************************
|
|
3200
|
+
|
|
2813
3201
|
class PostTemplatesService {
|
|
2814
3202
|
constructor(socialPostsApiService) {
|
|
2815
3203
|
this.socialPostsApiService = socialPostsApiService;
|
|
2816
3204
|
}
|
|
2817
|
-
updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl) {
|
|
3205
|
+
updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
|
|
2818
3206
|
const req = new UpdatePostTemplateRequest({
|
|
2819
3207
|
accountGroupId: accountGroupId,
|
|
2820
3208
|
templateId: templateId,
|
|
@@ -2827,11 +3215,14 @@ class PostTemplatesService {
|
|
|
2827
3215
|
imageSize: imageSize,
|
|
2828
3216
|
previews: previews,
|
|
2829
3217
|
options: options,
|
|
2830
|
-
videoUrl: videoUrl
|
|
3218
|
+
videoUrl: videoUrl,
|
|
3219
|
+
postType: postType || PostType.POST_TYPE_INVALID,
|
|
3220
|
+
mediaEntries: mediaEntries,
|
|
3221
|
+
metaData: metadata,
|
|
2831
3222
|
});
|
|
2832
3223
|
return this.socialPostsApiService.updatePostTemplate(req);
|
|
2833
3224
|
}
|
|
2834
|
-
createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl) {
|
|
3225
|
+
createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
|
|
2835
3226
|
const req = new CreatePostTemplateRequest({
|
|
2836
3227
|
accountGroupId: accountGroupId,
|
|
2837
3228
|
title: title,
|
|
@@ -2843,7 +3234,10 @@ class PostTemplatesService {
|
|
|
2843
3234
|
imageSize: imageSize,
|
|
2844
3235
|
previews: previews,
|
|
2845
3236
|
options: options,
|
|
2846
|
-
videoUrl: videoUrl
|
|
3237
|
+
videoUrl: videoUrl,
|
|
3238
|
+
postType: postType || PostType.POST_TYPE_INVALID,
|
|
3239
|
+
mediaEntries: mediaEntries,
|
|
3240
|
+
metaData: metadata,
|
|
2847
3241
|
});
|
|
2848
3242
|
return this.socialPostsApiService.createPostTemplate(req);
|
|
2849
3243
|
}
|
|
@@ -2877,57 +3271,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2877
3271
|
args: [{ providedIn: 'root' }]
|
|
2878
3272
|
}], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
|
|
2879
3273
|
|
|
2880
|
-
// *********************************
|
|
2881
|
-
class MultilocationPostApiService {
|
|
2882
|
-
constructor(http, hostService) {
|
|
2883
|
-
this.http = http;
|
|
2884
|
-
this.hostService = hostService;
|
|
2885
|
-
this._host = this.hostService.hostWithScheme;
|
|
2886
|
-
}
|
|
2887
|
-
apiOptions() {
|
|
2888
|
-
return {
|
|
2889
|
-
headers: new HttpHeaders({
|
|
2890
|
-
'Content-Type': 'application/json'
|
|
2891
|
-
}),
|
|
2892
|
-
withCredentials: true
|
|
2893
|
-
};
|
|
2894
|
-
}
|
|
2895
|
-
createMultilocationPost(r) {
|
|
2896
|
-
const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
|
|
2897
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2898
|
-
.pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
|
|
2899
|
-
}
|
|
2900
|
-
editMultilocationPost(r) {
|
|
2901
|
-
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
2902
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2903
|
-
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
2904
|
-
}
|
|
2905
|
-
removeFromMultilocationPost(r) {
|
|
2906
|
-
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
2907
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2908
|
-
}
|
|
2909
|
-
listMultilocationPostsForBrand(r) {
|
|
2910
|
-
const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
|
|
2911
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
|
|
2912
|
-
.pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
|
|
2913
|
-
}
|
|
2914
|
-
deleteMultilocationPost(r) {
|
|
2915
|
-
const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
|
|
2916
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2917
|
-
}
|
|
2918
|
-
getMultilocationPost(r) {
|
|
2919
|
-
const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
|
|
2920
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2921
|
-
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
2922
|
-
}
|
|
2923
|
-
}
|
|
2924
|
-
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 });
|
|
2925
|
-
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
2926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
2927
|
-
type: Injectable,
|
|
2928
|
-
args: [{ providedIn: 'root' }]
|
|
2929
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2930
|
-
|
|
2931
3274
|
class MultilocationPostsService {
|
|
2932
3275
|
constructor(multilocationApiService) {
|
|
2933
3276
|
this.multilocationApiService = multilocationApiService;
|
|
@@ -2999,39 +3342,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2999
3342
|
args: [{ providedIn: 'root' }]
|
|
3000
3343
|
}], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
|
|
3001
3344
|
|
|
3002
|
-
// *********************************
|
|
3003
|
-
class TenorGifsApiService {
|
|
3004
|
-
constructor(http, hostService) {
|
|
3005
|
-
this.http = http;
|
|
3006
|
-
this.hostService = hostService;
|
|
3007
|
-
this._host = this.hostService.hostWithScheme;
|
|
3008
|
-
}
|
|
3009
|
-
apiOptions() {
|
|
3010
|
-
return {
|
|
3011
|
-
headers: new HttpHeaders({
|
|
3012
|
-
'Content-Type': 'application/json'
|
|
3013
|
-
}),
|
|
3014
|
-
withCredentials: true
|
|
3015
|
-
};
|
|
3016
|
-
}
|
|
3017
|
-
getTenorAnonymousId(r) {
|
|
3018
|
-
const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
|
|
3019
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
|
|
3020
|
-
.pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
|
|
3021
|
-
}
|
|
3022
|
-
listTenorGifs(r) {
|
|
3023
|
-
const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
|
|
3024
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
|
|
3025
|
-
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
3026
|
-
}
|
|
3027
|
-
}
|
|
3028
|
-
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 });
|
|
3029
|
-
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
3030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
3031
|
-
type: Injectable,
|
|
3032
|
-
args: [{ providedIn: 'root' }]
|
|
3033
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3034
|
-
|
|
3035
3345
|
class TenorGifsService {
|
|
3036
3346
|
constructor(tenorGifsApiService) {
|
|
3037
3347
|
this.tenorGifsApiService = tenorGifsApiService;
|
|
@@ -3061,34 +3371,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3061
3371
|
args: [{ providedIn: 'root' }]
|
|
3062
3372
|
}], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
|
|
3063
3373
|
|
|
3064
|
-
// *********************************
|
|
3065
|
-
class PixabayImagesApiService {
|
|
3066
|
-
constructor(http, hostService) {
|
|
3067
|
-
this.http = http;
|
|
3068
|
-
this.hostService = hostService;
|
|
3069
|
-
this._host = this.hostService.hostWithScheme;
|
|
3070
|
-
}
|
|
3071
|
-
apiOptions() {
|
|
3072
|
-
return {
|
|
3073
|
-
headers: new HttpHeaders({
|
|
3074
|
-
'Content-Type': 'application/json'
|
|
3075
|
-
}),
|
|
3076
|
-
withCredentials: true
|
|
3077
|
-
};
|
|
3078
|
-
}
|
|
3079
|
-
listPixabayImages(r) {
|
|
3080
|
-
const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
|
|
3081
|
-
return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
|
|
3082
|
-
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
3083
|
-
}
|
|
3084
|
-
}
|
|
3085
|
-
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 });
|
|
3086
|
-
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
3087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
3088
|
-
type: Injectable,
|
|
3089
|
-
args: [{ providedIn: 'root' }]
|
|
3090
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3091
|
-
|
|
3092
3374
|
class PixabayImageService {
|
|
3093
3375
|
constructor(pixabayApiService) {
|
|
3094
3376
|
this.pixabayApiService = pixabayApiService;
|
|
@@ -3107,42 +3389,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3107
3389
|
args: [{ providedIn: 'root' }]
|
|
3108
3390
|
}], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
|
|
3109
3391
|
|
|
3110
|
-
// *********************************
|
|
3111
|
-
class HashTagsApiService {
|
|
3112
|
-
constructor(http, hostService) {
|
|
3113
|
-
this.http = http;
|
|
3114
|
-
this.hostService = hostService;
|
|
3115
|
-
this._host = this.hostService.hostWithScheme;
|
|
3116
|
-
}
|
|
3117
|
-
apiOptions() {
|
|
3118
|
-
return {
|
|
3119
|
-
headers: new HttpHeaders({
|
|
3120
|
-
'Content-Type': 'application/json'
|
|
3121
|
-
}),
|
|
3122
|
-
withCredentials: true
|
|
3123
|
-
};
|
|
3124
|
-
}
|
|
3125
|
-
replaceHashtags(r) {
|
|
3126
|
-
const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
|
|
3127
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3128
|
-
}
|
|
3129
|
-
deleteHashtags(r) {
|
|
3130
|
-
const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
|
|
3131
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3132
|
-
}
|
|
3133
|
-
searchHashtag(r) {
|
|
3134
|
-
const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
|
|
3135
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
|
|
3136
|
-
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
3139
|
-
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 });
|
|
3140
|
-
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
3141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
3142
|
-
type: Injectable,
|
|
3143
|
-
args: [{ providedIn: 'root' }]
|
|
3144
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3145
|
-
|
|
3146
3392
|
class HashTagsService {
|
|
3147
3393
|
constructor(hashTagsApiService) {
|
|
3148
3394
|
this.hashTagsApiService = hashTagsApiService;
|
|
@@ -3180,39 +3426,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3180
3426
|
args: [{ providedIn: 'root' }]
|
|
3181
3427
|
}], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
|
|
3182
3428
|
|
|
3183
|
-
// *********************************
|
|
3184
|
-
class PostPerformanceApiService {
|
|
3185
|
-
constructor(http, hostService) {
|
|
3186
|
-
this.http = http;
|
|
3187
|
-
this.hostService = hostService;
|
|
3188
|
-
this._host = this.hostService.hostWithScheme;
|
|
3189
|
-
}
|
|
3190
|
-
apiOptions() {
|
|
3191
|
-
return {
|
|
3192
|
-
headers: new HttpHeaders({
|
|
3193
|
-
'Content-Type': 'application/json'
|
|
3194
|
-
}),
|
|
3195
|
-
withCredentials: true
|
|
3196
|
-
};
|
|
3197
|
-
}
|
|
3198
|
-
generateCsvForPerformanceStats(r) {
|
|
3199
|
-
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3200
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3201
|
-
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3202
|
-
}
|
|
3203
|
-
getGeneratedCsvForPerformanceStats(r) {
|
|
3204
|
-
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3205
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3206
|
-
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3207
|
-
}
|
|
3208
|
-
}
|
|
3209
|
-
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 });
|
|
3210
|
-
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3212
|
-
type: Injectable,
|
|
3213
|
-
args: [{ providedIn: 'root' }]
|
|
3214
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3215
|
-
|
|
3216
3429
|
class PostPerformanceService {
|
|
3217
3430
|
constructor(postPerformanceApiService) {
|
|
3218
3431
|
this.postPerformanceApiService = postPerformanceApiService;
|
|
@@ -3233,41 +3446,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3233
3446
|
args: [{ providedIn: 'root' }]
|
|
3234
3447
|
}], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
|
|
3235
3448
|
|
|
3236
|
-
// *********************************
|
|
3237
|
-
class PartnerSocialPostsApiService {
|
|
3238
|
-
constructor(http, hostService) {
|
|
3239
|
-
this.http = http;
|
|
3240
|
-
this.hostService = hostService;
|
|
3241
|
-
this._host = this.hostService.hostWithScheme;
|
|
3242
|
-
}
|
|
3243
|
-
apiOptions() {
|
|
3244
|
-
return {
|
|
3245
|
-
headers: new HttpHeaders({
|
|
3246
|
-
'Content-Type': 'application/json'
|
|
3247
|
-
}),
|
|
3248
|
-
withCredentials: true
|
|
3249
|
-
};
|
|
3250
|
-
}
|
|
3251
|
-
listScheduled(r) {
|
|
3252
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3253
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
|
|
3254
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3255
|
-
}
|
|
3256
|
-
listScheduledByCreated(r) {
|
|
3257
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3258
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
|
|
3259
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3260
|
-
}
|
|
3261
|
-
}
|
|
3262
|
-
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 });
|
|
3263
|
-
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
3265
|
-
type: Injectable,
|
|
3266
|
-
args: [{ providedIn: 'root' }]
|
|
3267
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3268
|
-
|
|
3269
|
-
// *********************************
|
|
3270
|
-
|
|
3271
3449
|
/**
|
|
3272
3450
|
* Generated bundle index. Do not edit.
|
|
3273
3451
|
*/
|