lancer-shared 1.2.27 → 1.2.29

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.
Files changed (200) hide show
  1. package/dist/bundle.cjs.js +127 -7248
  2. package/dist/constants/organization.d.ts +2 -2
  3. package/dist/schemas/account/bidder-account.d.ts +1 -1
  4. package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
  5. package/dist/schemas/organization/index.d.ts +7 -4
  6. package/dist/schemas/organization/organization.d.ts +87 -13
  7. package/dist/types/campaign/campaign.d.ts +3 -4
  8. package/package.json +1 -1
  9. package/dist/constants/account-status.d.ts +0 -3
  10. package/dist/constants/account-status.js +0 -17
  11. package/dist/constants/collections.js +0 -16
  12. package/dist/constants/common-questions.js +0 -60
  13. package/dist/constants/index.js +0 -40
  14. package/dist/constants/job-filter-options.js +0 -268
  15. package/dist/constants/job-status.js +0 -26
  16. package/dist/constants/mappings/countryMapping.js +0 -122
  17. package/dist/constants/mappings/regionMapping.js +0 -242
  18. package/dist/constants/proxies.d.ts +0 -4
  19. package/dist/constants/routes.js +0 -114
  20. package/dist/constants/upwork-accounts.js +0 -21
  21. package/dist/constants/upwork-filters.d.ts +0 -5
  22. package/dist/constants/upwork-filters.js +0 -75
  23. package/dist/index.js +0 -20
  24. package/dist/schemas/account/account-status.js +0 -11
  25. package/dist/schemas/account/bidder-account.js +0 -37
  26. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  27. package/dist/schemas/account/index.js +0 -19
  28. package/dist/schemas/account/manager-account.d.ts +0 -116
  29. package/dist/schemas/account/manager-account.js +0 -38
  30. package/dist/schemas/account/scraper-account.js +0 -37
  31. package/dist/schemas/ai/ai-config.d.ts +0 -36
  32. package/dist/schemas/ai/ai-config.js +0 -12
  33. package/dist/schemas/ai/index.d.ts +0 -3
  34. package/dist/schemas/ai/index.js +0 -19
  35. package/dist/schemas/ai/proposal.d.ts +0 -82
  36. package/dist/schemas/ai/proposal.js +0 -16
  37. package/dist/schemas/ai/suitability.d.ts +0 -37
  38. package/dist/schemas/ai/suitability.js +0 -17
  39. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  40. package/dist/schemas/ai-config/ai-config.js +0 -12
  41. package/dist/schemas/ai-config/index.d.ts +0 -1
  42. package/dist/schemas/ai-config/index.js +0 -17
  43. package/dist/schemas/bid/bid-result.js +0 -15
  44. package/dist/schemas/bid/bid-status.d.ts +0 -30
  45. package/dist/schemas/bid/bid-status.js +0 -15
  46. package/dist/schemas/bid/bid.js +0 -36
  47. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  48. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  49. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  50. package/dist/schemas/bid/index.js +0 -18
  51. package/dist/schemas/bidding/index.d.ts +0 -1
  52. package/dist/schemas/bidding/index.js +0 -17
  53. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  54. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  55. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  56. package/dist/schemas/bidding/proposal-dto.js +0 -18
  57. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
  58. package/dist/schemas/campaign/campaign-analytics.js +0 -41
  59. package/dist/schemas/campaign/campaign-expenses.js +0 -9
  60. package/dist/schemas/campaign/campaign-insights.js +0 -31
  61. package/dist/schemas/campaign/campaign-integrations.js +0 -16
  62. package/dist/schemas/campaign/campaign-job-count.js +0 -6
  63. package/dist/schemas/campaign/campaign.js +0 -44
  64. package/dist/schemas/campaign/index.js +0 -23
  65. package/dist/schemas/chat-message/chat-message.js +0 -13
  66. package/dist/schemas/chat-message/index.js +0 -17
  67. package/dist/schemas/config/agency-config.js +0 -10
  68. package/dist/schemas/config/index.js +0 -17
  69. package/dist/schemas/index.js +0 -32
  70. package/dist/schemas/job/index.js +0 -19
  71. package/dist/schemas/job/job-details.d.ts +0 -335
  72. package/dist/schemas/job/job-details.js +0 -29
  73. package/dist/schemas/job/job-note.d.ts +0 -83
  74. package/dist/schemas/job/job-note.js +0 -30
  75. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  76. package/dist/schemas/job/job-pipeline.js +0 -29
  77. package/dist/schemas/job/job-status.d.ts +0 -3
  78. package/dist/schemas/job/job-status.js +0 -27
  79. package/dist/schemas/job/job-suitability.d.ts +0 -12
  80. package/dist/schemas/job/job-suitability.js +0 -13
  81. package/dist/schemas/job/job.d.ts +0 -1160
  82. package/dist/schemas/job/job.js +0 -90
  83. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  84. package/dist/schemas/job/pipeline-job.js +0 -43
  85. package/dist/schemas/job/upwork-job.d.ts +0 -334
  86. package/dist/schemas/job/upwork-job.js +0 -60
  87. package/dist/schemas/job-filters/index.js +0 -17
  88. package/dist/schemas/job-filters/job-filters.js +0 -87
  89. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  90. package/dist/schemas/knowledge-object/index.js +0 -17
  91. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  92. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  93. package/dist/schemas/lead/index.js +0 -19
  94. package/dist/schemas/lead/lead-note.js +0 -30
  95. package/dist/schemas/lead/lead-status.js +0 -26
  96. package/dist/schemas/lead/lead.d.ts +0 -1897
  97. package/dist/schemas/lead/lead.js +0 -143
  98. package/dist/schemas/logger/index.js +0 -17
  99. package/dist/schemas/logger/log-event.js +0 -66
  100. package/dist/schemas/organization/index.js +0 -17
  101. package/dist/schemas/organization/organization.js +0 -19
  102. package/dist/schemas/proxy/index.js +0 -17
  103. package/dist/schemas/proxy/proxy.js +0 -23
  104. package/dist/schemas/saved-search/index.js +0 -12
  105. package/dist/schemas/scraper/index.js +0 -18
  106. package/dist/schemas/scraper/scrape-payload.js +0 -16
  107. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  108. package/dist/schemas/scraper/scrape-response.js +0 -9
  109. package/dist/schemas/scraper/scrape-result.js +0 -23
  110. package/dist/schemas/shared.js +0 -16
  111. package/dist/schemas/time-filter/index.js +0 -9
  112. package/dist/schemas/upwork-account/index.d.ts +0 -3
  113. package/dist/schemas/upwork-account/index.js +0 -19
  114. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  115. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  116. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  117. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  118. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  119. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  120. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  121. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  122. package/dist/schemas/user/index.js +0 -55
  123. package/dist/types/account/account-status.js +0 -2
  124. package/dist/types/account/bidder-account.js +0 -2
  125. package/dist/types/account/index.js +0 -19
  126. package/dist/types/account/manager-account.d.ts +0 -7
  127. package/dist/types/account/manager-account.js +0 -2
  128. package/dist/types/account/scraper-account.js +0 -2
  129. package/dist/types/ai/ai-config.d.ts +0 -6
  130. package/dist/types/ai/ai-config.js +0 -2
  131. package/dist/types/ai/index.d.ts +0 -3
  132. package/dist/types/ai/index.js +0 -19
  133. package/dist/types/ai/proposal.d.ts +0 -10
  134. package/dist/types/ai/proposal.js +0 -2
  135. package/dist/types/ai/suitability.d.ts +0 -6
  136. package/dist/types/ai/suitability.js +0 -2
  137. package/dist/types/ai-config/ai-config.d.ts +0 -6
  138. package/dist/types/ai-config/ai-config.js +0 -2
  139. package/dist/types/ai-config/index.d.ts +0 -1
  140. package/dist/types/ai-config/index.js +0 -17
  141. package/dist/types/bid/bid-result.js +0 -2
  142. package/dist/types/bid/bid-status.d.ts +0 -5
  143. package/dist/types/bid/bid-status.js +0 -2
  144. package/dist/types/bid/bid.js +0 -2
  145. package/dist/types/bid/index.js +0 -18
  146. package/dist/types/bidding/index.d.ts +0 -1
  147. package/dist/types/bidding/index.js +0 -17
  148. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  149. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  150. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  151. package/dist/types/bidding/proposal-dto.js +0 -2
  152. package/dist/types/campaign/campaign-analytics.js +0 -2
  153. package/dist/types/campaign/campaign-expenses.js +0 -2
  154. package/dist/types/campaign/campaign-insights.js +0 -2
  155. package/dist/types/campaign/campaign-integrations.js +0 -2
  156. package/dist/types/campaign/campaign-job-count.js +0 -2
  157. package/dist/types/campaign/campaign.js +0 -2
  158. package/dist/types/campaign/index.js +0 -22
  159. package/dist/types/chat-message/chat-message.js +0 -2
  160. package/dist/types/chat-message/index.js +0 -17
  161. package/dist/types/config/agency-config.js +0 -2
  162. package/dist/types/config/index.js +0 -17
  163. package/dist/types/index.js +0 -29
  164. package/dist/types/job/index.js +0 -19
  165. package/dist/types/job/job-details.d.ts +0 -36
  166. package/dist/types/job/job-details.js +0 -2
  167. package/dist/types/job/job-note.js +0 -2
  168. package/dist/types/job/job-pipeline.d.ts +0 -4
  169. package/dist/types/job/job-pipeline.js +0 -2
  170. package/dist/types/job/job-status.js +0 -12
  171. package/dist/types/job/job-suitability.d.ts +0 -3
  172. package/dist/types/job/job-suitability.js +0 -2
  173. package/dist/types/job/job.d.ts +0 -36
  174. package/dist/types/job/job.js +0 -2
  175. package/dist/types/job-filters/index.js +0 -17
  176. package/dist/types/job-filters/job-filters.js +0 -2
  177. package/dist/types/knowledge-object/index.d.ts +0 -1
  178. package/dist/types/knowledge-object/index.js +0 -17
  179. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  180. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  181. package/dist/types/logger/index.js +0 -17
  182. package/dist/types/logger/log-event.js +0 -2
  183. package/dist/types/saved-search/index.js +0 -2
  184. package/dist/types/scraper/index.js +0 -18
  185. package/dist/types/scraper/scrape-payload.js +0 -2
  186. package/dist/types/scraper/scrape-response.d.ts +0 -4
  187. package/dist/types/scraper/scrape-response.js +0 -2
  188. package/dist/types/scraper/scrape-result.js +0 -2
  189. package/dist/types/time-filter/index.js +0 -2
  190. package/dist/types/upwork-account/index.d.ts +0 -3
  191. package/dist/types/upwork-account/index.js +0 -19
  192. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  193. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  194. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  195. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  196. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  197. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
  198. package/dist/types/user/index.js +0 -2
  199. package/dist/utils/index.js +0 -17
  200. package/dist/utils/try-catch.js +0 -25
@@ -1,345 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const scrapeResponseSchema: z.ZodObject<{
3
- jobs: z.ZodArray<z.ZodObject<{
4
- id: z.ZodNullable<z.ZodString>;
5
- createdAt: z.ZodNullable<z.ZodNumber>;
6
- title: z.ZodNullable<z.ZodString>;
7
- category: z.ZodNullable<z.ZodString>;
8
- skills: z.ZodNullable<z.ZodArray<z.ZodObject<{
9
- name: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- name: string;
12
- }, {
13
- name: string;
14
- }>, "many">>;
15
- datetime: z.ZodNullable<z.ZodNumber>;
16
- description: z.ZodNullable<z.ZodString>;
17
- descriptionLength: z.ZodNullable<z.ZodNumber>;
18
- connectsRequired: z.ZodNullable<z.ZodNumber>;
19
- projectType: z.ZodNullable<z.ZodString>;
20
- projectDuration: z.ZodNullable<z.ZodString>;
21
- questions: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
22
- jobUrl: z.ZodNullable<z.ZodString>;
23
- metadata: z.ZodNullable<z.ZodObject<{
24
- hours: z.ZodNullable<z.ZodString>;
25
- duration: z.ZodNullable<z.ZodString>;
26
- experienceLevel: z.ZodNullable<z.ZodString>;
27
- hourlyRate: z.ZodNullable<z.ZodObject<{
28
- min: z.ZodNullable<z.ZodNumber>;
29
- max: z.ZodNullable<z.ZodNumber>;
30
- }, "strip", z.ZodTypeAny, {
31
- max: number | null;
32
- min: number | null;
33
- }, {
34
- max: number | null;
35
- min: number | null;
36
- }>>;
37
- paymentType: z.ZodNullable<z.ZodString>;
38
- fixedPrice: z.ZodNullable<z.ZodNumber>;
39
- }, "strip", z.ZodTypeAny, {
40
- hours: string | null;
41
- duration: string | null;
42
- experienceLevel: string | null;
43
- hourlyRate: {
44
- max: number | null;
45
- min: number | null;
46
- } | null;
47
- paymentType: string | null;
48
- fixedPrice: number | null;
49
- }, {
50
- hours: string | null;
51
- duration: string | null;
52
- experienceLevel: string | null;
53
- hourlyRate: {
54
- max: number | null;
55
- min: number | null;
56
- } | null;
57
- paymentType: string | null;
58
- fixedPrice: number | null;
59
- }>>;
60
- clientInfo: z.ZodNullable<z.ZodObject<{
61
- isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
62
- numberOfReviews: z.ZodNullable<z.ZodNumber>;
63
- rating: z.ZodNullable<z.ZodNumber>;
64
- country: z.ZodNullable<z.ZodString>;
65
- region: z.ZodNullable<z.ZodString>;
66
- jobsPosted: z.ZodNullable<z.ZodNumber>;
67
- totalSpent: z.ZodNullable<z.ZodNumber>;
68
- numberOfHires: z.ZodNullable<z.ZodNumber>;
69
- activeEngagements: z.ZodNullable<z.ZodNumber>;
70
- openJobs: z.ZodNullable<z.ZodNumber>;
71
- hireRate: z.ZodNullable<z.ZodNumber>;
72
- memberSince: z.ZodNullable<z.ZodString>;
73
- companyIndustry: z.ZodNullable<z.ZodString>;
74
- companySize: z.ZodNullable<z.ZodString>;
75
- enterpriseClient: z.ZodNullable<z.ZodBoolean>;
76
- }, "strip", z.ZodTypeAny, {
77
- country: string | null;
78
- region: string | null;
79
- rating: number | null;
80
- isPaymentVerified: boolean | null;
81
- numberOfReviews: number | null;
82
- jobsPosted: number | null;
83
- totalSpent: number | null;
84
- numberOfHires: number | null;
85
- activeEngagements: number | null;
86
- openJobs: number | null;
87
- hireRate: number | null;
88
- memberSince: string | null;
89
- companyIndustry: string | null;
90
- companySize: string | null;
91
- enterpriseClient: boolean | null;
92
- }, {
93
- country: string | null;
94
- region: string | null;
95
- rating: number | null;
96
- isPaymentVerified: boolean | null;
97
- numberOfReviews: number | null;
98
- jobsPosted: number | null;
99
- totalSpent: number | null;
100
- numberOfHires: number | null;
101
- activeEngagements: number | null;
102
- openJobs: number | null;
103
- hireRate: number | null;
104
- memberSince: string | null;
105
- companyIndustry: string | null;
106
- companySize: string | null;
107
- enterpriseClient: boolean | null;
108
- }>>;
109
- vendorQualifications: z.ZodNullable<z.ZodObject<{
110
- location: z.ZodNullable<z.ZodString>;
111
- talentType: z.ZodNullable<z.ZodEnum<["Agency", "Independent", "unspecified"]>>;
112
- englishLevel: z.ZodNullable<z.ZodString>;
113
- minimumEarnings: z.ZodNullable<z.ZodNumber>;
114
- jobSuccessScore: z.ZodNullable<z.ZodString>;
115
- }, "strip", z.ZodTypeAny, {
116
- location: string | null;
117
- talentType: "unspecified" | "Agency" | "Independent" | null;
118
- englishLevel: string | null;
119
- minimumEarnings: number | null;
120
- jobSuccessScore: string | null;
121
- }, {
122
- location: string | null;
123
- talentType: "unspecified" | "Agency" | "Independent" | null;
124
- englishLevel: string | null;
125
- minimumEarnings: number | null;
126
- jobSuccessScore: string | null;
127
- }>>;
128
- processed: z.ZodNullable<z.ZodBoolean>;
129
- }, "strip", z.ZodTypeAny, {
130
- id: string | null;
131
- title: string | null;
132
- metadata: {
133
- hours: string | null;
134
- duration: string | null;
135
- experienceLevel: string | null;
136
- hourlyRate: {
137
- max: number | null;
138
- min: number | null;
139
- } | null;
140
- paymentType: string | null;
141
- fixedPrice: number | null;
142
- } | null;
143
- description: string | null;
144
- datetime: number | null;
145
- createdAt: number | null;
146
- category: string | null;
147
- skills: {
148
- name: string;
149
- }[] | null;
150
- descriptionLength: number | null;
151
- connectsRequired: number | null;
152
- projectType: string | null;
153
- projectDuration: string | null;
154
- questions: string[] | null;
155
- jobUrl: string | null;
156
- clientInfo: {
157
- country: string | null;
158
- region: string | null;
159
- rating: number | null;
160
- isPaymentVerified: boolean | null;
161
- numberOfReviews: number | null;
162
- jobsPosted: number | null;
163
- totalSpent: number | null;
164
- numberOfHires: number | null;
165
- activeEngagements: number | null;
166
- openJobs: number | null;
167
- hireRate: number | null;
168
- memberSince: string | null;
169
- companyIndustry: string | null;
170
- companySize: string | null;
171
- enterpriseClient: boolean | null;
172
- } | null;
173
- vendorQualifications: {
174
- location: string | null;
175
- talentType: "unspecified" | "Agency" | "Independent" | null;
176
- englishLevel: string | null;
177
- minimumEarnings: number | null;
178
- jobSuccessScore: string | null;
179
- } | null;
180
- processed: boolean | null;
181
- }, {
182
- id: string | null;
183
- title: string | null;
184
- metadata: {
185
- hours: string | null;
186
- duration: string | null;
187
- experienceLevel: string | null;
188
- hourlyRate: {
189
- max: number | null;
190
- min: number | null;
191
- } | null;
192
- paymentType: string | null;
193
- fixedPrice: number | null;
194
- } | null;
195
- description: string | null;
196
- datetime: number | null;
197
- createdAt: number | null;
198
- category: string | null;
199
- skills: {
200
- name: string;
201
- }[] | null;
202
- descriptionLength: number | null;
203
- connectsRequired: number | null;
204
- projectType: string | null;
205
- projectDuration: string | null;
206
- questions: string[] | null;
207
- jobUrl: string | null;
208
- clientInfo: {
209
- country: string | null;
210
- region: string | null;
211
- rating: number | null;
212
- isPaymentVerified: boolean | null;
213
- numberOfReviews: number | null;
214
- jobsPosted: number | null;
215
- totalSpent: number | null;
216
- numberOfHires: number | null;
217
- activeEngagements: number | null;
218
- openJobs: number | null;
219
- hireRate: number | null;
220
- memberSince: string | null;
221
- companyIndustry: string | null;
222
- companySize: string | null;
223
- enterpriseClient: boolean | null;
224
- } | null;
225
- vendorQualifications: {
226
- location: string | null;
227
- talentType: "unspecified" | "Agency" | "Independent" | null;
228
- englishLevel: string | null;
229
- minimumEarnings: number | null;
230
- jobSuccessScore: string | null;
231
- } | null;
232
- processed: boolean | null;
233
- }>, "many">;
234
- cookies: z.ZodArray<z.ZodAny, "many">;
235
- }, "strip", z.ZodTypeAny, {
236
- jobs: {
237
- id: string | null;
238
- title: string | null;
239
- metadata: {
240
- hours: string | null;
241
- duration: string | null;
242
- experienceLevel: string | null;
243
- hourlyRate: {
244
- max: number | null;
245
- min: number | null;
246
- } | null;
247
- paymentType: string | null;
248
- fixedPrice: number | null;
249
- } | null;
250
- description: string | null;
251
- datetime: number | null;
252
- createdAt: number | null;
253
- category: string | null;
254
- skills: {
255
- name: string;
256
- }[] | null;
257
- descriptionLength: number | null;
258
- connectsRequired: number | null;
259
- projectType: string | null;
260
- projectDuration: string | null;
261
- questions: string[] | null;
262
- jobUrl: string | null;
263
- clientInfo: {
264
- country: string | null;
265
- region: string | null;
266
- rating: number | null;
267
- isPaymentVerified: boolean | null;
268
- numberOfReviews: number | null;
269
- jobsPosted: number | null;
270
- totalSpent: number | null;
271
- numberOfHires: number | null;
272
- activeEngagements: number | null;
273
- openJobs: number | null;
274
- hireRate: number | null;
275
- memberSince: string | null;
276
- companyIndustry: string | null;
277
- companySize: string | null;
278
- enterpriseClient: boolean | null;
279
- } | null;
280
- vendorQualifications: {
281
- location: string | null;
282
- talentType: "unspecified" | "Agency" | "Independent" | null;
283
- englishLevel: string | null;
284
- minimumEarnings: number | null;
285
- jobSuccessScore: string | null;
286
- } | null;
287
- processed: boolean | null;
288
- }[];
289
- cookies: any[];
290
- }, {
291
- jobs: {
292
- id: string | null;
293
- title: string | null;
294
- metadata: {
295
- hours: string | null;
296
- duration: string | null;
297
- experienceLevel: string | null;
298
- hourlyRate: {
299
- max: number | null;
300
- min: number | null;
301
- } | null;
302
- paymentType: string | null;
303
- fixedPrice: number | null;
304
- } | null;
305
- description: string | null;
306
- datetime: number | null;
307
- createdAt: number | null;
308
- category: string | null;
309
- skills: {
310
- name: string;
311
- }[] | null;
312
- descriptionLength: number | null;
313
- connectsRequired: number | null;
314
- projectType: string | null;
315
- projectDuration: string | null;
316
- questions: string[] | null;
317
- jobUrl: string | null;
318
- clientInfo: {
319
- country: string | null;
320
- region: string | null;
321
- rating: number | null;
322
- isPaymentVerified: boolean | null;
323
- numberOfReviews: number | null;
324
- jobsPosted: number | null;
325
- totalSpent: number | null;
326
- numberOfHires: number | null;
327
- activeEngagements: number | null;
328
- openJobs: number | null;
329
- hireRate: number | null;
330
- memberSince: string | null;
331
- companyIndustry: string | null;
332
- companySize: string | null;
333
- enterpriseClient: boolean | null;
334
- } | null;
335
- vendorQualifications: {
336
- location: string | null;
337
- talentType: "unspecified" | "Agency" | "Independent" | null;
338
- englishLevel: string | null;
339
- minimumEarnings: number | null;
340
- jobSuccessScore: string | null;
341
- } | null;
342
- processed: boolean | null;
343
- }[];
344
- cookies: any[];
345
- }>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.scrapeResponseSchema = void 0;
4
- const zod_1 = require("zod");
5
- const job_1 = require("../job");
6
- exports.scrapeResponseSchema = zod_1.z.object({
7
- jobs: zod_1.z.array(job_1.upworkJobSchema),
8
- cookies: zod_1.z.array(zod_1.z.any()),
9
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.scrapeUserProfileResultSchema = exports.scrapeResultSchema = exports.regionSchema = void 0;
4
- const zod_1 = require("zod");
5
- const lead_1 = require("../lead");
6
- const user_1 = require("../user");
7
- exports.regionSchema = zod_1.z.union([
8
- zod_1.z.literal("USOnly"),
9
- zod_1.z.literal("UKOnly"),
10
- zod_1.z.literal("Worldwide"),
11
- ]);
12
- exports.scrapeResultSchema = zod_1.z.object({
13
- jobs: zod_1.z.array(lead_1.upworkJobSchema),
14
- cookies: zod_1.z.array(zod_1.z.any()),
15
- region: exports.regionSchema,
16
- usAccountCookies: zod_1.z.array(zod_1.z.any()).optional(),
17
- ukAccountCookies: zod_1.z.array(zod_1.z.any()).optional(),
18
- });
19
- exports.scrapeUserProfileResultSchema = zod_1.z.object({
20
- success: zod_1.z.boolean(),
21
- message: zod_1.z.string(),
22
- data: user_1.upworkProfileSchema,
23
- });
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.passwordSchema = exports.dateSchema = exports.booleanSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.booleanSchema = zod_1.z
6
- .union([zod_1.z.boolean(), zod_1.z.literal("true"), zod_1.z.literal("false")])
7
- .transform((value) => value === true || value === "true");
8
- const dateSchema = (params = {}) => zod_1.coerce.date(Object.assign({}, params));
9
- exports.dateSchema = dateSchema;
10
- exports.passwordSchema = (0, zod_1.string)()
11
- .min(8, "Password must be at least 8 characters long.")
12
- .max(255, "Password must be at most 255 characters long.")
13
- .refine((password) => /[a-z]/.test(password), "Password must contain at least one lowercase letter.")
14
- .refine((password) => /[A-Z]/.test(password), "Password must contain at least one uppercase letter.")
15
- .refine((password) => /\d/.test(password), "Password must contain at least one number.")
16
- .refine((password) => /[\W_]/.test(password), "Password must contain at least one symbol.");
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.timeFilterSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.timeFilterSchema = zod_1.z.union([
6
- zod_1.z.literal("last_7_days"),
7
- zod_1.z.literal("last_30_days"),
8
- zod_1.z.literal("all_time"),
9
- ]);
@@ -1,3 +0,0 @@
1
- export * from './upwork-account-status';
2
- export * from './upwork-business-manager-account';
3
- export * from './upwork-scraper-account';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./upwork-account-status"), exports);
18
- __exportStar(require("./upwork-business-manager-account"), exports);
19
- __exportStar(require("./upwork-scraper-account"), exports);
@@ -1,2 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const upworkAccountStatusSchema: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.upworkAccountStatusSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.upworkAccountStatusSchema = zod_1.z.enum([
6
- 'verification_required',
7
- 'shadow_banned',
8
- 'healthy',
9
- 'banned',
10
- 'suspended',
11
- ]);
@@ -1,95 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const upworkBusinessManagerAccountProvider: z.ZodEnum<["user_provided", "lancer_provided"]>;
3
- export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
4
- id: z.ZodString;
5
- provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
6
- email: z.ZodString;
7
- password: z.ZodString;
8
- cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
9
- proxy: z.ZodString;
10
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
11
- verified: z.ZodBoolean;
12
- isActive: z.ZodBoolean;
13
- assignedOrganizations: z.ZodArray<z.ZodString, "many">;
14
- lastUsed: z.ZodNullable<z.ZodNumber>;
15
- }, "strip", z.ZodTypeAny, {
16
- id: string;
17
- email: string;
18
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
19
- cookies: any[] | null;
20
- password: string;
21
- isActive: boolean;
22
- provider: "user_provided" | "lancer_provided";
23
- proxy: string;
24
- verified: boolean;
25
- assignedOrganizations: string[];
26
- lastUsed: number | null;
27
- }, {
28
- id: string;
29
- email: string;
30
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
31
- cookies: any[] | null;
32
- password: string;
33
- isActive: boolean;
34
- provider: "user_provided" | "lancer_provided";
35
- proxy: string;
36
- verified: boolean;
37
- assignedOrganizations: string[];
38
- lastUsed: number | null;
39
- }>;
40
- export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<{
41
- id: z.ZodString;
42
- provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
43
- email: z.ZodString;
44
- password: z.ZodString;
45
- cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
46
- proxy: z.ZodString;
47
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
48
- verified: z.ZodBoolean;
49
- isActive: z.ZodBoolean;
50
- assignedOrganizations: z.ZodArray<z.ZodString, "many">;
51
- lastUsed: z.ZodNullable<z.ZodNumber>;
52
- }, "email" | "password" | "provider" | "proxy" | "assignedOrganizations">, "strip", z.ZodTypeAny, {
53
- email: string;
54
- password: string;
55
- provider: "user_provided" | "lancer_provided";
56
- proxy: string;
57
- assignedOrganizations: string[];
58
- }, {
59
- email: string;
60
- password: string;
61
- provider: "user_provided" | "lancer_provided";
62
- proxy: string;
63
- assignedOrganizations: string[];
64
- }>;
65
- export declare const updateUpworkBusinessManagerAccountSchema: z.ZodObject<{
66
- email: z.ZodOptional<z.ZodString>;
67
- status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
68
- cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
69
- password: z.ZodOptional<z.ZodString>;
70
- isActive: z.ZodOptional<z.ZodBoolean>;
71
- proxy: z.ZodOptional<z.ZodString>;
72
- verified: z.ZodOptional<z.ZodBoolean>;
73
- assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
- lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
75
- }, "strip", z.ZodTypeAny, {
76
- email?: string | undefined;
77
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
78
- cookies?: any[] | null | undefined;
79
- password?: string | undefined;
80
- isActive?: boolean | undefined;
81
- proxy?: string | undefined;
82
- verified?: boolean | undefined;
83
- assignedOrganizations?: string[] | undefined;
84
- lastUsed?: number | null | undefined;
85
- }, {
86
- email?: string | undefined;
87
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
88
- cookies?: any[] | null | undefined;
89
- password?: string | undefined;
90
- isActive?: boolean | undefined;
91
- proxy?: string | undefined;
92
- verified?: boolean | undefined;
93
- assignedOrganizations?: string[] | undefined;
94
- lastUsed?: number | null | undefined;
95
- }>;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateUpworkBusinessManagerAccountSchema = exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountProvider = void 0;
4
- const zod_1 = require("zod");
5
- const upwork_account_status_1 = require("./upwork-account-status");
6
- exports.upworkBusinessManagerAccountProvider = zod_1.z.enum([
7
- 'user_provided',
8
- 'lancer_provided',
9
- ]);
10
- exports.upworkBusinessManagerAccountSchema = zod_1.z.object({
11
- id: zod_1.z.string(),
12
- provider: exports.upworkBusinessManagerAccountProvider,
13
- email: zod_1.z.string().email(),
14
- password: zod_1.z.string(),
15
- cookies: zod_1.z.array(zod_1.z.any()).nullable(),
16
- proxy: zod_1.z.string(),
17
- status: upwork_account_status_1.upworkAccountStatusSchema,
18
- verified: zod_1.z.boolean(),
19
- isActive: zod_1.z.boolean(),
20
- assignedOrganizations: zod_1.z.array(zod_1.z.string()),
21
- lastUsed: zod_1.z.number().nullable(),
22
- });
23
- exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema.pick({
24
- email: true,
25
- password: true,
26
- proxy: true,
27
- assignedOrganizations: true,
28
- provider: true,
29
- });
30
- exports.updateUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema
31
- .omit({
32
- id: true,
33
- provider: true,
34
- })
35
- .partial();
@@ -1,92 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const upworkScraperAccountSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- email: z.ZodString;
5
- password: z.ZodString;
6
- cookies: z.ZodRecord<z.ZodString, z.ZodString>;
7
- proxy_credentials: z.ZodString;
8
- region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
9
- isActive: z.ZodBoolean;
10
- lastUsed: z.ZodNumber;
11
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
12
- verified: z.ZodBoolean;
13
- }, "strip", z.ZodTypeAny, {
14
- id: string;
15
- email: string;
16
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
17
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
18
- cookies: Record<string, string>;
19
- password: string;
20
- isActive: boolean;
21
- verified: boolean;
22
- lastUsed: number;
23
- proxy_credentials: string;
24
- }, {
25
- id: string;
26
- email: string;
27
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
28
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
29
- cookies: Record<string, string>;
30
- password: string;
31
- isActive: boolean;
32
- verified: boolean;
33
- lastUsed: number;
34
- proxy_credentials: string;
35
- }>;
36
- export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
37
- id: z.ZodString;
38
- email: z.ZodString;
39
- password: z.ZodString;
40
- cookies: z.ZodRecord<z.ZodString, z.ZodString>;
41
- proxy_credentials: z.ZodString;
42
- region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
43
- isActive: z.ZodBoolean;
44
- lastUsed: z.ZodNumber;
45
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
46
- verified: z.ZodBoolean;
47
- }, "email" | "region" | "password" | "isActive" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
48
- email: string;
49
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
50
- password: string;
51
- isActive: boolean;
52
- verified: boolean;
53
- proxy_credentials: string;
54
- }, {
55
- email: string;
56
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
57
- password: string;
58
- isActive: boolean;
59
- verified: boolean;
60
- proxy_credentials: string;
61
- }>;
62
- export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
63
- email: z.ZodOptional<z.ZodString>;
64
- status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
65
- region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
66
- cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
67
- password: z.ZodOptional<z.ZodString>;
68
- isActive: z.ZodOptional<z.ZodBoolean>;
69
- verified: z.ZodOptional<z.ZodBoolean>;
70
- lastUsed: z.ZodOptional<z.ZodNumber>;
71
- proxy_credentials: z.ZodOptional<z.ZodString>;
72
- }, "strip", z.ZodTypeAny, {
73
- email?: string | undefined;
74
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
75
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
76
- cookies?: Record<string, string> | undefined;
77
- password?: string | undefined;
78
- isActive?: boolean | undefined;
79
- verified?: boolean | undefined;
80
- lastUsed?: number | undefined;
81
- proxy_credentials?: string | undefined;
82
- }, {
83
- email?: string | undefined;
84
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
85
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
86
- cookies?: Record<string, string> | undefined;
87
- password?: string | undefined;
88
- isActive?: boolean | undefined;
89
- verified?: boolean | undefined;
90
- lastUsed?: number | undefined;
91
- proxy_credentials?: string | undefined;
92
- }>;