lancer-shared 1.2.39 → 1.2.41

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 (246) hide show
  1. package/dist/bundle.cjs.js +3 -3
  2. package/dist/schemas/agent/index.d.ts +10 -20
  3. package/dist/schemas/campaign/campaign-analytics.d.ts +48 -40
  4. package/dist/schemas/campaign/campaign.d.ts +0 -18
  5. package/dist/schemas/logger/log-event.d.ts +5 -5
  6. package/dist/schemas/organization/index.d.ts +4 -0
  7. package/dist/schemas/organization/onboarding.d.ts +3 -3
  8. package/dist/schemas/scraper/scrape-payload.d.ts +24 -24
  9. package/package.json +1 -1
  10. package/dist/constants/account-status.d.ts +0 -3
  11. package/dist/constants/account-status.js +0 -17
  12. package/dist/constants/collections.d.ts +0 -13
  13. package/dist/constants/collections.js +0 -16
  14. package/dist/constants/common-questions.js +0 -60
  15. package/dist/constants/index.js +0 -40
  16. package/dist/constants/job-filter-options.js +0 -268
  17. package/dist/constants/job-status.js +0 -26
  18. package/dist/constants/mappings/countryMapping.js +0 -122
  19. package/dist/constants/mappings/regionMapping.js +0 -242
  20. package/dist/constants/organization.d.ts +0 -2
  21. package/dist/constants/proxies.d.ts +0 -4
  22. package/dist/constants/routes.js +0 -114
  23. package/dist/constants/upwork-accounts.js +0 -21
  24. package/dist/constants/upwork-filters.d.ts +0 -5
  25. package/dist/constants/upwork-filters.js +0 -75
  26. package/dist/index.js +0 -20
  27. package/dist/schemas/account/account-status.js +0 -11
  28. package/dist/schemas/account/bidder-account.js +0 -37
  29. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  30. package/dist/schemas/account/index.js +0 -19
  31. package/dist/schemas/account/manager-account.d.ts +0 -116
  32. package/dist/schemas/account/manager-account.js +0 -38
  33. package/dist/schemas/account/scraper-account.js +0 -37
  34. package/dist/schemas/ai/ai-config.d.ts +0 -36
  35. package/dist/schemas/ai/ai-config.js +0 -12
  36. package/dist/schemas/ai/index.d.ts +0 -3
  37. package/dist/schemas/ai/index.js +0 -19
  38. package/dist/schemas/ai/proposal.d.ts +0 -82
  39. package/dist/schemas/ai/proposal.js +0 -16
  40. package/dist/schemas/ai/suitability.d.ts +0 -37
  41. package/dist/schemas/ai/suitability.js +0 -17
  42. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  43. package/dist/schemas/ai-config/ai-config.js +0 -12
  44. package/dist/schemas/ai-config/index.d.ts +0 -1
  45. package/dist/schemas/ai-config/index.js +0 -17
  46. package/dist/schemas/bid/bid-result.js +0 -15
  47. package/dist/schemas/bid/bid-status.d.ts +0 -30
  48. package/dist/schemas/bid/bid-status.js +0 -15
  49. package/dist/schemas/bid/bid.js +0 -36
  50. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  51. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  52. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  53. package/dist/schemas/bid/index.js +0 -18
  54. package/dist/schemas/bidding/index.d.ts +0 -1
  55. package/dist/schemas/bidding/index.js +0 -17
  56. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  57. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  58. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  59. package/dist/schemas/bidding/proposal-dto.js +0 -18
  60. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
  61. package/dist/schemas/campaign/campaign-analytics.js +0 -41
  62. package/dist/schemas/campaign/campaign-expenses.js +0 -9
  63. package/dist/schemas/campaign/campaign-insights.js +0 -31
  64. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -82
  65. package/dist/schemas/campaign/campaign-integrations.js +0 -16
  66. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  67. package/dist/schemas/campaign/campaign-job-count.js +0 -6
  68. package/dist/schemas/campaign/campaign.js +0 -44
  69. package/dist/schemas/campaign/index.js +0 -23
  70. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  71. package/dist/schemas/chat-message/chat-message.js +0 -13
  72. package/dist/schemas/chat-message/index.d.ts +0 -1
  73. package/dist/schemas/chat-message/index.js +0 -17
  74. package/dist/schemas/config/agency-config.d.ts +0 -17
  75. package/dist/schemas/config/agency-config.js +0 -10
  76. package/dist/schemas/config/index.d.ts +0 -1
  77. package/dist/schemas/config/index.js +0 -17
  78. package/dist/schemas/index.js +0 -32
  79. package/dist/schemas/job/index.js +0 -19
  80. package/dist/schemas/job/job-details.d.ts +0 -335
  81. package/dist/schemas/job/job-details.js +0 -29
  82. package/dist/schemas/job/job-note.d.ts +0 -83
  83. package/dist/schemas/job/job-note.js +0 -30
  84. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  85. package/dist/schemas/job/job-pipeline.js +0 -29
  86. package/dist/schemas/job/job-status.d.ts +0 -3
  87. package/dist/schemas/job/job-status.js +0 -27
  88. package/dist/schemas/job/job-suitability.d.ts +0 -12
  89. package/dist/schemas/job/job-suitability.js +0 -13
  90. package/dist/schemas/job/job.d.ts +0 -1160
  91. package/dist/schemas/job/job.js +0 -90
  92. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  93. package/dist/schemas/job/pipeline-job.js +0 -43
  94. package/dist/schemas/job/upwork-job.d.ts +0 -334
  95. package/dist/schemas/job/upwork-job.js +0 -60
  96. package/dist/schemas/job-filters/index.d.ts +0 -1
  97. package/dist/schemas/job-filters/index.js +0 -17
  98. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  99. package/dist/schemas/job-filters/job-filters.js +0 -87
  100. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  101. package/dist/schemas/knowledge-object/index.js +0 -17
  102. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  103. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  104. package/dist/schemas/lead/index.js +0 -19
  105. package/dist/schemas/lead/lead-note.d.ts +0 -83
  106. package/dist/schemas/lead/lead-note.js +0 -30
  107. package/dist/schemas/lead/lead-status.js +0 -26
  108. package/dist/schemas/lead/lead.d.ts +0 -1897
  109. package/dist/schemas/lead/lead.js +0 -143
  110. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  111. package/dist/schemas/logger/index.js +0 -17
  112. package/dist/schemas/logger/log-event.js +0 -66
  113. package/dist/schemas/organization/index.js +0 -17
  114. package/dist/schemas/organization/organization.d.ts +0 -70
  115. package/dist/schemas/organization/organization.js +0 -19
  116. package/dist/schemas/proxy/index.js +0 -17
  117. package/dist/schemas/proxy/proxy.js +0 -23
  118. package/dist/schemas/saved-search/index.js +0 -12
  119. package/dist/schemas/scraper/index.js +0 -18
  120. package/dist/schemas/scraper/scrape-payload.js +0 -16
  121. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  122. package/dist/schemas/scraper/scrape-response.js +0 -9
  123. package/dist/schemas/scraper/scrape-result.js +0 -23
  124. package/dist/schemas/shared.js +0 -16
  125. package/dist/schemas/time-filter/index.js +0 -9
  126. package/dist/schemas/upwork-account/index.d.ts +0 -3
  127. package/dist/schemas/upwork-account/index.js +0 -19
  128. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  129. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  130. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  131. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  132. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  133. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  134. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  135. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  136. package/dist/schemas/user/index.js +0 -55
  137. package/dist/types/account/account-status.d.ts +0 -3
  138. package/dist/types/account/account-status.js +0 -2
  139. package/dist/types/account/bidder-account.d.ts +0 -7
  140. package/dist/types/account/bidder-account.js +0 -2
  141. package/dist/types/account/index.d.ts +0 -3
  142. package/dist/types/account/index.js +0 -19
  143. package/dist/types/account/manager-account.d.ts +0 -7
  144. package/dist/types/account/manager-account.js +0 -2
  145. package/dist/types/account/scraper-account.d.ts +0 -5
  146. package/dist/types/account/scraper-account.js +0 -2
  147. package/dist/types/ai/ai-config.d.ts +0 -6
  148. package/dist/types/ai/ai-config.js +0 -2
  149. package/dist/types/ai/index.d.ts +0 -3
  150. package/dist/types/ai/index.js +0 -19
  151. package/dist/types/ai/proposal.d.ts +0 -10
  152. package/dist/types/ai/proposal.js +0 -2
  153. package/dist/types/ai/suitability.d.ts +0 -6
  154. package/dist/types/ai/suitability.js +0 -2
  155. package/dist/types/ai-config/ai-config.d.ts +0 -6
  156. package/dist/types/ai-config/ai-config.js +0 -2
  157. package/dist/types/ai-config/index.d.ts +0 -1
  158. package/dist/types/ai-config/index.js +0 -17
  159. package/dist/types/bid/bid-result.d.ts +0 -5
  160. package/dist/types/bid/bid-result.js +0 -2
  161. package/dist/types/bid/bid-status.d.ts +0 -5
  162. package/dist/types/bid/bid-status.js +0 -2
  163. package/dist/types/bid/bid.d.ts +0 -9
  164. package/dist/types/bid/bid.js +0 -2
  165. package/dist/types/bid/index.d.ts +0 -2
  166. package/dist/types/bid/index.js +0 -18
  167. package/dist/types/bidding/index.d.ts +0 -1
  168. package/dist/types/bidding/index.js +0 -17
  169. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  170. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  171. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  172. package/dist/types/bidding/proposal-dto.js +0 -2
  173. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  174. package/dist/types/campaign/campaign-analytics.js +0 -2
  175. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  176. package/dist/types/campaign/campaign-expenses.js +0 -2
  177. package/dist/types/campaign/campaign-insights.js +0 -2
  178. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  179. package/dist/types/campaign/campaign-integrations.js +0 -2
  180. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  181. package/dist/types/campaign/campaign-job-count.js +0 -2
  182. package/dist/types/campaign/campaign.js +0 -2
  183. package/dist/types/campaign/index.js +0 -22
  184. package/dist/types/chat-message/chat-message.d.ts +0 -4
  185. package/dist/types/chat-message/chat-message.js +0 -2
  186. package/dist/types/chat-message/index.d.ts +0 -1
  187. package/dist/types/chat-message/index.js +0 -17
  188. package/dist/types/config/agency-config.d.ts +0 -4
  189. package/dist/types/config/agency-config.js +0 -2
  190. package/dist/types/config/index.d.ts +0 -1
  191. package/dist/types/config/index.js +0 -17
  192. package/dist/types/index.d.ts +0 -15
  193. package/dist/types/index.js +0 -29
  194. package/dist/types/job/index.d.ts +0 -48
  195. package/dist/types/job/index.js +0 -19
  196. package/dist/types/job/job-details.d.ts +0 -36
  197. package/dist/types/job/job-details.js +0 -2
  198. package/dist/types/job/job-note.d.ts +0 -10
  199. package/dist/types/job/job-note.js +0 -2
  200. package/dist/types/job/job-pipeline.d.ts +0 -4
  201. package/dist/types/job/job-pipeline.js +0 -2
  202. package/dist/types/job/job-status.d.ts +0 -5
  203. package/dist/types/job/job-status.js +0 -12
  204. package/dist/types/job/job-suitability.d.ts +0 -3
  205. package/dist/types/job/job-suitability.js +0 -2
  206. package/dist/types/job/job.d.ts +0 -36
  207. package/dist/types/job/job.js +0 -2
  208. package/dist/types/job/nuxt.d.ts +0 -4
  209. package/dist/types/job-filters/index.d.ts +0 -1
  210. package/dist/types/job-filters/index.js +0 -17
  211. package/dist/types/job-filters/job-filters.d.ts +0 -4
  212. package/dist/types/job-filters/job-filters.js +0 -2
  213. package/dist/types/knowledge-object/index.d.ts +0 -1
  214. package/dist/types/knowledge-object/index.js +0 -17
  215. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  216. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  217. package/dist/types/logger/index.d.ts +0 -1
  218. package/dist/types/logger/index.js +0 -17
  219. package/dist/types/logger/log-event.js +0 -2
  220. package/dist/types/saved-search/index.d.ts +0 -6
  221. package/dist/types/saved-search/index.js +0 -2
  222. package/dist/types/scraper/index.d.ts +0 -2
  223. package/dist/types/scraper/index.js +0 -18
  224. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  225. package/dist/types/scraper/scrape-payload.js +0 -2
  226. package/dist/types/scraper/scrape-response.d.ts +0 -4
  227. package/dist/types/scraper/scrape-response.js +0 -2
  228. package/dist/types/scraper/scrape-result.d.ts +0 -8
  229. package/dist/types/scraper/scrape-result.js +0 -2
  230. package/dist/types/shared.d.ts +0 -8
  231. package/dist/types/time-filter/index.d.ts +0 -3
  232. package/dist/types/time-filter/index.js +0 -2
  233. package/dist/types/transaction/index.d.ts +0 -4
  234. package/dist/types/upwork-account/index.d.ts +0 -3
  235. package/dist/types/upwork-account/index.js +0 -19
  236. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  237. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  238. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  239. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  240. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  241. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
  242. package/dist/types/usage/index.d.ts +0 -6
  243. package/dist/types/user/index.d.ts +0 -15
  244. package/dist/types/user/index.js +0 -2
  245. package/dist/utils/index.js +0 -17
  246. package/dist/utils/try-catch.js +0 -25
@@ -1,114 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildRoute = exports.ROUTES = void 0;
4
- exports.ROUTES = {
5
- AUTH: {
6
- BASE: 'auth',
7
- REGISTER: 'auth/register',
8
- },
9
- EVENTS: {
10
- BASE: 'events',
11
- BY_ID: (id) => `events/${id}`,
12
- },
13
- CAMPAIGNS: {
14
- BASE: 'campaigns',
15
- BY_ID: (id) => `campaigns/${id}`,
16
- LEADS: {
17
- BASE: (campaignId) => `campaigns/${campaignId}/leads`,
18
- BY_ID: (campaignId, leadId) => `campaigns/${campaignId}/leads/${leadId}`,
19
- SYNC: (campaignId) => `campaigns/${campaignId}/leads/sync`,
20
- NOTES: (campaignId, leadId, noteId) => `campaigns/${campaignId}/leads/${leadId}/notes/${noteId}`,
21
- SEARCH: (campaignId) => `campaigns/${campaignId}/leads/search`,
22
- },
23
- INSIGHTS: (campaignId) => `campaigns/${campaignId}/insights`,
24
- AI_METRICS: (campaignId) => `campaigns/${campaignId}/ai-metrics`,
25
- CONNECT_SAVED: (campaignId) => `campaigns/${campaignId}/get-connects-saved`,
26
- ANALYTICS: (campaignId, timeFilter) => `campaigns/${campaignId}/analytics?createdAt=${timeFilter}`,
27
- ACTIVITY: (campaignId, status, offset, limit) => `campaigns/${campaignId}/activity?status=${status}&offset=${offset}&limit=${limit}`,
28
- INTEGRATIONS: {
29
- BASE: (campaignId) => `campaigns/${campaignId}/integrations`,
30
- TEST_SUITABILITY_WEBHOOK: (campaignId, integrationId) => `campaigns/${campaignId}/integrations/${integrationId}/suitability/test-webhook`,
31
- TEST_PROPOSAL_WEBHOOK: (campaignId, integrationId) => `campaigns/${campaignId}/integrations/${integrationId}/proposal/test-webhook`,
32
- SUITABILITY_NOTIFICATION: (campaignId, leadId) => `campaigns/${campaignId}/integrations/suitability/notify/${leadId}`,
33
- PROPOSAL_SENT_NOTIFICATION: (campaignId, leadId) => `campaigns/${campaignId}/integrations/proposal-sent/notify/${leadId}`,
34
- SLACK: {
35
- BASE: (campaignId) => `campaigns/${campaignId}/integrations/slack`,
36
- TEST_SUITABILITY_WEBHOOK: (campaignId) => `campaigns/${campaignId}/integrations/slack/suitability/test-webhook`,
37
- TEST_PROPOSAL_WEBHOOK: (campaignId) => `campaigns/${campaignId}/integrations/slack/proposal/test-webhook`,
38
- },
39
- DISCORD: {
40
- BASE: (campaignId) => `campaigns/${campaignId}/integrations/discord`,
41
- TEST_SUITABILITY_WEBHOOK: (campaignId) => `campaigns/${campaignId}/integrations/discord/suitability/test-webhook`,
42
- TEST_PROPOSAL_WEBHOOK: (campaignId) => `campaigns/${campaignId}/integrations/discord/proposal/test-webhook`,
43
- },
44
- },
45
- },
46
- JOBS: {
47
- BASE: 'jobs',
48
- BY_ID: (id) => `jobs/${id}`,
49
- IMPORT: 'jobs/import',
50
- FILTER_OPTIONS: 'jobs/filter-options',
51
- TOTAL_JOBS: 'jobs/total-jobs',
52
- GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
53
- SEARCH: 'jobs/search',
54
- },
55
- USERS: {
56
- BASE: 'users',
57
- BY_ID: (id) => `users/${id}`,
58
- },
59
- AI_CONFIG: {
60
- BASE: 'ai-config',
61
- GENERATE_KNOWLEDGE_BASE: 'ai-config/generate-knowledge-base',
62
- },
63
- COOKIES: {
64
- BASE: 'cookies',
65
- SCRAPE: 'cookies/scrape-cookies',
66
- },
67
- SCRAPING: {
68
- BASE: 'scraping',
69
- START_SCRAPING: 'scraping/start',
70
- START_WORLDWIDE_SCRAPING: 'scraping/start-worldwide',
71
- START_US_SCRAPING: 'scraping/start-us',
72
- START_UK_SCRAPING: 'scraping/start-uk',
73
- UPDATE_ACTIVITY_4H_WORLDWIDE: 'scraping/update-activity/4h',
74
- UPDATE_ACTIVITY_4H_UK: 'scraping/update-activity/4h/uk',
75
- UPDATE_ACTIVITY_4H_US: 'scraping/update-activity/4h/us',
76
- UPDATE_ACTIVITY_24H_WORLDWIDE: 'scraping/update-activity/24h',
77
- UPDATE_ACTIVITY_24H_UK: 'scraping/update-activity/24h/uk',
78
- UPDATE_ACTIVITY_24H_US: 'scraping/update-activity/24h/us',
79
- },
80
- ADMIN: {
81
- BASE: 'admin',
82
- BIDDER_ACCOUNTS: {
83
- BASE: 'admin/bidder-accounts',
84
- BY_ID: (id) => `admin/bidder-accounts/${id}`,
85
- BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
86
- BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
87
- },
88
- SCRAPER_ACCOUNTS: {
89
- BASE: 'admin/scraper-accounts',
90
- BY_ID: (id) => `admin/scraper-accounts/${id}`,
91
- BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
92
- BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
93
- },
94
- PROXIES: {
95
- BASE: 'admin/proxies',
96
- BY_ID: (id) => `admin/proxies/${id}`,
97
- REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
98
- SYNC: 'admin/proxies/sync',
99
- },
100
- },
101
- BID: {
102
- BASE: 'bid',
103
- BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
104
- },
105
- };
106
- // Helper function to build route with parameters
107
- const buildRoute = (route, params = {}) => {
108
- let builtRoute = route;
109
- Object.entries(params).forEach(([key, value]) => {
110
- builtRoute = builtRoute.replace(`:${key}`, value);
111
- });
112
- return builtRoute;
113
- };
114
- exports.buildRoute = buildRoute;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bidderAccountProviderDisplayMap = exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
4
- exports.accountStatusOrder = [
5
- 'verification_required',
6
- 'shadow_banned',
7
- 'healthy',
8
- 'banned',
9
- 'suspended',
10
- ];
11
- exports.accountStatusDisplayMap = {
12
- verification_required: 'Verification Required',
13
- shadow_banned: 'Shadow Banned',
14
- healthy: 'Healthy',
15
- banned: 'Banned',
16
- suspended: 'Suspended',
17
- };
18
- exports.bidderAccountProviderDisplayMap = {
19
- 'lancer-provided': 'Lancer Provided',
20
- 'user-provided': 'User Provided',
21
- };
@@ -1,5 +0,0 @@
1
- import { KnowledgeObject } from '../types/knowledge-object';
2
- export declare const CATEGORIES: string[];
3
- export declare const EXPERIENCE_LEVELS: string[];
4
- export declare const CLIENT_HISTORY: string[];
5
- export declare const emptyKnowledgeObject: KnowledgeObject;
@@ -1,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.emptyKnowledgeObject = exports.CLIENT_HISTORY = exports.EXPERIENCE_LEVELS = exports.CATEGORIES = void 0;
4
- exports.CATEGORIES = [
5
- 'Accounting',
6
- 'Business Analysis & Strategy',
7
- 'Financial Analysis & Modeling',
8
- 'HR Administration',
9
- 'Management Consulting',
10
- 'Tax Preparation',
11
- 'Data Entry',
12
- 'Personal/Virtual Assistance',
13
- 'Project Management',
14
- 'Research',
15
- 'Customer Service',
16
- 'Technical Support',
17
- 'Data Analytics',
18
- 'Data Processing',
19
- 'Data Engineering',
20
- 'Machine Learning',
21
- 'AI Development',
22
- 'Art & Illustration',
23
- 'Audio Production',
24
- 'Brand Design',
25
- 'Logo Design',
26
- 'Graphics Design',
27
- 'Video Production',
28
- 'Voice Acting',
29
- 'Architecture',
30
- 'Chemical Engineering',
31
- 'Civil Engineering',
32
- 'Electrical Engineering',
33
- 'Interior Design',
34
- 'Mechanical Engineering',
35
- 'Database Administration',
36
- 'Information Security',
37
- 'Network Administration',
38
- 'Systems Administration',
39
- 'DevOps Engineering',
40
- 'Business Law',
41
- 'Immigration Law',
42
- 'Tax Law',
43
- 'Regulatory Law',
44
- 'Paralegal Services',
45
- 'Digital Marketing',
46
- 'Lead Generation',
47
- 'Marketing Strategy',
48
- 'Social Media Marketing',
49
- 'SEO',
50
- 'Language Translation',
51
- 'Legal Translation',
52
- 'Technical Translation',
53
- 'Medical Translation',
54
- 'Desktop Development',
55
- 'Mobile Development',
56
- 'Web Development',
57
- 'Game Development',
58
- 'QA & Testing',
59
- 'Content Writing',
60
- 'Copywriting',
61
- 'Technical Writing',
62
- 'Creative Writing',
63
- 'Editing',
64
- ];
65
- exports.EXPERIENCE_LEVELS = ['Entry Level', 'Mid Level', 'Senior Level'];
66
- exports.CLIENT_HISTORY = ['No hires', '1-9 hires', '10+ hires'];
67
- // Default knowledge object with all null values
68
- exports.emptyKnowledgeObject = {
69
- categories: exports.CATEGORIES.reduce((acc, category) => (Object.assign(Object.assign({}, acc), { [category]: null })), {}),
70
- experienceLevels: exports.EXPERIENCE_LEVELS.reduce((acc, level) => (Object.assign(Object.assign({}, acc), { [level]: null })), {}),
71
- minHourlyRate: null,
72
- fixedPriceMin: null,
73
- clientHistory: exports.CLIENT_HISTORY.reduce((acc, history) => (Object.assign(Object.assign({}, acc), { [history]: null })), {}),
74
- keywords: [],
75
- };
package/dist/index.js DELETED
@@ -1,20 +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("./schemas"), exports);
18
- __exportStar(require("./types"), exports);
19
- __exportStar(require("./constants"), exports);
20
- __exportStar(require("./utils"), exports);
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.accountStatusSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.accountStatusSchema = zod_1.z.enum([
6
- 'verification_required',
7
- 'shadow_banned',
8
- 'healthy',
9
- 'banned',
10
- 'suspended',
11
- ]);
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateBidderAccountSchema = exports.createBidderAccountSchema = exports.bidderAccountSchema = exports.bidderAccountProvider = void 0;
4
- const zod_1 = require("zod");
5
- const account_status_1 = require("./account-status");
6
- exports.bidderAccountProvider = zod_1.z.enum([
7
- 'user-provided',
8
- 'lancer-provided',
9
- ]);
10
- exports.bidderAccountSchema = zod_1.z.object({
11
- id: zod_1.z.string(),
12
- provider: exports.bidderAccountProvider,
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
- status: account_status_1.accountStatusSchema,
17
- verified: zod_1.z.boolean(),
18
- isActive: zod_1.z.boolean(),
19
- assignedOrganizations: zod_1.z.array(zod_1.z.string()),
20
- lastUsed: zod_1.z.number().nullable(),
21
- multiLoginProfileId: zod_1.z.string().nullable(),
22
- createdAt: zod_1.z.number(),
23
- updatedAt: zod_1.z.number(),
24
- });
25
- exports.createBidderAccountSchema = exports.bidderAccountSchema.pick({
26
- email: true,
27
- password: true,
28
- provider: true,
29
- status: true,
30
- verified: true,
31
- isActive: true,
32
- });
33
- exports.updateBidderAccountSchema = exports.bidderAccountSchema
34
- .omit({
35
- id: true,
36
- })
37
- .partial();
@@ -1,5 +0,0 @@
1
- export declare class NoBidderAccountsAvailableException extends Error {
2
- readonly code = "NO_BIDDER_ACCOUNTS_AVAILABLE";
3
- constructor(message: string);
4
- }
5
- export declare const noBidderAccountsAvailableException: (message: string) => NoBidderAccountsAvailableException;
@@ -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("./account-status"), exports);
18
- __exportStar(require("./bidder-account"), exports);
19
- __exportStar(require("./scraper-account"), exports);
@@ -1,116 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const managerAccountProvider: z.ZodEnum<["user_provided", "lancer_provided"]>;
3
- export declare const managerAccountSchema: 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
- createdAt: z.ZodNumber;
16
- updatedAt: z.ZodNumber;
17
- }, "strip", z.ZodTypeAny, {
18
- id: string;
19
- email: string;
20
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
21
- createdAt: number;
22
- updatedAt: number;
23
- cookies: any[] | null;
24
- password: string;
25
- isActive: boolean;
26
- provider: "user_provided" | "lancer_provided";
27
- proxy: string;
28
- verified: boolean;
29
- assignedOrganizations: string[];
30
- lastUsed: number | null;
31
- }, {
32
- id: string;
33
- email: string;
34
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
35
- createdAt: number;
36
- updatedAt: number;
37
- cookies: any[] | null;
38
- password: string;
39
- isActive: boolean;
40
- provider: "user_provided" | "lancer_provided";
41
- proxy: string;
42
- verified: boolean;
43
- assignedOrganizations: string[];
44
- lastUsed: number | null;
45
- }>;
46
- export declare const createManagerAccountSchema: z.ZodObject<Pick<{
47
- id: z.ZodString;
48
- provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
49
- email: z.ZodString;
50
- password: z.ZodString;
51
- cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
52
- proxy: z.ZodString;
53
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
54
- verified: z.ZodBoolean;
55
- isActive: z.ZodBoolean;
56
- assignedOrganizations: z.ZodArray<z.ZodString, "many">;
57
- lastUsed: z.ZodNullable<z.ZodNumber>;
58
- createdAt: z.ZodNumber;
59
- updatedAt: z.ZodNumber;
60
- }, "email" | "status" | "password" | "isActive" | "provider" | "proxy" | "verified">, "strip", z.ZodTypeAny, {
61
- email: string;
62
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
63
- password: string;
64
- isActive: boolean;
65
- provider: "user_provided" | "lancer_provided";
66
- proxy: string;
67
- verified: boolean;
68
- }, {
69
- email: string;
70
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
71
- password: string;
72
- isActive: boolean;
73
- provider: "user_provided" | "lancer_provided";
74
- proxy: string;
75
- verified: boolean;
76
- }>;
77
- export declare const updateManagerAccountSchema: z.ZodObject<{
78
- email: z.ZodOptional<z.ZodString>;
79
- status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
80
- createdAt: z.ZodOptional<z.ZodNumber>;
81
- updatedAt: z.ZodOptional<z.ZodNumber>;
82
- cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
83
- password: z.ZodOptional<z.ZodString>;
84
- isActive: z.ZodOptional<z.ZodBoolean>;
85
- provider: z.ZodOptional<z.ZodEnum<["user_provided", "lancer_provided"]>>;
86
- proxy: z.ZodOptional<z.ZodString>;
87
- verified: z.ZodOptional<z.ZodBoolean>;
88
- assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
89
- lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
- }, "strip", z.ZodTypeAny, {
91
- email?: string | undefined;
92
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
93
- createdAt?: number | undefined;
94
- updatedAt?: number | undefined;
95
- cookies?: any[] | null | undefined;
96
- password?: string | undefined;
97
- isActive?: boolean | undefined;
98
- provider?: "user_provided" | "lancer_provided" | undefined;
99
- proxy?: string | undefined;
100
- verified?: boolean | undefined;
101
- assignedOrganizations?: string[] | undefined;
102
- lastUsed?: number | null | undefined;
103
- }, {
104
- email?: string | undefined;
105
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
106
- createdAt?: number | undefined;
107
- updatedAt?: number | undefined;
108
- cookies?: any[] | null | undefined;
109
- password?: string | undefined;
110
- isActive?: boolean | undefined;
111
- provider?: "user_provided" | "lancer_provided" | undefined;
112
- proxy?: string | undefined;
113
- verified?: boolean | undefined;
114
- assignedOrganizations?: string[] | undefined;
115
- lastUsed?: number | null | undefined;
116
- }>;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateManagerAccountSchema = exports.createManagerAccountSchema = exports.managerAccountSchema = exports.managerAccountProvider = void 0;
4
- const zod_1 = require("zod");
5
- const account_status_1 = require("./account-status");
6
- exports.managerAccountProvider = zod_1.z.enum([
7
- 'user_provided',
8
- 'lancer_provided',
9
- ]);
10
- exports.managerAccountSchema = zod_1.z.object({
11
- id: zod_1.z.string(),
12
- provider: exports.managerAccountProvider,
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: account_status_1.accountStatusSchema,
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
- createdAt: zod_1.z.number(),
23
- updatedAt: zod_1.z.number(),
24
- });
25
- exports.createManagerAccountSchema = exports.managerAccountSchema.pick({
26
- email: true,
27
- password: true,
28
- provider: true,
29
- proxy: true,
30
- status: true,
31
- verified: true,
32
- isActive: true,
33
- });
34
- exports.updateManagerAccountSchema = exports.managerAccountSchema
35
- .omit({
36
- id: true,
37
- })
38
- .partial();
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateScraperAccountSchema = exports.createScraperAccountSchema = exports.scraperAccountSchema = void 0;
4
- const zod_1 = require("zod");
5
- const account_status_1 = require("./account-status");
6
- const job_filters_1 = require("../job-filters");
7
- exports.scraperAccountSchema = zod_1.z.object({
8
- id: zod_1.z.string(),
9
- email: zod_1.z.string().email(),
10
- password: zod_1.z.string(),
11
- cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
12
- proxy_credentials: zod_1.z.string(),
13
- region: job_filters_1.regionEnum,
14
- isActive: zod_1.z.boolean(),
15
- lastUsed: zod_1.z.number(),
16
- status: account_status_1.accountStatusSchema,
17
- verified: zod_1.z.boolean(),
18
- errors: zod_1.z.array(zod_1.z.object({
19
- errorMessage: zod_1.z.string(),
20
- timestamp: zod_1.z.number(),
21
- screenshotUrl: zod_1.z.string(),
22
- htmlUrl: zod_1.z.string(),
23
- })),
24
- });
25
- exports.createScraperAccountSchema = exports.scraperAccountSchema.pick({
26
- email: true,
27
- password: true,
28
- proxy_credentials: true,
29
- region: true,
30
- verified: true,
31
- isActive: true,
32
- });
33
- exports.updateScraperAccountSchema = exports.scraperAccountSchema
34
- .omit({
35
- id: true,
36
- })
37
- .partial();
@@ -1,36 +0,0 @@
1
- import { z } from "zod";
2
- export declare const aiConfigSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- suitabilityPrompt: z.ZodNullable<z.ZodString>;
5
- proposalPrompt: z.ZodNullable<z.ZodString>;
6
- questionProposalPrompt: z.ZodNullable<z.ZodString>;
7
- knowledgeBase: z.ZodNullable<z.ZodString>;
8
- }, "strip", z.ZodTypeAny, {
9
- id: string;
10
- suitabilityPrompt: string | null;
11
- proposalPrompt: string | null;
12
- questionProposalPrompt: string | null;
13
- knowledgeBase: string | null;
14
- }, {
15
- id: string;
16
- suitabilityPrompt: string | null;
17
- proposalPrompt: string | null;
18
- questionProposalPrompt: string | null;
19
- knowledgeBase: string | null;
20
- }>;
21
- export declare const updateAiConfigSchema: z.ZodObject<{
22
- suitabilityPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- proposalPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- questionProposalPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- knowledgeBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, "strip", z.ZodTypeAny, {
27
- suitabilityPrompt?: string | null | undefined;
28
- proposalPrompt?: string | null | undefined;
29
- questionProposalPrompt?: string | null | undefined;
30
- knowledgeBase?: string | null | undefined;
31
- }, {
32
- suitabilityPrompt?: string | null | undefined;
33
- proposalPrompt?: string | null | undefined;
34
- questionProposalPrompt?: string | null | undefined;
35
- knowledgeBase?: string | null | undefined;
36
- }>;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateAiConfigSchema = exports.aiConfigSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.aiConfigSchema = zod_1.z.object({
6
- id: zod_1.z.string(),
7
- suitabilityPrompt: zod_1.z.string().nullable(),
8
- proposalPrompt: zod_1.z.string().nullable(),
9
- questionProposalPrompt: zod_1.z.string().nullable(),
10
- knowledgeBase: zod_1.z.string().nullable(),
11
- });
12
- exports.updateAiConfigSchema = exports.aiConfigSchema.omit({ id: true }).partial();
@@ -1,3 +0,0 @@
1
- export * from './ai-config';
2
- export * from './proposal';
3
- export * from './suitability';
@@ -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("./ai-config"), exports);
18
- __exportStar(require("./proposal"), exports);
19
- __exportStar(require("./suitability"), exports);
@@ -1,82 +0,0 @@
1
- import { z } from "zod";
2
- export declare const questionAnswerPairSchema: z.ZodObject<{
3
- question: z.ZodString;
4
- answer: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- question: string;
7
- answer: string;
8
- }, {
9
- question: string;
10
- answer: string;
11
- }>;
12
- export declare const proposalSchema: z.ZodObject<{
13
- coverLetter: z.ZodString;
14
- questionAnswerPairs: z.ZodArray<z.ZodObject<{
15
- question: z.ZodString;
16
- answer: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- question: string;
19
- answer: string;
20
- }, {
21
- question: string;
22
- answer: string;
23
- }>, "many">;
24
- }, "strip", z.ZodTypeAny, {
25
- coverLetter: string;
26
- questionAnswerPairs: {
27
- question: string;
28
- answer: string;
29
- }[];
30
- }, {
31
- coverLetter: string;
32
- questionAnswerPairs: {
33
- question: string;
34
- answer: string;
35
- }[];
36
- }>;
37
- export declare const proposalResponseSchema: z.ZodArray<z.ZodObject<{
38
- modelName: z.ZodString;
39
- proposal: z.ZodObject<{
40
- coverLetter: z.ZodString;
41
- questionAnswerPairs: z.ZodArray<z.ZodObject<{
42
- question: z.ZodString;
43
- answer: z.ZodString;
44
- }, "strip", z.ZodTypeAny, {
45
- question: string;
46
- answer: string;
47
- }, {
48
- question: string;
49
- answer: string;
50
- }>, "many">;
51
- }, "strip", z.ZodTypeAny, {
52
- coverLetter: string;
53
- questionAnswerPairs: {
54
- question: string;
55
- answer: string;
56
- }[];
57
- }, {
58
- coverLetter: string;
59
- questionAnswerPairs: {
60
- question: string;
61
- answer: string;
62
- }[];
63
- }>;
64
- }, "strip", z.ZodTypeAny, {
65
- modelName: string;
66
- proposal: {
67
- coverLetter: string;
68
- questionAnswerPairs: {
69
- question: string;
70
- answer: string;
71
- }[];
72
- };
73
- }, {
74
- modelName: string;
75
- proposal: {
76
- coverLetter: string;
77
- questionAnswerPairs: {
78
- question: string;
79
- answer: string;
80
- }[];
81
- };
82
- }>, "many">;