x-twitter-scraper 0.15.0 → 0.17.0
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 +63 -5
- package/README.md +1 -0
- package/client.d.mts +12 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/detect-platform.d.mts +3 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts +3 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/account.d.mts +5 -0
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +5 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/compose.d.mts +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/drafts.d.mts +13 -3
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +13 -3
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +1 -1
- package/resources/drafts.mjs +1 -1
- package/resources/events.d.mts +100 -29
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +100 -29
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +2 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js +3 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs +1 -0
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +15 -65
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +15 -65
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/monitors.d.mts +12 -5
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +12 -5
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +4 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +4 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +344 -0
- package/resources/monitors/posts.d.mts.map +1 -0
- package/resources/monitors/posts.d.ts +344 -0
- package/resources/monitors/posts.d.ts.map +1 -0
- package/resources/monitors/posts.js +94 -0
- package/resources/monitors/posts.js.map +1 -0
- package/resources/monitors/posts.mjs +90 -0
- package/resources/monitors/posts.mjs.map +1 -0
- package/resources/shared.d.mts +671 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +671 -7
- package/resources/shared.d.ts.map +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +26 -25
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +26 -25
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/webhooks.d.mts +10 -4
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +10 -4
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/accounts.d.mts +14 -4
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +14 -4
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +6 -4
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +6 -4
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +3 -127
- package/resources/x/broadcasts.d.mts.map +1 -1
- package/resources/x/broadcasts.d.ts +3 -127
- package/resources/x/broadcasts.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +92 -1
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +92 -1
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +14 -0
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +14 -0
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +1 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +1 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/community-notes.d.mts +122 -510
- package/resources/x/community-notes.d.mts.map +1 -1
- package/resources/x/community-notes.d.ts +122 -510
- package/resources/x/community-notes.d.ts.map +1 -1
- package/resources/x/community-notes.js.map +1 -1
- package/resources/x/community-notes.mjs.map +1 -1
- package/resources/x/index.d.mts +7 -6
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +7 -6
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +3 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +1 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +144 -283
- package/resources/x/jobs.d.mts.map +1 -1
- package/resources/x/jobs.d.ts +144 -283
- package/resources/x/jobs.d.ts.map +1 -1
- package/resources/x/jobs.js.map +1 -1
- package/resources/x/jobs.mjs.map +1 -1
- package/resources/x/lists.d.mts +27 -425
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +27 -425
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/media.d.mts +13 -2
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +13 -2
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +13 -4
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +13 -4
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/spaces.d.mts +213 -669
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts +213 -669
- package/resources/x/spaces.d.ts.map +1 -1
- package/resources/x/spaces.js.map +1 -1
- package/resources/x/spaces.mjs.map +1 -1
- package/resources/x/sports.d.mts +1349 -0
- package/resources/x/sports.d.mts.map +1 -0
- package/resources/x/sports.d.ts +1349 -0
- package/resources/x/sports.d.ts.map +1 -0
- package/resources/x/sports.js +76 -0
- package/resources/x/sports.js.map +1 -0
- package/resources/x/sports.mjs +72 -0
- package/resources/x/sports.mjs.map +1 -0
- package/resources/x/tweets/tweets.d.mts +32 -24
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +32 -24
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/users.d.mts +62 -614
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +62 -614
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/x.d.mts +63 -118
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +63 -118
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -0
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -0
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
- package/src/client.ts +12 -0
- package/src/internal/detect-platform.ts +2 -2
- package/src/internal/uploads.ts +1 -1
- package/src/resources/account.ts +6 -0
- package/src/resources/compose.ts +1 -1
- package/src/resources/drafts.ts +14 -2
- package/src/resources/events.ts +137 -29
- package/src/resources/index.ts +2 -0
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +15 -79
- package/src/resources/monitors/monitors.ts +52 -3
- package/src/resources/monitors/posts.ts +463 -0
- package/src/resources/shared.ts +897 -215
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +29 -25
- package/src/resources/webhooks.ts +11 -4
- package/src/resources/x/accounts.ts +19 -4
- package/src/resources/x/broadcasts.ts +3 -154
- package/src/resources/x/communities/communities.ts +113 -0
- package/src/resources/x/communities/index.ts +3 -0
- package/src/resources/x/community-notes.ts +137 -582
- package/src/resources/x/index.ts +62 -0
- package/src/resources/x/jobs.ts +160 -324
- package/src/resources/x/lists.ts +27 -499
- package/src/resources/x/media.ts +15 -2
- package/src/resources/x/profile.ts +15 -4
- package/src/resources/x/spaces.ts +227 -787
- package/src/resources/x/sports.ts +1675 -0
- package/src/resources/x/tweets/tweets.ts +41 -26
- package/src/resources/x/users/users.ts +62 -721
- package/src/resources/x/x.ts +185 -128
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/src/lib/.keep +0 -2
package/resources/x/jobs.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as JobsAPI from "./jobs.js";
|
|
2
3
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
5
|
/**
|
|
@@ -44,168 +45,177 @@ export declare class Jobs extends APIResource {
|
|
|
44
45
|
*/
|
|
45
46
|
search(query: JobSearchParams, options?: RequestOptions): APIPromise<JobSearchResponse>;
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Public X job listing. A search returns the fields down to the salary, plus
|
|
50
|
+
* company & account. A lookup adds work type, seniority, function, team &
|
|
51
|
+
* descriptions. A field X leaves empty is left out.
|
|
52
|
+
*/
|
|
53
|
+
export interface Job {
|
|
48
54
|
/**
|
|
49
|
-
*
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
* Job ID.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
/**
|
|
59
|
+
* The job page on X.
|
|
60
|
+
*/
|
|
61
|
+
url: string;
|
|
62
|
+
/**
|
|
63
|
+
* The X account that posted a job. A job has none when X imported it from a job
|
|
64
|
+
* board or no longer shows the account.
|
|
65
|
+
*/
|
|
66
|
+
account?: Job.Account;
|
|
67
|
+
/**
|
|
68
|
+
* Where applicants apply, off X.
|
|
69
|
+
*/
|
|
70
|
+
applyUrl?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The company profile of a job X imported from a job board.
|
|
73
|
+
*/
|
|
74
|
+
company?: Job.Company;
|
|
75
|
+
/**
|
|
76
|
+
* Full description as plain text, 1 line per paragraph.
|
|
77
|
+
*/
|
|
78
|
+
description?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Full description as Markdown, with headings, lists, links, bold & italics.
|
|
81
|
+
*/
|
|
82
|
+
descriptionMarkdown?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Contract type (full_time, full_time_contract, part_time or contract_to_hire).
|
|
85
|
+
*/
|
|
86
|
+
employmentType?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Whether X features the job.
|
|
89
|
+
*/
|
|
90
|
+
featured?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Salary as X shows it.
|
|
93
|
+
*/
|
|
94
|
+
formattedSalary?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Job function, such as software_engineering.
|
|
97
|
+
*/
|
|
98
|
+
jobFunction?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Location as the employer wrote it.
|
|
101
|
+
*/
|
|
102
|
+
location?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Where the work happens (onsite, remote or hybrid).
|
|
105
|
+
*/
|
|
106
|
+
locationType?: string;
|
|
107
|
+
/**
|
|
108
|
+
* When the employer posted the job.
|
|
109
|
+
*/
|
|
110
|
+
postedAt?: string;
|
|
111
|
+
/**
|
|
112
|
+
* ISO 4217 currency code of the salary.
|
|
52
113
|
*/
|
|
53
|
-
|
|
114
|
+
salaryCurrencyCode?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Pay period of the salary (annually or hourly).
|
|
117
|
+
*/
|
|
118
|
+
salaryInterval?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Highest salary, in salaryCurrencyCode per salaryInterval.
|
|
121
|
+
*/
|
|
122
|
+
salaryMax?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Lowest salary, in salaryCurrencyCode per salaryInterval.
|
|
125
|
+
*/
|
|
126
|
+
salaryMin?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Seniority (intern, entry_level, junior, mid_level, senior, lead, manager or
|
|
129
|
+
* executive).
|
|
130
|
+
*/
|
|
131
|
+
seniorityLevel?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Short summary of the job, as plain text.
|
|
134
|
+
*/
|
|
135
|
+
shortDescription?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Team inside the company.
|
|
138
|
+
*/
|
|
139
|
+
team?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Job title.
|
|
142
|
+
*/
|
|
143
|
+
title?: string;
|
|
54
144
|
}
|
|
55
|
-
export declare namespace
|
|
145
|
+
export declare namespace Job {
|
|
56
146
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* descriptions. A field X leaves empty is left out.
|
|
147
|
+
* The X account that posted a job. A job has none when X imported it from a job
|
|
148
|
+
* board or no longer shows the account.
|
|
60
149
|
*/
|
|
61
|
-
interface
|
|
150
|
+
interface Account {
|
|
62
151
|
/**
|
|
63
|
-
*
|
|
152
|
+
* X user ID of the account.
|
|
64
153
|
*/
|
|
65
154
|
id: string;
|
|
66
155
|
/**
|
|
67
|
-
*
|
|
156
|
+
* Whether X shows a verification badge on the account.
|
|
68
157
|
*/
|
|
69
|
-
|
|
158
|
+
verified: boolean;
|
|
70
159
|
/**
|
|
71
|
-
*
|
|
72
|
-
* board or no longer shows the account.
|
|
73
|
-
*/
|
|
74
|
-
account?: Job.Account;
|
|
75
|
-
/**
|
|
76
|
-
* Where applicants apply, off X.
|
|
77
|
-
*/
|
|
78
|
-
applyUrl?: string;
|
|
79
|
-
/**
|
|
80
|
-
* The company profile of a job X imported from a job board.
|
|
81
|
-
*/
|
|
82
|
-
company?: Job.Company;
|
|
83
|
-
/**
|
|
84
|
-
* Full description as plain text, 1 line per paragraph.
|
|
160
|
+
* Bio of the account. A job lookup returns it.
|
|
85
161
|
*/
|
|
86
162
|
description?: string;
|
|
87
163
|
/**
|
|
88
|
-
*
|
|
89
|
-
*/
|
|
90
|
-
descriptionMarkdown?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Contract type (full_time, full_time_contract, part_time or contract_to_hire).
|
|
93
|
-
*/
|
|
94
|
-
employmentType?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Whether X features the job.
|
|
97
|
-
*/
|
|
98
|
-
featured?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Salary as X shows it.
|
|
101
|
-
*/
|
|
102
|
-
formattedSalary?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Job function, such as software_engineering.
|
|
105
|
-
*/
|
|
106
|
-
jobFunction?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Location as the employer wrote it.
|
|
109
|
-
*/
|
|
110
|
-
location?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Where the work happens (onsite, remote or hybrid).
|
|
113
|
-
*/
|
|
114
|
-
locationType?: string;
|
|
115
|
-
/**
|
|
116
|
-
* When the employer posted the job.
|
|
164
|
+
* Display name of the account that posted the job.
|
|
117
165
|
*/
|
|
118
|
-
|
|
166
|
+
name?: string;
|
|
119
167
|
/**
|
|
120
|
-
*
|
|
168
|
+
* Avatar shape, such as Circle or Square.
|
|
121
169
|
*/
|
|
122
|
-
|
|
170
|
+
profileImageShape?: string;
|
|
123
171
|
/**
|
|
124
|
-
*
|
|
172
|
+
* Avatar URL of the account that posted the job.
|
|
125
173
|
*/
|
|
126
|
-
|
|
174
|
+
profilePicture?: string;
|
|
127
175
|
/**
|
|
128
|
-
*
|
|
176
|
+
* The job account's avatar at full size.
|
|
129
177
|
*/
|
|
130
|
-
|
|
178
|
+
profilePictureOriginal?: string;
|
|
131
179
|
/**
|
|
132
|
-
*
|
|
180
|
+
* Handle without @.
|
|
133
181
|
*/
|
|
134
|
-
|
|
182
|
+
username?: string;
|
|
135
183
|
/**
|
|
136
|
-
*
|
|
137
|
-
* executive).
|
|
184
|
+
* Badge type, such as Business or Government.
|
|
138
185
|
*/
|
|
139
|
-
|
|
186
|
+
verifiedType?: string;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* The company profile of a job X imported from a job board.
|
|
190
|
+
*/
|
|
191
|
+
interface Company {
|
|
140
192
|
/**
|
|
141
|
-
*
|
|
193
|
+
* X company profile ID.
|
|
142
194
|
*/
|
|
143
|
-
|
|
195
|
+
id: string;
|
|
144
196
|
/**
|
|
145
|
-
*
|
|
197
|
+
* Company logo URL.
|
|
146
198
|
*/
|
|
147
|
-
|
|
199
|
+
logoUrl?: string;
|
|
148
200
|
/**
|
|
149
|
-
*
|
|
201
|
+
* Company name.
|
|
150
202
|
*/
|
|
151
|
-
|
|
203
|
+
name?: string;
|
|
152
204
|
}
|
|
205
|
+
}
|
|
206
|
+
export interface JobRetrieveResponse {
|
|
207
|
+
/**
|
|
208
|
+
* Public X job listing. A search returns the fields down to the salary, plus
|
|
209
|
+
* company & account. A lookup adds work type, seniority, function, team &
|
|
210
|
+
* descriptions. A field X leaves empty is left out.
|
|
211
|
+
*/
|
|
212
|
+
job: Job;
|
|
213
|
+
}
|
|
214
|
+
export declare namespace JobRetrieveResponse {
|
|
215
|
+
type Job = JobsAPI.Job;
|
|
153
216
|
namespace Job {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
* board or no longer shows the account.
|
|
157
|
-
*/
|
|
158
|
-
interface Account {
|
|
159
|
-
/**
|
|
160
|
-
* X user ID of the account.
|
|
161
|
-
*/
|
|
162
|
-
id: string;
|
|
163
|
-
/**
|
|
164
|
-
* Whether X shows a verification badge on the account.
|
|
165
|
-
*/
|
|
166
|
-
verified: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Bio of the account. A job lookup returns it.
|
|
169
|
-
*/
|
|
170
|
-
description?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Display name of the account that posted the job.
|
|
173
|
-
*/
|
|
174
|
-
name?: string;
|
|
175
|
-
/**
|
|
176
|
-
* Avatar shape, such as Circle or Square.
|
|
177
|
-
*/
|
|
178
|
-
profileImageShape?: string;
|
|
179
|
-
/**
|
|
180
|
-
* Avatar URL of the account that posted the job.
|
|
181
|
-
*/
|
|
182
|
-
profilePicture?: string;
|
|
183
|
-
/**
|
|
184
|
-
* Handle without @.
|
|
185
|
-
*/
|
|
186
|
-
username?: string;
|
|
187
|
-
/**
|
|
188
|
-
* Badge type, such as Business or Government.
|
|
189
|
-
*/
|
|
190
|
-
verifiedType?: string;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* The company profile of a job X imported from a job board.
|
|
194
|
-
*/
|
|
195
|
-
interface Company {
|
|
196
|
-
/**
|
|
197
|
-
* X company profile ID.
|
|
198
|
-
*/
|
|
199
|
-
id: string;
|
|
200
|
-
/**
|
|
201
|
-
* Company logo URL.
|
|
202
|
-
*/
|
|
203
|
-
logoUrl?: string;
|
|
204
|
-
/**
|
|
205
|
-
* Company name.
|
|
206
|
-
*/
|
|
207
|
-
name?: string;
|
|
208
|
-
}
|
|
217
|
+
type Account = JobsAPI.Job.Account;
|
|
218
|
+
type Company = JobsAPI.Job.Company;
|
|
209
219
|
}
|
|
210
220
|
}
|
|
211
221
|
/**
|
|
@@ -242,163 +252,14 @@ export declare namespace JobListLocationsResponse {
|
|
|
242
252
|
*/
|
|
243
253
|
export interface JobSearchResponse {
|
|
244
254
|
has_next_page: boolean;
|
|
245
|
-
jobs: Array<
|
|
255
|
+
jobs: Array<Job>;
|
|
246
256
|
next_cursor: string;
|
|
247
257
|
}
|
|
248
258
|
export declare namespace JobSearchResponse {
|
|
249
|
-
|
|
250
|
-
* Public X job listing. A search returns the fields down to the salary, plus
|
|
251
|
-
* company & account. A lookup adds work type, seniority, function, team &
|
|
252
|
-
* descriptions. A field X leaves empty is left out.
|
|
253
|
-
*/
|
|
254
|
-
interface Job {
|
|
255
|
-
/**
|
|
256
|
-
* Job ID.
|
|
257
|
-
*/
|
|
258
|
-
id: string;
|
|
259
|
-
/**
|
|
260
|
-
* The job page on X.
|
|
261
|
-
*/
|
|
262
|
-
url: string;
|
|
263
|
-
/**
|
|
264
|
-
* The X account that posted a job. A job has none when X imported it from a job
|
|
265
|
-
* board or no longer shows the account.
|
|
266
|
-
*/
|
|
267
|
-
account?: Job.Account;
|
|
268
|
-
/**
|
|
269
|
-
* Where applicants apply, off X.
|
|
270
|
-
*/
|
|
271
|
-
applyUrl?: string;
|
|
272
|
-
/**
|
|
273
|
-
* The company profile of a job X imported from a job board.
|
|
274
|
-
*/
|
|
275
|
-
company?: Job.Company;
|
|
276
|
-
/**
|
|
277
|
-
* Full description as plain text, 1 line per paragraph.
|
|
278
|
-
*/
|
|
279
|
-
description?: string;
|
|
280
|
-
/**
|
|
281
|
-
* Full description as Markdown, with headings, lists, links, bold & italics.
|
|
282
|
-
*/
|
|
283
|
-
descriptionMarkdown?: string;
|
|
284
|
-
/**
|
|
285
|
-
* Contract type (full_time, full_time_contract, part_time or contract_to_hire).
|
|
286
|
-
*/
|
|
287
|
-
employmentType?: string;
|
|
288
|
-
/**
|
|
289
|
-
* Whether X features the job.
|
|
290
|
-
*/
|
|
291
|
-
featured?: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* Salary as X shows it.
|
|
294
|
-
*/
|
|
295
|
-
formattedSalary?: string;
|
|
296
|
-
/**
|
|
297
|
-
* Job function, such as software_engineering.
|
|
298
|
-
*/
|
|
299
|
-
jobFunction?: string;
|
|
300
|
-
/**
|
|
301
|
-
* Location as the employer wrote it.
|
|
302
|
-
*/
|
|
303
|
-
location?: string;
|
|
304
|
-
/**
|
|
305
|
-
* Where the work happens (onsite, remote or hybrid).
|
|
306
|
-
*/
|
|
307
|
-
locationType?: string;
|
|
308
|
-
/**
|
|
309
|
-
* When the employer posted the job.
|
|
310
|
-
*/
|
|
311
|
-
postedAt?: string;
|
|
312
|
-
/**
|
|
313
|
-
* ISO 4217 currency code of the salary.
|
|
314
|
-
*/
|
|
315
|
-
salaryCurrencyCode?: string;
|
|
316
|
-
/**
|
|
317
|
-
* Pay period of the salary (annually or hourly).
|
|
318
|
-
*/
|
|
319
|
-
salaryInterval?: string;
|
|
320
|
-
/**
|
|
321
|
-
* Highest salary, in salaryCurrencyCode per salaryInterval.
|
|
322
|
-
*/
|
|
323
|
-
salaryMax?: number;
|
|
324
|
-
/**
|
|
325
|
-
* Lowest salary, in salaryCurrencyCode per salaryInterval.
|
|
326
|
-
*/
|
|
327
|
-
salaryMin?: number;
|
|
328
|
-
/**
|
|
329
|
-
* Seniority (intern, entry_level, junior, mid_level, senior, lead, manager or
|
|
330
|
-
* executive).
|
|
331
|
-
*/
|
|
332
|
-
seniorityLevel?: string;
|
|
333
|
-
/**
|
|
334
|
-
* Short summary of the job, as plain text.
|
|
335
|
-
*/
|
|
336
|
-
shortDescription?: string;
|
|
337
|
-
/**
|
|
338
|
-
* Team inside the company.
|
|
339
|
-
*/
|
|
340
|
-
team?: string;
|
|
341
|
-
/**
|
|
342
|
-
* Job title.
|
|
343
|
-
*/
|
|
344
|
-
title?: string;
|
|
345
|
-
}
|
|
259
|
+
type Job = JobsAPI.Job;
|
|
346
260
|
namespace Job {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
* board or no longer shows the account.
|
|
350
|
-
*/
|
|
351
|
-
interface Account {
|
|
352
|
-
/**
|
|
353
|
-
* X user ID of the account.
|
|
354
|
-
*/
|
|
355
|
-
id: string;
|
|
356
|
-
/**
|
|
357
|
-
* Whether X shows a verification badge on the account.
|
|
358
|
-
*/
|
|
359
|
-
verified: boolean;
|
|
360
|
-
/**
|
|
361
|
-
* Bio of the account. A job lookup returns it.
|
|
362
|
-
*/
|
|
363
|
-
description?: string;
|
|
364
|
-
/**
|
|
365
|
-
* Display name of the account that posted the job.
|
|
366
|
-
*/
|
|
367
|
-
name?: string;
|
|
368
|
-
/**
|
|
369
|
-
* Avatar shape, such as Circle or Square.
|
|
370
|
-
*/
|
|
371
|
-
profileImageShape?: string;
|
|
372
|
-
/**
|
|
373
|
-
* Avatar URL of the account that posted the job.
|
|
374
|
-
*/
|
|
375
|
-
profilePicture?: string;
|
|
376
|
-
/**
|
|
377
|
-
* Handle without @.
|
|
378
|
-
*/
|
|
379
|
-
username?: string;
|
|
380
|
-
/**
|
|
381
|
-
* Badge type, such as Business or Government.
|
|
382
|
-
*/
|
|
383
|
-
verifiedType?: string;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* The company profile of a job X imported from a job board.
|
|
387
|
-
*/
|
|
388
|
-
interface Company {
|
|
389
|
-
/**
|
|
390
|
-
* X company profile ID.
|
|
391
|
-
*/
|
|
392
|
-
id: string;
|
|
393
|
-
/**
|
|
394
|
-
* Company logo URL.
|
|
395
|
-
*/
|
|
396
|
-
logoUrl?: string;
|
|
397
|
-
/**
|
|
398
|
-
* Company name.
|
|
399
|
-
*/
|
|
400
|
-
name?: string;
|
|
401
|
-
}
|
|
261
|
+
type Account = JobsAPI.Job.Account;
|
|
262
|
+
type Company = JobsAPI.Job.Company;
|
|
402
263
|
}
|
|
403
264
|
}
|
|
404
265
|
export interface JobRetrieveParams {
|
|
@@ -501,6 +362,6 @@ export interface JobSearchParams {
|
|
|
501
362
|
seniority?: string;
|
|
502
363
|
}
|
|
503
364
|
export declare namespace Jobs {
|
|
504
|
-
export { type JobRetrieveResponse as JobRetrieveResponse, type JobListLocationsResponse as JobListLocationsResponse, type JobSearchResponse as JobSearchResponse, type JobRetrieveParams as JobRetrieveParams, type JobListLocationsParams as JobListLocationsParams, type JobSearchParams as JobSearchParams, };
|
|
365
|
+
export { type Job as Job, type JobRetrieveResponse as JobRetrieveResponse, type JobListLocationsResponse as JobListLocationsResponse, type JobSearchResponse as JobSearchResponse, type JobRetrieveParams as JobRetrieveParams, type JobListLocationsParams as JobListLocationsParams, type JobSearchParams as JobSearchParams, };
|
|
505
366
|
}
|
|
506
367
|
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/x/jobs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KA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O,EACL,KAAK,GAAG,IAAI,GAAG,EACf,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/x/jobs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/x/jobs.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,qDAAkD;
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/x/jobs.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,qDAAkD;AAIlD,uDAAiD;AAEjD;;GAEG;AACH,UAAkB,SAAQ,sBAAW;IACnC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,KAAK,GAAyC,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
|
package/resources/x/jobs.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/x/jobs.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,gCAA4B;
|
|
1
|
+
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/x/jobs.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,KAAK,GAAyC,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
|