lancer-shared 1.2.150 → 1.2.151

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 (212) hide show
  1. package/dist/bundle.cjs.js +38 -3
  2. package/dist/constants/collections.js +11 -13
  3. package/dist/constants/common-questions.js +1 -4
  4. package/dist/constants/index.js +10 -32
  5. package/dist/constants/job-filter-options.js +1 -4
  6. package/dist/constants/job-status.js +7 -12
  7. package/dist/constants/mappings/countryMapping.js +1 -3
  8. package/dist/constants/mappings/regionMapping.js +1 -3
  9. package/dist/constants/organization.d.ts +2 -2
  10. package/dist/constants/routes.js +39 -37
  11. package/dist/constants/upwork-accounts.js +3 -6
  12. package/dist/index.js +4 -20
  13. package/dist/schemas/account/account-status.js +2 -5
  14. package/dist/schemas/account/bidder-account.js +22 -24
  15. package/dist/schemas/account/index.js +3 -19
  16. package/dist/schemas/account/scraper-account.d.ts +2 -2
  17. package/dist/schemas/account/scraper-account.js +21 -24
  18. package/dist/schemas/ai/ai-config.js +8 -11
  19. package/dist/schemas/ai/index.js +3 -19
  20. package/dist/schemas/ai/proposal.js +10 -13
  21. package/dist/schemas/ai/suitability.js +8 -11
  22. package/dist/schemas/bid/bid-result.js +9 -13
  23. package/dist/schemas/bid/bid.js +29 -30
  24. package/dist/schemas/bid/index.js +2 -18
  25. package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
  26. package/dist/schemas/campaign/campaign-analytics.d.ts +0 -8
  27. package/dist/schemas/campaign/campaign-analytics.js +32 -31
  28. package/dist/schemas/campaign/campaign-expenses.js +5 -8
  29. package/dist/schemas/campaign/campaign-insights.js +30 -30
  30. package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
  31. package/dist/schemas/campaign/campaign-integrations.js +10 -13
  32. package/dist/schemas/campaign/campaign-job-count.js +3 -6
  33. package/dist/schemas/campaign/campaign.js +32 -35
  34. package/dist/schemas/campaign/index.js +7 -23
  35. package/dist/schemas/chat-message/chat-message.js +7 -10
  36. package/dist/schemas/chat-message/index.js +1 -17
  37. package/dist/schemas/config/agency-config.js +6 -9
  38. package/dist/schemas/config/index.js +1 -17
  39. package/dist/schemas/event/index.d.ts +58 -0
  40. package/dist/schemas/index.js +17 -32
  41. package/dist/schemas/job/haha.json +581 -0
  42. package/dist/schemas/job-filters/index.js +1 -17
  43. package/dist/schemas/job-filters/job-filters.js +62 -65
  44. package/dist/schemas/lead/index.js +173 -19
  45. package/dist/schemas/lead/lead-note.js +13 -16
  46. package/dist/schemas/lead/lead-status.js +3 -6
  47. package/dist/schemas/lead/nuxt.js +287 -0
  48. package/dist/schemas/logger/feed/feed-job-chunk-enrich.d.ts +75 -0
  49. package/dist/schemas/logger/index.js +1 -17
  50. package/dist/schemas/logger/log-event.d.ts +10 -10
  51. package/dist/schemas/logger/log-event.js +100 -49
  52. package/dist/schemas/logger/scraper-events.d.ts +75 -0
  53. package/dist/schemas/meter-event/index.d.ts +12 -0
  54. package/dist/schemas/organization/index.js +70 -17
  55. package/dist/schemas/organization/member.js +7 -0
  56. package/dist/schemas/organization/organization.d.ts +177 -7
  57. package/dist/schemas/organization/organization.js +14 -17
  58. package/dist/schemas/organization/subscription.js +17 -0
  59. package/dist/schemas/profile/index.d.ts +2551 -0
  60. package/dist/schemas/proxy/index.js +3 -17
  61. package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
  62. package/dist/schemas/proxy/proxy-country.js +249 -0
  63. package/dist/schemas/proxy/proxy.js +25 -19
  64. package/dist/schemas/saved-search/index.js +8 -11
  65. package/dist/schemas/scraper/index.js +2 -18
  66. package/dist/schemas/scraper/scrape-payload.d.ts +0 -5
  67. package/dist/schemas/scraper/scrape-payload.js +19 -14
  68. package/dist/schemas/scraper/scrape-result.js +21 -21
  69. package/dist/schemas/shared.js +12 -9
  70. package/dist/schemas/talent/index.d.ts +1314 -0
  71. package/dist/schemas/tier/index.d.ts +119 -0
  72. package/dist/schemas/time-filter/index.js +5 -8
  73. package/dist/schemas/transaction/index.js +17 -0
  74. package/dist/schemas/usage/index.js +18 -0
  75. package/dist/schemas/user/index.js +38 -41
  76. package/dist/types/account/account-status.js +1 -2
  77. package/dist/types/account/bidder-account.js +1 -2
  78. package/dist/types/account/index.js +3 -19
  79. package/dist/types/account/scraper-account.js +1 -2
  80. package/dist/types/ai/ai-config.js +1 -2
  81. package/dist/types/ai/index.js +3 -19
  82. package/dist/types/ai/proposal.js +1 -2
  83. package/dist/types/ai/suitability.js +1 -2
  84. package/dist/types/bid/bid-result.js +1 -2
  85. package/dist/types/bid/bid.js +1 -2
  86. package/dist/types/bid/index.js +2 -18
  87. package/dist/types/campaign/campaign-analytics.js +1 -2
  88. package/dist/types/campaign/campaign-expenses.js +1 -2
  89. package/dist/types/campaign/campaign-insights.js +1 -2
  90. package/dist/types/campaign/campaign-integrations.js +1 -2
  91. package/dist/types/campaign/campaign-job-count.js +1 -2
  92. package/dist/types/campaign/campaign.js +1 -2
  93. package/dist/types/campaign/index.js +6 -22
  94. package/dist/types/chat-message/chat-message.js +1 -2
  95. package/dist/types/chat-message/index.js +1 -17
  96. package/dist/types/config/agency-config.js +1 -2
  97. package/dist/types/config/index.js +1 -17
  98. package/dist/types/index.js +15 -29
  99. package/dist/types/job/index.js +3 -19
  100. package/dist/types/job/job-note.js +1 -2
  101. package/dist/types/job/job-status.js +1 -4
  102. package/dist/types/job/nuxt.js +1 -0
  103. package/dist/types/job-filters/index.js +1 -17
  104. package/dist/types/job-filters/job-filters.js +1 -2
  105. package/dist/types/logger/index.js +1 -17
  106. package/dist/types/logger/log-event.js +1 -2
  107. package/dist/types/saved-search/index.js +1 -2
  108. package/dist/types/scraper/index.js +2 -18
  109. package/dist/types/scraper/scrape-payload.js +1 -2
  110. package/dist/types/scraper/scrape-result.js +1 -2
  111. package/dist/types/shared.js +1 -0
  112. package/dist/types/time-filter/index.js +1 -2
  113. package/dist/types/transaction/index.js +1 -0
  114. package/dist/types/usage/index.js +1 -0
  115. package/dist/types/user/index.js +1 -2
  116. package/dist/utils/index.js +1 -17
  117. package/dist/utils/try-catch.js +8 -23
  118. package/package.json +1 -1
  119. package/dist/constants/account-status.d.ts +0 -3
  120. package/dist/constants/account-status.js +0 -17
  121. package/dist/constants/proxies.d.ts +0 -4
  122. package/dist/constants/upwork-filters.d.ts +0 -5
  123. package/dist/constants/upwork-filters.js +0 -75
  124. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  125. package/dist/schemas/account/manager-account.d.ts +0 -116
  126. package/dist/schemas/account/manager-account.js +0 -38
  127. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  128. package/dist/schemas/ai-config/ai-config.js +0 -12
  129. package/dist/schemas/ai-config/index.d.ts +0 -1
  130. package/dist/schemas/ai-config/index.js +0 -17
  131. package/dist/schemas/bid/bid-status.d.ts +0 -30
  132. package/dist/schemas/bid/bid-status.js +0 -15
  133. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  134. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  135. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  136. package/dist/schemas/bidding/index.d.ts +0 -1
  137. package/dist/schemas/bidding/index.js +0 -17
  138. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  139. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  140. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  141. package/dist/schemas/bidding/proposal-dto.js +0 -18
  142. package/dist/schemas/job/feed-job.d.ts +0 -866
  143. package/dist/schemas/job/index.js +0 -19
  144. package/dist/schemas/job/job-details.js +0 -29
  145. package/dist/schemas/job/job-note.d.ts +0 -83
  146. package/dist/schemas/job/job-note.js +0 -30
  147. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  148. package/dist/schemas/job/job-pipeline.js +0 -29
  149. package/dist/schemas/job/job-status.d.ts +0 -3
  150. package/dist/schemas/job/job-status.js +0 -27
  151. package/dist/schemas/job/job-suitability.d.ts +0 -12
  152. package/dist/schemas/job/job-suitability.js +0 -13
  153. package/dist/schemas/job/job.d.ts +0 -1160
  154. package/dist/schemas/job/job.js +0 -90
  155. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  156. package/dist/schemas/job/pipeline-job.js +0 -43
  157. package/dist/schemas/job/upwork-job.d.ts +0 -334
  158. package/dist/schemas/job/upwork-job.js +0 -60
  159. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  160. package/dist/schemas/knowledge-object/index.js +0 -17
  161. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  162. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  163. package/dist/schemas/lead/lead.d.ts +0 -1897
  164. package/dist/schemas/lead/lead.js +0 -143
  165. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  166. package/dist/schemas/scraper/scrape-response.js +0 -9
  167. package/dist/schemas/upwork-account/index.d.ts +0 -3
  168. package/dist/schemas/upwork-account/index.js +0 -19
  169. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  170. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  171. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  172. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  173. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  174. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  175. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  176. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  177. package/dist/types/account/manager-account.d.ts +0 -7
  178. package/dist/types/account/manager-account.js +0 -2
  179. package/dist/types/ai-config/ai-config.d.ts +0 -6
  180. package/dist/types/ai-config/ai-config.js +0 -2
  181. package/dist/types/ai-config/index.d.ts +0 -1
  182. package/dist/types/ai-config/index.js +0 -17
  183. package/dist/types/bid/bid-status.d.ts +0 -5
  184. package/dist/types/bid/bid-status.js +0 -2
  185. package/dist/types/bidding/index.d.ts +0 -1
  186. package/dist/types/bidding/index.js +0 -17
  187. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  188. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  189. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  190. package/dist/types/bidding/proposal-dto.js +0 -2
  191. package/dist/types/job/job-details.d.ts +0 -36
  192. package/dist/types/job/job-details.js +0 -2
  193. package/dist/types/job/job-pipeline.d.ts +0 -4
  194. package/dist/types/job/job-pipeline.js +0 -2
  195. package/dist/types/job/job-suitability.d.ts +0 -3
  196. package/dist/types/job/job-suitability.js +0 -2
  197. package/dist/types/job/job.d.ts +0 -36
  198. package/dist/types/job/job.js +0 -2
  199. package/dist/types/knowledge-object/index.d.ts +0 -1
  200. package/dist/types/knowledge-object/index.js +0 -17
  201. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  202. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  203. package/dist/types/scraper/scrape-response.d.ts +0 -4
  204. package/dist/types/scraper/scrape-response.js +0 -2
  205. package/dist/types/upwork-account/index.d.ts +0 -3
  206. package/dist/types/upwork-account/index.js +0 -19
  207. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  208. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  209. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  210. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  211. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  212. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
@@ -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
- }>;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScraperAccountSchema = void 0;
4
- const zod_1 = require("zod");
5
- const upwork_account_status_1 = require("./upwork-account-status");
6
- const job_filters_1 = require("../job-filters");
7
- exports.upworkScraperAccountSchema = 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: upwork_account_status_1.upworkAccountStatusSchema,
17
- verified: zod_1.z.boolean(),
18
- });
19
- exports.createUpworkScraperAccountSchema = exports.upworkScraperAccountSchema.pick({
20
- email: true,
21
- password: true,
22
- proxy_credentials: true,
23
- region: true,
24
- verified: true,
25
- isActive: true,
26
- });
27
- exports.updateUpworkScraperAccountSchema = exports.upworkScraperAccountSchema
28
- .omit({
29
- id: true,
30
- })
31
- .partial();
@@ -1,90 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const upworkScrapingAccountSchema: 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" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
48
- email: string;
49
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
50
- password: string;
51
- verified: boolean;
52
- proxy_credentials: string;
53
- }, {
54
- email: string;
55
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
56
- password: string;
57
- verified: boolean;
58
- proxy_credentials: string;
59
- }>;
60
- export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
61
- email: z.ZodOptional<z.ZodString>;
62
- status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
63
- region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
64
- cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
- password: z.ZodOptional<z.ZodString>;
66
- isActive: z.ZodOptional<z.ZodBoolean>;
67
- verified: z.ZodOptional<z.ZodBoolean>;
68
- lastUsed: z.ZodOptional<z.ZodNumber>;
69
- proxy_credentials: z.ZodOptional<z.ZodString>;
70
- }, "strip", z.ZodTypeAny, {
71
- email?: string | undefined;
72
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
73
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
74
- cookies?: Record<string, string> | undefined;
75
- password?: string | undefined;
76
- isActive?: boolean | undefined;
77
- verified?: boolean | undefined;
78
- lastUsed?: number | undefined;
79
- proxy_credentials?: string | undefined;
80
- }, {
81
- email?: string | undefined;
82
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
83
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
84
- cookies?: Record<string, string> | undefined;
85
- password?: string | undefined;
86
- isActive?: boolean | undefined;
87
- verified?: boolean | undefined;
88
- lastUsed?: number | undefined;
89
- proxy_credentials?: string | undefined;
90
- }>;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema = void 0;
4
- const zod_1 = require("zod");
5
- const upwork_account_status_1 = require("./upwork-account-status");
6
- const job_filters_1 = require("../job-filters");
7
- exports.upworkScrapingAccountSchema = 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: upwork_account_status_1.upworkAccountStatusSchema,
17
- verified: zod_1.z.boolean(),
18
- });
19
- exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema.pick({
20
- email: true,
21
- password: true,
22
- proxy_credentials: true,
23
- region: true,
24
- verified: true,
25
- });
26
- exports.updateUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema
27
- .omit({
28
- id: true,
29
- })
30
- .partial();
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- import { createManagerAccountSchema, updateManagerAccountSchema, managerAccountProvider, managerAccountSchema } from '../../schemas';
3
- export interface ManagerAccount extends z.infer<typeof managerAccountSchema> {
4
- }
5
- export type ManagerAccountProvider = z.infer<typeof managerAccountProvider>;
6
- export type CreateManagerAccount = z.infer<typeof createManagerAccountSchema>;
7
- export type UpdateManagerAccount = z.infer<typeof updateManagerAccountSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { z } from 'zod';
2
- import { aiConfigSchema, updateAiConfigSchema } from '../../schemas';
3
- export interface AiConfig extends z.infer<typeof aiConfigSchema> {
4
- }
5
- export interface UpdateAiConfig extends z.infer<typeof updateAiConfigSchema> {
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from './ai-config';
@@ -1,17 +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);
@@ -1,5 +0,0 @@
1
- import { z } from 'zod';
2
- import { bidSuccessSchema, bidFailedSchema } from '../../schemas/bid/bid-status';
3
- export type BidSuccess = z.infer<typeof bidSuccessSchema>;
4
- export type BidFailed = z.infer<typeof bidFailedSchema>;
5
- export type BidStatus = BidSuccess | BidFailed;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from './proposal-bidding-status';
@@ -1,17 +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("./proposal-bidding-status"), exports);
@@ -1,3 +0,0 @@
1
- import { z } from 'zod';
2
- import { proposalBiddingStatusSchema } from '../../schemas';
3
- export type ProposalBiddingStatus = z.infer<typeof proposalBiddingStatusSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { z } from 'zod';
2
- import { proposalDtoSchema } from '../../schemas';
3
- export type ProposalDto = z.infer<typeof proposalDtoSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,36 +0,0 @@
1
- import { z } from 'zod';
2
- import { SavedSearch } from '../saved-search';
3
- import { ClientInfoSchema, jobDetailsSchema, JobListItemSchema, JobMetadataSchema, jobPipelineDetailsSchema, jobPipelineResponseSchema, JobSkillsSchema, upworkJobDetailsSchema, VendorQualificationsSchema } from '../../schemas';
4
- import { JobNote } from './job-note';
5
- import { JobStatus } from './job-status';
6
- import { QuestionAnswerPair } from '../ai';
7
- export interface UpworkJob extends z.infer<typeof upworkJobDetailsSchema> {
8
- clientInfo: ClientInfo | null;
9
- metadata: JobMetadata | null;
10
- skills: JobSkill[] | null;
11
- vendorQualifications: VendorQualifications | null;
12
- }
13
- export interface Job extends z.infer<typeof jobDetailsSchema> {
14
- clientInfo: ClientInfo | null;
15
- metadata: JobMetadata | null;
16
- skills: JobSkill[] | null;
17
- vendorQualifications: VendorQualifications | null;
18
- notes?: JobNote[];
19
- suitabilityQuestionAnswerPairs?: QuestionAnswerPair[];
20
- status?: JobStatus;
21
- }
22
- export interface JobPipeline extends z.infer<typeof jobPipelineDetailsSchema> {
23
- clientInfo: Pick<ClientInfo, 'country'>;
24
- metadata: Pick<JobMetadata, 'hourlyRate' | 'fixedPrice'>;
25
- }
26
- export interface JobPipelineResponse extends z.infer<typeof jobPipelineResponseSchema> {
27
- jobs: JobPipeline[];
28
- }
29
- export type JobWithSavedSearch = Job & {
30
- savedSearch?: SavedSearch | null;
31
- };
32
- export type JobListItem = z.infer<typeof JobListItemSchema>;
33
- export type JobSkill = z.infer<typeof JobSkillsSchema>;
34
- export type VendorQualifications = z.infer<typeof VendorQualificationsSchema>;
35
- export type ClientInfo = z.infer<typeof ClientInfoSchema>;
36
- export type JobMetadata = z.infer<typeof JobMetadataSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { z } from 'zod';
2
- import { jobPipelineSchema } from '../../schemas';
3
- export interface JobPipeline extends z.infer<typeof jobPipelineSchema> {
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { z } from 'zod';
2
- import { questionAnswerPairSchema } from '../../schemas';
3
- export type QuestionAnswerPair = z.infer<typeof questionAnswerPairSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,36 +0,0 @@
1
- import { z } from "zod";
2
- import { SavedSearch } from "../saved-search";
3
- import { LeadNote } from "./job-note";
4
- import { LeadAgentStatus, LeadStatus } from "./job-status";
5
- import { QuestionAnswerPair } from "../ai";
6
- import { clientInfoSchema, jobListItemSchema, leadResponseSchema, leadSchema, jobSkillsSchema, metadataSchema, upworkJobSchema, vendorQualificationSchema, clientReviewSchema, bidRangeSchema, jobActivitySchema } from "../../schemas/lead/lead";
7
- export interface Job extends z.infer<typeof upworkJobSchema> {
8
- clientInfo: ClientInfo | null;
9
- metadata: JobMetadata | null;
10
- skills: JobSkill[] | null;
11
- vendorQualifications: VendorQualifications | null;
12
- }
13
- export interface Lead extends z.infer<typeof leadSchema> {
14
- clientInfo: ClientInfo | null;
15
- metadata: JobMetadata | null;
16
- skills: JobSkill[] | null;
17
- vendorQualifications: VendorQualifications | null;
18
- notes: LeadNote[] | null;
19
- questionAnswerPairs: QuestionAnswerPair[] | null;
20
- agentStatus: LeadAgentStatus;
21
- leadStatus: LeadStatus;
22
- }
23
- export interface LeadResponse extends z.infer<typeof leadResponseSchema> {
24
- leads: Lead[];
25
- }
26
- export type JobWithSavedSearch = Lead & {
27
- savedSearch?: SavedSearch | null;
28
- };
29
- export type JobListItem = z.infer<typeof jobListItemSchema>;
30
- export type JobSkill = z.infer<typeof jobSkillsSchema>;
31
- export type VendorQualifications = z.infer<typeof vendorQualificationSchema>;
32
- export type ClientInfo = z.infer<typeof clientInfoSchema>;
33
- export type JobMetadata = z.infer<typeof metadataSchema>;
34
- export type ClientReview = z.infer<typeof clientReviewSchema>;
35
- export type JobBidRange = z.infer<typeof bidRangeSchema>;
36
- export type JobActivity = z.infer<typeof jobActivitySchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from './knowledge-object';
@@ -1,17 +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("./knowledge-object"), exports);
@@ -1,4 +0,0 @@
1
- import { chatResponseSchema, KnowledgeObjectSchema } from '../../schemas/knowledge-object';
2
- import { z } from 'zod';
3
- export type KnowledgeObject = z.infer<typeof KnowledgeObjectSchema>;
4
- export type ChatResponse = z.infer<typeof chatResponseSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { z } from 'zod';
2
- import { scrapeResponseSchema } from '../../schemas';
3
- export interface ScrapeResponse extends z.infer<typeof scrapeResponseSchema> {
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export * from './upwork-account-status';
2
- export * from './upwork-business-manager-account';
3
- export * from './upwork-scraping-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-scraping-account"), exports);
@@ -1,3 +0,0 @@
1
- import { z } from 'zod';
2
- import { upworkAccountStatusSchema } from '../../schemas';
3
- export type UpworkAccountStatus = z.infer<typeof upworkAccountStatusSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- import { createUpworkBusinessManagerAccountSchema, updateUpworkBusinessManagerAccountSchema, upworkBusinessManagerAccountProvider, upworkBusinessManagerAccountSchema } from '../../schemas';
3
- export interface UpworkBusinessManagerAccount extends z.infer<typeof upworkBusinessManagerAccountSchema> {
4
- }
5
- export type UpworkBusinessManagerAccountProvider = z.infer<typeof upworkBusinessManagerAccountProvider>;
6
- export type CreateUpworkBusinessManagerAccount = z.infer<typeof createUpworkBusinessManagerAccountSchema>;
7
- export type UpdateUpworkBusinessManagerAccount = z.infer<typeof updateUpworkBusinessManagerAccountSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { z } from 'zod';
2
- import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScraperAccountSchema } from '../../schemas';
3
- export type UpworkScraperAccount = z.infer<typeof upworkScraperAccountSchema>;
4
- export type CreateUpworkScraperAccount = z.infer<typeof createUpworkScraperAccountSchema>;
5
- export type UpdateUpworkScraperAccount = z.infer<typeof updateUpworkScraperAccountSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });