lancer-shared 1.0.166 → 1.0.168

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 (213) hide show
  1. package/dist/bundle.cjs.js +6251 -0
  2. package/dist/constants/collections.js +1 -4
  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/routes.d.ts +9 -2
  10. package/dist/constants/routes.js +40 -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.d.ts +15 -15
  15. package/dist/schemas/account/bidder-account.js +19 -22
  16. package/dist/schemas/account/index.js +3 -19
  17. package/dist/schemas/account/scraper-account.d.ts +27 -27
  18. package/dist/schemas/account/scraper-account.js +21 -24
  19. package/dist/schemas/ai/ai-config.js +8 -11
  20. package/dist/schemas/ai/index.js +3 -19
  21. package/dist/schemas/ai/proposal.d.ts +12 -12
  22. package/dist/schemas/ai/proposal.js +10 -13
  23. package/dist/schemas/ai/suitability.d.ts +6 -6
  24. package/dist/schemas/ai/suitability.js +8 -11
  25. package/dist/schemas/bid/bid-result.d.ts +2 -2
  26. package/dist/schemas/bid/bid-result.js +10 -13
  27. package/dist/schemas/bid/bid.d.ts +42 -42
  28. package/dist/schemas/bid/bid.js +27 -30
  29. package/dist/schemas/bid/index.js +2 -18
  30. package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
  31. package/dist/schemas/campaign/campaign-analytics.d.ts +99 -40
  32. package/dist/schemas/campaign/campaign-analytics.js +28 -31
  33. package/dist/schemas/campaign/campaign-expenses.d.ts +2 -2
  34. package/dist/schemas/campaign/campaign-expenses.js +5 -8
  35. package/dist/schemas/campaign/campaign-insights.d.ts +12 -12
  36. package/dist/schemas/campaign/campaign-insights.js +30 -30
  37. package/dist/schemas/campaign/campaign-integrations.js +10 -13
  38. package/dist/schemas/campaign/campaign-job-count.js +3 -6
  39. package/dist/schemas/campaign/campaign.d.ts +107 -107
  40. package/dist/schemas/campaign/campaign.js +32 -35
  41. package/dist/schemas/campaign/index.js +7 -23
  42. package/dist/schemas/chat-message/chat-message.js +7 -10
  43. package/dist/schemas/chat-message/index.js +1 -17
  44. package/dist/schemas/config/agency-config.js +6 -9
  45. package/dist/schemas/config/index.js +1 -17
  46. package/dist/schemas/event/index.d.ts +58 -0
  47. package/dist/schemas/index.d.ts +16 -16
  48. package/dist/schemas/index.js +16 -32
  49. package/dist/schemas/job/index.d.ts +95 -3
  50. package/dist/schemas/job-filters/index.js +1 -17
  51. package/dist/schemas/job-filters/job-filters.d.ts +16 -16
  52. package/dist/schemas/job-filters/job-filters.js +62 -65
  53. package/dist/schemas/lead/index.d.ts +2405 -1
  54. package/dist/schemas/lead/index.js +166 -19
  55. package/dist/schemas/lead/lead-note.d.ts +4 -4
  56. package/dist/schemas/lead/lead-note.js +13 -16
  57. package/dist/schemas/lead/lead-status.js +3 -6
  58. package/dist/schemas/logger/index.js +1 -17
  59. package/dist/schemas/logger/log-event.d.ts +183 -13
  60. package/dist/schemas/logger/log-event.js +38 -19
  61. package/dist/schemas/organization/index.js +1 -17
  62. package/dist/schemas/organization/organization.d.ts +10 -10
  63. package/dist/schemas/organization/organization.js +14 -17
  64. package/dist/schemas/proxy/index.js +1 -17
  65. package/dist/schemas/proxy/proxy.d.ts +16 -16
  66. package/dist/schemas/proxy/proxy.js +14 -17
  67. package/dist/schemas/saved-search/index.d.ts +5 -5
  68. package/dist/schemas/saved-search/index.js +8 -11
  69. package/dist/schemas/scraper/index.js +2 -18
  70. package/dist/schemas/scraper/scrape-payload.d.ts +105 -19
  71. package/dist/schemas/scraper/scrape-payload.js +19 -14
  72. package/dist/schemas/scraper/scrape-result.d.ts +476 -289
  73. package/dist/schemas/scraper/scrape-result.js +21 -21
  74. package/dist/schemas/shared.d.ts +2 -1
  75. package/dist/schemas/shared.js +12 -9
  76. package/dist/schemas/time-filter/index.js +5 -8
  77. package/dist/schemas/user/index.d.ts +26 -26
  78. package/dist/schemas/user/index.js +38 -41
  79. package/dist/types/account/account-status.js +1 -2
  80. package/dist/types/account/bidder-account.js +1 -2
  81. package/dist/types/account/index.js +3 -19
  82. package/dist/types/account/scraper-account.js +1 -2
  83. package/dist/types/ai/ai-config.js +1 -2
  84. package/dist/types/ai/index.js +3 -19
  85. package/dist/types/ai/proposal.js +1 -2
  86. package/dist/types/ai/suitability.js +1 -2
  87. package/dist/types/bid/bid-result.js +1 -2
  88. package/dist/types/bid/bid.js +1 -2
  89. package/dist/types/bid/index.js +2 -18
  90. package/dist/types/campaign/campaign-analytics.js +1 -2
  91. package/dist/types/campaign/campaign-expenses.js +1 -2
  92. package/dist/types/campaign/campaign-insights.js +1 -2
  93. package/dist/types/campaign/campaign-integrations.js +1 -2
  94. package/dist/types/campaign/campaign-job-count.js +1 -2
  95. package/dist/types/campaign/campaign.js +1 -2
  96. package/dist/types/campaign/index.js +6 -22
  97. package/dist/types/chat-message/chat-message.js +1 -2
  98. package/dist/types/chat-message/index.js +1 -17
  99. package/dist/types/config/agency-config.js +1 -2
  100. package/dist/types/config/index.js +1 -17
  101. package/dist/types/index.d.ts +1 -0
  102. package/dist/types/index.js +14 -29
  103. package/dist/types/job/index.d.ts +44 -1
  104. package/dist/types/job/index.js +2 -19
  105. package/dist/types/job/job-note.js +1 -2
  106. package/dist/types/job/job-status.js +1 -4
  107. package/dist/types/job-filters/index.js +1 -17
  108. package/dist/types/job-filters/job-filters.js +1 -2
  109. package/dist/types/logger/index.js +1 -17
  110. package/dist/types/logger/log-event.d.ts +4 -1
  111. package/dist/types/logger/log-event.js +1 -2
  112. package/dist/types/saved-search/index.js +1 -2
  113. package/dist/types/scraper/index.js +2 -18
  114. package/dist/types/scraper/scrape-payload.d.ts +5 -1
  115. package/dist/types/scraper/scrape-payload.js +1 -2
  116. package/dist/types/scraper/scrape-result.d.ts +3 -2
  117. package/dist/types/scraper/scrape-result.js +1 -2
  118. package/dist/types/shared.d.ts +3 -0
  119. package/dist/types/shared.js +1 -0
  120. package/dist/types/time-filter/index.js +1 -2
  121. package/dist/types/user/index.js +1 -2
  122. package/dist/utils/index.js +1 -17
  123. package/dist/utils/try-catch.js +8 -23
  124. package/package.json +12 -7
  125. package/dist/constants/account-status.d.ts +0 -3
  126. package/dist/constants/account-status.js +0 -17
  127. package/dist/constants/upwork-filters.d.ts +0 -5
  128. package/dist/constants/upwork-filters.js +0 -75
  129. package/dist/schemas/account/manager-account.d.ts +0 -116
  130. package/dist/schemas/account/manager-account.js +0 -38
  131. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  132. package/dist/schemas/ai-config/ai-config.js +0 -12
  133. package/dist/schemas/ai-config/index.d.ts +0 -1
  134. package/dist/schemas/ai-config/index.js +0 -17
  135. package/dist/schemas/bid/bid-status.d.ts +0 -30
  136. package/dist/schemas/bid/bid-status.js +0 -15
  137. package/dist/schemas/bidding/index.d.ts +0 -1
  138. package/dist/schemas/bidding/index.js +0 -17
  139. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  140. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  141. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  142. package/dist/schemas/bidding/proposal-dto.js +0 -18
  143. package/dist/schemas/job/index.js +0 -19
  144. package/dist/schemas/job/job-details.d.ts +0 -335
  145. package/dist/schemas/job/job-details.js +0 -29
  146. package/dist/schemas/job/job-note.d.ts +0 -83
  147. package/dist/schemas/job/job-note.js +0 -30
  148. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  149. package/dist/schemas/job/job-pipeline.js +0 -29
  150. package/dist/schemas/job/job-status.d.ts +0 -3
  151. package/dist/schemas/job/job-status.js +0 -27
  152. package/dist/schemas/job/job-suitability.d.ts +0 -12
  153. package/dist/schemas/job/job-suitability.js +0 -13
  154. package/dist/schemas/job/job.d.ts +0 -1160
  155. package/dist/schemas/job/job.js +0 -90
  156. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  157. package/dist/schemas/job/pipeline-job.js +0 -43
  158. package/dist/schemas/job/upwork-job.d.ts +0 -334
  159. package/dist/schemas/job/upwork-job.js +0 -60
  160. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  161. package/dist/schemas/knowledge-object/index.js +0 -17
  162. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  163. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  164. package/dist/schemas/lead/lead.d.ts +0 -1897
  165. package/dist/schemas/lead/lead.js +0 -143
  166. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  167. package/dist/schemas/scraper/scrape-response.js +0 -9
  168. package/dist/schemas/upwork-account/index.d.ts +0 -3
  169. package/dist/schemas/upwork-account/index.js +0 -19
  170. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  171. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  172. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  173. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  174. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  175. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  176. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  177. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  178. package/dist/types/account/manager-account.d.ts +0 -7
  179. package/dist/types/account/manager-account.js +0 -2
  180. package/dist/types/ai-config/ai-config.d.ts +0 -6
  181. package/dist/types/ai-config/ai-config.js +0 -2
  182. package/dist/types/ai-config/index.d.ts +0 -1
  183. package/dist/types/ai-config/index.js +0 -17
  184. package/dist/types/bid/bid-status.d.ts +0 -5
  185. package/dist/types/bid/bid-status.js +0 -2
  186. package/dist/types/bidding/index.d.ts +0 -1
  187. package/dist/types/bidding/index.js +0 -17
  188. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  189. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  190. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  191. package/dist/types/bidding/proposal-dto.js +0 -2
  192. package/dist/types/job/job-details.d.ts +0 -36
  193. package/dist/types/job/job-details.js +0 -2
  194. package/dist/types/job/job-pipeline.d.ts +0 -4
  195. package/dist/types/job/job-pipeline.js +0 -2
  196. package/dist/types/job/job-suitability.d.ts +0 -3
  197. package/dist/types/job/job-suitability.js +0 -2
  198. package/dist/types/job/job.d.ts +0 -36
  199. package/dist/types/job/job.js +0 -2
  200. package/dist/types/knowledge-object/index.d.ts +0 -1
  201. package/dist/types/knowledge-object/index.js +0 -17
  202. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  203. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  204. package/dist/types/scraper/scrape-response.d.ts +0 -4
  205. package/dist/types/scraper/scrape-response.js +0 -2
  206. package/dist/types/upwork-account/index.d.ts +0 -3
  207. package/dist/types/upwork-account/index.js +0 -19
  208. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  209. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  210. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  211. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  212. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  213. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
@@ -29,14 +29,14 @@ export declare const scraperAccountSchema: z.ZodObject<{
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  id: string;
31
31
  email: string;
32
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
33
- region: "all" | "Worldwide" | "UKOnly" | "USOnly";
34
32
  password: string;
35
33
  cookies: Record<string, string>;
36
- verified: boolean;
34
+ status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
35
+ proxy_credentials: string;
36
+ region: "all" | "Worldwide" | "UKOnly" | "USOnly";
37
37
  isActive: boolean;
38
38
  lastUsed: number;
39
- proxy_credentials: string;
39
+ verified: boolean;
40
40
  errors: {
41
41
  errorMessage: string;
42
42
  timestamp: number;
@@ -46,14 +46,14 @@ export declare const scraperAccountSchema: z.ZodObject<{
46
46
  }, {
47
47
  id: string;
48
48
  email: string;
49
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
50
- region: "all" | "Worldwide" | "UKOnly" | "USOnly";
51
49
  password: string;
52
50
  cookies: Record<string, string>;
53
- verified: boolean;
51
+ status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
52
+ proxy_credentials: string;
53
+ region: "all" | "Worldwide" | "UKOnly" | "USOnly";
54
54
  isActive: boolean;
55
55
  lastUsed: number;
56
- proxy_credentials: string;
56
+ verified: boolean;
57
57
  errors: {
58
58
  errorMessage: string;
59
59
  timestamp: number;
@@ -88,31 +88,31 @@ export declare const createScraperAccountSchema: z.ZodObject<Pick<{
88
88
  screenshotUrl: string;
89
89
  htmlUrl: string;
90
90
  }>, "many">;
91
- }, "email" | "region" | "password" | "verified" | "isActive" | "proxy_credentials">, "strip", z.ZodTypeAny, {
91
+ }, "email" | "password" | "proxy_credentials" | "region" | "isActive" | "verified">, "strip", z.ZodTypeAny, {
92
92
  email: string;
93
- region: "all" | "Worldwide" | "UKOnly" | "USOnly";
94
93
  password: string;
95
- verified: boolean;
96
- isActive: boolean;
97
94
  proxy_credentials: string;
95
+ region: "all" | "Worldwide" | "UKOnly" | "USOnly";
96
+ isActive: boolean;
97
+ verified: boolean;
98
98
  }, {
99
99
  email: string;
100
- region: "all" | "Worldwide" | "UKOnly" | "USOnly";
101
100
  password: string;
102
- verified: boolean;
103
- isActive: boolean;
104
101
  proxy_credentials: string;
102
+ region: "all" | "Worldwide" | "UKOnly" | "USOnly";
103
+ isActive: boolean;
104
+ verified: boolean;
105
105
  }>;
106
106
  export declare const updateScraperAccountSchema: z.ZodObject<{
107
107
  email: z.ZodOptional<z.ZodString>;
108
- status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
109
- region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
110
108
  password: z.ZodOptional<z.ZodString>;
111
109
  cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112
- verified: z.ZodOptional<z.ZodBoolean>;
110
+ status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
111
+ proxy_credentials: z.ZodOptional<z.ZodString>;
112
+ region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
113
113
  isActive: z.ZodOptional<z.ZodBoolean>;
114
114
  lastUsed: z.ZodOptional<z.ZodNumber>;
115
- proxy_credentials: z.ZodOptional<z.ZodString>;
115
+ verified: z.ZodOptional<z.ZodBoolean>;
116
116
  errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
117
117
  errorMessage: z.ZodString;
118
118
  timestamp: z.ZodNumber;
@@ -131,14 +131,14 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
131
131
  }>, "many">>;
132
132
  }, "strip", z.ZodTypeAny, {
133
133
  email?: string | undefined;
134
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
135
- region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
136
134
  password?: string | undefined;
137
135
  cookies?: Record<string, string> | undefined;
138
- verified?: boolean | undefined;
136
+ status?: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended" | undefined;
137
+ proxy_credentials?: string | undefined;
138
+ region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
139
139
  isActive?: boolean | undefined;
140
140
  lastUsed?: number | undefined;
141
- proxy_credentials?: string | undefined;
141
+ verified?: boolean | undefined;
142
142
  errors?: {
143
143
  errorMessage: string;
144
144
  timestamp: number;
@@ -147,14 +147,14 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
147
147
  }[] | undefined;
148
148
  }, {
149
149
  email?: string | undefined;
150
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
151
- region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
152
150
  password?: string | undefined;
153
151
  cookies?: Record<string, string> | undefined;
154
- verified?: boolean | undefined;
152
+ status?: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended" | undefined;
153
+ proxy_credentials?: string | undefined;
154
+ region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
155
155
  isActive?: boolean | undefined;
156
156
  lastUsed?: number | undefined;
157
- proxy_credentials?: string | undefined;
157
+ verified?: boolean | undefined;
158
158
  errors?: {
159
159
  errorMessage: string;
160
160
  timestamp: number;
@@ -1,28 +1,25 @@
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(),
1
+ import { z } from 'zod';
2
+ import { accountStatusSchema } from './account-status';
3
+ import { regionEnum } from '../job-filters';
4
+ export const scraperAccountSchema = z.object({
5
+ id: z.string(),
6
+ email: z.string().email(),
7
+ password: z.string(),
8
+ cookies: z.record(z.string(), z.string()),
9
+ proxy_credentials: z.string(),
10
+ region: regionEnum,
11
+ isActive: z.boolean(),
12
+ lastUsed: z.number(),
13
+ status: accountStatusSchema,
14
+ verified: z.boolean(),
15
+ errors: z.array(z.object({
16
+ errorMessage: z.string(),
17
+ timestamp: z.number(),
18
+ screenshotUrl: z.string(),
19
+ htmlUrl: z.string(),
23
20
  })),
24
21
  });
25
- exports.createScraperAccountSchema = exports.scraperAccountSchema.pick({
22
+ export const createScraperAccountSchema = scraperAccountSchema.pick({
26
23
  email: true,
27
24
  password: true,
28
25
  proxy_credentials: true,
@@ -30,7 +27,7 @@ exports.createScraperAccountSchema = exports.scraperAccountSchema.pick({
30
27
  verified: true,
31
28
  isActive: true,
32
29
  });
33
- exports.updateScraperAccountSchema = exports.scraperAccountSchema
30
+ export const updateScraperAccountSchema = scraperAccountSchema
34
31
  .omit({
35
32
  id: true,
36
33
  })
@@ -1,12 +1,9 @@
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(),
1
+ import { z } from "zod";
2
+ export const aiConfigSchema = z.object({
3
+ id: z.string(),
4
+ suitabilityPrompt: z.string().nullable(),
5
+ proposalPrompt: z.string().nullable(),
6
+ questionProposalPrompt: z.string().nullable(),
7
+ knowledgeBase: z.string().nullable(),
11
8
  });
12
- exports.updateAiConfigSchema = exports.aiConfigSchema.omit({ id: true }).partial();
9
+ export const updateAiConfigSchema = aiConfigSchema.omit({ id: true }).partial();
@@ -1,19 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ai-config"), exports);
18
- __exportStar(require("./proposal"), exports);
19
- __exportStar(require("./suitability"), exports);
1
+ export * from './ai-config';
2
+ export * from './proposal';
3
+ export * from './suitability';
@@ -3,11 +3,11 @@ export declare const questionAnswerPairSchema: z.ZodObject<{
3
3
  question: z.ZodString;
4
4
  answer: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
- answer: string;
7
6
  question: string;
8
- }, {
9
7
  answer: string;
8
+ }, {
10
9
  question: string;
10
+ answer: string;
11
11
  }>;
12
12
  export declare const proposalSchema: z.ZodObject<{
13
13
  coverLetter: z.ZodString;
@@ -15,23 +15,23 @@ export declare const proposalSchema: z.ZodObject<{
15
15
  question: z.ZodString;
16
16
  answer: z.ZodString;
17
17
  }, "strip", z.ZodTypeAny, {
18
- answer: string;
19
18
  question: string;
20
- }, {
21
19
  answer: string;
20
+ }, {
22
21
  question: string;
22
+ answer: string;
23
23
  }>, "many">;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  coverLetter: string;
26
26
  questionAnswerPairs: {
27
- answer: string;
28
27
  question: string;
28
+ answer: string;
29
29
  }[];
30
30
  }, {
31
31
  coverLetter: string;
32
32
  questionAnswerPairs: {
33
- answer: string;
34
33
  question: string;
34
+ answer: string;
35
35
  }[];
36
36
  }>;
37
37
  export declare const proposalResponseSchema: z.ZodArray<z.ZodObject<{
@@ -42,23 +42,23 @@ export declare const proposalResponseSchema: z.ZodArray<z.ZodObject<{
42
42
  question: z.ZodString;
43
43
  answer: z.ZodString;
44
44
  }, "strip", z.ZodTypeAny, {
45
- answer: string;
46
45
  question: string;
47
- }, {
48
46
  answer: string;
47
+ }, {
49
48
  question: string;
49
+ answer: string;
50
50
  }>, "many">;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  coverLetter: string;
53
53
  questionAnswerPairs: {
54
- answer: string;
55
54
  question: string;
55
+ answer: string;
56
56
  }[];
57
57
  }, {
58
58
  coverLetter: string;
59
59
  questionAnswerPairs: {
60
- answer: string;
61
60
  question: string;
61
+ answer: string;
62
62
  }[];
63
63
  }>;
64
64
  }, "strip", z.ZodTypeAny, {
@@ -66,8 +66,8 @@ export declare const proposalResponseSchema: z.ZodArray<z.ZodObject<{
66
66
  proposal: {
67
67
  coverLetter: string;
68
68
  questionAnswerPairs: {
69
- answer: string;
70
69
  question: string;
70
+ answer: string;
71
71
  }[];
72
72
  };
73
73
  }, {
@@ -75,8 +75,8 @@ export declare const proposalResponseSchema: z.ZodArray<z.ZodObject<{
75
75
  proposal: {
76
76
  coverLetter: string;
77
77
  questionAnswerPairs: {
78
- answer: string;
79
78
  question: string;
79
+ answer: string;
80
80
  }[];
81
81
  };
82
82
  }>, "many">;
@@ -1,16 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.proposalResponseSchema = exports.proposalSchema = exports.questionAnswerPairSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.questionAnswerPairSchema = zod_1.z.object({
6
- question: zod_1.z.string(),
7
- answer: zod_1.z.string(),
1
+ import { z } from "zod";
2
+ export const questionAnswerPairSchema = z.object({
3
+ question: z.string(),
4
+ answer: z.string(),
8
5
  });
9
- exports.proposalSchema = zod_1.z.object({
10
- coverLetter: zod_1.z.string(),
11
- questionAnswerPairs: zod_1.z.array(exports.questionAnswerPairSchema),
6
+ export const proposalSchema = z.object({
7
+ coverLetter: z.string(),
8
+ questionAnswerPairs: z.array(questionAnswerPairSchema),
12
9
  });
13
- exports.proposalResponseSchema = zod_1.z.array(zod_1.z.object({
14
- modelName: zod_1.z.string(),
15
- proposal: exports.proposalSchema,
10
+ export const proposalResponseSchema = z.array(z.object({
11
+ modelName: z.string(),
12
+ proposal: proposalSchema,
16
13
  }));
@@ -3,11 +3,11 @@ export declare const suitabilitySchema: z.ZodObject<{
3
3
  rating: z.ZodString;
4
4
  reason: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
- reason: string;
7
6
  rating: string;
8
- }, {
9
7
  reason: string;
8
+ }, {
10
9
  rating: string;
10
+ reason: string;
11
11
  }>;
12
12
  export declare const suitabilityStatusSchema: z.ZodEnum<["completed", "pending", "failed"]>;
13
13
  export declare const suitabilityResponseSchema: z.ZodArray<z.ZodObject<{
@@ -16,22 +16,22 @@ export declare const suitabilityResponseSchema: z.ZodArray<z.ZodObject<{
16
16
  rating: z.ZodString;
17
17
  reason: z.ZodString;
18
18
  }, "strip", z.ZodTypeAny, {
19
- reason: string;
20
19
  rating: string;
21
- }, {
22
20
  reason: string;
21
+ }, {
23
22
  rating: string;
23
+ reason: string;
24
24
  }>;
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  modelName: string;
27
27
  suitability: {
28
- reason: string;
29
28
  rating: string;
29
+ reason: string;
30
30
  };
31
31
  }, {
32
32
  modelName: string;
33
33
  suitability: {
34
- reason: string;
35
34
  rating: string;
35
+ reason: string;
36
36
  };
37
37
  }>, "many">;
@@ -1,17 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.suitabilityResponseSchema = exports.suitabilityStatusSchema = exports.suitabilitySchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.suitabilitySchema = zod_1.z.object({
6
- rating: zod_1.z.string(),
7
- reason: zod_1.z.string(),
1
+ import { z } from 'zod';
2
+ export const suitabilitySchema = z.object({
3
+ rating: z.string(),
4
+ reason: z.string(),
8
5
  });
9
- exports.suitabilityStatusSchema = zod_1.z.enum([
6
+ export const suitabilityStatusSchema = z.enum([
10
7
  'completed',
11
8
  'pending',
12
9
  'failed',
13
10
  ]);
14
- exports.suitabilityResponseSchema = zod_1.z.array(zod_1.z.object({
15
- modelName: zod_1.z.string(),
16
- suitability: exports.suitabilitySchema,
11
+ export const suitabilityResponseSchema = z.array(z.object({
12
+ modelName: z.string(),
13
+ suitability: suitabilitySchema,
17
14
  }));
@@ -7,16 +7,16 @@ export declare const bidSuccessSchema: z.ZodObject<{
7
7
  cookies: z.ZodArray<z.ZodAny, "many">;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  status: "success";
10
- cookies: any[];
11
10
  biddingAmount: number;
12
11
  boosted: boolean;
13
12
  boostingAmount: number;
13
+ cookies: any[];
14
14
  }, {
15
15
  status: "success";
16
- cookies: any[];
17
16
  biddingAmount: number;
18
17
  boosted: boolean;
19
18
  boostingAmount: number;
19
+ cookies: any[];
20
20
  }>;
21
21
  export declare const bidFailedSchema: z.ZodObject<{
22
22
  status: z.ZodLiteral<"failed">;
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bidFailedSchema = exports.bidSuccessSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.bidSuccessSchema = zod_1.z.object({
6
- status: zod_1.z.literal('success'),
7
- biddingAmount: zod_1.z.number(),
8
- boosted: zod_1.z.boolean(),
9
- boostingAmount: zod_1.z.number(),
10
- cookies: zod_1.z.array(zod_1.z.any()),
1
+ import { z } from 'zod';
2
+ export const bidSuccessSchema = z.object({
3
+ status: z.literal('success'),
4
+ biddingAmount: z.number(),
5
+ boosted: z.boolean(),
6
+ boostingAmount: z.number(),
7
+ cookies: z.array(z.any()),
11
8
  });
12
- exports.bidFailedSchema = zod_1.z.object({
13
- status: zod_1.z.literal('failed'),
14
- errorMessage: zod_1.z.string(),
9
+ export const bidFailedSchema = z.object({
10
+ status: z.literal('failed'),
11
+ errorMessage: z.string(),
15
12
  });