@vendasta/social-posts 5.5.0 → 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/enums/social-posts.enum.mjs +10 -1
- 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 +163 -1
- package/esm2020/lib/post-templates.service.mjs +12 -5
- package/fesm2015/vendasta-social-posts.mjs +715 -452
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +753 -490
- 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/enums/social-posts.enum.d.ts +8 -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 +33 -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 +42 -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
|
|
@@ -426,6 +240,15 @@ var PostLength;
|
|
|
426
240
|
PostLength[PostLength["SHORT_FORM"] = 0] = "SHORT_FORM";
|
|
427
241
|
PostLength[PostLength["LONG_FORM"] = 1] = "LONG_FORM";
|
|
428
242
|
})(PostLength || (PostLength = {}));
|
|
243
|
+
var PostType;
|
|
244
|
+
(function (PostType) {
|
|
245
|
+
PostType[PostType["POST_TYPE_INVALID"] = 0] = "POST_TYPE_INVALID";
|
|
246
|
+
PostType[PostType["POST_TYPE_IMAGE"] = 1] = "POST_TYPE_IMAGE";
|
|
247
|
+
PostType[PostType["POST_TYPE_VIDEO"] = 2] = "POST_TYPE_VIDEO";
|
|
248
|
+
PostType[PostType["POST_TYPE_GIF"] = 3] = "POST_TYPE_GIF";
|
|
249
|
+
PostType[PostType["POST_TYPE_REEL"] = 4] = "POST_TYPE_REEL";
|
|
250
|
+
PostType[PostType["POST_TYPE_CAROUSEL"] = 5] = "POST_TYPE_CAROUSEL";
|
|
251
|
+
})(PostType || (PostType = {}));
|
|
429
252
|
var PostingStatus;
|
|
430
253
|
(function (PostingStatus) {
|
|
431
254
|
PostingStatus[PostingStatus["POSTING_IN_PROGRESS"] = 0] = "POSTING_IN_PROGRESS";
|
|
@@ -444,20 +267,41 @@ var SocialPostService;
|
|
|
444
267
|
})(SocialPostService || (SocialPostService = {}));
|
|
445
268
|
|
|
446
269
|
// *********************************
|
|
447
|
-
// Code generated by sdkgen
|
|
448
|
-
// DO NOT EDIT!.
|
|
449
|
-
//
|
|
450
|
-
// Enums.
|
|
451
|
-
// *********************************
|
|
452
|
-
var RemoveReason;
|
|
453
|
-
(function (RemoveReason) {
|
|
454
|
-
RemoveReason[RemoveReason["REMOVE_REASON_EDIT"] = 0] = "REMOVE_REASON_EDIT";
|
|
455
|
-
RemoveReason[RemoveReason["REMOVE_REASON_DELETE"] = 1] = "REMOVE_REASON_DELETE";
|
|
456
|
-
})(RemoveReason || (RemoveReason = {}));
|
|
457
270
|
|
|
458
|
-
|
|
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
|
+
}
|
|
459
303
|
|
|
460
|
-
function enumStringToValue$
|
|
304
|
+
function enumStringToValue$4(enumRef, value) {
|
|
461
305
|
if (typeof value === 'number') {
|
|
462
306
|
return value;
|
|
463
307
|
}
|
|
@@ -474,7 +318,7 @@ class CallToAction {
|
|
|
474
318
|
let m = new CallToAction();
|
|
475
319
|
m = Object.assign(m, proto);
|
|
476
320
|
if (proto.actionType) {
|
|
477
|
-
m.actionType = enumStringToValue$
|
|
321
|
+
m.actionType = enumStringToValue$4(CallToActionCallToActionType, proto.actionType);
|
|
478
322
|
}
|
|
479
323
|
return m;
|
|
480
324
|
}
|
|
@@ -544,6 +388,150 @@ class Event {
|
|
|
544
388
|
return toReturn;
|
|
545
389
|
}
|
|
546
390
|
}
|
|
391
|
+
class MediaEntry {
|
|
392
|
+
constructor(kwargs) {
|
|
393
|
+
if (!kwargs) {
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
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;
|
|
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
|
+
}
|
|
547
535
|
class SchedulePostStatus {
|
|
548
536
|
constructor(kwargs) {
|
|
549
537
|
if (!kwargs) {
|
|
@@ -590,10 +578,10 @@ class SocialPost {
|
|
|
590
578
|
m.posted = new Date(proto.posted);
|
|
591
579
|
}
|
|
592
580
|
if (proto.deletionStatus) {
|
|
593
|
-
m.deletionStatus = enumStringToValue$
|
|
581
|
+
m.deletionStatus = enumStringToValue$4(SocialPostDeletionStatus, proto.deletionStatus);
|
|
594
582
|
}
|
|
595
583
|
if (proto.service) {
|
|
596
|
-
m.service = enumStringToValue$
|
|
584
|
+
m.service = enumStringToValue$4(SocialPostService, proto.service);
|
|
597
585
|
}
|
|
598
586
|
if (proto.created) {
|
|
599
587
|
m.created = new Date(proto.created);
|
|
@@ -602,7 +590,7 @@ class SocialPost {
|
|
|
602
590
|
m.scheduled = new Date(proto.scheduled);
|
|
603
591
|
}
|
|
604
592
|
if (proto.status) {
|
|
605
|
-
m.status = enumStringToValue$
|
|
593
|
+
m.status = enumStringToValue$4(PostingStatus, proto.status);
|
|
606
594
|
}
|
|
607
595
|
if (proto.event) {
|
|
608
596
|
m.event = Event.fromProto(proto.event);
|
|
@@ -613,6 +601,15 @@ class SocialPost {
|
|
|
613
601
|
if (proto.error) {
|
|
614
602
|
m.error = Error.fromProto(proto.error);
|
|
615
603
|
}
|
|
604
|
+
if (proto.postType) {
|
|
605
|
+
m.postType = enumStringToValue$4(PostType, proto.postType);
|
|
606
|
+
}
|
|
607
|
+
if (proto.mediaEntries) {
|
|
608
|
+
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
609
|
+
}
|
|
610
|
+
if (proto.metaData) {
|
|
611
|
+
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
612
|
+
}
|
|
616
613
|
return m;
|
|
617
614
|
}
|
|
618
615
|
toApiJson() {
|
|
@@ -695,6 +692,15 @@ class SocialPost {
|
|
|
695
692
|
if (typeof this.multilocationPostId !== 'undefined') {
|
|
696
693
|
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
697
694
|
}
|
|
695
|
+
if (typeof this.postType !== 'undefined') {
|
|
696
|
+
toReturn['postType'] = this.postType;
|
|
697
|
+
}
|
|
698
|
+
if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
|
|
699
|
+
toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
|
|
700
|
+
}
|
|
701
|
+
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
702
|
+
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
703
|
+
}
|
|
698
704
|
return toReturn;
|
|
699
705
|
}
|
|
700
706
|
}
|
|
@@ -718,11 +724,149 @@ class SocialPostData {
|
|
|
718
724
|
if (typeof this.postText !== 'undefined') {
|
|
719
725
|
toReturn['postText'] = this.postText;
|
|
720
726
|
}
|
|
721
|
-
if (typeof this.imageUrl !== 'undefined') {
|
|
722
|
-
toReturn['imageUrl'] = this.imageUrl;
|
|
727
|
+
if (typeof this.imageUrl !== 'undefined') {
|
|
728
|
+
toReturn['imageUrl'] = this.imageUrl;
|
|
729
|
+
}
|
|
730
|
+
if (typeof this.scheduleFor !== 'undefined' && this.scheduleFor !== null) {
|
|
731
|
+
toReturn['scheduleFor'] = 'toApiJson' in this.scheduleFor ? this.scheduleFor.toApiJson() : this.scheduleFor;
|
|
732
|
+
}
|
|
733
|
+
return toReturn;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
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;
|
|
723
867
|
}
|
|
724
|
-
if (typeof this.
|
|
725
|
-
toReturn['
|
|
868
|
+
if (typeof this.userImageUrl !== 'undefined') {
|
|
869
|
+
toReturn['userImageUrl'] = this.userImageUrl;
|
|
726
870
|
}
|
|
727
871
|
return toReturn;
|
|
728
872
|
}
|
|
@@ -1053,6 +1197,15 @@ class CreatePostTemplateRequest {
|
|
|
1053
1197
|
if (proto.postDateTime) {
|
|
1054
1198
|
m.postDateTime = new Date(proto.postDateTime);
|
|
1055
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
|
+
}
|
|
1056
1209
|
return m;
|
|
1057
1210
|
}
|
|
1058
1211
|
toApiJson() {
|
|
@@ -1090,6 +1243,15 @@ class CreatePostTemplateRequest {
|
|
|
1090
1243
|
if (typeof this.videoUrl !== 'undefined') {
|
|
1091
1244
|
toReturn['videoUrl'] = this.videoUrl;
|
|
1092
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
|
+
}
|
|
1093
1255
|
return toReturn;
|
|
1094
1256
|
}
|
|
1095
1257
|
}
|
|
@@ -2054,6 +2216,55 @@ class ListTenorGifsResponse {
|
|
|
2054
2216
|
return toReturn;
|
|
2055
2217
|
}
|
|
2056
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
|
+
}
|
|
2057
2268
|
class PartnerListScheduledPostsResponse {
|
|
2058
2269
|
constructor(kwargs) {
|
|
2059
2270
|
if (!kwargs) {
|
|
@@ -2507,6 +2718,15 @@ class UpdatePostTemplateRequest {
|
|
|
2507
2718
|
if (proto.postDateTime) {
|
|
2508
2719
|
m.postDateTime = new Date(proto.postDateTime);
|
|
2509
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
|
+
}
|
|
2510
2730
|
return m;
|
|
2511
2731
|
}
|
|
2512
2732
|
toApiJson() {
|
|
@@ -2547,6 +2767,15 @@ class UpdatePostTemplateRequest {
|
|
|
2547
2767
|
if (typeof this.videoUrl !== 'undefined') {
|
|
2548
2768
|
toReturn['videoUrl'] = this.videoUrl;
|
|
2549
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
|
+
}
|
|
2550
2779
|
return toReturn;
|
|
2551
2780
|
}
|
|
2552
2781
|
}
|
|
@@ -2678,7 +2907,216 @@ SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", v
|
|
|
2678
2907
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, decorators: [{
|
|
2679
2908
|
type: Injectable,
|
|
2680
2909
|
args: [{ providedIn: 'root' }]
|
|
2681
|
-
}], 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 }]; } });
|
|
2682
3120
|
|
|
2683
3121
|
// *********************************
|
|
2684
3122
|
class PostTemplatesApiService {
|
|
@@ -2726,11 +3164,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2726
3164
|
args: [{ providedIn: 'root' }]
|
|
2727
3165
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2728
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
|
+
|
|
2729
3202
|
class PostTemplatesService {
|
|
2730
3203
|
constructor(socialPostsApiService) {
|
|
2731
3204
|
this.socialPostsApiService = socialPostsApiService;
|
|
2732
3205
|
}
|
|
2733
|
-
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) {
|
|
2734
3207
|
const req = new UpdatePostTemplateRequest({
|
|
2735
3208
|
accountGroupId: accountGroupId,
|
|
2736
3209
|
templateId: templateId,
|
|
@@ -2743,11 +3216,14 @@ class PostTemplatesService {
|
|
|
2743
3216
|
imageSize: imageSize,
|
|
2744
3217
|
previews: previews,
|
|
2745
3218
|
options: options,
|
|
2746
|
-
videoUrl: videoUrl
|
|
3219
|
+
videoUrl: videoUrl,
|
|
3220
|
+
postType: postType || PostType.POST_TYPE_INVALID,
|
|
3221
|
+
mediaEntries: mediaEntries,
|
|
3222
|
+
metaData: metadata,
|
|
2747
3223
|
});
|
|
2748
3224
|
return this.socialPostsApiService.updatePostTemplate(req);
|
|
2749
3225
|
}
|
|
2750
|
-
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) {
|
|
2751
3227
|
const req = new CreatePostTemplateRequest({
|
|
2752
3228
|
accountGroupId: accountGroupId,
|
|
2753
3229
|
title: title,
|
|
@@ -2759,7 +3235,10 @@ class PostTemplatesService {
|
|
|
2759
3235
|
imageSize: imageSize,
|
|
2760
3236
|
previews: previews,
|
|
2761
3237
|
options: options,
|
|
2762
|
-
videoUrl: videoUrl
|
|
3238
|
+
videoUrl: videoUrl,
|
|
3239
|
+
postType: postType || PostType.POST_TYPE_INVALID,
|
|
3240
|
+
mediaEntries: mediaEntries,
|
|
3241
|
+
metaData: metadata,
|
|
2763
3242
|
});
|
|
2764
3243
|
return this.socialPostsApiService.createPostTemplate(req);
|
|
2765
3244
|
}
|
|
@@ -2793,57 +3272,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2793
3272
|
args: [{ providedIn: 'root' }]
|
|
2794
3273
|
}], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
|
|
2795
3274
|
|
|
2796
|
-
// *********************************
|
|
2797
|
-
class MultilocationPostApiService {
|
|
2798
|
-
constructor(http, hostService) {
|
|
2799
|
-
this.http = http;
|
|
2800
|
-
this.hostService = hostService;
|
|
2801
|
-
this._host = this.hostService.hostWithScheme;
|
|
2802
|
-
}
|
|
2803
|
-
apiOptions() {
|
|
2804
|
-
return {
|
|
2805
|
-
headers: new HttpHeaders({
|
|
2806
|
-
'Content-Type': 'application/json'
|
|
2807
|
-
}),
|
|
2808
|
-
withCredentials: true
|
|
2809
|
-
};
|
|
2810
|
-
}
|
|
2811
|
-
createMultilocationPost(r) {
|
|
2812
|
-
const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
|
|
2813
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2814
|
-
.pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
|
|
2815
|
-
}
|
|
2816
|
-
editMultilocationPost(r) {
|
|
2817
|
-
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
2818
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2819
|
-
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
2820
|
-
}
|
|
2821
|
-
removeFromMultilocationPost(r) {
|
|
2822
|
-
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
2823
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2824
|
-
}
|
|
2825
|
-
listMultilocationPostsForBrand(r) {
|
|
2826
|
-
const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
|
|
2827
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
|
|
2828
|
-
.pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
|
|
2829
|
-
}
|
|
2830
|
-
deleteMultilocationPost(r) {
|
|
2831
|
-
const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
|
|
2832
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2833
|
-
}
|
|
2834
|
-
getMultilocationPost(r) {
|
|
2835
|
-
const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
|
|
2836
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2837
|
-
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
2838
|
-
}
|
|
2839
|
-
}
|
|
2840
|
-
MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2841
|
-
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
2842
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
2843
|
-
type: Injectable,
|
|
2844
|
-
args: [{ providedIn: 'root' }]
|
|
2845
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2846
|
-
|
|
2847
3275
|
class MultilocationPostsService {
|
|
2848
3276
|
constructor(multilocationApiService) {
|
|
2849
3277
|
this.multilocationApiService = multilocationApiService;
|
|
@@ -2915,39 +3343,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2915
3343
|
args: [{ providedIn: 'root' }]
|
|
2916
3344
|
}], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
|
|
2917
3345
|
|
|
2918
|
-
// *********************************
|
|
2919
|
-
class TenorGifsApiService {
|
|
2920
|
-
constructor(http, hostService) {
|
|
2921
|
-
this.http = http;
|
|
2922
|
-
this.hostService = hostService;
|
|
2923
|
-
this._host = this.hostService.hostWithScheme;
|
|
2924
|
-
}
|
|
2925
|
-
apiOptions() {
|
|
2926
|
-
return {
|
|
2927
|
-
headers: new HttpHeaders({
|
|
2928
|
-
'Content-Type': 'application/json'
|
|
2929
|
-
}),
|
|
2930
|
-
withCredentials: true
|
|
2931
|
-
};
|
|
2932
|
-
}
|
|
2933
|
-
getTenorAnonymousId(r) {
|
|
2934
|
-
const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
|
|
2935
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
|
|
2936
|
-
.pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
|
|
2937
|
-
}
|
|
2938
|
-
listTenorGifs(r) {
|
|
2939
|
-
const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
|
|
2940
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
|
|
2941
|
-
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2945
|
-
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
2946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
2947
|
-
type: Injectable,
|
|
2948
|
-
args: [{ providedIn: 'root' }]
|
|
2949
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2950
|
-
|
|
2951
3346
|
class TenorGifsService {
|
|
2952
3347
|
constructor(tenorGifsApiService) {
|
|
2953
3348
|
this.tenorGifsApiService = tenorGifsApiService;
|
|
@@ -2977,34 +3372,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2977
3372
|
args: [{ providedIn: 'root' }]
|
|
2978
3373
|
}], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
|
|
2979
3374
|
|
|
2980
|
-
// *********************************
|
|
2981
|
-
class PixabayImagesApiService {
|
|
2982
|
-
constructor(http, hostService) {
|
|
2983
|
-
this.http = http;
|
|
2984
|
-
this.hostService = hostService;
|
|
2985
|
-
this._host = this.hostService.hostWithScheme;
|
|
2986
|
-
}
|
|
2987
|
-
apiOptions() {
|
|
2988
|
-
return {
|
|
2989
|
-
headers: new HttpHeaders({
|
|
2990
|
-
'Content-Type': 'application/json'
|
|
2991
|
-
}),
|
|
2992
|
-
withCredentials: true
|
|
2993
|
-
};
|
|
2994
|
-
}
|
|
2995
|
-
listPixabayImages(r) {
|
|
2996
|
-
const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
|
|
2997
|
-
return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
|
|
2998
|
-
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
2999
|
-
}
|
|
3000
|
-
}
|
|
3001
|
-
PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3002
|
-
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
3003
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
3004
|
-
type: Injectable,
|
|
3005
|
-
args: [{ providedIn: 'root' }]
|
|
3006
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3007
|
-
|
|
3008
3375
|
class PixabayImageService {
|
|
3009
3376
|
constructor(pixabayApiService) {
|
|
3010
3377
|
this.pixabayApiService = pixabayApiService;
|
|
@@ -3023,42 +3390,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3023
3390
|
args: [{ providedIn: 'root' }]
|
|
3024
3391
|
}], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
|
|
3025
3392
|
|
|
3026
|
-
// *********************************
|
|
3027
|
-
class HashTagsApiService {
|
|
3028
|
-
constructor(http, hostService) {
|
|
3029
|
-
this.http = http;
|
|
3030
|
-
this.hostService = hostService;
|
|
3031
|
-
this._host = this.hostService.hostWithScheme;
|
|
3032
|
-
}
|
|
3033
|
-
apiOptions() {
|
|
3034
|
-
return {
|
|
3035
|
-
headers: new HttpHeaders({
|
|
3036
|
-
'Content-Type': 'application/json'
|
|
3037
|
-
}),
|
|
3038
|
-
withCredentials: true
|
|
3039
|
-
};
|
|
3040
|
-
}
|
|
3041
|
-
replaceHashtags(r) {
|
|
3042
|
-
const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
|
|
3043
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3044
|
-
}
|
|
3045
|
-
deleteHashtags(r) {
|
|
3046
|
-
const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
|
|
3047
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3048
|
-
}
|
|
3049
|
-
searchHashtag(r) {
|
|
3050
|
-
const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
|
|
3051
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
|
|
3052
|
-
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
3053
|
-
}
|
|
3054
|
-
}
|
|
3055
|
-
HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3056
|
-
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
3057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
3058
|
-
type: Injectable,
|
|
3059
|
-
args: [{ providedIn: 'root' }]
|
|
3060
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3061
|
-
|
|
3062
3393
|
class HashTagsService {
|
|
3063
3394
|
constructor(hashTagsApiService) {
|
|
3064
3395
|
this.hashTagsApiService = hashTagsApiService;
|
|
@@ -3096,39 +3427,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3096
3427
|
args: [{ providedIn: 'root' }]
|
|
3097
3428
|
}], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
|
|
3098
3429
|
|
|
3099
|
-
// *********************************
|
|
3100
|
-
class PostPerformanceApiService {
|
|
3101
|
-
constructor(http, hostService) {
|
|
3102
|
-
this.http = http;
|
|
3103
|
-
this.hostService = hostService;
|
|
3104
|
-
this._host = this.hostService.hostWithScheme;
|
|
3105
|
-
}
|
|
3106
|
-
apiOptions() {
|
|
3107
|
-
return {
|
|
3108
|
-
headers: new HttpHeaders({
|
|
3109
|
-
'Content-Type': 'application/json'
|
|
3110
|
-
}),
|
|
3111
|
-
withCredentials: true
|
|
3112
|
-
};
|
|
3113
|
-
}
|
|
3114
|
-
generateCsvForPerformanceStats(r) {
|
|
3115
|
-
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3116
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3117
|
-
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3118
|
-
}
|
|
3119
|
-
getGeneratedCsvForPerformanceStats(r) {
|
|
3120
|
-
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3121
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3122
|
-
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3123
|
-
}
|
|
3124
|
-
}
|
|
3125
|
-
PostPerformanceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3126
|
-
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3128
|
-
type: Injectable,
|
|
3129
|
-
args: [{ providedIn: 'root' }]
|
|
3130
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3131
|
-
|
|
3132
3430
|
class PostPerformanceService {
|
|
3133
3431
|
constructor(postPerformanceApiService) {
|
|
3134
3432
|
this.postPerformanceApiService = postPerformanceApiService;
|
|
@@ -3149,41 +3447,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3149
3447
|
args: [{ providedIn: 'root' }]
|
|
3150
3448
|
}], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
|
|
3151
3449
|
|
|
3152
|
-
// *********************************
|
|
3153
|
-
class PartnerSocialPostsApiService {
|
|
3154
|
-
constructor(http, hostService) {
|
|
3155
|
-
this.http = http;
|
|
3156
|
-
this.hostService = hostService;
|
|
3157
|
-
this._host = this.hostService.hostWithScheme;
|
|
3158
|
-
}
|
|
3159
|
-
apiOptions() {
|
|
3160
|
-
return {
|
|
3161
|
-
headers: new HttpHeaders({
|
|
3162
|
-
'Content-Type': 'application/json'
|
|
3163
|
-
}),
|
|
3164
|
-
withCredentials: true
|
|
3165
|
-
};
|
|
3166
|
-
}
|
|
3167
|
-
listScheduled(r) {
|
|
3168
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3169
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
|
|
3170
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3171
|
-
}
|
|
3172
|
-
listScheduledByCreated(r) {
|
|
3173
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3174
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
|
|
3175
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3176
|
-
}
|
|
3177
|
-
}
|
|
3178
|
-
PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3179
|
-
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
3181
|
-
type: Injectable,
|
|
3182
|
-
args: [{ providedIn: 'root' }]
|
|
3183
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3184
|
-
|
|
3185
|
-
// *********************************
|
|
3186
|
-
|
|
3187
3450
|
/**
|
|
3188
3451
|
* Generated bundle index. Do not edit.
|
|
3189
3452
|
*/
|