lancer-shared 1.2.139 → 1.2.141

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 (215) hide show
  1. package/dist/bundle.cjs.js +819 -652
  2. package/dist/constants/collections.js +11 -13
  3. package/dist/constants/common-questions.js +1 -4
  4. package/dist/constants/index.d.ts +1 -0
  5. package/dist/constants/index.js +10 -32
  6. package/dist/constants/job-filter-options.js +1 -4
  7. package/dist/constants/job-status.js +7 -12
  8. package/dist/constants/mappings/countryMapping.js +1 -3
  9. package/dist/constants/mappings/regionMapping.js +1 -3
  10. package/dist/constants/organization.d.ts +2 -2
  11. package/dist/constants/plan.d.ts +3 -0
  12. package/dist/constants/routes.js +39 -37
  13. package/dist/constants/upwork-accounts.js +3 -6
  14. package/dist/index.js +4 -20
  15. package/dist/schemas/account/account-status.js +2 -5
  16. package/dist/schemas/account/bidder-account.js +22 -24
  17. package/dist/schemas/account/index.js +3 -19
  18. package/dist/schemas/account/scraper-account.js +21 -24
  19. package/dist/schemas/ai/ai-config.js +8 -11
  20. package/dist/schemas/ai/index.js +3 -19
  21. package/dist/schemas/ai/proposal.js +10 -13
  22. package/dist/schemas/ai/suitability.js +8 -11
  23. package/dist/schemas/bid/bid-result.js +9 -13
  24. package/dist/schemas/bid/bid.d.ts +76 -0
  25. package/dist/schemas/bid/bid.js +29 -30
  26. package/dist/schemas/bid/index.js +2 -18
  27. package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
  28. package/dist/schemas/campaign/campaign-analytics.d.ts +360 -0
  29. package/dist/schemas/campaign/campaign-analytics.js +32 -31
  30. package/dist/schemas/campaign/campaign-expenses.js +5 -8
  31. package/dist/schemas/campaign/campaign-insights.js +30 -30
  32. package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
  33. package/dist/schemas/campaign/campaign-integrations.js +10 -13
  34. package/dist/schemas/campaign/campaign-job-count.js +3 -6
  35. package/dist/schemas/campaign/campaign.d.ts +29 -0
  36. package/dist/schemas/campaign/campaign.js +32 -35
  37. package/dist/schemas/campaign/index.js +7 -23
  38. package/dist/schemas/chat-message/chat-message.js +7 -10
  39. package/dist/schemas/chat-message/index.js +1 -17
  40. package/dist/schemas/config/agency-config.js +6 -9
  41. package/dist/schemas/config/index.js +1 -17
  42. package/dist/schemas/event/index.d.ts +58 -0
  43. package/dist/schemas/index.d.ts +1 -0
  44. package/dist/schemas/index.js +17 -32
  45. package/dist/schemas/job/haha.json +581 -0
  46. package/dist/schemas/job-filters/index.js +1 -17
  47. package/dist/schemas/job-filters/job-filters.js +62 -65
  48. package/dist/schemas/lead/index.js +173 -19
  49. package/dist/schemas/lead/lead-note.js +13 -16
  50. package/dist/schemas/lead/lead-status.js +3 -6
  51. package/dist/schemas/lead/nuxt.js +287 -0
  52. package/dist/schemas/logger/index.js +1 -17
  53. package/dist/schemas/logger/log-event.js +100 -49
  54. package/dist/schemas/meter-event/index.d.ts +12 -0
  55. package/dist/schemas/organization/index.d.ts +16 -7
  56. package/dist/schemas/organization/index.js +70 -17
  57. package/dist/schemas/organization/member.js +7 -0
  58. package/dist/schemas/organization/organization.d.ts +177 -7
  59. package/dist/schemas/organization/organization.js +14 -17
  60. package/dist/schemas/organization/subscription.js +17 -0
  61. package/dist/schemas/profile/index.d.ts +2551 -0
  62. package/dist/schemas/proxy/index.js +3 -17
  63. package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
  64. package/dist/schemas/proxy/proxy-country.js +249 -0
  65. package/dist/schemas/proxy/proxy.js +25 -19
  66. package/dist/schemas/saved-search/index.js +8 -11
  67. package/dist/schemas/scraper/exceptions.d.ts +13 -1
  68. package/dist/schemas/scraper/index.js +2 -18
  69. package/dist/schemas/scraper/scrape-payload.d.ts +102 -0
  70. package/dist/schemas/scraper/scrape-payload.js +19 -14
  71. package/dist/schemas/scraper/scrape-result.js +21 -21
  72. package/dist/schemas/shared.js +12 -9
  73. package/dist/schemas/talent/index.d.ts +1314 -0
  74. package/dist/schemas/tier/index.d.ts +119 -0
  75. package/dist/schemas/time-filter/index.js +5 -8
  76. package/dist/schemas/transaction/index.js +17 -0
  77. package/dist/schemas/usage/index.js +18 -0
  78. package/dist/schemas/user/index.js +38 -41
  79. package/dist/types/account/account-status.js +1 -2
  80. package/dist/types/account/bidder-account.js +1 -2
  81. package/dist/types/account/index.js +3 -19
  82. package/dist/types/account/scraper-account.js +1 -2
  83. package/dist/types/ai/ai-config.js +1 -2
  84. package/dist/types/ai/index.js +3 -19
  85. package/dist/types/ai/proposal.js +1 -2
  86. package/dist/types/ai/suitability.js +1 -2
  87. package/dist/types/bid/bid-result.js +1 -2
  88. package/dist/types/bid/bid.js +1 -2
  89. package/dist/types/bid/index.js +2 -18
  90. package/dist/types/campaign/campaign-analytics.js +1 -2
  91. package/dist/types/campaign/campaign-expenses.js +1 -2
  92. package/dist/types/campaign/campaign-insights.js +1 -2
  93. package/dist/types/campaign/campaign-integrations.js +1 -2
  94. package/dist/types/campaign/campaign-job-count.js +1 -2
  95. package/dist/types/campaign/campaign.js +1 -2
  96. package/dist/types/campaign/index.js +6 -22
  97. package/dist/types/chat-message/chat-message.js +1 -2
  98. package/dist/types/chat-message/index.js +1 -17
  99. package/dist/types/config/agency-config.js +1 -2
  100. package/dist/types/config/index.js +1 -17
  101. package/dist/types/index.js +15 -29
  102. package/dist/types/job/index.js +3 -19
  103. package/dist/types/job/job-note.js +1 -2
  104. package/dist/types/job/job-status.js +1 -4
  105. package/dist/types/job/nuxt.js +1 -0
  106. package/dist/types/job-filters/index.js +1 -17
  107. package/dist/types/job-filters/job-filters.js +1 -2
  108. package/dist/types/logger/index.js +1 -17
  109. package/dist/types/logger/log-event.js +1 -2
  110. package/dist/types/saved-search/index.js +1 -2
  111. package/dist/types/scraper/index.js +2 -18
  112. package/dist/types/scraper/scrape-payload.js +1 -2
  113. package/dist/types/scraper/scrape-result.js +1 -2
  114. package/dist/types/shared.js +1 -0
  115. package/dist/types/time-filter/index.js +1 -2
  116. package/dist/types/transaction/index.js +1 -0
  117. package/dist/types/usage/index.js +1 -0
  118. package/dist/types/user/index.js +1 -2
  119. package/dist/utils/index.js +1 -17
  120. package/dist/utils/try-catch.js +8 -23
  121. package/package.json +1 -1
  122. package/dist/constants/account-status.d.ts +0 -3
  123. package/dist/constants/account-status.js +0 -17
  124. package/dist/constants/proxies.d.ts +0 -4
  125. package/dist/constants/upwork-filters.d.ts +0 -5
  126. package/dist/constants/upwork-filters.js +0 -75
  127. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  128. package/dist/schemas/account/manager-account.d.ts +0 -116
  129. package/dist/schemas/account/manager-account.js +0 -38
  130. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  131. package/dist/schemas/ai-config/ai-config.js +0 -12
  132. package/dist/schemas/ai-config/index.d.ts +0 -1
  133. package/dist/schemas/ai-config/index.js +0 -17
  134. package/dist/schemas/bid/bid-status.d.ts +0 -30
  135. package/dist/schemas/bid/bid-status.js +0 -15
  136. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  137. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  138. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  139. package/dist/schemas/bidding/index.d.ts +0 -1
  140. package/dist/schemas/bidding/index.js +0 -17
  141. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  142. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  143. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  144. package/dist/schemas/bidding/proposal-dto.js +0 -18
  145. package/dist/schemas/job/feed-job.d.ts +0 -866
  146. package/dist/schemas/job/index.js +0 -19
  147. package/dist/schemas/job/job-details.js +0 -29
  148. package/dist/schemas/job/job-note.d.ts +0 -83
  149. package/dist/schemas/job/job-note.js +0 -30
  150. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  151. package/dist/schemas/job/job-pipeline.js +0 -29
  152. package/dist/schemas/job/job-status.d.ts +0 -3
  153. package/dist/schemas/job/job-status.js +0 -27
  154. package/dist/schemas/job/job-suitability.d.ts +0 -12
  155. package/dist/schemas/job/job-suitability.js +0 -13
  156. package/dist/schemas/job/job.d.ts +0 -1160
  157. package/dist/schemas/job/job.js +0 -90
  158. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  159. package/dist/schemas/job/pipeline-job.js +0 -43
  160. package/dist/schemas/job/upwork-job.d.ts +0 -334
  161. package/dist/schemas/job/upwork-job.js +0 -60
  162. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  163. package/dist/schemas/knowledge-object/index.js +0 -17
  164. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  165. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  166. package/dist/schemas/lead/lead.d.ts +0 -1897
  167. package/dist/schemas/lead/lead.js +0 -143
  168. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  169. package/dist/schemas/scraper/scrape-response.js +0 -9
  170. package/dist/schemas/upwork-account/index.d.ts +0 -3
  171. package/dist/schemas/upwork-account/index.js +0 -19
  172. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  173. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  174. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  175. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  176. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  177. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  178. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  179. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  180. package/dist/types/account/manager-account.d.ts +0 -7
  181. package/dist/types/account/manager-account.js +0 -2
  182. package/dist/types/ai-config/ai-config.d.ts +0 -6
  183. package/dist/types/ai-config/ai-config.js +0 -2
  184. package/dist/types/ai-config/index.d.ts +0 -1
  185. package/dist/types/ai-config/index.js +0 -17
  186. package/dist/types/bid/bid-status.d.ts +0 -5
  187. package/dist/types/bid/bid-status.js +0 -2
  188. package/dist/types/bidding/index.d.ts +0 -1
  189. package/dist/types/bidding/index.js +0 -17
  190. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  191. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  192. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  193. package/dist/types/bidding/proposal-dto.js +0 -2
  194. package/dist/types/job/job-details.d.ts +0 -36
  195. package/dist/types/job/job-details.js +0 -2
  196. package/dist/types/job/job-pipeline.d.ts +0 -4
  197. package/dist/types/job/job-pipeline.js +0 -2
  198. package/dist/types/job/job-suitability.d.ts +0 -3
  199. package/dist/types/job/job-suitability.js +0 -2
  200. package/dist/types/job/job.d.ts +0 -36
  201. package/dist/types/job/job.js +0 -2
  202. package/dist/types/knowledge-object/index.d.ts +0 -1
  203. package/dist/types/knowledge-object/index.js +0 -17
  204. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  205. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  206. package/dist/types/scraper/scrape-response.d.ts +0 -4
  207. package/dist/types/scraper/scrape-response.js +0 -2
  208. package/dist/types/upwork-account/index.d.ts +0 -3
  209. package/dist/types/upwork-account/index.js +0 -19
  210. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  211. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  212. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  213. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  214. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  215. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
@@ -1,17 +1,3 @@
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("./proxy"), exports);
1
+ export * from './proxy';
2
+ export * from './proxy-available-replacements';
3
+ export * from './proxy-country';
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { proxyProviderSchema } from './proxy';
3
+ export const proxyAvailableReplacementsSchema = z.record(proxyProviderSchema, z.number());
@@ -0,0 +1,249 @@
1
+ import { z } from 'zod';
2
+ export const proxyCountrySchema = z.enum([
3
+ 'US',
4
+ 'CA',
5
+ 'GB',
6
+ 'AF',
7
+ 'AX',
8
+ 'AL',
9
+ 'DZ',
10
+ 'AS',
11
+ 'AD',
12
+ 'AO',
13
+ 'AI',
14
+ 'AQ',
15
+ 'AG',
16
+ 'AR',
17
+ 'AM',
18
+ 'AW',
19
+ 'AU',
20
+ 'AT',
21
+ 'AZ',
22
+ 'BS',
23
+ 'BH',
24
+ 'BD',
25
+ 'BB',
26
+ 'BY',
27
+ 'BE',
28
+ 'BZ',
29
+ 'BJ',
30
+ 'BM',
31
+ 'BT',
32
+ 'BO',
33
+ 'BA',
34
+ 'BW',
35
+ 'BV',
36
+ 'BR',
37
+ 'IO',
38
+ 'BN',
39
+ 'BG',
40
+ 'BF',
41
+ 'BI',
42
+ 'KH',
43
+ 'CM',
44
+ 'CV',
45
+ 'KY',
46
+ 'CF',
47
+ 'TD',
48
+ 'CL',
49
+ 'CN',
50
+ 'CX',
51
+ 'CC',
52
+ 'CO',
53
+ 'KM',
54
+ 'CG',
55
+ 'CD',
56
+ 'CK',
57
+ 'CR',
58
+ 'CI',
59
+ 'HR',
60
+ 'CU',
61
+ 'CY',
62
+ 'CZ',
63
+ 'DK',
64
+ 'DJ',
65
+ 'DM',
66
+ 'DO',
67
+ 'EC',
68
+ 'EG',
69
+ 'SV',
70
+ 'GQ',
71
+ 'ER',
72
+ 'EE',
73
+ 'ET',
74
+ 'FK',
75
+ 'FO',
76
+ 'FJ',
77
+ 'FI',
78
+ 'FR',
79
+ 'GF',
80
+ 'PF',
81
+ 'TF',
82
+ 'GA',
83
+ 'GM',
84
+ 'GE',
85
+ 'DE',
86
+ 'GH',
87
+ 'GI',
88
+ 'GR',
89
+ 'GL',
90
+ 'GD',
91
+ 'GP',
92
+ 'GU',
93
+ 'GT',
94
+ 'GG',
95
+ 'GN',
96
+ 'GW',
97
+ 'GY',
98
+ 'HT',
99
+ 'HM',
100
+ 'VA',
101
+ 'HN',
102
+ 'HK',
103
+ 'HU',
104
+ 'IS',
105
+ 'IN',
106
+ 'ID',
107
+ 'IR',
108
+ 'IQ',
109
+ 'IE',
110
+ 'IM',
111
+ 'IL',
112
+ 'IT',
113
+ 'JM',
114
+ 'JP',
115
+ 'JE',
116
+ 'JO',
117
+ 'KZ',
118
+ 'KE',
119
+ 'KI',
120
+ 'KP',
121
+ 'KR',
122
+ 'KW',
123
+ 'KG',
124
+ 'LA',
125
+ 'LV',
126
+ 'LB',
127
+ 'LS',
128
+ 'LR',
129
+ 'LY',
130
+ 'LI',
131
+ 'LT',
132
+ 'LU',
133
+ 'MO',
134
+ 'MK',
135
+ 'MG',
136
+ 'MW',
137
+ 'MY',
138
+ 'MV',
139
+ 'ML',
140
+ 'MT',
141
+ 'MH',
142
+ 'MQ',
143
+ 'MR',
144
+ 'MU',
145
+ 'YT',
146
+ 'MX',
147
+ 'FM',
148
+ 'MD',
149
+ 'MC',
150
+ 'MN',
151
+ 'ME',
152
+ 'MS',
153
+ 'MA',
154
+ 'MZ',
155
+ 'MM',
156
+ 'NA',
157
+ 'NR',
158
+ 'NP',
159
+ 'NL',
160
+ 'AN',
161
+ 'NC',
162
+ 'NZ',
163
+ 'NI',
164
+ 'NE',
165
+ 'NG',
166
+ 'NU',
167
+ 'NF',
168
+ 'MP',
169
+ 'NO',
170
+ 'OM',
171
+ 'PK',
172
+ 'PW',
173
+ 'PS',
174
+ 'PA',
175
+ 'PG',
176
+ 'PY',
177
+ 'PE',
178
+ 'PH',
179
+ 'PN',
180
+ 'PL',
181
+ 'PT',
182
+ 'PR',
183
+ 'QA',
184
+ 'RE',
185
+ 'RO',
186
+ 'RU',
187
+ 'RW',
188
+ 'BL',
189
+ 'SH',
190
+ 'KN',
191
+ 'LC',
192
+ 'MF',
193
+ 'PM',
194
+ 'VC',
195
+ 'WS',
196
+ 'SM',
197
+ 'ST',
198
+ 'SA',
199
+ 'SN',
200
+ 'RS',
201
+ 'SC',
202
+ 'SL',
203
+ 'SG',
204
+ 'SK',
205
+ 'SI',
206
+ 'SB',
207
+ 'SO',
208
+ 'ZA',
209
+ 'GS',
210
+ 'ES',
211
+ 'LK',
212
+ 'SD',
213
+ 'SR',
214
+ 'SJ',
215
+ 'SZ',
216
+ 'SE',
217
+ 'CH',
218
+ 'SY',
219
+ 'TW',
220
+ 'TJ',
221
+ 'TZ',
222
+ 'TH',
223
+ 'TL',
224
+ 'TG',
225
+ 'TK',
226
+ 'TO',
227
+ 'TT',
228
+ 'TN',
229
+ 'TR',
230
+ 'TM',
231
+ 'TC',
232
+ 'TV',
233
+ 'UG',
234
+ 'UA',
235
+ 'AE',
236
+ 'UM',
237
+ 'UY',
238
+ 'UZ',
239
+ 'VU',
240
+ 'VE',
241
+ 'VN',
242
+ 'VG',
243
+ 'VI',
244
+ 'WF',
245
+ 'EH',
246
+ 'YE',
247
+ 'ZM',
248
+ 'ZW',
249
+ ]);
@@ -1,23 +1,29 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = exports.proxyStatusSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.proxyStatusSchema = zod_1.z.enum(['ready', 'pending', 'to_replace']);
6
- exports.proxyProviderSchema = zod_1.z.enum(['webshare']);
7
- exports.proxyCountrySchema = zod_1.z.enum(['USA']);
8
- exports.proxySchema = zod_1.z.object({
9
- id: zod_1.z.string(),
10
- externalId: zod_1.z.string(),
11
- host: zod_1.z.string(),
12
- port: zod_1.z.number(),
13
- username: zod_1.z.string(),
14
- password: zod_1.z.string(),
15
- provider: exports.proxyProviderSchema,
16
- country: exports.proxyCountrySchema,
17
- status: exports.proxyStatusSchema,
18
- bidderId: zod_1.z.string().nullable(),
1
+ import { z } from 'zod';
2
+ import { proxyCountrySchema } from './proxy-country';
3
+ export const proxyStatusSchema = z.enum([
4
+ 'invalid',
5
+ 'valid',
6
+ 'pending_validation',
7
+ ]);
8
+ export const proxyProviderSchema = z.enum(['webshare']);
9
+ export const proxySchema = z.object({
10
+ id: z.string(),
11
+ externalId: z.string(),
12
+ host: z.string(),
13
+ port: z.number(),
14
+ username: z.string(),
15
+ password: z.string(),
16
+ provider: proxyProviderSchema,
17
+ fraudScore: z.number().nullable(),
18
+ claimedCountry: proxyCountrySchema,
19
+ status: proxyStatusSchema.nullable(),
20
+ country: proxyCountrySchema.nullable(),
21
+ bidderId: z.string().nullable(),
19
22
  });
20
- exports.externalProxySchema = exports.proxySchema.omit({
23
+ export const externalProxySchema = proxySchema.omit({
21
24
  id: true,
22
25
  bidderId: true,
26
+ status: true,
27
+ country: true,
28
+ fraudScore: true,
23
29
  });
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.savedSearchSchema = void 0;
4
- const zod_1 = require("zod");
5
- const shared_1 = require("../shared");
6
- exports.savedSearchSchema = (0, zod_1.object)({
7
- id: (0, zod_1.number)().int(),
8
- name: (0, zod_1.string)(),
9
- url: (0, zod_1.string)(),
10
- createdAt: (0, zod_1.date)(),
11
- isActive: shared_1.booleanSchema,
1
+ import { date, number, object, string } from "zod";
2
+ import { booleanSchema } from "../shared";
3
+ export const savedSearchSchema = object({
4
+ id: number().int(),
5
+ name: string(),
6
+ url: string(),
7
+ createdAt: date(),
8
+ isActive: booleanSchema,
12
9
  });
@@ -1,4 +1,4 @@
1
- import { JobListing } from '../job';
1
+ import { JobListing } from "../job";
2
2
  export declare class NoScraperAccountAvailableException extends Error {
3
3
  readonly code = "NO_SCRAPER_ACCOUNT_AVAILABLE";
4
4
  constructor(message?: string);
@@ -24,3 +24,15 @@ export declare class ScrapeJobDetailsException extends Error {
24
24
  constructor(jobListing: JobListing);
25
25
  }
26
26
  export declare const scrapeJobDetailsException: (jobListing: JobListing) => ScrapeJobDetailsException;
27
+ export declare class ParseUpworkProfilesException extends Error {
28
+ readonly code = "PARSE_JOB_PROFILES_FAILED";
29
+ constructor(message?: string);
30
+ }
31
+ export declare const parseUpworkProfilesException: (message?: string) => ParseUpworkProfilesException;
32
+ export declare class ScraperAccountProxyNotFoundException extends Error {
33
+ readonly scraperAccountId: string;
34
+ readonly proxyId: string;
35
+ readonly code = "SCRAPER_ACCOUNT_PROXY_NOT_FOUND";
36
+ constructor(scraperAccountId: string, proxyId: string, message?: string);
37
+ }
38
+ export declare const scraperAccountProxyNotFoundException: (scraperAccountId: string, proxyId: string, message?: string) => ScraperAccountProxyNotFoundException;
@@ -1,18 +1,2 @@
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("./scrape-payload"), exports);
18
- __exportStar(require("./scrape-result"), exports);
1
+ export * from './scrape-payload';
2
+ export * from './scrape-result';
@@ -657,6 +657,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
657
657
  maximumBoost: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
658
658
  monthlyBudget: import("zod").ZodNullable<import("zod").ZodNumber>;
659
659
  boostingThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
660
+ biddingDelayInMinutes: import("zod").ZodDefault<import("zod").ZodNumber>;
661
+ biddingHourlyRateStrategy: import("zod").ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
662
+ biddingFixedHourlyRate: import("zod").ZodNullable<import("zod").ZodNumber>;
660
663
  leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, import("zod").ZodNumber>>;
661
664
  expenses: import("zod").ZodObject<{
662
665
  biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -771,6 +774,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
771
774
  maximumBoost: number | null;
772
775
  monthlyBudget: number | null;
773
776
  boostingThreshold: number | null;
777
+ biddingDelayInMinutes: number;
778
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
779
+ biddingFixedHourlyRate: number | null;
774
780
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
775
781
  expenses: {
776
782
  biddingAmount: number;
@@ -852,6 +858,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
852
858
  updatedAt: number;
853
859
  confirmedBillingAt: number | null;
854
860
  monthlyBudget: number | null;
861
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
862
+ biddingFixedHourlyRate: number | null;
855
863
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
856
864
  expenses: {
857
865
  biddingAmount?: number | undefined;
@@ -878,6 +886,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
878
886
  boostingEnabled?: boolean | null | undefined;
879
887
  maximumBoost?: number | null | undefined;
880
888
  boostingThreshold?: number | null | undefined;
889
+ biddingDelayInMinutes?: number | undefined;
881
890
  }>;
882
891
  organization: import("zod").ZodObject<{
883
892
  id: import("zod").ZodString;
@@ -1046,6 +1055,48 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1046
1055
  updatedAt: import("zod").ZodNumber;
1047
1056
  openRouterApiKey: import("zod").ZodNullable<import("zod").ZodString>;
1048
1057
  appTrialEndsAt: import("zod").ZodNullable<import("zod").ZodNumber>;
1058
+ oneTimePayments: import("zod").ZodOptional<import("zod").ZodObject<{
1059
+ usBidderAccountPayment: import("zod").ZodOptional<import("zod").ZodObject<{
1060
+ paidAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1061
+ amount: import("zod").ZodOptional<import("zod").ZodNumber>;
1062
+ currency: import("zod").ZodOptional<import("zod").ZodString>;
1063
+ status: import("zod").ZodString;
1064
+ paymentIntentId: import("zod").ZodOptional<import("zod").ZodString>;
1065
+ error: import("zod").ZodOptional<import("zod").ZodString>;
1066
+ }, "strip", import("zod").ZodTypeAny, {
1067
+ status: string;
1068
+ amount?: number | undefined;
1069
+ error?: string | undefined;
1070
+ paidAt?: number | undefined;
1071
+ currency?: string | undefined;
1072
+ paymentIntentId?: string | undefined;
1073
+ }, {
1074
+ status: string;
1075
+ amount?: number | undefined;
1076
+ error?: string | undefined;
1077
+ paidAt?: number | undefined;
1078
+ currency?: string | undefined;
1079
+ paymentIntentId?: string | undefined;
1080
+ }>>;
1081
+ }, "strip", import("zod").ZodTypeAny, {
1082
+ usBidderAccountPayment?: {
1083
+ status: string;
1084
+ amount?: number | undefined;
1085
+ error?: string | undefined;
1086
+ paidAt?: number | undefined;
1087
+ currency?: string | undefined;
1088
+ paymentIntentId?: string | undefined;
1089
+ } | undefined;
1090
+ }, {
1091
+ usBidderAccountPayment?: {
1092
+ status: string;
1093
+ amount?: number | undefined;
1094
+ error?: string | undefined;
1095
+ paidAt?: number | undefined;
1096
+ currency?: string | undefined;
1097
+ paymentIntentId?: string | undefined;
1098
+ } | undefined;
1099
+ }>>;
1049
1100
  }, "strip", import("zod").ZodTypeAny, {
1050
1101
  type: "agency" | "freelancer";
1051
1102
  id: string;
@@ -1093,6 +1144,16 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1093
1144
  nextScheduledBidTime: number | null;
1094
1145
  openRouterApiKey: string | null;
1095
1146
  appTrialEndsAt: number | null;
1147
+ oneTimePayments?: {
1148
+ usBidderAccountPayment?: {
1149
+ status: string;
1150
+ amount?: number | undefined;
1151
+ error?: string | undefined;
1152
+ paidAt?: number | undefined;
1153
+ currency?: string | undefined;
1154
+ paymentIntentId?: string | undefined;
1155
+ } | undefined;
1156
+ } | undefined;
1096
1157
  }, {
1097
1158
  type: "agency" | "freelancer";
1098
1159
  id: string;
@@ -1140,6 +1201,16 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1140
1201
  nextScheduledBidTime: number | null;
1141
1202
  openRouterApiKey: string | null;
1142
1203
  appTrialEndsAt: number | null;
1204
+ oneTimePayments?: {
1205
+ usBidderAccountPayment?: {
1206
+ status: string;
1207
+ amount?: number | undefined;
1208
+ error?: string | undefined;
1209
+ paidAt?: number | undefined;
1210
+ currency?: string | undefined;
1211
+ paymentIntentId?: string | undefined;
1212
+ } | undefined;
1213
+ } | undefined;
1143
1214
  }>;
1144
1215
  lead: import("zod").ZodObject<Omit<import("zod").objectUtil.extendShape<{
1145
1216
  id: import("zod").ZodNullable<import("zod").ZodString>;
@@ -1743,6 +1814,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1743
1814
  provider: import("zod").ZodEnum<["user-provided", "lancer-provided"]>;
1744
1815
  email: import("zod").ZodString;
1745
1816
  password: import("zod").ZodString;
1817
+ isConnecting: import("zod").ZodNullable<import("zod").ZodBoolean>;
1746
1818
  securityQuestionAnswer: import("zod").ZodNullable<import("zod").ZodString>;
1747
1819
  assignedOrganizations: import("zod").ZodArray<import("zod").ZodString, "many">;
1748
1820
  googleOauthTokens: import("zod").ZodNullable<import("zod").ZodAny>;
@@ -1781,6 +1853,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1781
1853
  provider: "user-provided" | "lancer-provided";
1782
1854
  email: string;
1783
1855
  password: string;
1856
+ isConnecting: boolean | null;
1784
1857
  securityQuestionAnswer: string | null;
1785
1858
  assignedOrganizations: string[];
1786
1859
  lastUsed: number | null;
@@ -1805,6 +1878,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1805
1878
  provider: "user-provided" | "lancer-provided";
1806
1879
  email: string;
1807
1880
  password: string;
1881
+ isConnecting: boolean | null;
1808
1882
  securityQuestionAnswer: string | null;
1809
1883
  assignedOrganizations: string[];
1810
1884
  lastUsed: number | null;
@@ -1885,6 +1959,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1885
1959
  maximumBoost: number | null;
1886
1960
  monthlyBudget: number | null;
1887
1961
  boostingThreshold: number | null;
1962
+ biddingDelayInMinutes: number;
1963
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
1964
+ biddingFixedHourlyRate: number | null;
1888
1965
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
1889
1966
  expenses: {
1890
1967
  biddingAmount: number;
@@ -1956,6 +2033,16 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1956
2033
  nextScheduledBidTime: number | null;
1957
2034
  openRouterApiKey: string | null;
1958
2035
  appTrialEndsAt: number | null;
2036
+ oneTimePayments?: {
2037
+ usBidderAccountPayment?: {
2038
+ status: string;
2039
+ amount?: number | undefined;
2040
+ error?: string | undefined;
2041
+ paidAt?: number | undefined;
2042
+ currency?: string | undefined;
2043
+ paymentIntentId?: string | undefined;
2044
+ } | undefined;
2045
+ } | undefined;
1959
2046
  };
1960
2047
  lead: {
1961
2048
  uid: string | null;
@@ -2101,6 +2188,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2101
2188
  provider: "user-provided" | "lancer-provided";
2102
2189
  email: string;
2103
2190
  password: string;
2191
+ isConnecting: boolean | null;
2104
2192
  securityQuestionAnswer: string | null;
2105
2193
  assignedOrganizations: string[];
2106
2194
  lastUsed: number | null;
@@ -2178,6 +2266,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2178
2266
  updatedAt: number;
2179
2267
  confirmedBillingAt: number | null;
2180
2268
  monthlyBudget: number | null;
2269
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2270
+ biddingFixedHourlyRate: number | null;
2181
2271
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
2182
2272
  expenses: {
2183
2273
  biddingAmount?: number | undefined;
@@ -2204,6 +2294,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2204
2294
  boostingEnabled?: boolean | null | undefined;
2205
2295
  maximumBoost?: number | null | undefined;
2206
2296
  boostingThreshold?: number | null | undefined;
2297
+ biddingDelayInMinutes?: number | undefined;
2207
2298
  };
2208
2299
  organization: {
2209
2300
  type: "agency" | "freelancer";
@@ -2252,6 +2343,16 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2252
2343
  nextScheduledBidTime: number | null;
2253
2344
  openRouterApiKey: string | null;
2254
2345
  appTrialEndsAt: number | null;
2346
+ oneTimePayments?: {
2347
+ usBidderAccountPayment?: {
2348
+ status: string;
2349
+ amount?: number | undefined;
2350
+ error?: string | undefined;
2351
+ paidAt?: number | undefined;
2352
+ currency?: string | undefined;
2353
+ paymentIntentId?: string | undefined;
2354
+ } | undefined;
2355
+ } | undefined;
2255
2356
  };
2256
2357
  lead: {
2257
2358
  uid: string | null;
@@ -2397,6 +2498,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2397
2498
  provider: "user-provided" | "lancer-provided";
2398
2499
  email: string;
2399
2500
  password: string;
2501
+ isConnecting: boolean | null;
2400
2502
  securityQuestionAnswer: string | null;
2401
2503
  assignedOrganizations: string[];
2402
2504
  lastUsed: number | null;
@@ -1,16 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.scrapeUserProfilePayloadSchema = exports.scrapePayloadSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.scrapePayloadSchema = zod_1.z.object({
6
- latestJobsUrls: zod_1.z.array(zod_1.z.string()),
7
- cookies: zod_1.z.array(zod_1.z.any()),
8
- username: zod_1.z.string(),
9
- password: zod_1.z.string(),
1
+ import { any, array, object, string } from "zod";
2
+ import { jobActivityOffsetHourSchema, jobListingSchema } from "../lead";
3
+ export const scrapePayloadSchema = object({
4
+ latestJobsUrls: array(string()),
5
+ cookies: array(any()),
6
+ username: string(),
7
+ password: string(),
10
8
  });
11
- exports.scrapeUserProfilePayloadSchema = zod_1.z.object({
12
- profileUrl: zod_1.z.string(),
13
- cookies: zod_1.z.array(zod_1.z.any()),
14
- username: zod_1.z.string(),
15
- password: zod_1.z.string(),
9
+ export const scrapeUserProfilePayloadSchema = object({
10
+ profileUrl: string(),
11
+ cookies: array(any()),
12
+ username: string(),
13
+ password: string(),
14
+ });
15
+ export const scrapeJobPayloadSchema = object({
16
+ listing: jobListingSchema,
17
+ });
18
+ export const scrapeJobActivityPayloadSchema = object({
19
+ listing: jobListingSchema,
20
+ offsetHour: jobActivityOffsetHourSchema,
16
21
  });