lancer-shared 1.2.93 → 1.2.95

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 (243) hide show
  1. package/dist/bundle.cjs.js +7 -7
  2. package/dist/schemas/agent/index.d.ts +10 -15
  3. package/dist/schemas/campaign/campaign-analytics.d.ts +18 -27
  4. package/dist/schemas/campaign/campaign.d.ts +25 -28
  5. package/dist/schemas/scraper/scrape-payload.d.ts +47 -25
  6. package/package.json +1 -1
  7. package/dist/constants/account-status.d.ts +0 -3
  8. package/dist/constants/account-status.js +0 -17
  9. package/dist/constants/collections.d.ts +0 -13
  10. package/dist/constants/collections.js +0 -16
  11. package/dist/constants/common-questions.js +0 -60
  12. package/dist/constants/index.js +0 -40
  13. package/dist/constants/job-filter-options.js +0 -268
  14. package/dist/constants/job-status.js +0 -26
  15. package/dist/constants/mappings/countryMapping.js +0 -122
  16. package/dist/constants/mappings/regionMapping.js +0 -242
  17. package/dist/constants/organization.d.ts +0 -2
  18. package/dist/constants/proxies.d.ts +0 -4
  19. package/dist/constants/routes.js +0 -114
  20. package/dist/constants/upwork-accounts.js +0 -21
  21. package/dist/constants/upwork-filters.d.ts +0 -5
  22. package/dist/constants/upwork-filters.js +0 -75
  23. package/dist/index.js +0 -20
  24. package/dist/schemas/account/account-status.js +0 -11
  25. package/dist/schemas/account/bidder-account.js +0 -37
  26. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  27. package/dist/schemas/account/index.js +0 -19
  28. package/dist/schemas/account/manager-account.d.ts +0 -116
  29. package/dist/schemas/account/manager-account.js +0 -38
  30. package/dist/schemas/account/scraper-account.js +0 -37
  31. package/dist/schemas/ai/ai-config.d.ts +0 -36
  32. package/dist/schemas/ai/ai-config.js +0 -12
  33. package/dist/schemas/ai/index.d.ts +0 -3
  34. package/dist/schemas/ai/index.js +0 -19
  35. package/dist/schemas/ai/proposal.d.ts +0 -82
  36. package/dist/schemas/ai/proposal.js +0 -16
  37. package/dist/schemas/ai/suitability.d.ts +0 -37
  38. package/dist/schemas/ai/suitability.js +0 -17
  39. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  40. package/dist/schemas/ai-config/ai-config.js +0 -12
  41. package/dist/schemas/ai-config/index.d.ts +0 -1
  42. package/dist/schemas/ai-config/index.js +0 -17
  43. package/dist/schemas/bid/bid-result.js +0 -15
  44. package/dist/schemas/bid/bid-status.d.ts +0 -30
  45. package/dist/schemas/bid/bid-status.js +0 -15
  46. package/dist/schemas/bid/bid.js +0 -36
  47. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  48. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  49. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  50. package/dist/schemas/bid/index.js +0 -18
  51. package/dist/schemas/bidding/index.d.ts +0 -1
  52. package/dist/schemas/bidding/index.js +0 -17
  53. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  54. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  55. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  56. package/dist/schemas/bidding/proposal-dto.js +0 -18
  57. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
  58. package/dist/schemas/campaign/campaign-analytics.js +0 -41
  59. package/dist/schemas/campaign/campaign-expenses.js +0 -9
  60. package/dist/schemas/campaign/campaign-insights.js +0 -31
  61. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -82
  62. package/dist/schemas/campaign/campaign-integrations.js +0 -16
  63. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  64. package/dist/schemas/campaign/campaign-job-count.js +0 -6
  65. package/dist/schemas/campaign/campaign.js +0 -44
  66. package/dist/schemas/campaign/index.js +0 -23
  67. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  68. package/dist/schemas/chat-message/chat-message.js +0 -13
  69. package/dist/schemas/chat-message/index.d.ts +0 -1
  70. package/dist/schemas/chat-message/index.js +0 -17
  71. package/dist/schemas/config/agency-config.d.ts +0 -17
  72. package/dist/schemas/config/agency-config.js +0 -10
  73. package/dist/schemas/config/index.d.ts +0 -1
  74. package/dist/schemas/config/index.js +0 -17
  75. package/dist/schemas/index.js +0 -32
  76. package/dist/schemas/job/index.js +0 -19
  77. package/dist/schemas/job/job-details.d.ts +0 -335
  78. package/dist/schemas/job/job-details.js +0 -29
  79. package/dist/schemas/job/job-note.d.ts +0 -83
  80. package/dist/schemas/job/job-note.js +0 -30
  81. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  82. package/dist/schemas/job/job-pipeline.js +0 -29
  83. package/dist/schemas/job/job-status.d.ts +0 -3
  84. package/dist/schemas/job/job-status.js +0 -27
  85. package/dist/schemas/job/job-suitability.d.ts +0 -12
  86. package/dist/schemas/job/job-suitability.js +0 -13
  87. package/dist/schemas/job/job.d.ts +0 -1160
  88. package/dist/schemas/job/job.js +0 -90
  89. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  90. package/dist/schemas/job/pipeline-job.js +0 -43
  91. package/dist/schemas/job/upwork-job.d.ts +0 -334
  92. package/dist/schemas/job/upwork-job.js +0 -60
  93. package/dist/schemas/job-filters/index.d.ts +0 -1
  94. package/dist/schemas/job-filters/index.js +0 -17
  95. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  96. package/dist/schemas/job-filters/job-filters.js +0 -87
  97. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  98. package/dist/schemas/knowledge-object/index.js +0 -17
  99. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  100. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  101. package/dist/schemas/lead/index.js +0 -19
  102. package/dist/schemas/lead/lead-note.d.ts +0 -83
  103. package/dist/schemas/lead/lead-note.js +0 -30
  104. package/dist/schemas/lead/lead-status.js +0 -26
  105. package/dist/schemas/lead/lead.d.ts +0 -1897
  106. package/dist/schemas/lead/lead.js +0 -143
  107. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  108. package/dist/schemas/logger/index.js +0 -17
  109. package/dist/schemas/logger/log-event.js +0 -66
  110. package/dist/schemas/organization/index.js +0 -17
  111. package/dist/schemas/organization/organization.d.ts +0 -70
  112. package/dist/schemas/organization/organization.js +0 -19
  113. package/dist/schemas/proxy/index.js +0 -17
  114. package/dist/schemas/proxy/proxy.js +0 -23
  115. package/dist/schemas/saved-search/index.js +0 -12
  116. package/dist/schemas/scraper/index.js +0 -18
  117. package/dist/schemas/scraper/scrape-payload.js +0 -16
  118. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  119. package/dist/schemas/scraper/scrape-response.js +0 -9
  120. package/dist/schemas/scraper/scrape-result.js +0 -23
  121. package/dist/schemas/shared.js +0 -16
  122. package/dist/schemas/time-filter/index.js +0 -9
  123. package/dist/schemas/upwork-account/index.d.ts +0 -3
  124. package/dist/schemas/upwork-account/index.js +0 -19
  125. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  126. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  127. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  128. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  129. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  130. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  131. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  132. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  133. package/dist/schemas/user/index.js +0 -55
  134. package/dist/types/account/account-status.d.ts +0 -3
  135. package/dist/types/account/account-status.js +0 -2
  136. package/dist/types/account/bidder-account.d.ts +0 -7
  137. package/dist/types/account/bidder-account.js +0 -2
  138. package/dist/types/account/index.d.ts +0 -3
  139. package/dist/types/account/index.js +0 -19
  140. package/dist/types/account/manager-account.d.ts +0 -7
  141. package/dist/types/account/manager-account.js +0 -2
  142. package/dist/types/account/scraper-account.d.ts +0 -5
  143. package/dist/types/account/scraper-account.js +0 -2
  144. package/dist/types/ai/ai-config.d.ts +0 -6
  145. package/dist/types/ai/ai-config.js +0 -2
  146. package/dist/types/ai/index.d.ts +0 -3
  147. package/dist/types/ai/index.js +0 -19
  148. package/dist/types/ai/proposal.d.ts +0 -10
  149. package/dist/types/ai/proposal.js +0 -2
  150. package/dist/types/ai/suitability.d.ts +0 -6
  151. package/dist/types/ai/suitability.js +0 -2
  152. package/dist/types/ai-config/ai-config.d.ts +0 -6
  153. package/dist/types/ai-config/ai-config.js +0 -2
  154. package/dist/types/ai-config/index.d.ts +0 -1
  155. package/dist/types/ai-config/index.js +0 -17
  156. package/dist/types/bid/bid-result.d.ts +0 -5
  157. package/dist/types/bid/bid-result.js +0 -2
  158. package/dist/types/bid/bid-status.d.ts +0 -5
  159. package/dist/types/bid/bid-status.js +0 -2
  160. package/dist/types/bid/bid.d.ts +0 -9
  161. package/dist/types/bid/bid.js +0 -2
  162. package/dist/types/bid/index.d.ts +0 -2
  163. package/dist/types/bid/index.js +0 -18
  164. package/dist/types/bidding/index.d.ts +0 -1
  165. package/dist/types/bidding/index.js +0 -17
  166. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  167. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  168. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  169. package/dist/types/bidding/proposal-dto.js +0 -2
  170. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  171. package/dist/types/campaign/campaign-analytics.js +0 -2
  172. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  173. package/dist/types/campaign/campaign-expenses.js +0 -2
  174. package/dist/types/campaign/campaign-insights.js +0 -2
  175. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  176. package/dist/types/campaign/campaign-integrations.js +0 -2
  177. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  178. package/dist/types/campaign/campaign-job-count.js +0 -2
  179. package/dist/types/campaign/campaign.js +0 -2
  180. package/dist/types/campaign/index.js +0 -22
  181. package/dist/types/chat-message/chat-message.d.ts +0 -4
  182. package/dist/types/chat-message/chat-message.js +0 -2
  183. package/dist/types/chat-message/index.d.ts +0 -1
  184. package/dist/types/chat-message/index.js +0 -17
  185. package/dist/types/config/agency-config.d.ts +0 -4
  186. package/dist/types/config/agency-config.js +0 -2
  187. package/dist/types/config/index.d.ts +0 -1
  188. package/dist/types/config/index.js +0 -17
  189. package/dist/types/index.d.ts +0 -15
  190. package/dist/types/index.js +0 -29
  191. package/dist/types/job/index.d.ts +0 -48
  192. package/dist/types/job/index.js +0 -19
  193. package/dist/types/job/job-details.d.ts +0 -36
  194. package/dist/types/job/job-details.js +0 -2
  195. package/dist/types/job/job-note.d.ts +0 -10
  196. package/dist/types/job/job-note.js +0 -2
  197. package/dist/types/job/job-pipeline.d.ts +0 -4
  198. package/dist/types/job/job-pipeline.js +0 -2
  199. package/dist/types/job/job-status.d.ts +0 -5
  200. package/dist/types/job/job-status.js +0 -12
  201. package/dist/types/job/job-suitability.d.ts +0 -3
  202. package/dist/types/job/job-suitability.js +0 -2
  203. package/dist/types/job/job.d.ts +0 -36
  204. package/dist/types/job/job.js +0 -2
  205. package/dist/types/job/nuxt.d.ts +0 -4
  206. package/dist/types/job-filters/index.d.ts +0 -1
  207. package/dist/types/job-filters/index.js +0 -17
  208. package/dist/types/job-filters/job-filters.d.ts +0 -4
  209. package/dist/types/job-filters/job-filters.js +0 -2
  210. package/dist/types/knowledge-object/index.d.ts +0 -1
  211. package/dist/types/knowledge-object/index.js +0 -17
  212. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  213. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  214. package/dist/types/logger/index.d.ts +0 -1
  215. package/dist/types/logger/index.js +0 -17
  216. package/dist/types/logger/log-event.js +0 -2
  217. package/dist/types/saved-search/index.d.ts +0 -6
  218. package/dist/types/saved-search/index.js +0 -2
  219. package/dist/types/scraper/index.d.ts +0 -2
  220. package/dist/types/scraper/index.js +0 -18
  221. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  222. package/dist/types/scraper/scrape-payload.js +0 -2
  223. package/dist/types/scraper/scrape-response.d.ts +0 -4
  224. package/dist/types/scraper/scrape-response.js +0 -2
  225. package/dist/types/scraper/scrape-result.d.ts +0 -8
  226. package/dist/types/scraper/scrape-result.js +0 -2
  227. package/dist/types/shared.d.ts +0 -8
  228. package/dist/types/time-filter/index.d.ts +0 -3
  229. package/dist/types/time-filter/index.js +0 -2
  230. package/dist/types/transaction/index.d.ts +0 -4
  231. package/dist/types/upwork-account/index.d.ts +0 -3
  232. package/dist/types/upwork-account/index.js +0 -19
  233. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  234. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  235. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  236. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  237. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  238. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
  239. package/dist/types/usage/index.d.ts +0 -6
  240. package/dist/types/user/index.d.ts +0 -15
  241. package/dist/types/user/index.js +0 -2
  242. package/dist/utils/index.js +0 -17
  243. package/dist/utils/try-catch.js +0 -25
@@ -12444,10 +12444,10 @@ const bidConfigSchema = z.object({
12444
12444
  specialisedProfile: z.string().nullable(),
12445
12445
  });
12446
12446
  const campaignStatusSchema = z.union([
12447
- z.literal('active'),
12448
- z.literal('draft'),
12449
- z.literal('paused'),
12450
- z.literal('error'),
12447
+ z.literal("active"),
12448
+ z.literal("draft"),
12449
+ z.literal("paused"),
12450
+ z.literal("error"),
12451
12451
  ]);
12452
12452
  const campaignSchema = z.object({
12453
12453
  id: z.string(),
@@ -12472,9 +12472,9 @@ const campaignSchema = z.object({
12472
12472
  priority: z.number().nullable(),
12473
12473
  });
12474
12474
  const upworkAccountConnectStatusSchema = z.union([
12475
- z.literal('processing'),
12476
- z.literal('connected'),
12477
- z.literal('failed'),
12475
+ z.literal("processing"),
12476
+ z.literal("connected"),
12477
+ z.literal("failed"),
12478
12478
  ]);
12479
12479
  const upworkAccountConnectSchema = z.object({
12480
12480
  status: upworkAccountConnectStatusSchema.nullable(),
@@ -329,9 +329,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
329
329
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
330
330
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
331
331
  wonAmount: z.ZodOptional<z.ZodNumber>;
332
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
333
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
334
- rejectedFeedback: z.ZodNullable<z.ZodString>;
332
+ biddingTaskId: z.ZodNullable<z.ZodString>;
333
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
335
334
  }>, "processed">, "strip", z.ZodTypeAny, {
336
335
  organizationId: string;
337
336
  campaignId: string;
@@ -441,9 +440,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
441
440
  boostingAmount: number | null;
442
441
  biddingTaskScheduled: boolean | null;
443
442
  scheduledBiddingTime: number | null;
444
- feedbackCheckTaskId: string | null;
445
- bidDecision: "proceeded" | "rejected" | null;
446
- rejectedFeedback: string | null;
443
+ biddingTaskId: string | null;
444
+ doNotApplyReason: string | null;
447
445
  activity?: Partial<Record<"4h" | "24h", {
448
446
  proposals: {
449
447
  min: number | null;
@@ -575,9 +573,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
575
573
  boostingAmount: number | null;
576
574
  biddingTaskScheduled: boolean | null;
577
575
  scheduledBiddingTime: number | null;
578
- feedbackCheckTaskId: string | null;
579
- bidDecision: "proceeded" | "rejected" | null;
580
- rejectedFeedback: string | null;
576
+ biddingTaskId: string | null;
577
+ doNotApplyReason: string | null;
581
578
  activity?: Partial<Record<"4h" | "24h", {
582
579
  proposals: {
583
580
  min: number | null;
@@ -725,9 +722,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
725
722
  boostingAmount: number | null;
726
723
  biddingTaskScheduled: boolean | null;
727
724
  scheduledBiddingTime: number | null;
728
- feedbackCheckTaskId: string | null;
729
- bidDecision: "proceeded" | "rejected" | null;
730
- rejectedFeedback: string | null;
725
+ biddingTaskId: string | null;
726
+ doNotApplyReason: string | null;
731
727
  activity?: Partial<Record<"4h" | "24h", {
732
728
  proposals: {
733
729
  min: number | null;
@@ -869,9 +865,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
869
865
  boostingAmount: number | null;
870
866
  biddingTaskScheduled: boolean | null;
871
867
  scheduledBiddingTime: number | null;
872
- feedbackCheckTaskId: string | null;
873
- bidDecision: "proceeded" | "rejected" | null;
874
- rejectedFeedback: string | null;
868
+ biddingTaskId: string | null;
869
+ doNotApplyReason: string | null;
875
870
  activity?: Partial<Record<"4h" | "24h", {
876
871
  proposals: {
877
872
  min: number | null;
@@ -1419,9 +1419,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1419
1419
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
1420
1420
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
1421
1421
  wonAmount: z.ZodOptional<z.ZodNumber>;
1422
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
1423
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
1424
- rejectedFeedback: z.ZodNullable<z.ZodString>;
1422
+ biddingTaskId: z.ZodNullable<z.ZodString>;
1423
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
1425
1424
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
1426
1425
  id: string | null;
1427
1426
  title: string | null;
@@ -2256,9 +2255,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2256
2255
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
2257
2256
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
2258
2257
  wonAmount: z.ZodOptional<z.ZodNumber>;
2259
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
2260
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
2261
- rejectedFeedback: z.ZodNullable<z.ZodString>;
2258
+ biddingTaskId: z.ZodNullable<z.ZodString>;
2259
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
2262
2260
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
2263
2261
  id: string | null;
2264
2262
  title: string | null;
@@ -3091,9 +3089,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3091
3089
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
3092
3090
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
3093
3091
  wonAmount: z.ZodOptional<z.ZodNumber>;
3094
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
3095
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
3096
- rejectedFeedback: z.ZodNullable<z.ZodString>;
3092
+ biddingTaskId: z.ZodNullable<z.ZodString>;
3093
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
3097
3094
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
3098
3095
  id: string | null;
3099
3096
  title: string | null;
@@ -4408,9 +4405,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4408
4405
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
4409
4406
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
4410
4407
  wonAmount: z.ZodOptional<z.ZodNumber>;
4411
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
4412
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
4413
- rejectedFeedback: z.ZodNullable<z.ZodString>;
4408
+ biddingTaskId: z.ZodNullable<z.ZodString>;
4409
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
4414
4410
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
4415
4411
  id: string | null;
4416
4412
  title: string | null;
@@ -5244,9 +5240,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5244
5240
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
5245
5241
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
5246
5242
  wonAmount: z.ZodOptional<z.ZodNumber>;
5247
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
5248
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
5249
- rejectedFeedback: z.ZodNullable<z.ZodString>;
5243
+ biddingTaskId: z.ZodNullable<z.ZodString>;
5244
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
5250
5245
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
5251
5246
  id: string | null;
5252
5247
  title: string | null;
@@ -6078,9 +6073,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6078
6073
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
6079
6074
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
6080
6075
  wonAmount: z.ZodOptional<z.ZodNumber>;
6081
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
6082
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
6083
- rejectedFeedback: z.ZodNullable<z.ZodString>;
6076
+ biddingTaskId: z.ZodNullable<z.ZodString>;
6077
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
6084
6078
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
6085
6079
  id: string | null;
6086
6080
  title: string | null;
@@ -6469,9 +6463,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6469
6463
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
6470
6464
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
6471
6465
  wonAmount: z.ZodOptional<z.ZodNumber>;
6472
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
6473
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
6474
- rejectedFeedback: z.ZodNullable<z.ZodString>;
6466
+ biddingTaskId: z.ZodNullable<z.ZodString>;
6467
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
6475
6468
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
6476
6469
  id: string | null;
6477
6470
  title: string | null;
@@ -6833,9 +6826,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6833
6826
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
6834
6827
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
6835
6828
  wonAmount: z.ZodOptional<z.ZodNumber>;
6836
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
6837
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
6838
- rejectedFeedback: z.ZodNullable<z.ZodString>;
6829
+ biddingTaskId: z.ZodNullable<z.ZodString>;
6830
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
6839
6831
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
6840
6832
  id: string | null;
6841
6833
  title: string | null;
@@ -7195,9 +7187,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7195
7187
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
7196
7188
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
7197
7189
  wonAmount: z.ZodOptional<z.ZodNumber>;
7198
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
7199
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
7200
- rejectedFeedback: z.ZodNullable<z.ZodString>;
7190
+ biddingTaskId: z.ZodNullable<z.ZodString>;
7191
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
7201
7192
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
7202
7193
  id: string | null;
7203
7194
  title: string | null;
@@ -1,7 +1,7 @@
1
- import { infer, z } from 'zod';
2
- import { JobFilters } from '../job';
3
- import { CoverLetterTemplate } from '../organization';
4
- import { CampaignExpenses } from './campaign-expenses';
1
+ import { infer, z } from "zod";
2
+ import { JobFilters } from "../job";
3
+ import { CoverLetterTemplate } from "../organization";
4
+ import { CampaignExpenses } from "./campaign-expenses";
5
5
  export declare const bidConfigSchema: z.ZodObject<{
6
6
  agencyName: z.ZodNullable<z.ZodString>;
7
7
  bidderId: z.ZodNullable<z.ZodString>;
@@ -67,11 +67,11 @@ export declare const campaignSchema: z.ZodObject<{
67
67
  projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
68
68
  experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
69
69
  questions: z.ZodNullable<z.ZodObject<{
70
- hasQuestions: z.ZodDefault<z.ZodEnum<["all", "yes", "no"]>>;
70
+ hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
71
71
  }, "strip", z.ZodTypeAny, {
72
- hasQuestions: "all" | "yes" | "no";
72
+ hasQuestions: ("all" | "yes" | "no")[];
73
73
  }, {
74
- hasQuestions?: "all" | "yes" | "no" | undefined;
74
+ hasQuestions: ("all" | "yes" | "no")[];
75
75
  }>>;
76
76
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
77
77
  clientInfo: z.ZodNullable<z.ZodObject<{
@@ -169,7 +169,7 @@ export declare const campaignSchema: z.ZodObject<{
169
169
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
170
170
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
171
171
  questions: {
172
- hasQuestions: "all" | "yes" | "no";
172
+ hasQuestions: ("all" | "yes" | "no")[];
173
173
  } | null;
174
174
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
175
175
  clientInfo: {
@@ -219,7 +219,7 @@ export declare const campaignSchema: z.ZodObject<{
219
219
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
220
220
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
221
221
  questions: {
222
- hasQuestions?: "all" | "yes" | "no" | undefined;
222
+ hasQuestions: ("all" | "yes" | "no")[];
223
223
  } | null;
224
224
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
225
225
  clientInfo: {
@@ -314,7 +314,7 @@ export declare const campaignSchema: z.ZodObject<{
314
314
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
315
315
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
316
316
  questions: {
317
- hasQuestions: "all" | "yes" | "no";
317
+ hasQuestions: ("all" | "yes" | "no")[];
318
318
  } | null;
319
319
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
320
320
  clientInfo: {
@@ -391,7 +391,7 @@ export declare const campaignSchema: z.ZodObject<{
391
391
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
392
392
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
393
393
  questions: {
394
- hasQuestions?: "all" | "yes" | "no" | undefined;
394
+ hasQuestions: ("all" | "yes" | "no")[];
395
395
  } | null;
396
396
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
397
397
  clientInfo: {
@@ -506,11 +506,11 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
506
506
  projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
507
507
  experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
508
508
  questions: z.ZodNullable<z.ZodObject<{
509
- hasQuestions: z.ZodDefault<z.ZodEnum<["all", "yes", "no"]>>;
509
+ hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
510
510
  }, "strip", z.ZodTypeAny, {
511
- hasQuestions: "all" | "yes" | "no";
511
+ hasQuestions: ("all" | "yes" | "no")[];
512
512
  }, {
513
- hasQuestions?: "all" | "yes" | "no" | undefined;
513
+ hasQuestions: ("all" | "yes" | "no")[];
514
514
  }>>;
515
515
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
516
516
  clientInfo: z.ZodNullable<z.ZodObject<{
@@ -608,7 +608,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
608
608
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
609
609
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
610
610
  questions: {
611
- hasQuestions: "all" | "yes" | "no";
611
+ hasQuestions: ("all" | "yes" | "no")[];
612
612
  } | null;
613
613
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
614
614
  clientInfo: {
@@ -658,7 +658,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
658
658
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
659
659
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
660
660
  questions: {
661
- hasQuestions?: "all" | "yes" | "no" | undefined;
661
+ hasQuestions: ("all" | "yes" | "no")[];
662
662
  } | null;
663
663
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
664
664
  clientInfo: {
@@ -752,7 +752,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
752
752
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
753
753
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
754
754
  questions: {
755
- hasQuestions: "all" | "yes" | "no";
755
+ hasQuestions: ("all" | "yes" | "no")[];
756
756
  } | null;
757
757
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
758
758
  clientInfo: {
@@ -820,7 +820,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
820
820
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
821
821
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
822
822
  questions: {
823
- hasQuestions?: "all" | "yes" | "no" | undefined;
823
+ hasQuestions: ("all" | "yes" | "no")[];
824
824
  } | null;
825
825
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
826
826
  clientInfo: {
@@ -915,11 +915,11 @@ export declare const updateCampaignSchema: z.ZodObject<{
915
915
  projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
916
916
  experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
917
917
  questions: z.ZodNullable<z.ZodObject<{
918
- hasQuestions: z.ZodDefault<z.ZodEnum<["all", "yes", "no"]>>;
918
+ hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
919
919
  }, "strip", z.ZodTypeAny, {
920
- hasQuestions: "all" | "yes" | "no";
920
+ hasQuestions: ("all" | "yes" | "no")[];
921
921
  }, {
922
- hasQuestions?: "all" | "yes" | "no" | undefined;
922
+ hasQuestions: ("all" | "yes" | "no")[];
923
923
  }>>;
924
924
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
925
925
  clientInfo: z.ZodNullable<z.ZodObject<{
@@ -1017,7 +1017,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1017
1017
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1018
1018
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1019
1019
  questions: {
1020
- hasQuestions: "all" | "yes" | "no";
1020
+ hasQuestions: ("all" | "yes" | "no")[];
1021
1021
  } | null;
1022
1022
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1023
1023
  clientInfo: {
@@ -1067,7 +1067,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1067
1067
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1068
1068
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1069
1069
  questions: {
1070
- hasQuestions?: "all" | "yes" | "no" | undefined;
1070
+ hasQuestions: ("all" | "yes" | "no")[];
1071
1071
  } | null;
1072
1072
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1073
1073
  clientInfo: {
@@ -1160,7 +1160,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1160
1160
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1161
1161
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1162
1162
  questions: {
1163
- hasQuestions: "all" | "yes" | "no";
1163
+ hasQuestions: ("all" | "yes" | "no")[];
1164
1164
  } | null;
1165
1165
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1166
1166
  clientInfo: {
@@ -1235,7 +1235,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1235
1235
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1236
1236
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1237
1237
  questions: {
1238
- hasQuestions?: "all" | "yes" | "no" | undefined;
1238
+ hasQuestions: ("all" | "yes" | "no")[];
1239
1239
  } | null;
1240
1240
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1241
1241
  clientInfo: {
@@ -1287,9 +1287,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
1287
1287
  priority?: number | null | undefined;
1288
1288
  }>;
1289
1289
  export interface Campaign extends z.infer<typeof campaignSchema> {
1290
- filters: JobFilters;
1291
- expenses: CampaignExpenses;
1292
- bidConfig: BidConfig | null;
1293
1290
  coverLetterTemplate: CoverLetterTemplate | null;
1294
1291
  }
1295
1292
  export type CampaignStatus = z.infer<typeof campaignStatusSchema>;