@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
|
}
|
|
@@ -483,13 +327,103 @@ class CallToAction {
|
|
|
483
327
|
if (typeof this.url !== 'undefined') {
|
|
484
328
|
toReturn['url'] = this.url;
|
|
485
329
|
}
|
|
486
|
-
if (typeof this.actionType !== 'undefined') {
|
|
487
|
-
toReturn['actionType'] = this.actionType;
|
|
330
|
+
if (typeof this.actionType !== 'undefined') {
|
|
331
|
+
toReturn['actionType'] = this.actionType;
|
|
332
|
+
}
|
|
333
|
+
return toReturn;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
class Error {
|
|
337
|
+
constructor(kwargs) {
|
|
338
|
+
if (!kwargs) {
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
Object.assign(this, kwargs);
|
|
342
|
+
}
|
|
343
|
+
static fromProto(proto) {
|
|
344
|
+
let m = new Error();
|
|
345
|
+
m = Object.assign(m, proto);
|
|
346
|
+
return m;
|
|
347
|
+
}
|
|
348
|
+
toApiJson() {
|
|
349
|
+
const toReturn = {};
|
|
350
|
+
if (typeof this.reason !== 'undefined') {
|
|
351
|
+
toReturn['reason'] = this.reason;
|
|
352
|
+
}
|
|
353
|
+
if (typeof this.category !== 'undefined') {
|
|
354
|
+
toReturn['category'] = this.category;
|
|
355
|
+
}
|
|
356
|
+
return toReturn;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
class Event {
|
|
360
|
+
constructor(kwargs) {
|
|
361
|
+
if (!kwargs) {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
Object.assign(this, kwargs);
|
|
365
|
+
}
|
|
366
|
+
static fromProto(proto) {
|
|
367
|
+
let m = new Event();
|
|
368
|
+
m = Object.assign(m, proto);
|
|
369
|
+
if (proto.startDatetime) {
|
|
370
|
+
m.startDatetime = new Date(proto.startDatetime);
|
|
371
|
+
}
|
|
372
|
+
if (proto.endDatetime) {
|
|
373
|
+
m.endDatetime = new Date(proto.endDatetime);
|
|
374
|
+
}
|
|
375
|
+
return m;
|
|
376
|
+
}
|
|
377
|
+
toApiJson() {
|
|
378
|
+
const toReturn = {};
|
|
379
|
+
if (typeof this.title !== 'undefined') {
|
|
380
|
+
toReturn['title'] = this.title;
|
|
381
|
+
}
|
|
382
|
+
if (typeof this.startDatetime !== 'undefined' && this.startDatetime !== null) {
|
|
383
|
+
toReturn['startDatetime'] = 'toApiJson' in this.startDatetime ? this.startDatetime.toApiJson() : this.startDatetime;
|
|
384
|
+
}
|
|
385
|
+
if (typeof this.endDatetime !== 'undefined' && this.endDatetime !== null) {
|
|
386
|
+
toReturn['endDatetime'] = 'toApiJson' in this.endDatetime ? this.endDatetime.toApiJson() : this.endDatetime;
|
|
387
|
+
}
|
|
388
|
+
return toReturn;
|
|
389
|
+
}
|
|
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;
|
|
488
422
|
}
|
|
489
423
|
return toReturn;
|
|
490
424
|
}
|
|
491
425
|
}
|
|
492
|
-
class
|
|
426
|
+
class MetaData {
|
|
493
427
|
constructor(kwargs) {
|
|
494
428
|
if (!kwargs) {
|
|
495
429
|
return;
|
|
@@ -497,22 +431,22 @@ class Error {
|
|
|
497
431
|
Object.assign(this, kwargs);
|
|
498
432
|
}
|
|
499
433
|
static fromProto(proto) {
|
|
500
|
-
let m = new
|
|
434
|
+
let m = new MetaData();
|
|
501
435
|
m = Object.assign(m, proto);
|
|
502
436
|
return m;
|
|
503
437
|
}
|
|
504
438
|
toApiJson() {
|
|
505
439
|
const toReturn = {};
|
|
506
|
-
if (typeof this.
|
|
507
|
-
toReturn['
|
|
440
|
+
if (typeof this.propertyName !== 'undefined') {
|
|
441
|
+
toReturn['propertyName'] = this.propertyName;
|
|
508
442
|
}
|
|
509
|
-
if (typeof this.
|
|
510
|
-
toReturn['
|
|
443
|
+
if (typeof this.propertyValue !== 'undefined') {
|
|
444
|
+
toReturn['propertyValue'] = this.propertyValue;
|
|
511
445
|
}
|
|
512
446
|
return toReturn;
|
|
513
447
|
}
|
|
514
448
|
}
|
|
515
|
-
class
|
|
449
|
+
class PostTemplate {
|
|
516
450
|
constructor(kwargs) {
|
|
517
451
|
if (!kwargs) {
|
|
518
452
|
return;
|
|
@@ -520,26 +454,80 @@ class Event {
|
|
|
520
454
|
Object.assign(this, kwargs);
|
|
521
455
|
}
|
|
522
456
|
static fromProto(proto) {
|
|
523
|
-
let m = new
|
|
457
|
+
let m = new PostTemplate();
|
|
524
458
|
m = Object.assign(m, proto);
|
|
525
|
-
if (proto.
|
|
526
|
-
m.
|
|
459
|
+
if (proto.created) {
|
|
460
|
+
m.created = new Date(proto.created);
|
|
527
461
|
}
|
|
528
|
-
if (proto.
|
|
529
|
-
m.
|
|
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);
|
|
530
476
|
}
|
|
531
477
|
return m;
|
|
532
478
|
}
|
|
533
479
|
toApiJson() {
|
|
534
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
|
+
}
|
|
535
487
|
if (typeof this.title !== 'undefined') {
|
|
536
488
|
toReturn['title'] = this.title;
|
|
537
489
|
}
|
|
538
|
-
if (typeof this.
|
|
539
|
-
toReturn['
|
|
490
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
491
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
540
492
|
}
|
|
541
|
-
if (typeof this.
|
|
542
|
-
toReturn['
|
|
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;
|
|
543
531
|
}
|
|
544
532
|
return toReturn;
|
|
545
533
|
}
|
|
@@ -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
|
}
|
|
@@ -728,6 +734,144 @@ class SocialPostData {
|
|
|
728
734
|
}
|
|
729
735
|
}
|
|
730
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
|
+
|
|
731
875
|
function enumStringToValue$2(enumRef, value) {
|
|
732
876
|
if (typeof value === 'number') {
|
|
733
877
|
return value;
|
|
@@ -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
|
}
|
|
@@ -2680,7 +2909,262 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2680
2909
|
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
2681
2910
|
|
|
2682
2911
|
// *********************************
|
|
2683
|
-
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 {
|
|
2684
3168
|
constructor(http, hostService) {
|
|
2685
3169
|
this.http = http;
|
|
2686
3170
|
this.hostService = hostService;
|
|
@@ -2694,42 +3178,31 @@ class PostTemplatesApiService {
|
|
|
2694
3178
|
withCredentials: true
|
|
2695
3179
|
};
|
|
2696
3180
|
}
|
|
2697
|
-
|
|
2698
|
-
const request = (r.toApiJson) ? r : new
|
|
2699
|
-
return this.http.post(this._host + "/socialposts.v1.
|
|
2700
|
-
|
|
2701
|
-
createPostTemplate(r) {
|
|
2702
|
-
const request = (r.toApiJson) ? r : new CreatePostTemplateRequest(r);
|
|
2703
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/CreatePostTemplate", request.toApiJson(), this.apiOptions())
|
|
2704
|
-
.pipe(map(resp => CreatePostTemplateResponse.fromProto(resp)));
|
|
2705
|
-
}
|
|
2706
|
-
getPostTemplate(r) {
|
|
2707
|
-
const request = (r.toApiJson) ? r : new GetPostTemplateRequest(r);
|
|
2708
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/GetPostTemplate", request.toApiJson(), this.apiOptions())
|
|
2709
|
-
.pipe(map(resp => GetPostTemplateResponse.fromProto(resp)));
|
|
2710
|
-
}
|
|
2711
|
-
listPostTemplates(r) {
|
|
2712
|
-
const request = (r.toApiJson) ? r : new ListPostTemplatesRequest(r);
|
|
2713
|
-
return this.http.post(this._host + "/socialposts.v1.PostTemplates/ListPostTemplates", request.toApiJson(), this.apiOptions())
|
|
2714
|
-
.pipe(map(resp => ListPostTemplatesResponse.fromProto(resp)));
|
|
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)));
|
|
2715
3185
|
}
|
|
2716
|
-
|
|
2717
|
-
const request = (r.toApiJson) ? r : new
|
|
2718
|
-
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)));
|
|
2719
3190
|
}
|
|
2720
3191
|
}
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
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: [{
|
|
2724
3195
|
type: Injectable,
|
|
2725
3196
|
args: [{ providedIn: 'root' }]
|
|
2726
3197
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2727
3198
|
|
|
3199
|
+
// *********************************
|
|
3200
|
+
|
|
2728
3201
|
class PostTemplatesService {
|
|
2729
3202
|
constructor(socialPostsApiService) {
|
|
2730
3203
|
this.socialPostsApiService = socialPostsApiService;
|
|
2731
3204
|
}
|
|
2732
|
-
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) {
|
|
2733
3206
|
const req = new UpdatePostTemplateRequest({
|
|
2734
3207
|
accountGroupId: accountGroupId,
|
|
2735
3208
|
templateId: templateId,
|
|
@@ -2742,11 +3215,14 @@ class PostTemplatesService {
|
|
|
2742
3215
|
imageSize: imageSize,
|
|
2743
3216
|
previews: previews,
|
|
2744
3217
|
options: options,
|
|
2745
|
-
videoUrl: videoUrl
|
|
3218
|
+
videoUrl: videoUrl,
|
|
3219
|
+
postType: postType || PostType.POST_TYPE_INVALID,
|
|
3220
|
+
mediaEntries: mediaEntries,
|
|
3221
|
+
metaData: metadata,
|
|
2746
3222
|
});
|
|
2747
3223
|
return this.socialPostsApiService.updatePostTemplate(req);
|
|
2748
3224
|
}
|
|
2749
|
-
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) {
|
|
2750
3226
|
const req = new CreatePostTemplateRequest({
|
|
2751
3227
|
accountGroupId: accountGroupId,
|
|
2752
3228
|
title: title,
|
|
@@ -2758,7 +3234,10 @@ class PostTemplatesService {
|
|
|
2758
3234
|
imageSize: imageSize,
|
|
2759
3235
|
previews: previews,
|
|
2760
3236
|
options: options,
|
|
2761
|
-
videoUrl: videoUrl
|
|
3237
|
+
videoUrl: videoUrl,
|
|
3238
|
+
postType: postType || PostType.POST_TYPE_INVALID,
|
|
3239
|
+
mediaEntries: mediaEntries,
|
|
3240
|
+
metaData: metadata,
|
|
2762
3241
|
});
|
|
2763
3242
|
return this.socialPostsApiService.createPostTemplate(req);
|
|
2764
3243
|
}
|
|
@@ -2792,57 +3271,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2792
3271
|
args: [{ providedIn: 'root' }]
|
|
2793
3272
|
}], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
|
|
2794
3273
|
|
|
2795
|
-
// *********************************
|
|
2796
|
-
class MultilocationPostApiService {
|
|
2797
|
-
constructor(http, hostService) {
|
|
2798
|
-
this.http = http;
|
|
2799
|
-
this.hostService = hostService;
|
|
2800
|
-
this._host = this.hostService.hostWithScheme;
|
|
2801
|
-
}
|
|
2802
|
-
apiOptions() {
|
|
2803
|
-
return {
|
|
2804
|
-
headers: new HttpHeaders({
|
|
2805
|
-
'Content-Type': 'application/json'
|
|
2806
|
-
}),
|
|
2807
|
-
withCredentials: true
|
|
2808
|
-
};
|
|
2809
|
-
}
|
|
2810
|
-
createMultilocationPost(r) {
|
|
2811
|
-
const request = (r.toApiJson) ? r : new CreateMultilocationPostRequest(r);
|
|
2812
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/CreateMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2813
|
-
.pipe(map(resp => CreateMultilocationPostResponse.fromProto(resp)));
|
|
2814
|
-
}
|
|
2815
|
-
editMultilocationPost(r) {
|
|
2816
|
-
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
2817
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2818
|
-
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
2819
|
-
}
|
|
2820
|
-
removeFromMultilocationPost(r) {
|
|
2821
|
-
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
2822
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/RemoveFromMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2823
|
-
}
|
|
2824
|
-
listMultilocationPostsForBrand(r) {
|
|
2825
|
-
const request = (r.toApiJson) ? r : new ListMultilocationPostsForBrandRequest(r);
|
|
2826
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/ListMultilocationPostsForBrand", request.toApiJson(), this.apiOptions())
|
|
2827
|
-
.pipe(map(resp => ListMultilocationPostsForBrandResponse.fromProto(resp)));
|
|
2828
|
-
}
|
|
2829
|
-
deleteMultilocationPost(r) {
|
|
2830
|
-
const request = (r.toApiJson) ? r : new DeleteMultilocationPostRequest(r);
|
|
2831
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/DeleteMultilocationPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2832
|
-
}
|
|
2833
|
-
getMultilocationPost(r) {
|
|
2834
|
-
const request = (r.toApiJson) ? r : new GetMultilocationPostRequest(r);
|
|
2835
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
|
|
2836
|
-
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
2839
|
-
MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2840
|
-
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
2841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
2842
|
-
type: Injectable,
|
|
2843
|
-
args: [{ providedIn: 'root' }]
|
|
2844
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2845
|
-
|
|
2846
3274
|
class MultilocationPostsService {
|
|
2847
3275
|
constructor(multilocationApiService) {
|
|
2848
3276
|
this.multilocationApiService = multilocationApiService;
|
|
@@ -2914,39 +3342,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2914
3342
|
args: [{ providedIn: 'root' }]
|
|
2915
3343
|
}], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
|
|
2916
3344
|
|
|
2917
|
-
// *********************************
|
|
2918
|
-
class TenorGifsApiService {
|
|
2919
|
-
constructor(http, hostService) {
|
|
2920
|
-
this.http = http;
|
|
2921
|
-
this.hostService = hostService;
|
|
2922
|
-
this._host = this.hostService.hostWithScheme;
|
|
2923
|
-
}
|
|
2924
|
-
apiOptions() {
|
|
2925
|
-
return {
|
|
2926
|
-
headers: new HttpHeaders({
|
|
2927
|
-
'Content-Type': 'application/json'
|
|
2928
|
-
}),
|
|
2929
|
-
withCredentials: true
|
|
2930
|
-
};
|
|
2931
|
-
}
|
|
2932
|
-
getTenorAnonymousId(r) {
|
|
2933
|
-
const request = (r.toApiJson) ? r : new GetTenorAnonymousIdRequest(r);
|
|
2934
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/GetTenorAnonymousId", request.toApiJson(), this.apiOptions())
|
|
2935
|
-
.pipe(map(resp => GetTenorAnonymousIdResponse.fromProto(resp)));
|
|
2936
|
-
}
|
|
2937
|
-
listTenorGifs(r) {
|
|
2938
|
-
const request = (r.toApiJson) ? r : new ListTenorGifsRequest(r);
|
|
2939
|
-
return this.http.post(this._host + "/socialposts.v1.TenorGifs/ListTenorGifs", request.toApiJson(), this.apiOptions())
|
|
2940
|
-
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
2941
|
-
}
|
|
2942
|
-
}
|
|
2943
|
-
TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2944
|
-
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
2945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
2946
|
-
type: Injectable,
|
|
2947
|
-
args: [{ providedIn: 'root' }]
|
|
2948
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2949
|
-
|
|
2950
3345
|
class TenorGifsService {
|
|
2951
3346
|
constructor(tenorGifsApiService) {
|
|
2952
3347
|
this.tenorGifsApiService = tenorGifsApiService;
|
|
@@ -2976,34 +3371,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
2976
3371
|
args: [{ providedIn: 'root' }]
|
|
2977
3372
|
}], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
|
|
2978
3373
|
|
|
2979
|
-
// *********************************
|
|
2980
|
-
class PixabayImagesApiService {
|
|
2981
|
-
constructor(http, hostService) {
|
|
2982
|
-
this.http = http;
|
|
2983
|
-
this.hostService = hostService;
|
|
2984
|
-
this._host = this.hostService.hostWithScheme;
|
|
2985
|
-
}
|
|
2986
|
-
apiOptions() {
|
|
2987
|
-
return {
|
|
2988
|
-
headers: new HttpHeaders({
|
|
2989
|
-
'Content-Type': 'application/json'
|
|
2990
|
-
}),
|
|
2991
|
-
withCredentials: true
|
|
2992
|
-
};
|
|
2993
|
-
}
|
|
2994
|
-
listPixabayImages(r) {
|
|
2995
|
-
const request = (r.toApiJson) ? r : new ListPixabayImagesRequest(r);
|
|
2996
|
-
return this.http.post(this._host + "/socialposts.v1.PixabayImages/ListPixabayImages", request.toApiJson(), this.apiOptions())
|
|
2997
|
-
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
2998
|
-
}
|
|
2999
|
-
}
|
|
3000
|
-
PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3001
|
-
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
3002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
3003
|
-
type: Injectable,
|
|
3004
|
-
args: [{ providedIn: 'root' }]
|
|
3005
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3006
|
-
|
|
3007
3374
|
class PixabayImageService {
|
|
3008
3375
|
constructor(pixabayApiService) {
|
|
3009
3376
|
this.pixabayApiService = pixabayApiService;
|
|
@@ -3022,42 +3389,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3022
3389
|
args: [{ providedIn: 'root' }]
|
|
3023
3390
|
}], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
|
|
3024
3391
|
|
|
3025
|
-
// *********************************
|
|
3026
|
-
class HashTagsApiService {
|
|
3027
|
-
constructor(http, hostService) {
|
|
3028
|
-
this.http = http;
|
|
3029
|
-
this.hostService = hostService;
|
|
3030
|
-
this._host = this.hostService.hostWithScheme;
|
|
3031
|
-
}
|
|
3032
|
-
apiOptions() {
|
|
3033
|
-
return {
|
|
3034
|
-
headers: new HttpHeaders({
|
|
3035
|
-
'Content-Type': 'application/json'
|
|
3036
|
-
}),
|
|
3037
|
-
withCredentials: true
|
|
3038
|
-
};
|
|
3039
|
-
}
|
|
3040
|
-
replaceHashtags(r) {
|
|
3041
|
-
const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
|
|
3042
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3043
|
-
}
|
|
3044
|
-
deleteHashtags(r) {
|
|
3045
|
-
const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
|
|
3046
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3047
|
-
}
|
|
3048
|
-
searchHashtag(r) {
|
|
3049
|
-
const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
|
|
3050
|
-
return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
|
|
3051
|
-
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
3052
|
-
}
|
|
3053
|
-
}
|
|
3054
|
-
HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3055
|
-
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
3056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
3057
|
-
type: Injectable,
|
|
3058
|
-
args: [{ providedIn: 'root' }]
|
|
3059
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3060
|
-
|
|
3061
3392
|
class HashTagsService {
|
|
3062
3393
|
constructor(hashTagsApiService) {
|
|
3063
3394
|
this.hashTagsApiService = hashTagsApiService;
|
|
@@ -3095,39 +3426,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3095
3426
|
args: [{ providedIn: 'root' }]
|
|
3096
3427
|
}], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
|
|
3097
3428
|
|
|
3098
|
-
// *********************************
|
|
3099
|
-
class PostPerformanceApiService {
|
|
3100
|
-
constructor(http, hostService) {
|
|
3101
|
-
this.http = http;
|
|
3102
|
-
this.hostService = hostService;
|
|
3103
|
-
this._host = this.hostService.hostWithScheme;
|
|
3104
|
-
}
|
|
3105
|
-
apiOptions() {
|
|
3106
|
-
return {
|
|
3107
|
-
headers: new HttpHeaders({
|
|
3108
|
-
'Content-Type': 'application/json'
|
|
3109
|
-
}),
|
|
3110
|
-
withCredentials: true
|
|
3111
|
-
};
|
|
3112
|
-
}
|
|
3113
|
-
generateCsvForPerformanceStats(r) {
|
|
3114
|
-
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3115
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3116
|
-
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3117
|
-
}
|
|
3118
|
-
getGeneratedCsvForPerformanceStats(r) {
|
|
3119
|
-
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3120
|
-
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3121
|
-
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3122
|
-
}
|
|
3123
|
-
}
|
|
3124
|
-
PostPerformanceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3125
|
-
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3127
|
-
type: Injectable,
|
|
3128
|
-
args: [{ providedIn: 'root' }]
|
|
3129
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3130
|
-
|
|
3131
3429
|
class PostPerformanceService {
|
|
3132
3430
|
constructor(postPerformanceApiService) {
|
|
3133
3431
|
this.postPerformanceApiService = postPerformanceApiService;
|
|
@@ -3148,41 +3446,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
3148
3446
|
args: [{ providedIn: 'root' }]
|
|
3149
3447
|
}], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
|
|
3150
3448
|
|
|
3151
|
-
// *********************************
|
|
3152
|
-
class PartnerSocialPostsApiService {
|
|
3153
|
-
constructor(http, hostService) {
|
|
3154
|
-
this.http = http;
|
|
3155
|
-
this.hostService = hostService;
|
|
3156
|
-
this._host = this.hostService.hostWithScheme;
|
|
3157
|
-
}
|
|
3158
|
-
apiOptions() {
|
|
3159
|
-
return {
|
|
3160
|
-
headers: new HttpHeaders({
|
|
3161
|
-
'Content-Type': 'application/json'
|
|
3162
|
-
}),
|
|
3163
|
-
withCredentials: true
|
|
3164
|
-
};
|
|
3165
|
-
}
|
|
3166
|
-
listScheduled(r) {
|
|
3167
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3168
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduled", request.toApiJson(), this.apiOptions())
|
|
3169
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3170
|
-
}
|
|
3171
|
-
listScheduledByCreated(r) {
|
|
3172
|
-
const request = (r.toApiJson) ? r : new PartnerListScheduledSocialPostsRequest(r);
|
|
3173
|
-
return this.http.post(this._host + "/socialposts.v1.PartnerSocialPosts/ListScheduledByCreated", request.toApiJson(), this.apiOptions())
|
|
3174
|
-
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
3175
|
-
}
|
|
3176
|
-
}
|
|
3177
|
-
PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3178
|
-
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
3180
|
-
type: Injectable,
|
|
3181
|
-
args: [{ providedIn: 'root' }]
|
|
3182
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3183
|
-
|
|
3184
|
-
// *********************************
|
|
3185
|
-
|
|
3186
3449
|
/**
|
|
3187
3450
|
* Generated bundle index. Do not edit.
|
|
3188
3451
|
*/
|