@corsair-dev/linkedin 0.1.3 → 0.1.4

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.
@@ -10,6 +10,7 @@ export declare const ProfileEndpoints: {
10
10
  family_name?: string | null | undefined;
11
11
  picture?: string | null | undefined;
12
12
  email?: string | null | undefined;
13
+ email_verified?: boolean | null | undefined;
13
14
  locale?: string | null | undefined;
14
15
  vanityName?: string | undefined;
15
16
  headline?: string | undefined;
@@ -24,13 +25,36 @@ export declare const ProfileEndpoints: {
24
25
  localizedLastName?: string | undefined;
25
26
  localizedHeadline?: string | undefined;
26
27
  vanityName?: string | undefined;
27
- firstName?: Record<string, unknown> | undefined;
28
- lastName?: Record<string, unknown> | undefined;
29
- headline?: Record<string, unknown> | undefined;
28
+ firstName?: {
29
+ [x: string]: unknown;
30
+ localized?: Record<string, string> | undefined;
31
+ preferredLocale?: {
32
+ [x: string]: unknown;
33
+ country?: string | undefined;
34
+ language?: string | undefined;
35
+ } | undefined;
36
+ } | undefined;
37
+ lastName?: {
38
+ [x: string]: unknown;
39
+ localized?: Record<string, string> | undefined;
40
+ preferredLocale?: {
41
+ [x: string]: unknown;
42
+ country?: string | undefined;
43
+ language?: string | undefined;
44
+ } | undefined;
45
+ } | undefined;
46
+ headline?: {
47
+ [x: string]: unknown;
48
+ localized?: Record<string, string> | undefined;
49
+ preferredLocale?: {
50
+ [x: string]: unknown;
51
+ country?: string | undefined;
52
+ language?: string | undefined;
53
+ } | undefined;
54
+ } | undefined;
30
55
  profilePicture?: {
31
56
  [x: string]: unknown;
32
- 'displayImage~'?: string | undefined;
33
- 'displayImage~:playableStreams'?: Record<string, unknown>[] | undefined;
57
+ displayImage?: string | undefined;
34
58
  } | undefined;
35
59
  }>;
36
60
  };
@@ -38,31 +62,33 @@ export declare const PostsEndpoints: {
38
62
  create: (ctx: import("..").LinkedInContext, args: {
39
63
  author: string;
40
64
  commentary: string;
41
- visibility?: "PUBLIC" | "CONNECTIONS" | "LOGGED_IN_MEMBERS" | undefined;
42
- lifecycleState?: "PUBLISHED" | "DRAFT" | undefined;
65
+ visibility?: "PUBLIC" | "CONNECTIONS" | "LOGGED_IN" | undefined;
66
+ lifecycleState?: "PUBLISHED" | undefined;
43
67
  isReshareDisabledByAuthor?: boolean | undefined;
44
68
  article_url?: string | undefined;
45
69
  article_title?: string | undefined;
46
70
  article_description?: string | undefined;
71
+ article_thumbnail?: string | undefined;
47
72
  image_urn?: string | undefined;
73
+ image_alt_text?: string | undefined;
48
74
  }) => Promise<{
49
75
  id: string;
50
76
  }>;
51
77
  createArticleShare: (ctx: import("..").LinkedInContext, args: {
52
78
  authorUrn: string;
53
79
  article_url: string;
80
+ article_title: string;
54
81
  text?: string | undefined;
55
- article_title?: string | undefined;
56
82
  article_description?: string | undefined;
57
83
  article_thumbnail?: string | undefined;
58
84
  visibility?: "PUBLIC" | "CONNECTIONS" | undefined;
59
- lifecycleState?: "PUBLISHED" | "DRAFT" | undefined;
85
+ lifecycleState?: "PUBLISHED" | undefined;
60
86
  }) => Promise<{
61
87
  id: string;
62
- activity?: string | undefined;
63
88
  }>;
64
89
  getContent: (ctx: import("..").LinkedInContext, args: {
65
90
  post_urn: string;
91
+ view_context?: "READER" | "AUTHOR" | undefined;
66
92
  }) => Promise<{
67
93
  [x: string]: unknown;
68
94
  id: string;
@@ -70,10 +96,72 @@ export declare const PostsEndpoints: {
70
96
  commentary?: string | undefined;
71
97
  visibility?: string | undefined;
72
98
  lifecycleState?: string | undefined;
73
- createdAt?: Record<string, unknown> | undefined;
74
- isReshareDisabledByAuthor?: boolean | undefined;
75
- media?: Record<string, unknown> | undefined;
99
+ lifecycleStateInfo?: Record<string, unknown> | undefined;
100
+ distribution?: {
101
+ [x: string]: unknown;
102
+ feedDistribution?: string | undefined;
103
+ targetEntities?: Record<string, unknown>[] | undefined;
104
+ thirdPartyDistributionChannels?: unknown[] | undefined;
105
+ } | undefined;
76
106
  content?: Record<string, unknown> | undefined;
107
+ container?: string | undefined;
108
+ contentLandingPage?: string | undefined;
109
+ contentCallToActionLabel?: string | undefined;
110
+ isReshareDisabledByAuthor?: boolean | undefined;
111
+ reshareContext?: {
112
+ [x: string]: unknown;
113
+ parent?: string | undefined;
114
+ root?: string | undefined;
115
+ } | undefined;
116
+ adContext?: Record<string, unknown> | undefined;
117
+ createdAt?: number | undefined;
118
+ publishedAt?: number | undefined;
119
+ lastModifiedAt?: number | undefined;
120
+ }>;
121
+ list: (ctx: import("..").LinkedInContext, args: {
122
+ author: string;
123
+ start?: number | undefined;
124
+ count?: number | undefined;
125
+ sort_by?: "LAST_MODIFIED" | "CREATED" | undefined;
126
+ view_context?: "READER" | "AUTHOR" | undefined;
127
+ }) => Promise<{
128
+ [x: string]: unknown;
129
+ elements: {
130
+ [x: string]: unknown;
131
+ id: string;
132
+ author?: string | undefined;
133
+ commentary?: string | undefined;
134
+ visibility?: string | undefined;
135
+ lifecycleState?: string | undefined;
136
+ lifecycleStateInfo?: Record<string, unknown> | undefined;
137
+ distribution?: {
138
+ [x: string]: unknown;
139
+ feedDistribution?: string | undefined;
140
+ targetEntities?: Record<string, unknown>[] | undefined;
141
+ thirdPartyDistributionChannels?: unknown[] | undefined;
142
+ } | undefined;
143
+ content?: Record<string, unknown> | undefined;
144
+ container?: string | undefined;
145
+ contentLandingPage?: string | undefined;
146
+ contentCallToActionLabel?: string | undefined;
147
+ isReshareDisabledByAuthor?: boolean | undefined;
148
+ reshareContext?: {
149
+ [x: string]: unknown;
150
+ parent?: string | undefined;
151
+ root?: string | undefined;
152
+ } | undefined;
153
+ adContext?: Record<string, unknown> | undefined;
154
+ createdAt?: number | undefined;
155
+ publishedAt?: number | undefined;
156
+ lastModifiedAt?: number | undefined;
157
+ }[];
158
+ paging?: {
159
+ [x: string]: unknown;
160
+ start?: number | undefined;
161
+ count?: number | undefined;
162
+ total?: number | undefined;
163
+ links?: Record<string, unknown>[] | undefined;
164
+ } | undefined;
77
165
  }>;
78
166
  delete: (ctx: import("..").LinkedInContext, args: {
79
167
  post_id: string;
@@ -99,25 +187,108 @@ export declare const CommentsEndpoints: {
99
187
  }) => Promise<{
100
188
  [x: string]: unknown;
101
189
  id?: string | undefined;
102
- message?: string | undefined;
190
+ commentUrn?: string | undefined;
191
+ actor?: string | undefined;
192
+ agent?: string | undefined;
103
193
  object?: string | undefined;
104
- lastModified?: Record<string, unknown> | undefined;
194
+ parentComment?: string | undefined;
195
+ message?: {
196
+ [x: string]: unknown;
197
+ text?: string | undefined;
198
+ attributes?: Record<string, unknown>[] | undefined;
199
+ } | undefined;
200
+ content?: Record<string, unknown>[] | undefined;
201
+ created?: {
202
+ [x: string]: unknown;
203
+ actor?: string | undefined;
204
+ impersonator?: string | undefined;
205
+ time?: number | undefined;
206
+ } | undefined;
207
+ lastModified?: {
208
+ [x: string]: unknown;
209
+ actor?: string | undefined;
210
+ impersonator?: string | undefined;
211
+ time?: number | undefined;
212
+ } | undefined;
213
+ likesSummary?: Record<string, unknown> | undefined;
214
+ }>;
215
+ list: (ctx: import("..").LinkedInContext, args: {
216
+ entity_urn: string;
217
+ start?: number | undefined;
218
+ count?: number | undefined;
219
+ }) => Promise<{
220
+ [x: string]: unknown;
221
+ elements: {
222
+ [x: string]: unknown;
223
+ id?: string | undefined;
224
+ commentUrn?: string | undefined;
225
+ actor?: string | undefined;
226
+ agent?: string | undefined;
227
+ object?: string | undefined;
228
+ parentComment?: string | undefined;
229
+ message?: {
230
+ [x: string]: unknown;
231
+ text?: string | undefined;
232
+ attributes?: Record<string, unknown>[] | undefined;
233
+ } | undefined;
234
+ content?: Record<string, unknown>[] | undefined;
235
+ created?: {
236
+ [x: string]: unknown;
237
+ actor?: string | undefined;
238
+ impersonator?: string | undefined;
239
+ time?: number | undefined;
240
+ } | undefined;
241
+ lastModified?: {
242
+ [x: string]: unknown;
243
+ actor?: string | undefined;
244
+ impersonator?: string | undefined;
245
+ time?: number | undefined;
246
+ } | undefined;
247
+ likesSummary?: Record<string, unknown> | undefined;
248
+ }[];
249
+ paging?: {
250
+ [x: string]: unknown;
251
+ start?: number | undefined;
252
+ count?: number | undefined;
253
+ total?: number | undefined;
254
+ links?: Record<string, unknown>[] | undefined;
255
+ } | undefined;
105
256
  }>;
106
257
  };
107
258
  export declare const ReactionsEndpoints: {
108
259
  list: (ctx: import("..").LinkedInContext, args: {
109
260
  entity_urn: string;
261
+ sort?: "REVERSE_CHRONOLOGICAL" | "CHRONOLOGICAL" | "RELEVANCE" | undefined;
110
262
  start?: number | undefined;
111
263
  count?: number | undefined;
112
264
  }) => Promise<{
113
265
  [x: string]: unknown;
114
266
  elements: {
115
267
  [x: string]: unknown;
116
- actor?: string | undefined;
117
- type?: string | undefined;
118
- created?: Record<string, unknown> | undefined;
268
+ id?: string | undefined;
269
+ reactionType?: string | undefined;
270
+ root?: string | undefined;
271
+ created?: {
272
+ [x: string]: unknown;
273
+ actor?: string | undefined;
274
+ impersonator?: string | undefined;
275
+ time?: number | undefined;
276
+ } | undefined;
277
+ lastModified?: {
278
+ [x: string]: unknown;
279
+ actor?: string | undefined;
280
+ impersonator?: string | undefined;
281
+ time?: number | undefined;
282
+ } | undefined;
283
+ deleted?: {
284
+ [x: string]: unknown;
285
+ actor?: string | undefined;
286
+ impersonator?: string | undefined;
287
+ time?: number | undefined;
288
+ } | undefined;
119
289
  }[];
120
290
  paging?: {
291
+ [x: string]: unknown;
121
292
  start?: number | undefined;
122
293
  count?: number | undefined;
123
294
  total?: number | undefined;
@@ -134,16 +305,20 @@ export declare const ImagesEndpoints: {
134
305
  owner?: string | undefined;
135
306
  status?: string | undefined;
136
307
  downloadUrl?: string | null | undefined;
137
- original?: {
308
+ downloadUrlExpiresAt?: number | undefined;
309
+ altText?: string | undefined;
310
+ aspectRatioHeight?: number | undefined;
311
+ aspectRatioWidth?: number | undefined;
312
+ mediaLibraryMetadata?: {
138
313
  [x: string]: unknown;
139
- size?: string | undefined;
140
- width?: number | undefined;
141
- height?: number | undefined;
314
+ associatedAccount?: string | undefined;
315
+ assetName?: string | undefined;
316
+ mediaLibraryStatus?: string | undefined;
142
317
  } | undefined;
143
318
  }>;
144
319
  list: (ctx: import("..").LinkedInContext, args: {
145
- owner?: string | undefined;
146
320
  urns?: string[] | undefined;
321
+ associated_account?: string | undefined;
147
322
  start?: number | undefined;
148
323
  count?: number | undefined;
149
324
  }) => Promise<{
@@ -154,14 +329,38 @@ export declare const ImagesEndpoints: {
154
329
  owner?: string | undefined;
155
330
  status?: string | undefined;
156
331
  downloadUrl?: string | null | undefined;
157
- original?: {
332
+ downloadUrlExpiresAt?: number | undefined;
333
+ altText?: string | undefined;
334
+ aspectRatioHeight?: number | undefined;
335
+ aspectRatioWidth?: number | undefined;
336
+ mediaLibraryMetadata?: {
158
337
  [x: string]: unknown;
159
- size?: string | undefined;
160
- width?: number | undefined;
161
- height?: number | undefined;
338
+ associatedAccount?: string | undefined;
339
+ assetName?: string | undefined;
340
+ mediaLibraryStatus?: string | undefined;
162
341
  } | undefined;
163
342
  }[];
343
+ results?: Record<string, {
344
+ [x: string]: unknown;
345
+ id: string;
346
+ owner?: string | undefined;
347
+ status?: string | undefined;
348
+ downloadUrl?: string | null | undefined;
349
+ downloadUrlExpiresAt?: number | undefined;
350
+ altText?: string | undefined;
351
+ aspectRatioHeight?: number | undefined;
352
+ aspectRatioWidth?: number | undefined;
353
+ mediaLibraryMetadata?: {
354
+ [x: string]: unknown;
355
+ associatedAccount?: string | undefined;
356
+ assetName?: string | undefined;
357
+ mediaLibraryStatus?: string | undefined;
358
+ } | undefined;
359
+ }> | undefined;
360
+ statuses?: Record<string, number> | undefined;
361
+ errors?: Record<string, Record<string, unknown>> | undefined;
164
362
  paging?: {
363
+ [x: string]: unknown;
165
364
  start?: number | undefined;
166
365
  count?: number | undefined;
167
366
  total?: number | undefined;
@@ -185,17 +384,17 @@ export declare const ImagesEndpoints: {
185
384
  [x: string]: unknown;
186
385
  value: {
187
386
  [x: string]: unknown;
188
- asset: string;
189
- mediaArtifact?: string | undefined;
190
- uploadMechanism?: Record<string, unknown> | undefined;
387
+ image: string;
388
+ uploadUrl?: string | undefined;
389
+ uploadUrlExpiresAt?: number | undefined;
191
390
  };
192
391
  }>;
193
392
  };
194
393
  export declare const VideosEndpoints: {
195
394
  list: (ctx: import("..").LinkedInContext, args: {
196
395
  video_urn?: string | undefined;
197
- owner?: string | undefined;
198
396
  urns?: string[] | undefined;
397
+ associated_account?: string | undefined;
199
398
  start?: number | undefined;
200
399
  count?: number | undefined;
201
400
  }) => Promise<{
@@ -205,15 +404,45 @@ export declare const VideosEndpoints: {
205
404
  id: string;
206
405
  owner?: string | undefined;
207
406
  status?: string | undefined;
407
+ processingFailureReason?: string | undefined;
208
408
  downloadUrl?: string | null | undefined;
209
- durationMilliseconds?: number | undefined;
210
- original?: {
409
+ downloadUrlExpiresAt?: number | undefined;
410
+ duration?: number | undefined;
411
+ aspectRatioWidth?: number | undefined;
412
+ aspectRatioHeight?: number | undefined;
413
+ thumbnail?: string | undefined;
414
+ captions?: string | undefined;
415
+ mediaLibraryMetadata?: {
211
416
  [x: string]: unknown;
212
- width?: number | undefined;
213
- height?: number | undefined;
417
+ associatedAccount?: string | undefined;
418
+ assetName?: string | undefined;
419
+ mediaLibraryStatus?: string | undefined;
214
420
  } | undefined;
215
421
  }[];
422
+ results?: Record<string, {
423
+ [x: string]: unknown;
424
+ id: string;
425
+ owner?: string | undefined;
426
+ status?: string | undefined;
427
+ processingFailureReason?: string | undefined;
428
+ downloadUrl?: string | null | undefined;
429
+ downloadUrlExpiresAt?: number | undefined;
430
+ duration?: number | undefined;
431
+ aspectRatioWidth?: number | undefined;
432
+ aspectRatioHeight?: number | undefined;
433
+ thumbnail?: string | undefined;
434
+ captions?: string | undefined;
435
+ mediaLibraryMetadata?: {
436
+ [x: string]: unknown;
437
+ associatedAccount?: string | undefined;
438
+ assetName?: string | undefined;
439
+ mediaLibraryStatus?: string | undefined;
440
+ } | undefined;
441
+ }> | undefined;
442
+ statuses?: Record<string, number> | undefined;
443
+ errors?: Record<string, Record<string, unknown>> | undefined;
216
444
  paging?: {
445
+ [x: string]: unknown;
217
446
  start?: number | undefined;
218
447
  count?: number | undefined;
219
448
  total?: number | undefined;
@@ -223,9 +452,8 @@ export declare const VideosEndpoints: {
223
452
  };
224
453
  export declare const OrganizationsEndpoints: {
225
454
  getCompanyInfo: (ctx: import("..").LinkedInContext, args: {
226
- role_assignee?: string | undefined;
227
- role?: ("ADMINISTRATOR" | "DIRECT_SPONSORED_CONTENT_POSTER" | "RECRUITING_POSTER" | "LEAD_GEN_FORMS_MANAGER" | "CONTENT_ADMIN" | "ANALYTICS_ROLE")[] | undefined;
228
- state?: "APPROVED" | "PENDING" | "REVOKED" | undefined;
455
+ role?: "ADMINISTRATOR" | "DIRECT_SPONSORED_CONTENT_POSTER" | "RECRUITING_POSTER" | "LEAD_CAPTURE_ADMINISTRATOR" | "LEAD_GEN_FORMS_MANAGER" | "ANALYST" | "CURATOR" | "CONTENT_ADMINISTRATOR" | ("ADMINISTRATOR" | "DIRECT_SPONSORED_CONTENT_POSTER" | "RECRUITING_POSTER" | "LEAD_CAPTURE_ADMINISTRATOR" | "LEAD_GEN_FORMS_MANAGER" | "ANALYST" | "CURATOR" | "CONTENT_ADMINISTRATOR")[] | undefined;
456
+ state?: "APPROVED" | "REQUESTED" | "REJECTED" | "REVOKED" | undefined;
229
457
  start?: number | undefined;
230
458
  count?: number | undefined;
231
459
  }) => Promise<{
@@ -233,11 +461,12 @@ export declare const OrganizationsEndpoints: {
233
461
  elements: {
234
462
  [x: string]: unknown;
235
463
  organization?: string | undefined;
236
- organizationRoleAssignee?: string | undefined;
464
+ roleAssignee?: string | undefined;
237
465
  role?: string | undefined;
238
466
  state?: string | undefined;
239
467
  }[];
240
468
  paging?: {
469
+ [x: string]: unknown;
241
470
  start?: number | undefined;
242
471
  count?: number | undefined;
243
472
  total?: number | undefined;
@@ -248,10 +477,90 @@ export declare const OrganizationsEndpoints: {
248
477
  organization_urn: string;
249
478
  }) => Promise<{
250
479
  [x: string]: unknown;
480
+ firstDegreeSize?: number | undefined;
251
481
  totalFollowerCount?: number | undefined;
252
- organizationFollowerCount?: number | undefined;
253
- elements?: Record<string, unknown>[] | undefined;
482
+ }>;
483
+ getFollowerStats: (ctx: import("..").LinkedInContext, args: {
484
+ organization_urn: string;
485
+ time_integrated?: {
486
+ start?: number | undefined;
487
+ end?: number | undefined;
488
+ } | undefined;
489
+ time_granularity?: "DAY" | "WEEK" | "MONTH" | undefined;
490
+ }) => Promise<{
491
+ [x: string]: unknown;
492
+ elements: {
493
+ [x: string]: unknown;
494
+ organizationalEntity?: string | undefined;
495
+ timeRange?: {
496
+ [x: string]: unknown;
497
+ start?: number | undefined;
498
+ end?: number | undefined;
499
+ } | undefined;
500
+ followerGains?: {
501
+ [x: string]: unknown;
502
+ organicFollowerGain?: number | undefined;
503
+ paidFollowerGain?: number | undefined;
504
+ } | undefined;
505
+ followerCountsByAssociationType?: {
506
+ [x: string]: unknown;
507
+ followerCounts?: {
508
+ [x: string]: unknown;
509
+ organicFollowerCount?: number | undefined;
510
+ paidFollowerCount?: number | undefined;
511
+ } | undefined;
512
+ }[] | undefined;
513
+ followerCountsBySeniority?: {
514
+ [x: string]: unknown;
515
+ followerCounts?: {
516
+ [x: string]: unknown;
517
+ organicFollowerCount?: number | undefined;
518
+ paidFollowerCount?: number | undefined;
519
+ } | undefined;
520
+ }[] | undefined;
521
+ followerCountsByIndustry?: {
522
+ [x: string]: unknown;
523
+ followerCounts?: {
524
+ [x: string]: unknown;
525
+ organicFollowerCount?: number | undefined;
526
+ paidFollowerCount?: number | undefined;
527
+ } | undefined;
528
+ }[] | undefined;
529
+ followerCountsByFunction?: {
530
+ [x: string]: unknown;
531
+ followerCounts?: {
532
+ [x: string]: unknown;
533
+ organicFollowerCount?: number | undefined;
534
+ paidFollowerCount?: number | undefined;
535
+ } | undefined;
536
+ }[] | undefined;
537
+ followerCountsByStaffCountRange?: {
538
+ [x: string]: unknown;
539
+ followerCounts?: {
540
+ [x: string]: unknown;
541
+ organicFollowerCount?: number | undefined;
542
+ paidFollowerCount?: number | undefined;
543
+ } | undefined;
544
+ }[] | undefined;
545
+ followerCountsByGeo?: {
546
+ [x: string]: unknown;
547
+ followerCounts?: {
548
+ [x: string]: unknown;
549
+ organicFollowerCount?: number | undefined;
550
+ paidFollowerCount?: number | undefined;
551
+ } | undefined;
552
+ }[] | undefined;
553
+ followerCountsByGeoCountry?: {
554
+ [x: string]: unknown;
555
+ followerCounts?: {
556
+ [x: string]: unknown;
557
+ organicFollowerCount?: number | undefined;
558
+ paidFollowerCount?: number | undefined;
559
+ } | undefined;
560
+ }[] | undefined;
561
+ }[];
254
562
  paging?: {
563
+ [x: string]: unknown;
255
564
  start?: number | undefined;
256
565
  count?: number | undefined;
257
566
  total?: number | undefined;
@@ -264,12 +573,23 @@ export declare const OrganizationsEndpoints: {
264
573
  start?: number | undefined;
265
574
  end?: number | undefined;
266
575
  } | undefined;
576
+ time_granularity?: "DAY" | "MONTH" | undefined;
267
577
  start?: number | undefined;
268
578
  count?: number | undefined;
269
579
  }) => Promise<{
270
580
  [x: string]: unknown;
271
- elements: Record<string, unknown>[];
581
+ elements: {
582
+ [x: string]: unknown;
583
+ organization?: string | undefined;
584
+ timeRange?: {
585
+ [x: string]: unknown;
586
+ start?: number | undefined;
587
+ end?: number | undefined;
588
+ } | undefined;
589
+ totalPageStatistics?: Record<string, unknown> | undefined;
590
+ }[];
272
591
  paging?: {
592
+ [x: string]: unknown;
273
593
  start?: number | undefined;
274
594
  count?: number | undefined;
275
595
  total?: number | undefined;
@@ -282,12 +602,34 @@ export declare const OrganizationsEndpoints: {
282
602
  start?: number | undefined;
283
603
  end?: number | undefined;
284
604
  } | undefined;
285
- start?: number | undefined;
286
- count?: number | undefined;
605
+ time_granularity?: "DAY" | "MONTH" | undefined;
606
+ shares?: string[] | undefined;
607
+ ugc_posts?: string[] | undefined;
287
608
  }) => Promise<{
288
609
  [x: string]: unknown;
289
- elements: Record<string, unknown>[];
610
+ elements: {
611
+ [x: string]: unknown;
612
+ organizationalEntity?: string | undefined;
613
+ share?: string | undefined;
614
+ ugcPost?: string | undefined;
615
+ timeRange?: {
616
+ [x: string]: unknown;
617
+ start?: number | undefined;
618
+ end?: number | undefined;
619
+ } | undefined;
620
+ totalShareStatistics?: {
621
+ [x: string]: unknown;
622
+ impressionCount?: number | undefined;
623
+ uniqueImpressionsCount?: number | undefined;
624
+ clickCount?: number | undefined;
625
+ likeCount?: number | undefined;
626
+ commentCount?: number | undefined;
627
+ shareCount?: number | undefined;
628
+ engagement?: number | undefined;
629
+ } | undefined;
630
+ }[];
290
631
  paging?: {
632
+ [x: string]: unknown;
291
633
  start?: number | undefined;
292
634
  count?: number | undefined;
293
635
  total?: number | undefined;
@@ -298,15 +640,41 @@ export declare const OrganizationsEndpoints: {
298
640
  export declare const AdsEndpoints: {
299
641
  getTargetingFacets: (ctx: import("..").LinkedInContext, args: Record<string, never>) => Promise<{
300
642
  [x: string]: unknown;
301
- facets?: Record<string, unknown>[] | undefined;
302
- elements?: Record<string, unknown>[] | undefined;
643
+ elements: {
644
+ [x: string]: unknown;
645
+ facetName?: string | undefined;
646
+ adTargetingFacetUrn?: string | undefined;
647
+ entityTypes?: string[] | undefined;
648
+ availableEntityFinders?: string[] | undefined;
649
+ }[];
650
+ paging?: {
651
+ [x: string]: unknown;
652
+ start?: number | undefined;
653
+ count?: number | undefined;
654
+ total?: number | undefined;
655
+ links?: Record<string, unknown>[] | undefined;
656
+ } | undefined;
303
657
  }>;
304
658
  getAudienceCounts: (ctx: import("..").LinkedInContext, args: {
305
- target: Record<string, unknown>;
659
+ target: {
660
+ include: {
661
+ and: {
662
+ or: Record<string, string[]>;
663
+ }[];
664
+ };
665
+ exclude?: {
666
+ or: Record<string, string[]>;
667
+ } | undefined;
668
+ };
306
669
  }) => Promise<{
307
670
  [x: string]: unknown;
308
- elements?: Record<string, unknown>[] | undefined;
671
+ elements: {
672
+ [x: string]: unknown;
673
+ total?: number | undefined;
674
+ active?: number | undefined;
675
+ }[];
309
676
  paging?: {
677
+ [x: string]: unknown;
310
678
  start?: number | undefined;
311
679
  count?: number | undefined;
312
680
  total?: number | undefined;
@@ -315,11 +683,150 @@ export declare const AdsEndpoints: {
315
683
  }>;
316
684
  searchTargetingEntities: (ctx: import("..").LinkedInContext, args: {
317
685
  query: string;
686
+ facet?: string | undefined;
318
687
  type?: string | undefined;
688
+ entity_type?: "AGE" | "COMPANY" | "COMPANY_SIZE" | "DEGREE" | "FIELD_OF_STUDY" | "FUNCTION" | "GENDER" | "GROUP" | "INDUSTRY" | "INTEREST" | "LOCALE" | "SCHOOL" | "SENIORITY" | "SKILL" | "TITLE" | "YEARS_OF_EXPERIENCE" | "MEMBER_BEHAVIOR" | undefined;
689
+ locale?: {
690
+ language: string;
691
+ country: string;
692
+ } | undefined;
319
693
  }) => Promise<{
320
694
  [x: string]: unknown;
321
- elements?: Record<string, unknown>[] | undefined;
695
+ elements: {
696
+ [x: string]: unknown;
697
+ urn?: string | undefined;
698
+ name?: string | undefined;
699
+ facetUrn?: string | undefined;
700
+ }[];
322
701
  paging?: {
702
+ [x: string]: unknown;
703
+ start?: number | undefined;
704
+ count?: number | undefined;
705
+ total?: number | undefined;
706
+ links?: Record<string, unknown>[] | undefined;
707
+ } | undefined;
708
+ }>;
709
+ listAccounts: (ctx: import("..").LinkedInContext, args: {
710
+ status?: ("ACTIVE" | "DRAFT" | "CANCELED" | "PENDING_DELETION" | "REMOVED")[] | undefined;
711
+ type?: ("BUSINESS" | "ENTERPRISE")[] | undefined;
712
+ page_size?: number | undefined;
713
+ page_token?: string | undefined;
714
+ sort_order?: "ASCENDING" | "DESCENDING" | undefined;
715
+ }) => Promise<{
716
+ [x: string]: unknown;
717
+ elements: {
718
+ [x: string]: unknown;
719
+ id?: number | undefined;
720
+ name?: string | undefined;
721
+ currency?: string | undefined;
722
+ status?: string | undefined;
723
+ type?: string | undefined;
724
+ reference?: string | undefined;
725
+ test?: boolean | undefined;
726
+ servingStatuses?: string[] | undefined;
727
+ changeAuditStamps?: Record<string, unknown> | undefined;
728
+ version?: Record<string, unknown> | undefined;
729
+ }[];
730
+ metadata?: {
731
+ [x: string]: unknown;
732
+ nextPageToken?: string | undefined;
733
+ } | undefined;
734
+ }>;
735
+ listCampaigns: (ctx: import("..").LinkedInContext, args: {
736
+ ad_account: string;
737
+ status?: ("ACTIVE" | "DRAFT" | "CANCELED" | "PENDING_DELETION" | "REMOVED" | "PAUSED" | "ARCHIVED" | "COMPLETED")[] | undefined;
738
+ type?: ("TEXT_AD" | "SPONSORED_UPDATES" | "SPONSORED_INMAILS" | "DYNAMIC")[] | undefined;
739
+ campaign_group?: string[] | undefined;
740
+ page_size?: number | undefined;
741
+ page_token?: string | undefined;
742
+ sort_order?: "ASCENDING" | "DESCENDING" | undefined;
743
+ }) => Promise<{
744
+ [x: string]: unknown;
745
+ elements: {
746
+ [x: string]: unknown;
747
+ id?: number | undefined;
748
+ name?: string | undefined;
749
+ account?: string | undefined;
750
+ campaignGroup?: string | undefined;
751
+ status?: string | undefined;
752
+ type?: string | undefined;
753
+ costType?: string | undefined;
754
+ dailyBudget?: {
755
+ [x: string]: unknown;
756
+ amount?: string | undefined;
757
+ currencyCode?: string | undefined;
758
+ } | undefined;
759
+ totalBudget?: {
760
+ [x: string]: unknown;
761
+ amount?: string | undefined;
762
+ currencyCode?: string | undefined;
763
+ } | undefined;
764
+ unitCost?: {
765
+ [x: string]: unknown;
766
+ amount?: string | undefined;
767
+ currencyCode?: string | undefined;
768
+ } | undefined;
769
+ runSchedule?: {
770
+ [x: string]: unknown;
771
+ start?: number | undefined;
772
+ end?: number | undefined;
773
+ } | undefined;
774
+ targetingCriteria?: Record<string, unknown> | undefined;
775
+ locale?: Record<string, unknown> | undefined;
776
+ servingStatuses?: string[] | undefined;
777
+ test?: boolean | undefined;
778
+ changeAuditStamps?: Record<string, unknown> | undefined;
779
+ }[];
780
+ metadata?: {
781
+ [x: string]: unknown;
782
+ nextPageToken?: string | undefined;
783
+ } | undefined;
784
+ }>;
785
+ getAnalytics: (ctx: import("..").LinkedInContext, args: {
786
+ pivot: "COMPANY" | "ACCOUNT" | "SHARE" | "CAMPAIGN" | "CREATIVE" | "CAMPAIGN_GROUP" | "CONVERSION" | "CONVERSATION_NODE" | "CONVERSATION_NODE_OPTION_INDEX" | "SERVING_LOCATION" | "CARD_INDEX" | "MEMBER_COMPANY_SIZE" | "MEMBER_INDUSTRY" | "MEMBER_SENIORITY" | "MEMBER_JOB_TITLE" | "MEMBER_JOB_FUNCTION" | "MEMBER_COUNTRY_V2" | "MEMBER_REGION_V2" | "MEMBER_COUNTY" | "MEMBER_COMPANY" | "MEMBER_DESIGNATED_MARKET_AREA" | "PLACEMENT_NAME" | "IMPRESSION_DEVICE_TYPE" | "EVENT_STAGE";
787
+ time_granularity: "ALL" | "DAILY" | "MONTHLY" | "YEARLY";
788
+ date_range: {
789
+ start: {
790
+ year: number;
791
+ month: number;
792
+ day: number;
793
+ };
794
+ end?: {
795
+ year: number;
796
+ month: number;
797
+ day: number;
798
+ } | undefined;
799
+ };
800
+ accounts?: string[] | undefined;
801
+ campaigns?: string[] | undefined;
802
+ campaign_groups?: string[] | undefined;
803
+ fields?: string[] | undefined;
804
+ }) => Promise<{
805
+ [x: string]: unknown;
806
+ elements: {
807
+ [x: string]: unknown;
808
+ pivotValues?: string[] | undefined;
809
+ dateRange?: {
810
+ [x: string]: unknown;
811
+ start?: {
812
+ [x: string]: unknown;
813
+ year?: number | undefined;
814
+ month?: number | undefined;
815
+ day?: number | undefined;
816
+ } | undefined;
817
+ end?: {
818
+ [x: string]: unknown;
819
+ year?: number | undefined;
820
+ month?: number | undefined;
821
+ day?: number | undefined;
822
+ } | undefined;
823
+ } | undefined;
824
+ impressions?: number | undefined;
825
+ clicks?: number | undefined;
826
+ costInLocalCurrency?: string | undefined;
827
+ }[];
828
+ paging?: {
829
+ [x: string]: unknown;
323
830
  start?: number | undefined;
324
831
  count?: number | undefined;
325
832
  total?: number | undefined;