@usesocial/cli 0.19.3 → 0.19.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.mjs +100 -115
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @usesocial/cli
|
|
2
2
|
|
|
3
|
+
## 0.19.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143](https://github.com/usesocial/monorepo/pull/143) [`4def923`](https://github.com/usesocial/monorepo/commit/4def923f4d4abb77528a37ebd2bf3093eb6e8ac0) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Align LinkedIn people, company, and post search with Unipile's cursor pagination contract.
|
|
8
|
+
|
|
3
9
|
## 0.19.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.mjs
CHANGED
|
@@ -11323,6 +11323,8 @@ pgTable("account_connect_attempts", {
|
|
|
11323
11323
|
operationKey: text$1("operation_key").notNull(),
|
|
11324
11324
|
billingPaymentURL: text$1("billing_payment_url"),
|
|
11325
11325
|
billingRequiredAction: jsonb("billing_required_action").$type(),
|
|
11326
|
+
failureCode: text$1("failure_code"),
|
|
11327
|
+
failureStage: text$1("failure_stage"),
|
|
11326
11328
|
hostedAuthBindingId: text$1("hosted_auth_binding_id"),
|
|
11327
11329
|
hostedAuthAccountId: text$1("hosted_auth_account_id"),
|
|
11328
11330
|
hostedAuthBoundAt: timestamptz("hosted_auth_bound_at"),
|
|
@@ -13223,19 +13225,20 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13223
13225
|
},
|
|
13224
13226
|
parameters: [
|
|
13225
13227
|
{
|
|
13226
|
-
name: "
|
|
13228
|
+
name: "cursor",
|
|
13227
13229
|
in: "query",
|
|
13228
13230
|
required: false,
|
|
13229
|
-
kind: "
|
|
13230
|
-
|
|
13231
|
-
description: "Rows to return (1-20)"
|
|
13231
|
+
kind: "string",
|
|
13232
|
+
description: "Pagination cursor"
|
|
13232
13233
|
},
|
|
13233
13234
|
{
|
|
13234
|
-
name: "
|
|
13235
|
+
name: "limit",
|
|
13235
13236
|
in: "query",
|
|
13236
13237
|
required: false,
|
|
13237
|
-
kind: "
|
|
13238
|
-
|
|
13238
|
+
kind: "integer",
|
|
13239
|
+
min: 1,
|
|
13240
|
+
max: 20,
|
|
13241
|
+
description: "Rows to return (1-20)"
|
|
13239
13242
|
},
|
|
13240
13243
|
{
|
|
13241
13244
|
name: "before",
|
|
@@ -13314,18 +13317,19 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13314
13317
|
description: "An offset used for pagination, if supported by the provider, else use cursor."
|
|
13315
13318
|
},
|
|
13316
13319
|
{
|
|
13317
|
-
name: "
|
|
13320
|
+
name: "cursor",
|
|
13318
13321
|
in: "query",
|
|
13319
13322
|
required: false,
|
|
13320
|
-
kind: "
|
|
13321
|
-
description: "
|
|
13323
|
+
kind: "string",
|
|
13324
|
+
description: "Pagination cursor"
|
|
13322
13325
|
},
|
|
13323
13326
|
{
|
|
13324
|
-
name: "
|
|
13327
|
+
name: "limit",
|
|
13325
13328
|
in: "query",
|
|
13326
13329
|
required: false,
|
|
13327
|
-
kind: "
|
|
13328
|
-
|
|
13330
|
+
kind: "integer",
|
|
13331
|
+
min: 1,
|
|
13332
|
+
description: "Rows to return (1-250)"
|
|
13329
13333
|
},
|
|
13330
13334
|
{
|
|
13331
13335
|
name: "chat_id",
|
|
@@ -13412,6 +13416,8 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13412
13416
|
in: "query",
|
|
13413
13417
|
required: false,
|
|
13414
13418
|
kind: "integer",
|
|
13419
|
+
min: 1,
|
|
13420
|
+
max: 100,
|
|
13415
13421
|
description: "Rows to return (1-100)"
|
|
13416
13422
|
},
|
|
13417
13423
|
{
|
|
@@ -13514,6 +13520,7 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13514
13520
|
in: "query",
|
|
13515
13521
|
required: false,
|
|
13516
13522
|
kind: "integer",
|
|
13523
|
+
min: 1,
|
|
13517
13524
|
description: "Rows to return (1-100)"
|
|
13518
13525
|
},
|
|
13519
13526
|
{
|
|
@@ -13576,6 +13583,7 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13576
13583
|
in: "query",
|
|
13577
13584
|
required: false,
|
|
13578
13585
|
kind: "integer",
|
|
13586
|
+
min: 1,
|
|
13579
13587
|
description: "Rows to return (1-100)"
|
|
13580
13588
|
},
|
|
13581
13589
|
{
|
|
@@ -13607,9 +13615,9 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13607
13615
|
capability: "read",
|
|
13608
13616
|
mutates: false,
|
|
13609
13617
|
pagination: {
|
|
13610
|
-
style: "
|
|
13611
|
-
|
|
13612
|
-
|
|
13618
|
+
style: "cursor",
|
|
13619
|
+
cursorParam: "cursor",
|
|
13620
|
+
cursorPath: "next_cursor",
|
|
13613
13621
|
totalCountPath: "total_count",
|
|
13614
13622
|
itemsPath: "data"
|
|
13615
13623
|
},
|
|
@@ -13617,29 +13625,19 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13617
13625
|
billingCategory: "user_read",
|
|
13618
13626
|
kind: "search"
|
|
13619
13627
|
},
|
|
13620
|
-
parameters: [
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
description: "Rows to return (1-100)"
|
|
13634
|
-
},
|
|
13635
|
-
{
|
|
13636
|
-
name: "keywords",
|
|
13637
|
-
in: "query",
|
|
13638
|
-
required: true,
|
|
13639
|
-
kind: "string",
|
|
13640
|
-
description: "Search keywords"
|
|
13641
|
-
}
|
|
13642
|
-
]
|
|
13628
|
+
parameters: [{
|
|
13629
|
+
name: "cursor",
|
|
13630
|
+
in: "query",
|
|
13631
|
+
required: false,
|
|
13632
|
+
kind: "string",
|
|
13633
|
+
description: "Pagination cursor"
|
|
13634
|
+
}, {
|
|
13635
|
+
name: "keywords",
|
|
13636
|
+
in: "query",
|
|
13637
|
+
required: true,
|
|
13638
|
+
kind: "string",
|
|
13639
|
+
description: "Search keywords"
|
|
13640
|
+
}]
|
|
13643
13641
|
},
|
|
13644
13642
|
{
|
|
13645
13643
|
schemaBaseName: "SearchJobs",
|
|
@@ -13683,6 +13681,8 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13683
13681
|
in: "query",
|
|
13684
13682
|
required: false,
|
|
13685
13683
|
kind: "integer",
|
|
13684
|
+
min: 1,
|
|
13685
|
+
max: 100,
|
|
13686
13686
|
description: "Rows to return (1-100)"
|
|
13687
13687
|
},
|
|
13688
13688
|
{
|
|
@@ -13713,9 +13713,9 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13713
13713
|
capability: "read",
|
|
13714
13714
|
mutates: false,
|
|
13715
13715
|
pagination: {
|
|
13716
|
-
style: "
|
|
13717
|
-
|
|
13718
|
-
|
|
13716
|
+
style: "cursor",
|
|
13717
|
+
cursorParam: "cursor",
|
|
13718
|
+
cursorPath: "next_cursor",
|
|
13719
13719
|
totalCountPath: "total_count",
|
|
13720
13720
|
itemsPath: "data"
|
|
13721
13721
|
},
|
|
@@ -13723,29 +13723,19 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13723
13723
|
billingCategory: "user_read",
|
|
13724
13724
|
kind: "search"
|
|
13725
13725
|
},
|
|
13726
|
-
parameters: [
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
description: "Rows to return (1-100)"
|
|
13740
|
-
},
|
|
13741
|
-
{
|
|
13742
|
-
name: "keywords",
|
|
13743
|
-
in: "query",
|
|
13744
|
-
required: true,
|
|
13745
|
-
kind: "string",
|
|
13746
|
-
description: "Search keywords"
|
|
13747
|
-
}
|
|
13748
|
-
]
|
|
13726
|
+
parameters: [{
|
|
13727
|
+
name: "cursor",
|
|
13728
|
+
in: "query",
|
|
13729
|
+
required: false,
|
|
13730
|
+
kind: "string",
|
|
13731
|
+
description: "Pagination cursor"
|
|
13732
|
+
}, {
|
|
13733
|
+
name: "keywords",
|
|
13734
|
+
in: "query",
|
|
13735
|
+
required: true,
|
|
13736
|
+
kind: "string",
|
|
13737
|
+
description: "Search keywords"
|
|
13738
|
+
}]
|
|
13749
13739
|
},
|
|
13750
13740
|
{
|
|
13751
13741
|
schemaBaseName: "SearchPosts",
|
|
@@ -13766,9 +13756,9 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13766
13756
|
capability: "read",
|
|
13767
13757
|
mutates: false,
|
|
13768
13758
|
pagination: {
|
|
13769
|
-
style: "
|
|
13770
|
-
|
|
13771
|
-
|
|
13759
|
+
style: "cursor",
|
|
13760
|
+
cursorParam: "cursor",
|
|
13761
|
+
cursorPath: "next_cursor",
|
|
13772
13762
|
totalCountPath: "total_count",
|
|
13773
13763
|
itemsPath: "data"
|
|
13774
13764
|
},
|
|
@@ -13776,29 +13766,19 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13776
13766
|
billingCategory: "posts_read",
|
|
13777
13767
|
kind: "search"
|
|
13778
13768
|
},
|
|
13779
|
-
parameters: [
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13789
|
-
|
|
13790
|
-
|
|
13791
|
-
|
|
13792
|
-
description: "Rows to return (1-100)"
|
|
13793
|
-
},
|
|
13794
|
-
{
|
|
13795
|
-
name: "keywords",
|
|
13796
|
-
in: "query",
|
|
13797
|
-
required: true,
|
|
13798
|
-
kind: "string",
|
|
13799
|
-
description: "Search keywords"
|
|
13800
|
-
}
|
|
13801
|
-
]
|
|
13769
|
+
parameters: [{
|
|
13770
|
+
name: "cursor",
|
|
13771
|
+
in: "query",
|
|
13772
|
+
required: false,
|
|
13773
|
+
kind: "string",
|
|
13774
|
+
description: "Pagination cursor"
|
|
13775
|
+
}, {
|
|
13776
|
+
name: "keywords",
|
|
13777
|
+
in: "query",
|
|
13778
|
+
required: true,
|
|
13779
|
+
kind: "string",
|
|
13780
|
+
description: "Search keywords"
|
|
13781
|
+
}]
|
|
13802
13782
|
},
|
|
13803
13783
|
{
|
|
13804
13784
|
schemaBaseName: "UserProfile",
|
|
@@ -13881,18 +13861,19 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13881
13861
|
},
|
|
13882
13862
|
parameters: [
|
|
13883
13863
|
{
|
|
13884
|
-
name: "
|
|
13864
|
+
name: "cursor",
|
|
13885
13865
|
in: "query",
|
|
13886
13866
|
required: false,
|
|
13887
|
-
kind: "
|
|
13888
|
-
description: "
|
|
13867
|
+
kind: "string",
|
|
13868
|
+
description: "Pagination cursor"
|
|
13889
13869
|
},
|
|
13890
13870
|
{
|
|
13891
|
-
name: "
|
|
13871
|
+
name: "limit",
|
|
13892
13872
|
in: "query",
|
|
13893
13873
|
required: false,
|
|
13894
|
-
kind: "
|
|
13895
|
-
|
|
13874
|
+
kind: "integer",
|
|
13875
|
+
min: 1,
|
|
13876
|
+
description: "Rows to return (1-100)"
|
|
13896
13877
|
},
|
|
13897
13878
|
{
|
|
13898
13879
|
name: "identifier",
|
|
@@ -13938,18 +13919,19 @@ const LINKEDIN_OPERATIONS = [
|
|
|
13938
13919
|
},
|
|
13939
13920
|
parameters: [
|
|
13940
13921
|
{
|
|
13941
|
-
name: "
|
|
13922
|
+
name: "cursor",
|
|
13942
13923
|
in: "query",
|
|
13943
13924
|
required: false,
|
|
13944
|
-
kind: "
|
|
13945
|
-
description: "
|
|
13925
|
+
kind: "string",
|
|
13926
|
+
description: "Pagination cursor"
|
|
13946
13927
|
},
|
|
13947
13928
|
{
|
|
13948
|
-
name: "
|
|
13929
|
+
name: "limit",
|
|
13949
13930
|
in: "query",
|
|
13950
13931
|
required: false,
|
|
13951
|
-
kind: "
|
|
13952
|
-
|
|
13932
|
+
kind: "integer",
|
|
13933
|
+
min: 1,
|
|
13934
|
+
description: "Rows to return (1-1000)"
|
|
13953
13935
|
},
|
|
13954
13936
|
{
|
|
13955
13937
|
name: "user_id",
|
|
@@ -14006,6 +13988,7 @@ const LINKEDIN_OPERATIONS = [
|
|
|
14006
13988
|
in: "query",
|
|
14007
13989
|
required: false,
|
|
14008
13990
|
kind: "integer",
|
|
13991
|
+
min: 1,
|
|
14009
13992
|
description: "Rows to return (1-100)"
|
|
14010
13993
|
}]
|
|
14011
13994
|
},
|
|
@@ -14047,6 +14030,7 @@ const LINKEDIN_OPERATIONS = [
|
|
|
14047
14030
|
in: "query",
|
|
14048
14031
|
required: false,
|
|
14049
14032
|
kind: "integer",
|
|
14033
|
+
min: 1,
|
|
14050
14034
|
description: "Rows to return (1-100)"
|
|
14051
14035
|
}]
|
|
14052
14036
|
},
|
|
@@ -14532,8 +14516,8 @@ const dataWithAuditableWriteTarget = (op, data, body) => {
|
|
|
14532
14516
|
//#endregion
|
|
14533
14517
|
//#region ../../packages/linkedin/src/cli/types.ts
|
|
14534
14518
|
const MessagesListInput = object({
|
|
14535
|
-
limit: union([string(), number()]).optional(),
|
|
14536
14519
|
cursor: string().optional(),
|
|
14520
|
+
limit: union([string(), number()]).optional(),
|
|
14537
14521
|
before: string().optional(),
|
|
14538
14522
|
after: string().optional()
|
|
14539
14523
|
});
|
|
@@ -14547,8 +14531,8 @@ const MessagesReadInput = object({
|
|
|
14547
14531
|
after: string().optional(),
|
|
14548
14532
|
user_id: string().optional(),
|
|
14549
14533
|
offset: union([string(), number()]).optional(),
|
|
14550
|
-
limit: union([string(), number()]).optional(),
|
|
14551
14534
|
cursor: string().optional(),
|
|
14535
|
+
limit: union([string(), number()]).optional(),
|
|
14552
14536
|
chat_id: string()
|
|
14553
14537
|
});
|
|
14554
14538
|
const MessagesReadOutput = object({
|
|
@@ -14596,8 +14580,7 @@ const PostsReactionsOutput = object({
|
|
|
14596
14580
|
next_cursor: string().optional()
|
|
14597
14581
|
}).passthrough();
|
|
14598
14582
|
const SearchCompaniesInput = object({
|
|
14599
|
-
|
|
14600
|
-
limit: union([string(), number()]).optional(),
|
|
14583
|
+
cursor: string().optional(),
|
|
14601
14584
|
keywords: string()
|
|
14602
14585
|
});
|
|
14603
14586
|
const SearchCompaniesOutput = object({
|
|
@@ -14616,8 +14599,7 @@ const SearchJobsOutput = object({
|
|
|
14616
14599
|
next_cursor: string().optional()
|
|
14617
14600
|
}).passthrough();
|
|
14618
14601
|
const SearchPeopleInput = object({
|
|
14619
|
-
|
|
14620
|
-
limit: union([string(), number()]).optional(),
|
|
14602
|
+
cursor: string().optional(),
|
|
14621
14603
|
keywords: string()
|
|
14622
14604
|
});
|
|
14623
14605
|
const SearchPeopleOutput = object({
|
|
@@ -14626,8 +14608,7 @@ const SearchPeopleOutput = object({
|
|
|
14626
14608
|
next_cursor: string().optional()
|
|
14627
14609
|
}).passthrough();
|
|
14628
14610
|
const SearchPostsInput = object({
|
|
14629
|
-
|
|
14630
|
-
limit: union([string(), number()]).optional(),
|
|
14611
|
+
cursor: string().optional(),
|
|
14631
14612
|
keywords: string()
|
|
14632
14613
|
});
|
|
14633
14614
|
const SearchPostsOutput = object({
|
|
@@ -14642,8 +14623,8 @@ const UserProfileInput = object({
|
|
|
14642
14623
|
});
|
|
14643
14624
|
const UserProfileOutput = record(string(), unknown());
|
|
14644
14625
|
const UserPostsInput = object({
|
|
14645
|
-
limit: union([string(), number()]).optional(),
|
|
14646
14626
|
cursor: string().optional(),
|
|
14627
|
+
limit: union([string(), number()]).optional(),
|
|
14647
14628
|
identifier: string()
|
|
14648
14629
|
});
|
|
14649
14630
|
const UserPostsOutput = object({
|
|
@@ -14652,8 +14633,8 @@ const UserPostsOutput = object({
|
|
|
14652
14633
|
next_cursor: string().optional()
|
|
14653
14634
|
}).passthrough();
|
|
14654
14635
|
const UserConnectionsInput = object({
|
|
14655
|
-
limit: union([string(), number()]).optional(),
|
|
14656
14636
|
cursor: string().optional(),
|
|
14637
|
+
limit: union([string(), number()]).optional(),
|
|
14657
14638
|
user_id: string().optional(),
|
|
14658
14639
|
filter: string().optional()
|
|
14659
14640
|
});
|
|
@@ -14765,6 +14746,8 @@ const PostsCommentOutput = object({
|
|
|
14765
14746
|
]),
|
|
14766
14747
|
public_identifier: string().optional(),
|
|
14767
14748
|
display_name: string(),
|
|
14749
|
+
first_name: string().optional(),
|
|
14750
|
+
last_name: string().optional(),
|
|
14768
14751
|
profile_url: string().optional(),
|
|
14769
14752
|
public_picture_url: string().optional(),
|
|
14770
14753
|
private_picture_download_url: string().optional(),
|
|
@@ -14878,11 +14861,13 @@ const schemas$1 = {
|
|
|
14878
14861
|
]),
|
|
14879
14862
|
public_identifier: string().optional(),
|
|
14880
14863
|
display_name: string(),
|
|
14864
|
+
first_name: string().optional(),
|
|
14865
|
+
last_name: string().optional(),
|
|
14881
14866
|
profile_url: string().optional(),
|
|
14882
14867
|
public_picture_url: string().optional(),
|
|
14883
14868
|
private_picture_download_url: string().optional(),
|
|
14884
14869
|
description: string().optional(),
|
|
14885
|
-
specifics: unknown().optional()
|
|
14870
|
+
specifics: union([record(string(), unknown()), record(string(), unknown())]).optional()
|
|
14886
14871
|
}).passthrough().optional()
|
|
14887
14872
|
}).passthrough(),
|
|
14888
14873
|
RequestsAcceptInput: object({ request_id: string() }),
|
|
@@ -24504,7 +24489,7 @@ function createEnv(opts) {
|
|
|
24504
24489
|
}
|
|
24505
24490
|
//#endregion
|
|
24506
24491
|
//#region package.json
|
|
24507
|
-
var version$1 = "0.19.
|
|
24492
|
+
var version$1 = "0.19.4";
|
|
24508
24493
|
//#endregion
|
|
24509
24494
|
//#region src/lib/env.ts
|
|
24510
24495
|
const URLWithTrailingSlash = url().transform(ensureTrailingSlash);
|